1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1070],{31430:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var c=n(87462),r=n(67294),l={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},a=n(36936),o=r.forwardRef(function(e,t){return r.createElement(a.Z,(0,c.Z)({},e,{ref:t,icon:l}))})},69156:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var c=n(87462),r=n(67294),l={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"}
1,children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},a=n(36936),o=r.forwardRef(function(e,t){return r.createElement(a.Z,(0,c.Z)({},e,{ref:t,icon:l}))})},88153:function(e,t,n){"use strict";n.d(t,{ZP:function(){return i},c4:function(){return l}});var c=n(67294),r=n(71845);let l=["xxl","xl","lg","md","sm","xs"],a=e=>({xs:"(max-width: ".concat(e.screenXSMax,"px)"),sm:"(min-width: ".concat(e.screenSM,"px)"),md:"(min-width: ".concat(e.screenMD,"px)"),lg:"(min-width: ".concat(e.screenLG,"px)"),xl:"(min-width: ".concat(e.screenXL,"px)"),xxl:"(min-width: ".concat(e.screenXXL,"px)")}),o=e=>{let t=[].concat(l).reverse();return t.forEach((n,c)=>{let r=n.toUpperCase(),l="screen".concat(r,"Min"),a="screen".concat(r);if(!(e[l]<=e[a]))throw Error("".concat(l,"<=").concat(a," fails : !(").concat(e[l],"<=").concat(e[a],")"));if(c<t.length-1){let n="screen".concat(r,"Max");if(!(e[a]<=e[n]))throw Error("".concat(a,"<=").concat(n," fails : !(").concat(e[a],"<=").concat(e[n],")"));let l=t[c+1].toUpperCase(),o="screen".concat(l,"Min");if(!(e[n]<=e[o]))throw Error("".concat(n,"<=").concat(o," fails : !(").concat(e[n],"<=").concat(e[o],")"))}}),e};function i(){let[,e]=(0,r.ZP)(),t=a(o(e));return c.useMemo(()=>{let e=new Map,n=-1,c={};return{matchHandlers:{},dispatch:t=>(c=t,e.forEach(e=>e(c)),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(c),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach(e=>{let n=t[e],c=this.matchHandlers[n];null==c||c.mql.removeListener(null==c?void 0:c.listener)}),e.clear()},register(){Object.keys(t).forEach(e=>{let n=t[e],r=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},c),{[e]:n}))},l=window.matchMedia(n);l.addListener(r),this.matchHandlers[n]={mql:l,listener:r},r(l)})},responsiveMap:t}},[e])}},18294:function(e,t,n){"use strict";var c=n(67294),r=n(58752),l=n(15850);t.Z=(e,t)=>{let n=c.useContext(r.Z);return[c.useMemo(()=>{var c;let r=t||l.Z[e],a=null!==(c=null==n?void 0:n[e])&&void 0!==c?c:{};return Object.assign(Object.assign({},"function"==typeof r?r():r),a||{})},[e,t,n]),c.useMemo(()=>{let e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?l.Z.locale:e},[n])]}},24514:function(e,t,n){"use strict";n.r(t);var c=n(85893),r=n(67294),l=n(90960),a=n(90700),o=n(93967),i=n.n(o),s=n(11163),d=n(42763),u=n(78690),m=n(60071),x=n(83561),p=n(80504),v=n(24395),h=n(87848),f=n(89857),g=n(55773),b=n.n(g),j=n(85802);let y={page:1,page_size:5},w=e=>{var t,n;let{data:l}=e,{t:a}=(0,d.$G)(["hotel","common"]),o=(0,r.useRef)(null),x=(0,s.useRouter)(),v=()=>{(null==l?void 0:l.alias)&&x.push(f.u.SERVICE_DETAIL(null==l?void 0:l.alias))};return(0,c.jsxs)("div",{className:"flex gap-x-[24px] py-[24px] max-md:flex-col max-md:gap-y-[8px]",children:[(0,c.jsx)("div",{className:"w-[32%] bg-center bg-no-repeat bg-cover pt-[21.8%] max-md:w-full max-md:pt-[68.2%] cursor-pointer",style:{backgroundImage:"url(".concat(null===(n=l.photos)||void 0===n?void 0:null===(t=n[0])||void 0===t?void 0:t.url,")")},onClick:v}),(0,c.jsxs)("div",{className:"flex flex-col justify-between flex-1",children:[(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{className:"flex items-center gap-x-[16px]",children:[(0,c.jsx)(u.Z,{className:b().icon,src:l.service.icon.url}),(0,c.jsx)(h.Z,{type:"heading4-semi-bold",color:"text-secondary",children:l.service.name})]}),(0,c.jsx)(h.Z,{type:"heading5-medium",color:"text-primary",className:"my-[8px] inline-block cursor-pointer hover:text-[--main-color]",onClick:v,children:l.title}),(0,c.jsx)("p",{className:i()("body1 text-primary overflow-hidden text-ellipsis",b().description),style:{WebkitLineClamp:4,lineHeight:"24px"},dangerouslySetInnerHTML:{__html:l.description},ref:o})]}),(0,c.jsx)("div",{className:"py-[10px]",children:(0,c.jsxs)(m.Z,{type:"xhotel-secondary",className:"w-fit mt-[12px] curs
1or-pointer flex gap-x-2 items-center hover:bg-[--hover-color] focus:bg-[--hover-color] border-[--main-color] hover:border-[--main-color] focus:border-[--main-color]",onClick:v,children:[(0,c.jsx)(h.Z,{type:"title1-semi-bold",className:"text-[--main-color]",children:a("common:see_more")}),(0,c.jsx)(p.J,{icon:"icon-end-icon",className:"text-[24px] text-[--main-color]"})]})})]})]},"hotel-service-".concat(l.id))};t.default=e=>{var t,n;let{hotelAlias:o,hotelName:i,amenityRef:u}=e,m=(0,s.useRouter)(),{t:p}=(0,d.$G)(["hotel","common"]),f=(0,r.useRef)(null),{data:g,run:b,loading:Z}=(0,l.Z)(j.yW,{manual:!0});return((0,r.useEffect)(()=>{o&&b({...y,hotel:o})},[o,b]),(0,r.useImperativeHandle)(u,()=>({getOffsetTop:()=>{var e;return null===(e=f.current)||void 0===e?void 0:e.offsetTop},getBoundingClientRect:()=>{var e;return null===(e=f.current)||void 0===e?void 0:e.getBoundingClientRect()}})),(0,r.useEffect)(()=>{var e,t;(null==m?void 0:null===(e=m.query)||void 0===e?void 0:e.scrollTo)&&!Z&&f.current&&(null===(t=f.current)||void 0===t||t.scrollIntoView({behavior:"smooth",block:"start"}))},[Z,null==m?void 0:null===(t=m.query)||void 0===t?void 0:t.scrollTo,f]),(null==g?void 0:g.data.length)||Z)?(0,c.jsx)("div",{className:"bg-[var(--background-default)]",children:(0,c.jsx)(x.Z,{children:(0,c.jsxs)("div",{className:"pt-[32px] pb-[8px]",ref:f,children:[(0,c.jsx)(h.Z,{type:"heading3-semi-bold",color:"text-primary",children:p("services_of_hotel",{hotelName:i})}),(0,c.jsxs)("div",{className:"divide-solid divide-[var(--divider-default)]",children:[Z&&Array.from({length:4}).map((e,t)=>(0,c.jsxs)("div",{className:"flex py-[24px] gap-[24px] max-md:flex-col",children:[(0,c.jsx)(a.Z.Image,{className:"!h-[270px] max-md:!w-full !w-[400px]"}),(0,c.jsx)(a.Z,{paragraph:{rows:6},className:"flex-1"})]},"skeleton-".concat(t))),!Z&&(null==g?void 0:null===(n=g.data)||void 0===n?void 0:n.map(e=>(0,c.jsx)(w,{data:e},"hotel-service-".concat(e.id)))),(0,c.jsx)(v.Z,{page:null==g?void 0:g.page,pageSize:null==g?void 0:g.page_size,total:null==g?void 0:g.total,onChange:e=>{b({...y,hotel:o,page:e})},type:"center",className:"mb-[32px]"})]})]})})}):(0,c.jsx)(c.Fragment,{})}},78690:function(e,t,n){"use strict";var c=n(85893);n(67294);var r=n(90960);t.Z=e=>{let{src:t,className:n=""}=e,{data:l}=(0,r.Z)(()=>fetch(t).then(e=>e.text()));return(0,c.jsx)("div",{className:n,dangerouslySetInnerHTML:{__html:l}})}},24395:function(e,t,n){"use strict";var c=n(85893),r=n(67294),l=n(18829),a=n(93967),o=n.n(a),i=n(38547),s=n.n(i);t.Z=e=>{let{page:t=1,total:n=0,pageSize:a=10,onChange:i,className:d="",type:u}=e,m=(0,r.useMemo)(()=>n-a>0,[n,a]);return(0,c.jsx)("div",{className:o()(s().pagination,{[d]:!!d&&m,[s().center]:"center"===u}),children:m&&(0,c.jsx)(l.Z,{current:t,total:n,pageSize:a,onChange:i,showSizeChanger:!1})})}},55773:function(e){e.exports={description:"HotelService_description__Zyjp1",icon:"HotelService_icon__yMbpU"}},38547:function(e){e.exports={pagination:"PaginationCustom_pagination__WAUrK",center:"PaginationCustom_center__Xz_ok"}}}]);
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.