PageSourceSearch

https://us.caudalie.com/_nuxt/BR68ED3U.js

js caudalie.com collected 2026-10-02 03:09:00 UTC 7,488 bytes, 1 lines download raw bytes

1import{a as $,n as I,m as a,l as b,N as R,v as t,I as S,F as n,j as m,A as _,k as v,t as g,ar as G,x as d,P as k,an as H,G as V,H as U,L as P,bD as q,bE as z,u as Y,R as J,E as K,c as Q,bN as W,C as X}from"./DCZpLbfX.js";import{u as Z}from"./DKKt7D0f.js";import{O as h,u as ee}from"./CsT2tnAP.js";import{C as te}from"./CFnCeirA.js";import{S as j}from"./ByuouICn.js";import{u as re}from"./CImlrUoj.js";import{i as L,a as oe,b as A}from"./BY3TUsHe.js";import{O as s}from"./jWVosTa3.js";import{O as y}from"./DHokNY_t.js";import{_ as N}from"./CDDwdNXp.js";import{B as se}from"./D9UJZvI4.js";import{_ as ae}from"./CQs5WH56.js";import{_ as ne}from"./DAfc51Hy.js";import"./DDCG22E6.js";import"./CVugGi9Y.js";import"./CG0oby4T.js";import"./CmzXo4ty.js";import"./Dv1B4Lge.js";import"./DJzSebCN.js";import"./BHTh4ryB.js";import"./CQ7zkQuV.js";import"./Boje4oBa.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};r.SENTRY_RELEASE={id:"f89d455ce9c6e94060068617214014e5c7f6696c"};var e=new r.Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="085224f4-ef9f-4206-ae89-9d81a4ea9bbf",r._sentryDebugIdIdentifier="sentry-dbid-085224f4-ef9f-4206-ae89-9d81a4ea9bbf")}catch{}})();const le={class:"flex gap-[10px]"},de={key:0,class:"pt-[3px]"},ie={class:"w-[38px] h-[38px] lg:w-[43px] lg:h-[43px] flex items-center justify-center bg-th-primary-var rounded-[8px]"},ce={class:"flex-1"},ue={class:"font-bold"},me={class:"flex gap-[17px] justify-between"},pe={class:"text-[20px]"},fe=$({__name:"OrderListItem",props:{order:{}},setup(r){const e=r,{t:o,locale:l}=I(),p=d(()=>e.order.__type===y.MyCaudalie?{name:k.MyAccountOrderMyCaudalie,params:{orderId:e.order.increment_id}}:{name:k.MyAccountOrderStandard,params:{orderId:e.order.order_number}}),c=d(()=>e.order.__type===y.MyCaudalie?e.order.increment_id:e.order.order_number),f=d(()=>{if(e.order.__type===y.MyCaudalie)return L(e.order)?o("my-account.orders.timeline.ready-for-pickup"):o("my-account.order-history.status.sent-by-email");switch(e.order.status){case s.Processing:return o("my-account.orders.timeline.confirmed");case s.Integrated:return o("my-account.order-history.status.processing");case s.Complete:return oe(e.order)?o("my-account.order-history.status.sent-by-email"):A(e.order)?o("my-account.order-history.status.collect"):o("my-account.order-history.status.complete");case s.Delivering:return o("my-account.order-history.status.delivering");case s.Closed:return o("my-account.order-history.status.closed");default:return null}}),i=d(()=>{if(e.order.__type===y.MyCaudalie)return{backgroundColor:"#E1DCFA",color:"#2D1946"};switch(e.order.status){case s.Processing:case s.Closed:return{backgroundColor:"#2D1946",color:"#fff"};case s.Delivering:case s.Complete:return e.order.status===s.Complete&&A(e.order)?{backgroundColor:"#2D1946",color:"#fff"}:{backgroundColor:"#2D1946",color:"#fff"};default:return{backgroundColor:"#2D1946",color:"#fff"}}}),x=d(()=>{if(e.order.__type===y.MyCaudalie)return L(e.order)?"pharmacie":"gift";switch(e.order.status){case s.Processing:case s.Closed:return"valid-basket";case s.Integrated:return"clock2";case s.Delivering:case s.Complete:return A(e.order)?"pharmacie":"box";default:return null}}),w=d(()=>e.order.__type===y.MyCaudalie?e.order.order_date:e.order.created_at),B=d(()=>new Date(w.value).toLocaleDateString(l.value)),D=d(()=>e.order.__type===y.MyCaudalie?0:e.order.grand_total);return(C,E)=>{const M=R;return a(),b(M,{to:t(p),class:"border border-black border-opacity-30 pl-[18px] pr-[15px] py-[16px] rounded-[10px] flex flex-col gap-[17px]"},{default:S(()=>[n("div",le,[t(x)?(a(),m("div",de,[n("div",ie,[_(N,{name:t(x),class:"text-[22px] lg:text-[28px]"},null,8,["name"])])])):v("",!0),n("div",ce,[n("p",ue,g(C.$t("my-account.orders.order-number",{number:t(c)})),1),n("p",null,g(t(B)),1)]),n("div",null,[_(N,{name:"chevronr",class:"text-[22px]"})])]),n("div",me,[n("div",null,[t(f)?(a(),m("div",{key:0,class:"px-[10px] py-[3px] rounded-full flex items-center gap-[8px]",style:G(t(i))},[n("span",null,g(t(f)),1),r.order.__type===t(y).MyCaudalie&&t(L)(r.order)?(a(),b(N,{key:0,name:"qrcode",class:"text-[18px]"})):v("",!0)],4)):v("",!0)]),n("div",pe,g(C.$fc(t(D))),1)])]),_:1},8,["to"])}}}),ye={class:"grid grid-cols-1 md:grid-cols-2 gap-[16px] lg:gap-[12px]",ref:"list"},ge={key:0,class:"flex justify-center mt-[20px]"},_e=$({__name:"OrderList",props:{orders:{},nextButtonVisible:{type:Boolean},nextButtonLoading:{type:Boolean}},emits:["click:next"],setup(r){const e=H("list");return re(e),(o,l)=>
1(a(),m("div",null,[n("ul",ye,[(a(!0),m(V,null,U(r.orders,(p,c)=>(a(),m("li",{key:c},[_(fe,{order:p},null,8,["order"])]))),128))],512),r.nextButtonVisible?(a(),m("div",ge,[_(j,{loading:r.nextButtonLoading,onClick:l[0]||(l[0]=p=>o.$emit("click:next"))},{default:S(()=>[P(g(o.$t("common.see-more")),1)]),_:1},8,["loading"])])):v("",!0)]))}}),xe=$({__name:"OrderFilterBar",props:z({filters:{}},{selected:{},selectedModifiers:{}}),emits:["update:selected"],setup(r){const e=q(r,"selected"),o=r,{t:l}=I(),p={[h.Products]:l("my-account.orders.filters.products"),[h.Vouchers]:l("my-account.orders.filters.vouchers"),[h.MyCaudalie]:l("my-account.orders.filters.myc"),[h.All]:l("my-account.orders.filters.all")},c=d(()=>o.filters.map(f=>({value:f,label:p[f]})));return(f,i)=>(a(),b(ae,{filters:t(c),selected:e.value,"onUpdate:selected":i[0]||(i[0]=x=>e.value=x)},null,8,["filters","selected"]))}}),be={class:"text-[28px] leading-[40px] lg:text-[32px] lg:leading-[46px] text-center lg:text-left mt-[18px]"},ve={class:"mt-[22px]"},he={key:1,class:"flex flex-col items-center lg:items-start"},ke={class:"mb-4 text-center lg:text-left","data-testid":"order-history-no-order"},qe=$({__name:"MyAccountOrdersListPage",setup(r){const e=X(null),{$previousRoute:o}=Y(),l=J(),{pageView:p}=K(),{t:c}=I(),{defineHeadTags:f}=Z(),{ordersByFilter:i,hasMoreOrdersByFilter:x,loadingAggregation:w,loadingMoreByFilter:B,loadOrders:D,loadMoreOrders:C}=ee(),E=[{label:c("common.my-account"),link:{name:k.MyAccountDashboard}},{label:c("my-account.order-history.title")}],M=d(()=>Object.values(h).filter(u=>i.value[u]?.length>0)),T=d(()=>Object.values(i.value).every(u=>u.length===0));return Q(async()=>{p({page_type_1:"account",page_type_2:"my_orders"}),l?.trackView("myaccount_orders",window.location.pathname,{env:{template:"myaccount_orders"}});try{(T.value||![k.MyAccountOrderStandard,k.MyAccountOrderMyCaudalie].includes(o.value?.name))&&await D()}finally{e.value=Object.keys(i.value).find(u=>i.value[u]?.length>0)??null}}),f(()=>({metaTags:{title:c("my-account.menu.order-details")}})),(u,O)=>(a(),m("div",null,[_(se,{items:E}),n("h1",be,g(u.$t("my-account.order-history.title")),1),n("div",ve,[t(w)?(a(),b(te,{key:0,loading:""})):t(T)?(a(),m("div",he,[n("p",ke,g(u.$t("my-account.order-history.no-order")),1),_(j,{"data-testid":"order-history-start-shopping",to:"/"},{default:S(()=>[P(g(u.$t("common.start-shopping")),1)]),_:1})])):(a(),m(V,{key:2},[t(M).length>0?(a(),b(xe,{key:0,class:"mb-[30px] lg:mb-[36px]",filters:t(M),selected:t(e),"onUpdate:selected":O[0]||(O[0]=F=>W(e)?e.value=F:null)},null,8,["filters","selected"])):v("",!0),t(e)?(a(),b(_e,{key:1,orders:t(i)[t(e)],"next-button-visible":t(x)[t(e)],"next-button-loading":t(B)[t(e)],"onClick:next":O[1]||(O[1]=F=>t(C)(t(e)))},null,8,["orders","next-button-visible","next-button-loading"])):v("",!0)],64))]),_(ne,{class:"mt-[70px]"})]))}});export{qe 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.