1(window.__LOADABLE_LOADED_CHUNKS__=window.__LOADABLE_LOADED_CHUNKS__||[]).push([[35],{OZM5:function(t,e,a){var n=a("ZfjD"),r=a("cx2X");n({target:"Array",stat:!0,forced:!a("nphC")((function(t){Array.from(t)}))},{from:r})},"dj/k":function(t,e,a){a("Zvv+")("iterator")},mIv8:function(t,e,a){t.exports={variantsSection:"variantsSection-module--variantsSection--a_4zl",variantsContentBlock:"variantsSection-module--variantsContentBlock--1S81m",pickerItem:"variantsSection-module--pickerItem--3fb5M",selectedProduct:"variantsSection-module--selectedProduct--1UmU4",variantImage:"variantsSection-module--variantImage--2GIEB",reviewSummary:"variantsSection-module--reviewSummary--YgRGi",priceAndInfoHolder:"variantsSection-module--priceAndInfoHolder--3GTrE",flexTest:"variantsSection-module--flexTest--347lG",picker:"variantsSection-module--picker--1B3pJ",subDetailsHtml:"variantsSection-module--subDetailsHtml--292up",nextButton:"variantsSection-module--nextButton--yN1YR",prevButton:"variantsSection-module--prevButton--20vPh",modalButton:"variantsSection-module--modalButton--1jEjn"}},v9o6:function(t,e,a){"use strict";a.r(e),a.d(e,"VariantsSection",(function(){return E}));var n=a("8OQS"),r=a.n(n),o=(a("FMw2"),a("QifN"),a("Z5ek"),a("EWC9"),a("4ql4"),a("MRnW"),a("8Qi2"),a("OZM5"),a("tbvx"),a("va8A"),a("z4I3"),a("dj/k"),a("x/6R"),a("orcL"),a("r0ML")),i=a("8rdm"),l=a.n(i),c=a("NM3v"),s=a("8FJG"),u=a("qnk9"),m=a("0amj"),d=a("tzp9"),v=a("Pg9M"),f=a("JCRX"),p=a("GGWQ"),b=a("2bcA"),S=a("IZBJ"),y=a("mIv8"),g=a.n(y);function h(t,e){var a;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(a=function(t,e){if(!t)return;if("string"==typeof t)return k(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return k(t,e)}(t))||e&&t&&"number"==typeof t.length){a&&(t=a);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(a=t[Symbol.iterator]()).next.bind(a)}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}var E=function(t){var e=t.block,a=e.anchorId,n=e.variants,i=e.imagesPerVariant,y=e.buttonData,k=e.modal,E=e.modalButtonPerVariant,A=e.monthlyButtonData,B=e.variantTemplates,D=e.subDetailsHtml,w=r()(e,["anchorId","variants","imagesPerVariant","buttonData","modal","modalButtonPerVariant","monthlyButtonData","variantTemplates","subDetailsHtml"]),I=t.allReviewData,N=Object(o.useState)(Math.floor(n.length/2)),O=N[0],j=N[1],C=Object(o.useState)(!1),x=C[0],M=C[1],_=n[O],P=i[O],H=B[O].slug,L=E[O],G=_.dis
1playName,T=_.header,R=_.price,V=_.sku,Z=_.shouldAllowSubscription,U=Object(b.b)(_),J=I[V],Q=v.a.includes(V),z=Z&&Q;Object(o.useEffect)((function(){for(var t,e=window.wunderkind=window.wunderkind||{},a=e.category=e.category||{},r=a.categoryIds=a.categoryIds||[],o=h(n);!(t=o()).done;){var i=t.value;-1===r.indexOf(i.sku)&&r.push(i.sku)}}));var K=n.map((function(t,e){var a=t.displayName,n=t.price;return{onClick:function(t){t.preventDefault(),j(e)},className:g.a.pickerItem,selected:O===e,price:Object(b.c)(z?n*f.d:n),text:a}})),W=o.createElement("div",{className:g.a.selectedProduct},o.createElement(c.a,{onClick:function(){var t=O-1;j(t<0?n.length-1:t)},className:g.a.prevButton,iconPreset:c.b.Arrow,preset:c.c.NoStyling}),o.createElement(S.a,{accent:G,title:T,descriptionHtml:U,price:""+R,buttonData:y,pricePreset:S.b.SmallAndMonthly,monthlyButtonData:Object.assign({},A,{onClick:function(){M(!0)}}),variantSlug:H,reviewData:J,isMembershipOnly:z}),o.createElement(c.a,{onClick:function(){var t=O+1;j(t>=n.length?0:t)},className:g.a.nextButton,iconPreset:c.b.Arrow,preset:c.c.NoStyling}));return o.createElement("div",{className:g.a.variantsSection,id:a},o.createElement(s.a,{content:Object.assign({},w,{animate:!0,className:g.a.variantsContentBlock})}),o.createElement("div",{className:g.a.flexTest},o.createElement(d.a,{items:K,className:g.a.picker}),o.createElement(u.a,{className:g.a.subDetailsHtml,html:null==D?void 0:D.subDetailsHtml}),W,P&&o.createElement(l.a,{fluid:P.fluid,className:g.a.variantImage})),k&&o.createElement(m.a,{isOpen:x,onClose:function(){M(!1)}},o.createElement(p.a,{data:k,listKey:"VariantsSectionModal"}),o.createElement(c.a,Object.assign({className:g.a.modalButton},L))))}}}]); 2//# sourceMappingURL=store-page-VariantsSection-f783974e260ffdefdee9.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.