PageSourceSearch

https://steh.netlify.app/_next/static/chunks/4354-c174809fa28449e6.js

js steh.netlify.app collected 2026-10-03 11:27:27 UTC 10,678 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4354],{46043:(e,r,t)=>{t.d(r,{E:()=>a});var s=t(34477);let a=(0,s.createServerReference)("009ec6386310331aabbd9e0c1e1928709e396457ab",s.callServer,void 0,s.findSourceMapURL,"getAdminAdsAction")},57300:(e,r,t)=>{t.d(r,{VM:()=>u,hW:()=>h});var s=t(95155),a=t(12115),l=t(6874),n=t.n(l),i=t(74601),d=t(37648),o=t(25318),c=t(76570),m=t(61840),x=t(19968),p=t(46043);let u=e=>{let r,{slot:t=1,placement:l="all",className:n="",customData:i,fallbackToDefault:d=!0}=e,[o,c]=(0,a.useState)([]),[m,x]=(0,a.useState)(!1),[u,h]=(0,a.useState)(!1);(0,a.useEffect)(()=>{let e=!0;return(async()=>{try{let r=await (0,p.E)();e&&r.success&&r.ads&&c(r.ads)}catch(e){console.error("Failed to load ads from DB:",e)}finally{e&&x(!0)}})(),()=>{e=!1}},[]);let b=o.filter(e=>!1!==e.active),g=(l||"all").toLowerCase().trim();if(i?r=i:b.length>0&&("all"!==g&&"default"!==g&&(r=b.find(e=>{var r;return(null==(r=e.placement)?void 0:r.toLowerCase())===g||g.includes("course")&&"courses"===e.placement||g.includes("lab")&&"lab"===e.placement||g.includes("refer")&&"refer"===e.placement||g.includes("home")&&"home"===e.placement})),r||(r=b.find(e=>!e.placement||"all"===e.placement)),r||"number"!=typeof t||(r=b.find(e=>e.slot===t)),!r&&b.length>0&&(r=b[0])),(0,a.useEffect)(()=>{if((m||i)&&(r||d&&0===b.length)){let e=setTimeout(()=>{h(!0)},1e3);return()=>clearTimeout(e)}},[m,r,d,i,b.length]),!u)return null;let j=r||{badge:"Featured Partner",title:"Accelerate Your Career with STEH Fast-Track Certification",description:"Gain industry-grade experience in Web Development, Cybersecurity & AI. Build live production projects with 1-on-1 mentorship.",ctaText:"Explore Program",ctaLink:"/courses",sponsorName:"STEH Academy",imageUrl:"https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=800&q=80"};return(0,s.jsx)(f,{ad:j,onClose:()=>{h(!1)},className:n})},f=e=>{let{ad:r,onClose:t,className:l=""}=e,[p,u]=(0,a.useState)(!1),[f,h]=(0,a.useState)(10),b=(0,a.useRef)(null);(0,a.useEffect)(()=>(b.current=setInterval(()=>{h(e=>e<=1?(b.current&&clearInterval(b.current),t(),0):e-1)},1e3),()=>{b.current&&clearInterval(b.current)}),[t]);let g=r.badge||"Sponsored Partner",j=r.title||"Special Educational Opportunity",w=r.description||"Discover advanced training and resources with STEH verified partners.",y=r.ctaText||"Learn More",v=r.ctaLink||"/courses",N=r.sponsorName||"STEH Partner",k=r.imageUrl,C=v.startsWith("http://")||v.startsWith("https://");return(0,s.jsxs)("div",{className:"fixed inset-0 z-[999999] flex items-center justify-center p-3 sm:p-6 bg-black/80 backdrop-blur-md animate-in fade-in duration-300",style:{isolation:"isolate"},children:[(0,s.jsx)("div",{className:"absolute inset-0",onClick:t}),(0,s.jsxs)("div",{className:"relative z-10 w-full max-w-lg max-h-[90vh] flex flex-col bg-background/95 border border-primary/30 rounded-3xl shadow-2xl overflow-hidden backdrop-blur-xl animate-in zoom-in-95 duration-300 ".concat(l),children:[(0,s.jsxs)("div",{className:"flex items-center justify-between px-4 sm:px-5 py-3 bg-primary/10 border-b border-primary/15 shrink-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(i.A,{className:"w-4 h-4 text-primary animate-pulse"}),(0,s.jsxs)("span",{className:"text-xs font-bold uppercase tracking-wider text-primary",children:["Sponsored \xb7 ",g]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1 px-2 py-0.5 rounded-full bg-primary/15 text-primary text-[11px] font-mono font-bold",children:[(0,s.jsx)(d.A,{className:"w-3 h-3"}),(0,s.jsxs)("span",{children:[f,"s"]})]}),(0,s.jsx)("button",{onClick:t,className:"p-1.5 rounded-full bg-muted/80 hover:bg-muted text-muted-foreground hover:text-foreground transition-all duration-200","aria-label":"Close Advertisement",children:(0,s.jsx)(o.A,{className:"w-4 h-4"})})]})]}),(0,s.jsx)("div",{className:"w-full bg-primary/10 h-1 shrink-0 overflow-hidden",children:(0,s.jsx)("div",{className:"bg-primary h-full transition-all duration-1000 ease-linear",style:{width:"".concat(f/10*100,"%")}})}),(0,s.jsxs)("div",{className:"p-4 sm:p-6 overflow-y-auto space-y-3.5 flex-1",children:[k&&!p&&(0,s.jsx)("div",{className:"w-full h-40 sm:h-48 rounded-2xl overflow-hidden border border-border/60 bg-muted/30 relative shadow-inner shrink-0",children:(0,s.jsx)("img",{src:k,alt:j,onError:()=>u(!0),className:"w-full h-full object-cover",loading:"eager"})}),(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-[11px] font-semibold bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 border border-emerald-500/20",children:[(0,s.jsx)(c.A,{className:"w-3.5 h-3.5"})," Official Partner"]}),(0,s.jsxs)("span",{className:"text-[11px] text-muted-foreground truncate",children:["by ",N]})]}),(0,s.jsx)("h3",{className:"text-lg sm:text-xl font-bold text-foreground tracking-tight leading-snug",children:j}),(0,s.jsx)("p",{className:"text-xs sm:text-sm text-muted-foreground leading-relaxed",children:w})]}),(0,s.jsxs)("div",{className:"p-4 sm:p-5 pt-3 border-t border-border/50 bg-background/50 flex flex-col-reverse sm:flex-row items-center justify-between gap-2.5 shrink-0",children:[(0,s.jsx)("button",{onClick:t,className:"w-full sm:w-auto px-4 py-2 rounded-xl border border-border hover:bg-muted text-muted-foreground text-xs font-semibold transition-colors text-center",children:"Cancel / Close"}),C?(0,s.jsxs)("a",{href:v,target:"_blank",rel:"noopener noreferrer",onClick:t,className:"w-full sm:w-auto inline-flex items-center justify-center gap-2 px-6 py-2.5 rounded-xl bg-primary text-primary-foreground font-bold text-xs sm:text-sm shadow-md hover:bg-primary/90 hover:scale-[1.02] active:scale-[0.98] transition-all",children:[(0,s.jsx)("span",{children:y}),(0,s.jsx)(m.A,{className:"w-4 h-4"})]}):(0,s.jsxs)(n(),{href:v,onClick:t,className:"w-full sm:w-auto inline-flex items-center justify-center gap-2 px-6 py-2.5 rounded-xl bg-primary text-primary-foreground font-bold text-xs sm:text-sm shadow-md hover:bg-primary/90 hover:scale-[1.02] active:scale-[0.98] transition-all",children:[(0,s.jsx)("span",{children:y}),(0,s.jsx)(x.A,{className:"w-4 h-4"})]})]})]})]})},h=e=>{let{ad:r,className:t=""}=e,[l,d]=(0,a.useState)(!1),o=r.badge||"Sponsored Partner",p=r.title||"Special Educational Opportunity",u=r.description||"Discover advanced training and resources with STEH verified partners.",f=r.ctaText||"Learn More",h=r.ctaLink||"/courses",b=r.sponsorName||"STEH Partner",g=r.imageUrl,j=h.startsWith("http://")||h.startsWith("https://");
1return(0,s.jsxs)("div",{className:"w-full my-4 rounded-2xl overflow-hidden border border-primary/25 bg-gradient-to-br from-card via-card/95 to-primary/5 shadow-md transition-all duration-300 hover:border-primary/40 hover:shadow-xl ".concat(t),children:[(0,s.jsxs)("div",{className:"flex items-center justify-between px-4 py-2 bg-primary/10 border-b border-primary/10 text-xs font-semibold text-primary",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)(i.A,{className:"w-3.5 h-3.5 text-primary animate-pulse"}),(0,s.jsxs)("span",{className:"uppercase tracking-wider text-[11px] font-bold",children:["Popup Ad Preview \xb7 ",o]})]}),(0,s.jsxs)("span",{className:"text-[11px] text-muted-foreground font-normal",children:["Sponsored by ",b]})]}),(0,s.jsxs)("div",{className:"p-4 sm:p-6 flex flex-col md:flex-row items-stretch md:items-center justify-between gap-5",children:[g&&!l&&(0,s.jsx)("div",{className:"w-full md:w-44 h-40 md:h-32 shrink-0 rounded-xl overflow-hidden border border-border/60 bg-muted/30 relative shadow-inner",children:(0,s.jsx)("img",{src:g,alt:p,onError:()=>d(!0),className:"w-full h-full object-cover",loading:"lazy"})}),(0,s.jsxs)("div",{className:"flex-1 space-y-2.5 min-w-0",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsxs)("span",{className:"inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-[11px] font-medium bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 border border-emerald-500/20",children:[(0,s.jsx)(c.A,{className:"w-3 h-3"})," Official Sponsor"]}),r.placement&&(0,s.jsx)("span",{className:"text-[10px] uppercase tracking-wider font-mono text-muted-foreground bg-muted/60 px-2 py-0.5 rounded-md",children:r.placement})]}),(0,s.jsx)("h3",{className:"text-lg sm:text-xl font-bold text-foreground tracking-tight leading-snug",children:p}),(0,s.jsx)("p",{className:"text-xs sm:text-sm text-muted-foreground leading-relaxed line-clamp-3",children:u})]}),(0,s.jsx)("div",{className:"flex flex-row md:flex-col items-center md:items-end justify-between md:justify-center gap-3 shrink-0 pt-3 md:pt-0 border-t md:border-t-0 border-border/40",children:j?(0,s.jsxs)("a",{href:h,target:"_blank",rel:"noopener noreferrer",className:"w-full sm:w-auto inline-flex items-center justify-center gap-2 px-5 py-2.5 rounded-xl bg-primary text-primary-foreground font-semibold text-xs sm:text-sm shadow-md",children:[(0,s.jsx)("span",{children:f}),(0,s.jsx)(m.A,{className:"w-4 h-4"})]}):(0,s.jsxs)(n(),{href:h,className:"w-full sm:w-auto inline-flex items-center justify-center gap-2 px-5 py-2.5 rounded-xl bg-primary text-primary-foreground font-semibold text-xs sm:text-sm shadow-md",children:[(0,s.jsx)("span",{children:f}),(0,s.jsx)(x.A,{className:"w-4 h-4"})]})})]})]})}},66695:(e,r,t)=>{t.d(r,{BT:()=>o,Wu:()=>c,ZB:()=>d,Zp:()=>n,aR:()=>i,wL:()=>m});var s=t(95155),a=t(12115),l=t(59434);let n=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,l.cn)("rounded-lg border bg-card text-card-foreground shadow-sm",t),...a})});n.displayName="Card";let i=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,l.cn)("flex flex-col space-y-1.5 p-6",t),...a})});i.displayName="CardHeader";let d=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,l.cn)("text-2xl font-semibold leading-none tracking-tight",t),...a})});d.displayName="CardTitle";let o=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,l.cn)("text-sm text-muted-foreground",t),...a})});o.displayName="CardDescription";let c=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,l.cn)("p-6 pt-0",t),...a})});c.displayName="CardContent";let m=a.forwardRef((e,r)=>{let{className:t,...a}=e;return(0,s.jsx)("div",{ref:r,className:(0,l.cn)("flex items-center p-6 pt-0",t),...a})});m.displayName="CardFooter"}}]);

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.