import{u as c,j as e,bh as m,be as d,bg as o,k as x,bi as p,C as j,bj as h}from"./vendor-BKmmeuxg.js";import{D as f,a as u,b as g}from"./dialog-B2gN9MvT.js";import{V as N}from"./video-player-CikPo1Be.js";import{c as b}from"./course-languages-DcPHNS0l.js";import{s as y,e as v}from"./utils-DxSsnXxD.js";import w from"./course-player-button-CPmky3Qf.js";import"./button-BpNwv2aE.js";import"./index-WW_1X1qx.js";const V=()=>{const{course:s,system:t,translate:n}=c().props,{frontend:l}=n,a=y(t.fields.selling_currency),i=b.find(r=>r.value===s.language);return e.jsxs("div",{className:"bg-card sticky top-24 space-y-5 rounded-lg border p-5 shadow",children:[e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"relative",children:[e.jsx("img",{className:"w-full rounded-lg",src:s.thumbnail??"/assets/images/blank-image.jpg",alt:""}),s.preview&&e.jsxs(f,{children:[e.jsx(u,{asChild:!0,children:e.jsx("button",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 cursor-pointer rounded-full bg-black/70 p-4 transition-transform hover:scale-110",children:e.jsx(m,{className:"h-6 w-6 text-white"})})}),e.jsx(g,{className:"overflow-hidden p-0 md:min-w-3xl",children:e.jsx(N,{source:{type:"video",sources:[{src:s.preview,type:"video/mp4"}]}})})]})]}),e.jsx("h2",{className:"text-4xl font-bold capitalize",children:s.pricing_type==="free"?s.pricing_type:s.discount?e.jsxs(e.Fragment,{children:[e.jsxs("span",{className:"font-semibold",children:[a==null?void 0:a.symbol,s.discount_price]}),e.jsxs("span",{className:"text-muted-foreground ml-2 text-base font-medium line-through",children:[a==null?void 0:a.symbol,s.price]})]}):e.jsx(e.Fragment,{children:e.jsxs("span",{className:"font-semibold",children:[a==null?void 0:a.symbol,s.price]})})}),e.jsx(w,{})]}),e.jsxs("div",{className:"space-y-4 pt-5",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(d,{className:"h-5 w-5"}),l.students]}),e.jsx("span",{children:s.enrollments_count||0})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(o,{className:"h-5 w-5"}),l.language]}),e.jsx("span",{children:i==null?void 0:i.label})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(x,{className:"h-5 w-5"}),l.duration]}),e.jsx("span",{children:v(s)})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(p,{className:"h-5 w-5"}),l.level]}),e.jsx("span",{className:"capitalize",children:s.level})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(j,{className:"h-5 w-5"}),l.expiry_period]}),e.jsx("span",{className:"capitalize",children:s.expiry_type==="lifetime"?"lifetime":s==null?void 0:s.expiry_duration})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("span",{className:"flex items-center gap-2",children:[e.jsx(h,{className:"h-5 w-5"}),l.certificate_included]}),e.jsx("span",{children:"Yes"})]})]})]})};export{V as default};