PageSourceSearch

https://us.caudalie.com/_nuxt/Ckgf-3HM.js

js caudalie.com collected 2026-09-24 17:43:58 UTC 11,200 bytes, 1 lines download raw bytes

1import{bp as X,bv as a,bq as l,bD as y,bI as o,br as i,cd as le,bs as r,bV as W,bJ as Q,bK as x,bt as z,bz as J,cw as c,bL as K,bP as ue,bl as Z,cf as ee,bi as te,bn as re,bc as de,bA as n,c4 as v,bB as I,bu as S,di as ce,bx as pe,bw as me,cR as fe,bT as ge,cr as he,bH as ye,cb as be,bo as Ce,bd as ve,bG as ke,bF as _e,c8 as we}from"./stBqee-h.js";import{C as se}from"./htL2Tbmm.js";import{_ as oe}from"./DL1Jj9Kq.js";import{C as ae}from"./BlphwbwJ.js";import{C as ne,_ as Ie,u as $e}from"./BxQKblXT.js";import{_ as Me,u as Ae}from"./86PI2X2D.js";import{u as Pe}from"./w4bKuG-r.js";import{u as Se,C as Y}from"./B1ZNd5lj.js";import Ee from"./BFBtBOe9.js";import{_ as Ge}from"./ofewi2vq.js";import{u as Te}from"./BjiK4Cja.js";import{u as Be}from"./D1wLlblK.js";import"./BrmfDkPl.js";import"./Dl_ClBlf.js";import"./BziCqTBQ.js";import"./BFbJ-Ib_.js";import"./CuQBr7AO.js";import"./C68zxdnB.js";import"./B4I9GNUe.js";import"./CuHDAv6B.js";import"./B3GWNLoX.js";import"./D1_A9unE.js";import"./DdRNaZum.js";import"./DJgasq8L.js";import"./CJhHy4xR.js";import"./DvVvoVCD.js";import"./ww08Yd3O.js";import"./BU4bZFWv.js";import"./B-ficXH8.js";import"./DTsU-o-p.js";import"./qyh3T1lj.js";import"./CTGAjrYP.js";import"./BxO6sGtS.js";import"./CPLX_rAm.js";import"./DuOQ1gpT.js";import"./0okz9kHf.js";import"./CGlMt6IU.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"c89fa4f248f1a0797490456fec95f51cf2ebd94a"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="66389c5c-ba17-467f-976e-7e05b60ee20b",e._sentryDebugIdIdentifier="sentry-dbid-66389c5c-ba17-467f-976e-7e05b60ee20b")}catch{}})();const Ne=Z({name:"CartPreview",components:{CdlButton:ae,CmsComponents:Ee,CartItem:Ie,MyCaudalieCartItem:Me,CouponCode:ne,CdlOverlay:oe},props:{displayNextButton:{type:Boolean,default:!1}},emits:["click:next-button"],setup(){const e=de(),{cart:t,hasOnlyMyCaudalieItems:k,itemsExceedingMaxQty:$,removeItem:M,loading:p}=ee(),{updateItemQty:g,loading:m}=Pe(),b=n(()=>m.value||p.value),{isGiftWithPurchaseAvailable:f}=$e(),h=n(()=>c.getItems(t.value).filter(Boolean).map(u=>({...u,product:{...u.product,...u.configured_variant}}))),A=n(()=>{const u=[],w=[];return h.value.forEach(F=>{c.getItemIsMyCaudalieGift(F)?w.push(F):u.push(F)}),{products:u,myCaudalieGifts:w}}),d=n(()=>c.getTotalItems(t.value)),_=n(()=>c.getSubtotal(t.value)),E=n(()=>c.getDiscount(t.value)),G=n(()=>c.getAppliedGiftCards(t.value)),R=n(()=>c.getGiftCardsAmountUsed(t.value)),L=n(()=>G.value.length>0&&G.value[0].code),T=n(()=>E.value>0),D=n(()=>-1*E.value),H=n(()=>t.value?.prices?.applied_taxes?.reduce((u,w)=>u+w.amount.value,0)?.toFixed(2)),C=n(()=>c.getEstimatedShippingAmount(t.value)),B=n(()=>c.getEstimatedTotalAmount(t.value)),{content:P,fetchPageContent:N}=Se(Y.CHECKOUT_REINSURANCE),j=n(()=>P.value?.[0]?.props.blocks),U=u=>$(h.value).includes(u.product.sku);te(()=>{N(Y.CHECKOUT_REINSURANCE)});const{toggleCartSidebar:V}=re(),O=()=>{v({name:I.Home}),V()},s=u=>{u&&f.value&&O()},q=async(u,w)=>{await g(u,w)},ie=async u=>{await M({product:u}),t.value?.items?.length||v({name:I.MyAccountRedeemMyGift})};return{cart:t,discountAmount:D,hasDiscount:T,giftCardsAmount:R,hasGiftCards:L,totalItems:d,products:h,groupedProducts:A,subtotal:_,cartGetters:c,shippingAmount:C,totalAmount:B,reinsuranceCheckoutBlocks:j,taxes:H,onModifyClick:O,showTax:e.public.showTax,handleAppliedCoupon:s,hasOnlyMyCaudalieItems:k,isExceedingQty:U,handleQuantityChange:q,handleRemoveItem:ie,updateCartLoading:m,cartLoading:b}}}),Oe={key:0,"data-testid":"cart-preview"},Re={class:"hidden px-4 lg:flex lg:justify-between lg:items-center"},Le={class:"font-bold uppercase","data-testid":"cart-qty"},De={key:0,class:"justify-between hidden px-4 mt-4 text-xs uppercase lg:flex"},He={key:0},je={class:"mt-2 mb-4 border-b border-gray-200"},Ue={class:"pb-2 text-xs tracking-wide uppercase"},Ve={key:1,class:"justify-between hidden px-4 py-2 border-b lg:flex"},qe={class:"font-bold","data-testid":"taxes"},Fe={key:2,class:"justify-between hidden px-4 mt-2 lg:flex"},Qe={class:"font-bold","data-testid":"shipping-amount"},ze={key:3,class:"justify-between hidden px-4 mt-2 lg:flex"},Ke={class:"font-bold","data-testid":"discounts-amount"},We={key:4,"data-testid":"gift-cards-section",class:"justify-between hidden px-4 mt-2 lg:flex"},xe={class:"font-bold","data-testid":"gift-cards-amount"},Je={key:5,class:"justify-between hidden px-4 mt-2 border-t lg:flex"},Ye={class:"font-bold","data-testid":"taxes"},Xe={key:6,class:"justify-between hidden px-4 pt-2 mt-2 font-bold border-t lg:flex"},Ze={class:"uppercase"},et={"data-testid":"total-amount"}
1,tt={key:7,class:"p-2 bg-white lg:p-0 lg:mt-4"},st={key:0,class:"hidden mt-4 border lg:block"},ot={key:1,class:"hidden p-4 py-4 mt-4 border rounded-lg lg:block"};function at(e,t,k,$,M,p){const g=oe,m=S("CartItem"),b=S("MyCaudalieCartItem"),f=ae,h=ne,A=S("CmsComponents");return e.cart?(a(),l("div",Oe,[y(g,{loading:e.cartLoading,"position-type":"fixed"},null,8,["loading"]),o("div",{class:W(["lg:pt-4 lg:border rounded-lg",{"lg:pb-0":e.displayNextButton}])},[o("div",Re,[o("p",Le,i(e.$t("checkout.your-shopping-cart",{count:e.totalItems})),1),o("a",{class:"text-sm underline","data-testid":"cart-modify-link",onClick:t[0]||(t[0]=le((...d)=>e.onModifyClick&&e.onModifyClick(...d),["prevent"]))},i(e.$t("common.change")),1)]),e.groupedProducts.products.length?(a(),l("div",De,[o("p",null,i(e.$t("common.products")),1),e.subtotal>0?(a(),l("p",He,i(e.$t("common.subtotal")),1)):r("",!0)])):r("",!0),o("div",{class:W(["hidden lg:block lg:border-t lg:border-gray-200 max-h-[22rem] overflow-auto mt-2 py-2 px-4",{"lg:border-b lg:border-b-gray-200":!e.hasOnlyMyCaudalieItems}])},[e.groupedProducts.products.length?(a(!0),l(Q,{key:0},x(e.groupedProducts.products,d=>(a(),z(m,{key:("cartGetters"in e?e.cartGetters:J(c)).getItemSku(d),"cart-item":d,"is-exceeding-qty":e.isExceedingQty(d),class:"mb-5"},null,8,["cart-item","is-exceeding-qty"]))),128)):r("",!0),e.groupedProducts.myCaudalieGifts.length?(a(),l(Q,{key:1},[o("div",je,[o("p",Ue,i(e.$t("mini-cart.mycaudalie-gifts")),1)]),(a(!0),l(Q,null,x(e.groupedProducts.myCaudalieGifts,d=>(a(),z(b,{key:("cartGetters"in e?e.cartGetters:J(c)).getItemSku(d),"cart-item":d,loading:e.updateCartLoading,updatable:e.hasOnlyMyCaudalieItems,removable:e.hasOnlyMyCaudalieItems,class:"mb-5","onChange:quantity":_=>e.handleQuantityChange(d,_),"onClick:remove":_=>e.handleRemoveItem(d)},null,8,["cart-item","loading","updatable","removable","onChange:quantity","onClick:remove"]))),128))],64)):r("",!0)],2),!e.hasOnlyMyCaudalieItems||e.subtotal>0?(a(),l("div",Ve,[o("p",null,i(e.$t("common.subtotal")),1),o("p",qe,i(e.$fc(e.subtotal)),1)])):r("",!0),!e.hasOnlyMyCaudalieItems||e.shippingAmount>0?(a(),l("div",Fe,[o("p",null,i(e.$t("common.shipping-cost")),1),o("p",Qe,i(e.$fc(e.shippingAmount)),1)])):r("",!0),e.hasDiscount?(a(),l("div",ze,[o("p",null,i(e.$t("common.discount")),1),o("p",Ke,i(e.$fc(e.discountAmount)),1)])):r("",!0),e.hasGiftCards?(a(),l("div",We,[o("p",null,i(e.$t("gift-card.cart-summary")),1),o("p",xe,i(e.$fc(e.giftCardsAmount)),1)])):r("",!0),e.taxes>0&&e.showTax?(a(),l("div",Je,[o("p",null,i(e.$t("common.tax")),1),o("p",Ye,i(e.$fc(e.taxes)),1)])):r("",!0),!e.hasOnlyMyCaudalieItems||e.totalAmount>0?(a(),l("div",Xe,[o("p",Ze,i(e.$t("checkout.order-total")),1),o("p",et,i(e.$fc(e.totalAmount)),1)])):r("",!0),e.displayNextButton?(a(),l("div",tt,[y(f,{class:"w-full","data-testid":"next-button",onClick:t[1]||(t[1]=d=>e.$emit("click:next-button"))},{default:K(()=>[ue(i(e.$t("common.next")),1)]),_:1})])):r("",!0)],2),e.hasOnlyMyCaudalieItems?r("",!0):(a(),l("div",st,[y(h,{onAppliedCoupon:e.handleAppliedCoupon},null,8,["onAppliedCoupon"])])),e.reinsuranceCheckoutBlocks?(a(),l("div",ot,[y(A,{content:e.reinsuranceCheckoutBlocks},null,8,["content"])])):r("",!0)])):r("",!0)}const nt=X(Ne,[["render",at],["__scopeId","data-v-b4ca5887"]]),it=Z({name:"CheckoutPage",components:{Steps:Ge,CdlLoader:se,CartPreview:nt},setup(){const e=pe(),{t}=me(),{defineHeadTags:k}=Be(),{send:$}=fe(),{path:M}=e,{cart:p,load:g,isCartOnlyVirtual:m,isMyCaudalieGiftsCompatibleCart:b,hasOnlyMyCaudalieItems:f,removeAddresses:h}=ee(),{isAuthenticated:A}=ge(),{baseCustomerPoints:d,setPointsInCart:_}=he(),{isAddressesPrefilledFastCheckout:E}=Ae(),{eCommerceView:G}=ye(),{paymentError:R,resetPaymentError:L}=Te(),T=be(),D=T?.hasPointsOfSale,H=T?.hasMyCaudalieHomeDelivery===!0,C=n(()=>M.split("/").pop()),B=_e(!1),P=n(()=>{const s=[];return s.push({label:t("checkout.my-account.login-submit"),url:"user-account"}),f.value===!0&&D&&!H?(s[0].label=t("checkout.mycaudalie-steps.choose-gift"),m.value?s.push({label:t("checkout.step.billing"),url:"billing"}):s.push({label:t("checkout.mycaudalie-steps.choose-pickup-location"),url:"shipping"}),s.push({label:t("checkout.mycaudalie-steps.summary"),url:"payment"})):(m.value?s.push({label:t("checkout.step.billing"),url:"billing"}):s.push({label:t("checkout.step.shipping"),url:"shipping"}),A.value&&d.value>=100&&b.value&&!f.value&&s.push({label:t("checkout.step.fidelity"),url:"mycaudalie"}),s.push({label:t("checkout.step.payment"),url:"payment"})),s}),N=n(()=>P.value.findIndex(s=>s.url===C.value)),j=n(()=>C.value==="result"),U=n(()=>C.value==="mycaudalie"),V=async s=>{if(s<=N.value){if(s===0&&f.value){await v({name:I.MyAccountRedeemMyGift});return}const{url:q}=P.value[s];await v(`/checkout/${q}`)}},O=()=>
1{v({name:I.CheckoutPayment})};return k(()=>({metaTags:{title:t("checkout.step.billing")}})),Ce(()=>{_(p)}),te(async()=>{if(p.value||await g(),p.value?.items?.length===0&&C.value!=="thank-you")return v({name:I.Home});if(!p.value?.my_caudalie_settings.is_checkout_available)return $({message:p.value?.my_caudalie_settings?.error_message,type:"danger"}),v({name:I.Home});G({event:"begin_checkout",coupon:p.value.applied_coupons?.map(s=>s.code).join(", ")}),E.value&&await h(),B.value=!0}),ve(R,async s=>{s&&(await g(),L())}),ke({meta:[{name:"robots",content:"noindex, nofollow"}]}),{isMyCaudalieStep:U,gotToNextStep:O,handleStepClick:V,stepsList:P,currentStepIndex:N,isCartInitialized:B,isResult:j,currentStep:C}}}),lt={class:"w-full lg:mt-4 lg:flex"},ut={class:"checkout-content"},rt={key:0,class:"lg:ml-8 lg:w-[400px] lg:block"};function dt(e,t,k,$,M,p){const g=S("Steps"),m=we,b=se,f=S("CartPreview");return a(),l("div",lt,[o("div",ut,[e.isResult?r("",!0):(a(),z(g,{key:0,"data-testid":"checkout-steps",class:"mb-6 sticky top-0 z-10",items:e.stepsList,"active-index":e.currentStepIndex,"bold-active":"",onChange:e.handleStepClick},null,8,["items","active-index","onChange"])),y(b,{id:"checkout-step-content",loading:!e.isCartInitialized,"loader-class":"mx-auto mt-[100px]"},{default:K(()=>[y(m)]),_:1},8,["loading"])]),e.isResult?r("",!0):(a(),l("div",rt,[y(ce,{name:"fade"},{default:K(()=>[y(f,{key:"order-summary",class:"lg:relative left-0 fixed bottom-[0vh] w-[100vw] lg:w-full","display-next-button":e.isMyCaudalieStep,"onClick:nextButton":t[0]||(t[0]=h=>e.gotToNextStep())},null,8,["display-next-button"])]),_:1})]))])}const Wt=X(it,[["render",dt],["__scopeId","data-v-46d8cbd9"]]);export{Wt 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.