import{_ as l,d as a,o as n,f as c,h as s,e as u,w as m,aq as p,q as b,aj as g,i as d}from"./index.cf09daef.js";const h={props:{title:String,hint:String,backRoute:String},data(){return{settings:[{route:"Taxes",label:"Taxes",permission:"settings:taxes"},{route:"Payment Methods",label:"Payments",permission:"settings:payment-methods"},{route:"Shop Locations",label:"Locations",permission:"settings:shop-locations"},{route:"Notifications",label:"Notifications",permission:"settings:notifications"},{route:"Plans",label:"Plans",permission:"settings:plans"},{route:"Coupons",label:"Coupons",permission:"settings:coupons"},{route:"Questionnaires",label:"Questionnaires",permission:"settings:questionnaires"}]}},computed:{tabs(){return this.settings.filter(e=>this.$app.can(e.permission))}}},_={class:"settings-page-header"};function f(e,S,t,k,x,o){const i=a("base-page-header"),r=a("base-btn");return n(),c("div",_,[s(i,{title:t.title,hint:t.hint,tabs:o.tabs,"use-route":""},null,8,["title","hint","tabs"]),t.backRoute?(n(),u(g,{key:0,class:"q-mt-md",style:{"min-height":"auto"}},{default:m(()=>[s(r,{icon:"fas fa-arrow-left",link:"",label:e.$t("label.goToSettings"),to:{name:t.backRoute}},null,8,["label","to"]),s(p),b(e.$slots,"action")]),_:3})):d("",!0)])}var C=l(h,[["render",f]]);export{C as S};
