{"version":3,"sources":["webpack:///./src/modules/ContestFormModule/ContestForm/ContestForm.types.ts","webpack:///./src/modules/ContestFormModule/ContestForm/ContestForm.vue?97ab","webpack:///./src/modules/ContestFormModule/ContestForm/ContestForm.validations.ts","webpack:///./src/modules/ContestFormModule/ContestForm/ContestForm.ts","webpack:///./src/modules/ContestFormModule/ContestForm/ContestForm.ts?155a","webpack:///./src/modules/ContestFormModule/ContestForm/ContestForm.vue","webpack:///./src/modules/ContestFormModule/ContestFormModule.api.ts","webpack:///./src/modules/ContestFormModule/ContestFormModule.store.ts","webpack:///./src/modules/ContestFormModule/ContestFormModule.vue?9c2d","webpack:///./src/modules/ContestFormModule/ContestFormModule.ts?8733","webpack:///./src/modules/ContestFormModule/ContestFormModule.ts","webpack:///./src/modules/ContestFormModule/ContestFormModule.vue","webpack:///./src/common/interfaces/dto/Person.ts","webpack:///./src/forms/Validations/CommonRules.ts","webpack:///./src/common/interfaces/dto/Address.ts","webpack:///./src/common/interfaces/dto/Phone.ts","webpack:///./src/mixins/StoreModuleMixin.ts","webpack:///./src/forms/Validations/AsyncRules.ts","webpack:///./src/forms/FormElements/Rows/EmailRow/EmailRow.validation.ts","webpack:///./src/forms/FormElements/Rows/NameRow/NameRow.validation.ts","webpack:///./src/forms/FormElements/Rows/AddressRow/AddressRow.helper.ts","webpack:///./src/forms/FormElements/Rows/PhoneRow/PhoneRow.validation.ts","webpack:///./src/forms/FormElements/Rows/EmailRow/EmailRow.vue?127a","webpack:///./src/forms/FormElements/Rows/EmailRow/EmailRow.ts?b2a4","webpack:///./src/forms/FormElements/Rows/EmailRow/EmailRow.ts","webpack:///./src/forms/FormElements/Rows/EmailRow/EmailRow.vue","webpack:///./src/forms/FormElements/Common/DebugModel/DebugModel.vue?e5eb","webpack:///./src/forms/FormElements/Common/DebugModel/DebugModel.ts?409e","webpack:///./src/forms/FormElements/Common/DebugModel/DebugModel.ts","webpack:///./src/forms/FormElements/Common/DebugModel/DebugModel.vue","webpack:///./src/assets/icons/arrow.svg","webpack:///./src/forms/FormElements/Rows/NameRow/NameRow.vue?f8be","webpack:///./src/forms/FormElements/Rows/NameRow/NameRow.ts?17ae","webpack:///./src/forms/FormElements/Rows/NameRow/NameRow.ts","webpack:///./src/forms/FormElements/Rows/NameRow/NameRow.vue","webpack:///./src/forms/Validations/CommonMessages.ts","webpack:///./src/forms/FormElements/Rows/AddressRow/AddressRow.validation.ts","webpack:///./src/forms/FormElements/Rows/PhoneRow/PhoneRow.vue?0589","webpack:///./src/forms/Formatters.ts","webpack:///./src/forms/FormElements/Rows/PhoneRow/PhoneRow.ts?f6d1","webpack:///./src/forms/FormElements/Rows/PhoneRow/PhoneRow.ts","webpack:///./src/forms/FormElements/Rows/PhoneRow/PhoneRow.vue","webpack:///./src/forms/FormElements/Rows/AddressRow/AddressRow.vue?f85b","webpack:///./src/forms/FormElements/Rows/AddressRow/AddressRow.ts?cd0c","webpack:///./src/forms/FormElements/Rows/AddressRow/AddressRow.ts","webpack:///./src/forms/FormElements/Rows/AddressRow/AddressRow.vue","webpack:///./src/components/TitleHeader/TitleHeader.vue?ddcb","webpack:///./src/components/TitleHeader/TitleHeader.ts?46e7","webpack:///./src/components/TitleHeader/TitleHeader.ts","webpack:///./src/components/TitleHeader/TitleHeader.vue"],"names":["names","Person","Address","Phone","Barcode","Agency","Tag","validations","barcodeValidation","BaseValidation","name","rules","required","barcodeIsValid","value","isNaN","messages","agencyValidation","tagValidation","getRules","getMessages","model","getModel","buttonStylePrimaryDarkBlack","PrimaryDarkBlack","setAndSubmit","this","submit","ContestForm","components","DebugModel","NameRow","EmailRow","PhoneRow","AddressRow","TextRow","ButtonRow","FormValidationMixin","component","_vm","_h","$createElement","_c","_self","staticClass","attrs","domProps","_s","BottomText","_e","on","$event","EmailSignUpService","ApiService","showLoading","submitContest","call","verb","HttpVerb","POST","returnData","then","res","status","IsOk","Item","data","Error","SUBMIT_FORM","SET_FORM_IS_SUBMITTED","actions","commit","mutations","state","IsSubmitted","nextTick","scrollTo","registerModule","namespaced","store","submitForm","getAction","Title","$props","p","ThankYouText","Link","Text","Center","HeaderText","mounted","ContestFormModule","TitleHeader","props","StoreModuleMixin","titleHeaderData","Id","FirstName","LastName","Email","EmailConfirmation","empty","requireNonWhitespace","trim","requireWithDefault","defaultValue","byRegex","regex","invert","result","test","dangerous","symbolsNotAllowed","nameComplex","notEmpty","notOnlySymbol","zipCode","phoneCode","phoneAndDashed","phoneAndDashedForUK","booking","separatedEmails","emailRegex","splitedEmails","replace","split","validatedEmails","filter","item","length","CountryId","CountryName","Street1","Street2","City","StateCode","PostalCode","Code","Number","Home","Work","getStoreModuleState","instance","$store","getStoreModulePath","$route","params","$attrs","vuexModuleStore","options","$options","parent","$parent","modulePath","getters","getter","$storeModulePath","action","payload","dispatch","getMutation","mutation","commonService","isInBlackList","email","handleErrors","cancel","GET","path","rowParams","emailRequredRules","notRequired","emailValidationRules","commaSeparatedEmails","blackList","addBlackListValidation","addConfirmation","push","same","removeTitle","isTitleRequired","stripRequired","country","Meta","Country","isCanada","countryId","isStateCountries","States","map","s","includes","clearChangingFields","input","getInitCountryValue","AUS","UK","getCountries","isBrochure","primeCountries","countries","Countries","c","IsForBrochures","Value","find","Prime","Disabled","getStates","getPhoneCode","undefined","PhoneCode","isShow","field","isUs","getCountryName","isRequired","multiplyPhones","useLongPhone","requiredIf","modelValue","requiredMultiple","fullWidth","confirmation","type","Boolean","default","String","RowValidationMixin","class","classList","className","label","subModel","maxLength","idPrefix","disabled","_l","key","toString","_v","module","exports","functional","render","children","classNames","style","staticStyle","rest","Object","assign","concat","titleList","DropdownRow","firstNameLength","lastNameLength","dangerousMessage","getPostalRequired","getZipIf","requiredState","requiredPostal","forEach","r","requiredAus","getPhoneCodeFormatter","delimiter","blocks","numericOnly","isCodeMutated","codeFormatter","countryIdChange","val","delimiters","placeholder","numberFormatter","zipFormatter","zipFullFormatter","countryChanged","prevValue","fullOption","option","$emit","IsBrochure","validation","showPart","part","addressLine1MaxLength","addressLine2MaxLength","cityMaxLength","directives","rawName","expression","getStateLabel","states","isStateRequred","fullZipCode","postCodeMaxLength","TitleHeaderComponent","Arrow","extend","tag","i"],"mappings":"+LAsBaA,EAAQ,mDAChB,KACA,KACA,KAZa,CAChBC,OAAQ,SACRC,QAAS,UACTC,MAAO,QACPC,QAAS,UACTC,OAAQ,SACRC,IAAK,S,wCCnBP,IC0CQC,E,4IA9BFC,EAAoB,IAAIC,EAAA,EAAe,CAC3C,CACEC,KAAM,QAAMN,QACZO,MAAO,CAAEC,SAAQ,WAAEC,eALA,SAACC,GAAU,OAACC,OAAOD,IAAUA,GAAS,SAAWA,GAAS,UAM7EE,SAAU,CACRJ,SAAU,yBACVC,eAAgB,kCAKhBI,EAAmB,IAAIR,EAAA,EAAe,CAC1C,CACEC,KAAM,QAAML,OACZM,MAAO,CAAEC,SAAQ,YACjBI,SAAU,CACRJ,SAAU,2BAKVM,EAAgB,IAAIT,EAAA,EAAe,CACvC,CACEC,KAAM,QAAMJ,IACZK,MAAO,GACPK,SAAU,M,kBCpBR,GDyBET,EAAc,CAClB,YAAe,QAAMN,QACrB,YAAgB,QAAMA,QACtB,YAAkB,QAAMC,SACxB,YAAgB,QAAMC,OACtBK,EACAS,EACAC,GAGK,CACLX,YAAaE,EAAA,EAAeU,SAASZ,GACrCS,SAAUP,EAAA,EAAeW,YAAYb,GACrCc,MAAOZ,EAAA,EAAea,SAASf,KCtC3B,EAAW,cAAEc,EAAK,QAAEL,EAAQ,WCjB8F,ED+BlI,uE,OACE,EAAAhB,MAAQ,QAER,EAAAqB,MAAsBA,EAEtB,EAAAL,SAAsBA,EAEtB,EAAAO,4BAA8B,IAAeC,iB,EAc/C,OArByC,iBASvC,YAAAC,aAAA,WACEC,KAAKL,MAAMf,IAAMoB,KAAKpB,IACtBoB,KAAKC,UAIP,aADC,e,iCAID,aADC,e,0BAjBkBC,EAAW,aAZ/B,YAAU,CACTrB,YAAW,EACXsB,WAAY,CACVC,WAAU,IACVC,QAAO,IACPC,SAAQ,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AAIQ,GAAGR,EAAI6C,EAAEG,SAAShD,EAAIU,KAAMV,EAAI6C,EAAO,MAAE7C,EAAIsM,GAAItM,EAAI6C,EAAO,MAAE,SAASE,EAAKwN,GAAG,OAAOpQ,EAAG,MAAM,CAACoM,IAAIgE,EAAElQ,YAAY,+CAA+C,CAACF,EAAG,IAAI,CAACE,YAAY,MAAMC,MAAM,CAAC,KAAOyC,EAAKA,OAAO,CAAC/C,EAAIyM,GAAGzM,EAAIQ,GAAGuC,EAAKJ,cAAc3C,EAAIU,MAAM,MACj+B,IGWpB,EACA,KACA,KACA,MAIa,IAAAX,E","file":"35.6245307b53223dbbb79a.js","sourcesContent":["import Person, { names as personNames } from '@/common/interfaces/dto/Person';\nimport Address, { names as addressNames } from '@/common/interfaces/dto/Address';\nimport Phone, { names as phoneNames } from '@/common/interfaces/dto/Phone';\n\nexport interface ContestEntry {\n Person: Person;\n Phone: Phone;\n Address: Address;\n Barcode: number;\n Agency: String;\n Tag: String;\n}\n\nconst formNames = {\n Person: 'Person',\n Address: 'Address',\n Phone: 'Phone',\n Barcode: 'Barcode',\n Agency: 'Agency',\n Tag: 'Tag'\n};\n\nexport const names = {\n ...personNames,\n ...addressNames,\n ...phoneNames,\n ...formNames,\n};\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('form',{staticClass:\"contest-form__form\"},[_c('div',{staticClass:\"lex-row\"},[_c('div',{staticClass:\"lex-col--size-12 lex-col-md--size-8\"},[_c('input',{attrs:{\"type\":\"hidden\",\"name\":_vm.names.Tag},domProps:{\"value\":_vm.Tag}}),_c('TextRow',{attrs:{\"label\":\"Barcode Number\",\"name\":_vm.names.Barcode}}),_c('TextRow',{attrs:{\"label\":\"Agency\",\"name\":_vm.names.Agency}}),_c('NameRow',{attrs:{\"subModel\":_vm.names.Person}}),_c('EmailRow',{attrs:{\"subModel\":_vm.names.Person}}),_c('PhoneRow',{attrs:{\"subModel\":_vm.names.Phone}}),_c('AddressRow',{attrs:{\"subModel\":_vm.names.Address}}),(_vm.BottomText)?_c('div',{staticClass:\"contest-form__bottomtext\",domProps:{\"innerHTML\":_vm._s(_vm.BottomText)}}):_vm._e(),_c('ButtonRow',{staticClass:\"contest-form__button\",attrs:{\"label\":\"Submit\"},on:{\"click\":function($event){return _vm.setAndSubmit()}}})],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { required } from 'vuelidate/lib/validators';\n\nimport BaseValidation from '@/forms/Validations/BaseValidation';\nimport NameValidation from '@/forms/FormElements/Rows/NameRow/NameRow.validation';\nimport EmailValidation from '@/forms/FormElements/Rows/EmailRow/EmailRow.validation';\nimport AddressValidation from '@/forms/FormElements/Rows/AddressRow/AddressRow.validation';\nimport PhoneValidation from '@/forms/FormElements/Rows/PhoneRow/PhoneRow.validation';\n\nimport { names } from './ContestForm.types';\n\nconst barcodeIsValid = (value) => !isNaN(+value) && value >= 9001001 && value <= 9001649;\n\nconst barcodeValidation = new BaseValidation([\n {\n name: names.Barcode,\n rules: { required, barcodeIsValid },\n messages: {\n required: 'Enter a Barcode number',\n barcodeIsValid: 'Barcode number is not valid',\n },\n },\n]);\n\nconst agencyValidation = new BaseValidation([\n {\n name: names.Agency,\n rules: { required },\n messages: {\n required: 'Enter an Agency name',\n },\n },\n]);\n\nconst tagValidation = new BaseValidation([\n {\n name: names.Tag,\n rules: { },\n messages: { },\n },\n]);\n\nexport default () => {\n const validations = [\n NameValidation(names.Person),\n EmailValidation(names.Person),\n AddressValidation(names.Address),\n PhoneValidation(names.Phone),\n barcodeValidation,\n agencyValidation,\n tagValidation,\n ];\n\n return {\n validations: BaseValidation.getRules(validations),\n messages: BaseValidation.getMessages(validations),\n model: BaseValidation.getModel(validations),\n };\n};\n","import { Component, Mixins, Prop } from 'vue-property-decorator';\n\nimport EmailRow from '@/forms/FormElements/Rows/EmailRow/EmailRow.vue';\nimport NameRow from '@/forms/FormElements/Rows/NameRow/NameRow.vue';\nimport PhoneRow from '@/forms/FormElements/Rows/PhoneRow/PhoneRow.vue';\nimport AddressRow from '@/forms/FormElements/Rows/AddressRow/AddressRow.vue';\nimport DebugModel from '@/forms/FormElements/Common/DebugModel/DebugModel.vue';\nimport TextRow from '@/forms/FormElements/Rows/TextRow/TextRow.vue';\nimport ButtonRow from '@/forms/FormElements/Rows/ButtonRow/ButtonRow.vue';\n\nimport { ContestEntry, names } from './ContestForm.types';\nimport Message from '@/forms/Validations/Message';\nimport getValidation from '@/modules/ContestFormModule/ContestForm/ContestForm.validations';\nimport { CtaButtonStyle } from '@/common/interfaces/CtaLinkItem';\n\nimport FormValidationMixin from '@/forms/FormElements/Mixins/FormValidationMixin';\n\nconst { validations, model, messages } = getValidation();\n\n@Component({\n validations,\n components: {\n DebugModel,\n NameRow,\n EmailRow,\n PhoneRow,\n AddressRow,\n TextRow,\n ButtonRow,\n },\n})\nexport default class ContestForm extends Mixins(FormValidationMixin) {\n names = names;\n\n model: ContestEntry = model;\n\n messages: Message[] = messages;\n\n buttonStylePrimaryDarkBlack = CtaButtonStyle.PrimaryDarkBlack;\n\n setAndSubmit() {\n this.model.Tag = this.Tag;\n this.submit();\n }\n\n @Prop()\n readonly BottomText!: string;\n\n @Prop()\n readonly Tag!: string;\n\n\n}\n","import mod from \"-!../../../../node_modules/ts-loader/index.js??ref--0!./ContestForm.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/ts-loader/index.js??ref--0!./ContestForm.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ContestForm.vue?vue&type=template&id=1145061b&\"\nimport script from \"./ContestForm.ts?vue&type=script&lang=ts&\"\nexport * from \"./ContestForm.ts?vue&type=script&lang=ts&\"\nimport style0 from \"./ContestForm.scss?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import { ContestEntry } from '@/modules/ContestFormModule/ContestForm/ContestForm.types';\nimport ApiService from '@/common/ApiService/ApiService';\nimport { HttpVerb } from '@/common/ApiService/HttpVerb';\nimport { AxiosResponse } from 'axios';\n\nconst EmailSignUpService = new ApiService('/api/CommonService/', {\n showLoading: true,\n});\n\nexport const submitContest = (model: ContestEntry): Promise => {\n return EmailSignUpService.call('SendContestRequest', model, {\n verb: HttpVerb.POST,\n returnData: false,\n }).then((res: AxiosResponse) => {\n if (res.status == 200) {\n return { IsOk: true, Item: res.data, Error: null };\n }\n return { IsOk: false, Item: null, Error: res.data };\n });\n};\n","import {Module, ActionTree, MutationTree, Store} from 'vuex';\nimport { RootState } from '@/store/types';\nimport { registerSubModule } from '@/utils/vueUtils';\n\nimport { ContestFormViewModel } from '@/modules/ContestFormModule/ContestFormModule.types';\nimport { ContestEntry } from '@/modules/ContestFormModule/ContestForm/ContestForm.types';\n\nimport { InitCountries } from '@/api/CountryStateApi';\n\nimport {\n submitContest,\n} from '@/modules/ContestFormModule/ContestFormModule.api';\nimport Vue from 'vue';\nimport VueScrollTo from 'vue-scrollto';\n\nexport interface ContestFormModuleState {\n IsSubmitted: boolean;\n}\n\nexport const SUBMIT_FORM = 'SUBMIT_FORM';\nexport const SET_FORM_IS_SUBMITTED = 'SET_FORM_IS_SUBMITTED';\n\nconst actions: ActionTree = {\n async [SUBMIT_FORM]({ commit }, model: ContestEntry) {\n //console.log('submitted', model);\n const result = await submitContest(model);\n if (result.IsOk) {\n //console.log('from server', result);\n commit(SET_FORM_IS_SUBMITTED);\n } else {\n //console.log('error', result);\n }\n },\n};\n\nconst mutations: MutationTree = {\n [SET_FORM_IS_SUBMITTED](state) {\n state.IsSubmitted = true;\n Vue.nextTick(() => {\n VueScrollTo.scrollTo('#ContestForm');\n });\n },\n};\n\nconst registerModule = registerSubModule(\n (data: ContestFormViewModel) => {\n return {\n namespaced: true,\n state: {\n IsSubmitted: false,\n },\n actions,\n mutations,\n } as Module;\n },\n 'ContestFormModule',\n);\n\nexport default async (store: Store, data: ContestFormViewModel) => {\n await InitCountries();\n\n return registerModule(store, data)\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"lex-container contest-form\"},[_c('TitleHeader',{attrs:{\"p\":_vm.titleHeaderData}}),(!_vm.state.IsSubmitted)?_c('ContestForm',{attrs:{\"BottomText\":_vm.p.BottomText,\"Tag\":_vm.p.Tag},on:{\"submit\":_vm.submitForm}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/ts-loader/index.js??ref--0!./ContestFormModule.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/ts-loader/index.js??ref--0!./ContestFormModule.ts?vue&type=script&lang=ts&\"","import TitleHeader from '@/components/TitleHeader/TitleHeader.vue';\n\nimport StoreModuleMixin from '@/mixins/StoreModuleMixin';\nimport { ContestEntry } from '@/modules/ContestFormModule/ContestForm/ContestForm.types';\n\nimport ContestForm from '@/modules/ContestFormModule/ContestForm/ContestForm.vue';\nimport {\n ContestFormModuleState,\n SUBMIT_FORM\n} from '@/modules/ContestFormModule/ContestFormModule.store';\n\nimport {getComponentProps} from '@/utils/vueUtils';\nimport {Component, Mixins, Prop, Watch} from 'vue-property-decorator';\nimport { ContestFormViewModel } from './ContestFormModule.types';\n\n@Component({\n components: {\n ContestForm,\n TitleHeader,\n },\n props: getComponentProps({\n Tag: '',\n ThankYouText: 'Thank you',\n HeaderText: 'Click here to register.',\n BottomText: '',\n }),\n})\n\nexport default class ContestFormModule extends Mixins(StoreModuleMixin) {\n state!: ContestFormModuleState;\n submitForm: (model: ContestEntry) => void = this.getAction(SUBMIT_FORM);\n\n get titleHeaderData() {\n return this.state.IsSubmitted\n ? {\n Title: this.$props.p.ThankYouText,\n Link: {},\n Text: \"\",\n Center: true,\n }\n :\n {\n Title: \"\",\n Text: this.$props.p.HeaderText + \" Fields with an asterisk (*) are required.\",\n Link: {},\n Center: false,\n };\n }\n\n mounted() {\n }\n}\n","import { render, staticRenderFns } from \"./ContestFormModule.vue?vue&type=template&id=4d100336&\"\nimport script from \"./ContestFormModule.ts?vue&type=script&lang=ts&\"\nexport * from \"./ContestFormModule.ts?vue&type=script&lang=ts&\"\nimport style0 from \"./ContestFormModule.scss?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export default interface Person {\n Id?: string;\n Title?: string;\n FirstName: string;\n LastName: string;\n Email?: string;\n EmailConfirmation?: string; //* service field (should not be in BE)\n}\n\nexport type PersonFieldType = keyof Person;\n\nexport const names: { [key in PersonFieldType]: string } = {\n Id: '1',\n Title: 'Title',\n FirstName: 'FirstName',\n LastName: 'LastName',\n Email: 'Email',\n EmailConfirmation: 'EmailConfirmation',\n};\n","export const empty = (value: any) => {\n const result = value === undefined || value === null || value === '';\n\n return result;\n};\n\nexport const twoWords = (value: any) => {\n return value.split(' ').filter(s => s).length > 1;\n};\n\nexport const requireNonWhitespace = (value: any) => {\n if (empty(value?.trim())) {\n return false;\n }\n\n return true;\n};\n\nexport const requireNonUndefined = (value: any) => {\n if (empty(value) && value !== undefined) {\n return false;\n }\n\n return true;\n};\n\nexport const requireWithDefault = (defaultValue: any) => (value: any) => {\n if (empty(value) || value === defaultValue) {\n return false;\n }\n\n return true;\n};\n\nexport const sameAsWithConvert = (prop: string, func: Function = (val: any) => val) => (\n value: any,\n model: any,\n) => func(value) === func(model[prop]);\n\nexport const byRegex = (regex: RegExp, invert: boolean = false) => {\n return (value: any) => {\n if (empty(value)) {\n return true;\n }\n\n let result = regex.test(value);\n\n if (invert) {\n result = !result;\n }\n\n return result;\n };\n};\n\nexport const dangerous = byRegex(/[<>]/, true);\nexport const symbolsNotAllowed = byRegex(/.*[#^*?'].*/, true);\n\nexport const nameComplex = (value: string) => {\n const notEmpty = byRegex(/.*[^ ].*/, false);\n const name = byRegex(\n /^[a-zA-ZàáâäãåąčćęèéêëėįìíîïłńòóôöõøùúûüųūÿýżźñçčšžÀÁÂÄÃÅĄĆČĖĘÈÉÊËÌÍÎÏĮŁŃÒÓÔÖÕØÙÚÛÜŲŪŸÝŻŹÑßÇŒÆČŠŽ∂ð ,.'-]+$/,\n );\n const notOnlySymbol = byRegex(/^[,.'\"-]+$/, true)\n\n return notEmpty(value) && name(value) && notOnlySymbol(value);\n};\nexport const zipCode = byRegex(/(^\\d{5}$)|(^\\d{9}$)/);\nexport const phoneCode = byRegex(/^\\+?[0-9]{1,3}$/);\nexport const phoneAndDashed = byRegex(/^(\\d{8,10}|(\\d{3}-\\d{3}-\\d{4}))$/);\nexport const phoneAndDashedForUK = byRegex(/^(\\d{8,15}|\\d{3}-\\d{3}-\\d{4})$/);\nexport const phoneWithoutCode = byRegex(/^\\d{8,10}$/);\nexport const phoneWithCode = byRegex(/^\\+?[0-9]{9,13}$/);\nexport const booking = byRegex(/^\\d{4,6}$/);\nexport const IATAN = byRegex(/^\\d{3,32}$/);\n\nexport const timeRegex = (value) => {\n if (empty(value)) {\n return true;\n }\n\n return (\n /^(0?[1-9]|1[012]):([0-5][0-9]) [PpAa]{1}[Mm]{1}$/.test(value) ||\n /^([01]?[0-9]|2[0-3]):[0-5][0-9]$/.test(value)\n );\n};\n\nexport const separatedEmails = (value: string) => {\n const emailRegex = byRegex(\n /(^$|^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$)/,\n );\n const splitedEmails = value\n .trim()\n .replace(/\\s/g, '')\n .split(',');\n const validatedEmails = splitedEmails.filter((item) => emailRegex(item));\n return splitedEmails.length === validatedEmails.length && validatedEmails.length < 4;\n};\n","export default interface Address {\n CountryId: number;\n CountryName?: string;\n Street1: string;\n Street2: string;\n City: string;\n StateCode: string;\n PostalCode: string;\n}\n\nexport type AddressFieldType = keyof Address;\n\nexport const names: { [key in AddressFieldType]: keyof Address } = {\n CountryId: 'CountryId',\n CountryName: 'CountryName',\n Street1: 'Street1',\n Street2: 'Street2',\n City: 'City',\n StateCode: 'StateCode',\n PostalCode: 'PostalCode',\n};\n","export default interface Phone {\n Code: string;\n Number: string;\n Home?: string;\n Work?: string;\n}\n\nexport type PhoneFieldType = keyof Phone;\n\nexport const names: { [key in PhoneFieldType]: string } = {\n Code: 'Code',\n Number: 'Number',\n Home: 'Home',\n Work: 'Work',\n};\n","import Vue from 'vue';\nimport Component from 'vue-class-component';\nimport { DispatchOptions, CommitOptions } from 'vuex';\n\nexport function getStoreModuleState(instance: Vue) {\n return instance.$store.state[getStoreModulePath(instance)];\n}\n\nexport function getStoreModulePath(instance: Vue) {\n // @ts-ignore\n if (instance.$route?.params?.store) return instance.$route.params.store;\n\n if (instance.$attrs.vuexModuleStore) return instance.$attrs.vuexModuleStore;\n\n let options: any = instance.$options;\n let parent = instance.$parent;\n while (parent && !options.modulePath && !parent.$attrs.vuexModuleStore) {\n options = parent.$options;\n parent = parent.$parent;\n }\n\n return options.modulePath || parent?.$attrs.vuexModuleStore;\n}\n\n@Component({})\nexport default class StoreModuleMixin extends Vue {\n getters(getter: string) {\n return this.$store.getters[`${this.$storeModulePath}/${getter}`];\n }\n\n getAction(action: string) {\n return (payload?: any, options?: DispatchOptions) => {\n return this.$store.dispatch(`${this.$storeModulePath}/${action}`, payload, options);\n };\n }\n\n getMutation(mutation: string) {\n return (payload?: any, options?: CommitOptions) => {\n this.$store.commit(`${this.$storeModulePath}/${mutation}`, payload, options);\n };\n }\n\n get state() {\n return this.$store.state[this.$storeModulePath];\n }\n\n get $storeModulePath() {\n const path = getStoreModulePath(this);\n\n return path;\n }\n}\n","import ApiService from '@/common/ApiService/ApiService';\nimport { HttpVerb } from '@/common/ApiService/HttpVerb';\nimport { email } from 'vuelidate/lib/validators';\n\nconst commonService = new ApiService('/api/CommonService/', {\n returnData: true,\n});\n\nexport const isInBlackList = (value: string) => {\n if (!value || !(email as any)(value)) return true;\n\n return commonService.call(\n `CheckInBlackListEmail`,\n { email: value },\n { handleErrors: false, showLoading: false, cancel: true, verb: HttpVerb.GET },\n );\n};\n","import { required, email, sameAs } from 'vuelidate/lib/validators';\n\nimport BaseValidation from '@/forms/Validations/BaseValidation';\nimport ValidationRule from '@/forms/Validations/ValidationRule';\n\nimport { names } from '@/common/interfaces/dto/Person';\nimport { separatedEmails } from '@/forms/Validations/CommonRules';\nimport { isInBlackList } from '@/forms/Validations/AsyncRules';\n\nexport { names } from '@/common/interfaces/dto/Person';\n\ninterface EmailParams {\n name?: string;\n addConfirmation?: boolean;\n notRequired?: boolean;\n commaSeparatedEmails?: boolean;\n addBlackListValidation?: boolean;\n}\n\nexport default (path: string = '', rowParams?: EmailParams) => {\n const emailRequredRules = rowParams?.notRequired ? {} : { required };\n const emailValidationRules = rowParams?.commaSeparatedEmails ? separatedEmails : email;\n const blackList = rowParams?.addBlackListValidation ? { isInBlackList } : {};\n\n const rules: ValidationRule[] = [\n {\n name: rowParams?.name || names.Email,\n rules: { ...emailRequredRules, emailValidationRules, ...blackList },\n messages: {\n required: 'Enter an email address',\n emailValidationRules: 'Enter a valid email address',\n isInBlackList: 'Your email is blocked',\n },\n },\n ];\n\n if (rowParams?.addConfirmation) {\n rules.push({\n name: names.EmailConfirmation,\n rules: { required, same: sameAs(names.Email) },\n messages: {\n required: 'Enter an email confirmation',\n same: 'Your email address does not match',\n },\n });\n }\n\n return new BaseValidation(rules, path);\n};\n","import { required } from 'vuelidate/lib/validators';\nimport { nameComplex } from '@/forms/Validations/CommonRules';\n\nimport BaseValidation from '@/forms/Validations/BaseValidation';\n\nimport { names } from '@/common/interfaces/dto/Person';\nexport { names } from '@/common/interfaces/dto/Person';\n\ninterface NameParams {\n isTitleRequired?: boolean;\n removeTitle?: boolean;\n stripRequired?: boolean;\n}\n\nexport default (path: string = '', params?: NameParams) => {\n const rules = [];\n\n if (params?.removeTitle !== true) {\n rules.push({\n name: names.Title,\n rules: params?.isTitleRequired && !params?.stripRequired ? { required } : {},\n messages: {\n required: 'Choose a title',\n },\n });\n }\n\n rules.push({\n name: names.FirstName,\n rules: {\n ...(!params?.stripRequired ? { required } : {}),\n nameComplex,\n },\n messages: {\n required: 'Enter a first name',\n nameComplex: 'Enter a valid first name',\n },\n });\n\n rules.push({\n name: names.LastName,\n rules: {\n ...(!params?.stripRequired ? { required } : {}),\n nameComplex,\n },\n messages: {\n required: 'Enter a last name',\n nameComplex: 'Enter a valid last name',\n },\n });\n\n const result = new BaseValidation(rules, path);\n\n return result;\n};\n","import { getStore } from '@/store/index';\nimport SelectItem from '@/common/interfaces/SelectItem';\nimport Address, { names, AddressFieldType } from '@/common/interfaces/dto/Address';\nimport { getCountryData, CountryFullData } from '@/api/CountryStateApi';\n\nimport {\n validate,\n getInfoByZipCode,\n StreetAutocompleteParams,\n getAddressSuggestions,\n} from './AddressRow.api';\n\nimport { Country } from '@/store/modules/metadataModule';\n\nlet country = getStore().state.Meta.Country;\n\nlet data: CountryFullData = getCountryData();\n\nconst UsId = 385;\nconst AusId = 211;\nconst CanadaId = 400;\nconst UkId = 384;\n\nexport const isUs = (countryId: number) => countryId === UsId;\nexport const isCanada = (countryId: number) => countryId === CanadaId;\nexport const isStateCountries = (countryId: number) =>\n data.States.map((s) => s.CountryId).includes(+countryId);\n\nexport const changeModelByCountryId = (\n input: (field: AddressFieldType, value: any) => void,\n countryId: number,\n init: boolean = false,\n) => {\n input(names.CountryId, countryId);\n\n if (!init) {\n clearChangingFields(input);\n }\n};\n\nexport const clearChangingFields = (input: (field: AddressFieldType, value: any) => void) => {\n input(names.PostalCode, '');\n input(names.StateCode, '');\n};\n\nexport const getAddressAutocompleteSuggestions = async (params: StreetAutocompleteParams) => {\n const result = await getAddressSuggestions(params, {\n showLoading: false,\n cacheResults: true,\n });\n\n if (result.IsOk) {\n return result.Item;\n }\n\n return [];\n};\n\nexport const getInitCountryValue = () => {\n switch (country) {\n case Country.AUS:\n return AusId;\n case Country.UK:\n return UkId;\n default:\n return UsId;\n }\n};\n\nexport const getCountries = (isBrochure: boolean): SelectItem[] => {\n let primeCountries: string[] = [];\n switch (country) {\n case Country.AUS:\n primeCountries = ['Australia', 'New Zealand']; break\n case Country.UK:\n primeCountries = ['United Kingdom']; break\n default:\n primeCountries = ['United States', 'Canada'];\n }\n\n const countries = data.Countries.filter((c) => c.IsForBrochures || !isBrochure).map(\n (c) =>\n ({\n Value: c.Value,\n Text: c.Text,\n data: c,\n } as SelectItem),\n );\n\n const blankLine = {\n Value: -1,\n Text: '',\n Disabled: true,\n data: {},\n } as SelectItem;\n\n return [\n ...(primeCountries\n .map((name) => ({ ...countries.find((c) => name === c.Text) } as SelectItem))\n .map((p) => ({ ...p, Value: p.Value, Prime: true })) // fix vue-select duplicates\n .filter((c) => c) as SelectItem[]),\n blankLine,\n ...countries,\n ];\n};\n\nexport const getStates = (countryId: number) => {\n let states: string[] = data.States.find((s) => s.CountryId === +countryId)?.States || [];\n\n return states.map((s) => ({ Text: s, Value: s }));\n};\n\nexport const getPhoneCode = (countryId?: number) => {\n if (countryId === undefined) {\n countryId = getInitCountryValue();\n }\n\n const country = data.Countries.find((c) => c.Value === countryId);\n\n return country ? country.PhoneCode : '+1';\n};\n\nexport const isShow = (field: AddressFieldType, countryId: number) => {\n switch (field) {\n case names.StateCode:\n return isStateCountries(+countryId);\n case names.PostalCode:\n return !isUs(countryId);\n default:\n return true;\n }\n};\n\nexport const getCountryName = (countryId: number) => {\n const country = data.Countries.find((c) => c.Value === countryId);\n\n return country ? country.Text : '';\n};\n\nexport const validateFullAddress = async (model: Address) => {\n const result = await validate(model, { showLoading: false, cacheResults: true });\n\n return result;\n};\n","import { requiredIf, required } from 'vuelidate/lib/validators';\nimport { phoneAndDashed, phoneCode, empty, phoneAndDashedForUK } from '@/forms/Validations/CommonRules';\n\nimport BaseValidation from '@/forms/Validations/BaseValidation';\nimport ValidationRule from '@/forms/Validations/ValidationRule';\n\nimport { names } from '@/common/interfaces/dto/Phone';\nexport { names } from '@/common/interfaces/dto/Phone';\n\nimport { getPhoneCode } from '@/forms/FormElements/Rows/AddressRow/AddressRow.helper';\nimport { getStore } from '@/store';\n\ninterface PhoneParams {\n isRequired?: boolean;\n multiplyPhones?: boolean;\n}\n\nexport default (path: string = '', params: PhoneParams = {}) => {\n const { isRequired, multiplyPhones } = params;\n const store = getStore()\n const useLongPhone = store.state.Meta.Country === 5 || store.state.Meta.Country === 6\n let rules: ValidationRule[] = [\n {\n name: names.Code,\n rules: {\n ...(isRequired ? { required } : {}),\n requiredIf: requiredIf((function(){\n // @ts-ignore\n if (!this.model.Address) return false\n // @ts-ignore\n return this.model.Address.CountryId !== 385\n })),\n phoneCode,\n },\n messages: {\n ...(isRequired ? { required: 'Enter a phone code' } : {}),\n requiredIf: 'Enter a phone code',\n phoneCode: 'Enter a valid phone code',\n },\n modelValue: getPhoneCode(),\n },\n {\n name: names.Number,\n rules: {\n ...(isRequired ? { required } : {}),\n ...(isRequired && multiplyPhones\n ? {\n requiredMultiple: requiredIf(\n (model: any) => !empty(model[names.Home]) && !empty(model[names.Work]),\n ) as any,\n }\n : {}),\n ...(!isRequired ? { \n required: requiredIf(function(){\n // @ts-ignore\n if (!this.model.Address) return false\n //@ts-ignore\n return this.model.Address.CountryId !== 385\n }),\n } : {}),\n ...(useLongPhone ? { phoneAndDashedForUK } : phoneAndDashed),\n },\n messages: {\n required: 'Enter a phone number',\n requiredMultiple: 'Enter at least one phone number',\n phoneAndDashed: 'Enter a valid phone number',\n },\n },\n ];\n\n if (multiplyPhones) {\n rules.push({\n name: names.Home,\n rules: {\n phoneAndDashed,\n },\n messages: {\n phoneAndDashed: 'Enter a valid phone number',\n },\n });\n rules.push({\n name: names.Work,\n rules: {\n phoneAndDashed,\n },\n messages: {\n phoneAndDashed: 'Enter a valid phone number',\n },\n });\n }\n\n return new BaseValidation(rules, path);\n};\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"lex-row email-row\"},[_c('div',{class:_vm.classList},[_c('TextRow',{class:_vm.className,attrs:{\"label\":_vm.label,\"placeholder\":\" \",\"name\":_vm.name || _vm.names.Email,\"subModel\":_vm.subModel,\"maxlength\":_vm.maxLength,\"type\":\"email\",\"idPrefix\":_vm.idPrefix,\"required\":_vm.isRequired(_vm.name),\"disabled\":_vm.disabled}})],1),(_vm.confirmation)?_c('div',{class:_vm.classList},[_c('TextRow',{attrs:{\"label\":\"Confirm email address\",\"name\":_vm.names.EmailConfirmation,\"subModel\":_vm.subModel,\"maxlength\":_vm.maxLength,\"type\":\"email\",\"disabled\":_vm.disabled}})],1):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/ts-loader/index.js??ref--0!./EmailRow.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/ts-loader/index.js??ref--0!./EmailRow.ts?vue&type=script&lang=ts&\"","import { Component, Prop } from 'vue-property-decorator';\nimport { mixins } from 'vue-class-component';\n\nimport TextRow from '@/forms/FormElements/Rows/TextRow/TextRow.vue';\n\nimport RowValidationMixin from '@/forms/FormElements/Mixins/RowValidationMixin';\n\nimport { names } from './EmailRow.validation';\n\n@Component({ components: { TextRow } })\nexport default class EmailRow extends mixins(RowValidationMixin) {\n @Prop({ type: Boolean, default: false })\n readonly confirmation!: boolean;\n\n @Prop({ type: Boolean, default: false })\n readonly fullWidth!: boolean;\n\n @Prop({ type: Number, default: 64 })\n readonly maxLength!: number;\n\n @Prop({ type: String, default: 'Enter your email address' })\n readonly placeholder!: string;\n\n @Prop({ type: String, default: 'Email Address' })\n readonly label!: string;\n\n @Prop({ type: [String, Number], default: '' })\n readonly idPrefix!: string;\n\n @Prop({ type: [String], default: '' })\n readonly className!: string;\n\n get classList() {\n let emailClassListBase = this.fullWidth ? 'lex-col--size-12 ' : 'lex-col--size-9 ';\n\n return (\n emailClassListBase +\n (this.confirmation === true\n ? 'lex-col-md--size-6'\n : this.fullWidth\n ? ''\n : 'lex-col-md--size-8')\n );\n }\n\n names = names;\n}\n","import { render, staticRenderFns } from \"./EmailRow.vue?vue&type=template&id=352c6a1a&\"\nimport script from \"./EmailRow.ts?vue&type=script&lang=ts&\"\nexport * from \"./EmailRow.ts?vue&type=script&lang=ts&\"\nimport style0 from \"./EmailRow.scss?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{staticClass:\"debug-model\"},_vm._l((_vm.model),function(value,key){return _c('li',{key:key},[(value && value.toString() === '[object Object]')?[_vm._v(\"\\n \"+_vm._s(key)+\"\\n \"),_c('DebugModel',{attrs:{\"model\":value}})]:[_c('span',[_vm._v(\"\\n \"+_vm._s(key)+\":\\n \"),_c('b',[_vm._v(_vm._s(value))])])]],2)}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/ts-loader/index.js??ref--0!./DebugModel.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/ts-loader/index.js??ref--0!./DebugModel.ts?vue&type=script&lang=ts&\"","import Vue from 'vue';\nimport { Prop, Component } from 'vue-property-decorator';\n\n@Component({ name: 'DebugModel' })\nexport default class DebugModel extends Vue {\n @Prop()\n readonly model!: object;\n}\n","import { render, staticRenderFns } from \"./DebugModel.vue?vue&type=template&id=3c7d4fda&\"\nimport script from \"./DebugModel.ts?vue&type=script&lang=ts&\"\nexport * from \"./DebugModel.ts?vue&type=script&lang=ts&\"\nimport style0 from \"./DebugModel.scss?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n module.exports = {\n functional: true,\n render(_h, _vm) {\n const { _c, _v, data, children = [] } = _vm;\n\n const {\n class: classNames,\n staticClass,\n style,\n staticStyle,\n attrs = {},\n ...rest\n } = data;\n\n return _c(\n 'svg',\n {\n class: [classNames,staticClass],\n style: [style,staticStyle],\n attrs: Object.assign({\"aria-hidden\":\"true\",\"xmlns\":\"http://www.w3.org/2000/svg\",\"viewBox\":\"0 0 20 34\"}, attrs),\n ...rest,\n },\n children.concat([_c('path',{attrs:{\"d\":\"M19.697 9.338L9.994 0l-.725.697-.001.001-8.98 8.64a.961.961 0 00.013 1.385 1.056 1.056 0 001.439.012l7.227-6.954v29.231c0 .546.46.988 1.027.988s1.026-.442 1.026-.988V3.782l7.227 6.953c.193.186.454.29.726.29.273 0 .534-.104.726-.29a.968.968 0 00.301-.698.968.968 0 00-.301-.699\"}})])\n )\n }\n }\n ","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"lex-row name-row\"},[(_vm.label)?_c('label',{staticClass:\"field-wrapper__label name-row__label lex-col--size-12\"},[_vm._v(_vm._s(_vm.label))]):_vm._e(),(_vm.showTitle)?_c('div',{staticClass:\"lex-col--size-4 lex-col-md--size-2\"},[_c('DropdownRow',{staticClass:\"select-wrapper\",attrs:{\"label\":\"Title\",\"subModel\":_vm.subModel,\"name\":_vm.names.Title,\"list\":_vm.titleList,\"placeholder\":\" \",\"disabled\":_vm.disabled}})],1):_vm._e(),(_vm.showTitle)?_c('div',{staticClass:\"lex-col--size-9 lex-d-md-none\"}):_vm._e(),_c('div',{staticClass:\"lex-col--size-6 lex-col-md--size-5\"},[_c('TextRow',{attrs:{\"idPrefix\":_vm.idPrefix,\"label\":\"First Name\",\"subModel\":_vm.subModel,\"name\":_vm.names.FirstName,\"placeholder\":\" \",\"maxlength\":_vm.firstNameLength,\"disabled\":_vm.disabled}})],1),_c('div',{staticClass:\"lex-col--size-6 lex-col-md--size-5\"},[_c('TextRow',{attrs:{\"idPrefix\":_vm.idPrefix,\"label\":\"Last Name\",\"subModel\":_vm.subModel,\"name\":_vm.names.LastName,\"placeholder\":\" \",\"maxlength\":_vm.lastNameLength,\"disabled\":_vm.disabled}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/ts-loader/index.js??ref--0!./NameRow.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/ts-loader/index.js??ref--0!./NameRow.ts?vue&type=script&lang=ts&\"","import { Component, Prop } from 'vue-property-decorator';\nimport { mixins } from 'vue-class-component';\n\nimport TextRow from '@/forms/FormElements/Rows/TextRow/TextRow.vue';\nimport DropdownRow from '@/forms/FormElements/Rows/DropdownRow/DropdownRow.vue';\n\nimport RowValidationMixin from '@/forms/FormElements/Mixins/RowValidationMixin';\n\nimport { names } from './NameRow.validation';\n\n@Component({ components: { TextRow, DropdownRow } })\nexport default class NameRow extends mixins(RowValidationMixin) {\n names = names;\n @Prop({ type: Number, default: 14 })\n readonly firstNameLength: number;\n @Prop({ type: Number, default: 18 })\n readonly lastNameLength: number;\n @Prop({ type: [String, Number], default: '' })\n readonly idPrefix!: string;\n\n get showTitle() {\n return this.model[names.Title] !== undefined;\n }\n\n titleList = [\n { Text: 'Mr.', Value: 'Mr.' },\n { Text: 'Mrs.', Value: 'Mrs.' },\n { Text: 'Miss.', Value: 'Miss.' },\n { Text: 'Ms.', Value: 'Ms.' },\n { Text: 'Dr.', Value: 'Dr.' },\n ];\n}\n","import { render, staticRenderFns } from \"./NameRow.vue?vue&type=template&id=1a9c193d&\"\nimport script from \"./NameRow.ts?vue&type=script&lang=ts&\"\nexport * from \"./NameRow.ts?vue&type=script&lang=ts&\"\nimport style0 from \"./NameRow.scss?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export const dangerousMessage = 'Please do not use letters \"<\" and \">\" in this field';\n","import { required, requiredIf } from 'vuelidate/lib/validators';\nimport { dangerous, zipCode, requireNonWhitespace, symbolsNotAllowed} from '@/forms/Validations/CommonRules';\nimport { dangerousMessage } from '@/forms/Validations/CommonMessages';\n\nimport BaseValidation from '@/forms/Validations/BaseValidation';\nimport ValidationRule from '@/forms/Validations/ValidationRule';\n\nimport Address, { names, AddressFieldType } from '@/common/interfaces/dto/Address';\nexport { names } from '@/common/interfaces/dto/Address';\n\nimport { isShow, getInitCountryValue } from './AddressRow.helper';\n\nconst getRequireIf = (field: AddressFieldType, invert: boolean = false) => {\n return requiredIf(((model: any) => {\n const result = isShow(field, model[names.CountryId]);\n return invert ? !result : result;\n }) as any);\n};\n\nconst getPostalRequired = (value: string, model: Address) => {\n return !isShow(names.PostalCode, model.CountryId) ? true : requireNonWhitespace(value);\n};\n\nconst getRequireState = () => {\n return requiredIf(((model: any) => isShow(names.StateCode, model[names.CountryId])) as any);\n};\n\nconst getZipIf = (value: string, model: Address) => {\n return isShow(names.PostalCode, model.CountryId) ? true : zipCode(value);\n};\n\ninterface AddressParams {\n stripRequired?: boolean;\n}\n\nexport default (path: string = '', params?: AddressParams) => {\n const rules: ValidationRule[] = [\n {\n name: names.CountryId,\n rules: { required },\n messages: {\n required: 'Select a country',\n },\n modelValue: getInitCountryValue(),\n },\n {\n name: names.Street1,\n rules: { required: requireNonWhitespace, dangerous },\n messages: {\n required: 'Enter an address',\n dangerous: dangerousMessage,\n },\n },\n {\n name: names.Street2,\n rules: { dangerous },\n messages: {\n dangerous: dangerousMessage,\n },\n },\n {\n name: names.City,\n rules: { required: requireNonWhitespace, dangerous, symbolsNotAllowed},\n messages: {\n required: 'Enter a city',\n dangerous: dangerousMessage,\n symbolsNotAllowed: `The symbols #^*?' are not allowed in city names`\n },\n },\n {\n name: names.StateCode,\n rules: {\n requiredState: getRequireState(),\n },\n messages: {\n requiredState: 'Select a state',\n },\n },\n {\n name: names.PostalCode,\n rules: {\n requiredPostal: getPostalRequired,\n required: getRequireIf(names.PostalCode, true),\n zipCode: getZipIf,\n dangerous,\n },\n messages: {\n requiredPostal: 'Enter a postal code',\n required: 'Enter a zip code',\n zipCode: 'Enter a valid zip code',\n dangerous: dangerousMessage,\n },\n },\n ];\n\n if (params?.stripRequired) {\n rules.forEach((r) => {\n const { rules, messages }: { rules: any; messages: any } = r;\n\n delete rules.required;\n delete rules.requiredAus;\n delete rules.requiredPostal;\n delete rules.requiredState;\n\n delete messages.required;\n delete messages.requiredAus;\n delete messages.requiredPostal;\n delete messages.requiredState;\n });\n }\n\n return new BaseValidation(rules, path);\n};\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"lex-row phone-row\"},[_c('div',{staticClass:\"lex-col--size-4 lex-col-md--size-2\"},[_c('TextRow',{attrs:{\"label\":\"Code\",\"placeholder\":_vm.placeholder,\"formatter\":_vm.codeFormatter,\"name\":_vm.names.Code,\"subModel\":_vm.subModel,\"type\":\"tel\"}})],1),_c('div',{staticClass:\"lex-col--size-8 lex-col-md--size-4\"},[_c('TextRow',{attrs:{\"label\":_vm.label,\"placeholder\":_vm.placeholder,\"formatter\":_vm.numberFormatter,\"name\":_vm.names.Number,\"subModel\":_vm.subModel,\"type\":\"tel\"}})],1),(_vm.multiple)?[_c('TextRow',{staticClass:\"lex-col--size-6 lex-col-md--size-4\",attrs:{\"label\":\"Home\",\"placeholder\":\"Home Number\",\"formatter\":_vm.numberFormatter,\"name\":_vm.names.Home,\"subModel\":_vm.subModel,\"type\":\"tel\"}}),_c('TextRow',{staticClass:\"lex-col--size-6 lex-col-md--size-4\",attrs:{\"label\":\"Work\",\"placeholder\":\"Work Number\",\"formatter\":_vm.numberFormatter,\"name\":_vm.names.Work,\"subModel\":_vm.subModel,\"type\":\"tel\"}})]:_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { CleaveOptions } from 'cleave.js/options';\n\nexport const getPhoneCodeFormatter = () =>\n ({\n delimiter: '+',\n blocks: [0, 3],\n numericOnly: true,\n } as CleaveOptions);\n\nexport const getPhoneNumberFormatter = (isUK: boolean) => {\n const blocks = isUK ? [0, 2, 0, 4, 7] : [0, 3, 0, 3, 4]\n return ({\n delimiters: ['(', ')', ' ', '-'],\n blocks,\n numericOnly: true,\n } as CleaveOptions);\n}\n","import mod from \"-!../../../../../node_modules/ts-loader/index.js??ref--0!./PhoneRow.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/ts-loader/index.js??ref--0!./PhoneRow.ts?vue&type=script&lang=ts&\"","import { Component, Prop, Watch } from 'vue-property-decorator';\nimport { mixins } from 'vue-class-component';\n\nimport TextRow from '@/forms/FormElements/Rows/TextRow/TextRow.vue';\n\nimport RowValidationMixin from '@/forms/FormElements/Mixins/RowValidationMixin';\n\nimport { names } from './PhoneRow.validation';\nimport { getCountryData } from '@/api/CountryStateApi';\nimport { CleaveOptions } from 'cleave.js/options';\nimport { getPhoneCodeFormatter, getPhoneNumberFormatter } from '@/forms/Formatters';\nimport { getStore } from '@/store';\n\n@Component({ components: { TextRow } })\nexport default class PhoneRow extends mixins(RowValidationMixin) {\n @Prop({ type: String, default: 'Phone number' })\n readonly label!: string;\n\n @Prop({ type: String, default: ' ' })\n readonly placeholder!: string;\n\n @Prop({ type: Boolean, default: false })\n readonly multiple!: boolean;\n\n @Prop()\n readonly countryId!: Number | String;\n\n @Watch('countryId')\n countryIdChange(val: Number | String) {\n const country = getCountryData().Countries.find((c) => c.Value == val);\n this.model[names.Code] = country?.PhoneCode;\n }\n\n isCodeMutated = false;\n\n names = names;\n\n codeFormatter: CleaveOptions = getPhoneCodeFormatter();\n\n get numberFormatter(): CleaveOptions {\n const country = getStore().state.Meta.Country\n return getPhoneNumberFormatter(country === 5 || country === 6)\n }\n}\n","import { render, staticRenderFns } from \"./PhoneRow.vue?vue&type=template&id=1fa0c3b5&\"\nimport script from \"./PhoneRow.ts?vue&type=script&lang=ts&\"\nexport * from \"./PhoneRow.ts?vue&type=script&lang=ts&\"\nimport style0 from \"./PhoneRow.scss?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"lex-row adress-row\"},[_c('div',{staticClass:\"lex-col--size-12 lex-col-md--size-6\"},[_c('DropdownRow',{staticClass:\"country-of-residence\",attrs:{\"label\":\"Country of residence\",\"placeholder\":\" \",\"list\":_vm.countries,\"filterDuplicates\":true,\"subModel\":_vm.subModel,\"name\":_vm.names.CountryId},on:{\"change\":_vm.countryChanged,\"fullOption\":_vm.fullOption}})],1),_c('div',{staticClass:\"lex-col-md--size-6\"}),_c('div',{staticClass:\"lex-col--size-12 lex-col-md--size-6\"},[_c('TextRow',{attrs:{\"label\":\"Address line 1\",\"placeholder\":\" \",\"name\":_vm.names.Street1,\"subModel\":_vm.subModel,\"maxlength\":_vm.addressLine1MaxLength}})],1),_c('div',{staticClass:\"lex-col-md--size-6\"}),_c('div',{staticClass:\"lex-col--size-12 lex-col-md--size-6\"},[_c('TextRow',{attrs:{\"label\":\"Address line 2\",\"placeholder\":\" \",\"name\":_vm.names.Street2,\"subModel\":_vm.subModel,\"maxlength\":_vm.addressLine2MaxLength}})],1),_c('div',{staticClass:\"lex-col--size-12 lex-col-md--size-6\"},[_c('TextRow',{attrs:{\"label\":\"City\",\"placeholder\":\" \",\"name\":_vm.names.City,\"subModel\":_vm.subModel,\"maxlength\":_vm.cityMaxLength}})],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showPart(_vm.names.StateCode)),expression:\"showPart(names.StateCode)\"}],staticClass:\"lex-col--size-6 lex-col-md--size-4\"},[_c('DropdownRow',{attrs:{\"label\":_vm.getStateLabel,\"placeholder\":\" \",\"subModel\":_vm.subModel,\"name\":_vm.names.StateCode,\"idPrefix\":\"-StateCode1\",\"list\":_vm.states,\"required\":_vm.isStateRequred}})],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showPart(_vm.names.StateCode)),expression:\"!showPart(names.StateCode)\"}],staticClass:\"lex-col--size-6 lex-col-md--size-4\"},[_c('TextRow',{attrs:{\"label\":\"Province\",\"placeholder\":\" \",\"name\":_vm.names.StateCode,\"idPrefix\":\"-StateCode2\",\"subModel\":_vm.subModel,\"maxlength\":\"50\"}})],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showPart(_vm.names.PostalCode)),expression:\"!showPart(names.PostalCode)\"}],staticClass:\"lex-col--size-6 lex-col-md--size-3\"},[_c('TextRow',{attrs:{\"label\":\"Zip Code \",\"placeholder\":\" \",\"name\":_vm.names.PostalCode,\"idPrefix\":\"-Zip\",\"subModel\":_vm.subModel,\"formatter\":_vm.fullZipCode ? _vm.zipFullFormatter : _vm.zipFormatter,\"type\":\"number\",\"pattern\":\"\\\\d*\",\"filterWatch\":_vm.showPart(_vm.names.PostalCode),\"autocomplete\":\"off\"}})],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showPart(_vm.names.PostalCode)),expression:\"showPart(names.PostalCode)\"}],staticClass:\"lex-col--size-6 lex-col-md--size-3\"},[_c('TextRow',{attrs:{\"label\":\"Postcode\",\"placeholder\":\" \",\"name\":_vm.names.PostalCode,\"idPrefix\":\"-Postcode\",\"subModel\":_vm.subModel,\"maxlength\":_vm.postCodeMaxLength,\"filterWatch\":!_vm.showPart(_vm.names.PostalCode)}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/ts-loader/index.js??ref--0!./AddressRow.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/ts-loader/index.js??ref--0!./AddressRow.ts?vue&type=script&lang=ts&\"","import { Component, Prop, Watch } from 'vue-property-decorator';\nimport { mixins } from 'vue-class-component';\nimport { CleaveOptions } from 'cleave.js/options';\n\nimport DropdownModel from '@/common/interfaces/DropdownModel';\n\nimport TextRow from '@/forms/FormElements/Rows/TextRow/TextRow.vue';\nimport DropdownRow from '@/forms/FormElements/Rows/DropdownRow/DropdownRow.vue';\n\nimport RowValidationMixin from '@/forms/FormElements/Mixins/RowValidationMixin';\n\nimport { names } from './AddressRow.validation';\nimport { AddressFieldType } from '@/common/interfaces/dto/Address';\n\nimport {\n clearChangingFields,\n getStates,\n getCountries,\n isShow,\n isCanada,\n isStateCountries,\n} from './AddressRow.helper';\n\n@Component({ components: { TextRow, DropdownRow } })\nexport default class AddressRow extends mixins(RowValidationMixin) {\n // Shorten list of countries by IsBrochure criteria\n @Prop({ type: Boolean, default: false })\n readonly IsBrochure!: boolean;\n @Prop({ type: Number, default: 50 })\n readonly addressLine1MaxLength: number;\n @Prop({ type: Number, default: 50 })\n readonly addressLine2MaxLength: number;\n @Prop({ type: Number, default: 50 })\n readonly cityMaxLength: number;\n @Prop({ type: Number, default: 10 })\n readonly postCodeMaxLength: number;\n @Prop({ type: Boolean, default: false })\n readonly fullZipCode: boolean;\n\n names = names;\n\n zipFormatter: CleaveOptions = {\n blocks: [5],\n numericOnly: true,\n };\n\n zipFullFormatter: CleaveOptions = {\n blocks: [9],\n numericOnly: true,\n };\n\n countryChanged(value, prevValue) {\n if (isStateCountries(value) || isStateCountries(prevValue))\n clearChangingFields(this.input as any);\n }\n\n fullOption(option) {\n this.$emit('fullOption', option)\n }\n\n get getStateLabel() {\n return isCanada(this.countryId) ? 'Province' : 'State';\n }\n\n get countryId() {\n return this.model[names.CountryId];\n }\n\n get countries() {\n return getCountries(this.IsBrochure);\n }\n\n get states() {\n return getStates(this.countryId);\n }\n\n get isStateRequred() {\n return this.validation[this.names.StateCode].requiredState !== undefined;\n }\n\n showPart(part: AddressFieldType) {\n const result = isShow(part, this.countryId);\n return result;\n }\n}\n","import { render, staticRenderFns } from \"./AddressRow.vue?vue&type=template&id=67c2358c&\"\nimport script from \"./AddressRow.ts?vue&type=script&lang=ts&\"\nexport * from \"./AddressRow.ts?vue&type=script&lang=ts&\"\nimport style0 from \"./AddressRow.scss?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"title-header\",class:{ 'title-header--center': _vm.p.Center }},[_c('div',{staticClass:\"title-header__lockup\"},[(_vm.p.Link.Title)?_c('div',{staticClass:\"title-header__link push-v--mobile--small\"},[_c('Arrow',{staticClass:\"title-header__arrow\"}),_c('a',{staticClass:\"cta\",attrs:{\"href\":_vm.p.Link.Link}},[_vm._v(_vm._s(_vm.p.Link.Title))])],1):_vm._e(),(_vm.tag === 'h2')?_c('h2',{staticClass:\"title-header__title push-v--mobile--x-small\"},[_vm._v(_vm._s(_vm.p.Title))]):_c('h1',{staticClass:\"title-header__title push-v--mobile--x-small\"},[_vm._v(_vm._s(_vm.p.Title))]),(_vm.p.Text)?_c('p',{staticClass:\"title-header__text h5\"},[_vm._v(_vm._s(_vm.p.Text))]):_vm._e(),(_vm.p.Links)?_vm._l((_vm.p.Links),function(Link,i){return _c('div',{key:i,staticClass:\"push-v--mobile--small push-t--mobile--small\"},[_c('a',{staticClass:\"cta\",attrs:{\"href\":Link.Link}},[_vm._v(_vm._s(Link.Title))])])}):_vm._e()],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../node_modules/ts-loader/index.js??ref--0!./TitleHeader.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/ts-loader/index.js??ref--0!./TitleHeader.ts?vue&type=script&lang=ts&\"","import { Component, Vue } from 'vue-property-decorator';\nimport { TitleHeader } from '@/common/interfaces/TitleHeader';\nimport Arrow from '@/assets/icons/arrow.svg?inline';\n\nconst TitleHeaderProps = Vue.extend({\n props: {\n p: Object as () => TitleHeader,\n tag: { type: String, default: 'h1' }\n }\n});\n\n@Component({\n components: {\n Arrow,\n },\n})\nexport default class TitleHeaderComponent extends TitleHeaderProps {}\n","import { render, staticRenderFns } from \"./TitleHeader.vue?vue&type=template&id=5e058fe0&\"\nimport script from \"./TitleHeader.ts?vue&type=script&lang=ts&\"\nexport * from \"./TitleHeader.ts?vue&type=script&lang=ts&\"\nimport style0 from \"./TitleHeader.scss?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}