{"version":3,"file":"Price.B6Yssvec.mjs","names":[],"sources":["https:/framerusercontent.com/modules/6rHql2HEiQIonVZ4TkbJ/vSAEnm0R6PkItUrKYgBA/Price.js"],"sourcesContent":["// Price — shows a EUR amount in the active language's number format:\n// €2,890 (EN, ZH) · 2 890 € (FR, RU) · 2.890 € (ES) · 2,890 € (AR).\n// Bind \"Amount\" to a CMS number field.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{T,useLang,formatPrice,useLive,livePrice,useShopCurrency}from\"https://framerusercontent.com/modules/oUXMVQOxy4sbV3MK6xzP/3AdG0mnQaYrfHYxQcHhZ/OmbrineStore.js\";/**\n * Price\n *\n * @framerIntrinsicWidth 60\n * @framerIntrinsicHeight 15\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function Price(props){const{amount=2890,slug=\"\",size=15,color,style}=props;const lang=useLang();// with a Shopify shop connected and a slug bound, the price is Shopify's\nconst live=useLive(slug);useShopCurrency();const value=livePrice(live,Number(amount)||0);return /*#__PURE__*/_jsx(\"span\",{style:{...style,display:\"inline-block\",whiteSpace:\"nowrap\",fontFamily:lang===\"zh\"?`\"Noto Sans SC\", sans-serif`:lang===\"ar\"?`\"Readex Pro\", sans-serif`:`\"Manrope\", sans-serif`,fontSize:size,lineHeight:1,letterSpacing:\"0.002em\",fontVariantNumeric:\"tabular-nums\",color:color||T.ink},children:formatPrice(value,lang)});}addPropertyControls(Price,{amount:{type:ControlType.Number,title:\"Amount\",defaultValue:2890,min:0,max:1e6,step:10,description:\"Euros. Bind to a CMS Price field.\"},slug:{type:ControlType.String,title:\"Slug\",defaultValue:\"\",preventLocalization:true,description:\"Bind to Products → Slug to show the live Shopify price. Leave empty for look totals.\"},size:{type:ControlType.Number,title:\"Size\",defaultValue:15,min:10,max:40,unit:\"px\"},color:{type:ControlType.Color,title:\"Colour\",optional:true,description:\"Leave empty to follow the Ink colour style.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Price\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"60\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicHeight\":\"15\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"sPAUG,SAAwB,EAAM,EAAM,CAAC,GAAK,CAAC,SAAO,KAAK,OAAK,GAAG,OAAK,GAAG,QAAM,SAAO,EAAY,EAAK,EAAQ,EAC1G,EAAK,EAAQ,CAAI,EAAE,EAAgB,EAAE,IAAM,EAAM,EAAU,EAAK,OAAO,CAAM,GAAG,CAAC,EAAE,OAAoB,EAAK,OAAO,CAAC,MAAM,CAAC,GAAG,EAAM,QAAQ,eAAe,WAAW,SAAS,WAAW,IAAO,KAAK,6BAA6B,IAAO,KAAK,2BAA2B,wBAAwB,SAAS,EAAK,WAAW,EAAE,cAAc,UAAU,mBAAmB,eAAe,MAAM,GAAO,EAAE,GAAG,EAAE,SAAS,EAAY,EAAM,CAAI,CAAC,CAAC,CAAE,iBAR1Y,IAAoD,IAAqK,EAQkL,EAAoB,EAAM,CAAC,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,SAAS,aAAa,KAAK,IAAI,EAAE,IAAI,IAAI,KAAK,GAAG,YAAY,mCAAmC,EAAE,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,OAAO,aAAa,GAAG,oBAAoB,GAAK,YAAY,sFAAsF,EAAE,KAAK,CAAC,KAAK,EAAY,OAAO,MAAM,OAAO,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,IAAI,EAAE,MAAM,CAAC,KAAK,EAAY,MAAM,MAAM,SAAS,SAAS,GAAK,YAAY,6CAA6C,CAAC,CAAC"}