import{X as _,B as v,C as s,j as m,t as n,m as a,k as o,H as b,z as g,y as p,E as h,x as y}from"./vendor-CoimUlS3.js";import{L as x}from"./Layout-DhxLvS0V.js";import{T as w}from"./TextInput-UGcC5hIa.js";import{L as V}from"./LoadingButton-BqD68voa.js";import{_ as P}from"./RichEditor-5gaZmhKN.js";import{p as B}from"./parsePageHtml-sMSVvmM_.js";import{_ as C}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./utils-CXPYudwi.js";import"./LogoutButton-BZlSuKxY.js";import"./app-W9XHfen4.js";/* empty css                                                                 */import"./ui-CI37mw-K.js";import"./Logo-DiOikIGZ.js";import"./FlashMessages-D1juQjH6.js";const L={metaInfo:{title:"Contact"},components:{Link:v,Head:_,TextInput:w,LoadingButton:V,RichEditor:P},layout:x,props:{page:Object},remember:"form",data(){return{tabs:[{name:"Overview",active:!0},{name:"List Information",active:!1},{name:"Bottom",active:!1}],form:this.$inertia.form({title:"Privacy Policy",slug:"privacy",is_active:this.page.is_active,html:B(this.page.html)})}},methods:{update(){this.form.put(this.route("front_pages.update","privacy"))},activeTab(r){for(const t of this.tabs)t.active=!1;this.tabs[r].active=!0}},mounted(){}},k={class:"bg-white rounded-md shadow overflow-hidden mr-2"},E={class:"p-8 -mr-6 -mb-8 flex flex-wrap"},H={class:"pr-6 pb-8 w-full"},T={key:0,class:"text-red-600 text-sm mt-1"},N={class:"px-8 py-4 bg-gray-50 border-t border-gray-100 flex items-center"};function I(r,t,R,S,e,l){const d=s("Head"),c=s("text-input"),f=s("RichEditor"),u=s("loading-button");return n(),m("div",null,[a(d,{title:r.$t("Privacy Policy")},null,8,["title"]),o("div",k,[o("form",{onSubmit:t[2]||(t[2]=b((...i)=>l.update&&l.update(...i),["prevent"]))},[o("div",E,[a(c,{modelValue:e.form.html.title,"onUpdate:modelValue":t[0]||(t[0]=i=>e.form.html.title=i),class:"pr-6 pb-8 w-full lg:w-1/2",label:r.$t("Title")},null,8,["modelValue","label"]),o("div",H,[t[3]||(t[3]=o("label",{class:"form-label"},"Page Content:",-1)),a(f,{modelValue:e.form.html.content,"onUpdate:modelValue":t[1]||(t[1]=i=>e.form.html.content=i),class:"mt-1"},null,8,["modelValue"]),e.form.errors.details?(n(),m("div",T,p(e.form.errors.details),1)):g("",!0)])]),o("div",N,[a(u,{loading:e.form.processing,class:"btn-indigo ml-auto",type:"submit"},{default:h(()=>[y(p(r.$t("Save")),1)]),_:1},8,["loading"])])],32)])])}const W=C(L,[["render",I]]);export{W as default};
