PageSourceSearch

https://www.philips-hue.com/etc.clientlibs/signify-brand-hue/clien…ch-module.f61f3bbbc726f6cfece7.chunk.min.js

js philips-hue.com collected 2026-09-24 08:42:18 UTC 23,379 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_signify_hue=self.webpackChunk_signify_hue||[]).push([[1516],{5504:function(t,e,s){s.r(e),s.d(e,{default:function(){return vt}});var a=s(7607),i=s(8743),r=s(615),n=s(9845),o=s.n(n),c=function(t,e,s,a){var i,r=arguments.length,n=r<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,a);else for(var o=t.length-1;o>=0;o--)(i=t[o])&&(n=(r<3?i(n):r>3?i(e,s,n):i(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let l=class extends(o()){};c([(0,a.kv)({required:!0})],l.prototype,"label",void 0),c([(0,a.kv)([String,Number])],l.prototype,"subLabel",void 0),c([(0,a.kv)({required:!0})],l.prototype,"id",void 0),c([(0,a.kv)({default:!1})],l.prototype,"selected",void 0),c([(0,a.kv)({default:!1})],l.prototype,"disabled",void 0),l=c([(0,a.uA)({name:"search-filter"})],l);var h=l,u=s(2881),d=(0,u.A)(h,function(){var t=this,e=t._self._c;t._self._setupProxy;return e("li",{class:["search-filter",{disabled:t.disabled,selected:t.selected}],on:{click:e=>t.$emit("onSelect",t.id,e.target)}},[t._v("\n    "+t._s(t.label)+"\n    "),e("span",{staticClass:"search-filter__sub-label"},[t._v("("+t._s(t.subLabel)+")")])])},[],!1,null,null,null).exports,g=s(2477),p=function(t,e,s,a){var i,r=arguments.length,n=r<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,a);else for(var o=t.length-1;o>=0;o--)(i=t[o])&&(n=(r<3?i(n):r>3?i(e,s,n):i(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let f=class extends(o()){};f=p([(0,a.uA)({name:"search-filters-loader",components:{ContentLoader:g.nh}})],f);var v=f,y=(0,u.A)(v,function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[e("ContentLoader",{staticClass:"search-filters-loader",attrs:{width:1120,height:20,speed:2,"primary-color":"#bbb","secondary-color":"#ccc"}},[e("rect",{attrs:{x:"0",y:"0",rx:"3",ry:"3",width:"65",height:"20"}}),t._v(" "),e("rect",{attrs:{x:"85",y:"0",rx:"3",ry:"3",width:"100",height:"20"}}),t._v(" "),e("rect",{attrs:{x:"205",y:"0",rx:"3",ry:"3",width:"90",height:"20"}})])],1)},[],!1,null,null,null).exports,m=function(t,e,s,a){var i,r=arguments.length,n=r<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,a);else for(var o=t.length-1;o>=0;o--)(i=t[o])&&(n=(r<3?i(n):r>3?i(e,s,n):i(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let S=class extends(o()){};m([(0,a.kv)({required:!0})],S.prototype,"filters",void 0),m([(0,a.kv)(Boolean)],S.prototype,"showContentLoader",void 0),S=m([(0,a.uA)({name:"search-filters",components:{SearchFiltersLoader:y,SearchFilter:d}})],S);var b=S,_=(0,u.A)(b,function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"search-filters"},[e("ul",{staticClass:"search-filters__list"},[t.showContentLoader?e("SearchFiltersLoader"):t._l(t.filters,function(s){return e("SearchFilter",{key:s.id,attrs:{id:s.id,label:s.name,"sub-label":s.itemsAvailable,selected:s.selected,disabled:s.disabled},on:{onSelect:(e,s)=>t.$emit("onFilterSelect",e,s)}})})],2)])},[],!1,null,null,null).exports,A=s(1860),k=s(6660),F=s.n(k);const P=new class{constructor(){this.allFilterId="all",this.productFilterId="product",this.getSearchData=async(t,e,s,a,i,r,n,o)=>{const c={url:t,method:"get",params:{page:i,resultSize:10,type:r,query:e||""}},l=await F().request(c);return this.mapSearchResultData(l.data,s,a,r,n,o)}}mapSearchResultData(t,e,s,a,i,r){const n=0===r?this.mapNewFilters(e,t,a,i):this.mapExistingFilters(e,a,i,r);return{maxResultsPerPage:t.meta.page.size,page:{currentPage:t.meta.page.current,totalPages:t.meta.page.total_pages},filters:n,results:t.results.map(t=>({id:t.id,name:t.name,description:t.description??t.product_description,link:t.link,thumbnail:t.image&&""!==t.image?t.image:s,isProduct:t.type===this.productFilterId})),totals:t.meta.page.total_results}}mapExistingFilters(t,e,s,a){return[this.setAllFilter(this.allFilterId,e,s,a),...t.map(t=>({...t,selected:t.id===e}))]}mapNewFilters(t,e,s,a){for(const a of t){a.selected=!1,a.itemsAvailable=0,a.disabled=!0;
1for(const t of e.facets.type[0].data)a.id===t.value&&(a.itemsAvailable=t.count,a.selected=a.id===s,a.disabled=0===t.count)}return[this.setAllFilter(this.allFilterId,s,a,e.meta.page.total_results),...t]}setAllFilter(t,e,s,a){return{id:t,name:s,selected:e===this.allFilterId,itemsAvailable:a}}};var T=s(4266),C=s(5136),R=s(4196),w=s(3040),D=s(3807),E=function(t,e,s,a){var i,r=arguments.length,n=r<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,a);else for(var o=t.length-1;o>=0;o--)(i=t[o])&&(n=(r<3?i(n):r>3?i(e,s,n):i(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let x=class extends((0,C.mixins)(R.A)){constructor(){super(...arguments),this.icons=w.$M,this.iconSize=w.lK}mounted(){this.handleFocus(this.focus)}onFocusChanged(t){this.handleFocus(t)}handleFocus(t){t?this.$refs.search?.focus():this.$refs.search?.blur()}handleKeyArrowDown(t){!0===this.hijackKeyArrowDown&&t.preventDefault(),this.$emit("onKeyArrowDown")}};E([(0,a.y_)()],x.prototype,"t",void 0),E([(0,a.kv)({default:"off"})],x.prototype,"autocomplete",void 0),E([(0,a.kv)()],x.prototype,"name",void 0),E([(0,a.kv)({default:"button"})],x.prototype,"buttonType",void 0),E([(0,a.kv)()],x.prototype,"inputValue",void 0),E([(0,a.kv)({default:!1})],x.prototype,"hijackKeyArrowDown",void 0),E([(0,a.kv)(Boolean)],x.prototype,"focus",void 0),E([(0,a.kv)({default:!1})],x.prototype,"showClear",void 0),E([(0,a.kv)({default:!1})],x.prototype,"disableSubmitFocus",void 0),E([(0,a.ox)("focus")],x.prototype,"onFocusChanged",null),x=E([(0,a.uA)({name:"search-field",components:{Icon:D.default}})],x);var O=x,L=(0,u.A)(O,function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"search-field"},[e("input",{ref:"search",staticClass:"search-field__input",attrs:{type:"text",name:t.name,autocomplete:t.autocomplete,placeholder:t.t.f
1ield.placeholder},domProps:{value:t.inputValue},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e=>t.$emit("onSubmit",t.inputValue,e.target)).apply(null,arguments)},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:(e=>t.$emit("onEscape")).apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:t.handleKeyArrowDown(e)}],input:e=>t.$emit("onChange",e.target.value),focus:()=>t.$emit("onFocus"),blur:()=>t.$emit("onBlur")}}),t._v(" "),e("button",{directives:[{name:"show",rawName:"v-show",value:t.showClear&&t.inputValue?.length,expression:"showClear && inputValue?.length"}],staticClass:"search-field__button-clear",attrs:{type:"button","data-analytics-category":"internal","data-analytics-label":"close"},on:{click:()=>t.$emit("onClear")}},[e("Icon",{staticClass:"search-field__clear-icon",attrs:{"icon-name":t.icons.close,"icon-size":t.iconSize.sm}})],1),t._v(" "),e("button",{staticClass:"search-field__button",attrs:{tabindex:t.disableSubmitFocus?-1:0,type:t.buttonType},on:{click:function(e){return t.$emit("onSubmit",t.inputValue)}}},[e("Icon",{staticClass:"search-field__icon",attrs:{"icon-name":t.icons.search}})],1)])},[],!1,null,null,null),I=L.exports,N=s(5973),j=s(8600);class ${static{this.DEFAULT_EVENT_NAME="component/search/view"}static{this.NO_RESULTS=0}static{this.CATEGORY="search"}static{this.LABEL=""}static{this.ACTION="search"}static trackPageLoadSearch(t,e,s,a,i=!0){const r=this.createSearchAnalyticsAttributes(e,i,s,1,a);this.handleAnalytics(t,r,this.DEFAULT_EVENT_NAME,"view",!1)}static trackReSearch(...t){return this.trackPageLoadSearch(...t)}static trackSuggestions(t,e,s){const a=this.createSearchAnalyticsAttributes(e,!0,s);this.handleAnalytics(t,a,"component/searchbar/init","search")}static trackSuggestionsClick(t,e,s,a){const i=this.createSearchAnalyticsAttributes(e,!0,s);this.handleAnalytics(t,i,"component/search/suggestion/click","click",!0,"search-suggestion",a)}static trackPaginationResults(t,e,s,a,i){const r=this.createSearchAnalyticsAttributes(e,!1,s,a,i);this.handleAnalytics(t,r,this.DEFAULT_EVENT_NAME,"view",!1)}static trackFilterClickResults(t,e,s,a){const i=this.createSearchAnalyticsAttributes(e,!1,s,1,a);this.handleAnalytics(t,i,this.DEFAULT_EVENT_NAME,"view",!1)}static trackPagination(t,e,s,a){const i=this.createSearchAnalyticsAttributes(e,!1,s,a);t instanceof HTMLButtonElement?t.classList.contains("button--next")?this.handleAnalytics(t,i,"component/search/pagination/click","click",!0,"search-pagination","Next"):this.handleAnalytics(t,i,"component/search/pagination/click","click",!0,"search-pagination","Previous"):this.handleAnalytics(t,i,"component/search/pagination/click","click",!0,"search-pagination",a.toString())}static createSearchAnalyticsAttributes(t,e,s,a,i){let r;return s??=this.NO_RESULTS,i&&(r=this.mapFiltersToAnalyticsFilters(i)),{onsiteSearchTerm:t,...void 0!==e&&{onsiteSearchNew:e},onsiteSearchResults:s,...a&&{onsiteSearchPagination:a},...r&&{onsiteSearchTypes:r}}}static handleAnalytics(t,e,s=this.DEFAULT_EVENT_NAME,a=this.ACTION,i=!0,r=this.CATEGORY,n=this.LABEL){const o=(0,N.uc)(r,n,t,i,a,e);(0,j.Xu)(s,o)}static mapFiltersToAnalyticsFilters(t){let e=[];return t&&(e=t.map(t=>({name:t.id,searchResults:t.itemsAvailable||0,isSelectedFilter:t.selected||!1}))),e}}var B=s(6566),V=function(t,e,s,a){var i,r=arguments.length,n=r<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,a);else for(var o=t.length-1;o>=0;o--)(i=t[o])&&(n=(r<3?i(n):r>3?i(e,s,n):i(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let q=class extends(o()){get dataTrackingInfo(){const t=$.createSearchAnalyticsAttributes(this.searchTerm,void 0,this.searchSuggestions?.length);return(0,B.w)("search-suggestions","/search-suggestions","search/suggestion",{category:"search suggestion",attributes:t})}};V([(0,a.kv)({required:!0})],q.prototype,"searchSuggestions",void 0),V([(0,a.kv)()],q.prototype,"searchTerm",void 0),q=V([(0,a.uA)({name:"search-suggestions"})],q);var U=q,M=(0,u.A)(U,function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"search-suggestions-wrapper"},[e("div",{staticClass:"search-suggestions"},t._l(t.searchSuggestions,function(s){return e("div",{key:s.id,staticClass:"search-suggestions__item"},[e("a",{staticClass:"search-suggestions__item-link",attrs:{href:s.link,"data-tracking-info":t.dataTrackingInfo}},[t._v(t._s(s.name))])])}),0)])},[],!1,null,null,null).exports,z=s(9034),G=function(t,e,s,a){var i,r=arguments.length,n=r<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,a);else for(var o=t.length-1;o>=0;
1o--)(i=t[o])&&(n=(r<3?i(n):r>3?i(e,s,n):i(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let K=class extends(o()){constructor(){super(...arguments),this.dataTrackingInfo=(0,B.V)("search-input","/search-input","search")}};G([(0,a.kv)({required:!0})],K.prototype,"searchSuggestions",void 0),G([(0,a.kv)({required:!0})],K.prototype,"suggestionsEnabled",void 0),G([(0,a.kv)()],K.prototype,"inputValue",void 0),G([(0,a.kv)(Boolean)],K.prototype,"focus",void 0),K=G([(0,a.uA)({name:"search-input",components:{SearchField:I,SearchSuggestions:M,TransitionExpand:z.A}})],K);var H=K,Q=(0,u.A)(H,function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{attrs:{"data-tracking-info":t.dataTrackingInfo}},[e("SearchField",{attrs:{"input-value":t.inputValue,focus:t.focus},on:{onSubmit:(e,s)=>t.$emit("onSubmit",e,s),onChange:e=>t.$emit("onChange",e),onFocus:()=>t.$emit("onFocus"),onBlur:()=>t.$emit("onBlur")}}),t._v(" "),e("transition-expand",[t.suggestionsEnabled&&t.searchSuggestions.length>0?e("SearchSuggestions",{attrs:{"search-term":t.inputValue,"search-suggestions":t.searchSuggestions}}):t._e()],1)],1)},[],!1,null,null,null).exports,X=s(6302),Y=s.n(X),J=s(9770),W=function(t,e,s,a){var i,r=arguments.length,n=r<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,a);else for(var o=t.length-1;o>=0;o--)(i=t[o])&&(n=(r<3?i(n):r>3?i(e,s,n):i(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Z=class extends(o()){};Z=W([(0,a.uA)({name:"search-title-loader",components:{ContentLoader:g.nh}})],Z);var tt=Z,et=(0,u.A)(tt,function(){var t=this._self._c;this._self._setupProxy;return t("ContentLoader",{staticClass:"search-title-loader heading-2",attrs:{width:342,height:40,speed:2,"primary-color":"#bbb","secondary-color":"#ccc"}},[t("rect",{attrs:{x:"0",y:"7",rx:"3",ry:"3",width:"252",height:"25"}})])},[],!1,null,null,null).exports,st=function(t,e,s,a){var i,r=arguments.length,n=r<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,a);else for(var o=t.length-1;o>=0;o--)(i=t[o])&&(n=(r<3?i(n):r>3?i(e,s,n):i(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let at=class extends((0,C.mixins)(R.A)){};st([(0,a.y_)()],at.prototype,"t",void 0),st([(0,a.kv)({required:!0})],at.prototype,"totals",void 0),st([(0,a.kv)(Boolean)],at.prototype,"showContentLoader",void 0),at=st([(0,a.uA)({name:"search-title",components:{SearchTitleLoader:et}})],at);var it,rt=at,nt=(0,u.A)(rt,function(){var t=this,e=t._self._c;t._self._setupProxy;return t.showContentLoader?e("SearchTitleLoader"):e("h2",{staticClass:"heading-2"},[t._v("\n    "+t._s(t.$t(t.t.title,{total:t.totals}))+"\n")])},[],!1,null,null,null).exports,ot=s(5623),ct=function(t,e,s,a){var i,r=arguments.length,n=r<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,a);else for(var o=t.length-1;o>=0;o--)(i=t[o])&&(n=(r<3?i(n):r>3?i(e,s,n):i(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};const lt=(0,i.MF)(r.UX.NAME_SPACE),ht=lt.Action,ut=lt.State;let dt=it=class extends a.lD{constructor(){super(...arguments),this.t=this.translations,this.searchTerm="",this.currentPage=1,this.filters=[],this.defaultActiveFilterId="all",this.defaultPage=1,this.activeFilterId=this.defaultActiveFilterId,this.searchData={totals:0,results:[{id:"a"},{id:"b"},{id:"c"},{id:"d"},{id:"e"}]},this.searchSuggestions=[],this.debounceTimeoutId=0,this.submitActivated=!1,this.isLoading=!1,this.isContentLoading=!0,this.initialized=!1,this.suggestionsMinimumCharacters=3,this.totalResults=0,this.searchNoResultMessage={subTitle:this.translations.results.noResultsSubtitle,title:this.translations.results.noResults},this.errorOccurred=!1}async created(){this.setSearchPageStoreConfig(this.configuration?.searchPage),this.configuration.searchPage&&(this.setState(),this.addUrlChangeListener(),await this.get
1SearchData(!1),$.trackPageLoadSearch(this.$el,this.searchTerm,this.getTotal()))}setState(){const t=T.v.getQueryParams();t.query&&(this.searchTerm=t.query),this.currentPage=t.page?Number(t.page):this.defaultPage,this.activeFilterId=t.filters?JSON.parse(decodeURIComponent(String(t.filters))).type:this.defaultActiveFilterId}async getSearchData(t=!1){if(this.isValidSearchTerm()){this.errorOccurred=!1;try{if(this.isLoading=!this.isContentLoading,this.searchData=await P.getSearchData(this.configuration.siteSearchEndpoint.url,this.searchTerm,this.configuration.searchFilters,this.configuration.fallbackImageUrl,this.currentPage,this.activeFilterId,this.translations.filters.all,this.totalResults),this.updateFilters(),this.initialized&&!t){const t={query:this.searchTerm,page:this.currentPage};"all"!==this.activeFilterId&&(t.filters={type:this.activeFilterId}),T.v.setQueryParams(t)}this.isContentLoading=!1,this.isLoading=!1,this.initialized=!0,0===this.searchData.results.length&&(this.searchNoResultMessage={subTitle:this.translations.results.noResultsSubtitle,title:this.translations.results.noResults})}catch{this.errorOccurred=!0,this.isContentLoading=!1,this.isLoading=!1,this.initialized=!0,this.searchNoResultMessage={subTitle:this.translations.errors.subTitle,title:this.translations.errors.title}}}}updateFilters(){this.searchData?.filters&&(this.filters=this.searchData.filters,0===this.totalResults&&(this.totalResults=this.getTotal()))}isValidSearchTerm(){return!it.isEmptyOrSpaces(this.searchTerm)}static isEmptyOrSpaces(t){return!t||""===t.trim()}async getSuggestions(){if(this.configuration.suggestionsEnabled&&this.searchTerm.length>=this.suggestionsMinimumCharacters)try{const t=await A.k.getSearchSuggestionsData(this.configuration.endpoint.url,this.searchTerm);this.submitActivated?(this.searchSuggestions=[],this.submitActivated=!1):this.searchSuggestions=t.results,$.trackSuggestions(this.$el,this.searchTerm,t.results.length)}catch(t){ot.A.log("Could not retrieve suggestions",t)}else this.searchSuggestions=[]}redirectToSearchPage(){this.isValidSearchTerm()&&(window.location.href=`${this.configuration.searchPageUrl}?query=${encodeURIComponent(this.searchTerm)}`)}async onSearchInputSubmit(t,e){this.searchTerm=t,this.configuration.searchPage?(this.searchSuggestions=[],this.submitActivated=!0,this.currentPage=this.defaultPage,this.setActiveFilter(this.defaultActiveFilterId),this.totalResults=0,await this.get
1SearchData(),$.trackReSearch(e,this.searchTerm,this.getTotal(),this.filters)):this.redirectToSearchPage()}onSearchInputChange(t){this.searchTerm=t,clearTimeout(this.debounceTimeoutId),this.debounceTimeoutId=window.setTimeout(()=>{this.getSuggestions()},300),this.submitActivated=!1}onSelectFilter(t,e){this.setActiveFilter(t),this.currentPage=this.defaultPage,this.getSearchData(!0).then(()=>{$.trackFilterClickResults(e,this.searchTerm,this.getTotalActiveResults(),this.filters)})}setActiveFilter(t){this.activeFilterId=t,this.filters.map(t=>{t.selected=t.id===this.activeFilterId})}async onPaginationClick(t,e){$.trackPagination(e,this.searchTerm,this.getTotal(),t),this.currentPage=t,await this.getSearchData().then(()=>{$.trackPaginationResults(e,this.searchTerm,this.getTotal(),this.currentPage,this.filters)}),this.onScrollTop()}onNavigate(){this.setState(),this.getSearchData(!0).then(()=>this.onScrollTop())}addUrlChangeListener(){window.addEventListener("popstate",()=>{this.onNavigate()})}onScrollTop(){Y().scrollTo(this.$el.parentElement?.querySelector('[data-scrollTo="searchResult"]'),1e3,{container:"html",easing:"ease",offset:0,force:!1,cancelable:!0})}renderSearchField(){return this.configuration.searchPage&&!this.configuration.headerSearch||this.configuration.headerSearch&&this.isSearchFieldVisible||this.searchFieldOnly}get showResults(){return!this.errorOccurred&&0!==this.searchData?.results.length}onSearchFocus(){this.searchFieldOnly||this.focusSearchField()}onSearchBlur(){this.searchFieldOnly||this.blurSearchField()}get isSearchFieldShouldBeFocused(){return!this.searchFieldOnly&&this.isSearchFieldFocused}renderSearchFilters(){return this.filters.length>1||this.isContentLoading}renderPagination(){return!!this.searchData?.page&&this.searchData?.page.totalPages>=1&&!this.isContentLoading}renderResults(){return!!this.configuration.searchPage&&!!this.searchData&&!this.searchFieldOnly}getTotal(){return this.searchData?.totals??0}getTotalActiveResults(){let t=0;for(const e of this.filters)e.selected&&e.itemsAvailable&&(t=e.itemsAvailable);return t}get analytics(){return{trackingEvent:"component/searchbar/impression",trackingInfo:(0,B.w)("searchbar","/searchbar","searchbar")}}};ct([(0,a.kv)({required:!0})],dt.prototype,"translations",void 0),ct([(0,a.kv)({required:!0})],dt.prototype,"configuration",void 0),ct([(0,a.kv)({default:!0})],dt.prototype,"isFullBleed",void 0),ct([(0,a.kv)({default:!1})],dt.prototype,"searchFieldOnly",void 0),ct([(0,a.ku)()],dt.prototype,"t",void 0),ct([ht(r.tA.UPDATE_SEARCH_PAGE_CONFIG)],dt.prototype,"setSearchPageStoreConfig",void 0),ct([ht(r.tA.FOCUS_SEARCH_FIELD)],dt.prototype,"focusSearchField",void 0),ct([ht(r.tA.BLUR_SEARCH_FIELD)],dt.prototype,"blurSearchField",void 0),ct([ut],dt.prototype,"isSearchFieldVisible",void 0),ct([ut],dt.prototype,"isSearchFieldFocused",void 0),dt=it=ct([(0,a.uA)({name:"search-container",components:{SearchResultNoResult:()=>s.e(2597).then(s.bind(s,9374)),SearchTitle:nt,SearchFilters:_,SearchResultOverview:()=>s.e(8881).then(s.bind(s,2109)),Pagination:()=>s.e(6380).then(s.bind(s,2775)),SearchInput:Q,Loader:J.A,TransitionExpand:z.A}})],dt);var gt=dt,pt=(0,u.A)(gt,function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"search"},[e("transition-expand",[t.renderSearchField()?e("div",[e("div",{staticClass:"search__field",class:{container:t.isFullBleed},attrs:{"data-tracking-event":t.analytics.trackingEvent,"data-tracking-info":t.analytics.trackingInfo}},[e("SearchInput",{attrs:{"input-value":t.searchTerm,"search-suggestions":t.searchSuggestions,"suggestions-enabled":t.configuration.suggestionsEnabled,focus:t.isSearchFieldShouldBeFocused},on:{onSubmit:(e,s)=>t.onSearchInputSubmit(e,s),onChange:e=>t.onSearchInputChange(e),onFocus:()=>t.onSearchFocus(),onBlur:()=>t.onSearchBlur()}})],1)]):t._e()]),t._v(" "),t.renderResults()?e("div",{staticClass:"search__results",attrs:{"data-scrollTo":"searchResult"}},[t.isLoading?e("div",{staticClass:"overlay"},[e("div",{staticClass:"overlay__content"},[e("Loader")],1)]):t._e(),t._v(" "),e("div",{staticClass:"container"},[t.showResults?e("SearchTitle",{attrs:{totals:t.searchData.totals,"show-content-loader":t.isContentLoading}}):t._e(),t._v(" "),t.renderSearchFilters()?e("SearchFilters",{attrs:{filters:t.filters,"show-content-loader":t.isContentLoading},on:{onFilterSelect:(e,s)=>t.onSelectFilter(e,s)}}):t._e(),t._v(" "),t.showResults?t._e():e("SearchResultNoResult",{attrs:{message:t.searchNoResultMessage}}),t._v(" "),t.showResults?e("SearchResultOverview",{attrs:{results:t.searchData.results,"show-content-loader":t.isContentLoading}}):t._e(),t._v(" "),t.renderPagination()?e("Pagination",{staticClass:"search-pagination",attrs:{"active-page":t.currentPage,"number-of-pages":t.searchData.page.totalPages,"page-size":t.searchData.maxResultsPerPage,"ignore-tracking":!0},on:{onPaginationClick:(e,s)=>t.onPaginationClick(e,s)}}):t._e()],1)]):t._e()],1)},[],!1,null,null,null).exports,ft=s(9744);var vt={getComponentDefinition:()=>pt,getStoreDefinitions:()=>[ft.z]}},1860:function(t,e,s){s.d(e,{k:function(){return r}});var a=s(6660),i=s.n(a);
1const r=new class{constructor(){this.getSearchData=async(t,e,s)=>{const a={url:t,method:"GET",params:e},r=await i().request(a);return this.mapSearchResultBlogData(r.data,s)},this.getSearchSuggestionsData=async(t,e)=>{const s={url:t,method:"GET",params:{query:e||"",page:1,resultSize:6,type:"auto"}};return(await i().request(s)).data}}mapSearchResultBlogData(t,e){return{maxResultsPerPage:t.meta.page.size,page:{currentPage:t.meta.page.current,totalPages:t.meta.page.total_pages},results:t.results.map(t=>({id:t.id,name:t.name,description:t.description,link:t.link,thumbnail:t.image??e})),totals:t.meta.page.total_results,facets:{roomTypes:t.facets.roomtype?.[0].data.map(t=>t.value),subTypes:t.facets.subtype?.[0].data.map(t=>t.value)}}}}}}]);

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.