{"version":3,"file":"LoadingModal.DXM1SViB.mjs","names":["React.useContext","React.useMemo","React.Fragment","React.useRef","React.useId","RichText","p","n","a","l","i"],"sources":["https:/framerusercontent.com/modules/gR40t0E9ccNvVIjEAf4r/A13HNz6uykoSjfNDsWdv/p9QO14zMN.js","https:/framer.com/m/Loading-cKpD.js","https:/framerusercontent.com/modules/OlkNpfjRSnJzELfL8HlJ/VB7TFvG41bC49Tz0yzeA/LoadingModal.js"],"sourcesContent":["// Generated by Framer (7f988a2)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ComponentViewportProvider,ControlType,cx,getFonts,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{Video}from\"https://framerusercontent.com/modules/lRDHiNWNVWmE0lqtoVHP/qXQVWG1AZxpdrbBmhE1U/Video.js\";const VideoFonts=getFonts(Video);const cycleOrder=[\"Fix8SnmGu\"];const serializationHash=\"framer-XBXEx\";const variantClassNames={Fix8SnmGu:\"framer-v-125ov5c\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants===null||variants===void 0?void 0:variants.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={damping:60,delay:0,mass:1,stiffness:500,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value!==null&&value!==void 0?value:config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion(React.Fragment);const getProps=({height,id,title,width,...props})=>{var _ref;return{...props,zhBRJai6t:(_ref=title!==null&&title!==void 0?title:props.zhBRJai6t)!==null&&_ref!==void 0?_ref:\"Loading...\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{activeLocale,setLocale}=useLocaleInfo();const{style,className,layoutId,variant,zhBRJai6t,...restProps}=getProps(props);const{baseVariant,classNames,gestureHandlers,gestureVariant,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"Fix8SnmGu\",variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const ref1=React.useRef(null);const defaultLayoutId=React.useId();const sharedStyleClassNames=[];const componentViewport=useComponentViewport();return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId!==null&&layoutId!==void 0?layoutId:defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsxs(motion.div,{...restProps,...gestureHandlers,background:{alt:\"\",fit:\"fill\",intrinsicHeight:360,intrinsicWidth:368,pixelHeight:360,pixelWidth:368,src:\"https://framerusercontent.com/images/P844Z8l4qFS3uIOLoXO1KVxLM.gif\"},className:cx(serializationHash,...sharedStyleClassNames,\"framer-125ov5c\",className,classNames),\"data-framer-name\":\"Primary\",layoutDependency:layoutDependency,layoutId:\"Fix8SnmGu\",ref:ref!==null&&ref!==void 0?ref:ref1,style:{...style},children:[/*#__PURE__*/_jsx(ComponentViewportProvider,{children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-179vrv3-container\",layoutDependency:layoutDependency,layoutId:\"JuQiBx0z6-container\",children:/*#__PURE__*/_jsx(Video,{backgroundColor:\"var(--token-7346c956-2945-4614-93bd-7323a4c57dab, rgb(255, 255, 255))\",borderRadius:0,bottomLeftRadius:0,bottomRightRadius:0,controls:false,height:\"100%\",id:\"JuQiBx0z6\",isMixedBorderRadius:false,layoutId:\"JuQiBx0z6\",loop:true,muted:true,objectFit:\"cover\",playing:true,posterEnabled:false,srcFile:\"https://framerusercontent.com/assets/RhBkxPAJua5eHCno8vvFDfkYSk.mp4\",srcType:\"Upload\",srcUrl:\"https://assets.mixkit.co/videos/preview/mixkit-ice-cream-glass-of-red-soda-5094-small.mp4\",startTime:0,style:{height:\"100%\",width:\"100%\"},topLeftRadius:0,topRightRadius:0,volume:25,width:\"100%\"})})}),/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"Q1VTVE9NO0xhcmsgQ2lyY3VsYXIgTWVkaXVt\",\"--framer-font-family\":'\"Lark Circular Medium\", \"Lark Circular Medium Placeholder\", sans-serif',\"--framer-line-height\":\"1.5em\",\"--framer-text-alignment\":\"left\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-1b3671a7-ddbb-4586-b516-422ef5d98b58, rgb(31, 35, 41)))\"},children:\"Loading...\"})}),className:\"framer-3hpghz\",\"data-framer-name\":\"Loading...\",fonts:[\"CUSTOM;Lark Circular Medium\"],layoutDependency:layoutDependency,layoutId:\"gXZRtlIoK\",style:{\"--extracted-r6o4lv\":\"var(--token-1b3671a7-ddbb-4586-b516-422ef5d98b58, rgb(31, 35, 41))\"},text:zhBRJai6t,verticalAlignment:\"top\",withExternalLayout:true})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-XBXEx.framer-5axwjf, .framer-XBXEx .framer-5axwjf { display: block; }\",\".framer-XBXEx.framer-125ov5c { align-content: center; align-items: center; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 5px; height: min-content; justify-content: center; overflow: hidden; padding: 0px; position: relative; width: min-content; }\",\".framer-XBXEx .framer-179vrv3-container { aspect-ratio: 1 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 160px); position: relative; width: 160px; }\",\".framer-XBXEx .framer-3hpghz { flex: none; height: auto; overflow: visible; position: relative; white-space: pre; width: auto; }\",\"@supports (background: -webkit-named-image(i)) and (not (font-palette:dark)) { .framer-XBXEx.framer-125ov5c { gap: 0px; } .framer-XBXEx.framer-125ov5c > * { margin: 0px; margin-bottom: calc(5px / 2); margin-top: calc(5px / 2); } .framer-XBXEx.framer-125ov5c > :first-child { margin-top: 0px; } .framer-XBXEx.framer-125ov5c > :last-child { margin-bottom: 0px; } }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 189\n * @framerIntrinsicWidth 160\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"zhBRJai6t\":\"title\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerComponentViewportWidth true\n */const Framerp9QO14zMN=withCSS(Component,css,\"framer-XBXEx\");export default Framerp9QO14zMN;Framerp9QO14zMN.displayName=\"Loading\";Framerp9QO14zMN.defaultProps={height:189,width:160};addPropertyControls(Framerp9QO14zMN,{zhBRJai6t:{defaultValue:\"Loading...\",title:\"title\",type:ControlType.String}});addFonts(Framerp9QO14zMN,[{explicitInter:true,fonts:[{family:\"Lark Circular Medium\",source:\"custom\",url:\"https://framerusercontent.com/assets/kD6uHRQCWWP966PnsDtH7Pe1pU.otf\"}]},...VideoFonts],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"Framerp9QO14zMN\",\"slots\":[],\"annotations\":{\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerImmutableVariables\":\"true\",\"framerDisplayContentsDiv\":\"false\",\"framerIntrinsicHeight\":\"189\",\"framerContractVersion\":\"1\",\"framerVariables\":\"{\\\"zhBRJai6t\\\":\\\"title\\\"}\",\"framerComponentViewportWidth\":\"true\",\"framerIntrinsicWidth\":\"160\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./p9QO14zMN.map","/*\n * Loading\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/gR40t0E9ccNvVIjEAf4r/A13HNz6uykoSjfNDsWdv/p9QO14zMN.js\"\nexport { default } from \"https://framerusercontent.com/modules/gR40t0E9ccNvVIjEAf4r/A13HNz6uykoSjfNDsWdv/p9QO14zMN.js\"\n","import{jsx as e}from\"react/jsx-runtime\";import{useEffect as o,useState as n}from\"react\";import a from\"react-modal\";import{addPropertyControls as t,ControlType as i}from\"framer\";import l from\"https://framer.com/m/Loading-cKpD.js\";export default function p(t){let[i,p]=n({isModalVisible:!1});o(()=>{console.log(\"added listener for show_loading_popup\"),window.addEventListener(\"show_loading_popup\",e=>{s();}),window.addEventListener(\"close_loading_popup\",e=>{d();});},[]);let r={loadingText:{ja_jp:\"読み込み中...\",en_us:\"Loading...\",zh_cn:\"加载中...\"}};console.log(\"lang:\",t.lang),console.log(\"translations.loadingText[props.lang]:\",r.loadingText[t.lang]);let s=()=>{p(e=>({isModalVisible:!0}));},d=()=>{p(e=>({isModalVisible:!1}));};return /*#__PURE__*/e(a,{isOpen:i.isModalVisible,style:{content:{inset:\"unset\",padding:\"24px\",border:\"none\",borderRadius:\"8px\",boxShadow:\"0px 10px 36px 10px rgba(31, 35, 41, 0.04), 0px 8px 24px 0px rgba(31, 35, 41, 0.04), 0px 6px 12px -10px rgba(31, 35, 41, 0.06)\",overflow:\"hidden\",textDecoration:\"none\"},overlay:{display:\"flex\",justifyContent:\"center\",alignItems:\"center\",background:\"rgba(0, 0, 0, 0.55)\",zIndex:3147483e3}},htmlOpenClassName:\"overflow-hidden\",children:/*#__PURE__*/e(l,{title:r.loadingText[t.lang]})});}t(p,{lang:{type:i.Enum,defaultValue:\"en_us\",options:[\"en_us\",\"ja_jp\",\"zh_cn\"],optionTitles:[\"en_us\",\"ja_jp\",\"zh_cn\"]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LoadingModal\",\"sl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