{"version":3,"sources":["webpack:///./src/libs/printer/printer-varaibles.js","webpack:///./src/libs/env.js","webpack:///./node_modules/lodash/last.js","webpack:///./src/libs/printer/pshBase64Const.js","webpack:///./src/libs/printer/print.js","webpack:///./src/http/requests/printer/printer-agent.js","webpack:///./node_modules/lodash/head.js","webpack:///./src/@core/utils/dateHelper.js","webpack:///./src/http/models/printer/entity/labelparam.js"],"names":["Object","freeze","Rollo","value","labelTypes","BOX_NAME","key","FNSKU","CONTENT_BARCODE_LABEL","PALLET_BARCODE_LABEL","printerVarabiles","label","BARCODE","EXPRESSION_DATE","TITLE_LINE1","TITLE_LINE2","SHIP_FROM_LINE1","SHIP_FROM_LINE2","SHIP_FROM_LINE3","SHIP_FROM_LINE4","SHIP_FROM_LINE5","SHIP_FROM_LINE6","SHIP_TO_LINE1","SHIP_TO_LINE2","SHIP_TO_LINE3","SHIP_TO_LINE4","SHIP_TO_LINE5","SHIP_TO_LINE6","SHIPPING_PLAN_NAME","CREATED_AT","BATCH_AND_BOX_NAME","ITEM_QTY","SKU_QTY","BARCODE_CONTENT","CURRENT_DATE","PSH_BASE64_CONST","isDevelopment","process","last","array","length","undefined","module","exports","img","require","getBase64Image","image","Image","src","canvas","document","createElement","height","width","ctx","getContext","drawImage","dataURL","toDataURL","replace","pshBase64Const","_regeneratorRuntime","e","t","r","prototype","n","hasOwnProperty","o","defineProperty","i","Symbol","a","iterator","c","asyncIterator","u","toStringTag","define","enumerable","configurable","writable","wrap","Generator","create","Context","makeInvokeMethod","tryCatch","type","arg","call","h","l","f","s","y","GeneratorFunction","GeneratorFunctionPrototype","p","d","getPrototypeOf","v","values","g","defineIteratorMethods","forEach","_invoke","AsyncIterator","invoke","_typeof","resolve","__await","then","callInvokeWithMethodAndArg","Error","done","method","delegate","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","return","TypeError","resultName","next","nextLoc","pushTryEntry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","isNaN","displayName","isGeneratorFunction","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","keys","reverse","pop","prev","charAt","slice","stop","rval","handle","complete","finish","catch","delegateYield","asyncGeneratorStep","_asyncToGenerator","arguments","apply","_next","_throw","usePrinter","currentPrinter","computed","store","getters","removeXMLInvalidChars","string","removeDiscouragedChars","regex","RegExp","truncateTitle","text","title","lineCount","Math","ceil","newTitleArray","substr","headLine","head","trimEnd","lastLine","trimStart","concat","pshBase64","ref","printers","labels","selectedPrinter","getAvailablePrinters","_getAvailablePrinters","_callee2","_context2","printerAgentService","availablePrinters","result","data","getLabels","_x","_getLabels","_callee3","vendorName","_context3","labelsByVendor","getLabelIdByName","_x2","_getLabelIdByName","_callee4","_context4","VendorName","find","Name","print","_x3","_print","_callee5","params","labelName","count","opt","_args5","_context5","Vendor","Connection","Address","LabelId","IterateCount","Params","printoutbylabel","Notify","success","error","printStaticLabel","_x4","_x5","_x6","_x7","_printStaticLabel","_callee6","vendor","connection","_args6","_context6","is","Id","LabelName","warning","printStaticLabelListHandle","_x8","_x9","_x10","_x11","_x12","_printStaticLabelListHandle","_callee7","labelId","_args7","_context7","sleep","ms","setTimeout","chunkArray","chunkSize","results","chunk","printStaticLabelList","_x13","_x14","_x15","_x16","_printStaticLabelList","_callee8","listParams","chunkedParams","_iterator","_step","_loop","_args9","_context9","_createForOfIteratorHelper","paramsChunk","list","_iterator2","_step2","item","_context8","printOutByLabelList","t0","t1","printManualLabel","_x17","_x18","_x19","_x20","_printManualLabel","_callee9","_args10","_context10","getLabelDocument","_x21","_x22","_x23","_getLabelDocument","_callee10","_context11","printStaticLabelCurrentPrinter","_x24","_printStaticLabelCurrentPrinter","_callee11","payload","_context12","printFnskuLabel","_x25","_printFnskuLabel","_callee12","barcode","expirationDate","copies","expDate","titleStr","titleArr","_context13","formatedDateStr","LabelParam","split","filter","onBeforeMount","_callee","_context","watch","newValue","oldValue","deep","baseURL","timeout","accessToken","bearer","axios","defaults","trailingSlash","axiosPrinter","headers","get","post","common","Authorization","isAgentInstalled","promise","reject","endpoints","printerAgentManagement","Controller","response","printermodel","getAgentVersion","printoutbyraw","printoutbyrawdata","labelsbyvendor","validate","dateStr","dateObj","Date","toString","formatedDate","format","year","month","day","formatObj","Intl","DateTimeFormat","formatStr","moment","formatedIsoDateStr","toISOString","convertToISO","dateString","date","validateDate","_createClass","Merge","Value","_classCallCheck","this"],"mappings":"8JAOgBA,OAAOC,OAAO,CAC5BC,MAAO,CAAEC,MAAO,WADlB,IAIMC,EAAaJ,OAAOC,OAAO,CAC/BI,SAAU,CAAEC,IAAK,UAAWH,MAAO,WACnCI,MAAO,CAAED,IAAK,QAASH,MAAO,SAC9BK,sBAAuB,CAAEF,IAAK,sBAAuBH,MAAO,uBAC5DM,qBAAsB,CAAEH,IAAK,qBAAsBH,MAAO,wBAGtDO,EAAmBV,OAAOC,OAAO,CACrCI,SAAU,CAAEC,IAAK,UAAWH,MAAO,cAAeQ,MAAO,OACzDC,QAAS,CAAEN,IAAK,UAAWH,MAAO,cAAeQ,MAAO,SACxDE,gBAAiB,CAAEP,IAAK,iBAAkBH,MAAO,qBAAsBQ,MAAO,SAC9EG,YAAa,CAAER,IAAK,aAAcH,MAAO,iBAAkBQ,MAAO,SAClEI,YAAa,CAAET,IAAK,aAAcH,MAAO,iBAAkBQ,MAAO,SAClEK,gBAAiB,CAAEV,IAAK,gBAAiBH,MAAO,oBAAqBQ,MAAO,uBAC5EM,gBAAiB,CAAEX,IAAK,gBAAiBH,MAAO,oBAAqBQ,MAAO,uBAC5EO,gBAAiB,CAAEZ,IAAK,gBAAiBH,MAAO,oBAAqBQ,MAAO,uBAC5EQ,gBAAiB,CAAEb,IAAK,gBAAiBH,MAAO,oBAAqBQ,MAAO,uBAC5ES,gBAAiB,CAAEd,IAAK,gBAAiBH,MAAO,oBAAqBQ,MAAO,uBAC5EU,gBAAiB,CAAEf,IAAK,gBAAiBH,MAAO,oBAAqBQ,MAAO,uBAC5EW,cAAe,CAAEhB,IAAK,cA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C,IAA7BY,EAASvN,UAAA7H,OAAA,QAAAC,IAAA4H,UAAA,GAAAA,UAAA,GAAG,aAChD4M,EAAUG,EAAaJ,GAC7B,IAAKC,EAAS,MAAO,GAErB,IAAMrK,EAASiL,IAAOZ,EAASW,GAAWG,cAC1C,OAAOnL,GAGIoL,EAAe,SAAAC,GAC1B,IAAMC,EAAO,IAAIhB,KAAKe,GACtB,OAAOC,EAAKH,eAGDI,EAAe,SAAAnB,GAAO,OAAID,EAASC,K,u9BC3CzC,IAAMpC,EAAUwD,GACrB,SAAAxD,IAGE,IAFAyD,EAAKhO,UAAA7H,OAAA,QAAAC,IAAA4H,UAAA,GAAAA,UAAA,GAAG,GACRiO,EAAKjO,UAAA7H,OAAA,QAAAC,IAAA4H,UAAA,GAAAA,UAAA,GAAG,GAAEkO,EAAA,KAAA3D,GAEV4D,KAAKH,MAAQA,EACbG,KAAKF,MAAQA","file":"js/chunk-7865a230.9bc5dc86.js","sourcesContent":["import find from 'lodash/find'\r\n/**\r\n * Enum for Amazon Status.\r\n * @readonly\r\n * @enum {{key: string, value: string}}\r\n */\r\n\r\nconst vendors = Object.freeze({\r\n Rollo: { value: 'Rollo' },\r\n})\r\n\r\nconst labelTypes = Object.freeze({\r\n BOX_NAME: { key: 'BoxName', value: 'BoxName' },\r\n FNSKU: { key: 'FNSKU', value: 'FNSKU' },\r\n CONTENT_BARCODE_LABEL: { key: 'ContentBarcodeLabel', value: 'ContentBarcodeLabel' },\r\n PALLET_BARCODE_LABEL: { key: 'PalletBarcodeLabel', value: 'PalletBarcodeLabel' },\r\n})\r\n\r\nconst printerVarabiles = Object.freeze({\r\n BOX_NAME: { key: 'boxName', value: '%%boxName%%', label: 'Box' },\r\n BARCODE: { key: 'barcode', value: '%%barcode%%', label: 'FNSKU' },\r\n EXPRESSION_DATE: { key: 'expressionDate', value: '%%expressionDate%%', label: 'FNSKU' },\r\n TITLE_LINE1: { key: 'titleLine1', value: '%%titleLine1%%', label: 'FNSKU' },\r\n TITLE_LINE2: { key: 'titleLine2', value: '%%titleLine2%%', label: 'FNSKU' },\r\n SHIP_FROM_LINE1: { key: 'shipFromLine1', value: '%%shipFromLine1%%', label: 'ContentBarcodeLabel' },\r\n SHIP_FROM_LINE2: { key: 'shipFromLine2', value: '%%shipFromLine2%%', label: 'ContentBarcodeLabel' },\r\n SHIP_FROM_LINE3: { key: 'shipFromLine3', value: '%%shipFromLine3%%', label: 'ContentBarcodeLabel' },\r\n SHIP_FROM_LINE4: { key: 'shipFromLine4', value: '%%shipFromLine4%%', label: 'ContentBarcodeLabel' },\r\n SHIP_FROM_LINE5: { key: 'shipFromLine5', value: '%%shipFromLine5%%', label: 'ContentBarcodeLabel' },\r\n SHIP_FROM_LINE6: { key: 'shipFromLine6', value: '%%shipFromLine6%%', label: 'ContentBarcodeLabel' },\r\n SHIP_TO_LINE1: { key: 'shipToLine1', value: '%%shipToLine1%%', label: 'ContentBarcodeLabel' },\r\n SHIP_TO_LINE2: { key: 'shipToLine2', value: '%%shipToLine2%%', label: 'ContentBarcodeLabel' },\r\n SHIP_TO_LINE3: { key: 'shipToLine3', value: '%%shipToLine3%%', label: 'ContentBarcodeLabel' },\r\n SHIP_TO_LINE4: { key: 'shipToLine4', value: '%%shipToLine4%%', label: 'ContentBarcodeLabel' },\r\n SHIP_TO_LINE5: { key: 'shipToLine5', value: '%%shipToLine5%%', label: 'ContentBarcodeLabel' },\r\n SHIP_TO_LINE6: { key: 'shipToLine6', value: '%%shipToLine6%%', label: 'ContentBarcodeLabel' },\r\n SHIPPING_PLAN_NAME: { key: 'shippingPlanName', value: '%%shippingPlanName%%', label: 'ContentBarcodeLabel' },\r\n CREATED_AT: { key: 'createdAt', value: '%%createdAt%%', label: 'ContentBarcodeLabel' },\r\n BATCH_AND_BOX_NAME: { key: 'batchAndBoxName', value: '%%batchAndBoxName%%', label: 'ContentBarcodeLabel' },\r\n ITEM_QTY: { key: 'itemQty', value: '%%itemQty%%', label: 'ContentBarcodeLabel' },\r\n SKU_QTY: { key: 'skuQty', value: '%%skuQty%%', label: 'ContentBarcodeLabel' },\r\n BARCODE_CONTENT: { key: 'barcode', value: '%%barcode%%', label: 'ContentBarcodeLabel' },\r\n CURRENT_DATE: { key: 'currentDate', value: '%%currentDate%%', label: 'ContentBarcodeLabel' },\r\n PSH_BASE64_CONST: { key: 'pshBase64Const', value: '%%pshBase64Const%%', label: 'ContentBarcodeLabel' },\r\n})\r\n\r\nconst palletBarcodeVarabiles = Object.freeze({\r\n SHIP_FROM_LINE1: { key: 'shipFromLine1', value: '%%shipFromLine1%%', label: 'PalletBarcodeLabel' },\r\n SHIP_FROM_LINE2: { key: 'shipFromLine2', value: '%%shipFromLine2%%', label: 'PalletBarcodeLabel' },\r\n SHIP_FROM_LINE3: { key: 'shipFromLine3', value: '%%shipFromLine3%%', label: 'PalletBarcodeLabel' },\r\n SHIP_FROM_LINE4: { key: 'shipFromLine4', value: '%%shipFromLine4%%', label: 'PalletBarcodeLabel' },\r\n SHIP_FROM_LINE5: { key: 'shipFromLine5', value: '%%shipFromLine5%%', label: 'PalletBarcodeLabel' },\r\n SHIP_FROM_LINE6: { key: 'shipFromLine6', value: '%%shipFromLine6%%', label: 'PalletBarcodeLabel' },\r\n SHIP_TO_LINE1: { key: 'shipToLine1', value: '%%shipToLine1%%', label: 'PalletBarcodeLabel' },\r\n SHIP_TO_LINE2: { key: 'shipToLine2', value: '%%shipToLine2%%', label: 'PalletBarcodeLabel' },\r\n SHIP_TO_LINE3: { key: 'shipToLine3', value: '%%shipToLine3%%', label: 'PalletBarcodeLabel' },\r\n SHIP_TO_LINE4: { key: 'shipToLine4', value: '%%shipToLine4%%', label: 'PalletBarcodeLabel' },\r\n SHIP_TO_LINE5: { key: 'shipToLine5', value: '%%shipToLine5%%', label: 'PalletBarcodeLabel' },\r\n SHIP_TO_LINE6: { key: 'shipToLine6', value: '%%shipToLine6%%', label: 'PalletBarcodeLabel' },\r\n SHIPPING_PLAN_NAME: { key: 'shippingPlanName', value: '%%shippingPlanName%%', label: 'PalletBarcodeLabel' },\r\n CREATED_AT: { key: 'createdAt', value: '%%createdAt%%', label: 'PalletBarcodeLabel' },\r\n BATCH_AND_BOX_NAME: { key: 'batchAndBoxName', value: '%%batchAndBoxName%%', label: 'PalletBarcodeLabel' },\r\n CURRENT_DATE: { key: 'currentDate', value: '%%currentDate%%', label: 'PalletBarcodeLabel' },\r\n PSH_BASE64_CONST: { key: 'pshBase64Const', value: '%%pshBase64Const%%', label: 'PalletBarcodeLabel' },\r\n})\r\n\r\nfunction getPrinterVarabile(predicate, predicateKey = 'key') {\r\n const result = find(printerVarabiles, { [predicateKey]: predicate })\r\n return result || { key: 'None', value: null, text: 'None' }\r\n}\r\n\r\nfunction getPrinterVarabiles() {\r\n const result = Object.keys(printerVarabiles).map(key => printerVarabiles[key])\r\n return result\r\n}\r\n\r\nexport default printerVarabiles\r\n\r\nexport {\r\n vendors,\r\n palletBarcodeVarabiles,\r\n labelTypes,\r\n getPrinterVarabile,\r\n getPrinterVarabiles,\r\n}\r\n","export const isProduction = process.env.NODE_ENV === 'production'\nexport const isDevelopment = process.env.NODE_ENV === 'development'\nexport const isStaging = process.env.VUE_APP_APPLICATION_MODE === 'staging'\n","/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n}\n\nmodule.exports = last;\n","/* eslint-disable global-require */\nconst img = require('@/assets/images/logo/prep.svg')\n\nfunction getBase64Image() {\n const image = new Image()\n image.src = img\n const canvas = document.createElement('canvas')\n canvas.height = image.height\n canvas.width = image.width\n\n const ctx = canvas.getContext('2d')\n ctx.drawImage(image, 0, 0)\n const dataURL = canvas.toDataURL('image/png')\n return dataURL.replace(/^data:image\\/(png|jpg);base64,/, '')\n}\n\nconst getCanvasImage = () => {\n const image = new Image()\n image.src = img\n const canvas = document.createElement('canvas')\n canvas.height = image.height\n canvas.width = image.width\n\n const ctx = canvas.getContext('2d')\n ctx.drawImage(image, 0, 0)\n return canvas.toDataURL('image/png')\n}\n\nconst phpLogoBase64String = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAB8CAYAAADThI02AAAAAXNSR0IArs4c6QAADcNJREFUeF7tnU9oHdcVxueptUWtplJiAi0llbsoxColJoFgC4wdbZpAF6FgTMnCIWsvGi9ssAWOQAkkhWQT6K61FqWYLJpFi9tCnScMlhuSoEVteVelhkIpcqQ0ciNH1gv3KRM9SfNmzjn3zMy5c7+skuj+O9855zfn3nffvFZSwT//ffzwcTfNN1qti+l0nSTp/j/8AwWsKPDIrevspdwdG2f3QQeRAv/ZvzD33ZaoK6GTg5QDFMBEEAtNTCgAYJlwQ79F6AMLkDLtcCyuQAEAy3SI6AELoDLtaCyOqACARRSqnmb+wAKo6vEcZi1HAQCrHF2VRvUD1tLY+CtJp/P1IbrSojAMFKhNAQCrNukpE8uAhaqKoi3ahKgAgGXaa3xgOVgNtFrvmTYLi4MCQgUALKFw1XTjAQtbwGq8glnqUwDAqk97wsx0YAFWBDnRJHgFACzTLqQBC7Ay7UQsTlEBAEtRTP2hioEFWOmrjhHtKgBg2fVNkiQEYB080jFtAhYHBRQVALAUxdQfKh9Ydw8eeQ/fA9RXHSPaVQDAsuub3AoLW0HTjsPiSlIAwCpJWJ1hsyss3LXSURejhKcAgGXaZ9nAQnVl2mlYXIkKAFglius/9G5gAVb+qmKEcBUAsEz7DsAy7R4srnIFAKzKJedMuB1YqK442qFtExUAsEx7FcAy7R4srnIFAKzKJedMuANYuCTKEQ9tG6gAgGXaqVvACmU7ODhxdN60pEmSrF29dsj6GovWF6vOsQFr78TR+fvhxGsYwBp6c3p27+Gnhlsjw0GBoLO80oXr/Rsfrqz//YPFjX/+69QX739UxIrK/+7gtG/6fHfeEDV2+q6emTymIVwMwHKQGpo+v8vXa3++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p+9mdpWQUsy/BHE4C1f2Gu5bQxuSXMcpqD1/r7H7UBKVpIu6qL1tJuK+3tntRSp6WVtUhsALAkqqEPFIACtSgQPLBaran9t66/ElSFVYunMSkUaIACAFYDnAgToEAsCoQOrPT8ChVWLBELO6NWIGhg9WwHAayowxjGx6JAyMDqra4ArFgiFnZGrUCwwNpRXQFYUYcxjI9FgVCBtbO6ArBiiVjYGbUCQQIro7oCsKIOYxgfiwIhAiurugKwYolY2Bm1AqEBa6PTeebR2zfaWU4L5qs5UUccjIcCHgoEBaw+W8HUfADLIxDQFQqEoEAwwCqAFbaEIUQb1ggFPBUIAlgEWAFYnoGA7lAgBAWsA6uVJO1HFuaeoWiJLSFFJbSBAgErYBpYxMoKZ1gBByCWDgU4CpgFFhNW2BJyvI62UCBQBSwCK+/qQp7M2BIGGoRYNhSgKmAJWJzzqiz7ACyq19EOCgSqgAVgOVA96HSm+l0IpUoLYFGVQjsoEKgCdQJLC1Q4dA80+LBsKMBVoGpgaUOq115UWFzvoz0UCEyBMoDloNQrQ6fVmt3Y2Gj7bvmKpP0SXWlhMRBb7hMAAAAASUVORK5CYII='\nconst pshBase64Const = getBase64Image()\nexport default pshBase64Const\nexport {\n phpLogoBase64String,\n getCanvasImage,\n getBase64Image,\n}\n","/* eslint-disable no-restricted-syntax */\r\n/* eslint-disable no-await-in-loop */\r\n/* eslint-disable no-param-reassign */\r\n/* eslint-disable no-control-regex */\r\n/* eslint-disable no-unused-vars */\r\nimport { isDevelopment } from '@/libs/env.js'\r\nimport {\r\n onBeforeMount, computed, ref, watch,\r\n} from '@vue/composition-api'\r\nimport { formatedDateStr } from '@/@core/utils/dateHelper.js'\r\nimport head from 'lodash/head'\r\nimport last from 'lodash/last'\r\nimport find from 'lodash/find'\r\nimport store from '@/store'\r\nimport printerAgentService from '@/http/requests/printer/printer-agent'\r\nimport { Notify } from '@robustshell/utils/index'\r\nimport { LabelParam } from '@/http/models/printer/entity/labelparam'\r\nimport pshBase64Const from './pshBase64Const'\r\nimport printerVarabiles, { vendors } from './printer-varaibles'\r\n\r\nexport default function usePrinter() {\r\n const currentPrinter = computed(() => store.getters['fbaShipment/getPrinterSettings'])\r\n\r\n const removeXMLInvalidChars = (string, removeDiscouragedChars = true) => {\r\n let regex = /((?:[\\0-\\x08\\x0B\\f\\x0E-\\x1F\\uFFFD\\uFFFE\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]))/g\r\n string = string.replace(regex, '')\r\n string = string.replace(/[^\\w ]/g, '')\r\n if (removeDiscouragedChars) {\r\n regex = new RegExp(\r\n '([\\\\x7F-\\\\x84]|[\\\\x86-\\\\x9F]|[\\\\uFDD0-\\\\uFDEF]|(?:\\\\uD83F[\\\\uDFFE\\\\uDFFF])|(?:\\\\uD87F[\\\\uDF'\r\n + 'FE\\\\uDFFF])|(?:\\\\uD8BF[\\\\uDFFE\\\\uDFFF])|(?:\\\\uD8FF[\\\\uDFFE\\\\uDFFF])|(?:\\\\uD93F[\\\\uDFFE\\\\uD'\r\n + 'FFF])|(?:\\\\uD97F[\\\\uDFFE\\\\uDFFF])|(?:\\\\uD9BF[\\\\uDFFE\\\\uDFFF])|(?:\\\\uD9FF[\\\\uDFFE\\\\uDFFF])'\r\n + '|(?:\\\\uDA3F[\\\\uDFFE\\\\uDFFF])|(?:\\\\uDA7F[\\\\uDFFE\\\\uDFFF])|(?:\\\\uDABF[\\\\uDFFE\\\\uDFFF])|(?:\\\\'\r\n + 'uDAFF[\\\\uDFFE\\\\uDFFF])|(?:\\\\uDB3F[\\\\uDFFE\\\\uDFFF])|(?:\\\\uDB7F[\\\\uDFFE\\\\uDFFF])|(?:\\\\uDBBF'\r\n + '[\\\\uDFFE\\\\uDFFF])|(?:\\\\uDBFF[\\\\uDFFE\\\\uDFFF])(?:[\\\\0-\\\\t\\\\x0B\\\\f\\\\x0E-\\\\u2027\\\\u202A-\\\\uD7FF\\\\'\r\n + 'uE000-\\\\uFFFF]|[\\\\uD800-\\\\uDBFF][\\\\uDC00-\\\\uDFFF]|[\\\\uD800-\\\\uDBFF](?![\\\\uDC00-\\\\uDFFF])|'\r\n + '(?:[^\\\\uD800-\\\\uDBFF]|^)[\\\\uDC00-\\\\uDFFF]))', 'g',\r\n )\r\n string = string.replace(regex, '')\r\n }\r\n\r\n return string\r\n }\r\n const truncateTitle = text => {\r\n let title = text\r\n title = removeXMLInvalidChars(title)\r\n if (title && title.length > 90) {\r\n const lineCount = Math.ceil(title.length / 50)\r\n const newTitleArray = []\r\n for (let i = 0, o = 0; i < lineCount; i += 1, o += 50) {\r\n newTitleArray.push(title.substr(o, 50))\r\n }\r\n let headLine = head(newTitleArray)\r\n headLine = headLine.trimEnd()\r\n let lastLine = last(newTitleArray)\r\n lastLine = lastLine.trimStart()\r\n if (lastLine.length < 40) {\r\n lastLine = title.substr(title.length - 40)\r\n }\r\n\r\n title = `${headLine}...${lastLine}`\r\n return title\r\n }\r\n return title\r\n }\r\n const pshBase64 = ref(pshBase64Const)\r\n const printers = ref([])\r\n const labels = ref([])\r\n const selectedPrinter = ref({})\r\n\r\n async function getAvailablePrinters() {\r\n printerAgentService.availablePrinters().then(result => {\r\n printers.value.length = 0\r\n printers.value = result.data\r\n })\r\n }\r\n\r\n onBeforeMount(async () => {\r\n if (isDevelopment) return\r\n await getAvailablePrinters()\r\n })\r\n\r\n async function getLabels(vendorName) {\r\n const result = await printerAgentService.labelsByVendor(vendorName)\r\n labels.value.length = 0\r\n labels.value = result.data\r\n }\r\n\r\n async function getLabelIdByName(name) {\r\n if (labels.value.length === 0) await getLabels(currentPrinter.value.VendorName)\r\n const label = find(labels.value, p => p.Name === name)\r\n return label\r\n }\r\n\r\n watch(() => selectedPrinter,\r\n (newValue, oldValue) => {\r\n getLabels(newValue.value.VendorName)\r\n },\r\n { deep: true })\r\n\r\n async function print(params, labelName = '', count = 1) {\r\n const opt = {\r\n Vendor: currentPrinter.value.VendorName,\r\n Connection: currentPrinter.value.Address,\r\n LabelId: currentPrinter.value.LabelId,\r\n labelName: labelName,\r\n IterateCount: count,\r\n Params: params,\r\n }\r\n\r\n const result = await printerAgentService.printoutbylabel(opt)\r\n if (result.data === true) {\r\n Notify.success('Print out job sent')\r\n } else {\r\n Notify.error('System could not print label')\r\n }\r\n }\r\n\r\n async function printStaticLabel(vendor, connection, labelName, params, count = 1) {\r\n const label = await getLabelIdByName(labelName)\r\n if (!Object.is(label, null) && !Object.is(label, undefined)) {\r\n const opt = {\r\n Vendor: vendor,\r\n Connection: connection,\r\n LabelId: label.Id,\r\n IterateCount: count,\r\n Params: params,\r\n LabelName: label.Name,\r\n }\r\n const result = await printerAgentService.printoutbylabel(opt)\r\n if (result.data === true) {\r\n Notify.success('Print out job sent')\r\n } else {\r\n Notify.error('System could not print label')\r\n }\r\n } else {\r\n Notify.warning('No label template found.')\r\n }\r\n }\r\n\r\n async function printStaticLabelListHandle(vendor, connection, labelId, labelName, params, count = 1) {\r\n const opt = {\r\n Vendor: vendor,\r\n Connection: connection,\r\n LabelId: labelId,\r\n IterateCount: count,\r\n Params: params,\r\n LabelName: labelName,\r\n }\r\n const result = await printerAgentService.printoutbylabel(opt)\r\n if (result.data === true) {\r\n Notify.success('Print out job sent')\r\n } else {\r\n Notify.error('System could not print label')\r\n }\r\n }\r\n\r\n function sleep(ms) {\r\n return new Promise(resolve => setTimeout(resolve, ms))\r\n }\r\n\r\n function chunkArray(array, chunkSize) {\r\n const results = []\r\n for (let i = 0; i < array.length; i += chunkSize) {\r\n const chunk = array.slice(i, i + chunkSize)\r\n results.push(chunk)\r\n }\r\n return results\r\n }\r\n\r\n async function printStaticLabelList(vendor, connection, labelName, listParams, count = 1) {\r\n const label = await getLabelIdByName(labelName)\r\n if (!Object.is(label, null) && !Object.is(label, undefined)) {\r\n const chunkedParams = chunkArray(listParams, 50)\r\n for (const paramsChunk of chunkedParams) {\r\n const list = []\r\n paramsChunk.forEach(params => {\r\n const opt = {\r\n Vendor: vendor,\r\n Connection: connection,\r\n LabelId: label.Id,\r\n LabelName: label.Name,\r\n IterateCount: count,\r\n Params: params,\r\n }\r\n list.push(opt)\r\n })\r\n\r\n try {\r\n const result = await printerAgentService.printOutByLabelList(list)\r\n if (result.data === true) {\r\n Notify.success('Print out job sent')\r\n await sleep(10)\r\n } else {\r\n for (const item of list) {\r\n await printStaticLabelListHandle(item.Vendor, item.Connection, item.LabelId, item.LabelName, item.Params, item.IterateCount)\r\n }\r\n }\r\n } catch (error) {\r\n Notify.error('Error occurred while printing job')\r\n }\r\n\r\n // Optional: Add a small delay between chunk requests to avoid overwhelming the server\r\n await new Promise(resolve => setTimeout(resolve, 100))\r\n }\r\n } else {\r\n Notify.warning('No label template found.')\r\n }\r\n }\r\n\r\n async function printManualLabel(vendor, connection, labelId, params, count = 1) {\r\n const opt = {\r\n Vendor: vendor,\r\n Connection: connection,\r\n LabelId: labelId,\r\n IterateCount: count,\r\n Params: params,\r\n }\r\n\r\n const result = await printerAgentService.printoutbylabel(opt)\r\n if (result.data === true) {\r\n Notify.success('Print out job sent')\r\n } else {\r\n Notify.error('System could not print label')\r\n }\r\n }\r\n\r\n async function getLabelDocument(vendor, labelName, params) {\r\n const label = await getLabelIdByName(labelName)\r\n const opt = {\r\n Vendor: vendor,\r\n LabelId: label.Id,\r\n Params: params,\r\n }\r\n const result = await printerAgentService.getLabelDocument(opt)\r\n return result.data\r\n }\r\n\r\n async function printStaticLabelCurrentPrinter(payload) {\r\n const label = await getLabelIdByName(payload.labelName)\r\n const opt = {\r\n Vendor: currentPrinter.value.VendorName,\r\n Connection: currentPrinter.value.Address,\r\n LabelId: label.Id,\r\n IterateCount: 1,\r\n Params: payload.params,\r\n LabelName: label.Name,\r\n }\r\n\r\n const result = await printerAgentService.printoutbylabel(opt)\r\n if (result.data === true) {\r\n Notify.success('Print out job sent')\r\n } else {\r\n Notify.error('System could not print label')\r\n }\r\n }\r\n\r\n async function printFnskuLabel(payload) {\r\n const {\r\n barcode, title, expirationDate, copies,\r\n } = payload\r\n\r\n let expDate = ''\r\n if (expirationDate) {\r\n expDate = formatedDateStr(expirationDate, 'MM/DD/YYYY')\r\n }\r\n\r\n const params = []\r\n params.push(new LabelParam(printerVarabiles.BARCODE.value, barcode))\r\n params.push(new LabelParam(printerVarabiles.EXPRESSION_DATE.value, expDate))\r\n const titleStr = truncateTitle(title)\r\n const titleArr = titleStr.split(/(.{50})/).filter(p => p)\r\n if (titleArr.length > 1) {\r\n params.push(new LabelParam(printerVarabiles.TITLE_LINE1.value, titleArr[0]))\r\n params.push(new LabelParam(printerVarabiles.TITLE_LINE2.value, titleArr[1]))\r\n } else {\r\n params.push(new LabelParam(printerVarabiles.TITLE_LINE1.value, titleArr[0]))\r\n params.push(new LabelParam(printerVarabiles.TITLE_LINE2.value, ''))\r\n }\r\n await print(params, 'FNSKU', copies)\r\n }\r\n\r\n return {\r\n selectedPrinter,\r\n currentPrinter,\r\n printers,\r\n labels,\r\n pshBase64,\r\n getLabels,\r\n truncateTitle,\r\n printStaticLabel,\r\n printStaticLabelList,\r\n printStaticLabelCurrentPrinter,\r\n printManualLabel,\r\n printFnskuLabel,\r\n getLabelDocument,\r\n }\r\n}\r\n","import endpoints from '@/http/endpoints'\nimport axios from 'axios'\n\nconst baseURL = process.env.VUE_APP_PRINTERAPI_URL\nconst timeout = process.env.VUE_APP_TIMEOUT\n\nconst accessToken = 'eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImF1dGgiOiIiLCJleHAiOjE2NjgyNjQyNjl9.to9nY1FTak-N7MnJrst6EN0hQpvwX_vehD0U0EfGX0nWZ7GsnpflCuiRgMouUCfbwxCfZbquWUv5feUaubmP5A'\nconst bearer = `Bearer ${accessToken}`\n\naxios.defaults.trailingSlash = false\nconst axiosPrinter = axios.create({\n baseURL,\n timeout,\n headers: {\n 'Content-type': 'application/json;charset=UTF-8',\n 'Accept-Language': 'en',\n get: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n },\n post: {\n 'Content-Type': 'application/json;charset=UTF-8',\n 'Access-Control-Allow-Origin': '*',\n },\n common: {\n 'Content-Type': 'application/json;charset=UTF-8',\n Authorization: bearer,\n },\n },\n})\nexport default {\n\n async isAgentInstalled() {\n const promise = new Promise((resolve, reject) => {\n axiosPrinter.get(endpoints.printerAgentManagement.Controller.availablePrinters())\n .then(response => {\n resolve({ data: response.data })\n })\n .catch(error => reject(error))\n })\n promise.then(result => result, error => error)\n return promise\n },\n async availablePrinters() {\n const promise = new Promise((resolve, reject) => {\n axiosPrinter.get(endpoints.printerAgentManagement.Controller.availablePrinters())\n .then(response => {\n resolve({ data: response.data })\n })\n .catch(error => reject(error))\n })\n promise.then(result => result, error => error)\n return promise\n },\n async labelTypes(vendor, printermodel) {\n const promise = new Promise((resolve, reject) => {\n axiosPrinter.get(endpoints.printerAgentManagement.Controller.labelTypes(), { headers: { vendor: vendor, printermodel: printermodel } })\n .then(response => {\n resolve({ data: response.data })\n })\n .catch(error => reject(error))\n })\n promise.then(result => result, error => error)\n return promise\n },\n async labels(printermodel) {\n const promise = new Promise((resolve, reject) => {\n axiosPrinter.get(endpoints.printerAgentManagement.Controller.labels(), { headers: { printermodel: printermodel } })\n .then(response => {\n resolve({ data: response.data })\n })\n .catch(error => reject(error))\n })\n promise.then(result => result, error => error)\n return promise\n },\n async getAgentVersion() {\n const result = await axiosPrinter.get(endpoints.printerAgentManagement.Controller.getAgentVersion())\n return result.data\n },\n async printoutbylabel(data) {\n const result = await axiosPrinter.post(endpoints.printerAgentManagement.Controller.printoutbylabel(), data)\n return { data: result.data }\n },\n async printOutByLabelList(data) {\n const result = await axiosPrinter.post(endpoints.printerAgentManagement.Controller.printOutByLabelList(), data)\n return { data: result.data }\n },\n async getLabelDocument(data) {\n const result = await axiosPrinter.post(endpoints.printerAgentManagement.Controller.getLabelDocument(), data)\n return { data: result.data }\n },\n async printoutbyraw(data) {\n const promise = new Promise((resolve, reject) => {\n axiosPrinter.post(endpoints.printerAgentManagement.Controller.printoutbyrawdata(), data)\n .then(response => {\n resolve({ data: response.data })\n })\n .catch(error => reject(error))\n })\n promise.then(result => result, error => error)\n return promise\n },\n async labelsByVendor(vendor) {\n const response = await axiosPrinter.get(endpoints.printerAgentManagement.Controller.labelsbyvendor(), { headers: { vendor: vendor } })\n return {\n data: response.data,\n }\n },\n}\n","/**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\nfunction head(array) {\n return (array && array.length) ? array[0] : undefined;\n}\n\nmodule.exports = head;\n","/* eslint-disable no-restricted-globals */\n\nimport moment from 'moment'\n\nconst validate = dateStr => {\n if (!dateStr) return false\n const dateObj = new Date(dateStr)\n return !isNaN(dateObj) && dateObj.toString() !== 'Invalid Date'\n}\n\nconst formatedDate = (dateStr, format = {\n year: 'numeric',\n month: '2-digit',\n day: '2-digit',\n}) => {\n if (!validate(dateStr)) return ''\n\n const dateObj = new Date(dateStr)\n\n const formatObj = new Intl.DateTimeFormat('en-US', format).format(dateObj)\n return formatObj\n}\n\nexport const formatedDateStr = (dateStr, formatStr = 'YYYY-MM-DD') => {\n const dateObj = formatedDate(dateStr)\n if (!dateObj) return ''\n const result = moment(dateObj).format(formatStr)\n return result\n}\n\nexport const formatedIsoDateStr = (dateStr, formatStr = 'YYYY-MM-DD') => {\n const dateObj = formatedDate(dateStr)\n if (!dateObj) return ''\n\n const result = moment(dateObj, formatStr).toISOString()\n return result\n}\n\nexport const convertToISO = dateString => {\n const date = new Date(dateString)\n return date.toISOString()\n}\n\nexport const validateDate = dateStr => validate(dateStr)\n","export class LabelParam {\n constructor(\n Merge = '',\n Value = '',\n ) {\n this.Merge = Merge\n this.Value = Value\n }\n}\n"],"sourceRoot":""}