PageSourceSearch

https://oss.go.id/lp/_next/static/chunks/app/%5Blang%5D/layout-d2082da9e7f5952f.js

js oss.go.id collected 2026-10-01 12:09:36 UTC 81,622 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1084],{15619:function(e,t,a){Promise.resolve().then(a.bind(a,41817)),Promise.resolve().then(a.t.bind(a,57286,23)),Promise.resolve().then(a.t.bind(a,47960,23)),Promise.resolve().then(a.bind(a,24425)),Promise.resolve().then(a.bind(a,67646)),Promise.resolve().then(a.bind(a,63813)),Promise.resolve().then(a.bind(a,1492)),Promise.resolve().then(a.bind(a,78073)),Promise.resolve().then(a.bind(a,134)),Promise.resolve().then(a.bind(a,21777)),Promise.resolve().then(a.bind(a,46489)),Promise.resolve().then(a.bind(a,38308)),Promise.resolve().then(a.bind(a,75103)),Promise.resolve().then(a.bind(a,50252)),Promise.resolve().then(a.bind(a,82041)),Promise.resolve().then(a.bind(a,25412)),Promise.resolve().then(a.bind(a,83462)),Promise.resolve().then(a.bind(a,38811)),Promise.resolve().then(a.bind(a,70408)),Promise.resolve().then(a.bind(a,79775)),Promise.resolve().then(a.t.bind(a,65878,23)),Promise.resolve().then(a.t.bind(a,72972,23)),Promise.resolve().then(a.bind(a,81523)),Promise.resolve().then(a.bind(a,70049)),Promise.resolve().then(a.t.bind(a,13650,23)),Promise.resolve().then(a.bind(a,83735))},24425:function(e,t,a){"use strict";a.d(t,{default:function(){return o}});var s=a(70390),n=a(30067),l=a(76008),r=a(87546);function o(e){let{collectorUrl:t,appName:a="portal-frontend",appVersion:o="1.0.0",environment:i="production",propagateTo:d}=e;if(!t||!/^https?:\/\//.test(t)||s.s.api)return null;try{let e=d&&d.length>0?{propagateTraceHeaderCorsUrls:d.map(e=>new RegExp(e))}:void 0;(0,n.p)({url:t,app:{name:a,version:o,environment:i},instrumentations:[...(0,l.V)(),new r.d(e?{instrumentationOptions:e}:void 0)]})}catch(e){}return null}},67646:function(e,t,a){"use strict";a.d(t,{default:function(){return l}});var s=a(57437),n=a(48667);function l(e){let{GA_MEASUREMENT_ID:t,GTM_ID:a}=e;return a?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.default,{id:"gtm-script",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n              (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n              new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n              j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n              'https://www.googletagmanager.com/gtm.js?id='
1+i+dl;f.parentNode.insertBefore(j,f);\n              })(window,document,'script','dataLayer','".concat(a,"');\n            ")}}),(0,s.jsx)("noscript",{children:(0,s.jsx)("iframe",{src:"https://www.googletagmanager.com/ns.html?id=".concat(a),height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]}):t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.default,{strategy:"afterInteractive",src:"https://www.googletagmanager.com/gtag/js?id=".concat(t)}),(0,s.jsx)(n.default,{id:"google-analytics",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n              window.dataLayer = window.dataLayer || [];\n              function gtag(){dataLayer.push(arguments);}\n              gtag('js', new Date());\n              gtag('config', '".concat(t,"', {\n                page_path: window.location.pathname,\n              });\n            ")}})]}):null}},63813:function(e,t,a){"use strict";var s=a(2265),n=a(71318),l=a.n(n),r=a(79775);l().configure({showSpinner:!1,minimum:.3}),t.default=()=>{let{isLoading:e,loadTime:t}=(0,r.r)(),a=(0,s.useRef)(null);return(0,s.useEffect)(()=>{e?(l().configure({speed:t?Math.max(2e3,t/2):1200}),l().start(),a.current=setTimeout(()=>{l().done()},1e4)):(l().done(),a.current&&(clearTimeout(a.current),a.current=null))},[e,t]),null}},1492:function(e,t,a){"use strict";a.d(t,{default:function(){return r}});var s=a(57437),n=a(2265),l=a(99376);function r(){var e,t,r,o;let i=(0,l.useParams)(),d=(null==i?void 0:i.lang)||"id",[c,u]=(0,n.use
1State)(!0),[m,x]=(0,n.useState)(!1),[h,f]=(0,n.useState)(null);return((0,n.useEffect)(()=>{(async()=>{try{let e=await a(63074)("./".concat(d,".json"));f(e.default)}catch(e){f((await a.e(9615).then(a.t.bind(a,9615,19))).default)}})(),u(navigator.onLine);let e=()=>{u(!0),x(!0),setTimeout(()=>{x(!1)},3e3)},t=()=>{u(!1),x(!1)};return window.addEventListener("online",e),window.addEventListener("offline",t),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",t)}},[d]),c&&!m)?null:m?(0,s.jsx)("div",{className:"fixed right-4 top-20 z-[9999] animate-slide-in-right",children:(0,s.jsxs)("div",{className:"flex items-center gap-3 rounded-lg bg-green-500 px-6 py-4 text-white shadow-lg",children:[(0,s.jsx)("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,s.jsx)("span",{className:"font-medium",children:(null==h?void 0:null===(o=h.m_error)||void 0===o?void 0:o.online_restored)||"Koneksi Internet Telah Pulih"})]})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"fixed inset-0 z-[9998] bg-black/50 backdrop-blur-sm"}),(0,s.jsx)("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center p-4",children:(0,s.jsxs)("div",{className:"w-full max-w-md rounded-lg bg-white p-8 text-center shadow-2xl",children:[(0,s.jsx)("div",{className:"mb-6 flex justify-center",children:(0,s.jsx)("svg",{className:"h-24 w-24 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1,d:"M18.364 5.636a9 9 0 010 12.728m0 0l-2.829-2.829m2.829 2.829L21 21M15.536 8.464a5 5 0 010 7.072m0 0l-2.829-2.829m-4.243 2.829a4.978 4.978 0 01-1.414-2.83m-1.414 5.658a9 9 0 01-2.167-9.238m7.824 2.167a1 1 0 111.414 1.414m-1.414-1.414L3 3m8.293 8.293l1.414 1.414"})})}),(0,s.jsx)("h2",{className:"mb-3 text-2xl font-bold text-gray-900",children:(null==h?void 0:null===(e=h.m_error)||void 0===e?void 0:e.offline_title)||"Tidak Ada Koneksi Internet"}),(0,s.jsx)("p",{className:"mb-6 text-gray-600",children:(null==h?void 0:null===(t=h.m_error)||void 0===t?void 0:t.offline_description)||"Sepertinya Anda sedang offline. Periksa koneksi internet Anda dan coba lagi."}),(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2 text-sm text-gray-500",children:[(0,s.jsx)("div",{className:"h-2 w-2 animate-pulse rounded-full bg-gray-400"}),(0,s.jsx)("div",{className:"animation-delay-200 h-2 w-2 animate-pulse rounded-full bg-gray-400"}),(0,s.jsx)("div",{className:"animation-delay-400 h-2 w-2 animate-pulse rounded-full bg-gray-400"}),(0,s.jsx)("span",{className:"ml-2",children:(null==h?void 0:null===(r=h.m_error)||void 0===r?void 0:r.offline_reconnecting)||"Menyambungkan kembali..."})]})]})})]})}},38308:function(e,t,a){"use strict";a.d(t,{default:function(){return r}});var s=a(57437),n=a(2265),l=a(78597);function r(e){let{data:t,lang:a}=e,[r,o]=n.useState(t.map(()=>!0));if(!t||0===t.length)return null;let i=e=>{o(t=>t.map((t,a)=>a!==e&&t))};return(0,s.jsx)("div",{className:"bg-yellow-500",children:(0,s.jsx)(l.Z,{children:t.map((e,t)=>{var n;return r[t]&&(0,s.jsxs)("div",{className:"mx-0 grid grid-flow-row grid-cols-12 items-center gap-4 py-2",children:[(0,s.jsxs)("div",{className:"col-span-11 flex items-center",children:[(0,s.jsx)("span",{className:"material-symbols-outlined",children:"campaign"}),(0,s.jsx)("div",{className:"ml-4 text-start text-xs font-semibold",dangerouslySetInnerHTML:{__html:(null==e?void 0:null===(n=e.localization[a])||void 0===n?void 0:n.uraian)||""},suppressHydrationWarning:!0})]}),(0,s.jsx)("span",{className:"ti ti-x col-span-1 ml-auto cursor-pointer",onClick:()=>i(t)})]},t)})})})}},50252:function(e,t,a){"use strict";var s=a(57437),n=a(2265);class l extends n.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){}render(){return this.state.hasError?this.props.fallback?this.props.fallback:(0,s.jsx)("div",{className:"flex min-h-screen flex-col items-center justify-center bg-gray-50 p-4",children:(0,s.jsxs)("div",{className:"w-full max-w-md rounded-lg bg-white p-8 text-center shadow-lg",children:[(0,s.jsx)("div",{className:"mb-4",children:(0,s.jsx)("svg",{className:"mx-auto h-16 w-16 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),(0,s.jsx)("h1",{className:"mb-2 text-2xl font-bold text-gray-900",children:"Terjadi Kesalahan"}),(0,s.jsx)("p",{className:"mb-6 text-gray-600",children:"Maaf, terjadi kesalahan yang tidak terduga. Halaman akan tetap berfungsi setelah dimuat ulang."}),(0,s.jsx)("button",{onClick:()=>window.location.reload(),className:"rounded-lg bg-blue-600 px-6 py-3 font-medium text-white transition-colors hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2",children:"Muat Ulang Halaman"})]})}):this.props.children}constructor(e){super(e),this.state={hasError:!1}}}t.default=l},82041:function(e,t,a){"use strict";a.d(t,{default:function(){return g}});var s=a(57437),n=a(2265),l=a(78597),r=a(27648),o=a(30166),i=a(11591),d=a(35030),c=a(94183);let u=(0,o.default)(()=>a.e(4072).then(a.bind(a,34072)).then(e=>
1e.Turnstile),{loadableGenerated:{webpack:()=>[34072]},ssr:!1}),m="0x4AAAAAAB6dVZCgIaP5qKs3";function x(e){var t,a,l,r,o,x;let{lang:v}=e,[g,p]=(0,n.useState)(0),[b,j]=(0,n.useState)(!1),[w,N]=(0,n.useState)(!1),[y,k]=(0,n.useState)(""),[_,S]=(0,n.useState)(!1),[A,E]=(0,n.useState)(!0),[C,P]=(0,n.useState)({}),[R,I]=(0,n.useState)({nib:"",titleNama:"",nama:"",status_aktif:"",status_migrasi:"",status_penanaman_modal:"",skala_usaha:""});(0,n.useEffect)(()=>{j(!0),(async()=>{try{let e=await (0,d.R)(v);P(e||{})}catch(e){P({})}})()},[v]);let M=async e=>{c.U3(y,"NIB Search - Footer");try{let d=await i.Z.postSearchNIB({dataNib:{nib:y}},e);if((null==d?void 0:d.kode)===200){var t,a,s,n,l,r,o;c.B({action:"nib_search_success",category:"Search",label:y}),I({nib:(null==d?void 0:null===(t=d.data)||void 0===t?void 0:t.nib)||"",titleNama:(null==d?void 0:null===(a=d.data)||void 0===a?void 0:a.titleNama)||"",nama:(null==d?void 0:null===(s=d.data)||void 0===s?void 0:s.nama)||"",status_aktif:(null==d?void 0:null===(n=d.data)||void 0===n?void 0:n.status_aktif)||"",status_migrasi:(null==d?void 0:null===(l=d.data)||void 0===l?void 0:l.status_migrasi)||"",status_penanaman_modal:(null==d?void 0:null===(r=d.data)||void 0===r?void 0:r.status_penanaman_modal)||"",skala_usaha:(null==d?void 0:null===(o=d.data)||void 0===o?void 0:o.skala_usaha)||""}),E(!1)}else c.B({action:"nib_search_not_found",category:"Search",label:y}),E(!0);N(!1),S(!0)}catch(e){c.B({action:"nib_search_error",category:"Search",label:y}),E(!0),N(!1),S(!0)}},L=()=>{S(!1),E(!0),N(!1),p(e=>e+1)};return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex-1 text-left",children:[(0,s.jsx)("h6",{className:"mb-4 text-sm font-bold text-white",children:null!==(r=null==C?void 0:null===(t=C.m_footer)||void 0===t?void 0:t.pencarian_nib)&&void 0!==r?r:"Pencarian NIB"}),(0,s.jsx)("p",{className:"mb-2 text-sm text-white",children:null!==(o=null==C?void 0:null===(a=C.m_footer)||void 0===a?void 0:a.pencarian_nib_desc)&&void 0!==o?o:"Cari data NIB pelaku usaha."}),(0,s.jsxs)("form",{className:"relative",onSubmit:e=>{e.preventDefault(),y&&m&&(S(!1),E(!0),p(e=>e+1),N(!0))},children:[(0,s.jsx)("input",{maxLength:13,inputMode:"numeric",pattern:"[0-9]*",className:"w-full rounded-xl border px-4 py-2 focus:outline-none focus:ring-2 focus:ring-red-500",placeholder:null!==(x=null==C?void 0:null===(l=C.m_placeholder)||void 0===l?void 0:l.cari_nib)&&void 0!==x?x:"Masukkan NIB",value:y,onChange:e=>{let t=e.target.value;/^\d*$/.test(t)&&k(t)}}),(0,s.jsx)("button",{className:"absolute inset-y-0 right-3 flex items-center",type:"submit","aria-label":"Cari NIB",children:(0,s.jsx)("span",{className:"ti ti-search text-gray-300"})})]})]}),b&&w&&y.length>0&&!_&&m&&(0,s.jsx)("div",{className:"mt-2",children:(0,s.jsx)(u,{siteKey:m,onSuccess:e=>{e&&M(e)}},g)}),_&&(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",role:"dialog","aria-modal":"true",children:(0,s.jsx)("div",{className:"w-full max-w-lg rounded-lg bg-white p-5 shadow-lg",children:A?(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("span",{className:"material-symbols-outlined text-6xl text-oss-red-700",children:"cancel"}),(0,s.jsx)("h4",{className:"mt-5 text-lg font-bold text-gray-700",children:"NIB Tidak Ditemukan"}),(0,s.jsx)("p",{className:"my-3 text-gray-600",children:"Pastikan NIB yang Anda masukkan benar."}),(0,s.jsx)("button",{className:"mt-5 rounded bg-oss-red-700 px-6 py-2 text-white hover:bg-red-700",onClick:L,children:"Tutup"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h4",{className:"text-start text-lg font-bold",children:"Detail Data Pelaku Usaha"}),(0,s.jsx)("hr",{className:"my-3"}),(0,s.jsxs)(h,{children:[(0,s.jsx)(f,{label:"NIB",value:R.nib}),(0,s.jsx)(f,{label:"Nama"===R.titleNama?"Nama":"Nama Perusahaan",value:R.nama}),(0,s.jsx)(f,{label:"Status Aktif",value:R.status_aktif}),(0,s.jsx)(f,{label:"Status Migrasi",value:R.status_migrasi}),(0,s.jsx)(f,{label:"Penanaman Modal",value:R.status_penanaman_modal}),(0,s.jsx)(f,{label:"Skala Usaha",value:R.skala_usaha})]}),(0,s.jsx)("div",{className:"mt-5 text-center",children:(0,s.jsx)("button",{className:"rounded bg-oss-red-700 px-6 py-2 text-white hover:bg-red-700",onClick:L,children:"Tutup"})})]})})})]})}function h(e){let{children:t}=e;return(0,s.jsx)("div",{className:"space-y-3 rounded-md bg-oss-gray-300 p-4",children:t})}function f(e){let{label:t,value:a}=e;return(0,s.jsxs)("div",{className:"flex justify-between gap-4",children:[(0,s.jsx)("span",{className:"font-bold",children:t}),(0,s.jsx)("span",{className:"truncate",children:a||"-"})]})}var v=a(50340),g=function(e){var t,a,o,i,u,m,h,f,g,p,b,j,w,N,y,k,_,S;let{logo:A,footer:E,kontak:C,lang:P}
1=e,[R,I]=(0,n.useState)({});return(0,n.useEffect)(()=>{(async()=>{try{let e=await (0,d.R)(P);(0,v.xT)(e)?I({}):I(e)}catch(e){I({})}})()},[P]),(0,s.jsx)("div",{id:"footer",className:"bg-oss-red-600 py-8",children:(0,s.jsxs)(l.Z,{children:[(0,s.jsxs)("div",{className:"flex flex-col justify-between gap-8 md:flex-row md:gap-12",children:[0===E.length?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("span",{})}):(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"flex-1 text-center md:text-left",children:[(0,s.jsx)("img",{className:"mx-auto max-h-[52px] w-auto md:mx-0",src:null==A?void 0:null===(a=A.localization[P])||void 0===a?void 0:null===(t=a.footer)||void 0===t?void 0:t.image,alt:"Footer Logo"}),(0,s.jsx)("p",{className:"mt-8 text-center text-sm text-white md:text-left",children:(null==E?void 0:null===(o=E.localization[P])||void 0===o?void 0:o.address)||"Jl. Jenderal Gatot Subroto No.44, Jakarta 12190 Indonesia"}),(0,s.jsx)("div",{className:"mt-8 space-y-2 text-white",children:null==C?void 0:C.map((e,t)=>{var a,n,l,o,i,d;let u=(null==e?void 0:null===(n=e.localization)||void 0===n?void 0:null===(a=n[P])||void 0===a?void 0:a.kontak)||"#",m=(null==e?void 0:null===(o=e.localization)||void 0===o?void 0:null===(l=o[P])||void 0===l?void 0:l.nama)||"Contact Link",x=(null==e?void 0:null===(d=e.localization)||void 0===d?void 0:null===(i=d[P])||void 0===i?void 0:i.link_logo)||"";return(0,s.jsxs)(r.default,{target:"_blank",rel:"noopener noreferrer",href:u,className:"flex items-center text-sm text-white no-underline",onClick:()=>c.wG(u,m),children:[(0,s.jsx)("button",{className:"mr-2",children:(0,s.jsx)("img",{src:x,alt:m})}),m]},t)})}),(0,s.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,s.jsx)("div",{className:"mt-2 text-white",children:(0,s.jsx)(r.default,{target:"_blank",rel:"noopener noreferrer",href:(null==E?void 0:null===(i=E.localization[P])||void 0===i?void 0:i.link_instagram)||"https://www.instagram.com/oss.go.id/",onClick:()=>{var e;return c.wG((null==E?void 0:null===(e=E.localization[P])||void 0===e?void 0:e.link_instagram)||"https://www.instagram.com/oss.go.id/","Instagram - Footer")},children:(0,s.jsx)("button",{children:(0,s.jsx)("img",{src:null==A?void 0:null===(u=A.localization[P])||void 0===u?void 0:u.instagram.image,alt:"instagram OSS"})})})}),(0,s.jsx)("div",{className:"mt-2 text-white",children:(0,s.jsx)(r.default,{target:"_blank",rel:"noopener noreferrer",href:(null==E?void 0:null===(m=E.localization[P])||void 0===m?void 0:m.link_facebook)||"https://web.facebook.com/people/OSS-Indonesia/100069437169431/?_rdc=1&_rdr",onClick:()=>{var e;return c.wG((null==E?void 0:null===(e=E.localization[P])||void 0===e?void 0:e.link_facebook)||"https://web.facebook.com/people/OSS-Indonesia/100069437169431/","Facebook - Footer")},children:(0,s.jsx)("button",{className:"rounded-md bg-white",children:(0,s.jsx)("img",{src:null==A?void 0:null===(h=A.localization[P])||void 0===h?void 0:h.facebook.image,alt:"Facebook OSS"})})})}),(0,s.jsx)("div",{className:"mt-2 text-white",children:(0,s.jsx)(r.default,{target:"_blank",rel:"noopener noreferrer",href:(null==E?void 0:null===(f=E.localization[P])||void 0===f?void 0:f.link_youtube)||"https://www.youtube.com/channel/UCRFWeVKUvheCbQtsICqLjhg",onClick:()=>{var e;return c.wG((null==E?void 0:null===(e=E.localization[P])||void 0===e?void 0:e.link_youtube)||"https://www.youtube.com/channel/UCRFWeVKUvheCbQtsICqLjhg","YouTube - Footer")},children:(0,s.jsx)("button",{className:"rounded-md bg-white",children:(0,s.jsx)("img",{src:null==A?void 0:null===(g=A.localization[P])||void 0===g?void 0:g.youtube.image,alt:"YouTube OSS"})})})}),(0,s.jsx)("div",{className:"mt-2 text-white",children:(0,s.jsx)(r.default,{target:"_blank",rel:"noopener noreferrer",href:(null==E?void 0:null===(p=E.localization[P])||void 0===p?void 0:p.link_twiter)||"https://x.com/OSS_id",onClick:()=>{var e;return c.wG((null==E?void 0:null===(e=E.localization[P])||void 0===e?void 0:e.link_twiter)||"https://x.com/OSS_id","Twitter - Footer")},children:(0,s.jsx)("button",{className:"rounded-md bg-white",children:(0,s.jsx)("img",{src:null==A?void 0:null===(b=A.localization[P])||void 0===b?void 0:b.t
1witter.image,alt:"Twitter OSS"})})})})]})]})}),(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("div",{className:"text-sm font-bold text-oss-base-white",children:null==R?void 0:null===(j=R.m_footer)||void 0===j?void 0:j.fitur_dan_layanan}),(0,s.jsx)("a",{className:"text-sm font-normal text-oss-base-white",href:"https://ui-login.oss.go.id/login/v1?as=pelapor",target:"_blank",rel:"noreferrer",children:null==R?void 0:null===(w=R.m_footer)||void 0===w?void 0:w.pengaduan_masyarakat}),(0,s.jsx)("a",{className:"text-sm font-normal text-oss-base-white",href:"https://www.lapor.go.id/instansi/badan-koordinasi-penanaman-modal-bkpm",target:"_blank",rel:"noreferrer",children:null==R?void 0:null===(N=R.m_footer)||void 0===N?void 0:N.lapor})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,s.jsx)("div",{className:"text-sm font-bold text-oss-base-white",children:null==R?void 0:null===(y=R.m_footer)||void 0===y?void 0:y.ketentuan_Kebijakan}),(0,s.jsx)("a",{className:"text-sm font-normal text-oss-base-white",href:"/privacy-policy",onClick:()=>c.uu("/privacy-policy","Footer"),children:null==R?void 0:null===(k=R.m_footer)||void 0===k?void 0:k.kebijakan_privasi}),(0,s.jsx)("a",{className:"text-sm font-normal text-oss-base-white",href:"/about-us",onClick:()=>c.uu("/about-us","Footer"),children:null==R?void 0:null===(_=R.m_footer)||void 0===_?void 0:_.about_us})]}),(0,s.jsx)(x,{lang:P})]}),(0,s.jsx)("div",{className:"mt-8 text-center text-sm text-white",children:null==R?void 0:null===(S=R.m_footer)||void 0===S?void 0:S.copyright})]})})}},25412:function(e,t,a){"use strict";var s=a(57437),n=a(2265);t.default=e=>{let{maintenance:t}
1=e,[a,l]=(0,n.useState)(null==t?void 0:t.image);return(0,n.useEffect)(()=>{let e=()=>{window.innerWidth>=1024?l(null==t?void 0:t.image):l(null==t?void 0:t.image_mobile)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[t]),(0,s.jsx)("div",{className:"mx-auto h-full w-full max-w-[1920px]",children:(0,s.jsx)("img",{src:a,alt:"maintenence",className:"h-auto w-full"})})}},83462:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return K}});var s=a(57437),n=a(29),l=a.n(n),r=a(2265),o=a(33145),i=a(99376),d=a(79775),c=a(35030),u=a(91184),m=a(82462),x=a(80210),h={src:"/lp/_next/static/media/IMAGE_MENU_INFORMASI.924a5405.svg",height:202,width:221,blurWidth:0,blurHeight:0},f=a(78597),v=a(94183);function g(e){var t,a,n,l,c,u,m,g,p,b,j;let{dictionary:w,lang:N,onClose:y,navbarData:k,ref:_}=e,[S,A]=(0,r.useState)(null),E=k||{title:"",categories:[]},C=(0,i.useRouter)(),{setIsLoading:P,setLoadTime:R}=(0,d.r)(),I=(0,i.useSearchParams)(),M=null==I?void 0:I.get("auth-code"),L=null==I?void 0:I.get("refresh-code"),F=(e,t)=>{let a=S!==e;v.B({action:a?"navbar_accordion_expand":"navbar_accordion_collapse",category:"Navigation",label:"Informasi Menu - ".concat(t)}),A(S===e?null:e)},T=async e=>{P(!0);let t=performance.now();try{let t="/".concat(N,"/").concat(e),a=new URLSearchParams;M&&a.append("auth-code",M),L&&a.append("refresh-code",L);let s=a.toString();if(s&&(t+="?".concat(s)),e.startsWith("http://")||e.startsWith("https://")){let t=window.location.hostname,a=t.includes("-stg.oss.go.id"),s={"https://oss.go.id":"https://ujicoba-stg.oss.go.id","https://beranda.oss.go.id":"https://beranda-stg.oss.go.id","https://perizinan.oss.go.id":"https://perizinan-stg.oss.go.id","https://pengawasan.oss.go.id":"https://pengawasan-stg.oss.go.id","https://peralatan.oss.go.id":"https://peralatan-stg.oss.go.id"},n=e;if("localhost"===t||"127.0.0.1"===t){for(let[t,a]of Object.entries({"https://ujicoba-stg.oss.go.id":"http://localhost","https://beranda-stg.oss.go.id":"http://localhost","https://perizinan-stg.oss.go.id":"http://localhost","https://pengawasan-stg.oss.go.id":"http://localhost","https://peralatan-stg.oss.go.id":"http://localhost"}))if(e.startsWith(t)){let s=window.location.port?":".concat(window.location.port):":3000";n=e.replace(t,"".concat(a).concat(s));break}for(let[t]of Object.entries(s))if(e.startsWith(t)){let a=window.location.port?":".concat(window.location.port):":3000";n=e.replace(t,"http://localhost".concat(a));break}if(n.startsWith("http://localhost")){let e=new URL(n);await C.push(e.pathname+e.search+e.hash)}else window.location.href=n}else if(a){for(let[t,a]of Object.entries(s))if(e.startsWith(t)){n=e.replace(t,a);break}window.location.href=n}else window.location.href=e}else await C.push(t)}finally{R(performance.now()-t),P(!1)}null==y||y()};return(0,s.jsx)("div",{ref:_,className:"absolute z-40 w-full grid-cols-1 border-t border-oss-gray-100 bg-white lg:left-32 lg:right-72 lg:mt-0 lg:max-w-[800px] lg:rounded-2xl lg:shadow-md 3xl:left-1/4",children:(0,s.jsxs)("div",{className:"flex flex-col gap-6 py-6 lg:gap-0 lg:py-0",children:[(0,s.jsxs)("div",{className:"hidden flex-row lg:flex",children:[(0,s.jsx)("div",{className:"flex-shrink-0 flex-col gap-2 border-r border-gray-200 p-4",children:E.categories.map((e,t)=>(0,s.jsxs)("div",{onClick:()=>A(t),className:"flex cursor-pointer items-center gap-3 border-l-4 px-4 py-3 hover:bg-oss-gray-25 hover:text-oss-red-500 ".concat(S===t?"border-[#9d1f15] text-oss-red-500":"border-transparent text-oss-base-black"),children:[e.icon&&e.icon.startsWith("/")?(0,s.jsx)(o.default,{src:e.icon,alt:e.title,width:20,height:20}):e.icon?(0,s.jsx)("span",{className:"ti ".concat(e.icon," text-oss-red-500")}):(0,s.jsx)("span",{className:"ti ti-briefcase text-oss-red-500"}),(0,s.jsx)("span",{className:"break-words text-base font-semibold",children:e.title})]},t))}),(0,s.jsx)("div",{className:"flex-auto flex-col p-4",children:null===S?(0,s.jsxs)("div",{className:"flex h-full flex-col items-center justify-center",children:[(0,s.jsx)(o.default,{src:h,alt:"Cari Informasi",width:150,height:52,className:"object-contain"}),(0,s.jsx)("div",{className:"mt-4 text-center text-oss-gray-700",children:null===(t=w.m_navbar)||void 0===t?void 0:t.cari_informasi})]}
1):null===(a=E.categories[S])||void 0===a?void 0:a.items.map((e,t)=>(0,s.jsx)("div",{className:"cursor-pointer rounded-lg px-4 py-3 hover:bg-oss-gray-25 hover:text-oss-red-500",children:(0,s.jsxs)("div",{onClick:()=>T(e.link),className:"flex flex-col gap-1 text-oss-base-black hover:text-oss-red-500",children:[(0,s.jsx)("div",{className:"break-words text-sm font-semibold",children:e.title}),(0,s.jsx)("span",{className:"break-words text-sm text-gray-600",children:e.description})]},t)},t))})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-6 lg:hidden",children:[(0,s.jsx)(f.Z,{className:"w-full",children:(0,s.jsx)("div",{className:"text-lg font-bold text-oss-base-black",children:null==w?void 0:null===(n=w.m_navbar)||void 0===n?void 0:n.informasi})}),E.categories.map((e,t)=>(0,s.jsx)(x.b,{title:e.title,isOpen:S===t,onToggle:()=>F(t,e.title),children:S===t&&e.items.map((e,t)=>(0,s.jsx)("div",{onClick:()=>T(e.link),className:"cursor-pointer bg-oss-gray-25 py-3",children:(0,s.jsxs)(f.Z,{children:[(0,s.jsx)("div",{className:"break-words text-sm font-semibold hover:text-oss-red-500",children:e.title}),(0,s.jsx)("span",{className:"break-words text-sm font-normal text-oss-gray-600",children:e.description})]})},t))},t))]}),(0,s.jsx)(f.Z,{className:"w-full lg:!mx-0 lg:!px-0",children:(0,s.jsxs)("div",{className:"flex items-center justify-between rounded-b-2xl border-t border-oss-gray-200 bg-neutral-50 p-6",children:[(0,s.jsxs)("div",{className:"flex-col items-start justify-between gap-1",children:[(0,s.jsx)("div",{className:"text-sm font-semibold text-oss-base-black",children:null===(c=w.m_navbar)||void 0===c?void 0:null===(l=c.informasi_menu)||void 0===l?void 0:l.faq_title}),(0,s.jsx)("div",{className:"text-sm font-normal text-oss-gray-600",children:null===(m=w.m_navbar)||void 0===m?void 0:null===(u=m.informasi_menu)||void 0===u?void 0:u.faq_desc})]}),(0,s.jsxs)("div",{className:"flex flex-row gap-4",children:[(0,s.jsxs)("button",{onClick:()=>T("/faq"),className:"flex h-[44px] shrink-0 items-center gap-2 rounded-xl border border-oss-blue-500 px-4 py-1 text-sm font-semibold text-oss-blue-500 hover:bg-[#EBF4FF]",children:[(0,s.jsx)(o.default,{src:"/svg/FAQ.svg",alt:"FAQ",width:20,height:20}),null==w?void 0:null===(p=w.m_navbar)||void 0===p?void 0:null===(g=p.informasi_menu)||void 0===g?void 0:g.faq]}),(0,s.jsxs)("button",{onClick:()=>T("/panduan"),className:"flex h-[44px] shrink-0 items-center gap-2 rounded-xl border border-oss-blue-500 px-4 py-1 text-sm font-semibold text-oss-blue-500 hover:bg-[#EBF4FF]",children:[(0,s.jsx)(o.default,{src:"/svg/PANDUAN.svg",alt:"Panduan",width:20,height:20}),null==w?void 0:null===(j=w.m_navbar)||void 0===j?void 0:null===(b=j.informasi_menu)||void 0===b?void 0:b.panduan]})]})]})})]})})}let p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,[t,a]=(0,r.useState)([]);(0,r.useEffect)(()=>{try{let e=JSON.parse(localStorage.getItem("searchHistory")||"[]");a(e)}catch(e){a([])}},[]);let s=(0,r.useCallback)(e=>{a(e),localStorage.setItem("searchHistory",JSON.stringify(e))},[]),n=(0,r.useCallback)(a=>{if(!a||""===a.trim())return;let n=a.trim();s([n,...t.filter(e=>e!==n)].slice(0,e))},[t,e,s]),l=(0,r.useCallback)(e=>{s(t.filter((t,a)=>a!==e))},[t,s]);return{searchHistory:t,addSearchTerm:n,deleteSearchTerm:l,clearAllHistory:(0,r.useCallback)(()=>{s([])},[s])}},b=r.forwardRef((e,t)=>{var a;let{dictionary:n,lang:o,onClose:d}=e,[c,u]=r.useState(""),[m,x]=r.useState(!1),h=(0,i.useRouter)(),{searchHistory:g,addSearchTerm:b,deleteSearchTerm:j,clearAllHistory:w}=p(),N=e=>{let t=e.trim();t&&(v.U3(t,"Global Search"),b(t),h.push("/".concat(o,"/pencarian?tab=kbli&q=").concat(encodeURIComponent(t))),u(""),d())};return(0,s.jsxs)("div",{ref:t,className:"jsx-a115a0daafb41e3f animate-fadeIn absolute z-40 w-full border-t border-oss-gray-100 bg-white lg:left-72 lg:right-32 lg:-mt-0 lg:max-w-[800px] lg:rounded-b-2xl lg:shadow-2xl 3xl:left-1/3",children:[(0,s.jsx)(f.Z,{className:"lg:!px-0",children:(0,s.jsxs)("div",{className:"jsx-a115a0daafb41e3f flex w-full flex-col gap-6 py-8 lg:px-8",children:[(0,s.jsxs)("div",{className:"jsx-a115a0daafb41e3f relative mx-auto flex w-full",children:[(0,s.jsx)("span",{className:"jsx-a115a0daafb41e3f "+"ti ti-search absolute left-4 top-1/2 -translate-y-1/2 text-xl transition-colors duration-200 ".concat(m?"text-blue-600":"text-gray-400")}),(0,s.jsx)("input",{autoFocus:!0,value:c,onChange:e=>u(e.target.value),onKeyDown:e=>"Enter"===e.key&&N(c),onFocus:()=>x(!0),onBlur:()=>x(!1),placeholder:(null==n?void 0:null===(a=n.m_placeholder)||void 0===a?void 0:a.global_search)||"Cari KBLI, PB UMKU, Regulasi...",className:"jsx-a115a0daafb41e3f w-full rounded-xl border-2 border-gray-200 bg-gradient-to-r from-gray-50 to-white p-4 pl-14 pr-4 text-base text-gray-900 shadow-sm transition-all duration-300 placeholder:text-gray-400 hover:border-blue-300 hover:shadow-md focus:border-blue-500 focus:bg-white focus:outline-none focus:ring-4 focus:ring-blue-500/20"}),c&&(0,s.jsx)("button",{onClick:()=>u(""),className:"jsx-a115a0daafb41e3f absolute right-4 top-1/2 -translate-y-1/2 roun
1ded-full p-1 text-gray-400 transition-all duration-200 hover:bg-gray-100 hover:text-gray-600",children:(0,s.jsx)("span",{className:"jsx-a115a0daafb41e3f ti ti-x text-lg"})})]}),g.length>0&&(0,s.jsxs)("div",{className:"jsx-a115a0daafb41e3f mt-2 flex flex-col gap-4",children:[(0,s.jsxs)("div",{className:"jsx-a115a0daafb41e3f flex items-center justify-between border-b border-gray-100 pb-3",children:[(0,s.jsxs)("div",{className:"jsx-a115a0daafb41e3f flex items-center gap-2",children:[(0,s.jsx)("span",{className:"jsx-a115a0daafb41e3f ti ti-clock-hour-3 text-lg text-gray-400"}),(0,s.jsx)("span",{className:"jsx-a115a0daafb41e3f text-sm font-semibold text-gray-700",children:n.m_navbar.riwayat_pencarian||"Riwayat Pencarian"})]}),(0,s.jsxs)("button",{onClick:w,className:"jsx-a115a0daafb41e3f group flex items-center gap-1 rounded-lg px-3 py-1.5 text-xs font-medium text-gray-500 transition-all duration-200 hover:bg-red-50 hover:text-red-600",children:[(0,s.jsx)("span",{className:"jsx-a115a0daafb41e3f ti ti-trash text-sm"}),(0,s.jsx)("span",{className:"jsx-a115a0daafb41e3f",children:n.m_navbar.hapus_semua||"Hapus Semua"})]})]}),(0,s.jsx)("div",{className:"jsx-a115a0daafb41e3f flex flex-col gap-2",children:g.slice(0,5).map((e,t)=>(0,s.jsxs)("div",{className:"jsx-a115a0daafb41e3f group flex items-center justify-between rounded-lg border border-transparent p-3 transition-all duration-200 hover:border-blue-100 hover:bg-gradient-to-r hover:from-blue-50 hover:to-transparent hover:shadow-sm",children:[(0,s.jsxs)("div",{onClick:()=>N(e),className:"jsx-a115a0daafb41e3f flex flex-1 cursor-pointer items-center gap-3",children:[(0,s.jsx)("div",{className:"jsx-a115a0daafb41e3f flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-full bg-gray-100 transition-all duration-200 group-hover:bg-blue-100",children:(0,s.jsx)("span",{className:"jsx-a115a0daafb41e3f ti ti-search text-sm text-gray-500 group-hover:text-blue-600"})}),(0,s.jsx)("span",{className:"jsx-a115a0daafb41e3f leading-relaxed flex-1 self-center text-sm font-medium text-gray-700 group-hover:text-blue-700",children:e})]}),(0,s.jsx)("button",{onClick:()=>j(t),className:"jsx-a115a0daafb41e3f flex h-7 w-7 flex-shrink-0 items-center justify-center rounded-full text-gray-400 opacity-0 transition-all duration-200 hover:bg-red-100 hover:text-red-600 group-hover:opacity-100",children:(0,s.jsx)("span",{className:"jsx-a115a0daafb41e3f ti ti-x text-sm"})})]},t))})]}),0===g.length&&(0,s.jsxs)("div",{className:"jsx-a115a0daafb41e3f flex flex-col items-center justify-center gap-3 py-8 text-center",children:[(0,s.jsx)("div",{className:"jsx-a115a0daafb41e3f flex h-16 w-16 items-center justify-center rounded-full bg-gradient-to-br from-blue-100 to-blue-50",children:(0,s.jsx)("span",{className:"jsx-a115a0daafb41e3f ti ti-search text-3xl text-blue-500"})}),(0,s.jsxs)("div",{className:"jsx-a115a0daafb41e3f flex flex-col gap-1",children:[(0,s.jsx)("p",{className:"jsx-a115a0daafb41e3f text-sm font-semibold text-gray-700",children:"Mulai Pencarian Anda"}),(0,s.jsx)("p",{className:"jsx-a115a0daafb41e3f text-xs text-gray-500",children:"Cari KBLI, PB UMKU, Regulasi, dan informasi lainnya"})]})]})]})}),(0,s.jsx)(l(),{id:"a115a0daafb41e3f",children:"@-webkit-keyframes fadeIn{from{opacity:0;-webkit-transform:translatey(-10px);transform:translatey(-10px)}to{opacity:1;-webkit-transform:translatey(0);transform:translatey(0)}}@-moz-keyframes fadeIn{from{opacity:0;-moz-transform:translatey(-10px);transform:translatey(-10px)}to{opacity:1;-moz-transform:translatey(0);transform:translatey(0)}}@-o-keyframes fadeIn{from{opacity:0;-o-transform:translatey(-10px);transform:translatey(-10px)}to{opacity:1;-o-transform:translatey(0);transform:translatey(0)}}@keyframes fadeIn{from{opacity:0;-webkit-transform:translatey(-10px);-moz-transform:translatey(-10px);-o-transform:translatey(-10px);transform:translatey(-10px)}to{opacity:1;-webkit-transform:translatey(0);-moz-transform:translatey(0);-o-transform:translatey(0);transform:translatey(0)}}.animate-fadeIn.jsx-a115a0daafb41e3f{-webkit-animation:fadeIn.2s ease-out;-moz-animation:fadeIn.2s ease-out;-o-animation:fadeIn.2s ease-out;animation:fadeIn.2s ease-out}"})]})});function j(e){let{size:t=30}=e,[a]=(0,r.useState)(()=>Date.now().toString()),n="https://api.dicebear.com/9.x/bottts/svg?seed=".concat(a,"&backgroundColor=transparent&size=").concat(t);return(0,s.jsx)(o.default,{src:n,alt:"Random avatar",width:t,height:t,unoptimized:!0,className:"mr-2 rounded-md bg-gray-200"})}b.displayName="PencarianDropdown";var w=a(77685);function N(e){var t,a,n,l,o,i,d,c,u,m,x,h;let{checked:f,profile:g,dictionary:p}=e,[b,N]=(0,r.useState)(!1),y=(0,r.useRef)(null);if((0,r.useEffect)(()=>{function e(e){y.current&&!y.current.contains(e.target)&&N(!1)}if(b)return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[b]),!f)return null;let k=async()=>{v.kO("Logout","Auth Section");try{await w.Z.logout()}catch(e){w.Z.clearAuthData()}};if(g){let e=(null==g?void 0:null===(l=g.data)||void 0===l?void 0:null===(n=l.data_menu)||void 0===n?void 0:n.nama_akun)||"",t=(null==g?void 0:null===(i=g.data)||void 0===i?void 0:null===(o=i.data_menu)||void 0===o?void 0:o.jenis_pelaku_usaha)||null;return e.split(" ").map(e=>e.charAt(0).toUpperCase()).join(""),(0,s.jsxs)("div",{className:"relative flex flex-col",ref:y,children:[(0,s.jsxs)("div",{className:"hidden lg:block",children:[(0,s.jsxs)("div",{className:"flex cursor-pointer items-center gap-3 rounded-lg px-3 py-2 transition-colors hover:bg-gray-50",onClick:()=>{v.kO("Profile Dropdown Toggle","Auth Section"),N(!b)},children:[(0,s.jsx)("div",{className:"to-purple-600 h-8 w-8 overflow-hidden rounded-full bg-gradient-to-br from-blue-500",children:(0,s.jsx)(j,{size:32})}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:"text-sm font-semibold text-gray-900",children:e}),t&&(0,s.jsx)("span",{className:"text-xs text-gray-500",children:t})]}),(0,s.jsx)("span",{className:"ti text-gray-400 transition-transform ".concat(b?"ti-chevron-up":"ti-chevron-down")})]}),b&&(0,s.jsxs)("div",{className:"absolute right-0 top-full z-50 mt-2 w-56 rounded-xl border border-gray-200 bg-white shadow-lg",children:[(0,s.jsx)("div",{className:"p-4",children:(0,s.jsxs)("div",{className:"flex items-center gap-3 border-b border-gray-100 pb-3",children:[(0,s.jsx)("div",{className:"to-purple-600 h-10 w-10 overflow-hidden rounded-full bg-gradient-to-br from-blue-500",children:(0,s.jsx)(j,{size:40})}),(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:"text-sm font-semibold text-gray-900",children:e}),t&&(0,s.jsx)("span",{className:"text-xs text-gray-500",children:t})]})]})}),(0,s.jsxs)("div",{className:"py-2",children:[(0,s.jsxs)("button",{onClick:()=>{v.kO("Profile Menu","Auth Section"),N(!1)},className:"flex w-full items-center gap-3 px-4 py-2 text-sm text-gray-700 transition-colors hover:bg-gray-50",children:[(0,s.jsx)("span",{className:"ti ti-user text-gray-400"}),(null==p?void 0:null===(d=p.m_navbar)||void 0===d?void 0:d.profile)||"Profile"]}),(0,s.jsxs)("button",{onClick:()=>{v.kO("Settings Menu","Auth Section"),N(!1)},className:"flex w-full items-center gap-3 px-4 py-2 text-sm text-gray-700 transition-colors hover:bg-gray-50",children:[(0,s.jsx)("span",{className:"ti ti-settings text-gray-400"}),(null==p?void 0:null===(c=p.m_navbar)||void 0===c?void 0:c.pengaturan)||"Pengaturan"]}),(0,s.jsx)("hr",{className:"my-2"}),(0,s.jsxs)("button",{onClick:k,className:"flex w-full items-center gap-3 px-4 py-2 text-sm text-red-600 transition-colors hover:bg-red-50",children:[(0,s.jsx)("span",{className:"ti ti-logout text-red-500"}),(null==p?void 0:null===(u=p.m_navbar)||void 0===u?void 0:u.keluar)||"Keluar"]})]})]})]}),(0,s.jsxs)("div",{className:"flex flex-col lg:hidden",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"to-purple-600 h-10 w-10 overflow-hidden rounded-full bg-gradient-to-br from-blue-500",children:(0,s.jsx)(j,{size:40})}),(0,s.jsx)("div",{className:"flex flex-col",children:(0,s.jsx)("span",{className:"text-sm font-semibold text-gray-900",children:e})})]}),(0,s.jsxs)("div",{className:"mt-4 space-y-2",children:[(0,s.jsxs)("button",{className:"flex w-full items-center gap-3 rounded-lg px-3 py-2 text-sm text-gray-700 transition-colors hover:bg-gray-50",onClick:()=>{v.kO("Profile Menu","Auth Section - Mobile")},children:[(0,s.jsx)("span",{className:"ti ti-user text-gray-400"}),(null==p?void 0:null===(m=p.m_navbar)||void 0===m?void 0:m.profile)||"Profile"]}),(0,s.jsxs)("button",{className:"flex w-full items-center gap-3 rounded-lg px-3 py-2 text-sm text-gray-700 transition-colors hover:bg-gray-50",onClick:()=>{v.kO("Settings Menu","Auth Section - Mobile")},children:[(0,s.jsx)("span",{className:"ti ti-settings text-gray-400"}),(null==p?void 0:null===(x=p.m_navbar)||void 0===x?void 0:x.pengaturan)||"Pengaturan"]}),(0,s.jsxs)("button",{onClick:k,className:"flex w-full items-center gap-3 rounded-lg px-3 py-2 text-sm text-red-600 transition-colors hover:bg-red-50",children:[(0,s.jsx)("span",{className:"ti ti-logout text-red-500"}),(null==p?void 0:null===(h=p.m_navbar)||void 0===h?void 0:h.keluar)||"Keluar"]})]}),(0,s.jsx)("hr",{className:"mt-4 w-full flex-shrink-0 border-t border-gray-200"})]})]})}return(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("button",{onClick:()=>{v.kO("Register","Auth Section"),window.location.href="http://ui-login.oss.go.id/register"},className:"h-11 rounded-xl border border-oss-blue-500 px-4 text-sm font-semibold text-oss-blue-500 hover:bg-blue-50",children:null==p?void 0:null===(t=p.m_navbar)||void 0===t?void 0:t.daftar}),(0,s.jsx)("button",{onClick:()=>{v.kO("Login","Auth Section"),window.location.href="http://ui-login.oss.go.id/login"},className:"h-11 rounded-xl bg-oss-blue-500 px-4 text-sm font-semibold text-white hover:bg-blue-700",children:null==p?void 0:null===(a=p.m_navbar)||void 0===a?void 0:a.masuk})]})}var y=a(70408),k=a(50340),_=a(605);function S(e){var t,a,n,l,r;let{lang:o,dictionary:i,homeHref:d,guideHref:c,faqHref:u,onNavigate:m,onToggle:x,onCloseMenu:h}=e,f=e=>()=>{m(e),h()};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{onClick:f(d),className:"cursor-pointer font-semibold text-gray-900",children:null==i?void 0:null===(t=i.m_navbar)||void 0===t?void 0:t.beranda}),(0,s.jsxs)("div",{onClick:()=>x("informasi"),className:"flex cursor-pointer items-center justify-between font-semibold text-gray-900",children:[null==i?void 0:null===(a=i.m_navbar)||void 0===a?void 0:a.informasi,(0,s.jsx)("span",{className:"ti ti-chevron-right ml-1"})]}),(0,s.jsx)("div",{onClick:f(c),className:"cursor-pointer font-semibold text-gray-900",children:null==i?void 0:null===(n=i.m_navbar)||void 0===n?void 0:n.panduan}),(0,s.jsx)("div",{onClick:f(u),className:"cursor-pointer font-semibold text-gray-900",children:null==i?void 0:null===(l=i.m_navbar)||void 0===l?void 0:l.faq}),(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsx)("span",{className:"font-semibold text-gray-900",children:null==i?void 0:null===(r=i.m_navbar)||void 0===r?void 0:r.pengaturan_bahasa}),(0,s.jsx)(_.Z,{lang:o,dictionary:i,variant:"mobile"})]})]})}function A(e){var t,a;let{lang:n,logo:l,dictionary:r,activeDropdown:i,isTabActive:d,onNavigate:c,onToggle:u,homeHref:m,guideHref:x}=e;return(0,s.jsxs)("div",{className:"hidden cursor-pointer items-center space-x-10 lg:flex",children:[(0,s.jsx)(o.default,{src:l.localization[n].header.image,alt:"OSS Logo",width:128,height:38,className:"object-contain",onClick:()=>{v.kO("Logo Click","Header"),c(m)}}),(0,s.jsxs)("div",{className:"flex h-[72px] items-center",children:[(0,s.jsx)("div",{className:"flex h-full cursor-pointer items-center border-b-4 px-3 text-sm font-bold transition-colors duration-200 xl:px-6 ".concat(d("")&&!i?"border-oss-red-500 text-oss-red-500":"border-transparent text-oss-gray-700 hover:text-oss-red-500"),onClick:()=>{v.uu(m,"Main Navigation"),c(m)},children:null==r?void 0:null===(t=r.m_navbar)||void 0===t?void 0:t.beranda}),(0,s.jsxs)("div",{"data-dropdown-trigger":"informasi",onClick:()=>{v.kO("Informasi Dropdown","Main Navigation"),u("informasi")},className:"flex h-full cursor-pointer items-center gap-2 border-b-4 px-3 text-sm font-bold transition-colors duration-200 xl:px-6 ".concat(d("informasi")||"informasi"===i?"border-oss-red-500 text-oss-red-500":"border-transparent text-oss-gray-700 hover:text-oss-red-500"),children:[null==r?void 0:null===(a=r.m_navbar)||void 0===a?void 0:a.informasi,(0,s.jsx)("span",{className:"ti text-xl ".concat("informasi"===i?"ti-chevron-up text-oss-red-500":"ti-chevron-down")})]})]})]})}var E=a(54887);function C(e,t){var a,s;return(null===(s=e.localization)||void 0===s?void 0:null===(a=s[t||"id"])||void 0===a?void 0:a.menu)||e.name}function P(){if("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname){let e=window.location.port?":".concat(window.location.port):":3000",t="http://localhost".concat(e);return{PERIZINAN:t+"/#/",PENGAWASAN:t+"/#/",INFORMASI:t,BERANDA:t+"/#/",PERALATAN:t
1+"/#/"}}return{PERIZINAN:"https://perizinan.oss.go.id/#/",PENGAWASAN:"https://pengawasan.oss.go.id/#/",INFORMASI:"https://oss.go.id/",BERANDA:"https://beranda.oss.go.id/",PERALATAN:"https://peralatan.oss.go.id/#/"}}function R(e,t,a){if(!e.path||"Y"===e.flag_dummy)return;let s=P(),n="localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname;if("INFORMASI"===e.module||n&&e.module&&s[e.module])a(t(e.path));else if(e.module&&s[e.module]){let t=function(e,t){let a=P();return e&&a[e]?a[e]+(t?t.startsWith("/")?t.substring(1):t:""):t||"/"}(e.module,e.path);window.location.assign(t)}else a(t(e.path))}let I=e=>!!(null==e?void 0:e.SubMenus)&&e.SubMenus.length>0;function M(e,t){let a=[...e].sort((e,t)=>{var a,s;return(null!==(a=e.menu_order)&&void 0!==a?a:0)-(null!==(s=t.menu_order)&&void 0!==s?s:0)});return t?a.filter(e=>"Y"!==e.flag_dummy):a}let L=e=>e?document.querySelector('[data-menuglobal-trigger="'.concat(e,'"]')):null,F=(e,t,a)=>{var s;if(!e)return;let n=L(e.id);if(!n)return;let l=M(null!==(s=e.SubMenus)&&void 0!==s?s:[],!1),r=300;l.length>0&&(r=l.some(e=>{var t,a;return(null!==(a=null===(t=e.SubMenus)||void 0===t?void 0:t.length)&&void 0!==a?a:0)>0})?1080:900),a(n.getBoundingClientRect(),r,t)};function T(e){var t,a,n,i,d,c,u,m,x,h,v,g,p,b,j,w,N,y;let{open:k,onClose:_,buildHref:S,onNavigate:A,lang:P,dictionary:T,placeholderImage:z,allMenuItems:O}=e,B=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"__be_menu_portal__",[t,a]=(0,r.useState)(null),s=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{if("undefined"==typeof document)return;let t=document.getElementById(e);return t?s.current=!1:((t=document.createElement("div")).setAttribute("id",e),t.style.position="fixed",t.style.pointerEvents="none",t.style.inset="0px",document.body.appendChild(t),s.current=!0),a(t),()=>{if(s.current&&t&&t.parentNode)try{t.parentNode.removeChild(t)}catch(e){}}},[e]),t}(),H=(0,r.useRef)(null),[W,D]=(0,r.useState)([]),[U,Z]=(0,r.useState)(new Set);(0,r.useEffect)(()=>{D([]),Z(new Set)},[k.root]),(0,r.useEffect)(()=>{if(!k.root)return;let e=e=>"Escape"===e.key&&_(),t=e=>{var t;let a=e.target;(null==a?void 0:null===(t=a.closest)||void 0===t?void 0:t.call(a,"[data-menuglobal-trigger]"))||!H.current||H.current.contains(a)||_()};return document.addEventListener("keydown",e),document.addEventListener("mousedown",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("mousedown",t)}},[k.root,_]);let[q,G]=(0,r.useState)({left:0,top:0,maxHeight:0}),J=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=e.bottom,n=t||860,l=e.left;a&&(l=e.left+e.width/2-n/2),l+n+8>window.innerWidth&&(l=window.innerWidth-n-8),l<8&&(l=8);let r=window.innerHeight-s-16;G({left:l,top:s,maxHeight:r})},K=(0,r.useRef)(!1);(0,r.useLayoutEffect)(()=>{k.anchorRect&&(J(k.anchorRect),K.current=!1)},[k.anchorRect]),(0,r.useEffect)(()=>{k.root&&(K.current=!1)},[k.root]);let Y=M(null!==(b=null===(t=k.root)||void 0===t?void 0:t.SubMenus)&&void 0!==b?b:[],!1),Q=null!==(j=W[0])&&void 0!==j?j:null,V=Q?M(null!==(w=Q.SubMenus)&&void 0!==w?w:[],!1):[],X=null!==(N=W[1])&&void 0!==N?N:null,$=!!X&&I(X),ee=$?function(e){var t;let a=[],s=e=>{var t;let n=null!==(t=e.SubMenus)&&void 0!==t?t:[];if(0===n.length){a.push(e);return}n.forEach(s)};return(null!==(t=e.SubMenus)&&void 0!==t?t:[]).forEach(s),M(a,!1)}(X):[],et=!Q;Q&&V.length,V.some(e=>I(e));let ea=(0,r.useMemo)(()=>{if(!k.root||!O||0===O.length)return!1;let e=O[O.length-1];return(null==e?void 0:e.id)===k.root.id},[k.root,O]);if((0,r.useEffect)(()=>{if(!k.root)return;F(k.root,ea,J);let e=0,t=()=>{e&&cancelAnimationFrame(e),e=requestAnimationFrame(()=>{F(k.root,ea,J)})},a=L(k.root.id),s=a?new ResizeObserver(()=>t()):null;return window.addEventListener("scroll",t,{passive:!0}),window.addEventListener("resize",t),window.addEventListener("orientationchange",t),a&&s&&s.observe(a),()=>{e&&cancelAnimationFrame(e),window.removeEventListener("scroll",t),window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t),s&&a&&s.unobserve(a),null==s||s.disconnect()}},[k.root,ea]),(0,r.useEffect)(()=>{var e,t;if(!k.root||K.current)return;let a=M(null!==(t=k.root.SubMenus)&&void 0!==t?t:[],!1),s=a.length>0,n=300;s&&(n=a.some(e=>{var t,a;return(null!==(a=null===(t=e.SubMenus)||void 0===t?void 0:t.length)&&void 0!==a?a:0)>0})?1080:900);let l=L(null===(e=k.root)||void 0===e?void 0:e.id);l&&(J(l.getBoundingClientRect(),n,ea),K.current=!0)},[k.root,ea]),!k.root||!B)return null;let es="INFORMASI"===(null!==(y=null===(a=k.root)||void 0===a?void 0:a.module)&&void 0!==y?y:"").toUpperCase();return(0,E.createPortal)((0,s.jsxs)("div",{ref:H,style:{left:q.left,top:q.top,pointerEvents:"auto"},onMouseEnter:e=>e.stopPropagation(),className:"jsx-9293db8e2055c958 absolute z-[999]",children:[(0,s.jsxs)("div",{style:{maxHeight:q.maxHeight,minWidth:560},className:"jsx-9293db8e2055c958 "+"border border-gray-200 bg-white shadow-xl ".concat((null===(i=k.root)||void 0===i?void 0:null===(n=i.name)||void 0===n?void 0:n.toUpperCase())==="INFORMASI"?"rounded-t-lg":"rounded-lg"),children:[(0,s.jsxs)("div",{className:"jsx-9293db8e2055c958 flex max-w-[90vw] overflow-auto",children:[(0,s.jsx)("div",{className:"jsx-9293db8e2055c958 min-w-[400px] max-w-[420px] border-r border-gray-100 p-5",children:(0,s.jsx)("ul",{className:"jsx-9293db8e2055c958 max-h-[70vh] overflow-y-auto py-2 pr-2",children:Y.map(e=>{let t=I(e),a=(null==Q?void 0:Q.id)===e.id;return(0,s.jsx)("li",{className:"jsx-9293db8e2055c958",children:(0,s.jsxs)("button",{onClick:()=>{t?(D([e]),Z(new Set)):(R(e,S,A),_())},className:"jsx-9293db8e2055c958 "+(["group relative flex w-full items-center justify-between gap-4 roun
1ded-lg px-5 py-3 text-left transition-colors",a?"text-oss-red-500":"text-gray-800 hover:bg-gray-50 group-hover:text-oss-red-500"].join(" ")||""),children:[a&&(0,s.jsx)("span",{className:"jsx-9293db8e2055c958 absolute left-0 top-0 h-full w-[4px] bg-oss-red-500"}),(0,s.jsxs)("div",{className:"jsx-9293db8e2055c958 flex-1",children:[(0,s.jsx)("span",{className:"jsx-9293db8e2055c958 break-words font-semibold group-hover:text-oss-red-500",children:C(e,P)}),e.description&&(0,s.jsx)("div",{className:"jsx-9293db8e2055c958 mt-1 break-words text-xs text-gray-500 group-hover:text-gray-600",children:e.description})]})]})},e.id)})})}),Q&&(0,s.jsx)("div",{className:"jsx-9293db8e2055c958 min-w-[500px] max-w-[550px] border-r border-gray-100 p-5",children:(0,s.jsx)("ul",{className:"jsx-9293db8e2055c958 max-h-[70vh] space-y-1 overflow-y-auto py-2 pr-2",children:V.map(e=>{var t;let a=I(e),n=(null==X?void 0:X.id)===e.id,l=U.has(e.id);return(0,s.jsxs)("li",{className:"jsx-9293db8e2055c958 w-full",children:[(0,s.jsxs)("button",{onClick:()=>{if(a){let t=new Set;U.has(e.id)||t.add(e.id),Z(t)}else R(e,S,A),_()},className:"jsx-9293db8e2055c958 "+(["group relative flex w-full items-center justify-between gap-4 rounded-lg px-5 py-3 text-left transition-colors",n?"bg-gray-50 text-oss-red-500":"text-gray-800 hover:bg-gray-50"].join(" ")||""),children:[l&&(0,s.jsx)("span",{className:"jsx-9293db8e2055c958 absolute left-0 top-0 h-full w-[4px] bg-oss-red-500"}),(0,s.jsxs)("div",{className:"jsx-9293db8e2055c958 flex-1",children:[(0,s.jsx)("span",{className:"jsx-9293db8e2055c958 "+(["break-words font-semibold group-hover:text-oss-red-500",l?"text-oss-red-500":"text-gray-800"].join(" ")||""),children:C(e,P)}),e.description&&(0,s.jsx)("div",{className:"jsx-9293db8e2055c958 mt-1 break-words text-xs text-gray-500 group-hover:text-gray-600",children:e.description})]}),a&&(0,s.jsx)("span",{className:"jsx-9293db8e2055c958 "+(["ti text-base text-gray-400 group-hover:text-oss-red-500",l?"ti-chevron-up text-oss-red-500":"ti-chevron-down"].join(" ")||"")})]}),a&&l&&(0,s.jsx)("ul",{className:"jsx-9293db8e2055c958 ml-6 mt-2 space-y-1 pl-4",children:M(null!==(t=e.SubMenus)&&void 0!==t?t:[],!1).map(e=>{let t=I(e);return(0,s.jsx)("li",{className:"jsx-9293db8e2055c958",children:(0,s.jsx)("button",{onClick:()=>{t?D([Q,e]):(R(e,S,A),_())},className:"jsx-9293db8e2055c958 group w-full rounded-md px-3 py-2 text-left transition-colors hover:bg-gray-50",children:(0,s.jsxs)("div",{className:"jsx-9293db8e2055c958 flex items-start gap-3",children:[e.icon&&(0,s.jsx)("span",{className:"jsx-9293db8e2055c958 "+"ti ".concat(e.icon," mt-1 text-base text-oss-red-500")}),(0,s.jsxs)("div",{className:"jsx-9293db8e2055c958 flex-1",children:[(0,s.jsxs)("div",{className:"jsx-9293db8e2055c958 flex items-center justify-between break-words font-semibold text-gray-900 group-hover:text-oss-red-500",children:[(0,s.jsx)("span",{className:"jsx-9293db8e2055c958 break-words",children:C(e,P)}),t&&(0,s.jsx)("span",{className:"jsx-9293db8e2055c958 ti ti-chevron-right ml-2 flex-shrink-0 text-gray-400 group-hover:text-oss-red-500"})]}),e.description&&(0,s.jsx)("div",{className:"jsx-9293db8e2055c958 mt-1 break-words text-sm text-gray-600 group-hover:text-gray-700",children:e.description}),e.component&&(0,s.jsx)("div",{className:"jsx-9293db8e2055c958 mt-1 break-words text-xs font-medium text-oss-blue-500",children:e.component})]})]})})},e.id)})})]},e.id)})})}),et&&(0,s.jsx)("div",{className:"jsx-9293db8e2055c958 min-w-[360px] max-w-[420px]",children:(0,s.jsx)("div",{className:"jsx-9293db8e2055c958 h-full w-full p-6",children:(0,s.jsxs)("div",{className:"jsx-9293db8e2055c958 flex min-h-[320px] flex-col items-center justify-center",children:[(0,s.jsx)(o.default,{src:z,alt:"Cari Informasi",width:150,height:52,className:"object-contain"}),(0,s.jsx)("div",{className:"jsx-9293db8e2055c958 mt-4 text-center text-oss-gray-700",children:null==T?void 0:null===(d=T.m_navbar)||void 0===d?void 0:d.cari_informasi})]})})}),$&&(0,s.jsxs)("div",{className:"jsx-9293db8e2055c958 min-w-[360px] max-w-[480px] p-5",children:[(0,s.jsxs)("div",{className:"jsx-9293db8e2055c958 relative mb-4 flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"jsx-9293db8e2055c958 pl-3 font-semibold text-gray-900",children:[(0,s.jsx)("span",{className:"jsx-9293db8e2055c958 absolute left-0 top-0 h-full w-[4px] rounded bg-oss-red-500"}),C(X,P)]}),(0,s.jsx)("span",{className:"jsx-9293db8e2055c958 ti ti-chevron-up text-oss-red-500"})]}),(0,s.jsx)("ul",{className:"jsx-9293db8e2055c958 max-h-[66vh] list-none space-y-4 overflow-y-auto",children:ee.map(e=>{let t=e.path;return(0,s.jsx)("li",{className:"jsx-9293db8e2055c958 rounded-md px-2",children:(0,s.jsx)("button",{onClick:()=>{t&&(R(e,S,A),_())},className:"jsx-9293db8e2055c958 group w-full rounded-md text-left transition-colors hover:bg-gray-50",children:(0,s.jsxs)("div",{className:"jsx-9293db8e2055c958 flex items-start gap-3 p-2",children:[e.icon&&(0,s.jsx)("span",{className:"jsx-9293db8e2055c958 "+"ti ".concat(e.icon," mt-1 text-lg text-oss-red-500")}),(0,s.jsxs)("div",{className:"jsx-9293db8e2055c958 flex-1",children:[(0,s.jsx)("div",{className:"jsx-9293db8e2055c958 break-words font-semibold text-gray-900 group-hover:text-oss-red-500",children:C(e,P)}),e.description&&(0,s.jsx)("div",{className:"jsx-9293db8e2055c958 mt-1 break-words text-sm text-gray-600 group-hover:text-gray-700",children:e.description}),e.component&&(0,s.jsx)("div",{className:"jsx-9293db8e2055c958 mt-1 break-words text-xs font-medium text-oss-blue-500",children:e.component})]})]})})},e.id)})})]})]}),es&&(0,s.jsx)(f.Z,{className:"w-full lg:!mx-0 lg:!px-0",children:(0,s.jsxs)("div",{className:"jsx-9293db8e2055c958 flex items-center justify-between rounded-b-2xl border-t border-oss-gray-200 bg-neutral-50 p-6 shadow-md",children:[(0,s.jsxs)("div",{className:"jsx-9293db8e2055c958 flex-col items-start justify-between gap-1",children:[(0,s.jsx)("div",{className:"jsx-9293db8e2055c958 text-sm font-semibold text-oss-base-black",children:null===(u=T.m_navbar)||void 0===u?void 0:null===(c=u.informasi_menu)||void 0===c?void 0:c.faq_title}),(0,s.jsx)("div",{className:"jsx-9293db8e2055c958 text-sm font-normal text-oss-gray-600",children:null===(x=T.m_navbar)||void 0===x?void 0:null===(m=x.informasi_menu)||void 0===m?void 0:m.faq_desc})]}),(0,s.jsxs)("div",{className:"jsx-9293db8e2055c958 flex flex-row gap-4",children:[(0,s.jsxs)("button",{onClick:()=>{A(S("/faq")),_()},className:"jsx-9293db8e2055c958 flex h-[44px] shrink-0 items-center gap-2 rounded-xl border border-oss-blue-500 px-4 py-1 text-sm font-semibold text-oss-blue-500 hover:bg-[#
1EBF4FF]",children:[(0,s.jsx)(o.default,{src:"/svg/FAQ.svg",alt:"FAQ",width:20,height:20}),null==T?void 0:null===(v=T.m_navbar)||void 0===v?void 0:null===(h=v.informasi_menu)||void 0===h?void 0:h.faq]}),(0,s.jsxs)("button",{onClick:()=>{A(S("/panduan")),_()},className:"jsx-9293db8e2055c958 flex h-[44px] shrink-0 items-center gap-2 rounded-xl border border-oss-blue-500 px-4 py-1 text-sm font-semibold text-oss-blue-500 hover:bg-[#EBF4FF]",children:[(0,s.jsx)(o.default,{src:"/svg/PANDUAN.svg",alt:"Panduan",width:20,height:20}),null==T?void 0:null===(p=T.m_navbar)||void 0===p?void 0:null===(g=p.informasi_menu)||void 0===g?void 0:g.panduan]})]})]})})]}),(0,s.jsx)(l(),{id:"9293db8e2055c958",children:"::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-thumb{-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}::-webkit-scrollbar-thumb:hover{background:#dbdcdeff}::-webkit-scrollbar-track{-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}*{scrollbar-width:thin;scrollbar-color:#f4f5f5#fff}"})]}),B)}function z(){let e=window.location.hostname,t=e.includes("-stg.oss.go.id");if("localhost"===e||"127.0.0.1"===e){let e=window.location.port?":".concat(window.location.port):":3000",t="http://localhost".concat(e);return{PERIZINAN:t+"/#/",PENGAWASAN:t+"/#/",INFORMASI:t,BERANDA:t+"/#/",PERALATAN:t+"/#/",PEMROSESAN:t+"/#/"}}return t?{PERIZINAN:"https://perizinan-stg.oss.go.id/#/",PENGAWASAN:"https://pengawasan-stg.oss.go.id/#/",INFORMASI:"https://ujicoba-stg.oss.go.id",BERANDA:"https://beranda-stg.oss.go.id/#/",PERALATAN:"https://peralatan-stg.oss.go.id/#/",PEMROSESAN:"https://pemrosesan-stg.oss.go.id/#/"}:{PERIZINAN:"https://perizinan.oss.go.id/#/",PENGAWASAN:"https://pengawasan.oss.go.id/#/",INFORMASI:"https://oss.go.id/#/",BERANDA:"https://beranda.oss.go.id/#/",PERALATAN:"https://peralatan.oss.go.id/#/",PEMROSESAN:"https://pemrosesan.oss.go.id/#/"}}let O=e=>!!(null==e?void 0:e.SubMenus)&&e.SubMenus.length>0,B=e=>{var t;return(null===(t=e.name)||void 0===t?void 0:t.trim().toUpperCase())==="BERANDA"};function H(e){let{data:t,hideDummy:a,className:n,buildHref:l,onNavigate:o,lang:d,dictionary:c,placeholderImage:u}=e,m=(0,r.useMemo)(()=>(function(e,t){let a=[...e].sort((e,t)=>{var a,s;return(null!==(a=e.menu_order)&&void 0!==a?a:0)-(null!==(s=t.menu_order)&&void 0!==s?s:0)});return t?a.filter(e=>"Y"!==e.flag_dummy):a})(t,a),[t,a]),x=(0,i.usePathname)(),h=(0,r.useMemo)(()=>x&&x.replace(/^\/(id|en)(?=\/|$)/i,"")||"/",[x]),f=e=>!B(e)&&(function e(t){var a;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t&&(t.path&&"/"!==t.path&&s.push(t.path),(null!==(a=t.SubMenus)&&void 0!==a?a:[]).forEach(t=>e(t,s))),s})(e).some(e=>h.startsWith(e)),[v,g]=(0,r.useState)({anchorRect:null,root:null}),p=(0,r.useRef)({}),b=e=>{var t;if((null===(t=v.root)||void 0===t?void 0:t.id)===e.id){g({anchorRect:null,root:null});return}let a=p.current[e.id];a&&g({anchorRect:a.getBoundingClientRect(),root:e})};return(0,s.jsxs)("div",{className:n,children:[(0,s.jsx)("div",{className:"flex items-center gap-6",children:m.map(e=>{var t,a,n;let r=O(e),i=(null===(t=v.root)||void 0===t?void 0:t.id)===e.id,c=i||f(e);return(0,s.jsx)("div",{className:"relative",children:(0,s.jsxs)("button",{ref:t=>{p.current[e.id]=t},"data-menuglobal-trigger":e.id,className:["group inline-flex h-[72px] items-center gap-2 whitespace-nowrap border-b-4 px-2 text-sm font-bold",c?"border-oss-red-500 text-oss-red-500":"border-transparent text-oss-gray-700 hover:text-oss-red-500"].join(" "),onClick:()=>{r?b(e):function(e,t,a){if(!e.path||"Y"===e.flag_dummy)return;if(B(e)){a(t("/"));return}let s=z(),n=window.location.hostname;if("INFORMASI"===e.module||("localhost"===n||"127.0.0.1"===n)&&e.module&&s[e.module])a(t(e.path));else if(e.module&&s[e.module]){let t=function(e,t){let a=z();if(!e||!a[e])return t||"/";let s=a[e],n=t?t.startsWith("/")?t.substring(1):t:"",l=s.endsWith("/")||!n?"":"/";return s+l+n}(e.module,e.path);window.open(t,"_blank")}else a(t(e.path))}(e,l,o)},children:[(0,s.jsx)("span",{className:"truncate",children:(null===(n=e.localization)||void 0===n?void 0:null===(a=n[d||"id"])||void 0===a?void 0:a.menu)||e.name}),r&&(0,s.jsx)("span",{className:"ti ".concat(i?"ti-chevron-up":"ti-chevron-down"," text-base")})]})},e.id)})}),(0,s.jsx)(T,{open:v,onClose:()=>g({anchorRect:null,root:null}),buildHref:l,onNavigate:o,lang:d,dictionary:c,placeholderImage:u,allMenuItems:m})]})}var W=a(11591),D={src:"/lp/_next/static/media/ICON_MENU.0c3d6d14.svg",height:24,width:24,blurWidth:0,blurHeight:0};function U(){let e=window.location.hostname,t=e.includes("-stg.oss.go.id");if("localhost"===e||"127.0.0.1"===e){let e=window.location.port?":".concat(window.location.port):":3000",t="https://localhost".concat(e);return{PERIZINAN:t+"/#/",PENGAWASAN:t+"/#/",INFORMASI:t,BERANDA:t+"/#/",PERALATAN:t
1+"/#/",PEMROSESAN:t+"/#/"}}return t?{PERIZINAN:"https://perizinan-stg.oss.go.id/#/",PENGAWASAN:"https://pengawasan-stg.oss.go.id/#/",INFORMASI:"https://ujicoba-stg.oss.go.id",BERANDA:"https://beranda-stg.oss.go.id/#/",PERALATAN:"https://peralatan-stg.oss.go.id/#/",PEMROSESAN:"https://pemrosesan-stg.oss.go.id/#/"}:{PERIZINAN:"https://perizinan.oss.go.id/#/",PENGAWASAN:"https://pengawasan.oss.go.id/#/",INFORMASI:"https://oss.go.id",BERANDA:"https://beranda.oss.go.id/#/",PERALATAN:"https://peralatan.oss.go.id/#/",PEMROSESAN:"https://pemrosesan.oss.go.id/#/"}}let Z=U();function q(e,t){let a=[...e].sort((e,t)=>{var a,s;return(null!==(a=e.menu_order)&&void 0!==a?a:0)-(null!==(s=t.menu_order)&&void 0!==s?s:0)});return t?a.filter(e=>"Y"!==e.flag_dummy):a}function G(e){var t,a;let{data:n,hideDummy:l,buildHref:o,onNavigate:i,onCloseMenu:d,lang:c,dictionary:u,guideHref:m,faqHref:x}=e,h=(0,r.useMemo)(()=>q(n,l),[n,l]),[f,v]=(0,r.useState)({}),g=(e,t)=>{v(a=>{let s={...a};if(e in s){for(let a in s)(a===e||s[a]>t)&&delete s[a];return s}for(let e in s)s[e]>=t&&delete s[e];return s[e]=t,s})},p=e=>()=>{i(e),d()};return(0,s.jsx)("nav",{className:"w-full",children:(0,s.jsxs)("ul",{className:"flex flex-col gap-2",children:[h.map(e=>(0,s.jsx)(J,{item:e,level:0,openMap:f,onToggle:g,buildHref:o,onNavigate:e=>{i(e),d()},lang:c},e.id)),m&&(0,s.jsx)("li",{children:(0,s.jsx)("button",{onClick:p(m),className:"group relative flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-left hover:bg-blue-50",style:{paddingLeft:14},children:(0,s.jsxs)("span",{className:"flex min-w-0 items-center gap-3",children:[(0,s.jsx)("span",{className:"ti ti-book text-xl text-oss-blue-500"}),(0,s.jsx)("div",{className:"min-w-0 flex-1",children:(0,s.jsx)("div",{className:"truncate font-semibold text-oss-blue-500",children:(null==u?void 0:null===(t=u.m_navbar)||void 0===t?void 0:t.panduan)||"Panduan"})})]})})}),x&&(0,s.jsx)("li",{children:(0,s.jsx)("button",{onClick:p(x),className:"group relative flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-left hover:bg-blue-50",style:{paddingLeft:14},children:(0,s.jsxs)("span",{className:"flex min-w-0 items-center gap-3",children:[(0,s.jsx)("span",{className:"ti ti-help text-xl text-oss-blue-500"}),(0,s.jsx)("div",{className:"min-w-0 flex-1",children:(0,s.jsx)("div",{className:"truncate font-semibold text-oss-blue-500",children:(null==u?void 0:null===(a=u.m_navbar)||void 0===a?void 0:a.faq)||"FAQ"})})]})})})]})})}function J(e){var t,a,n;let{item:l,level:r,openMap:i,onToggle:d,buildHref:c,onNavigate:u,lang:m}=e,x=q(null!==(t=l.SubMenus)&&void 0!==t?t:[],!1),h=x.length>0,f=l.id in i,v=!h&&l.path&&"Y"!==l.flag_dummy,g=!h&&(!l.path||"Y"===l.flag_dummy);return(0,s.jsxs)("li",{children:[(0,s.jsxs)("button",{className:["group relative flex w-full items-center justify-between gap-3 rounded-lg px-3 py-3 text-left",f?"bg-red-50 text-oss-red-500":"text-gray-900 hover:bg-red-50"].join(" "),style:{paddingLeft:14+12*r},onClick:()=>{h?d(l.id,r):v&&function(e,t,a){if(e.path&&"Y"!==e.flag_dummy){var s;if((null===(s=e.name)||void 0===s?void 0:s.trim().toUpperCase())==="BERANDA"){a(t("/"));return}if(e.module&&Z[e.module]){let t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=U();if(!e||!a[e])return t||"/";let s=a[e],n=t?t.startsWith("/")?t.substring(1):t:"",l=s.endsWith("/")||!n?"":"/";return s+l+n}(e.module,e.path);window.open(t,"_blank")}else a(t(e.path))}}(l,c,u)},disabled:g,children:[f&&(0,s.jsx)("span",{className:"absolute left-0 top-0 h-full w-[4px] bg-oss-red-500"}),(0,s.jsxs)("span",{className:"flex min-w-0 items-center gap-3",children:[l.icon?(0,s.jsx)("span",{className:"ti ".concat(l.icon," text-xl ").concat(f?"text-oss-red-500":g?"text-gray-300":"text-gray-600 group-hover:text-oss-red-500")}):(0,s.jsx)(o.default,{src:D,alt:"icon",width:22,height:22,className:"object-contain"}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("div",{className:["truncate font-semibold",f?"text-oss-red-500":g?"text-gray-300":"group-hover:text-oss-red-500"].join(" "),children:(null===(n=l.localization)||void 0===n?void 0:null===(a=n[m||"id"])||void 0===a?void 0:a.menu)||l.name}),l.description&&(0,s.jsx)("div",{className:"mt-1 truncate text-xs text-gray-500",children:l.description}),l.component&&(0,s.jsx)("div",{className:"mt-1 truncate text-xs font-medium text-oss-blue-500",children:l.component})]})]}),h?(0,s.jsx)("span",{className:["ti text-base",f?"ti-chevron-down text-oss-red-500":"ti-chevron-right text-gray-400 group-hover:text-oss-red-500"].join(" ")}):null]}),h&&f&&(0,s.jsx)("ul",{className:"mt-1 border-l border-oss-gray-100",children:x.map(e=>(0,s.jsx)(J,{item:e,level:r+1,openMap:i,onToggle:d,buildHref:c,onNavigate:u,lang:m},e.id))})]})}function K(e){var t,a;let{lang:n,logo:x}=e,[v,p]=(0,r.useState)(null),[j,w]=(0,r.useState)({}),[_,E]=(0,r.useState)(null),[C,P]=(0,r.useState)(null),[R,I]=(0,r.useState)(null),[M,L]=(0,r.useState)(null),{checked:F,profile:T}=(0,y.a)(),z=(0,i.useRouter)(),O=(0,i.usePathname)(),B=(0,i.useSearchParams)(),{setIsLoading:D,setLoa
1dTime:U}=(0,d.r)(),Z=(0,r.useRef)(null),q=(0,r.useRef)(null),J=(0,r.useRef)(null),K=(0,r.useRef)(!1),Y=(0,r.useRef)(!1),Q=(0,r.useRef)(!1),V=(0,r.useRef)(!1);(0,u.O)([Z,q,J],()=>p(null)),(0,r.useEffect)(()=>{let e=()=>{K.current=!1,Q.current=!1,E(null),P(null)},t=()=>{"undefined"!=typeof document&&document.cookie.includes("p=")||(K.current=!1,Q.current=!1,E(null),P(null))};return window.addEventListener("auth-state-changed",e),window.addEventListener("storage",t),()=>{window.removeEventListener("auth-state-changed",e),window.removeEventListener("storage",t)}},[]),(0,r.useEffect)(()=>{(0,c.R)(n).then(e=>{(0,k.xT)(e)?w({}):w(e)}).catch(()=>w({}))},[n]),(0,r.useEffect)(()=>{(async()=>{if(!T){E(null),P(null),K.current=!1;return}if(!K.current&&!Y.current){Y.current=!0;try{let e=await W.Z.getMenu("");if((0,k.xT)(e)){E(null),P("Menu tidak tersedia"),Y.current=!1;return}(null==e?void 0:e.success)&&Array.isArray(null==e?void 0:e.data)?(E(e.data),P(null),K.current=!0):(E(null),P("Menu tidak tersedia"))}catch(e){E(null),P("Gagal memuat menu")}finally{Y.current=!1}}})()},[T]),(0,r.useEffect)(()=>{(async()=>{if(T){I(null),L(null),Q.current=!1;return}if(!Q.current&&!V.current){V.current=!0;try{let e=await W.Z.getMenuNonLogin("");if((0,k.xT)(e)){I(null),L("Menu tidak tersedia"),V.current=!1;return}(null==e?void 0:e.success)&&Array.isArray(null==e?void 0:e.data)?(I(e.data),L(null),Q.current=!0):(I(null),L("Menu tidak tersedia"))}catch(e){I(null),L("Gagal memuat menu")}finally{V.current=!1}}})()},[T]);let X=async e=>{D(!0);let t=performance.now();try{await z.push("/".concat(n).concat(e)),p(null)}finally{U(performance.now()-t),D(!1)}},$=(null!==(a=null==O?void 0:O.split("/").filter(e=>e&&!["id","en"].includes(e)))&&void 0!==a?a:[])[0]||"",ee=R?(0,m.b)(R):null,et={informasi:ee},ea=e=>p(t=>t===e?null:e),es=()=>{var e,t;return"/?auth-code=".concat(null!==(e=null==B?void 0:B.get("auth-code"))&&void 0!==e?e:"","&refresh-code=").concat(null!==(t=null==B?void 0:B.get("auth-token"))&&void 0!==t?t:"")},en=()=>{var e,t;return"/panduan?auth-code=".concat(null!==(e=null==B?void 0:B.get("auth-code"))&&void 0!==e?e:"","&refresh-code=").concat(null!==(t=null==B?void 0:B.get("auth-token"))&&void 0!==t?t:"")},el=()=>{var e,t;return"/faq?auth-code=".concat(null!==(e=null==B?void 0:B.get("auth-code"))&&void 0!==e?e:"","&refresh-code=").concat(null!==(t=null==B?void 0:B.get("auth-token"))&&void 0!==t?t:"")},er=e=>{var t,a;return"".concat(e||"/","?auth-code=").concat(null!==(t=null==B?void 0:B.get("auth-code"))&&void 0!==t?t:"","&refresh-code=").concat(null!==(a=null==B?void 0:B.get("auth-token"))&&void 0!==a?a:"")},eo=!!T&&Array.isArray(_)&&_.length>0&&!C,ei=!T&&Array.isArray(R)&&R.length>0&&!M;return(0,s.jsxs)("header",{ref:Z,style:{height:72},className:"jsx-cca062bef7d99bd sticky top-0 z-30 bg-white shadow",children:[(0,s.jsx)(f.Z,{children:(0,s.jsxs)("nav",{className:"jsx-cca062bef7d99bd flex h-full items-center justify-between",children:[eo||ei?(0,s.jsxs)("div",{className:"jsx-cca062bef7d99bd hidden h-full w-full grid-cols-[auto,1fr,auto] items-center gap-6 lg:grid",children:[(0,s.jsx)("div",{className:"jsx-cca062bef7d99bd flex h-full items-center",children:(0,s.jsx)(o.default,{src:x.localization[n].header.image,alt:"OSS Logo",width:128,height:38,className:"cursor-pointer object-contain",onClick:()=>{var e,t;return X("/?auth-code=".concat(null!==(e=null==B?void 0:B.get("auth-code"))&&void 0!==e?e:"","&refresh-code=").concat(null!==(t=null==B?void 0:B.get("auth-token"))&&void 0!==t?t:""))}})}),(0,s.jsxs)("div",{className:"jsx-cca062bef7d99bd relative h-full min-w-0",children:[(0,s.jsx)("div",{className:"jsx-cca062bef7d99bd no-scrollbar h-full overflow-x-auto whitespace-nowrap px-1",children:(0,s.jsx)(H,{data:eo?_:R,hideDummy:!0,buildHref:er,onNavigate:e=>X(e),lang:n,dictionary:j,placeholderImage:h})}),(0,s.jsx)("div",{className:"jsx-cca062bef7d99bd pointer-events-none absolute inset-y-0 left-0 w-4 bg-gradient-to-r from-white to-transparent"}),(0,s.jsx)("div",{className:"jsx-cca062bef7d99bd pointer-events-none absolute inset-y-0 right-0 w-4 bg-gradient-to-l from-white to-transparent"})]}),(0,s.jsxs)("div",{className:"jsx-cca062bef7d99bd hidden h-full items-center space-x-3 lg:flex",children:[(0,s.jsx)("button",{"data-dropdown-trigger":"pencarian",onClick:()=>ea("pencarian"),className:"jsx-cca062bef7d99bd flex h-10 w-10 items-center justify-center rounded-full",children:(0,s.jsx)("span",{className:"jsx-cca062bef7d99bd ti ti-search text-xl text-oss-gray-700 hover:text-oss-red-500"})}),(0,s.jsx)(N,{checked:F,profile:T,dictionary:j})]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(A,{lang:n,logo:x,dictionary:j,activeDropdown:v,isTabActive:function(e){if(e===$)return!0;let t=et[e];
1if(!t||!t.categories)return!1;let a="/".concat($);return t.categories.some(e=>e.items.some(e=>e.link===a))||"faq"===$},onNavigate:e=>X(e),onToggle:ea,homeHref:es(),guideHref:en()}),(0,s.jsxs)("div",{className:"jsx-cca062bef7d99bd hidden h-full items-center space-x-3 lg:flex",children:[(0,s.jsx)("button",{"data-dropdown-trigger":"pencarian",onClick:()=>ea("pencarian"),className:"jsx-cca062bef7d99bd flex h-10 w-10 items-center justify-center rounded-full",children:(0,s.jsx)("span",{className:"jsx-cca062bef7d99bd ti ti-search text-xl text-oss-gray-700 hover:text-oss-red-500"})}),(0,s.jsx)(N,{checked:F,profile:T,dictionary:j})]})]}),(0,s.jsxs)("div",{className:"jsx-cca062bef7d99bd flex w-full flex-row items-center justify-between gap-4 py-2 lg:hidden",children:["informasi"===v||"pencarian"===v?(0,s.jsx)("button",{onClick:()=>p("informasi"===v?"menu":null),className:"jsx-cca062bef7d99bd p-2 text-oss-base-black",children:(0,s.jsx)("span",{className:"jsx-cca062bef7d99bd ti ti-arrow-left"})}):(0,s.jsx)(o.default,{src:x.localization[n].header.image,alt:"OSS Logo",width:84,height:26,className:"object-contain",onClick:()=>z.push("/")}),"pencarian"===v?(0,s.jsxs)("div",{className:"jsx-cca062bef7d99bd relative mx-auto flex w-full",children:[(0,s.jsx)("span",{className:"jsx-cca062bef7d99bd ti ti-search absolute left-3 top-1/2 -translate-y-1/2 transform text-oss-gray-500"}),(0,s.jsx)("input",{type:"text",placeholder:null==j?void 0:null===(t=j.m_placeholder)||void 0===t?void 0:t.global_search,className:"jsx-cca062bef7d99bd"})]}):(0,s.jsxs)("div",{className:"jsx-cca062bef7d99bd",children:[(0,s.jsx)("button",{"data-dropdown-trigger":"pencarian",onClick:()=>ea("pencarian"),className:"jsx-cca062bef7d99bd p-2 text-oss-base-black",children:(0,s.jsx)("span",{className:"jsx-cca062bef7d99bd ti ti-search"})}),(0,s.jsx)("button",{"data-dropdown-trigger":"menu",onClick:()=>ea(v?null:"menu"),className:"jsx-cca062bef7d99bd p-2 text-oss-base-black",children:(0,s.jsx)("span",{className:"jsx-cca062bef7d99bd "+"ti ".concat("menu"===v||"informasi"===v?"ti-x":"ti-menu")})})]})]})]})}),"informasi"===v&&(0,s.jsx)(g,{dictionary:j,lang:n,onClose:()=>p(null),navbarData:ee}),"pencarian"===v&&(0,s.jsx)(b,{dictionary:j,lang:n,onClose:()=>p(null)}),"menu"===v&&(0,s.jsx)("div",{className:"jsx-cca062bef7d99bd absolute z-20 w-full grid-cols-1 border-t border-oss-gray-100 bg-white lg:hidden",children:(0,s.jsx)(f.Z,{children:(0,s.jsxs)("div",{className:"jsx-cca062bef7d99bd flex max-h-[calc(100dvh-72px)] flex-col gap-6 overflow-y-auto py-6 text-sm font-semibold",children:[(0,s.jsx)(N,{checked:F,profile:T,dictionary:j}),eo||ei?(0,s.jsx)(G,{data:eo?_:R,hideDummy:!0,buildHref:er,onNavigate:e=>X(e),onCloseMenu:()=>p(null),lang:n,dictionary:j,guideHref:en(),faqHref:el()}):(0,s.jsx)(S,{lang:n,dictionary:j,homeHref:es(),guideHref:en(),faqHref:el(),onNavigate:e=>X(e),onToggle:ea,onCloseMenu:()=>p(null)})]})})}),(0,s.jsx)(l(),{id:"cca062bef7d99bd",children:".no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}"})]})}},38811:function(e,t,a){"use strict";var s=a(57437),n=a(2265),l=a(81906),r=a(41872),o=a(48614);t.default=e=>{var t,a;let{data:i,lang:d}
1=e,[c,u]=(0,n.useState)(!0),[m,x]=(0,n.useState)(0),[h,f]=(0,n.useState)(!1),v=(0,n.useRef)(null),g=(0,l.c)(0),p=null!==(a=null==i?void 0:i.length)&&void 0!==a?a:0;(0,n.useEffect)(()=>{f(!0)},[]),(0,n.useEffect)(()=>(c&&p>0?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[c,p]);let b=()=>{m>=p-1||x(m+1)},j=()=>{m<=0||x(m-1)};(0,n.useEffect)(()=>{if(!c||p<=1)return;let e=setTimeout(()=>x(e=>(e+1)%p),5e3);return()=>clearTimeout(e)},[c,p,m]);let w=()=>{var e,t,a;let s=null==i?void 0:null===(a=i[m])||void 0===a?void 0:null===(t=a.localization)||void 0===t?void 0:null===(e=t[d])||void 0===e?void 0:e.link_logo;s&&window.open(s,"_blank")},N=(0,n.useRef)(w);N.current=w;let y=(0,n.useRef)(!1),k=(0,n.useRef)(0);if(!1===c||void 0===i||p<1)return null;let _=i[m],S=null==_?void 0:null===(t=_.localization[d])||void 0===t?void 0:t.url_logo;return(0,s.jsx)("div",{style:{backdropFilter:"blur(1px)"},className:"fixed left-0 top-0 z-[9999] flex h-full w-screen overflow-hidden bg-[#000F1F80]",ref:v,children:(0,s.jsx)(r.E.div,{drag:"x",dragConstraints:v,onDragEnd:()=>{let e=g.get();e<=-50?b():e>=50&&j(),g.set(0)},style:{x:g},className:"flex h-full w-full items-center justify-center p-4",children:(0,s.jsxs)("div",{className:"relative flex h-fit w-full max-w-[90vw] flex-col items-center justify-center md:max-w-[750px]",children:[(0,s.jsxs)("div",{className:"relative w-fit max-w-full",children:[(0,s.jsx)("div",{ref:e=>{if(e&&!y.current){y.current=!0;let t=0,a=0,s=!1;e.addEventListener("pointerdown",e=>{s=!0,t=e.clientX,a=e.clientY,k.current=0}),e.addEventListener("pointerup",e=>{s&&(k.current=Math.hypot(e.clientX-t,e.clientY-a),s=!1)}),e.addEventListener("click",()=>{k.current>15||N.current()})}},className:"relative w-fit max-w-full overflow-hidden shadow-2xl",style:{perspective:1200},children:h?(0,s.jsx)(o.M,{mode:"wait",children:(0,s.jsx)(r.E.img,{src:S,alt:"popup",className:"block max-h-[85vh] w-auto max-w-full object-contain",draggable:!1,initial:{rotateY:90,opacity:0},animate:{rotateY:0,opacity:1},exit:{rotateY:-90,opacity:0},transition:{duration:.6,ease:"easeInOut"}},m)}):(0,s.jsx)("img",{src:S,alt:"popup",className:"block max-h-[85vh] w-auto max-w-full object-contain",draggable:!1})}),(0,s.jsx)("span",{className:"material-icons leading-none absolute -right-10 -top-10 z-[50] h-7 w-7 cursor-pointer items-center justify-center rounded-full bg-black/50 text-[22px] text-white transition-colors hover:bg-black/70",style:{display:"flex",top:-20,right:-20},onClick:()=>u(!1),children:"close"})]}),(0,s.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[(0,s.jsx)("button",{onClick:j,"aria-label":"Sebelumnya",className:"flex h-7 w-7 items-center justify-center rounded-full bg-white text-black transition-colors",children:(0,s.jsx)("span",{className:"material-icons leading-none text-lg",children:"chevron_left"})}),(0,s.jsx)("span",{className:"flex h-7 w-7 items-center justify-center rounded-full bg-white text-[13px] font-semibold text-black",children:m+1}),(0,s.jsx)("button",{onClick:b,"aria-label":"Berikutnya",className:"flex h-7 w-7 items-center justify-center rounded-full bg-white text-black transition-colors",children:(0,s.jsx)("span",{className:"material-icons leading-none text-lg",children:"chevron_right"})})]})]})})})}},79775:function(e,t,a){"use strict";a.d(t,{LoadingProvider:function(){return r},r:function(){return o}});var s=a(57437),n=a(2265);let l=(0,n.createContext)(void 0),r=e=>{let{children:t}=e,[a,r]=(0,n.useState)(!1),[o,i]=(0,n.useState)(0);return(0,s.jsx)(l.Provider,{value:{isLoading:a,setIsLoading:r,loadTime:o,setLoadTime:i},children:t})},o=()=>{let e=(0,n.useContext)(l);if(!e)throw Error("useLoading must be used within a LoadingProvider");return e}},11591:function(e,t,a){"use strict";var s=a(70265),n=a(73501);let l="846ee507525c6b00d18733e066bd5686",r={turnstile:"cf-turnstile-response",recaptcha:"g-recaptcha-response"};class o{async getApiLogo(e){try{return await (0,s.J)("/beranda/logo/publish?".concat(e),{next:{revalidate:300}})}catch(e){return{data:[],error:!0,message:"Failed to fetch logo"}}}async getApiFooter(e){try{return await (0,s.J)("/beranda/footer/publish?".concat(e),{next:{revalidate:300}})}catch(e){return{data:[],error:!0,message:"Failed to fetch footer"}}}async getApiMaintenance(e){try{return await (0,s.J)("/beranda/maintenance/publish/Default?".concat(e),{next:{revalidate:300}})}catch(e){return{data:null,error:!0,message:"Failed to fetch maintenance"}}}async getApiRunningText(e){try{return await (0,s.J)("/running-text?".concat(e),{next:{revalidate:300}})}catch(e){return{data:[],error:!0,message:"Failed to fetch running text"}}}async getApiKontak(e){try{return await (0,s.J)("/beranda/kontak/publish?".concat(e),{next:{revalidate:300}})}catch(e){return{data:[],error:!0,message:"Failed to fetch kontak"}}}async getApiPopup(e){try{return await (0,s.J)("/beranda/popup/schedule?".concat(e),{next:{revalidate:300}})}catch(e){return{data:[],error:!0,message:"Failed to fetch popup"}}}async getApiBanner(e,t){try{return await (0,s.J)("/beranda/banner/publish/".concat(t,"?").concat(e),{next:{revalidate:300}})}catch(e){return{data:[],error:!0,message:"Failed to fetch banner"}}}async getApiTautan(e,t){try{return await (0,s.J)("/beranda/tautan/publish/".concat(t,"?").concat(e),{next:{revalidate:300}})}catch(e){return{data:[],error:!0,message:"Failed to fetch tautan"}}}async getApiPrivacyPolicy(e){try{return await (0,s.J)("/privacy-policy?".concat(e),{next:{revalidate:300}})}catch(e){return{data:null,error:!0,message:"Failed to fetch privacy policy"}}}async getApiAboutUs(){try{return(0,s.J)("/about-us/web",{next:{revalidate:300}})}catch(e){return e}}
1async postSearchNIB(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"turnstile";try{let s=await fetch("".concat("https://api-prd.oss.go.id","/v1/reg/public/nib"),{method:"POST",headers:{"Content-Type":"application/json",user_key:"".concat(l),[r[a]]:t},mode:"cors",body:JSON.stringify(e)});if(!s.ok)throw Error("HTTP ".concat(s.status,": ").concat(s.statusText));return await s.json()}catch(e){return{data:null,error:!0,message:"Failed to search NIB"}}}async getMenu(e){try{let t=(0,n.ej)("p"),a=window.localStorage.getItem("user_token"),s=await fetch("".concat("https://gw.oss.go.id/v2/portal","/menu?").concat(e),{method:"GET",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t||a),user_key:"".concat(l)}});if(!s.ok)throw Error("HTTP ".concat(s.status,": ").concat(s.statusText));return await s.json()}catch(e){return{data:[],error:!0,message:"Failed to fetch menu"}}}async getMenuNonLogin(e){try{return await (0,s.J)("/menu/nologin?".concat(e),{next:{revalidate:300}})}catch(e){return{data:[],error:!0,message:"Failed to fetch logo"}}}}let i=new o;t.Z=i},70265:function(e,t,a){"use strict";a.d(t,{J:function(){return c}});var s=a(36230),n=a(2526),l=a(25566);let r=l.env.SSR_API||"https://gw.oss.go.id/v2/portal",o=l.env.NEXT_PUBLIC_API_KEY||"846ee507525c6b00d18733e066bd5686",i=s.g.getTracer("portal-frontend-ssr"),d=Number(l.env.SSR_FETCH_TIMEOUT_MS)||8e3,c=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.startActiveSpan("ssr-fetch ".concat(e),async a=>{let s;a.setAttribute("ssr.fetch.path",e),r&&a.setAttribute("ssr.fetch.base_url",r);let l={"Content-Type":"application/json",user_key:"".concat(o),...t.headers||{}};try{let o;let i=e.startsWith("/autocomplete"),c=new Promise((e,t)=>{s=setTimeout(()=>{let e=Error("SSR fetch timeout after ".concat(d,"ms"));e.name="TimeoutError",t(e)},d)}),u=await Promise.race([fetch("".concat(r).concat(e),{...t,headers:l,next:{revalidate:i?0:60,...t.next}}),c]);if(a.setAttribute("http.status_code",u.status),!u.ok)return a.setStatus({code:n.Q.ERROR,message:"HTTP ".concat(u.status)}),{success:!1,data:null,code:u.status,message:"HTTP ".concat(u.status,": ").concat(u.statusText),error:!0};try{o=await u.json()}catch(e){return a.setStatus({code:n.Q.ERROR,message:"Failed to parse server response"}),{success:!1,data:null,code:500,message:"Failed to parse server response",error:!0}}if(o&&o.success&&null===o.data)return{...o,data:[]};return o}catch(s){let e=s instanceof Error&&"TimeoutError"===s.name,t=e||s instanceof TypeError&&(s.message.includes("fetch failed")||s.message.includes("ECONNREFUSED")||s.message.includes("network")||s.message.includes("timeout"));return s instanceof Error?a.recordException(s):a.recordException(Error(String(s))),a.setStatus({code:n.Q.ERROR,message:e?"timeout":"network error"}),a.setAttribute("ssr.fetch.server_down",t),{success:!1,data:null,code:e?504:0,message:t?"Server sedang tidak dapat dijangkau. Silakan coba beberapa saat lagi.":s instanceof Error?s.message:"Network error occurred",error:!0,isServerDown:t}}finally{s&&clearTimeout(s),a.end()}})}},57286:function(){},47960:function(){}},function(e){e.O(0,[161,6990,2972,4476,1479,5878,1124,8667,9293,3210,5123,2971,2117,1744],function(){return e(e.s=15619)}),_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.