1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[161,1130,1197,1590,2494,3530,3947,5376,9733,10637,12970,13035,13102,14399,14423,15435,15542,21638,22542,23511,23578,24875,25911,26328,32114,33018,35351,35416,35483,36780,36804,37816,44019,44923,45892,45959,47256,47321,48292,54495,55399,57732,57864,59185,60197,67304,68273,68340,69661,69702,69769,70673,76876,77780,78749,79209,80113,81149,81566,82578,82995,90589,90654,90721,92042,92150,93054,99257],{1025:(e,t,r)=>{"use strict";function s(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function i(e){return e.split("").map(e=>e.match(/(\d|\w)+/g)?e:e.charCodeAt(0)).join("")}r.d(t,{e:()=>i,r:()=>s})},2982:(e,t,r)=>{"use strict";r.r(t),r.d(t,{atomic_commerce_search_box_query_suggestions:()=>g,atomic_commerce_search_box_recent_queries:()=>d});var s=r(28512),i=r(95588),n=r(23787),a=r(85043),o=r(33832),c=r(80699),l=r(55530),h=r(22034),u=r(48636);r(81476),r(76554);let g=class{constructor(e){(0,s.r)(this,e),this.error=void 0,this.icon=void 0,this.maxWithQuery=void 0,this.maxWithoutQuery=void 0}componentWillLoad(){try{(0,o.d)(e=>(this.bindings=e,this.initialize()),this.host)}catch(e){this.error=e}}initialize(){let e=this.bindings.engine,{registerQuerySuggest:t,fetchQuerySuggestions:r}=(0,i.a)(e);return e.dispatch(t({id:this.bindings.id,count:this.bindings.numberOfQueries})),{position:Array.from(this.host.parentNode.children).indexOf(this.host),onInput:()=>e.dispatch(r({id:this.bindings.id})),renderItems:()=>this.renderItems()}}renderItems(){let e=""!==this.bindings.searchBoxController.state.value?this.maxWithQuery:this.maxWithoutQuery;return this.bindings.searchBoxController.state.suggestions.slice(0,e).map(e=>this.renderItem(e))}renderItem(e){let t=""!==this.bindings.searchBoxController.state.value;return{...(0,a.g)(e,this.bindings.i18n),content:(0,s.h)(a.b,null,(0,s.h)(a.a,{icon:this.icon||n.S,hasSuggestion:this.bindings.getSuggestions().length>1}),(0,s.h)(a.Q,{suggestion:e,hasQuery:t})),onSelect:()=>{this.bindings.searchBoxController.selectSuggestion(e.rawValue)}}}render(){if(this.error)return(0,s.h)("atomic-component-error",{key:"a1b91fa7ffb6a53623e7790713746c654e43944b",element:this.host,error:this.error})}get host(){return(0,s.g)(this)}},d=class{constructor(e){(0,s.r)(this,e),this.maxWithQuery=3,this.warnUser=(0,h.o)(()=>this.bindings.engine.logger.warn("The recent queries feature is deactivated because analytics are disabled.")),this.error=void 0,this.icon=void 0,this.maxWithQuery=3,this.maxWithoutQuery=void 0}componentWillLoad(){try{(0,o.d)(e=>(this.bindings=e,this.initialize()),this.host)}catch(e){this.error=e}}renderIcon(){return this.icon||c.C}initialize(){return this.storage=new l.a,this.recentQueriesList=(0,i.b)(this.bindings.engine,{initialState:{queries:this.retrieveLocalStorage()},options:{maxLength:1e3,clearFilters:this.bindings.clearFilters}}),this.recentQueriesList.subscribe(()=>this.updateLocalStorage()),{position:Array.from(this.host.parentNode.children).indexOf(this.host),renderItems:()=>this.renderItems()}}retrieveLocalStorage(){return this.storage.getParsedJSON(l.S.RECENT_QUERIES,[])}updateLocalStorage(){return this.recentQueriesList.state.analyticsEnabled?this.storage.setJSON(l.S.RECENT_QUERIES,this.recentQueriesList.state.queries):this.disableFeature()}disableFeature(){this.warnUser(),this.storage.removeItem(l.S.RECENT_QUERIES)}renderItems(){if(!this.recentQueriesList.state.analyticsEnabled)return[];let e=this.bindings.searchBoxController.state.value,t=""!==e?this.maxWithQuery:this.maxWithoutQuery,r=this.recentQueriesList.state.queries.filter(t=>t!==e&&t.toLowerCase().startsWith(e.toLowerCase())).slice(0,t).map(e=>this.renderItem(e));return r.length&&r.unshift(this.renderClear()),r}renderClear(){return{...(0,u.g)(this.bindings.i18n),content:(0,s.h)(u.R,{i18n:this.bindings.i18n}),onSelect:()=>{this.recentQueriesList.clear(),this.bindings.triggerSuggestions()}}}renderItem(e){let t=this.bindings.searchBoxController.state.value;return{...(0,u.a)(e,this.bindings.i18n),content:(0,s.h)(u.d,null,(0,s.h)(u.c,{icon:this.renderIcon()}),(0,s.h)(u.b,{query:t,value:e})),onSelect:()=>{if(this.bindings.isStandalone){this.bindings.searchBoxController.updateText(e),this.bindings.searchBoxController.submit();return}this.recentQueriesList.executeRecentQuery(this.recentQueriesList.state.queries.indexOf(e))}}}
1render(){if(this.error)return(0,s.h)("atomic-component-error",{key:"5f8ecb0503e1dc57e67a863d1ad54a8c0ee1b4f6",element:this.host,error:this.error})}get host(){return(0,s.g)(this)}}},23787:(e,t,r)=>{"use strict";r.d(t,{S:()=>s});let s='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m6.4 0c3.5 0 6.4 2.9 6.4 6.4 0 1.4-.4 2.7-1.2 3.7l4 4c.4.4.4 1 .1 1.5l-.1.1c-.2.2-.5.3-.8.3s-.6-.1-.8-.3l-4-4c-1 .7-2.3 1.2-3.7 1.2-3.4-.1-6.3-3-6.3-6.5s2.9-6.4 6.4-6.4zm0 2.1c-2.3 0-4.3 1.9-4.3 4.3s1.9 4.3 4.3 4.3 4.3-1.9 4.3-4.3-1.9-4.3-4.3-4.3z"/></svg>'},33832:(e,t,r)=>{"use strict";r.d(t,{a:()=>o,d:()=>a,e:()=>c});var s=r(78308),i=r(22034);let n=["atomic-search-box","atomic-insight-search-box","atomic-commerce-search-box"],a=(e,t)=>{if(t.dispatchEvent((0,s.b)("atomic/searchBoxSuggestion/register",e)),!(0,i.c)(t,n.join(", ")))throw Error(`The "${t.nodeName.toLowerCase()}" component was not handled, as it is not a child of the following elements: ${n.join(", ")}`)};function o(e){return!e.query}function c(e){return!!e.query}},48636:(e,t,r)=>{"use strict";r.d(t,{R:()=>u,a:()=>a,b:()=>h,c:()=>l,d:()=>c,g:()=>o});var s=r(76554),i=r(28512),n=r(1025);let a=(e,t)=>({part:"recent-query-item",query:e,key:`recent-${(0,n.e)(e)}`,ariaLabel:t.t("recent-query-suggestion-label",{query:e,interpolation:{escapeValue:!1}})}),o=e=>({key:"recent-query-clear",ariaLabel:e.t("clear-recent-searches",{interpolation:{escapeValue:!1}}),part:"recent-query-title-item suggestion-divider",hideIfLast:!0}),c=(e,t)=>(0,i.h)("div",{part:"recent-query-content",class:"flex items-center break-all text-left"},t),l=({icon:e})=>(0,i.h)("atomic-icon",{part:"recent-query-icon",icon:e,class:"mr-2 h-4 w-4 shrink-0"}),h=({query:e,value:t})=>""===e?(0,i.h)("span",{part:"recent-query-text",class:"line-clamp-2 break-all"},t):(0,i.h)("span",{part:"recent-query-text",class:"line-clamp-2 break-all",innerHTML:s.Z.highlightString({content:t,openingDelimiter:'<span part="recent-query-text-highlight" class="font-bold">',closingDelimiter:"</span>",highlights:[{offset:e.length,length:t.length-e.length}]})}),u=({i18n:e})=>(0,i.h)("div",{part:"recent-query-title-content",class:"flex w-full justify-between"},(0,i.h)("span",{class:"font-bold",part:"recent-query-title"},e.t("recent-searches")),(0,i.h)("span",{part:"recent-query-clear"},e.t("clear")))},55530:(e,t,r)=>{"use strict";var s,i;r.d(t,{S:()=>s,a:()=>n}),(i=s||(s={})).RECENT_QUERIES="coveo-recent-queries",i.STANDALONE_SEARCH_BOX_DATA="coveo-standalone-search-box-data",i.GENERATED_ANSWER_DATA="coveo-generated-answer-data";class n{clear(){return this.tryAccessLocalStorageOrWarn(()=>localStorage.clear(),()=>{})}getItem(e){return this.tryAccessLocalStorageOrWarn(()=>localStorage.getItem(e),()=>null)}getParsedJSON(e,t){let r=this.getItem(e);return r?this.tryJSONOrWarn(e,()=>JSON.parse(r),()=>t):t}key(e){return this.tryAccessLocalStorageOrWarn(()=>localStorage.key(e),()=>null)}get length(){return this.tryOrElse(()=>localStorage.length,()=>0)}removeItem(e){return this.tryAccessLocalStorageOrWarn(()=>localStorage.removeItem(e),()=>{})}setItem(e,t){return this.tryAccessLocalStorageOrWarn(()=>localStorage.setItem(e,t),()=>{})}setJSON(e,t){let r=this.tryJSONOrWarn(e,()=>JSON.stringify(t),()=>JSON.stringify({}));return this.setItem(e,r)}tryAccessLocalStorageOrWarn(e,t){return this.tryOrElse(e,()=>(console.warn("Error while trying to read or modify local storage. This can be caused by browser specific settings."),t()))}tryJSONOrWarn(e,t,r){return this.tryOrElse(t,()=>(console.warn(`Error while trying to do JSON manipulation with local storage entry. ${e}`),r()))}tryOrElse(e,t){try{return e()}catch(e){return console.warn(e),t()}}}},68273:e=>{function t(e){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=68273,e.exports=t},78308:(e,t,r)=>{"use strict";function s(e,t){return new CustomEvent(e,{detail:t,bubbles:!0,cancelable:!0,composed:!0})}function i(e,t,r,s){let i=n=>{e.removeEventListener(t,i,s),"object"==typeof r?r.handleEvent.call(e,n):r.call(e,n)};e.addEventListener(t,i,s)}r.d(t,{b:()=>s,l:()=>i})},80699:(e,t,r)=>{"use strict";r.d(t,{C:()=>s});let s='<svg fill="none" stroke="currentColor" stroke-linejoin="round" stroke-linecap="round" viewB
1ox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="7.5"/><path d="m8.5 4.5v4"/><path d="m10.3066 10.1387-1.80932-1.5768"/></svg>'},85043:(e,t,r)=>{"use strict";r.d(t,{Q:()=>c,a:()=>o,b:()=>a,g:()=>n});var s=r(28512),i=r(1025);let n=(e,t)=>({part:"query-suggestion-item",key:`qs-${(0,i.e)(e.rawValue)}`,query:e.rawValue,ariaLabel:t.t("query-suggestion-label",{query:e.rawValue,interpolation:{escapeValue:!1}})}),a=(e,t)=>(0,s.h)("div",{part:"query-suggestion-content",class:"flex items-center"},t),o=({icon:e,hasSuggestion:t})=>{if(t)return(0,s.h)("atomic-icon",{part:"query-suggestion-icon",icon:e,class:"mr-2 h-4 w-4 shrink-0"})},c=({suggestion:e,hasQuery:t})=>t?(0,s.h)("span",{part:"query-suggestion-text",class:"line-clamp-2 break-all",innerHTML:e.highlightedValue}):(0,s.h)("span",{part:"query-suggestion-text",class:"line-clamp-2 break-all"},e.rawValue)}}]); 2//# sourceMappingURL=15542.257bea4eeef549c8.js.map
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.