PageSourceSearch

https://living-corporate.com/assets/embed-playlist-DtX-axq3.js

js living-corporate.com collected 2026-10-02 05:00:02 UTC 3,459 bytes, 1 lines download raw bytes

1import{D as m,f as o,j as e,G as n,E as d}from"./index-QiiZ-xPT.js";import{u as x}from"./useTranslation-XedzLvcK.js";import{P as h}from"./play-F_iIYdsj.js";function p(){const{t}=x(),{shareCode:i}=m(),{data:l,isLoading:a,error:r}=o({queryKey:["/api/embed",i],queryFn:async()=>{const s=await fetch(`/api/embed/${i}`);if(!s.ok)throw new Error("Playlist not found");return s.json()},enabled:!!i});return a?e.jsx("div",{className:"bg-zinc-900 text-white min-h-screen flex items-center justify-center",children:e.jsx("div",{className:"animate-pulse text-zinc-400",children:t("embedPlaylist.loading")})}):r||!l?e.jsx("div",{className:"bg-zinc-900 text-white min-h-screen flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx(n,{size:48,className:"mx-auto text-zinc-600 mb-4"}),e.jsx("h2",{className:"text-xl font-semibold mb-2",children:t("embedPlaylist.notFound")}),e.jsx("p",{className:"text-zinc-400",children:t("embedPlaylist.notFoundMessage")})]})}):e.jsx("div",{className:"bg-zinc-900 text-white min-h-screen",children:e.jsxs("div",{className:"max-w-4xl mx-auto p-6",children:[e.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-bold mb-1",children:l.name}),l.description&&e.jsx("p",{className:"text-zinc-400 text-sm",children:l.description}),e.jsx("p",{className:"text-xs text-zinc-500 mt-2",children:t("embedPlaylist.modulesCount",{count:l.modules?.length||0})})]}),e.jsxs("a",{href:"/learning-modules",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-sm text-primary hover:underline",children:[e.jsx(d,{size:14}),t("embedPlaylist.openInLivingCorporate")]})]}),e.jsx("div",{className:"space-y-2",children:l.modules?.map((s,c)=>e.jsxs("a",{href:`/learning-modules/${s.moduleSlug}`,target:"_blank",rel:"noopener noreferrer",className:"group flex items-center gap-4 p-3 rounded-lg hover:bg-zinc-800/50 transition-colors",children:[e.jsx("span",{className:"w-6 text-center text-sm text-zinc-500",children:c+1}),e.jsx("div",{className:"w-12 h-12 bg-zinc-800 rounded flex-shrink-0 overflow-hidden",children:s.moduleImage?e.jsx("img",{src:s.moduleImage,alt:s.moduleTitle,className:"w-full h-full object-cover"}):e.jsx("div",{className:"w-full h-full flex items-center justify-center",children:e.jsx(n,{size:20,className:"text-zinc-600"})})}),e.jsxs("div",{className:"flex-1 overflow-hidden",children:[e.jsx("div",{className:"font-medium text-sm truncate group-hover:text-primary transition-colors",children:s.moduleTitle}),e.jsx("div",{className:"text-xs text-zinc-500",children:t("embedPlaylist.learningModule")})]}),e.jsx("button",{className:"opacity-0 group-hover:opacity-100 w-10 h-10 bg-green-500 rounded-full flex items-center justify-center transition-opacity",children:e.jsx(h,{size:18,fill:"black",className:"text-black ml-0.5"})})]},s.moduleSlug))}),(!l.modules||l.modules.length===0)&&e.jsxs("div",{className:"text-center py-12",children:[e.jsx(n,{size:48,className:"mx-auto text-zinc-600 mb-4"}),e.jsx("p",{className:"text-zinc-400",children:t("embedPlaylist.emptyPlaylist")})]}),e.jsx("div",{className:"mt-8 pt-6 border-t border-zinc-800 flex items-center justify-center",children:e.jsx("a",{href:"https://livingcorporate.com",target:"_blank",rel:"noopener noreferrer",className:"text-xs text-zinc-500 hover:text-zinc-400",children:t("embedPlaylist.poweredBy")})})]})})}export{p as default};

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.