增加新模块

This commit is contained in:
何江明
2025-05-10 18:17:24 +08:00
parent 7e7a096151
commit 8217069b9a
427 changed files with 2069 additions and 1941 deletions
@@ -1 +1 @@
{"version":3,"file":"color.js","sources":["uni_modules/uview-plus/libs/config/color.js"],"sourcesContent":["// 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供\n// 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)\nconst color = {\n primary: '#3c9cff',\n info: '#909399',\n default: '#909399',\n warning: '#f9ae3d',\n error: '#f56c6c',\n success: '#5ac725',\n mainColor: '#303133',\n contentColor: '#606266',\n tipsColor: '#909399',\n lightColor: '#c0c4cc',\n borderColor: '#e4e7ed'\n}\n\nexport default color\n"],"names":[],"mappings":";AAEK,MAAC,QAAQ;AAAA,EACV,SAAS;AAAA,EACT,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA,EACP,SAAS;AAAA,EACT,WAAW;AAAA,EACX,cAAc;AAAA,EACd,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,aAAa;AACjB;;"}
{"version":3,"file":"color.js","sources":["uni_modules/uview-plus/libs/config/color.js"],"sourcesContent":["// 为了让用户能够自定义主题,会逐步弃用此文件,各颜色通过css提供\r\n// 为了给某些特殊场景使用和向后兼容,无需删除此文件(2020-06-20)\r\nconst color = {\r\n primary: '#3c9cff',\r\n info: '#909399',\r\n default: '#909399',\r\n warning: '#f9ae3d',\r\n error: '#f56c6c',\r\n success: '#5ac725',\r\n mainColor: '#303133',\r\n contentColor: '#606266',\r\n tipsColor: '#909399',\r\n lightColor: '#c0c4cc',\r\n borderColor: '#e4e7ed'\r\n}\r\n\r\nexport default color\n"],"names":[],"mappings":";AAEK,MAAC,QAAQ;AAAA,EACV,SAAS;AAAA,EACT,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AAAA,EACP,SAAS;AAAA,EACT,WAAW;AAAA,EACX,cAAc;AAAA,EACd,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,aAAa;AACjB;;"}
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
{"version":3,"file":"debounce.js","sources":["uni_modules/uview-plus/libs/function/debounce.js"],"sourcesContent":["let timeout = null\n\n/**\n * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数\n *\n * @param {Function} func 要执行的回调函数\n * @param {Number} wait 延时的时间\n * @param {Boolean} immediate 是否立即执行\n * @return null\n */\nexport function debounce(func, wait = 500, immediate = false) {\n // 清除定时器\n if (timeout !== null) clearTimeout(timeout)\n // 立即执行,此类情况一般用不到\n if (immediate) {\n const callNow = !timeout\n timeout = setTimeout(() => {\n timeout = null\n }, wait)\n if (callNow) typeof func === 'function' && func()\n } else {\n // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法\n timeout = setTimeout(() => {\n typeof func === 'function' && func()\n }, wait)\n }\n}\n\nexport default debounce\n"],"names":[],"mappings":";AAAA,IAAI,UAAU;AAUP,SAAS,SAAS,MAAM,OAAO,KAAK,YAAY,OAAO;AAE1D,MAAI,YAAY;AAAM,iBAAa,OAAO;AAE1C,MAAI,WAAW;AACX,UAAM,UAAU,CAAC;AACjB,cAAU,WAAW,MAAM;AACvB,gBAAU;AAAA,IACb,GAAE,IAAI;AACP,QAAI;AAAS,aAAO,SAAS,cAAc,KAAM;AAAA,EACzD,OAAW;AAEH,cAAU,WAAW,MAAM;AACvB,aAAO,SAAS,cAAc,KAAM;AAAA,IACvC,GAAE,IAAI;AAAA,EACV;AACL;;"}
{"version":3,"file":"debounce.js","sources":["uni_modules/uview-plus/libs/function/debounce.js"],"sourcesContent":["let timeout = null\r\n\r\n/**\r\n * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数\r\n *\r\n * @param {Function} func 要执行的回调函数\r\n * @param {Number} wait 延时的时间\r\n * @param {Boolean} immediate 是否立即执行\r\n * @return null\r\n */\r\nexport function debounce(func, wait = 500, immediate = false) {\r\n // 清除定时器\r\n if (timeout !== null) clearTimeout(timeout)\r\n // 立即执行,此类情况一般用不到\r\n if (immediate) {\r\n const callNow = !timeout\r\n timeout = setTimeout(() => {\r\n timeout = null\r\n }, wait)\r\n if (callNow) typeof func === 'function' && func()\r\n } else {\r\n // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法\r\n timeout = setTimeout(() => {\r\n typeof func === 'function' && func()\r\n }, wait)\r\n }\r\n}\r\n\r\nexport default debounce\r\n"],"names":[],"mappings":";AAAA,IAAI,UAAU;AAUP,SAAS,SAAS,MAAM,OAAO,KAAK,YAAY,OAAO;AAE1D,MAAI,YAAY;AAAM,iBAAa,OAAO;AAE1C,MAAI,WAAW;AACX,UAAM,UAAU,CAAC;AACjB,cAAU,WAAW,MAAM;AACvB,gBAAU;AAAA,IACb,GAAE,IAAI;AACP,QAAI;AAAS,aAAO,SAAS,cAAc,KAAM;AAAA,EACzD,OAAW;AAEH,cAAU,WAAW,MAAM;AACvB,aAAO,SAAS,cAAc,KAAM;AAAA,IACvC,GAAE,IAAI;AAAA,EACV;AACL;;"}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
{"version":3,"file":"throttle.js","sources":["uni_modules/uview-plus/libs/function/throttle.js"],"sourcesContent":["let timer;\nlet flag;\n/**\n * 节流原理:在一定时间内,只能触发一次\n *\n * @param {Function} func 要执行的回调函数\n * @param {Number} wait 延时的时间\n * @param {Boolean} immediate 是否立即执行\n * @return null\n */\nexport function throttle(func, wait = 500, immediate = true) {\n if (immediate) {\n if (!flag) {\n flag = true\n // 如果是立即执行,则在wait毫秒内开始时执行\n typeof func === 'function' && func()\n timer = setTimeout(() => {\n flag = false\n }, wait)\n }\n } else if (!flag) {\n flag = true\n // 如果是非立即执行,则在wait毫秒内的结束处执行\n timer = setTimeout(() => {\n flag = false\n typeof func === 'function' && func()\n }, wait)\n }\n}\nexport default throttle\n"],"names":[],"mappings":";AACA,IAAI;AASG,SAAS,SAAS,MAAM,OAAO,KAAK,YAAY,MAAM;AACzD,MAAI,WAAW;AACX,QAAI,CAAC,MAAM;AACP,aAAO;AAEP,aAAO,SAAS,cAAc,KAAM;AAC5B,iBAAW,MAAM;AACrB,eAAO;AAAA,MACV,GAAE,IAAI;AAAA,IACV;AAAA,EACT,WAAe,CAAC,MAAM;AACd,WAAO;AAEC,eAAW,MAAM;AACrB,aAAO;AACP,aAAO,SAAS,cAAc,KAAM;AAAA,IACvC,GAAE,IAAI;AAAA,EACV;AACL;;"}
{"version":3,"file":"throttle.js","sources":["uni_modules/uview-plus/libs/function/throttle.js"],"sourcesContent":["let timer;\r\nlet flag;\r\n/**\r\n * 节流原理:在一定时间内,只能触发一次\r\n *\r\n * @param {Function} func 要执行的回调函数\r\n * @param {Number} wait 延时的时间\r\n * @param {Boolean} immediate 是否立即执行\r\n * @return null\r\n */\r\nexport function throttle(func, wait = 500, immediate = true) {\r\n if (immediate) {\r\n if (!flag) {\r\n flag = true\r\n // 如果是立即执行,则在wait毫秒内开始时执行\r\n typeof func === 'function' && func()\r\n timer = setTimeout(() => {\r\n flag = false\r\n }, wait)\r\n }\r\n } else if (!flag) {\r\n flag = true\r\n // 如果是非立即执行,则在wait毫秒内的结束处执行\r\n timer = setTimeout(() => {\r\n flag = false\r\n typeof func === 'function' && func()\r\n }, wait)\r\n }\r\n}\r\nexport default throttle\r\n"],"names":[],"mappings":";AACA,IAAI;AASG,SAAS,SAAS,MAAM,OAAO,KAAK,YAAY,MAAM;AACzD,MAAI,WAAW;AACX,QAAI,CAAC,MAAM;AACP,aAAO;AAEP,aAAO,SAAS,cAAc,KAAM;AAC5B,iBAAW,MAAM;AACrB,eAAO;AAAA,MACV,GAAE,IAAI;AAAA,IACV;AAAA,EACT,WAAe,CAAC,MAAM;AACd,WAAO;AAEC,eAAW,MAAM;AACrB,aAAO;AACP,aAAO,SAAS,cAAc,KAAM;AAAA,IACvC,GAAE,IAAI;AAAA,EACV;AACL;;"}
@@ -1 +1 @@
{"version":3,"file":"index.js","sources":["uni_modules/uview-plus/libs/luch-request/adapters/index.js"],"sourcesContent":["import buildURL from '../helpers/buildURL'\nimport buildFullPath from '../core/buildFullPath'\nimport settle from '../core/settle'\nimport { isUndefined } from '../utils'\n\n/**\n * 返回可选值存在的配置\n * @param {Array} keys - 可选值数组\n * @param {Object} config2 - 配置\n * @return {{}} - 存在的配置项\n */\nconst mergeKeys = (keys, config2) => {\n const config = {}\n keys.forEach((prop) => {\n if (!isUndefined(config2[prop])) {\n config[prop] = config2[prop]\n }\n })\n return config\n}\nexport default (config) => new Promise((resolve, reject) => {\n const fullPath = buildURL(buildFullPath(config.baseURL, config.url), config.params)\n const _config = {\n url: fullPath,\n header: config.header,\n complete: (response) => {\n config.fullPath = fullPath\n response.config = config\n try {\n // 对可能字符串不是json 的情况容错\n if (typeof response.data === 'string') {\n response.data = JSON.parse(response.data)\n }\n // eslint-disable-next-line no-empty\n } catch (e) {\n }\n settle(resolve, reject, response)\n }\n }\n let requestTask\n if (config.method === 'UPLOAD') {\n delete _config.header['content-type']\n delete _config.header['Content-Type']\n const otherConfig = {\n // #ifdef MP-ALIPAY\n fileType: config.fileType,\n // #endif\n filePath: config.filePath,\n name: config.name\n }\n const optionalKeys = [\n // #ifdef APP-PLUS || H5\n 'files',\n // #endif\n // #ifdef H5\n 'file',\n // #endif\n // #ifdef H5 || APP-PLUS\n 'timeout',\n // #endif\n 'formData'\n ]\n requestTask = uni.uploadFile({ ..._config, ...otherConfig, ...mergeKeys(optionalKeys, config) })\n } else if (config.method === 'DOWNLOAD') {\n // #ifdef H5 || APP-PLUS\n if (!isUndefined(config.timeout)) {\n _config.timeout = config.timeout\n }\n // #endif\n requestTask = uni.downloadFile(_config)\n } else {\n const optionalKeys = [\n 'data',\n 'method',\n // #ifdef H5 || APP-PLUS || MP-ALIPAY || MP-WEIXIN\n 'timeout',\n // #endif\n 'dataType',\n // #ifndef MP-ALIPAY\n 'responseType',\n // #endif\n // #ifdef APP-PLUS\n 'sslVerify',\n // #endif\n // #ifdef H5\n 'withCredentials',\n // #endif\n // #ifdef APP-PLUS\n 'firstIpv4'\n // #endif\n ]\n requestTask = uni.request({ ..._config, ...mergeKeys(optionalKeys, config) })\n }\n if (config.getTask) {\n config.getTask(requestTask, config)\n }\n})\n"],"names":["isUndefined","buildURL","buildFullPath","settle","uni"],"mappings":";;;;;;AAWA,MAAM,YAAY,CAAC,MAAM,YAAY;AACjC,QAAM,SAAS,CAAE;AACjB,OAAK,QAAQ,CAAC,SAAS;AACnB,QAAI,CAACA,6CAAW,YAAC,QAAQ,IAAI,CAAC,GAAG;AAC7B,aAAO,IAAI,IAAI,QAAQ,IAAI;AAAA,IAC9B;AAAA,EACT,CAAK;AACD,SAAO;AACX;AACA,MAAe,UAAA,CAAC,WAAW,IAAI,QAAQ,CAAC,SAAS,WAAW;AACxD,QAAM,WAAWC,iEAASC,0DAAAA,cAAc,OAAO,SAAS,OAAO,GAAG,GAAG,OAAO,MAAM;AAClF,QAAM,UAAU;AAAA,IACZ,KAAK;AAAA,IACL,QAAQ,OAAO;AAAA,IACf,UAAU,CAAC,aAAa;AACpB,aAAO,WAAW;AAClB,eAAS,SAAS;AAClB,UAAI;AAEA,YAAI,OAAO,SAAS,SAAS,UAAU;AACnC,mBAAS,OAAO,KAAK,MAAM,SAAS,IAAI;AAAA,QAC3C;AAAA,MAEJ,SAAQ,GAAG;AAAA,MACX;AACDC,gEAAO,SAAS,QAAQ,QAAQ;AAAA,IACnC;AAAA,EACJ;AACD,MAAI;AACJ,MAAI,OAAO,WAAW,UAAU;AAC5B,WAAO,QAAQ,OAAO,cAAc;AACpC,WAAO,QAAQ,OAAO,cAAc;AACpC,UAAM,cAAc;AAAA,MAIhB,UAAU,OAAO;AAAA,MACjB,MAAM,OAAO;AAAA,IAChB;AACD,UAAM,eAAe;AAAA,MAUjB;AAAA,IACH;AACD,kBAAcC,cAAG,MAAC,WAAW,EAAE,GAAG,SAAS,GAAG,aAAa,GAAG,UAAU,cAAc,MAAM,EAAC,CAAE;AAAA,EACvG,WAAe,OAAO,WAAW,YAAY;AAMrC,kBAAcA,cAAAA,MAAI,aAAa,OAAO;AAAA,EAC9C,OAAW;AACH,UAAM,eAAe;AAAA,MACjB;AAAA,MACA;AAAA,MAEA;AAAA,MAEA;AAAA,MAEA;AAAA,IAWH;AACD,kBAAcA,cAAAA,MAAI,QAAQ,EAAE,GAAG,SAAS,GAAG,UAAU,cAAc,MAAM,GAAG;AAAA,EAC/E;AACD,MAAI,OAAO,SAAS;AAChB,WAAO,QAAQ,aAAa,MAAM;AAAA,EACrC;AACL,CAAC;;"}
{"version":3,"file":"index.js","sources":["uni_modules/uview-plus/libs/luch-request/adapters/index.js"],"sourcesContent":["import buildURL from '../helpers/buildURL'\r\nimport buildFullPath from '../core/buildFullPath'\r\nimport settle from '../core/settle'\r\nimport { isUndefined } from '../utils'\r\n\r\n/**\r\n * 返回可选值存在的配置\r\n * @param {Array} keys - 可选值数组\r\n * @param {Object} config2 - 配置\r\n * @return {{}} - 存在的配置项\r\n */\r\nconst mergeKeys = (keys, config2) => {\r\n const config = {}\r\n keys.forEach((prop) => {\r\n if (!isUndefined(config2[prop])) {\r\n config[prop] = config2[prop]\r\n }\r\n })\r\n return config\r\n}\r\nexport default (config) => new Promise((resolve, reject) => {\r\n const fullPath = buildURL(buildFullPath(config.baseURL, config.url), config.params)\r\n const _config = {\r\n url: fullPath,\r\n header: config.header,\r\n complete: (response) => {\r\n config.fullPath = fullPath\r\n response.config = config\r\n try {\r\n // 对可能字符串不是json 的情况容错\r\n if (typeof response.data === 'string') {\r\n response.data = JSON.parse(response.data)\r\n }\r\n // eslint-disable-next-line no-empty\r\n } catch (e) {\r\n }\r\n settle(resolve, reject, response)\r\n }\r\n }\r\n let requestTask\r\n if (config.method === 'UPLOAD') {\r\n delete _config.header['content-type']\r\n delete _config.header['Content-Type']\r\n const otherConfig = {\r\n // #ifdef MP-ALIPAY\r\n fileType: config.fileType,\r\n // #endif\r\n filePath: config.filePath,\r\n name: config.name\r\n }\r\n const optionalKeys = [\r\n // #ifdef APP-PLUS || H5\r\n 'files',\r\n // #endif\r\n // #ifdef H5\r\n 'file',\r\n // #endif\r\n // #ifdef H5 || APP-PLUS\r\n 'timeout',\r\n // #endif\r\n 'formData'\r\n ]\r\n requestTask = uni.uploadFile({ ..._config, ...otherConfig, ...mergeKeys(optionalKeys, config) })\r\n } else if (config.method === 'DOWNLOAD') {\r\n // #ifdef H5 || APP-PLUS\r\n if (!isUndefined(config.timeout)) {\r\n _config.timeout = config.timeout\r\n }\r\n // #endif\r\n requestTask = uni.downloadFile(_config)\r\n } else {\r\n const optionalKeys = [\r\n 'data',\r\n 'method',\r\n // #ifdef H5 || APP-PLUS || MP-ALIPAY || MP-WEIXIN\r\n 'timeout',\r\n // #endif\r\n 'dataType',\r\n // #ifndef MP-ALIPAY\r\n 'responseType',\r\n // #endif\r\n // #ifdef APP-PLUS\r\n 'sslVerify',\r\n // #endif\r\n // #ifdef H5\r\n 'withCredentials',\r\n // #endif\r\n // #ifdef APP-PLUS\r\n 'firstIpv4'\r\n // #endif\r\n ]\r\n requestTask = uni.request({ ..._config, ...mergeKeys(optionalKeys, config) })\r\n }\r\n if (config.getTask) {\r\n config.getTask(requestTask, config)\r\n }\r\n})\r\n"],"names":["isUndefined","buildURL","buildFullPath","settle","uni"],"mappings":";;;;;;AAWA,MAAM,YAAY,CAAC,MAAM,YAAY;AACjC,QAAM,SAAS,CAAE;AACjB,OAAK,QAAQ,CAAC,SAAS;AACnB,QAAI,CAACA,6CAAW,YAAC,QAAQ,IAAI,CAAC,GAAG;AAC7B,aAAO,IAAI,IAAI,QAAQ,IAAI;AAAA,IAC9B;AAAA,EACT,CAAK;AACD,SAAO;AACX;AACA,MAAe,UAAA,CAAC,WAAW,IAAI,QAAQ,CAAC,SAAS,WAAW;AACxD,QAAM,WAAWC,iEAASC,0DAAAA,cAAc,OAAO,SAAS,OAAO,GAAG,GAAG,OAAO,MAAM;AAClF,QAAM,UAAU;AAAA,IACZ,KAAK;AAAA,IACL,QAAQ,OAAO;AAAA,IACf,UAAU,CAAC,aAAa;AACpB,aAAO,WAAW;AAClB,eAAS,SAAS;AAClB,UAAI;AAEA,YAAI,OAAO,SAAS,SAAS,UAAU;AACnC,mBAAS,OAAO,KAAK,MAAM,SAAS,IAAI;AAAA,QAC3C;AAAA,MAEJ,SAAQ,GAAG;AAAA,MACX;AACDC,gEAAO,SAAS,QAAQ,QAAQ;AAAA,IACnC;AAAA,EACJ;AACD,MAAI;AACJ,MAAI,OAAO,WAAW,UAAU;AAC5B,WAAO,QAAQ,OAAO,cAAc;AACpC,WAAO,QAAQ,OAAO,cAAc;AACpC,UAAM,cAAc;AAAA,MAIhB,UAAU,OAAO;AAAA,MACjB,MAAM,OAAO;AAAA,IAChB;AACD,UAAM,eAAe;AAAA,MAUjB;AAAA,IACH;AACD,kBAAcC,cAAG,MAAC,WAAW,EAAE,GAAG,SAAS,GAAG,aAAa,GAAG,UAAU,cAAc,MAAM,EAAC,CAAE;AAAA,EACvG,WAAe,OAAO,WAAW,YAAY;AAMrC,kBAAcA,cAAAA,MAAI,aAAa,OAAO;AAAA,EAC9C,OAAW;AACH,UAAM,eAAe;AAAA,MACjB;AAAA,MACA;AAAA,MAEA;AAAA,MAEA;AAAA,MAEA;AAAA,IAWH;AACD,kBAAcA,cAAAA,MAAI,QAAQ,EAAE,GAAG,SAAS,GAAG,UAAU,cAAc,MAAM,GAAG;AAAA,EAC/E;AACD,MAAI,OAAO,SAAS;AAChB,WAAO,QAAQ,aAAa,MAAM;AAAA,EACrC;AACL,CAAC;;"}
@@ -1 +1 @@
{"version":3,"file":"InterceptorManager.js","sources":["uni_modules/uview-plus/libs/luch-request/core/InterceptorManager.js"],"sourcesContent":["'use strict'\n\nfunction InterceptorManager() {\n this.handlers = []\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected) {\n this.handlers.push({\n fulfilled,\n rejected\n })\n return this.handlers.length - 1\n}\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null\n }\n}\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n this.handlers.forEach((h) => {\n if (h !== null) {\n fn(h)\n }\n })\n}\n\nexport default InterceptorManager\n"],"names":[],"mappings":";AAEA,SAAS,qBAAqB;AAC1B,OAAK,WAAW,CAAE;AACtB;AAUA,mBAAmB,UAAU,MAAM,SAAS,IAAI,WAAW,UAAU;AACjE,OAAK,SAAS,KAAK;AAAA,IACf;AAAA,IACA;AAAA,EACR,CAAK;AACD,SAAO,KAAK,SAAS,SAAS;AAClC;AAOA,mBAAmB,UAAU,QAAQ,SAAS,MAAM,IAAI;AACpD,MAAI,KAAK,SAAS,EAAE,GAAG;AACnB,SAAK,SAAS,EAAE,IAAI;AAAA,EACvB;AACL;AAUA,mBAAmB,UAAU,UAAU,SAAS,QAAQ,IAAI;AACxD,OAAK,SAAS,QAAQ,CAAC,MAAM;AACzB,QAAI,MAAM,MAAM;AACZ,SAAG,CAAC;AAAA,IACP;AAAA,EACT,CAAK;AACL;;"}
{"version":3,"file":"InterceptorManager.js","sources":["uni_modules/uview-plus/libs/luch-request/core/InterceptorManager.js"],"sourcesContent":["'use strict'\r\n\r\nfunction InterceptorManager() {\r\n this.handlers = []\r\n}\r\n\r\n/**\r\n * Add a new interceptor to the stack\r\n *\r\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\r\n * @param {Function} rejected The function to handle `reject` for a `Promise`\r\n *\r\n * @return {Number} An ID used to remove interceptor later\r\n */\r\nInterceptorManager.prototype.use = function use(fulfilled, rejected) {\r\n this.handlers.push({\r\n fulfilled,\r\n rejected\r\n })\r\n return this.handlers.length - 1\r\n}\r\n\r\n/**\r\n * Remove an interceptor from the stack\r\n *\r\n * @param {Number} id The ID that was returned by `use`\r\n */\r\nInterceptorManager.prototype.eject = function eject(id) {\r\n if (this.handlers[id]) {\r\n this.handlers[id] = null\r\n }\r\n}\r\n\r\n/**\r\n * Iterate over all the registered interceptors\r\n *\r\n * This method is particularly useful for skipping over any\r\n * interceptors that may have become `null` calling `eject`.\r\n *\r\n * @param {Function} fn The function to call for each interceptor\r\n */\r\nInterceptorManager.prototype.forEach = function forEach(fn) {\r\n this.handlers.forEach((h) => {\r\n if (h !== null) {\r\n fn(h)\r\n }\r\n })\r\n}\r\n\r\nexport default InterceptorManager\r\n"],"names":[],"mappings":";AAEA,SAAS,qBAAqB;AAC1B,OAAK,WAAW,CAAE;AACtB;AAUA,mBAAmB,UAAU,MAAM,SAAS,IAAI,WAAW,UAAU;AACjE,OAAK,SAAS,KAAK;AAAA,IACf;AAAA,IACA;AAAA,EACR,CAAK;AACD,SAAO,KAAK,SAAS,SAAS;AAClC;AAOA,mBAAmB,UAAU,QAAQ,SAAS,MAAM,IAAI;AACpD,MAAI,KAAK,SAAS,EAAE,GAAG;AACnB,SAAK,SAAS,EAAE,IAAI;AAAA,EACvB;AACL;AAUA,mBAAmB,UAAU,UAAU,SAAS,QAAQ,IAAI;AACxD,OAAK,SAAS,QAAQ,CAAC,MAAM;AACzB,QAAI,MAAM,MAAM;AACZ,SAAG,CAAC;AAAA,IACP;AAAA,EACT,CAAK;AACL;;"}
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
{"version":3,"file":"buildFullPath.js","sources":["uni_modules/uview-plus/libs/luch-request/core/buildFullPath.js"],"sourcesContent":["'use strict'\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL'\nimport combineURLs from '../helpers/combineURLs'\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL)\n }\n return requestedURL\n}\n"],"names":["isAbsoluteURL","combineURLs"],"mappings":";;;AAce,SAAS,cAAc,SAAS,cAAc;AACzD,MAAI,WAAW,CAACA,2EAAc,YAAY,GAAG;AACzC,WAAOC,2DAAW,YAAC,SAAS,YAAY;AAAA,EAC3C;AACD,SAAO;AACX;;"}
{"version":3,"file":"buildFullPath.js","sources":["uni_modules/uview-plus/libs/luch-request/core/buildFullPath.js"],"sourcesContent":["'use strict'\r\n\r\nimport isAbsoluteURL from '../helpers/isAbsoluteURL'\r\nimport combineURLs from '../helpers/combineURLs'\r\n\r\n/**\r\n * Creates a new URL by combining the baseURL with the requestedURL,\r\n * only when the requestedURL is not already an absolute URL.\r\n * If the requestURL is absolute, this function returns the requestedURL untouched.\r\n *\r\n * @param {string} baseURL The base URL\r\n * @param {string} requestedURL Absolute or relative URL to combine\r\n * @returns {string} The combined full path\r\n */\r\nexport default function buildFullPath(baseURL, requestedURL) {\r\n if (baseURL && !isAbsoluteURL(requestedURL)) {\r\n return combineURLs(baseURL, requestedURL)\r\n }\r\n return requestedURL\r\n}\r\n"],"names":["isAbsoluteURL","combineURLs"],"mappings":";;;AAce,SAAS,cAAc,SAAS,cAAc;AACzD,MAAI,WAAW,CAACA,2EAAc,YAAY,GAAG;AACzC,WAAOC,2DAAW,YAAC,SAAS,YAAY;AAAA,EAC3C;AACD,SAAO;AACX;;"}
@@ -1 +1 @@
{"version":3,"file":"defaults.js","sources":["uni_modules/uview-plus/libs/luch-request/core/defaults.js"],"sourcesContent":["/**\n * 默认的全局配置\n */\n\nexport default {\n baseURL: '',\n header: {},\n method: 'GET',\n dataType: 'json',\n // #ifndef MP-ALIPAY\n responseType: 'text',\n // #endif\n custom: {},\n // #ifdef H5 || APP-PLUS || MP-ALIPAY || MP-WEIXIN\n timeout: 60000,\n // #endif\n // #ifdef APP-PLUS\n sslVerify: true,\n // #endif\n // #ifdef H5\n withCredentials: false,\n // #endif\n // #ifdef APP-PLUS\n firstIpv4: false,\n // #endif\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300\n }\n}\n"],"names":[],"mappings":";AAIA,MAAe,WAAA;AAAA,EACX,SAAS;AAAA,EACT,QAAQ,CAAE;AAAA,EACV,QAAQ;AAAA,EACR,UAAU;AAAA,EAEV,cAAc;AAAA,EAEd,QAAQ,CAAE;AAAA,EAEV,SAAS;AAAA,EAWT,gBAAgB,SAAS,eAAe,QAAQ;AAC5C,WAAO,UAAU,OAAO,SAAS;AAAA,EACpC;AACL;;"}
{"version":3,"file":"defaults.js","sources":["uni_modules/uview-plus/libs/luch-request/core/defaults.js"],"sourcesContent":["/**\r\n * 默认的全局配置\r\n */\r\n\r\nexport default {\r\n baseURL: '',\r\n header: {},\r\n method: 'GET',\r\n dataType: 'json',\r\n // #ifndef MP-ALIPAY\r\n responseType: 'text',\r\n // #endif\r\n custom: {},\r\n // #ifdef H5 || APP-PLUS || MP-ALIPAY || MP-WEIXIN\r\n timeout: 60000,\r\n // #endif\r\n // #ifdef APP-PLUS\r\n sslVerify: true,\r\n // #endif\r\n // #ifdef H5\r\n withCredentials: false,\r\n // #endif\r\n // #ifdef APP-PLUS\r\n firstIpv4: false,\r\n // #endif\r\n validateStatus: function validateStatus(status) {\r\n return status >= 200 && status < 300\r\n }\r\n}\r\n"],"names":[],"mappings":";AAIA,MAAe,WAAA;AAAA,EACX,SAAS;AAAA,EACT,QAAQ,CAAE;AAAA,EACV,QAAQ;AAAA,EACR,UAAU;AAAA,EAEV,cAAc;AAAA,EAEd,QAAQ,CAAE;AAAA,EAEV,SAAS;AAAA,EAWT,gBAAgB,SAAS,eAAe,QAAQ;AAC5C,WAAO,UAAU,OAAO,SAAS;AAAA,EACpC;AACL;;"}
@@ -1 +1 @@
{"version":3,"file":"dispatchRequest.js","sources":["uni_modules/uview-plus/libs/luch-request/core/dispatchRequest.js"],"sourcesContent":["import adapter from '../adapters/index'\n\nexport default (config) => adapter(config)\n"],"names":["adapter"],"mappings":";;AAEA,MAAA,kBAAe,CAAC,WAAWA,sDAAAA,QAAQ,MAAM;;"}
{"version":3,"file":"dispatchRequest.js","sources":["uni_modules/uview-plus/libs/luch-request/core/dispatchRequest.js"],"sourcesContent":["import adapter from '../adapters/index'\r\n\r\nexport default (config) => adapter(config)\r\n"],"names":["adapter"],"mappings":";;AAEA,MAAA,kBAAe,CAAC,WAAWA,sDAAAA,QAAQ,MAAM;;"}
@@ -1 +1 @@
{"version":3,"file":"mergeConfig.js","sources":["uni_modules/uview-plus/libs/luch-request/core/mergeConfig.js"],"sourcesContent":["import { deepMerge, isUndefined } from '../utils'\n\n/**\n * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局\n * @param {Array} keys - 配置项\n * @param {Object} globalsConfig - 当前的全局配置\n * @param {Object} config2 - 局部配置\n * @return {{}}\n */\nconst mergeKeys = (keys, globalsConfig, config2) => {\n const config = {}\n keys.forEach((prop) => {\n if (!isUndefined(config2[prop])) {\n config[prop] = config2[prop]\n } else if (!isUndefined(globalsConfig[prop])) {\n config[prop] = globalsConfig[prop]\n }\n })\n return config\n}\n/**\n *\n * @param globalsConfig - 当前实例的全局配置\n * @param config2 - 当前的局部配置\n * @return - 合并后的配置\n */\nexport default (globalsConfig, config2 = {}) => {\n const method = config2.method || globalsConfig.method || 'GET'\n let config = {\n baseURL: globalsConfig.baseURL || '',\n method,\n url: config2.url || '',\n params: config2.params || {},\n custom: { ...(globalsConfig.custom || {}), ...(config2.custom || {}) },\n header: deepMerge(globalsConfig.header || {}, config2.header || {})\n }\n const defaultToConfig2Keys = ['getTask', 'validateStatus']\n config = { ...config, ...mergeKeys(defaultToConfig2Keys, globalsConfig, config2) }\n\n // eslint-disable-next-line no-empty\n if (method === 'DOWNLOAD') {\n // #ifdef H5 || APP-PLUS\n if (!isUndefined(config2.timeout)) {\n config.timeout = config2.timeout\n } else if (!isUndefined(globalsConfig.timeout)) {\n config.timeout = globalsConfig.timeout\n }\n // #endif\n } else if (method === 'UPLOAD') {\n delete config.header['content-type']\n delete config.header['Content-Type']\n const uploadKeys = [\n // #ifdef APP-PLUS || H5\n 'files',\n // #endif\n // #ifdef MP-ALIPAY\n 'fileType',\n // #endif\n // #ifdef H5\n 'file',\n // #endif\n 'filePath',\n 'name',\n // #ifdef H5 || APP-PLUS\n 'timeout',\n // #endif\n 'formData'\n ]\n uploadKeys.forEach((prop) => {\n if (!isUndefined(config2[prop])) {\n config[prop] = config2[prop]\n }\n })\n // #ifdef H5 || APP-PLUS\n if (isUndefined(config.timeout) && !isUndefined(globalsConfig.timeout)) {\n config.timeout = globalsConfig.timeout\n }\n // #endif\n } else {\n const defaultsKeys = [\n 'data',\n // #ifdef H5 || APP-PLUS || MP-ALIPAY || MP-WEIXIN\n 'timeout',\n // #endif\n 'dataType',\n // #ifndef MP-ALIPAY\n 'responseType',\n // #endif\n // #ifdef APP-PLUS\n 'sslVerify',\n // #endif\n // #ifdef H5\n 'withCredentials',\n // #endif\n // #ifdef APP-PLUS\n 'firstIpv4'\n // #endif\n ]\n config = { ...config, ...mergeKeys(defaultsKeys, globalsConfig, config2) }\n }\n\n return config\n}\n"],"names":["isUndefined","deepMerge"],"mappings":";;AASA,MAAM,YAAY,CAAC,MAAM,eAAe,YAAY;AAChD,QAAM,SAAS,CAAE;AACjB,OAAK,QAAQ,CAAC,SAAS;AACnB,QAAI,CAACA,6CAAW,YAAC,QAAQ,IAAI,CAAC,GAAG;AAC7B,aAAO,IAAI,IAAI,QAAQ,IAAI;AAAA,IAC9B,WAAU,CAACA,6CAAW,YAAC,cAAc,IAAI,CAAC,GAAG;AAC1C,aAAO,IAAI,IAAI,cAAc,IAAI;AAAA,IACpC;AAAA,EACT,CAAK;AACD,SAAO;AACX;AAOA,MAAA,cAAe,CAAC,eAAe,UAAU,OAAO;AAC5C,QAAM,SAAS,QAAQ,UAAU,cAAc,UAAU;AACzD,MAAI,SAAS;AAAA,IACT,SAAS,cAAc,WAAW;AAAA,IAClC;AAAA,IACA,KAAK,QAAQ,OAAO;AAAA,IACpB,QAAQ,QAAQ,UAAU,CAAE;AAAA,IAC5B,QAAQ,EAAE,GAAI,cAAc,UAAU,CAAE,GAAG,GAAI,QAAQ,UAAU,GAAK;AAAA,IACtE,QAAQC,6CAAS,UAAC,cAAc,UAAU,CAAA,GAAI,QAAQ,UAAU,EAAE;AAAA,EACrE;AACD,QAAM,uBAAuB,CAAC,WAAW,gBAAgB;AACzD,WAAS,EAAE,GAAG,QAAQ,GAAG,UAAU,sBAAsB,eAAe,OAAO,EAAG;AAGlF,MAAI,WAAW;AAAY;AAAA,WAQhB,WAAW,UAAU;AAC5B,WAAO,OAAO,OAAO,cAAc;AACnC,WAAO,OAAO,OAAO,cAAc;AACnC,UAAM,aAAa;AAAA,MAUf;AAAA,MACA;AAAA,MAIA;AAAA,IACH;AACD,eAAW,QAAQ,CAAC,SAAS;AACzB,UAAI,CAACD,6CAAW,YAAC,QAAQ,IAAI,CAAC,GAAG;AAC7B,eAAO,IAAI,IAAI,QAAQ,IAAI;AAAA,MAC9B;AAAA,IACb,CAAS;AAAA,EAMT,OAAW;AACH,UAAM,eAAe;AAAA,MACjB;AAAA,MAEA;AAAA,MAEA;AAAA,MAEA;AAAA,IAWH;AACD,aAAS,EAAE,GAAG,QAAQ,GAAG,UAAU,cAAc,eAAe,OAAO,EAAG;AAAA,EAC7E;AAED,SAAO;AACX;;"}
{"version":3,"file":"mergeConfig.js","sources":["uni_modules/uview-plus/libs/luch-request/core/mergeConfig.js"],"sourcesContent":["import { deepMerge, isUndefined } from '../utils'\r\n\r\n/**\r\n * 合并局部配置优先的配置,如果局部有该配置项则用局部,如果全局有该配置项则用全局\r\n * @param {Array} keys - 配置项\r\n * @param {Object} globalsConfig - 当前的全局配置\r\n * @param {Object} config2 - 局部配置\r\n * @return {{}}\r\n */\r\nconst mergeKeys = (keys, globalsConfig, config2) => {\r\n const config = {}\r\n keys.forEach((prop) => {\r\n if (!isUndefined(config2[prop])) {\r\n config[prop] = config2[prop]\r\n } else if (!isUndefined(globalsConfig[prop])) {\r\n config[prop] = globalsConfig[prop]\r\n }\r\n })\r\n return config\r\n}\r\n/**\r\n *\r\n * @param globalsConfig - 当前实例的全局配置\r\n * @param config2 - 当前的局部配置\r\n * @return - 合并后的配置\r\n */\r\nexport default (globalsConfig, config2 = {}) => {\r\n const method = config2.method || globalsConfig.method || 'GET'\r\n let config = {\r\n baseURL: globalsConfig.baseURL || '',\r\n method,\r\n url: config2.url || '',\r\n params: config2.params || {},\r\n custom: { ...(globalsConfig.custom || {}), ...(config2.custom || {}) },\r\n header: deepMerge(globalsConfig.header || {}, config2.header || {})\r\n }\r\n const defaultToConfig2Keys = ['getTask', 'validateStatus']\r\n config = { ...config, ...mergeKeys(defaultToConfig2Keys, globalsConfig, config2) }\r\n\r\n // eslint-disable-next-line no-empty\r\n if (method === 'DOWNLOAD') {\r\n // #ifdef H5 || APP-PLUS\r\n if (!isUndefined(config2.timeout)) {\r\n config.timeout = config2.timeout\r\n } else if (!isUndefined(globalsConfig.timeout)) {\r\n config.timeout = globalsConfig.timeout\r\n }\r\n // #endif\r\n } else if (method === 'UPLOAD') {\r\n delete config.header['content-type']\r\n delete config.header['Content-Type']\r\n const uploadKeys = [\r\n // #ifdef APP-PLUS || H5\r\n 'files',\r\n // #endif\r\n // #ifdef MP-ALIPAY\r\n 'fileType',\r\n // #endif\r\n // #ifdef H5\r\n 'file',\r\n // #endif\r\n 'filePath',\r\n 'name',\r\n // #ifdef H5 || APP-PLUS\r\n 'timeout',\r\n // #endif\r\n 'formData'\r\n ]\r\n uploadKeys.forEach((prop) => {\r\n if (!isUndefined(config2[prop])) {\r\n config[prop] = config2[prop]\r\n }\r\n })\r\n // #ifdef H5 || APP-PLUS\r\n if (isUndefined(config.timeout) && !isUndefined(globalsConfig.timeout)) {\r\n config.timeout = globalsConfig.timeout\r\n }\r\n // #endif\r\n } else {\r\n const defaultsKeys = [\r\n 'data',\r\n // #ifdef H5 || APP-PLUS || MP-ALIPAY || MP-WEIXIN\r\n 'timeout',\r\n // #endif\r\n 'dataType',\r\n // #ifndef MP-ALIPAY\r\n 'responseType',\r\n // #endif\r\n // #ifdef APP-PLUS\r\n 'sslVerify',\r\n // #endif\r\n // #ifdef H5\r\n 'withCredentials',\r\n // #endif\r\n // #ifdef APP-PLUS\r\n 'firstIpv4'\r\n // #endif\r\n ]\r\n config = { ...config, ...mergeKeys(defaultsKeys, globalsConfig, config2) }\r\n }\r\n\r\n return config\r\n}\r\n"],"names":["isUndefined","deepMerge"],"mappings":";;AASA,MAAM,YAAY,CAAC,MAAM,eAAe,YAAY;AAChD,QAAM,SAAS,CAAE;AACjB,OAAK,QAAQ,CAAC,SAAS;AACnB,QAAI,CAACA,6CAAW,YAAC,QAAQ,IAAI,CAAC,GAAG;AAC7B,aAAO,IAAI,IAAI,QAAQ,IAAI;AAAA,IAC9B,WAAU,CAACA,6CAAW,YAAC,cAAc,IAAI,CAAC,GAAG;AAC1C,aAAO,IAAI,IAAI,cAAc,IAAI;AAAA,IACpC;AAAA,EACT,CAAK;AACD,SAAO;AACX;AAOA,MAAA,cAAe,CAAC,eAAe,UAAU,OAAO;AAC5C,QAAM,SAAS,QAAQ,UAAU,cAAc,UAAU;AACzD,MAAI,SAAS;AAAA,IACT,SAAS,cAAc,WAAW;AAAA,IAClC;AAAA,IACA,KAAK,QAAQ,OAAO;AAAA,IACpB,QAAQ,QAAQ,UAAU,CAAE;AAAA,IAC5B,QAAQ,EAAE,GAAI,cAAc,UAAU,CAAE,GAAG,GAAI,QAAQ,UAAU,GAAK;AAAA,IACtE,QAAQC,6CAAS,UAAC,cAAc,UAAU,CAAA,GAAI,QAAQ,UAAU,EAAE;AAAA,EACrE;AACD,QAAM,uBAAuB,CAAC,WAAW,gBAAgB;AACzD,WAAS,EAAE,GAAG,QAAQ,GAAG,UAAU,sBAAsB,eAAe,OAAO,EAAG;AAGlF,MAAI,WAAW;AAAY;AAAA,WAQhB,WAAW,UAAU;AAC5B,WAAO,OAAO,OAAO,cAAc;AACnC,WAAO,OAAO,OAAO,cAAc;AACnC,UAAM,aAAa;AAAA,MAUf;AAAA,MACA;AAAA,MAIA;AAAA,IACH;AACD,eAAW,QAAQ,CAAC,SAAS;AACzB,UAAI,CAACD,6CAAW,YAAC,QAAQ,IAAI,CAAC,GAAG;AAC7B,eAAO,IAAI,IAAI,QAAQ,IAAI;AAAA,MAC9B;AAAA,IACb,CAAS;AAAA,EAMT,OAAW;AACH,UAAM,eAAe;AAAA,MACjB;AAAA,MAEA;AAAA,MAEA;AAAA,MAEA;AAAA,IAWH;AACD,aAAS,EAAE,GAAG,QAAQ,GAAG,UAAU,cAAc,eAAe,OAAO,EAAG;AAAA,EAC7E;AAED,SAAO;AACX;;"}
@@ -1 +1 @@
{"version":3,"file":"settle.js","sources":["uni_modules/uview-plus/libs/luch-request/core/settle.js"],"sourcesContent":["/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nexport default function settle(resolve, reject, response) {\n const { validateStatus } = response.config\n const status = response.statusCode\n if (status && (!validateStatus || validateStatus(status))) {\n resolve(response)\n } else {\n reject(response)\n }\n}\n"],"names":[],"mappings":";AAOe,SAAS,OAAO,SAAS,QAAQ,UAAU;AACtD,QAAM,EAAE,mBAAmB,SAAS;AACpC,QAAM,SAAS,SAAS;AACxB,MAAI,WAAW,CAAC,kBAAkB,eAAe,MAAM,IAAI;AACvD,YAAQ,QAAQ;AAAA,EACxB,OAAW;AACH,WAAO,QAAQ;AAAA,EAClB;AACL;;"}
{"version":3,"file":"settle.js","sources":["uni_modules/uview-plus/libs/luch-request/core/settle.js"],"sourcesContent":["/**\r\n * Resolve or reject a Promise based on response status.\r\n *\r\n * @param {Function} resolve A function that resolves the promise.\r\n * @param {Function} reject A function that rejects the promise.\r\n * @param {object} response The response.\r\n */\r\nexport default function settle(resolve, reject, response) {\r\n const { validateStatus } = response.config\r\n const status = response.statusCode\r\n if (status && (!validateStatus || validateStatus(status))) {\r\n resolve(response)\r\n } else {\r\n reject(response)\r\n }\r\n}\r\n"],"names":[],"mappings":";AAOe,SAAS,OAAO,SAAS,QAAQ,UAAU;AACtD,QAAM,EAAE,mBAAmB,SAAS;AACpC,QAAM,SAAS,SAAS;AACxB,MAAI,WAAW,CAAC,kBAAkB,eAAe,MAAM,IAAI;AACvD,YAAQ,QAAQ;AAAA,EACxB,OAAW;AACH,WAAO,QAAQ;AAAA,EAClB;AACL;;"}
@@ -1 +1 @@
{"version":3,"file":"buildURL.js","sources":["uni_modules/uview-plus/libs/luch-request/helpers/buildURL.js"],"sourcesContent":["'use strict'\n\nimport * as utils from '../utils'\n\nfunction encode(val) {\n return encodeURIComponent(val)\n .replace(/%40/gi, '@')\n .replace(/%3A/gi, ':')\n .replace(/%24/g, '$')\n .replace(/%2C/gi, ',')\n .replace(/%20/g, '+')\n .replace(/%5B/gi, '[')\n .replace(/%5D/gi, ']')\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params) {\n /* eslint no-param-reassign:0 */\n if (!params) {\n return url\n }\n\n let serializedParams\n if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString()\n } else {\n const parts = []\n\n utils.forEach(params, (val, key) => {\n if (val === null || typeof val === 'undefined') {\n return\n }\n\n if (utils.isArray(val)) {\n key = `${key}[]`\n } else {\n val = [val]\n }\n\n utils.forEach(val, (v) => {\n if (utils.isDate(v)) {\n v = v.toISOString()\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v)\n }\n parts.push(`${encode(key)}=${encode(v)}`)\n })\n })\n\n serializedParams = parts.join('&')\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf('#')\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex)\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams\n }\n\n return url\n}\n"],"names":["utils.isURLSearchParams","utils.forEach","utils.isArray","utils.isDate","utils.isObject"],"mappings":";;AAIA,SAAS,OAAO,KAAK;AACjB,SAAO,mBAAmB,GAAG,EACxB,QAAQ,SAAS,GAAG,EACpB,QAAQ,SAAS,GAAG,EACpB,QAAQ,QAAQ,GAAG,EACnB,QAAQ,SAAS,GAAG,EACpB,QAAQ,QAAQ,GAAG,EACnB,QAAQ,SAAS,GAAG,EACpB,QAAQ,SAAS,GAAG;AAC7B;AASe,SAAS,SAAS,KAAK,QAAQ;AAE1C,MAAI,CAAC,QAAQ;AACT,WAAO;AAAA,EACV;AAED,MAAI;AACJ,MAAIA,6CAAAA,kBAAwB,MAAM,GAAG;AACjC,uBAAmB,OAAO,SAAU;AAAA,EAC5C,OAAW;AACH,UAAM,QAAQ,CAAE;AAEhBC,iDAAAA,QAAc,QAAQ,CAAC,KAAK,QAAQ;AAChC,UAAI,QAAQ,QAAQ,OAAO,QAAQ,aAAa;AAC5C;AAAA,MACH;AAED,UAAIC,6CAAAA,QAAc,GAAG,GAAG;AACpB,cAAM,GAAG,GAAG;AAAA,MAC5B,OAAmB;AACH,cAAM,CAAC,GAAG;AAAA,MACb;AAEDD,2DAAc,KAAK,CAAC,MAAM;AACtB,YAAIE,6CAAAA,OAAa,CAAC,GAAG;AACjB,cAAI,EAAE,YAAa;AAAA,QACvC,WAA2BC,6CAAAA,SAAe,CAAC,GAAG;AAC1B,cAAI,KAAK,UAAU,CAAC;AAAA,QACvB;AACD,cAAM,KAAK,GAAG,OAAO,GAAG,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE;AAAA,MACxD,CAAa;AAAA,IACb,CAAS;AAED,uBAAmB,MAAM,KAAK,GAAG;AAAA,EACpC;AAED,MAAI,kBAAkB;AAClB,UAAM,gBAAgB,IAAI,QAAQ,GAAG;AACrC,QAAI,kBAAkB,IAAI;AACtB,YAAM,IAAI,MAAM,GAAG,aAAa;AAAA,IACnC;AAED,YAAQ,IAAI,QAAQ,GAAG,MAAM,KAAK,MAAM,OAAO;AAAA,EAClD;AAED,SAAO;AACX;;"}
{"version":3,"file":"buildURL.js","sources":["uni_modules/uview-plus/libs/luch-request/helpers/buildURL.js"],"sourcesContent":["'use strict'\r\n\r\nimport * as utils from '../utils'\r\n\r\nfunction encode(val) {\r\n return encodeURIComponent(val)\r\n .replace(/%40/gi, '@')\r\n .replace(/%3A/gi, ':')\r\n .replace(/%24/g, '$')\r\n .replace(/%2C/gi, ',')\r\n .replace(/%20/g, '+')\r\n .replace(/%5B/gi, '[')\r\n .replace(/%5D/gi, ']')\r\n}\r\n\r\n/**\r\n * Build a URL by appending params to the end\r\n *\r\n * @param {string} url The base of the url (e.g., http://www.google.com)\r\n * @param {object} [params] The params to be appended\r\n * @returns {string} The formatted url\r\n */\r\nexport default function buildURL(url, params) {\r\n /* eslint no-param-reassign:0 */\r\n if (!params) {\r\n return url\r\n }\r\n\r\n let serializedParams\r\n if (utils.isURLSearchParams(params)) {\r\n serializedParams = params.toString()\r\n } else {\r\n const parts = []\r\n\r\n utils.forEach(params, (val, key) => {\r\n if (val === null || typeof val === 'undefined') {\r\n return\r\n }\r\n\r\n if (utils.isArray(val)) {\r\n key = `${key}[]`\r\n } else {\r\n val = [val]\r\n }\r\n\r\n utils.forEach(val, (v) => {\r\n if (utils.isDate(v)) {\r\n v = v.toISOString()\r\n } else if (utils.isObject(v)) {\r\n v = JSON.stringify(v)\r\n }\r\n parts.push(`${encode(key)}=${encode(v)}`)\r\n })\r\n })\r\n\r\n serializedParams = parts.join('&')\r\n }\r\n\r\n if (serializedParams) {\r\n const hashmarkIndex = url.indexOf('#')\r\n if (hashmarkIndex !== -1) {\r\n url = url.slice(0, hashmarkIndex)\r\n }\r\n\r\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams\r\n }\r\n\r\n return url\r\n}\r\n"],"names":["utils.isURLSearchParams","utils.forEach","utils.isArray","utils.isDate","utils.isObject"],"mappings":";;AAIA,SAAS,OAAO,KAAK;AACjB,SAAO,mBAAmB,GAAG,EACxB,QAAQ,SAAS,GAAG,EACpB,QAAQ,SAAS,GAAG,EACpB,QAAQ,QAAQ,GAAG,EACnB,QAAQ,SAAS,GAAG,EACpB,QAAQ,QAAQ,GAAG,EACnB,QAAQ,SAAS,GAAG,EACpB,QAAQ,SAAS,GAAG;AAC7B;AASe,SAAS,SAAS,KAAK,QAAQ;AAE1C,MAAI,CAAC,QAAQ;AACT,WAAO;AAAA,EACV;AAED,MAAI;AACJ,MAAIA,6CAAAA,kBAAwB,MAAM,GAAG;AACjC,uBAAmB,OAAO,SAAU;AAAA,EAC5C,OAAW;AACH,UAAM,QAAQ,CAAE;AAEhBC,iDAAAA,QAAc,QAAQ,CAAC,KAAK,QAAQ;AAChC,UAAI,QAAQ,QAAQ,OAAO,QAAQ,aAAa;AAC5C;AAAA,MACH;AAED,UAAIC,6CAAAA,QAAc,GAAG,GAAG;AACpB,cAAM,GAAG,GAAG;AAAA,MAC5B,OAAmB;AACH,cAAM,CAAC,GAAG;AAAA,MACb;AAEDD,2DAAc,KAAK,CAAC,MAAM;AACtB,YAAIE,6CAAAA,OAAa,CAAC,GAAG;AACjB,cAAI,EAAE,YAAa;AAAA,QACvC,WAA2BC,6CAAAA,SAAe,CAAC,GAAG;AAC1B,cAAI,KAAK,UAAU,CAAC;AAAA,QACvB;AACD,cAAM,KAAK,GAAG,OAAO,GAAG,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE;AAAA,MACxD,CAAa;AAAA,IACb,CAAS;AAED,uBAAmB,MAAM,KAAK,GAAG;AAAA,EACpC;AAED,MAAI,kBAAkB;AAClB,UAAM,gBAAgB,IAAI,QAAQ,GAAG;AACrC,QAAI,kBAAkB,IAAI;AACtB,YAAM,IAAI,MAAM,GAAG,aAAa;AAAA,IACnC;AAED,YAAQ,IAAI,QAAQ,GAAG,MAAM,KAAK,MAAM,OAAO;AAAA,EAClD;AAED,SAAO;AACX;;"}
@@ -1 +1 @@
{"version":3,"file":"combineURLs.js","sources":["uni_modules/uview-plus/libs/luch-request/helpers/combineURLs.js"],"sourcesContent":["'use strict'\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? `${baseURL.replace(/\\/+$/, '')}/${relativeURL.replace(/^\\/+/, '')}`\n : baseURL\n}\n"],"names":[],"mappings":";AASe,SAAS,YAAY,SAAS,aAAa;AACtD,SAAO,cACD,GAAG,QAAQ,QAAQ,QAAQ,EAAE,CAAC,IAAI,YAAY,QAAQ,QAAQ,EAAE,CAAC,KACjE;AACV;;"}
{"version":3,"file":"combineURLs.js","sources":["uni_modules/uview-plus/libs/luch-request/helpers/combineURLs.js"],"sourcesContent":["'use strict'\r\n\r\n/**\r\n * Creates a new URL by combining the specified URLs\r\n *\r\n * @param {string} baseURL The base URL\r\n * @param {string} relativeURL The relative URL\r\n * @returns {string} The combined URL\r\n */\r\nexport default function combineURLs(baseURL, relativeURL) {\r\n return relativeURL\r\n ? `${baseURL.replace(/\\/+$/, '')}/${relativeURL.replace(/^\\/+/, '')}`\r\n : baseURL\r\n}\r\n"],"names":[],"mappings":";AASe,SAAS,YAAY,SAAS,aAAa;AACtD,SAAO,cACD,GAAG,QAAQ,QAAQ,QAAQ,EAAE,CAAC,IAAI,YAAY,QAAQ,QAAQ,EAAE,CAAC,KACjE;AACV;;"}
@@ -1 +1 @@
{"version":3,"file":"isAbsoluteURL.js","sources":["uni_modules/uview-plus/libs/luch-request/helpers/isAbsoluteURL.js"],"sourcesContent":["'use strict'\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url)\n}\n"],"names":[],"mappings":";AAQe,SAAS,cAAc,KAAK;AAIvC,SAAO,8BAA8B,KAAK,GAAG;AACjD;;"}
{"version":3,"file":"isAbsoluteURL.js","sources":["uni_modules/uview-plus/libs/luch-request/helpers/isAbsoluteURL.js"],"sourcesContent":["'use strict'\r\n\r\n/**\r\n * Determines whether the specified URL is absolute\r\n *\r\n * @param {string} url The URL to test\r\n * @returns {boolean} True if the specified URL is absolute, otherwise false\r\n */\r\nexport default function isAbsoluteURL(url) {\r\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\r\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\r\n // by any combination of letters, digits, plus, period, or hyphen.\r\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url)\r\n}\r\n"],"names":[],"mappings":";AAQe,SAAS,cAAc,KAAK;AAIvC,SAAO,8BAA8B,KAAK,GAAG;AACjD;;"}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
{"version":3,"file":"button.js","sources":["uni_modules/uview-plus/libs/mixin/button.js"],"sourcesContent":["import { defineMixin } from '../vue'\n\nexport const buttonMixin = defineMixin({\n props: {\n lang: String,\n sessionFrom: String,\n sendMessageTitle: String,\n sendMessagePath: String,\n sendMessageImg: String,\n showMessageCard: Boolean,\n appParameter: String,\n formType: String,\n openType: String\n }\n})\n\nexport default buttonMixin\n\n"],"names":["defineMixin"],"mappings":";;AAEY,MAAC,cAAcA,+BAAAA,YAAY;AAAA,EACnC,OAAO;AAAA,IACH,MAAM;AAAA,IACN,aAAa;AAAA,IACb,kBAAkB;AAAA,IAClB,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,IACjB,cAAc;AAAA,IACd,UAAU;AAAA,IACV,UAAU;AAAA,EACb;AACL,CAAC;;"}
{"version":3,"file":"button.js","sources":["uni_modules/uview-plus/libs/mixin/button.js"],"sourcesContent":["import { defineMixin } from '../vue'\r\n\r\nexport const buttonMixin = defineMixin({\r\n props: {\r\n lang: String,\r\n sessionFrom: String,\r\n sendMessageTitle: String,\r\n sendMessagePath: String,\r\n sendMessageImg: String,\r\n showMessageCard: Boolean,\r\n appParameter: String,\r\n formType: String,\r\n openType: String\r\n }\r\n})\r\n\r\nexport default buttonMixin\r\n\r\n"],"names":["defineMixin"],"mappings":";;AAEY,MAAC,cAAcA,+BAAAA,YAAY;AAAA,EACnC,OAAO;AAAA,IACH,MAAM;AAAA,IACN,aAAa;AAAA,IACb,kBAAkB;AAAA,IAClB,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,IAChB,iBAAiB;AAAA,IACjB,cAAc;AAAA,IACd,UAAU;AAAA,IACV,UAAU;AAAA,EACb;AACL,CAAC;;"}
@@ -1 +1 @@
{"version":3,"file":"openType.js","sources":["uni_modules/uview-plus/libs/mixin/openType.js"],"sourcesContent":["import { defineMixin } from '../vue'\n\nexport const openType = defineMixin({\n props: {\n openType: String\n },\n methods: {\n onGetUserInfo(event) {\n this.$emit('getuserinfo', event.detail)\n },\n onContact(event) {\n this.$emit('contact', event.detail)\n },\n onGetPhoneNumber(event) {\n this.$emit('getphonenumber', event.detail)\n },\n onError(event) {\n this.$emit('error', event.detail)\n },\n onLaunchApp(event) {\n this.$emit('launchapp', event.detail)\n },\n onOpenSetting(event) {\n this.$emit('opensetting', event.detail)\n }\n }\n})\n"],"names":["defineMixin"],"mappings":";;AAEY,MAAC,WAAWA,+BAAAA,YAAY;AAAA,EAChC,OAAO;AAAA,IACH,UAAU;AAAA,EACb;AAAA,EACD,SAAS;AAAA,IACL,cAAc,OAAO;AACjB,WAAK,MAAM,eAAe,MAAM,MAAM;AAAA,IACzC;AAAA,IACD,UAAU,OAAO;AACb,WAAK,MAAM,WAAW,MAAM,MAAM;AAAA,IACrC;AAAA,IACD,iBAAiB,OAAO;AACpB,WAAK,MAAM,kBAAkB,MAAM,MAAM;AAAA,IAC5C;AAAA,IACD,QAAQ,OAAO;AACX,WAAK,MAAM,SAAS,MAAM,MAAM;AAAA,IACnC;AAAA,IACD,YAAY,OAAO;AACf,WAAK,MAAM,aAAa,MAAM,MAAM;AAAA,IACvC;AAAA,IACD,cAAc,OAAO;AACjB,WAAK,MAAM,eAAe,MAAM,MAAM;AAAA,IACzC;AAAA,EACJ;AACL,CAAC;;"}
{"version":3,"file":"openType.js","sources":["uni_modules/uview-plus/libs/mixin/openType.js"],"sourcesContent":["import { defineMixin } from '../vue'\r\n\r\nexport const openType = defineMixin({\r\n props: {\r\n openType: String\r\n },\r\n methods: {\r\n onGetUserInfo(event) {\r\n this.$emit('getuserinfo', event.detail)\r\n },\r\n onContact(event) {\r\n this.$emit('contact', event.detail)\r\n },\r\n onGetPhoneNumber(event) {\r\n this.$emit('getphonenumber', event.detail)\r\n },\r\n onError(event) {\r\n this.$emit('error', event.detail)\r\n },\r\n onLaunchApp(event) {\r\n this.$emit('launchapp', event.detail)\r\n },\r\n onOpenSetting(event) {\r\n this.$emit('opensetting', event.detail)\r\n }\r\n }\r\n})\r\n"],"names":["defineMixin"],"mappings":";;AAEY,MAAC,WAAWA,+BAAAA,YAAY;AAAA,EAChC,OAAO;AAAA,IACH,UAAU;AAAA,EACb;AAAA,EACD,SAAS;AAAA,IACL,cAAc,OAAO;AACjB,WAAK,MAAM,eAAe,MAAM,MAAM;AAAA,IACzC;AAAA,IACD,UAAU,OAAO;AACb,WAAK,MAAM,WAAW,MAAM,MAAM;AAAA,IACrC;AAAA,IACD,iBAAiB,OAAO;AACpB,WAAK,MAAM,kBAAkB,MAAM,MAAM;AAAA,IAC5C;AAAA,IACD,QAAQ,OAAO;AACX,WAAK,MAAM,SAAS,MAAM,MAAM;AAAA,IACnC;AAAA,IACD,YAAY,OAAO;AACf,WAAK,MAAM,aAAa,MAAM,MAAM;AAAA,IACvC;AAAA,IACD,cAAc,OAAO;AACjB,WAAK,MAAM,eAAe,MAAM,MAAM;AAAA,IACzC;AAAA,EACJ;AACL,CAAC;;"}