1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[481],{53702:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/onboarding",function(){return n(19660)}])},62725:function(e,t,n){"use strict";n.d(t,{aX:function(){return s},fb:function(){return a},rr:function(){return r},xv:function(){return A}});var i=n(87379),o=n(86939);let a=i.ZP.div.withConfig({componentId:"sc-3bc1f755-0"})(["border-radius:10px;display:flex;flex-direction:column;flex-wrap:nowrap;align-content:center;justify-content:center;align-items:center;cursor:pointer;"]),r=i.ZP.img.withConfig({componentId:"sc-3bc1f755-1"})(["border-radius:10px;height:",";width:",";object-fit:cover;@media (min-width:","){height:",";width:",";}"],e=>"extra-small"===e.size?"100px":"small"===e.size?"125px":"large"!==e.size||e.smallerthanlaptop?("large"===e.size&&e.smallerthanlaptop,"200px"):"250px",e=>"extra-small"===e.size?"100px":"small"===e.size?"125px":"large"!==e.size||e.smallerthanlaptop?("large"===e.size&&e.smallerthanlaptop,"200px"):"250px",o.dp.mobileL,e=>"extra-small"===e.size?"125px":"small"===e.size?"200px":"large"!==e.size||e.smallerthanlaptop?("large"===e.size&&e.smallerthanlaptop,"250px"):"300px",e=>"extra-small"===e.size?"125px":"small"===e.size?"200px":"large"!==e.size||e.smallerthanlaptop?("large"===e.size&&e.smallerthanlaptop,"250px"):"300px"),A=i.ZP.div.withConfig({componentId:"sc-3bc1f755-2"})(["font-family:",";font-weight:bold;font-size:1em;text-transform:uppercase;color:",";text-align:center;max-width:",";padding-top:5px;@media (min-width:","){max-width:",";padding-top:10px;}"],o.g5.MULISH,o.COLOR.SLATE_100,e=>"small"===e.size?"125px":"large"!==e.size||e.smallerthanlaptop?("large"===e.size&&e.smallerthanlaptop,"175px"):"225px",o.dp.mobileL,e=>"small"===e.size?"175px":"large"!==e.size||e.smallerthanlaptop?("large"===e.size&&e.smallerthanlaptop,"225px"):"275px"),s=i.ZP.div.withConfig({componentId:"sc-3bc1f755-3"})(["font-family:",";font-weight:500;font-size:14px;color:",";text-align:center;max-width:",";font-style:italic;"],o.g5.OPENSANS,o.COLOR.MIDNIGHT_100,e=>"small"===e.size?"125px":"large"!==e.size||e.smallerthanlaptop?("large"===e.size&&e.smallerthanlaptop,"175px"):"225px")},19216:function(e,t,n){"use strict";n.d(t,{Av:function(){return h},Gt:function(){return c},II:function(){return x},N8:function(){return p},NZ:function(){return m},V1:function(){return b},__:function(){return f},ii:function(){return u},n2:function(){return w},oc:function(){return _},sJ:function(){return l},vx:function(){return g},z2:function(){return d},zS:function(){return E}});var i=n(85893);n(67294);var o=n(87379),a=n(86939),r=n(64156),A=n(25675),s=n.n(A);let l=(0,o.ZP)(s()).withConfig({componentId:"sc-254fd20c-0"})(["height:150px;width:150px;border-radius:100px;cursor:pointer;object-fit:cover;"]),d=o.ZP.div.withConfig({componentId:"sc-254fd20c-1"})(["display:flex;align-items:center;justify-content:space-between;flex-direction:column;padding:40px 25px;@media (min-width:","){padding:75px 200px 50px;}"],a.dp.laptop);o.ZP.div.withConfig({componentId:"sc-254fd20c-2"})(["display:flex;align-items:center;justify-content:center;flex-direction:",";padding:25px;"],e=>e.smallerthanlaptop?"column":"row"),o.ZP.div.withConfig({componentId:"sc-254fd20c-3"})(["display:flex;align-items:center;justify-content:center;flex-direction:",";padding:0px 25px;@media (min-width:","){margin-left:0px;}"],e=>e.smallerthanlaptop?"column":"row",a.dp.laptop);let c=o.ZP.div.withConfig({componentId:"sc-254fd20c-4"})(["display:flex;align-items:center;justify-content:center;flex-direction:column;padding:",";width:",";"],e=>e.smallerthanlaptop?"50px 25px 0;":"25px",e=>e.smallerthanlaptop?"100%":"50%"),p=o.ZP.div.withConfig({componentId:"sc-254fd20c-5"})(["display:flex;align-items:center;justify-content:center;flex-direction:column;padding:25px;margin-bottom:-25px;"]);(0,o.ZP)(s()).withConfig({componentId:"sc-254fd20c-6"})(["cursor:pointer;display:inline-flex;margin:-5px 5px;"]);let g=o.ZP.div.withConfig({componentId:"sc-254fd20c-7"})(["font-family:",";font-size:20px;line-height:20px;color:",";font-weight:bold;padding-top:15px;"],a.g5.MULISH,a.COLOR.MIDNIGHT_100),h=o.ZP.button.withConfig({componentId:"sc-254fd20c-8"})(["font-family:",";font-size:14px;line-height:20px;color:",";font-weight:bold;text-transform:uppercase;border:none;background-color:inherit;cursor:pointer;display:inline-block;padding:0px;&:focus{outline:none;}&:hover{color:",";}"],a.g5.OPENSANS,a.COLOR.ORANGE_100,a.COLOR.SLATE_100);o.ZP.div.withConfig({componentId:"sc-254fd20c-9"})(["width:100%;height:250px;margin-top:",";background-color:",";border-radius:10px;padding:50px;display:flex;flex-direction:column;justify-content:space-between;&:first-child{margin-right:",";margin-top:0px;}"],e=>e.smallerthanlaptop?"25px":"0px",a.COLOR.PAPER_25,e=>e.smallerthanlaptop?"0px":"25px"),o.ZP.div.withConfig({componentId:"sc-254fd20c-10"})(["color:",";font-family:",";"],a.COLOR.MIDNIGHT_100,a.g5.OPENSANS);let u=o.ZP.div.withConfig({componentId:"sc-254fd20c-11"})(["color:",";background-color:",";font-family:",";display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:6px 12px 0px 12px;margin:0 auto;text-align:center;font-weight:700;"],a.COLOR.SLATE_100,a.COLOR.PAPER_00,a.g5.OPENSANS),m=o.ZP.div.withConfig({componentId:"sc-254fd20c-12"})(["font-family:",";font-size:20px;line-height:24px;color:",";font-weight:800;"],a.g5.MULISH,a.COLOR.MIDNIGHT_100);o.ZP.div.withConfig({componentId:"sc-254fd20c-13"})(["font-family:",";font-size:20px;line-height:24px;color:",";font-weight:700;padding-bottom:15px;"],a.g5.MULISH,a.COLOR.SLATE_100),o.ZP.div.withConfig({componentId:"sc-254fd20c-14"})(["width:100%;background-color:",";@media (max-width:","){margin-bottom:80px;}"],a.COLOR.PAPER_00,a.dp.laptop);let x=(0,o.ZP)(e=>{let{error:t,...n}=e;return(0,i.jsx)(r.S,{...n})}).withConfig({componentId:"sc-254fd20c-15"})(["border-color:",";"],e=>{let{error:t}=e;return t?"#FC6B43":"#DEE6EE"}),f=o.ZP.label.withConfig({componentId:"sc-254fd20c-16"})(["font-family:",";font-size:12px;line-height:20px;color:",";margin-bottom:5px;left:0;"],a.g5.OPENSANS,a.COLOR.MIDNIGHT_75);o.ZP.div.withConfig({componentId:"sc-254fd20c-17"})(["font-family:",";font-size:13px;line-height:20px;color:red;padding-right:20px;max-width:300px;"],a.g5.MULISH);let w=o.ZP.div.withConfig({componentId:"sc-254fd20c-18"})(["display:flex;flex-direction:column;margin-bottom:20px;width:250px;"]),b=o.ZP.div.withConfig({componentId:"sc-254fd20c-19"})(["display:",";font-family:",";font-size:36px;line-height:24px;color:",";font-weight:bold;text-align:center;padding:0 25px;"],e=>e.smallerthanlaptop&&e.$userConfirmed?"none":"block",a.g5.MULISH,a.COLOR.MIDNIGHT_100),_=o.ZP.button.withConfig({componentId:"sc-254fd20c-20"})(["font-family:",";font-size:",";line-height:24px;color:red;font-weight:bold;text-align:center;border:2px solid red;background-color:white;padding:15px 30px;margin:0 auto;margin-bottom:15px;border-radius:30px;display:block;"],a.g5.MULISH,e=>
1e.smallerthanlaptop?"16px":"20px"),E=o.ZP.form.withConfig({componentId:"sc-254fd20c-21"})(["width:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;"]);o.ZP.ul.withConfig({componentId:"sc-254fd20c-22"})(["list-style:none;"]),o.ZP.li.withConfig({componentId:"sc-254fd20c-23"})(["display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;justify-content:flex-start;align-items:center;"]),o.ZP.div.withConfig({componentId:"sc-254fd20c-24"})(["max-height:200px;overflow-x:hidden;overflow-y:overlay;"])},84830:function(e,t,n){"use strict";n.d(t,{AB:function(){return A},KM:function(){return h},NZ:function(){return l},j1:function(){return d},kq:function(){return u},n7:function(){return g},vs:function(){return s},w7:function(){return c},z_:function(){return p}});var i=n(25675),o=n.n(i),a=n(87379),r=n(86939);let A=a.ZP.div.withConfig({componentId:"sc-e4a1243b-0"})(["width:100%;min-height:300px;background:",";position:relative;z-index:999;@media (max-width:","){display:flex;flex-direction:column;justify-content:center;}"],r.COLOR.PAPER_25,r.dp.mobileL),s=a.ZP.div.withConfig({componentId:"sc-e4a1243b-1"})(["padding-top:5%;display:flex;flex-direction:column;align-items:center;"]),l=a.ZP.h2.withConfig({componentId:"sc-e4a1243b-2"})(["font-family:",";font-size:20px;line-height:0.9;color:",";font-weight:800;margin:0 0 15px;padding:",";@media (min-width:","){font-size:24px;}text-align:center;"],r.g5.MULISH,r.COLOR.MIDNIGHT_100,e=>e.padding?e.padding:"0px",r.dp.laptop);a.ZP.p.withConfig({componentId:"sc-e4a1243b-3"})(["font-family:",";font-size:14px;color:",";padding:15px;font-style:normal;font-weight:bold;text-align:center;margin:0px;@media (min-width:","){font-size:16px;}"],r.g5.MULISH,r.COLOR.MIDNIGHT_100,r.dp.laptop);let d=a.ZP.p.withConfig({componentId:"sc-e4a1243b-4"})(["font-family:",";font-style:normal;font-weight:normal;font-size:12px;line-height:12px;margin:0 0 15px 0;text-align:center;padding:0px;color:",";"],r.g5.OPENSANS,r.COLOR.MIDNIGHT_100);a.ZP.p.withConfig({componentId:"sc-e4a1243b-5"})(["font-family:",";font-size:12px;color:#fc6c44;padding:0px;font-style:normal;text-align:center;margin:15px 0 15px 0;cursor:pointer;"],r.g5.MULISH),a.ZP.h3.withConfig({componentId:"sc-e4a1243b-6"})(["font-family:",";font-size:16px;color:#fc6c44;padding:0 0 15px 0;font-style:normal;text-align:center;margin:0px;"],r.g5.MULISH);let c=(0,a.ZP)(o()).withConfig({componentId:"sc-e4a1243b-7"})(["width:88px;height:88px;transform:matrix(0.98,-0.21,0.2,0.98,0,0);align-self:",";position:",";float:right;margin:",";top:",";right:",";"],e=>e.alignCenter&&e.mobile?"center":"flex-end",e=>e.position?e.position:"relative",e=>e.margin&&!e.mobile?e.margin:"10px 0px",e=>e.top?e.top:"unset",e=>e.right?e.right:"unset");a.ZP.button.withConfig({componentId:"sc-e4a1243b-8"})(["border:none;background-color:inherit;font-size:12px;cursor:pointer;font-weight:800;display:inline-flex;font-family:",";text-transform:uppercase;color:",";@media (min-width:","){font-size:14px;}&:hover{color:",";}"],r.g5.MULISH,r.COLOR.MIDNIGHT_50,r.dp.laptop,r.COLOR.SLATE_100);let p=a.ZP.div.withConfig({componentId:"sc-e4a1243b-9"})(["display:flex;flex-direction:column;padding:",";"],e=>e.mobile?"0 0 15px 0":"30px 115px 15px 115px"),g=a.ZP.p.withConfig({componentId:"sc-e4a1243b-10"})(["font-family:",";font-style:normal;font-weight:normal;font-size:12px;line-height:12px;margin:0 0 15px 0;text-align:center;color:",";"],r.g5.OPENSANS,r.COLOR.MIDNIGHT_100);a.ZP.a.withConfig({componentId:"sc-e4a1243b-11"})(["font-family:",";font-style:italic;font-weight:normal;font-size:12px;text-align:center;"],r.g5.OPENSANS),a.ZP.div.withConfig({componentId:"sc-e4a1243b-12"})(["display:flex;justify-content:center;align-items:center;flex-direction:row;height:38px;"]),a.ZP.div.withConfig({componentId:"sc-e4a1243b-13"})(["text-align:center;margin:5px 0px;color:red;"]),a.ZP.p.withConfig({componentId:"sc-e4a1243b-14"})(["font-family:",";font-size:12px;color:#fc6c44;padding:0px;font-style:normal;text-align:center;margin:10px 0px;cursor:pointer;"],r.g5.MULISH);let h=a.ZP.button.withConfig({componentId:"sc-e4a1243b-15"})(["margin:",";display:flex;justify-content:center;align-items:center;outline:none;border-style:solid;border-color:",";border-radius:50px;background-color:",";height:40px;color:",";cursor:",";padding:5px 15px;text-align:center;font-size:14px;font-weight:700;font-family:",";transition:0.3s;&:hover{background-color:",";border-color:",";color:",";box-shadow:0px 4px 15px rgba(247,79,32,0.5);}"],e=>e.margin?e.margin:"0 0 15px 0",e=>e?.disabled?"#DEE6EE":`${r.COLOR.ORANGE_75}`,e=>e?.disabled?"#DEE6EE":`${r.COLOR.ORANGE_75}`,r.COLOR.PAPER_00,e=>e?.disabled?"auto":"pointer",r.g5.OPENSANS,r.COLOR.ORANGE_100,r.COLOR.ORANGE_100,r.COLOR.PAPER_00),u=a.ZP.button.withConfig({componentId:"sc-e4a1243b-16"})(["display:flex;justify-content:center;align-items:center;outline:none;border-style:solid;border-width:2px;border-color:",";border-radius:50px;background-color:#fff;height:40px;color:",";cursor:pointer;padding:5px 15px;font-size:15px;font-weight:700;font-family:",";transition:0.3s;&:hover{border-color:",";color:",";font-weight:800;box-shadow:0px 4px 15px rgba(247,79,32,0.5);background-color:",";}"],r.COLOR.ORANGE_100,r.COLOR.ORANGE_100,r.g5.OPENSANS,r.COLOR.ORANGE_75,r.COLOR.PAPER_00,r.COLOR.ORANGE_75);a.ZP.h3.withConfig({componentId:"sc-e4a1243b-17"})(["font-family:",";font-size:16px;line-height:0.9;color:",";font-weight:800;margin:0px;padding:0px;@media (min-width:","){font-size:20px;}text-align:center;"],r.g5.MULISH,r.COLOR.MIDNIGHT_100,r.dp.laptop),a.ZP.div.withConfig({componentId:"sc-e4a1243b-18"})(["display:flex;flex-direction:row;align-items:center;"]),a.ZP.div.withConfig({componentId:"sc-e4a1243b-19"})(["margin:0px 10px 10px 10px;z-index:",";display:flex;flex-direction:column;align-items:center;border:",";border-right:",";border-top:none;border-radius:0px 0px 4px 4px;box-shadow:",";transform:",";@media (max-width:1025px){border:none;}"],e=>e?.isHovered?"9999":"8",e=>e?.plus?`2px solid ${r.COLOR.ORANGE_75}`:`2px solid ${r.COLOR.MIDNIGHT_100}`,e=>e?.plus?`2px solid ${r.COLOR.ORANGE_75}`:`2px solid ${r.COLOR.MIDNIGHT_100}`,e=>e?.isHovered&&!e.isLessThanLaptop?"0 8px 12px 0 rgba(0, 0, 0, 0.2)":"none",e=>e?.isHovered&&!e.isLessThanLaptop?"scale(1.025)":"none"),a.ZP.div.withConfig({componentId:"sc-e4a1243b-20"})(["display:flex;flex-direction:row;justify-content:center;align-self:center;padding-bottom:10px;font-family:",";color:",";"],r.g5.MULISH,r.COLOR.MIDNIGHT_100),a.ZP.div.withConfig({componentId:"sc-e4a1243b-21"})(["display:flex;flex-direction:row;"]),a.ZP.div.withConfig({componentId:"sc-e4a1243b-22"})(["margin:10px 10px 0px 10px;padding-top:5px;
1display:flex;flex-direction:column;align-items:left;background-color:",";color:",";border:",";border-bottom:none;border-right:",";border-radius:4px 4px 0px 0px;width:100%;box-shadow:",";transform:",";"],e=>e?.plus?`${r.COLOR.ORANGE_75}`:"#f4f7fa",e=>e?.plus?"white":`${r.COLOR.MIDNIGHT_100}`,e=>e?.plus?`2px solid ${r.COLOR.ORANGE_75}`:`2px solid${r.COLOR.MIDNIGHT_100}`,e=>e?.plus?`2px solid ${r.COLOR.ORANGE_75}`:`2px solid${r.COLOR.MIDNIGHT_100}`,e=>e?.isHovered&&!e.isLessThanLaptop?"0 8px 12px 0 rgba(0, 0, 0, 0.2)":"none",e=>e?.isHovered&&!e.isLessThanLaptop?"scale(1.025)":"none"),a.ZP.div.withConfig({componentId:"sc-e4a1243b-23"})(["align-items:left;padding-left:5px;font-family:",";font-size:18px;font-weight:bold;"],r.g5.MULISH),a.ZP.div.withConfig({componentId:"sc-e4a1243b-24"})(["align-items:left;padding-left:5px;font-family:",";font-size:16px;padding-bottom:5px;"],r.g5.MULISH),a.ZP.div.withConfig({componentId:"sc-e4a1243b-25"})(["display:flex;flex-direction:row;align-items:center;align-self:flex-start;padding:5px;font-size:14px;color:",";"],e=>e?.enabled?`${r.COLOR.MIDNIGHT_100}`:"#8C97A9"),a.ZP.img.withConfig({componentId:"sc-e4a1243b-26"})(["margin-right:0.5em;margin-left:",";width:",";height:",";"],e=>e?.enabled?"0px":"4px",e=>e?.enabled?"20px":"14px",e=>e?.enabled?"20px":"14px"),a.ZP.div.withConfig({componentId:"sc-e4a1243b-27"})(["font-family:",";margin:0px 10px;border-radius:4px;background:",";@media (max-width:500px){.ui.selection.dropdown{min-width:9em !important;}}.ui.selection.dropdown{border:none;background:transparent;color:",";font-size:18px;font-weight:800;border-color:none;box-shadow:none;padding-left:10px;width:100%;}.ui.selection.dropdown .menu{overflow-y:clip;min-height:100%;}.ui.dropdown .menu .active.item{background:#f3f4f7 !important;}.ui.selection.active.dropdown .menu{border-color:#f3f4f7 !important;}.ui.selection.dropdown:hover{border-color:none !important;box-shadow:none !important;}.ui.selection.visible.dropdown > .text:not(.default){color:",";}#highlight-dropdown.ui.selection.dropdown{color:white;}#highlight-dropdown.ui.selection.visible.dropdown > .text:not(.default){color:white;background:transparent;}.ui.selection.dropdown .menu > .item{border:none;background:transparent;padding:0;}.ui.header.text{color:",";font-size:1em;font-weight:600;}"],r.g5.MULISH,e=>e?.currentPlan?` ${r.COLOR.ORANGE_75}`:"#f4f7fa",r.COLOR.MIDNIGHT_100,r.COLOR.MIDNIGHT_100,r.COLOR.MIDNIGHT_100),a.ZP.p.withConfig({componentId:"sc-e4a1243b-28"})(["padding-left:10px;padding-bottom:10px;font-size:14px;color:",";"],e=>e?.currentPlan?"white":`${r.COLOR.MIDNIGHT_100}`)},19660:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eM}});var i=n(85893),o=n(9008),a=n.n(o),r=n(11163),A=n(67294),s=n(45007),l=n(76743);n(17563);var d=n(83465),c=n.n(d),p=n(27671);n(92815);var g=e=>{let{percent:t}=e;return(0,i.jsx)(p.Z,{size:"small",style:{width:"100%"},active:!0,color:"orange",percent:t.toString()})},h=n(7416),u=n(9198),m=n.n(u);n(85670);var x=n(87379),f=n(86939),w=n(60507),b=n(64156);let _=x.ZP.div.withConfig({componentId:"sc-8d6af414-0"})(["display:flex;flex-direction:column;"]),E=x.ZP.div.withConfig({componentId:"sc-8d6af414-1"})(["position:sticky;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:space-between;justify-content:space-between;align-items:center;padding:15px 30px;"]),C=x.ZP.div.withConfig({componentId:"sc-8d6af414-2"})(["background:url(",") right 9px top 53px no-repeat,linear-gradient(rgb(252,225,216) 0%,rgba(255,255,255,0) 27.23%) rgb(255,255,255);height:100vh;overflow-y:scroll;padding:25px 25px 150px;display:flex;flex-direction:column;align-items:center;@media (min-width:","){padding:25px 150px 150px 150px;}"],w.Z,f.dp.laptop),y=x.ZP.div.withConfig({componentId:"sc-8d6af414-3"})(["display:flex;flex-direction:column;flex-wrap:nowrap;align-content:center;justify-content:center;align-items:center;padding-bottom:40px;cursor:",";"],e=>{let{pointer:t}=e;return t?"pointer":"default"});x.ZP.h1.withConfig({componentId:"sc-8d6af414-4"})(["color:",";font-size:1.5em;font-weight:800;font-family:",";line-height:1.5;text-align:center;margin:",";padding:0;"],f.COLOR.MIDNIGHT_100,f.g5.MULISH,e=>{let{firstStep:t}=e;return t?"15px 0 0":"0"}),x.ZP.h2.withConfig({componentId:"sc-8d6af414-5"})(["color:",";font-size:1.15em;font-weight:600;font-family:",";text-align:center;margin:",";padding:0;"],f.COLOR.SLATE_75,f.g5.OPENSANS,e=>{let{countryChosen:t}=e;return t?"10px 0 0":"0"}),x.ZP.div.withConfig({componentId:"sc-8d6af414-6"})(["padding:15px 0;display:flex;flex-direction:column;align-items:center;"]),x.ZP.div.withConfig({componentId:"sc-8d6af414-7"})([""]);let O=x.ZP.div.withConfig({componentId:"sc-8d6af414-8"})([""]),I=x.ZP.div.withConfig({componentId:"sc-8d6af414-9"})(["display:flex;align-content:space-around;justify-content:space-around;align-items:center;"]);x.ZP.div.withConfig({componentId:"sc-8d6af414-10"})([""]),x.ZP.div.withConfig({componentId:"sc-8d6af414-11"})(["cursor:pointer;height:250px;width:100%;object-fit:cover;background-image:url(",");background-size:cover;background-position:center;padding:15px;"],e=>{let{backgroundImage:t}=e;return t}),x.ZP.div.withConfig({componentId:"sc-8d6af414-12"})(["background-color:",";color:",";width:fit-content;padding:5px 10px;font-weight:700;border-radius:0px;position:absolute;top:25%;text-transform:uppercase;font-size:1em;display:flex;justify-content:center;align-items:center;word-break:break-word;max-width:80%;cursor:pointer;@media (min-width:","){font-size:0.8em;}"],f.COLOR.MIDNIGHT_100,f.COLOR.PAPER_00,f.dp.laptop),x.ZP.img.withConfig({componentId:"sc-8d6af414-13"})(["height:30px;width:30px;padding:0 5px;"]);let j=x.ZP.div.withConfig({componentId:"sc-8d6af414-14"})(["display:",";justify-content:center;margin:",";"],e=>{let{display:t}=e;return t||"flex"},e=>{let{margin:t}=e;return t?"15px":"0"}),S=x.ZP.div.withConfig({componentId:"sc-8d6af414-15"})(["position:relative;background-color:",";box-shadow:0px 4px 4px rgba(0,0,0,0.05);border-radius:20px;width:fit-content;padding:",";"],f.COLOR.PAPER_00,e=>{let{$switchButton:t,$geoCoder:n}=e;return t&&!n?"55px 50px 25px":"15px 50px"}),P=x.ZP.div.withConfig({componentId:"sc-8d6af414-16"})(["position:relative;background-color:",";box-shadow:0px 4px 4px rgba(0,0,0,0.05);border-radius:20px;width:fit-content;padding:15px 50px;@media (max-width:","){padding:15px 20px;}"],f.COLOR.PAPER_00,f.dp.tablet),B=x.ZP.div.withConfig({componentId:"sc-8d6af414-17"})(["color:",";font-weight:500;font-size:1em;text-align:center;"],f.COLOR.MIDNIGHT_100),z=x.ZP.div.withConfig({componentId:"sc-8d6af414-18"})(["color:",";font-weight:700;font-size:1em;"],f.COLOR.MIDNIGHT_100),R=x.ZP.span.withConfig({componentId:"sc-8d6af414-19"})(["color:",";"],f.COLOR.ORANGE_100),L=x.ZP.div.withConfig({componentId:"sc-8d6af414-20"})(["text-align:center;"]),v=x.ZP.div.withConfig({componentId:"sc-8d6af414-21"})(["display:flex;@media (max-width:","){flex-direction:column;}"],f.dp.tablet),D=x.ZP.div.withConfig({componentId:"sc-8d6af414-22"})(["display:flex;flex-direction:row;flex-wrap:nowrap;align-content:space-between;justify-content:space-around;align-items:center;"]),N=x.ZP.span.withConfig({componentId:"sc-8d6af414-23"})(["color:",";font-weight:700;font-size:1em;"],f.COLOR.MIDNIGHT_100),k=x.ZP.div.withConfig({componentId:"sc-8d6af414-24"})([""]),Q=x.ZP.label.withConfig({componentId:"sc-8d6af414-25"})(["position:absolute;top:28.5%;left:calc(50% - 75px);width:145px;z-index:8;"]),T=x.ZP.div.withConfig({componentId:"sc-8d6af414-26"})(["width:90%;margin-left:15%;margin-top:0.5%;position:absolute;display:flex;justify-content:space-between;user-select:none;align-items:center;height:100%;"]),M=x.ZP.p.withConfig({componentId:"sc-8d6af414-27"})(["margin:0px;opacity:1;font-size:12px;color:white;font-weight:700;"]),Z=x.ZP.div.withConfig({componentId:"sc-8d6af414-28"})(["right:",";"],e=>{let{right:t}=e;return t?`${t}`:"50%"});x.ZP.button.withConfig({componentId:"sc-8d6af414-29"})(["color:white;font-family:",";font-size:14px;font-weight:800;display:flex;flex-direction:column;justify-content:center;align-items:center;width:75px;height:40px;background:",";border-radius:25px;border:transparent;z-index:8;"],f.g5.OPENSANS,e=>e.active?"#F69175":"#FAC7B9");let G=x.ZP.label.withConfig({componentId:"sc-8d6af414-30"})(["font-family:",";font-size:12px;line-height:20px;color:",";margin-bottom:5px;left:0;"],f.g5.OPENSANS,f.COLOR.MIDNIGHT_75),H=(0,x.ZP)(e=>{let{error:t,...n}=e;return(0,i.jsx)(b.S,{...n})}).withConfig({componentId:"sc-8d6af414-31"})(["border-color:",";"],e=>{let{error:t}=e;return t?"#FC6B43":"#DEE6EE"}),U=x.ZP.div.withConfig({componentId:"sc-8d6af414-32"})(["padding:10px;"]),F=x.ZP.div.withConfig({componentId:"sc-8d6af414-33"})(["display:flex;flex-direction:column;flex-wrap:nowrap;align-content:center;justify-content:center;align-items:center;width:100%;"]);x.ZP.p.withConfig({componentId:"sc-8d6af414-34"})(["font-family:",";font-weight:normal;font-size:12px;line-height:16px;text-align:center;color:",";display:block;flex-direction:column;flex-wrap:nowrap;align-content:center;justify-content:center;align-items:center;"],f.g5.OPENSANS,f.COLOR.MIDNIGHT_75);let $=x.ZP.p.withConfig({componentId:"sc-8d6af414-35"})(["font-family:",";font-weight:normal;font-size:1.5em;line-height:1.5em;text-align:center;color:",";display:block;flex-direction:column;flex-wrap:nowrap;align-content:center;justify-content:center;align-items:center;@media (min-width:","){font-size:2em;line-height:2em;}"],f.g5.OPENSANS,f.COLOR.MIDNIGHT_75,f.dp.mobileL),W=x.ZP.p.withConfig({componentId:"sc-8d6af414-36"})(["font-family:",";font-weight:normal;font-size:16px;line-height:18px;text-align:center;color:",";display:block;flex-direction:column;flex-wrap:nowrap;align-content:center;justify-content:center;align-items:center;"],f.g5.OPENSANS,f.COLOR.MIDNIGHT_75);var V=e=>{let{optionOne:t,optionTwo:n,setToggleState:o,toggleState:a}=e;return(0,A.useEffect)(()=>{document.getElementById("switch-view-type-label").style.top="3%"},[]),(0,i.jsxs)(k,{children:[(0,i.jsx)("input",{type:"checkbox",id:"switch-view-type-input",onChange:()=>{},checked:a===n}),(0,i.jsxs)(Q,{id:"switch-view-type-label",htmlFor:"switch-view-type-input",children:[(0,i.jsx)(Z,{className:"toggle",right:a===n?"56%":"48%"}),(0,i.jsxs)(T,{children:[(0,i.jsx)(M,{onClick:()=>o(t),children:t}),(0,i.jsx)(M,{onClick:()=>o(n),children:n})]})]})]})},Y=n(75479),K=n(95778);n(81039),n(84012);var X=n(36512);let J=["January","February","March","April","May","June","July","August","September","October","November","December"];var q=e=>{let{router:t,setOnboardingStep:n,optionOne:o="Pick a date",optionTwo:a="Pick a month",onboardingData:r,setOnboardingData:s}=e,[d,c]=(0,A.useState)(!1),[p,g]=(0,A.useState)(r?.date_option===o&&r?.start_date?r.start_date:null),[h,u]=(0,A.useState)(r?.date_option===o&&r?.end_date?r.end_date:null),[x,f]=(0,A.useState)(!1),[w,b]=(0,A.useState)(r?.date_option||o),[_,E]=(0,A.useState)(r?.date_option===a&&r?.start_date?r?.start_date:null),[C,O]=(0,A.useState)(null),[I,k]=(0,A.useState)(null),[Q,T]=(0,A.useState)(null),[M,Z]=(0,A.useState)(!r?.destination_search),G=document.getElementById("start_date_picker"),H=document.getElementById("end_date_picker");(0,A.useEffect)(()=>{(G&&("Select start date"!==G.getAttribute("placeholder")||G.getAttribute("value"))&&H&&("Select end date"!==H.getAttribute("placeholder")||H.getAttribute("value"))||_)&&c(!d)},[C,I,p,h,_]),(0,A.useEffect)(()=>{Q&&x&&f(!1)},[Q]),(0,A.useEffect)(()=>{r?.destination_search&&T(r?.destination_search)},[r]);let F=()=>{g(null),k("I don't know")},$=()=>{u(null),O("I don't know")},W=e=>{g(null),u(null),E(null),s({date_option:e,start_date:null,end_date:null}),b(e)};return(0,i.jsx)(l.Z,{in:!0,timeout:400,classNames:"fade",unmountOnExit:!0,appear:!0,children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(y,{children:[(0,i.jsxs)(K.Dx,{$onboardingTitle:1,children:[(0,i.jsx)(R,{children:"When"})," are you going?"]}),(0,i.jsx)(j,{children:(0,i.jsx)(S,{onClick:()=>{c(!d)},children:(0,i.jsxs)(B,{children:[(0,i.jsx)(z,{children:"When"}),(0,i.jsx)(K.xv,{pointer:1,children:(p||h)&&"Pick a date"===w?`${p?`Start date: ${p&&null!==p?p.toLocaleDateString("en-US"):I||""}`:""} 2 3 ${p&&h?"| ":" "} 4 ${h?`End date: ${h&&"I don't know"!==h?h.toLocaleDateString("en-US"):C||""}`:""}
4`:_&&"Pick a month"===w?_.toLocaleString("default",{month:"long",year:"numeric"}):r?.start_date?r?.start_date.toLocaleDateString("en-US"):"Anytime"})]})})}),(()=>{if(d)return(0,i.jsx)(j,{margin:1,children:(0,i.jsxs)(S,{$switchButton:1,children:[(0,i.jsx)(V,{optionOne:o,optionTwo:a,setToggleState:W,toggleState:w}),"Pick a date"===w&&(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(v,{id:"datePicker",children:[(0,i.jsxs)(L,{children:[(0,i.jsx)(N,{children:"Start Date"}),(0,i.jsx)(m(),{id:"start_date_picker",selected:p,onChange:e=>{g(e)},dateFormat:"MM/dd/yyyy",placeholderText:I||"Select start date",minDate:new Date,isClearable:!0,children:(0,i.jsxs)(U,{children:[(0,i.jsx)("input",{type:"checkbox",id:"start_date",name:"start_date",value:"start_date",onClick:F}),(0,i.jsx)("label",{for:"start_date",children:"I don't know yet"})]})})]}),(0,i.jsxs)(L,{children:[(0,i.jsx)(N,{children:"End Date"}),(0,i.jsx)(m(),{id:"end_date_picker",selected:h,onChange:e=>u(e),dateFormat:"MM/dd/yyyy",placeholderText:C||"Select end date",isClearable:!0,children:(0,i.jsxs)(U,{children:[(0,i.jsx)("input",{type:"checkbox",id:"end_date",name:"end_date",value:"end_date",onClick:$}),(0,i.jsx)("label",{for:"end_date",children:"I don't know yet"})]})})]})]})}),"Pick a month"===w&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(D,{children:(0,i.jsx)(N,{children:"Month"})}),(0,i.jsxs)(v,{id:"datePicker-month",children:[" ",(0,i.jsx)(m(),{selected:_,onChange:e=>E(e),dateFormat:"MM/yyyy",showMonthYearPicker:!0,showFullMonthYearPicker:!0,placeholderText:"Select month",isClearable:!0})]})]})]})})})()]}),(0,i.jsxs)(y,{children:[(0,i.jsxs)(K.Dx,{$onboardingTitle:1,children:[(0,i.jsx)(R,{children:"Where"})," are you going?"]}),(0,i.jsx)(j,{children:(0,i.jsx)(S,{onClick:()=>{f(!x)},children:(0,i.jsxs)(B,{children:[(0,i.jsx)(z,{children:"Location"}),(0,i.jsx)(K.xv,{pointer:1,children:Q?.name&&!Q?.name?.includes("ersonalise")?Q.name:Q?.custom_onboarding_destination_name&&Q?.custom_onboarding_destination_name!=="undefined"&&!Q?.custom_onboarding_destination_name?.includes("ersonalise")?Q.custom_onboarding_destination_name:"Destination"})]})})}),(0,i.jsx)(j,{display:x?"flex":"none",margin:1,children:(0,i.jsxs)(P,{$switchButton:1,$geoCoder:1,children:[(0,i.jsx)(Y.Z,{onboardingInput:!0,router:t,showFilterButton:0,searchEntities:["CITY","PROVINCE","MAPBOX_CITY","COUNTRY"],onSearchSelect:e=>{e?.name?(T(e),Z(!1)):T(null)},includeCountryOnMapboxSearch:!1,searchInCountry:!1,showSearchTabs:!1,placeholder:"Search for your destination"}),(0,i.jsxs)(U,{style:{justifyContent:"left",alignItems:"center",display:"flex"},children:[(0,i.jsx)("input",{type:"checkbox",id:"destination",name:"destination",value:"destination",checked:M,onChange:()=>{M?Z(!1):(T(null),s({destination_search:null}),Z(!0))}}),(0,i.jsx)("label",{htmlFor:"destination",style:{paddingLeft:"3px"},children:"I don't know yet"})]})]})})]}),(0,i.jsx)(K.KM,{$lessHeight:1,$fullMargin:1,onClick:()=>{n(2),s({start_date:p||_||null,end_date:h||null,destination_search:Q||(r?.destination_search?r?.destination_search:""),date_option:w}),X.cp.emit({GA:!0},"onboarding-select_start_date",{startDate:p?p.toLocaleDateString("en-US"):_?J[_.getMonth()]:"I don't know"}),X.cp.emit({GA:!0},"onboarding-select_end_date",{endDate:h?h.toLocaleDateString("en-US"):"I don't know"}),X.cp.emit({GA:!0},"onboarding-select_destination",{destination:Q||(r?.destination_search?r?.destination_search:"I don't know")}),X.cp.emit({GA:!0},"GA4_onboarding_submit_time_destination",{start_date:p?p.toLocaleDateString("en-US"):_?J[_.getMonth()]:"I don't know",end_date:h?h.toLocaleDateString("en-US"):"I don't know",destination:Q?Q?.slug:r?.destination_search?r?.destination_search?.slug:"I don't know"})},children:"NEXT"})]})})},ee=n(1852),et=n(48032),en=n(84830),ei=n(75233),eo=e=>{let{router:t,setOnboardingStep:n,onClose:o,user:a,onboardingData:r,setTrigger:s}=e,l=new URLSearchParams(window.location.search),d=(0,ee.useMediaQuery)({query:`(max-width: ${f.dp.tablet})`});(0,A.useEffect)(()=>{X.cp.emit({GA:!0},"GA4_signup_cta_appear")},[]);let c=e=>
4{n(6),l.set("lastViewed","/onboarding"),t.push({pathname:e?"/login":"/register",query:l.toString()})},p=()=>{X.cp.emit({GA:!0},"GA4_onboarding_results_saved",{start_date:r?.start_date||"I don't know",end_date:r?.end_date||"I don't know",destination:r?.destination_search?.slug||"I don't know",companions:r?.companions_type,time_preferences:r?.trip_time_preferences.map(e=>e.slug).join(","),labels:r?.labels?.map(e=>e?.slug).join(",")})};return(0,i.jsx)(et.Z,{position:{top:"50%",left:"50%",margin:"0 auto"},modalInCenter:!0,onClose:o,includeDimmedBackground:!0,withSubmit:!1,width:d?"300px":"40%",padding:"10px 30px 20px",dimmedBackgroundColor:"rgba(0, 0, 0, 0.5)",backgroundColor:"#F3F4F7",closeOnOutsideClick:!1,showCloseButton:!0,children:(0,i.jsx)(en.AB,{children:(0,i.jsxs)(en.vs,{children:[(0,i.jsx)(en.NZ,{children:"We are preparing your personal recommendations!"}),(0,i.jsxs)(K.ZG,{children:[(0,i.jsx)(K.dy,{role:"img",children:"â³"}),(0,i.jsx)(K.BZ,{children:"To see the results..."}),a?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(K.KM,{$fullMargin:1,onClick:()=>{X.cp.emit({GA:!0},"GA4_signup_cta_click",{cta_text:"Sign up for free"}),s("onboarding"),c(!1),p()},children:"SIGN UP FOR FREE"}),(0,i.jsx)(en.j1,{onClick:()=>{},children:(0,i.jsx)(K.xv,{children:"OR"})}),(0,i.jsx)(K.kq,{onClick:()=>{c(!0),p(),X.cp.emit({GA:!0},"GA4_signup_cta_click",{cta_text:"login to continue"}),s("onboarding")},children:"LOGIN TO CONTINUE"})]})]})]})})})},ea=n(70148),er=n(16592),eA=n(92739),es=n(72873),el=n(97872),ed=n(83892),ec=n(62725),ep=n(45579);n(1216);var eg=e=>{let{isLessThanLaptop:t,items:n,title:o,subtitle:a,id:r,size:s,onboarding:l,type:d}=e;if(!n?.length)return null;let[c,p]=(0,A.useState)(!1);return(0,A.useEffect)(()=>{t&&p(t)},[t]),(0,i.jsxs)(ep.Cm,{titles:o||a?1:0,children:[o&&(0,i.jsx)(K.Dx,{children:o}),a&&(0,i.jsx)(K.DK,{children:a}),(0,i.jsx)(eA.Z,{isLessThanLaptop:t,id:`${r}`,swiperSlides:n?n.map((e,n)=>(0,i.jsx)(es.o,{tag:"li",children:(0,i.jsxs)(ec.fb,{onClick:()=>l&&X.cp.emit({GA:!0},"GA4_onboarding_result_click",{type:d,link_url:e?.url||"/"}),as:er.Z,to:e?.url||"/",rel:e?.is_external?"nofollow":"dofollow",...e?.is_external&&{target:"_blank"},children:[(0,i.jsx)(ec.rr,{src:(0,el.Jn)(e.image||e.thumbnail,t)||ed.Z,alt:e?.thumbnail?.alternativeText||"carousel image",smallerthanlaptop:t,size:s||"small"}),(0,i.jsx)(ec.xv,{smallerthanlaptop:t,children:e.title})]})},n)):null,spaceBetween:10,navigation:!(t||!c&&n?.length<5),centeredSlides:!1,slidesPerView:"auto"})]})},eh=n(84691),eu=n(82403),em=n(16143),ex=(0,s.$j)(e=>({}),e=>({setShowSaveOverlay:t=>e((0,eu.Oz)(t)),setShowFilterOverlay:t=>e((0,eu.E5)(t))}))(e=>{let{onboardingData:t,isLessThanLaptop:n,router:o,sendFeedback:a,setOnboardingStep:r,user:s,getUserTrips:d,enabledCountries:p,setShowSaveOverlay:g,setOpenModal:h,setOnboardingData:u,setShowFilterOverlay:m}=e,[x,f]=(0,A.useState)(null),[w,b]=(0,A.useState)(!1),[_,E]=(0,A.useState)(!1),[C,y]=(0,A.useState)(!1),[O,I]=(0,A.useState)([]),[j,S]=(0,A.useState)([]),[P,B]=(0,A.useState)([]),[z,L]=(0,A.useState)([]),[v,D]=(0,A.useState)(null);t?.labels?.map(e=>e.slug).toString();let N=e=>{let{onboardingData:t}=e,n=!1;if(t?.labels?.length)for(let e of t.labels)e?.slug==="luxury"&&(n=!0);window.sendinblue&&window.sendinblue.identify(s?.email,{ONBOARDING_TRIP_TITLE:t?.trip_name,ONBOARDING_TRIP_START_DATE:t?.start_date||null,ONBOARDING_TRIP_END_DATE:t?.end_date||null,ONBOARDING_TRIP_LABELS:t?.labels?t.labels.map(e=>e.slug).toString():null,ONBOARDING_TRIP_IS_LUXURY:n?"YES":"NO",ONBOARDING_TRIP_COMPANIONS_TYPE:t?.companions_type||null,ONBOARDING_TRIP_TIME_PREFERENCES:t?.trip_time_preferences?t.trip_time_preferences.map(e=>e.slug).toString():null,ONBOARDING_TRIP_DESTINATION:t?.destination_search?.name||null})},k=async e=>{let{cities:t,provinces:n,countries:i,onboardingData:o}=e,a=[],r=[],A=[],s=[],l={city:t&&t[0]?o?.destination_search?.slug:null,province:n&&n[0]?o?.destination_search?.slug:null,country:i&&i[0]?o?.destination_search?.slug:null,isItinerary:!1,pageNumber:0,pageSize:150},d=null;if(!l?.city&&!l?.province&&!l?.country&&o?.destination_search?.mapboxAPI){let e=o?.destination_search?.context;e?.length&&(d=e[e.length-1].short_code)&&(D(e[e.length-1]),l.countryShortCode=d.toUpperCase())}try{let e=null,c=null;if(((t?.length||n?.length||i?.length)&&o?.destination_search?.slug||d)&&(e=await X.bl.getRequest
4("/api/frontend/articles/paginated",l,!1),c=await X.bl.getRequest("api/frontend/itineraries/paginated",{city:t[0]?o?.destination_search?.slug:null,province:n[0]?o?.destination_search?.slug:null,country:i[0]?o?.destination_search?.slug:null,countryShortCode:d?d.toUpperCase():null,pageSize:150,pageNumber:0},!1)),e?.list?.length)await I(e.list);else{let e=await X.bl.getRequest("/api/frontend/articles/paginated",{isItinerary:!1,pageNumber:0,pageSize:150},!1);if(e?.list?.length){for(let t of e.list)a.find(e=>e.id===t.id)||A.push(t);B(A)}}if(c?.list?.length)await S(c.list);else{let e=await X.bl.getRequest("api/frontend/itineraries/paginated",{pageSize:150,pageNumber:0},!1);if(e?.list?.length){for(let t of e.list)r.find(e=>e.id===t.id&&e?.is_itinerary===t?.is_itinerary)||s.push(t);L(s)}}}catch(e){(0,el.Mp)(ea.Am.TYPE.ERROR,"Something went wrong!")}y(!0)},Q=async e=>{let{cities:t,provinces:n,countries:i,onboardingData:a,trip:r}=e,A="",s=c()(a?.labels);if(s=s.filter(function(e){return"luxury"!=e.slug}),s=s?.map(e=>e.slug).toString(),a?.destination_search?.mapboxAPI){let e=null;if(a?.destination_search?.context?.length)for(let t of a.destination_search.context)for(let n of p)n?.slug&&n?.short_code?.toLowerCase()===t?.short_code?.toLowerCase()&&(e=n.slug);if(e){let t=null;s&&(m(!0),t=new URLSearchParams({labels:s})),o.push({pathname:`/explore/activities/${e}`,query:t?t.toString():null})}}else try{if(a?.destination_search?.type==="CITY"&&t?.length){let e=await X.bl.getRequest(`/api/frontend/cities/slug/${a?.destination_search?.slug}`,{},!1),t=p.find(t=>t.slug===e?.province?.country?.slug);if(A=t?`/explore/activities/${t?.slug}?city=${e?.slug}`:null){let n;g(!0),s?(m(!0),n=new URLSearchParams({city:e?.slug,labels:s})):n=new URLSearchParams({city:e?.slug}),o.push({pathname:`/explore/activities/${t?.slug}`,query:n.toString()})}}if(a?.destination_search?.type==="PROVINCE"&&n?.length){let e=await X.bl.getRequest(`/api/frontend/provinces/slug/${a?.destination_search?.slug}`,{},!1),t=p.find(t=>t.slug===e?.country?.slug);if(A=t?`/explore/activities/${t?.slug}?province=${e?.slug}`:null){let n;g(!0),s?(m(!0),n=new URLSearchParams({province:e?.slug,labels:s})):n=new URLSearchParams({province:e?.slug}),o.push({pathname:`/explore/activities/${t?.slug}`,query:n.toString()})}}if(a?.destination_search?.type==="COUNTRY"&&i?.length){let e=p.find(e=>e.slug===a?.destination_search?.slug);if(A=e?`/explore/activities/${e?.slug}`:null){let t;g(!0),s?(m(!0),t=new URLSearchParams({labels:s})):t=new URLSearchParams({}),o.push({pathname:`/explore/activities/${e?.slug}`,query:t.toString()})}}}catch(e){A=null}return E(!0),A},T=async e=>{let{cities:t,provinces:n,countries:i,onboardingData:o,trip:a}=e;if(N({onboardingData:o}),o?.destination_search){let e=await Q({cities:t,provinces:n,countries:i,onboardingData:o,trip:a});f(e),e||(E(!0),await k({cities:t,provinces:n,countries:i,onboardingData:o}))}else{E(!0),await k({});return}},M=e=>{let{successMessage:n}=e;u({can_create_trip:!1});let i=[],o=!1,a=[],A=[],s=[],l=[];if(t?.labels?.length)for(let e of t.labels)e?.id&&e?.slug!=="luxury"&&i.push(e.id),e?.slug==="luxury"&&(o=!0);if(t?.trip_time_preferences?.length)for(let e of t.trip_time_preferences)e?.slug&&a.push(e.slug);t?.destination_search&&(t?.destination_search?.type!=="CITY"||t?.destination_search?.mapboxAPI||(A=[t.destination_search.id]),t?.destination_search?.type!=="PROVINCE"||t?.destination_search?.mapboxAPI||(l=[t.destination_search.id]),t?.destination_search?.type!=="COUNTRY"||t?.destination_search?.mapboxAPI||(s=[t.destination_search.id])),X.bl.postRequest("/api/frontend/trips",{title:t?.trip_name,type:"custom",start_date:t?.start_date,end_date:t?.end_date,labels:i,cities:A,provinces:l,countries:s,onboarding_info:{time_preferences:a,is_luxury:o,companions_type:t?.companions_type,destination:t?.destination_search?.slug?t?.destination_search?.slug:t?.destination_search?.name?t?.destination_search?.name:null}},{},!0).then(e=>{b(!0),d(),(0,el.Mp)(ea.Am.TYPE.SUCCESS,n),T({cities:A,provinces:l,countries:s,onboardingData:t,trip:e})},e=>{let t=e?.data?.message||"Something went wrong";(0,el.Mp)(ea.Am.TYPE.ERROR,t),u({trip_name:null}),h(!1),r(5)})};return((0,A.useEffect)(()=>{t.can_create_trip&&s||r(5),s&&t.can_create_trip&&M({successMessage:"Trip Created"})},[s]),w&&_)?(0,i.jsx)(l.Z,{in:!0,timeout:400,classNames:"fade",unmountOnExit:!0,appear:!0,children:(0,i.jsxs)(F,{children:[(0,i.jsxs)(K.Dx,{$onboardingTitle:1,children:["Our ",(0,i.jsx)(R,{children:"Recommendations"})," For You"]}),C?t?.destination_search?x?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)($,{children:[`Explore your interactive map for ${t?.destination_search?.name}.`,(0,i.jsx)("br",{})]}),(0,i.jsx)(K.KM,{as:eh.Z,href:x,$lessHeight:1,$fullMargin:1,children:"Click here"})]}):t?.destination_search?.name&&C&&(j?.length||O?.length)?(0,i.jsxs)(i.Fragment,{children:[O?.length?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(W,{children:[(0,i.jsx)("br",{}),`Check out these stories in ${t?.destination_search?.mapboxAPI?`${v.text_en}`:`${t?.destination_search?.name}`}:`]}),(0,i.jsx)(eg,{id:"stories-destination-carousel",items:O,size:"medium",background:!1,isLessThanLaptop:n,router:o,onboarding:!0,type:"itinerary"})]}):(0,i.jsxs)(W,{children:[(0,i.jsx)("br",{}),"We're sorry, we don't have any stories for"," ",t?.destination_search?.name,t?.destination_search?.mapboxAPI?` or ${v.text_en}`:""," ","yet. Your interest is registered, and will help us to prioritize the next destinations!"]}),j?.length?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(W,{children:[(0,i.jsx)("br",{}),O?.length?`Or our itineraries in ${t?.destination_search?.mapboxAPI?`${v.text_en}`:`${t?.destination_search?.name}`}:`:`Check out these itineraries in ${t?.destination_search?.mapboxAPI?`${v.text_en}`:`${t?.destination_search?.name}`}:`]}),(0,i.jsx)(eg,{id:"itineraries-destination-carousel",items:j,size:"medium",background:!1,isLessThanLaptop:n,router:o,onboarding:!0,type:"itinerary"})]}):(0,i.jsxs)(W,{children:[(0,i.jsx)("br",{}),"We're sorry, we don't have any itineraries for"," ",t?.destination_search?.name,t?.destination_search?.mapboxAPI?` or ${v.text_en}`:""," ","yet. Your interest is registered, and will help us to prioritize the next destinations!"]}),P?.length?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(W,{children:[(0,i.jsx)("br",{}),"Or check out these stories in other places:"]}),(0,i.jsx)(eg,{id:"all-stories-carousel",items:P,size:"medium",background:!1,isLessThanLaptop:n,router:o,onboarding:!0,type:"story"})]}):null,z?.length?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(W,{children:[(0,i.jsx)("br",{}),P?.length?"Or these itineraries in other places:":"Or checkout these itineraries in other places:"]}),(0,i.jsx)(eg,{id:"all-itineraries-carousel",items:z,size:"medium",background:!1,isLessThanLaptop:n,router:o,onboarding:!0,type:"itinerary"})]}):null]}):t?.destination_search?.name&&C&&!O?.length&&!j?.length?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)($,{children:`We're sorry, we don't have any stories or itineraries for 5 6 ${t.destination_search?.name.includes("ersonalise")?"your search":`${t.destination_search?.name} `} 7 yet. Your interest is registered, and will help us to prioritize the 8 next destinations!`}),(0,i.jsx)("br",{}),(0,i.jsx)(W,{children:"In the meantime, check out these stories:"}),(0,i.jsx)(eg,{id:"all-articles-carousel",items:P,size:"medium",background:!1,isLessThanLaptop:n,router:o,onboarding:!0,type:"story"}),(0,i.jsx)(W,{children:"Or these itineraries:"}),(0,i.jsx)(eg,{id:"all-itinieraries-carousel",items:z,size:"medium",background:!1,isLessThanLaptop:n,router:o,onboarding:!0,type:"itinerary"})]}):(0,i.jsx)(i.Fragment,{children:(0,i.jsx)($,{children:"Something went wrong, please try again later!"})}):C?(0,i.jsxs)(i.Fragment,{children:[P?.length?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(W,{children:[(0,i.jsx)("br",{}),"Check out these stories:"]}),(0,i.jsx)(eg,{id:"all-stories-carousel",items:P,size:"medium",background:!1,isLessThanLaptop:n,router:o,onboarding:!0,type:"story"})]}):null,z?.length?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(W,{children:[(0,i.jsx)("br",{}),"Or checkout these itineraries:"]}),(0,i.jsx)(eg,{id:"all-itineraries-carousel",items:z,size:"medium",background:!1,isLessThanLaptop:n,router:o,onboarding:!0,type:"itinerary"})]}):null]}):(0,i.jsx)(em.$j,{}):(0,i.jsx)(em.$j,{}),(0,i.jsx)(K.Av,{$lessHeight:1,$fullMargin:1,onClick:()=>{h(!1),r(1),X.cp.emit({GA:!0},"GA4_onboarding_result_click",{type:"start over",link_url:"/onboarding"})},children:"START OVER"})]})}):(0,i.jsx)(em.$j,{})}),ef=n(52256);let ew=[{image:{src:"/_next/static/media/solo.c5f7fe7b.png",height:150,width:150,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAaVBMVEWamJSXg36NYlFEKyNxc3CZn56ffnc9QES4l4+QdG6Bb2p+ZV95eXdgPjGcjYZrSTpMT1B5fX14VkiEi42Jj47NzsxJMy1kVVSulI5QMSfApJ15RSdpa2jNwLuim5PPxLeHg36CWUi7v71AUJLfAAAACXBIWXMAAAsTAAALEwEAmpwYAAAARUlEQVR4nAXBBQKAIAAEsKOkG+xA//9INyQnvt6fgXRyrm9w1Cbsi1aREQ56iQwXoi9qB1biYyFKQWvDNkMm2EWyWUr6A4fXA1fGegv3AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},name:"Solo",slug:"solo"},{image:{src:"/_next/static/media/couple.585b1142.png",height:150,width:150,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAVFBMVEWxv8+suMhtamWwsLufsL67ucKos8Gzuceht8myrrV3eHqepLLFwsudl5qzpKOmnKCsnp2/p56rp621wdGHi5Z2YFRMPymScmKKg4nBm4aih32pkYp+0c2SAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAQkl
8EQVR4nAXBBwLAIAgEsFNBwK3d7f//2QSqqqA+QEQ836/CzLg980YwbtcoHVLqcXoOkJW8T3kHokh0MQOAc8D2A2BgAl/8PHfSAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},name:"Couple",slug:"couple"},{image:{src:"/_next/static/media/family.e80363a5.png",height:150,width:150,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAPFBMVEXG0uFydHIJCgqPlZrAzd22ws8AAAEdHiBHSUwyNDWKjpGBhYhCQkC6ydegs8NnbHCXo65IWmWqrK9PW2IzNl9WAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAPklEQVR4nB3BiRHAIAgEwAN5BTVP/71mJrsYEPx8iy6BwEpD16XIGXZGDrzb7fZONDmHtWMSR3Em6gmazvQBOXABvyukA4AAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},name:"Family",slug:"family"},{image:{src:"/_next/static/media/group.8ff8ea05.png",height:150,width:150,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAALVBMVEUzOBY/Qho5PhUuMBlGTRQeHhVFSx1SWiE4NiNSVhIrLRVgYxZmZx9eTyaAgyf4RohmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAANklEQVR4nAXBhwHAMAzDMMo7q/+fW4DBM2ece5W5E772DRIR6wTAWcvAnTAhA0pWMhmq97qrfirDAR7OJVtWAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},name:"Group",slug:"group"},{image:{src:"/_next/static/media/business.a757e83e.png",height:150,width:150,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAdVBMVEVMSzzx9/nIzMXd5OMqLSddWEx9bVpJUTxOU0UhIh23enu9GC2YAA5NGiWrrqs7RC2XkoDFwbWIYE2QUE3i0dHbTVtfUU+ZZGO3PUfpu79rbGauBh2OZ2u4oqabJziFKzpwIS13VFpoVlvPvsR8V1w2MDXIoKitRptrAAAACXBIWXMAAAsTAAALEwEAmpwYAAAARklEQVR4nBXIxRHAMBAEsDWeOcyM/ZeYiZ4CAWSMtCAYpSAtMpAu/9G5q9puVCh408/+ShC1X4/wcrBh2s7gBNiyxyfe6QNfGAN/3kjYbwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8},name:"Business",slug:"business"}];var eb=e=>{let{clickedCard:t,onClickCard:n,isLessThanLaptop:o,onboardingData:a}=e;return(0,i.jsx)(l.Z,{in:!0,timeout:400,classNames:"fade",unmountOnExit:!0,appear:!0,children:(0,i.jsxs)(y,{children:[(0,i.jsxs)(K.Dx,{$onboardingTitle:1,children:[(0,i.jsx)(R,{children:"Who"})," are you traveling with?"]}),(0,i.jsx)(ef.Z.Group,{centered:!0,itemsPerRow:o?3:5,children:ew.map((e,o)=>(0,i.jsx)(ef.Z,{id:o,image:e.image,header:e.name,onClick:()=>n(o,e),color:t===`choice-${o}`||a?.companions_type===e.slug?"orange":"grey"},o))})]})})};let e_=[{image:{src:"/_next/static/media/local.7a8e5354.jpg",height:525,width:1e3,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAEAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAT/xAAUAQEAAAAAAAAAAAAAAAAAAAAE/9oADAMBAAIQAxAAAAGgEV//xAAVEAEBAAAAAAAAAAAAAAAAAAACMv/aAAgBAQABBQJ1/8QAFhEAAwAAAAAAAAAAAAAAAAAAAAIx/9oACAEDAQE/AUh//8QAFhEAAwAAAAAAAAAAAAAAAAAAAAMy/9oACAECAQE/AW0f/8QAFRABAQAAAAAAAAAAAAAAAAAAAAH/2gAIAQEABj8Cj//EABcQAAMBAAAAAAAAAAAAAAAAAAABESH/2gAIAQEAAT8hZqGQ/9oADAMBAAIAAwAAABDz/8QAFREBAQAAAAAAAAAAAAAAAAAAADH/2gAIAQMBAT8Qm//EABcRAQADAAAAAAAAAAAAAAAAAAEAEVH/2gAIAQIBAT8QAu9Z/8QAFxABAQEBAAAAAAAAAAAAAAAAATEAEf/aAAgBAQABPxBkXSAS0N//2Q==",blurWidth:8,blurHeight:4},name:"Authentic & Local",slug:"authentic-local"},{image:{src:"/_next/static/media/fast.aca7502a.jpg",height:525,width:1e3,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAEAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAT/xAAUAQEAAAAAAAAAAAAAAAAAAAAE/9oADAMBAAIQAxAAAAGcHX//xAAWEAEBAQAAAAAAAAAAAAAAAAACAAH/2gAIAQEAAQUC1o3/xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAEDAQE/AX//xAAUEQEAAAAAAAAAAAAAAAAAAAAA/9oACAECAQE/AX//xAAUEAEAAAAAAAAAAAAAAAAAAAAA/9oACAEBAAY/An//xAAWEAEBAQAAAAAAAAAAAAAAAAABACH/2gAIAQEAAT8hcxv/2gAMAwEAAgADAAAAEP8A/8QAFhEAAwAAAAAAAAAAAAAAAAAAAAER/9oACAEDAQE/EIj/xAAVEQEBAAAAAAAAAAAAAAAAAAARAP/aAAgBAgEBPxBb/8QAGBAAAgMAAAAAAAAAAAAAAAAAABEhUbH/2gAIAQEAAT8QWY2to//Z",blurWidth:8,blurHeight:4},name:"Fast-paced",slug:"fast-paced"},{image:{src:"/_next/static/media/highlights.17427525.jpg",height:525,width:1e3,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAEAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAL/xAAVAQEBAAAAAAAAAAAAAAAAAAABA//aAAwDAQACEAMQAAABsTf/xAAVEAEBAAAAAAAAAAAAAAAAAAARIv/aAAgBAQABBQJn/8QAFREBAQAAAAAAAAAAAAAAAAAAAQD/2gAIAQMBAT8BAv/EABYRAQEBAAAAAAAAAAAAAAAAAAEAAv/aAAgBAgEBPwF03//EABUQAQEAAAAAAAAAAAAAAAAAAAAB/9oACAEBAAY/Ao//xAAXEAEBAQEAAAAAAAAAAAAAAAABEQAx/9oACAEBAAE/IRqsq9m//9oADAMBAAIAAwAAABAL/8QAFhEAAwAAAAAAAAAAAAAAAAAAAAFB/9oACAEDAQE/EGof/8QAFhEBAQEAAAAAAAAAAAAAAAAAAQAx/9oACAECAQE/EA4t/8QAFxABAQEBAAAAAAAAAAAAAAAAEQEAMf/aAAgBAQABPxBPlSD2b//Z",blurWidth:8,blurHeight:4},name:"Highlights",slug:"highlights"},{image:{src:"/_next/static/media/otbp.836d154b.jpg",height:525,width:1e3,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAEAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAX/xAAVAQEBAAAAAAAAAAAAAAAAAAACA//aAAwDAQACEAMQAAABniD/AP/EABYQAQEBAAAAAAAAAAAAAAAAAAEAAv/aAAgBAQABBQJwX//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABURAQEAAAAAAAAAAAAAAAAAAAAB/9oACAECAQE/AY//xAAUEAEAAAAAAAAAAAAAAAAAAAAA/9oACAEBAAY/An//xAAWEAEBAQAAAAAAAAAAAAAAAAARAAH/2gAIAQEAAT8hzhf/2gAMAwEAAgADAAAAEAv/xAAVEQEBAAAAAAAAAAAAAAAAAAAAAf/aAAgBAwEBPxCP/8QAFREBAQAAAAAAAAAAAAAAAAAAADH/2gAIAQIBAT8Qh//EABgQAQADAQAAAAAAAAAAAAAAAAEAESFR/9oACAEBAAE/EFwHl5bs/9k=",blurWidth:8,blurHeight:4},name:"Off-the-beaten-path",slug:"off-the-beaten-path"},{image:{src:"/_next/static/media/slow.6c36e25e.jpg",height:525,width:1e3,blurDataURL:"data:image/jpeg;base64,/9j/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIoOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wgARCAAEAAgDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAT/xAAVAQEBAAAAAAAAAAAAAAAAAAACA//aAAwDAQACEAMQAAABkE1//8QAFxABAAMAAAAAAAAAAAAAAAAAAgEDBP/aAAgBAQABBQJ6rVH/xAAVEQEBAAAAAAAAAAAAAAAAAAAAEf/aAAgBAwEBPwGP/8QAFhEAAwAAAAAAAAAAAAAAAAAAAAER/9oACAECAQE/Aaz/xAAWEAEBAQAAAAAAAAAAAAAAAAABABH
8/2gAIAQEABj8C1b//xAAYEAACAwAAAAAAAAAAAAAAAAABIQARMf/aAAgBAQABPyEiwlUp/9oADAMBAAIAAwAAABAP/8QAFhEAAwAAAAAAAAAAAAAAAAAAABFR/9oACAEDAQE/EEh//8QAFREBAQAAAAAAAAAAAAAAAAAAAGH/2gAIAQIBAT8Qo//EABcQAQEBAQAAAAAAAAAAAAAAAAERAGH/2gAIAQEAAT8QTCNKoKcd/9k=",blurWidth:8,blurHeight:4},name:"Relaxed",slug:"relaxed"}];var eE=e=>{let{clickedCard:t,onClickCard:n,isLessThanLaptop:o,onboardingData:a,chosenTimePreferences:r}=e;return(0,i.jsx)(l.Z,{in:!0,timeout:400,classNames:"fade",unmountOnExit:!0,appear:!0,children:(0,i.jsxs)(y,{children:[(0,i.jsxs)(K.Dx,{$onboardingTitle:1,children:["How do you want to spend ",(0,i.jsx)(R,{children:"your time?"})]}),(0,i.jsx)(ef.Z.Group,{centered:!0,itemsPerRow:o?2:5,children:e_.map((e,t)=>(0,i.jsx)(ef.Z,{image:e?.image||null,header:e.name,onClick:()=>n(t,e),color:a?.trip_time_preferences?.length&&a.trip_time_preferences.some(t=>t.slug===e.slug)?"orange":"grey"},t))})]})})},eC={src:"/_next/static/media/luxury.1d1db8d3.svg",height:45,width:33,blurWidth:0,blurHeight:0},ey=e=>{let{onClickCard:t,isLessThanLaptop:n,labels:o,chosenLabels:a,onboardingData:r}=e,A=[...Object.values(o),{name:"Luxury",slug:"luxury",icon:{url:eC,alternativeText:"luxury city trip"}}];return(0,i.jsx)(l.Z,{in:!0,timeout:400,classNames:"fade",unmountOnExit:!0,appear:!0,children:(0,i.jsxs)(y,{children:[(0,i.jsxs)(K.Dx,{$onboardingTitle:1,children:["What ",(0,i.jsx)(R,{children:"attracts"})," you for this trip?"]}),(0,i.jsx)(ef.Z.Group,{centered:!0,itemsPerRow:n?3:4,children:A.length&&A.map((e,n)=>(0,i.jsx)(ef.Z,{header:(0,i.jsxs)("div",{className:"label",children:[(0,i.jsx)("img",{src:e.icon.url,alt:e.icon.alternativeText})," ",e.name]}),onClick:()=>t(n,e),color:r?.labels?.length&&r.labels.some(t=>t.slug===e.slug)?"orange":"grey"},n))})]})})},eO=n(19216),eI=e=>{let{router:t,isLessThanLaptop:n,clickedCard:o,onClickCard:a,onboardingData:r,setOnboardingData:s,user:d,setOnboardingStep:c}=e,p=()=>{let e="";if(r?.trip_name&&r?.trip_name.includes(r?.destination_search?.name)&&!r?.trip_name.includes("undefined"))h(r?.trip_name);else{if(r?.start_date){let t=new Date(r?.start_date);e=`My ${["January","February","March","April","May","June","July","August","September","October","November","December"][t.getMonth()]} Trip`,r?.destination_search?.custom_onboarding_destination_name!=="Destination not found. Create your personalised trip!"&&r?.destination_search?.name!=="Destination not found. Create your personalised trip!"&&r?.destination_search?.name!==void 0&&(e+=` to ${r.destination_search.custom_onboarding_destination_name||r.destination_search.name}`)}else e=r?.destination_search?.custom_onboarding_destination_name!=="Destination not found. Create your personalised trip!"&&r?.destination_search?.name!=="Destination not found. Create your personalised trip!"&&r?.destination_search?.name!==void 0?`My Trip To ${r.destination_search.custom_onboarding_destination_name||r.destination_search.name}`:"My New Trip";s({trip_name:e}),h(e)}},[g,h]=(0,A.useState)("");return(0,A.useEffect)(()=>{p()},[]),(0,i.jsx)(l.Z,{in:!0,timeout:400,classNames:"fade",unmountOnExit:!0,appear:!0,children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(y,{children:[(0,i.jsxs)(K.Dx,{$onboardingTitle:1,children:[(0,i.jsx)(R,{children:"Name"})," your trip"]}),(0,i.jsxs)(eO.n2,{children:[(0,i.jsx)(G,{children:"Trip Name"}),(0,i.jsx)(H,{value:g,type:"text",placeholder:"Name your trip",name:"trip_name",id:"trip_name",onChange:e=>{h(e.target.value),s({trip_name:e.target.value})}})]})]}),(0,i.jsx)(y,{children:(0,i.jsx)(K.KM,{disabled:!g,$fullMargin:1,onClick:async()=>{await s({trip_name:g}),a(),d&&(X.cp.emit({GA:!0},"GA4_onboarding_results_saved",{start_date:r?.start_date||"I don't know",end_date:r?.end_date||"I don't know",destination:r?.destination_search?.slug!=="personalise--trip"?r?.destination_search?.slug:"I don't know",companions:r?.companions_type,time_preferences:r?.trip_time_preferences.map(e=>e.slug).join(","),labels:r?.labels?.map(e=>e?.slug).join(",")}),c(6))},children:"Get Started"})})]})})},ej=n(41261),eS=n(66216),eP=n(26837),eB=n(44256),ez=n(26151),eR=n(50256),eL={src:"/_next/static/media/CloseCross.1425106f.svg",height:23,width:23,blurWidth:0,blurHeight:0},ev=n(10014),eD=n(95729);
8let eN=(0,X.ep)([ev.yE,eD.bB]),ek=(0,X.uR)([ev.yE,eD.bB]);var eQ=(0,s.$j)(e=>({loading:eN(e.loading),error:ek(e.error),onboardingStep:e.onboarding.step,onboardingData:e.onboarding.data,labels:e.label.list,user:e.auth.user,enabledCountries:e.country.enabled,onboardingStarted:e.onboarding.onboardingStarted}),e=>({fetchLabelsList:()=>e((0,eB.e)()),clearFilters:()=>e((0,ez.K5)()),setOnboardingStep:t=>e((0,ej.$K)(t)),setOnboardingData:t=>e((0,ej.Jw)(t)),setOnboardingStarted:t=>e((0,ej.GW)(t)),sendFeedback:t=>e((0,eS.fA)(t)),getUserTrips:()=>e((0,eP.FG)()),setTrigger:t=>e((0,ei.TF)(t))}))(e=>{let{router:t,loading:n,error:o,onboardingStep:a,labels:r,search:s,isLessThanLaptop:d,fetchLabelsList:c,setOnboardingStep:p,setOnboardingData:u,onboardingData:m,user:x,sendFeedback:f,getUserTrips:w,enabledCountries:b,clearFilters:y,setTrigger:j,onboardingStarted:S,setOnboardingStarted:P}=e,[B,z]=(0,A.useState)(!1),[R,L]=(0,A.useState)(null),[v,D]=(0,A.useState)([]),[N,k]=(0,A.useState)([]);(0,A.useEffect)(()=>{c(),y()},[]),(0,A.useEffect)(()=>{1===a&&(X.cp.emit({GA:!0},"GA4_onboarding_start",{page_referrer:document?.referrer}),P(!0))},[]),(0,A.useEffect)(()=>{2!==a||S||(X.cp.emit({GA:!0},"GA4_onboarding_start",{page_referrer:document?.referrer}),P(!0))},[S,a]);let Q=async()=>{L(null),p(Number(a+1)),2===a?(X.cp.emit({GA:!0},"onboarding-select_companions",{companionsText:m?.companions_type}),X.cp.emit({GA:!0},"GA4_onboarding_submit_companions",{companions:m?.companions_type})):3===a?(X.cp.emit({GA:!0},"onboarding-select_time_preference",{timePreferenceText:m?.trip_time_preferences.map(e=>e.slug).join(",")}),X.cp.emit({GA:!0},"GA4_onboarding_submit_time_preferences",{time_preferences:m?.trip_time_preferences.map(e=>e.slug).join(",")})):4===a&&(X.cp.emit({GA:!0},"onboarding-select_labels",{labelSlug:m?.labels?.map(e=>e?.slug).join(",")}),X.cp.emit({GA:!0},"GA4_onboarding_submit_labels",{labels:m?.labels?.map(e=>e?.slug).join(",")}))},T=async(e,t)=>{let n=null,i=null;switch(4===a?(n=v.some(e=>e.slug===t.slug)?v.filter(e=>e.slug!==t.slug):[...v,{id:t.id,slug:t.slug}],await D(n)):L(`choice-${e}`),3===a?(i=N.some(e=>e.slug===t.slug)?N.filter(e=>e.slug!==t.slug):[...N,{id:t.id,slug:t.slug}],await k(i)):L(`choice-${e}`),a){case 1:return u({...m});case 2:return u({companions_type:t?.slug});case 3:return u({trip_time_preferences:i});case 4:return u({labels:n});default:await u({can_create_trip:!0}),z(!0);return}};return(0,i.jsxs)(i.Fragment,{children:[n?(0,i.jsx)("div",{style:{width:"100%",height:"100%",backgroundColor:"white",opacity:"0.5",zIndex:"999",position:"absolute"},children:(0,i.jsx)(h.Z,{styles:{position:"fixed",left:"calc(50% - 20px)",top:"calc(50% - 80px)",width:"40px",height:"40px"}})}):null,(0,i.jsxs)(_,{children:[(0,i.jsxs)(O,{children:[(0,i.jsxs)(E,{children:[(0,i.jsx)(K.fb,{src:eR.Z,alt:"Live The World logo"}),(0,i.jsx)(eh.Z,{href:"/",children:(0,i.jsx)(K.fb,{onClick:()=>{X.cp.emit({GA:!0},"onboarding-click_x-close_onboarding",{buttonText:"Close"}),X.cp.emit({GA:!0},"GA4_onboarding_click",{type:"close",step:a})},src:eL,alt:"Close button"})})]}),(0,i.jsx)(g,{onboardingStep:a,percent:a/6*100})]}),(0,i.jsxs)(C,{children:[1===a&&(0,i.jsx)(q,{isLessThanLaptop:d,router:t,setOnboardingStep:p,onboardingData:m,setOnboardingData:u}),2===a&&(0,i.jsx)(eb,{isLessThanLaptop:d,clickedCard:R,onClickCard:T,onboardingData:m}),3===a&&(0,i.jsx)(eE,{isLessThanLaptop:d,chosenTimePreferences:N,clickedCard:R,onClickCard:T,onboardingData:m}),4===a&&(0,i.jsx)(ey,{isLessThanLaptop:d,labels:r,onClickCard:T,chosenLabels:v,onboardingData:m}),5===a&&(0,i.jsx)(eI,{onboardingData:m,isLessThanLaptop:d,router:t,clickedCard:R,onClickCard:T,setOnboardingData:u,user:x,setOnboardingStep:p}),6===a&&(0,i.jsx)(ex,{onboardingData:m,router:t,isLessThanLaptop:d,sendFeedback:f,setOnboardingStep:p,user:x,getUserTrips:w,enabledCountries:b,setOpenModal:z,setOnboardingData:u}),1!==a&&6!==a?(0,i.jsx)(l.Z,{in:!0,timeout:400,classNames:"fade",unmountOnExit:!0,appear:!0,children:(0,i.jsxs)(I,{children:[(0,i.jsx)(K.JX,{onClick:()=>{p(Number(a-1)),L(null),X.cp.emit({GA:!0},"GA4_onboarding_click",{type:"previous",step:a})},children:"Previous"}),5!==a?(0,i.jsx)(K.KM,{$lessHeight:1,$fullMargin:1,onClick:Q,disabled:!(m.companions_type&&2===a||m?.labels?.length&&4===a||m?.trip_time_preferences?.length&&3===a),children:"Next"}):null]})}):null]})]}),5===a&&B&&(0,i.jsx)(eo,{user:x,onClose:()=>{z(!1)},setOnboardingStep:p,router:t,onboardingData:m,setTrigger:j})]})}),eT=n(72041),eM=e=>{let{isLessThanLaptop:t}=e,n=(0,r.useRouter)();return(0,eT.O)()&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(a(),{children:[null,(0,i.jsx)("meta",{name:"description",content:`Tell us where youâre going and what you like, and weâll build a fully personalized travel guide just-for-you.`},"description"),(0,i.jsx)("title",{children:"Live the World | Let us create your fully personalized travel guide"}),(0,i.jsx)("meta",{property:"og:title",content:"Live the World | Let us create your fully personalized travel guide"},"og:title"),(0,i.jsx)("meta",{property:"og:description",content:`Tell us where youâre going and what you like, and weâll build a fully personalized travel guide just-for-you.`},"og:description"),(0,i.jsx)("meta",{property:"og:url",content:"https://www.livetheworld.com/"+window.location.pathname.substring(1)},"og:url"),(0,i.jsx)("meta",{property:"og:type",content:"website"},"og:type"),(0,i.jsx)("link",{rel:"canonical",href:`https://www.livetheworld.com/${window.location.pathname.substring(1)}`})]}),(0,i.jsx)(eQ,{router:n,search:n.search,isLessThanLaptop:t})]})}},44256:function(e,t,n){"use strict";n.d(t,{e:function(){return a}});var i=n(10014),o=n(36512);let a=()=>
8({type:i.yE,payload:o.bl.getRequest("/api/frontend/labels",{}).then(e=>({...e}))})},41261:function(e,t,n){"use strict";n.d(t,{$K:function(){return s},GW:function(){return d},Jw:function(){return l},lK:function(){return A}});var i=n(36512),o=n(73359),a=n(75233),r=n(95729);let A=()=>({type:r.fI,payload:i.bl.updateRequest("/api/frontend/users/onboarded",{},{},!0).then(e=>(o.h.dispatch((0,a.bG)()),{...e}))}),s=e=>t=>t({type:r.CB,payload:e}),l=e=>t=>t({type:r.Db,payload:e}),d=e=>t=>t({type:r.jP,payload:e})},85670:function(){},92815:function(e){e.exports={ui:"style_ui__ef1EN",orange:"style_orange__KDPtn",progress:"style_progress__waD8O",bar:"style_bar__MdAmb"}}},function(e){e.O(0,[2982,2873,1216,2465,1907,3622,5553,2888,9774,179],function(){return e(e.s=53702)}),_N_E=e.O()}]);
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.