1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1849],{69835:function(e,t,r){var a=r(64836);t.Z=void 0;var i=a(r(64938)),n=r(85893),l=(0,i.default)((0,n.jsx)("path",{d:"M17 5H3c-1.1 0-2 .89-2 2v9h2c0 1.65 1.34 3 3 3s3-1.35 3-3h5.5c0 1.65 1.34 3 3 3s3-1.35 3-3H23v-5l-6-6zM3 11V7h4v4H3zm3 6.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm7-6.5H9V7h4v4zm4.5 6.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zM15 11V7h1l4 4h-5z"}),"AirportShuttle");t.Z=l},38433:function(e,t,r){var a=r(64836);t.Z=void 0;var i=a(r(64938)),n=r(85893),l=(0,i.default)((0,n.jsx)("path",{d:"m15 5-1.41 1.41L18.17 11H2v2h16.17l-4.59 4.59L15 19l7-7-7-7z"}),"EastOutlined");t.Z=l},874:function(e,t,r){var a=r(64836);t.Z=void 0;var i=a(r(64938)),n=r(85893),l=(0,i.default)([(0,n.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zM7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9z"},"0"),(0,n.jsx)("circle",{cx:"12",cy:"9",r:"2.5"},"1")],"LocationOnOutlined");t.Z=l},36804:function(e,t,r){var a=r(54235),i=r(85893);t.Z=(0,a.Z)((0,i.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined")},92967:function(e,t,r){r.d(t,{Z:function(){return u}});var a=r(85893);r(67294);var i=r(22841),n=r(29630),l=r(30120),o=r(31362),s=r(18204);let d={marginRight:"2px",color:s.Z.palette.error.dark},c={"& .MuiSvgIcon-root":{fontSize:"2rem",fill:s.Z.palette.primary}},p={"& .MuiSvgIcon-root":{fontSize:"2rem",fill:s.Z.palette.error.dark}};var x=r(90993);let m=e=>{let{name:t,label:r,error:s,sx:m,required:u,checked:h,onChange:f,private_link:g,...v}=e,Z=()=>(0,a.jsx)(a.Fragment,{children:u?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.Z,{sx:d,component:"sup",children:"*"}),r,g&&(0,a.jsx)(n.Z,{sx:{marginLeft:1},children:(0,a.jsx)("a",{href:x.F,target:"_blank","aria-label":g,children:g})})]}):(0,a.jsx)(a.Fragment,{children:r})});return(0,a.jsx)(l.Z,{sx:m,children:(0,a.jsx)(i.Z,{control:(0,a.jsx)(o.Z,{sx:s?p:c,size:"medium",checked:h,onChange:f,name:t,...v}),label:(0,a.jsx)(Z,{})})})};var u=m},15889:function(e,t,r){var a=r(85893),i=r(87536),n=r(30120);r(67294);var l=r(19699);let o=e=>{let{name:t,sx:r,minDate:o,maxDate:s,...d}=e,{control:c,formState:{errors:p}}=(0,i.Gc)();return(0,a.jsx)(n.Z,{sx:r,children:(0,a.jsx)(i.Qr,{control:c,name:t,defaultValue:"",render(e){var r;let{field:i}=e;return(0,a.jsx)(l.B,{...i,...d,fullWidth:!0,variant:"outlined",sx:{mb:"1.5rem"},error:!!p[t],helperText:p[t]?null===(r=p[t])||void 0===r?void 0:r.message:"",inputProps:{min:o,max:s}})}})})};t.Z=o},19699:function(e,t,r){r.d(t,{B:function(){return n}});var a=r(81719),i=r(63225);let n=(0,a.ZP)(i.Z)(e=>{let{theme:t}=e;return{"& .MuiFormLabel-root .MuiFormLabel-asterisk":{color:t.palette.error.dark},"& .MuiInputBase-root":{borderRadius:"8px"},"& label":{top:"-15px",fontSize:t.typography.h3.fontSize,letterSpacing:"0.02em",marginLeft:"-8px"},"& label:before":{backgroundColor:"red"},"& .MuiInputBase-input":{borderRadius:"8px",backgroundColor:t.palette.info.main,margin:0,padding:"10px"},"& .MuiInput-underline:after":{border:"none"},"& .MuiOutlinedInput-root":{"& .MuiOutlinedInput-notchedOutline span":{display:"none"}},"& fieldset":{borderWidth:"1px !important"}}})},49014:function(e,t,r){var a=r(85893);r(67294);var i=r(33027),n=r(75084),l=r(11163);let o=e=>{let{sx:t}=e,r=(0,l.useRouter)(),o=()=>{r.push("/")};return(0,a.jsx)(n.Z,{id:"go_back_main",component:"a",onClick:o,variant:"contained",sx:{padding:"10px 40px 20px 40px",marginTop:10,...t},children:(0,a.jsx)(i.Z,{})})};t.Z=o},81812:function(e,t,r){var a=r(85893);r(67294);var i=r(30120),n=r(29630),l=r(81719),o=r(22283);let s=(0,l.ZP)(i.Z)(e=>{let{theme:t}=e;return{display:"grid",gridTemplateColumns:"1fr",alignItems:"center",[t.breakpoints.up("md")]:{gridTemplateColumns:"auto 1fr",gap:16}}}),d=(0,l.ZP)(i.Z)(e=>{let{theme:t}=e;return{backgroundImage:"url('/walizka.webp')",backgroundSize:"cover",[t.breakpoints.down("md")]:{padding:"32px"}}}),c=(0,l.ZP)("a")(e=>{let{theme:t}=e;return{textDecoration:"underline",color:"inherit","&:hover":{color:t.palette.primary.main,textDecoration:"underline"}}}),p=()=>{let{t:e}=(0,o.$G)("order",{keyPrefix:"pre_order"});
1return(0,a.jsxs)(s,{children:[(0,a.jsx)(d,{sx:{width:"15rem",height:"20rem"},role:"img","aria-label":"image"}),(0,a.jsx)(n.Z,{variant:"h4",component:"div",marginTop:2,children:(0,a.jsx)(o.cC,{components:{a:(0,a.jsx)(c,{})},children:e("successPreOffer.suitcase_lefant_message")})})]})};t.Z=p},80974:function(e,t,r){var a=r(85893);r(67294);var i=r(70918),n=r(30120),l=r(29630),o=r(68346),s=r(81719),d=r(49014),c=r(81812);let p=(0,s.ZP)(i.Z)(e=>{let{theme:t}=e;return{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:30,padding:"16px 20px",border:"1px solid ".concat(t.palette.primary.main),[t.breakpoints.up("md")]:{padding:"24px 60px"}}}),x=e=>{let{text:t,goBackText:r,linkText:i}=e;return(0,a.jsx)(n.Z,{marginBottom:4,children:(0,a.jsxs)(p,{children:[(0,a.jsxs)(l.Z,{variant:"h4",component:"p",children:[t,i&&(0,a.jsx)(o.Z,{marginLeft:1,sx:{textDecoration:"none"},href:"tel:".concat(i),children:i}),(0,a.jsx)(c.Z,{})]}),r&&(0,a.jsx)(l.Z,{variant:"h2",component:"p",children:r}),(0,a.jsx)(d.Z,{sx:{maxWidth:300,marginTop:0}})]})})};t.Z=x},69469:function(e,t,r){var a=r(85893);r(67294);var i=r(18204),n=r(22283),l=r(29630),o=r(98473);let s={color:i.Z.palette.warning.dark,marginLeft:"8px"},d=e=>{let{priceTotalPln:t,priceTotalEur:r,personsCount:i,sx:d,onlyPln:c,onlyEur:p}=e,{t:x}=(0,n.$G)("common");return(0,a.jsx)(a.Fragment,{children:c?(0,a.jsx)(l.Z,{sx:{...s,...d},variant:"h6",component:"p",children:x("price.total_pln",{priceTotalPln:(0,o.__)(t),persons:i})}):p?(0,a.jsx)(l.Z,{sx:{...s,...d},variant:"h6",component:"p",children:x("price.total_eur",{priceTotalEur:(0,o.__)(r*i),persons:i})}):(0,a.jsx)(l.Z,{sx:{...s,...d},variant:"h6",component:"p",children:x("price.total_price",{priceTotalPln:(0,o.__)(t),priceTotalEur:(0,o.__)(r),persons:i})})})};t.Z=d},91851:function(e,t,r){var a=r(85893),i=r(30120),n=r(29630);r(67294);var l=r(38433),o=r(874),s=r(18204);let d=e=>{let{route:t,sx:r}=e;return(0,a.jsx)(i.Z,{sx:{...c,...r},children:(0,a.jsx)(i.Z,{sx:p,children:t.map((e,r)=>(0,a.jsxs)(n.Z,{sx:x,children:[(0,a.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[(0===r||r===t.length-1)&&(0,a.jsx)(o.Z,{sx:{color:s.Z.palette.grey[600],fontSize:"1rem",mb:"-2px"}}),e]}),r!==t.length-1&&(0,a.jsx)(l.Z,{fontSize:"small",sx:{color:s.Z.palette.grey[600],ml:1,mr:1}})]},r))})})};t.Z=d;let c={display:"flex",gap:2,p:0,pt:1,alignItems:"flex-start"},p={m:0,p:0,display:"flex",flexWrap:"wrap",gap:"4px"},x={display:"flex",alignItems:"center",gap:"2px",fontSize:"0.875rem",fontWeight:400,color:s.Z.palette.grey[600]}},29473:function(e,t,r){var a=r(85893);r(67294);var i=r(30120),n=r(29630),l=r(59651),o=r(22283),s=r(91851),d=r(18204);let c=e=>{let{region:t,count:r,variant:c="h3",route:x}=e,{t:m}=(0,o.$G)("cruises");return(0,a.jsxs)(i.Z,{sx:p,children:[(0,a.jsx)(n.Z,{sx:{gridArea:"title",color:d.Z.palette.grey[900]},variant:c,children:m("offers_list.title",{region:t})}),(0,a.jsx)(l.Z,{sx:{gridArea:"stars",justifySelf:"end"},count:r}),(0,a.jsx)(i.Z,{sx:{gridArea:"route"},children:x&&(0,a.jsx)(s.Z,{route:x})})]})},p={display:"grid",gridTemplateColumns:"auto 1fr",gap:1,gridTemplateAreas:'"title stars" "route route"'};t.Z=c},40732:function(e,t,r){r.d(t,{Z:function(){return f}});var a=r(85893),i=r(67294),n=r(22283),l=r(77284),o=r(70918),s=r(91023),d=r(48236),c=r(30381),p=r.n(c);let x=(e,t)=>{let{email:r,firstName:a,lastName:i,phoneNumber:n,dateOfBirth:l,agreePhone:o,agreeMarketing:s,politics:d}=e,c={first_name:a,last_name:i,birthday:p()(l).format("YYYY-MM-DD"),phone:n,email:r,accept_operator_condition:o,newsletter:s,processing_personal_data:d,reservations_attributes:[{number:t.id.toString(),departure_date:t.departure_date,arrival_date:t.return_date,content:t}]};return c};var m=r(73400),u=r(81472);let h=e=>{let{postForm:t,offer:r,handleGoBack:c}=e,[p,h]=(0,i.useState)({agreeMarketing:!1,agreePhone:!1,checkedAll:!1,politics:!1,email:"",dateOfBirth:"",firstName:"",lastName:"",phoneNumber:""}),{enqueueSnackbar:f}=(0,m.Ds)(),{request:g,loading:v,error:Z,setError:j}=(0,s.i)(),b=()=>{c()},{t:_}=(0,n.$G)("order",{keyPrefix:"pre_order.form"}),{t:k}=(0,n.$G)("common",{keyPrefix:"snackbar_message"}),y=(0,i.useCallback)(async e=>{try{let a=await g(d.Ve.postPreOrderForm(x(e,r)));a&&(f(k("success.success_send_form"),{variant:"success"}),t())}catch(i){}},[r,t,g,k,f]),C=e=>{h(e),y(e)};return(0,i.useEffect)(()=>
1{Z&&(f(k("error.not_send_form")+Z,{variant:"error"}),j(""))},[Z,f,k,j]),(0,a.jsx)(o.Z,{id:"pre_order_form",sx:{position:"relative",paddingBottom:20,paddingLeft:20,paddingRight:20,px:2},children:(0,a.jsx)(l.Z,{id:_("title"),title:_("title"),subtitleSection:!0,children:(0,a.jsx)(u.t,{postForm:C,handleGoBack:b,initialValues:p,loading:v})})})};var f=h},81472:function(e,t,r){r.d(t,{t:function(){return L}});var a=r(85893),i=r(67294),n=r(87536),l=r(5220),o=r(30120),s=r(29630),d=r(18204);d.Z.breakpoints.up("md");let c={display:"grid",gridTemplateColumns:"1fr",gap:"24px",marginTop:3,gridTemplateAreas:'\n "firstName"\n "lastName"\n "email"\n "phone"\n "date"\n ',[d.Z.breakpoints.up("md")]:{gridTemplateColumns:"1fr 1fr",gridTemplateAreas:'\n "firstName lastName"\n "email email"\n "phone date"\n '}},p={gridArea:"firstName"},x={gridArea:"lastName"},m={gridArea:"email"},u={gridArea:"phone",paddingLeft:"20px",position:"relative",height:"100px"},h={position:"absolute",left:0,top:"10%"},f={gridArea:"date"},g={display:"grid",gridTemplateColumns:"1fr",gap:"14px"},v={width:"100%",[d.Z.breakpoints.up("sm")]:{width:"200px",margin:0,padding:0}};var Z=r(15889),j=r(92967),b=r(32366),_=r(21023),k=r(93619),y=r(22283),C=r(74231);let P=e=>{let{requiredFirstName:t,requiredLastName:r,requiredEmail:a,requiredPhone:i,minLengthLastName:n,maxLengthLastName:l,maxLengthFirstName:o,minLengthFirstName:s,invalidEmail:d,invalidPhone:c,requiredDateOfBirth:p,invalidDate:x}=e;return C.Ry().shape({firstName:C.Z_().required(t).min(2,s).max(50,o),lastName:C.Z_().required(r).min(2,n).max(50,l),email:C.Z_().required(a).email(d),phoneNumber:C.Z_().min(6,c).max(12,c).required(i).matches(/^[0-9]+$/,c),dateOfBirth:C.hT().required(p).typeError(x)})};var S=r(47533),w=r(42448),z=r(98473),M=r(76204),T=r(42295);let L=e=>{let{handleGoBack:t,isPaidForm:r,postForm:d,loading:C,initialValues:L}=e,{agreeMarketing:B,agreePhone:N,checkedAll:F,politics:O,phoneNumber:q,lastName:A,firstName:D,email:R,dateOfBirth:G}=L,E=(0,T.C)(M.v1),[$,I]=(0,i.useState)(!1),[V,W]=(0,i.useState)({agreeMarketing:B,agreePhone:N,checkedAll:F,politics:O}),Y=()=>{I(!1),t()},{t:H}=(0,y.$G)("order",{keyPrefix:"pre_order.form"}),{t:K}=(0,y.$G)("footer"),Q={requiredFirstName:H("validateMessage.requiredName",{field:H("first_name.label")}),requiredLastName:H("validateMessage.requiredName",{field:H("last_name.label")}),requiredEmail:H("validateMessage.requiredEmailOrPhone",{field:H("email.label")}),requiredPhone:H("validateMessage.requiredEmailOrPhone",{field:H("phone.label")}),requiredDateOfBirth:H("validateMessage.requiredEmailOrPhone",{field:H("date_of_birth.label")}),minLengthFirstName:H("validateMessage.minLength",{field:H("first_name.label")}),minLengthLastName:H("validateMessage.minLength",{field:H("last_name.label")}),maxLengthFirstName:H("validateMessage.maxLength",{field:H("first_name.label")}),maxLengthLastName:H("validateMessage.maxLength",{field:H("last_name.label")}
1),invalidEmail:H("validateMessage.invalidEmail"),invalidPhone:H("validateMessage.invalidPhone"),invalidDate:H("validateMessage.invalidDate")},U=(0,n.cI)({resolver:(0,S.X)(P(Q)),defaultValues:{phoneNumber:q,dateOfBirth:new Date(G).toLocaleDateString("en-CA"),lastName:A,firstName:D,email:R},mode:"onBlur"}),X=e=>{if(V.politics)d({...e,...V});else{I(!0);return}},J=e=>{"checkedAll"===e.target.name?W(t=>({...t,agreeMarketing:e.target.checked,agreePhone:e.target.checked,checkedAll:e.target.checked,politics:e.target.checked})):W(t=>({...t,[e.target.name]:e.target.checked})),e.target.checked&&("politics"===e.target.name||"checkedAll"===e.target.name)&&I(!1)};return(0,i.useEffect)(()=>{window.scrollTo({top:0,behavior:"smooth"})},[]),(0,a.jsx)(n.RV,{...U,children:(0,a.jsxs)(l.l,{onSubmit:U.handleSubmit(X),children:[(0,a.jsxs)(o.Z,{sx:c,children:[(0,a.jsx)(Z.Z,{sx:p,color:"warning",label:H("first_name.label"),type:"text",name:"firstName",placeholder:H("first_name.placeholder"),focused:!0,required:!0}),(0,a.jsx)(Z.Z,{sx:x,color:"warning",label:H("last_name.label"),type:"text",name:"lastName",placeholder:H("last_name.placeholder"),focused:!0,required:!0}),(0,a.jsx)(Z.Z,{sx:m,color:"warning",label:H("email.label"),type:"email",name:"email",placeholder:H("email.placeholder"),focused:!0,required:!0}),(0,a.jsxs)(o.Z,{sx:u,children:[(0,a.jsx)(s.Z,{sx:h,children:"+48"}),(0,a.jsx)(Z.Z,{sx:u,color:"warning",label:H("phone.label"),type:"tel",name:"phoneNumber",placeholder:H("phone.placeholder"),focused:!0,required:!0})]}),(0,a.jsx)(Z.Z,{sx:f,color:"warning",label:H("date_of_birth.label"),type:"date",name:"dateOfBirth",placeholder:H("date_of_birth.placeholder"),focused:!0,required:!0,maxDate:(0,z.BC)(E)})]}),(0,a.jsxs)(o.Z,{sx:g,children:[(0,a.jsx)(j.Z,{checked:V.checkedAll,onChange:J,name:H("checkbox.checked_all.name"),label:H("checkbox.checked_all.label")}),(0,a.jsx)(j.Z,{required:!0,error:$,checked:V.politics,onChange:J,name:H("checkbox.politics.name"),label:H("checkbox.politics.label"),private_link:K("private_link")}),(0,a.jsx)(j.Z,{checked:V.agreePhone,onChange:J,name:H("checkbox.agree_phone.name"),label:H("checkbox.agree_phone.label")}),(0,a.jsx)(j.Z,{checked:V.agreeMarketing,onChange:J,name:H("checkbox.agree_marketing.name"),label:H("checkbox.agree_marketing.label")})]}),(0,a.jsxs)(o.Z,{sx:w.D,children:[(0,a.jsxs)(b.Z,{onClick:Y,sx:v,variant:"outlined",disabled:C,children:[(0,a.jsx)(_.Z,{sx:{marginRight:"14px"}}),H("buttons.cancel_button")]}),(0,a.jsxs)(b.Z,{type:"submit",sx:v,variant:"contained",disabled:C,children:[H(r?"buttons.next_button":"buttons.accept_button"),(0,a.jsx)(k.Z,{sx:{marginLeft:"14px"}})]})]})]})})}},42448:function(e,t,r){r.d(t,{D:function(){return i}});var a=r(18204);let i={position:"absolute",bottom:12,left:12,right:12,width:"inherit",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",gap:2,[a.Z.breakpoints.up("sm")]:{flexDirection:"row",justifyContent:"space-between"}}},67778:function(e,t,r){r.d(t,{Z:function(){return B}});var a=r(85893),i=r(67294),n=r(22283),l=r(78016),o=r(30120),s=r(40732),d=r(11514),c=r(10456),p=r(42295),x=r(80974),m=r(11163),u=r(9008),h=r.n(u),f=r(13264),g=r(18204),v=r(49837),Z=r(91359),j=r(69647),b=r(29630),_=r(58663),k=r(27788),y=r(69469),C=r(1748),P=r(72258),S=r(98473),w=r(29473);let z=e=>{var t,r,i,l,s,d,c,p,x,m,u,h;let{offer:f}=e,{t:z}=(0,n.$G)("offerpage",{keyPrefix:"offer"}),{t:T}=(0,n.$G)("mainpage",{keyPrefix:"hero.main.people"}),{t:L}=(0,n.$G)("cruises",{keyPrefix:"offers_list.cabin_info"}),B="".concat(f.adults_number," ").concat(T("old")),N=(null===(h=f.children_ages)||void 0===h?void 0:h.length)?f.children_ages.length:null==f?void 0:f.person_prices.filter(e=>e.is_child).length;if(N){let F=1===N?", ".concat(N," ").concat(T("child")):", ".concat(N," ").concat(T("children"));B+=F}let O=null!==(x=f.flights)&&void 0!==x?x:[],q=(null==f?void 0:null===(t=f.hotel)||void 0===t?void 0:t.image_url)?null==f?void 0:null===(r=f.hotel)||void 0===r?void 0:r.image_url:"/noPhoto.png";return(0,a.jsx)(o.Z,{children:(0,a.jsx)(v.Z,{sx:C.YS,children:(0,a.jsxs)(Z.Z,{sx:C.Y$,children:[(0,a.jsx)(w.Z,{region:f.hotel.regi
1on_name,count:null!==(m=f.hotel.category)&&void 0!==m?m:0,route:null!==(u=f.route)&&void 0!==u?u:[]}),(0,a.jsx)(j.Z,{sx:M,component:"img",image:q,alt:f.hotel.region_name}),(0,a.jsx)(_.Z,{vehicleType:"K",accessTime:f.trip_duration,flights:"S"===f.offer_type?[]:O,boards:f.boards,startDate:new Date(f.departure_date),endDate:new Date(f.return_date),room:f.accommodation.polish_name?f.accommodation.polish_name:f.accommodation.name,transferAirport:(0,S.wb)(f.transfer),peopleCount:B,city:f.hotel.region_name,sx:{paddingLeft:0,svg:{marginRight:"8px"}},moreDetails:!0,isFlex:!0}),f.selectedCabins&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.Z,{sx:C.jv}),(0,a.jsx)(b.Z,{variant:"h6",sx:C.fB,children:(0,a.jsx)("strong",{children:L("selected_cabin")})}),(0,a.jsx)(b.Z,{variant:"h6",sx:C.fB,children:f.selectedCabins.item.name})]}),(0,a.jsx)(o.Z,{sx:C.jv}),f.selectedCabins?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"space-between"},children:[(0,a.jsx)(P.ZP,{path:f.operator.code,isMerlinx:!1}),(0,a.jsx)(k.Z,{sx:{fontSize:"32px",mb:"8px"},price:null===(i=f.selectedCabins)||void 0===i?void 0:null===(l=i.item)||void 0===l?void 0:l.price,currency:null===(s=f.selectedCabins)||void 0===s?void 0:null===(d=s.item)||void 0===d?void 0:d.currency})]}),(0,a.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"end"},children:[(0,a.jsx)(b.Z,{sx:C.fL,children:z("whole")}),(0,a.jsx)(y.Z,{priceTotalPln:f.price_total_pln,personsCount:f.person_prices.length,sx:{color:g.Z.palette.error.main,fontSize:g.Z.typography.h3.fontSize},priceTotalEur:f.price_total_eur,onlyEur:(null===(c=f.selectedCabins)||void 0===c?void 0:null===(p=c.item)||void 0===p?void 0:p.currency)==="EUR"})]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"space-between"},children:[(0,a.jsx)(P.ZP,{path:f.operator.code,isMerlinx:!1}),(0,a.jsx)(k.Z,{sx:{fontSize:"32px",mb:"8px"},price:f.price_pln})]}),(0,a.jsxs)(o.Z,{sx:{display:"flex",justifyContent:"end"},children:[(0,a.jsx)(b.Z,{sx:C.fL,children:z("whole")}),(0,a.jsx)(y.Z,{personsCount:f.person_prices.length,sx:{color:g.Z.palette.error.main,fontSize:g.Z.typography.h3.fontSize},priceTotalPln:f.price_total_pln,priceTotalEur:f.price_total_eur})]})]})]})})})},M={borderRadius:"8px",my:2,height:300,[g.Z.breakpoints.up("lg")]:{height:300}},T=(0,f.Z)(l.Z)(e=>{let{theme:t}=e;return{padding:16,paddingBottom:"30px",[t.breakpoints.up("md")]:{padding:0,paddingBottom:"100px"}}}),L=()=>{let e=(0,m.useRouter)(),{t}=(0,n.$G)("order",{keyPrefix:"pre_order"}),{t:r}=(0,n.$G)("navbar",{keyPrefix:"phone"}),{t:l}=(0,n.$G)("common",{keyPrefix:"meta_title"}),[u,f]=(0,i.useState)(!1),g=(0,p.C)(e=>e.heroReducer.cruiseOffer);if(!g)return(0,a.jsx)(a.Fragment,{});let v=()=>{f(!0)},Z=()=>{e.back()};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h(),{children:(0,a.jsx)("title",{children:"".concat(t("title")," | ").concat(l("title"))})}),(0,a.jsx)("div",{id:"dark_mode",children:(0,a.jsxs)(T,{id:t("id"),maxWidth:"lg",title:t("title"),children:[(0,a.jsx)(c.Z,{variant:"main",children:t(u?"titleSuccess":"title")}),(0,a.jsxs)(o.Z,{sx:d.lx,children:[u?(0,a.jsx)(x.Z,{text:t("successPreOffer.message"),goBackText:t("successPreOffer.go_back"),linkText:r("tel")}):(0,a.jsx)(s.Z,{handleGoBack:Z,offer:g,postForm:v}),(0,a.jsx)(o.Z,{sx:d.w3,children:(0,a.jsx)(z,{offer:g})})]})]})})]})};var B=L},57075:function(e,t,r){var a=r(85893),i=r(67294),n=r(22283),l=r(78016),o=r(30120),s=r(40732),d=r(11514),c=r(10456),p=r(29448),x=r(42295),m=r(23601),u=r(70069),h=r(80974),f=r(11163),g=r(91453),v=r(98473),Z=r(9008),j=r.n(Z),b=r(13264),_=r(52559),k=r(72666);let y=(0,b.Z)(l.Z)(e=>{let{theme:t}=e;return{padding:16,paddingBottom:"30px",[t.breakpoints.up("md")]:{padding:0,paddingBottom:"100px"}}}),C=()=>{var e,t,r;let l=(0,f.useRouter)(),Z=(0,x.T)(),b=(0,i.useRef)(null),{t:C}=(0,n.$G)("order",{keyPrefix:"pre_order"}),{t:P}=(0,n.$G)("navbar",{keyPrefix:"phone"}),{t:S}=(0,n.$G)("common",{keyPrefix:"meta_title"}),{offer:w,isLoading:z,isLoadingOffer:M}=(0,x.C)(e=>e.heroReducer),[T,L]=(0,i.useState)(!1),B=l.query,N=l.isReady&&!!B.offer_id;(0,i.useEffect)(()=>{N&&!w&&b.current!==l.asPath&&(b.current=l.asPath,Z((0,_.Cu)(B)))},[Z,N,w,B,l.asPath]);let F=(0,g.g)(w),O=(0,g.L)(w),q=()=>{L(!0)};if(!w&&(z||M||N&&b.current!==l.asPath))return(0,a.jsx)(k.Z,{});if(!w)return(0,a.jsx)(a.Fragment,{});let A=()=>{l.back()},D=(null===(e=null==w?void 0:null===(t=w.flightsWithoutAvailable)||void 0===t?void 0:t.find(e=>e.vehicale_type||e))||void 0===e?void 0:e.vehicale_type)||"F";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j(),{children:(0,a.jsx)("title",{children:"".concat(C("title")," | ").concat(F.hotel,",").concat(F.place," | ").concat(S("title"))})}),(0,a.jsx)("div",{id:"dark_mode",children:(0,a.jsxs)(y,{id:C("id"),maxWidth:"lg",title:C("title"),children:[(0,a.jsx)(c.Z,{variant:"main",children:C(T?"titleSuccess":"title")}),(0,a.jsxs)(o.Z,{sx:d.lx,children:[T?(0,a.jsx)(h.Z,{text:C("successPreOffer.message"),goBackText:C("successPreOffer.go_back"),linkText:P("tel")}):(0,a.jsx)(s.Z,{handleGoBack:A,offer:w,postForm:q}),(0,a.jsxs)(o.Z,{sx:d.w3,children:[O&&(0,a.jsx)(p.Z,{priceCard:O,serviceOptions:[],payments:null,isMerlinx:(null===(r=w.hotel)||void 0===r?void 0:r.parser)==="merlinx"}),F&&(0,a.jsx)(m.Z,{id:F.id,imgSRC:F.url,flights:F.flights,hotel:F.hotel,place:F.place,stars:F.stars,dateRange:F.dateRange,accessTime:F.accessTime,type:u.f.form,boards:F.boards,room:F.room,transferAirport:(0,v.wb)(F.transferAirport),zugzumflug:F.zugzumflug,vehicleType:D,city:F.city})]})]})]})})]})};t.Z=C},1748:function(e,t,r){r.d(t,{Y$:function(){return s},YS:function(){return i},fB:function(){return o},fL:function(){return l},jv:function(){return n}});var a=r(18204);let i={borderRadius:"12px",boxShadow:"0px 8px 20px",color:a.Z.palette.grey[50],paddingBottom:"8px",[a.Z.breakpoints.down("md")]:{margin:"16px"}},n={borderBottom:"1px solid",margin:"16px 0px",opacity:.6},l={color:a.Z.palette.warning.main,alignSelf:"center",fontSize:a.Z.typography.h3.fontSize},o={color:a.Z.palette.grey[600],alignSelf:"left",fontSize:a.Z.typography.h6.fontSize}
1,s={"&:last-child":{paddingBottom:"16px"}}}}]);
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.