PageSourceSearch

https://nuha.care/_next/static/chunks/app/client/news/page-67b8b17590a9b81c.js

js nuha.care collected 2026-10-02 01:20:20 UTC 37,907 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9902],{2373:(e,t,a)=>{"use strict";a.d(t,{p:()=>s,u:()=>l});var r=a(79207);let s="https://backend.nuha.care",l=r.A.create({baseURL:s,headers:{"Content-Type":"application/json"},withCredentials:!1})},7731:(e,t,a)=>{"use strict";a.d(t,{uE:()=>r.u}),a(59143);var r=a(2373)},9573:(e,t,a)=>{"use strict";a.d(t,{Cb:()=>n,Jc:()=>c,Sn:()=>o,cn:()=>l,gl:()=>i,il:()=>u,n4:()=>d,vv:()=>h});var r=a(84127),s=a(16933);function l(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,s.QP)((0,r.$)(t))}let n=e=>e?e.split(" ").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(""):"",o=e=>{let t=String(null!=e?e:"").trim();return t?t.split(/\s+/).map(e=>e.length<=3?e.toUpperCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" "):""};function i(e){return"/api/file-proxy?fileUrl=".concat(encodeURIComponent(e))}function c(e){if(e.includes("storage.nuha.care")){let t=e.indexOf("?");return -1!==t?e.substring(0,t):e}return i(e)}let d=e=>{if(!e)return e;let t=e.replace(/[^\d]/g,""),a=t.length;return a<=4?t:a<=8?"".concat(t.slice(0,4),"-").concat(t.slice(4)):"".concat(t.slice(0,4),"-").concat(t.slice(4,8),"-").concat(t.slice(8,13))},u=e=>e?e.replace(/\D/g,""):e,h=e=>e?new Intl.NumberFormat("id-ID",{style:"currency",currency:"IDR"}).format(e):e},18550:(e,t,a)=>{"use strict";a.d(t,{$:()=>i,r:()=>o});var r=a(74863);a(99335);var s=a(19071),l=a(23879),n=a(9573);let o=(0,l.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function i(e){let{className:t,variant:a,size:l,asChild:i=!1,...c}=e,d=i?s.DX:"button";return(0,r.jsx)(d,{"data-slot":"button",className:(0,n.cn)(o({variant:a,size:l,className:t})),...c})}},22674:(e,t,a)=>{"use strict";a.d(t,{n:()=>l});var r=a(62276),s=a(91837);let l=(0,r.v)()((0,s.Zr)(e=>({user:null,preLoginData:null,loginData:null,isAuthenticated:!1,isLoading:!0,setUser:t=>e({user:t,isAuthenticated:!!t}),setPreLoginData:t=>e({preLoginData:t}),setLoginData:t=>e({loginData:t}),setLoading:t=>e({isLoading:t}),logout:()=>e({user:null,isAuthenticated:!1})}),{name:"auth-storage",partialize:e=>({user:e.user,preLoginData:e.preLoginData})}))},24380:(e,t,a)=>{"use strict";a.d(t,{BT:()=>i,Wu:()=>c,ZB:()=>o,Zp:()=>l,aR:()=>n,wL:()=>d});var r=a(74863);a(99335);var s=a(9573);function l(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card",className:(0,s.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border shadow-sm",t),...a})}function n(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-header",className:(0,s.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...a})}function o(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-title",className:(0,s.cn)("leading-none font-semibold",t),...a})}function i(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-description",className:(0,s.cn)("text-muted-foreground text-sm",t),...a})}function c(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-content",className:(0,s.cn)("px-6",t),...a})}function d(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-footer",className:(0,s.cn)("flex items-center px-6 [.border-t]:pt-6",t),...a})}}
1,29991:(e,t,a)=>{"use strict";a.d(t,{k:()=>n});var r=a(74863);a(99335);var s=a(95823),l=a(9573);function n(e){let{className:t,value:a,...n}=e;return(0,r.jsx)(s.bL,{"data-slot":"progress",className:(0,l.cn)("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",t),...n,children:(0,r.jsx)(s.C1,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:"translateX(-".concat(100-(a||0),"%)")}})})}},34782:(e,t,a)=>{"use strict";a.d(t,{p:()=>l});var r=a(74863);a(99335);var s=a(9573);function l(e){let{className:t,type:a,...l}=e;return(0,r.jsx)("input",{type:a,"data-slot":"input",className:(0,s.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...l})}},41749:(e,t,a)=>{"use strict";a.d(t,{F:()=>n});var r=a(74863);a(99335);var s=a(38396),l=a(9573);function n(e){let{className:t,children:a,...n}=e;return(0,r.jsxs)(s.bL,{"data-slot":"scroll-area",className:(0,l.cn)("relative",t),...n,children:[(0,r.jsx)(s.LM,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:a}),(0,r.jsx)(o,{}),(0,r.jsx)(s.OK,{})]})}function o(e){let{className:t,orientation:a="vertical",...n}=e;return(0,r.jsx)(s.VM,{"data-slot":"scroll-area-scrollbar",orientation:a,className:(0,l.cn)("flex touch-none p-px transition-colors select-none","vertical"===a&&"h-full w-2.5 border-l border-l-transparent","horizontal"===a&&"h-2.5 flex-col border-t border-t-transparent",t),...n,children:(0,r.jsx)(s.lr,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}},52729:(e,t,a)=>{"use strict";a.d(t,{default:()=>j});var r=a(74863),s=a(24380),l=a(18550),n=a(34782),o=a(76199),i=a(41749),c=a(3745),d=a(55016),u=a(93256),h=a(44572),g=a(68558),m=a(82186),x=a(35636),p=a(53278),v=a(99335),b=a(50800),y=a(70711),f=a(9573),w=a(29991);let j=()=>{let e=(0,b.useRouter)(),[t,a]=(0,v.useState)(""),[j,N]=(0,v.useState)(""),[k,C]=(0,v.useState)(1),[S,E]=(0,v.useState)(""),[_,A]=(0,v.useState)(null),[L,F]=(0,v.useState)(!1),[B,q]=(0,v.useState)(!0),[M,T]=(0,v.useState)(!0),[I,z]=(0,v.useState)([]),[K,D]=(0,v.useState)([]),[R,U]=(0,v.useState)(!0),[P,H]=(0,v.useState)(10),Z=(0,v.useRef)(null),Q=(0,v.useRef)(null),[O,V]=(0,v.useState)(0),[W,$]=(0,v.useState)(0),{data:J,isLoading:X,error:Y}=(0,y.p8)(),{data:G,isLoading:ee,refetch:et}=(0,y.Tz)(k,j||void 0,(null==_?void 0:_.toString())||void 0,"news");(0,v.useEffect)(()=>{et()},[et]);let{data:ea,isLoading:er,refetch:es}=(0,y.Ov)("news");(0,v.useEffect)(()=>{es()},[es]),(0,v.useEffect)(()=>{console.log("Public Category Data:",J),console.log("Is Loading:",X),console.log("Error:",Y)},[J,X,Y]),(0,v.useEffect)(()=>{let e=setTimeout(()=>{N(t)},500);return()=>clearTimeout(e)},[t]),(0,v.useEffect)(()=>{if(null==G?void 0:G.data){var e,t;let a=G.data.map(e=>{var t,a,r,s,l,n,o;return{id:e.id_blog_post,title:e.title,description:e.excerpt||"No description available",author:(null==(t=e.author)?void 0:t.nama_lengkap)||"Unknown Author",date:e.createdAt?new Date(e.createdAt).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):"Unknown Date",readTime:"".concat(Math.floor(15*Math.random())+3," min read"),image:e.image_url||"",category:(null==(a=e.category)?void 0:a.name)||"Uncategorized",category_id:(null==(r=e.category)?void 0:r.id)||null,subcategory:(null==(l=e.category)||null==(s=l.sub_category)?void 0:s.name)||null,subcategory_id:(null==(o=e.category)||null==(n=o.sub_category)?void 0:n.id)||null,slug:e.slug,tags:e.tags||[]}});(null==(e=G.meta_data)?void 0:e.page)===1?(z(a),H(10)):z(e=>{let t=new Set(e.map(e=>e.id));return[...e,...a.filter(e=>!t.has(e.id))]}),U((null==(t=G.meta_data)?void 0:t.has_next)||!1)}},[G,I.length]),(0,v.useEffect)(()=>{(null==ea?void 0:ea.data)&&D(ea.data.map(e=>{var t,a,r,s,l,n,o;
1return{id:e.id_blog_post,title:e.title,description:e.excerpt||"No description available",author:(null==(t=e.author)?void 0:t.nama_lengkap)||"Unknown Author",date:e.createdAt?new Date(e.createdAt).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):"Unknown Date",readTime:"5 min read",image:e.image_url||"",category:(null==(a=e.category)?void 0:a.name)||"Uncategorized",category_id:(null==(r=e.category)?void 0:r.id)||null,subcategory:(null==(l=e.category)||null==(s=l.sub_category)?void 0:s.name)||null,subcategory_id:(null==(o=e.category)||null==(n=o.sub_category)?void 0:n.id)||null,slug:e.slug,tags:e.tags||[]}}))},[ea]),(0,v.useEffect)(()=>{if(!K||0===K.length)return;let e=setInterval(()=>{V(e=>e+1<K.length?e+1:0)},4e3);return()=>clearInterval(e)},[K]),(0,v.useEffect)(()=>{let e;$(0);let t=Date.now();return e=requestAnimationFrame(function a(){let r=Math.min((Date.now()-t)/4e3*100,100);$(r),r<100&&(e=requestAnimationFrame(a))}),()=>cancelAnimationFrame(e)},[O]);let el=(0,v.useMemo)(()=>I.slice(0,P),[I,P]),en=(0,v.useMemo)(()=>J||[],[J]);(0,v.useEffect)(()=>{C(1),z([]),U(!0),H(10)},[j,_]);let eo=(0,v.useCallback)((e,t)=>{let a=e===_?null:e,r=e===_?"":t;A(a),E(r),C(1),z([]),U(!0),H(10)},[_]),ei=(0,v.useCallback)(()=>{E(""),A(null),a(""),N(""),C(1),z([]),U(!0),H(10)},[]),ec=(0,v.useCallback)(()=>{a(""),N("")},[]),ed=(0,v.useCallback)(()=>{E(""),A(null)},[]),eu=t=>{t&&e.push("/client/news/".concat(t))},eh=(0,v.useCallback)(()=>{!ee&&(P<I.length?H(e=>Math.min(e+10,I.length)):R&&C(e=>e+1))},[ee,R,P,I.length]);return(0,v.useEffect)(()=>{let e=new IntersectionObserver(e=>{let t=P<I.length||R;e[0].isIntersecting&&t&&!ee&&eh()},{threshold:.1});return Q.current&&e.observe(Q.current),Z.current=e,()=>{Z.current&&Z.current.disconnect()}},[eh,R,ee,P,I.length]),(0,r.jsx)("div",{className:"bg-[#F5F5F5] min-h-screen",children:(0,r.jsxs)("div",{className:"container mx-auto px-4 py-8",children:[(0,r.jsxs)("div",{className:"text-center mb-12",children:[(0,r.jsx)("h1",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Our News"}),(0,r.jsx)("p",{className:"text-lg text-gray-600 max-w-2xl mx-auto",children:"Discover the latest news and updates from Nuha"})]}),er?(0,r.jsxs)("div",{className:"w-full grid grid-cols-1 md:grid-cols-5 gap-4 mb-8",children:[(0,r.jsx)("div",{className:"md:col-span-3",children:(0,r.jsx)("div",{className:"h-64 sm:h-80 md:h-[500px] lg:h-[600px] bg-gray-200 animate-pulse rounded-lg relative"})}),(0,r.jsx)("div",{className:"md:col-span-2 grid grid-cols-2 grid-rows-2 gap-4",children:[0,1,2,3].map(e=>(0,r.jsx)("div",{className:"h-48 sm:h-56 md:h-60 lg:h-72 bg-gray-200 animate-pulse rounded-lg"},e))})]}):K.length>0&&(0,r.jsxs)("div",{className:"w-full grid grid-cols-1 md:grid-cols-5 gap-4 mb-8",children:[(0,r.jsx)("div",{className:"md:col-span-3",children:(()=>{let e=K[O];return e?(0,r.jsx)(s.Zp,{className:"h-full hover:shadow-lg transition-shadow duration-300 overflow-hidden",children:(0,r.jsxs)("div",{className:"relative h-64 sm:h-80 md:h-[500px] lg:h-[600px]",children:[(0,r.jsx)("img",{src:(0,f.gl)(e.image),alt:e.title,className:"w-full h-full object-cover"}),(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/40 to-transparent"}),(0,r.jsxs)("div",{className:"absolute top-4 left-4 flex flex-wrap gap-1",children:[(0,r.jsx)(o.E,{variant:"secondary",className:"bg-white/90 text-black hover:bg-white cursor-pointer transition-colors",onClick:()=>eo(e.category_id||0,e.category),children:e.category}),e.subcategory&&(0,r.jsx)(o.E,{variant:"secondary",className:"bg-white/90 text-black hover:bg-white cursor-pointer transition-colors",onClick:()=>eo(e.subcategory_id||0,e.subcategory),children:e.subcategory})]}),(0,r.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 p-4 md:p-6 text-white",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 text-xs md:text-sm text-gray-300 mb-2",children:[(0,r.jsx)(c.A,{className:"w-3 h-3 md:w-4 md:h-4"}),(0,r.jsx)("span",{children:e.author}),(0,r.jsx)("span",{children:"•"}),(0,r.jsx)(d.A,{className:"w-3 h-3 md:w-4 md:h-4"}),(0,r.jsx)("span",{children:e.date}),(0,r.jsx)("span",{children:"•"}),(0,r.jsx)(u.A,{className:"w-3 h-3 md:w-4 md:h-4"}),(0,r.jsx)("span",{children:e.readTime})]}),(0,r.jsx)(s.ZB,{className:"text-lg md:text-2xl mb-2 text-white line-clamp-2",children:e.title}),(0,r.jsx)(s.BT,{className:"text-gray-200 mb-3 md:mb-4 line-clamp-2 text-sm md:text-base",children:e.description}),(0,r.jsx)(l.$,{variant:"secondary",className:"bg-white text-black hover:bg-gray-100 text-sm md:text-base px-3 md:px-4 py-2",onClick:()=>eu(e.slug),children:"Read More"})]}),(0,r.jsx)(w.k,{value:W,className:"absolute left-0 right-0 bottom-0 h-1 [&_[data-state=indeterminate]]:bg-green-500 [&_[data-state=complete]]:bg-green-500 [&_.bg-primary]:bg-green-500"})]})}):null})()}),(0,r.jsx)("div",{className:"md:col-span-2 grid grid-cols-2 grid-rows-2 gap-4",children:Array.from({length:4}).map((e,t)=>{let a=K.length,n=K[(O+1+t)%a];return(0,r.jsx)(s.Zp,{className:"h-full hover:shadow-lg transition-shadow duration-300 overflow-hidden",children:(0,r.jsxs)("div",{className:"relative h-48 sm:h-56 md:h-60 lg:h-72",children:[(0,r.jsx)("img",{src:(0,f.gl)(n.image),alt:n.title,className:"w-full h-full object-cover"}),(0,r.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/40 to-transparent"}),(0,r.jsxs)("div",{className:"absolute top-2 left-2 flex flex-wrap gap-1",children:[(0,r.jsx)(o.E,{variant:"secondary",className:"bg-white/90 text-black hover:bg-white cursor-pointer transition-colors",onClick:()=>eo(n.category_id||0,n.category),children:n.category}),n.subcategory&&(0,r.jsx)(o.E,{variant:"secondary",className:"bg-white/90 text-black hover:bg-white cursor-pointer transition-colors",onClick:()=>eo(n.subcategory_id||0,n.subcategory),children:n.subcategory})]}),(0,r.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 p-2 md:p-4 text-white",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 text-xs text-gray-300 mb-1",children:[(0,r.jsx)(c.A,{className:"w-3 h-3"}),(0,r.jsx)("span",{children:n.author}),(0,r.jsx)("span",{children:"•"}),(0,r.jsx)(d.A,{className:"w-3 h-3"}),(0,r.jsx)("span",{children:n.date})]}),(0,r.jsx)(s.ZB,{className:"text-base md:text-lg mb-1 text-white line-clamp-2",children:n.title}),(0,r.jsx)(l.$,{variant:"secondary",className:"bg-white text-black hover:bg-gray-100 text-xs md:text-sm px-2 md:px-3 py-1 mt-1",onClick:()=>eu(n.slug),children:"Read More"})]})]})},n.id+"-"+t)}
1)})]}),(0,r.jsxs)("div",{className:"mt-16",children:[(0,r.jsx)("h2",{className:"text-3xl font-bold text-gray-900 mb-6",children:"All Blog Posts"}),(0,r.jsxs)("div",{className:"flex flex-col lg:flex-row gap-6",children:[(0,r.jsx)("div",{className:"w-full lg:w-1/4",children:(0,r.jsxs)("div",{className:"p-4 lg:sticky lg:top-25 h-fit lg:max-h-[calc(100vh-5rem)] overflow-y-auto",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("h3",{className:"text-base font-semibold",children:"Filters"}),(0,r.jsxs)("button",{onClick:()=>T(!M),className:"lg:hidden flex items-center gap-1 text-xs text-gray-600 hover:text-gray-800",children:[M?"Hide":"Show"," Filters",M?(0,r.jsx)(h.A,{className:"w-3 h-3"}):(0,r.jsx)(g.A,{className:"w-3 h-3"})]})]}),M&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"mb-4",children:[(0,r.jsx)("label",{className:"block text-xs font-medium text-gray-700 mb-1",children:"Search"}),(0,r.jsxs)("div",{className:"relative group",children:[(0,r.jsx)(m.A,{className:"absolute left-2 top-1/2 transform -translate-y-1/2 text-gray-400 w-3 h-3 group-hover:text-gray-600 transition-colors duration-200"}),(0,r.jsx)(n.p,{type:"text",placeholder:"Search posts...",value:t,onChange:e=>a(e.target.value),className:"pl-7 h-8 text-sm border-gray-300 hover:border-gray-400 focus:border-blue-500 focus:ring-1 focus:ring-blue-500 transition-all duration-200"}),t!==j&&(0,r.jsx)("div",{className:"absolute right-2 top-1/2 transform -translate-y-1/2",children:(0,r.jsx)(x.A,{className:"w-3 h-3 animate-spin text-gray-400"})})]})]}),(0,r.jsxs)("div",{className:"mb-4",children:[(0,r.jsxs)("button",{onClick:()=>F(!L),className:"w-full flex items-center justify-between px-2 py-1 text-xs font-medium text-gray-700 hover:bg-gray-100 hover:text-gray-900 rounded transition-all duration-200 group",children:[(0,r.jsx)("span",{children:"Sort By"}),L?(0,r.jsx)(h.A,{className:"w-3 h-3 group-hover:scale-110 transition-transform duration-200"}):(0,r.jsx)(g.A,{className:"w-3 h-3 group-hover:scale-110 transition-transform duration-200"})]}),L&&(0,r.jsxs)("div",{className:"space-y-1 mt-1 ml-2",children:[(0,r.jsx)("button",{className:"w-full text-left px-2 py-1 text-xs rounded hover:bg-blue-50 hover:text-blue-700 hover:shadow-sm transition-all duration-200 transform hover:translate-x-1",children:"Most Recent"}),(0,r.jsx)("button",{className:"w-full text-left px-2 py-1 text-xs rounded hover:bg-blue-50 hover:text-blue-700 hover:shadow-sm transition-all duration-200 transform hover:translate-x-1",children:"Most Liked"}),(0,r.jsx)("button",{className:"w-full text-left px-2 py-1 text-xs rounded hover:bg-blue-50 hover:text-blue-700 hover:shadow-sm transition-all duration-200 transform hover:translate-x-1",children:"Most Views"}),(0,r.jsx)("button",{className:"w-full text-left px-2 py-1 text-xs rounded hover:bg-blue-50 hover:text-blue-700 hover:shadow-sm transition-all duration-200 transform hover:translate-x-1",children:"Most Shared"})]})]}),(0,r.jsxs)("div",{className:"mb-4",children:[(0,r.jsxs)("button",{onClick:()=>q(!B),className:"w-full flex items-center justify-between px-2 py-1 text-xs font-medium text-gray-700 hover:bg-gray-100 hover:text-gray-900 rounded transition-all duration-200 group",children:[(0,r.jsx)("span",{children:"Categories"}),B?(0,r.jsx)(h.A,{className:"w-3 h-3 group-hover:scale-110 transition-transform duration-200"}):(0,r.jsx)(g.A,{className:"w-3 h-3 group-hover:scale-110 transition-transform duration-200"})]}),B&&(0,r.jsx)("div",{className:"mt-1 ml-2",children:X?(0,r.jsxs)("div",{className:"flex items-center gap-2 py-2",children:[(0,r.jsx)(x.A,{className:"w-3 h-3 animate-spin"}),(0,r.jsx)("span",{className:"text-xs text-gray-500",children:"Loading categories..."})]}):Y?(0,r.jsxs)("div",{className:"text-xs text-red-500 py-2",children:["Error loading categories: ",Y.message]}):0===en.length?(0,r.jsx)("div",{className:"text-xs text-gray-500 py-2",children:"No categories available"}):(0,r.jsx)(i.F,{className:"h-32 lg:h-32",children:(0,r.jsx)("div",{className:"space-y-1 pr-2",children:en.map(e=>(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsx)("button",{onClick:()=>eo(e.id,e.name),className:"w-full text-left px-2 py-1 text-xs rounded transition-all duration-200 transform hover:translate-x-1 hover:shadow-sm ".concat(S===e.name?"bg-blue-100 text-blue-700 border border-blue-200 hover:bg-blue-150":"hover:bg-gray-100 hover:text-gray-900"),children:e.name}),e.sub_categories&&e.sub_categories.length>0&&e.sub_categories.map(e=>(0,r.jsxs)("button",{onClick:()=>eo(e.id,e.name),className:"w-full text-left px-4 py-1 text-xs rounded transition-all duration-200 transform hover:translate-x-2 hover:shadow-sm text-gray-600 ".concat(S===e.name?"bg-blue-50 text-blue-600 border border-blue-100 hover:bg-blue-100":"hover:bg-gray-50 hover:text-gray-800"),children:["└ ",e.name]},e.id))]},e.id))})})})]}),(S||t)&&(0,r.jsx)("div",{className:"pt-3 border-t",children:(0,r.jsx)("button",{onClick:ei,className:"w-full px-2 py-1 text-xs text-gray-600 hover:text-gray-800 hover:bg-gray-100 rounded transition-all duration-200 transform hover:scale-105 hover:shadow-sm",children:"Clear All Filters"})})]}),(0,r.jsxs)("div",{className:"mt-4 pt-3 border-t",children:[(0,r.jsx)("h4",{className:"text-sm font-semibold text-gray-800 mb
1-3 flex items-center gap-2",children:"Follow Us"}),(0,r.jsxs)("div",{className:"space-y-2",children:[(0,r.jsxs)("a",{href:"https://www.youtube.com/@nuha_care",className:"flex items-center gap-2 px-3 py-2 text-xs font-medium text-white bg-gradient-to-r from-red-500 to-red-600 hover:from-red-600 hover:to-red-700 rounded transition-all duration-300 shadow-sm hover:shadow-md transform hover:-translate-y-0.5 hover:scale-105 group",children:[(0,r.jsx)("svg",{className:"w-4 h-4 group-hover:scale-110 transition-transform duration-200",fill:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})}),(0,r.jsx)("span",{children:"YouTube"}),(0,r.jsx)("svg",{className:"w-3 h-3 ml-auto opacity-70 group-hover:opacity-100 group-hover:translate-x-1 transition-all duration-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]}),(0,r.jsxs)("a",{href:"https://www.linkedin.com/company/pt-data-integrasi-inovasi/",className:"flex items-center gap-2 px-3 py-2 text-xs font-medium text-white bg-gradient-to-r from-blue-600 to-blue-700 hover:from-blue-700 hover:to-blue-800 rounded transition-all duration-300 shadow-sm hover:shadow-md transform hover:-translate-y-0.5 hover:scale-105 group",children:[(0,r.jsx)("svg",{className:"w-4 h-4 group-hover:scale-110 transition-transform duration-200",fill:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})}),(0,r.jsx)("span",{children:"LinkedIn"}),(0,r.jsx)("svg",{className:"w-3 h-3 ml-auto opacity-70 group-hover:opacity-100 group-hover:translate-x-1 transition-all duration-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]}),(0,r.jsxs)("a",{href:"https://www.instagram.com/nuha.care",className:"flex items-center gap-2 px-3 py-2 text-xs font-medium text-white bg-gradient-to-r from-purple-500 to-pink-500 hover:from-purple-600 hover:to-pink-600 rounded transition-all duration-300 shadow-sm hover:shadow-md transform hover:-translate-y-0.5 hover:scale-105 group",children:[(0,r.jsx)("svg",{className:"w-4 h-4 group-hover:scale-110 transition-transform duration-200",fill:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"})}),(0,r.jsx)("span",{children:"Instagram"}),(0,r.jsx)("svg",{className:"w-3 h-3 ml-auto opacity-70 group-hover:opacity-100 group-hover:translate-x-1 transition-all duration-200",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]})]})]})]})}),(0,r.jsxs)("div",{className:"w-full lg:w-3/4",children:[(S||j)&&(0,r.jsxs)("div",{className:"mb-6 flex flex-wrap gap-2",children:[S&&(0,r.jsxs)(o.E,{variant:"default",className:"bg-blue-600 hover:bg-blue-700 cursor-pointer",onClick:ed,children:["Category: ",S," ",(0,r.jsx)(p.A,{className:"w-4 h-4"})]}),j&&(0,r.jsxs)(o.E,{variant:"secondary",className:"bg-gray-200 hover:bg-gray-300 cursor-pointer",onClick:ec,children:['Search: "',j,'" ',(0,r.jsx)(p.A,{className:"w-4 h-4"})]})]}),(0,r.jsx)("div",{className:"mb-6",children:(0,r.jsxs)("p",{className:"text-sm text-gray-500",children:["Showing ",el.length," posts",(null==G?void 0:G.meta_data)&&(0,r.jsxs)("span",{children:[" of ",G.meta_data.total," total"]}),el.length<I.length&&(0,r.jsx)("span",{children:" (scroll to load more)"})]})}),ee&&1===k?(0,r.jsx)("div",{className:"flex justify-center items-center py-12",children:(0,r.jsxs)("div",{className:"flex items-center gap-2 text-gray-500",children:[(0,r.jsx)(x.A,{className:"w-6 h-6 animate-spin"}),(0,r.jsx)("span",{children:"Loading posts..."})]})}):(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:el.map(e=>(0,r.jsxs)(s.Zp,{className:"h-full hover:shadow-lg transition-shadow duration-300 overflow-hidden",children:[(0,r.jsxs)("div",{className:"aspect-video overflow-hidden relative",children:[(0,r.jsx)("img",{src:(0,f.gl)(e.image),alt:e.title,className:"w-full h-full object-cover hover:scale-105 transition-transform duration-300"}),(0,r.jsxs)("div",{className:"absolute top-3 left-3 flex flex-wrap gap-1",children:[(0,r.jsx)(o.E,{variant:"secondary",className:"bg-white/90 text-black hover:bg-white cursor-pointer transition-colors",onClick:()=>eo(e.category_id||0,e.category),children:e.category}),e.subcategory&&(0,r.jsx)(o.E,{variant:"secondary",className:"bg-white/90 text-black hover:bg-white cursor-pointer transition-colors",onClick:()=>eo(e.subcategory_id||0,e.subcategory),children:e.subcategory})]})]}),(0,r.jsxs)(s.aR,{className:"pb-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 text-sm text-gray-500 mb-2",children:[(0,r.jsx)(c.A,{className:"w-4 h-4"}),(0,r.jsx)("span",{children:e.author}),(0,r.jsx)("span",{children:"•"}),(0,r.jsx)(d.A,{className:"w-4 h-4"}),(0,r.jsx)("span",{children:e.date}),(0,r.jsx)("span",{children:"•"}),(0,r.jsx)(u.A,{className:"w-4 h-4"}),(0,r.jsx)("span",{children:e.readTime})]}),(0,r.jsx)(s.ZB,{className:"text-xl line-clamp-2",children:e.title}),(0,r.jsx)(s.BT,{className:"line-clamp-3",children:e.description})]}),(0,r.jsx)(s.Wu,{className:"pt-0 pb-4",children:(0,r.jsx)(l.$,{variant:"outline",className:"w-full",onClick:()=>eu(e.slug),children:"Read More"})})]},e.id))}),R&&ee&&k>1&&(0,r.jsx)("div",{className:"flex justify-center items-center py-8",children:(0,r.jsxs)("div",{className:"flex items-center gap-2 text-gray-500",children:[(0,r.jsx)(x.A,{className:"w-5 h-5 animate-spin"}),(0,r.jsx)("span",{children:"Loading more posts..."})]})}),(P<I.length||R)&&!ee&&(0,r.jsx)("div",{ref:Q,className:"h-20 flex items-center justify-center",children:(0,r.jsx)("div",{className:"text-gray-400 text-sm",children:P<I.length?"Showing ".concat(P," of ").concat(I.length," posts (scroll for more)..."):"Scroll to load more..."})}),0===el.length&&!ee&&(0,r.jsx)("div",{className:"text-center py-12",children:(0,r.jsx)("p",{className:"text-gray-500 text-lg",children:"No posts found matching your filters."})}),P>=I.length&&!R&&el.length>0&&(0,r.jsx)("div",{className:"text-center py-8",children:(0,r.jsx)("p",{className:"text-gray-500",children:"You've reached the end of all posts."})})]})]})]})]})})}},59143:(e,t,a)=>{"use strict";a.d(t,{As:()=>c,CR:()=>d});var r=a(50800),s=a(99335),l=a(22311),n=a(26023),o=a(2373);a(22674);let i=async e=>{let t=await fetch("".concat(o.p,"/management-access/auth/pre-login"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw await t.json();return(await t.json()).data};function c(){var e;let{role:t,redirectTo:a="/crm-support/login"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=(0,r.useRouter)(),{data:o,status:i}
1=(0,n.useSession)(),c="authenticated"===i,d=null==o||null==(e=o.user)?void 0:e.role,u=!t||d===t;return(0,s.useEffect)(()=>{if("unauthenticated"===i)l.push(a);else if(t&&!u){let e=(null==d?void 0:d.toLowerCase())==="admin"?"/crm-support/admin/dashboard":"/crm-support/client/dashboard";console.log("redirectPath",e),l.push(e)}},[i,u,t,a,l,d]),{isAuthenticated:c,userRole:d,hasRequiredRole:u,user:null==o?void 0:o.user,status:i}}function d(){return(0,l.n)({mutationFn:i})}},70711:(e,t,a)=>{"use strict";a.d(t,{gp:()=>d,R0:()=>c,Sm:()=>u,GK:()=>x,nS:()=>g,xZ:()=>v,Tz:()=>f,ZP:()=>w,Cc:()=>C,B_:()=>E,E5:()=>m,Ov:()=>N,p8:()=>k,rc:()=>b,BH:()=>y,xp:()=>S,iS:()=>j,Ln:()=>h,bZ:()=>p});var r=a(90825),s=a(19642),l=a(26023),n=a(7731);let o={getAll:async(e,t)=>{try{return(await n.uE.get("/blogs/all",{headers:{token:e},params:t})).data}catch(e){throw e}},getById:async(e,t)=>{try{return(await n.uE.get("/blogs/detail/".concat(t),{headers:{token:e}})).data}catch(e){throw e}},create:async(e,t)=>{try{return(await n.uE.post("/blogs/create",t,{headers:{token:e,"Content-Type":"multipart/form-data"}})).data}catch(e){throw e}},update:async(e,t,a)=>{try{return(await n.uE.put("/blogs/update/".concat(t),a,{headers:{token:e,"Content-Type":"multipart/form-data"}})).data}catch(e){throw e}},delete:async(e,t)=>{try{return(await n.uE.delete("/blogs/delete/".concat(t),{headers:{token:e}})).data}catch(e){throw e}},getCategories:async(e,t)=>{try{return(await n.uE.get("/blogs/category?type=".concat(t),{headers:{token:e}})).data}catch(e){throw e}},createCategory:async(e,t)=>{try{return(await n.uE.post("/blogs/category",t,{headers:{token:e}})).data}catch(e){throw e}},updateCategory:async(e,t,a)=>{try{return(await n.uE.put("/blogs/category/".concat(t),a,{headers:{token:e}})).data}catch(e){throw e}},deleteCategory:async(e,t)=>{try{return(await n.uE.delete("/blogs/category/".concat(t),{headers:{token:e}})).data}catch(e){throw e}},getTelemetry:async(e,t)=>{try{return(await n.uE.get("/blogs/all-metrics",{headers:{token:e},params:t})).data}catch(e){throw e}},getVisitors:async(e,t)=>{try{return(await n.uE.get("/blogs/visitor-logs",{headers:{token:e},params:t})).data}catch(e){throw e}},getAllBlogsPublic:async(e,t,a,r)=>{try{let s=new URLSearchParams({page:e.toString()});return t&&s.append("search",t),a&&s.append("category",a),r&&s.append("type",r),(await n.uE.get("/public/public-blogs?".concat(s.toString()),{headers:{"Content-Type":"application/json"}})).data}catch(e){throw e}},getHighlightedBlogs:async e=>{try{return(await n.uE.get("/public/public-highlight?type=".concat(e),{headers:{"Content-Type":"application/json"}})).data}catch(e){throw e}},getPublicCategory:async()=>{try{return(await n.uE.get("/public/public-category",{headers:{"Content-Type":"application/json"}})).data}catch(e){throw e}},getBlogBySlugPublic:async e=>{try{return(await n.uE.get("/public/public-blog-detail/".concat(e),{headers:{"Content-Type":"application/json"}})).data}catch(e){throw e}},getBlogRelatedBySlug:async e=>{try{return(await n.uE.get("/public/public-blog-related/".concat(e),{headers:{"Content-Type":"application/json"}})).data}catch(e){throw e}},setBlogHighlight:async(e,t)=>{try{return(await n.uE.put("/blogs/set-highlight/".concat(t),{},{headers:{token:e}})).data}catch(e){throw e}},postMetrics:async(e,t,a)=>{try{return(await n.uE.post("/public/blog-metrics/".concat(e),{type:t,origin:a},{headers:{"Content-Type":"application/json"}})).data}catch(e){throw e}},getBlogTags:async e=>{try{return(await n.uE.get("/blogs/tags",{headers:{token:e}})).data}catch(e){throw e}}};var i=a(22311);let c=e=>{var t;let{data:a}=(0,l.useSession)();return(0,r.I)({queryKey:["blogs",e],queryFn:()=>{var t;return o.getAll((null==a||null==(t=a.user)?void 0:t.token)||"",e)},enabled:!!(null==a||null==(t=a.user)?void 0:t.token),placeholderData:e=>e})},d=e=>{var t;let{data:a}=(0,l.useSession)();return(0,r.I)({queryKey:["blog",e],queryFn:()=>{var t;return o.getById((null==a||null==(t=a.user)?void 0:t.token)||"",e)},enabled:!!(null==a||null==(t=a.user)?void 0:t.token)})},u=()=>{let{data:e}=(0,l.useSession)(),t=(0,s.jE)();return(0,i.n)({mutationFn:t=>{var a;return o.create((null==e||null==(a=e.user)?void 0:a.token)||"",t)},onSuccess:()=>{t.invalidateQueries({queryKey:["blogs"]})}})},h=e=>{let{data:t}=(0,l.useSession)(),a=(0,s.jE)();return(0,i.n)({mutationFn:a=>{var r;return o.update((null==t||null==(r=t.user)?void 0:r.token)||"",e,a)},onSuccess:()=>{a.invalidateQueries({queryKey:["blog",e]})}})},g=()=>{let{data:e}=(0,l.useSession)(),t=(0,s.jE)();return(0,i.n)({mutationFn:t=>{var a;return o.delete((null==e||null==(a=e.user)?void 0:a.token)||"",t)},onSuccess:()=>{t.invalidateQueries({queryKey:["blogs"]})}})},m=e=>{let{data:t}=(0,l.useSession)();return(0,r.I)({queryKey:["categories",e],queryFn:()=>{var a;return o.getCategories((null==t||null==(a=t.user)?void 0:a.token)||"",e)}})},x=()=>{let{data:e}=(0,l.useSession)(),t=(0,s.jE)();return(0,i.n)({mutationFn:t=>{var a;return o.createCategory((null==e||null==(a=e.user)?void 0:a.token)||"",t)},onSuccess:(e,a)=>{t.invalidateQueries({queryKey:["categories",a.type]})}})},p=e=>{let{data:t}=(0,l.useSession)(),a=(0,s.jE)();return(0,i.n)({mutationFn:a=>{var r;return o.updateCategory((null==t||null==(r=t.user)?void 0:r.token)||"",e,a)},onSuccess:()=>{a.invalidateQueries({queryKey:["categories"]})}})},v=()=>{let{data:e}=(0,l.useSession)(),t=(0,s.jE)();return(0,i.n)({mutationFn:t=>{var a;
1return o.deleteCategory((null==e||null==(a=e.user)?void 0:a.token)||"",t)},onSuccess:()=>{t.invalidateQueries({queryKey:["categories"]})}})},b=e=>{var t;let{data:a}=(0,l.useSession)();return(0,r.I)({queryKey:["telemetry",e],queryFn:()=>{var t;return o.getTelemetry((null==a||null==(t=a.user)?void 0:t.token)||"",e||{})},enabled:!!(null==a||null==(t=a.user)?void 0:t.token)})},y=e=>{var t;let{data:a}=(0,l.useSession)();return(0,r.I)({queryKey:["visitors",e],queryFn:()=>{var t;return o.getVisitors((null==a||null==(t=a.user)?void 0:t.token)||"",e||{})},enabled:!!(null==a||null==(t=a.user)?void 0:t.token)})},f=(e,t,a,s)=>(0,r.I)({queryKey:["blogs-public",e,t||null,a||null,s||null],queryFn:()=>o.getAllBlogsPublic(e,t,a,s)}),w=e=>(0,r.I)({queryKey:["blog-public",e],queryFn:()=>o.getBlogBySlugPublic(e),enabled:!!e}),j=()=>{let{data:e}=(0,l.useSession)(),t=(0,s.jE)();return(0,i.n)({mutationFn:t=>{var a;return o.setBlogHighlight((null==e||null==(a=e.user)?void 0:a.token)||"",t)},onSuccess:()=>{t.invalidateQueries({queryKey:["blogs"]}),t.invalidateQueries({queryKey:["news"]}),t.invalidateQueries({queryKey:["highlighted-blogs"]}),t.invalidateQueries({queryKey:["highlighted-news"]})}})},N=e=>(0,r.I)({queryKey:["highlighted-blogs",e],queryFn:()=>o.getHighlightedBlogs(e)}),k=()=>(0,r.I)({queryKey:["public-category"],queryFn:()=>o.getPublicCategory()}),C=e=>(0,r.I)({queryKey:["blog-related",e],queryFn:()=>o.getBlogRelatedBySlug(e),enabled:!!e}),S=()=>(0,i.n)({mutationFn:e=>o.postMetrics(e.id_blog_post,e.type,e.origin)}),E=()=>{var e;let{data:t}=(0,l.useSession)();return(0,r.I)({queryKey:["blog-tags"],queryFn:()=>{var e;return o.getBlogTags((null==t||null==(e=t.user)?void 0:e.token)||"")},enabled:!!(null==t||null==(e=t.user)?void 0:e.token)})}},76199:(e,t,a)=>{"use strict";a.d(t,{E:()=>o});var r=a(74863);a(99335);var s=a(23879),l=a(9573);let n=(0,s.F)("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 o(e){let{className:t,variant:a,...s}=e;return(0,r.jsx)("div",{className:(0,l.cn)(n({variant:a}),t),...s})}},91463:(e,t,a)=>{Promise.resolve().then(a.bind(a,52729))}},e=>{e.O(0,[1235,2311,7681,825,4420,8396,2616,6218,3541,7358],()=>e(e.s=91463)),_N_E=e.O()}]);

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.