{"version":3,"sources":["webpack:///./src/views/Edit.vue","webpack:///./src/views/Edit.vue?0f8c","webpack:///./src/views/Edit.vue?3d8a","webpack:///./src/views/ShippingDestination.vue","webpack:///./src/components/AddressBookNarrowDown.vue","webpack:///./src/components/AddressBookNarrowDown.vue?85e8","webpack:///./src/components/AddressBookNarrowDown.vue?d02d","webpack:///./src/views/ShippingDestination.vue?6fc7","webpack:///./src/views/ShippingDestination.vue?70ce","webpack:///./src/views/PackageInfo.vue","webpack:///./src/utils/validator.ts","webpack:///./node_modules/date-fns/esm/_lib/assign/index.js","webpack:///./node_modules/date-fns/esm/_lib/setUTCDay/index.js","webpack:///./node_modules/date-fns/esm/_lib/setUTCISODay/index.js","webpack:///./node_modules/date-fns/esm/_lib/setUTCISOWeek/index.js","webpack:///./node_modules/date-fns/esm/_lib/setUTCWeek/index.js","webpack:///./node_modules/date-fns/esm/parse/_lib/parsers/index.js","webpack:///./node_modules/date-fns/esm/parse/index.js","webpack:///./node_modules/smartbarcode-web-core/src/bo/externalId.ts","webpack:///./src/views/PackageInfo.vue?9f9f","webpack:///./src/views/PackageInfo.vue?6030","webpack:///./src/components/InputSelectCountry.vue?4ea5","webpack:///./node_modules/lodash/_baseSlice.js","webpack:///./node_modules/lodash/omit.js","webpack:///./node_modules/lodash/last.js","webpack:///./src/views/ShippingSource.vue","webpack:///./src/views/ShippingSource.vue?4f67","webpack:///./src/views/ShippingSource.vue?ecee","webpack:///./node_modules/lodash/_baseUnset.js","webpack:///./node_modules/core-js/modules/es.regexp.constructor.js","webpack:///./node_modules/lodash/flatten.js","webpack:///./src/views/ActivateTrackpoint.vue","webpack:///./src/views/ActivateTrackpoint.vue?a875","webpack:///./src/views/ActivateTrackpoint.vue?ee74","webpack:///./src/views/ActivateTrackpoint.vue?5a09","webpack:///./node_modules/lodash/isPlainObject.js","webpack:///./src/components/ShippingInfo.vue","webpack:///./src/components/InputSelectCountry.vue","webpack:///./src/components/InputSelectCountry.vue?c56d","webpack:///./src/components/InputSelectCountry.vue?da61","webpack:///./src/components/ShippingInfo.vue?6614","webpack:///./src/components/ShippingInfo.vue?f6d2","webpack:///./src/views/PackageInfo.vue?f931","webpack:///./node_modules/lodash/_parent.js","webpack:///./node_modules/core-js/internals/proxy-accessor.js","webpack:///./src/views/Edit.vue?3b51","webpack:///./src/views/Activate.vue","webpack:///./src/views/Activate.vue?8cc0","webpack:///./src/views/Activate.vue?cf0e","webpack:///./src/views/ShippingDestination.vue?cfde","webpack:///./src/views/Activate.vue?1cc0","webpack:///./node_modules/lodash/_flatRest.js","webpack:///./node_modules/core-js/modules/es.array.find-index.js","webpack:///./src/views/ActivateType.vue?8e26","webpack:///./src/components/ShippingInfo.vue?5558","webpack:///./src/views/ActivateType.vue","webpack:///./src/views/ActivateType.vue?1a89","webpack:///./src/views/ActivateType.vue?adae","webpack:///./node_modules/lodash/_customOmitClone.js"],"names":["class","barcode","label","id","type","barcodeType","showStepper","steps","item","index","isActiveStep","key","$t","toSnakeCase","editView","currentView","originAddress","origin","destinationAddress","destination","trackingNumber","externalId","productId","dimension","update","skipToNextStep","isShowArrow","currentEntryView","currentEntryRequest","isAllowToLeave","ShippingSource","ShippingDestination","packageInfo","PackageInfo","this","to","from","next","ORIGIN","includes","name","toString","DESTINATION","originAvailable","PACKAGE_INFO","activationData","view","activationRequestData","requestObj","barcodeId","$router","replace","params","project","$store","getters","projectParam","filteredObj","errorHandler","destinationAvailable","isDimensionAvailable","$route","barcodeTypeInfo","activationFields","isAvailable","state","details","barcodeTypes","String","components","BarcodeLabel","methods","render","__scopeId","for","inputModes","selectedMode","disabled","shouldDisableMode","isAddressHistoryMode","selectedAddressIndex","onAddressBookCbChange","addressOptions","companyName","value","address1","isAddressBookMode","address","selectedDestinationAddress","addresses","onSelectAddressCompleted","hasNextStep","isMandatory","onSubmitForm","$event","selectedPrefecture","placeholder","distinctPrefecture","selectedAddress","distinctAddress","selectedCompanyName","onSelectCompleted","companyNames","$emit","prefecture","Set","map","addr","filter","Object","Component","Prop","emits","undefined","step","newVal","data","trackedStep","commit","profile","addressHistory","addressBook","profileAddressHistory","profileAddressBook","ShippingInfo","AddressBookNarrowDown","IconArrow","isTrackingNumberAvailable","fieldName","barcodeReaderType","isTrackingNumberBarcodeReaderAvailable","ocrReaderType","isTrackingNumberOcrAvailable","model","error","errorTrackingNumber","trackingNumberName","minLength","trackingNumberMinLength","maxLength","trackingNumberMaxLength","trackingNumber_","isExternalIdAvailable","isExternalIdBarcodeReaderAvailable","isExternalIdOcrAvailable","errorExternalId","externalIdMinLength","externalIdMaxLength","externalId_","onExternalIdChanged","isShownFloatingActionButton","isFABButtonAvailable","formSchema","selectedFormSchema","formModel","isHideSubmitButton","ref","reviewCalculation","onFormSubmit","products","length","selectedProductIndex","onSelectProduct","code","model-value","dimensionFormSchema","dimension_","skipValidation","shouldSkipValidateDemension","justify","isShow","isShowCalculationDialog","content","calculationContent","loading","rules","field","trans","i18n","global","t","stringVal","allowNullOrEmpty","trim","validationType","none","digitOnly","test","digitDashOnly","digitUnderscoreOnly","letterOnly","letterDashOnly","letterUnderscoreOnly","letterDigitOnly","letterDigitDashOnly","letterDigitUnderscoreOnly","len","target","dirtyObject","TypeError","property","hasOwnProperty","setUTCDay","dirtyDate","dirtyDay","dirtyOptions","requiredArgs","arguments","options","locale","localeWeekStartsOn","weekStartsOn","defaultWeekStartsOn","toInteger","RangeError","date","toDate","day","currentDay","getUTCDay","remainder","dayIndex","diff","setUTCDate","getUTCDate","setUTCISODay","setUTCISOWeek","dirtyISOWeek","isoWeek","getUTCISOWeek","setUTCWeek","dirtyWeek","week","getUTCWeek","MILLISECONDS_IN_HOUR","MILLISECONDS_IN_MINUTE","MILLISECONDS_IN_SECOND","numericPatterns","month","dayOfYear","hour23h","hour24h","hour11h","hour12h","minute","second","singleDigit","twoDigits","threeDigits","fourDigits","anyDigitsSigned","singleDigitSigned","twoDigitsSigned","threeDigitsSigned","fourDigitsSigned","timezonePatterns","basicOptionalMinutes","basic","basicOptionalSeconds","extended","extendedOptionalSeconds","parseNumericPattern","pattern","string","valueCallback","matchResult","match","parseInt","rest","slice","parseTimezonePattern","sign","hours","minutes","seconds","parseAnyDigitsSigned","parseNDigits","n","RegExp","parseNDigitsSigned","dayPeriodEnumToHours","enumValue","normalizeTwoDigitYear","twoDigitYear","currentYear","result","isCommonEra","absCurrentYear","rangeEnd","rangeEndCentury","Math","floor","isPreviousCentury","DAYS_IN_MONTH","DAYS_IN_MONTH_LEAP_YEAR","isLeapYearIndex","year","parsers","G","priority","parse","token","_options","era","width","set","flags","setUTCFullYear","setUTCHours","incompatibleTokens","y","isTwoDigitYear","ordinalNumber","unit","validate","_date","getUTCFullYear","normalizedTwoDigitYear","Y","getUTCWeekYear","firstWeekContainsDate","startOfUTCWeek","R","_match","_flags","firstWeekOfYear","Date","startOfUTCISOWeek","u","Q","quarter","context","setUTCMonth","q","M","L","w","I","d","subPriority","isLeapYear","getUTCMonth","D","E","e","wholeWeekDays","c","i","a","dayPeriod","b","B","h","isPM","getUTCHours","H","K","k","m","setUTCMinutes","s","setUTCSeconds","S","pow","setUTCMilliseconds","X","timestampIsSet","getTime","x","_token","T","TIMEZONE_UNIT_PRIORITY","formattingTokensRegExp","longFormattingTokensRegExp","escapedStringRegExp","doubleQuoteRegExp","notWhitespaceRegExp","unescapedLatinCharacterRegExp","dirtyDateString","dirtyFormatString","dirtyReferenceDate","dateString","formatString","localeFirstWeekContainsDate","defaultFirstWeekContainsDate","NaN","subFnOptions","setters","dateToSystemTimezone","tokens","substring","firstCharacter","longFormatter","longFormatters","formatLong","join","usedTokens","useAdditionalWeekYearTokens","useAdditionalDayOfYearTokens","parser","Array","isArray","incompatibleToken","_i","usedToken","indexOf","concat","fullToken","push","parseResult","cleanEscapedString","uniquePrioritySetters","setter","sort","array","setterArray","isNaN","utcDate","subMilliseconds","getTimezoneOffsetInMilliseconds","convertedDate","setFullYear","setHours","getUTCMinutes","getUTCSeconds","getUTCMilliseconds","input","parseExternalId","parsableFields","parserSettings","toArray","modelValue","selectionLabel2key","selectionLabels","entries","selections","find","selection","parseStr","setting","parserType","REGEX","parsedResults","regexRule","LENGTH","startPosition","endPosition","DELIMITER","split","delimiter","isSelectField","SINGLE_SELECT","MULTI_SELECT","parsedFields","forEach","fieldPath","targetFieldPath","f","currentBarcodeType","customFieldsModel","imagesFromOCR","temporaryFieldsOCRImages","defaultDimension","height","depth","weight","selectedTarget","productId_","targetRefButton","calculationFieldKey","appendOCRImage","reviewPayload","customFieldKey","customFields","generateCustomDataForRequest","parseExternalIdIfExist","paths","TEXT","NUMBER","v","fieldType","parseCustomFields","customField","DATE","parsedDate","formats","inputFormat","isValid","Error","formattedDate","format","isDimensionMandatory","clearError","validateTrackingNumber","validateExternalId","barcodeDimension","product","disableDimensionInput","isValidTrackingNumber","isValidExternalId","isValidCustomFields","validateCustomFields","$refs","customFieldsForm","performUpload","validateRules","externalIdValidationRule","isExternalIdMandatory","trackingNumberValidationRule","isTrackingNumberMandatory","handleError","customForm","mask","inputType","isShowControlButton","productDimension","findIndex","isClient","generateCustomFormModel","trackingNumberDefault","handleGetExternalId","cloneScannedExternalId","dispatch","keys","mitt","on","event","assign","saveOCRImage","button","observer","unobserve","disconnect","scannedExternalId","isFloatingActionButton","default","flattenActivateData","reduce","acc","cur","userType","CLIENT","validateAll","ocrImageAutoSaveField","CustomFieldsMixin","BaseInput","FormBuilder","ReviewCalculationDialog","baseSlice","start","end","module","exports","arrayMap","baseClone","baseUnset","castPath","copyObject","customOmitClone","flatRest","getAllKeysIn","CLONE_DEEP_FLAG","CLONE_FLAT_FLAG","CLONE_SYMBOLS_FLAG","omit","object","isDeep","path","last","isEditMode","store","user","organization","parent","toKey","DESCRIPTORS","uncurryThis","isForced","inheritIfRequired","createNonEnumerableProperty","create","getOwnPropertyNames","isPrototypeOf","isRegExp","getRegExpFlags","stickyHelpers","proxyAccessor","defineBuiltIn","fails","hasOwn","enforceInternalState","enforce","setSpecies","wellKnownSymbol","UNSUPPORTED_DOT_ALL","UNSUPPORTED_NCG","MATCH","NativeRegExp","RegExpPrototype","prototype","SyntaxError","exec","charAt","stringIndexOf","stringSlice","IS_NCG","re1","re2","CORRECT_NEW","MISSED_STICKY","UNSUPPORTED_Y","BASE_FORCED","handleDotAll","chr","brackets","handleNCG","named","names","ncg","groupid","groupname","RegExpWrapper","rawFlags","dotAll","sticky","handled","thisIsRegExp","patternIsRegExp","flagsAreUndefined","groups","rawPattern","constructor","source","raw","baseFlatten","flatten","trackPoints","tp","isActive","overridableStartTrackingPoints","onSelectTrackpoint","trackpointData","isEnd","order","Number","overridableStartTrackPoints","baseGetTag","getPrototype","isObjectLike","objectTag","funcProto","Function","objectProto","funcToString","objectCtorString","call","isPlainObject","proto","Ctor","shouldSkipValidate","onSubmit","countryOptions","group","getOptionLabels","o","countryKey","countriesList","list","frequentlyUsed","splice","currentSelectedBarcodeType","getBarcodeTypeInfoByType","countries","BarcodeTypesMixin","selectedCountry","formData","isRemoveCountry","isCountryInputDisabled","country","phoneMask","zipCodeMask","phoneNumber","replaceAll","postalCode","component","address2","InputPhoneNumber","PHONE_NUMBER","isSuggestion","setDefaultSelectedCountry","formRemask","newAddress","defaultAddress","isClientUser","getCountriestList","Boolean","baseGet","defineProperty","Target","Source","configurable","get","it","currentTab","trackpoint","onChangeType","onChangeTrackpoint","onChangeSource","onChangeDestination","onChangeDimension","onGotoStep","gotoStep","requestSchema","startTrackPointKeyOverride","requestBody","activate","overRest","setToString","func","$","$findIndex","addToUnscopables","FIND_INDEX","SKIPS_HOLES","forced","callbackfn","availableBarcodeTypes","nodeType","style","barcodeButtonStyles","onSelectType","barcodeButtonTextStyles","barcodeIconComponents","icon","barcodeIconStyles","IconGroupOfCode","IconMiniCode","IconQRcode"],"mappings":"wOACOA,MAAM,kB,SAEJA,MAAM,W,oHAFqB,EAAAC,S,yBAAlC,yBAqBM,MArBN,EAqBM,CApBJ,yBAAgE,GAAjDC,MAAO,EAAAD,QAAQE,GAAKC,KAAM,EAAAH,QAAQI,a,yBACtB,EA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CAD3B,yBAeY,GAbTvtB,MAAO,mBACDG,GAAE,cAAkBotB,EAC1B5sB,IAAKmD,EAAgBtB,KACrBgrB,MAAO,EAAAC,oBAAoB3pB,GAC3B,QAAK,mBAAE,EAAA4pB,aAAatpB,OAAOmpB,M,YAE5B,iBAMM,CANN,yBAMM,OANDvtB,MAAM,gBAAiBwtB,MAAO,EAAAG,wBAAwB7pB,I,2BACzD,yBAA2G,qCAA3F,EAAA8pB,sBAAsB9pB,EAAgB+pB,OAAI,CAAIL,MAAO,EAAAM,kBAAkBhqB,I,mBAEvF,yBAEM,MAFN,EAEM,6BADDA,EAAgBtB,MAAI,I,2MCEd,EAArB,yG,0BACE,EAAA0E,KAAO,EADT,2DAIIhF,KAAKoB,OAAOgE,OAAO,OAAuBpF,KAAKgF,QAJnD,mCAQe9G,GACX,MAAO,CACLgH,KAAMhH,EACN8G,KAAMhF,KAAKgF,KAAO,OAXxB,GAA0C,eAAO+iB,EAAA,OAQ/C,gBADC,eAAK,uB,2BAML,MAbkB,EAAY,gBAThC,eAAQ,CACP5lB,WAAY,CACV0pB,kBAAA,KACAC,eAAA,KACAC,aAAA,MAEFjnB,MAAO,CAAC,sBACRxE,KAAM,kBAEa,W,UCdrB,EAAOgC,OAASA,EAChB,EAAOC,UAAY,kBAEJ,gB,qBCRf,IAAIukB,EAAgB,EAAQ,QAW5B,SAASlG,EAAgB1d,GACvB,OAAO4jB,EAAc5jB,QAAS6B,EAAY7B,EAG5Cmd,EAAOC,QAAUM,G","file":"js/activate.32615397.js","sourcesContent":["\n\n\n","\nimport BarcodeLabel from '@/components/BarcodeLabel.vue'\nimport { updateBarcode } from '@/utils/api'\nimport { ENTRY_VIEW, FORCE_EXIT_ROUTE } from '@/utils/constants'\nimport errorHandler from '@/utils/errorHandler'\nimport { addEmptyActivationData, filterEmptyActivateData, toSnakeCase } from '@/utils/helpers'\nimport { IActivationData, IAddress, IBarcodeDefinitionType, IDimension, TError } from 'smartbarcode-web-core/src/utils/types/index'\nimport PackageInfo from '@/views/PackageInfo.vue'\nimport ShippingDestination from '@/views/ShippingDestination.vue'\nimport ShippingSource from '@/views/ShippingSource.vue'\nimport { Options, Vue } from 'vue-class-component'\nimport { Prop, ProvideReactive } from 'vue-property-decorator'\nimport { NavigationGuardNext, RouteLocationNormalized } from 'vue-router'\n\n@Options({\n components: {\n BarcodeLabel,\n },\n methods: { toSnakeCase },\n name: 'EditView',\n})\nexport default class EditView extends Vue {\n @Prop({ type: String }) readonly view!: string\n @ProvideReactive() isShowArrow = false\n currentEntryView = ''\n currentEntryRequest = {}\n isAllowToLeave = false\n showStepper = false\n steps = ['origin', 'destination', 'packageInfo']\n\n editView = {\n origin: ShippingSource,\n destination: ShippingDestination,\n packageInfo: PackageInfo,\n }\n\n isActiveStep(item: string) {\n return item === this.currentView\n }\n\n get isDimensionAvailable() {\n return (\n this.barcodeTypeInfo?.activationFields?.origin?.isAvailable ||\n this.barcodeTypeInfo?.activationFields?.destination?.isAvailable ||\n this.barcodeTypeInfo?.activationFields?.dimension?.isAvailable ||\n this.barcodeTypeInfo?.activationFields?.externalId?.isAvailable ||\n this.barcodeTypeInfo?.activationFields?.trackingNumber?.isAvailable\n )\n }\n\n get project() {\n return this.$store.state.project.details\n }\n\n get barcodeTypeInfo(): IBarcodeDefinitionType {\n return this.project?.barcodeTypes[this.barcode?.barcodeType] || {}\n }\n\n get destinationAvailable() {\n return this.barcodeTypeInfo?.activationFields?.destination?.isAvailable\n }\n\n get originAvailable() {\n return this.barcodeTypeInfo?.activationFields?.origin?.isAvailable\n }\n\n get currentView() {\n if (this.view) {\n return this.view\n } else {\n return this.currentEntryView\n }\n }\n\n get barcode() {\n return this.$store.state.barcode.barcode\n }\n\n get origin(): IAddress {\n return this.$store.getters.origin\n }\n\n get destination(): IAddress {\n return this.$store.getters.destination\n }\n\n get dimension(): IDimension {\n return this.$store.getters.dimension\n }\n\n get trackingNumber() {\n return this.$store.getters.trackingNumber\n }\n\n get externalId() {\n return this.$store.getters.externalId\n }\n\n get productId() {\n return this.barcode?.activationData?.productId\n }\n\n get activationData() {\n return {\n origin: this.origin,\n destination: this.destination,\n trackingNumber: this.trackingNumber,\n externalId: this.externalId,\n dimension: this.dimension,\n productId: this.productId,\n }\n }\n\n // Prevent backing while enter entry flow\n beforeRouteLeave(to: RouteLocationNormalized, from: RouteLocationNormalized, next: NavigationGuardNext) {\n if (\n this.currentEntryView === ENTRY_VIEW.ORIGIN ||\n this.isAllowToLeave ||\n FORCE_EXIT_ROUTE.includes(to.name?.toString() || '')\n ) {\n next(true)\n return\n }\n switch (this.currentEntryView) {\n case ENTRY_VIEW.ORIGIN:\n this.isShowArrow = true\n break\n case ENTRY_VIEW.DESTINATION:\n if (!this.originAvailable) {\n next(true)\n }\n this.currentEntryView = ENTRY_VIEW.ORIGIN\n this.isShowArrow = true\n next(false)\n break\n case ENTRY_VIEW.PACKAGE_INFO:\n this.currentEntryView = ENTRY_VIEW.DESTINATION\n this.isShowArrow = true\n next(false)\n break\n default:\n next(false)\n break\n }\n }\n\n // Skip to next flow automatically\n skipToNextStep() {\n switch (this.currentEntryView) {\n case ENTRY_VIEW.ORIGIN:\n this.currentEntryView = ENTRY_VIEW.DESTINATION\n break\n case ENTRY_VIEW.DESTINATION:\n this.currentEntryView = ENTRY_VIEW.PACKAGE_INFO\n break\n case ENTRY_VIEW.PACKAGE_INFO:\n break\n default:\n break\n }\n }\n\n async update(activationData: IActivationData) {\n try {\n // When passing specific view\n if (this.view) {\n const activationRequestData = {\n ...this.activationData,\n ...activationData,\n }\n const requestObj = addEmptyActivationData(activationRequestData, this.barcode?.activationData)\n // ---------------------\n await updateBarcode({\n barcodeId: this.barcode.id,\n activationData: requestObj as IActivationData,\n })\n this.$router.replace({\n name: 'detail',\n params: {\n project: this.$store.getters.projectParam,\n barcodeId: this.barcode.id,\n },\n })\n } else {\n // Otherwise we use entry flow logic to next step\n this.currentEntryRequest = {\n ...this.currentEntryRequest,\n ...activationData,\n }\n if (activationData.origin) {\n this.currentEntryView = ENTRY_VIEW.DESTINATION\n return\n }\n if (activationData.destination) {\n this.isShowArrow = false\n this.currentEntryView = ENTRY_VIEW.PACKAGE_INFO\n return\n }\n const filteredObj = filterEmptyActivateData(this.currentEntryRequest)\n await updateBarcode({\n barcodeId: this.barcode.id,\n activationData: filteredObj as IActivationData,\n })\n this.isAllowToLeave = true\n this.$router.replace({\n name: 'detail',\n params: {\n project: this.$store.getters.projectParam,\n barcodeId: this.barcode.id,\n },\n })\n }\n } catch (error) {\n errorHandler(error as TError)\n }\n }\n\n mounted() {\n // When passing specific view\n if (this.view) {\n this.isShowArrow = false\n this.isAllowToLeave = true\n } else {\n // Otherwise we use entry flow logic to next step\n this.isShowArrow = true\n this.showStepper = true\n if (this.originAvailable) {\n this.currentEntryView = ENTRY_VIEW.ORIGIN\n } else if (this.destinationAvailable) {\n this.currentEntryView = ENTRY_VIEW.DESTINATION\n } else if (this.isDimensionAvailable) {\n this.currentEntryView = ENTRY_VIEW.PACKAGE_INFO\n this.isAllowToLeave = true\n } else {\n this.isAllowToLeave = true\n this.$router.replace({\n name: 'detail',\n params: { barcodeId: this.$route.params.id },\n })\n }\n }\n if (!this.currentView && this.$route.params.id) {\n this.$router.replace({\n name: 'detail',\n params: { barcodeId: this.$route.params.id },\n })\n }\n }\n}\n","import { render } from \"./Edit.vue?vue&type=template&id=e5955566&scoped=true\"\nimport script from \"./Edit.vue?vue&type=script&lang=ts\"\nexport * from \"./Edit.vue?vue&type=script&lang=ts\"\n\nimport \"./Edit.vue?vue&type=style&index=0&id=e5955566&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-e5955566\"\n\nexport default script","\n\n\n\n\n","\n\n","\nimport Component, { Vue, Options } from 'vue-class-component'\nimport { Prop, Watch } from 'vue-property-decorator'\nimport { IAddress } from 'smartbarcode-web-core/src/utils/types/index'\n@Options({\n components: {\n Component,\n Prop,\n },\n name: 'AddressBookNarrowDown',\n emits: ['update:onSelectAddressCompleted'],\n})\nexport default class AddressBookNarrowDown extends Vue {\n @Prop({ type: Object }) readonly addresses!: Array\n @Prop({ type: Object }) readonly address!: IAddress\n selectedPrefecture = ''\n selectedAddress = ''\n selectedCompanyName = ''\n get distinctPrefecture(): Array {\n return [...new Set(this.addresses.map((addr) => addr.prefecture))]\n }\n\n get distinctAddress(): Array {\n return [\n ...new Set(\n this.addresses.filter((addr) => this.selectedPrefecture === addr.prefecture).map((addr) => addr.address1)\n ),\n ]\n }\n\n get companyNames(): Array {\n return [\n ...new Set(\n this.addresses.filter(\n (addr) => this.selectedPrefecture === addr.prefecture && this.selectedAddress === addr.address1\n )\n ),\n ]\n }\n\n @Watch('selectedPrefecture')\n onSelectedPrefectureChanged() {\n this.selectedAddress = ''\n this.selectedCompanyName = ''\n }\n\n @Watch('selectedAddress')\n onSelectedAddressChanged() {\n this.selectedCompanyName = ''\n }\n\n onSelectCompleted(index: number): void {\n this.$emit('update:onSelectAddressCompleted', {\n ...this.companyNames[index],\n prefecture: this.selectedPrefecture,\n address1: this.selectedAddress,\n })\n }\n}\n","import { render } from \"./AddressBookNarrowDown.vue?vue&type=template&id=13486155\"\nimport script from \"./AddressBookNarrowDown.vue?vue&type=script&lang=ts\"\nexport * from \"./AddressBookNarrowDown.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","\nimport { Vue, Options } from 'vue-class-component'\nimport { Emit, Prop } from 'vue-property-decorator'\nimport AddressBookNarrowDown from '@/components/AddressBookNarrowDown.vue'\nimport ShippingInfo from '@/components/ShippingInfo.vue'\nimport IconArrow from '@/components/svg/IconArrow.vue'\nimport { IAddress, IBarcodeDefinitionType, IBarcodeFormMultiDataTab, IProject } from 'smartbarcode-web-core/src/utils/types/index'\nimport { DEFAULT_ADDRESS } from '@/utils/constants'\nimport { SET_BARCODE_FORM_STEP } from '@/store/actions'\n\n@Options({\n components: {\n ShippingInfo,\n AddressBookNarrowDown,\n IconArrow,\n },\n emits: ['update:destination', 'update:onGotoStep'],\n name: 'ShippingDestination',\n})\nexport default class ShippingDestination extends Vue {\n @Prop({ type: String }) readonly barcodeType = ''\n @Prop({ type: Object }) readonly destinationAddress?: IAddress | undefined = undefined\n\n // New address mode\n selectedMode = 0\n inputModes: string[] = []\n step = 3\n selectedAddressIndex = ''\n selectedDestinationAddress: IAddress = { ...DEFAULT_ADDRESS }\n\n get project(): IProject {\n return this.$store.state.project?.details\n }\n\n get barcodeTypeInfo(): IBarcodeDefinitionType {\n return this.project?.barcodeTypes[this.barcodeType]\n }\n\n get isAvailable() {\n return this.barcodeTypeInfo?.activationFields?.destination?.isAvailable\n }\n\n get isMandatory() {\n return this.barcodeTypeInfo?.activationFields?.destination?.isMandatory\n }\n\n get profileAddressHistory() {\n return this.$store.state.profile.addressHistory\n }\n\n get profileAddressBook() {\n return this.$store.state.profile.addressBook\n }\n\n get addressOptions() {\n if (this.selectedMode === 1) {\n this.onSelectAddressCompleted(this.profileAddressHistory[this.selectedAddressIndex ?? 0])\n return this.profileAddressHistory\n }\n\n if (this.selectedMode === 2) {\n this.onSelectAddressCompleted(this.profileAddressBook[this.selectedAddressIndex ?? 0])\n return this.profileAddressBook || []\n }\n }\n\n get isAddressHistoryMode() {\n return this.selectedMode === 1\n }\n\n get isAddressBookMode() {\n return this.selectedMode === 2\n }\n\n // disable next step in edit mode\n get hasNextStep() {\n return this.$route.name !== 'edit'\n }\n\n onAddressBookCbChange() {\n this.onSelectAddressCompleted(this.addressOptions[this.selectedAddressIndex])\n }\n\n shouldDisableMode(index: number) {\n return this.selectedMode === index\n }\n\n onSelectAddressCompleted(newVal: IAddress) {\n if (!this.selectedDestinationAddress) {\n return\n }\n\n this.selectedDestinationAddress = {\n ...this.selectedDestinationAddress,\n ...newVal,\n }\n }\n\n @Emit('update:destination')\n onSubmitForm(data: IAddress): IBarcodeFormMultiDataTab {\n return {\n destination: data,\n step: this.step + 1,\n }\n }\n\n created() {\n if (!this.barcodeType) {\n this.$router.replace({\n name: 'detail',\n params: {\n project: this.$store.getters.projectParam,\n barcodeId: this.$store.state.barcode.barcode.id,\n },\n })\n return\n }\n // skip this step if destination is unavailable from project settings\n if (!this.isAvailable) {\n if (this.$store.state.barcode.trackedStep > this.step) {\n this.$emit('update:onGotoStep', this.step - 1)\n } else {\n this.$emit('update:onGotoStep', this.step + 1)\n }\n }\n this.$store.commit(SET_BARCODE_FORM_STEP, this.step)\n\n if (this.destinationAddress) {\n this.selectedDestinationAddress = this.destinationAddress\n }\n this.inputModes = ['Direct Input', 'Select from Address History', 'Select from Address Book']\n }\n}\n","import { render } from \"./ShippingDestination.vue?vue&type=template&id=2849375e&scoped=true\"\nimport script from \"./ShippingDestination.vue?vue&type=script&lang=ts\"\nexport * from \"./ShippingDestination.vue?vue&type=script&lang=ts\"\n\nimport \"./ShippingDestination.vue?vue&type=style&index=0&id=2849375e&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-2849375e\"\n\nexport default script","\n\n\n\n\n","import { IValidationRule } from 'smartbarcode-web-core/src/utils/types/index'\nimport i18n from '@/i18n/i18n'\nimport { EValidationType } from 'smartbarcode-web-core/src/utils/enums'\n\nexport const serverMappingValidate = (rules: IValidationRule, field: string, value: string | number) => {\n const trans = i18n.global.t\n const stringVal = value?.toString() || ''\n\n if (rules.allowNullOrEmpty && stringVal === '') {\n return ''\n }\n\n if (typeof rules.allowNullOrEmpty !== 'undefined' && !rules.allowNullOrEmpty && stringVal.trim() === '') {\n return trans('Please enter', { field })\n }\n\n const validationType = rules.validationType\n if (typeof validationType !== 'undefined' && validationType !== EValidationType.none) {\n switch (validationType) {\n case EValidationType.digitOnly:\n if (!/^[0-9]+$/.test(stringVal)) {\n return trans('Digits only')\n }\n break\n case EValidationType.digitDashOnly:\n if (!/^[0-9-]+$/.test(stringVal)) {\n return trans('Digits dash only')\n }\n break\n case EValidationType.digitUnderscoreOnly:\n if (!/^[0-9_]+$/.test(stringVal)) {\n return trans('Digits underscore only')\n }\n break\n case EValidationType.letterOnly:\n if (!/^[a-zA-Z]+$/.test(stringVal)) {\n return trans('Letters only')\n }\n break\n case EValidationType.letterDashOnly:\n if (!/^[a-zA-Z-]+$/.test(stringVal)) {\n return trans('Letters dash only')\n }\n break\n case EValidationType.letterUnderscoreOnly:\n if (!/^[a-zA-Z_]+$/.test(stringVal)) {\n return trans('Letters underscore only')\n }\n break\n case EValidationType.letterDigitOnly:\n if (!/^[a-zA-Z0-9]+$/.test(stringVal)) {\n return trans('Letters digits only')\n }\n break\n case EValidationType.letterDigitDashOnly:\n if (!/^[a-zA-Z0-9-]+$/.test(stringVal)) {\n return trans('Letters digits dash only')\n }\n break\n case EValidationType.letterDigitUnderscoreOnly:\n if (!/^[a-zA-Z0-9_]+$/.test(stringVal)) {\n return trans('Letters digits underscore only')\n }\n break\n default:\n break\n }\n }\n\n // minLength\n const minLength = rules.minLength\n if (minLength && minLength > 0 && stringVal.length < minLength) {\n return trans('MinLen limit', {\n len: minLength,\n })\n }\n\n // maxLength\n const maxLength = rules.maxLength\n if (maxLength && maxLength > 0 && stringVal.length > maxLength) {\n return trans('MaxLen limit', {\n len: maxLength,\n })\n }\n\n return ''\n}\n","export default function assign(target, dirtyObject) {\n if (target == null) {\n throw new TypeError('assign requires that input parameter not be null or undefined');\n }\n\n dirtyObject = dirtyObject || {};\n\n for (var property in dirtyObject) {\n if (dirtyObject.hasOwnProperty(property)) {\n target[property] = dirtyObject[property];\n }\n }\n\n return target;\n}","import toInteger from '../toInteger/index.js';\nimport toDate from '../../toDate/index.js';\nimport requiredArgs from '../requiredArgs/index.js'; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function setUTCDay(dirtyDate, dirtyDay, dirtyOptions) {\n requiredArgs(2, arguments);\n var options = dirtyOptions || {};\n var locale = options.locale;\n var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;\n var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);\n var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\n\n if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\n }\n\n var date = toDate(dirtyDate);\n var day = toInteger(dirtyDay);\n var currentDay = date.getUTCDay();\n var remainder = day % 7;\n var dayIndex = (remainder + 7) % 7;\n var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;\n date.setUTCDate(date.getUTCDate() + diff);\n return date;\n}","import toInteger from '../toInteger/index.js';\nimport toDate from '../../toDate/index.js';\nimport requiredArgs from '../requiredArgs/index.js'; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function setUTCISODay(dirtyDate, dirtyDay) {\n requiredArgs(2, arguments);\n var day = toInteger(dirtyDay);\n\n if (day % 7 === 0) {\n day = day - 7;\n }\n\n var weekStartsOn = 1;\n var date = toDate(dirtyDate);\n var currentDay = date.getUTCDay();\n var remainder = day % 7;\n var dayIndex = (remainder + 7) % 7;\n var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;\n date.setUTCDate(date.getUTCDate() + diff);\n return date;\n}","import toInteger from '../toInteger/index.js';\nimport toDate from '../../toDate/index.js';\nimport getUTCISOWeek from '../getUTCISOWeek/index.js';\nimport requiredArgs from '../requiredArgs/index.js'; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function setUTCISOWeek(dirtyDate, dirtyISOWeek) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var isoWeek = toInteger(dirtyISOWeek);\n var diff = getUTCISOWeek(date) - isoWeek;\n date.setUTCDate(date.getUTCDate() - diff * 7);\n return date;\n}","import toInteger from '../toInteger/index.js';\nimport toDate from '../../toDate/index.js';\nimport getUTCWeek from '../getUTCWeek/index.js';\nimport requiredArgs from '../requiredArgs/index.js'; // This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\n\nexport default function setUTCWeek(dirtyDate, dirtyWeek, options) {\n requiredArgs(2, arguments);\n var date = toDate(dirtyDate);\n var week = toInteger(dirtyWeek);\n var diff = getUTCWeek(date, options) - week;\n date.setUTCDate(date.getUTCDate() - diff * 7);\n return date;\n}","import getUTCWeekYear from '../../../_lib/getUTCWeekYear/index.js';\nimport setUTCDay from '../../../_lib/setUTCDay/index.js';\nimport setUTCISODay from '../../../_lib/setUTCISODay/index.js';\nimport setUTCISOWeek from '../../../_lib/setUTCISOWeek/index.js';\nimport setUTCWeek from '../../../_lib/setUTCWeek/index.js';\nimport startOfUTCISOWeek from '../../../_lib/startOfUTCISOWeek/index.js';\nimport startOfUTCWeek from '../../../_lib/startOfUTCWeek/index.js';\nvar MILLISECONDS_IN_HOUR = 3600000;\nvar MILLISECONDS_IN_MINUTE = 60000;\nvar MILLISECONDS_IN_SECOND = 1000;\nvar numericPatterns = {\n month: /^(1[0-2]|0?\\d)/,\n // 0 to 12\n date: /^(3[0-1]|[0-2]?\\d)/,\n // 0 to 31\n dayOfYear: /^(36[0-6]|3[0-5]\\d|[0-2]?\\d?\\d)/,\n // 0 to 366\n week: /^(5[0-3]|[0-4]?\\d)/,\n // 0 to 53\n hour23h: /^(2[0-3]|[0-1]?\\d)/,\n // 0 to 23\n hour24h: /^(2[0-4]|[0-1]?\\d)/,\n // 0 to 24\n hour11h: /^(1[0-1]|0?\\d)/,\n // 0 to 11\n hour12h: /^(1[0-2]|0?\\d)/,\n // 0 to 12\n minute: /^[0-5]?\\d/,\n // 0 to 59\n second: /^[0-5]?\\d/,\n // 0 to 59\n singleDigit: /^\\d/,\n // 0 to 9\n twoDigits: /^\\d{1,2}/,\n // 0 to 99\n threeDigits: /^\\d{1,3}/,\n // 0 to 999\n fourDigits: /^\\d{1,4}/,\n // 0 to 9999\n anyDigitsSigned: /^-?\\d+/,\n singleDigitSigned: /^-?\\d/,\n // 0 to 9, -0 to -9\n twoDigitsSigned: /^-?\\d{1,2}/,\n // 0 to 99, -0 to -99\n threeDigitsSigned: /^-?\\d{1,3}/,\n // 0 to 999, -0 to -999\n fourDigitsSigned: /^-?\\d{1,4}/ // 0 to 9999, -0 to -9999\n\n};\nvar timezonePatterns = {\n basicOptionalMinutes: /^([+-])(\\d{2})(\\d{2})?|Z/,\n basic: /^([+-])(\\d{2})(\\d{2})|Z/,\n basicOptionalSeconds: /^([+-])(\\d{2})(\\d{2})((\\d{2}))?|Z/,\n extended: /^([+-])(\\d{2}):(\\d{2})|Z/,\n extendedOptionalSeconds: /^([+-])(\\d{2}):(\\d{2})(:(\\d{2}))?|Z/\n};\n\nfunction parseNumericPattern(pattern, string, valueCallback) {\n var matchResult = string.match(pattern);\n\n if (!matchResult) {\n return null;\n }\n\n var value = parseInt(matchResult[0], 10);\n return {\n value: valueCallback ? valueCallback(value) : value,\n rest: string.slice(matchResult[0].length)\n };\n}\n\nfunction parseTimezonePattern(pattern, string) {\n var matchResult = string.match(pattern);\n\n if (!matchResult) {\n return null;\n } // Input is 'Z'\n\n\n if (matchResult[0] === 'Z') {\n return {\n value: 0,\n rest: string.slice(1)\n };\n }\n\n var sign = matchResult[1] === '+' ? 1 : -1;\n var hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;\n var minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;\n var seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0;\n return {\n value: sign * (hours * MILLISECONDS_IN_HOUR + minutes * MILLISECONDS_IN_MINUTE + seconds * MILLISECONDS_IN_SECOND),\n rest: string.slice(matchResult[0].length)\n };\n}\n\nfunction parseAnyDigitsSigned(string, valueCallback) {\n return parseNumericPattern(numericPatterns.anyDigitsSigned, string, valueCallback);\n}\n\nfunction parseNDigits(n, string, valueCallback) {\n switch (n) {\n case 1:\n return parseNumericPattern(numericPatterns.singleDigit, string, valueCallback);\n\n case 2:\n return parseNumericPattern(numericPatterns.twoDigits, string, valueCallback);\n\n case 3:\n return parseNumericPattern(numericPatterns.threeDigits, string, valueCallback);\n\n case 4:\n return parseNumericPattern(numericPatterns.fourDigits, string, valueCallback);\n\n default:\n return parseNumericPattern(new RegExp('^\\\\d{1,' + n + '}'), string, valueCallback);\n }\n}\n\nfunction parseNDigitsSigned(n, string, valueCallback) {\n switch (n) {\n case 1:\n return parseNumericPattern(numericPatterns.singleDigitSigned, string, valueCallback);\n\n case 2:\n return parseNumericPattern(numericPatterns.twoDigitsSigned, string, valueCallback);\n\n case 3:\n return parseNumericPattern(numericPatterns.threeDigitsSigned, string, valueCallback);\n\n case 4:\n return parseNumericPattern(numericPatterns.fourDigitsSigned, string, valueCallback);\n\n default:\n return parseNumericPattern(new RegExp('^-?\\\\d{1,' + n + '}'), string, valueCallback);\n }\n}\n\nfunction dayPeriodEnumToHours(enumValue) {\n switch (enumValue) {\n case 'morning':\n return 4;\n\n case 'evening':\n return 17;\n\n case 'pm':\n case 'noon':\n case 'afternoon':\n return 12;\n\n case 'am':\n case 'midnight':\n case 'night':\n default:\n return 0;\n }\n}\n\nfunction normalizeTwoDigitYear(twoDigitYear, currentYear) {\n var isCommonEra = currentYear > 0; // Absolute number of the current year:\n // 1 -> 1 AC\n // 0 -> 1 BC\n // -1 -> 2 BC\n\n var absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;\n var result;\n\n if (absCurrentYear <= 50) {\n result = twoDigitYear || 100;\n } else {\n var rangeEnd = absCurrentYear + 50;\n var rangeEndCentury = Math.floor(rangeEnd / 100) * 100;\n var isPreviousCentury = twoDigitYear >= rangeEnd % 100;\n result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);\n }\n\n return isCommonEra ? result : 1 - result;\n}\n\nvar DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\nvar DAYS_IN_MONTH_LEAP_YEAR = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // User for validation\n\nfunction isLeapYearIndex(year) {\n return year % 400 === 0 || year % 4 === 0 && year % 100 !== 0;\n}\n/*\n * | | Unit | | Unit |\n * |-----|--------------------------------|-----|--------------------------------|\n * | a | AM, PM | A* | Milliseconds in day |\n * | b | AM, PM, noon, midnight | B | Flexible day period |\n * | c | Stand-alone local day of week | C* | Localized hour w/ day period |\n * | d | Day of month | D | Day of year |\n * | e | Local day of week | E | Day of week |\n * | f | | F* | Day of week in month |\n * | g* | Modified Julian day | G | Era |\n * | h | Hour [1-12] | H | Hour [0-23] |\n * | i! | ISO day of week | I! | ISO week of year |\n * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |\n * | k | Hour [1-24] | K | Hour [0-11] |\n * | l* | (deprecated) | L | Stand-alone month |\n * | m | Minute | M | Month |\n * | n | | N | |\n * | o! | Ordinal number modifier | O* | Timezone (GMT) |\n * | p | | P | |\n * | q | Stand-alone quarter | Q | Quarter |\n * | r* | Related Gregorian year | R! | ISO week-numbering year |\n * | s | Second | S | Fraction of second |\n * | t! | Seconds timestamp | T! | Milliseconds timestamp |\n * | u | Extended year | U* | Cyclic year |\n * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |\n * | w | Local week of year | W* | Week of month |\n * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |\n * | y | Year (abs) | Y | Local week-numbering year |\n * | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n *\n * Letters marked by ! are non-standard, but implemented by date-fns:\n * - `o` modifies the previous token to turn it into an ordinal (see `parse` docs)\n * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,\n * i.e. 7 for Sunday, 1 for Monday, etc.\n * - `I` is ISO week of year, as opposed to `w` which is local week of year.\n * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.\n * `R` is supposed to be used in conjunction with `I` and `i`\n * for universal ISO week-numbering date, whereas\n * `Y` is supposed to be used in conjunction with `w` and `e`\n * for week-numbering date specific to the locale.\n */\n\n\nvar parsers = {\n // Era\n G: {\n priority: 140,\n parse: function (string, token, match, _options) {\n switch (token) {\n // AD, BC\n case 'G':\n case 'GG':\n case 'GGG':\n return match.era(string, {\n width: 'abbreviated'\n }) || match.era(string, {\n width: 'narrow'\n });\n // A, B\n\n case 'GGGGG':\n return match.era(string, {\n width: 'narrow'\n });\n // Anno Domini, Before Christ\n\n case 'GGGG':\n default:\n return match.era(string, {\n width: 'wide'\n }) || match.era(string, {\n width: 'abbreviated'\n }) || match.era(string, {\n width: 'narrow'\n });\n }\n },\n set: function (date, flags, value, _options) {\n flags.era = value;\n date.setUTCFullYear(value, 0, 1);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['R', 'u', 't', 'T']\n },\n // Year\n y: {\n // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns\n // | Year | y | yy | yyy | yyyy | yyyyy |\n // |----------|-------|----|-------|-------|-------|\n // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |\n // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |\n // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |\n // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |\n // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |\n priority: 130,\n parse: function (string, token, match, _options) {\n var valueCallback = function (year) {\n return {\n year: year,\n isTwoDigitYear: token === 'yy'\n };\n };\n\n switch (token) {\n case 'y':\n return parseNDigits(4, string, valueCallback);\n\n case 'yo':\n return match.ordinalNumber(string, {\n unit: 'year',\n valueCallback: valueCallback\n });\n\n default:\n return parseNDigits(token.length, string, valueCallback);\n }\n },\n validate: function (_date, value, _options) {\n return value.isTwoDigitYear || value.year > 0;\n },\n set: function (date, flags, value, _options) {\n var currentYear = date.getUTCFullYear();\n\n if (value.isTwoDigitYear) {\n var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);\n date.setUTCFullYear(normalizedTwoDigitYear, 0, 1);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n }\n\n var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;\n date.setUTCFullYear(year, 0, 1);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['Y', 'R', 'u', 'w', 'I', 'i', 'e', 'c', 't', 'T']\n },\n // Local week-numbering year\n Y: {\n priority: 130,\n parse: function (string, token, match, _options) {\n var valueCallback = function (year) {\n return {\n year: year,\n isTwoDigitYear: token === 'YY'\n };\n };\n\n switch (token) {\n case 'Y':\n return parseNDigits(4, string, valueCallback);\n\n case 'Yo':\n return match.ordinalNumber(string, {\n unit: 'year',\n valueCallback: valueCallback\n });\n\n default:\n return parseNDigits(token.length, string, valueCallback);\n }\n },\n validate: function (_date, value, _options) {\n return value.isTwoDigitYear || value.year > 0;\n },\n set: function (date, flags, value, options) {\n var currentYear = getUTCWeekYear(date, options);\n\n if (value.isTwoDigitYear) {\n var normalizedTwoDigitYear = normalizeTwoDigitYear(value.year, currentYear);\n date.setUTCFullYear(normalizedTwoDigitYear, 0, options.firstWeekContainsDate);\n date.setUTCHours(0, 0, 0, 0);\n return startOfUTCWeek(date, options);\n }\n\n var year = !('era' in flags) || flags.era === 1 ? value.year : 1 - value.year;\n date.setUTCFullYear(year, 0, options.firstWeekContainsDate);\n date.setUTCHours(0, 0, 0, 0);\n return startOfUTCWeek(date, options);\n },\n incompatibleTokens: ['y', 'R', 'u', 'Q', 'q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']\n },\n // ISO week-numbering year\n R: {\n priority: 130,\n parse: function (string, token, _match, _options) {\n if (token === 'R') {\n return parseNDigitsSigned(4, string);\n }\n\n return parseNDigitsSigned(token.length, string);\n },\n set: function (_date, _flags, value, _options) {\n var firstWeekOfYear = new Date(0);\n firstWeekOfYear.setUTCFullYear(value, 0, 4);\n firstWeekOfYear.setUTCHours(0, 0, 0, 0);\n return startOfUTCISOWeek(firstWeekOfYear);\n },\n incompatibleTokens: ['G', 'y', 'Y', 'u', 'Q', 'q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']\n },\n // Extended year\n u: {\n priority: 130,\n parse: function (string, token, _match, _options) {\n if (token === 'u') {\n return parseNDigitsSigned(4, string);\n }\n\n return parseNDigitsSigned(token.length, string);\n },\n set: function (date, _flags, value, _options) {\n date.setUTCFullYear(value, 0, 1);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['G', 'y', 'Y', 'R', 'w', 'I', 'i', 'e', 'c', 't', 'T']\n },\n // Quarter\n Q: {\n priority: 120,\n parse: function (string, token, match, _options) {\n switch (token) {\n // 1, 2, 3, 4\n case 'Q':\n case 'QQ':\n // 01, 02, 03, 04\n return parseNDigits(token.length, string);\n // 1st, 2nd, 3rd, 4th\n\n case 'Qo':\n return match.ordinalNumber(string, {\n unit: 'quarter'\n });\n // Q1, Q2, Q3, Q4\n\n case 'QQQ':\n return match.quarter(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.quarter(string, {\n width: 'narrow',\n context: 'formatting'\n });\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n\n case 'QQQQQ':\n return match.quarter(string, {\n width: 'narrow',\n context: 'formatting'\n });\n // 1st quarter, 2nd quarter, ...\n\n case 'QQQQ':\n default:\n return match.quarter(string, {\n width: 'wide',\n context: 'formatting'\n }) || match.quarter(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.quarter(string, {\n width: 'narrow',\n context: 'formatting'\n });\n }\n },\n validate: function (_date, value, _options) {\n return value >= 1 && value <= 4;\n },\n set: function (date, _flags, value, _options) {\n date.setUTCMonth((value - 1) * 3, 1);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['Y', 'R', 'q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']\n },\n // Stand-alone quarter\n q: {\n priority: 120,\n parse: function (string, token, match, _options) {\n switch (token) {\n // 1, 2, 3, 4\n case 'q':\n case 'qq':\n // 01, 02, 03, 04\n return parseNDigits(token.length, string);\n // 1st, 2nd, 3rd, 4th\n\n case 'qo':\n return match.ordinalNumber(string, {\n unit: 'quarter'\n });\n // Q1, Q2, Q3, Q4\n\n case 'qqq':\n return match.quarter(string, {\n width: 'abbreviated',\n context: 'standalone'\n }) || match.quarter(string, {\n width: 'narrow',\n context: 'standalone'\n });\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n\n case 'qqqqq':\n return match.quarter(string, {\n width: 'narrow',\n context: 'standalone'\n });\n // 1st quarter, 2nd quarter, ...\n\n case 'qqqq':\n default:\n return match.quarter(string, {\n width: 'wide',\n context: 'standalone'\n }) || match.quarter(string, {\n width: 'abbreviated',\n context: 'standalone'\n }) || match.quarter(string, {\n width: 'narrow',\n context: 'standalone'\n });\n }\n },\n validate: function (_date, value, _options) {\n return value >= 1 && value <= 4;\n },\n set: function (date, _flags, value, _options) {\n date.setUTCMonth((value - 1) * 3, 1);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['Y', 'R', 'Q', 'M', 'L', 'w', 'I', 'd', 'D', 'i', 'e', 'c', 't', 'T']\n },\n // Month\n M: {\n priority: 110,\n parse: function (string, token, match, _options) {\n var valueCallback = function (value) {\n return value - 1;\n };\n\n switch (token) {\n // 1, 2, ..., 12\n case 'M':\n return parseNumericPattern(numericPatterns.month, string, valueCallback);\n // 01, 02, ..., 12\n\n case 'MM':\n return parseNDigits(2, string, valueCallback);\n // 1st, 2nd, ..., 12th\n\n case 'Mo':\n return match.ordinalNumber(string, {\n unit: 'month',\n valueCallback: valueCallback\n });\n // Jan, Feb, ..., Dec\n\n case 'MMM':\n return match.month(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.month(string, {\n width: 'narrow',\n context: 'formatting'\n });\n // J, F, ..., D\n\n case 'MMMMM':\n return match.month(string, {\n width: 'narrow',\n context: 'formatting'\n });\n // January, February, ..., December\n\n case 'MMMM':\n default:\n return match.month(string, {\n width: 'wide',\n context: 'formatting'\n }) || match.month(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.month(string, {\n width: 'narrow',\n context: 'formatting'\n });\n }\n },\n validate: function (_date, value, _options) {\n return value >= 0 && value <= 11;\n },\n set: function (date, _flags, value, _options) {\n date.setUTCMonth(value, 1);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['Y', 'R', 'q', 'Q', 'L', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']\n },\n // Stand-alone month\n L: {\n priority: 110,\n parse: function (string, token, match, _options) {\n var valueCallback = function (value) {\n return value - 1;\n };\n\n switch (token) {\n // 1, 2, ..., 12\n case 'L':\n return parseNumericPattern(numericPatterns.month, string, valueCallback);\n // 01, 02, ..., 12\n\n case 'LL':\n return parseNDigits(2, string, valueCallback);\n // 1st, 2nd, ..., 12th\n\n case 'Lo':\n return match.ordinalNumber(string, {\n unit: 'month',\n valueCallback: valueCallback\n });\n // Jan, Feb, ..., Dec\n\n case 'LLL':\n return match.month(string, {\n width: 'abbreviated',\n context: 'standalone'\n }) || match.month(string, {\n width: 'narrow',\n context: 'standalone'\n });\n // J, F, ..., D\n\n case 'LLLLL':\n return match.month(string, {\n width: 'narrow',\n context: 'standalone'\n });\n // January, February, ..., December\n\n case 'LLLL':\n default:\n return match.month(string, {\n width: 'wide',\n context: 'standalone'\n }) || match.month(string, {\n width: 'abbreviated',\n context: 'standalone'\n }) || match.month(string, {\n width: 'narrow',\n context: 'standalone'\n });\n }\n },\n validate: function (_date, value, _options) {\n return value >= 0 && value <= 11;\n },\n set: function (date, _flags, value, _options) {\n date.setUTCMonth(value, 1);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']\n },\n // Local week of year\n w: {\n priority: 100,\n parse: function (string, token, match, _options) {\n switch (token) {\n case 'w':\n return parseNumericPattern(numericPatterns.week, string);\n\n case 'wo':\n return match.ordinalNumber(string, {\n unit: 'week'\n });\n\n default:\n return parseNDigits(token.length, string);\n }\n },\n validate: function (_date, value, _options) {\n return value >= 1 && value <= 53;\n },\n set: function (date, _flags, value, options) {\n return startOfUTCWeek(setUTCWeek(date, value, options), options);\n },\n incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'i', 't', 'T']\n },\n // ISO week of year\n I: {\n priority: 100,\n parse: function (string, token, match, _options) {\n switch (token) {\n case 'I':\n return parseNumericPattern(numericPatterns.week, string);\n\n case 'Io':\n return match.ordinalNumber(string, {\n unit: 'week'\n });\n\n default:\n return parseNDigits(token.length, string);\n }\n },\n validate: function (_date, value, _options) {\n return value >= 1 && value <= 53;\n },\n set: function (date, _flags, value, options) {\n return startOfUTCISOWeek(setUTCISOWeek(date, value, options), options);\n },\n incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'e', 'c', 't', 'T']\n },\n // Day of the month\n d: {\n priority: 90,\n subPriority: 1,\n parse: function (string, token, match, _options) {\n switch (token) {\n case 'd':\n return parseNumericPattern(numericPatterns.date, string);\n\n case 'do':\n return match.ordinalNumber(string, {\n unit: 'date'\n });\n\n default:\n return parseNDigits(token.length, string);\n }\n },\n validate: function (date, value, _options) {\n var year = date.getUTCFullYear();\n var isLeapYear = isLeapYearIndex(year);\n var month = date.getUTCMonth();\n\n if (isLeapYear) {\n return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];\n } else {\n return value >= 1 && value <= DAYS_IN_MONTH[month];\n }\n },\n set: function (date, _flags, value, _options) {\n date.setUTCDate(value);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['Y', 'R', 'q', 'Q', 'w', 'I', 'D', 'i', 'e', 'c', 't', 'T']\n },\n // Day of year\n D: {\n priority: 90,\n subPriority: 1,\n parse: function (string, token, match, _options) {\n switch (token) {\n case 'D':\n case 'DD':\n return parseNumericPattern(numericPatterns.dayOfYear, string);\n\n case 'Do':\n return match.ordinalNumber(string, {\n unit: 'date'\n });\n\n default:\n return parseNDigits(token.length, string);\n }\n },\n validate: function (date, value, _options) {\n var year = date.getUTCFullYear();\n var isLeapYear = isLeapYearIndex(year);\n\n if (isLeapYear) {\n return value >= 1 && value <= 366;\n } else {\n return value >= 1 && value <= 365;\n }\n },\n set: function (date, _flags, value, _options) {\n date.setUTCMonth(0, value);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['Y', 'R', 'q', 'Q', 'M', 'L', 'w', 'I', 'd', 'E', 'i', 'e', 'c', 't', 'T']\n },\n // Day of week\n E: {\n priority: 90,\n parse: function (string, token, match, _options) {\n switch (token) {\n // Tue\n case 'E':\n case 'EE':\n case 'EEE':\n return match.day(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.day(string, {\n width: 'short',\n context: 'formatting'\n }) || match.day(string, {\n width: 'narrow',\n context: 'formatting'\n });\n // T\n\n case 'EEEEE':\n return match.day(string, {\n width: 'narrow',\n context: 'formatting'\n });\n // Tu\n\n case 'EEEEEE':\n return match.day(string, {\n width: 'short',\n context: 'formatting'\n }) || match.day(string, {\n width: 'narrow',\n context: 'formatting'\n });\n // Tuesday\n\n case 'EEEE':\n default:\n return match.day(string, {\n width: 'wide',\n context: 'formatting'\n }) || match.day(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.day(string, {\n width: 'short',\n context: 'formatting'\n }) || match.day(string, {\n width: 'narrow',\n context: 'formatting'\n });\n }\n },\n validate: function (_date, value, _options) {\n return value >= 0 && value <= 6;\n },\n set: function (date, _flags, value, options) {\n date = setUTCDay(date, value, options);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['D', 'i', 'e', 'c', 't', 'T']\n },\n // Local day of week\n e: {\n priority: 90,\n parse: function (string, token, match, options) {\n var valueCallback = function (value) {\n var wholeWeekDays = Math.floor((value - 1) / 7) * 7;\n return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;\n };\n\n switch (token) {\n // 3\n case 'e':\n case 'ee':\n // 03\n return parseNDigits(token.length, string, valueCallback);\n // 3rd\n\n case 'eo':\n return match.ordinalNumber(string, {\n unit: 'day',\n valueCallback: valueCallback\n });\n // Tue\n\n case 'eee':\n return match.day(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.day(string, {\n width: 'short',\n context: 'formatting'\n }) || match.day(string, {\n width: 'narrow',\n context: 'formatting'\n });\n // T\n\n case 'eeeee':\n return match.day(string, {\n width: 'narrow',\n context: 'formatting'\n });\n // Tu\n\n case 'eeeeee':\n return match.day(string, {\n width: 'short',\n context: 'formatting'\n }) || match.day(string, {\n width: 'narrow',\n context: 'formatting'\n });\n // Tuesday\n\n case 'eeee':\n default:\n return match.day(string, {\n width: 'wide',\n context: 'formatting'\n }) || match.day(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.day(string, {\n width: 'short',\n context: 'formatting'\n }) || match.day(string, {\n width: 'narrow',\n context: 'formatting'\n });\n }\n },\n validate: function (_date, value, _options) {\n return value >= 0 && value <= 6;\n },\n set: function (date, _flags, value, options) {\n date = setUTCDay(date, value, options);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'c', 't', 'T']\n },\n // Stand-alone local day of week\n c: {\n priority: 90,\n parse: function (string, token, match, options) {\n var valueCallback = function (value) {\n var wholeWeekDays = Math.floor((value - 1) / 7) * 7;\n return (value + options.weekStartsOn + 6) % 7 + wholeWeekDays;\n };\n\n switch (token) {\n // 3\n case 'c':\n case 'cc':\n // 03\n return parseNDigits(token.length, string, valueCallback);\n // 3rd\n\n case 'co':\n return match.ordinalNumber(string, {\n unit: 'day',\n valueCallback: valueCallback\n });\n // Tue\n\n case 'ccc':\n return match.day(string, {\n width: 'abbreviated',\n context: 'standalone'\n }) || match.day(string, {\n width: 'short',\n context: 'standalone'\n }) || match.day(string, {\n width: 'narrow',\n context: 'standalone'\n });\n // T\n\n case 'ccccc':\n return match.day(string, {\n width: 'narrow',\n context: 'standalone'\n });\n // Tu\n\n case 'cccccc':\n return match.day(string, {\n width: 'short',\n context: 'standalone'\n }) || match.day(string, {\n width: 'narrow',\n context: 'standalone'\n });\n // Tuesday\n\n case 'cccc':\n default:\n return match.day(string, {\n width: 'wide',\n context: 'standalone'\n }) || match.day(string, {\n width: 'abbreviated',\n context: 'standalone'\n }) || match.day(string, {\n width: 'short',\n context: 'standalone'\n }) || match.day(string, {\n width: 'narrow',\n context: 'standalone'\n });\n }\n },\n validate: function (_date, value, _options) {\n return value >= 0 && value <= 6;\n },\n set: function (date, _flags, value, options) {\n date = setUTCDay(date, value, options);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['y', 'R', 'u', 'q', 'Q', 'M', 'L', 'I', 'd', 'D', 'E', 'i', 'e', 't', 'T']\n },\n // ISO day of week\n i: {\n priority: 90,\n parse: function (string, token, match, _options) {\n var valueCallback = function (value) {\n if (value === 0) {\n return 7;\n }\n\n return value;\n };\n\n switch (token) {\n // 2\n case 'i':\n case 'ii':\n // 02\n return parseNDigits(token.length, string);\n // 2nd\n\n case 'io':\n return match.ordinalNumber(string, {\n unit: 'day'\n });\n // Tue\n\n case 'iii':\n return match.day(string, {\n width: 'abbreviated',\n context: 'formatting',\n valueCallback: valueCallback\n }) || match.day(string, {\n width: 'short',\n context: 'formatting',\n valueCallback: valueCallback\n }) || match.day(string, {\n width: 'narrow',\n context: 'formatting',\n valueCallback: valueCallback\n });\n // T\n\n case 'iiiii':\n return match.day(string, {\n width: 'narrow',\n context: 'formatting',\n valueCallback: valueCallback\n });\n // Tu\n\n case 'iiiiii':\n return match.day(string, {\n width: 'short',\n context: 'formatting',\n valueCallback: valueCallback\n }) || match.day(string, {\n width: 'narrow',\n context: 'formatting',\n valueCallback: valueCallback\n });\n // Tuesday\n\n case 'iiii':\n default:\n return match.day(string, {\n width: 'wide',\n context: 'formatting',\n valueCallback: valueCallback\n }) || match.day(string, {\n width: 'abbreviated',\n context: 'formatting',\n valueCallback: valueCallback\n }) || match.day(string, {\n width: 'short',\n context: 'formatting',\n valueCallback: valueCallback\n }) || match.day(string, {\n width: 'narrow',\n context: 'formatting',\n valueCallback: valueCallback\n });\n }\n },\n validate: function (_date, value, _options) {\n return value >= 1 && value <= 7;\n },\n set: function (date, _flags, value, options) {\n date = setUTCISODay(date, value, options);\n date.setUTCHours(0, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['y', 'Y', 'u', 'q', 'Q', 'M', 'L', 'w', 'd', 'D', 'E', 'e', 'c', 't', 'T']\n },\n // AM or PM\n a: {\n priority: 80,\n parse: function (string, token, match, _options) {\n switch (token) {\n case 'a':\n case 'aa':\n case 'aaa':\n return match.dayPeriod(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.dayPeriod(string, {\n width: 'narrow',\n context: 'formatting'\n });\n\n case 'aaaaa':\n return match.dayPeriod(string, {\n width: 'narrow',\n context: 'formatting'\n });\n\n case 'aaaa':\n default:\n return match.dayPeriod(string, {\n width: 'wide',\n context: 'formatting'\n }) || match.dayPeriod(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.dayPeriod(string, {\n width: 'narrow',\n context: 'formatting'\n });\n }\n },\n set: function (date, _flags, value, _options) {\n date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['b', 'B', 'H', 'K', 'k', 't', 'T']\n },\n // AM, PM, midnight\n b: {\n priority: 80,\n parse: function (string, token, match, _options) {\n switch (token) {\n case 'b':\n case 'bb':\n case 'bbb':\n return match.dayPeriod(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.dayPeriod(string, {\n width: 'narrow',\n context: 'formatting'\n });\n\n case 'bbbbb':\n return match.dayPeriod(string, {\n width: 'narrow',\n context: 'formatting'\n });\n\n case 'bbbb':\n default:\n return match.dayPeriod(string, {\n width: 'wide',\n context: 'formatting'\n }) || match.dayPeriod(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.dayPeriod(string, {\n width: 'narrow',\n context: 'formatting'\n });\n }\n },\n set: function (date, _flags, value, _options) {\n date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['a', 'B', 'H', 'K', 'k', 't', 'T']\n },\n // in the morning, in the afternoon, in the evening, at night\n B: {\n priority: 80,\n parse: function (string, token, match, _options) {\n switch (token) {\n case 'B':\n case 'BB':\n case 'BBB':\n return match.dayPeriod(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.dayPeriod(string, {\n width: 'narrow',\n context: 'formatting'\n });\n\n case 'BBBBB':\n return match.dayPeriod(string, {\n width: 'narrow',\n context: 'formatting'\n });\n\n case 'BBBB':\n default:\n return match.dayPeriod(string, {\n width: 'wide',\n context: 'formatting'\n }) || match.dayPeriod(string, {\n width: 'abbreviated',\n context: 'formatting'\n }) || match.dayPeriod(string, {\n width: 'narrow',\n context: 'formatting'\n });\n }\n },\n set: function (date, _flags, value, _options) {\n date.setUTCHours(dayPeriodEnumToHours(value), 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['a', 'b', 't', 'T']\n },\n // Hour [1-12]\n h: {\n priority: 70,\n parse: function (string, token, match, _options) {\n switch (token) {\n case 'h':\n return parseNumericPattern(numericPatterns.hour12h, string);\n\n case 'ho':\n return match.ordinalNumber(string, {\n unit: 'hour'\n });\n\n default:\n return parseNDigits(token.length, string);\n }\n },\n validate: function (_date, value, _options) {\n return value >= 1 && value <= 12;\n },\n set: function (date, _flags, value, _options) {\n var isPM = date.getUTCHours() >= 12;\n\n if (isPM && value < 12) {\n date.setUTCHours(value + 12, 0, 0, 0);\n } else if (!isPM && value === 12) {\n date.setUTCHours(0, 0, 0, 0);\n } else {\n date.setUTCHours(value, 0, 0, 0);\n }\n\n return date;\n },\n incompatibleTokens: ['H', 'K', 'k', 't', 'T']\n },\n // Hour [0-23]\n H: {\n priority: 70,\n parse: function (string, token, match, _options) {\n switch (token) {\n case 'H':\n return parseNumericPattern(numericPatterns.hour23h, string);\n\n case 'Ho':\n return match.ordinalNumber(string, {\n unit: 'hour'\n });\n\n default:\n return parseNDigits(token.length, string);\n }\n },\n validate: function (_date, value, _options) {\n return value >= 0 && value <= 23;\n },\n set: function (date, _flags, value, _options) {\n date.setUTCHours(value, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['a', 'b', 'h', 'K', 'k', 't', 'T']\n },\n // Hour [0-11]\n K: {\n priority: 70,\n parse: function (string, token, match, _options) {\n switch (token) {\n case 'K':\n return parseNumericPattern(numericPatterns.hour11h, string);\n\n case 'Ko':\n return match.ordinalNumber(string, {\n unit: 'hour'\n });\n\n default:\n return parseNDigits(token.length, string);\n }\n },\n validate: function (_date, value, _options) {\n return value >= 0 && value <= 11;\n },\n set: function (date, _flags, value, _options) {\n var isPM = date.getUTCHours() >= 12;\n\n if (isPM && value < 12) {\n date.setUTCHours(value + 12, 0, 0, 0);\n } else {\n date.setUTCHours(value, 0, 0, 0);\n }\n\n return date;\n },\n incompatibleTokens: ['a', 'b', 'h', 'H', 'k', 't', 'T']\n },\n // Hour [1-24]\n k: {\n priority: 70,\n parse: function (string, token, match, _options) {\n switch (token) {\n case 'k':\n return parseNumericPattern(numericPatterns.hour24h, string);\n\n case 'ko':\n return match.ordinalNumber(string, {\n unit: 'hour'\n });\n\n default:\n return parseNDigits(token.length, string);\n }\n },\n validate: function (_date, value, _options) {\n return value >= 1 && value <= 24;\n },\n set: function (date, _flags, value, _options) {\n var hours = value <= 24 ? value % 24 : value;\n date.setUTCHours(hours, 0, 0, 0);\n return date;\n },\n incompatibleTokens: ['a', 'b', 'h', 'H', 'K', 't', 'T']\n },\n // Minute\n m: {\n priority: 60,\n parse: function (string, token, match, _options) {\n switch (token) {\n case 'm':\n return parseNumericPattern(numericPatterns.minute, string);\n\n case 'mo':\n return match.ordinalNumber(string, {\n unit: 'minute'\n });\n\n default:\n return parseNDigits(token.length, string);\n }\n },\n validate: function (_date, value, _options) {\n return value >= 0 && value <= 59;\n },\n set: function (date, _flags, value, _options) {\n date.setUTCMinutes(value, 0, 0);\n return date;\n },\n incompatibleTokens: ['t', 'T']\n },\n // Second\n s: {\n priority: 50,\n parse: function (string, token, match, _options) {\n switch (token) {\n case 's':\n return parseNumericPattern(numericPatterns.second, string);\n\n case 'so':\n return match.ordinalNumber(string, {\n unit: 'second'\n });\n\n default:\n return parseNDigits(token.length, string);\n }\n },\n validate: function (_date, value, _options) {\n return value >= 0 && value <= 59;\n },\n set: function (date, _flags, value, _options) {\n date.setUTCSeconds(value, 0);\n return date;\n },\n incompatibleTokens: ['t', 'T']\n },\n // Fraction of second\n S: {\n priority: 30,\n parse: function (string, token, _match, _options) {\n var valueCallback = function (value) {\n return Math.floor(value * Math.pow(10, -token.length + 3));\n };\n\n return parseNDigits(token.length, string, valueCallback);\n },\n set: function (date, _flags, value, _options) {\n date.setUTCMilliseconds(value);\n return date;\n },\n incompatibleTokens: ['t', 'T']\n },\n // Timezone (ISO-8601. +00:00 is `'Z'`)\n X: {\n priority: 10,\n parse: function (string, token, _match, _options) {\n switch (token) {\n case 'X':\n return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string);\n\n case 'XX':\n return parseTimezonePattern(timezonePatterns.basic, string);\n\n case 'XXXX':\n return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string);\n\n case 'XXXXX':\n return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string);\n\n case 'XXX':\n default:\n return parseTimezonePattern(timezonePatterns.extended, string);\n }\n },\n set: function (date, flags, value, _options) {\n if (flags.timestampIsSet) {\n return date;\n }\n\n return new Date(date.getTime() - value);\n },\n incompatibleTokens: ['t', 'T', 'x']\n },\n // Timezone (ISO-8601)\n x: {\n priority: 10,\n parse: function (string, token, _match, _options) {\n switch (token) {\n case 'x':\n return parseTimezonePattern(timezonePatterns.basicOptionalMinutes, string);\n\n case 'xx':\n return parseTimezonePattern(timezonePatterns.basic, string);\n\n case 'xxxx':\n return parseTimezonePattern(timezonePatterns.basicOptionalSeconds, string);\n\n case 'xxxxx':\n return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds, string);\n\n case 'xxx':\n default:\n return parseTimezonePattern(timezonePatterns.extended, string);\n }\n },\n set: function (date, flags, value, _options) {\n if (flags.timestampIsSet) {\n return date;\n }\n\n return new Date(date.getTime() - value);\n },\n incompatibleTokens: ['t', 'T', 'X']\n },\n // Seconds timestamp\n t: {\n priority: 40,\n parse: function (string, _token, _match, _options) {\n return parseAnyDigitsSigned(string);\n },\n set: function (_date, _flags, value, _options) {\n return [new Date(value * 1000), {\n timestampIsSet: true\n }];\n },\n incompatibleTokens: '*'\n },\n // Milliseconds timestamp\n T: {\n priority: 20,\n parse: function (string, _token, _match, _options) {\n return parseAnyDigitsSigned(string);\n },\n set: function (_date, _flags, value, _options) {\n return [new Date(value), {\n timestampIsSet: true\n }];\n },\n incompatibleTokens: '*'\n }\n};\nexport default parsers;","import defaultLocale from '../locale/en-US/index.js';\nimport subMilliseconds from '../subMilliseconds/index.js';\nimport toDate from '../toDate/index.js';\nimport assign from '../_lib/assign/index.js';\nimport longFormatters from '../_lib/format/longFormatters/index.js';\nimport getTimezoneOffsetInMilliseconds from '../_lib/getTimezoneOffsetInMilliseconds/index.js';\nimport { isProtectedDayOfYearToken, isProtectedWeekYearToken, throwProtectedError } from '../_lib/protectedTokens/index.js';\nimport toInteger from '../_lib/toInteger/index.js';\nimport parsers from './_lib/parsers/index.js';\nimport requiredArgs from '../_lib/requiredArgs/index.js';\nvar TIMEZONE_UNIT_PRIORITY = 10; // This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\n\nvar formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\n\nvar longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\nvar escapedStringRegExp = /^'([^]*?)'?$/;\nvar doubleQuoteRegExp = /''/g;\nvar notWhitespaceRegExp = /\\S/;\nvar unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n/**\n * @name parse\n * @category Common Helpers\n * @summary Parse the date.\n *\n * @description\n * Return the date parsed from string using the given format string.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://git.io/fxCyr\n *\n * The characters in the format string wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n *\n * Format of the format string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 5 below the table).\n *\n * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited\n * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:\n *\n * ```javascript\n * parse('23 AM', 'HH a', new Date())\n * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time\n * ```\n *\n * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true\n *\n * Accepted format string patterns:\n * | Unit |Prior| Pattern | Result examples | Notes |\n * |---------------------------------|-----|---------|-----------------------------------|-------|\n * | Era | 140 | G..GGG | AD, BC | |\n * | | | GGGG | Anno Domini, Before Christ | 2 |\n * | | | GGGGG | A, B | |\n * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 |\n * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 |\n * | | | yy | 44, 01, 00, 17 | 4 |\n * | | | yyy | 044, 001, 123, 999 | 4 |\n * | | | yyyy | 0044, 0001, 1900, 2017 | 4 |\n * | | | yyyyy | ... | 2,4 |\n * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 |\n * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 |\n * | | | YY | 44, 01, 00, 17 | 4,6 |\n * | | | YYY | 044, 001, 123, 999 | 4 |\n * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 |\n * | | | YYYYY | ... | 2,4 |\n * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 |\n * | | | RR | -43, 01, 00, 17 | 4,5 |\n * | | | RRR | -043, 001, 123, 999, -999 | 4,5 |\n * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 |\n * | | | RRRRR | ... | 2,4,5 |\n * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 |\n * | | | uu | -43, 01, 99, -99 | 4 |\n * | | | uuu | -043, 001, 123, 999, -999 | 4 |\n * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 |\n * | | | uuuuu | ... | 2,4 |\n * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | |\n * | | | Qo | 1st, 2nd, 3rd, 4th | 5 |\n * | | | QQ | 01, 02, 03, 04 | |\n * | | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | |\n * | | | qo | 1st, 2nd, 3rd, 4th | 5 |\n * | | | qq | 01, 02, 03, 04 | |\n * | | | qqq | Q1, Q2, Q3, Q4 | |\n * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | | qqqqq | 1, 2, 3, 4 | 3 |\n * | Month (formatting) | 110 | M | 1, 2, ..., 12 | |\n * | | | Mo | 1st, 2nd, ..., 12th | 5 |\n * | | | MM | 01, 02, ..., 12 | |\n * | | | MMM | Jan, Feb, ..., Dec | |\n * | | | MMMM | January, February, ..., December | 2 |\n * | | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | |\n * | | | Lo | 1st, 2nd, ..., 12th | 5 |\n * | | | LL | 01, 02, ..., 12 | |\n * | | | LLL | Jan, Feb, ..., Dec | |\n * | | | LLLL | January, February, ..., December | 2 |\n * | | | LLLLL | J, F, ..., D | |\n * | Local week of year | 100 | w | 1, 2, ..., 53 | |\n * | | | wo | 1st, 2nd, ..., 53th | 5 |\n * | | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 |\n * | | | Io | 1st, 2nd, ..., 53th | 5 |\n * | | | II | 01, 02, ..., 53 | 5 |\n * | Day of month | 90 | d | 1, 2, ..., 31 | |\n * | | | do | 1st, 2nd, ..., 31st | 5 |\n * | | | dd | 01, 02, ..., 31 | |\n * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 |\n * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 |\n * | | | DD | 01, 02, ..., 365, 366 | 7 |\n * | | | DDD | 001, 002, ..., 365, 366 | |\n * | | | DDDD | ... | 2 |\n * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | | EEEEE | M, T, W, T, F, S, S | |\n * | | | EEEEEE | Mo, Tu, We, Th, Fr, Su, Sa | |\n * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |\n * | | | io | 1st, 2nd, ..., 7th | 5 |\n * | | | ii | 01, 02, ..., 07 | 5 |\n * | | | iii | Mon, Tue, Wed, ..., Sun | 5 |\n * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |\n * | | | iiiii | M, T, W, T, F, S, S | 5 |\n * | | | iiiiii | Mo, Tu, We, Th, Fr, Su, Sa | 5 |\n * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |\n * | | | eo | 2nd, 3rd, ..., 1st | 5 |\n * | | | ee | 02, 03, ..., 01 | |\n * | | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | | eeeee | M, T, W, T, F, S, S | |\n * | | | eeeeee | Mo, Tu, We, Th, Fr, Su, Sa | |\n * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |\n * | | | co | 2nd, 3rd, ..., 1st | 5 |\n * | | | cc | 02, 03, ..., 01 | |\n * | | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | | ccccc | M, T, W, T, F, S, S | |\n * | | | cccccc | Mo, Tu, We, Th, Fr, Su, Sa | |\n * | AM, PM | 80 | a..aaa | AM, PM | |\n * | | | aaaa | a.m., p.m. | 2 |\n * | | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | |\n * | | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | | bbbbb | a, p, n, mi | |\n * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | |\n * | | | BBBB | at night, in the morning, ... | 2 |\n * | | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | |\n * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 |\n * | | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | |\n * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 |\n * | | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | |\n * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 |\n * | | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | |\n * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 |\n * | | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | 60 | m | 0, 1, ..., 59 | |\n * | | | mo | 0th, 1st, ..., 59th | 5 |\n * | | | mm | 00, 01, ..., 59 | |\n * | Second | 50 | s | 0, 1, ..., 59 | |\n * | | | so | 0th, 1st, ..., 59th | 5 |\n * | | | ss | 00, 01, ..., 59 | |\n * | Seconds timestamp | 40 | t | 512969520 | |\n * | | | tt | ... | 2 |\n * | Fraction of second | 30 | S | 0, 1, ..., 9 | |\n * | | | SS | 00, 01, ..., 99 | |\n * | | | SSS | 000, 0001, ..., 999 | |\n * | | | SSSS | ... | 2 |\n * | Milliseconds timestamp | 20 | T | 512969520900 | |\n * | | | TT | ... | 2 |\n * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | |\n * | | | XX | -0800, +0530, Z | |\n * | | | XXX | -08:00, +05:30, Z | |\n * | | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | |\n * | | | xx | -0800, +0530, +0000 | |\n * | | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Long localized date | NA | P | 05/29/1453 | 5,8 |\n * | | | PP | May 29, 1453 | |\n * | | | PPP | May 29th, 1453 | |\n * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 |\n * | Long localized time | NA | p | 12:00 AM | 5,8 |\n * | | | pp | 12:00:00 AM | |\n * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | |\n * | | | PPpp | May 29, 1453, 12:00:00 AM | |\n * | | | PPPpp | May 29th, 1453 at ... | |\n * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular.\n * In `format` function, they will produce different result:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * `parse` will try to match both formatting and stand-alone units interchangably.\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table:\n * - for numerical units (`yyyyyyyy`) `parse` will try to match a number\n * as wide as the sequence\n * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit.\n * These variations are marked with \"2\" in the last column of the table.\n *\n * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 4. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:\n *\n * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00`\n *\n * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00`\n *\n * while `uu` will just assign the year as is:\n *\n * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00`\n *\n * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00`\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [setISOWeekYear]{@link https://date-fns.org/docs/setISOWeekYear}\n * and [setWeekYear]{@link https://date-fns.org/docs/setWeekYear}).\n *\n * 5. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://git.io/fxCyr\n *\n * 7. `D` and `DD` tokens represent days of the year but they are ofthen confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://git.io/fxCyr\n *\n * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based\n * on the given locale.\n *\n * using `en-US` locale: `P` => `MM/dd/yyyy`\n * using `en-US` locale: `p` => `hh:mm a`\n * using `pt-BR` locale: `P` => `dd/MM/yyyy`\n * using `pt-BR` locale: `p` => `HH:mm`\n *\n * Values will be assigned to the date in the descending order of its unit's priority.\n * Units of an equal priority overwrite each other in the order of appearance.\n *\n * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),\n * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing.\n *\n * `referenceDate` must be passed for correct work of the function.\n * If you're not sure which `referenceDate` to supply, create a new instance of Date:\n * `parse('02/11/2014', 'MM/dd/yyyy', new Date())`\n * In this case parsing will be done in the context of the current date.\n * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`,\n * then `Invalid Date` will be returned.\n *\n * The result may vary by locale.\n *\n * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.\n *\n * If parsing failed, `Invalid Date` will be returned.\n * Invalid Date is a Date, whose time value is NaN.\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * - Old `parse` was renamed to `toDate`.\n * Now `parse` is a new function which parses a string using a provided format.\n *\n * ```javascript\n * // Before v2.0.0\n * parse('2016-01-01')\n *\n * // v2.0.0 onward\n * toDate('2016-01-01')\n * parse('2016-01-01', 'yyyy-MM-dd', new Date())\n * ```\n *\n * @param {String} dateString - the string to parse\n * @param {String} formatString - the string of tokens\n * @param {Date|Number} referenceDate - defines values missing from the parsed dateString\n * @param {Object} [options] - an object with options.\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @param {1|2|3|4|5|6|7} [options.firstWeekContainsDate=1] - the day of January, which is always in the first week of the year\n * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;\n * see: https://git.io/fxCyr\n * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;\n * see: https://git.io/fxCyr\n * @returns {Date} the parsed date\n * @throws {TypeError} 3 arguments required\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7\n * @throws {RangeError} `options.locale` must contain `match` property\n * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr\n * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://git.io/fxCyr\n * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr\n * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://git.io/fxCyr\n * @throws {RangeError} format string contains an unescaped latin alphabet character\n *\n * @example\n * // Parse 11 February 2014 from middle-endian format:\n * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date())\n * //=> Tue Feb 11 2014 00:00:00\n *\n * @example\n * // Parse 28th of February in Esperanto locale in the context of 2010 year:\n * import eo from 'date-fns/locale/eo'\n * var result = parse('28-a de februaro', \"do 'de' MMMM\", new Date(2010, 0, 1), {\n * locale: eo\n * })\n * //=> Sun Feb 28 2010 00:00:00\n */\n\nexport default function parse(dirtyDateString, dirtyFormatString, dirtyReferenceDate, dirtyOptions) {\n requiredArgs(3, arguments);\n var dateString = String(dirtyDateString);\n var formatString = String(dirtyFormatString);\n var options = dirtyOptions || {};\n var locale = options.locale || defaultLocale;\n\n if (!locale.match) {\n throw new RangeError('locale must contain match property');\n }\n\n var localeFirstWeekContainsDate = locale.options && locale.options.firstWeekContainsDate;\n var defaultFirstWeekContainsDate = localeFirstWeekContainsDate == null ? 1 : toInteger(localeFirstWeekContainsDate);\n var firstWeekContainsDate = options.firstWeekContainsDate == null ? defaultFirstWeekContainsDate : toInteger(options.firstWeekContainsDate); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN\n\n if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {\n throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');\n }\n\n var localeWeekStartsOn = locale.options && locale.options.weekStartsOn;\n var defaultWeekStartsOn = localeWeekStartsOn == null ? 0 : toInteger(localeWeekStartsOn);\n var weekStartsOn = options.weekStartsOn == null ? defaultWeekStartsOn : toInteger(options.weekStartsOn); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\n\n if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');\n }\n\n if (formatString === '') {\n if (dateString === '') {\n return toDate(dirtyReferenceDate);\n } else {\n return new Date(NaN);\n }\n }\n\n var subFnOptions = {\n firstWeekContainsDate: firstWeekContainsDate,\n weekStartsOn: weekStartsOn,\n locale: locale // If timezone isn't specified, it will be set to the system timezone\n\n };\n var setters = [{\n priority: TIMEZONE_UNIT_PRIORITY,\n subPriority: -1,\n set: dateToSystemTimezone,\n index: 0\n }];\n var i;\n var tokens = formatString.match(longFormattingTokensRegExp).map(function (substring) {\n var firstCharacter = substring[0];\n\n if (firstCharacter === 'p' || firstCharacter === 'P') {\n var longFormatter = longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong, subFnOptions);\n }\n\n return substring;\n }).join('').match(formattingTokensRegExp);\n var usedTokens = [];\n\n for (i = 0; i < tokens.length; i++) {\n var token = tokens[i];\n\n if (!options.useAdditionalWeekYearTokens && isProtectedWeekYearToken(token)) {\n throwProtectedError(token, formatString, dirtyDateString);\n }\n\n if (!options.useAdditionalDayOfYearTokens && isProtectedDayOfYearToken(token)) {\n throwProtectedError(token, formatString, dirtyDateString);\n }\n\n var firstCharacter = token[0];\n var parser = parsers[firstCharacter];\n\n if (parser) {\n var incompatibleTokens = parser.incompatibleTokens;\n\n if (Array.isArray(incompatibleTokens)) {\n var incompatibleToken = void 0;\n\n for (var _i = 0; _i < usedTokens.length; _i++) {\n var usedToken = usedTokens[_i].token;\n\n if (incompatibleTokens.indexOf(usedToken) !== -1 || usedToken === firstCharacter) {\n incompatibleToken = usedTokens[_i];\n break;\n }\n }\n\n if (incompatibleToken) {\n throw new RangeError(\"The format string mustn't contain `\".concat(incompatibleToken.fullToken, \"` and `\").concat(token, \"` at the same time\"));\n }\n } else if (parser.incompatibleTokens === '*' && usedTokens.length) {\n throw new RangeError(\"The format string mustn't contain `\".concat(token, \"` and any other token at the same time\"));\n }\n\n usedTokens.push({\n token: firstCharacter,\n fullToken: token\n });\n var parseResult = parser.parse(dateString, token, locale.match, subFnOptions);\n\n if (!parseResult) {\n return new Date(NaN);\n }\n\n setters.push({\n priority: parser.priority,\n subPriority: parser.subPriority || 0,\n set: parser.set,\n validate: parser.validate,\n value: parseResult.value,\n index: setters.length\n });\n dateString = parseResult.rest;\n } else {\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');\n } // Replace two single quote characters with one single quote character\n\n\n if (token === \"''\") {\n token = \"'\";\n } else if (firstCharacter === \"'\") {\n token = cleanEscapedString(token);\n } // Cut token from string, or, if string doesn't match the token, return Invalid Date\n\n\n if (dateString.indexOf(token) === 0) {\n dateString = dateString.slice(token.length);\n } else {\n return new Date(NaN);\n }\n }\n } // Check if the remaining input contains something other than whitespace\n\n\n if (dateString.length > 0 && notWhitespaceRegExp.test(dateString)) {\n return new Date(NaN);\n }\n\n var uniquePrioritySetters = setters.map(function (setter) {\n return setter.priority;\n }).sort(function (a, b) {\n return b - a;\n }).filter(function (priority, index, array) {\n return array.indexOf(priority) === index;\n }).map(function (priority) {\n return setters.filter(function (setter) {\n return setter.priority === priority;\n }).sort(function (a, b) {\n return b.subPriority - a.subPriority;\n });\n }).map(function (setterArray) {\n return setterArray[0];\n });\n var date = toDate(dirtyReferenceDate);\n\n if (isNaN(date)) {\n return new Date(NaN);\n } // Convert the date in system timezone to the same date in UTC+00:00 timezone.\n // This ensures that when UTC functions will be implemented, locales will be compatible with them.\n // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/37\n\n\n var utcDate = subMilliseconds(date, getTimezoneOffsetInMilliseconds(date));\n var flags = {};\n\n for (i = 0; i < uniquePrioritySetters.length; i++) {\n var setter = uniquePrioritySetters[i];\n\n if (setter.validate && !setter.validate(utcDate, setter.value, subFnOptions)) {\n return new Date(NaN);\n }\n\n var result = setter.set(utcDate, flags, setter.value, subFnOptions); // Result is tuple (date, flags)\n\n if (result[0]) {\n utcDate = result[0];\n assign(flags, result[1]); // Result is date\n } else {\n utcDate = result;\n }\n }\n\n return utcDate;\n}\n\nfunction dateToSystemTimezone(date, flags) {\n if (flags.timestampIsSet) {\n return date;\n }\n\n var convertedDate = new Date(0);\n convertedDate.setFullYear(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDate());\n convertedDate.setHours(date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds());\n return convertedDate;\n}\n\nfunction cleanEscapedString(input) {\n return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, \"'\");\n}","import { ECustomFieldType, EParseType } from './../utils/enums/index'\nimport { exhaustiveCheck } from './../utils/helpers'\nimport { TParserSettingItem } from './../utils/types/index'\nimport { TOptions } from './../utils/types/model/fieldDefinition'\n\ntype TCommonProps = {\n type: ECustomFieldType.TEXT | ECustomFieldType.NUMBER | ECustomFieldType.EMAIL | ECustomFieldType.DATE\n}\ntype TPhoneProps = {\n type: ECustomFieldType.PHONE_NUMBER\n countryCode: string\n}\ntype TSelectProps = {\n type: ECustomFieldType.SINGLE_SELECT | ECustomFieldType.MULTI_SELECT\n selections: TOptions\n}\n\ntype TParsableField = {\n key: string\n label: string\n} & (TCommonProps | TPhoneProps | TSelectProps)\n\nfunction parseExternalId(externalId: string, parsableFields: TParsableField[], parserSettings: TParserSettingItem[]) {\n const toArray = (modelValue: string | string[]) => (typeof modelValue === 'string' ? [modelValue] : modelValue)\n const selectionLabel2key = (field: TSelectProps, selectionLabels: string[]) =>\n selectionLabels.map(\n (label) => Object.entries(field.selections ?? []).find((selection) => selection[1].label === label)?.[0] ?? ''\n )\n\n const parse = (parseStr: string, setting: TParserSettingItem): string | string[] => {\n switch (setting.parserType) {\n case EParseType.REGEX:\n const parsedResults = parseStr.match(new RegExp(setting.regexRule, 'g')) ?? []\n return setting.index ? parsedResults[(setting.index ?? 1) - 1] ?? [] : parsedResults\n case EParseType.LENGTH:\n return parseStr.substring(setting.startPosition, setting.endPosition)\n case EParseType.DELIMITER:\n return parseStr.split(setting.delimiter)[setting.index - 1] ?? ''\n default:\n exhaustiveCheck(setting)\n }\n }\n\n const isSelectField = (field: TCommonProps | TPhoneProps | TSelectProps): field is TSelectProps =>\n [ECustomFieldType.SINGLE_SELECT, ECustomFieldType.MULTI_SELECT].includes(field?.type)\n\n const parsedFields: Record = {}\n parserSettings.forEach((setting) => {\n const fieldPath = setting.targetFieldPath\n const field = parsableFields.find((f) => f.key === fieldPath)!\n const modelValue = parse(externalId, setting)\n\n if (isSelectField(field)) {\n if (field?.type === ECustomFieldType.SINGLE_SELECT) {\n parsedFields[fieldPath] = selectionLabel2key(field, toArray(modelValue))[0]\n } else if (field?.type === ECustomFieldType.MULTI_SELECT) {\n parsedFields[fieldPath] = selectionLabel2key(field, toArray(modelValue))\n }\n } else {\n parsedFields[fieldPath] = Array.isArray(modelValue) ? modelValue[0] : modelValue\n }\n })\n\n return parsedFields\n}\n\nexport { parseExternalId, TParsableField, TCommonProps, TPhoneProps, TSelectProps }\n","\nimport BaseInput from '@/components/BaseInput.vue'\nimport ReviewCalculationDialog from '@/components/dialog/ReviewCalculationDialog.vue'\nimport FormBuilder from '@/components/FormBuilder.vue'\nimport CustomFieldsMixin from '@/components/mixins/CustomFieldsMixin.vue'\nimport {\n CLEAR_SCANNED_UPLOAD_STATUS,\n RESET_SCANNED_BARCODE_BLOB,\n SAVE_SCANNED_EXTERNAL_ID,\n SET_BARCODE_FORM_STEP,\n} from '@/store/actions'\nimport { reviewCalculation } from '@/utils/api'\nimport errorHandler from '@/utils/errorHandler'\nimport mitt from '@/utils/mitt'\nimport { serverMappingValidate } from '@/utils/validator'\nimport { format, isValid, parse } from 'date-fns'\nimport { cloneDeep } from 'lodash'\nimport isEqual from 'lodash/isEqual'\nimport { parseExternalId, TParsableField } from 'smartbarcode-web-core/src/bo/externalId'\nimport { DATE_TIME } from 'smartbarcode-web-core/src/utils/constants'\nimport { ECustomFieldType, EUserType } from 'smartbarcode-web-core/src/utils/enums/index'\nimport { isEmpty, isObjectValueEmpty } from 'smartbarcode-web-core/src/utils/typeChecker'\nimport {\n IActivationFields,\n IBarcode,\n IDimension,\n IProduct,\n IProject,\n ITrackingNumber,\n IValidationRule,\n TError,\n TFormSchema,\n} from 'smartbarcode-web-core/src/utils/types/index'\nimport { mixins, Options } from 'vue-class-component'\nimport { Prop, ProvideReactive, Watch } from 'vue-property-decorator'\n\n@Options({\n components: {\n BaseInput,\n FormBuilder,\n ReviewCalculationDialog,\n },\n emits: ['update:dimension'],\n name: 'PackageInfoView',\n})\nexport default class PackageInfoView extends mixins(CustomFieldsMixin) {\n @ProvideReactive() currentBarcodeType = ''\n @Prop({ type: String }) readonly barcodeType = ''\n @Prop({ type: String }) readonly trackingNumber?: string\n @Prop({ type: String }) readonly externalId?: string\n @Prop({ type: String }) readonly productId?: string = ''\n @Prop({ type: Object }) readonly dimension?: IDimension\n\n step = 4\n customFieldsModel: Record = {}\n imagesFromOCR: Record = {}\n temporaryFieldsOCRImages: Record = {}\n loading = false\n isShowCalculationDialog = false\n calculationContent = ''\n\n readonly defaultDimension = { width: '', height: '', depth: '', weight: '' }\n\n dimensionFormSchema: TFormSchema = {}\n selectedTarget = ''\n trackingNumber_ = ''\n externalId_ = ''\n productId_ = ''\n dimension_: Record = { ...this.defaultDimension }\n\n // Error validate tracking number\n errorTrackingNumber = ''\n errorExternalId = ''\n selectedProductIndex = 0\n targetRefButton = {} as HTMLElement | null\n\n get isExternalIdOcrAvailable() {\n return this.activationFields?.externalId?.ocrReaderType\n }\n\n get isExternalIdBarcodeReaderAvailable() {\n return this.activationFields?.externalId?.barcodeReaderType\n }\n\n get isTrackingNumberOcrAvailable() {\n return this.activationFields?.trackingNumber?.ocrReaderType\n }\n\n get isTrackingNumberBarcodeReaderAvailable() {\n return this.activationFields?.trackingNumber?.barcodeReaderType\n }\n\n get cloneScannedExternalId() {\n return cloneDeep(this.$store.state.barcode?.scannedExternalId) || this.externalId\n }\n\n get project(): IProject {\n return this.$store.state.project?.details\n }\n\n get barcode(): IBarcode {\n return this.$store.state.barcode?.barcode\n }\n\n get activationFields(): IActivationFields {\n return this.project.barcodeTypes[this.barcodeType]?.activationFields\n }\n\n get isFABButtonAvailable() {\n return this.project.barcodeTypes[this.barcodeType]?.isFloatingActionButton || false\n }\n\n get isTrackingNumberAvailable(): boolean {\n return this.activationFields?.trackingNumber?.isAvailable\n }\n\n get isExternalIdAvailable(): boolean {\n return this.activationFields?.externalId?.isAvailable\n }\n\n get isExternalIdMandatory(): boolean {\n return this.activationFields?.externalId?.isMandatory\n }\n\n get trackingNumberName(): string {\n return (\n this.project.barcodeTypes[this.barcodeType]?.activationFields?.trackingNumber?.label || this.$t('tracking_number')\n )\n }\n\n get trackingNumberDefault(): string {\n return this.project.barcodeTypes[this.barcodeType]?.activationFields?.trackingNumber?.default\n }\n\n async reviewCalculation(calculationFieldKey: string) {\n this.appendOCRImage()\n const reviewPayload = {\n field: 'activationData',\n customFieldKey: calculationFieldKey,\n barcode: {\n ...this.barcode,\n barcodeType: this.currentBarcodeType,\n activationData: {\n ...this.barcode.activationData,\n productId: this.productId_,\n ...(this.isTrackingNumberAvailable && {\n trackingNumber: this.trackingNumber_,\n }),\n ...(this.isExternalIdAvailable && {\n externalId: this.externalId_,\n }),\n ...(this.isDimensionAvailable && {\n dimension: this.dimension_,\n }),\n customFields: { ...this.generateCustomDataForRequest },\n },\n },\n }\n this.loading = true\n try {\n this.calculationContent = (await reviewCalculation(reviewPayload)).data\n } catch (e) {\n errorHandler(e as TError)\n }\n this.isShowCalculationDialog = true\n this.loading = false\n }\n\n get isTrackingNumberMandatory(): boolean {\n return this.activationFields?.trackingNumber?.isMandatory\n }\n\n get isDimensionAvailable(): boolean {\n return this.activationFields?.dimension?.isAvailable\n }\n\n get isDimensionMandatory(): boolean {\n return this.activationFields?.dimension?.isMandatory\n }\n\n get customForm() {\n const flattenActivateData = Object.keys(this.activationFields || {})\n .filter((key) => key.match(/^custom[a-zA-Z]*Fields/g))\n .reduce((acc, cur) => {\n return {\n ...acc,\n [cur]: this.activationFields[cur as keyof IActivationFields],\n }\n }, {})\n return flattenActivateData\n }\n\n get externalIdValidationRule(): ITrackingNumber {\n return this.activationFields.externalId\n }\n\n get externalIdMinLength(): number {\n return this.externalIdValidationRule.minLength\n }\n\n get externalIdMaxLength(): number {\n return this.externalIdValidationRule?.maxLength\n }\n\n get trackingNumberValidationRule(): ITrackingNumber {\n return this.activationFields.trackingNumber\n }\n\n get trackingNumberMinLength(): number {\n return this.trackingNumberValidationRule.minLength\n }\n\n get trackingNumberMaxLength(): number {\n return this.trackingNumberValidationRule?.maxLength\n }\n\n get isClient(): boolean {\n return this.$store.getters.userType === EUserType.CLIENT\n }\n\n get products() {\n const products = this.$store.state.project.products\n const product = products.find((e: IProduct) => e.id === this.barcode?.product?.id) || this.barcode?.product\n\n if (this.isClient && products.length) {\n return [{ code: '', name: this.$t('Direct Input') }, ...this.$store.state.project.products]\n }\n\n if (product && isEmpty(this.dimension)) {\n return [\n { code: '', name: this.$t('Direct Input') },\n { code: '', name: product.name },\n ]\n }\n\n return [{ code: '', name: this.$t('Direct Input') }]\n }\n\n get validateCustomFields() {\n return this.$refs.customFieldsForm?.validateAll()\n }\n\n get isAutoSaveOcrImageTrackingNumber(): string {\n return this.activationFields.trackingNumber?.ocrImageAutoSaveField || ''\n }\n\n get isAutoSaveOcrImageExternalId(): string {\n return this.activationFields.externalId?.ocrImageAutoSaveField || ''\n }\n\n onExternalIdChanged(externalId: string) {\n try {\n const parseExternalIdIfExist = () => {\n const customFields = this.activationFields.customFields\n if (!isEmpty(this.activationFields.externalId.parsers)) {\n const paths = (this.activationFields.externalId.parsers ?? []).map((s) => s.targetFieldPath)\n const parsableFields: TParsableField[] = [\n { key: 'trackingNumber', label: this.$t('tracking_number'), type: ECustomFieldType.TEXT, selections: {} },\n { key: 'dimension.width', label: this.$t('width'), type: ECustomFieldType.NUMBER, selections: {} },\n { key: 'dimension.weight', label: this.$t('weight'), type: ECustomFieldType.NUMBER, selections: {} },\n { key: 'dimension.height', label: this.$t('height'), type: ECustomFieldType.NUMBER, selections: {} },\n { key: 'dimension.depth', label: this.$t('depth'), type: ECustomFieldType.NUMBER, selections: {} },\n ...Object.entries(customFields).map(([k, v]) => ({\n key: `customFields.${k}`,\n label: v.label,\n type: v.fieldType,\n selections: { ...(!isEmpty(v.selections) && v.selections) },\n })),\n ].filter((f) => paths.includes(f.key)) as TParsableField[]\n\n Object.entries(\n parseExternalId(externalId, parsableFields, this.activationFields.externalId.parsers!)\n ).forEach(([k, v]) => {\n if (k.includes('customFields.')) {\n this.parseCustomFields(k, v)\n } else if (k.includes('dimension.')) {\n this.dimension_[k.replace(/dimension\\./g, '')] = v as string\n } else {\n this.trackingNumber_ = v as string\n }\n })\n }\n }\n\n parseExternalIdIfExist()\n } catch (error) {\n // Implement error handler\n }\n }\n\n parseCustomFields(k: string, v: string | string[]) {\n const customField = this.activationFields.customFields[k.replace(/customFields\\./g, '')]\n try {\n if (customField.fieldType === ECustomFieldType.DATE) {\n // Define the format of the input string\n // Define possible input formats\n const formats = ['yyyy/MM/dd', 'MM/dd/yyyy', 'MMMM d, yyyy', 'yyyy-MM-dd', 'MM-dd-yyyy', 'yyyyMMdd', 'MMddyyyy']\n\n let parsedDate\n\n for (const inputFormat of formats) {\n parsedDate = parse(v as string, inputFormat, new Date())\n\n // Check if the parsed date is valid\n if (isValid(parsedDate)) {\n break\n }\n }\n\n if (!isValid(parsedDate)) {\n throw new Error('Invalid date format')\n }\n const formattedDate = format(parsedDate as Date, 'yyyy-MM-dd')\n this.formModel[k.replace(/customFields\\./g, '')] = formattedDate\n } else {\n this.formModel[k.replace(/customFields\\./g, '')] = v\n }\n } catch (error) {\n // Implement error handler later\n }\n }\n\n handleError() {\n if (this.barcode?.id) {\n this.$router.push({\n name: 'detail',\n params: {\n barcodeId: this.barcode?.id,\n },\n })\n } else {\n this.$router.push({\n name: 'home',\n params: {\n project: this.$store.getters.projectParam,\n },\n })\n }\n }\n\n shouldSkipValidateDemension() {\n // Need validate if is mandatory\n if (this.isDimensionMandatory) {\n return false\n }\n\n return isObjectValueEmpty(this.dimension_)\n }\n\n @Watch('trackingNumber_')\n onTrackingNumberChange() {\n this.clearError()\n this.validateTrackingNumber()\n }\n\n @Watch('externalId_')\n onExternalIdChange() {\n this.clearError()\n this.validateExternalId()\n }\n\n disableDimensionInput(disabled: boolean) {\n Object.entries(this.dimensionFormSchema).forEach(([key, value]) => {\n this.dimensionFormSchema[key] = {\n ...value,\n disabled,\n }\n })\n }\n\n onSelectProduct(value: number) {\n if (value > 0) {\n const products: IProduct[] = this.$store.state.project.products\n const barcodeDimension = this.barcode?.activationData?.dimension || {}\n const product = products.find((e: IProduct) => e.id === this.barcode?.product?.id) || this.barcode?.product\n if (isEmpty(barcodeDimension) && !isEmpty(product?.dimension)) {\n this.dimension_ = (product?.dimension as unknown) as Record\n this.productId_ = product?.id || ''\n this.disableDimensionInput(true)\n } else {\n const products = this.$store.state.project.products\n this.dimension_ = { ...products[value - 1].dimension }\n this.productId_ = products[value - 1].id\n this.disableDimensionInput(true)\n }\n } else {\n this.dimension_ = { ...this.defaultDimension }\n this.productId_ = ''\n this.disableDimensionInput(false)\n }\n }\n\n onFormSubmit(): void {\n const isValidTrackingNumber = this.validateTrackingNumber()\n const isValidExternalId = this.validateExternalId()\n const isValidCustomFields = this.validateCustomFields\n\n if (!isValidTrackingNumber || !isValidCustomFields || !isValidExternalId) return\n\n return this.$refs.customFieldsForm?.performUpload(() => {\n this.appendOCRImage()\n this.$emit('update:dimension', {\n productId: this.productId_,\n ...(this.isTrackingNumberAvailable && {\n trackingNumber: this.trackingNumber_,\n }),\n ...(this.isExternalIdAvailable && {\n externalId: this.externalId_,\n }),\n ...(this.isDimensionAvailable && {\n dimension: this.dimension_,\n }),\n customFields: { ...this.generateCustomDataForRequest },\n })\n\n // Clear temporary data\n this.$store.commit(CLEAR_SCANNED_UPLOAD_STATUS)\n this.$store.commit(RESET_SCANNED_BARCODE_BLOB)\n this.imagesFromOCR = {}\n this.temporaryFieldsOCRImages = {}\n })\n }\n\n validateExternalId(): boolean {\n // If ExternalId is mandatory, allowNullOrEmpty should be false\n // It mean we have to validate it as required\n if (!this.isExternalIdAvailable) return true\n\n const validateRules: IValidationRule = {\n ...this.externalIdValidationRule,\n ...(this.isExternalIdMandatory ? { allowNullOrEmpty: false } : { allowNullOrEmpty: true }),\n }\n\n if (!validateRules) {\n this.clearError()\n return true\n }\n\n const field = this.$t('externalId')\n this.errorExternalId = serverMappingValidate(validateRules, field, this.externalId_) || ''\n return !this.errorExternalId\n }\n\n validateTrackingNumber(): boolean {\n // If tracking number is mandatory, allowNullOrEmpty should be false\n // It mean we have to validate it as required\n if (!this.isTrackingNumberAvailable) {\n return true\n }\n const validateRules: IValidationRule = {\n ...this.trackingNumberValidationRule,\n ...(this.isTrackingNumberMandatory ? { allowNullOrEmpty: false } : { allowNullOrEmpty: true }),\n }\n\n if (!validateRules) {\n this.clearError()\n return true\n }\n\n const field = this.$t('Tracking Number')\n this.errorTrackingNumber = serverMappingValidate(validateRules, field, this.trackingNumber_) || ''\n return !this.errorTrackingNumber\n }\n\n clearError() {\n this.errorTrackingNumber = ''\n this.errorExternalId = ''\n }\n\n created() {\n this.currentBarcodeType = this.barcodeType\n if (!this.barcodeType) {\n this.$router.replace({\n name: 'detail',\n params: {\n project: this.$store.getters.projectParam,\n barcodeId: this.$store.state.barcode.barcode.id,\n },\n })\n return\n }\n this.$store.commit(SET_BARCODE_FORM_STEP, this.step)\n\n if (!this.activationFields) {\n this.handleError()\n }\n\n if (\n !this.isDimensionAvailable &&\n !this.isTrackingNumberAvailable &&\n !this.isExternalIdAvailable &&\n isEmpty(this.customForm)\n ) {\n this.$emit('update:dimension')\n }\n\n // Dimension form\n if (this.isDimensionAvailable) {\n this.dimensionFormSchema = {\n width: {\n label: this.$t('width'),\n // This always true, mandatory should check for whole form\n // See shouldSkipValidate Dimension\n isMandatory: true,\n width: 8,\n mask: '#*.#*',\n inputType: 'decimal',\n disabled: false,\n isShowControlButton: false,\n },\n height: {\n label: this.$t('height'),\n isMandatory: true, // see width\n width: 8,\n mask: '#*.#*',\n inputType: 'decimal',\n disabled: false,\n isShowControlButton: false,\n },\n depth: {\n label: this.$t('depth'),\n isMandatory: true, // see width\n width: 8,\n mask: '#*.#*',\n inputType: 'decimal',\n disabled: false,\n isShowControlButton: false,\n },\n weight: {\n label: this.$t('weight'),\n isMandatory: true, // see width\n width: 8,\n mask: '#*.#*',\n inputType: 'decimal',\n disabled: false,\n isShowControlButton: false,\n },\n }\n }\n // products available\n if (this.productId) {\n const products: IProduct[] = this.$store.state.project.products\n const productDimension = this.barcode?.product?.dimension\n const barcodeDimension = this.barcode?.activationData?.dimension || {}\n this.productId_ = this.productId\n const product = products.find((e: IProduct) => e.id === this.barcode?.product?.id) || this.barcode?.product\n if (isEmpty(barcodeDimension) && !isEmpty(product?.dimension)) {\n this.selectedProductIndex = this.products.findIndex((e) => e.name === product?.name)\n } else {\n this.selectedProductIndex = isEqual(barcodeDimension, productDimension)\n ? products.findIndex((e: IProduct) => e.id === this.productId) + 1\n : 0\n }\n\n const dimension = {\n ...product?.dimension,\n ...barcodeDimension,\n } as IDimension\n if (dimension) {\n this.dimension_ = {\n width: `${dimension?.width || ''}`,\n height: `${dimension?.height || ''}`,\n depth: `${dimension?.depth || ''}`,\n weight: `${dimension?.weight || ''}`,\n }\n }\n this.disableDimensionInput(this.isClient || this.selectedProductIndex > 0)\n }\n if (this.dimension) {\n if (!this.productId) {\n this.dimension_ = {\n width: `${this.dimension.width || ''}`,\n height: `${this.dimension.height || ''}`,\n depth: `${this.dimension.depth || ''}`,\n weight: `${this.dimension.weight || ''}`,\n }\n }\n }\n\n // Generate model for custom fields\n this.generateCustomFormModel(this.barcode?.activationData)\n\n // set tracking number to field if available (Edit mode)\n if (this.isTrackingNumberAvailable) {\n this.trackingNumber_ = this.trackingNumber ?? this.trackingNumberDefault\n }\n // set externalId to field if available (Edit mode)\n if (this.isExternalIdAvailable) {\n this.handleGetExternalId()\n }\n if (this.externalId_) {\n this.onExternalIdChanged(this.externalId_)\n }\n }\n\n handleGetExternalId() {\n this.externalId_ = this.cloneScannedExternalId\n this.$store.dispatch(SAVE_SCANNED_EXTERNAL_ID, '')\n }\n\n appendOCRImage() {\n if (this.imagesFromOCR) {\n Object.keys(this.imagesFromOCR).forEach((key) => {\n this.formModel[key] = [...this.formModel?.[key], ...this.imagesFromOCR?.[key]]\n })\n }\n }\n\n mounted() {\n mitt.on('update:trackInfo', (event) => {\n this.formModel = Object.assign(this.formModel, event)\n })\n\n mitt.on('update:imageOCR', (event) => {\n this.saveOCRImage(event)\n })\n }\n\n beforeUnmount() {\n const button = this.targetRefButton as HTMLElement | null\n if (button && this.observer) {\n this.observer.unobserve(button)\n this.observer.disconnect()\n }\n }\n}\n","import { render } from \"./PackageInfo.vue?vue&type=template&id=3f36c77c&scoped=true\"\nimport script from \"./PackageInfo.vue?vue&type=script&lang=ts\"\nexport * from \"./PackageInfo.vue?vue&type=script&lang=ts\"\n\nimport \"./PackageInfo.vue?vue&type=style&index=0&id=3f36c77c&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-3f36c77c\"\n\nexport default script","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./InputSelectCountry.vue?vue&type=style&index=0&id=0fdd765e&lang=scss&scoped=true\"","/**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\nfunction baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n}\n\nmodule.exports = baseSlice;\n","var arrayMap = require('./_arrayMap'),\n baseClone = require('./_baseClone'),\n baseUnset = require('./_baseUnset'),\n castPath = require('./_castPath'),\n copyObject = require('./_copyObject'),\n customOmitClone = require('./_customOmitClone'),\n flatRest = require('./_flatRest'),\n getAllKeysIn = require('./_getAllKeysIn');\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable property paths of `object` that are not omitted.\n *\n * **Note:** This method is considerably slower than `_.pick`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\nvar omit = flatRest(function(object, paths) {\n var result = {};\n if (object == null) {\n return result;\n }\n var isDeep = false;\n paths = arrayMap(paths, function(path) {\n path = castPath(path, object);\n isDeep || (isDeep = path.length > 1);\n return path;\n });\n copyObject(object, getAllKeysIn(object), result);\n if (isDeep) {\n result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n }\n var length = paths.length;\n while (length--) {\n baseUnset(result, paths[length]);\n }\n return result;\n});\n\nmodule.exports = omit;\n","/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n}\n\nmodule.exports = last;\n","\n\n\n","\nimport ShippingInfo from '@/components/ShippingInfo.vue'\nimport { SET_BARCODE_FORM_STEP } from '@/store/actions'\nimport { EUserType } from 'smartbarcode-web-core/src/utils/enums/index'\nimport { IAddress, IBarcodeFormMultiDataTab, IProject } from 'smartbarcode-web-core/src/utils/types/index'\nimport { Options, Vue } from 'vue-class-component'\nimport { Emit, InjectReactive, Prop } from 'vue-property-decorator'\n\n@Options({\n components: {\n ShippingInfo,\n },\n emits: ['update:origin', 'update:onGotoStep'],\n name: 'ShippingSource',\n})\nexport default class ShippingSource extends Vue {\n step = 2\n @Prop({ type: String }) readonly barcodeType = ''\n @Prop({ type: Object }) readonly originAddress?: IAddress\n @InjectReactive() isShowArrow!: boolean\n\n created() {\n if (!this.barcodeType) {\n this.$router.replace({\n name: 'detail',\n params: {\n project: this.$store.getters.projectParam,\n barcodeId: this.$store.state.barcode.barcode.id,\n },\n })\n return\n }\n // skip this step if origin is unavailable from project settings\n if (!this.isAvailable) {\n if (this.$store.state.barcode.trackedStep > this.step) {\n this.$emit('update:onGotoStep', this.step - 1)\n } else {\n this.$emit('update:onGotoStep', this.step + 1)\n }\n }\n this.$store.commit(SET_BARCODE_FORM_STEP, this.step)\n }\n\n get project(): IProject {\n return this.$store.state.project?.details\n }\n\n get isAvailable() {\n return this.project.barcodeTypes[this.barcodeType]?.activationFields?.origin?.isAvailable\n }\n\n get isMandatory() {\n return this.project.barcodeTypes[this.barcodeType]?.activationFields?.origin?.isMandatory\n }\n\n // if originAddress is defined, it is in edit mode\n get isEditMode() {\n return this.$route.name === 'edit'\n }\n\n get address() {\n const store = this.$store.state.profile\n const { user, organization } = store\n\n if (this.isEditMode || this.originAddress) {\n return { ...this.originAddress }\n }\n\n if (user?.userType === EUserType.CLIENT) {\n return { ...organization.address }\n }\n return null\n }\n\n @Emit('update:origin')\n onSubmitForm(data: IAddress): IBarcodeFormMultiDataTab {\n return {\n origin: data,\n step: this.step + 1,\n }\n }\n}\n","import { render } from \"./ShippingSource.vue?vue&type=template&id=6e9253ae\"\nimport script from \"./ShippingSource.vue?vue&type=script&lang=ts\"\nexport * from \"./ShippingSource.vue?vue&type=script&lang=ts\"\nscript.render = render\n\nexport default script","var castPath = require('./_castPath'),\n last = require('./last'),\n parent = require('./_parent'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\nfunction baseUnset(object, path) {\n path = castPath(path, object);\n object = parent(object, path);\n return object == null || delete object[toKey(last(path))];\n}\n\nmodule.exports = baseUnset;\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar create = require('../internals/object-create');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar isRegExp = require('../internals/is-regexp');\nvar toString = require('../internals/to-string');\nvar getRegExpFlags = require('../internals/regexp-get-flags');\nvar stickyHelpers = require('../internals/regexp-sticky-helpers');\nvar proxyAccessor = require('../internals/proxy-accessor');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar fails = require('../internals/fails');\nvar hasOwn = require('../internals/has-own-property');\nvar enforceInternalState = require('../internals/internal-state').enforce;\nvar setSpecies = require('../internals/set-species');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar UNSUPPORTED_DOT_ALL = require('../internals/regexp-unsupported-dot-all');\nvar UNSUPPORTED_NCG = require('../internals/regexp-unsupported-ncg');\n\nvar MATCH = wellKnownSymbol('match');\nvar NativeRegExp = global.RegExp;\nvar RegExpPrototype = NativeRegExp.prototype;\nvar SyntaxError = global.SyntaxError;\nvar exec = uncurryThis(RegExpPrototype.exec);\nvar charAt = uncurryThis(''.charAt);\nvar replace = uncurryThis(''.replace);\nvar stringIndexOf = uncurryThis(''.indexOf);\nvar stringSlice = uncurryThis(''.slice);\n// TODO: Use only proper RegExpIdentifierName\nvar IS_NCG = /^\\?<[^\\s\\d!#%&*+<=>@^][^\\s!#%&*+<=>@^]*>/;\nvar re1 = /a/g;\nvar re2 = /a/g;\n\n// \"new\" should create a new object, old webkit bug\nvar CORRECT_NEW = new NativeRegExp(re1) !== re1;\n\nvar MISSED_STICKY = stickyHelpers.MISSED_STICKY;\nvar UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;\n\nvar BASE_FORCED = DESCRIPTORS &&\n (!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG || fails(function () {\n re2[MATCH] = false;\n // RegExp constructor can alter flags and IsRegExp works correct with @@match\n return NativeRegExp(re1) !== re1 || NativeRegExp(re2) === re2 || String(NativeRegExp(re1, 'i')) !== '/a/i';\n }));\n\nvar handleDotAll = function (string) {\n var length = string.length;\n var index = 0;\n var result = '';\n var brackets = false;\n var chr;\n for (; index <= length; index++) {\n chr = charAt(string, index);\n if (chr === '\\\\') {\n result += chr + charAt(string, ++index);\n continue;\n }\n if (!brackets && chr === '.') {\n result += '[\\\\s\\\\S]';\n } else {\n if (chr === '[') {\n brackets = true;\n } else if (chr === ']') {\n brackets = false;\n } result += chr;\n }\n } return result;\n};\n\nvar handleNCG = function (string) {\n var length = string.length;\n var index = 0;\n var result = '';\n var named = [];\n var names = create(null);\n var brackets = false;\n var ncg = false;\n var groupid = 0;\n var groupname = '';\n var chr;\n for (; index <= length; index++) {\n chr = charAt(string, index);\n if (chr === '\\\\') {\n chr += charAt(string, ++index);\n } else if (chr === ']') {\n brackets = false;\n } else if (!brackets) switch (true) {\n case chr === '[':\n brackets = true;\n break;\n case chr === '(':\n if (exec(IS_NCG, stringSlice(string, index + 1))) {\n index += 2;\n ncg = true;\n }\n result += chr;\n groupid++;\n continue;\n case chr === '>' && ncg:\n if (groupname === '' || hasOwn(names, groupname)) {\n throw new SyntaxError('Invalid capture group name');\n }\n names[groupname] = true;\n named[named.length] = [groupname, groupid];\n ncg = false;\n groupname = '';\n continue;\n }\n if (ncg) groupname += chr;\n else result += chr;\n } return [result, named];\n};\n\n// `RegExp` constructor\n// https://tc39.es/ecma262/#sec-regexp-constructor\nif (isForced('RegExp', BASE_FORCED)) {\n var RegExpWrapper = function RegExp(pattern, flags) {\n var thisIsRegExp = isPrototypeOf(RegExpPrototype, this);\n var patternIsRegExp = isRegExp(pattern);\n var flagsAreUndefined = flags === undefined;\n var groups = [];\n var rawPattern = pattern;\n var rawFlags, dotAll, sticky, handled, result, state;\n\n if (!thisIsRegExp && patternIsRegExp && flagsAreUndefined && pattern.constructor === RegExpWrapper) {\n return pattern;\n }\n\n if (patternIsRegExp || isPrototypeOf(RegExpPrototype, pattern)) {\n pattern = pattern.source;\n if (flagsAreUndefined) flags = getRegExpFlags(rawPattern);\n }\n\n pattern = pattern === undefined ? '' : toString(pattern);\n flags = flags === undefined ? '' : toString(flags);\n rawPattern = pattern;\n\n if (UNSUPPORTED_DOT_ALL && 'dotAll' in re1) {\n dotAll = !!flags && stringIndexOf(flags, 's') > -1;\n if (dotAll) flags = replace(flags, /s/g, '');\n }\n\n rawFlags = flags;\n\n if (MISSED_STICKY && 'sticky' in re1) {\n sticky = !!flags && stringIndexOf(flags, 'y') > -1;\n if (sticky && UNSUPPORTED_Y) flags = replace(flags, /y/g, '');\n }\n\n if (UNSUPPORTED_NCG) {\n handled = handleNCG(pattern);\n pattern = handled[0];\n groups = handled[1];\n }\n\n result = inheritIfRequired(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype, RegExpWrapper);\n\n if (dotAll || sticky || groups.length) {\n state = enforceInternalState(result);\n if (dotAll) {\n state.dotAll = true;\n state.raw = RegExpWrapper(handleDotAll(pattern), rawFlags);\n }\n if (sticky) state.sticky = true;\n if (groups.length) state.groups = groups;\n }\n\n if (pattern !== rawPattern) try {\n // fails in old engines, but we have no alternatives for unsupported regex syntax\n createNonEnumerableProperty(result, 'source', rawPattern === '' ? '(?:)' : rawPattern);\n } catch (error) { /* empty */ }\n\n return result;\n };\n\n for (var keys = getOwnPropertyNames(NativeRegExp), index = 0; keys.length > index;) {\n proxyAccessor(RegExpWrapper, NativeRegExp, keys[index++]);\n }\n\n RegExpPrototype.constructor = RegExpWrapper;\n RegExpWrapper.prototype = RegExpPrototype;\n defineBuiltIn(global, 'RegExp', RegExpWrapper, { constructor: true });\n}\n\n// https://tc39.es/ecma262/#sec-get-regexp-@@species\nsetSpecies('RegExp');\n","var baseFlatten = require('./_baseFlatten');\n\n/**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\nfunction flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n}\n\nmodule.exports = flatten;\n","\n\n\n\n\n","\nimport { SET_BARCODE_FORM_STEP } from '@/store/actions'\nimport { IBarcodeFormSingleDataTab, ITrackpoint } from 'smartbarcode-web-core/src/utils/types/index'\nimport { Options, Vue } from 'vue-class-component'\nimport { Emit, Prop } from 'vue-property-decorator'\n\n@Options({\n emits: ['update:trackpoint', 'update:onGotoStep'],\n name: 'ActivatTrackPointView',\n})\nexport default class ActivateTrackPointView extends Vue {\n step = 1\n @Prop({ type: String }) readonly barcodeType = ''\n @Prop({ type: String }) readonly trackpointData = ''\n\n created() {\n if (!this.barcodeType) {\n this.$router.replace({\n name: 'detail',\n params: {\n project: this.$store.getters.projectParam,\n barcodeId: this.$store.state.barcode.barcode.id,\n },\n })\n return\n }\n // skip this step only if overridableStartTrackingPoints array is empty\n if (!this.overridableStartTrackingPoints?.length) {\n const step = this.step + (this.$store.state.barcode.trackedStep < this.step ? 1 : -1)\n this.$emit('update:onGotoStep', step)\n }\n this.$store.commit(SET_BARCODE_FORM_STEP, this.step)\n }\n\n get barcodeTypeInfo() {\n return this.$store.state.project?.details?.barcodeTypes[this.barcodeType]\n }\n\n get project() {\n return this.$store.state.project.details\n }\n\n get trackPoints() {\n if (!this.project) return null\n\n return Object.entries(this.project.trackPoints as { [key: string]: ITrackpoint })\n .map(([key, value]) => ({ key, ...value }))\n .filter((t) => !t.isEnd)\n .sort((a, b) => (a.order && b.order ? a.order - b.order : Number(a.key) - Number(b.key)))\n }\n\n get overridableStartTrackingPoints() {\n return this.barcodeTypeInfo?.overridableStartTrackPoints\n }\n\n mounted() {\n if (this.overridableStartTrackingPoints && this.overridableStartTrackingPoints.length === 1) {\n this.onSelectTrackpoint(this.overridableStartTrackingPoints[0])\n }\n }\n\n isActive(key: string): string {\n return this.trackpointData === key ? 'selected' : ''\n }\n\n @Emit('update:trackpoint')\n onSelectTrackpoint(key: string) {\n return {\n data: key,\n step: this.step + 1,\n } as IBarcodeFormSingleDataTab\n }\n}\n","import { render } from \"./ActivateTrackpoint.vue?vue&type=template&id=0c6409f4&scoped=true\"\nimport script from \"./ActivateTrackpoint.vue?vue&type=script&lang=ts\"\nexport * from \"./ActivateTrackpoint.vue?vue&type=script&lang=ts\"\n\nimport \"./ActivateTrackpoint.vue?vue&type=style&index=0&id=0c6409f4&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-0c6409f4\"\n\nexport default script","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./ActivateTrackpoint.vue?vue&type=style&index=0&id=0c6409f4&lang=scss&scoped=true\"","var baseGetTag = require('./_baseGetTag'),\n getPrototype = require('./_getPrototype'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n","\n\n\n\n\n","\n\n\n\n","\nimport { mixins, Options } from 'vue-class-component'\nimport { Prop } from 'vue-property-decorator'\nimport { countryList } from '@/utils/constants'\nimport BarcodeTypesMixin from '@/components/mixins/BarcodeTypesMixin.vue'\n\ntype TCountryOption = {\n key: string\n label: string\n}\n\ntype TCountryGroup = {\n label: string\n options: Array\n}\n\n@Options({\n name: 'InputSelectCountry',\n})\nexport default class InputSelectCountry extends mixins(BarcodeTypesMixin) {\n @Prop({ type: String }) readonly fieldName?: string = ''\n countryOptions: TCountryGroup[] = []\n\n get barcodeType() {\n return this.$store.state?.barcode?.currentSelectedBarcodeType || this.$store.state?.barcode?.barcode?.barcodeType\n }\n\n get countriesList() {\n return this.getBarcodeTypeInfoByType(this.barcodeType)?.countries || []\n }\n\n created() {\n const getOptionLabels = (o: string[]) =>\n o.map((countryKey) => ({\n key: countryKey,\n label: this.$t(`countryList.${countryKey}`),\n }))\n\n if (this.countriesList?.length) {\n this.countryOptions = [\n {\n label: this.$t('all countries'),\n options: getOptionLabels(this.countriesList),\n },\n ]\n } else {\n // Take the first three items as \"frequently used\"\n const list = [...countryList]\n const frequentlyUsed = list.splice(0, 3)\n\n this.countryOptions = [\n {\n label: this.$t('frequently used'),\n options: getOptionLabels(frequentlyUsed),\n },\n {\n label: this.$t('all countries'),\n options: getOptionLabels(list),\n },\n ]\n }\n }\n}\n","import { render } from \"./InputSelectCountry.vue?vue&type=template&id=0fdd765e&scoped=true\"\nimport script from \"./InputSelectCountry.vue?vue&type=script&lang=ts\"\nexport * from \"./InputSelectCountry.vue?vue&type=script&lang=ts\"\n\nimport \"./InputSelectCountry.vue?vue&type=style&index=0&id=0fdd765e&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-0fdd765e\"\n\nexport default script","\nimport FormBuilder from '@/components/FormBuilder.vue'\nimport InputSelectCountry from '@/components/InputSelectCountry.vue'\nimport BarcodeTypesMixin from '@/components/mixins/BarcodeTypesMixin.vue'\nimport { DEFAULT_ADDRESS } from '@/utils/constants'\nimport { observerClean } from '@/utils/helpers'\nimport omit from 'lodash/omit'\nimport { OTHER_COUNTRY_LIST, PHONE_MASK, ZIPCODE_MASK } from 'smartbarcode-web-core/src/utils/constants'\nimport { ECustomFieldType } from 'smartbarcode-web-core/src/utils/enums'\nimport { isObjectValueEmpty } from 'smartbarcode-web-core/src/utils/typeChecker'\nimport { IAddress, TFormSchema } from 'smartbarcode-web-core/src/utils/types/index'\nimport { mixins, Options } from 'vue-class-component'\nimport { Emit, Prop, Watch } from 'vue-property-decorator'\nimport InputPhoneNumber from './InputPhoneNumber.vue'\n@Options({\n components: {\n FormBuilder,\n },\n emits: ['submit'],\n name: 'ShippingInfo',\n})\nexport default class ShippingInfo extends mixins(BarcodeTypesMixin) {\n @Prop({ type: String }) readonly barcodeType: string = ''\n @Prop({ type: Object }) readonly address: IAddress | null = null\n @Prop({ type: Boolean }) readonly hasNextStep?: boolean\n @Prop({ type: Boolean }) readonly isMandatory?: boolean\n\n formSchema: TFormSchema = {}\n formModel: IAddress = { ...DEFAULT_ADDRESS }\n error = Object.keys(this.formModel).map((f) => ({ [f]: false }))\n selectedCountry = ''\n\n get countriesList() {\n return this.getBarcodeTypeInfoByType(this.barcodeType)?.countries || []\n }\n\n get isClientUser() {\n return this.$store.getters.isClientUser\n }\n\n get isCountryInputDisabled() {\n return this.getCountriestList?.length === 1\n }\n\n get getCountriestList() {\n return this.$store.state?.project?.details?.barcodeTypes[this.barcodeType]?.countries\n }\n\n @Emit('submit')\n onSubmit(formData: IAddress): IAddress {\n // remove country in formData in case: 1 country in options & no other field's filled\n const isRemoveCountry = isObjectValueEmpty(omit(formData, 'country')) && this.isCountryInputDisabled\n if (isRemoveCountry) formData.country = ''\n\n return formData\n }\n\n formRemask(country: string) {\n const phoneMask = PHONE_MASK[country] || ''\n const zipCodeMask = ZIPCODE_MASK[country] || ''\n\n this.formSchema.phoneNumber = {\n ...this.formSchema.phoneNumber,\n ...{\n placeholder: phoneMask.replaceAll('#', '_'),\n mask: phoneMask,\n },\n }\n this.formSchema.postalCode = {\n ...this.formSchema.postalCode,\n ...{\n placeholder: zipCodeMask.replaceAll('#', '_'),\n mask: zipCodeMask,\n },\n }\n }\n\n shouldSkipValidate() {\n // Need validation if mandatory\n if (this.isMandatory) return false\n\n return isObjectValueEmpty(omit(this.formModel, 'country'))\n }\n\n created() {\n if (this.address) this.formModel = observerClean(this.address)\n\n this.formSchema = {\n companyName: {\n label: this.$t('company_name'),\n isMandatory: true,\n },\n country: {\n label: this.$t('country'),\n component: InputSelectCountry,\n barcodeType: this.barcodeType,\n width: 12,\n disabled: this.isCountryInputDisabled,\n isMandatory: true,\n placeholder: this.$t('country'),\n },\n postalCode: {\n label: this.$t('postal_code'),\n width: 12,\n isMandatory: true,\n inputType: 'tel',\n },\n prefecture: {\n label: this.$t('prefecture'),\n isMandatory: true,\n },\n address1: {\n label: this.$t('address1'),\n isMandatory: true,\n },\n address2: {\n label: this.$t('address2'),\n },\n phoneNumber: {\n label: this.$t('phone_number'),\n isMandatory: true,\n component: InputPhoneNumber,\n inputType: ECustomFieldType.PHONE_NUMBER,\n isSuggestion: false,\n // inputType: 'tel',\n },\n }\n this.setDefaultSelectedCountry()\n }\n\n @Watch('formModel.country')\n onCountryChange(country: string) {\n if (!country) return\n\n this.selectedCountry = country\n this.formRemask(country)\n }\n\n @Watch('address')\n onAddressChange(newAddress?: IAddress) {\n this.formModel = newAddress ?? this.defaultAddress\n this.setDefaultSelectedCountry()\n }\n\n private setDefaultSelectedCountry() {\n if (this.isCountryInputDisabled) {\n this.formModel.country = this.selectedCountry || this.countriesList[0]\n } else if (this.selectedCountry) {\n this.formModel.country = this.selectedCountry\n }\n this.formRemask(this.formModel.country)\n }\n}\n","import { render } from \"./ShippingInfo.vue?vue&type=template&id=63098277&scoped=true\"\nimport script from \"./ShippingInfo.vue?vue&type=script&lang=ts\"\nexport * from \"./ShippingInfo.vue?vue&type=script&lang=ts\"\n\nimport \"./ShippingInfo.vue?vue&type=style&index=0&id=63098277&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-63098277\"\n\nexport default script","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./PackageInfo.vue?vue&type=style&index=0&id=3f36c77c&lang=scss&scoped=true\"","var baseGet = require('./_baseGet'),\n baseSlice = require('./_baseSlice');\n\n/**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\nfunction parent(object, path) {\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n}\n\nmodule.exports = parent;\n","'use strict';\nvar defineProperty = require('../internals/object-define-property').f;\n\nmodule.exports = function (Target, Source, key) {\n key in Target || defineProperty(Target, key, {\n configurable: true,\n get: function () { return Source[key]; },\n set: function (it) { Source[key] = it; }\n });\n};\n","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./Edit.vue?vue&type=style&index=0&id=e5955566&lang=scss&scoped=true\"","\n\n\n\n\n","\nimport BarcodeLabel from '@/components/BarcodeLabel.vue'\nimport { BARCODE_ACTION_COMPLETE, BARCODE_SELECTED_TYPE } from '@/store/actions'\nimport { activateBarcode } from '@/utils/api'\nimport errorHandler from '@/utils/errorHandler'\nimport { filterEmptyActivateData, toSnakeCase } from '@/utils/helpers'\nimport {\n IActivateRequestBody,\n IActivationData,\n IAddress,\n IBarcodeFormMultiDataTab,\n IBarcodeFormSingleDataTab,\n TError,\n} from 'smartbarcode-web-core/src/utils/types/index'\nimport { Options, Vue } from 'vue-class-component'\nimport { ProvideReactive, Watch } from 'vue-property-decorator'\n\n@Options({\n components: {\n BarcodeLabel,\n name: 'BarcodeLabel',\n },\n methods: { toSnakeCase },\n})\nexport default class ActivateView extends Vue {\n @ProvideReactive() isShowArrow = true\n loading = false\n type = ''\n trackpoint = ''\n origin?: IAddress | null = null\n destination?: IAddress | null = null\n\n currentTab = 0\n steps = ['origin', 'destination', 'packageInfo']\n\n get barcodeId() {\n return this.$store.state.barcode.barcode?.id\n }\n\n get showStepper() {\n return this.$route.name.includes('shipping')\n }\n\n onChangeType(params: IBarcodeFormSingleDataTab) {\n this.type = params.data\n this.trackpoint = ''\n this.origin = null\n this.destination = null\n this.$store.commit(BARCODE_SELECTED_TYPE, this.type)\n this.gotoStep(params.step)\n }\n\n onChangeTrackpoint(params: IBarcodeFormSingleDataTab) {\n this.trackpoint = params.data\n this.gotoStep(params.step)\n }\n\n onChangeSource(params: IBarcodeFormMultiDataTab) {\n this.origin = params.origin\n this.gotoStep(params.step)\n }\n\n onChangeDestination(params: IBarcodeFormMultiDataTab) {\n this.destination = params.destination\n this.gotoStep(params.step)\n }\n\n gotoStep(gotoStep: number) {\n switch (gotoStep) {\n case 0:\n this.$router.push({ name: 'activate-type' })\n break\n case 1:\n this.$router.push({ name: 'activate-trackpoint' })\n break\n case 2:\n this.$router.push({ name: 'shipping-origin' })\n break\n case 3:\n this.$router.push({ name: 'shipping-destination' })\n break\n case 4:\n this.$router.push({ name: 'shipping-packageInfo' })\n this.isShowArrow = false\n break\n }\n }\n\n onGotoStep(gotoStep: number) {\n switch (gotoStep) {\n case 0:\n this.$router.replace({ name: 'activate-type' })\n break\n case 1:\n this.$router.replace({ name: 'activate-trackpoint' })\n break\n case 2:\n this.$router.replace({ name: 'shipping-origin' })\n break\n case 3:\n this.$router.replace({ name: 'shipping-destination' })\n break\n case 4:\n this.$router.replace({ name: 'shipping-packageInfo' })\n this.isShowArrow = false\n break\n }\n }\n\n onChangeDimension(activationData: IActivationData) {\n const { barcodeId, type, origin, destination } = this\n const requestSchema = {\n barcodeId,\n barcodeType: type,\n ...(this.trackpoint && { startTrackPointKeyOverride: this.trackpoint }),\n activationData: {\n ...activationData,\n ...(origin && { origin }),\n ...(destination && { destination }),\n },\n } as IActivateRequestBody\n\n const filteredObj = filterEmptyActivateData(requestSchema.activationData)\n const requestBody = {\n ...requestSchema,\n activationData: filteredObj,\n } as IActivateRequestBody\n\n // Send API\n this.activate(requestBody)\n }\n\n async activate(data: IActivateRequestBody) {\n try {\n this.loading = true\n await activateBarcode(data)\n this.$store.dispatch(BARCODE_ACTION_COMPLETE, 'activated')\n this.$router.push({\n name: 'detail',\n params: {\n barcodeId: this.barcodeId,\n },\n })\n } catch (error) {\n errorHandler(error as TError)\n } finally {\n this.loading = false\n }\n }\n\n created() {\n const key = this.$route.name.split('-')\n this.currentTab = this.steps.indexOf(key[1])\n }\n\n @Watch('$route')\n onRouteUpdate(to: { name: string }) {\n const key = to.name.split('-')\n this.currentTab = this.steps.indexOf(key[1])\n }\n}\n","import { render } from \"./Activate.vue?vue&type=template&id=77bbf529&scoped=true\"\nimport script from \"./Activate.vue?vue&type=script&lang=ts\"\nexport * from \"./Activate.vue?vue&type=script&lang=ts\"\n\nimport \"./Activate.vue?vue&type=style&index=0&id=77bbf529&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-77bbf529\"\n\nexport default script","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./ShippingDestination.vue?vue&type=style&index=0&id=2849375e&lang=scss&scoped=true\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./Activate.vue?vue&type=style&index=0&id=77bbf529&lang=scss&scoped=true\"","var flatten = require('./flatten'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\nfunction flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n}\n\nmodule.exports = flatRest;\n","'use strict';\nvar $ = require('../internals/export');\nvar $findIndex = require('../internals/array-iteration').findIndex;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\nvar FIND_INDEX = 'findIndex';\nvar SKIPS_HOLES = true;\n\n// Shouldn't skip holes\n// eslint-disable-next-line es/no-array-prototype-findindex -- testing\nif (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.findIndex` method\n// https://tc39.es/ecma262/#sec-array.prototype.findindex\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {\n findIndex: function findIndex(callbackfn /* , that = undefined */) {\n return $findIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND_INDEX);\n","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./ActivateType.vue?vue&type=style&index=0&id=5dc21232&lang=scss&scoped=true\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./ShippingInfo.vue?vue&type=style&index=0&id=63098277&lang=scss&scoped=true\"","\n\n\n","\nimport BarcodeTypesMixin from '@/components/mixins/BarcodeTypesMixin.vue'\nimport IconGroupOfCode from '@/components/svg/IconGroupOfCode.vue'\nimport IconMiniCode from '@/components/svg/IconMiniCode.vue'\nimport IconQRcode from '@/components/svg/IconQRcode.vue'\nimport { SET_BARCODE_FORM_STEP } from '@/store/actions'\nimport { IBarcodeFormSingleDataTab } from 'smartbarcode-web-core/src/utils/types/index'\nimport { mixins, Options } from 'vue-class-component'\nimport { Emit } from 'vue-property-decorator'\n\n@Options({\n components: {\n IconGroupOfCode,\n IconMiniCode,\n IconQRcode,\n },\n emits: ['update:barcodeType'],\n name: 'ActivateType',\n})\nexport default class ActivateType extends mixins(BarcodeTypesMixin) {\n step = 0\n\n created() {\n this.$store.commit(SET_BARCODE_FORM_STEP, this.step)\n }\n\n @Emit('update:barcodeType')\n onSelectType(type: string) {\n return {\n data: type,\n step: this.step + 1,\n } as IBarcodeFormSingleDataTab\n }\n}\n","import { render } from \"./ActivateType.vue?vue&type=template&id=5dc21232&scoped=true\"\nimport script from \"./ActivateType.vue?vue&type=script&lang=ts\"\nexport * from \"./ActivateType.vue?vue&type=script&lang=ts\"\n\nimport \"./ActivateType.vue?vue&type=style&index=0&id=5dc21232&lang=scss&scoped=true\"\nscript.render = render\nscript.__scopeId = \"data-v-5dc21232\"\n\nexport default script","var isPlainObject = require('./isPlainObject');\n\n/**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\nfunction customOmitClone(value) {\n return isPlainObject(value) ? undefined : value;\n}\n\nmodule.exports = customOmitClone;\n"],"sourceRoot":""}