"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[7],{18:(i,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.usePrices=void 0;const c=r(2);e.usePrices=function({currency:i,currentVariant:e,quantity:r=1,subscription:o=!1,callFromCart:a=!1,isFreeProduct:t=!1,disneyLisaFrankPrices:s="default",shopVersion:l="US"}){var n;try{const s=o?"USD"===i.code&&a?0:null===(n=null==e?void 0:e.sellingPlan)||void 0===n?void 0:n.pct:0,p=a&&t?100:0;return{totalPriceToDisplay:(0,c.getDisplayPrice)(e.id,e.price,i,r,p,s),totalBeforeDiscountPriceToDisplay:(0,c.getDisplayPrice)(e.id,e.price,i,r,0,s),variantPriceToDisplay:("INDIA"===l?"MRP ":"")+(0,c.getDisplayPrice)(e.id,e.price,i,1,p,s),beforeDiscountVariantPriceToDisplay:(0,c.getDisplayPrice)(e.id,e.price,i,1,0,s),compareAtPriceToDisplay:(0,c.getDisplayPrice)(`${e.id}:compare`,null==e?void 0:e.compareAtPrice,i,1)}}catch(i){return console.log("error on get display prices"),{totalPriceToDisplay:"",totalBeforeDiscountPriceToDisplay:"",variantPriceToDisplay:"",beforeDiscountVariantPriceToDisplay:"",compareAtPriceToDisplay:""}}}}}]);