import{L as r}from"./Layout-DhxLvS0V.js";import{B as d,C as p,j as c,t as f,k as t,H as u,y as o,m as h,E as _,x as b}from"./vendor-CoimUlS3.js";import{T as g}from"./TextInput-UGcC5hIa.js";import{L as v}from"./LoadingButton-BqD68voa.js";import{_ as w}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./LogoutButton-BZlSuKxY.js";import"./app-W9XHfen4.js";import"./utils-CXPYudwi.js";/* empty css                                                                 */import"./ui-CI37mw-K.js";import"./Logo-DiOikIGZ.js";import"./FlashMessages-D1juQjH6.js";const x={metaInfo(){return{title:this.form.name}},components:{LoadingButton:v,TextInput:g,Link:d},layout:r,props:{template:Object},remember:"form",data(){return{editorOptions:{debug:"info",modules:{}},form:this.$inertia.form({html:this.template.html})}},methods:{onInput(e){this.form.html=e.target.innerHTML},update(){this.form.post(this.route("templates.update",this.template.id))}}},y={class:"bg-white rounded-md shadow overflow-hidden max-w-full"},L={class:"p-8 -mr-6 -mb-8 flex flex-wrap"},T={class:"pr-6 pb-8 w-full lg:w-1/3"},I={class:"font-bold text-sm mb-1"},B={class:"font-light text-sm"},H={class:"pr-6 pb-8 w-full lg:w-2/3"},k={class:"font-bold text-sm mb-1"},E={class:"font-light text-sm"},M={class:"pr-6 pb-8 w-full"},N={class:"font-bold text-sm mb-1"},C=["innerHTML"],V={class:"px-8 py-4 bg-gray-50 border-t border-gray-100 flex items-center"};function j(e,s,n,D,l,i){const m=p("loading-button");return f(),c("div",null,[t("div",y,[t("form",{onSubmit:s[1]||(s[1]=u((...a)=>i.update&&i.update(...a),["prevent"]))},[t("div",L,[t("div",T,[t("div",I,o(e.$t("Name")),1),t("div",B,o(n.template.name),1)]),t("div",H,[t("div",k,o(e.$t("Details")),1),t("div",E,o(n.template.details),1)]),t("div",M,[t("div",N,o(e.$t("Email Html")),1),t("div",{class:"editable-content",contenteditable:"true",innerHTML:n.template.html,onInput:s[0]||(s[0]=(...a)=>i.onInput&&i.onInput(...a))},null,40,C)])]),t("div",V,[h(m,{loading:l.form.processing,class:"btn-indigo ml-auto",type:"submit"},{default:_(()=>[b(o(e.$t("Update"))+" "+o(e.$t("Template")),1)]),_:1},8,["loading"])])],32)])])}const Q=w(x,[["render",j]]);export{Q as default};
