1import{_}from"./Screen-ClLks0_F.js";import{_ as h}from"./Card-J7AKWS6F.js";import{_ as g}from"./FacilText-0n0p_61V.js";import{I as y}from"./inventoryCount-C5waPP3-.js";import{C as b}from"./CountingList-CdivFgkD.js";import{n as I}from"./Navigator-nquAwlj6.js";import{r as C,o as c,e as m,w as r,Q as a,J as i,M as v,U as w,O as x}from"./vendor-DbLbO5op.js";import{_ as S}from"./index-BFSojNnq.js";import"./ScreenHeaderBar-D4wc0l2z.js";import"./device-BsPl6oaQ.js";import"./FacilAccordionPanel-C-6hTxsu.js";import"./dom-DV8nAVoD.js";import"./FacilLoader-BGI1stku.js";import"./FacilSelectJSX.vue_vue_type_script_lang-CMRpJHGs.js";import"./FacilSelect-BEaJWnTs.js";import"./FacilChip-CkezwtHD.js";import"./FacilDivider-7y7XM-7d.js";import"./debounce-C1VrBHvk.js";import"./PosLoadingState-C394rAv0.js";import"./TabButton-RoRRsjzh.js";import"./PosListItem-D3Rbf96i.js";import"./PosListGroup-CnbguUqo.js";import"./PosEmptyState-A4WHrWjs.js";import"./ProductImage-GGkUs3IV.js";import"./Thumbnail-BeEcL0Rx.js";import"./PosListLoading-WELwGIiL.js";import"./InventoryCountItem-DtZ6hNE9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"kqhew@[email protected]"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="59324df0-04d5-4612-9930-40b9bc9d4b05",e._sentryDebugIdIdentifier="sentry-dbid-59324df0-04d5-4612-9930-40b9bc9d4b05")}catch{}})();const L={name:"POSInventoryCountScanItemLegacy",components:{CountingList:b},mixins:[I,y],props:{},emits:["current"],data(){return{barcodeScannerIcon:"/images/orders/barcode_scanner.gif",barcode:"",listType:"items"}},computed:{headerBar(){return{title:this.$tt("channels.pos.inventory_count.counting.scan_item"),leftAction:{icon:"chevron_left",onAction:()=>{this.getCountingItems(!0,1),this.navigatorPop()}}}},isShowCountList(){return this.fetchingCountItems.length>0||this.fetchedCountItems.length>0||this.unknownCountItems.length>0}},created(){},mounted(){this.$nextTick(()=>{this.focusInput()}),this.$emit("current","selectedCountItem",null)},methods:{focusInput(){this.$refs.scannerInput.focus()},handleScan(){this.barcode&&(this.listType="items",this.pos.addFetchingCountItems({payload:{barcode:this.barcode,quantity:1,count_quantity:1,status:"fetching",source:"scan",is_hidden:!1,callbackDuplicateBarcode:this.handleDuplicateBarcode},vm:this}),this.barcode="",this.focusInput())}}},T=["src"],k=["innerHTML"],B={class:"text-center max-w-80 mx-auto my-4 pb-4 relative"};function D(e,t,u,E,s,n){const l=g,d=h,p=C("CountingList"),f=_;return c(),m(f,{"header-bar":n.headerBar},{default:r(()=>[a(d,{medium:"",class:"flex-shrink-0"},{default:r(()=>[i("div",{onClick:t[2]||(t[2]=(...o)=>n.focusInput&&n.focusInput(...o))},[i("div",{class:v(["mx-auto py-8 transition-all duration-300 ease-in-out",{"w-28":n.isShowCountList,"w-50":!n.isShowCountList}])},[i("img",{class:"-ml-4",src:s.barcodeScannerIcon},null,8,T)],2),i("p",{class:"text-center screen-text-large mt-4",innerHTML:e.$tt("channels.pos.inventory_count.counting.scan_item_emptystate")},null,8,k),i("div",B,[a(l,{ref:"scannerInput",modelValue:s.barcode,"onUpdate:modelValue":t[0]||(t[0]=o=>s.barcode=o),class:"scanInput",size:"lg",onEnter:t[1]||(t[1]=o=>n.handleScan())},null,8,["modelValue"])])])]),_:1}),a(w,{name:"slide-fade-bottom",mode:"out-in"},{default:r(()=>[n.isShowCountList?(c(),m(p,{key:0,"empty-state-message":e.$tt("channels.pos.inventory_count.counting.scan_item_emptystate"),type:s.listType,"onUpdate:type":t[3]||(t[3]=o=>s.listType=o)},null,8,["empty-state-message","type"])):x("",!0)]),_:1})]),_:1},8,["header-bar"])}const it=S(L,[["render",D]]);export{it 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.