{"version":3,"file":"AppsScriptEmbed.B6prYvUK.mjs","names":["useState","useEffect","_jsxs","_jsx","__esmMin","init_npm_react_18_3_1","_e","p","c","init_jsx_runtime","ce","init_framer_ChujFWHC","addPropertyControls","ControlType","AppsScriptEmbed","url","DEFAULT_URL","loaded","setLoaded","link","PRETENDARD_CSS","timer","FONT_STACK","init_AppsScriptEmbed"],"sources":["https:/framerusercontent.com/modules/6rw6rCBfjatOeQ5LU8aZ/eYSqZLsDl4cmMOVjJjkY/AppsScriptEmbed.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";const DEFAULT_URL=\"https://script.google.com/macros/s/AKfycbx2rMb5muNX8at83WVkF0YlCu8VSuqCgMjTVhhHlCD3T1liNyRS4G6jzDK6YeXRAY6h/exec\";const PRETENDARD_CSS=\"https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css\";const FONT_STACK='\"Pretendard Variable\", Pretendard, \"Apple SD Gothic Neo\", \"Malgun Gothic\", sans-serif';// @framerSupportedLayoutWidth any\n// @framerSupportedLayoutHeight any\nexport default function AppsScriptEmbed({url=DEFAULT_URL}){const[loaded,setLoaded]=useState(false);useEffect(()=>{if(typeof document!==\"undefined\"&&!document.getElementById(\"pretendard-font-link\")){const link=document.createElement(\"link\");link.id=\"pretendard-font-link\";link.rel=\"stylesheet\";link.crossOrigin=\"anonymous\";link.href=PRETENDARD_CSS;document.head.appendChild(link);}},[]);useEffect(()=>{setLoaded(false);const timer=setTimeout(()=>{setLoaded(true);},8e3);return()=>clearTimeout(timer);},[url]);return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",height:\"100%\",position:\"relative\",backgroundColor:\"#eef2f6\",overflow:\"hidden\",fontFamily:FONT_STACK},children:[/*#__PURE__*/_jsx(\"iframe\",{src:url,onLoad:()=>setLoaded(true),style:{width:\"100%\",height:\"100%\",border:\"none\",display:\"block\"},allow:\"camera; microphone\"}),!loaded&&/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",inset:0,backgroundColor:\"#eef2f6\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",gap:14,zIndex:10},children:[/*#__PURE__*/_jsx(\"style\",{children:`@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }`}),/*#__PURE__*/_jsx(\"div\",{style:{width:36,height:36,borderRadius:\"50%\",border:\"3px solid #cbd5e1\",borderTopColor:\"#2563eb\",animation:\"spin 0.8s linear infinite\",boxSizing:\"border-box\"}}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:16,fontWeight:700,color:\"#0f172a\"},children:\"신청 양식을 불러오는 중입니다...\"}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:13,color:\"#64748b\"},children:\"잠시만 기다려 주세요\"})]})]});}addPropertyControls(AppsScriptEmbed,{url:{type:ControlType.String,title:\"URL\",defaultValue:DEFAULT_URL}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AppsScriptEmbed\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AppsScriptEmbed.map"],"mappings":"A,wLAEA,SAAwBc,EAAgB,CAACC,MAAIC,GAAa,CAAC,GAAK,CAACC,EAAOC,GAAWlB,EAAS,EAAK,EAA2Z,OAAzZC,MAAc,CAAC,GAAG,OAAO,SAAW,KAAa,CAAC,SAAS,eAAe,sBAAsB,EAAE,CAAC,IAAMkB,EAAK,SAAS,cAAc,MAAM,EAAEA,EAAK,GAAG,uBAAuBA,EAAK,IAAI,aAAaA,EAAK,YAAY,YAAYA,EAAK,KAAKC,EAAe,SAAS,KAAK,YAAYD,CAAI,CAAE,CAAC,EAAE,CAAC,C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