import{i as u,Z as _,k as d,r as P,c as f,a as l,b as n,d as E,w as S,o as R,e as U,t as b}from"./app-CK3cEAAe.js";import{I as A}from"./moment-BywspGD9.js";import{L as H}from"./Layout-DIVdUaBZ.js";import{P as c}from"./Pagination-MejnxKj7.js";import{T as g}from"./TextInput-DDvOh0mT.js";import{S as h}from"./SelectInput-CJrVPIBV.js";import{L as y}from"./LoadingButton-DQHYFAIm.js";import{_ as w}from"./FlashMessages-ByEdcHWZ.js";import"./v4-SoommWqA.js";const V={metaInfo:{title:"Priorities"},components:{Icon:A,Link:u,Head:_,Pagination:c,TextInput:g,SelectInput:h,LoadingButton:y},layout:H,props:{title:String,keys:Object},remember:"form",data(){return{form:this.$inertia.form({PUSHER_APP_ID:this.keys.PUSHER_APP_ID.value,PUSHER_APP_KEY:this.keys.PUSHER_APP_KEY.value,PUSHER_APP_SECRET:this.keys.PUSHER_APP_SECRET.value,PUSHER_APP_CLUSTER:this.keys.PUSHER_APP_CLUSTER.value})}},methods:{update(){this.form.put(this.route("settings.pusher.update"),{onSuccess:()=>{d.get(this.route("clear.cache","config")).then(t=>{})}})}}},C={class:"bg-white rounded-md shadow overflow-hidden mr-2"},T={class:"p-8 -mr-6 -mb-8 flex flex-wrap"},v={class:"px-8 py-4 bg-gray-50 border-t border-gray-100 flex items-center"};function x(t,o,i,I,e,m){const a=P("Head"),s=P("text-input"),p=P("loading-button");return R(),f("div",null,[l(a,{title:i.title},null,8,["title"]),n("div",C,[n("form",{onSubmit:o[4]||(o[4]=E((...r)=>m.update&&m.update(...r),["prevent"]))},[n("div",T,[l(s,{type:"text",modelValue:e.form.PUSHER_APP_ID,"onUpdate:modelValue":o[0]||(o[0]=r=>e.form.PUSHER_APP_ID=r),error:e.form.errors.PUSHER_APP_ID,class:"pr-6 pb-8 w-full lg:w-1/3",label:t.$t("Pusher App ID")},null,8,["modelValue","error","label"]),l(s,{type:"text",modelValue:e.form.PUSHER_APP_KEY,"onUpdate:modelValue":o[1]||(o[1]=r=>e.form.PUSHER_APP_KEY=r),error:e.form.errors.PUSHER_APP_KEY,class:"pr-6 pb-8 w-full lg:w-1/3",label:t.$t("Pusher App Key")},null,8,["modelValue","error","label"]),l(s,{type:"text",modelValue:e.form.PUSHER_APP_SECRET,"onUpdate:modelValue":o[2]||(o[2]=r=>e.form.PUSHER_APP_SECRET=r),error:e.form.errors.PUSHER_APP_SECRET,class:"pr-6 pb-8 w-full lg:w-1/3",label:t.$t("Pusher App Secret")},null,8,["modelValue","error","label"]),l(s,{modelValue:e.form.PUSHER_APP_CLUSTER,"onUpdate:modelValue":o[3]||(o[3]=r=>e.form.PUSHER_APP_CLUSTER=r),error:e.form.errors.PUSHER_APP_CLUSTER,class:"pr-6 pb-8 w-full lg:w-1/3",label:t.$t("Pusher App Cluster")},null,8,["modelValue","error","label"])]),n("div",v,[l(p,{loading:e.form.processing,class:"btn-indigo ml-auto",type:"submit"},{default:S(()=>[U(b(t.$t("Save")),1)]),_:1},8,["loading"])])],32)])])}const O=w(V,[["render",x]]);export{O as default};
