const i={methods:{getSellingUnitsArray(){const{sellingUnits:t}=this.$fischer.shopSettings();return typeof t=="object"?Object.values(t):t},getSellingUnit(t){const s=this.getSellingUnitsArray();if(s){const n=s.find(e=>(e==null?void 0:e.Code)===t);if(n!=null&&n.Name_Short)return n.Name_Short}return t},getSellingUnitInString(t){let s=t;const n=this.getSellingUnitsArray();return n&&n.forEach(e=>{if(!(e!=null&&e.Code&&e.Name_Short))return;new RegExp(`\\b${e.Code}\\b`).test(s)&&(s=t.replace(e.Code,e.Name_Short))}),s}}};export{i as _};