PageSourceSearch

https://www.nuanceaudio.com/_next/static/chunks/6461-655cf9717e9e4d47.js

js nuanceaudio.com collected 2026-09-24 18:21:44 UTC 15,048 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6461],{2212:function(e,t,r){r.d(t,{Z:function(){return M}});var n=r(85893),o=r(67294),a=r(653),i=r(5152),u=r.n(i),c=r(14416),l=r(18001),s=r(65474),d=r(30434),f=r(3954),p=r(95089),h=r(67814),y=r(6187),v=r(40514),g=r(61876),m=r(92186);let E=(0,g.createAsyncThunk)("error/resetSessionError",async(e,t)=>{let{dispatch:r,getState:n}=t,o=n(),a=await (0,y.Yz)(o);if(a.errorKey||a.errorCode){let e={...v.aP.error};r((0,m.Rn)(e))}});var S=r(2351),T=r(4310),w=r(94252),P=r(72784),_=r(72418),L=r(4598),A=r(14805),C=r(71143),O=r(61286);let R=(0,g.createAsyncThunk)("user/updateUserFromStorage",async(e,t)=>{let{dispatch:r,getState:n,rejectWithValue:o}=t;try{let e=C.Mw.getCurrentUserAndLoadAccount();if(e&&e.forUserId)return;let t=n(),o=(0,S.dC)(t);e&&e.lastUpdated&&(!o||o<e.lastUpdated)&&(r((0,A.oc)(e)),r(e.isGuest?(0,A.UP)(null):(0,A.Wx)(null)),r((0,_.L)()),r((0,L.W)()),r((0,P.l)()));return}catch(e){return O.Z.error("error: "+e),o(e)}});var x=r(92510),k=r(97388),b=r(57905),I=r(38749),U=r(9669),j=r.n(U),D=r(73707),N=r(11163),F=r(34022);let G=e=>{var t;let{children:r,isChatButtonVisible:a}=e,[i,u]=(0,o.useState)(!1),l=G.name,v=(0,c.useDispatch)(),g=(0,N.useRouter)(),{mySite:m}=(0,s.W4)(),P=null===(t=g.locale)||void 0===t?void 0:t.toLowerCase(),{i18n:_}=(0,D.$G)(),L=j().CancelToken,A=[],U=(0,b.bf)()[0],B=(0,c.useSelector)(k.S4),q=f.Wm.localeLangMap.find(e=>{let{currentLangCode:t}=(0,I.iV)("",e.langCode);return P===t}),M=(0,c.useSelector)(S.Zg),Z=(0,c.useSelector)(y.Yz,c.shallowEqual),W=(0,c.useSelector)(y.Ao),K={cancelToken:new L(function(e){A.push(e)})};return(0,o.useEffect)(()=>{B&&(0,x.W)(m)},[M,U,B]),(0,o.useEffect)(()=>{if(i||Z.errorKey!==p.gP&&Z.errorCode!==p.rS&&W.errorKey!==p.o0){if(Z.errorKey===p.xE){let e={...K};v(E()),v((0,T.k)(e))}}else{let e={...K};u(!0),v(E()),v((0,T.k)(e))}},[Z,W]),(0,o.useEffect)(()=>{let e;return i&&!M&&(e=setTimeout(()=>{let e=(0,y.Yz)({error:W,sessionError:Z}),t=(0,y.Ao)({error:W,sessionError:Z});e.errorKey||e.errorCode||Object.keys(t).length>0?(u(!1),g.push("/".concat(h.OT,"?sessionExpired=true"))):u(!1)},100)),()=>clearTimeout(e)},[i,M,g,Z,W]),O.Z.info("StoreAppContainer"),(0,o.useEffect)(()=>{let e=[],t={widget:l,storeId:m.storeID,cancelToken:new L(t=>{e.push(t)})};return q&&m&&(O.Z.info("INIT STATE FROM STORAGE SITE"),v((0,w.U)(t)),C.Mw.triggerUserStorageListener(()=>v(R(t)))),()=>{e.forEach(e=>e())}},[m,v,_,l,L,P]),O.Z.info("App routing setup in StoreAppContainer, selected country: ",P),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.p,{}),(0,n.jsx)(F.Z,{isChatButtonVisible:a,children:r})]})},B=u()(()=>r.e(5571).then(r.bind(r,45571)),{loadableGenerated:{webpack:()=>[45571]},ssr:!1}),q=u()(()=>r.e(2502).then(r.bind(r,22502)),{loadableGenerated:{webpack:()=>[22502]},ssr:!1});var M=e=>{let{children:t,isChatButtonVisible:r}=e,i=(0,c.useDispatch)(),{mySite:u}=(0,s.W4)();return(0,a.w)(),(0,o.useEffect)(()=>{let e=null==u?void 0:u.storeID;e&&i((0,l.I)({storeId:e}))},[i,null==u?void 0:u.storeID]),O.Z.info("App start in App.tsx"),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(q,{mySite:u}),(0,n.jsx)(G,{isChatButtonVisible:r,children:t}),(0,n.jsx)(B,{})]})}},30434:function(e,t,r){r.d(t,{p:function(){return d}});var n=r(34357),o=r(67814),a=r(61286),i=r(15859),u={checkMaintenanceStatus:async()=>{try{return(await fetch("".concat(i.Z.transactionHost).concat(i.Z.maintenanceServiceUrl),{credentials:"include"})).status}catch(e){return a.Z.error("Error on retrieving maintenance status - ".concat(i.Z.maintenanceServiceUrl),e),500}}},c=r(45524),l=r(11163),s=r(67294);let d=e=>{let{fromCourtesy:t}=e,r=(0,s.useRef)(null),a=(0,l.useRouter)();return(0,s.useEffect)(()=>(r.current=window.setInterval(async()=>{let e=await u.checkMaintenanceStatus();e===n.default.maintenanceStatus&&a.push(o.Dc),t&&e===c.OK&&a.back()},6e4),()=>{r.current&&clearInterval(r.current)}),[a,t]),null}},44794:function(e,t,r){r.d(t,{I:function(){return c}});var n=r(85893),o=r(53820),a=r(94979),i=r(67294),u=r(39778);let c="attributes.LX_SEARCH_PAGE_PRODUCT_TYPE",l=e=>e.sort((e,t)=>e.label.localeCompare(t.label));t.Z=()=>{let{items:e,refine:t}=(0,u.H)({attribute:c,transformItems:l}),[r,s]=(0,i.useState)("");return{items:e,selectedPT:r,getPTIcon:e=>{switch(e){case"contactLenses":return(0,n.jsx)(o.Yr,{width:28,height:18,viewBox:"0 0 25 25"});case"accessories":return(0,n.jsx)(a.vm,{width:28,height:18,viewBox:"0 0 25 25"});case"contactLensesAccessories":return(0,n.jsx)(o.Lf,{width:28,height:18,viewBox:"-7 0 28 24"});default:return(0,n.jsx)(a.zr,{width:28,height:18,viewBox:"0 0 32 32"})}},handleOnClickPT:e=>{s(r===e?"":e),t(e)}}}},89661:function(e,t,r){r.d(t,{k2:function(){return d},aj:function(){return U},qR:function(){return y}});var n,o=r(85893),a=r(7056),i=r(38749),u=r(39528),c=r(94128),l=r(33349);let s=e=>{let{children:t,checkForEmptyQuery:r,initIndexNameParams:n,routing:a,searchClientDefault:i,indexNameDefault:s,configure:d}=e,f=null!=i?i:(0,u.dQ)(r),p=null!=s?s:(0,u.kK)(n||{});return(0,o.jsxs)(c.p,{searchClient:f,indexName:p,routing:a,children:[(0,o.jsx)(l.T,{...d}),t(f)]})},d=e=>{var t;let{children:r,placement:n}=e,{langCode:u}=(0,a.d)(),c=(0,i.gv)(u),l="items"in n?null===(t=n.items)||void 0===t?void 0:t[0]:[],d=(null==l?void 0:l.groupedRule)||"",f=(null==l?void 0:l.ungroupedRule)||"",p="displayProductsCount"in l?+(null==l?void 0:l.displayProductsCount):3;return(0,o.jsx)(s,{checkForEmptyQuery:!1,initIndexNameParams:{locale:c,isGrouped:""!==d},configure:{facets:["*"],clickAnalytics:!0,hitsPerPage:p,ruleContexts:""===d?[f]:[d]},children:r})};var f=r(95831),p=r(40926),h=r(67294);let y=e=>{let{children:t}=e,{langCode:r}=(0,a.d)(),n=(0,i.gv)(r),u=(0,h.useMemo)(()=>({checkForEmptyQuery:!0,initIndexNameParams:{locale:n,sortOption:p.l4.QUERY_CMS_SUGGESTIONS},configure:{hitsPerPage:f.Mj,clickAnalytics:!0}}),[n]);return(0,o.jsx)(s,{...u,children:t})};var v=r(57905),g=r(44794),m=r(11163),E=r.n(m),S=r(46058);let T=e=>{let t={};return Object.keys(e).forEach(r=>
1{(r.includes("attributes_translated")||r.includes("attributes"))&&(t[r]=e[r])}),t},w=e=>{let t={};return Object.keys(e).forEach(r=>{r.includes("attributes_translated")&&(t[r]=e[r])}),t},P=e=>{let t={};return Object.keys(e||{}).forEach(r=>{if(r.includes("sort.discount.")){let n=null==e?void 0:e[r];t.discount=n}}),t},_=e=>{let t={};return e&&Object.keys(e||{}).forEach(r=>{if(r.includes("LX_SEARCH_PAGE_PRODUCT_TYPE")){let n=null==e?void 0:e[r];t[g.I]=n}}),t},L=(e,t)=>{var r;if(!e)return{};let n=null===(r=e["sort.price.".concat(t)])||void 0===r?void 0:r.split(":");return Array.isArray(n)?{priceFrom:n[0],priceTo:n[1]}:{}},A=(e,t,r)=>e||t?{["sort.price.".concat(r)]:"".concat(e,":").concat(t)}:{},C=e=>{let{qsModule:t,routeState:r,location:n}=e,{protocol:o,hostname:a,port:i="",pathname:u,hash:c}=n,l=T(r);r.query&&(l.query=encodeURIComponent(r.query)),r.page&&(l.page=r.page),(r.priceFrom||r.priceTo)&&(l.priceFrom=r.priceFrom,l.priceTo=r.priceTo),r.sortBy&&(l.sortBy=r.sortBy),r.discount&&(l.discount=r.discount);let s=t.str
1ingify(l,{addQueryPrefix:!0,indices:!1,arrayFormat:"repeat",encode:!1}),d="".concat(o,"//").concat(a).concat(""===i?"":":".concat(i)).concat(u).concat(s).concat(c);return(void 0===r.query||null===r.query)&&new URLSearchParams(window.location.search).get("query")&&(d=window.location.href),d},O=(e,t)=>{let r=e;if(t&&(r=r.replace(new RegExp("/".concat(t,"(\\/|\\?|$)")),"$1")),/^https?:\/\//i.test(r))try{let e=new URL(r);return"".concat(e.pathname).concat(e.search).concat(e.hash)}catch{}return r},R=e=>{if(/^https?:\/\//i.test(e))try{let t=new URL(e);return"".concat(t.pathname).concat(t.search).concat(t.hash)}catch{}return e},x=e=>t=>{let{qsModule:r,location:n}=t,o=r.parse(n.search,{ignoreQueryPrefix:!0});for(let e in o)e.includes("attributes_translated")&&!Array.isArray(o[e])&&(o[e]=[o[e]]);let{query:a="",page:i=0,sortBy:u=0,priceFrom:c,priceTo:l,discount:s,...d}=o,f=A(c,l,e);return{query:decodeURIComponent(a),page:null!=i?i:Number(i)-1,sortBy:u,range:f,menu:s?{["sort.discount.".concat(e)]:s}:void 0,refinementList:{...T(d)}}},k=e=>{let{indexName:t,customerSegment:r,locale:n}=e;return{stateToRoute(e){let o=e[t],a=L(null==o?void 0:o.range,r),i=(null==o?void 0:o.refinementList)?w(o.refinementList):{},c=P(null==o?void 0:o.menu),l=_(null==o?void 0:o.menu),s=Object.values(p.l4).reduce((e,t)=>(e[(0,u.kK)({locale:n,sortOption:t,customerSegment:r})]=t,e),{})[null==o?void 0:o.sortBy];return{query:null==o?void 0:o.query,page:null==o?void 0:o.page,...a,sortBy:s,...i,...c,...l}},routeToState(e){let o=e.sortBy?(0,u.kK)({locale:n,sortOption:Number(e.sortBy),customerSegment:r}):(0,u.kK)({locale:n,sortOption:p.l4.BEST_SELLERS,customerSegment:r});return{[t]:{page:e.page,query:e.query,range:e.range,refinementList:e.refinementList,sortBy:o,menu:e.menu,configure:{attributesToRetrieve:[Number(e.sortBy)===p.l4.PRICE_ASC||Number(e.sortBy)===p.l4.PRICE_DESC||e.menu||t.includes("cms")?"*":"x_groupkey"]}}}}}},b=(e,t,r,n)=>({router:(0,S.v)({singletonRouter:E(),serverUrl:t,routerOptions:{cleanUrlOnDispose:!1,createURL:C,parseURL:x(r),push(e){let t=R(e);t!=="".concat(window.location.pathname).concat(window.location.search).concat(window.location.hash)&&window.history.pushState({...window.history.state,as:t,url:O(e,E().locale)},"",t)}}}),stateMapping:k({indexName:e,customerSegment:r,locale:n})});var I=r(44950);let U=(n=e=>{let{children:t,plpInitParams:r}=e,{groupedIndexName:n,serverUrl:a,locale:i,configure:c}=r,l=(0,v.bf)()[0],{pageLimit:d}=f.PAGINATION_CONFIGS,p=b(n,a,l,i),y=(0,h.useMemo)(()=>({routing:p,indexNameDefault:n,searchClientDefault:u.uA,configure:{facets:["*"],hitsPerPage:d,clickAnalytics:!0,...c}}),[c,n,d,l,i,a]);return(0,o.jsx)(s,{...y,children:t})},e=>(0,o.jsx)(I.H,{...e.plpSSRInitParams,children:(0,o.jsx)(n,{...e})}))},61434:function(e,t,r){r.d(t,{n:function(){return i}});var n=r(85893),o=r(98840),a=r(4997);r(67294);let i=e=>t=>{let{height:r,...i}=t,{isRouterChange:u}=(0,o.l)();return u?(0,n.jsx)(a.Z,{height:r}):(0,n.jsx)(e,{...i})}},55621:function(e,t,r){r.d(t,{N6:function(){return l},L1:function(){return d},w0:function(){return s}});var n=r(85893),o=r(67294),a=r(47177);function i(e,t){switch(t.type){case"TOGGLE_DRAWER_FILTERS":return{...e,openDrawerFilters:t.payload};case"SET_SHOULD_LOAD_UNGROUPED":return{...e,shouldLoadUngrouped:t.payload};case"SET_FIRST_LOAD":return{...e,firstLoad:t.payload};case"SET_INTERNAL_APPLIED_FILTERS":let r={...e},n=(0,a.xs)(t.payload._internalAppliedFacets||[]);return t.payload.shouldLoadUngrouped&&(r._internalAppliedFacets=n,r.appliedFacets=n),r.shouldLoadUngrouped=t.payload.shouldLoadUngrouped,r;case"SET_PRODUCTS_MOBILE_LISTING_LAYOUT":return{...e,productsMobileListingLayout:t.payload};case"SET_LAST_SELECTED_PRODUCT":return{...e,lastSelectedProduct:t.payload};case"SET_WISHLIST_ITEMS":return{...e,wishlistItems:t.payload};case"SET_MULTIPLE":return{...e,...t.payload};default:return e}}let u=(0,o.createContext)(null),c=(0,o.createContext)(null);function l(e){let{initialState:t,children:r}=e,[a,l]=(0,o.useReducer)(i,t);return(0,n.jsx)(u.Provider,{value:a,children:(0,n.jsx)(c.Provider,{value:l,children:r})})}function s(){let e=(0,o.useContext)(u);if(!e)throw Error("usePlpState must be used within a PlpProvider");return e}function d(){let e=(0,o.useContext)(c);if(!e)throw Error("usePlpDispatch must be used within a PlpProvider");return e}},47177:function(e,t,r){r.d(t,{FK:function(){return n},xs:function(){return o}}),r(34357),r(3712),r(39528),r(6615),r(93277),r(76540);let n=async(e,t,r,n,o,a,i)=>{if(!r)return Promise.resolve({facets:{},suggestedFacets:[]});let u=[{indexName:t,params:{query:i||"",attributesToRetrieve:[],facets:r,...i?{}:{filters:a}}},{indexName:t,params:{query:"",attributesToRetrieve:[],facets:["*"],...i?{}:{filters:a},ruleContexts:["suggested_filters"]}}];return e.multipleQueries(u).then(e=>{var t,r,a,i,u,c;let{results:l}=e,{facets:s,renderingContent:d}=l[0];if(!s)return{facets:{},suggestedFacets:[]};let f=Object.entries(s).map(e=>{let[t,r]=e;return{key:t,value:r}}),p=f.filter(e=>!e.key.startsWith("sort.discount."));if(!o){let e=f.find(e=>e.key==="sort.discount.".concat(n));e&&p.push(e)}let h=null===(r=l[1].renderingContent)||void 0===r?void 0:null===(t=r.facetOrdering)||void 0===t?void 0:t.values,y=[];if(d&&d.facetOrdering&&d.facetOrdering.facets&&d.facetOrdering.facets.order&&d.facetOrdering.facets.order.length!==(null===(c=l[1].renderingContent)||void 0===c?void 0:null===(u=c.facetOrdering)||void 0===u?void 0:null===(i=u.facets)||void 0===i?void 0:null===(a=i.order)||void 0===a?void 0:a.length)){let e;h&&(e=Object.keys(h).map(e=>({key:e,value:h[e].order}))),y=e.map(e=>{let t=p.find(t=>t.key===e.key);if(t){let r=Object.keys(t.value),n=e.value.map(e=>r.find(t=>t===e)||null).filter(e=>e);return{key:e.key,value:n}}return null}).filter(e=>e)}return{facets:p.reduce((e,t)=>
1("attributes.LX_SEARCH_PAGE_PRODUCT_TYPE"!==t.key&&(e[t.key]=s[t.key]),e),{}),suggestedFacets:y}})},o=e=>e.map(e=>e.refinements.map(t=>({...t,refine:e.refine}))).flat()},93277:function(e,t,r){r.d(t,{l:function(){return n}});let n={NOT_FOUND:"NotFound",PRODUCT_LIST_PAGE:"ProductListPage",CATEGORY_PAGE:"CategoryPage",PRODUCT_PAGE:"ProductPage",ITEM_PAGE:"ItemPage",VARIANT_PAGE:"VariantPage",SEARCH_RESULT:"SearchResult"}},76540:function(e,t,r){r.d(t,{A4:function(){return c},D2:function(){return v},U0:function(){return m},am:function(){return f},ir:function(){return d},mj:function(){return s},oI:function(){return y},sF:function(){return p},w8:function(){return l},xb:function(){return g},xx:function(){return h}});var n=r(80129),o=r.n(n),a=r(79807),i=r(34357),u=r(93640);let c=(e,t)=>t+(e.startsWith("/")?e:"/".concat(e)),l=(e,t,r)=>{let[n,a]=e.split("?"),i=o().parse(a);return i[t]=null==r?"":r.toString(),"".concat(n,"?").concat(o().stringify(i))},s=e=>{window.history.replaceState({},"",e)},d=e=>{window.history.pushState({},"",e)},f=e=>a.Z.stringifyUrl({url:"",query:e},{encode:!1}),p=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return a.Z.parse(e,{decode:t})},h=(e,t,r)=>{if(!e)return"";if(t){let n=e.replace("/{cropName}/{width}","/".concat(t||"NOTFOUND","/").concat(r||"NOTFOUND"));return"".concat(i.default.cmsImageServerUrl).concat(n)}},y=e=>{if(!e)return"";let t=e.replace(/\/\{[^}]+\}\/\{[^}]+\}/,"");return"".concat(i.default.cmsImageServerUrl).concat(t)},v=e=>{let{mobile:t,deskL:r,deskS:n,tabletL:o,tabletP:a}=u.Xr[e]||{};return{mobile:t,deskL:r,deskS:n,tabletL:o,tabletP:a}},g=(e,t)=>{let{mobile:r,deskL:n,deskS:o,tabletL:a,tabletP:i}=v(e);return{mobile:h(t,(null==r?void 0:r.crop)||"",null==r?void 0:r.width),deskL:h(t,(null==n?void 0:n.crop)||"",null==n?void 0:n.width),deskS:h(t,(null==o?void 0:o.crop)||"",null==o?void 0:o.width),tabletL:h(t,(null==a?void 0:a.crop)||"",null==a?void 0:a.width),tabletP:h(t,(null==i?void 0:i.crop)||"",null==i?void 0:i.width)}},m=function(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=!e.startsWith("/")&&r?"/".concat(e):e,o="/";return n&&n.endsWith("/")&&(n=n.slice(0,-1)),t&&t.startsWith("/")&&(o=""),[n,t].join(o)}}}]);

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.