{"version":3,"sources":["webpack:///./src/helpers/SnackbarHelper.ts","webpack:///./src/helpers/CookieHelper.ts","webpack:///./src/helpers/DateHelper.ts","webpack:///./src/helpers/OrderlineHelper.ts","webpack:///./src/helpers/ApiHelper.ts","webpack:///./src/helpers/StatusHelper.ts","webpack:///./src/helpers/StoreHelper.ts","webpack:///./src/helpers/AuthHelper.ts","webpack:///./src/helpers/ConversionHelper.ts","webpack:///./src/helpers/StringHelper.ts","webpack:///./src/filters/GlobalFilters.ts","webpack:///./src/main.ts","webpack:///./src/helpers/ObjectHelper.ts","webpack:///./src/helpers/ImageHelper.ts","webpack:///./src/helpers/ValidationHelper.ts"],"names":["SetSnackBar","message","actionText","arguments","length","undefined","customAction","timeout","backgroundColor","actionTextColor","store","dispatch","Snackbar","CookieHelpers","getCookie","cname","name","decodedCookie","decodeURIComponent","document","cookie","ca","split","i","c","charAt","substring","indexOf","setOptoutOfAlertCookie","expiration_date","Date","cookie_string","setFullYear","getFullYear","toUTCString","setGenericCookie","cookieName","expirationDate","concat","setCookie","value","daysToExpire","date","setTime","getTime","expires","DateHelper","GetDayOfWeek","toLocaleDateString","weekday","GetMonth","toLocaleString","month","GetFormattedDate","dateToChange","year","getMonth","toString","padStart","day","getDate","ConvertDateYYYYMMDD","withDash","dateString","replace","GetShipVerbiage","ol","OrderStatus","OrderStatusDisplay","IsCustomerPickUp","Debounce","functionToRun","timeOutToRefresh","clearTimeout","setTimeout","CalculatePrice","_x","_CalculatePrice","apply","_asyncToGenerator","_regeneratorRuntime","mark","_callee","ols","quote","model","_yield$OrdersService$","data","_args","wrap","_context","prev","next","Quote","map","orderline","isOrderlineDetails","ConversionHelper","convertOrderlineToAddModel","IsQuote","_objectSpread","OrdersService","CalculatePricingData","sent","abrupt","d","OrderlineDetails","stop","HasLikeItems","orderlines","orderlineToCheck","likeItem","find","IsLikeItem","olToCheck","Die","Description","Material","BadgeText","Finish","Color","ClickColors","OrderlinePreflightCheck","_x2","_OrderlinePreflightCheck","_callee2","returnValue","_yield$AddressService","_context2","getters","BillingAddress","Id","push","OrderlinePreflightErrorCodes","MissingBillingAddress","AddressService","GetAddress","Address","ValidationHelper","IsAddressValid","ShippingAddressNotComplete","handleResponse","response","status","localStorage","removeItem","location","reload","downloadFile","blobData","fileName","openInNewTab","url","window","URL","createObjectURL","newTab","open","console","error","link","createElement","href","setAttribute","body","appendChild","click","removeChild","revokeObjectURL","IsStatusLessThanAnotherStatus","secondStatus","IsStatusGreaterThanOrEqualToAnotherStatus","ReplaceItemInStoreAndRefresh","items","itemToReplace","shouldHandleFilteredItem","oldItemId","itemToRefresh","findIndex","splice","commit","_toConsumableArray","unshift","newPayload","filteredItems","fi","Item","targetindex","item","ReplaceOrderline","orderlineToReplace","orderlineToRefresh","ReplaceOrderlineInStoreAndRefresh","Orderline","ReplaceInvoiceInStoreAndRefresh","invoices","invoiceToReplace","invoiceToRefreshIndex","Confirm","action","confirmationTitle","confirmationText","cancelButtonText","commitButtonText","shouldPersist","newConfirmationDialog","ConfirmationDialogInfo","getRushNameByDayValue","dayValue","getRushTextByDayValue","getMaterialIdFromEntity","entity","TypeName","convertAddressToAddressModel","address","isNewAddress","isAlsoBilling","IsMyDefaultAddress","IsProofAddress","log","AddressRequestModel","Attention","Attn","CompanyName","Street1","Street2","City","State","Zipcode","ZipCode","Province","PhoneNumber","Phone","DefaultUnwindDirection","Options","RollDirectionId","DfdOption","DefaultMaximumOD","OD","ConstValues","DEFAULT_MAX_OD","BrandLabel","AddressOptionId","PhoneId","ShipToId","CountryId","Country","EmailAddress","Email","EmailId","RecordState","ShouldUseProvince","DEFAULT_COUNTRY_ID","IsBilling","IsAResidence","AddressNote","HasAddressInstructions","convertToCompanyModel","customerOptions","CompanyModel","generateNewOrderlineModel","itemId","quantity","shippingAddressId","PO","ShouldGenerateRetention","ItemId","Quantity","Status","RollQuantity","MaxLabelsPerRoll","DueDate","CanChange","OrderLineNumber","CustomerOrderLineNumber","ShippingAddressId","HasBarcodeData","Action","generateNewOrderlineModelFromOrderline","ShippingAddress","RollDirection","_orderline$ShippingAd","_orderline$Address","PriceEach","SetupCosts","VariableDataPriceEach","IsARush","IsARetention","RushFee","RushOptions","RushOption","ShippingDeliveryMethod","HandApplyFee","OrderlinePurchaseStateType","QuotedQuantity","IsHandApply","OriginalDueDate","RequestedOrderlineMetricType","RequestedOD","RequestedRollQuantity","RequestedMaxLabelQuantity","RequestedRollDirectionId","CustomerNote","OrderId","CustomerOrderId","ShippingDeliveryOptionId","OrderlineType","OrderLineType","convertQuickDialog","QuickDialog","SubheaderPrimary","PartNumber","SubheaderSecondary","convertOrderlineToDialogLayout","BuildCustomerNotes","notes","GetDisplayValues","displayObj","formattedItem","ItemInfoDisplay","val","id","colors","StringHelper","getColorText","iconColor","IsApproved","color","getStatusTextBackgroundColorClass","getStatusTextColorClass","getStatusTextBorderColorClass","GetOrderStatusForInvoicing","result","forEach","invoice","invoiceInfo","header","PackingList","WasPickedUp","DateCompleted","IsCompleted","DateShipped","subheader","description","doesFirstStringContainSecond","firstItem","secondItem","doesMatch","toLowerCase","trim","includes","formatQuantity","isNaN","displayAsMoney","toFixed","isValidCheckDigit","s","removeCheckDigit","rs","reverseString","counter","parseInt","Math","pow","checkdigit","Number","getExpectedCheckDigit","splitext","revertext","reverse","reversed","join","GlobalFilters","addCommas","formatStringLength","formatPhoneNumber","phoneNumber","cleaned","match","formatNumberToDollarStringValue","totalcost","style","currency","formatNumberWithCommas","number","Vue","use","VueMeta","refreshOnceOnNavigation","Component","registerHooks","config","productionTip","VueKonva","LottieAnimation","VueGTag","params","send_page_view","router","mixin","filters","vuetify","render","h","App","$mount","getObjectDiff","obj1","obj2","Object","keys","diff","reduce","key","hasOwnProperty","_typeof","isObjectDiff","resultKeyIndex","areListsDifferent","list1","list2","CloneWithoutReference","objectToClone","JSON","parse","stringify","getDistinctOccurences","list","counts","el","GetDisplayDate","PRINT_CLOSED","PRINT_PAIDINTRANSIT","PRINT_INVOICECREATED","PRINT_READYTOINVOICE","PRINT_WAITINGONPAYMENT","PRINT_SHIPPED","DatePackaged","ShipDate","PRINT_SHIPPING","EstimatedDueDate","IsBadDate","SetIdsForSVGElements","svgList","isSpecial","rectList","pathList","children","idList","filter","r","getItemStatusTypeByStatus","BuildItemAlertMessage","type","additionalData","AlertModel","Type","Title","Message","SecondaryMessage","ConfirmationMessage","IsCancelBtnDisabled","List","GetUniqueElementsById","unfilteredArray","_step","uniq","Set","e","res","Array","from","_iterator","_createForOfIteratorHelper","_loop","some","v","n","done","err","f","SortByDate","dateProperty","_step2","nonOrderlines","_iterator2","OrderCreationDate","sortedArray","sort","a","b","valueOf","Clone","structuredClone","SortArrayByProperty","property","localeCompare","ImageHelper","getImageFileNameByStaticItemId","getDecimalPlaces","decimalLimit","decimals","decimalPlaces","removeFileExtension","input","substr","lastIndexOf","isUserAuthenticated","getItem","user","isAuthenticated","IsInternational","isInteger"],"mappings":"gHAAA,8DAGM,SAAUA,EACdC,GAKgC,IAJhCC,EAAAC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAqB,QACrBG,EAAAH,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAoB,KACpBI,EAAAJ,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAkB,IAClBK,EAAAL,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAA0B,UAC1BM,EAAAN,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAA0B,OAE1BO,OAAMC,SACJ,2BACA,IAAIC,OAAS,CACXX,UACAC,aACAI,eACAC,UACAC,kBACAC,uB,oFCnBOI,EAAgB,CAC3BC,UAAS,SAACC,GAIR,IAHA,IAAIC,EAAOD,EAAQ,IACfE,EAAgBC,mBAAmBC,SAASC,QAC5CC,EAAKJ,EAAcK,MAAM,KACpBC,EAAI,EAAGA,EAAIF,EAAGjB,OAAQmB,IAAK,CAClC,IAAIC,EAAIH,EAAGE,GACX,M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ACH,MAAO,oBACT,KAAK,GACL,KAAK,MACL,KAAK,MACH,MAAO,qBACT,KAAK,GACL,KAAK,MACH,MAAO,2BACT,QAEE,OADAvG,QAAQ6D,IAAI,sCAADrL,OAAuC+N,IAC3C,O,oIC/DF3H,EAAmB,CAC9ByW,iBAAgB,SAAC3c,EAAe4c,GAC9B,GAAI5c,EAAO,CACT,IAAI6c,EAAW7c,EAAMiB,WAAWnC,MAAM,KAAK,GACvCge,EAAgB,EAIpB,OAHID,IACFC,EAAgBD,EAASjf,QAEpBkf,GAAiBF,IAG5BG,oBAAmB,SAACC,GAClB,OAAKA,EACEA,EAAMC,OAAO,EAAGD,EAAME,YAAY,OAASF,EAD/B,IAGrBG,oBAAmB,WACjB,IAAMne,EAAIwH,aAAa4W,QAAQ,QACzBC,EAAOtF,KAAKC,MAAMhZ,GACxB,OAAOqe,GAAQA,EAAKC,iBAEtBnX,eAAc,SAAC2E,GACb,OAAIA,EAAQyS,oBACDzS,EAAQgB,YAAchB,EAAQQ,QAAUR,EAAQkB,MAEpDqI,OAAOmJ,UAAUnJ,OAAOJ,SAASnJ,EAAQe,aAAef,EAAQS","file":"js/app~5a4d8549.253a2759.js","sourcesContent":["import { Snackbar } from '@/store/models/CustomerModel';\r\nimport store from '@/store/modules/index';\r\n\r\nexport function SetSnackBar(\r\n message: string,\r\n actionText: string = 'Close',\r\n customAction: any = null,\r\n timeout: number = 5000,\r\n backgroundColor: string = '#333333',\r\n actionTextColor: string = 'pink'\r\n) {\r\n store.dispatch(\r\n 'customer/setSnackBarData',\r\n new Snackbar({\r\n message,\r\n actionText,\r\n customAction,\r\n timeout,\r\n backgroundColor,\r\n actionTextColor\r\n })\r\n );\r\n}\r\n","export const CookieHelpers = {\r\n getCookie(cname: string) {\r\n var name = cname + '=';\r\n var decodedCookie = decodeURIComponent(document.cookie);\r\n var ca = decodedCookie.split(';');\r\n for (var i = 0; i < ca.length; i++) {\r\n var c = ca[i];\r\n while (c.charAt(0) == ' ') {\r\n c = c.substring(1);\r\n }\r\n if (c.indexOf(name) == 0) {\r\n return c.substring(name.length, c.length);\r\n }\r\n }\r\n return '';\r\n },\r\n setOptoutOfAlertCookie() {\r\n let expiration_date = new Date();\r\n let cookie_string = 'OptoutOfWarning';\r\n expiration_date.setFullYear(expiration_date.getFullYear() + 1);\r\n cookie_string =\r\n 'OptoutOfWarning=true; path=/; expires=' + expiration_date.toUTCString();\r\n document.cookie = cookie_string;\r\n },\r\n setGenericCookie(cookieName: string, expirationDate: Date) {\r\n let cookie_string = `${cookieName}=true; path=/; expires=${expirationDate.toUTCString()}`;\r\n document.cookie = cookie_string;\r\n },\r\n setCookie(cookieName: string, value: any, daysToExpire: number = 30) {\r\n const date = new Date();\r\n date.setTime(date.getTime() + daysToExpire * 24 * 60 * 60 * 1000);\r\n const expires = 'expires=' + date.toUTCString();\r\n document.cookie = `${cookieName}=${value};${expires};path=/`;\r\n }\r\n};\r\n","import { Orderline, OrderlineDetails } from '@/store/models/OrderlineModel';\r\n\r\nexport const DateHelper = {\r\n GetDayOfWeek(date: Date) {\r\n return date.toLocaleDateString('default', { weekday: 'long' });\r\n },\r\n GetMonth(date: Date) {\r\n return date.toLocaleString('default', { month: 'long' });\r\n },\r\n GetFormattedDate(dateToChange: Date) {\r\n let date = new Date(dateToChange);\r\n let year = date.getFullYear();\r\n let month = (1 + date.getMonth()).toString().padStart(2, '0');\r\n let day = date\r\n .getDate()\r\n .toString()\r\n .padStart(2, '0');\r\n\r\n return month + '/' + day + '/' + year;\r\n },\r\n ConvertDateYYYYMMDD(date: Date, withDash: boolean = true) {\r\n var dateString = date\r\n .toLocaleString('en-us', { year: 'numeric', month: '2-digit', day: '2-digit' })\r\n .replace(/(\\d+)\\/(\\d+)\\/(\\d+)/, '$3-$1-$2');\r\n if (!withDash) dateString = dateString.replace(/-/g, '');\r\n return dateString;\r\n },\r\n GetShipVerbiage(ol: Orderline) {\r\n switch (ol.OrderStatus.OrderStatusDisplay) {\r\n case 'Shipped!':\r\n case 'Delivered':\r\n return 'Shipped on';\r\n case 'Pickup Ready!':\r\n return 'Was ready on';\r\n case 'Picked up':\r\n return 'Was picked up on';\r\n case 'Service Complete!':\r\n return 'Completed on';\r\n default: {\r\n if (ol.IsCustomerPickUp) return 'Pickup will be ready on';\r\n else {\r\n // if (ol.IsARush && ol.ShipByDate) {\r\n // return 'Should arrive by';\r\n // }\r\n return 'Should ship by';\r\n }\r\n }\r\n }\r\n },\r\n Debounce(functionToRun: any, timeOutToRefresh: any = null, timeout: number = 500) {\r\n clearTimeout(timeOutToRefresh);\r\n timeOutToRefresh = setTimeout(functionToRun, timeout);\r\n\r\n return timeOutToRefresh;\r\n }\r\n};\r\n","import { ConstValues, OrderlinePreflightErrorCodes } from '@/ConstValues';\r\nimport { CustomerService } from '@/services/customer-service';\r\nimport { OrdersService } from '@/services/orders-service';\r\nimport { AddressService } from '@/services/address-service';\r\nimport { Address } from '@/store/models/AddressModel';\r\nimport { Orderline, OrderlineDetails, Quote } from '@/store/models/OrderlineModel';\r\nimport store from '@/store/modules/index';\r\nimport { ValidationHelper } from './ValidationHelper';\r\nimport { isOrderlineDetails } from './ObjectHelper';\r\nimport { ConversionHelper } from './ConversionHelper';\r\n\r\nexport async function CalculatePrice(\r\n ols: Array,\r\n quote: Quote = new Quote()\r\n) {\r\n let model = ols.map((ol: OrderlineDetails | Orderline) => {\r\n let orderline;\r\n if (isOrderlineDetails(ol)) {\r\n orderline = ConversionHelper.convertOrderlineToAddModel(ol as OrderlineDetails);\r\n } else {\r\n orderline = ConversionHelper.convertOrderlineToAddModel(ol as Orderline);\r\n }\r\n if (quote.IsQuote) {\r\n return { ...orderline, ...quote };\r\n } else {\r\n return orderline;\r\n }\r\n });\r\n const { data } = await OrdersService.CalculatePricingData(model);\r\n if (quote.IsQuote) {\r\n return data;\r\n }\r\n return data.map((d: any) => new OrderlineDetails(d));\r\n}\r\nexport function HasLikeItems(\r\n orderlines: OrderlineDetails[],\r\n orderlineToCheck: OrderlineDetails\r\n) {\r\n var likeItem = orderlines.find(ol => IsLikeItem(ol, orderlineToCheck));\r\n return !!likeItem;\r\n}\r\nexport function IsLikeItem(ol: OrderlineDetails, olToCheck: OrderlineDetails) {\r\n return (\r\n ol.Die.Description == olToCheck.Die.Description &&\r\n ol.Material.BadgeText == olToCheck.Material.BadgeText &&\r\n ol.Finish.BadgeText == olToCheck.Finish.BadgeText &&\r\n ol.Color.ClickColors == olToCheck.Color.ClickColors\r\n );\r\n}\r\nexport async function OrderlinePreflightCheck(\r\n ol: OrderlineDetails\r\n): Promise {\r\n let returnValue = [];\r\n if (!store.getters['customer/getCustomer'].BillingAddress.Id)\r\n returnValue.push(OrderlinePreflightErrorCodes.MissingBillingAddress);\r\n let { data } = await AddressService.GetAddress(ol.Address.Id);\r\n ol.Address = new Address(data);\r\n if (!ValidationHelper.IsAddressValid(ol.Address))\r\n returnValue.push(OrderlinePreflightErrorCodes.ShippingAddressNotComplete);\r\n return returnValue;\r\n}\r\n","import axios, { AxiosResponse } from 'axios';\r\n\r\nexport function handleResponse(response: AxiosResponse) {\r\n if (response.status === 401) {\r\n localStorage.removeItem('user');\r\n document.location.reload(true);\r\n }\r\n}\r\nexport function handleErrorResponse(error: any) {\r\n if (error.response.status === 401) {\r\n localStorage.removeItem('user');\r\n document.location.reload(true);\r\n }\r\n}\r\n\r\nexport function downloadFile(\r\n blobData: Blob | string,\r\n fileName: string,\r\n openInNewTab: boolean = false\r\n) {\r\n const url = window.URL.createObjectURL(blobData as Blob);\r\n\r\n if (openInNewTab) {\r\n // Open the PDF file directly in a new tab\r\n const newTab = window.open(url, '_blank');\r\n if (!newTab) {\r\n console.error(\r\n 'Failed to open the file in a new tab. Please check your browser settings.'\r\n );\r\n downloadFile(blobData, fileName, false);\r\n }\r\n } else {\r\n // Trigger the download\r\n const link = document.createElement('a');\r\n link.href = url;\r\n link.setAttribute('download', fileName);\r\n document.body.appendChild(link);\r\n link.click();\r\n document.body.removeChild(link);\r\n }\r\n\r\n // Revoke the object URL after use to free memory\r\n setTimeout(() => {\r\n window.URL.revokeObjectURL(url);\r\n }, 100);\r\n}\r\n\r\nexport async function downloadImage(image: HTMLImageElement) {\r\n const data = await axios.get(image.src);\r\n // console.log('hello');\r\n // const imageBlob = await (await axios.get(image.src)).data.blob();\r\n // const imageURL = URL.createObjectURL(imageBlob);\r\n\r\n // const link = document.createElement('a');\r\n // link.href = image.src;\r\n // link.download = 'image.jpg';\r\n // document.body.appendChild(link);\r\n // link.click();\r\n // document.body.removeChild(link);\r\n return;\r\n}\r\n","import { PrintStatusValues } from '@/ConstValues';\r\n\r\nexport function IsStatusLessThanAnotherStatus(\r\n status: PrintStatusValues,\r\n secondStatus: PrintStatusValues\r\n): boolean {\r\n return status < secondStatus;\r\n}\r\nexport function IsStatusGreaterThanOrEqualToAnotherStatus(\r\n status: PrintStatusValues,\r\n secondStatus: PrintStatusValues\r\n): boolean {\r\n return status >= secondStatus;\r\n}\r\n","import { Item } from '@/store/models/ItemModel';\r\nimport { RootState } from '@/store/models/RootState';\r\nimport { Store } from 'vuex';\r\nimport { Orderline } from '@/store/models/OrderlineModel';\r\nimport { Invoice } from '@/store/models/InvoiceModel';\r\nimport { orderlines } from '@/store/modules/orderlines';\r\n\r\nexport function ReplaceItemInStoreAndRefresh(\r\n store: Store,\r\n items: Item[],\r\n itemToReplace: Item,\r\n shouldHandleFilteredItem: boolean = false,\r\n oldItemId: string = ''\r\n) {\r\n if (oldItemId && !itemToReplace.Id) {\r\n let itemToRefresh = items.findIndex(i => i.Id === oldItemId);\r\n if (itemToRefresh !== -1) {\r\n items.splice(itemToRefresh, 1);\r\n }\r\n }\r\n let itemToRefresh = items.findIndex(i => i.Id === itemToReplace.Id);\r\n if (itemToRefresh !== -1) {\r\n items.splice(itemToRefresh, 1);\r\n } else {\r\n store.commit('items/setPartNumbers', [\r\n itemToReplace,\r\n ...store.getters['items/getItemPartNumber']\r\n ]);\r\n }\r\n if (itemToReplace.Id) {\r\n items.unshift(itemToReplace);\r\n }\r\n const newPayload = [...items];\r\n store.commit('items/itemsLoaded', newPayload);\r\n store.dispatch('orderlines/RefreshItemInOrderlines', itemToReplace);\r\n if (shouldHandleFilteredItem) {\r\n let filteredItems = store.getters['items/filteredItem'].map(\r\n (fi: any) => new Item(fi)\r\n );\r\n let targetindex = filteredItems.findIndex(\r\n (item: Item) => item.Id === itemToReplace.Id\r\n );\r\n targetindex > -1\r\n ? filteredItems.splice(targetindex, 1)\r\n : filteredItems.unshift(itemToReplace);\r\n const newPayload = [...filteredItems];\r\n store.commit('items/setFilteredItem', newPayload);\r\n }\r\n}\r\nexport function HandleFilteredItemsActions(\r\n store: Store,\r\n filteredItems: Item[],\r\n itemId: string,\r\n removeItem: boolean = false\r\n) {\r\n if (removeItem) {\r\n let targetedIndex = filteredItems.findIndex(i => i.Id === itemId);\r\n if (targetedIndex > -1) {\r\n filteredItems.splice(targetedIndex, 1);\r\n }\r\n }\r\n store.dispatch('items/refreshItemFilterCount');\r\n}\r\n\r\nexport function ReplaceOrderline(orderlines: Orderline[], orderlineToReplace: Orderline) {\r\n let orderlineToRefresh = orderlines.findIndex(i => i.Id === orderlineToReplace.Id);\r\n if (orderlineToRefresh === -1) {\r\n orderlines.unshift(orderlineToReplace);\r\n } else {\r\n orderlines[orderlineToRefresh] = orderlineToReplace;\r\n }\r\n}\r\n\r\nexport function ReplaceOrderlineInStoreAndRefresh(\r\n store: Store,\r\n orderlines: Orderline[],\r\n orderlineToReplace: Orderline\r\n) {\r\n let orderlineToRefresh = orderlines.findIndex(i => i.Id === orderlineToReplace.Id);\r\n if (orderlineToRefresh === -1) {\r\n orderlines.unshift(orderlineToReplace);\r\n } else {\r\n orderlines[orderlineToRefresh] = new Orderline(orderlineToReplace);\r\n }\r\n const newPayload = [...orderlines];\r\n store.commit('orderlines/orderlinesLoaded', newPayload);\r\n}\r\nexport function ReplaceInvoiceInStoreAndRefresh(\r\n store: Store,\r\n invoices: Invoice[],\r\n invoiceToReplace: Invoice\r\n) {\r\n let invoiceToRefreshIndex = invoices.findIndex(i => i.Id === invoiceToReplace.Id);\r\n if (invoiceToRefreshIndex === -1) {\r\n invoices.unshift(invoiceToReplace);\r\n } else {\r\n invoices[invoiceToRefreshIndex] = invoiceToReplace;\r\n }\r\n const newPayload = [...invoices];\r\n store.commit('invoices/setInvoices', newPayload);\r\n}\r\n","import { ConfirmationDialogInfo } from '@/store/models/CustomerModel';\r\nimport store from '@/store/modules/index';\r\n\r\nexport function Confirm(\r\n action: any,\r\n confirmationTitle: string,\r\n confirmationText: string,\r\n cancelButtonText: string = 'Cancel',\r\n commitButtonText: string = 'I am sure',\r\n shouldPersist: boolean = false\r\n) {\r\n const newConfirmationDialog = new ConfirmationDialogInfo({\r\n action,\r\n confirmationTitle,\r\n confirmationText,\r\n cancelButtonText,\r\n commitButtonText,\r\n shouldPersist\r\n });\r\n store.commit('profile/setConfirmationAction', newConfirmationDialog);\r\n return;\r\n}\r\n","import { Orderline, OrderlineDetails } from '@/store/models/OrderlineModel';\r\nimport { QuickDialog } from '@/store/models/DialogModel';\r\nimport { isOrderlineDetails } from './ObjectHelper';\r\nimport { Item, ItemDetails, ItemInfoDisplay } from '@/store/models/ItemModel';\r\nimport { StringHelper } from './StringHelper';\r\nimport { DateHelper } from './DateHelper';\r\nimport { Address } from '@/store/models/AddressModel';\r\nimport { CompanyModel } from '@/store/models/CompanyModel';\r\nimport { AddressRequestModel } from '@/store/models/RequestModels';\r\nimport { ConstValues } from '@/ConstValues';\r\n\r\nexport const ConversionHelper = {\r\n getRushNameByDayValue(dayValue: number) {\r\n switch (dayValue) {\r\n case 1:\r\n return 'Rush Level 3';\r\n case 2:\r\n return 'Rush Level 2';\r\n case 3:\r\n return 'Rush Level 1';\r\n case 4:\r\n return 'Priority';\r\n default:\r\n return 'Standard Turnaround';\r\n }\r\n },\r\n getRushTextByDayValue(dayValue: number) {\r\n switch (dayValue) {\r\n case 1:\r\n case 2:\r\n case 3:\r\n return 'Adjusts the due date and alerts the press operator that this item is a RUSH';\r\n case 4:\r\n return 'Moves this item forward in line and marks it as priority to the press operators.';\r\n default:\r\n return 'Ships in approximately 10 workdays.';\r\n }\r\n },\r\n getMaterialIdFromEntity(entity: any) {\r\n if (entity.TypeName) {\r\n switch (entity.TypeName) {\r\n case 'Item': {\r\n return entity.Material.Id;\r\n }\r\n case 'Orderline': {\r\n return entity.Item.Material.Id;\r\n }\r\n }\r\n }\r\n },\r\n convertAddressToAddressModel(\r\n address: Address,\r\n isNewAddress: boolean,\r\n isAlsoBilling: boolean = false,\r\n IsMyDefaultAddress: boolean = false,\r\n IsProofAddress: boolean = false\r\n ): AddressRequestModel {\r\n console.log('Here in model.');\r\n return new AddressRequestModel({\r\n Id: address.Id,\r\n Attention: address.Attn,\r\n CompanyName: address.CompanyName,\r\n Street1: address.Street1,\r\n Street2: address.Street2,\r\n City: address.City,\r\n State: address.State,\r\n Zipcode: address.ZipCode,\r\n Province: address.Province,\r\n PhoneNumber: address.Phone ? address.Phone.PhoneNumber : '',\r\n DefaultUnwindDirection: address.Options.RollDirectionId,\r\n DfdOption: address.Options.DfdOption,\r\n DefaultMaximumOD:\r\n address.Options.OD > 0 ? address.Options.OD : ConstValues.DEFAULT_MAX_OD,\r\n BrandLabel: address.Options.BrandLabel,\r\n AddressOptionId: address.Options.Id,\r\n PhoneId: address.Phone ? address.Phone.PhoneNumber : '',\r\n ShipToId: address.Options.ShipToId,\r\n CountryId: address.Country.Id,\r\n EmailAddress: address.Email ? address.Email.EmailAddress : '',\r\n EmailId: address.Email ? address.Email.Id : null,\r\n RecordState: isNewAddress ? 'New' : 'Edit',\r\n ShouldUseProvince:\r\n !!address.Province && address.Country.Id !== ConstValues.DEFAULT_COUNTRY_ID,\r\n IsBilling: isAlsoBilling,\r\n IsAResidence: address.IsAResidence,\r\n IsMyDefaultAddress: IsMyDefaultAddress,\r\n IsProofAddress: IsProofAddress,\r\n AddressNote: address.HasAddressInstructions ? address.AddressNote : null\r\n });\r\n },\r\n convertToCompanyModel(customerOptions: any): CompanyModel {\r\n return new CompanyModel(customerOptions);\r\n },\r\n generateNewOrderlineModel(\r\n itemId: string,\r\n quantity: number,\r\n shippingAddressId: string,\r\n PO: string = '',\r\n Id: string = '',\r\n ShouldGenerateRetention = false\r\n ) {\r\n return {\r\n ItemId: itemId,\r\n Quantity: quantity,\r\n OD: 0,\r\n Status: 'Pending',\r\n RollQuantity: 0,\r\n MaxLabelsPerRoll: 0,\r\n DueDate: '',\r\n State: 'New',\r\n CanChange: true,\r\n OrderLineNumber: 0,\r\n CustomerOrderLineNumber: 0,\r\n ShippingAddressId: shippingAddressId,\r\n RollDirectionId: 0,\r\n HasBarcodeData: false,\r\n Action: 'Add',\r\n ShouldGenerateRetention,\r\n Id,\r\n PO\r\n };\r\n },\r\n generateNewOrderlineModelFromOrderline(Orderline: OrderlineDetails) {\r\n return {\r\n ItemId: Orderline.Item.Id,\r\n Quantity: Orderline.Quantity,\r\n OD: Orderline.OD,\r\n Status: 'Pending',\r\n RollQuantity: Orderline.RollQuantity,\r\n MaxLabelsPerRoll: Orderline.MaxLabelsPerRoll,\r\n DueDate: Orderline.DueDate,\r\n State: 'New',\r\n CanChange: true,\r\n OrderLineNumber: 0,\r\n CustomerOrderLineNumber: 0,\r\n ShippingAddressId: Orderline.ShippingAddress.Id,\r\n RollDirectionId: Orderline.RollDirection.Id,\r\n HasBarcodeData: false,\r\n Action: 'Add',\r\n Id: Orderline.Id,\r\n PO: Orderline.PO\r\n };\r\n },\r\n convertOrderlineToAddModel(ol: OrderlineDetails | Orderline) {\r\n if (isOrderlineDetails(ol)) {\r\n let orderline = ol as OrderlineDetails;\r\n return {\r\n ItemId: orderline.Item.Id,\r\n Quantity: orderline.Quantity,\r\n Id: orderline.Id,\r\n OD: orderline.OD,\r\n Status: orderline.Status,\r\n RollQuantity: orderline.RollQuantity,\r\n MaxLabelsPerRoll: orderline.MaxLabelsPerRoll,\r\n DueDate: DateHelper.GetFormattedDate(orderline.DueDate),\r\n State: 'New',\r\n CanChange: true,\r\n OrderLineNumber: orderline.OrderLineNumber,\r\n CustomerOrderLineNumber: orderline.OrderLineNumber,\r\n ShippingAddressId: orderline.ShippingAddress?.Id || orderline.Address?.Id,\r\n RollDirectionId: orderline.RollDirection.Id,\r\n HasBarcodeData: false,\r\n Action: 'Add',\r\n PO: orderline.PO,\r\n PriceEach: orderline.PriceEach,\r\n SetupCosts: orderline.SetupCosts,\r\n VariableDataPriceEach: orderline.VariableDataPriceEach,\r\n IsARush: orderline.IsARush,\r\n IsARetention: orderline.IsARetention,\r\n RushFee: orderline.RushFee,\r\n RushOptions: orderline.RushOption,\r\n ShippingDeliveryMethod: orderline.ShippingDeliveryMethod,\r\n HandApplyFee: orderline.HandApplyFee,\r\n OrderlinePurchaseStateType: orderline.OrderlinePurchaseStateType,\r\n QuotedQuantity: orderline.QuotedQuantity,\r\n IsQuote: orderline.IsQuote,\r\n IsHandApply: orderline.IsHandApply,\r\n OriginalDueDate: orderline.OriginalDueDate,\r\n RequestedOrderlineMetricType: orderline.RequestedOrderlineMetricType,\r\n RequestedOD: orderline.RequestedOD,\r\n RequestedRollQuantity: orderline.RequestedRollQuantity,\r\n RequestedMaxLabelQuantity: orderline.RequestedMaxLabelQuantity,\r\n RequestedRollDirectionId: orderline.RequestedRollDirectionId,\r\n CustomerNote: orderline.CustomerNote,\r\n OrderId: orderline.CustomerOrderId,\r\n ShippingDeliveryOptionId: orderline.ShippingDeliveryMethod.Id,\r\n OrderlineType: orderline.OrderLineType\r\n };\r\n } else {\r\n let orderline = ol as Orderline;\r\n return {\r\n ItemId: orderline.Item.Id,\r\n Quantity: orderline.Quantity,\r\n Id: orderline.Id,\r\n Status: orderline.Status,\r\n RollQuantity: orderline.RollQuantity,\r\n MaxLabelsPerRoll: orderline.MaxLabelsPerRoll,\r\n DueDate: DateHelper.GetFormattedDate(orderline.DueDate),\r\n State: 'New',\r\n CanChange: true,\r\n ShippingAddressId: orderline.Address.Id,\r\n HasBarcodeData: false,\r\n Action: 'Add',\r\n PO: orderline.PO,\r\n IsARush: orderline.IsARush,\r\n RushFee: orderline.RushFee,\r\n RushOptions: orderline.RushOption,\r\n ShippingDeliveryMethod: orderline.ShippingDeliveryMethod,\r\n OrderlinePurchaseStateType: orderline.OrderlinePurchaseStateType,\r\n QuotedQuantity: orderline.QuotedQuantity,\r\n IsQuote: orderline.IsQuote,\r\n OriginalDueDate: orderline.OriginalDueDate,\r\n OrderId: orderline.CustomerOrderId,\r\n OrderlineType: orderline.OrderLineType,\r\n RequestedOrderlineMetricType: orderline.RequestedOrderlineMetricType,\r\n RequestedOD: orderline.RequestedOD,\r\n RequestedRollQuantity: orderline.RequestedRollQuantity,\r\n RequestedMaxLabelQuantity: orderline.RequestedMaxLabelQuantity,\r\n RequestedRollDirectionId: orderline.RequestedRollDirectionId\r\n };\r\n }\r\n },\r\n convertQuickDialog(item: Item): QuickDialog {\r\n return new QuickDialog({\r\n Item: item,\r\n SubheaderPrimary: item.PartNumber,\r\n SubheaderSecondary: item.Description\r\n });\r\n },\r\n convertOrderlineToDialogLayout(orderline: Orderline): QuickDialog {\r\n return new QuickDialog({\r\n Item: orderline.Item,\r\n SubheaderPrimary: orderline.Item.PartNumber,\r\n SubheaderSecondary: orderline.Item.Description\r\n });\r\n },\r\n BuildCustomerNotes(orderlines: OrderlineDetails[]) {\r\n let notes = '';\r\n for (let i = 0; i < orderlines.length; i++) {\r\n notes += orderlines[i].CustomerNote;\r\n // notes += `Partnumber : ${orderlines[i].Item.PartNumber} | Description : ${orderlines[i].Item.Description} | PO: ${orderlines[i].PO} | NOTE : ${orderlines[i].CustomerNotes};`;\r\n }\r\n return notes;\r\n },\r\n GetDisplayValues(\r\n item: ItemDetails,\r\n displayObj: {\r\n id: string;\r\n text: string;\r\n value: any;\r\n colors: any | null;\r\n iconColor: any | null;\r\n }[]\r\n ): any {\r\n let formattedItem: any = new ItemInfoDisplay(item);\r\n displayObj.map((val, i) => {\r\n val.value = formattedItem[val.id];\r\n if (val.id === 'Color') {\r\n val.colors = formattedItem[val.id];\r\n val.value = StringHelper.getColorText(formattedItem[val.id]);\r\n }\r\n if (val.id === 'Status') {\r\n val.iconColor = item.IsApproved ? '#1be784' : 'red';\r\n }\r\n });\r\n }\r\n};\r\n","export const StringHelper = {\r\n getColorText(color: number): string {\r\n switch (color) {\r\n case 1:\r\n return 'Black Only';\r\n case 4:\r\n return 'Full Color';\r\n case 5:\r\n return 'Full Color + White';\r\n case 6:\r\n return 'Full Color + 2 Hit White';\r\n }\r\n return '';\r\n },\r\n getStatusTextBackgroundColorClass(status: string) {\r\n switch (status) {\r\n case 'Pending':\r\n return 'j1l-purple-background';\r\n case 'Production hold':\r\n case 'Processing Error(s)':\r\n case 'Waiting on Codes':\r\n return 'coral-background';\r\n case 'Starting soon':\r\n return 'sky-blue-background';\r\n case 'Sent to press':\r\n case 'Labels printed':\r\n case 'Labels cut':\r\n case 'Labels ready':\r\n case 'Packaged!':\r\n return 'lizard-green-background';\r\n case 'Shipped!':\r\n case 'Pickup Ready!':\r\n return 'j1l-brown-background';\r\n case 'Delivered':\r\n case 'Picked up':\r\n return 'j1l-black-background';\r\n }\r\n return 'j1l-black-background';\r\n },\r\n getStatusTextColorClass(status: string) {\r\n switch (status) {\r\n case 'Pending':\r\n return 'j1l-purple';\r\n case 'Production hold':\r\n case 'Processing Error(s)':\r\n case 'Waiting on Codes':\r\n return 'coral';\r\n case 'Starting soon':\r\n case 'Codes processed':\r\n return 'sky-blue';\r\n case 'Sent to press':\r\n case 'Labels printed':\r\n case 'Labels cut':\r\n case 'Labels ready':\r\n case 'Packaged!':\r\n return 'lizard-green';\r\n case 'Shipped!':\r\n case 'Pickup Ready!':\r\n return 'j1l-brown';\r\n case 'Delivered':\r\n case 'Picked up':\r\n return 'j1l-black';\r\n case 'Processing Codes':\r\n return 'j1l-processing';\r\n }\r\n return 'j1l-black';\r\n },\r\n getStatusTextBorderColorClass(status: string) {\r\n switch (status) {\r\n case 'Pending':\r\n return 'j1l-purple-border';\r\n case 'Production hold':\r\n case 'Processing Error(s)':\r\n case 'Waiting on Codes':\r\n return 'coral-border';\r\n case 'Starting soon':\r\n return 'sky-blue-border';\r\n case 'Sent to press':\r\n case 'Labels printed':\r\n case 'Labels cut':\r\n case 'Labels ready':\r\n case 'Packaged!':\r\n return 'lizard-green-border';\r\n case 'Shipped!':\r\n case 'Pickup Ready!':\r\n return 'j1l-brown-border';\r\n case 'Delivered':\r\n case 'Picked up':\r\n return 'j1l-black-border';\r\n }\r\n return 'j1l-black-border';\r\n },\r\n GetOrderStatusForInvoicing(invoices: any = null) {\r\n let result: any[] = [];\r\n if (invoices[0]) {\r\n invoices.forEach((invoice: any, i: number) => {\r\n let invoiceInfo = {\r\n header: invoice.PackingList.WasPickedUp\r\n ? 'Picked up ' + invoice.PackingList.DateCompleted\r\n : invoice.PackingList.IsCompleted\r\n ? 'Delivered ' + invoice.PackingList.DateCompleted\r\n : 'Shipped On ' + invoice.PackingList.DateShipped,\r\n subheader: invoice.PackingList.IsCompleted\r\n ? 'Your package was delivered'\r\n : 'Your package is in transit.',\r\n description: invoice.PackingList.IsCompleted\r\n ? 'Please look in your mailbox or wherever you typically get mail.'\r\n : 'Your package is in transit.'\r\n };\r\n result.push(invoiceInfo);\r\n });\r\n return result;\r\n }\r\n return result;\r\n },\r\n doesFirstStringContainSecond(firstItem: string, secondItem: string) {\r\n if (!firstItem) return false;\r\n if (!secondItem) return true;\r\n let doesMatch = firstItem\r\n .toLowerCase()\r\n .trim()\r\n .includes(secondItem.toLowerCase().trim());\r\n return doesMatch;\r\n },\r\n formatQuantity(quantity: number | null) {\r\n if (isNaN(quantity as number)) return null;\r\n return quantity != null\r\n ? quantity.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',')\r\n : null;\r\n },\r\n displayAsMoney(value: number) {\r\n return value ? value.toFixed(2) : '0.00';\r\n }\r\n};\r\n\r\nexport function isValidCheckDigit(s: string) {\r\n if (!s) return;\r\n var result = 0;\r\n var removeCheckDigit = s.substring(0, s.length - 1);\r\n var rs = reverseString(removeCheckDigit);\r\n for (let counter = 0; counter < rs.length; counter++) {\r\n result = result + parseInt(rs.charAt(counter)) * Math.pow(3, (counter + 1) % 2);\r\n }\r\n var returnValue = (10 - (result % 10)) % 10,\r\n checkdigit = Number(s[s.length - 1]);\r\n var isValidCheckDigit = returnValue == checkdigit;\r\n return isValidCheckDigit;\r\n}\r\n\r\nexport function getExpectedCheckDigit(s: string) {\r\n if (!s) return;\r\n var result = 0;\r\n var removeCheckDigit = s.substring(0, s.length - 1);\r\n var rs = reverseString(removeCheckDigit);\r\n for (let counter = 0; counter < rs.length; counter++) {\r\n result = result + parseInt(rs.charAt(counter)) * Math.pow(3, (counter + 1) % 2);\r\n }\r\n var returnValue = (10 - (result % 10)) % 10;\r\n return returnValue;\r\n}\r\n\r\nexport function reverseString(s: string) {\r\n let splitext = s.split('');\r\n let revertext = splitext.reverse();\r\n let reversed = revertext.join('');\r\n return reversed;\r\n}\r\n\r\nexport function removeSpecialCharacters(str: string) {\r\n return str.replace(/[^\\w\\s.-]/gi, '');\r\n}\r\n","export const GlobalFilters = {\r\n addCommas(value: number): string {\r\n if (value) return value.toString().replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',');\r\n\r\n return '';\r\n },\r\n formatStringLength(value: string, length: number) {\r\n if (value) {\r\n return `${value.substring(0, length)}${value.length >= length ? '...' : ''}`;\r\n }\r\n return '';\r\n },\r\n formatPhoneNumber(phoneNumber: string) {\r\n var cleaned = ('' + phoneNumber).replace(/\\D/g, '');\r\n var match = cleaned.match(/^(\\d{3})(\\d{3})(\\d{4})$/);\r\n if (match) {\r\n return '(' + match[1] + ') ' + match[2] + '-' + match[3];\r\n }\r\n return null;\r\n },\r\n formatNumberToDollarStringValue(value: number): string {\r\n if (value) {\r\n let totalcost = value;\r\n return totalcost.toLocaleString('en-US', {\r\n style: 'currency',\r\n currency: 'USD'\r\n });\r\n }\r\n return '';\r\n },\r\n formatNumberWithCommas(value: number): string {\r\n if (value) {\r\n let number = value;\r\n return number.toLocaleString('en-US');\r\n }\r\n return '';\r\n }\r\n};\r\n","import Vue from 'vue';\r\nimport App from './App.vue';\r\nimport VueGTag from 'vue-gtag';\r\nimport router from './router';\r\nimport store from './store/modules/index';\r\nimport vuetify from './plugins/vuetify';\r\nimport VueKonva from 'vue-konva';\r\nimport LottieAnimation from 'lottie-web-vue';\r\nimport VueMeta from 'vue-meta';\r\nimport './PrototypeExtensions/number.extensions';\r\nimport './PrototypeExtensions/boolean.extenstions';\r\nimport './PrototypeExtensions/string.extenstions';\r\nimport { GlobalFilters } from './filters/GlobalFilters';\r\n\r\nimport Component from 'vue-class-component';\r\n\r\nVue.use(VueMeta, {\r\n // optional pluginOptions\r\n refreshOnceOnNavigation: true\r\n});\r\n\r\nComponent.registerHooks(['beforeRouteUpdate', 'metaInfo']);\r\n\r\nVue.config.productionTip = false;\r\n\r\nVue.use(VueKonva);\r\nVue.use(LottieAnimation);\r\nVue.use(\r\n VueGTag,\r\n {\r\n config: {\r\n id: 'G-5LSKM84ZCF',\r\n params: {\r\n send_page_view: false\r\n }\r\n }\r\n },\r\n router\r\n);\r\n\r\nVue.mixin({\r\n filters: GlobalFilters\r\n});\r\nnew Vue({\r\n router,\r\n store,\r\n vuetify,\r\n render: h => h(App)\r\n}).$mount('#app');\r\n","import { Orderline, OrderlineDetails } from '@/store/models/OrderlineModel';\r\nimport { AlertModel } from '@/store/models/DialogModel';\r\nimport { ConstValues } from '@/ConstValues';\r\n\r\nexport function getObjectDiff(obj1: any, obj2: any) {\r\n if (!obj1) return Object.keys(obj2);\r\n const diff = Object.keys(obj1).reduce((result, key) => {\r\n if (!obj2.hasOwnProperty(key)) {\r\n result.push(key);\r\n } else if (\r\n obj1[key] === obj2[key] ||\r\n (typeof obj1[key] === 'object' &&\r\n obj1[key] !== null &&\r\n !isObjectDiff(obj1[key], obj2[key]))\r\n ) {\r\n const resultKeyIndex = result.indexOf(key);\r\n result.splice(resultKeyIndex, 1);\r\n }\r\n return result;\r\n }, Object.keys(obj2));\r\n\r\n return diff;\r\n}\r\n\r\nexport function areListsDifferent(list1: any, list2: any) {\r\n if (list1.length !== list2.length || list1.length === 0) return true;\r\n for (let i = 0; i < list2.length; i++) {\r\n let diff = getObjectDiff(list1[i], list2[i]);\r\n if (diff[0]) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n}\r\n\r\nexport function CloneWithoutReference(objectToClone: Object) {\r\n return JSON.parse(JSON.stringify(objectToClone));\r\n}\r\n\r\nexport function getDistinctOccurences(list: any) {\r\n let counts: any = [];\r\n list.forEach((el: any) => (counts[el] = 1 + (counts[el] || 0)));\r\n return Object.keys(counts).length;\r\n}\r\n\r\nfunction isObjectDiff(obj1: any, obj2: any) {\r\n const diff = Object.keys(obj1).reduce((result, key) => {\r\n if (!obj2.hasOwnProperty(key)) {\r\n result.push(key);\r\n } else if (\r\n obj1[key] === obj2[key] ||\r\n (typeof obj1[key] === 'object' &&\r\n obj1[key] !== null &&\r\n !isObjectDiff(obj1[key], obj2[key]))\r\n ) {\r\n const resultKeyIndex = result.indexOf(key);\r\n result.splice(resultKeyIndex, 1);\r\n }\r\n return result;\r\n }, Object.keys(obj2));\r\n\r\n return diff.length > 0;\r\n}\r\n\r\nexport function GetDisplayDate(orderline: Orderline) {\r\n switch (orderline.Status) {\r\n case ConstValues.PRINT_CLOSED:\r\n case ConstValues.PRINT_PAIDINTRANSIT:\r\n case ConstValues.PRINT_INVOICECREATED:\r\n case ConstValues.PRINT_READYTOINVOICE:\r\n case ConstValues.PRINT_WAITINGONPAYMENT:\r\n case ConstValues.PRINT_SHIPPED:\r\n if (orderline.OrderStatus.OrderStatusDisplay === 'Pickup Ready!') {\r\n return orderline.DatePackaged || orderline.DueDate;\r\n }\r\n return orderline.ShipDate || orderline.DueDate;\r\n case ConstValues.PRINT_SHIPPING:\r\n if (orderline.IsARush) {\r\n return orderline.EstimatedDueDate;\r\n }\r\n return orderline.DatePackaged || orderline.DueDate;\r\n default:\r\n return IsBadDate(new Date(orderline.EstimatedDueDate))\r\n ? orderline.DueDate\r\n : orderline.EstimatedDueDate;\r\n }\r\n}\r\n\r\nfunction IsBadDate(date: Date) {\r\n return !date || date.getFullYear() === 2001;\r\n}\r\n\r\nexport function isOrderlineDetails(orderline: Orderline | OrderlineDetails) {\r\n return (orderline as OrderlineDetails).OD !== undefined;\r\n}\r\n\r\nexport function SetIdsForSVGElements(svgList: SVGSVGElement[], isSpecial: boolean) {\r\n if (svgList) {\r\n let rectList: Element[];\r\n if (isSpecial) {\r\n let pathList = svgList.map((s: SVGSVGElement) => s.children[1]);\r\n\r\n // let pathList = [...svgList[0].children[1].children];\r\n\r\n // pathList = pathList.sort((a: Element, b: Element) => {\r\n // return (\r\n // b.getBoundingClientRect().width - a.getBoundingClientRect().width\r\n // );\r\n // });\r\n\r\n let idList = ['trimLineId', 'safetyLineId'];\r\n for (let i = 0; i < pathList.length; i++) {\r\n pathList[i].setAttribute('id', idList[i]);\r\n }\r\n } else {\r\n rectList = svgList.map((s: SVGSVGElement) => s.children[0].children[0]);\r\n console.log(rectList);\r\n rectList = rectList.filter(r => r !== undefined);\r\n let idList = ['trimLineId', 'safetyLineId'];\r\n for (let i = 0; i < rectList.length; i++) {\r\n rectList[i].id = idList[i];\r\n }\r\n }\r\n }\r\n}\r\n\r\nexport function getItemStatusTypeByStatus(status: string) {\r\n if (status.toLowerCase().includes('proof')) {\r\n return 'OnHold.svg';\r\n } else if (status.toLowerCase().includes('hold')) {\r\n return 'OnHold.svg';\r\n } else if (status.toLowerCase().includes('temporary')) {\r\n return 'Tempitem.svg';\r\n } else {\r\n return 'Approved.svg';\r\n }\r\n}\r\n\r\nexport function BuildItemAlertMessage(\r\n type: string,\r\n item: any,\r\n additionalData: any\r\n): AlertModel {\r\n let returnValue;\r\n switch (type) {\r\n case 'material':\r\n returnValue = new AlertModel({\r\n Type: 'material',\r\n Title: ' Metallic/Clear has been selected.',\r\n Message: `Please note: You’ve selected Metallic/Clear! This option requires an advanced knowledge of graphic design applications in order to properly call WHITE INK on press. Files improperly setup could\r\n result in misprinted labels. If you are unsure whether your file is set up correctly with WHITE INK please contact us at info@just1label.com.`,\r\n SecondaryMessage: '',\r\n ConfirmationMessage: 'Change',\r\n IsCancelBtnDisabled: true,\r\n List: additionalData,\r\n ItemId: item.Id\r\n });\r\n return returnValue;\r\n case 'delete':\r\n returnValue = new AlertModel({\r\n Type: 'delete',\r\n Title: 'Delete this Item',\r\n Message: `This will DELETE '${item.PartNumber}' from the system. If there are any open orders for this item that HAVE NOT printed this item will be removed from them and your order price may be adjusted.`,\r\n SecondaryMessage: 'Are you sure you want to delete it?',\r\n ConfirmationMessage: 'Delete',\r\n IsCancelBtnDisabled: false,\r\n List: additionalData,\r\n ItemId: item.Id\r\n });\r\n return returnValue;\r\n case 'hold':\r\n returnValue = new AlertModel({\r\n Type: 'hold',\r\n Title: 'Place an item on Hold',\r\n Message:\r\n 'NOTE: This will place your item on hold immediately. Any order lines that HAVE NOT been printed will also be placed on production hold until this item is approved.',\r\n SecondaryMessage:\r\n 'The changes you are about to perform may affect the price(s) of the following orders:',\r\n ConfirmationMessage: 'Put On Hold',\r\n IsCancelBtnDisabled: false,\r\n List: additionalData,\r\n ItemId: item.Id\r\n });\r\n return returnValue;\r\n case 'orderProof':\r\n returnValue = new AlertModel({\r\n Type: 'proof',\r\n Title: 'This item is already on order',\r\n Message: 'Do you want to continue and order this proof?',\r\n ConfirmationMessage: 'Order Proof',\r\n IsCancelBtnDisabled: false,\r\n List: additionalData,\r\n ItemId: item.Id\r\n });\r\n return returnValue;\r\n case 'rollDirection':\r\n returnValue = new AlertModel({\r\n Type: 'rolldirection',\r\n Title: 'Choose default Unwind Position',\r\n Message:\r\n 'This address currently has no default UNWIND POSITION selected. Please select from the options below. The most common unwind position for high speed packaging is a #4 Unwind (left side of the label dispenses first). If you are not sure please contact your manufacturer or product packaging representative for their equipment specifications.',\r\n ConfirmationMessage: 'Confirm',\r\n IsCancelBtnDisabled: false,\r\n List: additionalData,\r\n ItemId: item ? item.Id : null\r\n });\r\n return returnValue;\r\n default:\r\n return new AlertModel();\r\n }\r\n}\r\nexport function GetUniqueElementsById(unfilteredArray: any[]) {\r\n const uniq = new Set(unfilteredArray.map(e => JSON.stringify(e)));\r\n let res = Array.from(uniq).map(e => JSON.parse(e));\r\n let data: any[] = [];\r\n for (let value of res) {\r\n if (!value.Id || !data.some(v => v.Id === value.Id)) {\r\n data.push(value);\r\n }\r\n }\r\n return data;\r\n}\r\nexport function SortByDate(items: any[], dateProperty: string) {\r\n let nonOrderlines = [];\r\n let data = items;\r\n for (let item of data) {\r\n if (!item.OrderCreationDate) {\r\n nonOrderlines.push(item);\r\n }\r\n }\r\n data = data.filter(ol => ol.OrderCreationDate);\r\n let sortedArray = data.sort(\r\n (a, b) => new Date(b[dateProperty]).valueOf() - new Date(a[dateProperty]).valueOf()\r\n );\r\n data = [...nonOrderlines, ...sortedArray];\r\n return data;\r\n}\r\n\r\nexport function Clone(entity: any) {\r\n // @ts-ignore\r\n return structuredClone(entity);\r\n}\r\nexport function SortArrayByProperty(list: any[], property: string) {\r\n if (typeof list[0][property] === 'string') {\r\n return list.sort((a, b) => a[property].localeCompare(b[property]));\r\n }\r\n return list.sort((a, b) => a[property] - b[property]);\r\n}\r\n","export const ImageHelper = {\r\n getImageFileNameByStaticItemId(itemId: number) {\r\n switch (itemId) {\r\n case 7:\r\n case 6:\r\n case 15178:\r\n case 15154:\r\n case 21068:\r\n return 'T1375_150ppi.png';\r\n case 12:\r\n case 15641:\r\n case 15642:\r\n return 'T004_150ppi.png';\r\n case 13:\r\n case 14:\r\n case 15643:\r\n case 15644:\r\n return 'T003_150ppi.png';\r\n case 20:\r\n case 21:\r\n case 16012:\r\n case 16013:\r\n return 'T006_150ppi.png';\r\n case 3:\r\n case 22:\r\n case 23:\r\n case 16024:\r\n case 16025:\r\n return 'T007_150ppi.png';\r\n case 24:\r\n case 19035:\r\n return 'T008.png';\r\n case 25:\r\n case 19065:\r\n return 'T009.png';\r\n case 26:\r\n case 19066:\r\n return 'T010.png';\r\n case 27:\r\n case 19067:\r\n case 15187:\r\n return 'T011.png';\r\n case 28:\r\n case 19521:\r\n return 'FNSKU-Combo.png';\r\n case 31:\r\n case 24050:\r\n return 'T003_Shopping.png';\r\n case 32:\r\n case 24051:\r\n return 'T004_Shopping.png';\r\n case 33:\r\n case 24052:\r\n return 'T006_Shopping.png';\r\n case 34:\r\n case 24053:\r\n return 'T007_Shopping.png';\r\n case 35:\r\n case 24054:\r\n case 24055:\r\n return 'T1375_Shopping.png';\r\n case 30:\r\n case 24043:\r\n return 'FNSKU-Combo_Shopping.png';\r\n default: {\r\n console.log(`no image for static item found for ${itemId}`);\r\n return '';\r\n }\r\n }\r\n }\r\n};\r\n","import { Address } from '@/store/models/AddressModel';\r\nimport { User } from '@/store/models/ProfileModel';\r\n\r\nexport const ValidationHelper = {\r\n getDecimalPlaces(value: number, decimalLimit: number) {\r\n if (value) {\r\n let decimals = value.toString().split('.')[1];\r\n let decimalPlaces = 0;\r\n if (decimals) {\r\n decimalPlaces = decimals.length;\r\n }\r\n return decimalPlaces <= decimalLimit;\r\n }\r\n },\r\n removeFileExtension(input: string): string {\r\n if (!input) return '';\r\n return input.substr(0, input.lastIndexOf('.')) || input;\r\n },\r\n isUserAuthenticated(): boolean {\r\n const c = localStorage.getItem('user')!;\r\n const user = JSON.parse(c) as User;\r\n return user && user.isAuthenticated;\r\n },\r\n IsAddressValid(address: Address) {\r\n if (address.IsInternational()) {\r\n return !!address.Province && !!address.Attn && !!address.Phone;\r\n }\r\n return Number.isInteger(Number.parseInt(address.ZipCode)) && !!address.CompanyName;\r\n }\r\n};\r\n"],"sourceRoot":""}