{"version":3,"file":"CurlyArrow.Bkyl9RLE.mjs","names":["useRef","__esmMin","init_ssg_sandbox_shims","window","de","init_jsx_runtime","c","p","init_npm_react_18_3_1","ce","addPropertyControls","RenderTarget","init_framer_BWFVvmND","ControlType","CurlyArrow","props","S","SHAPES","shape","ref","svg","paths","lens","i","anims","io","es","delay","a","rotate","flip","color","init_CurlyArrow"],"sources":["https:/framerusercontent.com/modules/YpRfBn3EpD6OMECUAGdN/jTAnLHAlp4SOR48xTody/CurlyArrow.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 * Hand-drawn curly arrow. Draws itself when scrolled into view, then gives\n * one small wiggle.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */const SHAPES={loop:{vb:\"0 0 210 130\",body:\"M8 30 C 60 8, 130 6, 150 34 C 166 58, 132 76, 122 58 C 112 40, 150 28, 168 52 C 182 70, 178 96, 170 114\",head:\"M156 102 L170 116 L182 101\"},down:{vb:\"0 0 120 170\",body:\"M20 10 C 70 10, 100 40, 80 70 C 66 92, 40 80, 50 62 C 60 44, 96 60, 92 100 C 90 122, 80 140, 70 156\",head:\"M56 146 L70 160 L84 147\"},hook:{vb:\"0 0 200 140\",body:\"M16 8 C 6 62, 44 114, 112 118 C 142 120, 162 113, 182 104\",head:\"M167 92 L184 104 L170 119\"},side:{vb:\"0 0 110 130\",body:\"M8 24 C 50 4, 94 24, 91 70 C 90 90, 85 104, 78 118\",head:\"M63 108 L78 121 L91 105\"},swoop:{vb:\"0 0 200 110\",body:\"M10 20 C 60 0, 120 10, 150 50 C 165 70, 172 82, 176 96\",head:\"M162 88 L177 100 L188 84\"}};export default function CurlyArrow(props){const{shape=\"loop\",color=\"#BE96E7\",strokeWidth=4.5,flip=false,rotate=0,delay=0}=props;const S=SHAPES[shape]||SHAPES.loop;const ref=useRef(null);useEffect(()=>{const svg=ref.current;if(!svg||RenderTarget.current()===RenderTarget.canvas)return;if(window.matchMedia?.(\"(prefers-reduced-motion: reduce)\").matches)return;const paths=Array.from(svg.querySelectorAll(\"path\"));const lens=paths.map(p=>p.getTotalLength());paths.forEach((p,i)=>{p.style.strokeDasharray=String(lens[i]);p.style.strokeDashoffset=String(lens[i]);});const anims=[];const io=new IntersectionObserver(es=>{if(!es.some(e=>e.isIntersecting))return;io.disconnect();anims.push(paths[0].animate([{strokeDashoffset:lens[0]},{strokeDashoffset:0}],{duration:1100,delay,easing:\"cubic-bezier(.4,0,.2,1)\",fill:\"forwards\"}));anims.push(paths[1].animate([{strokeDashoffset:lens[1]},{strokeDashoffset:0}],{duration:300,delay:delay+1050,easing:\"ease-out\",fill:\"forwards\"}));anims.push(svg.animate([{rotate:\"0deg\"},{rotate:\"-4deg\"},{rotate:\"3deg\"},{rotate:\"-1.5deg\"},{rotate:\"0deg\"}],{duration:900,delay:delay+1350,easing:\"ease-in-out\"}));},{threshold:.4});io.observe(svg);return()=>{io.disconnect();anims.forEach(a=>a.cancel());paths.forEach(p=>{p.style.strokeDasharray=\"\";p.style.strokeDashoffset=\"\";});};},[shape,delay]);return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,width:\"100%\",height:\"100%\",transform:`rotate(${rotate}deg) scaleX(${flip?-1:1})`},children:/*#__PURE__*/_jsxs(\"svg\",{ref:ref,viewBox:S.vb,width:\"100%\",height:\"100%\",fill:\"none\",stroke:color,strokeWidth:strokeWidth,strokeLinecap:\"round\",strokeLinejoin:\"round\",style:{overflow:\"visible\",transformOrigin:\"50% 50%\"},children:[/*#__PURE__*/_jsx(\"path\",{d:S.body}),/*#__PURE__*/_jsx(\"path\",{d:S.head})]})});}CurlyArrow.defaultProps={shape:\"loop\",color:\"#BE96E7\",strokeWidth:4.5,flip:false,rotate:0,delay:0,width:210,height:130};addPropertyControls(CurlyArrow,{shape:{type:ControlType.Enum,title:\"Tvar\",options:[\"loop\",\"down\",\"swoop\",\"hook\",\"side\"],optionTitles:[\"Smyčka\",\"Dolů\",\"Oblouk\",\"Ohnut\\xe1 doprava\",\"Vedle textu dolů\"]},color:{type:ControlType.Color,title:\"Barva\"},strokeWidth:{type:ControlType.Number,title:\"Tloušťka\",min:1,max:12,step:.5},flip:{type:ControlType.Boolean,title:\"Zrcadlit\"},rotate:{type:ControlType.Number,title:\"Otočit\",min:-180,max:180,unit:\"\\xb0\"},delay:{type:ControlType.Number,title:\"Zpožděn\\xed\",min:0,max:3e3,step:50,unit:\"ms\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CurlyArrow\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CurlyArrow.map"],"mappings":"A,8MAM+rB,SAAwBc,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,OAAO,QAAM,UAAU,cAAY,IAAI,OAAK,GAAM,SAAO,EAAE,QAAM,GAAGC,EAAYC,EAAEC,EAAOC,IAAQD,EAAO,KAAWE,EAAInB,EAAO,IAAI,EAA6mC,OAA3mCS,MAAc,CAAC,IAAMW,EAAID,EAAI,QAAqE,GAA1D,CAACC,GAAKT,EAAa,QAAQ,IAAIA,EAAa,QAAiBR,EAAO,aAAa,kCAAkC,CAAC,CAAC,QAAQ,OAAO,IAAMkB,EAAM,MAAM,KAAKD,EAAI,iBAAiB,MAAM,CAAC,EAAQE,EAAKD,EAAM,IAAI,GAAGd,EAAE,eAAe,CAAC,EAAEc,EAAM,SAAS,EAAE,IAAI,CAAC,EAAE,MAAM,gBAAgB,OAAOC,EAAKC,EAAE,EAAE,EAAE,MAAM,iBAAiB,OAAOD,EAAKC,EAAE,CAAE,CAAC,EAAE,IAAMC,EAAM,CAAC,EAAQC,EAAG,IAAI,qBAAqB,GAAI,CAAKC,EAAG,KAAK,GAAG,EAAE,cAAc,IAASD,EAAG,WAAW,EAAED,EAAM,K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