{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/xaswehZWsdrg2vflyKZT/Waqb0D1mlp7yLK081MAZ/ChromaBGs.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{RenderTarget,addPropertyControls,ControlType}from\"framer\";/**\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicHeight 400\n * @framerIntrinsicWidth 800\n */export default function UnicornStudioEmbed({projectId}){const elementRef=useRef(null);useEffect(()=>{const isEditingOrPreviewing=[\"CANVAS\",\"PREVIEW\"].includes(RenderTarget.current());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.2.3/unicornStudio.umd.js\";script.onload=callback;document.head.appendChild(script);}else{callback();}};const initializeUnicornStudio=()=>{const cacheBuster=isEditingOrPreviewing?\"?update=\"+Math.random():\"\";elementRef.current.setAttribute(\"data-us-project\",projectId+cacheBuster);if(window.UnicornStudio){window.UnicornStudio.destroy();window.UnicornStudio.init().then(scenes=>{console.log(scenes);});}};if(projectId){if(window.UnicornStudio){initializeUnicornStudio();}else{initializeScript(initializeUnicornStudio);}}},[projectId]);return /*#__PURE__*/_jsx(\"div\",{ref:elementRef,\"data-us-dpi\":\"1\",\"data-us-scale\":\"1\",\"data-us-fps\":\"60\",style:{width:\"100%\",height:\"100%\"}});}UnicornStudioEmbed.displayName=\"Chroma Background\";addPropertyControls(UnicornStudioEmbed,{projectId:{type:ControlType.Enum,title:\"Style\",options:[\"lHlDvoJDIXCxxXVqTNOC\",\"YnADGzDD7LGB9cUocyyN\",\"ezEDNzFtrAgm8yCUWUeX\",\"wYI4YirTR5lrja86ArSY\",\"rJ39y9Nnyz3cJooDtmNM\",\"HJKVa10sftexJ7OgsOnU\"],optionTitles:[\"Liquid\",\"Folds\",\"Smoke\",\"Flow\",\"Pixel\",\"ASCII\"],description:\"More components at [Framer University](https://frameruni.link/cc).\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"UnicornStudioEmbed\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicWidth\":\"800\",\"framerDisableUnlink\":\"*\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"400\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ChromaBGs.map"],
  "mappings": "uJAOkB,SAARA,EAAoC,CAAC,UAAAC,CAAS,EAAE,CAAC,IAAMC,EAAWC,EAAO,IAAI,EAAE,OAAAC,EAAU,IAAI,CAAC,IAAMC,EAAsB,CAAC,SAAS,SAAS,EAAE,SAASC,EAAa,QAAQ,CAAC,EAAQC,EAAiBC,GAAU,CAA0F,GAApE,SAAS,cAAc,2CAA2C,EAAuMA,EAAS,MAA3L,CAAC,IAAMC,EAAO,SAAS,cAAc,QAAQ,EAAEA,EAAO,IAAI,yDAAyDA,EAAO,OAAOD,EAAS,SAAS,KAAK,YAAYC,CAAM,CAAE,CAAkB,EAAQC,EAAwB,IAAI,CAAC,IAAMC,EAAYN,EAAsB,WAAW,KAAK,OAAO,EAAE,GAAGH,EAAW,QAAQ,aAAa,kBAAkBD,EAAUU,CAAW,EAAKC,EAAO,gBAAeA,EAAO,cAAc,QAAQ,EAAEA,EAAO,cAAc,KAAK,EAAE,KAAKC,GAAQ,CAAC,QAAQ,IAAIA,CAAM,CAAE,CAAC,EAAG,EAAKZ,IAAcW,EAAO,cAAeF,EAAwB,EAAQH,EAAiBG,CAAuB,EAAI,EAAE,CAACT,CAAS,CAAC,EAAsBa,EAAK,MAAM,CAAC,IAAIZ,EAAW,cAAc,IAAI,gBAAgB,IAAI,cAAc,KAAK,MAAM,CAAC,MAAM,OAAO,OAAO,MAAM,CAAC,CAAC,CAAE,CAACF,EAAmB,YAAY,oBAAoBe,EAAoBf,EAAmB,CAAC,UAAU,CAAC,KAAKgB,EAAY,KAAK,MAAM,QAAQ,QAAQ,CAAC,uBAAuB,uBAAuB,uBAAuB,uBAAuB,uBAAuB,sBAAsB,EAAE,aAAa,CAAC,SAAS,QAAQ,QAAQ,OAAO,QAAQ,OAAO,EAAE,YAAY,oEAAoE,CAAC,CAAC",
  "names": ["UnicornStudioEmbed", "projectId", "elementRef", "pe", "ue", "isEditingOrPreviewing", "RenderTarget", "initializeScript", "callback", "script", "initializeUnicornStudio", "cacheBuster", "window", "scenes", "p", "addPropertyControls", "ControlType"]
}
