(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,2323,e=>{"use strict";e.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"])},40127,e=>{"use strict";var s=e.i(43476),t=e.i(2323);function a({message:e}){return e?(0,s.jsx)("p",{className:"mt-1 text-xs text-red-600",role:"alert",children:e}):null}e.s(["AdminField",0,function({label:e,name:l,children:n,error:i}){return(0,s.jsxs)("label",{className:"block",htmlFor:l,children:[(0,s.jsx)("span",{className:t.adminLabelCls,children:e}),n,(0,s.jsx)(a,{message:i})]})},"FieldError",0,a])},16026,e=>{"use strict";var s=e.i(43476),t=e.i(22016),a=e.i(71645),l=e.i(40127),n=e.i(2323);e.s(["ImageField",0,function({label:e,name:t,currentUrl:a,alt:i}){return(0,s.jsxs)("div",{className:"space-y-2",children:[a?(0,s.jsxs)("div",{className:"rounded-xl border border-[#e9eefc] bg-[#f8faff] p-3",children:[(0,s.jsx)("p",{className:"text-xs font-medium text-[#5a688d] mb-2",children:"Current image"}),(0,s.jsx)("img",{src:a,alt:i||e,className:"h-40 w-full rounded-lg object-cover"})]}):null,(0,s.jsx)(l.AdminField,{label:e,name:t,children:(0,s.jsx)("input",{id:t,name:t,type:"file",accept:"image/jpeg,image/png,image/webp",className:n.adminInputCls})})]})},"SettingsSaveForm",0,function({action:e,children:l,successRedirect:n}){let[i,r,d]=(0,a.useActionState)(e,void 0);return(0,s.jsxs)("form",{action:r,className:"rounded-2xl border border-[#d9e2f7] bg-white p-5 sm:p-6 space-y-5 max-w-3xl",children:[l,i?.message&&(0,s.jsxs)("p",{className:`text-sm ${i.success?"text-emerald-700":"text-red-600"}`,role:"status",children:[i.message,i.success&&n?(0,s.jsxs)(s.Fragment,{children:[" ",(0,s.jsx)(t.default,{href:n,className:"underline",children:"Back"})]}):null]}),(0,s.jsx)("button",{type:"submit",disabled:d,className:"rounded-full bg-[#1f3fb8] px-6 py-2.5 text-sm font-semibold text-white hover:bg-[#18339a] disabled:opacity-60",children:d?"Saving...":"Save changes"})]})},"TextInput",0,function({label:e,name:t,defaultValue:a,error:i,type:r="text",rows:d}){return(0,s.jsx)(l.AdminField,{label:e,name:t,error:i,children:d?(0,s.jsx)("textarea",{id:t,name:t,rows:d,defaultValue:a??"",className:`${n.adminInputCls} resize-y`}):(0,s.jsx)("input",{id:t,name:t,type:r,defaultValue:a??"",className:n.adminInputCls})})}])}]);