{"version":3,"file":"UTM.CSUIigT8.mjs","names":["useState"],"sources":["https:/ga.jspm.io/npm:@motionone/utils@10.12.0/dist/index.es.js","https:/framerusercontent.com/modules/NtZIvoPZd99PLnJL7tAz/EIpIXCSo80TkK6myWeBD/UTM.js"],"sourcesContent":["function addUniqueItem(t,e){-1===t.indexOf(e)&&t.push(e)}function removeItem(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const clamp=(t,e,n)=>Math.min(Math.max(n,t),e);const t={duration:.3,delay:0,endDelay:0,repeat:0,easing:\"ease\"};const isNumber=t=>\"number\"===typeof t;const isString=t=>\"string\"===typeof t;const isEasingGenerator=t=>\"object\"===typeof t&&Boolean(t.createAnimation);const isCubicBezier=t=>Array.isArray(t)&&isNumber(t[0]);const isEasingList=t=>Array.isArray(t)&&!isNumber(t[0]);const wrap=(t,e,n)=>{const o=e-t;return((n-t)%o+o)%o+t};function getEasingForSegment(t,e){return isEasingList(t)?t[wrap(0,t.length,e)]:t}const mix=(t,e,n)=>-n*t+n*e+t;const noop=()=>{};const noopReturn=t=>t;const progress=(t,e,n)=>e-t===0?1:(n-t)/(e-t);function fillOffset(t,e){const n=t[t.length-1];for(let o=1;o<=e;o++){const s=progress(0,e,o);t.push(mix(n,1,s))}}function defaultOffset(t){const e=[0];fillOffset(e,t-1);return e}function interpolate(t,e=defaultOffset(t.length),n=noopReturn){const o=t.length;const s=o-e.length;s>0&&fillOffset(e,s);return s=>{let r=0;for(;r<o-2;r++)if(s<e[r+1])break;let f=clamp(0,1,progress(e[r],e[r+1],s));const c=getEasingForSegment(n,r);f=c(f);return mix(t[r],t[r+1],f)}}const e={ms:t=>1e3*t,s:t=>t/1e3};\n/*\n  Convert velocity into velocity per second\n\n  @param [number]: Unit per frame\n  @param [number]: Frame duration in ms\n*/function velocityPerSecond(t,e){return e?t*(1e3/e):0}export{addUniqueItem,clamp,defaultOffset,t as defaults,fillOffset,getEasingForSegment,interpolate,isCubicBezier,isEasingGenerator,isEasingList,isNumber,isString,mix,noop,noopReturn,progress,removeItem,e as time,velocityPerSecond,wrap};\n\n//# sourceMappingURL=index.es.js.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useState}from\"react\";export function withAbsoluteUTM(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[newLink,setNewLink]=useState(props.link);useEffect(()=>{if(typeof window===\"undefined\"||!props.link)return;const pageParams=new URLSearchParams(window.location.search).toString();const url=new URL(props.link,window.location.origin);const combinedSearch=[url.search.replace(/^\\?/,\"\"),pageParams].filter(Boolean).join(\"&\");url.search=combinedSearch;setNewLink(url.toString());},[props.link]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,link:newLink});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withAbsoluteUTM\":{\"type\":\"reactHoc\",\"name\":\"withAbsoluteUTM\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./UTM.map"],"mappings":"8JAAiI,GAAO,EAAE,EAAE,IAAI,KAAK,IAAI,KAAK,IAAI,EAAE,CAAC,EAAE,CAAC,KCA5E,SAAgB,EAAgB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,EAAQ,GAAYA,EAAS,EAAM,IAAI,EAA+V,OAA7V,MAAc,CAAC,GAAU,IAAS,QAAa,CAAC,EAAM,KAAK,OAAO,IAAM,EAAW,IAAI,gBAAgB,EAAO,SAAS,MAAM,CAAC,CAAC,SAAS,EAAQ,EAAI,IAAI,IAAI,EAAM,KAAK,EAAO,SAAS,MAAM,EAA2F,EAAI,OAAxE,CAAC,EAAI,OAAO,QAAQ,MAAM,EAAE,EAAE,CAAU,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAA6B,EAAE,EAAW,EAAI,SAAS,CAAC,CAAE,EAAE,CAAC,EAAM,IAAI,CAAC,EAAsB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,KAAK,CAAO,CAAC,CAAE,CAAC,CAAE,qBAA7lB,IAAiD"}