PageSourceSearch

https://app.molz.io/assets/Dww2dl6T.js

js molz.io collected 2026-10-04 23:10:15 UTC 3,705 bytes, 2 lines download raw bytes

1import{H as $,g as i,j as l,k as e,v as a,B as s,m as r,u as o,q as C,F as w,Q as D,t as g,l as L,O as I}from"./-Gnd8Yop.js";import{u as B,_ as A}from"./C0pBNjKe.js";import{u as E}from"./D06haFGc.js";import{l as P,d as R}from"./DBbYpj_P.js";import{_ as d}from"../BBUt7U2r.js";import{T as V}from"./C5ALie1P.js";import{D as q}from"./BDAhpL1h.js";import"./DWKVnJoA.js";import"./BPE2bkRF.js";import"./BUakpz3-.js";import"./B4yd3ZbT.js";import"./CBMHynRq.js";import"./DFtbPZRE.js";(function(){try{var c=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},m=new Error().stack;m&&(c._sentryDebugIds=c._sentryDebugIds||{},c._sentryDebugIds[m]="ceaa9603-de45-4a28-a531-9f7c1c4273a4",c._sentryDebugIdIdentifier="sentry-dbid-ceaa9603-de45-4a28-a531-9f7c1c4273a4")}catch{}})();const F={class:"container container-lg"},N={class:"path"},Q={class:"path-list"},T={class:"path-title"},G={class:"path-actions"},K={key:0,class:"box-table box-loader"},M={key:0,class:"table table-mobile"},S={class:"table-header"},U={class:"table-col"},j={class:"table-col"},z={class:"table-col"},H=["onClick"],O={class:"table-col table-col-first"},J={class:"table-col","data-col":"URL"},W=["data-col"],X={key:0,class:"label label-success"},Y={key:1,class:"label label-secondary"},Z=["onClick"],x=["onClick"],be={__name:"ListCategoryView",setup(c){const{isEmpty:m,isFetching:y,isPending:f,isSuccess:h,data:u,goToPage:v}=B({queryKey:["category","list"],listApi:P}),{confirmDelete:k}=E({queryKey:["category","list"],deleteApi:R,messageI18n:"category.delete_message"});return(t,p)=>{const b=$("RouterLink");return i(),l("div",F,[e("div",N,[e("div",Q,[e("div",T,a(t.$t("label.category",2)),1)]),e("div",G,[s(b,{to:{name:"category_new"},class:"btn btn-primary"},{default:r(()=>[s(d,{name:"add"}),e("span",null,a(t.$t("action.create")),1)]),_:1}),s(b,{to:{name:"category_reorder"},class:"btn btn-secondary d-md-none"},{default:r(()=>[s(d,{name:"switch-vertical"}),e("span",null,a(t.$t("action.sort")),1)]),_:1})])]),o(f)?(i(),l("div",K)):o(h)?(i(),l("div",{key:1,class:C(["box-table",{"box-loader":o(y)}])},[o(m)?g("",!0):(i(),l("div",M,[e("div",S,[e("div",U,a(t.$t("label.name")),1),p[1]||(p[1]=e("div",{class:"table-col"},"URL",-1)),e("div",j,a(t.$t("label.status")),1),e("div",z,[s(b,{to:{name:"category_reorder"},class:"btn btn-secondary btn-sm hint hint-bottom-left","aria-label":t.$t("action.sort")},{default:r(()=>[s(d,{name:"switch-vertical"})]),_:1},8,["aria-label"])])]),(i(!0),l(w,null,D(o(u).results,n=>(i(),l("div",{key:n.id,class:"table-row pointer",onClick:_=>t.$router.push({name:"category_edit",params:{id:n.id}})},[e("div",O,a(n.name),1),e("div",J,"/"+a(n.slug),1),e("div",{class:"table-col","data-col":t.$t("label.status")},[n.is_active?(i(),l("div",X,a(t.$t("states.visible")),1)):(i(),l("div",Y,a(t.$t("states.hidden")),1))],8,W),e("div",{class:"table-col table-col-btnset",onClick:p[
10]||(p[0]=I(()=>{},["stop"]))},[s(q,{align:"right"},{button:r(_=>[e("button",{class:"btn btn-secondary btn-sm",onClick:_.toggle},[s(d,{name:"more"})],8,Z)]),menu:r(()=>[s(b,{to:{name:"category_edit",params:{id:n.id}},class:"item"},{default:r(()=>[s(d,{name:"edit"}),e("span",null,a(t.$t("action.edit")),1)]),_:1},8,["to"]),e("div",{onClick:_=>o(k)(n.id,n.name),class:"item item-danger"},[s(d,{name:"delete"}),e("span",null,a(t.$t("action.delete")),1)],8,x)]),_:2},1024)])],8,H))),128))])),s(A,{"current-page":o(u).paging.page,"max-page":o(u).paging.pages,onGoPage:o(v)},null,8,["current-page","max-page","onGoPage"]),o(m)?(i(),L(V,{key:1,title:t.$t("category.empty.title"),note:t.$t("category.empty.note")},null,8,["title","note"])):g("",!0)],2)):g("",!0)])}}};export{be as default};
2//# sourceMappingURL=Dww2dl6T.js.map

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.