import{T as f,c as d,a as m,b as s,t as a,w as E,d as c,v as A,u as n,f as _,F as b,r as g,g as h,o as r,q as I}from"./app-13978987.js";import{_ as N}from"./PageHeader-8c638686.js";import{_ as D}from"./AdminLayout-bd13ff9d.js";import{_ as y}from"./SpinnerBtn-cb152833.js";import"./dropdown-45d66330.js";const B={class:"container p-4 sm:p-6"},P={class:"space-y-6"},S={class:"grid grid-cols-1 lg:grid-cols-12"},T={class:"lg:col-span-5"},V={class:"lg:col-span-7"},L={class:"card"},U={class:"card-body"},M={class:"mb-2"},w={class:"label"},G={class:"mb-2"},O={class:"label"},Z={value:"true"},F={value:"false"},k={class:"mb-2"},W={class:"label"},Y={value:"true"},$={value:"false"},q={class:"mb-2"},z={class:"label"},C=["value"],j={class:"mb-2"},H={class:"label"},J=["value"],Q={class:"mt-3"},R=h({layout:D}),ts=Object.assign(R,{__name:"App",props:["segments","buttons","id","tzlist","languages","appName","appDebug","timeZone","default_lang","web_visibility"],setup(u){const i=u,l=f({APP_NAME:i.appName,APP_DEBUG:i.appDebug,TIME_ZONE:i.timeZone,DEFAULT_LANG:i.default_lang,WEB_VISIBILITY:i.web_visibility});function v(){const e=route("admin.developer-settings.update",i.id);l.put(e,{onSuccess:()=>{I.success(trans("Settings has been updated successfully"))}})}return(e,o)=>(r(),d("main",B,[m(N,{title:e.trans("Application Settings"),buttons:u.buttons},null,8,["title","buttons"]),s("div",P,[s("div",S,[s("div",T,[s("strong",null,a(e.trans("Application Settings")),1),s("p",null,a(e.trans("Edit you application global settings")),1)]),s("div",V,[s("form",{onSubmit:E(v,["prevent"])},[s("div",L,[s("div",U,[s("div",M,[s("label",w,a(e.trans("Application Name")),1),c(s("input",{type:"text",name:"name","onUpdate:modelValue":o[0]||(o[0]=t=>n(l).APP_NAME=t),required:"",class:"input"},null,512),[[A,n(l).APP_NAME]])]),s("div",G,[s("label",O,a(e.trans("Visibility Of Site Error")),1),c(s("select",{class:"select",name:"app_debug","onUpdate:modelValue":o[1]||(o[1]=t=>n(l).APP_DEBUG=t)},[s("option",Z,a(e.trans("Enable")),1),s("option",F,a(e.trans("Disable")),1)],512),[[_,n(l).APP_DEBUG]])]),s("div",k,[s("label",W,a(e.trans("Visibility Of Website")),1),c(s("select",{class:"select",name:"web_debug","onUpdate:modelValue":o[2]||(o[2]=t=>n(l).WEB_VISIBILITY=t)},[s("option",Y,a(e.trans("Enable")),1),s("option",$,a(e.trans("Disable")),1)],512),[[_,n(l).WEB_VISIBILITY]])]),s("div",q,[s("label",z,a(e.trans("Application Time Zone")),1),c(s("select",{class:"select",name:"timezone","onUpdate:modelValue":o[3]||(o[3]=t=>n(l).TIME_ZONE=t)},[(r(!0),d(b,null,g(u.tzlist,(t,p)=>(r(),d("option",{key:p,value:t},a(t),9,C))),128))],512),[[_,n(l).TIME_ZONE]])]),s("div",j,[s("label",H,a(e.trans("Application Default Language")),1),c(s("select",{class:"select",name:"default_lang","onUpdate:modelValue":o[4]||(o[4]=t=>n(l).DEFAULT_LANG=t)},[(r(!0),d(b,null,g(u.languages,(t,p)=>(r(),d("option",{key:p,value:p},a(t),9,J))),128))],512),[[_,n(l).DEFAULT_LANG]])]),s("div",Q,[m(y,{processing:n(l).processing,"btn-text":e.trans("Save Changes")},null,8,["processing","btn-text"])])])])],32)])])])]))}});export{ts as default};
