(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,33642,e=>{"use strict";var t=e.i(78117),r=e.i(27738),s=e.i(15344);function l({tabs:e}){let l=(0,r.useRouter)(),i=(0,r.useSearchParams)(),a=i.get("tab");if(!e||0===e.length)return null;let o=e.find(e=>e.id===a)||e[0];return(0,t.jsxs)("div",{className:"w-full relative z-20 -mt-10 md:-mt-16 container px-4 flex flex-col items-center",children:[(0,t.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 r=o.id===e.id;return(0,t.jsxs)("button",{onClick:()=>{var t;let r;return t=e.id,void((r=new URLSearchParams(i.toString())).set("tab",t),l.push(`?${r.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 ${r?"bg-white/10 text-white":"text-white/80 hover:text-white hover:bg-white/10"}`,children:[r&&(0,t.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,t.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,t.jsx)("div",{className:"w-full mb-8 rounded-2xl overflow-hidden bg-black/40 border border-white/10",children:(0,t.jsx)("img",{src:o.gambarUrl,alt:o.judul,className:"w-full h-auto object-cover max-h-[500px]"})}),"tengah"===o.gambarPosisi&&o.gambarUrl?(0,t.jsxs)(t.Fragment,{children:[(0,t.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,t.jsx)(s.default,{children:(o.deskripsi||"").split("\n\n").slice(0,Math.ceil((o.deskripsi||"").split("\n\n").length/2)).join("\n\n")})}),(0,t.jsx)("div",{className:"w-full my-8 rounded-2xl overflow-hidden bg-black/40 border border-white/10",children:(0,t.jsx)("img",{src:o.gambarUrl,alt:o.judul,className:"w-full h-auto object-cover max-h-[500px]"})}),(0,t.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,t.jsx)(s.default,{children:(o.deskripsi||"").split("\n\n").slice(Math.ceil((o.deskripsi||"").split("\n\n").length/2)).join("\n\n")})})]}):(0,t.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,t.jsx)(s.default,{children:o?.deskripsi||""})}),"bawah"===o.gambarPosisi&&o.gambarUrl&&(0,t.jsx)("div",{className:"w-full mt-8 rounded-2xl overflow-hidden bg-black/40 border border-white/10",children:(0,t.jsx)("img",{src:o.gambarUrl,alt:o.judul,className:"w-full h-auto object-cover max-h-[500px]"})})]})]})}e.s(["default",()=>l])}]);