1import{f as V,r as k,d as M,j as e,B as m,R as $,b as f,t as l,q as D}from"./index-CudHG6B4.js";import{u as b}from"./useMutation-CBAYgnG2.js";import{A as X}from"./AdminLayout-BZuCIv3f.js";import{C as p,b as h,c as u,d as L,a as g}from"./card-5b9UOcPu.js";import{S as H}from"./switch-DGQNr7ur.js";import{L as n}from"./label-B2onvOiF.js";import{e as v}from"./InstitutionRegister-CdUSyHyq.js";import{S}from"./skeleton-BegiI0pz.js";import{D as Y,g as ee,h as se,i as ae,j as ie,k as te}from"./AuthenticatedApplication-C2-e6xTS.js";import{A as re,a as ne,b as le,c as oe,d as de,e as ce,f as me,g as pe}from"./alert-dialog-BT3erKQG.js";import{I as x}from"./input-kx1YXBs7.js";import{T as he}from"./textarea-C9FUOvKW.js";import{A as ue,b as ge}from"./alert-kp6gCZ70.js";import{T as xe}from"./triangle-alert-BA2tGhup.js";import{B as je}from"./book-open-DvSukaGG.js";import{P as fe}from"./plus-B9dTNDWs.js";import{T as U}from"./trash-2-B1etNceJ.js";import{G as be}from"./globe-NLl4Wr5a.js";import{W as ve}from"./connectors-BciFpN0c.js";import{S as ye}from"./shield-Hr0aqzVI.js";import{D as we}from"./droplets-Dmddv33X.js";import{Z as Ne}from"./zap-BFhUksea.js";import"./index-C1iJF-SR.js";import"./badge-CMf0SrHQ.js";import"./chevron-up-qSRaMRim.js";import"./check-D8BjNWtW.js";import"./building-2-CMfa6c9V.js";import"./shield-check-ic92rXB7.js";import"./users-DX1W4CCh.js";import"./circle-alert-CRUc3mQk.js";import"./chevron-right-Dr8cwl4J.js";import"./circle-C1ccQMbh.js";import"./user-DCnI1kiW.js";import"./arrow-left-lxn-dpfG.js";import"./clock-DzjvzExH.js";import"./file-text-76AiIfll.js";import"./circle-check-CTosiqnS.js";import"./AboutPage-CamkJ7cK.js";import"./PrivacyPage-Beavwhs0.js";import"./TermsPage-SeBMfIpe.js";import"./BackingDashboard-CVY4Rsg2.js";import"./layers-Ca3pv70P.js";import"./dollar-sign-BcfyEtLy.js";import"./LandVerifyPage-NEwI3vUf.js";import"./award-BusU1ju6.js";import"./hash-DyzAXdJv.js";import"./scale-DM0tAT-O.js";import"./calendar-BTBtzozc.js";import"./trending-up-C66B21n6.js";import"./landmark-BA_0Cnnl.js";import"./LandCertificate-Du_3NAH9.js";import"./printer-C2HCk7DD.js";import"./OnchainDocsPage-DDA6342p.js";import"./code-CMLileHq.js";import"./sprout-z_rucUaP.js";import"./TransparencyPage-Ylxz21fu.js";import"./ProtocolPage-UaH8jgc9.js";import"./LandProtocolDevRef-_yp8P5Ot.js";import"./InstitutionInvitePage-CIc8kA4i.js";import"./FlowOfFundsPage-BjbpHgzo.js";import"./CapitalProviderChoice-C78InrEx.js";import"./arrow-right-B1UlrPw0.js";import"./IndividualProviderRegister-DyWPKEYx.js";/** 2 * @license lucide-react v0.469.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const ke=V("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/** 7 * @license lucide-react v0.469.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const De=V("PiggyBank",[["path",{d:"M19 5c-1.5 0-2.8 1.4-3 2-3.5-1.5-11-.3-11 5 0 1.8 0 3 2 4.5V20h4v-2h3v2h4v-4c1-.5 1.7-1 2-2h2v-4h-2c0-1-.5-1.5-1-2V5z",key:"1ivx2i"}],["path",{d:"M2 9v1c0 1.1.9 2 2 2h1",key:"nm575m"}],["path",{d:"M16 11h.01",key:"xkw8gn"}]]);/** 12 * @license lucide-react v0.469.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const Ce=V("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]),Pe=()=>({title:"",description:"",owner:"Land Ledger",url:"",category:"platform",access:"view"}),Ee={landingPageEnabled:!0,cashNowEnabled:!0,plannedLiquidityEnabled:!0,payWithLandEnabled:!0,earnTabEnabled:!0,marketLiquidityEnabled:!1,adminConsoleEnabled:!0,treasuryConsoleEnabled:!0};function $s(){const[C,P]=k.useState(null),[E,B]=k.useState(""),[G,T]=k.useState(!1),[o,d]=k.useState({videoId:"",bookingUrl:"",contentVersion:"",acknowledgementRequired:!1,resources:[]}),y=b({mutationFn:async s=>{const a=await f("DELETE",`/api/admin/v2/loan-applications/${s}`);if(!a.ok){const i=await a.json().catch(()=>({}));throw new Error(i.message??"Failed to delete application")}},onSuccess:()=>{l("Loan application deleted"),B(""),T(!1)},onError:s=>{l.error("Delete failed",{description:s.message}),T(!1)}}),{data:q,isLoading:Q}=M({queryKey:["/api/admin/site-settings"]}),{data:A,isLoading:W}=M({queryKey:["/api/site-settings/landing-page-mode"]}),{data:t,isLoading:_}=M({queryKey:["/api/admin/site-settings/cp-onboarding-content"]});k.useEffect(()=>{t&&d({videoId:t.videoId??"",bookingUrl:t.bookingUrl??"",contentVersion:t.contentVersion??"",acknowledgementRequired:t.acknowledgementRequired,resources:t.resources})},[t]);const O=(q==null?void 0:q.featureToggles)||Ee,z=(A==null?void 0:A.mode)==="invite",K=b({mutationFn:async s=>f("POST","/api/admin/site-settings/landing-page-mode",{mode:s}),onSuccess:()=>{l("Homepage mode updated"),D.invalidateQueries({queryKey:["/api/site-settings/landing-page-mode"]})},onError:s=>l.error("Error",{description:s.message})}),w=b({mutationFn:async({feature:s,value:a})=>f("POST","/api/admin/feature-toggles",{featureToggles:{...O,[s]:a}}),onSuccess:()=>{l("Feature updated"),D.invalidateQueries({queryKey:["/api/admin/site-settings"]}),P(null)},onError:s=>l.error("Error",{description:s.message})}),F=b({mutationFn:async()=>{const s=await f("POST","/api/admin/faucet/request-eth");if(!s.ok){const a=await s.json();throw new Error(a.message||"Faucet request failed")}return s.json()},onSuccess:s=>{l("Testnet ETH requested",{description:s.message})},onError:s=>l.error("Faucet request failed",{description:s.message})}),I=b({mutationFn:async()=>(await f("POST","/api/admin/gas-station/sweep")).json(),onSuccess:s=>{l("Gas sweep complete",{description:`Checked ${s.checked}, funded ${s.funded}, skipped ${s.skipped}`}),D.invalidateQueries({queryKey:["/api/admin/gas-station/status"]})},onError:s=>l.error("Sweep failed",{description:s.message})}),r=b({mutationFn:async s=>{const a=await f("POST","/api/admin/site-settings/cp-onboarding-content",{videoId:s.videoId.trim()||null,bookingUrl:s.bookingUrl.trim()||null,contentVersion:s.contentVersion.trim()||null,acknowledgementRequired:s.acknowledgementRequired,resources:s.resources.map(i=>({...i,title:i.title.trim(),description:i.description.trim(),owner:i.owner.trim(),url:i.url.trim()}))});if(!a.ok){const i=await a.json().catch(()=>({}));throw new Error(i.message??"Unable to save diligence room")}return a.json()},onSuccess:s=>{l.success("Diligence room updated"),D.setQueryData(["/api/admin/site-settings/cp-onboarding-content"],s.c
16ontent),D.invalidateQueries({queryKey:["/api/cp/onboarding/content"]})},onError:s=>l.error("Could not update diligence room",{description:s.message})}),Z=(s,a)=>{a?w.mutate({feature:s,value:a}):P({feature:s,newValue:a})},J=()=>{C&&w.mutate({feature:C.feature,value:C.newValue})},j=(s,a)=>{d(i=>({...i,resources:i.resources.map((N,R)=>R===s?{...N,...a}:N)}))},c=({feature:s,label:a,description:i})=>e.jsxs("div",{className:"flex items-center justify-between py-3",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(n,{className:"text-base",children:a}),e.jsx("p",{className:"text-sm text-gray-500",children:i})]}),Q?e.jsx(S,{className:"h-6 w-10"}):e.jsx(H,{checked:O[s],onCheckedChange:N=>Z(s,N),disabled:w.isPending})]});return e.jsxs(X,{children:[e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-semibold text-gray-900",children:"Platform Settings"}),e.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Manage feature flags and platform configuration"})]}),e.jsxs(ue,{children:[e.jsx(xe,{className:"h-4 w-4"}),e.jsx(ge,{children:"Changes to feature flags take effect immediately. Disabling features will hide them from users."})]}),e.jsxs(p,{children:[e.jsxs(h,{children:[e.jsxs(u,{className:"flex items-center gap-2",children:[e.jsx(ke,{className:"h-5 w-5"}),"Homepage Mode"]}),e.jsx(L,{children:"Control what visitors see when they first arrive at Land Ledger"})]}),e.jsx(g,{children:e.jsxs("div",{className:"flex items-center justify-between py-3",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx(n,{className:"text-base",children:"Homepage Display"}),e.jsx("p",{className:"text-sm text-gray-500",children:z?"Visitors see the invite request page":"Visitors see the marketing home page"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:"text-sm text-muted-foreground",children:"Marketing"}),W?e.jsx(S,{className:"h-6 w-10"}):e.jsx(H,{checked:z,onCheckedChange:s=>K.mutate(s?"invite":"marketing"),disabled:K.isPending}),e.jsx("span",{className:"text-sm text-muted-foreground",children:"Invite"})]})]})})]}),e.jsxs(p,{children:[e.jsxs(h,{children:[e.jsxs(u,{className:"flex items-center gap-2",children:[e.jsx(je,{className:"h-5 w-5"}),"Institutional Diligence Room"]}),e.jsx(L,{children:"Publish only current, approved materials for capital-provider due diligence. Live deal documents remain in each dealâs secure data room."})]}),e.jsx(g,{className:"space-y-5",children:_?e.jsxs("div",{className:"space-y-3",children:[e.jsx(S,{className:"h-10 w-full"}),e.jsx(S,{className:"h-24 w-full"})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(n,{htmlFor:"briefing-video-id",children:"Executive walkthrough Loom URL or video ID"}),e.jsx(x,{id:"briefing-video-id",value:o.videoId,onChange:s=>d(a=>({...a,videoId:s.target.value})),placeholder:"https://www.loom.com/share/... or video ID",disabled:r.isPending})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(n,{htmlFor:"briefing-booking-url",children:"Diligence call booking URL"}),e.jsx(x,{id:"briefing-booking-url",type:"url",value:o.bookingUrl,onChange:s=>d(a=>({...a,bookingUrl:s.target.value})),placeholder:"https://...",disabled:r.isPending})]})]}),e.jsxs("div",{className:`rounded-lg border px-4 py-3 text-sm ${t!=null&&t.videoId?"border-emerald-200 bg-emerald-50 text-emerald-900":"border-amber-200 bg-amber-50 text-amber-900"}`,children:[e.jsx("span",{className:"font-semibold",children:t!=null&&t.videoId?"Published":"Not published"}),e.jsx("span",{className:"ml-2 text-xs",children:t!=null&&t.videoId?"Capital providers can view the current Loom briefing.":"No Loom briefing will appear until a valid URL or ID is saved."})]}),o.videoId.trim()&&e.jsx("div",{className:"overflow-hidden rounded-lg border border-slate-200",children:e.jsx("div",{className:"relative w-full",style:{paddingTop:"56.25%"},children:e.jsx("iframe",{className:"absolute inset-0 h-full w-full",src:`https://www.loom.com/embed/${o.videoId.trim().split("/").filter(
16Boolean).pop()}`,title:"Briefing preview",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin"})})}),e.jsxs("div",{className:"rounded-lg border border-slate-200 bg-slate-50 p-4 space-y-3",children:[e.jsxs("div",{className:"flex flex-col gap-1 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{children:[e.jsx(n,{className:"text-sm font-medium",children:"Versioned acknowledgement"}),e.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"Require capital providers to acknowledge the current diligence-library version before they continue."})]}),e.jsx(H,{checked:o.acknowledgementRequired,onCheckedChange:s=>d(a=>({...a,acknowledgementRequired:s})),disabled:r.isPending})]}),e.jsxs("div",{className:"max-w-sm space-y-2",children:[e.jsx(n,{htmlFor:"briefing-content-version",children:"Content version"}),e.jsx(x,{id:"briefing-content-version",value:o.contentVersion,onChange:s=>d(a=>({...a,contentVersion:s.target.value})),placeholder:"For example, 2026.08",disabled:r.isPending})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",children:[e.jsxs("div",{children:[e.jsx(n,{className:"text-sm font-medium",children:"Published materials"}),e.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"Add platform materials or clearly labeled illustrative transaction samples. Do not upload live deal documents here."})]}),e.jsxs(m,{size:"sm",variant:"outline",className:"gap-1.5",onClick:()=>d(s=>({...s,resources:[...s.resources,Pe()]})),disabled:r.isPending||o.resources.length>=8,children:[e.jsx(fe,{className:"h-3.5 w-3.5"}),"Add Material"]})]}),o.resources.length===0?e.jsxs("div",{className:"rounded-lg border border-dashed border-slate-300 px-4 py-6 text-center",children:[e.jsx("p",{className:"text-sm font-medium text-slate-700",children:"No materials are published"}),e.jsx("p",{className:"text-xs text-slate-500 mt-1",children:"Capital providers will only see material you add here."})]}):e.jsx("div",{className:"space-y-3",children:o.resources.map((s,a)=>e.jsxs("div",{className:"rounded-lg border border-slate-200 p-4 space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("p",{className:"text-sm font-medium text-slate-700",children:["Material ",a+1]}),e.jsxs(m,{type:"button",size:"sm",variant:"ghost",className:"h-8 gap-1.5 text-red-600 hover:bg-red-50 hover:text-red-700",onClick:()=>d(i=>({...i,resources:i.resources.filter((N,R)=>R!==a)})),disabled:r.isPending,children:[e.jsx(U,{className:"h-3.5 w-3.5"})," Remove"]})]}),e.jsxs("div",{className:"grid gap-3 md:grid-cols-2",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(n,{htmlFor:`briefing-title-${a}`,children:"Document name"}),e.jsx(x,{id:`briefing-title-${a}`,value:s.title,onChange:i=>j(a,{title:i.target.value}),placeholder:"For example, Servicing and collections approach",disabled:r.isPending})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(n,{htmlFor:`briefing-owner-${a}`,children:"Provided by"}),e.jsx(x,{id:`briefing-owner-${a}`,value:s.owner,onChange:i=>j(a,{owner:i.target.value}),placeholder:"Land Ledger",disabled:r.isPending})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(n,{htmlFor:`briefing-description-${a}`,children:"Description"}),e.jsx(he,{id:`briefing-description-${a}`,value:s.description,onChange:i=>j(a,{description:i.target.value}),placeholder:"Explain what the capital provider will find in this material.",className:"min-h-20",disabled:r.isPending})]}),e.jsxs("div",{className:"grid gap-3 md:grid-cols-[1fr_180px_160px]",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(n,{htmlFor:`briefing-url-${a}`,children:"Secure HTTPS URL"}),e.jsx(x,{id:`briefing-url-${a}`,type:"url",value:s.url,onChange:i=>j(a,{url:i.target.value}),placeholder:"https://...",disabled:r.isPending})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(n,{htmlFor:`briefing-category-${a}`,children:"Placement"}),e.jsxs("select",{id:`briefing-category-${a}`,className:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm",value:s.category,onChange:i=>j(a,{category:i.target.value}),disabled:r.isPending,children:[e.jsx("option",{value:"platform",children:"Platform material"}),e.jsx("option",{value:"sample_transaction",children:"Transaction sample"})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(n,{htmlFor:`briefing-access-${a}`,children:"Link action"}),e.jsxs("select",{id:`briefing-access-${a}`,className:"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm",value:s.access,onChange:i=>j(a,{access:i.target.value}),disabled:r.isPending,children:[e.jsx("option",{value:"view",children:"View"}),e.jsx("option",{value:"download",children:"Download"})]})]})]})]},`${a}-${s.url}`))})]}),e.jsx("div",{className:"flex justify-end",children:e.jsx(m,{className:"bg-[#009955] hover:bg-[#007a44] text-white",onClick:()=>r.mutate(o),disabled:r.isPending,children:r.isPending?"Savingâ¦":"Save Diligence Room"})})]})})]}),e.jsxs(p,{children:[e.jsx(h,{children:e.jsxs(u,{className:"flex items-center gap-2",children:[e.jsx(be,{className:"h-5 w-5"}),"Landing Page"]})}),e.jsx(g,{children:e.jsx(c,{feature:"landingPageEnabled",label:"Public Landing Page",description:"Show the public landing page to unauthenticated visitors"})})]}),e.jsxs(p,{children:[e.jsxs(h,{children:[e.jsxs(u,{className:"flex items-center gap-2",children:[e.jsx(ve,{className:"h-5 w-5"}),"Liquidity Features"]}),e.jsx(L,{children:"Control which liquidity options are available to users"})]}),e.jsxs(g,{className:"space-y-1",children:[e.jsx(c,{feature:"cashNowEnabled",label:"Instant Liquidity",description:"Allow users to get instant liquidity from their land"}),e.jsx(v,{}),e.jsx(c,{feature:"plannedLiquidityEnabled",label:"Scheduled Withdrawals",description:"Allow users to schedule future liquidity withdrawals"}),e.jsx(v,{}),e.jsx(c,{feature:"payWithLandEnabled",label:"Pay with Land",description:"Allow users to pay bills directly using land value"})]})]}),e.jsxs(p,{children:[e.jsx(h,{children:e.jsxs(u,{className:"flex items-center gap-2",children:[e.jsx(De,{className:"h-5 w-5"}),"Earn Features"]})}),e.jsxs(g,{className:"space-y-1",children:[e.jsx(c,{feature:"earnTabEnabled",label:"Earn Tab",description:"Show the Earn section for depositing into vaults"}),e.jsx(v,{}),e.jsx(c,{feature:"marketLiquidityEnabled",label:"Market Vault (Advanced)",description:"Show advanced market liquidity vault options"})]})]}),e.jsxs(p,{children:[e.jsx(h,{children:e.jsxs(u,{className:"flex items-center gap-2",children:[e.jsx(ye,{className:"h-5 w-5"}),"Admin and Treasury"]})}),e.jsxs(g,{className:"space-y-1",children:[e.jsx(c,{feature:"adminConsoleEnabled",label:"Admin Console",description:"Enable the admin control panel"}),e.jsx(v,{}),e.jsx(c,{feature:"treasuryConsoleEnabled",label:"Treasury Console",description:"Enable the treasury control panel"})]})]}),e.jsxs(p,{children:[e.jsxs(h,{children:[e.jsxs(u,{className:"flex items-center gap-2",children:[e.jsx(Ce,{className:"h-5 w-5"}),"Testing Tools"]}),e.jsx(L,{children:"Developer and staging utilities for manual operations"})]}),e.jsxs(g,{className:"space-y-1",children:[e.jsxs("div",{className:"flex items-center justify-between py-3",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("p",{className:"text-sm font-medium",children:"Testnet ETH Faucet"}),e.jsx("p",{className:"text-sm text-gray-500",children:"Request ETH for the deployer wallet on Base Sepolia"})]}),e.jsxs(m,{size:"sm",variant:"outline",onClick:()=>F.mutate(),disabled:F.isPending,children:[F.isPending?e.jsx($,{className:"h-3.5 w-3.5 animate-spin mr-1.5"}):e.jsx(we,{className:"h-3.5 w-3.5 mr-1.5"}),"Request ETH"]})]}),e.jsx(v,{}),e.jsxs("div",{className:"flex items-center justify-between py-3",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("p",{className:"text-sm font-medium",children:"Delete Loan Application"}),e.jsx("p",{className:"text-sm text-gray-500",children:"Permanently remove a test loan application and all its data by ID"})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(x,{placeholder:"App ID",type:"number",value:E,onChange:s=>B(s.target.value),className:"w-24 text-sm"}),e.jsxs(m,{size:"sm",variant:"outline",className:"border-red-200 text-red-700 hover:bg-red-50",onClick:()=>T(!0),disabled:!E||y.isPending,children:[e.jsx(U,{className:"h-3.5 w-3.5 mr-1.5"}),"Delete"]})]})]}),e.jsx(v,{}),e.jsxs("div",{className:"flex items-center justify-between py-3",children:[e.jsxs("div",{className:"space-y-0.5",children:[e.jsx("p",{className:"text-sm font-medium",children:"Gas Station Sweep"}),e.jsx("p",{className:"text-sm text-gray-500",children:"Immediately top up all user wallets that are below the gas threshold"})]}),e.jsxs(m,{size:"sm",variant:"outline",onClick:()=>I.mutate(),disabled:I.isPending,children:[I.isPending?e.jsx($,{className:"h-3.5 w-3.5 animate-spin mr-1.5"}):e.jsx(Ne,{className:"h-3.5 w-3.5 mr-1.5"}),"Sweep Now"]})]})]})]})]}),e.jsx(re,{open:G,onOpenChange:T,children:e.jsxs(ne,{children:[e.jsxs(le,{children:[e.jsxs(oe,{className:"flex items-center gap-2 text-red-700",children:[e.jsx(U,{className:"h-5 w-5"}),"Delete Loan Application"]}),e.jsxs(de,{children:["This will permanently delete loan application ",e.jsxs("strong",{children:["#",E]})," and all associated documents, tranches, and proposals. This action cannot be undone."]})]}),e.jsxs(ce,{children:[e.jsx(me,{disabled:y.isPending,children:"Cancel"}),e.jsx(pe,{onClick:()=>y.mutate(parseInt(E,10)),disabled:y.isPending,className:"bg-red-600 hover:bg-red-700 text-white",children:y.isPending?e.jsxs(e.Fragment,{children:[e.jsx($,{className:"h-3 w-3 animate-spin mr-1"})," Deleting..."]}):"Delete Application"})]})]})}),e.jsx(Y,{open:!!C,onOpenChange:()=>P(null),children:e.jsxs(ee,{children:[e.jsxs(se,{children:[e.jsx(ae,{children:"Disable Feature?"}),e.jsx(ie,{children:"Disabling this feature will hide it from all users immediately. Are you sure you want to continue?"})]}),e.jsxs(te,{children:[e.jsx(m,{variant:"outline",onClick:()=>P(null),children:"Cancel"}),e.jsx(m,{variant:"destructive",onClick:J,disabled:w.isPending,children:w.isPending?"Disabling...":"Disable Feature"})]})]})})]})}export{$s 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.