{"version":3,"file":"Modal_System.BGe2FbTx.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/HC73DBB5WSTtVpMcuS4c/EWsF22NurYDGIHAytM4W/Modal_System.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";export function Modal({type=\"confirm\",title,message,onClose,onConfirm,showInput=false,inputType=\"text\",inputPlaceholder=\"\",primaryText,secondaryText}){const[inputValue,setInputValue]=useState(\"\");// Auto-generate title if not provided\nconst modalTitle=title||getDefaultTitle(type);const modalIcon=getModalIcon(type);const modalColor=getModalColor(type);function getDefaultTitle(modalType){switch(modalType){case\"success\":return\"Success\";case\"error\":return\"Error\";case\"warning\":return\"Warning\";case\"input\":return\"Input Required\";case\"confirm\":default:return\"Confirm Action\";}}function getModalIcon(modalType){switch(modalType){case\"success\":return\"✓\";case\"error\":return\"✕\";case\"warning\":return\"⚠\";case\"input\":return\"✎\";case\"confirm\":default:return\"?\";}}function getModalColor(modalType){switch(modalType){case\"success\":return\"#10b981\";case\"error\":return\"#ef4444\";case\"warning\":return\"#f59e0b\";case\"input\":return\"#009faa\";case\"confirm\":default:return\"#009faa\";}}const handlePrimaryClick=()=>{if(onConfirm){onConfirm(showInput?inputValue:undefined);}else{onClose();}};const handleKeyPress=e=>{if(e.key===\"Enter\"&&onConfirm){onConfirm(showInput?inputValue:undefined);}else if(e.key===\"Escape\"){onClose();}};return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",top:0,left:0,right:0,bottom:0,backgroundColor:\"rgba(0, 0, 0, 0.5)\",backdropFilter:\"blur(4px)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",zIndex:1e4,fontFamily:\"Inter, sans-serif\",animation:\"fadeIn 0.15s ease-out\"},onClick:onClose,children:[/*#__PURE__*/_jsxs(\"div\",{style:{backgroundColor:\"#ffffff\",borderRadius:\"16px\",padding:\"0\",maxWidth:\"600px\",width:\"90%\",maxHeight:\"90vh\",display:\"flex\",flexDirection:\"column\",boxShadow:\"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)\",animation:\"slideUp 0.2s ease-out\",overflow:\"hidden\"},onClick:e=>e.stopPropagation(),children:[/*#__PURE__*/_jsxs(\"div\",{style:{backgroundColor:\"#f9fafb\",padding:\"24px\",borderBottom:\"1px solid #e5e7eb\",display:\"flex\",alignItems:\"center\",gap:\"12px\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:\"40px\",height:\"40px\",borderRadius:\"50%\",backgroundColor:modalColor+\"15\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:\"20px\",color:modalColor,fontWeight:\"700\",flexShrink:0},children:modalIcon}),/*#__PURE__*/_jsx(\"h3\",{style:{margin:0,fontSize:\"18px\",fontWeight:\"700\",color:\"#111827\",fontFamily:\"Inter, sans-serif\"},children:modalTitle})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"modal-content-scroll\",style:{padding:\"24px\",maxHeight:\"60vh\",overflowY:\"auto\",position:\"relative\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"15px\",color:\"#4b5563\",lineHeight:\"1.6\",marginBottom:showInput?\"20px\":\"0\",whiteSpace:\"pre-line\"},children:message}),showInput&&/*#__PURE__*/_jsx(\"input\",{type:inputType,value:inputValue,onChange:e=>setInputValue(e.target.value),onKeyDown:handleKeyPress,placeholder:inputPlaceholder,autoFocus:true,style:{width:\"100%\",padding:\"12px 16px\",border:\"1px solid #d1d5db\",borderRadius:\"8px\",fontSize:\"15px\",boxSizing:\"border-box\",outline:\"none\",fontFamily:\"Inter, sans-serif\",transition:\"border-color 0.15s ease\"},onFocus:e=>{e.target.style.borderColor=modalColor;},onBlur:e=>{e.target.style.borderColor=\"#d1d5db\";}})]}),/*#__PURE__*/_jsxs(\"div\",{style:{backgroundColor:\"#f9fafb\",padding:\"16px 24px\",borderTop:\"1px solid #e5e7eb\",display:\"flex\",gap:\"12px\",justifyContent:\"flex-end\"},children:[onConfirm&&/*#__PURE__*/_jsx(\"button\",{onClick:onClose,style:{padding:\"10px 20px\",backgroundColor:\"transparent\",color:\"#6b7280\",border:\"none\",borderRadius:\"8px\",fontSize:\"15px\",fontWeight:\"600\",cursor:\"pointer\",fontFamily:\"Inter, sans-serif\",transition:\"background-color 0.15s ease\"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=\"#e5e7eb\";},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=\"transparent\";},children:secondaryText||\"Cancel\"}),/*#__PURE__*/_jsx(\"button\",{onClick:handlePrimaryClick,style:{padding:\"10px 24px\",backgroundColor:modalColor,color:\"#ffffff\",border:\"none\",borderRadius:\"8px\",fontSize:\"15px\",fontWeight:\"600\",cursor:\"pointer\",fontFamily:\"Inter, sans-serif\",transition:\"opacity 0.15s ease\"},onMouseEnter:e=>{e.currentTarget.style.opacity=\"0.9\";},onMouseLeave:e=>{e.currentTarget.style.opacity=\"1\";},children:primaryText||getPrimaryButtonText(type)})]})]}),/*#__PURE__*/_jsx(\"style\",{children:`\n                    @keyframes fadeIn {\n                        from { opacity: 0; }\n                        to { opacity: 1; }\n                    }\n                    @keyframes slideUp {\n                        from {\n                            opacity: 0;\n                            transform: translateY(20px) scale(0.95);\n                        }\n                        to {\n                            opacity: 1;\n                            transform: translateY(0) scale(1);\n                        }\n                    }\n                    /* Custom scrollbar styling - MORE VISIBLE */\n                    .modal-content-scroll::-webkit-scrollbar {\n                        width: 12px;\n                    }\n                    .modal-content-scroll::-webkit-scrollbar-track {\n                        background: #e5e7eb;\n                        border-radius: 6px;\n                        margin: 8px 0;\n                    }\n                    .modal-content-scroll::-webkit-scrollbar-thumb {\n                        background: #9ca3af;\n                        border-radius: 6px;\n                        border: 2px solid #e5e7eb;\n                    }\n                    .modal-content-scroll::-webkit-scrollbar-thumb:hover {\n                        background: #6b7280;\n                    }\n                    .modal-content-scroll::-webkit-scrollbar-thumb:active {\n                        background: #4b5563;\n                    }\n                `})]});}function getPrimaryButtonText(type){switch(type){case\"success\":return\"Great!\";case\"error\":return\"Got it\";case\"warning\":return\"Understood\";case\"input\":return\"Submit\";case\"confirm\":default:return\"Confirm\";}}\nexport const __FramerMetadata__ = {\"exports\":{\"Modal\":{\"type\":\"reactComponent\",\"name\":\"Modal\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Modal_System.map"],"mappings":"yHAAqF,SAAgB,EAAM,CAAC,OAAK,UAAU,QAAM,UAAQ,UAAQ,YAAU,YAAU,GAAM,YAAU,OAAO,mBAAiB,GAAG,cAAY,iBAAe,CAAC,GAAK,CAAC,EAAW,GAAeA,EAAS,GAAG,CAClR,EAAW,GAAO,EAAgB,EAAK,CAAO,EAAU,EAAa,EAAK,CAAO,EAAW,EAAc,EAAK,CAAC,SAAS,EAAgB,EAAU,CAAC,OAAO,EAAP,CAAkB,IAAI,UAAU,MAAM,UAAU,IAAI,QAAQ,MAAM,QAAQ,IAAI,UAAU,MAAM,UAAU,IAAI,QAAQ,MAAM,iBAAiB,IAAI,UAAU,QAAQ,MAAM,kBAAmB,SAAS,EAAa,EAAU,CAAC,OAAO,EAAP,CAAkB,IAAI,UAAU,MAAM,IAAI,IAAI,QAAQ,MAAM,IAAI,IAAI,UAAU,MAAM,IAAI,IAAI,QAAQ,MAAM,IAAI,IAAI,UAAU,QAAQ,MAAM,KAAM,SAAS,EAAc,EAAU,CAAC,OAAO,EAAP,CAAkB,IAAI,UAAU,MAAM,UAAU,IAAI,QAAQ,MAAM,UAAU,IAAI,UAAU,MAAM,UAAU,IAAI,QAAQ,MAAM,UAAU,IAAI,UAAU,QAAQ,MAAM,WAA+P,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,SAAS,QAAQ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,qBAAqB,eAAe,YAAY,QAAQ,OAAO,WAAW,SAAS,eAAe,S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