{"version":3,"sources":["webpack:///./src/views/auth/Login.vue","webpack:///src/views/auth/Login.vue","webpack:///./src/views/auth/Login.vue?2803","webpack:///./src/views/auth/Login.vue?fe8d","webpack:///./src/views/auth/Login.vue?b2a6","webpack:///./src/utilities/validations.js"],"names":["render","_vm","this","_c","_self","staticClass","attrs","_v","_s","$t","fields","on","onSubmit","scopedSlots","_u","key","fn","proxy","staticRenderFns","computed","emailField","class","color","rules","type","name","autofocus","placeholder","flat","solo","dataCy","data","isSubmitting","methods","show","error","component","fromISO","now","DateTime","fromDateTimes","Interval","isRequired","v","String","trim","length","i18n","t","maxChar","n","minChar","noSpecialChars","test","isEmailAddress","isEmailAddressCheck","str","re","toLowerCase"],"mappings":"8GAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,OAAO,CAACA,EAAG,KAAK,CAACE,YAAY,cAAc,CAACF,EAAG,IAAI,CAACE,YAAY,OAAOC,MAAM,CAAC,UAAU,cAAc,CAACL,EAAIM,GAAG,IAAIN,EAAIO,GAAGP,EAAIQ,GAAG,yBAAyB,OAAON,EAAG,IAAI,CAACE,YAAY,2BAA2BC,MAAM,CAAC,UAAU,eAAe,CAACL,EAAIM,GAAG,IAAIN,EAAIO,GAAGP,EAAIQ,GAAG,0BAA0B,WAAWN,EAAG,SAAS,CAACE,YAAY,uBAAuBC,MAAM,CAAC,OAASL,EAAIS,QAAQC,GAAG,CAAC,OAASV,EAAIW,UAAUC,YAAYZ,EAAIa,GAAG,CAAC,CAACC,IAAI,mBAAmBC,GAAG,WAAW,MAAO,CAACb,EAAG,IAAI,CAACE,YAAY,4BAA4BC,MAAM,CAAC,UAAU,0CAA0C,CAACH,EAAG,QAAQ,CAACF,EAAIM,GAAGN,EAAIO,GAAGP,EAAIQ,GAAG,4DAA4DQ,OAAM,QAAW,IAE7vBC,EAAkB,G,gDCyBP,GACfC,UACAC,aACA,OACAC,qCACAC,sBAEAC,sBACAC,aACAC,aACAC,aACAC,2CACAC,QACAC,QACAC,uBAGApB,SACA,8CAGAqB,UACA,CACAC,kBAGAC,YACA,2CACArB,YACA,oBAGA,qBACA,yCAAAsB,UACA,oDACA,KACA,qBACA,yCAAAA,UACA,gCAEAC,IACA,yCAAAD,UACA,qBACA,aACAC,2DCvE0Z,I,wBCQtZC,EAAY,eACd,EACApC,EACAkB,GACA,EACA,KACA,WACA,MAIa,aAAAkB,E,6CCnBf,W,yDCAA,sMAGA,MAAM,QAAEC,EAAO,IAAEC,GAAQC,eACnB,cAAEC,GAAkBC,cAEbC,EAAaC,GACvBA,GAAKC,OAAOD,GAAGE,OAAOC,OAAS,GAAMF,OAAOG,OAAKC,EAAE,oCAiCzCC,EAAUC,GAAKP,IACzBA,GAAKC,OAAOD,GAAGG,QAAUI,GAAKN,OAAOG,OAAKC,EAAE,6BAA8B,CAAEE,OAElEC,EAAUD,GAAKP,IACzBA,GAAKC,OAAOD,GAAGG,QAAUI,GAAKN,OAAOG,OAAKC,EAAE,6BAA8B,CAAEE,OAElEE,EAAiBT,IAC3B,qCAAqCU,KAAKT,OAAOD,KAClDC,OAAOG,OAAKC,EAAE,oCAMHM,EAAiBX,IAC3BA,GAAKY,EAAoBZ,IAAMC,OAAOG,OAAKC,EAAE,yCASzC,SAASO,EAAoBC,GAClC,MAAMC,EACJ,wJACF,OAAOA,EAAGJ,KAAKT,OAAOY,GAAKE","file":"js/Login.8dfb8a16.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('span',[_c('h1',{staticClass:\"cardHeader\"},[_c('p',{staticClass:\"mb-0\",attrs:{\"data-cy\":\"welcomeTo\"}},[_vm._v(\" \"+_vm._s(_vm.$t('auth.login.welcomeTo'))+\" \")]),_c('p',{staticClass:\"primary--text gatherings\",attrs:{\"data-cy\":\"gatherings\"}},[_vm._v(\" \"+_vm._s(_vm.$t('auth.login.gatherings'))+\" \")])])]),_c('c-form',{staticClass:\"mt-4 pa-2 login-form\",attrs:{\"fields\":_vm.fields},on:{\"submit\":_vm.onSubmit},scopedSlots:_vm._u([{key:\"card-form-footer\",fn:function(){return [_c('p',{staticClass:\"grey--text text--darken-2\",attrs:{\"data-cy\":\"signInOrCreateAnAccountUsingYourEmail\"}},[_c('small',[_vm._v(_vm._s(_vm.$t('auth.login.signInOrCreateAnAccountUsingYourEmail')))])])]},proxy:true}])})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Login.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Login.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Login.vue?vue&type=template&id=afacc020&scoped=true&\"\nimport script from \"./Login.vue?vue&type=script&lang=js&\"\nexport * from \"./Login.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Login.vue?vue&type=style&index=0&id=afacc020&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"afacc020\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Login.vue?vue&type=style&index=0&id=afacc020&prod&lang=scss&scoped=true&\"","import i18n from '@/plugins/i18n'\nimport { DateTime, Interval } from 'luxon'\n\nconst { fromISO, now } = DateTime\nconst { fromDateTimes } = Interval\n\nexport const isRequired = v =>\n (v && String(v).trim().length > 0) || String(i18n.t('validations.thisFieldIsRequired'))\n\n/**\n * Type checking\n */\nexport const isFloat = (v, strict) =>\n strict\n ? Number(v) === v\n : Number(v) == v || endsInDecimalPoint(v) || String(i18n.t('validations.mustBeAFloat'))\n\nexport const isInteger = (v, strict = false) =>\n Number.isInteger(strict ? v : Number(v)) || String(i18n.t('validations.mustBeAnInteger'))\n\n/**\n * Format\n */\nexport const endsInDecimalPoint = v => String(v).lastIndexOf('.') === String(v).length - 1\n\nexport const isRoundedToNDecimalPlaces = (v, n, exact = false) => {\n const exploded = String(v).split('.')\n const eLen = exploded.length\n if (eLen === 1) return true // number is whole\n if (eLen > 2) return String(i18n.t('validations.mustHaveASingleDecimalPoint')) // not a decimal\n const length = exploded[eLen - 1].length\n if (exact)\n return length === n || String(i18n.t('validations.mustBeRoundedToExactlyNDecimalPlaces', { n }))\n else return length <= n || String(i18n.t('validations.mustBeRoundedToNDecimalPlaces', { n }))\n}\n\n/**\n * Strings\n */\n\nexport const maxChar = n => v =>\n !v || String(v).length <= n || String(i18n.t('validations.maxNCharacters', { n }))\n\nexport const minChar = n => v =>\n !v || String(v).length >= n || String(i18n.t('validations.minNCharacters', { n }))\n\nexport const noSpecialChars = v =>\n !/[!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~]/.test(String(v)) ||\n String(i18n.t('validations.noSpecialCharacters'))\n\n/**\n * Email\n */\n\nexport const isEmailAddress = v =>\n !v || isEmailAddressCheck(v) || String(i18n.t('validations.mustBeAValidEmailAddress'))\n\n/**\n * Returns true if a valid email address.\n *\n * @param {String} str string to be checked\n *\n * @returns {Boolean} true if string is a valid email address\n */\nexport function isEmailAddressCheck(str) {\n const re =\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 return re.test(String(str).toLowerCase())\n}\n\n/**\n * Time\n */\n\nexport const isPast = v =>\n fromDateTimes(fromISO(v), now()).isValid || String(i18n.t('validations.thisDateMustBeInThePast'))\n\nexport const isFuture = v =>\n fromDateTimes(now(), fromISO(v)).isValid ||\n String(i18n.t('validations.thisDateMustBeInTheFuture'))\n\nexport const isValidDate = v =>\n DateTime.fromISO(v).isValid || String(i18n.t('validations.thisFieldMustBeAValidDate'))\n\n/**\n * Numbers\n */\nexport const isGreaterThanN = (v, n) =>\n v > n || String(i18n.t('validations.mustBeGreaterThanN', { n }))\n\nexport const isGreaterThanOrEqualToN = (v, n) =>\n v >= n || String(i18n.t('validations.mustBeGreaterThanOrEqualToN', { n }))\n\nexport const isLessThanN = (v, n) => v < n || String(i18n.t('validations.mustBeLessThanN', { n }))\n\nexport const isLessThanOrEqualToN = (v, n) =>\n v <= n || String(i18n.t('validations.mustBeLessThanOrEqualToN', { n }))\n"],"sourceRoot":""}