{"version":3,"file":"shared-lib.C98Lfe-c.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/vbaJXlyVEeIvuEevvudG/rCFm5HF6GVagmMq4atm9/UnicornStudioEmbed.js","https:/framerusercontent.com/modules/8iIgtBR3ISI15jUvc9Ol/bgjrbCEpmu1KWgK560WB/nzbKIRcpi.js","https:/framerusercontent.com/modules/i3BnmQzmhdjFuXJdwCeM/hqdKKoWcA7o5YGMycmLS/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicHeight 400\n * @framerIntrinsicWidth 800\n */export default function UnicornStudioEmbed(props){const elementRef=useRef(null);const sceneRef=useRef(null);useEffect(()=>{const isEditingOrPreviewing=[\"CANVAS\",\"PREVIEW\"].includes(RenderTarget.current());if(RenderTarget.current()===\"CANVAS\"){return;}const initializeScript=callback=>{const existingScript=document.querySelector('script[src^=\"https://cdn.unicorn.studio\"]');if(!existingScript){const script=document.createElement(\"script\");script.src=\"https://cdn.unicorn.studio/v1.3.2/unicornStudio.umd.js\";script.onload=callback;document.head.appendChild(script);}else{callback();}};const initializeUnicornStudio=()=>{const query=props.projectId.split(\"?\");const projectId=query[0];const production=query[1]&&query[1].includes(\"production\");const cacheBuster=isEditingOrPreviewing?\"?update=\"+Math.random():\"\";elementRef.current.setAttribute(\"data-us-project\",projectId+cacheBuster);if(production){elementRef.current.setAttribute(\"data-us-production\",1);}if(window.UnicornStudio){var _window_UnicornStudio_scenes;const existingScene=(_window_UnicornStudio_scenes=window.UnicornStudio.scenes)===null||_window_UnicornStudio_scenes===void 0?void 0:_window_UnicornStudio_scenes.find(scene=>scene.element===elementRef.current||scene.element.contains(elementRef.current));if(existingScene){existingScene.destroy();}else{window.UnicornStudio.destroy();}window.UnicornStudio.init().then(scenes=>{const ourScene=scenes.find(scene=>scene.element===elementRef.current||scene.element.contains(elementRef.current));if(ourScene){sceneRef.current=ourScene;}});}};if(props.projectId){if(window.UnicornStudio){initializeUnicornStudio();}else{initializeScript(initializeUnicornStudio);}}return()=>{if(sceneRef.current){sceneRef.current.destroy();sceneRef.current=null;}};},[props.projectId]);if(RenderTarget.current()===\"CANVAS\"){return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",width:\"100%\",height:\"100%\",backgroundColor:\"rgba(0, 0, 0, 0.15)\",color:\"#4B5563\",fontWeight:500,textAlign:\"center\",padding:\"16px\"},children:[/*#__PURE__*/_jsx(\"p\",{style:{fontSize:\"1.25rem\",marginBottom:\"12px\"},children:\"Scene will render in Preview and on your published site.\"}),!props.projectId?/*#__PURE__*/_jsx(\"p\",{style:{fontSize:\"1rem\",color:\"#EF4444\"},children:\"No project ID, please export your scene and add its project ID in the detail panel.\"}):\" \"]});}return /*#__PURE__*/_jsx(\"div\",{ref:elementRef,\"data-us-dpi\":props.dpi,\"data-us-scale\":props.scale,\"data-us-fps\":props.fps,\"data-us-altText\":props.altText,\"data-us-ariaLabel\":props.ariaLabel,\"data-us-lazyload\":props.lazyLoad?\"true\":\"\",style:{width:\"100%\",height:\"100%\",...props.style},children:props.header&&/*#__PURE__*/_jsx(\"h1\",{style:{width:\"1px\",height:\"1px\",margin:\"-1px\",padding:\"0\",overflow:\"hidden\",clip:\"rect(0, 0, 0, 0)\",border:\"0\"},children:props.header})});}UnicornStudioEmbed.displayName=\"Unicorn Studio Embed\";addPropertyControls(UnicornStudioEmbed,{projectId:{type:ControlType.String,title:\"Project ID\"},scale:{type:ControlType.Number,title:\"Scale\",defaultValue:1,min:.25,max:1,step:.01},dpi:{type:ControlType.Number,title:\"DPI\",defaultValue:1.5,min:.5,max:2,step:.1},fps:{type:ControlType.Number,title:\"FPS\",defaultValue:60,min:10,max:120,step:5},header:{type:ControlType.String,title:\"H1 text\"},altText:{type:ControlType.String,title:\"Alt text\"},ariaLabel:{type:ControlType.String,title:\"Aria label\"},lazyLoad:{type:ControlType.Boolean,title:\"Lazy Load\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"UnicornStudioEmbed\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"400\",\"framerIntrinsicWidth\":\"800\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./UnicornStudioEmbed.map","// Generated by Framer (68888f7)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-AwBW0 .framer-styles-preset-1398vte:not(.rich-text-wrapper), .framer-AwBW0 .framer-styles-preset-1398vte.rich-text-wrapper a { --framer-link-current-text-decoration: none; --framer-link-hover-text-decoration: none; --framer-link-text-color: #b0b0b0; --framer-link-text-decoration: none; }\"];export const className=\"framer-AwBW0\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (c0aead9)\nexport default function metadata(params,activeLocale){return{description:\"We help you build and grow your brand online\",favicon:\"https://framerusercontent.com/assets/SlJLEMAb34unxnTEKqwhBnnyPU.jpg\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/GcIEVn9Kcb80WFfM35tEPoPIZqM.png\",title:\"Cherry Media - Creative Agency\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"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