{"version":3,"file":"PerseidSpectrumText.BbhqFnNs.mjs","names":["_Fragment","__esmMin","init_ssg_sandbox_shims","init_npm_react_18_3_1","init_npm_react_dom_18_3_1","l","p","J","init_jsx_runtime","withSpectrumInk","spectrumStyles","Component","props","withSpectrumLight","init_PerseidSpectrumText"],"sources":["https:/framerusercontent.com/modules/wfROudUPrAcoPOzAEfrf/EbnKfhZ8cV0Imq2wHK0p/PerseidSpectrumText.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{forwardRef}from\"react\";const spectrumStyles=String.raw`\n@keyframes perseidSpectrumShift {\n  0% { background-position: 12% 50%; }\n  50% { background-position: 88% 50%; }\n  100% { background-position: 12% 50%; }\n}\n[data-perseid-spectrum=\"ink\"] { color: #101112; }\n[data-perseid-spectrum=\"light\"] { color: #ffffff; }\n@supports ((-webkit-background-clip: text) or (background-clip: text)) {\n  [data-perseid-spectrum] :is(h1,h2,h3,h4,h5,h6,p),\n  [data-perseid-spectrum]:is(h1,h2,h3,h4,h5,h6,p) {\n    padding-bottom: 0.16em;\n    margin-bottom: -0.16em;\n    overflow: visible;\n    background-image: var(--perseid-text-spectrum);\n    background-size: 240% 100%;\n    background-repeat: no-repeat;\n    background-position: 35% 50%;\n    -webkit-background-clip: text;\n    background-clip: text;\n    color: transparent !important;\n    -webkit-text-fill-color: transparent !important;\n    animation: perseidSpectrumShift 12s ease-in-out -3s infinite;\n  }\n  [data-perseid-spectrum] :is(h1,h2,h3,h4,h5,h6,p) span {\n    color: inherit !important;\n    -webkit-text-fill-color: inherit !important;\n  }\n}\n@media (prefers-reduced-motion: reduce) {\n  [data-perseid-spectrum] :is(h1,h2,h3,h4,h5,h6,p),\n  [data-perseid-spectrum]:is(h1,h2,h3,h4,h5,h6,p) {\n    animation: none;\n    background-position: 35% 50%;\n  }\n}\n`;export function withSpectrumInk(Component){return /*#__PURE__*/forwardRef(function SpectrumInk(props,ref){return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:spectrumStyles}),/*#__PURE__*/_jsx(Component,{...props,ref:ref,\"data-perseid-spectrum\":\"ink\",style:{...props.style,\"--perseid-text-spectrum\":\"linear-gradient(110deg, #101112 0%, #42216f 15%, #17628d 28%, #a74a21 42%, #101112 54%, #586b20 66%, #432176 80%, #101112 100%)\"}})]});});}export function withSpectrumLight(Component){return /*#__PURE__*/forwardRef(function SpectrumLight(props,ref){return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:spectrumStyles}),/*#__PURE__*/_jsx(Component,{...props,ref:ref,\"data-perseid-spectrum\":\"light\",style:{...props.style,\"--perseid-text-spectrum\":\"linear-gradient(110deg, #ffffff 0%, #ffffff 15%, #b8def5 28%, #d8bff5 43%, #ffffff 56%, #ffd1ac 68%, #e0f2b8 80%, #ffffff 100%)\"}})]});});}import{createPortal}from\"react-dom\";import{useEffect,useState}from\"react\";export function withFilmPlayerTarget(Component){return /*#__PURE__*/forwardRef(function FilmTarget(props,ref){return /*#__PURE__*/_jsx(Component,{...props,ref:ref,\"data-perseid-film-player\":\"true\"});});}export function withFilmExpand(Component){return /*#__PURE__*/forwardRef(function FilmExpand(props,ref){const[film,setFilm]=useState(null);const close=()=>{if(film?.original){film.original.muted=true;if(film.wasPlaying)film.original.play().catch(()=>{});}setFilm(null);};useEffect(()=>{if(!film)return;const previous=document.body.style.overflow;document.body.style.overflow=\"hidden\";const key=event=>{if(event.key===\"Escape\")close();};window.addEventListener(\"keydown\",key);return()=>{document.body.style.overflow=previous;window.removeEventListener(\"keydown\",key);};},[film]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(Component,{...props,ref:ref,onClick:event=>{props.onClick?.(event);const original=document.querySelector(\"[data-perseid-film-player] video\");if(!original)return;const wasPlaying=!original.paused;original.pause();setFilm({src:original.currentSrc||original.src,time:original.currentTime,original,wasPlaying});}}),film&&/*#__PURE__*/createPortal(/*#__PURE__*/_jsxs(\"div\",{role:\"dialog\",\"aria-modal\":\"true\",\"aria-label\":\"Project film — full frame\",style:{position:\"fixed\",inset:0,zIndex:2147483e3,background:\"#080a0c\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:[/*#__PURE__*/_jsx(\"video\",{src:film.src,autoPlay:true,muted:true,controls:true,playsInline:true,loop:true,onLoadedMetadata:event=>{event.currentTarget.currentTime=film.time;},style:{width:\"100%\",height:\"100%\",objectFit:\"contain\"}}),/*#__PURE__*/_jsx(\"button\",{autoFocus:true,onClick:close,\"aria-label\":\"Close full frame film\",style:{position:\"absolute\",top:20,right:20,zIndex:2,padding:\"12px 18px\",color:\"#fff\",background:\"#101112\",border:\"1px solid #ffffff55\",borderRadius:0,font:\"14px Inter, sans-serif\",cursor:\"pointer\"},children:\"close film\"})]}),document.body)]});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withSpectrumLight\":{\"type\":\"reactHoc\",\"name\":\"withSpectrumLight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFilmPlayerTarget\":{\"type\":\"reactHoc\",\"name\":\"withFilmPlayerTarget\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFilmExpand\":{\"type\":\"reactHoc\",\"name\":\"withFilmExpand\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSpectrumInk\":{\"type\":\"reactHoc\",\"name\":\"withSpectrumInk\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PerseidSpectrumText.map"],"mappings":"A,yIAoCE,SAAgBS,EAAgB,EAAU,CAAC,MAAoB,gBAAW,SAAqB,EAAM,EAAI,CAAC,MAAoB,gBAAMT,EAAU,CAAC,SAAS,CAAc,gBAAK,QAAQ,CAAC,SAASU,CAAc,CAAC,EAAe,gBAAKC,EAAU,CAAC,GAAGC,EAAU,MAAI,wBAAwB,MAAM,MAAM,CAAC,GAAGA,EAAM,MAAM,0BAA0B,iIAAiI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,CAAE,CAAC,SAAgBC,EAAkB,EAAU,CAAC,MAAoB,gBAAW,SAAuB,EAAM,EAAI,CAAC,MAAoB,gBAAMb,EAAU,CAAC,SAAS,CAAc,gBAAK,QAAQ,CAAC,SAASU,CAAc,CAAC,EAAe,gBAAKC,EAAU,CAAC,GAAGC,EAAU,MAAI,wBAAwB,QAAQ,MAAM,CAAC,GAAGA,EAAM,MAAM,0BAA0B,iIAAiI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,CAAE,C,oDApCh0B,EAAe,OAAO,GAAG"}