{"version":3,"file":"LoadingOverlay.i1V_FVdT.mjs","names":[],"sources":["https:/framerusercontent.com/modules/lJ61i94wZH38BTbIqPL7/XepwHwKj5XRMCAL1y5fp/LoadingOverlay.js"],"sourcesContent":["// import { motion } from \"framer-motion\"\n// import React from \"react\"\n// export function LoadingOverlay({\n//     visible,\n//     message = \"예약 처리중입니다...\\n약 10초 정도 소요될 수 있습니다\",\n// }: {\n//     visible: boolean\n//     message?: string\n// }) {\n//     if (!visible) return null\n//     return (\n//         <div style={overlayStyle}>\n//             <div style={contentStyle}>\n//                 <motion.div\n//                     style={spinnerStyle}\n//                     animate={{ rotate: 360 }}\n//                     transition={{\n//                         repeat: Infinity,\n//                         duration: 1,\n//                         ease: \"linear\",\n//                     }}\n//                 />\n//                 <div style={messageStyle}>{message}</div>\n//             </div>\n//         </div>\n//     )\n// }\n// // 전체 회색 배경 (클릭 차단 포함)\n// const overlayStyle: React.CSSProperties = {\n//     position: \"fixed\",\n//     top: 0,\n//     left: 0,\n//     width: \"100vw\",\n//     height: \"100vh\",\n//     background: \"rgba(0, 0, 0, 0.5)\",\n//     display: \"flex\",\n//     justifyContent: \"center\",\n//     alignItems: \"center\",\n//     zIndex: 10000,\n//     pointerEvents: \"auto\",\n// }\n// // 중앙 콘텐츠 (스피너 + 문구)\n// const contentStyle: React.CSSProperties = {\n//     display: \"flex\",\n//     flexDirection: \"column\",\n//     alignItems: \"center\",\n//     gap: 20,\n//     userSelect: \"none\",\n// }\n// // 스피너 스타일\n// const spinnerStyle: React.CSSProperties = {\n//     width: 40,\n//     height: 40,\n//     border: \"4px solid rgba(255, 255, 255, 0.2)\",\n//     borderTop: \"4px solid white\",\n//     borderRadius: \"50%\",\n// }\n// // 문구 스타일\n// const messageStyle: React.CSSProperties = {\n//     color: \"#fff\",\n//     fontSize: 16,\n//     fontFamily: \"Pretendard Medium, sans-serif\",\n//     textAlign: \"center\",\n//     lineHeight: \"1.6\",\n//     whiteSpace: \"pre-line\",\n// }\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";export function LoadingOverlay({visible,message=\"예약 처리중입니다...\\n약 10초 정도 소요될 수 있습니다\",mode=\"full\"}){if(!visible)return null;const isFull=mode===\"full\";return /*#__PURE__*/_jsx(\"div\",{style:{...isFull?fullOverlayStyle:componentOverlayStyle},children:/*#__PURE__*/_jsxs(\"div\",{style:contentStyle,children:[/*#__PURE__*/_jsx(motion.div,{style:spinnerStyle,animate:{rotate:360},transition:{repeat:Infinity,duration:1,ease:\"linear\"}}),/*#__PURE__*/_jsx(\"div\",{style:messageStyle,children:message})]})});}/* ================= styles ================= */// 전체 화면용 (기존 그대로)\nconst fullOverlayStyle={position:\"fixed\",top:0,left:0,width:\"100vw\",height:\"100vh\",background:\"rgba(0, 0, 0, 0.5)\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",zIndex:1e4,pointerEvents:\"auto\"};// 컴포넌트 내부용 (신규)\nconst componentOverlayStyle={position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",background:\"rgba(0, 0, 0, 0.35)\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",zIndex:10,pointerEvents:\"auto\"};// 중앙 콘텐츠\nconst contentStyle={display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:20,userSelect:\"none\"};// 스피너\nconst spinnerStyle={width:40,height:40,border:\"4px solid rgba(255, 255, 255, 0.2)\",borderTop:\"4px solid white\",borderRadius:\"50%\"};// 문구\nconst messageStyle={color:\"#fff\",fontSize:16,fontFamily:\"Pretendard Medium, sans-serif\",textAlign:\"center\",lineHeight:\"1.6\",whiteSpace:\"pre-line\"};\nexport const __FramerMetadata__ = {\"exports\":{\"LoadingOverlay\":{\"type\":\"reactComponent\",\"name\":\"LoadingOverlay\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LoadingOverlay.map"],"mappings":"4JAkE2F,SAAgB,EAAe,CAAC,UAAQ,UAAQ;qBAAoC,OAAK,QAAQ,CAAoD,OAA/C,EAAmE,EAAK,MAAM,CAAC,MAAM,CAAC,GAArD,IAAO,OAAwD,EAAiB,EAAsB,CAAC,SAAsB,EAAM,MAAM,CAAC,MAAM,EAAa,SAAS,CAAc,EAAK,EAAO,IAAI,CAAC,MAAM,EAAa,QAAQ,CAAC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,IAAS,SAAS,EAAE,KAAK,SAAS,CAAC,CAAC,CAAc,EAAK,MAAM,CAAC,MAAM,EAAa,SAAS,EAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAA1X,gCAAvJ,IAAkC,CACrF,EAAiB,CAAC,SAAS,QAAQ,IAAI,EAAE,KAAK,EAAE,MAAM,QAAQ,OAAO,QAAQ,WAAW,qBAAqB,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,OAAO,IAAI,cAAc,OAAO,CACxM,EAAsB,CAAC,SAAS,WAAW,IAAI,EAAE,KAAK,EAAE,MAAM,OAAO,OAAO,OAAO,WAAW,sBAAsB,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,OAAO,GAAG,cAAc,OAAO,CAC9M,EAAa,CAAC,QAAQ,OAAO,cAAc,SAAS,WAAW,SAAS,IAAI,GAAG,WAAW,OAAO,CACjG,EAAa,CAAC,MAAM,GAAG,OAAO,GAAG,OAAO,qCAAqC,UAAU,kBAAkB,aAAa,MAAM,CAC5H,EAAa,CAAC,MAAM,OAAO,SAAS,GAAG,WAAW,gCAAgC,UAAU,SAAS,WAAW,MAAM,WAAW,WAAW"}