{"remainingRequest":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/element-ui/lib/locale/index.js","dependencies":[{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/element-ui/lib/locale/index.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/babel.config.js","mtime":1701742078504},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js","mtime":456789000000}],"contextDependencies":[],"result":["'use strict';\n\nexports.__esModule = true;\nexports.i18n = exports.use = exports.t = undefined;\nvar _zhCN = require('element-ui/lib/locale/lang/zh-CN');\nvar _zhCN2 = _interopRequireDefault(_zhCN);\nvar _vue = require('vue');\nvar _vue2 = _interopRequireDefault(_vue);\nvar _deepmerge = require('deepmerge');\nvar _deepmerge2 = _interopRequireDefault(_deepmerge);\nvar _format = require('./format');\nvar _format2 = _interopRequireDefault(_format);\nfunction _interopRequireDefault(obj) {\n  return obj && obj.__esModule ? obj : {\n    default: obj\n  };\n}\nvar format = (0, _format2.default)(_vue2.default);\nvar lang = _zhCN2.default;\nvar merged = false;\nvar i18nHandler = function i18nHandler() {\n  var vuei18n = Object.getPrototypeOf(this || _vue2.default).$t;\n  if (typeof vuei18n === 'function' && !!_vue2.default.locale) {\n    if (!merged) {\n      merged = true;\n      _vue2.default.locale(_vue2.default.config.lang, (0, _deepmerge2.default)(lang, _vue2.default.locale(_vue2.default.config.lang) || {}, {\n        clone: true\n      }));\n    }\n    return vuei18n.apply(this, arguments);\n  }\n};\nvar t = exports.t = function t(path, options) {\n  var value = i18nHandler.apply(this, arguments);\n  if (value !== null && value !== undefined) return value;\n  var array = path.split('.');\n  var current = lang;\n  for (var i = 0, j = array.length; i < j; i++) {\n    var property = array[i];\n    value = current[property];\n    if (i === j - 1) return format(value, options);\n    if (!value) return '';\n    current = value;\n  }\n  return '';\n};\nvar use = exports.use = function use(l) {\n  lang = l || lang;\n};\nvar i18n = exports.i18n = function i18n(fn) {\n  i18nHandler = fn || i18nHandler;\n};\nexports.default = {\n  use: use,\n  t: t,\n  i18n: i18n\n};",null]}