import{Z as f,i as c,r,c as b,o as g,a as i,b as s,d as _,w as h,e as v,t as x}from"./app-BLo7SiiE.js";import{L as w}from"./Layout-BEAmuehS.js";import{T as y}from"./TextInput-D6G3wYlu.js";import{L}from"./LoadingButton-fIGCYE5-.js";import{T}from"./TextareaInput-DxBbHHRp.js";import{_ as C,B as I,E as V,I as k,M as B,P as U,U as E,H as F,a as H,L as A,b as M,T as N,c as S,d as $,e as O,f as P,C as Q,g as R}from"./UploadAdapter-C3Raf4xx.js";import{_ as j}from"./FlashMessages-DImpr6PL.js";import"./moment-C7JtfGJw.js";import"./v4-SoommWqA.js";const D={metaInfo:{title:"Footer Area"},components:{TextareaInput:T,Link:c,Head:f,TextInput:y,LoadingButton:L,Ckeditor:C},layout:w,props:{page:Object},remember:"form",data(){return{editor:Q,editorConfig:{plugins:[I,V,k,B,U,E,F,H,A,M,N,S,$,O,P],toolbar:["heading","|","bold","italic","link","bulletedList","numberedList","|","outdent","indent","|","insertTable","blockQuote","|","imageUpload","mediaEmbed","|","undo","redo"],table:{toolbar:["tableColumn","tableRow","mergeTableCells"]},extraPlugins:[function(e){e.plugins.get("FileRepository").createUploadAdapter=l=>new R(l)}]},tabs:[{name:"Overview",active:!0},{name:"List Information",active:!1},{name:"Bottom",active:!1}],form:this.$inertia.form({title:"Footer Area",slug:"footer",is_active:this.page.is_active,html:JSON.parse(this.page.html)})}},methods:{update(){this.form.put(this.route("front_pages.update","footer"))},activeTab(t){for(const e of this.tabs)e.active=!1;this.tabs[t].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"},q={class:"p-8 -mr-6 -mb-8 flex flex-wrap"},z={class:"px-8 py-4 bg-gray-50 border-t border-gray-100 flex items-center"};function G(t,e,l,K,o,n){const m=r("Head"),d=r("textarea-input"),p=r("text-input"),u=r("loading-button");return g(),b("div",null,[i(m,{title:t.$t("Footer Area")},null,8,["title"]),s("div",J,[s("form",{onSubmit:e[2]||(e[2]=_((...a)=>n.update&&n.update(...a),["prevent"]))},[s("div",Z,[i(d,{rows:3,modelValue:o.form.html.text,"onUpdate:modelValue":e[0]||(e[0]=a=>o.form.html.text=a),class:"pr-6 pb-8 w-full",label:t.$t("Footer text")},null,8,["modelValue","label"])]),s("div",q,[i(p,{modelValue:o.form.html.copyright,"onUpdate:modelValue":e[1]||(e[1]=a=>o.form.html.copyright=a),class:"pr-6 pb-8 w-full lg:w-1/2",label:t.$t("Copyright info")},null,8,["modelValue","label"])]),s("div",z,[i(u,{loading:o.form.processing,class:"btn-indigo ml-auto",type:"submit"},{default:h(()=>[v(x(t.$t("Save")),1)]),_:1},8,["loading"])])],32)])])}const ie=j(D,[["render",G]]);export{ie as default};
