import{_ as l}from"./AdminLayout-bd13ff9d.js";import{_ as c}from"./PageHeader-8c638686.js";import d from"./About-44118afa.js";import r from"./AuthPages-2ba910b9.js";import b from"./Career-7e397360.js";import _ from"./Contact-612efb27.js";import u from"./Home-a0e1e1ba.js";import p from"./Integration-86d05b7c.js";import h from"./Primary-34c9aaa1.js";import m from"./Service-74912499.js";import{l as f,c as g,a as e,b as t,t as n,g as v,o as y}from"./app-13978987.js";import"./dropdown-45d66330.js";import"./ImageInput.vue_vue_type_script_setup_true_lang-4a03e2f5.js";import"./SpinnerBtn-cb152833.js";import"./optionUpdate-b5f61f3c.js";class P{constructor(a){this.tabBtns=a.querySelectorAll(".tabs-btn:not(.disabled)"),this.tabContent=a.querySelector(".tabs-content"),this.tabPanels=a.querySelectorAll(".tabs-panel"),this.tabPanel=null,this.tabBtn=null,this.tabBtns.forEach(i=>{i.addEventListener("click",()=>{this.tabBtn=i,this.tabPanel=this.tabContent.querySelector(this.tabBtn.dataset.panelId),this.updateActiveClass(this.tabBtn,this.tabBtns),this.updateActiveClass(this.tabPanel,this.tabPanels)})})}updateActiveClass(a,i){a.classList.contains("active")||(i.forEach(o=>{o.classList.contains("active")&&o.classList.remove("active")}),a.classList.add("active"))}}const $={init(){const s=document.querySelectorAll(".tabs");s.length&&[...s].forEach(a=>new P(a))}},B={class:"container flex-grow p-4 sm:p-6"},A={class:"space-y-6"},C={class:"card"},S={class:"card-body"},q={class:"tabs tabs-vertical"},E={class:"tabs-list w-72"},L={class:"tabs-item"},k={class:"tabs-btn active","data-panel-id":"#primary",type:"button"},w={class:"tabs-item"},I={class:"tabs-btn","data-panel-id":"#auth",type:"button"},N={class:"tabs-item"},V={class:"tabs-btn","data-panel-id":"#home",type:"button"},j={class:"tabs-item"},D={class:"tabs-btn","data-panel-id":"#about",type:"button"},H={class:"tabs-item"},M={class:"tabs-btn","data-panel-id":"#career",type:"button"},O={class:"tabs-item"},T={class:"tabs-btn","data-panel-id":"#service",type:"button"},z={class:"tabs-item"},F={class:"tabs-btn","data-panel-id":"#integration",type:"button"},G={class:"tabs-item"},J={class:"tabs-btn","data-panel-id":"#contact",type:"button"},K={class:"tabs-content h-[80vh]","data-simplebar":""},Q={class:"tabs-panel active",id:"primary"},R={class:"tabs-panel",id:"auth"},U={class:"tabs-panel",id:"home"},W={class:"tabs-panel",id:"about"},X={class:"tabs-panel",id:"contact"},Y={class:"tabs-panel",id:"career"},Z={class:"tabs-panel",id:"service"},x={class:"tabs-panel",id:"integration"},tt=v({layout:l}),mt=Object.assign(tt,{__name:"Index",props:["buttons","primary_data","auth_pages","home_page","career_page","service_page","about_page","contact_page","integration_page"],setup(s){return f(()=>{$.init()}),(a,i)=>(y(),g("main",B,[e(c,{title:"Page Settings",buttons:s.buttons},null,8,["buttons"]),t("div",A,[t("div",C,[t("div",S,[t("div",q,[t("ul",E,[t("li",L,[t("button",k,[t("span",null,n(a.trans("Primary")),1)])]),t("li",w,[t("button",I,[t("span",null,n(a.trans("Auth Pages")),1)])]),t("li",N,[t("button",V,[t("span",null,n(a.trans("Home Page")),1)])]),t("li",j,[t("button",D,[t("span",null,n(a.trans("About Page")),1)])]),t("li",H,[t("button",M,[t("span",null,n(a.trans("Career Page")),1)])]),t("li",O,[t("button",T,[t("span",null,n(a.trans("Service Page")),1)])]),t("li",z,[t("button",F,[t("span",null,n(a.trans("Integration Page")),1)])]),t("li",G,[t("button",J,[t("span",null,n(a.trans("Contact Page")),1)])])]),t("div",K,[t("div",Q,[e(h,{data:s.primary_data},null,8,["data"])]),t("div",R,[e(r,{data:s.auth_pages},null,8,["data"])]),t("div",U,[e(u,{data:s.home_page},null,8,["data"])]),t("div",W,[e(d,{data:s.about_page},null,8,["data"])]),t("div",X,[e(_,{data:s.contact_page},null,8,["data"])]),t("div",Y,[e(b,{data:s.career_page},null,8,["data"])]),t("div",Z,[e(m,{data:s.service_page},null,8,["data"])]),t("div",x,[e(p,{data:s.integration_page},null,8,["data"])])])])])])])]))}});export{mt as default};
