{"version":3,"file":"ONIInteractionSystem.BbtyPKQs.mjs","names":["_Fragment","useRef","__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","l","p","J","init_jsx_runtime","ce","de","marked","css","C","props","name","withFilterTransition","own","anim","change","v","ref","categoryFilter","pending","valid","category","u","click","args","withFilterAll","withFilterVideo","withFilterPhoto","withFilterDesign","withFilterStrategy","withCTA","init_ONIInteractionSystem"],"sources":["https:/framerusercontent.com/modules/L5aCNR5rL4qYYWid5WlR/FJsAoFZ2Agp9zaQetg0s/ONIInteractionSystem.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{forwardRef,useEffect,useRef}from\"react\";const css=`\n.oni-cta{cursor:pointer}\n.oni-cta p{transition:translate .2s ease,color .2s ease!important}\n@media(hover:hover) and (pointer:fine){.oni-cta:hover p,.oni-cta:focus-visible p{translate:4px 0;color:#1800AD!important}}\n@media(prefers-reduced-motion:reduce){.oni-cta p{transition:none!important;translate:none!important}}\n\n.oni-service .oni-service-label{transition:translate .35s cubic-bezier(.16,1,.3,1),color .25s!important}\n.oni-service .oni-service-preview{opacity:0!important;clip-path:inset(0 100% 0 0);transition:opacity .25s,clip-path .45s cubic-bezier(.16,1,.3,1),transform .45s!important}\n.oni-service{transition:background-color .25s!important}.oni-service:focus-visible{outline:2px solid #1800AD;outline-offset:4px}.oni-service .oni-service-preview:after{content:\"\";position:absolute;inset:0;background:radial-gradient(#1800AD66 .7px,transparent 1px);background-size:3px 3px;pointer-events:none}\n@media(hover:hover) and (pointer:fine) and (min-width:811px){\n.oni-service:hover,.oni-service:focus-within{background-color:#1800AD!important}\n.oni-service:hover .oni-service-label,.oni-service:focus-within .oni-service-label{translate:22px 0;color:white!important}\n.oni-service:hover .oni-service-label *,.oni-service:focus-within .oni-service-label *{color:white!important}\n.oni-service:hover .oni-service-preview,.oni-service:focus-within .oni-service-preview{opacity:.48!important;clip-path:inset(0 0 0 0)}\n.oni-service-photo:hover .oni-service-preview{transform:scale(1.07)}\n.oni-service-design:hover .oni-service-preview{transform:translateX(-12px)}\n.oni-service-strategy:hover .oni-service-label{translate:32px 0}\n}\n@media(hover:none),(pointer:coarse),(max-width:810px){.oni-service.oni-entered .oni-service-preview{opacity:.16!important;clip-path:inset(0 0 0 0)}.oni-cursor-only{display:none!important}}\n@media(prefers-reduced-motion:reduce){.oni-service,.oni-service *{transition:none!important}.oni-cursor-only{display:none!important}}\n`;function magnet(C,className=\"\",category=\"\"){return /*#__PURE__*/forwardRef(function Magnetic(props,ref){const own=useRef(null);useEffect(()=>{const el=own.current;if(!category||!el)return;const raw=el.getAttribute(\"href\");if(!raw)return;const u=new URL(raw,window.location.href);u.searchParams.set(\"category\",category);el.setAttribute(\"href\",u.href);},[category,props.href]);useEffect(()=>{const el=own.current;if(!el||!className.includes(\"oni-service \"))return;const obs=new IntersectionObserver(es=>{if(es.some(e=>e.isIntersecting)){el.classList.add(\"oni-entered\");obs.disconnect();}},{threshold:.3});obs.observe(el);return()=>obs.disconnect();},[]);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:css}),/*#__PURE__*/_jsx(C,{...props,onPointerDownCapture:e=>{if(category&&!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&e.button===0){try{window.sessionStorage.setItem(\"oni-project-filter\",JSON.stringify({category,at:Date.now()}));}catch{}}props.onPointerDownCapture?.(e);},onKeyDownCapture:e=>{if(category&&e.key===\"Enter\"){try{window.sessionStorage.setItem(\"oni-project-filter\",JSON.stringify({category,at:Date.now()}));}catch{}}props.onKeyDownCapture?.(e);},ref:v=>{own.current=v;if(typeof ref===\"function\")ref(v);else if(ref)ref.current=v;},className:`${props.className||\"\"} ${className}`})]});});}export function withMagnetic(C){return magnet(C);}export function withVideoService(C){return magnet(C,\"oni-service oni-service-video\",\"video\");}export function withPhotoService(C){return magnet(C,\"oni-service oni-service-photo\",\"photo\");}export function withDesignService(C){return magnet(C,\"oni-service oni-service-design\",\"design\");}export function withStrategyService(C){return magnet(C,\"oni-service oni-service-strategy\",\"strategie\");}function marked(C,name){return /*#__PURE__*/forwardRef(function Mark(props,ref){return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:css}),/*#__PURE__*/_jsx(C,{...props,ref:ref,style:name===\"oni-cursor-only\"&&typeof window!==\"undefined\"&&window.location.pathname.startsWith(\"/wedding\")?{...props.style,display:\"none\"}:props.style,className:`${props.className||\"\"} ${name}`})]});});}export function withServiceLabel(C){return marked(C,\"oni-service-label\");}export function withServicePreview(C){return marked(C,\"oni-service-preview\");}export function withCursorVisibility(C){return marked(C,\"oni-cursor-only\");}export function withFilterClick(C){return /*#__PURE__*/forwardRef(function FilterClick(props,ref){return /*#__PURE__*/_jsx(C,{...props,ref:ref,onClick:(...args)=>{if(typeof window!==\"undefined\")window.dispatchEvent(new Event(\"oni-filter-change\"));props.onClick?.(...args);}});});}export function withFilterTransition(C){return /*#__PURE__*/forwardRef(function FilterTransition(props,ref){const own=useRef(null);useEffect(()=>{let anim;function change(){if(window.matchMedia(\"(prefers-reduced-motion:reduce)\").matches)return;anim?.cancel();anim=own.current?.animate([{opacity:1,translate:\"0 0\",offset:0},{opacity:0,translate:\"0 -16px\",offset:.38},{opacity:0,translate:\"0 20px\",offset:.48},{opacity:1,translate:\"0 0\",offset:1}],{duration:520,easing:\"ease\",fill:\"none\"});}window.addEventListener(\"oni-filter-change\",change);return()=>{window.removeEventListener(\"oni-filter-change\",change);anim?.cancel();};},[]);return /*#__PURE__*/_jsx(C,{...props,ref:v=>{own.current=v;if(typeof ref===\"function\")ref(v);else if(ref)ref.current=v;}});});}function categoryFilter(C,category){return /*#__PURE__*/forwardRef(function CategoryFilter(props,ref){useEffect(()=>{if(typeof window===\"undefined\")return;let pending=null;try{pending=JSON.parse(window.sessionStorage.getItem(\"oni-project-filter\")||\"null\");}catch{}const valid=pending&&Date.now()-pending.at<3e4;const current=valid?pending.category:new URL(window.location.href).searchParams.get(\"category\")||\"\";if(current===category){if(valid){window.sessionStorage.removeItem(\"oni-project-filter\");const u=new URL(window.location.href);u.searchParams.set(\"category\",category);window.history.replaceState(window.history.state,\"\",u);}props.onClick?.();}},[]);function click(...args){if(typeof window!==\"undefined\"){const u=new URL(window.location.href);if(category)u.searchParams.set(\"category\",category);else u.searchParams.delete(\"category\");window.history.replaceState(window.history.state,\"\",u);window.dispatchEvent(new Event(\"oni-filter-change\"));}props.onClick?.(...args);}return /*#__PURE__*/_jsx(C,{...props,ref:ref,\"data-oni-interactive\":\"true\",onClick:click});});}export function withFilterAll(C){return categoryFilter(C,\"\");}export function withFilterVideo(C){return categoryFilter(C,\"video\");}export function withFilterPhoto(C){return categoryFilter(C,\"photo\");}export function withFilterDesign(C){return categoryFilter(C,\"design\");}export function withFilterStrategy(C){return categoryFilter(C,\"strategie\");}export function withCTA(C){return marked(C,\"oni-cta\");}\nexport const __FramerMetadata__ = {\"exports\":{\"withPhotoService\":{\"type\":\"reactHoc\",\"name\":\"withPhotoService\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withServiceLabel\":{\"type\":\"reactHoc\",\"name\":\"withServiceLabel\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCursorVisibility\":{\"type\":\"reactHoc\",\"name\":\"withCursorVisibility\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFilterStrategy\":{\"type\":\"reactHoc\",\"name\":\"withFilterStrategy\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCTA\":{\"type\":\"reactHoc\",\"name\":\"withCTA\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFilterTransition\":{\"type\":\"reactHoc\",\"name\":\"withFilterTransition\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDesignService\":{\"type\":\"reactHoc\",\"name\":\"withDesignService\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withStrategyService\":{\"type\":\"reactHoc\",\"name\":\"withStrategyService\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFilterVideo\":{\"type\":\"reactHoc\",\"name\":\"withFilterVideo\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withVideoService\":{\"type\":\"reactHoc\",\"name\":\"withVideoService\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFilterClick\":{\"type\":\"reactHoc\",\"name\":\"withFilterClick\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFilterDesign\":{\"type\":\"reactHoc\",\"name\":\"withFilterDesign\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFilterAll\":{\"type\":\"reactHoc\",\"name\":\"withFilterAll\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFilterPhoto\":{\"type\":\"reactHoc\",\"name\":\"withFilterPhoto\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withServicePreview\":{\"type\":\"reactHoc\",\"name\":\"withServicePreview\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withMagnetic\":{\"type\":\"reactHoc\",\"name\":\"withMagnetic\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ONIInteractionSystem.map"],"mappings":"A,uJAoBovD,SAASY,EAAO,EAAE,EAAK,CAAC,MAAoB,gBAAW,SAAc,EAAM,EAAI,CAAC,MAAoB,gBAAMZ,EAAU,CAAC,SAAS,CAAc,gBAAK,QAAQ,CAAC,SAASa,CAAG,CAAC,EAAe,gBAAKC,EAAE,CAAC,GAAGC,EAAU,MAAI,MAAMC,IAAO,mBAA0BX,IAAS,QAAaA,EAAO,SAAS,SAAS,WAAW,UAAU,EAAE,CAAC,GAAGU,EAAM,MAAM,QAAQ,MAAM,EAAEA,EAAM,MAAM,UAAU,GAAGA,EAAM,WAAW,GAAG,GAAGC,GAAM,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,CAAE,CAA6f,SAAgBC,EAAqB,EAAE,CAAC,MAAoB,gBAAW,SAA0B,EAAM,EAAI,CAAC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