{"version":3,"sources":["webpack:///./src/@core/layouts/components/app-navbar/components/Locale.vue?eccf","webpack:///./src/@core/utils/validations/validators.js","webpack:///./src/@core/utils/validations/validations.js","webpack:///./src/@core/mixins/ui/forms.js","webpack:///./src/@core/layouts/components/app-navbar/components/Locale.vue?3c5c","webpack:///src/@core/layouts/components/app-navbar/components/Locale.vue","webpack:///./src/@core/layouts/components/app-navbar/components/Locale.vue?aa01","webpack:///./src/@core/layouts/components/app-navbar/components/Locale.vue?c5e8"],"names":["validatorPositive","value","validatorPassword","password","regExp","validPassword","test","validatorCreditCard","creditnum","cRegExp","validCreditCard","validatorUrlValidator","val","undefined","length","re","required","extend","rule_required","email","rule_email","alphaNum","rule_min","rule_confirmed","rule_regex","rule_between","rule_alpha","rule_integer","rule_digits","rule_alpha_dash","rule_alpha_num","rule_length","validate","message","localize","en","messages","names","fields","min","ar","tr","togglePasswordVisibility","data","passwordFieldType","methods","this","render","_vm","_h","$createElement","_c","_self","staticClass","staticStyle","attrs","scopedSlots","_u","key","fn","currentLocale","img","locale","_v","_s","name","proxy","_l","localeObj","on","$event","changeLocele","staticRenderFns","components","BNavItemDropdown","BDropdownItem","BImg","firstTime","locales","computed","$i18n","created","document","documentElement","lang","localStorage","setItem","window","location","reload","component"],"mappings":"kHAAA,W,mOCAaA,EAAoB,SAACC,GAChC,OAAIA,GAAS,GAMFC,EAAoB,SAACC,GAEhC,IAAMC,EAAS,uDAETC,EAAgBD,EAAOE,KAAKH,GAClC,OAAOE,GAGIE,EAAsB,SAACC,GAElC,IAAMC,EAAU,uBAEVC,EAAkBD,EAAQH,KAAKE,GACrC,OAAOE,GAGIC,EAAwB,SAACC,GACpC,QAAYC,IAARD,GAA6B,OAARA,GAA+B,IAAfA,EAAIE,OAC3C,OAAO,EAGT,IAAMC,EACJ,4EAEF,OAAOA,EAAGT,KAAKM,ICAJI,EAAWC,eAAO,WAAYC,QAE9BC,EAAQF,eAAO,QAASG,QAkBxBC,GAhBMJ,eAAO,MAAOK,Q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AAY,KC3FqX,I,wBCQxYa,EAAY,eACd,EACA3C,EACAyB,GACA,EACA,KACA,KACA,MAIa,OAAAkB,E","file":"js/chunk-33bdc0da.011419ca.js","sourcesContent":["export * from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Locale.vue?vue&type=style&index=0&lang=css&\"","export const validatorPositive = (value) => {\n if (value >= 0) {\n return true;\n }\n return false;\n};\n\nexport const validatorPassword = (password) => {\n /* eslint-disable no-useless-escape */\n const regExp = /(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&*()]).{8,}/;\n /* eslint-enable no-useless-escape */\n const validPassword = regExp.test(password);\n return validPassword;\n};\n\nexport const validatorCreditCard = (creditnum) => {\n /* eslint-disable no-useless-escape */\n const cRegExp = /^(?:3[47][0-9]{13})$/;\n /* eslint-enable no-useless-escape */\n const validCreditCard = cRegExp.test(creditnum);\n return validCreditCard;\n};\n\nexport const validatorUrlValidator = (val) => {\n if (val === undefined || val === null || val.length === 0) {\n return true;\n }\n /* eslint-disable no-useless-escape */\n const re =\n /^(http[s]?:\\/\\/){0,1}(www\\.){0,1}[a-zA-Z0-9\\.\\-]+\\.[a-zA-Z]{2,5}[\\.]{0,1}/;\n /* eslint-enable no-useless-escape */\n return re.test(val);\n};\n","import { extend, localize } from \"vee-validate\";\nimport {\n required as rule_required,\n email as rule_email,\n min as rule_min,\n confirmed as rule_confirmed,\n regex as rule_regex,\n between as rule_between,\n alpha as rule_alpha,\n integer as rule_integer,\n digits as rule_digits,\n alpha_dash as rule_alpha_dash,\n alpha_num as rule_alpha_num,\n length as rule_length,\n} from \"vee-validate/dist/rules\";\nimport ar from \"vee-validate/dist/locale/ar.json\";\nimport en from \"vee-validate/dist/locale/en.json\";\nimport tr from \"vee-validate/dist/locale/tr.json\";\n\n// eslint-disable-next-line object-curly-newline\nimport {\n validatorPositive,\n validatorUrlValidator,\n validatorPassword,\n validatorCreditCard,\n} from \"./validators\";\n\n// ////////////////////////////////////////////////////////\n// General\n// ////////////////////////////////////////////////////////\n\nexport const required = extend(\"required\", rule_required);\n\nexport const email = extend(\"email\", rule_email);\n\nexport const min = extend(\"min\", rule_min);\n\nexport const confirmed = extend(\"confirmed\", rule_confirmed);\n\nexport const regex = extend(\"regex\", rule_regex);\n\nexport const between = extend(\"between\", rule_between);\n\nexport const alpha = extend(\"alpha\", rule_alpha);\n\nexport const integer = extend(\"integer\", rule_integer);\n\nexport const digits = extend(\"digits\", rule_digits);\n\nexport const alphaDash = extend(\"alpha-dash\", rule_alpha_dash);\n\nexport const alphaNum = extend(\"alpha-num\", rule_alpha_num);\n\nexport const length = extend(\"length\", rule_length);\n\nexport const positive = extend(\"positive\", {\n validate: validatorPositive,\n message: \"Please enter positive number!\",\n});\n\nexport const credit = extend(\"credit-card\", {\n validate: validatorCreditCard,\n message: \"It is not valid credit card!\",\n});\n\nexport const password = extend(\"password\", {\n validate: validatorPassword,\n message:\n \"Your {_field_} must contain at least one uppercase, one lowercase, one special character and one digit\",\n});\n\nexport const url = extend(\"url\", {\n validate: validatorUrlValidator,\n message: \"URL is invalid\",\n});\n\n// Install English and Arabic localizations.\nlocalize({\n en: {\n messages: en.messages,\n names: {\n email: \"Email\",\n password: \"Password\",\n },\n fields: {\n password: {\n min: \"{_field_} is too short, you want to get hacked?\",\n },\n },\n },\n ar: {\n messages: ar.messages,\n names: {\n email: \"البريد الإلكتروني\",\n password: \"كلمة السر\",\n },\n fields: {\n password: {\n min: \"كلمة السر قصيرة جداً سيتم اختراقك\",\n },\n },\n },\n tr: {\n messages: tr.messages,\n names: {\n email: \"Email\",\n password: \"Şifre\",\n },\n fields: {\n password: {\n min: \"{_field_} çok kısa, lütfen daha uzun bir şifre giriniz.\",\n },\n },\n },\n});\n// ////////////////////////////////////////////////////////\n// NOTE:\n// Quasar validation for reference only\n// Remove this note once development is finished and make sure to\n// to convert all of them in veevalidate version\n// ////////////////////////////////////////////////////////\n\n// export const required = (val) => {\n// return (val && val.length > 0) || '*Field is required'\n// }\n\n// export const required_obj = (obj) => {\n// if (obj === null || obj === undefined) return '*Field is required'\n// return (Object.entries(obj).length > 0 && obj.constructor === Object) || '*Field is required'\n// }\n\n// export const no_blank_spaces_arr = (arr) => {\n// return arr.every(val => (val.trim() && val.trim().length > 0)) || 'Blank Spaces are not allowed'\n// }\n\n// export const url = val => {\n// // If blank return\n// if (val === undefined || val === null || val.length === 0) return true\n\n// // Used\n// // https://stackoverflow.com/questions/4314741/url-regex-validation\n\n// // Other\n// // https://stackoverflow.com/questions/5717093/check-if-a-javascript-string-is-a-url\n// // https://www.w3resource.com/javascript-exercises/javascript-regexp-exercise-9.php\n// // https://www.geeksforgeeks.org/how-to-validate-url-using-regular-expression-in-javascript/\n\n// /* eslint-disable no-useless-escape */\n// const re = /^(http[s]?:\\/\\/){0,1}(www\\.){0,1}[a-zA-Z0-9\\.\\-]+\\.[a-zA-Z]{2,5}[\\.]{0,1}/\n// /* eslint-enable no-useless-escape */\n// return re.test(val) || 'URL is invalid'\n// }\n\n// export const date = val => {\n\n// // If blank return\n// if (val === undefined || val === null || val.length === 0) return true\n\n// // https://github.com/quasarframework/quasar/blob/dev/ui/src/utils/patterns.js\n// return /^-?[\\d]+\\/[0-1]\\d\\/[0-3]\\d$/.test(val) || 'Date is invalid'\n// }\n\n// export const max = (val, max) => {\n\n// // If blank return\n// if (val === undefined || val === null) return true\n\n// return val.length <= max || `More than ${max} characters are not allowed`\n// }\n\n// export const max_arr = (val, max) => {\n// return val.length <= max || `More than ${max} values are not allowed`\n// }\n\n// export const min = (val, min) => {\n\n// // If blank return\n// if (val === undefined || val === null || val.length === 0) return true\n\n// return val.length >= min || `Minimum ${min} characters are required`\n// }\n\n// export const num_range = (val, min, max) => {\n\n// // If blank return\n// if (val === undefined || val === null || val.length === 0) return true\n\n// const msg = 'Value is invalid'\n// if (min === null) return val <= max || msg\n// else if (max === null) return val >= min || msg\n// else return (val >= min && val <= max) || msg\n// }\n","// We haven't added icon's computed property because it makes this mixin coupled with UI\nexport const togglePasswordVisibility = {\n data() {\n return {\n passwordFieldType: \"password\",\n };\n },\n methods: {\n togglePasswordVisibility() {\n this.passwordFieldType =\n this.passwordFieldType === \"password\" ? \"text\" : \"password\";\n },\n },\n};\n\nexport const _ = null;\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-nav-item-dropdown',{staticClass:\"dropdown-language z-index-20\",staticStyle:{\"z-index\":\"20\"},attrs:{\"id\":\"dropdown-grouped\",\"variant\":\"link\",\"right\":\"\"},scopedSlots:_vm._u([{key:\"button-content\",fn:function(){return [_c('b-img',{attrs:{\"src\":_vm.currentLocale.img,\"height\":\"14px\",\"width\":\"22px\",\"alt\":_vm.currentLocale.locale}}),_c('span',{staticClass:\"ml-50 text-body\"},[_vm._v(_vm._s(_vm.currentLocale.name))])]},proxy:true}])},_vm._l((_vm.locales),function(localeObj){return _c('b-dropdown-item',{key:localeObj.locale,on:{\"click\":function($event){return _vm.changeLocele(localeObj.locale)}}},[_c('b-img',{attrs:{\"src\":localeObj.img,\"height\":\"14px\",\"width\":\"22px\",\"alt\":localeObj.locale}}),_c('span',{staticClass:\"ml-50\"},[_vm._v(_vm._s(localeObj.name))])],1)}),1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n {{ currentLocale.name }}\n \n \n \n {{ localeObj.name }}\n \n \n\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Locale.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Locale.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Locale.vue?vue&type=template&id=72e7efe7&\"\nimport script from \"./Locale.vue?vue&type=script&lang=js&\"\nexport * from \"./Locale.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Locale.vue?vue&type=style&index=0&lang=css&\"\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":""}