{"version":3,"sources":["webpack:///./node_modules/@chatwoot/utils/dist/utils.esm.js","webpack:///./app/javascript/v3/api/apiClient.js","webpack:///./app/javascript/v3/api/auth.js","webpack:///./app/javascript/v3/components/Button/SubmitButton.vue?c2cc","webpack:///./app/javascript/v3/components/Button/SubmitButton.vue?a3e9","webpack:///app/javascript/v3/components/Button/SubmitButton.vue","webpack:///./app/javascript/v3/components/Button/SubmitButton.vue","webpack:///./app/javascript/v3/components/Form/Input.vue?0f01","webpack:///./app/javascript/v3/components/Form/Input.vue?f7fc","webpack:///app/javascript/v3/components/Form/Input.vue","webpack:///./app/javascript/v3/components/Form/Input.vue","webpack:///./app/javascript/v3/components/GoogleOauth/Button.vue?026d","webpack:///./app/javascript/v3/components/Divider/SimpleDivider.vue?3412","webpack:///app/javascript/v3/components/Divider/SimpleDivider.vue","webpack:///./app/javascript/v3/components/GoogleOauth/Button.vue?cf04","webpack:///app/javascript/v3/components/GoogleOauth/Button.vue","webpack:///./app/javascript/v3/components/Divider/SimpleDivider.vue","webpack:///./app/javascript/v3/components/Divider/SimpleDivider.vue?be1f","webpack:///./app/javascript/v3/components/GoogleOauth/Button.vue","webpack:///./app/javascript/v3/views/login/Index.vue?a81a","webpack:///app/javascript/v3/views/login/Index.vue","webpack:///./app/javascript/v3/views/login/Index.vue?0cc7","webpack:///./app/javascript/v3/views/login/Index.vue","webpack:///./app/javascript/shared/components/Spinner.vue?7506","webpack:///./app/javascript/shared/components/Spinner.vue?0b9f","webpack:///./app/javascript/shared/components/Spinner.vue?bdee","webpack:///app/javascript/shared/components/Spinner.vue","webpack:///./app/javascript/shared/components/Spinner.vue","webpack:///./app/javascript/shared/mixins/globalConfigMixin.js"],"names":["debounce","func","wait","immediate","timeout","context","args","arguments","later","apply","callNow","clearTimeout","window","setTimeout","getContrastingTextColor","bgColor","color","replace","parseInt","slice","formatTime","timeInSeconds","formattedTime","minutes","Math","floor","seconds","hours","_minutes","days","_hours","trimContent","content","maxLength","ellipsis","trimmedContent","length","substring","parseBoolean","candidate","candidateString","String","toLowerCase","Boolean","JSON","parse","error","sortAsc","arr","sort","a","b","_quantileForSorted","sorted","q","min","max","value","clamped","pos","base","rest","undefined","getQuantileIntervals","data","intervals","map","interval","MESSAGE_VARIABLES_REGEX","capitalizeName","name","s","toUpperCase","getFirstName","_ref","user","firstName","split","shift","getLastName","_ref2","lastName","pop","getMessageVariables","_ref3","_assignee$email","conversation","_conversation$meta","meta","assignee","sender","id","email","phone_number","replaceVariablesInMessage","_ref4","message","variables","_","trim","getUndefinedVariablesInMessage","_ref5","matches","match","filter","variable","chatwootConfig","apiHost","wootAPI","axios","create","baseURL","login","ssoAccountId","ssoConversationId","credentials","post","response","setAuthCredentials","clearLocalStorageOnLogout","location","getLoginRedirectURL","throwErrorMessage","register","creds","account_name","accountName","user_full_name","fullName","password","h_captcha_client_response","hCaptchaClientResponse","verifyPasswordToken","confirmationToken","confirmation_token","setNewPassword","resetPasswordToken","confirmPassword","put","reset_password_token","password_confirmation","resetPassword","component","_vm","this","_c","_self","staticClass","class","computedClass","attrs","type","disabled","on","onClick","_v","_s","buttonText","iconClass","_e","hasError","label","_t","required","placeholder","dataTestid","domProps","onInput","$event","$emit","errorMessage","_m","getGoogleAuthUrl","$t","ref","globalConfig","logo","installationName","logoDark","useInstallationName","showGoogleOAuth","loginApi","hasErrored","preventDefault","submitLogin","$v","$error","$touch","model","callback","$$v","$set","expression","disableUserProfileUpdate","showLoading","size","colorSchemeClasses","methods","str"],"mappings":"6YAaA,IAAIA,EAAW,SAAkBC,EAAMC,EAAMC,GAC3C,IAAIC,EACJ,OAAO,WACL,IAAIC,EAAU,KACVC,EAAOC,UAEPC,EAAQ,WACVJ,EAAU,KACLD,GAAWF,EAAKQ,MAAMJ,EAASC,IAGlCI,EAAUP,IAAcC,EAC5BO,aAAaP,GACbA,EAAUQ,OAAOC,WAAWL,EAAON,GAC/BQ,GAAST,EAAKQ,MAAMJ,EAASC,KAWjCQ,EAA0B,SAAiCC,GAC7D,IA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SAASa,YAAY,cAAcnD,EAAI8B,GAAG,gBAAgB,QAAU9B,EAAIsC,SAASa,gBAAgB,IAAI,SAExgD,IGMpB,EACA,KACA,KACA,MAIa,UAAApD,E,gEClBf,Q,gCCAA,ICA6M,ECI7M,CACA,OACA,MACA,YACA,iBAEA,aACA,YACA,aAGA,UACA,mBADA,WAEA,mCACA,4BAGA,6BACA,8BAGA,6BACA,+BAGA,oB,gBCrBIA,EAAY,YACd,GHTW,WAAkB,IAAIC,EAAIC,KAAqB,OAAOC,EAApBF,EAAIG,MAAMD,IAAa,OAAO,CAACE,YAAY,UAAUC,MAAM,GAAGL,EAAIoD,QAAQpD,EAAIqD,yBAEvG,IGUpB,EACA,KACA,WACA,MAIa,IAAAtD,E,qDCnBA,KACbuD,QAAS,CAEPlB,oBAFO,WAE0C,IAA7BmB,EAA4B,uDAAtB,GAAIrB,EAAkB,uCAC9C,OAAOqB,EAAIrL,QAAQ,YAAagK","file":"js/30-636ddb388d47e75f21be.chunk.js","sourcesContent":["import isToday from 'date-fns/isToday';\nimport isYesterday from 'date-fns/isYesterday'; // Returns a function, that, as long as it continues to be invoked, will not\n// be triggered. The function will be called after it stops being called for\n// N milliseconds. If `immediate` is passed, trigger the function on the\n// leading edge, instead of the trailing.\n\n/**\r\n * @func Callback function to be called after delay\r\n * @delay Delay for debounce in ms\r\n * @immediate should execute immediately\r\n * @returns debounced callback function\r\n */\n\nvar debounce = function debounce(func, wait, immediate) {\n var timeout;\n return function () {\n var context = null;\n var args = arguments;\n\n var later = function later() {\n timeout = null;\n if (!immediate) func.apply(context, args);\n };\n\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = window.setTimeout(later, wait);\n if (callNow) func.apply(context, args);\n };\n};\n/**\r\n * @name Get contrasting text color\r\n * @description Get contrasting text color from a text color\r\n * @param bgColor Background color of text.\r\n * @returns contrasting text color\r\n */\n\n\nvar getContrastingTextColor = function getContrastingTextColor(bgColor) {\n var color = bgColor.replace('#', '');\n var r = parseInt(color.slice(0, 2), 16);\n var g = parseInt(color.slice(2, 4), 16);\n var b = parseInt(color.slice(4, 6), 16); // http://stackoverflow.com/a/3943023/112731\n\n return r * 0.299 + g * 0.587 + b * 0.114 > 186 ? '#000000' : '#FFFFFF';\n};\n/**\r\n * @name Get formatted date\r\n * @description Get date in today, yesterday or any other date format\r\n * @param date date\r\n * @param todayText Today text\r\n * @param yesterdayText Yesterday text\r\n * @returns formatted date\r\n */\n\n\nvar formatDate = function formatDate(_ref) {\n var date = _ref.date,\n todayText = _ref.todayText,\n yesterdayText = _ref.yesterdayText;\n var dateValue = new Date(date);\n if (isToday(dateValue)) return todayText;\n if (isYesterday(dateValue)) return yesterdayText;\n return date;\n};\n/**\r\n * @name formatTime\r\n * @description Format time to Hour, Minute and Second\r\n * @param timeInSeconds number\r\n * @returns formatted time\r\n */\n\n\nvar formatTime = function formatTime(timeInSeconds) {\n var formattedTime = '';\n\n if (timeInSeconds >= 60 && timeInSeconds < 3600) {\n var minutes = Math.floor(timeInSeconds / 60);\n formattedTime = minutes + \" Min\";\n var seconds = minutes === 60 ? 0 : Math.floor(timeInSeconds % 60);\n return formattedTime + (\"\" + (seconds > 0 ? ' ' + seconds + ' Sec' : ''));\n }\n\n if (timeInSeconds >= 3600 && timeInSeconds < 86400) {\n var hours = Math.floor(timeInSeconds / 3600);\n formattedTime = hours + \" Hr\";\n\n var _minutes = timeInSeconds % 3600 < 60 || hours === 24 ? 0 : Math.floor(timeInSeconds % 3600 / 60);\n\n return formattedTime + (\"\" + (_minutes > 0 ? ' ' + _minutes + ' Min' : ''));\n }\n\n if (timeInSeconds >= 86400) {\n var days = Math.floor(timeInSeconds / 86400);\n formattedTime = days + \" Day\";\n\n var _hours = timeInSeconds % 86400 < 3600 || days >= 364 ? 0 : Math.floor(timeInSeconds % 86400 / 3600);\n\n return formattedTime + (\"\" + (_hours > 0 ? ' ' + _hours + ' Hr' : ''));\n }\n\n return Math.floor(timeInSeconds) + \" Sec\";\n};\n/**\r\n * @name trimContent\r\n * @description Trim a string to max length\r\n * @param content String to trim\r\n * @param maxLength Length of the string to trim, default 1024\r\n * @param ellipsis Boolean to add dots at the end of the string, default false\r\n * @returns trimmed string\r\n */\n\n\nvar trimContent = function trimContent(content, maxLength, ellipsis) {\n if (content === void 0) {\n content = '';\n }\n\n if (maxLength === void 0) {\n maxLength = 1024;\n }\n\n if (ellipsis === void 0) {\n ellipsis = false;\n }\n\n var trimmedContent = content;\n\n if (content.length > maxLength) {\n trimmedContent = content.substring(0, maxLength);\n }\n\n if (ellipsis) {\n trimmedContent = trimmedContent + '...';\n }\n\n return trimmedContent;\n};\n/**\r\n * Function that parses a string boolean value and returns the corresponding boolean value\r\n * @param {string | number} candidate - The string boolean value to be parsed\r\n * @return {boolean} - The parsed boolean value\r\n */\n\n\nfunction parseBoolean(candidate) {\n try {\n // lowercase the string, so TRUE becomes true\n var candidateString = String(candidate).toLowerCase(); // wrap in boolean to ensure that the return value\n // is a boolean even if values like 0 or 1 are passed\n\n return Boolean(JSON.parse(candidateString));\n } catch (error) {\n return false;\n }\n}\n/**\r\n * Sorts an array of numbers in ascending order.\r\n * @param {number[]} arr - The array of numbers to be sorted.\r\n * @returns {number[]} - The sorted array.\r\n */\n\n\nfunction sortAsc(arr) {\n // .slice() is used to create a copy of the array so that the original array is not mutated\n return arr.slice().sort(function (a, b) {\n return a - b;\n });\n}\n/**\r\n * Calculates the quantile value of an array at a specified percentile.\r\n * @param {number[]} arr - The array of numbers to calculate the quantile value from.\r\n * @param {number} q - The percentile to calculate the quantile value for.\r\n * @returns {number} - The quantile value.\r\n */\n\n\nfunction quantile(arr, q) {\n var sorted = sortAsc(arr); // Sort the array in ascending order\n\n return _quantileForSorted(sorted, q); // Calculate the quantile value\n}\n/**\r\n * Clamps a value between a minimum and maximum range.\r\n * @param {number} min - The minimum range.\r\n * @param {number} max - The maximum range.\r\n * @param {number} value - The value to be clamped.\r\n * @returns {number} - The clamped value.\r\n */\n\n\nfunction clamp(min, max, value) {\n if (value < min) {\n return min;\n }\n\n if (value > max) {\n return max;\n }\n\n return value;\n}\n/**\r\n * This method assumes the the array provided is already sorted in ascending order.\r\n * It's a helper method for the quantile method and should not be exported as is.\r\n *\r\n * @param {number[]} arr - The array of numbers to calculate the quantile value from.\r\n * @param {number} q - The percentile to calculate the quantile value for.\r\n * @returns {number} - The quantile value.\r\n */\n\n\nfunction _quantileForSorted(sorted, q) {\n var clamped = clamp(0, 1, q); // Clamp the percentile between 0 and 1\n\n var pos = (sorted.length - 1) * clamped; // Calculate the index of the element at the specified percentile\n\n var base = Math.floor(pos); // Find the index of the closest element to the specified percentile\n\n var rest = pos - base; // Calculate the decimal value between the closest elements\n // Interpolate the quantile value between the closest elements\n // Most libraries don't to the interpolation, but I'm just having fun here\n // also see https://en.wikipedia.org/wiki/Quantile#Estimating_quantiles_from_a_sample\n\n if (sorted[base + 1] !== undefined) {\n // in case the position was a integer, the rest will be 0 and the interpolation will be skipped\n return sorted[base] + rest * (sorted[base + 1] - sorted[base]);\n } // Return the closest element if there is no interpolation possible\n\n\n return sorted[base];\n}\n/**\r\n * Calculates the quantile values for an array of intervals.\r\n * @param {number[]} data - The array of numbers to calculate the quantile values from.\r\n * @param {number[]} intervals - The array of intervals to calculate the quantile values for.\r\n * @returns {number[]} - The array of quantile values for the intervals.\r\n */\n\n\nvar getQuantileIntervals = function getQuantileIntervals(data, intervals) {\n // Sort the array in ascending order before looping through the intervals.\n // depending on the size of the array and the number of intervals, this can speed up the process by at least twice\n // for a random array of 100 numbers and 5 intervals, the speedup is 3x\n var sorted = sortAsc(data);\n return intervals.map(function (interval) {\n return _quantileForSorted(sorted, interval);\n });\n};\n\nvar MESSAGE_VARIABLES_REGEX = /{{(.*?)}}/g;\n\nvar skipCodeBlocks = function skipCodeBlocks(str) {\n return str.replace(/```(?:.|\\n)+?```/g, '');\n};\n\nvar capitalizeName = function capitalizeName(name) {\n return (name || '').replace(/\\b(\\w)/g, function (s) {\n return s.toUpperCase();\n });\n};\n\nvar getFirstName = function getFirstName(_ref) {\n var user = _ref.user;\n var firstName = user != null && user.name ? user.name.split(' ').shift() : '';\n return capitalizeName(firstName);\n};\n\nvar getLastName = function getLastName(_ref2) {\n var user = _ref2.user;\n\n if (user && user.name) {\n var lastName = user.name.split(' ').length > 1 ? user.name.split(' ').pop() : '';\n return capitalizeName(lastName);\n }\n\n return '';\n};\n\nvar getMessageVariables = function getMessageVariables(_ref3) {\n var _assignee$email;\n\n var conversation = _ref3.conversation;\n var _conversation$meta = conversation.meta,\n assignee = _conversation$meta.assignee,\n sender = _conversation$meta.sender,\n id = conversation.id;\n return {\n 'contact.name': capitalizeName((sender == null ? void 0 : sender.name) || ''),\n 'contact.first_name': getFirstName({\n user: sender\n }),\n 'contact.last_name': getLastName({\n user: sender\n }),\n 'contact.email': sender == null ? void 0 : sender.email,\n 'contact.phone': sender == null ? void 0 : sender.phone_number,\n 'contact.id': sender == null ? void 0 : sender.id,\n 'conversation.id': id,\n 'agent.name': capitalizeName((assignee == null ? void 0 : assignee.name) || ''),\n 'agent.first_name': getFirstName({\n user: assignee\n }),\n 'agent.last_name': getLastName({\n user: assignee\n }),\n 'agent.email': (_assignee$email = assignee == null ? void 0 : assignee.email) != null ? _assignee$email : ''\n };\n};\n\nvar replaceVariablesInMessage = function replaceVariablesInMessage(_ref4) {\n var message = _ref4.message,\n variables = _ref4.variables; // @ts-ignore\n\n return message.replace(MESSAGE_VARIABLES_REGEX, function (_, replace) {\n return variables[replace.trim()] ? variables[replace.trim().toLowerCase()] : '';\n });\n};\n\nvar getUndefinedVariablesInMessage = function getUndefinedVariablesInMessage(_ref5) {\n var message = _ref5.message,\n variables = _ref5.variables;\n var messageWithOutCodeBlocks = skipCodeBlocks(message);\n var matches = messageWithOutCodeBlocks.match(MESSAGE_VARIABLES_REGEX);\n if (!matches) return [];\n return matches.map(function (match) {\n return match.replace('{{', '').replace('}}', '').trim();\n }).filter(function (variable) {\n return !variables[variable];\n });\n};\n\nexport { clamp, debounce, formatDate, formatTime, getContrastingTextColor, getMessageVariables, getQuantileIntervals, getUndefinedVariablesInMessage, parseBoolean, quantile, replaceVariablesInMessage, sortAsc, trimContent };","import axios from 'axios';\n\nconst { apiHost = '' } = window.chatwootConfig || {};\nconst wootAPI = axios.create({ baseURL: `${apiHost}/` });\n\nexport default wootAPI;\n","import {\n setAuthCredentials,\n throwErrorMessage,\n clearLocalStorageOnLogout,\n} from 'dashboard/store/utils/api';\nimport wootAPI from './apiClient';\nimport { getLoginRedirectURL } from '../helpers/AuthHelper';\n\nexport const login = async ({\n ssoAccountId,\n ssoConversationId,\n ...credentials\n}) => {\n try {\n const response = await wootAPI.post('auth/sign_in', credentials);\n setAuthCredentials(response);\n clearLocalStorageOnLogout();\n window.location = getLoginRedirectURL({\n ssoAccountId,\n ssoConversationId,\n user: response.data.data,\n });\n } catch (error) {\n throwErrorMessage(error);\n }\n};\n\nexport const register = async creds => {\n try {\n const response = await wootAPI.post('api/v1/accounts.json', {\n account_name: creds.accountName.trim(),\n user_full_name: creds.fullName.trim(),\n email: creds.email,\n password: creds.password,\n h_captcha_client_response: creds.hCaptchaClientResponse,\n });\n setAuthCredentials(response);\n return response.data;\n } catch (error) {\n throwErrorMessage(error);\n }\n return null;\n};\n\nexport const verifyPasswordToken = async ({ confirmationToken }) => {\n try {\n const response = await wootAPI.post('auth/confirmation', {\n confirmation_token: confirmationToken,\n });\n setAuthCredentials(response);\n } catch (error) {\n throwErrorMessage(error);\n }\n};\n\nexport const setNewPassword = async ({\n resetPasswordToken,\n password,\n confirmPassword,\n}) => {\n try {\n const response = await wootAPI.put('auth/password', {\n reset_password_token: resetPasswordToken,\n password_confirmation: confirmPassword,\n password,\n });\n setAuthCredentials(response);\n } catch (error) {\n throwErrorMessage(error);\n }\n};\n\nexport const resetPassword = async ({ email }) =>\n wootAPI.post('auth/password', { email });\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('button',{staticClass:\"flex items-center w-full justify-center rounded-md bg-woot-500 py-3 px-3 text-base font-medium text-white shadow-sm hover:bg-woot-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-woot-500 cursor-pointer\",class:_vm.computedClass,attrs:{\"type\":_vm.type,\"data-testid\":\"submit_button\",\"disabled\":_vm.disabled},on:{\"click\":_vm.onClick}},[_c('span',[_vm._v(_vm._s(_vm.buttonText))]),_vm._v(\" \"),(!!_vm.iconClass)?_c('fluent-icon',{staticClass:\"icon\",attrs:{\"icon\":_vm.iconClass}}):_vm._e(),_vm._v(\" \"),(_vm.loading)?_c('spinner'):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SubmitButton.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SubmitButton.vue?vue&type=script&lang=js&\"","\n\n\n","import { render, staticRenderFns } from \"./SubmitButton.vue?vue&type=template&id=ea9458c6&\"\nimport script from \"./SubmitButton.vue?vue&type=script&lang=js&\"\nexport * from \"./SubmitButton.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_vm.label)?_c('label',{staticClass:\"flex justify-between text-sm font-medium leading-6 text-slate-900 dark:text-white\",class:{ 'text-red-500': _vm.hasError },attrs:{\"for\":_vm.name}},[_vm._v(\"\\n \"+_vm._s(_vm.label)+\"\\n \"),_vm._t(\"default\")],2):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"mt-1\"},[_c('input',{staticClass:\"block w-full rounded-md border-0 px-3 py-3 appearance-none shadow-sm ring-1 ring-inset text-slate-900 dark:text-slate-100 placeholder:text-slate-400 focus:ring-2 focus:ring-inset focus:ring-woot-500 sm:text-sm sm:leading-6 outline-none dark:bg-slate-700\",class:{\n 'focus:ring-red-600 ring-red-600': _vm.hasError,\n 'dark:ring-slate-600 dark:focus:ring-woot-500 ring-slate-200':\n !_vm.hasError,\n },attrs:{\"id\":_vm.name,\"name\":_vm.name,\"type\":_vm.type,\"autocomplete\":\"off\",\"required\":_vm.required,\"placeholder\":_vm.placeholder,\"data-testid\":_vm.dataTestid},domProps:{\"value\":_vm.value},on:{\"input\":_vm.onInput,\"blur\":function($event){return _vm.$emit('blur')}}}),_vm._v(\" \"),(_vm.errorMessage && _vm.hasError)?_c('span',{staticClass:\"text-xs leading-2 text-red-400\"},[_vm._v(\"\\n \"+_vm._s(_vm.errorMessage)+\"\\n \")]):_vm._e()])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Input.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Input.vue?vue&type=script&lang=js&\"","\n\n","import { render, staticRenderFns } from \"./Input.vue?vue&type=template&id=3df6f85c&\"\nimport script from \"./Input.vue?vue&type=script&lang=js&\"\nexport * from \"./Input.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"flex flex-col\"},[_c('a',{staticClass:\"inline-flex w-full justify-center rounded-md bg-white py-3 px-4 shadow-sm ring-1 ring-inset ring-slate-200 dark:ring-slate-600 hover:bg-slate-50 focus:outline-offset-0 dark:bg-slate-700 dark:hover:bg-slate-700\",attrs:{\"href\":_vm.getGoogleAuthUrl()}},[_c('img',{staticClass:\"h-6\",attrs:{\"src\":\"/assets/images/auth/google.svg\",\"alt\":\"Google Logo\"}}),_vm._v(\" \"),_c('span',{staticClass:\"text-base font-medium ml-2 text-slate-600 dark:text-white\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('LOGIN.OAUTH.GOOGLE_LOGIN'))+\"\\n \")])]),_vm._v(\" \"),(_vm.showSeparator)?_c('simple-divider',{ref:\"divider\",staticClass:\"uppercase\",attrs:{\"label\":_vm.$t('COMMON.OR')}}):_vm._e()],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SimpleDivider.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SimpleDivider.vue?vue&type=script&lang=js&\"","\n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Button.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Button.vue?vue&type=script&lang=js&\"","\n\n\n","import { render, staticRenderFns } from \"./SimpleDivider.vue?vue&type=template&id=72614552&\"\nimport script from \"./SimpleDivider.vue?vue&type=script&lang=js&\"\nexport * from \"./SimpleDivider.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"relative my-4 section-separator\"},[_vm._m(0),_vm._v(\" \"),(_vm.label)?_c('div',{staticClass:\"relative flex justify-center text-sm\"},[_c('span',{staticClass:\"bg-white dark:bg-slate-800 px-2 text-slate-500 dark:text-white\"},[_vm._v(\"\\n \"+_vm._s(_vm.label)+\"\\n \")])]):_vm._e()])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"absolute inset-0 flex items-center\",attrs:{\"aria-hidden\":\"true\"}},[_c('div',{staticClass:\"w-full border-t border-slate-200 dark:border-slate-600\"})])\n}]\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./Button.vue?vue&type=template&id=e0b6ae8c&\"\nimport script from \"./Button.vue?vue&type=script&lang=js&\"\nexport * from \"./Button.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('main',{staticClass:\"flex flex-col bg-woot-25 min-h-screen w-full py-20 sm:px-6 lg:px-8 dark:bg-slate-900\"},[_c('section',{staticClass:\"max-w-5xl mx-auto\"},[_c('img',{staticClass:\"mx-auto h-8 w-auto block dark:hidden\",attrs:{\"src\":_vm.globalConfig.logo,\"alt\":_vm.globalConfig.installationName}}),_vm._v(\" \"),(_vm.globalConfig.logoDark)?_c('img',{staticClass:\"mx-auto h-8 w-auto hidden dark:block\",attrs:{\"src\":_vm.globalConfig.logoDark,\"alt\":_vm.globalConfig.installationName}}):_vm._e(),_vm._v(\" \"),_c('h2',{staticClass:\"mt-6 text-center text-3xl font-medium text-slate-900 dark:text-woot-50\"},[_vm._v(\"\\n \"+_vm._s(_vm.useInstallationName(_vm.$t('LOGIN.TITLE'), _vm.globalConfig.installationName))+\"\\n \")]),_vm._v(\" \"),(_vm.showSignupLink)?_c('p',{staticClass:\"mt-3 text-center text-sm text-slate-600 dark:text-slate-400\"},[_vm._v(\"\\n \"+_vm._s(_vm.$t('COMMON.OR'))+\"\\n \"),_c('router-link',{staticClass:\"text-link lowercase\",attrs:{\"to\":\"auth/signup\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('LOGIN.CREATE_NEW_ACCOUNT'))+\"\\n \")])],1):_vm._e()]),_vm._v(\" \"),_c('section',{staticClass:\"bg-white shadow sm:mx-auto mt-11 sm:w-full sm:max-w-lg dark:bg-slate-800 p-11 sm:shadow-lg sm:rounded-lg\",class:{\n 'mb-8 mt-15': !_vm.showGoogleOAuth,\n 'animate-wiggle': _vm.loginApi.hasErrored,\n }},[(!_vm.email)?_c('div',[(_vm.showGoogleOAuth)?_c('GoogleOAuthButton'):_vm._e(),_vm._v(\" \"),_c('form',{staticClass:\"space-y-5\",on:{\"submit\":function($event){$event.preventDefault();return _vm.submitLogin.apply(null, arguments)}}},[_c('form-input',{attrs:{\"name\":\"email_address\",\"type\":\"text\",\"data-testid\":\"email_input\",\"required\":\"\",\"label\":_vm.$t('LOGIN.EMAIL.LABEL'),\"placeholder\":_vm.$t('LOGIN.EMAIL.PLACEHOLDER'),\"has-error\":_vm.$v.credentials.email.$error},on:{\"input\":_vm.$v.credentials.email.$touch},model:{value:(_vm.credentials.email),callback:function ($$v) {_vm.$set(_vm.credentials, \"email\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"credentials.email\"}}),_vm._v(\" \"),_c('form-input',{attrs:{\"type\":\"password\",\"name\":\"password\",\"data-testid\":\"password_input\",\"required\":\"\",\"label\":_vm.$t('LOGIN.PASSWORD.LABEL'),\"placeholder\":_vm.$t('LOGIN.PASSWORD.PLACEHOLDER'),\"has-error\":_vm.$v.credentials.password.$error},on:{\"input\":_vm.$v.credentials.password.$touch},model:{value:(_vm.credentials.password),callback:function ($$v) {_vm.$set(_vm.credentials, \"password\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"credentials.password\"}},[(!_vm.globalConfig.disableUserProfileUpdate)?_c('p',[_c('router-link',{staticClass:\"text-link\",attrs:{\"to\":\"auth/reset/password\"}},[_vm._v(\"\\n \"+_vm._s(_vm.$t('LOGIN.FORGOT_PASSWORD'))+\"\\n \")])],1):_vm._e()]),_vm._v(\" \"),_c('submit-button',{attrs:{\"disabled\":_vm.loginApi.showLoading,\"button-text\":_vm.$t('LOGIN.SUBMIT'),\"loading\":_vm.loginApi.showLoading}})],1)],1):_c('div',{staticClass:\"flex items-center justify-center\"},[_c('spinner',{attrs:{\"color-scheme\":\"primary\",\"size\":\"\"}})],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Index.vue?vue&type=template&id=64c427a5&\"\nimport script from \"./Index.vue?vue&type=script&lang=js&\"\nexport * from \"./Index.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js!../../../../node_modules/css-loader/dist/cjs.js??ref--3-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/dist/cjs.js??ref--3-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--3-3!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Spinner.vue?vue&type=style&index=0&id=25f4edd6&prod&scoped=true&lang=scss&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('span',{staticClass:\"spinner\",class:`${_vm.size} ${_vm.colorSchemeClasses}`})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Spinner.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js??ref--7-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Spinner.vue?vue&type=script&lang=js&\"","\n\n\n","import { render, staticRenderFns } from \"./Spinner.vue?vue&type=template&id=25f4edd6&scoped=true&\"\nimport script from \"./Spinner.vue?vue&type=script&lang=js&\"\nexport * from \"./Spinner.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Spinner.vue?vue&type=style&index=0&id=25f4edd6&prod&scoped=true&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 \"25f4edd6\",\n null\n \n)\n\nexport default component.exports","export default {\n methods: {\n // eslint-disable-next-line default-param-last\n useInstallationName(str = '', installationName) {\n return str.replace(/Chatwoot/g, installationName);\n },\n },\n};\n"],"sourceRoot":""}