(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6834],{14151:(e,r,t)=>{Promise.resolve().then(t.t.bind(t,98500,23)),Promise.resolve().then(t.bind(t,35587))},35587:(e,r,t)=>{"use strict";t.d(r,{default:()=>a});var s=t(95155);t(12115);var l=t(73321),i=t(76444);function a({tabs:e}){let r=(0,l.useRouter)(),t=(0,l.useSearchParams)(),a=t.get("tab");if(!e||0===e.length)return null;let o=e.find(e=>e.id===a)||e[0];return(0,s.jsxs)("div",{className:"w-full relative z-20 -mt-10 md:-mt-16 container px-4 flex flex-col items-center",children:[(0,s.jsx)("div",{className:"flex flex-wrap bg-white/5 backdrop-blur-md rounded-t-2xl overflow-hidden border-b border-white/10 justify-center w-full max-w-5xl shadow-[0_8px_32px_0_rgba(0,0,0,0.1)]",children:e.map(e=>{let l=o.id===e.id;return(0,s.jsxs)("button",{onClick:()=>{var s;let l;return s=e.id,void((l=new URLSearchParams(t.toString())).set("tab",s),r.push(`?${l.toString()}`,{scroll:!1}))},className:`px-4 sm:px-6 md:px-10 py-5 font-bold text-sm transition-colors flex-1 md:flex-none text-center relative ${l?"bg-white/10 text-white":"text-white/80 hover:text-white hover:bg-white/10"}`,children:[l&&(0,s.jsx)("div",{className:"absolute top-0 left-0 w-full h-1 bg-gradient-to-r from-blue-500 to-indigo-500"}),e.judul]},e.id)})}),(0,s.jsxs)("div",{className:"bg-white/5 border border-white/20 w-full max-w-5xl rounded-b-2xl md:rounded-tr-none shadow-[0_8px_32px_0_rgba(0,0,0,0.37)] p-6 md:p-12 min-h-[50vh] backdrop-blur-2xl relative z-10",children:["atas"===o.gambarPosisi&&o.gambarUrl&&(0,s.jsx)("div",{className:"w-full mb-8 rounded-2xl overflow-hidden bg-black/40 border border-white/10",children:(0,s.jsx)("img",{src:o.gambarUrl,alt:o.judul,className:"w-full h-auto object-cover max-h-[500px]"})}),"tengah"===o.gambarPosisi&&o.gambarUrl?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"text-white prose prose-lg prose-invert max-w-none prose-headings:text-white prose-p:text-white prose-li:text-white prose-a:text-blue-400 hover:prose-a:text-blue-300 prose-strong:text-white whitespace-pre-wrap",children:(0,s.jsx)(i.oz,{children:(o.deskripsi||"").split("\n\n").slice(0,Math.ceil((o.deskripsi||"").split("\n\n").length/2)).join("\n\n")})}),(0,s.jsx)("div",{className:"w-full my-8 rounded-2xl overflow-hidden bg-black/40 border border-white/10",children:(0,s.jsx)("img",{src:o.gambarUrl,alt:o.judul,className:"w-full h-auto object-cover max-h-[500px]"})}),(0,s.jsx)("div",{className:"text-white prose prose-lg prose-invert max-w-none prose-headings:text-white prose-p:text-white prose-li:text-white prose-a:text-blue-400 hover:prose-a:text-blue-300 prose-strong:text-white whitespace-pre-wrap",children:(0,s.jsx)(i.oz,{children:(o.deskripsi||"").split("\n\n").slice(Math.ceil((o.deskripsi||"").split("\n\n").length/2)).join("\n\n")})})]}):(0,s.jsx)("div",{className:"text-white prose prose-lg prose-invert max-w-none prose-headings:text-white prose-p:text-white prose-li:text-white prose-a:text-blue-400 hover:prose-a:text-blue-300 prose-strong:text-white whitespace-pre-wrap",children:(0,s.jsx)(i.oz,{children:o?.deskripsi||""})}),"bawah"===o.gambarPosisi&&o.gambarUrl&&(0,s.jsx)("div",{className:"w-full mt-8 rounded-2xl overflow-hidden bg-black/40 border border-white/10",children:(0,s.jsx)("img",{src:o.gambarUrl,alt:o.judul,className:"w-full h-auto object-cover max-h-[500px]"})})]})]})}}},e=>{e.O(0,[8500,9380,8441,3794,7358],()=>e(e.s=14151)),_N_E=e.O()}]);