1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,94179,e=>{"use strict";var a=e.i(43476),t=e.i(25913),s=e.i(47163);let i=(0,t.cva)("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function r({className:e,variant:t,...r}){return(0,a.jsx)("div",{className:(0,s.cn)(i({variant:t}),e),...r})}e.s(["Badge",()=>r])},30374,e=>{"use strict";var a=e.i(43476),t=e.i(71645),s=e.i(26999),i=e.i(47163);let r=s.Root,l=s.Trigger,n=s.Portal;s.Close;let o=t.forwardRef(({className:e,...t},r)=>(0,a.jsx)(s.Overlay,{ref:r,className:(0,i.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));o.displayName=s.Overlay.displayName;let c=t.forwardRef(({className:e,children:t,...r},l)=>(0,a.jsxs)(n,{children:[(0,a.jsx)(o,{}),(0,a.jsxs)(s.Content,{ref:l,className:(0,i.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...r,children:[t,(0,a.jsx)(s.Close,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:(0,a.jsx)("span",{className:"sr-only",children:"Close"})})]})]}));c.displayName=s.Content.displayName;let d=({className:e,...t})=>(0,a.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});d.displayName="DialogHeader";let g=t.forwardRef(({className:e,...t},r)=>(0,a.jsx)(s.Title,{ref:r,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",e),...t}));g.displayName=s.Title.displayName;let u=t.forwardRef(({className:e,...t},r)=>(0,a.jsx)(s.Description,{ref:r,className:(0,i.cn)("text-sm text-muted-foreground",e),...t}));u.displayName=s.Description.displayName,e.s(["Dialog",()=>r,"DialogContent",()=>c,"DialogDescription",()=>u,"DialogHeader",()=>d,"DialogTitle",()=>g,"DialogTrigger",()=>l])},61277,e=>{"use strict";let a=(0,e.i(75254).default)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);e.s(["default",()=>a])},87316,e=>{"use strict";var a=e.i(61277);e.s(["Calendar",()=>a.default])},78917,e=>{"use strict";let a=(0,e.i(75254).default)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",()=>a],78917)},3116,e=>{"use strict";let a=(0,e.i(75254).default)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);e.s(["Clock",()=>a],3116)},72520,e=>{"use strict";let a=(0,e.i(75254).default)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",()=>a],72520)},51975,e=>{"use strict";let a=(0,e.i(75254).default)("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);e.s(["Tag",()=>a],51975)},34528,e=>{"use strict";function a(e,a){let t=e.toLowerCase().trim().replace(/а/g,"a").replace(/б/g,"b").replace(/в/g,"v").replace(/г/g,"g").replace(/д/g,"d").replace(/Ñ/g,"gj").replace(/е/g,"e").replace(/ж/g,"zh").replace(/з/g,"z").replace(/Ñ/g,"dz").replace(/и/g,"i").replace(/Ñ/g,"j").replace(/к/g,"k").replace(/л/g,"l").replace(/Ñ/g,"lj").replace(/м/g,"m").replace(/н/g,"n").replace(/Ñ/g,"nj").replace(/о/g,"o").replace(/п/g,"p").replace(/Ñ/g,"r").replace(/Ñ/g,"s").replace(/Ñ/g,"t").replace(/Ñ/g,"kj").replace(/Ñ/g,"u").replace(/Ñ/g,"f").replace(/Ñ
/g,"h").replace(/Ñ/g,"c").replace(/Ñ/g,"ch").replace(/Ñ/g,"dzh").replace(/Ñ/g,"sh").replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"");return`${t}-${a}`}e.s(["createUniqueSlug",()=>a])},78716,e=>{"use strict";let a=(0,e.i(75254).default)("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);e.s(["Video",()=>a],78716)},31343,e=>{"use strict";let a=(0,e.i(75254).default)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);e.s(["Play",()=>a],31343)},59524,e=>{"use strict";var a=e.i(44258),t=e.i(10496);e.s(["videoApi",0,{getVideos:async(e={})=>{let t=new URLSearchParams;return e.language&&t.append("language",e.language),e.category&&t.append("category",e.category),e.featured&&t.append("featured","true"),void 0!==e.active&&t.append("active",e.active.toString()),e.page&&t.append("page",e.page.toString()),e.limit&&t.append("limit",e.limit.toString()),e.search&&t.append("search",e.search),(await a.apiWOC.get(`/videos?${t.toString()}`)).data},getVideoById:async e=>(await a.apiWOC.get(`/videos/${e}`)).data,getFeaturedVideos:async(e="mk")=>(await a.apiWOC.get(`/videos/${e}/featured`)).data,getVideoMetadata:async(e,t="mk")=>(await a.apiWOC.get(`/videos/${e}/metadata?language=${t}`)).data,getAllAdmin:async(e={})=>{let t=new URLSearchParams;return e.language&&t.append("language",e.language),e.category&&t.append("category",e.category),void 0!==e.featured&&t.append("featured",e.featured.toString()),void 0!==e.active&&t.append("active",e.active.toString()),e.page&&t.append("page",e.page.toString()),e.limit&&t.append("limit",e.limit.toString()),e.search&&t.append("search",e.search),(await a.api.get(`/admin/videos?${t.toString()}`)).data},create:async e=>{let s=await a.api.post("/admin/videos",e);return(0,t.invalidateVideosCache)(),s.data},update:async(e,s)=>{let i=await a.api.put(`/admin/videos/${e}`,s);return(0,t.invalidateVideosCache)(),i.data},delete:async e=>{await a.api.delete(`/admin/videos/${e}`),(0,t.invalidateVideosCache)()},getStats:async()=>(await a.api.get("/admin/videos/stats")).data,getYouTubeEmbedUrl:e=>`https://www.youtube.com/embed/${e}
1`,getYouTubeThumbnail:(e,a="maxresdefault")=>`https://img.youtube.com/vi/${e}/${a}.jpg`,extractYouTubeId:e=>{let a=e.match(/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/);return a?a[1]:null},validateYouTubeUrl:e=>/^(https?\:\/\/)?(www\.)?(youtube\.com|youtu\.be)\/.+/.test(e)}])},75990,e=>{"use strict";var a=e.i(43476),t=e.i(30374),s=e.i(67881),i=e.i(94179),r=e.i(78917),l=e.i(3116),n=e.i(87316),o=e.i(51975),c=e.i(37727);function d({isOpen:e,onClose:d,video:g}){if(!g)return null;let u=(()=>{if(g.youtube_id&&g.youtube_id.trim())return g.youtube_id;if(g.youtube_url){let e=g.youtube_url.match(/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/);return e?e[1]:null}return null})();return u?(0,a.jsx)(t.Dialog,{open:e,onOpenChange:d,children:(0,a.jsxs)(t.DialogContent,{className:"max-w-[62rem] w-full max-h-[90vh] p-0 overflow-hidden",children:[(0,a.jsx)(t.DialogTitle,{className:"sr-only",children:g.title}),(0,a.jsx)(s.Button,{variant:"ghost",size:"sm",onClick:d,className:"absolute top-4 right-4 z-10 h-8 w-8 p-0 bg-black/20 hover:bg-black/40 text-white hover:text-white rounded-full",title:"ÐаÑвоÑи (ESC или кликни надвоÑ)",children:(0,a.jsx)(c.X,{className:"h-4 w-4"})}),(0,a.jsx)("div",{className:"relative aspect-video bg-black",children:(0,a.jsx)("iframe",{src:`https://www.youtube.com/embed/${u}
1?autoplay=1&rel=0&modestbranding=1`,title:g.title,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"absolute inset-0 w-full h-full",loading:"lazy"})}),(0,a.jsxs)("div",{className:"p-6 max-h-[400px] overflow-y-auto",children:[(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-3",children:[(0,a.jsx)("h2",{className:"text-2xl font-bold text-gray-900 leading-tight",children:g.title}),(0,a.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[g.featured&&(0,a.jsx)(i.Badge,{className:"bg-yellow-500 text-white",children:"ÐÑепоÑаÑано"}),(0,a.jsx)(i.Badge,{variant:"outline",children:(e=>{switch(e){case"educational":return"ÐдÑкаÑивно";case"awareness":return"СвеÑÑ";case"testimonial":return"СведоÑÑво";case"training":return"ÐбÑка";default:return e}})(g.category)}),(0,a.jsx)(s.Button,{variant:"outline",size:"sm",asChild:!0,className:"shrink-0",children:(0,a.jsxs)("a",{href:`https://www.youtube.com/watch?v=${u}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1",children:[(0,a.jsx)(r.ExternalLink,{className:"h-3 w-3"}),"YouTube"]})})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-6 text-sm text-gray-600 mb-4",children:[g.duration&&(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(l.Clock,{className:"h-4 w-4"}),(0,a.jsx)("span",{children:g.duration})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(n.Calendar,{className:"h-4 w-4"}),(0,a.jsx)("span",{children:new Date(g.created_at).toLocaleDateString("mk",{year:"numeric",month:"long",day:"numeric"})})]}),(0,a.jsx)(i.Badge,{variant:"outline",className:"text-xs",children:"mk"===g.language?"ÐакедонÑки":"English"})]})]}),g.description&&(0,a.jsxs)("div",{className:"mb-6",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold text-gray-900 mb-2",children:"ÐпиÑ"}),(0,a.jsx)("p",{className:"text-gray-700 leading-relaxed whitespace-pre-wrap",children:g.description})]}),g.tags&&g.tags.trim()&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("h3",{className:"text-lg font-semibold text-gray-900 mb-3 flex items-center gap-2",children:[(0,a.jsx)(o.Tag,{className:"h-5 w-5"}),"Тагови"]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:g.tags.split(",").map((e,t)=>(0,a.jsx)(i.Badge,{variant:"secondary",className:"bg-gray-100 text-gray-700 hover:bg-gray-200",children:e.trim()},t))})]})]})]})}):(0,a.jsx)(t.Dialog,{open:e,onOpenChange:d,children:(0,a.jsxs)(t.DialogContent,{className:"max-w-2xl",children:[(0,a.jsx)(t.DialogTitle,{children:"ÐÑеÑка пÑи вÑиÑÑваÑе на видеоÑо"}),(0,a.jsxs)("div",{className:"p-6 text-center",children:[(0,a.jsx)("p",{className:"text-red-600 mb-4",children:"Ðевалиден YouTube линк или ID за видеоÑо."}),g.youtube_url&&(0,a.jsx)("a",{href:g.youtube_url,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:underline",children:"ÐÑвоÑи на YouTube"})]})]})})}e.s(["VideoPopup",()=>d])},62432,e=>{"use strict";var a=e.i(43476),t=e.i(71645),s=e.i(18566),i=e.i(22016),r=e.i(67881),l=e.i(70065),n=e.i(94179),o=e.i(75990),c=e.i(72520),d=e.i(31343),g=e.i(3116),u=e.i(78716),m=e.i(24083),p=e.i(59524),h=e.i(34528);function x(){let{t:e,language:x}=(0,m.useLanguage)(),f=(0,s.useRouter)(),[y,b]=(0,t.useState)([]),[v,j]=(0,t.useState)(!0),[w,N]=(0,t.useState)(null),[k,C]=(0,t.useState)(null),[T,S]=(0,t.useState)(!1),V=e=>{let a=(0,h.createUniqueSlug)(e.title,e.id);f.push(`/videos/${a}`)};(0,t.useEffect)(()=>{D()},[x]);let D=async()=>{try{j(!0),N(null);let e=await p.videoApi.getFeaturedVideos(x);b(e.data||[])}catch(e){console.error("Failed to fetch featured videos:",e),N("Failed to load videos")}finally{j(!1)}};return v?(0,a.jsx)("section",{className:"py-20 bg-gradient-to-br from-gray-50 to-white",children:(0,a.jsx)("div",{className:"container mx-auto px-6",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-[#fca03d] mx-auto"}),(0,a.jsx)("p",{className:"mt-4 text-gray-600",children:"Loading videos..."})]})})}):w||0===y.length?null:(0,a.jsxs)("section",{className:"py-20 bg-gradient-to-br from-gray-50 to-white",children:[(0,a.jsxs)("div",{className:"container mx-auto px-6",children:[(0,a.jsxs)("div",{className:"text-center mb-16",children:[(0,a.jsx)("div",{className:"w-20 h-20 bg-gradient-to-br from-red-500 to-red-600 rounded-2xl flex items-center justify-center mx-auto mb-6",children:(0,a.jsx)(u.Video,{className:"h-10 w-10 text-white"})}),(0,a.jsx)("h2",{className:"text-3xl md:text-4xl font-bold text-gray-900 mb-6",children:"en"===x?"Videos":"Ðидеа"}),(0,a.jsx)("p",{className:"text-base text-gray-600 max-w-3xl mx-auto",children:"en"===x?"Watch our latest content and learn more about human trafficking prevention":"ÐледаÑÑе ги наÑиÑе наÑнови ÑодÑжини и наÑÑеÑе повеÑе за ÑпÑеÑÑваÑе на ÑÑговиÑаÑа Ñо лÑÑе"})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-12",children:y.slice(0,3).map((e,t)=>(0,a.jsxs)(l.Card,{className:"card-modern overflow-hidden group",children:[(0,a.jsxs)("div",{className:"relative aspect-video overflow-hidden",children:[(0,a.jsx)("img",{src:e.thumbnail,alt:e.title,className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-black bg-opacity-40 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity duration-300",children:(0,a.jsx)(r.Button,{size:"lg",className:"bg-white text-gray-900 hover:bg-gray-100 rounded-full p-4 shadow-lg transform transition-transform hover:scale-110",onClick:()=>V(e),children:(0,a.jsx)(d.Play,{className:"h-6 w-6"})})}),(0,a.jsx)("div",{className:"absolute top-4 left-4",children:(0,a.jsx)(n.Badge,{className:"bg-[#fca03d] text-white shadow-lg",children:"en"===x?"Featured":"ÐÑепоÑаÑано"})}),e.duration&&(0,a.jsx)("div",{className:"absolute bottom-4 right-4",children:(0,a.jsxs)(n.Badge,{variant:"secondary",className:"bg-black bg-opacity-70 text-white border-0",children:[(0,a.jsx)(g.Clock,{className:"h-3 w-3 mr-1"}),e.duration]})})]}),(0,a.jsxs)(l.CardContent,{className:"p-6",children:[(0,a.jsx)("div",{className:"flex items-center justify-between mb-3",children:(0,a.jsx)(n.Badge,{variant:"outline",className:"text-xs",children:"educational"===e.category?"en"===x?"Educational":"ÐдÑкаÑивно":"awareness"===e.category?"en"===x?"Awareness":"СвеÑÑ":"testimonial"===e.category?"en"===x?"Testimonial":"СведоÑÑво":"training"===e.category?"en"===x?"Training":"ÐбÑка":e.category})}),(0,a.jsx)("h3",{className:"text-xl font-semibold mb-3 line-clamp-2 leading-tight",children:e.title}),(0,a.jsx)("p",{className:"text-gray-600 mb-4 line-clamp-3",children:e.description}),e.tags&&(0,a.jsx)("div",{className:"flex flex-wrap gap-1 mb-4",children:e.tags.split(",").slice(0,3).map((e,t)=>(0,a.jsx)(n.Badge,{variant:"outline",className:"text-xs",children:e.trim()},t))}),(0,a.jsxs)(r.Button,{variant:"outline",className:"w-full border-[#fca03d] text-[#fca03d] hover:bg-[#fca03d] hover:text-white transition-colors",onClick:()=>V(e),children:[(0,a.jsx)(d.Play,{className:"h-4 w-4 mr-2"}),"en"===x?"Watch Video":"ÐÐ»ÐµÐ´Ð°Ñ Ðидео"]})]})]},e.id))}),(0,a.jsx)("div",{className:"text-center",children:(0,a.jsx)(r.Button,{size:"lg",className:"bg-[#fca03d] hover:bg-[#fb923c] text-white px-8 py-3 text-lg",asChild:!0,children:(0,a.jsxs)(i.default,{href:"/programs/information-materials",className:"flex items-center gap-3",children:["en"===x?"View All Videos":"ÐидеÑе Ðи СиÑе Ðидеа",(0,a.jsx)(c.ArrowRight,{className:"h-5 w-5"})]})})})]}),(0,a.jsx)(o.VideoPopup,{isOpen:T,onClose:()=>{C(null),S(!1)},video:k})]})}e.s(["default",()=>x])},10247,e=>{e.n(e.i(62432))}]);
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.