1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ProductFilter-B7yeXpy6.js","assets/ecommerce-BzZuM5Wq.js","assets/index-B1VwxZ88.js","assets/index-CGJoWjUM.css","assets/CardData2-h5KqLT5o.js"])))=>i.map(i=>d[i]); 2import{d as L,G as P,i as T,o as l,m as A,w as D,a as N,b as e,e as t,x as V,A as E,y as j,c as i,z as d,F as m,l as g,t as o,n as h,f as _,_ as v,r as b,v as y}from"./index-B1VwxZ88.js";import{p as u}from"./ecommerce-BzZuM5Wq.js";import{a as p,g as c,p as B,b as I,n as M,c as R,d as S,f as F}from"./pagination-BBogECsz.js";import{g as q}from"./getImages-DmeZorkm.js";const z=y+"#edit-content",H=y+"#trash1",O={class:"list-product"},Q={class:"datatable-wrapper datatable-loading no-footer sortable searchable fixed-columns table-responsive custom-scrollbar"},U={class:"mb-3 row justify-content-start mx-0"},$={class:"col-xs-3 col-sm-auto datatable-search"},G={class:"table",id:"project-status"},K={key:0},J={key:1},W={class:"product-names"},X={class:"light-product-box"},Y=["src"],Z={class:"f-light"},tt={class:"f-light"},st={class:"f-light"},at={class:"f-light"},et=["innerHTML"],lt={class:"footer-table-pagination"},ot={key:0,class:"pagination justify-content-end pagination-primary"},nt={class:"page-item"},it=["onClick"],rt={class:"page-link"},ct={class:"page-item"},gt=L({__name:"ProductListTable",setup(dt){const k=_(()=>v(()=>import("./ProductFilter-B7yeXpy6.js"),__vite__mapDeps([0,1,2,3]))),C=_(()=>v(()=>import("./CardData2-h5KqLT5o.js"),__vite__mapDeps([4,2,3])));let r=b(""),x=b("");P(r,n=>{var s=u.filter(a=>a.name.toLowerCase().includes(n.toLowerCase())||a.sku.toLowerCase().includes(n.toLowerCase())||a.category.toLowerCase().includes(n.toLowerCase()));n==""?p.value=u:p.value=s});function w(n){for(var s="",a=0;a<5;a++)n>a?s=s+'<i class="fa fa-star font-warning"></i>':s=s+'<i class="fa fa-star font-light"></i>';return s}return T(()=>{p.value=u}),(n,s)=>(l(),A(e(C),{colClass:"col-sm-12",cardClass:"card",simple:"true",headerTitle:"true"},{default:D(()=>[N(e(k),{product:e(x),title:"Add Category"},null,8,["product"]),t("div",O,[t("div",Q,[t("div",U,[s[3]||(s[3]=t("label",{for:"table-complete-search",class:"col-xs-3 col-sm-auto col-form-label"},"Search:",-1)),t("div",$,[V(t("input",{id:"table-complete-search form-control",type:"text",class:"form-control","onUpdate:modelValue":s[0]||(s[0]=a=>E(r)?r.value=a:r=a)},null,512),[[j,e(r)]])])]),t("table",G,[s[7]||(s[7]=t("thead",null,[t("tr",null,[t("th",null,[t("div",{class:"form-check"},[t("input",{class:"form-check-input checkbox-primary",type:"checkbox"})])]),t("th",null,[t("span",{class:"f-light f-w-600"},"Product Name")]),t("th",null,[t("span",{class:"f-light f-w-600"},"SKU")]),t("th",null,[t("span",{class:"f-light f-w-600"},"Category")]),t("th",null,[t("span",{class:"f-light f-w-600"},"Price")]),t("th",null,[t("span",{class:"f-light f-w-600"},"Qty")]),t("th",null,[t("span",{class:"f-light f-w-600"},"Status")]),t("th",null,[t("span",{class:"f-light f-w-600"},"Rating")]),t("th",null,[t("span",{class:"f-light f-w-600"},"Action")])])],-1)),e(c)().length?d("",!0):(l(),i("tbody",K,[...s[4]||(s[4]=[t("tr",{class:"odd"},[t("td",{valign:"top",colspan:"6",class:"dataTables_empty text-center"},"No results match your search query")],-1)])])),e(c)().length?(l(),i("tbody",J,[(l(!0),i(m,null,g(e(c)(),(a,f)=>(l(),i("tr",{class:"product-removes",key:f},[s[5]||(s[5]=t("td",null,[t("div",{class:"form-check"},[t("input",{class:"form-check-input checkbox-primary",type:"checkbox"})])],-1)),t("td",null,[t("div",W,[t("div",X,[t("img",{class:"img-fluid",src:e(q)(a.img),alt:"laptop"},null,8,Y)]),t("p",null,o(a.name),1)])]),t("td",null,[t("p",Z,o(a.sku),1)]),t("td",null,[t("p",tt,o(a.category),1)]),t("td",null,[t("p",st,o(a.price),1)]),t("td",null,[t("p",at,o(a.qty),1)]),t("td",null,[t("span",{class:h(["badge",a.statusclass])},o(a.status),3)]),t("td",null,[t("div",{class:"rating",innerHTML:w(a.rating)},null,8,et)]),s[6]||(s[6]=t("td",null,[t("div",{class:"product-action"},[t("a",{href:"javascript:void(0)"},[t("svg",null,[t("use",{href:z})])]),t("svg",null,[t("use",{href:H})])])],-1))]))),128))])):d("",!0)]),t("div",lt,[t("span",null,o(e(B)()),1),e(c)().length?(l(),i("ul",ot,[t("li",nt,[t("a",{class:"page-link",onClick:s[1]||(s[1]=a=>e(I)()),"aria-label":"Previous"},[...s[8]||(s[8]=[t("span",{"aria-hidden":"true"},"«",-1)])])]),(l(!0),i(m,null,g(e(M)(),a=>(l(),i("li",{class:h(["page-item",[a==e(S)?"active":""]]),key:a,onClick:f=>e(R)(a)},[t("a",rt,o(a),1)],10,it))),128)),t("li",ct,[t("a",{class:"page-link",onClick:s[2]||(s[2]=a=>e(F)()),"aria-label":"Next"},[...s[9]||(s[9]=[t("span",{"aria-hidden":"true"},"»",-1)])])])])):d("",!0)])])])]),_:1}))}});
2export{gt 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.