PageSourceSearch

https://map.nusantara-atlas.org/assets/Popup-B0vPOVan.js

js nusantara-atlas.org collected 2026-09-26 00:00:08 UTC 3,299 bytes, 1 lines download raw bytes

1import{fA as e,X as k,jW as y,k7 as l,f$ as b,gJ as r,iH as M,hs as N,bz as S,gx as p}from"./index-DfswWcju.js";import{a as C}from"./FormRegister-CzvCra8C.js";import{b as g}from"./index-DRyg1HZ2.js";import{D as F,e as T,c as D,B as w}from"./DialogTitle-0WgwkI-z.js";import{D as R}from"./HeaderMobile-Dux8KdId.js";import{A as q}from"./AlertWarning-CA1tZcR6.js";import{D as P}from"./DefaultViewLoader-XCynZ89s.js";import{A as v}from"./Form-C70e4Pc7.js";import"./ButtonBase-BIzkEHl5.js";import"./Paper-CZCtCZ3n.js";import"./Checkbox-_zF6ULt-.js";import"./FormControlLabel-CEAMNbX5.js";import"./Checkbox-9NSj6TKu.js";import"./DatePicker-9pgLiFcP.js";import"./DatePicker-GiQo_0e2.js";import"./index-wNJ5vHfe.js";import"./useMobilePicker-DcTVaRjW.js";import"./visuallyHidden-Dan1xhjv.js";import"./IconButton-BoBOss6a.js";import"./Button-BHuy0_kY.js";import"./Popper-iDEwTKSu.js";import"./Chip-DWwIyEj4.js";import"./RadioGroup-TsmfsG5G.js";function d({message:i}){return e.jsx("div",{className:"alert alert-success",children:i})}d.propTypes={message:k.string.isRequired};function ae(){const i=y(),{user:c}=l(s=>s.auth),{lang:t}=l(s=>s.languages),{show:h,loading:m,successMessage:a,errorMessage:n}=l(s=>s.alertNotificationSystem),{customTabsAlertFormActive:x}=l(s=>s.customAlerts),u=()=>{i(M(!1)),i(N(!1)),(a||n)&&i(r({successMessage:"",errorMessage:""}))},j=async()=>{try{(a||n)&&i(r({successMessage:"",errorMessage:""}));const s=await i(S()).unwrap();if(s&&s[0]){const{limit:A}=s[0],{alert_notif_remaining:o}=A;if(o<=0){i(r({errorMessage:t?"Anda telah mencapai batas notifikasi peringatan untuk periode ini.":"You have reached your alert notification limit for this period."}));return}if(o>0)try{x?await i(p({isCustomTab:!0})).unwrap():await i(p({isCustomTab:null})).unwrap(),i(r({successMessage:t?`Sisa kuota notifikasi: ${o}`:`Remaining notification quota: ${o}`}))}catch(f){f.includes("Already requested!")||f.includes("Permintaan sudah terdaftar!")?i(r({errorMessage:f})):i(r({successMessage:t?`Sisa kuota notifikasi: ${o}`:`Remaining notification quota: ${o}`}))}}}catch(s){i(r({errorMessage:s||(t?"Gagal memeriksa batas notifikasi. Silakan coba lagi.":"Failed to check notification limits. Please try again.")}))}};return b.useEffect(()=>()=>{(a||n)&&i(r({successMessage:"",errorMessage:""}))},[]),h?e.jsxs(F,{onClose:u,"aria-labelledby":"tab-title-dialog",open:!0,fullWidth:!0,maxWidth:"xs",children:[e.jsx(T,{id:"tab-title-dialog",children:t?"Sistem Notifikasi Peringatan":"Alert Notification System"}),e.jsxs(D,{dividers:!0,children:[e.jsx("p",{children:e.jsx("strong",{children:t?"Kirim peringatan dari poligon ini ke email saya.":"Send alert of these polygons to my email"})}),!c&&e.jsxs(e.Fragment,{children:[e.jsxs("p",{children:[e.jsx("i",{className:"fa fa-exclamation-circle"}),t?"Anda perlu login terlebih dahulu!":"You need to login first!"]}),e.jsx(C,{})]}),c&&e.jsxs(e.Fragment,{children:[m&&e.jsx(P,{}),!m&&!a&&e.jsx(v,{}),a&&e.jsx(d,{message:a}),n&&e.jsx(q,{message:n})]})]}),c&&e.jsxs(R,{children:[!m&&!a&&e.jsxs(e.Fragment,{children:[e.jsx(w,{type:"button",onClick:j,children:t?"KIRIM":"SUBMIT"}),e.jsx(g,{onClick:u,children:t?"BATAL":"CANCEL"})]}),a&&e.jsxs(e.Fragment,{children:[e.jsx("div",{}),e.jsx(g,{onClick:u,children:t?"TUTUP":"CLOSE"})]})]})]}):null}export{ae as default};

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.