1/*! For license information please see component---node-modules-husky-x-gatsby-theme-husky-src-templates-l-2-product-page-splitter-l-2-product-page-splitter-tsx-f32460babceb1ffb40eb.js.LICENSE.txt */ 2"use strict";(self.webpackChunkhusky_site=self.webpackChunkhusky_site||[]).push([[553],{6251:function(e,a,t){t.r(a)},83645:function(e,a,t){t.r(a),t.d(a,{Head:function(){return K.p},default:function(){return J}});var r=t(45458),i=t(20249),s=t.n(i),n=t(74848),o=t(37630),d=t(26064),c=t(8242),l=t(23832),u=t(33380),m=t(6581),p=t(32485),b=t.n(p),g=t(96540),h=t(83393),v=t(66953),f=t(5020);try{t(6251)}catch(Y){if("MODULE_NOT_FOUND"!==Y.code)throw Y;console.warn("index.css / index-new.css not found, proceeding without it.")}function x(e,a){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)a.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]])}return t}const j=e=>{var{imageElements:a,buttonPrev:t,buttonNext:r,variant:i="single",progressIndicator:s="none"}=e,o=x(e,["imageElements","buttonPrev","buttonNext","variant","progressIndicator"]);return(0,n.jsx)(h.F,Object.assign({items:a.map(e=>({children:e})),variant:i,progressIndicator:s,buttonPrev:t,buttonNext:r},o))},k=({heading:e,subHeading:a,description:t,breadcrumbs:r,productId:i})=>(0,n.jsxs)("div",Object.assign({className:"cds-product-page-header__heading"},{children:[r&&(0,n.jsx)(v.B,Object.assign({className:"cds-product-page-header__breadcrumbs"},r)),i?(0,n.jsx)(f.HF,{productId:i}):null,(0,n.jsxs)("h1",Object.assign({className:"cds-product-page-header__title"},{children:[(0,n.jsx)(l.o,{content:e,weight:"bold",variant:"headline",size:"xl",tag:"span"}),a&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",Object.assign({className:"cds-product-page-header__hidden-space"},{children:"Â "})),(0,n.jsx)(l.o,{className:"cds-product-page-header__sub-heading",content:a,variant:"overline",tag:"span"})]})]})),t&&(0,n.jsx)(l.o,{className:"cds-product-page-header__description",content:t,variant:"body",size:"m",tag:"p"})]})),D=(0,g.forwardRef)((e,a)=>{var{mode:t,element:r,className:i,breadcrumbs:s,showBreadcrumbs:p,heading:g,subHeading:h,description:v,disclaimer:f,retailersBlock:D,variantSelector:I,carouselBlock:w,productId:y,shopifyBlockComponent:O,whereToBuyData:A}=e,N=x(e,["mode","element","className","breadcrumbs","showBreadcrumbs","heading","subHeading","description","disclaimer","retailersBlock","variantSelector","carouselBlock","productId","shopifyBlockComponent","whereToBuyData"]);return(0,n.jsxs)(c.w,Object.assign({ref:a,className:b()("cds-product-page-header",i),removeAllSpacing:!0,mode:t,element:r},N,{children:[(0,n.jsxs)(o.m,Object.assign({className:"cds-product-page-header__container",maxWidth:"max-grid"},{children:[(0,n.jsx)(k,{breadcrumbs:p?s:void 0,heading:g,subHeading:h,description:v,productId:y}),w&&(0,n.jsx)("div",Object.assign({className:"cds-product-page-header__media"},{children:(0,n.jsx)(j,Object.assign({},w))})),I||D?(0,n.jsxs)("div",Object.assign({className:"cds-product-page-header__variants"},{children:[I&&(0,n.jsx)(u.l,{variant1Dimension:I.variant1Dimension,variant2Dimension:I.variant2Dimension,currentDimension1:I.currentDimension1,currentDimension2:I.currentDimension2,variants:I.variants,singleVariant:I.singleVariant}),D&&(0,n.jsx)(d.F,{label:D.label,retailerLinks:D.retailerLinks,onClickRetailerName:D.onClickRetailerName,isDropdown:D.isDropdown,buttonLabel:D.buttonLabel})]})):null,O]})),f&&(0,n.jsx)(o.m,Object.assign({maxWidth:"max-grid",className:"cds-product-page-header__disclaimer"},{children:(0,n.jsx)(l.o,{content:f,variant:"body",size:"s",tag:"p"})})),A&&(0,n.jsx)(m.T,Object.assign({},A))]}))}),I=(0,g.forwardRef)((e,a)=>{var{mode:t,element:r,className:i,breadcrumbs:s,showBreadcrumbs:d,heading:l,splitter:u}=e,m=x(e,["mode","element","className","breadcrumbs","showBreadcrumbs","heading","splitter"]);return(0,n.jsx)(c.w,Object.assign({ref:a,className:b()("cds-product-page-header",i),removeAllSpacing:!0,mode:t,element:r},m,{children:(0,n.jsxs)(o.m,Object.assign({className:"cds-product-page-header__container",maxWidth:"max-grid"},{children:[(0,n.jsx)(k,{breadcrumbs:d?s:void 0,heading:l}),u]}))}))}),w=e=>(e=>!!e.splitter)(e)?(0,n.jsx)(I,Object.assign({},e)):(0,n.jsx)(D,Object.assign({},e));var y=t(74333),O=t(33595),A=t(66392),N=t(82670),B=t(56881),S=t(57471),_=t(68261),P=t(46887),T=t(15454),E=t(85412),L=t(76520),U=t(43692),H=t(72384),C=t(76519);const F=(e,a)=>a?e.slice().sort((e,t)=>
2{let{salsifyID:r}=e,{salsifyID:i}=t;return r===a?-1:i===a?1:0}):e,M=e=>{let{breadcrumbsUI:[{hideLastItem:a,navigationName:t,overflowButton:r}],breadcrumbs:i,productTitle:s,mode:n,showBreadcrumbs:o}=e;return{breadcrumbs:{navigationName:t,hideLastItem:a,items:(0,L.C)(i),overflowBtn:{children:r},linkComponent:P.A},showBreadcrumbs:null===o||o,heading:(0,H.Kn)(s),mode:n||void 0}},W=e=>{var a;let{variantSelector:[t],headerUI:{breadcrumbsUI:r,galleryUI:[i],variantNameField:s,showBreadcrumbs:n},productPageHeader:o,fields:d,disclaimer:c,productId:l,whereToBuyData:u,retailers:[m]}=e;const{productData:p,breadcrumbs:b}=d,{descriptionShort:h,productTitle:v,salsifyDigitalAssets:f,heroImageID:x,websiteImagesID:j,barcodeNumber:k}=p,D=j&&(I=j,f.filter(e=>I.includes(e.salsifyID)));var I;const w=(e=>e.map((e,a)=>{var t;return g.createElement(S.Y,Object.assign({key:e.salsifyID},(0,E.tv)({image:{gatsbyImageData:null===(t=e.localAsset.childImageSharp)||void 0===t?void 0:t.gatsbyImageData,url:e.salsifyUrl},alt:e.altText,objectFit:"contain"},0===a)))}))(j&&j.length>0?F(D,x):F(f,x));return{...M({breadcrumbsUI:r,breadcrumbs:b,showBreadcrumbs:n,mode:null==o?void 0:o.mode,productTitle:v}),description:(0,H.Kn)(h),...c&&{disclaimer:c},...m&&{retailersBlock:(0,U.FN)(m,p)},carouselBlock:{...(0,T.q)(i),imageElements:w},subHeading:p[s],...(null==t||null===(a=t.variants)||void 0===a?void 0:a.length)>0&&{variantSelector:(0,C.a)({variantSelector:t,productData:p})},productId:l,whereToBuyData:{...u,barcodeNumber:k}}},z=e=>{let{productPageHeaderBasic:a,productPageHeaderSplitter:t,headerSplitterAdditionalData:r}=e;return t?((e,a)=>{let{productPageHeaderWithSplitter:{breadcrumbsUI:t,showBreadcrumbs:r,splitter:i,mode:s},fields:n}=e;const{productData:o,breadcrumbs:d}=n,{productTitle:c}=o;return{...M({breadcrumbsUI:t,breadcrumbs:d,showBreadcrumbs:r,mode:s,productTitle:c}),splitter:i[0]?g.createElement(_.default,Object.assign({},i[0],a)):void 0}})(t,r):a?W(a):null};var R=t(60375),V=t(13114),G=t(89446),K=t(37205);const q="l2-product-page";var J=(0,G.A)(e=>{let{data:{profile:a,contentstackL2ProductPageWithSplitter:t,contentstackHeader:i,contentstackHeaderWithSplitter:n,contentstackFooter:o,contentstackFooterWithSplitter:
2d,contentstackInfoBar:c,contentstackSettings:l,allContentstackAssets:{nodes:u}},pageContext:{uid:m,locale:p,seoTitle:b,brand:h,pageTemplate:v,redirects:f}}=e;"undefined"==typeof window&&console.info("Building:",JSON.stringify({uid:m,locale:p,seoTitle:b}));const{body:x,fields:{productData:j},categories:k}=t,{bazaarvoiceUrl:D,siteUrl:I,bazaarvoiceProductFieldName:S,priceSpider:_,adimo:P,shoppablePlugin:T,pluginInformationText:E,mikmak:L}=l,U=(0,y.vc)(V.GTM_LOCALSTORAGE_DATA.lastProductIndex);R.c.emitViewItem(j,v,U);const{isPriceSpiderAvailable:H,isAdimoAvailable:C,isMikMakV1Available:F,isMikMakV2Available:M}=(0,O.Vs)({shoppablePlugin:T,priceSpider:_,adimo:P,mikmak:L}),W={url:D,productData:j,bazaarvoiceProductFieldName:S,brand:h,siteUrl:I,lang:p};(0,g.useEffect)(()=>{const e=()=>{(0,y.zx)(V.GTM_LOCALSTORAGE_DATA.lastProductIndex)};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e),(0,y.zx)(V.GTM_LOCALSTORAGE_DATA.lastProductIndex)}},[]);const G=k.map(e=>{let{title:a}=e;return q+"--"+s()(a)}),K={salsifyExternalData:j,jsonRTEImages:u,whereToBuyData:{barcodeNumber:j.barcodeNumber,isPriceSpiderAvailable:H,isAdimoAvailable:C,adimoKey:null==P?void 0:P.key,adimoButton:null==P?void 0:P.buttonText,isMikMakV1Available:F,isMikMakV2Available:M,mikmakAppId:null==L?void 0:L.appId,mikmakWidgetId:null==L?void 0:L.widgetId,mikmakButton:null==L?void 0:L.buttonText,shoppableInformationText:E},retailers:t.retailers},J=j?z({productPageHeaderSplitter:{...t},headerSplitterAdditionalData:{externalData:K,currentPageUid:m}}):null;return g.createElement(N.b,{redirects:f},g.createElement(B.P,{className:[q].concat((0,r.A)(G)).join(" "),headerBasic:i,headerWithSplitter:n,headerSplitterAdditionalData:{externalData:K,currentPageUid:m}
2,footerBasic:o,footerWithSplitter:d,footerSplitterAdditionalData:{externalData:K,currentPageUid:m},brand:h,infoBar:c,profile:a},g.createElement(O.f9,{shoppablePlugin:T,bazaarvoice:W,priceSpider:_,adimo:P,mikmak:L}),J?g.createElement(w,J):null,g.createElement(A.A,{items:x,externalData:K,currentPageUid:m})))},"contentstackL2ProductPageWithSplitter")}}]); 3//# sourceMappingURL=component---node-modules-husky-x-gatsby-theme-husky-src-templates-l-2-product-page-splitter-l-2-product-page-splitter-tsx-f32460babceb1ffb40eb.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.