{"version":3,"file":"LoadingSpinner.boT0AHVd.mjs","names":[],"sources":["https:/framerusercontent.com/modules/MwEWP5PvtxaLsOKtXEh7/jAaLQAV2W0gSKs8U0Qlm/BackButton.js","https:/framerusercontent.com/modules/rfIKQYhFnBF8Q7uQ9XZx/Pcp425YUyDpKZhIbs2iM/LoadingSpinner.js"],"sourcesContent":["// BackButton component - navigates back in browser history on click\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function BackButton(props){const{label,font,textColor,backgroundColor,padding,borderRadius,borderColor,borderWidth,showIcon,iconSize,iconPosition,iconGap}=props;const handleClick=()=>{if(typeof window!==\"undefined\"){window.history.back();}};const ArrowIcon=()=>/*#__PURE__*/_jsx(\"svg\",{width:iconSize,height:iconSize,viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{flexShrink:0},children:/*#__PURE__*/_jsx(\"path\",{d:\"M15 18L9 12L15 6\",stroke:textColor,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});return /*#__PURE__*/_jsxs(\"button\",{onClick:handleClick,style:{position:\"relative\",...font,color:textColor,backgroundColor,padding,borderRadius,border:`${borderWidth}px solid ${borderColor}`,cursor:\"pointer\",outline:\"none\",width:\"max-content\",display:\"flex\",alignItems:\"center\",gap:showIcon?`${iconGap}px`:0,flexDirection:iconPosition===\"right\"?\"row-reverse\":\"row\"},children:[showIcon&&/*#__PURE__*/_jsx(ArrowIcon,{}),label]});}addPropertyControls(BackButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Back\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"transparent\"},padding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"12px 24px\"},borderRadius:{type:ControlType.BorderRadius,title:\"Radius\",defaultValue:\"8px\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"transparent\"},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:0,min:0,max:20,step:1,unit:\"px\"},showIcon:{type:ControlType.Boolean,title:\"Show Icon\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},iconSize:{type:ControlType.Number,title:\"Icon Size\",defaultValue:20,min:12,max:48,step:1,unit:\"px\",hidden:({showIcon})=>!showIcon},iconPosition:{type:ControlType.Enum,title:\"Icon Position\",options:[\"left\",\"right\"],optionTitles:[\"Left\",\"Right\"],defaultValue:\"left\",displaySegmentedControl:true,hidden:({showIcon})=>!showIcon},iconGap:{type:ControlType.Number,title:\"Icon Gap\",defaultValue:8,min:0,max:32,step:1,unit:\"px\",hidden:({showIcon})=>!showIcon}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BackButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BackButton.map","// LoadingSpinner component with a spinning ring animation using CSS keyframes\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function LoadingSpinner(props){const{color=\"#000000\"}=props;useEffect(()=>{if(typeof document===\"undefined\")return;const styleId=\"loading-spinner-keyframes\";if(!document.getElementById(styleId)){const style=document.createElement(\"style\");style.id=styleId;style.textContent=`\n                @keyframes spin {\n                    from {\n                        transform: rotate(0deg);\n                    }\n                    to {\n                        transform: rotate(360deg);\n                    }\n                }\n            `;document.head.appendChild(style);}},[]);return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,display:\"flex\",justifyContent:\"center\",alignItems:\"center\",width:\"100%\",height:\"100%\"},children:/*#__PURE__*/_jsx(\"div\",{style:{width:40,height:40,border:\"4px solid transparent\",borderTopColor:color,borderRadius:\"50%\",animation:\"spin 0.8s linear infinite\"}})});}addPropertyControls(LoadingSpinner,{color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LoadingSpinner\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LoadingSpinner.map"],"mappings":"0LAIG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,OAAK,YAAU,kBAAgB,UAAQ,eAAa,cAAY,cAAY,WAAS,WAAS,eAAa,WAAS,EAAY,MAAgB,CAAW,IAAS,QAAa,EAAO,QAAQ,MAAM,EAAU,MAA2B,EAAK,MAAM,CAAC,MAAM,EAAS,OAAO,EAAS,QAAQ,YAAY,KAAK,OAAO,MAAM,6BAA6B,MAAM,CAAC,WAAW,EAAE,CAAC,SAAsB,EAAK,OAAO,CAAC,EAAE,mBAAmB,OAAO,EAAU,YAAY,IAAI,cAAc,QAAQ,eAAe,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAoB,EAAM,SAAS,CAAC,QAAQ,EAAY,MAAM,CAAC,SAAS,WAAW,GAAG,EAAK,MAAM,EAAU,kBAAgB,UAAQ,eAAa,OAAO,GAAG,EAAY,WAAW,IAAc,OAAO,UAAU,QAAQ,OAAO,MAAM,cAAc,QAAQ,OAAO,WAAW,SAAS,IAAI,EAAS,GAAG,EAAQ,IAAI,EAAE,cAAc,IAAe,QAAQ,cAAc,M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