import{d as S,T as R,c as d,o as P,a as s,t as l,x as c,i as m,l as _,A as p,u as e,F as A,v as r,b as U}from"./app-Do7K7VDV.js";import{_ as b}from"./AdminLayout-DeT_GLTC.js";import{_ as H}from"./SpinnerBtn-C-rqKjUt.js";import"./AssetModal-C18ToIEK.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./InputFieldError-0BmYlL24.js";import"./ToastrContainer-CtYDvNPN.js";const h={class:"grid grid-cols-1 lg:grid-cols-12"},C={class:"lg:col-span-5"},v={class:"lg:col-span-7"},D={class:"card"},g={class:"card-body"},T={class:"mb-2"},V={class:"label mb-1"},f={value:"log"},B={value:"pusher"},I={class:"mb-2"},y={class:"label mb-1"},M={class:"mb-2"},O={class:"label mb-1"},K={class:"mb-2"},L={class:"label mb-1"},Y={class:"mb-2"},q={class:"label mb-1"},k={class:"mb-2"},N={class:"label mb-1"},w={value:"http"},F={value:"https"},$={class:"mt-3"},j=S({layout:b}),x=Object.assign(j,{__name:"BroadcastSetting",props:["id","BROADCAST_DRIVER","PUSHER_APP_ID","PUSHER_APP_KEY","PUSHER_APP_SECRET","PUSHER_SCHEME","PUSHER_APP_CLUSTER"],setup(E){const i=E,t=R({BROADCAST_DRIVER:i.BROADCAST_DRIVER??"pusher",PUSHER_APP_ID:i.PUSHER_APP_ID??"",PUSHER_APP_KEY:i.PUSHER_APP_KEY??"",PUSHER_APP_SECRET:i.PUSHER_APP_SECRET??"",PUSHER_SCHEME:i.PUSHER_SCHEME??"http",PUSHER_APP_CLUSTER:i.PUSHER_APP_CLUSTER??"mt1"});function u(){t.put(route("admin.developer-settings.update",i.id))}return(o,a)=>(P(),d("div",h,[s("div",C,[s("strong",null,l(o.trans("Broadcast Settings")),1),s("p",null,l(o.trans("Edit Broadcast settings")),1)]),s("div",v,[s("form",{onSubmit:c(u,["prevent"])},[s("div",D,[s("div",g,[s("div",T,[s("label",V,l(o.trans("Broadcast Driver")),1),_(s("select",{class:"select","onUpdate:modelValue":a[0]||(a[0]=n=>e(t).BROADCAST_DRIVER=n)},[s("option",f,l(o.trans("Log")),1),s("option",B,l(o.trans("Pusher")),1)],512),[[p,e(t).BROADCAST_DRIVER]])]),e(t).BROADCAST_DRIVER=="pusher"?(P(),d(A,{key:0},[s("div",I,[s("label",y,l(o.trans("Pusher App ID")),1),_(s("input",{type:"text","onUpdate:modelValue":a[1]||(a[1]=n=>e(t).PUSHER_APP_ID=n),required:"",class:"input"},null,512),[[r,e(t).PUSHER_APP_ID]])]),s("div",M,[s("label",O,l(o.trans("Pusher App Key")),1),_(s("input",{type:"text","onUpdate:modelValue":a[2]||(a[2]=n=>e(t).PUSHER_APP_KEY=n),required:"",class:"input"},null,512),[[r,e(t).PUSHER_APP_KEY]])]),s("div",K,[s("label",L,l(o.trans("Pusher App Secret")),1),_(s("input",{type:"text","onUpdate:modelValue":a[3]||(a[3]=n=>e(t).PUSHER_APP_SECRET=n),required:"",class:"input"},null,512),[[r,e(t).PUSHER_APP_SECRET]])]),s("div",Y,[s("label",q,l(o.trans("Pusher App Cluster")),1),_(s("input",{type:"text","onUpdate:modelValue":a[4]||(a[4]=n=>e(t).PUSHER_APP_CLUSTER=n),required:"",class:"input"},null,512),[[r,e(t).PUSHER_APP_CLUSTER]])]),s("div",k,[s("label",N,l(o.trans("Pusher App Scheme")),1),_(s("select",{class:"select","onUpdate:modelValue":a[5]||(a[5]=n=>e(t).PUSHER_SCHEME=n)},[s("option",w,l(o.trans("http")),1),s("option",F,l(o.trans("https")),1)],512),[[p,e(t).PUSHER_SCHEME]])])],64)):m("",!0),s("div",$,[U(H,{processing:e(t).processing,"btn-text":o.trans("Save Changes")},null,8,["processing","btn-text"])])])])],32)])]))}});export{x as default};
