{"version":3,"file":"CollapsibleOverride.BbynLcxI.mjs","names":["useState","__esmMin","init_npm_react_18_3_1","_e","init_jsx_runtime","c","p","withCollapsible","expanded","setExpanded","Component","props","init_CollapsibleOverride"],"sources":["https:/framerusercontent.com/modules/xAWX358nF0vbnEmwscZC/q1ctlwWI5YRazbX62sbT/CollapsibleOverride.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";export function withCollapsible(Component){return props=>{const[expanded,setExpanded]=useState(false);return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",position:\"relative\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{overflow:\"hidden\",maxHeight:expanded?9999:310,transition:\"max-height 0.5s ease-in-out\"},children:/*#__PURE__*/_jsx(Component,{...props})}),!expanded&&/*#__PURE__*/_jsx(\"div\",{style:{marginTop:-90,height:90,background:\"linear-gradient(to bottom, transparent, rgb(0,0,0))\",pointerEvents:\"none\",position:\"relative\",zIndex:1}}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",justifyContent:\"center\",paddingTop:expanded?20:0,position:\"relative\",zIndex:2},children:/*#__PURE__*/_jsx(\"button\",{onClick:()=>setExpanded(!expanded),style:{background:\"rgba(255,255,255,0.08)\",color:\"#fff\",border:\"1px solid rgba(255,255,255,0.15)\",borderRadius:40,padding:\"14px 32px\",fontSize:15,fontWeight:500,fontFamily:\"Inter, sans-serif\",cursor:\"pointer\"},children:expanded?\"Ver menos ↑\":\"Ver todas las oposiciones ↓\"})})]});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withCollapsible\":{\"type\":\"reactHoc\",\"name\":\"withCollapsible\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CollapsibleOverride.map"],"mappings":"A,yHAAqF,SAAgBO,EAAgB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAACC,EAASC,GAAaT,EAAS,EAAK,EAAE,MAAoB,gBAAM,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,SAAS,UAAU,EAAE,SAAS,CAAc,gBAAK,MAAM,CAAC,MAAM,CAAC,SAAS,SAAS,UAAUQ,EAAS,KAAK,IAAI,WAAW,6BAA6B,EAAE,SAAsB,gBAAKE,EAAU,CAAC,GAAGC,CAAK,CAAC,CAAC,CAAC,EAAE,CAACH,GAAuB,gBAAK,MAAM,CAAC,MAAM,CAAC,UAAU,IAAI,OAAO,GAAG,WAAW,sDAAsD,cAAc,OAAO,SAAS,WAAW,OAAO,CAAC,CAAC,CAAC,EAAe,gBAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,eAAe,SAAS,WAAWA,EAAS,GAAG,EAAE,SAAS,WAAW,OAAO,CAAC,EAAE,SAAsB,gBAAK,SAAS,CAAC,YAAYC,EAAY,CAACD,CAAQ,EAAE,MAAM,CAAC,WAAW,yBAAyB,MAAM,OAAO,OAAO,mCAAmC,aAAa,GAAG,QAAQ,YAAY,SAAS,GAAG,WAAW,IAAI,WAAW,oBAAoB,OAAO,SAAS,EAAE,SAASA,EAAS,cAAc,6BAA6B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAAE,C"}