1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/TabPortal-DeQshu-W.js","assets/vendor-react-Bw0yZR8O.js","assets/index-CNA9GrcP.js","assets/vendor-jspdf-DG6NFa1h.js","assets/vendor-dexie-DZvIVlTU.js","assets/vendor-firebase-app-BK1n4Tym.js","assets/index-BnoDV2yP.css","assets/SectionCard-DwzTcXID.js"])))=>i.map(i=>d[i]); 2import{_ as p}from"./vendor-jspdf-DG6NFa1h.js";import{r as s,j as a,R as m}from"./vendor-react-Bw0yZR8O.js";import{u,L as k}from"./index-CNA9GrcP.js";import{s as S}from"./portalGasService-CGe8osRa.js";import{P as f}from"./PageHeader-Bxkp40HB.js";import{S as g}from"./SectionCard-DwzTcXID.js";import"./vendor-dexie-DZvIVlTU.js";import"./vendor-firebase-app-BK1n4Tym.js";const y=m.lazy(()=>p(()=>import("./TabPortal-DeQshu-W.js"),__vite__mapDeps([0,1,2,3,4,5,6,7])).then(t=>({default:t.TabPortal}))),T=()=>{const{settings:t,onSaveSettings:l,showToast:o}=u(),[r,e]=s.useState(t),[n,i]=s.useState(!1);s.useEffect(()=>{e({...t,cloudSyncConfig:{...t.cloudSyncConfig,dropboxAppKey:"",dropboxAppSecret:"",webdavPassword:""}})},[t]);const c=async()=>{i(!0);try{await S(r),o("Data berhasil disinkronkan ke Portal Wali.","success")}catch(d){o(`Gagal sinkronisasi data ke portal: ${d.message}`,"error")}finally{i(!1)}};return a.jsxs("div",{className:"space-y-6",children:[a.jsx(f,{eyebrow:"Portal",title:"Portal Wali Santri",description:"Kelola konfigurasi portal dan sinkronisasi data dalam satu halaman."}),a.jsx(g,{title:"Sinkronisasi Data Portal",description:"Gunakan tombol ini untuk mengirim data terbaru dari aplikasi ke Portal Wali.",contentClassName:"p-6",children:a.jsx("button",{onClick:c,disabled:n,className:"app-button-primary px-5 py-2.5 disabled:cursor-not-allowed disabled:opacity-60",children:n?"Menyinkronkan...":"Sinkronkan Sekarang"})}),a.jsx(s.Suspense,{fallback:a.jsx(k,{}),children:a.jsx(y,{localSettings:r,setLocalSettings:e,onSaveSettings:l})})]})};export{T 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.