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