{"version":3,"file":"shared-lib.DxqFFCOa.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/p1iK05FoClzJtuqzoHEq/7GgGKkHNWBeZxmdiMxxO/ZKOLOGO.js","https:/framerusercontent.com/modules/khNy8EqRD8zQFih1Vx7c/lNjCVhxS39AJjXzCrWMF/L0PAOPhLO.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";import{useRef,useState}from\"react\";const LIFTS=[40,18,6];const spring={type:\"spring\",stiffness:320,damping:18,mass:.8};/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function ZKOLogo({color,hoverColor,link,openInNewTab,scrollToTop,anchorId,scrollOffset,homePath}){const[hovered,setHovered]=useState(null);const resetTimer=useRef(null);const scheduleReset=(delay=650)=>{if(resetTimer.current)clearTimeout(resetTimer.current);resetTimer.current=setTimeout(()=>setHovered(null),delay);};const letterFromPoint=(x,y)=>{let el=document.elementFromPoint(x,y);while(el){const l=el.getAttribute(\"data-letter\");if(l!==null)return parseInt(l);el=el.parentElement;}return null;};const handleTouchStart=e=>{if(resetTimer.current)clearTimeout(resetTimer.current);const t=e.touches[0];const idx=letterFromPoint(t.clientX,t.clientY);if(idx!==null)setHovered(idx);};const handleTouchMove=e=>{if(resetTimer.current)clearTimeout(resetTimer.current);const t=e.touches[0];const idx=letterFromPoint(t.clientX,t.clientY);setHovered(idx);};const handleTouchEnd=()=>scheduleReset(650);const getLift=i=>{if(hovered===null)return 0;const dist=Math.abs(i-hovered);return-(LIFTS[dist]??0);};const fill=i=>hovered===i?hoverColor:color;const handleClick=()=>{if(scrollToTop){const isOnHome=window.location.pathname===(homePath||\"/\");if(isOnHome){window.scrollTo({top:0,behavior:\"smooth\"});}else{window.location.href=homePath||\"/\";}return;}if(anchorId){const target=document.getElementById(anchorId);if(target){const top=target.getBoundingClientRect().top+window.scrollY-(scrollOffset??0);window.scrollTo({top,behavior:\"smooth\"});return;}}if(!link)return;window.open(link,openInNewTab?\"_blank\":\"_self\");};return /*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 805.15 361.26\",xmlns:\"http://www.w3.org/2000/svg\",style:{width:\"100%\",height:\"100%\",overflow:\"visible\",cursor:link||scrollToTop?\"pointer\":\"default\"},onPointerLeave:e=>{if(e.pointerType===\"mouse\")setHovered(null);},onClick:handleClick,onTouchStart:handleTouchStart,onTouchMove:handleTouchMove,onTouchEnd:handleTouchEnd,children:[/*#__PURE__*/_jsx(motion.g,{\"data-letter\":\"0\",animate:{y:getLift(0)},transition:spring,onPointerEnter:e=>{if(e.pointerType===\"mouse\")setHovered(0);},style:{cursor:\"pointer\",transformOrigin:\"center bottom\"},children:/*#__PURE__*/_jsx(\"path\",{fill:fill(0),d:\"M267.56,254.87l-1.53-22.84c-4.12-3.12-9.19-5.85-15.34-8.01l-127.22-38.64c-14.83-4.3-14.07-20.31,0-26.17l93.26-39.4c16.45-6.96,29.85-14.88,40.23-23.3l-3.05-45.79c-.88-15.22,1.46-27.6,6.82-36.65-12.49-7.08-29.87-11.36-51.8-11.36H61.4C25.89,2.74-2.2,16.02.14,50.35c1.94,32,17.95,46.43,40.58,46.43,14.46,0,32.02-5.85,50.74-17.17l100.69-60.11c15.22-9.37,28.5,8.98,16.8,20.68L19.66,228.71c-12.89,12.89-17.95,25.75-17.95,37.46,0,21.86,19.5,38.64,47.61,38.64s41.76-29.66,41.76-58.93v-26.54c0-18.35,4.28-23.81,11.31-23.81,4.67,0,10.92,4.7,14.04,7.8l75.7,78.85c16.01,16.77,36.69,23.41,50.37,23.41,16.57,0,27.81-8.98,33.92-20.64-4.72-7.52-7.94-17.42-8.86-30.08Z\"})}),/*#__PURE__*/_jsx(motion.g,{\"data-letter\":\"1\",animate:{y:getLift(1)},transition:spring,onPointerEnter:e=>{if(e.pointerType===\"mouse\")setHovered(1);},style:{cursor:\"pointer\",transformOrigin:\"center bottom\"},children:/*#__PURE__*/_jsx(\"path\",{fill:fill(1),d:\"M531.51,221.65c-7.2-3.05-15.78-5.53-25.91-7.77l-122.16-26.54c-15.22-3.12-35.91-5.46-37.85-17.17-1.57-8.58,1.55-17.56,14.83-23.81l135.81-65.17c11.31-5.48,22.23,6.62,18.74,17.93l-14.44,47.24c-5.48,17.95,5.46,27.69,17.56,28.48,1.76.05,3.54-.07,5.32-.39-.42-6.27-.62-12.77-.62-19.5,0-28.76,3.77-53.58,11.17-74.43l-4.95-34.47C524.34,12.89,502.47,0,479.06,0c-25.77,0-35.51,16.01-58.16,42.92l-106.93,127.25c-15.59,18.32-35.51,2.73-23.41-16.01l48.79-74.54c7.8-11.71,12.86-24.59,9.74-43.31C345.59,16.78,327.64,0,299.92,0s-42.15,19.9-40.19,53.86l13.65,204.1c2.73,37.09,24.99,50.34,47.22,50.34,39.82,0,38.64-40.97,13.28-71.03l-6.25-7.43c-10.55-12.86-16.4-26.14-10.94-34.73,10.16-15.99,23.81-8.19,43.33,6.64l101.87,77.27c25.36,19.13,42.13,29.27,66.33,29.27,17.35,0,30.98-15.73,33.94-33.92-13.81-13.53-24.08-31.12-30.66-52.75Z\"})}),/*#__PURE__*/_jsxs(motion.g,{\"data-letter\":\"2\",animate:{y:getLift(2)},transition:spring,onPointerEnter:e=>{if(e.pointerType===\"mouse\")setHovered(2);},style:{cursor:\"pointer\",transformOrigin:\"center bottom\"},children:[/*#__PURE__*/_jsx(\"path\",{fill:fill(2),d:\"M666.61,0c-90.55,0-138.17,52.7-138.17,154.94,0,74.78,25.45,122.18,74.54,142.29,41.83-34.75,95.92,8.05,156.47-17.21,30.19-25.03,45.69-66.72,45.69-125.07C805.15,52.7,757.53,0,666.61,0ZM766.9,199.43l-147.91,59.32c-31.23,12.49-55.83-7.8-44.49-44.49l52.68-168.2c6.25-20.29,31.21-29.66,46.04-12.1l103.05,124.49c13.26,15.99,9.35,33.57-9.37,40.97Z\"}),/*#__PURE__*/_jsx(\"path\",{fill:fill(2),d:\"M569.51,361.26c108.91-72.18,155.97,91.76,230.06-102.25-95.55,90.26-179.01-45.31-230.06,102.25Z\"})]})]});}addPropertyControls(ZKOLogo,{color:{type:ControlType.Color,title:\"Couleur\",defaultValue:\"#1d1d1b\"},hoverColor:{type:ControlType.Color,title:\"Hover color\",defaultValue:\"#1d1d1b\"},scrollToTop:{type:ControlType.Boolean,title:\"Remonter en haut\",defaultValue:false,enabledTitle:\"Oui\",disabledTitle:\"Non\",description:\"Sur la home : scroll vers le haut. Sur une autre page : redirige vers la home.\"},homePath:{type:ControlType.String,title:\"Home path\",defaultValue:\"/\",description:\"Chemin de la page home (ex: / ou /fr). Utilis\\xe9 pour d\\xe9tecter si tu es d\\xe9j\\xe0 dessus.\"},link:{type:ControlType.Link,title:\"Lien\"},openInNewTab:{type:ControlType.Boolean,title:\"Nouvel onglet\",defaultValue:false,enabledTitle:\"Oui\",disabledTitle:\"Non\"},anchorId:{type:ControlType.String,title:\"Anchor ID\",placeholder:\"ex: section-contact\",description:\"ID du frame Framer cible (m\\xeame page, scroll fluide). Prioritaire sur le lien.\"},scrollOffset:{type:ControlType.Number,title:\"Offset (px)\",defaultValue:0,min:-500,max:500,step:1,description:\"D\\xe9calage vertical en px (utile si tu as une navbar fixe).\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ZKOLogo\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ZKOLOGO.map","// Generated by Framer (b16259d)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-pF1Jw .framer-styles-preset-5bp1eq:not(.rich-text-wrapper), .framer-pF1Jw .framer-styles-preset-5bp1eq.rich-text-wrapper a { --framer-link-hover-text-color: #ffffff; --framer-link-text-background-corner-shape: superellipse(1); --framer-link-text-color: #1d1d1b; }\"];export const className=\"framer-pF1Jw\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"8PAGG,SAAwB,EAAQ,CAAC,QAAM,aAAW,OAAK,eAAa,cAAY,WAAS,eAAa,YAAU,CAAC,GAAK,CAAC,EAAQ,GAAYA,EAAS,KAAK,CAAO,EAAWC,EAAO,KAAK,CAAO,GAAe,EAAM,MAAM,CAAI,EAAW,SAAQ,aAAa,EAAW,QAAQ,CAAC,EAAW,QAAQ,eAAe,EAAW,KAAK,CAAC,EAAM,EAAS,GAAiB,EAAE,IAAI,CAAC,IAAI,EAAG,SAAS,iBAAiB,EAAE,EAAE,CAAC,KAAM,GAAG,CAAC,IAAM,EAAE,EAAG,aAAa,cAAc,CAAC,GAAG,IAAI,KAAK,OAAO,SAAS,EAAE,CAAC,EAAG,EAAG,cAAe,OAAO,MAAa,EAAiB,GAAG,CAAI,EAAW,SAAQ,aAAa,EAAW,QAAQ,CAAC,IAAM,EAAE,EAAE,QAAQ,GAAS,EAAI,EAAgB,EAAE,QAAQ,EAAE,QAAQ,CAAI,IAAM,MAAK,EAAW,EAAI,EAAS,EAAgB,GAAG,CAAI,EAAW,SAAQ,aAAa,EAAW,QAAQ,CAAC,IAAM,EAAE,EAAE,QAAQ,GAAkD,EAArC,EAAgB,EAAE,QAAQ,EAAE,QAAQ,CAAgB,EAAS,MAAmB,EAAc,IAAI,CAAO,EAAQ,GAAO,IAAU,KAAY,EAAuC,EAAE,EAA5B,KAAK,IAAI,EAAE,EAAQ,GAAsB,GAAW,EAAK,GAAG,IAAU,EAAE,EAAW,EAA0d,OAAoB,EAAM,MAAM,CAAC,QAAQ,o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