{"version":3,"file":"ManzaLogoMotion.CLjDS9VB.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/X0afz1RIgzH8iNHIxQET/cVyNHdyhWQ3hwTP1YLfZ/ManzaLogoMotion.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";/**\n * Manza Logo Motion — transition zazu -> manza pour le header.\n * Config validee le 18/09 : 0,5x (3 s), symbole a la fin, flou, course 100 %.\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 33\n */const TOTAL=1500;const TRAVEL_MAX=904;const EASE=\"cubic-bezier(0.65,0,0.35,1)\";const SESSION_KEY=\"manza-logo-motion-played\";export default function ManzaLogoMotion(props){const{color,height,speed,playOncePerSession,staticBelow,replayOnCanvas,style}=props;const svgRef=useRef(null);useEffect(()=>{const svg=svgRef.current;if(!svg)return;// Evite le flash \"Manzazu\" a la premiere peinture : le SVG reste\n// invisible tant que l'etat initial de l'animation n'est pas applique.\nsvg.style.opacity=\"1\";const q=s=>svg.querySelector(s);const opts=(delay,duration,easing)=>({delay,duration,fill:\"both\",easing:easing||\"ease-out\"});const anims=[q(\".g-zu\").animate([{opacity:1,filter:\"blur(0px)\"},{opacity:0,filter:\"blur(2px)\"}],opts(400,350,\"ease-in\")),q(\".g-move\").animate([{transform:`translateX(${-TRAVEL_MAX}px)`},{transform:\"translateX(0px)\"}],opts(600,600,EASE)),q(\".g-man\").animate([{opacity:0,filter:\"blur(3px)\",transform:\"translateX(-90px)\"},{opacity:1,filter:\"blur(0px)\",transform:\"translateX(0px)\"}],opts(900,450,EASE)),q(\".g-mark\").animate([{opacity:0,filter:\"blur(2px)\",transform:\"scale(0.94)\"},{opacity:1,filter:\"blur(0px)\",transform:\"scale(1)\"}],opts(1200,300,EASE))];const freeze=()=>{anims.forEach(a=>{a.currentTime=TOTAL;a.pause();});};const onCanvas=RenderTarget.current()===RenderTarget.canvas;const reduced=window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;const tooNarrow=window.innerWidth<staticBelow;let alreadyPlayed=false;if(playOncePerSession&&!onCanvas){try{alreadyPlayed=sessionStorage.getItem(SESSION_KEY)===\"1\";}catch(e){}}if(reduced||tooNarrow||alreadyPlayed||onCanvas&&!replayOnCanvas){freeze();return()=>anims.forEach(a=>a.cancel());}anims.forEach(a=>{a.playbackRate=speed;a.play();});if(playOncePerSession&&!onCanvas){try{sessionStorage.setItem(SESSION_KEY,\"1\");}catch(e){}}return()=>anims.forEach(a=>a.cancel());},[speed,playOncePerSession,staticBelow,replayOnCanvas]);return /*#__PURE__*/_jsxs(\"svg\",{ref:svgRef,viewBox:\"0 0 1960 320\",role:\"img\",\"aria-label\":\"Manza\",style:{height,width:1960/320*height,color,overflow:\"visible\",display:\"block\",opacity:0,...style},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .manza-logo path { fill: currentColor; fill-rule: evenodd; }\n                .manza-logo g { transform-box: view-box; will-change: transform, opacity, filter; }\n                .manza-logo .g-mark { transform-origin: 240px 160px; }\n            `}),/*#__PURE__*/_jsxs(\"g\",{className:\"manza-logo\",children:[/*#__PURE__*/_jsx(\"g\",{className:\"g-mark\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M1,237 1,293 185,293 187,291 193,291 194,289 201,287 213,277 223,259 228,229 233,214 237,209 244,209 247,213 249,223 251,225 256,261 262,273 274,285 286,291 292,291 294,293 480,293 480,236 313,235 313,232 430,116 389,76 385,78 375,88 353,106 350,107 347,111 338,117 335,121 321,131 277,168 275,168 273,166 272,157 270,38 268,26 211,27 206,166 204,168 199,166 92,76 90,76 51,115 51,117 168,233 166,236Z\"})}),/*#__PURE__*/_jsxs(\"g\",{className:\"g-man\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M568,74 568,293 627,293 627,168 629,164 633,167 639,178 641,179 641,181 643,182 643,184 645,185 653,199 655,200 716,293 752,293 756,289 758,284 760,283 760,281 762,280 762,278 764,277 764,275 768,271 776,257 778,256 780,251 801,221 803,216 807,212 807,210 811,206 811,204 813,203 817,195 821,191 821,189 825,185 833,171 839,165 841,168 841,293 901,293 901,74 839,74 817,108 815,109 815,111 813,112 813,114 809,118 809,120 807,121 796,139 790,146 784,157 780,161 780,163 776,167 776,169 772,173 772,175 770,176 737,225 727,214 725,209 713,194 629,73Z\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M963,98 955,109 952,116 950,117 944,136 1006,136 1010,126 1022,117 1025,117 1027,115 1032,115 1034,113 1068,113 1070,115 1076,115 1077,117 1080,117 1089,124 1095,133 1098,150 1095,154 1069,154 1064,156 1050,156 1046,158 1035,158 1032,160 1014,162 1013,164 1000,166 998,168 994,168 992,170 974,176 952,191 940,205 938,212 936,213 936,218 934,220 934,248 936,250 936,254 942,266 951,277 964,287 985,295 1005,298 1032,298 1055,295 1057,293 1062,293 1064,291 1073,289 1074,287 1077,287 1078,285 1089,279 1102,267 1118,285 1126,287 1127,289 1133,289 1135,291 1146,291 1150,293 1176,293 1176,243 1164,242 1159,238 1157,231 1157,136 1155,132 1155,126 1153,124 1151,115 1143,102 1129,88 1127,88 1126,86 1116,80 1113,80 1107,76 1103,76 1101,74 1097,74 1094,72 1066,68 1037,68 1011,72 994,78 992,80 989,80 969,92ZM1097,191 1097,212 1092,226 1084,236 1065,248 1057,250 1055,252 1049,252 1046,254 1020,254 1018,252 1013,252 1005,248 996,237 996,225 999,218 1009,207 1012,207 1013,205 1021,201 1031,199 1034,197 1040,197 1043,195 1051,195 1054,193 1086,191 1091,189Z\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M1410,86 1405,82 1388,74 1364,68 1325,69 1321,71 1312,72 1299,78 1286,88 1276,101 1272,103 1270,73 1213,74 1213,293 1274,293 1274,175 1276,171 1276,163 1278,161 1278,156 1280,154 1280,150 1282,148 1284,141 1298,125 1309,119 1313,119 1315,117 1323,117 1326,115 1349,117 1361,123 1374,138 1374,142 1378,150 1381,173 1381,293 1442,293 1442,167 1440,162 1440,147 1438,145 1438,136 1436,134 1436,128 1434,126 1432,117 1430,116 1430,113 1428,112 1428,109 1423,101Z\"})]}),/*#__PURE__*/_jsxs(\"g\",{className:\"g-move\",children:[/*#__PURE__*/_jsxs(\"g\",{className:\"g-za\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M1478,74 1479,123 1590,123 1599,124 1601,127 1521,199 1473,240 1472,293 1690,293 1690,243 1605,243 1551,241 1560,231 1573,221 1578,215 1683,123 1684,74Z\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M1743,100 1735,112 1733,118 1731,119 1731,122 1729,123 1727,129 1727,136 1788,136 1794,124 1809,115 1814,115 1816,113 1850,113 1862,117 1866,121 1868,121 1876,130 1880,144 1880,151 1876,154 1851,154 1846,156 1833,156 1829,158 1817,158 1815,160 1806,160 1804,162 1788,164 1787,166 1776,168 1774,170 1756,176 1755,178 1749,180 1737,188 1725,201 1720,210 1716,222 1716,246 1718,248 1718,253 1725,267 1733,277 1743,285 1749,287 1750,289 1753,289 1760,293 1765,293 1767,295 1788,298 1814,298 1836,295 1839,293 1850,291 1851,289 1854,289 1874,277 1873,276 1876,275 1884,267 1893,279 1904,287 1908,287 1909,289 1915,289 1917,291 1929,291 1932,293 1958,293 1958,244 1953,242 1947,242 1940,235 1938,131 1936,128 1934,117 1925,102 1911,88 1898,80 1876,72 1858,69 1819,68 1794,72 1791,74 1787,74 1785,76 1781,76 1774,80 1770,80 1769,82 1766,82 1753,92 1751,92ZM1880,193 1880,207 1878,218 1870,232 1861,240 1843,250 1831,252 1829,254 1802,254 1787,248 1778,237 1778,225 1780,223 1782,216 1789,209 1803,201 1813,199 1816,197 1822,197 1825,195 1847,193 1851,191 1869,191 1877,189Z\"})]}),/*#__PURE__*/_jsxs(\"g\",{className:\"g-zu\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M1478,74 1479,123 1590,123 1599,124 1601,127 1521,199 1473,240 1472,293 1690,293 1690,243 1605,243 1551,241 1560,231 1573,221 1578,215 1683,123 1684,74Z\",transform:\"translate(516,0)\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M1410,86 1405,82 1388,74 1364,68 1325,69 1321,71 1312,72 1299,78 1286,88 1276,101 1272,103 1270,73 1213,74 1213,293 1274,293 1274,175 1276,171 1276,163 1278,161 1278,156 1280,154 1280,150 1282,148 1284,141 1298,125 1309,119 1313,119 1315,117 1323,117 1326,115 1349,117 1361,123 1374,138 1374,142 1378,150 1381,173 1381,293 1442,293 1442,167 1440,162 1440,147 1438,145 1438,136 1436,134 1436,128 1434,126 1432,117 1430,116 1430,113 1428,112 1428,109 1423,101Z\",transform:\"translate(1023,0) rotate(180 1327.5 180.5)\"})]})]})]})]});}ManzaLogoMotion.defaultProps={color:\"#FFFFFF\",height:33,speed:.5,playOncePerSession:true,staticBelow:768,replayOnCanvas:false};addPropertyControls(ManzaLogoMotion,{color:{type:ControlType.Color,title:\"Couleur\"},height:{type:ControlType.Number,title:\"Hauteur\",min:12,max:200,step:1,displayStepper:true},speed:{type:ControlType.Enum,title:\"Vitesse\",options:[.25,.5,1,2],optionTitles:[\"0,25x\",\"0,5x\",\"1x\",\"2x\"]},playOncePerSession:{type:ControlType.Boolean,title:\"1x / session\",enabledTitle:\"Oui\",disabledTitle:\"Non\"},staticBelow:{type:ControlType.Number,title:\"Fige sous\",min:0,max:1200,step:1,unit:\"px\"},replayOnCanvas:{type:ControlType.Boolean,title:\"Jouer sur canvas\",enabledTitle:\"Oui\",disabledTitle:\"Non\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ManzaLogoMotion\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ManzaLogoMotion.map"],"mappings":"8MAQ+H,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,QAAM,SAA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