PageSourceSearch

https://reservation.parcasterix.fr/assets/Confirmation.presentation-B7NX3nIp.js

js parcasterix.fr collected 2026-10-01 11:54:15 UTC 10,527 bytes, 127 lines download raw bytes

1import{q as i,j as e,D as x,a6 as R,a as t,df as j,dg as G,dh as z,di as B,h as H,dj as v,dk as K,dl as F,dm as M,dn as X,dp as U,dq as Y,dr as q,r as L,c0 as Q,aT as J,ds as Z,dt as ee,du as te,dv as $,bc as D,dw as re,dx as se,dy as ne,dz as oe,dA as ae,dB as ie,dC as de,dD as w,dE as ce,R as C,F as y,dF as V,dG as le,dH as _,U as pe,X as me,dI as ue,dJ as xe,I as he,dK as ge,dL as fe,dM as Se,_ as Ce,dN as ye,dO as je,dP as Oe,dQ as Pe,dR as Le,dS as De,dT as Te,dU as ve,dV as be,dW as Ae,dX as k,dY as Ee,dZ as Ie,d_ as Re,d$ as Fe,e0 as Me,cr as $e,cs as we,e1 as Ve,e2 as _e,e3 as ke,e4 as Ne,u as We,aH as Ge,e5 as b}from"./index-CQaiPqwp.js";import{I as N,a as ze,C as Be,b as He,L as Ke}from"./Instructions.style-Nui_rzxt.js";import{I as f,a as Xe,S as Ue,b as Ye,T as qe,c as Qe}from"./SelectionTotalPrice.component-GYBXEzxf.js";import{d as Je,i as Ze,O as et}from"./OrderDowloadProductPdf.component-BnjwQbZe.js";import{R as tt}from"./ReinsuranceSentence.component-BgWVZq9p.js";import{O as rt,a as st,b as P,c as nt}from"./SelectionDeliveryMethod.style-D94m5YIO.js";import{F as T}from"./StarRating.component-BQFBN-jS.js";import{a as ot,b as at,L as it,c as dt,d as ct,e as lt,f as pt,g as mt,V as ut,h as S,i as xt,j as ht}from"./SelectionProductList.component-C6KlpcAg.js";import{S as gt}from"./SelectionProduct.style-DzpfFTFo.js";import{S as ft,a as St,b as Ct,c as yt,d as jt,e as A}from"./SelectionPassVariant.style-DZPjhKAA.js";import{A as Ot}from"./AppLayout.component-B34jiFc-.js";import{C as Pt}from"./CardLayout.component-BflI0h-4.js";import"./LinkButton.component-SF9b74Hi.js";import"./RichTextLink.component-BuB0fEgt.js";import"./OpenModal.component-DibLuewg.js";import"./RadioWithLabel.style-9aRhRQHK.js";import"./PrivateContent.component-CA0ub5Pl.js";import"./react-select.esm-BTkEaSrm.js";const Lt=i.a``,Dt=i.img`
2    width: 180px;
3`,E=({image:r,href:n,onClick:s})=>e.jsx(Lt,{href:n,target:"_blank",rel:"noreferrer",onClick:s,children:e.jsx(Dt,{src:r.src,alt:r.alt})}),Tt=i.div`
4    align-items: center;
5    display: flex;
6    flex-direction: column;
7    gap: 10px;
8    justify-content: center;
9  
10    @media ${x.DESKTOP} {
11      flex-direction: row;
12      gap: 20px;
13    }
14`,vt=()=>{const{userAgent:r}=navigator;return/android/i.test(r)},bt=()=>{const{userAgent:r}=navigator;return/iPad|iPhone|iPod/.test(r)},At=()=>{const r=R(),n=t(j),{googleWalletLink:s,appleWalletLink:o}=t(G),a=t(z),d=t(B),{isSmallViewport:p}=H(),c=vt(),l=bt(),m=h=>p&&h||!p,u=m(c)&&!!s&&!!a,O=m(l)&&!!o&&!!d;if(!n||!u&&!O)return e.jsx(e.Fragment,{});const g=h=>{r(K(h,n))};return e.jsxs(Tt,{children:[u&&e.jsx(E,{href:s,image:a,onClick:()=>g(v.GOOGLE)}),O&&e.jsx(E,{href:o,image:d,onClick:()=>g(v.APPLE)})]})},Et=i.div`
15  display: flex;
16  flex-direction: column;
17  padding: 20px 0;
18  
19  & * + * {
20    margin-top: 10px;
21  }
22`,It=i.div`
23  height: 266px;
24  
25  @media (min-width: 500px) {
26    height: 224px;
27  }
28  
29  @media ${x.TABLET} {
30    height: 266px;
31  }
32 
33  @media ${x.DESKTOP} {
34    height: 210px;
35  }
36`,Rt=i.p`
37  font-size: var(--text-xs);
38  color: ${r=>r.theme.grey3};
39`,Ft=()=>{const r=t(F(M.SHAREGROOP)),n=t(X),s=t(U),o=t(Y),a="Sharegroop Iframe",d=[f.ALLOW_SCRIPTS,f.ALLOW_SAME_ORIGIN,f.ALLOW_POPUPS,f.ALLOW_POPUPS_TO_ESCAPE_SANDBOX];return!r||!s||n!==q.SHAREGROOP?null:e.jsxs(Et,{"data-cy":"OrderSharegroopShareLinkComponent",children:[e.jsx(It,{children:e.jsx(Xe,{url:s,title:a,values:d,height:"100%",minHeight:"210px"})}),o&&e.jsx(Rt,{children:o})]})},Mt=i.button`
40  font-size: var(--text-smd);
41  color: ${r=>r.theme.primary};
42  cursor: pointer;
43  text-decoration: underline;
44`,$t=()=>{const[r,n]=L.useState(!1),s=Q("orderApi"),o=t(J),a=t(Z),d=t(j),p=t(ee),c=t(te),l=t($);if(!d||(p||c)&&(!l||l===0))return null;const m=async()=>{n(!0);const u=await s.getProofOfPurchase(d);Je(u,`${o}_${d}`),n(!1)};return e.jsxs(e.Fragment,{children:[r&&e.jsx(D,{}),e.jsx(Mt,{onClick:m,"data-cy":"DownloadProofOfPurchaseComponent",children:a})]})},wt=i.div`
45  ${N} {
46    margin-top: 10px;
47  }
48`,Vt=i.div`
49  text-align: center;
50`,_t=()=>{const r=t(re),n=t(se),s=t(ne),o=t(oe),a=t(ae),d=t(ie),p=t(de),c=t(w),l=t(ce);let m=s?n:p;const u=new Map,g=(h=>h)(o);return u.set("%email%",g?.toLocaleLowerCase()??""),c&&(m=d),l?null:e.jsxs(e.Fragment,{children:[c&&e.jsx(ze,{"data-cy":"InstructionsDeliveryMethod",children:e.jsx(C,{document:m,placeholderMap:u,defaultFontSize:y.TEXT_SMD})}),!c&&e.jsx(N,{"data-cy":"instructionsComponent",children:a?e.jsx(C,{document:m,placeholderMap:u,defaultFontSize:y.TEXT_SMD}):e.jsxs(e.Fragment,{children:[e.jsx("span",{"data-cy":"OrderInstructionsLabelComponent",children:r}),e.jsx(Be,{"data-dd-privacy":"mask",children:o})]})})]})},W="%firstName%",kt=()=>{const r=t(V),n=t(le),s=t(_),o=new Map;return o.set(W,s??""),e.jsxs(wt,{"data-cy":"OrderConfirmationComponent",children:[e.jsx(tt,{reinsurance:r,placeholderMap:o}),e.jsx(Vt,{children:e.jsx(pe,{image:n,width:"320"})}),e.jsx(_t,{})]})},Nt=i.article`
51  & > * + * {
52    margin-top: 20px;
53  }
54
55  margin-top: 20px;
56`,Wt=i.div`
57  border: solid 1px ${r=>r.theme.grey2};
58  border-radius: 6px;
59  padding: 20px;
60
61  @media ${x.DESKTOP} {
62    padding: 30px;
63  }
64  
65  color: ${r=>r.theme.grey4};
66`,Gt=i.p`
67  font-size: var(--text-md);
68`,zt=()=>{const n=t(me("error.order.failed"));return n?e.jsx(Nt,{"data-cy":"OrderSpecificMessage",children:e.jsx(Wt,{children:e.jsx(Gt,{children:e.jsx(C,{document:n,defaultFontSize:y.TEXT_MD})})})}):null},Bt=i.article`
69  & > * + * {
70    margin-top: 20px;
71  }
72`,Ht=i.div`
73  border: solid 1px ${r=>r.theme.grey2};
74  border-radius: 6px;
75  padding: 20px;
76  
77  @media ${x.DESKTOP} {
78    padding: 30px;
79  }
80
81  & > * + * {
82    border-top: solid 1px ${r=>r.theme.grey2};
83    margin-top: 20px;
84    padding-top: 20px;
85  }
86`,Kt=i.div`
87  display: flex;
88  flex-direction: row;
89  justify-content: space-between;
90`,Xt=i.div`
91  display: flex;
92  flex-direction: column;
93  font-size: var(--text-smd);
94  line-height: var(--line-height);
95  color: ${r=>r.theme.grey4};
96`,Ut=i.h2`
97  font-size: var(--text-lmd);
98  font-weight: bold;
99`,Yt=i.div`
100  margin-top: 10px;
101`,qt=i.span`
102  margin-right: 4px;
103  font-weight: bold;
104`,Qt=()=>{const r=t(ue),n=t(xe),s=t(j);return s?e.jsxs(Kt,{"data-cy":"ReferenceComponent",children:[e.jsxs(Xt,{children:[e.jsx(Ut,{children:r}),e.jsxs(Yt,{children:[e.jsx(qt,{children:n}),e.jsx("span",{children:s})]})]}),e.jsx(he,{name:"ticket-bold",color:"dark",size:"24"})]}):null},Jt=()=>{const r=t(F(M.DELIVERY_METHOD)),n=t(ge),s=t(w);return!r||!n?null:e.jsxs(rt,{"data-cy":"SelectionOrderDeliveryMethod",children:[n.provider&&e.jsxs(st,{children:[e.jsx(P,{children:n.metadata?.deliveryTitle||n.label}
104),e.jsx("span",{children:e.jsx(T,{priceToFormat:{value:n.provider.subTotalPriceWithTaxes.value,currencyCode:n.provider.subTotalPriceWithTaxes.currencyCode}})})]}),s&&e.jsxs(nt,{children:[e.jsxs("span",{children:[e.jsx(P,{children:n.metadata?.nameRecipient}),` ${s.firstName} ${s.lastName}`]}),e.jsxs("span",{children:[e.jsx(P,{children:n.metadata?.deliveryAddress}),e.jsx("span",{children:` ${s.address1}, ${s.postalCode} - ${s.city}`}),s?.address2&&e.jsx("p",{children:s.address2})]})]})]})},I=r=>{const{firstName:n,lastName:s,variant:o,passLabel:a}=r;return o?e.jsxs(ft,{"data-cy":"ProductAvailable",children:[e.jsxs(St,{children:[e.jsx(Ct,{children:a}),e.jsx(yt,{children:o.label}),n&&s&&e.jsx(jt,{"data-cy":"SelectionPassName",children:`${n} ${s}`})]}),e.jsx("span",{"data-cy":"price",children:e.jsx(T,{priceToFormat:{value:o?.unitPriceWithTaxes?.value,currencyCode:o?.unitPriceWithTaxes?.currencyCode}})})]},o.id):null},Zt=()=>{const r=t(fe),n=t(Se);return r.length===0?null:e.jsx(e.Fragment,{children:r.map((s,o)=>s.variantList.map((a,d)=>{const p=n?.get(a.id);return p?p.map((c,l)=>e.jsx(A,{"data-cy":"SelectionPass",children:e.jsx(I,{firstName:c?.firstName,lastName:c?.lastName,passLabel:s.label,variant:a})},`${a.id}-${o+d+l+1}`)):Array(a.quantity).fill(a).map((c,l)=>e.jsx(A,{"data-cy":"SelectionPass",children:e.jsx(I,{passLabel:s.label,variant:a})},`${a.id}-${o+d+l+1}`))}))})},er=r=>{const{products:n}=r;return e.jsx(e.Fragment,{children:n.map(s=>e.jsxs(ot,{children:[e.jsx(at,{"data-cy":"SelectionProductDateLabel",children:e.jsx(it,{date:Ce(s.consumptionDate),extraLongDate:!0})}),e.jsxs(dt,{children:[e.jsxs(ct,{className:"second",children:[e.jsx(lt,{children:`${s.quantity}x`}),e.jsx(pt,{className:"primary",children:`${s.articleLabel}`})]}),e.jsx(mt,{children:e.jsx("span",{children:e.jsx(T,{priceToFormat:{value:s.price.value,currencyCode:s.price.currencyCode}})})})]}),s.participants.map(o=>e.jsxs(ut,{children:[" ",`${o.firstName} ${o.lastName} - ${s.variantLabel} `]}))]},`${s.id}`))})},tr=()=>{const r=t(ye),n=t(je),s=t(Oe),o=t(Pe),a=t(Le),d=t(De),p=t(Te),c=t(ve),l=t(be),m=t(Ae);return e.jsxs(gt,{children:[o&&e.jsx(Ue,{stay:o}),e.jsx(Zt,{}),e.jsx(S,{productList:r}),e.jsx(S,{productList:m}),e.jsx(xt,{productList:a,packageList:d}),e.jsx(S,{productList:n}),e.jsx(S,{productList:s,showComponentList:!0,hideTime:!0}),e.jsx(ht,{giftCardList:p,withRecipientDetails:!0}),e.jsx(Ye,{giftCardDelivery:c}),l&&e.jsx(er,{products:l}),e.jsx(Jt,{})]})},rr=()=>{const r=t(k),n=t($),s=t(Ee),o=t(Ie),a=t(Re),d=!!t(Fe),p=t(Me),c=!!n&&n>0,l=t($e);return r?e.jsx(D,{}):e.jsx(Bt,{"data-cy":"OrderSelection",children:e.jsxs(Ht,{children:[e.jsx(Qt,{}),e.jsx(tr,{}),d&&l!==we.CHANGE_DATE&&e.jsx(qe,{}),c&&e.jsx(Qe,{totalPriceValue:n,includedVatValue:s,currencyCode:o,taxDescription:a,paymentMethods:p})]})})},sr=i.article`
105  & > * + * {
106    margin-top: 20px;
107  }
108`,nr=i.div`
109  border: solid 1px ${r=>r.theme.grey2};
110  border-radius: 6px;
111  padding: 20px;
112
113  @media ${x.DESKTOP} {
114    padding: 30px;
115  }
116  
117  color: ${r=>r.theme.grey4};
118
119  > p {
120    margin-top: 10px;
121  }
122`,or=i.h2`
123  font-size: var(--text-lmd);
124  font-weight: bold;
125`,ar=i.p`
126  font-size: var(--text-md);
127`,ir=()=>{const r=t(Ve),n=t(_e);return!r||!n?null:e.jsx(sr,{"data-cy":"OrderSpecificMessage",children:e.jsxs(nr,{children:[e.jsx(or,{children:r}),n&&e.jsx(ar,{children:e.jsx(C,{document:n,defaultFontSize:y.TEXT_MD})})]})})},Tr=()=>{const r=t(k),n=t(ke),s=t(Ne),o=t(V),{orderId:a}=We(),d=t(j),p=t(_)||"",c=R();return L.useEffect(()=>{c(Ze(a))},[c,a]),L.useEffect(()=>{const l=new Map;l.set(W,p),c(Ge(o,l))},[c,o,p]),r?e.jsx(D,{}):e.jsx(Ot,{hideLogout:!0,children:e.jsx(He,{children:e.jsxs(Pt,{children:[e.jsx(kt,{}),e.jsx(et,{downloadText:n,downloadButtonLabel:s}),e.jsx(Ft,{}),e.jsx(ir,{}),d===b&&e.jsx(zt,{}),d!==b&&e.jsxs(e.Fragment,{children:[e.jsx(rr,{}),e.jsx(At,{}),e.jsx($t,{})]}),e.jsx(Ke,{})]})})})};export{Tr as ConfirmationPresentation};

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.