{"version":3,"sources":["webpack:///./node_modules/moment-timezone/moment-timezone.js","webpack:///./src/components/customerPortal/MyParties.vue?dd64","webpack:///src/components/customerPortal/MyParties.vue","webpack:///./src/components/customerPortal/MyParties.vue?5d1d","webpack:///./src/components/customerPortal/MyParties.vue","webpack:///./node_modules/moment-timezone/index.js","webpack:///./src/store/models/Customer.js","webpack:///./src/store/modules/customers/customer.js","webpack:///./src/store/modules/customers/parties.js","webpack:///./src/store/modules/customers/notifications.js","webpack:///./src/store/modules/customers/consultant.js","webpack:///./src/store/modules/customers/subscriptions.js","webpack:///./src/store/modules/customers/index.js","webpack:///./src/config/utils.js"],"names":["root","factory","module","exports","this","moment","undefined","version","default","cachedGuess","VERSION","zones","links","countries","names","guesses","logError","momentVersion","split","major","minor","charCodeToInt","charCode","unpackBase60","string","num","i","parts","whole","fractional","multiplier","out","sign","charCodeAt","length","arrayToInt","array","intToUntil","Math","round","Infinity","mapIndices","source","indices","unpack","data","offsets","untils","name","abbrs","population","Zone","packedString","_set","Country","country_name","zone_names","OffsetAt","at","timeString","toTimeString","abbr","match","join","offset","getTimezoneOffset","ZoneScore","zone","offsetScore","abbrScore","findChange","low","high","mid","diff","Date","userOffsets","change","next","startYear","getFullYear","last","push","sortZoneScores","a","b","localeCompare","addToGuesses","guessesForUserOffsets","j","guessesOffset","offsetsLength","filteredGuesses","hasOwnProperty","rebuildGuess","intlName","Intl","DateTimeFormat","resolvedOptions","timeZone","normalizeName","e","zoneScore","zoneScores","getZone","scoreOffsetAt","sort","guess","ignoreCache","toLowerCase","replace","addZone","packed","normalized","caller","link","getNames","getCountryNames","Object","keys","addLink","aliases","alias","normal0","normal1","addCountries","country_code","country_zones","toUpperCase","getCountry","zonesForCountry","country","with_offset","map","zone_name","utcOffset","loadData","tz","dataVersion","zoneExists","didShowError","needsOffset","m","isUnixTimestamp","_f","_a","_tzm","message","console","error","input","args","Array","prototype","slice","call","arguments","utc","apply","isMoment","add","parse","unpacked","_index","timestamp","target","filter","indexOf","offsetNext","offsetPrev","max","moveAmbiguousForward","moveInvalidForward","mom","offsetAt","abs","_zones","_links","_names","_countries","load","fn","abbrWrap","old","_z","resetZoneWrap","resetZoneWrap2","defaultZone","updateOffset","keepTime","_isUTC","_d","z","Error","zoneName","zoneAbbr","local","setDefault","momentProperties","toString","render","_vm","_h","$createElement","_c","_self","_m","staticClass","attrs","on","set_tab","model","value","callback","$$v","current_tab","expression","_l","tab","key","_v","_s","$vuetify","breakpoint","mobile","loading","current_party","_e","filterOnlyCapsText","headers","filteredParties","scopedSlots","_u","ref","item","index","class","text","PartyID","dateFormatter","PartyDate","orders","parseMoney","dollars","status","proxy","networks","show_on_desktop","network","style","backgroundColor","bgcolor","color","sharing","url","title","description","quote","hashtags","twitterUser","icon","staticRenderFns","store","component","VBtn","VCard","VCardText","VCol","VDataTable","VDivider","VIcon","VLazy","VListItem","VListItemContent","VList","VListItemGroup","VListItemSubtitle","VListItemTitle","VRow","VSkeletonLoader","VSpeedDial","VTab","VTabItem","VTabs","VTabsItems","VTabsSlider","Customer","constructor","BillState","BillCity","BillPostalCode","BillStreet1","BillStreet2","ShipCity","ShipState","ShipCountryCode","ShipPostalCode","ShipStreet1","ShipStreet2","CCExpDate","CCNumber","CCNameOnCard","CVV","CCTypeID","BCKey","Company","CountryCode","CustomerTypeID","Email","EnrollerBCKey","FirstName","LastName","Phone1","StatusTypeID","Gender","UserName","Birthday","BillCountryProvinceId","ShipCountryProvinceId","JSON","localStorage","getItem","actions","context","customer_info","state","customer_data","commit","format","pzfy","apiCall","assign","response","body","user","finally","setItem","ConsultantID","rep","RepID","selected_rep_name","catch","namespace","address_check_is_well_configured","well_configured","valid","forEach","isValid","is_valid","possible_address","dispatch","getters","getField","getShipState","getFirstName","getCustomerID","CustomerID","getCustomerFullName","getCustomerData","mutations","updateField","UPDATE","stringify","setLoading","updCoupons","coupons","updCustomer","setBillingAsShipping","customer","sameAsShipping","updCCExpiration","resetState","success","namespaced","rows","parties","align","sortable","party","clearNotificaton","updateNotification","note","notification_title","created_at","async","notifications","getNotification","notificatons","getNotificationUnreadNumber","notif","notification_read","getItemPerPage","itemsPerPage","getTotalPages","ceil","getSelectedNotification","selectedNotification","getNotificatonsToShow","notificatonsToShow","CLEAR_NOTIFICATION","updNotificationData","currentPage","sortedNotifications","start","end","storedIds","obj","includes","ID","updSelectedNotification","customer_id","notifId","globalNotification","setPage","markLocalAsRead","find","u","currentPages","totalPages","notification","return_list","Lastname","selected_rep","RepFirstName","RepLastName","repID","updRepList","reps","showDialog","show_consultant_dialog","updLoadinSearch","loadingSearch","updLoadinSubmit","loadingSubmit","updSelectedRep","clearRepList","name_phone_email","show_rep_list","consultant","subscriptions","modules","mapFields","mapCustomerFields","createHelpers","getterType","mutationType","mapGetters","mapCustomerGetters","mapActions","mapCustomerActions","mapState","mapCustomerState","mapMutations","mapCustomerMutations","createNamespacedHelpers","mapPartyFields","mapNotificationActions","mapNotificationState","mapNotificationMutations","mapNotificationGetters","mapConsultantsMutations","mapConsultantsActions","mapConsultantFields","mapSubscriptionsFields","customerInfo","utils","currency_format","number","n","x","s","c","re","toFixed","RegExp","addBusinessDays","d","getTime","day","getDay","setDate","getDate","floor","str_to_date","str","date","isNaN","mnth","getMonth","camelCase","_","substr","upperFirst","substring","rangeYear","stop","step","from","generateUUIDHex","d2","performance","now","r","random","isValidCreditCardNumber","cardNumber","maskCreditCardNumber","test","startsWith","isValidDateFormat","regex","currentDate","currentYear","currentMonth","inputMonth","inputYear","Number","validateAndCorrectDate","dateStr","cleanedStr","month","year","splitDate","part","trim","padStart","processingOrderInfo","currentTime","transaction_id","processing_order","canSend","remainingTime","orderTime","timeDifference","TIME_IN_MS","isValidUUID","uuid","generateUUID","customerID","v","isRequestOngoing","ongoing","axios","interceptors","request","use","config"],"mappings":"gGAAA;;;;;CAMC,SAAUA,EAAMC,GAChB,aAGkCC,EAAOC,QACxCD,EAAOC,QAAUF,EAAQ,EAAQ,UAEjC,EAAO,CAAC,WAAW,EAAF,EAAS,mEAP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AO,CACLH,SAAS,EACTC,cAAeA,EACfH,eAAgBA,EAChBjJ,WAAYkJ,EAAiBlJ,YAE/B,MAAO1R,GAEP,OADA+C,QAAQC,MAAMhD,GACP,CACL6a,SAAS,EACTC,cAAe,EACfH,eAAgBA,EAChBjJ,WAAY,IAAIpT,KAAKoc,EAAYlD,UAAY,QAInD0D,YAAcC,IACZ,MAAM1B,EAAQ,6FACd,OAAOA,EAAMH,KAAK6B,IAGpBC,aAAc,KACZ,IAAIC,EAAa,KAQjB,MAAMF,EAAO,uCAAuC1a,QAAQ,SAAS,SAAUyW,GAC7E,MAAM+B,EAAqB,GAAhBhd,KAAKid,SAAiB,EAC3BoC,EAAU,MAANpE,EAAY+B,EAAS,EAAJA,EAAW,EACtC,OAAOqC,EAAEpV,SAAS,OAGpB,OAAOmV,EAAc,GAAEF,KAAQE,IAAeF,GAEhDI,iBAAmB9R,IACjB,IAAI+R,GAAU,EASd,OAPAC,IAAMC,aAAaC,QAAQC,KAAI,SAAUC,GAIvC,OAHIA,EAAOpS,IAAIyJ,SAASzJ,KACtB+R,GAAU,GAELK,KAGFL","file":"js/MyParties.080af57f.js","sourcesContent":["//! moment-timezone.js\n//! version : 0.5.34\n//! Copyright (c) JS Foundation and other contributors\n//! license : MIT\n//! github.com/moment/moment-timezone\n\n(function (root, factory) {\n\t\"use strict\";\n\n\t/*global define*/\n\tif (typeof module === 'object' && module.exports) {\n\t\tmodule.exports = factory(require('moment')); // Node\n\t} else if (typeof define === 'function' && define.amd) {\n\t\tdefine(['moment'], factory); // AMD\n\t} else {\n\t\tfactory(root.moment); // Browser\n\t}\n}(this, function (moment) {\n\t\"use strict\";\n\n\t// Resolves es6 module loading issue\n\tif (moment.version === undefined && moment.default) {\n\t\tmoment = moment.default;\n\t}\n\n\t// Do not load moment-timezone a second time.\n\t// if (moment.tz !== undefined) {\n\t// \tlogError('Moment Timezone ' + moment.tz.version + ' was already loaded ' + (moment.tz.dataVersion ? 'with data from ' : 'without any data') + moment.tz.dataVersion);\n\t// \treturn moment;\n\t// }\n\n\tvar VERSION = \"0.5.34\",\n\t\tzones = {},\n\t\tlinks = {},\n\t\tcountries = {},\n\t\tnames = {},\n\t\tguesses = {},\n\t\tcachedGuess;\n\n\tif (!moment || typeof moment.version !== 'string') {\n\t\tlogError('Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/');\n\t}\n\n\tvar momentVersion = moment.version.split('.'),\n\t\tmajor = +momentVersion[0],\n\t\tminor = +momentVersion[1];\n\n\t// Moment.js version check\n\tif (major < 2 || (major === 2 && minor < 6)) {\n\t\tlogError('Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js ' + moment.version + '. See momentjs.com');\n\t}\n\n\t/************************************\n\t\tUnpacking\n\t************************************/\n\n\tfunction charCodeToInt(charCode) {\n\t\tif (charCode > 96) {\n\t\t\treturn charCode - 87;\n\t\t} else if (charCode > 64) {\n\t\t\treturn charCode - 29;\n\t\t}\n\t\treturn charCode - 48;\n\t}\n\n\tfunction unpackBase60(string) {\n\t\tvar i = 0,\n\t\t\tparts = string.split('.'),\n\t\t\twhole = parts[0],\n\t\t\tfractional = parts[1] || '',\n\t\t\tmultiplier = 1,\n\t\t\tnum,\n\t\t\tout = 0,\n\t\t\tsign = 1;\n\n\t\t// handle negative numbers\n\t\tif (string.charCodeAt(0) === 45) {\n\t\t\ti = 1;\n\t\t\tsign = -1;\n\t\t}\n\n\t\t// handle digits before the decimal\n\t\tfor (i; i < whole.length; i++) {\n\t\t\tnum = charCodeToInt(whole.charCodeAt(i));\n\t\t\tout = 60 * out + num;\n\t\t}\n\n\t\t// handle digits after the decimal\n\t\tfor (i = 0; i < fractional.length; i++) {\n\t\t\tmultiplier = multiplier / 60;\n\t\t\tnum = charCodeToInt(fractional.charCodeAt(i));\n\t\t\tout += num * multiplier;\n\t\t}\n\n\t\treturn out * sign;\n\t}\n\n\tfunction arrayToInt (array) {\n\t\tfor (var i = 0; i < array.length; i++) {\n\t\t\tarray[i] = unpackBase60(array[i]);\n\t\t}\n\t}\n\n\tfunction intToUntil (array, length) {\n\t\tfor (var i = 0; i < length; i++) {\n\t\t\tarray[i] = Math.round((array[i - 1] || 0) + (array[i] * 60000)); // minutes to milliseconds\n\t\t}\n\n\t\tarray[length - 1] = Infinity;\n\t}\n\n\tfunction mapIndices (source, indices) {\n\t\tvar out = [], i;\n\n\t\tfor (i = 0; i < indices.length; i++) {\n\t\t\tout[i] = source[indices[i]];\n\t\t}\n\n\t\treturn out;\n\t}\n\n\tfunction unpack (string) {\n\t\tvar data = string.split('|'),\n\t\t\toffsets = data[2].split(' '),\n\t\t\tindices = data[3].split(''),\n\t\t\tuntils = data[4].split(' ');\n\n\t\tarrayToInt(offsets);\n\t\tarrayToInt(indices);\n\t\tarrayToInt(untils);\n\n\t\tintToUntil(untils, indices.length);\n\n\t\treturn {\n\t\t\tname : data[0],\n\t\t\tabbrs : mapIndices(data[1].split(' '), indices),\n\t\t\toffsets : mapIndices(offsets, indices),\n\t\t\tuntils : untils,\n\t\t\tpopulation : data[5] | 0\n\t\t};\n\t}\n\n\t/************************************\n\t\tZone object\n\t************************************/\n\n\tfunction Zone (packedString) {\n\t\tif (packedString) {\n\t\t\tthis._set(unpack(packedString));\n\t\t}\n\t}\n\n\tZone.prototype = {\n\t\t_set : function (unpacked) {\n\t\t\tthis.name = unpacked.name;\n\t\t\tthis.abbrs = unpacked.abbrs;\n\t\t\tthis.untils = unpacked.untils;\n\t\t\tthis.offsets = unpacked.offsets;\n\t\t\tthis.population = unpacked.population;\n\t\t},\n\n\t\t_index : function (timestamp) {\n\t\t\tvar target = +timestamp,\n\t\t\t\tuntils = this.untils,\n\t\t\t\ti;\n\n\t\t\tfor (i = 0; i < untils.length; i++) {\n\t\t\t\tif (target < untils[i]) {\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tcountries : function () {\n\t\t\tvar zone_name = this.name;\n\t\t\treturn Object.keys(countries).filter(function (country_code) {\n\t\t\t\treturn countries[country_code].zones.indexOf(zone_name) !== -1;\n\t\t\t});\n\t\t},\n\n\t\tparse : function (timestamp) {\n\t\t\tvar target = +timestamp,\n\t\t\t\toffsets = this.offsets,\n\t\t\t\tuntils = this.untils,\n\t\t\t\tmax = untils.length - 1,\n\t\t\t\toffset, offsetNext, offsetPrev, i;\n\n\t\t\tfor (i = 0; i < max; i++) {\n\t\t\t\toffset = offsets[i];\n\t\t\t\toffsetNext = offsets[i + 1];\n\t\t\t\toffsetPrev = offsets[i ? i - 1 : i];\n\n\t\t\t\tif (offset < offsetNext && tz.moveAmbiguousForward) {\n\t\t\t\t\toffset = offsetNext;\n\t\t\t\t} else if (offset > offsetPrev && tz.moveInvalidForward) {\n\t\t\t\t\toffset = offsetPrev;\n\t\t\t\t}\n\n\t\t\t\tif (target < untils[i] - (offset * 60000)) {\n\t\t\t\t\treturn offsets[i];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn offsets[max];\n\t\t},\n\n\t\tabbr : function (mom) {\n\t\t\treturn this.abbrs[this._index(mom)];\n\t\t},\n\n\t\toffset : function (mom) {\n\t\t\tlogError(\"zone.offset has been deprecated in favor of zone.utcOffset\");\n\t\t\treturn this.offsets[this._index(mom)];\n\t\t},\n\n\t\tutcOffset : function (mom) {\n\t\t\treturn this.offsets[this._index(mom)];\n\t\t}\n\t};\n\n\t/************************************\n\t\tCountry object\n\t************************************/\n\n\tfunction Country (country_name, zone_names) {\n\t\tthis.name = country_name;\n\t\tthis.zones = zone_names;\n\t}\n\n\t/************************************\n\t\tCurrent Timezone\n\t************************************/\n\n\tfunction OffsetAt(at) {\n\t\tvar timeString = at.toTimeString();\n\t\tvar abbr = timeString.match(/\\([a-z ]+\\)/i);\n\t\tif (abbr && abbr[0]) {\n\t\t\t// 17:56:31 GMT-0600 (CST)\n\t\t\t// 17:56:31 GMT-0600 (Central Standard Time)\n\t\t\tabbr = abbr[0].match(/[A-Z]/g);\n\t\t\tabbr = abbr ? abbr.join('') : undefined;\n\t\t} else {\n\t\t\t// 17:56:31 CST\n\t\t\t// 17:56:31 GMT+0800 (台北標準時間)\n\t\t\tabbr = timeString.match(/[A-Z]{3,5}/g);\n\t\t\tabbr = abbr ? abbr[0] : undefined;\n\t\t}\n\n\t\tif (abbr === 'GMT') {\n\t\t\tabbr = undefined;\n\t\t}\n\n\t\tthis.at = +at;\n\t\tthis.abbr = abbr;\n\t\tthis.offset = at.getTimezoneOffset();\n\t}\n\n\tfunction ZoneScore(zone) {\n\t\tthis.zone = zone;\n\t\tthis.offsetScore = 0;\n\t\tthis.abbrScore = 0;\n\t}\n\n\tZoneScore.prototype.scoreOffsetAt = function (offsetAt) {\n\t\tthis.offsetScore += Math.abs(this.zone.utcOffset(offsetAt.at) - offsetAt.offset);\n\t\tif (this.zone.abbr(offsetAt.at).replace(/[^A-Z]/g, '') !== offsetAt.abbr) {\n\t\t\tthis.abbrScore++;\n\t\t}\n\t};\n\n\tfunction findChange(low, high) {\n\t\tvar mid, diff;\n\n\t\twhile ((diff = ((high.at - low.at) / 12e4 | 0) * 6e4)) {\n\t\t\tmid = new OffsetAt(new Date(low.at + diff));\n\t\t\tif (mid.offset === low.offset) {\n\t\t\t\tlow = mid;\n\t\t\t} else {\n\t\t\t\thigh = mid;\n\t\t\t}\n\t\t}\n\n\t\treturn low;\n\t}\n\n\tfunction userOffsets() {\n\t\tvar startYear = new Date().getFullYear() - 2,\n\t\t\tlast = new OffsetAt(new Date(startYear, 0, 1)),\n\t\t\toffsets = [last],\n\t\t\tchange, next, i;\n\n\t\tfor (i = 1; i < 48; i++) {\n\t\t\tnext = new OffsetAt(new Date(startYear, i, 1));\n\t\t\tif (next.offset !== last.offset) {\n\t\t\t\tchange = findChange(last, next);\n\t\t\t\toffsets.push(change);\n\t\t\t\toffsets.push(new OffsetAt(new Date(change.at + 6e4)));\n\t\t\t}\n\t\t\tlast = next;\n\t\t}\n\n\t\tfor (i = 0; i < 4; i++) {\n\t\t\toffsets.push(new OffsetAt(new Date(startYear + i, 0, 1)));\n\t\t\toffsets.push(new OffsetAt(new Date(startYear + i, 6, 1)));\n\t\t}\n\n\t\treturn offsets;\n\t}\n\n\tfunction sortZoneScores (a, b) {\n\t\tif (a.offsetScore !== b.offsetScore) {\n\t\t\treturn a.offsetScore - b.offsetScore;\n\t\t}\n\t\tif (a.abbrScore !== b.abbrScore) {\n\t\t\treturn a.abbrScore - b.abbrScore;\n\t\t}\n\t\tif (a.zone.population !== b.zone.population) {\n\t\t\treturn b.zone.population - a.zone.population;\n\t\t}\n\t\treturn b.zone.name.localeCompare(a.zone.name);\n\t}\n\n\tfunction addToGuesses (name, offsets) {\n\t\tvar i, offset;\n\t\tarrayToInt(offsets);\n\t\tfor (i = 0; i < offsets.length; i++) {\n\t\t\toffset = offsets[i];\n\t\t\tguesses[offset] = guesses[offset] || {};\n\t\t\tguesses[offset][name] = true;\n\t\t}\n\t}\n\n\tfunction guessesForUserOffsets (offsets) {\n\t\tvar offsetsLength = offsets.length,\n\t\t\tfilteredGuesses = {},\n\t\t\tout = [],\n\t\t\ti, j, guessesOffset;\n\n\t\tfor (i = 0; i < offsetsLength; i++) {\n\t\t\tguessesOffset = guesses[offsets[i].offset] || {};\n\t\t\tfor (j in guessesOffset) {\n\t\t\t\tif (guessesOffset.hasOwnProperty(j)) {\n\t\t\t\t\tfilteredGuesses[j] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (i in filteredGuesses) {\n\t\t\tif (filteredGuesses.hasOwnProperty(i)) {\n\t\t\t\tout.push(names[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn out;\n\t}\n\n\tfunction rebuildGuess () {\n\n\t\t// use Intl API when available and returning valid time zone\n\t\ttry {\n\t\t\tvar intlName = Intl.DateTimeFormat().resolvedOptions().timeZone;\n\t\t\tif (intlName && intlName.length > 3) {\n\t\t\t\tvar name = names[normalizeName(intlName)];\n\t\t\t\tif (name) {\n\t\t\t\t\treturn name;\n\t\t\t\t}\n\t\t\t\tlogError(\"Moment Timezone found \" + intlName + \" from the Intl api, but did not have that data loaded.\");\n\t\t\t}\n\t\t} catch (e) {\n\t\t\t// Intl unavailable, fall back to manual guessing.\n\t\t}\n\n\t\tvar offsets = userOffsets(),\n\t\t\toffsetsLength = offsets.length,\n\t\t\tguesses = guessesForUserOffsets(offsets),\n\t\t\tzoneScores = [],\n\t\t\tzoneScore, i, j;\n\n\t\tfor (i = 0; i < guesses.length; i++) {\n\t\t\tzoneScore = new ZoneScore(getZone(guesses[i]), offsetsLength);\n\t\t\tfor (j = 0; j < offsetsLength; j++) {\n\t\t\t\tzoneScore.scoreOffsetAt(offsets[j]);\n\t\t\t}\n\t\t\tzoneScores.push(zoneScore);\n\t\t}\n\n\t\tzoneScores.sort(sortZoneScores);\n\n\t\treturn zoneScores.length > 0 ? zoneScores[0].zone.name : undefined;\n\t}\n\n\tfunction guess (ignoreCache) {\n\t\tif (!cachedGuess || ignoreCache) {\n\t\t\tcachedGuess = rebuildGuess();\n\t\t}\n\t\treturn cachedGuess;\n\t}\n\n\t/************************************\n\t\tGlobal Methods\n\t************************************/\n\n\tfunction normalizeName (name) {\n\t\treturn (name || '').toLowerCase().replace(/\\//g, '_');\n\t}\n\n\tfunction addZone (packed) {\n\t\tvar i, name, split, normalized;\n\n\t\tif (typeof packed === \"string\") {\n\t\t\tpacked = [packed];\n\t\t}\n\n\t\tfor (i = 0; i < packed.length; i++) {\n\t\t\tsplit = packed[i].split('|');\n\t\t\tname = split[0];\n\t\t\tnormalized = normalizeName(name);\n\t\t\tzones[normalized] = packed[i];\n\t\t\tnames[normalized] = name;\n\t\t\taddToGuesses(normalized, split[2].split(' '));\n\t\t}\n\t}\n\n\tfunction getZone (name, caller) {\n\n\t\tname = normalizeName(name);\n\n\t\tvar zone = zones[name];\n\t\tvar link;\n\n\t\tif (zone instanceof Zone) {\n\t\t\treturn zone;\n\t\t}\n\n\t\tif (typeof zone === 'string') {\n\t\t\tzone = new Zone(zone);\n\t\t\tzones[name] = zone;\n\t\t\treturn zone;\n\t\t}\n\n\t\t// Pass getZone to prevent recursion more than 1 level deep\n\t\tif (links[name] && caller !== getZone && (link = getZone(links[name], getZone))) {\n\t\t\tzone = zones[name] = new Zone();\n\t\t\tzone._set(link);\n\t\t\tzone.name = names[name];\n\t\t\treturn zone;\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tfunction getNames () {\n\t\tvar i, out = [];\n\n\t\tfor (i in names) {\n\t\t\tif (names.hasOwnProperty(i) && (zones[i] || zones[links[i]]) && names[i]) {\n\t\t\t\tout.push(names[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn out.sort();\n\t}\n\n\tfunction getCountryNames () {\n\t\treturn Object.keys(countries);\n\t}\n\n\tfunction addLink (aliases) {\n\t\tvar i, alias, normal0, normal1;\n\n\t\tif (typeof aliases === \"string\") {\n\t\t\taliases = [aliases];\n\t\t}\n\n\t\tfor (i = 0; i < aliases.length; i++) {\n\t\t\talias = aliases[i].split('|');\n\n\t\t\tnormal0 = normalizeName(alias[0]);\n\t\t\tnormal1 = normalizeName(alias[1]);\n\n\t\t\tlinks[normal0] = normal1;\n\t\t\tnames[normal0] = alias[0];\n\n\t\t\tlinks[normal1] = normal0;\n\t\t\tnames[normal1] = alias[1];\n\t\t}\n\t}\n\n\tfunction addCountries (data) {\n\t\tvar i, country_code, country_zones, split;\n\t\tif (!data || !data.length) return;\n\t\tfor (i = 0; i < data.length; i++) {\n\t\t\tsplit = data[i].split('|');\n\t\t\tcountry_code = split[0].toUpperCase();\n\t\t\tcountry_zones = split[1].split(' ');\n\t\t\tcountries[country_code] = new Country(\n\t\t\t\tcountry_code,\n\t\t\t\tcountry_zones\n\t\t\t);\n\t\t}\n\t}\n\n\tfunction getCountry (name) {\n\t\tname = name.toUpperCase();\n\t\treturn countries[name] || null;\n\t}\n\n\tfunction zonesForCountry(country, with_offset) {\n\t\tcountry = getCountry(country);\n\n\t\tif (!country) return null;\n\n\t\tvar zones = country.zones.sort();\n\n\t\tif (with_offset) {\n\t\t\treturn zones.map(function (zone_name) {\n\t\t\t\tvar zone = getZone(zone_name);\n\t\t\t\treturn {\n\t\t\t\t\tname: zone_name,\n\t\t\t\t\toffset: zone.utcOffset(new Date())\n\t\t\t\t};\n\t\t\t});\n\t\t}\n\n\t\treturn zones;\n\t}\n\n\tfunction loadData (data) {\n\t\taddZone(data.zones);\n\t\taddLink(data.links);\n\t\taddCountries(data.countries);\n\t\ttz.dataVersion = data.version;\n\t}\n\n\tfunction zoneExists (name) {\n\t\tif (!zoneExists.didShowError) {\n\t\t\tzoneExists.didShowError = true;\n\t\t\t\tlogError(\"moment.tz.zoneExists('\" + name + \"') has been deprecated in favor of !moment.tz.zone('\" + name + \"')\");\n\t\t}\n\t\treturn !!getZone(name);\n\t}\n\n\tfunction needsOffset (m) {\n\t\tvar isUnixTimestamp = (m._f === 'X' || m._f === 'x');\n\t\treturn !!(m._a && (m._tzm === undefined) && !isUnixTimestamp);\n\t}\n\n\tfunction logError (message) {\n\t\tif (typeof console !== 'undefined' && typeof console.error === 'function') {\n\t\t\tconsole.error(message);\n\t\t}\n\t}\n\n\t/************************************\n\t\tmoment.tz namespace\n\t************************************/\n\n\tfunction tz (input) {\n\t\tvar args = Array.prototype.slice.call(arguments, 0, -1),\n\t\t\tname = arguments[arguments.length - 1],\n\t\t\tzone = getZone(name),\n\t\t\tout = moment.utc.apply(null, args);\n\n\t\tif (zone && !moment.isMoment(input) && needsOffset(out)) {\n\t\t\tout.add(zone.parse(out), 'minutes');\n\t\t}\n\n\t\tout.tz(name);\n\n\t\treturn out;\n\t}\n\n\ttz.version = VERSION;\n\ttz.dataVersion = '';\n\ttz._zones = zones;\n\ttz._links = links;\n\ttz._names = names;\n\ttz._countries\t= countries;\n\ttz.add = addZone;\n\ttz.link = addLink;\n\ttz.load = loadData;\n\ttz.zone = getZone;\n\ttz.zoneExists = zoneExists; // deprecated in 0.1.0\n\ttz.guess = guess;\n\ttz.names = getNames;\n\ttz.Zone = Zone;\n\ttz.unpack = unpack;\n\ttz.unpackBase60 = unpackBase60;\n\ttz.needsOffset = needsOffset;\n\ttz.moveInvalidForward = true;\n\ttz.moveAmbiguousForward = false;\n\ttz.countries = getCountryNames;\n\ttz.zonesForCountry = zonesForCountry;\n\n\t/************************************\n\t\tInterface with Moment.js\n\t************************************/\n\n\tvar fn = moment.fn;\n\n\tmoment.tz = tz;\n\n\tmoment.defaultZone = null;\n\n\tmoment.updateOffset = function (mom, keepTime) {\n\t\tvar zone = moment.defaultZone,\n\t\t\toffset;\n\n\t\tif (mom._z === undefined) {\n\t\t\tif (zone && needsOffset(mom) && !mom._isUTC) {\n\t\t\t\tmom._d = moment.utc(mom._a)._d;\n\t\t\t\tmom.utc().add(zone.parse(mom), 'minutes');\n\t\t\t}\n\t\t\tmom._z = zone;\n\t\t}\n\t\tif (mom._z) {\n\t\t\toffset = mom._z.utcOffset(mom);\n\t\t\tif (Math.abs(offset) < 16) {\n\t\t\t\toffset = offset / 60;\n\t\t\t}\n\t\t\tif (mom.utcOffset !== undefined) {\n\t\t\t\tvar z = mom._z;\n\t\t\t\tmom.utcOffset(-offset, keepTime);\n\t\t\t\tmom._z = z;\n\t\t\t} else {\n\t\t\t\tmom.zone(offset, keepTime);\n\t\t\t}\n\t\t}\n\t};\n\n\tfn.tz = function (name, keepTime) {\n\t\tif (name) {\n\t\t\tif (typeof name !== 'string') {\n\t\t\t\tthrow new Error('Time zone name must be a string, got ' + name + ' [' + typeof name + ']');\n\t\t\t}\n\t\t\tthis._z = getZone(name);\n\t\t\tif (this._z) {\n\t\t\t\tmoment.updateOffset(this, keepTime);\n\t\t\t} else {\n\t\t\t\tlogError(\"Moment Timezone has no data for \" + name + \". See http://momentjs.com/timezone/docs/#/data-loading/.\");\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\t\tif (this._z) { return this._z.name; }\n\t};\n\n\tfunction abbrWrap (old) {\n\t\treturn function () {\n\t\t\tif (this._z) { return this._z.abbr(this); }\n\t\t\treturn old.call(this);\n\t\t};\n\t}\n\n\tfunction resetZoneWrap (old) {\n\t\treturn function () {\n\t\t\tthis._z = null;\n\t\t\treturn old.apply(this, arguments);\n\t\t};\n\t}\n\n\tfunction resetZoneWrap2 (old) {\n\t\treturn function () {\n\t\t\tif (arguments.length > 0) this._z = null;\n\t\t\treturn old.apply(this, arguments);\n\t\t};\n\t}\n\n\tfn.zoneName = abbrWrap(fn.zoneName);\n\tfn.zoneAbbr = abbrWrap(fn.zoneAbbr);\n\tfn.utc = resetZoneWrap(fn.utc);\n\tfn.local = resetZoneWrap(fn.local);\n\tfn.utcOffset = resetZoneWrap2(fn.utcOffset);\n\n\tmoment.tz.setDefault = function(name) {\n\t\tif (major < 2 || (major === 2 && minor < 9)) {\n\t\t\tlogError('Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js ' + moment.version + '.');\n\t\t}\n\t\tmoment.defaultZone = name ? getZone(name) : null;\n\t\treturn moment;\n\t};\n\n\t// Cloning a moment should include the _z property.\n\tvar momentProperties = moment.momentProperties;\n\tif (Object.prototype.toString.call(momentProperties) === '[object Array]') {\n\t\t// moment 2.8.1+\n\t\tmomentProperties.push('_z');\n\t\tmomentProperties.push('_a');\n\t} else if (momentProperties) {\n\t\t// moment 2.7.0\n\t\tmomentProperties._z = null;\n\t}\n\n\t// INJECT DATA\n\n\treturn moment;\n}));\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{},[_vm._m(0),_c('div',{staticClass:\"table\"},[_c('v-tabs',{attrs:{\"show-arrows\":\"\"},on:{\"change\":_vm.set_tab},model:{value:(_vm.current_tab),callback:function ($$v) {_vm.current_tab=$$v},expression:\"current_tab\"}},[_c('v-tabs-slider'),_vm._l((_vm.tabs),function(tab){return _c('v-tab',{key:tab.name,staticClass:\"f-16 font-lato font-weight-bold\",attrs:{\"href\":'#' + tab.name}},[_vm._v(\" \"+_vm._s(tab.name)+\" \")])})],2),_c('v-tabs-items',{model:{value:(_vm.current_tab),callback:function ($$v) {_vm.current_tab=$$v},expression:\"current_tab\"}},_vm._l((_vm.tabs),function(tab){return _c('v-tab-item',{key:tab.name,staticClass:\"pz-tittle-14\",attrs:{\"href\":'#' + tab.name,\"value\":tab.name}},[_c('v-card',{attrs:{\"flat\":\"\"}},[(!_vm.$vuetify.breakpoint.mobile && _vm.loading)?_c('v-skeleton-loader',{attrs:{\"type\":\"list-item-three-line@2, table-tfoot\"}}):_c('div',[(!_vm.current_party && !_vm.$vuetify.breakpoint.mobile)?_c('v-data-table',{staticClass:\"elevation-1 mt-10\",attrs:{\"custom-filter\":_vm.filterOnlyCapsText,\"headers\":_vm.headers,\"items\":_vm.filteredParties,\"hide-default-header\":\"\",\"item-key\":\"orderID\"},scopedSlots:_vm._u([{key:\"header\",fn:function(ref){return [_c('thead',[_c('tr',{staticClass:\"header-row\"},_vm._l((_vm.headers),function(item,index){return _c('th',{key:index,class:item.class},[_c('span',[_vm._v(_vm._s(item.text))])])}),0)])]}},{key:\"item.PartyID\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('div',{staticClass:\"table-text\"},[_vm._v(_vm._s(item.PartyID))])]}},{key:\"item.PartyDate\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('div',{staticClass:\"table-text\"},[_vm._v(\" \"+_vm._s(_vm.dateFormatter(item.PartyDate,\"s\"))+\" \")])]}},{key:\"item.orders\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('div',{staticClass:\"table-text\"},[_vm._v(_vm._s(item.orders))])]}},{key:\"item.dollars\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('div',{staticClass:\"table-text\"},[_vm._v(_vm._s(_vm.parseMoney(item.dollars)))])]}},{key:\"item.Description\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('div',{staticClass:\"table-text\"},[_vm._v(_vm._s(item.status))])]}},{key:\"item.actions\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('div',{staticClass:\"pt-16\"},[_c('v-card',[_c('v-speed-dial',{attrs:{\"absolute\":\"\",\"right\":\"\",\"bottom\":\"\",\"direction\":_vm.$vuetify.breakpoint.mobile ? 'top' : 'left',\"open-on-hover\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(){return [_c('v-btn',{attrs:{\"fab\":\"\",\"bottom\":\"\",\"small\":\"\",\"color\":\"primary\"}},[_c('v-icon',[_vm._v(\"mdi-share-variant\")])],1)]},proxy:true}],null,true)},_vm._l((_vm.networks.filter(function (item) {\n return item.show_on_desktop === true;\n })),function(network){return _c('ShareNetwork',{key:network.network,staticClass:\"\\n btn-network\\n v-btn\\n v-btn--bottom\\n v-btn--is-elevated\\n v-btn--fab\\n v-btn--has-bg\\n v-btn--round\\n theme--dark\\n v-size--small\\n \",style:({\n backgroundColor: network.bgcolor,\n color: 'black',\n }),attrs:{\"fab\":\"\",\"bottom\":\"\",\"small\":\"\",\"color\":\"primary\",\"network\":network.network,\"url\":_vm.sharing.url + item.PartyID,\"title\":_vm.sharing.title,\"description\":_vm.sharing.description,\"quote\":_vm.sharing.quote,\"hashtags\":_vm.sharing.hashtags,\"twitterUser\":_vm.sharing.twitterUser,\"target\":\"_blank\"}},[_c('v-icon',[_vm._v(_vm._s(network.icon))])],1)}),1)],1)],1)]}}],null,true)}):_vm._e()],1)],1),(_vm.$vuetify.breakpoint.mobile)?_c('div',{staticClass:\"mobile-tabs\"},[(_vm.loading)?_c('v-skeleton-loader',{attrs:{\"type\":\"card@2\"}}):_vm._l((_vm.filteredParties),function(item,index){return _c('v-card-text',{key:index},[_c('v-lazy',[_c('v-list-item-group',[_c('v-list-item',[[_c('v-list-item-content',[_c('v-row',[_c('v-col',{attrs:{\"cols\":\"12\",\"sm\":\"12\"}},[_c('v-list-item-title',{staticClass:\"o-1\"},[_c('div',{staticClass:\"order-arrow d-flex align-items-center\"},[_c('label',{staticClass:\"font-weight-bold font-lato mb-0\"},[_vm._v(\"PARTY ID:\")]),_c('span',{staticClass:\"ml-1\"},[_vm._v(_vm._s(item.PartyID))]),_c('v-icon',{staticClass:\"ml-auto d-none\",attrs:{\"color\":\"white\"}},[_vm._v(\" mdi-chevron-right \")])],1)]),_c('v-list-item-subtitle',{staticClass:\"mt-1\"},[_c('div',{staticClass:\"\\n pa-3\\n pb-0\\n mt-2\\n order-status-detail\\n status-tracking\\n \"},[_c('p',[_c('label',{attrs:{\"for\":\"\"}},[_vm._v(\"Date\")]),_c('span',{staticClass:\"f-400\"},[_vm._v(\" \"+_vm._s(_vm.dateFormatter(item.PartyDate, \"s\"))+\" \")])]),_c('p',[_c('label',{attrs:{\"for\":\"\"}},[_vm._v(\"Time\")]),_c('span',{staticClass:\"f-400\"},[_vm._v(\" \"+_vm._s(_vm.dateFormatter(item.PartyDate, \"t\"))+\" \")])]),_c('p',[_c('label',{attrs:{\"for\":\"\"}},[_vm._v(\"Orders\")]),_c('span',{staticClass:\"text-uppercase f-400\"},[_vm._v(\" \"+_vm._s(item.orders)+\" \")])]),_c('p',[_c('label',{attrs:{\"for\":\"\"}},[_vm._v(\"Dollars\")]),_c('span',{staticClass:\"text-uppercase f-400\"},[_vm._v(\" \"+_vm._s(_vm.parseMoney(item.dollars))+\" \")])]),_c('p',[_c('label',{attrs:{\"for\":\"\"}},[_vm._v(\"Status\")]),_c('span',{staticClass:\"text-uppercase f-400\"},[_vm._v(\" \"+_vm._s(item.status)+\" \")])]),_c('div',{staticClass:\"icons-bg mt-3\"},_vm._l((_vm.networks),function(network){return _c('ShareNetwork',{key:network.network,staticClass:\"\\n btn-network\\n v-btn\\n v-btn--bottom\\n v-btn--is-elevated\\n v-btn--fab\\n v-btn--has-bg\\n v-btn--round\\n theme--dark\\n v-size--small\\n ml-2\\n \",style:({\n backgroundColor: network.bgcolor,\n color: 'black',\n }),attrs:{\"fab\":\"\",\"bottom\":\"\",\"small\":\"\",\"color\":\"primary\",\"network\":network.network,\"url\":_vm.sharing.url + item.PartyID,\"title\":_vm.sharing.title,\"description\":_vm.sharing.description,\"quote\":_vm.sharing.quote,\"hashtags\":_vm.sharing.hashtags,\"twitterUser\":_vm.sharing.twitterUser,\"target\":\"_blank\"}},[_c('v-icon',[_vm._v(_vm._s(network.icon))])],1)}),1)])])],1)],1),_c('v-divider')],1)]],2)],1)],1)],1)})],2):_vm._e()],1)}),1)],1)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"d_flex align-items-center\"},[_c('h2',{staticClass:\"mb-8 my-heading text-uppercase\"},[_vm._v(\"Your Parties\")])])}]\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyParties.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MyParties.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./MyParties.vue?vue&type=template&id=8554fcf2&\"\nimport script from \"./MyParties.vue?vue&type=script&lang=js&\"\nexport * from \"./MyParties.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VDataTable } from 'vuetify/lib/components/VDataTable';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VLazy } from 'vuetify/lib/components/VLazy';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemContent } from 'vuetify/lib/components/VList';\nimport { VListItemGroup } from 'vuetify/lib/components/VList';\nimport { VListItemSubtitle } from 'vuetify/lib/components/VList';\nimport { VListItemTitle } from 'vuetify/lib/components/VList';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSkeletonLoader } from 'vuetify/lib/components/VSkeletonLoader';\nimport { VSpeedDial } from 'vuetify/lib/components/VSpeedDial';\nimport { VTab } from 'vuetify/lib/components/VTabs';\nimport { VTabItem } from 'vuetify/lib/components/VTabs';\nimport { VTabs } from 'vuetify/lib/components/VTabs';\nimport { VTabsItems } from 'vuetify/lib/components/VTabs';\nimport { VTabsSlider } from 'vuetify/lib/components/VTabs';\ninstallComponents(component, {VBtn,VCard,VCardText,VCol,VDataTable,VDivider,VIcon,VLazy,VListItem,VListItemContent,VListItemGroup,VListItemSubtitle,VListItemTitle,VRow,VSkeletonLoader,VSpeedDial,VTab,VTabItem,VTabs,VTabsItems,VTabsSlider})\n","var moment = module.exports = require(\"./moment-timezone\");\nmoment.tz.load(require('./data/packed/latest.json'));\n","export class Customer {\r\n constructor({\r\n BillState = \"\",\r\n BillCity = \"\",\r\n BillPostalCode = \"\",\r\n BillStreet1 = \"\",\r\n BillStreet2 = \"\",\r\n ShipCity = \"\",\r\n ShipState = \"\",\r\n ShipCountryCode = \"\",\r\n ShipPostalCode = \"\",\r\n ShipStreet1 = \"\",\r\n ShipStreet2 = \"\",\r\n CCExpDate = \"\",\r\n CCNumber = \"\",\r\n CCNameOnCard = \"\",\r\n CVV = \"\",\r\n CCTypeID = \"\",\r\n BCKey = \"186175\",\r\n Company = \"\",\r\n CountryCode = \"\",\r\n CustomerTypeID = \"\",\r\n Email = \"\",\r\n EnrollerBCKey = \"186175\",\r\n FirstName = \"\",\r\n LastName = \"\",\r\n Phone1 = \"\",\r\n StatusTypeID = \"\",\r\n Gender = \"\",\r\n UserName = '',\r\n Birthday = '',\r\n BillCountryProvinceId = '',\r\n ShipCountryProvinceId = '',\r\n } = {}) {\r\n this.BillState = BillState;\r\n this.BillCity = BillCity;\r\n this.BillPostalCode = BillPostalCode;\r\n this.BillStreet1 = BillStreet1;\r\n this.BillStreet2 = BillStreet2;\r\n this.ShipCity = ShipCity;\r\n this.ShipState = ShipState;\r\n this.ShipCountryCode = ShipCountryCode;\r\n this.ShipPostalCode = ShipPostalCode;\r\n this.ShipStreet1 = ShipStreet1;\r\n this.ShipStreet2 = ShipStreet2;\r\n this.CCExpDate = CCExpDate;\r\n this.CCNameOnCard = CCNameOnCard;\r\n this.CCNumber = CCNumber;\r\n this.CVV = CVV;\r\n this.CCTypeID = CCTypeID;\r\n this.BCKey = BCKey;\r\n this.Company = Company;\r\n this.CountryCode = CountryCode || JSON.parse(localStorage.getItem('countrycode'));\r\n this.CustomerTypeID = CustomerTypeID;\r\n this.Email = Email;\r\n this.EnrollerBCKey = EnrollerBCKey;\r\n this.FirstName = FirstName;\r\n this.LastName = LastName;\r\n this.Phone1 = Phone1;\r\n this.StatusTypeID = StatusTypeID;\r\n this.Gender = Gender;\r\n this.UserName = UserName;\r\n this.Birthday = Birthday;\r\n this.BillCountryProvinceId = BillCountryProvinceId;\r\n this.ShipCountryProvinceId = ShipCountryProvinceId;\r\n }\r\n}\r\n","import {getField, updateField} from \"vuex-map-fields\";\r\nimport {Customer} from \"@/store/models/Customer\";\r\nimport pzfy, {UPDATE} from \"@/config\";\r\nimport moment from \"moment\";\r\n\r\nconst actions = {\r\n async edit(context, data) {\r\n let customer_info = context.state.customer_data;\r\n context.commit(\"alertInfo/alert/LOADING\", true, { root: true });\r\n customer_info.Birthday = moment(customer_info.Birthday).format(\r\n \"YYYY-MM-DD 00:00:00\"\r\n );\r\n return await pzfy\r\n .apiCall(Object.assign(customer_info, data), (response) => {\r\n context.commit(\"UPDATE\", response.body.user);\r\n context.commit(\"alertInfo/alert/setPopAlert\", true, { root: true });\r\n })\r\n .finally(() => {\r\n context.commit(\"setLoading\", false);\r\n });\r\n },\r\n async add(context, data) {\r\n context.commit(\"setLoading\", true);\r\n return await pzfy\r\n .apiCall(data, (response) => {\r\n localStorage.setItem(\"new_customer\", true);\r\n const body = response.body;\r\n context.commit(\"UPDATE\", body.user);\r\n context.commit(\"loginInfo/login/loginSuccess\", body, { root: true });\r\n context.commit(\r\n \"orderInfo/checkout/updOrderBuilder\",\r\n {\r\n ConsultantID: body.user.rep.RepID,\r\n selected_rep_name:\r\n body.user.rep.FirstName + \" \" + body.user.rep.LastName,\r\n },\r\n { root: true }\r\n );\r\n })\r\n .finally(() => {\r\n context.commit(\"setLoading\", false);\r\n });\r\n },\r\n\r\n async getCustomerV2(context, data) {\r\n /** get customer using SQLAlchemy**/\r\n /** get customer using SQLAlchemy**/\r\n return await pzfy\r\n .apiCall(data, (response) => {\r\n context.commit(\"UPDATE\", response.body);\r\n })\r\n .catch((error) => {\r\n console.error(error);\r\n });\r\n },\r\n async load_coupons(context, data) {\r\n /***\r\n * Load all coupons for authenticated user\r\n */\r\n context.commit(\"setLoading\", true);\r\n return await pzfy\r\n .apiCall(data, (response) => {\r\n context.commit(\"updCoupons\", response.body);\r\n })\r\n .finally(() => {\r\n context.commit(\"setLoading\", false);\r\n });\r\n },\r\n async verify_address_and_edit(context) {\r\n const data = {\r\n namespace: \"customerInfo/customer/verify_address\",\r\n url: \"/api/v2/address/check_shipping_address\",\r\n };\r\n let customer_info = context.state.customer_data;\r\n //customer_info.CountryCode = 1\r\n context.commit(\"alertInfo/alert/LOADING\", true, { root: true });\r\n return await pzfy\r\n .apiCall(Object.assign(customer_info, data), (response) => {\r\n const address_check_is_well_configured = response?.body?.well_configured;\r\n if (address_check_is_well_configured === false) {\r\n console.error(\"AddressValidationHelper is not configured correctly, please check the configuration and license smarty system\")\r\n return;\r\n }\r\n response.body.valid.forEach((isValid) => {\r\n if (isValid.is_valid == false) {\r\n if (isValid.possible_address === null) {\r\n context.commit(\"alertInfo/alert/setIncorrectAddressAlert\", true, {\r\n root: true,\r\n });\r\n } else {\r\n context.commit(\"alertInfo/alert/setAddressAlert\", isValid, {\r\n root: true,\r\n });\r\n }\r\n } else {\r\n context.dispatch(\"edit\", {\r\n namespace: \"customerInfo/customer/edit\",\r\n url: \"/api/v1/customers/edit\",\r\n });\r\n context.commit(\"alertInfo/alert/setPopAlert\", true, { root: true });\r\n }\r\n });\r\n return response;\r\n })\r\n .catch(() => {\r\n context.commit(\"alertInfo/alert/setError\", true, { root: true });\r\n })\r\n .finally(() => {\r\n context.commit(\"setLoading\", false);\r\n });\r\n },\r\n};\r\nconst getters = {\r\n getField,\r\n getShipState: (state) => `${state.customer_data.ShipState}`,\r\n getFirstName: (state) => `${\"Hi, \" + state.customer_data?.FirstName}`,\r\n getCustomerID: (state) => `${state.customer_data.CustomerID}`,\r\n getCustomerFullName: (state) =>\r\n `${state.customer_data.FirstName} ${state.customer_data.LastName}`,\r\n getCustomerData: (state) => state.customer_data,\r\n};\r\nconst mutations = {\r\n updateField,\r\n [UPDATE](state, value) {\r\n value.Birthday = moment(value.Birthday).format(\"MMM DD, YYYY\");\r\n state.customer_data = value;\r\n localStorage.setItem(\"user\", JSON.stringify(value));\r\n },\r\n setLoading(state, value) {\r\n state.loading = value;\r\n },\r\n updCoupons(state, value) {\r\n state.coupons = value;\r\n },\r\n updCustomer(state, value) {\r\n /**\r\n * Update customer data, and localsotrage\r\n * value={\r\n \"rep\": {\r\n \"Email\": \"test@example.com\",\r\n \"FirstName\": \"Pink Zebra\",\r\n \"LastName\": \"Test\",\r\n \"Phone1\": \"123449526\"\r\n }\r\n }\r\n * @type {any}\r\n */\r\n state.customer_data = Object.assign(state.customer_data, value);\r\n localStorage.setItem(\"user\", JSON.stringify(state.customer_data));\r\n },\r\n setBillingAsShipping(state, value) {\r\n if (value) {\r\n const customer = state.customer_data;\r\n const sameAsShipping = {\r\n BillCity: customer.ShipCity,\r\n BillCountryProvinceId: customer.ShipCountryProvinceId,\r\n BillPostalCode: customer.ShipPostalCode,\r\n BillState: customer.ShipState,\r\n BillStreet1: customer.ShipStreet1,\r\n BillStreet2: customer.ShipStreet2,\r\n };\r\n state.customer_data = Object.assign(state.customer_data, sameAsShipping);\r\n }\r\n },\r\n updCCExpiration(state, value) {\r\n state.customer_data = Object.assign(state.customer_data, value);\r\n localStorage.setItem(\"user\", JSON.stringify(state.customer_data))\r\n },\r\n resetState(state) {\r\n state.success = false;\r\n state.customer_data = new Customer();\r\n state.coupons = [];\r\n state.loading = false;\r\n },\r\n};\r\n\r\nconst state = () => ({\r\n customer_data: localStorage.getItem(\"user\")\r\n ? JSON.parse(localStorage.getItem(\"user\"))\r\n : new Customer(),\r\n coupons: [],\r\n loading: false,\r\n});\r\n\r\nexport const customer = {\r\n namespaced: true,\r\n actions,\r\n mutations,\r\n state,\r\n getters,\r\n};\r\n","import {getField, updateField} from \"vuex-map-fields\";\r\nimport pzfy, {UPDATE} from \"@/config\";\r\n\r\nconst actions = {\r\n async get_parties(context, data) {\r\n /**\r\n * List parties of specific customer...\r\n */\r\n // context.commit(\"alertInfo/alert/LOADING\", true, {root: true,});\r\n context.commit(\"setLoading\", true);\r\n return await pzfy.apiCall(data, (response) => {\r\n context.commit(\"UPDATE\", response.body);\r\n }).finally(() => {\r\n context.commit(\"setLoading\", false)\r\n })\r\n },\r\n};\r\nconst getters = {\r\n getField,\r\n getShipState(state) {\r\n return getField(state.rows[0].ShipState);\r\n },\r\n};\r\nconst mutations = {\r\n updateField,\r\n [UPDATE](state, value) {\r\n state.parties = value;\r\n },\r\n setLoading(state, value) {\r\n state.loading = value;\r\n },\r\n resetState(state) {\r\n state.parties = [];\r\n state.loading = false;\r\n }\r\n};\r\n\r\nconst state = () => ({\r\n parties: [],\r\n loading: false,\r\n networks: [\r\n {\r\n network: \"email\",\r\n name: \"Email\",\r\n icon: \"mdi-email\",\r\n bgcolor: \"#acc9e8\",\r\n show_on_desktop: true\r\n\r\n },\r\n {\r\n network: \"facebook\",\r\n name: \"Facebook\",\r\n icon: \"mdi-facebook\",\r\n bgcolor: \"#acc9e8\",\r\n show_on_desktop: true\r\n },\r\n\r\n {\r\n network: \"sms\",\r\n name: \"SMS\",\r\n icon: \"mdi-comment-processing-outline\",\r\n bgcolor: \"#acc9e8\",\r\n show_on_desktop: false\r\n },\r\n {\r\n network: \"messenger\",\r\n name: \"Messenger\",\r\n icon: \"mdi-facebook-messenger\",\r\n bgcolor: \"#acc9e8\",\r\n show_on_desktop: false\r\n },\r\n {\r\n network: \"whatsapp\",\r\n name: \"Whatsapp\",\r\n icon: \"mdi-whatsapp\",\r\n bgcolor: \"#acc9e8\",\r\n show_on_desktop: false\r\n }\r\n ],\r\n sharing: {\r\n url: \"https://pinkzebrahome.com/Order.asp?PartyID=\",\r\n title: \"Say hi to Pink Zebra Home!\",\r\n description: \"This week, I’d like to introduce you to shared link.\",\r\n quote: \"The hot reload is so fast it's near instant. - Eliht\",\r\n hashtags: \"Pink Zebra Home\",\r\n twitterUser: \"eliht\"\r\n },\r\n headers: [\r\n {\r\n text: \"Party ID\",\r\n align: \"start\",\r\n sortable: true,\r\n value: \"PartyID\",\r\n },\r\n /*\r\n {\r\n text: \"Party Name\",\r\n align: \"start\",\r\n sortable: true,\r\n value: \"PartyName\"\r\n },*/\r\n {\r\n text: \"Date\",\r\n value: \"PartyDate\",\r\n },\r\n {\r\n text: \"Orders\",\r\n value: \"orders\",\r\n },\r\n {\r\n text: \"Dollars\",\r\n value: \"dollars\",\r\n },\r\n {\r\n text: \"Status\",\r\n value: \"Description\",\r\n },\r\n {\r\n text: \"Share\",\r\n value: \"actions\",\r\n sortable: false,\r\n },\r\n ]\r\n});\r\n\r\nexport const party = {\r\n namespaced: true,\r\n actions,\r\n mutations,\r\n state,\r\n getters,\r\n};\r\n","import { getField, updateField } from \"vuex-map-fields\";\r\nimport pzfy, { UPDATE } from \"@/config\";\r\n\r\nconst actions = {\r\n clearNotificaton({ commit }) {\r\n commit(\"CLEAR_NOTIFICATION\");\r\n },\r\n updateNotification({ commit }, text) {\r\n const note = {\r\n notification_title: text,\r\n color: \"light-green\",\r\n icon: \"mdi-account-circle\",\r\n created_at: \"Just now\",\r\n };\r\n commit(\"UPDATE_NOTIFICATION\", note);\r\n },\r\n async list_notifications(context, data) {\r\n /**\r\n * List parties of specific customer...\r\n */\r\n // context.commit(\"alertInfo/alert/LOADING\", true, {root: true,});\r\n context.commit(\"setLoading\", true);\r\n return await pzfy\r\n .apiCall(data, async (response) => {\r\n await context.commit(\"UPDATE_NOTIFICATION\", response.notifications);\r\n context.commit(\"updNotificationData\");\r\n })\r\n .finally(() => {\r\n context.commit(\"setLoading\", false);\r\n });\r\n },\r\n async markAsRead(context, data) {\r\n /**\r\n * List parties of specific customer...\r\n */\r\n // context.commit(\"alertInfo/alert/LOADING\", true, {root: true,});\r\n context.commit(\"setLoading\", true);\r\n return await pzfy\r\n .apiCall(data, async (response) => {\r\n await context.commit(\"UPDATE_NOTIFICATION\", response.notifications);\r\n context.commit(\"updNotificationData\");\r\n })\r\n .finally(() => {\r\n context.commit(\"setLoading\", false);\r\n });\r\n },\r\n};\r\nconst getters = {\r\n getField,\r\n getShipState(state) {\r\n return getField(state.rows[0].ShipState);\r\n },\r\n getNotification: (state) => state.notificatons,\r\n getNotificationUnreadNumber: (state) =>\r\n state.notificatons.filter((notif) => notif.notification_read == false)\r\n .length,\r\n getItemPerPage: (state) => state.itemsPerPage,\r\n getTotalPages: (state) =>\r\n Math.ceil(state.notificatons.filter((notif) => notif.notification_read == false)\r\n .length / state.itemsPerPage),\r\n getSelectedNotification: (state) => state.selectedNotification,\r\n getNotificatonsToShow: (state) => state.notificatonsToShow,\r\n};\r\nconst mutations = {\r\n updateField,\r\n [UPDATE](state, value) {\r\n state.parties = value;\r\n },\r\n setLoading(state, value) {\r\n state.loading = value;\r\n },\r\n async UPDATE_NOTIFICATION(state, value) {\r\n state.notificatons = value.sort((a, b) => {\r\n return a.notification_read - b.notification_read;\r\n });\r\n },\r\n CLEAR_NOTIFICATION(state) {\r\n state.notificatons = [];\r\n },\r\n resetState(state) {\r\n state.notificatons = [];\r\n },\r\n updNotificationData(state, currentPage = 1) {\r\n /**\r\n * \r\n */\r\n const sortedNotifications = state.notificatons.sort((a, b) => {\r\n return a.notification_read - b.notification_read;\r\n });\r\n const start = (currentPage - 1) * state.itemsPerPage;\r\n const end = start + state.itemsPerPage;\r\n const notificatonsToShow = sortedNotifications.slice(start, end);\r\n let storedIds = JSON.parse(\r\n localStorage.getItem(\"globalNotification\") || \"[]\"\r\n );\r\n notificatonsToShow.forEach((obj) => {\r\n if (storedIds.includes(obj.ID)) {\r\n obj.notification_read = true;\r\n }\r\n }); \r\n state.notificatonsToShow = notificatonsToShow\r\n },\r\n updSelectedNotification(state, value) {\r\n state.selectedNotification = value;\r\n const customer_id = value?.customer_id;\r\n const notifId = value?.ID;\r\n if (customer_id === 0 && notifId) {\r\n const globalNotification = JSON.parse(\r\n localStorage.getItem(\"globalNotification\") || \"[]\"\r\n );\r\n if (!globalNotification.includes(notifId)) {\r\n globalNotification.push(notifId);\r\n localStorage.setItem(\r\n \"globalNotification\",\r\n JSON.stringify(globalNotification)\r\n );\r\n }\r\n }\r\n },\r\n setPage(state, value) {\r\n state.currentPage = value;\r\n },\r\n markLocalAsRead(state, value) {\r\n const notificatons = state.notificatons;\r\n let notif = notificatons.find((u) => u.ID === value.ID);\r\n if (notif) {\r\n notif.notification_read = true;\r\n }\r\n state.notificatons = notificatons;\r\n },\r\n};\r\n\r\nconst state = () => ({\r\n notificatons: [],\r\n notificatonsToShow: [],\r\n currentPage: 1,\r\n currentPages: 1111,\r\n totalPages: 0,\r\n itemsPerPage: 10,\r\n selectedNotification: {},\r\n});\r\n\r\nexport const notification = {\r\n namespaced: true,\r\n actions,\r\n mutations,\r\n state,\r\n getters,\r\n};\r\n","import {getField, updateField} from \"vuex-map-fields\";\r\nimport {Customer} from \"@/store/models/Customer\";\r\nimport pzfy from \"@/config\";\r\n\r\nconst actions = {\r\n async search_consultant(context, data) {\r\n context.commit(\"updLoadinSearch\", true);\r\n return await pzfy\r\n .apiCall(data, response => {\r\n context.commit(\"updRepList\", response.body);\r\n }).finally(() => {\r\n context.commit(\"updLoadinSearch\", false);\r\n\r\n });\r\n },\r\n async update_consultant(context, data) {\r\n context.commit(\"updLoadinSearch\", true);\r\n return await pzfy\r\n .apiCall(data, response => {\r\n const customer = JSON.parse(localStorage.getItem(\"user\"));\r\n localStorage.setItem(\"user\", JSON.stringify({...customer,rep:response.body[0]}))\r\n }).finally(() => {\r\n context.commit(\"updLoadinSearch\", false);\r\n\r\n });\r\n },\r\n async search_consultant_checkout(context, data) {\r\n context.commit(\"updLoadinSearch\", true);\r\n return await pzfy\r\n .apiCall(data, response => {\r\n const rep = data?.return_list ? response.body[0] : response.body\r\n context.commit(\"orderInfo/checkout/updOrderBuilder\", {\r\n 'ConsultantID': rep.RepID,\r\n 'selected_rep_name': rep.FirstName + ' ' + (data?.return_list ? rep.LastName : rep.Lastname)\r\n }, {root: true})\r\n }).finally(() => {\r\n context.commit(\"updLoadinSearch\", false);\r\n });\r\n },\r\n async set_rep(context, data) {\r\n context.commit(\"updLoadinSubmit\", true);\r\n return await pzfy\r\n .apiCall(data, response => {\r\n if (response.body.success) {\r\n const selected_rep = context.state.selected_rep;\r\n context.commit(\"orderInfo/myOrders/updCurrentOrderRep\", {\r\n RepFirstName: selected_rep.FirstName,\r\n RepLastName: selected_rep.LastName,\r\n repID: selected_rep.RepID\r\n }, {root: true});\r\n context.commit(\"clearRepList\", [])\r\n }\r\n context.commit(\"showDialog\", false);\r\n }).finally(() => {\r\n context.commit(\"updLoadinSubmit\", false);\r\n });\r\n },\r\n async set_customer_rep(context, data) {\r\n context.commit(\"updLoadinSubmit\", true);\r\n return await pzfy\r\n .apiCall(data, response => {\r\n if (response.body.success) {\r\n const selected_rep = context.state.selected_rep;\r\n context.commit(\"customerInfo/customer/updCustomer\", {\r\n BCKey: selected_rep.RepID,\r\n rep: {\r\n \"Email\": selected_rep.Email,\r\n \"FirstName\": selected_rep.FirstName,\r\n \"LastName\": selected_rep.LastName,\r\n \"Phone1\": selected_rep.Phone1\r\n }\r\n\r\n }, {root: true});\r\n context.commit(\"clearRepList\", [])\r\n }\r\n context.commit(\"showDialog\", false);\r\n }).finally(() => {\r\n context.commit(\"updLoadinSubmit\", false);\r\n });\r\n }\r\n\r\n};\r\nconst getters = {\r\n getField,\r\n};\r\nconst mutations = {\r\n updateField,\r\n updRepList(state, value) {\r\n state.reps = value;\r\n state.selected_rep = 0;\r\n },\r\n setLoading(state, value) {\r\n state.loading = value;\r\n },\r\n showDialog(state, value) {\r\n state.show_consultant_dialog = value;\r\n },\r\n updLoadinSearch(state, value) {\r\n state.loadingSearch = value;\r\n },\r\n updLoadinSubmit(state, value) {\r\n state.loadingSubmit = value;\r\n },\r\n updSelectedRep(state, value) {\r\n state.selected_rep = value;\r\n },\r\n clearRepList(state, value) {\r\n state.reps = value\r\n state.name_phone_email = \"\"\r\n //state.selected_rep = 0;\r\n },\r\n resetState(state) {\r\n state.success = false;\r\n state.customer_data = new Customer();\r\n state.coupons = [];\r\n state.loading = false;\r\n }\r\n};\r\n\r\nconst state = () => ({\r\n reps: [],\r\n loadingSearch: false,\r\n loadingSubmit: false,\r\n name_phone_email: \"\",//\"vanessa.tristan@pinkzebrahome.com\",\r\n selected_rep: 0,\r\n show_consultant_dialog: false,\r\n show_rep_list: false,\r\n caller: \"order_details\"\r\n});\r\n\r\nexport const consultant = {\r\n namespaced: true,\r\n actions,\r\n mutations,\r\n state,\r\n getters\r\n};\r\n","import {getField, updateField} from \"vuex-map-fields\";\r\nimport pzfy, {UPDATE} from \"@/config\";\r\n\r\nconst actions = {\r\n async get_subscriptions(context, data) {\r\n /**\r\n * List Subscriptions of specific customer...\r\n */\r\n // context.commit(\"alertInfo/alert/LOADING\", true, {root: true,});\r\n context.commit(\"setLoading\", true);\r\n return await pzfy.apiCall(data, (response) => {\r\n context.commit(\"UPDATE\", response.body);\r\n }).finally(() => {\r\n context.commit(\"setLoading\", false)\r\n })\r\n },\r\n};\r\nconst getters = {\r\n getField, getShipState(state) {\r\n return getField(state.rows[0].ShipState);\r\n },\r\n};\r\nconst mutations = {\r\n updateField, [UPDATE](state, value) {\r\n state.subscriptions = value;\r\n }, setLoading(state, value) {\r\n state.loading = value;\r\n }, resetState(state) {\r\n state.subscriptions = [];\r\n state.loading = false;\r\n }\r\n};\r\n\r\nconst state = () => ({\r\n subscriptions: [],\r\n loading: false,\r\n headers: [\r\n {text: \"Description\", sortable: true, value: \"Description\",},\r\n {text: \"Start Date\", sortable: true, value: \"StartDate\"},\r\n {text: \"End Date\", sortable: true, value: \"StopDate\",},\r\n {text: \"Frequency\", sortable: true, value: \"Frequency\",},\r\n {text: \"Day\", sortable: true, value: \"AutoshipFrequencyDay\",},\r\n {text: \"Price\", sortable: true, value: \"Price\",},\r\n ]\r\n});\r\n\r\nexport const subscriptions = {\r\n namespaced: true, actions, mutations, state, getters,\r\n};\r\n","import {createHelpers} from \"vuex-map-fields\";\r\n\r\n// We're using reusable form modules to store the data of our formss.\r\nimport {customer} from \"@/store/modules/customers/customer.js\";\r\nimport {createNamespacedHelpers} from \"vuex\";\r\nimport {party} from \"@/store/modules/customers/parties\";\r\nimport {notification} from \"@/store/modules/customers/notifications\";\r\nimport {consultant} from \"@/store/modules/customers/consultant\";\r\nimport {subscriptions} from \"@/store/modules/customers/subscriptions\";\r\n\r\nconst modules = {\r\n customer,\r\n party,\r\n notification,\r\n consultant,\r\n subscriptions\r\n};\r\n\r\n// We're exporting order field mapper functions for mapping form fields to Vuex.\r\n// See: https://github.com/maoberlehner/vuex-map-fields#custom-getters-and-mutations\r\n// START CUSTOMER\r\nexport const {mapFields: mapCustomerFields} = createHelpers({\r\n getterType: \"customerInfo/customer/getField\",\r\n mutationType: \"customerInfo/customer/updateField\",\r\n});\r\nexport const {\r\n mapGetters: mapCustomerGetters,\r\n mapActions: mapCustomerActions,\r\n mapState: mapCustomerState,\r\n mapMutations: mapCustomerMutations,\r\n} = createNamespacedHelpers(\"customerInfo/customer\");\r\n// END CUSTOMER\r\n\r\n// START PARTIES\r\nexport const { mapFields: mapPartyFields } = createHelpers({\r\n getterType: \"customerInfo/party/getField\",\r\n mutationType: \"customerInfo/party/updateField\"\r\n});\r\n\r\n// END PARTIES\r\n\r\n// START NOTIFICATIONS\r\n/*export const { mapFields: mapNotificationFields } = createHelpers({\r\n getterType: \"customerInfo/notification/getField\",\r\n mutationType: \"customerInfo/notification/updateField\"\r\n});*/\r\n\r\nexport const {\r\n mapActions: mapNotificationActions,\r\n mapState: mapNotificationState,\r\n mapMutations: mapNotificationMutations,\r\n mapGetters: mapNotificationGetters\r\n} = createNamespacedHelpers(\"customerInfo/notification\");\r\n// END CUSTOMER\r\n\r\n// START CONSULTANTS\r\nexport const {\r\n mapMutations: mapConsultantsMutations,\r\n mapActions: mapConsultantsActions,\r\n} = createNamespacedHelpers(\"customerInfo/consultant\");\r\nexport const { mapFields: mapConsultantFields } = createHelpers({\r\n getterType: \"customerInfo/consultant/getField\",\r\n mutationType: \"customerInfo/consultant/updateField\"\r\n});\r\n\r\nexport const {mapFields: mapSubscriptionsFields} = createHelpers({\r\n getterType: \"customerInfo/subscriptions/getField\",\r\n mutationType: \"customerInfo/subscriptions/updateField\"\r\n});\r\n\r\nexport const customerInfo = {\r\n namespaced: true,\r\n modules\r\n};\r\n","import axios from \"axios\";\r\n\r\nexport const utils = {\r\n currency_format: function (number, n = 2, x = 3, s = \".\", c = \".\") {\r\n var re = \"\\\\d(?=(\\\\d{\" + (x || 3) + \"})+\" + (n > 0 ? \"\\\\D\" : \"$\") + \")\",\r\n num = number.toFixed(Math.max(0, ~~n));\r\n return (c ? num.replace(\".\", c) : num).replace(\r\n new RegExp(re, \"g\"),\r\n \"$&\" + (s || \",\")\r\n );\r\n },\r\n addBusinessDays: function (d, n) {\r\n d = new Date(d.getTime());\r\n const day = d.getDay();\r\n d.setDate(\r\n d.getDate() +\r\n n +\r\n (day === 6 ? 2 : +!day) +\r\n Math.floor((n - 1 + (day % 6 || 1)) / 5) * 2\r\n );\r\n return d;\r\n },\r\n str_to_date: function (str) {\r\n const date = new Date(str);\r\n if (!isNaN(date)) {\r\n const mnth = (\"0\" + (date.getMonth() + 1)).slice(-2);\r\n const day = (\"0\" + date.getDate()).slice(-2);\r\n return [date.getFullYear(), mnth, day].join(\"-\");\r\n } else return;\r\n },\r\n camelCase: function (text) {\r\n text = text.replace(/[-_\\s.]+(.)?/g, (_, c) => (c ? c.toUpperCase() : \"\"));\r\n return text.substr(0, 1).toLowerCase() + text.substr(1);\r\n },\r\n upperFirst: function (string) {\r\n return string[0].toUpperCase() + string.substring(1);\r\n },\r\n rangeYear: (start, stop, step) =>\r\n Array.from(\r\n {length: (stop - start) / step + 1},\r\n (_, i) => start + i * step\r\n ),\r\n generateUUIDHex: function () {\r\n let d = new Date().getTime(); //Timestamp\r\n let d2 =\r\n (typeof performance !== \"undefined\" &&\r\n performance.now &&\r\n performance.now() * 1000) ||\r\n 0; //Time in microseconds since page-load or 0 if unsupported\r\n return \"xxxxxx2xxxxxx4xxxyxxxxx3xxxxxx8xxxxxxx7xxxxxxxx\".replace(\r\n /[xy]/g,\r\n function (c) {\r\n let r = Math.random() * 16; //random number between 0 and 16\r\n if (d > 0) {\r\n //Use timestamp until depleted\r\n r = (d + r) % 16 | 0;\r\n d = Math.floor(d / 16);\r\n } else {\r\n //Use microseconds since page-load if supported\r\n r = (d2 + r) % 16 | 0;\r\n d2 = Math.floor(d2 / 16);\r\n }\r\n return (c === \"x\" ? r : (r & 0x3) | 0x8).toString(16);\r\n }\r\n );\r\n },\r\n isValidCreditCardNumber: (cardNumber) => {\r\n return cardNumber;\r\n /*\r\n // Remove spaces and dashes from the card number\r\n cardNumber = cardNumber.replace(/[\\s-]/g, \"\");\r\n\r\n // Check if the card number contains only digits\r\n if (!/^\\d+$/.test(cardNumber)) {\r\n return false;\r\n }\r\n\r\n // Convert the card number into an array of digits\r\n const digits = cardNumber.split(\"\").map(Number);\r\n\r\n // Reverse the array of digits\r\n const reversedDigits = digits.slice().reverse();\r\n\r\n // Aplicar el algoritmo de Luhn para verificar la validez\r\n let sum = 0;\r\n for (let i = 0; i < reversedDigits.length; i++) {\r\n let digit = reversedDigits[i];\r\n if (i % 2 === 1) {\r\n digit *= 2;\r\n if (digit > 9) {\r\n digit -= 9;\r\n }\r\n }\r\n sum += digit;\r\n }\r\n\r\n return sum % 10 === 0;\r\n */\r\n },\r\n maskCreditCardNumber: (cardNumber) => {\r\n // Remove spaces and dashes from the credit card number\r\n cardNumber = cardNumber.replace(/[\\s-]/g, \"\");\r\n\r\n // Check if the credit card number contains only digits\r\n if (/^\\d+$/.test(cardNumber)) {\r\n return true;\r\n }\r\n\r\n // Check if the credit card number already has a mask\r\n if (cardNumber.startsWith(\"*\")) {\r\n // Check if the mask ends with 4 digits\r\n if (cardNumber.slice(-4).match(/^\\d{4}$/)) {\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n return \"Invalid Number\";\r\n },\r\n isValidDateFormat: (input) => {\r\n // Regular expression to match month/year format\r\n const regex = /^(0[1-9]|1[0-2])\\/(20\\d{2})$/;\r\n\r\n if (!regex.test(input)) {\r\n return false;\r\n }\r\n\r\n const currentDate = new Date();\r\n const currentYear = currentDate.getFullYear();\r\n const currentMonth = currentDate.getMonth() + 1; // Note: getMonth() returns month index (0 for January, 1 for February, etc.)\r\n\r\n const [inputMonth, inputYear] = input.split(\"/\").map(Number);\r\n\r\n if (inputYear < currentYear) {\r\n return false;\r\n }\r\n\r\n if (inputYear === currentYear && inputMonth < currentMonth) {\r\n return false;\r\n }\r\n\r\n return true;\r\n },\r\n validateAndCorrectDate: (dateStr) => {\r\n // Remove any character that is not a digit.\r\n let cleanedStr = dateStr.replace(/[^\\d]/g, '');\r\n\r\n // Assuming MMYYYY format for dates without a separator.\r\n if (cleanedStr.length === 6) {\r\n let month = cleanedStr.substring(0, 2);\r\n let year = cleanedStr.substring(2, 6);\r\n return `${month}/${year}`;\r\n }\r\n\r\n // Split the string into parts.\r\n let splitDate = cleanedStr.split(/[-/ ]/).filter(part => part);\r\n\r\n // Check for correct split parts.\r\n if (splitDate.length >= 2) {\r\n let [month, year] = splitDate;\r\n\r\n month = month.trim();\r\n year = year.trim();\r\n\r\n // If it's already in the correct format.\r\n if (month.length === 2 && year.length === 4 && !isNaN(month) && !isNaN(year)) {\r\n return true;\r\n }\r\n\r\n // Adjust the year if it's only 2 digits long.\r\n if (year.length === 2) {\r\n year = \"20\" + year;\r\n }\r\n\r\n // Validate month and year.\r\n if (!isNaN(month) && !isNaN(year)) {\r\n if (month >= 1 && month <= 12 && year.length === 4) {\r\n return `${month.padStart(2, '0')}/${year}`;\r\n }\r\n }\r\n }\r\n // Return an empty string if the date can't be fixed.\r\n return \"\";\r\n }, processingOrderInfo: () => {\r\n const currentTime = new Date();\r\n let transaction_id = null\r\n try {\r\n const processing_order = JSON.parse(localStorage.getItem('processing_order'));\r\n transaction_id = processing_order?.transaction_id\r\n\r\n // canSend is true if there is no information in localStorage remainingTime eq 0\r\n if (!processing_order || processing_order.canSend) {\r\n return {\r\n canSend: true,\r\n remainingTime: 0,\r\n transaction_id: transaction_id,\r\n created_at: processing_order.created_at\r\n };\r\n }\r\n\r\n // Time since last order\r\n const orderTime = new Date(processing_order.created_at);\r\n\r\n const timeDifference = currentTime - orderTime;\r\n const TIME_IN_MS = 70 * 1000; // 70 seconds\r\n // If we have exceeded the waiting time\r\n if (timeDifference >= TIME_IN_MS) {\r\n return {\r\n canSend: true,\r\n remainingTime: 0,\r\n transaction_id: transaction_id,\r\n created_at: processing_order.created_at\r\n };\r\n }\r\n\r\n // update remaining time if we are still in the waiting period\r\n const remainingTime = TIME_IN_MS - timeDifference;\r\n return {\r\n canSend: false,\r\n remainingTime: remainingTime,\r\n transaction_id: transaction_id,\r\n created_at: processing_order.created_at,\r\n };\r\n } catch (e) {\r\n console.error(e);\r\n return {\r\n canSend: true,\r\n remainingTime: 0,\r\n transaction_id: transaction_id,\r\n created_at: new Date(currentTime.getTime() - 5 * 60 * 1000),\r\n };\r\n }\r\n },\r\n isValidUUID: (uuid) => {\r\n const regex = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/;\r\n return regex.test(uuid);\r\n },\r\n\r\n generateUUID: () => {\r\n let customerID = null;\r\n /*\r\n try {\r\n const customer = JSON.parse(localStorage.getItem('user'));\r\n customerID = customer?.CustomerID;\r\n } catch (e) {\r\n console.error(`generateUUID Error: ${e}`);\r\n }*/\r\n const uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\r\n const r = (Math.random() * 16) | 0;\r\n const v = c === 'x' ? r : (r & 0x3) | 0x8;\r\n return v.toString(16);\r\n });\r\n\r\n return customerID ? `${uuid}:${customerID}` : uuid;\r\n },\r\n isRequestOngoing: (url) => {\r\n let ongoing = false;\r\n\r\n axios.interceptors.request.use(function (config) {\r\n if (config.url.includes(url)) {\r\n ongoing = true;\r\n }\r\n return config;\r\n });\r\n\r\n return ongoing;\r\n }\r\n};\r\n"],"sourceRoot":""}