PageSourceSearch

https://sotastickco.com/cdn/shopifycloud/checkout-web/assets/c1/page-Processing.CdJhBUPi.js

js sotastickco.com collected 2026-09-28 23:33:50 UTC 11,542 bytes, 1 lines download raw bytes

1import{u as e,Q as H,g as A,k as P,h as d,T as p,q as G,S as F,f as j,e as B,A as K,o as $,i as U}from"./esnext-vendor.DDpcaSqU.js";import{I as C,cD as Y,cE as W,cF as T,cG as Z,cH as _,k as I,B as w,bw as J,l as z,cI as Q,P as M,S as X,cJ as e2,cK as t2,cL as a2,e as s2,cM as n2,cN as o2,cO as c2,cP as r2,a as i2}from"./hydrate.BcfGVx0L.js";import{T as q,W as m2,a5 as l2,ag as h2,cD as u2}from"./utilities-previous.Cnwy8G2v.js";import{u as d2,c as g2,S as p2}from"./CalloutHeader.DC7jgv42.js";import{g as v2}from"./app.DdDscdWN.js";import{P as f2}from"./graphql-PaymentSessionMutation.C-nDEOnn.js";import"./shared-permissions.B59tuyWB.js";import"./hooks-useShopPayExternalAppContext.R6pnDxYu.js";const S2=s=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:74,height:74,...s,children:e("g",{children:e("path",{fill:"none",stroke:"#000",strokeLinecap:"round",d:"M2.68 16.1q.29-2.2 1.12-4.16m73.95.13a16.3 16.3 0 0 1 9.07-8.93m67.03 5.28a16.2 16.2 0 0 1 12.9-6.4h6.85m57.2 3.43a16 16 0 0 1 9.95-3.42h19.72m47.95 1.28a16 16 0 0 1 6.33-1.28h32.58m39.1.17a16 16 0 0 1 2.32-.17h36.5c3.14 0 6.08.9 8.56 2.44m30.87-2.44h34.57c7.74 0 14.21 5.42 15.83 12.67m27.79-12.67h30.38c8.95 0 16.22 7.26 16.22 16.22v9.36m31.59-25.58h26.19c8.95 0 16.22 7.26 16.22 16.22v22.23m35.78-38.45h22c8.95 0 16.22 7.26 16.22 16.22v35.1m39.97-51.32h17.8c8.96 0 16.23 7.26 16.23 16.22v36.49a16.2 16.2 0 0 1-3.94 10.6m48.1-63.31h13.62c8.95 0 16.22 7.26 16.22 16.22v36.49c0 8.62-6.72 15.66-15.2 16.19m63.55-68.9h9.43c8.95 0 16.22 7.26 16.22 16.22v36.49c0 8.96-7.27 16.22-16.22 16.22h-11.89M1012 2.03h5.25c8.95 0 16.22 7.26 16.22 16.22v36.49c0 8.96-7.27 16.22-16.22 16.22H992.5m97.7-68.93h1.05c8.95 0 16.22 7.26 16.22 16.22v36.49c0 8.96-7.27 16.22-16.22 16.22h-36.5q-.58 0-1.16-.04m114.85-68.58a16.2 16.2 0 0 1 13.03 15.9v36.5c0 8.96-7.27 16.22-16.22 16.22h-36.5a16.2 16.2 0 0 1-12.37-5.73m130-61.55a16.2 16.2 0 0 1 9.09 14.57v36.49c0 8.96-7.27 16.22-16.22 16.22h-36.5a16.2 16.2 0 0 1-16.21-16.22V53.2M1323.89 6a16.2 16.2 0 0 1 5.58 12.25v36.49c0 8.96-7.26 16.22-16.22 16.22h-36.5a16.2 16.2 0 0 1-16.22-16.22v-14.4m140.14-31.21a16 16 0 0 1 2.8 9.12v36.49c0 8.96-7.27 16.22-16.22 16.22h-36.5a16.2 16.2 0 0 1-16.21-16.22V27.47m142.02-14.59q.9 2.53.9 5.37v36.49c0 8.96-7.26 16.22-16.21 16.22h-36.5a16.2 16.2 0 0 1-16.21-16.22v-36.5q0-1.9.42-3.67m142.46 2.42q.04.62.05 1.26v36.49c0 8.96-7.27 16.22-16.22 16.22h-36.5a16.2 16.2 0 0 1-16.21-16.22v-36.5c0-5.86 3.1-11 7.77-13.84m135.16 16.82v33.52c0 8.96-7.27 16.22-16.22 16.22h-36.5a16.2 16.2 0 0 1-16.21-16.22v-36.5c0-8.94 7.26-16.2 16.22-16.2h4.05m122.66 23.36v29.34c0 8.96-7.27 16.22-16.22 16.22h-36.5a16.2 16.2 0 0 1-16.21-16.22v-36.5c0-8.94 7.26-16.2 16.22-16.2h16.91m109.8 27.56v25.14c0 8.96-7.27 16.22-16.22 16.22h-36.5a16.2 16.2 0 0 1-16.21-16.22v-36.5c0-8.94 7.26-16.2 16.22-16.2h29.78m96.93 31.75v20.95c0 8.96-7.27 16.22-16.22 16.22h-36.5a16.2 16.2 0 0 1-16.21-16.22v-36.5c0-8.94 7.26-16.2 16.22-16.2h36.49q3.23.02 6.05 1.17m84.17 34.77v16.76c0 8.96-7.27 16.22-16.22 16.22h-36.5a16.2 16.2 0 0 1-16.21-16.22v-36.5c0-8.94 7.26-16.2 16.22-16.2h36.49c6.77 0 12.57 4.15 15 10.04m75.22 30.09v12.57c0 8.96-7.27 16.22-16.22 16.22h-36.5a16.2 16.2 0 0 1-16.21-16.22v-36.5c0-8.94 7.26-16.2 16.22-16.2h36.49c8.96 0 16.22 7.26 16.22 16.22v6.57m74 21.53v8.38c0 8.96-7.27 16.22-16.22 16.22h-36.5a16.2 16.2 0 0 1-16.21-16.22v-36.5c0-8.94 7.26-16.2 16.22-16.2h36.49c8.96 0 16.22 7.26 16.22 16.22V37.7m74 12.85v4.19c0 8.96-7.27 16.22-16.22 16.22h-36.5a16.2 16.2 0 0 1-16.21-16.22v-36.5c0-8.94 7.26-16.2 16.22-16.2h36.49c8.96 0 16.22 7.26 16.22 16.22v32.3m71.98 12.01c-2.76 5-8.09 8.39-14.2 8.39h-36.5a16.2 16.2 0 0 1-16.22-16.22v-36.5c0-8.94 7.27-16.2 16.22-16.2h36.5c8.95 0 16.22 7.26 16.22 16.22v36.49m62.68 15.45a16 16 0 0 1-4.9.76h-36.5a16.2 16.2 0 0 1-16.22-16.22v-36.5c0-8.94 7.27-16.2 16.22-16.2h36.5c8.95 0 16.22 7.26 16.22 16.22v36.49q-.01 2.2-.56 4.21m50.95 12h-29.1a16.2 16.2 0 0 1-16.24-16.22v-36.5a16.23 16.23 0 0 1 16.23-16.2h36.5c8.95 0 16.22 7.26 16.22 16.22v36.49c0 2.94-.78 5.7-2.15 8.07m40.25 8.14h-16.82a16.2 16.2 0 0 1-16.22-16.22v-36.5c0-8.94 7.27-16.2 16.22-16.2h36.5c8.95 0 16.22 7.26 16.22 16.22v36.49c0 4.45-1.8 8.48-4.7 11.4m30.5 4.81h-4.52a16.2 16.2 0 0 1-16.22-16.22v-36.5c0-8.94 7.27-16.2 16.22-16.2h36.5c8.95 0 16.22 7.26 16.22 16.22v36.49a16.2 16.2 0 0 1-8 13.98m21.74.37a16.2 16.2 0 0 1-8.68-14.36v-36.5c0-8.94 7.27-16.2 16.22-16.2h36.5c8.95 0 16.22 7.26 16.22 16.22v36.49c0 7.44-5.01 13.71-11.84 15.62m17.76-10.42a16 16 0 0 1-.86-5.21v-36.5c0-8.94 7.27-16.2 16.22-16.2h36.5c8.95 0 16.22 7.26 16.22 16.22v36.49c0 8.9-7.17 16.12-16.04 16.22m21.1-23.29V18.25c0-8.96 7.27-16.22 16.22-16.22h36.5c8.95 0 16.22 7.26 16.22 16.22v36.49c0 8.96-7.27 16.22-16.22 16.22h-4.02m25.3-35.57V18.25c0-8.96 7.27-16.22 16.22-16.22h36.5c8.95 0 16.22 7.26 16.22 16.22v36.49c0 8.96-7.27 16.22-16.22 16.22h-8.21m29.49-47.87v-4.84c0-8.96 7.27-16.22 16.22-16.22h36.5c8.95 0 16.22 7.26 16.22 16.22v36.49c0 8.96-7.27 16.22-16.22 16.22h-12.4M2890.24 11a16.2 16.2 0 0 1 14.51-8.97h36.5c8.95 0 16.22 7.26 16.22 16.22v36.49c0 8.96-7.27 16.22-16.22 16.22h-16.6m48.59-67.97a16 16 0 0 1 5.51-.96h36.5c8.95 0 16.22 7.26 16.22 16.22v36.49c0 8.96-7.27 16.22-16.22 16.22h-20.78m65.01-68.93h29.77c8.95 0 16.22 7.26 16.22 16.22v36.49c0 8.96-7.27 16.22-16.22 16.22h-24.97m81.5-68.93h17.47c8.95 0 16.22 7.26 16.22 16.22v36.49c0 8.96-7.27 16.22-16.22 16.22h-29.16m97.99-68.93h5.17c8.95 0 16.22 7.26 16.22 16.22v36.49c0 8.96-7.27 16.22-16.22 16.22h-33.35m114.3-67.37a16.2 16.2 0 0 1 9.26 14.66v36.49a16.2 16.2 0 0 1-16.21 16.22h-36.5q-.54 0-1.08-.04m126.73-58.49a16 16 0 0 1 1.07 5.82v36.49c0 8.96-7.27 16.22-16.22 16.22h-36.5q-2.74-.01-5.2-.85m131.92-45.46v30.09c0 8.96-7.27 16.22-16.22 16.22h-36.5c-3.31 0-6.4-1-8.96-2.7m135.68-31.31v17.79c0 8.96-7.27 16.22-16.22 16.22h-36.5a16.2 16.2 0 0 1-12.12-5.46m138.84-16.26v5.5c0 8.96-7.27 16.22-16.22 16.22h-36.5a16.2 16.2 0 0 1-14.49-8.93m139.79-.64a16.2 16.2 0 0 1-14.8 9.57h-36.5c-7.8 0-14.32-5.51-15.87-12.86m132.48 11.67a16 16 0 0 1-6.11 1.19h-36.5a16.2 16.2 0 0 1-16.22-16.22v-.87m120.64 17.09h-30.42a16.2 16.2 0 0 1-16.22-16.22v-5.06m108.34 21.28h-18.12a16.2 16.2 0 0 1-16.22-16.22v-9.25m96.05 25.47h-5.83a16.2 16.2 0 0 1-16.22-16.22V41.3m83.87 28.37a16.2 16.2 0 0 1-9.87-14.93V37.1m75.32 24.05a16 16 0 0 1-1.32-6.41V32.91m74 16.08V28.72m74 7.98V24.52m74-.12v-4.06"})})}
1),L2="figGm",y2="_53CNx",C2="YzKSW",I2="k7a1H",P2="OkK7Y",b2="uh0AI",R2="CoBFV",u={Logo:L2,Submitted:y2,SpinnerSvg:C2,LogoImage:I2,Loading:P2,Inactive:b2,External:R2},E=66,k=H(function({index:t=0,logoUrl:c,shopName:o,loadingIndex:a=0,status:n}){const m=c?e(Y,{src:c,alt:o,objectFit:"cover",borderRadius:"base",aspectRatio:"auto",className:u.LogoImage}):e(C,{type:"store",size:"large-100",tone:"monochrome"});return n==="loading"&&a===t?e(v,{index:t,isLoading:a===t,children:m}):n==="submitted"?e(v,{index:t,isLoading:a===t,isSubmitted:!0,children:e(C,{type:"check",size:"large"})}):n==="failed"?e(v,{index:t,isLoading:a===t,isSubmitted:!0,children:e(C,{type:"alert-circle",size:"large"})}):n==="external"?e(v,{index:t,isSubmitted:!0,isExternal:!0,children:e(C,{type:"external",size:"large"})}):e(v,{index:t,children:a!==void 0&&t===a+2?null:m})});function v({index:s,children:t,isLoading:c,isSubmitted:o,isExternal:a}){return e("div",{className:A(u.Logo,{[u.Loading]:c&&!a,[u.Inactive]:!c,[u.Submitted]:o,[u.External]:a}),style:{"--animation-index":s,inlineSize:E,blockSize:E},children:[c&&e(S2,{className:u.SpinnerSvg,role:"status","aria-label":"Loading"}),t]})}function N2(){const{shop:{id:s}}=q(),[t,c]=P("processing"),o=W();return d(()=>{const a=setTimeout(()=>{c("processed")},T);return()=>clearTimeout(a)},[]),p(()=>o.value?t==="processed"?{shopId:s,status:"submitted",remoteReceipt:{status:"processed"}}:{shopId:s,status:"submitting"}:null,[s,t,o.value])}function M2(s){const[t,c]=P(0),o=p(()=>s.slice(1).some(a=>a.status==="submitted"||a.status==="failed"),[s]);return d(()=>{if(t>=s.length||t===1&&!o)return;const a=setTimeout(()=>{c(n=>n+1)},T);return()=>clearTimeout(a)},[t,s.length,o]),p(()=>s.map((a,n)=>n===t?{shopId:a.shopId,status:"loading"}:n<t?a.status==="failed"?{shopId:a.shopId,status:"failed"}:a.status==="submitted"?{shopId:a.shopId,status:"submitted"}:{shopId:a.shopId,status:"loading"}:{shopId:a.shopId,status:"pending"}),[s,t])}const k2="PjFjd",O2="u3j3z",A2="Lam8Z",O={RemoteCheckoutLogosContainer:k2,RemoteCheckoutLogos:O2,ShopName:A2};function V({remoteCheckouts:s}){const{i18n:t,shop:{id:c,name:o,remoteShopsConfigMap:a,brandSettings:n}}=q(),m=N2(),f=p(()=>[m,...s].filter(r=>r!==null),[m,s]),l=M2(f),h=p(()=>l.findIndex(({status:r})=>r==="loading"),[l]),[i,S]=P(h),[g,b]=P("loading");d(()=>{c&&setTimeout(()=>{b("submitted")},T)},[c]),d(()=>{h!==-1&&g==="submitted"&&setTimeout(()=>{S(h)},Z)},[h,g]);const L=p(()=>i===-1?0:`calc(50% - ${i*(_+Q)+_/1.75}px)`,[i]),x=G(r=>a?.get(r)?.name,[a]);function D(){if(i===-1)return null;const r=l[i]?.shopId;return r===c?o:x(r??"")}return e(F,{children:[e("div",{className:A(O.RemoteCheckoutLogosContainer),style:{"--translate-offset":L},children:e(I,{direction:"inline",gap:"base",alignItems:"start",justifyContent:"center",className:A(O.RemoteCheckoutLogos),children:l.map(({shopId:r,status:y},R)=>{if(r===c)return e(k,{index:R,loadingIndex:i,shopName:o,status:g,logoUrl:n?.squareLogo?.url},r);const N=a?.get(r);return N?e(k,{index:R,loadingIndex:i,logoUrl:N.brandSettings?.squareLogo?.url,shopName:N.name,status:y},r):e(k,{index:R,loadingIndex:i,status:y},r)})})}),e(w,{className:O.ShopName,children:[e(J,{children:e(z,{type:"generic",children:D()})}),e(z,{type:"small",color:"subdued",children:t.translate("general.autocomplete_selection",{number:i+1,total:l.length})})]})]})}function T2({receipt:s,message:t}){return s?.status==="processing_remote_checkouts"?e(I,{alignItems:"center",gap:"large-500",children:[e(M,{textAlign:"center",children:t}),e(V,{remoteCheckouts:s.remoteCheckouts})]}):s?.status==="processed"&&s?.completedRemoteCheckouts?.length?e(I,{alignItems:"center",gap:"large-500",children:[e(M,{textAlign:"center",children:t}),e(V,{remoteCheckouts:s.completedRemoteCheckouts})]}):e(I,{alignItems:"center",gap:"large-200",children:[e(w,{maxInlineSize:"64px",children:e(X,{size:"fill"})}),e(M,{textAlign:"center",children:t})]})}function q2(s,t,c){const o=s.purchaseOrder?.paymentLines;if(!o||o.length===0||t!=="SHOPIFY_INSTALLMENTS")return!1;for(const a of o){const n=a?.method;if(!n||n.type!=="wallet"||n.name!=="SHOP_PAY")continue;c.leaveErrorBreadcrumb("Installments selected but receipt used Shop Pay",{selectedPaymentMethodName:t,receiptPaymentMethodName:n.name});const m=new f2("User selected Installments but Shop Pay is used");return c.error(m,{metadata:{checkout:{paymentLineCount:o.length,selectedPaymentMethodName:t,receiptPaymentMethodName:n.name}}}),!0}return!1}function G2(){const{paymentLines:s}=m2(),{paymentMethods:t}=l2(),{checkout:c,observability:o,shopPay:a}=q(),n=c.latestReceipt.value,m=j(()=>r2(t.value,s.value)),f=B(!1),l=e2(),h=t2({isModalRendered:f,modalPaymentMethodConfig:m}),i=n?.id,S=v2(a),g=K(new Set);d(()=>
1{l()},[i]);const b=a2();d(()=>{!n||n.status!=="processed"||g.current.has(n.id)||q2(n,S,o)&&g.current.add(n.id)},[o,n,S]);const{progress:L}=s2();return d2({stage:p2.Complete,id:"Processing"}),g2("Processing"),h2("processing"),d(()=>{L("processing-page-auto-progress")},[L,o]),$(()=>i2({content:h.value,role:"alert"})),e(u2,{children:[e(U,{when:b,fallback:e(o2,{}),children:e(n2,{})}),e(c2,{modalPaymentMethodConfig:m,onModalRender:()=>{f.value=!0}}),e(T2,{receipt:n,message:h})]})}export{G2 as default};

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.