PageSourceSearch

https://bookshop.newestpress.com/cdn/shopifycloud/checkout-web/assets/c1/app.3xnYS5zI.js

js newestpress.com collected 2026-09-25 15:00:42 UTC 19,485 bytes, 10 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["context-browser.Q2R3PORz.js","esnext-vendor.B9Da21W6.js","addresses-is-address-empty.BgqK_zG_.js","assets/is-address-empty.DJksNKpk.css","cvv-cvvBridge.hYfPqjG6.js","proposal-delegated-payment-instrument.DdQUrP6a.js","shared-shop-theme.COUCqJYi.js","consent-manager-shared.CGK4EXDP.js","shared-receipt-mapper-load-recovery.D65uooMz.js","shared-receipt-eager-mappers.Djoi_CR2.js","shared-report-graphql-error.BoF9YjQU.js","shop-pay-normalizeBuyerDetails.D_U_lYsO.js","helpers-derivations.Cr-il7Z-.js","redemption-promotions.DLBLAp8j.js","graphql-PaymentSessionMutation.DJrmXbx9.js","hydrate.B4yS4myh.js","hooks-useShopPayExternalAppContext.DPMzO6wO.js","hooks-useReplaceShopPayInHistory.DcFB3a73.js","assets/previous.CbcMylZP.css"])))=>i.map(i=>d[i]);
2import{m as q,b6 as B,u as J,g as K}from"./esnext-vendor.B9Da21W6.js";const Q="modulepreload",z=function(e){return"/cdn/shopifycloud/checkout-web/assets/c1/"+e},N={},M=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let p=function(l){return Promise.all(l.map(f=>Promise.resolve(f).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=s?.nonce||s?.getAttribute("nonce");i=p(n.map(l=>{if(l=z(l),l in N)return;N[l]=!0;const f=l.endsWith(".css"),u=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=f?"stylesheet":Q,f||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),f)return new Promise((E,g)=>{d.addEventListener("load",E),d.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${l}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};typeof window<"u"&&typeof window.Element<"u"&&(Element.prototype.closest=Element.prototype.closest??function(t){let n=this;for(;n!=null;){if(n.matches(t))return n;const r=n.parentElement??n.parentNode;n=r!=null&&r.nodeType===1?r:null}return null},Element.prototype.matches=Element.prototype.matches??Element.prototype.msMatchesSelector??Element.prototype.webkitMatchesSelector);const Z=50;function ee(e){const t=Date.now();return window.setTimeout(()=>{e({didTimeout:!1,timeRemaining(){return Math.max(0,Z-(Date.now()-t))}})},0)}function te(e){window.clearTimeout(e)}if(typeof window<"u"){const e=typeof window.requestIdleCallback!="function",t=typeof window.cancelIdleCallback!="function";(e||t)&&(window.requestIdleCallback=ee,window.cancelIdleCallback=te)}function ne(e){const t={};for(const n of e){if(Object(n)!==n)throw new TypeError(`Iterator value ${n} is not an entry object`);const{"0":r,"1":i}=n;Object.defineProperty(t,r,{configurable:!0,enumerable:!0,writable:!0,value:i})}return t}Object.fromEntries=Object.fromEntries??ne;function re(e){const t=Number.isNaN(e)||e===void 0?0:Math.trunc(e),n=t<0?t+this.length:t;return this[n]}typeof Array.prototype.at!="function"&&(Array.prototype.at=re);const ie=Element.prototype.insertBefore,oe=Element.prototype.appendChild;Element.prototype.insertBefore=function(e,t){try{const n=!e||!(e instanceof Node),r=e instanceof Text&&t instanceof HTMLElement&&t?.localName==="font";return n||r||G(e)?e:ie.apply(this,[e,t])}catch{return e}};Element.prototype.appendChild=function(e){try{const t=!e||!(e instanceof Node),n=e instanceof Text&&this.firstChild instanceof HTMLElement&&this.firstChild.localName==="font";return t||n||G(e)?e:oe.apply(this,[e])}catch{return e}};function G(e){if(!(e instanceof HTMLScriptElement)||!e.textContent)return!1;try{return new Function(e.textContent),!1}catch(t){return console.warn("Blocked script with invalid JavaScript content:",{source:e.src||"inline script",contentPreview:`${e.textContent.slice(0,100)}...`,error:t instanceof Error?t.message:String(t)}),!0}}if(typeof performance<"u")try{const e=performance.measure.bind(performance),t=performance.mark.bind(performance);performance.measure=function(...r){try{return e.call(this,...r)}catch{return O("measure",String(r[0]))}}
2,performance.mark=function(...n){try{return t.call(this,...n)}catch{return O("mark",String(n[0]))}}}catch{}function O(e,t){const n={startTime:0,duration:0,entryType:e,name:t};return{...n,detail:void 0,toJSON:()=>n}}typeof window<"u"&&(window.ShopPay={});const se="checkout:cf-challenge",U="checkout-web:cf-challenge-reloads",ae=2,ce=300*1e3;function le(e){try{const t=sessionStorage.getItem(U);if(!t)return[];const n=JSON.parse(t);return Array.isArray(n)?n.filter(r=>typeof r=="number"&&r<=e&&e-r<ce):[]}catch{return[]}}function ue(e){try{return sessionStorage.setItem(U,JSON.stringify(e)),!0}catch{return!1}}function k(e){window.dispatchEvent(new CustomEvent(se,{detail:e}))}if(typeof window<"u"){const e=window.fetch;let t=!1,n=!1;const r=()=>{const i=Date.now(),o=le(i);if(o.length>=ae){n||(n=!0,k({event:"reload_suppressed",reloadCount:o.length,budgetTracked:!0}));return}t=!0;const s=ue([...o,i]);k({event:"reload",reloadCount:o.length+1,budgetTracked:s}),window.location.reload()};window.fetch=async(...i)=>{const o=await e(...i);return!t&&!o.ok&&o.headers.get("cf-mitigated")==="challenge"&&r(),o}}const c={pendingTransition:!1,transitionTypes:[],inflightTransition:void 0,inflightTransitionTypes:[],scheduled:!1,containers:new Set,get prefersReducedMotion(){return typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches}},de='[role="dialog"][aria-modal="true"]';function fe(e,t=[],{interrupt:n=!1,replace:r=!1}={}){if(typeof window>"u"){e();return}c.transitionTypes=c.pendingTransition&&!r?[...new Set([...c.transitionTypes,...t])]:t,c.pendingTransition=!0,e(),n&&c.inflightTransition?.skipTransition()}function Ge(){return c.inflightTransitionTypes.some(e=>e==="payment-details-slide-start"||e==="payment-details-slide-end")}function Ue(){return c.inflightTransitionTypes.includes("payment-details-slide-start")?"start":"end"}class pe extends q{#e;#t;constructor(t,n,r){super(t),this.#e=n,this.#t=r}get value(){return super.value}
2set value(t){this.#e?.(this.peek(),t)??!0?fe(()=>{super.value=t},this.#t):super.value=t}}function $e(e,t,n){return new pe(e,t,n)}const ye=["Load failed","Failed to fetch","when attempting to fetch resource","SystemJS https://github.com/systemjs/systemjs/blob/main/docs/errors.md#3"],$=["Importing a module script failed.","Failed to fetch dynamically imported module","error loading dynamically imported module","Cannot load script due to integrity mismatch"],Xe=["TranslationNotStringError","MissingReplacementError","CardFieldsSetupError","CardFieldsLoadError","IFrameNotFoundError","CardFieldsFetchFailureError","CardFieldsOperationalError","PayPalAPIError","WalletProviderFailureError","AbortedSessionError","AbortError","GraphQLFetchNetworkError","MonorailRequestError","BreadcrumbsPluginFetchError","OpenTelemetryClientError","InsecurePageError","UnsafeURLError","GraphQLFetchHttpBadRequestError","GraphQLFetchHttpStatusError","GraphQLFetchHttpContentTypeError","GraphQLFetchJsonParseError","SettingsCreateError","MerchantCommunicationError","PostPurchase::ClientJsonParseError","MissingAppContextError","MissingContextError"];function We(e){return e.name==="TypeError"&&$.some(t=>e.message.includes(t))}function Ye(e){return ye.some(t=>e.message.includes(t))}class m extends Error{constructor(t,n={}){super(t,n),this.metadata=n.metadata??{},this.instanceGroupingHash=n.groupingHash,this.unactionable=!1,"captureStackTrace"in Error&&Error.captureStackTrace(this,this.constructor)}get groupingHash(){return this.instanceGroupingHash??this.defaultGroupingHash??this.name}isUnactionable(){return this.unactionable}}class qe extends m{constructor(t,n={}){super(t,n)}}class me extends m{constructor(){super(...arguments),this.name="DynamicImportError",this.unactionable=!0}}class he extends m{constructor(){super(...arguments),this.name="ViewTransitionRenderError",this.defaultGroupingHash="ViewTransitionRenderError"}}function Ee(e){return e.name==="TypeError"?`ViewTransitionRenderError: ${e.message}`:`ViewTransitionRenderError: ${e.name}`}function ge(e,t){return t===void 0||Object.defineProperty(e,"groupingHash",{value:t,enumerable:!1,configurable:!0}),e}const X=(()=>{if(!document.startViewTransition)return()=>!1;try{const e=document.startViewTransition({update:()=>{},types:[]});return e.skipTransition(),e.ready.catch(()=>{}),()=>!0}catch{return()=>!1}})(),S="modal-content-cross-fade",Te=new Set(["payment-icons",S]),we=new Set(["delivery-slide-start","delivery-slide-end","payment-icons",S,"payment-selector-change","payment-details-slide-start","payment-details-slide-end","money-lines"]),be=new Set(["payment-details-slide-start","payment-details-slide-end"]);function L(){if(!c.inflightTransition)return!1;const e=c.inflightTransitionTypes;return e.length===0||!e.every(t=>be.has(t))}function D(){const e=c.inflightTransition;if(!e)return!1;const t=c.inflightTransitionTypes;return t.length>0&&t.every(r=>we.has(r))?(e.skipTransition(),!0):!1}function Ae(){let e=!1;document.addEventListener("keydown",()=>{D()},{capture:!0,passive:!0}),document.addEventListener("pointerdown",()=>{e=D()},{capture:!0,passive:!0}),document.addEventListener("pointercancel",()=>{e=!1},{capture:!0,passive:!0}),document.addEventListener("click",t=>{e&&(e=!1,t.target===document.documentElement&&_e(t)&&t.stopImmediatePropagation())},{capture:!0})}Ae();function _e({clientX:e,clientY:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:o,detail:s}){const a=document.elementFromPoint(e,t);return!a||a===document.documentElement||a.closest("[inert], :disabled")?!1:(a.closest("input, textarea, select, [contenteditable]")?.focus(),a.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,clientX:e,clientY:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:o,detail:s})),!0)}B.debounceRendering=e=>{if(!c.scheduled){if(c.scheduled=!0,!v()&&!L()){queueMicrotask(()=>{if(v()||L()){F(e);return}W(e)});return}F(e)}};function v(){const e=document.querySelectorAll(de),t=c.transitionTypes,n=t.length>0&&t.every(i=>Te.has(i)),r=t.includes(S);return c.pendingTransition&&!c.prefersReducedMotion&&!(typeof window<"u"&&window!==window.parent)&&!document.hidden&&X()&&(e.length===0||n)&&(!r||e.length===1)}function W(e){const t=c.pendingTransition,n=c.transitionTypes;c.pendingTransition=!1,c.transitionTypes=[],c.scheduled=!1;try{e()}catch(r){const i=r instanceof Error?r.message:String(r);if($.some(o=>i.includes(o)))throw new me(i);{const o=r instanceof Error?Ee(r):void 0;throw ge(new he(`Error during render (no view transition): ${i}`,{cause:r,groupingHash:o,metadata:{prefersReducedMotion:c.prefersReducedMotion,pendingTransition:t,transitionTypes:n,isInIframe:typeof window<"u"&&window!==window.parent,supportsViewTransitions:X(),...Ie(r)}}),o)}}}const Se="view-transition-generated-names";function b(e){return`@layer ${Se} {${e}}`}async function F(e){if(await(c.inflightTransition?.finished??Promise.resolve()),!v()){W(e);return}const n=c.transitionTypes.includes(S),r=new Map,i=document.createElement("style");let o=0,s=0;function a(){if(n)return b("");let u="";
2for(const d of c.containers){let E=1;d.dataset.vtContainerId=`${o++}`;for(const g of d.children){const w=`vt-${s++}`;r.set(g,w),u+=`
3              [data-vt-container-id="${d.dataset.vtContainerId}"] > :nth-child(${E++}) {
4                view-transition-name: ${w};
5            }
6          `}}return b(u)}function p(){if(n)return b("");let u="";for(const d of c.containers){let E=1;for(const g of d.children){const w=r.get(g);d.dataset.vtContainerId||(d.dataset.vtContainerId=`${o++}`),u+=`
7              [data-vt-container-id="${d.dataset.vtContainerId}"] > :nth-child(${E++}) {
8                view-transition-name: ${w??`vt-${s++}`};
9              }
10            `}}return b(u)}i.innerHTML=a(),document.head.appendChild(i);const l=c.transitionTypes?.length?c.transitionTypes:void 0;c.transitionTypes=[];const f=document.startViewTransition({update:()=>{c.scheduled=!1,e(),i.innerHTML=p()},types:l});c.inflightTransition=f,c.inflightTransitionTypes=l?[...l]:[],f.ready.catch(()=>{}),f.updateCallbackDone.then(()=>{c.pendingTransition=!1}).catch(()=>{}),f.finished.finally(()=>{c.inflightTransition=void 0,c.inflightTransitionTypes=[],document.head.removeChild(i);for(const u of c.containers)delete u.dataset.vtContainerId}).catch(()=>{})}function Ie(e){const t={};e instanceof Error&&(t.originalErrorName=e.name,t.originalErrorMessage=e.message,t.originalErrorStack=e.stack);try{const n=document.querySelectorAll("script[integrity]"),r=n.length;t.scriptsWithIntegrityCount=r,t.scriptsWithIntegrity=Array.from(n).slice(0,10).map(i=>({src:i.getAttribute("src"),integrity:i.getAttribute("integrity")}))}catch{}try{const n=document.querySelector('script[type="importmap"], script[type="systemjs-importmap"]');if(n?.textContent){const r=JSON.parse(n.textContent);if(r.integrity!=null&&typeof r.integrity=="object"&&!Array.isArray(r.integrity)){const i=Object.entries(r.integrity);t.importMapIntegrityCount=i.length,t.importMapIntegritySample=Object.fromEntries(i.slice(0,10))}}}catch{}return t}const ve=32,Ce=4,Y=10,H=100,Pe=8*1024,h=Symbol("unreadable"),A=B,C=new WeakMap;let _;function Re(){if(typeof window>"u")return()=>{};if(_)return _;const e=A.__e;function t(...r){return Ne(r[0],r[1]),e.apply(this,r)}function n(){typeof window>"u"||A.__e===t&&(A.__e=e,_=void 0)}return A.__e=t,_=n,n}function Je(e){if(typeof window>"u")return;const t=C.get(e);if(!(!t||t.reported))return t.reported=!0,t.metadata}function Ne(e,t){if(!(typeof window>"u"))try{if(!(e instanceof TypeError)||C.has(e))return;const n=Object.getOwnPropertyDescriptor(e,"message");if(!n||!("value"in n)||n.value!=="Cannot convert object to primitive value")return;const r={reported:!1};C.set(e,r),r.metadata=Oe(t)}catch{}}function T(e){return typeof e=="object"&&e!==null||typeof e=="function"}function P(e){return e===h?"unreadable":e===null?"null":typeof e}function R(e,t,n){try{return Object.getOwnPropertyDescriptor(e,t)}catch{return n.inspectionFailed=!0,h}}function y(e,t,n){if(!T(e))return;const r=R(e,t,n);if(r)return r!==h&&"value"in r?r.value:(n.inspectionFailed=!0,h)}function I(e,t,n){const r=R(e,t,n);return r===h?{kind:"unreadable"}:r?"value"in r?{kind:"data",valueType:P(r.value)}:{kind:"accessor"}:{kind:"absent"}}function Me(e,t){const n={category:P(e)};if(!T(e)||typeof e=="function")return n;try{n.nullPrototype=Object.getPrototypeOf(e)===null}catch{t.inspectionFailed=!0}const r=R(e,Symbol.toStringTag,t);return n.moduleLike=r!==h&&r!==void 0&&"value"in r&&r.value==="Module",n.defaultProperty=I(e,"default",t),n.toStringProperty=I(e,"toString",t),n.valueOfProperty=I(e,"valueOf",t),n}function x(e,t){const n=[],r=new Set;let i=e;for(;T(i)&&n.length<Y&&!r.has(i);){r.add(i);const o=y(i,"type",t),s={category:P(o)};if(typeof o=="function"){const a=y(o,"displayName",t),p=typeof a=="string"&&a.length>0?a:y(o,"name",t);typeof p=="string"&&(s.name=p.slice(0,H),s.nameTruncated=p.length>H)}n.push(s),i=y(i,"__",t)}return{type:Me(y(e,"type",t),t),ancestry:Object.fromEntries(n.map((o,s)=>[s,o])),ancestryTruncated:T(i)}}function Oe(e){const t={version:1,inspectedNodeCount:0,candidateCount:0,scanTruncated:!1,candidatesTruncated:!1,inspectionFailed:!1,outputTruncated:!1,catchVNode:{type:{category:"unreadable"},ancestry:{},ancestryTruncated:!1},candidates:{}};t.catchVNode=x(e,t);const n=[e],r=new Set;for(const s of n){if(!T(s)||r.has(s))continue;r.add(s),t.inspectedNodeCount++;const a=y(s,"type",t);a!==h&&a!==null&&a!==void 0&&typeof a!="string"&&typeof a!="function"&&(t.candidateCount<Ce?t.candidates[t.candidateCount++
10]=x(s,t):t.candidatesTruncated=!0);try{const p=y(s,"__k",t);if(!Array.isArray(p))continue;const l=y(p,"length",t);if(typeof l!="number")continue;const f=Math.min(l,ve-n.length);f<l&&(t.scanTruncated=!0);for(let u=0;u<f;u++)n.push(y(p,u,t))}catch{t.inspectionFailed=!0}}const i=[t.catchVNode,...Object.values(t.candidates)],o=new TextEncoder;for(let s=Y-1;s>=0;s--)for(const a of i){if(o.encode(JSON.stringify(t)).byteLength<=Pe)return t;a.ancestry[s]&&(delete a.ancestry[s],a.ancestryTruncated=!0,t.outputTruncated=!0)}return t}const Ke="e_e5eef1f760ed55e19c6defbc6ce215af",Qe="e_bdd4ad9fc347bfc12f78dabcc6059bc7",ze="e_6221c0aa1c5a577e83a5c1e4c9b3d592",Ze="e_2e28467f22ae5396e5a4d2b8e02c531e",et="e_5494add585d1f70ed2467b09056b8914",tt="e_178b603bb3abd8a0d967da5edd358635",nt="e_1fca27be02d739cb3043ec76479eb013",ke="e_fd1e35bf8f1ad8ee87a7dc13dba7b296",rt="e_ba10a6a3303393a1e759ef39209360d2";Re();Le();async function Le(){const e=performance.now(),[{buildAppContextForBrowser:t},{hydrateApp:n,renderTerminalError:r}]=await Promise.all([M(()=>import("./context-browser.Q2R3PORz.js").then(o=>o.b),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),M(()=>import("./hydrate.B4yS4myh.js").then(o=>o.jp),__vite__mapDeps([15,1,2,3,14,16,17,18]))]);let i;try{await He();const o=document.getElementById("app"),s=document.getElementById("terminal-error-page"),a=await t({rootElement:o,onTerminalError:r({rootElement:o,terminalErrorPageElement:s}),eagerAppMetafieldsExperiment:ke});if(a.status==="error")throw i=a.errorHandlingContext,a.error;i=a.appContext;const p=a.appContext;await n(p,{bootStartTime:e})}catch(o){if(i)await i.terminalErrorHandler.notify(o);else throw o}finally{if(i){const{client:{initialRequest:o},observability:s}=i;s.counter({name:"checkout_web_client_received",value:1,attributes:{serverRendered:o.isServerRendered,didHydrate:o.isServerRendered}})}}}const De=Symbol.for("Shopify.checkout.htmlAvailable"),Fe="checkout:htmlavailable";async function He(){window[De]||await new Promise(e=>{document.addEventListener(Fe,e,{once:!0})})}function it(e,t){return e==="phone"&&t.user.isUnauthenticatedUser.value}function ot(e,t){let n=e;const r=t.split(".");for(const i of r){if(n==null)return;n=n[i]}return n}function st(e,t,n){const r={...e},i=t.split("."),o=i.pop();if(!o)return e;let s=r;for(const a of i)s[a]={...s[a]},s=s[a];return n==null?delete s[o]:s[o]=n,r}function xe(e,...t){const n={...e};for(const r of t)for(const i of Object.keys(r)){const o=n[i],s=r[i];j(o)&&j(s)?n[i]=xe(o,s):s!=null&&(n[i]=s)}return n}function j(e){if(e==null||typeof e!="object"||Array.isArray(e))return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}class at extends m{constructor(t){super(t),this.name="IgnoredApplePayAPIError"}}class ct extends m{constructor(){super(...arguments),this.name="ApplePayAPIError"}}class lt extends m{constructor(){super(...arguments),this.name="AbortedSessionError"}}class ut extends m{constructor(){super(...arguments),this.name="WalletProviderFailureError"}}class dt extends m{constructor(){super(...arguments),this.name="ApplePaySessionNotReadyError",this.defaultGroupingHash="ApplePaySessionNotReadyError"}}const je="v9oRy",Ve="XdrBA",V={Layout:je,isAnimated:Ve};function ft({children:e,className:t}){return J("main",{className:K([V.Layout,V.isAnimated,t]),children:e})}function pt(e){const t=e.session.paymentMethodOption.value;return t==null?"SHOP_PAY":t.name}export{dt as A,nt as E,ft as F,at as I,Ke as J,Qe as O,et as P,m as S,Ze as U,ut as W,M as _,Xe as a,Ue as b,Ye as c,xe as d,ot as e,lt as f,pt as g,ct as h,We as i,fe as j,ze as k,rt as l,$ as m,ye as n,Je as o,Ge as p,qe as q,de as r,it as s,$e as t,st as u,c as v,tt as w};

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.