import{Z as u,i as _,r as P,c as d,o as f,a as l,b as n,d as E,w as S,e as R,t as U,k as b}from"./app-BLo7SiiE.js";import{I as A}from"./moment-C7JtfGJw.js";import{L as H}from"./Layout-BEAmuehS.js";import{P as c}from"./Pagination-Bj-Q2plQ.js";import{T as g}from"./TextInput-D6G3wYlu.js";import{S as h}from"./SelectInput-Bl1ROfev.js";import{L as y}from"./LoadingButton-fIGCYE5-.js";import{_ as w}from"./FlashMessages-DImpr6PL.js";import"./v4-SoommWqA.js";const V={metaInfo:{title:"Priorities"},components:{Icon:A,Link:_,Head:u,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:()=>{b.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 f(),d("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(()=>[R(U(t.$t("Save")),1)]),_:1},8,["loading"])])],32)])])}const O=w(V,[["render",x]]);export{O as default};
