{"version":3,"file":"FiltroEnlace.CoxlAzTy.mjs","names":["React.forwardRef","useState"],"sources":["https:/framerusercontent.com/modules/NDH8IBIpqJQp2Vggx8eD/l6brIxNNfpK1ToGDr5mP/AwMEOGfYK.js","https:/framerusercontent.com/modules/GKqIUa2zxOrvaEnyvLbR/aGZcSYIvHiXgpXTsmrCx/FiltroEnlace.js"],"sourcesContent":["// Generated by Framer (85eaff3)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,useSVGTemplate,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const Base=/*#__PURE__*/forwardRef(function(props,ref){return /*#__PURE__*/_jsx(\"svg\",{...props,ref:ref,children:props.children});});const MotionSVG=motion.create(Base);const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(MotionSVG,{...rest,layoutId:layoutId,ref:ref,children:children}):/*#__PURE__*/_jsx(\"svg\",{...rest,ref:ref,children:children});});const svg='<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 4.34 4.34 L 0 0\" fill=\"transparent\" height=\"4.34px\" id=\"z8RZjJ9Kn\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(16.66 16.66)\" width=\"4.34px\"/><path d=\"M 0 8 C 0 3.582 3.582 0 8 0 C 12.418 0 16 3.582 16 8 C 16 12.418 12.418 16 8 16 C 3.582 16 0 12.418 0 8 Z\" fill=\"transparent\" height=\"16px\" id=\"FZH9LEsdu\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(3 3)\" width=\"16px\"/></svg>';const getProps=({color,height,id,width,width1,...props})=>{return{...props,JEeZYcamG:width1??props.JEeZYcamG??2,P_DcoRcrY:color??props.P_DcoRcrY??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,P_DcoRcrY,JEeZYcamG,...restProps}=getProps(props);const href=useSVGTemplate(\"1952988144\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-4is15\",className),layoutId:layoutId,ref:ref,role:\"presentation\",style:{\"--1m973uw\":P_DcoRcrY,\"--js9iwy\":JEeZYcamG,...style},viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"use\",{href:href})});});const css=[`.framer-4is15 { -webkit-mask: ${mask}; aspect-ratio: 1; display: block; mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"P_DcoRcrY\":\"color\",\"JEeZYcamG\":\"width1\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Search\",\"color\":{\"type\":\"variable\",\"value\":\"1m973uw\"},\"set\":{\"localId\":\"vectorSet/ZsiCCGPvG\",\"id\":\"ZsiCCGPvG\",\"moduleId\":\"Y7SpbVH16cWqMhj75z1M\"}}\n */const Icon=withCSS(Component,css,\"framer-4is15\");Icon.displayName=\"Search\";export default Icon;addPropertyControls(Icon,{P_DcoRcrY:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Color\",type:ControlType.Color},JEeZYcamG:{defaultValue:2,displayStepper:true,hidden:false,max:16,min:1,title:\"Width\",type:ControlType.Number}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerVector\":\"{\\\"name\\\":\\\"Search\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"1m973uw\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/ZsiCCGPvG\\\",\\\"id\\\":\\\"ZsiCCGPvG\\\",\\\"moduleId\\\":\\\"Y7SpbVH16cWqMhj75z1M\\\"}}\",\"framerIntrinsicWidth\":\"24\",\"framerIntrinsicHeight\":\"24\",\"framerVariables\":\"{\\\"P_DcoRcrY\\\":\\\"color\\\",\\\"JEeZYcamG\\\":\\\"width1\\\"}\",\"framerImmutableVariables\":\"true\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";/**\n * Enlace de filtro\n *\n * Capa transparente que cubre el chip y navega a una URL con filtro (?c=...).\n * Si la URL es la misma página, cambia el query sin recargar (pushState + popstate).\n *\n * @framerIntrinsicWidth 120\n * @framerIntrinsicHeight 40\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function EnlaceDeFiltro(props){const{url=\"/cartelera\",etiqueta=\"Ver categor\\xeda\",bordeAlPasar=\"#070707\",grosor=1.5,radio=999}=props;const[hover,setHover]=useState(false);function onClick(e){if(typeof window===\"undefined\")return;if(e.metaKey||e.ctrlKey||e.shiftKey||e.button!==0)return;try{const destino=new URL(url,window.location.href);const actual=window.location;const misma=destino.origin===actual.origin&&destino.pathname.replace(/\\/$/,\"\")===actual.pathname.replace(/\\/$/,\"\");if(!misma)return;e.preventDefault();const irHash=()=>{if(!destino.hash)return;const w=window;if(typeof w.__scIrA===\"function\")w.__scIrA(destino.hash);else document.getElementById(decodeURIComponent(destino.hash.slice(1)))?.scrollIntoView({behavior:\"smooth\"});};if(destino.search===actual.search){irHash();return;}window.history.pushState(window.history.state,\"\",destino.pathname+destino.search+destino.hash);window.dispatchEvent(new PopStateEvent(\"popstate\",{state:window.history.state}));setTimeout(irHash,60);}catch(err){}}return /*#__PURE__*/_jsx(\"a\",{href:url,\"aria-label\":etiqueta,onClick:onClick,onMouseEnter:()=>setHover(true),onMouseLeave:()=>setHover(false),style:{...props.style,position:\"relative\",display:\"block\",width:\"100%\",height:\"100%\",borderRadius:radio,cursor:\"pointer\",background:\"transparent\",boxShadow:hover?`inset 0 0 0 ${grosor}px ${bordeAlPasar}`:\"none\",transition:\"box-shadow .24s cubic-bezier(.2,.7,.2,1)\",WebkitTapHighlightColor:\"transparent\"}});}addPropertyControls(EnlaceDeFiltro,{url:{type:ControlType.String,title:\"URL\",defaultValue:\"/cartelera\"},etiqueta:{type:ControlType.String,title:\"Etiqueta\",defaultValue:\"Ver categor\\xeda\"},bordeAlPasar:{type:ControlType.Color,title:\"Borde al pasar\",defaultValue:\"#070707\"},grosor:{type:ControlType.Number,title:\"Grosor\",defaultValue:1.5,min:0,max:4,step:.5},radio:{type:ControlType.Number,title:\"Radio\",defaultValue:999,min:0,max:999}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"EnlaceDeFiltro\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"40\",\"framerIntrinsicWidth\":\"120\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FiltroEnlace.map"],"mappings":"yRAC0C,IAAqF,IAA4B,EAAqC,EAAK,0BAAgC,EAAkB,EAAW,SAAS,EAAM,EAAI,CAAC,OAAoB,EAAK,MAAM,CAAC,GAAG,EAAU,MAAI,SAAS,EAAM,QAAQ,CAAC,CAAE,CAAC,EAAQ,EAAU,EAAO,OAAO,CAAI,EAAQ,EAAiB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAG,GAAM,EAAM,OAAO,EAAsB,EAAK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