import{d as p,T as E,c as m,o as u,a as s,t as n,x as T,l as r,v as _,u as o,b as S}from"./app-Do7K7VDV.js";import{_ as g}from"./AdminLayout-DeT_GLTC.js";import{_ as N}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 v={class:"space-y-6"},I={class:"grid grid-cols-1 lg:grid-cols-12"},L={class:"lg:col-span-5"},f={class:"lg:col-span-7"},b={class:"card"},h={class:"card-body"},R={class:"mb-2"},W={class:"label"},D={class:"mb-2"},y={class:"label"},w={class:"mt-3"},A=p({layout:g}),C=Object.assign(A,{__name:"Newsletter",props:["segments","buttons","id","NEWSLETTER_API_KEY","NEWSLETTER_LIST_ID"],setup(d){const a=d,e=E({NEWSLETTER_API_KEY:a.NEWSLETTER_API_KEY,NEWSLETTER_LIST_ID:a.NEWSLETTER_LIST_ID});function c(){const t=route("admin.developer-settings.update",a.id);e.put(t)}return(t,i)=>(u(),m("div",v,[s("div",I,[s("div",L,[s("strong",null,n(t.trans("Newsletter Developer Settings (mailchimp)")),1),s("p",null,n(t.trans("Edit you application Newsletter Api settings")),1)]),s("div",f,[s("form",{onSubmit:T(c,["prevent"])},[s("div",b,[s("div",h,[s("div",R,[s("label",W,n(t.trans("Newsletter Api Key")),1),r(s("input",{type:"text","onUpdate:modelValue":i[0]||(i[0]=l=>o(e).NEWSLETTER_API_KEY=l),class:"input"},null,512),[[_,o(e).NEWSLETTER_API_KEY]])]),s("div",D,[s("label",y,n(t.trans("Newsletter List ID")),1),r(s("input",{type:"text","onUpdate:modelValue":i[1]||(i[1]=l=>o(e).NEWSLETTER_LIST_ID=l),class:"input"},null,512),[[_,o(e).NEWSLETTER_LIST_ID]])]),s("div",w,[S(N,{processing:o(e).processing,"btn-text":t.trans("Save Changes")},null,8,["processing","btn-text"])])])])],32)])])]))}});export{C as default};
