PageSourceSearch

https://www.arcaplanet.it/component---src-pages-guest-order-tsx-cbe9db4e2eda4d3c90f8.js

js arcaplanet.it collected 2026-09-26 05:32:17 UTC 40,133 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkbase_store=self.webpackChunkbase_store||[]).push([[210],{3576:function(e,s,t){t.d(s,{P:function(){return a}});var l=t(4848),a=e=>{var{width:s=5,height:t=18,viewBox:a="0 0 5 8",color:r="#000",className:n=""}=e;return(0,l.jsx)("svg",{width:s,height:t,viewBox:a,className:n,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M1.53.47A.75.75 0 0 0 .47 1.53L1.53.47ZM4 4l.53.53a.75.75 0 0 0 0-1.06L4 4ZM.47 6.47a.75.75 0 0 0 1.06 1.06L.47 6.47Zm0-4.94 3 3 1.06-1.06-3-3L.47 1.53Zm3 1.94-3 3 1.06 1.06 3-3-1.06-1.06Z",fill:r})})}},9891:function(e,s,t){t.d(s,{o:function(){return a}});t(3921);var l=t(6540),a=()=>{var{0:e,1:s}=(0,l.useState)({}),t=()=>{var e=new URLSearchParams(window.location.search),t=Object.fromEntries(e.entries());s(t)};return(0,l.useEffect)((()=>(t(),window.addEventListener("popstate",t),window.addEventListener("pushstate",t),()=>{window.removeEventListener("popstate",t),window.removeEventListener("pushstate",t)})),[]),e}},2734:function(e,s,t){t.r(s),t.d(s,{default:function(){return C}});var l=t(467),a=t(5703),r=t(6540),n=t(961),i=t(847),d=t(7209),o=t(3064),c=t(9980),m=t(3576),x=t(1549),u=t(7436),f=t(9891),h=t(4506),p=t(9880),g=t(4848),b=e=>{var{orderId:s,name:t,closeModal:a}=e,{0:n,1:i}=(0,r.useState)(!1),{0:d,1:o}=(0,r.useState)(),c=(0,r.useRef)(null),m=(0,r.useMemo)((()=>{var e;return null==d||null===(e=d.groups)||void 0===e?void 0:e.find((e=>"cancellation"===e.id))}),[d]),u=(0,r.useMemo)((()=>{var e;return[].concat((0,h.A)(null!==(e=null==m?void 0:m.options)&&void 0!==e?e:[]),[{label:"Altro",value:""}])}),[m]),{0:f,1:b}=(0,r.useState)(""),v=function(){var e=(0,l.A)((function*(){var e,t,l;if(f){i(!0);var r="Altro"===f,n=null!==(e=c.current)&&void 0!==e&&e.value&&(null===(t=c.current)||void 0===t?void 0:t.value.trim().length)>0?null===(l=c.current)||void 0===l?void 0:l.value:"Altro",d=r?n:f;(yield fetch("/api/orders/cancelOrder",{method:"POST",credentials:"include",body:JSON.stringify({orderId:s,reason:d})})).ok?a("success"):a("fail"),i(!1)}}));return function(){return e.apply(this,arguments)}}();return(0,r.useEffect)((()=>{var e=function(){var e=(0,l.A)((function*(){i(!0);var e=yield fetch("/api/orders/getCancellationReasons");if(e.ok){var s=yield e.json();s&&s.groups&&0!==s.groups.length?o(s):o(p.Gi)}else o(p.Gi);i(!1)}));return function(){return e.apply(this,arguments)}}();e();var s=e=>{"Enter"===e.key&&e.preventDefault()};return window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)}),[]),(0,g.jsx)("div",{className:"fixed top-0 bottom-0 left-0 right-0 w-full h-screen bg-black bg-opacity-50 z-50 flex items-center justify-center",children:(0,g.jsxs)("div",{className:"flex flex-col gap-6 py-4 px-6 md:py-6 md:px-8 w-[700px] max-w-[95%] max-h-[90%] overflow-y-auto rounded-md bg-white",children:[(0,g.jsxs)("div",{className:"flex w-full justify-between items-center",children:[(0,g.jsxs)("h3",{className:"text-xl font-semibold",children:["Ordine #",s]}),(0,g.jsx)("button",{onClick:()=>a(),className:"bg-transparent p-0 flex items-center justify-center cursor-pointer",children:(0,g.jsx)(x.U,{})})]}),(0,g.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,g.jsxs)("div",{className:"flex flex-col font-semibold text-lg",children:[(0,g.jsxs)("p",{children:["Ciao ",t,","]}),(0,g.jsx)("p",{children:"Perché desideri cancellare il tuo ordine?"})]}),n?(0,g.jsx)("div",{className:"animate-spin rounded-full border-4 border-black h-10 w-10 mx-auto"}):(0,g.jsx)("ul",{className:"flex flex-col gap-4",children:(null==u?void 0:u.length)>0&&u.map((e=>{var s,t;return(0,g.jsxs)("li",{className:"flex flex-col gap-6",children:[(0,g.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,g.jsx)("input",{type:"radio",className:"flex-shrink-0 cursor-pointer",name:e.label,value:e.label,id:e.label,checked:f===e.label,onChange:()=>b(e.label)}),(0,g.jsx)("label",{className:"cursor-pointer",htmlFor:e.label,children:e.label})]}),f===e.label&&(0,g.jsxs)("div",{className:"flex flex-col gap-4 pb-6 border-b border-b-gray-400 mx-6 md:mx-12",children:["Altro"===e.label&&(0,g.jsxs)("div",{className:"flex flex-col gap-2 mb-2",children:[(0,g.jsx)("label",{htmlFor:"cancellation-reason-"+e.label,className:"font-semibold text-sm",children:"Per favore, spiegaci perché desideri cancellare il tuo ordine:"}),(0,g.jsx)("textarea",{className:"w-full text-sm md:text-base rounded-md border border-gray-400 p-3 outline-none transition-shadow focus:border-[#80bdff] focus:shadow-[0_0_0_.2rem_rgba(0,123,255,.25)] disabled:bg-gray-300 disabled:text-gray-500 disabled:cursor-not-allowed resize-y",placeholder:"Inserisci una motivazione",maxLength:200,ref:c,name:"cancellation-reason-"+e.label,id:"cancellation-reason-"+e.label})]}),(0,g.jsx)("ul",{className:"font-semibold list-disc",children:null==m||null===(s=m.description)||void 0===s||null===(t=s.disclaimers)||void 0===t?void 0:t.map((e=>(0,g.jsx)("li",{className:"ml-4 text-sm",children:e},e)))}),(0,g.jsx)("button",{onClick:v,className:"rounded-md flex items-center justify-center bg-red-500 cursor-pointer px-3 py-2 w-fit text-sm text-white",children:"Conferma la cancellazione"})]})]},e.label)}))})]})]})})},v=e=>{var{transformedProgressBarStates:s,currentState:t,hasFinished:l}=e;return t&&s?(0,g.jsx)("div",{className:"flex justify-between md:px-8",children:null==s?void 0:s.map(((e,s,a)=>{var r=t<e.originalIndex,n=l&&t===p.Ns;return(0,g.jsxs)("div",{className:"flex items-center "+(s<a.length-1?"flex-grow":"flex-grow-0"),children:[(0,g.jsx)("div",{className:(!r||n?"bg-green-600":"bg-gray-400")+" "+(t!==e.originalIndex||n?"":'border-2 border-white before:absolute before:top-1/2 before:left-1/2 before:-translate-x-1/2 before:-translate-y-1/2 before:w-5 before:h-5 before:rounded-full before:bg-green-600 before:content-[""] before:-z-10')+" w-4 h-4 rounded-full m-2 relative",children:(0,g.jsx)("div",{className:"text-sm leading-tight absolute top-[30px] left-1/2 -translate-x-1/2 min-w-[90px] text-center font-semibold hidden md:block "+(r?"text-gray-400":""),children:p.jN[e.label]})}),s<a.length-1&&(0,g.jsx)("div",{className:(t>e.originalIndex?"bg-green-600":"bg-gray-400")+" flex-grow h-[2px]"})]},s)}))}):null},j=t(7487),N=t(2380),y=/^[1-9]\d*$/,w=e=>{var{item:s,returnsReasons:t,updateState:l,isAdded:a}=e,{0:n,1:i}=(0,r.useState)(!1),{0:d,1:o}=(0,r.useState)(""),{0:c,1:m}=(0,r.useState)(1),{0:x,1:u}=(0,r.useState)(""),f=e=>{if("add"===e){if(c===s.finalQuantity)return m((e=>e+1))}else if(1===c)return m((e=>e-1))},h=e=>{if(n&&d&&!(c<1))if("add"===e){var t={comment:x,listPrice:s.listPrice,productName:s.name,quantity:c,returnReason:d,sellingPrice:s.sellingPrice,skuId:s.id,uniqueId:s.uniqueId};l({action:e,payload:t})}else l({action:e,payload:s.uniqueId})};return(0,g.jsxs)("form",{className:"flex flex-col gap-4",children:[(0,g.jsxs)("div",{className:"flex items-center",children:[(0,g.jsx)("input",{type:"checkbox",className:"cursor-pointer",name:"active-product",id:"active-product-"+s.id,checked:n,onChange:()=>{n&&h("remove"),i((e=>!e))}}),(0,g.jsx)("label",{className:"text-sm cursor-pointer",htmlFor:"active-product-"+s.id,children:"Restituisci il prodotto"})]}),(0,g.jsxs)("div",{className:"flex flex-col gap-2 text-sm",children:[(0,g.jsx)("label",{htmlFor:"return-reason-"+s.id,children:"Motivo del reso"}),(0,g.jsx)("div",{className:"border border-gray-400 rounded-md p-4 has-[select:disabled]:bg-gray-300 has-[select:disabled]:text-gray-500 has-[select:disabled]:cursor-not-allowed",children:(0,g.jsxs)("select",{className:"bg-none outline-none w-full cursor-pointer disabled:bg-gray-300 disabled:text-gray-500 disabled:cursor-not-allowed",name:"return-reason",id:"return-reason-"+s.id,value:d,onChange:e=>o(e.target.value),disabled:!n||a,children:[(0,g.jsx)("option",{value:"",className:"text-gray-500",disabled:!0,children:"Seleziona il motivo del reso"}),t.map((e=>(0,g.jsx)("option",{value:e.reasonToSend,children:e.reasons},e.reasonToSend)))]})})]}),(0,g.jsxs)("div",{className:"flex flex-col gap-2 text-sm",children:[(0,g.jsx)("label",{htmlFor:"return-quantity-"+s.id,children:"Pezzi da rendere"}),(0,g.jsxs)("div",{className:"flex",children:[c>1&&(0,g.jsx)("button",{type:"button",disabled:!n||a,onClick:()=>f("sub"),className:"w-12 text-lg border bg-transparent border-gray-400 rounded-md outline-none flex items-center justify-center cursor-pointer disabled:bg-gray-300 disabled:text-gray-500 disabled:cursor-not-allowed",children:"-"}),(0,g.jsx)("input",{className:"border border-gray-400 rounded-md py-3 outline-none text-center w-16 disabled:bg-gray-300 disabled:text-gray-500 disabled:cursor-not-allowed",name:"return-quantity",id:"return-quantity-"+s.id,type:"tel",value:c,onChange:e=>{var t=e.target.value;Number(t)<1||Number(t)>s.finalQuantity?m((e=>e)):""===t||y.test(t)?m(Number(t)):m(1)},disabled:!n||a}),c<s.finalQuantity&&(0,g.jsx)("button",{type:"button",disabled:!n||a,onClick:()=>f("add"),className:"w-12 text-lg border bg-transparent border-gray-400 rounded-md outline-none flex items-center justify-center cursor-pointer disabled:bg-gray-300 disabled:text-gray-500 disabled:cursor-not-allowed",children:"+"})]})]}),(0,g.jsxs)("div",{className:"flex flex-col gap-2 text-sm",children:[(0,g.jsx)("label",{htmlFor:"return-quantity-"+s.id,children:"Note aggiuntive"}),(0,g.jsx)("textarea",{className:"w-full rounded-md border border-gray-400 p-3 outline-none transition-shadow focus:border-[#80bdff] focus:shadow-[0_0_0_.2rem_rgba(0,123,255,.25)] disabled:bg-gray-300 disabled:text-gray-500 disabled:cursor-not-allowed resize-y h-[70px]",placeholder:"(Opzionale)",maxLength:200,name:"return-optional",id:"return-optional-"+s.id,disabled:!n||a,value:x,onChange:e=>u(e.target.value)})]}),(0,g.jsx)("button",{type:"button",onClick:a?()=>h("remove"):()=>h("add"),disabled:!n||!d||c<=0,className:"cursor-pointer font-semibold outline-none p-3 rounded-md text-sm bg-yellow flex items-center justify-center disabled:bg-gray-300 disabled:text-gray-500 disabled:cursor-not-allowed",children:a?"Rimuovi prodotto dalla ric
1hiesta":"Aggiungi prodotto alla richiesta"})]})},S=e=>{var{items:s,orderId:t,returnedItems:a,closeReturns:n}=e,{0:i,1:d}=(0,r.useState)(),{0:o,1:c}=(0,r.useState)(),{0:m,1:x}=(0,r.useState)([]),{0:u,1:f}=(0,r.useState)(!1),{0:p,1:b}=(0,r.useState)(!1),v=(0,r.useMemo)((()=>(0,N.SB)(s,i,a)),[s,i,a]).filter((e=>e.finalQuantity>0)),y=e=>{"add"===e.action?x((s=>{var t=s.filter((s=>s.uniqueId!==e.payload.uniqueId));return[].concat((0,h.A)(t),[e.payload])})):x((s=>{var t=s.filter((s=>s.uniqueId!==e.payload));return(0,h.A)(t)}))},S=function(){var e=(0,l.A)((function*(){b(!0),m.forEach((e=>delete e.uniqueId));var e={orderId:t,items:m};(yield fetch("/api/returns/sendReturnRequest",{method:"POST",body:JSON.stringify(e),credentials:"include"})).ok?n("success"):n("fail"),b(!1)}));return function(){return e.apply(this,arguments)}}();return(0,r.useEffect)((()=>{var e=function(){var e=(0,l.A)((function*(){var e=yield fetch("/api/returns/getReturnsReasons?orderId="+t,{credentials:"include"});if(e.ok){var s=yield e.json();c(s.reasons)}else c([])}));return function(){return e.apply(this,arguments)}}(),s=function(){var e=(0,l.A)((function*(){var e=yield fetch("/api/returns/getReturns?orderId="+t);if(e.ok){var s=yield e.json();d(s)}else d([])}));return function(){return e.apply(this,arguments)}}(),a=function(){var t=(0,l.A)((function*(){f(!0),yield e(),yield s(),f(!1)}));return function(){return t.apply(this,arguments)}}();a();var r=e=>{"Enter"===e.key&&e.preventDefault()};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)}),[]),u||void 0===i||void 0===o?(0,g.jsx)("div",{className:"h-12 w-12 animate-spin rounded-full border-4 border-black mx-auto"}):o.length<=0?(0,g.jsx)("div",{className:"text-red-500",children:"Si è verificato un errore, prova a ricaricare la pagina."}):(0,g.jsxs)("div",{className:"flex flex-col gap-6 pb-10 border-b border-b-gray-400",children:[v.length>0&&(0,g.jsxs)("div",{className:"grid grid-cols-[repeat(auto-fit,_minmax(290px,_1fr))] gap-4",children:[v.map(((e,s)=>(0,g.jsxs)("div",{className:"flex flex-col gap-6 border border-gray-400 max-w-[500px] rounded-md p-4",children:[(0,g.jsxs)("div",{className:"flex gap-2 flex-col md:gap-4",children:[(0,g.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,g.jsx)("img",{src:(0,j.Z)(e.imageUrl,70,70),alt:e.name,className:"block flex-shrink-0"}),(0,g.jsx)("h3",{className:"font-semibold text-sm",children:e.name})]}),(0,g.jsxs)("div",{className:"flex gap-4 items-center justify-between",children:[(0,g.jsxs)("div",{className:"flex flex-col text-center text-sm",children:[(0,g.jsx)("span",{children:"Prezzo"}),(0,g.jsxs)("span",{className:"font-semibold",children:[(0,N.S3)(e.sellingPrice)," €"]})]}),(0,g.jsxs)("div",{className:"flex flex-col text-center text-sm",children:[(0,g.jsx)("span",{children:"Quantità"}),(0,g.jsx)("span",{className:"font-semibold",children:(0,N.Qe)(e.finalQuantity,e.unitMultiplier)})]}),(0,g.jsxs)("div",{className:"flex flex-col text-center text-sm",children:[(0,g.jsx)("span",{children:"Subtotale"}),(0,g.jsxs)("span",{className:"font-semibold",children:[(0,N.S3)(e.sellingPrice*e.finalQuantity)," ","€"]})]})]})]}),(0,g.jsx)(w,{item:e,orderId:t,closeReturns:n,returnsReasons:o,updateState:y,isAdded:m.some((s=>s.uniqueId===e.uniqueId))})]},s))),(0,g.jsx)("button",{disabled:m.length<=0||p,className:"cursor-pointer font-semibold outline-none p-3 rounded-md text-sm bg-yellow flex items-center justify-center disabled:bg-gray-300 disabled:text-gray-500 disabled:cursor-not-allowed self-center",onClick:()=>S(),children:u?(0,g.jsx)("div",{className:"h-6 w-6 animate-spin rounded-full border-4 border-black"}):"Invia richiesta"})]}),(null==i?void 0:i.length)>0&&(0,g.jsxs)("div",{className:"flex flex-col gap-2 w-fit max-w-full",children:[(0,g.jsx)("h3",{className:"text-lg font-semibold",children:"Richieste di reso"}),null==i?void 0:i.map((e=>(0,g.jsxs)("div",{className:"flex gap-4 border border-gray-400 rounded-md p-4 items-center justify-between flex-wrap",children:[(0,g.jsxs)("div",{className:"flex flex-col gap-1 text-sm grow",children:[(0,g.jsx)("span",{className:"text-gray-500",children:"Prodotto"}),(0,g.jsx)("span",{className:"font-semibold",children:e.productName})]}),(0,g.jsxs)("div",{className:"flex flex-col gap-1 text-sm text-end",children:[(0,g.jsx)("span",{className:"text-gray-500",children:"Prezzo"}),(0,g.jsxs)("span",{className:"font-semibold",children:[(0,N.S3)(e.sellingPrice)," €"]})]}),(0,g.jsxs)("div",{className:"flex flex-col gap-1 text-sm text-end",children:[(0,g.jsx)("span",{className:"text-gray-500",children:"Quantità"}),(0,g.jsx)("span",{className:"font-semibold",children:e.quantity})]}),(0,g.jsxs)("div",{className:"flex flex-col gap-1 text-sm text-end",children:[(0,g.jsx)("span",{className:"text-gray-500",children:"Data creazione"}),(0,g.jsx)("span",{className:"font-semibold",children:(0,N.Iu)(e.createdIn,{day:"2-digit",month:"2-digit",year:"numeric"})})]}),(0,g.jsx)("div",{className:(0,N.eO)(e.status).bg+" text-white rounded-md px-3 py-2 text-sm font-semibold flex items-center justify-center",children:(0,N.eO)(e.status).label})]},e.id)))]})]})},I=t(9166),k=/-[a-zA-Z0-9]+\.ct\.vtex\.com\.br/g,P=/./g;var C=function(){var e,s,t,h,y,w,C,E,R,A,_,{0:z,1:O}=(0,r.useState)(""),{0:Q,1:T}=(0,r.useState)(""),{0:q,1:L}=(0,r.useState)(""),{0:M,1:D}=(0,r.useState)(),{0:V,1:U}=(0,r.useState)(1),{0:F,1:Z}=(0,r.useState)(!1),{0:B,1:$}=(0,r.useState)({}),{0:G,1:H}=(0,r.useState)(!0),{0:J,1:W}=(0,r.useState)(!1),{0:Y,1:K}=(0,r.useState)(!1),{0:X,1:ee}=(0,r.useState)(!1),{0:se,1:te}=(0,r.useState)(p.Co),{0:le,1:ae}=(0,r.useState)(void 0),re=(0,r.useRef)(null),ne=(0,r.useRef)(null),ie=(0,r.useRef)(null),de=(0,r.useRef)(),{orderId:oe,action:ce,cancellation:me,returns:xe}=(0,f.o)(),{locale:ue}=(0,o.w)();(0,d.$)("Guest Order Page");var fe,he,pe,ge,be,ve,{orderStatus:je,styles:Ne,transformedProgressBarStates:ye,currentProgressIndex:we,hasFinished:Se}=(0,N.Rr)(M),Ie=(0,r.useMemo)((()=>(0,N.jv)(M)),[M]),ke=(0,r.useMemo)((()=>
1(0,N.Wz)(M)),[M]),Pe="canceled"===(null==M?void 0:M.status)||(null==M||null===(e=M.cancellationData)||void 0===e?void 0:e.CancellationDate),Ce=null==M||null===(s=M.packageAttachment)||void 0===s||null===(t=s.packages)||void 0===t?void 0:t.find((e=>{var s,t;return(null==e||null===(s=e.restitutions)||void 0===s||null===(t=s.Refund)||void 0===t?void 0:t.items)&&e.restitutions.Refund.items.length>0})),Ee=function(){var e=(0,l.A)((function*(){return H(!1),ie.current&&(ie.current.value="",$({})),de.current=setInterval((()=>{te((e=>1===e?(H(!0),ee(!1),clearInterval(de.current),p.Co):e-1))}),1e3),yield fetch("/api/auth/startAuthentication",{method:"POST",body:JSON.stringify({email:z,name:Q,orderId:(0,I.zQ)(q)})})}));return function(){return e.apply(this,arguments)}}(),Re=e=>{var s=new URLSearchParams(window.location.search);s.delete("cancellation"),s.delete("returns"),s.set("action",e);var t=window.location.pathname+"?"+s.toString();window.history.replaceState({},"",t),window.dispatchEvent(new Event("pushstate"))},Ae=e=>{var s=new URLSearchParams(window.location.search);s.delete("action"),e?s.set("cancellation",e):s.delete("cancellation");var t=window.location.pathname+"?"+s.toString();window.history.replaceState({},"",t),window.dispatchEvent(new Event("pushstate"))},_e=e=>{var s=new URLSearchParams(window.location.search);s.delete("action"),e?s.set("returns",e):s.delete("returns");var t=window.location.pathname+"?"+s.toString();window.history.replaceState({},"",t),window.dispatchEvent(new Event("pushstate"))},ze=function(){var e=(0,l.A)((function*(e){if($({}),W(!0),1===V){if(re.current&&re.current.value.trim().length>0){var s=yield fetch("/api/orders/getEmailByOrder?orderId="+(0,I.zQ)(re.current.value));if(s.ok){var t=yield s.json(),{email:l,name:a,orderId:r}=t,n=l.replace(k,"");O(n),T(a),L(r),U(e)}else{var i=yield s.text();$({orderId:i})}}return W(!1)}if(2===V&&!F)return(yield Ee()).ok?(yield(0,N.uk)(5e3),Z(!0)):$({email:"Si è verificato un problema, si prega di riprovare"}),W(!1);if(2===V&&F){var d,o=null===(d=ie.current)||void 0===d?void 0:d.value.trim();if(!o||!o.length)return $({otpCode:"Inserisci il codice OTP ricevuto via email"}),W(!1);if((yield fetch("/api/auth/validateToken",{method:"POST",body:JSON.stringify({email:z,otpCode:o})})).ok){yield(0,N.uk)(5e3);var c=yield fetch("/api/orders/getOrder?orderId="+(0,I.zQ)(q),{credentials:"include"});if(c.ok){var m=yield c.json();clearInterval(de.current),D(m),U(e)}else{var x=yield c.text();$({otpCode:x})}}else $({otpCode:"Codice OTP non valido"});return W(!1)}}));return function(s){return e.apply(this,arguments)}}();return(0,r.useEffect)((()=>(ae(window.innerWidth<640),Ae(),_e(),window.addEventListener("scroll",i.N),()=>{window.removeEventListener("scroll",i.N)})),[]),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(a.GatsbySeo,{title:"Guest Order",language:ue||"it-IT",nofollow:!0,noindex:!0}),(0,g.jsxs)(u.i,{children:[3!==V&&(0,g.jsxs)("section",{className:"flex items-center flex-col gap-12 w-full pt-6 pb-12 md:pt-12 md:pb-24 px-4 my-4",children:[(0,g.jsx)("h3",{className:"text-xl md:text-2xl font-semibold text-center",children:"Accedi con i dettagli dell'ordine"}),(0,g.jsxs)("form",{className:"max-w-[450px] w-full flex flex-col gap-12",children:[1===V&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("label",{className:"flex flex-col gap-2 text-sm text-gray-700",children:["Numero dell'ordine:",(0,g.jsx)("input",{name:"orderId",type:"text",defaultValue:null!=oe?oe:"",ref:re,required:!0,autoComplete:"on",className:"h-12 border border-gray-400 py-[0.375rem] px-3 rounded-[0.25rem] outline-none transition-shadow focus:border-[#80bdff] focus:shadow-[0_0_0_.2rem_rgba(0,123,255,.25)] disabled:bg-gray-300 disabled:text-gray-500 disabled:cursor-not-allowed "+(B.orderId?"border-red-500":"")}),B.orderId&&(0,g.jsx)("span",{className:"text-red-500 text-xs",children:B.orderId})]}),(0,g.jsx)("button",{className:"bg-yellow flex justify-center items-center w-full h-12 rounded-full "+(J?"cursor-not-allowed":"cursor-pointer"),type:"button",onClick:()=>ze(2),children:J?(0,g.jsx)("div",{className:"h-6 w-6 animate-spin rounded-full border-4 border-black"}):"Continua"})]}),2===V&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,g.jsx)("div",{className:"flex flex-col gap-3",children:(0,g.jsxs)("label",{className:"flex flex-col gap-2 text-sm text-gray-700",children:["Invieremo il codice OTP alla seguente mail:",(0,g.jsx)("input",{placeholder:"Indirizzo email",name:"email",type:"text",value:(fe=z,he=fe.split("@"),pe=he[0],ge=he[1],be=pe.substring(4,pe.length).replace(P,"*"),ve=ge.substring(0,ge.length-4).replace(P,"*"),pe.substring(0,4)+be+"@"+ve+ge.substring(ge.length-4)),disabled:!!z,ref:ne,required:!0,autoComplete:"off",className:"h-12 border border-gray-400 py-[0.375rem] px-3 rounded-[0.25rem] outline-none transition-shadow focus:border-[#80bdff] focus:shadow-[0_0_0_.2rem_rgba(0,123,255,.25)] disabled:bg-gray-300 disabled:text-gray-500 disabled:cursor-not-allowed "+(B.email?"border-red-500":"")}
1),B.email&&(0,g.jsx)("span",{className:"text-red-500 text-xs",children:B.email})]})}),F&&(0,g.jsxs)("div",{className:"flex flex-col gap-2 text-sm text-gray-700",children:[(0,g.jsxs)("label",{className:"flex flex-col gap-2",children:["Codice OTP:",(0,g.jsx)("input",{placeholder:"00000",maxLength:5,name:"otp",type:"text",ref:ie,required:!0,autoComplete:"off",className:"h-12 border border-gray-400 py-[0.375rem] px-3 rounded-[0.25rem] outline-none transition-shadow focus:border-[#80bdff] focus:shadow-[0_0_0_.2rem_rgba(0,123,255,.25)] disabled:bg-gray-300 disabled:text-gray-500 disabled:cursor-not-allowed "+(B.otpCode?"border-red-500":"")}),B.otpCode&&(0,g.jsx)("span",{className:"text-red-500 text-xs",children:B.otpCode})]}),(0,g.jsx)("div",{onClick:()=>G?Ee():ee(!0),className:"hover:underline mt-4 cursor-pointer text-sm text-gray-700",children:"Reinvia codice"}),!G&&X&&(0,g.jsxs)("div",{className:"text-red-500 text-sm",children:["Potrai richiedere un nuovo codice fra ",se," ","secondi"]})]})]}),(0,g.jsx)("button",{className:"bg-yellow flex justify-center items-center w-full h-12 rounded-full "+(J?"cursor-not-allowed":"cursor-pointer"),onClick:()=>ze(3),type:"button",children:J?(0,g.jsx)("div",{className:"h-6 w-6 animate-spin rounded-full border-4 border-black"}):1===V?"Continua":2!==V||F?2===V&&F?"Conferma":"Continua":"Invia codice"})]})]})]}),3===V&&M&&(0,g.jsxs)("section",{className:"flex flex-col gap-6 w-full py-6 md:py-12 px-4 mt-4 mb-4 md:mb-0",children:[me&&(0,g.jsx)("div",{className:"rounded-md text-white p-4 "+("success"===me?"bg-green-600":"bg-red-500"),children:"success"===me?"Hai richiesto la cancellazione dell'ordine #"+M.orderId+". Verrà completata a breve!":"Non è stato possibile richiedere la cancellazione per l'ordine #"+M.orderId+"."}),xe&&(0,g.jsx)("div",{className:"rounded-md text-white p-4 "+("success"===xe?"bg-green-600":"bg-red-500"),children:"success"===xe?"Hai inviato una richiesta di reso per l'ordine #"+M.orderId+". Verrà esaminata a breve!":"Non è stato possibile inviare la richiesta di reso per l'ordine #"+M.orderId+"."}),(0,g.jsxs)("h3",{className:"text-xl md:text-2xl font-semibold",children:["Ordine #",M.orderId]}),(0,g.jsxs)("div",{className:"flex flex-wrap gap-4 items-center justify-between md:mt-2",children:[(0,g.jsxs)("div",{className:"flex flex-wrap gap-2 items-center",children:[(0,g.jsx)("div",{className:"font-semibold",children:(0,N.Iu)(M.creationDate,{day:"2-digit",month:"long",year:"numeric"})}),(0,g.jsx)("div",{className:"py-1 px-2 font-semibold flex items-center justify-center rounded-md text-xs "+(null==Ne?void 0:Ne.textColor)+" "+(null==Ne?void 0:Ne.bgColor),children:je})]}),!Pe&&M.guestCancellation&&"success"!==me&&(0,g.jsx)("div",{className:"flex gap-2 items-center",children:(0,g.jsx)("button",{onClick:()=>Re("cancel"),className:"cursor-pointer font-semibold outline-none p-3 rounded-md text-sm bg-transparent transition-colors hover:bg-[#ffe6e6] text-[#ce3535] border border-[#ffe6e6]",children:"Richiedi cancellazione"})}),"invoiced"===M.status.toLowerCase()&&(0,g.jsx)("div",{className:"flex gap-2 items-center",children:"return"===ce?(0,g.jsx)("button",{onClick:()=>_e(),className:"bg-transparent p-0 flex items-center justify-center cursor-pointer h-[36px]",children:(0,g.jsx)(x.U,{})}):(0,g.jsx)("button",{onClick:()=>Re("return"),className:"cursor-pointer font-semibold outline-none px-3 py-2 rounded-md text-sm bg-yellow",children:"Visualizza o crea richieste di reso"})})]}),"return"===ce&&"invoiced"===M.status&&(0,g.jsx)(S,{items:Ie.filter((e=>e.finalQuantity>0)),orderId:M.orderId,returnedItems:ke,closeReturns:_e}),(0,g.jsxs)("div",{className:"flex flex-col md:flex-row gap-4",children:[(0,g.jsxs)("div",{className:"flex flex-col flex-1 gap-4 p-4 overflow-y-auto h-56 border border-gray-400 rounded-md",children:[(0,g.jsx)("h3",{className:"text-lg font-semibold",children:"Indirizzo"}),(0,g.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,g.jsx)("span",{className:"font-semibold ",children:(0,N.ty)(M)}),(0,g.jsx)("span",{className:"text-sm",children:(0,N.Iw)(M,1)}),(0,g.jsx)("span",{className:"text-sm",children:(0,N.Iw)(M,2)}),(0,g.jsx)("span",{className:"text-sm",children:(0,N.Iw)(M,3)}),(0,g.jsx)("span",{className:"text-sm",children:(0,N.Iw)(M,4)})]})]}),(0,g.jsxs)("div",{className:"flex flex-col flex-1 gap-4 p-4 overflow-y-auto h-56 border border-gray-400 rounded-md",children:[(0,g.jsx)("h3",{className:"text-lg font-semibold",children:"Pagamento"}),(0,g.jsx)("div",{className:"flex flex-col gap-2",children:M.paymentData.transactions[0].payments.map((e=>{var s=(0,N.eB)(e),t=s.icon,l=(0,N.Ei)(e);return s?(0,g.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,g.jsxs)("div",{className:"flex gap-2 items-center",children:[t&&(0,g.jsx)(t,{className:"flex-shrink-0"}),(0,g.jsxs)("span",{className:"text-sm",children:[null==s?void 0:s.label," - ",null==s?void 0:s.value," €"]})]}),l.length>0&&(0,g.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,g.jsxs)("div",{onClick:()=>K((e=>!e)),className:"flex gap-1 items-center cursor-pointer",children:[(0,g.jsx)("span",{className:"text-xs text-gray-600",children:"Informazioni aggiuntive"}),(0,g.jsx)(c.B,{width:20,height:20,color:"#6b7280",className:(Y?"rotate-180":"")+" transition-transform"})]}),Y&&(0,g.jsx)("ul",{className:"flex flex-col gap-1",children:l.map((e=>(0,g.jsxs)("li",{className:"flex text-xs text-gray-600 gap-1",children:[(0,g.jsxs)("span",{children:[e.key,":"]}),(0,g.jsx)("span",{className:"font-semibold break-all",children:e.value})]},e.key)))})]})]},e.paymentSystem):null}))})]}),(0,g.jsxs)("div",{className:"flex flex-col flex-1 gap-4 p-4 overflow-y-auto h-56 border border-gray-400 rounded-md",children:[(0,g.jsx)("h3",{className:"text-lg font-semibold",children:"Riepilogo"}),(0,g.jsxs)("div",{className:"flex flex-col gap-2",children:[M.totals.map((e=>{var s,t,l=null===(s=(0,N.DV)(M,e.id))||void 0===s?void 0:s.label,a=null===(t=(0,N.DV)(M,e.id))||void 0===t?void 0:t.value;return l&&a?(0,g.jsxs)("div",{className:"flex justify-between w-full gap-1 border-b border-b-gray-400 last-of-type:border-b-0",children:[(0,g.jsx)("span",{className:"text-sm",children:l}),(0,g.jsxs)("span",{className:"text-sm",children:[a," €"]})]},e.id):null})),(0,g.jsxs)("div",{className:"flex justify-between w-full gap-1 border-b border-b-gray-400 last-of-type:border-b-0",children:[(0,g.jsx)("span",{className:"text-sm",children:null===(h=(0,N.DV)(M,"Total"))||void 0===h?void 0:h.label}),(0,g.jsxs)("span",{className:"text-sm",children:[null===(y=(0,N.DV)(M,"Total"))||void 0===y?void 0:y.value," €"]})]})]})]})]}),!Pe&&(0,g.jsxs)("div",{className:"flex flex-col gap-6 p-4 md:p-6 !pb-8 md:!pb-24 rounded-md border border-gray-400",children:[(0,g.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,g.jsx)("h3",{className:"text-lg font-semibold",children:"Status dell'ordine"}),(0,g.jsx)("h4",{className:"md:hidden font-semibold text-sm -mb-3",children:je})]}),(0,g.jsx)(v,{hasFinished:Se,currentState:we,transformedProgressBarStates:ye})]}),(0,g.jsxs)("div",{className:"mt-4",children:[(0,g.jsx)("h3",{className:"text-xl font-semibold",children:"Pacco"}),(0,g.jsxs)("div",{className:"flex flex-wrap gap-2 items-center mt-2",children:[(0,g.jsx)("p",{className:"font-semibold",children:null===(w=(0,N.$j)(M))||void 0===w?void 0:w.label}),(0,g.jsx)("span",{className:"px-2 py-1 bg-gray-500 text-white flex items-center justify-center rounded-md text-xs font-semibold",children:null===(C=(0,N.$j)(M))||void 0===C?void 0:C.slaLabel})]})]}
1),(0,g.jsxs)("div",{className:"flex flex-col p-6 gap-4 rounded-md border border-gray-400",children:[(0,g.jsxs)("div",{className:"flex justify-between md:gap-2",children:[(0,g.jsx)("div",{className:"w-1/3 text-sm font-semibold",children:"Prodotto"}),(0,g.jsx)("div",{className:"w-[100px] text-end font-semibold text-sm hidden sm:block",children:"Prezzo"}),(0,g.jsx)("div",{className:"w-[100px] text-end font-semibold text-sm",children:"Quantità"}),(0,g.jsx)("div",{className:"w-[100px] text-end font-semibold text-sm",children:"Subtotale"})]}),Ie.filter((e=>e.finalQuantity>0)).map(((e,s)=>(0,g.jsxs)("div",{className:"flex justify-between items-center gap-2",children:[(0,g.jsxs)("div",{className:"w-1/3 text-sm flex flex-col md:flex-row items-center gap-4",children:[(0,g.jsx)("div",{className:"border border-gray-900 rounded-md overflow-hidden flex-shrink-0",children:(0,g.jsx)("img",{className:"block",src:(0,j.Z)(e.imageUrl,le?70:100,le?70:100),alt:"Immagine prodotto"})}),(0,g.jsx)("a",{href:(0,N.Pn)(e),className:"underline text-center md:text-start",target:"_blank",children:e.name})]}),(0,g.jsxs)("div",{className:"w-[100px] text-end text-sm md:text-base hidden sm:block",children:[(0,N.S3)(e.sellingPrice)," €"]}),(0,g.jsx)("div",{className:"w-[100px] text-end text-sm md:text-base",children:(0,N.Qe)(e.finalQuantity,e.unitMultiplier)}),(0,g.jsxs)("div",{className:"w-[100px] text-end text-sm md:text-base",children:[(0,N.S3)(e.sellingPrice*e.finalQuantity)," ","€"]})]},s)))]}),(0,g.jsxs)("div",{className:"flex flex-col gap-6",children:["v1"===M.changeVersion&&M.changesAttachment&&M.changesAttachment.changesData.length>0&&(0,g.jsxs)("div",{className:"flex flex-col gap-4 mt-4 flex-grow w-fit max-w-full",children:[(0,g.jsx)("h3",{className:"text-xl font-semibold",children:"Modifiche all'ordine"}),(0,g.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,g.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,g.jsx)("h4",{className:"font-semibold",children:"Ordine originale"}),(0,g.jsx)("div",{className:"text-gray-500 text-sm",children:(0,N.Iu)(M.creationDate)}),(0,g.jsxs)("div",{children:[null===(E=(0,N.DV)(M,"Items"))||void 0===E?void 0:E.value," €"]})]}),(0,g.jsx)(m.P,{className:"shrink-0",width:le?12:16,height:le?12:16,color:"#000"}),(0,g.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,g.jsx)("h4",{className:"font-semibold",children:"Ordine attuale"}),(0,g.jsx)("div",{className:"text-gray-500 text-sm",children:(0,N.Iu)(null!==(R=null===(A=M.changesAttachment.changesData.at(-1))||void 0===A?void 0:A.receipt.date)&&void 0!==R?R:"")}),(0,g.jsxs)("div",{className:"text-sm md:text-base",children:[null===(_=(0,N.DV)(M,"AfterChanges"))||void 0===_?void 0:_.value," €"]})]})]}),(0,g.jsx)("div",{className:"flex flex-col gap-2 mt-2",children:Ie.filter((e=>e.finalQuantity!==e.quantity)).map(((e,s)=>(0,g.jsxs)("div",{className:"flex items-center gap-4 p-4 border border-gray-400 rounded-md",children:[(0,g.jsx)("div",{children:(0,g.jsx)("img",{alt:"Immagine prodotto",src:(0,j.Z)(e.imageUrl,le?70:80,le?70:80),className:"block "+(e.finalQuantity<=0?"opacity-30":"")})}),(0,g.jsxs)("div",{className:"flex flex-col gap-2 md:gap-3",children:[(0,g.jsx)("span",{className:"font-semibold text-sm",children:e.name}),(0,g.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,g.jsx)("span",{className:"text-sm md:text-base",children:(0,N.Qe)(e.quantity,e.unitMultiplier)}),(0,g.jsx)(m.P,{color:"#000",width:12,height:12}),(0,g.jsx)("span",{className:"text-sm md:text-base",children:(0,N.Qe)(e.finalQuantity,e.unitMultiplier)})]}),(0,g.jsxs)("span",{className:"text-sm md:text-base",children:[(0,N.S3)(e.sellingPrice)," €"]})]})]},s)))})]}),"v2"===M.changeVersion&&M.changeSummaryV2&&(0,g.jsxs)("div",{className:"flex flex-col gap-4 mt-4 flex-grow w-fit max-w-full",children:[(0,g.jsx)("h3",{className:"text-xl font-semibold",children:"Modifiche all'ordine"}),(0,g.jsxs)("div",{className:"flex gap-4 justify-between items-center",children:[(0,g.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,g.jsx)("h4",{className:"font-semibold",children:"Ordine originale"}),(0,g.jsx)("div",{className:"text-gray-500 text-sm",children:(0,N.Iu)(M.creationDate)}),(0,g.jsxs)("div",{children:[(0,N.S3)(M.value-M.changeSummaryV2.totalChangeValue)," ","€"]})]}),(0,g.jsx)(m.P,{className:"shrink-0",width:le?12:16,height:le?12:16,color:"#000"}),(0,g.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,g.jsx)("h4",{className:"font-semibold",children:"Ordine attuale"}),(0,g.jsxs)("div",{className:"text-sm md:text-base",children:[(0,N.S3)(M.value)," €"]})]})]}),(0,g.jsxs)("div",{className:"flex flex-col gap-2 mt-2",children:[M.changeSummaryV2.removed.map(((e,s)=>(0,g.jsxs)("div",{className:"flex items-center gap-4 p-4 border border-gray-400 rounded-md",children:[(0,g.jsx)("div",{children:(0,g.jsx)("img",{alt:"Immagine prodotto",src:(0,j.Z)(e.imageUrl,le?70:80,le?70:80),className:"block opacity-30"})}),(0,g.jsxs)("div",{className:"flex flex-col gap-2 md:gap-3",children:[(0,g.jsx)("span",{className:"font-semibold text-sm",children:e.name}),(0,g.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,g.jsx)("span",{className:"text-sm md:text-base",children:(0,N.Qe)(e.quantity,e.unitMultiplier)}),(0,g.jsx)(m.P,{color:"#000",width:12,height:12}),(0,g.jsx)("span",{className:"text-sm md:text-base",children:(0,N.Qe)(0,e.unitMultiplier)})]}),(0,g.jsxs)("span",{className:"text-sm md:text-base",children:[(0,N.S3)(e.sellingPrice)," €"]})]})]},s))),M.changeSummaryV2.added.map(((e,s)=>(0,g.jsxs)("div",{className:"flex items-center gap-4 p-4 border border-gray-400 rounded-md",children:[(0,g.jsx)("div",{children:(0,g.jsx)("img",{alt:"Immagine prodotto",src:(0,j.Z)(e.imageUrl,le?70:80,le?70:80),className:"block"})}),(0,g.jsxs)("div",{className:"flex flex-col gap-2 md:gap-3",children:[(0,g.jsx)("span",{className:"font-semibold text-sm",children:e.name}),(0,g.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,g.jsx)("span",{className:"text-sm md:text-base",children:(0,N.Qe)(0,e.unitMultiplier)}),(0,g.jsx)(m.P,{color:"#000",width:12,height:12}),(0,g.jsx)("span",{className:"text-sm md:text-base",children:(0,N.Qe)(e.quantity,e.unitMultiplier)})]}),(0,g.jsxs)("span",{className:"text-sm md:text-base",children:[(0,N.S3)(e.sellingPrice)," €"]})]})]},s)))]})]}),Ce&&(0,g.jsxs)("div",{className:"flex flex-col gap-4 mt-4 flex-grow w-fit max-w-full",children:[(0,g.jsx)("h3",{className:"text-xl font-semibold",children:"Prodotti restituiti"}),(0,g.jsx)("div",{className:"flex flex-col gap-2",children:ke.map(((e,s)=>(0,g.jsxs)("div",{className:"flex items-center gap-4 p-4 border border-gray-400 rounded-md",children:[(0,g.jsx)("div",{children:(0,g.jsx)("img",{alt:"Immagine prodotto",src:(0,j.Z)(e.imageUrl,le?70:80,le?70:80),className:"block"})}),(0,g.jsxs)("div",{className:"flex flex-col gap-2 md:gap-3 grow",children:[(0,g.jsx)("span",{className:"font-semibold text-sm",children:e.name}),(0,g.jsxs)("div",{className:"flex gap-4 items-center justify-between",children:[(0,g.jsxs)("span",{className:"text-sm md:text-base",children:[(0,N.S3)(e.sellingPrice)," €"]}),(0,g.jsx)("span",{className:"text-sm md:text-base",children:(0,N.Qe)(e.quantity,e.unitMultiplier)}),(0,g.jsxs)("span",{className:"text-sm md:text-base",children:[(0,N.S3)(e.sellingPrice*e.quantity)," ","€"]})]})]})]},s)))})]})]})]}),void 0!==le&&"cancel"===ce&&(null==M?void 0:M.guestCancellation)&&(0,n.createPortal)((0,g.jsx)(b,{orderId:M.orderId,name:Q,closeModal:Ae}),document.body)]})]})}},847:function(e,s,t){t.d(s,{N:function(){return r}});
1var l=t(503),a=[{min:25,max:49,printed:!1},{min:50,max:74,printed:!1},{min:75,max:89,printed:!1},{min:90,max:100,printed:!1}],r=()=>{var e,s,t,r,n=(e=window.innerHeight,s=document.documentElement.scrollHeight,t=window.scrollY||document.documentElement.scrollTop,r=s-e,Math.floor(t/r*100)),i=a.find((e=>n>=e.min&&n<=e.max));i&&!i.printed&&((0,l.$)({name:"scroll_depth",params:{scroll_threshold:i.min}}),i.printed=!0)}},7209:function(e,s,t){t.d(s,{$:function(){return i}});var l=t(3064),a=t(503),r=t(6540),n=t(4562),i=e=>{var{person:s,isValidating:t}=(0,l.w)(),{0:i,1:d}=(0,r.useState)(!1);(0,r.useEffect)((()=>{if(!i&&!t){var l,r=new Promise(((e,t)=>{try{if(null!=s&&s.email){var l=(new TextEncoder).encode(null==s?void 0:s.email);crypto.subtle.digest("SHA-256",l).then((s=>{var t=Array.from(new Uint8Array(s)).map((e=>e.toString(16).padStart(2,"0"))).join("");e(t)})).catch((e=>{t(e)}))}else e(null)}catch(a){t(a)}})),o=null===(l=JSON.parse(localStorage.getItem(n.Yf)||"{}"))||void 0===l?void 0:l.bk_id;r.then((t=>{(0,a.$)({name:"gtm_user_event",params:{loginStatus:null!=s&&s.id?"logged":"not logged",userID:null!=s&&s.id?null!=o?o:null==s?void 0:s.id:"",visitorType:"",visitorContactInfo:{hashed_email:null!=t?t:""},visitorOptinNewsLetter:"",pageType:e}}),d(!0)}))}}),[s,d,i,t])}},7487:function(e,s,t){t.d(s,{E:function(){return l},Z:function(){return a}});var l=(e,s,t)=>{var l=null==e?void 0:e.match(/\/ids\/(\d+)\//),a="";if(l){var[,r]=l,n=r+"-"+(null!=s?s:200)+"-"+(null!=t?t:200);a=e.replace(r,n)}return new URL(a).href},a=(e,s,t)=>{var l="/ids/$1-"+s+"-"+t+"/";return e.replace(/\/ids\/(\d+)(?:-\d+-\d+)?\//,l)}},4659:function(e,s,t){var l=t(3724),a=t(4913),r=t(6980);e.exports=function(e,s,t){l?a.f(e,s,r(0,t)):e[s]=t}},6080:function(e,s,t){var l=t(7476),a=t(9306),r=t(616),n=l(l.bind);e.exports=function(e,s){return a(e),void 0===s?e:r?n(e,s):function(){return e.apply(s,arguments)}}},7476:function(e,s,t){var l=t(2195),a=t(9504);e.exports=function(e){if("Function"===l(e))return a(e)}},851:function(e,s,t){var l=t(6955),a=t(5966),r=t(4117),n=t(6269),i=t(8227)("iterator");e.exports=function(e){if(!r(e))return a(e,i)||a(e,"@@iterator")||n[l(e)]}},81:function(e,s,t){var l=t(9565),a=t(9306),r=t(8551),n=t(6823),i=t(851),d=TypeError;e.exports=function(e,s){var t=arguments.length<2?i(e):s;if(a(t))return r(l(t,e));throw new d(n(e)+" is not iterable")}},4209:function(e,s,t){var l=t(8227),a=t(6269),r=l("iterator"),n=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||n[r]===e)}},2652:function(e,s,t){var l=t(6080),a=t(9565),r=t(8551),n=t(6823),i=t(4209),d=t(6198),o=t(1625),c=t(81),m=t(851),x=t(9539),u=TypeError,f=function(e,s){this.stopped=e,this.result=s},h=f.prototype;e.exports=function(e,s,t){var p,g,b,v,j,N,y,w=t&&t.that,S=!(!t||!t.AS_ENTRIES),I=!(!t||!t.IS_RECORD),k=!(!t||!t.IS_ITERATOR),P=!(!t||!t.INTERRUPTED),C=l(s,w),E=function(e){return p&&x(p,"normal",e),new f(!0,e)},R=function(e){return S?(r(e),P?C(e[0],e[1],E):C(e[0],e[1])):P?C(e,E):C(e)};if(I)p=e.iterator;else if(k)p=e;else{if(!(g=m(e)))throw new u(n(e)+" is not iterable");if(i(g)){for(b=0,v=d(e);v>b;b++)if((j=R(e[b]))&&o(h,j))return j;return new f(!1)}p=c(e,g)}for(N=I?e.next:p.next;!(y=a(N,p)).done;){try{j=R(y.value)}catch(A){x(p,"throw",A)}if("object"==typeof j&&j&&o(h,j))return j}return new f(!1)}},9539:function(e,s,t){var l=t(9565),a=t(8551),r=t(5966);e.exports=function(e,s,t){var n,i;a(e);try{if(!(n=r(e,"return"))){if("throw"===s)throw t;return t}n=l(n,e)}catch(d){i=!0,n=d}if("throw"===s)throw t;if(i)throw n;return a(n),t}},6269:function(e){e.exports={}},3921:function(e,s,t){var l=t(6518),a=t(2652),r=t(4659);l({target:"Object",stat:!0},{fromEntries:function(e){var s={};return a(e,(function(e,t){r(s,e,t)}),{AS_ENTRIES:!0}),s}})}}]);
2//# sourceMappingURL=component---src-pages-guest-order-tsx-cbe9db4e2eda4d3c90f8.js.map

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.