PageSourceSearch

https://truflask.com/cdn/shopifycloud/checkout-web/assets/c1/289b89e4.CN-q5UwH.js

js truflask.com collected 2026-10-07 19:22:43 UTC 7,127 bytes, 1 lines download raw bytes

1import{q as e,u as i,g as a,z as t,o as s,h as n,k as r,_ as l,w as o,t as c,L as d,p,S as u}from"./2c1ab0fe.DlNazk3M.js";import{L as h,c1 as m,c2 as g,c3 as v,c4 as f,x as b,v as y,m as _,c5 as j,o as k,br as w,ai as D,af as x,ag as S,U as P,i as z,S as L,H as A,c6 as I,f as N,ao as M,a1 as C,j as E,c7 as T}from"./164ad2e3.CR6m0m--.js";import{T as B}from"./7b0c98ea.YpSSydyu.js";import{u as G,S as R,D as F}from"./d6447d9e.DBLUiUt0.js";import{b as O,d as q,c as V,P as Y,a as H}from"./0a30a815.39p9N5f_.js";import{S as U}from"./f51e663e.D722Q7IE.js";import{c as $,aP as W,b9 as X,aq as J,bL as K,v as Q,bl as Z}from"./4b4bc88f.DJ4vpQqJ.js";import{P as ee}from"./f49d4216.CB6mMEpU.js";import{a as ie,b as ae,E as te}from"./a422df8c.DDhe13KA.js";import{T as se}from"./7e8cd205.8iAG-o1l.js";import{B as ne}from"./0627daf2.DjTJ4CoH.js";import{m as re}from"./21cc90a2.DHzOO82q.js";import{b as le,c as oe,u as ce}from"./64de7b49.FXU1HLG6.js";import{u as de}from"./9f047e05.lZ3NAtFn.js";import{u as pe,S as ue}from"./71ae3d5c.0c8Rx8xO.js";import{h as he}from"./17425706.D_AAqVWW.js";import"./d0bb51ec.CruejZky.js";import"./app.DKKjpp8o.js";import"./f67abd2c.Dckgq3F6.js";import"./60a453ce.CV8OqWZ9.js";import"./e12db40c.C6hBKds9.js";import"./9dba8418.C1GTC4hZ.js";import"./efa0389a.DdiqF0XU.js";import"./22345fd4.BS1FeGP9.js";import"./8e79be58.BuaKFdHF.js";import"./3ca8ef7e.Dwlm57SQ.js";import"./347b440c.Bp7i898X.js";import"./9ce08e25.4K_vfqyE.js";import"./47b970b2.CtY8XI3m.js";import"./a9fa9fda.QS_nBA-t.js";import"./ca3e798e.ymm59RLp.js";import"./90e26f5f.D6HN2ou0.js";import"./31cc568e.95lmLO5k.js";import"./4b1c22b7.xwiOlZsK.js";import"./5fda1420.C9a0YiCo.js";const me="/cdn/shopifycloud/checkout-web/assets/c1/assets/shipping.CG9i_A4v.svg",ge=()=>{const{i18n:e,checkout:a}=$(),t=a.configuration.layout.isOnePage.value,s=i(h,{href:"/information",children:e.translate("shipping.shipping_information_redirect_link")});return i(te,{children:[!t&&i(ie,{children:i("img",{src:me,alt:""})}),i(ae,{children:e.translate("shipping.shipping_information_required_notice",{link:s})})]})},ve=()=>{const{i18n:e,checkout:a}=$(),t=a.configuration.layout.isOnePage.value;return i(te,{children:[!t&&i(ie,{children:i("img",{src:me,alt:""})}),i(ae,{children:e.translate("shipping_errors.shipping_method_not_available_generic.one")})]})};function fe(){const{i18n:p,checkout:{negotiator:u}}=$(),h=m(),{allViolations:v,deliveryNext:f}=u.current.fields,b=X("deliveryNext"),y=function(){const{userEvents:i}=$(),a=W();return e((e,t,s)=>{const n={schemaId:"checkout_display_shipping_methods/1.0",payload:{eventTimestamp:t,shopId:a.value.defaultAttributes?.shopId||1,apiClientId:s,promiseRetrievalTime:e}};i.monorailEvent(n)},[i,a.value.defaultAttributes?.shopId])}(),_=a(b.peek()),[,j]=t(),k=a(void 0),w=s(!1),{shippingAddress:D}=u.parts,x=G(j),S=g();n(()=>{w.value=!0},[w]);const P=r(()=>{const e=h.value.shippableDeliveryLines;return e?J(e):[]});l(()=>c(()=>
1{if(b.value)return void(k.current??=Date.now());_.current=!1;const e=k.current;if(null==e)return;const i=Date.now(),a=i-e,t=P.peek()[0]?.methods[0]?.deliveryPromiseProviderApiClientId;if(k.current=void 0,!t)return;const s=Q(t);d(()=>{y(a,i,Number(s)),S(a,Number(s))})}),[b,S,P,y]);const z=r(()=>v.value?.some(e=>"target"in e&&e.target.startsWith("$.cart.deliveryGroups[0].deliveryAddress"))),L=r(()=>function({deliveryLoading:e,showLoading:i,hasMounted:a,hasFilledShippingMethods:t}){return e&&i&&(a||!t)}({deliveryLoading:b.value,showLoading:_.current,hasMounted:w.value,hasFilledShippingMethods:"filled"===f.value?.status&&P.value.length>0}));return i(o,{when:()=>!L.value,fallback:i(ee,{text:p.translate("shipping.waiting_on_rate_notice")}),children:i(o,{when:()=>!z.value,fallback:i(ye,{}),children:i(o,{when:()=>!K(D.value),fallback:i(ge,{}),children:i(o,{when:()=>"filled"===f.value?.status,fallback:i(be,{}),children:i(o,{when:()=>P.value.length>0,fallback:i(be,{}),children:i(R,{lines:P.value,loading:x})})})})})})}function be(){const{checkout:{negotiator:e}}=$(),{deliveryNext:a,shippingAddress:t}=e.current.fields,{shippingAddress:s}=e.parts,n=v();return i(o,{when:()=>{const e=s.value,i=n(e);return f({deliveryNext:a.value,proposedAddress:e,negotiatedAddress:t.value,reloadStrategy:i})},fallback:i(ge,{}),children:i(ve,{})})}function ye(){const{router:e}=$();return e.redirect("/information"),null}const _e=e=>i(z,{children:e});function je(){const{i18n:e,checkout:a}=$(),{nextPage:t,previousPage:s}=b(),{progress:n,progressing:l}=y(),{deliveryNext:c,optionalDuties:h}=a.negotiator.current.fields,m=X("deliveryNext").value,g=e.translate("shipping.shipping_method_title"),v=e.translate("shipping.duties_and_taxes_title"),f=e.translate("general.continue_to_payment_method"),G=a.configuration.layout.isOnePage.value,R=_(),W=j(),J=le(),K=r(()=>Z(c.value)||J.value.showShipmentBreakdown?"small-400":"base"),Q=oe(),{customizationsBefore:ee,customizationsAfter:ie}=ce({hasMultipleDeliveryGroups:Q.value.hasMultipleDeliveryGroups,targeted:!1}).value,ae=k("Checkout::Dynamic::Render","DELIVERY1"),te=k("Checkout::Dynamic::Render","DELIVERY2");pe({stage:m?ue.Usable:ue.Complete,id:"Shipping"}),de("shipping");const me=r(()=>null==c.value||"unavailable"===c.value.status);w(e=>{"success"===e.type&&"progression"===e.negotiationStage&&(R("pageSubmit",{timestamp:new Date}),W({type:"page_submit",page:"shipping"}))});const ge=r(()=>Boolean(c.value));p(()=>{ge.value&&d(()=>{R("shippingMethodsFilled",{timestamp:new Date}),W({type:"shipping_methods_filled"})})});const ve=r(()=>{const e=Q.value.onlyDeliveryGroupType;return{groupType:e?re(e):void 0,includeDeliverySelectionGroups:!1}});return i(u,{children:[i(se,{children:e.translate("shipping.title")}),i(D,{onSubmit:()=>n("shipping-page-submit"),disabled:l.value||me.value,implicitSubmit:f,children:i(x,{section:"delivery",children:i(S,{section:"delivery",children:i(O,{children:[i(q,{children:[i(P,{customizations:ae,render:_e}),i(z,{accessibilityLabel:g,children:i(L,{gap:K.value,children:[i(L,{gap:"small-400",children:[i(A,{autoFocus:!G,id:I,level:1,children:g}),he("shipping.shipping_method_notice",e)?i(N,{children:e.translate("shipping.shipping_method_notice")}):null]}),i(L,{gap:"base",children:i(M,{children:[i(o,{when:()=>J.value.showShipmentBreakdown,children:i(B,{children:i(U,{})})}),i(P,{customizations:ee,options:ve.value}),i(fe,{}),i(P,{customizations:ie,options:ve.value})]})})]})}),i(o,{when:()=>h.value?.refuseDutiesPermitted,children:i(z,{accessibilityLabel:v,children:i(L,{gap:"large-200",children:[i(A,{id:`${I}-duties-and-taxes`,level:1,children:v}),i(F,{})]})})}),i(P,{customizations:te,render:_e})]}),i(V,{children:[i(Y,{children:i(ne,{inlineSize:"fill",disabled:me.value,type:"submit",loading:l.value,size:"large",pixelId:"go_to_next_step",variant:"primary",children:t.label})}),s.route?i(H,{children:i(ne,{href:s.route,variant:"plain",inlineSize:"fill",textDecoration:"none",pixelId:"go_to_previous_step",children:i(L,{direction:"inline",gap:"small-200",alignItems:"center",children:[i(C,{type:"chevron-left",size:"small"}),i(E,{children:s.label})]})})}):null]})]})})})}),i(T.Prefetch,{})]})}
1export{je 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.