"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3911],{42710:function(e,t,s){s.d(t,{IF:function(){return a}});let a={name:"Ad Allegra",message:"Buon compleanno! ❤️",sender:"Da Luca",slug:"giornata-barca-a-vela-portofino"}},10735:function(e,t,s){var a=s(85893),l=s(1534),n=s(15086),r=s(93929),c=s(25675),i=s.n(c),o=s(67294);t.Z=e=>{let{recipientInfo:t,openBookingInfo:s,className:c}=e,{expiration_datetime:x,experience_name:d,tour_duration:u,jsonAllocations:p,jsonAddons:h,experience_image:m,discount_code:g}=s,{name:f,message:b,sender:j}=t,[v,w]=(0,o.useState)(1);return(0,a.jsxs)("div",{className:c,children:[(0,a.jsxs)("div",{className:"flex flex-col border border-gray-200 bg-white px-3 py-4 w-[480px] screen600:w-full h-[70dvh] screen600:h-[65vh] relative",children:[1===v&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"relative h-[55dvh] screen600:h-[65vh] w-full",children:[(0,a.jsx)(i(),{src:m,alt:null!=d?d:"",fill:!0,style:{objectFit:"cover"},loading:"eager"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-black/20",children:(0,a.jsxs)("div",{className:"py-6 px-10 screen600:px-8 font-reenie text-white text-center flex flex-col gap-2",children:[(0,a.jsx)(n.Z,{className:"w-7 h-7 screen600:w-5 screen600:h-5 mx-auto fill-transparent stroke-[1px] mt-1"}),(0,a.jsx)("p",{className:"text-2xl screen600:text-xl mt-1",children:f}),""!=b&&(0,a.jsx)("p",{className:"text-lg screen600:text-sm px-3 screen600:px-0 whitespace-pre-line",children:b}),(0,a.jsx)("p",{className:"text-lg",children:j})]})})]}),(0,a.jsx)("div",{className:"flex flex-col text-center py-7 pt-6 screen600:pt-5 screen600:py-3.5 gap-4 px-8 leading-5",children:(0,a.jsx)("p",{className:"font-oswald text-base screen600:text-[13.5px]",children:d})}),(0,a.jsx)("div",{className:"flex items-center justify-center mt-10 h-[22px]"}),(0,a.jsx)("div",{className:"absolute bottom-3 left-1/2 -translate-x-1/2",children:(0,a.jsx)(i(),{src:l.Z,alt:"holidoit logo",width:251/4.5,height:22,style:{objectFit:"cover"},className:"rounded-lg",loading:"eager"})})]}),2===v&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"mt-2 flex flex-col gap-2 text-center px-6",children:[(0,a.jsx)("p",{className:"uppercase text-[11px] screen600:text-[10px] font-robotoMono",children:"opzione prenotata"}),(0,a.jsx)("p",{className:"font-oswald screen600:text-[15px]",children:[u?(0,r.LU)(u):"Durata di esempio: 8 ore",(0,r.EI)(null!=p?p:[]),h&&h.length>0&&(0,a.jsxs)("span",{children:[", ",(0,r.Lc)(h)]})].filter(Boolean).join(", ")})]}),(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center gap-1 py-5",children:[(0,a.jsx)("div",{className:"w-[2px] h-1.5 bg-gray-800 rounded-full"}),(0,a.jsx)("div",{className:"w-[2px] h-1.5 bg-gray-800 rounded-full"}),(0,a.jsx)("div",{className:"w-[2px] h-1.5 bg-gray-800 rounded-full"}),(0,a.jsx)("div",{className:"w-[2px] h-1.5 bg-gray-800 rounded-full"}),(0,a.jsx)("div",{className:"w-[2px] h-1.5 bg-gray-800 rounded-full"}),(0,a.jsx)("div",{className:"w-[2px] h-1.5 bg-gray-800 rounded-full"}),(0,a.jsx)("div",{className:"w-[2px] h-1.5 bg-gray-800 rounded-full"}),(0,a.jsx)("div",{className:"w-[2px] h-1.5 bg-gray-800 rounded-full"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-2 text-center font-robotoMono",children:[(0,a.jsx)("p",{className:"uppercase text-[11px] screen600:text-[10px] ",children:"istruzioni per l'uso"}),(0,a.jsxs)("p",{className:"text-xs mt-2",children:["usa il codice"," ",(0,a.jsx)("span",{className:"font-medium",children:g||"ESEMPIO"})," e prenota l'esperienza su Holidoit!"]}),(0,a.jsx)("p",{className:"text-gray-400 text-[10px] px-6 screen600:text-[8px] screen600:mt-1",children:"psst: puoi usare il codice anche per un'altra esperienza a tuo piacere - non lo diremo a nessuno \uD83E\uDD2B"}),(0,a.jsxs)("p",{className:"text-gray-400 text-[10px] px-6 mt-2 screen600:text-[8px]",children:["puoi prenotare l'esperienza entro il"," ",new Date(x||new Date().getTime()+316224e5).toLocaleDateString("it-IT",{day:"numeric",month:"long",year:"numeric"})]})]}),(0,a.jsx)("div",{className:"flex items-center"}),(0,a.jsx)("div",{className:"absolute bottom-3 left-1/2 -translate-x-1/2",children:(0,a.jsx)(i(),{src:l.Z,alt:"holidoit logo",width:251/4.5,height:22,style:{objectFit:"cover"},className:"rounded-lg",loading:"eager"})})]})]}),(0,a.jsxs)("div",{className:"flex flex-row justify-center gap-2 mt-5 screen600:mt-3.5 screen600:pb-5",children:[(0,a.jsx)("button",{onClick:e=>{e.preventDefault(),w(1)},className:"flex items-center justify-center h-10 w-10 rounded-full border-[1.5px] transition-all duration-100 ".concat(1===v?"bg-blue-400 text-white border-blue-400":"bg-white border-blue-300 hover:border-blue-400 hover:text-blue-500 text-blue-400"),children:"1"}),(0,a.jsx)("button",{onClick:e=>{e.preventDefault(),w(2)},className:"flex items-center justify-center h-10 w-10 rounded-full border-[1.5px] transition-all duration-100 ".concat(2===v?"bg-blue-400 text-white border-blue-400":"bg-white border-blue-300 hover:border-blue-400 hover:text-blue-500 text-blue-400"),children:"2"})]})]})}},78660:function(e,t,s){function a(){var e;let t=new URLSearchParams(window.location.search);if(t.get("name")||t.get("message")||t.get("sender"))return{name:t.get("name")||"",message:(null===(e=t.get("message"))||void 0===e?void 0:e.replace(/\\n/g,"\n"))||"",sender:t.get("sender")||"",slug:t.get("slug")||""}}function l(e){let t=new URLSearchParams(window.location.search);t.set("name",e.name),t.set("message",e.message),t.set("sender",e.sender),t.set("slug",e.slug),window.history.replaceState({},"","".concat(window.location.pathname,"?").concat(t.toString()))}s.d(t,{S:function(){return a},f:function(){return l}})},53738:function(e,t,s){var a;async function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.ok||302===e.status||t.indexOf(e.status)>=0)return e.json();{let t=await e.text();throw Error(e.statusText,{cause:{statusCode:e.status,body:t}})}}s.d(t,{ry:function(){return l}}),s(74231),s(42474),s(83454),(a||(a={})).E_EXISTS="E_EXISTS"}}]);