PageSourceSearch

https://portal.popis.pro/assets/FixedAssetsImportView-DyVUco-N.js

js popis.pro collected 2026-09-24 15:10:55 UTC 22,636 bytes, 1 lines download raw bytes

1import{G as Z,l as G,y as J,V as K,u as Q,h,o as X,w as W,b as d,d as Y,A as ee,f as e,s as te,g as F,t as r,c as l,n as x,J as N,S as re,e as p,K as ae,F as U,p as D,q as T,j as y,C as se,B as oe}from"./index-DRp_EfMJ.js";import{_ as de}from"./AdminLayout-CoiDXqCv.js";import{_ as le}from"./PageBreadcrumb-CfgsVIZG.js";import{u as ne}from"./useImportReason-BTYk7ik8.js";import"./logo-dark-CgxNiwWY.js";import"./LanguageSwitcher-vtaIfEeV.js";const ie={class:"space-y-6"},ge={class:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between"},ue={class:"flex items-center gap-3 flex-wrap"},xe=["title"],ce={class:"text-xl font-semibold text-gray-800 dark:text-white/90"},pe={class:"text-gray-500 dark:text-gray-400 font-normal"},ye={class:"flex items-center gap-3 flex-wrap"},be=["disabled"],he={key:0,class:"w-5 h-5 animate-spin text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},ve={key:1,xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},ke={class:"grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-5"},me={class:"rounded-xl border border-gray-200 bg-white p-4 dark:border-gray-800 dark:bg-white/[0.03]"},fe={class:"text-2xl font-bold text-gray-800 dark:text-white/90"},we={class:"text-sm text-gray-500 dark:text-gray-400"},_e={class:"rounded-xl border border-gray-200 bg-white p-4 dark:border-gray-800 dark:bg-white/[0.03]"},Ce={class:"text-2xl font-bold text-gray-800 dark:text-white/90"},Me={class:"text-sm text-gray-500 dark:text-gray-400"},je={class:"rounded-xl border border-gray-200 bg-white p-4 dark:border-gray-800 dark:bg-white/[0.03]"},Le={class:"text-2xl font-bold text-gray-800 dark:text-white/90"},Fe={class:"text-sm text-gray-500 dark:text-gray-400"},Se={class:"rounded-xl border border-gray-200 bg-white p-4 dark:border-gray-800 dark:bg-white/[0.03]"},Be={class:"text-2xl font-bold text-gray-800 dark:text-white/90"},Pe={class:"text-sm text-gray-500 dark:text-gray-400"},Ie={class:"rounded-xl border border-gray-200 bg-white p-4 dark:border-gray-800 dark:bg-white/[0.03]"},Ne={class:"text-2xl font-bold text-gray-800 dark:text-white/90"},Ue={class:"text-sm text-gray-500 dark:text-gray-400"},De={class:"overflow-hidden"},Te={class:"flex flex-col gap-2 px-4 py-4 border border-b-0 border-gray-200 rounded-t-xl dark:border-gray-800 sm:flex-row sm:items-center sm:justify-between"},$e={class:"flex items-center gap-1 flex-wrap"},Ae={class:"flex flex-col gap-3 sm:flex-row sm:items-center"},Ve={class:"relative"},Re=["placeholder"],Ee={class:"flex items-center gap-3"},ze={class:"text-gray-500 dark:text-gray-400"},He={class:"relative z-20 bg-transparent"},qe={class:"text-gray-500 dark:text-gray-400"},Oe={class:"max-w-full overflow-x-auto"},Ze={class:"w-full min-w-full border border-gray-100 dark:border-gray-800"},Ge={class:"bg-gray-50 dark:bg-gray-900"},Je={class:"px-4 py-3 text-left border border-gray-100 dark:border-gray-800"},Ke={class:"font-medium text-gray-700 text-theme-xs dark:text-gray-400"},Qe={class:"px-4 py-3 text-left border border-gray-100 dark:border-gray-800"},Xe={class:"font-medium text-gray-700 text-theme-xs dark:text-gray-400"},We={class:"px-4 py-3 text-left border border-gray-100 dark:border-gray-800"},Ye={class:"font-medium text-gray-700 text-theme-xs dark:text-gray-400"},et={class:"px-4 py-3 text-left border border-gray-100 dark:border-gray-800"},tt={class:"font-medium text-gray-700 text-theme-xs dark:text-gray-400"},rt={class:"px-4 py-3 text-left border border-gray-100 dark:border-gray-800"},at={class:"font-medium text-gray-700 text-theme-xs dark:text-gray-400"},st={class:"px-4 py-3 text-right border border-gray-100 dark:border-gray-800"},ot={class:"font-medium text-gray-700 text-theme-xs dark:text-gray-400"},dt={class:"px-4 py-3 text-left border border-gray-100 dark:border-gray-800"},lt={class:"font-medium text-gray-700 text-theme-xs dark:text-gray-400"},nt={class:"px-4 py-3 text-left border border-gray-100 dark:border-gray-800"},it={class:"font-medium text-gray-700 text-theme-xs dark:text-gray-400"},gt={class:"px-4 py-3 text-left border border-gray-100 dark:border-gray-800"}
1,ut={class:"font-medium text-gray-700 text-theme-xs dark:text-gray-400"},xt={class:"px-4 py-3 text-gray-700 text-theme-sm dark:text-gray-400 border border-gray-100 dark:border-gray-800"},ct={class:"px-4 py-3 border border-gray-100 dark:border-gray-800"},pt={key:0,class:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-success-50 text-success-700 dark:bg-success-500/10 dark:text-success-400"},yt={key:1,class:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-warning-50 text-warning-700 dark:bg-warning-500/10 dark:text-warning-400"},bt={key:2,class:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-600 dark:bg-gray-800 dark:text-gray-400"},ht=["title"],vt={key:0,class:"ml-1 opacity-80"},kt={key:4,class:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-purple-50 text-purple-700 dark:bg-purple-500/10 dark:text-purple-400"},mt={class:"px-4 py-3 text-gray-700 text-theme-sm dark:text-gray-400 border border-gray-100 dark:border-gray-800"},ft={class:"px-4 py-3 text-gray-700 text-theme-sm dark:text-gray-400 border border-gray-100 dark:border-gray-800"},wt={class:"px-4 py-3 text-gray-700 text-theme-sm dark:text-gray-400 border border-gray-100 dark:border-gray-800"},_t={class:"px-4 py-3 text-gray-700 text-theme-sm dark:text-gray-400 border border-gray-100 dark:border-gray-800"},Ct={class:"px-4 py-3 text-right text-gray-700 text-theme-sm dark:text-gray-400 border border-gray-100 dark:border-gray-800"},Mt={class:"px-4 py-3 text-gray-700 text-theme-sm dark:text-gray-400 border border-gray-100 dark:border-gray-800"},jt={class:"px-4 py-3 border border-gray-100 dark:border-gray-800"},Lt={class:"px-4 py-3 text-gray-700 text-theme-sm dark:text-gray-400 border border-gray-100 dark:border-gray-800"},Ft={key:0},St={colspan:"11",class:"px-4 py-8 text-center text-gray-500 dark:text-gray-400 border border-gray-100 dark:border-gray-800"},Bt={class:"flex flex-col gap-2 px-4 py-4 border border-t-0 border-gray-200 rounded-b-xl dark:border-gray-800 sm:flex-row sm:items-center sm:justify-between"},Pt={class:"text-sm text-gray-500 dark:text-gray-400"},It={key:0},Nt={class:"flex items-center gap-1"},Ut=["disabled"],Dt={key:0},Tt={key:1},$t=["onClick"],At={key:2},Vt={key:3},Rt=["disabled"],Jt={__name:"FixedAssetsImportView",setup(Et){const S=Z(),_=G(),$=J(),C=K(),{reasonLabel:B}=ne(),M=Q(),s=y(()=>M.language),b=C.data||{},j=h(b.rows||[]),g=h({total:b.total||0,new:b.new||0,updated:b.updated||0,unchanged:b.unchanged||0,skipped:b.skipped||0,duplicates:b.duplicates||0}),A=h(b.file_path||""),w=h(!1);X(()=>{$.loading=!1,j.value.length||_.push("/fixed-assets")});const n=h("all"),v=h(""),c=h(20),i=h(1),m=y(()=>{let o=j.value;if(n.value==="new"?o=o.filter(t=>t._status==="new"):n.value==="updated"?o=o.filter(t=>t._status==="updated"):n.value==="unchanged"?o=o.filter(t=>t._status==="unchanged"):n.value==="duplicates"?o=o.filter(t=>t._duplicate):n.value==="skipped"&&(o=o.filter(t=>t._status==="skipped")),v.value){const t=v.value.toLowerCase();o=o.filter(a=>(a.inventory_number||"").toLowerCase().includes(t)||(a.name||"").toLowerCase().includes(t)||(a.barcode||"").toLowerCase().includes(t)||(a.serial_number||"").toLowerCase().includes(t))}return o}),u=y(()=>Math.ceil(m.value.length/c.value)),P=y(()=>{const o=(i.value-1)*c.value;return m.value.slice(o,o+c.value)}),V=y(()=>m.value.length?(i.value-1)*c.value+1:0),R=y(()=>{const o=i.value*c.value;return o>m.value.length?m.value.length:o}),f=y(()=>{const o=[],t=Math.max(2,i.value-2),a=Math.min(u.value-1,i.value+2);for(let k=t;k<=a;k++)o.push(k);return o}
1),L=o=>{o>=1&&o<=u.value&&(i.value=o)},E=()=>{i.value<u.value&&i.value++},z=()=>{i.value>1&&i.value--};W([n,v,c],()=>i.value=1);const I=y(()=>g.value.new+g.value.updated),H=async()=>{const o=j.value.filter(a=>a._status==="new"||a._status==="updated");w.value=!0;const t=await se.post(oe.FIXED_ASSETS_IMPORT_CONFIRM,{rows:o,file_path:A.value});w.value=!1,t.status?(C.clear(),S.success(t.message+` (${M.formatLocale("importedCount",t.data.imported)})`),_.push("/fixed-assets")):S.error(t.message)},q=()=>{C.clear(),_.push("/fixed-assets")},O=y(()=>M.formatLocale("showingResults",V.value,R.value,m.value.length));return(o,t)=>(d(),Y(de,null,{default:ee(()=>[e("div",ie,[te(le,{pageTitle:s.value.importPageTitle||"Import Preview"},null,8,["pageTitle"]),e("div",ge,[e("div",ue,[e("button",{onClick:q,class:"text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-white",title:s.value.importBackToList||"Back to list"},[...t[11]||(t[11]=[e("svg",{width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},[e("path",{d:"M19 12H5M12 19l-7-7 7-7"})],-1)])],8,xe),e("h2",ce,[F(r(s.value.importPageTitle||"Import Preview")+" ",1),e("span",pe,"— "+r(g.value.total),1)])]),e("div",ye,[e("button",{onClick:H,disabled:w.value||I.value===0,class:"bg-brand-500 hover:bg-brand-600 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center justify-center gap-2 rounded-lg px-4 py-3 text-sm font-medium text-white transition"},[w.value?(d(),l("svg",he,[...t[12]||(t[12]=[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"},null,-1)])])):(d(),l("svg",ve,[...t[13]||(t[13]=[e("path",{d:"M10 3.33337V13.3334M10 3.33337L6.66667 6.66671M10 3.33337L13.3333 6.66671M3.33334 16.6667H16.6667",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])),F(" "+r(w.value?s.value.importing||"Importing...":(s.value.importItems||"Import items")+" ("+I.value+")"),1)],8,be)])]),e("div",ke,[e("div",me,[t[14]||(t[14]=e("div",{class:"flex items-center justify-center w-10 h-10 rounded-xl bg-success-50 dark:bg-success-500/10 mb-3"},[e("svg",{class:"text-success-500",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M10 4.167v11.666M4.167 10h11.666",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),e("p",fe,r(g.value.new),1),e("p",we,r(s.value.importFilterNew||"New"),1)]),e("div",_e,[t[15]||(t[15]=e("div",{class:"flex items-center justify-center w-10 h-10 rounded-xl bg-warning-50 dark:bg-warning-500/10 mb-3"},[e("svg",{class:"text-warning-500",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M14.167 2.5l3.333 3.333-3.333 3.334M5.833 17.5l-3.333-3.333 3.333-3.334M17.5 5.833H7.5M2.5 14.167h10",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),e("p",Ce,r(g.value.updated),1),e("p",Me,r(s.value.importFilterUpdated||"Updated"),1)]),e("div",je,[t[16]||(t[16]=e("div",{class:"flex items-center justify-center w-10 h-10 rounded-xl bg-gray-100 dark:bg-gray-800 mb-3"},[e("svg",{class:"text-gray-500",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M4.167 10h11.666",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),e("p",Le,r(g.value.unchanged),1),e("p",Fe,r(s.value.importFilterUnchanged||"Unchanged"),1)]),e("div",Se,[t[17]||(t[17]=e("div",{class:"flex items-center justify-center w-10 h-10 rounded-xl bg-error-50 dark:bg-error-500/10 mb-3"},[e("svg",{class:"text-error-500",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M5 5l10 10M15 5L5 15",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),e("p",Be,r(g.value.skipped),1),e("p",Pe,r(s.value.importFilterSkipped||"Skipped"),
11)]),e("div",Ie,[t[18]||(t[18]=e("div",{class:"flex items-center justify-center w-10 h-10 rounded-xl bg-purple-50 dark:bg-purple-500/10 mb-3"},[e("svg",{class:"text-purple-500",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("rect",{x:"3",y:"5",width:"10",height:"12",rx:"1.5",stroke:"currentColor","stroke-width":"1.5"}),e("rect",{x:"7",y:"3",width:"10",height:"12",rx:"1.5",stroke:"currentColor","stroke-width":"1.5"})])],-1)),e("p",Ne,r(g.value.duplicates),1),e("p",Ue,r(s.value.importDuplicates||"Duplicates"),1)])]),e("div",De,[e("div",Te,[e("div",$e,[e("button",{onClick:t[0]||(t[0]=a=>n.value="all"),class:x([n.value==="all"?"bg-brand-500 text-white":"bg-gray-100 text-gray-700 dark:bg-gray-800 dark:text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700","px-3 py-1.5 text-xs font-medium rounded-lg transition-colors"])},r(s.value.importFilterAll||"All")+" ("+r(g.value.total)+") ",3),e("button",{onClick:t[1]||(t[1]=a=>n.value="new"),class:x([n.value==="new"?"bg-success-500 text-white":"bg-gray-100 text-gray-700 dark:bg-gray-800 dark:text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700","px-3 py-1.5 text-xs font-medium rounded-lg transition-colors"])},r(s.value.importFilterNew||"New")+" ("+r(g.value.new)+") ",3),e("button",{onClick:t[2]||(t[2]=a=>n.value="updated"),class:x([n.value==="updated"?"bg-warning-500 text-white":"bg-gray-100 text-gray-700 dark:bg-gray-800 dark:text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700","px-3 py-1.5 text-xs font-medium rounded-lg transition-colors"])},r(s.value.importFilterUpdated||"Updated")+" ("+r(g.value.updated)+") ",3),e("button",{onClick:t[3]||(t[3]=a=>n.value="unchanged"),class:x([n.value==="unchanged"?"bg-gray-500 text-white":"bg-gray-100 text-gray-700 dark:bg-gray-800 dark:text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700","px-3 py-1.5 text-xs font-medium rounded-lg transition-colors"])},r(s.value.importFilterUnchanged||"Unchanged")+" ("+r(g.value.unchanged)+") ",3),e("button",{onClick:t[4]||(t[4]=a=>n.value="duplicates"),class:x([n.value==="duplicates"?"bg-purple-500 text-white":"bg-gray-100 text-gray-700 dark:bg-gray-800 dark:text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700","px-3 py-1.5 text-xs font-medium rounded-lg transition-colors"])},r(s.value.importFilterDuplicates||"Duplicates")+" ("+r(g.value.duplicates)+") ",3),e("button",{onClick:t[5]||(t[5]=a=>n.value="skipped"),class:x([n.value==="skipped"?"bg-error-500 text-white":"bg-gray-100 text-gray-700 dark:bg-gray-800 dark:text-gray-400 hover:bg-gray-200 dark:hover:bg-gray-700","px-3 py-1.5 text-xs font-medium rounded-lg transition-colors"])},r(s.value.importFilterSkipped||"Skipped")+" ("+r(g.value.skipped)+") ",3)]),e("div",Ae,[e("div",Ve,[t[20]||(t[20]=e("button",{class:"absolute left-4 top-1/2 -translate-y-1/2 text-gray-500 dark:text-gray-400 pointer-events-none"},[e("svg",{class:"fill-current",width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.04199 9.37363C3.04199 5.87693 5.87735 3.04199 9.37533 3.04199C12.8733 3.04199 15.7087 5.87693 15.7087 9.37363C15.7087 12.8703 12.8733 15.7053 9.37533 15.7053C5.87735 15.7053 3.04199 12.8703 3.04199 9.37363ZM9.37533 1.54199C5.04926 1.54199 1.54199 5.04817 1.54199 9.37363C1.54199 13.6991 5.04926 17.2053 9.37533 17.2053C11.2676 17.2053 13.0032 16.5344 14.3572 15.4176L17.1773 18.238C17.4702 18.5309 17.945 18.5309 18.2379 18.238C18.5308 17.9451 18.5309 17.4703 18.238 17.1773L15.4182 14.3573C16.5367 13.0033 17.2087 11.2669 17.2087 9.37363C17.2087 5.04817 13.7014 1.54199 9.37533 1.54199Z",fill:""})])],-1)),N(e("input",{"onUpdate:modelValue":t[6]||(t[6]=a=>v.value=a),type:"text",placeholder:s.value.search,class:"dark:bg-dark-900 h-11 w-full rounded-lg border border-gray-300 bg-transparent py-2.5 pl-11 pr-10 text-sm text-gray-800 shadow-theme-xs placeholder:text-gray-400 focus:border-brand-300 focus:outline-hidden focus:ring-3 focus:ring-brand-500/10 dark:border-gray-700 dark:bg-gray-900 dark:text-white/90 dark:placeholder:text-white/30 dark:focus:border-brand-800 xl:w-75"},null,8,Re),[[re,v.value]]),v.value?(d(),l("button",{key:0,onClick:t[7]||(t[7]=a=>v.value=""),class:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-white/90"},[...t[19]||(t[19]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16"},[e("path",{d:"M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708
1L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"})],-1)])])):p("",!0)]),e("div",Ee,[e("span",ze,r(s.value.show),1),e("div",He,[N(e("select",{"onUpdate:modelValue":t[8]||(t[8]=a=>c.value=a),class:"w-full py-2 pl-3 pr-8 text-sm text-gray-800 bg-transparent border border-gray-300 rounded-lg appearance-none dark:bg-dark-900 h-9 bg-none shadow-theme-xs placeholder:text-gray-400 focus:border-brand-300 focus:outline-hidden focus:ring-3 focus:ring-brand-500/10 dark:border-gray-700 dark:bg-gray-900 dark:text-white/90 dark:placeholder:text-white/30 dark:focus:border-brand-800"},[...t[21]||(t[21]=[e("option",{value:"20",class:"text-gray-500 dark:bg-gray-900 dark:text-gray-400"},"20",-1),e("option",{value:"50",class:"text-gray-500 dark:bg-gray-900 dark:text-gray-400"},"50",-1),e("option",{value:"100",class:"text-gray-500 dark:bg-gray-900 dark:text-gray-400"},"100",-1)])],512),[[ae,c.value,void 0,{number:!0}]]),t[22]||(t[22]=e("span",{class:"absolute z-30 text-gray-500 -translate-y-1/2 pointer-events-none right-2 top-1/2 dark:text-gray-400"},[e("svg",{class:"stroke-current",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M3.8335 5.9165L8.00016 10.0832L12.1668 5.9165",stroke:"","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"})])],-1))]),e("span",qe,r(s.value.entries),1)])])]),e("div",Oe,[e("table",Ze,[e("thead",null,[e("tr",Ge,[t[23]||(t[23]=e("th",{class:"px-4 py-3 text-left border border-gray-100 dark:border-gray-800"},[e("p",{class:"font-medium text-gray-700 text-theme-xs dark:text-gray-400"},"#")],-1)),e("th",Je,[e("p",Ke,r(s.value.status),1)]),e("th",Qe,[e("p",Xe,r(s.value.inventoryNumber),1)]),e("th",We,[e("p",Ye,r(s.value.name),1)]),e("th",et,[e("p",tt,r(s.value.barcode),1)]),e("th",rt,[e("p",at,r(s.value.unit),1)]),e("th",st,[e("p",ot,r(s.value.price||"Price"),1)]),e("th",dt,[e("p",lt,r(s.value.serialNumber),1)]),e("th",nt,[e("p",it,r(s.value.type||"Type"),1)]),e("th",gt,[e("p",ut,r(s.value.quantity||"Quantity"),1)])])]),e("tbody",null,[(d(!0),l(U,null,D(P.value,(a,k)=>(d(),l("tr",{key:k,class:x(["border-t border-gray-100 dark:border-gray-800 hover:bg-gray-50 dark:hover:bg-white/[0.02] transition-colors",{"border-l-4 border-l-purple-400":a._duplicate}])},[e("td",xt,r((i.value-1)*c.value+k+1),1),e("td",ct,[a._status==="new"?(d(),l("span",pt,r(s.value.importFilterNew||"New"),1)):a._status==="updated"?(d(),l("span",yt,r(s.value.importFilterUpdated||"Updated"),1)):a._status==="unchanged"?(d(),l("span",bt,r(s.value.importFilterUnchanged||"Unchanged"),1)):a._status==="skipped"?(d(),l("span",{key:3,title:T(B)(a._reason),class:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-error-50 text-error-700 dark:bg-error-500/10 dark:text-error-400"},[F(r(s.value.importFilterSkipped||"Skipped"),1),a._reason?(d(),l("span",vt,"— "+r(T(B)(a._reason)),1)):p("",!0)],8,ht)):a._status==="duplicate"?(d(),l("span",kt,r(s.value.importDuplicate||"Duplicate"),1)):p("",!0)]),e("td",mt,r(a.inventory_number),1),e("td",ft,r(a.name),1),e("td",wt,r(a.barcode),1),e("td",_t,r(a.unit),1),e("td",Ct,r(a.price||0),1),e("td",Mt,r(a.serial_number),1),e("td",jt,[e("span",{class:x(["inline-flex whitespace-nowrap rounded-full px-2 py-0.5 text-xs font-medium",a.type==="fixed_asset"?"bg-brand-50 text-brand-700 dark:bg-brand-500/15 dark:text-brand-400":"bg-warning-50 text-warning-700 dark:bg-warning-500/15 dark:text-warning-400"])},r(a.type==="fixed_asset"?s.value.fixedAsset||"Fixed Asset":a.type==="small_inventory"?s.value.smallInventory||"Small Inventory":a.type),3)]),e("td",Lt,r(a.quantity||1),1)],2))),128)),P.value.length===0?(d(),l("tr",Ft,[e("td",St,r(s.value.noResults||"No results"),1)])):p("",!0)])])]),e("div",Bt,[e("p",Pt,r(O.value),1),u.value>1?(d(),l("nav",It,[e("ul",Nt,[e("li",null,[e("button",{onClick:z,disabled:i.value===1,class:"flex items-center justify-center h-9 px-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700 dark:hover:bg-white/3"},r(s.value.previousPage),9,Ut)]),u.value>0?(d(),l("li",Dt,[e("button",{onClick:t[9]||(t[9]=a=>L(1)),class:x([i.value===1?"bg-brand-500 text-white border-brand-500":"bg-white text-gray-700 border-gray-300 hover:bg-gray-50 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700 dark:hover:bg-white/3","flex items-center justify-center h-9 w-9 text-sm font-medium border rounded-lg"])},"1",2)])):p("",!0),f.value.length&&f.value[0]>2?(d(),l("li",Tt,[...t[24]||(t[24]=[e("span",{class:"flex items-center justify-center h-9 w-9 text-sm text-gray-400"},"...",-1)])])):p("",!0),(d(!0),l(U,null,D(f.value,a=>(d(),l("li",{key:a},[e("button",{onClick:k=>L(a),class:x([i.value===a?"bg-brand-500 text-white border-brand-500":"bg-white text-gray-700 border-gray-300 hover:bg-gray-50 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700 dark:hover:bg-white/3","flex items-center justify-center h-9 w-9 text-sm font-medium border rounded-lg"])},r(a),11,$t)]))),128)),f.value.length&&f.value[f.value.length-1]<u.value-1?(d(),l("li",At,[...t[25]||(t[25]=[e("span",{class:"flex items-center justify-center h-9 w-9 text-sm text-gray-400"},"...",-1)])])):p("",!0),u.value>
11?(d(),l("li",Vt,[e("button",{onClick:t[10]||(t[10]=a=>L(u.value)),class:x([i.value===u.value?"bg-brand-500 text-white border-brand-500":"bg-white text-gray-700 border-gray-300 hover:bg-gray-50 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700 dark:hover:bg-white/3","flex items-center justify-center h-9 w-9 text-sm font-medium border rounded-lg"])},r(u.value),3)])):p("",!0),e("li",null,[e("button",{onClick:E,disabled:i.value===u.value,class:"flex items-center justify-center h-9 px-3 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700 dark:hover:bg-white/3"},r(s.value.nextPage),9,Rt)])])])):p("",!0)])])])]),_:1}))}};export{Jt 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.