import{T as d,i as c,g as p,o as f,a as e,t as r,f as m,k as b,u as o,l as v,n as g,h}from"./app-a39c937f.js";import w from"./App-6bb12c29.js";import{_ as x}from"./FormInput-4b7fa008.js";import{Q as y}from"./vue-quill.snow-a9cc37e4.js";import"./App-dead54de.js";import"./Sidebar-8911f1a5.js";import"./Menu-ed0b9fc4.js";import"./ProfileModal-61a09d92.js";import"./FormPhoneInput-1c9c9926.js";/* empty css                      */import"./FormSelect-c7672027.js";import"./index-8758cb17.js";import"./hidden-695af094.js";import"./use-text-value-d1d229e7.js";import"./transition-37a067aa.js";import"./micro-task-89dcd6af.js";import"./tabs-86fdd039.js";import"./LangToggle-edfcdcaa.js";import"./MobileSidebar-d784e66f.js";import"./index-80d9f634.js";/* empty css              */import"./Sidebar-69e6d10e.js";const _={class:"flex justify-between"},k={class:"text-xl mb-1"},j={class:"mb-6 flex items-center text-sm leading-6 text-gray-600"},$={class:"ml-1 mt-1"},V={class:"flex items-center space-x-2"},P={__name:"Show",props:{template:Object},setup(u){const l=u,s=d({_method:"put",subject:l.template.subject,body:l.template.body}),a=async()=>{const i=window.location.pathname;s.put(i,{preserveScroll:!0})};return(i,t)=>(f(),c(w,null,{default:p(()=>[e("div",_,[e("div",null,[e("h2",k,r(i.$t("Template"))+": "+r(l.template.name),1),e("p",j,[t[4]||(t[4]=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24"},[e("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 11v5m0 5a9 9 0 1 1 0-18a9 9 0 0 1 0 18Zm.05-13v.1h-.1V8h.1Z"})],-1)),e("span",$,r(i.$t("Configure email templates")),1)])]),e("div",V,[e("button",{onClick:t[0]||(t[0]=n=>a()),class:"rounded-md bg-indigo-600 px-3 py-2 text-sm text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"},r(i.$t("Save")),1),m(o(v),{href:"/admin/settings/email-templates",class:"rounded-md bg-indigo-600 px-3 py-2 text-sm text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"},{default:p(()=>[b(r(i.$t("Back")),1)]),_:1})])]),e("form",{onSubmit:t[3]||(t[3]=h(n=>a(),["prevent"]))},[m(x,{modelValue:o(s).subject,"onUpdate:modelValue":t[1]||(t[1]=n=>o(s).subject=n),name:"",error:o(s).errors.subject,type:"text",class:g("sm:col-span-6 mb-4")},null,8,["modelValue","error"]),m(o(y),{content:o(s).body,"onUpdate:content":t[2]||(t[2]=n=>o(s).body=n),toolbar:"essential",contentType:"html",theme:"snow"},null,8,["content"])],32)]),_:1}))}};export{P as default};
