(("undefined"!=typeof self?self:this).webpackChunkroomstay=("undefined"!=typeof self?self:this).webpackChunkroomstay||[]).push([[446],{50683:function(e,t,n){"use strict";n.d(t,{O:function(){return r}}),n(67294);var r=function(){throw new Error("The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")}},71639:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(87462),a=n(67294),o=n(50221),i=n(14289),l=n(19874);function s(e,t){var n=0;return a.Children.map(e,(function(e){return a.isValidElement(e)?t(e,n++):e}))}var c=n(70885),u=a.createContext({activeKey:"",lastIndex:0,currentIndex:0,onChange:function(){}}),p=function(e){var t=e.children,n=e.defaultActiveKey,r=e.onChange,o=(0,a.useState)(""),i=(0,c.Z)(o,2),l=i[0],s=i[1],p=(0,a.useState)(0),d=(0,c.Z)(p,2),f=d[0],v=d[1],m=(0,a.useState)(0),b=(0,c.Z)(m,2),h=b[0],y=b[1],C={activeKey:l,lastIndex:f,currentIndex:h,onChange:function(e,t){null==r||r(e),v(h),y(t),s(e)}};return(0,a.useEffect)((function(){s(n)}),[]),a.createElement(u.Provider,{value:C},t)},d=n(94184),f=n.n(d),v=n(89250),m=n(79655),b=n(30584),h=n(97754),y=function(e){var t=e.index,n=e.title,r=e.navPath,o=e.disabled,i=e.preventScrollTop;if(!n)return null;var l=(0,v.TH)(),s=(0,v.s0)(),c=(0,a.useContext)(u),p={pathname:r,search:l.search};return a.createElement("li",null,a.createElement(m.OL,{to:p,state:{preventScrollTop:i},className:function(e){var t=e.isActive;return f()("c-nav-item",{active:t,disabled:o})},end:!0,onClick:function(e){e.preventDefault(),o||(s(p,{state:{preventScrollTop:i}}),c.onChange(r,t))}},a.createElement("span",{className:f()("c-nav-link")},a.createElement(b.ZP,{color:h.Il.DarkGrey,bold:!0},n))))},C=n(4942),w=n(88144);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){(0,C.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e){var t=e.children,n=(0,a.useContext)(u),r=(0,v.TH)(),o=(0,w.Yz)(n.activeKey,{from:{opacity:0,position:"absolute"},to:{opacity:1,position:"relative"},enter:{opacity:1,position:"relative"},leave:{opacity:0,position:"absolute"},config:{friction:25}}),i=t[0].props.navPath;return a.createElement("div",{className:"u-pos-rel"},o((function(e){return a.createElement(w.q.div,{style:g({left:0,right:0},e)},a.createElement(v.Z5,null,s(t,(function(e){return a.createElement(v.AW,{path:e.props.navPath,element:e.props.children,key:e.props.navPath})})),a.createElement(v.AW,{path:"*",element:a.createElement(v.Fg,{to:{pathname:i,search:r.search},replace:!0})})))})))}var _=n(16625),O=n.n(_),P={slidesPerView:"auto",allowTouchMove:!0,spaceBetween:32,noSwiping:!1},x=function(e){var t=(0,i.Ch)(e,{activeKey:"onSelect"}),n=t.onSelect,c=t.children,u=t.variant,d=void 0===u?"tabs":u,f=t.activeKey,v=void 0===f?null:f,m=t.fullBleedOnLineBreak,b=void 0===m||m;return a.createElement(p,{defaultActiveKey:v||"",onChange:n},a.createElement("ul",{className:"c-nav c-nav-".concat(d," ").concat(O().tabCarousel)},a.createElement(o.tq,P,s(c,(function(e,t){return a.createElement(o.o5,{key:t},a.createElement(y,(0,r.Z)({index:t},e.props),e))})))),a.createElement(l.Z,{noMargins:!0,fullBleed:b}),a.createElement(E,null,e.children))}},42695:function(e,t,n){(t=n(23645)(!0)).push([e.id,".tabs-module__tabCarousel___2yGDn{width:100%}.tabs-module__tabCarousel___2yGDn .swiper{width:100%;overflow:visible;z-index:0}.tabs-module__tabCarousel___2yGDn .swiper .swiper-wrapper .swiper-slide{width:auto}","",{version:3,sources:["tabs.module.scss"],names:[],mappings:"AAAA,kCAAa,UAAU,CAAC,0CAA6B,UAAU,CAAC,gBAAgB,CAAC,SAAS,CAAC,wEAA2D,UAAU",file:"tabs.module.scss",sourcesContent:[".tabCarousel{width:100%}.tabCarousel :global .swiper{width:100%;overflow:visible;z-index:0}.tabCarousel :global .swiper .swiper-wrapper .swiper-slide{width:auto}"]}]),t.locals={tabCarousel:"tabs-module__tabCarousel___2yGDn"},e.exports=t},16625:function(e,t,n){var r=n(93379),a=n(42695);"string"==typeof(a=a.__esModule?a.default:a)&&(a=[[e.id,a,""]]);r(a,{insert:"head",singleton:!1}),e.exports=a.locals||{}}}]);