"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[91],{972:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});const a={wrapper:"cHv_wSHl",wrapperJetPack:"c3w2AM3k",wrapperJetPackContent:"rTXelPy2",wrapperJetPackContentTitle:"SliKEpT3",wrapperJetPackContentTitleVariant:"di2oCLL_",wrapperJetPackContentTitleSubtitle:"pk6KhGwS",wrapperJetPackContentRaiting:"e9bGh6PG",wrapperJetPackContentPrice:"tpSxlEZE",wrapperPrice:"EF7yiSbn",wrapperPriceStrikethrough:"ljX9iYbl",wrapperPriceStrikethroughOpacity:"Rsw0w6KE",wrapperPriceTaxes:"Blrog_O5"}},28:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});const a={wrapper:"SJa8eo06",sm:"Uu2KqrE3",md:"rdoDSaVA",lg:"feg_GqEI"}},29:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});const a={wrapper:"V47WgM_g",wrapperWithZoom:"t3XaNyzG",wrapperStars:"FwWX9GQS",wrapperText:"sUXVAUuY",wrapperSsrOnly:"TAeNuhJT"}},74:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});const a={wrapper:"qqOLA9Xc",wrapperLinks:"TLr1pun3",wrapperTabLinks:"FXQZOquN",wrapperContent:"xNiSX9oz",wrapperContentItem:"AUQ_wjwh",wrapperContentItemActive:"swirBPz2"}},970:(e,t,r)=>{const a=r(971);(0,r(5).createEntrypoint)("jetpack-product-select",a.JetpackProductSelectContainer)},971:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JetpackProductSelectContainer=void 0;const a=r(0),i=(r(1),r(16)),s=r(364);t.JetpackProductSelectContainer=function({product:e,tabLabels:t,useSharedState:r}){const n=r(),{currentVariant:c,quantity:o,context:p,isSubscription:l,shopVersion:u}=n((({currentVariant:e,quantity:t,context:r,isSubscription:a})=>({currentVariant:e,quantity:t,context:r,isSubscription:a,shopVersion:null==r?void 0:r.shopVersion}))),{variantPriceToDisplay:d,compareAtPriceToDisplay:P}="US"!=u?(0,i.usePrices)({currency:null==p?void 0:p.currency,currentVariant:c,quantity:o,subscription:l,shopVersion:u}):{variantPriceToDisplay:void 0,compareAtPriceToDisplay:void 0};return(0,a.jsx)(s.JetpackProductSelect,{title:e.title,raters:e.raters,rating:e.rating,tabLabels:t,variantTitle:c.title,handle:e.handle,priceToDisplay:d,compareAtPriceToDisplay:P})}},364:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.JetpackProductSelect=void 0;const i=r(0),s=r(1),n=r(2),c=r(31),o=r(34),p=a(r(972)),{wrapper:l,wrapperJetPack:u,wrapperJetPackContent:d,wrapperJetPackContentTitle:P,wrapperJetPackContentTitleVariant:w,wrapperJetPackContentTitleSubtitle:b,wrapperJetPackContentRaiting:h,wrapperJetPackContentPrice:y,wrapperPrice:j,wrapperPriceTaxes:g}=p.default;t.JetpackProductSelect=function({title:e,raters:t,rating:r,tabLabels:a,handle:p,variantTitle:b,priceToDisplay:y,compareAtPriceToDisplay:v}){const T=a.findIndex((e=>e.href.toLowerCase().includes(p.toLowerCase()))),x={tabLabels:a,activeIndex:-1===T?0:T};return e?(0,i.jsx)("div",Object.assign({className:l},{children:(0,i.jsx)("div",Object.assign({className:u},{children:(0,i.jsxs)("div",Object.assign({className:d},{children:[(0,i.jsx)(o.ProductTabSelector,Object.assign({},x)),(0,i.jsxs)("div",Object.assign({className:P},{children:[b,(0,i.jsx)("span",Object.assign({className:w,"aria-hidden":!0},{children:e}))]})),t>0&&(0,i.jsx)("div",Object.assign({className:h},{children:(0,i.jsx)(c.ProductRating,{rating:r,raters:t})})),!!y&&(0,i.jsxs)("div",Object.assign({className:(0,n.cx)(j,"afterpayIsLoaded no-translate")},{children:[(0,i.jsx)("span",Object.assign({"aria-hidden":!0},{children:y})),v?(0,i.jsxs)("p",Object.assign({class:"is-sr-only"},{children:["Price: ",y,". Was ",v,"."]})):(0,i.jsxs)("p",Object.assign({class:"is-sr-only"},{children:["Price: ",y,"."]})),(null==y?void 0:y.includes("MRP"))&&(0,i.jsx)("p",Object.assign({className:g},{children:"(Incl. of Taxes)"}))]}))]}))}))})):(0,i.jsx)(s.Fragment,{})}},34:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProductTabSelector=void 0;const i=r(0),s=(r(1),r(2)),n=a(r(74)),{wrapper:c,wrapperLinks:o,wrapperTabLinks:p,wrapperContent:l,wrapperContentItem:u,wrapperContentItemActive:d}=n.default;t.ProductTabSelector=function({tabLabels:e,activeIndex:t=0,style:r}){return e&&1!=(null==e?void 0:e.length)?(0,i.jsx)("div",Object.assign({className:(0,s.cx)(c,p,o),style:r},{children:(0,i.jsx)("ul",Object.assign({className:l},{children:e.map(((e,r)=>(0,i.jsx)("li",Object.assign({class:r===t?`${(0,s.cx)(u,d)}`:u},{children:(0,i.jsx)("a",Object.assign({href:e.href},{children:(0,i.jsx)("span",{children:e.label})}))}),r)))}))})):(0,i.jsx)("div",{})}},16:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.usePrices=void 0;const a=r(2);t.usePrices=function({currency:e,currentVariant:t,quantity:r=1,subscription:i=!1,shopVersion:s="US"}){var n;try{const c=i?null===(n=null==t?void 0:t.sellingPlan)||void 0===n?void 0:n.pct:0;return{totalPriceToDisplay:(0,a.getDisplayPrice)(t.id,t.price,e,r,c),totalBeforeDiscountPriceToDisplay:(0,a.getDisplayPrice)(t.id,t.price,e,r,c),variantPriceToDisplay:("INDIA"===s?"MRP ":"")+(0,a.getDisplayPrice)(t.id,t.price,e,1,c),beforeDiscountVariantPriceToDisplay:(0,a.getDisplayPrice)(t.id,t.price,e,1,c),compareAtPriceToDisplay:(0,a.getDisplayPrice)(`${t.id}:compare`,null==t?void 0:t.compareAtPrice,e,1)}}catch(e){return console.log("error on get display prices"),{totalPriceToDisplay:"",totalBeforeDiscountPriceToDisplay:"",variantPriceToDisplay:"",beforeDiscountVariantPriceToDisplay:"",compareAtPriceToDisplay:""}}}}},e=>{e.O(0,[1,2,4,3,16],(()=>(970,e(e.s=970)))),e.O()}]);