1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1226],{74349:(e,t,a)=>{Promise.resolve().then(a.bind(a,74073)),Promise.resolve().then(a.bind(a,81997)),Promise.resolve().then(a.bind(a,35906)),Promise.resolve().then(a.bind(a,99435)),Promise.resolve().then(a.bind(a,12009)),Promise.resolve().then(a.bind(a,47583)),Promise.resolve().then(a.bind(a,25848)),Promise.resolve().then(a.bind(a,67885)),Promise.resolve().then(a.bind(a,57695)),Promise.resolve().then(a.bind(a,93233)),Promise.resolve().then(a.bind(a,33097)),Promise.resolve().then(a.bind(a,97969)),Promise.resolve().then(a.bind(a,76273)),Promise.resolve().then(a.bind(a,30814)),Promise.resolve().then(a.bind(a,84750)),Promise.resolve().then(a.bind(a,91423)),Promise.resolve().then(a.bind(a,6336)),Promise.resolve().then(a.bind(a,49463)),Promise.resolve().then(a.bind(a,93876)),Promise.resolve().then(a.bind(a,32140)),Promise.resolve().then(a.bind(a,48789)),Promise.resolve().then(a.bind(a,37278)),Promise.resolve().then(a.bind(a,36772)),Promise.resolve().then(a.bind(a,51872))},84750:(e,t,a)=>{"use strict";a.d(t,{default:()=>u});var l=a(95155),s=a(93233),i=a(46618),n=a(66205),r=a(87794),o=a(12613),d=a(562),c=a(87081);let u=function(){var e,t,a,u,m,h,x,v,p,g,f,b,j,y,w,N,k,C,A,P,z,E,T,M;let{data:S,isPending:F,isFetching:_,isError:B}=(0,s.useQuery)({queryKey:["contents","user",{type:"cta-two-block-homepage"}],queryFn:()=>n.A.getContents({page:1,limit:2,search:"",include:null,type:"cta-two-block-homepage",status:"active"}),staleTime:72e5,gcTime:72e5});return B||(null==S?void 0:null===(t=S.data)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.length)===0?(0,l.jsx)(l.Fragment,{}):(0,l.jsx)(r.A,{children:(0,l.jsx)("div",{className:"grid w-full grid-cols-1 gap-6 sm:grid-cols-2 md:gap-8",children:_||F?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"relative h-full min-h-72 rounded-xl bg-zinc-200/70 p-6",children:(0,l.jsxs)("div",{className:"relative z-10 flex size-full flex-col",children:[(0,l.jsx)(c.E,{className:"mb-3 h-6 w-4/5 sm:h-8 sm:w-3/4"}),(0,l.jsxs)("div",{className:"mt-auto flex flex-col items-end justify-between gap-4 lg:flex-row",children:[(0,l.jsxs)("div",{className:"w-full flex-1 space-y-2",children:[(0,l.jsx)(c.E,{className:"h-4 w-full"}),(0,l.jsx)(c.E,{className:"h-4 w-11/12"}),(0,l.jsx)(c.E,{className:"h-4 w-4/5"})]}),(0,l.jsx)("div",{className:"shrink-0",children:(0,l.jsx)(c.E,{className:"h-10 w-36 rounded-full"})})]})]})}),(0,l.jsx)("div",{className:"relative h-full min-h-72 rounded-xl bg-zinc-200/70 p-6",children:(0,l.jsxs)("div",{className:"relative z-10 flex size-full flex-col",children:[(0,l.jsx)(c.E,{className:"mb-3 h-8 w-3/5 sm:h-10 sm:w-4/5"}),(0,l.jsxs)("div",{className:"mt-auto flex flex-col items-end justify-between gap-4 lg:flex-row",children:[(0,l.jsxs)("div",{className:"w-full flex-1 space-y-2",children:[(0,l.jsx)(c.E,{className:"h-4 w-full"}),(0,l.jsx)(c.E,{className:"h-4 w-11/12"}),(0,l.jsx)(c.E,{className:"h-4 w-4/5"})]}),(0,l.jsx)("div",{className:"shrink-0",children:(0,l.jsx)(c.E,{className:"h-10 w-40 rounded-full"})})]})]})})]}):(null==S?void 0:null===(u=S.data)||void 0===u?void 0:null===(a=u.data)||void 0===a?void 0:a.length)===2&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"relative h-full min-h-80 rounded-xl bg-gray-200 bg-cover bg-center bg-no-repeat p-6",style:{backgroundImage:"url('".concat((0,i.tG)(null!==(w=null===(m=S.data.data[0])||void 0===m?void 0:m.thumbnail)&&void 0!==w?w:""),"')")},children:[(0,l.jsxs)("div",{className:"relative z-10 flex size-full flex-col",children:[(0,l.jsx)("h3",{className:"mb-3 text-pretty text-lg font-semibold text-zinc-50 text-shadow-sm 2xs:mb-5 2xs:text-2xl",children:null!==(N=null===(h=S.data.data[0])||void 0===h?void 0:h.title)&&void 0!==N?N:""}),(0,l.jsxs)("div",{className:"mt-auto flex flex-col items-end justify-between gap-4 lg:flex-row",children:[(0,l.jsx)("p",{className:"text-zinc-200 text-shadow-sm",children:null!==(k=null===(x=S.data.data[0])||void 0===x?void 0:x.text)&&void 0!==k?k:""}),(0,l.jsx)("div",{className:"",children:(0,l.jsx)(d.$,{effect:"gooeyLeft",className:"!rounded-full",variant:"main",asChild:!0,children:(0,l.jsx)(o.A,{href:"".concat(null!==(C=null===(v=S.data.data[0])||void 0===v?void 0:v.link)&&void 0!==C?C:"#"),children:null!==(A=null===(p=S.data.data[0])||void 0===p?void 0:p.headline)&&void 0!==A?A:""})})})]})]}),(0,l.jsx)("div",{className:"absolute inset-0 rounded-xl bg-gradient-to-t from-black via-black/50 to-transparent 3xs:from-black/90 3xs:via-black/10"}),(0,l.jsx)("div",{className:"absolute inset-0 rounded-xl bg-gradient-to-br from-black/90 via-black/30 to-transparent"})]}),(0,l.jsxs)("div",{className:"relative h-full min-h-80 rounded-xl bg-gray-200 bg-cover bg-center bg-no-repeat p-6",style:{backgroundImage:"url('".concat((0,i.tG)(null!==(P=null===(g=S.data.data[1])||void 0===g?void 0:g.thumbnail)&&void 0!==P?P:""),"')")},children:[(0,l.jsxs)("div",{className:"relative z-10 flex size-full flex-col",children:[(0,l.jsx)("h2",{className:"mb-3 text-pretty pr-8 text-2xl font-semibold text-zinc-50 text-shadow-sm 2xs:mb-5 2xs:text-3xl",children:null!==(z=null===(f=S.data.data[1])||void 0===f?void 0:f.title)&&void 0!==z?z:""}),(0,l.jsxs)("div",{className:"mt-auto flex flex-col items-end justify-between gap-4 lg:flex-row",children:[(0,l.jsx)("p",{className:"text-zinc-200 text-shadow-sm",children:null!==(E=null===(b=S.data.data[1])||void 0===b?void 0:b.text)&&void 0!==E?E:""}),(0,l.jsx)("div",{className:"",children:(0,l.jsx)(d.$,{className:"!rounded-full",asChild:!0,variant:"secondary",effect:"gooeyLeft",children:(0,l.jsx)(o.A,{href:"".concat(null!==(T=null===(j=S.data.data[1])||void 0===j?void 0:j.link)&&void 0!==T?T:"#"),children:null!==(M=null===(y=S.data.data[1])||void 0===y?void 0:y.headline)&&void 0!==M?M:""})})})]})]}),(0,l.jsx)("div",{className:"absolute inset-0 rounded-xl bg-gradient-to-t from-black via-black/50 to-transparent 3xs:from-black/90 3xs:via-black/10"}),(0,l.jsx)("div",{className:"absolute inset-0 rounded-xl bg-gradient-to-br from-black/90 via-black/30 to-transparent"})]})]})})})}},91423:(e,t,a)=>{"use strict";a.d(t,{default:()=>v});var l=a(95155),s=a(93233),i=a(31497),n=a(48173),r=a.n(n),o=a(80722),d=a(87081),c=a(91660),u=a(25568),m=a(87794),h=a(73312),x=a(84478);let v=function(){var e,t,a,n,v,p,g,f,b,j;let y=(0,i.c)("Home"),{data:w,isPending:N,isFetching:k}=(0,s.useQuery)({queryKey:["blogCategories","user",{limit:5}],queryFn:()=>o.A.getBlogCategories({page:1,limit:5,search:"",include:null}),staleTime:18e5,gcTime:36e5}),{data:C,isPending:A,isFetching:P,isError:z}=(0,s.useQuery)({queryKey:["blogs","user",{limit:8}],queryFn:()=>o.A.getBlogs({page:1,limit:8,search:"",include:null}),staleTime:3e5,gcTime:6e5});return z?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)(m.A,{children:[(0,l.jsxs)("div",{className:"mb-4 flex flex-col 3xs:mb-6",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between ".concat((null==w?void 0:w.data)&&(null==w?void 0:null===(e=w.data)||void 0===e?void 0:e.length)!==0?"mb
1-0 md:mb-4":"mb-0"),children:[(0,l.jsx)("h3",{className:"text-lg font-bold 3xs:text-xl",children:y.rich("latestNews",{highlight:e=>(0,l.jsx)("span",{className:"text-blue-500",children:e})})}),(0,l.jsx)(h.$,{asChild:!0,variant:"link",className:"p-0 text-xs font-semibold text-blue-500 transition-all duration-200 ease-in-out hover:text-blue-500 sm:text-sm ".concat((null==w?void 0:w.data)&&(null==w?void 0:null===(t=w.data)||void 0===t?void 0:t.length)!==0?"flex md:hidden":"flex"),children:(0,l.jsx)(r(),{href:"/blog",children:y("more")})})]}),k||N?(0,l.jsx)("div",{className:"hidden items-center justify-between md:flex",children:(0,l.jsx)("div",{className:"flex items-center gap-x-3",children:Array.from({length:4}).map((e,t)=>(0,l.jsx)(d.E,{className:"h-9 w-32 rounded-full"},t))})}):(null==w?void 0:null===(a=w.data)||void 0===a?void 0:a.data)&&(null==w?void 0:null===(v=w.data)||void 0===v?void 0:null===(n=v.data)||void 0===n?void 0:n.length)>0&&(0,l.jsxs)("div",{className:"hidden items-center justify-between md:flex",children:[(0,l.jsx)("div",{className:"flex items-center gap-x-3",children:null===(p=w.data.data)||void 0===p?void 0:p.map(e=>(0,l.jsx)(h.$,{asChild:!0,variant:"outline",children:(0,l.jsx)(r(),{href:"/blog-kategori/".concat(e.slug),children:e.name})},e.id))}),(0,l.jsx)(h.$,{asChild:!0,variant:"link",className:"p-0 font-semibold text-blue-500 transition-all duration-200 ease-in-out hover:text-blue-600",children:(0,l.jsx)(r(),{href:"/blog",children:y("more")})})]})]}),(0,l.jsx)("div",{className:"",children:(0,l.jsx)(x.FN,{className:"w-full",opts:{dragFree:!0,align:"start"},children:(0,l.jsx)(x.Wk,{className:"-ml-3.5 3xs:-ml-4",children:P||A?Array.from({length:10}).map((e,t)=>(0,l.jsx)(x.A7,{className:"w-56 basis-auto pl-3.5 2xs:w-60 2xs:pl-4 md:basis-1/3 lg:basis-1/4",children:(0,l.jsx)(c.A,{})},t)):(null==C?void 0:null===(g=C.data)||void 0===g?void 0:g.data)&&(null==C?void 0:null===(b=C.data)||void 0===b?void 0:null===(f=b.data)||void 0===f?void 0:f.length)>0&&(null===(j=C.data.data)||void 0===j?void 0:j.map(e=>{var t,a,s,i;return(0,l.jsx)(x.A7,{className:"w-56 basis-auto pl-3.5 2xs:w-60 2xs:pl-4 md:basis-1/3 lg:basis-1/4",children:(0,l.jsx)(u.A,{category:null!==(s=null===(t=e.blogCategory)||void 0===t?void 0:t.name)&&void 0!==s?s:"",date:null==e?void 0:e.createdAt,imageUrl:null==e?void 0:e.thumbnail,headline:null==e?void 0:e.headline,title:null==e?void 0:e.title,slug:null==e?void 0:e.slug,author:null!==(i=null==e?void 0:null===(a=e.user)||void 0===a?void 0:a.name)&&void 0!==i?i:""})},null==e?void 0:e.id)}))})})})]})}},6336:(e,t,a)=>{"use strict";a.d(t,{default:()=>h});var l=a(95155),s=a(93233),i=a(31497),n=a(5565),r=a(12115),o=a(66205),d=a(46618),c=a(12613),u=a(87081),m=a(53601);let h=function(){var e,t,a,h;let x=(0,i.c)("Home"),[v,p]=(0,r.useState)(!0),{data:g,isPending:f,isFetching:b,isError:j}=(0,s.useQuery)({queryKey:["mediaPartners","user"],queryFn:()=>o.A.getMediaPartners({page:1,limit:1e3,search:"",include:null}),staleTime:72e5,gcTime:72e5}),y=(0,r.useMemo)(()=>{var e,t,a;return g?v?null==g?void 0:null===(t=g.data)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.slice(0,18):null==g?void 0:null===(a=g.data)||void 0===a?void 0:a.data:[]},[g,v]);return j?(0,l.jsx)(l.Fragment,{}):(0,l.jsx)("section",{className:"bg-gray-100 py-8 3xs:py-14",children:(0,l.jsxs)("div",{className:"container mx-auto max-w-8xl px-4 sm:px-8",children:[(0,l.jsx)("div",{className:"mb-4 flex justify-center 3xs:mb-9",children:(0,l.jsx)("h3",{className:"mx-auto max-w-2xl px-6 text-center text-lg font-bold 3xs:text-3xl",children:x.rich("trustedBy",{highlight:e=>(0,l.jsx)("span",{className:"text-blue-500",children:e})})})}),(0,l.jsx)("div",{className:"flex flex-wrap justify-center gap-2.5 3xs:gap-4",children:f||b?Array.from({length:18}).map((e,t)=>(0,l.jsx)("div",{className:"aspect-square w-24 rounded-md bg-gray-200/70",children:(0,l.jsx)("div",{className:"flex size-full items-center justify-center p-2 2xs:p-4",children:(0,l.jsx)(u.E,{className:"h-16 w-full rounded-full"})})},t)):(0,l.jsxs)(l.Fragment,{children:[null==y?void 0:y.map((e,t)=>{var a;return(0,l.jsx)("div",{className:"w-full max-w-[96px] flex-none transition-transform duration-200 ease-in-out 3xs:w-[calc(20%-1rem)] lg:w-[calc(10%-1rem)]",children:(0,l.jsxs)(m.m_,{children:[(0,l.jsx)(m.k$,{asChild:!0,children:(0,l.jsx)(c.A,{href:e.link,target:"_blank",rel:"noopener noreferrer",className:"flex h-16 w-full cursor-pointer items-center justify-center rounded-md bg-white p-2 transition-all duration-200 ease-in-out hover:shadow 2xs:h-24 2xs:p-4",children:(0,l.jsx)(n.default,{className:"h-full w-full object-contain object-center",width:64,height:64,src:(0,d.tG)(e.logo),alt:(0,d.Gd)(null!==(a=null==e?void 0:e.name)&&void 0!==a?a:"","Media Partner"),quality:50})})}),(0,l.jsx)(m.ZI,{children:(0,l.jsx)("p",{className:"text-xs 2xs:text-sm",children:e.name})})]})},"".concat(e.id,"-").concat(t))}),g&&(null==g?void 0:null===(t=g.data)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.length)>18&&(0,l.jsx)("div",{className:"w-full max-w-[96px] flex-none 3xs:w-[calc(20%-1rem)] lg:w-[calc(10%-1rem)]",children:(0,l.jsx)("button",{onClick:()=>{p(e=>!e)},className:"flex h-16 w-full cursor-pointer items-center justify-center rounded-md bg-white p-3 transition-all duration-200 ease-in-out hover:shadow 2xs:h-24 2xs:p-4",children:(0,l.jsx)("p",{className:"text-center text-xs font-medium 2xs:text-sm",children:v?"+".concat((null==g?void 0:null===(h=g.data)||void 0===h?void 0:null===(a=h.data)||void 0===a?void 0:a.length)-18," Instansi Lainnya"):(0,l.jsx)("span",{className:"text-muted-secondary",children:"Tampilkan Lebih Sedikit"})})})})]})})]})})}},49463:(e,t,a)=>{"use strict";a.d(t,{default:()=>p});var l=a(95155),s=a(93233),i=a(22750),n=a(5565),r=a(12115),o=a(21567),d=a(66205),c=a(46618),u=a(87794),m=a(12613),h=a(22130),x=a(84478),v=a(87081);let p=function(){var e,t,a,p;
1let g=(0,r.useRef)((0,i.A)({delay:4e3,stopOnInteraction:!0})),[f,b]=(0,r.useState)(null),[j,y]=(0,r.useState)(0),[w,N]=(0,r.useState)(0),[k,C]=(0,r.useState)(!1),{data:A,isPending:P,isFetching:z,isError:E}=(0,s.useQuery)({queryKey:["contents","user",{type:"carousel-homepage"}],queryFn:()=>d.A.getContents({page:1,limit:1e3,search:"",include:null,type:"carousel-homepage",status:"active"}),staleTime:72e5,gcTime:72e5});(0,r.useEffect)(()=>{if(!f)return;N(f.scrollSnapList().length),y(f.selectedScrollSnap()),f.on("select",()=>{y(f.selectedScrollSnap())});let e=g.current;if(k)e.stop();else{var t,a;(null==A?void 0:null===(a=A.data)||void 0===a?void 0:null===(t=a.data)||void 0===t?void 0:t.length)<=1?e.stop():e.play()}},[f,k,A]);let T=e=>{null==f||f.scrollTo(e)};return E||(null==A?void 0:null===(t=A.data)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.length)===0?(0,l.jsx)(l.Fragment,{}):(0,l.jsx)(u.A,{size:"xs",children:z||P?(0,l.jsx)(v.E,{className:"aspect-banner h-auto w-full rounded-lg"}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(x.FN,{setApi:b,className:"w-full",plugins:[g.current],onMouseEnter:()=>C(!0),onMouseLeave:()=>C(!1),opts:{align:"start",loop:!0},children:(0,l.jsxs)("div",{className:"group/carousel relative",children:[(0,l.jsx)(x.Wk,{children:null==A?void 0:null===(p=A.data)||void 0===p?void 0:null===(a=p.data)||void 0===a?void 0:a.map(e=>{var t,a,s;return(0,l.jsx)(x.A7,{children:(0,l.jsx)(h.Zp,{className:"border-none",children:(0,l.jsx)(h.Wu,{className:"flex aspect-banner size-full items-center justify-center overflow-hidden rounded-lg p-0 3xs:rounded-xl",children:(0,l.jsx)(m.A,{href:"".concat(null!==(t=null==e?void 0:e.link)&&void 0!==t?t:"#"),className:"block size-full",children:(0,l.jsx)(n.default,{src:(0,c.tG)(null!==(a=null==e?void 0:e.thumbnail)&&void 0!==a?a:""),alt:(0,c.Gd)(null!==(s=null==e?void 0:e.title)&&void 0!==s?s:"","Banner"),width:1300,height:325,quality:100,priority:!0,className:"size-full object-cover object-center"})})})})},e.id)})}),(0,l.jsxs)("div",{className:"absolute -z-10 size-0 opacity-0 group-hover/carousel:static group-hover/carousel:z-0 group-hover/carousel:size-auto group-hover/carousel:opacity-100",children:[(0,l.jsx)(x.Q8,{className:"-left-3 bg-white transition-transform duration-200 ease-in-out hover:scale-110 hover:bg-white 3xs:-left-5"}),(0,l.jsx)(x.Oj,{className:"-right-3 bg-white transition-transform duration-200 ease-in-out hover:scale-110 hover:bg-white 3xs:-right-5"})]})]})}),(0,l.jsx)("div",{className:"mt-4 flex justify-center space-x-2",children:Array.from({length:w}).map((e,t)=>(0,l.jsx)("button",{className:(0,o.cn)("h-2 w-2 rounded-full transition-all duration-300",{"h-2 w-6 rounded-full bg-black":j===t,"bg-gray-400":j!==t}),onClick:()=>T(t)},t))})]})})}},93876:(e,t,a)=>{"use strict";a.d(t,{default:()=>u});
1var l=a(95155),s=a(12115),i=a(76046),n=a(31497),r=a(73312),o=a(22130);function d(e){let{open:t,onOpenChange:a}=e,d=(0,n.c)("OrderGuide"),c=(0,i.useRouter)(),[u,m]=s.useState(0),[h,x]=s.useState(null);s.useEffect(()=>{if(!t)return;let e=()=>{let e=document.getElementById("searchNavigation");if(!e){x(null);return}let t=e.getBoundingClientRect();x({x:t.left,y:t.top,w:t.width,h:t.height})};return e(),window.addEventListener("resize",e),window.addEventListener("scroll",e,{passive:!0}),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e)}},[t,u]);let v=[{title:"Selamat datang!",content:(0,l.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,l.jsx)("p",{children:d("subtitle")}),(0,l.jsxs)("ul",{className:"list-disc pl-5",children:[(0,l.jsx)("li",{children:d("step1Title")}),(0,l.jsx)("li",{children:d("step2Title")}),(0,l.jsx)("li",{children:d("step3Title")})]})]})},{title:"1. Jelajahi Katalog",content:(0,l.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,l.jsx)("p",{children:d("step1Desc")}),(0,l.jsx)("p",{children:"Gunakan filter/pencarian untuk menemukan produk yang Anda butuhkan."})]}),action:(0,l.jsx)(r.$,{size:"sm",variant:"secondary",onClick:()=>{a(!1),c.push("/produk")},children:"Buka Katalog"})},{title:"2. Detail & Tambah ke Keranjang",content:(0,l.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,l.jsx)("p",{children:"Gunakan kolom pencarian untuk menemukan produk, lalu buka detailnya."}),(0,l.jsx)("p",{children:"Pilih varian/ukuran (jika ada), atur jumlah, dan klik âTambah ke Keranjangâ."})]})},{title:"3. Minta Penawaran di Keranjang",content:(0,l.jsxs)("div",{className:"space-y-2 text-sm text-muted-foreground",children:[(0,l.jsx)("p",{children:d("step3Desc")}),(0,l.jsx)("p",{children:"Klik tombol âMinta Penawaranâ di jendela keranjang untuk melanjutkan proses."})]}),action:(0,l.jsx)(r.$,{size:"sm",variant:"secondary",onClick:()=>{a(!1),c.push("/keranjang")},children:"Buka Keranjang"})}];if(s.useEffect(()=>(t?document.body.classList.add("overflow-hidden"):document.body.classList.remove("overflow-hidden"),()=>document.body.classList.remove("overflow-hidden")),[t]),s.useEffect(()=>{let e=e=>{"Escape"===e.key&&a(!1)};return t&&window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t,a]),!t)return null;let p=u===v.length-1;return(0,l.jsxs)("div",{className:"fixed inset-0 z-[100]",role:"dialog","aria-modal":"true","aria-label":d("ariaLabel"),children:[2===u&&h?(0,l.jsx)("div",{className:"absolute inset-0",onClick:()=>a(!1),children:(0,l.jsxs)("svg",{className:"h-full w-full",children:[(0,l.jsx)("defs",{children:(0,l.jsxs)("mask",{id:"guide-spotlight-mask",children:[(0,l.jsx)("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"white"}),(0,l.jsx)("rect",{x:h.x-12,y:h.y-12,width:h.w+24,height:h.h+24,rx:10,ry:10,fill:"black"})]})}),(0,l.jsx)("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"rgba(0,0,0,0.6)",mask:"url(#guide-spotlight-mask)"})]})}):(0,l.jsx)("div",{className:"absolute inset-0 bg-black/60",onClick:()=>a(!1)}),(0,l.jsx)("div",{className:"absolute inset-0 flex items-center justify-center p-4",children:(0,l.jsx)(o.Zp,{className:"w-full max-w-lg shadow-lg",children:(0,l.jsxs)(o.Wu,{className:"p-6",children:[(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsx)("h3",{className:"text-lg font-semibold",children:v[u].title}),(0,l.jsx)("div",{className:"mt-2",children:v[u].content})]}),(0,l.jsx)("div",{className:"mb-4 flex items-center gap-2",children:v.map((e,t)=>(0,l.jsx)("span",{className:"h-2 w-2 rounded-full transition-colors "+(t===u?"bg-primary":"bg-muted-foreground/30"),"aria-label":"Langkah ".concat(t+1)},t))}),v[u].action&&(0,l.jsx)("div",{className:"mb-4",children:v[u].action}),(0,l.jsxs)("div",{className:"flex items-center justify-between",children:[(0,l.jsx)(r.$,{variant:"ghost",size:"sm",onClick:()=>a(!1),children:"Lewati"}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(r.$,{variant:"outline",size:"sm",disabled:0===u,onClick:()=>m(e=>Math.max(0,e-1)),children:"Sebelumnya"}),p?(0,l.jsx)(r.$,{size:"sm",onClick:()=>a(!1),children:"Selesai"}):(0,l.jsx)(r.$,{size:"sm",onClick:()=>m(e=>Math.min(v.length-1,e+1)),children:"Lanjut"})]})]})]})})})]})}let c="mii_order_tutorial_shown";function u(){let e="1"===(0,i.useSearchParams)().get("showTutorial"),[t,a]=s.useState(!1),n=s.useRef(!1);return s.useEffect(()=>{n.current=t},[t]),s.useEffect(()=>{if(e){a(!0);return}"1"!==localStorage.getItem(c)&&a(!0)},[e]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d,{open:t,onOpenChange:e=>{if(n.current&&!e)try{localStorage.setItem(c,"1")}catch(e){}a(e)}}),(0,l.jsx)("div",{className:"right-25 fixed bottom-12 z-[90]",children:(0,l.jsx)(r.$,{size:"sm",onClick:()=>a(!0),children:"Butuh bantuan?"})})]})}},32140:(e,t,a)=>{"use strict";a.d(t,{default:()=>p});var l=a(95155),s=a(12115),i=a(93233),n=a(31497),r=a(48173),o=a.n(r),d=a(92103),c=a(46618),u=a(22455),m=a(92985),h=a(87794),x=a(73312),v=a(84478);let p=function(){let e=(0,n.c)("Home"),{data:t,isPending:a,isFetching:r,isError:p}=(0,i.useQuery)({queryKey:["products","user",{limit:8,sort:"createdAt:desc"}
1],queryFn:()=>d.A.getProducts({page:1,limit:8,search:"",include:"category,product_types,images",status:"active",sort:"createdAt:desc"}),staleTime:12e4,gcTime:18e4}),g=(0,s.useMemo)(()=>{var e,a;let l=null!==(a=null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.data)&&void 0!==a?a:[];if(!l.length)return[];let s=[...l];for(let e=s.length-1;e>0;e--){let t=Math.floor(Math.random()*(e+1));[s[e],s[t]]=[s[t],s[e]]}return s},[t]);return p?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)(h.A,{size:"default",children:[(0,l.jsxs)("div",{className:"mb-4 flex items-center justify-between 3xs:mb-5",children:[(0,l.jsx)("h3",{className:"text-lg font-bold 3xs:text-xl",children:e.rich("latestProducts",{highlight:e=>(0,l.jsx)("span",{className:"text-blue-500",children:e})})}),(0,l.jsx)(x.$,{asChild:!0,variant:"link",className:"p-0 font-semibold text-blue-500 transition-all duration-200 ease-in-out hover:text-blue-600",children:(0,l.jsx)(o(),{href:"/produk",children:e("seeAll")})})]}),(0,l.jsx)("div",{className:"",children:(0,l.jsx)(v.FN,{className:"w-full",opts:{align:"start",slidesToScroll:1},children:(0,l.jsx)(v.Wk,{className:"-ml-0.5 2xs:-ml-1",children:r||a?Array.from({length:8}).map((e,t)=>(0,l.jsx)(v.A7,{className:"flex basis-1/2 flex-col pl-1 2xs:basis-1/3 2md:basis-1/5 sm:!basis-1/4 lg:!basis-1/6",children:(0,l.jsx)("div",{className:"flex-grow p-1 2xs:p-1.5",children:(0,l.jsx)(u.A,{})})},t)):g&&g.length>0&&g.map(e=>{var t,a,s;return(0,l.jsx)(v.A7,{className:"flex basis-1/2 flex-col pl-1 2xs:basis-1/3 2md:basis-1/5 sm:!basis-1/4 lg:!basis-1/6",children:(0,l.jsx)("div",{className:"flex-grow p-1 2xs:p-1.5",children:(0,l.jsx)(m.A,{slug:e.slug,category:null!==(s=null===(t=e.category)||void 0===t?void 0:t.name)&&void 0!==s?s:"",title:e.name,price:e.min_price,lowestTypeId:null===(a=(0,c._F)(null==e?void 0:e.product_types))||void 0===a?void 0:a.id,imageUrl:(null==e?void 0:e.images)?(0,c.lQ)(e.images):"",discount:{percent:0,amount:0},status:e.status,compact:!1,stock:(0,c.WP)(null==e?void 0:e.product_types)})})},e.id)})})})})]})}},48789:(e,t,a)=>{"use strict";a.d(t,{default:()=>v});var l=a(95155),s=a(93233),i=a(31497),n=a(60719),r=a(5565),o=a(48173),d=a.n(o),c=a(73230),u=a(46618),m=a(87794),h=a(73312),x=a(87081);let v=function(){var e,t,a;let o=(0,i.c)("Home"),{data:v,isPending:p,isFetching:g,isError:f}=(0,s.useQuery)({queryKey:["productCategories","user",{limit:12}],queryFn:()=>c.A.getCategories({page:1,limit:12,search:"",include:null}),staleTime:18e5,gcTime:36e5});return f?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)(m.A,{size:"sm",children:[(0,l.jsxs)("div",{className:"mb-4 flex items-center justify-between 3xs:mb-5",children:[(0,l.jsx)("h3",{className:"text-lg font-bold 3xs:text-xl",children:o.rich("topCategories",{highlight:e=>(0,l.jsx)("span",{className:"text-blue-500",children:e})})}),(0,l.jsx)(h.$,{asChild:!0,variant:"link",className:"p-0 font-semibold text-blue-500 transition-all duration-200 ease-in-out hover:text-blue-600",children:(0,l.jsx)(d(),{href:"/kategori",className:"!gap-1",children:"Lihat Kategori"})})]}),(0,l.jsx)("div",{className:"scroll-hidden flex w-full flex-nowrap gap-2.5 overflow-x-auto 3xs:gap-3.5 md:grid md:grid-cols-6 md:flex-wrap md:gap-4 md:overflow-x-visible lg:grid-cols-8 lg:gap-5",children:g||p?Array.from({length:8}).map((e,t)=>(0,l.jsx)("div",{className:"md:col-span-1",children:(0,l.jsxs)("div",{className:"h-auto w-20 md:h-full md:w-full",children:[(0,l.jsx)(x.E,{className:"mb-3 aspect-square rounded-2xl"}),(0,l.jsx)(x.E,{className:"h-4 w-full rounded-full 2xs:h-4.5"})]})},t)):(null==v?void 0:null===(e=v.data)||void 0===e?void 0:e.data)&&(null==v?void 0:null===(a=v.data)||void 0===a?void 0:null===(t=a.data)||void 0===t?void 0:t.length)>0&&v.data.data.map(e=>{var t;return(0,l.jsx)("div",{className:"md:col-span-1",children:(0,l.jsxs)(d(),{className:"group/card-category block h-auto w-20 md:h-full md:w-full",href:"/kategori/".concat(e.slug),children:[(0,l.jsx)("div",{className:"mb-3 flex aspect-square items-center justify-center rounded-lg bg-blue-500/10 p-3 transition-all duration-200 ease-in-out group-hover/card-category:bg-blue-500/20 md:rounded-2xl md:p-4",children:(null==e?void 0:e.image)?(0,l.jsx)(r.default,{src:(0,u.tG)(null==e?void 0:e.image),alt:(0,u.Gd)(null!==(t=null==e?void 0:e.name)&&void 0!==t?t:"","Kategori"),width:100,height:100,qual
1ity:50,className:"block h-auto w-full object-contain object-center"}):(0,l.jsx)("div",{className:"",children:(0,l.jsx)(n.A,{className:"size-10 stroke-zinc-700 md:size-16"})})}),(0,l.jsx)("p",{className:"line-clamp-2 text-center text-xs font-semibold md:text-sm",children:e.name})]})},e.id)})})]})}},37278:(e,t,a)=>{"use strict";a.d(t,{default:()=>v});var l=a(95155),s=a(93233),i=a(5565),n=a(66205),r=a(46618),o=a(22455),d=a(92985),c=a(87794),u=a(12613),m=a(84478),h=a(87081),x=a(61734);let v=function(){var e,t,a,v,p,g,f,b,j,y,w,N,k,C,A,P,z,E,T,M;let{data:S,isPending:F,isFetching:_,isError:B}=(0,s.useQuery)({queryKey:["contents","user",{type:"showcase-featured-homepage"}],queryFn:()=>n.A.getContents({page:1,limit:1,search:"",include:"products",type:"showcase-featured-homepage",status:"active"}),staleTime:72e5,gcTime:72e5});return B||(null==S?void 0:null===(t=S.data)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.length)===0||(null==S?void 0:null===(g=S.data)||void 0===g?void 0:null===(p=g.data)||void 0===p?void 0:null===(v=p[0])||void 0===v?void 0:null===(a=v.products)||void 0===a?void 0:a.length)===0?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)(c.A,{size:"sm",children:[(0,l.jsx)("div",{className:"flex items-center justify-between 3xs:mb-5",children:_||F?(0,l.jsx)("div",{className:"hidden w-full 3xs:block",children:(0,l.jsx)(h.E,{className:"h-7 w-full max-w-64 rounded-md"})}):(0,l.jsx)("h3",{className:"hidden text-lg font-bold 3xs:block 3xs:text-xl",children:null!==(z=null===(f=S.data.data[0])||void 0===f?void 0:f.title)&&void 0!==z?z:""})}),(0,l.jsxs)("div",{className:"relative w-full rounded-xl bg-cover py-2 pl-2 pr-3 2xs:py-3 2xs:pl-3 2xs:pr-4 3xs:py-5 3xs:pl-5 3xs:pr-5 sm:py-6 sm:pl-6 sm:pr-6 ".concat(_||F?"border border-input bg-opacity-0":"bg-gradient-to-r from-[#4472C4] to-[#0B5394]"),children:[_||F?(0,l.jsx)("div",{className:"relative z-10 mb-2 mt-1 block pl-2 3xs:hidden",children:(0,l.jsx)(h.E,{className:"h-6 w-full max-w-64 rounded-md"})}):(0,l.jsx)("h3",{className:"relative z-10 mb-2 mt-1 block pl-2 text-base font-bold 3xs:hidden ".concat(_||F?"text-foreground":"text-zinc-100"),children:null!==(E=null===(b=S.data.data[0])||void 0===b?void 0:b.title)&&void 0!==E?E:""}),(0,l.jsxs)("div",{className:"relative z-10 flex w-full flex-nowrap items-center overflow-hidden",children:[_||F?(0,l.jsx)("div",{className:"hidden 3xs:block",children:(0,l.jsx)("div",{className:"pr-0 3xs:pr-4 sm:pr-5",children:(0,l.jsx)(h.E,{className:"h-64 w-45 rounded-lg"})})}):(null===(j=S.data.data[0])||void 0===j?void 0:j.thumbnail)&&(0,l.jsx)("div",{className:"hidden 3xs:block",children:(0,l.jsx)(u.A,{href:"".concat(null!==(T=null===(y=S.data.data[0])||void 0===y?void 0:y.link)&&void 0!==T?T:"#"),className:"flex h-full w-50 items-center justify-center pr-0 3xs:pr-4 sm:pr-5",children:(0,l.jsx)(i.default,{src:(0,r.tG)(null!==(M=null===(w=S.data.data[0])||void 0===w?void 0:w.thumbnail)&&void 0!==M?M:""),width:300,height:100,className:"object-contain object-center",alt:"Banner ".concat(null===(N=S.data.data[0])||void 0===N?void 0:N.title," Material Inovasi Industri")})})}),(0,l.jsx)("div",{className:"w-full",children:(0,l.jsx)(m.FN,{className:"w-full",opts:{align:"start",slidesToScroll:1,loop:!0},children:(0,l.jsx)(m.Wk,{className:"-ml-0.5 2xs:-ml-1",children:_||F?Array.from({length:8}).map((e,t)=>(0,l.jsx)(m.A7,{className:"flex flex-[0_0_164px] flex-col pl-1 3xs:flex-[0_0_176px] md:flex-[0_0_200px]",children:(0,l.jsx)("div",{className:"flex-grow p-1 2xs:p-1.5",children:(0,l.jsx)(o.A,{})})},t)):(null===(k=S.data.data[0])||void 0===k?void 0:k.products)&&(null===(A=S.data.data[0])||void 0===A?void 0:null===(C=A.products)||void 0===C?void 0:C.length)>0&&(null===(P=S.data.data[0])||void 0===P?void 0:P.products.map(e=>{var t,a,s,i,n,o,c,u,h,x,v,p,g,f,b;return(0,l.jsx)(m.A7,{className:"flex flex-[0_0_164px] flex-col pl-1 3xs:flex-[0_0_176px] md:flex-[0_0_200px]",children:(0,l.jsx)("div",{className:"flex-grow p-1 2xs:p-1.5",children:(0,l.jsx)(d.A,{slug:null!==(g=null==e?void 0:null===(t=e.product)||void 0===t?void 0:t.slug)&&void 0!==g?g:"",category:null!==(f=null==e?void 0:null===(s=e.product)||void 0===s?void 0:null===(a=s.category)||void 0===a?void 0:a.name)&&void 0!==f?f:"",title:null==e?void 0:null===(i=e.product)||void 0===i?void 0:i.name,price:null==e?void 0:null===(n=e.product)||void 0===n?void 0:n.min_price,lowestTypeId:null===(o=(0,r._F)(null==e?void 0:null===(c=e.product)||void 0===c?void 0:c.product_types))||void 0===o?void 0:o.id,imageUrl:(null==e?void 0:null===(u=e.product)||void 0===u?void 0:u.images)?(0,r.lQ)(null===(h=e.product)||void 0===h?void 0:h.images):"",discount:{percent:0,amount:0},status:null==e?void 0:null===(x=e.product)||void 0===x?void 0:x.status,compact:!0,special:!0,promo:null!==(b=null===(v=S.data.data[0])||void 0===v?void 0:v.headline)&&void 0!==b?b:"",stock:(0,r.WP)(null==e?void 0:null===(p=e.product)||void 0===p?void 0:p.product_types)})})},e.product_id)}))})})})]}),_||F?(0,l.jsx)(l.Fragment,{}):(0,l.jsx)(i.default,{src:x.A,fill:!0,className:"pointer-events-none absolute inset-0 h-full w-full rounded-xl object-cover object-center mix-blend-multiply",alt:"Backgroun
1d Featured Product Promo Material Inovasi Industri"})]})]})}},36772:(e,t,a)=>{"use strict";a.d(t,{default:()=>f});var l=a(95155),s=a(93233),i=a(31497),n=a(87220),r=a(38345),o=a(46618),d=a(87081);let c=function(){return(0,l.jsx)("div",{className:"aspect-testimonial-card h-full rounded-xl bg-gray-200/70 p-0",children:(0,l.jsx)("div",{className:"flex h-full flex-col p-4",children:(0,l.jsxs)("div",{className:"mt-auto",children:[(0,l.jsx)(d.E,{className:"mb-2 h-3.5 w-1/2 min-w-16 rounded-full 2xs:h-4"}),(0,l.jsx)(d.E,{className:"mb-1.5 h-3.5 w-full rounded-full 2xs:h-4"}),(0,l.jsx)(d.E,{className:"mt-2 h-3.5 w-3/4 min-w-24 rounded-full 2xs:h-4"})]})})})};var u=a(70865),m=a(57223),h=a(5565),x=a(22130);let v=function(e){let{imageUrl:t,full_name:a,address:s,rating:i}=e;return(0,l.jsx)(x.Zp,{className:"overflow-hidden shadow-none",children:(0,l.jsxs)(x.Wu,{className:"relative aspect-testimonial-card h-full p-0",children:[(0,l.jsx)(h.default,{src:t,width:220,height:352,alt:"Testimoni ".concat(a," - ").concat(s," Material Inovasi Industri"),className:"h-full w-full object-cover object-center"}),(0,l.jsx)("div",{className:"absolute inset-0 h-full w-full",children:(0,l.jsx)("div",{className:"flex h-full flex-col bg-gradient-to-t from-black/90 via-black/10 to-transparent p-4",children:(0,l.jsxs)("div",{className:"mt-auto",children:[(0,l.jsxs)("p",{className:"mb-1 font-semibold text-zinc-50",children:[(0,l.jsx)(u.A,{className:"me-0.5 inline-block size-4 -translate-y-0.5 fill-yellow-500 stroke-yellow-500"}),i]}),(0,l.jsxs)("p",{className:"mb-1.5 line-clamp-2 font-semibold text-zinc-50",children:[a," "]}),(0,l.jsx)("div",{className:"flex",children:(0,l.jsx)("p",{className:"max-w-full truncate rounded-full border border-white py-1 pl-2 pr-2.5 text-xs text-zinc-50",children:(0,l.jsxs)("span",{className:"",children:[(0,l.jsx)(m.A,{className:"me-1 inline-block size-3 -translate-y-px"}),s]})})})]})})})]})})};var p=a(87794),g=a(84478);let f=function(){var e,t;let a=(0,i.c)("Home"),{data:d,isPending:u,isFetching:m,isError:h}=(0,s.useQuery)({queryKey:["feedbacks","user"],queryFn:()=>r.A.getFeedbacks({page:1,limit:12,search:"",include:null,status:"active"}),staleTime:3e5,gcTime:9e5});return h?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)(p.A,{size:"default",className:"pb-4 pt-3 3xs:pb-6 3xs:pt-4",children:[(0,l.jsx)("div",{className:"mb-4 flex justify-center 3xs:mb-10",children:(0,l.jsx)("h3",{className:"mx-auto max-w-2xl px-6 text-center text-lg font-bold 3xs:text-3xl",children:a.rich("testimonialsHeading",{highlight:e=>(0,l.jsx)("span",{className:"text-blue-500",children:e})})})}),(0,l.jsx)("div",{className:"",children:(0,l.jsx)(g.FN,{className:"w-full",plugins:[(0,n.A)({speed:1})],opts:{align:"start",slidesToScroll:1,loop:!0,watchDrag:!1},children:(0,l.jsx)(g.Wk,{className:"-ml-1 3xs:-ml-3",children:u||m?Array.from({length:8}).map((e,t)=>(0,l.jsx)(g.A7,{className:"basis-1/2 pl-1 2xs:basis-1/3 3xs:pl-3 md:basis-1/4 lg:basis-1/5",children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(c,{})})},t)):(null==d?void 0:null===(e=d.data)||void 0===e?void 0:e.data)&&(null===(t=d.data.data)||void 0===t?void 0:t.length)>0&&d.data.data.map(e=>(0,l.jsx)(g.A7,{className:"basis-1/2 pl-1 2xs:basis-1/3 3xs:pl-3 md:basis-1/4 lg:basis-1/5",children:(0,l.jsx)("div",{className:"p-1",children:(0,l.jsx)(v,{imageUrl:(0,o.tG)(e.image),full_name:e.full_name,address:e.address,rating:e.rating})})},e.id))})})})]})}},22455:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var l=a(95155),s=a(87081);let i=function(){return(0,l.jsx)("div",{className:"w-full",children:(0,l.jsxs)("div",{className:"flex flex-col space-y-3",children:[(0,l.jsx)(s.E,{className:"aspect-product-card w-full rounded-xl"}),(0,l.jsxs)("div",{className:"space-y-2",children:[(0,l.jsx)(s.E,{className:"h-3.5 w-full 2xs:h-4"}),(0,l.jsx)(s.E,{className:"h-3.5 w-3/4 2xs:h-4"}),(0,l.jsx)(s.E,{className:"h-3.5 w-1/2 2xs:h-4"})]})]})})}},73312:(e,t,a)=>{"use strict";a.d(t,{$:()=>d,r:()=>o});var l=a(95155),s=a(12317),i=a(31027),n=a(12115),r=a(21567);let o=(0,i.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",accent:"bg-gray-200/80 text-accent-foreground shadow-sm hover:bg-gray-200 dark:bg-secondary dark:hover:bg-zinc-700",ghost:"hover:bg-accent hover:text-accent-foreground","ghost-destructive":"text-destructive/90 hover:bg-destructive/10 hover:text-destructive",link:"text-primary underline-offset-4 hover:underline",main:"bg-main text-primary-foreground shadow hover:bg-main-hover dark:text-gray-200","main-outline":"border border-main bg-background shadow-sm hover:bg-main/15 hover:text-main text-main","outline-accent":"border border-gray-300 bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",success:"bg-emerald-500 text-emerald-50 shadow-sm hover:bg-emerald-600 dark:bg-emerald-600 dark:hover:bg-emerald-700",warning:"bg-amber-500 text-amber-50 shadow-sm hover:bg-amber-600 dar
1k:bg-amber-600 dark:hover:bg-yellow-700"},size:{default:"h-11 2xs:h-10 px-4 py-2 rounded-lg 2xs:rounded-md",xs:"h-7 rounded-md px-2.5",sm:"h-8 rounded-md px-3 text-xs",md:"h-8 rounded-lg 2xs:rounded-md px-3 text-sm",lg:"h-11 rounded-lg 2xs:rounded-md px-8",icon:"h-9 w-9 rounded-md","icon-md":"h-8 w-8 rounded-lg 2xs:rounded-md","icon-sm":"h-6 w-6 rounded-lg 2xs:rounded-md [&_svg]:size-3.5"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,t)=>{let{className:a,variant:i,size:n,asChild:d=!1,...c}=e,u=d?s.DX:"button";return(0,l.jsx)(u,{className:(0,r.cn)(o({variant:i,size:n,className:a})),ref:t,...c})});d.displayName="Button"},84478:(e,t,a)=>{"use strict";a.d(t,{A7:()=>x,FN:()=>m,Oj:()=>p,Q8:()=>v,Wk:()=>h});var l=a(95155),s=a(42576),i=a(93518),n=a(46967),r=a(12115),o=a(73312),d=a(21567);let c=r.createContext(null);function u(){let e=r.useContext(c);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}let m=r.forwardRef((e,t)=>{let{orientation:a="horizontal",opts:i,setApi:n,plugins:o,className:u,children:m,...h}=e,[x,v]=(0,s.A)({...i,axis:"horizontal"===a?"x":"y"},o),[p,g]=r.useState(!1),[f,b]=r.useState(!1),j=r.useCallback(e=>{e&&(g(e.canScrollPrev()),b(e.canScrollNext()))},[]),y=r.useCallback(()=>{null==v||v.scrollPrev()},[v]),w=r.useCallback(()=>{null==v||v.scrollNext()},[v]),N=r.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),y()):"ArrowRight"===e.key&&(e.preventDefault(),w())},[y,w]);return r.useEffect(()=>{v&&n&&n(v)},[v,n]),r.useEffect(()=>{if(v)return j(v),v.on("reInit",j),v.on("select",j),()=>{null==v||v.off("select",j)}},[v,j]),(0,l.jsx)(c.Provider,{value:{carouselRef:x,api:v,opts:i,orientation:a||((null==i?void 0:i.axis)==="y"?"vertical":"horizontal"),scrollPrev:y,scrollNext:w,canScrollPrev:p,canScrollNext:f},children:(0,l.jsx)("div",{ref:t,onKeyDownCapture:N,className:(0,d.cn)("relative",u),role:"region","aria-roledescription":"carousel",...h,children:m})})});m.displayName="Carousel";let h=r.forwardRef((e,t)=>{let{className:a,...s}=e,{carouselRef:i,orientation:n}=u();return(0,l.jsx)("div",{ref:i,className:"overflow-hidden",children:(0,l.jsx)("div",{ref:t,className:(0,d.cn)("flex","horizontal"===n?"-ml-4":"-mt-4 flex-col",a),...s})})});h.displayName="CarouselContent";let x=r.forwardRef((e,t)=>{let{className:a,...s}=e,{orientation:i}=u();return(0,l.jsx)("div",{ref:t,role:"group","aria-roledescription":"slide",className:(0,d.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===i?"pl-4":"pt-4",a),...s})});x.displayName="CarouselItem";let v=r.forwardRef((e,t)=>{let{className:a,variant:s="outline",size:n="icon",...r}=e,{orientation:c,scrollPrev:m,canScrollPrev:h}=u();return(0,l.jsxs)(o.$,{ref:t,variant:s,size:n,className:(0,d.cn)("group/prevCarousel absolute size-6 !rounded-full 2xs:size-10","horizontal"===c?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!h,onClick:m,...r,children:[(0,l.jsx)(i.A,{className:"!size-4 stroke-gray-600 group-hover/prevCarousel:stroke-gray-800 3xs:!size-6"}),(0,l.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});v.displayName="CarouselPrevious";let p=r.forwardRef((e,t)=>{let{className:a,variant:s="outline",size:i="icon",...r}=e,{orientation:c,scrollNext:m,canScrollNext:h}=u();return(0,l.jsxs)(o.$,{ref:t,variant:s,size:i,className:(0,d.cn)("group/nextCarousel absolute size-6 !rounded-full 2xs:size-10","horizontal"===c?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!h,onClick:m,...r,children:[(0,l.jsx)(n.A,{className:"!size-4 stroke-gray-600 group-hover/nextCarousel:stroke-gray-800 3xs:!size-6"}),(0,l.jsx)("span",{className:"sr-only",children:"Next slide"})]})});p.displayName="CarouselNext"},87081:(e,t,a)=>{"use strict";a.d(t,{E:()=>i});var l=a(95155),s=a(21567);function i(e){let{className:t,...a}=e;return(0,l.jsx)("div",{className:(0,s.cn)("animate-pulse rounded-md bg-primary/10",t),...a})}},53601:(e,t,a)=>{"use strict";a.d(t,{TooltipProvider:()=>r,ZI:()=>c,k$:()=>d,m_:()=>o});var l=a(95155),s=a(12115),i=a(19710),n=a(21567);let r=i.Kq,o=i.bL,d=i.l9,c=s.forwardRef((e,t)=>
1{let{className:a,sideOffset:s=4,...r}=e;return(0,l.jsx)(i.ZL,{children:(0,l.jsx)(i.UC,{ref:t,sideOffset:s,className:(0,n.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...r})})});c.displayName=i.UC.displayName},51872:(e,t,a)=>{"use strict";a.r(t),a.d(t,{apiPrivateClient:()=>r,apiPublicClient:()=>o});var l=a(82651),s=a(2615),i=a(41524);let n={baseURL:"".concat("https://api.materialinovasiindustri.com","/api"),withCredentials:!0,headers:{"Access-Control-Allow-Origin":"*"}},r=l.A.create(n),o=l.A.create(n);r.interceptors.request.use(async e=>{let t=await (0,s.getSession)();return(null==t?void 0:t.accessToken)?(e.headers.Authorization="Bearer ".concat(null==t?void 0:t.accessToken),e):((0,i.D)(),Promise.reject(Error("No access token found")))},e=>Promise.reject(e)),r.interceptors.response.use(e=>e,async e=>{var t,a;let n=e.config;if((null===(t=e.response)||void 0===t?void 0:t.status)===401&&!n._retry){n._retry=!0;try{let t=await (0,s.getSession)();if(!(null==t?void 0:t.refreshToken))return(0,i.D)(),Promise.reject(e);let{data:o}=await l.A.post("".concat("https://api.materialinovasiindustri.com","/api/auth/refresh"),{refreshToken:null==t?void 0:t.refreshToken});return t&&(null===(a=o.data)||void 0===a?void 0:a.accessToken)&&(t.accessToken=o.data.accessToken),n.headers.Authorization="Bearer ".concat(null==t?void 0:t.accessToken),r(n)}catch(e){return(0,i.D)(),Promise.reject(e)}}return Promise.reject(e)})},41524:(e,t,a)=>{"use strict";a.d(t,{D:()=>s});var l=a(2615);let s=()=>{(0,l.signOut)({callbackUrl:"/login?redirect=token"})}},21567:(e,t,a)=>{"use strict";a.d(t,{Q:()=>n,cn:()=>i});var l=a(43463),s=a(69795);function i(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,s.QP)((0,l.$)(t))}function n(e){return 0===e?"Nol Rupiah":(function e(t){return t<12?["","Satu","Dua","Tiga","Empat","Lima","Enam","Tujuh","Delapan","Sembilan","Sepuluh","Sebelas"][t]:t<20?e(t-10)+" Belas":t<100?e(Math.floor(t/10))+" Puluh "+e(t%10):t<200?"Seratus "+e(t-100):t<1e3?e(Math.floor(t/100))+" Ratus "+e(t%100):t<2e3?"Seribu "+e(t-1e3):t<1e6?e(Math.floor(t/1e3))+" Ribu "+e(t%1e3):t<1e9?e(Math.floor(t/1e6))+" Juta "+e(t%1e6):t<1e12?e(Math.floor(t/1e9))+" Miliar "+e(t%1e9):""})(Math.floor(e)).trim().replace(/\s+/g," ")+" Rupiah"}},73230:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var l=a(51872);let s={getCategories:async e=>l.apiPublicClient.get("/categories",{params:e}),createCategory:async e=>l.apiPrivateClient.post("/categories",e,{headers:{"Content-Type":"multipart/form-data"}}),getCategoryById:async e=>l.apiPublicClient.get("/categories/".concat(e)),updateCategory:async(e,t)=>l.apiPrivateClient.put("/categories/".concat(t),e,{headers:{"Content-Type":"multipart/form-data"}}),deleteCategory:async e=>l.apiPrivateClient.delete("/categories/".concat(e))}},66205:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var l=a(51872);let s={getContents:async e=>l.apiPublicClient.get("/contents",{params:e}),createContent:async e=>l.apiPrivateClient.post("/contents",e),getContentById:async e=>l.apiPublicClient.get("/contents/".concat(e)),updateContent:async(e,t)=>l.apiPrivateClient.put("/contents/".concat(t),e),deleteContent:async e=>l.apiPrivateClient.delete("/contents/".concat(e)),switchContentStatus:async e=>l.apiPrivateClient.patch("/contents/".concat(e)),switchBulkContentStatus:async e=>l.apiPrivateClient.patch("/contents/bulk-toggle-status/".concat(e)),getCompanyProfiles:async e=>l.apiPublicClient.get("/profile-companies",{params:e}),getCompanyProfileById:async e=>l.apiPublicClient.get("/profile-companies/".concat(e)),createCompanyProfile:async e=>l.apiPrivateClient.post("/profile-companies",e,{headers:{"Content-Type":"multipart/form-data"}}),updateCompanyProfile:async(e,t)=>l.apiPrivateClient.put("/profile-companies/".concat(t),e,{headers:{"Content-Type":"multipart/form-data"}}),deleteCompanyProfile:async e=>l.apiPrivateClient.delete("/profile-companies/".concat(e)),getSocialMedias:async e=>l.apiPublicClient.get("/social-media-companies",{params:e}),getSocialMediaById:async e=>l.apiPublicClient.get("/social-media-companies/".concat(e)),createSocialMedia:async e=>l.apiPrivateClient.post("/social-media-companies",e),updateSocialMedia:async(e,t)=>l.apiPrivateClient.put("/social-media-companies/".concat(t),e),deleteSocialMedia:async e=>l.apiPrivateClient.delete("/social-media-companies/".concat(e)),switchStatusSocialMedia:async e=>l.apiPrivateClient.patch("/social-media-companies/toggle-status/".concat(e)),getMediaPartners:async e=>l.apiPublicClient.get("/company-partners",{params:e}),getMediaPartnerById:async e=>l.apiPublicClient.get("/company-partners/".concat(e)),createMediaPartner:async e=>l.apiPrivateClient.post("/company-partners",e,{headers:{"Content-Type":"multipart/form-data"}}),updateMediaPartner:async(e,t)=>l.apiPrivateClient.put("/company-partners/".concat(t),e,{headers:{"Content-Type":"multipart/form-data"}}),deleteMediaPartner:async e=>l.apiPrivateClient.delete("/company-partners/".concat(e)),deleteBackgroun
1dFooterCompanyProfile:async e=>l.apiPrivateClient.delete("/profile-companies/background-footer/".concat(e))}},38345:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});var l=a(51872);let s={getFeedbacks:async e=>l.apiPublicClient.get("/feedbacks",{params:e}),createFeedback:async e=>l.apiPrivateClient.post("/feedbacks",e,{headers:{"Content-Type":"multipart/form-data"}}),getFeedbackById:async e=>l.apiPublicClient.get("/feedbacks/".concat(e)),updateFeedback:async(e,t)=>l.apiPrivateClient.put("/feedbacks/".concat(t),e,{headers:{"Content-Type":"multipart/form-data"}}),deleteFeedback:async e=>l.apiPrivateClient.delete("/feedbacks/".concat(e)),switchStatusFeedback:async e=>l.apiPrivateClient.patch("/feedbacks/".concat(e))}},46618:(e,t,a)=>{"use strict";a.d(t,{$o:()=>k,Bm:()=>m,DT:()=>s,Ds:()=>y,Gd:()=>N,Mj:()=>r,NB:()=>c,R2:()=>j,SX:()=>g,WD:()=>h,WP:()=>w,_F:()=>d,cY:()=>b,dB:()=>f,ec:()=>u,fK:()=>C,gA:()=>x,j3:()=>p,lQ:()=>o,n5:()=>v,tG:()=>i,v7:()=>A,y4:()=>n});var l=a(50791);let s=e=>{if(!e)return"";let t=e.trim().split(" ").filter(Boolean);return 0===t.length?"":(t[0][0]+(t.length>1?t[t.length-1][0]:"")).toUpperCase()},i=e=>e?e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:"".concat("https://api.materialinovasiindustri.com","/").concat(e):"",n=e=>{var t;return(null===(t=new DOMParser().parseFromString(e,"text/html").body.textContent)||void 0===t?void 0:t.trim())||""},r=e=>{if(!(null==e?void 0:e.length))return"";let t=e.find(e=>0===e.prio);return t?t.path:""},o=e=>{let t=e.find(e=>0===e.prio);return t?t.path.startsWith("http")?t.path:i(t.path):""},d=e=>{if(null==e?void 0:e.length)return null==e?void 0:e.reduce((e,t)=>(null==e?void 0:e.price)<(null==t?void 0:t.price)?e:t)},c=e=>{let t=e.match(/<iframe[^>]+src=["']([^"']+)["']/);return t?t[1]:e},u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ID";if("string"!=typeof e||!e.trim())return"#";try{let a=(0,l.l)(e);if(a&&a.isValid()||!t||(a=(0,l.l)(e,t)),!(null==a?void 0:a.isValid())){let t=e.replace(/\D/g,""),s=t.startsWith("+")?t:"+".concat(t);a=(0,l.l)(s)}if(!(null==a?void 0:a.isValid()))return"#";let s=a.format("E.164").substring(1);return"https://wa.me/".concat(s)}catch(e){return console.error("Error generating WhatsApp link:",e),"#"}},m=(e,t)=>{if(!e)return"-";let a=null==e?void 0:e.find(e=>e.type===t);return(null==a?void 0:a.value)&&(null==a?void 0:a.unit)?"".concat(a.value," ").concat(a.unit):"-"},h=(e,t,a)=>{let l=[e,t,a].filter(e=>e&&"-"!==e);return 0===l.length?"-":l.join(" \xd7 ")},x=e=>{try{let t=(0,l.l)(e,"ID");if(!(null==t?void 0:t.isValid()))return e;let a=t.nationalNumber,s="+".concat(t.countryCallingCode);if("ID"===t.country&&a.length>=10){let e=a.substring(0,3),t=a.substring(3,7),l=a.substring(7);return"".concat(s," ").concat(e," ").concat(t," ").concat(l)}return t.formatInternational()}catch(t){return e}},v=e=>{if("string"!=typeof e||!e.trim())return e;let t=e.replace(/\D/g,"");if(t.length<7)return e;let a=t.substring(0,3),l=t.substring(3);return"(".concat(a,") ").concat(l)},p=e=>e.replace(/<(h[1-3])>(.*?)<\/\1>/g,(e,t,a)=>{let l=a.replace(/<[^>]*>/g,"").trim();if(!l)return e;let s=l.replace(/\s+/g,"_").toLowerCase();return"<".concat(t,' id="').concat(s,'">').concat(a,"</").concat(t,">")}),g=e=>e>0?"positive":e<0?"negative":"neutral",f=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e){case"positive":return t?"completed-compact":"completed";case"negative":return t?"canceled-compact":"canceled";default:return"secondary"}},b=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],a=e>0,l=t?e.toFixed(2):Math.round(e).toString();return"".concat(a?"+":"").concat(l)},j=e=>{var t;if(!(null==e?void 0:e.length))return 0;let a=(null===(t=e.find(e=>"completed"===e.status))||void 0===t?void 0:t.order)||0,l=e.reduce((e,t)=>e+Number(t.order),0);return l>0?Math.round(a/l*100):0},y=e=>{let t,{name:a,email:l,telephone:s,order:i}=e;return"Halo Admin Material Inovasi Industri!\n\nSaya *".concat(a,"* baru saja melakukan pemesanan melalui website.\n\n*ID Pesanan:* ").concat(i.id,"\n*Metode Pengiriman:* ").concat("delivery"===i.shipping_type?"Delivery":"Pickup").concat("delivery"===i.shipping_type&&i.shipping_address?"\n*Alamat Pengiriman:* ".concat(i.shipping_address):"","\n\n*Total Pembayaran:* ").concat((t=i.grand_total,"Rp".concat(t.toLocaleStr
1ing("id-ID"))),"\n\nMohon bantuannya untuk memeriksa detail pesanan dan menginformasikan langkah selanjutnya. Terima kasih!\n\n*Kontak Pelanggan*:\n").concat(s,"\n").concat(l)};function w(e){return Array.isArray(e)&&0!==e.length?e.reduce((e,t)=>e+(t.stock||0),0):0}let N=(e,t)=>e&&""!==e?"".concat(e," - ").concat(t," Material Inovasi Industri"):"".concat(t," Material Inovasi Industri"),k=e=>e?e.startsWith("https://")?e.replace("https://","www."):e.startsWith("http://")?e.replace("http://","www."):e.startsWith("www.")?e:"www.".concat(e):"";function C(){var e,t;let a=null===(e=window.navigator)||void 0===e?void 0:e.userAgent,l=(null===(t=window.navigator)||void 0===t?void 0:t.platform)||"Unknown Platform",s=/Edg/i.test(a)?"Edge":/OPR|Opera/i.test(a)?"Opera":/Chrome/i.test(a)&&!/Edg|OPR/i.test(a)?"Chrome":/Safari/i.test(a)&&!/Chrome/i.test(a)?"Safari":/Firefox/i.test(a)?"Firefox":/MSIE|Trident/i.test(a)?"Internet Explorer":"Unknown Browser",i=/Windows NT/i.test(a)?"Windows":/Macintosh/i.test(a)?"macOS":/iPhone|iPad/i.test(a)?"iOS":/Android/i.test(a)?"Android":/Linux/i.test(l)?"Linux":"Unknown OS";return"".concat(s," on ").concat(i)}let A=e=>{if(0===e)return"0 Bytes";let t=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,t)).toFixed(1))+" "+["Bytes","KB","MB"][t]}},61734:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});let l={src:"/_next/static/media/bg-featured-product.44e64137.png",height:945,width:1890,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAG1BMVEX7+/vk5OTs7Oy0tLTAwMDw8PCgoKDNzc3Z2dlMVD/6AAAACXBIWXMAAAdiAAAHYgE4epnbAAAAJUlEQVR4nBXGwQ0AMAgDsUuA0P0nrvhYptKMEtQ1B/itrYWr0AcHbgBej0M9OwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4}}},e=>{var t=t=>e(e.s=t);e.O(0,[1181,8173,2615,5714,791,2651,814,7970,7527,5912,3233,1621,9710,2576,6598,674,7685,3662,9036,4959,8441,1517,7358],()=>t(74349)),_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.