{"version":3,"file":"StrikeOverrides.DNe4kLLR.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/zMKyEAN9sd5gNUERRNK9/Sd9UPZno2N0vLnlqAjD6/StrikeOverrides.js"],"sourcesContent":["// StrikeOverrides (Valentina, D50 + Andrés §13.9 conditions). Motion for the From strikethrough on /v2.\n// withStrikeDraw: the native line layer draws left -> right (scaleX 0 -> 1, 400 ms ease-signature) once, when the\n//   line is at least 20 % above the bottom edge of the viewport. aria-hidden (the struck text stays readable).\n// withToAfterStrike: the \"To\" line rises after the strike (same trigger, +240 ms delay). Replaces its native Text Effect.\n// Reduced motion and static render: final state (line complete, To visible), no movement.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useRef}from\"react\";import{useInView,useReducedMotion}from\"framer-motion\";import{useIsStaticRenderer}from\"framer\";const EASE_SIGNATURE=[.16,1,.3,1];const MARGIN=\"0px 0px -20% 0px\";function useMergedRef(ref,local){return node=>{local.current=node;if(typeof ref===\"function\")ref(node);else if(ref)ref.current=node;};}export function withStrikeDraw(Component){return /*#__PURE__*/forwardRef(function StrikeDraw(props,ref){const local=useRef(null);const inView=useInView(local,{once:true,margin:MARGIN});const reduce=useReducedMotion();const isStatic=useIsStaticRenderer();const done=reduce||isStatic||inView;return /*#__PURE__*/_jsx(Component,{...props,ref:useMergedRef(ref,local),\"aria-hidden\":\"true\",// Thickness: Framer rounds 1.5px layer heights to 2px, so it is set here: 1.5px at >= 1200px (From 17-18px), 1px below (From 16px).\nstyle:{...props.style,transformOrigin:\"0% 50%\",height:\"max(1px, min(1.5px, calc((100vw - 1199px) * 100)))\"},initial:false,animate:{scaleX:done?1:0},transition:reduce||isStatic?{duration:0}:{duration:.4,ease:EASE_SIGNATURE}});});}export function withToAfterStrike(Component){return /*#__PURE__*/forwardRef(function ToAfterStrike(props,ref){const local=useRef(null);const inView=useInView(local,{once:true,margin:MARGIN});const reduce=useReducedMotion();const isStatic=useIsStaticRenderer();const done=reduce||isStatic||inView;return /*#__PURE__*/_jsx(Component,{...props,ref:useMergedRef(ref,local),initial:false,animate:done?{opacity:1,y:0}:{opacity:0,y:24},transition:reduce||isStatic?{duration:0}:{duration:.6,ease:EASE_SIGNATURE,delay:.24}});});}// withToOnEnter (/v2-work index rows): the \"To\" enters as soon as its row enters the viewport (amount 0),\n// opacity 0 -> 1 + y 12 -> 0, 300 ms, so the To column is never empty while the strike waits for the 20 % margin.\nexport function withToOnEnter(Component){return /*#__PURE__*/forwardRef(function ToOnEnter(props,ref){const local=useRef(null);const inView=useInView(local,{once:true,amount:0});const reduce=useReducedMotion();const isStatic=useIsStaticRenderer();const done=reduce||isStatic||inView;return /*#__PURE__*/_jsx(Component,{...props,ref:useMergedRef(ref,local),initial:false,animate:done?{opacity:1,y:0}:{opacity:0,y:12},transition:reduce||isStatic?{duration:0}:{duration:.3,ease:EASE_SIGNATURE}});});}// withSeamReveal (hero phone v5, Andrés 2026-09-15): the stitched photo is revealed from both edges toward the seam\n// instead of cross-fading (a fade always shows both ribbon sets at 50 %). The component variant still drives the\n// layer's inline opacity (instant 0/1); this override reads it, keeps the layer opaque with a stylesheet !important,\n// and animates a two-sided clip-path polygon: the stitched paper grows from both edges and meets on the seam (x 50 %)\n// in 350 ms ease-out (down), and retreats to the edges in 250 ms ease-in (up). Same vertex count, so it interpolates.\n// Reduced motion: no clip, no transition (the variant cut and the RM CSS in A11yLayer apply).\nconst SEAM_CSS=\".seam-reveal{opacity:1!important;clip-path:polygon(0% 0%, 0% 0%, 0% 100%, 100% 100%, 100% 0%, 100% 0%, 100% 100%, 0% 100%);transition:clip-path 250ms cubic-bezier(0.4,0,1,1)}\"+\".seam-reveal[data-seam=closed]{clip-path:polygon(0% 0%, 50% 0%, 50% 100%, 50% 100%, 50% 0%, 100% 0%, 100% 100%, 0% 100%);transition:clip-path 350ms cubic-bezier(0.23,1,0.32,1)}\"+\"@media (prefers-reduced-motion: reduce){.seam-reveal{clip-path:none!important;transition:none!important}}\";export function withSeamReveal(Component){return /*#__PURE__*/forwardRef(function SeamReveal(props,ref){const local=useRef(null);useEffect(function(){const el=local.current;if(!el||typeof window===\"undefined\")return;if(window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches)return;if(!document.getElementById(\"seam-reveal-css\")){const s=document.createElement(\"style\");s.id=\"seam-reveal-css\";s.textContent=SEAM_CSS;document.head.appendChild(s);}const read=function(){const o=parseFloat(el.style.opacity===\"\"?\"1\":el.style.opacity);el.dataset.seam=o>.5?\"closed\":\"open\";};read();el.classList.add(\"seam-reveal\");const mo=new MutationObserver(read);mo.observe(el,{attributes:true,attributeFilter:[\"style\"]});return function(){mo.disconnect();el.classList.remove(\"seam-reveal\");};},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:useMergedRef(ref,local)});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withToAfterStrike\":{\"type\":\"reactHoc\",\"name\":\"withToAfterStrike\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withStrikeDraw\":{\"type\":\"reactHoc\",\"name\":\"withStrikeDraw\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withToOnEnter\":{\"type\":\"reactHoc\",\"name\":\"withToOnEnter\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSeamReveal\":{\"type\":\"reactHoc\",\"name\":\"withSeamReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StrikeOverrides.map"],"mappings":"qOAK0P,SAAS,EAAa,EAAI,EAAM,CAAC,MAAO,IAAM,CAAC,EAAM,QAAQ,EAAQ,OAAO,GAAM,WAAW,EAAI,CAAI,EAAU,IAAI,EAAI,QAAQ,EAAK,CAAE,CAAC,SAAgB,EAAe,EAAU,CAAC,OAAoB,EAAW,SAAoB,EAAM,EAAI,CAAC,IAAM,EAAMA,EAAO,IAAI,EAAQ,EAAO,EAAU,EAAM,CAAC,KAAK,GAAK,OAAO,CAAM,CAAC,EAAQ,EAAO,EAAi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