"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[17],{110:(n,t,o)=>{o.d(t,{a:()=>u,b:()=>c});var e=o(9),r=o.n(e),i=function(n,t,o,e){return new(o||(o=Promise))((function(r,i){function c(n){try{s(e.next(n))}catch(n){i(n)}}function u(n){try{s(e.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?r(n.value):(t=n.value,t instanceof o?t:new o((function(n){n(t)}))).then(c,u)}s((e=e.apply(n,t||[])).next())}))};function c(n,t,o,e,c){return i(this,void 0,void 0,(function*(){try{const a=yield function(n,t){return i(this,void 0,void 0,(function*(){const o=Math.round(n/100);return o>=0&&o<=2e3&&t.hasOwnProperty(o)?t[o]||0:yield function(n){return i(this,void 0,void 0,(function*(){const t=new URL("https://api.route.com/v1/quote"),{searchParams:o}=t;o.set("subtotal",(n/100).toFixed(2)),o.set("store_domain","rbxactive.myshopify.com"),o.set("currency","USD");try{const n=yield r()(t.toString()),{insurance_price:o}=yield n.json();return o}catch(n){return console.error(n),null}}))}(n)}))}(n,e);if(null===a)return void c();const d=(u=t.variants,s=a,u.find((({price:n})=>parseFloat(n)>=s)));d&&o(d)}catch(n){console.error(n)}var u,s}))}const u=(n,t)=>"Route"===n.vendor?1:"Route"===t.vendor?-1:0}}]);