import{X as f,B as u,C as s,j as c,t as b,m as i,k as a,H as _,E as g,x as h,y as v}from"./vendor-CoimUlS3.js";import{L as x}from"./Layout-DhxLvS0V.js";import{T as w}from"./TextInput-UGcC5hIa.js";import{L as y}from"./LoadingButton-BqD68voa.js";import{T as V}from"./TextareaInput-BCCh4Nha.js";import{p as B}from"./parsePageHtml-sMSVvmM_.js";import{_ as L}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 T={metaInfo:{title:"Footer Area"},components:{TextareaInput:V,Link:u,Head:f,TextInput:w,LoadingButton:y},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:"Footer Area",slug:"footer",is_active:this.page.is_active,html:B(this.page.html)})}},methods:{update(){this.form.put(this.route("front_pages.update","footer"))},activeTab(e){for(const t of this.tabs)t.active=!1;this.tabs[e].active=!0}},mounted(){}},F={class:"bg-white rounded-md shadow overflow-hidden mr-2"},H={class:"p-8 -mr-6 -mb-8 flex flex-wrap"},k={class:"p-8 -mr-6 -mb-8 flex flex-wrap"},C={class:"px-8 py-4 bg-gray-50 border-t border-gray-100 flex items-center"};function I(e,t,A,N,o,l){const m=s("Head"),n=s("textarea-input"),p=s("text-input"),d=s("loading-button");return b(),c("div",null,[i(m,{title:e.$t("Footer Area")},null,8,["title"]),a("div",F,[a("form",{onSubmit:t[2]||(t[2]=_((...r)=>l.update&&l.update(...r),["prevent"]))},[a("div",H,[i(n,{rows:3,modelValue:o.form.html.text,"onUpdate:modelValue":t[0]||(t[0]=r=>o.form.html.text=r),class:"pr-6 pb-8 w-full",label:e.$t("Footer text")},null,8,["modelValue","label"])]),a("div",k,[i(p,{modelValue:o.form.html.copyright,"onUpdate:modelValue":t[1]||(t[1]=r=>o.form.html.copyright=r),class:"pr-6 pb-8 w-full lg:w-1/2",label:e.$t("Copyright info")},null,8,["modelValue","label"])]),a("div",C,[i(d,{loading:o.form.processing,class:"btn-indigo ml-auto",type:"submit"},{default:g(()=>[h(v(e.$t("Save")),1)]),_:1},8,["loading"])])],32)])])}const K=L(T,[["render",I]]);export{K as default};
