{"version":3,"file":"LoadingSpinner.Dzhwgrf0.mjs","names":[],"sources":["https:/framerusercontent.com/modules/vEmIMQ5QDQGC50Th4ATR/shy8CaU5rQyIkmqQgeRB/MessageDialog.js","https:/framerusercontent.com/modules/yhgz76BRyVRNasQQJy6x/O4Mk5QstrqOQKk6ueXN6/LoadingSpinner.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion,AnimatePresence}from\"framer-motion\";export default function MessageDialog({open,setOpen,message={type:\"error\",message:\"\",onConfirm:undefined}}){return /*#__PURE__*/_jsx(AnimatePresence,{children:open&&/*#__PURE__*/_jsxs(motion.div,{initial:{opacity:0,y:\"-50%\"},animate:{opacity:1,y:\"0%\"},exit:{opacity:0,y:\"-50%\"},style:{transform:\"translate(-50%, -30%)\",padding:\"20px 24px\",backgroundColor:message.type===\"success\"?\"#d4edda\":\"#f8d7da\",color:message.type===\"success\"?\"#155724\":\"#721c24\",borderRadius:8,boxShadow:\"0 4px 12px rgba(0,0,0,0.1)\",zIndex:1e3,width:\"250px\",textAlign:\"center\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{marginBottom:16},children:message.message}),/*#__PURE__*/_jsx(\"button\",{style:{padding:\"8px 16px\",border:\"none\",borderRadius:4,backgroundColor:message.type===\"success\"?\"#28a745\":\"#dc3545\",color:\"white\",cursor:\"pointer\"},onClick:()=>{message.onConfirm?.();setOpen(false);},children:\"確定\"})]})});}addPropertyControls(MessageDialog,{open:{title:\"visibility\",type:ControlType.Boolean,defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MessageDialog\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MessageDialog.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function LoadingSpinner({open}){return open?/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"center\",alignItems:\"center\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:40,height:40,border:\"5px solid #f3f3f3\",borderTop:\"5px solid #3498db\",borderRadius:\"50%\",animation:\"spin 1s linear infinite\"}}),/*#__PURE__*/_jsx(\"style\",{children:`\n                    @keyframes spin {\n                        0% { transform: rotate(0deg); }\n                        100% { transform: rotate(360deg); }\n                    }\n                `})]}):null;}addPropertyControls(LoadingSpinner,{open:{title:\"visibility\",type:ControlType.Boolean,defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LoadingSpinner\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LoadingSpinner.map"],"mappings":"2NAA+J,SAAwB,EAAc,CAAC,OAAK,UAAQ,UAAQ,CAAC,KAAK,QAAQ,QAAQ,GAAG,UAAU,IAAA,GAAU,EAAE,CAAC,OAAoB,EAAK,EAAgB,CAAC,SAAS,GAAmB,EAAM,EAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ,EAAE,EAAE,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,UAAU,wBAAwB,QAAQ,YAAY,gBAAgB,EAAQ,OAAO,UAAU,UAAU,UAAU,MAAM,EAAQ,OAAO,UAAU,UAAU,UAAU,aAAa,EAAE,UAAU,6BAA6B,OAAO,IAAI,MAAM,QAAQ,UAAU,SAAS,CAAC,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,aAAa,GAAG,CAAC,SAAS,EAAQ,QAAQ,CAAC,CAAc,EAAK,SAAS,CAAC,MAAM,CAAC,QAAQ,WAAW,OAAO,OAAO,aAAa,EAAE,gBAAgB,EAAQ,OAAO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