1"use strict";(self.webpackChunkHost_shell_app=self.webpackChunkHost_shell_app||[]).push([[5641],{1204:function(e,t,n){n.d(t,{z:function(){return i}});var i=function(e){return e.reduce(function(e,t){var n,i;return(null==t?void 0:t.slugPath)&&(e[t.slugPath]={id:t.id,name:null!==(n=t.name)&&void 0!==n?n:"",path:null!==(i=t.path)&&void 0!==i?i:"",slugPath:t.slugPath}),e},{})}},6078:function(e,t,n){n.d(t,{k:function(){return d}});var i,r=n(56976),a=n(93939),o=n(65270),l=n(65959),s=n(87098),u=n(21425),d=(i=(0,r._)(function(e){var t,n,i,r,d,c,m;return(0,l.__generator)(this,function(l){switch(l.label){case 0:return t=e.apiBaseUrl,n=e.locale,i=e.clientConfig,d=void 0===(r=e.segment)?"":r,[4,(0,u.k)(t,d,(0,o._)((0,a._)({},i),{signal:null!==(c=null==i?void 0:i.signal)&&void 0!==c?c:AbortSignal.timeout(1e4)})).cfhsMetadata({},(0,s.t)({locale:n}))];case 1:return[2,null!==(m=l.sent().cfhsMetadata)&&void 0!==m?m:[]]}})}),function(e){return i.apply(this,arguments)})},10227:function(e,t,n){n.d(t,{N:function(){return o}});var i=n(77234),r=n(96180),a=n(48191),o=function(e,t,n){var o,l,s,u,d,c,m=(0,i.g)({htmlString:null!==(d=null===(l=e._highlightResult)||void 0===l?void 0:null===(o=l.id)||void 0===o?void 0:o.value)&&void 0!==d?d:""}),p=(0,i.g)({htmlString:null!==(c=null===(u=e._highlightResult)||void 0===u?void 0:null===(s=u.modelCode)||void 0===s?void 0:s.value)&&void 0!==c?c:""}),v="";e.hierarchy&&e.categoryArray&&e.categoryArray.length>0&&(v=e.hierarchy[(0,r.A)(e.categoryArray.length-1,n)]);var f="";return v&&(f=(0,a.d)(v,t).at(-1)),{id:m,modelCode:p,category:f,plainId:e.id,isDiscontinued:e.isDiscontinued}}},14034:function(e,t,n){n.d(t,{Q:function(){return a}});var i=n(21512),r=n(96180),a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.rV;if(!(t<1))return e[(0,r.A)(t,n)]}},21425:function(e,t,n){n.d(t,{k:function(){return L}});var i,r,a,o,l,s,u,d,c,m,p,v,f=n(11941),g=n(93939),h=n(65270),y=n(90891),A=n(72805),T=n(83311),P=n(84436);function C(){var e=(0,T._)(["\n query cfhsMetadata {\n cfhsMetadata {\n id\n name\n slugPath\n path\n synonyms\n }\n }\n"]);return C=function(){return e},e}function E(){var e=(0,T._)(["\n query productsByIdsInFinder($ids: [String!]!, $isLocalPortfolioEnabled: Boolean! = false) {\n productsById(ids: $ids, isLocalPortfolioEnabled: $isLocalPortfolioEnabled) {\n id\n headline\n images {\n url\n title\n }\n brand\n subBrand\n exclusiveToOtherCustomers\n isDiscontinued\n isProductLineAuthorized\n isUnderDevelopment @include(if: $isLocalPortfolioEnabled)\n isUnextendedProduct @include(if: $isLocalPortfolioEnabled)\n }\n }\n"]);return E=function(){return e},e}(i=u||(u={})).AfterResolverType="AFTER_RESOLVER",i.BeforeResolverType="BEFORE_RESOLVER",i.ValidationType="VALIDATION",(r=d||(d={})).ArchivedType="ARCHIVED",r.PublishedType="PUBLISHED",(a=c||(c={})).ApprovalType="APPROVAL",a.AssetTypeType="ASSET_TYPE",a.CertificationBodyType="CERTIFICATION_BODY",a.CompanyTypeType="COMPANY_TYPE",a.CountryType="COUNTRY",a.DocumentType="DOCUMENT",a.DrawingType="DRAWING",a.LanguageType="LANGUAGE",a.OrganizationChannelType="ORGANIZATION_CHANNEL",a.PhotoType="PHOTO",a.ProductTypeType="PRODUCT_TYPE",a.PublicationChannelType="PUBLICATION_CHANNEL",a.RegionRelevanceType="REGION_RELEVANCE",a.SoftwareType="SOFTWARE",a.SoftwareCharacteristicType="SOFTWARE_CHARACTERISTIC",a.VideoType="VIDEO",(o=m||(m={})).CustomerSpecificType="CUSTOMER_SPECIFIC",o.EmptyType="EMPTY",o.InternalType="INTERNAL",o.PublicType="PUBLIC",(l=p||(p={})).ArchivedType="ARCHIVED",l.PublishedType="PUBLISHED",(s=v||(v={})).ArchivedType="ARCHIVED",s.PublishedType="PUBLISHED";var b=(0,P.Ay)(C()),I=(0,P.Ay)(E()),_=function(e,t,n,i){return e()},L=function(e,t,n){var i;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_;return{cfhsMetadata:function(n,i,r){return t(function(t){return e.request({document:b,variables:n,requestHeaders:(0,g._)({},i,t),signal:r})},"cfhsMetadata","query",n)},productsByIdsInFinder:function(n,i,r){return t(function(t){return e.request({document:I,variables:n,requestHeaders:(0,g._)({},i,t),signal:r})},"productsByIdsInFinder","query",n)}}}((0,A.z)({endpoint:"".concat(e,"/graphql"),config:(0,h._)((0,g._)({},n),{headers:(0,g._)((0,f._)({},y.UP,t),null==n?void 0:n.headers),signal:null!==(i=null==n?void 0:n.signal)&&void 0!==i?i:AbortSignal.timeout(5e3)})}))}},42336:function(e,t,n){n.d(t,{P:function(){return f}});var i=n(71200),r=n(70851),a=n(45437),o=n(9062),l=n(59791),s=n(76553),u=n(72416),d=n(68793),c=n(97401),m=n(65072),p=n(22575),v={imageWrapper:"cat-imageWrapper__ooAVnw",imageContainer:"cat-imageContainer__A3lQFR",image:"cat-image__RU9P8t",modelCodeLabel:"cat-modelCodeLabel__q2z8EY"},f=function(e){var t=e.id,n=e.isDiscontinued,f=e.isExclusiveToOtherCustomers,g=e.isUnderDevelopment,h=e.modelCode,y=e.category,A=e.imageSrc,T=e.headline,P=e.inLabel,C=e.testIdPrefix,E=e.plainId,b=e.discontinuedProductTitle,I=e.exclusiveToOtherCustomersTitle,_=e.underDevelopmentProductTitle,L=e.isIdOverHeadline,S=e.renderImage,N=e.mosaicAssetsCdnUrl,O=e.isNotAvailable,U=e.notAvailableProductTitle,B=(0,i.useMemo)(function(){return(0,a.C)(T,t,L)},[T,t,L]);return i.createElement("section",{className:p.A.flex},i.createElement("div",{className:(0,r.default)(v.imageWrapper)},i.createElement(o.V,{className:(0,r.default)(v.imageContainer),src:A,isBordered:!0}
1,(0,l.I)({src:A,alt:T,className:v.image},N,S))),i.createElement("div",null,i.createElement(s.t,{className:(0,r.default)(p.A.textSemibold)},B[1]),!O&&i.createElement(i.Fragment,null,h&&i.createElement("p",{className:(0,r.default)(v.modelCodeLabel,p.A.mt1),"data-testid":(0,u.A)("model-code",C)},h),i.createElement("p",null,i.createElement(d.h,{category:y,inLabel:void 0===P?"in":P,testIdPrefix:C}))),O&&i.createElement("div",{className:(0,r.default)(p.A.mt3,p.A.flex,p.A.flexColumn)},i.createElement(c.S,{className:p.A.p2,plainId:E,title:U})),f&&i.createElement("div",{className:(0,r.default)(p.A.mt3,p.A.flex,p.A.flexColumn)},i.createElement(m.w,{plainId:E,notificationText:I,className:p.A.p2})),n&&!f&&i.createElement("div",{className:(0,r.default)(p.A.mt3,p.A.flex,p.A.flexColumn)},i.createElement(c.S,{className:p.A.p2,plainId:E,title:b})),g&&!f&&i.createElement("div",{className:(0,r.default)(p.A.mt3,p.A.flex,p.A.flexColumn)},i.createElement(c.S,{className:p.A.p2,plainId:E,title:_}))))}},65641:function(e,t,n){n.d(t,{q:function(){return F}});var i,r=n(56976),a=n(93939),o=n(65270),l=n(62508),s=n(14652),u=n(14043),d=n(65959),c=n(71200),m=n(4632),p=n(37630),v=n(68240),f=n(24628),g=n(27456),h=n(69129),y=n(28988),A=n(14034),T=n(88533),P=n(80359),C=[g.Rr.ReadUserCustomerIds],E=n(6534),b=n(87098),I=n(21425),_=(i=(0,r._)(function(e){var t,n,i,r,a,o,l,s,u,c;return(0,d.__generator)(this,function(d){switch(d.label){case 0:return t=e.apiBaseUrl,n=e.ids,i=e.locale,r=e.authorizationToken,a=e.clientConfig,l=void 0===(o=e.segment)?"":o,u=void 0!==(s=e.isLocalPortfolioEnabled)&&s,[4,(0,I.k)(t,l,a).productsByIdsInFinder({ids:n,isLocalPortfolioEnabled:u},(0,b.t)({locale:i,authorizationToken:r}))];case 1:return[2,null!==(c=d.sent().productsById)&&void 0!==c?c:[]]}})}),function(e){return i.apply(this,arguments)}),L=function(e){var t,n=e.productIds,i=e.locale,a=e.fetchAccessToken,o=e.businessSegment,l=e.apiBaseUrl,s=e.isUserLoggedIn,u=e.isLocalPortfolioEnabled,m=(0,c.useCallback)((t=(0,r._)(function(e){var t,n,r,c;return(0,d.__generator)(this,function(d){switch(d.label){case 0:if(n=void 0===(t=e.products)?[]:t,!s)return[3,2];return[4,null==a?void 0:a()];case 1:return r=d.sent(),[3,3];case 2:r=void 0,d.label=3;case 3:return c={},[4,_({ids:n,apiBaseUrl:l,segment:o,locale:i,authorizationToken:r,isLocalPortfolioEnabled:u})];case 4:return[2,(c.products=d.sent(),c)]}})}),function(e){return t.apply(this,arguments)}),[l,o,a,u,s,i]),p=(0,E.X)({idsByType:{products:n},fetcher:m,isEnabled:!0});return{productsByIdMap:p.itemsByTypeAndIdMap.products,isDataLoading:p.isDataLoading}},S=n(6078),N=n(1204),O=n(15030),U=n(67883),B=n(42336),R=n(10227),x=n(69074),D=["id","modelCode"],M=["id","modelCode","categoryArray","slug","isDiscontinued","hierarchy","brand","subBrand","productLineName","additionalProperties"],k=["id","modelCode","additionalProperties.alternatePartNumber"],H="products",q={iconId:"product-finder-search-icon"},F=function(e){var t,n=e.productsIndexName,i=e.mosaicAssetsCdnUrl,E=e.testIdPrefix,b=e.shouldClearQueryOnSelect,I=e.shouldRenderItemAsLink,_=e.productsPageUrlPrefix,F=e.productPageUrlDivider,V=e.searchButtonProps,w=e.productLinkRules,z=e.autocompleteOptions,Y=e.onProductSelect,Q=e.renderImage,W=e.isIdOverHeadline,$=e.cfhMetadataBySlugPath,G=e.isLocalizationEnabled,K=void 0!==G&&G,X=e.isLocalPortfolioEnabled,Z=e.portfolioApiBaseUrl,j=e.isUserLoggedIn,J=e.isExclusiveToOtherCustomersEnabled,ee=e.auth0BaseUrl,et=e.fetchAccessToken,en=e.locale,ei=e.isLoading,er=e.searchOptions,ea=e.consumerAnalyticsTag,eo=e.optionsLimit,el=void 0===eo?5:eo,es=e.analyticsTag,eu=void 0===es?"product-search":es,ed=e.businessSegment,ec=void 0===ed?"DPS":ed,em=e.inLabel,ep=void 0===em?"in":em,ev=e.discontinuedProductMessage,ef=void 0===ev?"This product has been discontinued":ev,eg=e.underDevelopmentProductMessage,eh=void 0===eg?"This product is under development":eg,ey=e.autoCompleteId,eA=e.suggestionsMinRequestedInputLength,eT=e.showNoOptions,eP=e.exclusiveToOtherCustomerMessage,eC=void 0===eP?"This product is customer exclusive.":eP,eE=e.notAvailableProductMessage,eb=void 0===eE?"This product is not available":eE,eI=(0,l._)(e,["productsIndexName","mosaicAssetsCdnUrl","testIdPrefix","shouldClearQueryOnSelect","shouldRenderItemAsLink","productsPageUrlPrefix","productPageUrlDivider","searchButtonProps","productLinkRules","autocompleteOptions","onProductSelect","renderImage","isIdOverHeadline","cfhMetadataBySlugPath","isLocalizationEnabled","isLocalPortfolioEnabled","portfolioApiBaseUrl","isUserLoggedIn","isExclusiveToOtherCustomersEnabled","auth0BaseUrl","fetchAccessToken","locale","
1isLoading","searchOptions","consumerAnalyticsTag","optionsLimit","analyticsTag","businessSegment","inLabel","discontinuedProductMessage","underDevelopmentProductMessage","autoCompleteId","suggestionsMinRequestedInputLength","showNoOptions","exclusiveToOtherCustomerMessage","notAvailableProductMessage"]),e_=(0,s._)((0,c.useState)($),2),eL=e_[0],eS=e_[1],eN=(0,s._)((0,c.useState)(!1),2),eO=eN[0],eU=eN[1],eB=(0,s._)((0,c.useState)([]),2),eR=eB[0],ex=eB[1],eD=(0,c.useRef)(!1),eM=(0,c.useRef)(!1),ek=(0,c.useContext)(h.M).algoliaService,eH=(0,c.useMemo)(function(){var e;return null==ek?void 0:null===(e=ek.getSearchClient)||void 0===e?void 0:e.call(ek)},[ek]),eq=(0,f.n)({apiAudience:g.T9.SecuredKeysApi,apiScope:C,auth0BaseUrl:ee}).getAccessToken,eF=(0,p.gC)(K,en),eV=(0,c.useCallback)(function(e){ex(e)},[]),ew=(0,c.useCallback)((t=(0,r._)(function(e,t){var n;return(0,d.__generator)(this,function(i){switch(i.label){case 0:if(eD.current)return[3,4];eU(!0),eD.current=!0,i.label=1;case 1:return i.trys.push([1,,3,4]),[4,(0,S.k)({apiBaseUrl:Z,locale:e,segment:t})];case 2:return n=i.sent(),eS((0,N.z)(n)),[3,4];case 3:return eU(!1),eD.current=!1,[7];case 4:return[2]}})}),function(e,n){return t.apply(this,arguments)}),[Z]);(0,v.E)(function(){eM.current=!1,$||ew(eF,ec)}),(0,c.useEffect)(function(){eM.current?ew(eF,ec):eM.current=!0},[eF,ec]);var ez=L({apiBaseUrl:Z,productIds:(0,c.useMemo)(function(){return(0,x.m)(eR,H).map(function(e){return e.id})||[]},[eR]),locale:eF,businessSegment:ec,isUserLoggedIn:j,isLocalPortfolioEnabled:X,fetchAccessToken:(0,c.useMemo)(function(){return null!=et?et:eq},[et,eq])}),eY=ez.productsByIdMap,eQ=ez.isDataLoading,eW=(0,c.useRef)(eY);(0,c.useEffect)(function(){eW.current=eY},[eY]);var e$=(0,c.useCallback)(function(e){if(Y){var t,n,i=null===(t=eW.current)||void 0===t?void 0:t[e.item.id],r=(0,a._)({},e.item,i&&{headline:null!==(n=i.headline)&&void 0!==n?n:"",images:i.images});Y((0,o._)((0,a._)({},e),{item:r}))}},[Y]),eG=(0,c.useCallback)(function(e){var t=e.categoryArray,n=e.slug,i=e.isDiscontinued;return(0,U.m)({idSlug:n,categoryArray:t,isDiscontinued:i,urlPrefix:_,productPageUrlDivider:F,rules:w})},[w,F,_]),eK=(0,c.useMemo)(function(){return(0,o._)((0,a._)({},z),{getSources:function(e){var t=e.query;return eH?[(0,a._)({sourceId:H,getItems:function(){var e;return(0,m.C)({searchClient:eH,queries:[{indexName:n,query:t,params:(0,o._)((0,a._)({restrictSearchableAttributes:D,attributesToHighlight:k,highlightPreTag:P.Bn,highlightPostTag:P.M4,hitsPerPage:el,attributesToRetrieve:M},er),{analyticsTags:[eu,ea].concat((0,u._)(null!==(e=null==er?void 0:er.analyticsTags)&&void 0!==e?e:[])).filter(Boolean)})}]})},onSelect:function(e){b&&e.setQuery(""),e$(e)}},I&&{getItemUrl:function(e){return eG(e.item)}})]:[]}})},[eu,z,ea,eG,e$,el,n,eH,er,b,I]),eX=(0,c.useCallback)(function(e){var t=e.categoryArray.length-1,n=(0,R.N)(e);if(eY){var r,l,s,u,d,m,p=eY[e.id];n.headline=(0,y.W)({headline:null!==(s=null==p?void 0:p.headline)&&void 0!==s?s:"",brand:null!==(u=null==p?void 0:p.brand)&&void 0!==u?u:"",subBrand:null!==(d=null==p?void 0:p.subBrand)&&void 0!==d?d:""}),n.imageSrc=null!==(m=null==p?void 0:null===(l=p.images)||void 0===l?void 0:null===(r=l[0])||void 0===r?void 0:r.url)&&void 0!==m?m:"",J&&(n.isExclusiveToOtherCustomers=!!(null==p?void 0:p.exclusiveToOtherCustomers)),n.isDiscontinued=!!(null==p?void 0:p.isDiscontinued),n.isUnderDevelopment=!!(null==p?void 0:p.isUnderDevelopment),n.isNotAvailable=!!(null==p?void 0:p.isUnextendedProduct)}if(K&&eL&&!n.isNotAvailable){var v=(0,A.Q)(e.hierarchy,t);v&&(n.category=(0,O.R)({slug:v,defaultName:n.category,cfhMetadataBySlugPath:eL}))}return c.createElement(B.P,(0,o._)((0,a._)({},n),{isIdOverHeadline:W,inLabel:ep,discontinuedProductTitle:ef,underDevelopmentProductTitle:eh,exclusiveToOtherCustomersTitle:eC,notAvailableProductTitle:eb,mosaicAssetsCdnUrl:i,renderImage:Q}))},[K,eL,eY,W,ep,ef,eh,i,Q,eC,J,eb]),eZ=(0,c.useMemo)(function(){return(0,a._)({},q,V)},[V]);return c.createElement(T.Q,(0,a._)({autoCompleteId:void 0===ey?"product-finder":ey,searchButtonProps:eZ,isSearchBarWithButton:!1,autocompleteOptions:eK,suggestionsMinRequestedInputLength:void 0===eA?3:eA,showNoOptions:void 0!==eT&&eT,testIdPrefix:E,getCollectionOptionLabel:eX,isLoading:ei||eO||eQ,onCollectionsChange:eV},eI))}},67883:function(e,t,n){n.d(t,{m:function(){return a}});var i=n(6735),r=n(7679),a=function(e){var t=e.categoryArray,n=e.idSlug,a=e.urlPrefix,o=void 0===a?i.K7:a,l=e.productPageUrlDivider,s=void 0===l?i.qQ:l,u=e.isDiscontinued,d=e.rules,c=void 0===d?{}:d,m=c.isCfhVisibleForDiscontinuedProducts,p=c.excludeCfhPathFromProductUrl;return(0,r.k)({categoryArray:t,idSlug:n,productPageUrlDivider:s,urlPrefix:o,excludeCfhPath:void 0!==p&&p||!(void 0!==m&&m)&&void 0!==u&&u})}},68793:function(e,t,n){n.d(t,{h:function(){return s}});var i=n(71200),r=n(70851),a=n(72416),o=n(26380),l={categoryLabel:"categoryLabel__Yx27ly"},s=function(e){var t=e.addDash,n=e.category,s=e.inLabel,u=e.testIdPrefix;return n?i.createElement("span",{className:(0,r.default)(l.categoryLabel,o.A.mt2),"data-testid":(0,a.A)("category",u)},t?i.createElement(i.Fragment,null," â "):null,i.createElement("span",{className:(0,r.default)(o.A.textSemibold)},s)," ",i.createElement("span",{className:o.A.colorTextStrong},n)):null}},69074:function(e,t,n){n.d(t,{m:function(){return i}});var i=function(e,t){var n;return(null===(n=e.find(function(e){return e.source.sourceId===t}))||void 0===n?void 0:n.items)||[]}}}]);
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.