"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[9],{26:(e,i,r)=>{r.d(i,{a:()=>g,b:()=>x,c:()=>d,d:()=>u,e:()=>p});var l=r(0),n=r(3),c=r(12),s=r(4),a=r(2),o=r(20),t=r(46);function d({memberPricingEnabled:e,pricingPolicy:i,tagOverride:r,pricePillOverride:n}){const{selectedVariant:c}=(0,s.c)((e=>({selectedVariant:e.selectedVariant})));return(0,l.jsx)(u,{pricePillOverride:n,memberPricingEnabled:e,selectedVariant:c,pricingPolicy:i,tagOverride:r})}function p(e){if(void 0===e)return"";const i="string"==typeof e?parseFloat(e):e;return i===Math.round(i)?`$${i.toString()}`:`$${i.toFixed(2)}`}function u({memberPricingEnabled:e,selectedVariant:i,small:r,tagOverride:s,pricingPolicy:d,pricePillOverride:u}){var g,h,P,f,y,b,F,A;if(!i)return(0,l.jsx)(n.Fragment,{});const O=parseFloat(i.price),N=parseFloat(null!==(g=i.compareAtPrice)&&void 0!==g?g:i.price),k=i.compareAtPrice&&N>O&&p(i.compareAtPrice),_=(null!==(y=null!==(P=null===(h=i.competitorRange)||void 0===h?void 0:h.maxPrice)&&void 0!==P?P:null===(f=i.competitorRange)||void 0===f?void 0:f.minPrice)&&void 0!==y?y:N)>O,C=(0,o.d)(i),V=_||!!k,{message:M,override:$}=function({price:e,compareAtPrice:i,tagOverride:r,pricePillOverride:l,preorderMessage:n,saleIndication:c}){return(0,a.useMemo)((()=>{var s;const a=null!==(s=null!=r?r:n)&&void 0!==s?s:c?"Sale":null;if(!l)return{message:a,override:void 0};const{message:o,style:t}=l;if(o&&o.includes("{percentage}")){if("number"==typeof i&&i>e){const r=Math.floor((i-e)/i*100);if(Number.isFinite(r)&&r>0)return{message:a,override:{style:t,message:o.replace("{percentage}",String(r))}}}return null!==a?{message:a,override:{style:t,message:a}}:{message:a,override:void 0}}return{message:a,override:l}}),[e,i,r,l,n,c])}({price:O,compareAtPrice:N,tagOverride:s,pricePillOverride:u,preorderMessage:null==C?void 0:C.displayValue,saleIndication:V}),R=(0,t.a)(_);return(0,l.jsx)("div",{class:[c.a.container,r?c.a.small:"",e?c.a.productPriceDefault:c.a.productPrice].join(" "),children:e?(0,l.jsxs)(n.Fragment,{children:[(0,l.jsx)("span",{children:"$129.00 | "}),(0,l.jsx)("span",{children:"Up to 70% off with member pricing"}),(0,l.jsx)("div",{class:c.a.login,children:(0,l.jsx)("a",{class:c.a.memberLink,children:"Login or Signup"})})]}):(0,l.jsxs)(n.Fragment,{children:[(0,l.jsx)(m,{compareAtPriceDisplay:k}),(0,l.jsx)("span",Object.assign({},R,{children:null!==(b=p(null==i?void 0:i.price))&&void 0!==b?b:"NA"})),(0,l.jsx)(v,{competitorRange:i.competitorRange}),r?(0,l.jsx)(n.Fragment,{}):(0,l.jsx)(x,{pricePillOverride:$,message:M}),(0,l.jsx)(j,{compareAtPrice:parseFloat(null!==(F=null==i?void 0:i.compareAtPrice)&&void 0!==F?F:""),price:parseFloat(null!==(A=null==i?void 0:i.price)&&void 0!==A?A:"NA"),pricingPolicy:d,isVisible:!(r||!k||!(null==d?void 0:d.enabled))})]})})}function m({compareAtPriceDisplay:e}){return e?(0,l.jsx)("span",{class:c.a.compareAtPrice,children:e}):(0,l.jsx)(n.Fragment,{})}function v({competitorRange:e}){return!e||e.maxPrice?(0,l.jsx)(n.Fragment,{}):(0,l.jsxs)("span",{class:c.a.competitorPrice,children:["Comp. Price ",p(e.minPrice)]})}function g({small:e,tagOverride:i,compareAtRetailBundlePrice:r,compareAtBundlePrice:s,bundlePrice:a,hidePrice:o,hideFinalPrice:d}){const u=void 0===s||void 0===r||0===r||r<=s?void 0:p(r),m=d?"":p(a);if(o)return(0,l.jsx)("div",{style:"margin-bottom: var(--section-padding);",children:!e&&(0,l.jsx)(x,{message:null!=i?i:null})});const v=void 0!==s&&Math.round(s)>Math.round(a),g=(0,t.a)(void 0!==u||v);return(0,l.jsx)("div",{class:[c.a.container,c.a.productPrice,e?c.a.small:""].join(" "),children:(0,l.jsxs)(n.Fragment,{children:[void 0!==u&&(0,l.jsx)("span",{class:c.a.compareAtPrice,children:u}),v&&(0,l.jsx)("span",{class:c.a.compareAtPrice,children:p(s)}),(0,l.jsx)("span",Object.assign({},g,{children:m})),!e&&(0,l.jsx)(x,{message:null!=i?i:null})]})})}function x({message:e,small:i,pricePillOverride:r}){var s;return e?(0,l.jsx)("span",{style:null==r?void 0:r.style,class:[c.a.pricePill,i?c.a.small:""].join(" "),children:null!==(s=null==r?void 0:r.message)&&void 0!==s?s:e}):(0,l.jsx)(n.Fragment,{})}function j({compareAtPrice:e,price:i,pricingPolicy:r,isVisible:s=!0}){const[o,t]=(0,a.useState)(!1);function d(){document.body.style.overflow="auto"}return s?(0,l.jsxs)(n.Fragment,{children:[(0,l.jsx)("label",{className:c.a.pricingPolicyLabel,for:"pricingPolicy",onClick:function(){document.body.style.overflow="hidden"},children:null==r?void 0:r.title}),(0,l.jsx)("input",{type:"checkbox",id:"pricingPolicy",className:c.a.pricingPolicyCheckbox}),(0,l.jsxs)("div",{className:c.a.modalOverlay,children:[(0,l.jsx)("label",{htmlFor:"pricingPolicy",className:c.a.modalBackground,onClick:d}),(0,l.jsxs)("div",{className:c.a.modal,children:[(0,l.jsx)("label",{for:"pricingPolicy",className:c.a.closeBtn,onClick:d,children:"X"}),(0,l.jsxs)("h2",{class:c.a.pricingHeader,children:[(0,l.jsx)("span",{class:"visually-hidden",children:"Pricing policy:"})," ",null==r?void 0:r.title]}),!!e&&(0,l.jsx)("div",{class:c.a.pricingText,children:null==r?void 0:r.offer_title}),!!e&&(0,l.jsxs)("div",{class:c.a.pricingText,children:[null==r?void 0:r.compare_at_price_title,": $",e]}),(0,l.jsxs)("div",{class:c.a.pricingText,children:[null==r?void 0:r.price_title,": $",i]}),(0,l.jsxs)("div",{className:c.a.pricePolicyInnercontainer,children:[(0,l.jsxs)("div",{className:c.a.header,onClick:()=>{t(!o)},children:[(0,l.jsx)("span",{children:null==r?void 0:r.pricing_policy_title}),(0,l.jsx)("button",{className:c.a.toggleButton,children:o?"-":"+"})]}),o&&(0,l.jsx)("div",{className:c.a.content,children:(0,l.jsx)("p",{children:null==r?void 0:r.pricing_policy})})]}),(0,l.jsx)("div",{class:c.a.pricingText,children:null==r?void 0:r.footer_message}),(0,l.jsx)("div",{style:"height: 100px;"})]})]})]}):(0,l.jsx)(n.Fragment,{})}},46:(e,i,r)=>{function l(e){return e?{"data-is-on-sale":!0}:{}}r.d(i,{a:()=>l})}}]);