{"version":3,"file":"IndianPrice.CbXY4-RZ.mjs","names":[],"sources":["https:/framerusercontent.com/modules/iQft3N7z6u7fGZIw0DnU/zNXSUJOOnvv5eqQEMI2z/IndianPrice.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export function indianState(status,inr){const s=String(status||\"\").toLowerCase();if(s.includes(\"not\"))return\"not\";if(s.includes(\"soon\"))return\"soon\";return String(inr||\"\").trim()?\"ok\":\"soon\";}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function IndianPrice(props){const{inr,status,prefix,suffix,soonText,notText,fontFamily,fontSize,fontWeight,lineHeight,letterSpacing,uppercase,color,noteColor,align,style}=props;const code=indianState(status,inr);const text=code===\"ok\"?`${prefix}${String(inr).trim()}${suffix}`:code===\"soon\"?soonText:notText;return /*#__PURE__*/_jsx(\"div\",{className:\"nip\",\"data-neri-in\":code,style:{...style,margin:0,fontFamily:`\"${fontFamily}\", Inter, sans-serif`,fontSize,fontWeight,lineHeight:`${lineHeight}em`,letterSpacing:`${letterSpacing}em`,textTransform:uppercase?\"uppercase\":\"none\",color:code===\"ok\"?color:noteColor||color,textAlign:align,fontVariantNumeric:\"tabular-nums\",WebkitFontSmoothing:\"antialiased\"},children:text});}IndianPrice.defaultProps={inr:\"1,16,000\",status:\"Available\",prefix:\"₹\",suffix:\" for Indian nationals\",soonText:\"Indian pricing coming soon\",notText:\"Not available for Indian nationals\",fontFamily:\"Inter\",fontSize:14,fontWeight:500,lineHeight:1.3,letterSpacing:0,uppercase:false,color:\"#3E3321\",noteColor:\"\",align:\"left\"};addPropertyControls(IndianPrice,{inr:{type:ControlType.String,title:\"Price INR\"},// a string, so the CMS option can bind through optionToDisplayName\nstatus:{type:ControlType.String,title:\"Indian Nationals\"},prefix:{type:ControlType.String,title:\"Prefix\"},suffix:{type:ControlType.String,title:\"Suffix\"},soonText:{type:ControlType.String,title:\"Coming soon\"},notText:{type:ControlType.String,title:\"Not available\"},fontFamily:{type:ControlType.String,title:\"Font\"},fontSize:{type:ControlType.Number,title:\"Size\",min:8,max:64,step:1},fontWeight:{type:ControlType.Number,title:\"Weight\",min:100,max:900,step:100},lineHeight:{type:ControlType.Number,title:\"Line height\",min:.8,max:2,step:.05},letterSpacing:{type:ControlType.Number,title:\"Tracking (em)\",min:-.1,max:.3,step:.01},uppercase:{type:ControlType.Boolean,title:\"Uppercase\"},color:{type:ControlType.Color,title:\"Colour\"},noteColor:{type:ControlType.Color,title:\"Note colour\",optional:true},align:{type:ControlType.Enum,title:\"Align\",options:[\"left\",\"center\",\"right\"],displaySegmentedControl:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"indianState\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"IndianPrice\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./IndianPrice.map"],"mappings":"4JAA+F,SAAgB,EAAY,EAAO,EAAI,CAAC,IAAM,EAAE,OAAO,GAAQ,EAAE,CAAC,CAAC,YAAY,EAAsE,OAAjE,EAAE,SAAS,KAAK,EAAQ,MAAS,EAAE,SAAS,MAAM,EAAQ,OAAc,OAAO,GAAK,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,MAAO,CAG3R,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,MAAI,SAAO,SAAO,SAAO,WAAS,UAAQ,aAAW,WAAS,aAAW,aAAW,gBAAc,YAAU,QAAM,YAAU,QAAM,SAAO,EAAY,EAAK,EAAY,EAAO,CAAG,EAAQ,EAAK,IAAO,KAAK,GAAG,IAAS,OAAO,CAAG,CAAC,CAAC,KAAK,IAAI,IAAS,IAAO,OAAO,EAAS,EAAQ,OAAoB,EAAK,MAAM,CAAC,UAAU,MAAM,eA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