import{i as u,Z as f,r as s,c as b,a as l,b as o,d as g,w as _,o as v,e as h,t as y}from"./app-CK3cEAAe.js";import{L as w}from"./Layout-DIVdUaBZ.js";import{T as x}from"./TextInput-DDvOh0mT.js";import{L as C}from"./LoadingButton-DQHYFAIm.js";import{_ as L,C as k,B as P,E as T,I as V,M as B,P as I,U,H as E,a as H,L as M,b as N,T as S,c as O,d as Q,e as R,f as j,g as A}from"./UploadAdapter-DaiRSwB-.js";import{_ as D}from"./FlashMessages-ByEdcHWZ.js";import"./moment-BywspGD9.js";import"./v4-SoommWqA.js";const F={metaInfo:{title:"Contact"},components:{Link:u,Head:f,TextInput:x,LoadingButton:C,Ckeditor:L},layout:w,props:{page:Object},remember:"form",data(){return{editor:k,editorConfig:{plugins:[P,T,V,B,I,U,E,H,M,N,S,O,Q,R,j],toolbar:["heading","|","bold","italic","link","bulletedList","numberedList","|","outdent","indent","|","insertTable","blockQuote","|","imageUpload","mediaEmbed","|","undo","redo"],table:{toolbar:["tableColumn","tableRow","mergeTableCells"]},extraPlugins:[function(t){t.plugins.get("FileRepository").createUploadAdapter=n=>new A(n)}]},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:JSON.parse(this.page.html)})}},methods:{update(){this.form.put(this.route("front_pages.update","privacy"))},activeTab(a){for(const t of this.tabs)t.active=!1;this.tabs[a].active=!0}},mounted(){}},J={class:"bg-white rounded-md shadow overflow-hidden mr-2"},Z={class:"p-8 -mr-6 -mb-8 flex flex-wrap"},$={class:"pr-6 pb-8 w-full"},q={class:"px-8 py-4 bg-gray-50 border-t border-gray-100 flex items-center"};function z(a,t,n,G,e,r){const d=s("Head"),m=s("text-input"),p=s("ckeditor"),c=s("loading-button");return v(),b("div",null,[l(d,{title:a.$t("Privacy Policy")},null,8,["title"]),o("div",J,[o("form",{onSubmit:t[2]||(t[2]=g((...i)=>r.update&&r.update(...i),["prevent"]))},[o("div",Z,[l(m,{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:"$t('Title')"},null,8,["modelValue"]),o("div",$,[t[3]||(t[3]=o("label",{class:"form-label"},"Page Content:",-1)),l(p,{editor:e.editor,modelValue:e.form.html.content,"onUpdate:modelValue":t[1]||(t[1]=i=>e.form.html.content=i),config:e.editorConfig},null,8,["editor","modelValue","config"])])]),o("div",q,[l(c,{loading:e.form.processing,class:"btn-indigo ml-auto",type:"submit"},{default:_(()=>[h(y(a.$t("Save")),1)]),_:1},8,["loading"])])],32)])])}const it=D(F,[["render",z]]);export{it as default};
