import{T as _,c as p,a as r,b as s,t as n,w as f,d,v as u,u as e,g,o as b,q as h}from"./app-13978987.js";import{_ as v}from"./PageHeader-8c638686.js";import{_ as C}from"./AdminLayout-bd13ff9d.js";import{_ as y}from"./SpinnerBtn-cb152833.js";import"./dropdown-45d66330.js";const S={class:"container p-4 sm:p-6"},V={class:"space-y-6"},w={class:"grid grid-cols-1 lg:grid-cols-12"},B={class:"lg:col-span-5"},$={class:"lg:col-span-7"},k={class:"card"},D={class:"card-body"},E={class:"mb-2"},F={class:"label"},H={class:"mb-2"},M={class:"label"},N={class:"mt-3"},T=g({layout:C}),O=Object.assign(T,{__name:"CustomCode",props:["segments","buttons","id","custom_header","custom_footer"],setup(c){const i=c,o=_({custom_header:i.custom_header,custom_footer:i.custom_footer});function m(){const t=route("admin.developer-settings.update",i.id);o.put(t,{onSuccess:()=>{h.success(trans("Settings has been updated successfully"))}})}return(t,a)=>(b(),p("main",S,[r(v,{title:t.trans("Application Settings"),buttons:c.buttons},null,8,["title","buttons"]),s("div",V,[s("div",w,[s("div",B,[s("strong",null,n(t.trans("Custom Header Footer Code")),1),s("p",null,n(t.trans("Edit you application global settings")),1)]),s("div",$,[s("form",{onSubmit:f(m,["prevent"])},[s("div",k,[s("div",D,[s("div",E,[s("label",F,n(t.trans("Custom Header Code")),1),d(s("textarea",{"onUpdate:modelValue":a[0]||(a[0]=l=>e(o).custom_header=l),class:"input"},null,512),[[u,e(o).custom_header]])]),s("div",H,[s("label",M,n(t.trans("Custom Footer Code")),1),d(s("textarea",{"onUpdate:modelValue":a[1]||(a[1]=l=>e(o).custom_footer=l),class:"input"},null,512),[[u,e(o).custom_footer]])]),s("div",N,[r(y,{processing:e(o).processing,"btn-text":t.trans("Save Changes")},null,8,["processing","btn-text"])])])])],32)])])])]))}});export{O as default};
