{"version":3,"file":"LoadingShimmer.B8cdkByZ.mjs","names":[],"sources":["https:/framerusercontent.com/modules/oWvbUcckA41J14INgXdY/5k6yPmzqzFnX1tnZqkg9/LoadingShimmer.js"],"sourcesContent":["// Basic loading shimmer with middle text \"Loading\"\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function LoadingShimmer(props){const{text,backgroundColor,shimmerColor,textColor,font,borderRadius,animationSpeed}=props;const isFixedWidth=props?.style&&props.style.width===\"100%\";const isFixedHeight=props?.style&&props.style.height===\"100%\";return /*#__PURE__*/_jsxs(\"div\",{style:{...props.style,position:\"relative\",overflow:\"hidden\",background:backgroundColor,borderRadius,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",...isFixedWidth?{}:{minWidth:\"max-content\"},...isFixedHeight?{}:{minHeight:\"max-content\"},padding:\"20px 40px\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:0,left:\"-100%\",width:\"100%\",height:\"100%\",background:`linear-gradient(90deg, transparent, ${shimmerColor}, transparent)`,animation:`shimmer ${animationSpeed}s infinite linear`}}),/*#__PURE__*/_jsx(\"span\",{style:{color:textColor,zIndex:1,position:\"relative\",...font},children:text}),/*#__PURE__*/_jsx(\"style\",{children:`\n                    @keyframes shimmer {\n                        0% { left: -100%; }\n                        100% { left: 100%; }\n                    }\n                `})]});}addPropertyControls(LoadingShimmer,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"Loading\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#1a1a1a\"},shimmerColor:{type:ControlType.Color,title:\"Shimmer Color\",defaultValue:\"rgba(255, 255, 255, 0.1)\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"16px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:8,min:0,max:32,unit:\"px\"},animationSpeed:{type:ControlType.Number,title:\"Animation Speed\",defaultValue:1.5,min:.5,max:5,step:.1,unit:\"s\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LoadingShimmer\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LoadingShimmer.map"],"mappings":"mKAIG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,OAAK,kBAAgB,eAAa,YAAU,OAAK,eAAa,kBAAgB,EAAY,EAAa,GAAO,OAAO,EAAM,MAAM,QAAQ,OAAa,EAAc,GAAO,OAAO,EAAM,MAAM,SAAS,OAAO,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,SAAS,WAAW,SAAS,SAAS,WAAW,EAAgB,eAAa,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,GAAG,EAAa,EAAE,CAAC,CAAC,SAAS,cAAc,CAAC,GAAG,EAAc,EAAE,CAAC,CAAC,UAAU,cAAc,CAAC,QAAQ,YAAY,CAAC,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,QAAQ,MAAM,OAAO,OAAO,OAAO,WAAW,uCAAuC,EAAa,gBAAgB,UAAU,WAAW,EAAe,mBAAmB,CAAC,CAAC,CAAc,EAAK,OAAO,CAAC,MAAM,CAAC,MAAM,EAAU,OAAO,EAAE,SAAS,WAAW,GAAG,EAAK,CAAC,SAAS,EAAK,CAAC,CAAc,EAAK,QAAQ,CAAC,SAAS;;;;;kBAKl6B,CA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