PageSourceSearch

https://respoke.com/cdn/shopifycloud/checkout-web/assets/c1/f67abd2c.CxgiarJo.js

js respoke.com collected 2026-10-06 22:36:52 UTC 2,517 bytes, 1 lines download raw bytes

1import{as as e,hR as n}from"./9dba8418.DInoCEzY.js";const t=[/Internal error\. Looks like something went wrong on our end/,/Session source not found/,/Country [A-Z]{0,2} is not supported/,/Invalid session token/,/Invalid query string parameter\./,/server_unavailable/];function r(e){return t.some(n=>n.test(e))}class o extends Error{constructor(){super(...arguments),this.name="UnactionableGraphQLExecutionError"}}const s=e=>{const n=e??("undefined"==typeof window?void 0:window.location.href);if(!n)return;let t;try{t="string"==typeof n?new URL(n).pathname:n.pathname}catch{return}const r=t.match(/checkout\/([^/]+)\/([a-z]{2,3})/)?.[1];if(!r)return;const o=parseInt(r,10);return isNaN(o)?void 0:o};function i(e){return null!=e&&"merchandiseLine"in e}function u(e){return null==e||"merchandiseLine"in e?void 0:e}function c(e){return a(e.discount)}function a(e){return"code"===e.type||"automatic"===e.type||"custom"===e.type}var d=(e=>(e.Ddp="DDP",e.Dap="DAP",e.Ddu="DDU",e.Unsupported="UNSUPPORTED",e))(d||{}),f=(e=>(e.BuyerConfigured="Buyer Configured",e.DefaultDuties="Default Duties and Taxes",e.DutyAndTaxInclusive="Duty and Tax Inclusive Pricing",e.DutyInclusive="Duty Inclusive Pricing",e.ErrorOccured="Error Occured",e.FlowConfigured="Flow Configured",e.LowValueGoodsFallback="Low Value Goods Taxes Apply",e.PreConfigured="Pre-configured",e.UnsupportedRegion="Unsupported Region",e))(f||{});function p(e){return e.reduce((e,{cost:n,costBeforeDiscounts:t})=>({priceBeforeDiscounts:e.priceBeforeDiscounts+t,priceAfterDiscounts:e.priceAfterDiscounts+n}),{priceBeforeDiscounts:0,priceAfterDiscounts:0})}function l(e,t=e=>e.amountCombinabilityToken??void 0){if(!e.some(e=>t(e)))return p(e);const r=n(e,e=>e.costBeforeDiscounts,t);return e.reduce((e,n,t)=>r.has(t)?e:{priceBeforeDiscounts:e.priceBeforeDiscounts+n.costBeforeDiscounts,priceAfterDiscounts:e.priceAfterDiscounts+n.cost},{priceBeforeDiscounts:0,priceAfterDiscounts:0})}function D(e){return!!c(e)&&e.allocations.some(e=>"DELIVERYLINE"===e.target.type)}function g(e,n){return e?e.filter(e=>!!c(e)&&e.allocations.some(e=>"DELIVERYLINE"===e.target.type&&null!=e.target.index&&n.has(e.target.index))):[]}function m(n,t){const r=new Set,o=new Set;return n&&"filled"===n.status&&n.lines.forEach((n,t)=>{if("available"!==n.status)return;const s=e(n);s&&("PICK_UP"===s.methodType?o.add(t):r.add(t))}),{shippingDiscountLines:g(t,r),pickupDiscountLines:g(t,o)}}export{d as I,t as U,c as a,a as b,l as c,r as d,u as e,o as f,s as g,D as h,i,m as j,f as k,p as s};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.