1import{d as k,a as z,u as L,r as V,b as h,v as O,c as o,o as i,g as t,h as r,w as d,s as A,t as I,F as p,z as c,y as N,i as f,q as C,A as b,B as S}from"./index-Bcus7mxh.js";const T={class:"my_grid"},U={class:"c-item-1"},F={class:"c-item-2"},M={class:"text-global",style:{color:"white","margin-bottom":"-10px","text-align":"left"}},j={class:"my_grid_montants"},D={class:"c-montants-1"},$={class:"text-reduit-global",style:{color:"white"}},K={class:"c-montants-2"},G={class:"text-reduit-global",style:{color:"white"}},H=k({__name:"Boutique_confirmation",setup(J){const P=h(),s=z(),g=O(),u=L();s.item_menu_on=[!1,!1,!0,!1,!1];const l=V(void 0),m=s.get_validation_commande(),R=s.get_email_client_commande(),_=P.query.propKey,y=new URL(window.location.href),q=new URLSearchParams(y.search).get("redirect_status");return window.history.replaceState({},"",y.pathname),(async()=>{if(q==="succeeded"||_==="paiement_en_attente"){l.value=await s.listProductsPanier();const[,x]=await s.valeurPanier();if(x){const e=_!=="paiement_en_attente"?s.today_sql:"",v="";let n="";_==="paiement_en_attente"?n=s.commande_statut.indexOf("Provisoire"):Object(l.value)[0].filename?n=s.commande_statut.indexOf("Terminée"):n=s.commande_statut.indexOf("En cours");const a=[m,n,e,v];await s.serverless("db",{c:"0d8de5ff77d5162c1dc388fe33422354b31f951d84458c7237e5f71e1573599b",v:a}).then(w=>{if(w[0]!==200)u.add({severity:"error",summary:"Mise à jour du statut d'une commande - Erreur !",detail:w[1],life:3e3});else{const E=[R,s.app_title,m];s.serverless("mail",{c:"341b174e356de650413b39053f89492a988b74348d5d763cea3d19f9ee350fba",v:E}).then(B=>{B[0]!==200&&u.add({severity:"error",summary:"Problème d'envoi de l'email de confirmation",detail:B[1],life:3e3})})}s.deleteAllProductsPanier(),s.delete_validation_commande(),s.delete_email_client_commande()})}}else u.add({severity:"error",summary:"Le paiement n'a pas été accepté.",detail:"Vous pouvez retenter cet achat, via la Boutique.",life:3e3}),g.push("panier")})(),(x,e)=>{const v=N,n=A;return i(),o(p,null,[t("div",T,[t("div",U,[r(n,{class:"card"},{title:d(()=>[...e[1]||(e[1]=[t("div",{class:"titre-bloc-global"},"MERCI !",-1)])]),content:d(()=>[e[2]||(e[2]=t("div",{class:"label-input-global",style:{"text-align":"center"}},[c(" Votre commande a été enregistrée."),t("br"),c("Vous recevrez un e-mail de confirmation sous peu de temps. ")],-1)),e[3]||(e[3]=t("br",null,null,-1)),e[4]||(e[4]=t("br",null,null,-1)),e[5]||(e[5]=t("div",{class:"text-reduit-global",style:{"text-align":"center"}},[c(" Pour suivre la préparation de votre commande, rendez-vous sur votre compte "),t("br"),c("dans l'onglet âMes commandesâ ")],-1)),e[6]||(e[6]=t("br",null,null,-1)),e[7]||(e[7]=t("br",null,null,-1)),e[8]||(e[8]=t("div",{class:"text-reduit-global",style:{"text-align":"center"}},"Besoin d'aide ? Contactez nous à [email protected]",-1)),e[9]||(e[9]=t("br",null,null,-1)),e[10]||(e[10]=t("br",null,null,-1)),t("div",null,[r(v,{"aria-label":"Accueil",class:"button",label:"RETOURNER à L'ACCUEIL",onClick:e[0]||(e[0]=a=>f(g).push("/"))})])]),_:1})]),t("div",F,[r(n,{class:"card",style:{"background-color":"var(--grisfonce)"}},{title:d(()=>[t("div",M," Commande "+b(f(m))+" (hors frais de port) ",1)]),content:d(()=>[t("div",j,[t("div",D,[(i(!0),o(p,null,C(l.value,a=>(i(),o("div",{key:a.designation},[t("div",$,b(a.designation),1)]))),128))]),t("div",K,[(i(!0),o(p,null,C(l.value,a=>(i(),o("div",{key:a.designation},[t("div",G,b(f(s).euros_2.format(a.prix*a.quantite)),1)]))),128))])])]),_:1})])]),r(I)],64)}}}),X=S(H,[["__scopeId","data-v-98c5c91f"]]);export{X 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.