{"version":3,"file":"shared-lib.B_nsUIor.mjs","names":["useState","useRef","fonts","css","className"],"sources":["https:/framerusercontent.com/modules/p1iK05FoClzJtuqzoHEq/7GgGKkHNWBeZxmdiMxxO/ZKOLOGO.js","https:/framerusercontent.com/modules/khNy8EqRD8zQFih1Vx7c/lNjCVhxS39AJjXzCrWMF/L0PAOPhLO.js","https:/framerusercontent.com/modules/ODtMaV47UGYAvaZMHC9J/GPeKzSlF7Aim6qAT4iy8/uzR1CNg7O.js","https:/framerusercontent.com/modules/bfMDhppUb3EHPcuaaGi0/qjRswIgmbQ9UtbfPG1yG/siteMetadata.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\"}}}","// Generated by Framer (3db8496)\nimport{fontStore}from\"framer\";fontStore.loadFonts([]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=[\".framer-ekYFr .framer-styles-preset-kk5rou:not(.rich-text-wrapper), .framer-ekYFr .framer-styles-preset-kk5rou.rich-text-wrapper a { --framer-link-text-color: rgba(255, 255, 255, 0.5); }\"];export const className=\"framer-ekYFr\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (f2f96df)\nexport default function metadata(params,activeLocale){return{description:\"R\\xe9paration informatique \\xe0 Bourbonne-les-Bains : d\\xe9pannage ordinateur, t\\xe9l\\xe9phone et tablette. Cr\\xe9ation de sites web et graphisme. Intervention rapide \\xe0 domicile.Made with Framer\",favicon:\"https://framerusercontent.com/assets/Q0RDKGkBXqkrKzl02RJilH1JUw.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/uIAdofi9pu3pmBZfbCbsv2yzBms.png\",title:\"ZKO Informatique – D\\xe9pannage PC - cr\\xe9ation de site web & graphisme \\xe0 Bourbonne-les-Bains\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"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,IAAI,EAAQ,EAAWC,EAAO,IAAI,EAAQ,GAAe,EAAM,MAAM,CAAI,EAAW,SAAQ,aAAa,EAAW,OAAO,EAAE,EAAW,QAAQ,eAAe,EAAW,IAAI,EAAE,CAAK,CAAE,EAAQ,GAAiB,EAAE,IAAI,CAAC,IAAI,EAAG,SAAS,iBAAiB,EAAE,CAAC,EAAE,KAAM,GAAG,CAAC,IAAM,EAAE,EAAG,aAAa,aAAa,EAAE,GAAG,IAAI,KAAK,OAAO,SAAS,CAAC,EAAE,EAAG,EAAG,aAAc,CAAC,OAAO,IAAK,EAAQ,EAAiB,GAAG,CAAI,EAAW,SAAQ,aAAa,EAAW,OAAO,EAAE,IAAM,EAAE,EAAE,QAAQ,GAAS,EAAI,EAAgB,EAAE,QAAQ,EAAE,OAAO,EAAK,IAAM,MAAK,EAAW,CAAG,CAAE,EAAQ,EAAgB,GAAG,CAAI,EAAW,SAAQ,aAAa,EAAW,OAAO,EAAE,IAAM,EAAE,EAAE,QAAQ,GAAS,EAAI,EAAgB,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAW,CAAG,CAAE,EAAQ,MAAmB,EAAc,GAAG,EAAQ,EAAQ,GAAG,CAAC,GAAG,IAAU,KAAK,MAAO,GAAE,IAAM,EAAK,KAAK,IAAI,EAAE,CAAO,EAAE,MAAM,EAAE,EAAM,IAAO,EAAG,EAAQ,EAAK,GAAG,IA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