1import{_ as I}from"./Cet2nA1b.js";import{_ as E}from"./Bph0a_GP.js";import{_ as L}from"./aCsaseV8.js";import{_ as N}from"./8mTOZ3Ex.js";import{aU as B,aV as M,d as U,f as $,b as A,u as H,s as D,r as n,I as R,g as j,o as z,c as O,a as s,h as l,n as a,w as e,V as b,i as t,l as u,j as m,k as X,X as Z,y as q,Z as J,A as K,H as Q,_ as W}from"./CZz2bYl_.js";import"./PG34HbSK.js";const Y=B("featureGates",{state:()=>({featureGates:[]}),actions:{async getFeatureGates(){try{return await M("/superadmin/MasterFeatureGate/allFeatureGates")}catch(i){throw i}}}}),ee=U({__name:"index",setup(i){const{showErrorSnackbar:x,pageLoaded:_}=$(),{t:d}=A(),k=Y(),p=H(),{searchValue:C}=D(p),V=n({}),r=n([]),g=n(Q),f=n(!0),v=n([{title:d("common.name"),key:"name",align:"start",sortable:!0,show:!0},{title:d("user.global-value"),key:"globalValue",align:"start",sortable:!0,show:!0}]),w=n({title:d("company.empty-list"),buttonTitle:"",redirectPage:"",icon:""}),G=R(()=>v.value.filter(o=>o.show===!0));j(()=>{V.value={},p.resetHeader()}),z(async()=>{await S()});const S=async()=>{f.value=!0;try{const o=await k.getFeatureGates();r.value=o??[]}catch(o){x(o)}finally{_.value=!0,f.value=!1}};return(o,h)=>{const T=I,F=E,P=L,y=N;return s(),O("div",null,[a(_)?(s(),l(b,{key:1,fluid:"","fill-height":""},{default:e(()=>[t(Z,{class:"flex-column"},{default:e(()=>[t(F,{class:"pt-4",title:o.$t("menu.feature-gates-list")},null,8,["title"])]),_:1}),a(r).length===0?(s(),l(m,{key:0},{default:e(()=>[t(u,{cols:"12",class:"text-center"},{default:e(()=>[t(P,{model:a(w)},null,8,["model"])]),_:1})]),_:1})):a(r).length>0?(s(),l(m,{key:1,class:"ml-2"},{default:e(()=>[t(u,{cols:"12"},{default:e(()=>[t(m,{class:"custom-inner-fill-height"},{default:e(()=>[t(u,{cols:"12",class:"pa-0"},{default:e(()=>[t(q,{class:"expandable-table elevation-1 rounded-xl pa-3 mb-1 mt-6 mb-14","data-test":"feature-gates-data-table","item-key":"indexName","fixed-header":"",height:"800",headers:a(G),items:a(r),"items-per-page":a(g),"hide-default-footer":a(r).length<10,loading:a(f),"no-data-text":o.$t("common.no-data-available"),search:a(C),"onUpdate:itemsPerPage":h[0]||(h[0]=c=>g.value=c)},{"item.name":e(({item:c})=>[J(K(c.name),1)]),"item.globalValue":e(({item:c})=>[c.globalValue?(s(),l(y,{key:0,name:"checkmark",color:"success"})):(s(),l(y,{key:1,name:"close",color:"error"}))]),_:1},8,["headers","items","items-per-page","hide-default-footer","loading","no-data-text","search"])]),_:1})]),_:1})]),_:1})]),_:1})):X("",!0)]),_:1})):(s(),l(b,{key:0,fluid:"","fill-height":""},{default:e(()=>[t(m,null,{default:e(()=>[t(u,{cols:"12",class:"text-center"},{default:e(()=>[t(T,{class:"page-loading",size:"100",width:"6"})]),_:1})]),_:1})]),_:1}))])}}}),re=W(ee,[["__scopeId","data-v-4fcb2234"]]);export{re as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.