PageSourceSearch

https://my-biznes.uz/assets/feature-table-C5JRgFQk.js

js my-biznes.uz collected 2026-10-02 02:11:51 UTC 3,121 bytes, 1 lines download raw bytes

1import"./base-pe7GV1XZ.js";import{E as P}from"./el-pagination-CFEjM4Hs.js";import"./el-scrollbar-jCUVLUnO.js";import"./el-select-DWefANXt.js";/* empty css                  */import"./el-input-CnmL_t4N.js";import{E as A,a as D}from"./el-table-column-CHhKiIHF.js";import"./el-checkbox-STTymSq4.js";import"./el-tooltip-l0sNRNKZ.js";import{E as G}from"./el-popover-B40E4AT-.js";import{E as T}from"./el-button-DJtZds9M.js";import{r as i,o as U,c as m,d as t,b as y,w as p,F as c,g as u,y as f,_ as V}from"./index-yrPBkgLG.js";import{p as w}from"./PremiumApiService-Cx5uErwI.js";import"./event-BB_Ol6Sd.js";import"./index-pfuQmdwN.js";import"./index-M7Y52XAl.js";import"./index-DWme1wXO.js";import"./index-cAzKqqYT.js";import"./aria--JZTNrRr.js";import"./constants-Dnj8X3EN.js";import"./use-form-common-props-C11eZE7M.js";import"./castArray-BFnFmXfp.js";import"./index-DNvpQlGu.js";import"./scroll-CJo2Uqhl.js";import"./toNumber-BXlDze-m.js";import"./index-CCntWDod.js";import"./vnode-B3H-aSbi.js";import"./_baseClone-uLppoVnS.js";import"./omit-DPP0qQjJ.js";import"./debounce-LRtN-bop.js";import"./raf-D65up9Ge.js";import"./index-r5W6hzzQ.js";const j={class:"flex"},L={class:"flex justify-end mt-4"},ye={__name:"feature-table",emits:["update"],setup(M,{expose:C,emit:k}){const d=["uz","ru","eng","cyrl"],g=i([]),_=i(0),n=i(10),h=i(0),s=i(1),x=k,l=async()=>{try{const o=await w.GetAllFeatures({skip:_.value,take:n.value});g.value=o.data.content,h.value=o.data.total}catch(o){console.error(o)}};function E(o){n.value=o,s.value=1,_.value=0,l()}function $(o){s.value=o,_.value=(o-1)*n.value,l()}const z=async o=>{try{await w.DeleteFeature(o),l()}catch(a){console.error(a)}};return U(()=>{l()}),C({upload:l}),(o,a)=>{const r=D,v=V,b=T,N=G,S=A,B=P;return u(),m(c,null,[t(S,{data:g.value,class:"w-full"},{default:p(()=>[t(r,{type:"index",label:"№",width:"50"}),t(r,{prop:"code",label:"Code","min-width":"120"}),(u(),m(c,null,f(d,e=>t(r,{key:"name-"+e,prop:`name.${e}`,label:`Name ${e}`,"min-width":"120"},null,8,["prop","label"])),64)),(u(),m(c,null,f(d,e=>t(r,{key:"description-"+e,prop:`description.${e}`,label:`Description ${e}`,"min-width":"120"},null,8,["prop","label"])),64)),(u(),m(c,null,f(d,e=>t(r,{key:"groupName-"+e,prop:`groupName.${e}`,label:`Group Name ${e}`,"min-width":"120"},null,8,["prop","label"])),64)),t(r,{width:"100",fixed:"right"},{default:p(e=>[y("div",j,[t(b,{type:"primary",circle:"",class:"w-5 h-5",onClick:F=>x("update",e.row.id)},{default:p(()=>[t(v,{name:"penWhite",isSvg:""})]),_:1},8,["onClick"]),t(N,{class:"box-item",title:"Are you sure?",placement:"top-end",onConfirm:F=>z(e.row.id)},{reference:p(()=>[t(b,{type:"danger",circle:"",plain:""},{default:p(()=>[t(v,{name:"trash",isSvg:""})]),_:1})]),_:1},8,["onConfirm"])])]),_:1})]),_:1},8,["data"]),y("div",L,[t(B,{"current-page":s.value,"onUpdate:currentPage":a[0]||(a[0]=e=>s.value=e),"page-size":n.value,"onUpdate:pageSize":a[1]||(a[1]=e=>n.value=e),"page-sizes":[10,20,50,100],total:h.value,layout:"total, sizes, prev, pager, next",onSizeChange:E,onCurrentChange:$},null,8,["current-page","page-size","total"])])],64)}}};export{ye 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.