PageSourceSearch

https://reservations.hotelartaza.com/_next/static/chunks/9619-91b9eb45cf7eb5e0.js

js hotelartaza.com collected 2026-09-26 19:00:05 UTC 14,694 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9619],{80485:function(e,t,l){l.d(t,{gN:function(){return v},Jg:function(){return c},Q$:function(){return h}});var a=l(31549),s=l(44194),n=l(14517),i=l(622),o=l(98342),r=l(35490);function c(e){let{badgeCount:t,onClick:l,label:s,className:c}=e,d=(0,o.Z)();return(0,a.jsxs)("button",{type:"button","aria-label":null!=s?s:d.formatMessage(r.$e.title),onClick:l,className:(0,n.Z)("flex items-center gap-2 transition-opacity hover:opacity-60 text-gray-300",c),children:[s&&(0,a.jsx)("span",{className:"text-base font-normal whitespace-nowrap",children:s}),(0,a.jsxs)("span",{className:"relative flex items-center justify-center w-[22px] h-[22px]",children:[(0,a.jsx)(i.OL,{iconIdentifier:"tune",className:"text-[22px] leading-none text-gray-300 rotate-180"}),t>0&&(0,a.jsx)("span",{className:"absolute -top-1.5 -right-1.5 flex items-center justify-center w-3 h-3 rounded-full bg-black text-white text-[8px] font-bold leading-none",children:t>9?"9+":t})]})]})}var d=l(6295);function x(e){let{title:t,description:l,options:o,onToggle:r,selected:c,labelShowMore:d,labelShowLess:x}=e,[m,p]=(0,s.useState)(!1);if(0===o.length)return null;let u=!!(d&&x)&&o.length>8,g=u&&!m?o.slice(0,8):o;return(0,a.jsxs)("div",{className:"py-5",children:[(0,a.jsx)("h3",{className:(0,n.Z)("text-gray-300 text-base font-bold",l?"mb-1.5":"mb-4"),children:t}),l&&(0,a.jsx)("p",{className:"text-sm text-gray-200 mb-4 line-clamp-2",children:l}),(0,a.jsx)("div",{className:(0,n.Z)("flex flex-wrap gap-x-3 sm:gap-x-4 gap-y-3",u&&!m&&"max-h-[92px] overflow-hidden"),children:g.map(e=>{let t=c.has(e.value);return(0,a.jsxs)("button",{type:"button",onClick:()=>r(e.value),className:(0,n.Z)("flex items-center gap-2 rounded-tag text-sm font-normal px-4 py-2.5 transition-colors","bg-white text-gray-300 outline outline-1 outline-offset-[-1px]",t?"outline-primary-100":"outline-gray-50 hover:bg-gray-25 hover:outline-none"),children:[e.icon&&(0,a.jsx)("span",{className:"inline-flex items-center justify-center w-[18px] h-[18px]",children:(0,a.jsx)(i.xk,{iconIdentifier:e.icon,className:"text-[18px] leading-none [font-variation-settings:'wght'_200,'GRAD'_0,'opsz'_24]"})}),e.label]},e.value)})}),u&&(0,a.jsxs)("button",{type:"button",onClick:()=>p(e=>!e),className:"mt-3 flex items-center gap-1 text-sm font-semibold text-gray-300",children:[(0,a.jsx)("span",{className:"underline",children:m?x:d}),(0,a.jsx)(i.xk,{iconIdentifier:m?"expand_less":"expand_more",className:"text-base leading-none [font-variation-settings:'wght'_200,'GRAD'_0,'opsz'_24]"})]})]})}function m(e){let{title:t,description:l,categories:s,selected:o,onToggle:r}=e;return s.length<=1?null:(0,a.jsxs)("div",{className:"py-5",children:[(0,a.jsx)("h3",{className:(0,n.Z)("text-gray-300 text-base font-bold",l?"mb-1.5":"mb-4"),children:t}),l&&(0,a.jsx)("p",{className:"text-sm text-gray-200 mb-4 line-clamp-2",children:l}),(0,a.jsx)("div",{className:"flex flex-wrap gap-x-3 gap-y-3",children:s.map(e=>{let t=o.has(e);return(0,a.jsxs)("button",{type:"button",onClick:()=>r(e),className:(0,n.Z)("flex items-center gap-0.5 rounded-tag text-sm font-normal px-4 py-2.5 transition-colors bg-white text-gray-300 outline outline-1 outline-offset-[-1px]",t?"outline-primary-100":"outline-gray-50 hover:bg-gray-25 hover:outline-none"),children:[e,(0,a.jsx)("span",{className:"inline-flex items-center justify-center w-[18px] h-[18px]",children:(0,a.jsx)(i.xk,{iconIdentifier:"star",className:"text-[18px] leading-none [font-variation-settings:'FILL'_1,'wght'_200,'GRAD'_0,'opsz'_24]"})})]},e)})})]})}var p=l(8327);function u(e){var t,l;let{title:s,description:i,labelMin:o,labelMax:r,absoluteMin:c,absoluteMax:d,value:x,onChange:m,currencySymbol:u}=e;if(c>=d)return null;let g=null!==(t=null==x?void 0:x.min)&&void 0!==t?t:c,f=null!==(l=null==x?void 0:x.max)&&void 0!==l?l:d;return(0,a.jsxs)("div",{className:"py-5",children:[(0,a.jsx)("h3",{className:(0,n.Z)("text-gray-300 text-base font-bold",i?"mb-1.5":"mb-4"),children:s}),i&&(0,a.jsx)("p",{className:"text-sm text-gray-200 mb-4 line-clamp-2",children:i}),(0,a.jsx)("div",{className:"px-4 mb-2",children:(0,a.jsx)(p.Range,{step:1,min:c,max:d,values:[g,f],onChange:e=>{let[t,l]=[Math.round(e[0]),Math.round(e[1])];m(t===c&&l===d?void 0:{min:t,max:l})},renderTrack:e=>{let{props:t,children:l}=e;return(0,a.jsx)("div",{onMouseDown:t.onMouseDown,onTouchStart:t.onTouchStart,style:t.style,className:"flex w-full h-8 items-center",children:(0,a.jsx)("div",{ref:t.ref,className:"w-full h-1 rounded-full",style:{background:(0,p.getTrackBackgroun
1d)({values:[g,f],colors:["#e5e7eb","var(--color-primary, #0070f3)","#e5e7eb"],min:c,max:d})},children:l})})},renderThumb:e=>{let{props:t}=e,{key:l,...s}=t;return(0,a.jsx)("div",{...s,style:{...s.style,height:32,width:32,backgroundColor:"var(--color-primary)",borderColor:"var(--color-primary)"},className:"border-2 rounded-full shadow-[0px_2px_8px_rgba(0,0,0,0.20)] outline-none focus:ring-2 focus:ring-primary focus:ring-offset-1"},l)}})}),(0,a.jsxs)("div",{className:"flex justify-between mt-4 text-sm text-gray-300",children:[(0,a.jsxs)("div",{className:"flex flex-col items-start",children:[(0,a.jsx)("span",{className:"text-xs text-gray-200 mb-0.5",children:o}),(0,a.jsxs)("span",{className:"font-semibold",children:[u,Math.round(g)]})]}),(0,a.jsxs)("div",{className:"flex flex-col items-end",children:[(0,a.jsx)("span",{className:"text-xs text-gray-200 mb-0.5",children:r}),(0,a.jsxs)("span",{className:"font-semibold",children:[u,Math.round(f)]})]})]})]})}function g(e){let{title:t,description:l,value:s,onChange:i}=e;return(0,a.jsx)("div",{className:"py-5",children:(0,a.jsxs)("label",{className:"flex items-center justify-between gap-4 cursor-pointer",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1 flex-1",children:[(0,a.jsx)("span",{className:"text-gray-300 text-base font-bold",children:t}),l&&(0,a.jsx)("span",{className:"text-xs text-gray-200 line-clamp-2",children:l})]}),(0,a.jsxs)("div",{role:"switch","aria-checked":s,tabIndex:0,onClick:()=>i(!s),onKeyDown:e=>{(" "===e.key||"Enter"===e.key)&&(e.preventDefault(),i(!s))},className:(0,n.Z)("relative flex-shrink-0 w-10 h-[21px] rounded-full transition-colors duration-200 cursor-pointer group",s?"bg-primary-100":"bg-gray-100"),children:[(0,a.jsx)("span",{className:(0,n.Z)("pointer-events-none absolute -top-[3px] -left-[3px] w-[46px] h-[27px] rounded-full opacity-0 group-hover:opacity-60 transition-opacity duration-200",s?"bg-primary-100":"bg-gray-100")}),(0,a.jsx)("div",{className:(0,n.Z)("absolute top-0.5 left-0.5 w-[17px] h-[17px] bg-white rounded-full shadow transition-transform duration-200",s?"translate-x-[19px]":"translate-x-0")})]})]})})}function f(e){let{title:t,items:l,onRemove:s}=e;return 0===l.length?null:(0,a.jsxs)("div",{className:"py-5",children:[(0,a.jsx)("h3",{className:"text-gray-300 text-base font-bold mb-4",children:t}),(0,a.jsx)("div",{className:"flex flex-wrap gap-x-3 sm:gap-x-4 gap-y-3",children:l.map(e=>{var t,l;return(0,a.jsxs)("div",{className:"flex items-center gap-2 rounded-tag text-sm font-normal px-4 py-2.5 bg-white text-gray-300 outline outline-1 outline-offset-[-1px] outline-gray-50 hover:bg-gray-25 hover:outline-none",children:[(0,a.jsx)("span",{children:e.label}),(0,a.jsx)("button",{type:"button","aria-label":"Remove filter: ".concat(e.label),className:"ml-0.5 text-gray-200 hover:opacity-70 flex items-center justify-center",onClick:()=>s(e),children:(0,a.jsx)(i.E8,{})})]},"".concat(e.key.field,"-").concat(null!==(t=e.key.value)&&void 0!==t?t:"","-").concat(null!==(l=e.key.ticker)&&void 0!==l?l:""))})})]})}function h(e){let{open:t,onClose:l,configs:n,options:c,state:p,onChange:h,resultCount:v,currencySymbol:b}=e,y=(0,o.Z)(),[j]=(0,s.useState)(()=>!p.isEmpty()),N=p.activeChipLabels(n,c,b),w=[],k=(0,d.i_)(n,"destination");(null==k?void 0:k.active)&&c.destinations.length&&w.push({order:k.order,element:(0,a.jsx)(x,{title:(0,d.$d)(k),description:k.description,options:c.destinations.map(e=>({value:e.value,label:e.label})),selected:p.selectedDestinations,onToggle:e=>h(p.toggleDestination(e))},"destination")});let M=(0,d.i_)(n,"accommodation_type");(null==M?void 0:M.active)&&c.accommodationTypes.length>1&&w.push({order:M.order,element:(0,a.jsx)(x,{title:(0,d.$d)(M)||y.formatMessage(r.$e.accommodationType),description:M.description,options:c.accommodationTypes.map(e=>({value:e.value,label:(()=>{let t=y.formatMessage({id:"shared.roomDenomination.".concat(e.value.toLowerCase()),defaultMessage:e.label});return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()})(),icon:d.jB[e.value.toUpperCase()]})),selected:p.selectedAccommodationTypes,onToggle:e=>h(p.toggleAccommodationType(e))},"accommodation_type")});let _=(0,d.i_)(n,"category");(null==_?void 0:_.active)&&c.categories.length>0&&w.push({order:_.order,element:(0,a.jsx)(m,{title:(0,d.$d)(_)||y.formatMessage(r.$e.category),description:_.description,categories:c.categories,selected:p.selectedCategories,onToggle:e=>h(p.toggleCategory(e))},"category")});let C=(0,d.i_)(n,"price_range");(null==C?void 0:C.active)&&c.priceMax>0&&w.push({order:C.order,element:(0,a.jsx)(u,{title:(0,d.$d)(C)||y.formatMessage(r.$e.priceRange),description:C.description,labelMin:y.formatMessage(r.$e.priceMin),labelMax:y.formatMessage(r.$e.priceMax),absoluteMin:c.priceMin,absoluteMax:c.priceMax,value:p.priceRange,onChange:e=>h(p.setPriceRange(e)),currencySymbol:b},"price_range")});let $=(0,d.i_)(n,"mealplan");(null==$?void 0:$.active)&&c.mealplans.length>1&&w.push({order:$.order,element:(0,a.jsx)(x,{title:(0,d.$d)($)||y.formatMessage(r.$e.mealplan),description:$.description,options:c.mealplans.map(e=>({value:e.ticker,label:e.name,icon:d.Q2[e.ticker.toUpperCase()]})),selected:p.selectedMealplans,onToggle:e=>h(p.toggleMealplan(e))},"mealplan")});let T=(0,d.i_)(n,"free_cancellation");(null==T?void 0:T.active)&&w.push({order:T.order,element:(0,a.jsx)(g,{title:(0,d.$d)(T)||y.formatMessage(r.$e.freeCancellation),description:T.description,value:p.freeCancellation,onChange:e=>h(p.toggleFreeCancellation(e))},"free_cancellation")});let S=(0,d.i_)(n,"available");(null==S?void 0:S.active)&&w.push({order:S.order,element:(0,a.jsx)(g,{title:(0,d.$d)(S)||y.formatMessage(r.$e.available),description:S.description,value:p.availableOnly,onChange:e=>h(p.toggleAvailableOnly(e))},"available")});let D=(0,d.i_)(n,"amenities_services");(null==D?void 0:D.active)&&c.services.length&&w.push({order:D.order,element:(0,a.jsx)(x,{title:(0,d.$d)(D)||y.formatMessage(r.$e.
1services),description:D.description,options:c.services.map(e=>({value:e.ticker,label:e.name,icon:e.icon})),selected:p.selectedServices,onToggle:e=>h(p.toggleService(e)),labelShowMore:y.formatMessage(r.$e.showMore),labelShowLess:y.formatMessage(r.$e.showLess)},"amenities_services")});let Z=(0,d.i_)(n,"amenities_facilities");(null==Z?void 0:Z.active)&&c.facilities.length&&w.push({order:Z.order,element:(0,a.jsx)(x,{title:(0,d.$d)(Z)||y.formatMessage(r.$e.facilities),description:Z.description,options:c.facilities.map(e=>({value:e.ticker,label:e.name,icon:e.icon})),selected:p.selectedFacilities,onToggle:e=>h(p.toggleFacility(e)),labelShowMore:y.formatMessage(r.$e.showMore),labelShowLess:y.formatMessage(r.$e.showLess)},"amenities_facilities")}),(0,d.De)(n).filter(e=>{var t;return"CUSTOM"===e.type&&"CHIPS"===e.componentType&&(null===(t=e.chips)||void 0===t?void 0:t.length)}).forEach(e=>{var t;let l=e.chips;if(!l)return;let s=null!==(t=p.selectedCustomFilters[e.ticker])&&void 0!==t?t:new Set;w.push({order:e.order,element:(0,a.jsx)(x,{title:(0,d.$d)(e),description:e.description,options:l.map(e=>{var t;return{value:null!==(t=e.id)&&void 0!==t?t:"",label:(0,d.xl)(e),icon:e.icon}}),selected:s,onToggle:t=>h(p.toggleCustomFilter(e.ticker,t)),labelShowMore:y.formatMessage(r.$e.showMore),labelShowLess:y.formatMessage(r.$e.showLess)},e.ticker)})});let L=w.sort((e,t)=>e.order-t.order).map(e=>e.element);return(0,a.jsx)(i.dK,{open:t,onToggleDialog:l,hideCloseButton:!0,paddingless:!0,fullHeight:!0,contentClassName:"!rounded-none sm:!rounded-card sm:!max-w-[568px] sm:!h-[660px] !overflow-hidden !flex !flex-col",children:(0,a.jsxs)("div",{className:"flex flex-col h-full",children:[(0,a.jsxs)("div",{className:"flex-shrink-0 flex items-center justify-between px-5 sm:px-6 h-12 sm:h-16 border-b border-gray-50",children:[(0,a.jsx)("div",{className:"flex-1"}),(0,a.jsx)("span",{className:"text-gray-300 text-lg font-bold text-center",children:y.formatMessage(r.$e.title)}),(0,a.jsx)("div",{className:"flex-1 flex justify-end",children:(0,a.jsx)("button",{type:"button",onClick:l,className:"w-4 h-4 text-gray-200",children:(0,a.jsx)(i.Tw,{})})})]}),(0,a.jsxs)("div",{className:"flex-1 overflow-y-auto px-5 sm:px-6",children:[j&&(0,a.jsx)(f,{title:y.formatMessage(r.i4.selected),items:N,onRemove:e=>h(p.removeChip(e))}),L]}),(0,a.jsxs)("div",{className:"flex-shrink-0 border-t border-gray-50 px-5 sm:px-6 h-[78px] flex items-center gap-4 [box-shadow:0_-2px_16px_0_rgba(0,0,0,0.16),0_0_0_1px_rgba(0,0,0,0.04)]",children:[(0,a.jsx)("button",{type:"button",onClick:()=>h(d.DW.empty()),className:"text-left py-3.5 text-sm font-semibold text-gray-200 rounded-button",children:y.formatMessage(r.$e.clearFilters)}),(0,a.jsx)(i.zx,{variant:"primary",label:y.formatMessage(r.$e.showResults,{count:v}),outlined:!1,onClick:l,className:"ml-auto"})]})]})})}function v(e){let{state:t,configs:l,options:s,currencySymbol:n,onOpenModal:o,onRemoveChip:r}=e,c=t.top3ActiveChipItems(l,s,n);return 0===c.length?null:(0,a.jsx)("div",{className:"flex flex-wrap gap-4",children:c.map(e=>{var t,l;return(0,a.jsxs)("div",{className:"flex items-center gap-1 px-3 py-1.5 rounded-tag text-sm font-medium bg-white outline outline-1 outline-offset-[-1px] outline-gray-50 text-primary cursor-pointer",onClick:o,role:"button",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),o())},children:[e.icon&&(0,a.jsx)(i.xk,{iconIdentifier:e.icon,className:"text-[16px] leading-none"}),(0,a.jsx)("span",{children:e.label}),(0,a.jsx)("button",{type:"button","aria-label":"Remove filter: ".concat(e.label),className:"ml-0.5 text-gray-200 hover:opacity-70 flex items-center justify-center",onClick:t=>{t.stopPropagation(),r(e)},children:(0,a.jsx)(i.E8,{})})]},"".concat(e.key.field,"-").concat(null!==(t=e.key.ticker)&&void 0!==t?t:"","-").concat(String(null!==(l=e.key.value)&&void 0!==l?l:"")))})})}},43182:function(e,t,l){l.d(t,{m:function(){return n}});var a=l(98342),s=l(44194);function n(e){let t=(0,a.Z)();return(0,s.useMemo)(()=>{var l;if(e)return null===(l=t.formatNumberToParts(1,{style:"currency",currency:e}).find(e=>"currency"===e.type))||void 0===l?void 0:l.value},[e,t])}}}]);

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.