import{d as r,T as u,c as L,o as I,a as s,t as i,u as t,f as o,x as T,l as a,v as E,b as C}from"./app-Do7K7VDV.js";import{_ as R}from"./AdminLayout-DeT_GLTC.js";import{_ as O}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 b={class:"space-y-6"},m={class:"grid grid-cols-1 lg:grid-cols-12"},G={class:"lg:col-span-5"},g={class:"lg:col-span-7"},v={class:"card"},h={class:"card-body"},D={class:"mb-2"},N={class:"label"},S={class:"mb-2"},F={class:"label"},A={class:"mb-2"},B={class:"label"},f=["value"],x={class:"mt-3"},K={class:"card mt-5"},U={class:"card-body"},y={class:"mb-2"},k={class:"label"},V={class:"mb-2"},w={class:"label"},M={class:"mb-2"},$={class:"label"},j=["value"],q={class:"mt-3"},z=r({layout:R}),Z=Object.assign(z,{__name:"SocialLogin",props:["segments","buttons","id","GOOGLE_CLIENT_ID","GOOGLE_CLIENT_SECRET","GOOGLE_REDIRECT_URL","FACEBOOK_CLIENT_ID","FACEBOOK_CLIENT_SECRET","FACEBOOK_REDIRECT_URL"],setup(c){const _=c,e=u({GOOGLE_CLIENT_ID:_.GOOGLE_CLIENT_ID,GOOGLE_CLIENT_SECRET:_.GOOGLE_CLIENT_SECRET,GOOGLE_REDIRECT_URL:_.GOOGLE_REDIRECT_URL,FACEBOOK_CLIENT_ID:_.FACEBOOK_CLIENT_ID,FACEBOOK_CLIENT_SECRET:_.FACEBOOK_CLIENT_SECRET,FACEBOOK_REDIRECT_URL:_.FACEBOOK_REDIRECT_URL});function p(){const d=route("admin.developer-settings.update",_.id);e.put(d)}return(d,l)=>(I(),L("div",b,[s("div",m,[s("div",G,[s("strong",null,i(t(o)("Social Login Developer Settings")),1),s("p",null,i(t(o)("Edit you application Social Login Api settings")),1)]),s("div",g,[s("form",{onSubmit:T(p,["prevent"])},[s("div",v,[s("div",h,[l[4]||(l[4]=s("h6",null,"Google Api",-1)),s("div",D,[s("label",N,i(t(o)("Google Client ID")),1),a(s("input",{type:"text","onUpdate:modelValue":l[0]||(l[0]=n=>t(e).GOOGLE_CLIENT_ID=n),class:"input"},null,512),[[E,t(e).GOOGLE_CLIENT_ID]])]),s("div",S,[s("label",F,i(t(o)("Google Client Secret")),1),a(s("input",{type:"text","onUpdate:modelValue":l[1]||(l[1]=n=>t(e).GOOGLE_CLIENT_SECRET=n),class:"input"},null,512),[[E,t(e).GOOGLE_CLIENT_SECRET]])]),s("div",A,[s("label",B,i(t(o)("Google Redirect Url")),1),s("input",{type:"text",value:c.GOOGLE_REDIRECT_URL,disabled:"",class:"input"},null,8,f)]),s("div",x,[C(O,{processing:t(e).processing,"btn-text":t(o)("Save Changes")},null,8,["processing","btn-text"])])])]),s("div",K,[s("div",U,[s("h6",null,i(t(o)("Facebook Graph Api")),1),s("div",y,[s("label",k,i(t(o)("Facebook Client Id")),1),a(s("input",{type:"text","onUpdate:modelValue":l[2]||(l[2]=n=>t(e).FACEBOOK_CLIENT_ID=n),class:"input"},null,512),[[E,t(e).FACEBOOK_CLIENT_ID]])]),s("div",V,[s("label",w,i(t(o)("Facebook Client Secret")),1),a(s("input",{type:"text","onUpdate:modelValue":l[3]||(l[3]=n=>t(e).FACEBOOK_CLIENT_SECRET=n),class:"input"},null,512),[[E,t(e).FACEBOOK_CLIENT_SECRET]])]),s("div",M,[s("label",$,i(t(o)("Facebook Redirect Url")),1),s("input",{type:"text",value:c.FACEBOOK_REDIRECT_URL,disabled:"",class:"input"},null,8,j)]),s("div",q,[C(O,{processing:t(e).processing,"btn-text":t(o)("Save Changes")},null,8,["processing","btn-text"])])])])],32)])])]))}});export{Z as default};
