module.exports=[99165,a=>{"use strict";a.s(["adminInputCls",0,"w-full rounded-lg border border-[#d9e2f7] bg-white px-3.5 py-2.5 text-sm text-[#132b87] placeholder:text-[#a5b0cc] focus:outline-none focus:border-[#1f3fb8] focus:ring-2 focus:ring-[#1f3fb8]/15 transition","adminLabelCls",0,"block text-xs font-medium text-[#5a688d] mb-1.5"])},18068,a=>{"use strict";var b=a.i(87924),c=a.i(99165);function d({message:a}){return a?(0,b.jsx)("p",{className:"mt-1 text-xs text-red-600",role:"alert",children:a}):null}a.s(["AdminField",0,function({label:a,name:e,children:f,error:g}){return(0,b.jsxs)("label",{className:"block",htmlFor:e,children:[(0,b.jsx)("span",{className:c.adminLabelCls,children:a}),f,(0,b.jsx)(d,{message:g})]})},"FieldError",0,d])},20835,a=>{"use strict";var b=a.i(87924),c=a.i(38246),d=a.i(72131),e=a.i(18068),f=a.i(99165);a.s(["ImageField",0,function({label:a,name:c,currentUrl:d,alt:g}){return(0,b.jsxs)("div",{className:"space-y-2",children:[d?(0,b.jsxs)("div",{className:"rounded-xl border border-[#e9eefc] bg-[#f8faff] p-3",children:[(0,b.jsx)("p",{className:"text-xs font-medium text-[#5a688d] mb-2",children:"Current image"}),(0,b.jsx)("img",{src:d,alt:g||a,className:"h-40 w-full rounded-lg object-cover"})]}):null,(0,b.jsx)(e.AdminField,{label:a,name:c,children:(0,b.jsx)("input",{id:c,name:c,type:"file",accept:"image/jpeg,image/png,image/webp",className:f.adminInputCls})})]})},"SettingsSaveForm",0,function({action:a,children:e,successRedirect:f}){let[g,h,i]=(0,d.useActionState)(a,void 0);return(0,b.jsxs)("form",{action:h,className:"rounded-2xl border border-[#d9e2f7] bg-white p-5 sm:p-6 space-y-5 max-w-3xl",children:[e,g?.message&&(0,b.jsxs)("p",{className:`text-sm ${g.success?"text-emerald-700":"text-red-600"}`,role:"status",children:[g.message,g.success&&f?(0,b.jsxs)(b.Fragment,{children:[" ",(0,b.jsx)(c.default,{href:f,className:"underline",children:"Back"})]}):null]}),(0,b.jsx)("button",{type:"submit",disabled:i,className:"rounded-full bg-[#1f3fb8] px-6 py-2.5 text-sm font-semibold text-white hover:bg-[#18339a] disabled:opacity-60",children:i?"Saving...":"Save changes"})]})},"TextInput",0,function({label:a,name:c,defaultValue:d,error:g,type:h="text",rows:i}){return(0,b.jsx)(e.AdminField,{label:a,name:c,error:g,children:i?(0,b.jsx)("textarea",{id:c,name:c,rows:i,defaultValue:d??"",className:`${f.adminInputCls} resize-y`}):(0,b.jsx)("input",{id:c,name:c,type:h,defaultValue:d??"",className:f.adminInputCls})})}])}];

//# sourceMappingURL=app_admin__components_0qgayo9._.js.map