PageSourceSearch

https://habitualmente.com/assets/CourseCard-CLtyKx1X.js

js habitualmente.com collected 2026-09-24 18:11:20 UTC 3,026 bytes, 1 lines download raw bytes

1import{i as e}from"./chunk-QUQL4437-DMlafUq3.js";import{t}from"./jsx-runtime-4jVAV9N6.js";import{t as n}from"./dist-BDQEzaCj.js";import{Vt as r,cn as i,et as a}from"./pro-light-svg-icons-DTVDjPhw.js";import{t as o}from"./utils-DusR69S1.js";import{t as s}from"./CoursePromo-BTOU6mb0.js";var c=({courseSlug:e,page:t})=>{if(e)return`/app/cursos/${e}`;if(!t)return``;let n=(typeof t==`string`?t:t.id).replace(/^.*content\/page\//,``).replace(/\.json$/,``);return n?`/${n}`:``},l=t(),u=({title:t,summary:u,logo:d,background:f,backgroundColor:p,modules:m=[],page:h,courseSlug:g,promoTriggerVideoId:_,expanded:v=!1,bonusLabel:y,valueLabel:b,lockedTo:x,className:S})=>{let C=v?`block w-full text-inherit no-underline`:`w-full flex-shrink-0 max-w-[10rem] md:max-w-[18rem] text-inherit no-underline`,w=(0,l.jsxs)(`div`,{"data-course-variant":y?`bono`:void 0,className:o(S),children:[(0,l.jsxs)(`div`,{className:`w-full relative pb-[177%] bg-[${p?.toLowerCase()}] rounded-3xl overflow-hidden`,children:[y?(0,l.jsx)(`span`,{"data-bonus-label":!0,className:`absolute top-3 left-3 z-10 rounded-full bg-white/90 px-2.5 py-1 text-[0.62rem] font-extrabold tracking-[0.12em] text-[#121a28] uppercase`,children:y}):null,x?(0,l.jsxs)(`span`,{"data-course-locked":!0,className:`absolute top-3 right-3 z-10 flex items-center gap-1.5 rounded-full bg-white/90 px-2.5 py-1 text-[0.62rem] font-extrabold tracking-[0.12em] text-[#121a28] uppercase`,children:[(0,l.jsx)(n,{icon:i}),`Hazte miembro`]}):null,f&&(0,l.jsx)(`div`,{className:`absolute inset-0 mix-blend-overlay overflow-hidden bg-cover bg-center grayscale opacity-50`,style:{backgroundImage:`url("${f}")`}}),(0,l.jsxs)(`div`,{className:o(`absolute inset-0 bg-gradient-to-b from-transparent to-[${p?.toLowerCase()}] flex flex-col items-center text-lg text-center text-white px-4 py-8`,v?`justify-end`:`justify-center md:justify-end`),children:[d&&(0,l.jsx)(`img`,{alt:t,src:d,className:o(`max-w-full`,v?`max-w-[80%]`:`md:max-w-[80%]`),loading:`lazy`,decoding:`async`}),(0,l.jsx)(`p`,{className:o(`mt-4 mb-8`,!v&&`hidden md:block`),children:u}),(0,l.jsxs)(`div`,{className:o(`flex-col space-y-2 items-center`,v?`flex`:`hidden md:flex`),children:[(0,l.jsxs)(`p`,{className:`flex items-center font-bold text-sm`,children:[(0,l.jsx)(n,{className:`text-lg mr-2`,icon:r}),` `,m?.length,` Módulos`]}),(0,l.jsxs)(`p`,{className:`flex items-center font-bold text-sm`,children:[(0,l.jsx)(n,{className:`text-lg mr-2`,icon:a}),` `,m?.reduce((e,t)=>e+(t?.lessons?.length||0),0),` `,`Videos HD`]})]})]})]}),b?(0,l.jsxs)(`div`,{"data-course-value":!0,className:`mt-2 flex items-baseline justify-between px-1 text-sm`,children:[(0,l.jsx)(`span`,{children:`Valor por separado`}),(0,l.jsx)(`b`,{className:`font-display tabular-nums`,children:b})]}):null]});return x?(0,l.jsx)(e,{to:x,className:C,children:w}):_?(0,l.jsx)(s,{className:C,flowContent:!0,title:t,videoId:_,children:w}):g||h?(0,l.jsx)(e,{to:c({courseSlug:g,page:h}),className:C,children:w}):(0,l.jsx)(`div`,{className:C,children:w})};export{u as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.