/* creation date: Tue, 29 Oct 2024 16:03:42 GMT
concat references:
https%3A%2F%2Fde.dayuse.ch%2F_next%2Fstatic%2Fchunks%2F141-66e9b1fca2a07eaa.js
https%3A%2F%2Fde.dayuse.ch%2F_next%2Fstatic%2Fchunks%2F5839-32f7af8c2cad6660.js
https%3A%2F%2Fde.dayuse.ch%2F_next%2Fstatic%2Fchunks%2F4649-636cc86027df17c0.js
https%3A%2F%2Fde.dayuse.ch%2F_next%2Fstatic%2Fchunks%2F4849-7fae546b6e5b9a84.js
*/
/*! https%3A%2F%2Fde.dayuse.ch%2F_next%2Fstatic%2Fchunks%2F141-66e9b1fca2a07eaa.js */
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="03d03cd7-1d44-4c4b-93cf-fdddc87f58cb",e._sentryDebugIdIdentifier="sentry-dbid-03d03cd7-1d44-4c4b-93cf-fdddc87f58cb")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[141],{80141:function(e,t,r){r.d(t,{Ye:function(){return o}}),r(22541);var n=r(88767);r(30497),r(14938),r(53092),r(6638),r(81818),r(6173),r(92162),r(88408),r(39859),r(29100),r(99982);var a=r(67488);function o(e,t,r,o,u){return(0,n.useQuery)(["hotel-availabilities",e,t,o],()=>{var r;return r={id:e,params:{offerId:t,withPrice:!0}},(0,a.ry)().get("/hotel/".concat(r.id,"/calendar/availabilities"),{params:r.params}).then(e=>e.data)},{keepPreviousData:!1,refetchOnWindowFocus:!1,...u})}r(63290),r(82930),r(40890),r(82875),r(1658),r(48558),r(54373),r(50856),r(2666),r(52609),r(12288),r(10678),r(18508),r(76677),r(15377),r(47688)},99982:function(e,t,r){r.d(t,{t:function(){return o}});var n=r(88767),a=r(67488);function o(e,t,r){return(0,n.useQuery)(["articles",e,t],()=>{var r;return r={host:e,params:{ids:t}},(0,a.ry)().get("/articles-list/".concat(r.host),{params:{articlesIds:r.params.ids.join(",")}}).then(e=>e.data)},{staleTime:1/0,cacheTime:1/0,keepPreviousData:!1,refetchOnWindowFocus:!1,...r})}},6638:function(e,t,r){r.d(t,{f:function(){return u}});var n=r(88767),a=r(67488);async function o(e){return(0,a.ry)().get("/cross-sale/hotels",{params:e.params}).then(e=>e.data)}function u(e,t){let{hotelId:r,lat:a,lng:u,payAtTheHotel:c,date:i,availiabilityType:s}=e;return(0,n.useQuery)(["crossSale",r],()=>o({params:{centroid:[a,u],hotelIdToExcludeForNearestSearch:[r],payAtTheHotel:c,date:i,availiabilityType:s}}),{keepPreviousData:!0,refetchOnWindowFocus:!1,...t})}},48558:function(e,t,r){r.d(t,{x:function(){return c}});var n=r(88767),a=r(67488);async function o(){return(0,a.m_)().get("/offer/daydream/list").then(e=>e.data)}var u=r(30497);function c(e){let{lang:t}=(0,u.Jr)();return(0,n.useQuery)(["daydreamThematic",e||t],async()=>o(),{keepPreviousData:!0,notifyOnChangeProps:"tracked"})}},76677:function(e,t,r){r.d(t,{H:function(){return i}});var n=r(88767),a=r(31552),o=r(30497),u=r(63290);let c=async e=>({booking:await (0,a.l)({bookingUUID:e.uuid})});function i(e,t,r,a){let{lang:i}=(0,o.Jr)(),[s]=(0,u.U8)();return(0,n.useQuery)(["booking","detail",e.bookingUUID,null!=r?r:i,a||s],async()=>c({uuid:e.bookingUUID}),{keepPreviousData:!0,refetchOnWindowFocus:!1,refetchOnMount:!1,retry:!1,notifyOnChangeProps:"tracked",...t})}},82875:function(e,t,r){r.d(t,{c:function(){return o}});var n=r(88767),a=r(67488);function o(e,t){return(0,n.useQuery)(["featured-article-landing-pages",e],()=>{var t;return t={hostname:e,params:{}},(0,a.ry)().get("/landing-pages/articles-home/".concat(t.hostname),{params:t.params}).then(e=>e.data)},{refetchOnWindowFocus:!1,...t})}},15377:function(e,t,r){r.d(t,{C:function(){return o}});var n=r(88767),a=r(67488);function o(e,t,r,o){let u=(0,n.useQueryClient)();return{giftCard:(0,n.useQuery)(["gift-card",e,null!=r?r:"EUR"],()=>{if(e){var t;return t={uuid:e},(0,a.ry)().get("/loyalty/gift-card/".concat(t.uuid)).then(e=>e.data)}return Promise.resolve(void 0)},{keepPreviousData:!0,staleTime:1/0,cacheTime:1/0,refetchOnWindowFocus:!1,...o}),createGiftCard:(0,n.useMutation)(e=>{var t;return t={data:e.giftCard},(0,a.ry)().post("/loyalty/gift-card",t.data).then(e=>e.data)},{onSuccess:(e,t)=>{u.setQueryData(["gift-card"],()=>({...t,...e}))}})}}},22541:function(e,t,r){r.d(t,{w8:function(){return i},ip:function(){return s},wB:function(){return d}});var n=r(88767),a=r(67488);async function o(e){return(0,a.ry)().get("/hotels/".concat(e.slug)).then(e=>e.data)}var u=r(30497),c=r(63290);function i(e,t,r,a){let{lang:i}=(0,u.Jr)(),[s]=(0,c.U8)();return(0,n.useQuery)(["hotel",e,r||i,a||s],()=>o({slug:e}),{keepPreviousData:!0,staleTime:5e3,refetchOnWindowFocus:!1,...t})}function s(e,t,r){let{lang:o}=(0,u.Jr)(),[i]=(0,c.U8)();return(0,n.useQuery)(["hotels",e,null!=r?r:o,i],()=>{if(e.length>0){var t;return t={ids:e},(0,a.ry)().get("/homepage/event-featured-hotels",{params:{hotelsIds:t.ids.join(",")}}).then(e=>e.data)}return Promise.resolve([])},{keepPreviousData:!0,staleTime:5e3,refetchOnWindowFocus:!1,...t})}function d(e,t){let{lang:r}=(0,u.Jr)(),[o]=(0,c.U8)();return(0,n.useQuery)(["hotels-homepage",r,o,e],()=>(0,a.ry)().get("/homepage/featured-hotels").then(e=>e.data),{refetchOnWindowFocus:!1,...t})}},82930:function(e,t,r){r.d(t,{t:function(){return c}});var n=r(88767),a=r(67488),o=r(30497),u=r(63290);let c=(e,t,r)=>{let c=(0,o.Jr)().lang,[i]=(0,u.U8)();return(0,n.useQuery)(["hotel-addons-by-category",e,t,c,i],()=>{var r;return r={hotelId:e,categoryId:t},(0,a.ry)().get("/hotel/".concat(r.hotelId,"/addons/").concat(r.categoryId)).then(e=>e.data)},{keepPreviousData:!1,refetchOnWindowFocus:!1,...r})}},53092:function(e,t,r){r.d(t,{c:function(){return u}});var n=r(88767),a=r(67488),o=r(63290);let u=(e,t)=>{let[r]=(0,o.U8)();return(0,n.useQuery)(["hotel-addons-category",e,r],()=>{var t;return t={id:e},(0,a.ry)().get("/hotel/".concat(t.id,"/addons")).then(e=>e.data)},{keepPreviousData:!0,staleTime:1/0,cacheTime:1/0,refetchOnWindowFocus:!1,...t})}},14938:function(e,t,r){r.d(t,{O:function(){return o}});var n=r(88767),a=r(67488);let o=(e,t)=>(0,n.useQuery)(["hotel-photos",e],()=>{var t;return t={id:e},(0,a.ry)().get("/hotel/".concat(t.id,"/photos")).then(e=>e.data)},{keepPreviousData:!0,staleTime:1/0,cacheTime:1/0,refetchOnWindowFocus:!1,...t})},47688:function(e,t,r){r.d(t,{E:function(){return c}});var n=r(88767),a=r(30497),o=r(67488),u=r(63290);function c(e){let{id:t,checkinDate:r,userCurrency:c,userLanguage:i,options:s}=e,{lang:d}=(0,a.Jr)(),[f]=(0,u.U8)();return(0,n.useQuery)(["rate-plans",t,null!=r?r:null,null!=i?i:d,null!=c?c:f],()=>{var e;return e={id:t,params:{checkinDate:r}},(0,o.ry)().get("/hotel/".concat(e.id,"/rate-plans"),{params:{...e.params,timestamp:Date.now().toString()}}).then(e=>e.data)},{keepPreviousData:!0,refetchOnWindowFocus:!1,staleTime:6e4,...s})}},12288:function(e,t,r){r.d(t,{f:function(){return u},Fd:function(){return c}});var n=r(88767),a=r(67488),o=r(63290);function u(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],u=arguments.length>3?arguments[3]:void 0,[c]=(0,o.U8)();return(0,n.useQuery)(["landing-page",e,t,c,r],()=>{var n;return n={slug:e,host:t,previewMode:r},(0,a.ry)().get("/landing-pages/".concat(n.slug,"/hosts/").concat(n.host).concat(n.previewMode?"?mode=preview":"")).then(e=>e.data)},{refetchOnWindowFocus:!1,...u})}function c(e,t,r){return(0,n.useQuery)(["landing-page",e,null!=t?t:1],()=>{var r;return r={host:e,params:{page:null!=t?t:1}},(0,a.ry)().get("/landing-pages/".concat(r.host),{params:r.params}).then(e=>e.data)},{keepPreviousData:!0,refetchOnWindowFocus:!1,staleTime:6e4,cacheTime:6e4,...r})}},10678:function(e,t,r){r.d(t,{W:function(){return o}});var n=r(88767),a=r(67488);function o(e,t){return(0,n.useQuery)(["reload-pci-card-token",e],()=>{var t;return t={bookingUuid:e},(0,a.ry)().post("/bookings/".concat(t.bookingUuid,"/pci/reload-pci-booking-token"),{}).then(e=>e.data)},{keepPreviousData:!0,refetchOnWindowFocus:!1,refetchOnMount:!1,...t})}},6173:function(e,t,r){r.d(t,{zC:function(){return i},mD:function(){return s},Jt:function(){return d}});var n=r(88767),a=r(67488);async function o(e){return await (0,a.m_)().get("/daydream-highlight-offer",{params:e.params}).then(e=>e.data)}var u=r(30497),c=r(63290);function i(e,t,r,a){let{lang:i}=(0,u.Jr)(),[s]=(0,c.U8)();return(0,n.useQuery)(["daydream-offers",t||i,s,r],()=>o({params:{offerIds:e}}),{refetchOnWindowFocus:!1,...a})}function s(e,t){let{lang:r}=(0,u.Jr)(),[o]=(0,c.U8)(),i={...e};return delete i.userLocation,(0,n.useQuery)(["search","daydream","filters",i,r,o],()=>{var t;return t={params:e},(0,a.m_)().get("/daydream/thematic-list",{params:t.params}).then(e=>e.data)},{keepPreviousData:!0,refetchOnWindowFocus:!1,refetchOnMount:!1,staleTime:5e3,cacheTime:0,notifyOnChangeProps:"tracked",...t})}function d(e,t,r){let{lang:o}=(0,u.Jr)(),[i]=(0,c.U8)(),s={...e};return delete s.userLocation,e.sort="transactionOverRpmOverComputedDaysInterval",(0,n.useQuery)(["search","offers",s,o,i,t],()=>{var t;return t={params:e},(0,a.m_)().get("/daydream-offer",{params:t.params}).then(e=>e.data)},{keepPreviousData:!0,refetchOnWindowFocus:!1,refetchOnMount:!1,staleTime:5e3,cacheTime:0,notifyOnChangeProps:"tracked",...r})}}}]);
var __fstrzSep="";
/*! https%3A%2F%2Fde.dayuse.ch%2F_next%2Fstatic%2Fchunks%2F5839-32f7af8c2cad6660.js */
!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},o=(new t.Error).stack;o&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[o]="151f5330-42ed-4ce7-96b2-9bbb2125cf61",t._sentryDebugIdIdentifier="sentry-dbid-151f5330-42ed-4ce7-96b2-9bbb2125cf61")}catch(t){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5839],{40098:function(t){var o=Math.ceil,e=Math.max;t.exports=function(t,r,l,n){for(var i=-1,a=e(o((r-t)/(l||1)),0),f=Array(a);a--;)f[n?a:++i]=t,t+=l;return f}},27561:function(t,o,e){var r=e(67990),l=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(l,""):t}},47445:function(t,o,e){var r=e(40098),l=e(16612),n=e(18601);t.exports=function(t){return function(o,e,i){return i&&"number"!=typeof i&&l(o,e,i)&&(e=i=void 0),o=n(o),void 0===e?(e=o,o=0):e=n(e),i=void 0===i?o<e?1:-1:n(i),r(o,e,i,t)}}},16612:function(t,o,e){var r=e(77813),l=e(98612),n=e(65776),i=e(13218);t.exports=function(t,o,e){if(!i(e))return!1;var a=typeof o;return("number"==a?!!(l(e)&&n(o,e.length)):"string"==a&&o in e)&&r(e[o],t)}},67990:function(t){var o=/\s/;t.exports=function(t){for(var e=t.length;e--&&o.test(t.charAt(e)););return e}},96026:function(t,o,e){var r=e(47445)();t.exports=r},18601:function(t,o,e){var r=e(14841),l=1/0;t.exports=function(t){return t?(t=r(t))===l||t===-l?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}},14841:function(t,o,e){var r=e(27561),l=e(13218),n=e(33448),i=0/0,a=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(n(t))return i;if(l(t)){var o="function"==typeof t.valueOf?t.valueOf():t;t=l(o)?o+"":o}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var e=f.test(t);return e||s.test(t)?c(t.slice(2),e?2:8):a.test(t)?i:+t}},54490:function(t,o,e){"use strict";e.d(o,{Ji:function(){return d},BK:function(){return m}});var r,l,n,i,a=e(97582),f=e(67294),s=e(86896);(r=n||(n={})).formatDate="FormattedDate",r.formatTime="FormattedTime",r.formatNumber="FormattedNumber",r.formatList="FormattedList",r.formatDisplayName="FormattedDisplayName",(l=i||(i={})).formatDate="FormattedDateParts",l.formatTime="FormattedTimeParts",l.formatNumber="FormattedNumberParts",l.formatList="FormattedListParts";var c=function(t){var o=(0,s.Z)(),e=t.value,r=t.children,l=(0,a._T)(t,["value","children"]);return r(o.formatNumberToParts(e,l))};function u(t){var o=function(o){var e=(0,s.Z)(),r=o.value,l=o.children,n=(0,a._T)(o,["value","children"]),i="string"==typeof r?new Date(r||0):r;return l("formatDate"===t?e.formatDateToParts(i,n):e.formatTimeToParts(i,n))};return o.displayName=i[t],o}function p(t){var o=function(o){var e=(0,s.Z)(),r=o.value,l=o.children,n=(0,a._T)(o,["value","children"]),i=e[t](r,n);if("function"==typeof l)return l(i);var c=e.textComponent||f.Fragment;return f.createElement(c,null,i)};return o.displayName=n[t],o}c.displayName="FormattedNumberParts",c.displayName="FormattedNumberParts";var d=p("formatDate");p("formatTime");var m=p("formatNumber");p("formatList"),p("formatDisplayName"),u("formatDate"),u("formatTime")},30523:function(t){t.exports={polyfill:function(){var t,o=window,e=document;if(!("scrollBehavior"in e.documentElement.style)||!0===o.__forceSmoothScrollPolyfill__){var r=o.HTMLElement||o.Element,l={scroll:o.scroll||o.scrollTo,scrollBy:o.scrollBy,elementScroll:r.prototype.scroll||a,scrollIntoView:r.prototype.scrollIntoView},n=o.performance&&o.performance.now?o.performance.now.bind(o.performance):Date.now,i=(t=o.navigator.userAgent,RegExp("MSIE |Trident/|Edge/").test(t))?1:0;o.scroll=o.scrollTo=function(){if(void 0!==arguments[0]){if(!0===f(arguments[0])){l.scroll.call(o,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:o.scrollX||o.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:o.scrollY||o.pageYOffset);return}u.call(o,e.body,void 0!==arguments[0].left?~~arguments[0].left:o.scrollX||o.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:o.scrollY||o.pageYOffset)}},o.scrollBy=function(){if(void 0!==arguments[0]){if(f(arguments[0])){l.scrollBy.call(o,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0);return}u.call(o,e.body,~~arguments[0].left+(o.scrollX||o.pageXOffset),~~arguments[0].top+(o.scrollY||o.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(void 0!==arguments[0]){if(!0===f(arguments[0])){if("number"==typeof arguments[0]&&void 0===arguments[1])throw SyntaxError("Value could not be converted");l.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop);return}var t=arguments[0].left,o=arguments[0].top;u.call(this,this,void 0===t?this.scrollLeft:~~t,void 0===o?this.scrollTop:~~o)}},r.prototype.scrollBy=function(){if(void 0!==arguments[0]){if(!0===f(arguments[0])){l.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(!0===f(arguments[0])){l.scrollIntoView.call(this,void 0===arguments[0]||arguments[0]);return}var t=function(t){for(var o,r,l;t!==e.body&&!1===(r=s(o=t,"Y")&&c(o,"Y"),l=s(o,"X")&&c(o,"X"),r||l);)t=t.parentNode||t.host;return t}(this),r=t.getBoundingClientRect(),n=this.getBoundingClientRect();t!==e.body?(u.call(this,t,t.scrollLeft+n.left-r.left,t.scrollTop+n.top-r.top),"fixed"!==o.getComputedStyle(t).position&&o.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):o.scrollBy({left:n.left,top:n.top,behavior:"smooth"})}}function a(t,o){this.scrollLeft=t,this.scrollTop=o}function f(t){if(null===t||"object"!=typeof t||void 0===t.behavior||"auto"===t.behavior||"instant"===t.behavior)return!0;if("object"==typeof t&&"smooth"===t.behavior)return!1;throw TypeError("behavior member of ScrollOptions "+t.behavior+" is not a valid value for enumeration ScrollBehavior.")}function s(t,o){return"Y"===o?t.clientHeight+i<t.scrollHeight:"X"===o?t.clientWidth+i<t.scrollWidth:void 0}function c(t,e){var r=o.getComputedStyle(t,null)["overflow"+e];return"auto"===r||"scroll"===r}function u(t,r,i){var f,s,c,u,p=n();t===e.body?(f=o,s=o.scrollX||o.pageXOffset,c=o.scrollY||o.pageYOffset,u=l.scroll):(f=t,s=t.scrollLeft,c=t.scrollTop,u=a),function t(e){var r,l,i,a=(n()-e.startTime)/468;r=.5*(1-Math.cos(Math.PI*(a=a>1?1:a))),l=e.startX+(e.x-e.startX)*r,i=e.startY+(e.y-e.startY)*r,e.method.call(e.scrollable,l,i),(l!==e.x||i!==e.y)&&o.requestAnimationFrame(t.bind(o,e))}({scrollable:f,method:u,startTime:p,startX:s,startY:c,x:r,y:i})}}}}}]);
var __fstrzSep="";
/*! https%3A%2F%2Fde.dayuse.ch%2F_next%2Fstatic%2Fchunks%2F4649-636cc86027df17c0.js */
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="297e4c76-070d-4ea0-86a3-45594ee69059",e._sentryDebugIdIdentifier="sentry-dbid-297e4c76-070d-4ea0-86a3-45594ee69059")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4649],{64690:function(e,r,o){var t,l,a,s,d,n,i,c,u,b,h,m,f,p,x,w=o(67294);function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e}).apply(null,arguments)}r.Z=function(e){return w.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 395 274"},e),t||(t=w.createElement("g",{filter:"url(#password_svg__a)"},w.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M127.39 236.71a5.75 5.75 0 0 0-6.14 1.5 38.7 38.7 0 0 1-28.87 12.87 38.7 38.7 0 0 1-28.86-12.87 5.75 5.75 0 0 0-6.14-1.5 25.87 25.87 0 1 1 0-48.88c2.15.75 4.61.2 6.14-1.5a38.7 38.7 0 0 1 28.86-12.87 38.7 38.7 0 0 1 28.87 12.88 5.75 5.75 0 0 0 6.14 1.49 25.87 25.87 0 1 1 0 48.88",clipRule:"evenodd"}))),l||(l=w.createElement("rect",{width:141.93,height:93.99,x:93.02,y:117.95,fill:"url(#password_svg__b)",rx:12.62})),a||(a=w.createElement("path",{stroke:"url(#password_svg__c)",strokeWidth:13.25,d:"M194.22 118.14V52.5a30.42 30.42 0 1 0-60.84 0v65.64"})),s||(s=w.createElement("path",{fill:"url(#password_svg__d)",fillRule:"evenodd",d:"M166.78 168.7a13.88 13.88 0 1 0-6.23 0l-6.98 21.8h20.19z",clipRule:"evenodd"})),d||(d=w.createElement("path",{fill:"#000",fillRule:"evenodd",d:"M166.78 168.7a13.88 13.88 0 1 0-6.23 0l-6.98 21.8h20.19z",clipRule:"evenodd"})),n||(n=w.createElement("g",{filter:"url(#password_svg__e)"},w.createElement("rect",{width:186.71,height:42.89,x:198.35,y:147.6,fill:"#fff",rx:21.45}))),i||(i=w.createElement("path",{stroke:"#000",strokeWidth:1.26,d:"M223.27 156.43v25.86m-9.14-22.07 9.14 9.14 9.14 9.15"})),c||(c=w.createElement("path",{stroke:"#000",strokeWidth:1.26,d:"m232.41 160.22-9.14 9.14-9.14 9.15m-3.79-9.15h25.86m21.76-12.93v25.86m-9.14-22.07 9.14 9.14 9.15 9.15m-.01-18.29-9.14 9.14-9.14 9.15m-3.79-9.15h25.86m21.77-12.93v25.86m-9.15-22.07 9.15 9.14 9.14 9.15m0-18.29-9.14 9.14-9.15 9.15m-3.78-9.15h25.86m21.76-12.93v25.86m-9.15-22.07 9.15 9.14 9.14 9.15"})),u||(u=w.createElement("path",{stroke:"#000",strokeWidth:1.26,d:"m336.5 160.22-9.15 9.14-9.14 9.15m-3.79-9.15h25.86m21.76-12.93v25.86m-9.14-22.07 9.14 9.14 9.14 9.15"})),b||(b=w.createElement("path",{stroke:"#000",strokeWidth:1.26,d:"m371.19 160.22-9.15 9.14-9.14 9.15m-3.79-9.15h25.86"})),h||(h=w.createElement("circle",{cx:258.04,cy:95.64,r:40.69,fill:"url(#password_svg__f)",transform:"rotate(7.76 258.04 95.64)"})),m||(m=w.createElement("circle",{cx:258.04,cy:95.64,r:33.43,stroke:"#000",strokeWidth:.63,transform:"rotate(7.76 258.04 95.64)"})),f||(f=w.createElement("path",{stroke:"#000",strokeWidth:.63,d:"m251.1 101.9.05-.31.47-3.47a6.9 6.9 0 0 1 2.28-4.54c1.31-1.14 3.21-1.97 5.84-2.66 2.64-.72 4.34-1.31 5.42-1.97.53-.32.9-.65 1.14-1 .25-.36.4-.76.46-1.23.17-1.25-.35-2.4-1.4-3.31a8.84 8.84 0 0 0-4.58-1.85c-2.53-.35-4.63.08-6.22 1.16-1.6 1.08-2.72 2.83-3.25 5.21l-.07.31-.3-.07-8.6-1.95-.3-.07.06-.3c.93-4.6 3.12-8.1 6.67-10.38 3.55-2.27 7.93-3.07 13.16-2.35l-.05.3c8.77 1.08 15.31 7.54 14.2 14.4zm0 0 .32.04 8.16 1.12.31.04.05-.31.19-1.42c.15-1.1.47-1.8 1.15-2.35.71-.57 1.84-1.01 3.66-1.48 3.5-.88 6.18-2.02 8.08-3.58a9.14 9.14 0 0 0 3.37-6.1zm-2.3 12.53-.05.31.32.05 9.69 1.32.31.04.05-.31 1.25-9.23.05-.3-.32-.05-9.7-1.32-.3-.04-.05.3z"})),p||(p=w.createElement("path",{fill:"#000",d:"M92.66 57.64a11 11 0 0 0 10.77 10.76h.23-.23a11 11 0 0 0-10.76 10.64v.36-.36a11 11 0 0 0-10.8-10.64h-.2.19a11 11 0 0 0 10.8-10.76v-.24zM259.82.24A11 11 0 0 0 270.58 11h.24-.24a11 11 0 0 0-10.76 10.64V22v-.36A11 11 0 0 0 249.02 11h-.2.2A11 11 0 0 0 259.81.24V0v.17V0v.23Zm3.78 218.25a11 11 0 0 0 10.76 10.76h.24-.17.17-.24a11 11 0 0 0-10.75 10.64v.36-.36a11 11 0 0 0-10.8-10.64h-.2.13-.13.19a11 11 0 0 0 10.8-10.76v-.24.17-.16z"})),x||(x=w.createElement("defs",null,w.createElement("linearGradient",{id:"password_svg__b",x1:103.68,x2:234.94,y1:198.71,y2:164.95,gradientUnits:"userSpaceOnUse"},w.createElement("stop",{stopColor:"#9076C9"}),w.createElement("stop",{offset:.77,stopColor:"#CBD0E3"}),w.createElement("stop",{offset:1,stopColor:"#E1E7FF"})),w.createElement("linearGradient",{id:"password_svg__c",x1:93.33,x2:214.44,y1:-31.54,y2:152.33,gradientUnits:"userSpaceOnUse"},w.createElement("stop",{stopColor:"#E6E5F7"}),w.createElement("stop",{offset:.34,stopColor:"#F5EBF4"}),w.createElement("stop",{offset:.57,stopColor:"#FBCBD7"}),w.createElement("stop",{offset:.79,stopColor:"#BEC3E0"}),w.createElement("stop",{offset:1,stopColor:"#E1DFED"})),w.createElement("linearGradient",{id:"password_svg__d",x1:163.37,x2:163.37,y1:156.49,y2:186.05,gradientUnits:"userSpaceOnUse"},w.createElement("stop",{stopColor:"#F55F30"}),w.createElement("stop",{offset:.63,stopColor:"#FF9A9A"}),w.createElement("stop",{offset:1,stopColor:"#FFC93D"})),w.createElement("linearGradient",{id:"password_svg__f",x1:217.35,x2:294.63,y1:170.7,y2:66.94,gradientUnits:"userSpaceOnUse"},w.createElement("stop",{stopColor:"#F55F30"}),w.createElement("stop",{offset:1,stopColor:"#FFC93D"})),w.createElement("filter",{id:"password_svg__a",width:183.59,height:122.44,x:.59,y:151.05,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},w.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),w.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),w.createElement("feOffset",null),w.createElement("feGaussianBlur",{stdDeviation:11.21}),w.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),w.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.12 0"}),w.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_151_2950"}),w.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_151_2950",result:"shape"})),w.createElement("filter",{id:"password_svg__e",width:205.63,height:61.82,x:188.89,y:138.14,colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse"},w.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),w.createElement("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),w.createElement("feOffset",null),w.createElement("feGaussianBlur",{stdDeviation:4.73}),w.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),w.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.12 0"}),w.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_151_2950"}),w.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_151_2950",result:"shape"})))))}},94191:function(e,r,o){var t,l=o(67294);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)({}).hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e}).apply(null,arguments)}r.Z=function(e){return l.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:27,height:24,fill:"none"},e),t||(t=l.createElement("path",{stroke:"#292935",strokeLinejoin:"round",strokeWidth:1.3,d:"M4.2 3.55c.04 2.24 1.42 4.04 3.14 4.1h.07-.07c-1.7.04-3.08 1.82-3.14 4.04v.13-.13c-.05-2.23-1.43-4-3.14-4.05H1h.06C2.78 7.6 4.16 5.8 4.2 3.55v-.09.1Zm3.72 11.12c.04 2.24 1.42 4.04 3.13 4.1h.07-.07c-1.7.04-3.08 1.82-3.13 4.04v.13-.13c-.06-2.22-1.44-4-3.15-4.05h-.06.06c1.72-.04 3.11-1.84 3.15-4.09v-.09.1Zm9.93-13.38c.1 5.68 3.61 10.27 7.97 10.4H26h-.18c-4.33.12-7.83 4.64-7.97 10.28v.34-.34c-.14-5.65-3.65-10.19-8-10.28h-.14.14c4.38-.1 7.9-4.7 8-10.4v-.23z"})))}},13261:function(e,r,o){o.d(r,{Z:function(){return a}});var t=o(85893),l=o(86010);function a(e){let{count:r,size:o="large",className:a}=e;return(0,t.jsx)("div",{className:(0,l.Z)("rounded-full flex items-center justify-center font-bold text-[10px]","large"===o&&"h-5 w-5","medium"===o&&"h-4 w-4","small"===o&&"h-2 w-2",a),children:"small"!==o&&r})}},49377:function(e,r,o){var t=o(85893),l=o(67294),a=o(86010),s=o(16937);let d=l.forwardRef(function(e,r){let{as:o="button",children:l,className:d,size:n="medium",iconLeft:i,iconRight:c,underline:u=!1,...b}=e;return(0,t.jsxs)(o,{ref:r,className:(0,a.Z)("uppercase tracking-[.17em] items-center cursor-pointer","small"===n&&"text-[10px] leading-5","medium"===n&&"text-xs leading-6","large"===n&&"text-sm leading-6",c&&"[&:hover>svg:last-child]:translate-x-2 pr-4",u&&"underline",!d&&"inline-flex",d),...b,children:[i&&(0,t.jsx)(s.Z,{id:i,className:(0,a.Z)("mr-2 shrink-0 fill-current","small"===n&&"h-[14px] w-[14px]","medium"===n&&"h-4 w-4","large"===n&&"h-[18px] w-[18px]")}),l,c&&(0,t.jsx)(s.Z,{id:c,className:(0,a.Z)("ml-2 duration-150 shrink-0","small"===n&&"h-2 w-2","medium"===n&&"h-[10px] w-[10px]","large"===n&&"h-3 w-3")})]})});r.Z=d},45673:function(e,r,o){o.d(r,{Z:function(){return a}});var t=o(85893);o(67294);var l=o(86010);function a(e){let{children:r,className:o}=e;return r?(0,t.jsxs)("div",{className:(0,l.Z)("flex flex-row items-center justify-center",o),children:[(0,t.jsx)("div",{className:"border border-shadow-black-20 w-full rounded-full"}),(0,t.jsx)("div",{className:"px-4 whitespace-nowrap",children:r}),(0,t.jsx)("div",{className:"border border-shadow-black-20 w-full rounded-full"})]}):(0,t.jsx)("div",{className:(0,l.Z)("h-[1px] bg-shadow-black-20 rounded-full",o)})}},29082:function(e,r,o){var t=o(85893),l=o(67294),a=o(86010);let s=l.forwardRef(function(e,r){let{as:o="button",children:l,className:s,isOnlyIcon:d=!1,size:n="medium",...i}=e;return(0,t.jsx)(o,{ref:r,className:(0,a.Z)("flex justify-center select-none items-center rounded-full text-shadow-black bg-gradient-to-bl from-[#FFAF36] to-sunshine-yellow cursor-pointer whitespace-nowrap","active:bg-sunshine-yellow active:bg-none hover:bg-[#FFAF36] hover:bg-none","disabled:bg-shadow-black-40 disabled:bg-none disabled:text-white disabled:cursor-default","tiny"===n&&"text-xs font-semibold",d&&"tiny"===n&&"h-6 w-6",!d&&"tiny"===n&&"py-2 px-3","small"===n&&"text-button-sm",!d&&"small"===n&&"py-3 px-5",d&&"small"===n&&"h-9 w-9","medium"===n&&"text-button-lg",d&&"medium"===n&&"h-[52px] w-[52px]",!d&&"medium"===n&&"h-[52px] px-7",s),...i,children:l})});r.Z=s},62511:function(e,r,o){var t=o(85893),l=o(67294),a=o(86010);let s=l.forwardRef(function(e,r){let{as:o="button",children:l,className:s,isOnlyIcon:d=!1,size:n,...i}=e;return(0,t.jsx)(o,{ref:r,className:(0,a.Z)("flex justify-center select-none items-center text-shadow-black bg-white cursor-pointer","active:text-purple-dawn  hover:text-purple-dawn","disabled:opacity-50 disabled:hover:text-shadow-black disabled:active:text-shadow-black","small"===n?"rounded-full text-button-sm":"rounded-full text-button-lg",!d&&"small"===n&&"py-3 px-5",!d&&"small"!==n&&"h-[52px] px-7",d&&"small"===n&&"h-9 w-9",d&&"small"!==n&&"h-[52px] w-[52px]",s),...i,children:l})});r.Z=s},30951:function(e,r,o){var t=o(85893),l=o(67294),a=o(86010);let s=l.forwardRef(function(e,r){let{as:o="button",children:l,className:s,isOnlyIcon:d=!1,size:n="medium",...i}=e;return(0,t.jsx)(o,{ref:r,className:(0,a.Z)("flex justify-center select-none items-center rounded-full  text-shadow-black border border-shadow-black-80 bg-white","active:bg-shadow-black-3 active:border-shadow-black hover:bg-shadow-black-3","disabled:opacity-50 disabled:hover:bg-white disabled:active:bg-white","small"===n&&"text-button-sm",!d&&"small"===n&&"py-3 px-5",d&&"small"===n&&"h-9 w-9","medium"===n&&"text-button-lg",!d&&"medium"===n&&"h-[52px] px-7",d&&"medium"===n&&"h-[52px] w-[52px]",s),...i,children:l})});r.Z=s},16937:function(e,r,o){o.d(r,{J:function(){return l},Z:function(){return a}});var t=o(85893);let l=["bars","ban-smoking","bed-front","bookmark","calendar","check","chevron-down","chevron-left","chevron-right","chevron-up","circle-check","circle-exclamation","circle-exclamation-bis","circle-info","circle-question","circle-xmark","city","clock","credit-card","database","envelope","exclamation","eye","file-magnifying-glass","gear","gift","globe","heart","house","info","location-arrow","location-crosshairs","location-dot","magnifying-glass","map","minus","phone","plane","plus","question","share","sliders","square-key","star","train","train-subway","user","xmark","solid-apple","solid-bookmark","solid-calendar","solid-circle-calendar","solid-circle-check-2","solid-circle-check","solid-circle-envelope","solid-circle-exclamation","solid-circle-exclamation-black","solid-circle-exclamation-bis","solid-circle-info-2","solid-circle-info","solid-circle-question","solid-circle-magnifying-glass","solid-circle-location-dot","solid-circle-xmark","solid-clock","solid-comment-check","solid-comment-dots","solid-compass","solid-copy","solid-envelope","solid-eye","solid-eye-slash","solid-facebook","solid-facebook-messenger","solid-gear","solid-google","solid-grid","solid-heart","solid-heart-reflection","solid-house","solid-house-bis","solid-instagram","solid-key-tag","solid-linkedin","solid-location-arrow","solid-location-dot","solid-pause","solid-play","solid-phone","solid-star","solid-tiktok","solid-twitter","solid-user","solid-whatsapp","solid-x","solid-youtube"];function a(e){let{id:r,...o}=e;return(0,t.jsx)("svg",{...o,children:(0,t.jsx)("use",{href:"/icons.sprite.svg#".concat(r)})})}},26085:function(e,r,o){o.d(r,{Z:function(){return a}});var t=o(85893);o(67294);var l=o(86010);function a(e){let{size:r="medium",children:o,className:a}=e;return(0,t.jsx)("div",{className:(0,l.Z)("inline-flex justify-center items-center rounded-full whitespace-nowrap","small"===r&&"h-[22px] px-[10px] caption-sm-focus","medium"===r&&"h-7 px-[14px] caption-md-focus","large"===r&&"h-[30px] px-[14px] text-lg font-bold",a),children:o})}},48098:function(e,r,o){var t=o(85893),l=o(67294),a=o(86010);r.Z=l.forwardRef(function(e,r){let{small:o,className:l,...s}=e;return(0,t.jsx)("input",{ref:r,type:"checkbox",className:(0,a.Z)("grid cursor-pointer select-none appearance-none place-content-center rounded-5 border-2 border-shadow-black-20 shrink-0","hover:bg-[rgba(110,105,172,0.1)] hover:ring-4 hover:ring-[rgba(110,105,172,0.1)] focus:bg-[rgba(110,105,172,0.1)] focus:outline-none focus:ring-4 focus:ring-[rgba(110,105,172,0.1)]",'before:scale-0 before:bg-[CanvasText] before:shadow-[inset_1em_1em_rgba(255,255,255,1)] before:transition-transform before:content-[""]',"checked:border-purple-dawn checked:bg-purple-dawn checked:before:scale-100 checked:hover:bg-purple-dawn checked:focus:bg-purple-dawn","disabled:opacity-40",!o&&"h-5 w-5 before:h-3 before:w-3",o&&"h-4 w-4 before:h-2 before:w-2",l),...s})})},39057:function(e,r,o){var t=o(85893),l=o(67294),a=o(86010),s=o(16937);r.Z=l.forwardRef(function(e,r){let{label:o,error:d,hint:n,isValid:i,name:c,id:u,className:b,...h}=e,[m,f]=(0,l.useState)(!1);return(0,t.jsxs)("div",{className:b,children:[(0,t.jsx)("label",{htmlFor:u,className:(0,a.Z)("mb-2 block caption-md ",!h.disabled&&"text-shadow-black-80",h.disabled&&"text-shadow-black-40"),children:o}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{ref:r,type:m?"text":"password",name:c,id:u,className:(0,a.Z)("mb-2 h-12 w-full rounded-full border border-shadow-black-20 px-5 z-25 bg-transparent text-base bg-white","focus:border-2 focus:border-shadow-black-80","hover:border-2 hover:border-shadow-black-40","disabled:focus:border disabled:hover:border disabled:hover:border-shadow-black-20 disabled:focus:border-shadow-black-20 disabled:text-shadow-black-40",!!d&&"border-2 focus:border-2 hover:border-2 border-watermeloon focus:border-watermeloon hover:border-watermeloon",i&&"border-2 focus:border-2 hover:border-2 border-smart-blue focus:border-smart-blue hover:border-smart-blue"),...h}),(0,t.jsx)("button",{type:"button",onClick:()=>f(!m),className:"absolute top-1/2 -translate-y-1/2 right-3 -mt-1 text-shadow-black text-xl z-0 focus:border-2 focus:border-shadow-black-80 p-2 rounded-full",children:m?(0,t.jsx)(s.Z,{id:"solid-eye",className:"w-6 h-6"}):(0,t.jsx)(s.Z,{id:"solid-eye-slash",className:"w-6 h-6"})})]}),n&&!d&&(0,t.jsx)("div",{className:"caption-md text-shadow-black-40",children:n}),!!d&&(0,t.jsxs)("div",{className:"caption-md text-watermeloon flex items-center",children:[(0,t.jsx)(s.Z,{id:"solid-circle-exclamation-bis",className:"h-4 w-4 mr-1 shrink-0"}),d]})]})})},60956:function(e,r,o){var t=o(85893),l=o(67294),a=o(86010),s=o(16937);r.Z=l.forwardRef(function(e,r){let{label:o,inputClassName:l,error:d,hint:n,isValid:i,name:c,id:u,className:b,...h}=e;return(0,t.jsxs)("div",{className:b,children:[(0,t.jsx)("label",{htmlFor:u,className:(0,a.Z)("mb-2 block caption-lg",!h.disabled&&"text-shadow-black-80",h.disabled&&"text-shadow-black-40"),children:o}),(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)("input",{ref:r,type:"text",name:c,id:u,className:(0,a.Z)("mb-2 h-12 w-full rounded-full border border-shadow-black-20 px-5 z-25 bg-transparent text-button-lg bg-white","focus:border-2 focus:border-shadow-black-80","hover:border-2 hover:border-shadow-black-40","disabled:focus:border disabled:hover:border disabled:hover:border-shadow-black-20 disabled:focus:border-shadow-black-20 disabled:text-shadow-black-40",l,!!d&&"border-2 focus:border-2 hover:border-2 border-watermeloon focus:border-watermeloon hover:border-watermeloon",i&&"border-2 focus:border-2 hover:border-2 border-smart-blue focus:border-smart-blue hover:border-smart-blue"),...h})}),n&&!d&&(0,t.jsx)("div",{className:"caption-md text-shadow-black-40",children:n}),!!d&&"string"==typeof d&&(0,t.jsxs)("div",{className:"caption-md text-watermeloon flex items-center",children:[(0,t.jsx)(s.Z,{id:"solid-circle-exclamation-bis",className:"h-4 w-4 mr-1"}),d]})]})})},49630:function(e,r,o){o.r(r);var t=o(85893),l=o(67294),a=o(86010),s=o(71136),d=o(76439);o(13973);var n=o(16937);r.default=e=>{let{country:r,onChange:o,onBlur:i,inputProps:c,label:u,hint:b,value:h,preferredCountries:m,error:f,disabled:p,inputRef:x}=e,[w,v]=(0,l.useState)(h||void 0),[g,k]=(0,l.useState)(!1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("label",{className:"mb-2 block caption-md text-shadow-black-80",children:u}),(0,t.jsx)(s.Z,{disabled:p,inputProps:c,containerClassName:(0,a.Z)("intl-tel-input mb-2 h-12 w-full rounded-full border-shadow-black-20 bg-white",p&&"opacity-40"),inputClassName:(0,a.Z)("h-full w-full rounded-full border border-shadow-black-20 px-5 z-25 text-base bg-white","focus:border-2 focus:border-shadow-black-80","hover:border-2 hover:border-shadow-black-40","disabled:focus:border disabled:hover:border disabled:hover:border-shadow-black-20 disabled:focus:border-shadow-black-20 disabled:text-shadow-black-40",(!!g||!!f)&&"border-watermeloon border-2 focus:border-watermeloon"),fieldName:"phoneNumber",autoComplete:"tel-national",preferredCountries:m,onPhoneNumberChange:(e,r,t,l)=>{let a=(0,d.y)(l,t.iso2);k(!a),o&&o(l,a),v(l)},onPhoneNumberBlur:(e,r,o,t)=>{i&&i((0,d.y)(t,o.iso2))},onSelectFlag:(e,r,t)=>{let l=(0,d.y)(t,r.iso2);k(!l),o&&o(t,l),v(t)},defaultCountry:null==r?void 0:r.toLowerCase(),defaultValue:w,format:!0,autoPlaceholder:!0,ref:x}),b&&!f&&(0,t.jsx)("div",{className:"caption-md text-shadow-black-40",children:b}),(!!g||!!f)&&(0,t.jsxs)("div",{className:"caption-md text-watermeloon flex items-center",children:[!!f&&(0,t.jsx)(n.Z,{id:"solid-circle-exclamation-bis",className:"h-4 w-4 mr-1"}),f]})]})}},27916:function(e,r,o){var t=o(85893),l=o(67294),a=o(86010),s=o(16937);r.Z=l.forwardRef(function(e,r){let{label:o,error:l,hint:d,isValid:n,name:i,id:c,className:u,children:b,...h}=e;return(0,t.jsxs)("div",{className:u,children:[(0,t.jsxs)("label",{htmlFor:c,className:"mb-2 block caption-lg text-shadow-black-80",children:[o,h.required&&"*"]}),(0,t.jsxs)("div",{className:"inline-block relative w-full",children:[(0,t.jsx)("select",{ref:r,type:"text",name:i,id:c,className:(0,a.Z)("block border-shadow-black-20 w-full rounded-full h-12 appearance-none bg-white border pl-[22px] pr-10 cursor-pointer outline-none",!l&&"focus:border focus:border-shadow-black-80 hover:border hover:border-shadow-black-40","disabled:opacity-40 disabled:hover:border-none disabled:focus:border-none",l&&"border-2 hover:border-2 focus:border-2 border-watermeloon focus:border-watermeloon hover:border-watermeloon ",n&&"border-2 hover:border-2 focus:border-2 border-smart-blue focus:border-smart-blue hover:border-smart-blue "),...h,children:b}),(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pl-2 pr-[22px] text-shadow-black-80",children:(0,t.jsx)(s.Z,{id:"chevron-down",className:"h-4 w-4"})})]}),d&&!l&&(0,t.jsx)("div",{className:"text-shadow-black-40 caption-md mt-2",children:d}),l&&(0,t.jsxs)("span",{className:"caption-md text-watermeloon flex items-center mt-2",children:[(0,t.jsx)(s.Z,{id:"solid-circle-exclamation-bis",className:"h-4 w-4 mr-1"}),l]})]})})}}]);
var __fstrzSep="";
/*! https%3A%2F%2Fde.dayuse.ch%2F_next%2Fstatic%2Fchunks%2F4849-7fae546b6e5b9a84.js */
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="8e01eb74-63a8-4224-af99-35e8038babe8",e._sentryDebugIdIdentifier="sentry-dbid-8e01eb74-63a8-4224-af99-35e8038babe8")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4849],{7187:function(e,s,a){"use strict";a.d(s,{Z:function(){return i}});var r=a(85893),t=a(25675),l=a.n(t);let n=e=>{let{src:s,width:a}=e;return"https://media.dayuse.com".concat(s.startsWith("/")?"":"/").concat(s,"?frz-w=").concat(a,"&frz-fit=cover")};function i(e){let{alt:s}=e;return(0,r.jsx)(l(),{...e,loader:n,alt:s})}},80557:function(e,s,a){"use strict";a.d(s,{Z:function(){return m}});var r=a(85893),t=a(87536),l=a(86896),n=a(44012),i=a(29082),o=a(60956),c=a(10253);let d={required:{value:!0,message:"common.form.error.email.required"},pattern:{value:a(9632).iN,message:"common.form.error.email.invalid"}};function m(e){let{onSubmit:s,isLoading:a,isDisabled:m}=e,{register:u,handleSubmit:h,formState:x}=(0,t.cI)({mode:"all",reValidateMode:"onChange"}),f=(0,l.Z)();return(0,r.jsxs)("form",{onSubmit:h(s),className:"flex flex-col space-y-6 mb-6",children:[(0,r.jsx)("div",{children:(0,r.jsx)(o.Z,{...u("email",d),label:f.formatMessage({id:"common.form.label.email"}),type:"email",placeholder:"name@example.com",autoComplete:"email username",error:x.errors.email&&f.formatMessage({id:x.errors.email.message}),disabled:m})}),(0,r.jsxs)(i.Z,{className:"h-12",type:"submit",disabled:m||!x.isValid,children:[a&&(0,r.jsx)(c.Z,{}),!a&&(0,r.jsx)(n.Z,{id:"common.send"})]})]})}},10253:function(e,s,a){"use strict";a.d(s,{Z:function(){return i}});var r=a(85893),t=a(86010),l=a(5033),n=a.n(l);function i(){return(0,r.jsxs)("div",{className:"flex space-x-1",children:[(0,r.jsx)("span",{className:(0,t.Z)(n().loader,n().loader1)}),(0,r.jsx)("span",{className:(0,t.Z)(n().loader,n().loader2)}),(0,r.jsx)("span",{className:(0,t.Z)(n().loader,n().loader3)})]})}},63704:function(e,s,a){"use strict";var r=a(85893);a(67294),s.Z=function(e){return(0,r.jsx)("svg",{"data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 481.62 100",width:"1em",height:"1em",fill:"currentColor",...e,children:(0,r.jsx)("path",{d:"M481.62 97.76v-18.1H437.3V58.77h35.49v-18H437.3V20.2h43.76V2.1h-64.93v95.66zm-156-22.16c6 15.42 20.9 24.26 40.68 24.26 22.2 0 35.7-11.36 35.7-30.29 0-14.59-8.84-24.69-28.19-28.48l-13.51-2.66c-7.85-1.54-11.78-5.19-11.78-10 0-6.73 5.61-10.66 15-10.66s16.27 4.77 20.34 13.33L401 21.74C395.93 8.13 382 0 363.39 0c-21.6 0-35.76 10.8-35.76 29.87 0 14.73 9.11 24.27 27.2 27.77l13.61 2.67C376.85 62 381.06 65.5 381.06 71c0 7-5.61 11.08-14.86 11.08-10.66 0-18.1-5.75-23-16.27zM275.17 100C298.73 100 313 86.4 313 62.55V2.1h-20v59.47c0 12.62-6.59 19.5-17.39 19.5s-17.39-6.88-17.39-19.5V2.1H237v60.45C237 86.4 251.47 100 275.17 100M160.73 2.1l34.64 50.35v45.31h21.18V47L185.69 2.1zM130.43 24l12.77 37.71h-25.53zm47.13 73.78L142.64 2.1h-24.13L83.59 97.76h21.88l6.17-18.24h37.59l6.17 18.24zM21.18 20.34H32c18.51 0 28.47 10.52 28.47 29.59S50.49 79.52 32 79.52H21.18zm11.36 77.42c32 0 49.51-17 49.51-47.83S64.52 2.1 32.54 2.1H0v95.66z"})})}},72162:function(e,s,a){"use strict";a.d(s,{Z:function(){return c}});var r=a(85893),t=a(31955),l=a(86896),n=a(63290),i=a(27916),o=a(36203);function c(){let[e,s]=(0,n.U8)(),a=(0,l.Z)();return(0,r.jsx)(i.Z,{label:a.formatMessage({id:"common.devise"}),value:e,onChange:e=>{let a=e.target.value;s(a),o.sy(a),t.Z.set("currency",a,{path:"/"})},children:n.Mf.map(e=>(0,r.jsx)("option",{value:e,children:e},"select-"+e))})}},82808:function(e,s,a){"use strict";a.d(s,{Z:function(){return i}});var r=a(85893),t=a(41664),l=a.n(t),n=a(63704);function i(e){let{className:s}=e;return(0,r.jsxs)(l(),{href:"/",locale:!1,className:s,children:[(0,r.jsx)("span",{className:"sr-only",children:"Dayuse"}),(0,r.jsx)(n.Z,{height:"30",width:"120"})]})}},39119:function(e,s,a){"use strict";var r=a(85893),t=a(67294),l=a(44012),n=a(80052),i=a(86010),o=a(2666),c=a(16937),d=a(89762),m=a(11163);s.Z=e=>{let{className:s,children:a}=e,u=(0,d.t)(),h=(0,m.useRouter)(),x=(0,t.useMemo)(()=>{let e,s;return"/s/[[...slug]]"===h.pathname&&(e="search",s=Array.isArray(h.query.slug)?"/"+h.query.slug.join("/"):"/"+h.query.slug),"/l/[slug]"===h.pathname&&(e="landing",s=h.query.slug),"/hotels/[...slug]"===h.pathname&&(e="hotel",s=Array.isArray(h.query.slug)?"/"+h.query.slug.join("/"):"/"+h.query.slug),{type:e,slug:s}},[h]),{data:f}=(0,o.IL)(u.host),{data:j}=(0,o.uv)(u.host,x.slug,x.type);return f&&0===f.length&&j&&0===j.length?null:(0,r.jsxs)(n.J2,{className:(0,i.Z)(s),children:[a,(0,r.jsx)(n.J2.Panel,{unmount:!1,className:"absolute z-10 inset-0 md:mt-6 p-8 rounded-10 shadow-100 bg-white md:right-auto  md:top-auto md:bottom-auto md:-left-[270px] flex md:flex-row flex-col overflow-auto md:overflow-visible",children:e=>{let{close:s}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("button",{onClick:()=>s(),className:"absolute md:hidden left-0 pl-6 z-10 flex items-center title2",children:[(0,r.jsx)(c.Z,{id:"chevron-left",className:"w-5 h-5 mr-4"}),(0,r.jsx)("span",{children:(0,r.jsx)(l.Z,{id:"common.destination"})})]}),f&&f.length>0&&(0,r.jsxs)("div",{className:"relative mb-5 lg:mb-0 lg:mr-10 lg:w-64 lg:shrink-0",children:[(0,r.jsx)("div",{className:"title3 whitespace-nowrap mt-10 md:mt-0 mb-4",children:(0,r.jsx)(l.Z,{id:"common.header.topCities.title",values:{country:u.country}})}),(0,r.jsx)("ul",{className:"flex flex-wrap flex-col md:flex-row",children:f.map((e,s)=>(0,r.jsx)("li",{className:"w-1/2 py-1",children:(0,r.jsx)("a",{href:e.url,className:"md:active:text-black hover:underline",children:e.title})},"city-".concat(e.title,"-").concat(s)))})]}),j&&Array.isArray(j)&&j.length>0&&(0,r.jsxs)("div",{className:"relative md:min-w-96",children:[(0,r.jsx)("div",{className:"title3 whitespace-nowrap mb-4",children:(0,r.jsx)(l.Z,{id:"common.header.landingPages.title"})}),(0,r.jsx)("ul",{className:"grid grid-cols-1 md:grid-cols-2 gap-2",children:j.map((e,s)=>(0,r.jsx)("li",{className:"py-1",children:(0,r.jsx)("a",{href:e.url,className:"md:active:text-black hover:underline",children:e.title})},"landingPages-".concat(e.id,"-").concat(s)))})]})]})}})]})}},84849:function(e,s,a){"use strict";a.d(s,{Z:function(){return q}});var r=a(85893),t=a(67294),l=a(41664),n=a.n(l),i=a(44012),o=a(86010),c=a(30497),d=a(80052),m=a(16937),u=a(62511),h=a(89762),x=a(91023),f=a(82808),j=a(63290),p=a(37885),v=a(72162);function g(){let{lang:e}=(0,c.Jr)(),[s]=(0,j.U8)();return(0,r.jsxs)(d.J2,{className:"relative md:block hidden",children:[(0,r.jsx)(d.J2.Button,{as:t.Fragment,children:(0,r.jsxs)(u.Z,{size:"small",children:[(0,r.jsx)("span",{className:"uppercase mx-1",children:e}),(0,r.jsx)("span",{children:"•"}),(0,r.jsx)("span",{className:"mx-1",children:s})]})}),(0,r.jsxs)(d.J2.Panel,{className:"absolute z-10 mt-3  p-4 rounded-10 shadow-100 bg-white w-60 right-0 space-y-4",children:[(0,r.jsx)(p.Z,{}),(0,r.jsx)(v.Z,{})]})]})}var b=a(88767),w=a(11163),N=a(33859),y=a(45673),Z=a(82856),k=a(96118),C=a(39266),M=a(26085);function _(e){let{headerHasChildren:s}=e,{user:a}=(0,Z.Z)(),[l,d]=(0,t.useState)(!1),{lang:u}=(0,c.Jr)(),f=(0,h.t)(),j=(0,b.useQueryClient)(),p=(0,w.useRouter)(),v=async()=>{200===(await fetch("/api/logout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiToken:btoa("".concat(a.apiToken,":").concat(a.customer.accountId))})}).then(e=>e.json())).status&&(await j.invalidateQueries("user"),p.push("/"))};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(N.v2,{className:"relative",as:"div",children:[(0,r.jsx)(N.v2.Button,{as:t.Fragment,children:(0,r.jsxs)("button",{type:"button",className:"flex items-center active:shadow-100 rounded-full h-12 pl-2 pr-4 border border-shadow-black-10 hover:border-shadow-black-80",children:[(0,r.jsxs)("span",{className:(0,o.Z)("h-9 w-9 rounded-full flex items-center justify-center uppercase",(null==a?void 0:a.customer)&&(0,k.Z)(a.customer.firstName),!(null==a?void 0:a.customer)&&"bg-shadow-black-40"),children:[!(null==a?void 0:a.customer)&&(0,r.jsx)(m.Z,{id:"solid-user",className:"h-6 w-6 text-white fill-current"}),(0,r.jsx)("span",{className:"font-bold",children:(null==a?void 0:a.customer)&&a.customer.firstName[0]})]}),(0,r.jsx)(m.Z,{id:"bars",className:"h-5 w-5 ml-2"})]})}),(0,r.jsxs)(N.v2.Items,{className:"absolute right-0 mt-2 origin-top-right bg-white shadow-100 rounded-10 flex flex-col overflow-hidden z-30",children:[!(null==a?void 0:a.customer)&&(0,r.jsxs)(t.Fragment,{children:[(0,r.jsx)(N.v2.Item,{children:e=>{let{active:s}=e;return(0,r.jsx)(z,{active:s,as:"button",onClick:()=>{d(!0)},children:(0,r.jsx)(i.Z,{id:"common.login"})})}}),(0,r.jsx)(N.v2.Item,{children:e=>{let{active:s}=e;return(0,r.jsx)(n(),{href:"/booking/cancel",passHref:!0,legacyBehavior:!0,locale:!1,children:(0,r.jsx)(z,{active:s,children:(0,r.jsx)(i.Z,{id:"common.accessBooking"})})})}}),(0,r.jsx)(N.v2.Item,{children:e=>{let{active:s}=e;return(0,r.jsx)(n(),{href:"/account/favorites",passHref:!0,legacyBehavior:!0,locale:!1,children:(0,r.jsx)(z,{active:s,children:(0,r.jsx)(i.Z,{id:"common.myFavorites"})})})}}),f.daydream.isActive&&(0,r.jsx)(N.v2.Item,{children:(0,r.jsx)(z,{children:(0,r.jsx)(n(),{href:f.daydream.sideMenuSlug,className:"flex gap-x-1.5 items-center",children:(0,r.jsx)(i.Z,{id:"common.daydreamExperience.title"})})})}),f.promoCode.promoCodeAvailable&&(0,r.jsx)(N.v2.Item,{children:(0,r.jsx)(z,{children:(0,r.jsxs)(n(),{href:"/gift-card",className:"flex gap-x-1.5 items-center",children:[(0,r.jsx)(i.Z,{id:"tunnel.payment.giftcard.label"}),(0,r.jsx)(M.Z,{className:"gradient-account0 text-white",size:"small",children:(0,r.jsx)(i.Z,{id:"common.pin.new"})})]})})})]}),!!(null==a?void 0:a.customer)&&(0,r.jsxs)(t.Fragment,{children:[(0,r.jsx)(N.v2.Item,{children:e=>{let{active:s}=e;return(0,r.jsx)(n(),{href:"/account",passHref:!0,legacyBehavior:!0,locale:!1,children:(0,r.jsx)(z,{active:s,children:(0,r.jsx)(i.Z,{id:"common.label.myaccount"})})})}}),(0,r.jsx)(N.v2.Item,{children:e=>{let{active:s}=e;return(0,r.jsx)(n(),{href:"/account/bookings",passHref:!0,legacyBehavior:!0,locale:!1,children:(0,r.jsx)(z,{active:s,children:(0,r.jsx)(i.Z,{id:"common.myBookings"})})})}}),(0,r.jsx)(N.v2.Item,{children:e=>{let{active:s}=e;return(0,r.jsx)(n(),{href:"/account/favorites",passHref:!0,legacyBehavior:!0,locale:!1,children:(0,r.jsx)(z,{active:s,children:(0,r.jsx)(i.Z,{id:"common.myFavorites"})})})}}),f.daydream.isActive&&(0,r.jsx)(N.v2.Item,{children:(0,r.jsx)(z,{children:(0,r.jsx)(n(),{href:f.daydream.sideMenuSlug,className:"flex gap-x-1.5 items-center",children:(0,r.jsx)(i.Z,{id:"common.daydreamExperience.title"})})})}),f.promoCode.promoCodeAvailable&&(0,r.jsx)(N.v2.Item,{children:(0,r.jsx)(z,{children:(0,r.jsxs)(n(),{href:"/gift-card",className:"flex gap-x-1.5 items-center",children:[(0,r.jsx)(i.Z,{id:"tunnel.payment.giftcard.label"}),(0,r.jsx)(M.Z,{className:"gradient-account0 text-white",size:"small",children:(0,r.jsx)(i.Z,{id:"common.pin.new"})})]})})}),(0,r.jsx)(N.v2.Item,{children:e=>{let{active:s}=e;return(0,r.jsx)(z,{as:"button",type:"button",onClick:v,active:s,children:(0,r.jsx)(i.Z,{id:"common.logOut"})})}})]}),(0,r.jsx)(y.Z,{}),(0,r.jsx)(N.v2.Item,{children:e=>{let{active:a}=e;return(0,r.jsx)(n(),{href:"/how-it-works",passHref:!0,legacyBehavior:!0,locale:!1,children:(0,r.jsx)(z,{active:a,className:(0,o.Z)(s&&"xl:hidden block",!s&&"md:hidden block"),children:(0,r.jsx)(i.Z,{id:"header.how"})})})}}),(0,r.jsx)(N.v2.Item,{children:e=>{var a;let{active:t}=e;return(0,r.jsx)(z,{className:(0,o.Z)(s&&"lg:hidden block",!s&&"md:hidden block"),active:t,href:"https://support.dayuse.com/hc/".concat(null!==(a=x.v[u])&&void 0!==a?a:"en-us"),children:(0,r.jsx)(i.Z,{id:"header.help"})})}}),(0,r.jsx)(N.v2.Item,{children:e=>{let{active:a}=e;return(0,r.jsx)(z,{active:a,className:(0,o.Z)(s&&"block",!s&&"md:hidden block"),href:"tel:".concat(f.telIntl),children:f.tel})}})]})]}),(0,r.jsx)(C.Z,{isOpen:l,onClose:()=>{d(!1)}})]})}let z=t.forwardRef(function(e,s){let{as:a="a",children:t,className:l,active:n,...i}=e;return(0,r.jsx)(a,{ref:s,className:(0,o.Z)("whitespace-nowrap px-8 py-4 cursor-pointer text-left text-xs/3 hover:bg-shadow-black-10",n&&"bg-shadow-black-20",l),...i,children:t})});var S=a(39119),I=a(88936);function q(e){var s;let{children:a,fullWidth:l,border:j,hiddenMobile:p,sticky:v=!0}=e,b=(0,h.t)(),{lang:w}=(0,c.Jr)(),N=!!a,[y,Z]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{if(v&&"IntersectionObserver"in window){let e=document.querySelector("header");e&&new IntersectionObserver(e=>{let[s]=e;s.target.classList.toggle("shadow-md",s.intersectionRatio<1),s.target.classList.toggle("bg-white",s.intersectionRatio<1)},{threshold:[1]}).observe(e)}},[v]),(0,r.jsx)("header",{className:(0,o.Z)("z-40 h-20 w-full -top-[1px]",v&&"sticky",p&&"md:block hidden",j&&"border-b"),children:(0,r.jsxs)("div",{className:(0,o.Z)("flex items-center justify-between h-full",!l&&"ds-container",l&&"px-5"),children:[(0,r.jsxs)("div",{className:"flex flex-1 items-center justify-between md:justify-start",children:[(0,r.jsxs)("div",{className:"flex",children:[(0,r.jsx)("button",{className:"lg:hidden mr-4",onClick:()=>{Z(!0)},children:(0,r.jsx)(m.Z,{id:"bars",className:"h-6 w-6"})}),(0,r.jsx)(I.Z,{show:y,onClose:()=>{Z(!1)}}),(0,r.jsx)(f.Z,{className:"mr-4"})]}),(0,r.jsx)("div",{children:a})]}),(0,r.jsxs)("div",{className:"hidden lg:flex items-center",children:[(0,r.jsx)(S.Z,{className:"relative hidden md:block",children:(0,r.jsx)(d.J2.Button,{as:t.Fragment,children:(0,r.jsx)(u.Z,{size:"small",children:(0,r.jsx)(i.Z,{id:"common.destination"})})})}),(0,r.jsx)(n(),{href:"/how-it-works",locale:!1,passHref:!0,legacyBehavior:!0,children:(0,r.jsx)(u.Z,{as:"a",size:"small",className:(0,o.Z)(!N&&"md:block hidden",N&&"xl:block hidden"),children:(0,r.jsx)(i.Z,{id:"header.how"})})}),(0,r.jsx)(u.Z,{as:"a",href:"https://support.dayuse.com/hc/".concat(null!==(s=x.v[w])&&void 0!==s?s:"en-us"),size:"small",className:(0,o.Z)(!N&&"md:block hidden",N&&"xl:block hidden"),children:(0,r.jsx)(i.Z,{id:"header.help"})}),(0,r.jsx)(u.Z,{size:"small",className:(0,o.Z)(!N&&"md:block hidden",N&&"hidden"),children:"ko-KR"===b.locale?(0,r.jsx)("a",{href:"https://support.dayuse.com/hc/en-us/requests/new",children:(0,r.jsx)(i.Z,{id:"common.contactUs"})}):b.tel}),(0,r.jsx)(g,{}),(0,r.jsx)(_,{headerHasChildren:N})]})]})})}},37885:function(e,s,a){"use strict";a.d(s,{Z:function(){return c}});var r=a(85893),t=a(30497),l=a(86896),n=a(31955),i=a(27916),o=a(36203);function c(){let{lang:e,setLang:s}=(0,t.Jr)(),a=(0,l.Z)();return(0,r.jsx)(i.Z,{label:a.formatMessage({id:"common.language"}),value:e,onChange:e=>{let a=e.target.value;s(a),o.D0(a),n.Z.set("lang",a,{path:"/"})},children:t.mv.map(e=>(0,r.jsx)("option",{value:e,children:t._5[e]},"select-"+e))})}},90485:function(e,s,a){"use strict";a.d(s,{Z:function(){return x}});var r=a(85893),t=a(87536),l=a(86896),n=a(44012),i=a(29082),o=a(60956),c=a(39057),d=a(49377),m=a(10253);let u={required:{value:!0,message:"common.form.error.email.required"},pattern:{value:a(9632).iN,message:"common.form.error.email.invalid"}},h={required:{value:!0,message:"common.form.error.password.required"}};function x(e){let{onSubmit:s,onClickNewPassword:a,isLoading:x,isDisabled:f}=e,{register:j,handleSubmit:p,formState:v}=(0,t.cI)({mode:"all",reValidateMode:"onChange"}),g=(0,l.Z)();return(0,r.jsxs)("form",{onSubmit:p(s),className:"flex flex-col justify-between flex-1",children:[(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)(o.Z,{...j("email",u),label:g.formatMessage({id:"common.form.label.email"}),type:"email",placeholder:"name@example.com",autoComplete:"email username",error:v.errors.email&&g.formatMessage({id:v.errors.email.message}),disabled:f,className:"mb-4"}),(0,r.jsx)(c.Z,{...j("password",h),label:"".concat(g.formatMessage({id:"common.form.label.password"})),placeholder:"••••••••",autoComplete:"current-password",error:v.errors.password&&g.formatMessage({id:v.errors.password.message}),disabled:f,className:"mb-4"}),(0,r.jsx)(d.Z,{onClick:a,className:"flex mx-auto",type:"button",size:"small",underline:!0,children:(0,r.jsx)(n.Z,{id:"common.password.forgotten"})})]}),(0,r.jsxs)(i.Z,{className:"w-full",type:"submit",disabled:f||!v.isValid,children:[x&&(0,r.jsx)(m.Z,{}),!x&&(0,r.jsx)(n.Z,{id:"common.button.login.label"})]})]})}},39266:function(e,s,a){"use strict";a.d(s,{Z:function(){return J}});var r=a(85893),t=a(67294),l=a(88767),n=a(11163),i=a(86896),o=a(44012),c=a(86010),d=a(63132),m=a(58202),u=a(83161),h=a(30951),x=a(16937),f=a(30497),j=a(63290),p=a(64690),v=a(82856),g=a(89762),b=a(80557),w=a(85325),N=a(75123),y=a(36203),Z=a(65569),k=a(90485),C=a(87536),M=a(29082),_=a(60956),z=a(39057),S=a(49630),I=a(48098),q=a(9632),A=a(10253);let E={required:{value:!0,message:"common.field.required"}},L={required:{value:!0,message:"common.field.required"}},F={required:{value:!0,message:"common.form.error.email.required"},pattern:{value:q.iN,message:"common.form.error.email.invalid"}},D={required:{value:!0,message:"common.form.error.password.required"},minLength:{value:8,message:"common.form.register.password.rules.message"},pattern:{value:/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).*$/,message:"common.form.register.password.rules.message"}},V=["fr","us","gb","ca","hk","sg","au","de","it","ie","be","nl","ch","at","se","br","qa","bh"];function O(e){let{onSubmit:s,defaultCountryCode:a,isLoading:t,isDisabled:l}=e,{register:n,handleSubmit:c,formState:d,setError:m,clearErrors:u,control:h}=(0,C.cI)({mode:"all",reValidateMode:"onChange"}),x=(0,i.Z)();return(0,r.jsxs)("form",{className:"space-y-6",onSubmit:c(s),children:[(0,r.jsx)("div",{children:(0,r.jsx)(_.Z,{...n("firstname",L),disabled:l,label:x.formatMessage({id:"common.form.label.firstname"}),placeholder:x.formatMessage({id:"common.form.placeholder.firstname"}),autoComplete:"given-name",error:d.errors.firstname&&x.formatMessage({id:d.errors.firstname.message})})}),(0,r.jsx)("div",{children:(0,r.jsx)(_.Z,{...n("lastname",E),disabled:l,label:x.formatMessage({id:"common.form.label.lastname"}),placeholder:x.formatMessage({id:"common.form.placeholder.lastname"}),autoComplete:"family-name",error:d.errors.lastname&&x.formatMessage({id:d.errors.lastname.message})})}),(0,r.jsx)("div",{className:"col-span-2",children:(0,r.jsx)(_.Z,{...n("email",F),disabled:l,label:x.formatMessage({id:"common.form.label.email"}),type:"email",placeholder:"name@example.com",autoComplete:"email username",error:d.errors.email&&x.formatMessage({id:d.errors.email.message})})}),(0,r.jsxs)("div",{children:[(0,r.jsx)(C.Qr,{defaultValue:"",control:h,name:"phoneNumber",render:e=>{let{field:s}=e;return(0,r.jsx)(S.default,{inputProps:{name:"phoneNumber",required:!0},disabled:l,label:x.formatMessage({id:"common.form.label.phoneNumber"}),preferredCountries:V,country:a,onChange:(e,a)=>{s.onChange(e),a&&u("phoneNumber")},onBlur:e=>{e||m("phoneNumber",{type:"manual",message:x.formatMessage({id:"common.phonenumber.invalid"})})}})},rules:{required:"".concat(x.formatMessage({id:"common.field.required"}))}}),d.errors.phoneNumber&&(0,r.jsx)("div",{className:"text-red-600 text-xs mt-2",children:(0,r.jsx)(o.Z,{id:d.errors.phoneNumber.message})}),(0,r.jsx)("div",{className:"t text-focus-dark body4 mt-2",children:(0,r.jsx)(o.Z,{id:"common.register.phoneNumber.notice"})})]}),(0,r.jsx)("div",{children:(0,r.jsx)(z.Z,{...n("password",D),disabled:l,label:"".concat(x.formatMessage({id:"common.form.label.password"})),placeholder:"••••••••",autoComplete:"current-password",error:d.errors.password&&x.formatMessage({id:d.errors.password.message}),hint:x.formatMessage({id:"common.form.register.password.rules.hint"})})}),(0,r.jsxs)("label",{className:"flex body3 cursor-pointer",children:[(0,r.jsx)(I.Z,{...n("newsletterSubscription"),className:"shrink-0"}),(0,r.jsx)("span",{className:"ml-2",children:(0,r.jsx)(o.Z,{id:"common.checkbox.subscribe.consent"})})]}),(0,r.jsxs)(M.Z,{className:"w-full mt-6",type:"submit",disabled:l||!d.isValid,children:[t&&(0,r.jsx)(A.Z,{}),!t&&(0,r.jsx)(o.Z,{id:"common.button.register.label"})]}),(0,r.jsx)("p",{className:"body4 text-shadow-black-60",children:(0,r.jsx)(o.Z,{id:"tunnel.register.gdpr.notice_with_links",values:{link1:e=>(0,r.jsx)("a",{href:"/pages/dayuse/terms-privacy",target:"_blank",style:{textDecoration:"underline"},children:e}),link2:e=>(0,r.jsx)("a",{href:"/pages/dayuse/data-privacy",target:"_blank",style:{textDecoration:"underline"},children:e})}})})]})}var H=a(7187);function J(e){let{isOpen:s,onClose:a}=e,C=(0,g.t)(),M=(0,n.useRouter)(),{lang:_}=(0,f.Jr)(),[z]=(0,j.U8)(),S=(0,i.Z)(),[I,q]=(0,t.useState)("login"),{login:A}=(0,v.Z)(),E=(0,t.useRef)(null),L=(0,w.G)([N.md],[!1],!0);(0,t.useEffect)(()=>{s&&q("login")},[s]),(0,t.useEffect)(()=>{var e;null===(e=E.current)||void 0===e||e.scrollTo(0,0)},[I]);let F=(0,l.useMutation)(async e=>{let s=await A.mutateAsync(e);Z.A5(s,z,_),y.n$(s),Z.F2("see_bookings_form"),a(),L&&M.push("/account")}),D=(0,l.useMutation)(async e=>(await (0,d.P0o)({data:{emailAddress:e.email}}),e)),V=async e=>{let{firstname:s,lastname:r,email:t,password:l,phoneNumber:n,newsletterSubscription:i}=e;try{await (0,d.a$8)({data:{firstName:s,lastName:r,email:t,phoneNumber:n,password:l,language:S.locale,newsletterSubscription:i}})}catch(e){var o,c;if((null===(o=e.response)||void 0===o?void 0:o.data.detail.indexOf("api.user_account.email_address.already_exists"))!==-1)throw Error(S.formatMessage({id:"common.registration.email.already.exists"}));if((null===(c=e.response)||void 0===c?void 0:c.data.detail.indexOf("api.user_account.email_address.invalid"))!==-1)throw Error(S.formatMessage({id:"api.user_account.email_address.invalid"}));throw Error(e.message)}try{let e=await A.mutateAsync({email:t,password:l});y.n$(e),Z.A5(e,z,_)}catch(e){}a(),L&&M.push("/account")},J=(0,l.useMutation)(V);return(0,r.jsx)(m.u,{appear:!0,show:s,children:(0,r.jsxs)(u.Vq,{as:"div",className:"relative z-50",onClose:a,children:[(0,r.jsx)(m.x,{enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,r.jsx)("div",{className:"fixed inset-0 md:bg-black bg-white md:bg-opacity-25"})}),(0,r.jsx)("div",{ref:E,className:"fixed inset-0 overflow-y-auto",children:(0,r.jsx)("div",{className:"flex min-h-full md:items-center justify-center md:p-4",children:(0,r.jsx)(m.x,{as:t.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,r.jsxs)(u.EM,{className:(0,c.Z)("relative w-full transform overflow-hidden md:rounded-20 bg-white md:shadow-200 transition-all flex flex-col md:flex-row","login"===I&&"md:h-[600px] max-w-screen-lg","new-password"===I&&"md:h-[537px] max-w-[1058px]","register"===I&&"max-w-screen-lg"),children:["login"===I&&(0,r.jsxs)("button",{className:"absolute left-0 flex md:left-auto md:right-0 items-center top-0 md:m-6 m-2 p-4 z-30",onClick:a,children:[(0,r.jsx)(x.Z,{id:"xmark",className:"h-4 w-4 fill-current text-shadow-black md:text-white "}),(0,r.jsx)("span",{className:"text-button-sm md:sr-only ml-2",children:(0,r.jsx)(o.Z,{id:"common.close"})})]}),("new-password"===I||"register"===I)&&(0,r.jsxs)("button",{type:"button",className:"absolute left-0 flex items-center top-0 m-2 md:m-6 p-4 ",onClick:()=>{q("login")},children:[(0,r.jsx)(x.Z,{id:"chevron-left",className:"w-4 h-4 mr-2"}),(0,r.jsx)("span",{className:"text-button-sm md:text-button-lg",children:(0,r.jsx)(o.Z,{id:"common.back"})})]}),"login"===I&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"js-pre-login md:w-1/2 flex flex-col items-center justify-center flex-1 md:py-0 py-12",children:(0,r.jsxs)("div",{className:"flex flex-col md:h-[370px] pt-10 md:pt-0 w-80 relative",children:[(0,r.jsx)("h2",{className:"headline2-sm text-center mb-8",children:(0,r.jsx)(o.Z,{id:"common.connection"})}),(0,r.jsx)(k.Z,{onSubmit:F.mutate,onClickNewPassword:()=>{q("new-password")},isDisabled:F.isLoading,isLoading:F.isLoading}),F.isError&&F.error&&(0,r.jsx)("div",{className:"text-watermeloon text-center caption-lg absolute -bottom-[32px] w-full",children:(0,r.jsx)(o.Z,{id:"common.login.error"})})]})}),(0,r.jsxs)("div",{className:"relative md:w-1/2 text-white flex flex-col items-center justify-center flex-1 md:py-0 py-12",children:[(0,r.jsx)("div",{className:"absolute backdrop-opacity-80 backdrop-invert bg-black/50 z-0 top-0 bottom-0 w-full h-full",children:["en-SG","en-HK","zh-SG","zh-HK"].includes(C.locale)?(0,r.jsx)(H.Z,{className:"object-cover h-full opacity-50",src:"/background/connexion-asie-desktop.jpg",alt:"login background",height:600,width:512}):(0,r.jsx)(H.Z,{className:"object-cover h-full opacity-50",src:"/background/connexion-desktop.jpg",alt:"login background",height:600,width:512})}),(0,r.jsxs)("div",{className:"flex flex-col w-72 md:h-[370px] justify-between items-center z-30",children:[(0,r.jsx)("h2",{className:"headline2-sm text-center md:whitespace-nowrap mb-6",children:(0,r.jsx)(o.Z,{id:"common.auth.register.create.account"})}),(0,r.jsxs)("ul",{className:"space-y-6 mb-8 body3 focus",children:[(0,r.jsxs)("li",{className:"flex items-center",children:[(0,r.jsx)("span",{className:"h-5 w-5 flex items-center justify-center rounded-full bg-white mr-4 shrink-0",children:(0,r.jsx)(x.Z,{id:"check",className:"h-4 w-4 text-smart-blue fill-current"})}),(0,r.jsx)(o.Z,{id:"common.auth.register.reinsurance.1"})]}),(0,r.jsxs)("li",{className:"flex items-center",children:[(0,r.jsx)("span",{className:"h-5 w-5 flex items-center justify-center rounded-full bg-white mr-4 shrink-0",children:(0,r.jsx)(x.Z,{id:"check",className:"h-4 w-4 text-smart-blue fill-current"})}),(0,r.jsx)(o.Z,{id:"common.auth.register.reinsurance.2"})]}),(0,r.jsxs)("li",{className:"flex items-center",children:[(0,r.jsx)("span",{className:"h-5 w-5 flex items-center justify-center rounded-full bg-white mr-4 shrink-0",children:(0,r.jsx)(x.Z,{id:"check",className:"h-4 w-4 text-smart-blue fill-current"})}),(0,r.jsx)(o.Z,{id:"common.auth.register.reinsurance.3"})]})]}),(0,r.jsx)(h.Z,{className:"w-full",onClick:()=>{q("register")},children:(0,r.jsx)(o.Z,{id:"common.button.register.label"})})]})]})]}),"new-password"===I&&(0,r.jsx)("div",{className:"w-full h-full p-8 flex flex-col",children:(0,r.jsxs)("div",{className:"flex flex-col md:grid md:grid-cols-12 md:gap-6 flex-1",children:[(0,r.jsx)("div",{className:"md:col-span-5 self-center justify-self-center flex-1 flex justify-center items-center",children:(0,r.jsx)(p.Z,{width:"395",height:"200"})}),(0,r.jsxs)("div",{className:"md:col-span-7 self-center flex-1",children:[(0,r.jsx)("h2",{className:"title1 mb-8 text-center md:text-left",children:(0,r.jsx)(o.Z,{id:"common.password.forgotten"})}),(0,r.jsxs)("div",{className:"md:w-[330px]",children:[(0,r.jsx)("p",{className:"relative body3 text-shadow-black-80 mb-12 text-center md:text-left",children:(0,r.jsx)(o.Z,{id:"common.password.forgotten.notice"})}),(0,r.jsx)(b.Z,{onSubmit:D.mutate,isDisabled:D.isLoading,isLoading:D.isLoading}),D.isSuccess&&(0,r.jsx)("p",{className:"text-center text-smart-blue caption-lg",children:(0,r.jsx)(o.Z,{id:"common.password.forgotten.email.sent.to.reset",values:{email:D.data.email}})}),D.error&&(0,r.jsx)("div",{className:"text-watermeloon caption-lg",children:(0,r.jsx)(o.Z,{id:"common.login.error"})})]})]})]})}),"register"===I&&(0,r.jsx)("div",{className:"js-create-account w-full h-full px-8 pt-20 md:pb-10 flex flex-col",children:(0,r.jsxs)("div",{className:"flex-1 mb-4",children:[(0,r.jsx)("h2",{className:"title1 text-center mb-10",children:(0,r.jsx)(o.Z,{id:"common.auth.register.create.account"})}),(0,r.jsx)("div",{className:"md:w-96 m-auto",children:(0,r.jsx)(O,{onSubmit:J.mutate,defaultCountryCode:C.preferredCountryCode,isDisabled:J.isLoading,isLoading:J.isLoading})}),J.isError&&J.error&&(0,r.jsx)("div",{className:"text-watermeloon-120 text-center md:w-80 caption-lg mt-6 m-auto",ref:e=>{if(e&&E.current){let s=e.getBoundingClientRect(),a=e.offsetTop+s.height-window.screen.height;E.current.scroll({top:a,behavior:"smooth"}),E.current.scrollTo(0,a)}},children:J.error.message})]})})]})})})})]})})}},88936:function(e,s,a){"use strict";a.d(s,{Z:function(){return S}});var r,t=a(85893),l=a(11163),n=a(58202),i=a(83161),o=a(80052),c=a(30497),d=a(67294),m=a(44012),u=a(41664),h=a.n(u),x=a(86010),f=a(49377),j=a(16937),p=a(91023),v=a(89762),g=a(82856),b=a(96118),w=a(13261),N=a(37885),y=a(72162),Z=a(39266),k=a(39119),C=a(26085),M=a(94191);function _(){return(_=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var a=arguments[s];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e}).apply(null,arguments)}var z=function(e){return d.createElement("svg",_({xmlns:"http://www.w3.org/2000/svg",width:25,height:20,fill:"none"},e),r||(r=d.createElement("path",{fill:"#292935",stroke:"#fff",strokeWidth:.6,d:"M20.86 2H15.9c.4.6.66 1.29.74 2h4.23c.28 0 .55.1.74.3.2.18.3.44.3.7v1h-6.63c.37-.74.46-1.59.24-2.39a3.5 3.5 0 0 0-1.43-1.97 3.77 3.77 0 0 0-4.69.39c-.46.5-.82 1.07-1.07 1.69a5.6 5.6 0 0 0-1.07-1.7 3.75 3.75 0 0 0-5.18 0A3.42 3.42 0 0 0 1 4.5c0 .93.39 1.82 1.07 2.48 1 .67 2.18 1.02 3.4 1a16.7 16.7 0 0 0-2.79 3.57l1.86.9A15.2 15.2 0 0 1 8.32 8.2a15.2 15.2 0 0 1 3.77 4.26l1.86-.91A16.6 16.6 0 0 0 11.2 8h10.7v8c0 .27-.11.52-.3.7-.2.2-.47.3-.75.3H8.32c-.28 0-.54-.1-.74-.3a.98.98 0 0 1-.3-.7v-5.47c-.7.72-1.6 1.7-2.1 2.55V16c0 .8.33 1.56.92 2.12s1.39.88 2.22.88h12.54c.84 0 1.63-.32 2.22-.88S24 16.8 24 16V5c0-.8-.33-1.56-.92-2.12A3.2 3.2 0 0 0 20.86 2ZM3.55 5.56c-.3-.28-.46-.66-.46-1.06s.17-.78.46-1.06a1.6 1.6 0 0 1 2.22 0c.56.79.96 1.67 1.2 2.6a8.55 8.55 0 0 1-3.42-.48Zm9.54 0c-.78.32-1.61.47-2.45.44h-.96c.24-.91.64-1.78 1.19-2.56a1.57 1.57 0 0 1 1.1-.44 1.63 1.63 0 0 1 1.12.44 1.5 1.5 0 0 1 .46 1.06 1.44 1.44 0 0 1-.46 1.06Z"})))};function S(e){var s,a,r,u;let{show:_,onClose:S}=e,{lang:I}=(0,c.Jr)(),q=(0,v.t)(),{user:A}=(0,g.Z)(),[E,L]=(0,d.useState)(!1),F=(0,l.useRouter)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.u,{appear:!0,show:_,as:d.Fragment,children:(0,t.jsxs)(i.Vq,{as:"div",className:"relative z-50",onClose:S,children:[(0,t.jsx)(n.u.Child,{as:d.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,t.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-70"})}),(0,t.jsx)("div",{className:"fixed inset-0",children:(0,t.jsx)("div",{className:"flex min-h-full h-full text-center",children:(0,t.jsx)(n.x,{as:d.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 -translate-x-full",enterTo:"opacity-100 translate-x-0",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-x-0",leaveTo:"opacity-0 -translate-x-full",children:(0,t.jsx)(i.EM,{className:"max-w-[325px] w-full transform overflow-y-auto bg-white p-6 text-left shadow-xl transition-all",children:(0,t.jsxs)("div",{className:"flex flex-col justify-between",children:[(0,t.jsxs)("div",{children:[(null==A?void 0:A.customer)&&(0,t.jsx)(h(),{href:"/account",children:(0,t.jsxs)("div",{className:"flex items-center gap-4 mb-14",children:[(0,t.jsx)("div",{className:(0,x.Z)("w-14 h-14 rounded-full flex items-center justify-center font-bold text-2xl shrink-0 bg-shadow-black-60",(0,b.Z)(A.customer.firstName)),children:A.customer.firstName[0]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"title1",children:A.customer.firstName}),(0,t.jsx)(f.Z,{iconRight:"chevron-right",children:(0,t.jsx)(m.Z,{id:"common.view_profile"})})]})]})}),!(null==A?void 0:A.customer)&&(0,t.jsxs)("div",{className:"flex items-center gap-4 mb-14",children:[(0,t.jsx)("div",{className:(0,x.Z)("w-14 h-14 rounded-full flex items-center justify-center font-bold text-2xl shrink-0 bg-shadow-black-60"),children:(0,t.jsx)(j.Z,{id:"solid-user",className:"w-8 h-8 text-white"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"title1",children:(0,t.jsx)(m.Z,{id:"common.label.myaccount"})}),(0,t.jsx)(f.Z,{iconRight:"chevron-right",onClick:()=>{L(!0),window.requestAnimationFrame(S)},children:(0,t.jsx)(m.Z,{id:"common.login"})})]})]}),(0,t.jsx)("div",{children:(0,t.jsxs)("ul",{className:"body2 text-shadow-black-80",children:[(0,t.jsx)("li",{className:"mb-8",children:(0,t.jsxs)(h(),{href:"/",className:"flex items-center",onClick:"/"===F.pathname?S:void 0,children:[(0,t.jsx)(j.Z,{id:"/"===F.pathname?"solid-house":"house",className:"w-6 h-6"}),(0,t.jsx)("span",{className:"ml-4",children:(0,t.jsx)(m.Z,{id:"common.home"})})]})}),(0,t.jsx)("li",{className:"mb-8",children:(0,t.jsxs)(h(),{href:(null==A?void 0:A.customer)?"/account/bookings":"/booking/cancel",className:"flex items-center",onClick:"/account/bookings"===F.pathname||"/booking/cancel"===F.pathname?S:void 0,children:[(0,t.jsx)(j.Z,{id:"/account/bookings"===F.pathname||"/booking/cancel"===F.pathname?"solid-bookmark":"bookmark",className:"w-6 h-6"}),(0,t.jsx)("span",{className:"ml-4",children:(0,t.jsx)(m.Z,{id:"common.myBookings"})}),(null==A?void 0:null===(s=A.dataLayer)||void 0===s?void 0:s.comingReservationsCount)>0&&(0,t.jsx)(w.Z,{count:null==A?void 0:A.dataLayer.comingReservationsCount,size:"medium",className:"bg-midday-yellow ml-2"})]})}),(0,t.jsx)("li",{className:"mb-8",children:(0,t.jsxs)(h(),{href:"/account/favorites",className:"flex items-center",onClick:"/account/favorites"===F.pathname?S:void 0,children:[(0,t.jsx)(j.Z,{id:"/account/favorites"===F.pathname?"solid-heart-reflection":"heart",className:"w-6 h-6"}),(0,t.jsx)("span",{className:"ml-4",children:(0,t.jsx)(m.Z,{id:"common.myFavorites"})}),(null==A?void 0:null===(a=A.dataLayer)||void 0===a?void 0:a.favoriteHotelsCount)>0&&(0,t.jsx)(w.Z,{count:null==A?void 0:null===(r=A.dataLayer)||void 0===r?void 0:r.favoriteHotelsCount,size:"medium",className:"bg-midday-yellow ml-2"})]})}),q.daydream.isActive&&(0,t.jsx)("li",{className:"mb-8",children:(0,t.jsxs)(h(),{href:q.daydream.sideMenuSlug,className:"flex items-center",children:[(0,t.jsx)(M.Z,{}),(0,t.jsx)("span",{className:"ml-3.5",children:(0,t.jsx)(m.Z,{id:"common.daydreamExperience.title"})})]})}),q.promoCode.promoCodeAvailable&&(0,t.jsx)("li",{className:"mb-8",children:(0,t.jsxs)(h(),{href:"/gift-card",className:"flex items-center",children:[(0,t.jsx)(z,{}),(0,t.jsx)("span",{className:"ml-3.5",children:(0,t.jsx)(m.Z,{id:"tunnel.payment.giftcard.label"})}),(0,t.jsx)(C.Z,{className:"gradient-account0 text-white ml-2",size:"small",children:(0,t.jsx)(m.Z,{id:"common.pin.new"})})]})}),(0,t.jsx)("li",{className:"mb-8",children:(0,t.jsx)(k.Z,{children:(0,t.jsxs)(o.J2.Button,{className:"flex",children:[(0,t.jsx)(j.Z,{id:"location-dot",className:"w-6 h-6"}),(0,t.jsx)("span",{className:"ml-4",children:(0,t.jsx)(m.Z,{id:"common.destination"})})]})})}),(0,t.jsx)("li",{className:"mb-8",children:(0,t.jsxs)(h(),{href:"/how-it-works",className:"flex",onClick:"/how-it-works"===F.pathname?S:void 0,children:[(0,t.jsx)(j.Z,{id:"/how-it-works"===F.pathname?"solid-clock":"clock",className:"w-6 h-6"}),(0,t.jsx)("span",{className:"ml-4",children:(0,t.jsx)(m.Z,{id:"common.concept"})})]})}),(0,t.jsx)("li",{className:"mb-8",children:(0,t.jsxs)("a",{className:"flex",href:"https://support.dayuse.com/hc/".concat(null!==(u=p.v[I])&&void 0!==u?u:"en-us"),children:[(0,t.jsx)(j.Z,{id:"circle-exclamation-bis",className:"w-6 h-6"}),(0,t.jsx)("span",{className:"ml-4",children:(0,t.jsx)(m.Z,{id:"header.help"})})]})}),(0,t.jsxs)("li",{className:"flex mb-8",children:[(0,t.jsx)(j.Z,{id:"phone",className:"w-6 h-6"}),(0,t.jsx)("span",{className:"ml-4",children:"ko-KR"===q.locale?(0,t.jsx)("a",{href:"https://support.dayuse.com/hc/en-us/requests/new",children:(0,t.jsx)(m.Z,{id:"common.contactUs"})}):(0,t.jsx)("a",{href:"tel:".concat(q.telIntl),children:q.tel})})]})]})})]}),(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)(N.Z,{}),(0,t.jsx)(y.Z,{})]})]})})})})})]})}),(0,t.jsx)(Z.Z,{isOpen:E,onClose:()=>{L(!1),window.requestAnimationFrame(S)}})]})}},82856:function(e,s,a){"use strict";a.d(s,{Z:function(){return c}});var r=a(67294),t=a(11163),l=a(87066),n=a(88767),i=a(63635),o=a(63132);function c(){let{redirectTo:e,redirectIfFound:s=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=(0,t.useRouter)(),c=(0,n.useQueryClient)(),d=(0,n.useMutation)(e=>l.Z.post("/api/login",e).then(e=>e.data),{onSuccess:async e=>{c.setQueryData("user",()=>e);let s=await i._l();(0,o.dy9)({id:e.customer.id,apiToken:btoa("".concat(e.apiToken,":").concat(e.customer.accountId)),data:{hotelIds:s}}),i.V1()},onError:async e=>{}}),{data:m,isLoading:u}=(0,n.useQuery)("user",()=>fetch("/api/user").then(e=>e.json()),{refetchOnWindowFocus:!1});return(0,r.useEffect)(()=>{e&&(e&&m&&0===Object.entries(m).length&&!u||s)&&a.push(e)},[s,e,u,m,a]),{user:m,login:d}}},63635:function(e,s,a){"use strict";a.d(s,{IO:function(){return l},Ni:function(){return n},V1:function(){return o},_l:function(){return i}});var r=a(47519),t=a(31955);let l=e=>{var s;let a=JSON.parse(null!==(s=t.Z.get("dayuse.favorites.".concat(r.Vd.DAYUSE)))&&void 0!==s?s:"[]");return t.Z.set("dayuse.favorites.".concat(r.Vd.DAYUSE),JSON.stringify([...a,...e]),{expires:30}),Promise.resolve()},n=e=>{var s;let a=JSON.parse(null!==(s=t.Z.get("dayuse.favorites.".concat(r.Vd.DAYUSE)))&&void 0!==s?s:"[]");return t.Z.set("dayuse.favorites.".concat(r.Vd.DAYUSE),JSON.stringify(a.filter(s=>e!==s)),{expires:30}),Promise.resolve()},i=()=>{var e;return Promise.resolve(JSON.parse(null!==(e=t.Z.get("dayuse.favorites.".concat(r.Vd.DAYUSE)))&&void 0!==e?e:"[]"))},o=()=>{t.Z.remove("dayuse.favorites")}},91023:function(e,s,a){"use strict";a.d(s,{v:function(){return r}});let r={en:"en-us",fr:"fr",it:"it",de:"de",nl:"nl-nl","zh-HK":"zh-hk","zh-SG":"zh-sg",th:"en-us",es:"es","pt-BR":"pt"}},9632:function(e,s,a){"use strict";a.d(s,{Dl:function(){return r},iN:function(){return n},qO:function(){return l},we:function(){return t}});let r=2,t=3,l=6,n=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,63}$/i},96118:function(e,s,a){"use strict";function r(e){return"Anonyme"!==e&&e&&null!==e?"gradient-account"+[...e.toLowerCase()].reduce((e,s)=>e+s.charCodeAt(0),0)%10:"bg-shadow-black-20"}a.d(s,{Z:function(){return r}})},85325:function(e,s,a){"use strict";a.d(s,{G:function(){return l.Z},t:function(){return t}});var r=a(67294);function t(e,s){(0,r.useEffect)(()=>{let a=a=>{!(!e.current||e.current.contains(a.target))&&s&&s(a)};return document.addEventListener("mousedown",a),document.addEventListener("touchstart",a),()=>{document.removeEventListener("mousedown",a),document.removeEventListener("touchstart",a)}},[e,s])}var l=a(75123)},75123:function(e,s,a){"use strict";a.d(s,{lg:function(){return l},md:function(){return n},xl:function(){return t}});var r=a(67294);let t="(min-width: 1280px)",l="(min-width: 1024px)",n="(min-width: 768px)";s.Z=(e,s,a)=>{let t=e.map(e=>window.matchMedia(e)),l=()=>{var e;let r=t.findIndex(e=>e.matches);return null!==(e=null==s?void 0:s[r])&&void 0!==e?e:a},[n,i]=(0,r.useState)(a);return(0,r.useEffect)(()=>{let e=()=>{i(l)};return e(),t.forEach(s=>s.addListener(e)),()=>t.forEach(s=>s.removeListener(e))},[]),n}},5033:function(e){e.exports={loader:"DotLoader_loader__IGNpq",zoomin:"DotLoader_zoomin__DlgQ1",loader1:"DotLoader_loader1__pO4Gs",loader2:"DotLoader_loader2__4ykIw",loader3:"DotLoader_loader3__X2_YE"}}}]);