{"version":3,"file":"CMSCounter.Br68fXbu.mjs","names":[],"sources":["https:/framerusercontent.com/modules/tedj0mQTK1DJ0hAhHfoO/uHXkaGqe6I9KjgERyNwg/CMSCounter.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Compatibility component for legacy Code/CMSCounter.tsx references.\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function CMSCounter(props){const value=Math.max(0,Number(props.placeholder)||0);const formatted=props.commas?value.toLocaleString(\"en-US\",{maximumFractionDigits:0}):value.toFixed(0);return /*#__PURE__*/_jsx(\"div\",{style:{color:props.fontColor,userSelect:props.textSelect?\"auto\":\"none\",margin:0,whiteSpace:\"nowrap\",...props.font,...props.style},children:formatted});}CMSCounter.displayName=\"CMS Item Counter\";addPropertyControls(CMSCounter,{collectionList:{type:ControlType.ComponentInstance},placeholder:{type:ControlType.Number,defaultValue:10,min:0,step:1},commas:{type:ControlType.Boolean,defaultValue:true},fontColor:{type:ControlType.Color,defaultValue:\"#000000\"},font:{type:ControlType.Font,controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:14,lineHeight:1}},textSelect:{type:ControlType.Boolean,defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CMSCounter\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CMSCounter.map"],"mappings":"4JAIG,SAAwB,EAAW,EAAM,CAAC,IAAM,EAAM,KAAK,IAAI,EAAE,OAAO,EAAM,YAAY,EAAE,EAAE,CAAO,EAAU,EAAM,OAAO,EAAM,eAAe,QAAQ,CAAC,sBAAsB,EAAE,CAAC,CAAC,EAAM,QAAQ,EAAE,CAAC,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,EAAM,UAAU,WAAW,EAAM,WAAW,OAAO,OAAO,OAAO,EAAE,WAAW,SAAS,GAAG,EAAM,KAAK,GAAG,EAAM,MAAM,CAAC,SAAS,EAAU,CAAC,kBAJnV,IAAoD,CAIiS,EAAW,YAAY,mBAAmB,EAAoB,EAAW,CAAC,eAAe,CAAC,KAAK,EAAY,kBAAkB,CAAC,YAAY,CAAC,KAAK,EAAY,OAAO,aAAa,GAAG,IAAI,EAAE,KAAK,EAAE,CAAC,OAAO,CAAC,KAAK,EAAY,QAAQ,aAAa,GAAK,CAAC,UAAU,CAAC,KAAK,EAAY,MAAM,aAAa,UAAU,CAAC,KAAK,CAAC,KAAK,EAAY,KAAK,SAAS,WAAW,gBAAgB,aAAa,aAAa,CAAC,SAAS,GAAG,WAAW,EAAE,CAAC,CAAC,WAAW,CAAC,KAAK,EAAY,QAAQ,aAAa,GAAK,CAAC,CAAC"}