@roomstay/frontend 2.6.35 → 2.6.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (("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 j}});var r=n(87462),a=n(67294),o=n(50221),i=n(14289),l=n(19874);function c(e,t){var n=0;return a.Children.map(e,(function(e){return a.isValidElement(e)?t(e,n++):e}))}var s=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,s.Z)(o,2),l=i[0],c=i[1],p=(0,a.useState)(0),d=(0,s.Z)(p,2),f=d[0],v=d[1],b=(0,a.useState)(0),m=(0,s.Z)(b,2),h=m[0],y=m[1],w={activeKey:l,lastIndex:f,currentIndex:h,onChange:function(e,t){null==r||r(e),v(h),y(t),c(e)}};return(0,a.useEffect)((function(){c(n)}),[]),a.createElement(u.Provider,{value:w},t)},d=n(89250),f=n(79655),v=n(94184),b=n.n(v),m=n(30584),h=n(97754),y=function(e){var t=e.title,n=e.navPath,r=e.disabled;if(!t)return null;var o=(0,d.TH)(),i="".concat(n).concat(o.search);return a.createElement("li",null,a.createElement(f.OL,{to:i,className:function(e){var t=e.isActive;return b()("c-nav-item",{active:t,disabled:r})},end:!0},a.createElement("span",{className:b()("c-nav-link")},a.createElement(m.ZP,{color:h.Il.DarkGrey,bold:!0},t))))},w=n(4942),A=n(88144);function C(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 E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){(0,w.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e){var t=e.children,n=(0,a.useContext)(u),r=(0,d.TH)(),o=(0,A.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(A.q.div,{style:E({left:0,right:0},e)},a.createElement(d.Z5,null,c(t,(function(e){return a.createElement(d.AW,{path:e.props.navPath,element:e.props.children,key:e.props.navPath})})),a.createElement(d.AW,{path:"*",element:a.createElement(d.Fg,{to:{pathname:i,search:r.search},replace:!0})})))})))}var _=n(16625),O=n.n(_),P={slidesPerView:"auto",allowTouchMove:!0,spaceBetween:32,noSwiping:!1},j=function(e){var t=(0,i.Ch)(e,{activeKey:"onSelect"}),n=t.onSelect,s=t.children,u=t.variant,d=void 0===u?"tabs":u,f=t.activeKey,v=void 0===f?null:f,b=t.fullBleedOnLineBreak,m=void 0===b||b;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,c(s,(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:m}),a.createElement(g,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||{}}}]);
1
+ (("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||{}}}]);