1import{u as n,g as l,j as e,H as p,L as u,b as x}from"./app-czhrZuOt.js";import{A as h}from"./AuthenticatedLayout-6D4-8ZXI.js";import{L as a}from"./label-CddIl4Jq.js";import{I as o}from"./input-DhKi0PtU.js";import{C as j,a as g,b as f,c as v,d as b}from"./card-ycwGpo2O.js";import{D as y}from"./dollar-sign-DqHzwk6G.js";import"./dropdown-menu-T8nPhRxM.js";import"./separator-CM9ztqRx.js";import"./tooltip-3gnCrGQ_.js";import"./index-CO3-bHtI.js";import"./panel-left-DywVwufr.js";import"./index-D-VcYgw1.js";import"./index-BsdkFYOj.js";import"./chevron-right-_RgHfVVh.js";import"./check-Bzl7AoUV.js";import"./user-Cx88PRXH.js";import"./log-out-BV2MZW-s.js";import"./users-VKYAyUQI.js";import"./building-2-CQaiStI9.js";import"./link-2-CAXTgPYN.js";import"./credit-card-C4J_JGuh.js";import"./file-text-Bi2d3tkT.js";import"./mail-DsdayFHQ.js";import"./settings-2-CmYOCYr6.js";import"./qr-code-DEyAAUat.js";import"./WhiteLabelContext-Kdbp7x-_.js";import"./mouse-pointer-click-B2tfKS3S.js";import"./megaphone-DH05MufU.js";import"./globe-B14JyJ6A.js";import"./target-9uU5Ku0L.js";import"./share-2-lpd8gAKY.js";import"./activity-kIEKR-Ok.js";import"./settings-49ePZpss.js";import"./chart-column-CXVdYvL2.js";import"./languages-CRXfoD92.js";import"./user-plus-BUFA6_Xe.js";import"./plus-pGk13rni.js";import"./LanguageSelector-B1YS7AsG.js";import"./chevron-down-xMu7kuEX.js";import"./FooterSocialLinks-a8x94R2Q.js";import"./ThemeToggle-BE__v9EI.js";import"./bell-e_q56CXD.js";import"./FlashNotification-DC-gGBqa.js";import"./circle-check-BSbw1c6G.js";import"./triangle-alert-BbNR7tvC.js";function ue(){const m=n().props,s=m.currency,{ui:d={}}=m,t=d.currencies??d,r=l({code:s.code||"",name:s.name||"",symbol:s.symbol||"",decimals:s.decimals??2,active:s.active??!0});
1function c(i){i.preventDefault(),r.patch(route("admin.currencies.update",s.id))}return e.jsxs(h,{children:[e.jsx(p,{title:t.edit_title?t.edit_title.replace(":code",s.code):`Edit Currency ${s.code}`}),e.jsx("div",{className:"space-y-6",children:e.jsxs(j,{className:"rounded-lg bg-card p-6 shadow-2xl ring-1 ring-border text-foreground",children:[e.jsxs(g,{children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(y,{className:"h-6 w-6 text-muted-foreground"}),e.jsx(f,{className:"text-lg text-foreground",children:t.edit_title?t.edit_title.replace(":code",s.code):"Edit currency"})]}),e.jsx(v,{className:"mt-2 text-muted-foreground",children:t.edit_description??"Update currency details used across pricing and payments."})]}),e.jsx(b,{children:e.jsxs("form",{onSubmit:c,className:"space-y-6",children:[e.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[e.jsxs("div",{children:[e.jsx(a,{htmlFor:"code",children:t.form?.code??"Code"}),e.jsx(o,{id:"code",value:r.data.code,onChange:i=>r.setData("code",i.target.value)})]}),e.jsxs("div",{children:[e.jsx(a,{htmlFor:"name",children:t.form?.name??"Name"}),e.jsx(o,{id:"name",value:r.data.name,onChange:i=>r.setData("name",i.target.value)})]}),e.jsxs("div",{children:[e.jsx(a,{htmlFor:"symbol",children:t.form?.symbol??"Symbol"}),e.jsx(o,{id:"symbol",value:r.data.symbol,onChange:i=>r.setData("symbol",i.target.value)})]}),e.jsxs("div",{children:[e.jsx(a,{htmlFor:"decimals",children:t.form?.decimals??"Decimals"}),e.jsx(o,{id:"decimals",type:"number",value:r.data.decimals,onChange:i=>r.setData("decimals",parseInt(i.target.value||"2"))})]}),e.jsx("div",{className:"md:col-span-2",children:e.jsxs("label",{className:"inline-flex items-center",children:[e.jsx("input",{type:"checkbox",checked:!!r.data.active,onChange:i=>r.setData("active",i.target.checked),className:"mr-2 h-4 w-4 rounded border-border bg-card"}),e.jsx("span",{className:"text-sm text-foreground",children:t.form?.active??"Active"})]})})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(u,{href:route("admin.currencies.index"),className:"text-sm text-muted-foreground",children:t.form?.back??"Back to Currencies"}),e.jsx(x,{type:"submit",disabled:r.processing,children:t.form?.save??"Save"})]})]})})]})})]})}export{ue 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.