diff --git a/.gitignore b/.gitignore index 0a73778..8b13789 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -/uni_modules -/unpackage/dist + diff --git a/uni_modules/lime-drag/changelog.md b/uni_modules/lime-drag/changelog.md new file mode 100644 index 0000000..e78c265 --- /dev/null +++ b/uni_modules/lime-drag/changelog.md @@ -0,0 +1,33 @@ +## 0.1.3(2023-08-19) +- fix: 修复使用remove导致样式错乱 +## 0.1.2(2023-08-09) +- fix: 修复nvue没有获取节点的问题 +- fix: 修复因延时导致卡在中途 +- fix: 修复change事件有时失效的问题 +## 0.1.1(2023-07-03) +- chore: 更新文档 +## 0.1.0(2023-07-03) +- fix: 外面的事件冒泡导致点击调动内部移动方法错乱 +## 0.0.9(2023-05-30) +- fix: 修复因手机事件为`onLongpress`导致,在手机上无法长按 +- fix: 无法因css导致滚动 +## 0.0.8(2023-04-23) +- feat: 更新文档 +## 0.0.7(2023-04-23) +- feat: 由于删除是一个危险的动作,故把方法暴露出来,而不在内部处理。如果之前有使用删除的,需要注意 +- feat: 原来的`add`变更为`push`,增加`unshift` +## 0.0.6(2023-04-12) +- fix: 修复`handle`不生效问题 +- feat: 增加 `to`方法 +## 0.0.5(2023-04-11) +- chore: `grid` 插槽增加 `nindex`、`oindex` +## 0.0.4(2023-04-04) +- chore: 去掉 script-setup 语法糖 +- chore: 文档增加 vue2 使用方法 +## 0.0.3(2023-03-30) +- feat: 重要说明 更新 list 只会再次初始化 +- feat: 更新文档 +## 0.0.2(2023-03-29) +- 修改文档 +## 0.0.1(2023-03-29) +- 初次提交 diff --git a/uni_modules/lime-drag/components/l-drag/index.scss b/uni_modules/lime-drag/components/l-drag/index.scss new file mode 100644 index 0000000..e74ba5a --- /dev/null +++ b/uni_modules/lime-drag/components/l-drag/index.scss @@ -0,0 +1,93 @@ +$drag-handle-size: var(--l-drag-handle-size, 50rpx); +$drag-delete-size: var(--l-drag-delete-size, 32rpx); +.l-drag { + // min-height: 100rpx; + overflow: hidden; + + + margin: 24rpx 30rpx 0 30rpx; + // padding: 30rpx 0; + + + /* #ifdef APP-NVUE */ + // flex: 1; + /* #endif */ + /* #ifndef APP-NVUE */ + // width: 100%; + /* #endif */ +} +.l-drag__inner { + /* #ifdef APP-NVUE */ + flex: 1; + /* #endif */ + /* #ifndef APP-NVUE */ + width: 100%; + /* #endif */ + min-height: 100rpx; +} +.l-drag__view { + // touch-action: none; + // user-select: none; + // -webkit-user-select: auto; + z-index: 2; + transition: opacity 300ms ease; + .mask { + position: absolute; + inset: 0; + background-color: transparent; + z-index: 9; + } + /* #ifndef APP-NVUE */ + > view { + &:last-child { + width: 100%; + height: 100%; + } + } + box-sizing: border-box; + /* #endif */ + +} +.l-drag-enter { + opacity: 0; +} +.l-drag__ghost { + /* #ifndef APP-NVUE */ + > view { + &:last-child { + width: 100%; + height: 100%; + } + } + box-sizing: border-box; + /* #endif */ +} +.l-is-active { + z-index: 3; +} +.l-is-hidden { + opacity: 0; +} +.l-drag__delete { + position: absolute; + z-index: 10; + width: $drag-delete-size; + height: $drag-delete-size; +} +.l-drag__handle { + position: absolute; + z-index: 10; + width: $drag-handle-size; + height: $drag-handle-size; +} +/* #ifndef APP-NVUE */ +.l-drag__delete::before,.l-drag__handle::before { + content: ''; + position: absolute; + width: 100%; + height: 100%; + left: 0; + top: 0; + z-index: 10; +} +/* #endif */ \ No newline at end of file diff --git a/uni_modules/lime-drag/components/l-drag/l-drag.vue b/uni_modules/lime-drag/components/l-drag/l-drag.vue new file mode 100644 index 0000000..dc438a7 --- /dev/null +++ b/uni_modules/lime-drag/components/l-drag/l-drag.vue @@ -0,0 +1,532 @@ + + + diff --git a/uni_modules/lime-drag/components/l-drag/props.ts b/uni_modules/lime-drag/components/l-drag/props.ts new file mode 100644 index 0000000..c475fe8 --- /dev/null +++ b/uni_modules/lime-drag/components/l-drag/props.ts @@ -0,0 +1,47 @@ +// @ts-nocheck +export default { + list: { + type: Array, + default: [] + }, + column: { + type: Number, + default: 2 + }, + /**宽高比 填写这项, gridHeight 失效*/ + aspectRatio: Number, + gridHeight: { + type: [Number, String], + default: '120rpx' + }, + // removeStyle: String, + // handleStyle: String, + damping: { + type: Number, + default: 40 + }, + friction: { + type: Number, + default: 2 + }, + /** + * 由于 movable-area 无法动态设置高度,故增加额外的行数。用于增加动态项时,高度不够无法正确显示 + */ + extraRow: { + type: Number, + default: 0 + }, + /** + * 由于 movable-area 无法动态设置高度,但vif 重染可以,另一种实现动态高度的方式, 这BUG uni官方好像修复了。 + */ + // reset: Boolean, + // sort: Boolean, + // remove: Boolean, + ghost: Boolean, + handle: Boolean, + touchHandle: Boolean, + before: Boolean, + after: Boolean, + disabled: Boolean, + longpress: Boolean, + } \ No newline at end of file diff --git a/uni_modules/lime-drag/components/l-drag/type.ts b/uni_modules/lime-drag/components/l-drag/type.ts new file mode 100644 index 0000000..7cfaa50 --- /dev/null +++ b/uni_modules/lime-drag/components/l-drag/type.ts @@ -0,0 +1,21 @@ +export interface Position { + x: number + y: number +} +export interface GridRect extends Position{ + row : number + // x : number + // y : number + x1 : number + y1 : number +} +export interface Grid extends Position{ + id : string + index : number + oldindex : number + content : any + // x : number + // y : number + class : string + show: boolean +} \ No newline at end of file diff --git a/uni_modules/lime-drag/components/l-drag/vue.ts b/uni_modules/lime-drag/components/l-drag/vue.ts new file mode 100644 index 0000000..de8fe1b --- /dev/null +++ b/uni_modules/lime-drag/components/l-drag/vue.ts @@ -0,0 +1,9 @@ +// @ts-nocheck +// export * from '@/uni_modules/lime-vue' + +// #ifdef VUE3 +export * from 'vue'; +// #endif +// #ifndef VUE3 +export * from '@vue/composition-api'; +// #endif diff --git a/uni_modules/lime-drag/components/lime-drag/lime-drag.vue b/uni_modules/lime-drag/components/lime-drag/lime-drag.vue new file mode 100644 index 0000000..ab315a2 --- /dev/null +++ b/uni_modules/lime-drag/components/lime-drag/lime-drag.vue @@ -0,0 +1,268 @@ + + + diff --git a/uni_modules/lime-drag/package.json b/uni_modules/lime-drag/package.json new file mode 100644 index 0000000..839f606 --- /dev/null +++ b/uni_modules/lime-drag/package.json @@ -0,0 +1,87 @@ +{ + "id": "lime-drag", + "displayName": "拖拽排序-拖动排序-LimeUI", + "version": "0.1.3", + "description": "uniapp vue3 拖拽排序插件,用于图片或列表的拖动排序,可设置列数、增加删除等功能, vue2只要配置@vue/composition-api", + "keywords": [ + "拖拽", + "拖拽排序", + "排序", + "拖动", + "拖动排序" +], + "repository": "", + "engines": { + "HBuilderX": "^3.7.12" + }, + "dcloudext": { + "type": "component-vue", + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "" + }, + "uni_modules": { + "dependencies": [ + "lime-shared" + ], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "Vue": { + "vue2": "n", + "vue3": "y" + }, + "App": { + "app-vue": "y", + "app-nvue": "y" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "u", + "Edge": "u", + "Firefox": "u", + "Safari": "u" + }, + "小程序": { + "微信": "y", + "阿里": "u", + "百度": "u", + "字节跳动": "u", + "QQ": "u", + "钉钉": "u", + "快手": "u", + "飞书": "u", + "京东": "u" + }, + "快应用": { + "华为": "u", + "联盟": "u" + } + } + } + } +} \ No newline at end of file diff --git a/uni_modules/lime-drag/readme.md b/uni_modules/lime-drag/readme.md new file mode 100644 index 0000000..c461f95 --- /dev/null +++ b/uni_modules/lime-drag/readme.md @@ -0,0 +1,170 @@ +# lime-drag 拖拽排序 +- 当前为初版 可能会有BUG +- 基于uniapp vue3 +- Q群 1169785031 + + +### 安装 +- 在市场导入插件即可在任意页面使用,无须再`import` + + +### 使用 +- 提供简单的使用示例,更多请查看下方的demo + +```html + + + + +``` + +```js +const list = new Array(7).fill(0).map((v,i) => i); +// 拖拽后新的数据 +const newList = ref([]) +const change = v => newList.value = v +``` +#### 增删 +- 不要给list赋值,这样只会重新初始化 +- 增加数据 调用暴露的`push` +- 删除某条数据调用暴露的`remove`方法,需要传入`oindex` + +```html + + + + + +``` +```js +const dragRef = ref(null) +const list = new Array(7).fill(0).map((v,i) => i); +const onAdd = () => { + dragRef.value.push(Math.round(Math.random() * 1000)) +} +const onRemove = (oindex) => { + if(dragRef.value && oindex >= 0) { + // 记得oindex为数组的原始index + dragRef.value.remove(oindex) + } +} +``` + + +#### 插槽 +```html + + + + + + + + + + + + +``` + + +### 查看示例 +- 导入后直接使用这个标签查看演示效果 + +```html + + +``` + + +### 插件标签 +- 默认 l-drag 为 component +- 默认 lime-drag 为 demo + +### 关于vue2的使用方式 +- 插件使用了`composition-api`, 如果你希望在vue2中使用请按官方的教程[vue-composition-api](https://uniapp.dcloud.net.cn/tutorial/vue-composition-api.html)配置 +- 关键代码是: 在main.js中 在vue2部分加上这一段即可,官方是把它单独成了一个文件. +```js +// vue2 +import Vue from 'vue' +import VueCompositionAPI from '@vue/composition-api' +Vue.use(VueCompositionAPI) +``` + +- 另外插件也用到了TS,vue2可能会遇过官方的TS版本过低的问题,找到HX目录下的`compile-typescript`目录 +```cmd +// \HBuilderX\plugins\compile-typescript +yarn add typescript -D +- or - +npm install typescript -D +``` + +- 小程序需要在`manifest.json`启用`slotMultipleInstance` +```json +"mp-weixin" : { + "slotMultipleInstance" : true +} +``` + + +## API + +### Props + +| 参数 | 说明 | 类型 | 默认值 | +| --------------------------| ------------------------------------------------------------ | ---------------- | ------------ | +| list | 列表数组,不可变化,变化后会重新初始化 | array | `[]` | +| column | 列数 | number | `2` | +| gridHeight | 行高,宫格高度 | string | `120rpx` | +| damping | 阻尼系数,用于控制x或y改变时的动画和过界回弹的动画,值越大移动越快 | string | `-` | +| friction | 摩擦系数,用于控制惯性滑动的动画,值越大摩擦力越大,滑动越快停止;必须大于0,否则会被设置成默认值 | number | `2` | +| extraRow | 额外行数 | number | `0` | +| ghost | 开启幽灵插槽 | boolean | `false` | +| before | 开启列前插槽 | boolean | `false` | +| after | 开启列后插槽 | boolean | `false` | +| disabled | 是否禁用 | boolean | `false` | +| longpress | 是否长按 | boolean | `false` | + +### Events +| 参数 | 说明 | 参数 | +| --------------------------| ------------------------------------------------------------ | ---------------- | +| change | 返回新数据 | list | + +### Expose +| 参数 | 说明 | 参数 | +| --------------------------| ------------------------------------------------------------ | ---------------- | +| remove | 删除, 传入`oindex`,即数据列表原始的index | | +| push | 向后增加,可以是数组或单数据 | | +| unshift | 向前增加,可以是数组或单数据 | | +| move | 移动, 传入(`oindex`, `toindex`),将数据列表原始的index项移到视图中的目标位置 | | + + +### TODO +将来实现的功能 +- splice + +## 打赏 + +如果你觉得本插件,解决了你的问题,赠人玫瑰,手留余香。 +![](https://testingcf.jsdelivr.net/gh/liangei/image@1.9/alipay.png) +![](https://testingcf.jsdelivr.net/gh/liangei/image@1.9/wpay.png) \ No newline at end of file diff --git a/uni_modules/lime-shared/addUnit/index.ts b/uni_modules/lime-shared/addUnit/index.ts new file mode 100644 index 0000000..25bc2b1 --- /dev/null +++ b/uni_modules/lime-shared/addUnit/index.ts @@ -0,0 +1,42 @@ +// @ts-nocheck +import {isNumeric} from '../isNumeric' +import {isDef} from '../isDef' +/** + * 给一个值添加单位(像素 px) + * @param value 要添加单位的值,可以是字符串或数字 + * @returns 添加了单位的值,如果值为 null 则返回 null + */ + +// #ifndef APP-IOS || APP-ANDROID +export function addUnit(value?: string | number): string | null { + if (!isDef(value)) { + return null; + } + value = String(value); // 将值转换为字符串 + // 如果值是数字,则在后面添加单位 "px",否则保持原始值 + return isNumeric(value) ? `${value}px` : value; +} +// #endif + + +// #ifdef APP-IOS || APP-ANDROID +function addUnit(value: string): string +function addUnit(value: number): string +function addUnit(value: any|null): string|null { + if (!isDef(value)) { + return null; + } + value = `${value}` //value.toString(); // 将值转换为字符串 + + // 如果值是数字,则在后面添加单位 "px",否则保持原始值 + return isNumeric(value) ? `${value}px` : value; +} +export {addUnit} +// #endif + + +// console.log(addUnit(100)); // 输出: "100px" +// console.log(addUnit("200")); // 输出: "200px" +// console.log(addUnit("300px")); // 输出: "300px"(已经包含单位) +// console.log(addUnit()); // 输出: undefined(值为 undefined) +// console.log(addUnit(null)); // 输出: undefined(值为 null) \ No newline at end of file diff --git a/uni_modules/lime-shared/animation/bezier.ts b/uni_modules/lime-shared/animation/bezier.ts new file mode 100644 index 0000000..b4239e1 --- /dev/null +++ b/uni_modules/lime-shared/animation/bezier.ts @@ -0,0 +1,82 @@ +export function cubicBezier(p1x : number, p1y : number, p2x : number, p2y : number):(x: number)=> number { + const ZERO_LIMIT = 1e-6; + // Calculate the polynomial coefficients, + // implicit first and last control points are (0,0) and (1,1). + const ax = 3 * p1x - 3 * p2x + 1; + const bx = 3 * p2x - 6 * p1x; + const cx = 3 * p1x; + + const ay = 3 * p1y - 3 * p2y + 1; + const by = 3 * p2y - 6 * p1y; + const cy = 3 * p1y; + + function sampleCurveDerivativeX(t : number) : number { + // `ax t^3 + bx t^2 + cx t` expanded using Horner's rule + return (3 * ax * t + 2 * bx) * t + cx; + } + + function sampleCurveX(t : number) : number { + return ((ax * t + bx) * t + cx) * t; + } + + function sampleCurveY(t : number) : number { + return ((ay * t + by) * t + cy) * t; + } + + // Given an x value, find a parametric value it came from. + function solveCurveX(x : number) : number { + let t2 = x; + let derivative : number; + let x2 : number; + + // https://trac.webkit.org/browser/trunk/Source/WebCore/platform/animation + // first try a few iterations of Newton's method -- normally very fast. + // http://en.wikipedia.org/wikiNewton's_method + for (let i = 0; i < 8; i++) { + // f(t) - x = 0 + x2 = sampleCurveX(t2) - x; + if (Math.abs(x2) < ZERO_LIMIT) { + return t2; + } + derivative = sampleCurveDerivativeX(t2); + // == 0, failure + /* istanbul ignore if */ + if (Math.abs(derivative) < ZERO_LIMIT) { + break; + } + t2 -= x2 / derivative; + } + + // Fall back to the bisection method for reliability. + // bisection + // http://en.wikipedia.org/wiki/Bisection_method + let t1 = 1; + /* istanbul ignore next */ + let t0 = 0; + + /* istanbul ignore next */ + t2 = x; + /* istanbul ignore next */ + while (t1 > t0) { + x2 = sampleCurveX(t2) - x; + if (Math.abs(x2) < ZERO_LIMIT) { + return t2; + } + if (x2 > 0) { + t1 = t2; + } else { + t0 = t2; + } + t2 = (t1 + t0) / 2; + } + + // Failure + return t2; + } + + return function (x : number) : number { + return sampleCurveY(solveCurveX(x)); + } + + // return solve; +} \ No newline at end of file diff --git a/uni_modules/lime-shared/animation/ease.ts b/uni_modules/lime-shared/animation/ease.ts new file mode 100644 index 0000000..9358c6d --- /dev/null +++ b/uni_modules/lime-shared/animation/ease.ts @@ -0,0 +1,2 @@ +import {cubicBezier} from './bezier'; +export let ease = cubicBezier(0.25, 0.1, 0.25, 1); \ No newline at end of file diff --git a/uni_modules/lime-shared/animation/index.ts b/uni_modules/lime-shared/animation/index.ts new file mode 100644 index 0000000..5665983 --- /dev/null +++ b/uni_modules/lime-shared/animation/index.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +// #ifdef APP-IOS || APP-ANDROID +export * from './uvue.uts' +// #endif + + + +// #ifndef APP-IOS || APP-ANDROID +export * from './vue.ts' +// #endif diff --git a/uni_modules/lime-shared/animation/useTransition.ts b/uni_modules/lime-shared/animation/useTransition.ts new file mode 100644 index 0000000..818e591 --- /dev/null +++ b/uni_modules/lime-shared/animation/useTransition.ts @@ -0,0 +1,97 @@ +// @ts-nocheck +import { ComponentPublicInstance } from 'vue' +import { ease } from './ease'; +import { Timeline, Animation } from './'; +export type UseTransitionOptions = { + duration ?: number + immediate ?: boolean + context ?: ComponentPublicInstance +} +// #ifndef APP-IOS || APP-ANDROID +import { ref, watch, Ref } from '@/uni_modules/lime-shared/vue' + +export function useTransition(percent : Ref|(() => number), options : UseTransitionOptions) : Ref { + const current = ref(0) + const { immediate, duration = 300 } = options + let tl:Timeline|null = null; + let timer = -1 + const isFunction = typeof percent === 'function' + watch(isFunction ? percent : () => percent.value, (v) => { + if(tl == null){ + tl = new Timeline() + } + tl.start(); + tl.add( + new Animation( + current.value, + v, + duration, + 0, + ease, + nowValue => { + current.value = nowValue + clearTimeout(timer) + if(current.value == v){ + timer = setTimeout(()=>{ + tl?.pause(); + tl = null + }, duration) + } + } + ) + ); + }, { immediate }) + + return current +} + +// #endif + +// #ifdef APP-IOS || APP-ANDROID +type UseTransitionReturnType = Ref +export function useTransition(source : any, options : UseTransitionOptions) : UseTransitionReturnType { + const outputRef : Ref = ref(0) + const immediate = options.immediate ?? false + const duration = options.duration ?? 300 + const context = options.context //as ComponentPublicInstance | null + let tl:Timeline|null = null; + let timer = -1 + const watchFunc = (v : number) => { + if(tl == null){ + tl = new Timeline() + } + tl!.start(); + tl!.add( + new Animation( + outputRef.value, + v, + duration, + 0, + ease, + nowValue => { + outputRef.value = nowValue //nowValue < 0.0001 ? 0 : Math.abs(v - nowValue) < 0.00001 ? v : nowValue; + clearTimeout(timer) + if(outputRef.value == v){ + timer = setTimeout(()=>{ + tl?.pause(); + tl = null + }, duration) + } + } + ), null + ); + } + + if (context != null && typeof source == 'string') { + context.$watch(source, watchFunc, { immediate } as WatchOptions) + } else { + watch(source, watchFunc, { immediate } as WatchOptions) + } + + const stop = ()=>{ + + } + return outputRef //as UseTransitionReturnType +} + +// #endif \ No newline at end of file diff --git a/uni_modules/lime-shared/animation/uvue.uts b/uni_modules/lime-shared/animation/uvue.uts new file mode 100644 index 0000000..9a10db0 --- /dev/null +++ b/uni_modules/lime-shared/animation/uvue.uts @@ -0,0 +1,112 @@ +// @ts-nocheck +export class Timeline { + state : string + animations : Set = new Set() + delAnimations : Animation[] = [] + startTimes : Map = new Map() + pauseTime : number = 0 + pauseStart : number = Date.now() + tickHandler : number = 0 + tickHandlers : number[] = [] + tick : (() => void) | null = null + constructor() { + this.state = 'Initiated'; + } + start() { + if (!(this.state === 'Initiated')) return; + this.state = 'Started'; + + let startTime = Date.now(); + this.pauseTime = 0; + this.tick = () => { + let now = Date.now(); + this.animations.forEach((animation : Animation) => { + let t:number; + const ani = this.startTimes.get(animation) + if (ani == null) return + if (ani < startTime) { + t = now - startTime - animation.delay - this.pauseTime; + } else { + t = now - ani - animation.delay - this.pauseTime; + } + if (t > animation.duration) { + this.delAnimations.push(animation) + // 不能在 foreach 里面 对 集合进行删除操作 + // this.animations.delete(animation); + t = animation.duration; + } + if (t > 0) animation.run(t); + }) + // 不能在 foreach 里面 对 集合进行删除操作 + while (this.delAnimations.length > 0) { + const animation = this.delAnimations.pop(); + if (animation == null) return + this.animations.delete(animation); + } + clearTimeout(this.tickHandler); + if (this.state != 'Started') return + this.tickHandler = setTimeout(() => { + this.tick!() + }, 1000 / 60) + // this.tickHandlers.push(this.tickHandler) + } + this.tick!() + } + pause() { + if (!(this.state === 'Started')) return; + this.state = 'Paused'; + this.pauseStart = Date.now(); + clearTimeout(this.tickHandler); + } + resume() { + if (!(this.state === 'Paused')) return; + this.state = 'Started'; + this.pauseTime += Date.now() - this.pauseStart; + this.tick!(); + } + reset() { + this.pause(); + this.state = 'Initiated'; + this.pauseTime = 0; + this.pauseStart = 0; + this.animations.clear() + this.delAnimations.clear() + this.startTimes.clear() + this.tickHandler = 0; + } + add(animation : Animation, startTime ?: number | null) { + if (startTime == null) startTime = Date.now(); + this.animations.add(animation); + this.startTimes.set(animation, startTime); + } +} + +export class Animation { + startValue : number + endValue : number + duration : number + timingFunction : (t : number) => number + delay : number + template : (t : number) => void + constructor( + startValue : number, + endValue : number, + duration : number, + delay : number, + timingFunction : (t : number) => number, + template : (v : number) => void) { + this.startValue = startValue; + this.endValue = endValue; + this.duration = duration; + this.timingFunction = timingFunction; + this.delay = delay; + this.template = template; + } + + run(time : number) { + let range = this.endValue - this.startValue; + let progress = time / this.duration + if(progress != 1) progress = this.timingFunction(progress) + this.template(this.startValue + range * progress) + } +} \ No newline at end of file diff --git a/uni_modules/lime-shared/animation/vue.ts b/uni_modules/lime-shared/animation/vue.ts new file mode 100644 index 0000000..30f89e5 --- /dev/null +++ b/uni_modules/lime-shared/animation/vue.ts @@ -0,0 +1,123 @@ +// @ts-nocheck +const TICK = Symbol('tick'); +const TICK_HANDLER = Symbol('tick-handler'); +const ANIMATIONS = Symbol('animations'); +const START_TIMES = Symbol('start-times'); +const PAUSE_START = Symbol('pause-start'); +const PAUSE_TIME = Symbol('pause-time'); +const _raf = typeof requestAnimationFrame !== 'undefined' ? requestAnimationFrame : function(cb: Function) {return setTimeout(cb, 1000/60)} +const _caf = typeof cancelAnimationFrame !== 'undefined' ? cancelAnimationFrame: function(id: any) {clearTimeout(id)} + +// const TICK = 'tick'; +// const TICK_HANDLER = 'tick-handler'; +// const ANIMATIONS = 'animations'; +// const START_TIMES = 'start-times'; +// const PAUSE_START = 'pause-start'; +// const PAUSE_TIME = 'pause-time'; +// const _raf = function(callback):number|null {return setTimeout(callback, 1000/60)} +// const _caf = function(id: number):void {clearTimeout(id)} + +export class Timeline { + state: string + constructor() { + this.state = 'Initiated'; + this[ANIMATIONS] = new Set(); + this[START_TIMES] = new Map(); + } + start() { + if (!(this.state === 'Initiated')) return; + this.state = 'Started'; + + let startTime = Date.now(); + this[PAUSE_TIME] = 0; + this[TICK] = () => { + let now = Date.now(); + this[ANIMATIONS].forEach((animation) => { + let t: number; + if (this[START_TIMES].get(animation) < startTime) { + t = now - startTime - animation.delay - this[PAUSE_TIME]; + } else { + t = now - this[START_TIMES].get(animation) - animation.delay - this[PAUSE_TIME]; + } + + if (t > animation.duration) { + this[ANIMATIONS].delete(animation); + t = animation.duration; + } + if (t > 0) animation.run(t); + }) + // for (let animation of this[ANIMATIONS]) { + // let t: number; + // console.log('animation', animation) + // if (this[START_TIMES].get(animation) < startTime) { + // t = now - startTime - animation.delay - this[PAUSE_TIME]; + // } else { + // t = now - this[START_TIMES].get(animation) - animation.delay - this[PAUSE_TIME]; + // } + + // if (t > animation.duration) { + // this[ANIMATIONS].delete(animation); + // t = animation.duration; + // } + // if (t > 0) animation.run(t); + // } + this[TICK_HANDLER] = _raf(this[TICK]); + }; + this[TICK](); + } + pause() { + if (!(this.state === 'Started')) return; + this.state = 'Paused'; + + this[PAUSE_START] = Date.now(); + _caf(this[TICK_HANDLER]); + } + resume() { + if (!(this.state === 'Paused')) return; + this.state = 'Started'; + + this[PAUSE_TIME] += Date.now() - this[PAUSE_START]; + this[TICK](); + } + reset() { + this.pause(); + this.state = 'Initiated'; + this[PAUSE_TIME] = 0; + this[PAUSE_START] = 0; + this[ANIMATIONS] = new Set(); + this[START_TIMES] = new Map(); + this[TICK_HANDLER] = null; + } + add(animation: any, startTime?: number) { + if (arguments.length < 2) startTime = Date.now(); + this[ANIMATIONS].add(animation); + this[START_TIMES].set(animation, startTime); + } +} + +export class Animation { + startValue: number + endValue: number + duration: number + timingFunction: (t: number) => number + delay: number + template: (t: number) => void + constructor(startValue: number, endValue: number, duration: number, delay: number, timingFunction: (t: number) => number, template: (v: number) => void) { + timingFunction = timingFunction || (v => v); + template = template || (v => v); + + this.startValue = startValue; + this.endValue = endValue; + this.duration = duration; + this.timingFunction = timingFunction; + this.delay = delay; + this.template = template; + } + + run(time: number) { + let range = this.endValue - this.startValue; + let progress = time / this.duration + if(progress != 1) progress = this.timingFunction(progress) + this.template(this.startValue + range * progress) + } +} \ No newline at end of file diff --git a/uni_modules/lime-shared/arrayBufferToFile/index.ts b/uni_modules/lime-shared/arrayBufferToFile/index.ts new file mode 100644 index 0000000..fd67048 --- /dev/null +++ b/uni_modules/lime-shared/arrayBufferToFile/index.ts @@ -0,0 +1,10 @@ +// @ts-nocheck +// #ifndef APP-IOS || APP-ANDROID +export * from './vue.ts' +// #endif + +// #ifdef UNI-APP-X +// #ifdef APP-IOS || APP-ANDROID +export * from './uvue.uts' +// #endif +// #endif \ No newline at end of file diff --git a/uni_modules/lime-shared/arrayBufferToFile/uvue.uts b/uni_modules/lime-shared/arrayBufferToFile/uvue.uts new file mode 100644 index 0000000..65c7b14 --- /dev/null +++ b/uni_modules/lime-shared/arrayBufferToFile/uvue.uts @@ -0,0 +1,10 @@ +// @ts-nocheck +// import {platform} from '../platform' +/** + * buffer转路径 + * @param {Object} buffer + */ +// @ts-nocheck +export function arrayBufferToFile(buffer: ArrayBuffer, name?: string, format?:string):Promise<(File|string)> { + console.error('[arrayBufferToFile] 当前环境不支持') +} \ No newline at end of file diff --git a/uni_modules/lime-shared/arrayBufferToFile/vue.ts b/uni_modules/lime-shared/arrayBufferToFile/vue.ts new file mode 100644 index 0000000..9760b20 --- /dev/null +++ b/uni_modules/lime-shared/arrayBufferToFile/vue.ts @@ -0,0 +1,63 @@ +// @ts-nocheck +import {platform} from '../platform' +/** + * buffer转路径 + * @param {Object} buffer + */ +// @ts-nocheck +export function arrayBufferToFile(buffer: ArrayBuffer | Blob, name?: string, format?:string):Promise<(File|string)> { + return new Promise((resolve, reject) => { + // #ifdef MP + const fs = uni.getFileSystemManager() + //自定义文件名 + if (!name && !format) { + reject(new Error('ERROR_NAME_PARSE')) + } + const fileName = `${name || new Date().getTime()}.${format.replace(/(.+)?\//,'')}`; + let pre = platform() + const filePath = `${pre.env.USER_DATA_PATH}/${fileName}` + fs.writeFile({ + filePath, + data: buffer, + success() { + resolve(filePath) + }, + fail(err) { + console.error(err) + reject(err) + } + }) + // #endif + + // #ifdef H5 + const file = new File([buffer], name, { + type: format, + }); + resolve(file) + // #endif + + // #ifdef APP-PLUS + const bitmap = new plus.nativeObj.Bitmap('bitmap' + Date.now()) + const base64 = uni.arrayBufferToBase64(buffer) + bitmap.loadBase64Data(base64, () => { + if (!name && !format) { + reject(new Error('ERROR_NAME_PARSE')) + } + const fileNmae = `${name || new Date().getTime()}.${format.replace(/(.+)?\//,'')}`; + const filePath = `_doc/uniapp_temp/${fileNmae}` + bitmap.save(filePath, {}, + () => { + bitmap.clear() + resolve(filePath) + }, + (error) => { + bitmap.clear() + reject(error) + }) + }, (error) => { + bitmap.clear() + reject(error) + }) + // #endif + }) +} \ No newline at end of file diff --git a/uni_modules/lime-shared/base64ToArrayBuffer/index.ts b/uni_modules/lime-shared/base64ToArrayBuffer/index.ts new file mode 100644 index 0000000..f83b640 --- /dev/null +++ b/uni_modules/lime-shared/base64ToArrayBuffer/index.ts @@ -0,0 +1,13 @@ +// @ts-nocheck +// 未完成 +export function base64ToArrayBuffer(base64 : string) { + const [, format, bodyData] = /data:image\/(\w+);base64,(.*)/.exec(base64) || []; + if (!format) { + new Error('ERROR_BASE64SRC_PARSE') + } + if(uni.base64ToArrayBuffer) { + return uni.base64ToArrayBuffer(bodyData) + } else { + + } +} \ No newline at end of file diff --git a/uni_modules/lime-shared/base64ToPath/index.ts b/uni_modules/lime-shared/base64ToPath/index.ts new file mode 100644 index 0000000..28a3bf5 --- /dev/null +++ b/uni_modules/lime-shared/base64ToPath/index.ts @@ -0,0 +1,9 @@ +// @ts-nocheck +// #ifndef APP-IOS || APP-ANDROID +export * from './vue.ts' +// #endif + + +// #ifdef APP-IOS || APP-ANDROID +export * from './uvue.uts' +// #endif diff --git a/uni_modules/lime-shared/base64ToPath/uvue.uts b/uni_modules/lime-shared/base64ToPath/uvue.uts new file mode 100644 index 0000000..7019ecb --- /dev/null +++ b/uni_modules/lime-shared/base64ToPath/uvue.uts @@ -0,0 +1,22 @@ +// @ts-nocheck +import { processFile, ProcessFileOptions } from '@/uni_modules/lime-file-utils' + +/** + * base64转路径 + * @param {Object} base64 + */ +export function base64ToPath(base64: string, filename: string | null = null):Promise { + return new Promise((resolve,reject) => { + processFile({ + type: 'toDataURL', + path: base64, + filename, + success(res: string){ + resolve(res) + }, + fail(err){ + reject(err) + } + } as ProcessFileOptions) + }) +} \ No newline at end of file diff --git a/uni_modules/lime-shared/base64ToPath/vue.ts b/uni_modules/lime-shared/base64ToPath/vue.ts new file mode 100644 index 0000000..735000f --- /dev/null +++ b/uni_modules/lime-shared/base64ToPath/vue.ts @@ -0,0 +1,75 @@ +// @ts-nocheck +import {platform} from '../platform' +/** + * base64转路径 + * @param {Object} base64 + */ +export function base64ToPath(base64: string, filename?: string):Promise { + const [, format] = /^data:image\/(\w+);base64,/.exec(base64) || []; + return new Promise((resolve, reject) => { + // #ifdef MP + const fs = uni.getFileSystemManager() + //自定义文件名 + if (!filename && !format) { + reject(new Error('ERROR_BASE64SRC_PARSE')) + } + // const time = new Date().getTime(); + const name = filename || `${new Date().getTime()}.${format}`; + let pre = platform() + const filePath = `${pre.env.USER_DATA_PATH}/${name}` + fs.writeFile({ + filePath, + data: base64.split(',')[1], + encoding: 'base64', + success() { + resolve(filePath) + }, + fail(err) { + console.error(err) + reject(err) + } + }) + // #endif + + // #ifdef H5 + // mime类型 + let mimeString = base64.split(',')[0].split(':')[1].split(';')[0]; + //base64 解码 + let byteString = atob(base64.split(',')[1]); + //创建缓冲数组 + let arrayBuffer = new ArrayBuffer(byteString.length); + //创建视图 + let intArray = new Uint8Array(arrayBuffer); + for (let i = 0; i < byteString.length; i++) { + intArray[i] = byteString.charCodeAt(i); + } + resolve(URL.createObjectURL(new Blob([intArray], { + type: mimeString + }))) + // #endif + + // #ifdef APP-PLUS + const bitmap = new plus.nativeObj.Bitmap('bitmap' + Date.now()) + bitmap.loadBase64Data(base64, () => { + if (!filename && !format) { + reject(new Error('ERROR_BASE64SRC_PARSE')) + } + // const time = new Date().getTime(); + const name = filename || `${new Date().getTime()}.${format}`; + const filePath = `_doc/uniapp_temp/${name}` + bitmap.save(filePath, {}, + () => { + bitmap.clear() + resolve(filePath) + }, + (error) => { + bitmap.clear() + reject(error) + }) + }, (error) => { + bitmap.clear() + reject(error) + }) + // #endif + }) +} \ No newline at end of file diff --git a/uni_modules/lime-shared/camelCase/index.ts b/uni_modules/lime-shared/camelCase/index.ts new file mode 100644 index 0000000..dd470ab --- /dev/null +++ b/uni_modules/lime-shared/camelCase/index.ts @@ -0,0 +1,21 @@ +/** + * 将字符串转换为 camelCase 或 PascalCase 风格的命名约定 + * @param str 要转换的字符串 + * @param isPascalCase 指示是否转换为 PascalCase 的布尔值,默认为 false + * @returns 转换后的字符串 + */ +export function camelCase(str: string, isPascalCase: boolean = false): string { + // 将字符串分割成单词数组 + let words: string[] = str.split(/[\s_-]+/); + + // 将数组中的每个单词首字母大写(除了第一个单词) + let camelCased: string[] = words.map((word, index):string => { + if (index == 0 && !isPascalCase) { + return word.toLowerCase(); // 第一个单词全小写 + } + return word.charAt(0).toUpperCase() + word.slice(1).toLowerCase(); + }); + + // 将数组中的单词拼接成一个字符串 + return camelCased.join(''); +}; \ No newline at end of file diff --git a/uni_modules/lime-shared/canIUseCanvas2d/index.ts b/uni_modules/lime-shared/canIUseCanvas2d/index.ts new file mode 100644 index 0000000..95211d1 --- /dev/null +++ b/uni_modules/lime-shared/canIUseCanvas2d/index.ts @@ -0,0 +1,67 @@ +// @ts-nocheck + +// #ifndef APP-IOS || APP-ANDROID + +// #ifdef MP-ALIPAY +interface My { + SDKVersion: string +} +declare var my: My +// #endif + +function compareVersion(v1:string, v2:string) { + let a1 = v1.split('.'); + let a2 = v2.split('.'); + const len = Math.max(a1.length, a2.length); + + while (a1.length < len) { + a1.push('0'); + } + while (a2.length < len) { + a2.push('0'); + } + + for (let i = 0; i < len; i++) { + const num1 = parseInt(a1[i], 10); + const num2 = parseInt(a2[i], 10); + + if (num1 > num2) { + return 1; + } + if (num1 < num2) { + return -1; + } + } + + return 0; +} + +function gte(version: string) { + let {SDKVersion} = uni.getSystemInfoSync(); + // #ifdef MP-ALIPAY + SDKVersion = my.SDKVersion + // #endif + return compareVersion(SDKVersion, version) >= 0; +} +// #endif + + +/** 环境是否支持canvas 2d */ +export function canIUseCanvas2d(): boolean { + // #ifdef MP-WEIXIN + return gte('2.9.0'); + // #endif + // #ifdef MP-ALIPAY + return gte('2.7.0'); + // #endif + // #ifdef MP-TOUTIAO + return gte('1.78.0'); + // #endif + // #ifndef MP-WEIXIN || MP-ALIPAY || MP-TOUTIAO + return false + // #endif + + // #ifdef APP-IOS || APP-ANDROID || APP-NVUE || APP-VUE + return false; + // #endif +} diff --git a/uni_modules/lime-shared/changelog.md b/uni_modules/lime-shared/changelog.md new file mode 100644 index 0000000..9b9b7dc --- /dev/null +++ b/uni_modules/lime-shared/changelog.md @@ -0,0 +1,36 @@ +## 0.1.6(2024-07-24) +- fix: vue2 app ts需要明确的后缀,所有补全 +- chore: 减少依赖 +## 0.1.5(2024-07-21) +- feat: 删除 Hooks +- feat: 兼容uniappx +## 0.1.4(2023-09-05) +- feat: 增加 Hooks `useIntersectionObserver` +- feat: 增加 `floatAdd` +- feat: 因为本人插件兼容 vue2 需要使用 `composition-api`,故增加vue文件代码插件的条件编译 +## 0.1.3(2023-08-13) +- feat: 增加 `camelCase` +## 0.1.2(2023-07-17) +- feat: 增加 `getClassStr` +## 0.1.1(2023-07-06) +- feat: 增加 `isNumeric`, 区别于 `isNumber` +## 0.1.0(2023-06-30) +- fix: `clamp`忘记导出了 +## 0.0.9(2023-06-27) +- feat: 增加`arrayBufferToFile` +## 0.0.8(2023-06-19) +- feat: 增加`createAnimation`、`clamp` +## 0.0.7(2023-06-08) +- chore: 更新注释 +## 0.0.6(2023-06-08) +- chore: 增加`createImage`为`lime-watermark`和`lime-qrcode`提供依赖 +## 0.0.5(2023-06-03) +- chore: 更新注释 +## 0.0.4(2023-05-22) +- feat: 增加`range`,`exif`,`selectComponent` +## 0.0.3(2023-05-08) +- feat: 增加`fillZero`,`debounce`,`throttle`,`random` +## 0.0.2(2023-05-05) +- chore: 更新文档 +## 0.0.1(2023-05-05) +- 无 diff --git a/uni_modules/lime-shared/clamp/index.ts b/uni_modules/lime-shared/clamp/index.ts new file mode 100644 index 0000000..0e16358 --- /dev/null +++ b/uni_modules/lime-shared/clamp/index.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +/** + * 将一个值限制在指定的范围内 + * @param val 要限制的值 + * @param min 最小值 + * @param max 最大值 + * @returns 限制后的值 + */ +export function clamp(val: number, min: number, max: number): number { + return Math.max(min, Math.min(max, val)); +} + + +// console.log(clamp(5 ,0, 10)); // 输出: 5(在范围内,不做更改) +// console.log(clamp(-5 ,0, 10)); // 输出: 0(小于最小值,被限制为最小值) +// console.log(clamp(15 ,0, 10)); // 输出: 10(大于最大值,被限制为最大值) \ No newline at end of file diff --git a/uni_modules/lime-shared/cloneDeep/index.ts b/uni_modules/lime-shared/cloneDeep/index.ts new file mode 100644 index 0000000..03f85cd --- /dev/null +++ b/uni_modules/lime-shared/cloneDeep/index.ts @@ -0,0 +1,10 @@ +// @ts-nocheck + +// #ifdef APP-IOS || APP-ANDROID +export * from './uvue.ts' +// #endif + + +// #ifndef APP-IOS || APP-ANDROID +export * from './vue.ts' +// #endif \ No newline at end of file diff --git a/uni_modules/lime-shared/cloneDeep/uvue.ts b/uni_modules/lime-shared/cloneDeep/uvue.ts new file mode 100644 index 0000000..7929bc2 --- /dev/null +++ b/uni_modules/lime-shared/cloneDeep/uvue.ts @@ -0,0 +1,17 @@ +// @ts-nocheck +/** + * 深度克隆一个对象或数组 + * @param obj 要克隆的对象或数组 + * @returns 克隆后的对象或数组 + */ +export function cloneDeep(obj: any): T { + // 如果传入的对象是基本数据类型(如字符串、数字等),则直接返回 + // if(['number', 'string'].includes(typeof obj) || Array.isArray(obj)){ + // return obj as T + // } + if(typeof obj == 'object'){ + return JSON.parse(JSON.stringify(obj as T)) as T; + } + return obj as T +} + diff --git a/uni_modules/lime-shared/cloneDeep/vue.ts b/uni_modules/lime-shared/cloneDeep/vue.ts new file mode 100644 index 0000000..ded334d --- /dev/null +++ b/uni_modules/lime-shared/cloneDeep/vue.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +/** + * 深度克隆一个对象或数组 + * @param obj 要克隆的对象或数组 + * @returns 克隆后的对象或数组 + */ +export function cloneDeep(obj: any): T { + // 如果传入的对象为空,返回空 + if (obj === null) { + return null as unknown as T; + } + + // 如果传入的对象是 Set 类型,则将其转换为数组,并通过新的 Set 构造函数创建一个新的 Set 对象 + if (obj instanceof Set) { + return new Set([...obj]) as unknown as T; + } + + // 如果传入的对象是 Map 类型,则将其转换为数组,并通过新的 Map 构造函数创建一个新的 Map 对象 + if (obj instanceof Map) { + return new Map([...obj]) as unknown as T; + } + + // 如果传入的对象是 WeakMap 类型,则直接用传入的 WeakMap 对象进行赋值 + if (obj instanceof WeakMap) { + let weakMap = new WeakMap(); + weakMap = obj; + return weakMap as unknown as T; + } + + // 如果传入的对象是 WeakSet 类型,则直接用传入的 WeakSet 对象进行赋值 + if (obj instanceof WeakSet) { + let weakSet = new WeakSet(); + weakSet = obj; + return weakSet as unknown as T; + } + + // 如果传入的对象是 RegExp 类型,则通过新的 RegExp 构造函数创建一个新的 RegExp 对象 + if (obj instanceof RegExp) { + return new RegExp(obj) as unknown as T; + } + + // 如果传入的对象是 undefined 类型,则返回 undefined + if (typeof obj === 'undefined') { + return undefined as unknown as T; + } + + // 如果传入的对象是数组,则递归调用 cloneDeep 函数对数组中的每个元素进行克隆 + if (Array.isArray(obj)) { + return obj.map(cloneDeep) as unknown as T; + } + + // 如果传入的对象是 Date 类型,则通过新的 Date 构造函数创建一个新的 Date 对象 + if (obj instanceof Date) { + return new Date(obj.getTime()) as unknown as T; + } + + // 如果传入的对象是普通对象,则使用递归调用 cloneDeep 函数对对象的每个属性进行克隆 + if (typeof obj === 'object') { + const newObj: any = {}; + for (const [key, value] of Object.entries(obj)) { + newObj[key] = cloneDeep(value); + } + const symbolKeys = Object.getOwnPropertySymbols(obj); + for (const key of symbolKeys) { + newObj[key] = cloneDeep(obj[key]); + } + return newObj; + } + + // 如果传入的对象是基本数据类型(如字符串、数字等),则直接返回 + return obj; +} + +// 示例使用 + +// // 克隆一个对象 +// const obj = { name: 'John', age: 30 }; +// const clonedObj = cloneDeep(obj); + +// console.log(clonedObj); // 输出: { name: 'John', age: 30 } +// console.log(clonedObj === obj); // 输出: false (副本与原对象是独立的) + +// // 克隆一个数组 +// const arr = [1, 2, 3]; +// const clonedArr = cloneDeep(arr); + +// console.log(clonedArr); // 输出: [1, 2, 3] +// console.log(clonedArr === arr); // 输出: false (副本与原数组是独立的) + +// // 克隆一个包含嵌套对象的对象 +// const person = { +// name: 'Alice', +// age: 25, +// address: { +// city: 'New York', +// country: 'USA', +// }, +// }; +// const clonedPerson = cloneDeep(person); + +// console.log(clonedPerson); // 输出: { name: 'Alice', age: 25, address: { city: 'New York', country: 'USA' } } +// console.log(clonedPerson === person); // 输出: false (副本与原对象是独立的) +// console.log(clonedPerson.address === person.address); // 输出: false (嵌套对象的副本也是独立的) \ No newline at end of file diff --git a/uni_modules/lime-shared/closest/index.ts b/uni_modules/lime-shared/closest/index.ts new file mode 100644 index 0000000..e6e79c2 --- /dev/null +++ b/uni_modules/lime-shared/closest/index.ts @@ -0,0 +1,22 @@ +// @ts-nocheck + +/** + * 在给定数组中找到最接近目标数字的元素。 + * @param arr 要搜索的数字数组。 + * @param target 目标数字。 + * @returns 最接近目标数字的数组元素。 + */ +export function closest(arr: number[], target: number):number { + return arr.reduce((pre: number, cur: number):number => + Math.abs(pre - target) < Math.abs(cur - target) ? pre : cur + ); +} + +// 示例 +// // 定义一个数字数组 +// const numbers = [1, 3, 5, 7, 9]; + +// // 在数组中找到最接近目标数字 6 的元素 +// const closestNumber = closest(numbers, 6); + +// console.log(closestNumber); // 输出结果: 5 \ No newline at end of file diff --git a/uni_modules/lime-shared/components/lime-shared/lime-shared.vue b/uni_modules/lime-shared/components/lime-shared/lime-shared.vue new file mode 100644 index 0000000..284e8f0 --- /dev/null +++ b/uni_modules/lime-shared/components/lime-shared/lime-shared.vue @@ -0,0 +1,139 @@ + + + + + \ No newline at end of file diff --git a/uni_modules/lime-shared/createAnimation/index.ts b/uni_modules/lime-shared/createAnimation/index.ts new file mode 100644 index 0000000..999ec1c --- /dev/null +++ b/uni_modules/lime-shared/createAnimation/index.ts @@ -0,0 +1,9 @@ +// @ts-nocheck +// #ifndef UNI-APP-X +export * from './type.ts' +export * from './vue.ts' +// #endif + +// #ifdef UNI-APP-X +export * from './uvue.ts' +// #endif \ No newline at end of file diff --git a/uni_modules/lime-shared/createAnimation/type.ts b/uni_modules/lime-shared/createAnimation/type.ts new file mode 100644 index 0000000..0f8ad34 --- /dev/null +++ b/uni_modules/lime-shared/createAnimation/type.ts @@ -0,0 +1,25 @@ +export type CreateAnimationOptions = { + /** + * 动画持续时间,单位ms + */ + duration ?: number; + /** + * 定义动画的效果 + * - linear: 动画从头到尾的速度是相同的 + * - ease: 动画以低速开始,然后加快,在结束前变慢 + * - ease-in: 动画以低速开始 + * - ease-in-out: 动画以低速开始和结束 + * - ease-out: 动画以低速结束 + * - step-start: 动画第一帧就跳至结束状态直到结束 + * - step-end: 动画一直保持开始状态,最后一帧跳到结束状态 + */ + timingFunction ?: string //'linear' | 'ease' | 'ease-in' | 'ease-in-out' | 'ease-out' | 'step-start' | 'step-end'; + /** + * 动画延迟时间,单位 ms + */ + delay ?: number; + /** + * 设置transform-origin + */ + transformOrigin ?: string; +} \ No newline at end of file diff --git a/uni_modules/lime-shared/createAnimation/uvue.ts b/uni_modules/lime-shared/createAnimation/uvue.ts new file mode 100644 index 0000000..96d8263 --- /dev/null +++ b/uni_modules/lime-shared/createAnimation/uvue.ts @@ -0,0 +1,5 @@ +// @ts-nocheck +// export * from '@/uni_modules/lime-animateIt' +export function createAnimation() { + console.error('当前环境不支持,请使用:lime-animateIt') +} \ No newline at end of file diff --git a/uni_modules/lime-shared/createAnimation/vue.ts b/uni_modules/lime-shared/createAnimation/vue.ts new file mode 100644 index 0000000..d6223d8 --- /dev/null +++ b/uni_modules/lime-shared/createAnimation/vue.ts @@ -0,0 +1,148 @@ +// @ts-nocheck +// nvue 需要在节点上设置ref或在export里传入 +// const animation = createAnimation({ +// ref: this.$refs['xxx'], +// duration: 0, +// timingFunction: 'linear' +// }) +// animation.opacity(1).translate(x, y).step({duration}) +// animation.export(ref) + +// 抹平nvue 与 uni.createAnimation的使用差距 +// 但是nvue动画太慢 + + + +import { CreateAnimationOptions } from './type' +// #ifdef APP-NVUE +const nvueAnimation = uni.requireNativePlugin('animation') + +type AnimationTypes = 'matrix' | 'matrix3d' | 'rotate' | 'rotate3d' | 'rotateX' | 'rotateY' | 'rotateZ' | 'scale' | 'scale3d' | 'scaleX' | 'scaleY' | 'scaleZ' | 'skew' | 'skewX' | 'skewY' | 'translate' | 'translate3d' | 'translateX' | 'translateY' | 'translateZ' + | 'opacity' | 'backgroundColor' | 'width' | 'height' | 'left' | 'right' | 'top' | 'bottom' + +interface Styles { + [key : string] : any +} + +interface StepConfig { + duration?: number + timingFunction?: string + delay?: number + needLayout?: boolean + transformOrigin?: string +} +interface StepAnimate { + styles?: Styles + config?: StepConfig +} +interface StepAnimates { + [key: number]: StepAnimate +} +// export interface CreateAnimationOptions extends UniApp.CreateAnimationOptions { +// ref?: string +// } + +type Callback = (time: number) => void +const animateTypes1 : AnimationTypes[] = ['matrix', 'matrix3d', 'rotate', 'rotate3d', 'rotateX', 'rotateY', 'rotateZ', 'scale', 'scale3d', + 'scaleX', 'scaleY', 'scaleZ', 'skew', 'skewX', 'skewY', 'translate', 'translate3d', 'translateX', 'translateY', + 'translateZ' +] +const animateTypes2 : AnimationTypes[] = ['opacity', 'backgroundColor'] +const animateTypes3 : AnimationTypes[] = ['width', 'height', 'left', 'right', 'top', 'bottom'] + +class LimeAnimation { + ref : any + context : any + options : UniApp.CreateAnimationOptions + // stack : any[] = [] + next : number = 0 + currentStepAnimates : StepAnimates = {} + duration : number = 0 + constructor(options : CreateAnimationOptions) { + const {ref} = options + this.ref = ref + this.options = options + } + addAnimate(type : AnimationTypes, args: (string | number)[]) { + let aniObj = this.currentStepAnimates[this.next] + let stepAnimate:StepAnimate = {} + if (!aniObj) { + stepAnimate = {styles: {}, config: {}} + } else { + stepAnimate = aniObj + } + + if (animateTypes1.includes(type)) { + if (!stepAnimate.styles.transform) { + stepAnimate.styles.transform = '' + } + let unit = '' + if (type === 'rotate') { + unit = 'deg' + } + stepAnimate.styles.transform += `${type}(${args.map((v: number) => v + unit).join(',')}) ` + } else { + stepAnimate.styles[type] = `${args.join(',')}` + } + this.currentStepAnimates[this.next] = stepAnimate + } + animateRun(styles: Styles = {}, config:StepConfig = {}, ref: any) { + const el = ref || this.ref + if (!el) return + return new Promise((resolve) => { + const time = +new Date() + nvueAnimation.transition(el, { + styles, + ...config + }, () => { + resolve(+new Date() - time) + }) + }) + } + nextAnimate(animates: StepAnimates, step: number = 0, ref: any, cb: Callback) { + let obj = animates[step] + if (obj) { + let { styles, config } = obj + // this.duration += config.duration + this.animateRun(styles, config, ref).then((time: number) => { + step += 1 + this.duration += time + this.nextAnimate(animates, step, ref, cb) + }) + } else { + this.currentStepAnimates = {} + cb && cb(this.duration) + } + } + step(config:StepConfig = {}) { + this.currentStepAnimates[this.next].config = Object.assign({}, this.options, config) + this.currentStepAnimates[this.next].styles.transformOrigin = this.currentStepAnimates[this.next].config.transformOrigin + this.next++ + return this + } + export(ref: any, cb?: Callback) { + ref = ref || this.ref + if(!ref) return + this.duration = 0 + this.next = 0 + this.nextAnimate(this.currentStepAnimates, 0, ref, cb) + return null + } +} + + +animateTypes1.concat(animateTypes2, animateTypes3).forEach(type => { + LimeAnimation.prototype[type] = function(...args: (string | number)[]) { + this.addAnimate(type, args) + return this + } +}) +// #endif +export function createAnimation(options : CreateAnimationOptions) { + // #ifndef APP-NVUE + return uni.createAnimation({ ...options }) + // #endif + // #ifdef APP-NVUE + return new LimeAnimation(options) + // #endif +} diff --git a/uni_modules/lime-shared/createImage/index.ts b/uni_modules/lime-shared/createImage/index.ts new file mode 100644 index 0000000..0cf7dc0 --- /dev/null +++ b/uni_modules/lime-shared/createImage/index.ts @@ -0,0 +1,70 @@ +// @ts-nocheck +// #ifndef APP-IOS || APP-ANDROID +import {isBrowser} from '../isBrowser' +class Image { + currentSrc: string | null = null + naturalHeight: number = 0 + naturalWidth: number = 0 + width: number = 0 + height: number = 0 + tagName: string = 'IMG' + path: string = '' + crossOrigin: string = '' + referrerPolicy: string = '' + onload: () => void = () => {} + onerror: () => void = () => {} + complete: boolean = false + constructor() {} + set src(src: string) { + console.log('src', src) + if(!src) { + return this.onerror() + } + src = src.replace(/^@\//,'/') + this.currentSrc = src + uni.getImageInfo({ + src, + success: (res) => { + const localReg = /^\.|^\/(?=[^\/])/; + // #ifdef MP-WEIXIN || MP-BAIDU || MP-QQ || MP-TOUTIAO + res.path = localReg.test(src) ? `/${res.path}` : res.path; + // #endif + this.complete = true + this.path = res.path + this.naturalWidth = this.width = res.width + this.naturalHeight = this.height = res.height + this.onload() + }, + fail: () => { + this.onerror() + } + }) + } + get src() { + return this.currentSrc + } +} +interface UniImage extends WechatMiniprogram.Image { + complete?: boolean + naturalHeight?: number + naturalWidth?: number +} +/** 创建用于 canvas 的 img */ +export function createImage(canvas?: any): HTMLImageElement | UniImage { + if(canvas && canvas.createImage) { + return (canvas as WechatMiniprogram.Canvas).createImage() + } else if(this && this['tagName'] == 'canvas' && !('toBlob' in this) || canvas && !('toBlob' in canvas)){ + return new Image() + } else if(isBrowser) { + return new window.Image() + } + return new Image() +} +// #endif + + +// #ifdef APP-IOS || APP-ANDROID +export function createImage(){ + console.error('当前环境不支持') +} +// #endif diff --git a/uni_modules/lime-shared/debounce/index.ts b/uni_modules/lime-shared/debounce/index.ts new file mode 100644 index 0000000..d51b8d0 --- /dev/null +++ b/uni_modules/lime-shared/debounce/index.ts @@ -0,0 +1,10 @@ +// @ts-nocheck + +// #ifdef APP-IOS || APP-ANDROID +export * from './uvue.ts' + +// #endif + +// #ifndef APP-IOS || APP-ANDROID +export * from './vue.ts' +// #endif \ No newline at end of file diff --git a/uni_modules/lime-shared/debounce/uvue.ts b/uni_modules/lime-shared/debounce/uvue.ts new file mode 100644 index 0000000..f1fc29d --- /dev/null +++ b/uni_modules/lime-shared/debounce/uvue.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +/** + * 防抖函数,通过延迟一定时间来限制函数的执行频率。 + * @param fn 要防抖的函数。 + * @param wait 触发防抖的等待时间,单位为毫秒。 + * @returns 防抖函数。 + */ +export function debounce(fn : (args: A)=> void, wait = 300): (args: A)=> void { + let timer = -1 + + return (args: A) => { + if (timer >-1) {clearTimeout(timer)}; + + timer = setTimeout(()=>{ + fn(args) + }, wait) + } +}; + + + +// 示例 +// 定义一个函数 +// function saveData(data: string) { +// // 模拟保存数据的操作 +// console.log(`Saving data: ${data}`); +// } + +// // 创建一个防抖函数,延迟 500 毫秒后调用 saveData 函数 +// const debouncedSaveData = debounce(saveData, 500); + +// // 连续调用防抖函数 +// debouncedSaveData('Data 1'); // 不会立即调用 saveData 函数 +// debouncedSaveData('Data 2'); // 不会立即调用 saveData 函数 + +// 在 500 毫秒后,只会调用一次 saveData 函数,输出结果为 "Saving data: Data 2" \ No newline at end of file diff --git a/uni_modules/lime-shared/debounce/vue.ts b/uni_modules/lime-shared/debounce/vue.ts new file mode 100644 index 0000000..694b44d --- /dev/null +++ b/uni_modules/lime-shared/debounce/vue.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +type Timeout = ReturnType | null; +/** + * 防抖函数,通过延迟一定时间来限制函数的执行频率。 + * @param fn 要防抖的函数。 + * @param wait 触发防抖的等待时间,单位为毫秒。 + * @returns 防抖函数。 + */ +export function debounce( + fn : (...args : A) => R, + wait : number = 300) : (...args : A) => void { + let timer : Timeout = null; + + return function (...args : A) { + if (timer) clearTimeout(timer); // 如果上一个 setTimeout 存在,则清除它 + + // 设置一个新的 setTimeout,在指定的等待时间后调用防抖函数 + timer = setTimeout(() => { + fn.apply(this, args); // 使用提供的参数调用原始函数 + }, wait); + }; +}; + + + +// 示例 +// 定义一个函数 +// function saveData(data: string) { +// // 模拟保存数据的操作 +// console.log(`Saving data: ${data}`); +// } + +// // 创建一个防抖函数,延迟 500 毫秒后调用 saveData 函数 +// const debouncedSaveData = debounce(saveData, 500); + +// // 连续调用防抖函数 +// debouncedSaveData('Data 1'); // 不会立即调用 saveData 函数 +// debouncedSaveData('Data 2'); // 不会立即调用 saveData 函数 + +// 在 500 毫秒后,只会调用一次 saveData 函数,输出结果为 "Saving data: Data 2" \ No newline at end of file diff --git a/uni_modules/lime-shared/exif/index.ts b/uni_modules/lime-shared/exif/index.ts new file mode 100644 index 0000000..31d4658 --- /dev/null +++ b/uni_modules/lime-shared/exif/index.ts @@ -0,0 +1,9 @@ +// @ts-nocheck +// #ifndef APP-IOS || APP-ANDROID +export * from './vue.ts' +// #endif + + +// #ifdef APP-IOS || APP-ANDROID +export * from './uvue.ts' +// #endif diff --git a/uni_modules/lime-shared/exif/uvue.ts b/uni_modules/lime-shared/exif/uvue.ts new file mode 100644 index 0000000..01d21a2 --- /dev/null +++ b/uni_modules/lime-shared/exif/uvue.ts @@ -0,0 +1,7 @@ +class EXIF { + constructor(){ + console.error('当前环境不支持') + } +} + +export const exif = new EXIF() \ No newline at end of file diff --git a/uni_modules/lime-shared/exif/vue.ts b/uni_modules/lime-shared/exif/vue.ts new file mode 100644 index 0000000..86f2454 --- /dev/null +++ b/uni_modules/lime-shared/exif/vue.ts @@ -0,0 +1,1057 @@ +// @ts-nocheck +import { base64ToArrayBuffer } from '../base64ToArrayBuffer'; +import { pathToBase64 } from '../pathToBase64'; +// import { isBase64 } from '../isBase64'; +import { isBase64DataUri } from '../isBase64'; +import { isString } from '../isString'; + +interface File { + exifdata : any + iptcdata : any + xmpdata : any + src : string +} +class EXIF { + isXmpEnabled = false + debug = false + Tags = { + // version tags + 0x9000: "ExifVersion", // EXIF version + 0xA000: "FlashpixVersion", // Flashpix format version + + // colorspace tags + 0xA001: "ColorSpace", // Color space information tag + + // image configuration + 0xA002: "PixelXDimension", // Valid width of meaningful image + 0xA003: "PixelYDimension", // Valid height of meaningful image + 0x9101: "ComponentsConfiguration", // Information about channels + 0x9102: "CompressedBitsPerPixel", // Compressed bits per pixel + + // user information + 0x927C: "MakerNote", // Any desired information written by the manufacturer + 0x9286: "UserComment", // Comments by user + + // related file + 0xA004: "RelatedSoundFile", // Name of related sound file + + // date and time + 0x9003: "DateTimeOriginal", // Date and time when the original image was generated + 0x9004: "DateTimeDigitized", // Date and time when the image was stored digitally + 0x9290: "SubsecTime", // Fractions of seconds for DateTime + 0x9291: "SubsecTimeOriginal", // Fractions of seconds for DateTimeOriginal + 0x9292: "SubsecTimeDigitized", // Fractions of seconds for DateTimeDigitized + + // picture-taking conditions + 0x829A: "ExposureTime", // Exposure time (in seconds) + 0x829D: "FNumber", // F number + 0x8822: "ExposureProgram", // Exposure program + 0x8824: "SpectralSensitivity", // Spectral sensitivity + 0x8827: "ISOSpeedRatings", // ISO speed rating + 0x8828: "OECF", // Optoelectric conversion factor + 0x9201: "ShutterSpeedValue", // Shutter speed + 0x9202: "ApertureValue", // Lens aperture + 0x9203: "BrightnessValue", // Value of brightness + 0x9204: "ExposureBias", // Exposure bias + 0x9205: "MaxApertureValue", // Smallest F number of lens + 0x9206: "SubjectDistance", // Distance to subject in meters + 0x9207: "MeteringMode", // Metering mode + 0x9208: "LightSource", // Kind of light source + 0x9209: "Flash", // Flash status + 0x9214: "SubjectArea", // Location and area of main subject + 0x920A: "FocalLength", // Focal length of the lens in mm + 0xA20B: "FlashEnergy", // Strobe energy in BCPS + 0xA20C: "SpatialFrequencyResponse", // + 0xA20E: "FocalPlaneXResolution", // Number of pixels in width direction per FocalPlaneResolutionUnit + 0xA20F: "FocalPlaneYResolution", // Number of pixels in height direction per FocalPlaneResolutionUnit + 0xA210: "FocalPlaneResolutionUnit", // Unit for measuring FocalPlaneXResolution and FocalPlaneYResolution + 0xA214: "SubjectLocation", // Location of subject in image + 0xA215: "ExposureIndex", // Exposure index selected on camera + 0xA217: "SensingMethod", // Image sensor type + 0xA300: "FileSource", // Image source (3 == DSC) + 0xA301: "SceneType", // Scene type (1 == directly photographed) + 0xA302: "CFAPattern", // Color filter array geometric pattern + 0xA401: "CustomRendered", // Special processing + 0xA402: "ExposureMode", // Exposure mode + 0xA403: "WhiteBalance", // 1 = auto white balance, 2 = manual + 0xA404: "DigitalZoomRation", // Digital zoom ratio + 0xA405: "FocalLengthIn35mmFilm", // Equivalent foacl length assuming 35mm film camera (in mm) + 0xA406: "SceneCaptureType", // Type of scene + 0xA407: "GainControl", // Degree of overall image gain adjustment + 0xA408: "Contrast", // Direction of contrast processing applied by camera + 0xA409: "Saturation", // Direction of saturation processing applied by camera + 0xA40A: "Sharpness", // Direction of sharpness processing applied by camera + 0xA40B: "DeviceSettingDescription", // + 0xA40C: "SubjectDistanceRange", // Distance to subject + + // other tags + 0xA005: "InteroperabilityIFDPointer", + 0xA420: "ImageUniqueID" // Identifier assigned uniquely to each image + } + TiffTags = { + 0x0100: "ImageWidth", + 0x0101: "ImageHeight", + 0x8769: "ExifIFDPointer", + 0x8825: "GPSInfoIFDPointer", + 0xA005: "InteroperabilityIFDPointer", + 0x0102: "BitsPerSample", + 0x0103: "Compression", + 0x0106: "PhotometricInterpretation", + 0x0112: "Orientation", + 0x0115: "SamplesPerPixel", + 0x011C: "PlanarConfiguration", + 0x0212: "YCbCrSubSampling", + 0x0213: "YCbCrPositioning", + 0x011A: "XResolution", + 0x011B: "YResolution", + 0x0128: "ResolutionUnit", + 0x0111: "StripOffsets", + 0x0116: "RowsPerStrip", + 0x0117: "StripByteCounts", + 0x0201: "JPEGInterchangeFormat", + 0x0202: "JPEGInterchangeFormatLength", + 0x012D: "TransferFunction", + 0x013E: "WhitePoint", + 0x013F: "PrimaryChromaticities", + 0x0211: "YCbCrCoefficients", + 0x0214: "ReferenceBlackWhite", + 0x0132: "DateTime", + 0x010E: "ImageDescription", + 0x010F: "Make", + 0x0110: "Model", + 0x0131: "Software", + 0x013B: "Artist", + 0x8298: "Copyright" + } + GPSTags = { + 0x0000: "GPSVersionID", + 0x0001: "GPSLatitudeRef", + 0x0002: "GPSLatitude", + 0x0003: "GPSLongitudeRef", + 0x0004: "GPSLongitude", + 0x0005: "GPSAltitudeRef", + 0x0006: "GPSAltitude", + 0x0007: "GPSTimeStamp", + 0x0008: "GPSSatellites", + 0x0009: "GPSStatus", + 0x000A: "GPSMeasureMode", + 0x000B: "GPSDOP", + 0x000C: "GPSSpeedRef", + 0x000D: "GPSSpeed", + 0x000E: "GPSTrackRef", + 0x000F: "GPSTrack", + 0x0010: "GPSImgDirectionRef", + 0x0011: "GPSImgDirection", + 0x0012: "GPSMapDatum", + 0x0013: "GPSDestLatitudeRef", + 0x0014: "GPSDestLatitude", + 0x0015: "GPSDestLongitudeRef", + 0x0016: "GPSDestLongitude", + 0x0017: "GPSDestBearingRef", + 0x0018: "GPSDestBearing", + 0x0019: "GPSDestDistanceRef", + 0x001A: "GPSDestDistance", + 0x001B: "GPSProcessingMethod", + 0x001C: "GPSAreaInformation", + 0x001D: "GPSDateStamp", + 0x001E: "GPSDifferential" + } + // EXIF 2.3 Spec + IFD1Tags = { + 0x0100: "ImageWidth", + 0x0101: "ImageHeight", + 0x0102: "BitsPerSample", + 0x0103: "Compression", + 0x0106: "PhotometricInterpretation", + 0x0111: "StripOffsets", + 0x0112: "Orientation", + 0x0115: "SamplesPerPixel", + 0x0116: "RowsPerStrip", + 0x0117: "StripByteCounts", + 0x011A: "XResolution", + 0x011B: "YResolution", + 0x011C: "PlanarConfiguration", + 0x0128: "ResolutionUnit", + 0x0201: "JpegIFOffset", // When image format is JPEG, this value show offset to JPEG data stored.(aka "ThumbnailOffset" or "JPEGInterchangeFormat") + 0x0202: "JpegIFByteCount", // When image format is JPEG, this value shows data size of JPEG image (aka "ThumbnailLength" or "JPEGInterchangeFormatLength") + 0x0211: "YCbCrCoefficients", + 0x0212: "YCbCrSubSampling", + 0x0213: "YCbCrPositioning", + 0x0214: "ReferenceBlackWhite" + } + StringValues = { + ExposureProgram: { + 0: "Not defined", + 1: "Manual", + 2: "Normal program", + 3: "Aperture priority", + 4: "Shutter priority", + 5: "Creative program", + 6: "Action program", + 7: "Portrait mode", + 8: "Landscape mode" + }, + MeteringMode: { + 0: "Unknown", + 1: "Average", + 2: "CenterWeightedAverage", + 3: "Spot", + 4: "MultiSpot", + 5: "Pattern", + 6: "Partial", + 255: "Other" + }, + LightSource: { + 0: "Unknown", + 1: "Daylight", + 2: "Fluorescent", + 3: "Tungsten (incandescent light)", + 4: "Flash", + 9: "Fine weather", + 10: "Cloudy weather", + 11: "Shade", + 12: "Daylight fluorescent (D 5700 - 7100K)", + 13: "Day white fluorescent (N 4600 - 5400K)", + 14: "Cool white fluorescent (W 3900 - 4500K)", + 15: "White fluorescent (WW 3200 - 3700K)", + 17: "Standard light A", + 18: "Standard light B", + 19: "Standard light C", + 20: "D55", + 21: "D65", + 22: "D75", + 23: "D50", + 24: "ISO studio tungsten", + 255: "Other" + }, + Flash: { + 0x0000: "Flash did not fire", + 0x0001: "Flash fired", + 0x0005: "Strobe return light not detected", + 0x0007: "Strobe return light detected", + 0x0009: "Flash fired, compulsory flash mode", + 0x000D: "Flash fired, compulsory flash mode, return light not detected", + 0x000F: "Flash fired, compulsory flash mode, return light detected", + 0x0010: "Flash did not fire, compulsory flash mode", + 0x0018: "Flash did not fire, auto mode", + 0x0019: "Flash fired, auto mode", + 0x001D: "Flash fired, auto mode, return light not detected", + 0x001F: "Flash fired, auto mode, return light detected", + 0x0020: "No flash function", + 0x0041: "Flash fired, red-eye reduction mode", + 0x0045: "Flash fired, red-eye reduction mode, return light not detected", + 0x0047: "Flash fired, red-eye reduction mode, return light detected", + 0x0049: "Flash fired, compulsory flash mode, red-eye reduction mode", + 0x004D: "Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected", + 0x004F: "Flash fired, compulsory flash mode, red-eye reduction mode, return light detected", + 0x0059: "Flash fired, auto mode, red-eye reduction mode", + 0x005D: "Flash fired, auto mode, return light not detected, red-eye reduction mode", + 0x005F: "Flash fired, auto mode, return light detected, red-eye reduction mode" + }, + SensingMethod: { + 1: "Not defined", + 2: "One-chip color area sensor", + 3: "Two-chip color area sensor", + 4: "Three-chip color area sensor", + 5: "Color sequential area sensor", + 7: "Trilinear sensor", + 8: "Color sequential linear sensor" + }, + SceneCaptureType: { + 0: "Standard", + 1: "Landscape", + 2: "Portrait", + 3: "Night scene" + }, + SceneType: { + 1: "Directly photographed" + }, + CustomRendered: { + 0: "Normal process", + 1: "Custom process" + }, + WhiteBalance: { + 0: "Auto white balance", + 1: "Manual white balance" + }, + GainControl: { + 0: "None", + 1: "Low gain up", + 2: "High gain up", + 3: "Low gain down", + 4: "High gain down" + }, + Contrast: { + 0: "Normal", + 1: "Soft", + 2: "Hard" + }, + Saturation: { + 0: "Normal", + 1: "Low saturation", + 2: "High saturation" + }, + Sharpness: { + 0: "Normal", + 1: "Soft", + 2: "Hard" + }, + SubjectDistanceRange: { + 0: "Unknown", + 1: "Macro", + 2: "Close view", + 3: "Distant view" + }, + FileSource: { + 3: "DSC" + }, + + Components: { + 0: "", + 1: "Y", + 2: "Cb", + 3: "Cr", + 4: "R", + 5: "G", + 6: "B" + } + } + enableXmp() { + this.isXmpEnabled = true + } + disableXmp() { + this.isXmpEnabled = false; + } + /** + * 获取图片数据 + * @param img 图片地址 + * @param callback 回调 返回图片数据 + * */ + getData(img : any, callback : Function) { + // if (((self.Image && img instanceof self.Image) || (self.HTMLImageElement && img instanceof self.HTMLImageElement)) && !img.complete) + // return false; + let file : File = { + src: '', + exifdata: null, + iptcdata: null, + xmpdata: null, + } + if (isBase64(img)) { + file.src = img + } else if (img.path) { + file.src = img.path + } else if (isString(img)) { + file.src = img + } else { + return false; + } + + + if (!imageHasData(file)) { + getImageData(file, callback); + } else { + if (callback) { + callback.call(file); + } + } + return true; + } + /** + * 获取图片tag + * @param img 图片数据 + * @param tag tag 类型 + * */ + getTag(img : File, tag : string) { + if (!imageHasData(img)) return; + return img.exifdata[tag]; + } + getIptcTag(img : File, tag : string) { + if (!imageHasData(img)) return; + return img.iptcdata[tag]; + } + getAllTags(img : File) { + if (!imageHasData(img)) return {}; + let a, + data = img.exifdata, + tags = {}; + for (a in data) { + if (data.hasOwnProperty(a)) { + tags[a] = data[a]; + } + } + return tags; + } + getAllIptcTags(img : File) { + if (!imageHasData(img)) return {}; + let a, + data = img.iptcdata, + tags = {}; + for (a in data) { + if (data.hasOwnProperty(a)) { + tags[a] = data[a]; + } + } + return tags; + } + pretty(img : File) { + if (!imageHasData(img)) return ""; + let a, + data = img.exifdata, + strPretty = ""; + for (a in data) { + if (data.hasOwnProperty(a)) { + if (typeof data[a] == "object") { + if (data[a] instanceof Number) { + strPretty += a + " : " + data[a] + " [" + data[a].numerator + "/" + data[a] + .denominator + "]\r\n"; + } else { + strPretty += a + " : [" + data[a].length + " values]\r\n"; + } + } else { + strPretty += a + " : " + data[a] + "\r\n"; + } + } + } + return strPretty; + } + readFromBinaryFile(file: ArrayBuffer) { + return findEXIFinJPEG(file); + } +} + +export const exif = new EXIF() +// export function getData(img, callback) { +// const exif = new EXIF() +// exif.getData(img, callback) +// } + +// export default {getData} +const ExifTags = exif.Tags +const TiffTags = exif.TiffTags +const IFD1Tags = exif.IFD1Tags +const GPSTags = exif.GPSTags +const StringValues = exif.StringValues + + +function imageHasData(img : File) : boolean { + return !!(img.exifdata); +} + +function objectURLToBlob(url : string, callback : Function) { + try { + const http = new XMLHttpRequest(); + http.open("GET", url, true); + http.responseType = "blob"; + http.onload = function (e) { + if (this.status == 200 || this.status === 0) { + callback(this.response); + } + }; + http.send(); + } catch (e) { + console.warn(e) + } +} + + +function getImageData(img : File, callback : Function) { + function handleBinaryFile(binFile: ArrayBuffer) { + const data = findEXIFinJPEG(binFile); + img.exifdata = data ?? {}; + const iptcdata = findIPTCinJPEG(binFile); + img.iptcdata = iptcdata ?? {}; + if (exif.isXmpEnabled) { + const xmpdata = findXMPinJPEG(binFile); + img.xmpdata = xmpdata ?? {}; + } + if (callback) { + callback.call(img); + } + } + + if (img.src) { + if (/^data\:/i.test(img.src)) { // Data URI + // var arrayBuffer = base64ToArrayBuffer(img.src); + handleBinaryFile(base64ToArrayBuffer(img.src)); + + } else if (/^blob\:/i.test(img.src) && typeof FileReader !== 'undefined') { // Object URL + var fileReader = new FileReader(); + fileReader.onload = function (e) { + handleBinaryFile(e.target.result); + }; + objectURLToBlob(img.src, function (blob : Blob) { + fileReader.readAsArrayBuffer(blob); + }); + } else if (typeof XMLHttpRequest !== 'undefined') { + var http = new XMLHttpRequest(); + http.onload = function () { + if (this.status == 200 || this.status === 0) { + handleBinaryFile(http.response); + } else { + throw "Could not load image"; + } + http = null; + }; + http.open("GET", img.src, true); + http.responseType = "arraybuffer"; + http.send(null); + } else { + pathToBase64(img.src).then(res => { + handleBinaryFile(base64ToArrayBuffer(res)); + }) + } + } else if (typeof FileReader !== 'undefined' && self.FileReader && (img instanceof self.Blob || img instanceof self.File)) { + var fileReader = new FileReader(); + fileReader.onload = function (e : any) { + if (exif.debug) console.log("Got file of length " + e.target.result.byteLength); + handleBinaryFile(e.target.result); + }; + + fileReader.readAsArrayBuffer(img); + } +} + +function findEXIFinJPEG(file: ArrayBuffer) { + const dataView = new DataView(file); + + if (exif.debug) console.log("Got file of length " + file.byteLength); + if ((dataView.getUint8(0) != 0xFF) || (dataView.getUint8(1) != 0xD8)) { + if (exif.debug) console.log("Not a valid JPEG"); + return false; // not a valid jpeg + } + + let offset = 2, + length = file.byteLength, + marker; + + while (offset < length) { + if (dataView.getUint8(offset) != 0xFF) { + if (exif.debug) console.log("Not a valid marker at offset " + offset + ", found: " + dataView.getUint8( + offset)); + return false; // not a valid marker, something is wrong + } + + marker = dataView.getUint8(offset + 1); + if (exif.debug) console.log(marker); + + // we could implement handling for other markers here, + // but we're only looking for 0xFFE1 for EXIF data + + if (marker == 225) { + if (exif.debug) console.log("Found 0xFFE1 marker"); + + return readEXIFData(dataView, offset + 4, dataView.getUint16(offset + 2) - 2); + + // offset += 2 + file.getShortAt(offset+2, true); + + } else { + offset += 2 + dataView.getUint16(offset + 2); + } + + } + +} + +function findIPTCinJPEG(file: ArrayBuffer) { + const dataView = new DataView(file); + + if (exif.debug) console.log("Got file of length " + file.byteLength); + if ((dataView.getUint8(0) != 0xFF) || (dataView.getUint8(1) != 0xD8)) { + if (exif.debug) console.log("Not a valid JPEG"); + return false; // not a valid jpeg + } + + let offset = 2, + length = file.byteLength; + + + const isFieldSegmentStart = function (dataView, offset: number) { + return ( + dataView.getUint8(offset) === 0x38 && + dataView.getUint8(offset + 1) === 0x42 && + dataView.getUint8(offset + 2) === 0x49 && + dataView.getUint8(offset + 3) === 0x4D && + dataView.getUint8(offset + 4) === 0x04 && + dataView.getUint8(offset + 5) === 0x04 + ); + }; + + while (offset < length) { + + if (isFieldSegmentStart(dataView, offset)) { + + // Get the length of the name header (which is padded to an even number of bytes) + var nameHeaderLength = dataView.getUint8(offset + 7); + if (nameHeaderLength % 2 !== 0) nameHeaderLength += 1; + // Check for pre photoshop 6 format + if (nameHeaderLength === 0) { + // Always 4 + nameHeaderLength = 4; + } + + var startOffset = offset + 8 + nameHeaderLength; + var sectionLength = dataView.getUint16(offset + 6 + nameHeaderLength); + + return readIPTCData(file, startOffset, sectionLength); + + break; + + } + + + // Not the marker, continue searching + offset++; + + } + +} + +const IptcFieldMap = { + 0x78: 'caption', + 0x6E: 'credit', + 0x19: 'keywords', + 0x37: 'dateCreated', + 0x50: 'byline', + 0x55: 'bylineTitle', + 0x7A: 'captionWriter', + 0x69: 'headline', + 0x74: 'copyright', + 0x0F: 'category' +}; + +function readIPTCData(file: ArrayBuffer, startOffset: number, sectionLength: number) { + const dataView = new DataView(file); + let data = {}; + let fieldValue, fieldName, dataSize, segmentType, segmentSize; + let segmentStartPos = startOffset; + while (segmentStartPos < startOffset + sectionLength) { + if (dataView.getUint8(segmentStartPos) === 0x1C && dataView.getUint8(segmentStartPos + 1) === 0x02) { + segmentType = dataView.getUint8(segmentStartPos + 2); + if (segmentType in IptcFieldMap) { + dataSize = dataView.getInt16(segmentStartPos + 3); + segmentSize = dataSize + 5; + fieldName = IptcFieldMap[segmentType]; + fieldValue = getStringFromDB(dataView, segmentStartPos + 5, dataSize); + // Check if we already stored a value with this name + if (data.hasOwnProperty(fieldName)) { + // Value already stored with this name, create multivalue field + if (data[fieldName] instanceof Array) { + data[fieldName].push(fieldValue); + } else { + data[fieldName] = [data[fieldName], fieldValue]; + } + } else { + data[fieldName] = fieldValue; + } + } + + } + segmentStartPos++; + } + return data; +} + +function readTags(file: DataView, tiffStart: number, dirStart: number, strings: any[], bigEnd: number) { + let entries = file.getUint16(dirStart, !bigEnd), + tags = {}, + entryOffset, tag; + + for (let i = 0; i < entries; i++) { + entryOffset = dirStart + i * 12 + 2; + tag = strings[file.getUint16(entryOffset, !bigEnd)]; + if (!tag && exif.debug) console.log("Unknown tag: " + file.getUint16(entryOffset, !bigEnd)); + tags[tag] = readTagValue(file, entryOffset, tiffStart, dirStart, bigEnd); + } + return tags; +} + +function readTagValue(file: DataView, entryOffset: number, tiffStart: number, dirStart: number, bigEnd: number) { + let type = file.getUint16(entryOffset + 2, !bigEnd), + numValues = file.getUint32(entryOffset + 4, !bigEnd), + valueOffset = file.getUint32(entryOffset + 8, !bigEnd) + tiffStart, + offset, + vals, val, n, + numerator, denominator; + + switch (type) { + case 1: // byte, 8-bit unsigned int + case 7: // undefined, 8-bit byte, value depending on field + if (numValues == 1) { + return file.getUint8(entryOffset + 8, !bigEnd); + } else { + offset = numValues > 4 ? valueOffset : (entryOffset + 8); + vals = []; + for (n = 0; n < numValues; n++) { + vals[n] = file.getUint8(offset + n); + } + return vals; + } + + case 2: // ascii, 8-bit byte + offset = numValues > 4 ? valueOffset : (entryOffset + 8); + return getStringFromDB(file, offset, numValues - 1); + + case 3: // short, 16 bit int + if (numValues == 1) { + return file.getUint16(entryOffset + 8, !bigEnd); + } else { + offset = numValues > 2 ? valueOffset : (entryOffset + 8); + vals = []; + for (n = 0; n < numValues; n++) { + vals[n] = file.getUint16(offset + 2 * n, !bigEnd); + } + return vals; + } + + case 4: // long, 32 bit int + if (numValues == 1) { + return file.getUint32(entryOffset + 8, !bigEnd); + } else { + vals = []; + for (n = 0; n < numValues; n++) { + vals[n] = file.getUint32(valueOffset + 4 * n, !bigEnd); + } + return vals; + } + + case 5: // rational = two long values, first is numerator, second is denominator + if (numValues == 1) { + numerator = file.getUint32(valueOffset, !bigEnd); + denominator = file.getUint32(valueOffset + 4, !bigEnd); + val = new Number(numerator / denominator); + val.numerator = numerator; + val.denominator = denominator; + return val; + } else { + vals = []; + for (n = 0; n < numValues; n++) { + numerator = file.getUint32(valueOffset + 8 * n, !bigEnd); + denominator = file.getUint32(valueOffset + 4 + 8 * n, !bigEnd); + vals[n] = new Number(numerator / denominator); + vals[n].numerator = numerator; + vals[n].denominator = denominator; + } + return vals; + } + + case 9: // slong, 32 bit signed int + if (numValues == 1) { + return file.getInt32(entryOffset + 8, !bigEnd); + } else { + vals = []; + for (n = 0; n < numValues; n++) { + vals[n] = file.getInt32(valueOffset + 4 * n, !bigEnd); + } + return vals; + } + + case 10: // signed rational, two slongs, first is numerator, second is denominator + if (numValues == 1) { + return file.getInt32(valueOffset, !bigEnd) / file.getInt32(valueOffset + 4, !bigEnd); + } else { + vals = []; + for (n = 0; n < numValues; n++) { + vals[n] = file.getInt32(valueOffset + 8 * n, !bigEnd) / file.getInt32(valueOffset + 4 + 8 * + n, !bigEnd); + } + return vals; + } + } +} +/** + * Given an IFD (Image File Directory) start offset + * returns an offset to next IFD or 0 if it's the last IFD. + */ +function getNextIFDOffset(dataView: DataView, dirStart: number, bigEnd: number) { + //the first 2bytes means the number of directory entries contains in this IFD + var entries = dataView.getUint16(dirStart, !bigEnd); + + // After last directory entry, there is a 4bytes of data, + // it means an offset to next IFD. + // If its value is '0x00000000', it means this is the last IFD and there is no linked IFD. + + return dataView.getUint32(dirStart + 2 + entries * 12, !bigEnd); // each entry is 12 bytes long +} + +function readThumbnailImage(dataView: DataView, tiffStart: number, firstIFDOffset: number, bigEnd: number) { + // get the IFD1 offset + const IFD1OffsetPointer = getNextIFDOffset(dataView, tiffStart + firstIFDOffset, bigEnd); + + if (!IFD1OffsetPointer) { + // console.log('******** IFD1Offset is empty, image thumb not found ********'); + return {}; + } else if (IFD1OffsetPointer > dataView.byteLength) { // this should not happen + // console.log('******** IFD1Offset is outside the bounds of the DataView ********'); + return {}; + } + // console.log('******* thumbnail IFD offset (IFD1) is: %s', IFD1OffsetPointer); + + let thumbTags : any = readTags(dataView, tiffStart, tiffStart + IFD1OffsetPointer, IFD1Tags, bigEnd) + + // EXIF 2.3 specification for JPEG format thumbnail + + // If the value of Compression(0x0103) Tag in IFD1 is '6', thumbnail image format is JPEG. + // Most of Exif image uses JPEG format for thumbnail. In that case, you can get offset of thumbnail + // by JpegIFOffset(0x0201) Tag in IFD1, size of thumbnail by JpegIFByteCount(0x0202) Tag. + // Data format is ordinary JPEG format, starts from 0xFFD8 and ends by 0xFFD9. It seems that + // JPEG format and 160x120pixels of size are recommended thumbnail format for Exif2.1 or later. + + if (thumbTags['Compression'] && typeof Blob !== 'undefined') { + // console.log('Thumbnail image found!'); + + switch (thumbTags['Compression']) { + case 6: + // console.log('Thumbnail image format is JPEG'); + if (thumbTags.JpegIFOffset && thumbTags.JpegIFByteCount) { + // extract the thumbnail + var tOffset = tiffStart + thumbTags.JpegIFOffset; + var tLength = thumbTags.JpegIFByteCount; + thumbTags['blob'] = new Blob([new Uint8Array(dataView.buffer, tOffset, tLength)], { + type: 'image/jpeg' + }); + } + break; + + case 1: + console.log("Thumbnail image format is TIFF, which is not implemented."); + break; + default: + console.log("Unknown thumbnail image format '%s'", thumbTags['Compression']); + } + } else if (thumbTags['PhotometricInterpretation'] == 2) { + console.log("Thumbnail image format is RGB, which is not implemented."); + } + return thumbTags; +} + +function getStringFromDB(buffer: DataView, start: number, length: number) { + let outstr = ""; + for (let n = start; n < start + length; n++) { + outstr += String.fromCharCode(buffer.getUint8(n)); + } + return outstr; +} + +function readEXIFData(file: DataView, start: number) { + if (getStringFromDB(file, start, 4) != "Exif") { + if (exif.debug) console.log("Not valid EXIF data! " + getStringFromDB(file, start, 4)); + return false; + } + + let bigEnd, + tags, tag, + exifData, gpsData, + tiffOffset = start + 6; + + // test for TIFF validity and endianness + if (file.getUint16(tiffOffset) == 0x4949) { + bigEnd = false; + } else if (file.getUint16(tiffOffset) == 0x4D4D) { + bigEnd = true; + } else { + if (exif.debug) console.log("Not valid TIFF data! (no 0x4949 or 0x4D4D)"); + return false; + } + + if (file.getUint16(tiffOffset + 2, !bigEnd) != 0x002A) { + if (exif.debug) console.log("Not valid TIFF data! (no 0x002A)"); + return false; + } + + const firstIFDOffset = file.getUint32(tiffOffset + 4, !bigEnd); + + if (firstIFDOffset < 0x00000008) { + if (exif.debug) console.log("Not valid TIFF data! (First offset less than 8)", file.getUint32(tiffOffset + 4, + !bigEnd)); + return false; + } + + tags = readTags(file, tiffOffset, tiffOffset + firstIFDOffset, TiffTags, bigEnd); + + if (tags.ExifIFDPointer) { + exifData = readTags(file, tiffOffset, tiffOffset + tags.ExifIFDPointer, ExifTags, bigEnd); + for (tag in exifData) { + switch (tag) { + case "LightSource": + case "Flash": + case "MeteringMode": + case "ExposureProgram": + case "SensingMethod": + case "SceneCaptureType": + case "SceneType": + case "CustomRendered": + case "WhiteBalance": + case "GainControl": + case "Contrast": + case "Saturation": + case "Sharpness": + case "SubjectDistanceRange": + case "FileSource": + exifData[tag] = StringValues[tag][exifData[tag]]; + break; + + case "ExifVersion": + case "FlashpixVersion": + exifData[tag] = String.fromCharCode(exifData[tag][0], exifData[tag][1], exifData[tag][2], + exifData[tag][3]); + break; + + case "ComponentsConfiguration": + exifData[tag] = + StringValues.Components[exifData[tag][0]] + + StringValues.Components[exifData[tag][1]] + + StringValues.Components[exifData[tag][2]] + + StringValues.Components[exifData[tag][3]]; + break; + } + tags[tag] = exifData[tag]; + } + } + + if (tags.GPSInfoIFDPointer) { + gpsData = readTags(file, tiffOffset, tiffOffset + tags.GPSInfoIFDPointer, GPSTags, bigEnd); + for (tag in gpsData) { + switch (tag) { + case "GPSVersionID": + gpsData[tag] = gpsData[tag][0] + + "." + gpsData[tag][1] + + "." + gpsData[tag][2] + + "." + gpsData[tag][3]; + break; + } + tags[tag] = gpsData[tag]; + } + } + + // extract thumbnail + tags['thumbnail'] = readThumbnailImage(file, tiffOffset, firstIFDOffset, bigEnd); + + return tags; +} + +function findXMPinJPEG(file: ArrayBuffer) { + + if (!('DOMParser' in self)) { + // console.warn('XML parsing not supported without DOMParser'); + return; + } + const dataView = new DataView(file); + + if (exif.debug) console.log("Got file of length " + file.byteLength); + if ((dataView.getUint8(0) != 0xFF) || (dataView.getUint8(1) != 0xD8)) { + if (exif.debug) console.log("Not a valid JPEG"); + return false; // not a valid jpeg + } + + let offset = 2, + length = file.byteLength, + dom = new DOMParser(); + + while (offset < (length - 4)) { + if (getStringFromDB(dataView, offset, 4) == "http") { + const startOffset = offset - 1; + const sectionLength = dataView.getUint16(offset - 2) - 1; + let xmpString = getStringFromDB(dataView, startOffset, sectionLength) + const xmpEndIndex = xmpString.indexOf('xmpmeta>') + 8; + xmpString = xmpString.substring(xmpString.indexOf(' 0) { + json['@attributes'] = {}; + for (var j = 0; j < xml.attributes.length; j++) { + var attribute = xml.attributes.item(j); + json['@attributes'][attribute.nodeName] = attribute.nodeValue; + } + } + } else if (xml.nodeType == 3) { // text node + return xml.nodeValue; + } + + // deal with children + if (xml.hasChildNodes()) { + for (var i = 0; i < xml.childNodes.length; i++) { + var child = xml.childNodes.item(i); + var nodeName = child.nodeName; + if (json[nodeName] == null) { + json[nodeName] = xml2json(child); + } else { + if (json[nodeName].push == null) { + var old = json[nodeName]; + json[nodeName] = []; + json[nodeName].push(old); + } + json[nodeName].push(xml2json(child)); + } + } + } + + return json; +} + +function xml2Object(xml: any) { + try { + var obj = {}; + if (xml.children.length > 0) { + for (var i = 0; i < xml.children.length; i++) { + var item = xml.children.item(i); + var attributes = item.attributes; + for (var idx in attributes) { + var itemAtt = attributes[idx]; + var dataKey = itemAtt.nodeName; + var dataValue = itemAtt.nodeValue; + + if (dataKey !== undefined) { + obj[dataKey] = dataValue; + } + } + var nodeName = item.nodeName; + + if (typeof (obj[nodeName]) == "undefined") { + obj[nodeName] = xml2json(item); + } else { + if (typeof (obj[nodeName].push) == "undefined") { + var old = obj[nodeName]; + + obj[nodeName] = []; + obj[nodeName].push(old); + } + obj[nodeName].push(xml2json(item)); + } + } + } else { + obj = xml.textContent; + } + return obj; + } catch (e) { + console.log(e.message); + } +} \ No newline at end of file diff --git a/uni_modules/lime-shared/fillZero/index.ts b/uni_modules/lime-shared/fillZero/index.ts new file mode 100644 index 0000000..9952c45 --- /dev/null +++ b/uni_modules/lime-shared/fillZero/index.ts @@ -0,0 +1,11 @@ +// @ts-nocheck +/** + * 在数字前填充零,返回字符串形式的结果 + * @param number 要填充零的数字 + * @param length 填充零后的字符串长度,默认为2 + * @returns 填充零后的字符串 + */ +export function fillZero(number: number, length: number = 2): string { + // 将数字转换为字符串,然后使用 padStart 方法填充零到指定长度 + return `${number}`.padStart(length, '0'); +} \ No newline at end of file diff --git a/uni_modules/lime-shared/floatAdd/index.ts b/uni_modules/lime-shared/floatAdd/index.ts new file mode 100644 index 0000000..aba4774 --- /dev/null +++ b/uni_modules/lime-shared/floatAdd/index.ts @@ -0,0 +1,36 @@ +import {isNumber} from '../isNumber' +/** + * 返回两个浮点数相加的结果 + * @param num1 第一个浮点数 + * @param num2 第二个浮点数 + * @returns 两个浮点数的相加结果 + */ +export function floatAdd(num1: number, num2: number): number { + // 检查 num1 和 num2 是否为数字类型 + if (!(isNumber(num1) || isNumber(num2))) { + console.warn('Please pass in the number type'); + return NaN; + } + + let r1: number, r2: number, m: number; + + try { + // 获取 num1 小数点后的位数 + r1 = num1.toString().split('.')[1].length; + } catch (error) { + r1 = 0; + } + + try { + // 获取 num2 小数点后的位数 + r2 = num2.toString().split('.')[1].length; + } catch (error) { + r2 = 0; + } + + // 计算需要扩大的倍数 + m = Math.pow(10, Math.max(r1, r2)); + + // 返回相加结果 + return (num1 * m + num2 * m) / m; +} diff --git a/uni_modules/lime-shared/getClassStr/index.ts b/uni_modules/lime-shared/getClassStr/index.ts new file mode 100644 index 0000000..32a0a74 --- /dev/null +++ b/uni_modules/lime-shared/getClassStr/index.ts @@ -0,0 +1,53 @@ +// @ts-nocheck + +// #ifdef APP-IOS || APP-ANDROID +import { isNumber } from '../isNumber' +import { isString } from '../isString' +import { isDef } from '../isDef' +// #endif + +/** + * 获取对象的类名字符串 + * @param obj - 需要处理的对象 + * @returns 由对象属性作为类名组成的字符串 + */ +export function getClassStr(obj : T) : string { + let classNames : string[] = []; + // #ifdef APP-IOS || APP-ANDROID + if (obj instanceof UTSJSONObject) { + (obj as UTSJSONObject).toMap().forEach((value, key) => { + if (isDef(value)) { + if (isNumber(value)) { + classNames.push(key); + } + if (isString(value) && value !== '') { + classNames.push(key); + } + if (typeof value == 'boolean' && (value as boolean)) { + classNames.push(key); + } + } + }) + } + // #endif + // #ifndef APP-IOS || APP-ANDROID + // 遍历对象的属性 + for (let key in obj) { + // 检查属性确实属于对象自身且其值为true + if ((obj as any).hasOwnProperty(key) && obj[key]) { + // 将属性名添加到类名数组中 + classNames.push(key); + } + } + // #endif + + + // 将类名数组用空格连接成字符串并返回 + return classNames.join(' '); +} + + +// 示例 +// const obj = { foo: true, bar: false, baz: true }; +// const classNameStr = getClassStr(obj); +// console.log(classNameStr); // 输出: "foo baz" \ No newline at end of file diff --git a/uni_modules/lime-shared/getCurrentPage/index.ts b/uni_modules/lime-shared/getCurrentPage/index.ts new file mode 100644 index 0000000..28a3bf5 --- /dev/null +++ b/uni_modules/lime-shared/getCurrentPage/index.ts @@ -0,0 +1,9 @@ +// @ts-nocheck +// #ifndef APP-IOS || APP-ANDROID +export * from './vue.ts' +// #endif + + +// #ifdef APP-IOS || APP-ANDROID +export * from './uvue.uts' +// #endif diff --git a/uni_modules/lime-shared/getCurrentPage/uvue.uts b/uni_modules/lime-shared/getCurrentPage/uvue.uts new file mode 100644 index 0000000..9e96d2b --- /dev/null +++ b/uni_modules/lime-shared/getCurrentPage/uvue.uts @@ -0,0 +1,5 @@ +// @ts-nocheck +export const getCurrentPage = ():Page => { + const pages = getCurrentPages(); + return pages[pages.length - 1] +}; \ No newline at end of file diff --git a/uni_modules/lime-shared/getCurrentPage/vue.ts b/uni_modules/lime-shared/getCurrentPage/vue.ts new file mode 100644 index 0000000..79ecac8 --- /dev/null +++ b/uni_modules/lime-shared/getCurrentPage/vue.ts @@ -0,0 +1,6 @@ +// @ts-nocheck +/** 获取当前页 */ +export const getCurrentPage = () => { + const pages = getCurrentPages(); + return pages[pages.length - 1] //as T & WechatMiniprogram.Page.TrivialInstance; +}; \ No newline at end of file diff --git a/uni_modules/lime-shared/getLocalFilePath/index.ts b/uni_modules/lime-shared/getLocalFilePath/index.ts new file mode 100644 index 0000000..42eb80c --- /dev/null +++ b/uni_modules/lime-shared/getLocalFilePath/index.ts @@ -0,0 +1,62 @@ +// @ts-nocheck +// #ifdef APP-NVUE || APP-VUE +export const getLocalFilePath = (path : string) => { + if (typeof plus == 'undefined') return path + if (/^(_www|_doc|_documents|_downloads|file:\/\/|\/storage\/emulated\/0\/)/.test(path)) return path + if (/^\//.test(path)) { + const localFilePath = plus.io.convertAbsoluteFileSystem(path) + if (localFilePath !== path) { + return localFilePath + } else { + path = path.slice(1) + } + } + return '_www/' + path +} +// #endif + + +// #ifdef APP-ANDROID || APP-IOS +export { getResourcePath as getLocalFilePath } from '@/uni_modules/lime-file-utils' +// export const getLocalFilePath = (path : string) : string => { +// let uri = path +// if (uri.startsWith("http") || uri.startsWith(" { +// try { +// let uri = path +// if (uri.startsWith("http") || uri.startsWith(" { + return new Promise((resolve)=>{ + uni.createSelectorQuery().in(context).select(selector).boundingClientRect(res =>{ + resolve(res as NodeInfo) + }).exec(); + }) +} + +export function getAllRect(selector : string, context: ComponentInternalInstance):Promise { + return new Promise((resolve)=>{ + uni.createSelectorQuery().in(context).selectAll(selector).boundingClientRect(res =>{ + resolve(res as NodeInfo[]) + }).exec(); + }) +} \ No newline at end of file diff --git a/uni_modules/lime-shared/getRect/vue.ts b/uni_modules/lime-shared/getRect/vue.ts new file mode 100644 index 0000000..992ad09 --- /dev/null +++ b/uni_modules/lime-shared/getRect/vue.ts @@ -0,0 +1,117 @@ +// @ts-nocheck + +// #ifdef APP-NVUE +// 当编译环境是 APP-NVUE 时,引入 uni.requireNativePlugin('dom'),具体插件用途未知 +const dom = uni.requireNativePlugin('dom') +// #endif + +/** + * 获取节点信息 + * @param selector 选择器字符串 + * @param context ComponentInternalInstance 对象 + * @param node 是否获取node + * @returns 包含节点信息的 Promise 对象 + */ +export function getRect(selector : string, context : ComponentInternalInstance, node: boolean = false) { + // 之前是个对象,现在改成实例,防止旧版会报错 + if(context== null) { + return Promise.reject('context is null') + } + if(context.context){ + context = context.context + } + // #ifdef MP || VUE2 + if (context.proxy) context = context.proxy + // #endif + return new Promise((resolve, reject) => { + // #ifndef APP-NVUE + const dom = uni.createSelectorQuery().in(context).select(selector); + const result = (rect: UniNamespace.NodeInfo) => { + if (rect) { + resolve(rect) + } else { + reject('no rect') + } + } + + if (!node) { + dom.boundingClientRect(result).exec() + } else { + dom.fields({ + node: true, + size: true, + rect: true + }, result).exec() + } + // #endif + // #ifdef APP-NVUE + let { context } = options + if (/#|\./.test(selector) && context.refs) { + selector = selector.replace(/#|\./, '') + if (context.refs[selector]) { + selector = context.refs[selector] + if(Array.isArray(selector)) { + selector = selector[0] + } + } + } + dom.getComponentRect(selector, (res) => { + if (res.size) { + resolve(res.size) + } else { + reject('no rect') + } + }) + // #endif + }); +}; + + +export function getAllRect(selector : string, context: ComponentInternalInstance, node:boolean = false) { + if(context== null) { + return Promise.reject('context is null') + } + // #ifdef MP || VUE2 + if (context.proxy) context = context.proxy + // #endif + return new Promise((resolve, reject) => { + // #ifndef APP-NVUE + const dom = uni.createSelectorQuery().in(context).selectAll(selector); + const result = (rect: UniNamespace.NodeInfo[]) => { + if (rect) { + resolve(rect) + } else { + reject('no rect') + } + } + if (!node) { + dom.boundingClientRect(result).exec() + } else { + dom.fields({ + node: true, + size: true, + rect: true + }, result).exec() + } + // #endif + // #ifdef APP-NVUE + let { context } = options + if (/#|\./.test(selector) && context.refs) { + selector = selector.replace(/#|\./, '') + if (context.refs[selector]) { + selector = context.refs[selector] + if(Array.isArray(selector)) { + selector = selector[0] + } + } + } + dom.getComponentRect(selector, (res) => { + if (res.size) { + resolve([res.size]) + } else { + reject('no rect') + } + }) + // #endif + }); +}; \ No newline at end of file diff --git a/uni_modules/lime-shared/getStyleStr/index.ts b/uni_modules/lime-shared/getStyleStr/index.ts new file mode 100644 index 0000000..6c99439 --- /dev/null +++ b/uni_modules/lime-shared/getStyleStr/index.ts @@ -0,0 +1,54 @@ +// @ts-nocheck +// #ifndef APP-IOS || APP-ANDROID +interface CSSProperties { + [key : string] : string | number | null +} +// #endif + +// #ifdef VUE3 +// #ifdef APP-IOS || APP-ANDROID +type CSSProperties = UTSJSONObject +// #endif +// #endif +/** + * 将字符串转换为带有连字符分隔的小写形式 + * @param key - 要转换的字符串 + * @returns 转换后的字符串 + */ +export function toLowercaseSeparator(key : string):string { + return key.replace(/([A-Z])/g, '-$1').toLowerCase(); +} + +/** + * 获取样式对象对应的样式字符串 + * @param style - CSS样式对象 + * @returns 由非空有效样式属性键值对组成的字符串 + */ +export function getStyleStr(style : CSSProperties) : string { + + // #ifdef APP-IOS || APP-ANDROID + let styleStr = ''; + style.toMap().forEach((value, key) => { + if(value !== null && value != '') { + styleStr += `${toLowercaseSeparator(key as string)}: ${value};` + } + }) + return styleStr + // #endif + // #ifndef APP-IOS || APP-ANDROID + return Object.keys(style) + .filter( + (key) => + style[key] !== undefined && + style[key] !== null && + style[key] !== '') + .map((key : string) => `${toLowercaseSeparator(key)}: ${style[key]};`) + .join(' '); + // #endif +} + +// 示例 +// const style = { color: 'red', fontSize: '16px', backgroundColor: '', border: null }; +// const styleStr = getStyleStr(style); +// console.log(styleStr); +// 输出: "color: red; font-size: 16px;" \ No newline at end of file diff --git a/uni_modules/lime-shared/getStyleStr/index_.uts b/uni_modules/lime-shared/getStyleStr/index_.uts new file mode 100644 index 0000000..a4c4494 --- /dev/null +++ b/uni_modules/lime-shared/getStyleStr/index_.uts @@ -0,0 +1,39 @@ +// @ts-nocheck +// #ifndef UNI-APP-X +interface CSSProperties { + [key : string] : string | number +} +// #endif + +// #ifdef UNI-APP-X +type CSSProperties = UTSJSONObject +// #endif +/** + * 将字符串转换为带有连字符分隔的小写形式 + * @param key - 要转换的字符串 + * @returns 转换后的字符串 + */ +export function toLowercaseSeparator(key : string) : string { + return key.replace(/([A-Z])/g, '-$1').toLowerCase(); +} + +/** + * 获取样式对象对应的样式字符串 + * @param style - CSS样式对象 + * @returns 由非空有效样式属性键值对组成的字符串 + */ +export function getStyleStr(style : CSSProperties) : string { + let styleStr = ''; + style.toMap().forEach((value, key) => { + if(value !== null && value != '') { + styleStr += `${toLowercaseSeparator(key as string)}: ${value};` + } + }) + return styleStr +} + +// 示例 +// const style = { color: 'red', fontSize: '16px', backgroundColor: '', border: null }; +// const styleStr = getStyleStr(style); +// console.log(styleStr); +// 输出: "color: red; font-size: 16px;" \ No newline at end of file diff --git a/uni_modules/lime-shared/hasOwn/index.ts b/uni_modules/lime-shared/hasOwn/index.ts new file mode 100644 index 0000000..104e457 --- /dev/null +++ b/uni_modules/lime-shared/hasOwn/index.ts @@ -0,0 +1,9 @@ +// @ts-nocheck +// #ifdef APP-IOS || APP-ANDROID +export * from './uvue.ts' +// #endif + + +// #ifndef APP-IOS || APP-ANDROID +export * from './vue.ts' +// #endif \ No newline at end of file diff --git a/uni_modules/lime-shared/hasOwn/uvue.ts b/uni_modules/lime-shared/hasOwn/uvue.ts new file mode 100644 index 0000000..50345bf --- /dev/null +++ b/uni_modules/lime-shared/hasOwn/uvue.ts @@ -0,0 +1,39 @@ +// @ts-nocheck +/** + * 检查对象或数组是否具有指定的属性或键 + * @param obj 要检查的对象或数组 + * @param key 指定的属性或键 + * @returns 如果对象或数组具有指定的属性或键,则返回true;否则返回false + */ +function hasOwn(obj: UTSJSONObject, key: string): boolean +function hasOwn(obj: Map, key: string): boolean +function hasOwn(obj: any, key: string): boolean { + if(obj instanceof UTSJSONObject){ + return obj[key] != null + } + if(obj instanceof Map){ + return (obj as Map).has(key) + } + return false +} +export { + hasOwn +} +// 示例 +// const obj = { name: 'John', age: 30 }; + +// if (hasOwn(obj, 'name')) { +// console.log("对象具有 'name' 属性"); +// } else { +// console.log("对象不具有 'name' 属性"); +// } +// // 输出: 对象具有 'name' 属性 + +// const arr = [1, 2, 3]; + +// if (hasOwn(arr, 'length')) { +// console.log("数组具有 'length' 属性"); +// } else { +// console.log("数组不具有 'length' 属性"); +// } +// 输出: 数组具有 'length' 属性 \ No newline at end of file diff --git a/uni_modules/lime-shared/hasOwn/vue.ts b/uni_modules/lime-shared/hasOwn/vue.ts new file mode 100644 index 0000000..7317879 --- /dev/null +++ b/uni_modules/lime-shared/hasOwn/vue.ts @@ -0,0 +1,30 @@ +// @ts-nocheck +const hasOwnProperty = Object.prototype.hasOwnProperty +/** + * 检查对象或数组是否具有指定的属性或键 + * @param obj 要检查的对象或数组 + * @param key 指定的属性或键 + * @returns 如果对象或数组具有指定的属性或键,则返回true;否则返回false + */ +export function hasOwn(obj: Object | Array, key: string): boolean { + return hasOwnProperty.call(obj, key); +} + +// 示例 +// const obj = { name: 'John', age: 30 }; + +// if (hasOwn(obj, 'name')) { +// console.log("对象具有 'name' 属性"); +// } else { +// console.log("对象不具有 'name' 属性"); +// } +// // 输出: 对象具有 'name' 属性 + +// const arr = [1, 2, 3]; + +// if (hasOwn(arr, 'length')) { +// console.log("数组具有 'length' 属性"); +// } else { +// console.log("数组不具有 'length' 属性"); +// } +// 输出: 数组具有 'length' 属性 \ No newline at end of file diff --git a/uni_modules/lime-shared/index.ts b/uni_modules/lime-shared/index.ts new file mode 100644 index 0000000..2eb1d94 --- /dev/null +++ b/uni_modules/lime-shared/index.ts @@ -0,0 +1,43 @@ +// @ts-nocheck +// validator +// export * from './isString' +// export * from './isNumber' +// export * from './isNumeric' +// export * from './isDef' +// export * from './isFunction' +// export * from './isObject' +// export * from './isPromise' +// export * from './isBase64' + +// export * from './hasOwn' + +// // 单位转换 +// export * from './addUnit' +// export * from './unitConvert' +// export * from './toNumber' + +// export * from './random' +// export * from './range' +// export * from './fillZero' + +// // image +// export * from './base64ToPath' +// export * from './pathToBase64' +// export * from './exif' + +// // canvas +// export * from './canIUseCanvas2d' + +// // page +// export * from './getCurrentPage' + +// // dom +// export * from './getRect' +// export * from './selectComponent' +// export * from './createAnimation' + +// // delay +// export * from './sleep' +// export * from './debounce' +// export * from './throttle' + diff --git a/uni_modules/lime-shared/isBase64/index.ts b/uni_modules/lime-shared/isBase64/index.ts new file mode 100644 index 0000000..dcb8f3e --- /dev/null +++ b/uni_modules/lime-shared/isBase64/index.ts @@ -0,0 +1,23 @@ +// @ts-nocheck + +/** + * 判断一个字符串是否为Base64编码。 + * Base64编码的字符串只包含A-Z、a-z、0-9、+、/ 和 = 这些字符。 + * @param {string} str - 要检查的字符串。 + * @returns {boolean} 如果字符串是Base64编码,返回true,否则返回false。 + */ +export function isBase64(str: string): boolean { + const base64Regex = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/; + return base64Regex.test(str); +} + +/** + * 判断一个字符串是否为Base64编码的data URI。 + * Base64编码的data URI通常以"data:"开头,后面跟着MIME类型和编码信息,然后是Base64编码的数据。 + * @param {string} str - 要检查的字符串。 + * @returns {boolean} 如果字符串是Base64编码的data URI,返回true,否则返回false。 + */ +export function isBase64DataUri(str: string): boolean { + const dataUriRegex = /^data:([a-zA-Z]+\/[a-zA-Z0-9-+.]+)(;base64)?,([a-zA-Z0-9+/]+={0,2})$/; + return dataUriRegex.test(str); +} \ No newline at end of file diff --git a/uni_modules/lime-shared/isBrowser/index.ts b/uni_modules/lime-shared/isBrowser/index.ts new file mode 100644 index 0000000..6baee2b --- /dev/null +++ b/uni_modules/lime-shared/isBrowser/index.ts @@ -0,0 +1,8 @@ +// @ts-nocheck +// #ifdef WEB +export const isBrowser = typeof window !== 'undefined'; +// #endif + +// #ifndef WEB +export const isBrowser = false; +// #endif \ No newline at end of file diff --git a/uni_modules/lime-shared/isDef/index.ts b/uni_modules/lime-shared/isDef/index.ts new file mode 100644 index 0000000..6d40269 --- /dev/null +++ b/uni_modules/lime-shared/isDef/index.ts @@ -0,0 +1,23 @@ +// @ts-nocheck +/** + * 检查一个值是否已定义(不为 undefined)且不为 null + * @param value 要检查的值 + * @returns 如果值已定义且不为 null,则返回 true;否则返回 false + */ +// #ifndef UNI-APP-X +export function isDef(value: unknown): boolean { + return value !== undefined && value !== null; +} +// #endif + + +// #ifdef UNI-APP-X +export function isDef(value : any|null) : boolean { + // #ifdef APP-ANDROID || APP-IOS + return value != null; + // #endif + // #ifndef APP-ANDROID || APP-IOS + return value != null && value != undefined; + // #endif +} +// #endif \ No newline at end of file diff --git a/uni_modules/lime-shared/isEmpty/index.ts b/uni_modules/lime-shared/isEmpty/index.ts new file mode 100644 index 0000000..f13b9b6 --- /dev/null +++ b/uni_modules/lime-shared/isEmpty/index.ts @@ -0,0 +1,83 @@ +// @ts-nocheck +import {isDef} from '../isDef' +import {isString} from '../isString' +import {isNumber} from '../isNumber' +/** + * 判断一个值是否为空。 + * + * 对于字符串,去除首尾空格后判断长度是否为0。 + * 对于数组,判断长度是否为0。 + * 对于对象,判断键的数量是否为0。 + * 对于null或undefined,直接返回true。 + * 其他类型(如数字、布尔值等)默认不为空。 + * + * @param {any} value - 要检查的值。 + * @returns {boolean} 如果值为空,返回true,否则返回false。 + */ + + +// #ifdef APP-IOS || APP-ANDROID +export function isEmpty(value : any | null) : boolean { + // 为null + if(!isDef(value)){ + return true + } + // 为空字符 + if(isString(value)){ + return value.toString().trim().length == 0 + } + // 为数值 + if(isNumber(value)){ + return false + } + + if(typeof value == 'object'){ + // 数组 + if(Array.isArray(value)){ + return (value as Array).length == 0 + } + // Map + if(value instanceof Map) { + return value.size == 0 + } + // Set + if(value instanceof Set) { + return value.size == 0 + } + if(value instanceof UTSJSONObject) { + return value.toMap().size == 0 + } + return JSON.stringify(value) == '{}' + } + + return true +} +// #endif + + +// #ifndef APP-IOS || APP-ANDROID +export function isEmpty(value: any): boolean { + // 检查是否为null或undefined + if (value == null) { + return true; + } + + // 检查字符串是否为空 + if (typeof value === 'string') { + return value.trim().length === 0; + } + + // 检查数组是否为空 + if (Array.isArray(value)) { + return value.length === 0; + } + + // 检查对象是否为空 + if (typeof value === 'object') { + return Object.keys(value).length === 0; + } + + // 其他类型(如数字、布尔值等)不为空 + return false; +} +// #endif \ No newline at end of file diff --git a/uni_modules/lime-shared/isFunction/index.ts b/uni_modules/lime-shared/isFunction/index.ts new file mode 100644 index 0000000..7c304b4 --- /dev/null +++ b/uni_modules/lime-shared/isFunction/index.ts @@ -0,0 +1,16 @@ +// @ts-nocheck +/** + * 检查一个值是否为函数类型 + * @param val 要检查的值 + * @returns 如果值的类型是函数类型,则返回 true;否则返回 false + */ + +// #ifdef APP-IOS || APP-ANDROID +export const isFunction = (val: any):boolean => typeof val == 'function'; + // #endif + + +// #ifndef APP-IOS || APP-ANDROID +export const isFunction = (val: unknown): val is Function => + typeof val === 'function'; +// #endif diff --git a/uni_modules/lime-shared/isNumber/index.ts b/uni_modules/lime-shared/isNumber/index.ts new file mode 100644 index 0000000..040bc11 --- /dev/null +++ b/uni_modules/lime-shared/isNumber/index.ts @@ -0,0 +1,26 @@ +// @ts-nocheck +/** + * 检查一个值是否为数字类型 + * @param value 要检查的值,可以是 number 类型或 string 类型的数字 + * @returns 如果值是数字类型且不是 NaN,则返回 true;否则返回 false + */ + +// #ifndef UNI-APP-X +export function isNumber(value: number | string | null): boolean { + return typeof value === 'number' && !isNaN(value); +} +// #endif + +// #ifdef UNI-APP-X +export function isNumber(value: any|null): boolean { + // #ifdef APP-ANDROID + return ['Byte', 'UByte','Short','UShort','Int','UInt','Long','ULong','Float','Double','number'].includes(typeof value) + // #endif + // #ifdef APP-IOS + return ['Int8', 'UInt8','Int16','UInt16','Int32','UInt32','Int64','UInt64','Int','UInt','Float','Float16','Float32','Float64','Double', 'number'].includes(typeof value) + // #endif + // #ifndef APP-ANDROID || APP-IOS + return typeof value === 'number' && !isNaN(value); + // #endif +} +// #endif \ No newline at end of file diff --git a/uni_modules/lime-shared/isNumeric/index.ts b/uni_modules/lime-shared/isNumeric/index.ts new file mode 100644 index 0000000..f772391 --- /dev/null +++ b/uni_modules/lime-shared/isNumeric/index.ts @@ -0,0 +1,33 @@ +// @ts-nocheck + +/** + * 检查一个值是否为数字类型或表示数字的字符串 + * @param value 要检查的值,可以是 string 类型或 number 类型 + * @returns 如果值是数字类型或表示数字的字符串,则返回 true;否则返回 false + */ + +// #ifndef APP-IOS || APP-ANDROID +export function isNumeric(value: string | number | undefined | null): boolean { + return /^(-)?\d+(\.\d+)?$/.test(value); +} +// #endif + + +// #ifdef APP-IOS || APP-ANDROID +import {isNumber} from '../isNumber'; +import {isString} from '../isString'; +export function isNumeric(value : any|null) : boolean { + if(value == null) { + return false + } + if(isNumber(value)) { + return true + } else if(isString(value)) { + // const regex = "-?\\d+(\\.\\d+)?".toRegex() + const regex = new RegExp("^(-)?\\d+(\\.\\d+)?$") + return regex.test(value as string) //regex.matches(value as string) + } + return false + // return /^(-)?\d+(\.\d+)?$/.test(value); +} +// #endif diff --git a/uni_modules/lime-shared/isObject/index.ts b/uni_modules/lime-shared/isObject/index.ts new file mode 100644 index 0000000..9f93937 --- /dev/null +++ b/uni_modules/lime-shared/isObject/index.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +/** + * 检查一个值是否为对象类型 + * @param val 要检查的值 + * @returns 如果值的类型是对象类型,则返回 true;否则返回 false + */ + +// #ifndef APP-IOS || APP-ANDROID +export const isObject = (val : unknown) : val is Record => + val !== null && typeof val === 'object'; + +// #endif + + +// #ifdef APP-IOS || APP-ANDROID +export const isObject = (val : any | null) : boolean =>{ + return val !== null && typeof val === 'object'; +} +// #endif diff --git a/uni_modules/lime-shared/isPromise/index.ts b/uni_modules/lime-shared/isPromise/index.ts new file mode 100644 index 0000000..b13c10b --- /dev/null +++ b/uni_modules/lime-shared/isPromise/index.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import {isFunction} from '../isFunction' +import {isObject} from '../isObject' +/** + * 检查一个值是否为 Promise 类型 + * @param val 要检查的值 + * @returns 如果值的类型是 Promise 类型,则返回 true;否则返回 false + */ +// #ifndef APP-ANDROID +export const isPromise = (val: unknown): val is Promise => { + // 使用 isObject 函数判断值是否为对象类型 + // 使用 isFunction 函数判断值是否具有 then 方法和 catch 方法 + return isObject(val) && isFunction(val.then) && isFunction(val.catch); +}; +// #endif + + +// #ifdef APP-ANDROID +export const isPromise = (val: any): boolean => { + return val instanceof Promise +}; +// #endif \ No newline at end of file diff --git a/uni_modules/lime-shared/isString/index.ts b/uni_modules/lime-shared/isString/index.ts new file mode 100644 index 0000000..45ff533 --- /dev/null +++ b/uni_modules/lime-shared/isString/index.ts @@ -0,0 +1,19 @@ +// @ts-nocheck +/** + * 检查一个值是否为字符串类型 + * @param str 要检查的值 + * @returns 如果值的类型是字符串类型,则返回 true;否则返回 false + */ +// #ifndef APP-IOS || APP-ANDROID +// export const isString = (str: unknown): str is string => typeof str === 'string'; +export function isString (str: unknown): str is string { + return typeof str == 'string' +} +// #endif + + +// #ifdef APP-IOS || APP-ANDROID +export function isString (str: any): boolean { + return typeof str == 'string' +} +// #endif diff --git a/uni_modules/lime-shared/kebabCase/index.ts b/uni_modules/lime-shared/kebabCase/index.ts new file mode 100644 index 0000000..78550ae --- /dev/null +++ b/uni_modules/lime-shared/kebabCase/index.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +// export function toLowercaseSeparator(key: string) { +// return key.replace(/([A-Z])/g, '-$1').toLowerCase(); +// } + +/** + * 将字符串转换为指定连接符的命名约定 + * @param str 要转换的字符串 + * @param separator 指定的连接符,默认为 "-" + * @returns 转换后的字符串 + */ +export function kebabCase(str : string, separator : string = "-") : string { + return str + + // #ifdef APP-IOS || APP-ANDROID + .replace(/[A-Z]/g, (match : string, _ : number, _ : string) : string => `${separator}${match.toLowerCase()}`) // 将大写字母替换为连接符加小写字母 + // #endif + // #ifndef APP-IOS || APP-ANDROID + .replace(/[A-Z]/g, (match : string) : string => `${separator}${match.toLowerCase()}`) // 将大写字母替换为连接符加小写字母 + // #endif + .replace(/[\s_-]+/g, separator) // 将空格、下划线和短横线替换为指定连接符 + .replace(new RegExp(`^${separator}|${separator}$`, "g"), "") // 删除开头和结尾的连接符 + .toLowerCase(); // 将结果转换为全小写 +} \ No newline at end of file diff --git a/uni_modules/lime-shared/package.json b/uni_modules/lime-shared/package.json new file mode 100644 index 0000000..298b438 --- /dev/null +++ b/uni_modules/lime-shared/package.json @@ -0,0 +1,86 @@ +{ + "id": "lime-shared", + "displayName": "lime-shared", + "version": "0.1.6", + "description": "本人插件的几个公共函数,获取当前页,图片的base64转临时路径,图片的exif信息等", + "keywords": [ + "lime-shared", + "exif" +], + "repository": "", + "engines": { + "HBuilderX": "^3.1.0" + }, + "dcloudext": { + "type": "sdk-js", + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "" + }, + "uni_modules": { + "dependencies": [ + + ], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y", + "alipay": "n" + }, + "client": { + "Vue": { + "vue2": "y", + "vue3": "y" + }, + "App": { + "app-vue": "y", + "app-uvue": "y", + "app-nvue": "y" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "u", + "Edge": "u", + "Firefox": "u", + "Safari": "u" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y", + "钉钉": "y", + "快手": "y", + "飞书": "y", + "京东": "u" + }, + "快应用": { + "华为": "u", + "联盟": "u" + } + } + } + } +} \ No newline at end of file diff --git a/uni_modules/lime-shared/pathToBase64/index.ts b/uni_modules/lime-shared/pathToBase64/index.ts new file mode 100644 index 0000000..28a3bf5 --- /dev/null +++ b/uni_modules/lime-shared/pathToBase64/index.ts @@ -0,0 +1,9 @@ +// @ts-nocheck +// #ifndef APP-IOS || APP-ANDROID +export * from './vue.ts' +// #endif + + +// #ifdef APP-IOS || APP-ANDROID +export * from './uvue.uts' +// #endif diff --git a/uni_modules/lime-shared/pathToBase64/uvue.uts b/uni_modules/lime-shared/pathToBase64/uvue.uts new file mode 100644 index 0000000..d5bbdb1 --- /dev/null +++ b/uni_modules/lime-shared/pathToBase64/uvue.uts @@ -0,0 +1,17 @@ +// @ts-nocheck +// import { processFile, ProcessFileOptions } from '@/uni_modules/lime-file-utils' +export function pathToBase64(path : string) : Promise { + console.error('pathToBase64: 当前环境不支持,请使用 【lime-file-utils】') + // return new Promise((resolve, reject) => { + // processFile({ + // type: 'toDataURL', + // path, + // success(res : string) { + // resolve(res) + // }, + // fail(err: any){ + // reject(err) + // } + // } as ProcessFileOptions) + // }) +} \ No newline at end of file diff --git a/uni_modules/lime-shared/pathToBase64/vue.ts b/uni_modules/lime-shared/pathToBase64/vue.ts new file mode 100644 index 0000000..8167f88 --- /dev/null +++ b/uni_modules/lime-shared/pathToBase64/vue.ts @@ -0,0 +1,121 @@ +// @ts-nocheck + +// #ifdef APP-PLUS +import { getLocalFilePath } from '../getLocalFilePath' +// #endif +function isImage(extension : string) { + const imageExtensions = ["jpg", "jpeg", "png", "gif", "bmp", "svg"]; + return imageExtensions.includes(extension.toLowerCase()); +} +// #ifdef H5 +function getSVGFromURL(url: string) { + return new Promise((resolve, reject) => { + const xhr = new XMLHttpRequest(); + xhr.open('GET', url, true); + xhr.responseType = 'text'; + + xhr.onload = function () { + if (xhr.status === 200) { + const svg = xhr.responseText; + resolve(svg); + } else { + reject(new Error(xhr.statusText)); + } + }; + + xhr.onerror = function () { + reject(new Error('Network error')); + }; + + xhr.send(); + }); +} +// #endif +/** + * 路径转base64 + * @param {Object} string + */ +export function pathToBase64(path : string) : Promise { + if (/^data:/.test(path)) return path + let extension = path.substring(path.lastIndexOf('.') + 1); + const isImageFile = isImage(extension) + let prefix = '' + if (isImageFile) { + prefix = 'image/'; + if(extension == 'svg') { + extension += '+xml' + } + } else if (extension === 'pdf') { + prefix = 'application/pdf'; + } else if (extension === 'txt') { + prefix = 'text/plain'; + } else { + // 添加更多文件类型的判断 + // 如果不是图片、PDF、文本等类型,可以设定默认的前缀或采取其他处理 + prefix = 'application/octet-stream'; + } + return new Promise((resolve, reject) => { + // #ifdef H5 + if (isImageFile) { + if(extension == 'svg') { + getSVGFromURL(path).then(svg => { + const base64 = btoa(svg); + resolve(`data:image/svg+xml;base64,${base64}`); + }) + } else { + let image = new Image(); + image.setAttribute("crossOrigin", 'Anonymous'); + image.onload = function () { + let canvas = document.createElement('canvas'); + canvas.width = this.naturalWidth; + canvas.height = this.naturalHeight; + canvas.getContext('2d').drawImage(image, 0, 0); + let result = canvas.toDataURL(`${prefix}${extension}`) + resolve(result); + canvas.height = canvas.width = 0 + } + image.src = path + '?v=' + Math.random() + image.onerror = (error) => { + reject(error); + }; + } + + } else { + reject('not image'); + } + + // #endif + + // #ifdef MP + if (uni.canIUse('getFileSystemManager')) { + uni.getFileSystemManager().readFile({ + filePath: path, + encoding: 'base64', + success: (res) => { + resolve(`data:${prefix}${extension};base64,${res.data}`) + }, + fail: (error) => { + console.error({ error, path }) + reject(error) + } + }) + } + // #endif + + // #ifdef APP-PLUS + plus.io.resolveLocalFileSystemURL(getLocalFilePath(path), (entry) => { + entry.file((file : any) => { + const fileReader = new plus.io.FileReader() + fileReader.onload = (data) => { + resolve(data.target.result) + } + fileReader.onerror = (error) => { + console.error({ error, path }) + reject(error) + } + fileReader.readAsDataURL(file) + }, reject) + }, reject) + // #endif + }) +} \ No newline at end of file diff --git a/uni_modules/lime-shared/platform/index.ts b/uni_modules/lime-shared/platform/index.ts new file mode 100644 index 0000000..55fd412 --- /dev/null +++ b/uni_modules/lime-shared/platform/index.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +export function getPlatform():Uni { + // #ifdef MP-WEIXIN + return wx + // #endif + // #ifdef MP-BAIDU + return swan + // #endif + // #ifdef MP-ALIPAY + return my + // #endif + // #ifdef MP-JD + return jd + // #endif + // #ifdef MP-QQ + return qq + // #endif + // #ifdef MP-360 + return qh + // #endif + // #ifdef MP-KUAISHOU + return ks + // #endif + // #ifdef MP-LARK||MP-TOUTIAO + return tt + // #endif + // #ifdef MP-DINGTALK + return dd + // #endif + // #ifdef QUICKAPP-WEBVIEW || QUICKAPP-WEBVIEW-UNION || QUICKAPP-WEBVIEW-HUAWEI + return qa + // #endif + return uni +} \ No newline at end of file diff --git a/uni_modules/lime-shared/raf/index.ts b/uni_modules/lime-shared/raf/index.ts new file mode 100644 index 0000000..c045153 --- /dev/null +++ b/uni_modules/lime-shared/raf/index.ts @@ -0,0 +1,10 @@ +// @ts-nocheck + +// #ifdef APP-IOS || APP-ANDROID +export * from './vue.ts' +// #endif + + +// #ifndef APP-IOS || APP-ANDROID +export * from './uvue.ts' +// #endif diff --git a/uni_modules/lime-shared/raf/uvue.ts b/uni_modules/lime-shared/raf/uvue.ts new file mode 100644 index 0000000..a49e632 --- /dev/null +++ b/uni_modules/lime-shared/raf/uvue.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +// import {isBrowser} from '../isBrowser' + +// 是否支持被动事件监听 +export const supportsPassive = true; + +// 请求动画帧 +export function raf(fn: TimerCallback): number { + return setTimeout(fn, 1000 / 30); +} + +// 取消动画帧 +export function cancelRaf(id: number) { + clearTimeout(id); +} + +// 双倍动画帧 +export function doubleRaf(fn: TimerCallback): void { + raf(() => raf(fn)); // 在下一帧回调中再次请求动画帧,实现双倍动画帧效果 +} \ No newline at end of file diff --git a/uni_modules/lime-shared/raf/vue.ts b/uni_modules/lime-shared/raf/vue.ts new file mode 100644 index 0000000..971d856 --- /dev/null +++ b/uni_modules/lime-shared/raf/vue.ts @@ -0,0 +1,33 @@ +// @ts-nocheck +// import { isBrowser } from '../isBrowser' +type Callback = () => void//Function +// 是否支持被动事件监听 +export const supportsPassive = true; + +// 请求动画帧 +export function raf(fn : Callback) : number { + // #ifndef WEB + return setTimeout(fn, 1000 / 30); // 请求动画帧 + // #endif + // #ifdef WEB + return requestAnimationFrame(fn); // 请求动画帧 + // #endif +} + +// 取消动画帧 +export function cancelRaf(id : number) { + // 如果是在浏览器环境下,使用 cancelAnimationFrame 方法 + // #ifdef WEB + cancelAnimationFrame(id); // 取消动画帧 + // #endif + // #ifndef WEB + clearTimeout(id); // 取消动画帧 + // #endif +} + +// 双倍动画帧 +export function doubleRaf(fn : Callback) : void { + raf(() => { + raf(fn) + }); // 在下一帧回调中再次请求动画帧,实现双倍动画帧效果 +} \ No newline at end of file diff --git a/uni_modules/lime-shared/random/index.ts b/uni_modules/lime-shared/random/index.ts new file mode 100644 index 0000000..49a21ed --- /dev/null +++ b/uni_modules/lime-shared/random/index.ts @@ -0,0 +1,24 @@ +// @ts-nocheck +/** + * 生成一个指定范围内的随机数 + * @param min 随机数的最小值 + * @param max 随机数的最大值 + * @param fixed 随机数的小数位数,默认为 0 + * @returns 生成的随机数 + */ + +export function random(min: number, max: number, fixed: number = 0):number { + // 将 min 和 max 转换为数字类型 + // min = +min || 0; + // max = +max || 0; + // 计算随机数范围内的一个随机数 + const num = Math.random() * (max - min) + min; + // 如果 fixed 参数为 0,则返回四舍五入的整数随机数;否则保留固定小数位数 + // Number + return fixed == 0 ? Math.round(num) : parseFloat(num.toFixed(fixed)); +} + +// 示例 +// console.log(random(0, 10)); // 输出:在 0 和 10 之间的一个整数随机数 +// console.log(random(0, 1, 2)); // 输出:在 0 和 1 之间的一个保留两位小数的随机数 +// console.log(random(1, 100, 3)); // 输出:在 1 和 100 之间的一个保留三位小数的随机数 \ No newline at end of file diff --git a/uni_modules/lime-shared/range/index.ts b/uni_modules/lime-shared/range/index.ts new file mode 100644 index 0000000..483b7d1 --- /dev/null +++ b/uni_modules/lime-shared/range/index.ts @@ -0,0 +1,36 @@ +// @ts-nocheck +/** + * 生成一个数字范围的数组 + * @param start 范围的起始值 + * @param end 范围的结束值 + * @param step 步长,默认为 1 + * @param fromRight 是否从右侧开始生成,默认为 false + * @returns 生成的数字范围数组 + */ +export function range(start : number, end : number, step : number = 1, fromRight : boolean = false) : number[] { + let index = -1; + // 计算范围的长度 + let length = Math.max(Math.ceil((end - start) / step), 0); + // 创建一个长度为 length 的数组 + // #ifdef APP-ANDROID + const result = Array.fromNative(new IntArray(length.toInt())); + // #endif + // #ifndef APP-ANDROID + const result = new Array(length); + // #endif + + // 使用循环生成数字范围数组 + let _start = start + while (length-- > 0) { + // 根据 fromRight 参数决定从左侧还是右侧开始填充数组 + result[fromRight ? length : ++index] = _start; + _start += step; + } + return result; +} + + +// 示例 +// console.log(range(0, 5)); // 输出: [0, 1, 2, 3, 4] +// console.log(range(1, 10, 2, true)); // 输出: [9, 7, 5, 3, 1] +// console.log(range(5, 0, -1)); // 输出: [5, 4, 3, 2, 1] \ No newline at end of file diff --git a/uni_modules/lime-shared/readme.md b/uni_modules/lime-shared/readme.md new file mode 100644 index 0000000..3dc8c22 --- /dev/null +++ b/uni_modules/lime-shared/readme.md @@ -0,0 +1,445 @@ +# lime-shared 工具库 +- 本人插件的几个公共函数 +- 按需引入 + + +## 引入 +按需引入只会引入相关的方法,不要看着 插件函数列表多 而占空间,只要不引用不会被打包 +```js +import {getRect} from '@/uni_modules/lime-shared/getRect' +``` + +## 目录 ++ [getRect](#api_getRect): 获取节点尺寸信息 ++ [addUnit](#api_addUnit): 将未带单位的数值添加px,如果有单位则返回原值 ++ [unitConvert](#api_unitConvert): 将带有rpx|px的字符转成number,若本身是number则直接返回 ++ [canIUseCanvas2d](#api_canIUseCanvas2d): 环境是否支持使用 canvas 2d ++ [getCurrentPage](#api_getCurrentPage): 获取当前页 ++ [base64ToPath](#api_base64ToPath): 把base64的图片转成临时路径 ++ [pathToBase64](#api_pathToBase64): 把图片的临时路径转成base64 ++ [sleep](#api_sleep): async 内部程序等待一定时间后再执行 ++ [throttle](#api_throttle): 节流 ++ [debounce](#api_debounce): 防抖 ++ [random](#api_random): 返回指定范围的随机数 ++ [range](#api_range): 生成区间数组 ++ [clamp](#api_clamp): 夹在min和max之间的数值 ++ [floatAdd](#api_floatAdd): 返回两个浮点数相加的结果 ++ [fillZero](#api_fillZero): 补零,如果传入的是个位数则在前面补0 ++ [exif](#api_exif): 获取图片exif ++ [selectComponent](#api_selectComponent): 获取页面或当前实例的指定组件 ++ [createAnimation](#api_createAnimation): uni.createAnimation ++ [animation](#api_animation): 数值从一个值到另一个值的过渡 ++ [camelCase](#api_camelCase): 字符串转换为 camelCase 或 PascalCase 风格的命名约定 ++ [kebabCase](#api_kebabCase): 将字符串转换为指定连接符的命名约定 ++ [closest](#api_closest): 在给定数组中找到最接近目标数字的元素 ++ [isBase64](#api_isBase64): 判断字符串是否为base64 ++ [isNumber](#api_isNumber): 检查一个值是否为数字类型 ++ [isNumeric](#api_isNumeric): 检查一个值是否为数字类型或表示数字的字符串 ++ [isString](#api_isString): 检查一个值是否为字符串类型 ++ [composition-api](#api_composition-api): 为兼容vue2 + +## Utils + + +### getRect +- 返回节点尺寸信息 + +```js +// 组件内需要传入上下文 +// 如果是nvue 则需要在节点上加与id或class同名的ref +getRect('#id',{context: this}).then(res => {}) +``` +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + + + +### addUnit +- 将未带单位的数值添加px,如果有单位则返回原值 + +```js +addUnit(10) +// 10px +``` + +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + + + +### unitConvert +- 将带有rpx|px的字符转成number,若本身是number则直接返回 + +```js +unitConvert('10rpx') +// 5 设备不同 返回的值也不同 +unitConvert('10px') +// 10 +unitConvert(10) +// 10 +``` +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + + +### canIUseCanvas2d +- 环境是否支持使用 canvas 2d + +```js +canIUseCanvas2d() +// 若支持返回 true 否则 false +``` +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + + +### getCurrentPage +- 获取当前页 + +```js +const page = getCurrentPage() +``` +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + + +### base64ToPath +- 把base64的图片转成临时路径 + +```js +base64ToPath(`xxxxx`).then(res => {}) +``` +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + + +### pathToBase64 +- 把图片的临时路径转成base64 + +```js +pathToBase64(`xxxxx/xxx.png`).then(res => {}) +``` +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + + +### sleep +- 睡眠,让 async 内部程序等待一定时间后再执行 + +```js +async next () => { + await sleep(300) + console.log('limeui'); +} +``` +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + +### throttle +- 节流 + +```js +throttle((nama) => {console.log(nama)}, 200)('limeui'); +``` +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + +### debounce +- 防抖 + +```js +debounce((nama) => {console.log(nama)}, 200)('limeui'); +``` +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + +### random +- 返回指定范围的随机数 + +```js +random(1, 5); +``` +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + +### range +- 生成区间数组 + +```js +range(0, 5) +// [0,1,2,3,4,5] +``` +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + + +### clamp +- 夹在min和max之间的数值,如小于min,返回min, 如大于max,返回max,否侧原值返回 + +```js +clamp(0, 10, -1) +// 0 +clamp(0, 10, 11) +// 10 +clamp(0, 10, 9) +// 9 +``` +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + + +### floatAdd +- 返回两个浮点数相加的结果 + +```js +floatAdd(0.1, 0.2) // 0.3 +``` +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + +### fillZero +- 补零,如果传入的是`个位数`则在前面补0 + +```js +fillZero(9); +// 09 +``` +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + +### exif +- 获取图片exif +- 支持临时路径、base64 + +```js +uni.chooseImage({ + count: 1, //最多可以选择的图片张数 + sizeType: "original", + success: (res) => { + exif.getData(res.tempFiles[0], function() { + let tagj = exif.getTag(this, "GPSLongitude"); + let Orientation = exif.getTag(this, 'Orientation'); + console.log(tagj, Orientation) + }) + } +}) +``` + +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | x | + + +### selectComponent +- 获取页面或当前实例的指定组件,会在页面或实例向所有的节点查找(包括子组件或子子组件) +- 仅vue3,vue2没有测试过 + +```js +// 当前页面 +const page = getCurrentPage() +selectComponent('.custom', {context: page}).then(res => { +}) +``` +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | x | + + + +### createAnimation +- 创建动画,与uni.createAnimation使用方法一致,只为了抹平nvue + +```html + +``` +```js +const ball = ref(null) +const animation = createAnimation({ + transformOrigin: "50% 50%", + duration: 1000, + timingFunction: "ease", + delay: 0 +}) + +animation.scale(2,2).rotate(45).step() +// nvue 无导出数据,这样写只为了平台一致, +// nvue 需要把 ref 传入,其它平台不需要 +const animationData = animation.export(ball.value) +``` +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + + +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + + +### camelCase +- 将字符串转换为 camelCase 或 PascalCase 风格的命名约定 + +```js +camelCase("hello world") // helloWorld +camelCase("hello world", true) // HelloWorld +``` + +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + +### kebabCase +- 将字符串转换为指定连接符的命名约定 + +```js +kebabCase("helloWorld") // hello-world +kebabCase("hello world_example") // hello-world-example +kebabCase("helloWorld", "_") // hello_world +``` + +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + + + +### closest +- 在给定数组中找到最接近目标数字的元素 + +```js +closest([1, 3, 5, 7, 9], 6) // 5 +``` + +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + + +### isBase64 +- 判断字符串是否为base64 + +```js +isBase64('xxxxx') +``` +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + +### isNumber +- 检查一个值是否为数字类型 + +```js +isNumber('0') // false +isNumber(0) // true +``` +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + +### isNumeric +- 检查一个值是否为数字类型或表示数字的字符串 + +```js +isNumeric('0') // true +isNumeric(0) // true +``` +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + +### isString +- 检查一个值是否为数字类型或表示数字的字符串 + +```js +isString('0') // true +isString(0) // false +``` +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | √ | + + + + +## composition-api +- 因本人插件需要兼容vue2/vue3,故增加一个vue文件,代替条件编译 +- vue2需要在main.js加上这一段 +```js +// vue2 +import Vue from 'vue' +import VueCompositionAPI from '@vue/composition-api' +Vue.use(VueCompositionAPI) +``` + +```js +//使用 +import {computed, onMounted, watch, reactive} from '@/uni_modules/lime-shared/vue' +``` + +##### 兼容性 +| uni-app | uni-app x | +|------------|----------------------------------| +| √ | x | diff --git a/uni_modules/lime-shared/selectAllComponent/index.ts b/uni_modules/lime-shared/selectAllComponent/index.ts new file mode 100644 index 0000000..17c3a3c --- /dev/null +++ b/uni_modules/lime-shared/selectAllComponent/index.ts @@ -0,0 +1,8 @@ +// @ts-nocheck +// #ifdef UNI-APP-X +export * from './uvue.uts' +// #endif + +// #ifndef UNI-APP-X +export * from './vue.ts' +// #endif \ No newline at end of file diff --git a/uni_modules/lime-shared/selectAllComponent/uvue.uts b/uni_modules/lime-shared/selectAllComponent/uvue.uts new file mode 100644 index 0000000..07c9fcd --- /dev/null +++ b/uni_modules/lime-shared/selectAllComponent/uvue.uts @@ -0,0 +1,39 @@ +// @ts-nocheck +import { type ComponentPublicInstance } from 'vue'; + +type SelectOptions = { + context : ComponentPublicInstance, + needAll : boolean | null, + +} + +export function selectAllComponent(selector : string, options : UTSJSONObject) : ComponentPublicInstance[]|null { + const context = options.get('context')! as ComponentPublicInstance; + let needAll = options.get('needAll') as boolean; + let result:ComponentPublicInstance[] = [] + + if(needAll == null) { needAll = true }; + + if(context.$children.length > 0) { + const queue:ComponentPublicInstance[] = [...context.$children]; + while(queue.length > 0) { + const child = queue.shift(); + const name = child?.$options?.name; + if(name == selector) { + result.push(child as ComponentPublicInstance) + } else { + const children = child?.$children + if(children !== null) { + queue.push(...children) + } + } + if(result.length > 0 && !needAll) { + break; + } + } + } + if(result.length > 0) { + return result + } + return null +} \ No newline at end of file diff --git a/uni_modules/lime-shared/selectAllComponent/vue.ts b/uni_modules/lime-shared/selectAllComponent/vue.ts new file mode 100644 index 0000000..380bd7a --- /dev/null +++ b/uni_modules/lime-shared/selectAllComponent/vue.ts @@ -0,0 +1,151 @@ +// @ts-nocheck +interface SelectOptions { + context?: any + needAll?: boolean + node?: boolean +} +// #ifdef MP +function selectMPComponent(key: string, name: string, context: any, needAll: boolean) { + const {proxy, $vm} = context + context = $vm || proxy + if(!['ref','component'].includes(key)) { + const queue = [context] + let result = null + const selector = (key == 'id' ? '#': '.') + name; + while(queue.length > 0) { + const child = queue.shift(); + const flag = child?.selectComponent(selector) + if(flag) { + if(!needAll) {return result = flag.$vm} + return result = child.selectAllComponents(selector).map(item => item.$vm) + } else { + child.$children && (queue.push(...child.$children)); + } + } + return result + } else { + const {$templateRefs} = context.$ + const nameMap = {} + for (var i = 0; i < $templateRefs.length; i++) { + const item = $templateRefs[i] + nameMap[item.i] = item.r + } + let result = [] + if(context.$children.length) { + const queue = [...context.$children] + while(queue.length > 0) { + const child = queue.shift(); + if(key == 'component' && (child.type?.name === name || child.$?.type?.name === name)) { + result.push(child) + } else if(child.$refs && child.$refs[name]) { + result = child.$refs[name] + } else if(nameMap[child.id] === name){ + result.push(child) + } else { + child.$children && (queue.push(...child.$children)); + } + if(result.length && !needAll) { + return; + } + } + } + return needAll ? result : result[0] + } +} +// #endif +// #ifdef H5 +function selectH5Component(key: string, name: string, context: any, needAll: boolean) { + const {_, component } = context + const child = {component: _ || component || context, children: null , subTree: null, props: null} + let result = [] + let queue = [child] + while(queue.length > 0 ) { + const child = queue.shift() + const {component, children , props, subTree} = child + if(key === 'component' && component?.type?.name == name) { + result.push(component) + } else if(key === 'ref' && component && (props?.ref == name || component[key][name])) { + if(props?.ref == name) { + //exposed + result.push(component) + } else if(component[key][name]) { + result.push(component[key][name]) + } + } else if(key !== 'ref' && component?.exposed && new RegExp(`\\b${name}\\b`).test(component.attrs[key])) { + // exposed + result.push(component) + } else if(children && Array.isArray(children)) { + queue.push(...children) + } else if(!component && subTree) { + queue.push(subTree) + } else if(component?.subTree) { + queue.push(component.subTree) + } + if(result.length && !needAll) { + break + } + } + return needAll ? result : result[0] +} +// #endif +// #ifdef APP +function selectAPPComponent(key: string, name: string, context: any, needAll: boolean, node: boolean) { + let result = [] + // const {_, component} = context + // const child = {component: _ || component || context, children: null, props: null, subTree: null} + const queue = [context] + while(queue.length > 0) { + const child = queue.shift() + const {component, children, props, subTree} = child + const isComp = component && props && component.exposed && !node + if(key == 'component' && child.type && child.type.name === name) { + result.push(component) + } else if(props?.[key] === name && node) { + result.push(child) + } else if(key === 'ref' && isComp && (props.ref === name || props.ref_key === name)) { + // exposed + result.push(component) + } else if(key !== 'ref' && isComp && new RegExp(`\\b${name}\\b`).test(props[key])) { + // exposed + result.push(component) + } + // else if(component && component.subTree && Array.isArray(component.subTree.children)){ + // queue.push(...component.subTree.children) + // } + else if(subTree) { + queue.push(subTree) + } else if(component && component.subTree){ + queue.push(component.subTree) + } + else if(children && Array.isArray(children)) { + queue.push(...children) + } + if(result.length && !needAll) { + break; + } + } + return needAll ? result : result[0] +} +// #endif +export function selectAllComponent(selector: string, options: SelectOptions = {}) { + // . class + // # id + // $ ref + // @ component name + const reg = /^(\.|#|@|\$)([a-zA-Z_0-9\-]+)$/; + if(!reg.test(selector)) return null + let { context, needAll = true, node} = options + const [,prefix, name] = selector.match(reg) + const symbolMappings = {'.': 'class', '#': 'id', '$':'ref', '@':'component'} + + const key = symbolMappings [prefix] //prefix === '.' ? 'class' : prefix === '#' ? 'id' : 'ref'; + // #ifdef MP + return selectMPComponent(key, name, context, needAll) + // #endif + // #ifdef H5 + return selectH5Component(key, name, context, needAll) + // #endif + // #ifdef APP + return selectAPPComponent(key, name, context, needAll, node) + // #endif +} \ No newline at end of file diff --git a/uni_modules/lime-shared/selectComponent/index.ts b/uni_modules/lime-shared/selectComponent/index.ts new file mode 100644 index 0000000..52454fb --- /dev/null +++ b/uni_modules/lime-shared/selectComponent/index.ts @@ -0,0 +1,7 @@ +// @ts-nocheck +// #ifndef UNI-APP-X +export * from './vue.ts' +// #endif +// #ifdef UNI-APP-X +export * from './uvue.uts' +// #endif \ No newline at end of file diff --git a/uni_modules/lime-shared/selectComponent/uvue.uts b/uni_modules/lime-shared/selectComponent/uvue.uts new file mode 100644 index 0000000..c2aa2bc --- /dev/null +++ b/uni_modules/lime-shared/selectComponent/uvue.uts @@ -0,0 +1,75 @@ +// @ts-nocheck +import { type ComponentPublicInstance } from 'vue'; +// #ifdef APP +function findChildren(selector: string, context: ComponentPublicInstance, needAll: boolean): ComponentPublicInstance [] | null{ + let result:ComponentPublicInstance[] = [] + + if(context !== null && context.$children.length > 0) { + const queue:ComponentPublicInstance[] = [...context.$children]; + while(queue.length > 0) { + const child = queue.shift(); + const name = child?.$options?.name; + if(name == selector) { + result.push(child as ComponentPublicInstance) + } else { + const children = child?.$children + if(children !== null) { + queue.push(...children) + } + } + if(result.length > 0 && !needAll) { + break; + } + } + } + if(result.length > 0) { + return result + } + return null +} + +class Query { + context : ComponentPublicInstance | null = null + selector : string = '' + // components : ComponentPublicInstance[] = [] + constructor(selector : string, context : ComponentPublicInstance | null) { + this.selector = selector + this.context = context + } + in(context : ComponentPublicInstance) : Query { + return new Query(this.selector, context) + } + find(): ComponentPublicInstance | null { + const selector = this.selector + if(selector == '') return null + const component = findChildren(selector, this.context!, false) + return component != null ? component[0]: null + } + findAll():ComponentPublicInstance[] | null { + const selector = this.selector + if(selector == '') return null + return findChildren(selector, this.context!, true) + } + closest(): ComponentPublicInstance | null { + const selector = this.selector + if(selector == '') return null + let parent = this.context!.$parent + let name = parent?.$options?.name; + while (parent != null && (name == null || selector != name)) { + parent = parent.$parent + if (parent != null) { + name = parent.$options.name + } + } + return parent + } +} + +export function selectComponent(selector: string): Query{ + return new Query(selector, null) +} +// #endif + +// selectComponent('selector').in(this).find() +// selectComponent('selector').in(this).findAll() +// selectComponent('selector').in(this).closest() diff --git a/uni_modules/lime-shared/selectComponent/vue.ts b/uni_modules/lime-shared/selectComponent/vue.ts new file mode 100644 index 0000000..9fca0cd --- /dev/null +++ b/uni_modules/lime-shared/selectComponent/vue.ts @@ -0,0 +1,149 @@ +// @ts-nocheck +// #ifdef MP +function findChildren(selector : string, context : ComponentPublicInstance, needAll : boolean) { + const { proxy, $vm } = context + context = $vm || proxy + if ((selector.startsWith('.') || selector.startsWith('#'))) { + const queue = [context] + let result = null + while (queue.length > 0) { + const child = queue.shift(); + const flag = child?.selectComponent(selector) + if (flag) { + if (!needAll) { return result = flag.$vm } + return result = child.selectAllComponents(selector).map(item => item.$vm) + } else { + child.$children && (queue.push(...child.$children)); + } + } + return result + } else { + const { $templateRefs } = context.$ + const selectorValue = /#|\.|@|$/.test(selector) ? selector.substring(1) : selector + const nameMap = {} + for (var i = 0; i < $templateRefs.length; i++) { + const item = $templateRefs[i] + nameMap[item.i] = item.r + } + let result = [] + if (context.$children.length) { + const queue = [...context.$children] + while (queue.length > 0) { + const child = queue.shift(); + if (child.type?.name === selectorValue || child.$?.type?.name === selectorValue) { + result.push(child) + } else if (child.$refs && child.$refs[selectorValue]) { + result = child.$refs[selectorValue] + } else if (nameMap[child.id] === selectorValue) { + result.push(child) + } else { + child.$children && (queue.push(...child.$children)); + } + if (result.length && !needAll) { + return; + } + } + } + return needAll ? result : result[0] + } +} +// #endif + +// #ifdef H5 +function findChildren(selector : string, context : ComponentPublicInstance, needAll : boolean){ + const {_, component } = context + const child = {component: _ || component || context, children: null , subTree: null, props: null} + let result = [] + let queue = [child] + const selectorValue = /#|\.|@|$/.test(selector) ? selector.substring(1) : selector + while(queue.length > 0 ) { + const child = queue.shift() + const {component, children , props, subTree} = child + if(component?.type?.name == selectorValue) { + result.push(component) + } else if(selector.startsWith('$') && component && (props?.ref == selectorValue || component[key][selectorValue])) { + if(props?.ref == selectorValue) { + //exposed + result.push(component) + } else if(component[key][selectorValue]) { + result.push(component[key][selectorValue]) + } + } else if(!selector.startsWith('$') && component?.exposed && new RegExp(`\\b${selectorValue}\\b`).test(component.attrs[key])) { + // exposed + result.push(component) + } else if(children && Array.isArray(children)) { + queue.push(...children) + } else if(!component && subTree) { + queue.push(subTree) + } else if(component?.subTree) { + queue.push(component.subTree) + } + if(result.length && !needAll) { + break + } + } + return needAll ? result : result[0] +} +// #endif + +// #ifdef APP +function findChildren(selector : string, context : ComponentPublicInstance, needAll : boolean){ + let result = [] + const selectorValue = /#|\.|@|$/.test(selector) ? selector.substring(1) : selector + const queue = [context] + while(queue.length > 0) { + const child = queue.shift() + const {component, children, props, subTree} = child + const isComp = component && props && component.exposed && !node + if(child.type && child.type.name === selectorValue) { + result.push(component) + } else if(props?.[key] === selectorValue && node) { + result.push(child) + } else if(selector.startsWith('$') && isComp && (props.ref === selectorValue || props.ref_key === selectorValue)) { + // exposed + result.push(component) + } else if(!selector.startsWith('$') && isComp && new RegExp(`\\b${selectorValue}\\b`).test(props[key])) { + // exposed + result.push(component) + } + else if(subTree) { + queue.push(subTree) + } else if(component && component.subTree){ + queue.push(component.subTree) + } + else if(children && Array.isArray(children)) { + queue.push(...children) + } + if(result.length && !needAll) { + break; + } + } + return needAll ? result : result[0] +} +// #endif + +class Query { + context : ComponentPublicInstance | null = null + selector : string = '' + // components : ComponentPublicInstance[] = [] + constructor(selector : string, context : ComponentPublicInstance | null) { + this.selector = selector + this.context = context + } + in(context : ComponentPublicInstance) : Query { + return new Query(this.selector, context) + } + find() : ComponentPublicInstance | null { + return findChildren(this.selector, this.context, false) + } + findAll() : ComponentPublicInstance[] | null { + return findChildren(this.selector, this.context, true) + } + closest() : ComponentPublicInstance | null { + return null + } +} + +export function selectComponent(selector: string) { + return new Query(selector) +} \ No newline at end of file diff --git a/uni_modules/lime-shared/selectElement/index.uts b/uni_modules/lime-shared/selectElement/index.uts new file mode 100644 index 0000000..d189583 --- /dev/null +++ b/uni_modules/lime-shared/selectElement/index.uts @@ -0,0 +1,275 @@ +// @ts-nocheck +import {isDef} from '../isDef' +import {ComponentPublicInstance} from 'vue' + +type HasSelectorFunc = (selector : string, element : UniElement) => boolean + +const hasSelectorClassName : HasSelectorFunc = (selector : string, element : UniElement) : boolean => { + return element.classList.includes(selector) +} +const hasSelectorId : HasSelectorFunc = (selector : string, element : UniElement) : boolean => { + return element.getAttribute("id") == selector +} +const hasSelectorTagName : HasSelectorFunc = (selector : string, element : UniElement) : boolean => { + return element.tagName!.toLowerCase() == selector.toLowerCase() +} + +type ProcessSelectorResult = { + selectorValue : string + hasSelector : HasSelectorFunc +} +const processSelector = (selector : string) : ProcessSelectorResult => { + + const selectorValue = /#|\./.test(selector) ? selector.substring(1) : selector + let hasSelector : HasSelectorFunc + + if (selector.startsWith('.')) { + hasSelector = hasSelectorClassName + } else if (selector.startsWith('#')) { + hasSelector = hasSelectorId + } else { + hasSelector = hasSelectorTagName + } + + return { + selectorValue, + hasSelector + } as ProcessSelectorResult +} + + +function isNotEmptyString(str:string): boolean { + return str.length > 0; +} + +function isElement(element:UniElement|null):boolean { + return isDef(element) && element?.tagName != 'COMMENT'; +} + +type ElementArray = Array +class Query { + context : ComponentPublicInstance | null = null + selector : string = '' + elements : ElementArray = [] + constructor(selector : string | null, context : ComponentPublicInstance | null) { + this.context = context + if(selector != null){ + this.selector = selector + } + this.find(this.selector) + } + in(context : ComponentPublicInstance) : Query { + return new Query(this.selector, context) + } + findAll(selector : string): Query { + if (isDef(this.context)) { + const root = this.context?.$el //as Element | null; + if (isDef(root)) { + this.elements = [root!] //as ElementArray + } + const { selectorValue, hasSelector } = processSelector(selector) + const foundElements : ElementArray = []; + + function findChildren(element : UniElement) { + element.children.forEach((child : UniElement) => { + if (hasSelector(selectorValue, child)) { + foundElements.push(child) + } + }) + } + this.elements.forEach(el => { + findChildren(el!); + }); + this.elements = foundElements + } else if (selector.startsWith('#')) { + const element = uni.getElementById(selector) + if (isElement(element!)) { + this.elements = [element] + } + } + return this; + } + /** + * 在当前元素集合中查找匹配的元素 + */ + find(selector : string) : Query { + if (isDef(this.context)) { + const root = this.context?.$el //as Element | null; + if (isElement(root)) { + this.elements = [root] //as ElementArray + } + if(isNotEmptyString(selector) && this.elements.length > 0){ + const { selectorValue, hasSelector } = processSelector(selector) + const foundElements : ElementArray = []; + function findChildren(element : UniElement) { + element.children.forEach((child : UniElement) => { + if (hasSelector(selectorValue, child) && foundElements.length < 1) { + foundElements.push(child) + } + if (foundElements.length < 1) { + findChildren(child); + } + }) + } + this.elements.forEach(el => { + findChildren(el!); + }); + this.elements = foundElements + } + + } else if (selector.startsWith('#')) { + const element = uni.getElementById(selector) + if (isElement(element!)) { + this.elements = [element] + } + } + return this; + } + /** + * 获取当前元素集合的直接子元素 + */ + children() : Query { + // if (this.elements.length > 0) { + // const children = this.elements.reduce((acc, el) => [...acc, ...Array.from(el.children)], []); + // this.elements = children; + // } + return this; + } + /** + * 获取当前元素集合的父元素 + */ + parent() : Query { + // if (this.elements.length > 0) { + // const parents = this.elements.map(el => el.parentElement).filter(parent => parent !== null) as ElementArray; + // this.elements = parents + // // this.elements = Array.from(new Set(parents)); + // } + return this; + } + /** + * 获取当前元素集合的兄弟元素 + */ + siblings() : Query { + // if (this.elements.length > 0) { + // const siblings = this.elements.reduce((acc, el) => [...acc, ...Array.from(el.parentElement?.children || [])], []); + // this.elements = siblings.filter(sibling => sibling !== null && !this.elements?.includes(sibling)); + // } + return this; + } + /** + * 获取当前元素集合的下一个兄弟元素 + */ + next() : Query { + // if (this.elements.length > 0) { + // const nextElements = this.elements.map(el => el.nextElementSibling).filter(next => next !== null) as ElementArray; + // this.elements = nextElements; + // } + return this; + } + /** + * 获取当前元素集合的上一个兄弟元素 + */ + prev() : Query { + // if (this.elements.length > 0) { + // const prevElements = this.elements.map(el => el.previousElementSibling).filter(prev => prev !== null) as ElementArray; + // this.elements = prevElements; + // } + return this; + } + /** + * 从当前元素开始向上查找匹配的元素 + */ + closest(selector : string) : Query { + if (isDef(this.context)) { + // && this.context.$parent != null && this.context.$parent.$el !== null + if(this.elements.length == 0 && isDef(this.context?.$parent) && isElement(this.context!.$parent?.$el)){ + this.elements = [this.context!.$parent?.$el!] + } + + const selectorsArray = selector.split(',') + // const { selectorValue, hasSelector } = processSelector(selector) + const processedSelectors = selectorsArray.map((selector: string):ProcessSelectorResult => processSelector(selector)) + const closestElements = this.elements.map((el) : UniElement | null => { + let closestElement : UniElement | null = el + while (closestElement !== null) { + // if (hasSelector(selectorValue, closestElement)) { + // break; + // } + const isMatchingSelector = processedSelectors.some(({selectorValue, hasSelector}):boolean => { + return hasSelector(selectorValue, closestElement!) + }) + if(isMatchingSelector){ + break; + } + closestElement = closestElement.parentElement; + } + return closestElement + }) + this.elements = closestElements.filter((closest : UniElement | null) : boolean => isDef(closest))// as ElementArray + + } + return this; + } + + /** + * 从当前元素集合中过滤出匹配的元素 + */ + filter() : Query { + + return this; + } + /** + * 从当前元素集合中排除匹配的元素 + */ + not() { } + /** + * 从当前元素集合中查找包含匹配元素的元素 + */ + has() { } + /** + * 获取当前元素集合的第一个 + */ + first() : Query { + if (this.elements.length > 0) { + // this.elements = [this.elements[0]]; + } + return this; + } + /** + * 最后一个元素 + */ + last() : Query { + if (this.elements.length > 0) { + // this.elements = [this.elements[this.elements.length - 1]]; + } + return this; + } + /** + * 获取当前元素在其兄弟元素中的索引 + */ + index() : number | null { + // if (this.elements.length > 0 && this.elements.length > 0 && this.elements[0].parentElement !== null) { + // return Array.from(this.elements[0].parentElement.children).indexOf(this.elements[0]); + // } + return null; + } + get(index : number) : UniElement | null { + if (this.elements.length > index) { + return this.elements[index] //as Element + } + return null + } +} + +export function selectElement(selector : string | null = null) : Query { + // if(typeof selector == 'string' || selector == null){ + // return new Query(selector as string | null, null) + // } + // else if(selector instanceof ComponentPublicInstance){ + // return new Query(null, selector) + // } + return new Query(selector, null) +} + +// $('xxx').in(this).find('xxx') +// $('xxx').in(this).get() \ No newline at end of file diff --git a/uni_modules/lime-shared/sleep/index.ts b/uni_modules/lime-shared/sleep/index.ts new file mode 100644 index 0000000..4e140ea --- /dev/null +++ b/uni_modules/lime-shared/sleep/index.ts @@ -0,0 +1,44 @@ +// @ts-nocheck +/** + * 延迟指定时间后解析的 Promise + * @param delay 延迟的时间(以毫秒为单位),默认为 300 毫秒 + * @returns 一个 Promise,在延迟结束后解析 + */ + + +// #ifdef APP-IOS || APP-ANDROID +function sleep(delay: number = 300):Promise { + return new Promise((resolve):void => {setTimeout(() => {resolve(true)}, delay)}); +} +export { + sleep +} + +// #endif + +// #ifndef APP-IOS || APP-ANDROID +export const sleep = (delay: number = 300) => + new Promise(resolve => setTimeout(resolve, delay)); + +// #endif + +// 示例 +// async function example() { +// console.log("Start"); + +// // 延迟 1 秒后执行 +// await sleep(1000); +// console.log("1 second later"); + +// // 延迟 500 毫秒后执行 +// await sleep(500); +// console.log("500 milliseconds later"); + +// // 延迟 2 秒后执行 +// await sleep(2000); +// console.log("2 seconds later"); + +// console.log("End"); +// } + +// example(); \ No newline at end of file diff --git a/uni_modules/lime-shared/throttle/index.ts b/uni_modules/lime-shared/throttle/index.ts new file mode 100644 index 0000000..fe8f90f --- /dev/null +++ b/uni_modules/lime-shared/throttle/index.ts @@ -0,0 +1,77 @@ +// @ts-nocheck +/** + * 节流函数,用于限制函数的调用频率 + * @param fn 要进行节流的函数 + * @param delay 两次调用之间的最小间隔时间 + * @returns 节流后的函数 + */ + +// #ifndef APP-IOS || APP-ANDROID +export function throttle(fn: (...args: any[]) => void, delay: number) { + let flag = true; // 标记是否可以执行函数 + + return (...args: any[]) => { + if (flag) { + flag = false; // 设置为不可执行状态 + fn(...args); // 执行传入的函数 + + setTimeout(() => { + flag = true; // 经过指定时间后,设置为可执行状态 + }, delay); + } + }; +} +// #endif + + +// #ifdef APP-IOS || APP-ANDROID +// type Rfun = (...args: any[]) => void +// type Rfun = (...args: any[]) => void + +export function throttle( + fn: (args : T) => void, + delay: number):(args : T) => void { + let flag = true; // 标记是否可以执行函数 + + return (args : T) =>{ + if(flag){ + flag = false; + fn(args); + + setTimeout(()=>{ + flag = true; + }, delay) + } + } + // return (...args: any[]) => { + // // if (flag) { + // // flag = false; // 设置为不可执行状态 + // // fn(...args); // 执行传入的函数 + + // // setTimeout(() => { + // // flag = true; // 经过指定时间后,设置为可执行状态 + // // }, delay); + // // } + // }; +} + +// #endif + +// // 示例 +// // 定义一个被节流的函数 +// function handleScroll() { +// console.log("Scroll event handled!"); +// } + +// // 使用节流函数对 handleScroll 进行节流,间隔时间为 500 毫秒 +// const throttledScroll = throttle(handleScroll, 500); + +// // 模拟多次调用 handleScroll +// throttledScroll(); // 输出 "Scroll event handled!" +// throttledScroll(); // 不会输出 +// throttledScroll(); // 不会输出 + +// // 经过 500 毫秒后,再次调用 handleScroll +// setTimeout(() => { +// throttledScroll(); // 输出 "Scroll event handled!" +// }, 500); \ No newline at end of file diff --git a/uni_modules/lime-shared/toArray/index.ts b/uni_modules/lime-shared/toArray/index.ts new file mode 100644 index 0000000..637ba65 --- /dev/null +++ b/uni_modules/lime-shared/toArray/index.ts @@ -0,0 +1,21 @@ +// @ts-nocheck +/** + * 将一个或多个元素转换为数组 + * @param item 要转换为数组的元素 + * @returns 转换后的数组 + */ +// #ifndef APP-IOS || APP-ANDROID +export const toArray = (item: T | T[]): T[] => Array.isArray(item) ? item : [item]; +// #endif + + +// #ifdef APP-IOS || APP-ANDROID +export function toArray(item: any): T[] { + return Array.isArray(item) ? item as T[] : [item as T]// as T[] +}; +// #endif +// 示例 +// console.log(toArray(5)); // 输出: [5] +// console.log(toArray("hello")); // 输出: ["hello"] +// console.log(toArray([1, 2, 3])); // 输出: [1, 2, 3] +// console.log(toArray(["apple", "banana"])); // 输出: ["apple", "banana"] \ No newline at end of file diff --git a/uni_modules/lime-shared/toBoolean/index.ts b/uni_modules/lime-shared/toBoolean/index.ts new file mode 100644 index 0000000..3ee9d2c --- /dev/null +++ b/uni_modules/lime-shared/toBoolean/index.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import { isNumber } from '../isNumber' +import { isString } from '../isString' +// 函数重载,定义多个函数签名 +// function toBoolean(value : any) : boolean; +// function toBoolean(value : string) : boolean; +// function toBoolean(value : number) : boolean; +// function toBoolean(value : boolean) : boolean; + +// #ifdef APP-IOS || APP-ANDROID +function toBoolean(value : any | null) : boolean { + // 根据输入值的类型,返回相应的布尔值 + // if (isNumber(value)) { + // return (value as number) != 0; + // } + // if (isString(value)) { + // return `${value}`.length > 0; + // } + // if (typeof value == 'boolean') { + // return value as boolean; + // } + // #ifdef APP-IOS + return value != null && value != undefined + // #endif + // #ifdef APP-ANDROID + return value != null + // #endif +} +// #endif + + +// #ifndef APP-IOS || APP-ANDROID +function toBoolean(value : any | null) : value is NonNullable { + return !!value//value !== null && value !== undefined; +} +// #endif + +export { + toBoolean +} \ No newline at end of file diff --git a/uni_modules/lime-shared/toNumber/index.ts b/uni_modules/lime-shared/toNumber/index.ts new file mode 100644 index 0000000..758e6bf --- /dev/null +++ b/uni_modules/lime-shared/toNumber/index.ts @@ -0,0 +1,28 @@ +// @ts-nocheck +/** + * 将字符串转换为数字 + * @param val 要转换的字符串 + * @returns 转换后的数字或原始字符串 + */ + +// #ifdef APP-IOS || APP-ANDROID +// function toNumber(val: string): number +// function toNumber(val: string): string +function toNumber(val: string): number|null { + const n = parseFloat(val); // 使用 parseFloat 函数将字符串转换为浮点数 + return isNaN(n) ? null : n; // 使用 isNaN 函数判断是否为非数字,返回转换后的数字或原始字符串 +} +export {toNumber} +// #endif + +// #ifndef APP-IOS || APP-ANDROID +export function toNumber(val: string): number | string { + const n = parseFloat(val); // 使用 parseFloat 函数将字符串转换为浮点数 + return isNaN(n) ? val : n; // 使用 isNaN 函数判断是否为非数字,返回转换后的数字或原始字符串 +} +// #endif + +// 示例 +// console.log(toNumber("123")); // 输出: 123 +// console.log(toNumber("3.14")); // 输出: 3.14 +// console.log(toNumber("hello")); // 输出: "hello" \ No newline at end of file diff --git a/uni_modules/lime-shared/unitConvert/index.ts b/uni_modules/lime-shared/unitConvert/index.ts new file mode 100644 index 0000000..696bec3 --- /dev/null +++ b/uni_modules/lime-shared/unitConvert/index.ts @@ -0,0 +1,73 @@ +// @ts-nocheck +import { isString } from '../isString' +import { isNumeric } from '../isNumeric' + +/** + * 单位转换函数,将字符串数字或带有单位的字符串转换为数字 + * @param value 要转换的值,可以是字符串数字或带有单位的字符串 + * @returns 转换后的数字,如果无法转换则返回0 + */ +// #ifndef APP-IOS || APP-ANDROID +export function unitConvert(value : string | number) : number { + // 如果是字符串数字 + if (isNumeric(value)) { + return Number(value); + } + // 如果有单位 + if (isString(value)) { + const reg = /^-?([0-9]+)?([.]{1}[0-9]+){0,1}(em|rpx|px|%)$/g; + const results = reg.exec(value); + if (!value || !results) { + return 0; + } + const unit = results[3]; + value = parseFloat(value); + if (unit === 'rpx') { + return uni.upx2px(value); + } + if (unit === 'px') { + return value * 1; + } + // 如果是其他单位,可以继续添加对应的转换逻辑 + } + return 0; +} +// #endif + + +// #ifdef APP-IOS || APP-ANDROID +import { isNumber } from '../isNumber' +export function unitConvert(value : any | null) : number { + if (isNumber(value)) { + return value as number + } + // 如果是字符串数字 + if (isNumeric(value)) { + return parseFloat(value as string); + } + // 如果有单位 + if (isString(value)) { + const reg = /^-?([0-9]+)?([.]{1}[0-9]+){0,1}(em|rpx|px|%)$/g; + const results = reg.exec(value as string); + if (results == null) { + return 0; + } + const unit = results[3]; + const v = parseFloat(value); + if (unit == 'rpx') { + const { windowWidth } = uni.getWindowInfo() + return windowWidth / 750 * v; + } + if (unit == 'px') { + return v; + } + // 如果是其他单位,可以继续添加对应的转换逻辑 + } + return 0; +} +// #endif +// 示例 +// console.log(unitConvert("123")); // 输出: 123 (字符串数字转换为数字) +// console.log(unitConvert("3.14em")); // 输出: 0 (无法识别的单位) +// console.log(unitConvert("20rpx")); // 输出: 根据具体情况而定 (根据单位进行转换) +// console.log(unitConvert(10)); // 输出: 10 (数字不需要转换) \ No newline at end of file diff --git a/uni_modules/lime-shared/vue/index.ts b/uni_modules/lime-shared/vue/index.ts new file mode 100644 index 0000000..07f7135 --- /dev/null +++ b/uni_modules/lime-shared/vue/index.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +// #ifdef VUE3 +export * from 'vue'; +// #endif + +// #ifndef VUE3 +export * from '@vue/composition-api'; + +// #ifdef APP-NVUE +import Vue from 'vue' +import VueCompositionAPI from '@vue/composition-api' +Vue.use(VueCompositionAPI) +// #endif + +// #endif diff --git a/uni_modules/uni-config-center/changelog.md b/uni_modules/uni-config-center/changelog.md new file mode 100644 index 0000000..57dbcb5 --- /dev/null +++ b/uni_modules/uni-config-center/changelog.md @@ -0,0 +1,6 @@ +## 0.0.3(2022-11-11) +- 修复 config 方法获取根节点为数组格式配置时错误的转化为了对象的Bug +## 0.0.2(2021-04-16) +- 修改插件package信息 +## 0.0.1(2021-03-15) +- 初始化项目 diff --git a/uni_modules/uni-config-center/package.json b/uni_modules/uni-config-center/package.json new file mode 100644 index 0000000..bace866 --- /dev/null +++ b/uni_modules/uni-config-center/package.json @@ -0,0 +1,81 @@ +{ + "id": "uni-config-center", + "displayName": "uni-config-center", + "version": "0.0.3", + "description": "uniCloud 配置中心", + "keywords": [ + "配置", + "配置中心" +], + "repository": "", + "engines": { + "HBuilderX": "^3.1.0" + }, +"dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "", + "type": "unicloud-template-function" + }, + "directories": { + "example": "../../../scripts/dist" + }, + "uni_modules": { + "dependencies": [], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "App": { + "app-vue": "u", + "app-nvue": "u" + }, + "H5-mobile": { + "Safari": "u", + "Android Browser": "u", + "微信浏览器(Android)": "u", + "QQ浏览器(Android)": "u" + }, + "H5-pc": { + "Chrome": "u", + "IE": "u", + "Edge": "u", + "Firefox": "u", + "Safari": "u" + }, + "小程序": { + "微信": "u", + "阿里": "u", + "百度": "u", + "字节跳动": "u", + "QQ": "u" + }, + "快应用": { + "华为": "u", + "联盟": "u" + }, + "Vue": { + "vue2": "y", + "vue3": "u" + } + } + } + } +} diff --git a/uni_modules/uni-config-center/readme.md b/uni_modules/uni-config-center/readme.md new file mode 100644 index 0000000..03f7fc2 --- /dev/null +++ b/uni_modules/uni-config-center/readme.md @@ -0,0 +1,93 @@ +# 为什么使用uni-config-center + +实际开发中很多插件需要配置文件才可以正常运行,如果每个插件都单独进行配置的话就会产生下面这样的目录结构 + +```bash +cloudfunctions +└─────common 公共模块 + ├─plugin-a // 插件A对应的目录 + │ ├─index.js + │ ├─config.json // plugin-a对应的配置文件 + │ └─other-file.cert // plugin-a依赖的其他文件 + └─plugin-b // plugin-b对应的目录 + ├─index.js + └─config.json // plugin-b对应的配置文件 +``` + +假设插件作者要发布一个项目模板,里面使用了很多需要配置的插件,无论是作者发布还是用户使用都是一个大麻烦。 + +uni-config-center就是用了统一管理这些配置文件的,使用uni-config-center后的目录结构如下 + +```bash +cloudfunctions +└─────common 公共模块 + ├─plugin-a // 插件A对应的目录 + │ └─index.js + ├─plugin-b // plugin-b对应的目录 + │ └─index.js + └─uni-config-center + ├─index.js // config-center入口文件 + ├─plugin-a + │ ├─config.json // plugin-a对应的配置文件 + │ └─other-file.cert // plugin-a依赖的其他文件 + └─plugin-b + └─config.json // plugin-b对应的配置文件 +``` + +使用uni-config-center后的优势 + +- 配置文件统一管理,分离插件主体和配置信息,更新插件更方便 +- 支持对config.json设置schema,插件使用者在HBuilderX内编写config.json文件时会有更好的提示(后续HBuilderX会提供支持) + +# 用法 + +在要使用uni-config-center的公共模块或云函数内引入uni-config-center依赖,请参考:[使用公共模块](https://uniapp.dcloud.net.cn/uniCloud/cf-common) + +```js +const createConfig = require('uni-config-center') + +const uniIdConfig = createConfig({ + pluginId: 'uni-id', // 插件id + defaultConfig: { // 默认配置 + tokenExpiresIn: 7200, + tokenExpiresThreshold: 600, + }, + customMerge: function(defaultConfig, userConfig) { // 自定义默认配置和用户配置的合并规则,不设置的情况侠会对默认配置和用户配置进行深度合并 + // defaudltConfig 默认配置 + // userConfig 用户配置 + return Object.assign(defaultConfig, userConfig) + } +}) + + +// 以如下配置为例 +// { +// "tokenExpiresIn": 7200, +// "passwordErrorLimit": 6, +// "bindTokenToDevice": false, +// "passwordErrorRetryTime": 3600, +// "app-plus": { +// "tokenExpiresIn": 2592000 +// }, +// "service": { +// "sms": { +// "codeExpiresIn": 300 +// } +// } +// } + +// 获取配置 +uniIdConfig.config() // 获取全部配置,注意:uni-config-center内不存在对应插件目录时会返回空对象 +uniIdConfig.config('tokenExpiresIn') // 指定键值获取配置,返回:7200 +uniIdConfig.config('service.sms.codeExpiresIn') // 指定键值获取配置,返回:300 +uniIdConfig.config('tokenExpiresThreshold', 600) // 指定键值获取配置,如果不存在则取传入的默认值,返回:600 + +// 获取文件绝对路径 +uniIdConfig.resolve('custom-token.js') // 获取uni-config-center/uni-id/custom-token.js文件的路径 + +// 引用文件(require) +uniIDConfig.requireFile('custom-token.js') // 使用require方式引用uni-config-center/uni-id/custom-token.js文件。文件不存在时返回undefined,文件内有其他错误导致require失败时会抛出错误。 + +// 判断是否包含某文件 +uniIDConfig.hasFile('custom-token.js') // 配置目录是否包含某文件,true: 文件存在,false: 文件不存在 +``` \ No newline at end of file diff --git a/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/index.js b/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/index.js new file mode 100644 index 0000000..00ba62f --- /dev/null +++ b/uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/index.js @@ -0,0 +1 @@ +"use strict";var t=require("fs"),r=require("path");function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t),o=e(r),i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var u=function(t){var r={exports:{}};return t(r,r.exports),r.exports}((function(t,r){var e="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",u="[object Function]",c="[object Object]",a=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s[o]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s[u]=s["[object Map]"]=s["[object Number]"]=s[c]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1;var l="object"==typeof i&&i&&i.Object===Object&&i,h="object"==typeof self&&self&&self.Object===Object&&self,p=l||h||Function("return this")(),_=r&&!r.nodeType&&r,v=_&&t&&!t.nodeType&&t,d=v&&v.exports===_,y=d&&l.process,g=function(){try{var t=v&&v.require&&v.require("util").types;return t||y&&y.binding&&y.binding("util")}catch(t){}}(),b=g&&g.isTypedArray;function j(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}var w,O,m,A=Array.prototype,z=Function.prototype,M=Object.prototype,x=p["__core-js_shared__"],C=z.toString,F=M.hasOwnProperty,U=(w=/[^.]+$/.exec(x&&x.keys&&x.keys.IE_PROTO||""))?"Symbol(src)_1."+w:"",S=M.toString,I=C.call(Object),P=RegExp("^"+C.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T=d?p.Buffer:void 0,q=p.Symbol,E=p.Uint8Array,$=T?T.allocUnsafe:void 0,D=(O=Object.getPrototypeOf,m=Object,function(t){return O(m(t))}),k=Object.create,B=M.propertyIsEnumerable,N=A.splice,L=q?q.toStringTag:void 0,R=function(){try{var t=vt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),G=T?T.isBuffer:void 0,V=Math.max,W=Date.now,H=vt(p,"Map"),J=vt(Object,"create"),K=function(){function t(){}return function(r){if(!xt(r))return{};if(k)return k(r);t.prototype=r;var e=new t;return t.prototype=void 0,e}}();function Q(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r-1},X.prototype.set=function(t,r){var e=this.__data__,n=nt(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this},Y.prototype.clear=function(){this.size=0,this.__data__={hash:new Q,map:new(H||X),string:new Q}},Y.prototype.delete=function(t){var r=_t(this,t).delete(t);return this.size-=r?1:0,r},Y.prototype.get=function(t){return _t(this,t).get(t)},Y.prototype.has=function(t){return _t(this,t).has(t)},Y.prototype.set=function(t,r){var e=_t(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this},Z.prototype.clear=function(){this.__data__=new X,this.size=0},Z.prototype.delete=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e},Z.prototype.get=function(t){return this.__data__.get(t)},Z.prototype.has=function(t){return this.__data__.has(t)},Z.prototype.set=function(t,r){var e=this.__data__;if(e instanceof X){var n=e.__data__;if(!H||n.length<199)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new Y(n)}return e.set(t,r),this.size=e.size,this};var it,ut=function(t,r,e){for(var n=-1,o=Object(t),i=e(t),u=i.length;u--;){var c=i[it?u:++n];if(!1===r(o[c],c,o))break}return t};function ct(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":L&&L in Object(t)?function(t){var r=F.call(t,L),e=t[L];try{t[L]=void 0;var n=!0}catch(t){}var o=S.call(t);n&&(r?t[L]=e:delete t[L]);return o}(t):function(t){return S.call(t)}(t)}function at(t){return Ct(t)&&ct(t)==o}function ft(t){return!(!xt(t)||function(t){return!!U&&U in t}(t))&&(zt(t)?P:a).test(function(t){if(null!=t){try{return C.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function st(t){if(!xt(t))return function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}(t);var r=yt(t),e=[];for(var n in t)("constructor"!=n||!r&&F.call(t,n))&&e.push(n);return e}function lt(t,r,e,n,o){t!==r&&ut(r,(function(i,u){if(o||(o=new Z),xt(i))!function(t,r,e,n,o,i,u){var a=gt(t,e),f=gt(r,e),s=u.get(f);if(s)return void rt(t,e,s);var l=i?i(a,f,e+"",t,r,u):void 0,h=void 0===l;if(h){var p=Ot(f),_=!p&&At(f),v=!p&&!_&&Ft(f);l=f,p||_||v?Ot(a)?l=a:Ct(j=a)&&mt(j)?l=function(t,r){var e=-1,n=t.length;r||(r=Array(n));for(;++e-1&&t%1==0&&t0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}(pt);function jt(t,r){return t===r||t!=t&&r!=r}var wt=at(function(){return arguments}())?at:function(t){return Ct(t)&&F.call(t,"callee")&&!B.call(t,"callee")},Ot=Array.isArray;function mt(t){return null!=t&&Mt(t.length)&&!zt(t)}var At=G||function(){return!1};function zt(t){if(!xt(t))return!1;var r=ct(t);return r==u||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}function Mt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}function xt(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}function Ct(t){return null!=t&&"object"==typeof t}var Ft=b?function(t){return function(r){return t(r)}}(b):function(t){return Ct(t)&&Mt(t.length)&&!!s[ct(t)]};function Ut(t){return mt(t)?tt(t,!0):st(t)}var St,It=(St=function(t,r,e){lt(t,r,e)},ht((function(t,r){var e=-1,n=r.length,o=n>1?r[n-1]:void 0,i=n>2?r[2]:void 0;for(o=St.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(t,r,e){if(!xt(e))return!1;var n=typeof r;return!!("number"==n?mt(e)&&dt(r,e.length):"string"==n&&r in e)&&jt(e[r],t)}(r[0],r[1],i)&&(o=n<3?void 0:o,n=1),t=Object(t);++ec.call(t,r);class f{constructor({pluginId:t,defaultConfig:r={},customMerge:e,root:n}){this.pluginId=t,this.defaultConfig=r,this.pluginConfigPath=o.default.resolve(n||__dirname,t),this.customMerge=e,this._config=void 0}resolve(t){return o.default.resolve(this.pluginConfigPath,t)}hasFile(t){return n.default.existsSync(this.resolve(t))}requireFile(t){try{return require(this.resolve(t))}catch(t){if("MODULE_NOT_FOUND"===t.code)return;throw t}}_getUserConfig(){return this.requireFile("config.json")}config(t,r){if(!this._config){const t=this._getUserConfig();this._config=Array.isArray(t)?t:(this.customMerge||u)(this.defaultConfig,t)}let e=this._config;return t?function(t,r,e){if("number"==typeof r)return t[r];if("symbol"==typeof r)return a(t,r)?t[r]:e;const n="string"!=typeof(o=r)?o:o.split(".").reduce(((t,r)=>(r.split(/\[([^}]+)\]/g).forEach((r=>r&&t.push(r))),t)),[]);var o;let i=t;for(let t=0;t { + if (this.disable) { + return + } + const keyName = Object.keys(keyNames).find(key => { + const keyName = $event.key + const value = keyNames[key] + return value === keyName || (Array.isArray(value) && value.includes(keyName)) + }) + if (keyName) { + // 避免和其他按键事件冲突 + setTimeout(() => { + this.$emit(keyName, {}) + }, 0) + } + } + document.addEventListener('keyup', listener) + this.$once('hook:beforeDestroy', () => { + document.removeEventListener('keyup', listener) + }) + }, + render: () => {} +} +// #endif diff --git a/uni_modules/uni-data-picker/components/uni-data-picker/uni-data-picker.uvue b/uni_modules/uni-data-picker/components/uni-data-picker/uni-data-picker.uvue new file mode 100644 index 0000000..82031e1 --- /dev/null +++ b/uni_modules/uni-data-picker/components/uni-data-picker/uni-data-picker.uvue @@ -0,0 +1,380 @@ + + + + + diff --git a/uni_modules/uni-data-picker/components/uni-data-picker/uni-data-picker.vue b/uni_modules/uni-data-picker/components/uni-data-picker/uni-data-picker.vue new file mode 100644 index 0000000..4e06ae6 --- /dev/null +++ b/uni_modules/uni-data-picker/components/uni-data-picker/uni-data-picker.vue @@ -0,0 +1,554 @@ + + + + + diff --git a/uni_modules/uni-data-picker/components/uni-data-pickerview/loading.uts b/uni_modules/uni-data-picker/components/uni-data-pickerview/loading.uts new file mode 100644 index 0000000..baa0dff --- /dev/null +++ b/uni_modules/uni-data-picker/components/uni-data-pickerview/loading.uts @@ -0,0 +1 @@ +export const imgbase : string = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzlBMzU3OTlEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzlBMzU3OUFEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDOUEzNTc5N0Q5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDOUEzNTc5OEQ5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pt+ALSwAAA6CSURBVHja1FsLkFZVHb98LM+F5bHL8khA1iSeiyQBCRM+YGqKUnnJTDLGI0BGZlKDIU2MMglUiDApEZvSsZnQtBRJtKwQNKQMFYeRDR10WOLd8ljYXdh+v8v5fR3Od+797t1dnOnO/Ofce77z+J//+b/P+ZqtXbs2sJ9MJhNUV1cHJ06cCJo3bx7EPc2aNcvpy7pWrVoF+/fvDyoqKoI2bdoE9fX1F7TjN8a+EXBn/fkfvw942Tf+wYMHg9mzZwfjxo0LDhw4EPa1x2MbFw/fOGfPng1qa2tzcCkILsLDydq2bRsunpOTMM7TD/W/tZDZhPdeKD+yGxHhdu3aBV27dg3OnDlzMVANMheLAO3btw8KCwuDmpoaX5OxbgUIMEq7K8IcPnw4KCsrC/r37x8cP378/4cAXAB3vqSkJMuiDhTkw+XcuXNhOWbMmKBly5YhUT8xArhyFvP0BfwRsAuwxJZJsm/nzp2DTp06he/OU+cZ64K6o0ePBkOHDg2GDx8e6gEbJ5Q/NHNuAJQ1hgBeHUDlR7nVTkY8rQAvAi4z34vR/mPs1FoRsaCgIJThI0eOBC1atEiFGGV+5MiRoS45efJkqFjJFXV1dQuA012m2WcwTw98fy6CqBdsaiIO4CScrGPHjvk4odhavPquRtFWXEC25VgkREKOCh/qDSq+vn37htzD/mZTOmOc5U7zKzBPEedygWshcDyWvs30igAbU+6oyMgJBCFhwQE0fccxN60Ay9iebbjoDh06hMowjQxT4fXq1SskArmHZpkArvixp/kWzHdMeArExSJEaiXIjjRjRJ4DaAGWpibLzXN3Fm1vA5teBgh3j1Rv3bp1YgKwPdmf2p9zcyNYYgPKMfY0T5f5nNYdw158nJ8QawW4CLKwiOBSEgO/hok2eBydR+3dYH+PLxA5J8Vv0KBBwenTp0P2JWAx6+yFEBfs8lMY+y0SWMBNI9E4ThKi58VKTg3FQZS1RQF1cz27eC0QHMu+3E0SkUowjhVt5VdaWhp07949ZHv2Qd1EjDXM2cla1M0nl3GxAs3J9yREzyTdFVKVFOaE9qRA8GM0WebRuo9JGZKA7Mv2SeS/Z8+eoQ9BArMfFrLGo6jvxbhHbJZnKX2Rzz1O7QhJJ9Cs2ZMaWIyq/zhdeqPNfIoHd58clIQD+JSXl4dKlyIAuBdVXZwFVWKspSSoxE++h8x4k3uCnEhE4I5KwRiFWGOU0QWKiCYLbdoRMRKAu2kQ9vkfLU6dOhX06NEjlH+yMRZSinnuyWnYosVcji8CEA/6Cg2JF+IIUBqnGKUTCNwtwBN4f89RiK1R96DEgO2o0NDmtEdvVFdVVYV+P3UAPUEs6GFwV3PHmXkD4vh74iDFJysVI/MlaQhwKeBNTLYX5VuA8T4/gZxA4MRGFxDB6R7OmYPfyykGRJbyie+XnGYnQIC/coH9+vULiYrxrkL9ZA9+0ykaHIfEpM7ge8TiJ2CsHYwyMfafAF1yCGBHYIbCVDjDjKt7BeB51D+LgQa6OkG7IDYEEtvQ7lnXLKLtLdLuJBpE4gPUXcW2+PkZwOex+4cGDhwYDBkyRL7/HFcEwUGPo/8uWRUpYnfxGHco8HkewLHLyYmAawAPuIFZxhOpDfJQ8gbUv41yORAptMWBNr6oqMhWird5+u+iHmBb2nhjDV7HWBNQTgK8y11l5NetWzc5ULscAtSj7nbNI0skhWeUZCc0W4nyH/jO4Vz0u1IeYhbk4AiwM6tjxIWByHsoZ9qcIBPJd/y+DwPfBESOmCa/QF3WiZHucLlEDpNxcNhmheEOPgdQNx6/VZFQzFZ5TN08AHXQt2Ii3EdyFuUsPtTcGPhW5iMiCNELvz+Gdn9huG4HUJaW/w3g0wxV0XaG7arG2WeKiUWYM4Y7GO5ezshTARbbWGw/DvXkpp/ivVvE0JVoMxN4rpGzJMhE5Pl+xlATsDIqikP9F9D2z3h9nOksEUFhK+qO4rcPkoalMQ/HqJLIyb3F3JdjrCcw1yZ8joyJLR5gCo54etlag7qIoeNh1N1BRYj3DTFJ0elotxPlVzkGuYAmL0VSJVGAJA41c4Z6A3BzTLfn0HYwYKEI6CUAMzZEWvLsIcQOo1AmmyyM72nHJCfYsogflGV6jEk9vyQZXSuq6w4c16NsGcGZbwOPr+H1RkOk2LEzjNepxQkihHSCQ4ynAYNRx2zMKV92CQMWqj8J0BRE8EShxRFN6YrfCRhC0x3r/Zm4IbQCcmJoV0kMamllccR6FjHqUC5F2R/wS2dcymOlfAKOS4KmzQb5cpNC2MC7JhVn5wjXoJ44rYhLh8n0eXOCorJxa7POjbSlCGVczr34/RsAmrcvo9s+wGp3tzVhntxiXiJ4nvEYb4FJkf0O8HocAePmLvCxnL0AORraVekJk6TYjDabRVXfRE2lCN1h6ZQRN1+InUbsCpKwoBZHh0dODN9JBCUffItXxEavTQkUtnfTVAplCWL3JISz29h4NjotnuSsQKJCk8dF+kJR6RARjrqFVmfPnj3ZbK8cIJ0msd6jgHPGtfVTQ8VLmlvh4mct9sobRmPic0DyDQQnx/NlfYUgyz59+oScsH379pAwXABD32nTpoUHIToESeI5mnbE/UqDdyLcafEBf2MCqgC7NwxIbMREJQ0g4D4sfJwnD+AmRrII05cfMWJE+L1169bQr+fip06dGp4oJ83lmYd5wj/EmMa4TaHivo4EeCguYZBnkB5g2aWA69OIEnUHOaGysjIYMGBAMGnSpODYsWPZwCpFmm4lNq+4gSLQA7jcX8DwtjEyRC8wjabnXEx9kfWnTJkSJkAo90xpJVV+FmcVNeYAF5zWngS4C4O91MBxmAv8blLEpbjI5sz9MTdAhcgkCT1RO8mZkAjfiYpTEvStAS53Uw1vAiUGgZ3GpuQEYvoiBqlIan7kSDHnTwJQFNiPu0+5VxCVYhcZIjNrdXUDdp+Eq5AZ3Gkg8QAyVZRZIk4Tl4QAbF9cXJxNYZMAtAokgs4BrNxEpCtteXg7DDTMDKYNSuQdKsnJBek7HxewvxaosWxLYXtw+cJp18217wql4aKCfBNoEu0O5VU+PhctJ0YeXD4C6JQpyrlpSLTojpGGGN5YwNziChdIZLk4lvLcFJ9jMX3QdiImY9bmGQU+TRUL5CHITTRlgF8D9ouD1MfmLoEPl5xokIumZ2cfgMpHt47IW9N64Hsh7wQYYjyIugWuF5fCqYncXRd5vPMWyizzvhi/32+nvG0dZc9vR6fZOu0md5e+uC408FvKSIOZwXlGvxPv95izA2Vtvg1xKFWARI+vMX66HUhpQQb643uW1bSjuTWyw2SBvDrBvjFic1eGGlz5esq3ko9uSIlBRqPuFcCv8F4WIcN12nVaBd0SaYwI6PDDImR11JkqgHcPmQssjxIn6bUshygDFJUTxPMpHk+jfjPgupgdnYV2R/g7xSjtpah8RJBewhwf0gGK6XI92u4wXFEU40afJ4DN4h5LcAd+40HI3JgJecuT0c062W0i2hQJUTcxan3/CMW1PF2K6bbA+Daz4xRs1D3Br1Cm0OihKCqizW78/nXAF/G5TXrEcVzaNMH6CyMswqsAHqDyDLEyou8lwOXnKF8DjI6KjV3KzMBiXkDH8ij/H214J5A596ekrZ3F0zXlWeL7+P5eUrNo3/QwC15uxthuzidy7DzKRwEDaAViiDgKbTbz7CJnzo0bN7pIfIiid8SuPwn25o3QCmpnyjlZkyxPP8EomCJzrGb7GJMx7tNsq4MT2xMUYaiErZOluTzKsnz3gwCeCZyVRZJfYplNEokEjwrPtxlxjeYAk+F1F74VAzPxQRNYYdtpOUvWs8J1sGhBJMNsb7igN8plJs1eSmLIhLKE4rvaCX27gOhLpLOsIzJ7qn/i+wZzcvSOZ23/du8TZjwV8zHIXoP4R3ifBxiFz1dcVpa3aPntPE+c6TmIWE9EtcMmAcPdWAhYhAXxcLOQi9L1WhD1Sc8p1d2oL7XGiRKp8F4A2i8K/nfI+y/gsTDJ/YC/8+AD5Uh04KHiGl+cIFPnBDDrPMjwRGkLXyxO4VGbfQWnDH2v0bVWE3C9QOXlepbgjEfIJQI6XDG3z5ahD9cw2pS78ipB85wyScNTvsVzlzzhL8/jRrnmVjfFJK/m3m4nj9vbgQTguT8XZTjsm672R5uJKEaQmBI/c58gyus8ZDagLpEVSJBIyHp4jn++xqPV71OgQgJYEWOtZ/haxRtKmWOBu8xdBLftWltsY84zE6WIEy/eIOWL+BaayMx+KHtL7EAkqdNDLiEXmEMUHniedtJqg9HmZtfvt26vNi0BdG3Ft3g8ZOf7PAu59TxtzivLNIekyi+wD1i8CuUiD9FXAa8C+/xS3JPmZnomyc7H+fb4/Se0bk41Fel621r4cgVxbq91V4jVqwB7HTe2M7jgB+QWHavZkDRPmZcASoZEmBx6i75bGjPcMdL4/VKGFAGWZkGzPG0XAbdL9A81G5LOmUnC9hHKJeO7dcUMjblSl12867ElFTtaGl20xvvLGPdVz/8TVuU7y0x1PG7vtNg24oz9Uo/Z412++VFWI7Fcog9tu9Lm6gvRmIPv9x1xmQAu6RDkXtbOtlGEmpgD5Nvnyc0dcv0EE6cfdi1HmhMf9wDF3k3gtRvEedhxjpgfqPb9PU9iEJHnyOUA7bQUXh6kq/D7l2iTjWv7XOD530BDr8jIrus+srXjt4MzumJMHuTsBa63YKE1+RR5lBjEikCCnWKWiHdzOgKO+nRIBAF88za/IFmJ3eMZov4CYxGBabcpGL8EYx+SeMXJeRwHNsV/h+vdxeuhEpN3ZyNY78Gm2fknJxVGhyjixPiQvVkNzT1elD9Py/aTAL64Hb9vcYmC9zfdXdT/C1LeGbg4rnBaAihDFJH12W5ulfNCNe/xTsP3bp8ikzJs5BF+5PNfAQYAPaseTdsEcaYAAAAASUVORK5CYII=' \ No newline at end of file diff --git a/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-picker.js b/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-picker.js new file mode 100644 index 0000000..cfae22a --- /dev/null +++ b/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-picker.js @@ -0,0 +1,622 @@ +export default { + props: { + localdata: { + type: [Array, Object], + default () { + return [] + } + }, + spaceInfo: { + type: Object, + default () { + return {} + } + }, + collection: { + type: String, + default: '' + }, + action: { + type: String, + default: '' + }, + field: { + type: String, + default: '' + }, + orderby: { + type: String, + default: '' + }, + where: { + type: [String, Object], + default: '' + }, + pageData: { + type: String, + default: 'add' + }, + pageCurrent: { + type: Number, + default: 1 + }, + pageSize: { + type: Number, + default: 500 + }, + getcount: { + type: [Boolean, String], + default: false + }, + getone: { + type: [Boolean, String], + default: false + }, + gettree: { + type: [Boolean, String], + default: false + }, + manual: { + type: Boolean, + default: false + }, + value: { + type: [Array, String, Number], + default () { + return [] + } + }, + modelValue: { + type: [Array, String, Number], + default () { + return [] + } + }, + preload: { + type: Boolean, + default: false + }, + stepSearh: { + type: Boolean, + default: true + }, + selfField: { + type: String, + default: '' + }, + parentField: { + type: String, + default: '' + }, + multiple: { + type: Boolean, + default: false + }, + map: { + type: Object, + default () { + return { + text: "text", + value: "value" + } + } + } + }, + data() { + return { + loading: false, + errorMessage: '', + loadMore: { + contentdown: '', + contentrefresh: '', + contentnomore: '' + }, + dataList: [], + selected: [], + selectedIndex: 0, + page: { + current: this.pageCurrent, + size: this.pageSize, + count: 0 + } + } + }, + computed: { + isLocalData() { + return !this.collection.length; + }, + isCloudData() { + return this.collection.length > 0; + }, + isCloudDataList() { + return (this.isCloudData && (!this.parentField && !this.selfField)); + }, + isCloudDataTree() { + return (this.isCloudData && this.parentField && this.selfField); + }, + dataValue() { + let isModelValue = Array.isArray(this.modelValue) ? (this.modelValue.length > 0) : (this.modelValue !== null || + this.modelValue !== undefined); + return isModelValue ? this.modelValue : this.value; + }, + hasValue() { + if (typeof this.dataValue === 'number') { + return true + } + return (this.dataValue != null) && (this.dataValue.length > 0) + } + }, + created() { + this.$watch(() => { + var al = []; + ['pageCurrent', + 'pageSize', + 'spaceInfo', + 'value', + 'modelValue', + 'localdata', + 'collection', + 'action', + 'field', + 'orderby', + 'where', + 'getont', + 'getcount', + 'gettree' + ].forEach(key => { + al.push(this[key]) + }); + return al + }, (newValue, oldValue) => { + let needReset = false + for (let i = 2; i < newValue.length; i++) { + if (newValue[i] != oldValue[i]) { + needReset = true + break + } + } + if (newValue[0] != oldValue[0]) { + this.page.current = this.pageCurrent + } + this.page.size = this.pageSize + + this.onPropsChange() + }) + this._treeData = [] + }, + methods: { + onPropsChange() { + this._treeData = []; + }, + + // 填充 pickview 数据 + async loadData() { + if (this.isLocalData) { + this.loadLocalData(); + } else if (this.isCloudDataList) { + this.loadCloudDataList(); + } else if (this.isCloudDataTree) { + this.loadCloudDataTree(); + } + }, + + // 加载本地数据 + async loadLocalData() { + this._treeData = []; + this._extractTree(this.localdata, this._treeData); + + let inputValue = this.dataValue; + if (inputValue === undefined) { + return; + } + + if (Array.isArray(inputValue)) { + inputValue = inputValue[inputValue.length - 1]; + if (typeof inputValue === 'object' && inputValue[this.map.value]) { + inputValue = inputValue[this.map.value]; + } + } + + this.selected = this._findNodePath(inputValue, this.localdata); + }, + + // 加载 Cloud 数据 (单列) + async loadCloudDataList() { + if (this.loading) { + return; + } + this.loading = true; + + try { + let response = await this.getCommand(); + let responseData = response.result.data; + + this._treeData = responseData; + + this._updateBindData(); + this._updateSelected(); + + this.onDataChange(); + } catch (e) { + this.errorMessage = e; + } finally { + this.loading = false; + } + }, + + // 加载 Cloud 数据 (树形) + async loadCloudDataTree() { + if (this.loading) { + return; + } + this.loading = true; + + try { + let commandOptions = { + field: this._cloudDataPostField(), + where: this._cloudDataTreeWhere() + }; + if (this.gettree) { + commandOptions.startwith = `${this.selfField}=='${this.dataValue}'`; + } + + let response = await this.getCommand(commandOptions); + let responseData = response.result.data; + + this._treeData = responseData; + this._updateBindData(); + this._updateSelected(); + + this.onDataChange(); + } catch (e) { + this.errorMessage = e; + } finally { + this.loading = false; + } + }, + + // 加载 Cloud 数据 (节点) + async loadCloudDataNode(callback) { + if (this.loading) { + return; + } + this.loading = true; + + try { + let commandOptions = { + field: this._cloudDataPostField(), + where: this._cloudDataNodeWhere() + }; + + let response = await this.getCommand(commandOptions); + let responseData = response.result.data; + + callback(responseData); + } catch (e) { + this.errorMessage = e; + } finally { + this.loading = false; + } + }, + + // 回显 Cloud 数据 + getCloudDataValue() { + if (this.isCloudDataList) { + return this.getCloudDataListValue(); + } + + if (this.isCloudDataTree) { + return this.getCloudDataTreeValue(); + } + }, + + // 回显 Cloud 数据 (单列) + getCloudDataListValue() { + // 根据 field's as value标识匹配 where 条件 + let where = []; + let whereField = this._getForeignKeyByField(); + if (whereField) { + where.push(`${whereField} == '${this.dataValue}'`) + } + + where = where.join(' || '); + + if (this.where) { + where = `(${this.where}) && (${where})` + } + + return this.getCommand({ + field: this._cloudDataPostField(), + where + }).then((res) => { + this.selected = res.result.data; + return res.result.data; + }); + }, + + // 回显 Cloud 数据 (树形) + getCloudDataTreeValue() { + return this.getCommand({ + field: this._cloudDataPostField(), + getTreePath: { + startWith: `${this.selfField}=='${this.dataValue}'` + } + }).then((res) => { + let treePath = []; + this._extractTreePath(res.result.data, treePath); + this.selected = treePath; + return treePath; + }); + }, + + getCommand(options = {}) { + /* eslint-disable no-undef */ + let db = uniCloud.database(this.spaceInfo) + + const action = options.action || this.action + if (action) { + db = db.action(action) + } + + const collection = options.collection || this.collection + db = db.collection(collection) + + const where = options.where || this.where + if (!(!where || !Object.keys(where).length)) { + db = db.where(where) + } + + const field = options.field || this.field + if (field) { + db = db.field(field) + } + + const orderby = options.orderby || this.orderby + if (orderby) { + db = db.orderBy(orderby) + } + + const current = options.pageCurrent !== undefined ? options.pageCurrent : this.page.current + const size = options.pageSize !== undefined ? options.pageSize : this.page.size + const getCount = options.getcount !== undefined ? options.getcount : this.getcount + const getTree = options.gettree !== undefined ? options.gettree : this.gettree + + const getOptions = { + getCount, + getTree + } + if (options.getTreePath) { + getOptions.getTreePath = options.getTreePath + } + + db = db.skip(size * (current - 1)).limit(size).get(getOptions) + + return db + }, + + _cloudDataPostField() { + let fields = [this.field]; + if (this.parentField) { + fields.push(`${this.parentField} as parent_value`); + } + return fields.join(','); + }, + + _cloudDataTreeWhere() { + let result = [] + let selected = this.selected + let parentField = this.parentField + if (parentField) { + result.push(`${parentField} == null || ${parentField} == ""`) + } + if (selected.length) { + for (var i = 0; i < selected.length - 1; i++) { + result.push(`${parentField} == '${selected[i].value}'`) + } + } + + let where = [] + if (this.where) { + where.push(`(${this.where})`) + } + + if (result.length) { + where.push(`(${result.join(' || ')})`) + } + + return where.join(' && ') + }, + + _cloudDataNodeWhere() { + let where = [] + let selected = this.selected; + if (selected.length) { + where.push(`${this.parentField} == '${selected[selected.length - 1].value}'`); + } + + where = where.join(' || '); + + if (this.where) { + return `(${this.where}) && (${where})` + } + + return where + }, + + _getWhereByForeignKey() { + let result = [] + let whereField = this._getForeignKeyByField(); + if (whereField) { + result.push(`${whereField} == '${this.dataValue}'`) + } + + if (this.where) { + return `(${this.where}) && (${result.join(' || ')})` + } + + return result.join(' || ') + }, + + _getForeignKeyByField() { + let fields = this.field.split(','); + let whereField = null; + for (let i = 0; i < fields.length; i++) { + const items = fields[i].split('as'); + if (items.length < 2) { + continue; + } + if (items[1].trim() === 'value') { + whereField = items[0].trim(); + break; + } + } + return whereField; + }, + + _updateBindData(node) { + const { + dataList, + hasNodes + } = this._filterData(this._treeData, this.selected) + + let isleaf = this._stepSearh === false && !hasNodes + + if (node) { + node.isleaf = isleaf + } + + this.dataList = dataList + this.selectedIndex = dataList.length - 1 + + if (!isleaf && this.selected.length < dataList.length) { + this.selected.push({ + value: null, + text: "请选择" + }) + } + + return { + isleaf, + hasNodes + } + }, + + _updateSelected() { + let dl = this.dataList + let sl = this.selected + let textField = this.map.text + let valueField = this.map.value + for (let i = 0; i < sl.length; i++) { + let value = sl[i].value + let dl2 = dl[i] + for (let j = 0; j < dl2.length; j++) { + let item2 = dl2[j] + if (item2[valueField] === value) { + sl[i].text = item2[textField] + break + } + } + } + }, + + _filterData(data, paths) { + let dataList = [] + let hasNodes = true + + dataList.push(data.filter((item) => { + return (item.parent_value === null || item.parent_value === undefined || item.parent_value === '') + })) + for (let i = 0; i < paths.length; i++) { + let value = paths[i].value + let nodes = data.filter((item) => { + return item.parent_value === value + }) + + if (nodes.length) { + dataList.push(nodes) + } else { + hasNodes = false + } + } + + return { + dataList, + hasNodes + } + }, + + _extractTree(nodes, result, parent_value) { + let list = result || [] + let valueField = this.map.value + for (let i = 0; i < nodes.length; i++) { + let node = nodes[i] + + let child = {} + for (let key in node) { + if (key !== 'children') { + child[key] = node[key] + } + } + if (parent_value !== null && parent_value !== undefined && parent_value !== '') { + child.parent_value = parent_value + } + result.push(child) + + let children = node.children + if (children) { + this._extractTree(children, result, node[valueField]) + } + } + }, + + _extractTreePath(nodes, result) { + let list = result || [] + for (let i = 0; i < nodes.length; i++) { + let node = nodes[i] + + let child = {} + for (let key in node) { + if (key !== 'children') { + child[key] = node[key] + } + } + result.push(child) + + let children = node.children + if (children) { + this._extractTreePath(children, result) + } + } + }, + + _findNodePath(key, nodes, path = []) { + let textField = this.map.text + let valueField = this.map.value + for (let i = 0; i < nodes.length; i++) { + let node = nodes[i] + let children = node.children + let text = node[textField] + let value = node[valueField] + + path.push({ + value, + text + }) + + if (value === key) { + return path + } + + if (children) { + const p = this._findNodePath(key, children, path) + if (p.length) { + return p + } + } + + path.pop() + } + return [] + } + } +} diff --git a/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-picker.uts b/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-picker.uts new file mode 100644 index 0000000..372795d --- /dev/null +++ b/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-picker.uts @@ -0,0 +1,693 @@ +export type PaginationType = { + current : number, + size : number, + count : number +} + +export type LoadMoreType = { + contentdown : string, + contentrefresh : string, + contentnomore : string +} + +export type SelectedItemType = { + name : string, + value : string, +} + +export type GetCommandOptions = { + collection ?: UTSJSONObject, + field ?: string, + orderby ?: string, + where ?: any, + pageData ?: string, + pageCurrent ?: number, + pageSize ?: number, + getCount ?: boolean, + getTree ?: any, + getTreePath ?: UTSJSONObject, + startwith ?: string, + limitlevel ?: number, + groupby ?: string, + groupField ?: string, + distinct ?: boolean, + pageIndistinct ?: boolean, + foreignKey ?: string, + loadtime ?: string, + manual ?: boolean +} + +const DefaultSelectedNode = { + text: '请选择', + value: '' +} + +export const dataPicker = defineMixin({ + props: { + localdata: { + type: Array as PropType>, + default: [] as Array + }, + collection: { + type: Object, + default: '' + }, + field: { + type: String, + default: '' + }, + orderby: { + type: String, + default: '' + }, + where: { + type: Object, + default: '' + }, + pageData: { + type: String, + default: 'add' + }, + pageCurrent: { + type: Number, + default: 1 + }, + pageSize: { + type: Number, + default: 20 + }, + getcount: { + type: Boolean, + default: false + }, + gettree: { + type: Object, + default: '' + }, + gettreepath: { + type: Object, + default: '' + }, + startwith: { + type: String, + default: '' + }, + limitlevel: { + type: Number, + default: 10 + }, + groupby: { + type: String, + default: '' + }, + groupField: { + type: String, + default: '' + }, + distinct: { + type: Boolean, + default: false + }, + pageIndistinct: { + type: Boolean, + default: false + }, + foreignKey: { + type: String, + default: '' + }, + loadtime: { + type: String, + default: 'auto' + }, + manual: { + type: Boolean, + default: false + }, + preload: { + type: Boolean, + default: false + }, + stepSearh: { + type: Boolean, + default: true + }, + selfField: { + type: String, + default: '' + }, + parentField: { + type: String, + default: '' + }, + multiple: { + type: Boolean, + default: false + }, + value: { + type: Object, + default: '' + }, + modelValue: { + type: Object, + default: '' + }, + defaultProps: { + type: Object as PropType, + } + }, + data() { + return { + loading: false, + error: null as UniCloudError | null, + treeData: [] as Array, + selectedIndex: 0, + selectedNodes: [] as Array, + selectedPages: [] as Array[], + selectedValue: '', + selectedPaths: [] as Array, + pagination: { + current: 1, + size: 20, + count: 0 + } as PaginationType + } + }, + computed: { + mappingTextName() : string { + // TODO + return (this.defaultProps != null) ? this.defaultProps!.getString('text', 'text') : 'text' + }, + mappingValueName() : string { + // TODO + return (this.defaultProps != null) ? this.defaultProps!.getString('value', 'value') : 'value' + }, + currentDataList() : Array { + if (this.selectedIndex > this.selectedPages.length - 1) { + return [] as Array + } + return this.selectedPages[this.selectedIndex] + }, + isLocalData() : boolean { + return this.localdata.length > 0 + }, + isCloudData() : boolean { + return this._checkIsNotNull(this.collection) + }, + isCloudDataList() : boolean { + return (this.isCloudData && (this.parentField.length == 0 && this.selfField.length == 0)) + }, + isCloudDataTree() : boolean { + return (this.isCloudData && this.parentField.length > 0 && this.selfField.length > 0) + }, + dataValue() : any { + return this.hasModelValue ? this.modelValue : this.value + }, + hasCloudTreeData() : boolean { + return this.treeData.length > 0 + }, + hasModelValue() : boolean { + if (typeof this.modelValue == 'string') { + const valueString = this.modelValue as string + return (valueString.length > 0) + } else if (Array.isArray(this.modelValue)) { + const valueArray = this.modelValue as Array + return (valueArray.length > 0) + } + return false + }, + hasCloudDataValue() : boolean { + if (typeof this.dataValue == 'string') { + const valueString = this.dataValue as string + return (valueString.length > 0) + } + return false + } + }, + created() { + this.pagination.current = this.pageCurrent + this.pagination.size = this.pageSize + + this.$watch( + () : any => [ + this.pageCurrent, + this.pageSize, + this.localdata, + this.value, + this.collection, + this.field, + this.getcount, + this.orderby, + this.where, + this.groupby, + this.groupField, + this.distinct + ], + (newValue : Array, oldValue : Array) => { + this.pagination.size = this.pageSize + if (newValue[0] !== oldValue[0]) { + this.pagination.current = this.pageCurrent + } + + this.onPropsChange() + } + ) + }, + methods: { + onPropsChange() { + this.selectedIndex = 0 + this.treeData.length = 0 + this.selectedNodes.length = 0 + this.selectedPages.length = 0 + this.selectedPaths.length = 0 + + // 加载数据 + this.$nextTick(() => { + this.loadData() + }) + }, + + onTabSelect(index : number) { + this.selectedIndex = index + }, + + onNodeClick(nodeData : UTSJSONObject) { + if (nodeData.getBoolean('disable', false)) { + return + } + + const isLeaf = this._checkIsLeafNode(nodeData) + + this._trimSelectedNodes(nodeData) + + this.$emit('nodeclick', nodeData) + + if (this.isLocalData) { + if (isLeaf || !this._checkHasChildren(nodeData)) { + this.onFinish() + } + } else if (this.isCloudDataList) { + this.onFinish() + } else if (this.isCloudDataTree) { + if (isLeaf) { + this.onFinish() + } else if (!this._checkHasChildren(nodeData)) { + // 尝试请求一次,如果没有返回数据标记为叶子节点 + this.loadCloudDataNode(nodeData) + } + } + }, + + getChangeNodes(): Array { + const nodes: Array = [] + this.selectedNodes.forEach((node : UTSJSONObject) => { + const newNode: UTSJSONObject = {} + newNode[this.mappingTextName] = node.getString(this.mappingTextName) + newNode[this.mappingValueName] = node.getString(this.mappingValueName) + nodes.push(newNode) + }) + return nodes + }, + + onFinish() { }, + + // 加载数据(自动判定环境) + loadData() { + if (this.isLocalData) { + this.loadLocalData() + } else if (this.isCloudDataList) { + this.loadCloudDataList() + } else if (this.isCloudDataTree) { + this.loadCloudDataTree() + } + }, + + // 加载本地数据 + loadLocalData() { + this.treeData = this.localdata + if (Array.isArray(this.dataValue)) { + const value = this.dataValue as Array + this.selectedPaths = value.slice(0) + this._pushSelectedTreeNodes(value, this.localdata) + } else { + this._pushSelectedNodes(this.localdata) + } + }, + + // 加载 Cloud 数据 (单列) + loadCloudDataList() { + this._loadCloudData(null, (data : Array) => { + this.treeData = data + this._pushSelectedNodes(data) + }) + }, + + // 加载 Cloud 数据 (树形) + loadCloudDataTree() { + let commandOptions = { + field: this._cloudDataPostField(), + where: this._cloudDataTreeWhere(), + getTree: true + } as GetCommandOptions + if (this._checkIsNotNull(this.gettree)) { + commandOptions.startwith = `${this.selfField}=='${this.dataValue as string}'` + } + this._loadCloudData(commandOptions, (data : Array) => { + this.treeData = data + if (this.selectedPaths.length > 0) { + this._pushSelectedTreeNodes(this.selectedPaths, data) + } else { + this._pushSelectedNodes(data) + } + }) + }, + + // 加载 Cloud 数据 (节点) + loadCloudDataNode(nodeData : UTSJSONObject) { + const commandOptions = { + field: this._cloudDataPostField(), + where: this._cloudDataNodeWhere() + } as GetCommandOptions + this._loadCloudData(commandOptions, (data : Array) => { + nodeData['children'] = data + if (data.length == 0) { + nodeData['isleaf'] = true + this.onFinish() + } else { + this._pushSelectedNodes(data) + } + }) + }, + + // 回显 Cloud Tree Path + loadCloudDataPath() { + if (!this.hasCloudDataValue) { + return + } + + const command : GetCommandOptions = {} + + // 单列 + if (this.isCloudDataList) { + // 根据 field's as value标识匹配 where 条件 + let where : Array = []; + let whereField = this._getForeignKeyByField(); + if (whereField.length > 0) { + where.push(`${whereField} == '${this.dataValue as string}'`) + } + + let whereString = where.join(' || ') + if (this._checkIsNotNull(this.where)) { + whereString = `(${this.where}) && (${whereString})` + } + + command.field = this._cloudDataPostField() + command.where = whereString + } + + // 树形 + if (this.isCloudDataTree) { + command.field = this._cloudDataPostField() + command.getTreePath = { + startWith: `${this.selfField}=='${this.dataValue as string}'` + } + } + + this._loadCloudData(command, (data : Array) => { + this._extractTreePath(data, this.selectedPaths) + }) + }, + + _loadCloudData(options ?: GetCommandOptions, callback ?: ((data : Array) => void)) { + if (this.loading) { + return + } + this.loading = true + + this.error = null + + this._getCommand(options).then((response : UniCloudDBGetResult) => { + callback?.(response.data) + }).catch((err : any | null) => { + this.error = err as UniCloudError + }).finally(() => { + this.loading = false + }) + }, + + _cloudDataPostField() : string { + let fields = [this.field]; + if (this.parentField.length > 0) { + fields.push(`${this.parentField} as parent_value`) + } + return fields.join(',') + }, + + _cloudDataTreeWhere() : string { + let result : Array = [] + let selectedNodes = this.selectedNodes.length > 0 ? this.selectedNodes : this.selectedPaths + let parentField = this.parentField + if (parentField.length > 0) { + result.push(`${parentField} == null || ${parentField} == ""`) + } + if (selectedNodes.length > 0) { + for (var i = 0; i < selectedNodes.length - 1; i++) { + const parentFieldValue = selectedNodes[i].getString('value', '') + result.push(`${parentField} == '${parentFieldValue}'`) + } + } + + let where : Array = [] + if (this._checkIsNotNull(this.where)) { + where.push(`(${this.where as string})`) + } + + if (result.length > 0) { + where.push(`(${result.join(' || ')})`) + } + + return where.join(' && ') + }, + + _cloudDataNodeWhere() : string { + const where : Array = [] + if (this.selectedNodes.length > 0) { + const value = this.selectedNodes[this.selectedNodes.length - 1].getString('value', '') + where.push(`${this.parentField} == '${value}'`) + } + + let whereString = where.join(' || ') + if (this._checkIsNotNull(this.where)) { + return `(${this.where as string}) && (${whereString})` + } + + return whereString + }, + + _getWhereByForeignKey() : string { + let result : Array = [] + let whereField = this._getForeignKeyByField(); + if (whereField.length > 0) { + result.push(`${whereField} == '${this.dataValue as string}'`) + } + + if (this._checkIsNotNull(this.where)) { + return `(${this.where}) && (${result.join(' || ')})` + } + + return result.join(' || ') + }, + + _getForeignKeyByField() : string { + const fields = this.field.split(',') + let whereField = '' + for (let i = 0; i < fields.length; i++) { + const items = fields[i].split('as') + if (items.length < 2) { + continue + } + if (items[1].trim() === 'value') { + whereField = items[0].trim() + break + } + } + return whereField + }, + + _getCommand(options ?: GetCommandOptions) : Promise { + let db = uniCloud.databaseForJQL() + + let collection = Array.isArray(this.collection) ? db.collection(...(this.collection as Array)) : db.collection(this.collection) + + let filter : UniCloudDBFilter | null = null + if (this.foreignKey.length > 0) { + filter = collection.foreignKey(this.foreignKey) + } + + const where : any = options?.where ?? this.where + if (typeof where == 'string') { + const whereString = where as string + if (whereString.length > 0) { + filter = (filter != null) ? filter.where(where) : collection.where(where) + } + } else { + filter = (filter != null) ? filter.where(where) : collection.where(where) + } + + let query : UniCloudDBQuery | null = null + if (this.field.length > 0) { + query = (filter != null) ? filter.field(this.field) : collection.field(this.field) + } + if (this.groupby.length > 0) { + if (query != null) { + query = query.groupBy(this.groupby) + } else if (filter != null) { + query = filter.groupBy(this.groupby) + } + } + if (this.groupField.length > 0) { + if (query != null) { + query = query.groupField(this.groupField) + } else if (filter != null) { + query = filter.groupField(this.groupField) + } + } + if (this.distinct == true) { + if (query != null) { + query = query.distinct(this.field) + } else if (filter != null) { + query = filter.distinct(this.field) + } + } + if (this.orderby.length > 0) { + if (query != null) { + query = query.orderBy(this.orderby) + } else if (filter != null) { + query = filter.orderBy(this.orderby) + } + } + + const size = this.pagination.size + const current = this.pagination.current + if (query != null) { + query = query.skip(size * (current - 1)).limit(size) + } else if (filter != null) { + query = filter.skip(size * (current - 1)).limit(size) + } else { + query = collection.skip(size * (current - 1)).limit(size) + } + + const getOptions = {} + const treeOptions = { + limitLevel: this.limitlevel, + startWith: this.startwith + } + if (this.getcount == true) { + getOptions['getCount'] = this.getcount + } + + const getTree : any = options?.getTree ?? this.gettree + if (typeof getTree == 'string') { + const getTreeString = getTree as string + if (getTreeString.length > 0) { + getOptions['getTree'] = treeOptions + } + } else if (typeof getTree == 'object') { + getOptions['getTree'] = treeOptions + } else { + getOptions['getTree'] = getTree + } + + const getTreePath = options?.getTreePath ?? this.gettreepath + if (typeof getTreePath == 'string') { + const getTreePathString = getTreePath as string + if (getTreePathString.length > 0) { + getOptions['getTreePath'] = getTreePath + } + } else { + getOptions['getTreePath'] = getTreePath + } + + return query.get(getOptions) + }, + + _checkIsNotNull(value : any) : boolean { + if (typeof value == 'string') { + const valueString = value as string + return (valueString.length > 0) + } else if (value instanceof UTSJSONObject) { + return true + } + return false + }, + + _checkIsLeafNode(nodeData : UTSJSONObject) : boolean { + if (this.selectedIndex >= this.limitlevel) { + return true + } + + if (nodeData.getBoolean('isleaf', false)) { + return true + } + + return false + }, + + _checkHasChildren(nodeData : UTSJSONObject) : boolean { + const children = nodeData.getArray('children') ?? ([] as Array) + return children.length > 0 + }, + + _pushSelectedNodes(nodes : Array) { + this.selectedNodes.push(DefaultSelectedNode) + this.selectedPages.push(nodes) + this.selectedIndex = this.selectedPages.length - 1 + }, + + _trimSelectedNodes(nodeData : UTSJSONObject) { + this.selectedNodes.splice(this.selectedIndex) + this.selectedNodes.push(nodeData) + + if (this.selectedPages.length > 0) { + this.selectedPages.splice(this.selectedIndex + 1) + } + + const children = nodeData.getArray('children') ?? ([] as Array) + if (children.length > 0) { + this.selectedNodes.push(DefaultSelectedNode) + this.selectedPages.push(children) + } + + this.selectedIndex = this.selectedPages.length - 1 + }, + + _pushSelectedTreeNodes(paths : Array, nodes : Array) { + let children : Array = nodes + paths.forEach((node : UTSJSONObject) => { + const findNode = children.find((item : UTSJSONObject) : boolean => { + return (item.getString(this.mappingValueName) == node.getString(this.mappingValueName)) + }) + if (findNode != null) { + this.selectedPages.push(children) + this.selectedNodes.push(node) + children = findNode.getArray('children') ?? ([] as Array) + } + }) + this.selectedIndex = this.selectedPages.length - 1 + }, + + _extractTreePath(nodes : Array, result : Array) { + if (nodes.length == 0) { + return + } + + const node = nodes[0] + result.push(node) + + const children = node.getArray('children') + if (Array.isArray(children) && children!.length > 0) { + this._extractTreePath(children, result) + } + } + } +}) diff --git a/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.css b/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.css new file mode 100644 index 0000000..39fe1c3 --- /dev/null +++ b/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.css @@ -0,0 +1,76 @@ +.uni-data-pickerview { + position: relative; + flex-direction: column; + overflow: hidden; +} + +.loading-cover { + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + align-items: center; + justify-content: center; + background-color: rgba(150, 150, 150, .1); +} + +.error { + background-color: #fff; + padding: 15px; +} + +.error-text { + color: #DD524D; +} + +.selected-node-list { + flex-direction: row; + flex-wrap: nowrap; +} + +.selected-node-item { + margin-left: 10px; + margin-right: 10px; + padding: 8px 10px 8px 10px; + border-bottom: 2px solid transparent; +} + +.selected-node-item-active { + color: #007aff; + border-bottom-color: #007aff; +} + +.list-view { + flex: 1; +} + +.list-item { + flex-direction: row; + justify-content: space-between; + padding: 12px 15px; + border-bottom: 1px solid #f0f0f0; +} + +.item-text { + color: #333333; +} + +.item-text-disabled { + opacity: .5; +} + +.item-text-overflow { + overflow: hidden; +} + +.check { + margin-right: 5px; + border: 2px solid #007aff; + border-left: 0; + border-top: 0; + height: 12px; + width: 6px; + transform-origin: center; + transform: rotate(45deg); +} diff --git a/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.uvue b/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.uvue new file mode 100644 index 0000000..f4780f3 --- /dev/null +++ b/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.uvue @@ -0,0 +1,69 @@ + + + + + diff --git a/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.vue b/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.vue new file mode 100644 index 0000000..6ebced9 --- /dev/null +++ b/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.vue @@ -0,0 +1,323 @@ + + + + + diff --git a/uni_modules/uni-data-picker/package.json b/uni_modules/uni-data-picker/package.json new file mode 100644 index 0000000..a508162 --- /dev/null +++ b/uni_modules/uni-data-picker/package.json @@ -0,0 +1,91 @@ +{ + "id": "uni-data-picker", + "displayName": "uni-data-picker 数据驱动的picker选择器", + "version": "2.0.0", + "description": "单列、多列级联选择器,常用于省市区城市选择、公司部门选择、多级分类等场景", + "keywords": [ + "uni-ui", + "uniui", + "picker", + "级联", + "省市区", + "" +], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "" + }, + "directories": { + "example": "../../temps/example_temps" + }, +"dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui", + "type": "component-vue" + }, + "uni_modules": { + "dependencies": [ + "uni-load-more", + "uni-icons", + "uni-scss" + ], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "y", + "app-uvue": "y" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y", + "京东": "u" + }, + "快应用": { + "华为": "u", + "联盟": "u" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} diff --git a/uni_modules/uni-data-picker/readme.md b/uni_modules/uni-data-picker/readme.md new file mode 100644 index 0000000..19dd0e8 --- /dev/null +++ b/uni_modules/uni-data-picker/readme.md @@ -0,0 +1,22 @@ +## DataPicker 级联选择 +> **组件名:uni-data-picker** +> 代码块: `uDataPicker` +> 关联组件:`uni-data-pickerview`、`uni-load-more`。 + + +`` 是一个选择类[datacom组件](https://uniapp.dcloud.net.cn/component/datacom)。 + +支持单列、和多列级联选择。列数没有限制,如果屏幕显示不全,顶部tab区域会左右滚动。 + +候选数据支持一次性加载完毕,也支持懒加载,比如示例图中,选择了“北京”后,动态加载北京的区县数据。 + +`` 组件尤其适用于地址选择、分类选择等选择类。 + +`` 支持本地数据、云端静态数据(json),uniCloud云数据库数据。 + +`` 可以通过JQL直连uniCloud云数据库,配套[DB Schema](https://uniapp.dcloud.net.cn/uniCloud/schema),可在schema2code中自动生成前端页面,还支持服务器端校验。 + +在uniCloud数据表中新建表“uni-id-address”和“opendb-city-china”,这2个表的schema自带foreignKey关联。在“uni-id-address”表的表结构页面使用schema2code生成前端页面,会自动生成地址管理的维护页面,自动从“opendb-city-china”表包含的中国所有省市区信息里选择地址。 + +### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-data-picker) +#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/uni_modules/uni-data-select/changelog.md b/uni_modules/uni-data-select/changelog.md new file mode 100644 index 0000000..016e3d2 --- /dev/null +++ b/uni_modules/uni-data-select/changelog.md @@ -0,0 +1,39 @@ +## 1.0.8(2024-03-28) +- 修复 在vue2下:style动态绑定导致编译失败的bug +## 1.0.7(2024-01-20) +- 修复 长文本回显超过容器的bug,超过容器部分显示省略号 +## 1.0.6(2023-04-12) +- 修复 微信小程序点击时会改变背景颜色的 bug +## 1.0.5(2023-02-03) +- 修复 禁用时会显示清空按钮 +## 1.0.4(2023-02-02) +- 优化 查询条件短期内多次变更只查询最后一次变更后的结果 +- 调整 内部缓存键名调整为 uni-data-select-lastSelectedValue +## 1.0.3(2023-01-16) +- 修复 不关联服务空间报错的问题 +## 1.0.2(2023-01-14) +- 新增 属性 `format` 可用于格式化显示选项内容 +## 1.0.1(2022-12-06) +- 修复 当where变化时,数据不会自动更新的问题 +## 0.1.9(2022-09-05) +- 修复 微信小程序下拉框出现后选择会点击到蒙板后面的输入框 +## 0.1.8(2022-08-29) +- 修复 点击的位置不准确 +## 0.1.7(2022-08-12) +- 新增 支持 disabled 属性 +## 0.1.6(2022-07-06) +- 修复 pc端宽度异常的bug +## 0.1.5 +- 修复 pc端宽度异常的bug +## 0.1.4(2022-07-05) +- 优化 显示样式 +## 0.1.3(2022-06-02) +- 修复 localdata 赋值不生效的 bug +- 新增 支持 uni.scss 修改颜色 +- 新增 支持选项禁用(数据选项设置 disabled: true 即禁用) +## 0.1.2(2022-05-08) +- 修复 当 value 为 0 时选择不生效的 bug +## 0.1.1(2022-05-07) +- 新增 记住上次的选项(仅 collection 存在时有效) +## 0.1.0(2022-04-22) +- 初始化 diff --git a/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue b/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue new file mode 100644 index 0000000..edab65a --- /dev/null +++ b/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue @@ -0,0 +1,562 @@ + + + + + diff --git a/uni_modules/uni-data-select/package.json b/uni_modules/uni-data-select/package.json new file mode 100644 index 0000000..5864594 --- /dev/null +++ b/uni_modules/uni-data-select/package.json @@ -0,0 +1,86 @@ +{ + "id": "uni-data-select", + "displayName": "uni-data-select 下拉框选择器", + "version": "1.0.8", + "description": "通过数据驱动的下拉框选择器", + "keywords": [ + "uni-ui", + "select", + "uni-data-select", + "下拉框", + "下拉选" +], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "^3.1.1" + }, + "directories": { + "example": "../../temps/example_temps" + }, +"dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui", + "type": "component-vue" + }, + "uni_modules": { + "dependencies": ["uni-load-more"], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y", + "alipay": "n" + }, + "client": { + "App": { + "app-vue": "u", + "app-nvue": "n" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "u", + "百度": "u", + "字节跳动": "u", + "QQ": "u", + "京东": "u" + }, + "快应用": { + "华为": "u", + "联盟": "u" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} diff --git a/uni_modules/uni-data-select/readme.md b/uni_modules/uni-data-select/readme.md new file mode 100644 index 0000000..eb58de3 --- /dev/null +++ b/uni_modules/uni-data-select/readme.md @@ -0,0 +1,8 @@ +## DataSelect 下拉框选择器 +> **组件名:uni-data-select** +> 代码块: `uDataSelect` + +当选项过多时,使用下拉菜单展示并选择内容 + +### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-data-select) +#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 diff --git a/uni_modules/uni-datetime-picker/changelog.md b/uni_modules/uni-datetime-picker/changelog.md new file mode 100644 index 0000000..8798e93 --- /dev/null +++ b/uni_modules/uni-datetime-picker/changelog.md @@ -0,0 +1,160 @@ +## 2.2.34(2024-04-24) +- 新增 日期点击事件,在点击日期时会触发该事件。 +## 2.2.33(2024-04-15) +- 修复 抖音小程序事件传递失效bug +## 2.2.32(2024-02-20) +- 修复 日历的close事件触发异常的bug [详情](https://github.com/dcloudio/uni-ui/issues/844) +## 2.2.31(2024-02-20) +- 修复 h5平台 右边日历的月份默认+1的bug [详情](https://github.com/dcloudio/uni-ui/issues/841) +## 2.2.30(2024-01-31) +- 修复 隐藏“秒”时,在IOS15及以下版本时出现 结束时间在开始时间之前 的bug [详情](https://github.com/dcloudio/uni-ui/issues/788) +## 2.2.29(2024-01-20) +- 新增 show事件,弹窗弹出时触发该事件 [详情](https://github.com/dcloudio/uni-app/issues/4694) +## 2.2.28(2024-01-18) +- 去除 noChange事件,当进行日期范围选择时,若只选了一天,则开始结束日期都为同一天 [详情](https://github.com/dcloudio/uni-ui/issues/815) +## 2.2.27(2024-01-10) +- 优化 增加noChange事件,当进行日期范围选择时,若有空值,则触发该事件 [详情](https://github.com/dcloudio/uni-ui/issues/815) +## 2.2.26(2024-01-08) +- 修复 字节小程序时间选择范围器失效问题 [详情](https://github.com/dcloudio/uni-ui/issues/834) +## 2.2.25(2023-10-18) +- 修复 PC端初次修改时间,开始时间未更新的Bug [详情](https://github.com/dcloudio/uni-ui/issues/737) +## 2.2.24(2023-06-02) +- 修复 部分情况修改时间,开始、结束时间显示异常的Bug [详情](https://ask.dcloud.net.cn/question/171146) +- 优化 当前月可以选择上月、下月的日期的Bug +## 2.2.23(2023-05-02) +- 修复 部分情况修改时间,开始时间未更新的Bug [详情](https://github.com/dcloudio/uni-ui/issues/737) +- 修复 部分平台及设备第一次点击无法显示弹框的Bug +- 修复 ios 日期格式未补零显示及使用异常的Bug [详情](https://ask.dcloud.net.cn/question/162979) +## 2.2.22(2023-03-30) +- 修复 日历 picker 修改年月后,自动选中当月1日的Bug [详情](https://ask.dcloud.net.cn/question/165937) +- 修复 小程序端 低版本 ios NaN的Bug [详情](https://ask.dcloud.net.cn/question/162979) +## 2.2.21(2023-02-20) +- 修复 firefox 浏览器显示区域点击无法拉起日历弹框的Bug [详情](https://ask.dcloud.net.cn/question/163362) +## 2.2.20(2023-02-17) +- 优化 值为空依然选中当天问题 +- 优化 提供 default-value 属性支持配置选择器打开时默认显示的时间 +- 优化 非范围选择未选择日期时间,点击确认按钮选中当前日期时间 +- 优化 字节小程序日期时间范围选择,底部日期换行的Bug +## 2.2.19(2023-02-09) +- 修复 2.2.18 引起范围选择配置 end 选择无效的Bug [详情](https://github.com/dcloudio/uni-ui/issues/686) +## 2.2.18(2023-02-08) +- 修复 移动端范围选择change事件触发异常的Bug [详情](https://github.com/dcloudio/uni-ui/issues/684) +- 优化 PC端输入日期格式错误时返回当前日期时间 +- 优化 PC端输入日期时间超出 start、end 限制的Bug +- 优化 移动端日期时间范围用法时间展示不完整问题 +## 2.2.17(2023-02-04) +- 修复 小程序端绑定 Date 类型报错的Bug [详情](https://github.com/dcloudio/uni-ui/issues/679) +- 修复 vue3 time-picker 无法显示绑定时分秒的Bug +## 2.2.16(2023-02-02) +- 修复 字节小程序报错的Bug +## 2.2.15(2023-02-02) +- 修复 某些情况切换月份错误的Bug +## 2.2.14(2023-01-30) +- 修复 某些情况切换月份错误的Bug [详情](https://ask.dcloud.net.cn/question/162033) +## 2.2.13(2023-01-10) +- 修复 多次加载组件造成内存占用的Bug +## 2.2.12(2022-12-01) +- 修复 vue3 下 i18n 国际化初始值不正确的Bug +## 2.2.11(2022-09-19) +- 修复 支付宝小程序样式错乱的Bug [详情](https://github.com/dcloudio/uni-app/issues/3861) +## 2.2.10(2022-09-19) +- 修复 反向选择日期范围,日期显示异常的Bug [详情](https://ask.dcloud.net.cn/question/153401?item_id=212892&rf=false) +## 2.2.9(2022-09-16) +- 可以使用 uni-scss 控制主题色 +## 2.2.8(2022-09-08) +- 修复 close事件无效的Bug +## 2.2.7(2022-09-05) +- 修复 移动端 maskClick 无效的Bug [详情](https://ask.dcloud.net.cn/question/140824) +## 2.2.6(2022-06-30) +- 优化 组件样式,调整了组件图标大小、高度、颜色等,与uni-ui风格保持一致 +## 2.2.5(2022-06-24) +- 修复 日历顶部年月及底部确认未国际化的Bug +## 2.2.4(2022-03-31) +- 修复 Vue3 下动态赋值,单选类型未响应的Bug +## 2.2.3(2022-03-28) +- 修复 Vue3 下动态赋值未响应的Bug +## 2.2.2(2021-12-10) +- 修复 clear-icon 属性在小程序平台不生效的Bug +## 2.2.1(2021-12-10) +- 修复 日期范围选在小程序平台,必须多点击一次才能取消选中状态的Bug +## 2.2.0(2021-11-19) +- 优化 组件UI,并提供设计资源 [详情](https://uniapp.dcloud.io/component/uniui/resource) +- 文档迁移 [https://uniapp.dcloud.io/component/uniui/uni-datetime-picker](https://uniapp.dcloud.io/component/uniui/uni-datetime-picker) +## 2.1.5(2021-11-09) +- 新增 提供组件设计资源,组件样式调整 +## 2.1.4(2021-09-10) +- 修复 hide-second 在移动端的Bug +- 修复 单选赋默认值时,赋值日期未高亮的Bug +- 修复 赋默认值时,移动端未正确显示时间的Bug +## 2.1.3(2021-09-09) +- 新增 hide-second 属性,支持只使用时分,隐藏秒 +## 2.1.2(2021-09-03) +- 优化 取消选中时(范围选)直接开始下一次选择, 避免多点一次 +- 优化 移动端支持清除按钮,同时支持通过 ref 调用组件的 clear 方法 +- 优化 调整字号大小,美化日历界面 +- 修复 因国际化导致的 placeholder 失效的Bug +## 2.1.1(2021-08-24) +- 新增 支持国际化 +- 优化 范围选择器在 pc 端过宽的问题 +## 2.1.0(2021-08-09) +- 新增 适配 vue3 +## 2.0.19(2021-08-09) +- 新增 支持作为 uni-forms 子组件相关功能 +- 修复 在 uni-forms 中使用时,选择时间报 NAN 错误的Bug +## 2.0.18(2021-08-05) +- 修复 type 属性动态赋值无效的Bug +- 修复 ‘确认’按钮被 tabbar 遮盖 bug +- 修复 组件未赋值时范围选左、右日历相同的Bug +## 2.0.17(2021-08-04) +- 修复 范围选未正确显示当前值的Bug +- 修复 h5 平台(移动端)报错 'cale' of undefined 的Bug +## 2.0.16(2021-07-21) +- 新增 return-type 属性支持返回 date 日期对象 +## 2.0.15(2021-07-14) +- 修复 单选日期类型,初始赋值后不在当前日历的Bug +- 新增 clearIcon 属性,显示框的清空按钮可配置显示隐藏(仅 pc 有效) +- 优化 移动端移除显示框的清空按钮,无实际用途 +## 2.0.14(2021-07-14) +- 修复 组件赋值为空,界面未更新的Bug +- 修复 start 和 end 不能动态赋值的Bug +- 修复 范围选类型,用户选择后再次选择右侧日历(结束日期)显示不正确的Bug +## 2.0.13(2021-07-08) +- 修复 范围选择不能动态赋值的Bug +## 2.0.12(2021-07-08) +- 修复 范围选择的初始时间在一个月内时,造成无法选择的bug +## 2.0.11(2021-07-08) +- 优化 弹出层在超出视窗边缘定位不准确的问题 +## 2.0.10(2021-07-08) +- 修复 范围起始点样式的背景色与今日样式的字体前景色融合,导致日期字体看不清的Bug +- 优化 弹出层在超出视窗边缘被遮盖的问题 +## 2.0.9(2021-07-07) +- 新增 maskClick 事件 +- 修复 特殊情况日历 rpx 布局错误的Bug,rpx -> px +- 修复 范围选择时清空返回值不合理的bug,['', ''] -> [] +## 2.0.8(2021-07-07) +- 新增 日期时间显示框支持插槽 +## 2.0.7(2021-07-01) +- 优化 添加 uni-icons 依赖 +## 2.0.6(2021-05-22) +- 修复 图标在小程序上不显示的Bug +- 优化 重命名引用组件,避免潜在组件命名冲突 +## 2.0.5(2021-05-20) +- 优化 代码目录扁平化 +## 2.0.4(2021-05-12) +- 新增 组件示例地址 +## 2.0.3(2021-05-10) +- 修复 ios 下不识别 '-' 日期格式的Bug +- 优化 pc 下弹出层添加边框和阴影 +## 2.0.2(2021-05-08) +- 修复 在 admin 中获取弹出层定位错误的bug +## 2.0.1(2021-05-08) +- 修复 type 属性向下兼容,默认值从 date 变更为 datetime +## 2.0.0(2021-04-30) +- 支持日历形式的日期+时间的范围选择 + > 注意:此版本不向后兼容,不再支持单独时间选择(type=time)及相关的 hide-second 属性(时间选可使用内置组件 picker) +## 1.0.6(2021-03-18) +- 新增 hide-second 属性,时间支持仅选择时、分 +- 修复 选择跟显示的日期不一样的Bug +- 修复 chang事件触发2次的Bug +- 修复 分、秒 end 范围错误的Bug +- 优化 更好的 nvue 适配 diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue new file mode 100644 index 0000000..9c20275 --- /dev/null +++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue @@ -0,0 +1,177 @@ + + + + + diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue new file mode 100644 index 0000000..af873fe --- /dev/null +++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue @@ -0,0 +1,947 @@ + + + + + diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json new file mode 100644 index 0000000..024f22f --- /dev/null +++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json @@ -0,0 +1,22 @@ +{ + "uni-datetime-picker.selectDate": "select date", + "uni-datetime-picker.selectTime": "select time", + "uni-datetime-picker.selectDateTime": "select date and time", + "uni-datetime-picker.startDate": "start date", + "uni-datetime-picker.endDate": "end date", + "uni-datetime-picker.startTime": "start time", + "uni-datetime-picker.endTime": "end time", + "uni-datetime-picker.ok": "ok", + "uni-datetime-picker.clear": "clear", + "uni-datetime-picker.cancel": "cancel", + "uni-datetime-picker.year": "-", + "uni-datetime-picker.month": "", + "uni-calender.MON": "MON", + "uni-calender.TUE": "TUE", + "uni-calender.WED": "WED", + "uni-calender.THU": "THU", + "uni-calender.FRI": "FRI", + "uni-calender.SAT": "SAT", + "uni-calender.SUN": "SUN", + "uni-calender.confirm": "confirm" +} diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js new file mode 100644 index 0000000..de7509c --- /dev/null +++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js @@ -0,0 +1,8 @@ +import en from './en.json' +import zhHans from './zh-Hans.json' +import zhHant from './zh-Hant.json' +export default { + en, + 'zh-Hans': zhHans, + 'zh-Hant': zhHant +} diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json new file mode 100644 index 0000000..d2df5e7 --- /dev/null +++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json @@ -0,0 +1,22 @@ +{ + "uni-datetime-picker.selectDate": "选择日期", + "uni-datetime-picker.selectTime": "选择时间", + "uni-datetime-picker.selectDateTime": "选择日期时间", + "uni-datetime-picker.startDate": "开始日期", + "uni-datetime-picker.endDate": "结束日期", + "uni-datetime-picker.startTime": "开始时间", + "uni-datetime-picker.endTime": "结束时间", + "uni-datetime-picker.ok": "确定", + "uni-datetime-picker.clear": "清除", + "uni-datetime-picker.cancel": "取消", + "uni-datetime-picker.year": "年", + "uni-datetime-picker.month": "月", + "uni-calender.SUN": "日", + "uni-calender.MON": "一", + "uni-calender.TUE": "二", + "uni-calender.WED": "三", + "uni-calender.THU": "四", + "uni-calender.FRI": "五", + "uni-calender.SAT": "六", + "uni-calender.confirm": "确认" +} \ No newline at end of file diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json new file mode 100644 index 0000000..d23fa3c --- /dev/null +++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json @@ -0,0 +1,22 @@ +{ + "uni-datetime-picker.selectDate": "選擇日期", + "uni-datetime-picker.selectTime": "選擇時間", + "uni-datetime-picker.selectDateTime": "選擇日期時間", + "uni-datetime-picker.startDate": "開始日期", + "uni-datetime-picker.endDate": "結束日期", + "uni-datetime-picker.startTime": "開始时间", + "uni-datetime-picker.endTime": "結束时间", + "uni-datetime-picker.ok": "確定", + "uni-datetime-picker.clear": "清除", + "uni-datetime-picker.cancel": "取消", + "uni-datetime-picker.year": "年", + "uni-datetime-picker.month": "月", + "uni-calender.SUN": "日", + "uni-calender.MON": "一", + "uni-calender.TUE": "二", + "uni-calender.WED": "三", + "uni-calender.THU": "四", + "uni-calender.FRI": "五", + "uni-calender.SAT": "六", + "uni-calender.confirm": "確認" +} \ No newline at end of file diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue new file mode 100644 index 0000000..1817692 --- /dev/null +++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue @@ -0,0 +1,940 @@ + + + + + diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue new file mode 100644 index 0000000..11fc45a --- /dev/null +++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue @@ -0,0 +1,1057 @@ + + + + diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js new file mode 100644 index 0000000..01802fa --- /dev/null +++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js @@ -0,0 +1,421 @@ +class Calendar { + constructor({ + selected, + startDate, + endDate, + range, + } = {}) { + // 当前日期 + this.date = this.getDateObj(new Date()) // 当前初入日期 + // 打点信息 + this.selected = selected || []; + // 起始时间 + this.startDate = startDate + // 终止时间 + this.endDate = endDate + // 是否范围选择 + this.range = range + // 多选状态 + this.cleanMultipleStatus() + // 每周日期 + this.weeks = {} + this.lastHover = false + } + /** + * 设置日期 + * @param {Object} date + */ + setDate(date) { + const selectDate = this.getDateObj(date) + this.getWeeks(selectDate.fullDate) + } + + /** + * 清理多选状态 + */ + cleanMultipleStatus() { + this.multipleStatus = { + before: '', + after: '', + data: [] + } + } + + setStartDate(startDate) { + this.startDate = startDate + } + + setEndDate(endDate) { + this.endDate = endDate + } + + getPreMonthObj(date) { + date = fixIosDateFormat(date) + date = new Date(date) + + const oldMonth = date.getMonth() + date.setMonth(oldMonth - 1) + const newMonth = date.getMonth() + if (oldMonth !== 0 && newMonth - oldMonth === 0) { + date.setMonth(newMonth - 1) + } + return this.getDateObj(date) + } + getNextMonthObj(date) { + date = fixIosDateFormat(date) + date = new Date(date) + + const oldMonth = date.getMonth() + date.setMonth(oldMonth + 1) + const newMonth = date.getMonth() + if (newMonth - oldMonth > 1) { + date.setMonth(newMonth - 1) + } + return this.getDateObj(date) + } + + /** + * 获取指定格式Date对象 + */ + getDateObj(date) { + date = fixIosDateFormat(date) + date = new Date(date) + + return { + fullDate: getDate(date), + year: date.getFullYear(), + month: addZero(date.getMonth() + 1), + date: addZero(date.getDate()), + day: date.getDay() + } + } + + /** + * 获取上一个月日期集合 + */ + getPreMonthDays(amount, dateObj) { + const result = [] + for (let i = amount - 1; i >= 0; i--) { + const month = dateObj.month - 1 + result.push({ + date: new Date(dateObj.year, month, -i).getDate(), + month, + disable: true + }) + } + return result + } + /** + * 获取本月日期集合 + */ + getCurrentMonthDays(amount, dateObj) { + const result = [] + const fullDate = this.date.fullDate + for (let i = 1; i <= amount; i++) { + const currentDate = `${dateObj.year}-${dateObj.month}-${addZero(i)}` + const isToday = fullDate === currentDate + // 获取打点信息 + const info = this.selected && this.selected.find((item) => { + if (this.dateEqual(currentDate, item.date)) { + return item + } + }) + + // 日期禁用 + let disableBefore = true + let disableAfter = true + if (this.startDate) { + disableBefore = dateCompare(this.startDate, currentDate) + } + + if (this.endDate) { + disableAfter = dateCompare(currentDate, this.endDate) + } + + let multiples = this.multipleStatus.data + let multiplesStatus = -1 + if (this.range && multiples) { + multiplesStatus = multiples.findIndex((item) => { + return this.dateEqual(item, currentDate) + }) + } + const checked = multiplesStatus !== -1 + + result.push({ + fullDate: currentDate, + year: dateObj.year, + date: i, + multiple: this.range ? checked : false, + beforeMultiple: this.isLogicBefore(currentDate, this.multipleStatus.before, this.multipleStatus.after), + afterMultiple: this.isLogicAfter(currentDate, this.multipleStatus.before, this.multipleStatus.after), + month: dateObj.month, + disable: (this.startDate && !dateCompare(this.startDate, currentDate)) || (this.endDate && !dateCompare( + currentDate, this.endDate)), + isToday, + userChecked: false, + extraInfo: info + }) + } + return result + } + /** + * 获取下一个月日期集合 + */ + _getNextMonthDays(amount, dateObj) { + const result = [] + const month = dateObj.month + 1 + for (let i = 1; i <= amount; i++) { + result.push({ + date: i, + month, + disable: true + }) + } + return result + } + + /** + * 获取当前日期详情 + * @param {Object} date + */ + getInfo(date) { + if (!date) { + date = new Date() + } + + return this.calendar.find(item => item.fullDate === this.getDateObj(date).fullDate) + } + + /** + * 比较时间是否相等 + */ + dateEqual(before, after) { + before = new Date(fixIosDateFormat(before)) + after = new Date(fixIosDateFormat(after)) + return before.valueOf() === after.valueOf() + } + + /** + * 比较真实起始日期 + */ + + isLogicBefore(currentDate, before, after) { + let logicBefore = before + if (before && after) { + logicBefore = dateCompare(before, after) ? before : after + } + return this.dateEqual(logicBefore, currentDate) + } + + isLogicAfter(currentDate, before, after) { + let logicAfter = after + if (before && after) { + logicAfter = dateCompare(before, after) ? after : before + } + return this.dateEqual(logicAfter, currentDate) + } + + /** + * 获取日期范围内所有日期 + * @param {Object} begin + * @param {Object} end + */ + geDateAll(begin, end) { + var arr = [] + var ab = begin.split('-') + var ae = end.split('-') + var db = new Date() + db.setFullYear(ab[0], ab[1] - 1, ab[2]) + var de = new Date() + de.setFullYear(ae[0], ae[1] - 1, ae[2]) + var unixDb = db.getTime() - 24 * 60 * 60 * 1000 + var unixDe = de.getTime() - 24 * 60 * 60 * 1000 + for (var k = unixDb; k <= unixDe;) { + k = k + 24 * 60 * 60 * 1000 + arr.push(this.getDateObj(new Date(parseInt(k))).fullDate) + } + return arr + } + + /** + * 获取多选状态 + */ + setMultiple(fullDate) { + if (!this.range) return + + let { + before, + after + } = this.multipleStatus + if (before && after) { + if (!this.lastHover) { + this.lastHover = true + return + } + this.multipleStatus.before = fullDate + this.multipleStatus.after = '' + this.multipleStatus.data = [] + this.multipleStatus.fulldate = '' + this.lastHover = false + } else { + if (!before) { + this.multipleStatus.before = fullDate + this.multipleStatus.after = undefined; + this.lastHover = false + } else { + this.multipleStatus.after = fullDate + if (dateCompare(this.multipleStatus.before, this.multipleStatus.after)) { + this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus + .after); + } else { + this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus + .before); + } + this.lastHover = true + } + } + this.getWeeks(fullDate) + } + + /** + * 鼠标 hover 更新多选状态 + */ + setHoverMultiple(fullDate) { + //抖音小程序点击会触发hover事件,需要避免一下 + // #ifndef MP-TOUTIAO + if (!this.range || this.lastHover) return + const { + before + } = this.multipleStatus + + if (!before) { + this.multipleStatus.before = fullDate + } else { + this.multipleStatus.after = fullDate + if (dateCompare(this.multipleStatus.before, this.multipleStatus.after)) { + this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after); + } else { + this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before); + } + } + this.getWeeks(fullDate) + // #endif + + } + + /** + * 更新默认值多选状态 + */ + setDefaultMultiple(before, after) { + this.multipleStatus.before = before + this.multipleStatus.after = after + if (before && after) { + if (dateCompare(before, after)) { + this.multipleStatus.data = this.geDateAll(before, after); + this.getWeeks(after) + } else { + this.multipleStatus.data = this.geDateAll(after, before); + this.getWeeks(before) + } + } + } + + /** + * 获取每周数据 + * @param {Object} dateData + */ + getWeeks(dateData) { + const { + year, + month, + } = this.getDateObj(dateData) + + const preMonthDayAmount = new Date(year, month - 1, 1).getDay() + const preMonthDays = this.getPreMonthDays(preMonthDayAmount, this.getDateObj(dateData)) + + const currentMonthDayAmount = new Date(year, month, 0).getDate() + const currentMonthDays = this.getCurrentMonthDays(currentMonthDayAmount, this.getDateObj(dateData)) + + const nextMonthDayAmount = 42 - preMonthDayAmount - currentMonthDayAmount + const nextMonthDays = this._getNextMonthDays(nextMonthDayAmount, this.getDateObj(dateData)) + + const calendarDays = [...preMonthDays, ...currentMonthDays, ...nextMonthDays] + + const weeks = new Array(6) + for (let i = 0; i < calendarDays.length; i++) { + const index = Math.floor(i / 7) + if (!weeks[index]) { + weeks[index] = new Array(7) + } + weeks[index][i % 7] = calendarDays[i] + } + + this.calendar = calendarDays + this.weeks = weeks + } +} + +function getDateTime(date, hideSecond) { + return `${getDate(date)} ${getTime(date, hideSecond)}` +} + +function getDate(date) { + date = fixIosDateFormat(date) + date = new Date(date) + const year = date.getFullYear() + const month = date.getMonth() + 1 + const day = date.getDate() + return `${year}-${addZero(month)}-${addZero(day)}` +} + +function getTime(date, hideSecond) { + date = fixIosDateFormat(date) + date = new Date(date) + const hour = date.getHours() + const minute = date.getMinutes() + const second = date.getSeconds() + return hideSecond ? `${addZero(hour)}:${addZero(minute)}` : `${addZero(hour)}:${addZero(minute)}:${addZero(second)}` +} + +function addZero(num) { + if (num < 10) { + num = `0${num}` + } + return num +} + +function getDefaultSecond(hideSecond) { + return hideSecond ? '00:00' : '00:00:00' +} + +function dateCompare(startDate, endDate) { + startDate = new Date(fixIosDateFormat(startDate)) + endDate = new Date(fixIosDateFormat(endDate)) + return startDate <= endDate +} + +function checkDate(date) { + const dateReg = /((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g + return date.match(dateReg) +} +//ios低版本15及以下,无法匹配 没有 ’秒‘ 时的情况,所以需要在末尾 秒 加上 问号 +const dateTimeReg = /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])( [0-5]?[0-9]:[0-5]?[0-9](:[0-5]?[0-9])?)?$/; + +function fixIosDateFormat(value) { + if (typeof value === 'string' && dateTimeReg.test(value)) { + value = value.replace(/-/g, '/') + } + return value +} + +export { + Calendar, + getDateTime, + getDate, + getTime, + addZero, + getDefaultSecond, + dateCompare, + checkDate, + fixIosDateFormat +} diff --git a/uni_modules/uni-datetime-picker/package.json b/uni_modules/uni-datetime-picker/package.json new file mode 100644 index 0000000..4d1b05c --- /dev/null +++ b/uni_modules/uni-datetime-picker/package.json @@ -0,0 +1,88 @@ +{ + "id": "uni-datetime-picker", + "displayName": "uni-datetime-picker 日期选择器", + "version": "2.2.34", + "description": "uni-datetime-picker 日期时间选择器,支持日历,支持范围选择", + "keywords": [ + "uni-datetime-picker", + "uni-ui", + "uniui", + "日期时间选择器", + "日期时间" +], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "" + }, + "directories": { + "example": "../../temps/example_temps" + }, +"dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui", + "type": "component-vue" + }, + "uni_modules": { + "dependencies": [ + "uni-scss", + "uni-icons" + ], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y", + "alipay": "n" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "n" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y" + }, + "快应用": { + "华为": "u", + "联盟": "u" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} diff --git a/uni_modules/uni-datetime-picker/readme.md b/uni_modules/uni-datetime-picker/readme.md new file mode 100644 index 0000000..162fbef --- /dev/null +++ b/uni_modules/uni-datetime-picker/readme.md @@ -0,0 +1,21 @@ + + +> `重要通知:组件升级更新 2.0.0 后,支持日期+时间范围选择,组件 ui 将使用日历选择日期,ui 变化较大,同时支持 PC 和 移动端。此版本不向后兼容,不再支持单独的时间选择(type=time)及相关的 hide-second 属性(时间选可使用内置组件 picker)。若仍需使用旧版本,可在插件市场下载*非uni_modules版本*,旧版本将不再维护` + +## DatetimePicker 时间选择器 + +> **组件名:uni-datetime-picker** +> 代码块: `uDatetimePicker` + + +该组件的优势是,支持**时间戳**输入和输出(起始时间、终止时间也支持时间戳),可**同时选择**日期和时间。 + +若只是需要单独选择日期和时间,不需要时间戳输入和输出,可使用原生的 picker 组件。 + +**_点击 picker 默认值规则:_** + +- 若设置初始值 value, 会显示在 picker 显示框中 +- 若无初始值 value,则初始值 value 为当前本地时间 Date.now(), 但不会显示在 picker 显示框中 + +### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-datetime-picker) +#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/uni_modules/uni-drawer/changelog.md b/uni_modules/uni-drawer/changelog.md new file mode 100644 index 0000000..6d2488c --- /dev/null +++ b/uni_modules/uni-drawer/changelog.md @@ -0,0 +1,13 @@ +## 1.2.1(2021-11-22) +- 修复 vue3中个别scss变量无法找到的问题 +## 1.2.0(2021-11-19) +- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) +- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-drawer](https://uniapp.dcloud.io/component/uniui/uni-drawer) +## 1.1.1(2021-07-30) +- 优化 vue3下事件警告的问题 +## 1.1.0(2021-07-13) +- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) +## 1.0.7(2021-05-12) +- 新增 组件示例地址 +## 1.0.6(2021-02-04) +- 调整为uni_modules目录规范 diff --git a/uni_modules/uni-drawer/components/uni-drawer/keypress.js b/uni_modules/uni-drawer/components/uni-drawer/keypress.js new file mode 100644 index 0000000..62dda46 --- /dev/null +++ b/uni_modules/uni-drawer/components/uni-drawer/keypress.js @@ -0,0 +1,45 @@ +// #ifdef H5 +export default { + name: 'Keypress', + props: { + disable: { + type: Boolean, + default: false + } + }, + mounted () { + const keyNames = { + esc: ['Esc', 'Escape'], + tab: 'Tab', + enter: 'Enter', + space: [' ', 'Spacebar'], + up: ['Up', 'ArrowUp'], + left: ['Left', 'ArrowLeft'], + right: ['Right', 'ArrowRight'], + down: ['Down', 'ArrowDown'], + delete: ['Backspace', 'Delete', 'Del'] + } + const listener = ($event) => { + if (this.disable) { + return + } + const keyName = Object.keys(keyNames).find(key => { + const keyName = $event.key + const value = keyNames[key] + return value === keyName || (Array.isArray(value) && value.includes(keyName)) + }) + if (keyName) { + // 避免和其他按键事件冲突 + setTimeout(() => { + this.$emit(keyName, {}) + }, 0) + } + } + document.addEventListener('keyup', listener) + // this.$once('hook:beforeDestroy', () => { + // document.removeEventListener('keyup', listener) + // }) + }, + render: () => {} +} +// #endif diff --git a/uni_modules/uni-drawer/components/uni-drawer/uni-drawer.vue b/uni_modules/uni-drawer/components/uni-drawer/uni-drawer.vue new file mode 100644 index 0000000..2471521 --- /dev/null +++ b/uni_modules/uni-drawer/components/uni-drawer/uni-drawer.vue @@ -0,0 +1,183 @@ + + + + + diff --git a/uni_modules/uni-drawer/package.json b/uni_modules/uni-drawer/package.json new file mode 100644 index 0000000..dd056e4 --- /dev/null +++ b/uni_modules/uni-drawer/package.json @@ -0,0 +1,87 @@ +{ + "id": "uni-drawer", + "displayName": "uni-drawer 抽屉", + "version": "1.2.1", + "description": "抽屉式导航,用于展示侧滑菜单,侧滑导航。", + "keywords": [ + "uni-ui", + "uniui", + "drawer", + "抽屉", + "侧滑导航" +], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "" + }, + "directories": { + "example": "../../temps/example_temps" + }, + "dcloudext": { + "category": [ + "前端组件", + "通用组件" + ], + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" + }, + "uni_modules": { + "dependencies": ["uni-scss"], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "y" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y" + }, + "快应用": { + "华为": "u", + "联盟": "u" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} \ No newline at end of file diff --git a/uni_modules/uni-drawer/readme.md b/uni_modules/uni-drawer/readme.md new file mode 100644 index 0000000..dcf6e6b --- /dev/null +++ b/uni_modules/uni-drawer/readme.md @@ -0,0 +1,10 @@ + + +## Drawer 抽屉 +> **组件名:uni-drawer** +> 代码块: `uDrawer` + +抽屉侧滑菜单。 + +### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-drawer) +#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/uni_modules/uni-easyinput/changelog.md b/uni_modules/uni-easyinput/changelog.md new file mode 100644 index 0000000..84c72eb --- /dev/null +++ b/uni_modules/uni-easyinput/changelog.md @@ -0,0 +1,115 @@ +## 1.1.19(2024-07-18) +- 修复 初始值传入 null 导致input报错的bug +## 1.1.18(2024-04-11) +- 修复 easyinput组件双向绑定问题 +## 1.1.17(2024-03-28) +- 修复 在头条小程序下丢失事件绑定的问题 +## 1.1.16(2024-03-20) +- 修复 在密码输入情况下 清除和小眼睛覆盖bug 在edge浏览器下显示双眼睛bug +## 1.1.15(2024-02-21) +- 新增 左侧插槽:left +## 1.1.14(2024-02-19) +- 修复 onBlur的emit传值错误 +## 1.1.12(2024-01-29) +- 补充 adjust-position文档属性补充 +## 1.1.11(2024-01-29) +- 补充 adjust-position属性传递值:(Boolean)当键盘弹起时,是否自动上推页面 +## 1.1.10(2024-01-22) +- 去除 移除无用的log输出 +## 1.1.9(2023-04-11) +- 修复 vue3 下 keyboardheightchange 事件报错的bug +## 1.1.8(2023-03-29) +- 优化 trim 属性默认值 +## 1.1.7(2023-03-29) +- 新增 cursor-spacing 属性 +## 1.1.6(2023-01-28) +- 新增 keyboardheightchange 事件,可监听键盘高度变化 +## 1.1.5(2022-11-29) +- 优化 主题样式 +## 1.1.4(2022-10-27) +- 修复 props 中背景颜色无默认值的bug +## 1.1.0(2022-06-30) + +- 新增 在 uni-forms 1.4.0 中使用可以在 blur 时校验内容 +- 新增 clear 事件,点击右侧叉号图标触发 +- 新增 change 事件 ,仅在输入框失去焦点或用户按下回车时触发 +- 优化 组件样式,组件获取焦点时高亮显示,图标颜色调整等 + +## 1.0.5(2022-06-07) + +- 优化 clearable 显示策略 + +## 1.0.4(2022-06-07) + +- 优化 clearable 显示策略 + +## 1.0.3(2022-05-20) + +- 修复 关闭图标某些情况下无法取消的 bug + +## 1.0.2(2022-04-12) + +- 修复 默认值不生效的 bug + +## 1.0.1(2022-04-02) + +- 修复 value 不能为 0 的 bug + +## 1.0.0(2021-11-19) + +- 优化 组件 UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) +- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-easyinput](https://uniapp.dcloud.io/component/uniui/uni-easyinput) + +## 0.1.4(2021-08-20) + +- 修复 在 uni-forms 的动态表单中默认值校验不通过的 bug + +## 0.1.3(2021-08-11) + +- 修复 在 uni-forms 中重置表单,错误信息无法清除的问题 + +## 0.1.2(2021-07-30) + +- 优化 vue3 下事件警告的问题 + +## 0.1.1 + +- 优化 errorMessage 属性支持 Boolean 类型 + +## 0.1.0(2021-07-13) + +- 组件兼容 vue3,如何创建 vue3 项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) + +## 0.0.16(2021-06-29) + +- 修复 confirmType 属性(仅 type="text" 生效)导致多行文本框无法换行的 bug + +## 0.0.15(2021-06-21) + +- 修复 passwordIcon 属性拼写错误的 bug + +## 0.0.14(2021-06-18) + +- 新增 passwordIcon 属性,当 type=password 时是否显示小眼睛图标 +- 修复 confirmType 属性不生效的问题 + +## 0.0.13(2021-06-04) + +- 修复 disabled 状态可清出内容的 bug + +## 0.0.12(2021-05-12) + +- 新增 组件示例地址 + +## 0.0.11(2021-05-07) + +- 修复 input-border 属性不生效的问题 + +## 0.0.10(2021-04-30) + +- 修复 ios 遮挡文字、显示一半的问题 + +## 0.0.9(2021-02-05) + +- 调整为 uni_modules 目录规范 +- 优化 兼容 nvue 页面 diff --git a/uni_modules/uni-easyinput/components/uni-easyinput/common.js b/uni_modules/uni-easyinput/components/uni-easyinput/common.js new file mode 100644 index 0000000..fde8d3c --- /dev/null +++ b/uni_modules/uni-easyinput/components/uni-easyinput/common.js @@ -0,0 +1,54 @@ +/** + * @desc 函数防抖 + * @param func 目标函数 + * @param wait 延迟执行毫秒数 + * @param immediate true - 立即执行, false - 延迟执行 + */ +export const debounce = function(func, wait = 1000, immediate = true) { + let timer; + return function() { + let context = this, + args = arguments; + if (timer) clearTimeout(timer); + if (immediate) { + let callNow = !timer; + timer = setTimeout(() => { + timer = null; + }, wait); + if (callNow) func.apply(context, args); + } else { + timer = setTimeout(() => { + func.apply(context, args); + }, wait) + } + } +} +/** + * @desc 函数节流 + * @param func 函数 + * @param wait 延迟执行毫秒数 + * @param type 1 使用表时间戳,在时间段开始的时候触发 2 使用表定时器,在时间段结束的时候触发 + */ +export const throttle = (func, wait = 1000, type = 1) => { + let previous = 0; + let timeout; + return function() { + let context = this; + let args = arguments; + if (type === 1) { + let now = Date.now(); + + if (now - previous > wait) { + func.apply(context, args); + previous = now; + } + } else if (type === 2) { + if (!timeout) { + timeout = setTimeout(() => { + timeout = null; + func.apply(context, args) + }, wait) + } + } + } +} diff --git a/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue b/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue new file mode 100644 index 0000000..93506d6 --- /dev/null +++ b/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue @@ -0,0 +1,676 @@ + + + + + \ No newline at end of file diff --git a/uni_modules/uni-easyinput/package.json b/uni_modules/uni-easyinput/package.json new file mode 100644 index 0000000..2939256 --- /dev/null +++ b/uni_modules/uni-easyinput/package.json @@ -0,0 +1,88 @@ +{ + "id": "uni-easyinput", + "displayName": "uni-easyinput 增强输入框", + "version": "1.1.19", + "description": "Easyinput 组件是对原生input组件的增强", + "keywords": [ + "uni-ui", + "uniui", + "input", + "uni-easyinput", + "输入框" +], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "" + }, + "directories": { + "example": "../../temps/example_temps" + }, +"dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui", + "type": "component-vue" + }, + "uni_modules": { + "dependencies": [ + "uni-scss", + "uni-icons" + ], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y", + "alipay": "n" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "y" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y" + }, + "快应用": { + "华为": "u", + "联盟": "u" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} \ No newline at end of file diff --git a/uni_modules/uni-easyinput/readme.md b/uni_modules/uni-easyinput/readme.md new file mode 100644 index 0000000..f1faf8f --- /dev/null +++ b/uni_modules/uni-easyinput/readme.md @@ -0,0 +1,11 @@ + + +### Easyinput 增强输入框 +> **组件名:uni-easyinput** +> 代码块: `uEasyinput` + + +easyinput 组件是对原生input组件的增强 ,是专门为配合表单组件[uni-forms](https://ext.dcloud.net.cn/plugin?id=2773)而设计的,easyinput 内置了边框,图标等,同时包含 input 所有功能 + +### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-easyinput) +#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/uni_modules/uni-file-picker/changelog.md b/uni_modules/uni-file-picker/changelog.md new file mode 100644 index 0000000..b81e7f9 --- /dev/null +++ b/uni_modules/uni-file-picker/changelog.md @@ -0,0 +1,81 @@ +## 1.0.11(2024-07-19) +- 修复 vue3 使用value报错的bug +## 1.0.10(2024-07-09) +- 优化 vue3兼容性 +## 1.0.9(2024-07-09) +- 修复 value 属性不兼容vue3的bug +## 1.0.8(2024-03-20) +- 补充 删除文件时返回文件下标 +## 1.0.7(2024-02-21) +- 新增 微信小程序选择视频时改用chooseMedia,并返回视频缩略图 +## 1.0.6(2024-01-06) +- 新增 微信小程序不再调用chooseImage,而是调用chooseMedia +## 1.0.5(2024-01-03) +- 新增 上传文件至云存储携带本地文件名称 +## 1.0.4(2023-03-29) +- 修复 手动上传删除一个文件后不能再上传的bug +## 1.0.3(2022-12-19) +- 新增 sourceType 属性, 可以自定义图片和视频选择的来源 +## 1.0.2(2022-07-04) +- 修复 在uni-forms下样式不生效的bug +## 1.0.1(2021-11-23) +- 修复 参数为对象的情况下,url在某些情况显示错误的bug +## 1.0.0(2021-11-19) +- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) +- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-file-picker](https://uniapp.dcloud.io/component/uniui/uni-file-picker) +## 0.2.16(2021-11-08) +- 修复 传入空对象 ,显示错误的Bug +## 0.2.15(2021-08-30) +- 修复 return-type="object" 时且存在v-model时,无法删除文件的Bug +## 0.2.14(2021-08-23) +- 新增 参数中返回 fileID 字段 +## 0.2.13(2021-08-23) +- 修复 腾讯云传入fileID 不能回显的bug +- 修复 选择图片后,不能放大的问题 +## 0.2.12(2021-08-17) +- 修复 由于 0.2.11 版本引起的不能回显图片的Bug +## 0.2.11(2021-08-16) +- 新增 clearFiles(index) 方法,可以手动删除指定文件 +- 修复 v-model 值设为 null 报错的Bug +## 0.2.10(2021-08-13) +- 修复 return-type="object" 时,无法删除文件的Bug +## 0.2.9(2021-08-03) +- 修复 auto-upload 属性失效的Bug +## 0.2.8(2021-07-31) +- 修复 fileExtname属性不指定值报错的Bug +## 0.2.7(2021-07-31) +- 修复 在某种场景下图片不回显的Bug +## 0.2.6(2021-07-30) +- 修复 return-type为object下,返回值不正确的Bug +## 0.2.5(2021-07-30) +- 修复(重要) H5 平台下如果和uni-forms组件一同使用导致页面卡死的问题 +## 0.2.3(2021-07-28) +- 优化 调整示例代码 +## 0.2.2(2021-07-27) +- 修复 vue3 下赋值错误的Bug +- 优化 h5平台下上传文件导致页面卡死的问题 +## 0.2.0(2021-07-13) +- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) +## 0.1.1(2021-07-02) +- 修复 sourceType 缺少默认值导致 ios 无法选择文件 +## 0.1.0(2021-06-30) +- 优化 解耦与uniCloud的强绑定关系 ,如不绑定服务空间,默认autoUpload为false且不可更改 +## 0.0.11(2021-06-30) +- 修复 由 0.0.10 版本引发的 returnType 属性失效的问题 +## 0.0.10(2021-06-29) +- 优化 文件上传后进度条消失时机 +## 0.0.9(2021-06-29) +- 修复 在uni-forms 中,删除文件 ,获取的值不对的Bug +## 0.0.8(2021-06-15) +- 修复 删除文件时无法触发 v-model 的Bug +## 0.0.7(2021-05-12) +- 新增 组件示例地址 +## 0.0.6(2021-04-09) +- 修复 选择的文件非 file-extname 字段指定的扩展名报错的Bug +## 0.0.5(2021-04-09) +- 优化 更新组件示例 +## 0.0.4(2021-04-09) +- 优化 file-extname 字段支持字符串写法,多个扩展名需要用逗号分隔 +## 0.0.3(2021-02-05) +- 调整为uni_modules目录规范 +- 修复 微信小程序不指定 fileExtname 属性选择失败的Bug diff --git a/uni_modules/uni-file-picker/components/uni-file-picker/choose-and-upload-file.js b/uni_modules/uni-file-picker/components/uni-file-picker/choose-and-upload-file.js new file mode 100644 index 0000000..9c6bcdf --- /dev/null +++ b/uni_modules/uni-file-picker/components/uni-file-picker/choose-and-upload-file.js @@ -0,0 +1,287 @@ +'use strict'; + +const ERR_MSG_OK = 'chooseAndUploadFile:ok'; +const ERR_MSG_FAIL = 'chooseAndUploadFile:fail'; + +function chooseImage(opts) { + const { + count, + sizeType = ['original', 'compressed'], + sourceType, + extension + } = opts + return new Promise((resolve, reject) => { + // 微信由于旧接口不再维护,针对微信小程序平台改用chooseMedia接口 + // #ifdef MP-WEIXIN + uni.chooseMedia({ + count, + sizeType, + sourceType, + mediaType: ['image'], + extension, + success(res) { + res.tempFiles.forEach(item => { + item.path = item.tempFilePath; + }) + resolve(normalizeChooseAndUploadFileRes(res, 'image')); + }, + fail(res) { + reject({ + errMsg: res.errMsg.replace('chooseImage:fail', ERR_MSG_FAIL), + }); + }, + }) + // #endif + // #ifndef MP-WEIXIN + uni.chooseImage({ + count, + sizeType, + sourceType, + extension, + success(res) { + resolve(normalizeChooseAndUploadFileRes(res, 'image')); + }, + fail(res) { + reject({ + errMsg: res.errMsg.replace('chooseImage:fail', ERR_MSG_FAIL), + }); + }, + }); + // #endif + + }); +} + +function chooseVideo(opts) { + const { + count, + camera, + compressed, + maxDuration, + sourceType, + extension + } = opts; + return new Promise((resolve, reject) => { + // 微信由于旧接口不再维护,针对微信小程序平台改用chooseMedia接口 + // #ifdef MP-WEIXIN + uni.chooseMedia({ + count, + compressed, + maxDuration, + sourceType, + extension, + mediaType: ['video'], + success(res) { + const { + tempFiles, + } = res; + resolve(normalizeChooseAndUploadFileRes({ + errMsg: 'chooseVideo:ok', + tempFiles: tempFiles.map(item => { + return { + name: item.name || '', + path: item.tempFilePath, + thumbTempFilePath: item.thumbTempFilePath, + size:item.size, + type: (res.tempFile && res.tempFile.type) || '', + width:item.width, + height:item.height, + duration:item.duration, + fileType: 'video', + cloudPath: '', + } + }), + }, 'video')); + }, + fail(res) { + reject({ + errMsg: res.errMsg.replace('chooseVideo:fail', ERR_MSG_FAIL), + }); + }, + }) + // #endif + // #ifndef MP-WEIXIN + uni.chooseVideo({ + camera, + compressed, + maxDuration, + sourceType, + extension, + success(res) { + const { + tempFilePath, + duration, + size, + height, + width + } = res; + resolve(normalizeChooseAndUploadFileRes({ + errMsg: 'chooseVideo:ok', + tempFilePaths: [tempFilePath], + tempFiles: [{ + name: (res.tempFile && res.tempFile.name) || '', + path: tempFilePath, + size, + type: (res.tempFile && res.tempFile.type) || '', + width, + height, + duration, + fileType: 'video', + cloudPath: '', + }, ], + }, 'video')); + }, + fail(res) { + reject({ + errMsg: res.errMsg.replace('chooseVideo:fail', ERR_MSG_FAIL), + }); + }, + }); + // #endif + }); +} + +function chooseAll(opts) { + const { + count, + extension + } = opts; + return new Promise((resolve, reject) => { + let chooseFile = uni.chooseFile; + if (typeof wx !== 'undefined' && + typeof wx.chooseMessageFile === 'function') { + chooseFile = wx.chooseMessageFile; + } + if (typeof chooseFile !== 'function') { + return reject({ + errMsg: ERR_MSG_FAIL + ' 请指定 type 类型,该平台仅支持选择 image 或 video。', + }); + } + chooseFile({ + type: 'all', + count, + extension, + success(res) { + resolve(normalizeChooseAndUploadFileRes(res)); + }, + fail(res) { + reject({ + errMsg: res.errMsg.replace('chooseFile:fail', ERR_MSG_FAIL), + }); + }, + }); + }); +} + +function normalizeChooseAndUploadFileRes(res, fileType) { + res.tempFiles.forEach((item, index) => { + if (!item.name) { + item.name = item.path.substring(item.path.lastIndexOf('/') + 1); + } + if (fileType) { + item.fileType = fileType; + } + item.cloudPath = + Date.now() + '_' + index + item.name.substring(item.name.lastIndexOf('.')); + }); + if (!res.tempFilePaths) { + res.tempFilePaths = res.tempFiles.map((file) => file.path); + } + return res; +} + +function uploadCloudFiles(files, max = 5, onUploadProgress) { + files = JSON.parse(JSON.stringify(files)) + const len = files.length + let count = 0 + let self = this + return new Promise(resolve => { + while (count < max) { + next() + } + + function next() { + let cur = count++ + if (cur >= len) { + !files.find(item => !item.url && !item.errMsg) && resolve(files) + return + } + const fileItem = files[cur] + const index = self.files.findIndex(v => v.uuid === fileItem.uuid) + fileItem.url = '' + delete fileItem.errMsg + + uniCloud + .uploadFile({ + filePath: fileItem.path, + cloudPath: fileItem.cloudPath, + fileType: fileItem.fileType, + onUploadProgress: res => { + res.index = index + onUploadProgress && onUploadProgress(res) + } + }) + .then(res => { + fileItem.url = res.fileID + fileItem.index = index + if (cur < len) { + next() + } + }) + .catch(res => { + fileItem.errMsg = res.errMsg || res.message + fileItem.index = index + if (cur < len) { + next() + } + }) + } + }) +} + + + + + +function uploadFiles(choosePromise, { + onChooseFile, + onUploadProgress +}) { + return choosePromise + .then((res) => { + if (onChooseFile) { + const customChooseRes = onChooseFile(res); + if (typeof customChooseRes !== 'undefined') { + return Promise.resolve(customChooseRes).then((chooseRes) => typeof chooseRes === 'undefined' ? + res : chooseRes); + } + } + return res; + }) + .then((res) => { + if (res === false) { + return { + errMsg: ERR_MSG_OK, + tempFilePaths: [], + tempFiles: [], + }; + } + return res + }) +} + +function chooseAndUploadFile(opts = { + type: 'all' +}) { + if (opts.type === 'image') { + return uploadFiles(chooseImage(opts), opts); + } else if (opts.type === 'video') { + return uploadFiles(chooseVideo(opts), opts); + } + return uploadFiles(chooseAll(opts), opts); +} + +export { + chooseAndUploadFile, + uploadCloudFiles +}; diff --git a/uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue b/uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue new file mode 100644 index 0000000..785c7eb --- /dev/null +++ b/uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue @@ -0,0 +1,668 @@ + + + + + diff --git a/uni_modules/uni-file-picker/components/uni-file-picker/upload-file.vue b/uni_modules/uni-file-picker/components/uni-file-picker/upload-file.vue new file mode 100644 index 0000000..625d92e --- /dev/null +++ b/uni_modules/uni-file-picker/components/uni-file-picker/upload-file.vue @@ -0,0 +1,325 @@ + + + + + diff --git a/uni_modules/uni-file-picker/components/uni-file-picker/upload-image.vue b/uni_modules/uni-file-picker/components/uni-file-picker/upload-image.vue new file mode 100644 index 0000000..2a29bc2 --- /dev/null +++ b/uni_modules/uni-file-picker/components/uni-file-picker/upload-image.vue @@ -0,0 +1,292 @@ + + + + + diff --git a/uni_modules/uni-file-picker/components/uni-file-picker/utils.js b/uni_modules/uni-file-picker/components/uni-file-picker/utils.js new file mode 100644 index 0000000..1bc9259 --- /dev/null +++ b/uni_modules/uni-file-picker/components/uni-file-picker/utils.js @@ -0,0 +1,110 @@ +/** + * 获取文件名和后缀 + * @param {String} name + */ +export const get_file_ext = (name) => { + const last_len = name.lastIndexOf('.') + const len = name.length + return { + name: name.substring(0, last_len), + ext: name.substring(last_len + 1, len) + } +} + +/** + * 获取扩展名 + * @param {Array} fileExtname + */ +export const get_extname = (fileExtname) => { + if (!Array.isArray(fileExtname)) { + let extname = fileExtname.replace(/(\[|\])/g, '') + return extname.split(',') + } else { + return fileExtname + } + return [] +} + +/** + * 获取文件和检测是否可选 + */ +export const get_files_and_is_max = (res, _extname) => { + let filePaths = [] + let files = [] + if(!_extname || _extname.length === 0){ + return { + filePaths, + files + } + } + res.tempFiles.forEach(v => { + let fileFullName = get_file_ext(v.name) + const extname = fileFullName.ext.toLowerCase() + if (_extname.indexOf(extname) !== -1) { + files.push(v) + filePaths.push(v.path) + } + }) + if (files.length !== res.tempFiles.length) { + uni.showToast({ + title: `当前选择了${res.tempFiles.length}个文件 ,${res.tempFiles.length - files.length} 个文件格式不正确`, + icon: 'none', + duration: 5000 + }) + } + + return { + filePaths, + files + } +} + + +/** + * 获取图片信息 + * @param {Object} filepath + */ +export const get_file_info = (filepath) => { + return new Promise((resolve, reject) => { + uni.getImageInfo({ + src: filepath, + success(res) { + resolve(res) + }, + fail(err) { + reject(err) + } + }) + }) +} +/** + * 获取封装数据 + */ +export const get_file_data = async (files, type = 'image') => { + // 最终需要上传数据库的数据 + let fileFullName = get_file_ext(files.name) + const extname = fileFullName.ext.toLowerCase() + let filedata = { + name: files.name, + uuid: files.uuid, + extname: extname || '', + cloudPath: files.cloudPath, + fileType: files.fileType, + thumbTempFilePath: files.thumbTempFilePath, + url: files.path || files.path, + size: files.size, //单位是字节 + image: {}, + path: files.path, + video: {} + } + if (type === 'image') { + const imageinfo = await get_file_info(files.path) + delete filedata.video + filedata.image.width = imageinfo.width + filedata.image.height = imageinfo.height + filedata.image.location = imageinfo.path + } else { + delete filedata.image + } + return filedata +} diff --git a/uni_modules/uni-file-picker/package.json b/uni_modules/uni-file-picker/package.json new file mode 100644 index 0000000..34bb18f --- /dev/null +++ b/uni_modules/uni-file-picker/package.json @@ -0,0 +1,84 @@ +{ + "id": "uni-file-picker", + "displayName": "uni-file-picker 文件选择上传", + "version": "1.0.11", + "description": "文件选择上传组件,可以选择图片、视频等任意文件并上传到当前绑定的服务空间", + "keywords": [ + "uni-ui", + "uniui", + "图片上传", + "文件上传" +], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "" + }, + "directories": { + "example": "../../temps/example_temps" + }, +"dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui", + "type": "component-vue" + }, + "uni_modules": { + "dependencies": ["uni-scss"], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y", + "alipay": "n" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "n" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y" + }, + "快应用": { + "华为": "u", + "联盟": "u" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} diff --git a/uni_modules/uni-file-picker/readme.md b/uni_modules/uni-file-picker/readme.md new file mode 100644 index 0000000..c8399a5 --- /dev/null +++ b/uni_modules/uni-file-picker/readme.md @@ -0,0 +1,11 @@ + +## FilePicker 文件选择上传 + +> **组件名:uni-file-picker** +> 代码块: `uFilePicker` + + +文件选择上传组件,可以选择图片、视频等任意文件并上传到当前绑定的服务空间 + +### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-file-picker) +#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/uni_modules/uni-icons/changelog.md b/uni_modules/uni-icons/changelog.md new file mode 100644 index 0000000..0261131 --- /dev/null +++ b/uni_modules/uni-icons/changelog.md @@ -0,0 +1,42 @@ +## 2.0.10(2024-06-07) +- 优化 uni-app x 中,size 属性的类型 +## 2.0.9(2024-01-12) +fix: 修复图标大小默认值错误的问题 +## 2.0.8(2023-12-14) +- 修复 项目未使用 ts 情况下,打包报错的bug +## 2.0.7(2023-12-14) +- 修复 size 属性为 string 时,不加单位导致尺寸异常的bug +## 2.0.6(2023-12-11) +- 优化 兼容老版本icon类型,如 top ,bottom 等 +## 2.0.5(2023-12-11) +- 优化 兼容老版本icon类型,如 top ,bottom 等 +## 2.0.4(2023-12-06) +- 优化 uni-app x 下示例项目图标排序 +## 2.0.3(2023-12-06) +- 修复 nvue下引入组件报错的bug +## 2.0.2(2023-12-05) +-优化 size 属性支持单位 +## 2.0.1(2023-12-05) +- 新增 uni-app x 支持定义图标 +## 1.3.5(2022-01-24) +- 优化 size 属性可以传入不带单位的字符串数值 +## 1.3.4(2022-01-24) +- 优化 size 支持其他单位 +## 1.3.3(2022-01-17) +- 修复 nvue 有些图标不显示的bug,兼容老版本图标 +## 1.3.2(2021-12-01) +- 优化 示例可复制图标名称 +## 1.3.1(2021-11-23) +- 优化 兼容旧组件 type 值 +## 1.3.0(2021-11-19) +- 新增 更多图标 +- 优化 自定义图标使用方式 +- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) +- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-icons](https://uniapp.dcloud.io/component/uniui/uni-icons) +## 1.1.7(2021-11-08) +## 1.2.0(2021-07-30) +- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) +## 1.1.5(2021-05-12) +- 新增 组件示例地址 +## 1.1.4(2021-02-05) +- 调整为uni_modules目录规范 diff --git a/uni_modules/uni-icons/components/uni-icons/uni-icons.uvue b/uni_modules/uni-icons/components/uni-icons/uni-icons.uvue new file mode 100644 index 0000000..8740559 --- /dev/null +++ b/uni_modules/uni-icons/components/uni-icons/uni-icons.uvue @@ -0,0 +1,91 @@ + + + + + diff --git a/uni_modules/uni-icons/components/uni-icons/uni-icons.vue b/uni_modules/uni-icons/components/uni-icons/uni-icons.vue new file mode 100644 index 0000000..7da5356 --- /dev/null +++ b/uni_modules/uni-icons/components/uni-icons/uni-icons.vue @@ -0,0 +1,110 @@ + + + + + diff --git a/uni_modules/uni-icons/components/uni-icons/uniicons.css b/uni_modules/uni-icons/components/uni-icons/uniicons.css new file mode 100644 index 0000000..0a6b6fe --- /dev/null +++ b/uni_modules/uni-icons/components/uni-icons/uniicons.css @@ -0,0 +1,664 @@ + +.uniui-cart-filled:before { + content: "\e6d0"; +} + +.uniui-gift-filled:before { + content: "\e6c4"; +} + +.uniui-color:before { + content: "\e6cf"; +} + +.uniui-wallet:before { + content: "\e6b1"; +} + +.uniui-settings-filled:before { + content: "\e6ce"; +} + +.uniui-auth-filled:before { + content: "\e6cc"; +} + +.uniui-shop-filled:before { + content: "\e6cd"; +} + +.uniui-staff-filled:before { + content: "\e6cb"; +} + +.uniui-vip-filled:before { + content: "\e6c6"; +} + +.uniui-plus-filled:before { + content: "\e6c7"; +} + +.uniui-folder-add-filled:before { + content: "\e6c8"; +} + +.uniui-color-filled:before { + content: "\e6c9"; +} + +.uniui-tune-filled:before { + content: "\e6ca"; +} + +.uniui-calendar-filled:before { + content: "\e6c0"; +} + +.uniui-notification-filled:before { + content: "\e6c1"; +} + +.uniui-wallet-filled:before { + content: "\e6c2"; +} + +.uniui-medal-filled:before { + content: "\e6c3"; +} + +.uniui-fire-filled:before { + content: "\e6c5"; +} + +.uniui-refreshempty:before { + content: "\e6bf"; +} + +.uniui-location-filled:before { + content: "\e6af"; +} + +.uniui-person-filled:before { + content: "\e69d"; +} + +.uniui-personadd-filled:before { + content: "\e698"; +} + +.uniui-arrowthinleft:before { + content: "\e6d2"; +} + +.uniui-arrowthinup:before { + content: "\e6d3"; +} + +.uniui-arrowthindown:before { + content: "\e6d4"; +} + +.uniui-back:before { + content: "\e6b9"; +} + +.uniui-forward:before { + content: "\e6ba"; +} + +.uniui-arrow-right:before { + content: "\e6bb"; +} + +.uniui-arrow-left:before { + content: "\e6bc"; +} + +.uniui-arrow-up:before { + content: "\e6bd"; +} + +.uniui-arrow-down:before { + content: "\e6be"; +} + +.uniui-arrowthinright:before { + content: "\e6d1"; +} + +.uniui-down:before { + content: "\e6b8"; +} + +.uniui-bottom:before { + content: "\e6b8"; +} + +.uniui-arrowright:before { + content: "\e6d5"; +} + +.uniui-right:before { + content: "\e6b5"; +} + +.uniui-up:before { + content: "\e6b6"; +} + +.uniui-top:before { + content: "\e6b6"; +} + +.uniui-left:before { + content: "\e6b7"; +} + +.uniui-arrowup:before { + content: "\e6d6"; +} + +.uniui-eye:before { + content: "\e651"; +} + +.uniui-eye-filled:before { + content: "\e66a"; +} + +.uniui-eye-slash:before { + content: "\e6b3"; +} + +.uniui-eye-slash-filled:before { + content: "\e6b4"; +} + +.uniui-info-filled:before { + content: "\e649"; +} + +.uniui-reload:before { + content: "\e6b2"; +} + +.uniui-micoff-filled:before { + content: "\e6b0"; +} + +.uniui-map-pin-ellipse:before { + content: "\e6ac"; +} + +.uniui-map-pin:before { + content: "\e6ad"; +} + +.uniui-location:before { + content: "\e6ae"; +} + +.uniui-starhalf:before { + content: "\e683"; +} + +.uniui-star:before { + content: "\e688"; +} + +.uniui-star-filled:before { + content: "\e68f"; +} + +.uniui-calendar:before { + content: "\e6a0"; +} + +.uniui-fire:before { + content: "\e6a1"; +} + +.uniui-medal:before { + content: "\e6a2"; +} + +.uniui-font:before { + content: "\e6a3"; +} + +.uniui-gift:before { + content: "\e6a4"; +} + +.uniui-link:before { + content: "\e6a5"; +} + +.uniui-notification:before { + content: "\e6a6"; +} + +.uniui-staff:before { + content: "\e6a7"; +} + +.uniui-vip:before { + content: "\e6a8"; +} + +.uniui-folder-add:before { + content: "\e6a9"; +} + +.uniui-tune:before { + content: "\e6aa"; +} + +.uniui-auth:before { + content: "\e6ab"; +} + +.uniui-person:before { + content: "\e699"; +} + +.uniui-email-filled:before { + content: "\e69a"; +} + +.uniui-phone-filled:before { + content: "\e69b"; +} + +.uniui-phone:before { + content: "\e69c"; +} + +.uniui-email:before { + content: "\e69e"; +} + +.uniui-personadd:before { + content: "\e69f"; +} + +.uniui-chatboxes-filled:before { + content: "\e692"; +} + +.uniui-contact:before { + content: "\e693"; +} + +.uniui-chatbubble-filled:before { + content: "\e694"; +} + +.uniui-contact-filled:before { + content: "\e695"; +} + +.uniui-chatboxes:before { + content: "\e696"; +} + +.uniui-chatbubble:before { + content: "\e697"; +} + +.uniui-upload-filled:before { + content: "\e68e"; +} + +.uniui-upload:before { + content: "\e690"; +} + +.uniui-weixin:before { + content: "\e691"; +} + +.uniui-compose:before { + content: "\e67f"; +} + +.uniui-qq:before { + content: "\e680"; +} + +.uniui-download-filled:before { + content: "\e681"; +} + +.uniui-pyq:before { + content: "\e682"; +} + +.uniui-sound:before { + content: "\e684"; +} + +.uniui-trash-filled:before { + content: "\e685"; +} + +.uniui-sound-filled:before { + content: "\e686"; +} + +.uniui-trash:before { + content: "\e687"; +} + +.uniui-videocam-filled:before { + content: "\e689"; +} + +.uniui-spinner-cycle:before { + content: "\e68a"; +} + +.uniui-weibo:before { + content: "\e68b"; +} + +.uniui-videocam:before { + content: "\e68c"; +} + +.uniui-download:before { + content: "\e68d"; +} + +.uniui-help:before { + content: "\e679"; +} + +.uniui-navigate-filled:before { + content: "\e67a"; +} + +.uniui-plusempty:before { + content: "\e67b"; +} + +.uniui-smallcircle:before { + content: "\e67c"; +} + +.uniui-minus-filled:before { + content: "\e67d"; +} + +.uniui-micoff:before { + content: "\e67e"; +} + +.uniui-closeempty:before { + content: "\e66c"; +} + +.uniui-clear:before { + content: "\e66d"; +} + +.uniui-navigate:before { + content: "\e66e"; +} + +.uniui-minus:before { + content: "\e66f"; +} + +.uniui-image:before { + content: "\e670"; +} + +.uniui-mic:before { + content: "\e671"; +} + +.uniui-paperplane:before { + content: "\e672"; +} + +.uniui-close:before { + content: "\e673"; +} + +.uniui-help-filled:before { + content: "\e674"; +} + +.uniui-paperplane-filled:before { + content: "\e675"; +} + +.uniui-plus:before { + content: "\e676"; +} + +.uniui-mic-filled:before { + content: "\e677"; +} + +.uniui-image-filled:before { + content: "\e678"; +} + +.uniui-locked-filled:before { + content: "\e668"; +} + +.uniui-info:before { + content: "\e669"; +} + +.uniui-locked:before { + content: "\e66b"; +} + +.uniui-camera-filled:before { + content: "\e658"; +} + +.uniui-chat-filled:before { + content: "\e659"; +} + +.uniui-camera:before { + content: "\e65a"; +} + +.uniui-circle:before { + content: "\e65b"; +} + +.uniui-checkmarkempty:before { + content: "\e65c"; +} + +.uniui-chat:before { + content: "\e65d"; +} + +.uniui-circle-filled:before { + content: "\e65e"; +} + +.uniui-flag:before { + content: "\e65f"; +} + +.uniui-flag-filled:before { + content: "\e660"; +} + +.uniui-gear-filled:before { + content: "\e661"; +} + +.uniui-home:before { + content: "\e662"; +} + +.uniui-home-filled:before { + content: "\e663"; +} + +.uniui-gear:before { + content: "\e664"; +} + +.uniui-smallcircle-filled:before { + content: "\e665"; +} + +.uniui-map-filled:before { + content: "\e666"; +} + +.uniui-map:before { + content: "\e667"; +} + +.uniui-refresh-filled:before { + content: "\e656"; +} + +.uniui-refresh:before { + content: "\e657"; +} + +.uniui-cloud-upload:before { + content: "\e645"; +} + +.uniui-cloud-download-filled:before { + content: "\e646"; +} + +.uniui-cloud-download:before { + content: "\e647"; +} + +.uniui-cloud-upload-filled:before { + content: "\e648"; +} + +.uniui-redo:before { + content: "\e64a"; +} + +.uniui-images-filled:before { + content: "\e64b"; +} + +.uniui-undo-filled:before { + content: "\e64c"; +} + +.uniui-more:before { + content: "\e64d"; +} + +.uniui-more-filled:before { + content: "\e64e"; +} + +.uniui-undo:before { + content: "\e64f"; +} + +.uniui-images:before { + content: "\e650"; +} + +.uniui-paperclip:before { + content: "\e652"; +} + +.uniui-settings:before { + content: "\e653"; +} + +.uniui-search:before { + content: "\e654"; +} + +.uniui-redo-filled:before { + content: "\e655"; +} + +.uniui-list:before { + content: "\e644"; +} + +.uniui-mail-open-filled:before { + content: "\e63a"; +} + +.uniui-hand-down-filled:before { + content: "\e63c"; +} + +.uniui-hand-down:before { + content: "\e63d"; +} + +.uniui-hand-up-filled:before { + content: "\e63e"; +} + +.uniui-hand-up:before { + content: "\e63f"; +} + +.uniui-heart-filled:before { + content: "\e641"; +} + +.uniui-mail-open:before { + content: "\e643"; +} + +.uniui-heart:before { + content: "\e639"; +} + +.uniui-loop:before { + content: "\e633"; +} + +.uniui-pulldown:before { + content: "\e632"; +} + +.uniui-scan:before { + content: "\e62a"; +} + +.uniui-bars:before { + content: "\e627"; +} + +.uniui-checkbox:before { + content: "\e62b"; +} + +.uniui-checkbox-filled:before { + content: "\e62c"; +} + +.uniui-shop:before { + content: "\e62f"; +} + +.uniui-headphones:before { + content: "\e630"; +} + +.uniui-cart:before { + content: "\e631"; +} diff --git a/uni_modules/uni-icons/components/uni-icons/uniicons.ttf b/uni_modules/uni-icons/components/uni-icons/uniicons.ttf new file mode 100644 index 0000000..14696d0 Binary files /dev/null and b/uni_modules/uni-icons/components/uni-icons/uniicons.ttf differ diff --git a/uni_modules/uni-icons/components/uni-icons/uniicons_file.ts b/uni_modules/uni-icons/components/uni-icons/uniicons_file.ts new file mode 100644 index 0000000..98e93aa --- /dev/null +++ b/uni_modules/uni-icons/components/uni-icons/uniicons_file.ts @@ -0,0 +1,664 @@ + +export type IconsData = { + id : string + name : string + font_family : string + css_prefix_text : string + description : string + glyphs : Array +} + +export type IconsDataItem = { + font_class : string + unicode : string +} + + +export const fontData = [ + { + "font_class": "arrow-down", + "unicode": "\ue6be" + }, + { + "font_class": "arrow-left", + "unicode": "\ue6bc" + }, + { + "font_class": "arrow-right", + "unicode": "\ue6bb" + }, + { + "font_class": "arrow-up", + "unicode": "\ue6bd" + }, + { + "font_class": "auth", + "unicode": "\ue6ab" + }, + { + "font_class": "auth-filled", + "unicode": "\ue6cc" + }, + { + "font_class": "back", + "unicode": "\ue6b9" + }, + { + "font_class": "bars", + "unicode": "\ue627" + }, + { + "font_class": "calendar", + "unicode": "\ue6a0" + }, + { + "font_class": "calendar-filled", + "unicode": "\ue6c0" + }, + { + "font_class": "camera", + "unicode": "\ue65a" + }, + { + "font_class": "camera-filled", + "unicode": "\ue658" + }, + { + "font_class": "cart", + "unicode": "\ue631" + }, + { + "font_class": "cart-filled", + "unicode": "\ue6d0" + }, + { + "font_class": "chat", + "unicode": "\ue65d" + }, + { + "font_class": "chat-filled", + "unicode": "\ue659" + }, + { + "font_class": "chatboxes", + "unicode": "\ue696" + }, + { + "font_class": "chatboxes-filled", + "unicode": "\ue692" + }, + { + "font_class": "chatbubble", + "unicode": "\ue697" + }, + { + "font_class": "chatbubble-filled", + "unicode": "\ue694" + }, + { + "font_class": "checkbox", + "unicode": "\ue62b" + }, + { + "font_class": "checkbox-filled", + "unicode": "\ue62c" + }, + { + "font_class": "checkmarkempty", + "unicode": "\ue65c" + }, + { + "font_class": "circle", + "unicode": "\ue65b" + }, + { + "font_class": "circle-filled", + "unicode": "\ue65e" + }, + { + "font_class": "clear", + "unicode": "\ue66d" + }, + { + "font_class": "close", + "unicode": "\ue673" + }, + { + "font_class": "closeempty", + "unicode": "\ue66c" + }, + { + "font_class": "cloud-download", + "unicode": "\ue647" + }, + { + "font_class": "cloud-download-filled", + "unicode": "\ue646" + }, + { + "font_class": "cloud-upload", + "unicode": "\ue645" + }, + { + "font_class": "cloud-upload-filled", + "unicode": "\ue648" + }, + { + "font_class": "color", + "unicode": "\ue6cf" + }, + { + "font_class": "color-filled", + "unicode": "\ue6c9" + }, + { + "font_class": "compose", + "unicode": "\ue67f" + }, + { + "font_class": "contact", + "unicode": "\ue693" + }, + { + "font_class": "contact-filled", + "unicode": "\ue695" + }, + { + "font_class": "down", + "unicode": "\ue6b8" + }, + { + "font_class": "bottom", + "unicode": "\ue6b8" + }, + { + "font_class": "download", + "unicode": "\ue68d" + }, + { + "font_class": "download-filled", + "unicode": "\ue681" + }, + { + "font_class": "email", + "unicode": "\ue69e" + }, + { + "font_class": "email-filled", + "unicode": "\ue69a" + }, + { + "font_class": "eye", + "unicode": "\ue651" + }, + { + "font_class": "eye-filled", + "unicode": "\ue66a" + }, + { + "font_class": "eye-slash", + "unicode": "\ue6b3" + }, + { + "font_class": "eye-slash-filled", + "unicode": "\ue6b4" + }, + { + "font_class": "fire", + "unicode": "\ue6a1" + }, + { + "font_class": "fire-filled", + "unicode": "\ue6c5" + }, + { + "font_class": "flag", + "unicode": "\ue65f" + }, + { + "font_class": "flag-filled", + "unicode": "\ue660" + }, + { + "font_class": "folder-add", + "unicode": "\ue6a9" + }, + { + "font_class": "folder-add-filled", + "unicode": "\ue6c8" + }, + { + "font_class": "font", + "unicode": "\ue6a3" + }, + { + "font_class": "forward", + "unicode": "\ue6ba" + }, + { + "font_class": "gear", + "unicode": "\ue664" + }, + { + "font_class": "gear-filled", + "unicode": "\ue661" + }, + { + "font_class": "gift", + "unicode": "\ue6a4" + }, + { + "font_class": "gift-filled", + "unicode": "\ue6c4" + }, + { + "font_class": "hand-down", + "unicode": "\ue63d" + }, + { + "font_class": "hand-down-filled", + "unicode": "\ue63c" + }, + { + "font_class": "hand-up", + "unicode": "\ue63f" + }, + { + "font_class": "hand-up-filled", + "unicode": "\ue63e" + }, + { + "font_class": "headphones", + "unicode": "\ue630" + }, + { + "font_class": "heart", + "unicode": "\ue639" + }, + { + "font_class": "heart-filled", + "unicode": "\ue641" + }, + { + "font_class": "help", + "unicode": "\ue679" + }, + { + "font_class": "help-filled", + "unicode": "\ue674" + }, + { + "font_class": "home", + "unicode": "\ue662" + }, + { + "font_class": "home-filled", + "unicode": "\ue663" + }, + { + "font_class": "image", + "unicode": "\ue670" + }, + { + "font_class": "image-filled", + "unicode": "\ue678" + }, + { + "font_class": "images", + "unicode": "\ue650" + }, + { + "font_class": "images-filled", + "unicode": "\ue64b" + }, + { + "font_class": "info", + "unicode": "\ue669" + }, + { + "font_class": "info-filled", + "unicode": "\ue649" + }, + { + "font_class": "left", + "unicode": "\ue6b7" + }, + { + "font_class": "link", + "unicode": "\ue6a5" + }, + { + "font_class": "list", + "unicode": "\ue644" + }, + { + "font_class": "location", + "unicode": "\ue6ae" + }, + { + "font_class": "location-filled", + "unicode": "\ue6af" + }, + { + "font_class": "locked", + "unicode": "\ue66b" + }, + { + "font_class": "locked-filled", + "unicode": "\ue668" + }, + { + "font_class": "loop", + "unicode": "\ue633" + }, + { + "font_class": "mail-open", + "unicode": "\ue643" + }, + { + "font_class": "mail-open-filled", + "unicode": "\ue63a" + }, + { + "font_class": "map", + "unicode": "\ue667" + }, + { + "font_class": "map-filled", + "unicode": "\ue666" + }, + { + "font_class": "map-pin", + "unicode": "\ue6ad" + }, + { + "font_class": "map-pin-ellipse", + "unicode": "\ue6ac" + }, + { + "font_class": "medal", + "unicode": "\ue6a2" + }, + { + "font_class": "medal-filled", + "unicode": "\ue6c3" + }, + { + "font_class": "mic", + "unicode": "\ue671" + }, + { + "font_class": "mic-filled", + "unicode": "\ue677" + }, + { + "font_class": "micoff", + "unicode": "\ue67e" + }, + { + "font_class": "micoff-filled", + "unicode": "\ue6b0" + }, + { + "font_class": "minus", + "unicode": "\ue66f" + }, + { + "font_class": "minus-filled", + "unicode": "\ue67d" + }, + { + "font_class": "more", + "unicode": "\ue64d" + }, + { + "font_class": "more-filled", + "unicode": "\ue64e" + }, + { + "font_class": "navigate", + "unicode": "\ue66e" + }, + { + "font_class": "navigate-filled", + "unicode": "\ue67a" + }, + { + "font_class": "notification", + "unicode": "\ue6a6" + }, + { + "font_class": "notification-filled", + "unicode": "\ue6c1" + }, + { + "font_class": "paperclip", + "unicode": "\ue652" + }, + { + "font_class": "paperplane", + "unicode": "\ue672" + }, + { + "font_class": "paperplane-filled", + "unicode": "\ue675" + }, + { + "font_class": "person", + "unicode": "\ue699" + }, + { + "font_class": "person-filled", + "unicode": "\ue69d" + }, + { + "font_class": "personadd", + "unicode": "\ue69f" + }, + { + "font_class": "personadd-filled", + "unicode": "\ue698" + }, + { + "font_class": "personadd-filled-copy", + "unicode": "\ue6d1" + }, + { + "font_class": "phone", + "unicode": "\ue69c" + }, + { + "font_class": "phone-filled", + "unicode": "\ue69b" + }, + { + "font_class": "plus", + "unicode": "\ue676" + }, + { + "font_class": "plus-filled", + "unicode": "\ue6c7" + }, + { + "font_class": "plusempty", + "unicode": "\ue67b" + }, + { + "font_class": "pulldown", + "unicode": "\ue632" + }, + { + "font_class": "pyq", + "unicode": "\ue682" + }, + { + "font_class": "qq", + "unicode": "\ue680" + }, + { + "font_class": "redo", + "unicode": "\ue64a" + }, + { + "font_class": "redo-filled", + "unicode": "\ue655" + }, + { + "font_class": "refresh", + "unicode": "\ue657" + }, + { + "font_class": "refresh-filled", + "unicode": "\ue656" + }, + { + "font_class": "refreshempty", + "unicode": "\ue6bf" + }, + { + "font_class": "reload", + "unicode": "\ue6b2" + }, + { + "font_class": "right", + "unicode": "\ue6b5" + }, + { + "font_class": "scan", + "unicode": "\ue62a" + }, + { + "font_class": "search", + "unicode": "\ue654" + }, + { + "font_class": "settings", + "unicode": "\ue653" + }, + { + "font_class": "settings-filled", + "unicode": "\ue6ce" + }, + { + "font_class": "shop", + "unicode": "\ue62f" + }, + { + "font_class": "shop-filled", + "unicode": "\ue6cd" + }, + { + "font_class": "smallcircle", + "unicode": "\ue67c" + }, + { + "font_class": "smallcircle-filled", + "unicode": "\ue665" + }, + { + "font_class": "sound", + "unicode": "\ue684" + }, + { + "font_class": "sound-filled", + "unicode": "\ue686" + }, + { + "font_class": "spinner-cycle", + "unicode": "\ue68a" + }, + { + "font_class": "staff", + "unicode": "\ue6a7" + }, + { + "font_class": "staff-filled", + "unicode": "\ue6cb" + }, + { + "font_class": "star", + "unicode": "\ue688" + }, + { + "font_class": "star-filled", + "unicode": "\ue68f" + }, + { + "font_class": "starhalf", + "unicode": "\ue683" + }, + { + "font_class": "trash", + "unicode": "\ue687" + }, + { + "font_class": "trash-filled", + "unicode": "\ue685" + }, + { + "font_class": "tune", + "unicode": "\ue6aa" + }, + { + "font_class": "tune-filled", + "unicode": "\ue6ca" + }, + { + "font_class": "undo", + "unicode": "\ue64f" + }, + { + "font_class": "undo-filled", + "unicode": "\ue64c" + }, + { + "font_class": "up", + "unicode": "\ue6b6" + }, + { + "font_class": "top", + "unicode": "\ue6b6" + }, + { + "font_class": "upload", + "unicode": "\ue690" + }, + { + "font_class": "upload-filled", + "unicode": "\ue68e" + }, + { + "font_class": "videocam", + "unicode": "\ue68c" + }, + { + "font_class": "videocam-filled", + "unicode": "\ue689" + }, + { + "font_class": "vip", + "unicode": "\ue6a8" + }, + { + "font_class": "vip-filled", + "unicode": "\ue6c6" + }, + { + "font_class": "wallet", + "unicode": "\ue6b1" + }, + { + "font_class": "wallet-filled", + "unicode": "\ue6c2" + }, + { + "font_class": "weibo", + "unicode": "\ue68b" + }, + { + "font_class": "weixin", + "unicode": "\ue691" + } +] as IconsDataItem[] + +// export const fontData = JSON.parse(fontDataJson) diff --git a/uni_modules/uni-icons/components/uni-icons/uniicons_file_vue.js b/uni_modules/uni-icons/components/uni-icons/uniicons_file_vue.js new file mode 100644 index 0000000..1cd11e1 --- /dev/null +++ b/uni_modules/uni-icons/components/uni-icons/uniicons_file_vue.js @@ -0,0 +1,649 @@ + +export const fontData = [ + { + "font_class": "arrow-down", + "unicode": "\ue6be" + }, + { + "font_class": "arrow-left", + "unicode": "\ue6bc" + }, + { + "font_class": "arrow-right", + "unicode": "\ue6bb" + }, + { + "font_class": "arrow-up", + "unicode": "\ue6bd" + }, + { + "font_class": "auth", + "unicode": "\ue6ab" + }, + { + "font_class": "auth-filled", + "unicode": "\ue6cc" + }, + { + "font_class": "back", + "unicode": "\ue6b9" + }, + { + "font_class": "bars", + "unicode": "\ue627" + }, + { + "font_class": "calendar", + "unicode": "\ue6a0" + }, + { + "font_class": "calendar-filled", + "unicode": "\ue6c0" + }, + { + "font_class": "camera", + "unicode": "\ue65a" + }, + { + "font_class": "camera-filled", + "unicode": "\ue658" + }, + { + "font_class": "cart", + "unicode": "\ue631" + }, + { + "font_class": "cart-filled", + "unicode": "\ue6d0" + }, + { + "font_class": "chat", + "unicode": "\ue65d" + }, + { + "font_class": "chat-filled", + "unicode": "\ue659" + }, + { + "font_class": "chatboxes", + "unicode": "\ue696" + }, + { + "font_class": "chatboxes-filled", + "unicode": "\ue692" + }, + { + "font_class": "chatbubble", + "unicode": "\ue697" + }, + { + "font_class": "chatbubble-filled", + "unicode": "\ue694" + }, + { + "font_class": "checkbox", + "unicode": "\ue62b" + }, + { + "font_class": "checkbox-filled", + "unicode": "\ue62c" + }, + { + "font_class": "checkmarkempty", + "unicode": "\ue65c" + }, + { + "font_class": "circle", + "unicode": "\ue65b" + }, + { + "font_class": "circle-filled", + "unicode": "\ue65e" + }, + { + "font_class": "clear", + "unicode": "\ue66d" + }, + { + "font_class": "close", + "unicode": "\ue673" + }, + { + "font_class": "closeempty", + "unicode": "\ue66c" + }, + { + "font_class": "cloud-download", + "unicode": "\ue647" + }, + { + "font_class": "cloud-download-filled", + "unicode": "\ue646" + }, + { + "font_class": "cloud-upload", + "unicode": "\ue645" + }, + { + "font_class": "cloud-upload-filled", + "unicode": "\ue648" + }, + { + "font_class": "color", + "unicode": "\ue6cf" + }, + { + "font_class": "color-filled", + "unicode": "\ue6c9" + }, + { + "font_class": "compose", + "unicode": "\ue67f" + }, + { + "font_class": "contact", + "unicode": "\ue693" + }, + { + "font_class": "contact-filled", + "unicode": "\ue695" + }, + { + "font_class": "down", + "unicode": "\ue6b8" + }, + { + "font_class": "bottom", + "unicode": "\ue6b8" + }, + { + "font_class": "download", + "unicode": "\ue68d" + }, + { + "font_class": "download-filled", + "unicode": "\ue681" + }, + { + "font_class": "email", + "unicode": "\ue69e" + }, + { + "font_class": "email-filled", + "unicode": "\ue69a" + }, + { + "font_class": "eye", + "unicode": "\ue651" + }, + { + "font_class": "eye-filled", + "unicode": "\ue66a" + }, + { + "font_class": "eye-slash", + "unicode": "\ue6b3" + }, + { + "font_class": "eye-slash-filled", + "unicode": "\ue6b4" + }, + { + "font_class": "fire", + "unicode": "\ue6a1" + }, + { + "font_class": "fire-filled", + "unicode": "\ue6c5" + }, + { + "font_class": "flag", + "unicode": "\ue65f" + }, + { + "font_class": "flag-filled", + "unicode": "\ue660" + }, + { + "font_class": "folder-add", + "unicode": "\ue6a9" + }, + { + "font_class": "folder-add-filled", + "unicode": "\ue6c8" + }, + { + "font_class": "font", + "unicode": "\ue6a3" + }, + { + "font_class": "forward", + "unicode": "\ue6ba" + }, + { + "font_class": "gear", + "unicode": "\ue664" + }, + { + "font_class": "gear-filled", + "unicode": "\ue661" + }, + { + "font_class": "gift", + "unicode": "\ue6a4" + }, + { + "font_class": "gift-filled", + "unicode": "\ue6c4" + }, + { + "font_class": "hand-down", + "unicode": "\ue63d" + }, + { + "font_class": "hand-down-filled", + "unicode": "\ue63c" + }, + { + "font_class": "hand-up", + "unicode": "\ue63f" + }, + { + "font_class": "hand-up-filled", + "unicode": "\ue63e" + }, + { + "font_class": "headphones", + "unicode": "\ue630" + }, + { + "font_class": "heart", + "unicode": "\ue639" + }, + { + "font_class": "heart-filled", + "unicode": "\ue641" + }, + { + "font_class": "help", + "unicode": "\ue679" + }, + { + "font_class": "help-filled", + "unicode": "\ue674" + }, + { + "font_class": "home", + "unicode": "\ue662" + }, + { + "font_class": "home-filled", + "unicode": "\ue663" + }, + { + "font_class": "image", + "unicode": "\ue670" + }, + { + "font_class": "image-filled", + "unicode": "\ue678" + }, + { + "font_class": "images", + "unicode": "\ue650" + }, + { + "font_class": "images-filled", + "unicode": "\ue64b" + }, + { + "font_class": "info", + "unicode": "\ue669" + }, + { + "font_class": "info-filled", + "unicode": "\ue649" + }, + { + "font_class": "left", + "unicode": "\ue6b7" + }, + { + "font_class": "link", + "unicode": "\ue6a5" + }, + { + "font_class": "list", + "unicode": "\ue644" + }, + { + "font_class": "location", + "unicode": "\ue6ae" + }, + { + "font_class": "location-filled", + "unicode": "\ue6af" + }, + { + "font_class": "locked", + "unicode": "\ue66b" + }, + { + "font_class": "locked-filled", + "unicode": "\ue668" + }, + { + "font_class": "loop", + "unicode": "\ue633" + }, + { + "font_class": "mail-open", + "unicode": "\ue643" + }, + { + "font_class": "mail-open-filled", + "unicode": "\ue63a" + }, + { + "font_class": "map", + "unicode": "\ue667" + }, + { + "font_class": "map-filled", + "unicode": "\ue666" + }, + { + "font_class": "map-pin", + "unicode": "\ue6ad" + }, + { + "font_class": "map-pin-ellipse", + "unicode": "\ue6ac" + }, + { + "font_class": "medal", + "unicode": "\ue6a2" + }, + { + "font_class": "medal-filled", + "unicode": "\ue6c3" + }, + { + "font_class": "mic", + "unicode": "\ue671" + }, + { + "font_class": "mic-filled", + "unicode": "\ue677" + }, + { + "font_class": "micoff", + "unicode": "\ue67e" + }, + { + "font_class": "micoff-filled", + "unicode": "\ue6b0" + }, + { + "font_class": "minus", + "unicode": "\ue66f" + }, + { + "font_class": "minus-filled", + "unicode": "\ue67d" + }, + { + "font_class": "more", + "unicode": "\ue64d" + }, + { + "font_class": "more-filled", + "unicode": "\ue64e" + }, + { + "font_class": "navigate", + "unicode": "\ue66e" + }, + { + "font_class": "navigate-filled", + "unicode": "\ue67a" + }, + { + "font_class": "notification", + "unicode": "\ue6a6" + }, + { + "font_class": "notification-filled", + "unicode": "\ue6c1" + }, + { + "font_class": "paperclip", + "unicode": "\ue652" + }, + { + "font_class": "paperplane", + "unicode": "\ue672" + }, + { + "font_class": "paperplane-filled", + "unicode": "\ue675" + }, + { + "font_class": "person", + "unicode": "\ue699" + }, + { + "font_class": "person-filled", + "unicode": "\ue69d" + }, + { + "font_class": "personadd", + "unicode": "\ue69f" + }, + { + "font_class": "personadd-filled", + "unicode": "\ue698" + }, + { + "font_class": "personadd-filled-copy", + "unicode": "\ue6d1" + }, + { + "font_class": "phone", + "unicode": "\ue69c" + }, + { + "font_class": "phone-filled", + "unicode": "\ue69b" + }, + { + "font_class": "plus", + "unicode": "\ue676" + }, + { + "font_class": "plus-filled", + "unicode": "\ue6c7" + }, + { + "font_class": "plusempty", + "unicode": "\ue67b" + }, + { + "font_class": "pulldown", + "unicode": "\ue632" + }, + { + "font_class": "pyq", + "unicode": "\ue682" + }, + { + "font_class": "qq", + "unicode": "\ue680" + }, + { + "font_class": "redo", + "unicode": "\ue64a" + }, + { + "font_class": "redo-filled", + "unicode": "\ue655" + }, + { + "font_class": "refresh", + "unicode": "\ue657" + }, + { + "font_class": "refresh-filled", + "unicode": "\ue656" + }, + { + "font_class": "refreshempty", + "unicode": "\ue6bf" + }, + { + "font_class": "reload", + "unicode": "\ue6b2" + }, + { + "font_class": "right", + "unicode": "\ue6b5" + }, + { + "font_class": "scan", + "unicode": "\ue62a" + }, + { + "font_class": "search", + "unicode": "\ue654" + }, + { + "font_class": "settings", + "unicode": "\ue653" + }, + { + "font_class": "settings-filled", + "unicode": "\ue6ce" + }, + { + "font_class": "shop", + "unicode": "\ue62f" + }, + { + "font_class": "shop-filled", + "unicode": "\ue6cd" + }, + { + "font_class": "smallcircle", + "unicode": "\ue67c" + }, + { + "font_class": "smallcircle-filled", + "unicode": "\ue665" + }, + { + "font_class": "sound", + "unicode": "\ue684" + }, + { + "font_class": "sound-filled", + "unicode": "\ue686" + }, + { + "font_class": "spinner-cycle", + "unicode": "\ue68a" + }, + { + "font_class": "staff", + "unicode": "\ue6a7" + }, + { + "font_class": "staff-filled", + "unicode": "\ue6cb" + }, + { + "font_class": "star", + "unicode": "\ue688" + }, + { + "font_class": "star-filled", + "unicode": "\ue68f" + }, + { + "font_class": "starhalf", + "unicode": "\ue683" + }, + { + "font_class": "trash", + "unicode": "\ue687" + }, + { + "font_class": "trash-filled", + "unicode": "\ue685" + }, + { + "font_class": "tune", + "unicode": "\ue6aa" + }, + { + "font_class": "tune-filled", + "unicode": "\ue6ca" + }, + { + "font_class": "undo", + "unicode": "\ue64f" + }, + { + "font_class": "undo-filled", + "unicode": "\ue64c" + }, + { + "font_class": "up", + "unicode": "\ue6b6" + }, + { + "font_class": "top", + "unicode": "\ue6b6" + }, + { + "font_class": "upload", + "unicode": "\ue690" + }, + { + "font_class": "upload-filled", + "unicode": "\ue68e" + }, + { + "font_class": "videocam", + "unicode": "\ue68c" + }, + { + "font_class": "videocam-filled", + "unicode": "\ue689" + }, + { + "font_class": "vip", + "unicode": "\ue6a8" + }, + { + "font_class": "vip-filled", + "unicode": "\ue6c6" + }, + { + "font_class": "wallet", + "unicode": "\ue6b1" + }, + { + "font_class": "wallet-filled", + "unicode": "\ue6c2" + }, + { + "font_class": "weibo", + "unicode": "\ue68b" + }, + { + "font_class": "weixin", + "unicode": "\ue691" + } +] + +// export const fontData = JSON.parse(fontDataJson) diff --git a/uni_modules/uni-icons/package.json b/uni_modules/uni-icons/package.json new file mode 100644 index 0000000..6b681b4 --- /dev/null +++ b/uni_modules/uni-icons/package.json @@ -0,0 +1,89 @@ +{ + "id": "uni-icons", + "displayName": "uni-icons 图标", + "version": "2.0.10", + "description": "图标组件,用于展示移动端常见的图标,可自定义颜色、大小。", + "keywords": [ + "uni-ui", + "uniui", + "icon", + "图标" +], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "^3.2.14" + }, + "directories": { + "example": "../../temps/example_temps" + }, +"dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui", + "type": "component-vue" + }, + "uni_modules": { + "dependencies": ["uni-scss"], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y", + "alipay": "n" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "y", + "app-uvue": "y" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y", + "钉钉": "y", + "快手": "y", + "飞书": "y", + "京东": "y" + }, + "快应用": { + "华为": "y", + "联盟": "y" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} diff --git a/uni_modules/uni-icons/readme.md b/uni_modules/uni-icons/readme.md new file mode 100644 index 0000000..86234ba --- /dev/null +++ b/uni_modules/uni-icons/readme.md @@ -0,0 +1,8 @@ +## Icons 图标 +> **组件名:uni-icons** +> 代码块: `uIcons` + +用于展示 icons 图标 。 + +### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-icons) +#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 diff --git a/uni_modules/uni-id-common/changelog.md b/uni_modules/uni-id-common/changelog.md new file mode 100644 index 0000000..1ef0882 --- /dev/null +++ b/uni_modules/uni-id-common/changelog.md @@ -0,0 +1,36 @@ +## 1.0.18(2024-07-08) +- checkToken时如果传入的token为空则返回uni-id-check-token-failed错误码以便uniIdRouter能正常跳转 +## 1.0.17(2024-04-26) +- 兼容uni-app-x对客户端uniPlatform的调整(uni-app-x内uniPlatform区分app-android、app-ios) +## 1.0.16(2023-04-25) +- 新增maxTokenLength配置,用于限制数据库用户记录token数组的最大长度 +## 1.0.15(2023-04-06) +- 修复部分语言国际化出错的Bug +## 1.0.14(2023-03-07) +- 修复 admin用户包含其他角色时未包含在token的Bug +## 1.0.13(2022-07-21) +- 修复 创建token时未传角色权限信息生成的token不正确的bug +## 1.0.12(2022-07-15) +- 提升与旧版本uni-id的兼容性(补充读取配置文件时回退平台app-plus、h5),但是仍推荐使用新平台名进行配置(app、web) +## 1.0.11(2022-07-14) +- 修复 部分情况下报`read property 'reduce' of undefined`的错误 +## 1.0.10(2022-07-11) +- 将token存储在用户表的token字段内,与旧版本uni-id保持一致 +## 1.0.9(2022-07-01) +- checkToken兼容token内未缓存角色权限的情况,此时将查库获取角色权限 +## 1.0.8(2022-07-01) +- 修复clientDB默认依赖时部分情况下获取不到uni-id配置的Bug +## 1.0.7(2022-06-30) +- 修复config文件不合法时未抛出具体错误的Bug +## 1.0.6(2022-06-28) +- 移除插件内的数据表schema +## 1.0.5(2022-06-27) +- 修复使用多应用配置时报`Cannot read property 'appId' of undefined`的Bug +## 1.0.4(2022-06-27) +- 修复使用自定义token内容功能报错的Bug [详情](https://ask.dcloud.net.cn/question/147945) +## 1.0.2(2022-06-23) +- 对齐旧版本uni-id默认配置 +## 1.0.1(2022-06-22) +- 补充对uni-config-center的依赖 +## 1.0.0(2022-06-21) +- 提供uni-id token创建、校验、刷新接口,简化旧版uni-id公共模块 diff --git a/uni_modules/uni-id-common/package.json b/uni_modules/uni-id-common/package.json new file mode 100644 index 0000000..4605424 --- /dev/null +++ b/uni_modules/uni-id-common/package.json @@ -0,0 +1,84 @@ +{ + "id": "uni-id-common", + "displayName": "uni-id-common", + "version": "1.0.18", + "description": "包含uni-id token生成、校验、刷新功能的云函数公共模块", + "keywords": [ + "uni-id-common", + "uniCloud", + "token", + "权限" + ], + "repository": "https://gitcode.net/dcloud/uni-id-common", + "engines": { + }, + "dcloudext": { + "sale": { + "regular": { + "price": 0 + }, + "sourcecode": { + "price": 0 + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "", + "type": "unicloud-template-function" + }, + "uni_modules": { + "dependencies": ["uni-config-center"], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y", + "alipay": "n" + }, + "client": { + "Vue": { + "vue2": "u", + "vue3": "u" + }, + "App": { + "app-vue": "u", + "app-nvue": "u" + }, + "H5-mobile": { + "Safari": "u", + "Android Browser": "u", + "微信浏览器(Android)": "u", + "QQ浏览器(Android)": "u" + }, + "H5-pc": { + "Chrome": "u", + "IE": "u", + "Edge": "u", + "Firefox": "u", + "Safari": "u" + }, + "小程序": { + "微信": "u", + "阿里": "u", + "百度": "u", + "字节跳动": "u", + "QQ": "u", + "钉钉": "u", + "快手": "u", + "飞书": "u", + "京东": "u" + }, + "快应用": { + "华为": "u", + "联盟": "u" + } + } + } + } +} diff --git a/uni_modules/uni-id-common/readme.md b/uni_modules/uni-id-common/readme.md new file mode 100644 index 0000000..5f6a37a --- /dev/null +++ b/uni_modules/uni-id-common/readme.md @@ -0,0 +1,3 @@ +# uni-id-common + +文档请参考:[uni-id-common](https://uniapp.dcloud.net.cn/uniCloud/uni-id-common.html) \ No newline at end of file diff --git a/uni_modules/uni-id-common/uniCloud/cloudfunctions/common/uni-id-common/index.js b/uni_modules/uni-id-common/uniCloud/cloudfunctions/common/uni-id-common/index.js new file mode 100644 index 0000000..a8b99d0 --- /dev/null +++ b/uni_modules/uni-id-common/uniCloud/cloudfunctions/common/uni-id-common/index.js @@ -0,0 +1 @@ +"use strict";var e,t=(e=require("crypto"))&&"object"==typeof e&&"default"in e?e.default:e;const n={TOKEN_EXPIRED:"uni-id-token-expired",CHECK_TOKEN_FAILED:"uni-id-check-token-failed",PARAM_REQUIRED:"uni-id-param-required",ACCOUNT_EXISTS:"uni-id-account-exists",ACCOUNT_NOT_EXISTS:"uni-id-account-not-exists",ACCOUNT_CONFLICT:"uni-id-account-conflict",ACCOUNT_BANNED:"uni-id-account-banned",ACCOUNT_AUDITING:"uni-id-account-auditing",ACCOUNT_AUDIT_FAILED:"uni-id-account-audit-failed",ACCOUNT_CLOSED:"uni-id-account-closed"};function i(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}function r(e){if(!e)return;const t=e.match(/^(\d+).(\d+).(\d+)/);return t?t.slice(1,4).map(e=>parseInt(e)):void 0}function o(e,t){const n=r(e),i=r(t);return n?i?function(e,t){const n=Math.max(e.length,t.length);for(let i=0;ir)return 1;if(n=e)throw new Error("Config error, tokenExpiresThreshold should be less than tokenExpiresIn");t>e/2&&console.warn(`Please check whether the tokenExpiresThreshold configuration is set too large, tokenExpiresThreshold: ${t}, tokenExpiresIn: ${e}`)}get customToken(){return this.uniId.interceptorMap.get("customToken")}isTokenInDb(e){return o(e,"1.0.10")>=0}async getUserRecord(){if(this.userRecord)return this.userRecord;const e=await C.doc(this.uid).get();if(this.userRecord=e.data[0],!this.userRecord)throw{errCode:n.ACCOUNT_NOT_EXISTS};switch(this.userRecord.status){case void 0:case 0:break;case 1:throw{errCode:n.ACCOUNT_BANNED};case 2:throw{errCode:n.ACCOUNT_AUDITING};case 3:throw{errCode:n.ACCOUNT_AUDIT_FAILED};case 4:throw{errCode:n.ACCOUNT_CLOSED}}if(this.oldTokenPayload){if(this.isTokenInDb(this.oldTokenPayload.uniIdVersion)){if(-1===(this.userRecord.token||[]).indexOf(this.oldToken))throw{errCode:n.CHECK_TOKEN_FAILED}}if(this.userRecord.valid_token_date&&this.userRecord.valid_token_date>1e3*this.oldTokenPayload.iat)throw{errCode:n.TOKEN_EXPIRED}}return this.userRecord}async updateUserRecord(e){await C.doc(this.uid).update(e)}async getUserPermission(){if(this.userPermission)return this.userPermission;const e=(await this.getUserRecord()).role||[];if(0===e.length)return this.userPermission={role:[],permission:[]},this.userPermission;if(e.includes("admin"))return this.userPermission={role:e,permission:[]},this.userPermission;const t=await T.where({role_id:I.in(e)}).get(),n=(i=t.data.reduce((e,t)=>(t.permission&&e.push(...t.permission),e),[]),Array.from(new Set(i)));var i;return this.userPermission={role:e,permission:n},this.userPermission}async _createToken({uid:e,role:t,permission:i}={}){if(!t||!i){const e=await this.getUserPermission();t=e.role,i=e.permission}let r={uid:e,role:t,permission:i};if(this.uniId.interceptorMap.has("customToken")){const n=this.uniId.interceptorMap.get("customToken");if("function"!=typeof n)throw new Error("Invalid custom token file");r=await n({uid:e,role:t,permission:i})}const o=Date.now(),{tokenSecret:s,tokenExpiresIn:c,maxTokenLength:a=10}=this.config,u=g({...r,uniIdVersion:"1.0.18"},s,{expiresIn:c}),d=await this.getUserRecord(),l=(d.token||[]).filter(e=>{try{const t=this._checkToken(e);if(d.valid_token_date&&d.valid_token_date>1e3*t.iat)return!1}catch(e){if(e.errCode===n.TOKEN_EXPIRED)return!1}return!0});return l.push(u),l.length>a&&l.splice(0,l.length-a),await this.updateUserRecord({last_login_ip:this.clientInfo.clientIP,last_login_date:o,token:l}),{token:u,tokenExpired:o+1e3*c}}async createToken({uid:e,role:t,permission:i}={}){if(!e)throw{errCode:n.PARAM_REQUIRED,errMsgValue:{param:"uid"}};this.uid=e;const{token:r,tokenExpired:o}=await this._createToken({uid:e,role:t,permission:i});return{errCode:0,token:r,tokenExpired:o}}async refreshToken({token:e}={}){if(!e)throw{errCode:n.PARAM_REQUIRED,errMsgValue:{param:"token"}};this.oldToken=e;const t=this._checkToken(e);this.uid=t.uid,this.oldTokenPayload=t;const{uid:i}=t,{role:r,permission:o}=await this.getUserPermission(),{token:s,tokenExpired:c}=await this._createToken({uid:i,role:r,permission:o});return{errCode:0,token:s,tokenExpired:c}}_checkToken(e){const{tokenSecret:t}=this.config;let i;try{i=k(e,t)}catch(e){if("TokenExpiredError"===e.name)throw{errCode:n.TOKEN_EXPIRED};throw{errCode:n.CHECK_TOKEN_FAILED}}return i}async checkToken(e,{autoRefresh:t=!0}={}){if(!e)throw{errCode:n.CHECK_TOKEN_FAILED};this.oldToken=e;const i=this._checkToken(e);this.uid=i.uid,this.oldTokenPayload=i;const{tokenExpiresThreshold:r}=this.config,{uid:o,role:s,permission:c}=i,a={role:s,permission:c};if(!s&&!c){const{role:e,permission:t}=await this.getUserPermission();a.role=e,a.permission=t}if(!r||!t){const e={code:0,errCode:0,...i,...a};return delete e.uniIdVersion,e}const u=Date.now();let d={};1e3*i.exp-u<1e3*r&&(d=await this._createToken({uid:o}));const l={code:0,errCode:0,...i,...a,...d};return delete l.uniIdVersion,l}}var m=Object.freeze({__proto__:null,checkToken:async function(e,{autoRefresh:t=!0}={}){return new E({uniId:this}).checkToken(e,{autoRefresh:t})},createToken:async function({uid:e,role:t,permission:n}={}){return new E({uniId:this}).createToken({uid:e,role:t,permission:n})},refreshToken:async function({token:e}={}){return new E({uniId:this}).refreshToken({token:e})}});const w=require("uni-config-center")({pluginId:"uni-id"});class x{constructor({context:e,clientInfo:t,config:n}={}){this._clientInfo=e?function(e){return{appId:e.APPID,platform:e.PLATFORM,locale:e.LOCALE,clientIP:e.CLIENTIP,deviceId:e.DEVICEID}}(e):t,this._config=n,this.config=this._getOriginConfig(),this.interceptorMap=new Map,w.hasFile("custom-token.js")&&this.setInterceptor("customToken",require(w.resolve("custom-token.js")));this._i18n=uniCloud.initI18n({locale:this._clientInfo.locale,fallbackLocale:"zh-Hans",messages:JSON.parse(JSON.stringify(d))}),d[this._i18n.locale]||this._i18n.setLocale("zh-Hans")}setInterceptor(e,t){this.interceptorMap.set(e,t)}_t(...e){return this._i18n.t(...e)}_parseOriginConfig(e){return Array.isArray(e)?e:e[0]?Object.values(e):e}_getOriginConfig(){if(this._config)return this._config;if(w.hasFile("config.json")){let e;try{e=w.config()}catch(e){throw new Error("Invalid uni-id config file\n"+e.message)}return this._parseOriginConfig(e)}try{return this._parseOriginConfig(require("uni-id/config.json"))}catch(e){throw new Error("Invalid uni-id config file")}}_getAppConfig(){const e=this._getOriginConfig();return Array.isArray(e)?e.find(e=>e.dcloudAppid===this._clientInfo.appId)||e.find(e=>e.isDefaultConfig):e}_getPlatformConfig(){const e=this._getAppConfig();if(!e)throw new Error(`Config for current app (${this._clientInfo.appId}) was not found, please check your config file or client appId`);let t;switch(["app-plus","app-android","app-ios"].indexOf(this._clientInfo.platform)>-1&&(this._clientInfo.platform="app"),"h5"===this._clientInfo.platform&&(this._clientInfo.platform="web"),this._clientInfo.platform){case"web":t="h5";break;case"app":t="app-plus"}const n=[{tokenExpiresIn:7200,tokenExpiresThreshold:1200,passwordErrorLimit:6,passwordErrorRetryTime:3600},e];t&&e[t]&&n.push(e[t]),n.push(e[this._clientInfo.platform]);const i=Object.assign(...n);return["tokenSecret","tokenExpiresIn"].forEach(e=>{if(!i||!i[e])throw new Error(`Config parameter missing, ${e} is required`)}),i}_getConfig(){return this._getPlatformConfig()}}for(const e in m)x.prototype[e]=m[e];function y(e){const t=new x(e);return new Proxy(t,{get(e,t){if(t in e&&0!==t.indexOf("_")){if("function"==typeof e[t])return(n=e[t],function(){let e;try{e=n.apply(this,arguments)}catch(e){if(a(e))return c.call(this,e),e;throw e}return i(e)?e.then(e=>(a(e)&&c.call(this,e),e),e=>{if(a(e))return c.call(this,e),e;throw e}):(a(e)&&c.call(this,e),e)}).bind(e);if("context"!==t&&"config"!==t)return e[t]}var n}})}x.prototype.createInstance=y;const O={createInstance:y};module.exports=O; diff --git a/uni_modules/uni-id-common/uniCloud/cloudfunctions/common/uni-id-common/package.json b/uni_modules/uni-id-common/uniCloud/cloudfunctions/common/uni-id-common/package.json new file mode 100644 index 0000000..7003ea0 --- /dev/null +++ b/uni_modules/uni-id-common/uniCloud/cloudfunctions/common/uni-id-common/package.json @@ -0,0 +1,20 @@ +{ + "name": "uni-id-common", + "version": "1.0.18", + "description": "uni-id token生成、校验、刷新", + "main": "index.js", + "homepage": "https:\/\/uniapp.dcloud.io\/uniCloud\/uni-id-common.html", + "repository": { + "type": "git", + "url": "git+https:\/\/gitee.com\/dcloud\/uni-id-common.git" + }, + "author": "DCloud", + "license": "Apache-2.0", + "dependencies": { + "uni-config-center": "file:..\/..\/..\/..\/..\/uni-config-center\/uniCloud\/cloudfunctions\/common\/uni-config-center" + }, + "origin-plugin-dev-name": "uni-id-common", + "origin-plugin-version": "1.0.18", + "plugin-dev-name": "uni-id-common", + "plugin-version": "1.0.18" +} \ No newline at end of file diff --git a/uni_modules/uni-load-more/changelog.md b/uni_modules/uni-load-more/changelog.md new file mode 100644 index 0000000..8f03f1d --- /dev/null +++ b/uni_modules/uni-load-more/changelog.md @@ -0,0 +1,19 @@ +## 1.3.3(2022-01-20) +- 新增 showText属性 ,是否显示文本 +## 1.3.2(2022-01-19) +- 修复 nvue 平台下不显示文本的bug +## 1.3.1(2022-01-19) +- 修复 微信小程序平台样式选择器报警告的问题 +## 1.3.0(2021-11-19) +- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) +- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-load-more](https://uniapp.dcloud.io/component/uniui/uni-load-more) +## 1.2.1(2021-08-24) +- 新增 支持国际化 +## 1.2.0(2021-07-30) +- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) +## 1.1.8(2021-05-12) +- 新增 组件示例地址 +## 1.1.7(2021-03-30) +- 修复 uni-load-more 在首页使用时,h5 平台报 'uni is not defined' 的 bug +## 1.1.6(2021-02-05) +- 调整为uni_modules目录规范 diff --git a/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json b/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json new file mode 100644 index 0000000..a4f14a5 --- /dev/null +++ b/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json @@ -0,0 +1,5 @@ +{ + "uni-load-more.contentdown": "Pull up to show more", + "uni-load-more.contentrefresh": "loading...", + "uni-load-more.contentnomore": "No more data" +} diff --git a/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js b/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js new file mode 100644 index 0000000..de7509c --- /dev/null +++ b/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js @@ -0,0 +1,8 @@ +import en from './en.json' +import zhHans from './zh-Hans.json' +import zhHant from './zh-Hant.json' +export default { + en, + 'zh-Hans': zhHans, + 'zh-Hant': zhHant +} diff --git a/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json b/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json new file mode 100644 index 0000000..f15d510 --- /dev/null +++ b/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json @@ -0,0 +1,5 @@ +{ + "uni-load-more.contentdown": "上拉显示更多", + "uni-load-more.contentrefresh": "正在加载...", + "uni-load-more.contentnomore": "没有更多数据了" +} diff --git a/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json b/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json new file mode 100644 index 0000000..a255c6d --- /dev/null +++ b/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json @@ -0,0 +1,5 @@ +{ + "uni-load-more.contentdown": "上拉顯示更多", + "uni-load-more.contentrefresh": "正在加載...", + "uni-load-more.contentnomore": "沒有更多數據了" +} diff --git a/uni_modules/uni-load-more/components/uni-load-more/uni-load-more.vue b/uni_modules/uni-load-more/components/uni-load-more/uni-load-more.vue new file mode 100644 index 0000000..e5eff4d --- /dev/null +++ b/uni_modules/uni-load-more/components/uni-load-more/uni-load-more.vue @@ -0,0 +1,399 @@ + + + + + diff --git a/uni_modules/uni-load-more/package.json b/uni_modules/uni-load-more/package.json new file mode 100644 index 0000000..2fa6f04 --- /dev/null +++ b/uni_modules/uni-load-more/package.json @@ -0,0 +1,86 @@ +{ + "id": "uni-load-more", + "displayName": "uni-load-more 加载更多", + "version": "1.3.3", + "description": "LoadMore 组件,常用在列表里面,做滚动加载使用。", + "keywords": [ + "uni-ui", + "uniui", + "加载更多", + "load-more" +], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "" + }, + "directories": { + "example": "../../temps/example_temps" + }, + "dcloudext": { + "category": [ + "前端组件", + "通用组件" + ], + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" + }, + "uni_modules": { + "dependencies": ["uni-scss"], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "y" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y" + }, + "快应用": { + "华为": "u", + "联盟": "u" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} \ No newline at end of file diff --git a/uni_modules/uni-load-more/readme.md b/uni_modules/uni-load-more/readme.md new file mode 100644 index 0000000..54dc1fa --- /dev/null +++ b/uni_modules/uni-load-more/readme.md @@ -0,0 +1,14 @@ + + +### LoadMore 加载更多 +> **组件名:uni-load-more** +> 代码块: `uLoadMore` + + +用于列表中,做滚动加载使用,展示 loading 的各种状态。 + + +### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-load-more) +#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 + + diff --git a/uni_modules/uni-popup/changelog.md b/uni_modules/uni-popup/changelog.md new file mode 100644 index 0000000..decd775 --- /dev/null +++ b/uni_modules/uni-popup/changelog.md @@ -0,0 +1,84 @@ +## 1.9.1(2024-04-02) +- 修复 uni-popup-dialog vue3下使用value无法进行绑定的bug(双向绑定兼容旧写法) +## 1.9.0(2024-03-28) +- 修复 uni-popup-dialog 双向绑定时初始化逻辑修正 +## 1.8.9(2024-03-20) +- 修复 uni-popup-dialog 数据输入时修正为双向绑定 +## 1.8.8(2024-02-20) +- 修复 uni-popup 在微信小程序下出现文字向上闪动的bug +## 1.8.7(2024-02-02) +- 新增 uni-popup-dialog 新增属性focus:input模式下,是否自动自动聚焦 +## 1.8.6(2024-01-30) +- 新增 uni-popup-dialog 新增属性maxLength:限制输入框字数 +## 1.8.5(2024-01-26) +- 新增 uni-popup-dialog 新增属性showClose:控制关闭按钮的显示 +## 1.8.4(2023-11-15) +- 新增 uni-popup 支持uni-app-x 注意暂时仅支持 `maskClick` `@open` `@close` +## 1.8.3(2023-04-17) +- 修复 uni-popup 重复打开时的 bug +## 1.8.2(2023-02-02) +- uni-popup-dialog 组件新增 inputType 属性 +## 1.8.1(2022-12-01) +- 修复 nvue 下 v-show 报错 +## 1.8.0(2022-11-29) +- 优化 主题样式 +## 1.7.9(2022-04-02) +- 修复 弹出层内部无法滚动的bug +## 1.7.8(2022-03-28) +- 修复 小程序中高度错误的bug +## 1.7.7(2022-03-17) +- 修复 快速调用open出现问题的Bug +## 1.7.6(2022-02-14) +- 修复 safeArea 属性不能设置为false的bug +## 1.7.5(2022-01-19) +- 修复 isMaskClick 失效的bug +## 1.7.4(2022-01-19) +- 新增 cancelText \ confirmText 属性 ,可自定义文本 +- 新增 maskBackgroundColor 属性 ,可以修改蒙版颜色 +- 优化 maskClick属性 更新为 isMaskClick ,解决微信小程序警告的问题 +## 1.7.3(2022-01-13) +- 修复 设置 safeArea 属性不生效的bug +## 1.7.2(2021-11-26) +- 优化 组件示例 +## 1.7.1(2021-11-26) +- 修复 vuedoc 文字错误 +## 1.7.0(2021-11-19) +- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) +- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-popup](https://uniapp.dcloud.io/component/uniui/uni-popup) +## 1.6.2(2021-08-24) +- 新增 支持国际化 +## 1.6.1(2021-07-30) +- 优化 vue3下事件警告的问题 +## 1.6.0(2021-07-13) +- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) +## 1.5.0(2021-06-23) +- 新增 mask-click 遮罩层点击事件 +## 1.4.5(2021-06-22) +- 修复 nvue 平台中间弹出后,点击内容,再点击遮罩无法关闭的Bug +## 1.4.4(2021-06-18) +- 修复 H5平台中间弹出后,点击内容,再点击遮罩无法关闭的Bug +## 1.4.3(2021-06-08) +- 修复 错误的 watch 字段 +- 修复 safeArea 属性不生效的问题 +- 修复 点击内容,再点击遮罩无法关闭的Bug +## 1.4.2(2021-05-12) +- 新增 组件示例地址 +## 1.4.1(2021-04-29) +- 修复 组件内放置 input 、textarea 组件,无法聚焦的问题 +## 1.4.0 (2021-04-29) +- 新增 type 属性的 left\right 值,支持左右弹出 +- 新增 open(String:type) 方法参数 ,可以省略 type 属性 ,直接传入类型打开指定弹窗 +- 新增 backgroundColor 属性,可定义主窗口背景色,默认不显示背景色 +- 新增 safeArea 属性,是否适配底部安全区 +- 修复 App\h5\微信小程序底部安全区占位不对的Bug +- 修复 App 端弹出等待的Bug +- 优化 提升低配设备性能,优化动画卡顿问题 +- 优化 更简单的组件自定义方式 +## 1.2.9(2021-02-05) +- 优化 组件引用关系,通过uni_modules引用组件 +## 1.2.8(2021-02-05) +- 调整为uni_modules目录规范 +## 1.2.7(2021-02-05) +- 调整为uni_modules目录规范 +- 新增 支持 PC 端 +- 新增 uni-popup-message 、uni-popup-dialog扩展组件支持 PC 端 diff --git a/uni_modules/uni-popup/components/uni-popup-dialog/keypress.js b/uni_modules/uni-popup/components/uni-popup-dialog/keypress.js new file mode 100644 index 0000000..6ef26a2 --- /dev/null +++ b/uni_modules/uni-popup/components/uni-popup-dialog/keypress.js @@ -0,0 +1,45 @@ +// #ifdef H5 +export default { + name: 'Keypress', + props: { + disable: { + type: Boolean, + default: false + } + }, + mounted () { + const keyNames = { + esc: ['Esc', 'Escape'], + tab: 'Tab', + enter: 'Enter', + space: [' ', 'Spacebar'], + up: ['Up', 'ArrowUp'], + left: ['Left', 'ArrowLeft'], + right: ['Right', 'ArrowRight'], + down: ['Down', 'ArrowDown'], + delete: ['Backspace', 'Delete', 'Del'] + } + const listener = ($event) => { + if (this.disable) { + return + } + const keyName = Object.keys(keyNames).find(key => { + const keyName = $event.key + const value = keyNames[key] + return value === keyName || (Array.isArray(value) && value.includes(keyName)) + }) + if (keyName) { + // 避免和其他按键事件冲突 + setTimeout(() => { + this.$emit(keyName, {}) + }, 0) + } + } + document.addEventListener('keyup', listener) + this.$once('hook:beforeDestroy', () => { + document.removeEventListener('keyup', listener) + }) + }, + render: () => {} +} +// #endif diff --git a/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue b/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue new file mode 100644 index 0000000..08707d4 --- /dev/null +++ b/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue @@ -0,0 +1,316 @@ + + + + + diff --git a/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.vue b/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.vue new file mode 100644 index 0000000..91370a8 --- /dev/null +++ b/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.vue @@ -0,0 +1,143 @@ + + + + diff --git a/uni_modules/uni-popup/components/uni-popup-share/uni-popup-share.vue b/uni_modules/uni-popup/components/uni-popup-share/uni-popup-share.vue new file mode 100644 index 0000000..f7e667c --- /dev/null +++ b/uni_modules/uni-popup/components/uni-popup-share/uni-popup-share.vue @@ -0,0 +1,187 @@ + + + + diff --git a/uni_modules/uni-popup/components/uni-popup/i18n/en.json b/uni_modules/uni-popup/components/uni-popup/i18n/en.json new file mode 100644 index 0000000..7f1bd06 --- /dev/null +++ b/uni_modules/uni-popup/components/uni-popup/i18n/en.json @@ -0,0 +1,7 @@ +{ + "uni-popup.cancel": "cancel", + "uni-popup.ok": "ok", + "uni-popup.placeholder": "pleace enter", + "uni-popup.title": "Hint", + "uni-popup.shareTitle": "Share to" +} diff --git a/uni_modules/uni-popup/components/uni-popup/i18n/index.js b/uni_modules/uni-popup/components/uni-popup/i18n/index.js new file mode 100644 index 0000000..de7509c --- /dev/null +++ b/uni_modules/uni-popup/components/uni-popup/i18n/index.js @@ -0,0 +1,8 @@ +import en from './en.json' +import zhHans from './zh-Hans.json' +import zhHant from './zh-Hant.json' +export default { + en, + 'zh-Hans': zhHans, + 'zh-Hant': zhHant +} diff --git a/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hans.json b/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hans.json new file mode 100644 index 0000000..5e3003c --- /dev/null +++ b/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hans.json @@ -0,0 +1,7 @@ +{ + "uni-popup.cancel": "取消", + "uni-popup.ok": "确定", + "uni-popup.placeholder": "请输入", + "uni-popup.title": "提示", + "uni-popup.shareTitle": "分享到" +} diff --git a/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hant.json b/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hant.json new file mode 100644 index 0000000..13e39eb --- /dev/null +++ b/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hant.json @@ -0,0 +1,7 @@ +{ + "uni-popup.cancel": "取消", + "uni-popup.ok": "確定", + "uni-popup.placeholder": "請輸入", + "uni-popup.title": "提示", + "uni-popup.shareTitle": "分享到" +} diff --git a/uni_modules/uni-popup/components/uni-popup/keypress.js b/uni_modules/uni-popup/components/uni-popup/keypress.js new file mode 100644 index 0000000..62dda46 --- /dev/null +++ b/uni_modules/uni-popup/components/uni-popup/keypress.js @@ -0,0 +1,45 @@ +// #ifdef H5 +export default { + name: 'Keypress', + props: { + disable: { + type: Boolean, + default: false + } + }, + mounted () { + const keyNames = { + esc: ['Esc', 'Escape'], + tab: 'Tab', + enter: 'Enter', + space: [' ', 'Spacebar'], + up: ['Up', 'ArrowUp'], + left: ['Left', 'ArrowLeft'], + right: ['Right', 'ArrowRight'], + down: ['Down', 'ArrowDown'], + delete: ['Backspace', 'Delete', 'Del'] + } + const listener = ($event) => { + if (this.disable) { + return + } + const keyName = Object.keys(keyNames).find(key => { + const keyName = $event.key + const value = keyNames[key] + return value === keyName || (Array.isArray(value) && value.includes(keyName)) + }) + if (keyName) { + // 避免和其他按键事件冲突 + setTimeout(() => { + this.$emit(keyName, {}) + }, 0) + } + } + document.addEventListener('keyup', listener) + // this.$once('hook:beforeDestroy', () => { + // document.removeEventListener('keyup', listener) + // }) + }, + render: () => {} +} +// #endif diff --git a/uni_modules/uni-popup/components/uni-popup/popup.js b/uni_modules/uni-popup/components/uni-popup/popup.js new file mode 100644 index 0000000..c4e5781 --- /dev/null +++ b/uni_modules/uni-popup/components/uni-popup/popup.js @@ -0,0 +1,26 @@ + +export default { + data() { + return { + + } + }, + created(){ + this.popup = this.getParent() + }, + methods:{ + /** + * 获取父元素实例 + */ + getParent(name = 'uniPopup') { + let parent = this.$parent; + let parentName = parent.$options.name; + while (parentName !== name) { + parent = parent.$parent; + if (!parent) return false + parentName = parent.$options.name; + } + return parent; + }, + } +} diff --git a/uni_modules/uni-popup/components/uni-popup/uni-popup.uvue b/uni_modules/uni-popup/components/uni-popup/uni-popup.uvue new file mode 100644 index 0000000..5eb8d5b --- /dev/null +++ b/uni_modules/uni-popup/components/uni-popup/uni-popup.uvue @@ -0,0 +1,90 @@ + + + + + \ No newline at end of file diff --git a/uni_modules/uni-popup/components/uni-popup/uni-popup.vue b/uni_modules/uni-popup/components/uni-popup/uni-popup.vue new file mode 100644 index 0000000..8349e99 --- /dev/null +++ b/uni_modules/uni-popup/components/uni-popup/uni-popup.vue @@ -0,0 +1,503 @@ + + + + diff --git a/uni_modules/uni-popup/package.json b/uni_modules/uni-popup/package.json new file mode 100644 index 0000000..3cfa384 --- /dev/null +++ b/uni_modules/uni-popup/package.json @@ -0,0 +1,88 @@ +{ + "id": "uni-popup", + "displayName": "uni-popup 弹出层", + "version": "1.9.1", + "description": " Popup 组件,提供常用的弹层", + "keywords": [ + "uni-ui", + "弹出层", + "弹窗", + "popup", + "弹框" + ], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "" + }, + "directories": { + "example": "../../temps/example_temps" + }, + "dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui", + "type": "component-vue" + }, + "uni_modules": { + "dependencies": [ + "uni-scss", + "uni-transition" + ], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y", + "alipay": "n" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "y" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y" + }, + "快应用": { + "华为": "u", + "联盟": "u" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} diff --git a/uni_modules/uni-popup/readme.md b/uni_modules/uni-popup/readme.md new file mode 100644 index 0000000..fdad4b3 --- /dev/null +++ b/uni_modules/uni-popup/readme.md @@ -0,0 +1,17 @@ + + +## Popup 弹出层 +> **组件名:uni-popup** +> 代码块: `uPopup` +> 关联组件:`uni-transition` + + +弹出层组件,在应用中弹出一个消息提示窗口、提示框等 + +### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-popup) +#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 + + + + + diff --git a/uni_modules/uni-scss/changelog.md b/uni_modules/uni-scss/changelog.md new file mode 100644 index 0000000..b863bb0 --- /dev/null +++ b/uni_modules/uni-scss/changelog.md @@ -0,0 +1,8 @@ +## 1.0.3(2022-01-21) +- 优化 组件示例 +## 1.0.2(2021-11-22) +- 修复 / 符号在 vue 不同版本兼容问题引起的报错问题 +## 1.0.1(2021-11-22) +- 修复 vue3中scss语法兼容问题 +## 1.0.0(2021-11-18) +- init diff --git a/uni_modules/uni-scss/index.scss b/uni_modules/uni-scss/index.scss new file mode 100644 index 0000000..1744a5f --- /dev/null +++ b/uni_modules/uni-scss/index.scss @@ -0,0 +1 @@ +@import './styles/index.scss'; diff --git a/uni_modules/uni-scss/package.json b/uni_modules/uni-scss/package.json new file mode 100644 index 0000000..7cc0ccb --- /dev/null +++ b/uni_modules/uni-scss/package.json @@ -0,0 +1,82 @@ +{ + "id": "uni-scss", + "displayName": "uni-scss 辅助样式", + "version": "1.0.3", + "description": "uni-sass是uni-ui提供的一套全局样式 ,通过一些简单的类名和sass变量,实现简单的页面布局操作,比如颜色、边距、圆角等。", + "keywords": [ + "uni-scss", + "uni-ui", + "辅助样式" +], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "^3.1.0" + }, + "dcloudext": { + "category": [ + "JS SDK", + "通用 SDK" + ], + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" + }, + "uni_modules": { + "dependencies": [], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "u" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y" + }, + "快应用": { + "华为": "n", + "联盟": "n" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} diff --git a/uni_modules/uni-scss/readme.md b/uni_modules/uni-scss/readme.md new file mode 100644 index 0000000..b7d1c25 --- /dev/null +++ b/uni_modules/uni-scss/readme.md @@ -0,0 +1,4 @@ +`uni-sass` 是 `uni-ui`提供的一套全局样式 ,通过一些简单的类名和`sass`变量,实现简单的页面布局操作,比如颜色、边距、圆角等。 + +### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-sass) +#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/uni_modules/uni-scss/styles/index.scss b/uni_modules/uni-scss/styles/index.scss new file mode 100644 index 0000000..ffac4fe --- /dev/null +++ b/uni_modules/uni-scss/styles/index.scss @@ -0,0 +1,7 @@ +@import './setting/_variables.scss'; +@import './setting/_border.scss'; +@import './setting/_color.scss'; +@import './setting/_space.scss'; +@import './setting/_radius.scss'; +@import './setting/_text.scss'; +@import './setting/_styles.scss'; diff --git a/uni_modules/uni-scss/styles/setting/_border.scss b/uni_modules/uni-scss/styles/setting/_border.scss new file mode 100644 index 0000000..12a11c3 --- /dev/null +++ b/uni_modules/uni-scss/styles/setting/_border.scss @@ -0,0 +1,3 @@ +.uni-border { + border: 1px $uni-border-1 solid; +} \ No newline at end of file diff --git a/uni_modules/uni-scss/styles/setting/_color.scss b/uni_modules/uni-scss/styles/setting/_color.scss new file mode 100644 index 0000000..1ededd9 --- /dev/null +++ b/uni_modules/uni-scss/styles/setting/_color.scss @@ -0,0 +1,66 @@ + +// TODO 暂时不需要 class ,需要用户使用变量实现 ,如果使用类名其实并不推荐 +// @mixin get-styles($k,$c) { +// @if $k == size or $k == weight{ +// font-#{$k}:#{$c} +// }@else{ +// #{$k}:#{$c} +// } +// } +$uni-ui-color:( + // 主色 + primary: $uni-primary, + primary-disable: $uni-primary-disable, + primary-light: $uni-primary-light, + // 辅助色 + success: $uni-success, + success-disable: $uni-success-disable, + success-light: $uni-success-light, + warning: $uni-warning, + warning-disable: $uni-warning-disable, + warning-light: $uni-warning-light, + error: $uni-error, + error-disable: $uni-error-disable, + error-light: $uni-error-light, + info: $uni-info, + info-disable: $uni-info-disable, + info-light: $uni-info-light, + // 中性色 + main-color: $uni-main-color, + base-color: $uni-base-color, + secondary-color: $uni-secondary-color, + extra-color: $uni-extra-color, + // 背景色 + bg-color: $uni-bg-color, + // 边框颜色 + border-1: $uni-border-1, + border-2: $uni-border-2, + border-3: $uni-border-3, + border-4: $uni-border-4, + // 黑色 + black:$uni-black, + // 白色 + white:$uni-white, + // 透明 + transparent:$uni-transparent +) !default; +@each $key, $child in $uni-ui-color { + .uni-#{"" + $key} { + color: $child; + } + .uni-#{"" + $key}-bg { + background-color: $child; + } +} +.uni-shadow-sm { + box-shadow: $uni-shadow-sm; +} +.uni-shadow-base { + box-shadow: $uni-shadow-base; +} +.uni-shadow-lg { + box-shadow: $uni-shadow-lg; +} +.uni-mask { + background-color:$uni-mask; +} diff --git a/uni_modules/uni-scss/styles/setting/_radius.scss b/uni_modules/uni-scss/styles/setting/_radius.scss new file mode 100644 index 0000000..9a0428b --- /dev/null +++ b/uni_modules/uni-scss/styles/setting/_radius.scss @@ -0,0 +1,55 @@ +@mixin radius($r,$d:null ,$important: false){ + $radius-value:map-get($uni-radius, $r) if($important, !important, null); + // Key exists within the $uni-radius variable + @if (map-has-key($uni-radius, $r) and $d){ + @if $d == t { + border-top-left-radius:$radius-value; + border-top-right-radius:$radius-value; + }@else if $d == r { + border-top-right-radius:$radius-value; + border-bottom-right-radius:$radius-value; + }@else if $d == b { + border-bottom-left-radius:$radius-value; + border-bottom-right-radius:$radius-value; + }@else if $d == l { + border-top-left-radius:$radius-value; + border-bottom-left-radius:$radius-value; + }@else if $d == tl { + border-top-left-radius:$radius-value; + }@else if $d == tr { + border-top-right-radius:$radius-value; + }@else if $d == br { + border-bottom-right-radius:$radius-value; + }@else if $d == bl { + border-bottom-left-radius:$radius-value; + } + }@else{ + border-radius:$radius-value; + } +} + +@each $key, $child in $uni-radius { + @if($key){ + .uni-radius-#{"" + $key} { + @include radius($key) + } + }@else{ + .uni-radius { + @include radius($key) + } + } +} + +@each $direction in t, r, b, l,tl, tr, br, bl { + @each $key, $child in $uni-radius { + @if($key){ + .uni-radius-#{"" + $direction}-#{"" + $key} { + @include radius($key,$direction,false) + } + }@else{ + .uni-radius-#{$direction} { + @include radius($key,$direction,false) + } + } + } +} diff --git a/uni_modules/uni-scss/styles/setting/_space.scss b/uni_modules/uni-scss/styles/setting/_space.scss new file mode 100644 index 0000000..3c89528 --- /dev/null +++ b/uni_modules/uni-scss/styles/setting/_space.scss @@ -0,0 +1,56 @@ + +@mixin fn($space,$direction,$size,$n) { + @if $n { + #{$space}-#{$direction}: #{$size*$uni-space-root}px + } @else { + #{$space}-#{$direction}: #{-$size*$uni-space-root}px + } +} +@mixin get-styles($direction,$i,$space,$n){ + @if $direction == t { + @include fn($space, top,$i,$n); + } + @if $direction == r { + @include fn($space, right,$i,$n); + } + @if $direction == b { + @include fn($space, bottom,$i,$n); + } + @if $direction == l { + @include fn($space, left,$i,$n); + } + @if $direction == x { + @include fn($space, left,$i,$n); + @include fn($space, right,$i,$n); + } + @if $direction == y { + @include fn($space, top,$i,$n); + @include fn($space, bottom,$i,$n); + } + @if $direction == a { + @if $n { + #{$space}:#{$i*$uni-space-root}px; + } @else { + #{$space}:#{-$i*$uni-space-root}px; + } + } +} + +@each $orientation in m,p { + $space: margin; + @if $orientation == m { + $space: margin; + } @else { + $space: padding; + } + @for $i from 0 through 16 { + @each $direction in t, r, b, l, x, y, a { + .uni-#{$orientation}#{$direction}-#{$i} { + @include get-styles($direction,$i,$space,true); + } + .uni-#{$orientation}#{$direction}-n#{$i} { + @include get-styles($direction,$i,$space,false); + } + } + } +} \ No newline at end of file diff --git a/uni_modules/uni-scss/styles/setting/_styles.scss b/uni_modules/uni-scss/styles/setting/_styles.scss new file mode 100644 index 0000000..689afec --- /dev/null +++ b/uni_modules/uni-scss/styles/setting/_styles.scss @@ -0,0 +1,167 @@ +/* #ifndef APP-NVUE */ + +$-color-white:#fff; +$-color-black:#000; +@mixin base-style($color) { + color: #fff; + background-color: $color; + border-color: mix($-color-black, $color, 8%); + &:not([hover-class]):active { + background: mix($-color-black, $color, 10%); + border-color: mix($-color-black, $color, 20%); + color: $-color-white; + outline: none; + } +} +@mixin is-color($color) { + @include base-style($color); + &[loading] { + @include base-style($color); + &::before { + margin-right:5px; + } + } + &[disabled] { + &, + &[loading], + &:not([hover-class]):active { + color: $-color-white; + border-color: mix(darken($color,10%), $-color-white); + background-color: mix($color, $-color-white); + } + } + +} +@mixin base-plain-style($color) { + color:$color; + background-color: mix($-color-white, $color, 90%); + border-color: mix($-color-white, $color, 70%); + &:not([hover-class]):active { + background: mix($-color-white, $color, 80%); + color: $color; + outline: none; + border-color: mix($-color-white, $color, 50%); + } +} +@mixin is-plain($color){ + &[plain] { + @include base-plain-style($color); + &[loading] { + @include base-plain-style($color); + &::before { + margin-right:5px; + } + } + &[disabled] { + &, + &:active { + color: mix($-color-white, $color, 40%); + background-color: mix($-color-white, $color, 90%); + border-color: mix($-color-white, $color, 80%); + } + } + } +} + + +.uni-btn { + margin: 5px; + color: #393939; + border:1px solid #ccc; + font-size: 16px; + font-weight: 200; + background-color: #F9F9F9; + // TODO 暂时处理边框隐藏一边的问题 + overflow: visible; + &::after{ + border: none; + } + + &:not([type]),&[type=default] { + color: #999; + &[loading] { + background: none; + &::before { + margin-right:5px; + } + } + + + + &[disabled]{ + color: mix($-color-white, #999, 60%); + &, + &[loading], + &:active { + color: mix($-color-white, #999, 60%); + background-color: mix($-color-white,$-color-black , 98%); + border-color: mix($-color-white, #999, 85%); + } + } + + &[plain] { + color: #999; + background: none; + border-color: $uni-border-1; + &:not([hover-class]):active { + background: none; + color: mix($-color-white, $-color-black, 80%); + border-color: mix($-color-white, $-color-black, 90%); + outline: none; + } + &[disabled]{ + &, + &[loading], + &:active { + background: none; + color: mix($-color-white, #999, 60%); + border-color: mix($-color-white, #999, 85%); + } + } + } + } + + &:not([hover-class]):active { + color: mix($-color-white, $-color-black, 50%); + } + + &[size=mini] { + font-size: 16px; + font-weight: 200; + border-radius: 8px; + } + + + + &.uni-btn-small { + font-size: 14px; + } + &.uni-btn-mini { + font-size: 12px; + } + + &.uni-btn-radius { + border-radius: 999px; + } + &[type=primary] { + @include is-color($uni-primary); + @include is-plain($uni-primary) + } + &[type=success] { + @include is-color($uni-success); + @include is-plain($uni-success) + } + &[type=error] { + @include is-color($uni-error); + @include is-plain($uni-error) + } + &[type=warning] { + @include is-color($uni-warning); + @include is-plain($uni-warning) + } + &[type=info] { + @include is-color($uni-info); + @include is-plain($uni-info) + } +} +/* #endif */ diff --git a/uni_modules/uni-scss/styles/setting/_text.scss b/uni_modules/uni-scss/styles/setting/_text.scss new file mode 100644 index 0000000..a34d08f --- /dev/null +++ b/uni_modules/uni-scss/styles/setting/_text.scss @@ -0,0 +1,24 @@ +@mixin get-styles($k,$c) { + @if $k == size or $k == weight{ + font-#{$k}:#{$c} + }@else{ + #{$k}:#{$c} + } +} + +@each $key, $child in $uni-headings { + /* #ifndef APP-NVUE */ + .uni-#{$key} { + @each $k, $c in $child { + @include get-styles($k,$c) + } + } + /* #endif */ + /* #ifdef APP-NVUE */ + .container .uni-#{$key} { + @each $k, $c in $child { + @include get-styles($k,$c) + } + } + /* #endif */ +} diff --git a/uni_modules/uni-scss/styles/setting/_variables.scss b/uni_modules/uni-scss/styles/setting/_variables.scss new file mode 100644 index 0000000..557d3d7 --- /dev/null +++ b/uni_modules/uni-scss/styles/setting/_variables.scss @@ -0,0 +1,146 @@ +// @use "sass:math"; +@import '../tools/functions.scss'; +// 间距基础倍数 +$uni-space-root: 2 !default; +// 边框半径默认值 +$uni-radius-root:5px !default; +$uni-radius: () !default; +// 边框半径断点 +$uni-radius: map-deep-merge( + ( + 0: 0, + // TODO 当前版本暂时不支持 sm 属性 + // 'sm': math.div($uni-radius-root, 2), + null: $uni-radius-root, + 'lg': $uni-radius-root * 2, + 'xl': $uni-radius-root * 6, + 'pill': 9999px, + 'circle': 50% + ), + $uni-radius +); +// 字体家族 +$body-font-family: 'Roboto', sans-serif !default; +// 文本 +$heading-font-family: $body-font-family !default; +$uni-headings: () !default; +$letterSpacing: -0.01562em; +$uni-headings: map-deep-merge( + ( + 'h1': ( + size: 32px, + weight: 300, + line-height: 50px, + // letter-spacing:-0.01562em + ), + 'h2': ( + size: 28px, + weight: 300, + line-height: 40px, + // letter-spacing: -0.00833em + ), + 'h3': ( + size: 24px, + weight: 400, + line-height: 32px, + // letter-spacing: normal + ), + 'h4': ( + size: 20px, + weight: 400, + line-height: 30px, + // letter-spacing: 0.00735em + ), + 'h5': ( + size: 16px, + weight: 400, + line-height: 24px, + // letter-spacing: normal + ), + 'h6': ( + size: 14px, + weight: 500, + line-height: 18px, + // letter-spacing: 0.0125em + ), + 'subtitle': ( + size: 12px, + weight: 400, + line-height: 20px, + // letter-spacing: 0.00937em + ), + 'body': ( + font-size: 14px, + font-weight: 400, + line-height: 22px, + // letter-spacing: 0.03125em + ), + 'caption': ( + 'size': 12px, + 'weight': 400, + 'line-height': 20px, + // 'letter-spacing': 0.03333em, + // 'text-transform': false + ) + ), + $uni-headings +); + + + +// 主色 +$uni-primary: #2979ff !default; +$uni-primary-disable:lighten($uni-primary,20%) !default; +$uni-primary-light: lighten($uni-primary,25%) !default; + +// 辅助色 +// 除了主色外的场景色,需要在不同的场景中使用(例如危险色表示危险的操作)。 +$uni-success: #18bc37 !default; +$uni-success-disable:lighten($uni-success,20%) !default; +$uni-success-light: lighten($uni-success,25%) !default; + +$uni-warning: #f3a73f !default; +$uni-warning-disable:lighten($uni-warning,20%) !default; +$uni-warning-light: lighten($uni-warning,25%) !default; + +$uni-error: #e43d33 !default; +$uni-error-disable:lighten($uni-error,20%) !default; +$uni-error-light: lighten($uni-error,25%) !default; + +$uni-info: #8f939c !default; +$uni-info-disable:lighten($uni-info,20%) !default; +$uni-info-light: lighten($uni-info,25%) !default; + +// 中性色 +// 中性色用于文本、背景和边框颜色。通过运用不同的中性色,来表现层次结构。 +$uni-main-color: #3a3a3a !default; // 主要文字 +$uni-base-color: #6a6a6a !default; // 常规文字 +$uni-secondary-color: #909399 !default; // 次要文字 +$uni-extra-color: #c7c7c7 !default; // 辅助说明 + +// 边框颜色 +$uni-border-1: #F0F0F0 !default; +$uni-border-2: #EDEDED !default; +$uni-border-3: #DCDCDC !default; +$uni-border-4: #B9B9B9 !default; + +// 常规色 +$uni-black: #000000 !default; +$uni-white: #ffffff !default; +$uni-transparent: rgba($color: #000000, $alpha: 0) !default; + +// 背景色 +$uni-bg-color: #f7f7f7 !default; + +/* 水平间距 */ +$uni-spacing-sm: 8px !default; +$uni-spacing-base: 15px !default; +$uni-spacing-lg: 30px !default; + +// 阴影 +$uni-shadow-sm:0 0 5px rgba($color: #d8d8d8, $alpha: 0.5) !default; +$uni-shadow-base:0 1px 8px 1px rgba($color: #a5a5a5, $alpha: 0.2) !default; +$uni-shadow-lg:0px 1px 10px 2px rgba($color: #a5a4a4, $alpha: 0.5) !default; + +// 蒙版 +$uni-mask: rgba($color: #000000, $alpha: 0.4) !default; diff --git a/uni_modules/uni-scss/styles/tools/functions.scss b/uni_modules/uni-scss/styles/tools/functions.scss new file mode 100644 index 0000000..ac6f63e --- /dev/null +++ b/uni_modules/uni-scss/styles/tools/functions.scss @@ -0,0 +1,19 @@ +// 合并 map +@function map-deep-merge($parent-map, $child-map){ + $result: $parent-map; + @each $key, $child in $child-map { + $parent-has-key: map-has-key($result, $key); + $parent-value: map-get($result, $key); + $parent-type: type-of($parent-value); + $child-type: type-of($child); + $parent-is-map: $parent-type == map; + $child-is-map: $child-type == map; + + @if (not $parent-has-key) or ($parent-type != $child-type) or (not ($parent-is-map and $child-is-map)){ + $result: map-merge($result, ( $key: $child )); + }@else { + $result: map-merge($result, ( $key: map-deep-merge($parent-value, $child) )); + } + } + @return $result; +}; diff --git a/uni_modules/uni-scss/theme.scss b/uni_modules/uni-scss/theme.scss new file mode 100644 index 0000000..80ee62f --- /dev/null +++ b/uni_modules/uni-scss/theme.scss @@ -0,0 +1,31 @@ +// 间距基础倍数 +$uni-space-root: 2; +// 边框半径默认值 +$uni-radius-root:5px; +// 主色 +$uni-primary: #2979ff; +// 辅助色 +$uni-success: #4cd964; +// 警告色 +$uni-warning: #f0ad4e; +// 错误色 +$uni-error: #dd524d; +// 描述色 +$uni-info: #909399; +// 中性色 +$uni-main-color: #303133; +$uni-base-color: #606266; +$uni-secondary-color: #909399; +$uni-extra-color: #C0C4CC; +// 背景色 +$uni-bg-color: #f5f5f5; +// 边框颜色 +$uni-border-1: #DCDFE6; +$uni-border-2: #E4E7ED; +$uni-border-3: #EBEEF5; +$uni-border-4: #F2F6FC; + +// 常规色 +$uni-black: #000000; +$uni-white: #ffffff; +$uni-transparent: rgba($color: #000000, $alpha: 0); diff --git a/uni_modules/uni-scss/variables.scss b/uni_modules/uni-scss/variables.scss new file mode 100644 index 0000000..1c062d4 --- /dev/null +++ b/uni_modules/uni-scss/variables.scss @@ -0,0 +1,62 @@ +@import './styles/setting/_variables.scss'; +// 间距基础倍数 +$uni-space-root: 2; +// 边框半径默认值 +$uni-radius-root:5px; + +// 主色 +$uni-primary: #2979ff; +$uni-primary-disable:mix(#fff,$uni-primary,50%); +$uni-primary-light: mix(#fff,$uni-primary,80%); + +// 辅助色 +// 除了主色外的场景色,需要在不同的场景中使用(例如危险色表示危险的操作)。 +$uni-success: #18bc37; +$uni-success-disable:mix(#fff,$uni-success,50%); +$uni-success-light: mix(#fff,$uni-success,80%); + +$uni-warning: #f3a73f; +$uni-warning-disable:mix(#fff,$uni-warning,50%); +$uni-warning-light: mix(#fff,$uni-warning,80%); + +$uni-error: #e43d33; +$uni-error-disable:mix(#fff,$uni-error,50%); +$uni-error-light: mix(#fff,$uni-error,80%); + +$uni-info: #8f939c; +$uni-info-disable:mix(#fff,$uni-info,50%); +$uni-info-light: mix(#fff,$uni-info,80%); + +// 中性色 +// 中性色用于文本、背景和边框颜色。通过运用不同的中性色,来表现层次结构。 +$uni-main-color: #3a3a3a; // 主要文字 +$uni-base-color: #6a6a6a; // 常规文字 +$uni-secondary-color: #909399; // 次要文字 +$uni-extra-color: #c7c7c7; // 辅助说明 + +// 边框颜色 +$uni-border-1: #F0F0F0; +$uni-border-2: #EDEDED; +$uni-border-3: #DCDCDC; +$uni-border-4: #B9B9B9; + +// 常规色 +$uni-black: #000000; +$uni-white: #ffffff; +$uni-transparent: rgba($color: #000000, $alpha: 0); + +// 背景色 +$uni-bg-color: #f7f7f7; + +/* 水平间距 */ +$uni-spacing-sm: 8px; +$uni-spacing-base: 15px; +$uni-spacing-lg: 30px; + +// 阴影 +$uni-shadow-sm:0 0 5px rgba($color: #d8d8d8, $alpha: 0.5); +$uni-shadow-base:0 1px 8px 1px rgba($color: #a5a5a5, $alpha: 0.2); +$uni-shadow-lg:0px 1px 10px 2px rgba($color: #a5a4a4, $alpha: 0.5); + +// 蒙版 +$uni-mask: rgba($color: #000000, $alpha: 0.4); diff --git a/uni_modules/uni-transition/changelog.md b/uni_modules/uni-transition/changelog.md new file mode 100644 index 0000000..faaf336 --- /dev/null +++ b/uni_modules/uni-transition/changelog.md @@ -0,0 +1,24 @@ +## 1.3.3(2024-04-23) +- 修复 当元素会受变量影响自动隐藏的bug +## 1.3.2(2023-05-04) +- 修复 NVUE 平台报错的问题 +## 1.3.1(2021-11-23) +- 修复 init 方法初始化问题 +## 1.3.0(2021-11-19) +- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) +- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-transition](https://uniapp.dcloud.io/component/uniui/uni-transition) +## 1.2.1(2021-09-27) +- 修复 init 方法不生效的 Bug +## 1.2.0(2021-07-30) +- 组件兼容 vue3,如何创建 vue3 项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) +## 1.1.1(2021-05-12) +- 新增 示例地址 +- 修复 示例项目缺少组件的 Bug +## 1.1.0(2021-04-22) +- 新增 通过方法自定义动画 +- 新增 custom-class 非 NVUE 平台支持自定义 class 定制样式 +- 优化 动画触发逻辑,使动画更流畅 +- 优化 支持单独的动画类型 +- 优化 文档示例 +## 1.0.2(2021-02-05) +- 调整为 uni_modules 目录规范 diff --git a/uni_modules/uni-transition/components/uni-transition/createAnimation.js b/uni_modules/uni-transition/components/uni-transition/createAnimation.js new file mode 100644 index 0000000..8f89b18 --- /dev/null +++ b/uni_modules/uni-transition/components/uni-transition/createAnimation.js @@ -0,0 +1,131 @@ +// const defaultOption = { +// duration: 300, +// timingFunction: 'linear', +// delay: 0, +// transformOrigin: '50% 50% 0' +// } +// #ifdef APP-NVUE +const nvueAnimation = uni.requireNativePlugin('animation') +// #endif +class MPAnimation { + constructor(options, _this) { + this.options = options + // 在iOS10+QQ小程序平台下,传给原生的对象一定是个普通对象而不是Proxy对象,否则会报parameter should be Object instead of ProxyObject的错误 + this.animation = uni.createAnimation({ + ...options + }) + this.currentStepAnimates = {} + this.next = 0 + this.$ = _this + + } + + _nvuePushAnimates(type, args) { + let aniObj = this.currentStepAnimates[this.next] + let styles = {} + if (!aniObj) { + styles = { + styles: {}, + config: {} + } + } else { + styles = aniObj + } + if (animateTypes1.includes(type)) { + if (!styles.styles.transform) { + styles.styles.transform = '' + } + let unit = '' + if(type === 'rotate'){ + unit = 'deg' + } + styles.styles.transform += `${type}(${args+unit}) ` + } else { + styles.styles[type] = `${args}` + } + this.currentStepAnimates[this.next] = styles + } + _animateRun(styles = {}, config = {}) { + let ref = this.$.$refs['ani'].ref + if (!ref) return + return new Promise((resolve, reject) => { + nvueAnimation.transition(ref, { + styles, + ...config + }, res => { + resolve() + }) + }) + } + + _nvueNextAnimate(animates, step = 0, fn) { + let obj = animates[step] + if (obj) { + let { + styles, + config + } = obj + this._animateRun(styles, config).then(() => { + step += 1 + this._nvueNextAnimate(animates, step, fn) + }) + } else { + this.currentStepAnimates = {} + typeof fn === 'function' && fn() + this.isEnd = true + } + } + + step(config = {}) { + // #ifndef APP-NVUE + this.animation.step(config) + // #endif + // #ifdef APP-NVUE + this.currentStepAnimates[this.next].config = Object.assign({}, this.options, config) + this.currentStepAnimates[this.next].styles.transformOrigin = this.currentStepAnimates[this.next].config.transformOrigin + this.next++ + // #endif + return this + } + + run(fn) { + // #ifndef APP-NVUE + this.$.animationData = this.animation.export() + this.$.timer = setTimeout(() => { + typeof fn === 'function' && fn() + }, this.$.durationTime) + // #endif + // #ifdef APP-NVUE + this.isEnd = false + let ref = this.$.$refs['ani'] && this.$.$refs['ani'].ref + if(!ref) return + this._nvueNextAnimate(this.currentStepAnimates, 0, fn) + this.next = 0 + // #endif + } +} + + +const animateTypes1 = ['matrix', 'matrix3d', 'rotate', 'rotate3d', 'rotateX', 'rotateY', 'rotateZ', 'scale', 'scale3d', + 'scaleX', 'scaleY', 'scaleZ', 'skew', 'skewX', 'skewY', 'translate', 'translate3d', 'translateX', 'translateY', + 'translateZ' +] +const animateTypes2 = ['opacity', 'backgroundColor'] +const animateTypes3 = ['width', 'height', 'left', 'right', 'top', 'bottom'] +animateTypes1.concat(animateTypes2, animateTypes3).forEach(type => { + MPAnimation.prototype[type] = function(...args) { + // #ifndef APP-NVUE + this.animation[type](...args) + // #endif + // #ifdef APP-NVUE + this._nvuePushAnimates(type, args) + // #endif + return this + } +}) + +export function createAnimation(option, _this) { + if(!_this) return + clearTimeout(_this.timer) + return new MPAnimation(option, _this) +} diff --git a/uni_modules/uni-transition/components/uni-transition/uni-transition.vue b/uni_modules/uni-transition/components/uni-transition/uni-transition.vue new file mode 100644 index 0000000..f3ddd1f --- /dev/null +++ b/uni_modules/uni-transition/components/uni-transition/uni-transition.vue @@ -0,0 +1,286 @@ + + + + + diff --git a/uni_modules/uni-transition/package.json b/uni_modules/uni-transition/package.json new file mode 100644 index 0000000..d5c20e1 --- /dev/null +++ b/uni_modules/uni-transition/package.json @@ -0,0 +1,85 @@ +{ + "id": "uni-transition", + "displayName": "uni-transition 过渡动画", + "version": "1.3.3", + "description": "元素的简单过渡动画", + "keywords": [ + "uni-ui", + "uniui", + "动画", + "过渡", + "过渡动画" +], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "" + }, + "directories": { + "example": "../../temps/example_temps" + }, +"dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui", + "type": "component-vue" + }, + "uni_modules": { + "dependencies": ["uni-scss"], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y", + "alipay": "n" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "y" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y" + }, + "快应用": { + "华为": "u", + "联盟": "u" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} \ No newline at end of file diff --git a/uni_modules/uni-transition/readme.md b/uni_modules/uni-transition/readme.md new file mode 100644 index 0000000..2f8a77e --- /dev/null +++ b/uni_modules/uni-transition/readme.md @@ -0,0 +1,11 @@ + + +## Transition 过渡动画 +> **组件名:uni-transition** +> 代码块: `uTransition` + + +元素过渡动画 + +### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-transition) +#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file diff --git a/unpackage/dist/build/.nvue/app.css.js b/unpackage/dist/build/.nvue/app.css.js new file mode 100644 index 0000000..c5ba808 --- /dev/null +++ b/unpackage/dist/build/.nvue/app.css.js @@ -0,0 +1,11 @@ +var __getOwnPropNames = Object.getOwnPropertyNames; +var __commonJS = (cb, mod) => function __require() { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; +}; +var require_app_css = __commonJS({ + "app.css.js"(exports) { + const _style_0 = {}; + exports.styles = [_style_0]; + } +}); +export default require_app_css(); diff --git a/unpackage/dist/build/.nvue/app.js b/unpackage/dist/build/.nvue/app.js new file mode 100644 index 0000000..8236d9e --- /dev/null +++ b/unpackage/dist/build/.nvue/app.js @@ -0,0 +1,2 @@ +Promise.resolve("./app.css.js").then(() => { +}); diff --git a/unpackage/dist/build/app-plus/__uniappautomator.js b/unpackage/dist/build/app-plus/__uniappautomator.js new file mode 100644 index 0000000..2471e2e --- /dev/null +++ b/unpackage/dist/build/app-plus/__uniappautomator.js @@ -0,0 +1,16 @@ +var n; +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +function __spreadArrays(){for(var s=0,i=0,il=arguments.length;in;n++)r(e,e._deferreds[n]);e._deferreds=null}function c(e,n){var t=!1;try{e((function(e){t||(t=!0,i(n,e))}),(function(e){t||(t=!0,f(n,e))}))}catch(o){if(t)return;t=!0,f(n,o)}}var a=setTimeout;o.prototype.catch=function(e){return this.then(null,e)},o.prototype.then=function(e,n){var o=new this.constructor(t);return r(this,new function(e,n,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof n?n:null,this.promise=t}(e,n,o)),o},o.prototype.finally=e,o.all=function(e){return new o((function(t,o){function r(e,n){try{if(n&&("object"==typeof n||"function"==typeof n)){var u=n.then;if("function"==typeof u)return void u.call(n,(function(n){r(e,n)}),o)}i[e]=n,0==--f&&t(i)}catch(c){o(c)}}if(!n(e))return o(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);for(var f=i.length,u=0;i.length>u;u++)r(u,i[u])}))},o.resolve=function(e){return e&&"object"==typeof e&&e.constructor===o?e:new o((function(n){n(e)}))},o.reject=function(e){return new o((function(n,t){t(e)}))},o.race=function(e){return new o((function(t,r){if(!n(e))return r(new TypeError("Promise.race accepts an array"));for(var i=0,f=e.length;f>i;i++)o.resolve(e[i]).then(t,r)}))},o._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){a(e,0)},o._unhandledRejectionFn=function(e){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var l=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}();"Promise"in l?l.Promise.prototype.finally||(l.Promise.prototype.finally=e):l.Promise=o},"object"==typeof exports&&"undefined"!=typeof module?n():"function"==typeof define&&define.amd?define(n):n();var getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),rnds8=new Uint8Array(16);function rng(){if(!getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}for(var byteToHex=[],i=0;i<256;++i)byteToHex[i]=(i+256).toString(16).substr(1);function v4(options,buf,offset){var i=buf&&offset||0;"string"==typeof options&&(buf="binary"===options?new Array(16):null,options=null);var rnds=(options=options||{}).random||(options.rng||rng)();if(rnds[6]=15&rnds[6]|64,rnds[8]=63&rnds[8]|128,buf)for(var ii=0;ii<16;++ii)buf[i+ii]=rnds[ii];return buf||function(buf,offset){var i=offset||0,bth=byteToHex;return[bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]]].join("")}(rnds)}var hasOwnProperty=Object.prototype.hasOwnProperty,isArray=Array.isArray,PATH_RE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;function getPaths(path,data){if(isArray(path))return path;if(data&&(val=data,key=path,hasOwnProperty.call(val,key)))return[path];var val,key,res=[];return path.replace(PATH_RE,(function(match,p1,offset,string){return res.push(offset?string.replace(/\\(\\)?/g,"$1"):p1||match),string})),res}function getDataByPath(data,path){var dataPath,paths=getPaths(path,data);for(dataPath=paths.shift();null!=dataPath;){if(null==(data=data[dataPath]))return;dataPath=paths.shift()}return data}var elementMap=new Map;function transEl(el){var _a;if(!function(el){if(el){var tagName=el.tagName;return 0===tagName.indexOf("UNI-")||"BODY"===tagName||0===tagName.indexOf("V-UNI-")||el.__isUniElement}return!1}(el))throw Error("no such element");var element,elementId,elem={elementId:(element=el,elementId=element._id,elementId||(elementId=v4(),element._id=elementId,elementMap.set(elementId,{id:elementId,element:element})),elementId),tagName:el.tagName.toLocaleLowerCase().replace("uni-","")};if(el.__vue__)(vm=el.__vue__)&&(vm.$parent&&vm.$parent.$el===el&&(vm=vm.$parent),vm&&!(null===(_a=vm.$options)||void 0===_a?void 0:_a.isReserved)&&(elem.nodeId=function(vm){if(vm._$weex)return vm._uid;if(vm._$id)return vm._$id;if(vm.uid)return vm.uid;var parent_1=function(vm){for(var parent=vm.$parent;parent;){if(parent._$id)return parent;parent=parent.$parent}}(vm);if(!vm.$parent)return"-1";var vnode=vm.$vnode,context=vnode.context;return context&&context!==parent_1&&context._$id?context._$id+";"+parent_1._$id+","+vnode.data.attrs._i:parent_1._$id+","+vnode.data.attrs._i}(vm)));else var vm;return"video"===elem.tagName&&(elem.videoId=elem.nodeId),elem}function getVm(el){return el.__vue__?{isVue3:!1,vm:el.__vue__}:{isVue3:!0,vm:el.__vueParentComponent}}function getScrollViewMain(el){var _a=getVm(el),isVue3=_a.isVue3,vm=_a.vm;return isVue3?vm.exposed.$getMain():vm.$refs.main}var FUNCTIONS={input:{input:function(el,value){var _a=getVm(el),isVue3=_a.isVue3,vm=_a.vm;isVue3?vm.exposed&&vm.exposed.$triggerInput({value:value}):(vm.valueSync=value,vm.$triggerInput({},{value:value}))}},textarea:{input:function(el,value){var _a=getVm(el),isVue3=_a.isVue3,vm=_a.vm;isVue3?vm.exposed&&vm.exposed.$triggerInput({value:value}):(vm.valueSync=value,vm.$triggerInput({},{value:value}))}},"scroll-view":{scrollTo:function(el,x,y){var main=getScrollViewMain(el);main.scrollLeft=x,main.scrollTop=y},scrollTop:function(el){return getScrollViewMain(el).scrollTop},scrollLeft:function(el){return getScrollViewMain(el).scrollLeft},scrollWidth:function(el){return getScrollViewMain(el).scrollWidth},scrollHeight:function(el){return getScrollViewMain(el).scrollHeight}},swiper:{swipeTo:function(el,index){el.__vue__.current=index}},"movable-view":{moveTo:function(el,x,y){el.__vue__._animationTo(x,y)}},switch:{tap:function(el){el.click()}},slider:{slideTo:function(el,value){var vm=el.__vue__,slider=vm.$refs["uni-slider"],offsetWidth=slider.offsetWidth,boxLeft=slider.getBoundingClientRect().left;vm.value=value,vm._onClick({x:(value-vm.min)*offsetWidth/(vm.max-vm.min)+boxLeft})}}};function createTouchList(touchInits){var _a,touches=touchInits.map((function(touch){return function(touch){if(document.createTouch)return document.createTouch(window,touch.target,touch.identifier,touch.pageX,touch.pageY,touch.screenX,touch.screenY);return new Touch(touch)}(touch)}));return document.createTouchList?(_a=document).createTouchList.apply(_a,touches):touches}var WebAdapter={getWindow:function(pageId){return window},getDocument:function(pageId){return document},getEl:function(elementId){var element=elementMap.get(elementId);if(!element)throw Error("element destroyed");return element.element},getOffset:function(node){var rect=node.getBoundingClientRect();return Promise.resolve({left:rect.left+window.pageXOffset,top:rect.top+window.pageYOffset})},querySelector:function(context,selector){return"page"===selector&&(selector="body"),Promise.resolve(transEl(context.querySelector(selector)))},querySelectorAll:function(context,selector){var elements=[],nodeList=document.querySelectorAll(selector);return[].forEach.call(nodeList,(function(node){try{elements.push(transEl(node))}catch(e){}})),Promise.resolve({elements:elements})},queryProperties:function(context,names){return Promise.resolve({properties:names.map((function(name){var value=getDataByPath(context,name.replace(/-([a-z])/g,(function(g){return g[1].toUpperCase()})));return"document.documentElement.scrollTop"===name&&0===value&&(value=getDataByPath(context,"document.body.scrollTop")),value}))})},queryAttributes:function(context,names){return Promise.resolve({attributes:names.map((function(name){return String(context.getAttribute(name))}))})},queryStyles:function(context,names){var style=getComputedStyle(context);return Promise.resolve({styles:names.map((function(name){return style[name]}))})},queryHTML:function(context,type){return Promise.resolve({html:(html="outer"===type?context.outerHTML:context.innerHTML,html.replace(/\n/g,"").replace(/(]*>)(]*>[^<]*<\/span>)(.*?<\/uni-text>)/g,"$1$3").replace(/<\/?[^>]*>/g,(function(replacement){return-1":""===replacement?"":0!==replacement.indexOf(" promise.resolve(callback()).then(() => value), + reason => promise.resolve(callback()).then(() => { + throw reason + }) + ) + } +}; + +if (typeof uni !== 'undefined' && uni && uni.requireGlobal) { + const global = uni.requireGlobal() + ArrayBuffer = global.ArrayBuffer + Int8Array = global.Int8Array + Uint8Array = global.Uint8Array + Uint8ClampedArray = global.Uint8ClampedArray + Int16Array = global.Int16Array + Uint16Array = global.Uint16Array + Int32Array = global.Int32Array + Uint32Array = global.Uint32Array + Float32Array = global.Float32Array + Float64Array = global.Float64Array + BigInt64Array = global.BigInt64Array + BigUint64Array = global.BigUint64Array +}; + + +(()=>{var S=Object.create;var u=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty;var y=(A,t)=>()=>(t||A((t={exports:{}}).exports,t),t.exports);var G=(A,t,s,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of C(t))!_.call(A,a)&&a!==s&&u(A,a,{get:()=>t[a],enumerable:!(r=I(t,a))||r.enumerable});return A};var k=(A,t,s)=>(s=A!=null?S(E(A)):{},G(t||!A||!A.__esModule?u(s,"default",{value:A,enumerable:!0}):s,A));var B=y((q,D)=>{D.exports=Vue});var Q=Object.prototype.toString,f=A=>Q.call(A),p=A=>f(A).slice(8,-1);function N(){return typeof __channelId__=="string"&&__channelId__}function P(A,t){switch(p(t)){case"Function":return"function() { [native code] }";default:return t}}function j(A,t,s){return N()?(s.push(t.replace("at ","uni-app:///")),console[A].apply(console,s)):s.map(function(a){let o=f(a).toLowerCase();if(["[object object]","[object array]","[object module]"].indexOf(o)!==-1)try{a="---BEGIN:JSON---"+JSON.stringify(a,P)+"---END:JSON---"}catch(i){a=o}else if(a===null)a="---NULL---";else if(a===void 0)a="---UNDEFINED---";else{let i=p(a).toUpperCase();i==="NUMBER"||i==="BOOLEAN"?a="---BEGIN:"+i+"---"+a+"---END:"+i+"---":a=String(a)}return a}).join("---COMMA---")+" "+t}function h(A,t,...s){let r=j(A,t,s);r&&console[A](r)}var m={data(){return{locale:"en",fallbackLocale:"en",localization:{en:{done:"OK",cancel:"Cancel"},zh:{done:"\u5B8C\u6210",cancel:"\u53D6\u6D88"},"zh-hans":{},"zh-hant":{},messages:{}},localizationTemplate:{}}},onLoad(){this.initLocale()},created(){this.initLocale()},methods:{initLocale(){if(this.__initLocale)return;this.__initLocale=!0;let A=(plus.webview.currentWebview().extras||{}).data||{};if(A.messages&&(this.localization.messages=A.messages),A.locale){this.locale=A.locale.toLowerCase();return}let t={chs:"hans",cn:"hans",sg:"hans",cht:"hant",tw:"hant",hk:"hant",mo:"hant"},s=plus.os.language.toLowerCase().split("/")[0].replace("_","-").split("-"),r=s[1];r&&(s[1]=t[r]||r),s.length=s.length>2?2:s.length,this.locale=s.join("-")},localize(A){let t=this.locale,s=t.split("-")[0],r=this.fallbackLocale,a=o=>Object.assign({},this.localization[o],(this.localizationTemplate||{})[o]);return a("messages")[A]||a(t)[A]||a(s)[A]||a(r)[A]||A}}},w={onLoad(){this.initMessage()},methods:{initMessage(){let{from:A,callback:t,runtime:s,data:r={},useGlobalEvent:a}=plus.webview.currentWebview().extras||{};this.__from=A,this.__runtime=s,this.__page=plus.webview.currentWebview().id,this.__useGlobalEvent=a,this.data=JSON.parse(JSON.stringify(r)),plus.key.addEventListener("backbutton",()=>{typeof this.onClose=="function"?this.onClose():plus.webview.currentWebview().close("auto")});let o=this,i=function(n){let l=n.data&&n.data.__message;!l||o.__onMessageCallback&&o.__onMessageCallback(l.data)};if(this.__useGlobalEvent)weex.requireModule("globalEvent").addEventListener("plusMessage",i);else{let n=new BroadcastChannel(this.__page);n.onmessage=i}},postMessage(A={},t=!1){let s=JSON.parse(JSON.stringify({__message:{__page:this.__page,data:A,keep:t}})),r=this.__from;if(this.__runtime==="v8")this.__useGlobalEvent?plus.webview.postMessageToUniNView(s,r):new BroadcastChannel(r).postMessage(s);else{let a=plus.webview.getWebviewById(r);a&&a.evalJS(`__plusMessage&&__plusMessage(${JSON.stringify({data:s})})`)}},onMessage(A){this.__onMessageCallback=A}}};var e=k(B());var b=(A,t)=>{let s=A.__vccOpts||A;for(let[r,a]of t)s[r]=a;return s};var F=Object.defineProperty,T=Object.defineProperties,O=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,L=(A,t,s)=>t in A?F(A,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):A[t]=s,R=(A,t)=>{for(var s in t||(t={}))M.call(t,s)&&L(A,s,t[s]);if(v)for(var s of v(t))U.call(t,s)&&L(A,s,t[s]);return A},z=(A,t)=>T(A,O(t)),H={map_center_marker_container:{"":{alignItems:"flex-start",width:22,height:70}},map_center_marker:{"":{width:22,height:35}},"unichooselocation-icons":{"":{fontFamily:"unichooselocation",textDecoration:"none",textAlign:"center"}},page:{"":{flex:1,position:"relative"}},"flex-r":{"":{flexDirection:"row",flexWrap:"nowrap"}},"flex-c":{"":{flexDirection:"column",flexWrap:"nowrap"}},"flex-fill":{"":{flex:1}},"a-i-c":{"":{alignItems:"center"}},"j-c-c":{"":{justifyContent:"center"}},"nav-cover":{"":{position:"absolute",left:0,top:0,right:0,height:100,backgroundImage:"linear-gradient(to bottom, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0))"}},statusbar:{"":{height:22}},"title-view":{"":{paddingTop:5,paddingRight:15,paddingBottom:5,paddingLeft:15}},"btn-cancel":{"":{paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0}},"btn-cancel-text":{"":{fontSize:30,color:"#ffffff"}},"btn-done":{"":{backgroundColor:"#007AFF",borderRadius:3,paddingTop:5,paddingRight:12,paddingBottom:5,paddingLeft:12}},"btn-done-disabled":{"":{backgroundColor:"#62abfb"}},"text-done":{"":{color:"#ffffff",fontSize:15,fontWeight:"bold",lineHeight:15,height:15}},"text-done-disabled":{"":{color:"#c0ddfe"}},"map-view":{"":{flex:2,position:"relative"}},map:{"":{width:"750rpx",justifyContent:"center",alignItems:"center"}},"map-location":{"":{position:"absolute",right:20,bottom:25,width:44,height:44,backgroundColor:"#ffffff",borderRadius:40,boxShadow:"0 2px 4px rgba(100, 100, 100, 0.2)"}},"map-location-text":{"":{fontSize:20}},"map-location-text-active":{"":{color:"#007AFF"}},"result-area":{"":{flex:2,position:"relative"}},"search-bar":{"":{paddingTop:12,paddingRight:15,paddingBottom:12,paddingLeft:15,backgroundColor:"#ffffff"}},"search-area":{"":{backgroundColor:"#ebebeb",borderRadius:5,height:30,paddingLeft:8}},"search-text":{"":{fontSize:14,lineHeight:16,color:"#b4b4b4"}},"search-icon":{"":{fontSize:16,color:"#b4b4b4",marginRight:4}},"search-tab":{"":{flexDirection:"row",paddingTop:2,paddingRight:16,paddingBottom:2,paddingLeft:16,marginTop:-10,backgroundColor:"#FFFFFF"}},"search-tab-item":{"":{marginTop:0,marginRight:5,marginBottom:0,marginLeft:5,textAlign:"center",fontSize:14,lineHeight:32,color:"#333333",borderBottomStyle:"solid",borderBottomWidth:2,borderBottomColor:"rgba(0,0,0,0)"}},"search-tab-item-active":{"":{borderBottomColor:"#0079FF"}},"no-data":{"":{color:"#808080"}},"no-data-search":{"":{marginTop:50}},"list-item":{"":{position:"relative",paddingTop:12,paddingRight:15,paddingBottom:12,paddingLeft:15}},"list-line":{"":{position:"absolute",left:15,right:0,bottom:0,height:.5,backgroundColor:"#d3d3d3"}},"list-name":{"":{fontSize:14,lines:1,textOverflow:"ellipsis"}},"list-address":{"":{fontSize:12,color:"#808080",lines:1,textOverflow:"ellipsis",marginTop:5}},"list-icon-area":{"":{paddingLeft:10,paddingRight:10}},"list-selected-icon":{"":{fontSize:20,color:"#007AFF"}},"search-view":{"":{position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"#f6f6f6"}},"searching-area":{"":{flex:5}},"search-input":{"":{fontSize:14,height:30,paddingLeft:6}},"search-cancel":{"":{color:"#0079FF",marginLeft:10}},"loading-view":{"":{paddingTop:15,paddingRight:15,paddingBottom:15,paddingLeft:15}},"loading-icon":{"":{width:28,height:28,color:"#808080"}}},Y=weex.requireModule("dom");Y.addRule("fontFace",{fontFamily:"unichooselocation",src:"url('data:font/truetype;charset=utf-8;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzI8gE4kAAABfAAAAFZjbWFw4nGd6QAAAegAAAGyZ2x5Zn61L/EAAAOoAAACJGhlYWQXJ/zZAAAA4AAAADZoaGVhB94DhgAAALwAAAAkaG10eBQAAAAAAAHUAAAAFGxvY2EBUAGyAAADnAAAAAxtYXhwARMAZgAAARgAAAAgbmFtZWs+cdAAAAXMAAAC2XBvc3SV1XYLAAAIqAAAAE4AAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAUAAQAAAAEAAFP+qyxfDzz1AAsEAAAAAADaBFxuAAAAANoEXG4AAP+gBAADYAAAAAgAAgAAAAAAAAABAAAABQBaAAQAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQQAAZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA5grsMgOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAQAAAAEAAAABAAAAAQAAAAAAAAFAAAAAwAAACwAAAAEAAABcgABAAAAAABsAAMAAQAAACwAAwAKAAABcgAEAEAAAAAKAAgAAgAC5grmHOZR7DL//wAA5grmHOZR7DL//wAAAAAAAAAAAAEACgAKAAoACgAAAAQAAwACAAEAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAEAAAAAAAAAABAAA5goAAOYKAAAABAAA5hwAAOYcAAAAAwAA5lEAAOZRAAAAAgAA7DIAAOwyAAAAAQAAAAAAAAB+AKAA0gESAAQAAP+gA+ADYAAAAAkAMQBZAAABIx4BMjY0JiIGBSMuASc1NCYiBh0BDgEHIyIGFBY7AR4BFxUUFjI2PQE+ATczMjY0JgE1NCYiBh0BLgEnMzI2NCYrAT4BNxUUFjI2PQEeARcjIgYUFjsBDgECAFABLUQtLUQtAg8iD9OcEhwSnNMPIg4SEg4iD9OcEhwSnNMPIg4SEv5SEhwSga8OPg4SEg4+Dq+BEhwSga8OPg4SEg4+Dq8BgCItLUQtLQKc0w8iDhISDiIP05wSHBKc0w8iDhISDiIP05wSHBL+gj4OEhIOPg6vgRIcEoGvDj4OEhIOPg6vgRIcEoGvAAEAAAAAA4ECgQAQAAABPgEeAQcBDgEvASY0NhYfAQM2DCIbAgz+TA0kDfcMGiIN1wJyDQIZIg3+IQ4BDf4NIhoBDd0AAQAAAAADAgKCAB0AAAE3PgEuAgYPAScmIgYUHwEHBhQWMj8BFxYyNjQnAjy4CAYGEBcWCLe3DSIaDLi4DBkjDbe3DSMZDAGAtwgWFxAGBgi4uAwaIg23tw0jGQy4uAwZIw0AAAIAAP/fA6EDHgAVACYAACUnPgE3LgEnDgEHHgEXMjY3FxYyNjQlBiIuAjQ+AjIeAhQOAQOX2CcsAQTCkpLCAwPCkj5uLdkJGRH+ijV0Z08rK09ndGdPLCxPE9MtckGSwgQEwpKSwgMoJdQIEhi3FixOaHNnTywsT2dzaE4AAAAAAAASAN4AAQAAAAAAAAAVAAAAAQAAAAAAAQARABUAAQAAAAAAAgAHACYAAQAAAAAAAwARAC0AAQAAAAAABAARAD4AAQAAAAAABQALAE8AAQAAAAAABgARAFoAAQAAAAAACgArAGsAAQAAAAAACwATAJYAAwABBAkAAAAqAKkAAwABBAkAAQAiANMAAwABBAkAAgAOAPUAAwABBAkAAwAiAQMAAwABBAkABAAiASUAAwABBAkABQAWAUcAAwABBAkABgAiAV0AAwABBAkACgBWAX8AAwABBAkACwAmAdUKQ3JlYXRlZCBieSBpY29uZm9udAp1bmljaG9vc2Vsb2NhdGlvblJlZ3VsYXJ1bmljaG9vc2Vsb2NhdGlvbnVuaWNob29zZWxvY2F0aW9uVmVyc2lvbiAxLjB1bmljaG9vc2Vsb2NhdGlvbkdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAQwByAGUAYQB0AGUAZAAgAGIAeQAgAGkAYwBvAG4AZgBvAG4AdAAKAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgBSAGUAZwB1AGwAYQByAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgB1AG4AaQBjAGgAbwBvAHMAZQBsAG8AYwBhAHQAaQBvAG4AVgBlAHIAcwBpAG8AbgAgADEALgAwAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgBHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAQIBAwEEAQUBBgAKbXlsb2NhdGlvbgZ4dWFuemUFY2xvc2UGc291c3VvAAAAAA==')"});var d=weex.requireModule("mapSearch"),K=16,x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAACcCAMAAAC3Fl5oAAAB3VBMVEVMaXH/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/EhL/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/Dw//AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/GRn/NTX/Dw//Fhb/AAD/AAD/AAD/GRn/GRn/Y2P/AAD/AAD/ExP/Ghr/AAD/AAD/MzP/GRn/AAD/Hh7/AAD/RUX/AAD/AAD/AAD/AAD/AAD/AAD/Dg7/AAD/HR3/Dw//FRX/SUn/AAD/////kJD/DQ3/Zmb/+/v/wMD/mJj/6en/vb3/1NT//Pz/ODj/+fn/3Nz/nJz/j4//9/f/7e3/9vb/7Oz/2Nj/x8f/Ozv/+Pj/3d3/nZ3/2dn//f3/6Oj/2tr/v7//09P/vr7/mZn/l5cdSvP3AAAAe3RSTlMAAhLiZgTb/vztB/JMRhlp6lQW86g8mQ4KFPs3UCH5U8huwlesWtTYGI7RsdVeJGfTW5rxnutLsvXWF8vQNdo6qQbuz7D4hgVIx2xtw8GC1TtZaIw0i84P98tU0/fsj7PKaAgiZZxeVfo8Z52eg1P0nESrENnjXVPUgw/uuSmDAAADsUlEQVR42u3aZ3cTRxgF4GtbYleSLdnGcsENG2ODjbExEHrvhAQCIb1Bem+QdkeuuFMNBBJIfmuOckzZI8/srHYmH3Lm+QNXK632LTvQ03Tu/IWeU/tTGTKT2n+q58L5c00wpXJd47DHEt5w47pKxLbhdLdPKb/7dBYxVLxw1GcI/2h1BcpzKNFHLX2JQ4gumaiitqpEEhEdOMJI9h5AFC3feYzI+7IF2tpSLEOqDXpObPRYFm/jCWho/4Ble7MdoT7fzhhq9yHEz28wltU1UPrJZ0wd66HwicfYvEFIfePTAP8tSLTupBHvtGJFH9bSkNrNWEHzERrT34xSH9Ogr1CijkbVAUH1KRqVqkdQAw07iIAaGlcTqI+/0LjeJJ5J0IIEnkpXMdzs4sTtW9dnZq7fuj2xOMtwVWk88RHDjBYejYvnjD8qjOpfQsUqhvj7oSjxcJIhVj3pyKqpNjYvVjQ/RrXq5YABKi3MCYm5BSrtWO5v11DlmlC4RpU1WRS9SJU7QukOVbpQ9JLu549+Dd0AUOlTbkGEuk85vxLAK5QbuytC3R2j3HoAjZSbFxrmKTcCoJdSk0LLJKV6gSaPMqNTQsvUKGW8JrxKqUWhaZFSeWyh1LTQNE2pHF6mzOy40DQ+S5mLimJcENoKlOnBWsr8KbRNUGYt5LXgd6HtD3lNQIoyN4S2G5RJIUOZm0LbTcqsBqVmhLYZSlkPsP4VWf+Rrd+m1v9o9h8Vv5p42C1R5qL1x7WRglOgVN52yfwNOBu76P+lLPoYidu23KPciIHGa07ZeIW1jvcNtI7q5vexCPGYCmf+m/Y9a3sAwQ5bI9T7ukPgPcn9GToEao+xk1OixJT+GIsvNAbx6eAgPq0xiF+KtkpYKhRXCQ8eFFcJhSWGu3rZ8jJkCM8kz9K4TUnrC6mAgzTsB9tLwQ2W15qfosQ2GrQNpZr7aczbzVjBZsvLcaC1g0bsbIVEnU8DOr6H1KDH2LwtUBi0/JII6Dxm9zUXkH+XMWzfh1Dte1i2Pe3QkC77Zel7aehpO8wyHG6Dtt0NjKxhN6I4uSli/TqJiJJDUQ4NDCURXTrXRy1XcumyD24M+AzhD1RXIIZsl/LoyZmurJHDM7s8lvB2FQ/PmPJ6PseAXP5HGMYAAC7ABbgAF+ACXIALcAEuwAW4ABfgAlyAC3ABLsAFuID/d8Cx4NEt8/byOf0wLnis8zjMq9/Kp7bWw4JOj8u8TlhRl+G/Mp2wpOX48GffvvZ1CyL4B53LAS6zb08EAAAAAElFTkSuQmCC",V={mixins:[w,m],data(){return{positionIcon:x,mapScale:K,userKeyword:"",showLocation:!0,latitude:39.908692,longitude:116.397477,nearList:[],nearSelectedIndex:-1,nearLoading:!1,nearLoadingEnd:!1,noNearData:!1,isUserLocation:!1,statusBarHeight:20,mapHeight:250,markers:[{id:"location",latitude:39.908692,longitude:116.397477,zIndex:"1",iconPath:x,width:26,height:36}],showSearch:!1,searchList:[],searchSelectedIndex:-1,searchLoading:!1,searchEnd:!1,noSearchData:!1,localizationTemplate:{en:{search_tips:"Search for a place",no_found:"No results found",nearby:"Nearby",more:"More"},zh:{search_tips:"\u641C\u7D22\u5730\u70B9",no_found:"\u5BF9\u4E0D\u8D77\uFF0C\u6CA1\u6709\u641C\u7D22\u5230\u76F8\u5173\u6570\u636E",nearby:"\u9644\u8FD1",more:"\u66F4\u591A"}},searchNearFlag:!0,searchMethod:"poiSearchNearBy"}},computed:{disableOK(){return this.nearSelectedIndex<0&&this.searchSelectedIndex<0},searchMethods(){return[{title:this.localize("nearby"),method:"poiSearchNearBy"},{title:this.localize("more"),method:"poiKeywordsSearch"}]}},filters:{distance(A){return A>100?`${A>1e3?(A/1e3).toFixed(1)+"k":A.toFixed(0)}m | `:A>0?"100m\u5185 | ":""}},watch:{searchMethod(){this._searchPageIndex=1,this.searchEnd=!1,this.searchList=[],this._searchKeyword&&this.search()}},onLoad(){this.statusBarHeight=plus.navigator.getStatusbarHeight(),this.mapHeight=plus.screen.resolutionHeight/2;let A=this.data;this.userKeyword=A.keyword||"",this._searchInputTimer=null,this._searchPageIndex=1,this._searchKeyword="",this._nearPageIndex=1,this._hasUserLocation=!1,this._userLatitude=0,this._userLongitude=0},onReady(){this.mapContext=this.$refs.map1,this.data.latitude&&this.data.longitude?(this._hasUserLocation=!0,this.moveToCenter({latitude:this.data.latitude,longitude:this.data.longitude})):this.getUserLocation()},onUnload(){this.clearSearchTimer()},methods:{cancelClick(){this.postMessage({event:"cancel"})},doneClick(){if(this.disableOK)return;let A=this.showSearch&&this.searchSelectedIndex>=0?this.searchList[this.searchSelectedIndex]:this.nearList[this.nearSelectedIndex],t={name:A.name,address:A.address,latitude:A.location.latitude,longitude:A.location.longitude};this.postMessage({event:"selected",detail:t})},getUserLocation(){plus.geolocation.getCurrentPosition(({coordsType:A,coords:t})=>{A.toLowerCase()==="wgs84"?this.wgs84togcjo2(t,s=>{this.getUserLocationSuccess(s)}):this.getUserLocationSuccess(t)},A=>{this._hasUserLocation=!0,h("log","at template/__uniappchooselocation.nvue:292","Gelocation Error: code - "+A.code+"; message - "+A.message)},{geocode:!1})},getUserLocationSuccess(A){this._userLatitude=A.latitude,this._userLongitude=A.longitude,this._hasUserLocation=!0,this.moveToCenter({latitude:A.latitude,longitude:A.longitude})},searchclick(A){this.showSearch=A,A===!1&&plus.key.hideSoftKeybord()},showSearchView(){this.searchList=[],this.showSearch=!0},hideSearchView(){this.showSearch=!1,plus.key.hideSoftKeybord(),this.noSearchData=!1,this.searchSelectedIndex=-1,this._searchKeyword=""},onregionchange(A){var t=A.detail,s=t.type||A.type,r=t.causedBy||A.causedBy;r!=="drag"||s!=="end"||this.mapContext.getCenterLocation(a=>{if(!this.searchNearFlag){this.searchNearFlag=!this.searchNearFlag;return}this.moveToCenter({latitude:a.latitude,longitude:a.longitude})})},onItemClick(A,t){this.searchNearFlag=!1,t.stopPropagation&&t.stopPropagation(),this.nearSelectedIndex!==A&&(this.nearSelectedIndex=A),this.moveToLocation(this.nearList[A]&&this.nearList[A].location)},moveToCenter(A){this.latitude===A.latitude&&this.longitude===A.longitude||(this.latitude=A.latitude,this.longitude=A.longitude,this.updateCenter(A),this.moveToLocation(A),this.isUserLocation=this._userLatitude===A.latitude&&this._userLongitude===A.longitude)},updateCenter(A){this.nearSelectedIndex=-1,this.nearList=[],this._hasUserLocation&&(this._nearPageIndex=1,this.nearLoadingEnd=!1,this.reverseGeocode(A),this.searchNearByPoint(A),this.onItemClick(0,{stopPropagation:()=>{this.searchNearFlag=!0}}),this.$refs.nearListLoadmore.resetLoadmore())},searchNear(){this.nearLoadingEnd||this.searchNearByPoint({latitude:this.latitude,longitude:this.longitude})},searchNearByPoint(A){this.noNearData=!1,this.nearLoading=!0,d.poiSearchNearBy({point:{latitude:A.latitude,longitude:A.longitude},key:this.userKeyword,sortrule:1,index:this._nearPageIndex,radius:1e3},t=>{this.nearLoading=!1,this._nearPageIndex=t.pageIndex+1,this.nearLoadingEnd=t.pageIndex===t.pageNumber,t.poiList&&t.poiList.length?(this.fixPois(t.poiList),this.nearList=this.nearList.concat(t.poiList),this.fixNearList()):this.noNearData=this.nearList.length===0})},moveToLocation(A){!A||this.mapContext.moveToLocation(z(R({},A),{fail:t=>{h("error","at template/__uniappchooselocation.nvue:419","chooseLocation_moveToLocation",t)}}))},reverseGeocode(A){d.reverseGeocode({point:A},t=>{t.type==="success"&&this._nearPageIndex<=2&&(this.nearList.splice(0,0,{code:t.code,location:A,name:"\u5730\u56FE\u4F4D\u7F6E",address:t.address||""}),this.fixNearList())})},fixNearList(){let A=this.nearList;if(A.length>=2&&A[0].name==="\u5730\u56FE\u4F4D\u7F6E"){let t=this.getAddressStart(A[1]),s=A[0].address;s.startsWith(t)&&(A[0].name=s.substring(t.length))}},onsearchinput(A){var t=A.detail.value.replace(/^\s+|\s+$/g,"");this.clearSearchTimer(),this._searchInputTimer=setTimeout(()=>{clearTimeout(this._searchInputTimer),this._searchPageIndex=1,this.searchEnd=!1,this._searchKeyword=t,this.searchList=[],this.search()},300)},clearSearchTimer(){this._searchInputTimer&&clearTimeout(this._searchInputTimer)},search(){this._searchKeyword.length===0||this._searchEnd||this.searchLoading||(this.searchLoading=!0,this.noSearchData=!1,d[this.searchMethod]({point:{latitude:this.latitude,longitude:this.longitude},key:this._searchKeyword,sortrule:1,index:this._searchPageIndex,radius:5e4},A=>{this.searchLoading=!1,this._searchPageIndex=A.pageIndex+1,this.searchEnd=A.pageIndex===A.pageNumber,A.poiList&&A.poiList.length?(this.fixPois(A.poiList),this.searchList=this.searchList.concat(A.poiList)):this.noSearchData=this.searchList.length===0}))},onSearchListTouchStart(){plus.key.hideSoftKeybord()},onSearchItemClick(A,t){t.stopPropagation(),this.searchSelectedIndex!==A&&(this.searchSelectedIndex=A),this.moveToLocation(this.searchList[A]&&this.searchList[A].location)},getAddressStart(A){let t=A.addressOrigin||A.address;return A.province+(A.province===A.city?"":A.city)+(/^\d+$/.test(A.district)||t.startsWith(A.district)?"":A.district)},fixPois(A){for(var t=0;t{if(a.ok){let o=a.data.detail.points[0];t({latitude:o.lat,longitude:o.lng})}})},formatDistance(A){return A>100?`${A>1e3?(A/1e3).toFixed(1)+"k":A.toFixed(0)}m | `:A>0?"100m\u5185 | ":""}}};function Z(A,t,s,r,a,o){return(0,e.openBlock)(),(0,e.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,e.createElementVNode)("view",{class:"page flex-c"},[(0,e.createElementVNode)("view",{class:"flex-r map-view"},[(0,e.createElementVNode)("map",{class:"map flex-fill",ref:"map1",scale:a.mapScale,showLocation:a.showLocation,longitude:a.longitude,latitude:a.latitude,onRegionchange:t[0]||(t[0]=(...i)=>o.onregionchange&&o.onregionchange(...i)),style:(0,e.normalizeStyle)("height:"+a.mapHeight+"px")},[(0,e.createElementVNode)("div",{class:"map_center_marker_container"},[(0,e.createElementVNode)("u-image",{class:"map_center_marker",src:a.positionIcon},null,8,["src"])])],44,["scale","showLocation","longitude","latitude"]),(0,e.createElementVNode)("view",{class:"map-location flex-c a-i-c j-c-c",onClick:t[1]||(t[1]=i=>o.getUserLocation())},[(0,e.createElementVNode)("u-text",{class:(0,e.normalizeClass)(["unichooselocation-icons map-location-text",{"map-location-text-active":a.isUserLocation}])},"\uEC32",2)]),(0,e.createElementVNode)("view",{class:"nav-cover"},[(0,e.createElementVNode)("view",{class:"statusbar",style:(0,e.normalizeStyle)("height:"+a.statusBarHeight+"px")},null,4),(0,e.createElementVNode)("view",{class:"title-view flex-r"},[(0,e.createElementVNode)("view",{class:"btn-cancel",onClick:t[2]||(t[2]=(...i)=>o.cancelClick&&o.cancelClick(...i))},[(0,e.createElementVNode)("u-text",{class:"unichooselocation-icons btn-cancel-text"},"\uE61C")]),(0,e.createElementVNode)("view",{class:"flex-fill"}),(0,e.createElementVNode)("view",{class:(0,e.normalizeClass)(["btn-done flex-r a-i-c j-c-c",{"btn-done-disabled":o.disableOK}]),onClick:t[3]||(t[3]=(...i)=>o.doneClick&&o.doneClick(...i))},[(0,e.createElementVNode)("u-text",{class:(0,e.normalizeClass)(["text-done",{"text-done-disabled":o.disableOK}])},(0,e.toDisplayString)(A.localize("done")),3)],2)])])]),(0,e.createElementVNode)("view",{class:(0,e.normalizeClass)(["flex-c result-area",{"searching-area":a.showSearch}])},[(0,e.createElementVNode)("view",{class:"search-bar"},[(0,e.createElementVNode)("view",{class:"search-area flex-r a-i-c",onClick:t[4]||(t[4]=(...i)=>o.showSearchView&&o.showSearchView(...i))},[(0,e.createElementVNode)("u-text",{class:"search-icon unichooselocation-icons"},"\uE60A"),(0,e.createElementVNode)("u-text",{class:"search-text"},(0,e.toDisplayString)(A.localize("search_tips")),1)])]),a.noNearData?(0,e.createCommentVNode)("v-if",!0):((0,e.openBlock)(),(0,e.createElementBlock)("list",{key:0,ref:"nearListLoadmore",class:"flex-fill list-view",loadmoreoffset:"5",scrollY:!0,onLoadmore:t[5]||(t[5]=i=>o.searchNear())},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.nearList,(i,n)=>((0,e.openBlock)(),(0,e.createElementBlock)("cell",{key:i.uid},[(0,e.createElementVNode)("view",{class:"list-item",onClick:l=>o.onItemClick(n,l)},[(0,e.createElementVNode)("view",{class:"flex-r"},[(0,e.createElementVNode)("view",{class:"list-text-area flex-fill flex-c"},[(0,e.createElementVNode)("u-text",{class:"list-name"},(0,e.toDisplayString)(i.name),1),(0,e.createElementVNode)("u-text",{class:"list-address"},(0,e.toDisplayString)(o.formatDistance(i.distance))+(0,e.toDisplayString)(i.address),1)]),n===a.nearSelectedIndex?((0,e.openBlock)(),(0,e.createElementBlock)("view",{key:0,class:"list-icon-area flex-r a-i-c j-c-c"},[(0,e.createElementVNode)("u-text",{class:"unichooselocation-icons list-selected-icon"},"\uE651")])):(0,e.createCommentVNode)("v-if",!0)]),(0,e.createElementVNode)("view",{class:"list-line"})],8,["onClick"])]))),128)),a.nearLoading?((0,e.openBlock)(),(0,e.createElementBlock)("cell",{key:0},[(0,e.createElementVNode)("view",{class:"loading-view flex-c a-i-c j-c-c"},[(0,e.createElementVNode)("loading-indicator",{class:"loading-icon",animating:!0,arrow:"false"})])])):(0,e.createCommentVNode)("v-if",!0)],544)),a.noNearData?((0,e.openBlock)(),(0,e.createElementBlock)("view",{key:1,class:"flex-fill flex-r a-i-c j-c-c"},[(0,e.createElementVNode)("u-text",{class:"no-data"},(0,e.toDisplayString)(A.localize("no_found")),1)])):(0,e.createCommentVNode)("v-if",!0),a.showSearch?((0,e.openBlock)(),(0,e.createElementBlock)("view",{key:2,class:"search-view flex-c"},[(0,e.createElementVNode)("view",{class:"search-bar flex-r a-i-c"},[(0,e.createElementVNode)("view",{class:"search-area flex-fill flex-r"},[(0,e.createElementVNode)("u-input",{focus:!0,onInput:t[6]||(t[6]=(...i)=>o.onsearchinput&&o.onsearchinput(...i)),class:"search-input flex-fill",placeholder:A.localize("search_tips")},null,40,["placeholder"])]),(0,e.createElementVNode)("u-text",{class:"search-cancel",onClick:t[7]||(t[7]=(...i)=>o.hideSearchView&&o.hideSearchView(...i))},(0,e.toDisplayString)(A.localize("cancel")),1)]),(0,e.createElementVNode)("view",{class:"search-tab"},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(o.searchMethods,(i,n)=>((0,e.openBlock)(),(0,e.createElementBlock)("u-text",{onClick:l=>a.searchMethod=a.searchLoading?a.searchMethod:i.method,key:n,class:(0,e.normalizeClass)([{"search-tab-item-active":i.method===a.searchMethod},"search-tab-item"])},(0,e.toDisplayString)(i.title),11,["onClick"]))),128))]),a.noSearchData?(0,e.createCommentVNode)("v-if",!0):((0,e.openBlock)(),(0,e.createElementBlock)("list",{key:0,class:"flex-fill list-view",enableBackToTop:!0,scrollY:!0,onLoadmore:t[8]||(t[8]=i=>o.search()),onTouchstart:t[9]||(t[9]=(...i)=>o.onSearchListTouchStart&&o.onSearchListTouchStart(...i))},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.searchList,(i,n)=>((0,e.openBlock)(),(0,e.createElementBlock)("cell",{key:i.uid},[(0,e.createElementVNode)("view",{class:"list-item",onClick:l=>o.onSearchItemClick(n,l)},[(0,e.createElementVNode)("view",{class:"flex-r"},[(0,e.createElementVNode)("view",{class:"list-text-area flex-fill flex-c"},[(0,e.createElementVNode)("u-text",{class:"list-name"},(0,e.toDisplayString)(i.name),1),(0,e.createElementVNode)("u-text",{class:"list-address"},(0,e.toDisplayString)(o.formatDistance(i.distance))+(0,e.toDisplayString)(i.address),1)]),n===a.searchSelectedIndex?((0,e.openBlock)(),(0,e.createElementBlock)("view",{key:0,class:"list-icon-area flex-r a-i-c j-c-c"},[(0,e.createElementVNode)("u-text",{class:"unichooselocation-icons list-selected-icon"},"\uE651")])):(0,e.createCommentVNode)("v-if",!0)]),(0,e.createElementVNode)("view",{class:"list-line"})],8,["onClick"])]))),128)),a.searchLoading?((0,e.openBlock)(),(0,e.createElementBlock)("cell",{key:0},[(0,e.createElementVNode)("view",{class:"loading-view flex-c a-i-c j-c-c"},[(0,e.createElementVNode)("loading-indicator",{class:"loading-icon",animating:!0})])])):(0,e.createCommentVNode)("v-if",!0)],32)),a.noSearchData?((0,e.openBlock)(),(0,e.createElementBlock)("view",{key:1,class:"flex-fill flex-r j-c-c"},[(0,e.createElementVNode)("u-text",{class:"no-data no-data-search"},(0,e.toDisplayString)(A.localize("no_found")),1)])):(0,e.createCommentVNode)("v-if",!0)])):(0,e.createCommentVNode)("v-if",!0)],2)])])}var c=b(V,[["render",Z],["styles",[H]]]);var g=plus.webview.currentWebview();if(g){let A=parseInt(g.id),t="template/__uniappchooselocation",s={};try{s=JSON.parse(g.__query__)}catch(a){}c.mpType="page";let r=Vue.createPageApp(c,{$store:getApp({allowDefault:!0}).$store,__pageId:A,__pagePath:t,__pageQuery:s});r.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...c.styles||[]])),r.mount("#root")}})(); diff --git a/unpackage/dist/build/app-plus/__uniapperror.png b/unpackage/dist/build/app-plus/__uniapperror.png new file mode 100644 index 0000000..4743b25 Binary files /dev/null and b/unpackage/dist/build/app-plus/__uniapperror.png differ diff --git a/unpackage/dist/build/app-plus/__uniappopenlocation.js b/unpackage/dist/build/app-plus/__uniappopenlocation.js new file mode 100644 index 0000000..cd98190 --- /dev/null +++ b/unpackage/dist/build/app-plus/__uniappopenlocation.js @@ -0,0 +1,32 @@ +"use weex:vue"; + +if (typeof Promise !== 'undefined' && !Promise.prototype.finally) { + Promise.prototype.finally = function(callback) { + const promise = this.constructor + return this.then( + value => promise.resolve(callback()).then(() => value), + reason => promise.resolve(callback()).then(() => { + throw reason + }) + ) + } +}; + +if (typeof uni !== 'undefined' && uni && uni.requireGlobal) { + const global = uni.requireGlobal() + ArrayBuffer = global.ArrayBuffer + Int8Array = global.Int8Array + Uint8Array = global.Uint8Array + Uint8ClampedArray = global.Uint8ClampedArray + Int16Array = global.Int16Array + Uint16Array = global.Uint16Array + Int32Array = global.Int32Array + Uint32Array = global.Uint32Array + Float32Array = global.Float32Array + Float64Array = global.Float64Array + BigInt64Array = global.BigInt64Array + BigUint64Array = global.BigUint64Array +}; + + +(()=>{var B=Object.create;var m=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var P=Object.getPrototypeOf,Q=Object.prototype.hasOwnProperty;var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var E=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of w(t))!Q.call(e,o)&&o!==a&&m(e,o,{get:()=>t[o],enumerable:!(n=b(t,o))||n.enumerable});return e};var O=(e,t,a)=>(a=e!=null?B(P(e)):{},E(t||!e||!e.__esModule?m(a,"default",{value:e,enumerable:!0}):a,e));var f=I((L,C)=>{C.exports=Vue});var d={data(){return{locale:"en",fallbackLocale:"en",localization:{en:{done:"OK",cancel:"Cancel"},zh:{done:"\u5B8C\u6210",cancel:"\u53D6\u6D88"},"zh-hans":{},"zh-hant":{},messages:{}},localizationTemplate:{}}},onLoad(){this.initLocale()},created(){this.initLocale()},methods:{initLocale(){if(this.__initLocale)return;this.__initLocale=!0;let e=(plus.webview.currentWebview().extras||{}).data||{};if(e.messages&&(this.localization.messages=e.messages),e.locale){this.locale=e.locale.toLowerCase();return}let t={chs:"hans",cn:"hans",sg:"hans",cht:"hant",tw:"hant",hk:"hant",mo:"hant"},a=plus.os.language.toLowerCase().split("/")[0].replace("_","-").split("-"),n=a[1];n&&(a[1]=t[n]||n),a.length=a.length>2?2:a.length,this.locale=a.join("-")},localize(e){let t=this.locale,a=t.split("-")[0],n=this.fallbackLocale,o=s=>Object.assign({},this.localization[s],(this.localizationTemplate||{})[s]);return o("messages")[e]||o(t)[e]||o(a)[e]||o(n)[e]||e}}},h={onLoad(){this.initMessage()},methods:{initMessage(){let{from:e,callback:t,runtime:a,data:n={},useGlobalEvent:o}=plus.webview.currentWebview().extras||{};this.__from=e,this.__runtime=a,this.__page=plus.webview.currentWebview().id,this.__useGlobalEvent=o,this.data=JSON.parse(JSON.stringify(n)),plus.key.addEventListener("backbutton",()=>{typeof this.onClose=="function"?this.onClose():plus.webview.currentWebview().close("auto")});let s=this,r=function(l){let A=l.data&&l.data.__message;!A||s.__onMessageCallback&&s.__onMessageCallback(A.data)};if(this.__useGlobalEvent)weex.requireModule("globalEvent").addEventListener("plusMessage",r);else{let l=new BroadcastChannel(this.__page);l.onmessage=r}},postMessage(e={},t=!1){let a=JSON.parse(JSON.stringify({__message:{__page:this.__page,data:e,keep:t}})),n=this.__from;if(this.__runtime==="v8")this.__useGlobalEvent?plus.webview.postMessageToUniNView(a,n):new BroadcastChannel(n).postMessage(a);else{let o=plus.webview.getWebviewById(n);o&&o.evalJS(`__plusMessage&&__plusMessage(${JSON.stringify({data:a})})`)}},onMessage(e){this.__onMessageCallback=e}}};var i=O(f());var v=(e,t)=>{let a=e.__vccOpts||e;for(let[n,o]of t)a[n]=o;return a};var x={page:{"":{flex:1}},"flex-r":{"":{flexDirection:"row",flexWrap:"nowrap"}},"flex-c":{"":{flexDirection:"column",flexWrap:"nowrap"}},"flex-fill":{"":{flex:1}},"a-i-c":{"":{alignItems:"center"}},"j-c-c":{"":{justifyContent:"center"}},target:{"":{paddingTop:10,paddingBottom:10}},"text-area":{"":{paddingLeft:10,paddingRight:10,flex:1}},name:{"":{fontSize:16,lines:1,textOverflow:"ellipsis"}},address:{"":{fontSize:14,color:"#808080",lines:1,textOverflow:"ellipsis",marginTop:2}},"goto-area":{"":{width:50,height:50,paddingTop:8,paddingRight:8,paddingBottom:8,paddingLeft:8,backgroundColor:"#007aff",borderRadius:50,marginRight:10}},"goto-icon":{"":{width:34,height:34}},"goto-text":{"":{fontSize:14,color:"#FFFFFF"}}},z={mixins:[h,d],data(){return{bottom:"0px",longitude:"",latitude:"",markers:[],name:"",address:"",localizationTemplate:{en:{"map.title.amap":"AutoNavi Maps","map.title.baidu":"Baidu Maps","map.title.tencent":"Tencent Maps","map.title.apple":"Apple Maps","map.title.google":"Google Maps","location.title":"My Location","select.cancel":"Cancel"},zh:{"map.title.amap":"\u9AD8\u5FB7\u5730\u56FE","map.title.baidu":"\u767E\u5EA6\u5730\u56FE","map.title.tencent":"\u817E\u8BAF\u5730\u56FE","map.title.apple":"\u82F9\u679C\u5730\u56FE","map.title.google":"\u8C37\u6B4C\u5730\u56FE","location.title":"\u6211\u7684\u4F4D\u7F6E","select.cancel":"\u53D6\u6D88"}},android:weex.config.env.platform.toLowerCase()==="android"}},onLoad(){let e=this.data;if(this.latitude=e.latitude,this.longitude=e.longitude,this.name=e.name||"",this.address=e.address||"",!this.android){let t=plus.webview.currentWebview().getSafeAreaInsets();this.bottom=t.bottom+"px"}},onReady(){this.mapContext=this.$refs.map1,this.markers=[{id:"location",latitude:this.latitude,longitude:this.longitude,title:this.name,zIndex:"1",iconPath:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAABICAMAAACORiZjAAAByFBMVEUAAAD/PyL/PyL/PyL/PyL/PyL/PyL/PyL/PyL/PiL/PyL/PyL/PyP/PyL/PyL/PyL/PyL/PiL/PyL8PiP/PyL4OyP/PyL3OyX9Pyb0RUP0RkPzOiXsPj3YLi7TKSnQJiX0RkTgMCj0QjvkNC3vPDPwOy/9PyXsNSTyRUTgNDPdMjHrPTzuQD7iNTTxQ0HTJyTZKyf1RULlNjDZKyTfLSLeLSX0Qzz3Qzv8PSTMJCTmOjnPJSXLIiLzRkXWLCvgNDPZLyzVKijRJSTtPzvcMS7jNjPZLCnyREHpOzjiNDDtPzvzQz/VKSXkNTDsPDXyQjz2RT7pMyTxOinjMST5QjTmOjnPJSLdLyr0RD//YF7/////R0b/Tk3/XVv/WFb/VVP/S0v/Pz//W1n/UVD/REP/Xlz/Ojr/QUH/Skn/U1L/ODf7VlX5UU/oOzrqNzf/+/v5UlHvQUD2TEv0SUj3Tk3/2dn8W1r6TEv7R0b7REPvPTzzPDvwNjXkMjLnMDDjLS3dKir/xcX/vr7/qqn/pqX/mZn/fn7/ZWT/8PD/4eH/3t3/zs7/ra3/kpL/iIj/e3r5PDz4NjbxMTHsMTDlLCz/9vb/6ej/ubjhOGVRAAAAWXRSTlMABQ4TFgoIHhApI0RAGhgzJi89Ozg2LVEg4s5c/v366tmZiYl2X0pE/vn08eTe1sWvqqiOgXVlUE399/b08u3n4tzZ1dTKyMTDvLmzqqKal35taFxH6sC3oms+ongAAAOtSURBVEjHjZV3W9pQGMXJzQACQRARxVF3HdVW26od7q111NqhdbRSbQVElnvvbV1tv25Jgpr3kpCcP+/7/J5z8p57QScr4l46jSJohEhKEGlANKGBYBA1NFDpyklPz3FV5tWwHKnGEbShprIuFPAujEW14A2E6nqqWYshEcYYqnNC3mEgbyh9wMgZGCUbZHZFFobjtODLKWQpRMgyhrxiiQtwK/6SqpczY/QdvqlhJflcZpZk4hiryzecQIH0IitFY0xaBWDkqCEr9CLIDsDIJqywswbpNlB/ZEpVkZ4kPZKEqwmOTakrXGCk6IdwFYExDfI+SX4ISBeExjQp0m/jUMyIeuLVBo2Xma0kIRpVhyc1Kpxn42hxdd2BuOnv3Z2d3YO4Y29LCitcQiItcxxH5kcEncRhmc5UiofowuJxqPO5kZjm9rFROC9JWAXqC8HBgciI1AWcRbqj+fgX0emDg+MRif5OglmgJdlIEvzCJ8D5xQjQORhOlJlTKR4qmwD6B6FtOJ012yyMjrHMwuNTCM1jUG2SHDQPoWMMciZxdBR6PQOOtyF0ikEmEfrom5FqH0J7YOh+LUAE1bbolmrqj5SZOwTDxXJTdBFRqCrsBtoHRnAW7hRXThYE3VA7koVjo2CfUK4O2WdHodx7c7FsZ25sNDtotxp4SF++OIrpcHf+6Ojk7BA/X2wwOfRIeLj5wVGNClYJF4K/sY4SrVBJhj323hHXG/ymScEu091PH0HaS5e0MEslGeLuBCt9fqYWKLNXNIpZGcuXfqlqqaHWLhrFrLpWvqpqpU1ixFs9Ll1WY5ZLo19ECUb3X+VXg/y5wEj4qtYVlXCtRdIvErtyZi0nDJc1aLZxCPtrZ3P9PxLIX2Vy8P8zQAxla1xVZlYba6NbYAAi7KIwSxnKKjDHtoAHfOb/qSD/Z1OKEA4XbXHUr8ozq/XOZKOFxgkx4Mv177Jaz4fhQFnWdr8c4283pVhBRSDg4+zLeOYyu9CcCsIBK5T2fF0mXK7JkYaAEaAoY9Mazqw1FdnBRcWFuA/ZGDOd/R7eH7my3m1MA208k60I3ibHozUps/bICe+PQllbUmjrBaxIqaynG5JwT5UrgmW9ubpjrt5kJMOKlMvavIM2o08cVqRcVvONyNw0Y088YVmvPIJeqVUEy9rkmU31imBZ1x7PNV6RelkeD16Relmfbm81VQTLevs2A74iDWXpXzznwwEj9YCszcbCcOqiSY4jYTh1Jx1B04o+/wH6/wOSPFj1xgAAAABJRU5ErkJggg==",width:26,height:36}],this.updateMarker()},methods:{goto(){var e=weex.config.env.platform==="iOS";this.openSysMap(this.latitude,this.longitude,this.name,e)},updateMarker(){this.mapContext.moveToLocation(),this.mapContext.translateMarker({markerId:"location",destination:{latitude:this.latitude,longitude:this.longitude},duration:0},e=>{})},openSysMap(e,t,a,n){let o=weex.requireModule("mapSearch");var s=[{title:this.localize("map.title.tencent"),getUrl:function(){var A;return A="https://apis.map.qq.com/uri/v1/routeplan?type=drive&to="+encodeURIComponent(a)+"&tocoord="+encodeURIComponent(e+","+t)+"&referer=APP",A}},{title:this.localize("map.title.google"),getUrl:function(){var A;return A="https://www.google.com/maps/?daddr="+encodeURIComponent(a)+"&sll="+encodeURIComponent(e+","+t),A}}],r=[{title:this.localize("map.title.amap"),pname:"com.autonavi.minimap",action:n?"iosamap://":"amapuri://",getUrl:function(){var A;return n?A="iosamap://path":A="amapuri://route/plan/",A+="?sourceApplication=APP&dname="+encodeURIComponent(a)+"&dlat="+e+"&dlon="+t+"&dev=0",A}},{title:this.localize("map.title.baidu"),pname:"com.baidu.BaiduMap",action:"baidumap://",getUrl:function(){var A="baidumap://map/direction?destination="+encodeURIComponent("latlng:"+e+","+t+"|name:"+a)+"&mode=driving&src=APP&coord_type=gcj02";return A}},{title:this.localize("map.title.tencent"),pname:"com.tencent.map",action:"qqmap://",getUrl:()=>{var A;return A="qqmap://map/routeplan?type=drive"+(n?"&from="+encodeURIComponent(this.localize("location.title")):"")+"&to="+encodeURIComponent(a)+"&tocoord="+encodeURIComponent(e+","+t)+"&referer=APP",A}},{title:this.localize("map.title.google"),pname:"com.google.android.apps.maps",action:"comgooglemapsurl://",getUrl:function(){var A;return n?A="comgooglemapsurl://maps.google.com/":A="https://www.google.com/maps/",A+="?daddr="+encodeURIComponent(a)+"&sll="+encodeURIComponent(e+","+t),A}}],l=[];r.forEach(function(A){var g=plus.runtime.isApplicationExist({pname:A.pname,action:A.action});g&&l.push(A)}),n&&l.unshift({title:this.localize("map.title.apple"),navigateTo:function(){o.openSystemMapNavigation({longitude:t,latitude:e,name:a})}}),l.length===0&&(l=l.concat(s)),plus.nativeUI.actionSheet({cancel:this.localize("select.cancel"),buttons:l},function(A){var g=A.index,c;g>0&&(c=l[g-1],c.navigateTo?c.navigateTo():plus.runtime.openURL(c.getUrl(),function(){},c.pname))})}}};function R(e,t,a,n,o,s){return(0,i.openBlock)(),(0,i.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,i.createElementVNode)("view",{class:"page flex-c",style:(0,i.normalizeStyle)({paddingBottom:o.bottom})},[(0,i.createElementVNode)("map",{class:"flex-fill map",ref:"map1",longitude:o.longitude,latitude:o.latitude,markers:o.markers},null,8,["longitude","latitude","markers"]),(0,i.createElementVNode)("view",{class:"flex-r a-i-c target"},[(0,i.createElementVNode)("view",{class:"text-area"},[(0,i.createElementVNode)("u-text",{class:"name"},(0,i.toDisplayString)(o.name),1),(0,i.createElementVNode)("u-text",{class:"address"},(0,i.toDisplayString)(o.address),1)]),(0,i.createElementVNode)("view",{class:"goto-area",onClick:t[0]||(t[0]=(...r)=>s.goto&&s.goto(...r))},[(0,i.createElementVNode)("u-image",{class:"goto-icon",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADIEAYAAAD9yHLdAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAASAAAAEgARslrPgAADzVJREFUeNrt3WmMFMUfxvGqRREjEhXxIAooUQTFGPGIeLAcshoxRhM1Eu+YjZGIJh4vTIzHC1GJiiCeiUckEkWDVzxQxHgRvNB4LYiigshyxFXYg4Bb/xfPv1YbFpjtnZmq7v5+3vxSs8vOr4vpfqZ6pmeMAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMKwoRtAtjnnnHN77KHR2LGqhx327y8YZ9zSpcYaa+z8+dZaa21LS+i+AQCBKDgmTVJdv96VZN06/+9C9w8AqBId+K1Vfeih0gJjZ/zfsayEASBvksExbVp5gmNrjz5KkABATlQnOAgSAMiNMMFBkABAZsURHAQJAGRGnMFBkABAtLIRHAQJAEQjm8FBkABAMPkIDoIEAKomn8FBkABAxRQjOAgSACibYgYHQQIAqREcnSFIAGC7/AFSleDoHEECAB38AVGV4CgNQQKgwPwBUJXgSIcgAVAg/oCnSnCUB0ECIMf8AU6V4KgMggRAjvgDmirBUR0ECYAM8wcw1ViCY/PmfN3Pzvh5J0gAZIA/YCUPYKE1NqpOmlSd+6uvV/3999BbLqxIAETMH6BUYwuOI49Ura2tzv36+xkyRJUgAYBt+AOSanzBkeyzegGSvF+CBAA6+AOQarzBkey3+gGSvH+CBECB+QOOavzBkew7XIAk+yBIABSIP8CoZic4kv2HD5BkPwQJgBzzBxTV7AVHcjviCZBkXwQJgBzxBxDV7AZHcnviC5BkfwQJgAzzBwzV7AdHcrviDZBknwQJgAzxBwjV/ARHcvviD5BkvwQJgIj5A4Jq/oIjuZ3ZCZBk3wQJgIj4A4BqfoMjub3ZC5Bk/wQJgID8Dq+a/+BIbnd2AyS5HQQJgCryO7hqcYIjuf3ZD5Dk9hAkACrI79CqxQuO5DzkJ0CS20WQACgjvwOrFjc4kvORvwBJbh9BAqAb/A6rSnAk5yW/AZLcToIEQBf4HVSV4Oh8fvIfIMntJUgA7IDfIVUJjh3PU3ECJLndBAmA//A7oCrBUdp8FS9AkttPkACF5nc4VYKja/NW3ABJzgNBAhSK38FUCY5080eAJOeDIAFyze9QqgRH9+aRAOl8XggSIFf8DqRKcJRnPgmQHc8PQQJkmt9hVAmO8s4rAVLaPBEkQKb4HUSV4KjM/BIgXZsvggSImt8hVAmOys4zAZJu3ggSICp+B1AlOKoz3wRI9+aPIAGC8g94VYKjuvNOgJRnHgkSoKr8A1yV4Agz/wRIeeeTIAGqQg/su+8OvYvJH3+oDh0ael6qO/8ESGXmdejQ5OMqtClTQs8LUBau3bW79rPPDr1LSfGCo+P/wTlHgFR6fiMKknbX7tonTAg9L8iGmtANbJc11tjbbw/bxOrVqmPGWGuttT/8EHpakC/Jx9WYMar+cRfKbbeFvX9kRXQBoqdB/ftrdOyxYbogOFBd0QSJNdbYESO0Hx5wQOh5QdyiCxAZMCDM/RIcCCuOIPEvpg8aFHo+ELf4AsQZZ1xra3XvlOBAXIIHiTPOuObm0POAuMUXIMYYYxoaVDdsqOz9rFmjOm4cwYEYJR+X/k0Gq1ZV9l43blRdujT09iNu0QWIrbE1tmbTJo1mz67MvfhncrW12kG/+y70dgM7osfpkiUajRunWqkVyaxZyf0QyBj/Ip7qypXleY9icd+Om5Z/e2113kNavLfxpuUfx8nHdXetXKm38e6/f+jtQzZEtwLx9IzLP8Oqq1NdvrzLf8gZZ1xDg+ppp3GqCnnQ8Tj+/+Nat/oVShc444z7+WcN6uq08mhsDL19QFnpmVHv3nqmdPPNGn/2merGjbp9wwbVTz5Rve461d13D91/VrECyQb/OFe9/nrtFwsXduwXif1k0SKNb7pJ4z32CN0/gBwiQABsT7SnsAAAcSNAAACpECAAgFQIEABAKgQIACAVAgQAkAoBAgBIhQABAKRCgAAAUiFAAACpECAAgFQIEABAKgQIACAVAgQAkAoBAgBIhQABAKRCgAAAUiFAAACpECAAgFQIEABAKgQIACAVAgQAkAoBAgBIhQABAKRCgAAAUiFAAACpECAAgFQIEABAKgQIACAVAgQAkMouoRsAgFBcu2t37b17a9S3r7HGGtu3r3HGGbfvvsnxf35ujDFmn31Ue/VK/tU+ffT7PXro963VeK+9On7FGmtsW5tub2jQjc8/b2tsja35/PPQ81IqAgRAZjnnnHN7760D8eDBunXQIB2gBw7U2NdDDun4eeL2Pffc5g9bY43dwXhnSv331lhjJ0zQ4MYbtT3PPadxfb211lrb3Bx6nreHAAEQDa0IevbUgXXYMAXDUUdpPHy4xsOHa3zUUfpXBx/c5QN81CZOVD3wQM1HXZ1WJps3h+5sawQIgKrRM+zBgxUEI0fqwD9ypH7q67Bhqrvs0u2VQKaNHq3tnTxZ4/vuC93R1ggQAN2mYKipUTCMGKFbR43SAfDkkzU+6STV/fcvVhB01/XXa37vv1+ntJwL3ZFHgAAomU6p9OunABg/Xreeeabq+PG6vV+/0H3my0EHJV/jWbYsdEceAQJgG3rGe8wxGp13nuoZZ6j6FUYNlwFUSyKYCRAAEVBQHHmkRhdcoHrhhapDhoTuD/+1Zk3oDrZGgAAF0PHitTHm33f5+MDw72ZCnFasUP3559CdbI0AAXJEQdGjh86Zjx6tW+vrVf2pqB49QveJrnjggdhePPcIECDDFBiHHqrAuOoq3XrFFTpnfsABoftDSs444957T4MZM0K3sz0ECJAhCozaWh1gbr5Zt9bVKTB4UTvb/Apj1iz9f159tVYeW7aE7mx7CBAgQh3XVRhjjDn3XFUfGCecwHUUgTnjjGtu1v9Dc7PGGzdq/Oefnf++D4imJv1ea6vG33+vOmeOAuOLL0JvXqkIECACur5it900uvRS1RtvVD388ND9ZVtbm+qvv3ZUZ5xxv/2mA/mKFRqvWqXx2rX6vbVrdfu6dcnbm5r00SLxvSZRbQQIEEDHi93GGGMuu0z19ttVDz44dH9xa2xU/fpr1R9+UF2ypKM644xbulQH+pUrQ3ecVwQIUEUKjnPO0eiuu1T9Zz8Vnb/OYeFC1U8/VV28WPWrr3SK548/QncKIUCACtKpqVNP1SmQe+7Rrf4zoQrEGWfcTz9pHubP1/ijj/TDhQu1UojnCmuUhgABykgrjP79Nbr/flV/ZXfeNTWpzpungHjnHR8YCojly0N3iPIiQIBu0ArDf+z4pEm69c47Vfv0Cd1fZSxbpoB47TVt9+uva/zhh7F+bwUqgwABUtBKw3+o4COPqB5/fOi+yst/hMbcuQqIOXMUEP7UE4qOAAFKoMDYfXeN7r1X9ZprVLN+Ad9ff6nOnq36zDOqixbF+hEaiAMBAuxAcqXx7LOqQ4eG7ivt1qi+/75WFE8+qVNQL72koPAXtgGlIUCA/0heAX7ttap+xdGzZ+j+usZfQDdnjgJj6lSdgvrmm9CdIR8IEMD4F8MHDtRo1izVU04J3VfXrFqloJg2TSuLJ57QysK/OwooLwIEhaYVx6hRGr3wgup++4XuqzT+bbEPPqj6+ONaYXAqCtVBgKBQFBjW6pn6DTfo1rvvVo34ezKcccb5LxS67TatMGbP1grjn39Ct4diIkBQCAqOXr00euwxHYD9hxbGyn943333qU6bphXGpk2hOwOMIUCQc3ptw3844euvqx59dOi+OudPPU2dqnrPPVphtLSE7gzoDAGCXNKK44gjNHr7bdUBA0L31TkfbJMnKzD4yA9kAwGCXNGK47jjNHrjDdV+/UL3lbR8uV7TuPpqnZKaNy90R0AaGb+CFhCtOMaM0Wsb/rukYwkO/5Wk06crOI4+muBAHrACQaYpOM47TyP/URyxXPC3dKkC45JLFBj++y2AfGAFgkzSqarTT9fouedUYwmOZ59VcIwYQXAgz1iBIFO04qit1eiVV1T9d4mH8uefCozLLlNgvPZa2H6A6iBAkAlacZx4okavvqrqPx03REPGGbd4sV5zOf98BcdPP4WeJ6CaOIWFqCk4hg/XgfrNN3XrnnuG7eqpp9TPyJF62y3BgWIiQBAlnarq21ejuXNV9947VDeqd9yhwLjySlX/abdAMXEKC1HRimPXXXWK6MUX9Ux/8ODqN2Kccc3Nuv+LL1ZgvPxy6PkBYkKAIC7WWGP9p8v6F8urralJfUyYoOD4+OPQ0wLEiABBROrrVS+6KMz9r1mjWlen4Pjqq9AzAsSMAEFEQgVHY6Nqba2Co6Eh9EwAWcCL6Cgw/019Z55JcABdR4CggHxwjB2r4Fi8OHRHQBYRICiQzZv17qrzz1dwfPll6I6ALCNAUCD19bpi/N13Q3cC5AEBgnxzxhk3ZYpWHE8/HbodIE8IEOTYggW6nuPWW0N3AuQRAYIcWr1adeJErTz++Sd0R0AeESDIkfZ21YsuUnD4IAFQCQQIcmTGDAXH+++H7gQoAgIEOfDjj6q33BK6E6BICBDkwOTJWnm0tITuBCgSAgQZ9uKLCo633grdCVBEBAgyqLVV13fccEPoToAiI0CQLc4442bO1BXlv/0Wuh2gyAgQZIP/hkBjjDFTp4ZuBwABgkx5+GGtPPwXPwEIiQBBBmzZojp9euhOAPyLAEHcnHHGzZ2rlcfKlaHbAfAvAgRxs8YaO3Nm6DYAbIsAQcRWrFD94IPQnQDYFgGCiM2erQsFnQvdCYBtESCIkzPOuDlzQrcBYPsIEMTFGWfcunV67YPvLAdiRoAgLtZYY+fN06kr//0eAGJEgCBC8+eH7gDAzhEgiNCiRaE7ALBzBAgi0tam10CWLAndCYCdI0AQB2eccd9+qyvO/UeXAIgZAYI4WGON9V9NCyALCBBExF95DiALCBDEwRlnHAECZAkBgjhYY41dvz50GwBKR4AgIi0toTsAUDoCBHFwxhnX2hq6DQClI0BQgk2bKn4X1lhj//479JYCKB0BghL8+mtl/77/uPZffgm9pQCAMnPOOec+/9yVW7trd+2ffRZ6+wAAFaID/dlnlz1AnHPOnXVW6O0DAFSYDvhTppRn5XHXXaG3BwBQZUqBK65QbWwsLTVWr1a9/PLQ/QPoPhu6AWSbAqFXL43GjFEdMiT5Ww0NqgsW6Iui2tpC9w0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAyK7/ATO6t9N2I5PTAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTAzLTAxVDExOjQ1OjU1KzA4OjAw5vcxUwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wMy0wMVQxMTo0NTo1NSswODowMJeqie8AAABSdEVYdHN2ZzpiYXNlLXVyaQBmaWxlOi8vL2hvbWUvYWRtaW4vaWNvbi1mb250L3RtcC9pY29uX2lnaGV6d2JubWhiL25hdmlnYXRpb25fbGluZS5zdmc29Ka/AAAAAElFTkSuQmCC"})])])],4)])}var p=v(z,[["render",R],["styles",[x]]]);var u=plus.webview.currentWebview();if(u){let e=parseInt(u.id),t="template/__uniappopenlocation",a={};try{a=JSON.parse(u.__query__)}catch(o){}p.mpType="page";let n=Vue.createPageApp(p,{$store:getApp({allowDefault:!0}).$store,__pageId:e,__pagePath:t,__pageQuery:a});n.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...p.styles||[]])),n.mount("#root")}})(); diff --git a/unpackage/dist/build/app-plus/__uniapppicker.js b/unpackage/dist/build/app-plus/__uniapppicker.js new file mode 100644 index 0000000..a654783 --- /dev/null +++ b/unpackage/dist/build/app-plus/__uniapppicker.js @@ -0,0 +1,33 @@ +"use weex:vue"; + +if (typeof Promise !== 'undefined' && !Promise.prototype.finally) { + Promise.prototype.finally = function(callback) { + const promise = this.constructor + return this.then( + value => promise.resolve(callback()).then(() => value), + reason => promise.resolve(callback()).then(() => { + throw reason + }) + ) + } +}; + +if (typeof uni !== 'undefined' && uni && uni.requireGlobal) { + const global = uni.requireGlobal() + ArrayBuffer = global.ArrayBuffer + Int8Array = global.Int8Array + Uint8Array = global.Uint8Array + Uint8ClampedArray = global.Uint8ClampedArray + Int16Array = global.Int16Array + Uint16Array = global.Uint16Array + Int32Array = global.Int32Array + Uint32Array = global.Uint32Array + Float32Array = global.Float32Array + Float64Array = global.Float64Array + BigInt64Array = global.BigInt64Array + BigUint64Array = global.BigUint64Array +}; + + +(()=>{var D=Object.create;var b=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var M=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty;var V=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var L=(e,t,a,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of x(t))!I.call(e,r)&&r!==a&&b(e,r,{get:()=>t[r],enumerable:!(i=C(t,r))||i.enumerable});return e};var N=(e,t,a)=>(a=e!=null?D(M(e)):{},L(t||!e||!e.__esModule?b(a,"default",{value:e,enumerable:!0}):a,e));var A=V((U,v)=>{v.exports=Vue});var _={data(){return{locale:"en",fallbackLocale:"en",localization:{en:{done:"OK",cancel:"Cancel"},zh:{done:"\u5B8C\u6210",cancel:"\u53D6\u6D88"},"zh-hans":{},"zh-hant":{},messages:{}},localizationTemplate:{}}},onLoad(){this.initLocale()},created(){this.initLocale()},methods:{initLocale(){if(this.__initLocale)return;this.__initLocale=!0;let e=(plus.webview.currentWebview().extras||{}).data||{};if(e.messages&&(this.localization.messages=e.messages),e.locale){this.locale=e.locale.toLowerCase();return}let t={chs:"hans",cn:"hans",sg:"hans",cht:"hant",tw:"hant",hk:"hant",mo:"hant"},a=plus.os.language.toLowerCase().split("/")[0].replace("_","-").split("-"),i=a[1];i&&(a[1]=t[i]||i),a.length=a.length>2?2:a.length,this.locale=a.join("-")},localize(e){let t=this.locale,a=t.split("-")[0],i=this.fallbackLocale,r=n=>Object.assign({},this.localization[n],(this.localizationTemplate||{})[n]);return r("messages")[e]||r(t)[e]||r(a)[e]||r(i)[e]||e}}},k={onLoad(){this.initMessage()},methods:{initMessage(){let{from:e,callback:t,runtime:a,data:i={},useGlobalEvent:r}=plus.webview.currentWebview().extras||{};this.__from=e,this.__runtime=a,this.__page=plus.webview.currentWebview().id,this.__useGlobalEvent=r,this.data=JSON.parse(JSON.stringify(i)),plus.key.addEventListener("backbutton",()=>{typeof this.onClose=="function"?this.onClose():plus.webview.currentWebview().close("auto")});let n=this,c=function(o){let u=o.data&&o.data.__message;!u||n.__onMessageCallback&&n.__onMessageCallback(u.data)};if(this.__useGlobalEvent)weex.requireModule("globalEvent").addEventListener("plusMessage",c);else{let o=new BroadcastChannel(this.__page);o.onmessage=c}},postMessage(e={},t=!1){let a=JSON.parse(JSON.stringify({__message:{__page:this.__page,data:e,keep:t}})),i=this.__from;if(this.__runtime==="v8")this.__useGlobalEvent?plus.webview.postMessageToUniNView(a,i):new BroadcastChannel(i).postMessage(a);else{let r=plus.webview.getWebviewById(i);r&&r.evalJS(`__plusMessage&&__plusMessage(${JSON.stringify({data:a})})`)}},onMessage(e){this.__onMessageCallback=e}}};var s=N(A());var m=(e,t)=>{let a=e.__vccOpts||e;for(let[i,r]of t)a[i]=r;return a};var d=e=>e>9?e:"0"+e;function w({date:e=new Date,mode:t="date"}){return t==="time"?d(e.getHours())+":"+d(e.getMinutes()):e.getFullYear()+"-"+d(e.getMonth()+1)+"-"+d(e.getDate())}var O={data(){return{darkmode:!1,theme:"light"}},onLoad(){this.initDarkmode()},created(){this.initDarkmode()},computed:{isDark(){return this.theme==="dark"}},methods:{initDarkmode(){if(this.__init)return;this.__init=!0;let e=(plus.webview.currentWebview().extras||{}).data||{};this.darkmode=e.darkmode||!1,this.darkmode&&(this.theme=e.theme||"light")}}},z={data(){return{safeAreaInsets:{left:0,right:0,top:0,bottom:0}}},onLoad(){this.initSafeAreaInsets()},created(){this.initSafeAreaInsets()},methods:{initSafeAreaInsets(){if(this.__initSafeAreaInsets)return;this.__initSafeAreaInsets=!0;let e=plus.webview.currentWebview();e.addEventListener("resize",()=>{setTimeout(()=>{this.updateSafeAreaInsets(e)},20)}),this.updateSafeAreaInsets(e)},updateSafeAreaInsets(e){let t=e.getSafeAreaInsets(),a=this.safeAreaInsets;Object.keys(a).forEach(i=>{a[i]=t[i]})}}},Y={content:{"":{position:"absolute",top:0,left:0,bottom:0,right:0}},"uni-mask":{"":{position:"absolute",top:0,left:0,bottom:0,right:0,backgroundColor:"rgba(0,0,0,0.4)",opacity:0,transitionProperty:"opacity",transitionDuration:200,transitionTimingFunction:"linear"}},"uni-mask-visible":{"":{opacity:1}},"uni-picker":{"":{position:"absolute",left:0,bottom:0,right:0,backgroundColor:"#ffffff",color:"#000000",flexDirection:"column",transform:"translateY(295px)"}},"uni-picker-header":{"":{height:45,borderBottomWidth:.5,borderBottomColor:"#C8C9C9",backgroundColor:"#FFFFFF",fontSize:20}},"uni-picker-action":{"":{position:"absolute",textAlign:"center",top:0,height:45,paddingTop:0,paddingRight:14,paddingBottom:0,paddingLeft:14,fontSize:17,lineHeight:45}},"uni-picker-action-cancel":{"":{left:0,color:"#888888"}},"uni-picker-action-confirm":{"":{right:0,color:"#007aff"}},"uni-picker-content":{"":{flex:1}},"uni-picker-dark":{"":{backgroundColor:"#232323"}},"uni-picker-header-dark":{"":{backgroundColor:"#232323",borderBottomColor:"rgba(255,255,255,0.05)"}},"uni-picker-action-cancel-dark":{"":{color:"rgba(255,255,255,0.8)"}},"@TRANSITION":{"uni-mask":{property:"opacity",duration:200,timingFunction:"linear"}}};function S(){if(this.mode===l.TIME)return"00:00";if(this.mode===l.DATE){let e=new Date().getFullYear()-61;switch(this.fields){case h.YEAR:return e;case h.MONTH:return e+"-01";default:return e+"-01-01"}}return""}function E(){if(this.mode===l.TIME)return"23:59";if(this.mode===l.DATE){let e=new Date().getFullYear()+61;switch(this.fields){case h.YEAR:return e;case h.MONTH:return e+"-12";default:return e+"-12-31"}}return""}function F(e){let t=new Date().getFullYear(),a=t-61,i=t+61;if(e.start){let r=new Date(e.start).getFullYear();!isNaN(r)&&ri&&(i=r)}return{start:a,end:i}}var T=weex.requireModule("animation"),l={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date",REGION:"region"},h={YEAR:"year",MONTH:"month",DAY:"day"},g=!1,R={name:"Picker",mixins:[_,z,O],props:{pageId:{type:Number,default:0},range:{type:Array,default(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:l.SELECTOR},fields:{type:String,default:h.DAY},start:{type:String,default:S},end:{type:String,default:E},disabled:{type:[Boolean,String],default:!1},visible:{type:Boolean,default:!1}},data(){return{valueSync:null,timeArray:[],dateArray:[],valueArray:[],oldValueArray:[],fontSize:16,height:261,android:weex.config.env.platform.toLowerCase()==="android"}},computed:{rangeArray(){var e=this.range;switch(this.mode){case l.SELECTOR:return[e];case l.MULTISELECTOR:return e;case l.TIME:return this.timeArray;case l.DATE:{let t=this.dateArray;switch(this.fields){case h.YEAR:return[t[0]];case h.MONTH:return[t[0],t[1]];default:return[t[0],t[1],t[2]]}}}return[]},startArray(){return this._getDateValueArray(this.start,S.bind(this)())},endArray(){return this._getDateValueArray(this.end,E.bind(this)())},textMaxLength(){return Math.floor(Math.min(weex.config.env.deviceWidth,weex.config.env.deviceHeight)/(this.fontSize*weex.config.env.scale+1)/this.rangeArray.length)},maskStyle(){return{opacity:this.visible?1:0,"background-color":this.android?"rgba(0, 0, 0, 0.6)":"rgba(0, 0, 0, 0.4)"}},pickerViewIndicatorStyle(){return`height: 34px;border-color:${this.isDark?"rgba(255, 255, 255, 0.05)":"#C8C9C9"};border-top-width:0.5px;border-bottom-width:0.5px;`},pickerViewColumnTextStyle(){return{fontSize:this.fontSize+"px","line-height":"34px","text-align":"center",color:this.isDark?"rgba(255, 255, 255, 0.8)":"#000"}},pickerViewMaskTopStyle(){return this.isDark?"background-image: linear-gradient(to bottom, rgba(35, 35, 35, 0.95), rgba(35, 35, 35, 0.6));":""},pickerViewMaskBottomStyle(){return this.isDark?"background-image: linear-gradient(to top,rgba(35, 35, 35, 0.95), rgba(35, 35, 35, 0.6));":""}},watch:{value(){this._setValueSync()},mode(){this._setValueSync()},range(){this._setValueSync()},valueSync(){this._setValueArray(),g=!0},valueArray(e){if(this.mode===l.TIME||this.mode===l.DATE){let t=this.mode===l.TIME?this._getTimeValue:this._getDateValue,a=this.valueArray,i=this.startArray,r=this.endArray;if(this.mode===l.DATE){let n=this.dateArray,c=n[2].length,o=Number(n[2][a[2]])||1,u=new Date(`${n[0][a[0]]}/${n[1][a[1]]}/${o}`).getDate();ut(r)&&this._cloneArray(a,r)}e.forEach((t,a)=>{t!==this.oldValueArray[a]&&(this.oldValueArray[a]=t,this.mode===l.MULTISELECTOR&&this.$emit("columnchange",{column:a,value:t}))})},visible(e){e?setTimeout(()=>{T.transition(this.$refs.picker,{styles:{transform:"translateY(0)"},duration:200})},20):T.transition(this.$refs.picker,{styles:{transform:`translateY(${283+this.safeAreaInsets.bottom}px)`},duration:200})}},created(){this._createTime(),this._createDate(),this._setValueSync()},methods:{getTexts(e,t){let a=this.textMaxLength;return e.map(i=>{let r=String(typeof i=="object"?i[this.rangeKey]||"":this._l10nItem(i,t));if(a>0&&r.length>a){let n=0,c=0;for(let o=0;o127||u===94?n+=1:n+=.65,n<=a-1&&(c=o),n>=a)return o===r.length-1?r:r.substr(0,c+1)+"\u2026"}}return r||" "}).join(` +`)},_createTime(){var e=[],t=[];e.splice(0,e.length);for(let a=0;a<24;a++)e.push((a<10?"0":"")+a);t.splice(0,t.length);for(let a=0;a<60;a++)t.push((a<10?"0":"")+a);this.timeArray.push(e,t)},_createDate(){var e=[],t=F(this);for(let r=t.start,n=t.end;r<=n;r++)e.push(String(r));var a=[];for(let r=1;r<=12;r++)a.push((r<10?"0":"")+r);var i=[];for(let r=1;r<=31;r++)i.push((r<10?"0":"")+r);this.dateArray.push(e,a,i)},_getTimeValue(e){return e[0]*60+e[1]},_getDateValue(e){return e[0]*31*12+(e[1]||0)*31+(e[2]||0)},_cloneArray(e,t){for(let a=0;ac?0:n)}break;case l.TIME:case l.DATE:this.valueSync=String(e);break;default:{let a=Number(e);this.valueSync=a<0?0:a;break}}this.$nextTick(()=>{!g&&this._setValueArray()})},_setValueArray(){g=!0;var e=this.valueSync,t;switch(this.mode){case l.MULTISELECTOR:t=[...e];break;case l.TIME:t=this._getDateValueArray(e,w({mode:l.TIME}));break;case l.DATE:t=this._getDateValueArray(e,w({mode:l.DATE}));break;default:t=[e];break}this.oldValueArray=[...t],this.valueArray=[...t]},_getValue(){var e=this.valueArray;switch(this.mode){case l.SELECTOR:return e[0];case l.MULTISELECTOR:return e.map(t=>t);case l.TIME:return this.valueArray.map((t,a)=>this.timeArray[a][t]).join(":");case l.DATE:return this.valueArray.map((t,a)=>this.dateArray[a][t]).join("-")}},_getDateValueArray(e,t){let a=this.mode===l.DATE?"-":":",i=this.mode===l.DATE?this.dateArray:this.timeArray,r=3;switch(this.fields){case h.YEAR:r=1;break;case h.MONTH:r=2;break}let n=String(e).split(a),c=[];for(let o=0;o=0&&(c=t?this._getDateValueArray(t):c.map(()=>0)),c},_change(){this.$emit("change",{value:this._getValue()})},_cancel(){this.$emit("cancel")},_pickerViewChange(e){this.valueArray=this._l10nColumn(e.detail.value,!0)},_l10nColumn(e,t){if(this.mode===l.DATE){let a=this.locale;if(!a.startsWith("zh"))switch(this.fields){case h.YEAR:return e;case h.MONTH:return[e[1],e[0]];default:switch(a){case"es":case"fr":return[e[2],e[1],e[0]];default:return t?[e[2],e[0],e[1]]:[e[1],e[2],e[0]]}}}return e},_l10nItem(e,t){if(this.mode===l.DATE){let a=this.locale;if(a.startsWith("zh"))return e+["\u5E74","\u6708","\u65E5"][t];if(this.fields!==h.YEAR&&t===(this.fields!==h.MONTH&&(a==="es"||a==="fr")?1:0)){let i;switch(a){case"es":i=["enero","febrero","marzo","abril","mayo","junio","\u200B\u200Bjulio","agosto","septiembre","octubre","noviembre","diciembre"];break;case"fr":i=["janvier","f\xE9vrier","mars","avril","mai","juin","juillet","ao\xFBt","septembre","octobre","novembre","d\xE9cembre"];break;default:i=["January","February","March","April","May","June","July","August","September","October","November","December"];break}return i[Number(e)-1]}}return e}}};function B(e,t,a,i,r,n){let c=(0,s.resolveComponent)("picker-view-column"),o=(0,s.resolveComponent)("picker-view");return(0,s.openBlock)(),(0,s.createElementBlock)("div",{class:(0,s.normalizeClass)(["content",{dark:e.isDark}])},[(0,s.createElementVNode)("div",{ref:"mask",style:(0,s.normalizeStyle)(n.maskStyle),class:"uni-mask",onClick:t[0]||(t[0]=(...u)=>n._cancel&&n._cancel(...u))},null,4),(0,s.createElementVNode)("div",{style:(0,s.normalizeStyle)(`padding-bottom:${e.safeAreaInsets.bottom}px;height:${r.height+e.safeAreaInsets.bottom}px;`),ref:"picker",class:(0,s.normalizeClass)(["uni-picker",{"uni-picker-dark":e.isDark}])},[(0,s.createElementVNode)("div",{class:(0,s.normalizeClass)(["uni-picker-header",{"uni-picker-header-dark":e.isDark}])},[(0,s.createElementVNode)("u-text",{style:(0,s.normalizeStyle)(`left:${e.safeAreaInsets.left}px`),class:(0,s.normalizeClass)(["uni-picker-action uni-picker-action-cancel",{"uni-picker-action-cancel-dark":e.isDark}]),onClick:t[1]||(t[1]=(...u)=>n._cancel&&n._cancel(...u))},(0,s.toDisplayString)(e.localize("cancel")),7),(0,s.createElementVNode)("u-text",{style:(0,s.normalizeStyle)(`right:${e.safeAreaInsets.right}px`),class:"uni-picker-action uni-picker-action-confirm",onClick:t[2]||(t[2]=(...u)=>n._change&&n._change(...u))},(0,s.toDisplayString)(e.localize("done")),5)],2),a.visible?((0,s.openBlock)(),(0,s.createBlock)(o,{key:0,style:(0,s.normalizeStyle)(`margin-left:${e.safeAreaInsets.left}px`),height:"216","indicator-style":n.pickerViewIndicatorStyle,"mask-top-style":n.pickerViewMaskTopStyle,"mask-bottom-style":n.pickerViewMaskBottomStyle,value:n._l10nColumn(r.valueArray),class:"uni-picker-content",onChange:n._pickerViewChange},{default:(0,s.withCtx)(()=>[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(n._l10nColumn(n.rangeArray),(u,y)=>((0,s.openBlock)(),(0,s.createBlock)(c,{length:u.length,key:y},{default:(0,s.withCtx)(()=>[(0,s.createCommentVNode)(" iOS\u6E32\u67D3\u901F\u5EA6\u6709\u95EE\u9898\u4F7F\u7528\u5355\u4E2Atext\u4F18\u5316 "),(0,s.createElementVNode)("u-text",{class:"uni-picker-item",style:(0,s.normalizeStyle)(n.pickerViewColumnTextStyle)},(0,s.toDisplayString)(n.getTexts(u,y)),5),(0,s.createCommentVNode)(` {{ typeof item==='object'?item[rangeKey]||'':_l10nItem(item) }} `)]),_:2},1032,["length"]))),128))]),_:1},8,["style","indicator-style","mask-top-style","mask-bottom-style","value","onChange"])):(0,s.createCommentVNode)("v-if",!0)],6)],2)}var j=m(R,[["render",B],["styles",[Y]]]),W={page:{"":{flex:1}}},H={mixins:[k],components:{picker:j},data(){return{range:[],rangeKey:"",value:0,mode:"selector",fields:"day",start:"",end:"",disabled:!1,visible:!1}},onLoad(){this.data===null?this.postMessage({event:"created"},!0):this.showPicker(this.data),this.onMessage(e=>{this.showPicker(e)})},onReady(){this.$nextTick(()=>{this.visible=!0})},methods:{showPicker(e={}){let t=e.column;for(let a in e)a!=="column"&&(typeof t=="number"?this.$set(this.$data[a],t,e[a]):this.$data[a]=e[a])},close(e,{value:t=-1}={}){this.visible=!1,setTimeout(()=>{this.postMessage({event:e,value:t})},210)},onClose(){this.close("cancel")},columnchange({column:e,value:t}){this.$set(this.value,e,t),this.postMessage({event:"columnchange",column:e,value:t},!0)}}};function J(e,t,a,i,r,n){let c=(0,s.resolveComponent)("picker");return(0,s.openBlock)(),(0,s.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,s.createElementVNode)("view",{class:"page"},[(0,s.createVNode)(c,{range:r.range,rangeKey:r.rangeKey,value:r.value,mode:r.mode,fields:r.fields,start:r.start,end:r.end,disabled:r.disabled,visible:r.visible,onChange:t[0]||(t[0]=o=>n.close("change",o)),onCancel:t[1]||(t[1]=o=>n.close("cancel",o)),onColumnchange:n.columnchange},null,8,["range","rangeKey","value","mode","fields","start","end","disabled","visible","onColumnchange"])])])}var f=m(H,[["render",J],["styles",[W]]]);var p=plus.webview.currentWebview();if(p){let e=parseInt(p.id),t="template/__uniapppicker",a={};try{a=JSON.parse(p.__query__)}catch(r){}f.mpType="page";let i=Vue.createPageApp(f,{$store:getApp({allowDefault:!0}).$store,__pageId:e,__pagePath:t,__pageQuery:a});i.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...f.styles||[]])),i.mount("#root")}})(); diff --git a/unpackage/dist/build/app-plus/__uniappquill.js b/unpackage/dist/build/app-plus/__uniappquill.js new file mode 100644 index 0000000..d9f46b8 --- /dev/null +++ b/unpackage/dist/build/app-plus/__uniappquill.js @@ -0,0 +1,8 @@ +/*! + * Quill Editor v1.3.7 + * https://quilljs.com/ + * Copyright (c) 2014, Jason Chen + * Copyright (c) 2013, salesforce.com + */ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Quill=e():t.Quill=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=45)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),l=n(48),a=n(49),s=n(50),u=n(51),c=n(52),f=n(11),h=n(29),p=n(30),d=n(28),y=n(1),v={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:u.default,Scroll:l.default,Block:s.default,Inline:a.default,Text:c.default,Attributor:{Attribute:f.default,Class:h.default,Style:p.default,Store:d.default}};e.default=v},function(t,e,n){"use strict";function r(t,e){var n=i(t);if(null==n)throw new s("Unable to create "+t+" blot");var r=n;return new r(t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e),e)}function o(t,n){return void 0===n&&(n=!1),null==t?null:null!=t[e.DATA_KEY]?t[e.DATA_KEY].blot:n?o(t.parentNode,n):null}function i(t,e){void 0===e&&(e=p.ANY);var n;if("string"==typeof t)n=h[t]||u[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=h.text;else if("number"==typeof t)t&p.LEVEL&p.BLOCK?n=h.block:t&p.LEVEL&p.INLINE&&(n=h.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=c[r[o]])break;n=n||f[t.tagName]}return null==n?null:e&p.LEVEL&n.scope&&e&p.TYPE&n.scope?n:null}function l(){for(var t=[],e=0;e1)return t.map(function(t){return l(t)});var n=t[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new s("Invalid definition");if("abstract"===n.blotName)throw new s("Cannot register abstract class");if(h[n.blotName||n.attrName]=n,"string"==typeof n.keyName)u[n.keyName]=n;else if(null!=n.className&&(c[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map(function(t){return t.toUpperCase()}):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach(function(t){null!=f[t]&&null!=n.className||(f[t]=n)})}return n}var a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var s=function(t){function e(e){var n=this;return e="[Parchment] "+e,n=t.call(this,e)||this,n.message=e,n.name=n.constructor.name,n}return a(e,t),e}(Error);e.ParchmentError=s;var u={},c={},f={},h={};e.DATA_KEY="__blot";var p;!function(t){t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY"}(p=e.Scope||(e.Scope={})),e.create=r,e.find=o,e.query=i,e.register=l},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},a=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e=n.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!e&&!o)return!1;var i;for(i in t);return void 0===i||n.call(t,i)},s=function(t,e){o&&"__proto__"===e.name?o(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},u=function(t,e){if("__proto__"===e){if(!n.call(t,e))return;if(i)return i(t,e).value}return t[e]};t.exports=function t(){var e,n,r,o,i,c,f=arguments[0],h=1,p=arguments.length,d=!1;for("boolean"==typeof f&&(d=f,f=arguments[1]||{},h=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});h1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,f.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:a(t.parent,e))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var s=function(){function t(t,e){for(var n=0;n0&&(t1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},o}}]),e}(y.default.Block);x.blotName="block",x.tagName="P",x.defaultChild="break",x.allowedChildren=[m.default,y.default.Embed,O.default],e.bubbleFormats=a,e.BlockEmbed=w,e.default=x},function(t,e,n){var r=n(54),o=n(12),i=n(2),l=n(20),a=String.fromCharCode(0),s=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};s.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},s.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},s.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},s.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=i(!0,{},t),"object"==typeof n){if("number"==typeof t.delete&&"number"==typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if("number"==typeof n.delete&&null!=t.insert&&(e-=1,"object"!=typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(o(t.attributes,n.attributes)){if("string"==typeof t.insert&&"string"==typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},s.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},s.prototype.filter=function(t){return this.ops.filter(t)},s.prototype.forEach=function(t){this.ops.forEach(t)},s.prototype.map=function(t){return this.ops.map(t)},s.prototype.partition=function(t){var e=[],n=[];return this.forEach(function(r){(t(r)?e:n).push(r)}),[e,n]},s.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},s.prototype.changeLength=function(){return this.reduce(function(t,e){return e.insert?t+l.length(e):e.delete?t-e.delete:t},0)},s.prototype.length=function(){return this.reduce(function(t,e){return t+l.length(e)},0)},s.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var n=[],r=l.iterator(this.ops),o=0;o0&&n.next(i.retain-a)}for(var u=new s(r);e.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===e.peekType())u.push(e.next());else{var c=Math.min(e.peekLength(),n.peekLength()),f=e.next(c),h=n.next(c);if("number"==typeof h.retain){var p={};"number"==typeof f.retain?p.retain=c:p.insert=f.insert;var d=l.attributes.compose(f.attributes,h.attributes,"number"==typeof f.retain);if(d&&(p.attributes=d),u.push(p),!n.hasNext()&&o(u.ops[u.ops.length-1],p)){var y=new s(e.rest());return u.concat(y).chop()}}else"number"==typeof h.delete&&"number"==typeof f.retain&&u.push(h)}return u.chop()},s.prototype.concat=function(t){var e=new s(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},s.prototype.diff=function(t,e){if(this.ops===t.ops)return new s;var n=[this,t].map(function(e){return e.map(function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:a;var r=e===t?"on":"with";throw new Error("diff() called "+r+" non-document")}).join("")}),i=new s,u=r(n[0],n[1],e),c=l.iterator(this.ops),f=l.iterator(t.ops);return u.forEach(function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e),i.push(f.next(n));break;case r.DELETE:n=Math.min(e,c.peekLength()),c.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),e);var a=c.next(n),s=f.next(n);o(a.insert,s.insert)?i.retain(n,l.attributes.diff(a.attributes,s.attributes)):i.push(s).delete(n)}e-=n}}),i.chop()},s.prototype.eachLine=function(t,e){e=e||"\n";for(var n=l.iterator(this.ops),r=new s,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),a=l.length(i)-n.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(e,a)-a:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===t(r,n.next(1).attributes||{},o))return;o+=1,r=new s}}r.length()>0&&t(r,{},o)},s.prototype.transform=function(t,e){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);for(var n=l.iterator(this.ops),r=l.iterator(t.ops),o=new s;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),a=n.next(i),u=r.next(i);if(a.delete)continue;u.delete?o.push(u):o.retain(i,l.attributes.transform(a.attributes,u.attributes,e))}else o.retain(l.length(n.next()));return o.chop()},s.prototype.transformPosition=function(t,e){e=!!e;for(var n=l.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),o=e.order.indexOf(n);return r>=0||o>=0?r-o:t===n?0:t0){var a,s=[g.default.events.TEXT_CHANGE,l,i,e];if((a=this.emitter).emit.apply(a,[g.default.events.EDITOR_CHANGE].concat(s)),e!==g.default.sources.SILENT){var c;(c=this.emitter).emit.apply(c,s)}}return l}function s(t,e,n,r,o){var i={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(o=r,r=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(o=r,r=n,n=e,e=0),"object"===(void 0===n?"undefined":c(n))?(i=n,o=r):"string"==typeof n&&(null!=r?i[n]=r:o=n),o=o||g.default.sources.API,[t,e,i,o]}function u(t,e,n,r){if(null==t)return null;var o=void 0,i=void 0;if(e instanceof d.default){var l=[t.index,t.index+t.length].map(function(t){return e.transformPosition(t,r!==g.default.sources.USER)}),a=f(l,2);o=a[0],i=a[1]}else{var s=[t.index,t.index+t.length].map(function(t){return t=0?t+n:Math.max(e,t+n)}),u=f(s,2);o=u[0],i=u[1]}return new x.Range(o,i-o)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(i(this,t),this.options=l(e,r),this.container=this.options.container,null==this.container)return P.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new g.default,this.scroll=w.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new v.default(this.scroll),this.selection=new k.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(g.default.events.EDITOR_CHANGE,function(t){t===g.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())}),this.emitter.on(g.default.events.SCROLL_UPDATE,function(t,e){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;a.call(n,function(){return n.editor.update(null,e,o)},t)});var s=this.clipboard.convert("
"+o+"


");this.setContents(s),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return h(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),A.default.level(t)}},{key:"find",value:function(t){return t.__quill||w.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&P.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof t){var o=t.attrName||t.blotName;"string"==typeof o?this.register("formats/"+o,t,e):Object.keys(t).forEach(function(r){n.register(r,t[r],e)})}else null==this.imports[t]||r||P.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?w.default.register(e):t.startsWith("modules")&&"function"==typeof e.register&&e.register()}}]),h(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){var n=t;t=document.createElement("div"),t.classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,o=s(t,e,n),i=f(o,4);return t=i[0],e=i[1],n=i[3],a.call(this,function(){return r.editor.deleteText(t,e)},n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.default.sources.API;return a.call(this,function(){var r=n.getSelection(!0),i=new d.default;if(null==r)return i;if(w.default.query(t,w.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,o({},t,e));else{if(0===r.length)return n.selection.format(t,e),i;i=n.editor.formatText(r.index,r.length,o({},t,e))}return n.setSelection(r,g.default.sources.SILENT),i},r)}},{key:"formatLine",value:function(t,e,n,r,o){var i=this,l=void 0,u=s(t,e,n,r,o),c=f(u,4);return t=c[0],e=c[1],l=c[2],o=c[3],a.call(this,function(){return i.editor.formatLine(t,e,l)},o,t,0)}},{key:"formatText",value:function(t,e,n,r,o){var i=this,l=void 0,u=s(t,e,n,r,o),c=f(u,4);return t=c[0],e=c[1],l=c[2],o=c[3],a.call(this,function(){return i.editor.formatText(t,e,l)},o,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=s(t,e),r=f(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=s(t,e),r=f(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return a.call(this,function(){return o.editor.insertEmbed(e,n,r)},i,e)}},{key:"insertText",value:function(t,e,n,r,o){var i=this,l=void 0,u=s(t,0,n,r,o),c=f(u,4);return t=c[0],l=c[2],o=c[3],a.call(this,function(){return i.editor.insertText(t,e,l)},o,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,o=s(t,e,n),i=f(o,4);return t=i[0],e=i[1],n=i[3],a.call(this,function(){return r.editor.removeFormat(t,e)},n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API;return a.call(this,function(){t=new d.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),o=e.editor.applyDelta(t),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),o.delete(1)),r.compose(o)},n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var o=s(e,n,r),i=f(o,4);e=i[0],n=i[1],r=i[3],this.selection.setRange(new x.Range(e,n),r),r!==g.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API,n=(new d.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API;return a.call(this,function(){return t=new d.default(t),e.editor.applyDelta(t,n)},n,!0)}}]),t}();S.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},S.events=g.default.events,S.sources=g.default.sources,S.version="1.3.7",S.imports={delta:d.default,parchment:w.default,"core/module":_.default,"core/theme":T.default},e.expandConfig=l,e.overload=s,e.default=S},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.quill=e,this.options=n};o.DEFAULTS={},e.default=o},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(0),a=function(t){return t&&t.__esModule?t:{default:t}}(l),s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),e}(a.default.Text);e.default=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n1?e-1:0),r=1;r1?n-1:0),o=1;o-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=o},function(t,e,n){function r(t){return null===t||void 0===t}function o(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}function i(t,e,n){var i,c;if(r(t)||r(e))return!1;if(t.prototype!==e.prototype)return!1;if(s(t))return!!s(e)&&(t=l.call(t),e=l.call(e),u(t,e,n));if(o(t)){if(!o(e))return!1;if(t.length!==e.length)return!1;for(i=0;i=0;i--)if(f[i]!=h[i])return!1;for(i=f.length-1;i>=0;i--)if(c=f[i],!u(t[c],e[c],n))return!1;return typeof t==typeof e}var l=Array.prototype.slice,a=n(55),s=n(56),u=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:i(t,e,n))}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var a=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var n=0;n=t+n)){var l=this.newlineIndex(t,!0)+1,a=i-l+1,s=this.isolate(l,a),u=s.next;s.format(r,o),u instanceof e&&u.formatAt(0,t-l+n-a,r,o)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var r=this.descendant(m.default,t),o=a(r,2),i=o[0],l=o[1];i.insertAt(l,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var e=this.domNode.textContent.slice(t).indexOf("\n");return e>-1?t+e:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(p.default.create("text","\n")),u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(t){var e=p.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof p.default.Embed?e.remove():e.unwrap()})}}],[{key:"create",value:function(t){var n=u(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(y.default);O.blotName="code-block",O.tagName="PRE",O.TAB=" ",e.Code=_,e.default=O},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n-1}Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var a=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":l(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=p},function(t,e,n){"use strict";function r(t){var e=a.find(t);if(null==e)try{e=a.create(t)}catch(n){e=a.create(a.Scope.INLINE),[].slice.call(t.childNodes).forEach(function(t){e.domNode.appendChild(t)}),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(47),l=n(27),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return o(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(e){try{var n=r(e);t.insertBefore(n,t.children.head||void 0)}catch(t){if(t instanceof a.ParchmentError)return;throw t}})},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,function(t,e,n){t.deleteAt(e,n)})},e.prototype.descendant=function(t,n){var r=this.children.find(n),o=r[0],i=r[1];return null==t.blotName&&t(o)||null!=t.blotName&&o instanceof t?[o,i]:o instanceof e?o.descendant(t,i):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,function(n,r,l){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&o.push(n),n instanceof e&&(o=o.concat(n.descendants(t,r,i))),i-=l}),o},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,function(t,e,o){t.formatAt(e,o,n,r)})},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),o=r[0],i=r[1];if(o)o.insertAt(i,e,n);else{var l=null==n?a.create("text",e):a.create(e,n);this.appendChild(l)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(e){return t instanceof e}))throw new a.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce(function(t,e){return t+e.length()},0)},e.prototype.moveChildren=function(t,e){this.children.forEach(function(n){t.insertBefore(n,e)})},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),o=r[0],i=r[1],l=[[this,t]];return o instanceof e?l.concat(o.path(i,n)):(null!=o&&l.push([o,i]),l)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),function(t,r,o){t=t.split(r,e),n.appendChild(t)}),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,o=[],i=[];t.forEach(function(t){t.target===n.domNode&&"childList"===t.type&&(o.push.apply(o,t.addedNodes),i.push.apply(i,t.removedNodes))}),i.forEach(function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=a.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}}),o.filter(function(t){return t.parentNode==n.domNode}).sort(function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(t){var e=null;null!=t.nextSibling&&(e=a.find(t.nextSibling));var o=r(t);o.next==e&&null!=o.next||(null!=o.parent&&o.parent.removeChild(n),n.insertBefore(o,e||void 0))})},e}(l.default);e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(11),i=n(28),l=n(17),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new i.default(n.domNode),n}return r(e,t),e.formats=function(t){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=a.query(t);n instanceof o.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some(function(t){return t.target===r.domNode&&"attributes"===t.type})&&this.attributes.build()},e.prototype.wrap=function(n,r){var o=t.prototype.wrap.call(this,n,r);return o instanceof e&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},e}(l.default);e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(27),i=n(1),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return t={},t[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=l},function(t,e,n){function r(t){this.ops=t,this.index=0,this.offset=0}var o=n(12),i=n(2),l={attributes:{compose:function(t,e,n){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var r=i(!0,{},e);n||(r=Object.keys(r).reduce(function(t,e){return null!=r[e]&&(t[e]=r[e]),t},{}));for(var o in t)void 0!==t[o]&&void 0===e[o]&&(r[o]=t[o]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce(function(n,r){return o(t[r],e[r])||(n[r]=void 0===e[r]?null:e[r]),n},{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!=typeof t)return e;if("object"==typeof e){if(!n)return e;var r=Object.keys(e).reduce(function(n,r){return void 0===t[r]&&(n[r]=e[r]),n},{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new r(t)},length:function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"string"==typeof t.insert?t.insert.length:1}};r.prototype.hasNext=function(){return this.peekLength()<1/0},r.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=l.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};var o={};return e.attributes&&(o.attributes=e.attributes),"number"==typeof e.retain?o.retain=t:"string"==typeof e.insert?o.insert=e.insert.substr(n,t):o.insert=e.insert,o}return{retain:1/0}},r.prototype.peek=function(){return this.ops[this.index]},r.prototype.peekLength=function(){return this.ops[this.index]?l.length(this.ops[this.index])-this.offset:1/0},r.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},r.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t.exports=l},function(t,e){var n=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}function e(n,r,o,i,c){function f(n,o){if(null===n)return null;if(0===o)return n;var y,v;if("object"!=typeof n)return n;if(t(n,a))y=new a;else if(t(n,s))y=new s;else if(t(n,u))y=new u(function(t,e){n.then(function(e){t(f(e,o-1))},function(t){e(f(t,o-1))})});else if(e.__isArray(n))y=[];else if(e.__isRegExp(n))y=new RegExp(n.source,l(n)),n.lastIndex&&(y.lastIndex=n.lastIndex);else if(e.__isDate(n))y=new Date(n.getTime());else{if(d&&Buffer.isBuffer(n))return y=Buffer.allocUnsafe?Buffer.allocUnsafe(n.length):new Buffer(n.length),n.copy(y),y;t(n,Error)?y=Object.create(n):void 0===i?(v=Object.getPrototypeOf(n),y=Object.create(v)):(y=Object.create(i),v=i)}if(r){var b=h.indexOf(n);if(-1!=b)return p[b];h.push(n),p.push(y)}t(n,a)&&n.forEach(function(t,e){var n=f(e,o-1),r=f(t,o-1);y.set(n,r)}),t(n,s)&&n.forEach(function(t){var e=f(t,o-1);y.add(e)});for(var g in n){var m;v&&(m=Object.getOwnPropertyDescriptor(v,g)),m&&null==m.set||(y[g]=f(n[g],o-1))}if(Object.getOwnPropertySymbols)for(var _=Object.getOwnPropertySymbols(n),g=0;g<_.length;g++){var O=_[g],w=Object.getOwnPropertyDescriptor(n,O);(!w||w.enumerable||c)&&(y[O]=f(n[O],o-1),w.enumerable||Object.defineProperty(y,O,{enumerable:!1}))}if(c)for(var x=Object.getOwnPropertyNames(n),g=0;g1&&void 0!==arguments[1]?arguments[1]:0;i(this,t),this.index=e,this.length=n},O=function(){function t(e,n){var r=this;i(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new _(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){r.mouseDown||setTimeout(r.update.bind(r,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(t,e){t===v.default.events.TEXT_CHANGE&&e.length()>0&&r.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}})}}),this.emitter.on(v.default.events.SCROLL_OPTIMIZE,function(t,e){if(e.range){var n=e.range,o=n.startNode,i=n.startOffset,l=n.endNode,a=n.endOffset;r.setNativeRange(o,i,l,a)}}),this.update(v.default.sources.SILENT)}return s(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",function(){t.composing=!0}),this.root.addEventListener("compositionend",function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout(function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,function(){t.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){t.mouseDown=!1,t.update(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!c.default.query(t,c.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=c.default.find(n.start.node,!1);if(null==r)return;if(r instanceof c.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var r=void 0,o=this.scroll.leaf(t),i=a(o,2),l=i[0],s=i[1];if(null==l)return null;var u=l.position(s,!0),c=a(u,2);r=c[0],s=c[1];var f=document.createRange();if(e>0){f.setStart(r,s);var h=this.scroll.leaf(t+e),p=a(h,2);if(l=p[0],s=p[1],null==l)return null;var d=l.position(s,!0),y=a(d,2);return r=y[0],s=y[1],f.setEnd(r,s),f.getBoundingClientRect()}var v="left",b=void 0;return r instanceof Text?(s0&&(v="right")),{bottom:b.top+b.height,height:b.height,left:b[v],right:b[v],top:b.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return m.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var r=n.map(function(t){var n=a(t,2),r=n[0],o=n[1],i=c.default.find(r,!0),l=i.offset(e.scroll);return 0===o?l:i instanceof c.default.Container?l+i.length():l+i.index(r,o)}),i=Math.min(Math.max.apply(Math,o(r)),this.scroll.length()-1),l=Math.min.apply(Math,[i].concat(o(r)));return new _(l,i-l)}},{key:"normalizeNative",value:function(t){if(!l(this.root,t.startContainer)||!t.collapsed&&!l(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach(function(t){for(var e=t.node,n=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;e=e.lastChild,n=e instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n}),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],r=[],o=this.scroll.length();return n.forEach(function(t,n){t=Math.min(o-1,t);var i=void 0,l=e.scroll.leaf(t),s=a(l,2),u=s[0],c=s[1],f=u.position(c,0!==n),h=a(f,2);i=h[0],c=h[1],r.push(i,c)}),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var r=this.scroll.length()-1,o=this.scroll.line(Math.min(e.index,r)),i=a(o,1),l=i[0],s=l;if(e.length>0){var u=this.scroll.line(Math.min(e.index+e.length,r));s=a(u,1)[0]}if(null!=l&&null!=s){var c=t.getBoundingClientRect();n.topc.bottom&&(t.scrollTop+=n.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(m.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=t){this.hasFocus()||this.root.focus();var l=(this.getNativeRange()||{}).native;if(null==l||o||t!==l.startContainer||e!==l.startOffset||n!==l.endContainer||r!==l.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var a=document.createRange();a.setStart(t,e),a.setEnd(n,r),i.removeAllRanges(),i.addRange(a)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.default.sources.API;if("string"==typeof e&&(n=e,e=!1),m.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,o(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.default.sources.USER,e=this.lastRange,n=this.getRange(),r=a(n,2),o=r[0],i=r[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,d.default)(e,this.lastRange)){var l;!this.composing&&null!=i&&i.native.collapsed&&i.start.node!==this.cursor.textNode&&this.cursor.restore();var s=[v.default.events.SELECTION_CHANGE,(0,h.default)(this.lastRange),(0,h.default)(e),t];if((l=this.emitter).emit.apply(l,[v.default.events.EDITOR_CHANGE].concat(s)),t!==v.default.sources.SILENT){var u;(u=this.emitter).emit.apply(u,s)}}}}]),t}();e.Range=_,e.default=O},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),s=r(a),u=n(3),c=r(u),f=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(s.default.Container);f.allowedChildren=[c.default,u.BlockEmbed,f],e.default=f},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var l=function(){function t(t,e){for(var n=0;n1){var u=o.formats(),c=this.quill.getFormat(t.index-1,1);i=A.default.attributes.diff(u,c)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,S.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(t.index-f,f,i,S.default.sources.USER),this.quill.focus()}}function c(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},o=0,i=this.quill.getLine(t.index),l=b(i,1),a=l[0];if(e.offset>=a.length()-1){var s=this.quill.getLine(t.index+1),u=b(s,1),c=u[0];if(c){var f=a.formats(),h=this.quill.getFormat(t.index,1);r=A.default.attributes.diff(f,h)||{},o=c.length()}}this.quill.deleteText(t.index,n,S.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+o-1,n,r,S.default.sources.USER)}}function f(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),o=e[e.length-1].formats();n=A.default.attributes.diff(o,r)||{}}this.quill.deleteText(t,S.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,S.default.sources.USER),this.quill.setSelection(t.index,S.default.sources.SILENT),this.quill.focus()}function h(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce(function(t,n){return T.default.query(n,T.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t},{});this.quill.insertText(t.index,"\n",r,S.default.sources.USER),this.quill.setSelection(t.index+1,S.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach(function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],S.default.sources.USER))})}function p(t){return{key:D.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=T.default.query("code-block"),r=e.index,o=e.length,i=this.quill.scroll.descendant(n,r),l=b(i,2),a=l[0],s=l[1];if(null!=a){var u=this.quill.getIndex(a),c=a.newlineIndex(s,!0)+1,f=a.newlineIndex(u+s+o),h=a.domNode.textContent.slice(c,f).split("\n");s=0,h.forEach(function(e,i){t?(a.insertAt(c+s,n.TAB),s+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):e.startsWith(n.TAB)&&(a.deleteAt(c+s,n.TAB.length),s-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),s+=e.length+1}),this.quill.update(S.default.sources.USER),this.quill.setSelection(r,o,S.default.sources.SILENT)}}}}function d(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],S.default.sources.USER)}}}function y(t){if("string"==typeof t||"number"==typeof t)return y({key:t});if("object"===(void 0===t?"undefined":v(t))&&(t=(0,_.default)(t,!1)),"string"==typeof t.key)if(null!=D.keys[t.key.toUpperCase()])t.key=D.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[B]=t.shortKey,delete t.shortKey),t}Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=y(t);if(null==r||null==r.key)return I.warn("Attempted to add invalid keyboard binding",r);"function"==typeof e&&(e={handler:e}),"function"==typeof n&&(n={handler:n}),r=(0,k.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",function(n){if(!n.defaultPrevented){var r=n.which||n.keyCode,o=(t.bindings[r]||[]).filter(function(t){return e.match(n,t)});if(0!==o.length){var i=t.quill.getSelection();if(null!=i&&t.quill.hasFocus()){var l=t.quill.getLine(i.index),a=b(l,2),s=a[0],u=a[1],c=t.quill.getLeaf(i.index),f=b(c,2),h=f[0],p=f[1],d=0===i.length?[h,p]:t.quill.getLeaf(i.index+i.length),y=b(d,2),g=y[0],m=y[1],_=h instanceof T.default.Text?h.value().slice(0,p):"",O=g instanceof T.default.Text?g.value().slice(m):"",x={collapsed:0===i.length,empty:0===i.length&&s.length()<=1,format:t.quill.getFormat(i),offset:u,prefix:_,suffix:O};o.some(function(e){if(null!=e.collapsed&&e.collapsed!==x.collapsed)return!1;if(null!=e.empty&&e.empty!==x.empty)return!1;if(null!=e.offset&&e.offset!==x.offset)return!1;if(Array.isArray(e.format)){if(e.format.every(function(t){return null==x.format[t]}))return!1}else if("object"===v(e.format)&&!Object.keys(e.format).every(function(t){return!0===e.format[t]?null!=x.format[t]:!1===e.format[t]?null==x.format[t]:(0,w.default)(e.format[t],x.format[t])}))return!1;return!(null!=e.prefix&&!e.prefix.test(x.prefix))&&(!(null!=e.suffix&&!e.suffix.test(x.suffix))&&!0!==e.handler.call(t,i,x))})&&n.preventDefault()}}}})}}]),e}(R.default);D.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},D.DEFAULTS={bindings:{bold:d("bold"),italic:d("italic"),underline:d("underline"),indent:{key:D.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",S.default.sources.USER)}},outdent:{key:D.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",S.default.sources.USER)}},"outdent backspace":{key:D.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",S.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,S.default.sources.USER)}},"indent code-block":p(!0),"outdent code-block":p(!1),"remove tab":{key:D.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,S.default.sources.USER)}},tab:{key:D.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new N.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,S.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,S.default.sources.SILENT)}},"list empty enter":{key:D.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,S.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,S.default.sources.USER)}},"checklist enter":{key:D.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=b(e,2),r=n[0],o=n[1],i=(0,k.default)({},r.formats(),{list:"checked"}),l=(new N.default).retain(t.index).insert("\n",i).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,S.default.sources.USER),this.quill.setSelection(t.index+1,S.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:D.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=b(n,2),o=r[0],i=r[1],l=(new N.default).retain(t.index).insert("\n",e.format).retain(o.length()-i-1).retain(1,{header:null});this.quill.updateContents(l,S.default.sources.USER),this.quill.setSelection(t.index+1,S.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),o=b(r,2),i=o[0],l=o[1];if(l>n)return!0;var a=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":a="unchecked";break;case"[x]":a="checked";break;case"-":case"*":a="bullet";break;default:a="ordered"}this.quill.insertText(t.index," ",S.default.sources.USER),this.quill.history.cutoff();var s=(new N.default).retain(t.index-l).delete(n+1).retain(i.length()-2-l).retain(1,{list:a});this.quill.updateContents(s,S.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,S.default.sources.SILENT)}},"code exit":{key:D.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=b(e,2),r=n[0],o=n[1],i=(new N.default).retain(t.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(i,S.default.sources.USER)}},"embed left":s(D.keys.LEFT,!1),"embed left shift":s(D.keys.LEFT,!0),"embed right":s(D.keys.RIGHT,!1),"embed right shift":s(D.keys.RIGHT,!0)}},e.default=D,e.SHORTKEY=B},function(t,e,n){"use strict";t.exports={align:{"":n(75),center:n(76),right:n(77),justify:n(78)},background:n(79),blockquote:n(80),bold:n(81),clean:n(82),code:n(40),"code-block":n(40),color:n(83),direction:{"":n(84),rtl:n(85)},float:{center:n(86),full:n(87),left:n(88),right:n(89)},formula:n(90),header:{1:n(91),2:n(92)},italic:n(93),image:n(94),indent:{"+1":n(95),"-1":n(96)},link:n(97),list:{ordered:n(98),bullet:n(99),check:n(100)},script:{sub:n(101),super:n(102)},strike:n(103),underline:n(104),video:n(105)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,o){var i=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var l=r.create(this.statics.scope);i.wrap(l),l.format(n,o)}},t.prototype.insertAt=function(t,e,n){var o=null==n?r.create("text",e):r.create(e,n),i=this.split(t);this.parent.insertBefore(o,i)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"==typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"==typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11),o=n(29),i=n(30),l=n(1),a=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=o.default.keys(this.domNode),a=i.default.keys(this.domNode);e.concat(n).concat(a).forEach(function(e){var n=l.query(e,l.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)})},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach(function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)})},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce(function(e,n){return e[n]=t.attributes[n].value(t.domNode),e},{})},t}();e.default=a},function(t,e,n){"use strict";function r(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(function(t){return 0===t.indexOf(e+"-")})}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(11),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){r(t,this.keyName).forEach(function(e){t.classList.remove(e)}),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=r(t,this.keyName)[0]||"",n=e.slice(this.keyName.length+1);return this.canAdd(t,n)?n:""},e}(i.default);e.default=l},function(t,e,n){"use strict";function r(t){var e=t.split("-"),n=e.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return e[0]+n}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(11),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map(function(t){return t.split(":")[0].trim()})},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[r(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[r(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[r(this.keyName)];return this.canAdd(t,e)?e:""},e}(i.default);e.default=l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=function(){function t(t,e){for(var n=0;n '},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;nr.right&&(i=r.right-o.right,this.root.style.left=e+i+"px"),o.leftr.bottom){var l=o.bottom-o.top,a=t.bottom-t.top+l;this.root.style.top=n-a+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}function s(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach(function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var u=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,v.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,v.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=a(t);case"formula":if(!t)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,v.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",v.default.sources.USER),this.quill.setSelection(r+2,v.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(A.default);e.BaseTooltip=M,e.default=L},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(46),i=r(o),l=n(34),a=n(36),s=n(62),u=n(63),c=r(u),f=n(64),h=r(f),p=n(65),d=r(p),y=n(35),v=n(24),b=n(37),g=n(38),m=n(39),_=r(m),O=n(66),w=r(O),x=n(15),k=r(x),E=n(67),N=r(E),j=n(68),A=r(j),q=n(69),T=r(q),P=n(70),S=r(P),C=n(71),L=r(C),M=n(13),R=r(M),I=n(72),B=r(I),D=n(73),U=r(D),F=n(74),H=r(F),K=n(26),z=r(K),V=n(16),Z=r(V),W=n(41),G=r(W),Y=n(42),X=r(Y),$=n(43),Q=r($),J=n(107),tt=r(J),et=n(108),nt=r(et);i.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":l.AlignClass,"attributors/class/background":y.BackgroundClass,"attributors/class/color":v.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":b.FontClass,"attributors/class/size":g.SizeClass,"attributors/style/align":l.AlignStyle,"attributors/style/background":y.BackgroundStyle,"attributors/style/color":v.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":b.FontStyle,"attributors/style/size":g.SizeStyle},!0),i.default.register({"formats/align":l.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":s.IndentClass,"formats/background":y.BackgroundStyle,"formats/color":v.ColorStyle,"formats/font":b.FontClass,"formats/size":g.SizeClass,"formats/blockquote":c.default,"formats/code-block":R.default,"formats/header":h.default,"formats/list":d.default,"formats/bold":_.default,"formats/code":M.Code,"formats/italic":w.default,"formats/link":k.default,"formats/script":N.default,"formats/strike":A.default,"formats/underline":T.default,"formats/image":S.default,"formats/video":L.default,"formats/list/item":p.ListItem,"modules/formula":B.default,"modules/syntax":U.default,"modules/toolbar":H.default,"themes/bubble":tt.default,"themes/snow":nt.default,"ui/icons":z.default,"ui/picker":Z.default,"ui/icon-picker":X.default,"ui/color-picker":G.default,"ui/tooltip":Q.default},!0),e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),l=n(6),a=r(l),s=n(3),u=r(s),c=n(14),f=r(c),h=n(23),p=r(h),d=n(31),y=r(d),v=n(33),b=r(v),g=n(5),m=r(g),_=n(59),O=r(_),w=n(8),x=r(w),k=n(60),E=r(k),N=n(61),j=r(N),A=n(25),q=r(A);a.default.register({"blots/block":u.default,"blots/block/embed":s.BlockEmbed,"blots/break":f.default,"blots/container":p.default,"blots/cursor":y.default,"blots/embed":b.default,"blots/inline":m.default,"blots/scroll":O.default,"blots/text":x.default,"modules/clipboard":E.default,"modules/history":j.default,"modules/keyboard":q.default}),i.default.register(u.default,f.default,y.default,m.default,O.default,x.default),e.default=a.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();e=n();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){for(var e=0,n=this.head;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(ta?n(r,t-a,Math.min(e,a+u-t)):n(r,0,Math.min(u,t+e-a)),a+=u}},t.prototype.map=function(t){return this.reduce(function(e,n){return e.push(t(n)),e},[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),i=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},a=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver(function(t){n.update(t)}),n.observer.observe(n.domNode,l),n.attach(),n}return r(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach(function(t){t.remove()}):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,o){this.update(),t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var l=[].slice.call(this.observer.takeRecords());l.length>0;)e.push(l.pop());for(var a=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[i.DATA_KEY].mutations&&(t.domNode[i.DATA_KEY].mutations=[]),e&&a(t.parent))},s=function(t){null!=t.domNode[i.DATA_KEY]&&null!=t.domNode[i.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(s),t.optimize(n))},u=e,c=0;u.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach(function(t){var e=i.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(a(i.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,function(t){var e=i.find(t,!1);a(e,!1),e instanceof o.default&&e.children.forEach(function(t){a(t,!1)})})):"attributes"===t.type&&a(e.prev)),a(e))}),this.children.forEach(s),u=[].slice.call(this.observer.takeRecords()),l=u.slice();l.length>0;)e.push(l.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),e=e||this.observer.takeRecords(),e.map(function(t){var e=i.find(t.target,!0);return null==e?null:null==e.domNode[i.DATA_KEY].mutations?(e.domNode[i.DATA_KEY].mutations=[t],e):(e.domNode[i.DATA_KEY].mutations.push(t),null)}).forEach(function(t){null!=t&&t!==r&&null!=t.domNode[i.DATA_KEY]&&t.update(t.domNode[i.DATA_KEY].mutations||[],n)}),null!=this.domNode[i.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[i.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="DIV",e}(o.default);e.default=a},function(t,e,n){"use strict";function r(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),l=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach(function(t){t instanceof i.default||(t=t.wrap(e.blotName,!0)),o.attributes.copy(t)}),this.unwrap())},e.prototype.formatAt=function(e,n,r,o){if(null!=this.formats()[r]||l.query(r,l.Scope.ATTRIBUTE)){this.isolate(e,n).format(r,o)}else t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var o=this.formats();if(0===Object.keys(o).length)return this.unwrap();var i=this.next;i instanceof e&&i.prev===this&&r(o,i.formats())&&(i.moveChildren(this),i.remove())},e.blotName="inline",e.scope=l.Scope.INLINE_BLOT,e.tagName="SPAN",e}(i.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),i=n(1),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){var r=i.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=i.query(n,i.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,o){null!=i.query(r,i.Scope.BLOCK)?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=i.query(n,i.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var o=this.split(e),l=i.create(n,r);o.parent.insertBefore(l,o)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="P",e}(o.default);e.default=l},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,o){0===e&&n===this.length()?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(o.default);e.default=i},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),i=n(1),l=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return r(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e.normalize&&(e=e.normalize()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=i.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some(function(t){return"characterData"===t.type&&t.target===n.domNode})&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=l},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:o.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;ie.length?t:e,l=t.length>e.length?e:t,a=i.indexOf(l);if(-1!=a)return r=[[y,i.substring(0,a)],[v,l],[y,i.substring(a+l.length)]],t.length>e.length&&(r[0][0]=r[2][0]=d),r;if(1==l.length)return[[d,t],[y,e]];var u=s(t,e);if(u){var c=u[0],f=u[1],h=u[2],p=u[3],b=u[4],g=n(c,h),m=n(f,p);return g.concat([[v,b]],m)}return o(t,e)}function o(t,e){for(var n=t.length,r=e.length,o=Math.ceil((n+r)/2),l=o,a=2*o,s=new Array(a),u=new Array(a),c=0;cn)v+=2;else if(x>r)p+=2;else if(h){var k=l+f-_;if(k>=0&&k=E)return i(t,e,O,x)}}}for(var N=-m+b;N<=m-g;N+=2){var E,k=l+N;E=N==-m||N!=m&&u[k-1]n)g+=2;else if(j>r)b+=2;else if(!h){var w=l+f-N;if(w>=0&&w=E)return i(t,e,O,x)}}}}return[[d,t],[y,e]]}function i(t,e,r,o){var i=t.substring(0,r),l=e.substring(0,o),a=t.substring(r),s=e.substring(o),u=n(i,l),c=n(a,s);return u.concat(c)}function l(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,i=0;n=t.length?[r,o,i,s,f]:null}var r=t.length>e.length?t:e,o=t.length>e.length?e:t;if(r.length<4||2*o.lengthu[4].length?s:u:s;var c,f,h,p;return t.length>e.length?(c=i[0],f=i[1],h=i[2],p=i[3]):(h=i[0],p=i[1],c=i[2],f=i[3]),[c,f,h,p,i[4]]}function u(t){t.push([v,""]);for(var e,n=0,r=0,o=0,i="",s="";n1?(0!==r&&0!==o&&(e=l(s,i),0!==e&&(n-r-o>0&&t[n-r-o-1][0]==v?t[n-r-o-1][1]+=s.substring(0,e):(t.splice(0,0,[v,s.substring(0,e)]),n++),s=s.substring(e),i=i.substring(e)),0!==(e=a(s,i))&&(t[n][1]=s.substring(s.length-e)+t[n][1],s=s.substring(0,s.length-e),i=i.substring(0,i.length-e))),0===r?t.splice(n-o,r+o,[y,s]):0===o?t.splice(n-r,r+o,[d,i]):t.splice(n-r-o,r+o,[d,i],[y,s]),n=n-r-o+(r?1:0)+(o?1:0)+1):0!==n&&t[n-1][0]==v?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,o=0,r=0,i="",s=""}""===t[t.length-1][1]&&t.pop();var c=!1;for(n=1;n0&&r.splice(o+2,0,[l[0],a]),p(r,o,3)}return t}function h(t){for(var e=!1,n=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},r=2;r=55296&&t.charCodeAt(t.length-1)<=56319}(t[r-2][1])&&t[r-1][0]===d&&n(t[r-1][1])&&t[r][0]===y&&n(t[r][1])&&(e=!0,t[r-1][1]=t[r-2][1].slice(-1)+t[r-1][1],t[r][1]=t[r-2][1].slice(-1)+t[r][1],t[r-2][1]=t[r-2][1].slice(0,-1));if(!e)return t;for(var o=[],r=0;r0&&o.push(t[r]);return o}function p(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1=r&&!a.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,a);var c=e.scroll.line(t),f=u(c,2),h=f[0],p=f[1],y=(0,T.default)({},(0,O.bubbleFormats)(h));if(h instanceof w.default){var b=h.descendant(v.default.Leaf,p),g=u(b,1),m=g[0];y=(0,T.default)(y,(0,O.bubbleFormats)(m))}l=d.default.attributes.diff(y,l)||{}}else if("object"===s(o.insert)){var _=Object.keys(o.insert)[0];if(null==_)return t;e.scroll.insertAt(t,_,o.insert[_])}r+=i}return Object.keys(l).forEach(function(n){e.scroll.formatAt(t,i,n,l[n])}),t+i},0),t.reduce(function(t,n){return"number"==typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)},0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new h.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach(function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(t,Math.max(e,1)),l=e;i.forEach(function(e){var i=e.length();if(e instanceof g.default){var a=t-e.offset(n.scroll),s=e.newlineIndex(a+l)-a+1;e.formatAt(a,s,o,r[o])}else e.format(o,r[o]);l-=i})}}),this.scroll.optimize(),this.update((new h.default).retain(t).retain(e,(0,N.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach(function(o){n.scroll.formatAt(t,e,o,r[o])}),this.update((new h.default).retain(t).retain(e,(0,N.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(t,e){return t.concat(e.delta())},new h.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach(function(t){var e=u(t,1),o=e[0];o instanceof w.default?n.push(o):o instanceof v.default.Leaf&&r.push(o)}):(n=this.scroll.lines(t,e),r=this.scroll.descendants(v.default.Leaf,t,e));var o=[n,r].map(function(t){if(0===t.length)return{};for(var e=(0,O.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=l((0,O.bubbleFormats)(n),e)}return e});return T.default.apply(T.default,o)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter(function(t){return"string"==typeof t.insert}).map(function(t){return t.insert}).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new h.default).retain(t).insert(o({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach(function(o){n.scroll.formatAt(t,e.length,o,r[o])}),this.update((new h.default).retain(t).insert(e,(0,N.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===w.default.blotName&&(!(t.children.length>1)&&t.children.head instanceof k.default)}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),o=u(r,2),i=o[0],l=o[1],a=0,s=new h.default;null!=i&&(a=i instanceof g.default?i.newlineIndex(l)-l+1:i.length()-l,s=i.delta().slice(l,l+a-1).insert("\n"));var c=this.getContents(t,e+a),f=c.diff((new h.default).insert(n).concat(s)),p=(new h.default).retain(t).concat(f);return this.applyDelta(p)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(P)&&v.default.find(e[0].target)){var o=v.default.find(e[0].target),i=(0,O.bubbleFormats)(o),l=o.offset(this.scroll),a=e[0].oldValue.replace(_.default.CONTENTS,""),s=(new h.default).insert(a),u=(new h.default).insert(o.value());t=(new h.default).retain(l).concat(s.diff(u,n)).reduce(function(t,e){return e.insert?t.insert(e.insert,i):t.push(e)},new h.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,A.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();e.default=S},function(t,e){"use strict";function n(){}function r(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(){this._events=new n,this._eventsCount=0}var i=Object.prototype.hasOwnProperty,l="~";Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(l=!1)),o.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)i.call(t,e)&&n.push(l?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},o.prototype.listeners=function(t,e){var n=l?l+t:t,r=this._events[n];if(e)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o0){if(i instanceof y.BlockEmbed||f instanceof y.BlockEmbed)return void this.optimize();if(i instanceof _.default){var h=i.newlineIndex(i.length(),!0);if(h>-1&&(i=i.split(h+1))===f)return void this.optimize()}else if(f instanceof _.default){var p=f.newlineIndex(0);p>-1&&f.split(p+1)}var d=f.children.head instanceof g.default?null:f.children.head;i.moveChildren(f,d),i.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,o){(null==this.whitelist||this.whitelist[r])&&(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==h.default.query(n,h.default.Scope.BLOCK)){var o=h.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var i=h.default.create(n,r);this.appendChild(i)}else c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===h.default.Scope.INLINE_BLOT){var r=h.default.create(this.statics.defaultChild);r.appendChild(t),t=r}c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(a,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return function t(e,n,r){var o=[],i=r;return e.children.forEachAt(n,r,function(e,n,r){a(e)?o.push(e):e instanceof h.default.Container&&(o=o.concat(t(e,n,i))),i-=r}),o}(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(d.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=d.default.sources.USER;"string"==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(d.default.events.SCROLL_BEFORE_UPDATE,n,t),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(d.default.events.SCROLL_UPDATE,n,t)}}}]),e}(h.default.Scroll);x.blotName="scroll",x.className="ql-editor",x.tagName="DIV",x.defaultChild="block",x.allowedChildren=[v.default,y.BlockEmbed,w.default],e.default=x},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e,n){return"object"===(void 0===e?"undefined":x(e))?Object.keys(e).reduce(function(t,n){return s(t,n,e[n])},t):t.reduce(function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,j.default)({},o({},e,n),r.attributes))},new q.default)}function u(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};return t["__ql-computed-style"]||(t["__ql-computed-style"]=window.getComputedStyle(t))}function c(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length-1}function h(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce(function(e,n){return n(t,e)},new q.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],function(r,o){var i=h(o,e,n);return o.nodeType===t.ELEMENT_NODE&&(i=e.reduce(function(t,e){return e(o,t)},i),i=(o[W]||[]).reduce(function(t,e){return e(o,t)},i)),r.concat(i)},new q.default):new q.default}function p(t,e,n){return s(n,t,!0)}function d(t,e){var n=P.default.Attributor.Attribute.keys(t),r=P.default.Attributor.Class.keys(t),o=P.default.Attributor.Style.keys(t),i={};return n.concat(r).concat(o).forEach(function(e){var n=P.default.query(e,P.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(t),i[n.attrName])||(n=Y[e],null==n||n.attrName!==e&&n.keyName!==e||(i[n.attrName]=n.value(t)||void 0),null==(n=X[e])||n.attrName!==e&&n.keyName!==e||(n=X[e],i[n.attrName]=n.value(t)||void 0))}),Object.keys(i).length>0&&(e=s(e,i)),e}function y(t,e){var n=P.default.query(t);if(null==n)return e;if(n.prototype instanceof P.default.Embed){var r={},o=n.value(t);null!=o&&(r[n.blotName]=o,e=(new q.default).insert(r,n.formats(t)))}else"function"==typeof n.formats&&(e=s(e,n.blotName,n.formats(t)));return e}function v(t,e){return c(e,"\n")||e.insert("\n"),e}function b(){return new q.default}function g(t,e){var n=P.default.query(t);if(null==n||"list-item"!==n.blotName||!c(e,"\n"))return e;for(var r=-1,o=t.parentNode;!o.classList.contains("ql-clipboard");)"list"===(P.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?e:e.compose((new q.default).retain(e.length()-1).retain(1,{indent:r}))}function m(t,e){return c(e,"\n")||(f(t)||e.length()>0&&t.nextSibling&&f(t.nextSibling))&&e.insert("\n"),e}function _(t,e){if(f(t)&&null!=t.nextElementSibling&&!c(e,"\n\n")){var n=t.offsetHeight+parseFloat(u(t).marginTop)+parseFloat(u(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function O(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===u(t).fontStyle&&(n.italic=!0),r.fontWeight&&(u(t).fontWeight.startsWith("bold")||parseInt(u(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=s(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new q.default).insert("\t").concat(e)),e}function w(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!u(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return e=e.replace(/[^\u00a0]/g,""),e.length<1&&t?" ":e};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&f(t.parentNode)||null!=t.previousSibling&&f(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&f(t.parentNode)||null!=t.nextSibling&&f(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),E=function(){function t(t,e){for(var n=0;n\r?\n +\<"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[F.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new q.default).insert(n,o({},F.default.blotName,e[F.default.blotName]))}var r=this.prepareMatching(),i=k(r,2),l=i[0],a=i[1],s=h(this.container,l,a);return c(s,"\n")&&null==s.ops[s.ops.length-1].attributes&&(s=s.compose((new q.default).retain(s.length()-1).delete(1))),Z.log("convert",this.container.innerHTML,s),this.container.innerHTML="",s}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C.default.sources.API;if("string"==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,C.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new q.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),C.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new q.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(C.default.sources.SILENT),setTimeout(function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,C.default.sources.USER),e.quill.setSelection(r.length()-n.length,C.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=o,e.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach(function(r){var o=k(r,2),i=o[0],l=o[1];switch(i){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:e.push(l);break;default:[].forEach.call(t.container.querySelectorAll(i),function(t){t[W]=t[W]||[],t[W].push(l)})}}),[e,n]}}]),e}(I.default);$.DEFAULTS={matchers:[],matchVisual:!0},e.default=$,e.matchAttributor=d,e.matchBlot=y,e.matchNewline=m,e.matchSpacing=_,e.matchText=w},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"==typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some(function(t){return null!=f.default.query(t,f.default.Scope.BLOCK)}))}function s(t){var e=t.reduce(function(t,e){return t+=e.delete||0},0),n=t.length()-e;return a(t)&&(n-=1),n}Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var u=function(){function t(t,e){for(var n=0;nr&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),t=o.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach(function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}),this.stack.redo.forEach(function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(y.default);v.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=v,e.getLastChangeIndex=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var l=function(){function t(t,e){for(var n=0;n0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return o({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,n){if(t instanceof v)u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(t,o)}}},{key:"optimize",value:function(t){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=f.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(y.default);b.blotName="list",b.scope=f.default.Scope.BLOCK_BLOT,b.tagName=["OL","UL"],b.defaultChild="list-item",b.allowedChildren=[v],e.ListItem=v,e.default=b},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(39),a=function(t){return t&&t.__esModule?t:{default:t}}(l),s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),e}(a.default);s.blotName="italic",s.tagName=["EM","I"],e.default=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce(function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e},{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,c.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(u.default.Embed);h.blotName="image",h.tagName="IMG",e.default=h},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce(function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e},{})}},{key:"sanitize",value:function(t){return c.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(s.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",e.default=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var a=function(){function t(t,e){for(var n=0;n0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(v.default);b.className="ql-syntax";var g=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),m=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var l=null;return r.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(l),l=setTimeout(function(){r.highlight(),l=null},r.options.interval)}),r.highlight(),r}return l(e,t),a(e,null,[{key:"register",value:function(){h.default.register(g,!0),h.default.register(b,!0)}}]),a(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(h.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(b).forEach(function(e){e.highlight(t.options.highlight)}),this.quill.update(h.default.sources.SILENT),null!=e&&this.quill.setSelection(e,h.default.sources.SILENT)}}}]),e}(d.default);m.DEFAULTS={highlight:function(){return null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value}}(),interval:1e3},e.CodeBlock=b,e.CodeToken=g,e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+e),null!=n&&(r.value=n),t.appendChild(r)}function u(t,e){Array.isArray(e[0])||(e=[e]),e.forEach(function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach(function(t){if("string"==typeof t)s(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?c(n,e,r):s(n,e,r)}}),t.appendChild(n)})}function c(t,e,n){var r=document.createElement("select");r.classList.add("ql-"+e),n.forEach(function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),r.appendChild(e)}),t.appendChild(r)}Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var f=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function t(t,e){for(var n=0;n '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=function(){function t(t,e){for(var n=0;n0&&o===h.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(e.index,e.length);if(1===i.length)r.position(r.quill.getBounds(e));else{var l=i[i.length-1],a=r.quill.getIndex(l),s=Math.min(l.length()-1,e.index+e.length-a),u=r.quill.getBounds(new y.Range(a,s));r.position(u)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()}),r}return l(e,t),s(e,[{key:"listen",value:function(){var t=this;a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){t.root.classList.remove("ql-editing")}),this.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),e}(p.BaseTooltip);_.TEMPLATE=['','
','','',"
"].join(""),e.BubbleTooltip=_,e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=function(){function t(t,e){for(var n=0;n','','',''].join(""),e.default=w}]).default}); +//# sourceMappingURL=quill.min.js.map \ No newline at end of file diff --git a/unpackage/dist/build/app-plus/__uniappquillimageresize.js b/unpackage/dist/build/app-plus/__uniappquillimageresize.js new file mode 100644 index 0000000..7c788a5 --- /dev/null +++ b/unpackage/dist/build/app-plus/__uniappquillimageresize.js @@ -0,0 +1 @@ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ImageResize=e():t.ImageResize=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=39)}([function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){var o=n(22),r="object"==typeof self&&self&&self.Object===Object&&self,i=o||r||Function("return this")();t.exports=i},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e,n){function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=o}var o=9007199254740991;t.exports=n},function(t,e,n){var o=n(50),r=n(55),i=n(87),u=i&&i.isTypedArray,c=u?r(u):o;t.exports=c},function(t,e,n){function o(t){return u(t)?r(t,!0):i(t)}var r=n(44),i=n(51),u=n(12);t.exports=o},function(t,e,n){"use strict";e.a={modules:["DisplaySize","Toolbar","Resize"]}},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.d(e,"a",function(){return c});var u=n(9),c=function(t){function e(){var t,n,i,u;o(this,e);for(var c=arguments.length,a=Array(c),s=0;s1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),this.initializeModules=function(){n.removeModules(),n.modules=n.moduleClasses.map(function(t){return new(f[t]||t)(n)}),n.modules.forEach(function(t){t.onCreate()}),n.onUpdate()},this.onUpdate=function(){n.repositionElements(),n.modules.forEach(function(t){t.onUpdate()})},this.removeModules=function(){n.modules.forEach(function(t){t.onDestroy()}),n.modules=[]},this.handleClick=function(t){if(t.target&&t.target.tagName&&"IMG"===t.target.tagName.toUpperCase()){if(n.img===t.target)return;n.img&&n.hide(),n.show(t.target)}else n.img&&n.hide()},this.show=function(t){n.img=t,n.showOverlay(),n.initializeModules()},this.showOverlay=function(){n.overlay&&n.hideOverlay(),n.quill.setSelection(null),n.setUserSelect("none"),document.addEventListener("keyup",n.checkImage,!0),n.quill.root.addEventListener("input",n.checkImage,!0),n.overlay=document.createElement("div"),n.overlay.classList.add("ql-image-overlay"),n.quill.root.parentNode.appendChild(n.overlay),n.repositionElements()},this.hideOverlay=function(){n.overlay&&(n.quill.root.parentNode.removeChild(n.overlay),n.overlay=void 0,document.removeEventListener("keyup",n.checkImage),n.quill.root.removeEventListener("input",n.checkImage),n.setUserSelect(""))},this.repositionElements=function(){if(n.overlay&&n.img){var t=n.quill.root.parentNode,e=n.img.getBoundingClientRect(),o=t.getBoundingClientRect();Object.assign(n.overlay.style,{left:e.left-o.left-1+t.scrollLeft+"px",top:e.top-o.top+t.scrollTop+"px",width:e.width+"px",height:e.height+"px"})}},this.hide=function(){n.hideOverlay(),n.removeModules(),n.img=void 0},this.setUserSelect=function(t){["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach(function(e){n.quill.root.style[e]=t,document.documentElement.style[e]=t})},this.checkImage=function(t){n.img&&(46!=t.keyCode&&8!=t.keyCode||window.Quill.find(n.img).deleteAt(0),n.hide())},this.quill=e;var c=!1;r.modules&&(c=r.modules.slice()),this.options=i()({},r,u.a),!1!==c&&(this.options.modules=c),document.execCommand("enableObjectResizing",!1,"false"),this.quill.root.addEventListener("click",this.handleClick,!1),this.quill.root.parentNode.style.position=this.quill.root.parentNode.style.position||"relative",this.moduleClasses=this.options.modules,this.modules=[]};e.default=p,window.Quill&&window.Quill.register("modules/imageResize",p)},function(t,e,n){function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e1?n[r-1]:void 0,c=r>2?n[2]:void 0;for(u=t.length>3&&"function"==typeof u?(r--,u):void 0,c&&i(n[0],n[1],c)&&(u=r<3?void 0:u,r=1),e=Object(e);++o-1}var r=n(4);t.exports=o},function(t,e,n){function o(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}var r=n(4);t.exports=o},function(t,e,n){function o(){this.size=0,this.__data__={hash:new r,map:new(u||i),string:new r}}var r=n(40),i=n(3),u=n(15);t.exports=o},function(t,e,n){function o(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}var r=n(6);t.exports=o},function(t,e,n){function o(t){return r(this,t).get(t)}var r=n(6);t.exports=o},function(t,e,n){function o(t){return r(this,t).has(t)}var r=n(6);t.exports=o},function(t,e,n){function o(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}var r=n(6);t.exports=o},function(t,e){function n(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=n},function(t,e,n){(function(t){var o=n(22),r="object"==typeof e&&e&&!e.nodeType&&e,i=r&&"object"==typeof t&&t&&!t.nodeType&&t,u=i&&i.exports===r,c=u&&o.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||c&&c.binding&&c.binding("util")}catch(t){}}();t.exports=a}).call(e,n(14)(t))},function(t,e){function n(t){return r.call(t)}var o=Object.prototype,r=o.toString;t.exports=n},function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},function(t,e,n){function o(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,u=-1,c=i(o.length-e,0),a=Array(c);++u0){if(++e>=o)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var o=800,r=16,i=Date.now;t.exports=n},function(t,e,n){function o(){this.__data__=new r,this.size=0}var r=n(3);t.exports=o},function(t,e){function n(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}t.exports=n},function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e,n){function o(t,e){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length promise.resolve(callback()).then(() => value), + reason => promise.resolve(callback()).then(() => { + throw reason + }) + ) + } +}; + +if (typeof uni !== 'undefined' && uni && uni.requireGlobal) { + const global = uni.requireGlobal() + ArrayBuffer = global.ArrayBuffer + Int8Array = global.Int8Array + Uint8Array = global.Uint8Array + Uint8ClampedArray = global.Uint8ClampedArray + Int16Array = global.Int16Array + Uint16Array = global.Uint16Array + Int32Array = global.Int32Array + Uint32Array = global.Uint32Array + Float32Array = global.Float32Array + Float64Array = global.Float64Array + BigInt64Array = global.BigInt64Array + BigUint64Array = global.BigUint64Array +}; + + +(()=>{var E=Object.create;var g=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var w=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var y=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var S=(e,a,s,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of D(a))!v.call(e,l)&&l!==s&&g(e,l,{get:()=>a[l],enumerable:!(o=_(a,l))||o.enumerable});return e};var B=(e,a,s)=>(s=e!=null?E(w(e)):{},S(a||!e||!e.__esModule?g(s,"default",{value:e,enumerable:!0}):s,e));var b=y((N,m)=>{m.exports=Vue});var d={data(){return{locale:"en",fallbackLocale:"en",localization:{en:{done:"OK",cancel:"Cancel"},zh:{done:"\u5B8C\u6210",cancel:"\u53D6\u6D88"},"zh-hans":{},"zh-hant":{},messages:{}},localizationTemplate:{}}},onLoad(){this.initLocale()},created(){this.initLocale()},methods:{initLocale(){if(this.__initLocale)return;this.__initLocale=!0;let e=(plus.webview.currentWebview().extras||{}).data||{};if(e.messages&&(this.localization.messages=e.messages),e.locale){this.locale=e.locale.toLowerCase();return}let a={chs:"hans",cn:"hans",sg:"hans",cht:"hant",tw:"hant",hk:"hant",mo:"hant"},s=plus.os.language.toLowerCase().split("/")[0].replace("_","-").split("-"),o=s[1];o&&(s[1]=a[o]||o),s.length=s.length>2?2:s.length,this.locale=s.join("-")},localize(e){let a=this.locale,s=a.split("-")[0],o=this.fallbackLocale,l=n=>Object.assign({},this.localization[n],(this.localizationTemplate||{})[n]);return l("messages")[e]||l(a)[e]||l(s)[e]||l(o)[e]||e}}},p={onLoad(){this.initMessage()},methods:{initMessage(){let{from:e,callback:a,runtime:s,data:o={},useGlobalEvent:l}=plus.webview.currentWebview().extras||{};this.__from=e,this.__runtime=s,this.__page=plus.webview.currentWebview().id,this.__useGlobalEvent=l,this.data=JSON.parse(JSON.stringify(o)),plus.key.addEventListener("backbutton",()=>{typeof this.onClose=="function"?this.onClose():plus.webview.currentWebview().close("auto")});let n=this,r=function(c){let f=c.data&&c.data.__message;!f||n.__onMessageCallback&&n.__onMessageCallback(f.data)};if(this.__useGlobalEvent)weex.requireModule("globalEvent").addEventListener("plusMessage",r);else{let c=new BroadcastChannel(this.__page);c.onmessage=r}},postMessage(e={},a=!1){let s=JSON.parse(JSON.stringify({__message:{__page:this.__page,data:e,keep:a}})),o=this.__from;if(this.__runtime==="v8")this.__useGlobalEvent?plus.webview.postMessageToUniNView(s,o):new BroadcastChannel(o).postMessage(s);else{let l=plus.webview.getWebviewById(o);l&&l.evalJS(`__plusMessage&&__plusMessage(${JSON.stringify({data:s})})`)}},onMessage(e){this.__onMessageCallback=e}}};var i=B(b());var C=(e,a)=>{let s=e.__vccOpts||e;for(let[o,l]of a)s[o]=l;return s};var k={content:{"":{flex:1,alignItems:"center",justifyContent:"center",backgroundColor:"#000000"}},barcode:{"":{position:"absolute",left:0,top:0,right:0,bottom:0,zIndex:1}},"set-flash":{"":{alignItems:"center",justifyContent:"center",transform:"translateY(80px)",zIndex:2}},"image-flash":{"":{width:26,height:26,marginBottom:2}},"image-flash-text":{"":{fontSize:10,color:"#FFFFFF"}}},t=plus.barcode,A={qrCode:[t.QR,t.AZTEC,t.MAXICODE],barCode:[t.EAN13,t.EAN8,t.UPCA,t.UPCE,t.CODABAR,t.CODE128,t.CODE39,t.CODE93,t.ITF,t.RSS14,t.RSSEXPANDED],datamatrix:[t.DATAMATRIX],pdf417:[t.PDF417]},O={[t.QR]:"QR_CODE",[t.EAN13]:"EAN_13",[t.EAN8]:"EAN_8",[t.DATAMATRIX]:"DATA_MATRIX",[t.UPCA]:"UPC_A",[t.UPCE]:"UPC_E",[t.CODABAR]:"CODABAR",[t.CODE39]:"CODE_39",[t.CODE93]:"CODE_93",[t.CODE128]:"CODE_128",[t.ITF]:"CODE_25",[t.PDF417]:"PDF_417",[t.AZTEC]:"AZTEC",[t.RSS14]:"RSS_14",[t.RSSEXPANDED]:"RSSEXPANDED"},M={mixins:[p,d],data:{filters:[0,2,1],backgroud:"#000000",frameColor:"#118ce9",scanbarColor:"#118ce9",enabledFlash:!1,flashImage0:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAABjklEQVRoQ+1ZbVHEQAx9TwE4ABTcOQAknANQAKcAUAAOAAXgAHAACsDCKQiTmbYDzJZtNt2bFrJ/m6+Xl2yyU2LmhzOPH/8PgIjcADirxNyapNoffMwMiMgzgMPBHmyCLySPLCoBwJKtAbJbYaBmD1yRvBwAtBMxl5DF+DZkiwCIyBLAzsgBbki+Wm2WAlCaL6zOMvKnJO+sNksB7ALQbO1ZHfbIv5FUVs2nCIB6EZETALdmj2mFY5I6X8ynGEADQllYmL1+VzBfnV/VvQB0aj45ARyQ/Ci14QLQsOBZLe5JaikWnzEA7AN4L4hgA2Dpyb76dANwsOCq/TZhASAYKGie0a7R1lDPI0ebtF0NUi+4yfdAtxr3PEMnD6BbD0QkNfACQO05EAwMuaBqDrIVycdmTpwDuP4R0OR7QFftVRP0g+49cwOQq4DJMxAAchmofY3m/EcJBQOZbTRKKJeBKKEoIePvpFRJ1VzmciUccyCa+C81cerBkuuB7sGTE/zt+yhN7AnAqxsAvBn06n8CkyPwMZKwm+UAAAAASUVORK5CYII=",flashImage1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUAAAA3kvI3lfY2k/VAl+43k/U3k/Q4k/M3kvI3k/M4k/Q4lPU2lPU2k/Vdq843k/WWSpNKAAAAD3RSTlMAwD+QINCAcPBgUDDgoBAE044kAAAAdklEQVQ4y2OgOrD/DwffUSTkERIfyZXAtOMbca7iVoKDDSgSbAijJqBI8J2HiX9FM2s+TOITmgQrTEIATYIJJuEA5mJ68S+Gg/0hEi0YEoxQK2gs0WyPQyKBGYeEAhPtJRaw45AIccXpwVEJekuwQyQWMFAfAACeDBJY9aXa3QAAAABJRU5ErkJggg==",autoDecodeCharSet:!1,autoZoom:!0,localizationTemplate:{en:{fail:"Recognition failure","flash.on":"Tap to turn light on","flash.off":"Tap to turn light off"},zh:{fail:"\u8BC6\u522B\u5931\u8D25","flash.on":"\u8F7B\u89E6\u7167\u4EAE","flash.off":"\u8F7B\u89E6\u5173\u95ED"}}},onLoad(){let e=this.data,a=e.scanType;this.autoDecodeCharSet=e.autoDecodeCharSet,this.autoZoom=e.autoZoom;let s=[];Array.isArray(a)&&a.length&&a.forEach(o=>{let l=A[o];l&&(s=s.concat(l))}),s.length||(s=s.concat(A.qrCode).concat(A.barCode).concat(A.datamatrix).concat(A.pdf417)),this.filters=s,this.onMessage(o=>{this.gallery()})},onUnload(){this.cancel()},onReady(){setTimeout(()=>{this.cancel(),this.start()},50)},methods:{start(){this.$refs.barcode.start({sound:this.data.sound})},scan(e){t.scan(e,(a,s,o,l)=>{this.scanSuccess(a,s,o,l)},()=>{plus.nativeUI.toast(this.localize("fail"))},this.filters,this.autoDecodeCharSet)},cancel(){this.$refs.barcode.cancel()},gallery(){plus.gallery.pick(e=>{this.scan(e)},e=>{e.code!==(weex.config.env.platform.toLowerCase()==="android"?12:-2)&&plus.nativeUI.toast(this.localize("fail"))},{multiple:!1,system:!1,filename:"_doc/uniapp_temp/gallery/",permissionAlert:!0})},onmarked(e){var a=e.detail;this.scanSuccess(a.code,a.message,a.file,a.charSet)},scanSuccess(e,a,s,o){this.postMessage({event:"marked",detail:{scanType:O[e],result:a,charSet:o||"utf8",path:s||""}})},onerror(e){this.postMessage({event:"fail",message:JSON.stringify(e)})},setFlash(){this.enabledFlash=!this.enabledFlash,this.$refs.barcode.setFlash(this.enabledFlash)}}};function I(e,a,s,o,l,n){return(0,i.openBlock)(),(0,i.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,i.createElementVNode)("view",{class:"content"},[(0,i.createElementVNode)("barcode",{class:"barcode",ref:"barcode",autostart:"false",backgroud:e.backgroud,frameColor:e.frameColor,scanbarColor:e.scanbarColor,filters:e.filters,autoDecodeCharset:e.autoDecodeCharSet,autoZoom:e.autoZoom,onMarked:a[0]||(a[0]=(...r)=>n.onmarked&&n.onmarked(...r)),onError:a[1]||(a[1]=(...r)=>n.onerror&&n.onerror(...r))},null,40,["backgroud","frameColor","scanbarColor","filters","autoDecodeCharset","autoZoom"]),(0,i.createElementVNode)("view",{class:"set-flash",onClick:a[2]||(a[2]=(...r)=>n.setFlash&&n.setFlash(...r))},[(0,i.createElementVNode)("u-image",{class:"image-flash",src:e.enabledFlash?e.flashImage1:e.flashImage0,resize:"stretch"},null,8,["src"]),(0,i.createElementVNode)("u-text",{class:"image-flash-text"},(0,i.toDisplayString)(e.enabledFlash?e.localize("flash.off"):e.localize("flash.on")),1)])])])}var h=C(M,[["render",I],["styles",[k]]]);var u=plus.webview.currentWebview();if(u){let e=parseInt(u.id),a="template/__uniappscan",s={};try{s=JSON.parse(u.__query__)}catch(l){}h.mpType="page";let o=Vue.createPageApp(h,{$store:getApp({allowDefault:!0}).$store,__pageId:e,__pagePath:a,__pageQuery:s});o.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...h.styles||[]])),o.mount("#root")}})(); diff --git a/unpackage/dist/build/app-plus/__uniappsuccess.png b/unpackage/dist/build/app-plus/__uniappsuccess.png new file mode 100644 index 0000000..c1f5bd7 Binary files /dev/null and b/unpackage/dist/build/app-plus/__uniappsuccess.png differ diff --git a/unpackage/dist/build/app-plus/__uniappview.html b/unpackage/dist/build/app-plus/__uniappview.html new file mode 100644 index 0000000..039a684 --- /dev/null +++ b/unpackage/dist/build/app-plus/__uniappview.html @@ -0,0 +1,23 @@ + + + + + View + + + + + +
+ + + + + + diff --git a/unpackage/dist/build/app-plus/app-config-service.js b/unpackage/dist/build/app-plus/app-config-service.js new file mode 100644 index 0000000..c0590e2 --- /dev/null +++ b/unpackage/dist/build/app-plus/app-config-service.js @@ -0,0 +1,11 @@ + + ;(function(){ + let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[]; + const __uniConfig = {"pages":[],"globalStyle":{"navigationBar":{"type":"default","backgroundImage":"linear-gradient(to left , #256FBC, #044D87)"},"isNVue":false},"nvue":{"compiler":"uni-app","styleCompiler":"uni-app","flex-direction":"column"},"renderer":"auto","appname":"数智产销","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"4.15","entryPagePath":"pages/login/login","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"tabBar":{"position":"bottom","color":"#333333","selectedColor":"#01508B","borderStyle":"black","blurEffect":"none","fontSize":"10px","iconWidth":"24px","spacing":"3px","height":"50px","backgroundColor":"#FFFFFF","list":[{"text":"首页","pagePath":"pages/tab/index","iconPath":"/static/tab/index1.png","selectedIconPath":"/static/tab/index2.png"},{"text":"任务","pagePath":"pages/task/todotask","iconPath":"/static/tab/office1.png","selectedIconPath":"/static/tab/office2.png"},{"text":"办公","pagePath":"pages/tab/office","iconPath":"/static/tab/product1.png","selectedIconPath":"/static/tab/product2.png"},{"text":"我的","pagePath":"pages/tab/my","iconPath":"/static/tab/user1.png","selectedIconPath":"/static/tab/user2.png"}],"selectedIndex":0,"shown":true},"locales":{},"darkmode":false,"themeConfig":{}}; + const __uniRoutes = [{"path":"pages/login/login","meta":{"isQuit":true,"isEntry":true,"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/tab/index","meta":{"isQuit":true,"isTabBar":true,"tabBarIndex":0,"enablePullDownRefresh":true,"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/task/todotask","meta":{"isQuit":true,"isTabBar":true,"tabBarIndex":1,"enablePullDownRefresh":true,"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/tab/office","meta":{"isQuit":true,"isTabBar":true,"tabBarIndex":2,"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/tab/my","meta":{"isQuit":true,"isTabBar":true,"tabBarIndex":3,"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/task/index","meta":{"enablePullDownRefresh":true,"navigationBar":{"type":"default","titleText":"我的任务","titleColor":"#fff"},"isNVue":false}},{"path":"pages/task/handle","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/talk/message_list","meta":{"enablePullDownRefresh":true,"navigationBar":{"titleText":"消息","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/talk/conversation","meta":{"enablePullDownRefresh":true,"navigationBar":{"titleText":"昵称","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/talk/system","meta":{"enablePullDownRefresh":true,"navigationBar":{"titleText":"系统通知","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/document/index","meta":{"enablePullDownRefresh":true,"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/document/detail","meta":{"navigationBar":{"titleText":"详情","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/meeting/index","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/meeting/detail","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"详情","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/leave/application","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"请假申请","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/checkin/index","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/useredit/useredit","meta":{"navigationBar":{"titleText":"资料编辑","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/useredit/address","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"地址","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/useredit/add_address","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"添加地址","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/useredit/addressbook","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"通讯录","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/safe/manage","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/product/index","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"生产数据","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/userlist/index","meta":{"navigationBar":{"titleText":"","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/safe/detail","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/zhiban/index","meta":{"navigationBar":{"titleText":"值班信息","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/task/self","meta":{"navigationBar":{"titleText":"本人发起","type":"default","titleColor":"#ffffff"},"isNVue":false}}].map(uniRoute=>(uniRoute.meta.route=uniRoute.path,__uniConfig.pages.push(uniRoute.path),uniRoute.path='/'+uniRoute.path,uniRoute)); + __uniConfig.styles=[];//styles + __uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); + __uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); + service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:16})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:u,window:u,document:u,frames:u,self:u,location:u,navigator:u,localStorage:u,history:u,Caches:u,screen:u,alert:u,confirm:u,prompt:u,fetch:u,XMLHttpRequest:u,WebSocket:u,webkit:u,print:u}}}}); + })(); + \ No newline at end of file diff --git a/unpackage/dist/build/app-plus/app-config.js b/unpackage/dist/build/app-plus/app-config.js new file mode 100644 index 0000000..c5168cc --- /dev/null +++ b/unpackage/dist/build/app-plus/app-config.js @@ -0,0 +1 @@ +(function(){})(); \ No newline at end of file diff --git a/unpackage/dist/build/app-plus/app-service.js b/unpackage/dist/build/app-plus/app-service.js new file mode 100644 index 0000000..3a77d7b --- /dev/null +++ b/unpackage/dist/build/app-plus/app-service.js @@ -0,0 +1,9 @@ +if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((n=>t.resolve(e()).then((()=>n))),(n=>t.resolve(e()).then((()=>{throw n}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e){"use strict";function t(e,t,...n){uni.__log__?uni.__log__(e,t,...n):console[e].apply(console,[...n,t])}function n(e,t){return"string"==typeof e?t:e}const i=t=>(n,i=e.getCurrentInstance())=>{!e.isInSSRComponentSetup&&e.injectHook(t,n,i)},a=i("onShow"),s=i("onLaunch"),r=i("onLoad"),o=i("onReachBottom"),l=i("onPullDownRefresh");let c=!1;function u(e){if(c)return;if(uni.getStorageSync("logintime")&&uni.getStorageSync("logintime")+36e5<=Date.now())return c=!0,t("log","at utils/http.js:11","token超时"),uni.removeStorageSync("logintime"),uni.navigateTo({url:"/pages/login/login"}),void(c=!1);e.url="https://36.112.48.190/jeecg-boot"+e.url;let n=uni.getStorageSync("token")||"";return e.header={"content-type":"application/json;charset=utf-8","X-Access-Token":n},new Promise((function(t,n){uni.request(e).then((e=>{if(wx.hideLoading(),e[0])uni.showToast({title:"数据获取失败",icon:"none",duration:1500}),t(!1);else{let n=e.data;if(t(n),c)return;500==n.code&&uni.showToast({title:n.message,icon:"none",duration:1500}),510==n.code&&(c=!0,uni.showToast({title:n.message,icon:"none",duration:1500}),uni.removeStorageSync("token"),uni.removeStorageSync("user"),uni.removeStorageSync("role"),uni.navigateTo({url:"/pages/login/login"}),uni.removeStorageSync("logintime"),c=!1)}})).catch((e=>{uni.hideLoading(),n(e)}))}))}function d(e){return u({url:"/sys/permission/getUserPermissionByToken",method:"get",data:e})}function h(e){return u({url:"/act/task/list",method:"get",data:e})}function p(e){return u({url:"/act/task/taskHistoryList",method:"get",data:e})}function f(e){return u({url:"/act/task/myApplyProcessList",method:"get",data:e})}function m(e){return u({url:"/cxcoagwfb/cxcOaGwfb/bpmlist",method:"get",data:e})}function g(e){return u({url:"/cxctz/cxcTz/list",method:"get",data:e})}function v(e){return u({url:"/cxcoaflgf/cxcOaFlgf/zslist",method:"get",data:e})}function y(e){return u({url:"/cxcjyglsjzdgl/cxcJyglSjzdgl/zslist",method:"get",data:e})}function w(e){return u({url:"/cxczd/cxcZdgl/list",method:"get",data:e})}function k(e){return u({url:"/process/extActFlowData/getProcessInfo",method:"get",data:e})}function _(e){return u({url:"/act/task/processHistoryList",method:"get",data:e})}function S(e){return u({url:"/act/task/processComplete",method:"post",data:e})}var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function E(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var x,D,T={exports:{}}; +/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */x=T,D=T.exports,function(e){var t=D,n=x&&x.exports==t&&x,i="object"==typeof b&&b;i.global!==i&&i.window!==i||(e=i);var a=function(e){this.message=e};(a.prototype=new Error).name="InvalidCharacterError";var s=function(e){throw new a(e)},r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=/[\t\n\f\r ]/g,l={encode:function(e){e=String(e),/[^\0-\xFF]/.test(e)&&s("The string to be encoded contains characters outside of the Latin1 range.");for(var t,n,i,a,o=e.length%3,l="",c=-1,u=e.length-o;++c>18&63)+r.charAt(a>>12&63)+r.charAt(a>>6&63)+r.charAt(63&a);return 2==o?(t=e.charCodeAt(c)<<8,n=e.charCodeAt(++c),l+=r.charAt((a=t+n)>>10)+r.charAt(a>>4&63)+r.charAt(a<<2&63)+"="):1==o&&(a=e.charCodeAt(c),l+=r.charAt(a>>2)+r.charAt(a<<4&63)+"=="),l},decode:function(e){var t=(e=String(e).replace(o,"")).length;t%4==0&&(t=(e=e.replace(/==?$/,"")).length),(t%4==1||/[^+a-zA-Z0-9/]/.test(e))&&s("Invalid character: the string to be decoded is not correctly encoded.");for(var n,i,a=0,l="",c=-1;++c>(-2*a&6)));return l},version:"1.0.0"};if(t&&!t.nodeType)if(n)n.exports=l;else for(var c in l)l.hasOwnProperty(c)&&(t[c]=l[c]);else e.base64=l}(b);const N=E(T.exports); +/*! + * pinia v2.1.7 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */ +let C;const V=e=>C=e,I=Symbol();function B(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var A,M;(M=A||(A={})).direct="direct",M.patchObject="patch object",M.patchFunction="patch function";const P=()=>{};function R(t,n,i,a=P){t.push(n);const s=()=>{const e=t.indexOf(n);e>-1&&(t.splice(e,1),a())};return!i&&e.getCurrentScope()&&e.onScopeDispose(s),s}function O(e,...t){e.slice().forEach((e=>{e(...t)}))}const L=e=>e();function F(t,n){t instanceof Map&&n instanceof Map&&n.forEach(((e,n)=>t.set(n,e))),t instanceof Set&&n instanceof Set&&n.forEach(t.add,t);for(const i in n){if(!n.hasOwnProperty(i))continue;const a=n[i],s=t[i];B(s)&&B(a)&&t.hasOwnProperty(i)&&!e.isRef(a)&&!e.isReactive(a)?t[i]=F(s,a):t[i]=a}return t}const j=Symbol();const{assign:U}=Object;function $(t,n,i={},a,s,r){let o;const l=U({actions:{}},i),c={deep:!0};let u,d,h,p=[],f=[];const m=a.state.value[t];let g;function v(n){let i;u=d=!1,"function"==typeof n?(n(a.state.value[t]),i={type:A.patchFunction,storeId:t,events:h}):(F(a.state.value[t],n),i={type:A.patchObject,payload:n,storeId:t,events:h});const s=g=Symbol();e.nextTick().then((()=>{g===s&&(u=!0)})),d=!0,O(p,i,a.state.value[t])}r||m||(a.state.value[t]={}),e.ref({});const y=r?function(){const{state:e}=i,t=e?e():{};this.$patch((e=>{U(e,t)}))}:P;function w(e,n){return function(){V(a);const i=Array.from(arguments),s=[],r=[];function o(e){s.push(e)}function l(e){r.push(e)}let c;O(f,{args:i,name:e,store:_,after:o,onError:l});try{c=n.apply(this&&this.$id===t?this:_,i)}catch(u){throw O(r,u),u}return c instanceof Promise?c.then((e=>(O(s,e),e))).catch((e=>(O(r,e),Promise.reject(e)))):(O(s,c),c)}}const k={_p:a,$id:t,$onAction:R.bind(null,f),$patch:v,$reset:y,$subscribe(n,i={}){const s=R(p,n,i.detached,(()=>r())),r=o.run((()=>e.watch((()=>a.state.value[t]),(e=>{("sync"===i.flush?d:u)&&n({storeId:t,type:A.direct,events:h},e)}),U({},c,i))));return s},$dispose:function(){o.stop(),p=[],f=[],a._s.delete(t)}},_=e.reactive(k);a._s.set(t,_);const S=(a._a&&a._a.runWithContext||L)((()=>a._e.run((()=>(o=e.effectScope()).run(n)))));for(const x in S){const n=S[x];if(e.isRef(n)&&(E=n,!e.isRef(E)||!E.effect)||e.isReactive(n))r||(!m||B(b=n)&&b.hasOwnProperty(j)||(e.isRef(n)?n.value=m[x]:F(n,m[x])),a.state.value[t][x]=n);else if("function"==typeof n){const e=w(x,n);S[x]=e,l.actions[x]=n}}var b,E;return U(_,S),U(e.toRaw(_),S),Object.defineProperty(_,"$state",{get:()=>a.state.value[t],set:e=>{v((t=>{U(t,e)}))}}),a._p.forEach((e=>{U(_,o.run((()=>e({store:_,app:a._a,pinia:a,options:l}))))})),m&&r&&i.hydrate&&i.hydrate(_.$state,m),u=!0,d=!0,_}function z(t,n,i){let a,s;const r="function"==typeof n;function o(t,i){const o=e.hasInjectionContext();(t=t||(o?e.inject(I,null):null))&&V(t),(t=C)._s.has(a)||(r?$(a,n,s,t):function(t,n,i,a){const{state:s,actions:r,getters:o}=n,l=i.state.value[t];let c;c=$(t,(function(){l||(i.state.value[t]=s?s():{});const n=e.toRefs(i.state.value[t]);return U(n,r,Object.keys(o||{}).reduce(((n,a)=>(n[a]=e.markRaw(e.computed((()=>{V(i);const e=i._s.get(t);return o[a].call(e,e)}))),n)),{}))}),n,i,0,!0)}(a,s,t));return t._s.get(a)}return"string"==typeof t?(a=t,s=r?i:n):(s=t,a=t.id),o.$id=a,o}const H=z("user",{state:()=>({userinfo:uni.getStorageSync("user")&&JSON.parse(uni.getStorageSync("user"))||{},token:uni.getStorageSync("token")||null,role:uni.getStorageSync("role")||null,allowPage:uni.getStorageSync("allowPage")||null,position:uni.getStorageSync("position")||null,positionSwitch:uni.getStorageSync("positionSwitch")||null,wendu:uni.getStorageSync("wendu")||null,wenduIcon:uni.getStorageSync("wenduIcon")||null,isgray:uni.getStorageSync("isgray")||0}),getters:{},actions:{setUserInfo(e){this.userinfo=e},setToken(e){this.token=e},setRole(e){this.role=e},setPosition(e){this.position=e},setPositionSwitch(e){this.positionSwitch=e},setWeather(e,t){this.wendu=e,this.wenduIcon=t},setAllowPage(e){this.allowPage=e},setIsgray(e){this.isgray=e}}}),q=(e,t)=>{const n=e.__vccOpts||e;for(const[i,a]of t)n[i]=a;return n},K=q({__name:"login",setup(n){const i=H(),{proxy:a}=e.getCurrentInstance(),s=e.ref(!1),o=e.ref(!0),l=e.ref(""),c=e.ref(""),d=()=>{if(!l.value.trim())return a.$toast("请输入账号");if(!c.value.trim())return a.$toast("请输入密码");let e=N.encode(encodeURIComponent(l.value)),n=N.encode(encodeURIComponent(c.value));var s;uni.showLoading({title:"登录中..."}),(s={username:e,password:n,ip:f()},u({url:"/sys/sinopecLogin",method:"post",data:s})).then((e=>{e.success&&(uni.setStorageSync("token",e.result.token),i.setToken(e.result.token),(()=>{let e={un:l.value};o.value&&(e.pw=c.value),uni.setStorageSync("accountObj",JSON.stringify(e))})(),function(e){return u({url:"/appConnet/app/queryRoleByRoleIds",method:"get",data:e})}({roles:e.result.userInfo.roles}).then((t=>{uni.setStorageSync("logintime",Date.now()),uni.setStorageSync("role",t),i.setRole(t),uni.setStorageSync("user",JSON.stringify(e.result.userInfo)),i.setUserInfo(e.result.userInfo),p(),uni.switchTab({url:"/pages/tab/index"})})))})).catch((e=>{t("log","at pages/login/login.vue:136",e)}))};e.ref([]),r((()=>{if(uni.getStorageSync("accountObj")){let e=JSON.parse(uni.getStorageSync("accountObj"));l.value=e.un?e.un:"",c.value=e.pw?e.pw:""}}));const p=()=>{h().then((e=>{e.success&&(e.result.total>0?uni.setTabBarBadge({index:"1",text:e.result.total}):uni.removeTabBarBadge({index:"1"}))}))};function f(){let e;if("Android"==plus.os.name){let s=plus.android.importClass("android.content.Context"),r=plus.android.runtimeMainActivity().getSystemService(s.CONNECTIVITY_SERVICE);plus.android.importClass(r);let o=r.getLinkProperties(r.getActiveNetwork()),l=plus.android.invoke(o,"getLinkAddresses");plus.android.importClass(l);for(var t=0;t>8&255)+"."+(a>>16&255)+"."+(a>>24&255))}}return e}return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(i).isgray})},[e.createElementVNode("view",{class:"logo f-col aic"},[e.createElementVNode("image",{src:"/static/login/logo.png"})]),e.createElementVNode("view",{class:"form f-col aic"},[e.createElementVNode("view",{class:"box f-row aic"},[e.createElementVNode("image",{src:"/static/login/phone.png"}),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=e=>l.value=e),type:"text",placeholder:"请输入统一身份认证","placeholder-style":"font-size: 28rpx;color: #999999;"},null,512),[[e.vModelText,l.value]])]),e.createElementVNode("view",{class:"box f-row aic"},[e.createElementVNode("image",{src:"/static/login/pwd.png"}),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":n[1]||(n[1]=e=>c.value=e),type:s.value?"text":"password",placeholder:"请输入密码","placeholder-style":"font-size: 28rpx;color: #999999;"},null,8,["type"]),[[e.vModelDynamic,c.value]]),s.value?(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/login/eye.png",onClick:n[2]||(n[2]=e=>s.value=!s.value)})):(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/login/eye-off.png",onClick:n[3]||(n[3]=e=>s.value=!s.value)}))])]),e.createElementVNode("view",{class:"pwd f-row aic"},[e.createElementVNode("view",{style:{display:"inline-block"},onClick:n[4]||(n[4]=e=>o.value=!o.value)},[e.createElementVNode("view",{class:"f-row aic"},[o.value?(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/login/checked.png"})):(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/login/nocheck.png"})),e.createElementVNode("text",null,"记住密码")])])]),e.createElementVNode("view",{class:"login f-col aic"},[e.createElementVNode("view",{onClick:d}," 登录 ")])],2))}},[["__scopeId","data-v-6ad77018"]]),J=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}];const W=q({name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""},fontFamily:{type:String,default:""}},data:()=>({icons:J}),computed:{unicode(){let e=this.icons.find((e=>e.font_class===this.type));return e?e.unicode:""},iconSize(){return"number"==typeof(e=this.size)||/^[0-9]*$/g.test(e)?e+"px":e;var e},styleObj(){return""!==this.fontFamily?`color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`:`color: ${this.color}; font-size: ${this.iconSize};`}},methods:{_onClick(){this.$emit("click")}}},[["render",function(t,n,i,a,s,r){return e.openBlock(),e.createElementBlock("text",{style:e.normalizeStyle(r.styleObj),class:e.normalizeClass(["uni-icons",["uniui-"+i.type,i.customPrefix,i.customPrefix?i.type:""]]),onClick:n[0]||(n[0]=(...e)=>r._onClick&&r._onClick(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)}],["__scopeId","data-v-5610c8db"]]);function Y(e,t){return`${G(e)} ${Z(e,t)}`}function G(e){e=ie(e);const t=(e=new Date(e)).getFullYear(),n=e.getMonth()+1,i=e.getDate();return`${t}-${Q(n)}-${Q(i)}`}function Z(e,t){e=ie(e);const n=(e=new Date(e)).getHours(),i=e.getMinutes(),a=e.getSeconds();return t?`${Q(n)}:${Q(i)}`:`${Q(n)}:${Q(i)}:${Q(a)}`}function Q(e){return e<10&&(e=`0${e}`),e}function X(e){return e?"00:00":"00:00:00"}function ee(e,t){return(e=new Date(ie(e)))<=(t=new Date(ie(t)))}function te(e){return e.match(/((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g)}const ne=/^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])( [0-5]?[0-9]:[0-5]?[0-9](:[0-5]?[0-9])?)?$/;function ie(e){return"string"==typeof e&&ne.test(e)&&(e=e.replace(/-/g,"/")),e}const ae=q({props:{weeks:{type:Object,default:()=>({})},calendar:{type:Object,default:()=>({})},selected:{type:Array,default:()=>[]},checkHover:{type:Boolean,default:!1}},methods:{choiceDate(e){this.$emit("change",e)},handleMousemove(e){this.$emit("handleMouse",e)}}},[["render",function(t,n,i,a,s,r){return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-calendar-item__weeks-box",{"uni-calendar-item--disable":i.weeks.disable,"uni-calendar-item--before-checked-x":i.weeks.beforeMultiple,"uni-calendar-item--multiple":i.weeks.multiple,"uni-calendar-item--after-checked-x":i.weeks.afterMultiple}]),onClick:n[0]||(n[0]=e=>r.choiceDate(i.weeks)),onMouseenter:n[1]||(n[1]=e=>r.handleMousemove(i.weeks))},[e.createElementVNode("view",{class:e.normalizeClass(["uni-calendar-item__weeks-box-item",{"uni-calendar-item--checked":i.calendar.fullDate===i.weeks.fullDate&&(i.calendar.userChecked||!i.checkHover),"uni-calendar-item--checked-range-text":i.checkHover,"uni-calendar-item--before-checked":i.weeks.beforeMultiple,"uni-calendar-item--multiple":i.weeks.multiple,"uni-calendar-item--after-checked":i.weeks.afterMultiple,"uni-calendar-item--disable":i.weeks.disable}])},[i.selected&&i.weeks.extraInfo?(e.openBlock(),e.createElementBlock("text",{key:0,class:"uni-calendar-item__weeks-box-circle"})):e.createCommentVNode("",!0),e.createElementVNode("text",{class:"uni-calendar-item__weeks-box-text uni-calendar-item__weeks-box-text-disable uni-calendar-item--checked-text"},e.toDisplayString(i.weeks.date),1)],2),e.createElementVNode("view",{class:e.normalizeClass({"uni-calendar-item--today":i.weeks.isToday})},null,2)],34)}],["__scopeId","data-v-a5fd30c1"]]),se=["{","}"];const re=/^(?:\d)+/,oe=/^(?:\w)+/;const le="zh-Hans",ce="zh-Hant",ue="en",de=Object.prototype.hasOwnProperty,he=(e,t)=>de.call(e,t),pe=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=se){if(!t)return[e];let i=this._caches[e];return i||(i=function(e,[t,n]){const i=[];let a=0,s="";for(;a-1?le:e.indexOf("-hant")>-1?ce:(n=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==n.indexOf(e)))?ce:le);var n;let i=[ue,"fr","es"];t&&Object.keys(t).length>0&&(i=Object.keys(t));const a=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,i);return a||void 0}class me{constructor({locale:e,fallbackLocale:t,messages:n,watcher:i,formater:a}){this.locale=ue,this.fallbackLocale=ue,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=a||pe,this.messages=n||{},this.setLocale(e||ue),i&&this.watchLocale(i)}setLocale(e){const t=this.locale;this.locale=fe(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const i=this.messages[e];i?n?Object.assign(i,t):Object.keys(t).forEach((e=>{he(i,e)||(i[e]=t[e])})):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let i=this.message;return"string"==typeof t?(t=fe(t,this.messages))&&(i=this.messages[t]):n=t,he(i,e)?this.formater.interpolate(i[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function ge(e,t={},n,i){"string"!=typeof e&&([e,t]=[t,e]),"string"!=typeof e&&(e="undefined"!=typeof uni&&uni.getLocale?uni.getLocale():"undefined"!=typeof global&&global.getLocale?global.getLocale():ue),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||ue);const a=new me({locale:e,fallbackLocale:n,messages:t,watcher:i});let s=(e,t)=>{if("function"!=typeof getApp)s=function(e,t){return a.t(e,t)};else{let e=!1;s=function(t,n){const i=getApp().$vm;return i&&(i.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(i,a))),a.t(t,n)}}return s(e,t)};return{i18n:a,f:(e,t,n)=>a.f(e,t,n),t:(e,t)=>s(e,t),add:(e,t,n=!0)=>a.add(e,t,n),watch:e=>a.watchLocale(e),getLocale:()=>a.getLocale(),setLocale:e=>a.setLocale(e)}}const ve={en:{"uni-datetime-picker.selectDate":"select date","uni-datetime-picker.selectTime":"select time","uni-datetime-picker.selectDateTime":"select date and time","uni-datetime-picker.startDate":"start date","uni-datetime-picker.endDate":"end date","uni-datetime-picker.startTime":"start time","uni-datetime-picker.endTime":"end time","uni-datetime-picker.ok":"ok","uni-datetime-picker.clear":"clear","uni-datetime-picker.cancel":"cancel","uni-datetime-picker.year":"-","uni-datetime-picker.month":"","uni-calender.MON":"MON","uni-calender.TUE":"TUE","uni-calender.WED":"WED","uni-calender.THU":"THU","uni-calender.FRI":"FRI","uni-calender.SAT":"SAT","uni-calender.SUN":"SUN","uni-calender.confirm":"confirm"},"zh-Hans":{"uni-datetime-picker.selectDate":"选择日期","uni-datetime-picker.selectTime":"选择时间","uni-datetime-picker.selectDateTime":"选择日期时间","uni-datetime-picker.startDate":"开始日期","uni-datetime-picker.endDate":"结束日期","uni-datetime-picker.startTime":"开始时间","uni-datetime-picker.endTime":"结束时间","uni-datetime-picker.ok":"确定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"确认"},"zh-Hant":{"uni-datetime-picker.selectDate":"選擇日期","uni-datetime-picker.selectTime":"選擇時間","uni-datetime-picker.selectDateTime":"選擇日期時間","uni-datetime-picker.startDate":"開始日期","uni-datetime-picker.endDate":"結束日期","uni-datetime-picker.startTime":"開始时间","uni-datetime-picker.endTime":"結束时间","uni-datetime-picker.ok":"確定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"確認"}},{t:ye}=ge(ve),we={name:"UniDatetimePicker",data:()=>({indicatorStyle:"height: 50px;",visible:!1,fixNvueBug:{},dateShow:!0,timeShow:!0,title:"日期和时间",time:"",year:1920,month:0,day:0,hour:0,minute:0,second:0,startYear:1920,startMonth:1,startDay:1,startHour:0,startMinute:0,startSecond:0,endYear:2120,endMonth:12,endDay:31,endHour:23,endMinute:59,endSecond:59}),options:{virtualHost:!0},props:{type:{type:String,default:"datetime"},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},disabled:{type:[Boolean,String],default:!1},border:{type:[Boolean,String],default:!0},hideSecond:{type:[Boolean,String],default:!1}},watch:{modelValue:{handler(e){e?(this.parseValue(ie(e)),this.initTime(!1)):(this.time="",this.parseValue(Date.now()))},immediate:!0},type:{handler(e){"date"===e?(this.dateShow=!0,this.timeShow=!1,this.title="日期"):"time"===e?(this.dateShow=!1,this.timeShow=!0,this.title="时间"):(this.dateShow=!0,this.timeShow=!0,this.title="日期和时间")},immediate:!0},start:{handler(e){this.parseDatetimeRange(ie(e),"start")},immediate:!0},end:{handler(e){this.parseDatetimeRange(ie(e),"end")},immediate:!0},months(e){this.checkValue("month",this.month,e)},days(e){this.checkValue("day",this.day,e)},hours(e){this.checkValue("hour",this.hour,e)},minutes(e){this.checkValue("minute",this.minute,e)},seconds(e){this.checkValue("second",this.second,e)}},computed:{years(){return this.getCurrentRange("year")},months(){return this.getCurrentRange("month")},days(){return this.getCurrentRange("day")},hours(){return this.getCurrentRange("hour")},minutes(){return this.getCurrentRange("minute")},seconds(){return this.getCurrentRange("second")},ymd(){return[this.year-this.minYear,this.month-this.minMonth,this.day-this.minDay]},hms(){return[this.hour-this.minHour,this.minute-this.minMinute,this.second-this.minSecond]},currentDateIsStart(){return this.year===this.startYear&&this.month===this.startMonth&&this.day===this.startDay},currentDateIsEnd(){return this.year===this.endYear&&this.month===this.endMonth&&this.day===this.endDay},minYear(){return this.startYear},maxYear(){return this.endYear},minMonth(){return this.year===this.startYear?this.startMonth:1},maxMonth(){return this.year===this.endYear?this.endMonth:12},minDay(){return this.year===this.startYear&&this.month===this.startMonth?this.startDay:1},maxDay(){return this.year===this.endYear&&this.month===this.endMonth?this.endDay:this.daysInMonth(this.year,this.month)},minHour(){return"datetime"===this.type?this.currentDateIsStart?this.startHour:0:"time"===this.type?this.startHour:void 0},maxHour(){return"datetime"===this.type?this.currentDateIsEnd?this.endHour:23:"time"===this.type?this.endHour:void 0},minMinute(){return"datetime"===this.type?this.currentDateIsStart&&this.hour===this.startHour?this.startMinute:0:"time"===this.type?this.hour===this.startHour?this.startMinute:0:void 0},maxMinute(){return"datetime"===this.type?this.currentDateIsEnd&&this.hour===this.endHour?this.endMinute:59:"time"===this.type?this.hour===this.endHour?this.endMinute:59:void 0},minSecond(){return"datetime"===this.type?this.currentDateIsStart&&this.hour===this.startHour&&this.minute===this.startMinute?this.startSecond:0:"time"===this.type?this.hour===this.startHour&&this.minute===this.startMinute?this.startSecond:0:void 0},maxSecond(){return"datetime"===this.type?this.currentDateIsEnd&&this.hour===this.endHour&&this.minute===this.endMinute?this.endSecond:59:"time"===this.type?this.hour===this.endHour&&this.minute===this.endMinute?this.endSecond:59:void 0},selectTimeText:()=>ye("uni-datetime-picker.selectTime"),okText:()=>ye("uni-datetime-picker.ok"),clearText:()=>ye("uni-datetime-picker.clear"),cancelText:()=>ye("uni-datetime-picker.cancel")},mounted(){},methods:{lessThanTen:e=>e<10?"0"+e:e,parseTimeType(e){if(e){let t=e.split(":");this.hour=Number(t[0]),this.minute=Number(t[1]),this.second=Number(t[2])}},initPickerValue(e){let t=null;e?t=this.compareValueWithStartAndEnd(e,this.start,this.end):(t=Date.now(),t=this.compareValueWithStartAndEnd(t,this.start,this.end)),this.parseValue(t)},compareValueWithStartAndEnd(e,t,n){let i=null;return e=this.superTimeStamp(e),t=this.superTimeStamp(t),n=this.superTimeStamp(n),i=t&&n?en?new Date(n):new Date(e):t&&!n?t<=e?new Date(e):new Date(t):!t&&n?e<=n?new Date(e):new Date(n):new Date(e),i},superTimeStamp(e){let t="";if("time"===this.type&&e&&"string"==typeof e){const e=new Date;t=e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()+" "}return Number(e)&&(e=parseInt(e),t=0),this.createTimeStamp(t+e)},parseValue(e){if(e){if("time"===this.type&&"string"==typeof e)this.parseTimeType(e);else{let t=null;t=new Date(e),"time"!==this.type&&(this.year=t.getFullYear(),this.month=t.getMonth()+1,this.day=t.getDate()),"date"!==this.type&&(this.hour=t.getHours(),this.minute=t.getMinutes(),this.second=t.getSeconds())}this.hideSecond&&(this.second=0)}},parseDatetimeRange(e,t){if(!e)return"start"===t&&(this.startYear=1920,this.startMonth=1,this.startDay=1,this.startHour=0,this.startMinute=0,this.startSecond=0),void("end"===t&&(this.endYear=2120,this.endMonth=12,this.endDay=31,this.endHour=23,this.endMinute=59,this.endSecond=59));if("time"===this.type){const n=e.split(":");this[t+"Hour"]=Number(n[0]),this[t+"Minute"]=Number(n[1]),this[t+"Second"]=Number(n[2])}else{if(!e)return void("start"===t?this.startYear=this.year-60:this.endYear=this.year+60);Number(e)&&(e=parseInt(e));const n=/[0-9]:[0-9]/;"datetime"!==this.type||"end"!==t||"string"!=typeof e||n.test(e)||(e+=" 23:59:59");const i=new Date(e);this[t+"Year"]=i.getFullYear(),this[t+"Month"]=i.getMonth()+1,this[t+"Day"]=i.getDate(),"datetime"===this.type&&(this[t+"Hour"]=i.getHours(),this[t+"Minute"]=i.getMinutes(),this[t+"Second"]=i.getSeconds())}},getCurrentRange(e){const t=[];for(let n=this["min"+this.capitalize(e)];n<=this["max"+this.capitalize(e)];n++)t.push(n);return t},capitalize:e=>e.charAt(0).toUpperCase()+e.slice(1),checkValue(e,t,n){-1===n.indexOf(t)&&(this[e]=n[0])},daysInMonth:(e,t)=>new Date(e,t,0).getDate(),createTimeStamp(e){if(e)return"number"==typeof e?e:(e=e.replace(/-/g,"/"),"date"===this.type&&(e+=" 00:00:00"),Date.parse(e))},createDomSting(){const e=this.year+"-"+this.lessThanTen(this.month)+"-"+this.lessThanTen(this.day);let t=this.lessThanTen(this.hour)+":"+this.lessThanTen(this.minute);return this.hideSecond||(t=t+":"+this.lessThanTen(this.second)),"date"===this.type?e:"time"===this.type?t:e+" "+t},initTime(e=!0){this.time=this.createDomSting(),e&&("timestamp"===this.returnType&&"time"!==this.type?(this.$emit("change",this.createTimeStamp(this.time)),this.$emit("input",this.createTimeStamp(this.time)),this.$emit("update:modelValue",this.createTimeStamp(this.time))):(this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time)))},bindDateChange(e){const t=e.detail.value;this.year=this.years[t[0]],this.month=this.months[t[1]],this.day=this.days[t[2]]},bindTimeChange(e){const t=e.detail.value;this.hour=this.hours[t[0]],this.minute=this.minutes[t[1]],this.second=this.seconds[t[2]]},initTimePicker(){if(this.disabled)return;const e=ie(this.time);this.initPickerValue(e),this.visible=!this.visible},tiggerTimePicker(e){this.visible=!this.visible},clearTime(){this.time="",this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time),this.tiggerTimePicker()},setTime(){this.initTime(),this.tiggerTimePicker()}}};const ke=q(we,[["render",function(t,n,i,a,s,r){return e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker"},[e.createElementVNode("view",{onClick:n[0]||(n[0]=(...e)=>r.initTimePicker&&r.initTimePicker(...e))},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-datetime-picker-timebox-pointer",{"uni-datetime-picker-disabled":i.disabled,"uni-datetime-picker-timebox":i.border}])},[e.createElementVNode("text",{class:"uni-datetime-picker-text"},e.toDisplayString(s.time),1),s.time?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-datetime-picker-time"},[e.createElementVNode("text",{class:"uni-datetime-picker-text"},e.toDisplayString(r.selectTimeText),1)]))],2)]),!0)]),s.visible?(e.openBlock(),e.createElementBlock("view",{key:0,id:"mask",class:"uni-datetime-picker-mask",onClick:n[1]||(n[1]=(...e)=>r.tiggerTimePicker&&r.tiggerTimePicker(...e))})):e.createCommentVNode("",!0),s.visible?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["uni-datetime-picker-popup",[s.dateShow&&s.timeShow?"":"fix-nvue-height"]]),style:e.normalizeStyle(s.fixNvueBug)},[e.createElementVNode("view",{class:"uni-title"},[e.createElementVNode("text",{class:"uni-datetime-picker-text"},e.toDisplayString(r.selectTimeText),1)]),s.dateShow?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-datetime-picker__container-box"},[e.createElementVNode("picker-view",{class:"uni-datetime-picker-view","indicator-style":s.indicatorStyle,value:r.ymd,onChange:n[2]||(n[2]=(...e)=>r.bindDateChange&&r.bindDateChange(...e))},[e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.years,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:n},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(r.lessThanTen(t)),1)])))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.months,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:n},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(r.lessThanTen(t)),1)])))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.days,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:n},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(r.lessThanTen(t)),1)])))),128))])],40,["indicator-style","value"]),e.createElementVNode("text",{class:"uni-datetime-picker-sign sign-left"},"-"),e.createElementVNode("text",{class:"uni-datetime-picker-sign sign-right"},"-")])):e.createCommentVNode("",!0),s.timeShow?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-datetime-picker__container-box"},[e.createElementVNode("picker-view",{class:e.normalizeClass(["uni-datetime-picker-view",[i.hideSecond?"time-hide-second":""]]),"indicator-style":s.indicatorStyle,value:r.hms,onChange:n[3]||(n[3]=(...e)=>r.bindTimeChange&&r.bindTimeChange(...e))},[e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.hours,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:n},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(r.lessThanTen(t)),1)])))),128))]),e.createElementVNode("picker-view-column",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.minutes,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:n},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(r.lessThanTen(t)),1)])))),128))]),i.hideSecond?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("picker-view-column",{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.seconds,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-datetime-picker-item",key:n},[e.createElementVNode("text",{class:"uni-datetime-picker-item"},e.toDisplayString(r.lessThanTen(t)),1)])))),128))]))],42,["indicator-style","value"]),e.createElementVNode("text",{class:e.normalizeClass(["uni-datetime-picker-sign",[i.hideSecond?"sign-center":"sign-left"]])},":",2),i.hideSecond?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("text",{key:0,class:"uni-datetime-picker-sign sign-right"},":"))])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"uni-datetime-picker-btn"},[e.createElementVNode("view",{onClick:n[4]||(n[4]=(...e)=>r.clearTime&&r.clearTime(...e))},[e.createElementVNode("text",{class:"uni-datetime-picker-btn-text"},e.toDisplayString(r.clearText),1)]),e.createElementVNode("view",{class:"uni-datetime-picker-btn-group"},[e.createElementVNode("view",{class:"uni-datetime-picker-cancel",onClick:n[5]||(n[5]=(...e)=>r.tiggerTimePicker&&r.tiggerTimePicker(...e))},[e.createElementVNode("text",{class:"uni-datetime-picker-btn-text"},e.toDisplayString(r.cancelText),1)]),e.createElementVNode("view",{onClick:n[6]||(n[6]=(...e)=>r.setTime&&r.setTime(...e))},[e.createElementVNode("text",{class:"uni-datetime-picker-btn-text"},e.toDisplayString(r.okText),1)])])])],6)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-8a3925ff"]]),{t:_e}=ge(ve),Se={components:{calendarItem:ae,timePicker:ke},options:{virtualHost:!0},props:{date:{type:String,default:""},defTime:{type:[String,Object],default:""},selectableTimes:{type:[Object],default:()=>({})},selected:{type:Array,default:()=>[]},startDate:{type:String,default:""},endDate:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},range:{type:Boolean,default:!1},hasTime:{type:Boolean,default:!1},insert:{type:Boolean,default:!0},showMonth:{type:Boolean,default:!0},clearDate:{type:Boolean,default:!0},checkHover:{type:Boolean,default:!0},hideSecond:{type:[Boolean],default:!1},pleStatus:{type:Object,default:()=>({before:"",after:"",data:[],fulldate:""})},defaultValue:{type:[String,Object,Array],default:""}},data:()=>({show:!1,weeks:[],calendar:{},nowDate:{},aniMaskShow:!1,firstEnter:!0,time:"",timeRange:{startTime:"",endTime:""},tempSingleDate:"",tempRange:{before:"",after:""}}),watch:{date:{immediate:!0,handler(e){this.range||(this.tempSingleDate=e,setTimeout((()=>{this.init(e)}),100))}},defTime:{immediate:!0,handler(e){this.range?(this.timeRange.startTime=e.start,this.timeRange.endTime=e.end):this.time=e}},startDate(e){this.cale&&(this.cale.setStartDate(e),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks)},endDate(e){this.cale&&(this.cale.setEndDate(e),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks)},selected(e){this.cale&&(this.cale.setSelectInfo(this.nowDate.fullDate,e),this.weeks=this.cale.weeks)},pleStatus:{immediate:!0,handler(e){const{before:t,after:n,fulldate:i,which:a}=e;this.tempRange.before=t,this.tempRange.after=n,setTimeout((()=>{if(i)if(this.cale.setHoverMultiple(i),t&&n){if(this.cale.lastHover=!0,this.rangeWithinMonth(n,t))return;this.setDate(t)}else this.cale.setMultiple(i),this.setDate(this.nowDate.fullDate),this.calendar.fullDate="",this.cale.lastHover=!1;else{if(!this.cale)return;this.cale.setDefaultMultiple(t,n),"left"===a&&t?(this.setDate(t),this.weeks=this.cale.weeks):n&&(this.setDate(n),this.weeks=this.cale.weeks),this.cale.lastHover=!0}}),16)}}},computed:{timepickerStartTime(){return(this.range?this.tempRange.before:this.calendar.fullDate)===this.startDate?this.selectableTimes.start:""},timepickerEndTime(){return(this.range?this.tempRange.after:this.calendar.fullDate)===this.endDate?this.selectableTimes.end:""},selectDateText:()=>_e("uni-datetime-picker.selectDate"),startDateText(){return this.startPlaceholder||_e("uni-datetime-picker.startDate")},endDateText(){return this.endPlaceholder||_e("uni-datetime-picker.endDate")},okText:()=>_e("uni-datetime-picker.ok"),yearText:()=>_e("uni-datetime-picker.year"),monthText:()=>_e("uni-datetime-picker.month"),MONText:()=>_e("uni-calender.MON"),TUEText:()=>_e("uni-calender.TUE"),WEDText:()=>_e("uni-calender.WED"),THUText:()=>_e("uni-calender.THU"),FRIText:()=>_e("uni-calender.FRI"),SATText:()=>_e("uni-calender.SAT"),SUNText:()=>_e("uni-calender.SUN"),confirmText:()=>_e("uni-calender.confirm")},created(){this.cale=new class{constructor({selected:e,startDate:t,endDate:n,range:i}={}){this.date=this.getDateObj(new Date),this.selected=e||[],this.startDate=t,this.endDate=n,this.range=i,this.cleanMultipleStatus(),this.weeks={},this.lastHover=!1}setDate(e){const t=this.getDateObj(e);this.getWeeks(t.fullDate)}cleanMultipleStatus(){this.multipleStatus={before:"",after:"",data:[]}}setStartDate(e){this.startDate=e}setEndDate(e){this.endDate=e}getPreMonthObj(e){e=ie(e);const t=(e=new Date(e)).getMonth();e.setMonth(t-1);const n=e.getMonth();return 0!==t&&n-t==0&&e.setMonth(n-1),this.getDateObj(e)}getNextMonthObj(e){e=ie(e);const t=(e=new Date(e)).getMonth();e.setMonth(t+1);const n=e.getMonth();return n-t>1&&e.setMonth(n-1),this.getDateObj(e)}getDateObj(e){return e=ie(e),{fullDate:G(e=new Date(e)),year:e.getFullYear(),month:Q(e.getMonth()+1),date:Q(e.getDate()),day:e.getDay()}}getPreMonthDays(e,t){const n=[];for(let i=e-1;i>=0;i--){const e=t.month-1;n.push({date:new Date(t.year,e,-i).getDate(),month:e,disable:!0})}return n}getCurrentMonthDays(e,t){const n=[],i=this.date.fullDate;for(let a=1;a<=e;a++){const e=`${t.year}-${t.month}-${Q(a)}`,s=i===e,r=this.selected&&this.selected.find((t=>{if(this.dateEqual(e,t.date))return t}));this.startDate&&ee(this.startDate,e),this.endDate&&ee(e,this.endDate);let o=this.multipleStatus.data,l=-1;this.range&&o&&(l=o.findIndex((t=>this.dateEqual(t,e))));const c=-1!==l;n.push({fullDate:e,year:t.year,date:a,multiple:!!this.range&&c,beforeMultiple:this.isLogicBefore(e,this.multipleStatus.before,this.multipleStatus.after),afterMultiple:this.isLogicAfter(e,this.multipleStatus.before,this.multipleStatus.after),month:t.month,disable:this.startDate&&!ee(this.startDate,e)||this.endDate&&!ee(e,this.endDate),isToday:s,userChecked:!1,extraInfo:r})}return n}_getNextMonthDays(e,t){const n=[],i=t.month+1;for(let a=1;a<=e;a++)n.push({date:a,month:i,disable:!0});return n}getInfo(e){return e||(e=new Date),this.calendar.find((t=>t.fullDate===this.getDateObj(e).fullDate))}dateEqual(e,t){return e=new Date(ie(e)),t=new Date(ie(t)),e.valueOf()===t.valueOf()}isLogicBefore(e,t,n){let i=t;return t&&n&&(i=ee(t,n)?t:n),this.dateEqual(i,e)}isLogicAfter(e,t,n){let i=n;return t&&n&&(i=ee(t,n)?n:t),this.dateEqual(i,e)}geDateAll(e,t){var n=[],i=e.split("-"),a=t.split("-"),s=new Date;s.setFullYear(i[0],i[1]-1,i[2]);var r=new Date;r.setFullYear(a[0],a[1]-1,a[2]);for(var o=s.getTime()-864e5,l=r.getTime()-864e5,c=o;c<=l;)c+=864e5,n.push(this.getDateObj(new Date(parseInt(c))).fullDate);return n}setMultiple(e){if(!this.range)return;let{before:t,after:n}=this.multipleStatus;if(t&&n){if(!this.lastHover)return void(this.lastHover=!0);this.multipleStatus.before=e,this.multipleStatus.after="",this.multipleStatus.data=[],this.multipleStatus.fulldate="",this.lastHover=!1}else t?(this.multipleStatus.after=e,ee(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before),this.lastHover=!0):(this.multipleStatus.before=e,this.multipleStatus.after=void 0,this.lastHover=!1);this.getWeeks(e)}setHoverMultiple(e){if(!this.range||this.lastHover)return;const{before:t}=this.multipleStatus;t?(this.multipleStatus.after=e,ee(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before)):this.multipleStatus.before=e,this.getWeeks(e)}setDefaultMultiple(e,t){this.multipleStatus.before=e,this.multipleStatus.after=t,e&&t&&(ee(e,t)?(this.multipleStatus.data=this.geDateAll(e,t),this.getWeeks(t)):(this.multipleStatus.data=this.geDateAll(t,e),this.getWeeks(e)))}getWeeks(e){const{year:t,month:n}=this.getDateObj(e),i=new Date(t,n-1,1).getDay(),a=this.getPreMonthDays(i,this.getDateObj(e)),s=new Date(t,n,0).getDate(),r=42-i-s,o=[...a,...this.getCurrentMonthDays(s,this.getDateObj(e)),...this._getNextMonthDays(r,this.getDateObj(e))],l=new Array(6);for(let c=0;c{setTimeout((()=>{this.aniMaskShow=!0}),50)}))},close(){this.aniMaskShow=!1,this.$nextTick((()=>{setTimeout((()=>{this.show=!1,this.$emit("close")}),300)}))},confirm(){this.setEmit("confirm"),this.close()},change(e){(this.insert||e)&&this.setEmit("change")},monthSwitch(){let{year:e,month:t}=this.nowDate;this.$emit("monthSwitch",{year:e,month:Number(t)})},setEmit(e){this.range||(this.calendar.fullDate||(this.calendar=this.cale.getInfo(new Date),this.tempSingleDate=this.calendar.fullDate),this.hasTime&&!this.time&&(this.time=Z(new Date,this.hideSecond)));let{year:t,month:n,date:i,fullDate:a,extraInfo:s}=this.calendar;this.$emit(e,{range:this.cale.multipleStatus,year:t,month:n,date:i,time:this.time,timeRange:this.timeRange,fulldate:a,extraInfo:s||{}})},choiceDate(e){if(e.disable)return;this.calendar=e,this.calendar.userChecked=!0,this.cale.setMultiple(this.calendar.fullDate,!0),this.weeks=this.cale.weeks,this.tempSingleDate=this.calendar.fullDate;const t=new Date(this.cale.multipleStatus.before).getTime(),n=new Date(this.cale.multipleStatus.after).getTime();t>n&&n?(this.tempRange.before=this.cale.multipleStatus.after,this.tempRange.after=this.cale.multipleStatus.before):(this.tempRange.before=this.cale.multipleStatus.before,this.tempRange.after=this.cale.multipleStatus.after),this.change(!0)},changeMonth(e){let t;"pre"===e?t=this.cale.getPreMonthObj(this.nowDate.fullDate).fullDate:"next"===e&&(t=this.cale.getNextMonthObj(this.nowDate.fullDate).fullDate),this.setDate(t),this.monthSwitch()},setDate(e){this.cale.setDate(e),this.weeks=this.cale.weeks,this.nowDate=this.cale.getInfo(e)}}};const be={name:"UniDatetimePicker",options:{virtualHost:!0},components:{Calendar:q(Se,[["render",function(t,i,a,s,r,o){const l=e.resolveComponent("calendar-item"),c=e.resolveComponent("time-picker"),u=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:"uni-calendar",onMouseleave:i[8]||(i[8]=(...e)=>o.leaveCale&&o.leaveCale(...e))},[!a.insert&&r.show?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-calendar__mask",{"uni-calendar--mask-show":r.aniMaskShow}]),onClick:i[0]||(i[0]=(...e)=>o.maskClick&&o.maskClick(...e))},null,2)):e.createCommentVNode("",!0),a.insert||r.show?(e.openBlock(),e.createElementBlock("view",{key:1,class:e.normalizeClass(["uni-calendar__content",{"uni-calendar--fixed":!a.insert,"uni-calendar--ani-show":r.aniMaskShow,"uni-calendar__content-mobile":r.aniMaskShow}])},[e.createElementVNode("view",{class:e.normalizeClass(["uni-calendar__header",{"uni-calendar__header-mobile":!a.insert}])},[e.createElementVNode("view",{class:"uni-calendar__header-btn-box",onClick:i[1]||(i[1]=e.withModifiers((e=>o.changeMonth("pre")),["stop"]))},[e.createElementVNode("view",{class:"uni-calendar__header-btn uni-calendar--left"})]),e.createElementVNode("picker",{mode:"date",value:a.date,fields:"month",onChange:i[2]||(i[2]=(...e)=>o.bindDateChange&&o.bindDateChange(...e))},[e.createElementVNode("text",{class:"uni-calendar__header-text"},e.toDisplayString((r.nowDate.year||"")+o.yearText+(r.nowDate.month||"")+o.monthText),1)],40,["value"]),e.createElementVNode("view",{class:"uni-calendar__header-btn-box",onClick:i[3]||(i[3]=e.withModifiers((e=>o.changeMonth("next")),["stop"]))},[e.createElementVNode("view",{class:"uni-calendar__header-btn uni-calendar--right"})]),a.insert?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"dialog-close",onClick:i[4]||(i[4]=(...e)=>o.maskClick&&o.maskClick(...e))},[e.createElementVNode("view",{class:"dialog-close-plus","data-id":"close"}),e.createElementVNode("view",{class:"dialog-close-plus dialog-close-rotate","data-id":"close"})]))],2),e.createElementVNode("view",{class:"uni-calendar__box"},[a.showMonth?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-calendar__box-bg"},[e.createElementVNode("text",{class:"uni-calendar__box-bg-text"},e.toDisplayString(r.nowDate.month),1)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"uni-calendar__weeks",style:{"padding-bottom":"7px"}},[e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(o.SUNText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(o.MONText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(o.TUEText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(o.WEDText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(o.THUText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(o.FRIText),1)]),e.createElementVNode("view",{class:"uni-calendar__weeks-day"},[e.createElementVNode("text",{class:"uni-calendar__weeks-day-text"},e.toDisplayString(o.SATText),1)])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.weeks,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-calendar__weeks",key:n},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-calendar__weeks-item",key:n},[e.createVNode(l,{class:"uni-calendar-item--hook",weeks:t,calendar:r.calendar,selected:a.selected,checkHover:a.range,onChange:o.choiceDate,onHandleMouse:o.handleMouse},null,8,["weeks","calendar","selected","checkHover","onChange","onHandleMouse"])])))),128))])))),128))]),a.insert||a.range||!a.hasTime?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-changed uni-calendar--fixed-top",style:{padding:"0 80px"}},[e.createElementVNode("view",{class:"uni-date-changed--time-date"},e.toDisplayString(r.tempSingleDate?r.tempSingleDate:o.selectDateText),1),e.createVNode(c,{type:"time",start:o.timepickerStartTime,end:o.timepickerEndTime,modelValue:r.time,"onUpdate:modelValue":i[5]||(i[5]=e=>r.time=e),disabled:!r.tempSingleDate,border:!1,"hide-second":a.hideSecond,class:"time-picker-style"},null,8,["start","end","modelValue","disabled","hide-second"])])),!a.insert&&a.range&&a.hasTime?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-date-changed uni-calendar--fixed-top"},[e.createElementVNode("view",{class:"uni-date-changed--time-start"},[e.createElementVNode("view",{class:"uni-date-changed--time-date"},e.toDisplayString(r.tempRange.before?r.tempRange.before:o.startDateText),1),e.createVNode(c,{type:"time",start:o.timepickerStartTime,modelValue:r.timeRange.startTime,"onUpdate:modelValue":i[6]||(i[6]=e=>r.timeRange.startTime=e),border:!1,"hide-second":a.hideSecond,disabled:!r.tempRange.before,class:"time-picker-style"},null,8,["start","modelValue","hide-second","disabled"])]),e.createElementVNode("view",{style:{"line-height":"50px"}},[e.createVNode(u,{type:"arrowthinright",color:"#999"})]),e.createElementVNode("view",{class:"uni-date-changed--time-end"},[e.createElementVNode("view",{class:"uni-date-changed--time-date"},e.toDisplayString(r.tempRange.after?r.tempRange.after:o.endDateText),1),e.createVNode(c,{type:"time",end:o.timepickerEndTime,modelValue:r.timeRange.endTime,"onUpdate:modelValue":i[7]||(i[7]=e=>r.timeRange.endTime=e),border:!1,"hide-second":a.hideSecond,disabled:!r.tempRange.after,class:"time-picker-style"},null,8,["end","modelValue","hide-second","disabled"])])])):e.createCommentVNode("",!0),a.insert?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:2,class:"uni-date-changed uni-date-btn--ok"}))],2)):e.createCommentVNode("",!0)],32)}],["__scopeId","data-v-8dc4a3ee"]]),TimePicker:ke},data:()=>({isRange:!1,hasTime:!1,displayValue:"",inputDate:"",calendarDate:"",pickerTime:"",calendarRange:{startDate:"",startTime:"",endDate:"",endTime:""},displayRangeValue:{startDate:"",endDate:""},tempRange:{startDate:"",startTime:"",endDate:"",endTime:""},startMultipleStatus:{before:"",after:"",data:[],fulldate:""},endMultipleStatus:{before:"",after:"",data:[],fulldate:""},pickerVisible:!1,pickerPositionStyle:null,isEmitValue:!1,isPhone:!1,isFirstShow:!0,i18nT:()=>{}}),props:{type:{type:String,default:"datetime"},value:{type:[String,Number,Array,Date],default:""},modelValue:{type:[String,Number,Array,Date],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},placeholder:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},rangeSeparator:{type:String,default:"-"},border:{type:[Boolean],default:!0},disabled:{type:[Boolean],default:!1},clearIcon:{type:[Boolean],default:!0},hideSecond:{type:[Boolean],default:!1},defaultValue:{type:[String,Object,Array],default:""}},watch:{type:{immediate:!0,handler(e){this.hasTime=-1!==e.indexOf("time"),this.isRange=-1!==e.indexOf("range")}},modelValue:{immediate:!0,handler(e){this.isEmitValue?this.isEmitValue=!1:this.initPicker(e)}},start:{immediate:!0,handler(e){e&&(this.calendarRange.startDate=G(e),this.hasTime&&(this.calendarRange.startTime=Z(e)))}},end:{immediate:!0,handler(e){e&&(this.calendarRange.endDate=G(e),this.hasTime&&(this.calendarRange.endTime=Z(e,this.hideSecond)))}}},computed:{timepickerStartTime(){return(this.isRange?this.tempRange.startDate:this.inputDate)===this.calendarRange.startDate?this.calendarRange.startTime:""},timepickerEndTime(){return(this.isRange?this.tempRange.endDate:this.inputDate)===this.calendarRange.endDate?this.calendarRange.endTime:""},mobileCalendarTime(){const e={start:this.tempRange.startTime,end:this.tempRange.endTime};return this.isRange?e:this.pickerTime},mobSelectableTime(){return{start:this.calendarRange.startTime,end:this.calendarRange.endTime}},datePopupWidth(){return this.isRange?653:301},singlePlaceholderText(){return this.placeholder||("date"===this.type?this.selectDateText:this.selectDateTimeText)},startPlaceholderText(){return this.startPlaceholder||this.startDateText},endPlaceholderText(){return this.endPlaceholder||this.endDateText},selectDateText(){return this.i18nT("uni-datetime-picker.selectDate")},selectDateTimeText(){return this.i18nT("uni-datetime-picker.selectDateTime")},selectTimeText(){return this.i18nT("uni-datetime-picker.selectTime")},startDateText(){return this.startPlaceholder||this.i18nT("uni-datetime-picker.startDate")},startTimeText(){return this.i18nT("uni-datetime-picker.startTime")},endDateText(){return this.endPlaceholder||this.i18nT("uni-datetime-picker.endDate")},endTimeText(){return this.i18nT("uni-datetime-picker.endTime")},okText(){return this.i18nT("uni-datetime-picker.ok")},clearText(){return this.i18nT("uni-datetime-picker.clear")},showClearIcon(){return this.clearIcon&&!this.disabled&&(this.displayValue||this.displayRangeValue.startDate&&this.displayRangeValue.endDate)}},created(){this.initI18nT(),this.platform()},methods:{initI18nT(){const e=ge(ve);this.i18nT=e.t},initPicker(e){if(!e&&!this.defaultValue||Array.isArray(e)&&!e.length)this.$nextTick((()=>{this.clear(!1)}));else if(Array.isArray(e)||this.isRange){const[t,n]=e;if(!t&&!n)return;const i=G(t),a=Z(t,this.hideSecond),s=G(n),r=Z(n,this.hideSecond),o=i,l=s;this.displayRangeValue.startDate=this.tempRange.startDate=o,this.displayRangeValue.endDate=this.tempRange.endDate=l,this.hasTime&&(this.displayRangeValue.startDate=`${i} ${a}`,this.displayRangeValue.endDate=`${s} ${r}`,this.tempRange.startTime=a,this.tempRange.endTime=r);const c={before:i,after:s};this.startMultipleStatus=Object.assign({},this.startMultipleStatus,c,{which:"right"}),this.endMultipleStatus=Object.assign({},this.endMultipleStatus,c,{which:"left"})}else e?(this.displayValue=this.inputDate=this.calendarDate=G(e),this.hasTime&&(this.pickerTime=Z(e,this.hideSecond),this.displayValue=`${this.displayValue} ${this.pickerTime}`)):this.defaultValue&&(this.inputDate=this.calendarDate=G(this.defaultValue),this.hasTime&&(this.pickerTime=Z(this.defaultValue,this.hideSecond)))},updateLeftCale(e){const t=this.$refs.left;t.cale.setHoverMultiple(e.after),t.setDate(this.$refs.left.nowDate.fullDate)},updateRightCale(e){const t=this.$refs.right;t.cale.setHoverMultiple(e.after),t.setDate(this.$refs.right.nowDate.fullDate)},platform(){if("undefined"!=typeof navigator)return void(this.isPhone=-1!==navigator.userAgent.toLowerCase().indexOf("mobile"));const{windowWidth:e}=uni.getSystemInfoSync();this.isPhone=e<=500,this.windowWidth=e},show(){if(this.$emit("show"),this.disabled)return;if(this.platform(),this.isPhone)return void setTimeout((()=>{this.$refs.mobile.open()}),0);this.pickerPositionStyle={top:"10px"};uni.createSelectorQuery().in(this).select(".uni-date-editor").boundingClientRect((e=>{this.windowWidth-e.left{if(this.pickerVisible=!this.pickerVisible,!this.isPhone&&this.isRange&&this.isFirstShow){this.isFirstShow=!1;const{startDate:e,endDate:t}=this.calendarRange;e&&t?this.diffDate(e,t)<30&&this.$refs.right.changeMonth("pre"):this.isPhone&&(this.$refs.right.cale.lastHover=!1)}}),50)},close(){setTimeout((()=>{this.pickerVisible=!1,this.$emit("maskClick",this.value),this.$refs.mobile&&this.$refs.mobile.close()}),20)},setEmit(e){"timestamp"!==this.returnType&&"date"!==this.returnType||(Array.isArray(e)?(this.hasTime||(e[0]=e[0]+" 00:00:00",e[1]=e[1]+" 00:00:00"),e[0]=this.createTimestamp(e[0]),e[1]=this.createTimestamp(e[1]),"date"===this.returnType&&(e[0]=new Date(e[0]),e[1]=new Date(e[1]))):(this.hasTime||(e+=" 00:00:00"),e=this.createTimestamp(e),"date"===this.returnType&&(e=new Date(e)))),this.$emit("update:modelValue",e),this.$emit("input",e),this.$emit("change",e),this.isEmitValue=!0},createTimestamp:e=>(e=ie(e),Date.parse(new Date(e))),singleChange(e){this.calendarDate=this.inputDate=e.fulldate,this.hasTime||this.confirmSingleChange()},confirmSingleChange(){if(!te(this.inputDate)){const e=new Date;this.calendarDate=this.inputDate=G(e),this.pickerTime=Z(e,this.hideSecond)}let e,t,n=!1;if(this.start){let i=this.start;"number"==typeof this.start&&(i=Y(this.start,this.hideSecond)),[e,t]=i.split(" "),this.start&&!ee(e,this.inputDate)&&(n=!0,this.inputDate=e)}let i,a,s=!1;if(this.end){let e=this.end;"number"==typeof this.end&&(e=Y(this.end,this.hideSecond)),[i,a]=e.split(" "),this.end&&!ee(this.inputDate,i)&&(s=!0,this.inputDate=i)}this.hasTime?(n&&(this.pickerTime=t||X(this.hideSecond)),s&&(this.pickerTime=a||X(this.hideSecond)),this.pickerTime||(this.pickerTime=Z(Date.now(),this.hideSecond)),this.displayValue=`${this.inputDate} ${this.pickerTime}`):this.displayValue=this.inputDate,this.setEmit(this.displayValue),this.pickerVisible=!1},leftChange(e){const{before:t,after:n}=e.range;this.rangeChange(t,n);const i={before:e.range.before,after:e.range.after,data:e.range.data,fulldate:e.fulldate};this.startMultipleStatus=Object.assign({},this.startMultipleStatus,i),this.$emit("calendarClick",e)},rightChange(e){const{before:t,after:n}=e.range;this.rangeChange(t,n);const i={before:e.range.before,after:e.range.after,data:e.range.data,fulldate:e.fulldate};this.endMultipleStatus=Object.assign({},this.endMultipleStatus,i),this.$emit("calendarClick",e)},mobileChange(e){if(this.isRange){const{before:t,after:n}=e.range;if(!t)return;if(this.handleStartAndEnd(t,n,!0),this.hasTime){const{startTime:t,endTime:n}=e.timeRange;this.tempRange.startTime=t,this.tempRange.endTime=n}this.confirmRangeChange()}else this.hasTime?this.displayValue=e.fulldate+" "+e.time:this.displayValue=e.fulldate,this.setEmit(this.displayValue);this.$refs.mobile.close()},rangeChange(e,t){e&&t&&(this.handleStartAndEnd(e,t,!0),this.hasTime||this.confirmRangeChange())},confirmRangeChange(){if(!this.tempRange.startDate||!this.tempRange.endDate)return void(this.pickerVisible=!1);let e,t;te(this.tempRange.startDate)||(this.tempRange.startDate=G(Date.now())),te(this.tempRange.endDate)||(this.tempRange.endDate=G(Date.now()));let n,i,a=!1,s=!1;if(this.start){let e=this.start;"number"==typeof this.start&&(e=Y(this.start,this.hideSecond)),[n,i]=e.split(" "),this.start&&!ee(this.start,this.tempRange.startDate)&&(a=!0,this.tempRange.startDate=n),this.start&&!ee(this.start,this.tempRange.endDate)&&(s=!0,this.tempRange.endDate=n)}let r,o,l=!1,c=!1;if(this.end){let e=this.end;"number"==typeof this.end&&(e=Y(this.end,this.hideSecond)),[r,o]=e.split(" "),this.end&&!ee(this.tempRange.startDate,this.end)&&(l=!0,this.tempRange.startDate=r),this.end&&!ee(this.tempRange.endDate,this.end)&&(c=!0,this.tempRange.endDate=r)}this.hasTime?(a?this.tempRange.startTime=i||X(this.hideSecond):l&&(this.tempRange.startTime=o||X(this.hideSecond)),this.tempRange.startTime||(this.tempRange.startTime=Z(Date.now(),this.hideSecond)),s?this.tempRange.endTime=i||X(this.hideSecond):c&&(this.tempRange.endTime=o||X(this.hideSecond)),this.tempRange.endTime||(this.tempRange.endTime=Z(Date.now(),this.hideSecond)),e=this.displayRangeValue.startDate=`${this.tempRange.startDate} ${this.tempRange.startTime}`,t=this.displayRangeValue.endDate=`${this.tempRange.endDate} ${this.tempRange.endTime}`):(e=this.displayRangeValue.startDate=this.tempRange.startDate,t=this.displayRangeValue.endDate=this.tempRange.endDate),ee(e,t)||([e,t]=[t,e]),this.displayRangeValue.startDate=e,this.displayRangeValue.endDate=t;const u=[e,t];this.setEmit(u),this.pickerVisible=!1},handleStartAndEnd(e,t,n=!1){if(!e)return;t||(t=e);const i=n?"tempRange":"range",a=ee(e,t);this[i].startDate=a?e:t,this[i].endDate=a?t:e},dateCompare:(e,t)=>(e=new Date(e.replace("-","/").replace("-","/")))<=(t=new Date(t.replace("-","/").replace("-","/"))),diffDate(e,t){e=new Date(e.replace("-","/").replace("-","/"));const n=((t=new Date(t.replace("-","/").replace("-","/")))-e)/864e5;return Math.abs(n)},clear(e=!0){this.isRange?(this.displayRangeValue.startDate="",this.displayRangeValue.endDate="",this.tempRange.startDate="",this.tempRange.startTime="",this.tempRange.endDate="",this.tempRange.endTime="",this.isPhone?this.$refs.mobile&&this.$refs.mobile.clearCalender():(this.$refs.left&&this.$refs.left.clearCalender(),this.$refs.right&&this.$refs.right.clearCalender(),this.$refs.right&&this.$refs.right.changeMonth("next")),e&&(this.$emit("change",[]),this.$emit("input",[]),this.$emit("update:modelValue",[]))):(this.displayValue="",this.inputDate="",this.pickerTime="",this.isPhone?this.$refs.mobile&&this.$refs.mobile.clearCalender():this.$refs.pcSingle&&this.$refs.pcSingle.clearCalender(),e&&(this.$emit("change",""),this.$emit("input",""),this.$emit("update:modelValue","")))},calendarClick(e){this.$emit("calendarClick",e)}}};const Ee=q(be,[["render",function(t,i,a,s,r,o){const l=n(e.resolveDynamicComponent("uni-icons"),W),c=e.resolveComponent("time-picker"),u=e.resolveComponent("Calendar");return e.openBlock(),e.createElementBlock("view",{class:"uni-date"},[e.createElementVNode("view",{class:"uni-date-editor",onClick:i[1]||(i[1]=(...e)=>o.show&&o.show(...e))},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-date-editor--x",{"uni-date-editor--x__disabled":a.disabled,"uni-date-x--border":a.border}])},[r.isRange?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-date-x uni-date-range"},[e.createVNode(l,{class:"icon-calendar",type:"calendar",color:"#c0c4cc",size:"22"}),e.createElementVNode("view",{class:"uni-date__x-input text-center"},e.toDisplayString(r.displayRangeValue.startDate||o.startPlaceholderText),1),e.createElementVNode("view",{class:"range-separator"},e.toDisplayString(a.rangeSeparator),1),e.createElementVNode("view",{class:"uni-date__x-input text-center"},e.toDisplayString(r.displayRangeValue.endDate||o.endPlaceholderText),1)])):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-x uni-date-single"},[e.createVNode(l,{class:"icon-calendar",type:"calendar",color:"#c0c4cc",size:"22"}),e.createElementVNode("view",{class:"uni-date__x-input"},e.toDisplayString(r.displayValue||o.singlePlaceholderText),1)])),o.showClearIcon?(e.openBlock(),e.createElementBlock("view",{key:2,class:"uni-date__icon-clear",onClick:i[0]||(i[0]=e.withModifiers(((...e)=>o.clear&&o.clear(...e)),["stop"]))},[e.createVNode(l,{type:"clear",color:"#c0c4cc",size:"22"})])):e.createCommentVNode("",!0)],2)]),!0)]),e.withDirectives(e.createElementVNode("view",{class:"uni-date-mask--pc",onClick:i[2]||(i[2]=(...e)=>o.close&&o.close(...e))},null,512),[[e.vShow,r.pickerVisible]]),r.isPhone?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("view",{key:0,ref:"datePicker",class:"uni-date-picker__container"},[r.isRange?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-date-range--x",style:e.normalizeStyle(r.pickerPositionStyle)},[e.createElementVNode("view",{class:"uni-popper__arrow"}),r.hasTime?(e.openBlock(),e.createElementBlock("view",{key:0,class:"popup-x-header uni-date-changed"},[e.createElementVNode("view",{class:"popup-x-header--datetime"},[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":i[7]||(i[7]=e=>r.tempRange.startDate=e),placeholder:o.startDateText},null,8,["placeholder"]),[[e.vModelText,r.tempRange.startDate]]),e.createVNode(c,{type:"time",modelValue:r.tempRange.startTime,"onUpdate:modelValue":i[9]||(i[9]=e=>r.tempRange.startTime=e),start:o.timepickerStartTime,border:!1,disabled:!r.tempRange.startDate,hideSecond:a.hideSecond},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":i[8]||(i[8]=e=>r.tempRange.startTime=e),placeholder:o.startTimeText,disabled:!r.tempRange.startDate},null,8,["placeholder","disabled"]),[[e.vModelText,r.tempRange.startTime]])])),_:1},8,["modelValue","start","disabled","hideSecond"])]),e.createVNode(l,{type:"arrowthinright",color:"#999",style:{"line-height":"40px"}}),e.createElementVNode("view",{class:"popup-x-header--datetime"},[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":i[10]||(i[10]=e=>r.tempRange.endDate=e),placeholder:o.endDateText},null,8,["placeholder"]),[[e.vModelText,r.tempRange.endDate]]),e.createVNode(c,{type:"time",modelValue:r.tempRange.endTime,"onUpdate:modelValue":i[12]||(i[12]=e=>r.tempRange.endTime=e),end:o.timepickerEndTime,border:!1,disabled:!r.tempRange.endDate,hideSecond:a.hideSecond},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input uni-date-range__input",type:"text","onUpdate:modelValue":i[11]||(i[11]=e=>r.tempRange.endTime=e),placeholder:o.endTimeText,disabled:!r.tempRange.endDate},null,8,["placeholder","disabled"]),[[e.vModelText,r.tempRange.endTime]])])),_:1},8,["modelValue","end","disabled","hideSecond"])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"popup-x-body"},[e.createVNode(u,{ref:"left",showMonth:!1,"start-date":r.calendarRange.startDate,"end-date":r.calendarRange.endDate,range:!0,pleStatus:r.endMultipleStatus,onChange:o.leftChange,onFirstEnterCale:o.updateRightCale,style:{padding:"0 8px"}},null,8,["start-date","end-date","pleStatus","onChange","onFirstEnterCale"]),e.createVNode(u,{ref:"right",showMonth:!1,"start-date":r.calendarRange.startDate,"end-date":r.calendarRange.endDate,range:!0,onChange:o.rightChange,pleStatus:r.startMultipleStatus,onFirstEnterCale:o.updateLeftCale,style:{padding:"0 8px","border-left":"1px solid #F1F1F1"}},null,8,["start-date","end-date","onChange","pleStatus","onFirstEnterCale"])]),r.hasTime?(e.openBlock(),e.createElementBlock("view",{key:1,class:"popup-x-footer"},[e.createElementVNode("text",{onClick:i[13]||(i[13]=(...e)=>o.clear&&o.clear(...e))},e.toDisplayString(o.clearText),1),e.createElementVNode("text",{class:"confirm-text",onClick:i[14]||(i[14]=(...e)=>o.confirmRangeChange&&o.confirmRangeChange(...e))},e.toDisplayString(o.okText),1)])):e.createCommentVNode("",!0)],4)):(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-single--x",style:e.normalizeStyle(r.pickerPositionStyle)},[e.createElementVNode("view",{class:"uni-popper__arrow"}),r.hasTime?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-date-changed popup-x-header"},[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input text-center",type:"text","onUpdate:modelValue":i[3]||(i[3]=e=>r.inputDate=e),placeholder:o.selectDateText},null,8,["placeholder"]),[[e.vModelText,r.inputDate]]),e.createVNode(c,{type:"time",modelValue:r.pickerTime,"onUpdate:modelValue":i[5]||(i[5]=e=>r.pickerTime=e),border:!1,disabled:!r.inputDate,start:o.timepickerStartTime,end:o.timepickerEndTime,hideSecond:a.hideSecond,style:{width:"100%"}},{default:e.withCtx((()=>[e.withDirectives(e.createElementVNode("input",{class:"uni-date__input text-center",type:"text","onUpdate:modelValue":i[4]||(i[4]=e=>r.pickerTime=e),placeholder:o.selectTimeText,disabled:!r.inputDate},null,8,["placeholder","disabled"]),[[e.vModelText,r.pickerTime]])])),_:1},8,["modelValue","disabled","start","end","hideSecond"])])):e.createCommentVNode("",!0),e.createVNode(u,{ref:"pcSingle",showMonth:!1,"start-date":r.calendarRange.startDate,"end-date":r.calendarRange.endDate,date:r.calendarDate,onChange:o.singleChange,"default-value":a.defaultValue,style:{padding:"0 8px"}},null,8,["start-date","end-date","date","onChange","default-value"]),r.hasTime?(e.openBlock(),e.createElementBlock("view",{key:1,class:"popup-x-footer"},[e.createElementVNode("text",{class:"confirm-text",onClick:i[6]||(i[6]=(...e)=>o.confirmSingleChange&&o.confirmSingleChange(...e))},e.toDisplayString(o.okText),1)])):e.createCommentVNode("",!0)],4))],512)),[[e.vShow,r.pickerVisible]]),r.isPhone?(e.openBlock(),e.createBlock(u,{key:1,ref:"mobile",clearDate:!1,date:r.calendarDate,defTime:o.mobileCalendarTime,"start-date":r.calendarRange.startDate,"end-date":r.calendarRange.endDate,selectableTimes:o.mobSelectableTime,startPlaceholder:a.startPlaceholder,endPlaceholder:a.endPlaceholder,"default-value":a.defaultValue,pleStatus:r.endMultipleStatus,showMonth:!1,range:r.isRange,hasTime:r.hasTime,insert:!1,hideSecond:a.hideSecond,onConfirm:o.mobileChange,onMaskClose:o.close,onChange:o.calendarClick},null,8,["date","defTime","start-date","end-date","selectableTimes","startPlaceholder","endPlaceholder","default-value","pleStatus","range","hasTime","hideSecond","onConfirm","onMaskClose","onChange"])):e.createCommentVNode("",!0)])}],["__scopeId","data-v-17511ee3"]]),xe=q({__name:"customNav",setup(t){e.useCssVars((e=>({bc08538a:n})));const n=wx.getSystemInfoSync().statusBarHeight+44+"px";return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:""},[e.createElementVNode("view",{class:"nav"},[e.renderSlot(t.$slots,"default",{},void 0,!0)]),e.createElementVNode("view",{class:"place"})]))}},[["__scopeId","data-v-566e182b"]]),De="https://36.112.48.190/jeecg-boot/sys/common/static/",Te=(e,t,n)=>{uni.showToast({title:e,icon:t||"none",duration:n||2e3})},Ne=(e,n)=>{d({token:H().token,type:"mobile"}).then((t=>{var i;if(t.success){Ce((null==(i=t.result)?void 0:i.menu)||[]).some((t=>-1!==e.indexOf(t)))?n():Te("无查看权限!")}})).catch((e=>{t("log","at utils/index.js:35","err@",e)}))},Ce=(e,t=[])=>e.length?(e.forEach((e=>{e.children&&t.push(...Ce(e.children)),t.push(e.path)})),t):[];function Ve(e){t("log","at utils/index.js:78","url",e);var n=plus.downloader.createDownload(e,{filename:`_downloads/wgt-${Date.now()}.wgt`},(function(e,n){if(200==n){var i=plus.io.convertLocalFileSystemURL(e.filename);t("log","at utils/index.js:86","fileSaveUrl",i),a=i,plus.runtime.install(a,{force:!0},(()=>{uni.showModal({title:"更新",content:"更新成功,请点击确认后重启",showCancel:!1,success(e){e.confirm&&plus.runtime.restart()}})}),(()=>uni.showToast({title:"安装失败!",icon:"error"})))}else plus.downloader.clear(),uni.showToast({title:"App下载失败!",icon:"error"});var a}));let i=plus.nativeUI.showWaiting("正在下載");n.start(),n.addEventListener("statechanged",((e,t)=>{switch(e.state){case 1:i.setTitle("正在下载");break;case 2:i.setTitle("已连接到服务器");break;case 3:parseInt(parseFloat(e.downloadedSize)/parseFloat(e.totalSize)*100),i.setTitle(" 正在下载");break;case 4:plus.nativeUI.closeWaiting()}}))}const Ie=()=>{let e=new Date;return(new Date).getTime(),`${e.getFullYear()}-${(e.getMonth()+1).toString().padStart(2,0)}-${e.getDate().toString().padStart(2,0)}`},Be=()=>{const e=H();e.positionSwitch?(Te("定位刷新中"),uni.getLocation({type:"wgs84",success:function(n){uni.request({url:"http://api.tianditu.gov.cn/geocoder",method:"GET",data:{postStr:JSON.stringify({lon:n.longitude,lat:n.latitude,ver:1}),type:"geocode",tk:"30fe0f0c1b2320e112bde797f3ddaff4"},success:function(i){let a=i.data;if(0==a.status){const t=a.result.addressComponent;let i=t.city?t.city:t.province;uni.setStorageSync("position",i),e.setPosition(i),Ae(n.latitude,n.longitude)}else t("log","at utils/index.js:223",a.message)},fail:function(e){Te("获取定位失败")}})}})):(uni.setStorageSync("position","濮阳市"),e.setPosition("濮阳市"),Ae())},Ae=(e,t)=>{let n={};H().positionSwitch?(n.lat=e,n.lon=t,Me(n)):(n.q="濮阳市",Me(n))},Me=e=>{const t=H();uni.request({url:"https://api.openweathermap.org/data/2.5/weather",method:"GET",data:{...e,appid:"600a60694b0e453dfbaafa862f1d1482",lang:"zh_cn"},success:function(e){uni.setStorageSync("wendu",Math.round(e.data.main.temp-273.15)),uni.setStorageSync("wenduIcon",e.data.weather[0].icon),t.setWeather(Math.round(e.data.main.temp-273.15),e.data.weather[0].icon)},fail:function(e){Te("天气获取失败")}})},Pe=e=>{uni.downloadFile({url:De+e,success:function(e){var t=e.tempFilePath;uni.openDocument({filePath:t,showMenu:!0,fail:function(e){Te(e.errMsg)}})},fail:function(e){t("error","at utils/index.js:282","文件下载失败",e)}})},Re=e=>`https://36.112.48.190/jeecg-boot/sys/common/static//${e}`,Oe=q({__name:"index",setup(i){e.useCssVars((e=>({"5184fac6":f})));const a=H();r((()=>{o(),E(),T()}));const s=e.ref([]),o=()=>{var e;(e={zslb:6},u({url:"/CxcDaping/cxcDaping/list",method:"get",data:e})).then((e=>{if(e.success){let t=e.result.records[0].wenjian.split(",");s.value=t.map((e=>"https://36.112.48.190/jeecg-boot/sys/common/static/"+e))}}))},c=e.ref(0),d=e.ref(0),h=["公文","公告","制度","法规"],p=e=>{d.value=e,_=1,S.value=[],x()},f=wx.getSystemInfoSync().statusBarHeight+44+"px";e.ref(null);const k=(e,t,n,i)=>{if(!t||1!=t||"detail"!=i){if(t&&3==t&&n)return Pe(n.mingcheng);t&&2==t&&(e+=`&zhiduid=${d.value}`),Ne(e,(()=>{uni.navigateTo({url:e})}))}};let _=1;const S=e.ref([]),b=e.ref([]),E=()=>{var e;u({url:"/zhgl_zbgl/zhglZbglZbb/homepageList",method:"get",data:e}).then((e=>{e.success&&(b.value=e.result.records.slice(0,2))})).catch((e=>{t("log","at pages/tab/index.vue:299","err",e)}))},x=()=>{(0==d.value?w:y)({pageNo:_,pageSize:5}).then((e=>{if(e.success){let t=0==d.value?"zbbm_dictText":"sbbm";S.value=[...S.value,...D(e.result.records,"zdmc",t,null)]}})).catch((e=>{t("log","at pages/tab/index.vue:332","err",e)}))},D=(e,t,n,i)=>(e.map((e=>{e._title=e[t],e._time=e[n],e._depart=e[i]})),e);l((()=>{S.value=[],o(),E(),T(),uni.stopPullDownRefresh()}));const T=()=>{0==c.value?m({pageNo:_,pageSize:5}).then((e=>{e.success&&(S.value=[...S.value,...D(e.result.records,"fwbt","fwtime",null)])})).catch((e=>{t("log","at pages/tab/index.vue:273","err",e)})):1==c.value?g({pageNo:_,pageSize:5}).then((e=>{e.success&&(S.value=[...S.value,...D(e.result.records,"neirong","fbdw","createTime")])})).catch((e=>{t("log","at pages/tab/index.vue:288","err",e)})):2==c.value?x():3==c.value&&v({pageNo:_,pageSize:5}).then((e=>{e.success&&(S.value=[...S.value,...D(e.result.records,"flfgmc","ssbm",null)])})).catch((e=>{t("log","at pages/tab/index.vue:315","err",e)}))};return(t,i)=>{const r=n(e.resolveDynamicComponent("uni-datetime-picker"),Ee);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createElementVNode("view",{class:"nav"},[e.createElementVNode("view",{class:"nav_box f-row aic jcb"},[e.createElementVNode("view",{class:"weather_calender f-row aic"},[e.createElementVNode("view",{class:"position f-row aic"},[e.createElementVNode("image",{src:"/static/index/position.png",mode:""}),e.createElementVNode("text",null,e.toDisplayString(e.unref(a).position?e.unref(a).position:"暂未定位"),1)]),e.createElementVNode("view",{class:"position f-row aic"},[e.createElementVNode("image",{style:{height:"80rpx",width:"80rpx"},src:`http://openweathermap.org/img/w/${e.unref(a).wenduIcon}.png`,mode:""},null,8,["src"]),e.createElementVNode("text",null,e.toDisplayString(e.unref(a).wendu)+"℃",1)]),e.createVNode(r,{type:"date"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"position f-row aic"},[e.createElementVNode("image",{src:"/static/index/calendar.png",mode:""}),e.createElementVNode("text",null,e.toDisplayString(e.unref(Ie)()),1)])])),_:1})])])]),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("swiper",{class:"swiper",autoplay:""},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,((t,n)=>(e.openBlock(),e.createElementBlock("swiper-item",{key:n,class:"swiper-item"},[e.createElementVNode("image",{src:t,mode:"aspectFill"},null,8,["src"])])))),128))])]),e.createElementVNode("view",{class:"wrapper f-col aic"},[e.createElementVNode("view",{class:"onduty"},[e.createElementVNode("view",{class:"title f-row aic jcb"},[e.createTextVNode(" 值班信息 "),e.createElementVNode("view",{class:"more",onClick:i[0]||(i[0]=e=>k("/pages/zhiban/index"))},[e.createTextVNode(" 查看更多 "),e.createElementVNode("image",{src:"/static/index/back.png",mode:""})])]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"info_title f-row aic"},[e.createElementVNode("view",{class:""}," 日期 "),e.createElementVNode("view",{class:""}," 带班领导 "),e.createElementVNode("view",{class:""}," 值班领导 "),e.createElementVNode("view",{class:""}," 值班干部 ")]),e.createElementVNode("view",{class:"data_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["data"," f-row","aic",{first:0==n}])},[e.createElementVNode("view",{class:""},e.toDisplayString(t.date),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.dbld_dictText),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.zbld_dictText),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.zbgbrealname),1)],2)))),256))])])]),e.createElementVNode("view",{class:"list_wrapper"},[e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:"list_title f-row aic jca"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(h,((t,n)=>e.createElementVNode("view",{class:e.normalizeClass({active:c.value==n}),onClick:e=>(e=>{c.value=e,_=1,S.value=[],T()})(n)},e.toDisplayString(t),11,["onClick"]))),64))]),2==c.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic zhidu"},[e.createElementVNode("view",{class:e.normalizeClass({active:0==d.value}),onClick:i[1]||(i[1]=e=>p(0))}," 厂级制度 ",2),e.createElementVNode("view",{class:e.normalizeClass({active:1==d.value}),onClick:i[2]||(i[2]=e=>p(1))}," 上级制度 ",2)])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{style:{"padding-top":"24rpx"},class:"more",onClick:i[3]||(i[3]=e=>k(`/pages/document/index?id=${c.value}`,c.value))},[e.createTextVNode(" 查看更多 "),e.createElementVNode("image",{src:"/static/index/back.png",mode:""})]),e.createElementVNode("view",{class:"list_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"list",key:n,onClick:e=>k(`/pages/document/detail?data=${JSON.stringify(t)}&id=${c.value}`,c.value,t,"detail")},[e.createElementVNode("view",{class:"topic"},e.toDisplayString(t._title),1),t._time||t._depart?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_Box f-row aic"},[t._time?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time"},e.toDisplayString(t._time),1)):e.createCommentVNode("",!0),t._depart?(e.openBlock(),e.createElementBlock("view",{key:1,class:"look f-row aic"},e.toDisplayString(t._depart),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],8,["onClick"])))),128))])])])],2)}}},[["__scopeId","data-v-d6ec6b55"]]),Le=q({__name:"extendCom",props:{title:{type:String,default:""},img:{type:String,default:""},list:{type:Array,default:function(){return[]}},total:{type:Number,default:0},type:{type:String,default:""}},setup(t){e.useCssVars((e=>({"11d92706":a.value})));const n=t,i=e.ref(!1),a=e.ref(null),s=e.getCurrentInstance();e.watch((()=>n.list),(()=>{e.nextTick((()=>{uni.createSelectorQuery().in(s.proxy).select(".item_box").boundingClientRect((e=>{a.value=(null==e?void 0:e.height)+"px"})).exec()}))}),{immediate:!0});const r=e=>{let t=null;Ne("/pages/task/index",(()=>{if("0"==n.type&&(t=0),"1"==n.type&&(t=1),"2"==n.type)return uni.navigateTo({url:`/pages/task/self?title=${e}`});uni.navigateTo({url:`/pages/task/index?id=${t}&title=${e}`})}))};return(n,a)=>(e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"todo f-col aic"},[e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"title_box f-row aic jcb",onClick:a[0]||(a[0]=e=>r(""))},[e.createElementVNode("view",{class:"title f-row aic"},[e.createElementVNode("image",{src:`/static/my/${t.img}.png`,mode:""},null,8,["src"]),e.createTextVNode(" "+e.toDisplayString(t.title),1)]),e.createElementVNode("view",{class:"num"},e.toDisplayString(t.total),1)]),t.list.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"list"},[e.createElementVNode("view",{class:e.normalizeClass(["box",{close:t.list.length>5&&i.value}])},[e.createElementVNode("view",{class:"item_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,((t,n)=>(e.openBlock(),e.createElementBlock("view",{onClick:e=>r(t.title),class:"item f-row aic",key:n},[e.createElementVNode("view",{class:""},e.toDisplayString(t.title),1),e.createElementVNode("text",null,e.toDisplayString(t.num),1)],8,["onClick"])))),128))])],2),e.withDirectives(e.createElementVNode("view",{class:"more",onClick:a[1]||(a[1]=e=>i.value=!i.value)},e.toDisplayString(i.value?"收起":"显示更多"),513),[[e.vShow,t.list.length>5]])])):e.createCommentVNode("",!0)])])]))}},[["__scopeId","data-v-d5e6674e"]]),Fe=q({__name:"todotask",setup(n){e.useCssVars((e=>({"6ebd20b9":i})));const i=wx.getSystemInfoSync().statusBarHeight+44+"px",s=H();a((()=>{k(),c(),m(),y(),uni.removeTabBarBadge({index:"1"})}));const r=e.ref([]),o=e.ref(0),c=()=>{h({pageNo:1,pageSize:4,_t:(new Date).getTime()}).then((e=>{var n,i,a,s;(null==e?void 0:e.success)&&((null==(n=null==e?void 0:e.result)?void 0:n.total)>4?h({pageNo:1,pageSize:null==(i=null==e?void 0:e.result)?void 0:i.total,_t:(new Date).getTime()}).then((e=>{var n,i;t("log","at pages/task/todotask.vue:60","---",e),(null==e?void 0:e.success)&&(r.value=[...r.value,...w(null==(n=null==e?void 0:e.result)?void 0:n.records)],o.value=null==(i=null==e?void 0:e.result)?void 0:i.total)})).catch((e=>{t("log","at pages/task/todotask.vue:66","err",e)})):(r.value=[...r.value,...w(null==(a=null==e?void 0:e.result)?void 0:a.records)],o.value=null==(s=null==e?void 0:e.result)?void 0:s.total))})).catch((e=>{t("log","at pages/task/todotask.vue:75",e)}))},u=e.ref([]),d=e.ref(0),m=()=>{p().then((e=>{e.success&&(e.result.total>4?p({pageNo:1,pageSize:e.result.total,_t:(new Date).getTime()}).then((e=>{e.success&&(u.value=[...u.value,...w(e.result.records)],d.value=e.result.total)})).catch((e=>{t("log","at pages/task/todotask.vue:96",e)})):(u.value=[...u.value,...w(e.result.records)],d.value=e.result.total))})).catch((e=>{t("log","at pages/task/todotask.vue:105",e)}))},g=e.ref([]),v=e.ref(0),y=()=>{f().then((e=>{e.success&&(e.result.total>4?f({pageNo:1,pageSize:e.result.total,_t:(new Date).getTime()}).then((e=>{e.success&&(g.value=[...g.value,...w(e.result.records)],v.value=e.result.total)})).catch((e=>{t("log","at pages/task/todotask.vue:125",e)})):(g.value=[...g.value,...w(e.result.records)],v.value=e.result.total))})).catch((e=>{t("log","at pages/task/todotask.vue:135",e)}))},w=e=>{let t=(e.length?e.map((e=>e.processDefinitionName||e.prcocessDefinitionName)):[]).reduce(((e,t)=>(t in e?e[t]++:e[t]=1,e)),{});return Object.entries(t).map((([e,t])=>({title:e,num:t})))},k=()=>{r.value=[],g.value=[],u.value=[],o.value=0,d.value=0,v.value=0};return l((()=>{k(),c(),m(),y(),uni.stopPullDownRefresh()})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass([{gray:1==e.unref(s).isgray}])},[e.createElementVNode("view",{class:"nav"}),e.createElementVNode("view",{class:"placeholder"}),e.createElementVNode("view",{class:"content"},[e.createVNode(Le,{title:"我的任务",img:"process",list:r.value,total:o.value,type:"0"},null,8,["list","total"]),e.createVNode(Le,{title:"历史任务",img:"done",list:u.value,total:d.value,type:"1"},null,8,["list","total"]),e.createVNode(Le,{title:"本人发起",img:"self",list:g.value,total:v.value,type:"2"},null,8,["list","total"])])],2))}},[["__scopeId","data-v-df705bde"]]),je={__name:"office",setup(n){e.useCssVars((e=>({"00e5a4ad":a})));const i=H();new Array(7).fill(0).map(((e,t)=>t)),e.ref([]);const a=wx.getSystemInfoSync().statusBarHeight+44+"px";r((()=>{c()}));const s=e.ref([]),o=e.ref([]),l=e.ref([]),c=()=>{d({token:i.token,type:"mobile"}).then((e=>{var t,n,i;if(e.success){let a=e.result.menu;a.map((e=>e.children=null==e?void 0:e.children.filter((e=>{var t;return null==(t=null==e?void 0:e.meta)?void 0:t.icon})))),a=a.filter((e=>{var t;return null==(t=null==e?void 0:e.children)?void 0:t.length})),l.value=null==(n=null==(t=a[0])?void 0:t.meta)?void 0:n.title,s.value=a,o.value=null==(i=a.slice(0,1)[0])?void 0:i.children}})).catch((e=>{t("log","at pages/tab/office.vue:103",e)}))};return(t,n)=>{var a,r,l;return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(i).isgray})},[e.createElementVNode("view",{class:"nav"}),e.createElementVNode("view",{class:"placeholder"}),(null==(a=o.value)?void 0:a.length)||(null==(r=s.value)?void 0:r.length)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"title f-col aic",style:{"padding-top":"30rpx"}}," 暂无权限,请联系管理员! ")),e.createElementVNode("view",{class:"content"},[(null==(l=s.value)?void 0:l.length)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item",key:n},[e.createElementVNode("view",{class:"title"},e.toDisplayString(t.meta.title),1),e.createElementVNode("view",{class:"info_box f-row aic"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.children,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"info f-col aic",onClick:e=>{return n=t.path,void Ne(n,(()=>{uni.navigateTo({url:n})}));var n},key:n},[e.createElementVNode("view",{class:"img f-row aic"},[e.createElementVNode("image",{src:`../../static/office/${t.meta.icon}.png`},null,8,["src"])]),e.createElementVNode("view",{class:"text"},e.toDisplayString(t.meta.title),1)],8,["onClick"])))),128))])])))),128))])):e.createCommentVNode("",!0)])],2)}}},Ue=q(je,[["__scopeId","data-v-a37e03c5"]]),$e=q({__name:"my",setup(t){const n=H(),i=e.ref(plus.runtime.version),a=e.ref([]),s=e.ref(!1),r=e.ref(n.positionSwitch),o=e=>{e&&Ne(e,(()=>{uni.navigateTo({url:e})}))},l=e=>{uni.navigateTo({url:e})},c=()=>{r.value=!r.value,uni.setStorageSync("positionSwitch",r.value),n.setPositionSwitch(r.value),r.value||Te("定位已关闭"),Be()},u=()=>{uni.scanCode({success:function(e){plus.runtime.openWeb(e.result)}})};return(t,d)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(n).isgray})},[e.createElementVNode("view",{class:"nav"},[e.createElementVNode("view",{class:"user f-row aic"},[e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{onClick:d[0]||(d[0]=e=>l("/pages/useredit/useredit")),src:e.unref(Re)(e.unref(n).userinfo.avatar),mode:""},null,8,["src"])]),e.createElementVNode("view",{class:"f-row aic jcb right"},[e.createElementVNode("view",{class:"name_job",onClick:d[1]||(d[1]=e=>l("/pages/useredit/useredit"))},[e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("view",{class:"name"},e.toDisplayString(e.unref(n).userinfo.realname),1)]),e.createElementVNode("view",{class:"job"},e.toDisplayString(e.unref(n).role),1)]),e.createElementVNode("view",{class:"shezhi"},[e.createElementVNode("image",{onClick:u,style:{width:"50rpx",height:"50rpx","margin-right":"20rpx"},src:"/static/tab/scan.png"})])])]),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"msg f-row aic jca"},[e.createElementVNode("view",{class:"box f-col aic"},[e.createElementVNode("view",{class:"num"},e.toDisplayString(0)),e.createElementVNode("text",null,"步数")]),e.createElementVNode("view",{class:"box f-col aic",onClick:d[2]||(d[2]=e=>o("/pages/useredit/addressbook"))},[e.createElementVNode("view",{class:"num"}," 0 "),e.createElementVNode("text",null,"通讯录")])])])]),e.createElementVNode("view",{class:"operate"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"f-row aic jcb item",key:n,onClick:e=>o(t.path)},[e.createElementVNode("view",{class:"left f-row aic"},[e.createElementVNode("image",{src:t.img,mode:""},null,8,["src"]),e.createElementVNode("text",null,e.toDisplayString(t.text),1)]),e.createElementVNode("view",{class:"right f-row aic"},[e.withDirectives(e.createElementVNode("view",{class:"switch",onClick:d[3]||(d[3]=e=>s.value=!s.value)},[e.withDirectives(e.createElementVNode("image",{src:"/static/my/open.png",mode:""},null,512),[[e.vShow,s.value]]),e.withDirectives(e.createElementVNode("image",{src:"/static/my/close.png",mode:""},null,512),[[e.vShow,!s.value]])],512),[[e.vShow,0==n]]),e.withDirectives(e.createElementVNode("view",{class:"switch",onClick:c},[e.withDirectives(e.createElementVNode("image",{src:"/static/my/open.png",mode:""},null,512),[[e.vShow,r.value]]),e.withDirectives(e.createElementVNode("image",{src:"/static/my/close.png",mode:""},null,512),[[e.vShow,!r.value]])],512),[[e.vShow,2==n]]),e.withDirectives(e.createElementVNode("view",{class:"version"}," 当前版本v"+e.toDisplayString(i.value),513),[[e.vShow,3==n]])])],8,["onClick"])))),128))])],2))}},[["__scopeId","data-v-300a7325"]]),ze=q({__name:"tasklistCom",props:{taskArr:{type:Array,default:()=>[]},currentIndex:{type:Number,default:0}},emits:["jump"],setup(t,{emit:n}){const{proxy:i}=e.getCurrentInstance(),a=n,s=e=>{a("jump",e)},r=e=>{var t;(t={taskId:e},u({url:"/act/task/claim",method:"put",data:t})).then((e=>{e.success&&(uni.redirectTo({url:"./index?id=0"}),i.$toast(e.message))}))},o=e=>{var t;(t={processInstanceId:e},u({url:"/act/task/callBackProcess",method:"put",data:t})).then((e=>{e.success&&(uni.redirectTo({url:"./self"}),i.$toast(e.message))}))},l=e=>{var t;(t={processInstanceId:e},u({url:"/act/task/invalidProcess",method:"put",data:t})).then((e=>{e.success&&(uni.redirectTo({url:"./self"}),i.$toast(e.message))}))};return(n,i)=>(e.openBlock(),e.createElementBlock("view",{class:"list_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.taskArr,((n,i)=>(e.openBlock(),e.createElementBlock("view",{class:"list",key:i,onClick:e=>s(`/pages/task/handle?info=${JSON.stringify(n)}&type=${t.currentIndex}`)},[e.createElementVNode("view",{class:"title f-row aic jcb"},[e.createElementVNode("view",null,[e.createElementVNode("view",null,e.toDisplayString(n.bpmBizTitle),1)]),e.createElementVNode("text",null,e.toDisplayString(n.durationStr),1)]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",null," 申请理由:"+e.toDisplayString(n.bpmBizTitle),1),2!=t.currentIndex?(e.openBlock(),e.createElementBlock("view",{key:0}," 当前环节:"+e.toDisplayString(n.taskName),1)):e.createCommentVNode("",!0),e.createElementVNode("view",null," 流程名称:"+e.toDisplayString(n.processDefinitionName),1),e.createElementVNode("view",null," 发起人:"+e.toDisplayString(n.processApplyUserName),1),e.createElementVNode("view",null," 开始时间:"+e.toDisplayString(n.taskBeginTime),1),n.taskEndTime?(e.openBlock(),e.createElementBlock("view",{key:1}," 结束时间:"+e.toDisplayString(n.taskEndTime),1)):e.createCommentVNode("",!0)]),0==t.currentIndex&&n.taskAssigneeName?(e.openBlock(),e.createElementBlock("view",{key:0,class:"btn f-row aic jcb"},[e.createElementVNode("view",{class:"entrust",onClick:e.withModifiers((e=>s(`/pages/userlist/index?isradio=1&id=${n.id}`)),["stop"])}," 委托 ",8,["onClick"]),e.createElementVNode("view",{class:"handle",onClick:e=>s(`/pages/task/handle?info=${JSON.stringify(n)}&type=${t.currentIndex}`)}," 办理 ",8,["onClick"])])):e.createCommentVNode("",!0),0!=t.currentIndex||n.taskAssigneeName?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:1,class:"btn f-row aic jcb"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"handle",onClick:e.withModifiers((e=>r(n.id)),["stop"])}," 签收 ",8,["onClick"])])),2!=t.currentIndex||n.endTime?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:2,class:"btn f-row aic jcb"},[e.createElementVNode("view",{class:"entrust",onClick:e.withModifiers((e=>l(n.processInstanceId)),["stop"])}," 作废流程 ",8,["onClick"]),e.createElementVNode("view",{class:"handle",onClick:e.withModifiers((e=>o(n.processInstanceId)),["stop"])}," 取回流程 ",8,["onClick"])]))],8,["onClick"])))),128))]))}},[["__scopeId","data-v-3868ba91"]]),He=q({__name:"index",setup(n){const i=H();let s="";r((e=>{u.value=+e.id,s=e.title})),a((()=>{g.value=[],d=1,f=10,m=!1,v()}));const c=e.ref([{text:"我的任务",id:0},{text:"历史任务",id:1}]);e.ref("");const u=e.ref(0);let d=1,f=10,m=!1;const g=e.ref([]),v=()=>{m=!0,uni.showLoading({title:"加载中..."}),(0==u.value?h:p)({pageNo:d,pageSize:f,_t:(new Date).getTime(),processDefinitionName:s}).then((e=>{var t;if(e.success){if(!e.result.records.length)return Te("没有更多了~");g.value=[...g.value,...(null==(t=null==e?void 0:e.result)?void 0:t.records)||[]],m=!1}})).catch((e=>{t("log","at pages/task/index.vue:84",e)}))};o((()=>{m||(d++,v())})),l((()=>{d=1,f=10,m=!1,g.value=[],v(),uni.stopPullDownRefresh()}));const y=e=>{Ne(e,(()=>{uni.navigateTo({url:e})}))};return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(i).isgray})},[e.createElementVNode("view",{class:"nav"},[e.createElementVNode("view",{class:"tab_box f-row aic jca"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({active:n==u.value}),key:n,onClick:e=>(e=>{g.value=[],d=1,f=10,m=!1,u.value=e,v()})(n)},e.toDisplayString(t.text),11,["onClick"])))),128))])]),e.createElementVNode("view",{class:"tasklist"},[e.createVNode(ze,{onJump:y,taskArr:g.value,currentIndex:u.value},null,8,["taskArr","currentIndex"])])],2))}},[["__scopeId","data-v-965734c1"]]);class qe{constructor(e,t){this.options=e,this.animation=uni.createAnimation({...e}),this.currentStepAnimates={},this.next=0,this.$=t}_nvuePushAnimates(e,t){let n=this.currentStepAnimates[this.next],i={};if(i=n||{styles:{},config:{}},Ke.includes(e)){i.styles.transform||(i.styles.transform="");let n="";"rotate"===e&&(n="deg"),i.styles.transform+=`${e}(${t+n}) `}else i.styles[e]=`${t}`;this.currentStepAnimates[this.next]=i}_animateRun(e={},t={}){let n=this.$.$refs.ani.ref;if(n)return new Promise(((i,a)=>{nvueAnimation.transition(n,{styles:e,...t},(e=>{i()}))}))}_nvueNextAnimate(e,t=0,n){let i=e[t];if(i){let{styles:a,config:s}=i;this._animateRun(a,s).then((()=>{t+=1,this._nvueNextAnimate(e,t,n)}))}else this.currentStepAnimates={},"function"==typeof n&&n(),this.isEnd=!0}step(e={}){return this.animation.step(e),this}run(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((()=>{"function"==typeof e&&e()}),this.$.durationTime)}}const Ke=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];function Je(e,t){if(t)return clearTimeout(t.timer),new qe(e,t)}Ke.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((e=>{qe.prototype[e]=function(...t){return this.animation[e](...t),this}}));const We=q({name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:()=>"fade"},duration:{type:Number,default:300},styles:{type:Object,default:()=>({})},customClass:{type:String,default:""},onceRender:{type:Boolean,default:!1}},data:()=>({isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}),watch:{show:{handler(e){e?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject(){let e={...this.styles,"transition-duration":this.duration/1e3+"s"},t="";for(let n in e){t+=this.toLine(n)+":"+e[n]+";"}return t},transformStyles(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init(e={}){e.duration&&(this.durationTime=e.duration),this.animation=Je(Object.assign(this.config,e),this)},onClick(){this.$emit("click",{detail:this.isShow})},step(e,n={}){if(this.animation){for(let n in e)try{"object"==typeof e[n]?this.animation[n](...e[n]):this.animation[n](e[n])}catch(gn){t("error","at uni_modules/uni-transition/components/uni-transition/uni-transition.vue:148",`方法 ${n} 不存在`)}return this.animation.step(n),this}},run(e){this.animation&&this.animation.run(e)},open(){clearTimeout(this.timer),this.transform="",this.isShow=!0;let{opacity:e,transform:t}=this.styleInit(!1);void 0!==e&&(this.opacity=e),this.transform=t,this.$nextTick((()=>{this.timer=setTimeout((()=>{this.animation=Je(this.config,this),this.tranfromInit(!1).step(),this.animation.run(),this.$emit("change",{detail:this.isShow})}),20)}))},close(e){this.animation&&this.tranfromInit(!0).step().run((()=>{this.isShow=!1,this.animationData=null,this.animation=null;let{opacity:e,transform:t}=this.styleInit(!1);this.opacity=e||1,this.transform=t,this.$emit("change",{detail:this.isShow})}))},styleInit(e){let t={transform:""},n=(e,n)=>{"fade"===n?t.opacity=this.animationType(e)[n]:t.transform+=this.animationType(e)[n]+" "};return"string"==typeof this.modeClass?n(e,this.modeClass):this.modeClass.forEach((t=>{n(e,t)})),t},tranfromInit(e){let t=(e,t)=>{let n=null;"fade"===t?n=e?0:1:(n=e?"-100%":"0","zoom-in"===t&&(n=e?.8:1),"zoom-out"===t&&(n=e?1.2:1),"slide-right"===t&&(n=e?"100%":"0"),"slide-bottom"===t&&(n=e?"100%":"0")),this.animation[this.animationMode()[t]](n)};return"string"==typeof this.modeClass?t(e,this.modeClass):this.modeClass.forEach((n=>{t(e,n)})),this.animation},animationType:e=>({fade:e?0:1,"slide-top":`translateY(${e?"0":"-100%"})`,"slide-right":`translateX(${e?"0":"100%"})`,"slide-bottom":`translateY(${e?"0":"100%"})`,"slide-left":`translateX(${e?"0":"-100%"})`,"zoom-in":`scaleX(${e?1:.8}) scaleY(${e?1:.8})`,"zoom-out":`scaleX(${e?1:1.2}) scaleY(${e?1:1.2})`}),animationMode:()=>({fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}),toLine:e=>e.replace(/([A-Z])/g,"-$1").toLowerCase()}},[["render",function(t,n,i,a,s,r){return e.withDirectives((e.openBlock(),e.createElementBlock("view",{ref:"ani",animation:s.animationData,class:e.normalizeClass(i.customClass),style:e.normalizeStyle(r.transformStyles),onClick:n[0]||(n[0]=(...e)=>r.onClick&&r.onClick(...e))},[e.renderSlot(t.$slots,"default")],14,["animation"])),[[e.vShow,s.isShow]])}]]),Ye={name:"uniPopup",components:{},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"},borderRadius:{type:String}},watch:{type:{handler:function(e){this.config[e]&&this[this.config[e]](!0)},immediate:!0},isDesktop:{handler:function(e){this.config[e]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(e){this.mkclick=e},immediate:!0},isMaskClick:{handler:function(e){this.mkclick=e},immediate:!0},showPopup(e){}},data(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{backgroundColor:"transparent",borderRadius:this.borderRadius||"0",position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:"top"}},computed:{getStyles(){let e={backgroundColor:this.bg};return this.borderRadius,e=Object.assign(e,{borderRadius:this.borderRadius}),e},isDesktop(){return this.popupWidth>=500&&this.popupHeight>=500},bg(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted(){(()=>{const{windowWidth:e,windowHeight:t,windowTop:n,safeArea:i,screenHeight:a,safeAreaInsets:s}=uni.getSystemInfoSync();this.popupWidth=e,this.popupHeight=t+(n||0),i&&this.safeArea?this.safeAreaInsets=s.bottom:this.safeAreaInsets=0})()},unmounted(){this.setH5Visible()},activated(){this.setH5Visible(!this.showPopup)},deactivated(){this.setH5Visible(!0)},created(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=300:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{setH5Visible(e=!0){},closeMask(){this.maskShow=!1},disableMask(){this.mkclick=!1},clear(e){e.stopPropagation(),this.clearPropagation=!0},open(e){if(this.showPopup)return;e&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(e)||(e=this.type),this.config[e]?(this[this.config[e]](),this.$emit("change",{show:!0,type:e})):t("error","at uni_modules/uni-popup/components/uni-popup/uni-popup.vue:298","缺少类型:",e)},close(e){this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.showPopup=!1}),300)},touchstart(){this.clearPropagation=!1},onTap(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top(e){this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((()=>{this.messageChild&&"message"===this.type&&this.messageChild.timerClose()})))},bottom(e){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0)},center(e){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center",borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0)},left(e){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)},right(e){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)}}};const Ge=q(Ye,[["render",function(t,i,a,s,r,o){const l=n(e.resolveDynamicComponent("uni-transition"),We);return r.showPopup?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-popup",[r.popupstyle,o.isDesktop?"fixforpc-z-index":""]])},[e.createElementVNode("view",{onTouchstart:i[1]||(i[1]=(...e)=>o.touchstart&&o.touchstart(...e))},[r.maskShow?(e.openBlock(),e.createBlock(l,{key:"1",name:"mask","mode-class":"fade",styles:r.maskClass,duration:r.duration,show:r.showTrans,onClick:o.onTap},null,8,["styles","duration","show","onClick"])):e.createCommentVNode("",!0),e.createVNode(l,{key:"2","mode-class":r.ani,name:"content",styles:r.transClass,duration:r.duration,show:r.showTrans,onClick:o.onTap},{default:e.withCtx((()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-popup__wrapper",[r.popupstyle]]),style:e.normalizeStyle(o.getStyles),onClick:i[0]||(i[0]=(...e)=>o.clear&&o.clear(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)])),_:3},8,["mode-class","styles","duration","show","onClick"])],32)],2)):e.createCommentVNode("",!0)}],["__scopeId","data-v-9c09fb6f"]]),Ze={__name:"handle",setup(t){const i=H(),{proxy:a}=e.getCurrentInstance(),s=e.ref(null),o=e.ref(""),l=e.ref(null),c=e=>{l.value=e,s.value.open(),o.value=2==e?"同意":""},d=()=>{s.value.close()},h=e.ref(null),p=e.ref(""),f=e=>{var t;(t={taskId:e},u({url:"/process/extActProcessNode/getProcessNodeInfo",method:"get",data:t})).then((e=>{e.success&&(p.value=e.result.dataId,h.value=e.result.formUrlMobile)}))},m=()=>{uni.navigateBack()},g=e.ref(!1);let v=null;const y=()=>{let e={};if(1==l.value){if(null==_.value)return a.$toast("请选择驳回节点");e.processModel=3,e.rejectModelNode=k.value[_.value].TASK_DEF_KEY_,w(e)}else g.value?Ne("/pages/userlist/index",(()=>{d(),uni.navigateTo({url:`/pages/userlist/index?id=${D.value.id}&isradio=1&nextnode=${JSON.stringify(v)}&reason=${o.value}`})})):(e.processModel=1,w(e))},w=e=>{S({taskId:D.value.id,reason:o.value,...e}).then((e=>{e.success&&(a.$toast(e.message),setTimeout((()=>{uni.navigateBack()}),2e3))}))},k=e.ref([]),_=e.ref(null),b=e=>{_.value=e.detail.value},E=e=>{var t;(t={taskId:D.value.id},u({url:"/act/task/getProcessTaskTransInfo",method:"get",data:t})).then((e=>{e.success&&(k.value=e.result.histListNode,v=e.result.transitionList)}))},x=e=>{var t;(t={procInstId:e},u({url:"/process/extActProcessNode/getHisProcessNodeInfo",method:"get",data:t})).then((e=>{e.success&&(p.value=e.result.dataId,h.value=e.result.formUrlMobile)}))},D=e.ref(null);let T=null;return r((e=>{if(D.value=JSON.parse(e.info),T=e.type,1==T||2==T)return x(D.value.processInstanceId);f(D.value.id),E()})),(t,a)=>{const r=n(e.resolveDynamicComponent("uni-icons"),W),u=n(e.resolveDynamicComponent("uni-popup"),Ge);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(i).isgray}])},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"f-row aic box"},[e.createElementVNode("view",{class:"back",onClick:m},[e.createVNode(r,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{src:e.unref(Re)(e.unref(i).userinfo.avatar),mode:""},null,8,["src"])]),e.createElementVNode("view",{class:"name"},e.toDisplayString(D.value.processApplyUserName)+"的"+e.toDisplayString(D.value.processDefinitionName),1),0==e.unref(T)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"status"}," 待审批 ")):e.createCommentVNode("",!0),1==e.unref(T)?(e.openBlock(),e.createElementBlock("view",{key:1,class:"status",style:{"background-color":"#7AC756"}}," 已处理 ")):e.createCommentVNode("",!0)])])),_:1}),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h.value),{dataId:p.value},null,8,["dataId"])),0==e.unref(T)?(e.openBlock(),e.createElementBlock("view",{key:0,class:"btn f-row aic jcb"},[e.createElementVNode("view",{class:"refuse",onClick:a[0]||(a[0]=e=>c(1))}," 拒绝 "),e.createElementVNode("view",{class:"agree",onClick:a[1]||(a[1]=e=>c(2))}," 同意 ")])):e.createCommentVNode("",!0),e.createVNode(u,{ref_key:"popup",ref:s,type:"center"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"popup"},[e.createElementVNode("view",{class:"title"}," 审批意见 "),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"input f-col"},[e.withDirectives(e.createElementVNode("textarea",{"onUpdate:modelValue":a[2]||(a[2]=e=>o.value=e),name:"",id:"",maxlength:"200",placeholder:"请输入"},null,512),[[e.vModelText,o.value]]),e.createElementVNode("view",{class:""},e.toDisplayString(o.value.length)+"/200 ",1)])]),2==l.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"agree_operate f-row aic",onClick:a[3]||(a[3]=e=>g.value=!g.value)},[g.value?(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/login/checked.png",mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/login/nocheck.png",mode:""})),e.createElementVNode("view",{class:""}," 指定下一步操作人 ")])):(e.openBlock(),e.createElementBlock("view",{key:1,class:""},[e.createElementVNode("picker",{value:_.value,range:k.value,"range-key":"NAME_",onChange:b},[e.createElementVNode("view",{class:"node"},e.toDisplayString(null!=_.value?k.value[_.value].NAME_:"请选择驳回节点"),1)],40,["value","range"])])),e.createElementVNode("view",{class:"popbtn f-row aic"},[e.createElementVNode("view",{class:"cancel",onClick:d}," 取消 "),e.createElementVNode("view",{class:"confirm",onClick:y}," 确定 ")])])])),_:1},512)],2)}}},Qe=q(Ze,[["__scopeId","data-v-12da9556"]]),Xe=q({__name:"message_list",setup(t){const n=H();return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(n).isgray})},[e.createElementVNode("view",{class:"list"},[e.createElementVNode("view",{class:"item f-row aic"},[e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("image",{src:"/static/system.png",mode:""})]),e.createElementVNode("view",{class:"name_info"},[e.createElementVNode("view",{class:"name_time f-row aic jcb"},[e.createElementVNode("view",{class:"name"}," 系统通知 "),e.createElementVNode("view",{class:"time"}," 1分钟前 ")]),e.createElementVNode("view",{class:"info"}," 关于年假通知关于年假通知关于年假通知关于年假通知关于年假通知关于年假通知关于年假通知 ")])]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,((t,n)=>e.createElementVNode("view",{class:"item f-row aic",key:n,onClick:i[0]||(i[0]=e=>{var t;Ne(t="/pages/talk/conversation",(()=>{uni.navigateTo({url:t})}))})},[e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("image",{src:"",mode:""})]),e.createElementVNode("view",{class:"name_info"},[e.createElementVNode("view",{class:"name_time f-row aic jcb"},[e.createElementVNode("view",{class:"name"}," 系统通知 "),e.createElementVNode("view",{class:"time"}," 1分钟前 ")]),e.createElementVNode("view",{class:"info"}," 关于年假通知 ")])]))),64))])],2))}},[["__scopeId","data-v-f59fee84"]]),et=q({__name:"conversation",setup(t){const n=H();return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(14,((t,n)=>e.createElementVNode("view",{class:"item",key:n},[e.withDirectives(e.createElementVNode("view",{class:"left f-row aic"},[e.createElementVNode("view",{class:"avatar f-row aic"},[e.createElementVNode("image",{src:"/static/system.png",mode:""})]),e.createElementVNode("view",{class:"content"}," 你今天在干嘛呢?为什么这么久不回我信息,真的生气了 ")],512),[[e.vShow,n%2==0]]),e.withDirectives(e.createElementVNode("view",{class:"right f-row aic"},[e.createElementVNode("view",{class:"content"}," 请问如何退款? "),e.createElementVNode("view",{class:"avatar f-row aic"},[e.createElementVNode("image",{src:"",mode:""})])],512),[[e.vShow,n%2!=0]])]))),64))]),e.createElementVNode("view",{class:"input_box f-row aic jce"},[e.createElementVNode("input",{type:"text",placeholder:"请输入内容......","placeholder-style":"font-size: 28rpx;color: #999999;"}),e.createElementVNode("view",{class:"send"}," 发送 ")])],2))}},[["__scopeId","data-v-00b966b0"]]),nt=q({__name:"system",setup(t){const n=H();return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,((t,n)=>e.createElementVNode("view",{class:"item",key:n},[e.createElementVNode("view",{class:"left f-row aic"},[e.createElementVNode("view",{class:"avatar f-row aic"},[e.createElementVNode("image",{src:"/static/system.png",mode:""})]),e.createElementVNode("view",{class:"content"}," 你今天在干嘛呢?为什么这么久不回我信息,真的生气了 ")])]))),64))])],2))}},[["__scopeId","data-v-2f0571e9"]]),it=q({__name:"index",setup(i){e.useCssVars((e=>({e9493420:e.cusnavbarheight})));const a=H(),s=e.ref(!0),c=e.ref(""),u=e.ref([]);let d=1,h=!1;const p=(e,t,n,i)=>(e.map((e=>{e._title=e[t],e._time=e[n],e._depart=e[i]})),e),f=()=>{if(c.value.trim())return"*"+c.value+"*"},k=()=>{d=1,h=!1,u.value=[],E()};e.watch(c,((e,t)=>{e.trim()||E()}));const _=()=>{uni.navigateBack()},S=e.ref(null);let b=null;r((e=>{S.value=e.id,b=e.zhiduid,E()}));const E=()=>{0==S.value?(h=!0,m({pageNo:d,pageSize:15,fwbt:f()}).then((e=>{e.success&&(u.value=[...u.value,...p(e.result.records,"fwbt","fwtime",null)]),h=!1})).catch((e=>{t("log","at pages/document/index.vue:89","err",e)}))):1==S.value?(h=!0,g({pageNo:d,pageSize:15,neirong:f()}).then((e=>{e.success&&(u.value=[...u.value,...p(e.result.records,"neirong","fbdw","createTime")]),h=!1})).catch((e=>{t("log","at pages/document/index.vue:142","err",e)}))):2==S.value?(h=!0,(0==b?w:y)({pageNo:d,pageSize:15,zdmc:f()}).then((e=>{if(e.success){let t=0==b?"zbbm_dictText":"sbbm";u.value=[...u.value,...p(e.result.records,"zdmc",t,null)]}h=!1})).catch((e=>{t("log","at pages/document/index.vue:108","err",e)}))):3==S.value&&(h=!0,v({pageNo:d,pageSize:15,flfgmc:f()}).then((e=>{e.success&&(u.value=[...u.value,...p(e.result.records,"flfgmc","ssbm",null)]),h=!1})).catch((e=>{t("log","at pages/document/index.vue:125","err",e)})))};return l((()=>{d=1,h=!1,u.value=[],E(),uni.stopPullDownRefresh()})),o((()=>{h||(d++,E())})),(t,i)=>{const r=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"nav_box f-row aic jcb"},[e.createElementVNode("view",{class:"back f-row aic",onClick:_},[e.createVNode(r,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"search f-row aic"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":i[0]||(i[0]=e=>c.value=e),onConfirm:k,onBlur:i[1]||(i[1]=e=>s.value=!c.value),onFocus:i[2]||(i[2]=e=>s.value=!1)},null,544),[[e.vModelText,c.value]]),s.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic"},[e.createElementVNode("image",{src:"/static/search.png",mode:""}),e.createElementVNode("text",null,"搜索")])):e.createCommentVNode("",!0)])])])),_:1}),e.createElementVNode("view",{class:"list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item",key:n,onClick:e=>((e,t)=>{if(3==S.value)return Pe(t.mingcheng);Ne(e,(()=>{uni.navigateTo({url:e})}))})(`/pages/document/detail?data=${JSON.stringify(t)}&id=${S.value}`,t)},[e.createElementVNode("view",{class:"title"},e.toDisplayString(t._title),1),e.createElementVNode("view",{class:"time_box f-row aic"},[e.createElementVNode("view",{class:"time"},e.toDisplayString(t._time),1),t._depart?(e.openBlock(),e.createElementBlock("view",{key:0,class:"look f-row aic"},e.toDisplayString(t._depart),1)):e.createCommentVNode("",!0)])],8,["onClick"])))),128))])],2)}}},[["__scopeId","data-v-18757efe"]]),at=q({__name:"detail",setup(t){const n=H(),i=e.ref({});return r((e=>{i.value=JSON.parse(e.data),0==e.id?i.value.pdf=i.value.wjbt:2==e.id?i.value.jdwj?i.value.pdf=i.value.jdwj+","+i.value.sszd:i.value.pdf=i.value.sszd:3==e.id&&(i.value.pdf=i.value.mingcheng)})),(t,a)=>{var s,r;return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createElementVNode("view",{class:"title_box"},[e.createElementVNode("view",{class:"title"},e.toDisplayString(i.value._title),1),e.createElementVNode("view",{class:"time"},e.toDisplayString(i.value._time),1)]),e.createElementVNode("view",{class:"document f-row"},[e.createElementVNode("text",{class:""}," 附件: "),e.createElementVNode("view",{class:"f-col"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(null==(r=null==(s=i.value)?void 0:s.pdf)?void 0:r.split(","),((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"",style:{padding:"5rpx 0"},onClick:n=>e.unref(Pe)(t)},e.toDisplayString(t),9,["onClick"])))),256))])])],2)}}},[["__scopeId","data-v-b79b801f"]]),st=q({__name:"index",setup(t){const i=H(),a=e.ref(!0),s=e.ref("");r((()=>{}));const o=()=>{uni.navigateBack()};return(t,r)=>{const l=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(i).isgray})},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"nav_box f-row aic jcb"},[e.createElementVNode("view",{class:"back f-row aic",onClick:o},[e.createVNode(l,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"search f-row aic"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":r[0]||(r[0]=e=>s.value=e),onConfirm:r[1]||(r[1]=(...e)=>t.search&&t.search(...e)),onBlur:r[2]||(r[2]=e=>a.value=!s.value),onFocus:r[3]||(r[3]=e=>a.value=!1)},null,544),[[e.vModelText,s.value]]),a.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic"},[e.createElementVNode("image",{src:"/static/search.png",mode:""}),e.createElementVNode("text",null,"搜索")])):e.createCommentVNode("",!0)])])])),_:1}),e.createElementVNode("view",{class:"list_box"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(3,((t,n)=>e.createElementVNode("view",{class:"list",key:n,onClick:r[4]||(r[4]=e=>{var t;Ne(t="/pages/meeting/detail?id=1",(()=>{uni.navigateTo({url:t})}))})},[e.createElementVNode("view",{class:"title f-row aic jcb"},[e.createElementVNode("view",{class:""}," 年度部门讨论会议 "),e.createElementVNode("text",null,"1分钟前")]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 发起人: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议日期: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议地点: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议内容: "),e.createElementVNode("text",null,"周如意")])]),e.createElementVNode("view",{class:"handled f-row"},[e.createElementVNode("view",{class:"refused"}," 已拒绝 ")])]))),64))])],2)}}},[["__scopeId","data-v-c839cafa"]]),rt=q({__name:"detail",setup(n){const i=H();r((()=>{a()}));const a=()=>{var e;(e={mainid:1},u({url:"/zhgl_hygl/zhglHyglHyyc/listbymainid",method:"get",data:e})).then((e=>{e.success})).catch((e=>{t("log","at pages/meeting/detail.vue:94",e)}))};return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(i).isgray}])},[e.createElementVNode("view",{class:"list_box"},[e.createElementVNode("view",{class:"list"},[e.createElementVNode("view",{class:"title f-row aic jcb"},[e.createElementVNode("view",{class:""}," 年度部门讨论会议 "),e.createElementVNode("text",null,"1分钟前")]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议状态: "),e.createElementVNode("text",null,"待开始/已开始/已结束")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 发起人: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议日期: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议地点: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:"f-row aic jcb"},[e.createElementVNode("view",{class:""}," 会议内容: "),e.createElementVNode("text",null,"周如意")]),e.createElementVNode("view",{class:""},[e.createElementVNode("view",{class:""}," 参与人员: "),e.createElementVNode("view",{class:"person f-row aic"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(7,((t,n)=>e.createElementVNode("view",{class:"item f-col aic",key:n},[e.createElementVNode("image",{src:"",mode:""}),e.createElementVNode("view",{class:"name"}," 周如意 ")]))),64))])])])])]),e.createElementVNode("view",{class:"btn f-row aic jcb"},[e.createElementVNode("view",{class:"refuse"}," 拒绝 "),e.createElementVNode("view",{class:"agree",onClick:n[0]||(n[0]=(...e)=>t.openpop&&t.openpop(...e))}," 同意 ")])],2))}},[["__scopeId","data-v-7441efc4"]]),ot={pages:[{path:"pages/login/login",style:{navigationStyle:"custom"}},{path:"pages/tab/index",style:{navigationStyle:"custom",enablePullDownRefresh:!0}},{path:"pages/task/todotask",style:{navigationStyle:"custom",enablePullDownRefresh:!0}},{path:"pages/tab/office",style:{navigationStyle:"custom"}},{path:"pages/tab/my",style:{navigationStyle:"custom"}},{path:"pages/task/index",style:{enablePullDownRefresh:!0,"app-plus":{titleNView:{titleText:"我的任务",titleColor:"#fff"}}}},{path:"pages/task/handle",style:{navigationStyle:"custom"}},{path:"pages/talk/message_list",style:{navigationBarTitleText:"消息",enablePullDownRefresh:!0,navigationBarTextStyle:"white"}},{path:"pages/talk/conversation",style:{navigationBarTitleText:"昵称",enablePullDownRefresh:!0,navigationBarTextStyle:"white"}},{path:"pages/talk/system",style:{navigationBarTitleText:"系统通知",enablePullDownRefresh:!0,navigationBarTextStyle:"white"}},{path:"pages/document/index",style:{navigationStyle:"custom",enablePullDownRefresh:!0}},{path:"pages/document/detail",style:{navigationBarTitleText:"详情",navigationBarTextStyle:"white"}},{path:"pages/meeting/index",style:{navigationStyle:"custom"}},{path:"pages/meeting/detail",style:{navigationBarTitleText:"详情",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/leave/application",style:{navigationBarTitleText:"请假申请",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/checkin/index",style:{navigationStyle:"custom"}},{path:"pages/useredit/useredit",style:{navigationBarTitleText:"资料编辑",navigationBarTextStyle:"white"}},{path:"pages/useredit/address",style:{navigationBarTitleText:"地址",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/useredit/add_address",style:{navigationBarTitleText:"添加地址",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/useredit/addressbook",style:{navigationBarTitleText:"通讯录",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/safe/manage",style:{navigationStyle:"custom"}},{path:"pages/product/index",style:{navigationBarTitleText:"生产数据",enablePullDownRefresh:!1,navigationBarTextStyle:"white"}},{path:"pages/userlist/index",style:{navigationBarTitleText:"",navigationBarTextStyle:"white"}},{path:"pages/safe/detail",style:{navigationStyle:"custom"}},{path:"pages/zhiban/index",style:{navigationBarTitleText:"值班信息",navigationBarTextStyle:"white"}},{path:"pages/task/self",style:{navigationBarTitleText:"本人发起",navigationBarTextStyle:"white"}}],tabBar:{color:"#333333",selectedColor:"#01508B",borderStyle:"black",backgroundColor:"#FFFFFF",list:[{text:"首页",pagePath:"pages/tab/index",iconPath:"static/tab/index1.png",selectedIconPath:"static/tab/index2.png"},{text:"任务",pagePath:"pages/task/todotask",iconPath:"static/tab/office1.png",selectedIconPath:"static/tab/office2.png"},{text:"办公",pagePath:"pages/tab/office",iconPath:"static/tab/product1.png",selectedIconPath:"static/tab/product2.png"},{text:"我的",pagePath:"pages/tab/my",iconPath:"static/tab/user1.png",selectedIconPath:"static/tab/user2.png"}]},globalStyle:{"app-plus":{titleNView:{backgroundImage:"linear-gradient(to left , #256FBC, #044D87)"}}},uniIdRouter:{}};function lt(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var ct=lt((function(e,t){var n;e.exports=(n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),i={},a=i.lib={},s=a.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},r=a.WordArray=s.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes,a=e.sigBytes;if(this.clamp(),i%4)for(var s=0;s>>2]>>>24-s%4*8&255;t[i+s>>>2]|=r<<24-(i+s)%4*8}else for(s=0;s>>2]=n[s>>>2];return this.sigBytes+=a,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,i=[],a=function(t){var n=987654321,i=4294967295;return function(){var a=((n=36969*(65535&n)+(n>>16)&i)<<16)+(t=18e3*(65535&t)+(t>>16)&i)&i;return a/=4294967296,(a+=.5)*(e.random()>.5?1:-1)}},s=0;s>>2]>>>24-a%4*8&255;i.push((s>>>4).toString(16)),i.push((15&s).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new r.init(n,t/2)}},c=o.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],a=0;a>>2]>>>24-a%4*8&255;i.push(String.fromCharCode(s))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new r.init(n,t)}},u=o.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},d=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new r.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,i=n.words,a=n.sigBytes,s=this.blockSize,o=a/(4*s),l=(o=t?e.ceil(o):e.max((0|o)-this._minBufferSize,0))*s,c=e.min(4*l,a);if(l){for(var u=0;u>>24)|4278255360&(a<<24|a>>>8)}var s=this._hash.words,r=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],v=e[t+6],y=e[t+7],w=e[t+8],k=e[t+9],_=e[t+10],S=e[t+11],b=e[t+12],E=e[t+13],x=e[t+14],D=e[t+15],T=s[0],N=s[1],C=s[2],V=s[3];T=c(T,N,C,V,r,7,o[0]),V=c(V,T,N,C,l,12,o[1]),C=c(C,V,T,N,p,17,o[2]),N=c(N,C,V,T,f,22,o[3]),T=c(T,N,C,V,m,7,o[4]),V=c(V,T,N,C,g,12,o[5]),C=c(C,V,T,N,v,17,o[6]),N=c(N,C,V,T,y,22,o[7]),T=c(T,N,C,V,w,7,o[8]),V=c(V,T,N,C,k,12,o[9]),C=c(C,V,T,N,_,17,o[10]),N=c(N,C,V,T,S,22,o[11]),T=c(T,N,C,V,b,7,o[12]),V=c(V,T,N,C,E,12,o[13]),C=c(C,V,T,N,x,17,o[14]),T=u(T,N=c(N,C,V,T,D,22,o[15]),C,V,l,5,o[16]),V=u(V,T,N,C,v,9,o[17]),C=u(C,V,T,N,S,14,o[18]),N=u(N,C,V,T,r,20,o[19]),T=u(T,N,C,V,g,5,o[20]),V=u(V,T,N,C,_,9,o[21]),C=u(C,V,T,N,D,14,o[22]),N=u(N,C,V,T,m,20,o[23]),T=u(T,N,C,V,k,5,o[24]),V=u(V,T,N,C,x,9,o[25]),C=u(C,V,T,N,f,14,o[26]),N=u(N,C,V,T,w,20,o[27]),T=u(T,N,C,V,E,5,o[28]),V=u(V,T,N,C,p,9,o[29]),C=u(C,V,T,N,y,14,o[30]),T=d(T,N=u(N,C,V,T,b,20,o[31]),C,V,g,4,o[32]),V=d(V,T,N,C,w,11,o[33]),C=d(C,V,T,N,S,16,o[34]),N=d(N,C,V,T,x,23,o[35]),T=d(T,N,C,V,l,4,o[36]),V=d(V,T,N,C,m,11,o[37]),C=d(C,V,T,N,y,16,o[38]),N=d(N,C,V,T,_,23,o[39]),T=d(T,N,C,V,E,4,o[40]),V=d(V,T,N,C,r,11,o[41]),C=d(C,V,T,N,f,16,o[42]),N=d(N,C,V,T,v,23,o[43]),T=d(T,N,C,V,k,4,o[44]),V=d(V,T,N,C,b,11,o[45]),C=d(C,V,T,N,D,16,o[46]),T=h(T,N=d(N,C,V,T,p,23,o[47]),C,V,r,6,o[48]),V=h(V,T,N,C,y,10,o[49]),C=h(C,V,T,N,x,15,o[50]),N=h(N,C,V,T,g,21,o[51]),T=h(T,N,C,V,b,6,o[52]),V=h(V,T,N,C,f,10,o[53]),C=h(C,V,T,N,_,15,o[54]),N=h(N,C,V,T,l,21,o[55]),T=h(T,N,C,V,w,6,o[56]),V=h(V,T,N,C,D,10,o[57]),C=h(C,V,T,N,v,15,o[58]),N=h(N,C,V,T,E,21,o[59]),T=h(T,N,C,V,m,6,o[60]),V=h(V,T,N,C,S,10,o[61]),C=h(C,V,T,N,p,15,o[62]),N=h(N,C,V,T,k,21,o[63]),s[0]=s[0]+T|0,s[1]=s[1]+N|0,s[2]=s[2]+C|0,s[3]=s[3]+V|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,a=8*t.sigBytes;n[a>>>5]|=128<<24-a%32;var s=e.floor(i/4294967296),r=i;n[15+(a+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),n[14+(a+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(n.length+1),this._process();for(var o=this._hash,l=o.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return o},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,i,a,s,r){var o=e+(t&n|~t&i)+a+r;return(o<>>32-s)+t}function u(e,t,n,i,a,s,r){var o=e+(t&i|n&~i)+a+r;return(o<>>32-s)+t}function d(e,t,n,i,a,s,r){var o=e+(t^n^i)+a+r;return(o<>>32-s)+t}function h(e,t,n,i,a,s,r){var o=e+(n^(t|~i))+a+r;return(o<>>32-s)+t}t.MD5=s._createHelper(l),t.HmacMD5=s._createHmacHelper(l)}(Math),n.MD5)})),lt((function(e,t){var n,i,a;e.exports=(i=(n=ut).lib.Base,a=n.enc.Utf8,void(n.algo.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var s=this._oKey=t.clone(),r=this._iKey=t.clone(),o=s.words,l=r.words,c=0;c>>2]>>>24-s%4*8&255)<<16|(t[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|t[s+2>>>2]>>>24-(s+2)%4*8&255,o=0;o<4&&s+.75*o>>6*(3-o)&63));var l=i.charAt(64);if(l)for(;a.length%4;)a.push(l);return a.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s>>6-r%4*2;i[s>>>2]|=(o|l)<<24-s%4*8,s++}return a.create(i,s)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)}));const ft="FUNCTION",mt="pending",gt="rejected";function vt(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function yt(e){return"object"===vt(e)}function wt(e){return"function"==typeof e}function kt(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const _t="REJECTED",St="NOT_PENDING";class bt{constructor({createPromise:e,retryRule:t=_t}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case _t:return this.status===gt;case St:return this.status!==mt}}exec(){return this.needRetry?(this.status=mt,this.promise=this.createPromise().then((e=>(this.status="fulfilled",Promise.resolve(e))),(e=>(this.status=gt,Promise.reject(e)))),this.promise):this.promise}}function Et(e){return e&&"string"==typeof e?JSON.parse(e):e}const xt=Et([]);Et("");const Dt=Et('[{"provider":"aliyun","spaceName":"szcx-app","spaceId":"mp-a5a4405f-df9a-4c27-b553-dca803accfbc","clientSecret":"vYZ7Nv/mnOB6vUulLJ4B7Q==","endpoint":"https://api.next.bspapp.com"}]')||[];let Tt="";try{Tt="__UNI__9F097F0"}catch(gn){}let Nt={};function Ct(e,t={}){var n,i;return n=Nt,i=e,Object.prototype.hasOwnProperty.call(n,i)||(Nt[e]=t),Nt[e]}Nt=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={};const Vt=["invoke","success","fail","complete"],It=Ct("_globalUniCloudInterceptor");function Bt(e,t){It[e]||(It[e]={}),yt(t)&&Object.keys(t).forEach((n=>{Vt.indexOf(n)>-1&&function(e,t,n){let i=It[e][t];i||(i=It[e][t]=[]),-1===i.indexOf(n)&&wt(n)&&i.push(n)}(e,n,t[n])}))}function At(e,t){It[e]||(It[e]={}),yt(t)?Object.keys(t).forEach((n=>{Vt.indexOf(n)>-1&&function(e,t,n){const i=It[e][t];if(!i)return;const a=i.indexOf(n);a>-1&&i.splice(a,1)}(e,n,t[n])})):delete It[e]}function Mt(e,t){return e&&0!==e.length?e.reduce(((e,n)=>e.then((()=>n(t)))),Promise.resolve()):Promise.resolve()}function Pt(e,t){return It[e]&&It[e][t]||[]}function Rt(e){Bt("callObject",e)}const Ot=Ct("_globalUniCloudListener"),Lt="response",Ft="needLogin",jt="refreshToken",Ut="clientdb",$t="cloudfunction",zt="cloudobject";function Ht(e){return Ot[e]||(Ot[e]=[]),Ot[e]}function qt(e,t){const n=Ht(e);n.includes(t)||n.push(t)}function Kt(e,t){const n=Ht(e),i=n.indexOf(t);-1!==i&&n.splice(i,1)}function Jt(e,t){const n=Ht(e);for(let i=0;i{Yt&&e(),function t(){if("function"==typeof getCurrentPages){const t=getCurrentPages();t&&t[0]&&(Yt=!0,e())}Yt||setTimeout((()=>{t()}),30)}()})),Wt)}function Zt(e){const t={};for(const n in e){const i=e[n];wt(i)&&(t[n]=kt(i))}return t}class Qt extends Error{constructor(e){super(e.message),this.errMsg=e.message||e.errMsg||"unknown system error",this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=0){if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}var Xt={request:e=>uni.request(e),uploadFile:e=>uni.uploadFile(e),setStorageSync:(e,t)=>uni.setStorageSync(e,t),getStorageSync:e=>uni.getStorageSync(e),removeStorageSync:e=>uni.removeStorageSync(e),clearStorageSync:()=>uni.clearStorageSync()};function en(e){return e&&en(e.__v_raw)||e}function tn(){return{token:Xt.getStorageSync("uni_id_token")||Xt.getStorageSync("uniIdToken"),tokenExpired:Xt.getStorageSync("uni_id_token_expired")}}function nn({token:e,tokenExpired:t}={}){e&&Xt.setStorageSync("uni_id_token",e),t&&Xt.setStorageSync("uni_id_token_expired",t)}let an,sn;function rn(){return an||(an=uni.getSystemInfoSync()),an}function on(){let e,t;try{if(uni.getLaunchOptionsSync){if(uni.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;const{scene:n,channel:i}=uni.getLaunchOptionsSync();e=i,t=n}}catch(n){}return{channel:e,scene:t}}function ln(){const e=uni.getLocale&&uni.getLocale()||"en";if(sn)return{...sn,locale:e,LOCALE:e};const t=rn(),{deviceId:n,osName:i,uniPlatform:a,appId:s}=t,r=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"];for(let o=0;o{t(Object.assign(e,{complete(e){e||(e={});const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){const n=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",a=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return i(new Qt({code:n,message:a,requestId:t}))}const a=e.data;if(a.error)return i(new Qt({code:a.error.code,message:a.error.message,requestId:t}));a.result=a.data,a.requestId=t,delete a.data,n(a)}}))}))},dn=function(e){return pt.stringify(ht.parse(e))},hn=class{constructor(e){["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=Xt,this._getAccessTokenPromiseHub=new bt({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>{if(!e.result||!e.result.accessToken)throw new Qt({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(e.result.accessToken)})),retryRule:St})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return un(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then((()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch((t=>new Promise(((e,n)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((()=>this.getAccessToken())).then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})))):this.getAccessToken().then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=cn(t.data,this.config.clientSecret),t}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),i={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,i["x-basement-token"]=this.accessToken),i["x-serverless-sign"]=cn(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:i}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:n,filePath:i,fileType:a,onUploadProgress:s}){return new Promise(((r,o)=>{const l=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:i,fileType:a,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?r(e):o(new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){o(new Qt({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((e=>{s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}async uploadFile({filePath:e,cloudPath:t,fileType:n="image",cloudPathAsRealPath:i=!1,onUploadProgress:a,config:s}){if("string"!==vt(t))throw new Qt({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new Qt({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new Qt({code:"INVALID_PARAM",message:"cloudPath不合法"});const r=s&&s.envType||this.config.envType;if(i&&("/"!==t[0]&&(t="/"+t),t.indexOf("\\")>-1))throw new Qt({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});const o=(await this.getOSSUploadOptionsFromPath({env:r,filename:i?t.split("/").pop():t,fileId:i?t:void 0})).result,l="https://"+o.cdnDomain+"/"+o.ossPath,{securityToken:c,accessKeyId:u,signature:d,host:h,ossPath:p,id:f,policy:m,ossCallbackUrl:g}=o,v={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:u,Signature:d,host:h,id:f,key:p,policy:m,success_action_status:200};if(c&&(v["x-oss-security-token"]=c),g){const e=JSON.stringify({callbackUrl:g,callbackBody:JSON.stringify({fileId:f,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});v.callback=dn(e)}const y={url:"https://"+o.host,formData:v,fileName:"file",name:"file",filePath:e,fileType:n};if(await this.uploadFileToOSS(Object.assign({},y,{onUploadProgress:a})),g)return{success:!0,filePath:e,fileID:l};if((await this.reportOSSUpload({id:f})).success)return{success:!0,filePath:e,fileID:l};throw new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:e}={}){return new Promise(((t,n)=>{Array.isArray(e)&&0!==e.length||n(new Qt({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((e=>({fileID:e,tempFileURL:e})))})}))}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new Qt({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.info",params:JSON.stringify({id:e.map((e=>e.split("?")[0])).join(",")})};return{fileList:(await this.request(this.setupRequest(t))).result}}},pn={init(e){const t=new hn(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};const fn="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var mn,gn;(gn=mn||(mn={})).local="local",gn.none="none",gn.session="session";var vn=function(){},yn=lt((function(e,t){var n;e.exports=(n=ut,function(e){var t=n,i=t.lib,a=i.WordArray,s=i.Hasher,r=t.algo,o=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),i=2;i<=n;i++)if(!(t%i))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var i=2,a=0;a<64;)t(i)&&(a<8&&(o[a]=n(e.pow(i,.5))),l[a]=n(e.pow(i,1/3)),a++),i++}();var c=[],u=r.SHA256=s.extend({_doReset:function(){this._hash=new a.init(o.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],a=n[1],s=n[2],r=n[3],o=n[4],u=n[5],d=n[6],h=n[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var f=c[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[p-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=m+c[p-7]+v+c[p-16]}var y=i&a^i&s^a&s,w=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),k=h+((o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25))+(o&u^~o&d)+l[p]+c[p];h=d,d=u,u=o,o=r+k|0,r=s,s=a,a=i,i=k+(w+y)|0}n[0]=n[0]+i|0,n[1]=n[1]+a|0,n[2]=n[2]+s|0,n[3]=n[3]+r|0,n[4]=n[4]+o|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,a=8*t.sigBytes;return n[a>>>5]|=128<<24-a%32,n[14+(a+64>>>9<<4)]=e.floor(i/4294967296),n[15+(a+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=s._createHelper(u),t.HmacSHA256=s._createHmacHelper(u)}(Math),n.SHA256)})),wn=yn,kn=lt((function(e,t){e.exports=ut.HmacSHA256}));const _n=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new Qt({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise(((t,n)=>{e=(e,i)=>e?n(e):t(i)}));return e.promise=t,e};function Sn(e){return void 0===e}function bn(e){return"[object Null]"===Object.prototype.toString.call(e)}var En;!function(e){e.WEB="web",e.WX_MP="wx_mp"}(En||(En={}));const xn={adapter:null,runtime:void 0},Dn=["anonymousUuidKey"];class Tn extends vn{constructor(){super(),xn.adapter.root.tcbObject||(xn.adapter.root.tcbObject={})}setItem(e,t){xn.adapter.root.tcbObject[e]=t}getItem(e){return xn.adapter.root.tcbObject[e]}removeItem(e){delete xn.adapter.root.tcbObject[e]}clear(){delete xn.adapter.root.tcbObject}}function Nn(e,t){switch(e){case"local":return t.localStorage||new Tn;case"none":return new Tn;default:return t.sessionStorage||new Tn}}class Cn{constructor(e){if(!this._storage){this._persistence=xn.adapter.primaryStorage||e.persistence,this._storage=Nn(this._persistence,xn.adapter);const t=`access_token_${e.env}`,n=`access_token_expire_${e.env}`,i=`refresh_token_${e.env}`,a=`anonymous_uuid_${e.env}`,s=`login_type_${e.env}`,r=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:i,anonymousUuidKey:a,loginTypeKey:s,userInfoKey:r}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const n=Nn(e,xn.adapter);for(const i in this.keys){const e=this.keys[i];if(t&&Dn.includes(i))continue;const a=this._storage.getItem(e);Sn(a)||bn(a)||(n.setItem(e,a),this._storage.removeItem(e))}this._storage=n}setStore(e,t,n){if(!this._storage)return;const i={version:n||"localCachev1",content:t},a=JSON.stringify(i);try{this._storage.setItem(e,a)}catch(s){throw s}}getStore(e,t){try{if(!this._storage)return}catch(i){return""}t=t||"localCachev1";const n=this._storage.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""}removeStore(e){this._storage.removeItem(e)}}const Vn={},In={};function Bn(e){return Vn[e]}class An{constructor(e,t){this.data=t||null,this.name=e}}class Mn extends An{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const Pn=new class{constructor(){this._listeners={}}on(e,t){return n=e,i=t,(a=this._listeners)[n]=a[n]||[],a[n].push(i),this;var n,i,a}off(e,t){return function(e,t,n){if(n&&n[e]){const i=n[e].indexOf(t);-1!==i&&n[e].splice(i,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof Mn)return console.error(e.error),this;const n="string"==typeof e?new An(e,t||{}):e,i=n.name;if(this._listens(i)){n.target=this;const e=this._listeners[i]?[...this._listeners[i]]:[];for(const t of e)t.call(this,n)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function Rn(e,t){Pn.on(e,t)}function On(e,t={}){Pn.fire(e,t)}function Ln(e,t){Pn.off(e,t)}const Fn="loginStateChanged",jn="loginStateExpire",Un="loginTypeChanged",$n="anonymousConverted",zn="refreshAccessToken";var Hn;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(Hn||(Hn={}));const qn=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Kn={"X-SDK-Version":"1.3.5"};function Jn(e,t,n){const i=e[t];e[t]=function(t){const a={},s={};n.forEach((n=>{const{data:i,headers:r}=n.call(e,t);Object.assign(a,i),Object.assign(s,r)}));const r=t.data;return r&&(()=>{var e;if(e=r,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...r,...a};else for(const t in a)r.append(t,a[t])})(),t.headers={...t.headers||{},...s},i.call(e,t)}}function Wn(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...Kn,"x-seqid":e}}}class Yn{constructor(e={}){var t;this.config=e,this._reqClass=new xn.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=Bn(this.config.env),this._localCache=(t=this.config.env,In[t]),Jn(this._reqClass,"post",[Wn]),Jn(this._reqClass,"upload",[Wn]),Jn(this._reqClass,"download",[Wn])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(n){t=n}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n,loginTypeKey:i,anonymousUuidKey:a}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let s=this._cache.getStore(n);if(!s)throw new Qt({message:"未登录CloudBase"});const r={refresh_token:s},o=await this.request("auth.fetchAccessTokenWithRefreshToken",r);if(o.data.code){const{code:e}=o.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(i)===Hn.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(a),t=this._cache.getStore(n),i=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(i.refresh_token),this._refreshAccessToken()}On(jn),this._cache.removeStore(n)}throw new Qt({code:o.data.code,message:`刷新access token失败:${o.data.code}`})}if(o.data.access_token)return On(zn),this._cache.setStore(e,o.data.access_token),this._cache.setStore(t,o.data.access_token_expire+Date.now()),{accessToken:o.data.access_token,accessTokenExpire:o.data.access_token_expire};o.data.refresh_token&&(this._cache.removeStore(n),this._cache.setStore(n,o.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n}=this._cache.keys;if(!this._cache.getStore(n))throw new Qt({message:"refresh token不存在,登录状态异常"});let i=this._cache.getStore(e),a=this._cache.getStore(t),s=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(i,a))&&(s=!1),(!i||!a||a{e.wxOpenId&&e.wxPublicId&&(t=!0)})),{users:n,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:n,avatarUrl:i,province:a,country:s,city:r}=e,{data:o}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:n,avatarUrl:i,province:a,country:s,city:r});this.setLocalUserInfo(o)}async refresh(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((e=>{this[e]=t[e]})),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class ei{constructor(e){if(!e)throw new Qt({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Bn(e);const{refreshTokenKey:t,accessTokenKey:n,accessTokenExpireKey:i}=this._cache.keys,a=this._cache.getStore(t),s=this._cache.getStore(n),r=this._cache.getStore(i);this.credential={refreshToken:a,accessToken:s,accessTokenExpire:r},this.user=new Xn(e)}get isAnonymousAuth(){return this.loginType===Hn.ANONYMOUS}get isCustomAuth(){return this.loginType===Hn.CUSTOM}get isWeixinAuth(){return this.loginType===Hn.WECHAT||this.loginType===Hn.WECHAT_OPEN||this.loginType===Hn.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}let ti=class extends Qn{async signIn(){this._cache.updatePersistence("local");const{anonymousUuidKey:e,refreshTokenKey:t}=this._cache.keys,n=this._cache.getStore(e)||void 0,i=this._cache.getStore(t)||void 0,a=await this._request.send("auth.signInAnonymously",{anonymous_uuid:n,refresh_token:i});if(a.uuid&&a.refresh_token){this._setAnonymousUUID(a.uuid),this.setRefreshToken(a.refresh_token),await this._request.refreshAccessToken(),On(Fn),On(Un,{env:this.config.env,loginType:Hn.ANONYMOUS,persistence:"local"});const e=new ei(this.config.env);return await e.user.refresh(),e}throw new Qt({message:"匿名登录失败"})}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:n}=this._cache.keys,i=this._cache.getStore(t),a=this._cache.getStore(n),s=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:i,refresh_token:a,ticket:e});if(s.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(s.refresh_token),await this._request.refreshAccessToken(),On($n,{env:this.config.env}),On(Un,{loginType:Hn.CUSTOM,persistence:"local"}),{credential:{refreshToken:s.refresh_token}};throw new Qt({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(n,Hn.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}};class ni extends Qn{async signIn(e){if("string"!=typeof e)throw new Qt({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,n=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(n.refresh_token)return this.setRefreshToken(n.refresh_token),await this._request.refreshAccessToken(),On(Fn),On(Un,{env:this.config.env,loginType:Hn.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new ei(this.config.env);throw new Qt({message:"自定义登录失败"})}}class ii extends Qn{async signIn(e,t){if("string"!=typeof e)throw new Qt({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:n}=this._cache.keys,i=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:a,access_token:s,access_token_expire:r}=i;if(a)return this.setRefreshToken(a),s&&r?this.setAccessToken(s,r):await this._request.refreshAccessToken(),await this.refreshUserInfo(),On(Fn),On(Un,{env:this.config.env,loginType:Hn.EMAIL,persistence:this.config.persistence}),new ei(this.config.env);throw i.code?new Qt({code:i.code,message:`邮箱登录失败: ${i.message}`}):new Qt({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class ai extends Qn{async signIn(e,t){if("string"!=typeof e)throw new Qt({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:n}=this._cache.keys,i=await this._request.send("auth.signIn",{loginType:Hn.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:a,access_token_expire:s,access_token:r}=i;if(a)return this.setRefreshToken(a),r&&s?this.setAccessToken(r,s):await this._request.refreshAccessToken(),await this.refreshUserInfo(),On(Fn),On(Un,{env:this.config.env,loginType:Hn.USERNAME,persistence:this.config.persistence}),new ei(this.config.env);throw i.code?new Qt({code:i.code,message:`用户名密码登录失败: ${i.message}`}):new Qt({message:"用户名密码登录失败"})}}class si{constructor(e){this.config=e,this._cache=Bn(e.env),this._request=Zn(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Rn(Un,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new ti(this.config)}customAuthProvider(){return new ni(this.config)}emailAuthProvider(){return new ii(this.config)}usernameAuthProvider(){return new ai(this.config)}async signInAnonymously(){return new ti(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new ii(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new ai(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new ti(this.config)),Rn($n,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===Hn.ANONYMOUS)throw new Qt({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:n}=this._cache.keys,i=this._cache.getStore(e);if(!i)return;const a=await this._request.send("auth.logout",{refresh_token:i});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(n),On(Fn),On(Un,{env:this.config.env,loginType:Hn.NULL,persistence:this.config.persistence}),a}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){Rn(Fn,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){Rn(jn,e.bind(this))}onAccessTokenRefreshed(e){Rn(zn,e.bind(this))}onAnonymousConverted(e){Rn($n,e.bind(this))}onLoginTypeChanged(e){Rn(Un,(()=>{const t=this.hasLoginState();e.call(this,t)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{refreshTokenKey:e}=this._cache.keys;return this._cache.getStore(e)?new ei(this.config.env):null}async isUsernameRegistered(e){if("string"!=typeof e)throw new Qt({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new ni(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((e=>e.code?e:{...e.data,requestId:e.seqId}))}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,n=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+n}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:n,env:i}=e.data;i===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const ri=function(e,t){t=t||_n();const n=Zn(this.config.env),{cloudPath:i,filePath:a,onUploadProgress:s,fileType:r="image"}=e;return n.send("storage.getUploadMetadata",{path:i}).then((e=>{const{data:{url:o,authorization:l,token:c,fileId:u,cosFileId:d},requestId:h}=e,p={key:i,signature:l,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":c};n.upload({url:o,data:p,file:a,name:i,fileType:r,onUploadProgress:s}).then((e=>{201===e.statusCode?t(null,{fileID:u,requestId:h}):t(new Qt({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},oi=function(e,t){t=t||_n();const n=Zn(this.config.env),{cloudPath:i}=e;return n.send("storage.getUploadMetadata",{path:i}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},li=function({fileList:e},t){if(t=t||_n(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let i of e)if(!i||"string"!=typeof i)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const n={fileid_list:e};return Zn(this.config.env).send("storage.batchDeleteFile",n).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},ci=function({fileList:e},t){t=t||_n(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let n=[];for(let a of e)"object"==typeof a?(a.hasOwnProperty("fileID")&&a.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),n.push({fileid:a.fileID,max_age:a.maxAge})):"string"==typeof a?n.push({fileid:a}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const i={file_list:n};return Zn(this.config.env).send("storage.batchGetDownloadUrl",i).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},ui=async function({fileID:e},t){const n=(await ci.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==n.code)return t?t(n):new Promise((e=>{e(n)}));const i=Zn(this.config.env);let a=n.download_url;if(a=encodeURI(a),!t)return i.download({url:a});t(await i.download({url:a}))},di=function({name:e,data:t,query:n,parse:i,search:a},s){const r=s||_n();let o;try{o=t?JSON.stringify(t):""}catch(c){return Promise.reject(c)}if(!e)return Promise.reject(new Qt({code:"PARAM_ERROR",message:"函数名不能为空"}));const l={inQuery:n,parse:i,search:a,function_name:e,request_data:o};return Zn(this.config.env).send("functions.invokeFunction",l).then((e=>{if(e.code)r(null,e);else{let n=e.data.response_data;if(i)r(null,{result:n,requestId:e.requestId});else try{n=JSON.parse(e.data.response_data),r(null,{result:n,requestId:e.requestId})}catch(t){r(new Qt({message:"response data must be json"}))}}return r.promise})).catch((e=>{r(e)})),r.promise},hi={timeout:15e3,persistence:"session"},pi={};class fi{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(xn.adapter||(this.requestClient=new xn.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...hi,...e},!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new fi(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||xn.adapter.primaryStorage||hi.persistence;var n;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;Vn[t]=new Cn(e),In[t]=new Cn({...e,persistence:"local"})}(this.config),n=this.config,Gn[n.env]=new Yn(n),this.authObj=new si(this.config),this.authObj}on(e,t){return Rn.apply(this,[e,t])}off(e,t){return Ln.apply(this,[e,t])}callFunction(e,t){return di.apply(this,[e,t])}deleteFile(e,t){return li.apply(this,[e,t])}getTempFileURL(e,t){return ci.apply(this,[e,t])}downloadFile(e,t){return ui.apply(this,[e,t])}uploadFile(e,t){return ri.apply(this,[e,t])}getUploadMetadata(e,t){return oi.apply(this,[e,t])}registerExtension(e){pi[e.name]=e}async invokeExtension(e,t){const n=pi[e];if(!n)throw new Qt({message:`扩展${e} 必须先注册`});return await n.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:n}=function(e){const t=(n=e,"[object Array]"===Object.prototype.toString.call(n)?e:[e]);var n;for(const i of t){const{isMatch:e,genAdapter:t,runtime:n}=i;if(e())return{adapter:t(),runtime:n}}}(e)||{};t&&(xn.adapter=t),n&&(xn.runtime=n)}}var mi=new fi;function gi(e,t,n){void 0===n&&(n={});var i=/\?/.test(t),a="";for(var s in n)""===a?!i&&(t+="?"):a+="&",a+=s+"="+encodeURIComponent(n[s]);return/^http(s)?:\/\//.test(t+=a)?t:""+e+t}class vi{post(e){const{url:t,data:n,headers:i}=e;return new Promise(((e,a)=>{Xt.request({url:gi("https:",t),data:n,method:"POST",header:i,success(t){e(t)},fail(e){a(e)}})}))}upload(e){return new Promise(((t,n)=>{const{url:i,file:a,data:s,headers:r,fileType:o}=e,l=Xt.uploadFile({url:gi("https:",i),name:"file",formData:Object.assign({},s),filePath:a,fileType:o,header:r,success(e){const n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&s.success_action_status&&(n.statusCode=parseInt(s.success_action_status,10)),t(n)},fail(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}const yi={setItem(e,t){Xt.setStorageSync(e,t)},getItem:e=>Xt.getStorageSync(e),removeItem(e){Xt.removeStorageSync(e)},clear(){Xt.clearStorageSync()}};var wi={genAdapter:function(){return{root:{},reqClass:vi,localStorage:yi,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};mi.useAdapters(wi);const ki=mi,_i=ki.init;ki.init=function(e){e.env=e.spaceId;const t=_i.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const n=t.auth;return t.auth=function(e){const t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((e=>{var n;t[e]=(n=t[e],function(e){e=e||{};const{success:t,fail:i,complete:a}=Zt(e);if(!(t||i||a))return n.call(this,e);n.call(this,e).then((e=>{t&&t(e),a&&a(e)}),(e=>{i&&i(e),a&&a(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var Si=ki,bi=class extends hn{getAccessToken(){return new Promise(((e,t)=>{const n="Anonymous_Access_token";this.setAccessToken(n),e(n)}))}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),i={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,i["x-basement-token"]=this.accessToken),i["x-serverless-sign"]=cn(n,this.config.clientSecret);const a=ln();i["x-client-info"]=encodeURIComponent(JSON.stringify(a));const{token:s}=tn();return i["x-client-token"]=s,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(i))}}uploadFileToOSS({url:e,formData:t,name:n,filePath:i,fileType:a,onUploadProgress:s}){return new Promise(((r,o)=>{const l=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:i,fileType:a,success(e){e&&e.statusCode<400?r(e):o(new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){o(new Qt({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((e=>{s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}uploadFile({filePath:e,cloudPath:t,fileType:n="image",onUploadProgress:i}){if(!t)throw new Qt({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let a;return this.getOSSUploadOptionsFromPath({cloudPath:t}).then((t=>{const{url:s,formData:r,name:o}=t.result;a=t.result.fileUrl;const l={url:s,formData:r,name:o,filePath:e,fileType:n};return this.uploadFileToOSS(Object.assign({},l,{onUploadProgress:i}))})).then((()=>this.reportOSSUpload({cloudPath:t}))).then((t=>new Promise(((n,i)=>{t.success?n({success:!0,filePath:e,fileID:a}):i(new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t)).then((e=>{if(e.success)return e.result;throw new Qt({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}getTempFileURL({fileList:e,maxAge:t}={}){if(!Array.isArray(e)||0===e.length)throw new Qt({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const n={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:t})};return this.request(this.setupRequest(n)).then((e=>{if(e.success)return{fileList:e.result.fileList.map((e=>({fileID:e.fileID,tempFileURL:e.tempFileURL})))};throw new Qt({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}},Ei={init(e){const t=new bi(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},xi=lt((function(e,t){e.exports=ut.enc.Hex}));function Di(e="",t={}){const{data:n,functionName:i,method:a,headers:s,signHeaderKeys:r=[],config:o}=t,l=Date.now(),c="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),u=Object.assign({},s,{"x-from-app-id":o.spaceAppId,"x-from-env-id":o.spaceId,"x-to-env-id":o.spaceId,"x-from-instance-id":l,"x-from-function-name":i,"x-client-timestamp":l,"x-alipay-source":"client","x-request-id":c,"x-alipay-callid":c,"x-trace-id":c}),d=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(r),[h="",p=""]=e.split("?")||[],f=function(e){const t=e.signedHeaders.join(";"),n=e.signedHeaders.map((t=>`${t.toLowerCase()}:${e.headers[t]}\n`)).join(""),i=wn(e.body).toString(xi),a=`${e.method.toUpperCase()}\n${e.path}\n${e.query}\n${n}\n${t}\n${i}\n`,s=wn(a).toString(xi),r=`HMAC-SHA256\n${e.timestamp}\n${s}\n`,o=kn(r,e.secretKey).toString(xi);return`HMAC-SHA256 Credential=${e.secretId}, SignedHeaders=${t}, Signature=${o}`}({path:h,query:p,method:a,headers:u,timestamp:l,body:JSON.stringify(n),secretId:o.accessKey,secretKey:o.secretKey,signedHeaders:d.sort()});return{url:`${o.endpoint}${e}`,headers:Object.assign({},u,{Authorization:f})}}function Ti({url:e,data:t,method:n="POST",headers:i={}}){return new Promise(((a,s)=>{Xt.request({url:e,method:n,data:t,header:i,dataType:"json",complete:(e={})=>{const t=i["x-trace-id"]||"";if(!e.statusCode||e.statusCode>=400){const{message:n,errMsg:i,trace_id:a}=e.data||{};return s(new Qt({code:"SYS_ERR",message:n||i||"request:fail",requestId:a||t}))}a({status:e.statusCode,data:e.data,headers:e.header,requestId:t})}})}))}function Ni(e,t){const{path:n,data:i,method:a="GET"}=e,{url:s,headers:r}=Di(n,{functionName:"",data:i,method:a,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t});return Ti({url:s,data:i,method:a,headers:r}).then((e=>{const t=e.data||{};if(!t.success)throw new Qt({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((e=>{throw new Qt({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function Ci(e=""){const t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new Qt({code:"INVALID_PARAM",message:"fileID不合法"});const i=t.substring(0,n),a=t.substring(n+1);return i!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),a}function Vi(e=""){return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var Ii={init:e=>{e.provider="alipay";const t=new class{constructor(e){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),e.endpoint){if("string"!=typeof e.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(e.endpoint))throw new Error("endpoint must start with https://");e.endpoint=e.endpoint.replace(/\/$/,"")}this.config=Object.assign({},e,{endpoint:e.endpoint||`https://${e.spaceId}.api-hz.cloudbasefunction.cn`})}callFunction(e){return function(e,t){const{name:n,data:i}=e,a="POST",{url:s,headers:r}=Di("/functions/invokeFunction",{functionName:n,data:i,method:a,headers:{"x-to-function-name":n},signHeaderKeys:["x-to-function-name"],config:t});return Ti({url:s,data:i,method:a,headers:r}).then((e=>({errCode:0,success:!0,requestId:e.requestId,result:e.data}))).catch((e=>{throw new Qt({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}uploadFileToOSS({url:e,filePath:t,fileType:n,formData:i,onUploadProgress:a}){return new Promise(((s,r)=>{const o=Xt.uploadFile({url:e,filePath:t,fileType:n,formData:i,name:"file",success(e){e&&e.statusCode<400?s(e):r(new Qt({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){r(new Qt({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof a&&o&&"function"==typeof o.onProgressUpdate&&o.onProgressUpdate((e=>{a({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}async uploadFile({filePath:e,cloudPath:t="",fileType:n="image",onUploadProgress:i}){if("string"!==vt(t))throw new Qt({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new Qt({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new Qt({code:"INVALID_PARAM",message:"cloudPath不合法"});const a=await Ni({path:"/".concat(t.replace(/^\//,""),"?post_url")},this.config),{file_id:s,upload_url:r,form_data:o}=a,l=o&&o.reduce(((e,t)=>(e[t.key]=t.value,e)),{});return this.uploadFileToOSS({url:r,filePath:e,fileType:n,formData:l,onUploadProgress:i}).then((()=>({fileID:s})))}async getTempFileURL({fileList:e}){return new Promise(((t,n)=>{(!e||e.length<0)&&n(new Qt({errCode:"INVALID_PARAM",errMsg:"fileList不能为空数组"})),e.length>50&&n(new Qt({errCode:"INVALID_PARAM",errMsg:"fileList数组长度不能超过50"}));const i=[];for(const a of e){"string"!==vt(a)&&n(new Qt({errCode:"INVALID_PARAM",errMsg:"fileList的元素必须是非空的字符串"}));const e=Ci.call(this,a);i.push({file_id:e,expire:600})}Ni({path:"/?download_url",data:{file_list:i},method:"POST"},this.config).then((e=>{const{file_list:n=[]}=e;t({fileList:n.map((e=>({fileID:Vi.call(this,e.file_id),tempFileURL:e.download_url})))})})).catch((e=>n(e)))}))}}(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function Bi({data:e}){let t;t=ln();const n=JSON.parse(JSON.stringify(e||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){const{token:e}=tn();e&&(n.uniIdToken=e)}return n}const Ai=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var Mi=/[\\^$.*+?()[\]{}|]/g,Pi=RegExp(Mi.source);function Ri(e,t,n){return e.replace(new RegExp((i=t)&&Pi.test(i)?i.replace(Mi,"\\$&"):i,"g"),n);var i}const Oi=2e4,Li={code:20101,message:"Invalid client"};function Fi(e){const{errSubject:t,subject:n,errCode:i,errMsg:a,code:s,message:r,cause:o}=e||{};return new Qt({subject:t||n||"uni-secure-network",code:i||s||Oi,message:a||r,cause:o})}let ji;function Ui({secretType:e}={}){return"request"===e||"response"===e||"both"===e}function $i({name:e,data:t={}}={}){return"DCloud-clientDB"===e&&"encryption"===t.redirectTo&&"getAppClientKey"===t.action}function zi({functionName:e,result:t,logPvd:n}){}function Hi(e){const t=e.callFunction,n=function(n){const i=n.name;n.data=Bi.call(e,{data:n.data});const a={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay"}[this.config.provider],s=Ui(n),r=$i(n),o=s||r;return t.call(this,n).then((e=>(e.errCode=0,!o&&zi.call(this,{functionName:i,result:e,logPvd:a}),Promise.resolve(e))),(e=>(!o&&zi.call(this,{functionName:i,result:e,logPvd:a}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:n=[]}={}){for(let i=0;in.provider===e&&n.spaceId===t));return i&&i.config}({provider:e,spaceId:t});if(!o||!o.accessControl||!o.accessControl.enable)return!1;const l=o.accessControl.function||{},c=Object.keys(l);if(0===c.length)return!0;const u=function(e,t){let n,i,a;for(let s=0;se.trim())).indexOf(t)>-1&&(i=r):a=r:n=r}return n||i||a}(c,n);if(!u)return!1;if((l[u]||[]).find(((e={})=>e.appId===i&&(e.platform||"").toLowerCase()===r.toLowerCase())))return!0;throw console.error(`此应用[appId: ${i}, platform: ${r}]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),Fi(Li)}({provider:i,spaceId:a,functionName:s})?new ji({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):r(t),Object.defineProperty(o,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),o.then((e=>("undefined"!=typeof UTSJSONObject&&(e.result=new UTSJSONObject(e.result)),e)))}}ji=class{constructor(){throw Fi({message:"Platform app is not enabled, please check whether secure network module is enabled in your manifest.json"})}};const qi=Symbol("CLIENT_DB_INTERNAL");function Ki(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=qi,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(e,n,i){if("_uniClient"===n)return null;if("symbol"==typeof n)return e[n];if(n in e||"string"!=typeof n){const t=e[n];return"function"==typeof t?t.bind(e):t}return t.get(e,n,i)}})}function Ji(e){return{on:(t,n)=>{e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:(t,n)=>{e[t]=e[t]||[];const i=e[t].indexOf(n);-1!==i&&e[t].splice(i,1)}}}const Wi=["db.Geo","db.command","command.aggregate"];function Yi(e,t){return Wi.indexOf(`${e}.${t}`)>-1}function Gi(e){switch(vt(e=en(e))){case"array":return e.map((e=>Gi(e)));case"object":return e._internalType===qi||Object.keys(e).forEach((t=>{e[t]=Gi(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Zi(e){return e&&e.content&&e.content.$method}class Qi{constructor(e,t,n){this.content=e,this.prevStage=t||null,this.udb=null,this._database=n}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((e=>({$method:e.$method,$param:Gi(e.$param)})))}}toString(){return JSON.stringify(this.toJSON())}getAction(){const e=this.toJSON().$db.find((e=>"action"===e.$method));return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((e=>"action"!==e.$method))}}get isAggregate(){let e=this;for(;e;){const t=Zi(e),n=Zi(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===Zi(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=Zi(e),n=Zi(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return Xi({$method:e,$param:Gi(Array.from(arguments))},t,t._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}_send(e,t){const n=this.getAction(),i=this.getCommand();return i.$db.push({$method:e,$param:Gi(t)}),this._database._callCloudFunction({action:n,command:i})}}function Xi(e,t,n){return Ki(new Qi(e,t,n),{get(e,t){let i="db";return e&&e.content&&(i=e.content.$method),Yi(i,t)?Xi({$method:t},e,n):function(){return Xi({$method:t,$param:Gi(Array.from(arguments))},e,n)}}})}function ea({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map((e=>({$method:e}))),{$method:t,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}function ta(e,t={}){return Ki(new e(t),{get:(e,t)=>Yi("db",t)?Xi({$method:t},null,e):function(){return Xi({$method:t,$param:Gi(Array.from(arguments))},null,e)}})}class na extends class{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=Ct("_globalUniCloudDatabaseCallback")),t||(this.auth=Ji(this._authCallBacks)),this._isJQL=t,Object.assign(this,Ji(this._dbCallBacks)),this.env=Ki({},{get:(e,t)=>({$env:t})}),this.Geo=Ki({},{get:(e,t)=>ea({path:["Geo"],method:t})}),this.serverDate=ea({path:[],method:"serverDate"}),this.RegExp=ea({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const n=this._dbCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}_callbackAuth(e,t){const n=this._authCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}multiSend(){const e=Array.from(arguments),t=e.map((e=>{const t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:n,queryList:i}){function a(e,t){if(n&&i)for(let n=0;nMt(Pt(r,"complete"),e))).then((()=>(a(null,e),Jt(Lt,{type:Ut,content:e}),Promise.reject(e))))}const l=Mt(Pt(r,"invoke")),c=this._uniClient;return l.then((()=>c.callFunction({name:"DCloud-clientDB",type:"CLIENT_DB",data:{action:e,command:t,multiCommand:n}}))).then((e=>{const{code:t,message:n,token:i,tokenExpired:l,systemInfo:c=[]}=e.result;if(c)for(let a=0;a(console.warn(n),i)})}}return d=e,Mt(Pt(r,"success"),d).then((()=>Mt(Pt(r,"complete"),d))).then((()=>{a(d,null);const e=s._parseResult(d);return Jt(Lt,{type:Ut,content:e}),Promise.resolve(e)}));var d}),(e=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),o(new Qt({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId})))))}}const ia="token无效,跳转登录页面",aa="token过期,跳转登录页面",sa={TOKEN_INVALID_TOKEN_EXPIRED:aa,TOKEN_INVALID_INVALID_CLIENTID:ia,TOKEN_INVALID:ia,TOKEN_INVALID_WRONG_TOKEN:ia,TOKEN_INVALID_ANONYMOUS_USER:ia},ra={"uni-id-token-expired":aa,"uni-id-check-token-failed":ia,"uni-id-token-not-exist":ia,"uni-id-check-device-feature-failed":ia};function oa(e,t){let n="";return n=e?`${e}/${t}`:t,n.replace(/^\//,"")}function la(e=[],t=""){const n=[],i=[];return e.forEach((e=>{!0===e.needLogin?n.push(oa(t,e.path)):!1===e.needLogin&&i.push(oa(t,e.path))})),{needLoginPage:n,notNeedLoginPage:i}}function ca(e){return e.split("?")[0].replace(/^\//,"")}function ua(){return function(e){let t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){const e=getCurrentPages();return e[e.length-1]}())}function da(){return ca(ua())}function ha(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const n=t.list,i=ca(e);return n.some((e=>e.pagePath===i))}const pa=!!ot.uniIdRouter,{loginPage:fa,routerNeedLogin:ma,resToLogin:ga,needLoginPage:va,notNeedLoginPage:ya,loginPageInTabBar:wa}=function({pages:e=[],subPackages:t=[],uniIdRouter:n={},tabBar:i={}}=ot){const{loginPage:a,needLogin:s=[],resToLogin:r=!0}=n,{needLoginPage:o,notNeedLoginPage:l}=la(e),{needLoginPage:c,notNeedLoginPage:u}=function(e=[]){const t=[],n=[];return e.forEach((e=>{const{root:i,pages:a=[]}=e,{needLoginPage:s,notNeedLoginPage:r}=la(a,i);t.push(...s),n.push(...r)})),{needLoginPage:t,notNeedLoginPage:n}}(t);return{loginPage:a,routerNeedLogin:s,resToLogin:r,needLoginPage:[...o,...c],notNeedLoginPage:[...l,...u],loginPageInTabBar:ha(a,i)}}();if(va.indexOf(fa)>-1)throw new Error(`Login page [${fa}] should not be "needLogin", please check your pages.json`);function ka(e){const t=da();if("/"===e.charAt(0))return e;const[n,i]=e.split("?"),a=n.replace(/^\//,"").split("/"),s=t.split("/");s.pop();for(let r=0;r-1?i+`&uniIdRedirectUrl=${encodeURIComponent(a)}`:i+`?uniIdRedirectUrl=${encodeURIComponent(a)}`:i);var i,a;wa?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");const s={navigateTo:uni.navigateTo,redirectTo:uni.redirectTo,switchTab:uni.switchTab,reLaunch:uni.reLaunch};setTimeout((()=>{s[e]({url:n})}),0)}function ba({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){const{token:e,tokenExpired:t}=tn();let n;if(e){if(t-1)&&(va.indexOf(t)>-1||ma.some((t=>{return n=e,new RegExp(t).test(n);var n})))}(e)&&n){if(n.uniIdRedirectUrl=e,Ht(Ft).length>0)return setTimeout((()=>{Jt(Ft,n)}),0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function Ea(){!function(){const e=ua(),{abortLoginPageJump:t,autoToLoginPage:n}=ba({url:e});t||n&&Sa({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t{const{type:t,content:n}=e;let i=!1;switch(t){case"cloudobject":i=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in ra}(n);break;case"clientdb":i=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in sa}(n)}i&&function(e={}){const t=Ht(Ft);Gt().then((()=>{const n=ua();if(n&&_a({redirect:n}))return t.length>0?Jt(Ft,Object.assign({uniIdRedirectUrl:n},e)):void(fa&&Sa({api:"navigateTo",redirect:n}))}))}(n)}))}function Da(e){var t;(t=e).onResponse=function(e){qt(Lt,e)},t.offResponse=function(e){Kt(Lt,e)},function(e){e.onNeedLogin=function(e){qt(Ft,e)},e.offNeedLogin=function(e){Kt(Ft,e)},pa&&(Ct("_globalUniCloudStatus").needLoginInit||(Ct("_globalUniCloudStatus").needLoginInit=!0,Gt().then((()=>{Ea.call(e)})),ga&&xa.call(e)))}(e),function(e){e.onRefreshToken=function(e){qt(jt,e)},e.offRefreshToken=function(e){Kt(jt,e)}}(e)}let Ta;const Na="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ca=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Va(){const e=tn().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((i=t[1],decodeURIComponent(Ta(i).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(a){throw new Error("获取当前用户信息出错,详细错误信息为:"+a.message)}var i;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}Ta="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Ca.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,i,a="",s=0;s>16&255):64===i?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return a}:atob;var Ia=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(lt((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n="chooseAndUploadFile:ok",i="chooseAndUploadFile:fail";function a(e,t){return e.tempFiles.forEach(((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function s(e,t,{onChooseFile:i,onUploadProgress:a}){return t.then((e=>{if(i){const t=i(e);if(void 0!==t)return Promise.resolve(t).then((t=>void 0===t?e:t))}return e})).then((t=>!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t,i=5,a){(t=Object.assign({},t)).errMsg=n;const s=t.tempFiles,r=s.length;let o=0;return new Promise((n=>{for(;o=r)return void(!s.find((e=>!e.url&&!e.errMsg))&&n(t));const c=s[i];e.uploadFile({provider:c.provider,filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,cloudPathAsRealPath:c.cloudPathAsRealPath,onUploadProgress(e){e.index=i,e.tempFile=c,e.tempFilePath=c.path,a&&a(e)}}).then((e=>{c.url=e.fileID,i{c.errMsg=e.errMsg||e.message,i{uni.chooseImage({count:t,sizeType:n,sourceType:s,extension:r,success(t){e(a(t,"image"))},fail(e){o({errMsg:e.errMsg.replace("chooseImage:fail",i)})}})}))}(t),t):"video"===t.type?s(e,function(e){const{camera:t,compressed:n,maxDuration:s,sourceType:r=["album","camera"],extension:o}=e;return new Promise(((e,l)=>{uni.chooseVideo({camera:t,compressed:n,maxDuration:s,sourceType:r,extension:o,success(t){const{tempFilePath:n,duration:i,size:s,height:r,width:o}=t;e(a({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:s,type:t.tempFile&&t.tempFile.type||"",width:o,height:r,duration:i,fileType:"video",cloudPath:""}]},"video"))},fail(e){l({errMsg:e.errMsg.replace("chooseVideo:fail",i)})}})}))}(t),t):s(e,function(e){const{count:t,extension:n}=e;return new Promise(((e,s)=>{let r=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(r=wx.chooseMessageFile),"function"!=typeof r)return s({errMsg:i+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});r({type:"all",count:t,extension:n,success(t){e(a(t))},fail(e){s({errMsg:e.errMsg.replace("chooseFile:fail",i)})}})}))}(t),t)}}})));function Ba(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{if("manual"===this.loadtime)return;let n=!1;const i=[];for(let a=2;a{this.mixinDatacomLoading=!1;const{data:i,count:a}=n.result;this.getcount&&(this.mixinDatacomPage.count=a),this.mixinDatacomHasMore=i.length{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,this.mixinDatacomError=e,n&&n(e)})))},mixinDatacomGet(t={}){let n;t=t||{},n="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);const i=t.action||this.action;i&&(n=n.action(i));const a=t.collection||this.collection;n=Array.isArray(a)?n.collection(...a):n.collection(a);const s=t.where||this.where;s&&Object.keys(s).length&&(n=n.where(s));const r=t.field||this.field;r&&(n=n.field(r));const o=t.foreignKey||this.foreignKey;o&&(n=n.foreignKey(o));const l=t.groupby||this.groupby;l&&(n=n.groupBy(l));const c=t.groupField||this.groupField;c&&(n=n.groupField(c)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(n=n.distinct());const u=t.orderby||this.orderby;u&&(n=n.orderBy(u));const d=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,h=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,p=void 0!==t.getcount?t.getcount:this.getcount,f=void 0!==t.gettree?t.gettree:this.gettree,m=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,g={getCount:p},v={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return f&&(g.getTree=v),m&&(g.getTreePath=v),n=n.skip(h*(d-1)).limit(h).get(g),n}}}}function Aa(e){return Ct("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function Ma({openid:e,callLoginByWeixin:t=!1}={}){throw Aa(this),new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `app`")}async function Pa(e){const t=Aa(this);return t.initPromise||(t.initPromise=Ma.call(this,e).then((e=>e)).catch((e=>{throw delete t.initPromise,e}))),t.initPromise}function Ra(e){const t={getSystemInfo:uni.getSystemInfo,getPushClientId:uni.getPushClientId};return function(n){return new Promise(((i,a)=>{t[e]({...n,success(e){i(e)},fail(e){a(e)}})}))}}class Oa extends class{constructor(){this._callback={}}addListener(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}on(e,t){return this.addListener(e,t)}removeListener(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');const n=this._callback[e];if(!n)return;const i=function(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(i,1)}off(e,t){return this.removeListener(e,t)}removeAllListener(e){delete this._callback[e]}emit(e,...t){const n=this._callback[e];if(n)for(let i=0;i{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!t)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=t,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()}),(e=>{throw this.emit("error",e),this.close(),e}))}async open(){return this.init()}_isUniCloudSSE(e){if("receive"!==e.type)return!1;const t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;const t=e&&e.data&&e.data.payload,{action:n,messageId:i,message:a}=t;this._payloadQueue.push({action:n,messageId:i,message:a}),this._consumMessage()}_consumMessage(){for(;;){const e=this._payloadQueue.find((e=>e.messageId===this._currentMessageId+1));if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){const{action:t,messageId:n,message:i}=e;"end"===t?this._end({messageId:n,message:i}):"message"===t&&this._appendMessage({messageId:n,message:i})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){uni.onPushMessage(this._uniPushMessageCallback)}_destroy(){uni.offPushMessage(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}const La={tcb:Si,tencent:Si,aliyun:pn,private:Ei,alipay:Ii};let Fa=new class{init(e){let t={};const n=La[e.provider];if(!n)throw new Error("未提供正确的provider参数");var i;return t=n.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new bt({createPromise:function(){let t=Promise.resolve();t=new Promise((e=>{setTimeout((()=>{e()}),1)}));const n=e.auth();return t.then((()=>n.getLoginState())).then((e=>e?Promise.resolve():n.signInAnonymously()))}}))}(t),Hi(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),(i=t).database=function(e){if(e&&Object.keys(e).length>0)return i.init(e).database();if(this._database)return this._database;const t=ta(na,{uniClient:i});return this._database=t,t},i.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return i.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const t=ta(na,{uniClient:i,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=Va,e.chooseAndUploadFile=Ia.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Ba(e)}}),e.SSEChannel=Oa,e.initSecureNetworkByWeixin=function(e){return function({openid:t,callLoginByWeixin:n=!1}={}){return Pa.call(e,{openid:t,callLoginByWeixin:n})}}(e),e.importObject=function(t){return function(n,i={}){i=function(e,t={}){return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},i);const{customUI:a,loadingOptions:s,errorOptions:r,parseSystemError:o}=i,l=!a;return new Proxy({},{get(a,c){switch(c){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:e,interceptorName:t,getCallbackArgs:n}={}){return async function(...i){const a=n?n({params:i}):{};let s,r;try{return await Mt(Pt(t,"invoke"),{...a}),s=await e(...i),await Mt(Pt(t,"success"),{...a,result:s}),s}catch(o){throw r=o,await Mt(Pt(t,"fail"),{...a,error:r}),r}finally{await Mt(Pt(t,"complete"),r?{...a,error:r}:{...a,result:s})}}}({fn:async function a(...u){let d;l&&uni.showLoading({title:s.title,mask:s.mask});const h={name:n,type:"OBJECT",data:{method:c,params:u}};"object"==typeof i.secretMethods&&function(e,t){const n=t.data.method,i=e.secretMethods||{},a=i[n]||i["*"];a&&(t.secretType=a)}(i,h);let p=!1;try{d=await t.callFunction(h)}catch(e){p=!0,d={result:new Qt(e)}}const{errSubject:f,errCode:m,errMsg:g,newToken:v}=d.result||{};if(l&&uni.hideLoading(),v&&v.token&&v.tokenExpired&&(nn(v),Jt(jt,{...v})),m){let e=g;if(p&&o&&(e=(await o({objectName:n,methodName:c,params:u,errSubject:f,errCode:m,errMsg:g})).errMsg||g),l)if("toast"===r.type)uni.showToast({title:e,icon:"none"});else{if("modal"!==r.type)throw new Error(`Invalid errorOptions.type: ${r.type}`);{const{confirm:t}=await async function({title:e,content:t,showCancel:n,cancelText:i,confirmText:a}={}){return new Promise(((s,r)=>{uni.showModal({title:e,content:t,showCancel:n,cancelText:i,confirmText:a,success(e){s(e)},fail(){s({confirm:!1,cancel:!0})}})}))}({title:"提示",content:e,showCancel:r.retry,cancelText:"取消",confirmText:r.retry?"重试":"确定"});if(r.retry&&t)return a(...u)}}const t=new Qt({subject:f,code:m,message:g,requestId:d.requestId});throw t.detail=d.result,Jt(Lt,{type:zt,content:t}),t}return Jt(Lt,{type:zt,content:d.result}),d.result},interceptorName:"callObject",getCallbackArgs:function({params:e}={}){return{objectName:n,methodName:c,params:e}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((e=>{if(!t[e])return;const n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){let i=!1;if("callFunction"===t){const e=n&&n.type||ft;i=e!==ft}const a="callFunction"===t&&!i,s=this._initPromiseHub.exec();n=n||{};const{success:r,fail:o,complete:l}=Zt(n),c=s.then((()=>i?Promise.resolve():Mt(Pt(t,"invoke"),n))).then((()=>e.call(this,n))).then((e=>i?Promise.resolve(e):Mt(Pt(t,"success"),e).then((()=>Mt(Pt(t,"complete"),e))).then((()=>(a&&Jt(Lt,{type:$t,content:e}),Promise.resolve(e))))),(e=>i?Promise.reject(e):Mt(Pt(t,"fail"),e).then((()=>Mt(Pt(t,"complete"),e))).then((()=>(Jt(Lt,{type:$t,content:e}),Promise.reject(e))))));if(!(r||o||l))return c;c.then((e=>{r&&r(e),l&&l(e),a&&Jt(Lt,{type:$t,content:e})}),(e=>{o&&o(e),l&&l(e),a&&Jt(Lt,{type:$t,content:e})}))}}(t[e],e).bind(t)})),t.init=this.init,t}};(()=>{const e=Dt;let t={};if(e&&1===e.length)t=e[0],Fa=Fa.init(t),Fa._isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];let n;n=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",t.forEach((e=>{Fa[e]=function(){return console.error(n),Promise.reject(new Qt({code:"SYS_ERR",message:n}))}}))}Object.assign(Fa,{get mixinDatacom(){return Ba(Fa)}}),Da(Fa),Fa.addInterceptor=Bt,Fa.removeInterceptor=At,Fa.interceptObject=Rt})();var ja=Fa;const Ua="chooseAndUploadFile:fail";function $a(e,t){return e.tempFiles.forEach(((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function za(e,t=5,n){const i=(e=JSON.parse(JSON.stringify(e))).length;let a=0,s=this;return new Promise((r=>{for(;a=i)return void(!e.find((e=>!e.url&&!e.errMsg))&&r(e));const l=e[t],c=s.files.findIndex((e=>e.uuid===l.uuid));l.url="",delete l.errMsg,ja.uploadFile({filePath:l.path,cloudPath:l.cloudPath,fileType:l.fileType,onUploadProgress:e=>{e.index=c,n&&n(e)}}).then((e=>{l.url=e.fileID,l.index=c,t{l.errMsg=e.errMsg||e.message,l.index=c,t{if(t){const n=t(e);if(void 0!==n)return Promise.resolve(n).then((t=>void 0===t?e:t))}return e})).then((e=>!1===e?{errMsg:"chooseAndUploadFile:ok",tempFilePaths:[],tempFiles:[]}:e))}function qa(e={type:"all"}){return"image"===e.type?Ha(function(e){const{count:t,sizeType:n=["original","compressed"],sourceType:i,extension:a}=e;return new Promise(((e,s)=>{uni.chooseImage({count:t,sizeType:n,sourceType:i,extension:a,success(t){e($a(t,"image"))},fail(e){s({errMsg:e.errMsg.replace("chooseImage:fail",Ua)})}})}))}(e),e):"video"===e.type?Ha(function(e){const{count:t,camera:n,compressed:i,maxDuration:a,sourceType:s,extension:r}=e;return new Promise(((e,t)=>{uni.chooseVideo({camera:n,compressed:i,maxDuration:a,sourceType:s,extension:r,success(t){const{tempFilePath:n,duration:i,size:a,height:s,width:r}=t;e($a({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:a,type:t.tempFile&&t.tempFile.type||"",width:r,height:s,duration:i,fileType:"video",cloudPath:""}]},"video"))},fail(e){t({errMsg:e.errMsg.replace("chooseVideo:fail",Ua)})}})}))}(e),e):Ha(function(e){const{count:t,extension:n}=e;return new Promise(((e,i)=>{let a=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(a=wx.chooseMessageFile),"function"!=typeof a)return i({errMsg:Ua+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});a({type:"all",count:t,extension:n,success(t){e($a(t))},fail(e){i({errMsg:e.errMsg.replace("chooseFile:fail",Ua)})}})}))}(e),e)}const Ka=e=>{const t=e.lastIndexOf("."),n=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,n)}},Ja=e=>{if(Array.isArray(e))return e;return e.replace(/(\[|\])/g,"").split(",")},Wa=async(e,t="image")=>{const n=Ka(e.name).ext.toLowerCase();let i={name:e.name,uuid:e.uuid,extname:n||"",cloudPath:e.cloudPath,fileType:e.fileType,thumbTempFilePath:e.thumbTempFilePath,url:e.path||e.path,size:e.size,image:{},path:e.path,video:{}};if("image"===t){const t=await(a=e.path,new Promise(((e,t)=>{uni.getImageInfo({src:a,success(t){e(t)},fail(e){t(e)}})})));delete i.video,i.image.width=t.width,i.image.height=t.height,i.image.location=t.path}else delete i.image;var a;return i};const Ya=q({name:"uniFilePicker",components:{uploadImage:q({name:"uploadImage",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},limit:{type:[Number,String],default:9},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto",border:{}})},delIcon:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1}},computed:{styles(){return Object.assign({width:"auto",height:"auto",border:{}},this.imageStyles)},boxStyle(){const{width:e="auto",height:t="auto"}=this.styles;let n={};"auto"===t?"auto"!==e?(n.height=this.value2px(e),n["padding-top"]=0):n.height=0:(n.height=this.value2px(t),n["padding-top"]=0),n.width="auto"===e?"auto"!==t?this.value2px(t):"33.3%":this.value2px(e);let i="";for(let a in n)i+=`${a}:${n[a]};`;return i},borderStyle(){let{border:e}=this.styles,t={};if("boolean"==typeof e)t.border=e?"1px #eee solid":"none";else{let n=e&&e.width||1;n=this.value2px(n);let i=e&&e.radius||3;i=this.value2px(i),t={"border-width":n,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":i}}let n="";for(let i in t)n+=`${i}:${t[i]};`;return n}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",e)},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},prviewImage(e,t){let n=[];1===Number(this.limit)&&this.disablePreview&&!this.disabled&&this.$emit("choose"),this.disablePreview||(this.filesList.forEach((e=>{n.push(e.url)})),uni.previewImage({urls:n,current:t}))},value2px:e=>("number"==typeof e?e+="px":-1===e.indexOf("%")&&(e=-1!==e.indexOf("px")?e:e+"px"),e)}},[["render",function(t,n,i,a,s,r){return e.openBlock(),e.createElementBlock("view",{class:"uni-file-picker__container"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.filesList,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"file-picker__box",key:n,style:e.normalizeStyle(r.boxStyle)},[e.createElementVNode("view",{class:"file-picker__box-content",style:e.normalizeStyle(r.borderStyle)},[e.createElementVNode("image",{class:"file-image",src:t.url,mode:"aspectFill",onClick:e.withModifiers((e=>r.prviewImage(t,n)),["stop"])},null,8,["src","onClick"]),i.delIcon&&!i.readonly?(e.openBlock(),e.createElementBlock("view",{key:0,class:"icon-del-box",onClick:e.withModifiers((e=>r.delFile(n)),["stop"])},[e.createElementVNode("view",{class:"icon-del"}),e.createElementVNode("view",{class:"icon-del rotate"})],8,["onClick"])):e.createCommentVNode("",!0),t.progress&&100!==t.progress||0===t.progress?(e.openBlock(),e.createElementBlock("view",{key:1,class:"file-picker__progress"},[e.createElementVNode("progress",{class:"file-picker__progress-item",percent:-1===t.progress?0:t.progress,"stroke-width":"4",backgroundColor:t.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])):e.createCommentVNode("",!0),t.errMsg?(e.openBlock(),e.createElementBlock("view",{key:2,class:"file-picker__mask",onClick:e.withModifiers((e=>r.uploadFiles(t,n)),["stop"])}," 点击重试 ",8,["onClick"])):e.createCommentVNode("",!0)],4)],4)))),128)),i.filesList.lengthr.choose&&r.choose(...e))},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:"icon-add"}),e.createElementVNode("view",{class:"icon-add rotate"})]),!0)],4)],4)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-86b162f5"]]),uploadFile:q({name:"uploadFile",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},delIcon:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},showType:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},readonly:{type:Boolean,default:!1}},computed:{list(){let e=[];return this.filesList.forEach((t=>{e.push(t)})),e},styles(){return Object.assign({border:!0,dividline:!0,"border-style":{}},this.listStyles)},borderStyle(){let{borderStyle:e,border:t}=this.styles,n={};if(t){let t=e&&e.width||1;t=this.value2px(t);let i=e&&e.radius||5;i=this.value2px(i),n={"border-width":t,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":i}}else n.border="none";let i="";for(let a in n)i+=`${a}:${n[a]};`;return i},borderLineStyle(){let e={},{borderStyle:t}=this.styles;if(t&&t.color&&(e["border-color"]=t.color),t&&t.width){let n=t&&t.width||1,i=t&&t.style||0;"number"==typeof n?n+="px":n=n.indexOf("px")?n:n+"px",e["border-width"]=n,"number"==typeof i?i+="px":i=i.indexOf("px")?i:i+"px",e["border-top-style"]=i}let n="";for(let i in e)n+=`${i}:${e[i]};`;return n}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",{item:e,index:t})},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},value2px:e=>("number"==typeof e?e+="px":e=-1!==e.indexOf("px")?e:e+"px",e)}},[["render",function(t,n,i,a,s,r){return e.openBlock(),e.createElementBlock("view",{class:"uni-file-picker__files"},[i.readonly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"files-button",onClick:n[0]||(n[0]=(...e)=>r.choose&&r.choose(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)])),r.list.length>0?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-file-picker__lists is-text-box",style:e.normalizeStyle(r.borderStyle)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.list,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-file-picker__lists-box",{"files-border":0!==n&&r.styles.dividline}]),key:n,style:e.normalizeStyle(0!==n&&r.styles.dividline&&r.borderLineStyle)},[e.createElementVNode("view",{class:"uni-file-picker__item"},[e.createElementVNode("view",{class:"files__name"},e.toDisplayString(t.name),1),i.delIcon&&!i.readonly?(e.openBlock(),e.createElementBlock("view",{key:0,class:"icon-del-box icon-files",onClick:e=>r.delFile(n)},[e.createElementVNode("view",{class:"icon-del icon-files"}),e.createElementVNode("view",{class:"icon-del rotate"})],8,["onClick"])):e.createCommentVNode("",!0)]),t.progress&&100!==t.progress||0===t.progress?(e.openBlock(),e.createElementBlock("view",{key:0,class:"file-picker__progress"},[e.createElementVNode("progress",{class:"file-picker__progress-item",percent:-1===t.progress?0:t.progress,"stroke-width":"4",backgroundColor:t.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])])):e.createCommentVNode("",!0),"error"===t.status?(e.openBlock(),e.createElementBlock("view",{key:1,class:"file-picker__mask",onClick:e.withModifiers((e=>r.uploadFiles(t,n)),["stop"])}," 点击重试 ",8,["onClick"])):e.createCommentVNode("",!0)],6)))),128))],4)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-e61666c7"]])},options:{virtualHost:!0},emits:["select","success","fail","progress","delete","update:modelValue","input"],props:{modelValue:{type:[Array,Object],default:()=>[]},value:{type:[Array,Object],default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},delIcon:{type:Boolean,default:!0},autoUpload:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},mode:{type:String,default:"grid"},fileMediatype:{type:String,default:"image"},fileExtname:{type:[Array,String],default:()=>[]},title:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto"})},readonly:{type:Boolean,default:!1},returnType:{type:String,default:"array"},sizeType:{type:Array,default:()=>["original","compressed"]},sourceType:{type:Array,default:()=>["album","camera"]},provider:{type:String,default:""}},data:()=>({files:[],localValue:[]}),watch:{value:{handler(e,t){this.setValue(e,t)},immediate:!0},modelValue:{handler(e,t){this.setValue(e,t)},immediate:!0}},computed:{filesList(){let e=[];return this.files.forEach((t=>{e.push(t)})),e},showType(){return"image"===this.fileMediatype?this.mode:"list"},limitLength(){return"object"===this.returnType?1:this.limit?this.limit>=9?9:this.limit:1}},created(){ja.config&&ja.config.provider||(this.noSpace=!0,ja.chooseAndUploadFile=qa),this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.form&&this.formItem&&this.formItem.name&&(this.rename=this.formItem.name,this.form.inputChildrens.push(this))},methods:{clearFiles(e){0===e||e?this.files.splice(e,1):(this.files=[],this.$nextTick((()=>{this.setEmit()}))),this.$nextTick((()=>{this.setEmit()}))},upload(){let e=[];return this.files.forEach(((t,n)=>{"ready"!==t.status&&"error"!==t.status||e.push(Object.assign({},t))})),this.uploadFiles(e)},async setValue(e,t){const n=async e=>{let t="";return t=e.fileID?e.fileID:e.url,/cloud:\/\/([\w.]+\/?)\S*/.test(t)&&(e.fileID=t,e.url=await this.getTempFileURL(t)),e.url&&(e.path=e.url),e};if("object"===this.returnType)e?await n(e):e={};else{e||(e=[]);for(let t=0;t0?e:[];this.files=[].concat(i)},choose(){this.disabled||(this.files.length>=Number(this.limitLength)&&"grid"!==this.showType&&"array"===this.returnType?uni.showToast({title:`您最多选择 ${this.limitLength} 个文件`,icon:"none"}):this.chooseFiles())},chooseFiles(){const e=Ja(this.fileExtname);ja.chooseAndUploadFile({type:this.fileMediatype,compressed:!1,sizeType:this.sizeType,sourceType:this.sourceType,extension:e.length>0?e:void 0,count:this.limitLength-this.files.length,onChooseFile:this.chooseFileCallback,onUploadProgress:e=>{this.setProgress(e,e.index)}}).then((e=>{this.setSuccessAndError(e.tempFiles)})).catch((e=>{t("log","at uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue:364","选择失败",e)}))},async chooseFileCallback(e){const t=Ja(this.fileExtname);(1===Number(this.limitLength)&&this.disablePreview&&!this.disabled||"object"===this.returnType)&&(this.files=[]);let{filePaths:n,files:i}=((e,t)=>{let n=[],i=[];return t&&0!==t.length?(e.tempFiles.forEach((e=>{const a=Ka(e.name).ext.toLowerCase();-1!==t.indexOf(a)&&(i.push(e),n.push(e.path))})),i.length!==e.tempFiles.length&&uni.showToast({title:`当前选择了${e.tempFiles.length}个文件 ,${e.tempFiles.length-i.length} 个文件格式不正确`,icon:"none",duration:5e3}),{filePaths:n,files:i}):{filePaths:n,files:i}})(e,t);t&&t.length>0||(n=e.tempFilePaths,i=e.tempFiles);let a=[];for(let s=0;s{this.provider&&(e.provider=this.provider);const n=e.name.split("."),i=n.pop(),a=n.join(".").replace(/[\s\/\?<>\\:\*\|":]/g,"_");e.cloudPath=a+"_"+Date.now()+"_"+t+"."+i}))},uploadFiles(e){return e=[].concat(e),za.call(this,e,5,(e=>{this.setProgress(e,e.index,!0)})).then((e=>(this.setSuccessAndError(e),e))).catch((e=>{t("log","at uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue:437",e)}))},async setSuccessAndError(e,t){let n=[],i=[],a=[],s=[];for(let r=0;re.uuid===t.uuid)):t.index;if(-1===o||!this.files)break;if("request:fail"===t.errMsg)this.files[o].url=t.path,this.files[o].status="error",this.files[o].errMsg=t.errMsg,i.push(this.files[o]),s.push(this.files[o].url);else{this.files[o].errMsg="",this.files[o].fileID=t.url;/cloud:\/\/([\w.]+\/?)\S*/.test(t.url)?this.files[o].url=await this.getTempFileURL(t.url):this.files[o].url=t.url,this.files[o].status="success",this.files[o].progress+=1,n.push(this.files[o]),a.push(this.files[o].fileID)}}n.length>0&&(this.setEmit(),this.$emit("success",{tempFiles:this.backObject(n),tempFilePaths:a})),i.length>0&&this.$emit("fail",{tempFiles:this.backObject(i),tempFilePaths:s})},setProgress(e,t,n){this.files.length;const i=Math.round(100*e.loaded/e.total);let a=t;n||(a=this.files.findIndex((t=>t.uuid===e.tempFile.uuid))),-1!==a&&this.files[a]&&(this.files[a].progress=i-1,this.$emit("progress",{index:a,progress:parseInt(i),tempFile:this.files[a]}))},delFile(e){this.$emit("delete",{index:e,tempFile:this.files[e],tempFilePath:this.files[e].url}),this.files.splice(e,1),this.$nextTick((()=>{this.setEmit()}))},getFileExt(e){const t=e.lastIndexOf("."),n=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,n)}},setEmit(){let e=[];"object"===this.returnType?(e=this.backObject(this.files)[0],this.localValue=e||null):(e=this.backObject(this.files),this.localValue||(this.localValue=[]),this.localValue=[...e]),this.$emit("update:modelValue",this.localValue)},backObject(e){let t=[];return e.forEach((e=>{t.push({extname:e.extname,fileType:e.fileType,image:e.image,name:e.name,path:e.path,size:e.size,fileID:e.fileID,url:e.url,uuid:e.uuid,status:e.status,cloudPath:e.cloudPath})})),t},async getTempFileURL(e){e={fileList:[].concat(e)};return(await ja.getTempFileURL(e)).fileList[0].tempFileURL||""},getForm(e="uniForms"){let t=this.$parent,n=t.$options.name;for(;n!==e;){if(t=t.$parent,!t)return!1;n=t.$options.name}return t}}},[["render",function(t,n,i,a,s,r){const o=e.resolveComponent("upload-image"),l=e.resolveComponent("upload-file");return e.openBlock(),e.createElementBlock("view",{class:"uni-file-picker"},[i.title?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-file-picker__header"},[e.createElementVNode("text",{class:"file-title"},e.toDisplayString(i.title),1),e.createElementVNode("text",{class:"file-count"},e.toDisplayString(r.filesList.length)+"/"+e.toDisplayString(r.limitLength),1)])):e.createCommentVNode("",!0),"image"===i.fileMediatype&&"grid"===r.showType?(e.openBlock(),e.createBlock(o,{key:1,readonly:i.readonly,"image-styles":i.imageStyles,"files-list":r.filesList,limit:r.limitLength,disablePreview:i.disablePreview,delIcon:i.delIcon,onUploadFiles:r.uploadFiles,onChoose:r.choose,onDelFile:r.delFile},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("view",{class:"is-add"},[e.createElementVNode("view",{class:"icon-add"}),e.createElementVNode("view",{class:"icon-add rotate"})])]),!0)])),_:3},8,["readonly","image-styles","files-list","limit","disablePreview","delIcon","onUploadFiles","onChoose","onDelFile"])):e.createCommentVNode("",!0),"image"!==i.fileMediatype||"grid"!==r.showType?(e.openBlock(),e.createBlock(l,{key:2,readonly:i.readonly,"list-styles":i.listStyles,"files-list":r.filesList,showType:r.showType,delIcon:i.delIcon,onUploadFiles:r.uploadFiles,onChoose:r.choose,onDelFile:r.delFile},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("button",{type:"primary",size:"mini"},"选择文件")]),!0)])),_:3},8,["readonly","list-styles","files-list","showType","delIcon","onUploadFiles","onChoose","onDelFile"])):e.createCommentVNode("",!0)])}],["__scopeId","data-v-086f9922"]]);function Ga(e){let t="";for(let n in e){t+=`${n}:${e[n]};`}return t}const Za=q({name:"uni-easyinput",emits:["click","iconClick","update:modelValue","input","focus","blur","confirm","clear","eyes","change","keyboardheightchange"],model:{prop:"modelValue",event:"update:modelValue"},options:{virtualHost:!0},inject:{form:{from:"uniForm",default:null},formItem:{from:"uniFormItem",default:null}},props:{name:String,value:[Number,String],modelValue:[Number,String],type:{type:String,default:"text"},clearable:{type:Boolean,default:!0},autoHeight:{type:Boolean,default:!1},placeholder:{type:String,default:" "},placeholderStyle:String,focus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},clearSize:{type:[Number,String],default:24},inputBorder:{type:Boolean,default:!0},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},trim:{type:[Boolean,String],default:!1},cursorSpacing:{type:Number,default:0},passwordIcon:{type:Boolean,default:!0},adjustPosition:{type:Boolean,default:!0},primaryColor:{type:String,default:"#2979ff"},styles:{type:Object,default:()=>({color:"#333",backgroundColor:"#fff",disableColor:"#F7F6F6",borderColor:"#e5e5e5"})},errorMessage:{type:[String,Boolean],default:""}},data:()=>({focused:!1,val:"",showMsg:"",border:!1,isFirstBorder:!1,showClearIcon:!1,showPassword:!1,focusShow:!1,localMsg:"",isEnter:!1}),computed:{isVal(){const e=this.val;return!(!e&&0!==e)},msg(){return this.localMsg||this.errorMessage},inputMaxlength(){return Number(this.maxlength)},boxStyle(){return`color:${this.inputBorder&&this.msg?"#e43d33":this.styles.color};`},inputContentClass(){return function(e){let t="";for(let n in e)e[n]&&(t+=`${n} `);return t}({"is-input-border":this.inputBorder,"is-input-error-border":this.inputBorder&&this.msg,"is-textarea":"textarea"===this.type,"is-disabled":this.disabled,"is-focused":this.focusShow})},inputContentStyle(){const e=this.focusShow?this.primaryColor:this.styles.borderColor;return Ga({"border-color":(this.inputBorder&&this.msg?"#dd524d":e)||"#e5e5e5","background-color":this.disabled?this.styles.disableColor:this.styles.backgroundColor})},inputStyle(){return Ga({"padding-right":"password"===this.type||this.clearable||this.prefixIcon?"":"10px","padding-left":this.prefixIcon?"":"10px"})}},watch:{value(e){this.val=null!==e?e:""},modelValue(e){this.val=null!==e?e:""},focus(e){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))}},created(){this.init(),this.form&&this.formItem&&this.$watch("formItem.errMsg",(e=>{this.localMsg=e}))},mounted(){this.$nextTick((()=>{this.focused=this.focus,this.focusShow=this.focus}))},methods:{init(){this.value||0===this.value?this.val=this.value:this.modelValue||0===this.modelValue||""===this.modelValue?this.val=this.modelValue:this.val=""},onClickIcon(e){this.$emit("iconClick",e)},onEyes(){this.showPassword=!this.showPassword,this.$emit("eyes",this.showPassword)},onInput(e){let t=e.detail.value;this.trim&&("boolean"==typeof this.trim&&this.trim&&(t=this.trimStr(t)),"string"==typeof this.trim&&(t=this.trimStr(t,this.trim))),this.errMsg&&(this.errMsg=""),this.val=t,this.$emit("input",t),this.$emit("update:modelValue",t)},onFocus(){this.$nextTick((()=>{this.focused=!0})),this.$emit("focus",null)},_Focus(e){this.focusShow=!0,this.$emit("focus",e)},onBlur(){this.focused=!1,this.$emit("blur",null)},_Blur(e){if(e.detail.value,this.focusShow=!1,this.$emit("blur",e),!1===this.isEnter&&this.$emit("change",this.val),this.form&&this.formItem){const{validateTrigger:e}=this.form;"blur"===e&&this.formItem.onFieldChange()}},onConfirm(e){this.$emit("confirm",this.val),this.isEnter=!0,this.$emit("change",this.val),this.$nextTick((()=>{this.isEnter=!1}))},onClear(e){this.val="",this.$emit("input",""),this.$emit("update:modelValue",""),this.$emit("clear")},onkeyboardheightchange(e){this.$emit("keyboardheightchange",e)},trimStr:(e,t="both")=>"both"===t?e.trim():"left"===t?e.trimLeft():"right"===t?e.trimRight():"start"===t?e.trimStart():"end"===t?e.trimEnd():"all"===t?e.replace(/\s+/g,""):e}},[["render",function(t,i,a,s,r,o){const l=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["uni-easyinput",{"uni-easyinput-error":o.msg}]),style:e.normalizeStyle(o.boxStyle)},[e.createElementVNode("view",{class:e.normalizeClass(["uni-easyinput__content",o.inputContentClass]),style:e.normalizeStyle(o.inputContentStyle)},[a.prefixIcon?(e.openBlock(),e.createBlock(l,{key:0,class:"content-clear-icon",type:a.prefixIcon,color:"#c0c4cc",onClick:i[0]||(i[0]=e=>o.onClickIcon("prefix")),size:"22"},null,8,["type"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"left",{},void 0,!0),"textarea"===a.type?(e.openBlock(),e.createElementBlock("textarea",{key:1,class:e.normalizeClass(["uni-easyinput__content-textarea",{"input-padding":a.inputBorder}]),name:a.name,value:r.val,placeholder:a.placeholder,placeholderStyle:a.placeholderStyle,disabled:a.disabled,"placeholder-class":"uni-easyinput__placeholder-class",maxlength:o.inputMaxlength,focus:r.focused,autoHeight:a.autoHeight,"cursor-spacing":a.cursorSpacing,"adjust-position":a.adjustPosition,onInput:i[1]||(i[1]=(...e)=>o.onInput&&o.onInput(...e)),onBlur:i[2]||(i[2]=(...e)=>o._Blur&&o._Blur(...e)),onFocus:i[3]||(i[3]=(...e)=>o._Focus&&o._Focus(...e)),onConfirm:i[4]||(i[4]=(...e)=>o.onConfirm&&o.onConfirm(...e)),onKeyboardheightchange:i[5]||(i[5]=(...e)=>o.onkeyboardheightchange&&o.onkeyboardheightchange(...e))},null,42,["name","value","placeholder","placeholderStyle","disabled","maxlength","focus","autoHeight","cursor-spacing","adjust-position"])):(e.openBlock(),e.createElementBlock("input",{key:2,type:"password"===a.type?"text":a.type,class:"uni-easyinput__content-input",style:e.normalizeStyle(o.inputStyle),name:a.name,value:r.val,password:!r.showPassword&&"password"===a.type,placeholder:a.placeholder,placeholderStyle:a.placeholderStyle,"placeholder-class":"uni-easyinput__placeholder-class",disabled:a.disabled,maxlength:o.inputMaxlength,focus:r.focused,confirmType:a.confirmType,"cursor-spacing":a.cursorSpacing,"adjust-position":a.adjustPosition,onFocus:i[6]||(i[6]=(...e)=>o._Focus&&o._Focus(...e)),onBlur:i[7]||(i[7]=(...e)=>o._Blur&&o._Blur(...e)),onInput:i[8]||(i[8]=(...e)=>o.onInput&&o.onInput(...e)),onConfirm:i[9]||(i[9]=(...e)=>o.onConfirm&&o.onConfirm(...e)),onKeyboardheightchange:i[10]||(i[10]=(...e)=>o.onkeyboardheightchange&&o.onkeyboardheightchange(...e))},null,44,["type","name","value","password","placeholder","placeholderStyle","disabled","maxlength","focus","confirmType","cursor-spacing","adjust-position"])),"password"===a.type&&a.passwordIcon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[o.isVal?(e.openBlock(),e.createBlock(l,{key:0,class:e.normalizeClass(["content-clear-icon",{"is-textarea-icon":"textarea"===a.type}]),type:r.showPassword?"eye-slash-filled":"eye-filled",size:22,color:r.focusShow?a.primaryColor:"#c0c4cc",onClick:o.onEyes},null,8,["class","type","color","onClick"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),a.suffixIcon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[a.suffixIcon?(e.openBlock(),e.createBlock(l,{key:0,class:"content-clear-icon",type:a.suffixIcon,color:"#c0c4cc",onClick:i[11]||(i[11]=e=>o.onClickIcon("suffix")),size:"22"},null,8,["type"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[a.clearable&&o.isVal&&!a.disabled&&"textarea"!==a.type?(e.openBlock(),e.createBlock(l,{key:0,class:e.normalizeClass(["content-clear-icon",{"is-textarea-icon":"textarea"===a.type}]),type:"clear",size:a.clearSize,color:o.msg?"#dd524d":r.focusShow?a.primaryColor:"#c0c4cc",onClick:o.onClear},null,8,["class","size","color","onClick"])):e.createCommentVNode("",!0)],64)),e.renderSlot(t.$slots,"right",{},void 0,!0)],6)],6)}],["__scopeId","data-v-d17898f6"]]);function Qa(e){return"string"==typeof e}function Xa(e,t=50){if(!Array.isArray(e)||!e.length)return e;const n=[];return e.forEach(((e,i)=>{const a=Math.floor(i/t);n[a]||(n[a]=[]),n[a].push(e)})),n}const es=q(e.defineComponent({__name:"data-select-item",props:{node:{type:Object,default:()=>({})},choseParent:{type:Boolean,default:!0},dataLabel:{type:String,default:"name"},dataValue:{type:String,default:"value"},dataChildren:{type:String,default:"children"},border:{type:Boolean,default:!1},linkage:{type:Boolean,default:!1},lazyLoadChildren:{type:Boolean,default:!1},level:{type:Number,default:0},mutiple:{type:Boolean,default:!1}},setup(t){const{nodeClick:i,nameClick:a,loadNode:s,initData:r,addNode:o}=e.inject("nodeFn"),l=t,c=e.ref([]),u=e.ref([]),d=e.ref([]);return e.watchEffect((()=>{l.node.showChildren&&l.node[l.dataChildren]&&l.node[l.dataChildren].length&&(function(){const e=[...u.value];u.value=[],e.forEach((e=>e()))}(),function(e){const t=Xa(e);c.value=(null==t?void 0:t[0])||[],function(e,t){for(let n=t;n{c.value.push(...e[n])}),500*n),u.push((()=>clearTimeout(t)))}}(t,1)}(l.node[l.dataChildren]))})),(u,h)=>{const p=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["customthree-tree-select-content",{border:t.border&&t.node[t.dataChildren]&&t.node[t.dataChildren].length&&t.node.showChildren}]),style:e.normalizeStyle({marginLeft:(t.level?14:0)+"px"})},[t.node.visible?(e.openBlock(),e.createElementBlock("view",{key:0,class:"custom-tree-select-item"},[e.createElementVNode("view",{class:"item-content"},[e.createElementVNode("view",{class:"left",onClick:h[0]||(h[0]=e.withModifiers((e=>{var n,i;(n=t.node).visible&&(!(null==(i=n[l.dataChildren])?void 0:i.length)&&l.lazyLoadChildren?(d.value.push(n[l.dataValue].toString()),s(n).then((e=>{o(n,r(e,n.visible))})).finally((()=>{d.value=[]}))):a(n))}),["stop"]))},[e.createElementVNode("view",{class:"icon-group"},[t.node[t.dataChildren]&&t.node[t.dataChildren].length?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["right-icon",{active:t.node.showChildren}])},[e.createVNode(p,{type:"right",size:"14",color:"#333"})],2)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"smallcircle-filled"},[e.createVNode(p,{class:"smallcircle-filled-icon",type:"smallcircle-filled",size:"10",color:"#333"})]))]),d.value.includes(t.node[l.dataValue].toString())?(e.openBlock(),e.createElementBlock("view",{key:0,class:"loading-icon-box"},[e.createVNode(p,{class:"loading-icon",type:"spinner-cycle",size:"14",color:"#333"})])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"name",style:e.normalizeStyle(t.node.disabled?"color: #999":"")},[e.createElementVNode("text",null,e.toDisplayString(t.node[t.dataLabel]),1)],4)]),t.choseParent||!t.choseParent&&!t.node[t.dataChildren]||!t.choseParent&&t.node[t.dataChildren]&&!t.node[t.dataChildren].length?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["check-box",{disabled:t.node.disabled}]),style:e.normalizeStyle({"border-radius":t.mutiple?"3px":"50%"}),onClick:h[1]||(h[1]=e.withModifiers((n=>!t.node.disabled&&e.unref(i)(t.node)),["stop"]))},[!t.node.checked&&t.node.partChecked&&t.linkage?(e.openBlock(),e.createElementBlock("view",{key:0,class:"part-checked"})):e.createCommentVNode("",!0),t.node.checked?(e.openBlock(),e.createBlock(p,{key:1,type:"checkmarkempty",size:"18",color:t.node.disabled?"#333":"#007aff"},null,8,["color"])):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),t.node.showChildren&&t.node[t.dataChildren]&&t.node[t.dataChildren].length?(e.openBlock(),e.createElementBlock("view",{key:1},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(n=>(e.openBlock(),e.createBlock(es,{key:n[t.dataValue],node:n,dataLabel:t.dataLabel,dataValue:t.dataValue,dataChildren:t.dataChildren,choseParent:t.choseParent,lazyLoadChildren:t.lazyLoadChildren,border:t.border,linkage:t.linkage,level:t.level+1},null,8,["node","dataLabel","dataValue","dataChildren","choseParent","lazyLoadChildren","border","linkage","level"])))),128))])):e.createCommentVNode("",!0)],6)}}}),[["__scopeId","data-v-50ed94e6"]]),ts=q(e.defineComponent({__name:"treeSelect",props:{canSelectAll:{type:Boolean,default:!1},safeArea:{type:Boolean,default:!0},search:{type:Boolean,default:!1},clearResetSearch:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},"is-mask-click":{type:Boolean,default:!0},"mask-background-color":{type:String,default:"rgba(0,0,0,0.4)"},"background-color":{type:String,default:"none"},"safe-area":{type:Boolean,default:!0},choseParent:{type:Boolean,default:!1},placeholder:{type:String,default:"请选择"},confirmText:{type:String,default:"确认"},confirmTextColor:{type:String,default:"#007aff"},dataSource:{type:Array,default:()=>[]},dataLabel:{type:String,default:"name"},dataValue:{type:String,default:"id"},dataChildren:{type:String,default:"children"},linkage:{type:Boolean,default:!1},removeLinkage:{type:Boolean,default:!0},clearable:{type:Boolean,default:!1},mutiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},deleteSource:{type:Boolean,default:!1},showChildren:{type:Boolean,default:!1},border:{type:Boolean,default:!1},lazyLoadChildren:{type:Boolean,default:!1},load:{type:Function,default:function(){}},modelValue:{type:[Array,String],default:()=>[]}},emits:["update:modelValue","change","maskClick","select-change","removeSelect"],setup(t,{emit:i}){const a=t,s=i,r=e.ref("500px"),o=e.ref([]),l=e.ref([]),c=e.ref([]),u=e.ref([]),d=e.ref(!1),h=e.ref(!1),p=e.ref(0),f=e.ref(""),m=e.ref(null),g=new Set;e.provide("nodeFn",{nodeClick:I,nameClick:B,loadNode:a.load,initData:E,addNode:function(e,t){N(e,o.value)[a.dataChildren]=t,B(e)}});const v=e.computed((()=>{const e=null===a.modelValue?"":a.modelValue;return Qa(e)?e.length?e.split(","):[]:e.map((e=>e.toString()))}));function y(t=!1){x(),t?a.clearResetSearch&&D(o.value):D(w(f.value,o.value)),p.val=10,e.nextTick((()=>{p.value=0})),uni.hideKeyboard()}function w(e,t){const n=[];return t.forEach((t=>{var i,s;if(t.visible)if(t[a.dataLabel].toString().toLowerCase().indexOf(e.toLowerCase())>-1)n.push(t);else if(null==(i=t[a.dataChildren])?void 0:i.length){const i=w(e,t[a.dataChildren]);(null==i?void 0:i.length)&&(e&&!t.showChildren&&(null==(s=t[a.dataChildren])?void 0:s.length)&&(t.showChildren=!0),n.push({...t,[a.dataChildren]:i}))}})),n}async function k(){a.disabled||(d.value=!0,m.value.open(),D(o.value))}function _(){m.value.close()}function S(e){e.show||(x(),f.value="",d.value=!1),s("change",e)}function b(){s("maskClick")}function E(e,t){var n;if(!Array.isArray(e))return[];const i=[];for(let s=0;se()))}function D(e){const t=Xa(e);l.value=(null==t?void 0:t[0])||[],function(e,t){for(let n=t;n{l.value.push(...e[n])}),500*n),c.push((()=>clearTimeout(t)))}}(t,1)}function T(e,t,n=!1){var i;const r=[...e];let o=!0;for(n&&(u.value=[]);r.length;){const e=r.shift();t.includes(e[a.dataValue].toString())?(e.checked=!0,e.partChecked=!1,g.delete(e[a.dataValue]),n&&u.value.push(e)):(e.checked=!1,e.visible&&!e.disabled&&(o=!1),g.has(e[a.dataValue])?e.partChecked=!0:e.partChecked=!1),(null==(i=e[a.dataChildren])?void 0:i.length)&&r.push(...e[a.dataChildren])}h.value=o,n&&s("select-change",[...u.value])}function N(e,t){var n;const i=[...t];for(;i.length;){const t=i.shift();if(t[a.dataValue]===e[a.dataValue])return t;(null==(n=t[a.dataChildren])?void 0:n.length)&&i.push(...t[a.dataChildren])}return{}}function C(e){var t;if(!(null==(t=e[a.dataChildren])?void 0:t.length))return[];const n=e[a.dataChildren].reduce(((e,t)=>t.visible?[...e,t]:e),[]);for(let i=0;i!e.disabled));if(n.checked){if(e=Array.from(new Set([...e,n[a.dataValue].toString()])),i.length&&(e=Array.from(new Set([...e,...i.map((e=>e[a.dataValue].toString()))])),i.forEach((e=>{e.partChecked=!1,g.delete(e[a.dataValue])}))),t.length){let n=!1;for(;t.length;){const i=t.shift();if(!i.disabled)if(n)i.partChecked=!0,g.add(i[a.dataValue]);else{i[a.dataChildren].filter((e=>e.visible&&!e.disabled)).every((e=>e.checked))?(i.checked=!0,i.partChecked=!1,g.delete(i[a.dataValue]),e=Array.from(new Set([...e,i[a.dataValue].toString()]))):(i.partChecked=!0,g.add(i[a.dataValue]),n=!0)}}}}else e=e.filter((e=>e!==n[a.dataValue].toString())),i.length&&i.forEach((t=>{e=e.filter((e=>e!==t[a.dataValue].toString()))})),t.length&&t.forEach((t=>{e.includes(t[a.dataValue].toString())&&(t.checked=!1),e=e.filter((e=>e!==t[a.dataValue].toString()));const n=t[a.dataChildren].filter((e=>e.visible&&!e.disabled)).some((e=>e.checked||e.partChecked));t.partChecked=n,n?g.add(t[a.dataValue]):g.delete(t[a.dataValue])}));s("update:modelValue",Qa(a.modelValue)?e.join(","):e)}else{let e=null;e=n.checked?Array.from(new Set([...v.value,n[a.dataValue].toString()])):v.value.filter((e=>e!==n[a.dataValue].toString())),s("update:modelValue",Qa(a.modelValue)?e.join(","):e)}else{let e=[];n.checked&&(e=[n[a.dataValue].toString()]),s("update:modelValue",Qa(a.modelValue)?e.join(","):e)}}function B(e){const t=!e.showChildren;N(e,o.value).showChildren=t,N(e,l.value).showChildren=t}function A(){if(h.value=!h.value,h.value){if(!a.mutiple)return void uni.showToast({title:"单选模式下不能全选",icon:"none",duration:1e3});let e=[];o.value.forEach((t=>{var n;(t.visible||t.disabled&&t.checked)&&(e=Array.from(new Set([...e,t[a.dataValue].toString()])),(null==(n=t[a.dataChildren])?void 0:n.length)&&(e=Array.from(new Set([...e,...C(t).filter((e=>!e.disabled||e.disabled&&e.checked)).map((e=>e[a.dataValue].toString()))]))))})),s("update:modelValue",Qa(a.modelValue)?e.join(","):e)}else M()}function M(){if(a.disabled)return;g.clear();const e=[];u.value.forEach((t=>{t.visible&&t.checked&&t.disabled&&e.push(t[a.dataValue])})),s("update:modelValue",Qa(a.modelValue)?e.join(","):e)}return e.onMounted((()=>{!function({screenHeight:e}){r.value=`${Math.floor(.7*e)}px`}(uni.getSystemInfoSync())})),e.watch((()=>a.dataSource),(e=>{e&&(o.value=E(e),d.value&&(x(),D(o.value)))}),{immediate:!0,deep:!0}),e.watch((()=>a.modelValue),(e=>{const t=e?Array.isArray(e)?e:e.split(","):[];T(o.value,t,!0),l.value.length&&T(l.value,t)}),{immediate:!0}),(i,c)=>{const d=n(e.resolveDynamicComponent("uni-icons"),W),g=n(e.resolveDynamicComponent("uni-easyinput"),Za),w=n(e.resolveDynamicComponent("uni-popup"),Ge);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:e.normalizeClass(["select-list",{disabled:t.disabled},{active:v.value.length}]),onClick:k},[e.createElementVNode("view",{class:"left"},[v.value.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"select-items"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(n=>(e.openBlock(),e.createElementBlock("view",{class:"select-item",key:n[t.dataValue]},[e.createElementVNode("view",{class:"name"},[e.createElementVNode("text",null,e.toDisplayString(n[t.dataLabel]),1)]),t.disabled||n.disabled||!t.deleteSource?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"close",onClick:e.withModifiers((e=>function(e){if(h.value=!1,a.linkage)I(e,!1),s("removeSelect",e);else{const t=v.value.filter((t=>t!==e[a.dataValue].toString()));s("removeSelect",e),s("update:modelValue",Qa(a.modelValue)?t.join(","):t)}}(n)),["stop"])},[e.createVNode(d,{type:"closeempty",size:"16",color:"#999"})],8,["onClick"]))])))),128))])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"no-data"},[e.createElementVNode("text",null,e.toDisplayString(t.placeholder),1)]))]),e.createElementVNode("view",null,[v.value.length&&t.clearable?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(d,{key:0,type:"bottom",color:"#333333"})),e.createElementVNode("view",{onClick:c[0]||(c[0]=e.withModifiers((()=>{}),["stop"]))},[v.value.length&&t.clearable?(e.openBlock(),e.createBlock(d,{key:0,type:"clear",size:"24",color:"#c0c4cc",onClick:M})):e.createCommentVNode("",!0)])])],2),e.createVNode(w,{ref_key:"popup",ref:m,animation:t.animation,"is-mask-click":i.isMaskClick,"mask-background-color":i.maskBackgroundColor,"background-color":i.backgroundColor,"safe-area":t.safeArea,type:"bottom",onChange:S,onMaskClick:b},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"popup-content",style:e.normalizeStyle({height:r.value})},[e.createElementVNode("view",{class:"title"},[t.mutiple&&t.canSelectAll?(e.openBlock(),e.createElementBlock("view",{key:0,class:"left",onClick:A},[e.createElementVNode("text",null,e.toDisplayString(h.value?"取消全选":"全选"),1)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"center"},[e.createElementVNode("text",null,e.toDisplayString(t.placeholder),1)]),e.createElementVNode("view",{class:"right",style:e.normalizeStyle({color:t.confirmTextColor}),onClick:_},[e.createElementVNode("text",null,e.toDisplayString(t.confirmText),1)],4)]),t.search?(e.openBlock(),e.createElementBlock("view",{key:0,class:"search-box"},[e.createVNode(g,{maxlength:-1,prefixIcon:"search",placeholder:"搜索",modelValue:f.value,"onUpdate:modelValue":c[1]||(c[1]=e=>f.value=e),"confirm-type":"search",onConfirm:c[2]||(c[2]=e=>y(!1)),onClear:c[3]||(c[3]=e=>y(!0))},null,8,["modelValue"]),e.createElementVNode("button",{type:"primary",size:"mini",class:"search-btn",onClick:c[4]||(c[4]=e=>y(!1))},"搜索")])):e.createCommentVNode("",!0),o.value.length?(e.openBlock(),e.createElementBlock("view",{key:1,class:"select-content"},[e.createElementVNode("scroll-view",{class:"scroll-view-box","scroll-top":p.value,"scroll-y":"true",onTouchmove:c[5]||(c[5]=e.withModifiers((()=>{}),["stop"]))},[l.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:0,class:"no-data center"},[e.createElementVNode("text",null,"暂无数据")])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(n=>(e.openBlock(),e.createBlock(es,{key:n[t.dataValue],node:n,dataLabel:t.dataLabel,dataValue:t.dataValue,dataChildren:t.dataChildren,choseParent:t.choseParent,border:t.border,linkage:t.linkage,lazyLoadChildren:t.lazyLoadChildren},null,8,["node","dataLabel","dataValue","dataChildren","choseParent","border","linkage","lazyLoadChildren"])))),128)),e.createElementVNode("view",{class:"sentry"})],40,["scroll-top"])])):(e.openBlock(),e.createElementBlock("view",{key:2,class:"no-data center"},[e.createElementVNode("text",null,"暂无数据")]))],4)])),_:1},8,["animation","is-mask-click","mask-background-color","background-color","safe-area"])],64)}}}),[["__scopeId","data-v-0768d7c7"]]),ns={__name:"application",setup(i){const a=H(),{proxy:s}=e.getCurrentInstance(),o=e.ref(a.userinfo.realname),l=e.ref(""),c=e.ref(a.userinfo.phone),d=e.ref(""),h=e.ref([]),p=e.ref(""),f=e=>{p.value=e.detail.value},m=e.ref(""),g=e=>{m.value=e.detail.value},v=e.ref([]),y=e.ref(null),w=e.ref(!0),k=e.ref(""),_=e.ref(""),S=e.ref(""),b=e.ref([]),E={width:64,height:64,border:{color:"#dce7e1",width:2,style:"dashed",radius:"2px"}};r((()=>{N()}));const x=e=>{e.tempFilePaths;for(let t=0;t{b.value.push(JSON.parse(e.data).message)}})}},D=()=>{return c.value.trim()?d.value?p.value?m.value?w.value&&null==y.value?s.$toast("请选择审批领导"):_.value.trim()?S.value.trim()?void(e={username:a.userinfo.username,phone:c.value,type:d.value,begintime:p.value,endtime:m.value,examineleader:v.value[y.value].username,address:_.value,reason:S.value,zwmc:k.value,path:b.value.toString()},u({url:"/CxcQxj/cxcQxj/add",method:"post",data:e})).then((e=>{e.success?T(e.message):s.$toast(e.message)})):s.$toast("请输入请假事由"):s.$toast("请输入请假地点"):s.$toast("请选择结束时间"):s.$toast("请选择开始时间"):s.$toast("请选择请假类型"):s.$toast("请输入联系方式");var e},T=e=>{var n;(n={flowCode:"dev_cxc_qxj",id:e,formUrl:"modules/qxj/modules/CxcQxjBpmModel",formUrlMobile:"leaveApplication"},u({url:"/process/extActProcess/startMutilProcess",method:"post",data:n})).then((e=>{e.success&&(s.$toast(e.message),setTimeout((()=>{uni.navigateBack()}),2e3))})).catch((e=>{t("log","at pages/leave/application.vue:235",e)}))},N=()=>{var e,t,n;(e="1838487445813645313",u({url:"/sys/category/findtree",method:"get",data:{pid:e}})).then((e=>{e.success&&(h.value=e.result)})),(t=a.userinfo.orgCode,u({url:"/sys/sysDepart/queryDepNameByDepCode",method:"get",data:{code:t}})).then((e=>{e.success&&(l.value=e.result)})),(n=a.userinfo.username,u({url:"/CxcQxj/cxcQxj/queryZwmcByUsername",method:"get",data:{username:n}})).then((e=>{e.success?(v.value=e.result.list,k.value=e.result.zwmc,"单位专家"!=k.value&&"正职"!=k.value&&"高级主管"!=k.value||(w.value=!1)):s.$toast(e.message)}))},C=e=>{y.value=e.detail.value};return(t,i)=>{const s=n(e.resolveDynamicComponent("uni-icons"),W),r=n(e.resolveDynamicComponent("uni-file-picker"),Ya);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(a).isgray})},[e.createElementVNode("view",{class:"form"},[e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 职工姓名: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=e=>o.value=e),disabled:""},null,512),[[e.vModelText,o.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 工作单位: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[1]||(i[1]=e=>l.value=e),disabled:""},null,512),[[e.vModelText,l.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 联系方式: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[2]||(i[2]=e=>c.value=e)},null,512),[[e.vModelText,c.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 请假类型: "),e.createVNode(ts,{dataSource:h.value,modelValue:d.value,"onUpdate:modelValue":i[3]||(i[3]=e=>d.value=e),dataValue:"name"},null,8,["dataSource","modelValue"])]),e.createElementVNode("picker",{mode:"date",fields:"day",onChange:f,value:p.value},[e.createElementVNode("view",{class:"f-row aic jcb box"},[e.createElementVNode("view",{class:"title"}," 开始时间: "),e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("view",{class:e.normalizeClass([{choose:!p.value},{choosed:p.value}])},e.toDisplayString(p.value?p.value:"请选择"),3),e.createVNode(s,{type:"bottom",color:"#333333"})])])],40,["value"]),e.createElementVNode("picker",{mode:"date",fields:"day",onChange:g,value:m.value},[e.createElementVNode("view",{class:"f-row aic jcb box"},[e.createElementVNode("view",{class:"title"}," 截止时间: "),e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("view",{class:e.normalizeClass([{choose:!m.value},{choosed:m.value}])},e.toDisplayString(m.value?m.value:"请选择"),3),e.createVNode(s,{type:"bottom",color:"#333333"})])])],40,["value"]),w.value?(e.openBlock(),e.createElementBlock("picker",{key:0,onChange:C,value:y.value,range:v.value,"range-key":"realname"},[e.createElementVNode("view",{class:"f-row aic jcb box"},[e.createElementVNode("view",{class:"title"}," 审批领导: "),e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("view",{class:e.normalizeClass([{choose:null==y.value},{choosed:null!=y.value}])},e.toDisplayString(null!=y.value?v.value[y.value].realname:"请选择"),3),e.createVNode(s,{type:"bottom",color:"#333333"})])])],40,["value","range"])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 请假地点: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[4]||(i[4]=e=>_.value=e),placeholder:"请输入","nplaceholder-style":"font-size: 28rpx;color: #999999;"},null,512),[[e.vModelText,_.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 请假事由: "),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[5]||(i[5]=e=>S.value=e),placeholder:"请输入","placeholder-style":"font-size: 28rpx;color: #999999;"},null,512),[[e.vModelText,S.value]])]),e.createElementVNode("view",{class:"f-row aic jcb input_box"},[e.createElementVNode("view",{class:"title"}," 上传附件: "),e.createVNode(r,{onSelect:x,"image-styles":E})])]),e.createElementVNode("view",{class:"btn f-col aic"},[e.createElementVNode("view",{onClick:D}," 提交 ")])],2)}}},is=q(ns,[["__scopeId","data-v-6e3acbe9"]]),as=q({__name:"index",setup(t){const i=H(),a=()=>{uni.navigateBack()};return(t,s)=>{const r=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(i).isgray}])},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"nav_box f-row aic"},[e.createElementVNode("view",{class:"back",onClick:a},[e.createVNode(r,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"avatar"},[e.createElementVNode("image",{src:e.unref(i).userinfo.avatar,mode:""},null,8,["src"])]),e.createElementVNode("view",{class:"f-col"},[e.createElementVNode("view",{class:"name"},e.toDisplayString(e.unref(i).userinfo.realname),1),e.createElementVNode("view",{class:"position"},e.toDisplayString(e.unref(i).role),1)])])])),_:1}),e.createElementVNode("view",{class:"time_box f-row aic jcb"},[e.createElementVNode("view",{class:"box"},[e.createElementVNode("view",{class:"time f-row aic"},[e.createElementVNode("view",{class:""}," 上班 9:30 "),e.createElementVNode("image",{src:"/static/checkin/chenggong.png",mode:""})]),e.createElementVNode("view",{class:"text"}," 重庆市渝北区上弯路 ")]),e.createElementVNode("view",{class:"box"},[e.createElementVNode("view",{class:"time f-row aic"},[e.createElementVNode("view",{class:""}," 下班 16:30 "),e.createElementVNode("image",{src:"/static/checkin/shibai.png",mode:""})]),e.createElementVNode("view",{class:"text"}," 打卡已超时 ")])]),e.createElementVNode("view",{class:"checkin"},[e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"status f-col aic"},[e.createElementVNode("image",{src:"/static/checkin/position4.png",mode:""}),e.createElementVNode("text",null,"打卡失败")]),e.createElementVNode("view",{class:e.normalizeClass(["circle","f-col","aic","out","check","success","fail"])},[e.createElementVNode("view",{class:"title"}," 上班打卡 "),e.createElementVNode("view",{class:"time"}," 9:00 "),e.createElementVNode("view",{class:"ontime"}," 已超时 ")])])])],2)}}},[["__scopeId","data-v-f70ab478"]]),ss=q({__name:"useredit",setup(i){const a=H(),s=()=>{uni.chooseImage({count:1,success:e=>{const n=e.tempFilePaths,i="用户头像/"+a.userinfo.realname;uni.uploadFile({url:"https://36.112.48.190/jeecg-boot/sys/common/upload",filePath:n[0],name:"file",formData:{appPath:i},success:e=>{var n;uni.showLoading({title:"上传中..."}),o.avatar=JSON.parse(e.data).message,(n={avatar:o.avatar,id:a.userinfo.id},u({url:"/sys/user/editApp",method:"PUT",data:n})).then((e=>{e&&uni.showToast({title:e,icon:"success",duration:2e3})})).catch((e=>{t("log","at pages/useredit/useredit.vue:97",e)}))},fail(e){t("log","at pages/useredit/useredit.vue:101","图片上传出错",e)}})}})},o=e.reactive({avatar:"",realname:"",phone:""}),l=()=>{uni.showModal({title:"退出登录",content:"您确认要退出登录吗?",success(e){e.confirm&&(uni.removeStorageSync("token"),uni.removeStorageSync("user"),uni.removeStorageSync("role"),uni.removeStorageSync("logintime"),uni.reLaunch({url:"/pages/login/login"}))}})};return r((()=>{uni.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:"#bebebe"})})),(t,i)=>{const r=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createElementVNode("view",{class:"box"},[e.createElementVNode("view",null,"头像"),e.createElementVNode("view",{style:{display:"flex","align-items":"center"}},[e.createElementVNode("button",{class:"head-btn",onClick:s},[o.avatar?(e.openBlock(),e.createElementBlock("image",{key:1,class:"head-img",src:e.unref(Re)(o.avatar)},null,8,["src"])):(e.openBlock(),e.createElementBlock("image",{key:0,class:"head-img",src:e.unref(Re)(e.unref(a).userinfo.avatar),mode:""},null,8,["src"]))]),e.createVNode(r,{type:"right",size:"24"})])]),e.createElementVNode("view",{class:"box",style:{"padding-top":"30rpx","padding-bottom":"30rpx"}},[e.createElementVNode("view",null,"姓名"),e.withDirectives(e.createElementVNode("input",{disabled:"",style:{"text-align":"right"},type:"nickname","placeholder-style":"font-size: 32rpx;color: #999999;","onUpdate:modelValue":i[0]||(i[0]=t=>e.unref(a).userinfo.realname=t),placeholder:"请输入姓名"},null,512),[[e.vModelText,e.unref(a).userinfo.realname]])]),e.createElementVNode("view",{class:"box",style:{"padding-top":"30rpx","padding-bottom":"30rpx"}},[e.createElementVNode("view",null,"手机号"),e.withDirectives(e.createElementVNode("input",{disabled:"",style:{"text-align":"right"},type:"nickname","onUpdate:modelValue":i[1]||(i[1]=t=>e.unref(a).userinfo.phone=t),placeholder:"请输入手机号","placeholder-style":"font-size: 32rpx;color: #999999;"},null,512),[[e.vModelText,e.unref(a).userinfo.phone]])]),e.createElementVNode("view",{class:"box",style:{"padding-top":"30rpx","padding-bottom":"30rpx"}},[e.createElementVNode("view",null,"劳动合同号"),e.withDirectives(e.createElementVNode("input",{style:{"text-align":"right"},type:"nickname",disabled:"","onUpdate:modelValue":i[2]||(i[2]=t=>e.unref(a).userinfo.workNo=t),placeholder:"请输入劳动合同号","placeholder-style":"font-size: 32rpx;color: #999999;"},null,512),[[e.vModelText,e.unref(a).userinfo.workNo]])])],2),e.createElementVNode("view",{class:"line"}),e.createElementVNode("view",{class:"btn",onClick:l}," 退出登录 ")],64)}}},[["__scopeId","data-v-3dbb4317"]]),rs=q({__name:"address",setup(t){const n=H();return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(2,((t,n)=>e.createElementVNode("view",{class:"item",key:n},[e.createElementVNode("view",{class:"province f-row aic"},[e.createElementVNode("view",{class:""}," 浙江省,杭州市 "),e.createElementVNode("image",{src:"/static/my/default.png",mode:""})]),e.createElementVNode("view",{class:"address f-row jcb"},[e.createElementVNode("view",{class:""}," 重庆 重庆市 渝北区 龙溪街道花卉园东路黄金 宝高级住宅小区 "),e.createElementVNode("image",{src:"/static/my/edit.png",mode:""})]),e.createElementVNode("view",{class:"set f-row aic jcb"},[e.createElementVNode("view",{class:"f-row aic"},[e.createElementVNode("image",{src:"/static/login/nocheck.png",mode:""}),e.createTextVNode(" 设为默认地址 ")]),e.createElementVNode("view",{class:""}," 删除 ")])]))),64))]),e.createElementVNode("view",{class:"btn f-col aic"},[e.createElementVNode("view",{class:"",onClick:i[0]||(i[0]=e=>{var t;Ne(t="/pages/useredit/add_address",(()=>{uni.navigateTo({url:t})}))})}," +添加收货地址 ")])],2))}},[["__scopeId","data-v-837db36d"]]),os=q({__name:"add_address",setup(t){const n=H();return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createElementVNode("view",{class:"area f-row jcb"},[e.createElementVNode("view",{class:"title topic"}," 所在地区 "),e.createElementVNode("input",{type:"text",placeholder:"省、市、区、街道"})]),e.createElementVNode("view",{class:"area f-row jcb"},[e.createElementVNode("view",{class:"title topic"}," 详细地址 "),e.createElementVNode("textarea",{placeholder:"小区楼栋/乡村名称"})]),e.createElementVNode("view",{class:"area f-row jcb"},[e.createElementVNode("view",{class:"title"}," 设为默认地址 "),e.createElementVNode("image",{src:"/static/login/checked.png",mode:""})]),e.createElementVNode("view",{class:"btn f-col aic"},[e.createElementVNode("view",{class:""}," 保存 ")])],2))}},[["__scopeId","data-v-c71fcfcd"]]),ls=q({__name:"addressbook",setup(t){const n=H();return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(n).isgray})},[e.createElementVNode("view",{class:"list"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,((t,n)=>e.createElementVNode("view",{class:"item f-row aic jcb",key:n},[e.createElementVNode("view",{class:"user f-row aic"},[e.createElementVNode("image",{src:"",mode:""}),e.createElementVNode("view",{class:"name_job"},[e.createElementVNode("view",{class:"name"}," 我是晴天 "),e.createElementVNode("view",{class:"job"}," 销售部-销售总监 ")])]),e.createElementVNode("view",{class:"btn"}," 电话联系 ")]))),64))])],2))}},[["__scopeId","data-v-e9ce91fd"]]),cs=q({__name:"safeCom",setup:t=>(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"list f-row aic jcb"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(20,((t,i)=>e.createElementVNode("view",{class:"item",key:i,onClick:n[0]||(n[0]=e=>{var t;Ne(t="/pages/safe/detail",(()=>{uni.navigateTo({url:t})}))})},[e.createElementVNode("view",{class:""},[e.createElementVNode("image",{src:"",mode:""})]),e.createElementVNode("view",{class:"text"}," 五月天“突然好想你”线上演唱会精彩回放 ")]))),64))]))},[["__scopeId","data-v-bc41e6b3"]]),us=q({__name:"manage",setup(t){const i=H(),a=e.ref(!0),s=e.ref("");return(t,r)=>{const o=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(i).isgray}])},[e.createVNode(xe,null,{default:e.withCtx((()=>[e.createElementVNode("view",{class:"nav_box f-row aic jcb"},[e.createElementVNode("view",{class:"back f-row aic",onClick:r[0]||(r[0]=(...e)=>t.back&&t.back(...e))},[e.createVNode(o,{type:"left",size:"20",color:"#fff"})]),e.createElementVNode("view",{class:"search f-row aic"},[e.withDirectives(e.createElementVNode("input",{type:"text","onUpdate:modelValue":r[1]||(r[1]=e=>s.value=e),onConfirm:r[2]||(r[2]=(...e)=>t.search&&t.search(...e)),onBlur:r[3]||(r[3]=e=>a.value=!s.value),onFocus:r[4]||(r[4]=e=>a.value=!1)},null,544),[[e.vModelText,s.value]]),a.value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic"},[e.createElementVNode("image",{src:"/static/search.png",mode:""}),e.createElementVNode("text",null,"搜索")])):e.createCommentVNode("",!0)])])])),_:1}),e.createElementVNode("view",{class:""},[e.createVNode(cs)])],2)}}},[["__scopeId","data-v-02e8f217"]]),ds=q({__name:"dataCom",props:{title:{type:String,default:""},list:{type:Array,default:function(){return[]}}},setup(t){e.useCssVars((e=>({"09ebbe2f":s.value})));const i=t,a=e.ref(!1),s=e.ref(null);return e.watch((()=>i.list),(()=>{e.nextTick((()=>{uni.createSelectorQuery().select(".data_box").boundingClientRect((e=>{s.value=((null==e?void 0:e.height)||0)+"px"})).exec()}))}),{immediate:!0}),(i,s)=>{const r=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:""},[e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"item_box"},[e.createElementVNode("view",{class:"item"},[e.createElementVNode("view",{class:"title_box f-row aic jcb"},[e.createElementVNode("view",{class:"title"},e.toDisplayString(t.title),1),t.list.length>6?(e.openBlock(),e.createElementBlock("view",{key:0,class:"f-row aic more",onClick:s[0]||(s[0]=e=>a.value=!a.value)},[e.createElementVNode("text",null,e.toDisplayString(a.value?"收起":"展开"),1),a.value?(e.openBlock(),e.createBlock(r,{key:1,type:"up",color:"#999999"})):(e.openBlock(),e.createBlock(r,{key:0,type:"down",color:"#999999"}))])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:e.normalizeClass(["data_wrapper",{close:t.list.length>6&&a.value}])},[e.createElementVNode("view",{class:"data_box f-row aic"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"data f-col aic"},[e.createElementVNode("view",{class:""},e.toDisplayString(null==t?void 0:t.dailyVolume),1),e.createElementVNode("text",null,e.toDisplayString(t.gas),1)])))),256))])],2)])])])])}}},[["__scopeId","data-v-40acdf41"]]),hs={__name:"index",setup(t){const n=H(),i=e.ref([]),a=e.ref([]);return r((e=>{i.value=JSON.parse(e.shishi),a.value=JSON.parse(e.product)})),(t,s)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["f-col","aic",{gray:1==e.unref(n).isgray}])},[e.createVNode(ds,{title:"实时输差",list:i.value},null,8,["list"]),e.createVNode(ds,{title:"偏远计量点",list:i.value},null,8,["list"]),e.createVNode(ds,{title:"生产实时数据",list:a.value},null,8,["list"])],2))}},ps={en:{"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"},"zh-Hans":{"uni-load-more.contentdown":"上拉显示更多","uni-load-more.contentrefresh":"正在加载...","uni-load-more.contentnomore":"没有更多数据了"},"zh-Hant":{"uni-load-more.contentdown":"上拉顯示更多","uni-load-more.contentrefresh":"正在加載...","uni-load-more.contentnomore":"沒有更多數據了"}};let fs;setTimeout((()=>{fs=uni.getSystemInfoSync().platform}),16);const{t:ms}=ge(ps);const gs=q({name:"UniLoadMore",emits:["clickLoadMore"],props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},iconType:{type:String,default:"auto"},iconSize:{type:Number,default:24},color:{type:String,default:"#777777"},contentText:{type:Object,default:()=>({contentdown:"",contentrefresh:"",contentnomore:""})},showText:{type:Boolean,default:!0}},data:()=>({webviewHide:!1,platform:fs,imgBase64:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzlBMzU3OTlEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzlBMzU3OUFEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDOUEzNTc5N0Q5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDOUEzNTc5OEQ5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pt+ALSwAAA6CSURBVHja1FsLkFZVHb98LM+F5bHL8khA1iSeiyQBCRM+YGqKUnnJTDLGI0BGZlKDIU2MMglUiDApEZvSsZnQtBRJtKwQNKQMFYeRDR10WOLd8ljYXdh+v8v5fR3Od+797t1dnOnO/Ofce77z+J//+b/P+ZqtXbs2sJ9MJhNUV1cHJ06cCJo3bx7EPc2aNcvpy7pWrVoF+/fvDyoqKoI2bdoE9fX1F7TjN8a+EXBn/fkfvw942Tf+wYMHg9mzZwfjxo0LDhw4EPa1x2MbFw/fOGfPng1qa2tzcCkILsLDydq2bRsunpOTMM7TD/W/tZDZhPdeKD+yGxHhdu3aBV27dg3OnDlzMVANMheLAO3btw8KCwuDmpoaX5OxbgUIMEq7K8IcPnw4KCsrC/r37x8cP378/4cAXAB3vqSkJMuiDhTkw+XcuXNhOWbMmKBly5YhUT8xArhyFvP0BfwRsAuwxJZJsm/nzp2DTp06he/OU+cZ64K6o0ePBkOHDg2GDx8e6gEbJ5Q/NHNuAJQ1hgBeHUDlR7nVTkY8rQAvAi4z34vR/mPs1FoRsaCgIJThI0eOBC1atEiFGGV+5MiRoS45efJkqFjJFXV1dQuA012m2WcwTw98fy6CqBdsaiIO4CScrGPHjvk4odhavPquRtFWXEC25VgkREKOCh/qDSq+vn37htzD/mZTOmOc5U7zKzBPEedygWshcDyWvs30igAbU+6oyMgJBCFhwQE0fccxN60Ay9iebbjoDh06hMowjQxT4fXq1SskArmHZpkArvixp/kWzHdMeArExSJEaiXIjjRjRJ4DaAGWpibLzXN3Fm1vA5teBgh3j1Rv3bp1YgKwPdmf2p9zcyNYYgPKMfY0T5f5nNYdw158nJ8QawW4CLKwiOBSEgO/hok2eBydR+3dYH+PLxA5J8Vv0KBBwenTp0P2JWAx6+yFEBfs8lMY+y0SWMBNI9E4ThKi58VKTg3FQZS1RQF1cz27eC0QHMu+3E0SkUowjhVt5VdaWhp07949ZHv2Qd1EjDXM2cla1M0nl3GxAs3J9yREzyTdFVKVFOaE9qRA8GM0WebRuo9JGZKA7Mv2SeS/Z8+eoQ9BArMfFrLGo6jvxbhHbJZnKX2Rzz1O7QhJJ9Cs2ZMaWIyq/zhdeqPNfIoHd58clIQD+JSXl4dKlyIAuBdVXZwFVWKspSSoxE++h8x4k3uCnEhE4I5KwRiFWGOU0QWKiCYLbdoRMRKAu2kQ9vkfLU6dOhX06NEjlH+yMRZSinnuyWnYosVcji8CEA/6Cg2JF+IIUBqnGKUTCNwtwBN4f89RiK1R96DEgO2o0NDmtEdvVFdVVYV+P3UAPUEs6GFwV3PHmXkD4vh74iDFJysVI/MlaQhwKeBNTLYX5VuA8T4/gZxA4MRGFxDB6R7OmYPfyykGRJbyie+XnGYnQIC/coH9+vULiYrxrkL9ZA9+0ykaHIfEpM7ge8TiJ2CsHYwyMfafAF1yCGBHYIbCVDjDjKt7BeB51D+LgQa6OkG7IDYEEtvQ7lnXLKLtLdLuJBpE4gPUXcW2+PkZwOex+4cGDhwYDBkyRL7/HFcEwUGPo/8uWRUpYnfxGHco8HkewLHLyYmAawAPuIFZxhOpDfJQ8gbUv41yORAptMWBNr6oqMhWird5+u+iHmBb2nhjDV7HWBNQTgK8y11l5NetWzc5ULscAtSj7nbNI0skhWeUZCc0W4nyH/jO4Vz0u1IeYhbk4AiwM6tjxIWByHsoZ9qcIBPJd/y+DwPfBESOmCa/QF3WiZHucLlEDpNxcNhmheEOPgdQNx6/VZFQzFZ5TN08AHXQt2Ii3EdyFuUsPtTcGPhW5iMiCNELvz+Gdn9huG4HUJaW/w3g0wxV0XaG7arG2WeKiUWYM4Y7GO5ezshTARbbWGw/DvXkpp/ivVvE0JVoMxN4rpGzJMhE5Pl+xlATsDIqikP9F9D2z3h9nOksEUFhK+qO4rcPkoalMQ/HqJLIyb3F3JdjrCcw1yZ8joyJLR5gCo54etlag7qIoeNh1N1BRYj3DTFJ0elotxPlVzkGuYAmL0VSJVGAJA41c4Z6A3BzTLfn0HYwYKEI6CUAMzZEWvLsIcQOo1AmmyyM72nHJCfYsogflGV6jEk9vyQZXSuq6w4c16NsGcGZbwOPr+H1RkOk2LEzjNepxQkihHSCQ4ynAYNRx2zMKV92CQMWqj8J0BRE8EShxRFN6YrfCRhC0x3r/Zm4IbQCcmJoV0kMamllccR6FjHqUC5F2R/wS2dcymOlfAKOS4KmzQb5cpNC2MC7JhVn5wjXoJ44rYhLh8n0eXOCorJxa7POjbSlCGVczr34/RsAmrcvo9s+wGp3tzVhntxiXiJ4nvEYb4FJkf0O8HocAePmLvCxnL0AORraVekJk6TYjDabRVXfRE2lCN1h6ZQRN1+InUbsCpKwoBZHh0dODN9JBCUffItXxEavTQkUtnfTVAplCWL3JISz29h4NjotnuSsQKJCk8dF+kJR6RARjrqFVmfPnj3ZbK8cIJ0msd6jgHPGtfVTQ8VLmlvh4mct9sobRmPic0DyDQQnx/NlfYUgyz59+oScsH379pAwXABD32nTpoUHIToESeI5mnbE/UqDdyLcafEBf2MCqgC7NwxIbMREJQ0g4D4sfJwnD+AmRrII05cfMWJE+L1169bQr+fip06dGp4oJ83lmYd5wj/EmMa4TaHivo4EeCguYZBnkB5g2aWA69OIEnUHOaGysjIYMGBAMGnSpODYsWPZwCpFmm4lNq+4gSLQA7jcX8DwtjEyRC8wjabnXEx9kfWnTJkSJkAo90xpJVV+FmcVNeYAF5zWngS4C4O91MBxmAv8blLEpbjI5sz9MTdAhcgkCT1RO8mZkAjfiYpTEvStAS53Uw1vAiUGgZ3GpuQEYvoiBqlIan7kSDHnTwJQFNiPu0+5VxCVYhcZIjNrdXUDdp+Eq5AZ3Gkg8QAyVZRZIk4Tl4QAbF9cXJxNYZMAtAokgs4BrNxEpCtteXg7DDTMDKYNSuQdKsnJBek7HxewvxaosWxLYXtw+cJp18217wql4aKCfBNoEu0O5VU+PhctJ0YeXD4C6JQpyrlpSLTojpGGGN5YwNziChdIZLk4lvLcFJ9jMX3QdiImY9bmGQU+TRUL5CHITTRlgF8D9ouD1MfmLoEPl5xokIumZ2cfgMpHt47IW9N64Hsh7wQYYjyIugWuF5fCqYncXRd5vPMWyizzvhi/32+nvG0dZc9vR6fZOu0md5e+uC408FvKSIOZwXlGvxPv95izA2Vtvg1xKFWARI+vMX66HUhpQQb643uW1bSjuTWyw2SBvDrBvjFic1eGGlz5esq3ko9uSIlBRqPuFcCv8F4WIcN12nVaBd0SaYwI6PDDImR11JkqgHcPmQssjxIn6bUshygDFJUTxPMpHk+jfjPgupgdnYV2R/g7xSjtpah8RJBewhwf0gGK6XI92u4wXFEU40afJ4DN4h5LcAd+40HI3JgJecuT0c062W0i2hQJUTcxan3/CMW1PF2K6bbA+Daz4xRs1D3Br1Cm0OihKCqizW78/nXAF/G5TXrEcVzaNMH6CyMswqsAHqDyDLEyou8lwOXnKF8DjI6KjV3KzMBiXkDH8ij/H214J5A596ekrZ3F0zXlWeL7+P5eUrNo3/QwC15uxthuzidy7DzKRwEDaAViiDgKbTbz7CJnzo0bN7pIfIiid8SuPwn25o3QCmpnyjlZkyxPP8EomCJzrGb7GJMx7tNsq4MT2xMUYaiErZOluTzKsnz3gwCeCZyVRZJfYplNEokEjwrPtxlxjeYAk+F1F74VAzPxQRNYYdtpOUvWs8J1sGhBJMNsb7igN8plJs1eSmLIhLKE4rvaCX27gOhLpLOsIzJ7qn/i+wZzcvSOZ23/du8TZjwV8zHIXoP4R3ifBxiFz1dcVpa3aPntPE+c6TmIWE9EtcMmAcPdWAhYhAXxcLOQi9L1WhD1Sc8p1d2oL7XGiRKp8F4A2i8K/nfI+y/gsTDJ/YC/8+AD5Uh04KHiGl+cIFPnBDDrPMjwRGkLXyxO4VGbfQWnDH2v0bVWE3C9QOXlepbgjEfIJQI6XDG3z5ahD9cw2pS78ipB85wyScNTvsVzlzzhL8/jRrnmVjfFJK/m3m4nj9vbgQTguT8XZTjsm672R5uJKEaQmBI/c58gyus8ZDagLpEVSJBIyHp4jn++xqPV71OgQgJYEWOtZ/haxRtKmWOBu8xdBLftWltsY84zE6WIEy/eIOWL+BaayMx+KHtL7EAkqdNDLiEXmEMUHniedtJqg9HmZtfvt26vNi0BdG3Ft3g8ZOf7PAu59TxtzivLNIekyi+wD1i8CuUiD9FXAa8C+/xS3JPmZnomyc7H+fb4/Se0bk41Fel621r4cgVxbq91V4jVqwB7HTe2M7jgB+QWHavZkDRPmZcASoZEmBx6i75bGjPcMdL4/VKGFAGWZkGzPG0XAbdL9A81G5LOmUnC9hHKJeO7dcUMjblSl12867ElFTtaGl20xvvLGPdVz/8TVuU7y0x1PG7vtNg24oz9Uo/Z412++VFWI7Fcog9tu9Lm6gvRmIPv9x1xmQAu6RDkXtbOtlGEmpgD5Nvnyc0dcv0EE6cfdi1HmhMf9wDF3k3gtRvEedhxjpgfqPb9PU9iEJHnyOUA7bQUXh6kq/D7l2iTjWv7XOD530BDr8jIrus+srXjt4MzumJMHuTsBa63YKE1+RR5lBjEikCCnWKWiHdzOgKO+nRIBAF88za/IFmJ3eMZov4CYxGBabcpGL8EYx+SeMXJeRwHNsV/h+vdxeuhEpN3ZyNY78Gm2fknJxVGhyjixPiQvVkNzT1elD9Py/aTAL64Hb9vcYmC9zfdXdT/C1LeGbg4rnBaAihDFJH12W5ulfNCNe/xTsP3bp8ikzJs5BF+5PNfAQYAPaseTdsEcaYAAAAASUVORK5CYII="}),computed:{iconSnowWidth(){return 2*(Math.floor(this.iconSize/24)||1)},contentdownText(){return this.contentText.contentdown||ms("uni-load-more.contentdown")},contentrefreshText(){return this.contentText.contentrefresh||ms("uni-load-more.contentrefresh")},contentnomoreText(){return this.contentText.contentnomore||ms("uni-load-more.contentnomore")}},mounted(){var e=getCurrentPages(),t=e[e.length-1].$getAppWebview();t.addEventListener("hide",(()=>{this.webviewHide=!0})),t.addEventListener("show",(()=>{this.webviewHide=!1}))},methods:{onClick(){this.$emit("clickLoadMore",{detail:{status:this.status}})}}},[["render",function(t,n,i,a,s,r){return e.openBlock(),e.createElementBlock("view",{class:"uni-load-more",onClick:n[0]||(n[0]=(...e)=>r.onClick&&r.onClick(...e))},[!s.webviewHide&&("circle"===i.iconType||"auto"===i.iconType&&"android"===s.platform)&&"loading"===i.status&&i.showIcon?(e.openBlock(),e.createElementBlock("view",{key:0,style:e.normalizeStyle({width:i.iconSize+"px",height:i.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--android-MP"},[e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:i.color,borderTopWidth:i.iconSize/12})},null,4),e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:i.color,borderTopWidth:i.iconSize/12})},null,4),e.createElementVNode("view",{class:"uni-load-more__img-icon",style:e.normalizeStyle({borderTopColor:i.color,borderTopWidth:i.iconSize/12})},null,4)],4)):!s.webviewHide&&"loading"===i.status&&i.showIcon?(e.openBlock(),e.createElementBlock("view",{key:1,style:e.normalizeStyle({width:i.iconSize+"px",height:i.iconSize+"px"}),class:"uni-load-more__img uni-load-more__img--ios-H5"},[e.createElementVNode("image",{src:s.imgBase64,mode:"widthFix"},null,8,["src"])],4)):e.createCommentVNode("",!0),i.showText?(e.openBlock(),e.createElementBlock("text",{key:2,class:"uni-load-more__text",style:e.normalizeStyle({color:i.color})},e.toDisplayString("more"===i.status?r.contentdownText:"loading"===i.status?r.contentrefreshText:r.contentnomoreText),5)):e.createCommentVNode("",!0)])}],["__scopeId","data-v-a7e112cc"]]),vs={props:{localdata:{type:[Array,Object],default:()=>[]},spaceInfo:{type:Object,default:()=>({})},collection:{type:String,default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:500},getcount:{type:[Boolean,String],default:!1},getone:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},manual:{type:Boolean,default:!1},value:{type:[Array,String,Number],default:()=>[]},modelValue:{type:[Array,String,Number],default:()=>[]},preload:{type:Boolean,default:!1},stepSearh:{type:Boolean,default:!0},selfField:{type:String,default:""},parentField:{type:String,default:""},multiple:{type:Boolean,default:!1},map:{type:Object,default:()=>({text:"text",value:"value"})}},data(){return{loading:!1,errorMessage:"",loadMore:{contentdown:"",contentrefresh:"",contentnomore:""},dataList:[],selected:[],selectedIndex:0,page:{current:this.pageCurrent,size:this.pageSize,count:0}}},computed:{isLocalData(){return!this.collection.length},isCloudData(){return this.collection.length>0},isCloudDataList(){return this.isCloudData&&!this.parentField&&!this.selfField},isCloudDataTree(){return this.isCloudData&&this.parentField&&this.selfField},dataValue(){return(Array.isArray(this.modelValue)?this.modelValue.length>0:null!==this.modelValue||void 0!==this.modelValue)?this.modelValue:this.value},hasValue(){return"number"==typeof this.dataValue||null!=this.dataValue&&this.dataValue.length>0}},created(){this.$watch((()=>{var e=[];return["pageCurrent","pageSize","spaceInfo","value","modelValue","localdata","collection","action","field","orderby","where","getont","getcount","gettree"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{for(let n=2;n(this.selected=e.result.data,e.result.data)))},getCloudDataTreeValue(){return this.getCommand({field:this._cloudDataPostField(),getTreePath:{startWith:`${this.selfField}=='${this.dataValue}'`}}).then((e=>{let t=[];return this._extractTreePath(e.result.data,t),this.selected=t,t}))},getCommand(e={}){let t=ja.database(this.spaceInfo);const n=e.action||this.action;n&&(t=t.action(n));const i=e.collection||this.collection;t=t.collection(i);const a=e.where||this.where;a&&Object.keys(a).length&&(t=t.where(a));const s=e.field||this.field;s&&(t=t.field(s));const r=e.orderby||this.orderby;r&&(t=t.orderBy(r));const o=void 0!==e.pageCurrent?e.pageCurrent:this.page.current,l=void 0!==e.pageSize?e.pageSize:this.page.size,c={getCount:void 0!==e.getcount?e.getcount:this.getcount,getTree:void 0!==e.gettree?e.gettree:this.gettree};return e.getTreePath&&(c.getTreePath=e.getTreePath),t=t.skip(l*(o-1)).limit(l).get(c),t},_cloudDataPostField(){let e=[this.field];return this.parentField&&e.push(`${this.parentField} as parent_value`),e.join(",")},_cloudDataTreeWhere(){let e=[],t=this.selected,n=this.parentField;if(n&&e.push(`${n} == null || ${n} == ""`),t.length)for(var i=0;inull===e.parent_value||void 0===e.parent_value||""===e.parent_value)));for(let a=0;ae.parent_value===s));r.length?n.push(r):i=!1}return{dataList:n,hasNodes:i}},_extractTree(e,t,n){let i=this.map.value;for(let a=0;a{this.loadData()}))},methods:{onPropsChange(){this._treeData=[],this.selectedIndex=0,this.$nextTick((()=>{this.loadData()}))},handleSelect(e){this.selectedIndex=e},handleNodeClick(e,t,n){if(e.disable)return;const i=this.dataList[t][n],a=i[this.map.text],s=i[this.map.value];if(t{e.length?(this._treeData.push(...e),this._updateBindData(i)):i.isleaf=!0,this.onSelectedChange(i,i.isleaf)})))},updateData(e){this._treeData=e.treeData,this.selected=e.selected,this._treeData.length?this._updateBindData():this.loadData()},onDataChange(){this.$emit("datachange")},onSelectedChange(e,t){t&&this._dispatchEvent(),e&&this.$emit("nodeclick",e)},_dispatchEvent(){this.$emit("change",this.selected.slice(0))}}},[["render",function(t,i,a,s,r,o){const l=n(e.resolveDynamicComponent("uni-load-more"),gs);return e.openBlock(),e.createElementBlock("view",{class:"uni-data-pickerview"},[t.isCloudDataList?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("scroll-view",{key:0,class:"selected-area","scroll-x":"true"},[e.createElementVNode("view",{class:"selected-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.selected,((n,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["selected-item",{"selected-item-active":i==t.selectedIndex}]),key:i,onClick:e=>o.handleSelect(i)},[e.createElementVNode("text",null,e.toDisplayString(n.text||""),1)],10,["onClick"])))),128))])])),e.createElementVNode("view",{class:"tab-c"},[e.createElementVNode("scroll-view",{class:"list","scroll-y":!0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataList[t.selectedIndex],((n,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["item",{"is-disabled":!!n.disable}]),key:i,onClick:e=>o.handleNodeClick(n,t.selectedIndex,i)},[e.createElementVNode("text",{class:"item-text"},e.toDisplayString(n[t.map.text]),1),t.selected.length>t.selectedIndex&&n[t.map.value]==t.selected[t.selectedIndex].value?(e.openBlock(),e.createElementBlock("view",{key:0,class:"check"})):e.createCommentVNode("",!0)],10,["onClick"])))),128))]),t.loading?(e.openBlock(),e.createElementBlock("view",{key:0,class:"loading-cover"},[e.createVNode(l,{class:"load-more",contentText:t.loadMore,status:"loading"},null,8,["contentText"])])):e.createCommentVNode("",!0),t.errorMessage?(e.openBlock(),e.createElementBlock("view",{key:1,class:"error-message"},[e.createElementVNode("text",{class:"error-text"},e.toDisplayString(t.errorMessage),1)])):e.createCommentVNode("",!0)])])}],["__scopeId","data-v-c0c521c5"]])},props:{options:{type:[Object,Array],default:()=>({})},popupTitle:{type:String,default:"请选择"},placeholder:{type:String,default:"请选择"},heightMobile:{type:String,default:""},readonly:{type:Boolean,default:!1},clearIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!0},split:{type:String,default:"/"},ellipsis:{type:Boolean,default:!0}},data:()=>({isOpened:!1,inputSelected:[]}),created(){this.$nextTick((()=>{this.load()}))},watch:{localdata:{handler(){this.load()},deep:!0}},methods:{clear(){this._dispatchEvent([])},onPropsChange(){this._treeData=[],this.selectedIndex=0,this.load()},load(){this.readonly?this._processReadonly(this.localdata,this.dataValue):this.isLocalData?(this.loadData(),this.inputSelected=this.selected.slice(0)):(this.isCloudDataList||this.isCloudDataTree)&&(this.loading=!0,this.getCloudDataValue().then((e=>{this.loading=!1,this.inputSelected=e})).catch((e=>{this.loading=!1,this.errorMessage=e})))},show(){this.isOpened=!0,setTimeout((()=>{this.$refs.pickerView.updateData({treeData:this._treeData,selected:this.selected,selectedIndex:this.selectedIndex})}),200),this.$emit("popupopened")},hide(){this.isOpened=!1,this.$emit("popupclosed")},handleInput(){this.readonly?this.$emit("inputclick"):this.show()},handleClose(e){this.hide()},onnodeclick(e){this.$emit("nodeclick",e)},ondatachange(e){this._treeData=this.$refs.pickerView._treeData},onchange(e){this.hide(),this.$nextTick((()=>{this.inputSelected=e})),this._dispatchEvent(e)},_processReadonly(e,t){if(e.findIndex((e=>e.children))>-1){let e;return Array.isArray(t)?(e=t[t.length-1],"object"==typeof e&&e.value&&(e=e.value)):e=t,void(this.inputSelected=this._findNodePath(e,this.localdata))}if(!this.hasValue)return void(this.inputSelected=[]);let n=[];for(let s=0;se.value==i));a&&n.push(a)}n.length&&(this.inputSelected=n)},_filterForArray(e,t){var n=[];for(let s=0;se.value==i));a&&n.push(a)}return n},_dispatchEvent(e){let t={};if(e.length){for(var n=new Array(e.length),i=0;io.handleInput&&o.handleInput(...e))},[e.renderSlot(t.$slots,"default",{options:a.options,data:r.inputSelected,error:t.errorMessage},(()=>[e.createElementVNode("view",{class:e.normalizeClass(["input-value",{"input-value-border":a.border}])},[t.errorMessage?(e.openBlock(),e.createElementBlock("text",{key:0,class:"selected-area error-text"},e.toDisplayString(t.errorMessage),1)):t.loading&&!r.isOpened?(e.openBlock(),e.createElementBlock("view",{key:1,class:"selected-area"},[e.createVNode(l,{class:"load-more",contentText:t.loadMore,status:"loading"},null,8,["contentText"])])):r.inputSelected.length?(e.openBlock(),e.createElementBlock("scroll-view",{key:2,class:"selected-area","scroll-x":"true"},[e.createElementVNode("view",{class:"selected-list"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.inputSelected,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"selected-item",key:n},[e.createElementVNode("text",{class:"text-color"},e.toDisplayString(t.text),1),no.clear&&o.clear(...e)),["stop"]))},[e.createVNode(c,{type:"clear",color:"#c0c4cc",size:"24"})])):e.createCommentVNode("",!0),a.clearIcon&&r.inputSelected.length||a.readonly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("view",{key:5,class:"arrow-area"},[e.createElementVNode("view",{class:"input-arrow"})]))],2)]),!0)]),r.isOpened?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-data-tree-cover",onClick:i[2]||(i[2]=(...e)=>o.handleClose&&o.handleClose(...e))})):e.createCommentVNode("",!0),r.isOpened?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-data-tree-dialog"},[e.createElementVNode("view",{class:"uni-popper__arrow"}),e.createElementVNode("view",{class:"dialog-caption"},[e.createElementVNode("view",{class:"title-area"},[e.createElementVNode("text",{class:"dialog-title"},e.toDisplayString(a.popupTitle),1)]),e.createElementVNode("view",{class:"dialog-close",onClick:i[3]||(i[3]=(...e)=>o.handleClose&&o.handleClose(...e))},[e.createElementVNode("view",{class:"dialog-close-plus","data-id":"close"}),e.createElementVNode("view",{class:"dialog-close-plus dialog-close-rotate","data-id":"close"})])]),e.createVNode(u,{class:"picker-view",ref:"pickerView",modelValue:t.dataValue,"onUpdate:modelValue":i[4]||(i[4]=e=>t.dataValue=e),localdata:t.localdata,preload:t.preload,collection:t.collection,field:t.field,orderby:t.orderby,where:t.where,"step-searh":t.stepSearh,"self-field":t.selfField,"parent-field":t.parentField,"managed-mode":!0,map:t.map,ellipsis:a.ellipsis,onChange:o.onchange,onDatachange:o.ondatachange,onNodeclick:o.onnodeclick},null,8,["modelValue","localdata","preload","collection","field","orderby","where","step-searh","self-field","parent-field","map","ellipsis","onChange","onDatachange","onNodeclick"])])):e.createCommentVNode("",!0)])}],["__scopeId","data-v-0b9ed1e5"]]),ks={__name:"index",setup(i){const a=H(),{proxy:s}=e.getCurrentInstance(),o=e.ref([]),l=()=>{var e;u({url:"/sys/sysDepart/queryTreeList",method:"get",data:e}).then((e=>{o.value=e.result,h=e.result[0].id,d(e.result[0].id)})).catch((e=>{t("log","at pages/userlist/index.vue:98",e)}))},c=e.ref([]),d=(e,n,i)=>{var a;(a={id:e,username:n||"",realname:i||""},u({url:"/sys/user/queryUserByDepId",method:"get",data:a})).then((e=>{e.success&&(c.value=e.result)})).catch((e=>{t("log","at pages/userlist/index.vue:113",e)}))};let h=null,p=[];const f=e=>{d(e.id),h=e.id,-1!=p.indexOf(e.title)?p.splice(p.indexOf(e.title),1,e.title):p.push(e.title)},m=e.ref([]);let g=0,v=null,y=null,w=null;r((e=>{g=e.isradio,v=e.id,w=e.reason,e.nextnode&&(y=JSON.parse(e.nextnode)),l()}));const k=e.ref(""),_=e.ref(""),b=()=>{(k.value.trim()||_.value.trim())&&(c.value=[],d(h,k.value,_.value))},E=()=>{k.value="",_.value="",c.value=[],d(h,k.value,_.value)},x=()=>{if(!m.value.length)return s.$toast("请选择被委托人");var e;(e={taskAssignee:c.value.filter((e=>e.id==m.value[0]))[0].username,taskId:v},u({url:"/act/task/taskEntrust",method:"put",data:e})).then((e=>{e.success&&(s.$toast(e.message),setTimeout((()=>{uni.navigateBack()}),2e3))}))},D=()=>{y?T():x()},T=()=>{S({taskId:v,reason:w,processModel:1,nextnode:y[0].nextnode,nextUserName:c.value.filter((e=>e.id==m.value[0]))[0].realname,nextUserId:m.value[0]}).then((e=>{s.$toast(e.message),setTimeout((()=>{uni.navigateBack()}),2e3)}))};return(i,s)=>{const r=n(e.resolveDynamicComponent("uni-data-picker"),ws),l=n(e.resolveDynamicComponent("uni-icons"),W);return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(a).isgray}])},[e.createVNode(r,{onPopupclosed:s[0]||(s[0]=e=>(e=>{t("log","at pages/userlist/index.vue:129","qqq",e)})(e)),"step-searh":!1,map:{text:"departName",value:"id"},localdata:o.value,"popup-title":"请选择部门",placeholder:"请选择部门",onNodeclick:f},null,8,["localdata"]),e.createElementVNode("view",{class:"search_box"},[e.createElementVNode("view",{class:"username f-row aic"},[e.createTextVNode(" 用户姓名:"),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":s[1]||(s[1]=e=>_.value=e),type:"text",placeholder:"请输入姓名","placeholder-style":"color: grey;font-size: 28rpx;"},null,512),[[e.vModelText,_.value]])]),e.createElementVNode("view",{class:"username f-row aic"},[e.createTextVNode(" 用户账号:"),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":s[2]||(s[2]=e=>k.value=e),type:"text",placeholder:"请输入账号","placeholder-style":"color: grey;font-size: 28rpx;"},null,512),[[e.vModelText,k.value]])]),e.createElementVNode("view",{class:"btn f-row aic jca"},[e.createElementVNode("view",{class:"f-row aic",onClick:b},[e.createVNode(l,{type:"search",size:"15",color:"#fff"}),e.createTextVNode(" 查询 ")]),e.createElementVNode("view",{class:"f-row aic",onClick:E},[e.createVNode(l,{type:"refreshempty",size:"15",color:"#fff"}),e.createTextVNode(" 重置 ")])])]),e.createElementVNode("view",{class:"list"},[e.createElementVNode("view",{class:"title f-row aic box"},[e.createElementVNode("view",{class:""}),e.createElementVNode("view",{class:""}," 序号 "),e.createElementVNode("view",{class:"username"}," 用户账号 "),e.createElementVNode("view",{class:""}," 用户姓名 ")]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"item f-row aic box",key:n},[e.createElementVNode("view",{class:"f-row aic img",onClick:e=>(e=>{if(g){if(-1!=m.value.indexOf(e))return;m.value.splice(m.value.indexOf(e),1,e)}else-1!=m.value.indexOf(e)?m.value.splice(m.value.indexOf(e),1):m.value.push(e)})(t.id)},[m.value.includes(t.id)?(e.openBlock(),e.createElementBlock("image",{key:0,src:"/static/login/checked.png",mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:"/static/login/nocheck.png",mode:""}))],8,["onClick"]),e.createElementVNode("view",{class:"order"},e.toDisplayString(n+1),1),e.createElementVNode("view",{class:"username f-col aic"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.username),1)]),e.createElementVNode("view",{class:"realname"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.realname),1)])])))),128))]),e.createElementVNode("view",{class:"confirm f-col aic"},[e.createElementVNode("view",{class:"",onClick:D}," 确认 ")])],2)}}},_s=q(ks,[["__scopeId","data-v-a805c56c"]]),Ss=q({__name:"detail",setup(t){const n=H();return(t,i)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["content",{gray:1==e.unref(n).isgray}])},[e.createElementVNode("view",{class:""},[e.createElementVNode("video",{src:""}),e.createElementVNode("view",{class:"title"}," 五月天“突然好想你”线上演唱会精彩回放,这里就是标题 ")]),e.createElementVNode("view",{class:"listcom"},[e.createVNode(cs)])],2))}},[["__scopeId","data-v-ab4e5d54"]]);var bs={exports:{}};!function(e,t){e.exports=function(){var e=1e3,t=6e4,n=36e5,i="millisecond",a="second",s="minute",r="hour",o="day",l="week",c="month",u="quarter",d="year",h="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},y={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),i=Math.floor(n/60),a=n%60;return(t<=0?"+":"-")+v(i,2,"0")+":"+v(a,2,"0")},m:function e(t,n){if(t.date()1)return e(r[0])}else{var o=t.name;k[o]=t,a=o}return!i&&a&&(w=a),a||!i&&w},E=function(e,t){if(S(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new D(n)},x=y;x.l=b,x.i=S,x.w=function(e,t){return E(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function g(e){this.$L=b(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(f);if(i){var a=i[2]-1||0,s=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,s)):new Date(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,s)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return x},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=E(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return E(e){l()}));const s=e.ref(Es().format("YYYY-MM")),o=e=>{s.value=e.detail.value,l()},l=()=>{let[e,n]=s.value.split("-");var i;(i={year:e,month:n},u({url:"/zhgl_zbgl/zhglZbglZbb/list",method:"get",data:i})).then((e=>{a.value=e.result.records})).catch((e=>{t("log","at pages/zhiban/index.vue:73",e)}))};return(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["f-col","aic",{gray:1==e.unref(i).isgray}])},[e.createElementVNode("picker",{fields:"month",mode:"date",onChange:o,value:s.value},[e.createElementVNode("view",{class:"date"},e.toDisplayString(s.value)+" 点击选择月份",1)],40,["value"]),e.createElementVNode("view",{class:"info"},[e.createElementVNode("view",{class:"info_title f-row aic"},[e.createElementVNode("view",{class:""}," 日期 "),e.createElementVNode("view",{class:""}," 带班领导 "),e.createElementVNode("view",{class:""}," 值班领导 "),e.createElementVNode("view",{class:""}," 值班干部 ")]),e.createElementVNode("view",{class:"data_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"data f-row aic"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.date),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.dbld_dictText),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.zbld_dictText),1),e.createElementVNode("view",{class:""},e.toDisplayString(t.zbgbrealname),1)])))),256))])])],2))}},Ds=q(xs,[["__scopeId","data-v-54de2922"]]),Ts={__name:"self",setup(n){const i=H(),a=e.ref([]);let s="";r((e=>{s=e.title,u()}));let l=1,c=!1;const u=()=>{c=!0,uni.showLoading({title:"加载中..."}),f({pageNo:l,pageSize:10,_t:(new Date).getTime(),processName:s}).then((e=>{if(e.success){if(!e.result.records.length)return Te("没有更多了~");let t=e.result.records;t.map((e=>{e.processApplyUserName=e.startUserName,e.processDefinitionName=e.prcocessDefinitionName,e.taskBeginTime=e.startTime})),a.value=[...a.value,...t],c=!1}})).catch((e=>{t("log","at pages/task/self.vue:59",e)}))},d=e=>{Ne(e,(()=>{uni.navigateTo({url:e})}))};return o((()=>{c||(l++,u())})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass({gray:1==e.unref(i).isgray})},[e.createVNode(ze,{onJump:d,taskArr:a.value,currentIndex:2},null,8,["taskArr"])],2))}};__definePage("pages/login/login",K),__definePage("pages/tab/index",Oe),__definePage("pages/task/todotask",Fe),__definePage("pages/tab/office",Ue),__definePage("pages/tab/my",$e),__definePage("pages/task/index",He),__definePage("pages/task/handle",Qe),__definePage("pages/talk/message_list",Xe),__definePage("pages/talk/conversation",et),__definePage("pages/talk/system",nt),__definePage("pages/document/index",it),__definePage("pages/document/detail",at),__definePage("pages/meeting/index",st),__definePage("pages/meeting/detail",rt),__definePage("pages/leave/application",is),__definePage("pages/checkin/index",as),__definePage("pages/useredit/useredit",ss),__definePage("pages/useredit/address",rs),__definePage("pages/useredit/add_address",os),__definePage("pages/useredit/addressbook",ls),__definePage("pages/safe/manage",us),__definePage("pages/product/index",hs),__definePage("pages/userlist/index",_s),__definePage("pages/safe/detail",Ss),__definePage("pages/zhiban/index",Ds),__definePage("pages/task/self",Ts);var Ns=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,62,0,63,52,53,54,55,56,57,58,59,60,61,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,0,0,0,0,63,0,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];const Cs={getRandomValues(e){if(!(e instanceof Int8Array||e instanceof Uint8Array||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8ClampedArray))throw new Error("Expected an integer array");if(e.byteLength>65536)throw new Error("Can only request a maximum of 65536 bytes");var t;return function(e,t){for(var n,i=e.length,a="="===e[i-2]?2:"="===e[i-1]?1:0,s=0,r=i-a&4294967292,o=0;o>16&255,t[s++]=n>>8&255,t[s++]=255&n;1===a&&(n=Ns[e.charCodeAt(o)]<<10|Ns[e.charCodeAt(o+1)]<<4|Ns[e.charCodeAt(o+2)]>>2,t[s++]=n>>8&255,t[s++]=255&n),2===a&&(n=Ns[e.charCodeAt(o)]<<2|Ns[e.charCodeAt(o+1)]>>4,t[s++]=255&n)}((t="DCloud-Crypto",weex.requireModule(t)).getRandomValues(e.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e}};function Vs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Is={exports:{}}; +/*! For license information please see gtpush-min.js.LICENSE.txt */!function(e,t){var n;self,n=()=>(()=>{var e={4736:(e,t,n)=>{var i;e=n.nmd(e);var a=function(e){var t=1e7,n=9007199254740992,i=h(n),s="0123456789abcdefghijklmnopqrstuvwxyz",r="function"==typeof BigInt;function o(e,t,n,i){return void 0===e?o[0]:void 0===t||10==+t&&!n?Y(e):H(e,t,n,i)}function l(e,t){this.value=e,this.sign=t,this.isSmall=!1}function c(e){this.value=e,this.sign=e<0,this.isSmall=!0}function u(e){this.value=e}function d(e){return-n0?Math.floor(e):Math.ceil(e)}function v(e,n){var i,a,s=e.length,r=n.length,o=new Array(s),l=0,c=t;for(a=0;a=c?1:0,o[a]=i-l*c;for(;a0&&o.push(l),o}function y(e,t){return e.length>=t.length?v(e,t):v(t,e)}function w(e,n){var i,a,s=e.length,r=new Array(s),o=t;for(a=0;a0;)r[a++]=n%o,n=Math.floor(n/o);return r}function k(e,n){var i,a,s=e.length,r=n.length,o=new Array(s),l=0,c=t;for(i=0;i0;)r[a++]=l%o,l=Math.floor(l/o);return r}function E(e,t){for(var n=[];t-- >0;)n.push(0);return n.concat(e)}function x(e,t){var n=Math.max(e.length,t.length);if(n<=30)return S(e,t);n=Math.ceil(n/2);var i=e.slice(n),a=e.slice(0,n),s=t.slice(n),r=t.slice(0,n),o=x(a,r),l=x(i,s),c=x(y(a,i),y(r,s)),u=y(y(o,E(k(k(c,o),l),n)),E(l,2*n));return f(u),u}function D(e,n,i){return new l(e=0;--n)a=(s=1e7*a+e[n])-(i=g(s/t))*t,o[n]=0|i;return[o,0|a]}function C(e,n){var i,a=Y(n);if(r)return[new u(e.value/a.value),new u(e.value%a.value)];var s,d=e.value,v=a.value;if(0===v)throw new Error("Cannot divide by zero");if(e.isSmall)return a.isSmall?[new c(g(d/v)),new c(d%v)]:[o[0],e];if(a.isSmall){if(1===v)return[e,o[0]];if(-1==v)return[e.negate(),o[0]];var y=Math.abs(v);if(y=0;a--){for(i=h-1,y[a+d]!==g&&(i=Math.floor((y[a+d]*h+y[a+d-1])/g)),s=0,r=0,l=w.length,o=0;oc&&(s=(s+1)*h),i=Math.ceil(s/r);do{if(V(o=b(n,i),d)<=0)break;i--}while(i);u.push(i),d=k(d,o)}return u.reverse(),[p(u),p(d)]}(d,v),s=i[0];var S=e.sign!==a.sign,E=i[1],x=e.sign;return"number"==typeof s?(S&&(s=-s),s=new c(s)):s=new l(s,S),"number"==typeof E?(x&&(E=-E),E=new c(E)):E=new l(E,x),[s,E]}function V(e,t){if(e.length!==t.length)return e.length>t.length?1:-1;for(var n=e.length-1;n>=0;n--)if(e[n]!==t[n])return e[n]>t[n]?1:-1;return 0}function I(e){var t=e.abs();return!t.isUnit()&&(!!(t.equals(2)||t.equals(3)||t.equals(5))||!(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))&&(!!t.lesser(49)||void 0))}function B(e,t){for(var n,i,s,r=e.prev(),o=r,l=0;o.isEven();)o=o.divide(2),l++;e:for(i=0;i=0?i=k(e,t):(i=k(t,e),n=!n),"number"==typeof(i=p(i))?(n&&(i=-i),new c(i)):new l(i,n)}(n,i,this.sign)},l.prototype.minus=l.prototype.subtract,c.prototype.subtract=function(e){var t=Y(e),n=this.value;if(n<0!==t.sign)return this.add(t.negate());var i=t.value;return t.isSmall?new c(n-i):_(i,Math.abs(n),n>=0)},c.prototype.minus=c.prototype.subtract,u.prototype.subtract=function(e){return new u(this.value-Y(e).value)},u.prototype.minus=u.prototype.subtract,l.prototype.negate=function(){return new l(this.value,!this.sign)},c.prototype.negate=function(){var e=this.sign,t=new c(-this.value);return t.sign=!e,t},u.prototype.negate=function(){return new u(-this.value)},l.prototype.abs=function(){return new l(this.value,!1)},c.prototype.abs=function(){return new c(Math.abs(this.value))},u.prototype.abs=function(){return new u(this.value>=0?this.value:-this.value)},l.prototype.multiply=function(e){var n,i=Y(e),a=this.value,s=i.value,r=this.sign!==i.sign;if(i.isSmall){if(0===s)return o[0];if(1===s)return this;if(-1===s)return this.negate();if((n=Math.abs(s))0}(a.length,s.length)?new l(x(a,s),r):new l(S(a,s),r)},l.prototype.times=l.prototype.multiply,c.prototype._multiplyBySmall=function(e){return d(e.value*this.value)?new c(e.value*this.value):D(Math.abs(e.value),h(Math.abs(this.value)),this.sign!==e.sign)},l.prototype._multiplyBySmall=function(e){return 0===e.value?o[0]:1===e.value?this:-1===e.value?this.negate():D(Math.abs(e.value),this.value,this.sign!==e.sign)},c.prototype.multiply=function(e){return Y(e)._multiplyBySmall(this)},c.prototype.times=c.prototype.multiply,u.prototype.multiply=function(e){return new u(this.value*Y(e).value)},u.prototype.times=u.prototype.multiply,l.prototype.square=function(){return new l(T(this.value),!1)},c.prototype.square=function(){var e=this.value*this.value;return d(e)?new c(e):new l(T(h(Math.abs(this.value))),!1)},u.prototype.square=function(e){return new u(this.value*this.value)},l.prototype.divmod=function(e){var t=C(this,e);return{quotient:t[0],remainder:t[1]}},u.prototype.divmod=c.prototype.divmod=l.prototype.divmod,l.prototype.divide=function(e){return C(this,e)[0]},u.prototype.over=u.prototype.divide=function(e){return new u(this.value/Y(e).value)},c.prototype.over=c.prototype.divide=l.prototype.over=l.prototype.divide,l.prototype.mod=function(e){return C(this,e)[1]},u.prototype.mod=u.prototype.remainder=function(e){return new u(this.value%Y(e).value)},c.prototype.remainder=c.prototype.mod=l.prototype.remainder=l.prototype.mod,l.prototype.pow=function(e){var t,n,i,a=Y(e),s=this.value,r=a.value;if(0===r)return o[1];if(0===s)return o[0];if(1===s)return o[1];if(-1===s)return a.isEven()?o[1]:o[-1];if(a.sign)return o[0];if(!a.isSmall)throw new Error("The exponent "+a.toString()+" is too large.");if(this.isSmall&&d(t=Math.pow(s,r)))return new c(g(t));for(n=this,i=o[1];!0&r&&(i=i.times(n),--r),0!==r;)r/=2,n=n.square();return i},c.prototype.pow=l.prototype.pow,u.prototype.pow=function(e){var t=Y(e),n=this.value,i=t.value,a=BigInt(0),s=BigInt(1),r=BigInt(2);if(i===a)return o[1];if(n===a)return o[0];if(n===s)return o[1];if(n===BigInt(-1))return t.isEven()?o[1]:o[-1];if(t.isNegative())return new u(a);for(var l=this,c=o[1];(i&s)===s&&(c=c.times(l),--i),i!==a;)i/=r,l=l.square();return c},l.prototype.modPow=function(e,t){if(e=Y(e),(t=Y(t)).isZero())throw new Error("Cannot take modPow with modulus 0");var n=o[1],i=this.mod(t);for(e.isNegative()&&(e=e.multiply(o[-1]),i=i.modInv(t));e.isPositive();){if(i.isZero())return o[0];e.isOdd()&&(n=n.multiply(i).mod(t)),e=e.divide(2),i=i.square().mod(t)}return n},u.prototype.modPow=c.prototype.modPow=l.prototype.modPow,l.prototype.compareAbs=function(e){var t=Y(e),n=this.value,i=t.value;return t.isSmall?1:V(n,i)},c.prototype.compareAbs=function(e){var t=Y(e),n=Math.abs(this.value),i=t.value;return t.isSmall?n===(i=Math.abs(i))?0:n>i?1:-1:-1},u.prototype.compareAbs=function(e){var t=this.value,n=Y(e).value;return(t=t>=0?t:-t)===(n=n>=0?n:-n)?0:t>n?1:-1},l.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=Y(e),n=this.value,i=t.value;return this.sign!==t.sign?t.sign?1:-1:t.isSmall?this.sign?-1:1:V(n,i)*(this.sign?-1:1)},l.prototype.compareTo=l.prototype.compare,c.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=Y(e),n=this.value,i=t.value;return t.isSmall?n==i?0:n>i?1:-1:n<0!==t.sign?n<0?-1:1:n<0?1:-1},c.prototype.compareTo=c.prototype.compare,u.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=this.value,n=Y(e).value;return t===n?0:t>n?1:-1},u.prototype.compareTo=u.prototype.compare,l.prototype.equals=function(e){return 0===this.compare(e)},u.prototype.eq=u.prototype.equals=c.prototype.eq=c.prototype.equals=l.prototype.eq=l.prototype.equals,l.prototype.notEquals=function(e){return 0!==this.compare(e)},u.prototype.neq=u.prototype.notEquals=c.prototype.neq=c.prototype.notEquals=l.prototype.neq=l.prototype.notEquals,l.prototype.greater=function(e){return this.compare(e)>0},u.prototype.gt=u.prototype.greater=c.prototype.gt=c.prototype.greater=l.prototype.gt=l.prototype.greater,l.prototype.lesser=function(e){return this.compare(e)<0},u.prototype.lt=u.prototype.lesser=c.prototype.lt=c.prototype.lesser=l.prototype.lt=l.prototype.lesser,l.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},u.prototype.geq=u.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals=l.prototype.geq=l.prototype.greaterOrEquals,l.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},u.prototype.leq=u.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals=l.prototype.leq=l.prototype.lesserOrEquals,l.prototype.isEven=function(){return 0==(1&this.value[0])},c.prototype.isEven=function(){return 0==(1&this.value)},u.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},l.prototype.isOdd=function(){return 1==(1&this.value[0])},c.prototype.isOdd=function(){return 1==(1&this.value)},u.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},l.prototype.isPositive=function(){return!this.sign},c.prototype.isPositive=function(){return this.value>0},u.prototype.isPositive=c.prototype.isPositive,l.prototype.isNegative=function(){return this.sign},c.prototype.isNegative=function(){return this.value<0},u.prototype.isNegative=c.prototype.isNegative,l.prototype.isUnit=function(){return!1},c.prototype.isUnit=function(){return 1===Math.abs(this.value)},u.prototype.isUnit=function(){return this.abs().value===BigInt(1)},l.prototype.isZero=function(){return!1},c.prototype.isZero=function(){return 0===this.value},u.prototype.isZero=function(){return this.value===BigInt(0)},l.prototype.isDivisibleBy=function(e){var t=Y(e);return!t.isZero()&&(!!t.isUnit()||(0===t.compareAbs(2)?this.isEven():this.mod(t).isZero()))},u.prototype.isDivisibleBy=c.prototype.isDivisibleBy=l.prototype.isDivisibleBy,l.prototype.isPrime=function(t){var n=I(this);if(n!==e)return n;var i=this.abs(),s=i.bitLength();if(s<=64)return B(i,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var r=Math.log(2)*s.toJSNumber(),o=Math.ceil(!0===t?2*Math.pow(r,2):r),l=[],c=0;c-n?new c(e-1):new l(i,!0)},u.prototype.prev=function(){return new u(this.value-BigInt(1))};for(var A=[1];2*A[A.length-1]<=t;)A.push(2*A[A.length-1]);var M=A.length,P=A[M-1];function R(e){return Math.abs(e)<=t}function O(e,t,n){t=Y(t);for(var i=e.isNegative(),s=t.isNegative(),r=i?e.not():e,o=s?t.not():t,l=0,c=0,u=null,d=null,h=[];!r.isZero()||!o.isZero();)l=(u=C(r,P))[1].toJSNumber(),i&&(l=P-1-l),c=(d=C(o,P))[1].toJSNumber(),s&&(c=P-1-c),r=u[0],o=d[0],h.push(n(l,c));for(var p=0!==n(i?1:0,s?1:0)?a(-1):a(0),f=h.length-1;f>=0;f-=1)p=p.multiply(P).add(a(h[f]));return p}l.prototype.shiftLeft=function(e){var t=Y(e).toJSNumber();if(!R(t))throw new Error(String(t)+" is too large for shifting.");if(t<0)return this.shiftRight(-t);var n=this;if(n.isZero())return n;for(;t>=M;)n=n.multiply(P),t-=M-1;return n.multiply(A[t])},u.prototype.shiftLeft=c.prototype.shiftLeft=l.prototype.shiftLeft,l.prototype.shiftRight=function(e){var t,n=Y(e).toJSNumber();if(!R(n))throw new Error(String(n)+" is too large for shifting.");if(n<0)return this.shiftLeft(-n);for(var i=this;n>=M;){if(i.isZero()||i.isNegative()&&i.isUnit())return i;i=(t=C(i,P))[1].isNegative()?t[0].prev():t[0],n-=M-1}return(t=C(i,A[n]))[1].isNegative()?t[0].prev():t[0]},u.prototype.shiftRight=c.prototype.shiftRight=l.prototype.shiftRight,l.prototype.not=function(){return this.negate().prev()},u.prototype.not=c.prototype.not=l.prototype.not,l.prototype.and=function(e){return O(this,e,(function(e,t){return e&t}))},u.prototype.and=c.prototype.and=l.prototype.and,l.prototype.or=function(e){return O(this,e,(function(e,t){return e|t}))},u.prototype.or=c.prototype.or=l.prototype.or,l.prototype.xor=function(e){return O(this,e,(function(e,t){return e^t}))},u.prototype.xor=c.prototype.xor=l.prototype.xor;var L=1<<30;function F(e){var n=e.value,i="number"==typeof n?n|L:"bigint"==typeof n?n|BigInt(L):n[0]+n[1]*t|1073758208;return i&-i}function j(e,t){if(t.compareTo(e)<=0){var n=j(e,t.square(t)),i=n.p,s=n.e,r=i.multiply(t);return r.compareTo(e)<=0?{p:r,e:2*s+1}:{p:i,e:2*s}}return{p:a(1),e:0}}function U(e,t){return e=Y(e),t=Y(t),e.greater(t)?e:t}function $(e,t){return e=Y(e),t=Y(t),e.lesser(t)?e:t}function z(e,t){if(e=Y(e).abs(),t=Y(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var n,i,a=o[1];e.isEven()&&t.isEven();)n=$(F(e),F(t)),e=e.divide(n),t=t.divide(n),a=a.multiply(n);for(;e.isEven();)e=e.divide(F(e));do{for(;t.isEven();)t=t.divide(F(t));e.greater(t)&&(i=t,t=e,e=i),t=t.subtract(e)}while(!t.isZero());return a.isUnit()?e:e.multiply(a)}l.prototype.bitLength=function(){var e=this;return e.compareTo(a(0))<0&&(e=e.negate().subtract(a(1))),0===e.compareTo(a(0))?a(0):a(j(e,a(2)).e).add(a(1))},u.prototype.bitLength=c.prototype.bitLength=l.prototype.bitLength;var H=function(e,t,n,i){n=n||s,e=String(e),i||(e=e.toLowerCase(),n=n.toLowerCase());var a,r=e.length,o=Math.abs(t),l={};for(a=0;a=o){if("1"===d&&1===o)continue;throw new Error(d+" is not a valid digit in base "+t+".")}t=Y(t);var c=[],u="-"===e[0];for(a=u?1:0;a"!==e[a]&&a=0;i--)a=a.add(e[i].times(s)),s=s.times(t);return n?a.negate():a}function K(e,t){if((t=a(t)).isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(t.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var n=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return n.unshift([1]),{value:[].concat.apply([],n),isNegative:!1}}var i=!1;if(e.isNegative()&&t.isPositive()&&(i=!0,e=e.abs()),t.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:i};for(var s,r=[],o=e;o.isNegative()||o.compareAbs(t)>=0;){s=o.divmod(t),o=s.quotient;var l=s.remainder;l.isNegative()&&(l=t.minus(l).abs(),o=o.next()),r.push(l.toJSNumber())}return r.push(o.toJSNumber()),{value:r.reverse(),isNegative:i}}function J(e,t,n){var i=K(e,t);return(i.isNegative?"-":"")+i.value.map((function(e){return function(e,t){return e<(t=t||s).length?t[e]:"<"+e+">"}(e,n)})).join("")}function W(e){if(d(+e)){var t=+e;if(t===g(t))return r?new u(BigInt(t)):new c(t);throw new Error("Invalid integer: "+e)}var n="-"===e[0];n&&(e=e.slice(1));var i=e.split(/e/i);if(i.length>2)throw new Error("Invalid integer: "+i.join("e"));if(2===i.length){var a=i[1];if("+"===a[0]&&(a=a.slice(1)),(a=+a)!==g(a)||!d(a))throw new Error("Invalid integer: "+a+" is not a valid exponent.");var s=i[0],o=s.indexOf(".");if(o>=0&&(a-=s.length-o-1,s=s.slice(0,o)+s.slice(o+1)),a<0)throw new Error("Cannot include negative exponent part for integers");e=s+=new Array(a+1).join("0")}if(!/^([0-9][0-9]*)$/.test(e))throw new Error("Invalid integer: "+e);if(r)return new u(BigInt(n?"-"+e:e));for(var h=[],p=e.length,m=p-7;p>0;)h.push(+e.slice(m,p)),(m-=7)<0&&(m=0),p-=7;return f(h),new l(h,n)}function Y(e){return"number"==typeof e?function(e){if(r)return new u(BigInt(e));if(d(e)){if(e!==g(e))throw new Error(e+" is not an integer.");return new c(e)}return W(e.toString())}(e):"string"==typeof e?W(e):"bigint"==typeof e?new u(e):e}l.prototype.toArray=function(e){return K(this,e)},c.prototype.toArray=function(e){return K(this,e)},u.prototype.toArray=function(e){return K(this,e)},l.prototype.toString=function(t,n){if(t===e&&(t=10),10!==t)return J(this,t,n);for(var i,a=this.value,s=a.length,r=String(a[--s]);--s>=0;)i=String(a[s]),r+="0000000".slice(i.length)+i;return(this.sign?"-":"")+r},c.prototype.toString=function(t,n){return t===e&&(t=10),10!=t?J(this,t,n):String(this.value)},u.prototype.toString=c.prototype.toString,u.prototype.toJSON=l.prototype.toJSON=c.prototype.toJSON=function(){return this.toString()},l.prototype.valueOf=function(){return parseInt(this.toString(),10)},l.prototype.toJSNumber=l.prototype.valueOf,c.prototype.valueOf=function(){return this.value},c.prototype.toJSNumber=c.prototype.valueOf,u.prototype.valueOf=u.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var G=0;G<1e3;G++)o[G]=Y(G),G>0&&(o[-G]=Y(-G));return o.one=o[1],o.zero=o[0],o.minusOne=o[-1],o.max=U,o.min=$,o.gcd=z,o.lcm=function(e,t){return e=Y(e).abs(),t=Y(t).abs(),e.divide(z(e,t)).multiply(t)},o.isInstance=function(e){return e instanceof l||e instanceof c||e instanceof u},o.randBetween=function(e,n,i){e=Y(e),n=Y(n);var a=i||Math.random,s=$(e,n),r=U(e,n).subtract(s).add(1);if(r.isSmall)return s.add(Math.floor(a()*r));for(var l=K(r,t).value,c=[],u=!0,d=0;d>>8^255&f^99,a[n]=f,s[f]=n;var m=e[n],g=e[m],v=e[g],y=257*e[f]^16843008*f;r[n]=y<<24|y>>>8,o[n]=y<<16|y>>>16,l[n]=y<<8|y>>>24,c[n]=y,y=16843009*v^65537*g^257*m^16843008*n,u[f]=y<<24|y>>>8,d[f]=y<<16|y>>>16,h[f]=y<<8|y>>>24,p[f]=y,n?(n=m^e[e[e[v^m]]],i^=e[e[i]]):n=i=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,i=4*((this._nRounds=n+6)+1),s=this._keySchedule=[],r=0;r6&&r%n==4&&(c=a[c>>>24]<<24|a[c>>>16&255]<<16|a[c>>>8&255]<<8|a[255&c]):(c=a[(c=c<<8|c>>>24)>>>24]<<24|a[c>>>16&255]<<16|a[c>>>8&255]<<8|a[255&c],c^=f[r/n|0]<<24),s[r]=s[r-n]^c);for(var o=this._invKeySchedule=[],l=0;l>>24]]^d[a[c>>>16&255]]^h[a[c>>>8&255]]^p[a[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,r,o,l,c,a)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,h,p,s),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,i,a,s,r,o){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],h=e[t+3]^n[3],p=4,f=1;f>>24]^a[u>>>16&255]^s[d>>>8&255]^r[255&h]^n[p++],g=i[u>>>24]^a[d>>>16&255]^s[h>>>8&255]^r[255&c]^n[p++],v=i[d>>>24]^a[h>>>16&255]^s[c>>>8&255]^r[255&u]^n[p++],y=i[h>>>24]^a[c>>>16&255]^s[u>>>8&255]^r[255&d]^n[p++];c=m,u=g,d=v,h=y}m=(o[c>>>24]<<24|o[u>>>16&255]<<16|o[d>>>8&255]<<8|o[255&h])^n[p++],g=(o[u>>>24]<<24|o[d>>>16&255]<<16|o[h>>>8&255]<<8|o[255&c])^n[p++],v=(o[d>>>24]<<24|o[h>>>16&255]<<16|o[c>>>8&255]<<8|o[255&u])^n[p++],y=(o[h>>>24]<<24|o[c>>>16&255]<<16|o[u>>>8&255]<<8|o[255&d])^n[p++],e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=y},keySize:8});e.AES=t._createHelper(m)}(),i.AES)},5109:function(e,t,n){var i;e.exports=(i=n(8249),n(888),void(i.lib.Cipher||function(e){var t=i,n=t.lib,a=n.Base,s=n.WordArray,r=n.BufferedBlockAlgorithm,o=t.enc;o.Utf8;var l=o.Base64,c=t.algo.EvpKDF,u=n.Cipher=r.extend({cfg:a.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){r.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?w:v}return function(t){return{encrypt:function(n,i,a){return e(i).encrypt(t,n,i,a)},decrypt:function(n,i,a){return e(i).decrypt(t,n,i,a)}}}}()});n.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var d=t.mode={},h=n.BlockCipherMode=a.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var t=h.extend();function n(t,n,i){var a,s=this._iv;s?(a=s,this._iv=e):a=this._prevBlock;for(var r=0;r>>2];e.sigBytes-=t}};n.BlockCipher=u.extend({cfg:u.cfg.extend({mode:p,padding:f}),reset:function(){var e;u.reset.call(this);var t=this.cfg,n=t.iv,i=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=i.createEncryptor:(e=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(i,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var m=n.CipherParams=a.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?s.create([1398893684,1701076831]).concat(n).concat(t):t).toString(l)},parse:function(e){var t,n=l.parse(e),i=n.words;return 1398893684==i[0]&&1701076831==i[1]&&(t=s.create(i.slice(2,4)),i.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:t})}},v=n.SerializableCipher=a.extend({cfg:a.extend({format:g}),encrypt:function(e,t,n,i){i=this.cfg.extend(i);var a=e.createEncryptor(n,i),s=a.finalize(t),r=a.cfg;return m.create({ciphertext:s,key:n,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,n,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),e.createDecryptor(n,i).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(t.kdf={}).OpenSSL={execute:function(e,t,n,i){i||(i=s.random(8));var a=c.create({keySize:t+n}).compute(e,i),r=s.create(a.words.slice(t),4*n);return a.sigBytes=4*t,m.create({key:a,iv:r,salt:i})}},w=n.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:y}),encrypt:function(e,t,n,i){var a=(i=this.cfg.extend(i)).kdf.execute(n,e.keySize,e.ivSize);i.iv=a.iv;var s=v.encrypt.call(this,e,t,a.key,i);return s.mixIn(a),s},decrypt:function(e,t,n,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var a=i.kdf.execute(n,e.keySize,e.ivSize,t.salt);return i.iv=a.iv,v.decrypt.call(this,e,t,a.key,i)}})}()))},8249:function(e,t,n){var i;e.exports=(i=i||function(e,t){var i;if("undefined"!=typeof window&&Cs&&(i=Cs),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==n.g&&n.g.crypto&&(i=n.g.crypto),!i)try{i=n(2480)}catch(g){}var a=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},o=r.lib={},l=o.Base=function(){return{extend:function(e){var t=s(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=o.WordArray=l.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes,a=e.sigBytes;if(this.clamp(),i%4)for(var s=0;s>>2]>>>24-s%4*8&255;t[i+s>>>2]|=r<<24-(i+s)%4*8}else for(var o=0;o>>2]=n[o>>>2];return this.sigBytes+=a,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-a%4*8&255;i.push((s>>>4).toString(16)),i.push((15&s).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new c.init(n,t/2)}},h=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],a=0;a>>2]>>>24-a%4*8&255;i.push(String.fromCharCode(s))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new c.init(n,t)}},p=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},f=o.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,i=this._data,a=i.words,s=i.sigBytes,r=this.blockSize,o=s/(4*r),l=(o=t?e.ceil(o):e.max((0|o)-this._minBufferSize,0))*r,u=e.min(4*l,s);if(l){for(var d=0;d>>6-r%4*2;a[s>>>2]|=o<<24-s%4*8,s++}return t.create(a,s)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp();for(var a=[],s=0;s>>2]>>>24-s%4*8&255)<<16|(t[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|t[s+2>>>2]>>>24-(s+2)%4*8&255,o=0;o<4&&s+.75*o>>6*(3-o)&63));var l=i.charAt(64);if(l)for(;a.length%4;)a.push(l);return a.join("")},parse:function(e){var t=e.length,i=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var s=0;s>>6-r%4*2;a[s>>>2]|=o<<24-s%4*8,s++}return t.create(a,s)}e.enc.Base64url={stringify:function(e,t=!0){var n=e.words,i=e.sigBytes,a=t?this._safe_map:this._map;e.clamp();for(var s=[],r=0;r>>2]>>>24-r%4*8&255)<<16|(n[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|n[r+2>>>2]>>>24-(r+2)%4*8&255,l=0;l<4&&r+.75*l>>6*(3-l)&63));var c=a.charAt(64);if(c)for(;s.length%4;)s.push(c);return s.join("")},parse:function(e,t=!0){var i=e.length,a=t?this._safe_map:this._map,s=this._reverseMap;if(!s){s=this._reverseMap=[];for(var r=0;r>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],a=0;a>>2]>>>16-a%4*8&65535;i.push(String.fromCharCode(s))}return i.join("")},parse:function(e){for(var n=e.length,i=[],a=0;a>>1]|=e.charCodeAt(a)<<16-a%2*16;return t.create(i,2*n)}},n.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],s=0;s>>2]>>>16-s%4*8&65535);i.push(String.fromCharCode(r))}return i.join("")},parse:function(e){for(var n=e.length,i=[],s=0;s>>1]|=a(e.charCodeAt(s)<<16-s%2*16);return t.create(i,2*n)}}}(),i.enc.Utf16)},888:function(e,t,n){var i,a,s,r,o,l,c,u;e.exports=(u=n(8249),n(2783),n(9824),a=(i=u).lib,s=a.Base,r=a.WordArray,o=i.algo,l=o.MD5,c=o.EvpKDF=s.extend({cfg:s.extend({keySize:4,hasher:l,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,i=this.cfg,a=i.hasher.create(),s=r.create(),o=s.words,l=i.keySize,c=i.iterations;o.lengthi&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),r=this._iKey=t.clone(),o=a.words,l=r.words,c=0;c>>2]|=e[a]<<24-a%4*8;t.call(this,i,n)}else t.apply(this,arguments)};n.prototype=e}}(),i.lib.WordArray)},8214:function(e,t,n){var i;e.exports=(i=n(8249),function(e){var t=i,n=t.lib,a=n.WordArray,s=n.Hasher,r=t.algo,o=[];!function(){for(var t=0;t<64;t++)o[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=r.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,a=e[i];e[i]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var s=this._hash.words,r=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],v=e[t+6],y=e[t+7],w=e[t+8],k=e[t+9],_=e[t+10],S=e[t+11],b=e[t+12],E=e[t+13],x=e[t+14],D=e[t+15],T=s[0],N=s[1],C=s[2],V=s[3];T=c(T,N,C,V,r,7,o[0]),V=c(V,T,N,C,l,12,o[1]),C=c(C,V,T,N,p,17,o[2]),N=c(N,C,V,T,f,22,o[3]),T=c(T,N,C,V,m,7,o[4]),V=c(V,T,N,C,g,12,o[5]),C=c(C,V,T,N,v,17,o[6]),N=c(N,C,V,T,y,22,o[7]),T=c(T,N,C,V,w,7,o[8]),V=c(V,T,N,C,k,12,o[9]),C=c(C,V,T,N,_,17,o[10]),N=c(N,C,V,T,S,22,o[11]),T=c(T,N,C,V,b,7,o[12]),V=c(V,T,N,C,E,12,o[13]),C=c(C,V,T,N,x,17,o[14]),T=u(T,N=c(N,C,V,T,D,22,o[15]),C,V,l,5,o[16]),V=u(V,T,N,C,v,9,o[17]),C=u(C,V,T,N,S,14,o[18]),N=u(N,C,V,T,r,20,o[19]),T=u(T,N,C,V,g,5,o[20]),V=u(V,T,N,C,_,9,o[21]),C=u(C,V,T,N,D,14,o[22]),N=u(N,C,V,T,m,20,o[23]),T=u(T,N,C,V,k,5,o[24]),V=u(V,T,N,C,x,9,o[25]),C=u(C,V,T,N,f,14,o[26]),N=u(N,C,V,T,w,20,o[27]),T=u(T,N,C,V,E,5,o[28]),V=u(V,T,N,C,p,9,o[29]),C=u(C,V,T,N,y,14,o[30]),T=d(T,N=u(N,C,V,T,b,20,o[31]),C,V,g,4,o[32]),V=d(V,T,N,C,w,11,o[33]),C=d(C,V,T,N,S,16,o[34]),N=d(N,C,V,T,x,23,o[35]),T=d(T,N,C,V,l,4,o[36]),V=d(V,T,N,C,m,11,o[37]),C=d(C,V,T,N,y,16,o[38]),N=d(N,C,V,T,_,23,o[39]),T=d(T,N,C,V,E,4,o[40]),V=d(V,T,N,C,r,11,o[41]),C=d(C,V,T,N,f,16,o[42]),N=d(N,C,V,T,v,23,o[43]),T=d(T,N,C,V,k,4,o[44]),V=d(V,T,N,C,b,11,o[45]),C=d(C,V,T,N,D,16,o[46]),T=h(T,N=d(N,C,V,T,p,23,o[47]),C,V,r,6,o[48]),V=h(V,T,N,C,y,10,o[49]),C=h(C,V,T,N,x,15,o[50]),N=h(N,C,V,T,g,21,o[51]),T=h(T,N,C,V,b,6,o[52]),V=h(V,T,N,C,f,10,o[53]),C=h(C,V,T,N,_,15,o[54]),N=h(N,C,V,T,l,21,o[55]),T=h(T,N,C,V,w,6,o[56]),V=h(V,T,N,C,D,10,o[57]),C=h(C,V,T,N,v,15,o[58]),N=h(N,C,V,T,E,21,o[59]),T=h(T,N,C,V,m,6,o[60]),V=h(V,T,N,C,S,10,o[61]),C=h(C,V,T,N,p,15,o[62]),N=h(N,C,V,T,k,21,o[63]),s[0]=s[0]+T|0,s[1]=s[1]+N|0,s[2]=s[2]+C|0,s[3]=s[3]+V|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,a=8*t.sigBytes;n[a>>>5]|=128<<24-a%32;var s=e.floor(i/4294967296),r=i;n[15+(a+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),n[14+(a+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(n.length+1),this._process();for(var o=this._hash,l=o.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return o},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,i,a,s,r){var o=e+(t&n|~t&i)+a+r;return(o<>>32-s)+t}function u(e,t,n,i,a,s,r){var o=e+(t&i|n&~i)+a+r;return(o<>>32-s)+t}function d(e,t,n,i,a,s,r){var o=e+(t^n^i)+a+r;return(o<>>32-s)+t}function h(e,t,n,i,a,s,r){var o=e+(n^(t|~i))+a+r;return(o<>>32-s)+t}t.MD5=s._createHelper(l),t.HmacMD5=s._createHmacHelper(l)}(Math),i.MD5)},8568:function(e,t,n){var i;e.exports=(i=n(8249),n(5109),i.mode.CFB=function(){var e=i.lib.BlockCipherMode.extend();function t(e,t,n,i){var a,s=this._iv;s?(a=s.slice(0),this._iv=void 0):a=this._prevBlock,i.encryptBlock(a,0);for(var r=0;r>24&255)){var t=e>>16&255,n=e>>8&255,i=255&e;255===t?(t=0,255===n?(n=0,255===i?i=0:++i):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=i}else e+=1<<24;return e}function n(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var a=e.Encryptor=e.extend({processBlock:function(e,t){var i=this._cipher,a=i.blockSize,s=this._iv,r=this._counter;s&&(r=this._counter=s.slice(0),this._iv=void 0),n(r);var o=r.slice(0);i.encryptBlock(o,0);for(var l=0;l>>2]|=a<<24-s%4*8,e.sigBytes+=a},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Ansix923)},2807:function(e,t,n){var i;e.exports=(i=n(8249),n(5109),i.pad.Iso10126={pad:function(e,t){var n=4*t,a=n-e.sigBytes%n;e.concat(i.lib.WordArray.random(a-1)).concat(i.lib.WordArray.create([a<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},i.pad.Iso10126)},1077:function(e,t,n){var i;e.exports=(i=n(8249),n(5109),i.pad.Iso97971={pad:function(e,t){e.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(e,t)},unpad:function(e){i.pad.ZeroPadding.unpad(e),e.sigBytes--}},i.pad.Iso97971)},6991:function(e,t,n){var i;e.exports=(i=n(8249),n(5109),i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding)},6475:function(e,t,n){var i;e.exports=(i=n(8249),n(5109),i.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},i.pad.ZeroPadding)},2112:function(e,t,n){var i,a,s,r,o,l,c,u,d;e.exports=(d=n(8249),n(2783),n(9824),a=(i=d).lib,s=a.Base,r=a.WordArray,o=i.algo,l=o.SHA1,c=o.HMAC,u=o.PBKDF2=s.extend({cfg:s.extend({keySize:4,hasher:l,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,i=c.create(n.hasher,e),a=r.create(),s=r.create([1]),o=a.words,l=s.words,u=n.keySize,d=n.iterations;o.length>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var a=0;a<4;a++)l.call(this);for(a=0;a<8;a++)i[a]^=n[a+4&7];if(t){var s=t.words,r=s[0],o=s[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),u=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),d=c>>>16|4294901760&u,h=u<<16|65535&c;for(i[0]^=c,i[1]^=d,i[2]^=u,i[3]^=h,i[4]^=c,i[5]^=d,i[6]^=u,i[7]^=h,a=0;a<4;a++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)a[i]=16711935&(a[i]<<8|a[i]>>>24)|4278255360&(a[i]<<24|a[i]>>>8),e[t+i]^=a[i]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)s[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var i=e[n]+t[n],a=65535&i,o=i>>>16,l=((a*a>>>17)+a*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);r[n]=l^c}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}e.RabbitLegacy=t._createHelper(o)}(),i.RabbitLegacy)},4454:function(e,t,n){var i;e.exports=(i=n(8249),n(8269),n(8214),n(888),n(5109),function(){var e=i,t=e.lib.StreamCipher,n=e.algo,a=[],s=[],r=[],o=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var i=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)a[n]^=i[n+4&7];if(t){var s=t.words,r=s[0],o=s[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),u=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),d=c>>>16|4294901760&u,h=u<<16|65535&c;for(a[0]^=c,a[1]^=d,a[2]^=u,a[3]^=h,a[4]^=c,a[5]^=d,a[6]^=u,a[7]^=h,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(e,t){var n=this._X;l.call(this),a[0]=n[0]^n[5]>>>16^n[3]<<16,a[1]=n[2]^n[7]>>>16^n[5]<<16,a[2]=n[4]^n[1]>>>16^n[7]<<16,a[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)a[i]=16711935&(a[i]<<8|a[i]>>>24)|4278255360&(a[i]<<24|a[i]>>>8),e[t+i]^=a[i]},blockSize:4,ivSize:2});function l(){for(var e=this._X,t=this._C,n=0;n<8;n++)s[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0,n=0;n<8;n++){var i=e[n]+t[n],a=65535&i,o=i>>>16,l=((a*a>>>17)+a*o>>>15)+o*o,c=((4294901760&i)*i|0)+((65535&i)*i|0);r[n]=l^c}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}e.Rabbit=t._createHelper(o)}(),i.Rabbit)},1857:function(e,t,n){var i;e.exports=(i=n(8249),n(8269),n(8214),n(888),n(5109),function(){var e=i,t=e.lib.StreamCipher,n=e.algo,a=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,i=this._S=[],a=0;a<256;a++)i[a]=a;a=0;for(var s=0;a<256;a++){var r=a%n,o=t[r>>>2]>>>24-r%4*8&255;s=(s+i[a]+o)%256;var l=i[a];i[a]=i[s],i[s]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=s.call(this)},keySize:8,ivSize:0});function s(){for(var e=this._S,t=this._i,n=this._j,i=0,a=0;a<4;a++){n=(n+e[t=(t+1)%256])%256;var s=e[t];e[t]=e[n],e[n]=s,i|=e[(e[t]+e[n])%256]<<24-8*a}return this._i=t,this._j=n,i}e.RC4=t._createHelper(a);var r=n.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)s.call(this)}});e.RC4Drop=t._createHelper(r)}(),i.RC4)},706:function(e,t,n){var i;e.exports=(i=n(8249),function(e){var t=i,n=t.lib,a=n.WordArray,s=n.Hasher,r=t.algo,o=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=a.create([0,1518500249,1859775393,2400959708,2840853838]),h=a.create([1352829926,1548603684,1836072691,2053994217,0]),p=r.RIPEMD160=s.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,a=e[i];e[i]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var s,r,p,k,_,S,b,E,x,D,T,N=this._hash.words,C=d.words,V=h.words,I=o.words,B=l.words,A=c.words,M=u.words;for(S=s=N[0],b=r=N[1],E=p=N[2],x=k=N[3],D=_=N[4],n=0;n<80;n+=1)T=s+e[t+I[n]]|0,T+=n<16?f(r,p,k)+C[0]:n<32?m(r,p,k)+C[1]:n<48?g(r,p,k)+C[2]:n<64?v(r,p,k)+C[3]:y(r,p,k)+C[4],T=(T=w(T|=0,A[n]))+_|0,s=_,_=k,k=w(p,10),p=r,r=T,T=S+e[t+B[n]]|0,T+=n<16?y(b,E,x)+V[0]:n<32?v(b,E,x)+V[1]:n<48?g(b,E,x)+V[2]:n<64?m(b,E,x)+V[3]:f(b,E,x)+V[4],T=(T=w(T|=0,M[n]))+D|0,S=D,D=x,x=w(E,10),E=b,b=T;T=N[1]+p+x|0,N[1]=N[2]+k+D|0,N[2]=N[3]+_+S|0,N[3]=N[4]+s+b|0,N[4]=N[0]+r+E|0,N[0]=T},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var a=this._hash,s=a.words,r=0;r<5;r++){var o=s[r];s[r]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}return a},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,n){return e^t^n}function m(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function v(e,t,n){return e&n|t&~n}function y(e,t,n){return e^(t|~n)}function w(e,t){return e<>>32-t}t.RIPEMD160=s._createHelper(p),t.HmacRIPEMD160=s._createHmacHelper(p)}(),i.RIPEMD160)},2783:function(e,t,n){var i,a,s,r,o,l,c,u;e.exports=(u=n(8249),a=(i=u).lib,s=a.WordArray,r=a.Hasher,o=i.algo,l=[],c=o.SHA1=r.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],a=n[1],s=n[2],r=n[3],o=n[4],c=0;c<80;c++){if(c<16)l[c]=0|e[t+c];else{var u=l[c-3]^l[c-8]^l[c-14]^l[c-16];l[c]=u<<1|u>>>31}var d=(i<<5|i>>>27)+o+l[c];d+=c<20?1518500249+(a&s|~a&r):c<40?1859775393+(a^s^r):c<60?(a&s|a&r|s&r)-1894007588:(a^s^r)-899497514,o=r,r=s,s=a<<30|a>>>2,a=i,i=d}n[0]=n[0]+i|0,n[1]=n[1]+a|0,n[2]=n[2]+s|0,n[3]=n[3]+r|0,n[4]=n[4]+o|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(i+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),i.SHA1=r._createHelper(c),i.HmacSHA1=r._createHmacHelper(c),u.SHA1)},7792:function(e,t,n){var i,a,s,r,o,l;e.exports=(l=n(8249),n(2153),a=(i=l).lib.WordArray,s=i.algo,r=s.SHA256,o=s.SHA224=r.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=r._doFinalize.call(this);return e.sigBytes-=4,e}}),i.SHA224=r._createHelper(o),i.HmacSHA224=r._createHmacHelper(o),l.SHA224)},2153:function(e,t,n){var i;e.exports=(i=n(8249),function(e){var t=i,n=t.lib,a=n.WordArray,s=n.Hasher,r=t.algo,o=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),i=2;i<=n;i++)if(!(t%i))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var i=2,a=0;a<64;)t(i)&&(a<8&&(o[a]=n(e.pow(i,.5))),l[a]=n(e.pow(i,1/3)),a++),i++}();var c=[],u=r.SHA256=s.extend({_doReset:function(){this._hash=new a.init(o.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],a=n[1],s=n[2],r=n[3],o=n[4],u=n[5],d=n[6],h=n[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var f=c[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[p-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=m+c[p-7]+v+c[p-16]}var y=i&a^i&s^a&s,w=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),k=h+((o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25))+(o&u^~o&d)+l[p]+c[p];h=d,d=u,u=o,o=r+k|0,r=s,s=a,a=i,i=k+(w+y)|0}n[0]=n[0]+i|0,n[1]=n[1]+a|0,n[2]=n[2]+s|0,n[3]=n[3]+r|0,n[4]=n[4]+o|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,a=8*t.sigBytes;return n[a>>>5]|=128<<24-a%32,n[14+(a+64>>>9<<4)]=e.floor(i/4294967296),n[15+(a+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=s._createHelper(u),t.HmacSHA256=s._createHmacHelper(u)}(Math),i.SHA256)},3327:function(e,t,n){var i;e.exports=(i=n(8249),n(4938),function(e){var t=i,n=t.lib,a=n.WordArray,s=n.Hasher,r=t.x64.Word,o=t.algo,l=[],c=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var i=(2*e+3*t)%5;e=t%5,t=i}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var a=1,s=0;s<24;s++){for(var o=0,d=0,h=0;h<7;h++){if(1&a){var p=(1<>>24)|4278255360&(s<<24|s>>>8),r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),(N=n[a]).high^=r,N.low^=s}for(var o=0;o<24;o++){for(var h=0;h<5;h++){for(var p=0,f=0,m=0;m<5;m++)p^=(N=n[h+5*m]).high,f^=N.low;var g=d[h];g.high=p,g.low=f}for(h=0;h<5;h++){var v=d[(h+4)%5],y=d[(h+1)%5],w=y.high,k=y.low;for(p=v.high^(w<<1|k>>>31),f=v.low^(k<<1|w>>>31),m=0;m<5;m++)(N=n[h+5*m]).high^=p,N.low^=f}for(var _=1;_<25;_++){var S=(N=n[_]).high,b=N.low,E=l[_];E<32?(p=S<>>32-E,f=b<>>32-E):(p=b<>>64-E,f=S<>>64-E);var x=d[c[_]];x.high=p,x.low=f}var D=d[0],T=n[0];for(D.high=T.high,D.low=T.low,h=0;h<5;h++)for(m=0;m<5;m++){var N=n[_=h+5*m],C=d[_],V=d[(h+1)%5+5*m],I=d[(h+2)%5+5*m];N.high=C.high^~V.high&I.high,N.low=C.low^~V.low&I.low}N=n[0];var B=u[o];N.high^=B.high,N.low^=B.low}},_doFinalize:function(){var t=this._data,n=t.words;this._nDataBytes;var i=8*t.sigBytes,s=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(e.ceil((i+1)/s)*s>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var r=this._state,o=this.cfg.outputLength/8,l=o/8,c=[],u=0;u>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(h)}return new a.init(c,o)},clone:function(){for(var e=s.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=s._createHelper(h),t.HmacSHA3=s._createHmacHelper(h)}(Math),i.SHA3)},7460:function(e,t,n){var i,a,s,r,o,l,c,u;e.exports=(u=n(8249),n(4938),n(34),a=(i=u).x64,s=a.Word,r=a.WordArray,o=i.algo,l=o.SHA512,c=o.SHA384=l.extend({_doReset:function(){this._hash=new r.init([new s.init(3418070365,3238371032),new s.init(1654270250,914150663),new s.init(2438529370,812702999),new s.init(355462360,4144912697),new s.init(1731405415,4290775857),new s.init(2394180231,1750603025),new s.init(3675008525,1694076839),new s.init(1203062813,3204075428)])},_doFinalize:function(){var e=l._doFinalize.call(this);return e.sigBytes-=16,e}}),i.SHA384=l._createHelper(c),i.HmacSHA384=l._createHmacHelper(c),u.SHA384)},34:function(e,t,n){var i;e.exports=(i=n(8249),n(4938),function(){var e=i,t=e.lib.Hasher,n=e.x64,a=n.Word,s=n.WordArray,r=e.algo;function o(){return a.create.apply(a,arguments)}var l=[o(1116352408,3609767458),o(1899447441,602891725),o(3049323471,3964484399),o(3921009573,2173295548),o(961987163,4081628472),o(1508970993,3053834265),o(2453635748,2937671579),o(2870763221,3664609560),o(3624381080,2734883394),o(310598401,1164996542),o(607225278,1323610764),o(1426881987,3590304994),o(1925078388,4068182383),o(2162078206,991336113),o(2614888103,633803317),o(3248222580,3479774868),o(3835390401,2666613458),o(4022224774,944711139),o(264347078,2341262773),o(604807628,2007800933),o(770255983,1495990901),o(1249150122,1856431235),o(1555081692,3175218132),o(1996064986,2198950837),o(2554220882,3999719339),o(2821834349,766784016),o(2952996808,2566594879),o(3210313671,3203337956),o(3336571891,1034457026),o(3584528711,2466948901),o(113926993,3758326383),o(338241895,168717936),o(666307205,1188179964),o(773529912,1546045734),o(1294757372,1522805485),o(1396182291,2643833823),o(1695183700,2343527390),o(1986661051,1014477480),o(2177026350,1206759142),o(2456956037,344077627),o(2730485921,1290863460),o(2820302411,3158454273),o(3259730800,3505952657),o(3345764771,106217008),o(3516065817,3606008344),o(3600352804,1432725776),o(4094571909,1467031594),o(275423344,851169720),o(430227734,3100823752),o(506948616,1363258195),o(659060556,3750685593),o(883997877,3785050280),o(958139571,3318307427),o(1322822218,3812723403),o(1537002063,2003034995),o(1747873779,3602036899),o(1955562222,1575990012),o(2024104815,1125592928),o(2227730452,2716904306),o(2361852424,442776044),o(2428436474,593698344),o(2756734187,3733110249),o(3204031479,2999351573),o(3329325298,3815920427),o(3391569614,3928383900),o(3515267271,566280711),o(3940187606,3454069534),o(4118630271,4000239992),o(116418474,1914138554),o(174292421,2731055270),o(289380356,3203993006),o(460393269,320620315),o(685471733,587496836),o(852142971,1086792851),o(1017036298,365543100),o(1126000580,2618297676),o(1288033470,3409855158),o(1501505948,4234509866),o(1607167915,987167468),o(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=o()}();var u=r.SHA512=t.extend({_doReset:function(){this._hash=new s.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],a=n[1],s=n[2],r=n[3],o=n[4],u=n[5],d=n[6],h=n[7],p=i.high,f=i.low,m=a.high,g=a.low,v=s.high,y=s.low,w=r.high,k=r.low,_=o.high,S=o.low,b=u.high,E=u.low,x=d.high,D=d.low,T=h.high,N=h.low,C=p,V=f,I=m,B=g,A=v,M=y,P=w,R=k,O=_,L=S,F=b,j=E,U=x,$=D,z=T,H=N,q=0;q<80;q++){var K,J,W=c[q];if(q<16)J=W.high=0|e[t+2*q],K=W.low=0|e[t+2*q+1];else{var Y=c[q-15],G=Y.high,Z=Y.low,Q=(G>>>1|Z<<31)^(G>>>8|Z<<24)^G>>>7,X=(Z>>>1|G<<31)^(Z>>>8|G<<24)^(Z>>>7|G<<25),ee=c[q-2],te=ee.high,ne=ee.low,ie=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ae=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),se=c[q-7],re=se.high,oe=se.low,le=c[q-16],ce=le.high,ue=le.low;J=(J=(J=Q+re+((K=X+oe)>>>0>>0?1:0))+ie+((K+=ae)>>>0>>0?1:0))+ce+((K+=ue)>>>0>>0?1:0),W.high=J,W.low=K}var de,he=O&F^~O&U,pe=L&j^~L&$,fe=C&I^C&A^I&A,me=V&B^V&M^B&M,ge=(C>>>28|V<<4)^(C<<30|V>>>2)^(C<<25|V>>>7),ve=(V>>>28|C<<4)^(V<<30|C>>>2)^(V<<25|C>>>7),ye=(O>>>14|L<<18)^(O>>>18|L<<14)^(O<<23|L>>>9),we=(L>>>14|O<<18)^(L>>>18|O<<14)^(L<<23|O>>>9),ke=l[q],_e=ke.high,Se=ke.low,be=z+ye+((de=H+we)>>>0>>0?1:0),Ee=ve+me;z=U,H=$,U=F,$=j,F=O,j=L,O=P+(be=(be=(be=be+he+((de+=pe)>>>0>>0?1:0))+_e+((de+=Se)>>>0>>0?1:0))+J+((de+=K)>>>0>>0?1:0))+((L=R+de|0)>>>0>>0?1:0)|0,P=A,R=M,A=I,M=B,I=C,B=V,C=be+(ge+fe+(Ee>>>0>>0?1:0))+((V=de+Ee|0)>>>0>>0?1:0)|0}f=i.low=f+V,i.high=p+C+(f>>>0>>0?1:0),g=a.low=g+B,a.high=m+I+(g>>>0>>0?1:0),y=s.low=y+M,s.high=v+A+(y>>>0>>0?1:0),k=r.low=k+R,r.high=w+P+(k>>>0>>0?1:0),S=o.low=S+L,o.high=_+O+(S>>>0>>0?1:0),E=u.low=E+j,u.high=b+F+(E>>>0>>0?1:0),D=d.low=D+$,d.high=x+U+(D>>>0<$>>>0?1:0),N=h.low=N+H,h.high=T+z+(N>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(i+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(u),e.HmacSHA512=t._createHmacHelper(u)}(),i.SHA512)},4253:function(e,t,n){var i;e.exports=(i=n(8249),n(8269),n(8214),n(888),n(5109),function(){var e=i,t=e.lib,n=t.WordArray,a=t.BlockCipher,s=e.algo,r=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=s.DES=a.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var i=r[n]-1;t[n]=e[i>>>5]>>>31-i%32&1}for(var a=this._subKeys=[],s=0;s<16;s++){var c=a[s]=[],u=l[s];for(n=0;n<24;n++)c[n/6|0]|=t[(o[n]-1+u)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(o[n+24]-1+u)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=a[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var i=0;i<16;i++){for(var a=n[i],s=this._lBlock,r=this._rBlock,o=0,l=0;l<8;l++)o|=c[l][((r^a[l])&u[l])>>>0];this._lBlock=r,this._rBlock=s^o}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<192.");var t=e.slice(0,2),i=e.length<4?e.slice(0,2):e.slice(2,4),a=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(n.create(t)),this._des2=d.createEncryptor(n.create(i)),this._des3=d.createEncryptor(n.create(a))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=a._createHelper(f)}(),i.TripleDES)},4938:function(e,t,n){var i,a,s,r,o,l,c;e.exports=(c=n(8249),s=(a=c).lib,r=s.Base,o=s.WordArray,(l=a.x64={}).Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),l.WordArray=r.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=t!=i?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],i=0;i{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorCode=void 0,(n=t.ErrorCode||(t.ErrorCode={}))[n.SUCCESS=0]="SUCCESS",n[n.CLIENT_ID_NOT_FOUND=1]="CLIENT_ID_NOT_FOUND",n[n.OPERATION_TOO_OFTEN=2]="OPERATION_TOO_OFTEN",n[n.REPEAT_MESSAGE=3]="REPEAT_MESSAGE",n[n.TIME_OUT=4]="TIME_OUT"},9021:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const a=i(n(6893)),s=i(n(7555)),r=i(n(6379)),o=i(n(529));var l,c;(c=l||(l={})).setDebugMode=function(e){o.default.debugMode=e,o.default.info(`setDebugMode: ${e}`)},c.init=function(e){try{s.default.init(e)}catch(t){o.default.error("init error",t)}},c.setSocketServer=function(e){try{if(!e.url)throw new Error("invalid url");if(!e.key||!e.keyId)throw new Error("invalid key or keyId");r.default.socketUrl=e.url,r.default.publicKeyId=e.keyId,r.default.publicKey=e.key}catch(t){o.default.error("setSocketServer error",t)}},c.enableSocket=function(e){try{s.default.enableSocket(e)}catch(t){o.default.error("enableSocket error",t)}},c.getVersion=function(){return a.default.SDK_VERSION},e.exports=l},9478:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(529)),s=i(n(496)),r=i(n(3555)),o=i(n(1929)),l=i(n(4379)),c=i(n(6899)),u=i(n(776)),d=i(n(2002)),h=i(n(5807)),p=i(n(9704)),f=i(n(6545)),m=i(n(3680)),g=i(n(7706)),v=i(n(4486)),y=i(n(5867)),w=i(n(7006));var k;!function(e){let t,n,i;function k(){let e;try{"undefined"!=typeof uni?(t=new f.default,n=new m.default,i=new g.default):"undefined"!=typeof tt?(t=new d.default,n=new h.default,i=new p.default):"undefined"!=typeof my?(t=new s.default,n=new r.default,i=new o.default):"undefined"!=typeof wx?(t=new v.default,n=new y.default,i=new w.default):"undefined"!=typeof window&&(t=new l.default,n=new c.default,i=new u.default)}catch(k){a.default.error(`init am error: ${k}`),e=k}if(t&&n&&i||"undefined"!=typeof window&&(t=new l.default,n=new c.default,i=new u.default),!t||!n||!i)throw new Error(`init am error: no api impl found, ${e}`)}e.getDevice=function(){return t||k(),t},e.getStorage=function(){return n||k(),n},e.getWebSocket=function(){return i||k(),i}}(k||(k={})),t.default=k},4685:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(9478));var s,r;(r=s||(s={})).os=function(){return a.default.getDevice().os()},r.osVersion=function(){return a.default.getDevice().osVersion()},r.model=function(){return a.default.getDevice().model()},r.brand=function(){return a.default.getDevice().brand()},r.platform=function(){return a.default.getDevice().platform()},r.platformVersion=function(){return a.default.getDevice().platformVersion()},r.platformId=function(){return a.default.getDevice().platformId()},r.language=function(){return a.default.getDevice().language()},r.userAgent=function(){let e=a.default.getDevice().userAgent;return e?e():""},r.getNetworkType=function(e){a.default.getDevice().getNetworkType(e)},r.onNetworkStatusChange=function(e){a.default.getDevice().onNetworkStatusChange(e)},t.default=s},7002:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(6379)),s=i(n(1386)),r=i(n(4054)),o=n(2918),l=i(n(7167)),c=i(n(529)),u=i(n(9478)),d=i(n(8506));var h;!function(e){let t,n=!1,i=!1,h=!1,p=[],f=0;function m(){return n&&i}function g(t=0){e.allowReconnect&&w()&&setTimeout((function(){v()}),t)}function v(){if(e.allowReconnect=!0,!w())return;if(!function(){var e=p.length;let t=(new Date).getTime();if(e>0)for(var n=e-1;n>=0;n--)if(t-p[n]>5e3){p.splice(0,n+1);break}return e=p.length,p.push(t),!(e>=10)||(c.default.error("connect failed, connection limit reached"),!1)}())return;h=!0;let n=a.default.socketUrl;try{let e=d.default.getSync(d.default.KEY_REDIRECT_SERVER,"");if(e){let t=o.RedirectServerData.parse(e),i=t.addressList[0].split(","),a=i[0],s=Number(i[1]);(new Date).getTime()-t.time<1e3*s&&(n=a)}}catch(s){}t=u.default.getWebSocket().connect({url:n,success:function(){i=!0,y()},fail:function(){i=!1,_(),g(100)}}),t.onOpen(S),t.onClose(x),t.onError(E),t.onMessage(b)}function y(){i&&n&&(h=!1,s.default.create().send(),l.default.getInstance().start())}function w(){return a.default.networkConnected?h?(c.default.warn("connecting"),!1):!m()||(c.default.warn("already connected"),!1):(c.default.error("connect failed, network is not available"),!1)}function k(e=""){null==t||t.close({code:1e3,reason:e,success:function(e){},fail:function(e){}}),_()}function _(e){var t;i=!1,n=!1,h=!1,l.default.getInstance().cancel(),a.default.online&&(a.default.online=!1,null===(t=a.default.onlineState)||void 0===t||t.call(a.default.onlineState,{online:a.default.online}))}e.allowReconnect=!0,e.isAvailable=m,e.enableSocket=function(t){let n=(new Date).getTime();n-f<1e3?c.default.warn(`enableSocket ${t} fail: this function can only be called once a second`):(f=n,e.allowReconnect=t,t?e.reconnect(10):e.close(`enableSocket ${t}`))},e.reconnect=g,e.connect=v,e.close=k,e.send=function(e){if(!n||!n)throw new Error("socket not connect");null==t||t.send({data:e,success:function(e){},fail:function(e){}})};let S=function(e){n=!0,y()},b=function(e){try{e.data,l.default.getInstance().refresh(),r.default.receiveMessage(e.data)}catch(t){}},E=function(e){k("socket error")},x=function(e){_()}}(h||(h={})),t.default=h},8506:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(9478));var s,r;(r=s||(s={})).KEY_APPID="getui_appid",r.KEY_CID="getui_cid",r.KEY_SESSION="getui_session",r.KEY_REGID="getui_regid",r.KEY_SOCKET_URL="getui_socket_url",r.KEY_DEVICE_ID="getui_deviceid",r.KEY_ADD_PHONE_INFO_TIME="getui_api_time",r.KEY_BIND_ALIAS_TIME="getui_ba_time",r.KEY_SET_TAG_TIME="getui_st_time",r.KEY_REDIRECT_SERVER="getui_redirect_server",r.KEY_LAST_CONNECT_TIME="getui_last_connect_time",r.set=function(e){a.default.getStorage().set(e)},r.setSync=function(e,t){a.default.getStorage().setSync(e,t)},r.get=function(e){a.default.getStorage().get(e)},r.getSync=function(e,t){let n=a.default.getStorage().getSync(e);return n||t},t.default=s},496:function(e,t,n){const i=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(3854));e.exports=class{constructor(){this.systemInfo=my.getSystemInfoSync()}os(){return i.default.getStr(this.systemInfo,"platform")}osVersion(){return i.default.getStr(this.systemInfo,"system")}model(){return i.default.getStr(this.systemInfo,"model")}brand(){return i.default.getStr(this.systemInfo,"brand")}platform(){return"MP-ALIPAY"}platformVersion(){return i.default.getStr(this.systemInfo,"app")+" "+i.default.getStr(this.systemInfo,"version")}platformId(){return my.getAppIdSync()}language(){return i.default.getStr(this.systemInfo,"language")}getNetworkType(e){my.getNetworkType({success:t=>{var n;null===(n=e.success)||void 0===n||n.call(e.success,{networkType:t.networkType})},fail:()=>{var t;null===(t=e.fail)||void 0===t||t.call(e.fail,"")}})}onNetworkStatusChange(e){my.onNetworkStatusChange(e)}}},3555:e=>{e.exports=class{set(e){my.setStorage({key:e.key,data:e.data,success:e.success,fail:e.fail})}setSync(e,t){my.setStorageSync({key:e,data:t})}get(e){my.getStorage({key:e.key,success:e.success,fail:e.fail,complete:e.complete})}getSync(e){return my.getStorageSync({key:e}).data}}},1929:e=>{e.exports=class{connect(e){return my.connectSocket({url:e.url,header:e.header,method:e.method,success:e.success,fail:e.fail,complete:e.complete}),{onOpen:my.onSocketOpen,send:my.sendSocketMessage,onMessage:e=>{my.onSocketMessage.call(my.onSocketMessage,(t=>{e.call(e,{data:t?t.data:""})}))},onError:my.onSocketError,onClose:my.onSocketClose,close:my.closeSocket}}}},4379:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{os(){let e=window.navigator.userAgent.toLowerCase();return e.indexOf("android")>0||e.indexOf("adr")>0?"android":e.match(/\(i[^;]+;( u;)? cpu.+mac os x/)?"ios":e.indexOf("windows")>0||e.indexOf("win32")>0||e.indexOf("win64")>0?"windows":e.indexOf("macintosh")>0||e.indexOf("mac os")>0?"mac os":e.indexOf("linux")>0||e.indexOf("unix")>0?"linux":"other"}osVersion(){let e=window.navigator.userAgent.toLowerCase(),t=e.substring(e.indexOf(";")+1).trim();return t.indexOf(";")>0?t.substring(0,t.indexOf(";")).trim():t.substring(0,t.indexOf(")")).trim()}model(){return""}brand(){return""}platform(){return"H5"}platformVersion(){return""}platformId(){return""}language(){return window.navigator.language}userAgent(){return window.navigator.userAgent}getNetworkType(e){var t;null===(t=e.success)||void 0===t||t.call(e.success,{networkType:window.navigator.onLine?"unknown":"none"})}onNetworkStatusChange(e){}}},6899:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{set(e){var t;window.localStorage.setItem(e.key,e.data),null===(t=e.success)||void 0===t||t.call(e.success,"")}setSync(e,t){window.localStorage.setItem(e,t)}get(e){var t;let n=window.localStorage.getItem(e.key);null===(t=e.success)||void 0===t||t.call(e.success,n)}getSync(e){return window.localStorage.getItem(e)}}},776:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{connect(e){let t=new WebSocket(e.url);return{send:e=>{var n,i;try{t.send(e.data),null===(n=e.success)||void 0===n||n.call(e.success,{errMsg:""})}catch(a){null===(i=e.fail)||void 0===i||i.call(e.fail,{errMsg:a+""})}},close:e=>{var n,i;try{t.close(e.code,e.reason),null===(n=e.success)||void 0===n||n.call(e.success,{errMsg:""})}catch(a){null===(i=e.fail)||void 0===i||i.call(e.fail,{errMsg:a+""})}},onOpen:n=>{t.onopen=t=>{var i;null===(i=e.success)||void 0===i||i.call(e.success,""),n({header:""})}},onError:n=>{t.onerror=t=>{var i;null===(i=e.fail)||void 0===i||i.call(e.fail,""),n({errMsg:""})}},onMessage:e=>{t.onmessage=t=>{e({data:t.data})}},onClose:e=>{t.onclose=t=>{e(t)}}}}}},2002:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(3854));t.default=class{constructor(){this.systemInfo=tt.getSystemInfoSync()}os(){return a.default.getStr(this.systemInfo,"platform")}osVersion(){return a.default.getStr(this.systemInfo,"system")}model(){return a.default.getStr(this.systemInfo,"model")}brand(){return a.default.getStr(this.systemInfo,"brand")}platform(){return"MP-TOUTIAO"}platformVersion(){return a.default.getStr(this.systemInfo,"appName")+" "+a.default.getStr(this.systemInfo,"version")}language(){return""}platformId(){return""}getNetworkType(e){tt.getNetworkType(e)}onNetworkStatusChange(e){tt.onNetworkStatusChange(e)}}},5807:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{set(e){tt.setStorage(e)}setSync(e,t){tt.setStorageSync(e,t)}get(e){tt.getStorage(e)}getSync(e){return tt.getStorageSync(e)}}},9704:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{connect(e){let t=tt.connectSocket({url:e.url,header:e.header,protocols:e.protocols,success:e.success,fail:e.fail,complete:e.complete});return{onOpen:t.onOpen,send:t.send,onMessage:t.onMessage,onError:t.onError,onClose:t.onClose,close:t.close}}}},6545:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(3854));t.default=class{constructor(){try{this.systemInfo=uni.getSystemInfoSync(),this.accountInfo=uni.getAccountInfoSync()}catch(e){}}os(){return a.default.getStr(this.systemInfo,"platform")}model(){return a.default.getStr(this.systemInfo,"model")}brand(){return a.default.getStr(this.systemInfo,"brand")}osVersion(){return a.default.getStr(this.systemInfo,"system")}platform(){let e="";return e="APP-PLUS","APP-PLUS"}platformVersion(){return this.systemInfo?this.systemInfo.version:""}platformId(){return this.accountInfo?this.accountInfo.miniProgram.appId:""}language(){var e;return(null===(e=this.systemInfo)||void 0===e?void 0:e.language)?this.systemInfo.language:""}userAgent(){return window?window.navigator.userAgent:""}getNetworkType(e){uni.getNetworkType(e)}onNetworkStatusChange(e){uni.onNetworkStatusChange(e)}}},3680:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{set(e){uni.setStorage(e)}setSync(e,t){uni.setStorageSync(e,t)}get(e){uni.getStorage(e)}getSync(e){return uni.getStorageSync(e)}}},7706:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{connect(e){let t=uni.connectSocket(e);return{send:e=>{null==t||t.send(e)},close:e=>{null==t||t.close(e)},onOpen:e=>{null==t||t.onOpen(e)},onError:e=>{null==t||t.onError(e)},onMessage:e=>{null==t||t.onMessage(e)},onClose:e=>{null==t||t.onClose(e)}}}}},4486:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(3854));t.default=class{constructor(){this.systemInfo=wx.getSystemInfoSync()}os(){return a.default.getStr(this.systemInfo,"platform")}osVersion(){return a.default.getStr(this.systemInfo,"system")}model(){return a.default.getStr(this.systemInfo,"model")}brand(){return a.default.getStr(this.systemInfo,"brand")}platform(){return"MP-WEIXIN"}platformVersion(){return a.default.getStr(this.systemInfo,"version")}language(){return a.default.getStr(this.systemInfo,"language")}platformId(){return wx.canIUse("getAccountInfoSync")?wx.getAccountInfoSync().miniProgram.appId:""}getNetworkType(e){wx.getNetworkType({success:t=>{var n;null===(n=e.success)||void 0===n||n.call(e.success,{networkType:t.networkType})},fail:e.fail})}onNetworkStatusChange(e){wx.onNetworkStatusChange(e)}}},5867:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{set(e){wx.setStorage(e)}setSync(e,t){wx.setStorageSync(e,t)}get(e){wx.getStorage(e)}getSync(e){return wx.getStorageSync(e)}}},7006:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{connect(e){let t=wx.connectSocket({url:e.url,header:e.header,protocols:e.protocols,success:e.success,fail:e.fail,complete:e.complete});return{onOpen:t.onOpen,send:t.send,onMessage:t.onMessage,onError:t.onError,onClose:t.onClose,close:t.close}}}},6893:(e,t)=>{var n,i;Object.defineProperty(t,"__esModule",{value:!0}),(i=n||(n={})).SDK_VERSION="GTMP-2.0.4.dcloud",i.DEFAULT_SOCKET_URL="wss://wshzn.gepush.com:5223/nws",i.SOCKET_PROTOCOL_VERSION="1.0",i.SERVER_PUBLIC_KEY="MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAJp1rROuvBF7sBSnvLaesj2iFhMcY8aXyLvpnNLKs2wjL3JmEnyr++SlVa35liUlzi83tnAFkn3A9GB7pHBNzawyUkBh8WUhq5bnFIkk2RaDa6+5MpG84DEv52p7RR+aWwIDAQAB",i.SERVER_PUBLIC_KEY_ID="69d747c4b9f641baf4004be4297e9f3b",i.ID_U_2_G=!0,t.default=n},7555:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(7002)),s=i(n(529)),r=i(n(6379));class o{static init(e){var t;if(!this.inited)try{this.checkAppid(e.appid),this.inited=!0,s.default.info(`init: appid=${e.appid}`),r.default.init(e),a.default.connect()}catch(n){throw this.inited=!1,null===(t=e.onError)||void 0===t||t.call(e.onError,{error:n}),n}}static enableSocket(e){this.checkInit(),a.default.enableSocket(e)}static checkInit(){if(!this.inited)throw new Error("not init, please invoke init method firstly")}static checkAppid(e){if(null==e||null==e||""==e.trim())throw new Error(`invalid appid ${e}`)}}o.inited=!1,t.default=o},6379:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(6667)),s=i(n(8506)),r=i(n(6893)),o=i(n(7002)),l=i(n(529)),c=i(n(4685)),u=i(n(2323));class d{static init(e){var t;r.default.ID_U_2_G?this.appid=u.default.to_getui(e.appid):this.appid=e.appid,this.onError=e.onError,this.onClientId=e.onClientId,this.onlineState=e.onlineState,this.onPushMsg=e.onPushMsg,this.appid!=s.default.getSync(s.default.KEY_APPID,this.appid)&&(l.default.info("appid changed, clear session and cid"),s.default.setSync(s.default.KEY_CID,""),s.default.setSync(s.default.KEY_SESSION,"")),s.default.setSync(s.default.KEY_APPID,this.appid),this.cid=s.default.getSync(s.default.KEY_CID,this.cid),this.cid&&(null===(t=this.onClientId)||void 0===t||t.call(this.onClientId,{cid:d.cid})),this.session=s.default.getSync(s.default.KEY_SESSION,this.session),this.deviceId=s.default.getSync(s.default.KEY_DEVICE_ID,this.deviceId),this.regId=s.default.getSync(s.default.KEY_REGID,this.regId),this.regId||(this.regId=this.createRegId(),s.default.set({key:s.default.KEY_REGID,data:this.regId})),this.socketUrl=s.default.getSync(s.default.KEY_SOCKET_URL,this.socketUrl);let n=this;c.default.getNetworkType({success:e=>{n.networkType=e.networkType,n.networkConnected="none"!=n.networkType&&""!=n.networkType}}),c.default.onNetworkStatusChange((e=>{n.networkConnected=e.isConnected,n.networkType=e.networkType,n.networkConnected&&o.default.reconnect(100)}))}static createRegId(){return`M-V${a.default.md5Hex(this.getUuid())}-${(new Date).getTime()}`}static getUuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}}d.appid="",d.cid="",d.regId="",d.session="",d.deviceId="",d.packetId=1,d.online=!1,d.socketUrl=r.default.DEFAULT_SOCKET_URL,d.publicKeyId=r.default.SERVER_PUBLIC_KEY_ID,d.publicKey=r.default.SERVER_PUBLIC_KEY,d.lastAliasTime=0,d.networkConnected=!0,d.networkType="none",t.default=d},9586:function(e,t,n){var i,a,s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=s(n(661)),o=n(4198),l=s(n(6379));class c extends r.default{constructor(){super(...arguments),this.actionMsgData=new u}static initActionMsg(e,...t){return super.initMsg(e),e.command=r.default.Command.CLIENT_MSG,e.data=e.actionMsgData=u.create(),e}static parseActionMsg(e,t){return super.parseMsg(e,t),e.actionMsgData=u.parse(e.data),e}send(){setTimeout((()=>{var e;(c.waitingLoginMsgMap.has(this.actionMsgData.msgId)||c.waitingResponseMsgMap.has(this.actionMsgData.msgId))&&(c.waitingLoginMsgMap.delete(this.actionMsgData.msgId),c.waitingResponseMsgMap.delete(this.actionMsgData.msgId),null===(e=this.callback)||void 0===e||e.call(this.callback,{resultCode:o.ErrorCode.TIME_OUT,message:"waiting time out"}))}),1e4),l.default.online?(this.actionMsgData.msgAction!=c.ClientAction.RECEIVED&&c.waitingResponseMsgMap.set(this.actionMsgData.msgId,this),super.send()):c.waitingLoginMsgMap.set(this.actionMsgData.msgId,this)}receive(){}static sendWaitingMessages(){let e,t=this.waitingLoginMsgMap.keys();for(;e=t.next(),!e.done;){let t=this.waitingLoginMsgMap.get(e.value);this.waitingLoginMsgMap.delete(e.value),null==t||t.send()}}static getWaitingResponseMessage(e){return c.waitingResponseMsgMap.get(e)}static removeWaitingResponseMessage(e){let t=c.waitingResponseMsgMap.get(e);return t&&c.waitingResponseMsgMap.delete(e),t}}c.ServerAction=((i=class{}).PUSH_MESSAGE="pushmessage",i.REDIRECT_SERVER="redirect_server",i.ADD_PHONE_INFO_RESULT="addphoneinfo",i.SET_MODE_RESULT="set_mode_result",i.SET_TAG_RESULT="settag_result",i.BIND_ALIAS_RESULT="response_bind",i.UNBIND_ALIAS_RESULT="response_unbind",i.FEED_BACK_RESULT="pushmessage_feedback",i.RECEIVED="received",i),c.ClientAction=((a=class{}).ADD_PHONE_INFO="addphoneinfo",a.SET_MODE="set_mode",a.FEED_BACK="pushmessage_feedback",a.SET_TAGS="set_tag",a.BIND_ALIAS="bind_alias",a.UNBIND_ALIAS="unbind_alias",a.RECEIVED="received",a),c.waitingLoginMsgMap=new Map,c.waitingResponseMsgMap=new Map;class u{constructor(){this.appId="",this.cid="",this.msgId="",this.msgAction="",this.msgData="",this.msgExtraData=""}static create(){let e=new u;return e.appId=l.default.appid,e.cid=l.default.cid,e.msgId=(2147483647&(new Date).getTime()).toString(),e}static parse(e){let t=new u,n=JSON.parse(e);return t.appId=n.appId,t.cid=n.cid,t.msgId=n.msgId,t.msgAction=n.msgAction,t.msgData=n.msgData,t.msgExtraData=n.msgExtraData,t}}t.default=c},4516:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(4685)),s=i(n(8506)),r=i(n(6893)),o=n(4198),l=i(n(9586)),c=i(n(6379));class u extends l.default{constructor(){super(...arguments),this.addPhoneInfoData=new d}static create(){let e=new u;return super.initActionMsg(e),e.callback=t=>{t.resultCode!=o.ErrorCode.SUCCESS&&t.resultCode!=o.ErrorCode.REPEAT_MESSAGE?setTimeout((function(){e.send()}),3e4):s.default.set({key:s.default.KEY_ADD_PHONE_INFO_TIME,data:(new Date).getTime()})},e.actionMsgData.msgAction=l.default.ClientAction.ADD_PHONE_INFO,e.addPhoneInfoData=d.create(),e.actionMsgData.msgData=JSON.stringify(e.addPhoneInfoData),e}send(){(new Date).getTime()-s.default.getSync(s.default.KEY_ADD_PHONE_INFO_TIME,0)<864e5||super.send()}}class d{constructor(){this.model="",this.brand="",this.system_version="",this.version="",this.deviceid="",this.type=""}static create(){let e=new d;return e.model=a.default.model(),e.brand=a.default.brand(),e.system_version=a.default.osVersion(),e.version=r.default.SDK_VERSION,e.device_token="",e.imei="",e.oaid="",e.mac="",e.idfa="",e.type="MINIPROGRAM",e.deviceid=`${e.type}-${c.default.deviceId}`,e.extra={os:a.default.os(),platform:a.default.platform(),platformVersion:a.default.platformVersion(),platformId:a.default.platformId(),language:a.default.language(),userAgent:a.default.userAgent()},e}}t.default=u},8723:function(e,t,n){var i,a,s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=s(n(6379)),o=n(4198),l=s(n(9586));class c extends l.default{constructor(){super(...arguments),this.feedbackData=new u}static create(e,t){let n=new c;return super.initActionMsg(n),n.callback=e=>{e.resultCode!=o.ErrorCode.SUCCESS&&e.resultCode!=o.ErrorCode.REPEAT_MESSAGE&&setTimeout((function(){n.send()}),3e4)},n.feedbackData=u.create(e,t),n.actionMsgData.msgAction=l.default.ClientAction.FEED_BACK,n.actionMsgData.msgData=JSON.stringify(n.feedbackData),n}send(){super.send()}}c.ActionId=((i=class{}).RECEIVE="0",i.MP_RECEIVE="210000",i.WEB_RECEIVE="220000",i.BEGIN="1",i),c.RESULT=((a=class{}).OK="ok",a);class u{constructor(){this.messageid="",this.appkey="",this.appid="",this.taskid="",this.actionid="",this.result="",this.timestamp=""}static create(e,t){let n=new u;return n.messageid=e.pushMessageData.messageid,n.appkey=e.pushMessageData.appKey,n.appid=r.default.appid,n.taskid=e.pushMessageData.taskId,n.actionid=t,n.result=c.RESULT.OK,n.timestamp=(new Date).getTime().toString(),n}}t.default=c},6362:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(661));class s extends a.default{static create(){let e=new s;return super.initMsg(e),e.command=a.default.Command.HEART_BEAT,e}}t.default=s},1386:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(6667)),s=i(n(6379)),r=i(n(661));class o extends r.default{constructor(){super(...arguments),this.keyNegotiateData=new l}static create(){let e=new o;return super.initMsg(e),e.command=r.default.Command.KEY_NEGOTIATE,a.default.resetKey(),e.data=e.keyNegotiateData=l.create(),e}send(){super.send()}}class l{constructor(){this.appId="",this.rsaPublicKeyId="",this.algorithm="",this.secretKey="",this.iv=""}static create(){let e=new l;return e.appId=s.default.appid,e.rsaPublicKeyId=s.default.publicKeyId,e.algorithm="AES",e.secretKey=a.default.getEncryptedSecretKey(),e.iv=a.default.getEncryptedIV(),e}}t.default=o},1280:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(661)),s=i(n(6667)),r=i(n(8858)),o=i(n(529)),l=i(n(6379));class c extends a.default{constructor(){super(...arguments),this.keyNegotiateResultData=new u}static parse(e){let t=new c;return super.parseMsg(t,e),t.keyNegotiateResultData=u.parse(t.data),t}receive(){var e,t;if(0!=this.keyNegotiateResultData.errorCode)return o.default.error(`key negotiate fail: ${this.data}`),void(null===(e=l.default.onError)||void 0===e||e.call(l.default.onError,{error:`key negotiate fail: ${this.data}`}));let n=this.keyNegotiateResultData.encryptType.split("/");if(!s.default.algorithmMap.has(n[0].trim().toLowerCase())||!s.default.modeMap.has(n[1].trim().toLowerCase())||!s.default.paddingMap.has(n[2].trim().toLowerCase()))return o.default.error(`key negotiate fail: ${this.data}`),void(null===(t=l.default.onError)||void 0===t||t.call(l.default.onError,{error:`key negotiate fail: ${this.data}`}));s.default.setEncryptParams(n[0].trim().toLowerCase(),n[1].trim().toLowerCase(),n[2].trim().toLowerCase()),r.default.create().send()}}class u{constructor(){this.errorCode=-1,this.errorMsg="",this.encryptType=""}static parse(e){let t=new u,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t.encryptType=n.encryptType,t}}t.default=c},8858:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(6379)),s=i(n(6667)),r=i(n(661)),o=i(n(4534));class l extends r.default{constructor(){super(...arguments),this.loginData=new c}static create(){let e=new l;return super.initMsg(e),e.command=r.default.Command.LOGIN,e.data=e.loginData=c.create(),e}send(){this.loginData.session&&a.default.cid==s.default.md5Hex(this.loginData.session)?super.send():o.default.create().send()}}class c{constructor(){this.appId="",this.session=""}static create(){let e=new c;return e.appId=a.default.appid,e.session=a.default.session,e}}t.default=l},1606:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(8506)),s=i(n(661)),r=i(n(6379)),o=i(n(9586)),l=i(n(4516)),c=i(n(8858));class u extends s.default{constructor(){super(...arguments),this.loginResultData=new d}static parse(e){let t=new u;return super.parseMsg(t,e),t.loginResultData=d.parse(t.data),t}receive(){var e;if(0!=this.loginResultData.errorCode)return this.data,r.default.session=r.default.cid="",a.default.setSync(a.default.KEY_CID,""),a.default.setSync(a.default.KEY_SESSION,""),void c.default.create().send();r.default.online||(r.default.online=!0,null===(e=r.default.onlineState)||void 0===e||e.call(r.default.onlineState,{online:r.default.online})),o.default.sendWaitingMessages(),l.default.create().send()}}class d{constructor(){this.errorCode=-1,this.errorMsg="",this.session=""}static parse(e){let t=new d,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t.session=n.session,t}}t.default=u},661:function(e,t,n){var i,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=a(n(9593)),r=a(n(7002)),o=a(n(6893)),l=a(n(6379));class c{constructor(){this.version="",this.command=0,this.packetId=0,this.timeStamp=0,this.data="",this.signature=""}static initMsg(e,...t){return e.version=o.default.SOCKET_PROTOCOL_VERSION,e.command=0,e.timeStamp=(new Date).getTime(),e}static parseMsg(e,t){let n=JSON.parse(t);return e.version=n.version,e.command=n.command,e.packetId=n.packetId,e.timeStamp=n.timeStamp,e.data=n.data,e.signature=n.signature,e}stringify(){return JSON.stringify(this,["version","command","packetId","timeStamp","data","signature"])}send(){r.default.isAvailable()&&(this.packetId=l.default.packetId++,this.temp?this.data=this.temp:this.temp=this.data,this.data=JSON.stringify(this.data),this.stringify(),this.command!=c.Command.HEART_BEAT&&(s.default.sign(this),this.data&&this.command!=c.Command.KEY_NEGOTIATE&&s.default.encrypt(this)),r.default.send(this.stringify()))}}c.Command=((i=class{}).HEART_BEAT=0,i.KEY_NEGOTIATE=1,i.KEY_NEGOTIATE_RESULT=16,i.REGISTER=2,i.REGISTER_RESULT=32,i.LOGIN=3,i.LOGIN_RESULT=48,i.LOGOUT=4,i.LOGOUT_RESULT=64,i.CLIENT_MSG=5,i.SERVER_MSG=80,i.SERVER_CLOSE=96,i.REDIRECT_SERVER=112,i),t.default=c},9593:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(6667));var s,r;(r=s||(s={})).encrypt=function(e){e.data=a.default.encrypt(e.data)},r.decrypt=function(e){e.data=a.default.decrypt(e.data)},r.sign=function(e){e.signature=a.default.sha256(`${e.timeStamp}${e.packetId}${e.command}${e.data}`)},r.verify=function(e){let t=a.default.sha256(`${e.timeStamp}${e.packetId}${e.command}${e.data}`);if(e.signature!=t)throw new Error("msg signature vierfy failed")},t.default=s},4054:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(1280)),s=i(n(1606)),r=i(n(661)),o=i(n(1277)),l=i(n(910)),c=i(n(9538)),u=i(n(9479)),d=i(n(6755)),h=i(n(2918)),p=i(n(9586)),f=i(n(9510)),m=i(n(4626)),g=i(n(7562)),v=i(n(9593)),y=i(n(9586)),w=i(n(9519)),k=i(n(8947));t.default=class{static receiveMessage(e){let t=r.default.parseMsg(new r.default,e);if(t.command!=r.default.Command.HEART_BEAT)switch(t.command!=r.default.Command.KEY_NEGOTIATE_RESULT&&t.command!=r.default.Command.SERVER_CLOSE&&t.command!=r.default.Command.REDIRECT_SERVER&&v.default.decrypt(t),t.command!=r.default.Command.SERVER_CLOSE&&t.command!=r.default.Command.REDIRECT_SERVER&&v.default.verify(t),t.command){case r.default.Command.KEY_NEGOTIATE_RESULT:a.default.parse(t.stringify()).receive();break;case r.default.Command.REGISTER_RESULT:o.default.parse(t.stringify()).receive();break;case r.default.Command.LOGIN_RESULT:s.default.parse(t.stringify()).receive();break;case r.default.Command.SERVER_MSG:this.receiveActionMsg(t.stringify());break;case r.default.Command.SERVER_CLOSE:k.default.parse(t.stringify()).receive();break;case r.default.Command.REDIRECT_SERVER:h.default.parse(t.stringify()).receive()}}static receiveActionMsg(e){let t=y.default.parseActionMsg(new y.default,e);if(t.actionMsgData.msgAction!=p.default.ServerAction.RECEIVED&&t.actionMsgData.msgAction!=p.default.ServerAction.REDIRECT_SERVER){let e=JSON.parse(t.actionMsgData.msgData);w.default.create(e.id).send()}switch(t.actionMsgData.msgAction){case p.default.ServerAction.PUSH_MESSAGE:d.default.parse(e).receive();break;case p.default.ServerAction.ADD_PHONE_INFO_RESULT:l.default.parse(e).receive();break;case p.default.ServerAction.SET_MODE_RESULT:f.default.parse(e).receive();break;case p.default.ServerAction.SET_TAG_RESULT:m.default.parse(e).receive();break;case p.default.ServerAction.BIND_ALIAS_RESULT:c.default.parse(e).receive();break;case p.default.ServerAction.UNBIND_ALIAS_RESULT:g.default.parse(e).receive();break;case p.default.ServerAction.FEED_BACK_RESULT:u.default.parse(e).receive();break;case p.default.ServerAction.RECEIVED:w.default.parse(e).receive()}}}},9519:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(4198),s=i(n(6379)),r=i(n(9586));class o extends r.default{constructor(){super(...arguments),this.receivedData=new l}static create(e){let t=new o;return super.initActionMsg(t),t.callback=e=>{e.resultCode!=a.ErrorCode.SUCCESS&&e.resultCode!=a.ErrorCode.REPEAT_MESSAGE&&setTimeout((function(){t.send()}),3e3)},t.actionMsgData.msgAction=r.default.ClientAction.RECEIVED,t.receivedData=l.create(e),t.actionMsgData.msgData=JSON.stringify(t.receivedData),t}static parse(e){let t=new o;return super.parseActionMsg(t,e),t.receivedData=l.parse(t.data),t}receive(){var e;let t=r.default.getWaitingResponseMessage(this.actionMsgData.msgId);(t&&t.actionMsgData.msgAction==r.default.ClientAction.ADD_PHONE_INFO||t&&t.actionMsgData.msgAction==r.default.ClientAction.FEED_BACK)&&(r.default.removeWaitingResponseMessage(t.actionMsgData.msgId),null===(e=t.callback)||void 0===e||e.call(t.callback,{resultCode:a.ErrorCode.SUCCESS,message:"received"}))}send(){super.send()}}class l{constructor(){this.msgId="",this.cid=""}static create(e){let t=new l;return t.cid=s.default.cid,t.msgId=e,t}static parse(e){let t=new l,n=JSON.parse(e);return t.cid=n.cid,t.msgId=n.msgId,t}}t.default=o},2918:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RedirectServerData=void 0;const a=i(n(7002)),s=i(n(8506)),r=i(n(661));class o extends r.default{constructor(){super(...arguments),this.redirectServerData=new l}static parse(e){let t=new o;return super.parseMsg(t,e),t.redirectServerData=l.parse(t.data),t}receive(){this.redirectServerData,s.default.setSync(s.default.KEY_REDIRECT_SERVER,JSON.stringify(this.redirectServerData)),a.default.close("redirect server"),a.default.reconnect(this.redirectServerData.delay)}}class l{constructor(){this.addressList=[],this.delay=0,this.loc="",this.conf="",this.time=0}static parse(e){let t=new l,n=JSON.parse(e);return t.addressList=n.addressList,t.delay=n.delay,t.loc=n.loc,t.conf=n.conf,t.time=n.time?n.time:(new Date).getTime(),t}}t.RedirectServerData=l,t.default=o},4534:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(6379)),s=i(n(661));class r extends s.default{constructor(){super(...arguments),this.registerData=new o}static create(){let e=new r;return super.initMsg(e),e.command=s.default.Command.REGISTER,e.data=e.registerData=o.create(),e}send(){super.send()}}class o{constructor(){this.appId="",this.regId=""}static create(){let e=new o;return e.appId=a.default.appid,e.regId=a.default.regId,e}}t.default=r},1277:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(661)),s=i(n(8506)),r=i(n(6379)),o=i(n(8858)),l=i(n(529));class c extends a.default{constructor(){super(...arguments),this.registerResultData=new u}static parse(e){let t=new c;return super.parseMsg(t,e),t.registerResultData=u.parse(t.data),t}receive(){var e,t;if(0!=this.registerResultData.errorCode||!this.registerResultData.cid||!this.registerResultData.session)return l.default.error(`register fail: ${this.data}`),void(null===(e=r.default.onError)||void 0===e||e.call(r.default.onError,{error:`register fail: ${this.data}`}));r.default.cid!=this.registerResultData.cid&&s.default.setSync(s.default.KEY_ADD_PHONE_INFO_TIME,0),r.default.cid=this.registerResultData.cid,null===(t=r.default.onClientId)||void 0===t||t.call(r.default.onClientId,{cid:r.default.cid}),s.default.set({key:s.default.KEY_CID,data:r.default.cid}),r.default.session=this.registerResultData.session,s.default.set({key:s.default.KEY_SESSION,data:r.default.session}),r.default.deviceId=this.registerResultData.deviceId,s.default.set({key:s.default.KEY_DEVICE_ID,data:r.default.deviceId}),o.default.create().send()}}class u{constructor(){this.errorCode=-1,this.errorMsg="",this.cid="",this.session="",this.deviceId="",this.regId=""}static parse(e){let t=new u,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t.cid=n.cid,t.session=n.session,t.deviceId=n.deviceId,t.regId=n.regId,t}}t.default=c},8947:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(7002)),s=i(n(529)),r=i(n(661));class o extends r.default{constructor(){super(...arguments),this.serverCloseData=new l}static parse(e){let t=new o;return super.parseMsg(t,e),t.serverCloseData=l.parse(t.data),t}receive(){JSON.stringify(this.serverCloseData);let e=`server close ${this.serverCloseData.code}`;20==this.serverCloseData.code||23==this.serverCloseData.code||24==this.serverCloseData.code?(a.default.allowReconnect=!1,a.default.close(e)):21==this.serverCloseData.code?this.safeClose21(e):(a.default.allowReconnect=!0,a.default.close(e),a.default.reconnect(10))}safeClose21(e){try{if("undefined"!=typeof document&&document.hasFocus()&&"visible"==document.visibilityState)return a.default.allowReconnect=!0,a.default.close(e),void a.default.reconnect(10);a.default.allowReconnect=!1,a.default.close(e)}catch(t){s.default.error("ServerClose t1",t),a.default.allowReconnect=!1,a.default.close(`${e} error`)}}}class l{constructor(){this.code=-1,this.msg=""}static parse(e){let t=new l,n=JSON.parse(e);return t.code=n.code,t.msg=n.msg,t}}t.default=o},910:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(8506)),s=i(n(9586));class r extends s.default{constructor(){super(...arguments),this.addPhoneInfoResultData=new o}static parse(e){let t=new r;return super.parseActionMsg(t,e),t.addPhoneInfoResultData=o.parse(t.actionMsgData.msgData),t}receive(){var e;this.addPhoneInfoResultData;let t=s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);t&&(null===(e=t.callback)||void 0===e||e.call(t.callback,{resultCode:this.addPhoneInfoResultData.errorCode,message:this.addPhoneInfoResultData.errorMsg})),a.default.set({key:a.default.KEY_ADD_PHONE_INFO_TIME,data:(new Date).getTime()})}}class o{constructor(){this.errorCode=-1,this.errorMsg=""}static parse(e){let t=new o,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t}}t.default=r},9538:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(8506)),s=i(n(529)),r=i(n(9586));class o extends r.default{constructor(){super(...arguments),this.bindAliasResultData=new l}static parse(e){let t=new o;return super.parseActionMsg(t,e),t.bindAliasResultData=l.parse(t.actionMsgData.msgData),t}receive(){var e;s.default.info("bind alias result",this.bindAliasResultData);let t=r.default.removeWaitingResponseMessage(this.actionMsgData.msgId);t&&(null===(e=t.callback)||void 0===e||e.call(t.callback,{resultCode:this.bindAliasResultData.errorCode,message:this.bindAliasResultData.errorMsg})),a.default.set({key:a.default.KEY_BIND_ALIAS_TIME,data:(new Date).getTime()})}}class l{constructor(){this.errorCode=-1,this.errorMsg=""}static parse(e){let t=new l,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t}}t.default=o},9479:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(4198),s=i(n(9586));class r extends s.default{constructor(){super(...arguments),this.feedbackResultData=new o}static parse(e){let t=new r;return super.parseActionMsg(t,e),t.feedbackResultData=o.parse(t.actionMsgData.msgData),t}receive(){var e;this.feedbackResultData;let t=s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);t&&(null===(e=t.callback)||void 0===e||e.call(t.callback,{resultCode:a.ErrorCode.SUCCESS,message:"received"}))}}class o{constructor(){this.actionId="",this.taskId="",this.result=""}static parse(e){let t=new o,n=JSON.parse(e);return t.actionId=n.actionId,t.taskId=n.taskId,t.result=n.result,t}}t.default=r},6755:function(e,t,n){var i,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=a(n(6379)),r=a(n(9586)),o=a(n(8723));class l extends r.default{constructor(){super(...arguments),this.pushMessageData=new c}static parse(e){let t=new l;return super.parseActionMsg(t,e),t.pushMessageData=c.parse(t.actionMsgData.msgData),t}receive(){var e;this.pushMessageData,this.pushMessageData.appId==s.default.appid&&this.pushMessageData.messageid&&this.pushMessageData.taskId||this.stringify(),o.default.create(this,o.default.ActionId.RECEIVE).send(),o.default.create(this,o.default.ActionId.MP_RECEIVE).send(),this.actionMsgData.msgExtraData&&s.default.onPushMsg&&(null===(e=s.default.onPushMsg)||void 0===e||e.call(s.default.onPushMsg,{message:this.actionMsgData.msgExtraData}))}}class c{constructor(){this.id="",this.appKey="",this.appId="",this.messageid="",this.taskId="",this.actionChain=[],this.cdnType=""}static parse(e){let t=new c,n=JSON.parse(e);return t.id=n.id,t.appKey=n.appKey,t.appId=n.appId,t.messageid=n.messageid,t.taskId=n.taskId,t.actionChain=n.actionChain,t.cdnType=n.cdnType,t}}(i=class{}).GO_TO="goto",i.TRANSMIT="transmit",t.default=l},9510:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(9586));class s extends a.default{constructor(){super(...arguments),this.setModeResultData=new r}static parse(e){let t=new s;return super.parseActionMsg(t,e),t.setModeResultData=r.parse(t.actionMsgData.msgData),t}receive(){var e;this.setModeResultData;let t=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);t&&(null===(e=t.callback)||void 0===e||e.call(t.callback,{resultCode:this.setModeResultData.errorCode,message:this.setModeResultData.errorMsg}))}}class r{constructor(){this.errorCode=-1,this.errorMsg=""}static parse(e){let t=new r,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t}}t.default=s},4626:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(8506)),s=i(n(529)),r=i(n(9586));class o extends r.default{constructor(){super(...arguments),this.setTagResultData=new l}static parse(e){let t=new o;return super.parseActionMsg(t,e),t.setTagResultData=l.parse(t.actionMsgData.msgData),t}receive(){var e;s.default.info("set tag result",this.setTagResultData);let t=r.default.removeWaitingResponseMessage(this.actionMsgData.msgId);t&&(null===(e=t.callback)||void 0===e||e.call(t.callback,{resultCode:this.setTagResultData.errorCode,message:this.setTagResultData.errorMsg})),a.default.set({key:a.default.KEY_SET_TAG_TIME,data:(new Date).getTime()})}}class l{constructor(){this.errorCode=0,this.errorMsg=""}static parse(e){let t=new l,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t}}t.default=o},7562:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(8506)),s=i(n(529)),r=i(n(9586));class o extends r.default{constructor(){super(...arguments),this.unbindAliasResultData=new l}static parse(e){let t=new o;return super.parseActionMsg(t,e),t.unbindAliasResultData=l.parse(t.actionMsgData.msgData),t}receive(){var e;s.default.info("unbind alias result",this.unbindAliasResultData);let t=r.default.removeWaitingResponseMessage(this.actionMsgData.msgId);t&&(null===(e=t.callback)||void 0===e||e.call(t.callback,{resultCode:this.unbindAliasResultData.errorCode,message:this.unbindAliasResultData.errorMsg})),a.default.set({key:a.default.KEY_BIND_ALIAS_TIME,data:(new Date).getTime()})}}class l{constructor(){this.errorCode=-1,this.errorMsg=""}static parse(e){let t=new l,n=JSON.parse(e);return t.errorCode=n.errorCode,t.errorMsg=n.errorMsg,t}}t.default=o},8227:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e){this.delay=10,this.delay=e}start(){this.cancel();let e=this;this.timer=setInterval((function(){e.run()}),this.delay)}cancel(){this.timer&&clearInterval(this.timer)}}},7167:function(e,t,n){var i,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=a(n(6362)),r=a(n(8227));class o extends r.default{static getInstance(){return o.InstanceHolder.instance}run(){s.default.create().send()}refresh(){this.delay=6e4,this.start()}}o.INTERVAL=6e4,o.InstanceHolder=((i=class{}).instance=new o(o.INTERVAL),i),t.default=o},2323:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=i(n(4736)),s=i(n(6667));var r;!function(e){let t=(0,a.default)("9223372036854775808");function n(e){e>=t&&(e=t.multiply(2).minus(e));let n="";for(;e>(0,a.default)(0);e=e.divide(62))n+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".charAt(Number(e.divmod(62).remainder));return n}e.to_getui=function(e){let t=function(e){let t=function(e){let t=e.length;if(t%2!=0)return[];let n=new Array;for(let i=0;i{Object.defineProperty(t,"__esModule",{value:!0});class n{static info(...e){this.debugMode&&console.info("[GtPush]",e)}static warn(...e){console.warn("[GtPush]",e)}static error(...e){console.error("[GtPush]",e)}}n.debugMode=!1,t.default=n},3854:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{static getStr(e,t){try{return e&&void 0!==e[t]?e[t]:""}catch(n){}return""}}},2620:(e,t,n)=>{function i(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function a(e,t){return e&t}function s(e,t){return e|t}function r(e,t){return e^t}function o(e,t){return e&~t}function l(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function c(e){for(var t=0;0!=e;)e&=e-1,++t;return t}n.r(t),n.d(t,{JSEncrypt:()=>ee,default:()=>te});var u,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function h(e){var t,n,i="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),i+=d.charAt(n>>6)+d.charAt(63&n);for(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),i+=d.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),i+=d.charAt(n>>2)+d.charAt((3&n)<<4));(3&i.length)>0;)i+="=";return i}var p,f=function(e){var t;if(void 0===u){var n="0123456789ABCDEF",i=" \f\n\r\t \u2028\u2029";for(u={},t=0;t<16;++t)u[n.charAt(t)]=t;for(n=n.toLowerCase(),t=10;t<16;++t)u[n.charAt(t)]=t;for(t=0;t=2?(a[a.length]=s,s=0,r=0):s<<=4}}if(r)throw new Error("Hex encoding incomplete: 4 bits missing");return a},m={decode:function(e){var t;if(void 0===p){var n="= \f\n\r\t \u2028\u2029";for(p=Object.create(null),t=0;t<64;++t)p["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(p["-"]=62,p._=63,t=0;t=4?(i[i.length]=a>>16,i[i.length]=a>>8&255,i[i.length]=255&a,a=0,s=0):a<<=6}}switch(s){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:i[i.length]=a>>10;break;case 3:i[i.length]=a>>16,i[i.length]=a>>8&255}return i},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(e){var t=m.re.exec(e);if(t)if(t[1])e=t[1];else{if(!t[2])throw new Error("RegExp out of sync");e=t[2]}return m.decode(e)}},g=1e13,v=function(){function e(e){this.buf=[+e||0]}return e.prototype.mulAdd=function(e,t){var n,i,a=this.buf,s=a.length;for(n=0;n0&&(a[n]=t)},e.prototype.sub=function(e){var t,n,i=this.buf,a=i.length;for(t=0;t=0;--i)n+=(g+t[i]).toString().substring(1);return n},e.prototype.valueOf=function(){for(var e=this.buf,t=0,n=e.length-1;n>=0;--n)t=t*g+e[n];return t},e.prototype.simplify=function(){var e=this.buf;return 1==e.length?e[0]:this},e}(),y=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,w=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function k(e,t){return e.length>t&&(e=e.substring(0,t)+"…"),e}var _,S=function(){function e(t,n){this.hexDigits="0123456789ABCDEF",t instanceof e?(this.enc=t.enc,this.pos=t.pos):(this.enc=t,this.pos=n)}return e.prototype.get=function(e){if(void 0===e&&(e=this.pos++),e>=this.enc.length)throw new Error("Requesting byte offset "+e+" on a stream of length "+this.enc.length);return"string"==typeof this.enc?this.enc.charCodeAt(e):this.enc[e]},e.prototype.hexByte=function(e){return this.hexDigits.charAt(e>>4&15)+this.hexDigits.charAt(15&e)},e.prototype.hexDump=function(e,t,n){for(var i="",a=e;a176)return!1}return!0},e.prototype.parseStringISO=function(e,t){for(var n="",i=e;i191&&a<224?String.fromCharCode((31&a)<<6|63&this.get(i++)):String.fromCharCode((15&a)<<12|(63&this.get(i++))<<6|63&this.get(i++))}return n},e.prototype.parseStringBMP=function(e,t){for(var n,i,a="",s=e;s127,s=a?255:0,r="";i==s&&++e4){for(r=i,n<<=3;0==(128&(+r^s));)r=+r<<1,--n;r="("+n+" bit)\n"}a&&(i-=256);for(var o=new v(i),l=e+1;l=l;--c)s+=o>>c&1?"1":"0";if(s.length>n)return a+k(s,n)}return a+s},e.prototype.parseOctetString=function(e,t,n){if(this.isASCII(e,t))return k(this.parseStringISO(e,t),n);var i=t-e,a="("+i+" byte)\n";i>(n/=2)&&(t=e+n);for(var s=e;sn&&(a+="…"),a},e.prototype.parseOID=function(e,t,n){for(var i="",a=new v,s=0,r=e;rn)return k(i,n);a=new v,s=0}}return s>0&&(i+=".incomplete"),i},e}(),b=function(){function e(e,t,n,i,a){if(!(i instanceof E))throw new Error("Invalid tag value.");this.stream=e,this.header=t,this.length=n,this.tag=i,this.sub=a}return e.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},e.prototype.content=function(e){if(void 0===this.tag)return null;void 0===e&&(e=1/0);var t=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(t)?"false":"true";case 2:return this.stream.parseInteger(t,t+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(t,t+n,e);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(t,t+n,e);case 6:return this.stream.parseOID(t,t+n,e);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return k(this.stream.parseStringUTF(t,t+n),e);case 18:case 19:case 20:case 21:case 22:case 26:return k(this.stream.parseStringISO(t,t+n),e);case 30:return k(this.stream.parseStringBMP(t,t+n),e);case 23:case 24:return this.stream.parseTime(t,t+n,23==this.tag.tagNumber)}return null},e.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},e.prototype.toPrettyString=function(e){void 0===e&&(e="");var t=e+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(t+="+"),t+=this.length,this.tag.tagConstructed?t+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(t+=" (encapsulates)"),t+="\n",null!==this.sub){e+=" ";for(var n=0,i=this.sub.length;n6)throw new Error("Length over 48 bits not supported at position "+(e.pos-1));if(0===n)return null;t=0;for(var i=0;i>6,this.tagConstructed=0!=(32&t),this.tagNumber=31&t,31==this.tagNumber){var n=new v;do{t=e.get(),n.mulAdd(128,127&t)}while(128&t);this.tagNumber=n.simplify()}}return e.prototype.isUniversal=function(){return 0===this.tagClass},e.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},e}(),x=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],D=(1<<26)/x[x.length-1],T=function(){function e(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}return e.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,a=(1<0)for(l>l)>0&&(s=!0,r=i(n));o>=0;)l>(l+=this.DB-t)):(n=this[o]>>(l-=t)&a,l<=0&&(l+=this.DB,--o)),n>0&&(s=!0),s&&(r+=i(n));return s?r:"0"},e.prototype.negate=function(){var t=B();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},e.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+j(this[this.t-1]^this.s&this.DM)},e.prototype.mod=function(t){var n=B();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new C(t):new V(t),this.exp(e,n)},e.prototype.clone=function(){var e=B();return this.copyTo(e),e},e.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<>24},e.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},e.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},e.prototype.toByteArray=function(){var e=this.t,t=[];t[0]=this.s;var n,i=this.DB-e*this.DB%8,a=0;if(e-- >0)for(i>i)!=(this.s&this.DM)>>i&&(t[a++]=n|this.s<=0;)i<8?(n=(this[e]&(1<>(i+=this.DB-8)):(n=this[e]>>(i-=8)&255,i<=0&&(i+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==a&&(128&this.s)!=(128&n)&&++a,(a>0||n!=this.s)&&(t[a++]=n);return t},e.prototype.equals=function(e){return 0==this.compareTo(e)},e.prototype.min=function(e){return this.compareTo(e)<0?this:e},e.prototype.max=function(e){return this.compareTo(e)>0?this:e},e.prototype.and=function(e){var t=B();return this.bitwiseTo(e,a,t),t},e.prototype.or=function(e){var t=B();return this.bitwiseTo(e,s,t),t},e.prototype.xor=function(e){var t=B();return this.bitwiseTo(e,r,t),t},e.prototype.andNot=function(e){var t=B();return this.bitwiseTo(e,o,t),t},e.prototype.not=function(){for(var e=B(),t=0;t=this.t?0!=this.s:0!=(this[t]&1<1){var u=B();for(i.sqrTo(r[1],u);o<=c;)r[o]=B(),i.mulTo(u,r[o-2],r[o]),o+=2}var d,h,p=e.t-1,f=!0,m=B();for(a=j(e[p])-1;p>=0;){for(a>=l?d=e[p]>>a-l&c:(d=(e[p]&(1<0&&(d|=e[p-1]>>this.DB+a-l)),o=n;0==(1&d);)d>>=1,--o;if((a-=o)<0&&(a+=this.DB,--p),f)r[d].copyTo(s),f=!1;else{for(;o>1;)i.sqrTo(s,m),i.sqrTo(m,s),o-=2;o>0?i.sqrTo(s,m):(h=s,s=m,m=h),i.mulTo(m,r[d],s)}for(;p>=0&&0==(e[p]&1<=0?(i.subTo(a,i),n&&s.subTo(o,s),r.subTo(l,r)):(a.subTo(i,a),n&&o.subTo(s,o),l.subTo(r,l))}return 0!=a.compareTo(e.ONE)?e.ZERO:l.compareTo(t)>=0?l.subtract(t):l.signum()<0?(l.addTo(t,l),l.signum()<0?l.add(t):l):l},e.prototype.pow=function(e){return this.exp(e,new N)},e.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var i=t;t=n,n=i}var a=t.getLowestSetBit(),s=n.getLowestSetBit();if(s<0)return t;for(a0&&(t.rShiftTo(s,t),n.rShiftTo(s,n));t.signum()>0;)(a=t.getLowestSetBit())>0&&t.rShiftTo(a,t),(a=n.getLowestSetBit())>0&&n.rShiftTo(a,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return s>0&&n.lShiftTo(s,n),n},e.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=x[x.length-1]){for(t=0;t=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},e.prototype.fromString=function(t,n){var i;if(16==n)i=4;else if(8==n)i=3;else if(256==n)i=8;else if(2==n)i=1;else if(32==n)i=5;else{if(4!=n)return void this.fromRadix(t,n);i=2}this.t=0,this.s=0;for(var a=t.length,s=!1,r=0;--a>=0;){var o=8==i?255&+t[a]:L(t,a);o<0?"-"==t.charAt(a)&&(s=!0):(s=!1,0==r?this[this.t++]=o:r+i>this.DB?(this[this.t-1]|=(o&(1<>this.DB-r):this[this.t-1]|=o<=this.DB&&(r-=this.DB))}8==i&&0!=(128&+t[0])&&(this.s=-1,r>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==e;)--this.t},e.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},e.prototype.drShiftTo=function(e,t){for(var n=e;n=0;--o)t[o+s+1]=this[o]>>i|r,r=(this[o]&a)<=0;--o)t[o]=0;t[s]=r,t.t=this.t+s+1,t.s=this.s,t.clamp()},e.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var i=e%this.DB,a=this.DB-i,s=(1<>i;for(var r=n+1;r>i;i>0&&(t[this.t-n-1]|=(this.s&s)<>=this.DB;if(e.t>=this.DB;i+=this.s}else{for(i+=this.s;n>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[n++]=this.DV+i:i>0&&(t[n++]=i),t.t=n,t.clamp()},e.prototype.multiplyTo=function(t,n){var i=this.abs(),a=t.abs(),s=i.t;for(n.t=s+a.t;--s>=0;)n[s]=0;for(s=0;s=0;)e[n]=0;for(n=0;n=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},e.prototype.divRemTo=function(t,n,i){var a=t.abs();if(!(a.t<=0)){var s=this.abs();if(s.t0?(a.lShiftTo(c,r),s.lShiftTo(c,i)):(a.copyTo(r),s.copyTo(i));var u=r.t,d=r[u-1];if(0!=d){var h=d*(1<1?r[u-2]>>this.F2:0),p=this.FV/h,f=(1<=0&&(i[i.t++]=1,i.subTo(y,i)),e.ONE.dlShiftTo(u,y),y.subTo(r,r);r.t=0;){var w=i[--g]==d?this.DM:Math.floor(i[g]*p+(i[g-1]+m)*f);if((i[g]+=r.am(0,w,i,v,0,u))0&&i.rShiftTo(c,i),o<0&&e.ZERO.subTo(i,i)}}},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var i=B(),a=B(),s=n.convert(this),r=j(t)-1;for(s.copyTo(i);--r>=0;)if(n.sqrTo(i,a),(t&1<0)n.mulTo(a,s,i);else{var o=i;i=a,a=o}return n.revert(i)},e.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},e.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),i=F(n),a=B(),s=B(),r="";for(this.divRemTo(i,a,s);a.signum()>0;)r=(n+s.intValue()).toString(e).substr(1)+r,a.divRemTo(i,a,s);return s.intValue().toString(e)+r},e.prototype.fromRadix=function(t,n){this.fromInt(0),null==n&&(n=10);for(var i=this.chunkSize(n),a=Math.pow(n,i),s=!1,r=0,o=0,l=0;l=i&&(this.dMultiply(a),this.dAddOffset(o,0),r=0,o=0))}r>0&&(this.dMultiply(Math.pow(n,r)),this.dAddOffset(o,0)),s&&e.ZERO.subTo(this,this)},e.prototype.fromNumber=function(t,n,i){if("number"==typeof n)if(t<2)this.fromInt(1);else for(this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),s,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(e.ONE.shiftLeft(t-1),this);else{var a=[],r=7&t;a.length=1+(t>>3),n.nextBytes(a),r>0?a[0]&=(1<>=this.DB;if(e.t>=this.DB;i+=this.s}else{for(i+=this.s;n>=this.DB;i+=e.s}t.s=i<0?-1:0,i>0?t[n++]=i:i<-1&&(t[n++]=this.DV+i),t.t=n,t.clamp()},e.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},e.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},e.prototype.multiplyLowerTo=function(e,t,n){var i=Math.min(this.t+e.t,t);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(var a=n.t-this.t;i=0;)n[i]=0;for(i=Math.max(t-this.t,0);i0)if(0==t)n=this[0]%e;else for(var i=this.t-1;i>=0;--i)n=(t*n+this[i])%e;return n},e.prototype.millerRabin=function(t){var n=this.subtract(e.ONE),i=n.getLowestSetBit();if(i<=0)return!1;var a=n.shiftRight(i);(t=t+1>>1)>x.length&&(t=x.length);for(var s=B(),r=0;r0&&(n.rShiftTo(r,n),i.rShiftTo(r,i));var o=function(){(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),n.compareTo(i)>=0?(n.subTo(i,n),n.rShiftTo(1,n)):(i.subTo(n,i),i.rShiftTo(1,i)),n.signum()>0?setTimeout(o,0):(r>0&&i.lShiftTo(r,i),setTimeout((function(){t(i)}),0))};setTimeout(o,10)}},e.prototype.fromNumberAsync=function(t,n,i,a){if("number"==typeof n)if(t<2)this.fromInt(1);else{this.fromNumber(t,i),this.testBit(t-1)||this.bitwiseTo(e.ONE.shiftLeft(t-1),s,this),this.isEven()&&this.dAddOffset(1,0);var r=this,o=function(){r.dAddOffset(2,0),r.bitLength()>t&&r.subTo(e.ONE.shiftLeft(t-1),r),r.isProbablePrime(n)?setTimeout((function(){a()}),0):setTimeout(o,0)};setTimeout(o,0)}else{var l=[],c=7&t;l.length=1+(t>>3),n.nextBytes(l),c>0?l[0]&=(1<=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),V=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=B();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,i,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),I=function(){function e(e){this.m=e,this.r2=B(),this.q3=B(),T.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e)}return e.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=B();return e.copyTo(t),this.reduce(t),t},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function B(){return new T(null)}function A(e,t){return new T(e,t)}var M="undefined"!=typeof navigator;M&&"Microsoft Internet Explorer"==navigator.appName?(T.prototype.am=function(e,t,n,i,a,s){for(var r=32767&t,o=t>>15;--s>=0;){var l=32767&this[e],c=this[e++]>>15,u=o*l+c*r;a=((l=r*l+((32767&u)<<15)+n[i]+(1073741823&a))>>>30)+(u>>>15)+o*c+(a>>>30),n[i++]=1073741823&l}return a},_=30):M&&"Netscape"!=navigator.appName?(T.prototype.am=function(e,t,n,i,a,s){for(;--s>=0;){var r=t*this[e++]+n[i]+a;a=Math.floor(r/67108864),n[i++]=67108863&r}return a},_=26):(T.prototype.am=function(e,t,n,i,a,s){for(var r=16383&t,o=t>>14;--s>=0;){var l=16383&this[e],c=this[e++]>>14,u=o*l+c*r;a=((l=r*l+((16383&u)<<14)+n[i]+a)>>28)+(u>>14)+o*c,n[i++]=268435455&l}return a},_=28),T.prototype.DB=_,T.prototype.DM=(1<<_)-1,T.prototype.DV=1<<_,T.prototype.FV=Math.pow(2,52),T.prototype.F1=52-_,T.prototype.F2=2*_-52;var P,R,O=[];for(P="0".charCodeAt(0),R=0;R<=9;++R)O[P++]=R;for(P="a".charCodeAt(0),R=10;R<36;++R)O[P++]=R;for(P="A".charCodeAt(0),R=10;R<36;++R)O[P++]=R;function L(e,t){var n=O[e.charCodeAt(t)];return null==n?-1:n}function F(e){var t=B();return t.fromInt(e),t}function j(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}T.ZERO=F(0),T.ONE=F(1);var U,$,z=function(){function e(){this.i=0,this.j=0,this.S=[]}return e.prototype.init=function(e){var t,n,i;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,i=this.S[t],this.S[t]=this.S[n],this.S[n]=i;this.i=0,this.j=0},e.prototype.next=function(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]},e}(),H=null;function q(){if(null==U){for(U=new z;$<256;){var e=Math.floor(65536*Math.random());H[$++]=255&e}for(U.init(H),$=0;$0&&t.length>0?(this.n=A(e,16),this.e=parseInt(t,16)):console.error("Invalid RSA public key")},e.prototype.encrypt=function(e){var t=this.n.bitLength()+7>>3,n=function(e,t){if(t=0&&t>0;){var a=e.charCodeAt(i--);a<128?n[--t]=a:a>127&&a<2048?(n[--t]=63&a|128,n[--t]=a>>6|192):(n[--t]=63&a|128,n[--t]=a>>6&63|128,n[--t]=a>>12|224)}n[--t]=0;for(var s=new K,r=[];t>2;){for(r[0]=0;0==r[0];)s.nextBytes(r);n[--t]=r[0]}return n[--t]=2,n[--t]=0,new T(n)}(e,t);if(null==n)return null;var i=this.doPublic(n);if(null==i)return null;for(var a=i.toString(16),s=a.length,r=0;r<2*t-s;r++)a="0"+a;return a},e.prototype.setPrivate=function(e,t,n){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=A(e,16),this.e=parseInt(t,16),this.d=A(n,16)):console.error("Invalid RSA private key")},e.prototype.setPrivateEx=function(e,t,n,i,a,s,r,o){null!=e&&null!=t&&e.length>0&&t.length>0?(this.n=A(e,16),this.e=parseInt(t,16),this.d=A(n,16),this.p=A(i,16),this.q=A(a,16),this.dmp1=A(s,16),this.dmq1=A(r,16),this.coeff=A(o,16)):console.error("Invalid RSA private key")},e.prototype.generate=function(e,t){var n=new K,i=e>>1;this.e=parseInt(t,16);for(var a=new T(t,16);;){for(;this.p=new T(e-i,1,n),0!=this.p.subtract(T.ONE).gcd(a).compareTo(T.ONE)||!this.p.isProbablePrime(10););for(;this.q=new T(i,1,n),0!=this.q.subtract(T.ONE).gcd(a).compareTo(T.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var r=this.p.subtract(T.ONE),o=this.q.subtract(T.ONE),l=r.multiply(o);if(0==l.gcd(a).compareTo(T.ONE)){this.n=this.p.multiply(this.q),this.d=a.modInverse(l),this.dmp1=this.d.mod(r),this.dmq1=this.d.mod(o),this.coeff=this.q.modInverse(this.p);break}}},e.prototype.decrypt=function(e){var t=A(e,16),n=this.doPrivate(t);return null==n?null:function(e,t){for(var n=e.toByteArray(),i=0;i=n.length)return null;for(var a="";++i191&&s<224?(a+=String.fromCharCode((31&s)<<6|63&n[i+1]),++i):(a+=String.fromCharCode((15&s)<<12|(63&n[i+1])<<6|63&n[i+2]),i+=2)}return a}(n,this.n.bitLength()+7>>3)},e.prototype.generateAsync=function(e,t,n){var i=new K,a=e>>1;this.e=parseInt(t,16);var s=new T(t,16),r=this,o=function(){var t=function(){if(r.p.compareTo(r.q)<=0){var e=r.p;r.p=r.q,r.q=e}var t=r.p.subtract(T.ONE),i=r.q.subtract(T.ONE),a=t.multiply(i);0==a.gcd(s).compareTo(T.ONE)?(r.n=r.p.multiply(r.q),r.d=s.modInverse(a),r.dmp1=r.d.mod(t),r.dmq1=r.d.mod(i),r.coeff=r.q.modInverse(r.p),setTimeout((function(){n()}),0)):setTimeout(o,0)},l=function(){r.q=B(),r.q.fromNumberAsync(a,1,i,(function(){r.q.subtract(T.ONE).gcda(s,(function(e){0==e.compareTo(T.ONE)&&r.q.isProbablePrime(10)?setTimeout(t,0):setTimeout(l,0)}))}))},c=function(){r.p=B(),r.p.fromNumberAsync(e-a,1,i,(function(){r.p.subtract(T.ONE).gcda(s,(function(e){0==e.compareTo(T.ONE)&&r.p.isProbablePrime(10)?setTimeout(l,0):setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(o,0)},e.prototype.sign=function(e,t,n){var i=function(e){return W[e]||""}(n),a=function(e,t){if(t>3)-11;return this.setSplitChn(e,i).forEach((function(e){n+=t.encrypt(e)})),n},e.prototype.decryptLong=function(e){var t="",n=this.n.bitLength()+7>>3,i=2*n;if(e.length>i){for(var a=e.match(new RegExp(".{1,"+i+"}","g"))||[],s=[],r=0;r=a.length)return null;n=n.concat(a.slice(s+1))}for(var r=n,o=-1,l="";++o191&&c<224?(l+=String.fromCharCode((31&c)<<6|63&r[o+1]),++o):(l+=String.fromCharCode((15&c)<<12|(63&r[o+1])<<6|63&r[o+2]),o+=2)}return l}(s,n)}else t=this.decrypt(e);return t},e.prototype.setSplitChn=function(e,t,n){void 0===n&&(n=[]);for(var i=e.split(""),a=0,s=0;st){var o=e.substring(0,s);return n.push(o),this.setSplitChn(e.substring(s),t,n)}}return n.push(e),n},e}(),W={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"},Y={};Y.lang={extend:function(e,t,n){if(!t||!e)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var i=function(){};if(i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t),n){var a;for(a in n)e.prototype[a]=n[a];var s=function(){},r=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(s=function(e,t){for(a=0;a15)throw"ASN.1 length too long to represent by 8x: n = "+e.toString(16);return(128+n).toString(16)+t},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},G.asn1.DERAbstractString=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(this.s)},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&("string"==typeof e?this.setString(e):void 0!==e.str?this.setString(e.str):void 0!==e.hex&&this.setStringHex(e.hex))},Y.lang.extend(G.asn1.DERAbstractString,G.asn1.ASN1Object),G.asn1.DERAbstractTime=function(e){G.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(e){return utc=e.getTime()+6e4*e.getTimezoneOffset(),new Date(utc)},this.formatDate=function(e,t,n){var i=this.zeroPadding,a=this.localDateToUTC(e),s=String(a.getFullYear());"utc"==t&&(s=s.substr(2,2));var r=s+i(String(a.getMonth()+1),2)+i(String(a.getDate()),2)+i(String(a.getHours()),2)+i(String(a.getMinutes()),2)+i(String(a.getSeconds()),2);if(!0===n){var o=a.getMilliseconds();if(0!=o){var l=i(String(o),3);r=r+"."+(l=l.replace(/[0]+$/,""))}}return r+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=stohex(e)},this.setByDateValue=function(e,t,n,i,a,s){var r=new Date(Date.UTC(e,t-1,n,i,a,s,0));this.setByDate(r)},this.getFreshValueHex=function(){return this.hV}},Y.lang.extend(G.asn1.DERAbstractTime,G.asn1.ASN1Object),G.asn1.DERAbstractStructured=function(e){G.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,void 0!==e&&void 0!==e.array&&(this.asn1Array=e.array)},Y.lang.extend(G.asn1.DERAbstractStructured,G.asn1.ASN1Object),G.asn1.DERBoolean=function(){G.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Y.lang.extend(G.asn1.DERBoolean,G.asn1.ASN1Object),G.asn1.DERInteger=function(e){G.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=G.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e)},this.setByInteger=function(e){var t=new T(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},void 0!==e&&(void 0!==e.bigint?this.setByBigInteger(e.bigint):void 0!==e.int?this.setByInteger(e.int):"number"==typeof e?this.setByInteger(e):void 0!==e.hex&&this.setValueHex(e.hex))},Y.lang.extend(G.asn1.DERInteger,G.asn1.ASN1Object),G.asn1.DERBitString=function(e){if(void 0!==e&&void 0!==e.obj){var t=G.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.getEncodedHex()}G.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7>2),s=3&r,a=1):1==a?(n+=i(s<<2|r>>4),s=15&r,a=2):2==a?(n+=i(s),n+=i(r>>2),s=3&r,a=3):(n+=i(s<<2|r>>4),n+=i(15&r),a=0))}return 1==a&&(n+=i(s<<2)),n}(t),n)}catch(a){return!1}},e.prototype.getKey=function(e){if(!this.key){if(this.key=new Q,e&&"[object Function]"==={}.toString.call(e))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,e);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=X,e}();const te=ee},2480:()=>{}},t={};function n(i){var a=t[i];if(void 0!==a)return a.exports;var s=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}return n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n(9021)})(),e.exports=n()}(Is);var Bs=Vs(Is.exports);uni.invokePushCallback({type:"enabled"});"undefined"!=typeof plus&&plus.push&&plus.globalEvent.addEventListener("newPath",(({path:e})=>{if(!e)return;const t=getCurrentPages(),n=t[t.length-1];n&&n.$page&&n.$page.fullPath===e||uni.navigateTo({url:e,fail(t){t.errMsg.indexOf("tabbar")>-1?uni.switchTab({url:e,fail(e){console.error(e.errMsg)}}):console.error(t.errMsg)}})})),"function"==typeof uni.onAppShow&&uni.onAppShow((()=>{Bs.enableSocket(!0)})),Bs.init({appid:"__UNI__9F097F0",onError:e=>{console.error(e.error);const t={type:"clientId",cid:"",errMsg:e.error};uni.invokePushCallback(t)},onClientId:e=>{const t={type:"clientId",cid:e.cid};uni.invokePushCallback(t)},onlineState:e=>{const t={type:"lineState",online:e.online};uni.invokePushCallback(t)},onPushMsg:e=>{const t={type:"pushMsg",message:e.message};uni.invokePushCallback(t)}}),uni.onPushMessage((e=>{"receive"===e.type&&e.data&&e.data.force_notification&&(uni.createPushMessage(e.data),e.stopped=!0)}));const As="https://36.112.48.190/jeecg-boot/sys/common/static/",Ms=z("updateApp",(()=>{const t=e.reactive({force:!1,hasNew:!1,content:"",url:"",wgtUrl:""}),n=uni.getSystemInfoSync();return{checkAppUpdate:function(e=!1){try{u({url:"/sys/common/upDateApp",method:"get",data:i}).then((async e=>{let{result:i}=e;i.apkUrl=As+i.apkUrl,i.wgtUrl=As+i.wgtUrl,t.wgtUrl=i.wgtUrl,"android"===n.osName?(t.apkUrl=i.apkUrl,t.hasNew=await((e,t=!1)=>new Promise((n=>{const i=e=>e.replace(/\./g,"");if(t)plus.runtime.getProperty(plus.runtime.appid,(t=>{const a=t.version;n(+i(e)>+i(a))}));else{const t=plus.runtime.version;n(+i(e)>+i(t))}})))(i.versionCode,"wgt"==i.update)):t.url="itms-apps://itunes.apple.com/cn/app/id123456?mt=8",t.hasNew&&uni.showModal({title:"更新",content:"发现新版本,请更新",success(e){var t,n;e.confirm?(t=i.update,n=i,"wgt"!=t?plus.runtime.openURL(n.apkUrl):Ve(n.wgtUrl)):plus.runtime.quit()}})}))}catch(a){t.hasNew=!1}var i},...e.toRefs(t),systemInfo:n}})),Ps={__name:"App",setup(e){s((()=>{Ms().checkAppUpdate(),Be(),uni.onPushMessage((e=>{t("log","at App.vue:29","收到推送消息:",e)}))})),a((()=>{n(),uni.getPushClientId({success:e=>{t("log","at App.vue:39","客户端推送标识:",e.cid)},fail(e){t("log","at App.vue:42",e)}})}));const n=()=>{var e;(e={id:"1827997127165677570"},u({url:"/CxcJurisdiction/cxcJurisdiction/queryById",method:"get",data:e})).then((e=>{if(e.success){const t=H();uni.setStorageSync("isgray",e.result.value),t.setIsgray(e.result.value)}}))};return()=>{}}},Rs=q({__name:"index",props:{dataId:{type:String,default:""}},setup(t){const i=t,a=e.ref([]),s={width:64,height:64,border:{color:"#dce7e1",width:2,style:"dashed",radius:"2px"}},r=e.ref({}),o=()=>{var e;(e={id:i.dataId},u({url:"/CxcQxj/cxcQxj/queryById",method:"get",data:e})).then((e=>{e.success&&(r.value=e.result.records[0],a.value=r.value.path.split(",").map((e=>{const t=e.split("/").pop(),n=t.split(".").pop();return{name:t,extname:n,url:Re(e)}})))}))},l=e.ref([]),c=e=>{_({processInstanceId:e}).then((e=>{e.success&&(l.value=e.result.records)}))};return e.onMounted((()=>{o(),k({flowCode:"dev_cxc_qxj",dataId:i.dataId}).then((e=>{e.success&&c(e.result.processInstanceId)}))})),(t,i)=>{const o=n(e.resolveDynamicComponent("uni-file-picker"),Ya);return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"info_box"},[e.createElementVNode("view",{class:"title"}," 申请信息 "),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假职工: "),e.createElementVNode("text",null,e.toDisplayString(r.value.username_dictText),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 所属单位: "),e.createElementVNode("text",null,e.toDisplayString(r.value.sysOrgCode_dictText),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 联系方式: "),e.createElementVNode("text",null,e.toDisplayString(r.value.phone),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假类型: "),e.createElementVNode("text",null,e.toDisplayString(r.value.type),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假开始时间: "),e.createElementVNode("text",null,e.toDisplayString(r.value.begintime),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假结束时间: "),e.createElementVNode("text",null,e.toDisplayString(r.value.endtime),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假天数: "),e.createElementVNode("text",null,e.toDisplayString(r.value.days),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 审批人: "),e.createElementVNode("text",null,e.toDisplayString(r.value.examineleader_dictText),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假地点: "),e.createElementVNode("text",null,e.toDisplayString(r.value.address),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 请假原因: "),e.createElementVNode("text",null,e.toDisplayString(r.value.reason),1)]),e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",null," 附件: "),e.createVNode(o,{modelValue:a.value,"onUpdate:modelValue":i[0]||(i[0]=e=>a.value=e),"image-styles":s},null,8,["modelValue"])])])]),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"progress"},[e.createElementVNode("view",{class:"title"}," 审批流程 "),e.createElementVNode("view",{class:"progress_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"box",key:n},[e.createElementVNode("view",{class:"topic f-row aic"},[e.createElementVNode("view",null,e.toDisplayString(t.name),1),e.createElementVNode("view",{class:e.normalizeClass(["status",{complete:"已完成"==t.deleteReason},{refuse:"已拒绝"==t.deleteReason}])},e.toDisplayString(t.deleteReason),3)]),e.createElementVNode("view",{class:"name_time"},e.toDisplayString(t.assigneeName)+" | "+e.toDisplayString(t.endTime),1)])))),128))])])])],64)}}},[["__scopeId","data-v-4dc4d50b"]]),Os=q({__name:"processCom",props:{info:{type:Array,default:()=>[]}},setup:t=>(n,i)=>(e.openBlock(),e.createElementBlock("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"info_box"},[e.createElementVNode("view",{class:"title"}," 申请信息 "),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.info,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"",key:n},[e.createElementVNode("view",{class:"info f-row aic jcb"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.title)+": ",1),"事项内容"==t.title?(e.openBlock(),e.createElementBlock("rich-text",{key:0,nodes:t.data},null,8,["nodes"])):(e.openBlock(),e.createElementBlock("text",{key:1},e.toDisplayString(t.data),1))])])))),128))])]))},[["__scopeId","data-v-8f3f5a9f"]]),Ls=q({__name:"supervise",props:{dataId:{type:String,default:""}},setup(n){const i=n,a=[{title:"基本信息",id:1},{title:"事项详情",id:2},{title:"添加下级",id:3},{title:"节点顺序",id:4},{title:"运行计划",id:5}],s=e.ref(1),r=e.ref([]),o=()=>{var e;(e={id:i.dataId},u({url:"/cxcdbxt/dbSxxq/queryById",method:"get",data:e})).then((e=>{if(e.success&&(1==s.value&&l(e.result.jbxxid),2==s.value)){let t=e.result;r.value=[{title:"承办部门",data:t.zbdw},{title:"协办部门",data:t.xbdw},{title:"部门领导",data:t.fgld},{title:"办理人员",data:t.dbry},{title:"要求反馈时间",data:t.yqfksj},{title:"节点名称",data:""},{title:"预计完成时间",data:""},{title:"实际反馈时间",data:t.sjfksj},{title:"自评价",data:t.zpj},{title:"发起时间",data:t.fqsj},{title:"序号",data:""},{title:"概述",data:""},{title:"时间进度",data:""},{title:"事项内容",data:t.sxnr}]}}))},l=e=>{var t;(t={id:e},u({url:"/cxcdbxt/dbJbxx/queryById",method:"get",data:t})).then((e=>{if(e.success){let t=e.result;r.value=[{title:"督办分类",data:t.fl},{title:"协办部门",data:t.xbbm},{title:"督办部门",data:t.cbbm},{title:"督办人员",data:t.dbry},{title:"督办部门负责人",data:t.zrr},{title:"是否涉密",data:t.sfsm},{title:"计划完成时间",data:t.jhwcsj},{title:"实际完成时间",data:t.wcsj},{title:"完成状态",data:t.wczt},{title:"备注",data:t.bz},{title:"督办事项",data:t.dbsx},{title:"时间进度",data:t.sjjd}]}}))},c=e.ref([]),d=e=>{t("log","at bpm/supervise.vue:199","000",e),_({processInstanceId:e}).then((e=>{t("log","at bpm/supervise.vue:203","0088800",e),e.success&&(c.value=e.result.records)}))};return e.onMounted((()=>{o(),k({flowCode:"dev_db_sxxq_001",dataId:i.dataId}).then((e=>{e.success&&d(e.result.processInstanceId)}))})),(t,n)=>(e.openBlock(),e.createElementBlock("view",{class:""},[e.createElementVNode("view",{class:"tab f-row aic"},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,((t,n)=>e.createElementVNode("view",{class:e.normalizeClass({active:s.value==t.id}),key:n,onClick:e=>{return n=t.id,s.value=n,void o();var n}},e.toDisplayString(t.title),11,["onClick"]))),64))]),e.createVNode(Os,{info:r.value},null,8,["info"]),e.createElementVNode("view",{class:"f-col aic"},[e.createElementVNode("view",{class:"progress"},[e.createElementVNode("view",{class:"title"}," 审批流程 "),e.createElementVNode("view",{class:"progress_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,((t,n)=>(e.openBlock(),e.createElementBlock("view",{class:"box",key:n},[e.createElementVNode("view",{class:"topic f-row aic"},[e.createElementVNode("view",{class:""},e.toDisplayString(t.name),1),e.createElementVNode("view",{class:e.normalizeClass(["status",{complete:"已完成"==t.deleteReason},{refuse:"已拒绝"==t.deleteReason}])},e.toDisplayString(t.deleteReason),3)]),e.createElementVNode("view",{class:"name_time"},e.toDisplayString(t.assigneeName)+" | "+e.toDisplayString(t.endTime),1)])))),128))])])])]))}},[["__scopeId","data-v-c842b888"]]),Fs=function(){const t=e.effectScope(!0),n=t.run((()=>e.ref({})));let i=[],a=[];const s=e.markRaw({install(e){V(s),s._a=e,e.provide(I,s),e.config.globalProperties.$pinia=s,a.forEach((e=>i.push(e))),a=[]},use(e){return this._a?i.push(e):a.push(e),this},_p:i,_a:null,_e:t,_s:new Map,state:n});return s}();const{app:js,Vuex:Us,Pinia:$s}=function(){const t=e.createVueApp(Ps);return t.use(Fs),t.component("leaveApplication",Rs),t.component("supervise",Ls),t.config.globalProperties.$toast=Te,{app:t}}();uni.Vuex=Us,uni.Pinia=$s,js.provide("__globalStyles",__uniConfig.styles),js._component.mpType="app",js._component.render=()=>{},js.mount("#app")}(Vue); diff --git a/unpackage/dist/build/app-plus/app.css b/unpackage/dist/build/app-plus/app.css new file mode 100644 index 0000000..6d7233b --- /dev/null +++ b/unpackage/dist/build/app-plus/app.css @@ -0,0 +1,3 @@ +*{margin:0;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent}html,body{-webkit-user-select:none;user-select:none;width:100%}html{height:100%;height:100vh;width:100%;width:100vw}body{overflow-x:hidden;background-color:#fff;height:100%}#app{height:100%}input[type=search]::-webkit-search-cancel-button{display:none}.uni-loading,uni-button[loading]:before{background:transparent url(data:image/svg+xml;base64,\ PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=) no-repeat}.uni-loading{width:20px;height:20px;display:inline-block;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}@keyframes uni-loading{0%{transform:rotate3d(0,0,1,0)}to{transform:rotate3d(0,0,1,360deg)}}@media (prefers-color-scheme: dark){html{--UI-BG-CLOLOR-ACTIVE: #373737;--UI-BORDER-CLOLOR-1: #373737;--UI-BG: #000;--UI-BG-0: #191919;--UI-BG-1: #1f1f1f;--UI-BG-2: #232323;--UI-BG-3: #2f2f2f;--UI-BG-4: #606060;--UI-BG-5: #2c2c2c;--UI-FG: #fff;--UI-FG-0: hsla(0, 0%, 100%, .8);--UI-FG-HALF: hsla(0, 0%, 100%, .6);--UI-FG-1: hsla(0, 0%, 100%, .5);--UI-FG-2: hsla(0, 0%, 100%, .3);--UI-FG-3: hsla(0, 0%, 100%, .05)}body{background-color:var(--UI-BG-0);color:var(--UI-FG-0)}}[nvue] uni-view,[nvue] uni-label,[nvue] uni-swiper-item,[nvue] uni-scroll-view{display:flex;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}[nvue] uni-button{margin:0}[nvue-dir-row] uni-view,[nvue-dir-row] uni-label,[nvue-dir-row] uni-swiper-item{flex-direction:row}[nvue-dir-column] uni-view,[nvue-dir-column] uni-label,[nvue-dir-column] uni-swiper-item{flex-direction:column}[nvue-dir-row-reverse] uni-view,[nvue-dir-row-reverse] uni-label,[nvue-dir-row-reverse] uni-swiper-item{flex-direction:row-reverse}[nvue-dir-column-reverse] uni-view,[nvue-dir-column-reverse] uni-label,[nvue-dir-column-reverse] uni-swiper-item{flex-direction:column-reverse}[nvue] uni-view,[nvue] uni-image,[nvue] uni-input,[nvue] uni-scroll-view,[nvue] uni-swiper,[nvue] uni-swiper-item,[nvue] uni-text,[nvue] uni-textarea,[nvue] uni-video{position:relative;border:0px solid #000000;box-sizing:border-box}[nvue] uni-swiper-item{position:absolute}@keyframes once-show{0%{top:0}}uni-resize-sensor,uni-resize-sensor>div{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden}uni-resize-sensor{display:block;z-index:-1;visibility:hidden;animation:once-show 1ms}uni-resize-sensor>div>div{position:absolute;left:0;top:0}uni-resize-sensor>div:first-child>div{width:100000px;height:100000px}uni-resize-sensor>div:last-child>div{width:200%;height:200%}uni-text[selectable]{cursor:auto;-webkit-user-select:text;user-select:text}uni-text{white-space:pre-line}uni-view{display:block}uni-view[hidden]{display:none}uni-button{position:relative;display:block;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;box-sizing:border-box;font-size:18px;text-align:center;text-decoration:none;line-height:2.55555556;border-radius:5px;-webkit-tap-highlight-color:transparent;overflow:hidden;color:#000;background-color:#f8f8f8;cursor:pointer}uni-button[hidden]{display:none!important}uni-button:after{content:" ";width:200%;height:200%;position:absolute;top:0;left:0;border:1px solid rgba(0,0,0,.2);transform:scale(.5);transform-origin:0 0;box-sizing:border-box;border-radius:10px}uni-button[native]{padding-left:0;padding-right:0}uni-button[native] .uni-button-cover-view-wrapper{border:inherit;border-color:inherit;border-radius:inherit;background-color:inherit}uni-button[native] .uni-button-cover-view-inner{padding-left:14px;padding-right:14px}uni-button uni-cover-view{line-height:inherit;white-space:inherit}uni-button[type=default]{color:#000;background-color:#f8f8f8}uni-button[type=primary]{color:#fff;background-color:#007aff}uni-button[type=warn]{color:#fff;background-color:#e64340}uni-button[disabled]{color:rgba(255,255,255,.6);cursor:not-allowed}uni-button[disabled][type=default],uni-button[disabled]:not([type]){color:rgba(0,0,0,.3);background-color:#f7f7f7}uni-button[disabled][type=primary]{background-color:rgba(0,122,255,.6)}uni-button[disabled][type=warn]{background-color:#ec8b89}uni-button[type=primary][plain]{color:#007aff;border:1px solid #007aff;background-color:transparent}uni-button[type=primary][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=primary][plain]:after{border-width:0}uni-button[type=default][plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[type=default][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=default][plain]:after{border-width:0}uni-button[plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[plain]:after{border-width:0}uni-button[plain][native] .uni-button-cover-view-inner{padding:0}uni-button[type=warn][plain]{color:#e64340;border:1px solid #e64340;background-color:transparent}uni-button[type=warn][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=warn][plain]:after{border-width:0}uni-button[size=mini]{display:inline-block;line-height:2.3;font-size:13px;padding:0 1.34em}uni-button[size=mini][native]{padding:0}uni-button[size=mini][native] .uni-button-cover-view-inner{padding:0 1.34em}uni-button[loading]:not([disabled]){cursor:progress}uni-button[loading]:before{content:" ";display:inline-block;width:18px;height:18px;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}uni-button[loading][type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}uni-button[loading][type=primary][plain]{color:#007aff;background-color:transparent}uni-button[loading][type=default]{color:rgba(0,0,0,.6);background-color:#dedede}uni-button[loading][type=default][plain]{color:#353535;background-color:transparent}uni-button[loading][type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}uni-button[loading][type=warn][plain]{color:#e64340;background-color:transparent}uni-button[loading][native]:before{content:none}.button-hover{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}.button-hover[type=primary][plain]{color:rgba(0,122,255,.6);border-color:rgba(0,122,255,.6);background-color:transparent}.button-hover[type=default]{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[type=default][plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}.button-hover[type=warn][plain]{color:rgba(230,67,64,.6);border-color:rgba(230,67,64,.6);background-color:transparent}@media (prefers-color-scheme: dark){uni-button,uni-button[type=default]{color:#d6d6d6;background-color:#343434}.button-hover,.button-hover[type=default]{color:#d6d6d6;background-color:rgba(255,255,255,.1)}uni-button[disabled][type=default],uni-button[disabled]:not([type]){color:rgba(255,255,255,.2);background-color:rgba(255,255,255,.08)}uni-button[type=primary][plain][disabled]{color:rgba(255,255,255,.2);border-color:rgba(255,255,255,.2)}uni-button[type=default][plain]{color:#d6d6d6;border:1px solid #d6d6d6}.button-hover[type=default][plain]{color:rgba(150,150,150,.6);border-color:rgba(150,150,150,.6);background-color:rgba(50,50,50,.2)}uni-button[type=default][plain][disabled]{border-color:rgba(255,255,255,.2);color:rgba(255,255,255,.2)}}uni-canvas{width:300px;height:150px;display:block;position:relative}uni-canvas>.uni-canvas-canvas{position:absolute;top:0;left:0;width:100%;height:100%}uni-checkbox{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-checkbox[hidden]{display:none}uni-checkbox[disabled]{cursor:not-allowed}.uni-checkbox-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-checkbox-input{margin-right:5px;-webkit-appearance:none;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative}.uni-checkbox-input svg{color:#007aff;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}@media (hover: hover){uni-checkbox:not([disabled]) .uni-checkbox-input:hover{border-color:var(--HOVER-BD-COLOR, #007aff)!important}}uni-checkbox-group{display:block}uni-checkbox-group[hidden]{display:none}uni-cover-image{display:block;line-height:1.2;overflow:hidden;height:100%;width:100%;pointer-events:auto}uni-cover-image[hidden]{display:none}uni-cover-image .uni-cover-image{width:100%;height:100%}uni-cover-view{display:block;line-height:1.2;overflow:hidden;white-space:nowrap;pointer-events:auto}uni-cover-view[hidden]{display:none}uni-cover-view .uni-cover-view{width:100%;height:100%;visibility:hidden;text-overflow:inherit;white-space:inherit;align-items:inherit;justify-content:inherit;flex-direction:inherit;flex-wrap:inherit;display:inherit;overflow:inherit}.ql-container{display:block;position:relative;box-sizing:border-box;-webkit-user-select:text;user-select:text;outline:none;overflow:hidden;width:100%;height:200px;min-height:200px}.ql-container[hidden]{display:none}.ql-container .ql-editor{position:relative;font-size:inherit;line-height:inherit;font-family:inherit;min-height:inherit;width:100%;height:100%;padding:0;overflow-x:hidden;overflow-y:auto;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-overflow-scrolling:touch}.ql-container .ql-editor::-webkit-scrollbar{width:0!important}.ql-container .ql-editor.scroll-disabled{overflow:hidden}.ql-container .ql-image-overlay{display:flex;position:absolute;box-sizing:border-box;border:1px dashed #ccc;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none}.ql-container .ql-image-overlay .ql-image-size{position:absolute;padding:4px 8px;text-align:center;background-color:#fff;color:#888;border:1px solid #ccc;box-sizing:border-box;opacity:.8;right:4px;top:4px;font-size:12px;display:inline-block;width:auto}.ql-container .ql-image-overlay .ql-image-toolbar{position:relative;text-align:center;box-sizing:border-box;background:#000;border-radius:5px;color:#fff;font-size:0;min-height:24px;z-index:100}.ql-container .ql-image-overlay .ql-image-toolbar span{display:inline-block;cursor:pointer;padding:5px;font-size:12px;border-right:1px solid #fff}.ql-container .ql-image-overlay .ql-image-toolbar span:last-child{border-right:0}.ql-container .ql-image-overlay .ql-image-toolbar span.triangle-up{padding:0;position:absolute;top:-12px;left:50%;transform:translate(-50%);width:0;height:0;border-width:6px;border-style:solid;border-color:transparent transparent black transparent}.ql-container .ql-image-overlay .ql-image-handle{position:absolute;height:12px;width:12px;border-radius:50%;border:1px solid #ccc;box-sizing:border-box;background:#fff}.ql-container img{display:inline-block;max-width:100%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;height:100%;outline:none;overflow-y:auto;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"•"}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"☑"}.ql-editor ul[data-checked=false]>li:before{content:"☐"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:2em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:2em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:2em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:2em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:4em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:4em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:4em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:6em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:8em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:8em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:8em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:10em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:10em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:10em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:12em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:14em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:14em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:14em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:16em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:16em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:16em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:18em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;pointer-events:none;position:absolute}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}uni-icon{display:inline-block;font-size:0;box-sizing:border-box}uni-icon[hidden]{display:none}uni-image{width:320px;height:240px;display:inline-block;overflow:hidden;position:relative}uni-image[hidden]{display:none}uni-image>div{width:100%;height:100%;background-repeat:no-repeat}uni-image>img{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;display:block;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}uni-image>.uni-image-will-change{will-change:transform}uni-input{display:block;font-size:16px;line-height:1.4em;height:1.4em;min-height:1.4em;overflow:hidden}uni-input[hidden]{display:none}.uni-input-wrapper,.uni-input-placeholder,.uni-input-form,.uni-input-input{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-input-wrapper,.uni-input-form{display:flex;position:relative;width:100%;height:100%;flex-direction:column;justify-content:center}.uni-input-placeholder,.uni-input-input{width:100%}.uni-input-placeholder{position:absolute;top:auto!important;left:0;color:gray;overflow:hidden;text-overflow:clip;white-space:pre;word-break:keep-all;pointer-events:none;line-height:inherit}.uni-input-input{position:relative;display:block;height:100%;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-input-input[type=search]::-webkit-search-cancel-button,.uni-input-input[type=search]::-webkit-search-decoration{display:none}.uni-input-input::-webkit-outer-spin-button,.uni-input-input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}.uni-input-input[type=number]{-moz-appearance:textfield}.uni-input-input:disabled{-webkit-text-fill-color:currentcolor}.uni-label-pointer{cursor:pointer}uni-live-pusher{width:320px;height:240px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-live-pusher[hidden]{display:none}.uni-live-pusher-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-live-pusher-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-map{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-map[hidden]{display:none}.uni-map-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:transparent}.uni-map-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-movable-area{display:block;position:relative;width:10px;height:10px}uni-movable-area[hidden]{display:none}uni-movable-view{display:inline-block;width:10px;height:10px;top:0;left:0;position:absolute;cursor:grab}uni-movable-view[hidden]{display:none}uni-navigator{height:auto;width:auto;display:block;cursor:pointer}uni-navigator[hidden]{display:none}.navigator-hover{background-color:rgba(0,0,0,.1);opacity:.7}.navigator-wrap,.navigator-wrap:link,.navigator-wrap:visited,.navigator-wrap:hover,.navigator-wrap:active{text-decoration:none;color:inherit;cursor:pointer}uni-picker-view{display:block}.uni-picker-view-wrapper{display:flex;position:relative;overflow:hidden;height:100%}uni-picker-view[hidden]{display:none}uni-picker-view-column{flex:1;position:relative;height:100%;overflow:hidden}uni-picker-view-column[hidden]{display:none}.uni-picker-view-group{height:100%;overflow:hidden}.uni-picker-view-mask{transform:translateZ(0)}.uni-picker-view-indicator,.uni-picker-view-mask{position:absolute;left:0;width:100%;z-index:3;pointer-events:none}.uni-picker-view-mask{top:0;height:100%;margin:0 auto;background-image:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.6)),linear-gradient(0deg,rgba(255,255,255,.95),rgba(255,255,255,.6));background-position:top,bottom;background-size:100% 102px;background-repeat:no-repeat;transform:translateZ(0)}.uni-picker-view-indicator{height:34px;top:50%;transform:translateY(-50%)}.uni-picker-view-content{position:absolute;top:0;left:0;width:100%;will-change:transform;padding:102px 0;cursor:pointer}.uni-picker-view-content>*{height:34px;overflow:hidden}.uni-picker-view-indicator:before{top:0;border-top:1px solid #e5e5e5;transform-origin:0 0;transform:scaleY(.5)}.uni-picker-view-indicator:after{bottom:0;border-bottom:1px solid #e5e5e5;transform-origin:0 100%;transform:scaleY(.5)}.uni-picker-view-indicator:after,.uni-picker-view-indicator:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#e5e5e5}@media (prefers-color-scheme: dark){.uni-picker-view-indicator:before{border-top-color:var(--UI-FG-3)}.uni-picker-view-indicator:after{border-bottom-color:var(--UI-FG-3)}.uni-picker-view-mask{background-image:linear-gradient(180deg,rgba(35,35,35,.95),rgba(35,35,35,.6)),linear-gradient(0deg,rgba(35,35,35,.95),rgba(35,35,35,.6))}}uni-progress{display:flex;align-items:center}uni-progress[hidden]{display:none}.uni-progress-bar{flex:1}.uni-progress-inner-bar{width:0;height:100%}.uni-progress-info{margin-top:0;margin-bottom:0;min-width:2em;margin-left:15px;font-size:16px}uni-radio{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-radio[hidden]{display:none}uni-radio[disabled]{cursor:not-allowed}.uni-radio-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-radio-input{-webkit-appearance:none;appearance:none;margin-right:5px;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:50%;width:22px;height:22px;position:relative}@media (hover: hover){uni-radio:not([disabled]) .uni-radio-input:hover{border-color:var(--HOVER-BD-COLOR, #007aff)!important}}.uni-radio-input svg{color:#fff;font-size:18px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-radio-input.uni-radio-input-disabled{background-color:#e1e1e1;border-color:#d1d1d1}.uni-radio-input.uni-radio-input-disabled svg{color:#adadad}uni-radio-group{display:block}uni-radio-group[hidden]{display:none}uni-scroll-view{display:block;width:100%}uni-scroll-view[hidden]{display:none}.uni-scroll-view{position:relative;-webkit-overflow-scrolling:touch;width:100%;height:100%;max-height:inherit}.uni-scroll-view-scrollbar-hidden::-webkit-scrollbar{display:none}.uni-scroll-view-scrollbar-hidden{-moz-scrollbars:none;scrollbar-width:none}.uni-scroll-view-content{width:100%;height:100%}.uni-scroll-view-refresher{position:relative;overflow:hidden;flex-shrink:0}.uni-scroll-view-refresher-container{position:absolute;width:100%;bottom:0;display:flex;flex-direction:column-reverse}.uni-scroll-view-refresh{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:row;justify-content:center;align-items:center}.uni-scroll-view-refresh-inner{display:flex;align-items:center;justify-content:center;line-height:0;width:40px;height:40px;border-radius:50%;background-color:#fff;box-shadow:0 1px 6px rgba(0,0,0,.118),0 1px 4px rgba(0,0,0,.118)}.uni-scroll-view-refresh__spinner{transform-origin:center center;animation:uni-scroll-view-refresh-rotate 2s linear infinite}.uni-scroll-view-refresh__spinner>circle{stroke:currentColor;stroke-linecap:round;animation:uni-scroll-view-refresh-dash 2s linear infinite}@keyframes uni-scroll-view-refresh-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes uni-scroll-view-refresh-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}uni-slider{margin:10px 18px;padding:0;display:block}uni-slider[hidden]{display:none}uni-slider .uni-slider-wrapper{display:flex;align-items:center;min-height:16px}uni-slider .uni-slider-tap-area{flex:1;padding:8px 0}uni-slider .uni-slider-handle-wrapper{position:relative;height:2px;border-radius:5px;background-color:#e9e9e9;cursor:pointer;transition:background-color .3s ease;-webkit-tap-highlight-color:transparent}uni-slider .uni-slider-track{height:100%;border-radius:6px;background-color:#007aff;transition:background-color .3s ease}uni-slider .uni-slider-handle,uni-slider .uni-slider-thumb{position:absolute;left:50%;top:50%;cursor:pointer;border-radius:50%;transition:border-color .3s ease}uni-slider .uni-slider-handle{width:28px;height:28px;margin-top:-14px;margin-left:-14px;background-color:transparent;z-index:3;cursor:grab}uni-slider .uni-slider-thumb{z-index:2;box-shadow:0 0 4px rgba(0,0,0,.2)}uni-slider .uni-slider-step{position:absolute;width:100%;height:2px;background:transparent;z-index:1}uni-slider .uni-slider-value{width:3ch;color:#888;font-size:14px;margin-left:1em}uni-slider .uni-slider-disabled .uni-slider-track{background-color:#ccc}uni-slider .uni-slider-disabled .uni-slider-thumb{background-color:#fff;border-color:#ccc}uni-swiper{display:block;height:150px}uni-swiper[hidden]{display:none}.uni-swiper-wrapper{overflow:hidden;position:relative;width:100%;height:100%;transform:translateZ(0)}.uni-swiper-slides{position:absolute;left:0;top:0;right:0;bottom:0}.uni-swiper-slide-frame{position:absolute;left:0;top:0;width:100%;height:100%;will-change:transform}.uni-swiper-dots{position:absolute;font-size:0}.uni-swiper-dots-horizontal{left:50%;bottom:10px;text-align:center;white-space:nowrap;transform:translate(-50%)}.uni-swiper-dots-horizontal .uni-swiper-dot{margin-right:8px}.uni-swiper-dots-horizontal .uni-swiper-dot:last-child{margin-right:0}.uni-swiper-dots-vertical{right:10px;top:50%;text-align:right;transform:translateY(-50%)}.uni-swiper-dots-vertical .uni-swiper-dot{display:block;margin-bottom:9px}.uni-swiper-dots-vertical .uni-swiper-dot:last-child{margin-bottom:0}.uni-swiper-dot{display:inline-block;width:8px;height:8px;cursor:pointer;transition-property:background-color;transition-timing-function:ease;background:rgba(0,0,0,.3);border-radius:50%}.uni-swiper-dot-active{background-color:#000}.uni-swiper-navigation{width:26px;height:26px;cursor:pointer;position:absolute;top:50%;margin-top:-13px;display:flex;align-items:center;transition:all .2s;border-radius:50%;opacity:1}.uni-swiper-navigation-disabled{opacity:.35;cursor:not-allowed}.uni-swiper-navigation-hide{opacity:0;cursor:auto;pointer-events:none}.uni-swiper-navigation-prev{left:10px}.uni-swiper-navigation-prev svg{margin-left:-1px;left:10px}.uni-swiper-navigation-prev.uni-swiper-navigation-vertical{top:18px;left:50%;margin-left:-13px}.uni-swiper-navigation-prev.uni-swiper-navigation-vertical svg{transform:rotate(90deg);margin-left:auto;margin-top:-2px}.uni-swiper-navigation-next{right:10px}.uni-swiper-navigation-next svg{transform:rotate(180deg)}.uni-swiper-navigation-next.uni-swiper-navigation-vertical{top:auto;bottom:5px;left:50%;margin-left:-13px}.uni-swiper-navigation-next.uni-swiper-navigation-vertical svg{margin-top:2px;transform:rotate(270deg)}uni-swiper-item{display:block;overflow:hidden;will-change:transform;position:absolute;width:100%;height:100%;cursor:grab}uni-swiper-item[hidden]{display:none}uni-switch{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-switch[hidden]{display:none}uni-switch[disabled]{cursor:not-allowed}uni-switch[disabled] .uni-switch-input{opacity:.7}.uni-switch-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-switch-input{-webkit-appearance:none;appearance:none;position:relative;width:52px;height:32px;margin-right:5px;border:1px solid #dfdfdf;outline:0;border-radius:16px;box-sizing:border-box;background-color:#dfdfdf;transition:background-color .1s,border .1s}.uni-switch-input:before{content:" ";position:absolute;top:0;left:0;width:50px;height:30px;border-radius:15px;background-color:#fdfdfd;transition:transform .3s}.uni-switch-input:after{content:" ";position:absolute;top:0;left:0;width:30px;height:30px;border-radius:15px;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4);transition:transform .3s}.uni-switch-input.uni-switch-input-checked{border-color:#007aff;background-color:#007aff}.uni-switch-input.uni-switch-input-checked:before{transform:scale(0)}.uni-switch-input.uni-switch-input-checked:after{transform:translate(20px)}uni-switch .uni-checkbox-input{margin-right:5px;-webkit-appearance:none;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative;color:#007aff}uni-switch:not([disabled]) .uni-checkbox-input:hover{border-color:#007aff}uni-switch .uni-checkbox-input svg{fill:#007aff;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-checkbox-input.uni-checkbox-input-disabled{background-color:#e1e1e1}.uni-checkbox-input.uni-checkbox-input-disabled:before{color:#adadad}@media (prefers-color-scheme: dark){uni-switch .uni-switch-input{border-color:#3b3b3f}uni-switch .uni-switch-input,uni-switch .uni-switch-input:before{background-color:#3b3b3f}uni-switch .uni-switch-input:after{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4)}uni-switch .uni-checkbox-input{background-color:#2c2c2c;border:1px solid #656565}}uni-textarea{width:300px;height:150px;display:block;position:relative;font-size:16px;line-height:normal;white-space:pre-wrap;word-break:break-all}uni-textarea[hidden]{display:none}.uni-textarea-wrapper,.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-textarea-wrapper{display:block;position:relative;width:100%;height:100%;min-height:inherit;overflow-y:hidden}.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{position:absolute;width:100%;height:100%;left:0;top:0;white-space:inherit;word-break:inherit}.uni-textarea-placeholder{color:gray;overflow:hidden}.uni-textarea-line,.uni-textarea-compute{visibility:hidden;height:auto}.uni-textarea-line{width:1em}.uni-textarea-textarea{resize:none;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-textarea-textarea-fix-margin{width:auto;right:0;margin:0 -3px}.uni-textarea-textarea:disabled{-webkit-text-fill-color:currentcolor}uni-video{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-video[hidden]{display:none}.uni-video-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-video-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-web-view{display:inline-block;position:absolute;left:0;right:0;top:0;bottom:0} + +.gray{filter:grayscale(1)}.f-row{display:flex;flex-direction:row}.f-col{display:flex;flex-direction:column}.jca{justify-content:space-around}.jce{justify-content:space-evenly}.jcb{justify-content:space-between}.aic{align-items:center}.uni-file-picker__container[data-v-86b162f5]{display:flex;box-sizing:border-box;flex-wrap:wrap;margin:-5px}.file-picker__box[data-v-86b162f5]{position:relative;width:33.3%;height:0;padding-top:33.33%;box-sizing:border-box}.file-picker__box-content[data-v-86b162f5]{position:absolute;top:0;right:0;bottom:0;left:0;margin:5px;border:1px #eee solid;border-radius:5px;overflow:hidden}.file-picker__progress[data-v-86b162f5]{position:absolute;bottom:0;left:0;right:0;z-index:2}.file-picker__progress-item[data-v-86b162f5]{width:100%}.file-picker__mask[data-v-86b162f5]{display:flex;justify-content:center;align-items:center;position:absolute;right:0;top:0;bottom:0;left:0;color:#fff;font-size:12px;background-color:rgba(0,0,0,.4)}.file-image[data-v-86b162f5]{width:100%;height:100%}.is-add[data-v-86b162f5]{display:flex;align-items:center;justify-content:center}.icon-add[data-v-86b162f5]{width:50px;height:5px;background-color:#f1f1f1;border-radius:2px}.rotate[data-v-86b162f5]{position:absolute;transform:rotate(90deg)}.icon-del-box[data-v-86b162f5]{display:flex;align-items:center;justify-content:center;position:absolute;top:3px;right:3px;height:26px;width:26px;border-radius:50%;background-color:rgba(0,0,0,.5);z-index:2;transform:rotate(-45deg)}.icon-del[data-v-86b162f5]{width:15px;height:2px;background-color:#fff;border-radius:2px}.uni-file-picker__files[data-v-e61666c7]{display:flex;flex-direction:column;justify-content:flex-start}.uni-file-picker__lists[data-v-e61666c7]{position:relative;margin-top:5px;overflow:hidden}.file-picker__mask[data-v-e61666c7]{display:flex;justify-content:center;align-items:center;position:absolute;right:0;top:0;bottom:0;left:0;color:#fff;font-size:14px;background-color:rgba(0,0,0,.4)}.uni-file-picker__lists-box[data-v-e61666c7]{position:relative}.uni-file-picker__item[data-v-e61666c7]{display:flex;align-items:center;padding:8px 5px 8px 10px}.files-border[data-v-e61666c7]{border-top:1px #eee solid}.files__name[data-v-e61666c7]{flex:1;font-size:14px;color:#666;margin-right:25px;word-break:break-all;word-wrap:break-word}.icon-files[data-v-e61666c7]{position:static;background-color:initial}.is-list-card[data-v-e61666c7]{border:1px #eee solid;margin-bottom:5px;border-radius:5px;box-shadow:0 0 2px rgba(0,0,0,.1);padding:5px}.files__image[data-v-e61666c7]{width:40px;height:40px;margin-right:10px}.header-image[data-v-e61666c7]{width:100%;height:100%}.is-text-box[data-v-e61666c7]{border:1px #eee solid;border-radius:5px}.is-text-image[data-v-e61666c7]{width:25px;height:25px;margin-left:5px}.rotate[data-v-e61666c7]{position:absolute;transform:rotate(90deg)}.icon-del-box[data-v-e61666c7]{display:flex;margin:auto 0;align-items:center;justify-content:center;position:absolute;top:0;bottom:0;right:5px;height:26px;width:26px;z-index:2;transform:rotate(-45deg)}.icon-del[data-v-e61666c7]{width:15px;height:1px;background-color:#333}.uni-file-picker[data-v-086f9922]{box-sizing:border-box;overflow:hidden;width:100%;flex:1}.uni-file-picker__header[data-v-086f9922]{padding-top:5px;padding-bottom:10px;display:flex;justify-content:space-between}.file-title[data-v-086f9922]{font-size:14px;color:#333}.file-count[data-v-086f9922]{font-size:14px;color:#999}.is-add[data-v-086f9922]{display:flex;align-items:center;justify-content:center}.icon-add[data-v-086f9922]{width:50px;height:5px;background-color:#f1f1f1;border-radius:2px}.rotate[data-v-086f9922]{position:absolute;transform:rotate(90deg)}.info_box[data-v-4dc4d50b]{padding:1.25rem .9375rem .5rem;width:19.6875rem;background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;margin-top:.9375rem}.info_box .title[data-v-4dc4d50b]{font-size:.875rem;color:#333;background-image:url(static/index/line.png);background-size:1.375rem .375rem;background-repeat:no-repeat;background-position:left bottom;margin-bottom:.9375rem}.info_box .info[data-v-4dc4d50b]{font-size:.875rem;margin-bottom:.75rem}.info_box .info uni-view[data-v-4dc4d50b]{color:#666}.info_box .info uni-text[data-v-4dc4d50b]{color:#333}.progress[data-v-4dc4d50b]{background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;width:19.6875rem;padding:1.25rem .9375rem .5rem;margin-top:.9375rem;margin-bottom:.9375rem}.progress .status[data-v-4dc4d50b]{padding:.125rem .25rem;display:inline-block;color:#fff;font-size:.625rem;margin-left:.25rem;border-radius:.25rem}.progress .complete[data-v-4dc4d50b]{background-color:#7ac756}.progress .refuse[data-v-4dc4d50b]{background-color:#fe4600}.progress .title[data-v-4dc4d50b]{font-size:.875rem;color:#333;background-image:url(static/index/line.png);background-size:1.375rem .375rem;background-repeat:no-repeat;background-position:left bottom;margin-bottom:1.25rem}.progress .box[data-v-4dc4d50b]:not(:last-child){position:relative;padding-bottom:1.875rem}.progress .box[data-v-4dc4d50b]:not(:last-child):before{position:absolute;content:" ";width:1px;height:100%;background:#efefef;left:-1.3125rem;top:.3125rem}.progress .box[data-v-4dc4d50b]{margin-left:1.5625rem}.progress .box .topic[data-v-4dc4d50b]{position:relative;font-size:.875rem;color:#333}.progress .box .topic[data-v-4dc4d50b]:before{position:absolute;content:" ";width:.5625rem;height:.5625rem;background:#01508b;border-radius:.4375rem;left:-1.5625rem;top:50%;transform:translateY(-50%)}.progress .box .name_time[data-v-4dc4d50b]{font-size:.75rem;color:#888;margin-top:.375rem}.info_box[data-v-8f3f5a9f]{padding:1.25rem .9375rem .5rem;width:19.6875rem;background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;margin-top:.9375rem}.info_box .title[data-v-8f3f5a9f]{font-size:.875rem;color:#333;background-image:url(../../static/index/line.png);background-size:1.375rem .375rem;background-repeat:no-repeat;background-position:left bottom;margin-bottom:.9375rem}.info_box .info[data-v-8f3f5a9f]{font-size:.875rem;margin-bottom:.75rem}.info_box .info uni-view[data-v-8f3f5a9f]{color:#666}.info_box .info uni-text[data-v-8f3f5a9f]{color:#333}.tab[data-v-c842b888]{background-color:#fff;overflow-x:auto}.tab uni-view[data-v-c842b888]{padding:.625rem .9375rem;white-space:nowrap}.tab .active[data-v-c842b888]{position:relative;color:#1890ff}.tab .active[data-v-c842b888]:after{content:" ";position:absolute;width:3.125rem;height:.1875rem;border-radius:.09375rem;background-color:#1890ff;bottom:0;left:50%;transform:translate(-50%)}.progress[data-v-c842b888]{background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;width:19.6875rem;padding:1.25rem .9375rem .5rem;margin-top:.9375rem;margin-bottom:.9375rem}.progress .status[data-v-c842b888]{padding:.125rem .25rem;display:inline-block;color:#fff;font-size:.625rem;margin-left:.25rem;border-radius:.25rem}.progress .complete[data-v-c842b888]{background-color:#7ac756}.progress .refuse[data-v-c842b888]{background-color:#fe4600}.progress .title[data-v-c842b888]{font-size:.875rem;color:#333;background-image:url(../../static/index/line.png);background-size:1.375rem .375rem;background-repeat:no-repeat;background-position:left bottom;margin-bottom:1.25rem}.progress .box[data-v-c842b888]:not(:last-child){position:relative;padding-bottom:1.875rem}.progress .box[data-v-c842b888]:not(:last-child):before{position:absolute;content:" ";width:1px;height:100%;background:#efefef;left:-1.3125rem;top:.3125rem}.progress .box[data-v-c842b888]{margin-left:1.5625rem}.progress .box .topic[data-v-c842b888]{position:relative;font-size:.875rem;color:#333}.progress .box .topic[data-v-c842b888]:before{position:absolute;content:" ";width:.5625rem;height:.5625rem;background:#01508b;border-radius:.4375rem;left:-1.5625rem;top:50%;transform:translateY(-50%)}.progress .box .name_time[data-v-c842b888]{font-size:.75rem;color:#888;margin-top:.375rem} diff --git a/unpackage/dist/build/app-plus/assets/uniicons.32e978a5.ttf b/unpackage/dist/build/app-plus/assets/uniicons.32e978a5.ttf new file mode 100644 index 0000000..14696d0 Binary files /dev/null and b/unpackage/dist/build/app-plus/assets/uniicons.32e978a5.ttf differ diff --git a/unpackage/dist/build/app-plus/manifest.json b/unpackage/dist/build/app-plus/manifest.json new file mode 100644 index 0000000..19deb84 --- /dev/null +++ b/unpackage/dist/build/app-plus/manifest.json @@ -0,0 +1,196 @@ +{ + "@platforms": [ + "android", + "iPhone", + "iPad" + ], + "id": "__UNI__9F097F0", + "name": "数智产销", + "version": { + "name": "1.0.0", + "code": 20241024 + }, + "description": "", + "developer": { + "name": "", + "email": "", + "url": "" + }, + "permissions": { + "Geolocation": {}, + "Fingerprint": {}, + "Camera": {}, + "Barcode": {}, + "Push": {}, + "UniNView": { + "description": "UniNView原生渲染" + } + }, + "plus": { + "useragent": { + "value": "uni-app", + "concatenate": true + }, + "splashscreen": { + "target": "id:1", + "autoclose": true, + "waiting": true, + "delay": 0 + }, + "popGesture": "close", + "launchwebview": { + "id": "1", + "kernel": "WKWebview" + }, + "usingComponents": true, + "nvueStyleCompiler": "uni-app", + "compilerVersion": 3, + "distribute": { + "icons": { + "android": { + "hdpi": "unpackage/res/icons/72x72.png", + "xhdpi": "unpackage/res/icons/96x96.png", + "xxhdpi": "unpackage/res/icons/144x144.png", + "xxxhdpi": "unpackage/res/icons/192x192.png" + }, + "ios": { + "appstore": "unpackage/res/icons/1024x1024.png", + "ipad": { + "app": "unpackage/res/icons/76x76.png", + "app@2x": "unpackage/res/icons/152x152.png", + "notification": "unpackage/res/icons/20x20.png", + "notification@2x": "unpackage/res/icons/40x40.png", + "proapp@2x": "unpackage/res/icons/167x167.png", + "settings": "unpackage/res/icons/29x29.png", + "settings@2x": "unpackage/res/icons/58x58.png", + "spotlight": "unpackage/res/icons/40x40.png", + "spotlight@2x": "unpackage/res/icons/80x80.png" + }, + "iphone": { + "app@2x": "unpackage/res/icons/120x120.png", + "app@3x": "unpackage/res/icons/180x180.png", + "notification@2x": "unpackage/res/icons/40x40.png", + "notification@3x": "unpackage/res/icons/60x60.png", + "settings@2x": "unpackage/res/icons/58x58.png", + "settings@3x": "unpackage/res/icons/87x87.png", + "spotlight@2x": "unpackage/res/icons/80x80.png", + "spotlight@3x": "unpackage/res/icons/120x120.png" + } + } + }, + "google": { + "permissions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + "apple": { + "dSYMs": false + }, + "plugins": { + "ad": {}, + "geolocation": { + "system": { + "__platform__": [ + "android" + ] + } + }, + "push": { + "unipush": { + "version": "2", + "offline": false + } + }, + "audio": { + "mp3": { + "description": "Android平台录音支持MP3格式文件" + } + } + } + }, + "statusbar": { + "immersed": "supportedDevice", + "style": "dark", + "background": "#000000" + }, + "uniStatistics": { + "enable": false + }, + "allowsInlineMediaPlayback": true, + "safearea": { + "background": "#FFFFFF", + "bottom": { + "offset": "auto" + } + }, + "uni-app": { + "control": "uni-v3", + "vueVersion": "3", + "compilerVersion": "4.15", + "nvueCompiler": "uni-app", + "renderer": "auto", + "nvue": { + "flex-direction": "column" + }, + "nvueLaunchMode": "normal", + "webView": { + "minUserAgentVersion": "49.0" + } + }, + "tabBar": { + "position": "bottom", + "color": "#333333", + "selectedColor": "#01508B", + "borderStyle": "rgba(0,0,0,0.4)", + "blurEffect": "none", + "fontSize": "10px", + "iconWidth": "24px", + "spacing": "3px", + "height": "50px", + "backgroundColor": "#FFFFFF", + "list": [ + { + "text": "首页", + "pagePath": "pages/tab/index", + "iconPath": "/static/tab/index1.png", + "selectedIconPath": "/static/tab/index2.png" + }, + { + "text": "任务", + "pagePath": "pages/task/todotask", + "iconPath": "/static/tab/office1.png", + "selectedIconPath": "/static/tab/office2.png" + }, + { + "text": "办公", + "pagePath": "pages/tab/office", + "iconPath": "/static/tab/product1.png", + "selectedIconPath": "/static/tab/product2.png" + }, + { + "text": "我的", + "pagePath": "pages/tab/my", + "iconPath": "/static/tab/user1.png", + "selectedIconPath": "/static/tab/user2.png" + } + ], + "selectedIndex": 0, + "shown": true + } + }, + "launch_path": "__uniappview.html" +} \ No newline at end of file diff --git a/unpackage/dist/build/app-plus/pages/checkin/index.css b/unpackage/dist/build/app-plus/pages/checkin/index.css new file mode 100644 index 0000000..42d169e --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/checkin/index.css @@ -0,0 +1 @@ +.uniui-cart-filled[data-v-5610c8db]:before{content:"\e6d0"}.uniui-gift-filled[data-v-5610c8db]:before{content:"\e6c4"}.uniui-color[data-v-5610c8db]:before{content:"\e6cf"}.uniui-wallet[data-v-5610c8db]:before{content:"\e6b1"}.uniui-settings-filled[data-v-5610c8db]:before{content:"\e6ce"}.uniui-auth-filled[data-v-5610c8db]:before{content:"\e6cc"}.uniui-shop-filled[data-v-5610c8db]:before{content:"\e6cd"}.uniui-staff-filled[data-v-5610c8db]:before{content:"\e6cb"}.uniui-vip-filled[data-v-5610c8db]:before{content:"\e6c6"}.uniui-plus-filled[data-v-5610c8db]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-5610c8db]:before{content:"\e6c8"}.uniui-color-filled[data-v-5610c8db]:before{content:"\e6c9"}.uniui-tune-filled[data-v-5610c8db]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-5610c8db]:before{content:"\e6c0"}.uniui-notification-filled[data-v-5610c8db]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-5610c8db]:before{content:"\e6c2"}.uniui-medal-filled[data-v-5610c8db]:before{content:"\e6c3"}.uniui-fire-filled[data-v-5610c8db]:before{content:"\e6c5"}.uniui-refreshempty[data-v-5610c8db]:before{content:"\e6bf"}.uniui-location-filled[data-v-5610c8db]:before{content:"\e6af"}.uniui-person-filled[data-v-5610c8db]:before{content:"\e69d"}.uniui-personadd-filled[data-v-5610c8db]:before{content:"\e698"}.uniui-arrowthinleft[data-v-5610c8db]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-5610c8db]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-5610c8db]:before{content:"\e6d4"}.uniui-back[data-v-5610c8db]:before{content:"\e6b9"}.uniui-forward[data-v-5610c8db]:before{content:"\e6ba"}.uniui-arrow-right[data-v-5610c8db]:before{content:"\e6bb"}.uniui-arrow-left[data-v-5610c8db]:before{content:"\e6bc"}.uniui-arrow-up[data-v-5610c8db]:before{content:"\e6bd"}.uniui-arrow-down[data-v-5610c8db]:before{content:"\e6be"}.uniui-arrowthinright[data-v-5610c8db]:before{content:"\e6d1"}.uniui-down[data-v-5610c8db]:before{content:"\e6b8"}.uniui-bottom[data-v-5610c8db]:before{content:"\e6b8"}.uniui-arrowright[data-v-5610c8db]:before{content:"\e6d5"}.uniui-right[data-v-5610c8db]:before{content:"\e6b5"}.uniui-up[data-v-5610c8db]:before{content:"\e6b6"}.uniui-top[data-v-5610c8db]:before{content:"\e6b6"}.uniui-left[data-v-5610c8db]:before{content:"\e6b7"}.uniui-arrowup[data-v-5610c8db]:before{content:"\e6d6"}.uniui-eye[data-v-5610c8db]:before{content:"\e651"}.uniui-eye-filled[data-v-5610c8db]:before{content:"\e66a"}.uniui-eye-slash[data-v-5610c8db]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-5610c8db]:before{content:"\e6b4"}.uniui-info-filled[data-v-5610c8db]:before{content:"\e649"}.uniui-reload[data-v-5610c8db]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-5610c8db]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-5610c8db]:before{content:"\e6ac"}.uniui-map-pin[data-v-5610c8db]:before{content:"\e6ad"}.uniui-location[data-v-5610c8db]:before{content:"\e6ae"}.uniui-starhalf[data-v-5610c8db]:before{content:"\e683"}.uniui-star[data-v-5610c8db]:before{content:"\e688"}.uniui-star-filled[data-v-5610c8db]:before{content:"\e68f"}.uniui-calendar[data-v-5610c8db]:before{content:"\e6a0"}.uniui-fire[data-v-5610c8db]:before{content:"\e6a1"}.uniui-medal[data-v-5610c8db]:before{content:"\e6a2"}.uniui-font[data-v-5610c8db]:before{content:"\e6a3"}.uniui-gift[data-v-5610c8db]:before{content:"\e6a4"}.uniui-link[data-v-5610c8db]:before{content:"\e6a5"}.uniui-notification[data-v-5610c8db]:before{content:"\e6a6"}.uniui-staff[data-v-5610c8db]:before{content:"\e6a7"}.uniui-vip[data-v-5610c8db]:before{content:"\e6a8"}.uniui-folder-add[data-v-5610c8db]:before{content:"\e6a9"}.uniui-tune[data-v-5610c8db]:before{content:"\e6aa"}.uniui-auth[data-v-5610c8db]:before{content:"\e6ab"}.uniui-person[data-v-5610c8db]:before{content:"\e699"}.uniui-email-filled[data-v-5610c8db]:before{content:"\e69a"}.uniui-phone-filled[data-v-5610c8db]:before{content:"\e69b"}.uniui-phone[data-v-5610c8db]:before{content:"\e69c"}.uniui-email[data-v-5610c8db]:before{content:"\e69e"}.uniui-personadd[data-v-5610c8db]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-5610c8db]:before{content:"\e692"}.uniui-contact[data-v-5610c8db]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-5610c8db]:before{content:"\e694"}.uniui-contact-filled[data-v-5610c8db]:before{content:"\e695"}.uniui-chatboxes[data-v-5610c8db]:before{content:"\e696"}.uniui-chatbubble[data-v-5610c8db]:before{content:"\e697"}.uniui-upload-filled[data-v-5610c8db]:before{content:"\e68e"}.uniui-upload[data-v-5610c8db]:before{content:"\e690"}.uniui-weixin[data-v-5610c8db]:before{content:"\e691"}.uniui-compose[data-v-5610c8db]:before{content:"\e67f"}.uniui-qq[data-v-5610c8db]:before{content:"\e680"}.uniui-download-filled[data-v-5610c8db]:before{content:"\e681"}.uniui-pyq[data-v-5610c8db]:before{content:"\e682"}.uniui-sound[data-v-5610c8db]:before{content:"\e684"}.uniui-trash-filled[data-v-5610c8db]:before{content:"\e685"}.uniui-sound-filled[data-v-5610c8db]:before{content:"\e686"}.uniui-trash[data-v-5610c8db]:before{content:"\e687"}.uniui-videocam-filled[data-v-5610c8db]:before{content:"\e689"}.uniui-spinner-cycle[data-v-5610c8db]:before{content:"\e68a"}.uniui-weibo[data-v-5610c8db]:before{content:"\e68b"}.uniui-videocam[data-v-5610c8db]:before{content:"\e68c"}.uniui-download[data-v-5610c8db]:before{content:"\e68d"}.uniui-help[data-v-5610c8db]:before{content:"\e679"}.uniui-navigate-filled[data-v-5610c8db]:before{content:"\e67a"}.uniui-plusempty[data-v-5610c8db]:before{content:"\e67b"}.uniui-smallcircle[data-v-5610c8db]:before{content:"\e67c"}.uniui-minus-filled[data-v-5610c8db]:before{content:"\e67d"}.uniui-micoff[data-v-5610c8db]:before{content:"\e67e"}.uniui-closeempty[data-v-5610c8db]:before{content:"\e66c"}.uniui-clear[data-v-5610c8db]:before{content:"\e66d"}.uniui-navigate[data-v-5610c8db]:before{content:"\e66e"}.uniui-minus[data-v-5610c8db]:before{content:"\e66f"}.uniui-image[data-v-5610c8db]:before{content:"\e670"}.uniui-mic[data-v-5610c8db]:before{content:"\e671"}.uniui-paperplane[data-v-5610c8db]:before{content:"\e672"}.uniui-close[data-v-5610c8db]:before{content:"\e673"}.uniui-help-filled[data-v-5610c8db]:before{content:"\e674"}.uniui-paperplane-filled[data-v-5610c8db]:before{content:"\e675"}.uniui-plus[data-v-5610c8db]:before{content:"\e676"}.uniui-mic-filled[data-v-5610c8db]:before{content:"\e677"}.uniui-image-filled[data-v-5610c8db]:before{content:"\e678"}.uniui-locked-filled[data-v-5610c8db]:before{content:"\e668"}.uniui-info[data-v-5610c8db]:before{content:"\e669"}.uniui-locked[data-v-5610c8db]:before{content:"\e66b"}.uniui-camera-filled[data-v-5610c8db]:before{content:"\e658"}.uniui-chat-filled[data-v-5610c8db]:before{content:"\e659"}.uniui-camera[data-v-5610c8db]:before{content:"\e65a"}.uniui-circle[data-v-5610c8db]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-5610c8db]:before{content:"\e65c"}.uniui-chat[data-v-5610c8db]:before{content:"\e65d"}.uniui-circle-filled[data-v-5610c8db]:before{content:"\e65e"}.uniui-flag[data-v-5610c8db]:before{content:"\e65f"}.uniui-flag-filled[data-v-5610c8db]:before{content:"\e660"}.uniui-gear-filled[data-v-5610c8db]:before{content:"\e661"}.uniui-home[data-v-5610c8db]:before{content:"\e662"}.uniui-home-filled[data-v-5610c8db]:before{content:"\e663"}.uniui-gear[data-v-5610c8db]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-5610c8db]:before{content:"\e665"}.uniui-map-filled[data-v-5610c8db]:before{content:"\e666"}.uniui-map[data-v-5610c8db]:before{content:"\e667"}.uniui-refresh-filled[data-v-5610c8db]:before{content:"\e656"}.uniui-refresh[data-v-5610c8db]:before{content:"\e657"}.uniui-cloud-upload[data-v-5610c8db]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-5610c8db]:before{content:"\e646"}.uniui-cloud-download[data-v-5610c8db]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-5610c8db]:before{content:"\e648"}.uniui-redo[data-v-5610c8db]:before{content:"\e64a"}.uniui-images-filled[data-v-5610c8db]:before{content:"\e64b"}.uniui-undo-filled[data-v-5610c8db]:before{content:"\e64c"}.uniui-more[data-v-5610c8db]:before{content:"\e64d"}.uniui-more-filled[data-v-5610c8db]:before{content:"\e64e"}.uniui-undo[data-v-5610c8db]:before{content:"\e64f"}.uniui-images[data-v-5610c8db]:before{content:"\e650"}.uniui-paperclip[data-v-5610c8db]:before{content:"\e652"}.uniui-settings[data-v-5610c8db]:before{content:"\e653"}.uniui-search[data-v-5610c8db]:before{content:"\e654"}.uniui-redo-filled[data-v-5610c8db]:before{content:"\e655"}.uniui-list[data-v-5610c8db]:before{content:"\e644"}.uniui-mail-open-filled[data-v-5610c8db]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-5610c8db]:before{content:"\e63c"}.uniui-hand-down[data-v-5610c8db]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-5610c8db]:before{content:"\e63e"}.uniui-hand-up[data-v-5610c8db]:before{content:"\e63f"}.uniui-heart-filled[data-v-5610c8db]:before{content:"\e641"}.uniui-mail-open[data-v-5610c8db]:before{content:"\e643"}.uniui-heart[data-v-5610c8db]:before{content:"\e639"}.uniui-loop[data-v-5610c8db]:before{content:"\e633"}.uniui-pulldown[data-v-5610c8db]:before{content:"\e632"}.uniui-scan[data-v-5610c8db]:before{content:"\e62a"}.uniui-bars[data-v-5610c8db]:before{content:"\e627"}.uniui-checkbox[data-v-5610c8db]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-5610c8db]:before{content:"\e62c"}.uniui-shop[data-v-5610c8db]:before{content:"\e62f"}.uniui-headphones[data-v-5610c8db]:before{content:"\e630"}.uniui-cart[data-v-5610c8db]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-5610c8db]{font-family:uniicons;text-decoration:none;text-align:center}.nav[data-v-566e182b]{width:calc(100% - 1.875rem);padding:0 .9375rem;height:var(--bc08538a);background:linear-gradient(270deg,#256fbc,#044d87);font-size:.75rem;color:#fff;position:fixed;top:0;left:0;z-index:99}.place[data-v-566e182b]{height:var(--bc08538a)}body{background-color:#f8f8f8}.content[data-v-f70ab478]{padding-bottom:3.75rem}.nav_box[data-v-f70ab478]{position:absolute;bottom:.5rem;left:0;width:calc(100% - 1.875rem)}.back[data-v-f70ab478]{padding-left:.9375rem}uni-image[data-v-f70ab478]{width:2rem;height:2rem;border-radius:1rem;background-color:#fff;margin-right:.625rem;margin-left:1.5625rem}.name[data-v-f70ab478]{font-size:.875rem;color:#fff}.position[data-v-f70ab478]{font-size:.75rem;color:#fff}.time_box[data-v-f70ab478]{padding:.9375rem}.time_box .box[data-v-f70ab478]{padding:1.25rem .9375rem;flex:1;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem}.time_box .box[data-v-f70ab478]:nth-child(1){border:.03125rem solid #3AC050;background:#f5fff7;margin-right:.9375rem}.time_box .box[data-v-f70ab478]:nth-child(2){background:#fff7f5;border:.03125rem solid #F05C43}.time_box .time[data-v-f70ab478]{font-size:.875rem;color:#333}.time_box .time uni-image[data-v-f70ab478]{width:.875rem;height:.875rem;margin-left:.3125rem}.time_box .text[data-v-f70ab478]{font-size:.75rem;color:#888;margin-top:.5625rem}.checkin[data-v-f70ab478]{margin:0 .9375rem;background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;height:25.5625rem}.checkin .status[data-v-f70ab478]{font-weight:600;font-size:1.4375rem;color:#f05c43}.checkin .status uni-image[data-v-f70ab478]{width:1.8125rem;height:2.15625rem;margin-top:2.21875rem}.checkin .status uni-text[data-v-f70ab478]{margin-top:.71875rem}.checkin .out[data-v-f70ab478]{background-image:url(../../static/checkin/circle1.png)}.checkin .check[data-v-f70ab478]{background-image:url(../../static/checkin/circle2.png)}.checkin .success[data-v-f70ab478]{background-image:url(../../static/checkin/circle3.png)}.checkin .fail[data-v-f70ab478]{background-image:url(../../static/checkin/circle4.png)}.checkin .circle[data-v-f70ab478]{width:10.9375rem;height:10.9375rem;background-size:10.9375rem 10.9375rem;margin-top:4.6875rem}.checkin .circle .title[data-v-f70ab478],.checkin .circle .time[data-v-f70ab478]{font-weight:600;font-size:1.4375rem;color:#333}.checkin .circle .title[data-v-f70ab478]{margin-top:2.5rem}.checkin .circle .time[data-v-f70ab478]{margin-top:.25rem}.checkin .circle .ontime[data-v-f70ab478]{font-size:.875rem;color:#888;margin-top:.375rem} diff --git a/unpackage/dist/build/app-plus/pages/document/detail.css b/unpackage/dist/build/app-plus/pages/document/detail.css new file mode 100644 index 0000000..8b046b3 --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/document/detail.css @@ -0,0 +1 @@ +.content[data-v-b79b801f]{padding:0 .9375rem}.title_box .title[data-v-b79b801f]{font-size:1rem;color:#333;padding:.9375rem 0 .625rem}.title_box .time[data-v-b79b801f]{font-size:.75rem;color:#888;padding-bottom:.9375rem}.document uni-text[data-v-b79b801f]{font-size:.875rem;color:#333;white-space:nowrap}.document uni-view[data-v-b79b801f]{font-size:.875rem;color:#5a79f8;text-decoration:underline} diff --git a/unpackage/dist/build/app-plus/pages/document/index.css b/unpackage/dist/build/app-plus/pages/document/index.css new file mode 100644 index 0000000..6bba914 --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/document/index.css @@ -0,0 +1 @@ +.uniui-cart-filled[data-v-5610c8db]:before{content:"\e6d0"}.uniui-gift-filled[data-v-5610c8db]:before{content:"\e6c4"}.uniui-color[data-v-5610c8db]:before{content:"\e6cf"}.uniui-wallet[data-v-5610c8db]:before{content:"\e6b1"}.uniui-settings-filled[data-v-5610c8db]:before{content:"\e6ce"}.uniui-auth-filled[data-v-5610c8db]:before{content:"\e6cc"}.uniui-shop-filled[data-v-5610c8db]:before{content:"\e6cd"}.uniui-staff-filled[data-v-5610c8db]:before{content:"\e6cb"}.uniui-vip-filled[data-v-5610c8db]:before{content:"\e6c6"}.uniui-plus-filled[data-v-5610c8db]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-5610c8db]:before{content:"\e6c8"}.uniui-color-filled[data-v-5610c8db]:before{content:"\e6c9"}.uniui-tune-filled[data-v-5610c8db]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-5610c8db]:before{content:"\e6c0"}.uniui-notification-filled[data-v-5610c8db]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-5610c8db]:before{content:"\e6c2"}.uniui-medal-filled[data-v-5610c8db]:before{content:"\e6c3"}.uniui-fire-filled[data-v-5610c8db]:before{content:"\e6c5"}.uniui-refreshempty[data-v-5610c8db]:before{content:"\e6bf"}.uniui-location-filled[data-v-5610c8db]:before{content:"\e6af"}.uniui-person-filled[data-v-5610c8db]:before{content:"\e69d"}.uniui-personadd-filled[data-v-5610c8db]:before{content:"\e698"}.uniui-arrowthinleft[data-v-5610c8db]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-5610c8db]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-5610c8db]:before{content:"\e6d4"}.uniui-back[data-v-5610c8db]:before{content:"\e6b9"}.uniui-forward[data-v-5610c8db]:before{content:"\e6ba"}.uniui-arrow-right[data-v-5610c8db]:before{content:"\e6bb"}.uniui-arrow-left[data-v-5610c8db]:before{content:"\e6bc"}.uniui-arrow-up[data-v-5610c8db]:before{content:"\e6bd"}.uniui-arrow-down[data-v-5610c8db]:before{content:"\e6be"}.uniui-arrowthinright[data-v-5610c8db]:before{content:"\e6d1"}.uniui-down[data-v-5610c8db]:before{content:"\e6b8"}.uniui-bottom[data-v-5610c8db]:before{content:"\e6b8"}.uniui-arrowright[data-v-5610c8db]:before{content:"\e6d5"}.uniui-right[data-v-5610c8db]:before{content:"\e6b5"}.uniui-up[data-v-5610c8db]:before{content:"\e6b6"}.uniui-top[data-v-5610c8db]:before{content:"\e6b6"}.uniui-left[data-v-5610c8db]:before{content:"\e6b7"}.uniui-arrowup[data-v-5610c8db]:before{content:"\e6d6"}.uniui-eye[data-v-5610c8db]:before{content:"\e651"}.uniui-eye-filled[data-v-5610c8db]:before{content:"\e66a"}.uniui-eye-slash[data-v-5610c8db]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-5610c8db]:before{content:"\e6b4"}.uniui-info-filled[data-v-5610c8db]:before{content:"\e649"}.uniui-reload[data-v-5610c8db]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-5610c8db]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-5610c8db]:before{content:"\e6ac"}.uniui-map-pin[data-v-5610c8db]:before{content:"\e6ad"}.uniui-location[data-v-5610c8db]:before{content:"\e6ae"}.uniui-starhalf[data-v-5610c8db]:before{content:"\e683"}.uniui-star[data-v-5610c8db]:before{content:"\e688"}.uniui-star-filled[data-v-5610c8db]:before{content:"\e68f"}.uniui-calendar[data-v-5610c8db]:before{content:"\e6a0"}.uniui-fire[data-v-5610c8db]:before{content:"\e6a1"}.uniui-medal[data-v-5610c8db]:before{content:"\e6a2"}.uniui-font[data-v-5610c8db]:before{content:"\e6a3"}.uniui-gift[data-v-5610c8db]:before{content:"\e6a4"}.uniui-link[data-v-5610c8db]:before{content:"\e6a5"}.uniui-notification[data-v-5610c8db]:before{content:"\e6a6"}.uniui-staff[data-v-5610c8db]:before{content:"\e6a7"}.uniui-vip[data-v-5610c8db]:before{content:"\e6a8"}.uniui-folder-add[data-v-5610c8db]:before{content:"\e6a9"}.uniui-tune[data-v-5610c8db]:before{content:"\e6aa"}.uniui-auth[data-v-5610c8db]:before{content:"\e6ab"}.uniui-person[data-v-5610c8db]:before{content:"\e699"}.uniui-email-filled[data-v-5610c8db]:before{content:"\e69a"}.uniui-phone-filled[data-v-5610c8db]:before{content:"\e69b"}.uniui-phone[data-v-5610c8db]:before{content:"\e69c"}.uniui-email[data-v-5610c8db]:before{content:"\e69e"}.uniui-personadd[data-v-5610c8db]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-5610c8db]:before{content:"\e692"}.uniui-contact[data-v-5610c8db]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-5610c8db]:before{content:"\e694"}.uniui-contact-filled[data-v-5610c8db]:before{content:"\e695"}.uniui-chatboxes[data-v-5610c8db]:before{content:"\e696"}.uniui-chatbubble[data-v-5610c8db]:before{content:"\e697"}.uniui-upload-filled[data-v-5610c8db]:before{content:"\e68e"}.uniui-upload[data-v-5610c8db]:before{content:"\e690"}.uniui-weixin[data-v-5610c8db]:before{content:"\e691"}.uniui-compose[data-v-5610c8db]:before{content:"\e67f"}.uniui-qq[data-v-5610c8db]:before{content:"\e680"}.uniui-download-filled[data-v-5610c8db]:before{content:"\e681"}.uniui-pyq[data-v-5610c8db]:before{content:"\e682"}.uniui-sound[data-v-5610c8db]:before{content:"\e684"}.uniui-trash-filled[data-v-5610c8db]:before{content:"\e685"}.uniui-sound-filled[data-v-5610c8db]:before{content:"\e686"}.uniui-trash[data-v-5610c8db]:before{content:"\e687"}.uniui-videocam-filled[data-v-5610c8db]:before{content:"\e689"}.uniui-spinner-cycle[data-v-5610c8db]:before{content:"\e68a"}.uniui-weibo[data-v-5610c8db]:before{content:"\e68b"}.uniui-videocam[data-v-5610c8db]:before{content:"\e68c"}.uniui-download[data-v-5610c8db]:before{content:"\e68d"}.uniui-help[data-v-5610c8db]:before{content:"\e679"}.uniui-navigate-filled[data-v-5610c8db]:before{content:"\e67a"}.uniui-plusempty[data-v-5610c8db]:before{content:"\e67b"}.uniui-smallcircle[data-v-5610c8db]:before{content:"\e67c"}.uniui-minus-filled[data-v-5610c8db]:before{content:"\e67d"}.uniui-micoff[data-v-5610c8db]:before{content:"\e67e"}.uniui-closeempty[data-v-5610c8db]:before{content:"\e66c"}.uniui-clear[data-v-5610c8db]:before{content:"\e66d"}.uniui-navigate[data-v-5610c8db]:before{content:"\e66e"}.uniui-minus[data-v-5610c8db]:before{content:"\e66f"}.uniui-image[data-v-5610c8db]:before{content:"\e670"}.uniui-mic[data-v-5610c8db]:before{content:"\e671"}.uniui-paperplane[data-v-5610c8db]:before{content:"\e672"}.uniui-close[data-v-5610c8db]:before{content:"\e673"}.uniui-help-filled[data-v-5610c8db]:before{content:"\e674"}.uniui-paperplane-filled[data-v-5610c8db]:before{content:"\e675"}.uniui-plus[data-v-5610c8db]:before{content:"\e676"}.uniui-mic-filled[data-v-5610c8db]:before{content:"\e677"}.uniui-image-filled[data-v-5610c8db]:before{content:"\e678"}.uniui-locked-filled[data-v-5610c8db]:before{content:"\e668"}.uniui-info[data-v-5610c8db]:before{content:"\e669"}.uniui-locked[data-v-5610c8db]:before{content:"\e66b"}.uniui-camera-filled[data-v-5610c8db]:before{content:"\e658"}.uniui-chat-filled[data-v-5610c8db]:before{content:"\e659"}.uniui-camera[data-v-5610c8db]:before{content:"\e65a"}.uniui-circle[data-v-5610c8db]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-5610c8db]:before{content:"\e65c"}.uniui-chat[data-v-5610c8db]:before{content:"\e65d"}.uniui-circle-filled[data-v-5610c8db]:before{content:"\e65e"}.uniui-flag[data-v-5610c8db]:before{content:"\e65f"}.uniui-flag-filled[data-v-5610c8db]:before{content:"\e660"}.uniui-gear-filled[data-v-5610c8db]:before{content:"\e661"}.uniui-home[data-v-5610c8db]:before{content:"\e662"}.uniui-home-filled[data-v-5610c8db]:before{content:"\e663"}.uniui-gear[data-v-5610c8db]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-5610c8db]:before{content:"\e665"}.uniui-map-filled[data-v-5610c8db]:before{content:"\e666"}.uniui-map[data-v-5610c8db]:before{content:"\e667"}.uniui-refresh-filled[data-v-5610c8db]:before{content:"\e656"}.uniui-refresh[data-v-5610c8db]:before{content:"\e657"}.uniui-cloud-upload[data-v-5610c8db]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-5610c8db]:before{content:"\e646"}.uniui-cloud-download[data-v-5610c8db]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-5610c8db]:before{content:"\e648"}.uniui-redo[data-v-5610c8db]:before{content:"\e64a"}.uniui-images-filled[data-v-5610c8db]:before{content:"\e64b"}.uniui-undo-filled[data-v-5610c8db]:before{content:"\e64c"}.uniui-more[data-v-5610c8db]:before{content:"\e64d"}.uniui-more-filled[data-v-5610c8db]:before{content:"\e64e"}.uniui-undo[data-v-5610c8db]:before{content:"\e64f"}.uniui-images[data-v-5610c8db]:before{content:"\e650"}.uniui-paperclip[data-v-5610c8db]:before{content:"\e652"}.uniui-settings[data-v-5610c8db]:before{content:"\e653"}.uniui-search[data-v-5610c8db]:before{content:"\e654"}.uniui-redo-filled[data-v-5610c8db]:before{content:"\e655"}.uniui-list[data-v-5610c8db]:before{content:"\e644"}.uniui-mail-open-filled[data-v-5610c8db]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-5610c8db]:before{content:"\e63c"}.uniui-hand-down[data-v-5610c8db]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-5610c8db]:before{content:"\e63e"}.uniui-hand-up[data-v-5610c8db]:before{content:"\e63f"}.uniui-heart-filled[data-v-5610c8db]:before{content:"\e641"}.uniui-mail-open[data-v-5610c8db]:before{content:"\e643"}.uniui-heart[data-v-5610c8db]:before{content:"\e639"}.uniui-loop[data-v-5610c8db]:before{content:"\e633"}.uniui-pulldown[data-v-5610c8db]:before{content:"\e632"}.uniui-scan[data-v-5610c8db]:before{content:"\e62a"}.uniui-bars[data-v-5610c8db]:before{content:"\e627"}.uniui-checkbox[data-v-5610c8db]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-5610c8db]:before{content:"\e62c"}.uniui-shop[data-v-5610c8db]:before{content:"\e62f"}.uniui-headphones[data-v-5610c8db]:before{content:"\e630"}.uniui-cart[data-v-5610c8db]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-5610c8db]{font-family:uniicons;text-decoration:none;text-align:center}.nav[data-v-566e182b]{width:calc(100% - 1.875rem);padding:0 .9375rem;height:var(--bc08538a);background:linear-gradient(270deg,#256fbc,#044d87);font-size:.75rem;color:#fff;position:fixed;top:0;left:0;z-index:99}.place[data-v-566e182b]{height:var(--bc08538a)}body{background-color:#f8f8f8}.content[data-v-18757efe]{padding-top:var(--e9493420);padding-bottom:.75rem}.list[data-v-18757efe]{padding:0 .9375rem}.list .item[data-v-18757efe]{background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;padding:.9375rem;margin-top:.75rem;position:relative}.list .item .dot[data-v-18757efe]{width:.375rem;height:.375rem;background:#ed361d;position:absolute;border-radius:50%;left:.28125rem;top:1.375rem}.list .item .title[data-v-18757efe]{margin-bottom:.625rem;font-size:.875rem;color:#333}.list .item .time_box[data-v-18757efe]{font-size:.75rem;color:#888}.list .item .time_box .look[data-v-18757efe]{position:relative;margin-left:1.875rem}.list .item .time_box .look[data-v-18757efe]:after{position:absolute;content:" ";width:.0625rem;height:.625rem;background:#999;top:50%;transform:translateY(-50%);left:-.9375rem}.list .item uni-image[data-v-18757efe]{width:.875rem;height:.6875rem;margin-left:1.9375rem;margin-right:.25rem}.nav_box[data-v-18757efe]{position:absolute;bottom:.4375rem;width:100%;left:0}.back[data-v-18757efe]{padding:0 .9375rem}.search[data-v-18757efe]{position:relative;padding-right:.9375rem;flex:1}.search uni-view[data-v-18757efe]{position:absolute;left:.875rem;top:50%;transform:translateY(-50%);font-size:.875rem;color:#999}.search uni-input[data-v-18757efe]{flex:1;height:2.25rem;background:#f8f8f8;border-radius:1.375rem;padding:0 .875rem;color:#333}.search uni-image[data-v-18757efe]{width:1.0625rem;height:1.0625rem;margin-right:.5rem} diff --git a/unpackage/dist/build/app-plus/pages/leave/application.css b/unpackage/dist/build/app-plus/pages/leave/application.css new file mode 100644 index 0000000..9ff455a --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/leave/application.css @@ -0,0 +1 @@ +.uniui-cart-filled[data-v-5610c8db]:before{content:"\e6d0"}.uniui-gift-filled[data-v-5610c8db]:before{content:"\e6c4"}.uniui-color[data-v-5610c8db]:before{content:"\e6cf"}.uniui-wallet[data-v-5610c8db]:before{content:"\e6b1"}.uniui-settings-filled[data-v-5610c8db]:before{content:"\e6ce"}.uniui-auth-filled[data-v-5610c8db]:before{content:"\e6cc"}.uniui-shop-filled[data-v-5610c8db]:before{content:"\e6cd"}.uniui-staff-filled[data-v-5610c8db]:before{content:"\e6cb"}.uniui-vip-filled[data-v-5610c8db]:before{content:"\e6c6"}.uniui-plus-filled[data-v-5610c8db]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-5610c8db]:before{content:"\e6c8"}.uniui-color-filled[data-v-5610c8db]:before{content:"\e6c9"}.uniui-tune-filled[data-v-5610c8db]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-5610c8db]:before{content:"\e6c0"}.uniui-notification-filled[data-v-5610c8db]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-5610c8db]:before{content:"\e6c2"}.uniui-medal-filled[data-v-5610c8db]:before{content:"\e6c3"}.uniui-fire-filled[data-v-5610c8db]:before{content:"\e6c5"}.uniui-refreshempty[data-v-5610c8db]:before{content:"\e6bf"}.uniui-location-filled[data-v-5610c8db]:before{content:"\e6af"}.uniui-person-filled[data-v-5610c8db]:before{content:"\e69d"}.uniui-personadd-filled[data-v-5610c8db]:before{content:"\e698"}.uniui-arrowthinleft[data-v-5610c8db]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-5610c8db]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-5610c8db]:before{content:"\e6d4"}.uniui-back[data-v-5610c8db]:before{content:"\e6b9"}.uniui-forward[data-v-5610c8db]:before{content:"\e6ba"}.uniui-arrow-right[data-v-5610c8db]:before{content:"\e6bb"}.uniui-arrow-left[data-v-5610c8db]:before{content:"\e6bc"}.uniui-arrow-up[data-v-5610c8db]:before{content:"\e6bd"}.uniui-arrow-down[data-v-5610c8db]:before{content:"\e6be"}.uniui-arrowthinright[data-v-5610c8db]:before{content:"\e6d1"}.uniui-down[data-v-5610c8db]:before{content:"\e6b8"}.uniui-bottom[data-v-5610c8db]:before{content:"\e6b8"}.uniui-arrowright[data-v-5610c8db]:before{content:"\e6d5"}.uniui-right[data-v-5610c8db]:before{content:"\e6b5"}.uniui-up[data-v-5610c8db]:before{content:"\e6b6"}.uniui-top[data-v-5610c8db]:before{content:"\e6b6"}.uniui-left[data-v-5610c8db]:before{content:"\e6b7"}.uniui-arrowup[data-v-5610c8db]:before{content:"\e6d6"}.uniui-eye[data-v-5610c8db]:before{content:"\e651"}.uniui-eye-filled[data-v-5610c8db]:before{content:"\e66a"}.uniui-eye-slash[data-v-5610c8db]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-5610c8db]:before{content:"\e6b4"}.uniui-info-filled[data-v-5610c8db]:before{content:"\e649"}.uniui-reload[data-v-5610c8db]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-5610c8db]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-5610c8db]:before{content:"\e6ac"}.uniui-map-pin[data-v-5610c8db]:before{content:"\e6ad"}.uniui-location[data-v-5610c8db]:before{content:"\e6ae"}.uniui-starhalf[data-v-5610c8db]:before{content:"\e683"}.uniui-star[data-v-5610c8db]:before{content:"\e688"}.uniui-star-filled[data-v-5610c8db]:before{content:"\e68f"}.uniui-calendar[data-v-5610c8db]:before{content:"\e6a0"}.uniui-fire[data-v-5610c8db]:before{content:"\e6a1"}.uniui-medal[data-v-5610c8db]:before{content:"\e6a2"}.uniui-font[data-v-5610c8db]:before{content:"\e6a3"}.uniui-gift[data-v-5610c8db]:before{content:"\e6a4"}.uniui-link[data-v-5610c8db]:before{content:"\e6a5"}.uniui-notification[data-v-5610c8db]:before{content:"\e6a6"}.uniui-staff[data-v-5610c8db]:before{content:"\e6a7"}.uniui-vip[data-v-5610c8db]:before{content:"\e6a8"}.uniui-folder-add[data-v-5610c8db]:before{content:"\e6a9"}.uniui-tune[data-v-5610c8db]:before{content:"\e6aa"}.uniui-auth[data-v-5610c8db]:before{content:"\e6ab"}.uniui-person[data-v-5610c8db]:before{content:"\e699"}.uniui-email-filled[data-v-5610c8db]:before{content:"\e69a"}.uniui-phone-filled[data-v-5610c8db]:before{content:"\e69b"}.uniui-phone[data-v-5610c8db]:before{content:"\e69c"}.uniui-email[data-v-5610c8db]:before{content:"\e69e"}.uniui-personadd[data-v-5610c8db]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-5610c8db]:before{content:"\e692"}.uniui-contact[data-v-5610c8db]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-5610c8db]:before{content:"\e694"}.uniui-contact-filled[data-v-5610c8db]:before{content:"\e695"}.uniui-chatboxes[data-v-5610c8db]:before{content:"\e696"}.uniui-chatbubble[data-v-5610c8db]:before{content:"\e697"}.uniui-upload-filled[data-v-5610c8db]:before{content:"\e68e"}.uniui-upload[data-v-5610c8db]:before{content:"\e690"}.uniui-weixin[data-v-5610c8db]:before{content:"\e691"}.uniui-compose[data-v-5610c8db]:before{content:"\e67f"}.uniui-qq[data-v-5610c8db]:before{content:"\e680"}.uniui-download-filled[data-v-5610c8db]:before{content:"\e681"}.uniui-pyq[data-v-5610c8db]:before{content:"\e682"}.uniui-sound[data-v-5610c8db]:before{content:"\e684"}.uniui-trash-filled[data-v-5610c8db]:before{content:"\e685"}.uniui-sound-filled[data-v-5610c8db]:before{content:"\e686"}.uniui-trash[data-v-5610c8db]:before{content:"\e687"}.uniui-videocam-filled[data-v-5610c8db]:before{content:"\e689"}.uniui-spinner-cycle[data-v-5610c8db]:before{content:"\e68a"}.uniui-weibo[data-v-5610c8db]:before{content:"\e68b"}.uniui-videocam[data-v-5610c8db]:before{content:"\e68c"}.uniui-download[data-v-5610c8db]:before{content:"\e68d"}.uniui-help[data-v-5610c8db]:before{content:"\e679"}.uniui-navigate-filled[data-v-5610c8db]:before{content:"\e67a"}.uniui-plusempty[data-v-5610c8db]:before{content:"\e67b"}.uniui-smallcircle[data-v-5610c8db]:before{content:"\e67c"}.uniui-minus-filled[data-v-5610c8db]:before{content:"\e67d"}.uniui-micoff[data-v-5610c8db]:before{content:"\e67e"}.uniui-closeempty[data-v-5610c8db]:before{content:"\e66c"}.uniui-clear[data-v-5610c8db]:before{content:"\e66d"}.uniui-navigate[data-v-5610c8db]:before{content:"\e66e"}.uniui-minus[data-v-5610c8db]:before{content:"\e66f"}.uniui-image[data-v-5610c8db]:before{content:"\e670"}.uniui-mic[data-v-5610c8db]:before{content:"\e671"}.uniui-paperplane[data-v-5610c8db]:before{content:"\e672"}.uniui-close[data-v-5610c8db]:before{content:"\e673"}.uniui-help-filled[data-v-5610c8db]:before{content:"\e674"}.uniui-paperplane-filled[data-v-5610c8db]:before{content:"\e675"}.uniui-plus[data-v-5610c8db]:before{content:"\e676"}.uniui-mic-filled[data-v-5610c8db]:before{content:"\e677"}.uniui-image-filled[data-v-5610c8db]:before{content:"\e678"}.uniui-locked-filled[data-v-5610c8db]:before{content:"\e668"}.uniui-info[data-v-5610c8db]:before{content:"\e669"}.uniui-locked[data-v-5610c8db]:before{content:"\e66b"}.uniui-camera-filled[data-v-5610c8db]:before{content:"\e658"}.uniui-chat-filled[data-v-5610c8db]:before{content:"\e659"}.uniui-camera[data-v-5610c8db]:before{content:"\e65a"}.uniui-circle[data-v-5610c8db]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-5610c8db]:before{content:"\e65c"}.uniui-chat[data-v-5610c8db]:before{content:"\e65d"}.uniui-circle-filled[data-v-5610c8db]:before{content:"\e65e"}.uniui-flag[data-v-5610c8db]:before{content:"\e65f"}.uniui-flag-filled[data-v-5610c8db]:before{content:"\e660"}.uniui-gear-filled[data-v-5610c8db]:before{content:"\e661"}.uniui-home[data-v-5610c8db]:before{content:"\e662"}.uniui-home-filled[data-v-5610c8db]:before{content:"\e663"}.uniui-gear[data-v-5610c8db]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-5610c8db]:before{content:"\e665"}.uniui-map-filled[data-v-5610c8db]:before{content:"\e666"}.uniui-map[data-v-5610c8db]:before{content:"\e667"}.uniui-refresh-filled[data-v-5610c8db]:before{content:"\e656"}.uniui-refresh[data-v-5610c8db]:before{content:"\e657"}.uniui-cloud-upload[data-v-5610c8db]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-5610c8db]:before{content:"\e646"}.uniui-cloud-download[data-v-5610c8db]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-5610c8db]:before{content:"\e648"}.uniui-redo[data-v-5610c8db]:before{content:"\e64a"}.uniui-images-filled[data-v-5610c8db]:before{content:"\e64b"}.uniui-undo-filled[data-v-5610c8db]:before{content:"\e64c"}.uniui-more[data-v-5610c8db]:before{content:"\e64d"}.uniui-more-filled[data-v-5610c8db]:before{content:"\e64e"}.uniui-undo[data-v-5610c8db]:before{content:"\e64f"}.uniui-images[data-v-5610c8db]:before{content:"\e650"}.uniui-paperclip[data-v-5610c8db]:before{content:"\e652"}.uniui-settings[data-v-5610c8db]:before{content:"\e653"}.uniui-search[data-v-5610c8db]:before{content:"\e654"}.uniui-redo-filled[data-v-5610c8db]:before{content:"\e655"}.uniui-list[data-v-5610c8db]:before{content:"\e644"}.uniui-mail-open-filled[data-v-5610c8db]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-5610c8db]:before{content:"\e63c"}.uniui-hand-down[data-v-5610c8db]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-5610c8db]:before{content:"\e63e"}.uniui-hand-up[data-v-5610c8db]:before{content:"\e63f"}.uniui-heart-filled[data-v-5610c8db]:before{content:"\e641"}.uniui-mail-open[data-v-5610c8db]:before{content:"\e643"}.uniui-heart[data-v-5610c8db]:before{content:"\e639"}.uniui-loop[data-v-5610c8db]:before{content:"\e633"}.uniui-pulldown[data-v-5610c8db]:before{content:"\e632"}.uniui-scan[data-v-5610c8db]:before{content:"\e62a"}.uniui-bars[data-v-5610c8db]:before{content:"\e627"}.uniui-checkbox[data-v-5610c8db]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-5610c8db]:before{content:"\e62c"}.uniui-shop[data-v-5610c8db]:before{content:"\e62f"}.uniui-headphones[data-v-5610c8db]:before{content:"\e630"}.uniui-cart[data-v-5610c8db]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-5610c8db]{font-family:uniicons;text-decoration:none;text-align:center}.uni-file-picker__container[data-v-86b162f5]{display:flex;box-sizing:border-box;flex-wrap:wrap;margin:-5px}.file-picker__box[data-v-86b162f5]{position:relative;width:33.3%;height:0;padding-top:33.33%;box-sizing:border-box}.file-picker__box-content[data-v-86b162f5]{position:absolute;top:0;right:0;bottom:0;left:0;margin:5px;border:1px #eee solid;border-radius:5px;overflow:hidden}.file-picker__progress[data-v-86b162f5]{position:absolute;bottom:0;left:0;right:0;z-index:2}.file-picker__progress-item[data-v-86b162f5]{width:100%}.file-picker__mask[data-v-86b162f5]{display:flex;justify-content:center;align-items:center;position:absolute;right:0;top:0;bottom:0;left:0;color:#fff;font-size:12px;background-color:rgba(0,0,0,.4)}.file-image[data-v-86b162f5]{width:100%;height:100%}.is-add[data-v-86b162f5]{display:flex;align-items:center;justify-content:center}.icon-add[data-v-86b162f5]{width:50px;height:5px;background-color:#f1f1f1;border-radius:2px}.rotate[data-v-86b162f5]{position:absolute;transform:rotate(90deg)}.icon-del-box[data-v-86b162f5]{display:flex;align-items:center;justify-content:center;position:absolute;top:3px;right:3px;height:26px;width:26px;border-radius:50%;background-color:rgba(0,0,0,.5);z-index:2;transform:rotate(-45deg)}.icon-del[data-v-86b162f5]{width:15px;height:2px;background-color:#fff;border-radius:2px}.uni-file-picker__files[data-v-e61666c7]{display:flex;flex-direction:column;justify-content:flex-start}.uni-file-picker__lists[data-v-e61666c7]{position:relative;margin-top:5px;overflow:hidden}.file-picker__mask[data-v-e61666c7]{display:flex;justify-content:center;align-items:center;position:absolute;right:0;top:0;bottom:0;left:0;color:#fff;font-size:14px;background-color:rgba(0,0,0,.4)}.uni-file-picker__lists-box[data-v-e61666c7]{position:relative}.uni-file-picker__item[data-v-e61666c7]{display:flex;align-items:center;padding:8px 5px 8px 10px}.files-border[data-v-e61666c7]{border-top:1px #eee solid}.files__name[data-v-e61666c7]{flex:1;font-size:14px;color:#666;margin-right:25px;word-break:break-all;word-wrap:break-word}.icon-files[data-v-e61666c7]{position:static;background-color:initial}.is-list-card[data-v-e61666c7]{border:1px #eee solid;margin-bottom:5px;border-radius:5px;box-shadow:0 0 2px rgba(0,0,0,.1);padding:5px}.files__image[data-v-e61666c7]{width:40px;height:40px;margin-right:10px}.header-image[data-v-e61666c7]{width:100%;height:100%}.is-text-box[data-v-e61666c7]{border:1px #eee solid;border-radius:5px}.is-text-image[data-v-e61666c7]{width:25px;height:25px;margin-left:5px}.rotate[data-v-e61666c7]{position:absolute;transform:rotate(90deg)}.icon-del-box[data-v-e61666c7]{display:flex;margin:auto 0;align-items:center;justify-content:center;position:absolute;top:0;bottom:0;right:5px;height:26px;width:26px;z-index:2;transform:rotate(-45deg)}.icon-del[data-v-e61666c7]{width:15px;height:1px;background-color:#333}.uni-file-picker[data-v-086f9922]{box-sizing:border-box;overflow:hidden;width:100%;flex:1}.uni-file-picker__header[data-v-086f9922]{padding-top:5px;padding-bottom:10px;display:flex;justify-content:space-between}.file-title[data-v-086f9922]{font-size:14px;color:#333}.file-count[data-v-086f9922]{font-size:14px;color:#999}.is-add[data-v-086f9922]{display:flex;align-items:center;justify-content:center}.icon-add[data-v-086f9922]{width:50px;height:5px;background-color:#f1f1f1;border-radius:2px}.rotate[data-v-086f9922]{position:absolute;transform:rotate(90deg)}.uni-easyinput[data-v-d17898f6]{width:100%;flex:1;position:relative;text-align:left;color:#333;font-size:14px}.uni-easyinput__content[data-v-d17898f6]{flex:1;width:100%;display:flex;box-sizing:border-box;flex-direction:row;align-items:center;border-color:#fff;transition-property:border-color;transition-duration:.3s}.uni-easyinput__content-input[data-v-d17898f6]{width:auto;position:relative;overflow:hidden;flex:1;line-height:1;font-size:14px;height:35px}.uni-easyinput__content-input[data-v-d17898f6] ::-ms-reveal{display:none}.uni-easyinput__content-input[data-v-d17898f6] ::-ms-clear{display:none}.uni-easyinput__content-input[data-v-d17898f6] ::-o-clear{display:none}.uni-easyinput__placeholder-class[data-v-d17898f6]{color:#999;font-size:12px}.is-textarea[data-v-d17898f6]{align-items:flex-start}.is-textarea-icon[data-v-d17898f6]{margin-top:5px}.uni-easyinput__content-textarea[data-v-d17898f6]{position:relative;overflow:hidden;flex:1;line-height:1.5;font-size:14px;margin:6px 6px 6px 0;height:80px;min-height:80px;width:auto}.input-padding[data-v-d17898f6]{padding-left:10px}.content-clear-icon[data-v-d17898f6]{padding:0 5px}.label-icon[data-v-d17898f6]{margin-right:5px;margin-top:-1px}.is-input-border[data-v-d17898f6]{display:flex;box-sizing:border-box;flex-direction:row;align-items:center;border:1px solid #dcdfe6;border-radius:4px}.uni-error-message[data-v-d17898f6]{position:absolute;bottom:-17px;left:0;line-height:12px;color:#e43d33;font-size:12px;text-align:left}.uni-error-msg--boeder[data-v-d17898f6]{position:relative;bottom:0;line-height:22px}.is-input-error-border[data-v-d17898f6]{border-color:#e43d33}.is-input-error-border .uni-easyinput__placeholder-class[data-v-d17898f6]{color:#f29e99}.uni-easyinput--border[data-v-d17898f6]{margin-bottom:0;padding:10px 15px;border-top:1px #eee solid}.uni-easyinput-error[data-v-d17898f6]{padding-bottom:0}.is-first-border[data-v-d17898f6]{border:none}.is-disabled[data-v-d17898f6]{background-color:#f7f6f6;color:#d5d5d5}.is-disabled .uni-easyinput__placeholder-class[data-v-d17898f6]{color:#d5d5d5;font-size:12px}.uni-popup[data-v-9c09fb6f]{position:fixed;z-index:99}.uni-popup.top[data-v-9c09fb6f],.uni-popup.left[data-v-9c09fb6f],.uni-popup.right[data-v-9c09fb6f]{top:0}.uni-popup .uni-popup__wrapper[data-v-9c09fb6f]{display:block;position:relative}.uni-popup .uni-popup__wrapper.left[data-v-9c09fb6f],.uni-popup .uni-popup__wrapper.right[data-v-9c09fb6f]{padding-top:0;flex:1}.fixforpc-z-index[data-v-9c09fb6f]{z-index:999}.fixforpc-top[data-v-9c09fb6f]{top:0}.customthree-tree-select-content.border[data-v-50ed94e6]{border-left:1px solid #c8c7cc}.customthree-tree-select-content[data-v-50ed94e6] .uni-checkbox-input{margin:0!important}.customthree-tree-select-content .item-content[data-v-50ed94e6]{margin:0 0 12px;display:flex;justify-content:space-between;align-items:center;position:relative}.customthree-tree-select-content .item-content[data-v-50ed94e6]:after{content:"";position:absolute;top:0;left:0;bottom:0;width:3px;background-color:#fff;transform:translate(-2px);z-index:1}.customthree-tree-select-content .item-content .left[data-v-50ed94e6]{flex:1;display:flex;align-items:center}.customthree-tree-select-content .item-content .left .right-icon[data-v-50ed94e6]{transition:.15s ease}.customthree-tree-select-content .item-content .left .right-icon.active[data-v-50ed94e6]{transform:rotate(90deg)}.customthree-tree-select-content .item-content .left .smallcircle-filled[data-v-50ed94e6]{width:14px;height:13.6px;display:flex;align-items:center}.customthree-tree-select-content .item-content .left .smallcircle-filled .smallcircle-filled-icon[data-v-50ed94e6]{transform-origin:center;transform:scale(.55)}.customthree-tree-select-content .item-content .left .loading-icon-box[data-v-50ed94e6]{margin-right:5px;width:14px;height:100%;display:flex;justify-content:center;align-items:center}.customthree-tree-select-content .item-content .left .loading-icon-box .loading-icon[data-v-50ed94e6]{transform-origin:center;animation:rotating-50ed94e6 infinite .2s ease}.customthree-tree-select-content .item-content .left .name[data-v-50ed94e6]{flex:1}.customthree-tree-select-content .check-box[data-v-50ed94e6]{margin:0;padding:0;box-sizing:border-box;width:23.6px;height:23.6px;border:1px solid #c8c7cc;display:flex;justify-content:center;align-items:center}.customthree-tree-select-content .check-box.disabled[data-v-50ed94e6]{background-color:#e1e1e1}.customthree-tree-select-content .check-box .part-checked[data-v-50ed94e6]{width:60%;height:2px;background-color:#007aff}@keyframes rotating-50ed94e6{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.select-list[data-v-0768d7c7]{padding-left:10px;min-height:35px;display:flex;justify-content:space-between;align-items:center}.select-list.active[data-v-0768d7c7]{padding:2px 0 2px 10px}.select-list .left[data-v-0768d7c7]{flex:1}.select-list .left .select-items[data-v-0768d7c7]{display:flex;flex-wrap:wrap}.select-list .left .select-item[data-v-0768d7c7]{max-width:auto;height:auto;display:flex;align-items:center}.select-list .left .select-item .name[data-v-0768d7c7]{flex:1;font-size:14px}.select-list .left .select-item .close[data-v-0768d7c7]{width:18px;height:18px;display:flex;justify-content:center;align-items:center;overflow:hidden}.select-list.disabled[data-v-0768d7c7]{background-color:#f5f7fa}.select-list.disabled .left .select-item .name[data-v-0768d7c7]{padding:0}.popup-content[data-v-0768d7c7]{flex:1;background-color:#fff;border-top-left-radius:20px;border-top-right-radius:20px;display:flex;flex-direction:column}.popup-content .title[data-v-0768d7c7]{padding:8px 3rem;border-bottom:1px solid #c8c7cc;font-size:14px;display:flex;justify-content:space-between;position:relative}.popup-content .title .left[data-v-0768d7c7]{position:absolute;left:10px}.popup-content .title .center[data-v-0768d7c7]{flex:1;text-align:center}.popup-content .title .right[data-v-0768d7c7]{position:absolute;right:10px}.popup-content .search-box[data-v-0768d7c7]{margin:8px 10px 0;background-color:#fff;display:flex;align-items:center}.popup-content .search-box .search-btn[data-v-0768d7c7]{margin-left:10px;height:35px;line-height:35px}.popup-content .select-content[data-v-0768d7c7]{margin:8px 10px;flex:1;overflow:hidden;position:relative}.popup-content .scroll-view-box[data-v-0768d7c7]{touch-action:none;flex:1;position:absolute;top:0;right:0;bottom:0;left:0}.popup-content .sentry[data-v-0768d7c7]{height:48px}.no-data[data-v-0768d7c7]{font-size:.875rem;color:#999}body{background-color:#fff}.btn[data-v-6e3acbe9]{border-top:1px solid #EFEFEF;height:3.75rem;justify-content:center;position:fixed;bottom:0;width:100vw}.btn uni-view[data-v-6e3acbe9]{width:21.5625rem;height:2.75rem;background:#01508b;border-radius:.5rem;font-size:.875rem;color:#fff;text-align:center;line-height:2.75rem}.input_box[data-v-6e3acbe9]{height:3.125rem}.input_box .title[data-v-6e3acbe9]{font-size:.875rem;color:#333}.input_box uni-input[data-v-6e3acbe9]{flex:1;height:100%;text-align:right;font-size:.875rem;color:#333}.form[data-v-6e3acbe9]{padding:0 .9375rem;background-color:#fff}.form .title[data-v-6e3acbe9]{font-size:.875rem;color:#333}.form .box[data-v-6e3acbe9]{height:3.125rem}.form .box[data-v-6e3acbe9]:not(:last-child){border-bottom:1px solid #EFEFEF}.form .choose[data-v-6e3acbe9]{font-size:.875rem;color:#999}.form .choosed[data-v-6e3acbe9]{font-size:.875rem;color:#333} diff --git a/unpackage/dist/build/app-plus/pages/login/login.css b/unpackage/dist/build/app-plus/pages/login/login.css new file mode 100644 index 0000000..11299b4 --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/login/login.css @@ -0,0 +1 @@ +[data-v-6ad77018] .uni-select{border:none;padding-left:0;height:2.75rem}[data-v-6ad77018] .uni-select__input-placeholder{font-size:.875rem;color:#999}[data-v-6ad77018] .uni-icons{display:none}.logo[data-v-6ad77018]{padding-top:5.75rem}.logo uni-image[data-v-6ad77018]{width:14.84375rem;height:6.21875rem}.form[data-v-6ad77018]{margin-top:1.875rem}.form .box[data-v-6ad77018]{width:17.8125rem;height:2.75rem;background:#f8f8f8;border-radius:1.375rem;padding:0 .9375rem;margin-top:1.25rem;position:relative}.form .box .account_box[data-v-6ad77018]{position:absolute;top:3.125rem;left:2.8125rem;width:15.625rem;background-color:#fff;box-shadow:0 0 3px 1px #dfdfdf;z-index:99;border-radius:.3125rem}.form .box .account_box .account[data-v-6ad77018]{max-height:6.25rem;overflow-y:auto}.form .box .account_box .account uni-view[data-v-6ad77018]{padding:.3125rem}.form .box uni-image[data-v-6ad77018]{width:1.25rem;height:1.25rem;margin-right:.625rem}.form .box uni-input[data-v-6ad77018]{height:100%;flex:1}.pwd[data-v-6ad77018]{justify-content:flex-end;margin-top:.625rem;margin-right:1.875rem;font-size:.75rem;color:#01508b}.pwd uni-image[data-v-6ad77018]{width:1.0625rem;height:1.0625rem;margin-right:.125rem}.login[data-v-6ad77018]{margin-top:1.96875rem}.login uni-view[data-v-6ad77018]{width:19.6875rem;height:2.75rem;background:#4e74fb;border-radius:1.375rem;font-size:1rem;color:#fff;text-align:center;line-height:2.75rem} diff --git a/unpackage/dist/build/app-plus/pages/meeting/detail.css b/unpackage/dist/build/app-plus/pages/meeting/detail.css new file mode 100644 index 0000000..eff53d1 --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/meeting/detail.css @@ -0,0 +1 @@ +.content[data-v-7441efc4]{padding-bottom:3.75rem}.btn[data-v-7441efc4]{position:fixed;bottom:0;width:21.5625rem;height:3.75rem;background:#fff;padding:0 .9375rem;border-top:1px solid #EFEFEF}.btn uni-view[data-v-7441efc4]{width:10.3125rem;height:2.75rem;font-size:.875rem;border-radius:.5rem;text-align:center;line-height:2.75rem}.btn .refuse[data-v-7441efc4]{box-sizing:border-box;background:#fff;border:.0625rem solid #01508B;color:#01508b}.btn .agree[data-v-7441efc4]{background:#01508b;color:#fff}.list_box .list[data-v-7441efc4]{padding:.9375rem;margin-bottom:.9375rem}.list_box .list .title[data-v-7441efc4]{border-bottom:1px solid #efefef;padding-bottom:.75rem;margin-bottom:.25rem}.list_box .list .title uni-view[data-v-7441efc4]{font-size:.875rem;color:#333}.list_box .list .title uni-text[data-v-7441efc4]{font-size:.875rem;color:#999}.list_box .list .info[data-v-7441efc4]{font-size:.875rem;color:#666}.list_box .list .info uni-view[data-v-7441efc4]{padding-top:.5rem;font-size:.875rem;color:#666}.list_box .list .info uni-text[data-v-7441efc4]{font-size:.875rem;color:#333}.list_box .list .info .person[data-v-7441efc4]{flex-wrap:wrap}.list_box .list .info .person .item[data-v-7441efc4]{width:16.66%}.list_box .list .info .person uni-image[data-v-7441efc4]{width:2.4375rem;height:2.4375rem;border-radius:1.1875rem;background-color:#01508b}.list_box .list .btn[data-v-7441efc4]{margin-top:.9375rem}.list_box .list .btn uni-view[data-v-7441efc4]{width:9.375rem;height:2rem;border-radius:.25rem;font-size:.875rem;text-align:center;line-height:2rem}.list_box .list .btn .entrust[data-v-7441efc4]{background:#fff;border:.0625rem solid #01508B;box-sizing:border-box;color:#01508b}.list_box .list .btn .handle[data-v-7441efc4]{background:#01508b;color:#fff} diff --git a/unpackage/dist/build/app-plus/pages/meeting/index.css b/unpackage/dist/build/app-plus/pages/meeting/index.css new file mode 100644 index 0000000..e7aef24 --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/meeting/index.css @@ -0,0 +1 @@ +.uniui-cart-filled[data-v-5610c8db]:before{content:"\e6d0"}.uniui-gift-filled[data-v-5610c8db]:before{content:"\e6c4"}.uniui-color[data-v-5610c8db]:before{content:"\e6cf"}.uniui-wallet[data-v-5610c8db]:before{content:"\e6b1"}.uniui-settings-filled[data-v-5610c8db]:before{content:"\e6ce"}.uniui-auth-filled[data-v-5610c8db]:before{content:"\e6cc"}.uniui-shop-filled[data-v-5610c8db]:before{content:"\e6cd"}.uniui-staff-filled[data-v-5610c8db]:before{content:"\e6cb"}.uniui-vip-filled[data-v-5610c8db]:before{content:"\e6c6"}.uniui-plus-filled[data-v-5610c8db]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-5610c8db]:before{content:"\e6c8"}.uniui-color-filled[data-v-5610c8db]:before{content:"\e6c9"}.uniui-tune-filled[data-v-5610c8db]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-5610c8db]:before{content:"\e6c0"}.uniui-notification-filled[data-v-5610c8db]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-5610c8db]:before{content:"\e6c2"}.uniui-medal-filled[data-v-5610c8db]:before{content:"\e6c3"}.uniui-fire-filled[data-v-5610c8db]:before{content:"\e6c5"}.uniui-refreshempty[data-v-5610c8db]:before{content:"\e6bf"}.uniui-location-filled[data-v-5610c8db]:before{content:"\e6af"}.uniui-person-filled[data-v-5610c8db]:before{content:"\e69d"}.uniui-personadd-filled[data-v-5610c8db]:before{content:"\e698"}.uniui-arrowthinleft[data-v-5610c8db]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-5610c8db]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-5610c8db]:before{content:"\e6d4"}.uniui-back[data-v-5610c8db]:before{content:"\e6b9"}.uniui-forward[data-v-5610c8db]:before{content:"\e6ba"}.uniui-arrow-right[data-v-5610c8db]:before{content:"\e6bb"}.uniui-arrow-left[data-v-5610c8db]:before{content:"\e6bc"}.uniui-arrow-up[data-v-5610c8db]:before{content:"\e6bd"}.uniui-arrow-down[data-v-5610c8db]:before{content:"\e6be"}.uniui-arrowthinright[data-v-5610c8db]:before{content:"\e6d1"}.uniui-down[data-v-5610c8db]:before{content:"\e6b8"}.uniui-bottom[data-v-5610c8db]:before{content:"\e6b8"}.uniui-arrowright[data-v-5610c8db]:before{content:"\e6d5"}.uniui-right[data-v-5610c8db]:before{content:"\e6b5"}.uniui-up[data-v-5610c8db]:before{content:"\e6b6"}.uniui-top[data-v-5610c8db]:before{content:"\e6b6"}.uniui-left[data-v-5610c8db]:before{content:"\e6b7"}.uniui-arrowup[data-v-5610c8db]:before{content:"\e6d6"}.uniui-eye[data-v-5610c8db]:before{content:"\e651"}.uniui-eye-filled[data-v-5610c8db]:before{content:"\e66a"}.uniui-eye-slash[data-v-5610c8db]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-5610c8db]:before{content:"\e6b4"}.uniui-info-filled[data-v-5610c8db]:before{content:"\e649"}.uniui-reload[data-v-5610c8db]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-5610c8db]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-5610c8db]:before{content:"\e6ac"}.uniui-map-pin[data-v-5610c8db]:before{content:"\e6ad"}.uniui-location[data-v-5610c8db]:before{content:"\e6ae"}.uniui-starhalf[data-v-5610c8db]:before{content:"\e683"}.uniui-star[data-v-5610c8db]:before{content:"\e688"}.uniui-star-filled[data-v-5610c8db]:before{content:"\e68f"}.uniui-calendar[data-v-5610c8db]:before{content:"\e6a0"}.uniui-fire[data-v-5610c8db]:before{content:"\e6a1"}.uniui-medal[data-v-5610c8db]:before{content:"\e6a2"}.uniui-font[data-v-5610c8db]:before{content:"\e6a3"}.uniui-gift[data-v-5610c8db]:before{content:"\e6a4"}.uniui-link[data-v-5610c8db]:before{content:"\e6a5"}.uniui-notification[data-v-5610c8db]:before{content:"\e6a6"}.uniui-staff[data-v-5610c8db]:before{content:"\e6a7"}.uniui-vip[data-v-5610c8db]:before{content:"\e6a8"}.uniui-folder-add[data-v-5610c8db]:before{content:"\e6a9"}.uniui-tune[data-v-5610c8db]:before{content:"\e6aa"}.uniui-auth[data-v-5610c8db]:before{content:"\e6ab"}.uniui-person[data-v-5610c8db]:before{content:"\e699"}.uniui-email-filled[data-v-5610c8db]:before{content:"\e69a"}.uniui-phone-filled[data-v-5610c8db]:before{content:"\e69b"}.uniui-phone[data-v-5610c8db]:before{content:"\e69c"}.uniui-email[data-v-5610c8db]:before{content:"\e69e"}.uniui-personadd[data-v-5610c8db]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-5610c8db]:before{content:"\e692"}.uniui-contact[data-v-5610c8db]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-5610c8db]:before{content:"\e694"}.uniui-contact-filled[data-v-5610c8db]:before{content:"\e695"}.uniui-chatboxes[data-v-5610c8db]:before{content:"\e696"}.uniui-chatbubble[data-v-5610c8db]:before{content:"\e697"}.uniui-upload-filled[data-v-5610c8db]:before{content:"\e68e"}.uniui-upload[data-v-5610c8db]:before{content:"\e690"}.uniui-weixin[data-v-5610c8db]:before{content:"\e691"}.uniui-compose[data-v-5610c8db]:before{content:"\e67f"}.uniui-qq[data-v-5610c8db]:before{content:"\e680"}.uniui-download-filled[data-v-5610c8db]:before{content:"\e681"}.uniui-pyq[data-v-5610c8db]:before{content:"\e682"}.uniui-sound[data-v-5610c8db]:before{content:"\e684"}.uniui-trash-filled[data-v-5610c8db]:before{content:"\e685"}.uniui-sound-filled[data-v-5610c8db]:before{content:"\e686"}.uniui-trash[data-v-5610c8db]:before{content:"\e687"}.uniui-videocam-filled[data-v-5610c8db]:before{content:"\e689"}.uniui-spinner-cycle[data-v-5610c8db]:before{content:"\e68a"}.uniui-weibo[data-v-5610c8db]:before{content:"\e68b"}.uniui-videocam[data-v-5610c8db]:before{content:"\e68c"}.uniui-download[data-v-5610c8db]:before{content:"\e68d"}.uniui-help[data-v-5610c8db]:before{content:"\e679"}.uniui-navigate-filled[data-v-5610c8db]:before{content:"\e67a"}.uniui-plusempty[data-v-5610c8db]:before{content:"\e67b"}.uniui-smallcircle[data-v-5610c8db]:before{content:"\e67c"}.uniui-minus-filled[data-v-5610c8db]:before{content:"\e67d"}.uniui-micoff[data-v-5610c8db]:before{content:"\e67e"}.uniui-closeempty[data-v-5610c8db]:before{content:"\e66c"}.uniui-clear[data-v-5610c8db]:before{content:"\e66d"}.uniui-navigate[data-v-5610c8db]:before{content:"\e66e"}.uniui-minus[data-v-5610c8db]:before{content:"\e66f"}.uniui-image[data-v-5610c8db]:before{content:"\e670"}.uniui-mic[data-v-5610c8db]:before{content:"\e671"}.uniui-paperplane[data-v-5610c8db]:before{content:"\e672"}.uniui-close[data-v-5610c8db]:before{content:"\e673"}.uniui-help-filled[data-v-5610c8db]:before{content:"\e674"}.uniui-paperplane-filled[data-v-5610c8db]:before{content:"\e675"}.uniui-plus[data-v-5610c8db]:before{content:"\e676"}.uniui-mic-filled[data-v-5610c8db]:before{content:"\e677"}.uniui-image-filled[data-v-5610c8db]:before{content:"\e678"}.uniui-locked-filled[data-v-5610c8db]:before{content:"\e668"}.uniui-info[data-v-5610c8db]:before{content:"\e669"}.uniui-locked[data-v-5610c8db]:before{content:"\e66b"}.uniui-camera-filled[data-v-5610c8db]:before{content:"\e658"}.uniui-chat-filled[data-v-5610c8db]:before{content:"\e659"}.uniui-camera[data-v-5610c8db]:before{content:"\e65a"}.uniui-circle[data-v-5610c8db]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-5610c8db]:before{content:"\e65c"}.uniui-chat[data-v-5610c8db]:before{content:"\e65d"}.uniui-circle-filled[data-v-5610c8db]:before{content:"\e65e"}.uniui-flag[data-v-5610c8db]:before{content:"\e65f"}.uniui-flag-filled[data-v-5610c8db]:before{content:"\e660"}.uniui-gear-filled[data-v-5610c8db]:before{content:"\e661"}.uniui-home[data-v-5610c8db]:before{content:"\e662"}.uniui-home-filled[data-v-5610c8db]:before{content:"\e663"}.uniui-gear[data-v-5610c8db]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-5610c8db]:before{content:"\e665"}.uniui-map-filled[data-v-5610c8db]:before{content:"\e666"}.uniui-map[data-v-5610c8db]:before{content:"\e667"}.uniui-refresh-filled[data-v-5610c8db]:before{content:"\e656"}.uniui-refresh[data-v-5610c8db]:before{content:"\e657"}.uniui-cloud-upload[data-v-5610c8db]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-5610c8db]:before{content:"\e646"}.uniui-cloud-download[data-v-5610c8db]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-5610c8db]:before{content:"\e648"}.uniui-redo[data-v-5610c8db]:before{content:"\e64a"}.uniui-images-filled[data-v-5610c8db]:before{content:"\e64b"}.uniui-undo-filled[data-v-5610c8db]:before{content:"\e64c"}.uniui-more[data-v-5610c8db]:before{content:"\e64d"}.uniui-more-filled[data-v-5610c8db]:before{content:"\e64e"}.uniui-undo[data-v-5610c8db]:before{content:"\e64f"}.uniui-images[data-v-5610c8db]:before{content:"\e650"}.uniui-paperclip[data-v-5610c8db]:before{content:"\e652"}.uniui-settings[data-v-5610c8db]:before{content:"\e653"}.uniui-search[data-v-5610c8db]:before{content:"\e654"}.uniui-redo-filled[data-v-5610c8db]:before{content:"\e655"}.uniui-list[data-v-5610c8db]:before{content:"\e644"}.uniui-mail-open-filled[data-v-5610c8db]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-5610c8db]:before{content:"\e63c"}.uniui-hand-down[data-v-5610c8db]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-5610c8db]:before{content:"\e63e"}.uniui-hand-up[data-v-5610c8db]:before{content:"\e63f"}.uniui-heart-filled[data-v-5610c8db]:before{content:"\e641"}.uniui-mail-open[data-v-5610c8db]:before{content:"\e643"}.uniui-heart[data-v-5610c8db]:before{content:"\e639"}.uniui-loop[data-v-5610c8db]:before{content:"\e633"}.uniui-pulldown[data-v-5610c8db]:before{content:"\e632"}.uniui-scan[data-v-5610c8db]:before{content:"\e62a"}.uniui-bars[data-v-5610c8db]:before{content:"\e627"}.uniui-checkbox[data-v-5610c8db]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-5610c8db]:before{content:"\e62c"}.uniui-shop[data-v-5610c8db]:before{content:"\e62f"}.uniui-headphones[data-v-5610c8db]:before{content:"\e630"}.uniui-cart[data-v-5610c8db]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-5610c8db]{font-family:uniicons;text-decoration:none;text-align:center}.nav[data-v-566e182b]{width:calc(100% - 1.875rem);padding:0 .9375rem;height:var(--bc08538a);background:linear-gradient(270deg,#256fbc,#044d87);font-size:.75rem;color:#fff;position:fixed;top:0;left:0;z-index:99}.place[data-v-566e182b]{height:var(--bc08538a)}.nav_box[data-v-c839cafa]{position:absolute;bottom:.4375rem;width:100%;left:0}.back[data-v-c839cafa]{padding:0 .9375rem}.search[data-v-c839cafa]{position:relative;padding-right:.9375rem;flex:1}.search uni-view[data-v-c839cafa]{position:absolute;left:.875rem;top:50%;transform:translateY(-50%);font-size:.875rem;color:#999}.search uni-input[data-v-c839cafa]{flex:1;height:2.25rem;background:#f8f8f8;border-radius:1.375rem;padding:0 .875rem}.search uni-image[data-v-c839cafa]{width:1.0625rem;height:1.0625rem;margin-right:.5rem}.list_box[data-v-c839cafa]{padding:.4375rem .9375rem 0;margin-top:.75rem}.list_box .list[data-v-c839cafa]{background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;padding:.9375rem;margin-bottom:.9375rem}.list_box .list .title[data-v-c839cafa]{border-bottom:1px solid #efefef;padding-bottom:.75rem;margin-bottom:.25rem}.list_box .list .title uni-view[data-v-c839cafa]{font-size:.875rem;color:#333}.list_box .list .title uni-text[data-v-c839cafa]{font-size:.875rem;color:#999}.list_box .list .info[data-v-c839cafa]{font-size:.875rem;color:#666}.list_box .list .info uni-view[data-v-c839cafa]{padding-top:.5rem}.list_box .list .btn[data-v-c839cafa]{margin-top:.9375rem}.list_box .list .btn uni-view[data-v-c839cafa]{width:9.375rem;height:2rem;border-radius:.25rem;font-size:.875rem;text-align:center;line-height:2rem}.list_box .list .btn .entrust[data-v-c839cafa]{background:#fff;border:.0625rem solid #01508B;box-sizing:border-box;color:#01508b}.list_box .list .btn .handle[data-v-c839cafa]{background:#01508b;color:#fff}.refused[data-v-c839cafa]{color:#333}.agreed[data-v-c839cafa]{color:#01508b}.handled[data-v-c839cafa]{justify-content:flex-end;margin-top:.9375rem}.handled uni-view[data-v-c839cafa]{width:4.6875rem;height:2rem;background:#efefef;border-radius:.25rem;text-align:center;line-height:2rem;font-size:.875rem} diff --git a/unpackage/dist/build/app-plus/pages/product/index.css b/unpackage/dist/build/app-plus/pages/product/index.css new file mode 100644 index 0000000..d7b812d --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/product/index.css @@ -0,0 +1 @@ +.uniui-cart-filled[data-v-5610c8db]:before{content:"\e6d0"}.uniui-gift-filled[data-v-5610c8db]:before{content:"\e6c4"}.uniui-color[data-v-5610c8db]:before{content:"\e6cf"}.uniui-wallet[data-v-5610c8db]:before{content:"\e6b1"}.uniui-settings-filled[data-v-5610c8db]:before{content:"\e6ce"}.uniui-auth-filled[data-v-5610c8db]:before{content:"\e6cc"}.uniui-shop-filled[data-v-5610c8db]:before{content:"\e6cd"}.uniui-staff-filled[data-v-5610c8db]:before{content:"\e6cb"}.uniui-vip-filled[data-v-5610c8db]:before{content:"\e6c6"}.uniui-plus-filled[data-v-5610c8db]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-5610c8db]:before{content:"\e6c8"}.uniui-color-filled[data-v-5610c8db]:before{content:"\e6c9"}.uniui-tune-filled[data-v-5610c8db]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-5610c8db]:before{content:"\e6c0"}.uniui-notification-filled[data-v-5610c8db]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-5610c8db]:before{content:"\e6c2"}.uniui-medal-filled[data-v-5610c8db]:before{content:"\e6c3"}.uniui-fire-filled[data-v-5610c8db]:before{content:"\e6c5"}.uniui-refreshempty[data-v-5610c8db]:before{content:"\e6bf"}.uniui-location-filled[data-v-5610c8db]:before{content:"\e6af"}.uniui-person-filled[data-v-5610c8db]:before{content:"\e69d"}.uniui-personadd-filled[data-v-5610c8db]:before{content:"\e698"}.uniui-arrowthinleft[data-v-5610c8db]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-5610c8db]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-5610c8db]:before{content:"\e6d4"}.uniui-back[data-v-5610c8db]:before{content:"\e6b9"}.uniui-forward[data-v-5610c8db]:before{content:"\e6ba"}.uniui-arrow-right[data-v-5610c8db]:before{content:"\e6bb"}.uniui-arrow-left[data-v-5610c8db]:before{content:"\e6bc"}.uniui-arrow-up[data-v-5610c8db]:before{content:"\e6bd"}.uniui-arrow-down[data-v-5610c8db]:before{content:"\e6be"}.uniui-arrowthinright[data-v-5610c8db]:before{content:"\e6d1"}.uniui-down[data-v-5610c8db]:before{content:"\e6b8"}.uniui-bottom[data-v-5610c8db]:before{content:"\e6b8"}.uniui-arrowright[data-v-5610c8db]:before{content:"\e6d5"}.uniui-right[data-v-5610c8db]:before{content:"\e6b5"}.uniui-up[data-v-5610c8db]:before{content:"\e6b6"}.uniui-top[data-v-5610c8db]:before{content:"\e6b6"}.uniui-left[data-v-5610c8db]:before{content:"\e6b7"}.uniui-arrowup[data-v-5610c8db]:before{content:"\e6d6"}.uniui-eye[data-v-5610c8db]:before{content:"\e651"}.uniui-eye-filled[data-v-5610c8db]:before{content:"\e66a"}.uniui-eye-slash[data-v-5610c8db]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-5610c8db]:before{content:"\e6b4"}.uniui-info-filled[data-v-5610c8db]:before{content:"\e649"}.uniui-reload[data-v-5610c8db]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-5610c8db]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-5610c8db]:before{content:"\e6ac"}.uniui-map-pin[data-v-5610c8db]:before{content:"\e6ad"}.uniui-location[data-v-5610c8db]:before{content:"\e6ae"}.uniui-starhalf[data-v-5610c8db]:before{content:"\e683"}.uniui-star[data-v-5610c8db]:before{content:"\e688"}.uniui-star-filled[data-v-5610c8db]:before{content:"\e68f"}.uniui-calendar[data-v-5610c8db]:before{content:"\e6a0"}.uniui-fire[data-v-5610c8db]:before{content:"\e6a1"}.uniui-medal[data-v-5610c8db]:before{content:"\e6a2"}.uniui-font[data-v-5610c8db]:before{content:"\e6a3"}.uniui-gift[data-v-5610c8db]:before{content:"\e6a4"}.uniui-link[data-v-5610c8db]:before{content:"\e6a5"}.uniui-notification[data-v-5610c8db]:before{content:"\e6a6"}.uniui-staff[data-v-5610c8db]:before{content:"\e6a7"}.uniui-vip[data-v-5610c8db]:before{content:"\e6a8"}.uniui-folder-add[data-v-5610c8db]:before{content:"\e6a9"}.uniui-tune[data-v-5610c8db]:before{content:"\e6aa"}.uniui-auth[data-v-5610c8db]:before{content:"\e6ab"}.uniui-person[data-v-5610c8db]:before{content:"\e699"}.uniui-email-filled[data-v-5610c8db]:before{content:"\e69a"}.uniui-phone-filled[data-v-5610c8db]:before{content:"\e69b"}.uniui-phone[data-v-5610c8db]:before{content:"\e69c"}.uniui-email[data-v-5610c8db]:before{content:"\e69e"}.uniui-personadd[data-v-5610c8db]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-5610c8db]:before{content:"\e692"}.uniui-contact[data-v-5610c8db]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-5610c8db]:before{content:"\e694"}.uniui-contact-filled[data-v-5610c8db]:before{content:"\e695"}.uniui-chatboxes[data-v-5610c8db]:before{content:"\e696"}.uniui-chatbubble[data-v-5610c8db]:before{content:"\e697"}.uniui-upload-filled[data-v-5610c8db]:before{content:"\e68e"}.uniui-upload[data-v-5610c8db]:before{content:"\e690"}.uniui-weixin[data-v-5610c8db]:before{content:"\e691"}.uniui-compose[data-v-5610c8db]:before{content:"\e67f"}.uniui-qq[data-v-5610c8db]:before{content:"\e680"}.uniui-download-filled[data-v-5610c8db]:before{content:"\e681"}.uniui-pyq[data-v-5610c8db]:before{content:"\e682"}.uniui-sound[data-v-5610c8db]:before{content:"\e684"}.uniui-trash-filled[data-v-5610c8db]:before{content:"\e685"}.uniui-sound-filled[data-v-5610c8db]:before{content:"\e686"}.uniui-trash[data-v-5610c8db]:before{content:"\e687"}.uniui-videocam-filled[data-v-5610c8db]:before{content:"\e689"}.uniui-spinner-cycle[data-v-5610c8db]:before{content:"\e68a"}.uniui-weibo[data-v-5610c8db]:before{content:"\e68b"}.uniui-videocam[data-v-5610c8db]:before{content:"\e68c"}.uniui-download[data-v-5610c8db]:before{content:"\e68d"}.uniui-help[data-v-5610c8db]:before{content:"\e679"}.uniui-navigate-filled[data-v-5610c8db]:before{content:"\e67a"}.uniui-plusempty[data-v-5610c8db]:before{content:"\e67b"}.uniui-smallcircle[data-v-5610c8db]:before{content:"\e67c"}.uniui-minus-filled[data-v-5610c8db]:before{content:"\e67d"}.uniui-micoff[data-v-5610c8db]:before{content:"\e67e"}.uniui-closeempty[data-v-5610c8db]:before{content:"\e66c"}.uniui-clear[data-v-5610c8db]:before{content:"\e66d"}.uniui-navigate[data-v-5610c8db]:before{content:"\e66e"}.uniui-minus[data-v-5610c8db]:before{content:"\e66f"}.uniui-image[data-v-5610c8db]:before{content:"\e670"}.uniui-mic[data-v-5610c8db]:before{content:"\e671"}.uniui-paperplane[data-v-5610c8db]:before{content:"\e672"}.uniui-close[data-v-5610c8db]:before{content:"\e673"}.uniui-help-filled[data-v-5610c8db]:before{content:"\e674"}.uniui-paperplane-filled[data-v-5610c8db]:before{content:"\e675"}.uniui-plus[data-v-5610c8db]:before{content:"\e676"}.uniui-mic-filled[data-v-5610c8db]:before{content:"\e677"}.uniui-image-filled[data-v-5610c8db]:before{content:"\e678"}.uniui-locked-filled[data-v-5610c8db]:before{content:"\e668"}.uniui-info[data-v-5610c8db]:before{content:"\e669"}.uniui-locked[data-v-5610c8db]:before{content:"\e66b"}.uniui-camera-filled[data-v-5610c8db]:before{content:"\e658"}.uniui-chat-filled[data-v-5610c8db]:before{content:"\e659"}.uniui-camera[data-v-5610c8db]:before{content:"\e65a"}.uniui-circle[data-v-5610c8db]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-5610c8db]:before{content:"\e65c"}.uniui-chat[data-v-5610c8db]:before{content:"\e65d"}.uniui-circle-filled[data-v-5610c8db]:before{content:"\e65e"}.uniui-flag[data-v-5610c8db]:before{content:"\e65f"}.uniui-flag-filled[data-v-5610c8db]:before{content:"\e660"}.uniui-gear-filled[data-v-5610c8db]:before{content:"\e661"}.uniui-home[data-v-5610c8db]:before{content:"\e662"}.uniui-home-filled[data-v-5610c8db]:before{content:"\e663"}.uniui-gear[data-v-5610c8db]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-5610c8db]:before{content:"\e665"}.uniui-map-filled[data-v-5610c8db]:before{content:"\e666"}.uniui-map[data-v-5610c8db]:before{content:"\e667"}.uniui-refresh-filled[data-v-5610c8db]:before{content:"\e656"}.uniui-refresh[data-v-5610c8db]:before{content:"\e657"}.uniui-cloud-upload[data-v-5610c8db]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-5610c8db]:before{content:"\e646"}.uniui-cloud-download[data-v-5610c8db]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-5610c8db]:before{content:"\e648"}.uniui-redo[data-v-5610c8db]:before{content:"\e64a"}.uniui-images-filled[data-v-5610c8db]:before{content:"\e64b"}.uniui-undo-filled[data-v-5610c8db]:before{content:"\e64c"}.uniui-more[data-v-5610c8db]:before{content:"\e64d"}.uniui-more-filled[data-v-5610c8db]:before{content:"\e64e"}.uniui-undo[data-v-5610c8db]:before{content:"\e64f"}.uniui-images[data-v-5610c8db]:before{content:"\e650"}.uniui-paperclip[data-v-5610c8db]:before{content:"\e652"}.uniui-settings[data-v-5610c8db]:before{content:"\e653"}.uniui-search[data-v-5610c8db]:before{content:"\e654"}.uniui-redo-filled[data-v-5610c8db]:before{content:"\e655"}.uniui-list[data-v-5610c8db]:before{content:"\e644"}.uniui-mail-open-filled[data-v-5610c8db]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-5610c8db]:before{content:"\e63c"}.uniui-hand-down[data-v-5610c8db]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-5610c8db]:before{content:"\e63e"}.uniui-hand-up[data-v-5610c8db]:before{content:"\e63f"}.uniui-heart-filled[data-v-5610c8db]:before{content:"\e641"}.uniui-mail-open[data-v-5610c8db]:before{content:"\e643"}.uniui-heart[data-v-5610c8db]:before{content:"\e639"}.uniui-loop[data-v-5610c8db]:before{content:"\e633"}.uniui-pulldown[data-v-5610c8db]:before{content:"\e632"}.uniui-scan[data-v-5610c8db]:before{content:"\e62a"}.uniui-bars[data-v-5610c8db]:before{content:"\e627"}.uniui-checkbox[data-v-5610c8db]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-5610c8db]:before{content:"\e62c"}.uniui-shop[data-v-5610c8db]:before{content:"\e62f"}.uniui-headphones[data-v-5610c8db]:before{content:"\e630"}.uniui-cart[data-v-5610c8db]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-5610c8db]{font-family:uniicons;text-decoration:none;text-align:center}body[data-v-40acdf41]{background-color:#f8f8f8}.data_wrapper[data-v-40acdf41]{height:9rem;transition:all .3s;overflow:hidden}.close[data-v-40acdf41]{height:var(--09ebbe2f)}.info .item_box .item[data-v-40acdf41]{width:21.5625rem;background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;padding:.9375rem 0;margin-top:.75rem}.info .item_box .item .title_box[data-v-40acdf41]{padding:0 .9375rem;margin-bottom:-.625rem}.info .item_box .item .title[data-v-40acdf41]{font-size:.875rem;color:#333;background-image:url(../../static/index/line.png);background-size:1.375rem .40625rem;background-repeat:no-repeat;background-position:left bottom}.info .item_box .item .more[data-v-40acdf41]{font-size:.75rem;color:#999}.info .item_box .item .more uni-text[data-v-40acdf41]{margin-right:.1875rem}.info .item_box .item .data_box[data-v-40acdf41]{flex-wrap:wrap}.info .item_box .item .data_box .data[data-v-40acdf41]{width:33.33%;margin-top:1.875rem;height:2.5rem}.info .item_box .item .data_box .data uni-view[data-v-40acdf41]{font-size:1rem;color:#333;margin-bottom:.25rem}.info .item_box .item .data_box .data uni-text[data-v-40acdf41]{font-size:.75rem;color:#333} diff --git a/unpackage/dist/build/app-plus/pages/safe/detail.css b/unpackage/dist/build/app-plus/pages/safe/detail.css new file mode 100644 index 0000000..e0f0aed --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/safe/detail.css @@ -0,0 +1 @@ +.list[data-v-bc41e6b3]{flex-wrap:wrap}.list .item[data-v-bc41e6b3]{width:10.625rem;background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;margin-top:.625rem;font-size:.875rem;color:#333;line-height:1.25rem}.list .item .text[data-v-bc41e6b3]{padding:.5rem}.list .item uni-image[data-v-bc41e6b3]{width:10.625rem;height:6.25rem;border-radius:.5rem .5rem 0 0;background-color:#efefef;display:block}body{background-color:#f8f8f8}.content .title[data-v-ab4e5d54]{background-color:#fff;font-size:1rem;color:#333;line-height:1.40625rem;padding:.9375rem}.content uni-video[data-v-ab4e5d54]{width:23.4375rem;height:15.625rem}.listcom[data-v-ab4e5d54]{padding:0 .9375rem .9375rem;margin-top:.625rem;background-color:#fff} diff --git a/unpackage/dist/build/app-plus/pages/safe/manage.css b/unpackage/dist/build/app-plus/pages/safe/manage.css new file mode 100644 index 0000000..0c38099 --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/safe/manage.css @@ -0,0 +1 @@ +.uniui-cart-filled[data-v-5610c8db]:before{content:"\e6d0"}.uniui-gift-filled[data-v-5610c8db]:before{content:"\e6c4"}.uniui-color[data-v-5610c8db]:before{content:"\e6cf"}.uniui-wallet[data-v-5610c8db]:before{content:"\e6b1"}.uniui-settings-filled[data-v-5610c8db]:before{content:"\e6ce"}.uniui-auth-filled[data-v-5610c8db]:before{content:"\e6cc"}.uniui-shop-filled[data-v-5610c8db]:before{content:"\e6cd"}.uniui-staff-filled[data-v-5610c8db]:before{content:"\e6cb"}.uniui-vip-filled[data-v-5610c8db]:before{content:"\e6c6"}.uniui-plus-filled[data-v-5610c8db]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-5610c8db]:before{content:"\e6c8"}.uniui-color-filled[data-v-5610c8db]:before{content:"\e6c9"}.uniui-tune-filled[data-v-5610c8db]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-5610c8db]:before{content:"\e6c0"}.uniui-notification-filled[data-v-5610c8db]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-5610c8db]:before{content:"\e6c2"}.uniui-medal-filled[data-v-5610c8db]:before{content:"\e6c3"}.uniui-fire-filled[data-v-5610c8db]:before{content:"\e6c5"}.uniui-refreshempty[data-v-5610c8db]:before{content:"\e6bf"}.uniui-location-filled[data-v-5610c8db]:before{content:"\e6af"}.uniui-person-filled[data-v-5610c8db]:before{content:"\e69d"}.uniui-personadd-filled[data-v-5610c8db]:before{content:"\e698"}.uniui-arrowthinleft[data-v-5610c8db]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-5610c8db]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-5610c8db]:before{content:"\e6d4"}.uniui-back[data-v-5610c8db]:before{content:"\e6b9"}.uniui-forward[data-v-5610c8db]:before{content:"\e6ba"}.uniui-arrow-right[data-v-5610c8db]:before{content:"\e6bb"}.uniui-arrow-left[data-v-5610c8db]:before{content:"\e6bc"}.uniui-arrow-up[data-v-5610c8db]:before{content:"\e6bd"}.uniui-arrow-down[data-v-5610c8db]:before{content:"\e6be"}.uniui-arrowthinright[data-v-5610c8db]:before{content:"\e6d1"}.uniui-down[data-v-5610c8db]:before{content:"\e6b8"}.uniui-bottom[data-v-5610c8db]:before{content:"\e6b8"}.uniui-arrowright[data-v-5610c8db]:before{content:"\e6d5"}.uniui-right[data-v-5610c8db]:before{content:"\e6b5"}.uniui-up[data-v-5610c8db]:before{content:"\e6b6"}.uniui-top[data-v-5610c8db]:before{content:"\e6b6"}.uniui-left[data-v-5610c8db]:before{content:"\e6b7"}.uniui-arrowup[data-v-5610c8db]:before{content:"\e6d6"}.uniui-eye[data-v-5610c8db]:before{content:"\e651"}.uniui-eye-filled[data-v-5610c8db]:before{content:"\e66a"}.uniui-eye-slash[data-v-5610c8db]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-5610c8db]:before{content:"\e6b4"}.uniui-info-filled[data-v-5610c8db]:before{content:"\e649"}.uniui-reload[data-v-5610c8db]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-5610c8db]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-5610c8db]:before{content:"\e6ac"}.uniui-map-pin[data-v-5610c8db]:before{content:"\e6ad"}.uniui-location[data-v-5610c8db]:before{content:"\e6ae"}.uniui-starhalf[data-v-5610c8db]:before{content:"\e683"}.uniui-star[data-v-5610c8db]:before{content:"\e688"}.uniui-star-filled[data-v-5610c8db]:before{content:"\e68f"}.uniui-calendar[data-v-5610c8db]:before{content:"\e6a0"}.uniui-fire[data-v-5610c8db]:before{content:"\e6a1"}.uniui-medal[data-v-5610c8db]:before{content:"\e6a2"}.uniui-font[data-v-5610c8db]:before{content:"\e6a3"}.uniui-gift[data-v-5610c8db]:before{content:"\e6a4"}.uniui-link[data-v-5610c8db]:before{content:"\e6a5"}.uniui-notification[data-v-5610c8db]:before{content:"\e6a6"}.uniui-staff[data-v-5610c8db]:before{content:"\e6a7"}.uniui-vip[data-v-5610c8db]:before{content:"\e6a8"}.uniui-folder-add[data-v-5610c8db]:before{content:"\e6a9"}.uniui-tune[data-v-5610c8db]:before{content:"\e6aa"}.uniui-auth[data-v-5610c8db]:before{content:"\e6ab"}.uniui-person[data-v-5610c8db]:before{content:"\e699"}.uniui-email-filled[data-v-5610c8db]:before{content:"\e69a"}.uniui-phone-filled[data-v-5610c8db]:before{content:"\e69b"}.uniui-phone[data-v-5610c8db]:before{content:"\e69c"}.uniui-email[data-v-5610c8db]:before{content:"\e69e"}.uniui-personadd[data-v-5610c8db]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-5610c8db]:before{content:"\e692"}.uniui-contact[data-v-5610c8db]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-5610c8db]:before{content:"\e694"}.uniui-contact-filled[data-v-5610c8db]:before{content:"\e695"}.uniui-chatboxes[data-v-5610c8db]:before{content:"\e696"}.uniui-chatbubble[data-v-5610c8db]:before{content:"\e697"}.uniui-upload-filled[data-v-5610c8db]:before{content:"\e68e"}.uniui-upload[data-v-5610c8db]:before{content:"\e690"}.uniui-weixin[data-v-5610c8db]:before{content:"\e691"}.uniui-compose[data-v-5610c8db]:before{content:"\e67f"}.uniui-qq[data-v-5610c8db]:before{content:"\e680"}.uniui-download-filled[data-v-5610c8db]:before{content:"\e681"}.uniui-pyq[data-v-5610c8db]:before{content:"\e682"}.uniui-sound[data-v-5610c8db]:before{content:"\e684"}.uniui-trash-filled[data-v-5610c8db]:before{content:"\e685"}.uniui-sound-filled[data-v-5610c8db]:before{content:"\e686"}.uniui-trash[data-v-5610c8db]:before{content:"\e687"}.uniui-videocam-filled[data-v-5610c8db]:before{content:"\e689"}.uniui-spinner-cycle[data-v-5610c8db]:before{content:"\e68a"}.uniui-weibo[data-v-5610c8db]:before{content:"\e68b"}.uniui-videocam[data-v-5610c8db]:before{content:"\e68c"}.uniui-download[data-v-5610c8db]:before{content:"\e68d"}.uniui-help[data-v-5610c8db]:before{content:"\e679"}.uniui-navigate-filled[data-v-5610c8db]:before{content:"\e67a"}.uniui-plusempty[data-v-5610c8db]:before{content:"\e67b"}.uniui-smallcircle[data-v-5610c8db]:before{content:"\e67c"}.uniui-minus-filled[data-v-5610c8db]:before{content:"\e67d"}.uniui-micoff[data-v-5610c8db]:before{content:"\e67e"}.uniui-closeempty[data-v-5610c8db]:before{content:"\e66c"}.uniui-clear[data-v-5610c8db]:before{content:"\e66d"}.uniui-navigate[data-v-5610c8db]:before{content:"\e66e"}.uniui-minus[data-v-5610c8db]:before{content:"\e66f"}.uniui-image[data-v-5610c8db]:before{content:"\e670"}.uniui-mic[data-v-5610c8db]:before{content:"\e671"}.uniui-paperplane[data-v-5610c8db]:before{content:"\e672"}.uniui-close[data-v-5610c8db]:before{content:"\e673"}.uniui-help-filled[data-v-5610c8db]:before{content:"\e674"}.uniui-paperplane-filled[data-v-5610c8db]:before{content:"\e675"}.uniui-plus[data-v-5610c8db]:before{content:"\e676"}.uniui-mic-filled[data-v-5610c8db]:before{content:"\e677"}.uniui-image-filled[data-v-5610c8db]:before{content:"\e678"}.uniui-locked-filled[data-v-5610c8db]:before{content:"\e668"}.uniui-info[data-v-5610c8db]:before{content:"\e669"}.uniui-locked[data-v-5610c8db]:before{content:"\e66b"}.uniui-camera-filled[data-v-5610c8db]:before{content:"\e658"}.uniui-chat-filled[data-v-5610c8db]:before{content:"\e659"}.uniui-camera[data-v-5610c8db]:before{content:"\e65a"}.uniui-circle[data-v-5610c8db]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-5610c8db]:before{content:"\e65c"}.uniui-chat[data-v-5610c8db]:before{content:"\e65d"}.uniui-circle-filled[data-v-5610c8db]:before{content:"\e65e"}.uniui-flag[data-v-5610c8db]:before{content:"\e65f"}.uniui-flag-filled[data-v-5610c8db]:before{content:"\e660"}.uniui-gear-filled[data-v-5610c8db]:before{content:"\e661"}.uniui-home[data-v-5610c8db]:before{content:"\e662"}.uniui-home-filled[data-v-5610c8db]:before{content:"\e663"}.uniui-gear[data-v-5610c8db]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-5610c8db]:before{content:"\e665"}.uniui-map-filled[data-v-5610c8db]:before{content:"\e666"}.uniui-map[data-v-5610c8db]:before{content:"\e667"}.uniui-refresh-filled[data-v-5610c8db]:before{content:"\e656"}.uniui-refresh[data-v-5610c8db]:before{content:"\e657"}.uniui-cloud-upload[data-v-5610c8db]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-5610c8db]:before{content:"\e646"}.uniui-cloud-download[data-v-5610c8db]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-5610c8db]:before{content:"\e648"}.uniui-redo[data-v-5610c8db]:before{content:"\e64a"}.uniui-images-filled[data-v-5610c8db]:before{content:"\e64b"}.uniui-undo-filled[data-v-5610c8db]:before{content:"\e64c"}.uniui-more[data-v-5610c8db]:before{content:"\e64d"}.uniui-more-filled[data-v-5610c8db]:before{content:"\e64e"}.uniui-undo[data-v-5610c8db]:before{content:"\e64f"}.uniui-images[data-v-5610c8db]:before{content:"\e650"}.uniui-paperclip[data-v-5610c8db]:before{content:"\e652"}.uniui-settings[data-v-5610c8db]:before{content:"\e653"}.uniui-search[data-v-5610c8db]:before{content:"\e654"}.uniui-redo-filled[data-v-5610c8db]:before{content:"\e655"}.uniui-list[data-v-5610c8db]:before{content:"\e644"}.uniui-mail-open-filled[data-v-5610c8db]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-5610c8db]:before{content:"\e63c"}.uniui-hand-down[data-v-5610c8db]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-5610c8db]:before{content:"\e63e"}.uniui-hand-up[data-v-5610c8db]:before{content:"\e63f"}.uniui-heart-filled[data-v-5610c8db]:before{content:"\e641"}.uniui-mail-open[data-v-5610c8db]:before{content:"\e643"}.uniui-heart[data-v-5610c8db]:before{content:"\e639"}.uniui-loop[data-v-5610c8db]:before{content:"\e633"}.uniui-pulldown[data-v-5610c8db]:before{content:"\e632"}.uniui-scan[data-v-5610c8db]:before{content:"\e62a"}.uniui-bars[data-v-5610c8db]:before{content:"\e627"}.uniui-checkbox[data-v-5610c8db]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-5610c8db]:before{content:"\e62c"}.uniui-shop[data-v-5610c8db]:before{content:"\e62f"}.uniui-headphones[data-v-5610c8db]:before{content:"\e630"}.uniui-cart[data-v-5610c8db]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-5610c8db]{font-family:uniicons;text-decoration:none;text-align:center}.list[data-v-bc41e6b3]{flex-wrap:wrap}.list .item[data-v-bc41e6b3]{width:10.625rem;background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;margin-top:.625rem;font-size:.875rem;color:#333;line-height:1.25rem}.list .item .text[data-v-bc41e6b3]{padding:.5rem}.list .item uni-image[data-v-bc41e6b3]{width:10.625rem;height:6.25rem;border-radius:.5rem .5rem 0 0;background-color:#efefef;display:block}.nav[data-v-566e182b]{width:calc(100% - 1.875rem);padding:0 .9375rem;height:var(--bc08538a);background:linear-gradient(270deg,#256fbc,#044d87);font-size:.75rem;color:#fff;position:fixed;top:0;left:0;z-index:99}.place[data-v-566e182b]{height:var(--bc08538a)}.content[data-v-02e8f217]{padding:0 .9375rem .9375rem}.nav_box[data-v-02e8f217]{position:absolute;bottom:.4375rem;width:100%;left:0}.back[data-v-02e8f217]{padding:0 .9375rem}.search[data-v-02e8f217]{position:relative;padding-right:.9375rem;flex:1}.search uni-view[data-v-02e8f217]{position:absolute;left:.875rem;top:50%;transform:translateY(-50%);font-size:.875rem;color:#999}.search uni-input[data-v-02e8f217]{flex:1;height:2.25rem;background:#f8f8f8;border-radius:1.375rem;padding:0 .875rem}.search uni-image[data-v-02e8f217]{width:1.0625rem;height:1.0625rem;margin-right:.5rem} diff --git a/unpackage/dist/build/app-plus/pages/tab/index.css b/unpackage/dist/build/app-plus/pages/tab/index.css new file mode 100644 index 0000000..5bf946a --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/tab/index.css @@ -0,0 +1 @@ +.uniui-cart-filled[data-v-5610c8db]:before{content:"\e6d0"}.uniui-gift-filled[data-v-5610c8db]:before{content:"\e6c4"}.uniui-color[data-v-5610c8db]:before{content:"\e6cf"}.uniui-wallet[data-v-5610c8db]:before{content:"\e6b1"}.uniui-settings-filled[data-v-5610c8db]:before{content:"\e6ce"}.uniui-auth-filled[data-v-5610c8db]:before{content:"\e6cc"}.uniui-shop-filled[data-v-5610c8db]:before{content:"\e6cd"}.uniui-staff-filled[data-v-5610c8db]:before{content:"\e6cb"}.uniui-vip-filled[data-v-5610c8db]:before{content:"\e6c6"}.uniui-plus-filled[data-v-5610c8db]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-5610c8db]:before{content:"\e6c8"}.uniui-color-filled[data-v-5610c8db]:before{content:"\e6c9"}.uniui-tune-filled[data-v-5610c8db]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-5610c8db]:before{content:"\e6c0"}.uniui-notification-filled[data-v-5610c8db]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-5610c8db]:before{content:"\e6c2"}.uniui-medal-filled[data-v-5610c8db]:before{content:"\e6c3"}.uniui-fire-filled[data-v-5610c8db]:before{content:"\e6c5"}.uniui-refreshempty[data-v-5610c8db]:before{content:"\e6bf"}.uniui-location-filled[data-v-5610c8db]:before{content:"\e6af"}.uniui-person-filled[data-v-5610c8db]:before{content:"\e69d"}.uniui-personadd-filled[data-v-5610c8db]:before{content:"\e698"}.uniui-arrowthinleft[data-v-5610c8db]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-5610c8db]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-5610c8db]:before{content:"\e6d4"}.uniui-back[data-v-5610c8db]:before{content:"\e6b9"}.uniui-forward[data-v-5610c8db]:before{content:"\e6ba"}.uniui-arrow-right[data-v-5610c8db]:before{content:"\e6bb"}.uniui-arrow-left[data-v-5610c8db]:before{content:"\e6bc"}.uniui-arrow-up[data-v-5610c8db]:before{content:"\e6bd"}.uniui-arrow-down[data-v-5610c8db]:before{content:"\e6be"}.uniui-arrowthinright[data-v-5610c8db]:before{content:"\e6d1"}.uniui-down[data-v-5610c8db]:before{content:"\e6b8"}.uniui-bottom[data-v-5610c8db]:before{content:"\e6b8"}.uniui-arrowright[data-v-5610c8db]:before{content:"\e6d5"}.uniui-right[data-v-5610c8db]:before{content:"\e6b5"}.uniui-up[data-v-5610c8db]:before{content:"\e6b6"}.uniui-top[data-v-5610c8db]:before{content:"\e6b6"}.uniui-left[data-v-5610c8db]:before{content:"\e6b7"}.uniui-arrowup[data-v-5610c8db]:before{content:"\e6d6"}.uniui-eye[data-v-5610c8db]:before{content:"\e651"}.uniui-eye-filled[data-v-5610c8db]:before{content:"\e66a"}.uniui-eye-slash[data-v-5610c8db]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-5610c8db]:before{content:"\e6b4"}.uniui-info-filled[data-v-5610c8db]:before{content:"\e649"}.uniui-reload[data-v-5610c8db]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-5610c8db]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-5610c8db]:before{content:"\e6ac"}.uniui-map-pin[data-v-5610c8db]:before{content:"\e6ad"}.uniui-location[data-v-5610c8db]:before{content:"\e6ae"}.uniui-starhalf[data-v-5610c8db]:before{content:"\e683"}.uniui-star[data-v-5610c8db]:before{content:"\e688"}.uniui-star-filled[data-v-5610c8db]:before{content:"\e68f"}.uniui-calendar[data-v-5610c8db]:before{content:"\e6a0"}.uniui-fire[data-v-5610c8db]:before{content:"\e6a1"}.uniui-medal[data-v-5610c8db]:before{content:"\e6a2"}.uniui-font[data-v-5610c8db]:before{content:"\e6a3"}.uniui-gift[data-v-5610c8db]:before{content:"\e6a4"}.uniui-link[data-v-5610c8db]:before{content:"\e6a5"}.uniui-notification[data-v-5610c8db]:before{content:"\e6a6"}.uniui-staff[data-v-5610c8db]:before{content:"\e6a7"}.uniui-vip[data-v-5610c8db]:before{content:"\e6a8"}.uniui-folder-add[data-v-5610c8db]:before{content:"\e6a9"}.uniui-tune[data-v-5610c8db]:before{content:"\e6aa"}.uniui-auth[data-v-5610c8db]:before{content:"\e6ab"}.uniui-person[data-v-5610c8db]:before{content:"\e699"}.uniui-email-filled[data-v-5610c8db]:before{content:"\e69a"}.uniui-phone-filled[data-v-5610c8db]:before{content:"\e69b"}.uniui-phone[data-v-5610c8db]:before{content:"\e69c"}.uniui-email[data-v-5610c8db]:before{content:"\e69e"}.uniui-personadd[data-v-5610c8db]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-5610c8db]:before{content:"\e692"}.uniui-contact[data-v-5610c8db]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-5610c8db]:before{content:"\e694"}.uniui-contact-filled[data-v-5610c8db]:before{content:"\e695"}.uniui-chatboxes[data-v-5610c8db]:before{content:"\e696"}.uniui-chatbubble[data-v-5610c8db]:before{content:"\e697"}.uniui-upload-filled[data-v-5610c8db]:before{content:"\e68e"}.uniui-upload[data-v-5610c8db]:before{content:"\e690"}.uniui-weixin[data-v-5610c8db]:before{content:"\e691"}.uniui-compose[data-v-5610c8db]:before{content:"\e67f"}.uniui-qq[data-v-5610c8db]:before{content:"\e680"}.uniui-download-filled[data-v-5610c8db]:before{content:"\e681"}.uniui-pyq[data-v-5610c8db]:before{content:"\e682"}.uniui-sound[data-v-5610c8db]:before{content:"\e684"}.uniui-trash-filled[data-v-5610c8db]:before{content:"\e685"}.uniui-sound-filled[data-v-5610c8db]:before{content:"\e686"}.uniui-trash[data-v-5610c8db]:before{content:"\e687"}.uniui-videocam-filled[data-v-5610c8db]:before{content:"\e689"}.uniui-spinner-cycle[data-v-5610c8db]:before{content:"\e68a"}.uniui-weibo[data-v-5610c8db]:before{content:"\e68b"}.uniui-videocam[data-v-5610c8db]:before{content:"\e68c"}.uniui-download[data-v-5610c8db]:before{content:"\e68d"}.uniui-help[data-v-5610c8db]:before{content:"\e679"}.uniui-navigate-filled[data-v-5610c8db]:before{content:"\e67a"}.uniui-plusempty[data-v-5610c8db]:before{content:"\e67b"}.uniui-smallcircle[data-v-5610c8db]:before{content:"\e67c"}.uniui-minus-filled[data-v-5610c8db]:before{content:"\e67d"}.uniui-micoff[data-v-5610c8db]:before{content:"\e67e"}.uniui-closeempty[data-v-5610c8db]:before{content:"\e66c"}.uniui-clear[data-v-5610c8db]:before{content:"\e66d"}.uniui-navigate[data-v-5610c8db]:before{content:"\e66e"}.uniui-minus[data-v-5610c8db]:before{content:"\e66f"}.uniui-image[data-v-5610c8db]:before{content:"\e670"}.uniui-mic[data-v-5610c8db]:before{content:"\e671"}.uniui-paperplane[data-v-5610c8db]:before{content:"\e672"}.uniui-close[data-v-5610c8db]:before{content:"\e673"}.uniui-help-filled[data-v-5610c8db]:before{content:"\e674"}.uniui-paperplane-filled[data-v-5610c8db]:before{content:"\e675"}.uniui-plus[data-v-5610c8db]:before{content:"\e676"}.uniui-mic-filled[data-v-5610c8db]:before{content:"\e677"}.uniui-image-filled[data-v-5610c8db]:before{content:"\e678"}.uniui-locked-filled[data-v-5610c8db]:before{content:"\e668"}.uniui-info[data-v-5610c8db]:before{content:"\e669"}.uniui-locked[data-v-5610c8db]:before{content:"\e66b"}.uniui-camera-filled[data-v-5610c8db]:before{content:"\e658"}.uniui-chat-filled[data-v-5610c8db]:before{content:"\e659"}.uniui-camera[data-v-5610c8db]:before{content:"\e65a"}.uniui-circle[data-v-5610c8db]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-5610c8db]:before{content:"\e65c"}.uniui-chat[data-v-5610c8db]:before{content:"\e65d"}.uniui-circle-filled[data-v-5610c8db]:before{content:"\e65e"}.uniui-flag[data-v-5610c8db]:before{content:"\e65f"}.uniui-flag-filled[data-v-5610c8db]:before{content:"\e660"}.uniui-gear-filled[data-v-5610c8db]:before{content:"\e661"}.uniui-home[data-v-5610c8db]:before{content:"\e662"}.uniui-home-filled[data-v-5610c8db]:before{content:"\e663"}.uniui-gear[data-v-5610c8db]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-5610c8db]:before{content:"\e665"}.uniui-map-filled[data-v-5610c8db]:before{content:"\e666"}.uniui-map[data-v-5610c8db]:before{content:"\e667"}.uniui-refresh-filled[data-v-5610c8db]:before{content:"\e656"}.uniui-refresh[data-v-5610c8db]:before{content:"\e657"}.uniui-cloud-upload[data-v-5610c8db]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-5610c8db]:before{content:"\e646"}.uniui-cloud-download[data-v-5610c8db]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-5610c8db]:before{content:"\e648"}.uniui-redo[data-v-5610c8db]:before{content:"\e64a"}.uniui-images-filled[data-v-5610c8db]:before{content:"\e64b"}.uniui-undo-filled[data-v-5610c8db]:before{content:"\e64c"}.uniui-more[data-v-5610c8db]:before{content:"\e64d"}.uniui-more-filled[data-v-5610c8db]:before{content:"\e64e"}.uniui-undo[data-v-5610c8db]:before{content:"\e64f"}.uniui-images[data-v-5610c8db]:before{content:"\e650"}.uniui-paperclip[data-v-5610c8db]:before{content:"\e652"}.uniui-settings[data-v-5610c8db]:before{content:"\e653"}.uniui-search[data-v-5610c8db]:before{content:"\e654"}.uniui-redo-filled[data-v-5610c8db]:before{content:"\e655"}.uniui-list[data-v-5610c8db]:before{content:"\e644"}.uniui-mail-open-filled[data-v-5610c8db]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-5610c8db]:before{content:"\e63c"}.uniui-hand-down[data-v-5610c8db]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-5610c8db]:before{content:"\e63e"}.uniui-hand-up[data-v-5610c8db]:before{content:"\e63f"}.uniui-heart-filled[data-v-5610c8db]:before{content:"\e641"}.uniui-mail-open[data-v-5610c8db]:before{content:"\e643"}.uniui-heart[data-v-5610c8db]:before{content:"\e639"}.uniui-loop[data-v-5610c8db]:before{content:"\e633"}.uniui-pulldown[data-v-5610c8db]:before{content:"\e632"}.uniui-scan[data-v-5610c8db]:before{content:"\e62a"}.uniui-bars[data-v-5610c8db]:before{content:"\e627"}.uniui-checkbox[data-v-5610c8db]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-5610c8db]:before{content:"\e62c"}.uniui-shop[data-v-5610c8db]:before{content:"\e62f"}.uniui-headphones[data-v-5610c8db]:before{content:"\e630"}.uniui-cart[data-v-5610c8db]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-5610c8db]{font-family:uniicons;text-decoration:none;text-align:center}.uni-calendar-item__weeks-box[data-v-a5fd30c1]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:1px 0;position:relative}.uni-calendar-item__weeks-box-text[data-v-a5fd30c1]{font-size:14px;font-weight:700;color:#001833}.uni-calendar-item__weeks-box-item[data-v-a5fd30c1]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:40px;height:40px}.uni-calendar-item__weeks-box-circle[data-v-a5fd30c1]{position:absolute;top:5px;right:5px;width:8px;height:8px;border-radius:8px;background-color:#dd524d}.uni-calendar-item__weeks-box .uni-calendar-item--disable[data-v-a5fd30c1]{cursor:default}.uni-calendar-item--disable .uni-calendar-item__weeks-box-text-disable[data-v-a5fd30c1]{color:#d1d1d1}.uni-calendar-item--today[data-v-a5fd30c1]{position:absolute;top:10px;right:17%;background-color:#dd524d;width:6px;height:6px;border-radius:50%}.uni-calendar-item--extra[data-v-a5fd30c1]{color:#dd524d;opacity:.8}.uni-calendar-item__weeks-box .uni-calendar-item--checked[data-v-a5fd30c1]{border-radius:50%;box-sizing:border-box;border:3px solid #fff}.uni-calendar-item--multiple .uni-calendar-item--checked-range-text[data-v-a5fd30c1]{color:#333}.uni-calendar-item--multiple[data-v-a5fd30c1]{background-color:#f6f7fc}.uni-calendar-item--multiple .uni-calendar-item--before-checked[data-v-a5fd30c1],.uni-calendar-item--multiple .uni-calendar-item--after-checked[data-v-a5fd30c1]{background-color:#007aff;border-radius:50%;box-sizing:border-box;border:3px solid #F6F7FC}.uni-calendar-item--before-checked .uni-calendar-item--checked-text[data-v-a5fd30c1],.uni-calendar-item--after-checked .uni-calendar-item--checked-text[data-v-a5fd30c1]{color:#fff}.uni-calendar-item--before-checked-x[data-v-a5fd30c1]{border-top-left-radius:50px;border-bottom-left-radius:50px;box-sizing:border-box;background-color:#f6f7fc}.uni-calendar-item--after-checked-x[data-v-a5fd30c1]{border-top-right-radius:50px;border-bottom-right-radius:50px;background-color:#f6f7fc}.uni-datetime-picker-view[data-v-8a3925ff]{height:130px;width:270px;cursor:pointer}.uni-datetime-picker-item[data-v-8a3925ff]{height:50px;line-height:50px;text-align:center;font-size:14px}.uni-datetime-picker-btn[data-v-8a3925ff]{margin-top:60px;display:flex;cursor:pointer;flex-direction:row;justify-content:space-between}.uni-datetime-picker-btn-text[data-v-8a3925ff]{font-size:14px;color:#007aff}.uni-datetime-picker-btn-group[data-v-8a3925ff]{display:flex;flex-direction:row}.uni-datetime-picker-cancel[data-v-8a3925ff]{margin-right:30px}.uni-datetime-picker-mask[data-v-8a3925ff]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,.4);transition-duration:.3s;z-index:998}.uni-datetime-picker-popup[data-v-8a3925ff]{border-radius:8px;padding:30px;width:270px;background-color:#fff;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);transition-duration:.3s;z-index:999}.uni-datetime-picker-time[data-v-8a3925ff]{color:gray}.uni-datetime-picker-column[data-v-8a3925ff]{height:50px}.uni-datetime-picker-timebox[data-v-8a3925ff]{border:1px solid #E5E5E5;border-radius:5px;padding:7px 10px;box-sizing:border-box;cursor:pointer}.uni-datetime-picker-timebox-pointer[data-v-8a3925ff]{cursor:pointer}.uni-datetime-picker-disabled[data-v-8a3925ff]{opacity:.4}.uni-datetime-picker-text[data-v-8a3925ff]{font-size:14px;line-height:50px}.uni-datetime-picker-sign[data-v-8a3925ff]{position:absolute;top:53px;color:#999}.sign-left[data-v-8a3925ff]{left:86px}.sign-right[data-v-8a3925ff]{right:86px}.sign-center[data-v-8a3925ff]{left:135px}.uni-datetime-picker__container-box[data-v-8a3925ff]{position:relative;display:flex;align-items:center;justify-content:center;margin-top:40px}.time-hide-second[data-v-8a3925ff]{width:180px}.uni-calendar[data-v-8dc4a3ee]{display:flex;flex-direction:column}.uni-calendar__mask[data-v-8dc4a3ee]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,.4);transition-property:opacity;transition-duration:.3s;opacity:0;z-index:99}.uni-calendar--mask-show[data-v-8dc4a3ee]{opacity:1}.uni-calendar--fixed[data-v-8dc4a3ee]{position:fixed;bottom:calc(var(--window-bottom));left:0;right:0;transition-property:transform;transition-duration:.3s;transform:translateY(460px);z-index:99}.uni-calendar--ani-show[data-v-8dc4a3ee]{transform:translateY(0)}.uni-calendar__content[data-v-8dc4a3ee]{background-color:#fff}.uni-calendar__content-mobile[data-v-8dc4a3ee]{border-top-left-radius:10px;border-top-right-radius:10px;box-shadow:0 0 5px 3px rgba(0,0,0,.1)}.uni-calendar__header[data-v-8dc4a3ee]{position:relative;display:flex;flex-direction:row;justify-content:center;align-items:center;height:50px}.uni-calendar__header-mobile[data-v-8dc4a3ee]{padding:10px 10px 0}.uni-calendar--fixed-top[data-v-8dc4a3ee]{display:flex;flex-direction:row;justify-content:space-between;border-top-color:rgba(0,0,0,.4);border-top-style:solid;border-top-width:1px}.uni-calendar--fixed-width[data-v-8dc4a3ee]{width:50px}.uni-calendar__backtoday[data-v-8dc4a3ee]{position:absolute;right:0;top:.78125rem;padding:0 5px 0 10px;height:25px;line-height:25px;font-size:12px;border-top-left-radius:25px;border-bottom-left-radius:25px;color:#fff;background-color:#f1f1f1}.uni-calendar__header-text[data-v-8dc4a3ee]{text-align:center;width:100px;font-size:15px;color:#666}.uni-calendar__button-text[data-v-8dc4a3ee]{text-align:center;width:100px;font-size:14px;color:#007aff;letter-spacing:3px}.uni-calendar__header-btn-box[data-v-8dc4a3ee]{display:flex;flex-direction:row;align-items:center;justify-content:center;width:50px;height:50px}.uni-calendar__header-btn[data-v-8dc4a3ee]{width:9px;height:9px;border-left-color:gray;border-left-style:solid;border-left-width:1px;border-top-color:#555;border-top-style:solid;border-top-width:1px}.uni-calendar--left[data-v-8dc4a3ee]{transform:rotate(-45deg)}.uni-calendar--right[data-v-8dc4a3ee]{transform:rotate(135deg)}.uni-calendar__weeks[data-v-8dc4a3ee]{position:relative;display:flex;flex-direction:row}.uni-calendar__weeks-item[data-v-8dc4a3ee]{flex:1}.uni-calendar__weeks-day[data-v-8dc4a3ee]{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;height:40px;border-bottom-color:#f5f5f5;border-bottom-style:solid;border-bottom-width:1px}.uni-calendar__weeks-day-text[data-v-8dc4a3ee]{font-size:12px;color:#b2b2b2}.uni-calendar__box[data-v-8dc4a3ee]{position:relative;padding-bottom:7px}.uni-calendar__box-bg[data-v-8dc4a3ee]{display:flex;justify-content:center;align-items:center;position:absolute;top:0;left:0;right:0;bottom:0}.uni-calendar__box-bg-text[data-v-8dc4a3ee]{font-size:200px;font-weight:700;color:#999;opacity:.1;text-align:center;line-height:1}.uni-date-changed[data-v-8dc4a3ee]{padding:0 10px;text-align:center;color:#333;border-top-color:#dcdcdc;border-top-style:solid;border-top-width:1px;flex:1}.uni-date-btn--ok[data-v-8dc4a3ee]{padding:20px 15px}.uni-date-changed--time-start[data-v-8dc4a3ee],.uni-date-changed--time-end[data-v-8dc4a3ee]{display:flex;align-items:center}.uni-date-changed--time-date[data-v-8dc4a3ee]{color:#999;line-height:50px;margin-right:5px}.time-picker-style[data-v-8dc4a3ee]{display:flex;justify-content:center;align-items:center}.mr-10[data-v-8dc4a3ee]{margin-right:10px}.dialog-close[data-v-8dc4a3ee]{position:absolute;top:0;right:0;bottom:0;display:flex;flex-direction:row;align-items:center;padding:0 25px;margin-top:10px}.dialog-close-plus[data-v-8dc4a3ee]{width:16px;height:2px;background-color:#737987;border-radius:2px;transform:rotate(45deg)}.dialog-close-rotate[data-v-8dc4a3ee]{position:absolute;transform:rotate(-45deg)}.uni-datetime-picker--btn[data-v-8dc4a3ee]{border-radius:100px;height:40px;line-height:40px;background-color:#007aff;color:#fff;font-size:16px;letter-spacing:2px}.uni-datetime-picker--btn[data-v-8dc4a3ee]:active{opacity:.7}.uni-date[data-v-17511ee3]{width:100%;flex:1}.uni-date-x[data-v-17511ee3]{display:flex;flex-direction:row;align-items:center;justify-content:center;border-radius:4px;background-color:#fff;color:#666;font-size:14px;flex:1}.uni-date-x .icon-calendar[data-v-17511ee3]{padding-left:3px}.uni-date-x .range-separator[data-v-17511ee3]{height:35px;padding:0 2px;line-height:35px}.uni-date-x--border[data-v-17511ee3]{box-sizing:border-box;border-radius:4px;border:1px solid #e5e5e5}.uni-date-editor--x[data-v-17511ee3]{display:flex;align-items:center;position:relative}.uni-date-editor--x .uni-date__icon-clear[data-v-17511ee3]{padding-right:3px;display:flex;align-items:center}.uni-date__x-input[data-v-17511ee3]{width:auto;height:35px;padding-left:5px;position:relative;flex:1;line-height:35px;font-size:14px;overflow:hidden}.text-center[data-v-17511ee3]{text-align:center}.uni-date__input[data-v-17511ee3]{height:40px;width:100%;line-height:40px;font-size:14px}.uni-date-range__input[data-v-17511ee3]{text-align:center;max-width:142px}.uni-date-picker__container[data-v-17511ee3]{position:relative}.uni-date-mask--pc[data-v-17511ee3]{position:fixed;bottom:0;top:0;left:0;right:0;background-color:rgba(0,0,0,0);transition-duration:.3s;z-index:996}.uni-date-single--x[data-v-17511ee3],.uni-date-range--x[data-v-17511ee3]{background-color:#fff;position:absolute;top:0;z-index:999;border:1px solid #EBEEF5;box-shadow:0 2px 12px rgba(0,0,0,.1);border-radius:4px}.uni-date-editor--x__disabled[data-v-17511ee3]{opacity:.4;cursor:default}.uni-date-editor--logo[data-v-17511ee3]{width:16px;height:16px;vertical-align:middle}.popup-x-header[data-v-17511ee3]{display:flex;flex-direction:row}.popup-x-header--datetime[data-v-17511ee3]{display:flex;flex-direction:row;flex:1}.popup-x-body[data-v-17511ee3]{display:flex}.popup-x-footer[data-v-17511ee3]{padding:0 15px;border-top-color:#f1f1f1;border-top-style:solid;border-top-width:1px;line-height:40px;text-align:right;color:#666}.popup-x-footer uni-text[data-v-17511ee3]:hover{color:#007aff;cursor:pointer;opacity:.8}.popup-x-footer .confirm-text[data-v-17511ee3]{margin-left:20px;color:#007aff}.uni-date-changed[data-v-17511ee3]{text-align:center;color:#333;border-bottom-color:#f1f1f1;border-bottom-style:solid;border-bottom-width:1px}.uni-date-changed--time uni-text[data-v-17511ee3]{height:50px;line-height:50px}.uni-date-changed .uni-date-changed--time[data-v-17511ee3]{flex:1}.uni-date-changed--time-date[data-v-17511ee3]{color:#333;opacity:.6}.mr-50[data-v-17511ee3]{margin-right:50px}.uni-popper__arrow[data-v-17511ee3],.uni-popper__arrow[data-v-17511ee3]:after{position:absolute;display:block;width:0;height:0;border:6px solid transparent;border-top-width:0}.uni-popper__arrow[data-v-17511ee3]{filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));top:-6px;left:10%;margin-right:3px;border-bottom-color:#ebeef5}.uni-popper__arrow[data-v-17511ee3]:after{content:" ";top:1px;margin-left:-6px;border-bottom-color:#fff}.nav[data-v-566e182b]{width:calc(100% - 1.875rem);padding:0 .9375rem;height:var(--bc08538a);background:linear-gradient(270deg,#256fbc,#044d87);font-size:.75rem;color:#fff;position:fixed;top:0;left:0;z-index:99}.place[data-v-566e182b]{height:var(--bc08538a)}.content[data-v-d6ec6b55]{padding-top:var(--5184fac6)}[data-v-d6ec6b55] .uni-drawer{margin-top:var(--5184fac6)}.nav[data-v-d6ec6b55]{width:calc(100% - 1.875rem);padding:0 .9375rem;height:var(--5184fac6);font-size:.75rem;color:#333;position:fixed;top:0;left:0;z-index:99;background-image:url(../../static/my/navbg.png);background-repeat:no-repeat;background-size:23.4375rem 14.3125rem}.nav_box[data-v-d6ec6b55]{position:absolute;bottom:.8125rem;width:calc(100% - 1.875rem)}.weather_calender uni-image[data-v-d6ec6b55]{width:1.125rem;height:1.125rem;margin-right:.25rem}.weather_calender .position[data-v-d6ec6b55]:not(:last-child){position:relative;margin-right:1.875rem}.weather_calender .position[data-v-d6ec6b55]:not(:last-child):after{position:absolute;content:" ";width:.0625rem;height:.625rem;background:#efefef;right:-.9375rem;top:50%;transform:translateY(-50%)}.swiper[data-v-d6ec6b55]{width:100vw;height:12.5rem}.swiper .swiper-item uni-image[data-v-d6ec6b55]{width:100vw;height:12.5rem;background-color:#a8a8a8}.wrapper[data-v-d6ec6b55]{padding:0 .9375rem;transform:translateY(-1.5625rem)}.wrapper .onduty[data-v-d6ec6b55]{background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;padding:.625rem .75rem .75rem}.wrapper .onduty .title[data-v-d6ec6b55]{font-size:1rem;color:#333;background-size:1.375rem .375rem;background-repeat:no-repeat;background-position:left bottom}.wrapper .onduty .info[data-v-d6ec6b55]{background:#f8f8f8;border-radius:.25rem;text-align:center;width:20.0625rem;margin-top:.71875rem}.wrapper .onduty .info .info_title[data-v-d6ec6b55]{font-size:.75rem;color:#333;padding:.75rem 0;border-bottom:1px solid #EFEFEF}.wrapper .onduty .info .info_title uni-view[data-v-d6ec6b55]{flex:1}.wrapper .onduty .info .data_box[data-v-d6ec6b55]{font-size:.75rem;padding-bottom:.75rem;color:#888}.wrapper .onduty .info .data_box .first[data-v-d6ec6b55]{font-weight:700;color:#333}.wrapper .onduty .info .data_box .data[data-v-d6ec6b55]{margin-top:.71875rem}.wrapper .onduty .info .data_box .data uni-view[data-v-d6ec6b55]{flex:1}.wrapper .more[data-v-d6ec6b55]{font-size:.75rem;color:#999;text-align:right}.wrapper .more uni-image[data-v-d6ec6b55]{width:.3125rem;height:.5625rem}.wrapper .list_wrapper[data-v-d6ec6b55]{background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;padding:.8125rem .75rem .75rem;position:relative;margin-top:.9375rem;width:20.0625rem}.wrapper .list_wrapper[data-v-d6ec6b55]:after{position:absolute;top:3.125rem;left:0;content:" ";width:100%;height:1px;background-color:#efefef}.wrapper .list_wrapper .zhidu[data-v-d6ec6b55]{font-size:.75rem;color:#666;justify-content:flex-end;padding-top:1.25rem}.wrapper .list_wrapper .zhidu uni-view[data-v-d6ec6b55]{width:3.75rem;height:1.875rem;line-height:1.875rem;text-align:center}.wrapper .list_wrapper .zhidu uni-view[data-v-d6ec6b55]:first-child{margin-right:1.25rem}.wrapper .list_wrapper .zhidu .active[data-v-d6ec6b55]{position:relative;color:#3179d6}.wrapper .list_wrapper .zhidu .active[data-v-d6ec6b55]:after{content:" ";width:3.75rem;height:1.875rem;border-radius:1.875rem;left:50%;top:50%;transform:translate(-50%,-50%);position:absolute;background-color:rgba(49,121,214,.1)}.wrapper .list_wrapper .list_title[data-v-d6ec6b55]{text-align:center;padding-bottom:.90625rem;font-size:1rem;color:#666}.wrapper .list_wrapper .list_title .active[data-v-d6ec6b55]{position:relative;color:#3179d6}.wrapper .list_wrapper .list_title .active[data-v-d6ec6b55]:after{content:" ";width:3.75rem;height:2.1875rem;border-radius:2.1875rem;left:50%;top:50%;transform:translate(-50%,-50%);position:absolute;background-color:rgba(49,121,214,.1)}.wrapper .list_wrapper .list_box[data-v-d6ec6b55]{margin-top:.75rem}.wrapper .list_wrapper .list_box .list[data-v-d6ec6b55]{margin-bottom:.75rem;padding:.9375rem .9375rem 1.09375rem;background:#f8f8f8;border-radius:.25rem}.wrapper .list_wrapper .list_box .list .topic[data-v-d6ec6b55]{font-size:.875rem;color:#333}.wrapper .list_wrapper .list_box .list .time_Box[data-v-d6ec6b55]{font-size:.75rem;color:#888;margin-top:.625rem}.wrapper .list_wrapper .list_box .list .time_Box .time[data-v-d6ec6b55]{margin-right:1.9375rem}.wrapper .list_wrapper .list_box .list .time_Box .look[data-v-d6ec6b55]{position:relative}.wrapper .list_wrapper .list_box .list .time_Box .look[data-v-d6ec6b55]:before{position:absolute;left:-.9375rem;top:50%;transform:translateY(-50%);content:" ";width:.0625rem;height:.625rem;background:#999}.wrapper .list_wrapper .list_box .list .time_Box uni-image[data-v-d6ec6b55]{width:.875rem;height:.6875rem;margin-right:.25rem} diff --git a/unpackage/dist/build/app-plus/pages/tab/my.css b/unpackage/dist/build/app-plus/pages/tab/my.css new file mode 100644 index 0000000..6102135 --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/tab/my.css @@ -0,0 +1 @@ +.operate[data-v-300a7325]{padding:0 .9375rem;transform:translateY(-.3125rem)}.operate .item[data-v-300a7325]{height:3.25rem;border-bottom:1px solid #EFEFEF}.operate .item .version[data-v-300a7325]{font-size:.75rem;color:#888}.operate .switch uni-image[data-v-300a7325]{width:2.125rem;height:1.1875rem}.operate .left[data-v-300a7325]{font-size:.875rem;color:#333}.operate .left uni-image[data-v-300a7325]{width:1.375rem;height:1.375rem;margin-right:.9375rem}.msg[data-v-300a7325]{width:21.5625rem;height:4.4375rem;background-image:url(../../static/my/bg1.png);background-size:21.5625rem 4.4375rem;margin-top:.9375rem}.msg .box[data-v-300a7325]{justify-content:center;width:33.33%}.msg .box .num[data-v-300a7325]{font-size:1rem;color:#333;margin-bottom:.125rem}.msg .box uni-text[data-v-300a7325]{font-size:.75rem;color:#888}.msg .box[data-v-300a7325]:not(:last-child){position:relative}.msg .box[data-v-300a7325]:not(:last-child):after{content:" ";width:.03125rem;height:1rem;background:#d8d8d8;position:absolute;right:0;top:50%;transform:translateY(-50%)}.nav[data-v-300a7325]{height:14.3125rem;background-image:url(../../static/my/navbg.png);background-size:23.4375rem 14.3125rem}.nav .user[data-v-300a7325]{padding:4rem .9375rem 0}.nav .user .right[data-v-300a7325]{flex:1}.nav .user .avatar[data-v-300a7325]{margin-right:.75rem}.nav .user .avatar uni-image[data-v-300a7325]{width:3.4375rem;height:3.4375rem;border-radius:50%;background-color:#fff}.nav .user .name_job .name[data-v-300a7325]{font-size:1.125rem;color:#333}.nav .user .name_job .status[data-v-300a7325]{padding:.125rem .375rem;background:#55b800;border-radius:.25rem;font-size:.625rem;color:#fff;display:inline-block;margin-left:.25rem}.nav .user .name_job .job[data-v-300a7325]{font-size:.75rem;color:#666;margin-top:.1875rem}.nav .user .shezhi uni-image[data-v-300a7325]{width:1.3125rem;height:1.3125rem} diff --git a/unpackage/dist/build/app-plus/pages/tab/office.css b/unpackage/dist/build/app-plus/pages/tab/office.css new file mode 100644 index 0000000..1c32fd8 --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/tab/office.css @@ -0,0 +1 @@ +.drag[data-v-a37e03c5]{background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;margin:.75rem .9375rem 0}.drag .title[data-v-a37e03c5]{font-size:.875rem;color:#333;padding:.9375rem 0 0 .9375rem}.inner uni-image[data-v-a37e03c5]{width:3.0625rem;height:3.0625rem;background-color:#efefef}.inner .text[data-v-a37e03c5]{font-size:.875rem;color:#333;margin-top:.625rem}.placeholder[data-v-a37e03c5]{height:var(--00e5a4ad)}.nav[data-v-a37e03c5]{width:calc(100% - 1.875rem);padding:0 .9375rem;height:var(--00e5a4ad);font-size:.75rem;color:#fff;position:fixed;top:0;left:0;z-index:99;background-image:url(../../static/my/navbg.png);background-repeat:no-repeat;background-size:23.4375rem 14.3125rem}.content[data-v-a37e03c5]{padding:0 .9375rem .625rem}.list[data-v-a37e03c5]{margin-bottom:.75rem}.list .item[data-v-a37e03c5]{background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;padding:.9375rem 0;margin-top:.75rem}.list .item .title[data-v-a37e03c5]{font-size:.875rem;color:#333;padding-left:.9375rem}.list uni-image[data-v-a37e03c5]{width:3.0625rem;height:3.0625rem}.list .info_box[data-v-a37e03c5]{flex-wrap:wrap}.list .info_box .info[data-v-a37e03c5]{margin-top:1.25rem;width:25%}.list .info_box .info .text[data-v-a37e03c5]{font-size:.875rem;color:#333;margin-top:.625rem} diff --git a/unpackage/dist/build/app-plus/pages/talk/conversation.css b/unpackage/dist/build/app-plus/pages/talk/conversation.css new file mode 100644 index 0000000..25da358 --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/talk/conversation.css @@ -0,0 +1 @@ +body{background-color:#f8f8f8}.content[data-v-00b966b0]{padding-bottom:3.75rem}.input_box[data-v-00b966b0]{position:fixed;width:23.4375rem;height:3.75rem;background:#fff;bottom:0;left:0}.input_box uni-input[data-v-00b966b0]{width:14.59375rem;height:2.5rem;background:#f8f8f8;border-radius:.25rem;padding:0 .9375rem}.input_box .send[data-v-00b966b0]{width:4.15625rem;height:2.5rem;background:#01508b;border-radius:.25rem;text-align:center;line-height:2.5rem;font-size:.875rem;color:#fff}.list[data-v-00b966b0]{padding:1.25rem .9375rem}.list .item[data-v-00b966b0]:not(:first-child){margin-top:1.875rem}.list .item uni-image[data-v-00b966b0]{width:2.6875rem;height:2.6875rem;border-radius:50%;background-color:maroon}.list .item .left .content[data-v-00b966b0]{padding:.75rem .9375rem;background:#fff;border-radius:0 .5rem .5rem;margin-left:.75rem;font-size:.875rem;color:#333}.list .item .right[data-v-00b966b0]{justify-content:flex-end}.list .item .right .content[data-v-00b966b0]{margin-right:.75rem;padding:.75rem .9375rem;background:#01508b;border-radius:.5rem 0 .5rem .5rem;font-size:.875rem;color:#fff} diff --git a/unpackage/dist/build/app-plus/pages/talk/message_list.css b/unpackage/dist/build/app-plus/pages/talk/message_list.css new file mode 100644 index 0000000..a0e4735 --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/talk/message_list.css @@ -0,0 +1 @@ +.list[data-v-f59fee84]{padding:0 .9375rem}.item[data-v-f59fee84]:not(:last-child){border-bottom:1px solid #EFEFEF}.item[data-v-f59fee84]{height:4.6875rem}.item .name_info[data-v-f59fee84]{flex:1}.item .name[data-v-f59fee84]{font-size:1rem;color:#333}.item .info[data-v-f59fee84]{margin-top:.125rem;width:16.875rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.item .time[data-v-f59fee84],.item .info[data-v-f59fee84]{font-size:.875rem;color:#999}.item uni-image[data-v-f59fee84]{width:3.125rem;height:3.125rem;border-radius:50%;background-color:#f8f8f8;margin-right:.75rem} diff --git a/unpackage/dist/build/app-plus/pages/talk/system.css b/unpackage/dist/build/app-plus/pages/talk/system.css new file mode 100644 index 0000000..ea91edb --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/talk/system.css @@ -0,0 +1 @@ +body{background-color:#f8f8f8}.content[data-v-2f0571e9]{padding-bottom:3.75rem}.list[data-v-2f0571e9]{padding:1.25rem .9375rem}.list .item[data-v-2f0571e9]:not(:first-child){margin-top:1.875rem}.list .item uni-image[data-v-2f0571e9]{width:2.6875rem;height:2.6875rem;border-radius:50%}.list .item .left .content[data-v-2f0571e9]{padding:.75rem .9375rem;background:#fff;border-radius:0 .5rem .5rem;margin-left:.75rem;font-size:.875rem;color:#333} diff --git a/unpackage/dist/build/app-plus/pages/task/handle.css b/unpackage/dist/build/app-plus/pages/task/handle.css new file mode 100644 index 0000000..fc177b9 --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/task/handle.css @@ -0,0 +1 @@ +.uniui-cart-filled[data-v-5610c8db]:before{content:"\e6d0"}.uniui-gift-filled[data-v-5610c8db]:before{content:"\e6c4"}.uniui-color[data-v-5610c8db]:before{content:"\e6cf"}.uniui-wallet[data-v-5610c8db]:before{content:"\e6b1"}.uniui-settings-filled[data-v-5610c8db]:before{content:"\e6ce"}.uniui-auth-filled[data-v-5610c8db]:before{content:"\e6cc"}.uniui-shop-filled[data-v-5610c8db]:before{content:"\e6cd"}.uniui-staff-filled[data-v-5610c8db]:before{content:"\e6cb"}.uniui-vip-filled[data-v-5610c8db]:before{content:"\e6c6"}.uniui-plus-filled[data-v-5610c8db]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-5610c8db]:before{content:"\e6c8"}.uniui-color-filled[data-v-5610c8db]:before{content:"\e6c9"}.uniui-tune-filled[data-v-5610c8db]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-5610c8db]:before{content:"\e6c0"}.uniui-notification-filled[data-v-5610c8db]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-5610c8db]:before{content:"\e6c2"}.uniui-medal-filled[data-v-5610c8db]:before{content:"\e6c3"}.uniui-fire-filled[data-v-5610c8db]:before{content:"\e6c5"}.uniui-refreshempty[data-v-5610c8db]:before{content:"\e6bf"}.uniui-location-filled[data-v-5610c8db]:before{content:"\e6af"}.uniui-person-filled[data-v-5610c8db]:before{content:"\e69d"}.uniui-personadd-filled[data-v-5610c8db]:before{content:"\e698"}.uniui-arrowthinleft[data-v-5610c8db]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-5610c8db]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-5610c8db]:before{content:"\e6d4"}.uniui-back[data-v-5610c8db]:before{content:"\e6b9"}.uniui-forward[data-v-5610c8db]:before{content:"\e6ba"}.uniui-arrow-right[data-v-5610c8db]:before{content:"\e6bb"}.uniui-arrow-left[data-v-5610c8db]:before{content:"\e6bc"}.uniui-arrow-up[data-v-5610c8db]:before{content:"\e6bd"}.uniui-arrow-down[data-v-5610c8db]:before{content:"\e6be"}.uniui-arrowthinright[data-v-5610c8db]:before{content:"\e6d1"}.uniui-down[data-v-5610c8db]:before{content:"\e6b8"}.uniui-bottom[data-v-5610c8db]:before{content:"\e6b8"}.uniui-arrowright[data-v-5610c8db]:before{content:"\e6d5"}.uniui-right[data-v-5610c8db]:before{content:"\e6b5"}.uniui-up[data-v-5610c8db]:before{content:"\e6b6"}.uniui-top[data-v-5610c8db]:before{content:"\e6b6"}.uniui-left[data-v-5610c8db]:before{content:"\e6b7"}.uniui-arrowup[data-v-5610c8db]:before{content:"\e6d6"}.uniui-eye[data-v-5610c8db]:before{content:"\e651"}.uniui-eye-filled[data-v-5610c8db]:before{content:"\e66a"}.uniui-eye-slash[data-v-5610c8db]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-5610c8db]:before{content:"\e6b4"}.uniui-info-filled[data-v-5610c8db]:before{content:"\e649"}.uniui-reload[data-v-5610c8db]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-5610c8db]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-5610c8db]:before{content:"\e6ac"}.uniui-map-pin[data-v-5610c8db]:before{content:"\e6ad"}.uniui-location[data-v-5610c8db]:before{content:"\e6ae"}.uniui-starhalf[data-v-5610c8db]:before{content:"\e683"}.uniui-star[data-v-5610c8db]:before{content:"\e688"}.uniui-star-filled[data-v-5610c8db]:before{content:"\e68f"}.uniui-calendar[data-v-5610c8db]:before{content:"\e6a0"}.uniui-fire[data-v-5610c8db]:before{content:"\e6a1"}.uniui-medal[data-v-5610c8db]:before{content:"\e6a2"}.uniui-font[data-v-5610c8db]:before{content:"\e6a3"}.uniui-gift[data-v-5610c8db]:before{content:"\e6a4"}.uniui-link[data-v-5610c8db]:before{content:"\e6a5"}.uniui-notification[data-v-5610c8db]:before{content:"\e6a6"}.uniui-staff[data-v-5610c8db]:before{content:"\e6a7"}.uniui-vip[data-v-5610c8db]:before{content:"\e6a8"}.uniui-folder-add[data-v-5610c8db]:before{content:"\e6a9"}.uniui-tune[data-v-5610c8db]:before{content:"\e6aa"}.uniui-auth[data-v-5610c8db]:before{content:"\e6ab"}.uniui-person[data-v-5610c8db]:before{content:"\e699"}.uniui-email-filled[data-v-5610c8db]:before{content:"\e69a"}.uniui-phone-filled[data-v-5610c8db]:before{content:"\e69b"}.uniui-phone[data-v-5610c8db]:before{content:"\e69c"}.uniui-email[data-v-5610c8db]:before{content:"\e69e"}.uniui-personadd[data-v-5610c8db]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-5610c8db]:before{content:"\e692"}.uniui-contact[data-v-5610c8db]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-5610c8db]:before{content:"\e694"}.uniui-contact-filled[data-v-5610c8db]:before{content:"\e695"}.uniui-chatboxes[data-v-5610c8db]:before{content:"\e696"}.uniui-chatbubble[data-v-5610c8db]:before{content:"\e697"}.uniui-upload-filled[data-v-5610c8db]:before{content:"\e68e"}.uniui-upload[data-v-5610c8db]:before{content:"\e690"}.uniui-weixin[data-v-5610c8db]:before{content:"\e691"}.uniui-compose[data-v-5610c8db]:before{content:"\e67f"}.uniui-qq[data-v-5610c8db]:before{content:"\e680"}.uniui-download-filled[data-v-5610c8db]:before{content:"\e681"}.uniui-pyq[data-v-5610c8db]:before{content:"\e682"}.uniui-sound[data-v-5610c8db]:before{content:"\e684"}.uniui-trash-filled[data-v-5610c8db]:before{content:"\e685"}.uniui-sound-filled[data-v-5610c8db]:before{content:"\e686"}.uniui-trash[data-v-5610c8db]:before{content:"\e687"}.uniui-videocam-filled[data-v-5610c8db]:before{content:"\e689"}.uniui-spinner-cycle[data-v-5610c8db]:before{content:"\e68a"}.uniui-weibo[data-v-5610c8db]:before{content:"\e68b"}.uniui-videocam[data-v-5610c8db]:before{content:"\e68c"}.uniui-download[data-v-5610c8db]:before{content:"\e68d"}.uniui-help[data-v-5610c8db]:before{content:"\e679"}.uniui-navigate-filled[data-v-5610c8db]:before{content:"\e67a"}.uniui-plusempty[data-v-5610c8db]:before{content:"\e67b"}.uniui-smallcircle[data-v-5610c8db]:before{content:"\e67c"}.uniui-minus-filled[data-v-5610c8db]:before{content:"\e67d"}.uniui-micoff[data-v-5610c8db]:before{content:"\e67e"}.uniui-closeempty[data-v-5610c8db]:before{content:"\e66c"}.uniui-clear[data-v-5610c8db]:before{content:"\e66d"}.uniui-navigate[data-v-5610c8db]:before{content:"\e66e"}.uniui-minus[data-v-5610c8db]:before{content:"\e66f"}.uniui-image[data-v-5610c8db]:before{content:"\e670"}.uniui-mic[data-v-5610c8db]:before{content:"\e671"}.uniui-paperplane[data-v-5610c8db]:before{content:"\e672"}.uniui-close[data-v-5610c8db]:before{content:"\e673"}.uniui-help-filled[data-v-5610c8db]:before{content:"\e674"}.uniui-paperplane-filled[data-v-5610c8db]:before{content:"\e675"}.uniui-plus[data-v-5610c8db]:before{content:"\e676"}.uniui-mic-filled[data-v-5610c8db]:before{content:"\e677"}.uniui-image-filled[data-v-5610c8db]:before{content:"\e678"}.uniui-locked-filled[data-v-5610c8db]:before{content:"\e668"}.uniui-info[data-v-5610c8db]:before{content:"\e669"}.uniui-locked[data-v-5610c8db]:before{content:"\e66b"}.uniui-camera-filled[data-v-5610c8db]:before{content:"\e658"}.uniui-chat-filled[data-v-5610c8db]:before{content:"\e659"}.uniui-camera[data-v-5610c8db]:before{content:"\e65a"}.uniui-circle[data-v-5610c8db]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-5610c8db]:before{content:"\e65c"}.uniui-chat[data-v-5610c8db]:before{content:"\e65d"}.uniui-circle-filled[data-v-5610c8db]:before{content:"\e65e"}.uniui-flag[data-v-5610c8db]:before{content:"\e65f"}.uniui-flag-filled[data-v-5610c8db]:before{content:"\e660"}.uniui-gear-filled[data-v-5610c8db]:before{content:"\e661"}.uniui-home[data-v-5610c8db]:before{content:"\e662"}.uniui-home-filled[data-v-5610c8db]:before{content:"\e663"}.uniui-gear[data-v-5610c8db]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-5610c8db]:before{content:"\e665"}.uniui-map-filled[data-v-5610c8db]:before{content:"\e666"}.uniui-map[data-v-5610c8db]:before{content:"\e667"}.uniui-refresh-filled[data-v-5610c8db]:before{content:"\e656"}.uniui-refresh[data-v-5610c8db]:before{content:"\e657"}.uniui-cloud-upload[data-v-5610c8db]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-5610c8db]:before{content:"\e646"}.uniui-cloud-download[data-v-5610c8db]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-5610c8db]:before{content:"\e648"}.uniui-redo[data-v-5610c8db]:before{content:"\e64a"}.uniui-images-filled[data-v-5610c8db]:before{content:"\e64b"}.uniui-undo-filled[data-v-5610c8db]:before{content:"\e64c"}.uniui-more[data-v-5610c8db]:before{content:"\e64d"}.uniui-more-filled[data-v-5610c8db]:before{content:"\e64e"}.uniui-undo[data-v-5610c8db]:before{content:"\e64f"}.uniui-images[data-v-5610c8db]:before{content:"\e650"}.uniui-paperclip[data-v-5610c8db]:before{content:"\e652"}.uniui-settings[data-v-5610c8db]:before{content:"\e653"}.uniui-search[data-v-5610c8db]:before{content:"\e654"}.uniui-redo-filled[data-v-5610c8db]:before{content:"\e655"}.uniui-list[data-v-5610c8db]:before{content:"\e644"}.uniui-mail-open-filled[data-v-5610c8db]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-5610c8db]:before{content:"\e63c"}.uniui-hand-down[data-v-5610c8db]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-5610c8db]:before{content:"\e63e"}.uniui-hand-up[data-v-5610c8db]:before{content:"\e63f"}.uniui-heart-filled[data-v-5610c8db]:before{content:"\e641"}.uniui-mail-open[data-v-5610c8db]:before{content:"\e643"}.uniui-heart[data-v-5610c8db]:before{content:"\e639"}.uniui-loop[data-v-5610c8db]:before{content:"\e633"}.uniui-pulldown[data-v-5610c8db]:before{content:"\e632"}.uniui-scan[data-v-5610c8db]:before{content:"\e62a"}.uniui-bars[data-v-5610c8db]:before{content:"\e627"}.uniui-checkbox[data-v-5610c8db]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-5610c8db]:before{content:"\e62c"}.uniui-shop[data-v-5610c8db]:before{content:"\e62f"}.uniui-headphones[data-v-5610c8db]:before{content:"\e630"}.uniui-cart[data-v-5610c8db]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-5610c8db]{font-family:uniicons;text-decoration:none;text-align:center}.uni-popup[data-v-9c09fb6f]{position:fixed;z-index:99}.uni-popup.top[data-v-9c09fb6f],.uni-popup.left[data-v-9c09fb6f],.uni-popup.right[data-v-9c09fb6f]{top:0}.uni-popup .uni-popup__wrapper[data-v-9c09fb6f]{display:block;position:relative}.uni-popup .uni-popup__wrapper.left[data-v-9c09fb6f],.uni-popup .uni-popup__wrapper.right[data-v-9c09fb6f]{padding-top:0;flex:1}.fixforpc-z-index[data-v-9c09fb6f]{z-index:999}.fixforpc-top[data-v-9c09fb6f]{top:0}.nav[data-v-566e182b]{width:calc(100% - 1.875rem);padding:0 .9375rem;height:var(--bc08538a);background:linear-gradient(270deg,#256fbc,#044d87);font-size:.75rem;color:#fff;position:fixed;top:0;left:0;z-index:99}.place[data-v-566e182b]{height:var(--bc08538a)}body{background-color:#f8f8f8}.popup[data-v-12da9556]{width:21.5625rem;background:#fff;border-radius:.25rem}.popup .node[data-v-12da9556]{margin:.75rem;font-size:.875rem;color:#333;padding:0 .625rem}.popup .agree_operate[data-v-12da9556]{padding:.75rem;font-size:.875rem;color:#333}.popup .agree_operate uni-image[data-v-12da9556]{width:1.25rem;height:1.25rem;margin-right:.3125rem}.popup .title[data-v-12da9556]{font-size:1rem;color:#000;text-align:center;padding:1.25rem 0}.popup .input[data-v-12da9556]{width:18.1875rem;height:7.0625rem;background:#f8f8f8;border-radius:.25rem;padding:.75rem}.popup .input uni-textarea[data-v-12da9556]{flex:1;width:100%}.popup .input uni-view[data-v-12da9556]{text-align:right;font-size:.875rem;color:#999}.popup .popbtn[data-v-12da9556]{font-size:1rem;border-top:1px solid #E5E5E5;margin-top:1.25rem;position:relative}.popup .popbtn[data-v-12da9556]:after{position:absolute;content:" ";height:3.125rem;width:1px;background-color:#e5e5e5;left:50%;transform:translate(-50%)}.popup .popbtn uni-view[data-v-12da9556]{flex:1;text-align:center;height:3.125rem;line-height:3.125rem}.popup .popbtn .cancel[data-v-12da9556]{color:#000}.popup .popbtn .confirm[data-v-12da9556]{color:#007fff}.content[data-v-12da9556]{padding-bottom:3.75rem}.btn[data-v-12da9556]{position:fixed;bottom:0;width:21.5625rem;height:3.75rem;background:#fff;padding:0 .9375rem}.btn uni-view[data-v-12da9556]{width:10.3125rem;height:2.75rem;font-size:.875rem;border-radius:.5rem;text-align:center;line-height:2.75rem}.btn .refuse[data-v-12da9556]{box-sizing:border-box;background:#fff;border:.0625rem solid #01508B;color:#01508b}.btn .agree[data-v-12da9556]{background:#01508b;color:#fff}.box[data-v-12da9556]{position:absolute;bottom:.375rem;left:0}.back[data-v-12da9556]{padding-left:.9375rem}uni-image[data-v-12da9556]{width:2rem;height:2rem;border-radius:1rem;background-color:#fff;margin-right:.5rem;margin-left:1.5625rem}.name[data-v-12da9556]{font-size:.875rem;color:#fff}.status[data-v-12da9556]{padding:.125rem .25rem;display:inline-block;background-color:#fe4600;color:#fff;font-size:.625rem;margin-left:.25rem;border-radius:.25rem} diff --git a/unpackage/dist/build/app-plus/pages/task/index.css b/unpackage/dist/build/app-plus/pages/task/index.css new file mode 100644 index 0000000..a284289 --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/task/index.css @@ -0,0 +1 @@ +.list_box[data-v-3868ba91]{padding:0 .9375rem;margin-top:.75rem}.list_box .list[data-v-3868ba91]{background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;padding:.9375rem;margin-bottom:.9375rem}.list_box .list .title[data-v-3868ba91]{border-bottom:1px solid #efefef;padding-bottom:.75rem;margin-bottom:.25rem}.list_box .list .title uni-view[data-v-3868ba91]{font-size:.875rem;color:#333}.list_box .list .title uni-text[data-v-3868ba91]{font-size:.875rem;color:#999}.list_box .list .info[data-v-3868ba91]{font-size:.875rem;color:#666}.list_box .list .info uni-view[data-v-3868ba91]{padding-top:.5rem}.list_box .list .btn[data-v-3868ba91]{margin-top:.9375rem}.list_box .list .btn uni-view[data-v-3868ba91]{width:9.375rem;height:2rem;border-radius:.25rem;font-size:.875rem;text-align:center;line-height:2rem}.list_box .list .btn .entrust[data-v-3868ba91]{background:#fff;border:.0625rem solid #01508B;box-sizing:border-box;color:#01508b}.list_box .list .btn .handle[data-v-3868ba91]{background:#01508b;color:#fff}body{background-color:#f8f8f8}.tasklist[data-v-965734c1]{padding-top:3.125rem}.nav[data-v-965734c1]{background-color:#fff;height:3.125rem;width:100vw;position:fixed;top:0;left:0;z-index:99}.nav .tab_box[data-v-965734c1]{padding:.75rem 0}.nav .tab_box uni-view[data-v-965734c1]{position:relative;font-size:.875rem;color:#666}.nav .tab_box .active[data-v-965734c1]{font-size:.875rem;color:#01508b}.nav .tab_box .active[data-v-965734c1]:after{position:absolute;width:7.1875rem;height:.0625rem;background:#01508b;content:" ";bottom:-.6875rem;left:50%;transform:translate(-50%)}.nav .time_box[data-v-965734c1]{padding:.625rem 0}.nav .time_box .time[data-v-965734c1]{padding:0 .9375rem;width:19.6875rem;height:2.25rem;background:#f8f8f8;border-radius:.25rem}.nav .time_box .time uni-image[data-v-965734c1]{width:1.0625rem;height:1.0625rem} diff --git a/unpackage/dist/build/app-plus/pages/task/self.css b/unpackage/dist/build/app-plus/pages/task/self.css new file mode 100644 index 0000000..56f091e --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/task/self.css @@ -0,0 +1 @@ +.list_box[data-v-3868ba91]{padding:0 .9375rem;margin-top:.75rem}.list_box .list[data-v-3868ba91]{background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;padding:.9375rem;margin-bottom:.9375rem}.list_box .list .title[data-v-3868ba91]{border-bottom:1px solid #efefef;padding-bottom:.75rem;margin-bottom:.25rem}.list_box .list .title uni-view[data-v-3868ba91]{font-size:.875rem;color:#333}.list_box .list .title uni-text[data-v-3868ba91]{font-size:.875rem;color:#999}.list_box .list .info[data-v-3868ba91]{font-size:.875rem;color:#666}.list_box .list .info uni-view[data-v-3868ba91]{padding-top:.5rem}.list_box .list .btn[data-v-3868ba91]{margin-top:.9375rem}.list_box .list .btn uni-view[data-v-3868ba91]{width:9.375rem;height:2rem;border-radius:.25rem;font-size:.875rem;text-align:center;line-height:2rem}.list_box .list .btn .entrust[data-v-3868ba91]{background:#fff;border:.0625rem solid #01508B;box-sizing:border-box;color:#01508b}.list_box .list .btn .handle[data-v-3868ba91]{background:#01508b;color:#fff} diff --git a/unpackage/dist/build/app-plus/pages/task/todotask.css b/unpackage/dist/build/app-plus/pages/task/todotask.css new file mode 100644 index 0000000..a35bf64 --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/task/todotask.css @@ -0,0 +1 @@ +body[data-v-d5e6674e]{background-color:#f8f8f8}.content[data-v-d5e6674e]{padding-top:.9375rem}.todo .title_box[data-v-d5e6674e]{width:19.6875rem;height:3.375rem;background:#fff;box-shadow:0 .0625rem .1875rem rgba(0,0,0,.16);border-radius:.5rem;padding:0 .9375rem}.todo .title_box .title[data-v-d5e6674e]{font-weight:500;font-size:1rem;color:#333}.todo .title_box .title uni-image[data-v-d5e6674e]{width:1.5rem;height:1.5rem}.todo .title_box .num[data-v-d5e6674e]{width:1.6875rem;height:1.6875rem;background:url(../../static/my/num.png) no-repeat;background-size:1.6875rem 1.6875rem;font-size:.75rem;color:#fff;text-align:center;line-height:1.6875rem}.todo .list[data-v-d5e6674e]{width:17.8125rem;padding:.625rem .9375rem .9375rem;background:#fff;box-shadow:0 .0625rem .1875rem rgba(0,0,0,.16);border-radius:0 0 .5rem .5rem}.todo .list .box[data-v-d5e6674e]{max-height:3.75rem;transition:all .3s;overflow:hidden}.todo .list .box .item_box[data-v-d5e6674e]{display:flex;flex-wrap:wrap}.todo .list .box .item[data-v-d5e6674e]{font-size:.875rem;height:1.875rem;width:50%}.todo .list .box .item uni-view[data-v-d5e6674e]{color:#666;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis}.todo .list .box .item uni-text[data-v-d5e6674e]{color:#ed361d;margin:0 .3125rem}.todo .list .close[data-v-d5e6674e]{max-height:var(--11d92706)}.todo .list .more[data-v-d5e6674e]{font-size:.875rem;color:#008dff;text-decoration:underline;margin-top:.625rem}.drag[data-v-df705bde]{background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;margin:.75rem .9375rem 0}.drag .title[data-v-df705bde]{font-size:.875rem;color:#333;padding:.9375rem 0 0 .9375rem}.inner uni-image[data-v-df705bde]{width:3.0625rem;height:3.0625rem;background-color:#efefef}.inner .text[data-v-df705bde]{font-size:.875rem;color:#333;margin-top:.625rem}.placeholder[data-v-df705bde]{height:var(--6ebd20b9)}.nav[data-v-df705bde]{width:calc(100% - 1.875rem);padding:0 .9375rem;height:var(--6ebd20b9);font-size:.75rem;color:#fff;position:fixed;top:0;left:0;z-index:99;background-image:url(../../static/my/navbg.png);background-repeat:no-repeat;background-size:23.4375rem 14.3125rem}.content[data-v-df705bde]{padding:0 .9375rem .625rem}.list[data-v-df705bde]{margin-bottom:.75rem}.list .item[data-v-df705bde]{background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem;padding:.9375rem 0;margin-top:.75rem}.list .item .title[data-v-df705bde]{font-size:.875rem;color:#333;padding-left:.9375rem}.list uni-image[data-v-df705bde]{width:3.0625rem;height:3.0625rem}.list .info_box[data-v-df705bde]{flex-wrap:wrap}.list .info_box .info[data-v-df705bde]{margin-top:1.25rem;width:25%}.list .info_box .info .text[data-v-df705bde]{font-size:.875rem;color:#333;margin-top:.625rem} diff --git a/unpackage/dist/build/app-plus/pages/useredit/add_address.css b/unpackage/dist/build/app-plus/pages/useredit/add_address.css new file mode 100644 index 0000000..730a447 --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/useredit/add_address.css @@ -0,0 +1 @@ +body{background-color:#fff}.content[data-v-c71fcfcd]{padding:.9375rem .9375rem 3.75rem}.area[data-v-c71fcfcd]:not(:first-child){margin-top:1.25rem}.area uni-image[data-v-c71fcfcd]{width:1.1875rem;height:1.1875rem}.area .topic[data-v-c71fcfcd]{margin-top:.875rem}.area .title[data-v-c71fcfcd]{font-size:1rem;color:#333}.area uni-input[data-v-c71fcfcd]{width:14.75rem;height:3rem;background:#f6f6f6;border-radius:.5rem;padding:0 .9375rem}.area uni-textarea[data-v-c71fcfcd]{width:14.75rem;height:3.25rem;background:#f6f6f6;border-radius:.5rem;padding:.875rem .9375rem}.btn[data-v-c71fcfcd]{position:fixed;bottom:0;width:23.4375rem;height:3.75rem;background:#fff;justify-content:center;left:0}.btn uni-view[data-v-c71fcfcd]{width:21.5625rem;height:2.75rem;background:#01508b;border-radius:.25rem;font-size:1rem;color:#fff;text-align:center;line-height:2.75rem} diff --git a/unpackage/dist/build/app-plus/pages/useredit/address.css b/unpackage/dist/build/app-plus/pages/useredit/address.css new file mode 100644 index 0000000..0a17955 --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/useredit/address.css @@ -0,0 +1 @@ +body{background-color:#f8f8f8}.content[data-v-837db36d]{padding-bottom:3.75rem}.list[data-v-837db36d]{padding:.9375rem}.list .item[data-v-837db36d]:not(:first-child){margin-top:.9375rem}.list .item[data-v-837db36d]{padding:.9375rem;background:#fff;box-shadow:0 .0625rem .125rem rgba(0,0,0,.5);border-radius:.5rem}.list .item .province[data-v-837db36d]{font-size:.875rem;color:#333;margin-bottom:.3125rem}.list .item .province uni-image[data-v-837db36d]{width:1.75rem;height:1.125rem;margin-left:.5rem}.list .item .address[data-v-837db36d]{font-size:.75rem;color:#666;padding-bottom:.9375rem;border-bottom:1px solid #EFEFEF}.list .item .address uni-view[data-v-837db36d]{flex:1}.list .item .address uni-image[data-v-837db36d]{width:.875rem;height:.9375rem;margin-left:.625rem}.list .item .set[data-v-837db36d]{margin-top:.9375rem;font-size:.75rem;color:#666}.list .item .set uni-image[data-v-837db36d]{width:1.1875rem;height:1.1875rem;margin-right:.375rem}.btn[data-v-837db36d]{position:fixed;bottom:0;width:23.4375rem;height:3.75rem;background:#fff;justify-content:center}.btn uni-view[data-v-837db36d]{width:21.5625rem;height:2.75rem;background:#01508b;border-radius:.25rem;font-size:1rem;color:#fff;text-align:center;line-height:2.75rem} diff --git a/unpackage/dist/build/app-plus/pages/useredit/addressbook.css b/unpackage/dist/build/app-plus/pages/useredit/addressbook.css new file mode 100644 index 0000000..d53700d --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/useredit/addressbook.css @@ -0,0 +1 @@ +.list[data-v-e9ce91fd]{padding:0 .9375rem}.list .item[data-v-e9ce91fd]{padding:.9375rem 0;border-bottom:1px solid #EFEFEF}.list .item uni-image[data-v-e9ce91fd]{width:3.125rem;height:3.125rem;border-radius:1.5625rem;background-color:#efefef;margin-right:.9375rem}.list .item .name[data-v-e9ce91fd]{font-size:1rem;color:#333}.list .item .job[data-v-e9ce91fd]{font-size:.75rem;color:#999;margin-top:.25rem}.list .item .btn[data-v-e9ce91fd]{width:4.125rem;height:1.875rem;background:#01508b;border-radius:.25rem;text-align:center;line-height:1.875rem;font-size:.75rem;color:#fff} diff --git a/unpackage/dist/build/app-plus/pages/useredit/useredit.css b/unpackage/dist/build/app-plus/pages/useredit/useredit.css new file mode 100644 index 0000000..ddd1986 --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/useredit/useredit.css @@ -0,0 +1 @@ +.uniui-cart-filled[data-v-5610c8db]:before{content:"\e6d0"}.uniui-gift-filled[data-v-5610c8db]:before{content:"\e6c4"}.uniui-color[data-v-5610c8db]:before{content:"\e6cf"}.uniui-wallet[data-v-5610c8db]:before{content:"\e6b1"}.uniui-settings-filled[data-v-5610c8db]:before{content:"\e6ce"}.uniui-auth-filled[data-v-5610c8db]:before{content:"\e6cc"}.uniui-shop-filled[data-v-5610c8db]:before{content:"\e6cd"}.uniui-staff-filled[data-v-5610c8db]:before{content:"\e6cb"}.uniui-vip-filled[data-v-5610c8db]:before{content:"\e6c6"}.uniui-plus-filled[data-v-5610c8db]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-5610c8db]:before{content:"\e6c8"}.uniui-color-filled[data-v-5610c8db]:before{content:"\e6c9"}.uniui-tune-filled[data-v-5610c8db]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-5610c8db]:before{content:"\e6c0"}.uniui-notification-filled[data-v-5610c8db]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-5610c8db]:before{content:"\e6c2"}.uniui-medal-filled[data-v-5610c8db]:before{content:"\e6c3"}.uniui-fire-filled[data-v-5610c8db]:before{content:"\e6c5"}.uniui-refreshempty[data-v-5610c8db]:before{content:"\e6bf"}.uniui-location-filled[data-v-5610c8db]:before{content:"\e6af"}.uniui-person-filled[data-v-5610c8db]:before{content:"\e69d"}.uniui-personadd-filled[data-v-5610c8db]:before{content:"\e698"}.uniui-arrowthinleft[data-v-5610c8db]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-5610c8db]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-5610c8db]:before{content:"\e6d4"}.uniui-back[data-v-5610c8db]:before{content:"\e6b9"}.uniui-forward[data-v-5610c8db]:before{content:"\e6ba"}.uniui-arrow-right[data-v-5610c8db]:before{content:"\e6bb"}.uniui-arrow-left[data-v-5610c8db]:before{content:"\e6bc"}.uniui-arrow-up[data-v-5610c8db]:before{content:"\e6bd"}.uniui-arrow-down[data-v-5610c8db]:before{content:"\e6be"}.uniui-arrowthinright[data-v-5610c8db]:before{content:"\e6d1"}.uniui-down[data-v-5610c8db]:before{content:"\e6b8"}.uniui-bottom[data-v-5610c8db]:before{content:"\e6b8"}.uniui-arrowright[data-v-5610c8db]:before{content:"\e6d5"}.uniui-right[data-v-5610c8db]:before{content:"\e6b5"}.uniui-up[data-v-5610c8db]:before{content:"\e6b6"}.uniui-top[data-v-5610c8db]:before{content:"\e6b6"}.uniui-left[data-v-5610c8db]:before{content:"\e6b7"}.uniui-arrowup[data-v-5610c8db]:before{content:"\e6d6"}.uniui-eye[data-v-5610c8db]:before{content:"\e651"}.uniui-eye-filled[data-v-5610c8db]:before{content:"\e66a"}.uniui-eye-slash[data-v-5610c8db]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-5610c8db]:before{content:"\e6b4"}.uniui-info-filled[data-v-5610c8db]:before{content:"\e649"}.uniui-reload[data-v-5610c8db]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-5610c8db]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-5610c8db]:before{content:"\e6ac"}.uniui-map-pin[data-v-5610c8db]:before{content:"\e6ad"}.uniui-location[data-v-5610c8db]:before{content:"\e6ae"}.uniui-starhalf[data-v-5610c8db]:before{content:"\e683"}.uniui-star[data-v-5610c8db]:before{content:"\e688"}.uniui-star-filled[data-v-5610c8db]:before{content:"\e68f"}.uniui-calendar[data-v-5610c8db]:before{content:"\e6a0"}.uniui-fire[data-v-5610c8db]:before{content:"\e6a1"}.uniui-medal[data-v-5610c8db]:before{content:"\e6a2"}.uniui-font[data-v-5610c8db]:before{content:"\e6a3"}.uniui-gift[data-v-5610c8db]:before{content:"\e6a4"}.uniui-link[data-v-5610c8db]:before{content:"\e6a5"}.uniui-notification[data-v-5610c8db]:before{content:"\e6a6"}.uniui-staff[data-v-5610c8db]:before{content:"\e6a7"}.uniui-vip[data-v-5610c8db]:before{content:"\e6a8"}.uniui-folder-add[data-v-5610c8db]:before{content:"\e6a9"}.uniui-tune[data-v-5610c8db]:before{content:"\e6aa"}.uniui-auth[data-v-5610c8db]:before{content:"\e6ab"}.uniui-person[data-v-5610c8db]:before{content:"\e699"}.uniui-email-filled[data-v-5610c8db]:before{content:"\e69a"}.uniui-phone-filled[data-v-5610c8db]:before{content:"\e69b"}.uniui-phone[data-v-5610c8db]:before{content:"\e69c"}.uniui-email[data-v-5610c8db]:before{content:"\e69e"}.uniui-personadd[data-v-5610c8db]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-5610c8db]:before{content:"\e692"}.uniui-contact[data-v-5610c8db]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-5610c8db]:before{content:"\e694"}.uniui-contact-filled[data-v-5610c8db]:before{content:"\e695"}.uniui-chatboxes[data-v-5610c8db]:before{content:"\e696"}.uniui-chatbubble[data-v-5610c8db]:before{content:"\e697"}.uniui-upload-filled[data-v-5610c8db]:before{content:"\e68e"}.uniui-upload[data-v-5610c8db]:before{content:"\e690"}.uniui-weixin[data-v-5610c8db]:before{content:"\e691"}.uniui-compose[data-v-5610c8db]:before{content:"\e67f"}.uniui-qq[data-v-5610c8db]:before{content:"\e680"}.uniui-download-filled[data-v-5610c8db]:before{content:"\e681"}.uniui-pyq[data-v-5610c8db]:before{content:"\e682"}.uniui-sound[data-v-5610c8db]:before{content:"\e684"}.uniui-trash-filled[data-v-5610c8db]:before{content:"\e685"}.uniui-sound-filled[data-v-5610c8db]:before{content:"\e686"}.uniui-trash[data-v-5610c8db]:before{content:"\e687"}.uniui-videocam-filled[data-v-5610c8db]:before{content:"\e689"}.uniui-spinner-cycle[data-v-5610c8db]:before{content:"\e68a"}.uniui-weibo[data-v-5610c8db]:before{content:"\e68b"}.uniui-videocam[data-v-5610c8db]:before{content:"\e68c"}.uniui-download[data-v-5610c8db]:before{content:"\e68d"}.uniui-help[data-v-5610c8db]:before{content:"\e679"}.uniui-navigate-filled[data-v-5610c8db]:before{content:"\e67a"}.uniui-plusempty[data-v-5610c8db]:before{content:"\e67b"}.uniui-smallcircle[data-v-5610c8db]:before{content:"\e67c"}.uniui-minus-filled[data-v-5610c8db]:before{content:"\e67d"}.uniui-micoff[data-v-5610c8db]:before{content:"\e67e"}.uniui-closeempty[data-v-5610c8db]:before{content:"\e66c"}.uniui-clear[data-v-5610c8db]:before{content:"\e66d"}.uniui-navigate[data-v-5610c8db]:before{content:"\e66e"}.uniui-minus[data-v-5610c8db]:before{content:"\e66f"}.uniui-image[data-v-5610c8db]:before{content:"\e670"}.uniui-mic[data-v-5610c8db]:before{content:"\e671"}.uniui-paperplane[data-v-5610c8db]:before{content:"\e672"}.uniui-close[data-v-5610c8db]:before{content:"\e673"}.uniui-help-filled[data-v-5610c8db]:before{content:"\e674"}.uniui-paperplane-filled[data-v-5610c8db]:before{content:"\e675"}.uniui-plus[data-v-5610c8db]:before{content:"\e676"}.uniui-mic-filled[data-v-5610c8db]:before{content:"\e677"}.uniui-image-filled[data-v-5610c8db]:before{content:"\e678"}.uniui-locked-filled[data-v-5610c8db]:before{content:"\e668"}.uniui-info[data-v-5610c8db]:before{content:"\e669"}.uniui-locked[data-v-5610c8db]:before{content:"\e66b"}.uniui-camera-filled[data-v-5610c8db]:before{content:"\e658"}.uniui-chat-filled[data-v-5610c8db]:before{content:"\e659"}.uniui-camera[data-v-5610c8db]:before{content:"\e65a"}.uniui-circle[data-v-5610c8db]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-5610c8db]:before{content:"\e65c"}.uniui-chat[data-v-5610c8db]:before{content:"\e65d"}.uniui-circle-filled[data-v-5610c8db]:before{content:"\e65e"}.uniui-flag[data-v-5610c8db]:before{content:"\e65f"}.uniui-flag-filled[data-v-5610c8db]:before{content:"\e660"}.uniui-gear-filled[data-v-5610c8db]:before{content:"\e661"}.uniui-home[data-v-5610c8db]:before{content:"\e662"}.uniui-home-filled[data-v-5610c8db]:before{content:"\e663"}.uniui-gear[data-v-5610c8db]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-5610c8db]:before{content:"\e665"}.uniui-map-filled[data-v-5610c8db]:before{content:"\e666"}.uniui-map[data-v-5610c8db]:before{content:"\e667"}.uniui-refresh-filled[data-v-5610c8db]:before{content:"\e656"}.uniui-refresh[data-v-5610c8db]:before{content:"\e657"}.uniui-cloud-upload[data-v-5610c8db]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-5610c8db]:before{content:"\e646"}.uniui-cloud-download[data-v-5610c8db]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-5610c8db]:before{content:"\e648"}.uniui-redo[data-v-5610c8db]:before{content:"\e64a"}.uniui-images-filled[data-v-5610c8db]:before{content:"\e64b"}.uniui-undo-filled[data-v-5610c8db]:before{content:"\e64c"}.uniui-more[data-v-5610c8db]:before{content:"\e64d"}.uniui-more-filled[data-v-5610c8db]:before{content:"\e64e"}.uniui-undo[data-v-5610c8db]:before{content:"\e64f"}.uniui-images[data-v-5610c8db]:before{content:"\e650"}.uniui-paperclip[data-v-5610c8db]:before{content:"\e652"}.uniui-settings[data-v-5610c8db]:before{content:"\e653"}.uniui-search[data-v-5610c8db]:before{content:"\e654"}.uniui-redo-filled[data-v-5610c8db]:before{content:"\e655"}.uniui-list[data-v-5610c8db]:before{content:"\e644"}.uniui-mail-open-filled[data-v-5610c8db]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-5610c8db]:before{content:"\e63c"}.uniui-hand-down[data-v-5610c8db]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-5610c8db]:before{content:"\e63e"}.uniui-hand-up[data-v-5610c8db]:before{content:"\e63f"}.uniui-heart-filled[data-v-5610c8db]:before{content:"\e641"}.uniui-mail-open[data-v-5610c8db]:before{content:"\e643"}.uniui-heart[data-v-5610c8db]:before{content:"\e639"}.uniui-loop[data-v-5610c8db]:before{content:"\e633"}.uniui-pulldown[data-v-5610c8db]:before{content:"\e632"}.uniui-scan[data-v-5610c8db]:before{content:"\e62a"}.uniui-bars[data-v-5610c8db]:before{content:"\e627"}.uniui-checkbox[data-v-5610c8db]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-5610c8db]:before{content:"\e62c"}.uniui-shop[data-v-5610c8db]:before{content:"\e62f"}.uniui-headphones[data-v-5610c8db]:before{content:"\e630"}.uniui-cart[data-v-5610c8db]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-5610c8db]{font-family:uniicons;text-decoration:none;text-align:center}.choose[data-v-3dbb4317]{font-size:1rem;color:#999}.choosed[data-v-3dbb4317]{font-size:1rem;color:#333}uni-button[data-v-3dbb4317]:after{display:none}.content[data-v-3dbb4317]{padding:.9375rem .9375rem 0}.content .box[data-v-3dbb4317]:not(:last-child){border-bottom:.03125rem solid #EFEFEF}.content .box[data-v-3dbb4317]{display:flex;align-items:center;justify-content:space-between;font-size:1rem;color:#333}.content .box uni-button[data-v-3dbb4317]{background-color:#fff;margin:0;padding:0;border:none}.content .box uni-button uni-image[data-v-3dbb4317]{width:3.125rem;height:3.125rem;border-radius:50%;background-color:#f8f8f8}.content .box .value[data-v-3dbb4317]{color:#999}.content .out_login[data-v-3dbb4317]{color:#ed361d;font-size:1rem;font-weight:700;margin-top:1.875rem;text-align:center}.line[data-v-3dbb4317]{height:.3125rem;background:#f8f8f8}.btn[data-v-3dbb4317]{margin-top:1.25rem;text-align:center;font-size:1rem;color:#db4b31} diff --git a/unpackage/dist/build/app-plus/pages/userlist/index.css b/unpackage/dist/build/app-plus/pages/userlist/index.css new file mode 100644 index 0000000..6517499 --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/userlist/index.css @@ -0,0 +1 @@ +.uni-load-more[data-v-a7e112cc]{display:flex;flex-direction:row;height:40px;align-items:center;justify-content:center}.uni-load-more__text[data-v-a7e112cc]{font-size:14px;margin-left:8px}.uni-load-more__img[data-v-a7e112cc]{width:24px;height:24px}.uni-load-more__img--nvue[data-v-a7e112cc]{color:#666}.uni-load-more__img--android[data-v-a7e112cc],.uni-load-more__img--ios[data-v-a7e112cc]{width:24px;height:24px;transform:rotate(0)}.uni-load-more__img--android[data-v-a7e112cc]{animation:loading-ios 1s 0s linear infinite}.uni-load-more__img--ios-H5[data-v-a7e112cc]{position:relative;animation:loading-ios-H5-a7e112cc 1s 0s step-end infinite}.uni-load-more__img--ios-H5 uni-image[data-v-a7e112cc]{position:absolute;width:100%;height:100%;left:0;top:0}@keyframes loading-ios-H5-a7e112cc{0%{transform:rotate(0)}8%{transform:rotate(30deg)}16%{transform:rotate(60deg)}24%{transform:rotate(90deg)}32%{transform:rotate(120deg)}40%{transform:rotate(150deg)}48%{transform:rotate(180deg)}56%{transform:rotate(210deg)}64%{transform:rotate(240deg)}73%{transform:rotate(270deg)}82%{transform:rotate(300deg)}91%{transform:rotate(330deg)}to{transform:rotate(360deg)}}.uni-load-more__img--android-MP[data-v-a7e112cc]{position:relative;width:24px;height:24px;transform:rotate(0);animation:loading-ios 1s 0s ease infinite}.uni-load-more__img--android-MP .uni-load-more__img-icon[data-v-a7e112cc]{position:absolute;box-sizing:border-box;width:100%;height:100%;border-radius:50%;border:solid 2px transparent;border-top:solid 2px #777777;transform-origin:center}.uni-load-more__img--android-MP .uni-load-more__img-icon[data-v-a7e112cc]:nth-child(1){animation:loading-android-MP-1-a7e112cc 1s 0s linear infinite}.uni-load-more__img--android-MP .uni-load-more__img-icon[data-v-a7e112cc]:nth-child(2){animation:loading-android-MP-2-a7e112cc 1s 0s linear infinite}.uni-load-more__img--android-MP .uni-load-more__img-icon[data-v-a7e112cc]:nth-child(3){animation:loading-android-MP-3-a7e112cc 1s 0s linear infinite}@keyframes loading-android-a7e112cc{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes loading-android-MP-1-a7e112cc{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(360deg)}}@keyframes loading-android-MP-2-a7e112cc{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}@keyframes loading-android-MP-3-a7e112cc{0%{transform:rotate(0)}50%{transform:rotate(270deg)}to{transform:rotate(360deg)}}.uniui-cart-filled[data-v-5610c8db]:before{content:"\e6d0"}.uniui-gift-filled[data-v-5610c8db]:before{content:"\e6c4"}.uniui-color[data-v-5610c8db]:before{content:"\e6cf"}.uniui-wallet[data-v-5610c8db]:before{content:"\e6b1"}.uniui-settings-filled[data-v-5610c8db]:before{content:"\e6ce"}.uniui-auth-filled[data-v-5610c8db]:before{content:"\e6cc"}.uniui-shop-filled[data-v-5610c8db]:before{content:"\e6cd"}.uniui-staff-filled[data-v-5610c8db]:before{content:"\e6cb"}.uniui-vip-filled[data-v-5610c8db]:before{content:"\e6c6"}.uniui-plus-filled[data-v-5610c8db]:before{content:"\e6c7"}.uniui-folder-add-filled[data-v-5610c8db]:before{content:"\e6c8"}.uniui-color-filled[data-v-5610c8db]:before{content:"\e6c9"}.uniui-tune-filled[data-v-5610c8db]:before{content:"\e6ca"}.uniui-calendar-filled[data-v-5610c8db]:before{content:"\e6c0"}.uniui-notification-filled[data-v-5610c8db]:before{content:"\e6c1"}.uniui-wallet-filled[data-v-5610c8db]:before{content:"\e6c2"}.uniui-medal-filled[data-v-5610c8db]:before{content:"\e6c3"}.uniui-fire-filled[data-v-5610c8db]:before{content:"\e6c5"}.uniui-refreshempty[data-v-5610c8db]:before{content:"\e6bf"}.uniui-location-filled[data-v-5610c8db]:before{content:"\e6af"}.uniui-person-filled[data-v-5610c8db]:before{content:"\e69d"}.uniui-personadd-filled[data-v-5610c8db]:before{content:"\e698"}.uniui-arrowthinleft[data-v-5610c8db]:before{content:"\e6d2"}.uniui-arrowthinup[data-v-5610c8db]:before{content:"\e6d3"}.uniui-arrowthindown[data-v-5610c8db]:before{content:"\e6d4"}.uniui-back[data-v-5610c8db]:before{content:"\e6b9"}.uniui-forward[data-v-5610c8db]:before{content:"\e6ba"}.uniui-arrow-right[data-v-5610c8db]:before{content:"\e6bb"}.uniui-arrow-left[data-v-5610c8db]:before{content:"\e6bc"}.uniui-arrow-up[data-v-5610c8db]:before{content:"\e6bd"}.uniui-arrow-down[data-v-5610c8db]:before{content:"\e6be"}.uniui-arrowthinright[data-v-5610c8db]:before{content:"\e6d1"}.uniui-down[data-v-5610c8db]:before{content:"\e6b8"}.uniui-bottom[data-v-5610c8db]:before{content:"\e6b8"}.uniui-arrowright[data-v-5610c8db]:before{content:"\e6d5"}.uniui-right[data-v-5610c8db]:before{content:"\e6b5"}.uniui-up[data-v-5610c8db]:before{content:"\e6b6"}.uniui-top[data-v-5610c8db]:before{content:"\e6b6"}.uniui-left[data-v-5610c8db]:before{content:"\e6b7"}.uniui-arrowup[data-v-5610c8db]:before{content:"\e6d6"}.uniui-eye[data-v-5610c8db]:before{content:"\e651"}.uniui-eye-filled[data-v-5610c8db]:before{content:"\e66a"}.uniui-eye-slash[data-v-5610c8db]:before{content:"\e6b3"}.uniui-eye-slash-filled[data-v-5610c8db]:before{content:"\e6b4"}.uniui-info-filled[data-v-5610c8db]:before{content:"\e649"}.uniui-reload[data-v-5610c8db]:before{content:"\e6b2"}.uniui-micoff-filled[data-v-5610c8db]:before{content:"\e6b0"}.uniui-map-pin-ellipse[data-v-5610c8db]:before{content:"\e6ac"}.uniui-map-pin[data-v-5610c8db]:before{content:"\e6ad"}.uniui-location[data-v-5610c8db]:before{content:"\e6ae"}.uniui-starhalf[data-v-5610c8db]:before{content:"\e683"}.uniui-star[data-v-5610c8db]:before{content:"\e688"}.uniui-star-filled[data-v-5610c8db]:before{content:"\e68f"}.uniui-calendar[data-v-5610c8db]:before{content:"\e6a0"}.uniui-fire[data-v-5610c8db]:before{content:"\e6a1"}.uniui-medal[data-v-5610c8db]:before{content:"\e6a2"}.uniui-font[data-v-5610c8db]:before{content:"\e6a3"}.uniui-gift[data-v-5610c8db]:before{content:"\e6a4"}.uniui-link[data-v-5610c8db]:before{content:"\e6a5"}.uniui-notification[data-v-5610c8db]:before{content:"\e6a6"}.uniui-staff[data-v-5610c8db]:before{content:"\e6a7"}.uniui-vip[data-v-5610c8db]:before{content:"\e6a8"}.uniui-folder-add[data-v-5610c8db]:before{content:"\e6a9"}.uniui-tune[data-v-5610c8db]:before{content:"\e6aa"}.uniui-auth[data-v-5610c8db]:before{content:"\e6ab"}.uniui-person[data-v-5610c8db]:before{content:"\e699"}.uniui-email-filled[data-v-5610c8db]:before{content:"\e69a"}.uniui-phone-filled[data-v-5610c8db]:before{content:"\e69b"}.uniui-phone[data-v-5610c8db]:before{content:"\e69c"}.uniui-email[data-v-5610c8db]:before{content:"\e69e"}.uniui-personadd[data-v-5610c8db]:before{content:"\e69f"}.uniui-chatboxes-filled[data-v-5610c8db]:before{content:"\e692"}.uniui-contact[data-v-5610c8db]:before{content:"\e693"}.uniui-chatbubble-filled[data-v-5610c8db]:before{content:"\e694"}.uniui-contact-filled[data-v-5610c8db]:before{content:"\e695"}.uniui-chatboxes[data-v-5610c8db]:before{content:"\e696"}.uniui-chatbubble[data-v-5610c8db]:before{content:"\e697"}.uniui-upload-filled[data-v-5610c8db]:before{content:"\e68e"}.uniui-upload[data-v-5610c8db]:before{content:"\e690"}.uniui-weixin[data-v-5610c8db]:before{content:"\e691"}.uniui-compose[data-v-5610c8db]:before{content:"\e67f"}.uniui-qq[data-v-5610c8db]:before{content:"\e680"}.uniui-download-filled[data-v-5610c8db]:before{content:"\e681"}.uniui-pyq[data-v-5610c8db]:before{content:"\e682"}.uniui-sound[data-v-5610c8db]:before{content:"\e684"}.uniui-trash-filled[data-v-5610c8db]:before{content:"\e685"}.uniui-sound-filled[data-v-5610c8db]:before{content:"\e686"}.uniui-trash[data-v-5610c8db]:before{content:"\e687"}.uniui-videocam-filled[data-v-5610c8db]:before{content:"\e689"}.uniui-spinner-cycle[data-v-5610c8db]:before{content:"\e68a"}.uniui-weibo[data-v-5610c8db]:before{content:"\e68b"}.uniui-videocam[data-v-5610c8db]:before{content:"\e68c"}.uniui-download[data-v-5610c8db]:before{content:"\e68d"}.uniui-help[data-v-5610c8db]:before{content:"\e679"}.uniui-navigate-filled[data-v-5610c8db]:before{content:"\e67a"}.uniui-plusempty[data-v-5610c8db]:before{content:"\e67b"}.uniui-smallcircle[data-v-5610c8db]:before{content:"\e67c"}.uniui-minus-filled[data-v-5610c8db]:before{content:"\e67d"}.uniui-micoff[data-v-5610c8db]:before{content:"\e67e"}.uniui-closeempty[data-v-5610c8db]:before{content:"\e66c"}.uniui-clear[data-v-5610c8db]:before{content:"\e66d"}.uniui-navigate[data-v-5610c8db]:before{content:"\e66e"}.uniui-minus[data-v-5610c8db]:before{content:"\e66f"}.uniui-image[data-v-5610c8db]:before{content:"\e670"}.uniui-mic[data-v-5610c8db]:before{content:"\e671"}.uniui-paperplane[data-v-5610c8db]:before{content:"\e672"}.uniui-close[data-v-5610c8db]:before{content:"\e673"}.uniui-help-filled[data-v-5610c8db]:before{content:"\e674"}.uniui-paperplane-filled[data-v-5610c8db]:before{content:"\e675"}.uniui-plus[data-v-5610c8db]:before{content:"\e676"}.uniui-mic-filled[data-v-5610c8db]:before{content:"\e677"}.uniui-image-filled[data-v-5610c8db]:before{content:"\e678"}.uniui-locked-filled[data-v-5610c8db]:before{content:"\e668"}.uniui-info[data-v-5610c8db]:before{content:"\e669"}.uniui-locked[data-v-5610c8db]:before{content:"\e66b"}.uniui-camera-filled[data-v-5610c8db]:before{content:"\e658"}.uniui-chat-filled[data-v-5610c8db]:before{content:"\e659"}.uniui-camera[data-v-5610c8db]:before{content:"\e65a"}.uniui-circle[data-v-5610c8db]:before{content:"\e65b"}.uniui-checkmarkempty[data-v-5610c8db]:before{content:"\e65c"}.uniui-chat[data-v-5610c8db]:before{content:"\e65d"}.uniui-circle-filled[data-v-5610c8db]:before{content:"\e65e"}.uniui-flag[data-v-5610c8db]:before{content:"\e65f"}.uniui-flag-filled[data-v-5610c8db]:before{content:"\e660"}.uniui-gear-filled[data-v-5610c8db]:before{content:"\e661"}.uniui-home[data-v-5610c8db]:before{content:"\e662"}.uniui-home-filled[data-v-5610c8db]:before{content:"\e663"}.uniui-gear[data-v-5610c8db]:before{content:"\e664"}.uniui-smallcircle-filled[data-v-5610c8db]:before{content:"\e665"}.uniui-map-filled[data-v-5610c8db]:before{content:"\e666"}.uniui-map[data-v-5610c8db]:before{content:"\e667"}.uniui-refresh-filled[data-v-5610c8db]:before{content:"\e656"}.uniui-refresh[data-v-5610c8db]:before{content:"\e657"}.uniui-cloud-upload[data-v-5610c8db]:before{content:"\e645"}.uniui-cloud-download-filled[data-v-5610c8db]:before{content:"\e646"}.uniui-cloud-download[data-v-5610c8db]:before{content:"\e647"}.uniui-cloud-upload-filled[data-v-5610c8db]:before{content:"\e648"}.uniui-redo[data-v-5610c8db]:before{content:"\e64a"}.uniui-images-filled[data-v-5610c8db]:before{content:"\e64b"}.uniui-undo-filled[data-v-5610c8db]:before{content:"\e64c"}.uniui-more[data-v-5610c8db]:before{content:"\e64d"}.uniui-more-filled[data-v-5610c8db]:before{content:"\e64e"}.uniui-undo[data-v-5610c8db]:before{content:"\e64f"}.uniui-images[data-v-5610c8db]:before{content:"\e650"}.uniui-paperclip[data-v-5610c8db]:before{content:"\e652"}.uniui-settings[data-v-5610c8db]:before{content:"\e653"}.uniui-search[data-v-5610c8db]:before{content:"\e654"}.uniui-redo-filled[data-v-5610c8db]:before{content:"\e655"}.uniui-list[data-v-5610c8db]:before{content:"\e644"}.uniui-mail-open-filled[data-v-5610c8db]:before{content:"\e63a"}.uniui-hand-down-filled[data-v-5610c8db]:before{content:"\e63c"}.uniui-hand-down[data-v-5610c8db]:before{content:"\e63d"}.uniui-hand-up-filled[data-v-5610c8db]:before{content:"\e63e"}.uniui-hand-up[data-v-5610c8db]:before{content:"\e63f"}.uniui-heart-filled[data-v-5610c8db]:before{content:"\e641"}.uniui-mail-open[data-v-5610c8db]:before{content:"\e643"}.uniui-heart[data-v-5610c8db]:before{content:"\e639"}.uniui-loop[data-v-5610c8db]:before{content:"\e633"}.uniui-pulldown[data-v-5610c8db]:before{content:"\e632"}.uniui-scan[data-v-5610c8db]:before{content:"\e62a"}.uniui-bars[data-v-5610c8db]:before{content:"\e627"}.uniui-checkbox[data-v-5610c8db]:before{content:"\e62b"}.uniui-checkbox-filled[data-v-5610c8db]:before{content:"\e62c"}.uniui-shop[data-v-5610c8db]:before{content:"\e62f"}.uniui-headphones[data-v-5610c8db]:before{content:"\e630"}.uniui-cart[data-v-5610c8db]:before{content:"\e631"}@font-face{font-family:uniicons;src:url(../../assets/uniicons.32e978a5.ttf)}.uni-icons[data-v-5610c8db]{font-family:uniicons;text-decoration:none;text-align:center}.uni-data-pickerview[data-v-c0c521c5]{flex:1;display:flex;flex-direction:column;overflow:hidden;height:100%}.error-text[data-v-c0c521c5]{color:#dd524d}.loading-cover[data-v-c0c521c5]{position:absolute;left:0;top:0;right:0;bottom:0;background-color:rgba(255,255,255,.5);display:flex;flex-direction:column;align-items:center;z-index:1001}.load-more[data-v-c0c521c5]{margin:auto}.error-message[data-v-c0c521c5]{background-color:#fff;position:absolute;left:0;top:0;right:0;bottom:0;padding:15px;opacity:.9;z-index:102}.selected-list[data-v-c0c521c5]{display:flex;flex-wrap:nowrap;flex-direction:row;padding:0 5px;border-bottom:1px solid #f8f8f8}.selected-item[data-v-c0c521c5]{margin-left:10px;margin-right:10px;padding:12px 0;text-align:center;white-space:nowrap}.selected-item-text-overflow[data-v-c0c521c5]{width:168px;overflow:hidden;width:6em;white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis}.selected-item-active[data-v-c0c521c5]{border-bottom:2px solid #007aff}.selected-item-text[data-v-c0c521c5]{color:#007aff}.tab-c[data-v-c0c521c5]{position:relative;flex:1;display:flex;flex-direction:row;overflow:hidden}.list[data-v-c0c521c5]{flex:1}.item[data-v-c0c521c5]{padding:12px 15px;display:flex;flex-direction:row;justify-content:space-between}.is-disabled[data-v-c0c521c5]{opacity:.5}.item-text[data-v-c0c521c5]{color:#333}.item-text-overflow[data-v-c0c521c5]{width:280px;overflow:hidden;width:20em;white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis}.check[data-v-c0c521c5]{margin-right:5px;border:2px solid #007aff;border-left:0;border-top:0;height:12px;width:6px;transform-origin:center;transition:all .3s;transform:rotate(45deg)}.uni-data-tree[data-v-0b9ed1e5]{flex:1;position:relative;font-size:14px}.error-text[data-v-0b9ed1e5]{color:#dd524d}.input-value[data-v-0b9ed1e5]{display:flex;flex-direction:row;align-items:center;flex-wrap:nowrap;font-size:14px;padding:0 5px 0 10px;overflow:hidden;box-sizing:border-box;padding:.625rem 10px}.input-value-border[data-v-0b9ed1e5]{border:1px solid #e5e5e5;border-radius:5px}.selected-area[data-v-0b9ed1e5]{flex:1;overflow:hidden;display:flex;flex-direction:row}.load-more[data-v-0b9ed1e5]{margin-right:auto}.selected-list[data-v-0b9ed1e5]{display:flex;flex-direction:row;flex-wrap:nowrap}.selected-item[data-v-0b9ed1e5]{flex-direction:row;white-space:nowrap}.text-color[data-v-0b9ed1e5]{color:#333}.placeholder[data-v-0b9ed1e5]{color:gray;font-size:.875rem}.input-split-line[data-v-0b9ed1e5]{opacity:.5}.arrow-area[data-v-0b9ed1e5]{position:relative;width:20px;margin-bottom:5px;margin-left:auto;display:flex;justify-content:center;transform:rotate(-45deg);transform-origin:center}.input-arrow[data-v-0b9ed1e5]{width:7px;height:7px;border-left:1px solid #999;border-bottom:1px solid #999}.uni-data-tree-cover[data-v-0b9ed1e5]{position:fixed;left:0;top:0;right:0;bottom:0;background-color:rgba(0,0,0,.4);display:flex;flex-direction:column;z-index:100}.uni-data-tree-dialog[data-v-0b9ed1e5]{position:fixed;left:0;top:20%;right:0;bottom:0;background-color:#fff;border-top-left-radius:10px;border-top-right-radius:10px;display:flex;flex-direction:column;z-index:102;overflow:hidden}.dialog-caption[data-v-0b9ed1e5]{position:relative;display:flex;flex-direction:row}.title-area[data-v-0b9ed1e5]{display:flex;align-items:center;margin:auto;padding:0 10px}.dialog-title[data-v-0b9ed1e5]{line-height:44px}.dialog-close[data-v-0b9ed1e5]{position:absolute;top:0;right:0;bottom:0;display:flex;flex-direction:row;align-items:center;padding:0 15px}.dialog-close-plus[data-v-0b9ed1e5]{width:16px;height:2px;background-color:#666;border-radius:2px;transform:rotate(45deg)}.dialog-close-rotate[data-v-0b9ed1e5]{position:absolute;transform:rotate(-45deg)}.picker-view[data-v-0b9ed1e5]{flex:1;overflow:hidden}.icon-clear[data-v-0b9ed1e5]{display:flex;align-items:center}.uni-popper__arrow[data-v-0b9ed1e5],.uni-popper__arrow[data-v-0b9ed1e5]:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;border-width:6px}.uni-popper__arrow[data-v-0b9ed1e5]{filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));top:-6px;left:10%;margin-right:3px;border-top-width:0;border-bottom-color:#ebeef5}.uni-popper__arrow[data-v-0b9ed1e5]:after{content:" ";top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#fff}.content[data-v-a805c56c]{padding-bottom:4.0625rem}.confirm[data-v-a805c56c]{position:fixed;bottom:0;left:50%;transform:translate(-50%);background-color:#fff;border-top:1px solid #efefef;width:100%;padding:.625rem 0}.confirm uni-view[data-v-a805c56c]{width:19.6875rem;height:2.75rem;background:#01508b;border-radius:1.375rem;font-size:1rem;color:#fff;text-align:center;line-height:2.75rem}.search_box[data-v-a805c56c]{font-size:.875rem}.search_box .username[data-v-a805c56c]{padding:0 .625rem;border-bottom:1px solid #e5e5e5;height:3.125rem}.search_box .username uni-input[data-v-a805c56c]{flex:1;height:100%}.search_box .btn[data-v-a805c56c]{color:#fff;padding:.625rem 0}.search_box .btn uni-view[data-v-a805c56c]{width:5.5625rem;height:2.5rem;background-color:#01508b;border-radius:1.25rem;justify-content:center}.list[data-v-a805c56c]{word-break:break-all;font-size:.875rem;color:#333}.list .box uni-view[data-v-a805c56c]:first-child{flex:.3}.list .box uni-view[data-v-a805c56c]:nth-child(2){flex:.3}.list .box uni-view[data-v-a805c56c]:nth-child(3){flex:1}.list .box uni-view[data-v-a805c56c]:nth-child(4){flex:1}.list .title[data-v-a805c56c]{text-align:center;border-bottom:1px solid #e5e5e5;background-color:#f8f8f8;height:3.125rem}.list .item[data-v-a805c56c]{text-align:center;border-bottom:1px solid #e5e5e5}.list .item .order[data-v-a805c56c]{border-right:1px solid #e5e5e5;height:3.125rem;line-height:3.125rem}.list .item .username[data-v-a805c56c]{border-right:1px solid #e5e5e5;height:3.125rem;justify-content:center;overflow-y:auto}.list .item .realname[data-v-a805c56c]{height:3.125rem;line-height:3.125rem;overflow-y:auto;justify-content:center}.list .item .img[data-v-a805c56c]{border-right:1px solid #e5e5e5;height:3.125rem;justify-content:center}.list .item uni-image[data-v-a805c56c]{width:1.25rem;height:1.25rem} diff --git a/unpackage/dist/build/app-plus/pages/zhiban/index.css b/unpackage/dist/build/app-plus/pages/zhiban/index.css new file mode 100644 index 0000000..0c58bf3 --- /dev/null +++ b/unpackage/dist/build/app-plus/pages/zhiban/index.css @@ -0,0 +1 @@ +.date[data-v-54de2922]{width:21.5625rem;padding:.625rem .9375rem 0;font-size:.875rem;color:#333}.info[data-v-54de2922]{background:#f8f8f8;border-radius:.25rem;text-align:center;width:21.5625rem;margin-top:.71875rem}.info .info_title[data-v-54de2922]{font-size:.75rem;color:#333;padding:.75rem 0;border-bottom:1px solid #EFEFEF}.info .info_title uni-view[data-v-54de2922]{flex:1}.info .data_box[data-v-54de2922]{font-size:.75rem;padding-bottom:.75rem;color:#888}.info .data_box .data[data-v-54de2922]{margin-top:.71875rem}.info .data_box .data uni-view[data-v-54de2922]{flex:1} diff --git a/unpackage/dist/build/app-plus/static/checkin/chenggong.png b/unpackage/dist/build/app-plus/static/checkin/chenggong.png new file mode 100644 index 0000000..dec1b3a Binary files /dev/null and b/unpackage/dist/build/app-plus/static/checkin/chenggong.png differ diff --git a/unpackage/dist/build/app-plus/static/checkin/circle1.png b/unpackage/dist/build/app-plus/static/checkin/circle1.png new file mode 100644 index 0000000..dc453c6 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/checkin/circle1.png differ diff --git a/unpackage/dist/build/app-plus/static/checkin/circle2.png b/unpackage/dist/build/app-plus/static/checkin/circle2.png new file mode 100644 index 0000000..3c0c545 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/checkin/circle2.png differ diff --git a/unpackage/dist/build/app-plus/static/checkin/circle3.png b/unpackage/dist/build/app-plus/static/checkin/circle3.png new file mode 100644 index 0000000..0bcf628 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/checkin/circle3.png differ diff --git a/unpackage/dist/build/app-plus/static/checkin/circle4.png b/unpackage/dist/build/app-plus/static/checkin/circle4.png new file mode 100644 index 0000000..217260d Binary files /dev/null and b/unpackage/dist/build/app-plus/static/checkin/circle4.png differ diff --git a/unpackage/dist/build/app-plus/static/checkin/position1.png b/unpackage/dist/build/app-plus/static/checkin/position1.png new file mode 100644 index 0000000..db18cc3 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/checkin/position1.png differ diff --git a/unpackage/dist/build/app-plus/static/checkin/position2.png b/unpackage/dist/build/app-plus/static/checkin/position2.png new file mode 100644 index 0000000..9c06896 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/checkin/position2.png differ diff --git a/unpackage/dist/build/app-plus/static/checkin/position3.png b/unpackage/dist/build/app-plus/static/checkin/position3.png new file mode 100644 index 0000000..6208aca Binary files /dev/null and b/unpackage/dist/build/app-plus/static/checkin/position3.png differ diff --git a/unpackage/dist/build/app-plus/static/checkin/position4.png b/unpackage/dist/build/app-plus/static/checkin/position4.png new file mode 100644 index 0000000..1df86fd Binary files /dev/null and b/unpackage/dist/build/app-plus/static/checkin/position4.png differ diff --git a/unpackage/dist/build/app-plus/static/checkin/shibai.png b/unpackage/dist/build/app-plus/static/checkin/shibai.png new file mode 100644 index 0000000..8862ce5 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/checkin/shibai.png differ diff --git a/unpackage/dist/build/app-plus/static/index/back.png b/unpackage/dist/build/app-plus/static/index/back.png new file mode 100644 index 0000000..ed35f33 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/index/back.png differ diff --git a/unpackage/dist/build/app-plus/static/index/calendar.png b/unpackage/dist/build/app-plus/static/index/calendar.png new file mode 100644 index 0000000..990d0de Binary files /dev/null and b/unpackage/dist/build/app-plus/static/index/calendar.png differ diff --git a/unpackage/dist/build/app-plus/static/index/eye.png b/unpackage/dist/build/app-plus/static/index/eye.png new file mode 100644 index 0000000..505705a Binary files /dev/null and b/unpackage/dist/build/app-plus/static/index/eye.png differ diff --git a/unpackage/dist/build/app-plus/static/index/line.png b/unpackage/dist/build/app-plus/static/index/line.png new file mode 100644 index 0000000..a7e9749 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/index/line.png differ diff --git a/unpackage/dist/build/app-plus/static/index/menu.png b/unpackage/dist/build/app-plus/static/index/menu.png new file mode 100644 index 0000000..a0b1184 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/index/menu.png differ diff --git a/unpackage/dist/build/app-plus/static/index/position.png b/unpackage/dist/build/app-plus/static/index/position.png new file mode 100644 index 0000000..14ee508 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/index/position.png differ diff --git a/unpackage/dist/build/app-plus/static/index/rili.png b/unpackage/dist/build/app-plus/static/index/rili.png new file mode 100644 index 0000000..c0c893d Binary files /dev/null and b/unpackage/dist/build/app-plus/static/index/rili.png differ diff --git a/unpackage/dist/build/app-plus/static/line.png b/unpackage/dist/build/app-plus/static/line.png new file mode 100644 index 0000000..46258ab Binary files /dev/null and b/unpackage/dist/build/app-plus/static/line.png differ diff --git a/unpackage/dist/build/app-plus/static/login/checked.png b/unpackage/dist/build/app-plus/static/login/checked.png new file mode 100644 index 0000000..a145806 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/login/checked.png differ diff --git a/unpackage/dist/build/app-plus/static/login/eye-off.png b/unpackage/dist/build/app-plus/static/login/eye-off.png new file mode 100644 index 0000000..45b5100 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/login/eye-off.png differ diff --git a/unpackage/dist/build/app-plus/static/login/eye.png b/unpackage/dist/build/app-plus/static/login/eye.png new file mode 100644 index 0000000..6b4c16a Binary files /dev/null and b/unpackage/dist/build/app-plus/static/login/eye.png differ diff --git a/unpackage/dist/build/app-plus/static/login/logo.png b/unpackage/dist/build/app-plus/static/login/logo.png new file mode 100644 index 0000000..84b9aeb Binary files /dev/null and b/unpackage/dist/build/app-plus/static/login/logo.png differ diff --git a/unpackage/dist/build/app-plus/static/login/nocheck.png b/unpackage/dist/build/app-plus/static/login/nocheck.png new file mode 100644 index 0000000..71e3663 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/login/nocheck.png differ diff --git a/unpackage/dist/build/app-plus/static/login/phone.png b/unpackage/dist/build/app-plus/static/login/phone.png new file mode 100644 index 0000000..3093700 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/login/phone.png differ diff --git a/unpackage/dist/build/app-plus/static/login/pwd.png b/unpackage/dist/build/app-plus/static/login/pwd.png new file mode 100644 index 0000000..51a728a Binary files /dev/null and b/unpackage/dist/build/app-plus/static/login/pwd.png differ diff --git a/unpackage/dist/build/app-plus/static/my/bg1.png b/unpackage/dist/build/app-plus/static/my/bg1.png new file mode 100644 index 0000000..ed123b7 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/my/bg1.png differ diff --git a/unpackage/dist/build/app-plus/static/my/biao.png b/unpackage/dist/build/app-plus/static/my/biao.png new file mode 100644 index 0000000..f557bc2 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/my/biao.png differ diff --git a/unpackage/dist/build/app-plus/static/my/close.png b/unpackage/dist/build/app-plus/static/my/close.png new file mode 100644 index 0000000..ef461c0 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/my/close.png differ diff --git a/unpackage/dist/build/app-plus/static/my/default.png b/unpackage/dist/build/app-plus/static/my/default.png new file mode 100644 index 0000000..bd645e8 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/my/default.png differ diff --git a/unpackage/dist/build/app-plus/static/my/dingwei.png b/unpackage/dist/build/app-plus/static/my/dingwei.png new file mode 100644 index 0000000..906afdb Binary files /dev/null and b/unpackage/dist/build/app-plus/static/my/dingwei.png differ diff --git a/unpackage/dist/build/app-plus/static/my/done.png b/unpackage/dist/build/app-plus/static/my/done.png new file mode 100644 index 0000000..0fd2e3e Binary files /dev/null and b/unpackage/dist/build/app-plus/static/my/done.png differ diff --git a/unpackage/dist/build/app-plus/static/my/edit.png b/unpackage/dist/build/app-plus/static/my/edit.png new file mode 100644 index 0000000..4944e32 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/my/edit.png differ diff --git a/unpackage/dist/build/app-plus/static/my/navbg.png b/unpackage/dist/build/app-plus/static/my/navbg.png new file mode 100644 index 0000000..794136b Binary files /dev/null and b/unpackage/dist/build/app-plus/static/my/navbg.png differ diff --git a/unpackage/dist/build/app-plus/static/my/num.png b/unpackage/dist/build/app-plus/static/my/num.png new file mode 100644 index 0000000..fddf20a Binary files /dev/null and b/unpackage/dist/build/app-plus/static/my/num.png differ diff --git a/unpackage/dist/build/app-plus/static/my/open.png b/unpackage/dist/build/app-plus/static/my/open.png new file mode 100644 index 0000000..df2c326 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/my/open.png differ diff --git a/unpackage/dist/build/app-plus/static/my/process.png b/unpackage/dist/build/app-plus/static/my/process.png new file mode 100644 index 0000000..d288cde Binary files /dev/null and b/unpackage/dist/build/app-plus/static/my/process.png differ diff --git a/unpackage/dist/build/app-plus/static/my/self.png b/unpackage/dist/build/app-plus/static/my/self.png new file mode 100644 index 0000000..c44396e Binary files /dev/null and b/unpackage/dist/build/app-plus/static/my/self.png differ diff --git a/unpackage/dist/build/app-plus/static/my/shengji.png b/unpackage/dist/build/app-plus/static/my/shengji.png new file mode 100644 index 0000000..0170ce6 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/my/shengji.png differ diff --git a/unpackage/dist/build/app-plus/static/my/shezhi.png b/unpackage/dist/build/app-plus/static/my/shezhi.png new file mode 100644 index 0000000..f667315 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/my/shezhi.png differ diff --git a/unpackage/dist/build/app-plus/static/my/xiaoxi.png b/unpackage/dist/build/app-plus/static/my/xiaoxi.png new file mode 100644 index 0000000..74fcbe9 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/my/xiaoxi.png differ diff --git a/unpackage/dist/build/app-plus/static/office/absence.png b/unpackage/dist/build/app-plus/static/office/absence.png new file mode 100644 index 0000000..b8e5686 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/office/absence.png differ diff --git a/unpackage/dist/build/app-plus/static/office/baoxiao.png b/unpackage/dist/build/app-plus/static/office/baoxiao.png new file mode 100644 index 0000000..3241a12 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/office/baoxiao.png differ diff --git a/unpackage/dist/build/app-plus/static/office/daka.png b/unpackage/dist/build/app-plus/static/office/daka.png new file mode 100644 index 0000000..97e478c Binary files /dev/null and b/unpackage/dist/build/app-plus/static/office/daka.png differ diff --git a/unpackage/dist/build/app-plus/static/office/duty.png b/unpackage/dist/build/app-plus/static/office/duty.png new file mode 100644 index 0000000..bf1c7a0 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/office/duty.png differ diff --git a/unpackage/dist/build/app-plus/static/office/feiyong.png b/unpackage/dist/build/app-plus/static/office/feiyong.png new file mode 100644 index 0000000..96318b3 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/office/feiyong.png differ diff --git a/unpackage/dist/build/app-plus/static/office/gonggao.png b/unpackage/dist/build/app-plus/static/office/gonggao.png new file mode 100644 index 0000000..73f43d8 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/office/gonggao.png differ diff --git a/unpackage/dist/build/app-plus/static/office/gongtuan.png b/unpackage/dist/build/app-plus/static/office/gongtuan.png new file mode 100644 index 0000000..1afccb4 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/office/gongtuan.png differ diff --git a/unpackage/dist/build/app-plus/static/office/gongwen.png b/unpackage/dist/build/app-plus/static/office/gongwen.png new file mode 100644 index 0000000..fdabc20 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/office/gongwen.png differ diff --git a/unpackage/dist/build/app-plus/static/office/huiyi.png b/unpackage/dist/build/app-plus/static/office/huiyi.png new file mode 100644 index 0000000..329c447 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/office/huiyi.png differ diff --git a/unpackage/dist/build/app-plus/static/office/jiankang.png b/unpackage/dist/build/app-plus/static/office/jiankang.png new file mode 100644 index 0000000..74cfe39 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/office/jiankang.png differ diff --git a/unpackage/dist/build/app-plus/static/office/jiedai.png b/unpackage/dist/build/app-plus/static/office/jiedai.png new file mode 100644 index 0000000..3ba894c Binary files /dev/null and b/unpackage/dist/build/app-plus/static/office/jiedai.png differ diff --git a/unpackage/dist/build/app-plus/static/office/process.png b/unpackage/dist/build/app-plus/static/office/process.png new file mode 100644 index 0000000..d288cde Binary files /dev/null and b/unpackage/dist/build/app-plus/static/office/process.png differ diff --git a/unpackage/dist/build/app-plus/static/office/task.png b/unpackage/dist/build/app-plus/static/office/task.png new file mode 100644 index 0000000..d2110dc Binary files /dev/null and b/unpackage/dist/build/app-plus/static/office/task.png differ diff --git a/unpackage/dist/build/app-plus/static/office/tongxun.png b/unpackage/dist/build/app-plus/static/office/tongxun.png new file mode 100644 index 0000000..c41d35f Binary files /dev/null and b/unpackage/dist/build/app-plus/static/office/tongxun.png differ diff --git a/unpackage/dist/build/app-plus/static/search.png b/unpackage/dist/build/app-plus/static/search.png new file mode 100644 index 0000000..6a0019e Binary files /dev/null and b/unpackage/dist/build/app-plus/static/search.png differ diff --git a/unpackage/dist/build/app-plus/static/system.png b/unpackage/dist/build/app-plus/static/system.png new file mode 100644 index 0000000..82a38b5 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/system.png differ diff --git a/unpackage/dist/build/app-plus/static/tab/anquan.png b/unpackage/dist/build/app-plus/static/tab/anquan.png new file mode 100644 index 0000000..54ed8d4 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/tab/anquan.png differ diff --git a/unpackage/dist/build/app-plus/static/tab/cheliang.png b/unpackage/dist/build/app-plus/static/tab/cheliang.png new file mode 100644 index 0000000..ba753f7 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/tab/cheliang.png differ diff --git a/unpackage/dist/build/app-plus/static/tab/index1.png b/unpackage/dist/build/app-plus/static/tab/index1.png new file mode 100644 index 0000000..21b7822 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/tab/index1.png differ diff --git a/unpackage/dist/build/app-plus/static/tab/index2.png b/unpackage/dist/build/app-plus/static/tab/index2.png new file mode 100644 index 0000000..1aa67d5 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/tab/index2.png differ diff --git a/unpackage/dist/build/app-plus/static/tab/office1.png b/unpackage/dist/build/app-plus/static/tab/office1.png new file mode 100644 index 0000000..3886126 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/tab/office1.png differ diff --git a/unpackage/dist/build/app-plus/static/tab/office2.png b/unpackage/dist/build/app-plus/static/tab/office2.png new file mode 100644 index 0000000..7179f1b Binary files /dev/null and b/unpackage/dist/build/app-plus/static/tab/office2.png differ diff --git a/unpackage/dist/build/app-plus/static/tab/product.png b/unpackage/dist/build/app-plus/static/tab/product.png new file mode 100644 index 0000000..7272719 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/tab/product.png differ diff --git a/unpackage/dist/build/app-plus/static/tab/product1.png b/unpackage/dist/build/app-plus/static/tab/product1.png new file mode 100644 index 0000000..f52b601 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/tab/product1.png differ diff --git a/unpackage/dist/build/app-plus/static/tab/product2.png b/unpackage/dist/build/app-plus/static/tab/product2.png new file mode 100644 index 0000000..53fcfd3 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/tab/product2.png differ diff --git a/unpackage/dist/build/app-plus/static/tab/scan.png b/unpackage/dist/build/app-plus/static/tab/scan.png new file mode 100644 index 0000000..af318ad Binary files /dev/null and b/unpackage/dist/build/app-plus/static/tab/scan.png differ diff --git a/unpackage/dist/build/app-plus/static/tab/shenpi.png b/unpackage/dist/build/app-plus/static/tab/shenpi.png new file mode 100644 index 0000000..b1910dd Binary files /dev/null and b/unpackage/dist/build/app-plus/static/tab/shenpi.png differ diff --git a/unpackage/dist/build/app-plus/static/tab/taizhang.png b/unpackage/dist/build/app-plus/static/tab/taizhang.png new file mode 100644 index 0000000..5e1cd56 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/tab/taizhang.png differ diff --git a/unpackage/dist/build/app-plus/static/tab/todo.png b/unpackage/dist/build/app-plus/static/tab/todo.png new file mode 100644 index 0000000..1a24984 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/tab/todo.png differ diff --git a/unpackage/dist/build/app-plus/static/tab/user1.png b/unpackage/dist/build/app-plus/static/tab/user1.png new file mode 100644 index 0000000..a080253 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/tab/user1.png differ diff --git a/unpackage/dist/build/app-plus/static/tab/user2.png b/unpackage/dist/build/app-plus/static/tab/user2.png new file mode 100644 index 0000000..f8bd8b0 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/tab/user2.png differ diff --git a/unpackage/dist/build/app-plus/static/tab/yunshu.png b/unpackage/dist/build/app-plus/static/tab/yunshu.png new file mode 100644 index 0000000..da449f2 Binary files /dev/null and b/unpackage/dist/build/app-plus/static/tab/yunshu.png differ diff --git a/unpackage/dist/build/app-plus/uni-app-view.umd.js b/unpackage/dist/build/app-plus/uni-app-view.umd.js new file mode 100644 index 0000000..2d71e6e --- /dev/null +++ b/unpackage/dist/build/app-plus/uni-app-view.umd.js @@ -0,0 +1,7 @@ +!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t={exports:{}},n={exports:{}},r={exports:{}},i=r.exports={version:"2.6.12"};"number"==typeof __e&&(__e=i);var a=r.exports,o={exports:{}},s=o.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=s);var l=o.exports,u=a,c=l,d="__core-js_shared__",h=c[d]||(c[d]={});(n.exports=function(e,t){return h[e]||(h[e]=void 0!==t?t:{})})("versions",[]).push({version:u.version,mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var f=n.exports,p=0,v=Math.random(),g=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++p+v).toString(36))},m=f("wks"),_=g,y=l.Symbol,b="function"==typeof y;(t.exports=function(e){return m[e]||(m[e]=b&&y[e]||(b?y:_)("Symbol."+e))}).store=m;var w,x,S=t.exports,k={},T=function(e){return"object"==typeof e?null!==e:"function"==typeof e},E=T,C=function(e){if(!E(e))throw TypeError(e+" is not an object!");return e},O=function(e){try{return!!e()}catch(t){return!0}},M=!O((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}));function L(){if(x)return w;x=1;var e=T,t=l.document,n=e(t)&&e(t.createElement);return w=function(e){return n?t.createElement(e):{}}}var I=!M&&!O((function(){return 7!=Object.defineProperty(L()("div"),"a",{get:function(){return 7}}).a})),A=T,B=C,N=I,R=function(e,t){if(!A(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!A(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!A(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!A(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},P=Object.defineProperty;k.f=M?Object.defineProperty:function(e,t,n){if(B(e),t=R(t,!0),B(n),N)try{return P(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e};var D=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},z=k,F=D,$=M?function(e,t,n){return z.f(e,t,F(1,n))}:function(e,t,n){return e[t]=n,e},j=S("unscopables"),V=Array.prototype;null==V[j]&&$(V,j,{});var W={},U={}.toString,H=function(e){return U.call(e).slice(8,-1)},q=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},Y=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==H(e)?e.split(""):Object(e)},X=q,Z=function(e){return Y(X(e))},G={exports:{}},K={}.hasOwnProperty,J=function(e,t){return K.call(e,t)},Q=f("native-function-to-string",Function.toString),ee=l,te=$,ne=J,re=g("src"),ie=Q,ae="toString",oe=(""+ie).split(ae);a.inspectSource=function(e){return ie.call(e)},(G.exports=function(e,t,n,r){var i="function"==typeof n;i&&(ne(n,"name")||te(n,"name",t)),e[t]!==n&&(i&&(ne(n,re)||te(n,re,e[t]?""+e[t]:oe.join(String(t)))),e===ee?e[t]=n:r?e[t]?e[t]=n:te(e,t,n):(delete e[t],te(e,t,n)))})(Function.prototype,ae,(function(){return"function"==typeof this&&this[re]||ie.call(this)}));var se=G.exports,le=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},ue=le,ce=l,de=a,he=$,fe=se,pe=function(e,t,n){if(ue(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},ve="prototype",ge=function(e,t,n){var r,i,a,o,s=e&ge.F,l=e&ge.G,u=e&ge.S,c=e&ge.P,d=e&ge.B,h=l?ce:u?ce[t]||(ce[t]={}):(ce[t]||{})[ve],f=l?de:de[t]||(de[t]={}),p=f[ve]||(f[ve]={});for(r in l&&(n=t),n)a=((i=!s&&h&&void 0!==h[r])?h:n)[r],o=d&&i?pe(a,ce):c&&"function"==typeof a?pe(Function.call,a):a,h&&fe(h,r,a,e&ge.U),f[r]!=a&&he(f,r,o),c&&p[r]!=a&&(p[r]=a)};ce.core=de,ge.F=1,ge.G=2,ge.S=4,ge.P=8,ge.B=16,ge.W=32,ge.U=64,ge.R=128;var me,_e,ye,be=ge,we=Math.ceil,xe=Math.floor,Se=function(e){return isNaN(e=+e)?0:(e>0?xe:we)(e)},ke=Se,Te=Math.min,Ee=Se,Ce=Math.max,Oe=Math.min,Me=Z,Le=function(e){return e>0?Te(ke(e),9007199254740991):0},Ie=function(e,t){return(e=Ee(e))<0?Ce(e+t,0):Oe(e,t)},Ae=f("keys"),Be=g,Ne=function(e){return Ae[e]||(Ae[e]=Be(e))},Re=J,Pe=Z,De=(me=!1,function(e,t,n){var r,i=Me(e),a=Le(i.length),o=Ie(n,a);if(me&&t!=t){for(;a>o;)if((r=i[o++])!=r)return!0}else for(;a>o;o++)if((me||o in i)&&i[o]===t)return me||o||0;return!me&&-1}),ze=Ne("IE_PROTO"),Fe="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),$e=function(e,t){var n,r=Pe(e),i=0,a=[];for(n in r)n!=ze&&Re(r,n)&&a.push(n);for(;t.length>i;)Re(r,n=t[i++])&&(~De(a,n)||a.push(n));return a},je=Fe,Ve=Object.keys||function(e){return $e(e,je)},We=k,Ue=C,He=Ve,qe=M?Object.defineProperties:function(e,t){Ue(e);for(var n,r=He(t),i=r.length,a=0;i>a;)We.f(e,n=r[a++],t[n]);return e};var Ye=C,Xe=qe,Ze=Fe,Ge=Ne("IE_PROTO"),Ke=function(){},Je="prototype",Qe=function(){var e,t=L()("iframe"),n=Ze.length;for(t.style.display="none",function(){if(ye)return _e;ye=1;var e=l.document;return _e=e&&e.documentElement}().appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(" + 数智产销 + + + + + + +
+ + diff --git a/unpackage/dist/build/web/static/checkin/chenggong.png b/unpackage/dist/build/web/static/checkin/chenggong.png new file mode 100644 index 0000000..dec1b3a Binary files /dev/null and b/unpackage/dist/build/web/static/checkin/chenggong.png differ diff --git a/unpackage/dist/build/web/static/checkin/circle1.png b/unpackage/dist/build/web/static/checkin/circle1.png new file mode 100644 index 0000000..dc453c6 Binary files /dev/null and b/unpackage/dist/build/web/static/checkin/circle1.png differ diff --git a/unpackage/dist/build/web/static/checkin/circle2.png b/unpackage/dist/build/web/static/checkin/circle2.png new file mode 100644 index 0000000..3c0c545 Binary files /dev/null and b/unpackage/dist/build/web/static/checkin/circle2.png differ diff --git a/unpackage/dist/build/web/static/checkin/circle3.png b/unpackage/dist/build/web/static/checkin/circle3.png new file mode 100644 index 0000000..0bcf628 Binary files /dev/null and b/unpackage/dist/build/web/static/checkin/circle3.png differ diff --git a/unpackage/dist/build/web/static/checkin/circle4.png b/unpackage/dist/build/web/static/checkin/circle4.png new file mode 100644 index 0000000..217260d Binary files /dev/null and b/unpackage/dist/build/web/static/checkin/circle4.png differ diff --git a/unpackage/dist/build/web/static/checkin/position1.png b/unpackage/dist/build/web/static/checkin/position1.png new file mode 100644 index 0000000..db18cc3 Binary files /dev/null and b/unpackage/dist/build/web/static/checkin/position1.png differ diff --git a/unpackage/dist/build/web/static/checkin/position2.png b/unpackage/dist/build/web/static/checkin/position2.png new file mode 100644 index 0000000..9c06896 Binary files /dev/null and b/unpackage/dist/build/web/static/checkin/position2.png differ diff --git a/unpackage/dist/build/web/static/checkin/position3.png b/unpackage/dist/build/web/static/checkin/position3.png new file mode 100644 index 0000000..6208aca Binary files /dev/null and b/unpackage/dist/build/web/static/checkin/position3.png differ diff --git a/unpackage/dist/build/web/static/checkin/position4.png b/unpackage/dist/build/web/static/checkin/position4.png new file mode 100644 index 0000000..1df86fd Binary files /dev/null and b/unpackage/dist/build/web/static/checkin/position4.png differ diff --git a/unpackage/dist/build/web/static/checkin/shibai.png b/unpackage/dist/build/web/static/checkin/shibai.png new file mode 100644 index 0000000..8862ce5 Binary files /dev/null and b/unpackage/dist/build/web/static/checkin/shibai.png differ diff --git a/unpackage/dist/build/web/static/index/back.png b/unpackage/dist/build/web/static/index/back.png new file mode 100644 index 0000000..ed35f33 Binary files /dev/null and b/unpackage/dist/build/web/static/index/back.png differ diff --git a/unpackage/dist/build/web/static/index/calendar.png b/unpackage/dist/build/web/static/index/calendar.png new file mode 100644 index 0000000..990d0de Binary files /dev/null and b/unpackage/dist/build/web/static/index/calendar.png differ diff --git a/unpackage/dist/build/web/static/index/eye.png b/unpackage/dist/build/web/static/index/eye.png new file mode 100644 index 0000000..505705a Binary files /dev/null and b/unpackage/dist/build/web/static/index/eye.png differ diff --git a/unpackage/dist/build/web/static/index/line.png b/unpackage/dist/build/web/static/index/line.png new file mode 100644 index 0000000..a7e9749 Binary files /dev/null and b/unpackage/dist/build/web/static/index/line.png differ diff --git a/unpackage/dist/build/web/static/index/menu.png b/unpackage/dist/build/web/static/index/menu.png new file mode 100644 index 0000000..a0b1184 Binary files /dev/null and b/unpackage/dist/build/web/static/index/menu.png differ diff --git a/unpackage/dist/build/web/static/index/position.png b/unpackage/dist/build/web/static/index/position.png new file mode 100644 index 0000000..14ee508 Binary files /dev/null and b/unpackage/dist/build/web/static/index/position.png differ diff --git a/unpackage/dist/build/web/static/index/rili.png b/unpackage/dist/build/web/static/index/rili.png new file mode 100644 index 0000000..c0c893d Binary files /dev/null and b/unpackage/dist/build/web/static/index/rili.png differ diff --git a/unpackage/dist/build/web/static/line.png b/unpackage/dist/build/web/static/line.png new file mode 100644 index 0000000..46258ab Binary files /dev/null and b/unpackage/dist/build/web/static/line.png differ diff --git a/unpackage/dist/build/web/static/login/checked.png b/unpackage/dist/build/web/static/login/checked.png new file mode 100644 index 0000000..a145806 Binary files /dev/null and b/unpackage/dist/build/web/static/login/checked.png differ diff --git a/unpackage/dist/build/web/static/login/eye-off.png b/unpackage/dist/build/web/static/login/eye-off.png new file mode 100644 index 0000000..45b5100 Binary files /dev/null and b/unpackage/dist/build/web/static/login/eye-off.png differ diff --git a/unpackage/dist/build/web/static/login/eye.png b/unpackage/dist/build/web/static/login/eye.png new file mode 100644 index 0000000..6b4c16a Binary files /dev/null and b/unpackage/dist/build/web/static/login/eye.png differ diff --git a/unpackage/dist/build/web/static/login/logo.png b/unpackage/dist/build/web/static/login/logo.png new file mode 100644 index 0000000..84b9aeb Binary files /dev/null and b/unpackage/dist/build/web/static/login/logo.png differ diff --git a/unpackage/dist/build/web/static/login/nocheck.png b/unpackage/dist/build/web/static/login/nocheck.png new file mode 100644 index 0000000..71e3663 Binary files /dev/null and b/unpackage/dist/build/web/static/login/nocheck.png differ diff --git a/unpackage/dist/build/web/static/login/phone.png b/unpackage/dist/build/web/static/login/phone.png new file mode 100644 index 0000000..3093700 Binary files /dev/null and b/unpackage/dist/build/web/static/login/phone.png differ diff --git a/unpackage/dist/build/web/static/login/pwd.png b/unpackage/dist/build/web/static/login/pwd.png new file mode 100644 index 0000000..51a728a Binary files /dev/null and b/unpackage/dist/build/web/static/login/pwd.png differ diff --git a/unpackage/dist/build/web/static/my/bg1.png b/unpackage/dist/build/web/static/my/bg1.png new file mode 100644 index 0000000..ed123b7 Binary files /dev/null and b/unpackage/dist/build/web/static/my/bg1.png differ diff --git a/unpackage/dist/build/web/static/my/biao.png b/unpackage/dist/build/web/static/my/biao.png new file mode 100644 index 0000000..f557bc2 Binary files /dev/null and b/unpackage/dist/build/web/static/my/biao.png differ diff --git a/unpackage/dist/build/web/static/my/close.png b/unpackage/dist/build/web/static/my/close.png new file mode 100644 index 0000000..ef461c0 Binary files /dev/null and b/unpackage/dist/build/web/static/my/close.png differ diff --git a/unpackage/dist/build/web/static/my/default.png b/unpackage/dist/build/web/static/my/default.png new file mode 100644 index 0000000..bd645e8 Binary files /dev/null and b/unpackage/dist/build/web/static/my/default.png differ diff --git a/unpackage/dist/build/web/static/my/dingwei.png b/unpackage/dist/build/web/static/my/dingwei.png new file mode 100644 index 0000000..906afdb Binary files /dev/null and b/unpackage/dist/build/web/static/my/dingwei.png differ diff --git a/unpackage/dist/build/web/static/my/done.png b/unpackage/dist/build/web/static/my/done.png new file mode 100644 index 0000000..0fd2e3e Binary files /dev/null and b/unpackage/dist/build/web/static/my/done.png differ diff --git a/unpackage/dist/build/web/static/my/edit.png b/unpackage/dist/build/web/static/my/edit.png new file mode 100644 index 0000000..4944e32 Binary files /dev/null and b/unpackage/dist/build/web/static/my/edit.png differ diff --git a/unpackage/dist/build/web/static/my/navbg.png b/unpackage/dist/build/web/static/my/navbg.png new file mode 100644 index 0000000..794136b Binary files /dev/null and b/unpackage/dist/build/web/static/my/navbg.png differ diff --git a/unpackage/dist/build/web/static/my/num.png b/unpackage/dist/build/web/static/my/num.png new file mode 100644 index 0000000..fddf20a Binary files /dev/null and b/unpackage/dist/build/web/static/my/num.png differ diff --git a/unpackage/dist/build/web/static/my/open.png b/unpackage/dist/build/web/static/my/open.png new file mode 100644 index 0000000..df2c326 Binary files /dev/null and b/unpackage/dist/build/web/static/my/open.png differ diff --git a/unpackage/dist/build/web/static/my/process.png b/unpackage/dist/build/web/static/my/process.png new file mode 100644 index 0000000..d288cde Binary files /dev/null and b/unpackage/dist/build/web/static/my/process.png differ diff --git a/unpackage/dist/build/web/static/my/self.png b/unpackage/dist/build/web/static/my/self.png new file mode 100644 index 0000000..c44396e Binary files /dev/null and b/unpackage/dist/build/web/static/my/self.png differ diff --git a/unpackage/dist/build/web/static/my/shengji.png b/unpackage/dist/build/web/static/my/shengji.png new file mode 100644 index 0000000..0170ce6 Binary files /dev/null and b/unpackage/dist/build/web/static/my/shengji.png differ diff --git a/unpackage/dist/build/web/static/my/shezhi.png b/unpackage/dist/build/web/static/my/shezhi.png new file mode 100644 index 0000000..f667315 Binary files /dev/null and b/unpackage/dist/build/web/static/my/shezhi.png differ diff --git a/unpackage/dist/build/web/static/my/xiaoxi.png b/unpackage/dist/build/web/static/my/xiaoxi.png new file mode 100644 index 0000000..74fcbe9 Binary files /dev/null and b/unpackage/dist/build/web/static/my/xiaoxi.png differ diff --git a/unpackage/dist/build/web/static/office/absence.png b/unpackage/dist/build/web/static/office/absence.png new file mode 100644 index 0000000..b8e5686 Binary files /dev/null and b/unpackage/dist/build/web/static/office/absence.png differ diff --git a/unpackage/dist/build/web/static/office/baoxiao.png b/unpackage/dist/build/web/static/office/baoxiao.png new file mode 100644 index 0000000..3241a12 Binary files /dev/null and b/unpackage/dist/build/web/static/office/baoxiao.png differ diff --git a/unpackage/dist/build/web/static/office/daka.png b/unpackage/dist/build/web/static/office/daka.png new file mode 100644 index 0000000..97e478c Binary files /dev/null and b/unpackage/dist/build/web/static/office/daka.png differ diff --git a/unpackage/dist/build/web/static/office/duty.png b/unpackage/dist/build/web/static/office/duty.png new file mode 100644 index 0000000..bf1c7a0 Binary files /dev/null and b/unpackage/dist/build/web/static/office/duty.png differ diff --git a/unpackage/dist/build/web/static/office/feiyong.png b/unpackage/dist/build/web/static/office/feiyong.png new file mode 100644 index 0000000..96318b3 Binary files /dev/null and b/unpackage/dist/build/web/static/office/feiyong.png differ diff --git a/unpackage/dist/build/web/static/office/gonggao.png b/unpackage/dist/build/web/static/office/gonggao.png new file mode 100644 index 0000000..73f43d8 Binary files /dev/null and b/unpackage/dist/build/web/static/office/gonggao.png differ diff --git a/unpackage/dist/build/web/static/office/gongtuan.png b/unpackage/dist/build/web/static/office/gongtuan.png new file mode 100644 index 0000000..1afccb4 Binary files /dev/null and b/unpackage/dist/build/web/static/office/gongtuan.png differ diff --git a/unpackage/dist/build/web/static/office/gongwen.png b/unpackage/dist/build/web/static/office/gongwen.png new file mode 100644 index 0000000..fdabc20 Binary files /dev/null and b/unpackage/dist/build/web/static/office/gongwen.png differ diff --git a/unpackage/dist/build/web/static/office/huiyi.png b/unpackage/dist/build/web/static/office/huiyi.png new file mode 100644 index 0000000..329c447 Binary files /dev/null and b/unpackage/dist/build/web/static/office/huiyi.png differ diff --git a/unpackage/dist/build/web/static/office/jiankang.png b/unpackage/dist/build/web/static/office/jiankang.png new file mode 100644 index 0000000..74cfe39 Binary files /dev/null and b/unpackage/dist/build/web/static/office/jiankang.png differ diff --git a/unpackage/dist/build/web/static/office/jiedai.png b/unpackage/dist/build/web/static/office/jiedai.png new file mode 100644 index 0000000..3ba894c Binary files /dev/null and b/unpackage/dist/build/web/static/office/jiedai.png differ diff --git a/unpackage/dist/build/web/static/office/process.png b/unpackage/dist/build/web/static/office/process.png new file mode 100644 index 0000000..d288cde Binary files /dev/null and b/unpackage/dist/build/web/static/office/process.png differ diff --git a/unpackage/dist/build/web/static/office/task.png b/unpackage/dist/build/web/static/office/task.png new file mode 100644 index 0000000..d2110dc Binary files /dev/null and b/unpackage/dist/build/web/static/office/task.png differ diff --git a/unpackage/dist/build/web/static/office/tongxun.png b/unpackage/dist/build/web/static/office/tongxun.png new file mode 100644 index 0000000..c41d35f Binary files /dev/null and b/unpackage/dist/build/web/static/office/tongxun.png differ diff --git a/unpackage/dist/build/web/static/search.png b/unpackage/dist/build/web/static/search.png new file mode 100644 index 0000000..6a0019e Binary files /dev/null and b/unpackage/dist/build/web/static/search.png differ diff --git a/unpackage/dist/build/web/static/system.png b/unpackage/dist/build/web/static/system.png new file mode 100644 index 0000000..82a38b5 Binary files /dev/null and b/unpackage/dist/build/web/static/system.png differ diff --git a/unpackage/dist/build/web/static/tab/anquan.png b/unpackage/dist/build/web/static/tab/anquan.png new file mode 100644 index 0000000..54ed8d4 Binary files /dev/null and b/unpackage/dist/build/web/static/tab/anquan.png differ diff --git a/unpackage/dist/build/web/static/tab/cheliang.png b/unpackage/dist/build/web/static/tab/cheliang.png new file mode 100644 index 0000000..ba753f7 Binary files /dev/null and b/unpackage/dist/build/web/static/tab/cheliang.png differ diff --git a/unpackage/dist/build/web/static/tab/index1.png b/unpackage/dist/build/web/static/tab/index1.png new file mode 100644 index 0000000..21b7822 Binary files /dev/null and b/unpackage/dist/build/web/static/tab/index1.png differ diff --git a/unpackage/dist/build/web/static/tab/index2.png b/unpackage/dist/build/web/static/tab/index2.png new file mode 100644 index 0000000..1aa67d5 Binary files /dev/null and b/unpackage/dist/build/web/static/tab/index2.png differ diff --git a/unpackage/dist/build/web/static/tab/office1.png b/unpackage/dist/build/web/static/tab/office1.png new file mode 100644 index 0000000..3886126 Binary files /dev/null and b/unpackage/dist/build/web/static/tab/office1.png differ diff --git a/unpackage/dist/build/web/static/tab/office2.png b/unpackage/dist/build/web/static/tab/office2.png new file mode 100644 index 0000000..7179f1b Binary files /dev/null and b/unpackage/dist/build/web/static/tab/office2.png differ diff --git a/unpackage/dist/build/web/static/tab/product.png b/unpackage/dist/build/web/static/tab/product.png new file mode 100644 index 0000000..7272719 Binary files /dev/null and b/unpackage/dist/build/web/static/tab/product.png differ diff --git a/unpackage/dist/build/web/static/tab/product1.png b/unpackage/dist/build/web/static/tab/product1.png new file mode 100644 index 0000000..f52b601 Binary files /dev/null and b/unpackage/dist/build/web/static/tab/product1.png differ diff --git a/unpackage/dist/build/web/static/tab/product2.png b/unpackage/dist/build/web/static/tab/product2.png new file mode 100644 index 0000000..53fcfd3 Binary files /dev/null and b/unpackage/dist/build/web/static/tab/product2.png differ diff --git a/unpackage/dist/build/web/static/tab/scan.png b/unpackage/dist/build/web/static/tab/scan.png new file mode 100644 index 0000000..af318ad Binary files /dev/null and b/unpackage/dist/build/web/static/tab/scan.png differ diff --git a/unpackage/dist/build/web/static/tab/shenpi.png b/unpackage/dist/build/web/static/tab/shenpi.png new file mode 100644 index 0000000..b1910dd Binary files /dev/null and b/unpackage/dist/build/web/static/tab/shenpi.png differ diff --git a/unpackage/dist/build/web/static/tab/taizhang.png b/unpackage/dist/build/web/static/tab/taizhang.png new file mode 100644 index 0000000..5e1cd56 Binary files /dev/null and b/unpackage/dist/build/web/static/tab/taizhang.png differ diff --git a/unpackage/dist/build/web/static/tab/todo.png b/unpackage/dist/build/web/static/tab/todo.png new file mode 100644 index 0000000..1a24984 Binary files /dev/null and b/unpackage/dist/build/web/static/tab/todo.png differ diff --git a/unpackage/dist/build/web/static/tab/user1.png b/unpackage/dist/build/web/static/tab/user1.png new file mode 100644 index 0000000..a080253 Binary files /dev/null and b/unpackage/dist/build/web/static/tab/user1.png differ diff --git a/unpackage/dist/build/web/static/tab/user2.png b/unpackage/dist/build/web/static/tab/user2.png new file mode 100644 index 0000000..f8bd8b0 Binary files /dev/null and b/unpackage/dist/build/web/static/tab/user2.png differ diff --git a/unpackage/dist/build/web/static/tab/yunshu.png b/unpackage/dist/build/web/static/tab/yunshu.png new file mode 100644 index 0000000..da449f2 Binary files /dev/null and b/unpackage/dist/build/web/static/tab/yunshu.png differ diff --git a/unpackage/dist/cache/.vite/deps/_metadata.json b/unpackage/dist/cache/.vite/deps/_metadata.json new file mode 100644 index 0000000..dd99cbc --- /dev/null +++ b/unpackage/dist/cache/.vite/deps/_metadata.json @@ -0,0 +1,25 @@ +{ + "hash": "b998bfcd", + "configHash": "ae758246", + "lockfileHash": "2ea917b9", + "browserHash": "d09a8f0e", + "optimized": { + "base-64": { + "src": "../../../../../node_modules/base-64/base64.js", + "file": "base-64.js", + "fileHash": "3b00bce6", + "needsInterop": true + }, + "dayjs": { + "src": "../../../../../node_modules/dayjs/dayjs.min.js", + "file": "dayjs.js", + "fileHash": "3eb453b6", + "needsInterop": true + } + }, + "chunks": { + "chunk-Y2F7D3TJ": { + "file": "chunk-Y2F7D3TJ.js" + } + } +} \ No newline at end of file diff --git a/unpackage/dist/cache/.vite/deps/base-64.js b/unpackage/dist/cache/.vite/deps/base-64.js new file mode 100644 index 0000000..b426c08 --- /dev/null +++ b/unpackage/dist/cache/.vite/deps/base-64.js @@ -0,0 +1,116 @@ +import { + __commonJS +} from "./chunk-Y2F7D3TJ.js"; + +// ../../../work/jeecg/app/cxc-szcx-uniapp/node_modules/base-64/base64.js +var require_base64 = __commonJS({ + "../../../work/jeecg/app/cxc-szcx-uniapp/node_modules/base-64/base64.js"(exports, module) { + (function(root) { + var freeExports = typeof exports == "object" && exports; + var freeModule = typeof module == "object" && module && module.exports == freeExports && module; + var freeGlobal = typeof global == "object" && global; + if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) { + root = freeGlobal; + } + var InvalidCharacterError = function(message) { + this.message = message; + }; + InvalidCharacterError.prototype = new Error(); + InvalidCharacterError.prototype.name = "InvalidCharacterError"; + var error = function(message) { + throw new InvalidCharacterError(message); + }; + var TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + var REGEX_SPACE_CHARACTERS = /[\t\n\f\r ]/g; + var decode = function(input) { + input = String(input).replace(REGEX_SPACE_CHARACTERS, ""); + var length = input.length; + if (length % 4 == 0) { + input = input.replace(/==?$/, ""); + length = input.length; + } + if (length % 4 == 1 || // http://whatwg.org/C#alphanumeric-ascii-characters + /[^+a-zA-Z0-9/]/.test(input)) { + error( + "Invalid character: the string to be decoded is not correctly encoded." + ); + } + var bitCounter = 0; + var bitStorage; + var buffer; + var output = ""; + var position = -1; + while (++position < length) { + buffer = TABLE.indexOf(input.charAt(position)); + bitStorage = bitCounter % 4 ? bitStorage * 64 + buffer : buffer; + if (bitCounter++ % 4) { + output += String.fromCharCode( + 255 & bitStorage >> (-2 * bitCounter & 6) + ); + } + } + return output; + }; + var encode = function(input) { + input = String(input); + if (/[^\0-\xFF]/.test(input)) { + error( + "The string to be encoded contains characters outside of the Latin1 range." + ); + } + var padding = input.length % 3; + var output = ""; + var position = -1; + var a; + var b; + var c; + var buffer; + var length = input.length - padding; + while (++position < length) { + a = input.charCodeAt(position) << 16; + b = input.charCodeAt(++position) << 8; + c = input.charCodeAt(++position); + buffer = a + b + c; + output += TABLE.charAt(buffer >> 18 & 63) + TABLE.charAt(buffer >> 12 & 63) + TABLE.charAt(buffer >> 6 & 63) + TABLE.charAt(buffer & 63); + } + if (padding == 2) { + a = input.charCodeAt(position) << 8; + b = input.charCodeAt(++position); + buffer = a + b; + output += TABLE.charAt(buffer >> 10) + TABLE.charAt(buffer >> 4 & 63) + TABLE.charAt(buffer << 2 & 63) + "="; + } else if (padding == 1) { + buffer = input.charCodeAt(position); + output += TABLE.charAt(buffer >> 2) + TABLE.charAt(buffer << 4 & 63) + "=="; + } + return output; + }; + var base64 = { + "encode": encode, + "decode": decode, + "version": "1.0.0" + }; + if (typeof define == "function" && typeof define.amd == "object" && define.amd) { + define(function() { + return base64; + }); + } else if (freeExports && !freeExports.nodeType) { + if (freeModule) { + freeModule.exports = base64; + } else { + for (var key in base64) { + base64.hasOwnProperty(key) && (freeExports[key] = base64[key]); + } + } + } else { + root.base64 = base64; + } + })(exports); + } +}); +export default require_base64(); +/*! Bundled license information: + +base-64/base64.js: + (*! https://mths.be/base64 v1.0.0 by @mathias | MIT license *) +*/ +//# sourceMappingURL=base-64.js.map diff --git a/unpackage/dist/cache/.vite/deps/base-64.js.map b/unpackage/dist/cache/.vite/deps/base-64.js.map new file mode 100644 index 0000000..4d73976 --- /dev/null +++ b/unpackage/dist/cache/.vite/deps/base-64.js.map @@ -0,0 +1,7 @@ +{ + "version": 3, + "sources": ["../../../../../node_modules/base-64/base64.js"], + "sourcesContent": ["/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */\r\n;(function(root) {\r\n\r\n\t// Detect free variables `exports`.\r\n\tvar freeExports = typeof exports == 'object' && exports;\r\n\r\n\t// Detect free variable `module`.\r\n\tvar freeModule = typeof module == 'object' && module &&\r\n\t\tmodule.exports == freeExports && module;\r\n\r\n\t// Detect free variable `global`, from Node.js or Browserified code, and use\r\n\t// it as `root`.\r\n\tvar freeGlobal = typeof global == 'object' && global;\r\n\tif (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {\r\n\t\troot = freeGlobal;\r\n\t}\r\n\r\n\t/*--------------------------------------------------------------------------*/\r\n\r\n\tvar InvalidCharacterError = function(message) {\r\n\t\tthis.message = message;\r\n\t};\r\n\tInvalidCharacterError.prototype = new Error;\r\n\tInvalidCharacterError.prototype.name = 'InvalidCharacterError';\r\n\r\n\tvar error = function(message) {\r\n\t\t// Note: the error messages used throughout this file match those used by\r\n\t\t// the native `atob`/`btoa` implementation in Chromium.\r\n\t\tthrow new InvalidCharacterError(message);\r\n\t};\r\n\r\n\tvar TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\r\n\t// http://whatwg.org/html/common-microsyntaxes.html#space-character\r\n\tvar REGEX_SPACE_CHARACTERS = /[\\t\\n\\f\\r ]/g;\r\n\r\n\t// `decode` is designed to be fully compatible with `atob` as described in the\r\n\t// HTML Standard. http://whatwg.org/html/webappapis.html#dom-windowbase64-atob\r\n\t// The optimized base64-decoding algorithm used is based on @atk’s excellent\r\n\t// implementation. https://gist.github.com/atk/1020396\r\n\tvar decode = function(input) {\r\n\t\tinput = String(input)\r\n\t\t\t.replace(REGEX_SPACE_CHARACTERS, '');\r\n\t\tvar length = input.length;\r\n\t\tif (length % 4 == 0) {\r\n\t\t\tinput = input.replace(/==?$/, '');\r\n\t\t\tlength = input.length;\r\n\t\t}\r\n\t\tif (\r\n\t\t\tlength % 4 == 1 ||\r\n\t\t\t// http://whatwg.org/C#alphanumeric-ascii-characters\r\n\t\t\t/[^+a-zA-Z0-9/]/.test(input)\r\n\t\t) {\r\n\t\t\terror(\r\n\t\t\t\t'Invalid character: the string to be decoded is not correctly encoded.'\r\n\t\t\t);\r\n\t\t}\r\n\t\tvar bitCounter = 0;\r\n\t\tvar bitStorage;\r\n\t\tvar buffer;\r\n\t\tvar output = '';\r\n\t\tvar position = -1;\r\n\t\twhile (++position < length) {\r\n\t\t\tbuffer = TABLE.indexOf(input.charAt(position));\r\n\t\t\tbitStorage = bitCounter % 4 ? bitStorage * 64 + buffer : buffer;\r\n\t\t\t// Unless this is the first of a group of 4 characters…\r\n\t\t\tif (bitCounter++ % 4) {\r\n\t\t\t\t// …convert the first 8 bits to a single ASCII character.\r\n\t\t\t\toutput += String.fromCharCode(\r\n\t\t\t\t\t0xFF & bitStorage >> (-2 * bitCounter & 6)\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn output;\r\n\t};\r\n\r\n\t// `encode` is designed to be fully compatible with `btoa` as described in the\r\n\t// HTML Standard: http://whatwg.org/html/webappapis.html#dom-windowbase64-btoa\r\n\tvar encode = function(input) {\r\n\t\tinput = String(input);\r\n\t\tif (/[^\\0-\\xFF]/.test(input)) {\r\n\t\t\t// Note: no need to special-case astral symbols here, as surrogates are\r\n\t\t\t// matched, and the input is supposed to only contain ASCII anyway.\r\n\t\t\terror(\r\n\t\t\t\t'The string to be encoded contains characters outside of the ' +\r\n\t\t\t\t'Latin1 range.'\r\n\t\t\t);\r\n\t\t}\r\n\t\tvar padding = input.length % 3;\r\n\t\tvar output = '';\r\n\t\tvar position = -1;\r\n\t\tvar a;\r\n\t\tvar b;\r\n\t\tvar c;\r\n\t\tvar buffer;\r\n\t\t// Make sure any padding is handled outside of the loop.\r\n\t\tvar length = input.length - padding;\r\n\r\n\t\twhile (++position < length) {\r\n\t\t\t// Read three bytes, i.e. 24 bits.\r\n\t\t\ta = input.charCodeAt(position) << 16;\r\n\t\t\tb = input.charCodeAt(++position) << 8;\r\n\t\t\tc = input.charCodeAt(++position);\r\n\t\t\tbuffer = a + b + c;\r\n\t\t\t// Turn the 24 bits into four chunks of 6 bits each, and append the\r\n\t\t\t// matching character for each of them to the output.\r\n\t\t\toutput += (\r\n\t\t\t\tTABLE.charAt(buffer >> 18 & 0x3F) +\r\n\t\t\t\tTABLE.charAt(buffer >> 12 & 0x3F) +\r\n\t\t\t\tTABLE.charAt(buffer >> 6 & 0x3F) +\r\n\t\t\t\tTABLE.charAt(buffer & 0x3F)\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\tif (padding == 2) {\r\n\t\t\ta = input.charCodeAt(position) << 8;\r\n\t\t\tb = input.charCodeAt(++position);\r\n\t\t\tbuffer = a + b;\r\n\t\t\toutput += (\r\n\t\t\t\tTABLE.charAt(buffer >> 10) +\r\n\t\t\t\tTABLE.charAt((buffer >> 4) & 0x3F) +\r\n\t\t\t\tTABLE.charAt((buffer << 2) & 0x3F) +\r\n\t\t\t\t'='\r\n\t\t\t);\r\n\t\t} else if (padding == 1) {\r\n\t\t\tbuffer = input.charCodeAt(position);\r\n\t\t\toutput += (\r\n\t\t\t\tTABLE.charAt(buffer >> 2) +\r\n\t\t\t\tTABLE.charAt((buffer << 4) & 0x3F) +\r\n\t\t\t\t'=='\r\n\t\t\t);\r\n\t\t}\r\n\r\n\t\treturn output;\r\n\t};\r\n\r\n\tvar base64 = {\r\n\t\t'encode': encode,\r\n\t\t'decode': decode,\r\n\t\t'version': '1.0.0'\r\n\t};\r\n\r\n\t// Some AMD build optimizers, like r.js, check for specific condition patterns\r\n\t// like the following:\r\n\tif (\r\n\t\ttypeof define == 'function' &&\r\n\t\ttypeof define.amd == 'object' &&\r\n\t\tdefine.amd\r\n\t) {\r\n\t\tdefine(function() {\r\n\t\t\treturn base64;\r\n\t\t});\r\n\t}\telse if (freeExports && !freeExports.nodeType) {\r\n\t\tif (freeModule) { // in Node.js or RingoJS v0.8.0+\r\n\t\t\tfreeModule.exports = base64;\r\n\t\t} else { // in Narwhal or RingoJS v0.7.0-\r\n\t\t\tfor (var key in base64) {\r\n\t\t\t\tbase64.hasOwnProperty(key) && (freeExports[key] = base64[key]);\r\n\t\t\t}\r\n\t\t}\r\n\t} else { // in Rhino or a web browser\r\n\t\troot.base64 = base64;\r\n\t}\r\n\r\n}(this));\r\n"], + "mappings": ";;;;;AAAA;AAAA;AACC,KAAC,SAAS,MAAM;AAGhB,UAAI,cAAc,OAAO,WAAW,YAAY;AAGhD,UAAI,aAAa,OAAO,UAAU,YAAY,UAC7C,OAAO,WAAW,eAAe;AAIlC,UAAI,aAAa,OAAO,UAAU,YAAY;AAC9C,UAAI,WAAW,WAAW,cAAc,WAAW,WAAW,YAAY;AACzE,eAAO;AAAA,MACR;AAIA,UAAI,wBAAwB,SAAS,SAAS;AAC7C,aAAK,UAAU;AAAA,MAChB;AACA,4BAAsB,YAAY,IAAI;AACtC,4BAAsB,UAAU,OAAO;AAEvC,UAAI,QAAQ,SAAS,SAAS;AAG7B,cAAM,IAAI,sBAAsB,OAAO;AAAA,MACxC;AAEA,UAAI,QAAQ;AAEZ,UAAI,yBAAyB;AAM7B,UAAI,SAAS,SAAS,OAAO;AAC5B,gBAAQ,OAAO,KAAK,EAClB,QAAQ,wBAAwB,EAAE;AACpC,YAAI,SAAS,MAAM;AACnB,YAAI,SAAS,KAAK,GAAG;AACpB,kBAAQ,MAAM,QAAQ,QAAQ,EAAE;AAChC,mBAAS,MAAM;AAAA,QAChB;AACA,YACC,SAAS,KAAK;AAAA,QAEd,iBAAiB,KAAK,KAAK,GAC1B;AACD;AAAA,YACC;AAAA,UACD;AAAA,QACD;AACA,YAAI,aAAa;AACjB,YAAI;AACJ,YAAI;AACJ,YAAI,SAAS;AACb,YAAI,WAAW;AACf,eAAO,EAAE,WAAW,QAAQ;AAC3B,mBAAS,MAAM,QAAQ,MAAM,OAAO,QAAQ,CAAC;AAC7C,uBAAa,aAAa,IAAI,aAAa,KAAK,SAAS;AAEzD,cAAI,eAAe,GAAG;AAErB,sBAAU,OAAO;AAAA,cAChB,MAAO,eAAe,KAAK,aAAa;AAAA,YACzC;AAAA,UACD;AAAA,QACD;AACA,eAAO;AAAA,MACR;AAIA,UAAI,SAAS,SAAS,OAAO;AAC5B,gBAAQ,OAAO,KAAK;AACpB,YAAI,aAAa,KAAK,KAAK,GAAG;AAG7B;AAAA,YACC;AAAA,UAED;AAAA,QACD;AACA,YAAI,UAAU,MAAM,SAAS;AAC7B,YAAI,SAAS;AACb,YAAI,WAAW;AACf,YAAI;AACJ,YAAI;AACJ,YAAI;AACJ,YAAI;AAEJ,YAAI,SAAS,MAAM,SAAS;AAE5B,eAAO,EAAE,WAAW,QAAQ;AAE3B,cAAI,MAAM,WAAW,QAAQ,KAAK;AAClC,cAAI,MAAM,WAAW,EAAE,QAAQ,KAAK;AACpC,cAAI,MAAM,WAAW,EAAE,QAAQ;AAC/B,mBAAS,IAAI,IAAI;AAGjB,oBACC,MAAM,OAAO,UAAU,KAAK,EAAI,IAChC,MAAM,OAAO,UAAU,KAAK,EAAI,IAChC,MAAM,OAAO,UAAU,IAAI,EAAI,IAC/B,MAAM,OAAO,SAAS,EAAI;AAAA,QAE5B;AAEA,YAAI,WAAW,GAAG;AACjB,cAAI,MAAM,WAAW,QAAQ,KAAK;AAClC,cAAI,MAAM,WAAW,EAAE,QAAQ;AAC/B,mBAAS,IAAI;AACb,oBACC,MAAM,OAAO,UAAU,EAAE,IACzB,MAAM,OAAQ,UAAU,IAAK,EAAI,IACjC,MAAM,OAAQ,UAAU,IAAK,EAAI,IACjC;AAAA,QAEF,WAAW,WAAW,GAAG;AACxB,mBAAS,MAAM,WAAW,QAAQ;AAClC,oBACC,MAAM,OAAO,UAAU,CAAC,IACxB,MAAM,OAAQ,UAAU,IAAK,EAAI,IACjC;AAAA,QAEF;AAEA,eAAO;AAAA,MACR;AAEA,UAAI,SAAS;AAAA,QACZ,UAAU;AAAA,QACV,UAAU;AAAA,QACV,WAAW;AAAA,MACZ;AAIA,UACC,OAAO,UAAU,cACjB,OAAO,OAAO,OAAO,YACrB,OAAO,KACN;AACD,eAAO,WAAW;AACjB,iBAAO;AAAA,QACR,CAAC;AAAA,MACF,WAAW,eAAe,CAAC,YAAY,UAAU;AAChD,YAAI,YAAY;AACf,qBAAW,UAAU;AAAA,QACtB,OAAO;AACN,mBAAS,OAAO,QAAQ;AACvB,mBAAO,eAAe,GAAG,MAAM,YAAY,GAAG,IAAI,OAAO,GAAG;AAAA,UAC7D;AAAA,QACD;AAAA,MACD,OAAO;AACN,aAAK,SAAS;AAAA,MACf;AAAA,IAED,GAAE,OAAI;AAAA;AAAA;", + "names": [] +} diff --git a/unpackage/dist/cache/.vite/deps/chunk-Y2F7D3TJ.js b/unpackage/dist/cache/.vite/deps/chunk-Y2F7D3TJ.js new file mode 100644 index 0000000..1c36fad --- /dev/null +++ b/unpackage/dist/cache/.vite/deps/chunk-Y2F7D3TJ.js @@ -0,0 +1,9 @@ +var __getOwnPropNames = Object.getOwnPropertyNames; +var __commonJS = (cb, mod) => function __require() { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; +}; + +export { + __commonJS +}; +//# sourceMappingURL=chunk-Y2F7D3TJ.js.map diff --git a/unpackage/dist/cache/.vite/deps/chunk-Y2F7D3TJ.js.map b/unpackage/dist/cache/.vite/deps/chunk-Y2F7D3TJ.js.map new file mode 100644 index 0000000..9865211 --- /dev/null +++ b/unpackage/dist/cache/.vite/deps/chunk-Y2F7D3TJ.js.map @@ -0,0 +1,7 @@ +{ + "version": 3, + "sources": [], + "sourcesContent": [], + "mappings": "", + "names": [] +} diff --git a/unpackage/dist/cache/.vite/deps/dayjs.js b/unpackage/dist/cache/.vite/deps/dayjs.js new file mode 100644 index 0000000..8dcd447 --- /dev/null +++ b/unpackage/dist/cache/.vite/deps/dayjs.js @@ -0,0 +1,299 @@ +import { + __commonJS +} from "./chunk-Y2F7D3TJ.js"; + +// ../../../work/jeecg/app/cxc-szcx-uniapp/node_modules/dayjs/dayjs.min.js +var require_dayjs_min = __commonJS({ + "../../../work/jeecg/app/cxc-szcx-uniapp/node_modules/dayjs/dayjs.min.js"(exports, module) { + !function(t, e) { + "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e(); + }(exports, function() { + "use strict"; + var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) { + var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100; + return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]"; + } }, m = function(t2, e2, n2) { + var r2 = String(t2); + return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2; + }, v = { s: m, z: function(t2) { + var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60; + return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0"); + }, m: function t2(e2, n2) { + if (e2.date() < n2.date()) + return -t2(n2, e2); + var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), c); + return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0); + }, a: function(t2) { + return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2); + }, p: function(t2) { + return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, ""); + }, u: function(t2) { + return void 0 === t2; + } }, g = "en", D = {}; + D[g] = M; + var p = "$isDayjsObject", S = function(t2) { + return t2 instanceof _ || !(!t2 || !t2[p]); + }, w = function t2(e2, n2, r2) { + var i2; + if (!e2) + return g; + if ("string" == typeof e2) { + var s2 = e2.toLowerCase(); + D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2); + var u2 = e2.split("-"); + if (!i2 && u2.length > 1) + return t2(u2[0]); + } else { + var a2 = e2.name; + D[a2] = e2, i2 = a2; + } + return !r2 && i2 && (g = i2), i2 || !r2 && g; + }, O = function(t2, e2) { + if (S(t2)) + return t2.clone(); + var n2 = "object" == typeof e2 ? e2 : {}; + return n2.date = t2, n2.args = arguments, new _(n2); + }, b = v; + b.l = w, b.i = S, b.w = function(t2, e2) { + return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset }); + }; + var _ = function() { + function M2(t2) { + this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true; + } + var m2 = M2.prototype; + return m2.parse = function(t2) { + this.$d = function(t3) { + var e2 = t3.date, n2 = t3.utc; + if (null === e2) + return /* @__PURE__ */ new Date(NaN); + if (b.u(e2)) + return /* @__PURE__ */ new Date(); + if (e2 instanceof Date) + return new Date(e2); + if ("string" == typeof e2 && !/Z$/i.test(e2)) { + var r2 = e2.match($); + if (r2) { + var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3); + return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2); + } + } + return new Date(e2); + }(t2), this.init(); + }, m2.init = function() { + var t2 = this.$d; + this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds(); + }, m2.$utils = function() { + return b; + }, m2.isValid = function() { + return !(this.$d.toString() === l); + }, m2.isSame = function(t2, e2) { + var n2 = O(t2); + return this.startOf(e2) <= n2 && n2 <= this.endOf(e2); + }, m2.isAfter = function(t2, e2) { + return O(t2) < this.startOf(e2); + }, m2.isBefore = function(t2, e2) { + return this.endOf(e2) < O(t2); + }, m2.$g = function(t2, e2, n2) { + return b.u(t2) ? this[e2] : this.set(n2, t2); + }, m2.unix = function() { + return Math.floor(this.valueOf() / 1e3); + }, m2.valueOf = function() { + return this.$d.getTime(); + }, m2.startOf = function(t2, e2) { + var n2 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) { + var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2); + return r2 ? i2 : i2.endOf(a); + }, $2 = function(t3, e3) { + return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2); + }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : ""); + switch (f2) { + case h: + return r2 ? l2(1, 0) : l2(31, 11); + case c: + return r2 ? l2(1, M3) : l2(0, M3 + 1); + case o: + var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2; + return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3); + case a: + case d: + return $2(v2 + "Hours", 0); + case u: + return $2(v2 + "Minutes", 1); + case s: + return $2(v2 + "Seconds", 2); + case i: + return $2(v2 + "Milliseconds", 3); + default: + return this.clone(); + } + }, m2.endOf = function(t2) { + return this.startOf(t2, false); + }, m2.$set = function(t2, e2) { + var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2; + if (o2 === c || o2 === h) { + var y2 = this.clone().set(d, 1); + y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d; + } else + l2 && this.$d[l2]($2); + return this.init(), this; + }, m2.set = function(t2, e2) { + return this.clone().$set(t2, e2); + }, m2.get = function(t2) { + return this[b.p(t2)](); + }, m2.add = function(r2, f2) { + var d2, l2 = this; + r2 = Number(r2); + var $2 = b.p(f2), y2 = function(t2) { + var e2 = O(l2); + return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2); + }; + if ($2 === c) + return this.set(c, this.$M + r2); + if ($2 === h) + return this.set(h, this.$y + r2); + if ($2 === a) + return y2(1); + if ($2 === o) + return y2(7); + var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3; + return b.w(m3, this); + }, m2.subtract = function(t2, e2) { + return this.add(-1 * t2, e2); + }, m2.format = function(t2) { + var e2 = this, n2 = this.$locale(); + if (!this.isValid()) + return n2.invalidDate || l; + var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) { + return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3); + }, d2 = function(t3) { + return b.s(s2 % 12 || 12, t3, "0"); + }, $2 = f2 || function(t3, e3, n3) { + var r3 = t3 < 12 ? "AM" : "PM"; + return n3 ? r3.toLowerCase() : r3; + }; + return r2.replace(y, function(t3, r3) { + return r3 || function(t4) { + switch (t4) { + case "YY": + return String(e2.$y).slice(-2); + case "YYYY": + return b.s(e2.$y, 4, "0"); + case "M": + return a2 + 1; + case "MM": + return b.s(a2 + 1, 2, "0"); + case "MMM": + return h2(n2.monthsShort, a2, c2, 3); + case "MMMM": + return h2(c2, a2); + case "D": + return e2.$D; + case "DD": + return b.s(e2.$D, 2, "0"); + case "d": + return String(e2.$W); + case "dd": + return h2(n2.weekdaysMin, e2.$W, o2, 2); + case "ddd": + return h2(n2.weekdaysShort, e2.$W, o2, 3); + case "dddd": + return o2[e2.$W]; + case "H": + return String(s2); + case "HH": + return b.s(s2, 2, "0"); + case "h": + return d2(1); + case "hh": + return d2(2); + case "a": + return $2(s2, u2, true); + case "A": + return $2(s2, u2, false); + case "m": + return String(u2); + case "mm": + return b.s(u2, 2, "0"); + case "s": + return String(e2.$s); + case "ss": + return b.s(e2.$s, 2, "0"); + case "SSS": + return b.s(e2.$ms, 3, "0"); + case "Z": + return i2; + } + return null; + }(t3) || i2.replace(":", ""); + }); + }, m2.utcOffset = function() { + return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); + }, m2.diff = function(r2, d2, l2) { + var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() { + return b.m(y2, m3); + }; + switch (M3) { + case h: + $2 = D2() / 12; + break; + case c: + $2 = D2(); + break; + case f: + $2 = D2() / 3; + break; + case o: + $2 = (g2 - v2) / 6048e5; + break; + case a: + $2 = (g2 - v2) / 864e5; + break; + case u: + $2 = g2 / n; + break; + case s: + $2 = g2 / e; + break; + case i: + $2 = g2 / t; + break; + default: + $2 = g2; + } + return l2 ? $2 : b.a($2); + }, m2.daysInMonth = function() { + return this.endOf(c).$D; + }, m2.$locale = function() { + return D[this.$L]; + }, m2.locale = function(t2, e2) { + if (!t2) + return this.$L; + var n2 = this.clone(), r2 = w(t2, e2, true); + return r2 && (n2.$L = r2), n2; + }, m2.clone = function() { + return b.w(this.$d, this); + }, m2.toDate = function() { + return new Date(this.valueOf()); + }, m2.toJSON = function() { + return this.isValid() ? this.toISOString() : null; + }, m2.toISOString = function() { + return this.$d.toISOString(); + }, m2.toString = function() { + return this.$d.toUTCString(); + }, M2; + }(), k = _.prototype; + return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) { + k[t2[1]] = function(e2) { + return this.$g(e2, t2[0], t2[1]); + }; + }), O.extend = function(t2, e2) { + return t2.$i || (t2(e2, _, O), t2.$i = true), O; + }, O.locale = w, O.isDayjs = S, O.unix = function(t2) { + return O(1e3 * t2); + }, O.en = D[g], O.Ls = D, O.p = {}, O; + }); + } +}); +export default require_dayjs_min(); +//# sourceMappingURL=dayjs.js.map diff --git a/unpackage/dist/cache/.vite/deps/dayjs.js.map b/unpackage/dist/cache/.vite/deps/dayjs.js.map new file mode 100644 index 0000000..418bc7c --- /dev/null +++ b/unpackage/dist/cache/.vite/deps/dayjs.js.map @@ -0,0 +1,7 @@ +{ + "version": 3, + "sources": ["../../../../../node_modules/dayjs/dayjs.min.js"], + "sourcesContent": ["!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t) function __require() { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; +}; +var require_app_css = __commonJS({ + "app.css.js"(exports) { + const _style_0 = {}; + exports.styles = [_style_0]; + } +}); +export default require_app_css(); diff --git a/unpackage/dist/dev/.nvue/app.js b/unpackage/dist/dev/.nvue/app.js new file mode 100644 index 0000000..8236d9e --- /dev/null +++ b/unpackage/dist/dev/.nvue/app.js @@ -0,0 +1,2 @@ +Promise.resolve("./app.css.js").then(() => { +}); diff --git a/unpackage/dist/dev/.sourcemap/app/uni_modules/wuwx-step-counter/utssdk/app-android/index.kt.map b/unpackage/dist/dev/.sourcemap/app/uni_modules/wuwx-step-counter/utssdk/app-android/index.kt.map new file mode 100644 index 0000000..1eb6d3e --- /dev/null +++ b/unpackage/dist/dev/.sourcemap/app/uni_modules/wuwx-step-counter/utssdk/app-android/index.kt.map @@ -0,0 +1 @@ +{"version":3,"sources":["uni_modules/wuwx-step-counter/utssdk/app-android/index.uts"],"sourcesContent":["import Context from \"android.content.Context\";\nimport SensorEventListener from 'android.hardware.SensorEventListener';\nimport SensorEvent from 'android.hardware.SensorEvent';\nimport Sensor from 'android.hardware.Sensor';\nimport UTSAndroid from 'io.dcloud.uts.UTSAndroid';\nimport SensorManager from 'android.hardware.SensorManager';\n\ntype StartStepCountingUpdatesOptions = {\n\tstepCounts: Int | null;\n\thandler: (numberOfSteps : Float, timestamp : Date, error : any) => void;\n}\n\ntype QueryStepCountStartingOptions = {\n\tstart: Date | null,\n\tend: Date | null,\n\thandler: (numberOfSteps : Int, error : any) => void\n}\n\nlet successHandler = (numberOfSteps : Float, timestamp : Date, error : any) => {\n\n};\n\nclass StepCounterSensorEventListener implements SensorEventListener {\n\n\toverride onSensorChanged(event : SensorEvent) : void {\n\t\tsuccessHandler(event.values[0], new Date(), \"\")\n\t}\n\n\toverride onAccuracyChanged(sensor : Sensor, param1 : Int) : void {\n\n\t}\n}\n\nexport function startStepCountingUpdates(options: StartStepCountingUpdatesOptions) {\n\n\tlet stepCounterSensorEventListener = new StepCounterSensorEventListener();\n\tsuccessHandler = options.handler;\n\n\tconst context = UTSAndroid.getAppContext();\n\tif (context != null) {\n\t\tconst sensorManager = context.getSystemService(Context.SENSOR_SERVICE) as SensorManager\n\n\t\tsensorManager.unregisterListener(stepCounterSensorEventListener, sensorManager.getDefaultSensor(Sensor.TYPE_STEP_COUNTER))\n\t\tsensorManager.registerListener(stepCounterSensorEventListener, sensorManager.getDefaultSensor(Sensor.TYPE_STEP_COUNTER), SensorManager.SENSOR_DELAY_NORMAL)\n\t}\n}\n\nexport function stopStepCountingUpdates() {\n\t\n}\n\nexport function queryStepCountStarting(options: QueryStepCountStartingOptions) {\n\n}\n\nexport function isStepCountingAvailable() {\n\n}\n"],"names":[],"mappings":";;AAAA,OAAoB,uBAAyB,CAAC;AAG9C,OAAmB,uBAAyB,CAAC;AAD7C,OAAwB,4BAA8B,CAAC;AADvD,OAAgC,oCAAsC,CAAC;AAIvE,OAA0B,8BAAgC,CAAC;;;;;;;AAD3D,OAAuB,wBAA0B,CAAC;;;;;AAGX,WAAlC;IACJ,qBAAY,YAAW;IACvB,mBAAU,eAAgB,OAAO,WAAY,MAAM,OAAQ,GAAG,KAAK,IAAI,CAAC;AACzE;;;;;AAEqC,WAAhC;IACJ,gBAAO,aAAY;IACnB,cAAK,aAAY;IACjB,mBAAU,eAAgB,KAAK,OAAQ,GAAG,KAAK,IAAI,CAAA;AACpD;;;;;AAEA,IAAI,iBAAiB,IAAC,eAAgB,OAAO,WAAY,MAAM,OAAQ,GAAG,CAAK,CAE/E;AAEA,WAAM,iCAA0C;;;;IAE/C,aAAS,gBAAgB,OAAQ,WAAW,GAAI,IAAI,CAAC;QACpD,eAAe,MAAM,MAAM,CAAC,CAAC,CAAC,EAAE,AAAI,QAAQ;IAC7C;IAEA,aAAS,kBAAkB,QAAS,MAAM,EAAE,QAAS,GAAG,GAAI,IAAI,CAAC,CAEjE;AACD;AAEO,IAAS,yBAAyB,SAAS,+BAA+B,EAAE;IAElF,IAAI,iCAAiC,AAAI;IACzC,iBAAiB,QAAQ,OAAO;IAEhC,IAAM,UAAU,WAAW,aAAa;IACxC,IAAI,WAAW,IAAI,EAAE;QACpB,IAAM,gBAAgB,QAAQ,gBAAgB,CAAC,QAAQ,cAAc,EAAE,EAAE,CAAC;QAE1E,cAAc,kBAAkB,CAAC,gCAAgC,cAAc,gBAAgB,CAAC,OAAO,iBAAiB;QACxH,cAAc,gBAAgB,CAAC,gCAAgC,cAAc,gBAAgB,CAAC,OAAO,iBAAiB,GAAG,cAAc,mBAAmB;IAC3J;AACD;AAEO,IAAS,0BAA0B,CAE1C;AAEO,IAAS,uBAAuB,SAAS,6BAA6B,EAAE,CAE/E;AAEO,IAAS,0BAA0B,CAE1C;AAlDuC;IACtC,SAAA,YAAY,YAAW;IACvB,kBAAA,SAAO,YAAiE;AACzE;AAEqC;IACpC,SAAA,OAAO,aAAY;IACnB,SAAA,KAAK,aAAY;IACjB,kBAAA,SAAO,YAA4C;AACpD;iCAiByC,SAAS,yCAA+B;mHAxBtE,eAAgB,OAAO,WAAY,MAAM,OAAQ,GAAG;wBAApD,eAAuB,WAAkB;;;;;;;+BA0Cb,SAAS,uCAA6B;wHApClE,eAAgB,KAAK,OAAQ,GAAG;wBAAhC,eAAqB"} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/__uniappautomator.js b/unpackage/dist/dev/app-plus/__uniappautomator.js new file mode 100644 index 0000000..2471e2e --- /dev/null +++ b/unpackage/dist/dev/app-plus/__uniappautomator.js @@ -0,0 +1,16 @@ +var n; +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +function __spreadArrays(){for(var s=0,i=0,il=arguments.length;in;n++)r(e,e._deferreds[n]);e._deferreds=null}function c(e,n){var t=!1;try{e((function(e){t||(t=!0,i(n,e))}),(function(e){t||(t=!0,f(n,e))}))}catch(o){if(t)return;t=!0,f(n,o)}}var a=setTimeout;o.prototype.catch=function(e){return this.then(null,e)},o.prototype.then=function(e,n){var o=new this.constructor(t);return r(this,new function(e,n,t){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof n?n:null,this.promise=t}(e,n,o)),o},o.prototype.finally=e,o.all=function(e){return new o((function(t,o){function r(e,n){try{if(n&&("object"==typeof n||"function"==typeof n)){var u=n.then;if("function"==typeof u)return void u.call(n,(function(n){r(e,n)}),o)}i[e]=n,0==--f&&t(i)}catch(c){o(c)}}if(!n(e))return o(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);for(var f=i.length,u=0;i.length>u;u++)r(u,i[u])}))},o.resolve=function(e){return e&&"object"==typeof e&&e.constructor===o?e:new o((function(n){n(e)}))},o.reject=function(e){return new o((function(n,t){t(e)}))},o.race=function(e){return new o((function(t,r){if(!n(e))return r(new TypeError("Promise.race accepts an array"));for(var i=0,f=e.length;f>i;i++)o.resolve(e[i]).then(t,r)}))},o._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){a(e,0)},o._unhandledRejectionFn=function(e){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var l=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}();"Promise"in l?l.Promise.prototype.finally||(l.Promise.prototype.finally=e):l.Promise=o},"object"==typeof exports&&"undefined"!=typeof module?n():"function"==typeof define&&define.amd?define(n):n();var getRandomValues="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),rnds8=new Uint8Array(16);function rng(){if(!getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}for(var byteToHex=[],i=0;i<256;++i)byteToHex[i]=(i+256).toString(16).substr(1);function v4(options,buf,offset){var i=buf&&offset||0;"string"==typeof options&&(buf="binary"===options?new Array(16):null,options=null);var rnds=(options=options||{}).random||(options.rng||rng)();if(rnds[6]=15&rnds[6]|64,rnds[8]=63&rnds[8]|128,buf)for(var ii=0;ii<16;++ii)buf[i+ii]=rnds[ii];return buf||function(buf,offset){var i=offset||0,bth=byteToHex;return[bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]]].join("")}(rnds)}var hasOwnProperty=Object.prototype.hasOwnProperty,isArray=Array.isArray,PATH_RE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;function getPaths(path,data){if(isArray(path))return path;if(data&&(val=data,key=path,hasOwnProperty.call(val,key)))return[path];var val,key,res=[];return path.replace(PATH_RE,(function(match,p1,offset,string){return res.push(offset?string.replace(/\\(\\)?/g,"$1"):p1||match),string})),res}function getDataByPath(data,path){var dataPath,paths=getPaths(path,data);for(dataPath=paths.shift();null!=dataPath;){if(null==(data=data[dataPath]))return;dataPath=paths.shift()}return data}var elementMap=new Map;function transEl(el){var _a;if(!function(el){if(el){var tagName=el.tagName;return 0===tagName.indexOf("UNI-")||"BODY"===tagName||0===tagName.indexOf("V-UNI-")||el.__isUniElement}return!1}(el))throw Error("no such element");var element,elementId,elem={elementId:(element=el,elementId=element._id,elementId||(elementId=v4(),element._id=elementId,elementMap.set(elementId,{id:elementId,element:element})),elementId),tagName:el.tagName.toLocaleLowerCase().replace("uni-","")};if(el.__vue__)(vm=el.__vue__)&&(vm.$parent&&vm.$parent.$el===el&&(vm=vm.$parent),vm&&!(null===(_a=vm.$options)||void 0===_a?void 0:_a.isReserved)&&(elem.nodeId=function(vm){if(vm._$weex)return vm._uid;if(vm._$id)return vm._$id;if(vm.uid)return vm.uid;var parent_1=function(vm){for(var parent=vm.$parent;parent;){if(parent._$id)return parent;parent=parent.$parent}}(vm);if(!vm.$parent)return"-1";var vnode=vm.$vnode,context=vnode.context;return context&&context!==parent_1&&context._$id?context._$id+";"+parent_1._$id+","+vnode.data.attrs._i:parent_1._$id+","+vnode.data.attrs._i}(vm)));else var vm;return"video"===elem.tagName&&(elem.videoId=elem.nodeId),elem}function getVm(el){return el.__vue__?{isVue3:!1,vm:el.__vue__}:{isVue3:!0,vm:el.__vueParentComponent}}function getScrollViewMain(el){var _a=getVm(el),isVue3=_a.isVue3,vm=_a.vm;return isVue3?vm.exposed.$getMain():vm.$refs.main}var FUNCTIONS={input:{input:function(el,value){var _a=getVm(el),isVue3=_a.isVue3,vm=_a.vm;isVue3?vm.exposed&&vm.exposed.$triggerInput({value:value}):(vm.valueSync=value,vm.$triggerInput({},{value:value}))}},textarea:{input:function(el,value){var _a=getVm(el),isVue3=_a.isVue3,vm=_a.vm;isVue3?vm.exposed&&vm.exposed.$triggerInput({value:value}):(vm.valueSync=value,vm.$triggerInput({},{value:value}))}},"scroll-view":{scrollTo:function(el,x,y){var main=getScrollViewMain(el);main.scrollLeft=x,main.scrollTop=y},scrollTop:function(el){return getScrollViewMain(el).scrollTop},scrollLeft:function(el){return getScrollViewMain(el).scrollLeft},scrollWidth:function(el){return getScrollViewMain(el).scrollWidth},scrollHeight:function(el){return getScrollViewMain(el).scrollHeight}},swiper:{swipeTo:function(el,index){el.__vue__.current=index}},"movable-view":{moveTo:function(el,x,y){el.__vue__._animationTo(x,y)}},switch:{tap:function(el){el.click()}},slider:{slideTo:function(el,value){var vm=el.__vue__,slider=vm.$refs["uni-slider"],offsetWidth=slider.offsetWidth,boxLeft=slider.getBoundingClientRect().left;vm.value=value,vm._onClick({x:(value-vm.min)*offsetWidth/(vm.max-vm.min)+boxLeft})}}};function createTouchList(touchInits){var _a,touches=touchInits.map((function(touch){return function(touch){if(document.createTouch)return document.createTouch(window,touch.target,touch.identifier,touch.pageX,touch.pageY,touch.screenX,touch.screenY);return new Touch(touch)}(touch)}));return document.createTouchList?(_a=document).createTouchList.apply(_a,touches):touches}var WebAdapter={getWindow:function(pageId){return window},getDocument:function(pageId){return document},getEl:function(elementId){var element=elementMap.get(elementId);if(!element)throw Error("element destroyed");return element.element},getOffset:function(node){var rect=node.getBoundingClientRect();return Promise.resolve({left:rect.left+window.pageXOffset,top:rect.top+window.pageYOffset})},querySelector:function(context,selector){return"page"===selector&&(selector="body"),Promise.resolve(transEl(context.querySelector(selector)))},querySelectorAll:function(context,selector){var elements=[],nodeList=document.querySelectorAll(selector);return[].forEach.call(nodeList,(function(node){try{elements.push(transEl(node))}catch(e){}})),Promise.resolve({elements:elements})},queryProperties:function(context,names){return Promise.resolve({properties:names.map((function(name){var value=getDataByPath(context,name.replace(/-([a-z])/g,(function(g){return g[1].toUpperCase()})));return"document.documentElement.scrollTop"===name&&0===value&&(value=getDataByPath(context,"document.body.scrollTop")),value}))})},queryAttributes:function(context,names){return Promise.resolve({attributes:names.map((function(name){return String(context.getAttribute(name))}))})},queryStyles:function(context,names){var style=getComputedStyle(context);return Promise.resolve({styles:names.map((function(name){return style[name]}))})},queryHTML:function(context,type){return Promise.resolve({html:(html="outer"===type?context.outerHTML:context.innerHTML,html.replace(/\n/g,"").replace(/(]*>)(]*>[^<]*<\/span>)(.*?<\/uni-text>)/g,"$1$3").replace(/<\/?[^>]*>/g,(function(replacement){return-1":""===replacement?"":0!==replacement.indexOf(" promise.resolve(callback()).then(() => value), + reason => promise.resolve(callback()).then(() => { + throw reason + }) + ) + } +}; + +if (typeof uni !== 'undefined' && uni && uni.requireGlobal) { + const global = uni.requireGlobal() + ArrayBuffer = global.ArrayBuffer + Int8Array = global.Int8Array + Uint8Array = global.Uint8Array + Uint8ClampedArray = global.Uint8ClampedArray + Int16Array = global.Int16Array + Uint16Array = global.Uint16Array + Int32Array = global.Int32Array + Uint32Array = global.Uint32Array + Float32Array = global.Float32Array + Float64Array = global.Float64Array + BigInt64Array = global.BigInt64Array + BigUint64Array = global.BigUint64Array +}; + + +(()=>{var S=Object.create;var u=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty;var y=(A,t)=>()=>(t||A((t={exports:{}}).exports,t),t.exports);var G=(A,t,s,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of C(t))!_.call(A,a)&&a!==s&&u(A,a,{get:()=>t[a],enumerable:!(r=I(t,a))||r.enumerable});return A};var k=(A,t,s)=>(s=A!=null?S(E(A)):{},G(t||!A||!A.__esModule?u(s,"default",{value:A,enumerable:!0}):s,A));var B=y((q,D)=>{D.exports=Vue});var Q=Object.prototype.toString,f=A=>Q.call(A),p=A=>f(A).slice(8,-1);function N(){return typeof __channelId__=="string"&&__channelId__}function P(A,t){switch(p(t)){case"Function":return"function() { [native code] }";default:return t}}function j(A,t,s){return N()?(s.push(t.replace("at ","uni-app:///")),console[A].apply(console,s)):s.map(function(a){let o=f(a).toLowerCase();if(["[object object]","[object array]","[object module]"].indexOf(o)!==-1)try{a="---BEGIN:JSON---"+JSON.stringify(a,P)+"---END:JSON---"}catch(i){a=o}else if(a===null)a="---NULL---";else if(a===void 0)a="---UNDEFINED---";else{let i=p(a).toUpperCase();i==="NUMBER"||i==="BOOLEAN"?a="---BEGIN:"+i+"---"+a+"---END:"+i+"---":a=String(a)}return a}).join("---COMMA---")+" "+t}function h(A,t,...s){let r=j(A,t,s);r&&console[A](r)}var m={data(){return{locale:"en",fallbackLocale:"en",localization:{en:{done:"OK",cancel:"Cancel"},zh:{done:"\u5B8C\u6210",cancel:"\u53D6\u6D88"},"zh-hans":{},"zh-hant":{},messages:{}},localizationTemplate:{}}},onLoad(){this.initLocale()},created(){this.initLocale()},methods:{initLocale(){if(this.__initLocale)return;this.__initLocale=!0;let A=(plus.webview.currentWebview().extras||{}).data||{};if(A.messages&&(this.localization.messages=A.messages),A.locale){this.locale=A.locale.toLowerCase();return}let t={chs:"hans",cn:"hans",sg:"hans",cht:"hant",tw:"hant",hk:"hant",mo:"hant"},s=plus.os.language.toLowerCase().split("/")[0].replace("_","-").split("-"),r=s[1];r&&(s[1]=t[r]||r),s.length=s.length>2?2:s.length,this.locale=s.join("-")},localize(A){let t=this.locale,s=t.split("-")[0],r=this.fallbackLocale,a=o=>Object.assign({},this.localization[o],(this.localizationTemplate||{})[o]);return a("messages")[A]||a(t)[A]||a(s)[A]||a(r)[A]||A}}},w={onLoad(){this.initMessage()},methods:{initMessage(){let{from:A,callback:t,runtime:s,data:r={},useGlobalEvent:a}=plus.webview.currentWebview().extras||{};this.__from=A,this.__runtime=s,this.__page=plus.webview.currentWebview().id,this.__useGlobalEvent=a,this.data=JSON.parse(JSON.stringify(r)),plus.key.addEventListener("backbutton",()=>{typeof this.onClose=="function"?this.onClose():plus.webview.currentWebview().close("auto")});let o=this,i=function(n){let l=n.data&&n.data.__message;!l||o.__onMessageCallback&&o.__onMessageCallback(l.data)};if(this.__useGlobalEvent)weex.requireModule("globalEvent").addEventListener("plusMessage",i);else{let n=new BroadcastChannel(this.__page);n.onmessage=i}},postMessage(A={},t=!1){let s=JSON.parse(JSON.stringify({__message:{__page:this.__page,data:A,keep:t}})),r=this.__from;if(this.__runtime==="v8")this.__useGlobalEvent?plus.webview.postMessageToUniNView(s,r):new BroadcastChannel(r).postMessage(s);else{let a=plus.webview.getWebviewById(r);a&&a.evalJS(`__plusMessage&&__plusMessage(${JSON.stringify({data:s})})`)}},onMessage(A){this.__onMessageCallback=A}}};var e=k(B());var b=(A,t)=>{let s=A.__vccOpts||A;for(let[r,a]of t)s[r]=a;return s};var F=Object.defineProperty,T=Object.defineProperties,O=Object.getOwnPropertyDescriptors,v=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,L=(A,t,s)=>t in A?F(A,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):A[t]=s,R=(A,t)=>{for(var s in t||(t={}))M.call(t,s)&&L(A,s,t[s]);if(v)for(var s of v(t))U.call(t,s)&&L(A,s,t[s]);return A},z=(A,t)=>T(A,O(t)),H={map_center_marker_container:{"":{alignItems:"flex-start",width:22,height:70}},map_center_marker:{"":{width:22,height:35}},"unichooselocation-icons":{"":{fontFamily:"unichooselocation",textDecoration:"none",textAlign:"center"}},page:{"":{flex:1,position:"relative"}},"flex-r":{"":{flexDirection:"row",flexWrap:"nowrap"}},"flex-c":{"":{flexDirection:"column",flexWrap:"nowrap"}},"flex-fill":{"":{flex:1}},"a-i-c":{"":{alignItems:"center"}},"j-c-c":{"":{justifyContent:"center"}},"nav-cover":{"":{position:"absolute",left:0,top:0,right:0,height:100,backgroundImage:"linear-gradient(to bottom, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0))"}},statusbar:{"":{height:22}},"title-view":{"":{paddingTop:5,paddingRight:15,paddingBottom:5,paddingLeft:15}},"btn-cancel":{"":{paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0}},"btn-cancel-text":{"":{fontSize:30,color:"#ffffff"}},"btn-done":{"":{backgroundColor:"#007AFF",borderRadius:3,paddingTop:5,paddingRight:12,paddingBottom:5,paddingLeft:12}},"btn-done-disabled":{"":{backgroundColor:"#62abfb"}},"text-done":{"":{color:"#ffffff",fontSize:15,fontWeight:"bold",lineHeight:15,height:15}},"text-done-disabled":{"":{color:"#c0ddfe"}},"map-view":{"":{flex:2,position:"relative"}},map:{"":{width:"750rpx",justifyContent:"center",alignItems:"center"}},"map-location":{"":{position:"absolute",right:20,bottom:25,width:44,height:44,backgroundColor:"#ffffff",borderRadius:40,boxShadow:"0 2px 4px rgba(100, 100, 100, 0.2)"}},"map-location-text":{"":{fontSize:20}},"map-location-text-active":{"":{color:"#007AFF"}},"result-area":{"":{flex:2,position:"relative"}},"search-bar":{"":{paddingTop:12,paddingRight:15,paddingBottom:12,paddingLeft:15,backgroundColor:"#ffffff"}},"search-area":{"":{backgroundColor:"#ebebeb",borderRadius:5,height:30,paddingLeft:8}},"search-text":{"":{fontSize:14,lineHeight:16,color:"#b4b4b4"}},"search-icon":{"":{fontSize:16,color:"#b4b4b4",marginRight:4}},"search-tab":{"":{flexDirection:"row",paddingTop:2,paddingRight:16,paddingBottom:2,paddingLeft:16,marginTop:-10,backgroundColor:"#FFFFFF"}},"search-tab-item":{"":{marginTop:0,marginRight:5,marginBottom:0,marginLeft:5,textAlign:"center",fontSize:14,lineHeight:32,color:"#333333",borderBottomStyle:"solid",borderBottomWidth:2,borderBottomColor:"rgba(0,0,0,0)"}},"search-tab-item-active":{"":{borderBottomColor:"#0079FF"}},"no-data":{"":{color:"#808080"}},"no-data-search":{"":{marginTop:50}},"list-item":{"":{position:"relative",paddingTop:12,paddingRight:15,paddingBottom:12,paddingLeft:15}},"list-line":{"":{position:"absolute",left:15,right:0,bottom:0,height:.5,backgroundColor:"#d3d3d3"}},"list-name":{"":{fontSize:14,lines:1,textOverflow:"ellipsis"}},"list-address":{"":{fontSize:12,color:"#808080",lines:1,textOverflow:"ellipsis",marginTop:5}},"list-icon-area":{"":{paddingLeft:10,paddingRight:10}},"list-selected-icon":{"":{fontSize:20,color:"#007AFF"}},"search-view":{"":{position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"#f6f6f6"}},"searching-area":{"":{flex:5}},"search-input":{"":{fontSize:14,height:30,paddingLeft:6}},"search-cancel":{"":{color:"#0079FF",marginLeft:10}},"loading-view":{"":{paddingTop:15,paddingRight:15,paddingBottom:15,paddingLeft:15}},"loading-icon":{"":{width:28,height:28,color:"#808080"}}},Y=weex.requireModule("dom");Y.addRule("fontFace",{fontFamily:"unichooselocation",src:"url('data:font/truetype;charset=utf-8;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzI8gE4kAAABfAAAAFZjbWFw4nGd6QAAAegAAAGyZ2x5Zn61L/EAAAOoAAACJGhlYWQXJ/zZAAAA4AAAADZoaGVhB94DhgAAALwAAAAkaG10eBQAAAAAAAHUAAAAFGxvY2EBUAGyAAADnAAAAAxtYXhwARMAZgAAARgAAAAgbmFtZWs+cdAAAAXMAAAC2XBvc3SV1XYLAAAIqAAAAE4AAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAUAAQAAAAEAAFP+qyxfDzz1AAsEAAAAAADaBFxuAAAAANoEXG4AAP+gBAADYAAAAAgAAgAAAAAAAAABAAAABQBaAAQAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQQAAZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA5grsMgOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAQAAAAEAAAABAAAAAQAAAAAAAAFAAAAAwAAACwAAAAEAAABcgABAAAAAABsAAMAAQAAACwAAwAKAAABcgAEAEAAAAAKAAgAAgAC5grmHOZR7DL//wAA5grmHOZR7DL//wAAAAAAAAAAAAEACgAKAAoACgAAAAQAAwACAAEAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAEAAAAAAAAAABAAA5goAAOYKAAAABAAA5hwAAOYcAAAAAwAA5lEAAOZRAAAAAgAA7DIAAOwyAAAAAQAAAAAAAAB+AKAA0gESAAQAAP+gA+ADYAAAAAkAMQBZAAABIx4BMjY0JiIGBSMuASc1NCYiBh0BDgEHIyIGFBY7AR4BFxUUFjI2PQE+ATczMjY0JgE1NCYiBh0BLgEnMzI2NCYrAT4BNxUUFjI2PQEeARcjIgYUFjsBDgECAFABLUQtLUQtAg8iD9OcEhwSnNMPIg4SEg4iD9OcEhwSnNMPIg4SEv5SEhwSga8OPg4SEg4+Dq+BEhwSga8OPg4SEg4+Dq8BgCItLUQtLQKc0w8iDhISDiIP05wSHBKc0w8iDhISDiIP05wSHBL+gj4OEhIOPg6vgRIcEoGvDj4OEhIOPg6vgRIcEoGvAAEAAAAAA4ECgQAQAAABPgEeAQcBDgEvASY0NhYfAQM2DCIbAgz+TA0kDfcMGiIN1wJyDQIZIg3+IQ4BDf4NIhoBDd0AAQAAAAADAgKCAB0AAAE3PgEuAgYPAScmIgYUHwEHBhQWMj8BFxYyNjQnAjy4CAYGEBcWCLe3DSIaDLi4DBkjDbe3DSMZDAGAtwgWFxAGBgi4uAwaIg23tw0jGQy4uAwZIw0AAAIAAP/fA6EDHgAVACYAACUnPgE3LgEnDgEHHgEXMjY3FxYyNjQlBiIuAjQ+AjIeAhQOAQOX2CcsAQTCkpLCAwPCkj5uLdkJGRH+ijV0Z08rK09ndGdPLCxPE9MtckGSwgQEwpKSwgMoJdQIEhi3FixOaHNnTywsT2dzaE4AAAAAAAASAN4AAQAAAAAAAAAVAAAAAQAAAAAAAQARABUAAQAAAAAAAgAHACYAAQAAAAAAAwARAC0AAQAAAAAABAARAD4AAQAAAAAABQALAE8AAQAAAAAABgARAFoAAQAAAAAACgArAGsAAQAAAAAACwATAJYAAwABBAkAAAAqAKkAAwABBAkAAQAiANMAAwABBAkAAgAOAPUAAwABBAkAAwAiAQMAAwABBAkABAAiASUAAwABBAkABQAWAUcAAwABBAkABgAiAV0AAwABBAkACgBWAX8AAwABBAkACwAmAdUKQ3JlYXRlZCBieSBpY29uZm9udAp1bmljaG9vc2Vsb2NhdGlvblJlZ3VsYXJ1bmljaG9vc2Vsb2NhdGlvbnVuaWNob29zZWxvY2F0aW9uVmVyc2lvbiAxLjB1bmljaG9vc2Vsb2NhdGlvbkdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAAoAQwByAGUAYQB0AGUAZAAgAGIAeQAgAGkAYwBvAG4AZgBvAG4AdAAKAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgBSAGUAZwB1AGwAYQByAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgB1AG4AaQBjAGgAbwBvAHMAZQBsAG8AYwBhAHQAaQBvAG4AVgBlAHIAcwBpAG8AbgAgADEALgAwAHUAbgBpAGMAaABvAG8AcwBlAGwAbwBjAGEAdABpAG8AbgBHAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAHMAdgBnADIAdAB0AGYAIABmAHIAbwBtACAARgBvAG4AdABlAGwAbABvACAAcAByAG8AagBlAGMAdAAuAGgAdAB0AHAAOgAvAC8AZgBvAG4AdABlAGwAbABvAC4AYwBvAG0AAAAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAQIBAwEEAQUBBgAKbXlsb2NhdGlvbgZ4dWFuemUFY2xvc2UGc291c3VvAAAAAA==')"});var d=weex.requireModule("mapSearch"),K=16,x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAACcCAMAAAC3Fl5oAAAB3VBMVEVMaXH/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/EhL/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/Dw//AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/AAD/GRn/NTX/Dw//Fhb/AAD/AAD/AAD/GRn/GRn/Y2P/AAD/AAD/ExP/Ghr/AAD/AAD/MzP/GRn/AAD/Hh7/AAD/RUX/AAD/AAD/AAD/AAD/AAD/AAD/Dg7/AAD/HR3/Dw//FRX/SUn/AAD/////kJD/DQ3/Zmb/+/v/wMD/mJj/6en/vb3/1NT//Pz/ODj/+fn/3Nz/nJz/j4//9/f/7e3/9vb/7Oz/2Nj/x8f/Ozv/+Pj/3d3/nZ3/2dn//f3/6Oj/2tr/v7//09P/vr7/mZn/l5cdSvP3AAAAe3RSTlMAAhLiZgTb/vztB/JMRhlp6lQW86g8mQ4KFPs3UCH5U8huwlesWtTYGI7RsdVeJGfTW5rxnutLsvXWF8vQNdo6qQbuz7D4hgVIx2xtw8GC1TtZaIw0i84P98tU0/fsj7PKaAgiZZxeVfo8Z52eg1P0nESrENnjXVPUgw/uuSmDAAADsUlEQVR42u3aZ3cTRxgF4GtbYleSLdnGcsENG2ODjbExEHrvhAQCIb1Bem+QdkeuuFMNBBJIfmuOckzZI8/srHYmH3Lm+QNXK632LTvQ03Tu/IWeU/tTGTKT2n+q58L5c00wpXJd47DHEt5w47pKxLbhdLdPKb/7dBYxVLxw1GcI/2h1BcpzKNFHLX2JQ4gumaiitqpEEhEdOMJI9h5AFC3feYzI+7IF2tpSLEOqDXpObPRYFm/jCWho/4Ble7MdoT7fzhhq9yHEz28wltU1UPrJZ0wd66HwicfYvEFIfePTAP8tSLTupBHvtGJFH9bSkNrNWEHzERrT34xSH9Ogr1CijkbVAUH1KRqVqkdQAw07iIAaGlcTqI+/0LjeJJ5J0IIEnkpXMdzs4sTtW9dnZq7fuj2xOMtwVWk88RHDjBYejYvnjD8qjOpfQsUqhvj7oSjxcJIhVj3pyKqpNjYvVjQ/RrXq5YABKi3MCYm5BSrtWO5v11DlmlC4RpU1WRS9SJU7QukOVbpQ9JLu549+Dd0AUOlTbkGEuk85vxLAK5QbuytC3R2j3HoAjZSbFxrmKTcCoJdSk0LLJKV6gSaPMqNTQsvUKGW8JrxKqUWhaZFSeWyh1LTQNE2pHF6mzOy40DQ+S5mLimJcENoKlOnBWsr8KbRNUGYt5LXgd6HtD3lNQIoyN4S2G5RJIUOZm0LbTcqsBqVmhLYZSlkPsP4VWf+Rrd+m1v9o9h8Vv5p42C1R5qL1x7WRglOgVN52yfwNOBu76P+lLPoYidu23KPciIHGa07ZeIW1jvcNtI7q5vexCPGYCmf+m/Y9a3sAwQ5bI9T7ukPgPcn9GToEao+xk1OixJT+GIsvNAbx6eAgPq0xiF+KtkpYKhRXCQ8eFFcJhSWGu3rZ8jJkCM8kz9K4TUnrC6mAgzTsB9tLwQ2W15qfosQ2GrQNpZr7aczbzVjBZsvLcaC1g0bsbIVEnU8DOr6H1KDH2LwtUBi0/JII6Dxm9zUXkH+XMWzfh1Dte1i2Pe3QkC77Zel7aehpO8wyHG6Dtt0NjKxhN6I4uSli/TqJiJJDUQ4NDCURXTrXRy1XcumyD24M+AzhD1RXIIZsl/LoyZmurJHDM7s8lvB2FQ/PmPJ6PseAXP5HGMYAAC7ABbgAF+ACXIALcAEuwAW4ABfgAlyAC3ABLsAFuID/d8Cx4NEt8/byOf0wLnis8zjMq9/Kp7bWw4JOj8u8TlhRl+G/Mp2wpOX48GffvvZ1CyL4B53LAS6zb08EAAAAAElFTkSuQmCC",V={mixins:[w,m],data(){return{positionIcon:x,mapScale:K,userKeyword:"",showLocation:!0,latitude:39.908692,longitude:116.397477,nearList:[],nearSelectedIndex:-1,nearLoading:!1,nearLoadingEnd:!1,noNearData:!1,isUserLocation:!1,statusBarHeight:20,mapHeight:250,markers:[{id:"location",latitude:39.908692,longitude:116.397477,zIndex:"1",iconPath:x,width:26,height:36}],showSearch:!1,searchList:[],searchSelectedIndex:-1,searchLoading:!1,searchEnd:!1,noSearchData:!1,localizationTemplate:{en:{search_tips:"Search for a place",no_found:"No results found",nearby:"Nearby",more:"More"},zh:{search_tips:"\u641C\u7D22\u5730\u70B9",no_found:"\u5BF9\u4E0D\u8D77\uFF0C\u6CA1\u6709\u641C\u7D22\u5230\u76F8\u5173\u6570\u636E",nearby:"\u9644\u8FD1",more:"\u66F4\u591A"}},searchNearFlag:!0,searchMethod:"poiSearchNearBy"}},computed:{disableOK(){return this.nearSelectedIndex<0&&this.searchSelectedIndex<0},searchMethods(){return[{title:this.localize("nearby"),method:"poiSearchNearBy"},{title:this.localize("more"),method:"poiKeywordsSearch"}]}},filters:{distance(A){return A>100?`${A>1e3?(A/1e3).toFixed(1)+"k":A.toFixed(0)}m | `:A>0?"100m\u5185 | ":""}},watch:{searchMethod(){this._searchPageIndex=1,this.searchEnd=!1,this.searchList=[],this._searchKeyword&&this.search()}},onLoad(){this.statusBarHeight=plus.navigator.getStatusbarHeight(),this.mapHeight=plus.screen.resolutionHeight/2;let A=this.data;this.userKeyword=A.keyword||"",this._searchInputTimer=null,this._searchPageIndex=1,this._searchKeyword="",this._nearPageIndex=1,this._hasUserLocation=!1,this._userLatitude=0,this._userLongitude=0},onReady(){this.mapContext=this.$refs.map1,this.data.latitude&&this.data.longitude?(this._hasUserLocation=!0,this.moveToCenter({latitude:this.data.latitude,longitude:this.data.longitude})):this.getUserLocation()},onUnload(){this.clearSearchTimer()},methods:{cancelClick(){this.postMessage({event:"cancel"})},doneClick(){if(this.disableOK)return;let A=this.showSearch&&this.searchSelectedIndex>=0?this.searchList[this.searchSelectedIndex]:this.nearList[this.nearSelectedIndex],t={name:A.name,address:A.address,latitude:A.location.latitude,longitude:A.location.longitude};this.postMessage({event:"selected",detail:t})},getUserLocation(){plus.geolocation.getCurrentPosition(({coordsType:A,coords:t})=>{A.toLowerCase()==="wgs84"?this.wgs84togcjo2(t,s=>{this.getUserLocationSuccess(s)}):this.getUserLocationSuccess(t)},A=>{this._hasUserLocation=!0,h("log","at template/__uniappchooselocation.nvue:292","Gelocation Error: code - "+A.code+"; message - "+A.message)},{geocode:!1})},getUserLocationSuccess(A){this._userLatitude=A.latitude,this._userLongitude=A.longitude,this._hasUserLocation=!0,this.moveToCenter({latitude:A.latitude,longitude:A.longitude})},searchclick(A){this.showSearch=A,A===!1&&plus.key.hideSoftKeybord()},showSearchView(){this.searchList=[],this.showSearch=!0},hideSearchView(){this.showSearch=!1,plus.key.hideSoftKeybord(),this.noSearchData=!1,this.searchSelectedIndex=-1,this._searchKeyword=""},onregionchange(A){var t=A.detail,s=t.type||A.type,r=t.causedBy||A.causedBy;r!=="drag"||s!=="end"||this.mapContext.getCenterLocation(a=>{if(!this.searchNearFlag){this.searchNearFlag=!this.searchNearFlag;return}this.moveToCenter({latitude:a.latitude,longitude:a.longitude})})},onItemClick(A,t){this.searchNearFlag=!1,t.stopPropagation&&t.stopPropagation(),this.nearSelectedIndex!==A&&(this.nearSelectedIndex=A),this.moveToLocation(this.nearList[A]&&this.nearList[A].location)},moveToCenter(A){this.latitude===A.latitude&&this.longitude===A.longitude||(this.latitude=A.latitude,this.longitude=A.longitude,this.updateCenter(A),this.moveToLocation(A),this.isUserLocation=this._userLatitude===A.latitude&&this._userLongitude===A.longitude)},updateCenter(A){this.nearSelectedIndex=-1,this.nearList=[],this._hasUserLocation&&(this._nearPageIndex=1,this.nearLoadingEnd=!1,this.reverseGeocode(A),this.searchNearByPoint(A),this.onItemClick(0,{stopPropagation:()=>{this.searchNearFlag=!0}}),this.$refs.nearListLoadmore.resetLoadmore())},searchNear(){this.nearLoadingEnd||this.searchNearByPoint({latitude:this.latitude,longitude:this.longitude})},searchNearByPoint(A){this.noNearData=!1,this.nearLoading=!0,d.poiSearchNearBy({point:{latitude:A.latitude,longitude:A.longitude},key:this.userKeyword,sortrule:1,index:this._nearPageIndex,radius:1e3},t=>{this.nearLoading=!1,this._nearPageIndex=t.pageIndex+1,this.nearLoadingEnd=t.pageIndex===t.pageNumber,t.poiList&&t.poiList.length?(this.fixPois(t.poiList),this.nearList=this.nearList.concat(t.poiList),this.fixNearList()):this.noNearData=this.nearList.length===0})},moveToLocation(A){!A||this.mapContext.moveToLocation(z(R({},A),{fail:t=>{h("error","at template/__uniappchooselocation.nvue:419","chooseLocation_moveToLocation",t)}}))},reverseGeocode(A){d.reverseGeocode({point:A},t=>{t.type==="success"&&this._nearPageIndex<=2&&(this.nearList.splice(0,0,{code:t.code,location:A,name:"\u5730\u56FE\u4F4D\u7F6E",address:t.address||""}),this.fixNearList())})},fixNearList(){let A=this.nearList;if(A.length>=2&&A[0].name==="\u5730\u56FE\u4F4D\u7F6E"){let t=this.getAddressStart(A[1]),s=A[0].address;s.startsWith(t)&&(A[0].name=s.substring(t.length))}},onsearchinput(A){var t=A.detail.value.replace(/^\s+|\s+$/g,"");this.clearSearchTimer(),this._searchInputTimer=setTimeout(()=>{clearTimeout(this._searchInputTimer),this._searchPageIndex=1,this.searchEnd=!1,this._searchKeyword=t,this.searchList=[],this.search()},300)},clearSearchTimer(){this._searchInputTimer&&clearTimeout(this._searchInputTimer)},search(){this._searchKeyword.length===0||this._searchEnd||this.searchLoading||(this.searchLoading=!0,this.noSearchData=!1,d[this.searchMethod]({point:{latitude:this.latitude,longitude:this.longitude},key:this._searchKeyword,sortrule:1,index:this._searchPageIndex,radius:5e4},A=>{this.searchLoading=!1,this._searchPageIndex=A.pageIndex+1,this.searchEnd=A.pageIndex===A.pageNumber,A.poiList&&A.poiList.length?(this.fixPois(A.poiList),this.searchList=this.searchList.concat(A.poiList)):this.noSearchData=this.searchList.length===0}))},onSearchListTouchStart(){plus.key.hideSoftKeybord()},onSearchItemClick(A,t){t.stopPropagation(),this.searchSelectedIndex!==A&&(this.searchSelectedIndex=A),this.moveToLocation(this.searchList[A]&&this.searchList[A].location)},getAddressStart(A){let t=A.addressOrigin||A.address;return A.province+(A.province===A.city?"":A.city)+(/^\d+$/.test(A.district)||t.startsWith(A.district)?"":A.district)},fixPois(A){for(var t=0;t{if(a.ok){let o=a.data.detail.points[0];t({latitude:o.lat,longitude:o.lng})}})},formatDistance(A){return A>100?`${A>1e3?(A/1e3).toFixed(1)+"k":A.toFixed(0)}m | `:A>0?"100m\u5185 | ":""}}};function Z(A,t,s,r,a,o){return(0,e.openBlock)(),(0,e.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,e.createElementVNode)("view",{class:"page flex-c"},[(0,e.createElementVNode)("view",{class:"flex-r map-view"},[(0,e.createElementVNode)("map",{class:"map flex-fill",ref:"map1",scale:a.mapScale,showLocation:a.showLocation,longitude:a.longitude,latitude:a.latitude,onRegionchange:t[0]||(t[0]=(...i)=>o.onregionchange&&o.onregionchange(...i)),style:(0,e.normalizeStyle)("height:"+a.mapHeight+"px")},[(0,e.createElementVNode)("div",{class:"map_center_marker_container"},[(0,e.createElementVNode)("u-image",{class:"map_center_marker",src:a.positionIcon},null,8,["src"])])],44,["scale","showLocation","longitude","latitude"]),(0,e.createElementVNode)("view",{class:"map-location flex-c a-i-c j-c-c",onClick:t[1]||(t[1]=i=>o.getUserLocation())},[(0,e.createElementVNode)("u-text",{class:(0,e.normalizeClass)(["unichooselocation-icons map-location-text",{"map-location-text-active":a.isUserLocation}])},"\uEC32",2)]),(0,e.createElementVNode)("view",{class:"nav-cover"},[(0,e.createElementVNode)("view",{class:"statusbar",style:(0,e.normalizeStyle)("height:"+a.statusBarHeight+"px")},null,4),(0,e.createElementVNode)("view",{class:"title-view flex-r"},[(0,e.createElementVNode)("view",{class:"btn-cancel",onClick:t[2]||(t[2]=(...i)=>o.cancelClick&&o.cancelClick(...i))},[(0,e.createElementVNode)("u-text",{class:"unichooselocation-icons btn-cancel-text"},"\uE61C")]),(0,e.createElementVNode)("view",{class:"flex-fill"}),(0,e.createElementVNode)("view",{class:(0,e.normalizeClass)(["btn-done flex-r a-i-c j-c-c",{"btn-done-disabled":o.disableOK}]),onClick:t[3]||(t[3]=(...i)=>o.doneClick&&o.doneClick(...i))},[(0,e.createElementVNode)("u-text",{class:(0,e.normalizeClass)(["text-done",{"text-done-disabled":o.disableOK}])},(0,e.toDisplayString)(A.localize("done")),3)],2)])])]),(0,e.createElementVNode)("view",{class:(0,e.normalizeClass)(["flex-c result-area",{"searching-area":a.showSearch}])},[(0,e.createElementVNode)("view",{class:"search-bar"},[(0,e.createElementVNode)("view",{class:"search-area flex-r a-i-c",onClick:t[4]||(t[4]=(...i)=>o.showSearchView&&o.showSearchView(...i))},[(0,e.createElementVNode)("u-text",{class:"search-icon unichooselocation-icons"},"\uE60A"),(0,e.createElementVNode)("u-text",{class:"search-text"},(0,e.toDisplayString)(A.localize("search_tips")),1)])]),a.noNearData?(0,e.createCommentVNode)("v-if",!0):((0,e.openBlock)(),(0,e.createElementBlock)("list",{key:0,ref:"nearListLoadmore",class:"flex-fill list-view",loadmoreoffset:"5",scrollY:!0,onLoadmore:t[5]||(t[5]=i=>o.searchNear())},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.nearList,(i,n)=>((0,e.openBlock)(),(0,e.createElementBlock)("cell",{key:i.uid},[(0,e.createElementVNode)("view",{class:"list-item",onClick:l=>o.onItemClick(n,l)},[(0,e.createElementVNode)("view",{class:"flex-r"},[(0,e.createElementVNode)("view",{class:"list-text-area flex-fill flex-c"},[(0,e.createElementVNode)("u-text",{class:"list-name"},(0,e.toDisplayString)(i.name),1),(0,e.createElementVNode)("u-text",{class:"list-address"},(0,e.toDisplayString)(o.formatDistance(i.distance))+(0,e.toDisplayString)(i.address),1)]),n===a.nearSelectedIndex?((0,e.openBlock)(),(0,e.createElementBlock)("view",{key:0,class:"list-icon-area flex-r a-i-c j-c-c"},[(0,e.createElementVNode)("u-text",{class:"unichooselocation-icons list-selected-icon"},"\uE651")])):(0,e.createCommentVNode)("v-if",!0)]),(0,e.createElementVNode)("view",{class:"list-line"})],8,["onClick"])]))),128)),a.nearLoading?((0,e.openBlock)(),(0,e.createElementBlock)("cell",{key:0},[(0,e.createElementVNode)("view",{class:"loading-view flex-c a-i-c j-c-c"},[(0,e.createElementVNode)("loading-indicator",{class:"loading-icon",animating:!0,arrow:"false"})])])):(0,e.createCommentVNode)("v-if",!0)],544)),a.noNearData?((0,e.openBlock)(),(0,e.createElementBlock)("view",{key:1,class:"flex-fill flex-r a-i-c j-c-c"},[(0,e.createElementVNode)("u-text",{class:"no-data"},(0,e.toDisplayString)(A.localize("no_found")),1)])):(0,e.createCommentVNode)("v-if",!0),a.showSearch?((0,e.openBlock)(),(0,e.createElementBlock)("view",{key:2,class:"search-view flex-c"},[(0,e.createElementVNode)("view",{class:"search-bar flex-r a-i-c"},[(0,e.createElementVNode)("view",{class:"search-area flex-fill flex-r"},[(0,e.createElementVNode)("u-input",{focus:!0,onInput:t[6]||(t[6]=(...i)=>o.onsearchinput&&o.onsearchinput(...i)),class:"search-input flex-fill",placeholder:A.localize("search_tips")},null,40,["placeholder"])]),(0,e.createElementVNode)("u-text",{class:"search-cancel",onClick:t[7]||(t[7]=(...i)=>o.hideSearchView&&o.hideSearchView(...i))},(0,e.toDisplayString)(A.localize("cancel")),1)]),(0,e.createElementVNode)("view",{class:"search-tab"},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(o.searchMethods,(i,n)=>((0,e.openBlock)(),(0,e.createElementBlock)("u-text",{onClick:l=>a.searchMethod=a.searchLoading?a.searchMethod:i.method,key:n,class:(0,e.normalizeClass)([{"search-tab-item-active":i.method===a.searchMethod},"search-tab-item"])},(0,e.toDisplayString)(i.title),11,["onClick"]))),128))]),a.noSearchData?(0,e.createCommentVNode)("v-if",!0):((0,e.openBlock)(),(0,e.createElementBlock)("list",{key:0,class:"flex-fill list-view",enableBackToTop:!0,scrollY:!0,onLoadmore:t[8]||(t[8]=i=>o.search()),onTouchstart:t[9]||(t[9]=(...i)=>o.onSearchListTouchStart&&o.onSearchListTouchStart(...i))},[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(a.searchList,(i,n)=>((0,e.openBlock)(),(0,e.createElementBlock)("cell",{key:i.uid},[(0,e.createElementVNode)("view",{class:"list-item",onClick:l=>o.onSearchItemClick(n,l)},[(0,e.createElementVNode)("view",{class:"flex-r"},[(0,e.createElementVNode)("view",{class:"list-text-area flex-fill flex-c"},[(0,e.createElementVNode)("u-text",{class:"list-name"},(0,e.toDisplayString)(i.name),1),(0,e.createElementVNode)("u-text",{class:"list-address"},(0,e.toDisplayString)(o.formatDistance(i.distance))+(0,e.toDisplayString)(i.address),1)]),n===a.searchSelectedIndex?((0,e.openBlock)(),(0,e.createElementBlock)("view",{key:0,class:"list-icon-area flex-r a-i-c j-c-c"},[(0,e.createElementVNode)("u-text",{class:"unichooselocation-icons list-selected-icon"},"\uE651")])):(0,e.createCommentVNode)("v-if",!0)]),(0,e.createElementVNode)("view",{class:"list-line"})],8,["onClick"])]))),128)),a.searchLoading?((0,e.openBlock)(),(0,e.createElementBlock)("cell",{key:0},[(0,e.createElementVNode)("view",{class:"loading-view flex-c a-i-c j-c-c"},[(0,e.createElementVNode)("loading-indicator",{class:"loading-icon",animating:!0})])])):(0,e.createCommentVNode)("v-if",!0)],32)),a.noSearchData?((0,e.openBlock)(),(0,e.createElementBlock)("view",{key:1,class:"flex-fill flex-r j-c-c"},[(0,e.createElementVNode)("u-text",{class:"no-data no-data-search"},(0,e.toDisplayString)(A.localize("no_found")),1)])):(0,e.createCommentVNode)("v-if",!0)])):(0,e.createCommentVNode)("v-if",!0)],2)])])}var c=b(V,[["render",Z],["styles",[H]]]);var g=plus.webview.currentWebview();if(g){let A=parseInt(g.id),t="template/__uniappchooselocation",s={};try{s=JSON.parse(g.__query__)}catch(a){}c.mpType="page";let r=Vue.createPageApp(c,{$store:getApp({allowDefault:!0}).$store,__pageId:A,__pagePath:t,__pageQuery:s});r.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...c.styles||[]])),r.mount("#root")}})(); diff --git a/unpackage/dist/dev/app-plus/__uniapperror.png b/unpackage/dist/dev/app-plus/__uniapperror.png new file mode 100644 index 0000000..4743b25 Binary files /dev/null and b/unpackage/dist/dev/app-plus/__uniapperror.png differ diff --git a/unpackage/dist/dev/app-plus/__uniappopenlocation.js b/unpackage/dist/dev/app-plus/__uniappopenlocation.js new file mode 100644 index 0000000..cd98190 --- /dev/null +++ b/unpackage/dist/dev/app-plus/__uniappopenlocation.js @@ -0,0 +1,32 @@ +"use weex:vue"; + +if (typeof Promise !== 'undefined' && !Promise.prototype.finally) { + Promise.prototype.finally = function(callback) { + const promise = this.constructor + return this.then( + value => promise.resolve(callback()).then(() => value), + reason => promise.resolve(callback()).then(() => { + throw reason + }) + ) + } +}; + +if (typeof uni !== 'undefined' && uni && uni.requireGlobal) { + const global = uni.requireGlobal() + ArrayBuffer = global.ArrayBuffer + Int8Array = global.Int8Array + Uint8Array = global.Uint8Array + Uint8ClampedArray = global.Uint8ClampedArray + Int16Array = global.Int16Array + Uint16Array = global.Uint16Array + Int32Array = global.Int32Array + Uint32Array = global.Uint32Array + Float32Array = global.Float32Array + Float64Array = global.Float64Array + BigInt64Array = global.BigInt64Array + BigUint64Array = global.BigUint64Array +}; + + +(()=>{var B=Object.create;var m=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var P=Object.getPrototypeOf,Q=Object.prototype.hasOwnProperty;var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var E=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of w(t))!Q.call(e,o)&&o!==a&&m(e,o,{get:()=>t[o],enumerable:!(n=b(t,o))||n.enumerable});return e};var O=(e,t,a)=>(a=e!=null?B(P(e)):{},E(t||!e||!e.__esModule?m(a,"default",{value:e,enumerable:!0}):a,e));var f=I((L,C)=>{C.exports=Vue});var d={data(){return{locale:"en",fallbackLocale:"en",localization:{en:{done:"OK",cancel:"Cancel"},zh:{done:"\u5B8C\u6210",cancel:"\u53D6\u6D88"},"zh-hans":{},"zh-hant":{},messages:{}},localizationTemplate:{}}},onLoad(){this.initLocale()},created(){this.initLocale()},methods:{initLocale(){if(this.__initLocale)return;this.__initLocale=!0;let e=(plus.webview.currentWebview().extras||{}).data||{};if(e.messages&&(this.localization.messages=e.messages),e.locale){this.locale=e.locale.toLowerCase();return}let t={chs:"hans",cn:"hans",sg:"hans",cht:"hant",tw:"hant",hk:"hant",mo:"hant"},a=plus.os.language.toLowerCase().split("/")[0].replace("_","-").split("-"),n=a[1];n&&(a[1]=t[n]||n),a.length=a.length>2?2:a.length,this.locale=a.join("-")},localize(e){let t=this.locale,a=t.split("-")[0],n=this.fallbackLocale,o=s=>Object.assign({},this.localization[s],(this.localizationTemplate||{})[s]);return o("messages")[e]||o(t)[e]||o(a)[e]||o(n)[e]||e}}},h={onLoad(){this.initMessage()},methods:{initMessage(){let{from:e,callback:t,runtime:a,data:n={},useGlobalEvent:o}=plus.webview.currentWebview().extras||{};this.__from=e,this.__runtime=a,this.__page=plus.webview.currentWebview().id,this.__useGlobalEvent=o,this.data=JSON.parse(JSON.stringify(n)),plus.key.addEventListener("backbutton",()=>{typeof this.onClose=="function"?this.onClose():plus.webview.currentWebview().close("auto")});let s=this,r=function(l){let A=l.data&&l.data.__message;!A||s.__onMessageCallback&&s.__onMessageCallback(A.data)};if(this.__useGlobalEvent)weex.requireModule("globalEvent").addEventListener("plusMessage",r);else{let l=new BroadcastChannel(this.__page);l.onmessage=r}},postMessage(e={},t=!1){let a=JSON.parse(JSON.stringify({__message:{__page:this.__page,data:e,keep:t}})),n=this.__from;if(this.__runtime==="v8")this.__useGlobalEvent?plus.webview.postMessageToUniNView(a,n):new BroadcastChannel(n).postMessage(a);else{let o=plus.webview.getWebviewById(n);o&&o.evalJS(`__plusMessage&&__plusMessage(${JSON.stringify({data:a})})`)}},onMessage(e){this.__onMessageCallback=e}}};var i=O(f());var v=(e,t)=>{let a=e.__vccOpts||e;for(let[n,o]of t)a[n]=o;return a};var x={page:{"":{flex:1}},"flex-r":{"":{flexDirection:"row",flexWrap:"nowrap"}},"flex-c":{"":{flexDirection:"column",flexWrap:"nowrap"}},"flex-fill":{"":{flex:1}},"a-i-c":{"":{alignItems:"center"}},"j-c-c":{"":{justifyContent:"center"}},target:{"":{paddingTop:10,paddingBottom:10}},"text-area":{"":{paddingLeft:10,paddingRight:10,flex:1}},name:{"":{fontSize:16,lines:1,textOverflow:"ellipsis"}},address:{"":{fontSize:14,color:"#808080",lines:1,textOverflow:"ellipsis",marginTop:2}},"goto-area":{"":{width:50,height:50,paddingTop:8,paddingRight:8,paddingBottom:8,paddingLeft:8,backgroundColor:"#007aff",borderRadius:50,marginRight:10}},"goto-icon":{"":{width:34,height:34}},"goto-text":{"":{fontSize:14,color:"#FFFFFF"}}},z={mixins:[h,d],data(){return{bottom:"0px",longitude:"",latitude:"",markers:[],name:"",address:"",localizationTemplate:{en:{"map.title.amap":"AutoNavi Maps","map.title.baidu":"Baidu Maps","map.title.tencent":"Tencent Maps","map.title.apple":"Apple Maps","map.title.google":"Google Maps","location.title":"My Location","select.cancel":"Cancel"},zh:{"map.title.amap":"\u9AD8\u5FB7\u5730\u56FE","map.title.baidu":"\u767E\u5EA6\u5730\u56FE","map.title.tencent":"\u817E\u8BAF\u5730\u56FE","map.title.apple":"\u82F9\u679C\u5730\u56FE","map.title.google":"\u8C37\u6B4C\u5730\u56FE","location.title":"\u6211\u7684\u4F4D\u7F6E","select.cancel":"\u53D6\u6D88"}},android:weex.config.env.platform.toLowerCase()==="android"}},onLoad(){let e=this.data;if(this.latitude=e.latitude,this.longitude=e.longitude,this.name=e.name||"",this.address=e.address||"",!this.android){let t=plus.webview.currentWebview().getSafeAreaInsets();this.bottom=t.bottom+"px"}},onReady(){this.mapContext=this.$refs.map1,this.markers=[{id:"location",latitude:this.latitude,longitude:this.longitude,title:this.name,zIndex:"1",iconPath:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAABICAMAAACORiZjAAAByFBMVEUAAAD/PyL/PyL/PyL/PyL/PyL/PyL/PyL/PyL/PiL/PyL/PyL/PyP/PyL/PyL/PyL/PyL/PiL/PyL8PiP/PyL4OyP/PyL3OyX9Pyb0RUP0RkPzOiXsPj3YLi7TKSnQJiX0RkTgMCj0QjvkNC3vPDPwOy/9PyXsNSTyRUTgNDPdMjHrPTzuQD7iNTTxQ0HTJyTZKyf1RULlNjDZKyTfLSLeLSX0Qzz3Qzv8PSTMJCTmOjnPJSXLIiLzRkXWLCvgNDPZLyzVKijRJSTtPzvcMS7jNjPZLCnyREHpOzjiNDDtPzvzQz/VKSXkNTDsPDXyQjz2RT7pMyTxOinjMST5QjTmOjnPJSLdLyr0RD//YF7/////R0b/Tk3/XVv/WFb/VVP/S0v/Pz//W1n/UVD/REP/Xlz/Ojr/QUH/Skn/U1L/ODf7VlX5UU/oOzrqNzf/+/v5UlHvQUD2TEv0SUj3Tk3/2dn8W1r6TEv7R0b7REPvPTzzPDvwNjXkMjLnMDDjLS3dKir/xcX/vr7/qqn/pqX/mZn/fn7/ZWT/8PD/4eH/3t3/zs7/ra3/kpL/iIj/e3r5PDz4NjbxMTHsMTDlLCz/9vb/6ej/ubjhOGVRAAAAWXRSTlMABQ4TFgoIHhApI0RAGhgzJi89Ozg2LVEg4s5c/v366tmZiYl2X0pE/vn08eTe1sWvqqiOgXVlUE399/b08u3n4tzZ1dTKyMTDvLmzqqKal35taFxH6sC3oms+ongAAAOtSURBVEjHjZV3W9pQGMXJzQACQRARxVF3HdVW26od7q111NqhdbRSbQVElnvvbV1tv25Jgpr3kpCcP+/7/J5z8p57QScr4l46jSJohEhKEGlANKGBYBA1NFDpyklPz3FV5tWwHKnGEbShprIuFPAujEW14A2E6nqqWYshEcYYqnNC3mEgbyh9wMgZGCUbZHZFFobjtODLKWQpRMgyhrxiiQtwK/6SqpczY/QdvqlhJflcZpZk4hiryzecQIH0IitFY0xaBWDkqCEr9CLIDsDIJqywswbpNlB/ZEpVkZ4kPZKEqwmOTakrXGCk6IdwFYExDfI+SX4ISBeExjQp0m/jUMyIeuLVBo2Xma0kIRpVhyc1Kpxn42hxdd2BuOnv3Z2d3YO4Y29LCitcQiItcxxH5kcEncRhmc5UiofowuJxqPO5kZjm9rFROC9JWAXqC8HBgciI1AWcRbqj+fgX0emDg+MRif5OglmgJdlIEvzCJ8D5xQjQORhOlJlTKR4qmwD6B6FtOJ012yyMjrHMwuNTCM1jUG2SHDQPoWMMciZxdBR6PQOOtyF0ikEmEfrom5FqH0J7YOh+LUAE1bbolmrqj5SZOwTDxXJTdBFRqCrsBtoHRnAW7hRXThYE3VA7koVjo2CfUK4O2WdHodx7c7FsZ25sNDtotxp4SF++OIrpcHf+6Ojk7BA/X2wwOfRIeLj5wVGNClYJF4K/sY4SrVBJhj323hHXG/ymScEu091PH0HaS5e0MEslGeLuBCt9fqYWKLNXNIpZGcuXfqlqqaHWLhrFrLpWvqpqpU1ixFs9Ll1WY5ZLo19ECUb3X+VXg/y5wEj4qtYVlXCtRdIvErtyZi0nDJc1aLZxCPtrZ3P9PxLIX2Vy8P8zQAxla1xVZlYba6NbYAAi7KIwSxnKKjDHtoAHfOb/qSD/Z1OKEA4XbXHUr8ozq/XOZKOFxgkx4Mv177Jaz4fhQFnWdr8c4283pVhBRSDg4+zLeOYyu9CcCsIBK5T2fF0mXK7JkYaAEaAoY9Mazqw1FdnBRcWFuA/ZGDOd/R7eH7my3m1MA208k60I3ibHozUps/bICe+PQllbUmjrBaxIqaynG5JwT5UrgmW9ubpjrt5kJMOKlMvavIM2o08cVqRcVvONyNw0Y088YVmvPIJeqVUEy9rkmU31imBZ1x7PNV6RelkeD16Relmfbm81VQTLevs2A74iDWXpXzznwwEj9YCszcbCcOqiSY4jYTh1Jx1B04o+/wH6/wOSPFj1xgAAAABJRU5ErkJggg==",width:26,height:36}],this.updateMarker()},methods:{goto(){var e=weex.config.env.platform==="iOS";this.openSysMap(this.latitude,this.longitude,this.name,e)},updateMarker(){this.mapContext.moveToLocation(),this.mapContext.translateMarker({markerId:"location",destination:{latitude:this.latitude,longitude:this.longitude},duration:0},e=>{})},openSysMap(e,t,a,n){let o=weex.requireModule("mapSearch");var s=[{title:this.localize("map.title.tencent"),getUrl:function(){var A;return A="https://apis.map.qq.com/uri/v1/routeplan?type=drive&to="+encodeURIComponent(a)+"&tocoord="+encodeURIComponent(e+","+t)+"&referer=APP",A}},{title:this.localize("map.title.google"),getUrl:function(){var A;return A="https://www.google.com/maps/?daddr="+encodeURIComponent(a)+"&sll="+encodeURIComponent(e+","+t),A}}],r=[{title:this.localize("map.title.amap"),pname:"com.autonavi.minimap",action:n?"iosamap://":"amapuri://",getUrl:function(){var A;return n?A="iosamap://path":A="amapuri://route/plan/",A+="?sourceApplication=APP&dname="+encodeURIComponent(a)+"&dlat="+e+"&dlon="+t+"&dev=0",A}},{title:this.localize("map.title.baidu"),pname:"com.baidu.BaiduMap",action:"baidumap://",getUrl:function(){var A="baidumap://map/direction?destination="+encodeURIComponent("latlng:"+e+","+t+"|name:"+a)+"&mode=driving&src=APP&coord_type=gcj02";return A}},{title:this.localize("map.title.tencent"),pname:"com.tencent.map",action:"qqmap://",getUrl:()=>{var A;return A="qqmap://map/routeplan?type=drive"+(n?"&from="+encodeURIComponent(this.localize("location.title")):"")+"&to="+encodeURIComponent(a)+"&tocoord="+encodeURIComponent(e+","+t)+"&referer=APP",A}},{title:this.localize("map.title.google"),pname:"com.google.android.apps.maps",action:"comgooglemapsurl://",getUrl:function(){var A;return n?A="comgooglemapsurl://maps.google.com/":A="https://www.google.com/maps/",A+="?daddr="+encodeURIComponent(a)+"&sll="+encodeURIComponent(e+","+t),A}}],l=[];r.forEach(function(A){var g=plus.runtime.isApplicationExist({pname:A.pname,action:A.action});g&&l.push(A)}),n&&l.unshift({title:this.localize("map.title.apple"),navigateTo:function(){o.openSystemMapNavigation({longitude:t,latitude:e,name:a})}}),l.length===0&&(l=l.concat(s)),plus.nativeUI.actionSheet({cancel:this.localize("select.cancel"),buttons:l},function(A){var g=A.index,c;g>0&&(c=l[g-1],c.navigateTo?c.navigateTo():plus.runtime.openURL(c.getUrl(),function(){},c.pname))})}}};function R(e,t,a,n,o,s){return(0,i.openBlock)(),(0,i.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,i.createElementVNode)("view",{class:"page flex-c",style:(0,i.normalizeStyle)({paddingBottom:o.bottom})},[(0,i.createElementVNode)("map",{class:"flex-fill map",ref:"map1",longitude:o.longitude,latitude:o.latitude,markers:o.markers},null,8,["longitude","latitude","markers"]),(0,i.createElementVNode)("view",{class:"flex-r a-i-c target"},[(0,i.createElementVNode)("view",{class:"text-area"},[(0,i.createElementVNode)("u-text",{class:"name"},(0,i.toDisplayString)(o.name),1),(0,i.createElementVNode)("u-text",{class:"address"},(0,i.toDisplayString)(o.address),1)]),(0,i.createElementVNode)("view",{class:"goto-area",onClick:t[0]||(t[0]=(...r)=>s.goto&&s.goto(...r))},[(0,i.createElementVNode)("u-image",{class:"goto-icon",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADIEAYAAAD9yHLdAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAASAAAAEgARslrPgAADzVJREFUeNrt3WmMFMUfxvGqRREjEhXxIAooUQTFGPGIeLAcshoxRhM1Eu+YjZGIJh4vTIzHC1GJiiCeiUckEkWDVzxQxHgRvNB4LYiigshyxFXYg4Bb/xfPv1YbFpjtnZmq7v5+3vxSs8vOr4vpfqZ6pmeMAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMKwoRtAtjnnnHN77KHR2LGqhx327y8YZ9zSpcYaa+z8+dZaa21LS+i+AQCBKDgmTVJdv96VZN06/+9C9w8AqBId+K1Vfeih0gJjZ/zfsayEASBvksExbVp5gmNrjz5KkABATlQnOAgSAMiNMMFBkABAZsURHAQJAGRGnMFBkABAtLIRHAQJAEQjm8FBkABAMPkIDoIEAKomn8FBkABAxRQjOAgSACibYgYHQQIAqREcnSFIAGC7/AFSleDoHEECAB38AVGV4CgNQQKgwPwBUJXgSIcgAVAg/oCnSnCUB0ECIMf8AU6V4KgMggRAjvgDmirBUR0ECYAM8wcw1ViCY/PmfN3Pzvh5J0gAZIA/YCUPYKE1NqpOmlSd+6uvV/3999BbLqxIAETMH6BUYwuOI49Ura2tzv36+xkyRJUgAYBt+AOSanzBkeyzegGSvF+CBAA6+AOQarzBkey3+gGSvH+CBECB+QOOavzBkew7XIAk+yBIABSIP8CoZic4kv2HD5BkPwQJgBzzBxTV7AVHcjviCZBkXwQJgBzxBxDV7AZHcnviC5BkfwQJgAzzBwzV7AdHcrviDZBknwQJgAzxBwjV/ARHcvviD5BkvwQJgIj5A4Jq/oIjuZ3ZCZBk3wQJgIj4A4BqfoMjub3ZC5Bk/wQJgID8Dq+a/+BIbnd2AyS5HQQJgCryO7hqcYIjuf3ZD5Dk9hAkACrI79CqxQuO5DzkJ0CS20WQACgjvwOrFjc4kvORvwBJbh9BAqAb/A6rSnAk5yW/AZLcToIEQBf4HVSV4Oh8fvIfIMntJUgA7IDfIVUJjh3PU3ECJLndBAmA//A7oCrBUdp8FS9AkttPkACF5nc4VYKja/NW3ABJzgNBAhSK38FUCY5080eAJOeDIAFyze9QqgRH9+aRAOl8XggSIFf8DqRKcJRnPgmQHc8PQQJkmt9hVAmO8s4rAVLaPBEkQKb4HUSV4KjM/BIgXZsvggSImt8hVAmOys4zAZJu3ggSICp+B1AlOKoz3wRI9+aPIAGC8g94VYKjuvNOgJRnHgkSoKr8A1yV4Agz/wRIeeeTIAGqQg/su+8OvYvJH3+oDh0ael6qO/8ESGXmdejQ5OMqtClTQs8LUBau3bW79rPPDr1LSfGCo+P/wTlHgFR6fiMKknbX7tonTAg9L8iGmtANbJc11tjbbw/bxOrVqmPGWGuttT/8EHpakC/Jx9WYMar+cRfKbbeFvX9kRXQBoqdB/ftrdOyxYbogOFBd0QSJNdbYESO0Hx5wQOh5QdyiCxAZMCDM/RIcCCuOIPEvpg8aFHo+ELf4AsQZZ1xra3XvlOBAXIIHiTPOuObm0POAuMUXIMYYYxoaVDdsqOz9rFmjOm4cwYEYJR+X/k0Gq1ZV9l43blRdujT09iNu0QWIrbE1tmbTJo1mz67MvfhncrW12kG/+y70dgM7osfpkiUajRunWqkVyaxZyf0QyBj/Ip7qypXleY9icd+Om5Z/e2113kNavLfxpuUfx8nHdXetXKm38e6/f+jtQzZEtwLx9IzLP8Oqq1NdvrzLf8gZZ1xDg+ppp3GqCnnQ8Tj+/+Nat/oVShc444z7+WcN6uq08mhsDL19QFnpmVHv3nqmdPPNGn/2merGjbp9wwbVTz5Rve461d13D91/VrECyQb/OFe9/nrtFwsXduwXif1k0SKNb7pJ4z32CN0/gBwiQABsT7SnsAAAcSNAAACpECAAgFQIEABAKgQIACAVAgQAkAoBAgBIhQABAKRCgAAAUiFAAACpECAAgFQIEABAKgQIACAVAgQAkAoBAgBIhQABAKRCgAAAUiFAAACpECAAgFQIEABAKgQIACAVAgQAkAoBAgBIhQABAKRCgAAAUiFAAACpECAAgFQIEABAKgQIACAVAgQAkMouoRsAgFBcu2t37b17a9S3r7HGGtu3r3HGGbfvvsnxf35ujDFmn31Ue/VK/tU+ffT7PXro963VeK+9On7FGmtsW5tub2jQjc8/b2tsja35/PPQ81IqAgRAZjnnnHN7760D8eDBunXQIB2gBw7U2NdDDun4eeL2Pffc5g9bY43dwXhnSv331lhjJ0zQ4MYbtT3PPadxfb211lrb3Bx6nreHAAEQDa0IevbUgXXYMAXDUUdpPHy4xsOHa3zUUfpXBx/c5QN81CZOVD3wQM1HXZ1WJps3h+5sawQIgKrRM+zBgxUEI0fqwD9ypH7q67Bhqrvs0u2VQKaNHq3tnTxZ4/vuC93R1ggQAN2mYKipUTCMGKFbR43SAfDkkzU+6STV/fcvVhB01/XXa37vv1+ntJwL3ZFHgAAomU6p9OunABg/Xreeeabq+PG6vV+/0H3my0EHJV/jWbYsdEceAQJgG3rGe8wxGp13nuoZZ6j6FUYNlwFUSyKYCRAAEVBQHHmkRhdcoHrhhapDhoTuD/+1Zk3oDrZGgAAF0PHitTHm33f5+MDw72ZCnFasUP3559CdbI0AAXJEQdGjh86Zjx6tW+vrVf2pqB49QveJrnjggdhePPcIECDDFBiHHqrAuOoq3XrFFTpnfsABoftDSs444957T4MZM0K3sz0ECJAhCozaWh1gbr5Zt9bVKTB4UTvb/Apj1iz9f159tVYeW7aE7mx7CBAgQh3XVRhjjDn3XFUfGCecwHUUgTnjjGtu1v9Dc7PGGzdq/Oefnf++D4imJv1ea6vG33+vOmeOAuOLL0JvXqkIECACur5it900uvRS1RtvVD388ND9ZVtbm+qvv3ZUZ5xxv/2mA/mKFRqvWqXx2rX6vbVrdfu6dcnbm5r00SLxvSZRbQQIEEDHi93GGGMuu0z19ttVDz44dH9xa2xU/fpr1R9+UF2ypKM644xbulQH+pUrQ3ecVwQIUEUKjnPO0eiuu1T9Zz8Vnb/OYeFC1U8/VV28WPWrr3SK548/QncKIUCACtKpqVNP1SmQe+7Rrf4zoQrEGWfcTz9pHubP1/ijj/TDhQu1UojnCmuUhgABykgrjP79Nbr/flV/ZXfeNTWpzpungHjnHR8YCojly0N3iPIiQIBu0ArDf+z4pEm69c47Vfv0Cd1fZSxbpoB47TVt9+uva/zhh7F+bwUqgwABUtBKw3+o4COPqB5/fOi+yst/hMbcuQqIOXMUEP7UE4qOAAFKoMDYfXeN7r1X9ZprVLN+Ad9ff6nOnq36zDOqixbF+hEaiAMBAuxAcqXx7LOqQ4eG7ivt1qi+/75WFE8+qVNQL72koPAXtgGlIUCA/0heAX7ttap+xdGzZ+j+usZfQDdnjgJj6lSdgvrmm9CdIR8IEMD4F8MHDtRo1izVU04J3VfXrFqloJg2TSuLJ57QysK/OwooLwIEhaYVx6hRGr3wgup++4XuqzT+bbEPPqj6+ONaYXAqCtVBgKBQFBjW6pn6DTfo1rvvVo34ezKcccb5LxS67TatMGbP1grjn39Ct4diIkBQCAqOXr00euwxHYD9hxbGyn943333qU6bphXGpk2hOwOMIUCQc3ptw3844euvqx59dOi+OudPPU2dqnrPPVphtLSE7gzoDAGCXNKK44gjNHr7bdUBA0L31TkfbJMnKzD4yA9kAwGCXNGK47jjNHrjDdV+/UL3lbR8uV7TuPpqnZKaNy90R0AaGb+CFhCtOMaM0Wsb/rukYwkO/5Wk06crOI4+muBAHrACQaYpOM47TyP/URyxXPC3dKkC45JLFBj++y2AfGAFgkzSqarTT9fouedUYwmOZ59VcIwYQXAgz1iBIFO04qit1eiVV1T9d4mH8uefCozLLlNgvPZa2H6A6iBAkAlacZx4okavvqrqPx03REPGGbd4sV5zOf98BcdPP4WeJ6CaOIWFqCk4hg/XgfrNN3XrnnuG7eqpp9TPyJF62y3BgWIiQBAlnarq21ejuXNV9947VDeqd9yhwLjySlX/abdAMXEKC1HRimPXXXWK6MUX9Ux/8ODqN2Kccc3Nuv+LL1ZgvPxy6PkBYkKAIC7WWGP9p8v6F8urralJfUyYoOD4+OPQ0wLEiABBROrrVS+6KMz9r1mjWlen4Pjqq9AzAsSMAEFEQgVHY6Nqba2Co6Eh9EwAWcCL6Cgw/019Z55JcABdR4CggHxwjB2r4Fi8OHRHQBYRICiQzZv17qrzz1dwfPll6I6ALCNAUCD19bpi/N13Q3cC5AEBgnxzxhk3ZYpWHE8/HbodIE8IEOTYggW6nuPWW0N3AuQRAYIcWr1adeJErTz++Sd0R0AeESDIkfZ21YsuUnD4IAFQCQQIcmTGDAXH+++H7gQoAgIEOfDjj6q33BK6E6BICBDkwOTJWnm0tITuBCgSAgQZ9uKLCo633grdCVBEBAgyqLVV13fccEPoToAiI0CQLc4442bO1BXlv/0Wuh2gyAgQZIP/hkBjjDFTp4ZuBwABgkx5+GGtPPwXPwEIiQBBBmzZojp9euhOAPyLAEHcnHHGzZ2rlcfKlaHbAfAvAgRxs8YaO3Nm6DYAbIsAQcRWrFD94IPQnQDYFgGCiM2erQsFnQvdCYBtESCIkzPOuDlzQrcBYPsIEMTFGWfcunV67YPvLAdiRoAgLtZYY+fN06kr//0eAGJEgCBC8+eH7gDAzhEgiNCiRaE7ALBzBAgi0tam10CWLAndCYCdI0AQB2eccd9+qyvO/UeXAIgZAYI4WGON9V9NCyALCBBExF95DiALCBDEwRlnHAECZAkBgjhYY41dvz50GwBKR4AgIi0toTsAUDoCBHFwxhnX2hq6DQClI0BQgk2bKn4X1lhj//479JYCKB0BghL8+mtl/77/uPZffgm9pQCAMnPOOec+/9yVW7trd+2ffRZ6+wAAFaID/dlnlz1AnHPOnXVW6O0DAFSYDvhTppRn5XHXXaG3BwBQZUqBK65QbWwsLTVWr1a9/PLQ/QPoPhu6AWSbAqFXL43GjFEdMiT5Ww0NqgsW6Iui2tpC9w0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAyK7/ATO6t9N2I5PTAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTAzLTAxVDExOjQ1OjU1KzA4OjAw5vcxUwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wMy0wMVQxMTo0NTo1NSswODowMJeqie8AAABSdEVYdHN2ZzpiYXNlLXVyaQBmaWxlOi8vL2hvbWUvYWRtaW4vaWNvbi1mb250L3RtcC9pY29uX2lnaGV6d2JubWhiL25hdmlnYXRpb25fbGluZS5zdmc29Ka/AAAAAElFTkSuQmCC"})])])],4)])}var p=v(z,[["render",R],["styles",[x]]]);var u=plus.webview.currentWebview();if(u){let e=parseInt(u.id),t="template/__uniappopenlocation",a={};try{a=JSON.parse(u.__query__)}catch(o){}p.mpType="page";let n=Vue.createPageApp(p,{$store:getApp({allowDefault:!0}).$store,__pageId:e,__pagePath:t,__pageQuery:a});n.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...p.styles||[]])),n.mount("#root")}})(); diff --git a/unpackage/dist/dev/app-plus/__uniapppicker.js b/unpackage/dist/dev/app-plus/__uniapppicker.js new file mode 100644 index 0000000..a654783 --- /dev/null +++ b/unpackage/dist/dev/app-plus/__uniapppicker.js @@ -0,0 +1,33 @@ +"use weex:vue"; + +if (typeof Promise !== 'undefined' && !Promise.prototype.finally) { + Promise.prototype.finally = function(callback) { + const promise = this.constructor + return this.then( + value => promise.resolve(callback()).then(() => value), + reason => promise.resolve(callback()).then(() => { + throw reason + }) + ) + } +}; + +if (typeof uni !== 'undefined' && uni && uni.requireGlobal) { + const global = uni.requireGlobal() + ArrayBuffer = global.ArrayBuffer + Int8Array = global.Int8Array + Uint8Array = global.Uint8Array + Uint8ClampedArray = global.Uint8ClampedArray + Int16Array = global.Int16Array + Uint16Array = global.Uint16Array + Int32Array = global.Int32Array + Uint32Array = global.Uint32Array + Float32Array = global.Float32Array + Float64Array = global.Float64Array + BigInt64Array = global.BigInt64Array + BigUint64Array = global.BigUint64Array +}; + + +(()=>{var D=Object.create;var b=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var M=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty;var V=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var L=(e,t,a,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of x(t))!I.call(e,r)&&r!==a&&b(e,r,{get:()=>t[r],enumerable:!(i=C(t,r))||i.enumerable});return e};var N=(e,t,a)=>(a=e!=null?D(M(e)):{},L(t||!e||!e.__esModule?b(a,"default",{value:e,enumerable:!0}):a,e));var A=V((U,v)=>{v.exports=Vue});var _={data(){return{locale:"en",fallbackLocale:"en",localization:{en:{done:"OK",cancel:"Cancel"},zh:{done:"\u5B8C\u6210",cancel:"\u53D6\u6D88"},"zh-hans":{},"zh-hant":{},messages:{}},localizationTemplate:{}}},onLoad(){this.initLocale()},created(){this.initLocale()},methods:{initLocale(){if(this.__initLocale)return;this.__initLocale=!0;let e=(plus.webview.currentWebview().extras||{}).data||{};if(e.messages&&(this.localization.messages=e.messages),e.locale){this.locale=e.locale.toLowerCase();return}let t={chs:"hans",cn:"hans",sg:"hans",cht:"hant",tw:"hant",hk:"hant",mo:"hant"},a=plus.os.language.toLowerCase().split("/")[0].replace("_","-").split("-"),i=a[1];i&&(a[1]=t[i]||i),a.length=a.length>2?2:a.length,this.locale=a.join("-")},localize(e){let t=this.locale,a=t.split("-")[0],i=this.fallbackLocale,r=n=>Object.assign({},this.localization[n],(this.localizationTemplate||{})[n]);return r("messages")[e]||r(t)[e]||r(a)[e]||r(i)[e]||e}}},k={onLoad(){this.initMessage()},methods:{initMessage(){let{from:e,callback:t,runtime:a,data:i={},useGlobalEvent:r}=plus.webview.currentWebview().extras||{};this.__from=e,this.__runtime=a,this.__page=plus.webview.currentWebview().id,this.__useGlobalEvent=r,this.data=JSON.parse(JSON.stringify(i)),plus.key.addEventListener("backbutton",()=>{typeof this.onClose=="function"?this.onClose():plus.webview.currentWebview().close("auto")});let n=this,c=function(o){let u=o.data&&o.data.__message;!u||n.__onMessageCallback&&n.__onMessageCallback(u.data)};if(this.__useGlobalEvent)weex.requireModule("globalEvent").addEventListener("plusMessage",c);else{let o=new BroadcastChannel(this.__page);o.onmessage=c}},postMessage(e={},t=!1){let a=JSON.parse(JSON.stringify({__message:{__page:this.__page,data:e,keep:t}})),i=this.__from;if(this.__runtime==="v8")this.__useGlobalEvent?plus.webview.postMessageToUniNView(a,i):new BroadcastChannel(i).postMessage(a);else{let r=plus.webview.getWebviewById(i);r&&r.evalJS(`__plusMessage&&__plusMessage(${JSON.stringify({data:a})})`)}},onMessage(e){this.__onMessageCallback=e}}};var s=N(A());var m=(e,t)=>{let a=e.__vccOpts||e;for(let[i,r]of t)a[i]=r;return a};var d=e=>e>9?e:"0"+e;function w({date:e=new Date,mode:t="date"}){return t==="time"?d(e.getHours())+":"+d(e.getMinutes()):e.getFullYear()+"-"+d(e.getMonth()+1)+"-"+d(e.getDate())}var O={data(){return{darkmode:!1,theme:"light"}},onLoad(){this.initDarkmode()},created(){this.initDarkmode()},computed:{isDark(){return this.theme==="dark"}},methods:{initDarkmode(){if(this.__init)return;this.__init=!0;let e=(plus.webview.currentWebview().extras||{}).data||{};this.darkmode=e.darkmode||!1,this.darkmode&&(this.theme=e.theme||"light")}}},z={data(){return{safeAreaInsets:{left:0,right:0,top:0,bottom:0}}},onLoad(){this.initSafeAreaInsets()},created(){this.initSafeAreaInsets()},methods:{initSafeAreaInsets(){if(this.__initSafeAreaInsets)return;this.__initSafeAreaInsets=!0;let e=plus.webview.currentWebview();e.addEventListener("resize",()=>{setTimeout(()=>{this.updateSafeAreaInsets(e)},20)}),this.updateSafeAreaInsets(e)},updateSafeAreaInsets(e){let t=e.getSafeAreaInsets(),a=this.safeAreaInsets;Object.keys(a).forEach(i=>{a[i]=t[i]})}}},Y={content:{"":{position:"absolute",top:0,left:0,bottom:0,right:0}},"uni-mask":{"":{position:"absolute",top:0,left:0,bottom:0,right:0,backgroundColor:"rgba(0,0,0,0.4)",opacity:0,transitionProperty:"opacity",transitionDuration:200,transitionTimingFunction:"linear"}},"uni-mask-visible":{"":{opacity:1}},"uni-picker":{"":{position:"absolute",left:0,bottom:0,right:0,backgroundColor:"#ffffff",color:"#000000",flexDirection:"column",transform:"translateY(295px)"}},"uni-picker-header":{"":{height:45,borderBottomWidth:.5,borderBottomColor:"#C8C9C9",backgroundColor:"#FFFFFF",fontSize:20}},"uni-picker-action":{"":{position:"absolute",textAlign:"center",top:0,height:45,paddingTop:0,paddingRight:14,paddingBottom:0,paddingLeft:14,fontSize:17,lineHeight:45}},"uni-picker-action-cancel":{"":{left:0,color:"#888888"}},"uni-picker-action-confirm":{"":{right:0,color:"#007aff"}},"uni-picker-content":{"":{flex:1}},"uni-picker-dark":{"":{backgroundColor:"#232323"}},"uni-picker-header-dark":{"":{backgroundColor:"#232323",borderBottomColor:"rgba(255,255,255,0.05)"}},"uni-picker-action-cancel-dark":{"":{color:"rgba(255,255,255,0.8)"}},"@TRANSITION":{"uni-mask":{property:"opacity",duration:200,timingFunction:"linear"}}};function S(){if(this.mode===l.TIME)return"00:00";if(this.mode===l.DATE){let e=new Date().getFullYear()-61;switch(this.fields){case h.YEAR:return e;case h.MONTH:return e+"-01";default:return e+"-01-01"}}return""}function E(){if(this.mode===l.TIME)return"23:59";if(this.mode===l.DATE){let e=new Date().getFullYear()+61;switch(this.fields){case h.YEAR:return e;case h.MONTH:return e+"-12";default:return e+"-12-31"}}return""}function F(e){let t=new Date().getFullYear(),a=t-61,i=t+61;if(e.start){let r=new Date(e.start).getFullYear();!isNaN(r)&&ri&&(i=r)}return{start:a,end:i}}var T=weex.requireModule("animation"),l={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date",REGION:"region"},h={YEAR:"year",MONTH:"month",DAY:"day"},g=!1,R={name:"Picker",mixins:[_,z,O],props:{pageId:{type:Number,default:0},range:{type:Array,default(){return[]}},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:l.SELECTOR},fields:{type:String,default:h.DAY},start:{type:String,default:S},end:{type:String,default:E},disabled:{type:[Boolean,String],default:!1},visible:{type:Boolean,default:!1}},data(){return{valueSync:null,timeArray:[],dateArray:[],valueArray:[],oldValueArray:[],fontSize:16,height:261,android:weex.config.env.platform.toLowerCase()==="android"}},computed:{rangeArray(){var e=this.range;switch(this.mode){case l.SELECTOR:return[e];case l.MULTISELECTOR:return e;case l.TIME:return this.timeArray;case l.DATE:{let t=this.dateArray;switch(this.fields){case h.YEAR:return[t[0]];case h.MONTH:return[t[0],t[1]];default:return[t[0],t[1],t[2]]}}}return[]},startArray(){return this._getDateValueArray(this.start,S.bind(this)())},endArray(){return this._getDateValueArray(this.end,E.bind(this)())},textMaxLength(){return Math.floor(Math.min(weex.config.env.deviceWidth,weex.config.env.deviceHeight)/(this.fontSize*weex.config.env.scale+1)/this.rangeArray.length)},maskStyle(){return{opacity:this.visible?1:0,"background-color":this.android?"rgba(0, 0, 0, 0.6)":"rgba(0, 0, 0, 0.4)"}},pickerViewIndicatorStyle(){return`height: 34px;border-color:${this.isDark?"rgba(255, 255, 255, 0.05)":"#C8C9C9"};border-top-width:0.5px;border-bottom-width:0.5px;`},pickerViewColumnTextStyle(){return{fontSize:this.fontSize+"px","line-height":"34px","text-align":"center",color:this.isDark?"rgba(255, 255, 255, 0.8)":"#000"}},pickerViewMaskTopStyle(){return this.isDark?"background-image: linear-gradient(to bottom, rgba(35, 35, 35, 0.95), rgba(35, 35, 35, 0.6));":""},pickerViewMaskBottomStyle(){return this.isDark?"background-image: linear-gradient(to top,rgba(35, 35, 35, 0.95), rgba(35, 35, 35, 0.6));":""}},watch:{value(){this._setValueSync()},mode(){this._setValueSync()},range(){this._setValueSync()},valueSync(){this._setValueArray(),g=!0},valueArray(e){if(this.mode===l.TIME||this.mode===l.DATE){let t=this.mode===l.TIME?this._getTimeValue:this._getDateValue,a=this.valueArray,i=this.startArray,r=this.endArray;if(this.mode===l.DATE){let n=this.dateArray,c=n[2].length,o=Number(n[2][a[2]])||1,u=new Date(`${n[0][a[0]]}/${n[1][a[1]]}/${o}`).getDate();ut(r)&&this._cloneArray(a,r)}e.forEach((t,a)=>{t!==this.oldValueArray[a]&&(this.oldValueArray[a]=t,this.mode===l.MULTISELECTOR&&this.$emit("columnchange",{column:a,value:t}))})},visible(e){e?setTimeout(()=>{T.transition(this.$refs.picker,{styles:{transform:"translateY(0)"},duration:200})},20):T.transition(this.$refs.picker,{styles:{transform:`translateY(${283+this.safeAreaInsets.bottom}px)`},duration:200})}},created(){this._createTime(),this._createDate(),this._setValueSync()},methods:{getTexts(e,t){let a=this.textMaxLength;return e.map(i=>{let r=String(typeof i=="object"?i[this.rangeKey]||"":this._l10nItem(i,t));if(a>0&&r.length>a){let n=0,c=0;for(let o=0;o127||u===94?n+=1:n+=.65,n<=a-1&&(c=o),n>=a)return o===r.length-1?r:r.substr(0,c+1)+"\u2026"}}return r||" "}).join(` +`)},_createTime(){var e=[],t=[];e.splice(0,e.length);for(let a=0;a<24;a++)e.push((a<10?"0":"")+a);t.splice(0,t.length);for(let a=0;a<60;a++)t.push((a<10?"0":"")+a);this.timeArray.push(e,t)},_createDate(){var e=[],t=F(this);for(let r=t.start,n=t.end;r<=n;r++)e.push(String(r));var a=[];for(let r=1;r<=12;r++)a.push((r<10?"0":"")+r);var i=[];for(let r=1;r<=31;r++)i.push((r<10?"0":"")+r);this.dateArray.push(e,a,i)},_getTimeValue(e){return e[0]*60+e[1]},_getDateValue(e){return e[0]*31*12+(e[1]||0)*31+(e[2]||0)},_cloneArray(e,t){for(let a=0;ac?0:n)}break;case l.TIME:case l.DATE:this.valueSync=String(e);break;default:{let a=Number(e);this.valueSync=a<0?0:a;break}}this.$nextTick(()=>{!g&&this._setValueArray()})},_setValueArray(){g=!0;var e=this.valueSync,t;switch(this.mode){case l.MULTISELECTOR:t=[...e];break;case l.TIME:t=this._getDateValueArray(e,w({mode:l.TIME}));break;case l.DATE:t=this._getDateValueArray(e,w({mode:l.DATE}));break;default:t=[e];break}this.oldValueArray=[...t],this.valueArray=[...t]},_getValue(){var e=this.valueArray;switch(this.mode){case l.SELECTOR:return e[0];case l.MULTISELECTOR:return e.map(t=>t);case l.TIME:return this.valueArray.map((t,a)=>this.timeArray[a][t]).join(":");case l.DATE:return this.valueArray.map((t,a)=>this.dateArray[a][t]).join("-")}},_getDateValueArray(e,t){let a=this.mode===l.DATE?"-":":",i=this.mode===l.DATE?this.dateArray:this.timeArray,r=3;switch(this.fields){case h.YEAR:r=1;break;case h.MONTH:r=2;break}let n=String(e).split(a),c=[];for(let o=0;o=0&&(c=t?this._getDateValueArray(t):c.map(()=>0)),c},_change(){this.$emit("change",{value:this._getValue()})},_cancel(){this.$emit("cancel")},_pickerViewChange(e){this.valueArray=this._l10nColumn(e.detail.value,!0)},_l10nColumn(e,t){if(this.mode===l.DATE){let a=this.locale;if(!a.startsWith("zh"))switch(this.fields){case h.YEAR:return e;case h.MONTH:return[e[1],e[0]];default:switch(a){case"es":case"fr":return[e[2],e[1],e[0]];default:return t?[e[2],e[0],e[1]]:[e[1],e[2],e[0]]}}}return e},_l10nItem(e,t){if(this.mode===l.DATE){let a=this.locale;if(a.startsWith("zh"))return e+["\u5E74","\u6708","\u65E5"][t];if(this.fields!==h.YEAR&&t===(this.fields!==h.MONTH&&(a==="es"||a==="fr")?1:0)){let i;switch(a){case"es":i=["enero","febrero","marzo","abril","mayo","junio","\u200B\u200Bjulio","agosto","septiembre","octubre","noviembre","diciembre"];break;case"fr":i=["janvier","f\xE9vrier","mars","avril","mai","juin","juillet","ao\xFBt","septembre","octobre","novembre","d\xE9cembre"];break;default:i=["January","February","March","April","May","June","July","August","September","October","November","December"];break}return i[Number(e)-1]}}return e}}};function B(e,t,a,i,r,n){let c=(0,s.resolveComponent)("picker-view-column"),o=(0,s.resolveComponent)("picker-view");return(0,s.openBlock)(),(0,s.createElementBlock)("div",{class:(0,s.normalizeClass)(["content",{dark:e.isDark}])},[(0,s.createElementVNode)("div",{ref:"mask",style:(0,s.normalizeStyle)(n.maskStyle),class:"uni-mask",onClick:t[0]||(t[0]=(...u)=>n._cancel&&n._cancel(...u))},null,4),(0,s.createElementVNode)("div",{style:(0,s.normalizeStyle)(`padding-bottom:${e.safeAreaInsets.bottom}px;height:${r.height+e.safeAreaInsets.bottom}px;`),ref:"picker",class:(0,s.normalizeClass)(["uni-picker",{"uni-picker-dark":e.isDark}])},[(0,s.createElementVNode)("div",{class:(0,s.normalizeClass)(["uni-picker-header",{"uni-picker-header-dark":e.isDark}])},[(0,s.createElementVNode)("u-text",{style:(0,s.normalizeStyle)(`left:${e.safeAreaInsets.left}px`),class:(0,s.normalizeClass)(["uni-picker-action uni-picker-action-cancel",{"uni-picker-action-cancel-dark":e.isDark}]),onClick:t[1]||(t[1]=(...u)=>n._cancel&&n._cancel(...u))},(0,s.toDisplayString)(e.localize("cancel")),7),(0,s.createElementVNode)("u-text",{style:(0,s.normalizeStyle)(`right:${e.safeAreaInsets.right}px`),class:"uni-picker-action uni-picker-action-confirm",onClick:t[2]||(t[2]=(...u)=>n._change&&n._change(...u))},(0,s.toDisplayString)(e.localize("done")),5)],2),a.visible?((0,s.openBlock)(),(0,s.createBlock)(o,{key:0,style:(0,s.normalizeStyle)(`margin-left:${e.safeAreaInsets.left}px`),height:"216","indicator-style":n.pickerViewIndicatorStyle,"mask-top-style":n.pickerViewMaskTopStyle,"mask-bottom-style":n.pickerViewMaskBottomStyle,value:n._l10nColumn(r.valueArray),class:"uni-picker-content",onChange:n._pickerViewChange},{default:(0,s.withCtx)(()=>[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(n._l10nColumn(n.rangeArray),(u,y)=>((0,s.openBlock)(),(0,s.createBlock)(c,{length:u.length,key:y},{default:(0,s.withCtx)(()=>[(0,s.createCommentVNode)(" iOS\u6E32\u67D3\u901F\u5EA6\u6709\u95EE\u9898\u4F7F\u7528\u5355\u4E2Atext\u4F18\u5316 "),(0,s.createElementVNode)("u-text",{class:"uni-picker-item",style:(0,s.normalizeStyle)(n.pickerViewColumnTextStyle)},(0,s.toDisplayString)(n.getTexts(u,y)),5),(0,s.createCommentVNode)(` {{ typeof item==='object'?item[rangeKey]||'':_l10nItem(item) }} `)]),_:2},1032,["length"]))),128))]),_:1},8,["style","indicator-style","mask-top-style","mask-bottom-style","value","onChange"])):(0,s.createCommentVNode)("v-if",!0)],6)],2)}var j=m(R,[["render",B],["styles",[Y]]]),W={page:{"":{flex:1}}},H={mixins:[k],components:{picker:j},data(){return{range:[],rangeKey:"",value:0,mode:"selector",fields:"day",start:"",end:"",disabled:!1,visible:!1}},onLoad(){this.data===null?this.postMessage({event:"created"},!0):this.showPicker(this.data),this.onMessage(e=>{this.showPicker(e)})},onReady(){this.$nextTick(()=>{this.visible=!0})},methods:{showPicker(e={}){let t=e.column;for(let a in e)a!=="column"&&(typeof t=="number"?this.$set(this.$data[a],t,e[a]):this.$data[a]=e[a])},close(e,{value:t=-1}={}){this.visible=!1,setTimeout(()=>{this.postMessage({event:e,value:t})},210)},onClose(){this.close("cancel")},columnchange({column:e,value:t}){this.$set(this.value,e,t),this.postMessage({event:"columnchange",column:e,value:t},!0)}}};function J(e,t,a,i,r,n){let c=(0,s.resolveComponent)("picker");return(0,s.openBlock)(),(0,s.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,s.createElementVNode)("view",{class:"page"},[(0,s.createVNode)(c,{range:r.range,rangeKey:r.rangeKey,value:r.value,mode:r.mode,fields:r.fields,start:r.start,end:r.end,disabled:r.disabled,visible:r.visible,onChange:t[0]||(t[0]=o=>n.close("change",o)),onCancel:t[1]||(t[1]=o=>n.close("cancel",o)),onColumnchange:n.columnchange},null,8,["range","rangeKey","value","mode","fields","start","end","disabled","visible","onColumnchange"])])])}var f=m(H,[["render",J],["styles",[W]]]);var p=plus.webview.currentWebview();if(p){let e=parseInt(p.id),t="template/__uniapppicker",a={};try{a=JSON.parse(p.__query__)}catch(r){}f.mpType="page";let i=Vue.createPageApp(f,{$store:getApp({allowDefault:!0}).$store,__pageId:e,__pagePath:t,__pageQuery:a});i.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...f.styles||[]])),i.mount("#root")}})(); diff --git a/unpackage/dist/dev/app-plus/__uniappquill.js b/unpackage/dist/dev/app-plus/__uniappquill.js new file mode 100644 index 0000000..d9f46b8 --- /dev/null +++ b/unpackage/dist/dev/app-plus/__uniappquill.js @@ -0,0 +1,8 @@ +/*! + * Quill Editor v1.3.7 + * https://quilljs.com/ + * Copyright (c) 2014, Jason Chen + * Copyright (c) 2013, salesforce.com + */ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Quill=e():t.Quill=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=45)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),l=n(48),a=n(49),s=n(50),u=n(51),c=n(52),f=n(11),h=n(29),p=n(30),d=n(28),y=n(1),v={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:u.default,Scroll:l.default,Block:s.default,Inline:a.default,Text:c.default,Attributor:{Attribute:f.default,Class:h.default,Style:p.default,Store:d.default}};e.default=v},function(t,e,n){"use strict";function r(t,e){var n=i(t);if(null==n)throw new s("Unable to create "+t+" blot");var r=n;return new r(t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e),e)}function o(t,n){return void 0===n&&(n=!1),null==t?null:null!=t[e.DATA_KEY]?t[e.DATA_KEY].blot:n?o(t.parentNode,n):null}function i(t,e){void 0===e&&(e=p.ANY);var n;if("string"==typeof t)n=h[t]||u[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=h.text;else if("number"==typeof t)t&p.LEVEL&p.BLOCK?n=h.block:t&p.LEVEL&p.INLINE&&(n=h.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=c[r[o]])break;n=n||f[t.tagName]}return null==n?null:e&p.LEVEL&n.scope&&e&p.TYPE&n.scope?n:null}function l(){for(var t=[],e=0;e1)return t.map(function(t){return l(t)});var n=t[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new s("Invalid definition");if("abstract"===n.blotName)throw new s("Cannot register abstract class");if(h[n.blotName||n.attrName]=n,"string"==typeof n.keyName)u[n.keyName]=n;else if(null!=n.className&&(c[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map(function(t){return t.toUpperCase()}):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach(function(t){null!=f[t]&&null!=n.className||(f[t]=n)})}return n}var a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var s=function(t){function e(e){var n=this;return e="[Parchment] "+e,n=t.call(this,e)||this,n.message=e,n.name=n.constructor.name,n}return a(e,t),e}(Error);e.ParchmentError=s;var u={},c={},f={},h={};e.DATA_KEY="__blot";var p;!function(t){t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY"}(p=e.Scope||(e.Scope={})),e.create=r,e.find=o,e.query=i,e.register=l},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},a=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e=n.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!e&&!o)return!1;var i;for(i in t);return void 0===i||n.call(t,i)},s=function(t,e){o&&"__proto__"===e.name?o(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},u=function(t,e){if("__proto__"===e){if(!n.call(t,e))return;if(i)return i(t,e).value}return t[e]};t.exports=function t(){var e,n,r,o,i,c,f=arguments[0],h=1,p=arguments.length,d=!1;for("boolean"==typeof f&&(d=f,f=arguments[1]||{},h=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});h1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"==typeof t.formats&&(e=(0,f.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:a(t.parent,e))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var s=function(){function t(t,e){for(var n=0;n0&&(t1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},o}}]),e}(y.default.Block);x.blotName="block",x.tagName="P",x.defaultChild="break",x.allowedChildren=[m.default,y.default.Embed,O.default],e.bubbleFormats=a,e.BlockEmbed=w,e.default=x},function(t,e,n){var r=n(54),o=n(12),i=n(2),l=n(20),a=String.fromCharCode(0),s=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};s.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},s.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},s.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},s.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=i(!0,{},t),"object"==typeof n){if("number"==typeof t.delete&&"number"==typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if("number"==typeof n.delete&&null!=t.insert&&(e-=1,"object"!=typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(o(t.attributes,n.attributes)){if("string"==typeof t.insert&&"string"==typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"==typeof t.retain&&"number"==typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"==typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},s.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},s.prototype.filter=function(t){return this.ops.filter(t)},s.prototype.forEach=function(t){this.ops.forEach(t)},s.prototype.map=function(t){return this.ops.map(t)},s.prototype.partition=function(t){var e=[],n=[];return this.forEach(function(r){(t(r)?e:n).push(r)}),[e,n]},s.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},s.prototype.changeLength=function(){return this.reduce(function(t,e){return e.insert?t+l.length(e):e.delete?t-e.delete:t},0)},s.prototype.length=function(){return this.reduce(function(t,e){return t+l.length(e)},0)},s.prototype.slice=function(t,e){t=t||0,"number"!=typeof e&&(e=1/0);for(var n=[],r=l.iterator(this.ops),o=0;o0&&n.next(i.retain-a)}for(var u=new s(r);e.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===e.peekType())u.push(e.next());else{var c=Math.min(e.peekLength(),n.peekLength()),f=e.next(c),h=n.next(c);if("number"==typeof h.retain){var p={};"number"==typeof f.retain?p.retain=c:p.insert=f.insert;var d=l.attributes.compose(f.attributes,h.attributes,"number"==typeof f.retain);if(d&&(p.attributes=d),u.push(p),!n.hasNext()&&o(u.ops[u.ops.length-1],p)){var y=new s(e.rest());return u.concat(y).chop()}}else"number"==typeof h.delete&&"number"==typeof f.retain&&u.push(h)}return u.chop()},s.prototype.concat=function(t){var e=new s(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},s.prototype.diff=function(t,e){if(this.ops===t.ops)return new s;var n=[this,t].map(function(e){return e.map(function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:a;var r=e===t?"on":"with";throw new Error("diff() called "+r+" non-document")}).join("")}),i=new s,u=r(n[0],n[1],e),c=l.iterator(this.ops),f=l.iterator(t.ops);return u.forEach(function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e),i.push(f.next(n));break;case r.DELETE:n=Math.min(e,c.peekLength()),c.next(n),i.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),e);var a=c.next(n),s=f.next(n);o(a.insert,s.insert)?i.retain(n,l.attributes.diff(a.attributes,s.attributes)):i.push(s).delete(n)}e-=n}}),i.chop()},s.prototype.eachLine=function(t,e){e=e||"\n";for(var n=l.iterator(this.ops),r=new s,o=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),a=l.length(i)-n.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(e,a)-a:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===t(r,n.next(1).attributes||{},o))return;o+=1,r=new s}}r.length()>0&&t(r,{},o)},s.prototype.transform=function(t,e){if(e=!!e,"number"==typeof t)return this.transformPosition(t,e);for(var n=l.iterator(this.ops),r=l.iterator(t.ops),o=new s;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())o.push(r.next());else{var i=Math.min(n.peekLength(),r.peekLength()),a=n.next(i),u=r.next(i);if(a.delete)continue;u.delete?o.push(u):o.retain(i,l.attributes.transform(a.attributes,u.attributes,e))}else o.retain(l.length(n.next()));return o.chop()},s.prototype.transformPosition=function(t,e){e=!!e;for(var n=l.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),o=e.order.indexOf(n);return r>=0||o>=0?r-o:t===n?0:t0){var a,s=[g.default.events.TEXT_CHANGE,l,i,e];if((a=this.emitter).emit.apply(a,[g.default.events.EDITOR_CHANGE].concat(s)),e!==g.default.sources.SILENT){var c;(c=this.emitter).emit.apply(c,s)}}return l}function s(t,e,n,r,o){var i={};return"number"==typeof t.index&&"number"==typeof t.length?"number"!=typeof e?(o=r,r=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!=typeof e&&(o=r,r=n,n=e,e=0),"object"===(void 0===n?"undefined":c(n))?(i=n,o=r):"string"==typeof n&&(null!=r?i[n]=r:o=n),o=o||g.default.sources.API,[t,e,i,o]}function u(t,e,n,r){if(null==t)return null;var o=void 0,i=void 0;if(e instanceof d.default){var l=[t.index,t.index+t.length].map(function(t){return e.transformPosition(t,r!==g.default.sources.USER)}),a=f(l,2);o=a[0],i=a[1]}else{var s=[t.index,t.index+t.length].map(function(t){return t=0?t+n:Math.max(e,t+n)}),u=f(s,2);o=u[0],i=u[1]}return new x.Range(o,i-o)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(i(this,t),this.options=l(e,r),this.container=this.options.container,null==this.container)return P.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new g.default,this.scroll=w.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new v.default(this.scroll),this.selection=new k.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(g.default.events.EDITOR_CHANGE,function(t){t===g.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())}),this.emitter.on(g.default.events.SCROLL_UPDATE,function(t,e){var r=n.selection.lastRange,o=r&&0===r.length?r.index:void 0;a.call(n,function(){return n.editor.update(null,e,o)},t)});var s=this.clipboard.convert("
"+o+"


");this.setContents(s),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return h(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),A.default.level(t)}},{key:"find",value:function(t){return t.__quill||w.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&P.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof t){var o=t.attrName||t.blotName;"string"==typeof o?this.register("formats/"+o,t,e):Object.keys(t).forEach(function(r){n.register(r,t[r],e)})}else null==this.imports[t]||r||P.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?w.default.register(e):t.startsWith("modules")&&"function"==typeof e.register&&e.register()}}]),h(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof t){var n=t;t=document.createElement("div"),t.classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,o=s(t,e,n),i=f(o,4);return t=i[0],e=i[1],n=i[3],a.call(this,function(){return r.editor.deleteText(t,e)},n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.default.sources.API;return a.call(this,function(){var r=n.getSelection(!0),i=new d.default;if(null==r)return i;if(w.default.query(t,w.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,o({},t,e));else{if(0===r.length)return n.selection.format(t,e),i;i=n.editor.formatText(r.index,r.length,o({},t,e))}return n.setSelection(r,g.default.sources.SILENT),i},r)}},{key:"formatLine",value:function(t,e,n,r,o){var i=this,l=void 0,u=s(t,e,n,r,o),c=f(u,4);return t=c[0],e=c[1],l=c[2],o=c[3],a.call(this,function(){return i.editor.formatLine(t,e,l)},o,t,0)}},{key:"formatText",value:function(t,e,n,r,o){var i=this,l=void 0,u=s(t,e,n,r,o),c=f(u,4);return t=c[0],e=c[1],l=c[2],o=c[3],a.call(this,function(){return i.editor.formatText(t,e,l)},o,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=s(t,e),r=f(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=s(t,e),r=f(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return a.call(this,function(){return o.editor.insertEmbed(e,n,r)},i,e)}},{key:"insertText",value:function(t,e,n,r,o){var i=this,l=void 0,u=s(t,0,n,r,o),c=f(u,4);return t=c[0],l=c[2],o=c[3],a.call(this,function(){return i.editor.insertText(t,e,l)},o,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,o=s(t,e,n),i=f(o,4);return t=i[0],e=i[1],n=i[3],a.call(this,function(){return r.editor.removeFormat(t,e)},n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API;return a.call(this,function(){t=new d.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),o=e.editor.applyDelta(t),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),o.delete(1)),r.compose(o)},n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var o=s(e,n,r),i=f(o,4);e=i[0],n=i[1],r=i[3],this.selection.setRange(new x.Range(e,n),r),r!==g.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API,n=(new d.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.default.sources.API;return a.call(this,function(){return t=new d.default(t),e.editor.applyDelta(t,n)},n,!0)}}]),t}();S.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},S.events=g.default.events,S.sources=g.default.sources,S.version="1.3.7",S.imports={delta:d.default,parchment:w.default,"core/module":_.default,"core/theme":T.default},e.expandConfig=l,e.overload=s,e.default=S},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.quill=e,this.options=n};o.DEFAULTS={},e.default=o},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(0),a=function(t){return t&&t.__esModule?t:{default:t}}(l),s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),e}(a.default.Text);e.default=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n1?e-1:0),r=1;r1?n-1:0),o=1;o-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=o},function(t,e,n){function r(t){return null===t||void 0===t}function o(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length)&&("function"==typeof t.copy&&"function"==typeof t.slice&&!(t.length>0&&"number"!=typeof t[0]))}function i(t,e,n){var i,c;if(r(t)||r(e))return!1;if(t.prototype!==e.prototype)return!1;if(s(t))return!!s(e)&&(t=l.call(t),e=l.call(e),u(t,e,n));if(o(t)){if(!o(e))return!1;if(t.length!==e.length)return!1;for(i=0;i=0;i--)if(f[i]!=h[i])return!1;for(i=f.length-1;i>=0;i--)if(c=f[i],!u(t[c],e[c],n))return!1;return typeof t==typeof e}var l=Array.prototype.slice,a=n(55),s=n(56),u=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:i(t,e,n))}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var a=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var n=0;n=t+n)){var l=this.newlineIndex(t,!0)+1,a=i-l+1,s=this.isolate(l,a),u=s.next;s.format(r,o),u instanceof e&&u.formatAt(0,t-l+n-a,r,o)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var r=this.descendant(m.default,t),o=a(r,2),i=o[0],l=o[1];i.insertAt(l,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var e=this.domNode.textContent.slice(t).indexOf("\n");return e>-1?t+e:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(p.default.create("text","\n")),u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(t){var e=p.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof p.default.Embed?e.remove():e.unwrap()})}}],[{key:"create",value:function(t){var n=u(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(y.default);O.blotName="code-block",O.tagName="PRE",O.TAB=" ",e.Code=_,e.default=O},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n-1}Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var a=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":l(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=p},function(t,e,n){"use strict";function r(t){var e=a.find(t);if(null==e)try{e=a.create(t)}catch(n){e=a.create(a.Scope.INLINE),[].slice.call(t.childNodes).forEach(function(t){e.domNode.appendChild(t)}),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(47),l=n(27),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return o(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(e){try{var n=r(e);t.insertBefore(n,t.children.head||void 0)}catch(t){if(t instanceof a.ParchmentError)return;throw t}})},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,function(t,e,n){t.deleteAt(e,n)})},e.prototype.descendant=function(t,n){var r=this.children.find(n),o=r[0],i=r[1];return null==t.blotName&&t(o)||null!=t.blotName&&o instanceof t?[o,i]:o instanceof e?o.descendant(t,i):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var o=[],i=r;return this.children.forEachAt(n,r,function(n,r,l){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&o.push(n),n instanceof e&&(o=o.concat(n.descendants(t,r,i))),i-=l}),o},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,function(t,e,o){t.formatAt(e,o,n,r)})},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),o=r[0],i=r[1];if(o)o.insertAt(i,e,n);else{var l=null==n?a.create("text",e):a.create(e,n);this.appendChild(l)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(e){return t instanceof e}))throw new a.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce(function(t,e){return t+e.length()},0)},e.prototype.moveChildren=function(t,e){this.children.forEach(function(n){t.insertBefore(n,e)})},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),o=r[0],i=r[1],l=[[this,t]];return o instanceof e?l.concat(o.path(i,n)):(null!=o&&l.push([o,i]),l)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),function(t,r,o){t=t.split(r,e),n.appendChild(t)}),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,o=[],i=[];t.forEach(function(t){t.target===n.domNode&&"childList"===t.type&&(o.push.apply(o,t.addedNodes),i.push.apply(i,t.removedNodes))}),i.forEach(function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=a.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}}),o.filter(function(t){return t.parentNode==n.domNode}).sort(function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(t){var e=null;null!=t.nextSibling&&(e=a.find(t.nextSibling));var o=r(t);o.next==e&&null!=o.next||(null!=o.parent&&o.parent.removeChild(n),n.insertBefore(o,e||void 0))})},e}(l.default);e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(11),i=n(28),l=n(17),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new i.default(n.domNode),n}return r(e,t),e.formats=function(t){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=a.query(t);n instanceof o.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some(function(t){return t.target===r.domNode&&"attributes"===t.type})&&this.attributes.build()},e.prototype.wrap=function(n,r){var o=t.prototype.wrap.call(this,n,r);return o instanceof e&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},e}(l.default);e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(27),i=n(1),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return t={},t[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=l},function(t,e,n){function r(t){this.ops=t,this.index=0,this.offset=0}var o=n(12),i=n(2),l={attributes:{compose:function(t,e,n){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var r=i(!0,{},e);n||(r=Object.keys(r).reduce(function(t,e){return null!=r[e]&&(t[e]=r[e]),t},{}));for(var o in t)void 0!==t[o]&&void 0===e[o]&&(r[o]=t[o]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!=typeof t&&(t={}),"object"!=typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce(function(n,r){return o(t[r],e[r])||(n[r]=void 0===e[r]?null:e[r]),n},{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!=typeof t)return e;if("object"==typeof e){if(!n)return e;var r=Object.keys(e).reduce(function(n,r){return void 0===t[r]&&(n[r]=e[r]),n},{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new r(t)},length:function(t){return"number"==typeof t.delete?t.delete:"number"==typeof t.retain?t.retain:"string"==typeof t.insert?t.insert.length:1}};r.prototype.hasNext=function(){return this.peekLength()<1/0},r.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=l.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof e.delete)return{delete:t};var o={};return e.attributes&&(o.attributes=e.attributes),"number"==typeof e.retain?o.retain=t:"string"==typeof e.insert?o.insert=e.insert.substr(n,t):o.insert=e.insert,o}return{retain:1/0}},r.prototype.peek=function(){return this.ops[this.index]},r.prototype.peekLength=function(){return this.ops[this.index]?l.length(this.ops[this.index])-this.offset:1/0},r.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},r.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t.exports=l},function(t,e){var n=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}function e(n,r,o,i,c){function f(n,o){if(null===n)return null;if(0===o)return n;var y,v;if("object"!=typeof n)return n;if(t(n,a))y=new a;else if(t(n,s))y=new s;else if(t(n,u))y=new u(function(t,e){n.then(function(e){t(f(e,o-1))},function(t){e(f(t,o-1))})});else if(e.__isArray(n))y=[];else if(e.__isRegExp(n))y=new RegExp(n.source,l(n)),n.lastIndex&&(y.lastIndex=n.lastIndex);else if(e.__isDate(n))y=new Date(n.getTime());else{if(d&&Buffer.isBuffer(n))return y=Buffer.allocUnsafe?Buffer.allocUnsafe(n.length):new Buffer(n.length),n.copy(y),y;t(n,Error)?y=Object.create(n):void 0===i?(v=Object.getPrototypeOf(n),y=Object.create(v)):(y=Object.create(i),v=i)}if(r){var b=h.indexOf(n);if(-1!=b)return p[b];h.push(n),p.push(y)}t(n,a)&&n.forEach(function(t,e){var n=f(e,o-1),r=f(t,o-1);y.set(n,r)}),t(n,s)&&n.forEach(function(t){var e=f(t,o-1);y.add(e)});for(var g in n){var m;v&&(m=Object.getOwnPropertyDescriptor(v,g)),m&&null==m.set||(y[g]=f(n[g],o-1))}if(Object.getOwnPropertySymbols)for(var _=Object.getOwnPropertySymbols(n),g=0;g<_.length;g++){var O=_[g],w=Object.getOwnPropertyDescriptor(n,O);(!w||w.enumerable||c)&&(y[O]=f(n[O],o-1),w.enumerable||Object.defineProperty(y,O,{enumerable:!1}))}if(c)for(var x=Object.getOwnPropertyNames(n),g=0;g1&&void 0!==arguments[1]?arguments[1]:0;i(this,t),this.index=e,this.length=n},O=function(){function t(e,n){var r=this;i(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new _(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){r.mouseDown||setTimeout(r.update.bind(r,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(t,e){t===v.default.events.TEXT_CHANGE&&e.length()>0&&r.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(t){}})}}),this.emitter.on(v.default.events.SCROLL_OPTIMIZE,function(t,e){if(e.range){var n=e.range,o=n.startNode,i=n.startOffset,l=n.endNode,a=n.endOffset;r.setNativeRange(o,i,l,a)}}),this.update(v.default.sources.SILENT)}return s(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",function(){t.composing=!0}),this.root.addEventListener("compositionend",function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout(function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,function(){t.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){t.mouseDown=!1,t.update(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!c.default.query(t,c.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=c.default.find(n.start.node,!1);if(null==r)return;if(r instanceof c.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var r=void 0,o=this.scroll.leaf(t),i=a(o,2),l=i[0],s=i[1];if(null==l)return null;var u=l.position(s,!0),c=a(u,2);r=c[0],s=c[1];var f=document.createRange();if(e>0){f.setStart(r,s);var h=this.scroll.leaf(t+e),p=a(h,2);if(l=p[0],s=p[1],null==l)return null;var d=l.position(s,!0),y=a(d,2);return r=y[0],s=y[1],f.setEnd(r,s),f.getBoundingClientRect()}var v="left",b=void 0;return r instanceof Text?(s0&&(v="right")),{bottom:b.top+b.height,height:b.height,left:b[v],right:b[v],top:b.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return m.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var r=n.map(function(t){var n=a(t,2),r=n[0],o=n[1],i=c.default.find(r,!0),l=i.offset(e.scroll);return 0===o?l:i instanceof c.default.Container?l+i.length():l+i.index(r,o)}),i=Math.min(Math.max.apply(Math,o(r)),this.scroll.length()-1),l=Math.min.apply(Math,[i].concat(o(r)));return new _(l,i-l)}},{key:"normalizeNative",value:function(t){if(!l(this.root,t.startContainer)||!t.collapsed&&!l(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach(function(t){for(var e=t.node,n=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;e=e.lastChild,n=e instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n}),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],r=[],o=this.scroll.length();return n.forEach(function(t,n){t=Math.min(o-1,t);var i=void 0,l=e.scroll.leaf(t),s=a(l,2),u=s[0],c=s[1],f=u.position(c,0!==n),h=a(f,2);i=h[0],c=h[1],r.push(i,c)}),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var r=this.scroll.length()-1,o=this.scroll.line(Math.min(e.index,r)),i=a(o,1),l=i[0],s=l;if(e.length>0){var u=this.scroll.line(Math.min(e.index+e.length,r));s=a(u,1)[0]}if(null!=l&&null!=s){var c=t.getBoundingClientRect();n.topc.bottom&&(t.scrollTop+=n.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(m.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=t){this.hasFocus()||this.root.focus();var l=(this.getNativeRange()||{}).native;if(null==l||o||t!==l.startContainer||e!==l.startOffset||n!==l.endContainer||r!==l.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var a=document.createRange();a.setStart(t,e),a.setEnd(n,r),i.removeAllRanges(),i.addRange(a)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.default.sources.API;if("string"==typeof e&&(n=e,e=!1),m.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,o(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.default.sources.USER,e=this.lastRange,n=this.getRange(),r=a(n,2),o=r[0],i=r[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,d.default)(e,this.lastRange)){var l;!this.composing&&null!=i&&i.native.collapsed&&i.start.node!==this.cursor.textNode&&this.cursor.restore();var s=[v.default.events.SELECTION_CHANGE,(0,h.default)(this.lastRange),(0,h.default)(e),t];if((l=this.emitter).emit.apply(l,[v.default.events.EDITOR_CHANGE].concat(s)),t!==v.default.sources.SILENT){var u;(u=this.emitter).emit.apply(u,s)}}}}]),t}();e.Range=_,e.default=O},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),s=r(a),u=n(3),c=r(u),f=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(s.default.Container);f.allowedChildren=[c.default,u.BlockEmbed,f],e.default=f},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var l=function(){function t(t,e){for(var n=0;n1){var u=o.formats(),c=this.quill.getFormat(t.index-1,1);i=A.default.attributes.diff(u,c)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,S.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(t.index-f,f,i,S.default.sources.USER),this.quill.focus()}}function c(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},o=0,i=this.quill.getLine(t.index),l=b(i,1),a=l[0];if(e.offset>=a.length()-1){var s=this.quill.getLine(t.index+1),u=b(s,1),c=u[0];if(c){var f=a.formats(),h=this.quill.getFormat(t.index,1);r=A.default.attributes.diff(f,h)||{},o=c.length()}}this.quill.deleteText(t.index,n,S.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+o-1,n,r,S.default.sources.USER)}}function f(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),o=e[e.length-1].formats();n=A.default.attributes.diff(o,r)||{}}this.quill.deleteText(t,S.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,S.default.sources.USER),this.quill.setSelection(t.index,S.default.sources.SILENT),this.quill.focus()}function h(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce(function(t,n){return T.default.query(n,T.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t},{});this.quill.insertText(t.index,"\n",r,S.default.sources.USER),this.quill.setSelection(t.index+1,S.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach(function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],S.default.sources.USER))})}function p(t){return{key:D.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=T.default.query("code-block"),r=e.index,o=e.length,i=this.quill.scroll.descendant(n,r),l=b(i,2),a=l[0],s=l[1];if(null!=a){var u=this.quill.getIndex(a),c=a.newlineIndex(s,!0)+1,f=a.newlineIndex(u+s+o),h=a.domNode.textContent.slice(c,f).split("\n");s=0,h.forEach(function(e,i){t?(a.insertAt(c+s,n.TAB),s+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):e.startsWith(n.TAB)&&(a.deleteAt(c+s,n.TAB.length),s-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),s+=e.length+1}),this.quill.update(S.default.sources.USER),this.quill.setSelection(r,o,S.default.sources.SILENT)}}}}function d(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],S.default.sources.USER)}}}function y(t){if("string"==typeof t||"number"==typeof t)return y({key:t});if("object"===(void 0===t?"undefined":v(t))&&(t=(0,_.default)(t,!1)),"string"==typeof t.key)if(null!=D.keys[t.key.toUpperCase()])t.key=D.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[B]=t.shortKey,delete t.shortKey),t}Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=y(t);if(null==r||null==r.key)return I.warn("Attempted to add invalid keyboard binding",r);"function"==typeof e&&(e={handler:e}),"function"==typeof n&&(n={handler:n}),r=(0,k.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",function(n){if(!n.defaultPrevented){var r=n.which||n.keyCode,o=(t.bindings[r]||[]).filter(function(t){return e.match(n,t)});if(0!==o.length){var i=t.quill.getSelection();if(null!=i&&t.quill.hasFocus()){var l=t.quill.getLine(i.index),a=b(l,2),s=a[0],u=a[1],c=t.quill.getLeaf(i.index),f=b(c,2),h=f[0],p=f[1],d=0===i.length?[h,p]:t.quill.getLeaf(i.index+i.length),y=b(d,2),g=y[0],m=y[1],_=h instanceof T.default.Text?h.value().slice(0,p):"",O=g instanceof T.default.Text?g.value().slice(m):"",x={collapsed:0===i.length,empty:0===i.length&&s.length()<=1,format:t.quill.getFormat(i),offset:u,prefix:_,suffix:O};o.some(function(e){if(null!=e.collapsed&&e.collapsed!==x.collapsed)return!1;if(null!=e.empty&&e.empty!==x.empty)return!1;if(null!=e.offset&&e.offset!==x.offset)return!1;if(Array.isArray(e.format)){if(e.format.every(function(t){return null==x.format[t]}))return!1}else if("object"===v(e.format)&&!Object.keys(e.format).every(function(t){return!0===e.format[t]?null!=x.format[t]:!1===e.format[t]?null==x.format[t]:(0,w.default)(e.format[t],x.format[t])}))return!1;return!(null!=e.prefix&&!e.prefix.test(x.prefix))&&(!(null!=e.suffix&&!e.suffix.test(x.suffix))&&!0!==e.handler.call(t,i,x))})&&n.preventDefault()}}}})}}]),e}(R.default);D.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},D.DEFAULTS={bindings:{bold:d("bold"),italic:d("italic"),underline:d("underline"),indent:{key:D.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",S.default.sources.USER)}},outdent:{key:D.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",S.default.sources.USER)}},"outdent backspace":{key:D.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",S.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,S.default.sources.USER)}},"indent code-block":p(!0),"outdent code-block":p(!1),"remove tab":{key:D.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,S.default.sources.USER)}},tab:{key:D.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new N.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,S.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,S.default.sources.SILENT)}},"list empty enter":{key:D.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,S.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,S.default.sources.USER)}},"checklist enter":{key:D.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=b(e,2),r=n[0],o=n[1],i=(0,k.default)({},r.formats(),{list:"checked"}),l=(new N.default).retain(t.index).insert("\n",i).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(l,S.default.sources.USER),this.quill.setSelection(t.index+1,S.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:D.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=b(n,2),o=r[0],i=r[1],l=(new N.default).retain(t.index).insert("\n",e.format).retain(o.length()-i-1).retain(1,{header:null});this.quill.updateContents(l,S.default.sources.USER),this.quill.setSelection(t.index+1,S.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),o=b(r,2),i=o[0],l=o[1];if(l>n)return!0;var a=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":a="unchecked";break;case"[x]":a="checked";break;case"-":case"*":a="bullet";break;default:a="ordered"}this.quill.insertText(t.index," ",S.default.sources.USER),this.quill.history.cutoff();var s=(new N.default).retain(t.index-l).delete(n+1).retain(i.length()-2-l).retain(1,{list:a});this.quill.updateContents(s,S.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,S.default.sources.SILENT)}},"code exit":{key:D.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=b(e,2),r=n[0],o=n[1],i=(new N.default).retain(t.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(i,S.default.sources.USER)}},"embed left":s(D.keys.LEFT,!1),"embed left shift":s(D.keys.LEFT,!0),"embed right":s(D.keys.RIGHT,!1),"embed right shift":s(D.keys.RIGHT,!0)}},e.default=D,e.SHORTKEY=B},function(t,e,n){"use strict";t.exports={align:{"":n(75),center:n(76),right:n(77),justify:n(78)},background:n(79),blockquote:n(80),bold:n(81),clean:n(82),code:n(40),"code-block":n(40),color:n(83),direction:{"":n(84),rtl:n(85)},float:{center:n(86),full:n(87),left:n(88),right:n(89)},formula:n(90),header:{1:n(91),2:n(92)},italic:n(93),image:n(94),indent:{"+1":n(95),"-1":n(96)},link:n(97),list:{ordered:n(98),bullet:n(99),check:n(100)},script:{sub:n(101),super:n(102)},strike:n(103),underline:n(104),video:n(105)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"==typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"==typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,o){var i=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var l=r.create(this.statics.scope);i.wrap(l),l.format(n,o)}},t.prototype.insertAt=function(t,e,n){var o=null==n?r.create("text",e):r.create(e,n),i=this.split(t);this.parent.insertBefore(o,i)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"==typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"==typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(11),o=n(29),i=n(30),l=n(1),a=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=o.default.keys(this.domNode),a=i.default.keys(this.domNode);e.concat(n).concat(a).forEach(function(e){var n=l.query(e,l.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)})},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach(function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)})},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce(function(e,n){return e[n]=t.attributes[n].value(t.domNode),e},{})},t}();e.default=a},function(t,e,n){"use strict";function r(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter(function(t){return 0===t.indexOf(e+"-")})}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(11),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){r(t,this.keyName).forEach(function(e){t.classList.remove(e)}),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=r(t,this.keyName)[0]||"",n=e.slice(this.keyName.length+1);return this.canAdd(t,n)?n:""},e}(i.default);e.default=l},function(t,e,n){"use strict";function r(t){var e=t.split("-"),n=e.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return e[0]+n}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(11),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map(function(t){return t.split(":")[0].trim()})},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[r(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[r(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[r(this.keyName)];return this.canAdd(t,e)?e:""},e}(i.default);e.default=l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=function(){function t(t,e){for(var n=0;n '},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;nr.right&&(i=r.right-o.right,this.root.style.left=e+i+"px"),o.leftr.bottom){var l=o.bottom-o.top,a=t.bottom-t.top+l;this.root.style.top=n-a+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}function s(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach(function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var u=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,v.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,v.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=a(t);case"formula":if(!t)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,v.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",v.default.sources.USER),this.quill.setSelection(r+2,v.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(A.default);e.BaseTooltip=M,e.default=L},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(46),i=r(o),l=n(34),a=n(36),s=n(62),u=n(63),c=r(u),f=n(64),h=r(f),p=n(65),d=r(p),y=n(35),v=n(24),b=n(37),g=n(38),m=n(39),_=r(m),O=n(66),w=r(O),x=n(15),k=r(x),E=n(67),N=r(E),j=n(68),A=r(j),q=n(69),T=r(q),P=n(70),S=r(P),C=n(71),L=r(C),M=n(13),R=r(M),I=n(72),B=r(I),D=n(73),U=r(D),F=n(74),H=r(F),K=n(26),z=r(K),V=n(16),Z=r(V),W=n(41),G=r(W),Y=n(42),X=r(Y),$=n(43),Q=r($),J=n(107),tt=r(J),et=n(108),nt=r(et);i.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":l.AlignClass,"attributors/class/background":y.BackgroundClass,"attributors/class/color":v.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":b.FontClass,"attributors/class/size":g.SizeClass,"attributors/style/align":l.AlignStyle,"attributors/style/background":y.BackgroundStyle,"attributors/style/color":v.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":b.FontStyle,"attributors/style/size":g.SizeStyle},!0),i.default.register({"formats/align":l.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":s.IndentClass,"formats/background":y.BackgroundStyle,"formats/color":v.ColorStyle,"formats/font":b.FontClass,"formats/size":g.SizeClass,"formats/blockquote":c.default,"formats/code-block":R.default,"formats/header":h.default,"formats/list":d.default,"formats/bold":_.default,"formats/code":M.Code,"formats/italic":w.default,"formats/link":k.default,"formats/script":N.default,"formats/strike":A.default,"formats/underline":T.default,"formats/image":S.default,"formats/video":L.default,"formats/list/item":p.ListItem,"modules/formula":B.default,"modules/syntax":U.default,"modules/toolbar":H.default,"themes/bubble":tt.default,"themes/snow":nt.default,"ui/icons":z.default,"ui/picker":Z.default,"ui/icon-picker":X.default,"ui/color-picker":G.default,"ui/tooltip":Q.default},!0),e.default=i.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),i=r(o),l=n(6),a=r(l),s=n(3),u=r(s),c=n(14),f=r(c),h=n(23),p=r(h),d=n(31),y=r(d),v=n(33),b=r(v),g=n(5),m=r(g),_=n(59),O=r(_),w=n(8),x=r(w),k=n(60),E=r(k),N=n(61),j=r(N),A=n(25),q=r(A);a.default.register({"blots/block":u.default,"blots/block/embed":s.BlockEmbed,"blots/break":f.default,"blots/container":p.default,"blots/cursor":y.default,"blots/embed":b.default,"blots/inline":m.default,"blots/scroll":O.default,"blots/text":x.default,"modules/clipboard":E.default,"modules/history":j.default,"modules/keyboard":q.default}),i.default.register(u.default,f.default,y.default,m.default,O.default,x.default),e.default=a.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();e=n();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){for(var e=0,n=this.head;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(ta?n(r,t-a,Math.min(e,a+u-t)):n(r,0,Math.min(u,t+e-a)),a+=u}},t.prototype.map=function(t){return this.reduce(function(e,n){return e.push(t(n)),e},[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),i=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},a=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver(function(t){n.update(t)}),n.observer.observe(n.domNode,l),n.attach(),n}return r(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach(function(t){t.remove()}):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,o){this.update(),t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var l=[].slice.call(this.observer.takeRecords());l.length>0;)e.push(l.pop());for(var a=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[i.DATA_KEY].mutations&&(t.domNode[i.DATA_KEY].mutations=[]),e&&a(t.parent))},s=function(t){null!=t.domNode[i.DATA_KEY]&&null!=t.domNode[i.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(s),t.optimize(n))},u=e,c=0;u.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach(function(t){var e=i.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(a(i.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,function(t){var e=i.find(t,!1);a(e,!1),e instanceof o.default&&e.children.forEach(function(t){a(t,!1)})})):"attributes"===t.type&&a(e.prev)),a(e))}),this.children.forEach(s),u=[].slice.call(this.observer.takeRecords()),l=u.slice();l.length>0;)e.push(l.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),e=e||this.observer.takeRecords(),e.map(function(t){var e=i.find(t.target,!0);return null==e?null:null==e.domNode[i.DATA_KEY].mutations?(e.domNode[i.DATA_KEY].mutations=[t],e):(e.domNode[i.DATA_KEY].mutations.push(t),null)}).forEach(function(t){null!=t&&t!==r&&null!=t.domNode[i.DATA_KEY]&&t.update(t.domNode[i.DATA_KEY].mutations||[],n)}),null!=this.domNode[i.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[i.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="DIV",e}(o.default);e.default=a},function(t,e,n){"use strict";function r(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}var o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),l=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach(function(t){t instanceof i.default||(t=t.wrap(e.blotName,!0)),o.attributes.copy(t)}),this.unwrap())},e.prototype.formatAt=function(e,n,r,o){if(null!=this.formats()[r]||l.query(r,l.Scope.ATTRIBUTE)){this.isolate(e,n).format(r,o)}else t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var o=this.formats();if(0===Object.keys(o).length)return this.unwrap();var i=this.next;i instanceof e&&i.prev===this&&r(o,i.formats())&&(i.moveChildren(this),i.remove())},e.blotName="inline",e.scope=l.Scope.INLINE_BLOT,e.tagName="SPAN",e}(i.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),i=n(1),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){var r=i.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=i.query(n,i.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,o){null!=i.query(r,i.Scope.BLOCK)?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=i.query(n,i.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var o=this.split(e),l=i.create(n,r);o.parent.insertBefore(l,o)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="P",e}(o.default);e.default=l},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,o){0===e&&n===this.length()?this.format(r,o):t.prototype.formatAt.call(this,e,n,r,o)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(o.default);e.default=i},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),i=n(1),l=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return r(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e.normalize&&(e=e.normalize()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=i.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some(function(t){return"characterData"===t.type&&t.target===n.domNode})&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=l},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)==!e?e:o.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;ie.length?t:e,l=t.length>e.length?e:t,a=i.indexOf(l);if(-1!=a)return r=[[y,i.substring(0,a)],[v,l],[y,i.substring(a+l.length)]],t.length>e.length&&(r[0][0]=r[2][0]=d),r;if(1==l.length)return[[d,t],[y,e]];var u=s(t,e);if(u){var c=u[0],f=u[1],h=u[2],p=u[3],b=u[4],g=n(c,h),m=n(f,p);return g.concat([[v,b]],m)}return o(t,e)}function o(t,e){for(var n=t.length,r=e.length,o=Math.ceil((n+r)/2),l=o,a=2*o,s=new Array(a),u=new Array(a),c=0;cn)v+=2;else if(x>r)p+=2;else if(h){var k=l+f-_;if(k>=0&&k=E)return i(t,e,O,x)}}}for(var N=-m+b;N<=m-g;N+=2){var E,k=l+N;E=N==-m||N!=m&&u[k-1]n)g+=2;else if(j>r)b+=2;else if(!h){var w=l+f-N;if(w>=0&&w=E)return i(t,e,O,x)}}}}return[[d,t],[y,e]]}function i(t,e,r,o){var i=t.substring(0,r),l=e.substring(0,o),a=t.substring(r),s=e.substring(o),u=n(i,l),c=n(a,s);return u.concat(c)}function l(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),o=r,i=0;n=t.length?[r,o,i,s,f]:null}var r=t.length>e.length?t:e,o=t.length>e.length?e:t;if(r.length<4||2*o.lengthu[4].length?s:u:s;var c,f,h,p;return t.length>e.length?(c=i[0],f=i[1],h=i[2],p=i[3]):(h=i[0],p=i[1],c=i[2],f=i[3]),[c,f,h,p,i[4]]}function u(t){t.push([v,""]);for(var e,n=0,r=0,o=0,i="",s="";n1?(0!==r&&0!==o&&(e=l(s,i),0!==e&&(n-r-o>0&&t[n-r-o-1][0]==v?t[n-r-o-1][1]+=s.substring(0,e):(t.splice(0,0,[v,s.substring(0,e)]),n++),s=s.substring(e),i=i.substring(e)),0!==(e=a(s,i))&&(t[n][1]=s.substring(s.length-e)+t[n][1],s=s.substring(0,s.length-e),i=i.substring(0,i.length-e))),0===r?t.splice(n-o,r+o,[y,s]):0===o?t.splice(n-r,r+o,[d,i]):t.splice(n-r-o,r+o,[d,i],[y,s]),n=n-r-o+(r?1:0)+(o?1:0)+1):0!==n&&t[n-1][0]==v?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,o=0,r=0,i="",s=""}""===t[t.length-1][1]&&t.pop();var c=!1;for(n=1;n0&&r.splice(o+2,0,[l[0],a]),p(r,o,3)}return t}function h(t){for(var e=!1,n=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},r=2;r=55296&&t.charCodeAt(t.length-1)<=56319}(t[r-2][1])&&t[r-1][0]===d&&n(t[r-1][1])&&t[r][0]===y&&n(t[r][1])&&(e=!0,t[r-1][1]=t[r-2][1].slice(-1)+t[r-1][1],t[r][1]=t[r-2][1].slice(-1)+t[r][1],t[r-2][1]=t[r-2][1].slice(0,-1));if(!e)return t;for(var o=[],r=0;r0&&o.push(t[r]);return o}function p(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1=r&&!a.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,a);var c=e.scroll.line(t),f=u(c,2),h=f[0],p=f[1],y=(0,T.default)({},(0,O.bubbleFormats)(h));if(h instanceof w.default){var b=h.descendant(v.default.Leaf,p),g=u(b,1),m=g[0];y=(0,T.default)(y,(0,O.bubbleFormats)(m))}l=d.default.attributes.diff(y,l)||{}}else if("object"===s(o.insert)){var _=Object.keys(o.insert)[0];if(null==_)return t;e.scroll.insertAt(t,_,o.insert[_])}r+=i}return Object.keys(l).forEach(function(n){e.scroll.formatAt(t,i,n,l[n])}),t+i},0),t.reduce(function(t,n){return"number"==typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)},0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new h.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach(function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var i=n.scroll.lines(t,Math.max(e,1)),l=e;i.forEach(function(e){var i=e.length();if(e instanceof g.default){var a=t-e.offset(n.scroll),s=e.newlineIndex(a+l)-a+1;e.formatAt(a,s,o,r[o])}else e.format(o,r[o]);l-=i})}}),this.scroll.optimize(),this.update((new h.default).retain(t).retain(e,(0,N.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach(function(o){n.scroll.formatAt(t,e,o,r[o])}),this.update((new h.default).retain(t).retain(e,(0,N.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(t,e){return t.concat(e.delta())},new h.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach(function(t){var e=u(t,1),o=e[0];o instanceof w.default?n.push(o):o instanceof v.default.Leaf&&r.push(o)}):(n=this.scroll.lines(t,e),r=this.scroll.descendants(v.default.Leaf,t,e));var o=[n,r].map(function(t){if(0===t.length)return{};for(var e=(0,O.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=l((0,O.bubbleFormats)(n),e)}return e});return T.default.apply(T.default,o)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter(function(t){return"string"==typeof t.insert}).map(function(t){return t.insert}).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new h.default).retain(t).insert(o({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach(function(o){n.scroll.formatAt(t,e.length,o,r[o])}),this.update((new h.default).retain(t).insert(e,(0,N.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===w.default.blotName&&(!(t.children.length>1)&&t.children.head instanceof k.default)}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),o=u(r,2),i=o[0],l=o[1],a=0,s=new h.default;null!=i&&(a=i instanceof g.default?i.newlineIndex(l)-l+1:i.length()-l,s=i.delta().slice(l,l+a-1).insert("\n"));var c=this.getContents(t,e+a),f=c.diff((new h.default).insert(n).concat(s)),p=(new h.default).retain(t).concat(f);return this.applyDelta(p)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(P)&&v.default.find(e[0].target)){var o=v.default.find(e[0].target),i=(0,O.bubbleFormats)(o),l=o.offset(this.scroll),a=e[0].oldValue.replace(_.default.CONTENTS,""),s=(new h.default).insert(a),u=(new h.default).insert(o.value());t=(new h.default).retain(l).concat(s.diff(u,n)).reduce(function(t,e){return e.insert?t.insert(e.insert,i):t.push(e)},new h.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,A.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();e.default=S},function(t,e){"use strict";function n(){}function r(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(){this._events=new n,this._eventsCount=0}var i=Object.prototype.hasOwnProperty,l="~";Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(l=!1)),o.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)i.call(t,e)&&n.push(l?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},o.prototype.listeners=function(t,e){var n=l?l+t:t,r=this._events[n];if(e)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);o0){if(i instanceof y.BlockEmbed||f instanceof y.BlockEmbed)return void this.optimize();if(i instanceof _.default){var h=i.newlineIndex(i.length(),!0);if(h>-1&&(i=i.split(h+1))===f)return void this.optimize()}else if(f instanceof _.default){var p=f.newlineIndex(0);p>-1&&f.split(p+1)}var d=f.children.head instanceof g.default?null:f.children.head;i.moveChildren(f,d),i.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,o){(null==this.whitelist||this.whitelist[r])&&(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==h.default.query(n,h.default.Scope.BLOCK)){var o=h.default.create(this.statics.defaultChild);this.appendChild(o),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,r)}else{var i=h.default.create(n,r);this.appendChild(i)}else c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===h.default.Scope.INLINE_BLOT){var r=h.default.create(this.statics.defaultChild);r.appendChild(t),t=r}c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(a,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return function t(e,n,r){var o=[],i=r;return e.children.forEachAt(n,r,function(e,n,r){a(e)?o.push(e):e instanceof h.default.Container&&(o=o.concat(t(e,n,i))),i-=r}),o}(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(d.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=d.default.sources.USER;"string"==typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(d.default.events.SCROLL_BEFORE_UPDATE,n,t),c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(d.default.events.SCROLL_UPDATE,n,t)}}}]),e}(h.default.Scroll);x.blotName="scroll",x.className="ql-editor",x.tagName="DIV",x.defaultChild="block",x.allowedChildren=[v.default,y.BlockEmbed,w.default],e.default=x},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e,n){return"object"===(void 0===e?"undefined":x(e))?Object.keys(e).reduce(function(t,n){return s(t,n,e[n])},t):t.reduce(function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,j.default)({},o({},e,n),r.attributes))},new q.default)}function u(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};return t["__ql-computed-style"]||(t["__ql-computed-style"]=window.getComputedStyle(t))}function c(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length-1}function h(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce(function(e,n){return n(t,e)},new q.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],function(r,o){var i=h(o,e,n);return o.nodeType===t.ELEMENT_NODE&&(i=e.reduce(function(t,e){return e(o,t)},i),i=(o[W]||[]).reduce(function(t,e){return e(o,t)},i)),r.concat(i)},new q.default):new q.default}function p(t,e,n){return s(n,t,!0)}function d(t,e){var n=P.default.Attributor.Attribute.keys(t),r=P.default.Attributor.Class.keys(t),o=P.default.Attributor.Style.keys(t),i={};return n.concat(r).concat(o).forEach(function(e){var n=P.default.query(e,P.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(t),i[n.attrName])||(n=Y[e],null==n||n.attrName!==e&&n.keyName!==e||(i[n.attrName]=n.value(t)||void 0),null==(n=X[e])||n.attrName!==e&&n.keyName!==e||(n=X[e],i[n.attrName]=n.value(t)||void 0))}),Object.keys(i).length>0&&(e=s(e,i)),e}function y(t,e){var n=P.default.query(t);if(null==n)return e;if(n.prototype instanceof P.default.Embed){var r={},o=n.value(t);null!=o&&(r[n.blotName]=o,e=(new q.default).insert(r,n.formats(t)))}else"function"==typeof n.formats&&(e=s(e,n.blotName,n.formats(t)));return e}function v(t,e){return c(e,"\n")||e.insert("\n"),e}function b(){return new q.default}function g(t,e){var n=P.default.query(t);if(null==n||"list-item"!==n.blotName||!c(e,"\n"))return e;for(var r=-1,o=t.parentNode;!o.classList.contains("ql-clipboard");)"list"===(P.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?e:e.compose((new q.default).retain(e.length()-1).retain(1,{indent:r}))}function m(t,e){return c(e,"\n")||(f(t)||e.length()>0&&t.nextSibling&&f(t.nextSibling))&&e.insert("\n"),e}function _(t,e){if(f(t)&&null!=t.nextElementSibling&&!c(e,"\n\n")){var n=t.offsetHeight+parseFloat(u(t).marginTop)+parseFloat(u(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function O(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===u(t).fontStyle&&(n.italic=!0),r.fontWeight&&(u(t).fontWeight.startsWith("bold")||parseInt(u(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=s(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new q.default).insert("\t").concat(e)),e}function w(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!u(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return e=e.replace(/[^\u00a0]/g,""),e.length<1&&t?" ":e};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&f(t.parentNode)||null!=t.previousSibling&&f(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&f(t.parentNode)||null!=t.nextSibling&&f(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),E=function(){function t(t,e){for(var n=0;n\r?\n +\<"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[F.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new q.default).insert(n,o({},F.default.blotName,e[F.default.blotName]))}var r=this.prepareMatching(),i=k(r,2),l=i[0],a=i[1],s=h(this.container,l,a);return c(s,"\n")&&null==s.ops[s.ops.length-1].attributes&&(s=s.compose((new q.default).retain(s.length()-1).delete(1))),Z.log("convert",this.container.innerHTML,s),this.container.innerHTML="",s}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C.default.sources.API;if("string"==typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,C.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new q.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),C.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new q.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(C.default.sources.SILENT),setTimeout(function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,C.default.sources.USER),e.quill.setSelection(r.length()-n.length,C.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=o,e.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach(function(r){var o=k(r,2),i=o[0],l=o[1];switch(i){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:e.push(l);break;default:[].forEach.call(t.container.querySelectorAll(i),function(t){t[W]=t[W]||[],t[W].push(l)})}}),[e,n]}}]),e}(I.default);$.DEFAULTS={matchers:[],matchVisual:!0},e.default=$,e.matchAttributor=d,e.matchBlot=y,e.matchNewline=m,e.matchSpacing=_,e.matchText=w},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"==typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some(function(t){return null!=f.default.query(t,f.default.Scope.BLOCK)}))}function s(t){var e=t.reduce(function(t,e){return t+=e.delete||0},0),n=t.length()-e;return a(t)&&(n-=1),n}Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var u=function(){function t(t,e){for(var n=0;nr&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),t=o.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach(function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}),this.stack.redo.forEach(function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(y.default);v.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=v,e.getLastChangeIndex=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var l=function(){function t(t,e){for(var n=0;n0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return o({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,n){if(t instanceof v)u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(t,o)}}},{key:"optimize",value:function(t){u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=f.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(y.default);b.blotName="list",b.scope=f.default.Scope.BLOCK_BLOT,b.tagName=["OL","UL"],b.defaultChild="list-item",b.allowedChildren=[v],e.ListItem=v,e.default=b},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=n(39),a=function(t){return t&&t.__esModule?t:{default:t}}(l),s=function(t){function e(){return r(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return i(e,t),e}(a.default);s.blotName="italic",s.tagName=["EM","I"],e.default=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"==typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce(function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e},{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,c.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(u.default.Embed);h.blotName="image",h.tagName="IMG",e.default=h},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var l=function(){function t(t,e){for(var n=0;n-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=a(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce(function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e},{})}},{key:"sanitize",value:function(t){return c.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(s.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",e.default=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var a=function(){function t(t,e){for(var n=0;n0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(v.default);b.className="ql-syntax";var g=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),m=function(t){function e(t,n){o(this,e);var r=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var l=null;return r.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(l),l=setTimeout(function(){r.highlight(),l=null},r.options.interval)}),r.highlight(),r}return l(e,t),a(e,null,[{key:"register",value:function(){h.default.register(g,!0),h.default.register(b,!0)}}]),a(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(h.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(b).forEach(function(e){e.highlight(t.options.highlight)}),this.quill.update(h.default.sources.SILENT),null!=e&&this.quill.setSelection(e,h.default.sources.SILENT)}}}]),e}(d.default);m.DEFAULTS={highlight:function(){return null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value}}(),interval:1e3},e.CodeBlock=b,e.CodeToken=g,e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t,e,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+e),null!=n&&(r.value=n),t.appendChild(r)}function u(t,e){Array.isArray(e[0])||(e=[e]),e.forEach(function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach(function(t){if("string"==typeof t)s(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?c(n,e,r):s(n,e,r)}}),t.appendChild(n)})}function c(t,e,n){var r=document.createElement("select");r.classList.add("ql-"+e),n.forEach(function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),r.appendChild(e)}),t.appendChild(r)}Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var f=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function t(t,e){for(var n=0;n '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e){t.exports=' '},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var a=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},s=function(){function t(t,e){for(var n=0;n0&&o===h.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var i=r.quill.getLines(e.index,e.length);if(1===i.length)r.position(r.quill.getBounds(e));else{var l=i[i.length-1],a=r.quill.getIndex(l),s=Math.min(l.length()-1,e.index+e.length-a),u=r.quill.getBounds(new y.Range(a,s));r.position(u)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()}),r}return l(e,t),s(e,[{key:"listen",value:function(){var t=this;a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){t.root.classList.remove("ql-editing")}),this.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=a(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),e}(p.BaseTooltip);_.TEMPLATE=['','
','','',"
"].join(""),e.BubbleTooltip=_,e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var l,a=t[Symbol.iterator]();!(r=(l=a.next()).done)&&(n.push(l.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var l=o.get;if(void 0!==l)return l.call(r)},u=function(){function t(t,e){for(var n=0;n','','',''].join(""),e.default=w}]).default}); +//# sourceMappingURL=quill.min.js.map \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/__uniappquillimageresize.js b/unpackage/dist/dev/app-plus/__uniappquillimageresize.js new file mode 100644 index 0000000..7c788a5 --- /dev/null +++ b/unpackage/dist/dev/app-plus/__uniappquillimageresize.js @@ -0,0 +1 @@ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ImageResize=e():t.ImageResize=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=39)}([function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){var o=n(22),r="object"==typeof self&&self&&self.Object===Object&&self,i=o||r||Function("return this")();t.exports=i},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e,n){function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=o}var o=9007199254740991;t.exports=n},function(t,e,n){var o=n(50),r=n(55),i=n(87),u=i&&i.isTypedArray,c=u?r(u):o;t.exports=c},function(t,e,n){function o(t){return u(t)?r(t,!0):i(t)}var r=n(44),i=n(51),u=n(12);t.exports=o},function(t,e,n){"use strict";e.a={modules:["DisplaySize","Toolbar","Resize"]}},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.d(e,"a",function(){return c});var u=n(9),c=function(t){function e(){var t,n,i,u;o(this,e);for(var c=arguments.length,a=Array(c),s=0;s1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),this.initializeModules=function(){n.removeModules(),n.modules=n.moduleClasses.map(function(t){return new(f[t]||t)(n)}),n.modules.forEach(function(t){t.onCreate()}),n.onUpdate()},this.onUpdate=function(){n.repositionElements(),n.modules.forEach(function(t){t.onUpdate()})},this.removeModules=function(){n.modules.forEach(function(t){t.onDestroy()}),n.modules=[]},this.handleClick=function(t){if(t.target&&t.target.tagName&&"IMG"===t.target.tagName.toUpperCase()){if(n.img===t.target)return;n.img&&n.hide(),n.show(t.target)}else n.img&&n.hide()},this.show=function(t){n.img=t,n.showOverlay(),n.initializeModules()},this.showOverlay=function(){n.overlay&&n.hideOverlay(),n.quill.setSelection(null),n.setUserSelect("none"),document.addEventListener("keyup",n.checkImage,!0),n.quill.root.addEventListener("input",n.checkImage,!0),n.overlay=document.createElement("div"),n.overlay.classList.add("ql-image-overlay"),n.quill.root.parentNode.appendChild(n.overlay),n.repositionElements()},this.hideOverlay=function(){n.overlay&&(n.quill.root.parentNode.removeChild(n.overlay),n.overlay=void 0,document.removeEventListener("keyup",n.checkImage),n.quill.root.removeEventListener("input",n.checkImage),n.setUserSelect(""))},this.repositionElements=function(){if(n.overlay&&n.img){var t=n.quill.root.parentNode,e=n.img.getBoundingClientRect(),o=t.getBoundingClientRect();Object.assign(n.overlay.style,{left:e.left-o.left-1+t.scrollLeft+"px",top:e.top-o.top+t.scrollTop+"px",width:e.width+"px",height:e.height+"px"})}},this.hide=function(){n.hideOverlay(),n.removeModules(),n.img=void 0},this.setUserSelect=function(t){["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach(function(e){n.quill.root.style[e]=t,document.documentElement.style[e]=t})},this.checkImage=function(t){n.img&&(46!=t.keyCode&&8!=t.keyCode||window.Quill.find(n.img).deleteAt(0),n.hide())},this.quill=e;var c=!1;r.modules&&(c=r.modules.slice()),this.options=i()({},r,u.a),!1!==c&&(this.options.modules=c),document.execCommand("enableObjectResizing",!1,"false"),this.quill.root.addEventListener("click",this.handleClick,!1),this.quill.root.parentNode.style.position=this.quill.root.parentNode.style.position||"relative",this.moduleClasses=this.options.modules,this.modules=[]};e.default=p,window.Quill&&window.Quill.register("modules/imageResize",p)},function(t,e,n){function o(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e1?n[r-1]:void 0,c=r>2?n[2]:void 0;for(u=t.length>3&&"function"==typeof u?(r--,u):void 0,c&&i(n[0],n[1],c)&&(u=r<3?void 0:u,r=1),e=Object(e);++o-1}var r=n(4);t.exports=o},function(t,e,n){function o(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}var r=n(4);t.exports=o},function(t,e,n){function o(){this.size=0,this.__data__={hash:new r,map:new(u||i),string:new r}}var r=n(40),i=n(3),u=n(15);t.exports=o},function(t,e,n){function o(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}var r=n(6);t.exports=o},function(t,e,n){function o(t){return r(this,t).get(t)}var r=n(6);t.exports=o},function(t,e,n){function o(t){return r(this,t).has(t)}var r=n(6);t.exports=o},function(t,e,n){function o(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}var r=n(6);t.exports=o},function(t,e){function n(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}t.exports=n},function(t,e,n){(function(t){var o=n(22),r="object"==typeof e&&e&&!e.nodeType&&e,i=r&&"object"==typeof t&&t&&!t.nodeType&&t,u=i&&i.exports===r,c=u&&o.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||c&&c.binding&&c.binding("util")}catch(t){}}();t.exports=a}).call(e,n(14)(t))},function(t,e){function n(t){return r.call(t)}var o=Object.prototype,r=o.toString;t.exports=n},function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},function(t,e,n){function o(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,u=-1,c=i(o.length-e,0),a=Array(c);++u0){if(++e>=o)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var o=800,r=16,i=Date.now;t.exports=n},function(t,e,n){function o(){this.__data__=new r,this.size=0}var r=n(3);t.exports=o},function(t,e){function n(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}t.exports=n},function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e,n){function o(t,e){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length promise.resolve(callback()).then(() => value), + reason => promise.resolve(callback()).then(() => { + throw reason + }) + ) + } +}; + +if (typeof uni !== 'undefined' && uni && uni.requireGlobal) { + const global = uni.requireGlobal() + ArrayBuffer = global.ArrayBuffer + Int8Array = global.Int8Array + Uint8Array = global.Uint8Array + Uint8ClampedArray = global.Uint8ClampedArray + Int16Array = global.Int16Array + Uint16Array = global.Uint16Array + Int32Array = global.Int32Array + Uint32Array = global.Uint32Array + Float32Array = global.Float32Array + Float64Array = global.Float64Array + BigInt64Array = global.BigInt64Array + BigUint64Array = global.BigUint64Array +}; + + +(()=>{var E=Object.create;var g=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var w=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty;var y=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports);var S=(e,a,s,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of D(a))!v.call(e,l)&&l!==s&&g(e,l,{get:()=>a[l],enumerable:!(o=_(a,l))||o.enumerable});return e};var B=(e,a,s)=>(s=e!=null?E(w(e)):{},S(a||!e||!e.__esModule?g(s,"default",{value:e,enumerable:!0}):s,e));var b=y((N,m)=>{m.exports=Vue});var d={data(){return{locale:"en",fallbackLocale:"en",localization:{en:{done:"OK",cancel:"Cancel"},zh:{done:"\u5B8C\u6210",cancel:"\u53D6\u6D88"},"zh-hans":{},"zh-hant":{},messages:{}},localizationTemplate:{}}},onLoad(){this.initLocale()},created(){this.initLocale()},methods:{initLocale(){if(this.__initLocale)return;this.__initLocale=!0;let e=(plus.webview.currentWebview().extras||{}).data||{};if(e.messages&&(this.localization.messages=e.messages),e.locale){this.locale=e.locale.toLowerCase();return}let a={chs:"hans",cn:"hans",sg:"hans",cht:"hant",tw:"hant",hk:"hant",mo:"hant"},s=plus.os.language.toLowerCase().split("/")[0].replace("_","-").split("-"),o=s[1];o&&(s[1]=a[o]||o),s.length=s.length>2?2:s.length,this.locale=s.join("-")},localize(e){let a=this.locale,s=a.split("-")[0],o=this.fallbackLocale,l=n=>Object.assign({},this.localization[n],(this.localizationTemplate||{})[n]);return l("messages")[e]||l(a)[e]||l(s)[e]||l(o)[e]||e}}},p={onLoad(){this.initMessage()},methods:{initMessage(){let{from:e,callback:a,runtime:s,data:o={},useGlobalEvent:l}=plus.webview.currentWebview().extras||{};this.__from=e,this.__runtime=s,this.__page=plus.webview.currentWebview().id,this.__useGlobalEvent=l,this.data=JSON.parse(JSON.stringify(o)),plus.key.addEventListener("backbutton",()=>{typeof this.onClose=="function"?this.onClose():plus.webview.currentWebview().close("auto")});let n=this,r=function(c){let f=c.data&&c.data.__message;!f||n.__onMessageCallback&&n.__onMessageCallback(f.data)};if(this.__useGlobalEvent)weex.requireModule("globalEvent").addEventListener("plusMessage",r);else{let c=new BroadcastChannel(this.__page);c.onmessage=r}},postMessage(e={},a=!1){let s=JSON.parse(JSON.stringify({__message:{__page:this.__page,data:e,keep:a}})),o=this.__from;if(this.__runtime==="v8")this.__useGlobalEvent?plus.webview.postMessageToUniNView(s,o):new BroadcastChannel(o).postMessage(s);else{let l=plus.webview.getWebviewById(o);l&&l.evalJS(`__plusMessage&&__plusMessage(${JSON.stringify({data:s})})`)}},onMessage(e){this.__onMessageCallback=e}}};var i=B(b());var C=(e,a)=>{let s=e.__vccOpts||e;for(let[o,l]of a)s[o]=l;return s};var k={content:{"":{flex:1,alignItems:"center",justifyContent:"center",backgroundColor:"#000000"}},barcode:{"":{position:"absolute",left:0,top:0,right:0,bottom:0,zIndex:1}},"set-flash":{"":{alignItems:"center",justifyContent:"center",transform:"translateY(80px)",zIndex:2}},"image-flash":{"":{width:26,height:26,marginBottom:2}},"image-flash-text":{"":{fontSize:10,color:"#FFFFFF"}}},t=plus.barcode,A={qrCode:[t.QR,t.AZTEC,t.MAXICODE],barCode:[t.EAN13,t.EAN8,t.UPCA,t.UPCE,t.CODABAR,t.CODE128,t.CODE39,t.CODE93,t.ITF,t.RSS14,t.RSSEXPANDED],datamatrix:[t.DATAMATRIX],pdf417:[t.PDF417]},O={[t.QR]:"QR_CODE",[t.EAN13]:"EAN_13",[t.EAN8]:"EAN_8",[t.DATAMATRIX]:"DATA_MATRIX",[t.UPCA]:"UPC_A",[t.UPCE]:"UPC_E",[t.CODABAR]:"CODABAR",[t.CODE39]:"CODE_39",[t.CODE93]:"CODE_93",[t.CODE128]:"CODE_128",[t.ITF]:"CODE_25",[t.PDF417]:"PDF_417",[t.AZTEC]:"AZTEC",[t.RSS14]:"RSS_14",[t.RSSEXPANDED]:"RSSEXPANDED"},M={mixins:[p,d],data:{filters:[0,2,1],backgroud:"#000000",frameColor:"#118ce9",scanbarColor:"#118ce9",enabledFlash:!1,flashImage0:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAABjklEQVRoQ+1ZbVHEQAx9TwE4ABTcOQAknANQAKcAUAAOAAXgAHAACsDCKQiTmbYDzJZtNt2bFrJ/m6+Xl2yyU2LmhzOPH/8PgIjcADirxNyapNoffMwMiMgzgMPBHmyCLySPLCoBwJKtAbJbYaBmD1yRvBwAtBMxl5DF+DZkiwCIyBLAzsgBbki+Wm2WAlCaL6zOMvKnJO+sNksB7ALQbO1ZHfbIv5FUVs2nCIB6EZETALdmj2mFY5I6X8ynGEADQllYmL1+VzBfnV/VvQB0aj45ARyQ/Ci14QLQsOBZLe5JaikWnzEA7AN4L4hgA2Dpyb76dANwsOCq/TZhASAYKGie0a7R1lDPI0ebtF0NUi+4yfdAtxr3PEMnD6BbD0QkNfACQO05EAwMuaBqDrIVycdmTpwDuP4R0OR7QFftVRP0g+49cwOQq4DJMxAAchmofY3m/EcJBQOZbTRKKJeBKKEoIePvpFRJ1VzmciUccyCa+C81cerBkuuB7sGTE/zt+yhN7AnAqxsAvBn06n8CkyPwMZKwm+UAAAAASUVORK5CYII=",flashImage1:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUAAAA3kvI3lfY2k/VAl+43k/U3k/Q4k/M3kvI3k/M4k/Q4lPU2lPU2k/Vdq843k/WWSpNKAAAAD3RSTlMAwD+QINCAcPBgUDDgoBAE044kAAAAdklEQVQ4y2OgOrD/DwffUSTkERIfyZXAtOMbca7iVoKDDSgSbAijJqBI8J2HiX9FM2s+TOITmgQrTEIATYIJJuEA5mJ68S+Gg/0hEi0YEoxQK2gs0WyPQyKBGYeEAhPtJRaw45AIccXpwVEJekuwQyQWMFAfAACeDBJY9aXa3QAAAABJRU5ErkJggg==",autoDecodeCharSet:!1,autoZoom:!0,localizationTemplate:{en:{fail:"Recognition failure","flash.on":"Tap to turn light on","flash.off":"Tap to turn light off"},zh:{fail:"\u8BC6\u522B\u5931\u8D25","flash.on":"\u8F7B\u89E6\u7167\u4EAE","flash.off":"\u8F7B\u89E6\u5173\u95ED"}}},onLoad(){let e=this.data,a=e.scanType;this.autoDecodeCharSet=e.autoDecodeCharSet,this.autoZoom=e.autoZoom;let s=[];Array.isArray(a)&&a.length&&a.forEach(o=>{let l=A[o];l&&(s=s.concat(l))}),s.length||(s=s.concat(A.qrCode).concat(A.barCode).concat(A.datamatrix).concat(A.pdf417)),this.filters=s,this.onMessage(o=>{this.gallery()})},onUnload(){this.cancel()},onReady(){setTimeout(()=>{this.cancel(),this.start()},50)},methods:{start(){this.$refs.barcode.start({sound:this.data.sound})},scan(e){t.scan(e,(a,s,o,l)=>{this.scanSuccess(a,s,o,l)},()=>{plus.nativeUI.toast(this.localize("fail"))},this.filters,this.autoDecodeCharSet)},cancel(){this.$refs.barcode.cancel()},gallery(){plus.gallery.pick(e=>{this.scan(e)},e=>{e.code!==(weex.config.env.platform.toLowerCase()==="android"?12:-2)&&plus.nativeUI.toast(this.localize("fail"))},{multiple:!1,system:!1,filename:"_doc/uniapp_temp/gallery/",permissionAlert:!0})},onmarked(e){var a=e.detail;this.scanSuccess(a.code,a.message,a.file,a.charSet)},scanSuccess(e,a,s,o){this.postMessage({event:"marked",detail:{scanType:O[e],result:a,charSet:o||"utf8",path:s||""}})},onerror(e){this.postMessage({event:"fail",message:JSON.stringify(e)})},setFlash(){this.enabledFlash=!this.enabledFlash,this.$refs.barcode.setFlash(this.enabledFlash)}}};function I(e,a,s,o,l,n){return(0,i.openBlock)(),(0,i.createElementBlock)("scroll-view",{scrollY:!0,showScrollbar:!0,enableBackToTop:!0,bubble:"true",style:{flexDirection:"column"}},[(0,i.createElementVNode)("view",{class:"content"},[(0,i.createElementVNode)("barcode",{class:"barcode",ref:"barcode",autostart:"false",backgroud:e.backgroud,frameColor:e.frameColor,scanbarColor:e.scanbarColor,filters:e.filters,autoDecodeCharset:e.autoDecodeCharSet,autoZoom:e.autoZoom,onMarked:a[0]||(a[0]=(...r)=>n.onmarked&&n.onmarked(...r)),onError:a[1]||(a[1]=(...r)=>n.onerror&&n.onerror(...r))},null,40,["backgroud","frameColor","scanbarColor","filters","autoDecodeCharset","autoZoom"]),(0,i.createElementVNode)("view",{class:"set-flash",onClick:a[2]||(a[2]=(...r)=>n.setFlash&&n.setFlash(...r))},[(0,i.createElementVNode)("u-image",{class:"image-flash",src:e.enabledFlash?e.flashImage1:e.flashImage0,resize:"stretch"},null,8,["src"]),(0,i.createElementVNode)("u-text",{class:"image-flash-text"},(0,i.toDisplayString)(e.enabledFlash?e.localize("flash.off"):e.localize("flash.on")),1)])])])}var h=C(M,[["render",I],["styles",[k]]]);var u=plus.webview.currentWebview();if(u){let e=parseInt(u.id),a="template/__uniappscan",s={};try{s=JSON.parse(u.__query__)}catch(l){}h.mpType="page";let o=Vue.createPageApp(h,{$store:getApp({allowDefault:!0}).$store,__pageId:e,__pagePath:a,__pageQuery:s});o.provide("__globalStyles",Vue.useCssStyles([...__uniConfig.styles,...h.styles||[]])),o.mount("#root")}})(); diff --git a/unpackage/dist/dev/app-plus/__uniappsuccess.png b/unpackage/dist/dev/app-plus/__uniappsuccess.png new file mode 100644 index 0000000..c1f5bd7 Binary files /dev/null and b/unpackage/dist/dev/app-plus/__uniappsuccess.png differ diff --git a/unpackage/dist/dev/app-plus/__uniappview.html b/unpackage/dist/dev/app-plus/__uniappview.html new file mode 100644 index 0000000..039a684 --- /dev/null +++ b/unpackage/dist/dev/app-plus/__uniappview.html @@ -0,0 +1,23 @@ + + + + + View + + + + + +
+ + + + + + diff --git a/unpackage/dist/dev/app-plus/app-config-service.js b/unpackage/dist/dev/app-plus/app-config-service.js new file mode 100644 index 0000000..c0590e2 --- /dev/null +++ b/unpackage/dist/dev/app-plus/app-config-service.js @@ -0,0 +1,11 @@ + + ;(function(){ + let u=void 0,isReady=false,onReadyCallbacks=[],isServiceReady=false,onServiceReadyCallbacks=[]; + const __uniConfig = {"pages":[],"globalStyle":{"navigationBar":{"type":"default","backgroundImage":"linear-gradient(to left , #256FBC, #044D87)"},"isNVue":false},"nvue":{"compiler":"uni-app","styleCompiler":"uni-app","flex-direction":"column"},"renderer":"auto","appname":"数智产销","splashscreen":{"alwaysShowBeforeRender":true,"autoclose":true},"compilerVersion":"4.15","entryPagePath":"pages/login/login","entryPageQuery":"","realEntryPagePath":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000},"tabBar":{"position":"bottom","color":"#333333","selectedColor":"#01508B","borderStyle":"black","blurEffect":"none","fontSize":"10px","iconWidth":"24px","spacing":"3px","height":"50px","backgroundColor":"#FFFFFF","list":[{"text":"首页","pagePath":"pages/tab/index","iconPath":"/static/tab/index1.png","selectedIconPath":"/static/tab/index2.png"},{"text":"任务","pagePath":"pages/task/todotask","iconPath":"/static/tab/office1.png","selectedIconPath":"/static/tab/office2.png"},{"text":"办公","pagePath":"pages/tab/office","iconPath":"/static/tab/product1.png","selectedIconPath":"/static/tab/product2.png"},{"text":"我的","pagePath":"pages/tab/my","iconPath":"/static/tab/user1.png","selectedIconPath":"/static/tab/user2.png"}],"selectedIndex":0,"shown":true},"locales":{},"darkmode":false,"themeConfig":{}}; + const __uniRoutes = [{"path":"pages/login/login","meta":{"isQuit":true,"isEntry":true,"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/tab/index","meta":{"isQuit":true,"isTabBar":true,"tabBarIndex":0,"enablePullDownRefresh":true,"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/task/todotask","meta":{"isQuit":true,"isTabBar":true,"tabBarIndex":1,"enablePullDownRefresh":true,"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/tab/office","meta":{"isQuit":true,"isTabBar":true,"tabBarIndex":2,"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/tab/my","meta":{"isQuit":true,"isTabBar":true,"tabBarIndex":3,"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/task/index","meta":{"enablePullDownRefresh":true,"navigationBar":{"type":"default","titleText":"我的任务","titleColor":"#fff"},"isNVue":false}},{"path":"pages/task/handle","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/talk/message_list","meta":{"enablePullDownRefresh":true,"navigationBar":{"titleText":"消息","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/talk/conversation","meta":{"enablePullDownRefresh":true,"navigationBar":{"titleText":"昵称","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/talk/system","meta":{"enablePullDownRefresh":true,"navigationBar":{"titleText":"系统通知","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/document/index","meta":{"enablePullDownRefresh":true,"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/document/detail","meta":{"navigationBar":{"titleText":"详情","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/meeting/index","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/meeting/detail","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"详情","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/leave/application","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"请假申请","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/checkin/index","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/useredit/useredit","meta":{"navigationBar":{"titleText":"资料编辑","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/useredit/address","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"地址","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/useredit/add_address","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"添加地址","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/useredit/addressbook","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"通讯录","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/safe/manage","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/product/index","meta":{"enablePullDownRefresh":false,"navigationBar":{"titleText":"生产数据","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/userlist/index","meta":{"navigationBar":{"titleText":"","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/safe/detail","meta":{"navigationBar":{"style":"custom","type":"default"},"isNVue":false}},{"path":"pages/zhiban/index","meta":{"navigationBar":{"titleText":"值班信息","type":"default","titleColor":"#ffffff"},"isNVue":false}},{"path":"pages/task/self","meta":{"navigationBar":{"titleText":"本人发起","type":"default","titleColor":"#ffffff"},"isNVue":false}}].map(uniRoute=>(uniRoute.meta.route=uniRoute.path,__uniConfig.pages.push(uniRoute.path),uniRoute.path='/'+uniRoute.path,uniRoute)); + __uniConfig.styles=[];//styles + __uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); + __uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}}); + service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:16})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:u,window:u,document:u,frames:u,self:u,location:u,navigator:u,localStorage:u,history:u,Caches:u,screen:u,alert:u,confirm:u,prompt:u,fetch:u,XMLHttpRequest:u,WebSocket:u,webkit:u,print:u}}}}); + })(); + \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/app-config.js b/unpackage/dist/dev/app-plus/app-config.js new file mode 100644 index 0000000..c5168cc --- /dev/null +++ b/unpackage/dist/dev/app-plus/app-config.js @@ -0,0 +1 @@ +(function(){})(); \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/app-service.js b/unpackage/dist/dev/app-plus/app-service.js new file mode 100644 index 0000000..787d699 --- /dev/null +++ b/unpackage/dist/dev/app-plus/app-service.js @@ -0,0 +1,29048 @@ +if (typeof Promise !== "undefined" && !Promise.prototype.finally) { + Promise.prototype.finally = function(callback) { + const promise = this.constructor; + return this.then( + (value) => promise.resolve(callback()).then(() => value), + (reason) => promise.resolve(callback()).then(() => { + throw reason; + }) + ); + }; +} +; +if (typeof uni !== "undefined" && uni && uni.requireGlobal) { + const global2 = uni.requireGlobal(); + ArrayBuffer = global2.ArrayBuffer; + Int8Array = global2.Int8Array; + Uint8Array = global2.Uint8Array; + Uint8ClampedArray = global2.Uint8ClampedArray; + Int16Array = global2.Int16Array; + Uint16Array = global2.Uint16Array; + Int32Array = global2.Int32Array; + Uint32Array = global2.Uint32Array; + Float32Array = global2.Float32Array; + Float64Array = global2.Float64Array; + BigInt64Array = global2.BigInt64Array; + BigUint64Array = global2.BigUint64Array; +} +; +if (uni.restoreGlobal) { + uni.restoreGlobal(Vue, weex, plus, setTimeout, clearTimeout, setInterval, clearInterval); +} +(function(vue) { + "use strict"; + const ON_SHOW = "onShow"; + const ON_LAUNCH = "onLaunch"; + const ON_LOAD = "onLoad"; + const ON_REACH_BOTTOM = "onReachBottom"; + const ON_PULL_DOWN_REFRESH = "onPullDownRefresh"; + function requireNativePlugin(name) { + return weex.requireModule(name); + } + function formatAppLog(type, filename, ...args) { + if (uni.__log__) { + uni.__log__(type, filename, ...args); + } else { + console[type].apply(console, [...args, filename]); + } + } + function resolveEasycom(component, easycom) { + return typeof component === "string" ? easycom : component; + } + const createHook = (lifecycle) => (hook, target = vue.getCurrentInstance()) => { + !vue.isInSSRComponentSetup && vue.injectHook(lifecycle, hook, target); + }; + const onShow = /* @__PURE__ */ createHook(ON_SHOW); + const onLaunch = /* @__PURE__ */ createHook(ON_LAUNCH); + const onLoad = /* @__PURE__ */ createHook(ON_LOAD); + const onReachBottom = /* @__PURE__ */ createHook(ON_REACH_BOTTOM); + const onPullDownRefresh = /* @__PURE__ */ createHook(ON_PULL_DOWN_REFRESH); + const _imports_0 = "/static/login/logo.png"; + const _imports_1 = "/static/login/phone.png"; + const _imports_2 = "/static/login/pwd.png"; + const _imports_3 = "/static/login/eye.png"; + const _imports_4 = "/static/login/eye-off.png"; + const _imports_5 = "/static/login/nocheck.png"; + const _imports_6 = "/static/login/checked.png"; + let baseUrl$1 = "https://36.112.48.190/jeecg-boot"; + let loading = false; + function https(config) { + if (loading) + return; + if (uni.getStorageSync("logintime") && uni.getStorageSync("logintime") + 36e5 <= Date.now()) { + loading = true; + formatAppLog("log", "at utils/http.js:11", "token超时"); + uni.removeStorageSync("logintime"); + uni.navigateTo({ + url: "/pages/login/login" + }); + loading = false; + return; + } + config.url = baseUrl$1 + config.url; + let token = uni.getStorageSync("token") || ""; + config.header = { + //返回数据类型 + "content-type": "application/json;charset=utf-8", + //设置用户访问的token信息 + "X-Access-Token": token + }; + let promise = new Promise(function(resolve, reject) { + uni.request(config).then((res) => { + wx.hideLoading(); + if (res[0]) { + uni.showToast({ + title: "数据获取失败", + icon: "none", + duration: 1500 + }); + resolve(false); + } else { + let data = res.data; + resolve(data); + if (loading) + return; + if (data.code == 500) { + uni.showToast({ + title: data.message, + icon: "none", + duration: 1500 + }); + } + if (data.code == 510) { + loading = true; + uni.showToast({ + title: data.message, + icon: "none", + duration: 1500 + }); + uni.removeStorageSync("token"); + uni.removeStorageSync("user"); + uni.removeStorageSync("role"); + uni.navigateTo({ + url: "/pages/login/login" + }); + uni.removeStorageSync("logintime"); + loading = false; + } + } + }).catch((error) => { + uni.hideLoading(); + reject(error); + }); + }); + return promise; + } + function loginApi(config) { + return https({ + url: "/sys/sinopecLogin", + method: "post", + data: config + }); + } + function queryRoleApi(config) { + return https({ + url: "/appConnet/app/queryRoleByRoleIds", + method: "get", + data: config + }); + } + function getUserPermissionApi(config) { + return https({ + url: "/sys/permission/getUserPermissionByToken", + method: "get", + data: config + }); + } + function taskListApi(config) { + return https({ + url: "/act/task/list", + method: "get", + data: config + }); + } + function taskHistoryListApi(config) { + return https({ + url: "/act/task/taskHistoryList", + method: "get", + data: config + }); + } + function myApplyProcessListApi(config) { + return https({ + url: "/act/task/myApplyProcessList", + method: "get", + data: config + }); + } + function taskEntrustApi(config) { + return https({ + url: "/act/task/taskEntrust", + method: "put", + data: config + }); + } + function getProcessNodeInfoApi(config) { + return https({ + url: "/process/extActProcessNode/getProcessNodeInfo", + method: "get", + data: config + }); + } + function getHisProcessNodeInfoApi(config) { + return https({ + url: "/process/extActProcessNode/getHisProcessNodeInfo", + method: "get", + data: config + }); + } + function queryMyDeptTreeListApi(config) { + return https({ + url: "/sys/sysDepart/queryTreeList", + method: "get", + data: config + }); + } + function queryUserByDepIdApi(config) { + return https({ + url: "/sys/user/queryUserByDepId", + method: "get", + data: config + }); + } + function bpmlistApi(config) { + return https({ + url: "/cxcoagwfb/cxcOaGwfb/bpmlist", + method: "get", + data: config + }); + } + function gonggaolistApi(config) { + return https({ + url: "/cxctz/cxcTz/list", + method: "get", + data: config + }); + } + function zhibanQueryApi(config) { + return https({ + url: "/zhgl_zbgl/zhglZbglZbb/list", + method: "get", + data: config + }); + } + function zhibanApi(config) { + return https({ + url: "/zhgl_zbgl/zhglZbglZbb/homepageList", + method: "get", + data: config + }); + } + function faguiApi(config) { + return https({ + url: "/cxcoaflgf/cxcOaFlgf/zslist", + method: "get", + data: config + }); + } + function cjzhiduApi(config) { + return https({ + url: "/cxcjyglsjzdgl/cxcJyglSjzdgl/zslist", + method: "get", + data: config + }); + } + function zhiduApi(config) { + return https({ + url: "/cxczd/cxcZdgl/list", + method: "get", + data: config + }); + } + function huiyiDetailApi(config) { + return https({ + url: "/zhgl_hygl/zhglHyglHyyc/listbymainid", + method: "get", + data: config + }); + } + function userEditApi(config) { + return https({ + url: "/sys/user/editApp", + method: "PUT", + data: config + }); + } + function extActFlowDataApi(config) { + return https({ + url: "/process/extActFlowData/getProcessInfo", + method: "get", + data: config + }); + } + function processHistoryListApi(config) { + return https({ + url: "/act/task/processHistoryList", + method: "get", + data: config + }); + } + function startMutilProcessApi(config) { + return https({ + url: "/process/extActProcess/startMutilProcess", + method: "post", + data: config + }); + } + function processCompleteApi(config) { + return https({ + url: "/act/task/processComplete", + method: "post", + data: config + }); + } + function claimApi(config) { + return https({ + url: "/act/task/claim", + method: "put", + data: config + }); + } + function callBackProcessApi(config) { + return https({ + url: "/act/task/callBackProcess", + method: "put", + data: config + }); + } + function invalidProcessApi(config) { + return https({ + url: "/act/task/invalidProcess", + method: "put", + data: config + }); + } + function getCategoryItemsApi(pid) { + return https({ + url: "/sys/category/findtree", + method: "get", + data: { + pid + } + }); + } + function getProcessTaskTransInfoApi(config) { + return https({ + url: "/act/task/getProcessTaskTransInfo", + method: "get", + data: config + }); + } + function upDateAppApi(config) { + return https({ + url: "/sys/common/upDateApp", + method: "get", + data: config + }); + } + function cxcDapingApi(config) { + return https({ + url: "/CxcDaping/cxcDaping/list", + method: "get", + data: config + }); + } + function dbSxxqQueryByIdApi(config) { + return https({ + url: "/cxcdbxt/dbSxxq/queryById", + method: "get", + data: config + }); + } + function dbJbxxQueryByIdApi(config) { + return https({ + url: "/cxcdbxt/dbJbxx/queryById", + method: "get", + data: config + }); + } + function cxcJurisdictionApi(config) { + return https({ + url: "/CxcJurisdiction/cxcJurisdiction/queryById", + method: "get", + data: config + }); + } + var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {}; + function getDefaultExportFromCjs$1(x) { + return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x; + } + var base64 = { exports: {} }; + /*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */ + base64.exports; + (function(module, exports) { + (function(root) { + var freeExports = exports; + var freeModule = module && module.exports == freeExports && module; + var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal; + if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) { + root = freeGlobal; + } + var InvalidCharacterError = function(message) { + this.message = message; + }; + InvalidCharacterError.prototype = new Error(); + InvalidCharacterError.prototype.name = "InvalidCharacterError"; + var error = function(message) { + throw new InvalidCharacterError(message); + }; + var TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + var REGEX_SPACE_CHARACTERS = /[\t\n\f\r ]/g; + var decode = function(input) { + input = String(input).replace(REGEX_SPACE_CHARACTERS, ""); + var length = input.length; + if (length % 4 == 0) { + input = input.replace(/==?$/, ""); + length = input.length; + } + if (length % 4 == 1 || // http://whatwg.org/C#alphanumeric-ascii-characters + /[^+a-zA-Z0-9/]/.test(input)) { + error( + "Invalid character: the string to be decoded is not correctly encoded." + ); + } + var bitCounter = 0; + var bitStorage; + var buffer; + var output = ""; + var position = -1; + while (++position < length) { + buffer = TABLE.indexOf(input.charAt(position)); + bitStorage = bitCounter % 4 ? bitStorage * 64 + buffer : buffer; + if (bitCounter++ % 4) { + output += String.fromCharCode( + 255 & bitStorage >> (-2 * bitCounter & 6) + ); + } + } + return output; + }; + var encode = function(input) { + input = String(input); + if (/[^\0-\xFF]/.test(input)) { + error( + "The string to be encoded contains characters outside of the Latin1 range." + ); + } + var padding = input.length % 3; + var output = ""; + var position = -1; + var a2; + var b2; + var c2; + var buffer; + var length = input.length - padding; + while (++position < length) { + a2 = input.charCodeAt(position) << 16; + b2 = input.charCodeAt(++position) << 8; + c2 = input.charCodeAt(++position); + buffer = a2 + b2 + c2; + output += TABLE.charAt(buffer >> 18 & 63) + TABLE.charAt(buffer >> 12 & 63) + TABLE.charAt(buffer >> 6 & 63) + TABLE.charAt(buffer & 63); + } + if (padding == 2) { + a2 = input.charCodeAt(position) << 8; + b2 = input.charCodeAt(++position); + buffer = a2 + b2; + output += TABLE.charAt(buffer >> 10) + TABLE.charAt(buffer >> 4 & 63) + TABLE.charAt(buffer << 2 & 63) + "="; + } else if (padding == 1) { + buffer = input.charCodeAt(position); + output += TABLE.charAt(buffer >> 2) + TABLE.charAt(buffer << 4 & 63) + "=="; + } + return output; + }; + var base642 = { + "encode": encode, + "decode": decode, + "version": "1.0.0" + }; + if (freeExports && !freeExports.nodeType) { + if (freeModule) { + freeModule.exports = base642; + } else { + for (var key in base642) { + base642.hasOwnProperty(key) && (freeExports[key] = base642[key]); + } + } + } else { + root.base64 = base642; + } + })(commonjsGlobal); + })(base64, base64.exports); + var base64Exports = base64.exports; + const Base64 = /* @__PURE__ */ getDefaultExportFromCjs$1(base64Exports); + var isVue2 = false; + function set(target, key, val) { + if (Array.isArray(target)) { + target.length = Math.max(target.length, key); + target.splice(key, 1, val); + return val; + } + target[key] = val; + return val; + } + function del(target, key) { + if (Array.isArray(target)) { + target.splice(key, 1); + return; + } + delete target[key]; + } + function getDevtoolsGlobalHook() { + return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__; + } + function getTarget() { + return typeof navigator !== "undefined" && typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {}; + } + const isProxyAvailable = typeof Proxy === "function"; + const HOOK_SETUP = "devtools-plugin:setup"; + const HOOK_PLUGIN_SETTINGS_SET = "plugin:settings:set"; + let supported; + let perf; + function isPerformanceSupported() { + var _a; + if (supported !== void 0) { + return supported; + } + if (typeof window !== "undefined" && window.performance) { + supported = true; + perf = window.performance; + } else if (typeof global !== "undefined" && ((_a = global.perf_hooks) === null || _a === void 0 ? void 0 : _a.performance)) { + supported = true; + perf = global.perf_hooks.performance; + } else { + supported = false; + } + return supported; + } + function now() { + return isPerformanceSupported() ? perf.now() : Date.now(); + } + class ApiProxy { + constructor(plugin, hook) { + this.target = null; + this.targetQueue = []; + this.onQueue = []; + this.plugin = plugin; + this.hook = hook; + const defaultSettings = {}; + if (plugin.settings) { + for (const id in plugin.settings) { + const item = plugin.settings[id]; + defaultSettings[id] = item.defaultValue; + } + } + const localSettingsSaveId = `__vue-devtools-plugin-settings__${plugin.id}`; + let currentSettings = Object.assign({}, defaultSettings); + try { + const raw = localStorage.getItem(localSettingsSaveId); + const data = JSON.parse(raw); + Object.assign(currentSettings, data); + } catch (e2) { + } + this.fallbacks = { + getSettings() { + return currentSettings; + }, + setSettings(value) { + try { + localStorage.setItem(localSettingsSaveId, JSON.stringify(value)); + } catch (e2) { + } + currentSettings = value; + }, + now() { + return now(); + } + }; + if (hook) { + hook.on(HOOK_PLUGIN_SETTINGS_SET, (pluginId, value) => { + if (pluginId === this.plugin.id) { + this.fallbacks.setSettings(value); + } + }); + } + this.proxiedOn = new Proxy({}, { + get: (_target, prop) => { + if (this.target) { + return this.target.on[prop]; + } else { + return (...args) => { + this.onQueue.push({ + method: prop, + args + }); + }; + } + } + }); + this.proxiedTarget = new Proxy({}, { + get: (_target, prop) => { + if (this.target) { + return this.target[prop]; + } else if (prop === "on") { + return this.proxiedOn; + } else if (Object.keys(this.fallbacks).includes(prop)) { + return (...args) => { + this.targetQueue.push({ + method: prop, + args, + resolve: () => { + } + }); + return this.fallbacks[prop](...args); + }; + } else { + return (...args) => { + return new Promise((resolve) => { + this.targetQueue.push({ + method: prop, + args, + resolve + }); + }); + }; + } + } + }); + } + async setRealTarget(target) { + this.target = target; + for (const item of this.onQueue) { + this.target.on[item.method](...item.args); + } + for (const item of this.targetQueue) { + item.resolve(await this.target[item.method](...item.args)); + } + } + } + function setupDevtoolsPlugin(pluginDescriptor, setupFn) { + const descriptor = pluginDescriptor; + const target = getTarget(); + const hook = getDevtoolsGlobalHook(); + const enableProxy = isProxyAvailable && descriptor.enableEarlyProxy; + if (hook && (target.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !enableProxy)) { + hook.emit(HOOK_SETUP, pluginDescriptor, setupFn); + } else { + const proxy = enableProxy ? new ApiProxy(descriptor, hook) : null; + const list = target.__VUE_DEVTOOLS_PLUGINS__ = target.__VUE_DEVTOOLS_PLUGINS__ || []; + list.push({ + pluginDescriptor: descriptor, + setupFn, + proxy + }); + if (proxy) + setupFn(proxy.proxiedTarget); + } + } + /*! + * pinia v2.1.7 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */ + let activePinia; + const setActivePinia = (pinia2) => activePinia = pinia2; + const piniaSymbol = Symbol("pinia"); + function isPlainObject(o2) { + return o2 && typeof o2 === "object" && Object.prototype.toString.call(o2) === "[object Object]" && typeof o2.toJSON !== "function"; + } + var MutationType; + (function(MutationType2) { + MutationType2["direct"] = "direct"; + MutationType2["patchObject"] = "patch object"; + MutationType2["patchFunction"] = "patch function"; + })(MutationType || (MutationType = {})); + const IS_CLIENT = typeof window !== "undefined"; + const USE_DEVTOOLS = IS_CLIENT; + const _global = /* @__PURE__ */ (() => typeof window === "object" && window.window === window ? window : typeof self === "object" && self.self === self ? self : typeof global === "object" && global.global === global ? global : typeof globalThis === "object" ? globalThis : { HTMLElement: null })(); + function bom(blob, { autoBom = false } = {}) { + if (autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(blob.type)) { + return new Blob([String.fromCharCode(65279), blob], { type: blob.type }); + } + return blob; + } + function download(url, name, opts) { + const xhr = new XMLHttpRequest(); + xhr.open("GET", url); + xhr.responseType = "blob"; + xhr.onload = function() { + saveAs(xhr.response, name, opts); + }; + xhr.onerror = function() { + console.error("could not download file"); + }; + xhr.send(); + } + function corsEnabled(url) { + const xhr = new XMLHttpRequest(); + xhr.open("HEAD", url, false); + try { + xhr.send(); + } catch (e2) { + } + return xhr.status >= 200 && xhr.status <= 299; + } + function click(node) { + try { + node.dispatchEvent(new MouseEvent("click")); + } catch (e2) { + const evt = document.createEvent("MouseEvents"); + evt.initMouseEvent("click", true, true, window, 0, 0, 0, 80, 20, false, false, false, false, 0, null); + node.dispatchEvent(evt); + } + } + const _navigator = typeof navigator === "object" ? navigator : { userAgent: "" }; + const isMacOSWebView = /* @__PURE__ */ (() => /Macintosh/.test(_navigator.userAgent) && /AppleWebKit/.test(_navigator.userAgent) && !/Safari/.test(_navigator.userAgent))(); + const saveAs = !IS_CLIENT ? () => { + } : ( + // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program + typeof HTMLAnchorElement !== "undefined" && "download" in HTMLAnchorElement.prototype && !isMacOSWebView ? downloadSaveAs : ( + // Use msSaveOrOpenBlob as a second approach + "msSaveOrOpenBlob" in _navigator ? msSaveAs : ( + // Fallback to using FileReader and a popup + fileSaverSaveAs + ) + ) + ); + function downloadSaveAs(blob, name = "download", opts) { + const a2 = document.createElement("a"); + a2.download = name; + a2.rel = "noopener"; + if (typeof blob === "string") { + a2.href = blob; + if (a2.origin !== location.origin) { + if (corsEnabled(a2.href)) { + download(blob, name, opts); + } else { + a2.target = "_blank"; + click(a2); + } + } else { + click(a2); + } + } else { + a2.href = URL.createObjectURL(blob); + setTimeout(function() { + URL.revokeObjectURL(a2.href); + }, 4e4); + setTimeout(function() { + click(a2); + }, 0); + } + } + function msSaveAs(blob, name = "download", opts) { + if (typeof blob === "string") { + if (corsEnabled(blob)) { + download(blob, name, opts); + } else { + const a2 = document.createElement("a"); + a2.href = blob; + a2.target = "_blank"; + setTimeout(function() { + click(a2); + }); + } + } else { + navigator.msSaveOrOpenBlob(bom(blob, opts), name); + } + } + function fileSaverSaveAs(blob, name, opts, popup) { + popup = popup || open("", "_blank"); + if (popup) { + popup.document.title = popup.document.body.innerText = "downloading..."; + } + if (typeof blob === "string") + return download(blob, name, opts); + const force = blob.type === "application/octet-stream"; + const isSafari = /constructor/i.test(String(_global.HTMLElement)) || "safari" in _global; + const isChromeIOS = /CriOS\/[\d]+/.test(navigator.userAgent); + if ((isChromeIOS || force && isSafari || isMacOSWebView) && typeof FileReader !== "undefined") { + const reader = new FileReader(); + reader.onloadend = function() { + let url = reader.result; + if (typeof url !== "string") { + popup = null; + throw new Error("Wrong reader.result type"); + } + url = isChromeIOS ? url : url.replace(/^data:[^;]*;/, "data:attachment/file;"); + if (popup) { + popup.location.href = url; + } else { + location.assign(url); + } + popup = null; + }; + reader.readAsDataURL(blob); + } else { + const url = URL.createObjectURL(blob); + if (popup) + popup.location.assign(url); + else + location.href = url; + popup = null; + setTimeout(function() { + URL.revokeObjectURL(url); + }, 4e4); + } + } + function toastMessage(message, type) { + const piniaMessage = "🍍 " + message; + if (typeof __VUE_DEVTOOLS_TOAST__ === "function") { + __VUE_DEVTOOLS_TOAST__(piniaMessage, type); + } else if (type === "error") { + console.error(piniaMessage); + } else if (type === "warn") { + console.warn(piniaMessage); + } else { + console.log(piniaMessage); + } + } + function isPinia(o2) { + return "_a" in o2 && "install" in o2; + } + function checkClipboardAccess() { + if (!("clipboard" in navigator)) { + toastMessage(`Your browser doesn't support the Clipboard API`, "error"); + return true; + } + } + function checkNotFocusedError(error) { + if (error instanceof Error && error.message.toLowerCase().includes("document is not focused")) { + toastMessage('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"); + return true; + } + return false; + } + async function actionGlobalCopyState(pinia2) { + if (checkClipboardAccess()) + return; + try { + await navigator.clipboard.writeText(JSON.stringify(pinia2.state.value)); + toastMessage("Global state copied to clipboard."); + } catch (error) { + if (checkNotFocusedError(error)) + return; + toastMessage(`Failed to serialize the state. Check the console for more details.`, "error"); + console.error(error); + } + } + async function actionGlobalPasteState(pinia2) { + if (checkClipboardAccess()) + return; + try { + loadStoresState(pinia2, JSON.parse(await navigator.clipboard.readText())); + toastMessage("Global state pasted from clipboard."); + } catch (error) { + if (checkNotFocusedError(error)) + return; + toastMessage(`Failed to deserialize the state from clipboard. Check the console for more details.`, "error"); + console.error(error); + } + } + async function actionGlobalSaveState(pinia2) { + try { + saveAs(new Blob([JSON.stringify(pinia2.state.value)], { + type: "text/plain;charset=utf-8" + }), "pinia-state.json"); + } catch (error) { + toastMessage(`Failed to export the state as JSON. Check the console for more details.`, "error"); + console.error(error); + } + } + let fileInput; + function getFileOpener() { + if (!fileInput) { + fileInput = document.createElement("input"); + fileInput.type = "file"; + fileInput.accept = ".json"; + } + function openFile() { + return new Promise((resolve, reject) => { + fileInput.onchange = async () => { + const files = fileInput.files; + if (!files) + return resolve(null); + const file = files.item(0); + if (!file) + return resolve(null); + return resolve({ text: await file.text(), file }); + }; + fileInput.oncancel = () => resolve(null); + fileInput.onerror = reject; + fileInput.click(); + }); + } + return openFile; + } + async function actionGlobalOpenStateFile(pinia2) { + try { + const open2 = getFileOpener(); + const result = await open2(); + if (!result) + return; + const { text, file } = result; + loadStoresState(pinia2, JSON.parse(text)); + toastMessage(`Global state imported from "${file.name}".`); + } catch (error) { + toastMessage(`Failed to import the state from JSON. Check the console for more details.`, "error"); + console.error(error); + } + } + function loadStoresState(pinia2, state) { + for (const key in state) { + const storeState = pinia2.state.value[key]; + if (storeState) { + Object.assign(storeState, state[key]); + } else { + pinia2.state.value[key] = state[key]; + } + } + } + function formatDisplay(display) { + return { + _custom: { + display + } + }; + } + const PINIA_ROOT_LABEL = "🍍 Pinia (root)"; + const PINIA_ROOT_ID = "_root"; + function formatStoreForInspectorTree(store) { + return isPinia(store) ? { + id: PINIA_ROOT_ID, + label: PINIA_ROOT_LABEL + } : { + id: store.$id, + label: store.$id + }; + } + function formatStoreForInspectorState(store) { + if (isPinia(store)) { + const storeNames = Array.from(store._s.keys()); + const storeMap = store._s; + const state2 = { + state: storeNames.map((storeId) => ({ + editable: true, + key: storeId, + value: store.state.value[storeId] + })), + getters: storeNames.filter((id) => storeMap.get(id)._getters).map((id) => { + const store2 = storeMap.get(id); + return { + editable: false, + key: id, + value: store2._getters.reduce((getters, key) => { + getters[key] = store2[key]; + return getters; + }, {}) + }; + }) + }; + return state2; + } + const state = { + state: Object.keys(store.$state).map((key) => ({ + editable: true, + key, + value: store.$state[key] + })) + }; + if (store._getters && store._getters.length) { + state.getters = store._getters.map((getterName) => ({ + editable: false, + key: getterName, + value: store[getterName] + })); + } + if (store._customProperties.size) { + state.customProperties = Array.from(store._customProperties).map((key) => ({ + editable: true, + key, + value: store[key] + })); + } + return state; + } + function formatEventData(events) { + if (!events) + return {}; + if (Array.isArray(events)) { + return events.reduce((data, event) => { + data.keys.push(event.key); + data.operations.push(event.type); + data.oldValue[event.key] = event.oldValue; + data.newValue[event.key] = event.newValue; + return data; + }, { + oldValue: {}, + keys: [], + operations: [], + newValue: {} + }); + } else { + return { + operation: formatDisplay(events.type), + key: formatDisplay(events.key), + oldValue: events.oldValue, + newValue: events.newValue + }; + } + } + function formatMutationType(type) { + switch (type) { + case MutationType.direct: + return "mutation"; + case MutationType.patchFunction: + return "$patch"; + case MutationType.patchObject: + return "$patch"; + default: + return "unknown"; + } + } + let isTimelineActive = true; + const componentStateTypes = []; + const MUTATIONS_LAYER_ID = "pinia:mutations"; + const INSPECTOR_ID = "pinia"; + const { assign: assign$1 } = Object; + const getStoreType = (id) => "🍍 " + id; + function registerPiniaDevtools(app, pinia2) { + setupDevtoolsPlugin({ + id: "dev.esm.pinia", + label: "Pinia 🍍", + logo: "https://pinia.vuejs.org/logo.svg", + packageName: "pinia", + homepage: "https://pinia.vuejs.org", + componentStateTypes, + app + }, (api) => { + if (typeof api.now !== "function") { + toastMessage("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."); + } + api.addTimelineLayer({ + id: MUTATIONS_LAYER_ID, + label: `Pinia 🍍`, + color: 15064968 + }); + api.addInspector({ + id: INSPECTOR_ID, + label: "Pinia 🍍", + icon: "storage", + treeFilterPlaceholder: "Search stores", + actions: [ + { + icon: "content_copy", + action: () => { + actionGlobalCopyState(pinia2); + }, + tooltip: "Serialize and copy the state" + }, + { + icon: "content_paste", + action: async () => { + await actionGlobalPasteState(pinia2); + api.sendInspectorTree(INSPECTOR_ID); + api.sendInspectorState(INSPECTOR_ID); + }, + tooltip: "Replace the state with the content of your clipboard" + }, + { + icon: "save", + action: () => { + actionGlobalSaveState(pinia2); + }, + tooltip: "Save the state as a JSON file" + }, + { + icon: "folder_open", + action: async () => { + await actionGlobalOpenStateFile(pinia2); + api.sendInspectorTree(INSPECTOR_ID); + api.sendInspectorState(INSPECTOR_ID); + }, + tooltip: "Import the state from a JSON file" + } + ], + nodeActions: [ + { + icon: "restore", + tooltip: 'Reset the state (with "$reset")', + action: (nodeId) => { + const store = pinia2._s.get(nodeId); + if (!store) { + toastMessage(`Cannot reset "${nodeId}" store because it wasn't found.`, "warn"); + } else if (typeof store.$reset !== "function") { + toastMessage(`Cannot reset "${nodeId}" store because it doesn't have a "$reset" method implemented.`, "warn"); + } else { + store.$reset(); + toastMessage(`Store "${nodeId}" reset.`); + } + } + } + ] + }); + api.on.inspectComponent((payload, ctx) => { + const proxy = payload.componentInstance && payload.componentInstance.proxy; + if (proxy && proxy._pStores) { + const piniaStores = payload.componentInstance.proxy._pStores; + Object.values(piniaStores).forEach((store) => { + payload.instanceData.state.push({ + type: getStoreType(store.$id), + key: "state", + editable: true, + value: store._isOptionsAPI ? { + _custom: { + value: vue.toRaw(store.$state), + actions: [ + { + icon: "restore", + tooltip: "Reset the state of this store", + action: () => store.$reset() + } + ] + } + } : ( + // NOTE: workaround to unwrap transferred refs + Object.keys(store.$state).reduce((state, key) => { + state[key] = store.$state[key]; + return state; + }, {}) + ) + }); + if (store._getters && store._getters.length) { + payload.instanceData.state.push({ + type: getStoreType(store.$id), + key: "getters", + editable: false, + value: store._getters.reduce((getters, key) => { + try { + getters[key] = store[key]; + } catch (error) { + getters[key] = error; + } + return getters; + }, {}) + }); + } + }); + } + }); + api.on.getInspectorTree((payload) => { + if (payload.app === app && payload.inspectorId === INSPECTOR_ID) { + let stores = [pinia2]; + stores = stores.concat(Array.from(pinia2._s.values())); + payload.rootNodes = (payload.filter ? stores.filter((store) => "$id" in store ? store.$id.toLowerCase().includes(payload.filter.toLowerCase()) : PINIA_ROOT_LABEL.toLowerCase().includes(payload.filter.toLowerCase())) : stores).map(formatStoreForInspectorTree); + } + }); + api.on.getInspectorState((payload) => { + if (payload.app === app && payload.inspectorId === INSPECTOR_ID) { + const inspectedStore = payload.nodeId === PINIA_ROOT_ID ? pinia2 : pinia2._s.get(payload.nodeId); + if (!inspectedStore) { + return; + } + if (inspectedStore) { + payload.state = formatStoreForInspectorState(inspectedStore); + } + } + }); + api.on.editInspectorState((payload, ctx) => { + if (payload.app === app && payload.inspectorId === INSPECTOR_ID) { + const inspectedStore = payload.nodeId === PINIA_ROOT_ID ? pinia2 : pinia2._s.get(payload.nodeId); + if (!inspectedStore) { + return toastMessage(`store "${payload.nodeId}" not found`, "error"); + } + const { path } = payload; + if (!isPinia(inspectedStore)) { + if (path.length !== 1 || !inspectedStore._customProperties.has(path[0]) || path[0] in inspectedStore.$state) { + path.unshift("$state"); + } + } else { + path.unshift("state"); + } + isTimelineActive = false; + payload.set(inspectedStore, path, payload.state.value); + isTimelineActive = true; + } + }); + api.on.editComponentState((payload) => { + if (payload.type.startsWith("🍍")) { + const storeId = payload.type.replace(/^🍍\s*/, ""); + const store = pinia2._s.get(storeId); + if (!store) { + return toastMessage(`store "${storeId}" not found`, "error"); + } + const { path } = payload; + if (path[0] !== "state") { + return toastMessage(`Invalid path for store "${storeId}": +${path} +Only state can be modified.`); + } + path[0] = "$state"; + isTimelineActive = false; + payload.set(store, path, payload.state.value); + isTimelineActive = true; + } + }); + }); + } + function addStoreToDevtools(app, store) { + if (!componentStateTypes.includes(getStoreType(store.$id))) { + componentStateTypes.push(getStoreType(store.$id)); + } + setupDevtoolsPlugin({ + id: "dev.esm.pinia", + label: "Pinia 🍍", + logo: "https://pinia.vuejs.org/logo.svg", + packageName: "pinia", + homepage: "https://pinia.vuejs.org", + componentStateTypes, + app, + settings: { + logStoreChanges: { + label: "Notify about new/deleted stores", + type: "boolean", + defaultValue: true + } + // useEmojis: { + // label: 'Use emojis in messages ⚡️', + // type: 'boolean', + // defaultValue: true, + // }, + } + }, (api) => { + const now2 = typeof api.now === "function" ? api.now.bind(api) : Date.now; + store.$onAction(({ after, onError, name, args }) => { + const groupId = runningActionId++; + api.addTimelineEvent({ + layerId: MUTATIONS_LAYER_ID, + event: { + time: now2(), + title: "🛫 " + name, + subtitle: "start", + data: { + store: formatDisplay(store.$id), + action: formatDisplay(name), + args + }, + groupId + } + }); + after((result) => { + activeAction = void 0; + api.addTimelineEvent({ + layerId: MUTATIONS_LAYER_ID, + event: { + time: now2(), + title: "🛬 " + name, + subtitle: "end", + data: { + store: formatDisplay(store.$id), + action: formatDisplay(name), + args, + result + }, + groupId + } + }); + }); + onError((error) => { + activeAction = void 0; + api.addTimelineEvent({ + layerId: MUTATIONS_LAYER_ID, + event: { + time: now2(), + logType: "error", + title: "💥 " + name, + subtitle: "end", + data: { + store: formatDisplay(store.$id), + action: formatDisplay(name), + args, + error + }, + groupId + } + }); + }); + }, true); + store._customProperties.forEach((name) => { + vue.watch(() => vue.unref(store[name]), (newValue, oldValue) => { + api.notifyComponentUpdate(); + api.sendInspectorState(INSPECTOR_ID); + if (isTimelineActive) { + api.addTimelineEvent({ + layerId: MUTATIONS_LAYER_ID, + event: { + time: now2(), + title: "Change", + subtitle: name, + data: { + newValue, + oldValue + }, + groupId: activeAction + } + }); + } + }, { deep: true }); + }); + store.$subscribe(({ events, type }, state) => { + api.notifyComponentUpdate(); + api.sendInspectorState(INSPECTOR_ID); + if (!isTimelineActive) + return; + const eventData = { + time: now2(), + title: formatMutationType(type), + data: assign$1({ store: formatDisplay(store.$id) }, formatEventData(events)), + groupId: activeAction + }; + if (type === MutationType.patchFunction) { + eventData.subtitle = "⤵️"; + } else if (type === MutationType.patchObject) { + eventData.subtitle = "🧩"; + } else if (events && !Array.isArray(events)) { + eventData.subtitle = events.type; + } + if (events) { + eventData.data["rawEvent(s)"] = { + _custom: { + display: "DebuggerEvent", + type: "object", + tooltip: "raw DebuggerEvent[]", + value: events + } + }; + } + api.addTimelineEvent({ + layerId: MUTATIONS_LAYER_ID, + event: eventData + }); + }, { detached: true, flush: "sync" }); + const hotUpdate = store._hotUpdate; + store._hotUpdate = vue.markRaw((newStore) => { + hotUpdate(newStore); + api.addTimelineEvent({ + layerId: MUTATIONS_LAYER_ID, + event: { + time: now2(), + title: "🔥 " + store.$id, + subtitle: "HMR update", + data: { + store: formatDisplay(store.$id), + info: formatDisplay(`HMR update`) + } + } + }); + api.notifyComponentUpdate(); + api.sendInspectorTree(INSPECTOR_ID); + api.sendInspectorState(INSPECTOR_ID); + }); + const { $dispose } = store; + store.$dispose = () => { + $dispose(); + api.notifyComponentUpdate(); + api.sendInspectorTree(INSPECTOR_ID); + api.sendInspectorState(INSPECTOR_ID); + api.getSettings().logStoreChanges && toastMessage(`Disposed "${store.$id}" store 🗑`); + }; + api.notifyComponentUpdate(); + api.sendInspectorTree(INSPECTOR_ID); + api.sendInspectorState(INSPECTOR_ID); + api.getSettings().logStoreChanges && toastMessage(`"${store.$id}" store installed 🆕`); + }); + } + let runningActionId = 0; + let activeAction; + function patchActionForGrouping(store, actionNames, wrapWithProxy) { + const actions = actionNames.reduce((storeActions, actionName) => { + storeActions[actionName] = vue.toRaw(store)[actionName]; + return storeActions; + }, {}); + for (const actionName in actions) { + store[actionName] = function() { + const _actionId = runningActionId; + const trackedStore = wrapWithProxy ? new Proxy(store, { + get(...args) { + activeAction = _actionId; + return Reflect.get(...args); + }, + set(...args) { + activeAction = _actionId; + return Reflect.set(...args); + } + }) : store; + activeAction = _actionId; + const retValue = actions[actionName].apply(trackedStore, arguments); + activeAction = void 0; + return retValue; + }; + } + } + function devtoolsPlugin({ app, store, options }) { + if (store.$id.startsWith("__hot:")) { + return; + } + store._isOptionsAPI = !!options.state; + patchActionForGrouping(store, Object.keys(options.actions), store._isOptionsAPI); + const originalHotUpdate = store._hotUpdate; + vue.toRaw(store)._hotUpdate = function(newStore) { + originalHotUpdate.apply(this, arguments); + patchActionForGrouping(store, Object.keys(newStore._hmrPayload.actions), !!store._isOptionsAPI); + }; + addStoreToDevtools( + app, + // FIXME: is there a way to allow the assignment from Store to StoreGeneric? + store + ); + } + function createPinia() { + const scope = vue.effectScope(true); + const state = scope.run(() => vue.ref({})); + let _p = []; + let toBeInstalled = []; + const pinia2 = vue.markRaw({ + install(app) { + setActivePinia(pinia2); + { + pinia2._a = app; + app.provide(piniaSymbol, pinia2); + app.config.globalProperties.$pinia = pinia2; + if (USE_DEVTOOLS) { + registerPiniaDevtools(app, pinia2); + } + toBeInstalled.forEach((plugin) => _p.push(plugin)); + toBeInstalled = []; + } + }, + use(plugin) { + if (!this._a && !isVue2) { + toBeInstalled.push(plugin); + } else { + _p.push(plugin); + } + return this; + }, + _p, + // it's actually undefined here + // @ts-expect-error + _a: null, + _e: scope, + _s: /* @__PURE__ */ new Map(), + state + }); + if (USE_DEVTOOLS && typeof Proxy !== "undefined") { + pinia2.use(devtoolsPlugin); + } + return pinia2; + } + function patchObject(newState, oldState) { + for (const key in oldState) { + const subPatch = oldState[key]; + if (!(key in newState)) { + continue; + } + const targetValue = newState[key]; + if (isPlainObject(targetValue) && isPlainObject(subPatch) && !vue.isRef(subPatch) && !vue.isReactive(subPatch)) { + newState[key] = patchObject(targetValue, subPatch); + } else { + { + newState[key] = subPatch; + } + } + } + return newState; + } + const noop = () => { + }; + function addSubscription(subscriptions, callback, detached, onCleanup = noop) { + subscriptions.push(callback); + const removeSubscription = () => { + const idx = subscriptions.indexOf(callback); + if (idx > -1) { + subscriptions.splice(idx, 1); + onCleanup(); + } + }; + if (!detached && vue.getCurrentScope()) { + vue.onScopeDispose(removeSubscription); + } + return removeSubscription; + } + function triggerSubscriptions(subscriptions, ...args) { + subscriptions.slice().forEach((callback) => { + callback(...args); + }); + } + const fallbackRunWithContext = (fn) => fn(); + function mergeReactiveObjects(target, patchToApply) { + if (target instanceof Map && patchToApply instanceof Map) { + patchToApply.forEach((value, key) => target.set(key, value)); + } + if (target instanceof Set && patchToApply instanceof Set) { + patchToApply.forEach(target.add, target); + } + for (const key in patchToApply) { + if (!patchToApply.hasOwnProperty(key)) + continue; + const subPatch = patchToApply[key]; + const targetValue = target[key]; + if (isPlainObject(targetValue) && isPlainObject(subPatch) && target.hasOwnProperty(key) && !vue.isRef(subPatch) && !vue.isReactive(subPatch)) { + target[key] = mergeReactiveObjects(targetValue, subPatch); + } else { + target[key] = subPatch; + } + } + return target; + } + const skipHydrateSymbol = Symbol("pinia:skipHydration"); + function shouldHydrate(obj) { + return !isPlainObject(obj) || !obj.hasOwnProperty(skipHydrateSymbol); + } + const { assign } = Object; + function isComputed(o2) { + return !!(vue.isRef(o2) && o2.effect); + } + function createOptionsStore(id, options, pinia2, hot) { + const { state, actions, getters } = options; + const initialState = pinia2.state.value[id]; + let store; + function setup() { + if (!initialState && !hot) { + { + pinia2.state.value[id] = state ? state() : {}; + } + } + const localState = hot ? ( + // use ref() to unwrap refs inside state TODO: check if this is still necessary + vue.toRefs(vue.ref(state ? state() : {}).value) + ) : vue.toRefs(pinia2.state.value[id]); + return assign(localState, actions, Object.keys(getters || {}).reduce((computedGetters, name) => { + if (name in localState) { + console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${name}" in store "${id}".`); + } + computedGetters[name] = vue.markRaw(vue.computed(() => { + setActivePinia(pinia2); + const store2 = pinia2._s.get(id); + return getters[name].call(store2, store2); + })); + return computedGetters; + }, {})); + } + store = createSetupStore(id, setup, options, pinia2, hot, true); + return store; + } + function createSetupStore($id, setup, options = {}, pinia2, hot, isOptionsStore) { + let scope; + const optionsForPlugin = assign({ actions: {} }, options); + if (!pinia2._e.active) { + throw new Error("Pinia destroyed"); + } + const $subscribeOptions = { + deep: true + // flush: 'post', + }; + { + $subscribeOptions.onTrigger = (event) => { + if (isListening) { + debuggerEvents = event; + } else if (isListening == false && !store._hotUpdating) { + if (Array.isArray(debuggerEvents)) { + debuggerEvents.push(event); + } else { + console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."); + } + } + }; + } + let isListening; + let isSyncListening; + let subscriptions = []; + let actionSubscriptions = []; + let debuggerEvents; + const initialState = pinia2.state.value[$id]; + if (!isOptionsStore && !initialState && !hot) { + { + pinia2.state.value[$id] = {}; + } + } + const hotState = vue.ref({}); + let activeListener; + function $patch(partialStateOrMutator) { + let subscriptionMutation; + isListening = isSyncListening = false; + { + debuggerEvents = []; + } + if (typeof partialStateOrMutator === "function") { + partialStateOrMutator(pinia2.state.value[$id]); + subscriptionMutation = { + type: MutationType.patchFunction, + storeId: $id, + events: debuggerEvents + }; + } else { + mergeReactiveObjects(pinia2.state.value[$id], partialStateOrMutator); + subscriptionMutation = { + type: MutationType.patchObject, + payload: partialStateOrMutator, + storeId: $id, + events: debuggerEvents + }; + } + const myListenerId = activeListener = Symbol(); + vue.nextTick().then(() => { + if (activeListener === myListenerId) { + isListening = true; + } + }); + isSyncListening = true; + triggerSubscriptions(subscriptions, subscriptionMutation, pinia2.state.value[$id]); + } + const $reset = isOptionsStore ? function $reset2() { + const { state } = options; + const newState = state ? state() : {}; + this.$patch(($state) => { + assign($state, newState); + }); + } : ( + /* istanbul ignore next */ + () => { + throw new Error(`🍍: Store "${$id}" is built using the setup syntax and does not implement $reset().`); + } + ); + function $dispose() { + scope.stop(); + subscriptions = []; + actionSubscriptions = []; + pinia2._s.delete($id); + } + function wrapAction(name, action) { + return function() { + setActivePinia(pinia2); + const args = Array.from(arguments); + const afterCallbackList = []; + const onErrorCallbackList = []; + function after(callback) { + afterCallbackList.push(callback); + } + function onError(callback) { + onErrorCallbackList.push(callback); + } + triggerSubscriptions(actionSubscriptions, { + args, + name, + store, + after, + onError + }); + let ret; + try { + ret = action.apply(this && this.$id === $id ? this : store, args); + } catch (error) { + triggerSubscriptions(onErrorCallbackList, error); + throw error; + } + if (ret instanceof Promise) { + return ret.then((value) => { + triggerSubscriptions(afterCallbackList, value); + return value; + }).catch((error) => { + triggerSubscriptions(onErrorCallbackList, error); + return Promise.reject(error); + }); + } + triggerSubscriptions(afterCallbackList, ret); + return ret; + }; + } + const _hmrPayload = /* @__PURE__ */ vue.markRaw({ + actions: {}, + getters: {}, + state: [], + hotState + }); + const partialStore = { + _p: pinia2, + // _s: scope, + $id, + $onAction: addSubscription.bind(null, actionSubscriptions), + $patch, + $reset, + $subscribe(callback, options2 = {}) { + const removeSubscription = addSubscription(subscriptions, callback, options2.detached, () => stopWatcher()); + const stopWatcher = scope.run(() => vue.watch(() => pinia2.state.value[$id], (state) => { + if (options2.flush === "sync" ? isSyncListening : isListening) { + callback({ + storeId: $id, + type: MutationType.direct, + events: debuggerEvents + }, state); + } + }, assign({}, $subscribeOptions, options2))); + return removeSubscription; + }, + $dispose + }; + const store = vue.reactive(assign( + { + _hmrPayload, + _customProperties: vue.markRaw(/* @__PURE__ */ new Set()) + // devtools custom properties + }, + partialStore + // must be added later + // setupStore + )); + pinia2._s.set($id, store); + const runWithContext = pinia2._a && pinia2._a.runWithContext || fallbackRunWithContext; + const setupStore = runWithContext(() => pinia2._e.run(() => (scope = vue.effectScope()).run(setup))); + for (const key in setupStore) { + const prop = setupStore[key]; + if (vue.isRef(prop) && !isComputed(prop) || vue.isReactive(prop)) { + if (hot) { + set(hotState.value, key, vue.toRef(setupStore, key)); + } else if (!isOptionsStore) { + if (initialState && shouldHydrate(prop)) { + if (vue.isRef(prop)) { + prop.value = initialState[key]; + } else { + mergeReactiveObjects(prop, initialState[key]); + } + } + { + pinia2.state.value[$id][key] = prop; + } + } + { + _hmrPayload.state.push(key); + } + } else if (typeof prop === "function") { + const actionValue = hot ? prop : wrapAction(key, prop); + { + setupStore[key] = actionValue; + } + { + _hmrPayload.actions[key] = prop; + } + optionsForPlugin.actions[key] = prop; + } else { + if (isComputed(prop)) { + _hmrPayload.getters[key] = isOptionsStore ? ( + // @ts-expect-error + options.getters[key] + ) : prop; + if (IS_CLIENT) { + const getters = setupStore._getters || // @ts-expect-error: same + (setupStore._getters = vue.markRaw([])); + getters.push(key); + } + } + } + } + { + assign(store, setupStore); + assign(vue.toRaw(store), setupStore); + } + Object.defineProperty(store, "$state", { + get: () => hot ? hotState.value : pinia2.state.value[$id], + set: (state) => { + if (hot) { + throw new Error("cannot set hotState"); + } + $patch(($state) => { + assign($state, state); + }); + } + }); + { + store._hotUpdate = vue.markRaw((newStore) => { + store._hotUpdating = true; + newStore._hmrPayload.state.forEach((stateKey) => { + if (stateKey in store.$state) { + const newStateTarget = newStore.$state[stateKey]; + const oldStateSource = store.$state[stateKey]; + if (typeof newStateTarget === "object" && isPlainObject(newStateTarget) && isPlainObject(oldStateSource)) { + patchObject(newStateTarget, oldStateSource); + } else { + newStore.$state[stateKey] = oldStateSource; + } + } + set(store, stateKey, vue.toRef(newStore.$state, stateKey)); + }); + Object.keys(store.$state).forEach((stateKey) => { + if (!(stateKey in newStore.$state)) { + del(store, stateKey); + } + }); + isListening = false; + isSyncListening = false; + pinia2.state.value[$id] = vue.toRef(newStore._hmrPayload, "hotState"); + isSyncListening = true; + vue.nextTick().then(() => { + isListening = true; + }); + for (const actionName in newStore._hmrPayload.actions) { + const action = newStore[actionName]; + set(store, actionName, wrapAction(actionName, action)); + } + for (const getterName in newStore._hmrPayload.getters) { + const getter = newStore._hmrPayload.getters[getterName]; + const getterValue = isOptionsStore ? ( + // special handling of options api + vue.computed(() => { + setActivePinia(pinia2); + return getter.call(store, store); + }) + ) : getter; + set(store, getterName, getterValue); + } + Object.keys(store._hmrPayload.getters).forEach((key) => { + if (!(key in newStore._hmrPayload.getters)) { + del(store, key); + } + }); + Object.keys(store._hmrPayload.actions).forEach((key) => { + if (!(key in newStore._hmrPayload.actions)) { + del(store, key); + } + }); + store._hmrPayload = newStore._hmrPayload; + store._getters = newStore._getters; + store._hotUpdating = false; + }); + } + if (USE_DEVTOOLS) { + const nonEnumerable = { + writable: true, + configurable: true, + // avoid warning on devtools trying to display this property + enumerable: false + }; + ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((p2) => { + Object.defineProperty(store, p2, assign({ value: store[p2] }, nonEnumerable)); + }); + } + pinia2._p.forEach((extender) => { + if (USE_DEVTOOLS) { + const extensions = scope.run(() => extender({ + store, + app: pinia2._a, + pinia: pinia2, + options: optionsForPlugin + })); + Object.keys(extensions || {}).forEach((key) => store._customProperties.add(key)); + assign(store, extensions); + } else { + assign(store, scope.run(() => extender({ + store, + app: pinia2._a, + pinia: pinia2, + options: optionsForPlugin + }))); + } + }); + if (store.$state && typeof store.$state === "object" && typeof store.$state.constructor === "function" && !store.$state.constructor.toString().includes("[native code]")) { + console.warn(`[🍍]: The "state" must be a plain object. It cannot be + state: () => new MyClass() +Found in store "${store.$id}".`); + } + if (initialState && isOptionsStore && options.hydrate) { + options.hydrate(store.$state, initialState); + } + isListening = true; + isSyncListening = true; + return store; + } + function defineStore(idOrOptions, setup, setupOptions) { + let id; + let options; + const isSetupStore = typeof setup === "function"; + if (typeof idOrOptions === "string") { + id = idOrOptions; + options = isSetupStore ? setupOptions : setup; + } else { + options = idOrOptions; + id = idOrOptions.id; + if (typeof id !== "string") { + throw new Error(`[🍍]: "defineStore()" must be passed a store id as its first argument.`); + } + } + function useStore2(pinia2, hot) { + const hasContext = vue.hasInjectionContext(); + pinia2 = // in test mode, ignore the argument provided as we can always retrieve a + // pinia instance with getActivePinia() + pinia2 || (hasContext ? vue.inject(piniaSymbol, null) : null); + if (pinia2) + setActivePinia(pinia2); + if (!activePinia) { + throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"? +See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help. +This will fail in production.`); + } + pinia2 = activePinia; + if (!pinia2._s.has(id)) { + if (isSetupStore) { + createSetupStore(id, setup, options, pinia2); + } else { + createOptionsStore(id, options, pinia2); + } + { + useStore2._pinia = pinia2; + } + } + const store = pinia2._s.get(id); + if (hot) { + const hotId = "__hot:" + id; + const newStore = isSetupStore ? createSetupStore(hotId, setup, options, pinia2, true) : createOptionsStore(hotId, assign({}, options), pinia2, true); + hot._hotUpdate(newStore); + delete pinia2.state.value[hotId]; + pinia2._s.delete(hotId); + } + if (IS_CLIENT) { + const currentInstance = vue.getCurrentInstance(); + if (currentInstance && currentInstance.proxy && // avoid adding stores that are just built for hot module replacement + !hot) { + const vm = currentInstance.proxy; + const cache = "_pStores" in vm ? vm._pStores : vm._pStores = {}; + cache[id] = store; + } + } + return store; + } + useStore2.$id = id; + return useStore2; + } + const useStore = defineStore("user", { + state: () => ({ + userinfo: uni.getStorageSync("user") && JSON.parse(uni.getStorageSync("user")) || {}, + token: uni.getStorageSync("token") || null, + role: uni.getStorageSync("role") || null, + allowPage: uni.getStorageSync("allowPage") || null, + position: uni.getStorageSync("position") || null, + positionSwitch: uni.getStorageSync("positionSwitch") || null, + wendu: uni.getStorageSync("wendu") || null, + wenduIcon: uni.getStorageSync("wenduIcon") || null, + isgray: uni.getStorageSync("isgray") || 0 + //是否灰化 + }), + getters: { + // uid: (state) => state.userinfo?.id + }, + actions: { + setUserInfo(val) { + this.userinfo = val; + }, + setToken(val) { + this.token = val; + }, + setRole(val) { + this.role = val; + }, + /**设置定位信息*/ + setPosition(val) { + this.position = val; + }, + /**设置定位开关*/ + setPositionSwitch(val) { + this.positionSwitch = val; + }, + /**设置天气*/ + setWeather(wendu, wenduIcon) { + this.wendu = wendu; + this.wenduIcon = wenduIcon; + }, + setAllowPage(val) { + this.allowPage = val; + }, + setIsgray(val) { + this.isgray = val; + } + } + }); + const _export_sfc = (sfc, props) => { + const target = sfc.__vccOpts || sfc; + for (const [key, val] of props) { + target[key] = val; + } + return target; + }; + const _sfc_main$O = { + __name: "login", + setup(__props) { + const store = useStore(); + const { + proxy + } = vue.getCurrentInstance(); + const showpwd = vue.ref(false); + const savePwd = () => { + let localObj = { + un: username.value + }; + if (check.value) { + localObj.pw = password.value; + } + uni.setStorageSync("accountObj", JSON.stringify(localObj)); + }; + const check = vue.ref(true); + const username = vue.ref(""); + const password = vue.ref(""); + const login = () => { + if (!username.value.trim()) + return proxy.$toast("请输入账号"); + if (!password.value.trim()) + return proxy.$toast("请输入密码"); + let un = Base64.encode(encodeURIComponent(username.value)); + let pw = Base64.encode(encodeURIComponent(password.value)); + uni.showLoading({ + title: "登录中..." + }); + loginApi({ + username: un, + password: pw, + ip: getDeviceIp() + /*生产环境 end */ + /*开发环境 begin */ + // localLoginApi({ + // username: username.value, + // password: password.value, + // captcha: 'app' + /*开发环境 end */ + }).then((loginres) => { + if (loginres.success) { + uni.setStorageSync("token", loginres.result.token); + store.setToken(loginres.result.token); + savePwd(); + queryRoleApi({ + roles: loginres.result.userInfo.roles + }).then((roleres) => { + uni.setStorageSync("logintime", Date.now()); + uni.setStorageSync("role", roleres); + store.setRole(roleres); + uni.setStorageSync("user", JSON.stringify(loginres.result.userInfo)); + store.setUserInfo(loginres.result.userInfo); + loadBadge(); + uni.switchTab({ + url: "/pages/tab/index" + }); + }); + } + }).catch((err) => { + formatAppLog("log", "at pages/login/login.vue:136", err); + }); + }; + vue.ref([]); + onLoad(() => { + if (uni.getStorageSync("accountObj")) { + let obj = JSON.parse(uni.getStorageSync("accountObj")); + username.value = obj.un ? obj.un : ""; + password.value = obj.pw ? obj.pw : ""; + } + }); + const loadBadge = () => { + taskListApi().then((res) => { + if (res.success) { + if (res.result.total > 0) { + uni.setTabBarBadge({ + index: "1", + text: res.result.total + // 角标内容 + }); + } else { + uni.removeTabBarBadge({ + // 移除角标 + index: "1" + }); + } + } + }); + }; + function getDeviceIp() { + let deviceIp; + if (plus.os.name == "Android") { + let Context = plus.android.importClass("android.content.Context"); + let main = plus.android.runtimeMainActivity(); + let cm = main.getSystemService(Context.CONNECTIVITY_SERVICE); + plus.android.importClass(cm); + let linkProperties = cm.getLinkProperties(cm.getActiveNetwork()); + let linkAddrs = plus.android.invoke(linkProperties, "getLinkAddresses"); + plus.android.importClass(linkAddrs); + for (var i2 = 0; i2 < linkAddrs.size(); i2++) { + let inetAddr = plus.android.invoke(linkAddrs.get(i2), "getAddress"); + deviceIp = plus.android.invoke(inetAddr, "getHostAddress"); + } + if (deviceIp == "") { + var wifiManager = plus.android.runtimeMainActivity().getSystemService(Context.WIFI_SERVICE); + var wifiInfo = plus.android.invoke(wifiManager, "getConnectionInfo"); + var ipAddress = plus.android.invoke(wifiInfo, "getIpAddress"); + if (ipAddress != 0) { + deviceIp = (ipAddress & 255) + "." + (ipAddress >> 8 & 255) + "." + (ipAddress >> 16 & 255) + "." + (ipAddress >> 24 & 255); + } + } + } + return deviceIp; + } + return (_ctx, _cache) => { + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass({ "gray": vue.unref(store).isgray == 1 }) + }, + [ + vue.createElementVNode("view", { class: "logo f-col aic" }, [ + vue.createElementVNode("image", { src: _imports_0 }) + ]), + vue.createElementVNode("view", { class: "form f-col aic" }, [ + vue.createElementVNode("view", { class: "box f-row aic" }, [ + vue.createElementVNode("image", { src: _imports_1 }), + vue.withDirectives(vue.createElementVNode( + "input", + { + "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => username.value = $event), + type: "text", + placeholder: "请输入统一身份认证", + "placeholder-style": "font-size: 28rpx;color: #999999;" + }, + null, + 512 + /* NEED_PATCH */ + ), [ + [vue.vModelText, username.value] + ]) + ]), + vue.createElementVNode("view", { class: "box f-row aic" }, [ + vue.createElementVNode("image", { src: _imports_2 }), + vue.withDirectives(vue.createElementVNode("input", { + "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => password.value = $event), + type: !showpwd.value ? "password" : "text", + placeholder: "请输入密码", + "placeholder-style": "font-size: 28rpx;color: #999999;" + }, null, 8, ["type"]), [ + [vue.vModelDynamic, password.value] + ]), + showpwd.value ? (vue.openBlock(), vue.createElementBlock("image", { + key: 0, + src: _imports_3, + onClick: _cache[2] || (_cache[2] = ($event) => showpwd.value = !showpwd.value) + })) : (vue.openBlock(), vue.createElementBlock("image", { + key: 1, + src: _imports_4, + onClick: _cache[3] || (_cache[3] = ($event) => showpwd.value = !showpwd.value) + })) + ]) + ]), + vue.createElementVNode("view", { class: "pwd f-row aic" }, [ + vue.createElementVNode("view", { + style: { "display": "inline-block" }, + onClick: _cache[4] || (_cache[4] = ($event) => check.value = !check.value) + }, [ + vue.createElementVNode("view", { class: "f-row aic" }, [ + !check.value ? (vue.openBlock(), vue.createElementBlock("image", { + key: 0, + src: _imports_5 + })) : (vue.openBlock(), vue.createElementBlock("image", { + key: 1, + src: _imports_6 + })), + vue.createElementVNode("text", null, "记住密码") + ]) + ]) + ]), + vue.createElementVNode("view", { class: "login f-col aic" }, [ + vue.createElementVNode("view", { onClick: login }, " 登录 ") + ]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesLoginLogin = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-e4e4508d"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/login/login.vue"]]); + const fontData = [ + { + "font_class": "arrow-down", + "unicode": "" + }, + { + "font_class": "arrow-left", + "unicode": "" + }, + { + "font_class": "arrow-right", + "unicode": "" + }, + { + "font_class": "arrow-up", + "unicode": "" + }, + { + "font_class": "auth", + "unicode": "" + }, + { + "font_class": "auth-filled", + "unicode": "" + }, + { + "font_class": "back", + "unicode": "" + }, + { + "font_class": "bars", + "unicode": "" + }, + { + "font_class": "calendar", + "unicode": "" + }, + { + "font_class": "calendar-filled", + "unicode": "" + }, + { + "font_class": "camera", + "unicode": "" + }, + { + "font_class": "camera-filled", + "unicode": "" + }, + { + "font_class": "cart", + "unicode": "" + }, + { + "font_class": "cart-filled", + "unicode": "" + }, + { + "font_class": "chat", + "unicode": "" + }, + { + "font_class": "chat-filled", + "unicode": "" + }, + { + "font_class": "chatboxes", + "unicode": "" + }, + { + "font_class": "chatboxes-filled", + "unicode": "" + }, + { + "font_class": "chatbubble", + "unicode": "" + }, + { + "font_class": "chatbubble-filled", + "unicode": "" + }, + { + "font_class": "checkbox", + "unicode": "" + }, + { + "font_class": "checkbox-filled", + "unicode": "" + }, + { + "font_class": "checkmarkempty", + "unicode": "" + }, + { + "font_class": "circle", + "unicode": "" + }, + { + "font_class": "circle-filled", + "unicode": "" + }, + { + "font_class": "clear", + "unicode": "" + }, + { + "font_class": "close", + "unicode": "" + }, + { + "font_class": "closeempty", + "unicode": "" + }, + { + "font_class": "cloud-download", + "unicode": "" + }, + { + "font_class": "cloud-download-filled", + "unicode": "" + }, + { + "font_class": "cloud-upload", + "unicode": "" + }, + { + "font_class": "cloud-upload-filled", + "unicode": "" + }, + { + "font_class": "color", + "unicode": "" + }, + { + "font_class": "color-filled", + "unicode": "" + }, + { + "font_class": "compose", + "unicode": "" + }, + { + "font_class": "contact", + "unicode": "" + }, + { + "font_class": "contact-filled", + "unicode": "" + }, + { + "font_class": "down", + "unicode": "" + }, + { + "font_class": "bottom", + "unicode": "" + }, + { + "font_class": "download", + "unicode": "" + }, + { + "font_class": "download-filled", + "unicode": "" + }, + { + "font_class": "email", + "unicode": "" + }, + { + "font_class": "email-filled", + "unicode": "" + }, + { + "font_class": "eye", + "unicode": "" + }, + { + "font_class": "eye-filled", + "unicode": "" + }, + { + "font_class": "eye-slash", + "unicode": "" + }, + { + "font_class": "eye-slash-filled", + "unicode": "" + }, + { + "font_class": "fire", + "unicode": "" + }, + { + "font_class": "fire-filled", + "unicode": "" + }, + { + "font_class": "flag", + "unicode": "" + }, + { + "font_class": "flag-filled", + "unicode": "" + }, + { + "font_class": "folder-add", + "unicode": "" + }, + { + "font_class": "folder-add-filled", + "unicode": "" + }, + { + "font_class": "font", + "unicode": "" + }, + { + "font_class": "forward", + "unicode": "" + }, + { + "font_class": "gear", + "unicode": "" + }, + { + "font_class": "gear-filled", + "unicode": "" + }, + { + "font_class": "gift", + "unicode": "" + }, + { + "font_class": "gift-filled", + "unicode": "" + }, + { + "font_class": "hand-down", + "unicode": "" + }, + { + "font_class": "hand-down-filled", + "unicode": "" + }, + { + "font_class": "hand-up", + "unicode": "" + }, + { + "font_class": "hand-up-filled", + "unicode": "" + }, + { + "font_class": "headphones", + "unicode": "" + }, + { + "font_class": "heart", + "unicode": "" + }, + { + "font_class": "heart-filled", + "unicode": "" + }, + { + "font_class": "help", + "unicode": "" + }, + { + "font_class": "help-filled", + "unicode": "" + }, + { + "font_class": "home", + "unicode": "" + }, + { + "font_class": "home-filled", + "unicode": "" + }, + { + "font_class": "image", + "unicode": "" + }, + { + "font_class": "image-filled", + "unicode": "" + }, + { + "font_class": "images", + "unicode": "" + }, + { + "font_class": "images-filled", + "unicode": "" + }, + { + "font_class": "info", + "unicode": "" + }, + { + "font_class": "info-filled", + "unicode": "" + }, + { + "font_class": "left", + "unicode": "" + }, + { + "font_class": "link", + "unicode": "" + }, + { + "font_class": "list", + "unicode": "" + }, + { + "font_class": "location", + "unicode": "" + }, + { + "font_class": "location-filled", + "unicode": "" + }, + { + "font_class": "locked", + "unicode": "" + }, + { + "font_class": "locked-filled", + "unicode": "" + }, + { + "font_class": "loop", + "unicode": "" + }, + { + "font_class": "mail-open", + "unicode": "" + }, + { + "font_class": "mail-open-filled", + "unicode": "" + }, + { + "font_class": "map", + "unicode": "" + }, + { + "font_class": "map-filled", + "unicode": "" + }, + { + "font_class": "map-pin", + "unicode": "" + }, + { + "font_class": "map-pin-ellipse", + "unicode": "" + }, + { + "font_class": "medal", + "unicode": "" + }, + { + "font_class": "medal-filled", + "unicode": "" + }, + { + "font_class": "mic", + "unicode": "" + }, + { + "font_class": "mic-filled", + "unicode": "" + }, + { + "font_class": "micoff", + "unicode": "" + }, + { + "font_class": "micoff-filled", + "unicode": "" + }, + { + "font_class": "minus", + "unicode": "" + }, + { + "font_class": "minus-filled", + "unicode": "" + }, + { + "font_class": "more", + "unicode": "" + }, + { + "font_class": "more-filled", + "unicode": "" + }, + { + "font_class": "navigate", + "unicode": "" + }, + { + "font_class": "navigate-filled", + "unicode": "" + }, + { + "font_class": "notification", + "unicode": "" + }, + { + "font_class": "notification-filled", + "unicode": "" + }, + { + "font_class": "paperclip", + "unicode": "" + }, + { + "font_class": "paperplane", + "unicode": "" + }, + { + "font_class": "paperplane-filled", + "unicode": "" + }, + { + "font_class": "person", + "unicode": "" + }, + { + "font_class": "person-filled", + "unicode": "" + }, + { + "font_class": "personadd", + "unicode": "" + }, + { + "font_class": "personadd-filled", + "unicode": "" + }, + { + "font_class": "personadd-filled-copy", + "unicode": "" + }, + { + "font_class": "phone", + "unicode": "" + }, + { + "font_class": "phone-filled", + "unicode": "" + }, + { + "font_class": "plus", + "unicode": "" + }, + { + "font_class": "plus-filled", + "unicode": "" + }, + { + "font_class": "plusempty", + "unicode": "" + }, + { + "font_class": "pulldown", + "unicode": "" + }, + { + "font_class": "pyq", + "unicode": "" + }, + { + "font_class": "qq", + "unicode": "" + }, + { + "font_class": "redo", + "unicode": "" + }, + { + "font_class": "redo-filled", + "unicode": "" + }, + { + "font_class": "refresh", + "unicode": "" + }, + { + "font_class": "refresh-filled", + "unicode": "" + }, + { + "font_class": "refreshempty", + "unicode": "" + }, + { + "font_class": "reload", + "unicode": "" + }, + { + "font_class": "right", + "unicode": "" + }, + { + "font_class": "scan", + "unicode": "" + }, + { + "font_class": "search", + "unicode": "" + }, + { + "font_class": "settings", + "unicode": "" + }, + { + "font_class": "settings-filled", + "unicode": "" + }, + { + "font_class": "shop", + "unicode": "" + }, + { + "font_class": "shop-filled", + "unicode": "" + }, + { + "font_class": "smallcircle", + "unicode": "" + }, + { + "font_class": "smallcircle-filled", + "unicode": "" + }, + { + "font_class": "sound", + "unicode": "" + }, + { + "font_class": "sound-filled", + "unicode": "" + }, + { + "font_class": "spinner-cycle", + "unicode": "" + }, + { + "font_class": "staff", + "unicode": "" + }, + { + "font_class": "staff-filled", + "unicode": "" + }, + { + "font_class": "star", + "unicode": "" + }, + { + "font_class": "star-filled", + "unicode": "" + }, + { + "font_class": "starhalf", + "unicode": "" + }, + { + "font_class": "trash", + "unicode": "" + }, + { + "font_class": "trash-filled", + "unicode": "" + }, + { + "font_class": "tune", + "unicode": "" + }, + { + "font_class": "tune-filled", + "unicode": "" + }, + { + "font_class": "undo", + "unicode": "" + }, + { + "font_class": "undo-filled", + "unicode": "" + }, + { + "font_class": "up", + "unicode": "" + }, + { + "font_class": "top", + "unicode": "" + }, + { + "font_class": "upload", + "unicode": "" + }, + { + "font_class": "upload-filled", + "unicode": "" + }, + { + "font_class": "videocam", + "unicode": "" + }, + { + "font_class": "videocam-filled", + "unicode": "" + }, + { + "font_class": "vip", + "unicode": "" + }, + { + "font_class": "vip-filled", + "unicode": "" + }, + { + "font_class": "wallet", + "unicode": "" + }, + { + "font_class": "wallet-filled", + "unicode": "" + }, + { + "font_class": "weibo", + "unicode": "" + }, + { + "font_class": "weixin", + "unicode": "" + } + ]; + const getVal = (val) => { + const reg = /^[0-9]*$/g; + return typeof val === "number" || reg.test(val) ? val + "px" : val; + }; + const _sfc_main$N = { + name: "UniIcons", + emits: ["click"], + props: { + type: { + type: String, + default: "" + }, + color: { + type: String, + default: "#333333" + }, + size: { + type: [Number, String], + default: 16 + }, + customPrefix: { + type: String, + default: "" + }, + fontFamily: { + type: String, + default: "" + } + }, + data() { + return { + icons: fontData + }; + }, + computed: { + unicode() { + let code = this.icons.find((v2) => v2.font_class === this.type); + if (code) { + return code.unicode; + } + return ""; + }, + iconSize() { + return getVal(this.size); + }, + styleObj() { + if (this.fontFamily !== "") { + return `color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`; + } + return `color: ${this.color}; font-size: ${this.iconSize};`; + } + }, + methods: { + _onClick() { + this.$emit("click"); + } + } + }; + function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock( + "text", + { + style: vue.normalizeStyle($options.styleObj), + class: vue.normalizeClass(["uni-icons", ["uniui-" + $props.type, $props.customPrefix, $props.customPrefix ? $props.type : ""]]), + onClick: _cache[0] || (_cache[0] = (...args) => $options._onClick && $options._onClick(...args)) + }, + [ + vue.renderSlot(_ctx.$slots, "default", {}, void 0, true) + ], + 6 + /* CLASS, STYLE */ + ); + } + const __easycom_1$1 = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$d], ["__scopeId", "data-v-d31e1c47"], ["__file", "D:/projects/cxc-szcx-uniapp/uni_modules/uni-icons/components/uni-icons/uni-icons.vue"]]); + let Calendar$1 = class Calendar { + constructor({ + selected, + startDate, + endDate, + range + } = {}) { + this.date = this.getDateObj(/* @__PURE__ */ new Date()); + this.selected = selected || []; + this.startDate = startDate; + this.endDate = endDate; + this.range = range; + this.cleanMultipleStatus(); + this.weeks = {}; + this.lastHover = false; + } + /** + * 设置日期 + * @param {Object} date + */ + setDate(date) { + const selectDate = this.getDateObj(date); + this.getWeeks(selectDate.fullDate); + } + /** + * 清理多选状态 + */ + cleanMultipleStatus() { + this.multipleStatus = { + before: "", + after: "", + data: [] + }; + } + setStartDate(startDate) { + this.startDate = startDate; + } + setEndDate(endDate) { + this.endDate = endDate; + } + getPreMonthObj(date) { + date = fixIosDateFormat(date); + date = new Date(date); + const oldMonth = date.getMonth(); + date.setMonth(oldMonth - 1); + const newMonth = date.getMonth(); + if (oldMonth !== 0 && newMonth - oldMonth === 0) { + date.setMonth(newMonth - 1); + } + return this.getDateObj(date); + } + getNextMonthObj(date) { + date = fixIosDateFormat(date); + date = new Date(date); + const oldMonth = date.getMonth(); + date.setMonth(oldMonth + 1); + const newMonth = date.getMonth(); + if (newMonth - oldMonth > 1) { + date.setMonth(newMonth - 1); + } + return this.getDateObj(date); + } + /** + * 获取指定格式Date对象 + */ + getDateObj(date) { + date = fixIosDateFormat(date); + date = new Date(date); + return { + fullDate: getDate(date), + year: date.getFullYear(), + month: addZero(date.getMonth() + 1), + date: addZero(date.getDate()), + day: date.getDay() + }; + } + /** + * 获取上一个月日期集合 + */ + getPreMonthDays(amount, dateObj) { + const result = []; + for (let i2 = amount - 1; i2 >= 0; i2--) { + const month = dateObj.month - 1; + result.push({ + date: new Date(dateObj.year, month, -i2).getDate(), + month, + disable: true + }); + } + return result; + } + /** + * 获取本月日期集合 + */ + getCurrentMonthDays(amount, dateObj) { + const result = []; + const fullDate = this.date.fullDate; + for (let i2 = 1; i2 <= amount; i2++) { + const currentDate = `${dateObj.year}-${dateObj.month}-${addZero(i2)}`; + const isToday = fullDate === currentDate; + const info = this.selected && this.selected.find((item) => { + if (this.dateEqual(currentDate, item.date)) { + return item; + } + }); + if (this.startDate) { + dateCompare(this.startDate, currentDate); + } + if (this.endDate) { + dateCompare(currentDate, this.endDate); + } + let multiples = this.multipleStatus.data; + let multiplesStatus = -1; + if (this.range && multiples) { + multiplesStatus = multiples.findIndex((item) => { + return this.dateEqual(item, currentDate); + }); + } + const checked = multiplesStatus !== -1; + result.push({ + fullDate: currentDate, + year: dateObj.year, + date: i2, + multiple: this.range ? checked : false, + beforeMultiple: this.isLogicBefore(currentDate, this.multipleStatus.before, this.multipleStatus.after), + afterMultiple: this.isLogicAfter(currentDate, this.multipleStatus.before, this.multipleStatus.after), + month: dateObj.month, + disable: this.startDate && !dateCompare(this.startDate, currentDate) || this.endDate && !dateCompare( + currentDate, + this.endDate + ), + isToday, + userChecked: false, + extraInfo: info + }); + } + return result; + } + /** + * 获取下一个月日期集合 + */ + _getNextMonthDays(amount, dateObj) { + const result = []; + const month = dateObj.month + 1; + for (let i2 = 1; i2 <= amount; i2++) { + result.push({ + date: i2, + month, + disable: true + }); + } + return result; + } + /** + * 获取当前日期详情 + * @param {Object} date + */ + getInfo(date) { + if (!date) { + date = /* @__PURE__ */ new Date(); + } + return this.calendar.find((item) => item.fullDate === this.getDateObj(date).fullDate); + } + /** + * 比较时间是否相等 + */ + dateEqual(before, after) { + before = new Date(fixIosDateFormat(before)); + after = new Date(fixIosDateFormat(after)); + return before.valueOf() === after.valueOf(); + } + /** + * 比较真实起始日期 + */ + isLogicBefore(currentDate, before, after) { + let logicBefore = before; + if (before && after) { + logicBefore = dateCompare(before, after) ? before : after; + } + return this.dateEqual(logicBefore, currentDate); + } + isLogicAfter(currentDate, before, after) { + let logicAfter = after; + if (before && after) { + logicAfter = dateCompare(before, after) ? after : before; + } + return this.dateEqual(logicAfter, currentDate); + } + /** + * 获取日期范围内所有日期 + * @param {Object} begin + * @param {Object} end + */ + geDateAll(begin, end) { + var arr = []; + var ab = begin.split("-"); + var ae2 = end.split("-"); + var db = /* @__PURE__ */ new Date(); + db.setFullYear(ab[0], ab[1] - 1, ab[2]); + var de2 = /* @__PURE__ */ new Date(); + de2.setFullYear(ae2[0], ae2[1] - 1, ae2[2]); + var unixDb = db.getTime() - 24 * 60 * 60 * 1e3; + var unixDe = de2.getTime() - 24 * 60 * 60 * 1e3; + for (var k = unixDb; k <= unixDe; ) { + k = k + 24 * 60 * 60 * 1e3; + arr.push(this.getDateObj(new Date(parseInt(k))).fullDate); + } + return arr; + } + /** + * 获取多选状态 + */ + setMultiple(fullDate) { + if (!this.range) + return; + let { + before, + after + } = this.multipleStatus; + if (before && after) { + if (!this.lastHover) { + this.lastHover = true; + return; + } + this.multipleStatus.before = fullDate; + this.multipleStatus.after = ""; + this.multipleStatus.data = []; + this.multipleStatus.fulldate = ""; + this.lastHover = false; + } else { + if (!before) { + this.multipleStatus.before = fullDate; + this.multipleStatus.after = void 0; + this.lastHover = false; + } else { + this.multipleStatus.after = fullDate; + if (dateCompare(this.multipleStatus.before, this.multipleStatus.after)) { + this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after); + } else { + this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before); + } + this.lastHover = true; + } + } + this.getWeeks(fullDate); + } + /** + * 鼠标 hover 更新多选状态 + */ + setHoverMultiple(fullDate) { + if (!this.range || this.lastHover) + return; + const { + before + } = this.multipleStatus; + if (!before) { + this.multipleStatus.before = fullDate; + } else { + this.multipleStatus.after = fullDate; + if (dateCompare(this.multipleStatus.before, this.multipleStatus.after)) { + this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after); + } else { + this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before); + } + } + this.getWeeks(fullDate); + } + /** + * 更新默认值多选状态 + */ + setDefaultMultiple(before, after) { + this.multipleStatus.before = before; + this.multipleStatus.after = after; + if (before && after) { + if (dateCompare(before, after)) { + this.multipleStatus.data = this.geDateAll(before, after); + this.getWeeks(after); + } else { + this.multipleStatus.data = this.geDateAll(after, before); + this.getWeeks(before); + } + } + } + /** + * 获取每周数据 + * @param {Object} dateData + */ + getWeeks(dateData) { + const { + year, + month + } = this.getDateObj(dateData); + const preMonthDayAmount = new Date(year, month - 1, 1).getDay(); + const preMonthDays = this.getPreMonthDays(preMonthDayAmount, this.getDateObj(dateData)); + const currentMonthDayAmount = new Date(year, month, 0).getDate(); + const currentMonthDays = this.getCurrentMonthDays(currentMonthDayAmount, this.getDateObj(dateData)); + const nextMonthDayAmount = 42 - preMonthDayAmount - currentMonthDayAmount; + const nextMonthDays = this._getNextMonthDays(nextMonthDayAmount, this.getDateObj(dateData)); + const calendarDays = [...preMonthDays, ...currentMonthDays, ...nextMonthDays]; + const weeks = new Array(6); + for (let i2 = 0; i2 < calendarDays.length; i2++) { + const index = Math.floor(i2 / 7); + if (!weeks[index]) { + weeks[index] = new Array(7); + } + weeks[index][i2 % 7] = calendarDays[i2]; + } + this.calendar = calendarDays; + this.weeks = weeks; + } + }; + function getDateTime(date, hideSecond) { + return `${getDate(date)} ${getTime$1(date, hideSecond)}`; + } + function getDate(date) { + date = fixIosDateFormat(date); + date = new Date(date); + const year = date.getFullYear(); + const month = date.getMonth() + 1; + const day = date.getDate(); + return `${year}-${addZero(month)}-${addZero(day)}`; + } + function getTime$1(date, hideSecond) { + date = fixIosDateFormat(date); + date = new Date(date); + const hour = date.getHours(); + const minute = date.getMinutes(); + const second = date.getSeconds(); + return hideSecond ? `${addZero(hour)}:${addZero(minute)}` : `${addZero(hour)}:${addZero(minute)}:${addZero(second)}`; + } + function addZero(num) { + if (num < 10) { + num = `0${num}`; + } + return num; + } + function getDefaultSecond(hideSecond) { + return hideSecond ? "00:00" : "00:00:00"; + } + function dateCompare(startDate, endDate) { + startDate = new Date(fixIosDateFormat(startDate)); + endDate = new Date(fixIosDateFormat(endDate)); + return startDate <= endDate; + } + function checkDate(date) { + const dateReg = /((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g; + return date.match(dateReg); + } + const dateTimeReg = /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])( [0-5]?[0-9]:[0-5]?[0-9](:[0-5]?[0-9])?)?$/; + function fixIosDateFormat(value) { + if (typeof value === "string" && dateTimeReg.test(value)) { + value = value.replace(/-/g, "/"); + } + return value; + } + const _sfc_main$M = { + props: { + weeks: { + type: Object, + default() { + return {}; + } + }, + calendar: { + type: Object, + default: () => { + return {}; + } + }, + selected: { + type: Array, + default: () => { + return []; + } + }, + checkHover: { + type: Boolean, + default: false + } + }, + methods: { + choiceDate(weeks) { + this.$emit("change", weeks); + }, + handleMousemove(weeks) { + this.$emit("handleMouse", weeks); + } + } + }; + function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass(["uni-calendar-item__weeks-box", { + "uni-calendar-item--disable": $props.weeks.disable, + "uni-calendar-item--before-checked-x": $props.weeks.beforeMultiple, + "uni-calendar-item--multiple": $props.weeks.multiple, + "uni-calendar-item--after-checked-x": $props.weeks.afterMultiple + }]), + onClick: _cache[0] || (_cache[0] = ($event) => $options.choiceDate($props.weeks)), + onMouseenter: _cache[1] || (_cache[1] = ($event) => $options.handleMousemove($props.weeks)) + }, + [ + vue.createElementVNode( + "view", + { + class: vue.normalizeClass(["uni-calendar-item__weeks-box-item", { + "uni-calendar-item--checked": $props.calendar.fullDate === $props.weeks.fullDate && ($props.calendar.userChecked || !$props.checkHover), + "uni-calendar-item--checked-range-text": $props.checkHover, + "uni-calendar-item--before-checked": $props.weeks.beforeMultiple, + "uni-calendar-item--multiple": $props.weeks.multiple, + "uni-calendar-item--after-checked": $props.weeks.afterMultiple, + "uni-calendar-item--disable": $props.weeks.disable + }]) + }, + [ + $props.selected && $props.weeks.extraInfo ? (vue.openBlock(), vue.createElementBlock("text", { + key: 0, + class: "uni-calendar-item__weeks-box-circle" + })) : vue.createCommentVNode("v-if", true), + vue.createElementVNode( + "text", + { class: "uni-calendar-item__weeks-box-text uni-calendar-item__weeks-box-text-disable uni-calendar-item--checked-text" }, + vue.toDisplayString($props.weeks.date), + 1 + /* TEXT */ + ) + ], + 2 + /* CLASS */ + ), + vue.createElementVNode( + "view", + { + class: vue.normalizeClass({ "uni-calendar-item--today": $props.weeks.isToday }) + }, + null, + 2 + /* CLASS */ + ) + ], + 34 + /* CLASS, NEED_HYDRATION */ + ); + } + const calendarItem = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$c], ["__scopeId", "data-v-3c762a01"], ["__file", "D:/projects/cxc-szcx-uniapp/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue"]]); + const isObject = (val) => val !== null && typeof val === "object"; + const defaultDelimiters = ["{", "}"]; + class BaseFormatter { + constructor() { + this._caches = /* @__PURE__ */ Object.create(null); + } + interpolate(message, values, delimiters = defaultDelimiters) { + if (!values) { + return [message]; + } + let tokens = this._caches[message]; + if (!tokens) { + tokens = parse(message, delimiters); + this._caches[message] = tokens; + } + return compile(tokens, values); + } + } + const RE_TOKEN_LIST_VALUE = /^(?:\d)+/; + const RE_TOKEN_NAMED_VALUE = /^(?:\w)+/; + function parse(format, [startDelimiter, endDelimiter]) { + const tokens = []; + let position = 0; + let text = ""; + while (position < format.length) { + let char = format[position++]; + if (char === startDelimiter) { + if (text) { + tokens.push({ type: "text", value: text }); + } + text = ""; + let sub = ""; + char = format[position++]; + while (char !== void 0 && char !== endDelimiter) { + sub += char; + char = format[position++]; + } + const isClosed = char === endDelimiter; + const type = RE_TOKEN_LIST_VALUE.test(sub) ? "list" : isClosed && RE_TOKEN_NAMED_VALUE.test(sub) ? "named" : "unknown"; + tokens.push({ value: sub, type }); + } else { + text += char; + } + } + text && tokens.push({ type: "text", value: text }); + return tokens; + } + function compile(tokens, values) { + const compiled = []; + let index = 0; + const mode = Array.isArray(values) ? "list" : isObject(values) ? "named" : "unknown"; + if (mode === "unknown") { + return compiled; + } + while (index < tokens.length) { + const token = tokens[index]; + switch (token.type) { + case "text": + compiled.push(token.value); + break; + case "list": + compiled.push(values[parseInt(token.value, 10)]); + break; + case "named": + if (mode === "named") { + compiled.push(values[token.value]); + } else { + { + console.warn(`Type of token '${token.type}' and format of value '${mode}' don't match!`); + } + } + break; + case "unknown": + { + console.warn(`Detect 'unknown' type of token!`); + } + break; + } + index++; + } + return compiled; + } + const LOCALE_ZH_HANS = "zh-Hans"; + const LOCALE_ZH_HANT = "zh-Hant"; + const LOCALE_EN = "en"; + const LOCALE_FR = "fr"; + const LOCALE_ES = "es"; + const hasOwnProperty = Object.prototype.hasOwnProperty; + const hasOwn = (val, key) => hasOwnProperty.call(val, key); + const defaultFormatter = new BaseFormatter(); + function include(str, parts) { + return !!parts.find((part) => str.indexOf(part) !== -1); + } + function startsWith(str, parts) { + return parts.find((part) => str.indexOf(part) === 0); + } + function normalizeLocale(locale, messages2) { + if (!locale) { + return; + } + locale = locale.trim().replace(/_/g, "-"); + if (messages2 && messages2[locale]) { + return locale; + } + locale = locale.toLowerCase(); + if (locale === "chinese") { + return LOCALE_ZH_HANS; + } + if (locale.indexOf("zh") === 0) { + if (locale.indexOf("-hans") > -1) { + return LOCALE_ZH_HANS; + } + if (locale.indexOf("-hant") > -1) { + return LOCALE_ZH_HANT; + } + if (include(locale, ["-tw", "-hk", "-mo", "-cht"])) { + return LOCALE_ZH_HANT; + } + return LOCALE_ZH_HANS; + } + let locales = [LOCALE_EN, LOCALE_FR, LOCALE_ES]; + if (messages2 && Object.keys(messages2).length > 0) { + locales = Object.keys(messages2); + } + const lang = startsWith(locale, locales); + if (lang) { + return lang; + } + } + class I18n { + constructor({ locale, fallbackLocale, messages: messages2, watcher, formater: formater2 }) { + this.locale = LOCALE_EN; + this.fallbackLocale = LOCALE_EN; + this.message = {}; + this.messages = {}; + this.watchers = []; + if (fallbackLocale) { + this.fallbackLocale = fallbackLocale; + } + this.formater = formater2 || defaultFormatter; + this.messages = messages2 || {}; + this.setLocale(locale || LOCALE_EN); + if (watcher) { + this.watchLocale(watcher); + } + } + setLocale(locale) { + const oldLocale = this.locale; + this.locale = normalizeLocale(locale, this.messages) || this.fallbackLocale; + if (!this.messages[this.locale]) { + this.messages[this.locale] = {}; + } + this.message = this.messages[this.locale]; + if (oldLocale !== this.locale) { + this.watchers.forEach((watcher) => { + watcher(this.locale, oldLocale); + }); + } + } + getLocale() { + return this.locale; + } + watchLocale(fn) { + const index = this.watchers.push(fn) - 1; + return () => { + this.watchers.splice(index, 1); + }; + } + add(locale, message, override = true) { + const curMessages = this.messages[locale]; + if (curMessages) { + if (override) { + Object.assign(curMessages, message); + } else { + Object.keys(message).forEach((key) => { + if (!hasOwn(curMessages, key)) { + curMessages[key] = message[key]; + } + }); + } + } else { + this.messages[locale] = message; + } + } + f(message, values, delimiters) { + return this.formater.interpolate(message, values, delimiters).join(""); + } + t(key, locale, values) { + let message = this.message; + if (typeof locale === "string") { + locale = normalizeLocale(locale, this.messages); + locale && (message = this.messages[locale]); + } else { + values = locale; + } + if (!hasOwn(message, key)) { + console.warn(`Cannot translate the value of keypath ${key}. Use the value of keypath as default.`); + return key; + } + return this.formater.interpolate(message[key], values).join(""); + } + } + function watchAppLocale(appVm, i18n) { + if (appVm.$watchLocale) { + appVm.$watchLocale((newLocale) => { + i18n.setLocale(newLocale); + }); + } else { + appVm.$watch(() => appVm.$locale, (newLocale) => { + i18n.setLocale(newLocale); + }); + } + } + function getDefaultLocale() { + if (typeof uni !== "undefined" && uni.getLocale) { + return uni.getLocale(); + } + if (typeof global !== "undefined" && global.getLocale) { + return global.getLocale(); + } + return LOCALE_EN; + } + function initVueI18n(locale, messages2 = {}, fallbackLocale, watcher) { + if (typeof locale !== "string") { + [locale, messages2] = [ + messages2, + locale + ]; + } + if (typeof locale !== "string") { + locale = getDefaultLocale(); + } + if (typeof fallbackLocale !== "string") { + fallbackLocale = typeof __uniConfig !== "undefined" && __uniConfig.fallbackLocale || LOCALE_EN; + } + const i18n = new I18n({ + locale, + fallbackLocale, + messages: messages2, + watcher + }); + let t2 = (key, values) => { + if (typeof getApp !== "function") { + t2 = function(key2, values2) { + return i18n.t(key2, values2); + }; + } else { + let isWatchedAppLocale = false; + t2 = function(key2, values2) { + const appVm = getApp().$vm; + if (appVm) { + appVm.$locale; + if (!isWatchedAppLocale) { + isWatchedAppLocale = true; + watchAppLocale(appVm, i18n); + } + } + return i18n.t(key2, values2); + }; + } + return t2(key, values); + }; + return { + i18n, + f(message, values, delimiters) { + return i18n.f(message, values, delimiters); + }, + t(key, values) { + return t2(key, values); + }, + add(locale2, message, override = true) { + return i18n.add(locale2, message, override); + }, + watch(fn) { + return i18n.watchLocale(fn); + }, + getLocale() { + return i18n.getLocale(); + }, + setLocale(newLocale) { + return i18n.setLocale(newLocale); + } + }; + } + const en$1 = { + "uni-datetime-picker.selectDate": "select date", + "uni-datetime-picker.selectTime": "select time", + "uni-datetime-picker.selectDateTime": "select date and time", + "uni-datetime-picker.startDate": "start date", + "uni-datetime-picker.endDate": "end date", + "uni-datetime-picker.startTime": "start time", + "uni-datetime-picker.endTime": "end time", + "uni-datetime-picker.ok": "ok", + "uni-datetime-picker.clear": "clear", + "uni-datetime-picker.cancel": "cancel", + "uni-datetime-picker.year": "-", + "uni-datetime-picker.month": "", + "uni-calender.MON": "MON", + "uni-calender.TUE": "TUE", + "uni-calender.WED": "WED", + "uni-calender.THU": "THU", + "uni-calender.FRI": "FRI", + "uni-calender.SAT": "SAT", + "uni-calender.SUN": "SUN", + "uni-calender.confirm": "confirm" + }; + const zhHans$1 = { + "uni-datetime-picker.selectDate": "选择日期", + "uni-datetime-picker.selectTime": "选择时间", + "uni-datetime-picker.selectDateTime": "选择日期时间", + "uni-datetime-picker.startDate": "开始日期", + "uni-datetime-picker.endDate": "结束日期", + "uni-datetime-picker.startTime": "开始时间", + "uni-datetime-picker.endTime": "结束时间", + "uni-datetime-picker.ok": "确定", + "uni-datetime-picker.clear": "清除", + "uni-datetime-picker.cancel": "取消", + "uni-datetime-picker.year": "年", + "uni-datetime-picker.month": "月", + "uni-calender.SUN": "日", + "uni-calender.MON": "一", + "uni-calender.TUE": "二", + "uni-calender.WED": "三", + "uni-calender.THU": "四", + "uni-calender.FRI": "五", + "uni-calender.SAT": "六", + "uni-calender.confirm": "确认" + }; + const zhHant$1 = { + "uni-datetime-picker.selectDate": "選擇日期", + "uni-datetime-picker.selectTime": "選擇時間", + "uni-datetime-picker.selectDateTime": "選擇日期時間", + "uni-datetime-picker.startDate": "開始日期", + "uni-datetime-picker.endDate": "結束日期", + "uni-datetime-picker.startTime": "開始时间", + "uni-datetime-picker.endTime": "結束时间", + "uni-datetime-picker.ok": "確定", + "uni-datetime-picker.clear": "清除", + "uni-datetime-picker.cancel": "取消", + "uni-datetime-picker.year": "年", + "uni-datetime-picker.month": "月", + "uni-calender.SUN": "日", + "uni-calender.MON": "一", + "uni-calender.TUE": "二", + "uni-calender.WED": "三", + "uni-calender.THU": "四", + "uni-calender.FRI": "五", + "uni-calender.SAT": "六", + "uni-calender.confirm": "確認" + }; + const i18nMessages = { + en: en$1, + "zh-Hans": zhHans$1, + "zh-Hant": zhHant$1 + }; + const { + t: t$3 + } = initVueI18n(i18nMessages); + const _sfc_main$L = { + name: "UniDatetimePicker", + data() { + return { + indicatorStyle: `height: 50px;`, + visible: false, + fixNvueBug: {}, + dateShow: true, + timeShow: true, + title: "日期和时间", + // 输入框当前时间 + time: "", + // 当前的年月日时分秒 + year: 1920, + month: 0, + day: 0, + hour: 0, + minute: 0, + second: 0, + // 起始时间 + startYear: 1920, + startMonth: 1, + startDay: 1, + startHour: 0, + startMinute: 0, + startSecond: 0, + // 结束时间 + endYear: 2120, + endMonth: 12, + endDay: 31, + endHour: 23, + endMinute: 59, + endSecond: 59 + }; + }, + options: { + virtualHost: true + }, + props: { + type: { + type: String, + default: "datetime" + }, + value: { + type: [String, Number], + default: "" + }, + modelValue: { + type: [String, Number], + default: "" + }, + start: { + type: [Number, String], + default: "" + }, + end: { + type: [Number, String], + default: "" + }, + returnType: { + type: String, + default: "string" + }, + disabled: { + type: [Boolean, String], + default: false + }, + border: { + type: [Boolean, String], + default: true + }, + hideSecond: { + type: [Boolean, String], + default: false + } + }, + watch: { + modelValue: { + handler(newVal) { + if (newVal) { + this.parseValue(fixIosDateFormat(newVal)); + this.initTime(false); + } else { + this.time = ""; + this.parseValue(Date.now()); + } + }, + immediate: true + }, + type: { + handler(newValue) { + if (newValue === "date") { + this.dateShow = true; + this.timeShow = false; + this.title = "日期"; + } else if (newValue === "time") { + this.dateShow = false; + this.timeShow = true; + this.title = "时间"; + } else { + this.dateShow = true; + this.timeShow = true; + this.title = "日期和时间"; + } + }, + immediate: true + }, + start: { + handler(newVal) { + this.parseDatetimeRange(fixIosDateFormat(newVal), "start"); + }, + immediate: true + }, + end: { + handler(newVal) { + this.parseDatetimeRange(fixIosDateFormat(newVal), "end"); + }, + immediate: true + }, + // 月、日、时、分、秒可选范围变化后,检查当前值是否在范围内,不在则当前值重置为可选范围第一项 + months(newVal) { + this.checkValue("month", this.month, newVal); + }, + days(newVal) { + this.checkValue("day", this.day, newVal); + }, + hours(newVal) { + this.checkValue("hour", this.hour, newVal); + }, + minutes(newVal) { + this.checkValue("minute", this.minute, newVal); + }, + seconds(newVal) { + this.checkValue("second", this.second, newVal); + } + }, + computed: { + // 当前年、月、日、时、分、秒选择范围 + years() { + return this.getCurrentRange("year"); + }, + months() { + return this.getCurrentRange("month"); + }, + days() { + return this.getCurrentRange("day"); + }, + hours() { + return this.getCurrentRange("hour"); + }, + minutes() { + return this.getCurrentRange("minute"); + }, + seconds() { + return this.getCurrentRange("second"); + }, + // picker 当前值数组 + ymd() { + return [this.year - this.minYear, this.month - this.minMonth, this.day - this.minDay]; + }, + hms() { + return [this.hour - this.minHour, this.minute - this.minMinute, this.second - this.minSecond]; + }, + // 当前 date 是 start + currentDateIsStart() { + return this.year === this.startYear && this.month === this.startMonth && this.day === this.startDay; + }, + // 当前 date 是 end + currentDateIsEnd() { + return this.year === this.endYear && this.month === this.endMonth && this.day === this.endDay; + }, + // 当前年、月、日、时、分、秒的最小值和最大值 + minYear() { + return this.startYear; + }, + maxYear() { + return this.endYear; + }, + minMonth() { + if (this.year === this.startYear) { + return this.startMonth; + } else { + return 1; + } + }, + maxMonth() { + if (this.year === this.endYear) { + return this.endMonth; + } else { + return 12; + } + }, + minDay() { + if (this.year === this.startYear && this.month === this.startMonth) { + return this.startDay; + } else { + return 1; + } + }, + maxDay() { + if (this.year === this.endYear && this.month === this.endMonth) { + return this.endDay; + } else { + return this.daysInMonth(this.year, this.month); + } + }, + minHour() { + if (this.type === "datetime") { + if (this.currentDateIsStart) { + return this.startHour; + } else { + return 0; + } + } + if (this.type === "time") { + return this.startHour; + } + }, + maxHour() { + if (this.type === "datetime") { + if (this.currentDateIsEnd) { + return this.endHour; + } else { + return 23; + } + } + if (this.type === "time") { + return this.endHour; + } + }, + minMinute() { + if (this.type === "datetime") { + if (this.currentDateIsStart && this.hour === this.startHour) { + return this.startMinute; + } else { + return 0; + } + } + if (this.type === "time") { + if (this.hour === this.startHour) { + return this.startMinute; + } else { + return 0; + } + } + }, + maxMinute() { + if (this.type === "datetime") { + if (this.currentDateIsEnd && this.hour === this.endHour) { + return this.endMinute; + } else { + return 59; + } + } + if (this.type === "time") { + if (this.hour === this.endHour) { + return this.endMinute; + } else { + return 59; + } + } + }, + minSecond() { + if (this.type === "datetime") { + if (this.currentDateIsStart && this.hour === this.startHour && this.minute === this.startMinute) { + return this.startSecond; + } else { + return 0; + } + } + if (this.type === "time") { + if (this.hour === this.startHour && this.minute === this.startMinute) { + return this.startSecond; + } else { + return 0; + } + } + }, + maxSecond() { + if (this.type === "datetime") { + if (this.currentDateIsEnd && this.hour === this.endHour && this.minute === this.endMinute) { + return this.endSecond; + } else { + return 59; + } + } + if (this.type === "time") { + if (this.hour === this.endHour && this.minute === this.endMinute) { + return this.endSecond; + } else { + return 59; + } + } + }, + /** + * for i18n + */ + selectTimeText() { + return t$3("uni-datetime-picker.selectTime"); + }, + okText() { + return t$3("uni-datetime-picker.ok"); + }, + clearText() { + return t$3("uni-datetime-picker.clear"); + }, + cancelText() { + return t$3("uni-datetime-picker.cancel"); + } + }, + mounted() { + }, + methods: { + /** + * @param {Object} item + * 小于 10 在前面加个 0 + */ + lessThanTen(item) { + return item < 10 ? "0" + item : item; + }, + /** + * 解析时分秒字符串,例如:00:00:00 + * @param {String} timeString + */ + parseTimeType(timeString) { + if (timeString) { + let timeArr = timeString.split(":"); + this.hour = Number(timeArr[0]); + this.minute = Number(timeArr[1]); + this.second = Number(timeArr[2]); + } + }, + /** + * 解析选择器初始值,类型可以是字符串、时间戳,例如:2000-10-02、'08:30:00'、 1610695109000 + * @param {String | Number} datetime + */ + initPickerValue(datetime) { + let defaultValue = null; + if (datetime) { + defaultValue = this.compareValueWithStartAndEnd(datetime, this.start, this.end); + } else { + defaultValue = Date.now(); + defaultValue = this.compareValueWithStartAndEnd(defaultValue, this.start, this.end); + } + this.parseValue(defaultValue); + }, + /** + * 初始值规则: + * - 用户设置初始值 value + * - 设置了起始时间 start、终止时间 end,并 start < value < end,初始值为 value, 否则初始值为 start + * - 只设置了起始时间 start,并 start < value,初始值为 value,否则初始值为 start + * - 只设置了终止时间 end,并 value < end,初始值为 value,否则初始值为 end + * - 无起始终止时间,则初始值为 value + * - 无初始值 value,则初始值为当前本地时间 Date.now() + * @param {Object} value + * @param {Object} dateBase + */ + compareValueWithStartAndEnd(value, start, end) { + let winner = null; + value = this.superTimeStamp(value); + start = this.superTimeStamp(start); + end = this.superTimeStamp(end); + if (start && end) { + if (value < start) { + winner = new Date(start); + } else if (value > end) { + winner = new Date(end); + } else { + winner = new Date(value); + } + } else if (start && !end) { + winner = start <= value ? new Date(value) : new Date(start); + } else if (!start && end) { + winner = value <= end ? new Date(value) : new Date(end); + } else { + winner = new Date(value); + } + return winner; + }, + /** + * 转换为可比较的时间戳,接受日期、时分秒、时间戳 + * @param {Object} value + */ + superTimeStamp(value) { + let dateBase = ""; + if (this.type === "time" && value && typeof value === "string") { + const now2 = /* @__PURE__ */ new Date(); + const year = now2.getFullYear(); + const month = now2.getMonth() + 1; + const day = now2.getDate(); + dateBase = year + "/" + month + "/" + day + " "; + } + if (Number(value)) { + value = parseInt(value); + dateBase = 0; + } + return this.createTimeStamp(dateBase + value); + }, + /** + * 解析默认值 value,字符串、时间戳 + * @param {Object} defaultTime + */ + parseValue(value) { + if (!value) { + return; + } + if (this.type === "time" && typeof value === "string") { + this.parseTimeType(value); + } else { + let defaultDate = null; + defaultDate = new Date(value); + if (this.type !== "time") { + this.year = defaultDate.getFullYear(); + this.month = defaultDate.getMonth() + 1; + this.day = defaultDate.getDate(); + } + if (this.type !== "date") { + this.hour = defaultDate.getHours(); + this.minute = defaultDate.getMinutes(); + this.second = defaultDate.getSeconds(); + } + } + if (this.hideSecond) { + this.second = 0; + } + }, + /** + * 解析可选择时间范围 start、end,年月日字符串、时间戳 + * @param {Object} defaultTime + */ + parseDatetimeRange(point, pointType) { + if (!point) { + if (pointType === "start") { + this.startYear = 1920; + this.startMonth = 1; + this.startDay = 1; + this.startHour = 0; + this.startMinute = 0; + this.startSecond = 0; + } + if (pointType === "end") { + this.endYear = 2120; + this.endMonth = 12; + this.endDay = 31; + this.endHour = 23; + this.endMinute = 59; + this.endSecond = 59; + } + return; + } + if (this.type === "time") { + const pointArr = point.split(":"); + this[pointType + "Hour"] = Number(pointArr[0]); + this[pointType + "Minute"] = Number(pointArr[1]); + this[pointType + "Second"] = Number(pointArr[2]); + } else { + if (!point) { + pointType === "start" ? this.startYear = this.year - 60 : this.endYear = this.year + 60; + return; + } + if (Number(point)) { + point = parseInt(point); + } + const hasTime = /[0-9]:[0-9]/; + if (this.type === "datetime" && pointType === "end" && typeof point === "string" && !hasTime.test( + point + )) { + point = point + " 23:59:59"; + } + const pointDate = new Date(point); + this[pointType + "Year"] = pointDate.getFullYear(); + this[pointType + "Month"] = pointDate.getMonth() + 1; + this[pointType + "Day"] = pointDate.getDate(); + if (this.type === "datetime") { + this[pointType + "Hour"] = pointDate.getHours(); + this[pointType + "Minute"] = pointDate.getMinutes(); + this[pointType + "Second"] = pointDate.getSeconds(); + } + } + }, + // 获取 年、月、日、时、分、秒 当前可选范围 + getCurrentRange(value) { + const range = []; + for (let i2 = this["min" + this.capitalize(value)]; i2 <= this["max" + this.capitalize(value)]; i2++) { + range.push(i2); + } + return range; + }, + // 字符串首字母大写 + capitalize(str) { + return str.charAt(0).toUpperCase() + str.slice(1); + }, + // 检查当前值是否在范围内,不在则当前值重置为可选范围第一项 + checkValue(name, value, values) { + if (values.indexOf(value) === -1) { + this[name] = values[0]; + } + }, + // 每个月的实际天数 + daysInMonth(year, month) { + return new Date(year, month, 0).getDate(); + }, + /** + * 生成时间戳 + * @param {Object} time + */ + createTimeStamp(time) { + if (!time) + return; + if (typeof time === "number") { + return time; + } else { + time = time.replace(/-/g, "/"); + if (this.type === "date") { + time = time + " 00:00:00"; + } + return Date.parse(time); + } + }, + /** + * 生成日期或时间的字符串 + */ + createDomSting() { + const yymmdd = this.year + "-" + this.lessThanTen(this.month) + "-" + this.lessThanTen(this.day); + let hhmmss = this.lessThanTen(this.hour) + ":" + this.lessThanTen(this.minute); + if (!this.hideSecond) { + hhmmss = hhmmss + ":" + this.lessThanTen(this.second); + } + if (this.type === "date") { + return yymmdd; + } else if (this.type === "time") { + return hhmmss; + } else { + return yymmdd + " " + hhmmss; + } + }, + /** + * 初始化返回值,并抛出 change 事件 + */ + initTime(emit = true) { + this.time = this.createDomSting(); + if (!emit) + return; + if (this.returnType === "timestamp" && this.type !== "time") { + this.$emit("change", this.createTimeStamp(this.time)); + this.$emit("input", this.createTimeStamp(this.time)); + this.$emit("update:modelValue", this.createTimeStamp(this.time)); + } else { + this.$emit("change", this.time); + this.$emit("input", this.time); + this.$emit("update:modelValue", this.time); + } + }, + /** + * 用户选择日期或时间更新 data + * @param {Object} e + */ + bindDateChange(e2) { + const val = e2.detail.value; + this.year = this.years[val[0]]; + this.month = this.months[val[1]]; + this.day = this.days[val[2]]; + }, + bindTimeChange(e2) { + const val = e2.detail.value; + this.hour = this.hours[val[0]]; + this.minute = this.minutes[val[1]]; + this.second = this.seconds[val[2]]; + }, + /** + * 初始化弹出层 + */ + initTimePicker() { + if (this.disabled) + return; + const value = fixIosDateFormat(this.time); + this.initPickerValue(value); + this.visible = !this.visible; + }, + /** + * 触发或关闭弹框 + */ + tiggerTimePicker(e2) { + this.visible = !this.visible; + }, + /** + * 用户点击“清空”按钮,清空当前值 + */ + clearTime() { + this.time = ""; + this.$emit("change", this.time); + this.$emit("input", this.time); + this.$emit("update:modelValue", this.time); + this.tiggerTimePicker(); + }, + /** + * 用户点击“确定”按钮 + */ + setTime() { + this.initTime(); + this.tiggerTimePicker(); + } + } + }; + function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("view", { class: "uni-datetime-picker" }, [ + vue.createElementVNode("view", { + onClick: _cache[0] || (_cache[0] = (...args) => $options.initTimePicker && $options.initTimePicker(...args)) + }, [ + vue.renderSlot(_ctx.$slots, "default", {}, () => [ + vue.createElementVNode( + "view", + { + class: vue.normalizeClass(["uni-datetime-picker-timebox-pointer", { "uni-datetime-picker-disabled": $props.disabled, "uni-datetime-picker-timebox": $props.border }]) + }, + [ + vue.createElementVNode( + "text", + { class: "uni-datetime-picker-text" }, + vue.toDisplayString($data.time), + 1 + /* TEXT */ + ), + !$data.time ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "uni-datetime-picker-time" + }, [ + vue.createElementVNode( + "text", + { class: "uni-datetime-picker-text" }, + vue.toDisplayString($options.selectTimeText), + 1 + /* TEXT */ + ) + ])) : vue.createCommentVNode("v-if", true) + ], + 2 + /* CLASS */ + ) + ], true) + ]), + $data.visible ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + id: "mask", + class: "uni-datetime-picker-mask", + onClick: _cache[1] || (_cache[1] = (...args) => $options.tiggerTimePicker && $options.tiggerTimePicker(...args)) + })) : vue.createCommentVNode("v-if", true), + $data.visible ? (vue.openBlock(), vue.createElementBlock( + "view", + { + key: 1, + class: vue.normalizeClass(["uni-datetime-picker-popup", [$data.dateShow && $data.timeShow ? "" : "fix-nvue-height"]]), + style: vue.normalizeStyle($data.fixNvueBug) + }, + [ + vue.createElementVNode("view", { class: "uni-title" }, [ + vue.createElementVNode( + "text", + { class: "uni-datetime-picker-text" }, + vue.toDisplayString($options.selectTimeText), + 1 + /* TEXT */ + ) + ]), + $data.dateShow ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "uni-datetime-picker__container-box" + }, [ + vue.createElementVNode("picker-view", { + class: "uni-datetime-picker-view", + "indicator-style": $data.indicatorStyle, + value: $options.ymd, + onChange: _cache[2] || (_cache[2] = (...args) => $options.bindDateChange && $options.bindDateChange(...args)) + }, [ + vue.createElementVNode("picker-view-column", null, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList($options.years, (item, index) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: "uni-datetime-picker-item", + key: index + }, [ + vue.createElementVNode( + "text", + { class: "uni-datetime-picker-item" }, + vue.toDisplayString($options.lessThanTen(item)), + 1 + /* TEXT */ + ) + ]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ]), + vue.createElementVNode("picker-view-column", null, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList($options.months, (item, index) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: "uni-datetime-picker-item", + key: index + }, [ + vue.createElementVNode( + "text", + { class: "uni-datetime-picker-item" }, + vue.toDisplayString($options.lessThanTen(item)), + 1 + /* TEXT */ + ) + ]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ]), + vue.createElementVNode("picker-view-column", null, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList($options.days, (item, index) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: "uni-datetime-picker-item", + key: index + }, [ + vue.createElementVNode( + "text", + { class: "uni-datetime-picker-item" }, + vue.toDisplayString($options.lessThanTen(item)), + 1 + /* TEXT */ + ) + ]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ]) + ], 40, ["indicator-style", "value"]), + vue.createCommentVNode(" 兼容 nvue 不支持伪类 "), + vue.createElementVNode("text", { class: "uni-datetime-picker-sign sign-left" }, "-"), + vue.createElementVNode("text", { class: "uni-datetime-picker-sign sign-right" }, "-") + ])) : vue.createCommentVNode("v-if", true), + $data.timeShow ? (vue.openBlock(), vue.createElementBlock("view", { + key: 1, + class: "uni-datetime-picker__container-box" + }, [ + vue.createElementVNode("picker-view", { + class: vue.normalizeClass(["uni-datetime-picker-view", [$props.hideSecond ? "time-hide-second" : ""]]), + "indicator-style": $data.indicatorStyle, + value: $options.hms, + onChange: _cache[3] || (_cache[3] = (...args) => $options.bindTimeChange && $options.bindTimeChange(...args)) + }, [ + vue.createElementVNode("picker-view-column", null, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList($options.hours, (item, index) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: "uni-datetime-picker-item", + key: index + }, [ + vue.createElementVNode( + "text", + { class: "uni-datetime-picker-item" }, + vue.toDisplayString($options.lessThanTen(item)), + 1 + /* TEXT */ + ) + ]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ]), + vue.createElementVNode("picker-view-column", null, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList($options.minutes, (item, index) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: "uni-datetime-picker-item", + key: index + }, [ + vue.createElementVNode( + "text", + { class: "uni-datetime-picker-item" }, + vue.toDisplayString($options.lessThanTen(item)), + 1 + /* TEXT */ + ) + ]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ]), + !$props.hideSecond ? (vue.openBlock(), vue.createElementBlock("picker-view-column", { key: 0 }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList($options.seconds, (item, index) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: "uni-datetime-picker-item", + key: index + }, [ + vue.createElementVNode( + "text", + { class: "uni-datetime-picker-item" }, + vue.toDisplayString($options.lessThanTen(item)), + 1 + /* TEXT */ + ) + ]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ])) : vue.createCommentVNode("v-if", true) + ], 42, ["indicator-style", "value"]), + vue.createCommentVNode(" 兼容 nvue 不支持伪类 "), + vue.createElementVNode( + "text", + { + class: vue.normalizeClass(["uni-datetime-picker-sign", [$props.hideSecond ? "sign-center" : "sign-left"]]) + }, + ":", + 2 + /* CLASS */ + ), + !$props.hideSecond ? (vue.openBlock(), vue.createElementBlock("text", { + key: 0, + class: "uni-datetime-picker-sign sign-right" + }, ":")) : vue.createCommentVNode("v-if", true) + ])) : vue.createCommentVNode("v-if", true), + vue.createElementVNode("view", { class: "uni-datetime-picker-btn" }, [ + vue.createElementVNode("view", { + onClick: _cache[4] || (_cache[4] = (...args) => $options.clearTime && $options.clearTime(...args)) + }, [ + vue.createElementVNode( + "text", + { class: "uni-datetime-picker-btn-text" }, + vue.toDisplayString($options.clearText), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "uni-datetime-picker-btn-group" }, [ + vue.createElementVNode("view", { + class: "uni-datetime-picker-cancel", + onClick: _cache[5] || (_cache[5] = (...args) => $options.tiggerTimePicker && $options.tiggerTimePicker(...args)) + }, [ + vue.createElementVNode( + "text", + { class: "uni-datetime-picker-btn-text" }, + vue.toDisplayString($options.cancelText), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { + onClick: _cache[6] || (_cache[6] = (...args) => $options.setTime && $options.setTime(...args)) + }, [ + vue.createElementVNode( + "text", + { class: "uni-datetime-picker-btn-text" }, + vue.toDisplayString($options.okText), + 1 + /* TEXT */ + ) + ]) + ]) + ]) + ], + 6 + /* CLASS, STYLE */ + )) : vue.createCommentVNode("v-if", true) + ]); + } + const TimePicker = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$b], ["__scopeId", "data-v-1d532b70"], ["__file", "D:/projects/cxc-szcx-uniapp/uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue"]]); + const { + t: t$2 + } = initVueI18n(i18nMessages); + const _sfc_main$K = { + components: { + calendarItem, + timePicker: TimePicker + }, + options: { + virtualHost: true + }, + props: { + date: { + type: String, + default: "" + }, + defTime: { + type: [String, Object], + default: "" + }, + selectableTimes: { + type: [Object], + default() { + return {}; + } + }, + selected: { + type: Array, + default() { + return []; + } + }, + startDate: { + type: String, + default: "" + }, + endDate: { + type: String, + default: "" + }, + startPlaceholder: { + type: String, + default: "" + }, + endPlaceholder: { + type: String, + default: "" + }, + range: { + type: Boolean, + default: false + }, + hasTime: { + type: Boolean, + default: false + }, + insert: { + type: Boolean, + default: true + }, + showMonth: { + type: Boolean, + default: true + }, + clearDate: { + type: Boolean, + default: true + }, + checkHover: { + type: Boolean, + default: true + }, + hideSecond: { + type: [Boolean], + default: false + }, + pleStatus: { + type: Object, + default() { + return { + before: "", + after: "", + data: [], + fulldate: "" + }; + } + }, + defaultValue: { + type: [String, Object, Array], + default: "" + } + }, + data() { + return { + show: false, + weeks: [], + calendar: {}, + nowDate: {}, + aniMaskShow: false, + firstEnter: true, + time: "", + timeRange: { + startTime: "", + endTime: "" + }, + tempSingleDate: "", + tempRange: { + before: "", + after: "" + } + }; + }, + watch: { + date: { + immediate: true, + handler(newVal) { + if (!this.range) { + this.tempSingleDate = newVal; + setTimeout(() => { + this.init(newVal); + }, 100); + } + } + }, + defTime: { + immediate: true, + handler(newVal) { + if (!this.range) { + this.time = newVal; + } else { + this.timeRange.startTime = newVal.start; + this.timeRange.endTime = newVal.end; + } + } + }, + startDate(val) { + if (!this.cale) { + return; + } + this.cale.setStartDate(val); + this.cale.setDate(this.nowDate.fullDate); + this.weeks = this.cale.weeks; + }, + endDate(val) { + if (!this.cale) { + return; + } + this.cale.setEndDate(val); + this.cale.setDate(this.nowDate.fullDate); + this.weeks = this.cale.weeks; + }, + selected(newVal) { + if (!this.cale) { + return; + } + this.cale.setSelectInfo(this.nowDate.fullDate, newVal); + this.weeks = this.cale.weeks; + }, + pleStatus: { + immediate: true, + handler(newVal) { + const { + before, + after, + fulldate, + which + } = newVal; + this.tempRange.before = before; + this.tempRange.after = after; + setTimeout(() => { + if (fulldate) { + this.cale.setHoverMultiple(fulldate); + if (before && after) { + this.cale.lastHover = true; + if (this.rangeWithinMonth(after, before)) + return; + this.setDate(before); + } else { + this.cale.setMultiple(fulldate); + this.setDate(this.nowDate.fullDate); + this.calendar.fullDate = ""; + this.cale.lastHover = false; + } + } else { + if (!this.cale) { + return; + } + this.cale.setDefaultMultiple(before, after); + if (which === "left" && before) { + this.setDate(before); + this.weeks = this.cale.weeks; + } else if (after) { + this.setDate(after); + this.weeks = this.cale.weeks; + } + this.cale.lastHover = true; + } + }, 16); + } + } + }, + computed: { + timepickerStartTime() { + const activeDate = this.range ? this.tempRange.before : this.calendar.fullDate; + return activeDate === this.startDate ? this.selectableTimes.start : ""; + }, + timepickerEndTime() { + const activeDate = this.range ? this.tempRange.after : this.calendar.fullDate; + return activeDate === this.endDate ? this.selectableTimes.end : ""; + }, + /** + * for i18n + */ + selectDateText() { + return t$2("uni-datetime-picker.selectDate"); + }, + startDateText() { + return this.startPlaceholder || t$2("uni-datetime-picker.startDate"); + }, + endDateText() { + return this.endPlaceholder || t$2("uni-datetime-picker.endDate"); + }, + okText() { + return t$2("uni-datetime-picker.ok"); + }, + yearText() { + return t$2("uni-datetime-picker.year"); + }, + monthText() { + return t$2("uni-datetime-picker.month"); + }, + MONText() { + return t$2("uni-calender.MON"); + }, + TUEText() { + return t$2("uni-calender.TUE"); + }, + WEDText() { + return t$2("uni-calender.WED"); + }, + THUText() { + return t$2("uni-calender.THU"); + }, + FRIText() { + return t$2("uni-calender.FRI"); + }, + SATText() { + return t$2("uni-calender.SAT"); + }, + SUNText() { + return t$2("uni-calender.SUN"); + }, + confirmText() { + return t$2("uni-calender.confirm"); + } + }, + created() { + this.cale = new Calendar$1({ + selected: this.selected, + startDate: this.startDate, + endDate: this.endDate, + range: this.range + }); + this.init(this.date); + }, + methods: { + leaveCale() { + this.firstEnter = true; + }, + handleMouse(weeks) { + if (weeks.disable) + return; + if (this.cale.lastHover) + return; + let { + before, + after + } = this.cale.multipleStatus; + if (!before) + return; + this.calendar = weeks; + this.cale.setHoverMultiple(this.calendar.fullDate); + this.weeks = this.cale.weeks; + if (this.firstEnter) { + this.$emit("firstEnterCale", this.cale.multipleStatus); + this.firstEnter = false; + } + }, + rangeWithinMonth(A2, B2) { + const [yearA, monthA] = A2.split("-"); + const [yearB, monthB] = B2.split("-"); + return yearA === yearB && monthA === monthB; + }, + // 蒙版点击事件 + maskClick() { + this.close(); + this.$emit("maskClose"); + }, + clearCalender() { + if (this.range) { + this.timeRange.startTime = ""; + this.timeRange.endTime = ""; + this.tempRange.before = ""; + this.tempRange.after = ""; + this.cale.multipleStatus.before = ""; + this.cale.multipleStatus.after = ""; + this.cale.multipleStatus.data = []; + this.cale.lastHover = false; + } else { + this.time = ""; + this.tempSingleDate = ""; + } + this.calendar.fullDate = ""; + this.setDate(/* @__PURE__ */ new Date()); + }, + bindDateChange(e2) { + const value = e2.detail.value + "-1"; + this.setDate(value); + }, + /** + * 初始化日期显示 + * @param {Object} date + */ + init(date) { + if (!this.cale) { + return; + } + this.cale.setDate(date || /* @__PURE__ */ new Date()); + this.weeks = this.cale.weeks; + this.nowDate = this.cale.getInfo(date); + this.calendar = { + ...this.nowDate + }; + if (!date) { + this.calendar.fullDate = ""; + if (this.defaultValue && !this.range) { + const defaultDate = new Date(this.defaultValue); + const fullDate = getDate(defaultDate); + const year = defaultDate.getFullYear(); + const month = defaultDate.getMonth() + 1; + const date2 = defaultDate.getDate(); + const day = defaultDate.getDay(); + this.calendar = { + fullDate, + year, + month, + date: date2, + day + }, this.tempSingleDate = fullDate; + this.time = getTime$1(defaultDate, this.hideSecond); + } + } + }, + /** + * 打开日历弹窗 + */ + open() { + if (this.clearDate && !this.insert) { + this.cale.cleanMultipleStatus(); + this.init(this.date); + } + this.show = true; + this.$nextTick(() => { + setTimeout(() => { + this.aniMaskShow = true; + }, 50); + }); + }, + /** + * 关闭日历弹窗 + */ + close() { + this.aniMaskShow = false; + this.$nextTick(() => { + setTimeout(() => { + this.show = false; + this.$emit("close"); + }, 300); + }); + }, + /** + * 确认按钮 + */ + confirm() { + this.setEmit("confirm"); + this.close(); + }, + /** + * 变化触发 + */ + change(isSingleChange) { + if (!this.insert && !isSingleChange) + return; + this.setEmit("change"); + }, + /** + * 选择月份触发 + */ + monthSwitch() { + let { + year, + month + } = this.nowDate; + this.$emit("monthSwitch", { + year, + month: Number(month) + }); + }, + /** + * 派发事件 + * @param {Object} name + */ + setEmit(name) { + if (!this.range) { + if (!this.calendar.fullDate) { + this.calendar = this.cale.getInfo(/* @__PURE__ */ new Date()); + this.tempSingleDate = this.calendar.fullDate; + } + if (this.hasTime && !this.time) { + this.time = getTime$1(/* @__PURE__ */ new Date(), this.hideSecond); + } + } + let { + year, + month, + date, + fullDate, + extraInfo + } = this.calendar; + this.$emit(name, { + range: this.cale.multipleStatus, + year, + month, + date, + time: this.time, + timeRange: this.timeRange, + fulldate: fullDate, + extraInfo: extraInfo || {} + }); + }, + /** + * 选择天触发 + * @param {Object} weeks + */ + choiceDate(weeks) { + if (weeks.disable) + return; + this.calendar = weeks; + this.calendar.userChecked = true; + this.cale.setMultiple(this.calendar.fullDate, true); + this.weeks = this.cale.weeks; + this.tempSingleDate = this.calendar.fullDate; + const beforeDate = new Date(this.cale.multipleStatus.before).getTime(); + const afterDate = new Date(this.cale.multipleStatus.after).getTime(); + if (beforeDate > afterDate && afterDate) { + this.tempRange.before = this.cale.multipleStatus.after; + this.tempRange.after = this.cale.multipleStatus.before; + } else { + this.tempRange.before = this.cale.multipleStatus.before; + this.tempRange.after = this.cale.multipleStatus.after; + } + this.change(true); + }, + changeMonth(type) { + let newDate; + if (type === "pre") { + newDate = this.cale.getPreMonthObj(this.nowDate.fullDate).fullDate; + } else if (type === "next") { + newDate = this.cale.getNextMonthObj(this.nowDate.fullDate).fullDate; + } + this.setDate(newDate); + this.monthSwitch(); + }, + /** + * 设置日期 + * @param {Object} date + */ + setDate(date) { + this.cale.setDate(date); + this.weeks = this.cale.weeks; + this.nowDate = this.cale.getInfo(date); + } + } + }; + function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) { + const _component_calendar_item = vue.resolveComponent("calendar-item"); + const _component_time_picker = vue.resolveComponent("time-picker"); + const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_1$1); + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: "uni-calendar", + onMouseleave: _cache[8] || (_cache[8] = (...args) => $options.leaveCale && $options.leaveCale(...args)) + }, + [ + !$props.insert && $data.show ? (vue.openBlock(), vue.createElementBlock( + "view", + { + key: 0, + class: vue.normalizeClass(["uni-calendar__mask", { "uni-calendar--mask-show": $data.aniMaskShow }]), + onClick: _cache[0] || (_cache[0] = (...args) => $options.maskClick && $options.maskClick(...args)) + }, + null, + 2 + /* CLASS */ + )) : vue.createCommentVNode("v-if", true), + $props.insert || $data.show ? (vue.openBlock(), vue.createElementBlock( + "view", + { + key: 1, + class: vue.normalizeClass(["uni-calendar__content", { "uni-calendar--fixed": !$props.insert, "uni-calendar--ani-show": $data.aniMaskShow, "uni-calendar__content-mobile": $data.aniMaskShow }]) + }, + [ + vue.createElementVNode( + "view", + { + class: vue.normalizeClass(["uni-calendar__header", { "uni-calendar__header-mobile": !$props.insert }]) + }, + [ + vue.createElementVNode("view", { + class: "uni-calendar__header-btn-box", + onClick: _cache[1] || (_cache[1] = vue.withModifiers(($event) => $options.changeMonth("pre"), ["stop"])) + }, [ + vue.createElementVNode("view", { class: "uni-calendar__header-btn uni-calendar--left" }) + ]), + vue.createElementVNode("picker", { + mode: "date", + value: $props.date, + fields: "month", + onChange: _cache[2] || (_cache[2] = (...args) => $options.bindDateChange && $options.bindDateChange(...args)) + }, [ + vue.createElementVNode( + "text", + { class: "uni-calendar__header-text" }, + vue.toDisplayString(($data.nowDate.year || "") + $options.yearText + ($data.nowDate.month || "") + $options.monthText), + 1 + /* TEXT */ + ) + ], 40, ["value"]), + vue.createElementVNode("view", { + class: "uni-calendar__header-btn-box", + onClick: _cache[3] || (_cache[3] = vue.withModifiers(($event) => $options.changeMonth("next"), ["stop"])) + }, [ + vue.createElementVNode("view", { class: "uni-calendar__header-btn uni-calendar--right" }) + ]), + !$props.insert ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "dialog-close", + onClick: _cache[4] || (_cache[4] = (...args) => $options.maskClick && $options.maskClick(...args)) + }, [ + vue.createElementVNode("view", { + class: "dialog-close-plus", + "data-id": "close" + }), + vue.createElementVNode("view", { + class: "dialog-close-plus dialog-close-rotate", + "data-id": "close" + }) + ])) : vue.createCommentVNode("v-if", true) + ], + 2 + /* CLASS */ + ), + vue.createElementVNode("view", { class: "uni-calendar__box" }, [ + $props.showMonth ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "uni-calendar__box-bg" + }, [ + vue.createElementVNode( + "text", + { class: "uni-calendar__box-bg-text" }, + vue.toDisplayString($data.nowDate.month), + 1 + /* TEXT */ + ) + ])) : vue.createCommentVNode("v-if", true), + vue.createElementVNode("view", { + class: "uni-calendar__weeks", + style: { "padding-bottom": "7px" } + }, [ + vue.createElementVNode("view", { class: "uni-calendar__weeks-day" }, [ + vue.createElementVNode( + "text", + { class: "uni-calendar__weeks-day-text" }, + vue.toDisplayString($options.SUNText), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "uni-calendar__weeks-day" }, [ + vue.createElementVNode( + "text", + { class: "uni-calendar__weeks-day-text" }, + vue.toDisplayString($options.MONText), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "uni-calendar__weeks-day" }, [ + vue.createElementVNode( + "text", + { class: "uni-calendar__weeks-day-text" }, + vue.toDisplayString($options.TUEText), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "uni-calendar__weeks-day" }, [ + vue.createElementVNode( + "text", + { class: "uni-calendar__weeks-day-text" }, + vue.toDisplayString($options.WEDText), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "uni-calendar__weeks-day" }, [ + vue.createElementVNode( + "text", + { class: "uni-calendar__weeks-day-text" }, + vue.toDisplayString($options.THUText), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "uni-calendar__weeks-day" }, [ + vue.createElementVNode( + "text", + { class: "uni-calendar__weeks-day-text" }, + vue.toDisplayString($options.FRIText), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "uni-calendar__weeks-day" }, [ + vue.createElementVNode( + "text", + { class: "uni-calendar__weeks-day-text" }, + vue.toDisplayString($options.SATText), + 1 + /* TEXT */ + ) + ]) + ]), + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList($data.weeks, (item, weekIndex) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: "uni-calendar__weeks", + key: weekIndex + }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(item, (weeks, weeksIndex) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: "uni-calendar__weeks-item", + key: weeksIndex + }, [ + vue.createVNode(_component_calendar_item, { + class: "uni-calendar-item--hook", + weeks, + calendar: $data.calendar, + selected: $props.selected, + checkHover: $props.range, + onChange: $options.choiceDate, + onHandleMouse: $options.handleMouse + }, null, 8, ["weeks", "calendar", "selected", "checkHover", "onChange", "onHandleMouse"]) + ]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ]), + !$props.insert && !$props.range && $props.hasTime ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "uni-date-changed uni-calendar--fixed-top", + style: { "padding": "0 80px" } + }, [ + vue.createElementVNode( + "view", + { class: "uni-date-changed--time-date" }, + vue.toDisplayString($data.tempSingleDate ? $data.tempSingleDate : $options.selectDateText), + 1 + /* TEXT */ + ), + vue.createVNode(_component_time_picker, { + type: "time", + start: $options.timepickerStartTime, + end: $options.timepickerEndTime, + modelValue: $data.time, + "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $data.time = $event), + disabled: !$data.tempSingleDate, + border: false, + "hide-second": $props.hideSecond, + class: "time-picker-style" + }, null, 8, ["start", "end", "modelValue", "disabled", "hide-second"]) + ])) : vue.createCommentVNode("v-if", true), + !$props.insert && $props.range && $props.hasTime ? (vue.openBlock(), vue.createElementBlock("view", { + key: 1, + class: "uni-date-changed uni-calendar--fixed-top" + }, [ + vue.createElementVNode("view", { class: "uni-date-changed--time-start" }, [ + vue.createElementVNode( + "view", + { class: "uni-date-changed--time-date" }, + vue.toDisplayString($data.tempRange.before ? $data.tempRange.before : $options.startDateText), + 1 + /* TEXT */ + ), + vue.createVNode(_component_time_picker, { + type: "time", + start: $options.timepickerStartTime, + modelValue: $data.timeRange.startTime, + "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $data.timeRange.startTime = $event), + border: false, + "hide-second": $props.hideSecond, + disabled: !$data.tempRange.before, + class: "time-picker-style" + }, null, 8, ["start", "modelValue", "hide-second", "disabled"]) + ]), + vue.createElementVNode("view", { style: { "line-height": "50px" } }, [ + vue.createVNode(_component_uni_icons, { + type: "arrowthinright", + color: "#999" + }) + ]), + vue.createElementVNode("view", { class: "uni-date-changed--time-end" }, [ + vue.createElementVNode( + "view", + { class: "uni-date-changed--time-date" }, + vue.toDisplayString($data.tempRange.after ? $data.tempRange.after : $options.endDateText), + 1 + /* TEXT */ + ), + vue.createVNode(_component_time_picker, { + type: "time", + end: $options.timepickerEndTime, + modelValue: $data.timeRange.endTime, + "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $data.timeRange.endTime = $event), + border: false, + "hide-second": $props.hideSecond, + disabled: !$data.tempRange.after, + class: "time-picker-style" + }, null, 8, ["end", "modelValue", "hide-second", "disabled"]) + ]) + ])) : vue.createCommentVNode("v-if", true), + !$props.insert ? (vue.openBlock(), vue.createElementBlock("view", { + key: 2, + class: "uni-date-changed uni-date-btn--ok" + }, [ + vue.createCommentVNode(' {{confirmText}}by xxl ') + ])) : vue.createCommentVNode("v-if", true) + ], + 2 + /* CLASS */ + )) : vue.createCommentVNode("v-if", true) + ], + 32 + /* NEED_HYDRATION */ + ); + } + const Calendar = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$a], ["__scopeId", "data-v-1d379219"], ["__file", "D:/projects/cxc-szcx-uniapp/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue"]]); + const _sfc_main$J = { + name: "UniDatetimePicker", + options: { + virtualHost: true + }, + components: { + Calendar, + TimePicker + }, + data() { + return { + isRange: false, + hasTime: false, + displayValue: "", + inputDate: "", + calendarDate: "", + pickerTime: "", + calendarRange: { + startDate: "", + startTime: "", + endDate: "", + endTime: "" + }, + displayRangeValue: { + startDate: "", + endDate: "" + }, + tempRange: { + startDate: "", + startTime: "", + endDate: "", + endTime: "" + }, + // 左右日历同步数据 + startMultipleStatus: { + before: "", + after: "", + data: [], + fulldate: "" + }, + endMultipleStatus: { + before: "", + after: "", + data: [], + fulldate: "" + }, + pickerVisible: false, + pickerPositionStyle: null, + isEmitValue: false, + isPhone: false, + isFirstShow: true, + i18nT: () => { + } + }; + }, + props: { + type: { + type: String, + default: "datetime" + }, + value: { + type: [String, Number, Array, Date], + default: "" + }, + modelValue: { + type: [String, Number, Array, Date], + default: "" + }, + start: { + type: [Number, String], + default: "" + }, + end: { + type: [Number, String], + default: "" + }, + returnType: { + type: String, + default: "string" + }, + placeholder: { + type: String, + default: "" + }, + startPlaceholder: { + type: String, + default: "" + }, + endPlaceholder: { + type: String, + default: "" + }, + rangeSeparator: { + type: String, + default: "-" + }, + border: { + type: [Boolean], + default: true + }, + disabled: { + type: [Boolean], + default: false + }, + clearIcon: { + type: [Boolean], + default: true + }, + hideSecond: { + type: [Boolean], + default: false + }, + defaultValue: { + type: [String, Object, Array], + default: "" + } + }, + watch: { + type: { + immediate: true, + handler(newVal) { + this.hasTime = newVal.indexOf("time") !== -1; + this.isRange = newVal.indexOf("range") !== -1; + } + }, + modelValue: { + immediate: true, + handler(newVal) { + if (this.isEmitValue) { + this.isEmitValue = false; + return; + } + this.initPicker(newVal); + } + }, + start: { + immediate: true, + handler(newVal) { + if (!newVal) + return; + this.calendarRange.startDate = getDate(newVal); + if (this.hasTime) { + this.calendarRange.startTime = getTime$1(newVal); + } + } + }, + end: { + immediate: true, + handler(newVal) { + if (!newVal) + return; + this.calendarRange.endDate = getDate(newVal); + if (this.hasTime) { + this.calendarRange.endTime = getTime$1(newVal, this.hideSecond); + } + } + } + }, + computed: { + timepickerStartTime() { + const activeDate = this.isRange ? this.tempRange.startDate : this.inputDate; + return activeDate === this.calendarRange.startDate ? this.calendarRange.startTime : ""; + }, + timepickerEndTime() { + const activeDate = this.isRange ? this.tempRange.endDate : this.inputDate; + return activeDate === this.calendarRange.endDate ? this.calendarRange.endTime : ""; + }, + mobileCalendarTime() { + const timeRange = { + start: this.tempRange.startTime, + end: this.tempRange.endTime + }; + return this.isRange ? timeRange : this.pickerTime; + }, + mobSelectableTime() { + return { + start: this.calendarRange.startTime, + end: this.calendarRange.endTime + }; + }, + datePopupWidth() { + return this.isRange ? 653 : 301; + }, + /** + * for i18n + */ + singlePlaceholderText() { + return this.placeholder || (this.type === "date" ? this.selectDateText : this.selectDateTimeText); + }, + startPlaceholderText() { + return this.startPlaceholder || this.startDateText; + }, + endPlaceholderText() { + return this.endPlaceholder || this.endDateText; + }, + selectDateText() { + return this.i18nT("uni-datetime-picker.selectDate"); + }, + selectDateTimeText() { + return this.i18nT("uni-datetime-picker.selectDateTime"); + }, + selectTimeText() { + return this.i18nT("uni-datetime-picker.selectTime"); + }, + startDateText() { + return this.startPlaceholder || this.i18nT("uni-datetime-picker.startDate"); + }, + startTimeText() { + return this.i18nT("uni-datetime-picker.startTime"); + }, + endDateText() { + return this.endPlaceholder || this.i18nT("uni-datetime-picker.endDate"); + }, + endTimeText() { + return this.i18nT("uni-datetime-picker.endTime"); + }, + okText() { + return this.i18nT("uni-datetime-picker.ok"); + }, + clearText() { + return this.i18nT("uni-datetime-picker.clear"); + }, + showClearIcon() { + return this.clearIcon && !this.disabled && (this.displayValue || this.displayRangeValue.startDate && this.displayRangeValue.endDate); + } + }, + created() { + this.initI18nT(); + this.platform(); + }, + methods: { + initI18nT() { + const vueI18n = initVueI18n(i18nMessages); + this.i18nT = vueI18n.t; + }, + initPicker(newVal) { + if (!newVal && !this.defaultValue || Array.isArray(newVal) && !newVal.length) { + this.$nextTick(() => { + this.clear(false); + }); + return; + } + if (!Array.isArray(newVal) && !this.isRange) { + if (newVal) { + this.displayValue = this.inputDate = this.calendarDate = getDate(newVal); + if (this.hasTime) { + this.pickerTime = getTime$1(newVal, this.hideSecond); + this.displayValue = `${this.displayValue} ${this.pickerTime}`; + } + } else if (this.defaultValue) { + this.inputDate = this.calendarDate = getDate(this.defaultValue); + if (this.hasTime) { + this.pickerTime = getTime$1(this.defaultValue, this.hideSecond); + } + } + } else { + const [before, after] = newVal; + if (!before && !after) + return; + const beforeDate = getDate(before); + const beforeTime = getTime$1(before, this.hideSecond); + const afterDate = getDate(after); + const afterTime = getTime$1(after, this.hideSecond); + const startDate = beforeDate; + const endDate = afterDate; + this.displayRangeValue.startDate = this.tempRange.startDate = startDate; + this.displayRangeValue.endDate = this.tempRange.endDate = endDate; + if (this.hasTime) { + this.displayRangeValue.startDate = `${beforeDate} ${beforeTime}`; + this.displayRangeValue.endDate = `${afterDate} ${afterTime}`; + this.tempRange.startTime = beforeTime; + this.tempRange.endTime = afterTime; + } + const defaultRange = { + before: beforeDate, + after: afterDate + }; + this.startMultipleStatus = Object.assign({}, this.startMultipleStatus, defaultRange, { + which: "right" + }); + this.endMultipleStatus = Object.assign({}, this.endMultipleStatus, defaultRange, { + which: "left" + }); + } + }, + updateLeftCale(e2) { + const left = this.$refs.left; + left.cale.setHoverMultiple(e2.after); + left.setDate(this.$refs.left.nowDate.fullDate); + }, + updateRightCale(e2) { + const right = this.$refs.right; + right.cale.setHoverMultiple(e2.after); + right.setDate(this.$refs.right.nowDate.fullDate); + }, + platform() { + if (typeof navigator !== "undefined") { + this.isPhone = navigator.userAgent.toLowerCase().indexOf("mobile") !== -1; + return; + } + const { + windowWidth + } = uni.getSystemInfoSync(); + this.isPhone = windowWidth <= 500; + this.windowWidth = windowWidth; + }, + show() { + this.$emit("show"); + if (this.disabled) { + return; + } + this.platform(); + if (this.isPhone) { + setTimeout(() => { + this.$refs.mobile.open(); + }, 0); + return; + } + this.pickerPositionStyle = { + top: "10px" + }; + const dateEditor = uni.createSelectorQuery().in(this).select(".uni-date-editor"); + dateEditor.boundingClientRect((rect) => { + if (this.windowWidth - rect.left < this.datePopupWidth) { + this.pickerPositionStyle.right = 0; + } + }).exec(); + setTimeout(() => { + this.pickerVisible = !this.pickerVisible; + if (!this.isPhone && this.isRange && this.isFirstShow) { + this.isFirstShow = false; + const { + startDate, + endDate + } = this.calendarRange; + if (startDate && endDate) { + if (this.diffDate(startDate, endDate) < 30) { + this.$refs.right.changeMonth("pre"); + } + } else { + if (this.isPhone) { + this.$refs.right.cale.lastHover = false; + } + } + } + }, 50); + }, + close() { + setTimeout(() => { + this.pickerVisible = false; + this.$emit("maskClick", this.value); + this.$refs.mobile && this.$refs.mobile.close(); + }, 20); + }, + setEmit(value) { + if (this.returnType === "timestamp" || this.returnType === "date") { + if (!Array.isArray(value)) { + if (!this.hasTime) { + value = value + " 00:00:00"; + } + value = this.createTimestamp(value); + if (this.returnType === "date") { + value = new Date(value); + } + } else { + if (!this.hasTime) { + value[0] = value[0] + " 00:00:00"; + value[1] = value[1] + " 00:00:00"; + } + value[0] = this.createTimestamp(value[0]); + value[1] = this.createTimestamp(value[1]); + if (this.returnType === "date") { + value[0] = new Date(value[0]); + value[1] = new Date(value[1]); + } + } + } + this.$emit("update:modelValue", value); + this.$emit("input", value); + this.$emit("change", value); + this.isEmitValue = true; + }, + createTimestamp(date) { + date = fixIosDateFormat(date); + return Date.parse(new Date(date)); + }, + singleChange(e2) { + this.calendarDate = this.inputDate = e2.fulldate; + if (this.hasTime) + return; + this.confirmSingleChange(); + }, + confirmSingleChange() { + if (!checkDate(this.inputDate)) { + const now2 = /* @__PURE__ */ new Date(); + this.calendarDate = this.inputDate = getDate(now2); + this.pickerTime = getTime$1(now2, this.hideSecond); + } + let startLaterInputDate = false; + let startDate, startTime; + if (this.start) { + let startString = this.start; + if (typeof this.start === "number") { + startString = getDateTime(this.start, this.hideSecond); + } + [startDate, startTime] = startString.split(" "); + if (this.start && !dateCompare(startDate, this.inputDate)) { + startLaterInputDate = true; + this.inputDate = startDate; + } + } + let endEarlierInputDate = false; + let endDate, endTime; + if (this.end) { + let endString = this.end; + if (typeof this.end === "number") { + endString = getDateTime(this.end, this.hideSecond); + } + [endDate, endTime] = endString.split(" "); + if (this.end && !dateCompare(this.inputDate, endDate)) { + endEarlierInputDate = true; + this.inputDate = endDate; + } + } + if (this.hasTime) { + if (startLaterInputDate) { + this.pickerTime = startTime || getDefaultSecond(this.hideSecond); + } + if (endEarlierInputDate) { + this.pickerTime = endTime || getDefaultSecond(this.hideSecond); + } + if (!this.pickerTime) { + this.pickerTime = getTime$1(Date.now(), this.hideSecond); + } + this.displayValue = `${this.inputDate} ${this.pickerTime}`; + } else { + this.displayValue = this.inputDate; + } + this.setEmit(this.displayValue); + this.pickerVisible = false; + }, + leftChange(e2) { + const { + before, + after + } = e2.range; + this.rangeChange(before, after); + const obj = { + before: e2.range.before, + after: e2.range.after, + data: e2.range.data, + fulldate: e2.fulldate + }; + this.startMultipleStatus = Object.assign({}, this.startMultipleStatus, obj); + this.$emit("calendarClick", e2); + }, + rightChange(e2) { + const { + before, + after + } = e2.range; + this.rangeChange(before, after); + const obj = { + before: e2.range.before, + after: e2.range.after, + data: e2.range.data, + fulldate: e2.fulldate + }; + this.endMultipleStatus = Object.assign({}, this.endMultipleStatus, obj); + this.$emit("calendarClick", e2); + }, + mobileChange(e2) { + if (this.isRange) { + const { + before, + after + } = e2.range; + if (!before) { + return; + } + this.handleStartAndEnd(before, after, true); + if (this.hasTime) { + const { + startTime, + endTime + } = e2.timeRange; + this.tempRange.startTime = startTime; + this.tempRange.endTime = endTime; + } + this.confirmRangeChange(); + } else { + if (this.hasTime) { + this.displayValue = e2.fulldate + " " + e2.time; + } else { + this.displayValue = e2.fulldate; + } + this.setEmit(this.displayValue); + } + this.$refs.mobile.close(); + }, + rangeChange(before, after) { + if (!(before && after)) + return; + this.handleStartAndEnd(before, after, true); + if (this.hasTime) + return; + this.confirmRangeChange(); + }, + confirmRangeChange() { + if (!this.tempRange.startDate || !this.tempRange.endDate) { + this.pickerVisible = false; + return; + } + if (!checkDate(this.tempRange.startDate)) { + this.tempRange.startDate = getDate(Date.now()); + } + if (!checkDate(this.tempRange.endDate)) { + this.tempRange.endDate = getDate(Date.now()); + } + let start, end; + let startDateLaterRangeStartDate = false; + let startDateLaterRangeEndDate = false; + let startDate, startTime; + if (this.start) { + let startString = this.start; + if (typeof this.start === "number") { + startString = getDateTime(this.start, this.hideSecond); + } + [startDate, startTime] = startString.split(" "); + if (this.start && !dateCompare(this.start, this.tempRange.startDate)) { + startDateLaterRangeStartDate = true; + this.tempRange.startDate = startDate; + } + if (this.start && !dateCompare(this.start, this.tempRange.endDate)) { + startDateLaterRangeEndDate = true; + this.tempRange.endDate = startDate; + } + } + let endDateEarlierRangeStartDate = false; + let endDateEarlierRangeEndDate = false; + let endDate, endTime; + if (this.end) { + let endString = this.end; + if (typeof this.end === "number") { + endString = getDateTime(this.end, this.hideSecond); + } + [endDate, endTime] = endString.split(" "); + if (this.end && !dateCompare(this.tempRange.startDate, this.end)) { + endDateEarlierRangeStartDate = true; + this.tempRange.startDate = endDate; + } + if (this.end && !dateCompare(this.tempRange.endDate, this.end)) { + endDateEarlierRangeEndDate = true; + this.tempRange.endDate = endDate; + } + } + if (!this.hasTime) { + start = this.displayRangeValue.startDate = this.tempRange.startDate; + end = this.displayRangeValue.endDate = this.tempRange.endDate; + } else { + if (startDateLaterRangeStartDate) { + this.tempRange.startTime = startTime || getDefaultSecond(this.hideSecond); + } else if (endDateEarlierRangeStartDate) { + this.tempRange.startTime = endTime || getDefaultSecond(this.hideSecond); + } + if (!this.tempRange.startTime) { + this.tempRange.startTime = getTime$1(Date.now(), this.hideSecond); + } + if (startDateLaterRangeEndDate) { + this.tempRange.endTime = startTime || getDefaultSecond(this.hideSecond); + } else if (endDateEarlierRangeEndDate) { + this.tempRange.endTime = endTime || getDefaultSecond(this.hideSecond); + } + if (!this.tempRange.endTime) { + this.tempRange.endTime = getTime$1(Date.now(), this.hideSecond); + } + start = this.displayRangeValue.startDate = `${this.tempRange.startDate} ${this.tempRange.startTime}`; + end = this.displayRangeValue.endDate = `${this.tempRange.endDate} ${this.tempRange.endTime}`; + } + if (!dateCompare(start, end)) { + [start, end] = [end, start]; + } + this.displayRangeValue.startDate = start; + this.displayRangeValue.endDate = end; + const displayRange = [start, end]; + this.setEmit(displayRange); + this.pickerVisible = false; + }, + handleStartAndEnd(before, after, temp = false) { + if (!before) + return; + if (!after) + after = before; + const type = temp ? "tempRange" : "range"; + const isStartEarlierEnd = dateCompare(before, after); + this[type].startDate = isStartEarlierEnd ? before : after; + this[type].endDate = isStartEarlierEnd ? after : before; + }, + /** + * 比较时间大小 + */ + dateCompare(startDate, endDate) { + startDate = new Date(startDate.replace("-", "/").replace("-", "/")); + endDate = new Date(endDate.replace("-", "/").replace("-", "/")); + return startDate <= endDate; + }, + /** + * 比较时间差 + */ + diffDate(startDate, endDate) { + startDate = new Date(startDate.replace("-", "/").replace("-", "/")); + endDate = new Date(endDate.replace("-", "/").replace("-", "/")); + const diff = (endDate - startDate) / (24 * 60 * 60 * 1e3); + return Math.abs(diff); + }, + clear(needEmit = true) { + if (!this.isRange) { + this.displayValue = ""; + this.inputDate = ""; + this.pickerTime = ""; + if (this.isPhone) { + this.$refs.mobile && this.$refs.mobile.clearCalender(); + } else { + this.$refs.pcSingle && this.$refs.pcSingle.clearCalender(); + } + if (needEmit) { + this.$emit("change", ""); + this.$emit("input", ""); + this.$emit("update:modelValue", ""); + } + } else { + this.displayRangeValue.startDate = ""; + this.displayRangeValue.endDate = ""; + this.tempRange.startDate = ""; + this.tempRange.startTime = ""; + this.tempRange.endDate = ""; + this.tempRange.endTime = ""; + if (this.isPhone) { + this.$refs.mobile && this.$refs.mobile.clearCalender(); + } else { + this.$refs.left && this.$refs.left.clearCalender(); + this.$refs.right && this.$refs.right.clearCalender(); + this.$refs.right && this.$refs.right.changeMonth("next"); + } + if (needEmit) { + this.$emit("change", []); + this.$emit("input", []); + this.$emit("update:modelValue", []); + } + } + }, + calendarClick(e2) { + this.$emit("calendarClick", e2); + } + } + }; + function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) { + const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_1$1); + const _component_time_picker = vue.resolveComponent("time-picker"); + const _component_Calendar = vue.resolveComponent("Calendar"); + return vue.openBlock(), vue.createElementBlock("view", { class: "uni-date" }, [ + vue.createElementVNode("view", { + class: "uni-date-editor", + onClick: _cache[1] || (_cache[1] = (...args) => $options.show && $options.show(...args)) + }, [ + vue.renderSlot(_ctx.$slots, "default", {}, () => [ + vue.createElementVNode( + "view", + { + class: vue.normalizeClass(["uni-date-editor--x", { "uni-date-editor--x__disabled": $props.disabled, "uni-date-x--border": $props.border }]) + }, + [ + !$data.isRange ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "uni-date-x uni-date-single" + }, [ + vue.createVNode(_component_uni_icons, { + class: "icon-calendar", + type: "calendar", + color: "#c0c4cc", + size: "22" + }), + vue.createElementVNode( + "view", + { class: "uni-date__x-input" }, + vue.toDisplayString($data.displayValue || $options.singlePlaceholderText), + 1 + /* TEXT */ + ) + ])) : (vue.openBlock(), vue.createElementBlock("view", { + key: 1, + class: "uni-date-x uni-date-range" + }, [ + vue.createVNode(_component_uni_icons, { + class: "icon-calendar", + type: "calendar", + color: "#c0c4cc", + size: "22" + }), + vue.createElementVNode( + "view", + { class: "uni-date__x-input text-center" }, + vue.toDisplayString($data.displayRangeValue.startDate || $options.startPlaceholderText), + 1 + /* TEXT */ + ), + vue.createElementVNode( + "view", + { class: "range-separator" }, + vue.toDisplayString($props.rangeSeparator), + 1 + /* TEXT */ + ), + vue.createElementVNode( + "view", + { class: "uni-date__x-input text-center" }, + vue.toDisplayString($data.displayRangeValue.endDate || $options.endPlaceholderText), + 1 + /* TEXT */ + ) + ])), + $options.showClearIcon ? (vue.openBlock(), vue.createElementBlock("view", { + key: 2, + class: "uni-date__icon-clear", + onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => $options.clear && $options.clear(...args), ["stop"])) + }, [ + vue.createVNode(_component_uni_icons, { + type: "clear", + color: "#c0c4cc", + size: "22" + }) + ])) : vue.createCommentVNode("v-if", true) + ], + 2 + /* CLASS */ + ) + ], true) + ]), + vue.withDirectives(vue.createElementVNode( + "view", + { + class: "uni-date-mask--pc", + onClick: _cache[2] || (_cache[2] = (...args) => $options.close && $options.close(...args)) + }, + null, + 512 + /* NEED_PATCH */ + ), [ + [vue.vShow, $data.pickerVisible] + ]), + !$data.isPhone ? vue.withDirectives((vue.openBlock(), vue.createElementBlock( + "view", + { + key: 0, + ref: "datePicker", + class: "uni-date-picker__container" + }, + [ + !$data.isRange ? (vue.openBlock(), vue.createElementBlock( + "view", + { + key: 0, + class: "uni-date-single--x", + style: vue.normalizeStyle($data.pickerPositionStyle) + }, + [ + vue.createElementVNode("view", { class: "uni-popper__arrow" }), + $data.hasTime ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "uni-date-changed popup-x-header" + }, [ + vue.withDirectives(vue.createElementVNode("input", { + class: "uni-date__input text-center", + type: "text", + "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.inputDate = $event), + placeholder: $options.selectDateText + }, null, 8, ["placeholder"]), [ + [vue.vModelText, $data.inputDate] + ]), + vue.createVNode(_component_time_picker, { + type: "time", + modelValue: $data.pickerTime, + "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $data.pickerTime = $event), + border: false, + disabled: !$data.inputDate, + start: $options.timepickerStartTime, + end: $options.timepickerEndTime, + hideSecond: $props.hideSecond, + style: { "width": "100%" } + }, { + default: vue.withCtx(() => [ + vue.withDirectives(vue.createElementVNode("input", { + class: "uni-date__input text-center", + type: "text", + "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $data.pickerTime = $event), + placeholder: $options.selectTimeText, + disabled: !$data.inputDate + }, null, 8, ["placeholder", "disabled"]), [ + [vue.vModelText, $data.pickerTime] + ]) + ]), + _: 1 + /* STABLE */ + }, 8, ["modelValue", "disabled", "start", "end", "hideSecond"]) + ])) : vue.createCommentVNode("v-if", true), + vue.createVNode(_component_Calendar, { + ref: "pcSingle", + showMonth: false, + "start-date": $data.calendarRange.startDate, + "end-date": $data.calendarRange.endDate, + date: $data.calendarDate, + onChange: $options.singleChange, + "default-value": $props.defaultValue, + style: { "padding": "0 8px" } + }, null, 8, ["start-date", "end-date", "date", "onChange", "default-value"]), + $data.hasTime ? (vue.openBlock(), vue.createElementBlock("view", { + key: 1, + class: "popup-x-footer" + }, [ + vue.createElementVNode( + "text", + { + class: "confirm-text", + onClick: _cache[6] || (_cache[6] = (...args) => $options.confirmSingleChange && $options.confirmSingleChange(...args)) + }, + vue.toDisplayString($options.okText), + 1 + /* TEXT */ + ) + ])) : vue.createCommentVNode("v-if", true) + ], + 4 + /* STYLE */ + )) : (vue.openBlock(), vue.createElementBlock( + "view", + { + key: 1, + class: "uni-date-range--x", + style: vue.normalizeStyle($data.pickerPositionStyle) + }, + [ + vue.createElementVNode("view", { class: "uni-popper__arrow" }), + $data.hasTime ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "popup-x-header uni-date-changed" + }, [ + vue.createElementVNode("view", { class: "popup-x-header--datetime" }, [ + vue.withDirectives(vue.createElementVNode("input", { + class: "uni-date__input uni-date-range__input", + type: "text", + "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $data.tempRange.startDate = $event), + placeholder: $options.startDateText + }, null, 8, ["placeholder"]), [ + [vue.vModelText, $data.tempRange.startDate] + ]), + vue.createVNode(_component_time_picker, { + type: "time", + modelValue: $data.tempRange.startTime, + "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => $data.tempRange.startTime = $event), + start: $options.timepickerStartTime, + border: false, + disabled: !$data.tempRange.startDate, + hideSecond: $props.hideSecond + }, { + default: vue.withCtx(() => [ + vue.withDirectives(vue.createElementVNode("input", { + class: "uni-date__input uni-date-range__input", + type: "text", + "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $data.tempRange.startTime = $event), + placeholder: $options.startTimeText, + disabled: !$data.tempRange.startDate + }, null, 8, ["placeholder", "disabled"]), [ + [vue.vModelText, $data.tempRange.startTime] + ]) + ]), + _: 1 + /* STABLE */ + }, 8, ["modelValue", "start", "disabled", "hideSecond"]) + ]), + vue.createVNode(_component_uni_icons, { + type: "arrowthinright", + color: "#999", + style: { "line-height": "40px" } + }), + vue.createElementVNode("view", { class: "popup-x-header--datetime" }, [ + vue.withDirectives(vue.createElementVNode("input", { + class: "uni-date__input uni-date-range__input", + type: "text", + "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => $data.tempRange.endDate = $event), + placeholder: $options.endDateText + }, null, 8, ["placeholder"]), [ + [vue.vModelText, $data.tempRange.endDate] + ]), + vue.createVNode(_component_time_picker, { + type: "time", + modelValue: $data.tempRange.endTime, + "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => $data.tempRange.endTime = $event), + end: $options.timepickerEndTime, + border: false, + disabled: !$data.tempRange.endDate, + hideSecond: $props.hideSecond + }, { + default: vue.withCtx(() => [ + vue.withDirectives(vue.createElementVNode("input", { + class: "uni-date__input uni-date-range__input", + type: "text", + "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => $data.tempRange.endTime = $event), + placeholder: $options.endTimeText, + disabled: !$data.tempRange.endDate + }, null, 8, ["placeholder", "disabled"]), [ + [vue.vModelText, $data.tempRange.endTime] + ]) + ]), + _: 1 + /* STABLE */ + }, 8, ["modelValue", "end", "disabled", "hideSecond"]) + ]) + ])) : vue.createCommentVNode("v-if", true), + vue.createElementVNode("view", { class: "popup-x-body" }, [ + vue.createVNode(_component_Calendar, { + ref: "left", + showMonth: false, + "start-date": $data.calendarRange.startDate, + "end-date": $data.calendarRange.endDate, + range: true, + pleStatus: $data.endMultipleStatus, + onChange: $options.leftChange, + onFirstEnterCale: $options.updateRightCale, + style: { "padding": "0 8px" } + }, null, 8, ["start-date", "end-date", "pleStatus", "onChange", "onFirstEnterCale"]), + vue.createVNode(_component_Calendar, { + ref: "right", + showMonth: false, + "start-date": $data.calendarRange.startDate, + "end-date": $data.calendarRange.endDate, + range: true, + onChange: $options.rightChange, + pleStatus: $data.startMultipleStatus, + onFirstEnterCale: $options.updateLeftCale, + style: { "padding": "0 8px", "border-left": "1px solid #F1F1F1" } + }, null, 8, ["start-date", "end-date", "onChange", "pleStatus", "onFirstEnterCale"]) + ]), + $data.hasTime ? (vue.openBlock(), vue.createElementBlock("view", { + key: 1, + class: "popup-x-footer" + }, [ + vue.createElementVNode( + "text", + { + onClick: _cache[13] || (_cache[13] = (...args) => $options.clear && $options.clear(...args)) + }, + vue.toDisplayString($options.clearText), + 1 + /* TEXT */ + ), + vue.createElementVNode( + "text", + { + class: "confirm-text", + onClick: _cache[14] || (_cache[14] = (...args) => $options.confirmRangeChange && $options.confirmRangeChange(...args)) + }, + vue.toDisplayString($options.okText), + 1 + /* TEXT */ + ) + ])) : vue.createCommentVNode("v-if", true) + ], + 4 + /* STYLE */ + )) + ], + 512 + /* NEED_PATCH */ + )), [ + [vue.vShow, $data.pickerVisible] + ]) : vue.createCommentVNode("v-if", true), + $data.isPhone ? (vue.openBlock(), vue.createBlock(_component_Calendar, { + key: 1, + ref: "mobile", + clearDate: false, + date: $data.calendarDate, + defTime: $options.mobileCalendarTime, + "start-date": $data.calendarRange.startDate, + "end-date": $data.calendarRange.endDate, + selectableTimes: $options.mobSelectableTime, + startPlaceholder: $props.startPlaceholder, + endPlaceholder: $props.endPlaceholder, + "default-value": $props.defaultValue, + pleStatus: $data.endMultipleStatus, + showMonth: false, + range: $data.isRange, + hasTime: $data.hasTime, + insert: false, + hideSecond: $props.hideSecond, + onConfirm: $options.mobileChange, + onMaskClose: $options.close, + onChange: $options.calendarClick + }, null, 8, ["date", "defTime", "start-date", "end-date", "selectableTimes", "startPlaceholder", "endPlaceholder", "default-value", "pleStatus", "range", "hasTime", "hideSecond", "onConfirm", "onMaskClose", "onChange"])) : vue.createCommentVNode("v-if", true) + ]); + } + const __easycom_0$4 = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$9], ["__scopeId", "data-v-9802168a"], ["__file", "D:/projects/cxc-szcx-uniapp/uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue"]]); + const _sfc_main$I = { + __name: "customNav", + setup(__props) { + vue.useCssVars((_ctx) => ({ + "420daeb5-cusnavbarheight": cusnavbarheight + })); + const res = wx.getSystemInfoSync(); + const statusHeight = res.statusBarHeight; + const cusnavbarheight = statusHeight + 44 + "px"; + return (_ctx, _cache) => { + return vue.openBlock(), vue.createElementBlock("view", { class: "" }, [ + vue.createElementVNode("view", { class: "nav" }, [ + vue.renderSlot(_ctx.$slots, "default", {}, void 0, true) + ]), + vue.createElementVNode("view", { class: "place" }) + ]); + }; + } + }; + const customNav = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-420daeb5"], ["__file", "D:/projects/cxc-szcx-uniapp/bpm/customNav.vue"]]); + const baseurl = "https://36.112.48.190/jeecg-boot/sys/common/static/"; + const toast = (title, icon, duration) => { + uni.showToast({ + title, + icon: icon || "none", + duration: duration || 2e3 + }); + }; + const beforeJump = (url, callback) => { + const store = useStore(); + getUserPermissionApi({ + token: store.token, + type: "mobile" + }).then((res) => { + var _a; + if (res.success) { + let page = handleAllowPage(((_a = res.result) == null ? void 0 : _a.menu) || []); + if (page.some((item) => url.indexOf(item) !== -1)) { + callback(); + } else { + toast("无查看权限!"); + } + } + }).catch((err) => { + formatAppLog("log", "at utils/index.js:35", "err@", err); + }); + }; + const handleAllowPage = (menu, arr = []) => { + if (!menu.length) { + return []; + } + menu.forEach((item) => { + if (item.children) { + arr.push(...handleAllowPage(item.children)); + } + arr.push(item.path); + }); + return arr; + }; + const hasNewVersion = (version, isWgt = false) => { + return new Promise((resolve) => { + const transfer = (str) => str.replace(/\./g, ""); + if (isWgt) { + plus.runtime.getProperty(plus.runtime.appid, (widgetInfo) => { + const currentVersion = widgetInfo.version; + resolve(+transfer(version) > +transfer(currentVersion)); + }); + } else { + const currentVersion = plus.runtime.version; + resolve(+transfer(version) > +transfer(currentVersion)); + } + }); + }; + function downloadApp(url) { + formatAppLog("log", "at utils/index.js:78", "url", url); + var dtask = plus.downloader.createDownload(url, { + filename: `_downloads/wgt-${Date.now()}.wgt` + //利用保存路径,实现下载文件的重命名 + }, function(d2, status) { + if (status == 200) { + var fileSaveUrl = plus.io.convertLocalFileSystemURL(d2.filename); + formatAppLog("log", "at utils/index.js:86", "fileSaveUrl", fileSaveUrl); + installApp(fileSaveUrl); + } else { + plus.downloader.clear(); + uni.showToast({ + title: "App下载失败!", + icon: "error" + }); + } + }); + let showLoading = plus.nativeUI.showWaiting("正在下載"); + dtask.start(); + dtask.addEventListener("statechanged", (task, status) => { + switch (task.state) { + case 1: + showLoading.setTitle("正在下载"); + break; + case 2: + showLoading.setTitle("已连接到服务器"); + break; + case 3: + parseInt( + parseFloat(task.downloadedSize) / parseFloat(task.totalSize) * 100 + ); + showLoading.setTitle(" 正在下载"); + break; + case 4: + plus.nativeUI.closeWaiting(); + break; + } + }); + } + function installApp(tempFilePath) { + plus.runtime.install( + tempFilePath, + { + force: true + }, + () => { + uni.showModal({ + title: "更新", + content: "更新成功,请点击确认后重启", + showCancel: false, + success(res) { + if (res.confirm) { + plus.runtime.restart(); + } + } + }); + }, + () => uni.showToast({ + title: "安装失败!", + icon: "error" + }) + ); + } + function onClickUpdate(updateType, url) { + if (updateType != "wgt") + plus.runtime.openURL(url.apkUrl); + else + downloadApp(url.wgtUrl); + } + const getTime = () => { + let date = /* @__PURE__ */ new Date(); + (/* @__PURE__ */ new Date()).getTime(); + let y2 = date.getFullYear(); + let m2 = (date.getMonth() + 1).toString().padStart(2, 0); + let d2 = date.getDate().toString().padStart(2, 0); + return `${y2}-${m2}-${d2}`; + }; + const getLocation = () => { + const store = useStore(); + if (!store.positionSwitch) { + uni.setStorageSync("position", "濮阳市"); + store.setPosition("濮阳市"); + getWeather(); + } else { + toast("定位刷新中"); + uni.getLocation({ + type: "wgs84", + success: function(position) { + uni.request({ + url: "http://api.tianditu.gov.cn/geocoder", + method: "GET", + data: { + postStr: JSON.stringify({ + lon: position.longitude, + lat: position.latitude, + ver: 1 + }), + type: "geocode", + tk: "30fe0f0c1b2320e112bde797f3ddaff4" + }, + success: function(res) { + let data = res.data; + if (data.status == 0) { + const obj = data.result.addressComponent; + let info = obj.city ? obj.city : obj.province; + uni.setStorageSync("position", info); + store.setPosition(info); + getWeather(position.latitude, position.longitude); + } else { + formatAppLog("log", "at utils/index.js:223", data.message); + } + }, + fail: function(err) { + toast("获取定位失败"); + } + }); + } + }); + } + }; + const getWeather = (lat, lon) => { + const store = useStore(); + let params = {}; + if (!store.positionSwitch) { + params.q = "濮阳市"; + weatherRequest(params); + } else { + params.lat = lat; + params.lon = lon; + weatherRequest(params); + } + }; + const weatherRequest = (params) => { + const store = useStore(); + uni.request({ + url: "https://api.openweathermap.org/data/2.5/weather", + method: "GET", + data: { + ...params, + appid: "600a60694b0e453dfbaafa862f1d1482", + lang: "zh_cn" + }, + success: function(res) { + uni.setStorageSync("wendu", Math.round(res.data.main.temp - 273.15)); + uni.setStorageSync("wenduIcon", res.data.weather[0].icon); + store.setWeather(Math.round(res.data.main.temp - 273.15), res.data.weather[0].icon); + }, + fail: function(err) { + toast("天气获取失败"); + } + }); + }; + const opendocument = (url) => { + uni.downloadFile({ + url: baseurl + url, + success: function(res) { + var filePath = res.tempFilePath; + uni.openDocument({ + filePath, + showMenu: true, + fail: function(err) { + toast(err.errMsg); + } + }); + }, + fail: function(err) { + formatAppLog("error", "at utils/index.js:282", "文件下载失败", err); + } + }); + }; + const imgUrl = (url) => { + return baseurl + `/${url}`; + }; + const _sfc_main$H = { + __name: "index", + setup(__props) { + vue.useCssVars((_ctx) => ({ + "ae0729d5-cusnavbarheight": cusnavbarheight + })); + const baseurl2 = "https://36.112.48.190/jeecg-boot"; + const store = useStore(); + onLoad(() => { + cxcDaping(); + zhiban(); + getlist(); + }); + const banner = vue.ref([]); + const cxcDaping = () => { + cxcDapingApi({ + zslb: 6 + }).then((res2) => { + if (res2.success) { + let arr = res2.result.records[0].wenjian.split(","); + banner.value = arr.map((item) => { + return baseurl2 + "/sys/common/static/" + item; + }); + } + }); + }; + const current = vue.ref(0); + const current_zhidu = vue.ref(0); + const tabArr = ["公文", "公告", "制度", "法规"]; + const changeTab = (i2) => { + current.value = i2; + pageNo = 1; + list.value = []; + getlist(); + }; + const changeZhidu = (i2) => { + current_zhidu.value = i2; + pageNo = 1; + list.value = []; + zhidu(); + }; + const res = wx.getSystemInfoSync(); + const statusHeight = res.statusBarHeight; + const cusnavbarheight = statusHeight + 44 + "px"; + vue.ref(null); + const jump = (url, type, item, page) => { + if (type && type == 1 && page == "detail") + return; + if (type && type == 3 && item) { + return opendocument(item.mingcheng); + } + if (type && type == 2) { + url = url + `&zhiduid=${current_zhidu.value}`; + } + beforeJump(url, () => { + uni.navigateTo({ + url + }); + }); + }; + let pageNo = 1; + let pageSize = 5; + const list = vue.ref([]); + const bpmlist = () => { + bpmlistApi({ + pageNo, + pageSize + }).then((res2) => { + if (res2.success) { + list.value = [...list.value, ...formatObj(res2.result.records, "fwbt", "fwtime", null)]; + } + }).catch((err) => { + formatAppLog("log", "at pages/tab/index.vue:273", "err", err); + }); + }; + const gonggaolist = () => { + gonggaolistApi({ + pageNo, + pageSize + }).then((res2) => { + if (res2.success) { + list.value = [...list.value, ...formatObj(res2.result.records, "neirong", "fbdw", "createTime")]; + } + }).catch((err) => { + formatAppLog("log", "at pages/tab/index.vue:288", "err", err); + }); + }; + const zhibanArr = vue.ref([]); + const zhiban = () => { + zhibanApi().then((res2) => { + if (res2.success) { + zhibanArr.value = res2.result.records.slice(0, 2); + } + }).catch((err) => { + formatAppLog("log", "at pages/tab/index.vue:299", "err", err); + }); + }; + const fagui = () => { + faguiApi({ + pageNo, + pageSize + }).then((res2) => { + if (res2.success) { + list.value = [...list.value, ...formatObj(res2.result.records, "flfgmc", "ssbm", null)]; + } + }).catch((err) => { + formatAppLog("log", "at pages/tab/index.vue:315", "err", err); + }); + }; + const zhidu = () => { + let getzhidu = current_zhidu.value == 0 ? zhiduApi : cjzhiduApi; + getzhidu({ + pageNo, + pageSize + }).then((res2) => { + if (res2.success) { + let str = current_zhidu.value == 0 ? "zbbm_dictText" : "sbbm"; + list.value = [...list.value, ...formatObj(res2.result.records, "zdmc", str, null)]; + } + }).catch((err) => { + formatAppLog("log", "at pages/tab/index.vue:332", "err", err); + }); + }; + const formatObj = (arr, title, time, depart) => { + arr.map((item) => { + item["_title"] = item[title]; + item["_time"] = item[time]; + item["_depart"] = item[depart]; + }); + return arr; + }; + onPullDownRefresh(() => { + list.value = []; + cxcDaping(); + zhiban(); + getlist(); + uni.stopPullDownRefresh(); + }); + const getlist = () => { + if (current.value == 0) { + bpmlist(); + } else if (current.value == 1) { + gonggaolist(); + } else if (current.value == 2) { + zhidu(); + } else if (current.value == 3) { + fagui(); + } + }; + return (_ctx, _cache) => { + const _component_uni_datetime_picker = resolveEasycom(vue.resolveDynamicComponent("uni-datetime-picker"), __easycom_0$4); + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass(["content", { "gray": vue.unref(store).isgray == 1 }]) + }, + [ + vue.createElementVNode("view", { class: "nav" }, [ + vue.createElementVNode("view", { class: "nav_box f-row aic jcb" }, [ + vue.createCommentVNode(' \r\n \r\n '), + vue.createElementVNode("view", { class: "weather_calender f-row aic" }, [ + vue.createElementVNode("view", { class: "position f-row aic" }, [ + vue.createElementVNode("image", { + src: "/static/index/position.png", + mode: "" + }), + vue.createElementVNode( + "text", + null, + vue.toDisplayString(!vue.unref(store).position ? "暂未定位" : vue.unref(store).position), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "position f-row aic" }, [ + vue.createElementVNode("image", { + style: { "height": "80rpx", "width": "80rpx" }, + src: `http://openweathermap.org/img/w/${vue.unref(store).wenduIcon}.png`, + mode: "" + }, null, 8, ["src"]), + vue.createElementVNode( + "text", + null, + vue.toDisplayString(vue.unref(store).wendu) + "℃", + 1 + /* TEXT */ + ) + ]), + vue.createVNode(_component_uni_datetime_picker, { type: "date" }, { + default: vue.withCtx(() => [ + vue.createElementVNode("view", { class: "position f-row aic" }, [ + vue.createElementVNode("image", { + src: "/static/index/calendar.png", + mode: "" + }), + vue.createElementVNode( + "text", + null, + vue.toDisplayString(vue.unref(getTime)()), + 1 + /* TEXT */ + ) + ]) + ]), + _: 1 + /* STABLE */ + }) + ]) + ]) + ]), + vue.createElementVNode("view", { class: "f-col aic" }, [ + vue.createElementVNode("swiper", { + class: "swiper", + autoplay: "" + }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(banner.value, (item, i2) => { + return vue.openBlock(), vue.createElementBlock("swiper-item", { + key: i2, + class: "swiper-item" + }, [ + vue.createElementVNode("image", { + src: item, + mode: "aspectFill" + }, null, 8, ["src"]) + ]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ]) + ]), + vue.createElementVNode("view", { class: "wrapper f-col aic" }, [ + vue.createElementVNode("view", { class: "onduty" }, [ + vue.createElementVNode("view", { class: "title f-row aic jcb" }, [ + vue.createTextVNode(" 值班信息 "), + vue.createElementVNode("view", { + class: "more", + onClick: _cache[0] || (_cache[0] = ($event) => jump(`/pages/zhiban/index`)) + }, [ + vue.createTextVNode(" 查看更多 "), + vue.createElementVNode("image", { + src: "/static/index/back.png", + mode: "" + }) + ]) + ]), + vue.createElementVNode("view", { class: "info" }, [ + vue.createElementVNode("view", { class: "info_title f-row aic" }, [ + vue.createElementVNode("view", { class: "" }, " 日期 "), + vue.createElementVNode("view", { class: "" }, " 带班领导 "), + vue.createElementVNode("view", { class: "" }, " 值班领导 "), + vue.createElementVNode("view", { class: "" }, " 值班干部 ") + ]), + vue.createElementVNode("view", { class: "data_box" }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(zhibanArr.value, (item, i2) => { + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass(["data", " f-row", "aic", { "first": i2 == 0 }]) + }, + [ + vue.createElementVNode( + "view", + { class: "" }, + vue.toDisplayString(item.date), + 1 + /* TEXT */ + ), + vue.createElementVNode( + "view", + { class: "" }, + vue.toDisplayString(item.dbld_dictText), + 1 + /* TEXT */ + ), + vue.createElementVNode( + "view", + { class: "" }, + vue.toDisplayString(item.zbld_dictText), + 1 + /* TEXT */ + ), + vue.createElementVNode( + "view", + { class: "" }, + vue.toDisplayString(item.zbgbrealname), + 1 + /* TEXT */ + ) + ], + 2 + /* CLASS */ + ); + }), + 256 + /* UNKEYED_FRAGMENT */ + )) + ]) + ]) + ]), + vue.createElementVNode("view", { class: "list_wrapper" }, [ + vue.createElementVNode("view", { class: "" }, [ + vue.createElementVNode("view", { class: "list_title f-row aic jca" }, [ + (vue.openBlock(), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(tabArr, (item, i2) => { + return vue.createElementVNode("view", { + class: vue.normalizeClass({ "active": current.value == i2 }), + onClick: ($event) => changeTab(i2) + }, vue.toDisplayString(item), 11, ["onClick"]); + }), + 64 + /* STABLE_FRAGMENT */ + )) + ]), + current.value == 2 ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "f-row aic zhidu" + }, [ + vue.createElementVNode( + "view", + { + class: vue.normalizeClass({ "active": current_zhidu.value == 0 }), + onClick: _cache[1] || (_cache[1] = ($event) => changeZhidu(0)) + }, + " 厂级制度 ", + 2 + /* CLASS */ + ), + vue.createElementVNode( + "view", + { + class: vue.normalizeClass({ "active": current_zhidu.value == 1 }), + onClick: _cache[2] || (_cache[2] = ($event) => changeZhidu(1)) + }, + " 上级制度 ", + 2 + /* CLASS */ + ) + ])) : vue.createCommentVNode("v-if", true) + ]), + vue.createElementVNode("view", { + style: { "padding-top": "24rpx" }, + class: "more", + onClick: _cache[3] || (_cache[3] = ($event) => jump(`/pages/document/index?id=${current.value}`, current.value)) + }, [ + vue.createTextVNode(" 查看更多 "), + vue.createElementVNode("image", { + src: "/static/index/back.png", + mode: "" + }) + ]), + vue.createElementVNode("view", { class: "list_box" }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(list.value, (item, i2) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: "list", + key: i2, + onClick: ($event) => jump(`/pages/document/detail?data=${JSON.stringify(item)}&id=${current.value}`, current.value, item, "detail") + }, [ + vue.createElementVNode( + "view", + { class: "topic" }, + vue.toDisplayString(item._title), + 1 + /* TEXT */ + ), + item._time || item._depart ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "time_Box f-row aic" + }, [ + item._time ? (vue.openBlock(), vue.createElementBlock( + "view", + { + key: 0, + class: "time" + }, + vue.toDisplayString(item._time), + 1 + /* TEXT */ + )) : vue.createCommentVNode("v-if", true), + item._depart ? (vue.openBlock(), vue.createElementBlock( + "view", + { + key: 1, + class: "look f-row aic" + }, + vue.toDisplayString(item._depart), + 1 + /* TEXT */ + )) : vue.createCommentVNode("v-if", true) + ])) : vue.createCommentVNode("v-if", true) + ], 8, ["onClick"]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ]) + ]) + ]), + vue.createCommentVNode(' \r\n \r\n \r\n {{item.text}}\r\n \r\n \r\n \r\n ') + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesTabIndex = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-ae0729d5"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/tab/index.vue"]]); + const _sfc_main$G = { + __name: "extendCom", + props: { + title: { + type: String, + default: "" + }, + img: { + type: String, + default: "" + }, + list: { + type: Array, + default: function() { + return []; + } + }, + total: { + type: Number, + default: 0 + }, + type: { + type: String, + default: "" + } + }, + setup(__props) { + vue.useCssVars((_ctx) => ({ + "e40cd242-moreHeight": moreHeight.value + })); + const props = __props; + const open2 = vue.ref(false); + const moreHeight = vue.ref(null); + const CurrentInstance = vue.getCurrentInstance(); + vue.watch(() => props.list, () => { + vue.nextTick(() => { + uni.createSelectorQuery().in(CurrentInstance.proxy).select(".item_box").boundingClientRect((data) => { + moreHeight.value = (data == null ? void 0 : data.height) + "px"; + }).exec(); + }); + }, { + immediate: true + }); + const tolist = (title) => { + let id = null; + beforeJump("/pages/task/index", () => { + if (props.type == "0") { + id = 0; + } + if (props.type == "1") { + id = 1; + } + if (props.type == "2") { + return uni.navigateTo({ + url: `/pages/task/self?title=${title}` + }); + } + uni.navigateTo({ + url: `/pages/task/index?id=${id}&title=${title}` + }); + }); + }; + return (_ctx, _cache) => { + return vue.openBlock(), vue.createElementBlock("view", { class: "content" }, [ + vue.createElementVNode("view", { class: "todo f-col aic" }, [ + vue.createElementVNode("view", { class: "f-col aic" }, [ + vue.createElementVNode("view", { + class: "title_box f-row aic jcb", + onClick: _cache[0] || (_cache[0] = ($event) => tolist("")) + }, [ + vue.createElementVNode("view", { class: "title f-row aic" }, [ + vue.createElementVNode("image", { + src: `/static/my/${__props.img}.png`, + mode: "" + }, null, 8, ["src"]), + vue.createTextVNode( + " " + vue.toDisplayString(__props.title), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode( + "view", + { class: "num" }, + vue.toDisplayString(__props.total), + 1 + /* TEXT */ + ) + ]), + __props.list.length ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "list" + }, [ + vue.createElementVNode( + "view", + { + class: vue.normalizeClass(["box", { "close": __props.list.length > 5 && open2.value }]) + }, + [ + vue.createElementVNode("view", { class: "item_box" }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(__props.list, (item, i2) => { + return vue.openBlock(), vue.createElementBlock("view", { + onClick: ($event) => tolist(item.title), + class: "item f-row aic", + key: i2 + }, [ + vue.createElementVNode( + "view", + { class: "" }, + vue.toDisplayString(item.title), + 1 + /* TEXT */ + ), + vue.createElementVNode( + "text", + null, + vue.toDisplayString(item.num), + 1 + /* TEXT */ + ) + ], 8, ["onClick"]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ]) + ], + 2 + /* CLASS */ + ), + vue.withDirectives(vue.createElementVNode( + "view", + { + class: "more", + onClick: _cache[1] || (_cache[1] = ($event) => open2.value = !open2.value) + }, + vue.toDisplayString(!open2.value ? "显示更多" : "收起"), + 513 + /* TEXT, NEED_PATCH */ + ), [ + [vue.vShow, __props.list.length > 5] + ]) + ])) : vue.createCommentVNode("v-if", true) + ]) + ]) + ]); + }; + } + }; + const extendCom = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-e40cd242"], ["__file", "D:/projects/cxc-szcx-uniapp/bpm/extendCom.vue"]]); + const _sfc_main$F = { + __name: "todotask", + setup(__props) { + vue.useCssVars((_ctx) => ({ + "fc853b6f-cusnavbarheight": cusnavbarheight + })); + const res = wx.getSystemInfoSync(); + const statusHeight = res.statusBarHeight; + const cusnavbarheight = statusHeight + 44 + "px"; + const store = useStore(); + onShow(() => { + initArr(); + taskList(); + taskHistoryList(); + myApplyProcessList(); + uni.removeTabBarBadge({ + // 移除角标 + index: "1" + }); + }); + const todoArr = vue.ref([]); + const todoTotal = vue.ref(0); + const taskList = () => { + taskListApi({ + pageNo: 1, + pageSize: 4, + _t: (/* @__PURE__ */ new Date()).getTime() + }).then((res2) => { + var _a, _b, _c, _d; + if (res2 == null ? void 0 : res2.success) { + if (((_a = res2 == null ? void 0 : res2.result) == null ? void 0 : _a.total) > 4) { + taskListApi({ + pageNo: 1, + pageSize: (_b = res2 == null ? void 0 : res2.result) == null ? void 0 : _b.total, + _t: (/* @__PURE__ */ new Date()).getTime() + }).then((res1) => { + var _a2, _b2; + formatAppLog("log", "at pages/task/todotask.vue:60", "---", res1); + if (res1 == null ? void 0 : res1.success) { + todoArr.value = [...todoArr.value, ...handleData((_a2 = res1 == null ? void 0 : res1.result) == null ? void 0 : _a2.records)]; + todoTotal.value = (_b2 = res1 == null ? void 0 : res1.result) == null ? void 0 : _b2.total; + } + }).catch((err) => { + formatAppLog("log", "at pages/task/todotask.vue:66", "err", err); + }); + } else { + todoArr.value = [...todoArr.value, ...handleData((_c = res2 == null ? void 0 : res2.result) == null ? void 0 : _c.records)]; + todoTotal.value = (_d = res2 == null ? void 0 : res2.result) == null ? void 0 : _d.total; + } + } + }).catch((err) => { + formatAppLog("log", "at pages/task/todotask.vue:75", err); + }); + }; + const doneArr = vue.ref([]); + const doneTotal = vue.ref(0); + const taskHistoryList = () => { + taskHistoryListApi().then((res2) => { + if (res2.success) { + if (res2.result.total > 4) { + taskHistoryListApi({ + pageNo: 1, + pageSize: res2.result.total, + _t: (/* @__PURE__ */ new Date()).getTime() + }).then((res1) => { + if (res1.success) { + doneArr.value = [...doneArr.value, ...handleData(res1.result.records)]; + doneTotal.value = res1.result.total; + } + }).catch((err) => { + formatAppLog("log", "at pages/task/todotask.vue:96", err); + }); + } else { + doneArr.value = [...doneArr.value, ...handleData(res2.result.records)]; + doneTotal.value = res2.result.total; + } + } + }).catch((err) => { + formatAppLog("log", "at pages/task/todotask.vue:105", err); + }); + }; + const selfArr = vue.ref([]); + const selfTotal = vue.ref(0); + const myApplyProcessList = () => { + myApplyProcessListApi().then((res2) => { + if (res2.success) { + if (res2.result.total > 4) { + myApplyProcessListApi({ + pageNo: 1, + pageSize: res2.result.total, + _t: (/* @__PURE__ */ new Date()).getTime() + }).then((res1) => { + if (res1.success) { + selfArr.value = [...selfArr.value, ...handleData(res1.result.records)]; + selfTotal.value = res1.result.total; + } + }).catch((err) => { + formatAppLog("log", "at pages/task/todotask.vue:125", err); + }); + } else { + selfArr.value = [...selfArr.value, ...handleData(res2.result.records)]; + selfTotal.value = res2.result.total; + } + } + }).catch((err) => { + formatAppLog("log", "at pages/task/todotask.vue:135", err); + }); + }; + const handleData = (titlearr) => { + let titleArr = titlearr.length ? titlearr.map((item) => item.processDefinitionName || item.prcocessDefinitionName) : []; + let res2 = titleArr.reduce((obj, title) => { + if (title in obj) { + obj[title]++; + } else { + obj[title] = 1; + } + return obj; + }, {}); + return Object.entries(res2).map(([k, v2]) => ({ + title: k, + num: v2 + })); + }; + const initArr = () => { + todoArr.value = []; + selfArr.value = []; + doneArr.value = []; + todoTotal.value = 0; + doneTotal.value = 0; + selfTotal.value = 0; + }; + onPullDownRefresh(() => { + initArr(); + taskList(); + taskHistoryList(); + myApplyProcessList(); + uni.stopPullDownRefresh(); + }); + return (_ctx, _cache) => { + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass([{ "gray": vue.unref(store).isgray == 1 }]) + }, + [ + vue.createElementVNode("view", { class: "nav" }), + vue.createElementVNode("view", { class: "placeholder" }), + vue.createElementVNode("view", { class: "content" }, [ + vue.createVNode(extendCom, { + title: "我的任务", + img: "process", + list: todoArr.value, + total: todoTotal.value, + type: "0" + }, null, 8, ["list", "total"]), + vue.createVNode(extendCom, { + title: "历史任务", + img: "done", + list: doneArr.value, + total: doneTotal.value, + type: "1" + }, null, 8, ["list", "total"]), + vue.createVNode(extendCom, { + title: "本人发起", + img: "self", + list: selfArr.value, + total: selfTotal.value, + type: "2" + }, null, 8, ["list", "total"]) + ]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesTaskTodotask = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-fc853b6f"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/task/todotask.vue"]]); + const _sfc_main$E = { + __name: "office", + setup(__props) { + vue.useCssVars((_ctx) => ({ + "305a3c9f-cusnavbarheight": cusnavbarheight + })); + const store = useStore(); + new Array(7).fill(0).map((v2, i2) => i2); + vue.ref([]); + const res = wx.getSystemInfoSync(); + const statusHeight = res.statusBarHeight; + const cusnavbarheight = statusHeight + 44 + "px"; + const jump = (url) => { + beforeJump(url, () => { + uni.navigateTo({ + url + }); + }); + }; + onLoad(() => { + getUserPermission(); + }); + const arr = vue.ref([]); + const listorder = vue.ref([]); + const listtitle = vue.ref([]); + const getUserPermission = () => { + getUserPermissionApi({ + token: store.token, + type: "mobile" + }).then((res2) => { + var _a, _b, _c; + if (res2.success) { + let data = res2.result.menu; + data.map((item) => item.children = item == null ? void 0 : item.children.filter((e2) => { + var _a2; + return (_a2 = e2 == null ? void 0 : e2.meta) == null ? void 0 : _a2.icon; + })); + data = data.filter((item) => { + var _a2; + return (_a2 = item == null ? void 0 : item.children) == null ? void 0 : _a2.length; + }); + listtitle.value = (_b = (_a = data[0]) == null ? void 0 : _a.meta) == null ? void 0 : _b.title; + arr.value = data; + listorder.value = (_c = data.slice(0, 1)[0]) == null ? void 0 : _c.children; + } + }).catch((err) => { + formatAppLog("log", "at pages/tab/office.vue:103", err); + }); + }; + return (_ctx, _cache) => { + var _a, _b, _c; + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass({ "gray": vue.unref(store).isgray == 1 }) + }, + [ + vue.createElementVNode("view", { class: "nav" }), + vue.createElementVNode("view", { class: "placeholder" }), + vue.createCommentVNode(' //20240929 yzq 注释 这部分是拖拽组件\r\n \r\n {{ listtitle}}\r\n \r\n \r\n \r\n \r\n '), + !((_a = listorder.value) == null ? void 0 : _a.length) && !((_b = arr.value) == null ? void 0 : _b.length) ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "title f-col aic", + style: { "padding-top": "30rpx" } + }, " 暂无权限,请联系管理员! ")) : vue.createCommentVNode("v-if", true), + vue.createElementVNode("view", { class: "content" }, [ + ((_c = arr.value) == null ? void 0 : _c.length) ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "list" + }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(arr.value, (item, i2) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: "item", + key: i2 + }, [ + vue.createElementVNode( + "view", + { class: "title" }, + vue.toDisplayString(item.meta.title), + 1 + /* TEXT */ + ), + vue.createElementVNode("view", { class: "info_box f-row aic" }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(item.children, (e2, i3) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: "info f-col aic", + onClick: ($event) => jump(e2.path), + key: i3 + }, [ + vue.createElementVNode("view", { class: "img f-row aic" }, [ + vue.createElementVNode("image", { + src: `../../static/office/${e2.meta.icon}.png` + }, null, 8, ["src"]) + ]), + vue.createElementVNode( + "view", + { class: "text" }, + vue.toDisplayString(e2.meta.title), + 1 + /* TEXT */ + ) + ], 8, ["onClick"]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ]) + ]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ])) : vue.createCommentVNode("v-if", true) + ]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesTabOffice = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-305a3c9f"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/tab/office.vue"]]); + const _sfc_main$D = { + __name: "my", + setup(__props) { + const store = useStore(); + const currentVersion = vue.ref(plus.runtime.version); + const arr = vue.ref([ + // { + // img: '../../static/my/biao.png', + // text: '值班表查询', + // path: '/pages/zhiban/index' + // }, + // { + // img: '../../static/my/xiaoxi.png', + // text: '接受消息推送', + // path: '' + // } + // , { + // img: '../../static/my/dingwei.png', + // text: '开启定位', + // path: '' + // }, { + // img: '../../static/my/shengji.png', + // text: '软件升级', + // path: '' + // }, + ]); + const messageSwitch = vue.ref(false); + const positionSwitch = vue.ref(store.positionSwitch); + const jump = (url) => { + if (!url) + return; + beforeJump(url, () => { + uni.navigateTo({ + url + }); + }); + }; + const toProfile = (url) => { + uni.navigateTo({ + url + }); + }; + const position = () => { + positionSwitch.value = !positionSwitch.value; + uni.setStorageSync("positionSwitch", positionSwitch.value); + store.setPositionSwitch(positionSwitch.value); + if (!positionSwitch.value) { + toast("定位已关闭"); + } + getLocation(); + }; + const scan = () => { + uni.scanCode({ + success: function(res) { + plus.runtime.openWeb(res.result); + } + }); + }; + return (_ctx, _cache) => { + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass({ "gray": vue.unref(store).isgray == 1 }) + }, + [ + vue.createElementVNode("view", { class: "nav" }, [ + vue.createElementVNode("view", { class: "user f-row aic" }, [ + vue.createElementVNode("view", { class: "avatar" }, [ + vue.createElementVNode("image", { + onClick: _cache[0] || (_cache[0] = ($event) => toProfile("/pages/useredit/useredit")), + src: vue.unref(imgUrl)(vue.unref(store).userinfo.avatar), + mode: "" + }, null, 8, ["src"]) + ]), + vue.createElementVNode("view", { class: "f-row aic jcb right" }, [ + vue.createElementVNode("view", { + class: "name_job", + onClick: _cache[1] || (_cache[1] = ($event) => toProfile("/pages/useredit/useredit")) + }, [ + vue.createElementVNode("view", { class: "f-row aic" }, [ + vue.createElementVNode( + "view", + { class: "name" }, + vue.toDisplayString(vue.unref(store).userinfo.realname), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode( + "view", + { class: "job" }, + vue.toDisplayString(vue.unref(store).role), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "shezhi" }, [ + vue.createElementVNode("image", { + onClick: scan, + style: { "width": "50rpx", "height": "50rpx", "margin-right": "20rpx" }, + src: "/static/tab/scan.png" + }), + vue.createCommentVNode(` \r + `) + ]) + ]) + ]), + vue.createElementVNode("view", { class: "f-col aic" }, [ + vue.createElementVNode("view", { class: "msg f-row aic jca" }, [ + vue.createCommentVNode(` \r + \r + {{todoNum}}\r + \r + 个人办公\r + `), + vue.createElementVNode("view", { class: "box f-col aic" }, [ + vue.createElementVNode("view", { class: "num" }, vue.toDisplayString(0)), + vue.createElementVNode("text", null, "步数") + ]), + vue.createElementVNode("view", { + class: "box f-col aic", + onClick: _cache[2] || (_cache[2] = ($event) => jump("/pages/useredit/addressbook")) + }, [ + vue.createElementVNode("view", { class: "num" }, " 0 "), + vue.createElementVNode("text", null, "通讯录") + ]) + ]) + ]) + ]), + vue.createElementVNode("view", { class: "operate" }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(arr.value, (item, i2) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: "f-row aic jcb item", + key: i2, + onClick: ($event) => jump(item.path) + }, [ + vue.createElementVNode("view", { class: "left f-row aic" }, [ + vue.createElementVNode("image", { + src: item.img, + mode: "" + }, null, 8, ["src"]), + vue.createElementVNode( + "text", + null, + vue.toDisplayString(item.text), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "right f-row aic" }, [ + vue.createCommentVNode(' \r\n \r\n '), + vue.withDirectives(vue.createElementVNode( + "view", + { + class: "switch", + onClick: _cache[3] || (_cache[3] = ($event) => messageSwitch.value = !messageSwitch.value) + }, + [ + vue.withDirectives(vue.createElementVNode( + "image", + { + src: "/static/my/open.png", + mode: "" + }, + null, + 512 + /* NEED_PATCH */ + ), [ + [vue.vShow, messageSwitch.value] + ]), + vue.withDirectives(vue.createElementVNode( + "image", + { + src: "/static/my/close.png", + mode: "" + }, + null, + 512 + /* NEED_PATCH */ + ), [ + [vue.vShow, !messageSwitch.value] + ]) + ], + 512 + /* NEED_PATCH */ + ), [ + [vue.vShow, i2 == 0] + ]), + vue.withDirectives(vue.createElementVNode( + "view", + { + class: "switch", + onClick: position + }, + [ + vue.withDirectives(vue.createElementVNode( + "image", + { + src: "/static/my/open.png", + mode: "" + }, + null, + 512 + /* NEED_PATCH */ + ), [ + [vue.vShow, positionSwitch.value] + ]), + vue.withDirectives(vue.createElementVNode( + "image", + { + src: "/static/my/close.png", + mode: "" + }, + null, + 512 + /* NEED_PATCH */ + ), [ + [vue.vShow, !positionSwitch.value] + ]) + ], + 512 + /* NEED_PATCH */ + ), [ + [vue.vShow, i2 == 2] + ]), + vue.withDirectives(vue.createElementVNode( + "view", + { class: "version" }, + " 当前版本v" + vue.toDisplayString(currentVersion.value), + 513 + /* TEXT, NEED_PATCH */ + ), [ + [vue.vShow, i2 == 3] + ]) + ]) + ], 8, ["onClick"]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesTabMy = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-2086c871"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/tab/my.vue"]]); + const _sfc_main$C = { + __name: "tasklistCom", + props: { + taskArr: { + type: Array, + default: () => [] + }, + currentIndex: { + type: Number, + default: 0 + } + }, + emits: ["jump"], + setup(__props, { emit: __emit }) { + const { + proxy + } = vue.getCurrentInstance(); + const emit = __emit; + const tojump = (url) => { + emit("jump", url); + }; + const handleClaim = (id) => { + claimApi({ + taskId: id + }).then((res) => { + if (res.success) { + uni.redirectTo({ + url: "./index?id=0" + }); + proxy.$toast(res.message); + } + }); + }; + const callBackProcess = (id) => { + callBackProcessApi({ + processInstanceId: id + }).then((res) => { + if (res.success) { + uni.redirectTo({ + url: "./self" + }); + proxy.$toast(res.message); + } + }); + }; + const invalidProcess = (id) => { + invalidProcessApi({ + processInstanceId: id + }).then((res) => { + if (res.success) { + uni.redirectTo({ + url: "./self" + }); + proxy.$toast(res.message); + } + }); + }; + return (_ctx, _cache) => { + return vue.openBlock(), vue.createElementBlock("view", { class: "list_box" }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(__props.taskArr, (item, i2) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: "list", + key: i2, + onClick: ($event) => tojump(`/pages/task/handle?info=${JSON.stringify(item)}&type=${__props.currentIndex}`) + }, [ + vue.createElementVNode("view", { class: "title f-row aic jcb" }, [ + vue.createElementVNode("view", null, [ + vue.createElementVNode( + "view", + null, + vue.toDisplayString(item.bpmBizTitle), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode( + "text", + null, + vue.toDisplayString(item.durationStr), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "info" }, [ + vue.createElementVNode( + "view", + null, + " 申请理由:" + vue.toDisplayString(item.bpmBizTitle), + 1 + /* TEXT */ + ), + __props.currentIndex != 2 ? (vue.openBlock(), vue.createElementBlock( + "view", + { key: 0 }, + " 当前环节:" + vue.toDisplayString(item.taskName), + 1 + /* TEXT */ + )) : vue.createCommentVNode("v-if", true), + vue.createElementVNode( + "view", + null, + " 流程名称:" + vue.toDisplayString(item.processDefinitionName), + 1 + /* TEXT */ + ), + vue.createElementVNode( + "view", + null, + " 发起人:" + vue.toDisplayString(item.processApplyUserName), + 1 + /* TEXT */ + ), + vue.createElementVNode( + "view", + null, + " 开始时间:" + vue.toDisplayString(item.taskBeginTime), + 1 + /* TEXT */ + ), + item.taskEndTime ? (vue.openBlock(), vue.createElementBlock( + "view", + { key: 1 }, + " 结束时间:" + vue.toDisplayString(item.taskEndTime), + 1 + /* TEXT */ + )) : vue.createCommentVNode("v-if", true) + ]), + __props.currentIndex == 0 && item.taskAssigneeName ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "btn f-row aic jcb" + }, [ + vue.createElementVNode("view", { + class: "entrust", + onClick: vue.withModifiers(($event) => tojump(`/pages/userlist/index?isradio=1&id=${item.id}`), ["stop"]) + }, " 委托 ", 8, ["onClick"]), + vue.createElementVNode("view", { + class: "handle", + onClick: ($event) => tojump(`/pages/task/handle?info=${JSON.stringify(item)}&type=${__props.currentIndex}`) + }, " 办理 ", 8, ["onClick"]) + ])) : vue.createCommentVNode("v-if", true), + __props.currentIndex == 0 && !item.taskAssigneeName ? (vue.openBlock(), vue.createElementBlock("view", { + key: 1, + class: "btn f-row aic jcb" + }, [ + vue.createElementVNode("view"), + vue.createElementVNode("view", { + class: "handle", + onClick: vue.withModifiers(($event) => handleClaim(item.id), ["stop"]) + }, " 签收 ", 8, ["onClick"]) + ])) : vue.createCommentVNode("v-if", true), + __props.currentIndex == 2 && !item.endTime ? (vue.openBlock(), vue.createElementBlock("view", { + key: 2, + class: "btn f-row aic jcb" + }, [ + vue.createElementVNode("view", { + class: "entrust", + onClick: vue.withModifiers(($event) => invalidProcess(item.processInstanceId), ["stop"]) + }, " 作废流程 ", 8, ["onClick"]), + vue.createElementVNode("view", { + class: "handle", + onClick: vue.withModifiers(($event) => callBackProcess(item.processInstanceId), ["stop"]) + }, " 取回流程 ", 8, ["onClick"]) + ])) : vue.createCommentVNode("v-if", true) + ], 8, ["onClick"]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ]); + }; + } + }; + const tasklistCom = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-a83f61d7"], ["__file", "D:/projects/cxc-szcx-uniapp/bpm/tasklistCom.vue"]]); + const _sfc_main$B = { + __name: "index", + setup(__props) { + const store = useStore(); + let processDefinitionName = ""; + onLoad((options) => { + currentIndex.value = +options.id; + processDefinitionName = options.title; + }); + onShow(() => { + taskArr.value = []; + pageNo = 1; + pageSize = 10; + loading2 = false; + taskList(); + }); + const tabArr = vue.ref([ + { + text: "我的任务", + id: 0 + }, + { + text: "历史任务", + id: 1 + } + ]); + vue.ref(""); + const currentIndex = vue.ref(0); + let pageNo = 1; + let pageSize = 10; + let loading2 = false; + const taskArr = vue.ref([]); + const taskList = () => { + loading2 = true; + uni.showLoading({ + title: "加载中..." + }); + let getlist = currentIndex.value == 0 ? taskListApi : taskHistoryListApi; + getlist({ + // createTime: date.value ? date.value + ' 00:00:00' : '', + pageNo, + pageSize, + _t: (/* @__PURE__ */ new Date()).getTime(), + processDefinitionName + }).then((res) => { + var _a; + if (res.success) { + if (!res.result.records.length) + return toast("没有更多了~"); + taskArr.value = [...taskArr.value, ...((_a = res == null ? void 0 : res.result) == null ? void 0 : _a.records) || []]; + loading2 = false; + } + }).catch((err) => { + formatAppLog("log", "at pages/task/index.vue:84", err); + }); + }; + const change = (i2) => { + taskArr.value = []; + pageNo = 1; + pageSize = 10; + loading2 = false; + currentIndex.value = i2; + taskList(); + }; + onReachBottom(() => { + if (loading2) + return; + pageNo++; + taskList(); + }); + onPullDownRefresh(() => { + pageNo = 1; + pageSize = 10; + loading2 = false; + taskArr.value = []; + taskList(); + uni.stopPullDownRefresh(); + }); + const jump = (url) => { + beforeJump(url, () => { + uni.navigateTo({ + url + }); + }); + }; + return (_ctx, _cache) => { + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass({ "gray": vue.unref(store).isgray == 1 }) + }, + [ + vue.createElementVNode("view", { class: "nav" }, [ + vue.createElementVNode("view", { class: "tab_box f-row aic jca" }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(tabArr.value, (item, i2) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: vue.normalizeClass({ "active": i2 == currentIndex.value }), + key: i2, + onClick: ($event) => change(i2) + }, vue.toDisplayString(item.text), 11, ["onClick"]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ]) + ]), + vue.createElementVNode("view", { class: "tasklist" }, [ + vue.createVNode(tasklistCom, { + onJump: jump, + taskArr: taskArr.value, + currentIndex: currentIndex.value + }, null, 8, ["taskArr", "currentIndex"]) + ]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesTaskIndex = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-3dabfb60"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/task/index.vue"]]); + class MPAnimation { + constructor(options, _this) { + this.options = options; + this.animation = uni.createAnimation({ + ...options + }); + this.currentStepAnimates = {}; + this.next = 0; + this.$ = _this; + } + _nvuePushAnimates(type, args) { + let aniObj = this.currentStepAnimates[this.next]; + let styles = {}; + if (!aniObj) { + styles = { + styles: {}, + config: {} + }; + } else { + styles = aniObj; + } + if (animateTypes1.includes(type)) { + if (!styles.styles.transform) { + styles.styles.transform = ""; + } + let unit = ""; + if (type === "rotate") { + unit = "deg"; + } + styles.styles.transform += `${type}(${args + unit}) `; + } else { + styles.styles[type] = `${args}`; + } + this.currentStepAnimates[this.next] = styles; + } + _animateRun(styles = {}, config = {}) { + let ref = this.$.$refs["ani"].ref; + if (!ref) + return; + return new Promise((resolve, reject) => { + nvueAnimation.transition(ref, { + styles, + ...config + }, (res) => { + resolve(); + }); + }); + } + _nvueNextAnimate(animates, step = 0, fn) { + let obj = animates[step]; + if (obj) { + let { + styles, + config + } = obj; + this._animateRun(styles, config).then(() => { + step += 1; + this._nvueNextAnimate(animates, step, fn); + }); + } else { + this.currentStepAnimates = {}; + typeof fn === "function" && fn(); + this.isEnd = true; + } + } + step(config = {}) { + this.animation.step(config); + return this; + } + run(fn) { + this.$.animationData = this.animation.export(); + this.$.timer = setTimeout(() => { + typeof fn === "function" && fn(); + }, this.$.durationTime); + } + } + const animateTypes1 = [ + "matrix", + "matrix3d", + "rotate", + "rotate3d", + "rotateX", + "rotateY", + "rotateZ", + "scale", + "scale3d", + "scaleX", + "scaleY", + "scaleZ", + "skew", + "skewX", + "skewY", + "translate", + "translate3d", + "translateX", + "translateY", + "translateZ" + ]; + const animateTypes2 = ["opacity", "backgroundColor"]; + const animateTypes3 = ["width", "height", "left", "right", "top", "bottom"]; + animateTypes1.concat(animateTypes2, animateTypes3).forEach((type) => { + MPAnimation.prototype[type] = function(...args) { + this.animation[type](...args); + return this; + }; + }); + function createAnimation(option, _this) { + if (!_this) + return; + clearTimeout(_this.timer); + return new MPAnimation(option, _this); + } + const _sfc_main$A = { + name: "uniTransition", + emits: ["click", "change"], + props: { + show: { + type: Boolean, + default: false + }, + modeClass: { + type: [Array, String], + default() { + return "fade"; + } + }, + duration: { + type: Number, + default: 300 + }, + styles: { + type: Object, + default() { + return {}; + } + }, + customClass: { + type: String, + default: "" + }, + onceRender: { + type: Boolean, + default: false + } + }, + data() { + return { + isShow: false, + transform: "", + opacity: 1, + animationData: {}, + durationTime: 300, + config: {} + }; + }, + watch: { + show: { + handler(newVal) { + if (newVal) { + this.open(); + } else { + if (this.isShow) { + this.close(); + } + } + }, + immediate: true + } + }, + computed: { + // 生成样式数据 + stylesObject() { + let styles = { + ...this.styles, + "transition-duration": this.duration / 1e3 + "s" + }; + let transform = ""; + for (let i2 in styles) { + let line = this.toLine(i2); + transform += line + ":" + styles[i2] + ";"; + } + return transform; + }, + // 初始化动画条件 + transformStyles() { + return "transform:" + this.transform + ";opacity:" + this.opacity + ";" + this.stylesObject; + } + }, + created() { + this.config = { + duration: this.duration, + timingFunction: "ease", + transformOrigin: "50% 50%", + delay: 0 + }; + this.durationTime = this.duration; + }, + methods: { + /** + * ref 触发 初始化动画 + */ + init(obj = {}) { + if (obj.duration) { + this.durationTime = obj.duration; + } + this.animation = createAnimation(Object.assign(this.config, obj), this); + }, + /** + * 点击组件触发回调 + */ + onClick() { + this.$emit("click", { + detail: this.isShow + }); + }, + /** + * ref 触发 动画分组 + * @param {Object} obj + */ + step(obj, config = {}) { + if (!this.animation) + return; + for (let i2 in obj) { + try { + if (typeof obj[i2] === "object") { + this.animation[i2](...obj[i2]); + } else { + this.animation[i2](obj[i2]); + } + } catch (e2) { + formatAppLog("error", "at uni_modules/uni-transition/components/uni-transition/uni-transition.vue:148", `方法 ${i2} 不存在`); + } + } + this.animation.step(config); + return this; + }, + /** + * ref 触发 执行动画 + */ + run(fn) { + if (!this.animation) + return; + this.animation.run(fn); + }, + // 开始过度动画 + open() { + clearTimeout(this.timer); + this.transform = ""; + this.isShow = true; + let { opacity, transform } = this.styleInit(false); + if (typeof opacity !== "undefined") { + this.opacity = opacity; + } + this.transform = transform; + this.$nextTick(() => { + this.timer = setTimeout(() => { + this.animation = createAnimation(this.config, this); + this.tranfromInit(false).step(); + this.animation.run(); + this.$emit("change", { + detail: this.isShow + }); + }, 20); + }); + }, + // 关闭过度动画 + close(type) { + if (!this.animation) + return; + this.tranfromInit(true).step().run(() => { + this.isShow = false; + this.animationData = null; + this.animation = null; + let { opacity, transform } = this.styleInit(false); + this.opacity = opacity || 1; + this.transform = transform; + this.$emit("change", { + detail: this.isShow + }); + }); + }, + // 处理动画开始前的默认样式 + styleInit(type) { + let styles = { + transform: "" + }; + let buildStyle = (type2, mode) => { + if (mode === "fade") { + styles.opacity = this.animationType(type2)[mode]; + } else { + styles.transform += this.animationType(type2)[mode] + " "; + } + }; + if (typeof this.modeClass === "string") { + buildStyle(type, this.modeClass); + } else { + this.modeClass.forEach((mode) => { + buildStyle(type, mode); + }); + } + return styles; + }, + // 处理内置组合动画 + tranfromInit(type) { + let buildTranfrom = (type2, mode) => { + let aniNum = null; + if (mode === "fade") { + aniNum = type2 ? 0 : 1; + } else { + aniNum = type2 ? "-100%" : "0"; + if (mode === "zoom-in") { + aniNum = type2 ? 0.8 : 1; + } + if (mode === "zoom-out") { + aniNum = type2 ? 1.2 : 1; + } + if (mode === "slide-right") { + aniNum = type2 ? "100%" : "0"; + } + if (mode === "slide-bottom") { + aniNum = type2 ? "100%" : "0"; + } + } + this.animation[this.animationMode()[mode]](aniNum); + }; + if (typeof this.modeClass === "string") { + buildTranfrom(type, this.modeClass); + } else { + this.modeClass.forEach((mode) => { + buildTranfrom(type, mode); + }); + } + return this.animation; + }, + animationType(type) { + return { + fade: type ? 0 : 1, + "slide-top": `translateY(${type ? "0" : "-100%"})`, + "slide-right": `translateX(${type ? "0" : "100%"})`, + "slide-bottom": `translateY(${type ? "0" : "100%"})`, + "slide-left": `translateX(${type ? "0" : "-100%"})`, + "zoom-in": `scaleX(${type ? 1 : 0.8}) scaleY(${type ? 1 : 0.8})`, + "zoom-out": `scaleX(${type ? 1 : 1.2}) scaleY(${type ? 1 : 1.2})` + }; + }, + // 内置动画类型与实际动画对应字典 + animationMode() { + return { + fade: "opacity", + "slide-top": "translateY", + "slide-right": "translateX", + "slide-bottom": "translateY", + "slide-left": "translateX", + "zoom-in": "scale", + "zoom-out": "scale" + }; + }, + // 驼峰转中横线 + toLine(name) { + return name.replace(/([A-Z])/g, "-$1").toLowerCase(); + } + } + }; + function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) { + return vue.withDirectives((vue.openBlock(), vue.createElementBlock("view", { + ref: "ani", + animation: $data.animationData, + class: vue.normalizeClass($props.customClass), + style: vue.normalizeStyle($options.transformStyles), + onClick: _cache[0] || (_cache[0] = (...args) => $options.onClick && $options.onClick(...args)) + }, [ + vue.renderSlot(_ctx.$slots, "default") + ], 14, ["animation"])), [ + [vue.vShow, $data.isShow] + ]); + } + const __easycom_0$3 = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$8], ["__file", "D:/projects/cxc-szcx-uniapp/uni_modules/uni-transition/components/uni-transition/uni-transition.vue"]]); + const _sfc_main$z = { + name: "uniPopup", + components: {}, + emits: ["change", "maskClick"], + props: { + // 开启动画 + animation: { + type: Boolean, + default: true + }, + // 弹出层类型,可选值,top: 顶部弹出层;bottom:底部弹出层;center:全屏弹出层 + // message: 消息提示 ; dialog : 对话框 + type: { + type: String, + default: "center" + }, + // maskClick + isMaskClick: { + type: Boolean, + default: null + }, + // TODO 2 个版本后废弃属性 ,使用 isMaskClick + maskClick: { + type: Boolean, + default: null + }, + backgroundColor: { + type: String, + default: "none" + }, + safeArea: { + type: Boolean, + default: true + }, + maskBackgroundColor: { + type: String, + default: "rgba(0, 0, 0, 0.4)" + }, + borderRadius: { + type: String + } + }, + watch: { + /** + * 监听type类型 + */ + type: { + handler: function(type) { + if (!this.config[type]) + return; + this[this.config[type]](true); + }, + immediate: true + }, + isDesktop: { + handler: function(newVal) { + if (!this.config[newVal]) + return; + this[this.config[this.type]](true); + }, + immediate: true + }, + /** + * 监听遮罩是否可点击 + * @param {Object} val + */ + maskClick: { + handler: function(val) { + this.mkclick = val; + }, + immediate: true + }, + isMaskClick: { + handler: function(val) { + this.mkclick = val; + }, + immediate: true + }, + // H5 下禁止底部滚动 + showPopup(show) { + } + }, + data() { + return { + duration: 300, + ani: [], + showPopup: false, + showTrans: false, + popupWidth: 0, + popupHeight: 0, + config: { + top: "top", + bottom: "bottom", + center: "center", + left: "left", + right: "right", + message: "top", + dialog: "center", + share: "bottom" + }, + maskClass: { + position: "fixed", + bottom: 0, + top: 0, + left: 0, + right: 0, + backgroundColor: "rgba(0, 0, 0, 0.4)" + }, + transClass: { + backgroundColor: "transparent", + borderRadius: this.borderRadius || "0", + position: "fixed", + left: 0, + right: 0 + }, + maskShow: true, + mkclick: true, + popupstyle: "top" + }; + }, + computed: { + getStyles() { + let res = { backgroundColor: this.bg }; + if (this.borderRadius || "0") { + res = Object.assign(res, { borderRadius: this.borderRadius }); + } + return res; + }, + isDesktop() { + return this.popupWidth >= 500 && this.popupHeight >= 500; + }, + bg() { + if (this.backgroundColor === "" || this.backgroundColor === "none") { + return "transparent"; + } + return this.backgroundColor; + } + }, + mounted() { + const fixSize = () => { + const { + windowWidth, + windowHeight, + windowTop, + safeArea, + screenHeight, + safeAreaInsets + } = uni.getSystemInfoSync(); + this.popupWidth = windowWidth; + this.popupHeight = windowHeight + (windowTop || 0); + if (safeArea && this.safeArea) { + this.safeAreaInsets = safeAreaInsets.bottom; + } else { + this.safeAreaInsets = 0; + } + }; + fixSize(); + }, + // TODO vue3 + unmounted() { + this.setH5Visible(); + }, + activated() { + this.setH5Visible(!this.showPopup); + }, + deactivated() { + this.setH5Visible(true); + }, + created() { + if (this.isMaskClick === null && this.maskClick === null) { + this.mkclick = true; + } else { + this.mkclick = this.isMaskClick !== null ? this.isMaskClick : this.maskClick; + } + if (this.animation) { + this.duration = 300; + } else { + this.duration = 0; + } + this.messageChild = null; + this.clearPropagation = false; + this.maskClass.backgroundColor = this.maskBackgroundColor; + }, + methods: { + setH5Visible(visible = true) { + }, + /** + * 公用方法,不显示遮罩层 + */ + closeMask() { + this.maskShow = false; + }, + /** + * 公用方法,遮罩层禁止点击 + */ + disableMask() { + this.mkclick = false; + }, + // TODO nvue 取消冒泡 + clear(e2) { + e2.stopPropagation(); + this.clearPropagation = true; + }, + open(direction) { + if (this.showPopup) { + return; + } + let innerType = ["top", "center", "bottom", "left", "right", "message", "dialog", "share"]; + if (!(direction && innerType.indexOf(direction) !== -1)) { + direction = this.type; + } + if (!this.config[direction]) { + formatAppLog("error", "at uni_modules/uni-popup/components/uni-popup/uni-popup.vue:298", "缺少类型:", direction); + return; + } + this[this.config[direction]](); + this.$emit("change", { + show: true, + type: direction + }); + }, + close(type) { + this.showTrans = false; + this.$emit("change", { + show: false, + type: this.type + }); + clearTimeout(this.timer); + this.timer = setTimeout(() => { + this.showPopup = false; + }, 300); + }, + // TODO 处理冒泡事件,头条的冒泡事件有问题 ,先这样兼容 + touchstart() { + this.clearPropagation = false; + }, + onTap() { + if (this.clearPropagation) { + this.clearPropagation = false; + return; + } + this.$emit("maskClick"); + if (!this.mkclick) + return; + this.close(); + }, + /** + * 顶部弹出样式处理 + */ + top(type) { + this.popupstyle = this.isDesktop ? "fixforpc-top" : "top"; + this.ani = ["slide-top"]; + this.transClass = { + position: "fixed", + left: 0, + right: 0, + backgroundColor: this.bg, + borderRadius: this.borderRadius || "0" + }; + if (type) + return; + this.showPopup = true; + this.showTrans = true; + this.$nextTick(() => { + if (this.messageChild && this.type === "message") { + this.messageChild.timerClose(); + } + }); + }, + /** + * 底部弹出样式处理 + */ + bottom(type) { + this.popupstyle = "bottom"; + this.ani = ["slide-bottom"]; + this.transClass = { + position: "fixed", + left: 0, + right: 0, + bottom: 0, + paddingBottom: this.safeAreaInsets + "px", + backgroundColor: this.bg, + borderRadius: this.borderRadius || "0" + }; + if (type) + return; + this.showPopup = true; + this.showTrans = true; + }, + /** + * 中间弹出样式处理 + */ + center(type) { + this.popupstyle = "center"; + this.ani = ["zoom-out", "fade"]; + this.transClass = { + position: "fixed", + display: "flex", + flexDirection: "column", + bottom: 0, + left: 0, + right: 0, + top: 0, + justifyContent: "center", + alignItems: "center", + borderRadius: this.borderRadius || "0" + }; + if (type) + return; + this.showPopup = true; + this.showTrans = true; + }, + left(type) { + this.popupstyle = "left"; + this.ani = ["slide-left"]; + this.transClass = { + position: "fixed", + left: 0, + bottom: 0, + top: 0, + backgroundColor: this.bg, + borderRadius: this.borderRadius || "0", + display: "flex", + flexDirection: "column" + }; + if (type) + return; + this.showPopup = true; + this.showTrans = true; + }, + right(type) { + this.popupstyle = "right"; + this.ani = ["slide-right"]; + this.transClass = { + position: "fixed", + bottom: 0, + right: 0, + top: 0, + backgroundColor: this.bg, + borderRadius: this.borderRadius || "0", + display: "flex", + flexDirection: "column" + }; + if (type) + return; + this.showPopup = true; + this.showTrans = true; + } + } + }; + function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) { + const _component_uni_transition = resolveEasycom(vue.resolveDynamicComponent("uni-transition"), __easycom_0$3); + return $data.showPopup ? (vue.openBlock(), vue.createElementBlock( + "view", + { + key: 0, + class: vue.normalizeClass(["uni-popup", [$data.popupstyle, $options.isDesktop ? "fixforpc-z-index" : ""]]) + }, + [ + vue.createElementVNode( + "view", + { + onTouchstart: _cache[1] || (_cache[1] = (...args) => $options.touchstart && $options.touchstart(...args)) + }, + [ + $data.maskShow ? (vue.openBlock(), vue.createBlock(_component_uni_transition, { + key: "1", + name: "mask", + "mode-class": "fade", + styles: $data.maskClass, + duration: $data.duration, + show: $data.showTrans, + onClick: $options.onTap + }, null, 8, ["styles", "duration", "show", "onClick"])) : vue.createCommentVNode("v-if", true), + vue.createVNode(_component_uni_transition, { + key: "2", + "mode-class": $data.ani, + name: "content", + styles: $data.transClass, + duration: $data.duration, + show: $data.showTrans, + onClick: $options.onTap + }, { + default: vue.withCtx(() => [ + vue.createElementVNode( + "view", + { + class: vue.normalizeClass(["uni-popup__wrapper", [$data.popupstyle]]), + style: vue.normalizeStyle($options.getStyles), + onClick: _cache[0] || (_cache[0] = (...args) => $options.clear && $options.clear(...args)) + }, + [ + vue.renderSlot(_ctx.$slots, "default", {}, void 0, true) + ], + 6 + /* CLASS, STYLE */ + ) + ]), + _: 3 + /* FORWARDED */ + }, 8, ["mode-class", "styles", "duration", "show", "onClick"]) + ], + 32 + /* NEED_HYDRATION */ + ) + ], + 2 + /* CLASS */ + )) : vue.createCommentVNode("v-if", true); + } + const __easycom_2 = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$7], ["__scopeId", "data-v-4dd3c44b"], ["__file", "D:/projects/cxc-szcx-uniapp/uni_modules/uni-popup/components/uni-popup/uni-popup.vue"]]); + const _sfc_main$y = { + __name: "handle", + setup(__props) { + const store = useStore(); + const { + proxy + } = vue.getCurrentInstance(); + const popup = vue.ref(null); + const reason = vue.ref(""); + const status = vue.ref(null); + const openpop = (val) => { + status.value = val; + popup.value.open(); + reason.value = val == 2 ? "同意" : ""; + }; + const closepop = () => { + popup.value.close(); + }; + const comp = vue.ref(null); + const dataId = vue.ref(""); + const getProcessNodeInfo = (taskId) => { + getProcessNodeInfoApi({ + taskId + }).then((res) => { + if (res.success) { + dataId.value = res.result.dataId; + comp.value = res.result.formUrlMobile; + } + }); + }; + const back = () => { + uni.navigateBack(); + }; + const chooseNextPerson = vue.ref(false); + let nextnode = null; + const handleProcess = () => { + let params = {}; + if (status.value == 1) { + if (currentnode.value == null) + return proxy.$toast("请选择驳回节点"); + params.processModel = 3; + params.rejectModelNode = stepNode.value[currentnode.value].TASK_DEF_KEY_; + processComplete(params); + } else { + if (chooseNextPerson.value) { + beforeJump("/pages/userlist/index", () => { + closepop(); + uni.navigateTo({ + url: `/pages/userlist/index?id=${taskInfo.value.id}&isradio=1&nextnode=${JSON.stringify(nextnode)}&reason=${reason.value}` + }); + }); + } else { + params.processModel = 1; + processComplete(params); + } + } + }; + const processComplete = (params) => { + processCompleteApi({ + taskId: taskInfo.value.id, + reason: reason.value, + ...params + }).then((res) => { + if (res.success) { + proxy.$toast(res.message); + setTimeout(() => { + uni.navigateBack(); + }, 2e3); + } + }); + }; + const stepNode = vue.ref([]); + const currentnode = vue.ref(null); + const nodeChange = (e2) => { + currentnode.value = e2.detail.value; + }; + const getProcessTaskTransInfo = (e2) => { + getProcessTaskTransInfoApi({ + taskId: taskInfo.value.id + }).then((res) => { + if (res.success) { + stepNode.value = res.result.histListNode; + nextnode = res.result.transitionList; + } + }); + }; + const getHisProcessNodeInfo = (procInstId) => { + getHisProcessNodeInfoApi({ + procInstId + }).then((res) => { + if (res.success) { + dataId.value = res.result.dataId; + comp.value = res.result.formUrlMobile; + } + }); + }; + const taskInfo = vue.ref(null); + let type = null; + onLoad((options) => { + taskInfo.value = JSON.parse(options.info); + type = options.type; + if (type == 1 || type == 2) { + return getHisProcessNodeInfo(taskInfo.value.processInstanceId); + } + getProcessNodeInfo(taskInfo.value.id); + getProcessTaskTransInfo(); + }); + return (_ctx, _cache) => { + const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_1$1); + const _component_uni_popup = resolveEasycom(vue.resolveDynamicComponent("uni-popup"), __easycom_2); + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass(["content", { "gray": vue.unref(store).isgray == 1 }]) + }, + [ + vue.createVNode(customNav, null, { + default: vue.withCtx(() => [ + vue.createElementVNode("view", { class: "f-row aic box" }, [ + vue.createElementVNode("view", { + class: "back", + onClick: back + }, [ + vue.createVNode(_component_uni_icons, { + type: "left", + size: "20", + color: "#fff" + }) + ]), + vue.createElementVNode("view", { class: "avatar" }, [ + vue.createElementVNode("image", { + src: vue.unref(imgUrl)(vue.unref(store).userinfo.avatar), + mode: "" + }, null, 8, ["src"]) + ]), + vue.createElementVNode( + "view", + { class: "name" }, + vue.toDisplayString(taskInfo.value.processApplyUserName) + "的" + vue.toDisplayString(taskInfo.value.processDefinitionName), + 1 + /* TEXT */ + ), + vue.unref(type) == 0 ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "status" + }, " 待审批 ")) : vue.createCommentVNode("v-if", true), + vue.unref(type) == 1 ? (vue.openBlock(), vue.createElementBlock("view", { + key: 1, + class: "status", + style: { "background-color": "#7AC756" } + }, " 已处理 ")) : vue.createCommentVNode("v-if", true) + ]) + ]), + _: 1 + /* STABLE */ + }), + (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(comp.value), { dataId: dataId.value }, null, 8, ["dataId"])), + vue.unref(type) == 0 ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "btn f-row aic jcb" + }, [ + vue.createElementVNode("view", { + class: "refuse", + onClick: _cache[0] || (_cache[0] = ($event) => openpop(1)) + }, " 拒绝 "), + vue.createElementVNode("view", { + class: "agree", + onClick: _cache[1] || (_cache[1] = ($event) => openpop(2)) + }, " 同意 ") + ])) : vue.createCommentVNode("v-if", true), + vue.createVNode( + _component_uni_popup, + { + ref_key: "popup", + ref: popup, + type: "center" + }, + { + default: vue.withCtx(() => [ + vue.createElementVNode("view", { class: "popup" }, [ + vue.createElementVNode("view", { class: "title" }, " 审批意见 "), + vue.createElementVNode("view", { class: "f-col aic" }, [ + vue.createElementVNode("view", { class: "input f-col" }, [ + vue.withDirectives(vue.createElementVNode( + "textarea", + { + "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => reason.value = $event), + name: "", + id: "", + maxlength: "200", + placeholder: "请输入" + }, + null, + 512 + /* NEED_PATCH */ + ), [ + [vue.vModelText, reason.value] + ]), + vue.createElementVNode( + "view", + { class: "" }, + vue.toDisplayString(reason.value.length) + "/200 ", + 1 + /* TEXT */ + ) + ]) + ]), + status.value == 2 ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "agree_operate f-row aic", + onClick: _cache[3] || (_cache[3] = ($event) => chooseNextPerson.value = !chooseNextPerson.value) + }, [ + chooseNextPerson.value ? (vue.openBlock(), vue.createElementBlock("image", { + key: 0, + src: "/static/login/checked.png", + mode: "" + })) : (vue.openBlock(), vue.createElementBlock("image", { + key: 1, + src: "/static/login/nocheck.png", + mode: "" + })), + vue.createElementVNode("view", { class: "" }, " 指定下一步操作人 ") + ])) : (vue.openBlock(), vue.createElementBlock("view", { + key: 1, + class: "" + }, [ + vue.createElementVNode("picker", { + value: currentnode.value, + range: stepNode.value, + "range-key": "NAME_", + onChange: nodeChange + }, [ + vue.createElementVNode( + "view", + { class: "node" }, + vue.toDisplayString(currentnode.value != null ? stepNode.value[currentnode.value].NAME_ : "请选择驳回节点"), + 1 + /* TEXT */ + ) + ], 40, ["value", "range"]) + ])), + vue.createElementVNode("view", { class: "popbtn f-row aic" }, [ + vue.createElementVNode("view", { + class: "cancel", + onClick: closepop + }, " 取消 "), + vue.createElementVNode("view", { + class: "confirm", + onClick: handleProcess + }, " 确定 ") + ]) + ]) + ]), + _: 1 + /* STABLE */ + }, + 512 + /* NEED_PATCH */ + ) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesTaskHandle = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-aeec6874"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/task/handle.vue"]]); + const _sfc_main$x = { + __name: "message_list", + setup(__props) { + const store = useStore(); + const jump = (url) => { + beforeJump(url, () => { + uni.navigateTo({ + url + }); + }); + }; + return (_ctx, _cache) => { + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass({ "gray": vue.unref(store).isgray == 1 }) + }, + [ + vue.createElementVNode("view", { class: "list" }, [ + vue.createElementVNode("view", { class: "item f-row aic" }, [ + vue.createElementVNode("view", { class: "f-row aic" }, [ + vue.createElementVNode("image", { + src: "/static/system.png", + mode: "" + }) + ]), + vue.createElementVNode("view", { class: "name_info" }, [ + vue.createElementVNode("view", { class: "name_time f-row aic jcb" }, [ + vue.createElementVNode("view", { class: "name" }, " 系统通知 "), + vue.createElementVNode("view", { class: "time" }, " 1分钟前 ") + ]), + vue.createElementVNode("view", { class: "info" }, " 关于年假通知关于年假通知关于年假通知关于年假通知关于年假通知关于年假通知关于年假通知 ") + ]) + ]), + (vue.openBlock(), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(5, (item, i2) => { + return vue.createElementVNode("view", { + class: "item f-row aic", + key: i2, + onClick: _cache[0] || (_cache[0] = ($event) => jump("/pages/talk/conversation")) + }, [ + vue.createElementVNode("view", { class: "f-row aic" }, [ + vue.createElementVNode("image", { + src: "", + mode: "" + }) + ]), + vue.createElementVNode("view", { class: "name_info" }, [ + vue.createElementVNode("view", { class: "name_time f-row aic jcb" }, [ + vue.createElementVNode("view", { class: "name" }, " 系统通知 "), + vue.createElementVNode("view", { class: "time" }, " 1分钟前 ") + ]), + vue.createElementVNode("view", { class: "info" }, " 关于年假通知 ") + ]) + ]); + }), + 64 + /* STABLE_FRAGMENT */ + )) + ]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesTalkMessage_list = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-e2a9a302"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/talk/message_list.vue"]]); + const _sfc_main$w = { + __name: "conversation", + setup(__props) { + const store = useStore(); + return (_ctx, _cache) => { + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass(["content", { "gray": vue.unref(store).isgray == 1 }]) + }, + [ + vue.createElementVNode("view", { class: "list" }, [ + (vue.openBlock(), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(14, (item, i2) => { + return vue.createElementVNode("view", { + class: "item", + key: i2 + }, [ + vue.withDirectives(vue.createElementVNode( + "view", + { class: "left f-row aic" }, + [ + vue.createElementVNode("view", { class: "avatar f-row aic" }, [ + vue.createElementVNode("image", { + src: "/static/system.png", + mode: "" + }) + ]), + vue.createElementVNode("view", { class: "content" }, " 你今天在干嘛呢?为什么这么久不回我信息,真的生气了 ") + ], + 512 + /* NEED_PATCH */ + ), [ + [vue.vShow, i2 % 2 == 0] + ]), + vue.withDirectives(vue.createElementVNode( + "view", + { class: "right f-row aic" }, + [ + vue.createElementVNode("view", { class: "content" }, " 请问如何退款? "), + vue.createElementVNode("view", { class: "avatar f-row aic" }, [ + vue.createElementVNode("image", { + src: "", + mode: "" + }) + ]) + ], + 512 + /* NEED_PATCH */ + ), [ + [vue.vShow, i2 % 2 != 0] + ]) + ]); + }), + 64 + /* STABLE_FRAGMENT */ + )) + ]), + vue.createElementVNode("view", { class: "input_box f-row aic jce" }, [ + vue.createElementVNode("input", { + type: "text", + placeholder: "请输入内容......", + "placeholder-style": "font-size: 28rpx;color: #999999;" + }), + vue.createElementVNode("view", { class: "send" }, " 发送 ") + ]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesTalkConversation = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-696a96aa"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/talk/conversation.vue"]]); + const _sfc_main$v = { + __name: "system", + setup(__props) { + const store = useStore(); + return (_ctx, _cache) => { + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass(["content", { "gray": vue.unref(store).isgray == 1 }]) + }, + [ + vue.createElementVNode("view", { class: "list" }, [ + (vue.openBlock(), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(3, (item, i2) => { + return vue.createElementVNode("view", { + class: "item", + key: i2 + }, [ + vue.createElementVNode("view", { class: "left f-row aic" }, [ + vue.createElementVNode("view", { class: "avatar f-row aic" }, [ + vue.createElementVNode("image", { + src: "/static/system.png", + mode: "" + }) + ]), + vue.createElementVNode("view", { class: "content" }, " 你今天在干嘛呢?为什么这么久不回我信息,真的生气了 ") + ]) + ]); + }), + 64 + /* STABLE_FRAGMENT */ + )) + ]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesTalkSystem = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-5621beca"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/talk/system.vue"]]); + const _sfc_main$u = { + __name: "index", + setup(__props) { + vue.useCssVars((_ctx) => ({ + "ae7a950b-cusnavbarheight": _ctx.cusnavbarheight + })); + const store = useStore(); + const showicon = vue.ref(true); + const searchKey = vue.ref(""); + const list = vue.ref([]); + let pageNo = 1; + let pageSize = 15; + let loading2 = false; + const bpmlist = () => { + loading2 = true; + bpmlistApi({ + pageNo, + pageSize, + fwbt: formatSearchkey() + }).then((res) => { + if (res.success) { + list.value = [...list.value, ...formatObj(res.result.records, "fwbt", "fwtime", null)]; + } + loading2 = false; + }).catch((err) => { + formatAppLog("log", "at pages/document/index.vue:89", "err", err); + }); + }; + const zhidu = () => { + loading2 = true; + let getzhidu = zhiduid == 0 ? zhiduApi : cjzhiduApi; + getzhidu({ + pageNo, + pageSize, + zdmc: formatSearchkey() + }).then((res) => { + if (res.success) { + let str = zhiduid == 0 ? "zbbm_dictText" : "sbbm"; + list.value = [...list.value, ...formatObj(res.result.records, "zdmc", str, null)]; + } + loading2 = false; + }).catch((err) => { + formatAppLog("log", "at pages/document/index.vue:108", "err", err); + }); + }; + const fagui = () => { + loading2 = true; + faguiApi({ + pageNo, + pageSize, + flfgmc: formatSearchkey() + }).then((res) => { + if (res.success) { + list.value = [...list.value, ...formatObj(res.result.records, "flfgmc", "ssbm", null)]; + } + loading2 = false; + }).catch((err) => { + formatAppLog("log", "at pages/document/index.vue:125", "err", err); + }); + }; + const gonggaolist = () => { + loading2 = true; + gonggaolistApi({ + pageNo, + pageSize, + neirong: formatSearchkey() + }).then((res) => { + if (res.success) { + list.value = [...list.value, ...formatObj(res.result.records, "neirong", "fbdw", "createTime")]; + } + loading2 = false; + }).catch((err) => { + formatAppLog("log", "at pages/document/index.vue:142", "err", err); + }); + }; + const formatObj = (arr, title, time, depart) => { + arr.map((item) => { + item["_title"] = item[title]; + item["_time"] = item[time]; + item["_depart"] = item[depart]; + }); + return arr; + }; + const formatSearchkey = () => { + if (searchKey.value.trim()) { + return "*" + searchKey.value + "*"; + } + }; + const search = () => { + pageNo = 1; + loading2 = false; + list.value = []; + getlist(); + }; + vue.watch(searchKey, (nval, oval) => { + if (!nval.trim()) { + getlist(); + } + }); + const back = () => { + uni.navigateBack(); + }; + const jump = (url, item) => { + if (id.value == 3) { + return opendocument(item.mingcheng); + } + beforeJump(url, () => { + uni.navigateTo({ + url + }); + }); + }; + const id = vue.ref(null); + let zhiduid = null; + onLoad((options) => { + id.value = options.id; + zhiduid = options.zhiduid; + getlist(); + }); + const getlist = () => { + if (id.value == 0) { + bpmlist(); + } else if (id.value == 1) { + gonggaolist(); + } else if (id.value == 2) { + zhidu(); + } else if (id.value == 3) { + fagui(); + } + }; + onPullDownRefresh(() => { + pageNo = 1; + loading2 = false; + list.value = []; + getlist(); + uni.stopPullDownRefresh(); + }); + onReachBottom(() => { + if (loading2) + return; + pageNo++; + getlist(); + }); + return (_ctx, _cache) => { + const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_1$1); + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass(["content", { "gray": vue.unref(store).isgray == 1 }]) + }, + [ + vue.createVNode(customNav, null, { + default: vue.withCtx(() => [ + vue.createElementVNode("view", { class: "nav_box f-row aic jcb" }, [ + vue.createElementVNode("view", { + class: "back f-row aic", + onClick: back + }, [ + vue.createVNode(_component_uni_icons, { + type: "left", + size: "20", + color: "#fff" + }) + ]), + vue.createElementVNode("view", { class: "search f-row aic" }, [ + vue.withDirectives(vue.createElementVNode( + "input", + { + type: "text", + "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchKey.value = $event), + onConfirm: search, + onBlur: _cache[1] || (_cache[1] = ($event) => showicon.value = !searchKey.value), + onFocus: _cache[2] || (_cache[2] = ($event) => showicon.value = false) + }, + null, + 544 + /* NEED_HYDRATION, NEED_PATCH */ + ), [ + [vue.vModelText, searchKey.value] + ]), + showicon.value ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "f-row aic" + }, [ + vue.createElementVNode("image", { + src: "/static/search.png", + mode: "" + }), + vue.createElementVNode("text", null, "搜索") + ])) : vue.createCommentVNode("v-if", true) + ]) + ]) + ]), + _: 1 + /* STABLE */ + }), + vue.createElementVNode("view", { class: "list" }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(list.value, (item, i2) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: "item", + key: i2, + onClick: ($event) => jump(`/pages/document/detail?data=${JSON.stringify(item)}&id=${id.value}`, item) + }, [ + vue.createCommentVNode(' \r\n \r\n '), + vue.createElementVNode( + "view", + { class: "title" }, + vue.toDisplayString(item._title), + 1 + /* TEXT */ + ), + vue.createElementVNode("view", { class: "time_box f-row aic" }, [ + vue.createElementVNode( + "view", + { class: "time" }, + vue.toDisplayString(item._time), + 1 + /* TEXT */ + ), + item._depart ? (vue.openBlock(), vue.createElementBlock( + "view", + { + key: 0, + class: "look f-row aic" + }, + vue.toDisplayString(item._depart), + 1 + /* TEXT */ + )) : vue.createCommentVNode("v-if", true), + vue.createCommentVNode(' \r\n \r\n 999+\r\n ') + ]) + ], 8, ["onClick"]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesDocumentIndex = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-ae7a950b"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/document/index.vue"]]); + const _sfc_main$t = { + __name: "detail", + setup(__props) { + const store = useStore(); + const detail = vue.ref({}); + onLoad((options) => { + detail.value = JSON.parse(options.data); + if (options.id == 0) { + detail.value.pdf = detail.value.wjbt; + } else if (options.id == 2) { + if (detail.value.jdwj) { + detail.value.pdf = detail.value.jdwj + "," + detail.value.sszd; + } else { + detail.value.pdf = detail.value.sszd; + } + } else if (options.id == 3) { + detail.value.pdf = detail.value.mingcheng; + } + }); + return (_ctx, _cache) => { + var _a, _b; + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass(["content", { "gray": vue.unref(store).isgray == 1 }]) + }, + [ + vue.createElementVNode("view", { class: "title_box" }, [ + vue.createElementVNode( + "view", + { class: "title" }, + vue.toDisplayString(detail.value._title), + 1 + /* TEXT */ + ), + vue.createElementVNode( + "view", + { class: "time" }, + vue.toDisplayString(detail.value._time), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "document f-row" }, [ + vue.createElementVNode("text", { class: "" }, " 附件: "), + vue.createElementVNode("view", { class: "f-col" }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList((_b = (_a = detail.value) == null ? void 0 : _a.pdf) == null ? void 0 : _b.split(","), (item, i2) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: "", + style: { "padding": "5rpx 0" }, + onClick: ($event) => vue.unref(opendocument)(item) + }, vue.toDisplayString(item), 9, ["onClick"]); + }), + 256 + /* UNKEYED_FRAGMENT */ + )) + ]) + ]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesDocumentDetail = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-2c024c80"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/document/detail.vue"]]); + const _sfc_main$s = { + __name: "index", + setup(__props) { + const store = useStore(); + const showicon = vue.ref(true); + const searchKey = vue.ref(""); + onLoad(() => { + }); + const jump = (url) => { + beforeJump(url, () => { + uni.navigateTo({ + url + }); + }); + }; + const back = () => { + uni.navigateBack(); + }; + return (_ctx, _cache) => { + const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_1$1); + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass({ "gray": vue.unref(store).isgray == 1 }) + }, + [ + vue.createVNode(customNav, null, { + default: vue.withCtx(() => [ + vue.createElementVNode("view", { class: "nav_box f-row aic jcb" }, [ + vue.createElementVNode("view", { + class: "back f-row aic", + onClick: back + }, [ + vue.createVNode(_component_uni_icons, { + type: "left", + size: "20", + color: "#fff" + }) + ]), + vue.createElementVNode("view", { class: "search f-row aic" }, [ + vue.withDirectives(vue.createElementVNode( + "input", + { + type: "text", + "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchKey.value = $event), + onConfirm: _cache[1] || (_cache[1] = (...args) => _ctx.search && _ctx.search(...args)), + onBlur: _cache[2] || (_cache[2] = ($event) => showicon.value = !searchKey.value), + onFocus: _cache[3] || (_cache[3] = ($event) => showicon.value = false) + }, + null, + 544 + /* NEED_HYDRATION, NEED_PATCH */ + ), [ + [vue.vModelText, searchKey.value] + ]), + showicon.value ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "f-row aic" + }, [ + vue.createElementVNode("image", { + src: "/static/search.png", + mode: "" + }), + vue.createElementVNode("text", null, "搜索") + ])) : vue.createCommentVNode("v-if", true) + ]) + ]) + ]), + _: 1 + /* STABLE */ + }), + vue.createElementVNode("view", { class: "list_box" }, [ + (vue.openBlock(), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(3, (item, i2) => { + return vue.createElementVNode("view", { + class: "list", + key: i2, + onClick: _cache[4] || (_cache[4] = ($event) => jump(`/pages/meeting/detail?id=1`)) + }, [ + vue.createElementVNode("view", { class: "title f-row aic jcb" }, [ + vue.createElementVNode("view", { class: "" }, " 年度部门讨论会议 "), + vue.createElementVNode("text", null, "1分钟前") + ]), + vue.createElementVNode("view", { class: "info" }, [ + vue.createElementVNode("view", { class: "f-row aic jcb" }, [ + vue.createElementVNode("view", { class: "" }, " 发起人: "), + vue.createElementVNode("text", null, "周如意") + ]), + vue.createElementVNode("view", { class: "f-row aic jcb" }, [ + vue.createElementVNode("view", { class: "" }, " 会议日期: "), + vue.createElementVNode("text", null, "周如意") + ]), + vue.createElementVNode("view", { class: "f-row aic jcb" }, [ + vue.createElementVNode("view", { class: "" }, " 会议地点: "), + vue.createElementVNode("text", null, "周如意") + ]), + vue.createElementVNode("view", { class: "f-row aic jcb" }, [ + vue.createElementVNode("view", { class: "" }, " 会议内容: "), + vue.createElementVNode("text", null, "周如意") + ]) + ]), + vue.createCommentVNode(' \r\n \r\n 拒绝\r\n \r\n \r\n 同意\r\n \r\n '), + vue.createElementVNode("view", { class: "handled f-row" }, [ + vue.createElementVNode("view", { class: "refused" }, " 已拒绝 "), + vue.createCommentVNode(' \r\n 已同意\r\n ') + ]) + ]); + }), + 64 + /* STABLE_FRAGMENT */ + )) + ]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesMeetingIndex = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-f3707b27"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/meeting/index.vue"]]); + const _sfc_main$r = { + __name: "detail", + setup(__props) { + const store = useStore(); + onLoad(() => { + huiyiDetail(); + }); + const huiyiDetail = () => { + huiyiDetailApi({ + mainid: 1 + }).then((res) => { + if (res.success) + ; + }).catch((err) => { + formatAppLog("log", "at pages/meeting/detail.vue:94", err); + }); + }; + return (_ctx, _cache) => { + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass(["content", { "gray": vue.unref(store).isgray == 1 }]) + }, + [ + vue.createElementVNode("view", { class: "list_box" }, [ + vue.createElementVNode("view", { class: "list" }, [ + vue.createElementVNode("view", { class: "title f-row aic jcb" }, [ + vue.createElementVNode("view", { class: "" }, " 年度部门讨论会议 "), + vue.createElementVNode("text", null, "1分钟前") + ]), + vue.createElementVNode("view", { class: "info" }, [ + vue.createElementVNode("view", { class: "f-row aic jcb" }, [ + vue.createElementVNode("view", { class: "" }, " 会议状态: "), + vue.createElementVNode("text", null, "待开始/已开始/已结束") + ]), + vue.createElementVNode("view", { class: "f-row aic jcb" }, [ + vue.createElementVNode("view", { class: "" }, " 发起人: "), + vue.createElementVNode("text", null, "周如意") + ]), + vue.createElementVNode("view", { class: "f-row aic jcb" }, [ + vue.createElementVNode("view", { class: "" }, " 会议日期: "), + vue.createElementVNode("text", null, "周如意") + ]), + vue.createElementVNode("view", { class: "f-row aic jcb" }, [ + vue.createElementVNode("view", { class: "" }, " 会议地点: "), + vue.createElementVNode("text", null, "周如意") + ]), + vue.createElementVNode("view", { class: "f-row aic jcb" }, [ + vue.createElementVNode("view", { class: "" }, " 会议内容: "), + vue.createElementVNode("text", null, "周如意") + ]), + vue.createElementVNode("view", { class: "" }, [ + vue.createElementVNode("view", { class: "" }, " 参与人员: "), + vue.createElementVNode("view", { class: "person f-row aic" }, [ + (vue.openBlock(), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(7, (item, i2) => { + return vue.createElementVNode("view", { + class: "item f-col aic", + key: i2 + }, [ + vue.createElementVNode("image", { + src: "", + mode: "" + }), + vue.createElementVNode("view", { class: "name" }, " 周如意 ") + ]); + }), + 64 + /* STABLE_FRAGMENT */ + )) + ]) + ]) + ]) + ]) + ]), + vue.createElementVNode("view", { class: "btn f-row aic jcb" }, [ + vue.createElementVNode("view", { class: "refuse" }, " 拒绝 "), + vue.createElementVNode("view", { + class: "agree", + onClick: _cache[0] || (_cache[0] = (...args) => _ctx.openpop && _ctx.openpop(...args)) + }, " 同意 ") + ]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesMeetingDetail = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-ee2c785f"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/meeting/detail.vue"]]); + const pages = [ + { + path: "pages/login/login", + style: { + navigationStyle: "custom" + } + }, + { + path: "pages/tab/index", + style: { + navigationStyle: "custom", + enablePullDownRefresh: true + } + }, + { + path: "pages/task/todotask", + style: { + navigationStyle: "custom", + enablePullDownRefresh: true + } + }, + { + path: "pages/tab/office", + style: { + navigationStyle: "custom" + } + }, + { + path: "pages/tab/my", + style: { + navigationStyle: "custom" + } + }, + { + path: "pages/task/index", + style: { + enablePullDownRefresh: true, + "app-plus": { + titleNView: { + titleText: "我的任务", + titleColor: "#fff" + } + } + } + }, + { + path: "pages/task/handle", + style: { + navigationStyle: "custom" + } + }, + { + path: "pages/talk/message_list", + style: { + navigationBarTitleText: "消息", + enablePullDownRefresh: true, + navigationBarTextStyle: "white" + } + }, + { + path: "pages/talk/conversation", + style: { + navigationBarTitleText: "昵称", + enablePullDownRefresh: true, + navigationBarTextStyle: "white" + } + }, + { + path: "pages/talk/system", + style: { + navigationBarTitleText: "系统通知", + enablePullDownRefresh: true, + navigationBarTextStyle: "white" + } + }, + { + path: "pages/document/index", + style: { + navigationStyle: "custom", + enablePullDownRefresh: true + } + }, + { + path: "pages/document/detail", + style: { + navigationBarTitleText: "详情", + navigationBarTextStyle: "white" + } + }, + { + path: "pages/meeting/index", + style: { + navigationStyle: "custom" + } + }, + { + path: "pages/meeting/detail", + style: { + navigationBarTitleText: "详情", + enablePullDownRefresh: false, + navigationBarTextStyle: "white" + } + }, + { + path: "pages/leave/application", + style: { + navigationBarTitleText: "请假申请", + enablePullDownRefresh: false, + navigationBarTextStyle: "white" + } + }, + { + path: "pages/checkin/index", + style: { + navigationStyle: "custom" + } + }, + { + path: "pages/useredit/useredit", + style: { + navigationBarTitleText: "资料编辑", + navigationBarTextStyle: "white" + } + }, + { + path: "pages/useredit/address", + style: { + navigationBarTitleText: "地址", + enablePullDownRefresh: false, + navigationBarTextStyle: "white" + } + }, + { + path: "pages/useredit/add_address", + style: { + navigationBarTitleText: "添加地址", + enablePullDownRefresh: false, + navigationBarTextStyle: "white" + } + }, + { + path: "pages/useredit/addressbook", + style: { + navigationBarTitleText: "通讯录", + enablePullDownRefresh: false, + navigationBarTextStyle: "white" + } + }, + { + path: "pages/safe/manage", + style: { + navigationStyle: "custom" + } + }, + { + path: "pages/product/index", + style: { + navigationBarTitleText: "生产数据", + enablePullDownRefresh: false, + navigationBarTextStyle: "white" + } + }, + { + path: "pages/userlist/index", + style: { + navigationBarTitleText: "", + navigationBarTextStyle: "white" + } + }, + { + path: "pages/safe/detail", + style: { + navigationStyle: "custom" + } + }, + { + path: "pages/zhiban/index", + style: { + navigationBarTitleText: "值班信息", + navigationBarTextStyle: "white" + } + }, + { + path: "pages/task/self", + style: { + navigationBarTitleText: "本人发起", + navigationBarTextStyle: "white" + } + } + ]; + const tabBar = { + color: "#333333", + selectedColor: "#01508B", + borderStyle: "black", + backgroundColor: "#FFFFFF", + list: [ + { + text: "首页", + pagePath: "pages/tab/index", + iconPath: "static/tab/index1.png", + selectedIconPath: "static/tab/index2.png" + }, + { + text: "任务", + pagePath: "pages/task/todotask", + iconPath: "static/tab/office1.png", + selectedIconPath: "static/tab/office2.png" + }, + { + text: "办公", + pagePath: "pages/tab/office", + iconPath: "static/tab/product1.png", + selectedIconPath: "static/tab/product2.png" + }, + { + text: "我的", + pagePath: "pages/tab/my", + iconPath: "static/tab/user1.png", + selectedIconPath: "static/tab/user2.png" + } + ] + }; + const globalStyle = { + "app-plus": { + titleNView: { + backgroundImage: "linear-gradient(to left , #256FBC, #044D87)" + } + } + }; + const uniIdRouter = {}; + const e = { + pages, + tabBar, + globalStyle, + uniIdRouter + }; + var define_process_env_UNI_SECURE_NETWORK_CONFIG_default = []; + function t$1(e2) { + return e2 && e2.__esModule && Object.prototype.hasOwnProperty.call(e2, "default") ? e2.default : e2; + } + function n(e2, t2, n2) { + return e2(n2 = { path: t2, exports: {}, require: function(e3, t3) { + return function() { + throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs"); + }(null == t3 && n2.path); + } }, n2.exports), n2.exports; + } + var s = n(function(e2, t2) { + var n2; + e2.exports = (n2 = n2 || function(e3, t3) { + var n3 = Object.create || /* @__PURE__ */ function() { + function e4() { + } + return function(t4) { + var n4; + return e4.prototype = t4, n4 = new e4(), e4.prototype = null, n4; + }; + }(), s2 = {}, r2 = s2.lib = {}, i2 = r2.Base = { extend: function(e4) { + var t4 = n3(this); + return e4 && t4.mixIn(e4), t4.hasOwnProperty("init") && this.init !== t4.init || (t4.init = function() { + t4.$super.init.apply(this, arguments); + }), t4.init.prototype = t4, t4.$super = this, t4; + }, create: function() { + var e4 = this.extend(); + return e4.init.apply(e4, arguments), e4; + }, init: function() { + }, mixIn: function(e4) { + for (var t4 in e4) + e4.hasOwnProperty(t4) && (this[t4] = e4[t4]); + e4.hasOwnProperty("toString") && (this.toString = e4.toString); + }, clone: function() { + return this.init.prototype.extend(this); + } }, o2 = r2.WordArray = i2.extend({ init: function(e4, n4) { + e4 = this.words = e4 || [], this.sigBytes = n4 != t3 ? n4 : 4 * e4.length; + }, toString: function(e4) { + return (e4 || c2).stringify(this); + }, concat: function(e4) { + var t4 = this.words, n4 = e4.words, s3 = this.sigBytes, r3 = e4.sigBytes; + if (this.clamp(), s3 % 4) + for (var i3 = 0; i3 < r3; i3++) { + var o3 = n4[i3 >>> 2] >>> 24 - i3 % 4 * 8 & 255; + t4[s3 + i3 >>> 2] |= o3 << 24 - (s3 + i3) % 4 * 8; + } + else + for (i3 = 0; i3 < r3; i3 += 4) + t4[s3 + i3 >>> 2] = n4[i3 >>> 2]; + return this.sigBytes += r3, this; + }, clamp: function() { + var t4 = this.words, n4 = this.sigBytes; + t4[n4 >>> 2] &= 4294967295 << 32 - n4 % 4 * 8, t4.length = e3.ceil(n4 / 4); + }, clone: function() { + var e4 = i2.clone.call(this); + return e4.words = this.words.slice(0), e4; + }, random: function(t4) { + for (var n4, s3 = [], r3 = function(t5) { + t5 = t5; + var n5 = 987654321, s4 = 4294967295; + return function() { + var r4 = ((n5 = 36969 * (65535 & n5) + (n5 >> 16) & s4) << 16) + (t5 = 18e3 * (65535 & t5) + (t5 >> 16) & s4) & s4; + return r4 /= 4294967296, (r4 += 0.5) * (e3.random() > 0.5 ? 1 : -1); + }; + }, i3 = 0; i3 < t4; i3 += 4) { + var a3 = r3(4294967296 * (n4 || e3.random())); + n4 = 987654071 * a3(), s3.push(4294967296 * a3() | 0); + } + return new o2.init(s3, t4); + } }), a2 = s2.enc = {}, c2 = a2.Hex = { stringify: function(e4) { + for (var t4 = e4.words, n4 = e4.sigBytes, s3 = [], r3 = 0; r3 < n4; r3++) { + var i3 = t4[r3 >>> 2] >>> 24 - r3 % 4 * 8 & 255; + s3.push((i3 >>> 4).toString(16)), s3.push((15 & i3).toString(16)); + } + return s3.join(""); + }, parse: function(e4) { + for (var t4 = e4.length, n4 = [], s3 = 0; s3 < t4; s3 += 2) + n4[s3 >>> 3] |= parseInt(e4.substr(s3, 2), 16) << 24 - s3 % 8 * 4; + return new o2.init(n4, t4 / 2); + } }, u2 = a2.Latin1 = { stringify: function(e4) { + for (var t4 = e4.words, n4 = e4.sigBytes, s3 = [], r3 = 0; r3 < n4; r3++) { + var i3 = t4[r3 >>> 2] >>> 24 - r3 % 4 * 8 & 255; + s3.push(String.fromCharCode(i3)); + } + return s3.join(""); + }, parse: function(e4) { + for (var t4 = e4.length, n4 = [], s3 = 0; s3 < t4; s3++) + n4[s3 >>> 2] |= (255 & e4.charCodeAt(s3)) << 24 - s3 % 4 * 8; + return new o2.init(n4, t4); + } }, h2 = a2.Utf8 = { stringify: function(e4) { + try { + return decodeURIComponent(escape(u2.stringify(e4))); + } catch (e5) { + throw new Error("Malformed UTF-8 data"); + } + }, parse: function(e4) { + return u2.parse(unescape(encodeURIComponent(e4))); + } }, l2 = r2.BufferedBlockAlgorithm = i2.extend({ reset: function() { + this._data = new o2.init(), this._nDataBytes = 0; + }, _append: function(e4) { + "string" == typeof e4 && (e4 = h2.parse(e4)), this._data.concat(e4), this._nDataBytes += e4.sigBytes; + }, _process: function(t4) { + var n4 = this._data, s3 = n4.words, r3 = n4.sigBytes, i3 = this.blockSize, a3 = r3 / (4 * i3), c3 = (a3 = t4 ? e3.ceil(a3) : e3.max((0 | a3) - this._minBufferSize, 0)) * i3, u3 = e3.min(4 * c3, r3); + if (c3) { + for (var h3 = 0; h3 < c3; h3 += i3) + this._doProcessBlock(s3, h3); + var l3 = s3.splice(0, c3); + n4.sigBytes -= u3; + } + return new o2.init(l3, u3); + }, clone: function() { + var e4 = i2.clone.call(this); + return e4._data = this._data.clone(), e4; + }, _minBufferSize: 0 }); + r2.Hasher = l2.extend({ cfg: i2.extend(), init: function(e4) { + this.cfg = this.cfg.extend(e4), this.reset(); + }, reset: function() { + l2.reset.call(this), this._doReset(); + }, update: function(e4) { + return this._append(e4), this._process(), this; + }, finalize: function(e4) { + return e4 && this._append(e4), this._doFinalize(); + }, blockSize: 16, _createHelper: function(e4) { + return function(t4, n4) { + return new e4.init(n4).finalize(t4); + }; + }, _createHmacHelper: function(e4) { + return function(t4, n4) { + return new d2.HMAC.init(e4, n4).finalize(t4); + }; + } }); + var d2 = s2.algo = {}; + return s2; + }(Math), n2); + }), r = s, i = (n(function(e2, t2) { + var n2; + e2.exports = (n2 = r, function(e3) { + var t3 = n2, s2 = t3.lib, r2 = s2.WordArray, i2 = s2.Hasher, o2 = t3.algo, a2 = []; + !function() { + for (var t4 = 0; t4 < 64; t4++) + a2[t4] = 4294967296 * e3.abs(e3.sin(t4 + 1)) | 0; + }(); + var c2 = o2.MD5 = i2.extend({ _doReset: function() { + this._hash = new r2.init([1732584193, 4023233417, 2562383102, 271733878]); + }, _doProcessBlock: function(e4, t4) { + for (var n3 = 0; n3 < 16; n3++) { + var s3 = t4 + n3, r3 = e4[s3]; + e4[s3] = 16711935 & (r3 << 8 | r3 >>> 24) | 4278255360 & (r3 << 24 | r3 >>> 8); + } + var i3 = this._hash.words, o3 = e4[t4 + 0], c3 = e4[t4 + 1], p2 = e4[t4 + 2], f2 = e4[t4 + 3], g2 = e4[t4 + 4], m2 = e4[t4 + 5], y2 = e4[t4 + 6], _2 = e4[t4 + 7], w2 = e4[t4 + 8], v2 = e4[t4 + 9], I2 = e4[t4 + 10], S2 = e4[t4 + 11], b2 = e4[t4 + 12], k2 = e4[t4 + 13], A2 = e4[t4 + 14], P2 = e4[t4 + 15], T2 = i3[0], C2 = i3[1], x2 = i3[2], O2 = i3[3]; + T2 = u2(T2, C2, x2, O2, o3, 7, a2[0]), O2 = u2(O2, T2, C2, x2, c3, 12, a2[1]), x2 = u2(x2, O2, T2, C2, p2, 17, a2[2]), C2 = u2(C2, x2, O2, T2, f2, 22, a2[3]), T2 = u2(T2, C2, x2, O2, g2, 7, a2[4]), O2 = u2(O2, T2, C2, x2, m2, 12, a2[5]), x2 = u2(x2, O2, T2, C2, y2, 17, a2[6]), C2 = u2(C2, x2, O2, T2, _2, 22, a2[7]), T2 = u2(T2, C2, x2, O2, w2, 7, a2[8]), O2 = u2(O2, T2, C2, x2, v2, 12, a2[9]), x2 = u2(x2, O2, T2, C2, I2, 17, a2[10]), C2 = u2(C2, x2, O2, T2, S2, 22, a2[11]), T2 = u2(T2, C2, x2, O2, b2, 7, a2[12]), O2 = u2(O2, T2, C2, x2, k2, 12, a2[13]), x2 = u2(x2, O2, T2, C2, A2, 17, a2[14]), T2 = h2(T2, C2 = u2(C2, x2, O2, T2, P2, 22, a2[15]), x2, O2, c3, 5, a2[16]), O2 = h2(O2, T2, C2, x2, y2, 9, a2[17]), x2 = h2(x2, O2, T2, C2, S2, 14, a2[18]), C2 = h2(C2, x2, O2, T2, o3, 20, a2[19]), T2 = h2(T2, C2, x2, O2, m2, 5, a2[20]), O2 = h2(O2, T2, C2, x2, I2, 9, a2[21]), x2 = h2(x2, O2, T2, C2, P2, 14, a2[22]), C2 = h2(C2, x2, O2, T2, g2, 20, a2[23]), T2 = h2(T2, C2, x2, O2, v2, 5, a2[24]), O2 = h2(O2, T2, C2, x2, A2, 9, a2[25]), x2 = h2(x2, O2, T2, C2, f2, 14, a2[26]), C2 = h2(C2, x2, O2, T2, w2, 20, a2[27]), T2 = h2(T2, C2, x2, O2, k2, 5, a2[28]), O2 = h2(O2, T2, C2, x2, p2, 9, a2[29]), x2 = h2(x2, O2, T2, C2, _2, 14, a2[30]), T2 = l2(T2, C2 = h2(C2, x2, O2, T2, b2, 20, a2[31]), x2, O2, m2, 4, a2[32]), O2 = l2(O2, T2, C2, x2, w2, 11, a2[33]), x2 = l2(x2, O2, T2, C2, S2, 16, a2[34]), C2 = l2(C2, x2, O2, T2, A2, 23, a2[35]), T2 = l2(T2, C2, x2, O2, c3, 4, a2[36]), O2 = l2(O2, T2, C2, x2, g2, 11, a2[37]), x2 = l2(x2, O2, T2, C2, _2, 16, a2[38]), C2 = l2(C2, x2, O2, T2, I2, 23, a2[39]), T2 = l2(T2, C2, x2, O2, k2, 4, a2[40]), O2 = l2(O2, T2, C2, x2, o3, 11, a2[41]), x2 = l2(x2, O2, T2, C2, f2, 16, a2[42]), C2 = l2(C2, x2, O2, T2, y2, 23, a2[43]), T2 = l2(T2, C2, x2, O2, v2, 4, a2[44]), O2 = l2(O2, T2, C2, x2, b2, 11, a2[45]), x2 = l2(x2, O2, T2, C2, P2, 16, a2[46]), T2 = d2(T2, C2 = l2(C2, x2, O2, T2, p2, 23, a2[47]), x2, O2, o3, 6, a2[48]), O2 = d2(O2, T2, C2, x2, _2, 10, a2[49]), x2 = d2(x2, O2, T2, C2, A2, 15, a2[50]), C2 = d2(C2, x2, O2, T2, m2, 21, a2[51]), T2 = d2(T2, C2, x2, O2, b2, 6, a2[52]), O2 = d2(O2, T2, C2, x2, f2, 10, a2[53]), x2 = d2(x2, O2, T2, C2, I2, 15, a2[54]), C2 = d2(C2, x2, O2, T2, c3, 21, a2[55]), T2 = d2(T2, C2, x2, O2, w2, 6, a2[56]), O2 = d2(O2, T2, C2, x2, P2, 10, a2[57]), x2 = d2(x2, O2, T2, C2, y2, 15, a2[58]), C2 = d2(C2, x2, O2, T2, k2, 21, a2[59]), T2 = d2(T2, C2, x2, O2, g2, 6, a2[60]), O2 = d2(O2, T2, C2, x2, S2, 10, a2[61]), x2 = d2(x2, O2, T2, C2, p2, 15, a2[62]), C2 = d2(C2, x2, O2, T2, v2, 21, a2[63]), i3[0] = i3[0] + T2 | 0, i3[1] = i3[1] + C2 | 0, i3[2] = i3[2] + x2 | 0, i3[3] = i3[3] + O2 | 0; + }, _doFinalize: function() { + var t4 = this._data, n3 = t4.words, s3 = 8 * this._nDataBytes, r3 = 8 * t4.sigBytes; + n3[r3 >>> 5] |= 128 << 24 - r3 % 32; + var i3 = e3.floor(s3 / 4294967296), o3 = s3; + n3[15 + (r3 + 64 >>> 9 << 4)] = 16711935 & (i3 << 8 | i3 >>> 24) | 4278255360 & (i3 << 24 | i3 >>> 8), n3[14 + (r3 + 64 >>> 9 << 4)] = 16711935 & (o3 << 8 | o3 >>> 24) | 4278255360 & (o3 << 24 | o3 >>> 8), t4.sigBytes = 4 * (n3.length + 1), this._process(); + for (var a3 = this._hash, c3 = a3.words, u3 = 0; u3 < 4; u3++) { + var h3 = c3[u3]; + c3[u3] = 16711935 & (h3 << 8 | h3 >>> 24) | 4278255360 & (h3 << 24 | h3 >>> 8); + } + return a3; + }, clone: function() { + var e4 = i2.clone.call(this); + return e4._hash = this._hash.clone(), e4; + } }); + function u2(e4, t4, n3, s3, r3, i3, o3) { + var a3 = e4 + (t4 & n3 | ~t4 & s3) + r3 + o3; + return (a3 << i3 | a3 >>> 32 - i3) + t4; + } + function h2(e4, t4, n3, s3, r3, i3, o3) { + var a3 = e4 + (t4 & s3 | n3 & ~s3) + r3 + o3; + return (a3 << i3 | a3 >>> 32 - i3) + t4; + } + function l2(e4, t4, n3, s3, r3, i3, o3) { + var a3 = e4 + (t4 ^ n3 ^ s3) + r3 + o3; + return (a3 << i3 | a3 >>> 32 - i3) + t4; + } + function d2(e4, t4, n3, s3, r3, i3, o3) { + var a3 = e4 + (n3 ^ (t4 | ~s3)) + r3 + o3; + return (a3 << i3 | a3 >>> 32 - i3) + t4; + } + t3.MD5 = i2._createHelper(c2), t3.HmacMD5 = i2._createHmacHelper(c2); + }(Math), n2.MD5); + }), n(function(e2, t2) { + var n2; + e2.exports = (n2 = r, void function() { + var e3 = n2, t3 = e3.lib.Base, s2 = e3.enc.Utf8; + e3.algo.HMAC = t3.extend({ init: function(e4, t4) { + e4 = this._hasher = new e4.init(), "string" == typeof t4 && (t4 = s2.parse(t4)); + var n3 = e4.blockSize, r2 = 4 * n3; + t4.sigBytes > r2 && (t4 = e4.finalize(t4)), t4.clamp(); + for (var i2 = this._oKey = t4.clone(), o2 = this._iKey = t4.clone(), a2 = i2.words, c2 = o2.words, u2 = 0; u2 < n3; u2++) + a2[u2] ^= 1549556828, c2[u2] ^= 909522486; + i2.sigBytes = o2.sigBytes = r2, this.reset(); + }, reset: function() { + var e4 = this._hasher; + e4.reset(), e4.update(this._iKey); + }, update: function(e4) { + return this._hasher.update(e4), this; + }, finalize: function(e4) { + var t4 = this._hasher, n3 = t4.finalize(e4); + return t4.reset(), t4.finalize(this._oKey.clone().concat(n3)); + } }); + }()); + }), n(function(e2, t2) { + e2.exports = r.HmacMD5; + })), o = n(function(e2, t2) { + e2.exports = r.enc.Utf8; + }), a = n(function(e2, t2) { + var n2; + e2.exports = (n2 = r, function() { + var e3 = n2, t3 = e3.lib.WordArray; + function s2(e4, n3, s3) { + for (var r2 = [], i2 = 0, o2 = 0; o2 < n3; o2++) + if (o2 % 4) { + var a2 = s3[e4.charCodeAt(o2 - 1)] << o2 % 4 * 2, c2 = s3[e4.charCodeAt(o2)] >>> 6 - o2 % 4 * 2; + r2[i2 >>> 2] |= (a2 | c2) << 24 - i2 % 4 * 8, i2++; + } + return t3.create(r2, i2); + } + e3.enc.Base64 = { stringify: function(e4) { + var t4 = e4.words, n3 = e4.sigBytes, s3 = this._map; + e4.clamp(); + for (var r2 = [], i2 = 0; i2 < n3; i2 += 3) + for (var o2 = (t4[i2 >>> 2] >>> 24 - i2 % 4 * 8 & 255) << 16 | (t4[i2 + 1 >>> 2] >>> 24 - (i2 + 1) % 4 * 8 & 255) << 8 | t4[i2 + 2 >>> 2] >>> 24 - (i2 + 2) % 4 * 8 & 255, a2 = 0; a2 < 4 && i2 + 0.75 * a2 < n3; a2++) + r2.push(s3.charAt(o2 >>> 6 * (3 - a2) & 63)); + var c2 = s3.charAt(64); + if (c2) + for (; r2.length % 4; ) + r2.push(c2); + return r2.join(""); + }, parse: function(e4) { + var t4 = e4.length, n3 = this._map, r2 = this._reverseMap; + if (!r2) { + r2 = this._reverseMap = []; + for (var i2 = 0; i2 < n3.length; i2++) + r2[n3.charCodeAt(i2)] = i2; + } + var o2 = n3.charAt(64); + if (o2) { + var a2 = e4.indexOf(o2); + -1 !== a2 && (t4 = a2); + } + return s2(e4, t4, r2); + }, _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" }; + }(), n2.enc.Base64); + }); + const c = "FUNCTION", u = "OBJECT", h = "CLIENT_DB", l = "pending", d = "fulfilled", p = "rejected"; + function f(e2) { + return Object.prototype.toString.call(e2).slice(8, -1).toLowerCase(); + } + function g(e2) { + return "object" === f(e2); + } + function m(e2) { + return "function" == typeof e2; + } + function y(e2) { + return function() { + try { + return e2.apply(e2, arguments); + } catch (e3) { + console.error(e3); + } + }; + } + const _ = "REJECTED", w = "NOT_PENDING"; + class v { + constructor({ createPromise: e2, retryRule: t2 = _ } = {}) { + this.createPromise = e2, this.status = null, this.promise = null, this.retryRule = t2; + } + get needRetry() { + if (!this.status) + return true; + switch (this.retryRule) { + case _: + return this.status === p; + case w: + return this.status !== l; + } + } + exec() { + return this.needRetry ? (this.status = l, this.promise = this.createPromise().then((e2) => (this.status = d, Promise.resolve(e2)), (e2) => (this.status = p, Promise.reject(e2))), this.promise) : this.promise; + } + } + function I(e2) { + return e2 && "string" == typeof e2 ? JSON.parse(e2) : e2; + } + const S = true, b = "app", A = I(define_process_env_UNI_SECURE_NETWORK_CONFIG_default), P = b, T = I('{\n "address": [\n "127.0.0.1",\n "10.75.166.174"\n ],\n "debugPort": 9000,\n "initialLaunchType": "local",\n "servePort": 7000,\n "skipFiles": [\n "/**",\n "D:/HBuilderX/plugins/unicloud/**/*.js"\n ]\n}\n'), C = I('[{"provider":"aliyun","spaceName":"szcx-app","spaceId":"mp-a5a4405f-df9a-4c27-b553-dca803accfbc","clientSecret":"vYZ7Nv/mnOB6vUulLJ4B7Q==","endpoint":"https://api.next.bspapp.com"}]') || []; + let O = ""; + try { + O = "__UNI__9F097F0"; + } catch (e2) { + } + let E = {}; + function L(e2, t2 = {}) { + var n2, s2; + return n2 = E, s2 = e2, Object.prototype.hasOwnProperty.call(n2, s2) || (E[e2] = t2), E[e2]; + } + E = uni._globalUniCloudObj ? uni._globalUniCloudObj : uni._globalUniCloudObj = {}; + const R = ["invoke", "success", "fail", "complete"], U = L("_globalUniCloudInterceptor"); + function N(e2, t2) { + U[e2] || (U[e2] = {}), g(t2) && Object.keys(t2).forEach((n2) => { + R.indexOf(n2) > -1 && function(e3, t3, n3) { + let s2 = U[e3][t3]; + s2 || (s2 = U[e3][t3] = []), -1 === s2.indexOf(n3) && m(n3) && s2.push(n3); + }(e2, n2, t2[n2]); + }); + } + function D(e2, t2) { + U[e2] || (U[e2] = {}), g(t2) ? Object.keys(t2).forEach((n2) => { + R.indexOf(n2) > -1 && function(e3, t3, n3) { + const s2 = U[e3][t3]; + if (!s2) + return; + const r2 = s2.indexOf(n3); + r2 > -1 && s2.splice(r2, 1); + }(e2, n2, t2[n2]); + }) : delete U[e2]; + } + function M(e2, t2) { + return e2 && 0 !== e2.length ? e2.reduce((e3, n2) => e3.then(() => n2(t2)), Promise.resolve()) : Promise.resolve(); + } + function q(e2, t2) { + return U[e2] && U[e2][t2] || []; + } + function F(e2) { + N("callObject", e2); + } + const K = L("_globalUniCloudListener"), j = "response", $ = "needLogin", B = "refreshToken", W = "clientdb", H = "cloudfunction", z = "cloudobject"; + function J(e2) { + return K[e2] || (K[e2] = []), K[e2]; + } + function G(e2, t2) { + const n2 = J(e2); + n2.includes(t2) || n2.push(t2); + } + function V(e2, t2) { + const n2 = J(e2), s2 = n2.indexOf(t2); + -1 !== s2 && n2.splice(s2, 1); + } + function Y(e2, t2) { + const n2 = J(e2); + for (let e3 = 0; e3 < n2.length; e3++) { + (0, n2[e3])(t2); + } + } + let Q, X = false; + function Z() { + return Q || (Q = new Promise((e2) => { + X && e2(), function t2() { + if ("function" == typeof getCurrentPages) { + const t3 = getCurrentPages(); + t3 && t3[0] && (X = true, e2()); + } + X || setTimeout(() => { + t2(); + }, 30); + }(); + }), Q); + } + function ee(e2) { + const t2 = {}; + for (const n2 in e2) { + const s2 = e2[n2]; + m(s2) && (t2[n2] = y(s2)); + } + return t2; + } + class te extends Error { + constructor(e2) { + super(e2.message), this.errMsg = e2.message || e2.errMsg || "unknown system error", this.code = this.errCode = e2.code || e2.errCode || "SYSTEM_ERROR", this.errSubject = this.subject = e2.subject || e2.errSubject, this.cause = e2.cause, this.requestId = e2.requestId; + } + toJson(e2 = 0) { + if (!(e2 >= 10)) + return e2++, { errCode: this.errCode, errMsg: this.errMsg, errSubject: this.errSubject, cause: this.cause && this.cause.toJson ? this.cause.toJson(e2) : this.cause }; + } + } + var ne = { request: (e2) => uni.request(e2), uploadFile: (e2) => uni.uploadFile(e2), setStorageSync: (e2, t2) => uni.setStorageSync(e2, t2), getStorageSync: (e2) => uni.getStorageSync(e2), removeStorageSync: (e2) => uni.removeStorageSync(e2), clearStorageSync: () => uni.clearStorageSync() }; + function se(e2) { + return e2 && se(e2.__v_raw) || e2; + } + function re() { + return { token: ne.getStorageSync("uni_id_token") || ne.getStorageSync("uniIdToken"), tokenExpired: ne.getStorageSync("uni_id_token_expired") }; + } + function ie({ token: e2, tokenExpired: t2 } = {}) { + e2 && ne.setStorageSync("uni_id_token", e2), t2 && ne.setStorageSync("uni_id_token_expired", t2); + } + let oe, ae; + function ce() { + return oe || (oe = uni.getSystemInfoSync()), oe; + } + function ue() { + let e2, t2; + try { + if (uni.getLaunchOptionsSync) { + if (uni.getLaunchOptionsSync.toString().indexOf("not yet implemented") > -1) + return; + const { scene: n2, channel: s2 } = uni.getLaunchOptionsSync(); + e2 = s2, t2 = n2; + } + } catch (e3) { + } + return { channel: e2, scene: t2 }; + } + function he() { + const e2 = uni.getLocale && uni.getLocale() || "en"; + if (ae) + return { ...ae, locale: e2, LOCALE: e2 }; + const t2 = ce(), { deviceId: n2, osName: s2, uniPlatform: r2, appId: i2 } = t2, o2 = ["pixelRatio", "brand", "model", "system", "language", "version", "platform", "host", "SDKVersion", "swanNativeVersion", "app", "AppPlatform", "fontSizeSetting"]; + for (let e3 = 0; e3 < o2.length; e3++) { + delete t2[o2[e3]]; + } + return ae = { PLATFORM: r2, OS: s2, APPID: i2, DEVICEID: n2, ...ue(), ...t2 }, { ...ae, locale: e2, LOCALE: e2 }; + } + var le = { sign: function(e2, t2) { + let n2 = ""; + return Object.keys(e2).sort().forEach(function(t3) { + e2[t3] && (n2 = n2 + "&" + t3 + "=" + e2[t3]); + }), n2 = n2.slice(1), i(n2, t2).toString(); + }, wrappedRequest: function(e2, t2) { + return new Promise((n2, s2) => { + t2(Object.assign(e2, { complete(e3) { + e3 || (e3 = {}); + const t3 = e3.data && e3.data.header && e3.data.header["x-serverless-request-id"] || e3.header && e3.header["request-id"]; + if (!e3.statusCode || e3.statusCode >= 400) { + const n3 = e3.data && e3.data.error && e3.data.error.code || "SYS_ERR", r3 = e3.data && e3.data.error && e3.data.error.message || e3.errMsg || "request:fail"; + return s2(new te({ code: n3, message: r3, requestId: t3 })); + } + const r2 = e3.data; + if (r2.error) + return s2(new te({ code: r2.error.code, message: r2.error.message, requestId: t3 })); + r2.result = r2.data, r2.requestId = t3, delete r2.data, n2(r2); + } })); + }); + }, toBase64: function(e2) { + return a.stringify(o.parse(e2)); + } }; + var de = class { + constructor(e2) { + ["spaceId", "clientSecret"].forEach((t2) => { + if (!Object.prototype.hasOwnProperty.call(e2, t2)) + throw new Error(`${t2} required`); + }), this.config = Object.assign({}, { endpoint: 0 === e2.spaceId.indexOf("mp-") ? "https://api.next.bspapp.com" : "https://api.bspapp.com" }, e2), this.config.provider = "aliyun", this.config.requestUrl = this.config.endpoint + "/client", this.config.envType = this.config.envType || "public", this.config.accessTokenKey = "access_token_" + this.config.spaceId, this.adapter = ne, this._getAccessTokenPromiseHub = new v({ createPromise: () => this.requestAuth(this.setupRequest({ method: "serverless.auth.user.anonymousAuthorize", params: "{}" }, "auth")).then((e3) => { + if (!e3.result || !e3.result.accessToken) + throw new te({ code: "AUTH_FAILED", message: "获取accessToken失败" }); + this.setAccessToken(e3.result.accessToken); + }), retryRule: w }); + } + get hasAccessToken() { + return !!this.accessToken; + } + setAccessToken(e2) { + this.accessToken = e2; + } + requestWrapped(e2) { + return le.wrappedRequest(e2, this.adapter.request); + } + requestAuth(e2) { + return this.requestWrapped(e2); + } + request(e2, t2) { + return Promise.resolve().then(() => this.hasAccessToken ? t2 ? this.requestWrapped(e2) : this.requestWrapped(e2).catch((t3) => new Promise((e3, n2) => { + !t3 || "GATEWAY_INVALID_TOKEN" !== t3.code && "InvalidParameter.InvalidToken" !== t3.code ? n2(t3) : e3(); + }).then(() => this.getAccessToken()).then(() => { + const t4 = this.rebuildRequest(e2); + return this.request(t4, true); + })) : this.getAccessToken().then(() => { + const t3 = this.rebuildRequest(e2); + return this.request(t3, true); + })); + } + rebuildRequest(e2) { + const t2 = Object.assign({}, e2); + return t2.data.token = this.accessToken, t2.header["x-basement-token"] = this.accessToken, t2.header["x-serverless-sign"] = le.sign(t2.data, this.config.clientSecret), t2; + } + setupRequest(e2, t2) { + const n2 = Object.assign({}, e2, { spaceId: this.config.spaceId, timestamp: Date.now() }), s2 = { "Content-Type": "application/json" }; + return "auth" !== t2 && (n2.token = this.accessToken, s2["x-basement-token"] = this.accessToken), s2["x-serverless-sign"] = le.sign(n2, this.config.clientSecret), { url: this.config.requestUrl, method: "POST", data: n2, dataType: "json", header: s2 }; + } + getAccessToken() { + return this._getAccessTokenPromiseHub.exec(); + } + async authorize() { + await this.getAccessToken(); + } + callFunction(e2) { + const t2 = { method: "serverless.function.runtime.invoke", params: JSON.stringify({ functionTarget: e2.name, functionArgs: e2.data || {} }) }; + return this.request(this.setupRequest(t2)); + } + getOSSUploadOptionsFromPath(e2) { + const t2 = { method: "serverless.file.resource.generateProximalSign", params: JSON.stringify(e2) }; + return this.request(this.setupRequest(t2)); + } + uploadFileToOSS({ url: e2, formData: t2, name: n2, filePath: s2, fileType: r2, onUploadProgress: i2 }) { + return new Promise((o2, a2) => { + const c2 = this.adapter.uploadFile({ url: e2, formData: t2, name: n2, filePath: s2, fileType: r2, header: { "X-OSS-server-side-encrpytion": "AES256" }, success(e3) { + e3 && e3.statusCode < 400 ? o2(e3) : a2(new te({ code: "UPLOAD_FAILED", message: "文件上传失败" })); + }, fail(e3) { + a2(new te({ code: e3.code || "UPLOAD_FAILED", message: e3.message || e3.errMsg || "文件上传失败" })); + } }); + "function" == typeof i2 && c2 && "function" == typeof c2.onProgressUpdate && c2.onProgressUpdate((e3) => { + i2({ loaded: e3.totalBytesSent, total: e3.totalBytesExpectedToSend }); + }); + }); + } + reportOSSUpload(e2) { + const t2 = { method: "serverless.file.resource.report", params: JSON.stringify(e2) }; + return this.request(this.setupRequest(t2)); + } + async uploadFile({ filePath: e2, cloudPath: t2, fileType: n2 = "image", cloudPathAsRealPath: s2 = false, onUploadProgress: r2, config: i2 }) { + if ("string" !== f(t2)) + throw new te({ code: "INVALID_PARAM", message: "cloudPath必须为字符串类型" }); + if (!(t2 = t2.trim())) + throw new te({ code: "INVALID_PARAM", message: "cloudPath不可为空" }); + if (/:\/\//.test(t2)) + throw new te({ code: "INVALID_PARAM", message: "cloudPath不合法" }); + const o2 = i2 && i2.envType || this.config.envType; + if (s2 && ("/" !== t2[0] && (t2 = "/" + t2), t2.indexOf("\\") > -1)) + throw new te({ code: "INVALID_PARAM", message: "使用cloudPath作为路径时,cloudPath不可包含“\\”" }); + const a2 = (await this.getOSSUploadOptionsFromPath({ env: o2, filename: s2 ? t2.split("/").pop() : t2, fileId: s2 ? t2 : void 0 })).result, c2 = "https://" + a2.cdnDomain + "/" + a2.ossPath, { securityToken: u2, accessKeyId: h2, signature: l2, host: d2, ossPath: p2, id: g2, policy: m2, ossCallbackUrl: y2 } = a2, _2 = { "Cache-Control": "max-age=2592000", "Content-Disposition": "attachment", OSSAccessKeyId: h2, Signature: l2, host: d2, id: g2, key: p2, policy: m2, success_action_status: 200 }; + if (u2 && (_2["x-oss-security-token"] = u2), y2) { + const e3 = JSON.stringify({ callbackUrl: y2, callbackBody: JSON.stringify({ fileId: g2, spaceId: this.config.spaceId }), callbackBodyType: "application/json" }); + _2.callback = le.toBase64(e3); + } + const w2 = { url: "https://" + a2.host, formData: _2, fileName: "file", name: "file", filePath: e2, fileType: n2 }; + if (await this.uploadFileToOSS(Object.assign({}, w2, { onUploadProgress: r2 })), y2) + return { success: true, filePath: e2, fileID: c2 }; + if ((await this.reportOSSUpload({ id: g2 })).success) + return { success: true, filePath: e2, fileID: c2 }; + throw new te({ code: "UPLOAD_FAILED", message: "文件上传失败" }); + } + getTempFileURL({ fileList: e2 } = {}) { + return new Promise((t2, n2) => { + Array.isArray(e2) && 0 !== e2.length || n2(new te({ code: "INVALID_PARAM", message: "fileList的元素必须是非空的字符串" })), t2({ fileList: e2.map((e3) => ({ fileID: e3, tempFileURL: e3 })) }); + }); + } + async getFileInfo({ fileList: e2 } = {}) { + if (!Array.isArray(e2) || 0 === e2.length) + throw new te({ code: "INVALID_PARAM", message: "fileList的元素必须是非空的字符串" }); + const t2 = { method: "serverless.file.resource.info", params: JSON.stringify({ id: e2.map((e3) => e3.split("?")[0]).join(",") }) }; + return { fileList: (await this.request(this.setupRequest(t2))).result }; + } + }; + var pe = { init(e2) { + const t2 = new de(e2), n2 = { signInAnonymously: function() { + return t2.authorize(); + }, getLoginState: function() { + return Promise.resolve(false); + } }; + return t2.auth = function() { + return n2; + }, t2.customAuth = t2.auth, t2; + } }; + const fe = "undefined" != typeof location && "http:" === location.protocol ? "http:" : "https:"; + var ge; + !function(e2) { + e2.local = "local", e2.none = "none", e2.session = "session"; + }(ge || (ge = {})); + var me = function() { + }, ye = n(function(e2, t2) { + var n2; + e2.exports = (n2 = r, function(e3) { + var t3 = n2, s2 = t3.lib, r2 = s2.WordArray, i2 = s2.Hasher, o2 = t3.algo, a2 = [], c2 = []; + !function() { + function t4(t5) { + for (var n4 = e3.sqrt(t5), s4 = 2; s4 <= n4; s4++) + if (!(t5 % s4)) + return false; + return true; + } + function n3(e4) { + return 4294967296 * (e4 - (0 | e4)) | 0; + } + for (var s3 = 2, r3 = 0; r3 < 64; ) + t4(s3) && (r3 < 8 && (a2[r3] = n3(e3.pow(s3, 0.5))), c2[r3] = n3(e3.pow(s3, 1 / 3)), r3++), s3++; + }(); + var u2 = [], h2 = o2.SHA256 = i2.extend({ _doReset: function() { + this._hash = new r2.init(a2.slice(0)); + }, _doProcessBlock: function(e4, t4) { + for (var n3 = this._hash.words, s3 = n3[0], r3 = n3[1], i3 = n3[2], o3 = n3[3], a3 = n3[4], h3 = n3[5], l2 = n3[6], d2 = n3[7], p2 = 0; p2 < 64; p2++) { + if (p2 < 16) + u2[p2] = 0 | e4[t4 + p2]; + else { + var f2 = u2[p2 - 15], g2 = (f2 << 25 | f2 >>> 7) ^ (f2 << 14 | f2 >>> 18) ^ f2 >>> 3, m2 = u2[p2 - 2], y2 = (m2 << 15 | m2 >>> 17) ^ (m2 << 13 | m2 >>> 19) ^ m2 >>> 10; + u2[p2] = g2 + u2[p2 - 7] + y2 + u2[p2 - 16]; + } + var _2 = s3 & r3 ^ s3 & i3 ^ r3 & i3, w2 = (s3 << 30 | s3 >>> 2) ^ (s3 << 19 | s3 >>> 13) ^ (s3 << 10 | s3 >>> 22), v2 = d2 + ((a3 << 26 | a3 >>> 6) ^ (a3 << 21 | a3 >>> 11) ^ (a3 << 7 | a3 >>> 25)) + (a3 & h3 ^ ~a3 & l2) + c2[p2] + u2[p2]; + d2 = l2, l2 = h3, h3 = a3, a3 = o3 + v2 | 0, o3 = i3, i3 = r3, r3 = s3, s3 = v2 + (w2 + _2) | 0; + } + n3[0] = n3[0] + s3 | 0, n3[1] = n3[1] + r3 | 0, n3[2] = n3[2] + i3 | 0, n3[3] = n3[3] + o3 | 0, n3[4] = n3[4] + a3 | 0, n3[5] = n3[5] + h3 | 0, n3[6] = n3[6] + l2 | 0, n3[7] = n3[7] + d2 | 0; + }, _doFinalize: function() { + var t4 = this._data, n3 = t4.words, s3 = 8 * this._nDataBytes, r3 = 8 * t4.sigBytes; + return n3[r3 >>> 5] |= 128 << 24 - r3 % 32, n3[14 + (r3 + 64 >>> 9 << 4)] = e3.floor(s3 / 4294967296), n3[15 + (r3 + 64 >>> 9 << 4)] = s3, t4.sigBytes = 4 * n3.length, this._process(), this._hash; + }, clone: function() { + var e4 = i2.clone.call(this); + return e4._hash = this._hash.clone(), e4; + } }); + t3.SHA256 = i2._createHelper(h2), t3.HmacSHA256 = i2._createHmacHelper(h2); + }(Math), n2.SHA256); + }), _e = ye, we = n(function(e2, t2) { + e2.exports = r.HmacSHA256; + }); + const ve = () => { + let e2; + if (!Promise) { + e2 = () => { + }, e2.promise = {}; + const t3 = () => { + throw new te({ message: 'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.' }); + }; + return Object.defineProperty(e2.promise, "then", { get: t3 }), Object.defineProperty(e2.promise, "catch", { get: t3 }), e2; + } + const t2 = new Promise((t3, n2) => { + e2 = (e3, s2) => e3 ? n2(e3) : t3(s2); + }); + return e2.promise = t2, e2; + }; + function Ie(e2) { + return void 0 === e2; + } + function Se(e2) { + return "[object Null]" === Object.prototype.toString.call(e2); + } + var be; + function ke(e2) { + const t2 = (n2 = e2, "[object Array]" === Object.prototype.toString.call(n2) ? e2 : [e2]); + var n2; + for (const e3 of t2) { + const { isMatch: t3, genAdapter: n3, runtime: s2 } = e3; + if (t3()) + return { adapter: n3(), runtime: s2 }; + } + } + !function(e2) { + e2.WEB = "web", e2.WX_MP = "wx_mp"; + }(be || (be = {})); + const Ae = { adapter: null, runtime: void 0 }, Pe = ["anonymousUuidKey"]; + class Te extends me { + constructor() { + super(), Ae.adapter.root.tcbObject || (Ae.adapter.root.tcbObject = {}); + } + setItem(e2, t2) { + Ae.adapter.root.tcbObject[e2] = t2; + } + getItem(e2) { + return Ae.adapter.root.tcbObject[e2]; + } + removeItem(e2) { + delete Ae.adapter.root.tcbObject[e2]; + } + clear() { + delete Ae.adapter.root.tcbObject; + } + } + function Ce(e2, t2) { + switch (e2) { + case "local": + return t2.localStorage || new Te(); + case "none": + return new Te(); + default: + return t2.sessionStorage || new Te(); + } + } + class xe { + constructor(e2) { + if (!this._storage) { + this._persistence = Ae.adapter.primaryStorage || e2.persistence, this._storage = Ce(this._persistence, Ae.adapter); + const t2 = `access_token_${e2.env}`, n2 = `access_token_expire_${e2.env}`, s2 = `refresh_token_${e2.env}`, r2 = `anonymous_uuid_${e2.env}`, i2 = `login_type_${e2.env}`, o2 = `user_info_${e2.env}`; + this.keys = { accessTokenKey: t2, accessTokenExpireKey: n2, refreshTokenKey: s2, anonymousUuidKey: r2, loginTypeKey: i2, userInfoKey: o2 }; + } + } + updatePersistence(e2) { + if (e2 === this._persistence) + return; + const t2 = "local" === this._persistence; + this._persistence = e2; + const n2 = Ce(e2, Ae.adapter); + for (const e3 in this.keys) { + const s2 = this.keys[e3]; + if (t2 && Pe.includes(e3)) + continue; + const r2 = this._storage.getItem(s2); + Ie(r2) || Se(r2) || (n2.setItem(s2, r2), this._storage.removeItem(s2)); + } + this._storage = n2; + } + setStore(e2, t2, n2) { + if (!this._storage) + return; + const s2 = { version: n2 || "localCachev1", content: t2 }, r2 = JSON.stringify(s2); + try { + this._storage.setItem(e2, r2); + } catch (e3) { + throw e3; + } + } + getStore(e2, t2) { + try { + if (!this._storage) + return; + } catch (e3) { + return ""; + } + t2 = t2 || "localCachev1"; + const n2 = this._storage.getItem(e2); + if (!n2) + return ""; + if (n2.indexOf(t2) >= 0) { + return JSON.parse(n2).content; + } + return ""; + } + removeStore(e2) { + this._storage.removeItem(e2); + } + } + const Oe = {}, Ee = {}; + function Le(e2) { + return Oe[e2]; + } + class Re { + constructor(e2, t2) { + this.data = t2 || null, this.name = e2; + } + } + class Ue extends Re { + constructor(e2, t2) { + super("error", { error: e2, data: t2 }), this.error = e2; + } + } + const Ne = new class { + constructor() { + this._listeners = {}; + } + on(e2, t2) { + return function(e3, t3, n2) { + n2[e3] = n2[e3] || [], n2[e3].push(t3); + }(e2, t2, this._listeners), this; + } + off(e2, t2) { + return function(e3, t3, n2) { + if (n2 && n2[e3]) { + const s2 = n2[e3].indexOf(t3); + -1 !== s2 && n2[e3].splice(s2, 1); + } + }(e2, t2, this._listeners), this; + } + fire(e2, t2) { + if (e2 instanceof Ue) + return console.error(e2.error), this; + const n2 = "string" == typeof e2 ? new Re(e2, t2 || {}) : e2; + const s2 = n2.name; + if (this._listens(s2)) { + n2.target = this; + const e3 = this._listeners[s2] ? [...this._listeners[s2]] : []; + for (const t3 of e3) + t3.call(this, n2); + } + return this; + } + _listens(e2) { + return this._listeners[e2] && this._listeners[e2].length > 0; + } + }(); + function De(e2, t2) { + Ne.on(e2, t2); + } + function Me(e2, t2 = {}) { + Ne.fire(e2, t2); + } + function qe(e2, t2) { + Ne.off(e2, t2); + } + const Fe = "loginStateChanged", Ke = "loginStateExpire", je = "loginTypeChanged", $e = "anonymousConverted", Be = "refreshAccessToken"; + var We; + !function(e2) { + e2.ANONYMOUS = "ANONYMOUS", e2.WECHAT = "WECHAT", e2.WECHAT_PUBLIC = "WECHAT-PUBLIC", e2.WECHAT_OPEN = "WECHAT-OPEN", e2.CUSTOM = "CUSTOM", e2.EMAIL = "EMAIL", e2.USERNAME = "USERNAME", e2.NULL = "NULL"; + }(We || (We = {})); + const He = ["auth.getJwt", "auth.logout", "auth.signInWithTicket", "auth.signInAnonymously", "auth.signIn", "auth.fetchAccessTokenWithRefreshToken", "auth.signUpWithEmailAndPassword", "auth.activateEndUserMail", "auth.sendPasswordResetEmail", "auth.resetPasswordWithToken", "auth.isUsernameRegistered"], ze = { "X-SDK-Version": "1.3.5" }; + function Je(e2, t2, n2) { + const s2 = e2[t2]; + e2[t2] = function(t3) { + const r2 = {}, i2 = {}; + n2.forEach((n3) => { + const { data: s3, headers: o3 } = n3.call(e2, t3); + Object.assign(r2, s3), Object.assign(i2, o3); + }); + const o2 = t3.data; + return o2 && (() => { + var e3; + if (e3 = o2, "[object FormData]" !== Object.prototype.toString.call(e3)) + t3.data = { ...o2, ...r2 }; + else + for (const e4 in r2) + o2.append(e4, r2[e4]); + })(), t3.headers = { ...t3.headers || {}, ...i2 }, s2.call(e2, t3); + }; + } + function Ge() { + const e2 = Math.random().toString(16).slice(2); + return { data: { seqId: e2 }, headers: { ...ze, "x-seqid": e2 } }; + } + class Ve { + constructor(e2 = {}) { + var t2; + this.config = e2, this._reqClass = new Ae.adapter.reqClass({ timeout: this.config.timeout, timeoutMsg: `请求在${this.config.timeout / 1e3}s内未完成,已中断`, restrictedMethods: ["post"] }), this._cache = Le(this.config.env), this._localCache = (t2 = this.config.env, Ee[t2]), Je(this._reqClass, "post", [Ge]), Je(this._reqClass, "upload", [Ge]), Je(this._reqClass, "download", [Ge]); + } + async post(e2) { + return await this._reqClass.post(e2); + } + async upload(e2) { + return await this._reqClass.upload(e2); + } + async download(e2) { + return await this._reqClass.download(e2); + } + async refreshAccessToken() { + let e2, t2; + this._refreshAccessTokenPromise || (this._refreshAccessTokenPromise = this._refreshAccessToken()); + try { + e2 = await this._refreshAccessTokenPromise; + } catch (e3) { + t2 = e3; + } + if (this._refreshAccessTokenPromise = null, this._shouldRefreshAccessTokenHook = null, t2) + throw t2; + return e2; + } + async _refreshAccessToken() { + const { accessTokenKey: e2, accessTokenExpireKey: t2, refreshTokenKey: n2, loginTypeKey: s2, anonymousUuidKey: r2 } = this._cache.keys; + this._cache.removeStore(e2), this._cache.removeStore(t2); + let i2 = this._cache.getStore(n2); + if (!i2) + throw new te({ message: "未登录CloudBase" }); + const o2 = { refresh_token: i2 }, a2 = await this.request("auth.fetchAccessTokenWithRefreshToken", o2); + if (a2.data.code) { + const { code: e3 } = a2.data; + if ("SIGN_PARAM_INVALID" === e3 || "REFRESH_TOKEN_EXPIRED" === e3 || "INVALID_REFRESH_TOKEN" === e3) { + if (this._cache.getStore(s2) === We.ANONYMOUS && "INVALID_REFRESH_TOKEN" === e3) { + const e4 = this._cache.getStore(r2), t3 = this._cache.getStore(n2), s3 = await this.send("auth.signInAnonymously", { anonymous_uuid: e4, refresh_token: t3 }); + return this.setRefreshToken(s3.refresh_token), this._refreshAccessToken(); + } + Me(Ke), this._cache.removeStore(n2); + } + throw new te({ code: a2.data.code, message: `刷新access token失败:${a2.data.code}` }); + } + if (a2.data.access_token) + return Me(Be), this._cache.setStore(e2, a2.data.access_token), this._cache.setStore(t2, a2.data.access_token_expire + Date.now()), { accessToken: a2.data.access_token, accessTokenExpire: a2.data.access_token_expire }; + a2.data.refresh_token && (this._cache.removeStore(n2), this._cache.setStore(n2, a2.data.refresh_token), this._refreshAccessToken()); + } + async getAccessToken() { + const { accessTokenKey: e2, accessTokenExpireKey: t2, refreshTokenKey: n2 } = this._cache.keys; + if (!this._cache.getStore(n2)) + throw new te({ message: "refresh token不存在,登录状态异常" }); + let s2 = this._cache.getStore(e2), r2 = this._cache.getStore(t2), i2 = true; + return this._shouldRefreshAccessTokenHook && !await this._shouldRefreshAccessTokenHook(s2, r2) && (i2 = false), (!s2 || !r2 || r2 < Date.now()) && i2 ? this.refreshAccessToken() : { accessToken: s2, accessTokenExpire: r2 }; + } + async request(e2, t2, n2) { + const s2 = `x-tcb-trace_${this.config.env}`; + let r2 = "application/x-www-form-urlencoded"; + const i2 = { action: e2, env: this.config.env, dataVersion: "2019-08-16", ...t2 }; + if (-1 === He.indexOf(e2)) { + const { refreshTokenKey: e3 } = this._cache.keys; + this._cache.getStore(e3) && (i2.access_token = (await this.getAccessToken()).accessToken); + } + let o2; + if ("storage.uploadFile" === e2) { + o2 = new FormData(); + for (let e3 in o2) + o2.hasOwnProperty(e3) && void 0 !== o2[e3] && o2.append(e3, i2[e3]); + r2 = "multipart/form-data"; + } else { + r2 = "application/json", o2 = {}; + for (let e3 in i2) + void 0 !== i2[e3] && (o2[e3] = i2[e3]); + } + let a2 = { headers: { "content-type": r2 } }; + n2 && n2.onUploadProgress && (a2.onUploadProgress = n2.onUploadProgress); + const c2 = this._localCache.getStore(s2); + c2 && (a2.headers["X-TCB-Trace"] = c2); + const { parse: u2, inQuery: h2, search: l2 } = t2; + let d2 = { env: this.config.env }; + u2 && (d2.parse = true), h2 && (d2 = { ...h2, ...d2 }); + let p2 = function(e3, t3, n3 = {}) { + const s3 = /\?/.test(t3); + let r3 = ""; + for (let e4 in n3) + "" === r3 ? !s3 && (t3 += "?") : r3 += "&", r3 += `${e4}=${encodeURIComponent(n3[e4])}`; + return /^http(s)?\:\/\//.test(t3 += r3) ? t3 : `${e3}${t3}`; + }(fe, "//tcb-api.tencentcloudapi.com/web", d2); + l2 && (p2 += l2); + const f2 = await this.post({ url: p2, data: o2, ...a2 }), g2 = f2.header && f2.header["x-tcb-trace"]; + if (g2 && this._localCache.setStore(s2, g2), 200 !== Number(f2.status) && 200 !== Number(f2.statusCode) || !f2.data) + throw new te({ code: "NETWORK_ERROR", message: "network request error" }); + return f2; + } + async send(e2, t2 = {}) { + const n2 = await this.request(e2, t2, { onUploadProgress: t2.onUploadProgress }); + if ("ACCESS_TOKEN_EXPIRED" === n2.data.code && -1 === He.indexOf(e2)) { + await this.refreshAccessToken(); + const n3 = await this.request(e2, t2, { onUploadProgress: t2.onUploadProgress }); + if (n3.data.code) + throw new te({ code: n3.data.code, message: n3.data.message }); + return n3.data; + } + if (n2.data.code) + throw new te({ code: n2.data.code, message: n2.data.message }); + return n2.data; + } + setRefreshToken(e2) { + const { accessTokenKey: t2, accessTokenExpireKey: n2, refreshTokenKey: s2 } = this._cache.keys; + this._cache.removeStore(t2), this._cache.removeStore(n2), this._cache.setStore(s2, e2); + } + } + const Ye = {}; + function Qe(e2) { + return Ye[e2]; + } + class Xe { + constructor(e2) { + this.config = e2, this._cache = Le(e2.env), this._request = Qe(e2.env); + } + setRefreshToken(e2) { + const { accessTokenKey: t2, accessTokenExpireKey: n2, refreshTokenKey: s2 } = this._cache.keys; + this._cache.removeStore(t2), this._cache.removeStore(n2), this._cache.setStore(s2, e2); + } + setAccessToken(e2, t2) { + const { accessTokenKey: n2, accessTokenExpireKey: s2 } = this._cache.keys; + this._cache.setStore(n2, e2), this._cache.setStore(s2, t2); + } + async refreshUserInfo() { + const { data: e2 } = await this._request.send("auth.getUserInfo", {}); + return this.setLocalUserInfo(e2), e2; + } + setLocalUserInfo(e2) { + const { userInfoKey: t2 } = this._cache.keys; + this._cache.setStore(t2, e2); + } + } + class Ze { + constructor(e2) { + if (!e2) + throw new te({ code: "PARAM_ERROR", message: "envId is not defined" }); + this._envId = e2, this._cache = Le(this._envId), this._request = Qe(this._envId), this.setUserInfo(); + } + linkWithTicket(e2) { + if ("string" != typeof e2) + throw new te({ code: "PARAM_ERROR", message: "ticket must be string" }); + return this._request.send("auth.linkWithTicket", { ticket: e2 }); + } + linkWithRedirect(e2) { + e2.signInWithRedirect(); + } + updatePassword(e2, t2) { + return this._request.send("auth.updatePassword", { oldPassword: t2, newPassword: e2 }); + } + updateEmail(e2) { + return this._request.send("auth.updateEmail", { newEmail: e2 }); + } + updateUsername(e2) { + if ("string" != typeof e2) + throw new te({ code: "PARAM_ERROR", message: "username must be a string" }); + return this._request.send("auth.updateUsername", { username: e2 }); + } + async getLinkedUidList() { + const { data: e2 } = await this._request.send("auth.getLinkedUidList", {}); + let t2 = false; + const { users: n2 } = e2; + return n2.forEach((e3) => { + e3.wxOpenId && e3.wxPublicId && (t2 = true); + }), { users: n2, hasPrimaryUid: t2 }; + } + setPrimaryUid(e2) { + return this._request.send("auth.setPrimaryUid", { uid: e2 }); + } + unlink(e2) { + return this._request.send("auth.unlink", { platform: e2 }); + } + async update(e2) { + const { nickName: t2, gender: n2, avatarUrl: s2, province: r2, country: i2, city: o2 } = e2, { data: a2 } = await this._request.send("auth.updateUserInfo", { nickName: t2, gender: n2, avatarUrl: s2, province: r2, country: i2, city: o2 }); + this.setLocalUserInfo(a2); + } + async refresh() { + const { data: e2 } = await this._request.send("auth.getUserInfo", {}); + return this.setLocalUserInfo(e2), e2; + } + setUserInfo() { + const { userInfoKey: e2 } = this._cache.keys, t2 = this._cache.getStore(e2); + ["uid", "loginType", "openid", "wxOpenId", "wxPublicId", "unionId", "qqMiniOpenId", "email", "hasPassword", "customUserId", "nickName", "gender", "avatarUrl"].forEach((e3) => { + this[e3] = t2[e3]; + }), this.location = { country: t2.country, province: t2.province, city: t2.city }; + } + setLocalUserInfo(e2) { + const { userInfoKey: t2 } = this._cache.keys; + this._cache.setStore(t2, e2), this.setUserInfo(); + } + } + class et { + constructor(e2) { + if (!e2) + throw new te({ code: "PARAM_ERROR", message: "envId is not defined" }); + this._cache = Le(e2); + const { refreshTokenKey: t2, accessTokenKey: n2, accessTokenExpireKey: s2 } = this._cache.keys, r2 = this._cache.getStore(t2), i2 = this._cache.getStore(n2), o2 = this._cache.getStore(s2); + this.credential = { refreshToken: r2, accessToken: i2, accessTokenExpire: o2 }, this.user = new Ze(e2); + } + get isAnonymousAuth() { + return this.loginType === We.ANONYMOUS; + } + get isCustomAuth() { + return this.loginType === We.CUSTOM; + } + get isWeixinAuth() { + return this.loginType === We.WECHAT || this.loginType === We.WECHAT_OPEN || this.loginType === We.WECHAT_PUBLIC; + } + get loginType() { + return this._cache.getStore(this._cache.keys.loginTypeKey); + } + } + let tt$1 = class tt extends Xe { + async signIn() { + this._cache.updatePersistence("local"); + const { anonymousUuidKey: e2, refreshTokenKey: t2 } = this._cache.keys, n2 = this._cache.getStore(e2) || void 0, s2 = this._cache.getStore(t2) || void 0, r2 = await this._request.send("auth.signInAnonymously", { anonymous_uuid: n2, refresh_token: s2 }); + if (r2.uuid && r2.refresh_token) { + this._setAnonymousUUID(r2.uuid), this.setRefreshToken(r2.refresh_token), await this._request.refreshAccessToken(), Me(Fe), Me(je, { env: this.config.env, loginType: We.ANONYMOUS, persistence: "local" }); + const e3 = new et(this.config.env); + return await e3.user.refresh(), e3; + } + throw new te({ message: "匿名登录失败" }); + } + async linkAndRetrieveDataWithTicket(e2) { + const { anonymousUuidKey: t2, refreshTokenKey: n2 } = this._cache.keys, s2 = this._cache.getStore(t2), r2 = this._cache.getStore(n2), i2 = await this._request.send("auth.linkAndRetrieveDataWithTicket", { anonymous_uuid: s2, refresh_token: r2, ticket: e2 }); + if (i2.refresh_token) + return this._clearAnonymousUUID(), this.setRefreshToken(i2.refresh_token), await this._request.refreshAccessToken(), Me($e, { env: this.config.env }), Me(je, { loginType: We.CUSTOM, persistence: "local" }), { credential: { refreshToken: i2.refresh_token } }; + throw new te({ message: "匿名转化失败" }); + } + _setAnonymousUUID(e2) { + const { anonymousUuidKey: t2, loginTypeKey: n2 } = this._cache.keys; + this._cache.removeStore(t2), this._cache.setStore(t2, e2), this._cache.setStore(n2, We.ANONYMOUS); + } + _clearAnonymousUUID() { + this._cache.removeStore(this._cache.keys.anonymousUuidKey); + } + }; + class nt extends Xe { + async signIn(e2) { + if ("string" != typeof e2) + throw new te({ code: "PARAM_ERROR", message: "ticket must be a string" }); + const { refreshTokenKey: t2 } = this._cache.keys, n2 = await this._request.send("auth.signInWithTicket", { ticket: e2, refresh_token: this._cache.getStore(t2) || "" }); + if (n2.refresh_token) + return this.setRefreshToken(n2.refresh_token), await this._request.refreshAccessToken(), Me(Fe), Me(je, { env: this.config.env, loginType: We.CUSTOM, persistence: this.config.persistence }), await this.refreshUserInfo(), new et(this.config.env); + throw new te({ message: "自定义登录失败" }); + } + } + class st extends Xe { + async signIn(e2, t2) { + if ("string" != typeof e2) + throw new te({ code: "PARAM_ERROR", message: "email must be a string" }); + const { refreshTokenKey: n2 } = this._cache.keys, s2 = await this._request.send("auth.signIn", { loginType: "EMAIL", email: e2, password: t2, refresh_token: this._cache.getStore(n2) || "" }), { refresh_token: r2, access_token: i2, access_token_expire: o2 } = s2; + if (r2) + return this.setRefreshToken(r2), i2 && o2 ? this.setAccessToken(i2, o2) : await this._request.refreshAccessToken(), await this.refreshUserInfo(), Me(Fe), Me(je, { env: this.config.env, loginType: We.EMAIL, persistence: this.config.persistence }), new et(this.config.env); + throw s2.code ? new te({ code: s2.code, message: `邮箱登录失败: ${s2.message}` }) : new te({ message: "邮箱登录失败" }); + } + async activate(e2) { + return this._request.send("auth.activateEndUserMail", { token: e2 }); + } + async resetPasswordWithToken(e2, t2) { + return this._request.send("auth.resetPasswordWithToken", { token: e2, newPassword: t2 }); + } + } + class rt extends Xe { + async signIn(e2, t2) { + if ("string" != typeof e2) + throw new te({ code: "PARAM_ERROR", message: "username must be a string" }); + "string" != typeof t2 && (t2 = "", console.warn("password is empty")); + const { refreshTokenKey: n2 } = this._cache.keys, s2 = await this._request.send("auth.signIn", { loginType: We.USERNAME, username: e2, password: t2, refresh_token: this._cache.getStore(n2) || "" }), { refresh_token: r2, access_token_expire: i2, access_token: o2 } = s2; + if (r2) + return this.setRefreshToken(r2), o2 && i2 ? this.setAccessToken(o2, i2) : await this._request.refreshAccessToken(), await this.refreshUserInfo(), Me(Fe), Me(je, { env: this.config.env, loginType: We.USERNAME, persistence: this.config.persistence }), new et(this.config.env); + throw s2.code ? new te({ code: s2.code, message: `用户名密码登录失败: ${s2.message}` }) : new te({ message: "用户名密码登录失败" }); + } + } + class it { + constructor(e2) { + this.config = e2, this._cache = Le(e2.env), this._request = Qe(e2.env), this._onAnonymousConverted = this._onAnonymousConverted.bind(this), this._onLoginTypeChanged = this._onLoginTypeChanged.bind(this), De(je, this._onLoginTypeChanged); + } + get currentUser() { + const e2 = this.hasLoginState(); + return e2 && e2.user || null; + } + get loginType() { + return this._cache.getStore(this._cache.keys.loginTypeKey); + } + anonymousAuthProvider() { + return new tt$1(this.config); + } + customAuthProvider() { + return new nt(this.config); + } + emailAuthProvider() { + return new st(this.config); + } + usernameAuthProvider() { + return new rt(this.config); + } + async signInAnonymously() { + return new tt$1(this.config).signIn(); + } + async signInWithEmailAndPassword(e2, t2) { + return new st(this.config).signIn(e2, t2); + } + signInWithUsernameAndPassword(e2, t2) { + return new rt(this.config).signIn(e2, t2); + } + async linkAndRetrieveDataWithTicket(e2) { + this._anonymousAuthProvider || (this._anonymousAuthProvider = new tt$1(this.config)), De($e, this._onAnonymousConverted); + return await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e2); + } + async signOut() { + if (this.loginType === We.ANONYMOUS) + throw new te({ message: "匿名用户不支持登出操作" }); + const { refreshTokenKey: e2, accessTokenKey: t2, accessTokenExpireKey: n2 } = this._cache.keys, s2 = this._cache.getStore(e2); + if (!s2) + return; + const r2 = await this._request.send("auth.logout", { refresh_token: s2 }); + return this._cache.removeStore(e2), this._cache.removeStore(t2), this._cache.removeStore(n2), Me(Fe), Me(je, { env: this.config.env, loginType: We.NULL, persistence: this.config.persistence }), r2; + } + async signUpWithEmailAndPassword(e2, t2) { + return this._request.send("auth.signUpWithEmailAndPassword", { email: e2, password: t2 }); + } + async sendPasswordResetEmail(e2) { + return this._request.send("auth.sendPasswordResetEmail", { email: e2 }); + } + onLoginStateChanged(e2) { + De(Fe, () => { + const t3 = this.hasLoginState(); + e2.call(this, t3); + }); + const t2 = this.hasLoginState(); + e2.call(this, t2); + } + onLoginStateExpired(e2) { + De(Ke, e2.bind(this)); + } + onAccessTokenRefreshed(e2) { + De(Be, e2.bind(this)); + } + onAnonymousConverted(e2) { + De($e, e2.bind(this)); + } + onLoginTypeChanged(e2) { + De(je, () => { + const t2 = this.hasLoginState(); + e2.call(this, t2); + }); + } + async getAccessToken() { + return { accessToken: (await this._request.getAccessToken()).accessToken, env: this.config.env }; + } + hasLoginState() { + const { refreshTokenKey: e2 } = this._cache.keys; + return this._cache.getStore(e2) ? new et(this.config.env) : null; + } + async isUsernameRegistered(e2) { + if ("string" != typeof e2) + throw new te({ code: "PARAM_ERROR", message: "username must be a string" }); + const { data: t2 } = await this._request.send("auth.isUsernameRegistered", { username: e2 }); + return t2 && t2.isRegistered; + } + getLoginState() { + return Promise.resolve(this.hasLoginState()); + } + async signInWithTicket(e2) { + return new nt(this.config).signIn(e2); + } + shouldRefreshAccessToken(e2) { + this._request._shouldRefreshAccessTokenHook = e2.bind(this); + } + getUserInfo() { + return this._request.send("auth.getUserInfo", {}).then((e2) => e2.code ? e2 : { ...e2.data, requestId: e2.seqId }); + } + getAuthHeader() { + const { refreshTokenKey: e2, accessTokenKey: t2 } = this._cache.keys, n2 = this._cache.getStore(e2); + return { "x-cloudbase-credentials": this._cache.getStore(t2) + "/@@/" + n2 }; + } + _onAnonymousConverted(e2) { + const { env: t2 } = e2.data; + t2 === this.config.env && this._cache.updatePersistence(this.config.persistence); + } + _onLoginTypeChanged(e2) { + const { loginType: t2, persistence: n2, env: s2 } = e2.data; + s2 === this.config.env && (this._cache.updatePersistence(n2), this._cache.setStore(this._cache.keys.loginTypeKey, t2)); + } + } + const ot = function(e2, t2) { + t2 = t2 || ve(); + const n2 = Qe(this.config.env), { cloudPath: s2, filePath: r2, onUploadProgress: i2, fileType: o2 = "image" } = e2; + return n2.send("storage.getUploadMetadata", { path: s2 }).then((e3) => { + const { data: { url: a2, authorization: c2, token: u2, fileId: h2, cosFileId: l2 }, requestId: d2 } = e3, p2 = { key: s2, signature: c2, "x-cos-meta-fileid": l2, success_action_status: "201", "x-cos-security-token": u2 }; + n2.upload({ url: a2, data: p2, file: r2, name: s2, fileType: o2, onUploadProgress: i2 }).then((e4) => { + 201 === e4.statusCode ? t2(null, { fileID: h2, requestId: d2 }) : t2(new te({ code: "STORAGE_REQUEST_FAIL", message: `STORAGE_REQUEST_FAIL: ${e4.data}` })); + }).catch((e4) => { + t2(e4); + }); + }).catch((e3) => { + t2(e3); + }), t2.promise; + }, at = function(e2, t2) { + t2 = t2 || ve(); + const n2 = Qe(this.config.env), { cloudPath: s2 } = e2; + return n2.send("storage.getUploadMetadata", { path: s2 }).then((e3) => { + t2(null, e3); + }).catch((e3) => { + t2(e3); + }), t2.promise; + }, ct = function({ fileList: e2 }, t2) { + if (t2 = t2 || ve(), !e2 || !Array.isArray(e2)) + return { code: "INVALID_PARAM", message: "fileList必须是非空的数组" }; + for (let t3 of e2) + if (!t3 || "string" != typeof t3) + return { code: "INVALID_PARAM", message: "fileList的元素必须是非空的字符串" }; + const n2 = { fileid_list: e2 }; + return Qe(this.config.env).send("storage.batchDeleteFile", n2).then((e3) => { + e3.code ? t2(null, e3) : t2(null, { fileList: e3.data.delete_list, requestId: e3.requestId }); + }).catch((e3) => { + t2(e3); + }), t2.promise; + }, ut = function({ fileList: e2 }, t2) { + t2 = t2 || ve(), e2 && Array.isArray(e2) || t2(null, { code: "INVALID_PARAM", message: "fileList必须是非空的数组" }); + let n2 = []; + for (let s3 of e2) + "object" == typeof s3 ? (s3.hasOwnProperty("fileID") && s3.hasOwnProperty("maxAge") || t2(null, { code: "INVALID_PARAM", message: "fileList的元素必须是包含fileID和maxAge的对象" }), n2.push({ fileid: s3.fileID, max_age: s3.maxAge })) : "string" == typeof s3 ? n2.push({ fileid: s3 }) : t2(null, { code: "INVALID_PARAM", message: "fileList的元素必须是字符串" }); + const s2 = { file_list: n2 }; + return Qe(this.config.env).send("storage.batchGetDownloadUrl", s2).then((e3) => { + e3.code ? t2(null, e3) : t2(null, { fileList: e3.data.download_list, requestId: e3.requestId }); + }).catch((e3) => { + t2(e3); + }), t2.promise; + }, ht = async function({ fileID: e2 }, t2) { + const n2 = (await ut.call(this, { fileList: [{ fileID: e2, maxAge: 600 }] })).fileList[0]; + if ("SUCCESS" !== n2.code) + return t2 ? t2(n2) : new Promise((e3) => { + e3(n2); + }); + const s2 = Qe(this.config.env); + let r2 = n2.download_url; + if (r2 = encodeURI(r2), !t2) + return s2.download({ url: r2 }); + t2(await s2.download({ url: r2 })); + }, lt = function({ name: e2, data: t2, query: n2, parse: s2, search: r2 }, i2) { + const o2 = i2 || ve(); + let a2; + try { + a2 = t2 ? JSON.stringify(t2) : ""; + } catch (e3) { + return Promise.reject(e3); + } + if (!e2) + return Promise.reject(new te({ code: "PARAM_ERROR", message: "函数名不能为空" })); + const c2 = { inQuery: n2, parse: s2, search: r2, function_name: e2, request_data: a2 }; + return Qe(this.config.env).send("functions.invokeFunction", c2).then((e3) => { + if (e3.code) + o2(null, e3); + else { + let t3 = e3.data.response_data; + if (s2) + o2(null, { result: t3, requestId: e3.requestId }); + else + try { + t3 = JSON.parse(e3.data.response_data), o2(null, { result: t3, requestId: e3.requestId }); + } catch (e4) { + o2(new te({ message: "response data must be json" })); + } + } + return o2.promise; + }).catch((e3) => { + o2(e3); + }), o2.promise; + }, dt = { timeout: 15e3, persistence: "session" }, pt = {}; + class ft { + constructor(e2) { + this.config = e2 || this.config, this.authObj = void 0; + } + init(e2) { + switch (Ae.adapter || (this.requestClient = new Ae.adapter.reqClass({ timeout: e2.timeout || 5e3, timeoutMsg: `请求在${(e2.timeout || 5e3) / 1e3}s内未完成,已中断` })), this.config = { ...dt, ...e2 }, true) { + case this.config.timeout > 6e5: + console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"), this.config.timeout = 6e5; + break; + case this.config.timeout < 100: + console.warn("timeout小于可配置下限[100ms],已重置为下限数值"), this.config.timeout = 100; + } + return new ft(this.config); + } + auth({ persistence: e2 } = {}) { + if (this.authObj) + return this.authObj; + const t2 = e2 || Ae.adapter.primaryStorage || dt.persistence; + var n2; + return t2 !== this.config.persistence && (this.config.persistence = t2), function(e3) { + const { env: t3 } = e3; + Oe[t3] = new xe(e3), Ee[t3] = new xe({ ...e3, persistence: "local" }); + }(this.config), n2 = this.config, Ye[n2.env] = new Ve(n2), this.authObj = new it(this.config), this.authObj; + } + on(e2, t2) { + return De.apply(this, [e2, t2]); + } + off(e2, t2) { + return qe.apply(this, [e2, t2]); + } + callFunction(e2, t2) { + return lt.apply(this, [e2, t2]); + } + deleteFile(e2, t2) { + return ct.apply(this, [e2, t2]); + } + getTempFileURL(e2, t2) { + return ut.apply(this, [e2, t2]); + } + downloadFile(e2, t2) { + return ht.apply(this, [e2, t2]); + } + uploadFile(e2, t2) { + return ot.apply(this, [e2, t2]); + } + getUploadMetadata(e2, t2) { + return at.apply(this, [e2, t2]); + } + registerExtension(e2) { + pt[e2.name] = e2; + } + async invokeExtension(e2, t2) { + const n2 = pt[e2]; + if (!n2) + throw new te({ message: `扩展${e2} 必须先注册` }); + return await n2.invoke(t2, this); + } + useAdapters(e2) { + const { adapter: t2, runtime: n2 } = ke(e2) || {}; + t2 && (Ae.adapter = t2), n2 && (Ae.runtime = n2); + } + } + var gt = new ft(); + function mt(e2, t2, n2) { + void 0 === n2 && (n2 = {}); + var s2 = /\?/.test(t2), r2 = ""; + for (var i2 in n2) + "" === r2 ? !s2 && (t2 += "?") : r2 += "&", r2 += i2 + "=" + encodeURIComponent(n2[i2]); + return /^http(s)?:\/\//.test(t2 += r2) ? t2 : "" + e2 + t2; + } + class yt { + post(e2) { + const { url: t2, data: n2, headers: s2 } = e2; + return new Promise((e3, r2) => { + ne.request({ url: mt("https:", t2), data: n2, method: "POST", header: s2, success(t3) { + e3(t3); + }, fail(e4) { + r2(e4); + } }); + }); + } + upload(e2) { + return new Promise((t2, n2) => { + const { url: s2, file: r2, data: i2, headers: o2, fileType: a2 } = e2, c2 = ne.uploadFile({ url: mt("https:", s2), name: "file", formData: Object.assign({}, i2), filePath: r2, fileType: a2, header: o2, success(e3) { + const n3 = { statusCode: e3.statusCode, data: e3.data || {} }; + 200 === e3.statusCode && i2.success_action_status && (n3.statusCode = parseInt(i2.success_action_status, 10)), t2(n3); + }, fail(e3) { + n2(new Error(e3.errMsg || "uploadFile:fail")); + } }); + "function" == typeof e2.onUploadProgress && c2 && "function" == typeof c2.onProgressUpdate && c2.onProgressUpdate((t3) => { + e2.onUploadProgress({ loaded: t3.totalBytesSent, total: t3.totalBytesExpectedToSend }); + }); + }); + } + } + const _t = { setItem(e2, t2) { + ne.setStorageSync(e2, t2); + }, getItem: (e2) => ne.getStorageSync(e2), removeItem(e2) { + ne.removeStorageSync(e2); + }, clear() { + ne.clearStorageSync(); + } }; + var wt = { genAdapter: function() { + return { root: {}, reqClass: yt, localStorage: _t, primaryStorage: "local" }; + }, isMatch: function() { + return true; + }, runtime: "uni_app" }; + gt.useAdapters(wt); + const vt = gt, It = vt.init; + vt.init = function(e2) { + e2.env = e2.spaceId; + const t2 = It.call(this, e2); + t2.config.provider = "tencent", t2.config.spaceId = e2.spaceId; + const n2 = t2.auth; + return t2.auth = function(e3) { + const t3 = n2.call(this, e3); + return ["linkAndRetrieveDataWithTicket", "signInAnonymously", "signOut", "getAccessToken", "getLoginState", "signInWithTicket", "getUserInfo"].forEach((e4) => { + var n3; + t3[e4] = (n3 = t3[e4], function(e5) { + e5 = e5 || {}; + const { success: t4, fail: s2, complete: r2 } = ee(e5); + if (!(t4 || s2 || r2)) + return n3.call(this, e5); + n3.call(this, e5).then((e6) => { + t4 && t4(e6), r2 && r2(e6); + }, (e6) => { + s2 && s2(e6), r2 && r2(e6); + }); + }).bind(t3); + }), t3; + }, t2.customAuth = t2.auth, t2; + }; + var St = vt; + var bt = class extends de { + getAccessToken() { + return new Promise((e2, t2) => { + const n2 = "Anonymous_Access_token"; + this.setAccessToken(n2), e2(n2); + }); + } + setupRequest(e2, t2) { + const n2 = Object.assign({}, e2, { spaceId: this.config.spaceId, timestamp: Date.now() }), s2 = { "Content-Type": "application/json" }; + "auth" !== t2 && (n2.token = this.accessToken, s2["x-basement-token"] = this.accessToken), s2["x-serverless-sign"] = le.sign(n2, this.config.clientSecret); + const r2 = he(); + s2["x-client-info"] = encodeURIComponent(JSON.stringify(r2)); + const { token: i2 } = re(); + return s2["x-client-token"] = i2, { url: this.config.requestUrl, method: "POST", data: n2, dataType: "json", header: JSON.parse(JSON.stringify(s2)) }; + } + uploadFileToOSS({ url: e2, formData: t2, name: n2, filePath: s2, fileType: r2, onUploadProgress: i2 }) { + return new Promise((o2, a2) => { + const c2 = this.adapter.uploadFile({ url: e2, formData: t2, name: n2, filePath: s2, fileType: r2, success(e3) { + e3 && e3.statusCode < 400 ? o2(e3) : a2(new te({ code: "UPLOAD_FAILED", message: "文件上传失败" })); + }, fail(e3) { + a2(new te({ code: e3.code || "UPLOAD_FAILED", message: e3.message || e3.errMsg || "文件上传失败" })); + } }); + "function" == typeof i2 && c2 && "function" == typeof c2.onProgressUpdate && c2.onProgressUpdate((e3) => { + i2({ loaded: e3.totalBytesSent, total: e3.totalBytesExpectedToSend }); + }); + }); + } + uploadFile({ filePath: e2, cloudPath: t2, fileType: n2 = "image", onUploadProgress: s2 }) { + if (!t2) + throw new te({ code: "CLOUDPATH_REQUIRED", message: "cloudPath不可为空" }); + let r2; + return this.getOSSUploadOptionsFromPath({ cloudPath: t2 }).then((t3) => { + const { url: i2, formData: o2, name: a2 } = t3.result; + r2 = t3.result.fileUrl; + const c2 = { url: i2, formData: o2, name: a2, filePath: e2, fileType: n2 }; + return this.uploadFileToOSS(Object.assign({}, c2, { onUploadProgress: s2 })); + }).then(() => this.reportOSSUpload({ cloudPath: t2 })).then((t3) => new Promise((n3, s3) => { + t3.success ? n3({ success: true, filePath: e2, fileID: r2 }) : s3(new te({ code: "UPLOAD_FAILED", message: "文件上传失败" })); + })); + } + deleteFile({ fileList: e2 }) { + const t2 = { method: "serverless.file.resource.delete", params: JSON.stringify({ fileList: e2 }) }; + return this.request(this.setupRequest(t2)).then((e3) => { + if (e3.success) + return e3.result; + throw new te({ code: "DELETE_FILE_FAILED", message: "删除文件失败" }); + }); + } + getTempFileURL({ fileList: e2, maxAge: t2 } = {}) { + if (!Array.isArray(e2) || 0 === e2.length) + throw new te({ code: "INVALID_PARAM", message: "fileList的元素必须是非空的字符串" }); + const n2 = { method: "serverless.file.resource.getTempFileURL", params: JSON.stringify({ fileList: e2, maxAge: t2 }) }; + return this.request(this.setupRequest(n2)).then((e3) => { + if (e3.success) + return { fileList: e3.result.fileList.map((e4) => ({ fileID: e4.fileID, tempFileURL: e4.tempFileURL })) }; + throw new te({ code: "GET_TEMP_FILE_URL_FAILED", message: "获取临时文件链接失败" }); + }); + } + }; + var kt = { init(e2) { + const t2 = new bt(e2), n2 = { signInAnonymously: function() { + return t2.authorize(); + }, getLoginState: function() { + return Promise.resolve(false); + } }; + return t2.auth = function() { + return n2; + }, t2.customAuth = t2.auth, t2; + } }, At = n(function(e2, t2) { + e2.exports = r.enc.Hex; + }); + function Pt(e2 = "", t2 = {}) { + const { data: n2, functionName: s2, method: r2, headers: i2, signHeaderKeys: o2 = [], config: a2 } = t2, c2 = Date.now(), u2 = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e3) { + var t3 = 16 * Math.random() | 0; + return ("x" === e3 ? t3 : 3 & t3 | 8).toString(16); + }), h2 = Object.assign({}, i2, { "x-from-app-id": a2.spaceAppId, "x-from-env-id": a2.spaceId, "x-to-env-id": a2.spaceId, "x-from-instance-id": c2, "x-from-function-name": s2, "x-client-timestamp": c2, "x-alipay-source": "client", "x-request-id": u2, "x-alipay-callid": u2, "x-trace-id": u2 }), l2 = ["x-from-app-id", "x-from-env-id", "x-to-env-id", "x-from-instance-id", "x-from-function-name", "x-client-timestamp"].concat(o2), [d2 = "", p2 = ""] = e2.split("?") || [], f2 = function(e3) { + const t3 = e3.signedHeaders.join(";"), n3 = e3.signedHeaders.map((t4) => `${t4.toLowerCase()}:${e3.headers[t4]} +`).join(""), s3 = _e(e3.body).toString(At), r3 = `${e3.method.toUpperCase()} +${e3.path} +${e3.query} +${n3} +${t3} +${s3} +`, i3 = _e(r3).toString(At), o3 = `HMAC-SHA256 +${e3.timestamp} +${i3} +`, a3 = we(o3, e3.secretKey).toString(At); + return `HMAC-SHA256 Credential=${e3.secretId}, SignedHeaders=${t3}, Signature=${a3}`; + }({ path: d2, query: p2, method: r2, headers: h2, timestamp: c2, body: JSON.stringify(n2), secretId: a2.accessKey, secretKey: a2.secretKey, signedHeaders: l2.sort() }); + return { url: `${a2.endpoint}${e2}`, headers: Object.assign({}, h2, { Authorization: f2 }) }; + } + function Tt({ url: e2, data: t2, method: n2 = "POST", headers: s2 = {} }) { + return new Promise((r2, i2) => { + ne.request({ url: e2, method: n2, data: t2, header: s2, dataType: "json", complete: (e3 = {}) => { + const t3 = s2["x-trace-id"] || ""; + if (!e3.statusCode || e3.statusCode >= 400) { + const { message: n3, errMsg: s3, trace_id: r3 } = e3.data || {}; + return i2(new te({ code: "SYS_ERR", message: n3 || s3 || "request:fail", requestId: r3 || t3 })); + } + r2({ status: e3.statusCode, data: e3.data, headers: e3.header, requestId: t3 }); + } }); + }); + } + function Ct(e2, t2) { + const { path: n2, data: s2, method: r2 = "GET" } = e2, { url: i2, headers: o2 } = Pt(n2, { functionName: "", data: s2, method: r2, headers: { "x-alipay-cloud-mode": "oss", "x-data-api-type": "oss", "x-expire-timestamp": Date.now() + 6e4 }, signHeaderKeys: ["x-data-api-type", "x-expire-timestamp"], config: t2 }); + return Tt({ url: i2, data: s2, method: r2, headers: o2 }).then((e3) => { + const t3 = e3.data || {}; + if (!t3.success) + throw new te({ code: e3.errCode, message: e3.errMsg, requestId: e3.requestId }); + return t3.data || {}; + }).catch((e3) => { + throw new te({ code: e3.errCode, message: e3.errMsg, requestId: e3.requestId }); + }); + } + function xt(e2 = "") { + const t2 = e2.trim().replace(/^cloud:\/\//, ""), n2 = t2.indexOf("/"); + if (n2 <= 0) + throw new te({ code: "INVALID_PARAM", message: "fileID不合法" }); + const s2 = t2.substring(0, n2), r2 = t2.substring(n2 + 1); + return s2 !== this.config.spaceId && console.warn("file ".concat(e2, " does not belong to env ").concat(this.config.spaceId)), r2; + } + function Ot(e2 = "") { + return "cloud://".concat(this.config.spaceId, "/").concat(e2.replace(/^\/+/, "")); + } + var Et = class { + constructor(e2) { + if (["spaceId", "spaceAppId", "accessKey", "secretKey"].forEach((t2) => { + if (!Object.prototype.hasOwnProperty.call(e2, t2)) + throw new Error(`${t2} required`); + }), e2.endpoint) { + if ("string" != typeof e2.endpoint) + throw new Error("endpoint must be string"); + if (!/^https:\/\//.test(e2.endpoint)) + throw new Error("endpoint must start with https://"); + e2.endpoint = e2.endpoint.replace(/\/$/, ""); + } + this.config = Object.assign({}, e2, { endpoint: e2.endpoint || `https://${e2.spaceId}.api-hz.cloudbasefunction.cn` }); + } + callFunction(e2) { + return function(e3, t2) { + const { name: n2, data: s2 } = e3, r2 = "POST", { url: i2, headers: o2 } = Pt("/functions/invokeFunction", { functionName: n2, data: s2, method: r2, headers: { "x-to-function-name": n2 }, signHeaderKeys: ["x-to-function-name"], config: t2 }); + return Tt({ url: i2, data: s2, method: r2, headers: o2 }).then((e4) => ({ errCode: 0, success: true, requestId: e4.requestId, result: e4.data })).catch((e4) => { + throw new te({ code: e4.errCode, message: e4.errMsg, requestId: e4.requestId }); + }); + }(e2, this.config); + } + uploadFileToOSS({ url: e2, filePath: t2, fileType: n2, formData: s2, onUploadProgress: r2 }) { + return new Promise((i2, o2) => { + const a2 = ne.uploadFile({ url: e2, filePath: t2, fileType: n2, formData: s2, name: "file", success(e3) { + e3 && e3.statusCode < 400 ? i2(e3) : o2(new te({ code: "UPLOAD_FAILED", message: "文件上传失败" })); + }, fail(e3) { + o2(new te({ code: e3.code || "UPLOAD_FAILED", message: e3.message || e3.errMsg || "文件上传失败" })); + } }); + "function" == typeof r2 && a2 && "function" == typeof a2.onProgressUpdate && a2.onProgressUpdate((e3) => { + r2({ loaded: e3.totalBytesSent, total: e3.totalBytesExpectedToSend }); + }); + }); + } + async uploadFile({ filePath: e2, cloudPath: t2 = "", fileType: n2 = "image", onUploadProgress: s2 }) { + if ("string" !== f(t2)) + throw new te({ code: "INVALID_PARAM", message: "cloudPath必须为字符串类型" }); + if (!(t2 = t2.trim())) + throw new te({ code: "INVALID_PARAM", message: "cloudPath不可为空" }); + if (/:\/\//.test(t2)) + throw new te({ code: "INVALID_PARAM", message: "cloudPath不合法" }); + const r2 = await Ct({ path: "/".concat(t2.replace(/^\//, ""), "?post_url") }, this.config), { file_id: i2, upload_url: o2, form_data: a2 } = r2, c2 = a2 && a2.reduce((e3, t3) => (e3[t3.key] = t3.value, e3), {}); + return this.uploadFileToOSS({ url: o2, filePath: e2, fileType: n2, formData: c2, onUploadProgress: s2 }).then(() => ({ fileID: i2 })); + } + async getTempFileURL({ fileList: e2 }) { + return new Promise((t2, n2) => { + (!e2 || e2.length < 0) && n2(new te({ errCode: "INVALID_PARAM", errMsg: "fileList不能为空数组" })), e2.length > 50 && n2(new te({ errCode: "INVALID_PARAM", errMsg: "fileList数组长度不能超过50" })); + const s2 = []; + for (const t3 of e2) { + "string" !== f(t3) && n2(new te({ errCode: "INVALID_PARAM", errMsg: "fileList的元素必须是非空的字符串" })); + const e3 = xt.call(this, t3); + s2.push({ file_id: e3, expire: 600 }); + } + Ct({ path: "/?download_url", data: { file_list: s2 }, method: "POST" }, this.config).then((e3) => { + const { file_list: n3 = [] } = e3; + t2({ fileList: n3.map((e4) => ({ fileID: Ot.call(this, e4.file_id), tempFileURL: e4.download_url })) }); + }).catch((e3) => n2(e3)); + }); + } + }; + var Lt = { init: (e2) => { + e2.provider = "alipay"; + const t2 = new Et(e2); + return t2.auth = function() { + return { signInAnonymously: function() { + return Promise.resolve(); + }, getLoginState: function() { + return Promise.resolve(true); + } }; + }, t2; + } }; + function Rt({ data: e2 }) { + let t2; + t2 = he(); + const n2 = JSON.parse(JSON.stringify(e2 || {})); + if (Object.assign(n2, { clientInfo: t2 }), !n2.uniIdToken) { + const { token: e3 } = re(); + e3 && (n2.uniIdToken = e3); + } + return n2; + } + async function Ut({ name: e2, data: t2 } = {}) { + await this.__dev__.initLocalNetwork(); + const { localAddress: n2, localPort: s2 } = this.__dev__, r2 = { aliyun: "aliyun", tencent: "tcb", alipay: "alipay" }[this.config.provider], i2 = this.config.spaceId, o2 = `http://${n2}:${s2}/system/check-function`, a2 = `http://${n2}:${s2}/cloudfunctions/${e2}`; + return new Promise((t3, n3) => { + ne.request({ method: "POST", url: o2, data: { name: e2, platform: P, provider: r2, spaceId: i2 }, timeout: 3e3, success(e3) { + t3(e3); + }, fail() { + t3({ data: { code: "NETWORK_ERROR", message: "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。" } }); + } }); + }).then(({ data: e3 } = {}) => { + const { code: t3, message: n3 } = e3 || {}; + return { code: 0 === t3 ? 0 : t3 || "SYS_ERR", message: n3 || "SYS_ERR" }; + }).then(({ code: n3, message: s3 }) => { + if (0 !== n3) { + switch (n3) { + case "MODULE_ENCRYPTED": + console.error(`此云函数(${e2})依赖加密公共模块不可本地调试,自动切换为云端已部署的云函数`); + break; + case "FUNCTION_ENCRYPTED": + console.error(`此云函数(${e2})已加密不可本地调试,自动切换为云端已部署的云函数`); + break; + case "ACTION_ENCRYPTED": + console.error(s3 || "需要访问加密的uni-clientDB-action,自动切换为云端环境"); + break; + case "NETWORK_ERROR": { + const e3 = "连接本地调试服务失败,请检查客户端是否和主机在同一局域网下"; + throw console.error(e3), new Error(e3); + } + case "SWITCH_TO_CLOUD": + break; + default: { + const e3 = `检测本地调试服务出现错误:${s3},请检查网络环境或重启客户端再试`; + throw console.error(e3), new Error(e3); + } + } + return this._callCloudFunction({ name: e2, data: t2 }); + } + return new Promise((e3, n4) => { + const s4 = Rt.call(this, { data: t2 }); + ne.request({ method: "POST", url: a2, data: { provider: r2, platform: P, param: s4 }, success: ({ statusCode: t3, data: s5 } = {}) => !t3 || t3 >= 400 ? n4(new te({ code: s5.code || "SYS_ERR", message: s5.message || "request:fail" })) : e3({ result: s5 }), fail(e4) { + n4(new te({ code: e4.code || e4.errCode || "SYS_ERR", message: e4.message || e4.errMsg || "request:fail" })); + } }); + }); + }); + } + const Nt = [{ rule: /fc_function_not_found|FUNCTION_NOT_FOUND/, content: ",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间", mode: "append" }]; + var Dt = /[\\^$.*+?()[\]{}|]/g, Mt = RegExp(Dt.source); + function qt(e2, t2, n2) { + return e2.replace(new RegExp((s2 = t2) && Mt.test(s2) ? s2.replace(Dt, "\\$&") : s2, "g"), n2); + var s2; + } + const Kt = "request", jt = "response", $t = "both"; + const An = { code: 2e4, message: "System error" }, Pn = { code: 20101, message: "Invalid client" }; + function xn(e2) { + const { errSubject: t2, subject: n2, errCode: s2, errMsg: r2, code: i2, message: o2, cause: a2 } = e2 || {}; + return new te({ subject: t2 || n2 || "uni-secure-network", code: s2 || i2 || An.code, message: r2 || o2, cause: a2 }); + } + let En; + function Dn({ secretType: e2 } = {}) { + return e2 === Kt || e2 === jt || e2 === $t; + } + function Mn({ name: e2, data: t2 = {} } = {}) { + return "DCloud-clientDB" === e2 && "encryption" === t2.redirectTo && "getAppClientKey" === t2.action; + } + function qn({ provider: e2, spaceId: t2, functionName: n2 } = {}) { + const { appId: s2, uniPlatform: r2, osName: i2 } = ce(); + let o2 = r2; + "app" === r2 && (o2 = i2); + const a2 = function({ provider: e3, spaceId: t3 } = {}) { + const n3 = A; + if (!n3) + return {}; + e3 = /* @__PURE__ */ function(e4) { + return "tencent" === e4 ? "tcb" : e4; + }(e3); + const s3 = n3.find((n4) => n4.provider === e3 && n4.spaceId === t3); + return s3 && s3.config; + }({ provider: e2, spaceId: t2 }); + if (!a2 || !a2.accessControl || !a2.accessControl.enable) + return false; + const c2 = a2.accessControl.function || {}, u2 = Object.keys(c2); + if (0 === u2.length) + return true; + const h2 = function(e3, t3) { + let n3, s3, r3; + for (let i3 = 0; i3 < e3.length; i3++) { + const o3 = e3[i3]; + o3 !== t3 ? "*" !== o3 ? o3.split(",").map((e4) => e4.trim()).indexOf(t3) > -1 && (s3 = o3) : r3 = o3 : n3 = o3; + } + return n3 || s3 || r3; + }(u2, n2); + if (!h2) + return false; + if ((c2[h2] || []).find((e3 = {}) => e3.appId === s2 && (e3.platform || "").toLowerCase() === o2.toLowerCase())) + return true; + throw console.error(`此应用[appId: ${s2}, platform: ${o2}]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`), xn(Pn); + } + function Fn({ functionName: e2, result: t2, logPvd: n2 }) { + if (this.__dev__.debugLog && t2 && t2.requestId) { + const s2 = JSON.stringify({ spaceId: this.config.spaceId, functionName: e2, requestId: t2.requestId }); + console.log(`[${n2}-request]${s2}[/${n2}-request]`); + } + } + function Kn(e2) { + const t2 = e2.callFunction, n2 = function(n3) { + const s2 = n3.name; + n3.data = Rt.call(e2, { data: n3.data }); + const r2 = { aliyun: "aliyun", tencent: "tcb", tcb: "tcb", alipay: "alipay" }[this.config.provider], i2 = Dn(n3), o2 = Mn(n3), a2 = i2 || o2; + return t2.call(this, n3).then((e3) => (e3.errCode = 0, !a2 && Fn.call(this, { functionName: s2, result: e3, logPvd: r2 }), Promise.resolve(e3)), (e3) => (!a2 && Fn.call(this, { functionName: s2, result: e3, logPvd: r2 }), e3 && e3.message && (e3.message = function({ message: e4 = "", extraInfo: t3 = {}, formatter: n4 = [] } = {}) { + for (let s3 = 0; s3 < n4.length; s3++) { + const { rule: r3, content: i3, mode: o3 } = n4[s3], a3 = e4.match(r3); + if (!a3) + continue; + let c2 = i3; + for (let e5 = 1; e5 < a3.length; e5++) + c2 = qt(c2, `{$${e5}}`, a3[e5]); + for (const e5 in t3) + c2 = qt(c2, `{${e5}}`, t3[e5]); + return "replace" === o3 ? c2 : e4 + c2; + } + return e4; + }({ message: `[${n3.name}]: ${e3.message}`, formatter: Nt, extraInfo: { functionName: s2 } })), Promise.reject(e3))); + }; + e2.callFunction = function(t3) { + const { provider: s2, spaceId: r2 } = e2.config, i2 = t3.name; + let o2, a2; + if (t3.data = t3.data || {}, e2.__dev__.debugInfo && !e2.__dev__.debugInfo.forceRemote && C ? (e2._callCloudFunction || (e2._callCloudFunction = n2, e2._callLocalFunction = Ut), o2 = Ut) : o2 = n2, o2 = o2.bind(e2), Mn(t3)) + a2 = n2.call(e2, t3); + else if (Dn(t3)) { + a2 = new En({ secretType: t3.secretType, uniCloudIns: e2 }).wrapEncryptDataCallFunction(n2.bind(e2))(t3); + } else if (qn({ provider: s2, spaceId: r2, functionName: i2 })) { + a2 = new En({ secretType: t3.secretType, uniCloudIns: e2 }).wrapVerifyClientCallFunction(n2.bind(e2))(t3); + } else + a2 = o2(t3); + return Object.defineProperty(a2, "result", { get: () => (console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"), {}) }), a2.then((e3) => ("undefined" != typeof UTSJSONObject && (e3.result = new UTSJSONObject(e3.result)), e3)); + }; + } + En = class { + constructor() { + throw xn({ message: `Platform ${P} is not enabled, please check whether secure network module is enabled in your manifest.json` }); + } + }; + const jn = Symbol("CLIENT_DB_INTERNAL"); + function $n(e2, t2) { + return e2.then = "DoNotReturnProxyWithAFunctionNamedThen", e2._internalType = jn, e2.inspect = null, e2.__v_raw = void 0, new Proxy(e2, { get(e3, n2, s2) { + if ("_uniClient" === n2) + return null; + if ("symbol" == typeof n2) + return e3[n2]; + if (n2 in e3 || "string" != typeof n2) { + const t3 = e3[n2]; + return "function" == typeof t3 ? t3.bind(e3) : t3; + } + return t2.get(e3, n2, s2); + } }); + } + function Bn(e2) { + return { on: (t2, n2) => { + e2[t2] = e2[t2] || [], e2[t2].indexOf(n2) > -1 || e2[t2].push(n2); + }, off: (t2, n2) => { + e2[t2] = e2[t2] || []; + const s2 = e2[t2].indexOf(n2); + -1 !== s2 && e2[t2].splice(s2, 1); + } }; + } + const Wn = ["db.Geo", "db.command", "command.aggregate"]; + function Hn(e2, t2) { + return Wn.indexOf(`${e2}.${t2}`) > -1; + } + function zn(e2) { + switch (f(e2 = se(e2))) { + case "array": + return e2.map((e3) => zn(e3)); + case "object": + return e2._internalType === jn || Object.keys(e2).forEach((t2) => { + e2[t2] = zn(e2[t2]); + }), e2; + case "regexp": + return { $regexp: { source: e2.source, flags: e2.flags } }; + case "date": + return { $date: e2.toISOString() }; + default: + return e2; + } + } + function Jn(e2) { + return e2 && e2.content && e2.content.$method; + } + class Gn { + constructor(e2, t2, n2) { + this.content = e2, this.prevStage = t2 || null, this.udb = null, this._database = n2; + } + toJSON() { + let e2 = this; + const t2 = [e2.content]; + for (; e2.prevStage; ) + e2 = e2.prevStage, t2.push(e2.content); + return { $db: t2.reverse().map((e3) => ({ $method: e3.$method, $param: zn(e3.$param) })) }; + } + toString() { + return JSON.stringify(this.toJSON()); + } + getAction() { + const e2 = this.toJSON().$db.find((e3) => "action" === e3.$method); + return e2 && e2.$param && e2.$param[0]; + } + getCommand() { + return { $db: this.toJSON().$db.filter((e2) => "action" !== e2.$method) }; + } + get isAggregate() { + let e2 = this; + for (; e2; ) { + const t2 = Jn(e2), n2 = Jn(e2.prevStage); + if ("aggregate" === t2 && "collection" === n2 || "pipeline" === t2) + return true; + e2 = e2.prevStage; + } + return false; + } + get isCommand() { + let e2 = this; + for (; e2; ) { + if ("command" === Jn(e2)) + return true; + e2 = e2.prevStage; + } + return false; + } + get isAggregateCommand() { + let e2 = this; + for (; e2; ) { + const t2 = Jn(e2), n2 = Jn(e2.prevStage); + if ("aggregate" === t2 && "command" === n2) + return true; + e2 = e2.prevStage; + } + return false; + } + getNextStageFn(e2) { + const t2 = this; + return function() { + return Vn({ $method: e2, $param: zn(Array.from(arguments)) }, t2, t2._database); + }; + } + get count() { + return this.isAggregate ? this.getNextStageFn("count") : function() { + return this._send("count", Array.from(arguments)); + }; + } + get remove() { + return this.isCommand ? this.getNextStageFn("remove") : function() { + return this._send("remove", Array.from(arguments)); + }; + } + get() { + return this._send("get", Array.from(arguments)); + } + get add() { + return this.isCommand ? this.getNextStageFn("add") : function() { + return this._send("add", Array.from(arguments)); + }; + } + update() { + return this._send("update", Array.from(arguments)); + } + end() { + return this._send("end", Array.from(arguments)); + } + get set() { + return this.isCommand ? this.getNextStageFn("set") : function() { + throw new Error("JQL禁止使用set方法"); + }; + } + _send(e2, t2) { + const n2 = this.getAction(), s2 = this.getCommand(); + if (s2.$db.push({ $method: e2, $param: zn(t2) }), S) { + const e3 = s2.$db.find((e4) => "collection" === e4.$method), t3 = e3 && e3.$param; + t3 && 1 === t3.length && "string" == typeof e3.$param[0] && e3.$param[0].indexOf(",") > -1 && console.warn("检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。"); + } + return this._database._callCloudFunction({ action: n2, command: s2 }); + } + } + function Vn(e2, t2, n2) { + return $n(new Gn(e2, t2, n2), { get(e3, t3) { + let s2 = "db"; + return e3 && e3.content && (s2 = e3.content.$method), Hn(s2, t3) ? Vn({ $method: t3 }, e3, n2) : function() { + return Vn({ $method: t3, $param: zn(Array.from(arguments)) }, e3, n2); + }; + } }); + } + function Yn({ path: e2, method: t2 }) { + return class { + constructor() { + this.param = Array.from(arguments); + } + toJSON() { + return { $newDb: [...e2.map((e3) => ({ $method: e3 })), { $method: t2, $param: this.param }] }; + } + toString() { + return JSON.stringify(this.toJSON()); + } + }; + } + function Qn(e2, t2 = {}) { + return $n(new e2(t2), { get: (e3, t3) => Hn("db", t3) ? Vn({ $method: t3 }, null, e3) : function() { + return Vn({ $method: t3, $param: zn(Array.from(arguments)) }, null, e3); + } }); + } + class Xn extends class { + constructor({ uniClient: e2 = {}, isJQL: t2 = false } = {}) { + this._uniClient = e2, this._authCallBacks = {}, this._dbCallBacks = {}, e2._isDefault && (this._dbCallBacks = L("_globalUniCloudDatabaseCallback")), t2 || (this.auth = Bn(this._authCallBacks)), this._isJQL = t2, Object.assign(this, Bn(this._dbCallBacks)), this.env = $n({}, { get: (e3, t3) => ({ $env: t3 }) }), this.Geo = $n({}, { get: (e3, t3) => Yn({ path: ["Geo"], method: t3 }) }), this.serverDate = Yn({ path: [], method: "serverDate" }), this.RegExp = Yn({ path: [], method: "RegExp" }); + } + getCloudEnv(e2) { + if ("string" != typeof e2 || !e2.trim()) + throw new Error("getCloudEnv参数错误"); + return { $env: e2.replace("$cloudEnv_", "") }; + } + _callback(e2, t2) { + const n2 = this._dbCallBacks; + n2[e2] && n2[e2].forEach((e3) => { + e3(...t2); + }); + } + _callbackAuth(e2, t2) { + const n2 = this._authCallBacks; + n2[e2] && n2[e2].forEach((e3) => { + e3(...t2); + }); + } + multiSend() { + const e2 = Array.from(arguments), t2 = e2.map((e3) => { + const t3 = e3.getAction(), n2 = e3.getCommand(); + if ("getTemp" !== n2.$db[n2.$db.length - 1].$method) + throw new Error("multiSend只支持子命令内使用getTemp"); + return { action: t3, command: n2 }; + }); + return this._callCloudFunction({ multiCommand: t2, queryList: e2 }); + } + } { + _parseResult(e2) { + return this._isJQL ? e2.result : e2; + } + _callCloudFunction({ action: e2, command: t2, multiCommand: n2, queryList: s2 }) { + function r2(e3, t3) { + if (n2 && s2) + for (let n3 = 0; n3 < s2.length; n3++) { + const r3 = s2[n3]; + r3.udb && "function" == typeof r3.udb.setResult && (t3 ? r3.udb.setResult(t3) : r3.udb.setResult(e3.result.dataList[n3])); + } + } + const i2 = this, o2 = this._isJQL ? "databaseForJQL" : "database"; + function a2(e3) { + return i2._callback("error", [e3]), M(q(o2, "fail"), e3).then(() => M(q(o2, "complete"), e3)).then(() => (r2(null, e3), Y(j, { type: W, content: e3 }), Promise.reject(e3))); + } + const c2 = M(q(o2, "invoke")), u2 = this._uniClient; + return c2.then(() => u2.callFunction({ name: "DCloud-clientDB", type: h, data: { action: e2, command: t2, multiCommand: n2 } })).then((e3) => { + const { code: t3, message: n3, token: s3, tokenExpired: c3, systemInfo: u3 = [] } = e3.result; + if (u3) + for (let e4 = 0; e4 < u3.length; e4++) { + const { level: t4, message: n4, detail: s4 } = u3[e4], r3 = console["warn" === t4 ? "error" : t4] || console.log; + let i3 = "[System Info]" + n4; + s4 && (i3 = `${i3} +详细信息:${s4}`), r3(i3); + } + if (t3) { + return a2(new te({ code: t3, message: n3, requestId: e3.requestId })); + } + e3.result.errCode = e3.result.errCode || e3.result.code, e3.result.errMsg = e3.result.errMsg || e3.result.message, s3 && c3 && (ie({ token: s3, tokenExpired: c3 }), this._callbackAuth("refreshToken", [{ token: s3, tokenExpired: c3 }]), this._callback("refreshToken", [{ token: s3, tokenExpired: c3 }]), Y(B, { token: s3, tokenExpired: c3 })); + const h2 = [{ prop: "affectedDocs", tips: "affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代" }, { prop: "code", tips: "code不再推荐使用,请使用errCode替代" }, { prop: "message", tips: "message不再推荐使用,请使用errMsg替代" }]; + for (let t4 = 0; t4 < h2.length; t4++) { + const { prop: n4, tips: s4 } = h2[t4]; + if (n4 in e3.result) { + const t5 = e3.result[n4]; + Object.defineProperty(e3.result, n4, { get: () => (console.warn(s4), t5) }); + } + } + return function(e4) { + return M(q(o2, "success"), e4).then(() => M(q(o2, "complete"), e4)).then(() => { + r2(e4, null); + const t4 = i2._parseResult(e4); + return Y(j, { type: W, content: t4 }), Promise.resolve(t4); + }); + }(e3); + }, (e3) => { + /fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e3.message) && console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"); + return a2(new te({ code: e3.code || "SYSTEM_ERROR", message: e3.message, requestId: e3.requestId })); + }); + } + } + const Zn = "token无效,跳转登录页面", es = "token过期,跳转登录页面", ts = { TOKEN_INVALID_TOKEN_EXPIRED: es, TOKEN_INVALID_INVALID_CLIENTID: Zn, TOKEN_INVALID: Zn, TOKEN_INVALID_WRONG_TOKEN: Zn, TOKEN_INVALID_ANONYMOUS_USER: Zn }, ns = { "uni-id-token-expired": es, "uni-id-check-token-failed": Zn, "uni-id-token-not-exist": Zn, "uni-id-check-device-feature-failed": Zn }; + function ss(e2, t2) { + let n2 = ""; + return n2 = e2 ? `${e2}/${t2}` : t2, n2.replace(/^\//, ""); + } + function rs(e2 = [], t2 = "") { + const n2 = [], s2 = []; + return e2.forEach((e3) => { + true === e3.needLogin ? n2.push(ss(t2, e3.path)) : false === e3.needLogin && s2.push(ss(t2, e3.path)); + }), { needLoginPage: n2, notNeedLoginPage: s2 }; + } + function is(e2) { + return e2.split("?")[0].replace(/^\//, ""); + } + function os() { + return function(e2) { + let t2 = e2 && e2.$page && e2.$page.fullPath || ""; + return t2 ? ("/" !== t2.charAt(0) && (t2 = "/" + t2), t2) : t2; + }(function() { + const e2 = getCurrentPages(); + return e2[e2.length - 1]; + }()); + } + function as() { + return is(os()); + } + function cs(e2 = "", t2 = {}) { + if (!e2) + return false; + if (!(t2 && t2.list && t2.list.length)) + return false; + const n2 = t2.list, s2 = is(e2); + return n2.some((e3) => e3.pagePath === s2); + } + const us = !!e.uniIdRouter; + const { loginPage: hs, routerNeedLogin: ls, resToLogin: ds, needLoginPage: ps, notNeedLoginPage: fs, loginPageInTabBar: gs } = function({ pages: t2 = [], subPackages: n2 = [], uniIdRouter: s2 = {}, tabBar: r2 = {} } = e) { + const { loginPage: i2, needLogin: o2 = [], resToLogin: a2 = true } = s2, { needLoginPage: c2, notNeedLoginPage: u2 } = rs(t2), { needLoginPage: h2, notNeedLoginPage: l2 } = function(e2 = []) { + const t3 = [], n3 = []; + return e2.forEach((e3) => { + const { root: s3, pages: r3 = [] } = e3, { needLoginPage: i3, notNeedLoginPage: o3 } = rs(r3, s3); + t3.push(...i3), n3.push(...o3); + }), { needLoginPage: t3, notNeedLoginPage: n3 }; + }(n2); + return { loginPage: i2, routerNeedLogin: o2, resToLogin: a2, needLoginPage: [...c2, ...h2], notNeedLoginPage: [...u2, ...l2], loginPageInTabBar: cs(i2, r2) }; + }(); + if (ps.indexOf(hs) > -1) + throw new Error(`Login page [${hs}] should not be "needLogin", please check your pages.json`); + function ms(e2) { + const t2 = as(); + if ("/" === e2.charAt(0)) + return e2; + const [n2, s2] = e2.split("?"), r2 = n2.replace(/^\//, "").split("/"), i2 = t2.split("/"); + i2.pop(); + for (let e3 = 0; e3 < r2.length; e3++) { + const t3 = r2[e3]; + ".." === t3 ? i2.pop() : "." !== t3 && i2.push(t3); + } + return "" === i2[0] && i2.shift(), "/" + i2.join("/") + (s2 ? "?" + s2 : ""); + } + function ys(e2) { + const t2 = is(ms(e2)); + return !(fs.indexOf(t2) > -1) && (ps.indexOf(t2) > -1 || ls.some((t3) => function(e3, t4) { + return new RegExp(t4).test(e3); + }(e2, t3))); + } + function _s({ redirect: e2 }) { + const t2 = is(e2), n2 = is(hs); + return as() !== n2 && t2 !== n2; + } + function ws({ api: e2, redirect: t2 } = {}) { + if (!t2 || !_s({ redirect: t2 })) + return; + const n2 = function(e3, t3) { + return "/" !== e3.charAt(0) && (e3 = "/" + e3), t3 ? e3.indexOf("?") > -1 ? e3 + `&uniIdRedirectUrl=${encodeURIComponent(t3)}` : e3 + `?uniIdRedirectUrl=${encodeURIComponent(t3)}` : e3; + }(hs, t2); + gs ? "navigateTo" !== e2 && "redirectTo" !== e2 || (e2 = "switchTab") : "switchTab" === e2 && (e2 = "navigateTo"); + const s2 = { navigateTo: uni.navigateTo, redirectTo: uni.redirectTo, switchTab: uni.switchTab, reLaunch: uni.reLaunch }; + setTimeout(() => { + s2[e2]({ url: n2 }); + }, 0); + } + function vs({ url: e2 } = {}) { + const t2 = { abortLoginPageJump: false, autoToLoginPage: false }, n2 = function() { + const { token: e3, tokenExpired: t3 } = re(); + let n3; + if (e3) { + if (t3 < Date.now()) { + const e4 = "uni-id-token-expired"; + n3 = { errCode: e4, errMsg: ns[e4] }; + } + } else { + const e4 = "uni-id-check-token-failed"; + n3 = { errCode: e4, errMsg: ns[e4] }; + } + return n3; + }(); + if (ys(e2) && n2) { + n2.uniIdRedirectUrl = e2; + if (J($).length > 0) + return setTimeout(() => { + Y($, n2); + }, 0), t2.abortLoginPageJump = true, t2; + t2.autoToLoginPage = true; + } + return t2; + } + function Is() { + !function() { + const e3 = os(), { abortLoginPageJump: t2, autoToLoginPage: n2 } = vs({ url: e3 }); + t2 || n2 && ws({ api: "redirectTo", redirect: e3 }); + }(); + const e2 = ["navigateTo", "redirectTo", "reLaunch", "switchTab"]; + for (let t2 = 0; t2 < e2.length; t2++) { + const n2 = e2[t2]; + uni.addInterceptor(n2, { invoke(e3) { + const { abortLoginPageJump: t3, autoToLoginPage: s2 } = vs({ url: e3.url }); + return t3 ? e3 : s2 ? (ws({ api: n2, redirect: ms(e3.url) }), false) : e3; + } }); + } + } + function Ss() { + this.onResponse((e2) => { + const { type: t2, content: n2 } = e2; + let s2 = false; + switch (t2) { + case "cloudobject": + s2 = function(e3) { + if ("object" != typeof e3) + return false; + const { errCode: t3 } = e3 || {}; + return t3 in ns; + }(n2); + break; + case "clientdb": + s2 = function(e3) { + if ("object" != typeof e3) + return false; + const { errCode: t3 } = e3 || {}; + return t3 in ts; + }(n2); + } + s2 && function(e3 = {}) { + const t3 = J($); + Z().then(() => { + const n3 = os(); + if (n3 && _s({ redirect: n3 })) + return t3.length > 0 ? Y($, Object.assign({ uniIdRedirectUrl: n3 }, e3)) : void (hs && ws({ api: "navigateTo", redirect: n3 })); + }); + }(n2); + }); + } + function bs(e2) { + !function(e3) { + e3.onResponse = function(e4) { + G(j, e4); + }, e3.offResponse = function(e4) { + V(j, e4); + }; + }(e2), function(e3) { + e3.onNeedLogin = function(e4) { + G($, e4); + }, e3.offNeedLogin = function(e4) { + V($, e4); + }, us && (L("_globalUniCloudStatus").needLoginInit || (L("_globalUniCloudStatus").needLoginInit = true, Z().then(() => { + Is.call(e3); + }), ds && Ss.call(e3))); + }(e2), function(e3) { + e3.onRefreshToken = function(e4) { + G(B, e4); + }, e3.offRefreshToken = function(e4) { + V(B, e4); + }; + }(e2); + } + let ks; + const As = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", Ps = /^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/; + function Ts() { + const e2 = re().token || "", t2 = e2.split("."); + if (!e2 || 3 !== t2.length) + return { uid: null, role: [], permission: [], tokenExpired: 0 }; + let n2; + try { + n2 = JSON.parse((s2 = t2[1], decodeURIComponent(ks(s2).split("").map(function(e3) { + return "%" + ("00" + e3.charCodeAt(0).toString(16)).slice(-2); + }).join("")))); + } catch (e3) { + throw new Error("获取当前用户信息出错,详细错误信息为:" + e3.message); + } + var s2; + return n2.tokenExpired = 1e3 * n2.exp, delete n2.exp, delete n2.iat, n2; + } + ks = "function" != typeof atob ? function(e2) { + if (e2 = String(e2).replace(/[\t\n\f\r ]+/g, ""), !Ps.test(e2)) + throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded."); + var t2; + e2 += "==".slice(2 - (3 & e2.length)); + for (var n2, s2, r2 = "", i2 = 0; i2 < e2.length; ) + t2 = As.indexOf(e2.charAt(i2++)) << 18 | As.indexOf(e2.charAt(i2++)) << 12 | (n2 = As.indexOf(e2.charAt(i2++))) << 6 | (s2 = As.indexOf(e2.charAt(i2++))), r2 += 64 === n2 ? String.fromCharCode(t2 >> 16 & 255) : 64 === s2 ? String.fromCharCode(t2 >> 16 & 255, t2 >> 8 & 255) : String.fromCharCode(t2 >> 16 & 255, t2 >> 8 & 255, 255 & t2); + return r2; + } : atob; + var Cs = n(function(e2, t2) { + Object.defineProperty(t2, "__esModule", { value: true }); + const n2 = "chooseAndUploadFile:ok", s2 = "chooseAndUploadFile:fail"; + function r2(e3, t3) { + return e3.tempFiles.forEach((e4, n3) => { + e4.name || (e4.name = e4.path.substring(e4.path.lastIndexOf("/") + 1)), t3 && (e4.fileType = t3), e4.cloudPath = Date.now() + "_" + n3 + e4.name.substring(e4.name.lastIndexOf(".")); + }), e3.tempFilePaths || (e3.tempFilePaths = e3.tempFiles.map((e4) => e4.path)), e3; + } + function i2(e3, t3, { onChooseFile: s3, onUploadProgress: r3 }) { + return t3.then((e4) => { + if (s3) { + const t4 = s3(e4); + if (void 0 !== t4) + return Promise.resolve(t4).then((t5) => void 0 === t5 ? e4 : t5); + } + return e4; + }).then((t4) => false === t4 ? { errMsg: n2, tempFilePaths: [], tempFiles: [] } : function(e4, t5, s4 = 5, r4) { + (t5 = Object.assign({}, t5)).errMsg = n2; + const i3 = t5.tempFiles, o2 = i3.length; + let a2 = 0; + return new Promise((n3) => { + for (; a2 < s4; ) + c2(); + function c2() { + const s5 = a2++; + if (s5 >= o2) + return void (!i3.find((e5) => !e5.url && !e5.errMsg) && n3(t5)); + const u2 = i3[s5]; + e4.uploadFile({ provider: u2.provider, filePath: u2.path, cloudPath: u2.cloudPath, fileType: u2.fileType, cloudPathAsRealPath: u2.cloudPathAsRealPath, onUploadProgress(e5) { + e5.index = s5, e5.tempFile = u2, e5.tempFilePath = u2.path, r4 && r4(e5); + } }).then((e5) => { + u2.url = e5.fileID, s5 < o2 && c2(); + }).catch((e5) => { + u2.errMsg = e5.errMsg || e5.message, s5 < o2 && c2(); + }); + } + }); + }(e3, t4, 5, r3)); + } + t2.initChooseAndUploadFile = function(e3) { + return function(t3 = { type: "all" }) { + return "image" === t3.type ? i2(e3, function(e4) { + const { count: t4, sizeType: n3, sourceType: i3 = ["album", "camera"], extension: o2 } = e4; + return new Promise((e5, a2) => { + uni.chooseImage({ count: t4, sizeType: n3, sourceType: i3, extension: o2, success(t5) { + e5(r2(t5, "image")); + }, fail(e6) { + a2({ errMsg: e6.errMsg.replace("chooseImage:fail", s2) }); + } }); + }); + }(t3), t3) : "video" === t3.type ? i2(e3, function(e4) { + const { camera: t4, compressed: n3, maxDuration: i3, sourceType: o2 = ["album", "camera"], extension: a2 } = e4; + return new Promise((e5, c2) => { + uni.chooseVideo({ camera: t4, compressed: n3, maxDuration: i3, sourceType: o2, extension: a2, success(t5) { + const { tempFilePath: n4, duration: s3, size: i4, height: o3, width: a3 } = t5; + e5(r2({ errMsg: "chooseVideo:ok", tempFilePaths: [n4], tempFiles: [{ name: t5.tempFile && t5.tempFile.name || "", path: n4, size: i4, type: t5.tempFile && t5.tempFile.type || "", width: a3, height: o3, duration: s3, fileType: "video", cloudPath: "" }] }, "video")); + }, fail(e6) { + c2({ errMsg: e6.errMsg.replace("chooseVideo:fail", s2) }); + } }); + }); + }(t3), t3) : i2(e3, function(e4) { + const { count: t4, extension: n3 } = e4; + return new Promise((e5, i3) => { + let o2 = uni.chooseFile; + if ("undefined" != typeof wx && "function" == typeof wx.chooseMessageFile && (o2 = wx.chooseMessageFile), "function" != typeof o2) + return i3({ errMsg: s2 + " 请指定 type 类型,该平台仅支持选择 image 或 video。" }); + o2({ type: "all", count: t4, extension: n3, success(t5) { + e5(r2(t5)); + }, fail(e6) { + i3({ errMsg: e6.errMsg.replace("chooseFile:fail", s2) }); + } }); + }); + }(t3), t3); + }; + }; + }), xs = t$1(Cs); + const Os = "manual"; + function Es(e2) { + return { props: { localdata: { type: Array, default: () => [] }, options: { type: [Object, Array], default: () => ({}) }, spaceInfo: { type: Object, default: () => ({}) }, collection: { type: [String, Array], default: "" }, action: { type: String, default: "" }, field: { type: String, default: "" }, orderby: { type: String, default: "" }, where: { type: [String, Object], default: "" }, pageData: { type: String, default: "add" }, pageCurrent: { type: Number, default: 1 }, pageSize: { type: Number, default: 20 }, getcount: { type: [Boolean, String], default: false }, gettree: { type: [Boolean, String], default: false }, gettreepath: { type: [Boolean, String], default: false }, startwith: { type: String, default: "" }, limitlevel: { type: Number, default: 10 }, groupby: { type: String, default: "" }, groupField: { type: String, default: "" }, distinct: { type: [Boolean, String], default: false }, foreignKey: { type: String, default: "" }, loadtime: { type: String, default: "auto" }, manual: { type: Boolean, default: false } }, data: () => ({ mixinDatacomLoading: false, mixinDatacomHasMore: false, mixinDatacomResData: [], mixinDatacomErrorMessage: "", mixinDatacomPage: {}, mixinDatacomError: null }), created() { + this.mixinDatacomPage = { current: this.pageCurrent, size: this.pageSize, count: 0 }, this.$watch(() => { + var e3 = []; + return ["pageCurrent", "pageSize", "localdata", "collection", "action", "field", "orderby", "where", "getont", "getcount", "gettree", "groupby", "groupField", "distinct"].forEach((t2) => { + e3.push(this[t2]); + }), e3; + }, (e3, t2) => { + if (this.loadtime === Os) + return; + let n2 = false; + const s2 = []; + for (let r2 = 2; r2 < e3.length; r2++) + e3[r2] !== t2[r2] && (s2.push(e3[r2]), n2 = true); + e3[0] !== t2[0] && (this.mixinDatacomPage.current = this.pageCurrent), this.mixinDatacomPage.size = this.pageSize, this.onMixinDatacomPropsChange(n2, s2); + }); + }, methods: { onMixinDatacomPropsChange(e3, t2) { + }, mixinDatacomEasyGet({ getone: e3 = false, success: t2, fail: n2 } = {}) { + this.mixinDatacomLoading || (this.mixinDatacomLoading = true, this.mixinDatacomErrorMessage = "", this.mixinDatacomError = null, this.mixinDatacomGet().then((n3) => { + this.mixinDatacomLoading = false; + const { data: s2, count: r2 } = n3.result; + this.getcount && (this.mixinDatacomPage.count = r2), this.mixinDatacomHasMore = s2.length < this.pageSize; + const i2 = e3 ? s2.length ? s2[0] : void 0 : s2; + this.mixinDatacomResData = i2, t2 && t2(i2); + }).catch((e4) => { + this.mixinDatacomLoading = false, this.mixinDatacomErrorMessage = e4, this.mixinDatacomError = e4, n2 && n2(e4); + })); + }, mixinDatacomGet(t2 = {}) { + let n2; + t2 = t2 || {}, n2 = "undefined" != typeof __uniX && __uniX ? e2.databaseForJQL(this.spaceInfo) : e2.database(this.spaceInfo); + const s2 = t2.action || this.action; + s2 && (n2 = n2.action(s2)); + const r2 = t2.collection || this.collection; + n2 = Array.isArray(r2) ? n2.collection(...r2) : n2.collection(r2); + const i2 = t2.where || this.where; + i2 && Object.keys(i2).length && (n2 = n2.where(i2)); + const o2 = t2.field || this.field; + o2 && (n2 = n2.field(o2)); + const a2 = t2.foreignKey || this.foreignKey; + a2 && (n2 = n2.foreignKey(a2)); + const c2 = t2.groupby || this.groupby; + c2 && (n2 = n2.groupBy(c2)); + const u2 = t2.groupField || this.groupField; + u2 && (n2 = n2.groupField(u2)); + true === (void 0 !== t2.distinct ? t2.distinct : this.distinct) && (n2 = n2.distinct()); + const h2 = t2.orderby || this.orderby; + h2 && (n2 = n2.orderBy(h2)); + const l2 = void 0 !== t2.pageCurrent ? t2.pageCurrent : this.mixinDatacomPage.current, d2 = void 0 !== t2.pageSize ? t2.pageSize : this.mixinDatacomPage.size, p2 = void 0 !== t2.getcount ? t2.getcount : this.getcount, f2 = void 0 !== t2.gettree ? t2.gettree : this.gettree, g2 = void 0 !== t2.gettreepath ? t2.gettreepath : this.gettreepath, m2 = { getCount: p2 }, y2 = { limitLevel: void 0 !== t2.limitlevel ? t2.limitlevel : this.limitlevel, startWith: void 0 !== t2.startwith ? t2.startwith : this.startwith }; + return f2 && (m2.getTree = y2), g2 && (m2.getTreePath = y2), n2 = n2.skip(d2 * (l2 - 1)).limit(d2).get(m2), n2; + } } }; + } + function Ls(e2) { + return function(t2, n2 = {}) { + n2 = function(e3, t3 = {}) { + return e3.customUI = t3.customUI || e3.customUI, e3.parseSystemError = t3.parseSystemError || e3.parseSystemError, Object.assign(e3.loadingOptions, t3.loadingOptions), Object.assign(e3.errorOptions, t3.errorOptions), "object" == typeof t3.secretMethods && (e3.secretMethods = t3.secretMethods), e3; + }({ customUI: false, loadingOptions: { title: "加载中...", mask: true }, errorOptions: { type: "modal", retry: false } }, n2); + const { customUI: s2, loadingOptions: r2, errorOptions: i2, parseSystemError: o2 } = n2, a2 = !s2; + return new Proxy({}, { get(s3, c2) { + switch (c2) { + case "toString": + return "[object UniCloudObject]"; + case "toJSON": + return {}; + } + return function({ fn: e3, interceptorName: t3, getCallbackArgs: n3 } = {}) { + return async function(...s4) { + const r3 = n3 ? n3({ params: s4 }) : {}; + let i3, o3; + try { + return await M(q(t3, "invoke"), { ...r3 }), i3 = await e3(...s4), await M(q(t3, "success"), { ...r3, result: i3 }), i3; + } catch (e4) { + throw o3 = e4, await M(q(t3, "fail"), { ...r3, error: o3 }), o3; + } finally { + await M(q(t3, "complete"), o3 ? { ...r3, error: o3 } : { ...r3, result: i3 }); + } + }; + }({ fn: async function s4(...h2) { + let l2; + a2 && uni.showLoading({ title: r2.title, mask: r2.mask }); + const d2 = { name: t2, type: u, data: { method: c2, params: h2 } }; + "object" == typeof n2.secretMethods && function(e3, t3) { + const n3 = t3.data.method, s5 = e3.secretMethods || {}, r3 = s5[n3] || s5["*"]; + r3 && (t3.secretType = r3); + }(n2, d2); + let p2 = false; + try { + l2 = await e2.callFunction(d2); + } catch (e3) { + p2 = true, l2 = { result: new te(e3) }; + } + const { errSubject: f2, errCode: g2, errMsg: m2, newToken: y2 } = l2.result || {}; + if (a2 && uni.hideLoading(), y2 && y2.token && y2.tokenExpired && (ie(y2), Y(B, { ...y2 })), g2) { + let e3 = m2; + if (p2 && o2) { + e3 = (await o2({ objectName: t2, methodName: c2, params: h2, errSubject: f2, errCode: g2, errMsg: m2 })).errMsg || m2; + } + if (a2) + if ("toast" === i2.type) + uni.showToast({ title: e3, icon: "none" }); + else { + if ("modal" !== i2.type) + throw new Error(`Invalid errorOptions.type: ${i2.type}`); + { + const { confirm: t3 } = await async function({ title: e4, content: t4, showCancel: n4, cancelText: s5, confirmText: r3 } = {}) { + return new Promise((i3, o3) => { + uni.showModal({ title: e4, content: t4, showCancel: n4, cancelText: s5, confirmText: r3, success(e5) { + i3(e5); + }, fail() { + i3({ confirm: false, cancel: true }); + } }); + }); + }({ title: "提示", content: e3, showCancel: i2.retry, cancelText: "取消", confirmText: i2.retry ? "重试" : "确定" }); + if (i2.retry && t3) + return s4(...h2); + } + } + const n3 = new te({ subject: f2, code: g2, message: m2, requestId: l2.requestId }); + throw n3.detail = l2.result, Y(j, { type: z, content: n3 }), n3; + } + return Y(j, { type: z, content: l2.result }), l2.result; + }, interceptorName: "callObject", getCallbackArgs: function({ params: e3 } = {}) { + return { objectName: t2, methodName: c2, params: e3 }; + } }); + } }); + }; + } + function Rs(e2) { + return L("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}", e2.config.spaceId)); + } + async function Us({ openid: e2, callLoginByWeixin: t2 = false } = {}) { + Rs(this); + throw new Error(`[SecureNetwork] API \`initSecureNetworkByWeixin\` is not supported on platform \`${P}\``); + } + async function Ns(e2) { + const t2 = Rs(this); + return t2.initPromise || (t2.initPromise = Us.call(this, e2).then((e3) => e3).catch((e3) => { + throw delete t2.initPromise, e3; + })), t2.initPromise; + } + function Ds(e2) { + return function({ openid: t2, callLoginByWeixin: n2 = false } = {}) { + return Ns.call(e2, { openid: t2, callLoginByWeixin: n2 }); + }; + } + function Ms(e2) { + const t2 = { getSystemInfo: uni.getSystemInfo, getPushClientId: uni.getPushClientId }; + return function(n2) { + return new Promise((s2, r2) => { + t2[e2]({ ...n2, success(e3) { + s2(e3); + }, fail(e3) { + r2(e3); + } }); + }); + }; + } + class qs extends class { + constructor() { + this._callback = {}; + } + addListener(e2, t2) { + this._callback[e2] || (this._callback[e2] = []), this._callback[e2].push(t2); + } + on(e2, t2) { + return this.addListener(e2, t2); + } + removeListener(e2, t2) { + if (!t2) + throw new Error('The "listener" argument must be of type function. Received undefined'); + const n2 = this._callback[e2]; + if (!n2) + return; + const s2 = function(e3, t3) { + for (let n3 = e3.length - 1; n3 >= 0; n3--) + if (e3[n3] === t3) + return n3; + return -1; + }(n2, t2); + n2.splice(s2, 1); + } + off(e2, t2) { + return this.removeListener(e2, t2); + } + removeAllListener(e2) { + delete this._callback[e2]; + } + emit(e2, ...t2) { + const n2 = this._callback[e2]; + if (n2) + for (let e3 = 0; e3 < n2.length; e3++) + n2[e3](...t2); + } + } { + constructor() { + super(), this._uniPushMessageCallback = this._receivePushMessage.bind(this), this._currentMessageId = -1, this._payloadQueue = []; + } + init() { + return Promise.all([Ms("getSystemInfo")(), Ms("getPushClientId")()]).then(([{ appId: e2 } = {}, { cid: t2 } = {}] = []) => { + if (!e2) + throw new Error("Invalid appId, please check the manifest.json file"); + if (!t2) + throw new Error("Invalid push client id"); + this._appId = e2, this._pushClientId = t2, this._seqId = Date.now() + "-" + Math.floor(9e5 * Math.random() + 1e5), this.emit("open"), this._initMessageListener(); + }, (e2) => { + throw this.emit("error", e2), this.close(), e2; + }); + } + async open() { + return this.init(); + } + _isUniCloudSSE(e2) { + if ("receive" !== e2.type) + return false; + const t2 = e2 && e2.data && e2.data.payload; + return !(!t2 || "UNI_CLOUD_SSE" !== t2.channel || t2.seqId !== this._seqId); + } + _receivePushMessage(e2) { + if (!this._isUniCloudSSE(e2)) + return; + const t2 = e2 && e2.data && e2.data.payload, { action: n2, messageId: s2, message: r2 } = t2; + this._payloadQueue.push({ action: n2, messageId: s2, message: r2 }), this._consumMessage(); + } + _consumMessage() { + for (; ; ) { + const e2 = this._payloadQueue.find((e3) => e3.messageId === this._currentMessageId + 1); + if (!e2) + break; + this._currentMessageId++, this._parseMessagePayload(e2); + } + } + _parseMessagePayload(e2) { + const { action: t2, messageId: n2, message: s2 } = e2; + "end" === t2 ? this._end({ messageId: n2, message: s2 }) : "message" === t2 && this._appendMessage({ messageId: n2, message: s2 }); + } + _appendMessage({ messageId: e2, message: t2 } = {}) { + this.emit("message", t2); + } + _end({ messageId: e2, message: t2 } = {}) { + this.emit("end", t2), this.close(); + } + _initMessageListener() { + uni.onPushMessage(this._uniPushMessageCallback); + } + _destroy() { + uni.offPushMessage(this._uniPushMessageCallback); + } + toJSON() { + return { appId: this._appId, pushClientId: this._pushClientId, seqId: this._seqId }; + } + close() { + this._destroy(), this.emit("close"); + } + } + async function Fs(e2, t2) { + const n2 = `http://${e2}:${t2}/system/ping`; + try { + const e3 = await (s2 = { url: n2, timeout: 500 }, new Promise((e4, t3) => { + ne.request({ ...s2, success(t4) { + e4(t4); + }, fail(e5) { + t3(e5); + } }); + })); + return !(!e3.data || 0 !== e3.data.code); + } catch (e3) { + return false; + } + var s2; + } + async function Ks(e2) { + { + const { osName: e3, osVersion: t3 } = ce(); + "ios" === e3 && function(e4) { + if (!e4 || "string" != typeof e4) + return 0; + const t4 = e4.match(/^(\d+)./); + return t4 && t4[1] ? parseInt(t4[1]) : 0; + }(t3) >= 14 && console.warn("iOS 14及以上版本连接uniCloud本地调试服务需要允许客户端查找并连接到本地网络上的设备(仅开发期间需要,发行后不需要)"); + } + const t2 = e2.__dev__; + if (!t2.debugInfo) + return; + const { address: n2, servePort: s2 } = t2.debugInfo, { address: r2 } = await async function(e3, t3) { + let n3; + for (let s3 = 0; s3 < e3.length; s3++) { + const r3 = e3[s3]; + if (await Fs(r3, t3)) { + n3 = r3; + break; + } + } + return { address: n3, port: t3 }; + }(n2, s2); + if (r2) + return t2.localAddress = r2, void (t2.localPort = s2); + const i2 = console["error"]; + let o2 = ""; + if ("remote" === t2.debugInfo.initialLaunchType ? (t2.debugInfo.forceRemote = true, o2 = "当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。") : o2 = "无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。", o2 += "\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs\n- 检查是否错误的使用拦截器修改uni.request方法的参数", 0 === P.indexOf("mp-") && (o2 += "\n- 小程序中如何使用uniCloud,请参考:https://uniapp.dcloud.net.cn/uniCloud/publish.html#useinmp"), !t2.debugInfo.forceRemote) + throw new Error(o2); + i2(o2); + } + function js(e2) { + e2._initPromiseHub || (e2._initPromiseHub = new v({ createPromise: function() { + let t2 = Promise.resolve(); + var n2; + n2 = 1, t2 = new Promise((e3) => { + setTimeout(() => { + e3(); + }, n2); + }); + const s2 = e2.auth(); + return t2.then(() => s2.getLoginState()).then((e3) => e3 ? Promise.resolve() : s2.signInAnonymously()); + } })); + } + const $s = { tcb: St, tencent: St, aliyun: pe, private: kt, alipay: Lt }; + let Bs = new class { + init(e2) { + let t2 = {}; + const n2 = $s[e2.provider]; + if (!n2) + throw new Error("未提供正确的provider参数"); + t2 = n2.init(e2), function(e3) { + const t3 = {}; + e3.__dev__ = t3, t3.debugLog = "app" === P; + const n3 = T; + n3 && !n3.code && (t3.debugInfo = n3); + const s2 = new v({ createPromise: function() { + return Ks(e3); + } }); + t3.initLocalNetwork = function() { + return s2.exec(); + }; + }(t2), js(t2), Kn(t2), function(e3) { + const t3 = e3.uploadFile; + e3.uploadFile = function(e4) { + return t3.call(this, e4); + }; + }(t2), function(e3) { + e3.database = function(t3) { + if (t3 && Object.keys(t3).length > 0) + return e3.init(t3).database(); + if (this._database) + return this._database; + const n3 = Qn(Xn, { uniClient: e3 }); + return this._database = n3, n3; + }, e3.databaseForJQL = function(t3) { + if (t3 && Object.keys(t3).length > 0) + return e3.init(t3).databaseForJQL(); + if (this._databaseForJQL) + return this._databaseForJQL; + const n3 = Qn(Xn, { uniClient: e3, isJQL: true }); + return this._databaseForJQL = n3, n3; + }; + }(t2), function(e3) { + e3.getCurrentUserInfo = Ts, e3.chooseAndUploadFile = xs.initChooseAndUploadFile(e3), Object.assign(e3, { get mixinDatacom() { + return Es(e3); + } }), e3.SSEChannel = qs, e3.initSecureNetworkByWeixin = Ds(e3), e3.importObject = Ls(e3); + }(t2); + return ["callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "chooseAndUploadFile"].forEach((e3) => { + if (!t2[e3]) + return; + const n3 = t2[e3]; + t2[e3] = function() { + return n3.apply(t2, Array.from(arguments)); + }, t2[e3] = (/* @__PURE__ */ function(e4, t3) { + return function(n4) { + let s2 = false; + if ("callFunction" === t3) { + const e5 = n4 && n4.type || c; + s2 = e5 !== c; + } + const r2 = "callFunction" === t3 && !s2, i2 = this._initPromiseHub.exec(); + n4 = n4 || {}; + const { success: o2, fail: a2, complete: u2 } = ee(n4), h2 = i2.then(() => s2 ? Promise.resolve() : M(q(t3, "invoke"), n4)).then(() => e4.call(this, n4)).then((e5) => s2 ? Promise.resolve(e5) : M(q(t3, "success"), e5).then(() => M(q(t3, "complete"), e5)).then(() => (r2 && Y(j, { type: H, content: e5 }), Promise.resolve(e5))), (e5) => s2 ? Promise.reject(e5) : M(q(t3, "fail"), e5).then(() => M(q(t3, "complete"), e5)).then(() => (Y(j, { type: H, content: e5 }), Promise.reject(e5)))); + if (!(o2 || a2 || u2)) + return h2; + h2.then((e5) => { + o2 && o2(e5), u2 && u2(e5), r2 && Y(j, { type: H, content: e5 }); + }, (e5) => { + a2 && a2(e5), u2 && u2(e5), r2 && Y(j, { type: H, content: e5 }); + }); + }; + }(t2[e3], e3)).bind(t2); + }), t2.init = this.init, t2; + } + }(); + (() => { + const e2 = C; + let t2 = {}; + if (e2 && 1 === e2.length) + t2 = e2[0], Bs = Bs.init(t2), Bs._isDefault = true; + else { + const t3 = ["auth", "callFunction", "uploadFile", "deleteFile", "getTempFileURL", "downloadFile", "database", "getCurrentUSerInfo", "importObject"]; + let n2; + n2 = e2 && e2.length > 0 ? "应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间" : "应用未关联服务空间,请在uniCloud目录右键关联服务空间", t3.forEach((e3) => { + Bs[e3] = function() { + return console.error(n2), Promise.reject(new te({ code: "SYS_ERR", message: n2 })); + }; + }); + } + Object.assign(Bs, { get mixinDatacom() { + return Es(Bs); + } }), bs(Bs), Bs.addInterceptor = N, Bs.removeInterceptor = D, Bs.interceptObject = F; + })(); + var Ws = Bs; + const ERR_MSG_OK = "chooseAndUploadFile:ok"; + const ERR_MSG_FAIL = "chooseAndUploadFile:fail"; + function chooseImage(opts) { + const { + count, + sizeType = ["original", "compressed"], + sourceType, + extension + } = opts; + return new Promise((resolve, reject) => { + uni.chooseImage({ + count, + sizeType, + sourceType, + extension, + success(res) { + resolve(normalizeChooseAndUploadFileRes(res, "image")); + }, + fail(res) { + reject({ + errMsg: res.errMsg.replace("chooseImage:fail", ERR_MSG_FAIL) + }); + } + }); + }); + } + function chooseVideo(opts) { + const { + count, + camera, + compressed, + maxDuration, + sourceType, + extension + } = opts; + return new Promise((resolve, reject) => { + uni.chooseVideo({ + camera, + compressed, + maxDuration, + sourceType, + extension, + success(res) { + const { + tempFilePath, + duration, + size, + height, + width + } = res; + resolve(normalizeChooseAndUploadFileRes({ + errMsg: "chooseVideo:ok", + tempFilePaths: [tempFilePath], + tempFiles: [{ + name: res.tempFile && res.tempFile.name || "", + path: tempFilePath, + size, + type: res.tempFile && res.tempFile.type || "", + width, + height, + duration, + fileType: "video", + cloudPath: "" + }] + }, "video")); + }, + fail(res) { + reject({ + errMsg: res.errMsg.replace("chooseVideo:fail", ERR_MSG_FAIL) + }); + } + }); + }); + } + function chooseAll(opts) { + const { + count, + extension + } = opts; + return new Promise((resolve, reject) => { + let chooseFile = uni.chooseFile; + if (typeof wx !== "undefined" && typeof wx.chooseMessageFile === "function") { + chooseFile = wx.chooseMessageFile; + } + if (typeof chooseFile !== "function") { + return reject({ + errMsg: ERR_MSG_FAIL + " 请指定 type 类型,该平台仅支持选择 image 或 video。" + }); + } + chooseFile({ + type: "all", + count, + extension, + success(res) { + resolve(normalizeChooseAndUploadFileRes(res)); + }, + fail(res) { + reject({ + errMsg: res.errMsg.replace("chooseFile:fail", ERR_MSG_FAIL) + }); + } + }); + }); + } + function normalizeChooseAndUploadFileRes(res, fileType) { + res.tempFiles.forEach((item, index) => { + if (!item.name) { + item.name = item.path.substring(item.path.lastIndexOf("/") + 1); + } + if (fileType) { + item.fileType = fileType; + } + item.cloudPath = Date.now() + "_" + index + item.name.substring(item.name.lastIndexOf(".")); + }); + if (!res.tempFilePaths) { + res.tempFilePaths = res.tempFiles.map((file) => file.path); + } + return res; + } + function uploadCloudFiles(files, max = 5, onUploadProgress) { + files = JSON.parse(JSON.stringify(files)); + const len = files.length; + let count = 0; + let self2 = this; + return new Promise((resolve) => { + while (count < max) { + next(); + } + function next() { + let cur = count++; + if (cur >= len) { + !files.find((item) => !item.url && !item.errMsg) && resolve(files); + return; + } + const fileItem = files[cur]; + const index = self2.files.findIndex((v2) => v2.uuid === fileItem.uuid); + fileItem.url = ""; + delete fileItem.errMsg; + Ws.uploadFile({ + filePath: fileItem.path, + cloudPath: fileItem.cloudPath, + fileType: fileItem.fileType, + onUploadProgress: (res) => { + res.index = index; + onUploadProgress && onUploadProgress(res); + } + }).then((res) => { + fileItem.url = res.fileID; + fileItem.index = index; + if (cur < len) { + next(); + } + }).catch((res) => { + fileItem.errMsg = res.errMsg || res.message; + fileItem.index = index; + if (cur < len) { + next(); + } + }); + } + }); + } + function uploadFiles(choosePromise, { + onChooseFile, + onUploadProgress + }) { + return choosePromise.then((res) => { + if (onChooseFile) { + const customChooseRes = onChooseFile(res); + if (typeof customChooseRes !== "undefined") { + return Promise.resolve(customChooseRes).then((chooseRes) => typeof chooseRes === "undefined" ? res : chooseRes); + } + } + return res; + }).then((res) => { + if (res === false) { + return { + errMsg: ERR_MSG_OK, + tempFilePaths: [], + tempFiles: [] + }; + } + return res; + }); + } + function chooseAndUploadFile(opts = { + type: "all" + }) { + if (opts.type === "image") { + return uploadFiles(chooseImage(opts), opts); + } else if (opts.type === "video") { + return uploadFiles(chooseVideo(opts), opts); + } + return uploadFiles(chooseAll(opts), opts); + } + const get_file_ext = (name) => { + const last_len = name.lastIndexOf("."); + const len = name.length; + return { + name: name.substring(0, last_len), + ext: name.substring(last_len + 1, len) + }; + }; + const get_extname = (fileExtname) => { + if (!Array.isArray(fileExtname)) { + let extname = fileExtname.replace(/(\[|\])/g, ""); + return extname.split(","); + } else { + return fileExtname; + } + }; + const get_files_and_is_max = (res, _extname) => { + let filePaths = []; + let files = []; + if (!_extname || _extname.length === 0) { + return { + filePaths, + files + }; + } + res.tempFiles.forEach((v2) => { + let fileFullName = get_file_ext(v2.name); + const extname = fileFullName.ext.toLowerCase(); + if (_extname.indexOf(extname) !== -1) { + files.push(v2); + filePaths.push(v2.path); + } + }); + if (files.length !== res.tempFiles.length) { + uni.showToast({ + title: `当前选择了${res.tempFiles.length}个文件 ,${res.tempFiles.length - files.length} 个文件格式不正确`, + icon: "none", + duration: 5e3 + }); + } + return { + filePaths, + files + }; + }; + const get_file_info = (filepath) => { + return new Promise((resolve, reject) => { + uni.getImageInfo({ + src: filepath, + success(res) { + resolve(res); + }, + fail(err) { + reject(err); + } + }); + }); + }; + const get_file_data = async (files, type = "image") => { + let fileFullName = get_file_ext(files.name); + const extname = fileFullName.ext.toLowerCase(); + let filedata = { + name: files.name, + uuid: files.uuid, + extname: extname || "", + cloudPath: files.cloudPath, + fileType: files.fileType, + thumbTempFilePath: files.thumbTempFilePath, + url: files.path || files.path, + size: files.size, + //单位是字节 + image: {}, + path: files.path, + video: {} + }; + if (type === "image") { + const imageinfo = await get_file_info(files.path); + delete filedata.video; + filedata.image.width = imageinfo.width; + filedata.image.height = imageinfo.height; + filedata.image.location = imageinfo.path; + } else { + delete filedata.image; + } + return filedata; + }; + const _sfc_main$q = { + name: "uploadImage", + emits: ["uploadFiles", "choose", "delFile"], + props: { + filesList: { + type: Array, + default() { + return []; + } + }, + disabled: { + type: Boolean, + default: false + }, + disablePreview: { + type: Boolean, + default: false + }, + limit: { + type: [Number, String], + default: 9 + }, + imageStyles: { + type: Object, + default() { + return { + width: "auto", + height: "auto", + border: {} + }; + } + }, + delIcon: { + type: Boolean, + default: true + }, + readonly: { + type: Boolean, + default: false + } + }, + computed: { + styles() { + let styles = { + width: "auto", + height: "auto", + border: {} + }; + return Object.assign(styles, this.imageStyles); + }, + boxStyle() { + const { + width = "auto", + height = "auto" + } = this.styles; + let obj = {}; + if (height === "auto") { + if (width !== "auto") { + obj.height = this.value2px(width); + obj["padding-top"] = 0; + } else { + obj.height = 0; + } + } else { + obj.height = this.value2px(height); + obj["padding-top"] = 0; + } + if (width === "auto") { + if (height !== "auto") { + obj.width = this.value2px(height); + } else { + obj.width = "33.3%"; + } + } else { + obj.width = this.value2px(width); + } + let classles = ""; + for (let i2 in obj) { + classles += `${i2}:${obj[i2]};`; + } + return classles; + }, + borderStyle() { + let { + border + } = this.styles; + let obj = {}; + const widthDefaultValue = 1; + const radiusDefaultValue = 3; + if (typeof border === "boolean") { + obj.border = border ? "1px #eee solid" : "none"; + } else { + let width = border && border.width || widthDefaultValue; + width = this.value2px(width); + let radius = border && border.radius || radiusDefaultValue; + radius = this.value2px(radius); + obj = { + "border-width": width, + "border-style": border && border.style || "solid", + "border-color": border && border.color || "#eee", + "border-radius": radius + }; + } + let classles = ""; + for (let i2 in obj) { + classles += `${i2}:${obj[i2]};`; + } + return classles; + } + }, + methods: { + uploadFiles(item, index) { + this.$emit("uploadFiles", item); + }, + choose() { + this.$emit("choose"); + }, + delFile(index) { + this.$emit("delFile", index); + }, + prviewImage(img, index) { + let urls = []; + if (Number(this.limit) === 1 && this.disablePreview && !this.disabled) { + this.$emit("choose"); + } + if (this.disablePreview) + return; + this.filesList.forEach((i2) => { + urls.push(i2.url); + }); + uni.previewImage({ + urls, + current: index + }); + }, + value2px(value) { + if (typeof value === "number") { + value += "px"; + } else { + if (value.indexOf("%") === -1) { + value = value.indexOf("px") !== -1 ? value : value + "px"; + } + } + return value; + } + } + }; + function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("view", { class: "uni-file-picker__container" }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList($props.filesList, (item, index) => { + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: "file-picker__box", + key: index, + style: vue.normalizeStyle($options.boxStyle) + }, + [ + vue.createElementVNode( + "view", + { + class: "file-picker__box-content", + style: vue.normalizeStyle($options.borderStyle) + }, + [ + vue.createElementVNode("image", { + class: "file-image", + src: item.url, + mode: "aspectFill", + onClick: vue.withModifiers(($event) => $options.prviewImage(item, index), ["stop"]) + }, null, 8, ["src", "onClick"]), + $props.delIcon && !$props.readonly ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "icon-del-box", + onClick: vue.withModifiers(($event) => $options.delFile(index), ["stop"]) + }, [ + vue.createElementVNode("view", { class: "icon-del" }), + vue.createElementVNode("view", { class: "icon-del rotate" }) + ], 8, ["onClick"])) : vue.createCommentVNode("v-if", true), + item.progress && item.progress !== 100 || item.progress === 0 ? (vue.openBlock(), vue.createElementBlock("view", { + key: 1, + class: "file-picker__progress" + }, [ + vue.createElementVNode("progress", { + class: "file-picker__progress-item", + percent: item.progress === -1 ? 0 : item.progress, + "stroke-width": "4", + backgroundColor: item.errMsg ? "#ff5a5f" : "#EBEBEB" + }, null, 8, ["percent", "backgroundColor"]) + ])) : vue.createCommentVNode("v-if", true), + item.errMsg ? (vue.openBlock(), vue.createElementBlock("view", { + key: 2, + class: "file-picker__mask", + onClick: vue.withModifiers(($event) => $options.uploadFiles(item, index), ["stop"]) + }, " 点击重试 ", 8, ["onClick"])) : vue.createCommentVNode("v-if", true) + ], + 4 + /* STYLE */ + ) + ], + 4 + /* STYLE */ + ); + }), + 128 + /* KEYED_FRAGMENT */ + )), + $props.filesList.length < $props.limit && !$props.readonly ? (vue.openBlock(), vue.createElementBlock( + "view", + { + key: 0, + class: "file-picker__box", + style: vue.normalizeStyle($options.boxStyle) + }, + [ + vue.createElementVNode( + "view", + { + class: "file-picker__box-content is-add", + style: vue.normalizeStyle($options.borderStyle), + onClick: _cache[0] || (_cache[0] = (...args) => $options.choose && $options.choose(...args)) + }, + [ + vue.renderSlot(_ctx.$slots, "default", {}, () => [ + vue.createElementVNode("view", { class: "icon-add" }), + vue.createElementVNode("view", { class: "icon-add rotate" }) + ], true) + ], + 4 + /* STYLE */ + ) + ], + 4 + /* STYLE */ + )) : vue.createCommentVNode("v-if", true) + ]); + } + const uploadImage = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$6], ["__scopeId", "data-v-bdfc07e0"], ["__file", "D:/projects/cxc-szcx-uniapp/uni_modules/uni-file-picker/components/uni-file-picker/upload-image.vue"]]); + const _sfc_main$p = { + name: "uploadFile", + emits: ["uploadFiles", "choose", "delFile"], + props: { + filesList: { + type: Array, + default() { + return []; + } + }, + delIcon: { + type: Boolean, + default: true + }, + limit: { + type: [Number, String], + default: 9 + }, + showType: { + type: String, + default: "" + }, + listStyles: { + type: Object, + default() { + return { + // 是否显示边框 + border: true, + // 是否显示分隔线 + dividline: true, + // 线条样式 + borderStyle: {} + }; + } + }, + readonly: { + type: Boolean, + default: false + } + }, + computed: { + list() { + let files = []; + this.filesList.forEach((v2) => { + files.push(v2); + }); + return files; + }, + styles() { + let styles = { + border: true, + dividline: true, + "border-style": {} + }; + return Object.assign(styles, this.listStyles); + }, + borderStyle() { + let { + borderStyle, + border + } = this.styles; + let obj = {}; + if (!border) { + obj.border = "none"; + } else { + let width = borderStyle && borderStyle.width || 1; + width = this.value2px(width); + let radius = borderStyle && borderStyle.radius || 5; + radius = this.value2px(radius); + obj = { + "border-width": width, + "border-style": borderStyle && borderStyle.style || "solid", + "border-color": borderStyle && borderStyle.color || "#eee", + "border-radius": radius + }; + } + let classles = ""; + for (let i2 in obj) { + classles += `${i2}:${obj[i2]};`; + } + return classles; + }, + borderLineStyle() { + let obj = {}; + let { + borderStyle + } = this.styles; + if (borderStyle && borderStyle.color) { + obj["border-color"] = borderStyle.color; + } + if (borderStyle && borderStyle.width) { + let width = borderStyle && borderStyle.width || 1; + let style = borderStyle && borderStyle.style || 0; + if (typeof width === "number") { + width += "px"; + } else { + width = width.indexOf("px") ? width : width + "px"; + } + obj["border-width"] = width; + if (typeof style === "number") { + style += "px"; + } else { + style = style.indexOf("px") ? style : style + "px"; + } + obj["border-top-style"] = style; + } + let classles = ""; + for (let i2 in obj) { + classles += `${i2}:${obj[i2]};`; + } + return classles; + } + }, + methods: { + uploadFiles(item, index) { + this.$emit("uploadFiles", { + item, + index + }); + }, + choose() { + this.$emit("choose"); + }, + delFile(index) { + this.$emit("delFile", index); + }, + value2px(value) { + if (typeof value === "number") { + value += "px"; + } else { + value = value.indexOf("px") !== -1 ? value : value + "px"; + } + return value; + } + } + }; + function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("view", { class: "uni-file-picker__files" }, [ + !$props.readonly ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "files-button", + onClick: _cache[0] || (_cache[0] = (...args) => $options.choose && $options.choose(...args)) + }, [ + vue.renderSlot(_ctx.$slots, "default", {}, void 0, true) + ])) : vue.createCommentVNode("v-if", true), + vue.createCommentVNode(` :class="{'is-text-box':showType === 'list'}" `), + $options.list.length > 0 ? (vue.openBlock(), vue.createElementBlock( + "view", + { + key: 1, + class: "uni-file-picker__lists is-text-box", + style: vue.normalizeStyle($options.borderStyle) + }, + [ + vue.createCommentVNode(" ,'is-list-card':showType === 'list-card' "), + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList($options.list, (item, index) => { + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass(["uni-file-picker__lists-box", { + "files-border": index !== 0 && $options.styles.dividline + }]), + key: index, + style: vue.normalizeStyle(index !== 0 && $options.styles.dividline && $options.borderLineStyle) + }, + [ + vue.createElementVNode("view", { class: "uni-file-picker__item" }, [ + vue.createCommentVNode(` :class="{'is-text-image':showType === 'list'}" `), + vue.createCommentVNode(' \r\n \r\n '), + vue.createElementVNode( + "view", + { class: "files__name" }, + vue.toDisplayString(item.name), + 1 + /* TEXT */ + ), + $props.delIcon && !$props.readonly ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "icon-del-box icon-files", + onClick: ($event) => $options.delFile(index) + }, [ + vue.createElementVNode("view", { class: "icon-del icon-files" }), + vue.createElementVNode("view", { class: "icon-del rotate" }) + ], 8, ["onClick"])) : vue.createCommentVNode("v-if", true) + ]), + item.progress && item.progress !== 100 || item.progress === 0 ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "file-picker__progress" + }, [ + vue.createElementVNode("progress", { + class: "file-picker__progress-item", + percent: item.progress === -1 ? 0 : item.progress, + "stroke-width": "4", + backgroundColor: item.errMsg ? "#ff5a5f" : "#EBEBEB" + }, null, 8, ["percent", "backgroundColor"]) + ])) : vue.createCommentVNode("v-if", true), + item.status === "error" ? (vue.openBlock(), vue.createElementBlock("view", { + key: 1, + class: "file-picker__mask", + onClick: vue.withModifiers(($event) => $options.uploadFiles(item, index), ["stop"]) + }, " 点击重试 ", 8, ["onClick"])) : vue.createCommentVNode("v-if", true) + ], + 6 + /* CLASS, STYLE */ + ); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ], + 4 + /* STYLE */ + )) : vue.createCommentVNode("v-if", true) + ]); + } + const uploadFile = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$5], ["__scopeId", "data-v-a54939c6"], ["__file", "D:/projects/cxc-szcx-uniapp/uni_modules/uni-file-picker/components/uni-file-picker/upload-file.vue"]]); + const _sfc_main$o = { + name: "uniFilePicker", + components: { + uploadImage, + uploadFile + }, + options: { + virtualHost: true + }, + emits: ["select", "success", "fail", "progress", "delete", "update:modelValue", "input"], + props: { + modelValue: { + type: [Array, Object], + default() { + return []; + } + }, + value: { + type: [Array, Object], + default() { + return []; + } + }, + disabled: { + type: Boolean, + default: false + }, + disablePreview: { + type: Boolean, + default: false + }, + delIcon: { + type: Boolean, + default: true + }, + // 自动上传 + autoUpload: { + type: Boolean, + default: true + }, + // 最大选择个数 ,h5只能限制单选或是多选 + limit: { + type: [Number, String], + default: 9 + }, + // 列表样式 grid | list | list-card + mode: { + type: String, + default: "grid" + }, + // 选择文件类型 image/video/all + fileMediatype: { + type: String, + default: "image" + }, + // 文件类型筛选 + fileExtname: { + type: [Array, String], + default() { + return []; + } + }, + title: { + type: String, + default: "" + }, + listStyles: { + type: Object, + default() { + return { + // 是否显示边框 + border: true, + // 是否显示分隔线 + dividline: true, + // 线条样式 + borderStyle: {} + }; + } + }, + imageStyles: { + type: Object, + default() { + return { + width: "auto", + height: "auto" + }; + } + }, + readonly: { + type: Boolean, + default: false + }, + returnType: { + type: String, + default: "array" + }, + sizeType: { + type: Array, + default() { + return ["original", "compressed"]; + } + }, + sourceType: { + type: Array, + default() { + return ["album", "camera"]; + } + }, + provider: { + type: String, + default: "" + // 默认上传到 unicloud 内置存储 extStorage 扩展存储 + } + }, + data() { + return { + files: [], + localValue: [] + }; + }, + watch: { + value: { + handler(newVal, oldVal) { + this.setValue(newVal, oldVal); + }, + immediate: true + }, + modelValue: { + handler(newVal, oldVal) { + this.setValue(newVal, oldVal); + }, + immediate: true + } + }, + computed: { + filesList() { + let files = []; + this.files.forEach((v2) => { + files.push(v2); + }); + return files; + }, + showType() { + if (this.fileMediatype === "image") { + return this.mode; + } + return "list"; + }, + limitLength() { + if (this.returnType === "object") { + return 1; + } + if (!this.limit) { + return 1; + } + if (this.limit >= 9) { + return 9; + } + return this.limit; + } + }, + created() { + if (!(Ws.config && Ws.config.provider)) { + this.noSpace = true; + Ws.chooseAndUploadFile = chooseAndUploadFile; + } + this.form = this.getForm("uniForms"); + this.formItem = this.getForm("uniFormsItem"); + if (this.form && this.formItem) { + if (this.formItem.name) { + this.rename = this.formItem.name; + this.form.inputChildrens.push(this); + } + } + }, + methods: { + /** + * 公开用户使用,清空文件 + * @param {Object} index + */ + clearFiles(index) { + if (index !== 0 && !index) { + this.files = []; + this.$nextTick(() => { + this.setEmit(); + }); + } else { + this.files.splice(index, 1); + } + this.$nextTick(() => { + this.setEmit(); + }); + }, + /** + * 公开用户使用,继续上传 + */ + upload() { + let files = []; + this.files.forEach((v2, index) => { + if (v2.status === "ready" || v2.status === "error") { + files.push(Object.assign({}, v2)); + } + }); + return this.uploadFiles(files); + }, + async setValue(newVal, oldVal) { + const newData = async (v2) => { + const reg = /cloud:\/\/([\w.]+\/?)\S*/; + let url = ""; + if (v2.fileID) { + url = v2.fileID; + } else { + url = v2.url; + } + if (reg.test(url)) { + v2.fileID = url; + v2.url = await this.getTempFileURL(url); + } + if (v2.url) + v2.path = v2.url; + return v2; + }; + if (this.returnType === "object") { + if (newVal) { + await newData(newVal); + } else { + newVal = {}; + } + } else { + if (!newVal) + newVal = []; + for (let i2 = 0; i2 < newVal.length; i2++) { + let v2 = newVal[i2]; + await newData(v2); + } + } + this.localValue = newVal; + if (this.form && this.formItem && !this.is_reset) { + this.is_reset = false; + this.formItem.setValue(this.localValue); + } + let filesData = Object.keys(newVal).length > 0 ? newVal : []; + this.files = [].concat(filesData); + }, + /** + * 选择文件 + */ + choose() { + if (this.disabled) + return; + if (this.files.length >= Number(this.limitLength) && this.showType !== "grid" && this.returnType === "array") { + uni.showToast({ + title: `您最多选择 ${this.limitLength} 个文件`, + icon: "none" + }); + return; + } + this.chooseFiles(); + }, + /** + * 选择文件并上传 + */ + chooseFiles() { + const _extname = get_extname(this.fileExtname); + Ws.chooseAndUploadFile({ + type: this.fileMediatype, + compressed: false, + sizeType: this.sizeType, + sourceType: this.sourceType, + // TODO 如果为空,video 有问题 + extension: _extname.length > 0 ? _extname : void 0, + count: this.limitLength - this.files.length, + //默认9 + onChooseFile: this.chooseFileCallback, + onUploadProgress: (progressEvent) => { + this.setProgress(progressEvent, progressEvent.index); + } + }).then((result) => { + this.setSuccessAndError(result.tempFiles); + }).catch((err) => { + formatAppLog("log", "at uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue:364", "选择失败", err); + }); + }, + /** + * 选择文件回调 + * @param {Object} res + */ + async chooseFileCallback(res) { + const _extname = get_extname(this.fileExtname); + const is_one = Number(this.limitLength) === 1 && this.disablePreview && !this.disabled || this.returnType === "object"; + if (is_one) { + this.files = []; + } + let { + filePaths, + files + } = get_files_and_is_max(res, _extname); + if (!(_extname && _extname.length > 0)) { + filePaths = res.tempFilePaths; + files = res.tempFiles; + } + let currentData = []; + for (let i2 = 0; i2 < files.length; i2++) { + if (this.limitLength - this.files.length <= 0) + break; + files[i2].uuid = Date.now(); + let filedata = await get_file_data(files[i2], this.fileMediatype); + filedata.progress = 0; + filedata.status = "ready"; + this.files.push(filedata); + currentData.push({ + ...filedata, + file: files[i2] + }); + } + this.$emit("select", { + tempFiles: currentData, + tempFilePaths: filePaths + }); + res.tempFiles = files; + if (!this.autoUpload || this.noSpace) { + res.tempFiles = []; + } + res.tempFiles.forEach((fileItem, index) => { + this.provider && (fileItem.provider = this.provider); + const fileNameSplit = fileItem.name.split("."); + const ext = fileNameSplit.pop(); + const fileName = fileNameSplit.join(".").replace(/[\s\/\?<>\\:\*\|":]/g, "_"); + fileItem.cloudPath = fileName + "_" + Date.now() + "_" + index + "." + ext; + }); + }, + /** + * 批传 + * @param {Object} e + */ + uploadFiles(files) { + files = [].concat(files); + return uploadCloudFiles.call(this, files, 5, (res) => { + this.setProgress(res, res.index, true); + }).then((result) => { + this.setSuccessAndError(result); + return result; + }).catch((err) => { + formatAppLog("log", "at uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue:437", err); + }); + }, + /** + * 成功或失败 + */ + async setSuccessAndError(res, fn) { + let successData = []; + let errorData = []; + let tempFilePath = []; + let errorTempFilePath = []; + for (let i2 = 0; i2 < res.length; i2++) { + const item = res[i2]; + const index = item.uuid ? this.files.findIndex((p2) => p2.uuid === item.uuid) : item.index; + if (index === -1 || !this.files) + break; + if (item.errMsg === "request:fail") { + this.files[index].url = item.path; + this.files[index].status = "error"; + this.files[index].errMsg = item.errMsg; + errorData.push(this.files[index]); + errorTempFilePath.push(this.files[index].url); + } else { + this.files[index].errMsg = ""; + this.files[index].fileID = item.url; + const reg = /cloud:\/\/([\w.]+\/?)\S*/; + if (reg.test(item.url)) { + this.files[index].url = await this.getTempFileURL(item.url); + } else { + this.files[index].url = item.url; + } + this.files[index].status = "success"; + this.files[index].progress += 1; + successData.push(this.files[index]); + tempFilePath.push(this.files[index].fileID); + } + } + if (successData.length > 0) { + this.setEmit(); + this.$emit("success", { + tempFiles: this.backObject(successData), + tempFilePaths: tempFilePath + }); + } + if (errorData.length > 0) { + this.$emit("fail", { + tempFiles: this.backObject(errorData), + tempFilePaths: errorTempFilePath + }); + } + }, + /** + * 获取进度 + * @param {Object} progressEvent + * @param {Object} index + * @param {Object} type + */ + setProgress(progressEvent, index, type) { + this.files.length; + const percentCompleted = Math.round(progressEvent.loaded * 100 / progressEvent.total); + let idx = index; + if (!type) { + idx = this.files.findIndex((p2) => p2.uuid === progressEvent.tempFile.uuid); + } + if (idx === -1 || !this.files[idx]) + return; + this.files[idx].progress = percentCompleted - 1; + this.$emit("progress", { + index: idx, + progress: parseInt(percentCompleted), + tempFile: this.files[idx] + }); + }, + /** + * 删除文件 + * @param {Object} index + */ + delFile(index) { + this.$emit("delete", { + index, + tempFile: this.files[index], + tempFilePath: this.files[index].url + }); + this.files.splice(index, 1); + this.$nextTick(() => { + this.setEmit(); + }); + }, + /** + * 获取文件名和后缀 + * @param {Object} name + */ + getFileExt(name) { + const last_len = name.lastIndexOf("."); + const len = name.length; + return { + name: name.substring(0, last_len), + ext: name.substring(last_len + 1, len) + }; + }, + /** + * 处理返回事件 + */ + setEmit() { + let data = []; + if (this.returnType === "object") { + data = this.backObject(this.files)[0]; + this.localValue = data ? data : null; + } else { + data = this.backObject(this.files); + if (!this.localValue) { + this.localValue = []; + } + this.localValue = [...data]; + } + this.$emit("update:modelValue", this.localValue); + }, + /** + * 处理返回参数 + * @param {Object} files + */ + backObject(files) { + let newFilesData = []; + files.forEach((v2) => { + newFilesData.push({ + extname: v2.extname, + fileType: v2.fileType, + image: v2.image, + name: v2.name, + path: v2.path, + size: v2.size, + fileID: v2.fileID, + url: v2.url, + // 修改删除一个文件后不能再上传的bug, #694 + uuid: v2.uuid, + status: v2.status, + cloudPath: v2.cloudPath + }); + }); + return newFilesData; + }, + async getTempFileURL(fileList) { + fileList = { + fileList: [].concat(fileList) + }; + const urls = await Ws.getTempFileURL(fileList); + return urls.fileList[0].tempFileURL || ""; + }, + /** + * 获取父元素实例 + */ + getForm(name = "uniForms") { + let parent = this.$parent; + let parentName = parent.$options.name; + while (parentName !== name) { + parent = parent.$parent; + if (!parent) + return false; + parentName = parent.$options.name; + } + return parent; + } + } + }; + function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) { + const _component_upload_image = vue.resolveComponent("upload-image"); + const _component_upload_file = vue.resolveComponent("upload-file"); + return vue.openBlock(), vue.createElementBlock("view", { class: "uni-file-picker" }, [ + $props.title ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "uni-file-picker__header" + }, [ + vue.createElementVNode( + "text", + { class: "file-title" }, + vue.toDisplayString($props.title), + 1 + /* TEXT */ + ), + vue.createElementVNode( + "text", + { class: "file-count" }, + vue.toDisplayString($options.filesList.length) + "/" + vue.toDisplayString($options.limitLength), + 1 + /* TEXT */ + ) + ])) : vue.createCommentVNode("v-if", true), + $props.fileMediatype === "image" && $options.showType === "grid" ? (vue.openBlock(), vue.createBlock(_component_upload_image, { + key: 1, + readonly: $props.readonly, + "image-styles": $props.imageStyles, + "files-list": $options.filesList, + limit: $options.limitLength, + disablePreview: $props.disablePreview, + delIcon: $props.delIcon, + onUploadFiles: $options.uploadFiles, + onChoose: $options.choose, + onDelFile: $options.delFile + }, { + default: vue.withCtx(() => [ + vue.renderSlot(_ctx.$slots, "default", {}, () => [ + vue.createElementVNode("view", { class: "is-add" }, [ + vue.createElementVNode("view", { class: "icon-add" }), + vue.createElementVNode("view", { class: "icon-add rotate" }) + ]) + ], true) + ]), + _: 3 + /* FORWARDED */ + }, 8, ["readonly", "image-styles", "files-list", "limit", "disablePreview", "delIcon", "onUploadFiles", "onChoose", "onDelFile"])) : vue.createCommentVNode("v-if", true), + $props.fileMediatype !== "image" || $options.showType !== "grid" ? (vue.openBlock(), vue.createBlock(_component_upload_file, { + key: 2, + readonly: $props.readonly, + "list-styles": $props.listStyles, + "files-list": $options.filesList, + showType: $options.showType, + delIcon: $props.delIcon, + onUploadFiles: $options.uploadFiles, + onChoose: $options.choose, + onDelFile: $options.delFile + }, { + default: vue.withCtx(() => [ + vue.renderSlot(_ctx.$slots, "default", {}, () => [ + vue.createElementVNode("button", { + type: "primary", + size: "mini" + }, "选择文件") + ], true) + ]), + _: 3 + /* FORWARDED */ + }, 8, ["readonly", "list-styles", "files-list", "showType", "delIcon", "onUploadFiles", "onChoose", "onDelFile"])) : vue.createCommentVNode("v-if", true) + ]); + } + const __easycom_0$2 = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$4], ["__scopeId", "data-v-6223573f"], ["__file", "D:/projects/cxc-szcx-uniapp/uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue"]]); + function qjAddApi(config) { + return https({ + url: "/CxcQxj/cxcQxj/add", + method: "post", + data: config + }); + } + function queryZwmcAndExaApi(username) { + return https({ + url: "/CxcQxj/cxcQxj/queryZwmcByUsername", + method: "get", + data: { + username + } + }); + } + function qjQueryByIdApi(config) { + return https({ + url: "/CxcQxj/cxcQxj/queryById", + method: "get", + data: config + }); + } + function queryDepByCode(code) { + return https({ + url: "/sys/sysDepart/queryDepNameByDepCode", + method: "get", + data: { + code + } + }); + } + function obj2strClass(obj) { + let classess = ""; + for (let key in obj) { + const val = obj[key]; + if (val) { + classess += `${key} `; + } + } + return classess; + } + function obj2strStyle(obj) { + let style = ""; + for (let key in obj) { + const val = obj[key]; + style += `${key}:${val};`; + } + return style; + } + const _sfc_main$n = { + name: "uni-easyinput", + emits: [ + "click", + "iconClick", + "update:modelValue", + "input", + "focus", + "blur", + "confirm", + "clear", + "eyes", + "change", + "keyboardheightchange" + ], + model: { + prop: "modelValue", + event: "update:modelValue" + }, + options: { + virtualHost: true + }, + inject: { + form: { + from: "uniForm", + default: null + }, + formItem: { + from: "uniFormItem", + default: null + } + }, + props: { + name: String, + value: [Number, String], + modelValue: [Number, String], + type: { + type: String, + default: "text" + }, + clearable: { + type: Boolean, + default: true + }, + autoHeight: { + type: Boolean, + default: false + }, + placeholder: { + type: String, + default: " " + }, + placeholderStyle: String, + focus: { + type: Boolean, + default: false + }, + disabled: { + type: Boolean, + default: false + }, + maxlength: { + type: [Number, String], + default: 140 + }, + confirmType: { + type: String, + default: "done" + }, + clearSize: { + type: [Number, String], + default: 24 + }, + inputBorder: { + type: Boolean, + default: true + }, + prefixIcon: { + type: String, + default: "" + }, + suffixIcon: { + type: String, + default: "" + }, + trim: { + type: [Boolean, String], + default: false + }, + cursorSpacing: { + type: Number, + default: 0 + }, + passwordIcon: { + type: Boolean, + default: true + }, + adjustPosition: { + type: Boolean, + default: true + }, + primaryColor: { + type: String, + default: "#2979ff" + }, + styles: { + type: Object, + default() { + return { + color: "#333", + backgroundColor: "#fff", + disableColor: "#F7F6F6", + borderColor: "#e5e5e5" + }; + } + }, + errorMessage: { + type: [String, Boolean], + default: "" + } + }, + data() { + return { + focused: false, + val: "", + showMsg: "", + border: false, + isFirstBorder: false, + showClearIcon: false, + showPassword: false, + focusShow: false, + localMsg: "", + isEnter: false + // 用于判断当前是否是使用回车操作 + }; + }, + computed: { + // 输入框内是否有值 + isVal() { + const val = this.val; + if (val || val === 0) { + return true; + } + return false; + }, + msg() { + return this.localMsg || this.errorMessage; + }, + // 因为uniapp的input组件的maxlength组件必须要数值,这里转为数值,用户可以传入字符串数值 + inputMaxlength() { + return Number(this.maxlength); + }, + // 处理外层样式的style + boxStyle() { + return `color:${this.inputBorder && this.msg ? "#e43d33" : this.styles.color};`; + }, + // input 内容的类和样式处理 + inputContentClass() { + return obj2strClass({ + "is-input-border": this.inputBorder, + "is-input-error-border": this.inputBorder && this.msg, + "is-textarea": this.type === "textarea", + "is-disabled": this.disabled, + "is-focused": this.focusShow + }); + }, + inputContentStyle() { + const focusColor = this.focusShow ? this.primaryColor : this.styles.borderColor; + const borderColor = this.inputBorder && this.msg ? "#dd524d" : focusColor; + return obj2strStyle({ + "border-color": borderColor || "#e5e5e5", + "background-color": this.disabled ? this.styles.disableColor : this.styles.backgroundColor + }); + }, + // input右侧样式 + inputStyle() { + const paddingRight = this.type === "password" || this.clearable || this.prefixIcon ? "" : "10px"; + return obj2strStyle({ + "padding-right": paddingRight, + "padding-left": this.prefixIcon ? "" : "10px" + }); + } + }, + watch: { + value(newVal) { + if (newVal === null) { + this.val = ""; + return; + } + this.val = newVal; + }, + modelValue(newVal) { + if (newVal === null) { + this.val = ""; + return; + } + this.val = newVal; + }, + focus(newVal) { + this.$nextTick(() => { + this.focused = this.focus; + this.focusShow = this.focus; + }); + } + }, + created() { + this.init(); + if (this.form && this.formItem) { + this.$watch("formItem.errMsg", (newVal) => { + this.localMsg = newVal; + }); + } + }, + mounted() { + this.$nextTick(() => { + this.focused = this.focus; + this.focusShow = this.focus; + }); + }, + methods: { + /** + * 初始化变量值 + */ + init() { + if (this.value || this.value === 0) { + this.val = this.value; + } else if (this.modelValue || this.modelValue === 0 || this.modelValue === "") { + this.val = this.modelValue; + } else { + this.val = ""; + } + }, + /** + * 点击图标时触发 + * @param {Object} type + */ + onClickIcon(type) { + this.$emit("iconClick", type); + }, + /** + * 显示隐藏内容,密码框时生效 + */ + onEyes() { + this.showPassword = !this.showPassword; + this.$emit("eyes", this.showPassword); + }, + /** + * 输入时触发 + * @param {Object} event + */ + onInput(event) { + let value = event.detail.value; + if (this.trim) { + if (typeof this.trim === "boolean" && this.trim) { + value = this.trimStr(value); + } + if (typeof this.trim === "string") { + value = this.trimStr(value, this.trim); + } + } + if (this.errMsg) + this.errMsg = ""; + this.val = value; + this.$emit("input", value); + this.$emit("update:modelValue", value); + }, + /** + * 外部调用方法 + * 获取焦点时触发 + * @param {Object} event + */ + onFocus() { + this.$nextTick(() => { + this.focused = true; + }); + this.$emit("focus", null); + }, + _Focus(event) { + this.focusShow = true; + this.$emit("focus", event); + }, + /** + * 外部调用方法 + * 失去焦点时触发 + * @param {Object} event + */ + onBlur() { + this.focused = false; + this.$emit("blur", null); + }, + _Blur(event) { + event.detail.value; + this.focusShow = false; + this.$emit("blur", event); + if (this.isEnter === false) { + this.$emit("change", this.val); + } + if (this.form && this.formItem) { + const { validateTrigger } = this.form; + if (validateTrigger === "blur") { + this.formItem.onFieldChange(); + } + } + }, + /** + * 按下键盘的发送键 + * @param {Object} e + */ + onConfirm(e2) { + this.$emit("confirm", this.val); + this.isEnter = true; + this.$emit("change", this.val); + this.$nextTick(() => { + this.isEnter = false; + }); + }, + /** + * 清理内容 + * @param {Object} event + */ + onClear(event) { + this.val = ""; + this.$emit("input", ""); + this.$emit("update:modelValue", ""); + this.$emit("clear"); + }, + /** + * 键盘高度发生变化的时候触发此事件 + * 兼容性:微信小程序2.7.0+、App 3.1.0+ + * @param {Object} event + */ + onkeyboardheightchange(event) { + this.$emit("keyboardheightchange", event); + }, + /** + * 去除空格 + */ + trimStr(str, pos = "both") { + if (pos === "both") { + return str.trim(); + } else if (pos === "left") { + return str.trimLeft(); + } else if (pos === "right") { + return str.trimRight(); + } else if (pos === "start") { + return str.trimStart(); + } else if (pos === "end") { + return str.trimEnd(); + } else if (pos === "all") { + return str.replace(/\s+/g, ""); + } else if (pos === "none") { + return str; + } + return str; + } + } + }; + function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) { + const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_1$1); + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass(["uni-easyinput", { "uni-easyinput-error": $options.msg }]), + style: vue.normalizeStyle($options.boxStyle) + }, + [ + vue.createElementVNode( + "view", + { + class: vue.normalizeClass(["uni-easyinput__content", $options.inputContentClass]), + style: vue.normalizeStyle($options.inputContentStyle) + }, + [ + $props.prefixIcon ? (vue.openBlock(), vue.createBlock(_component_uni_icons, { + key: 0, + class: "content-clear-icon", + type: $props.prefixIcon, + color: "#c0c4cc", + onClick: _cache[0] || (_cache[0] = ($event) => $options.onClickIcon("prefix")), + size: "22" + }, null, 8, ["type"])) : vue.createCommentVNode("v-if", true), + vue.renderSlot(_ctx.$slots, "left", {}, void 0, true), + $props.type === "textarea" ? (vue.openBlock(), vue.createElementBlock("textarea", { + key: 1, + class: vue.normalizeClass(["uni-easyinput__content-textarea", { "input-padding": $props.inputBorder }]), + name: $props.name, + value: $data.val, + placeholder: $props.placeholder, + placeholderStyle: $props.placeholderStyle, + disabled: $props.disabled, + "placeholder-class": "uni-easyinput__placeholder-class", + maxlength: $options.inputMaxlength, + focus: $data.focused, + autoHeight: $props.autoHeight, + "cursor-spacing": $props.cursorSpacing, + "adjust-position": $props.adjustPosition, + onInput: _cache[1] || (_cache[1] = (...args) => $options.onInput && $options.onInput(...args)), + onBlur: _cache[2] || (_cache[2] = (...args) => $options._Blur && $options._Blur(...args)), + onFocus: _cache[3] || (_cache[3] = (...args) => $options._Focus && $options._Focus(...args)), + onConfirm: _cache[4] || (_cache[4] = (...args) => $options.onConfirm && $options.onConfirm(...args)), + onKeyboardheightchange: _cache[5] || (_cache[5] = (...args) => $options.onkeyboardheightchange && $options.onkeyboardheightchange(...args)) + }, null, 42, ["name", "value", "placeholder", "placeholderStyle", "disabled", "maxlength", "focus", "autoHeight", "cursor-spacing", "adjust-position"])) : (vue.openBlock(), vue.createElementBlock("input", { + key: 2, + type: $props.type === "password" ? "text" : $props.type, + class: "uni-easyinput__content-input", + style: vue.normalizeStyle($options.inputStyle), + name: $props.name, + value: $data.val, + password: !$data.showPassword && $props.type === "password", + placeholder: $props.placeholder, + placeholderStyle: $props.placeholderStyle, + "placeholder-class": "uni-easyinput__placeholder-class", + disabled: $props.disabled, + maxlength: $options.inputMaxlength, + focus: $data.focused, + confirmType: $props.confirmType, + "cursor-spacing": $props.cursorSpacing, + "adjust-position": $props.adjustPosition, + onFocus: _cache[6] || (_cache[6] = (...args) => $options._Focus && $options._Focus(...args)), + onBlur: _cache[7] || (_cache[7] = (...args) => $options._Blur && $options._Blur(...args)), + onInput: _cache[8] || (_cache[8] = (...args) => $options.onInput && $options.onInput(...args)), + onConfirm: _cache[9] || (_cache[9] = (...args) => $options.onConfirm && $options.onConfirm(...args)), + onKeyboardheightchange: _cache[10] || (_cache[10] = (...args) => $options.onkeyboardheightchange && $options.onkeyboardheightchange(...args)) + }, null, 44, ["type", "name", "value", "password", "placeholder", "placeholderStyle", "disabled", "maxlength", "focus", "confirmType", "cursor-spacing", "adjust-position"])), + $props.type === "password" && $props.passwordIcon ? (vue.openBlock(), vue.createElementBlock( + vue.Fragment, + { key: 3 }, + [ + vue.createCommentVNode(" 开启密码时显示小眼睛 "), + $options.isVal ? (vue.openBlock(), vue.createBlock(_component_uni_icons, { + key: 0, + class: vue.normalizeClass(["content-clear-icon", { "is-textarea-icon": $props.type === "textarea" }]), + type: $data.showPassword ? "eye-slash-filled" : "eye-filled", + size: 22, + color: $data.focusShow ? $props.primaryColor : "#c0c4cc", + onClick: $options.onEyes + }, null, 8, ["class", "type", "color", "onClick"])) : vue.createCommentVNode("v-if", true) + ], + 64 + /* STABLE_FRAGMENT */ + )) : vue.createCommentVNode("v-if", true), + $props.suffixIcon ? (vue.openBlock(), vue.createElementBlock( + vue.Fragment, + { key: 4 }, + [ + $props.suffixIcon ? (vue.openBlock(), vue.createBlock(_component_uni_icons, { + key: 0, + class: "content-clear-icon", + type: $props.suffixIcon, + color: "#c0c4cc", + onClick: _cache[11] || (_cache[11] = ($event) => $options.onClickIcon("suffix")), + size: "22" + }, null, 8, ["type"])) : vue.createCommentVNode("v-if", true) + ], + 64 + /* STABLE_FRAGMENT */ + )) : (vue.openBlock(), vue.createElementBlock( + vue.Fragment, + { key: 5 }, + [ + $props.clearable && $options.isVal && !$props.disabled && $props.type !== "textarea" ? (vue.openBlock(), vue.createBlock(_component_uni_icons, { + key: 0, + class: vue.normalizeClass(["content-clear-icon", { "is-textarea-icon": $props.type === "textarea" }]), + type: "clear", + size: $props.clearSize, + color: $options.msg ? "#dd524d" : $data.focusShow ? $props.primaryColor : "#c0c4cc", + onClick: $options.onClear + }, null, 8, ["class", "size", "color", "onClick"])) : vue.createCommentVNode("v-if", true) + ], + 64 + /* STABLE_FRAGMENT */ + )), + vue.renderSlot(_ctx.$slots, "right", {}, void 0, true) + ], + 6 + /* CLASS, STYLE */ + ) + ], + 6 + /* CLASS, STYLE */ + ); + } + const __easycom_1 = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$3], ["__scopeId", "data-v-09fd5285"], ["__file", "D:/projects/cxc-szcx-uniapp/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue"]]); + function isString(data) { + return typeof data === "string"; + } + function paging(data, PAGENUM = 50) { + if (!Array.isArray(data) || !data.length) + return data; + const pages2 = []; + data.forEach((item, index) => { + const i2 = Math.floor(index / PAGENUM); + if (!pages2[i2]) { + pages2[i2] = []; + } + pages2[i2].push(item); + }); + return pages2; + } + const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({ + __name: "data-select-item", + props: { + node: { + type: Object, + default: () => ({}) + }, + choseParent: { + type: Boolean, + default: true + }, + dataLabel: { + type: String, + default: "name" + }, + dataValue: { + type: String, + default: "value" + }, + dataChildren: { + type: String, + default: "children" + }, + border: { + type: Boolean, + default: false + }, + linkage: { + type: Boolean, + default: false + }, + lazyLoadChildren: { + type: Boolean, + default: false + }, + level: { + type: Number, + default: 0 + }, + mutiple: { + type: Boolean, + default: false + } + }, + setup(__props) { + const { nodeClick, nameClick, loadNode, initData, addNode } = vue.inject("nodeFn"); + const props = __props; + const listData = vue.ref([]); + const clearTimerList = vue.ref([]); + const loadingArr = vue.ref([]); + vue.watchEffect(() => { + if (props.node.showChildren && props.node[props.dataChildren] && props.node[props.dataChildren].length) { + resetClearTimerList(); + renderTree(props.node[props.dataChildren]); + } + }); + function resetClearTimerList() { + const list = [...clearTimerList.value]; + clearTimerList.value = []; + list.forEach((fn) => fn()); + } + function renderTree(arr) { + const pagingArr = paging(arr); + listData.value = (pagingArr == null ? void 0 : pagingArr[0]) || []; + lazyRenderList(pagingArr, 1); + } + function lazyRenderList(arr, startIndex) { + for (let i2 = startIndex; i2 < arr.length; i2++) { + let timer = null; + timer = setTimeout(() => { + listData.value.push(...arr[i2]); + }, i2 * 500); + clearTimerList.push(() => clearTimeout(timer)); + } + } + function handleNameClick(node) { + var _a; + if (!node.visible) + return; + if (!((_a = node[props.dataChildren]) == null ? void 0 : _a.length) && props.lazyLoadChildren) { + loadingArr.value.push(node[props.dataValue].toString()); + loadNode(node).then((res) => { + addNode(node, initData(res, node.visible)); + }).finally(() => { + loadingArr.value = []; + }); + } else { + nameClick(node); + } + } + return (_ctx, _cache) => { + const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_1$1); + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass(["customthree-tree-select-content", { + border: __props.border && __props.node[__props.dataChildren] && __props.node[__props.dataChildren].length && __props.node.showChildren + }]), + style: vue.normalizeStyle({ marginLeft: `${__props.level ? 14 : 0}px` }) + }, + [ + __props.node.visible ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "custom-tree-select-item" + }, [ + vue.createElementVNode("view", { class: "item-content" }, [ + vue.createElementVNode("view", { + class: "left", + onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => handleNameClick(__props.node), ["stop"])) + }, [ + vue.createElementVNode("view", { class: "icon-group" }, [ + __props.node[__props.dataChildren] && __props.node[__props.dataChildren].length ? (vue.openBlock(), vue.createElementBlock( + "view", + { + key: 0, + class: vue.normalizeClass(["right-icon", { active: __props.node.showChildren }]) + }, + [ + vue.createVNode(_component_uni_icons, { + type: "right", + size: "14", + color: "#333" + }) + ], + 2 + /* CLASS */ + )) : (vue.openBlock(), vue.createElementBlock("view", { + key: 1, + class: "smallcircle-filled" + }, [ + vue.createVNode(_component_uni_icons, { + class: "smallcircle-filled-icon", + type: "smallcircle-filled", + size: "10", + color: "#333" + }) + ])) + ]), + loadingArr.value.includes(__props.node[props.dataValue].toString()) ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "loading-icon-box" + }, [ + vue.createVNode(_component_uni_icons, { + class: "loading-icon", + type: "spinner-cycle", + size: "14", + color: "#333" + }) + ])) : vue.createCommentVNode("v-if", true), + vue.createElementVNode( + "view", + { + class: "name", + style: vue.normalizeStyle(__props.node.disabled ? "color: #999" : "") + }, + [ + vue.createElementVNode( + "text", + null, + vue.toDisplayString(__props.node[__props.dataLabel]), + 1 + /* TEXT */ + ) + ], + 4 + /* STYLE */ + ) + ]), + __props.choseParent || !__props.choseParent && !__props.node[__props.dataChildren] || !__props.choseParent && __props.node[__props.dataChildren] && !__props.node[__props.dataChildren].length ? (vue.openBlock(), vue.createElementBlock( + "view", + { + key: 0, + class: vue.normalizeClass(["check-box", { disabled: __props.node.disabled }]), + style: vue.normalizeStyle({ "border-radius": __props.mutiple ? "3px" : "50%" }), + onClick: _cache[1] || (_cache[1] = vue.withModifiers(($event) => !__props.node.disabled && vue.unref(nodeClick)(__props.node), ["stop"])) + }, + [ + !__props.node.checked && __props.node.partChecked && __props.linkage ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "part-checked" + })) : vue.createCommentVNode("v-if", true), + __props.node.checked ? (vue.openBlock(), vue.createBlock(_component_uni_icons, { + key: 1, + type: "checkmarkempty", + size: "18", + color: __props.node.disabled ? "#333" : "#007aff" + }, null, 8, ["color"])) : vue.createCommentVNode("v-if", true) + ], + 6 + /* CLASS, STYLE */ + )) : vue.createCommentVNode("v-if", true) + ]) + ])) : vue.createCommentVNode("v-if", true), + __props.node.showChildren && __props.node[__props.dataChildren] && __props.node[__props.dataChildren].length ? (vue.openBlock(), vue.createElementBlock("view", { key: 1 }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(listData.value, (item) => { + return vue.openBlock(), vue.createBlock(dataSelectItem, { + key: item[__props.dataValue], + node: item, + dataLabel: __props.dataLabel, + dataValue: __props.dataValue, + dataChildren: __props.dataChildren, + choseParent: __props.choseParent, + lazyLoadChildren: __props.lazyLoadChildren, + border: __props.border, + linkage: __props.linkage, + level: __props.level + 1 + }, null, 8, ["node", "dataLabel", "dataValue", "dataChildren", "choseParent", "lazyLoadChildren", "border", "linkage", "level"]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ])) : vue.createCommentVNode("v-if", true) + ], + 6 + /* CLASS, STYLE */ + ); + }; + } + }); + const dataSelectItem = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-3a65eef7"], ["__file", "D:/projects/cxc-szcx-uniapp/components/treeSelect/data-select-item.vue"]]); + const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({ + __name: "treeSelect", + props: { + canSelectAll: { + type: Boolean, + default: false + }, + safeArea: { + type: Boolean, + default: true + }, + search: { + type: Boolean, + default: false + }, + clearResetSearch: { + type: Boolean, + default: false + }, + animation: { + type: Boolean, + default: true + }, + "is-mask-click": { + type: Boolean, + default: true + }, + "mask-background-color": { + type: String, + default: "rgba(0,0,0,0.4)" + }, + "background-color": { + type: String, + default: "none" + }, + "safe-area": { + type: Boolean, + default: true + }, + choseParent: { + type: Boolean, + default: false + }, + placeholder: { + type: String, + default: "请选择" + }, + confirmText: { + type: String, + default: "确认" + }, + confirmTextColor: { + type: String, + default: "#007aff" + }, + dataSource: { + type: Array, + default: () => [] + }, + dataLabel: { + type: String, + default: "name" + }, + dataValue: { + type: String, + default: "id" + }, + dataChildren: { + type: String, + default: "children" + }, + linkage: { + type: Boolean, + default: false + }, + removeLinkage: { + type: Boolean, + default: true + }, + clearable: { + type: Boolean, + default: false + }, + mutiple: { + type: Boolean, + default: false + }, + disabled: { + type: Boolean, + default: false + }, + deleteSource: { + type: Boolean, + default: false + }, + showChildren: { + type: Boolean, + default: false + }, + border: { + type: Boolean, + default: false + }, + lazyLoadChildren: { + type: Boolean, + default: false + }, + load: { + type: Function, + default: function() { + } + }, + modelValue: { + type: [Array, String], + default: () => [] + } + }, + emits: ["update:modelValue", "change", "maskClick", "select-change", "removeSelect"], + setup(__props, { emit: __emit }) { + const props = __props; + const emits = __emit; + const contentHeight = vue.ref("500px"); + const treeData = vue.ref([]); + const filterTreeData = vue.ref([]); + const clearTimerList = vue.ref([]); + const selectedListBaseinfo = vue.ref([]); + const showPopup = vue.ref(false); + const isSelectedAll = vue.ref(false); + const scrollTop = vue.ref(0); + const searchStr = vue.ref(""); + const popup = vue.ref(null); + const partCheckedSet = /* @__PURE__ */ new Set(); + vue.provide("nodeFn", { + nodeClick: handleNodeClick, + nameClick: handleHideChildren, + loadNode: props.load, + initData, + addNode + }); + const selectList = vue.computed(() => { + const newVal = props.modelValue === null ? "" : props.modelValue; + return isString(newVal) ? newVal.length ? newVal.split(",") : [] : newVal.map((item) => item.toString()); + }); + vue.onMounted(() => { + getContentHeight(uni.getSystemInfoSync()); + }); + function getContentHeight({ screenHeight }) { + contentHeight.value = `${Math.floor(screenHeight * 0.7)}px`; + } + vue.watch( + () => props.dataSource, + (newVal) => { + if (newVal) { + treeData.value = initData(newVal); + if (showPopup.value) { + resetClearTimerList(); + renderTree(treeData.value); + } + } + }, + { immediate: true, deep: true } + ); + vue.watch( + () => props.modelValue, + (newVal) => { + const ids = newVal ? Array.isArray(newVal) ? newVal : newVal.split(",") : []; + changeStatus(treeData.value, ids, true); + filterTreeData.value.length && changeStatus(filterTreeData.value, ids); + }, + { immediate: true } + ); + function goTop() { + scrollTop.val = 10; + vue.nextTick(() => { + scrollTop.value = 0; + }); + } + function handleSearch(isClear = false) { + resetClearTimerList(); + if (isClear) { + if (props.clearResetSearch) { + renderTree(treeData.value); + } + } else { + renderTree(searchValue(searchStr.value, treeData.value)); + } + goTop(); + uni.hideKeyboard(); + } + function searchValue(str, arr) { + const res = []; + arr.forEach((item) => { + var _a, _b; + if (item.visible) { + if (item[props.dataLabel].toString().toLowerCase().indexOf(str.toLowerCase()) > -1) { + res.push(item); + } else { + if ((_a = item[props.dataChildren]) == null ? void 0 : _a.length) { + const data = searchValue(str, item[props.dataChildren]); + if (data == null ? void 0 : data.length) { + if (str && !item.showChildren && ((_b = item[props.dataChildren]) == null ? void 0 : _b.length)) { + item.showChildren = true; + } + res.push({ + ...item, + [props.dataChildren]: data + }); + } + } + } + } + }); + return res; + } + async function open2() { + if (props.disabled) + return; + showPopup.value = true; + popup.value.open(); + renderTree(treeData.value); + } + function close() { + popup.value.close(); + } + function change(data) { + if (!data.show) { + resetClearTimerList(); + searchStr.value = ""; + showPopup.value = false; + } + emits("change", data); + } + function maskClick() { + emits("maskClick"); + } + function initData(arr, parentVisible) { + var _a; + if (!Array.isArray(arr)) + return []; + const res = []; + for (let i2 = 0; i2 < arr.length; i2++) { + const obj = { + [props.dataLabel]: arr[i2][props.dataLabel], + [props.dataValue]: arr[i2][props.dataValue] + }; + obj.checked = selectList.value.includes(arr[i2][props.dataValue].toString()); + obj.disabled = Boolean(arr[i2].disabled); + obj.partChecked = Boolean(arr[i2].partChecked === void 0 ? false : arr[i2].partChecked); + obj.partChecked && obj.partCheckedSet.add(obj[props.dataValue]); + !obj.partChecked && (isSelectedAll.value = false); + const parentVisibleState = parentVisible === void 0 ? true : parentVisible; + const curVisibleState = arr[i2].visible === void 0 ? true : Boolean(arr[i2].visible); + if (parentVisibleState === curVisibleState) { + obj.visible = parentVisibleState; + } else if (!parentVisibleState || !curVisibleState) { + obj.visible = false; + } else { + obj.visible = true; + } + obj.showChildren = "showChildren" in arr[i2] && arr[i2].showChildren != void 0 ? arr[i2].showChildren : props.showChildren; + if (arr[i2].visible && !arr[i2].disabled && !arr[i2].checked) { + isSelectedAll.value = false; + } + if ((_a = arr[i2][props.dataChildren]) == null ? void 0 : _a.length) { + obj[props.dataChildren] = initData(arr[i2][props.dataChildren], obj.visible); + } + res.push(obj); + } + return res; + } + function addNode(node, children) { + getReflectNode(node, treeData.value)[props.dataChildren] = children; + handleHideChildren(node); + } + function resetClearTimerList() { + const list = [...clearTimerList.value]; + clearTimerList.value = []; + list.forEach((fn) => fn()); + } + function renderTree(arr) { + const pagingArr = paging(arr); + filterTreeData.value = (pagingArr == null ? void 0 : pagingArr[0]) || []; + lazyRenderList(pagingArr, 1); + } + function lazyRenderList(arr, startIndex) { + for (let i2 = startIndex; i2 < arr.length; i2++) { + let timer = null; + timer = setTimeout(() => { + filterTreeData.value.push(...arr[i2]); + }, i2 * 500); + clearTimerList.push(() => clearTimeout(timer)); + } + } + function changeStatus(list, ids, needEmit = false) { + var _a; + const arr = [...list]; + let flag = true; + needEmit && (selectedListBaseinfo.value = []); + while (arr.length) { + const item = arr.shift(); + if (ids.includes(item[props.dataValue].toString())) { + item.checked = true; + item.partChecked = false; + partCheckedSet.delete(item[props.dataValue]); + needEmit && selectedListBaseinfo.value.push(item); + } else { + item.checked = false; + if (item.visible && !item.disabled) { + flag = false; + } + if (partCheckedSet.has(item[props.dataValue])) { + item.partChecked = true; + } else { + item.partChecked = false; + } + } + if ((_a = item[props.dataChildren]) == null ? void 0 : _a.length) { + arr.push(...item[props.dataChildren]); + } + } + isSelectedAll.value = flag; + needEmit && emits("select-change", [...selectedListBaseinfo.value]); + } + function removeSelectedItem(node) { + isSelectedAll.value = false; + if (props.linkage) { + handleNodeClick(node, false); + emits("removeSelect", node); + } else { + const emitData = selectList.value.filter((item) => item !== node[props.dataValue].toString()); + emits("removeSelect", node); + emits("update:modelValue", isString(props.modelValue) ? emitData.join(",") : emitData); + } + } + function getReflectNode(node, arr) { + var _a; + const array = [...arr]; + while (array.length) { + const item = array.shift(); + if (item[props.dataValue] === node[props.dataValue]) { + return item; + } + if ((_a = item[props.dataChildren]) == null ? void 0 : _a.length) { + array.push(...item[props.dataChildren]); + } + } + return {}; + } + function getChildren(node) { + var _a; + if (!((_a = node[props.dataChildren]) == null ? void 0 : _a.length)) + return []; + const res = node[props.dataChildren].reduce((pre, val) => { + if (val.visible) { + return [...pre, val]; + } + return pre; + }, []); + for (let i2 = 0; i2 < node[props.dataChildren].length; i2++) { + res.push(...getChildren(node[props.dataChildren][i2])); + } + return res; + } + function getParentNode(target, arr) { + var _a; + let res = []; + for (let i2 = 0; i2 < arr.length; i2++) { + if (arr[i2][props.dataValue] === target[props.dataValue]) { + return true; + } + if ((_a = arr[i2][props.dataChildren]) == null ? void 0 : _a.length) { + const childRes = getParentNode(target, arr[i2][props.dataChildren]); + if (typeof childRes === "boolean" && childRes) { + res = [arr[i2]]; + } else if (Array.isArray(childRes) && childRes.length) { + res = [...childRes, arr[i2]]; + } + } + } + return res; + } + function handleNodeClick(data, status) { + const node = getReflectNode(data, treeData.value); + node.checked = typeof status === "boolean" ? status : !node.checked; + node.partChecked = false; + partCheckedSet.delete(node[props.dataValue]); + if (!props.mutiple) { + let emitData = []; + if (node.checked) { + emitData = [node[props.dataValue].toString()]; + } + emits("update:modelValue", isString(props.modelValue) ? emitData.join(",") : emitData); + } else { + if (!props.linkage) { + let emitData = null; + if (node.checked) { + emitData = Array.from(/* @__PURE__ */ new Set([...selectList.value, node[props.dataValue].toString()])); + } else { + emitData = selectList.value.filter((id) => id !== node[props.dataValue].toString()); + } + emits("update:modelValue", isString(props.modelValue) ? emitData.join(",") : emitData); + } else { + let emitData = [...selectList.value]; + const parentNodes = getParentNode(node, treeData.value); + const childrenVal = getChildren(node).filter((item) => !item.disabled); + if (node.checked) { + emitData = Array.from(/* @__PURE__ */ new Set([...emitData, node[props.dataValue].toString()])); + if (childrenVal.length) { + emitData = Array.from( + /* @__PURE__ */ new Set([...emitData, ...childrenVal.map((item) => item[props.dataValue].toString())]) + ); + childrenVal.forEach((childNode) => { + childNode.partChecked = false; + partCheckedSet.delete(childNode[props.dataValue]); + }); + } + if (parentNodes.length) { + let flag = false; + while (parentNodes.length) { + const item = parentNodes.shift(); + if (!item.disabled) { + if (flag) { + item.partChecked = true; + partCheckedSet.add(item[props.dataValue]); + } else { + const allChecked = item[props.dataChildren].filter((node2) => node2.visible && !node2.disabled).every((node2) => node2.checked); + if (allChecked) { + item.checked = true; + item.partChecked = false; + partCheckedSet.delete(item[props.dataValue]); + emitData = Array.from(/* @__PURE__ */ new Set([...emitData, item[props.dataValue].toString()])); + } else { + item.partChecked = true; + partCheckedSet.add(item[props.dataValue]); + flag = true; + } + } + } + } + } + } else { + emitData = emitData.filter((id) => id !== node[props.dataValue].toString()); + if (childrenVal.length) { + childrenVal.forEach((childNode) => { + emitData = emitData.filter((id) => id !== childNode[props.dataValue].toString()); + }); + } + if (parentNodes.length) { + parentNodes.forEach((parentNode) => { + if (emitData.includes(parentNode[props.dataValue].toString())) { + parentNode.checked = false; + } + emitData = emitData.filter((id) => id !== parentNode[props.dataValue].toString()); + const hasChecked = parentNode[props.dataChildren].filter((node2) => node2.visible && !node2.disabled).some((node2) => node2.checked || node2.partChecked); + parentNode.partChecked = hasChecked; + if (hasChecked) { + partCheckedSet.add(parentNode[props.dataValue]); + } else { + partCheckedSet.delete(parentNode[props.dataValue]); + } + }); + } + } + emits("update:modelValue", isString(props.modelValue) ? emitData.join(",") : emitData); + } + } + } + function handleHideChildren(node) { + const status = !node.showChildren; + getReflectNode(node, treeData.value).showChildren = status; + getReflectNode(node, filterTreeData.value).showChildren = status; + } + function handleSelectAll() { + isSelectedAll.value = !isSelectedAll.value; + if (isSelectedAll.value) { + if (!props.mutiple) { + uni.showToast({ + title: "单选模式下不能全选", + icon: "none", + duration: 1e3 + }); + return; + } + let emitData = []; + treeData.value.forEach((item) => { + var _a; + if (item.visible || item.disabled && item.checked) { + emitData = Array.from(/* @__PURE__ */ new Set([...emitData, item[props.dataValue].toString()])); + if ((_a = item[props.dataChildren]) == null ? void 0 : _a.length) { + emitData = Array.from( + /* @__PURE__ */ new Set([ + ...emitData, + ...getChildren(item).filter((item2) => !item2.disabled || item2.disabled && item2.checked).map((item2) => item2[props.dataValue].toString()) + ]) + ); + } + } + }); + emits("update:modelValue", isString(props.modelValue) ? emitData.join(",") : emitData); + } else { + clearSelectList(); + } + } + function clearSelectList() { + if (props.disabled) + return; + partCheckedSet.clear(); + const emitData = []; + selectedListBaseinfo.value.forEach((node) => { + if (node.visible && node.checked && node.disabled) { + emitData.push(node[props.dataValue]); + } + }); + emits("update:modelValue", isString(props.modelValue) ? emitData.join(",") : emitData); + } + return (_ctx, _cache) => { + const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_1$1); + const _component_uni_easyinput = resolveEasycom(vue.resolveDynamicComponent("uni-easyinput"), __easycom_1); + const _component_uni_popup = resolveEasycom(vue.resolveDynamicComponent("uni-popup"), __easycom_2); + return vue.openBlock(), vue.createElementBlock( + vue.Fragment, + null, + [ + vue.createElementVNode( + "view", + { + class: vue.normalizeClass(["select-list", { disabled: __props.disabled }, { active: selectList.value.length }]), + onClick: open2 + }, + [ + vue.createElementVNode("view", { class: "left" }, [ + selectList.value.length ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "select-items" + }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(selectedListBaseinfo.value, (item) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: "select-item", + key: item[__props.dataValue] + }, [ + vue.createElementVNode("view", { class: "name" }, [ + vue.createElementVNode( + "text", + null, + vue.toDisplayString(item[__props.dataLabel]), + 1 + /* TEXT */ + ) + ]), + !__props.disabled && !item.disabled && __props.deleteSource ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "close", + onClick: vue.withModifiers(($event) => removeSelectedItem(item), ["stop"]) + }, [ + vue.createVNode(_component_uni_icons, { + type: "closeempty", + size: "16", + color: "#999" + }) + ], 8, ["onClick"])) : vue.createCommentVNode("v-if", true) + ]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ])) : (vue.openBlock(), vue.createElementBlock("view", { + key: 1, + class: "no-data" + }, [ + vue.createElementVNode( + "text", + null, + vue.toDisplayString(__props.placeholder), + 1 + /* TEXT */ + ) + ])) + ]), + vue.createElementVNode("view", null, [ + !selectList.value.length || !__props.clearable ? (vue.openBlock(), vue.createBlock(_component_uni_icons, { + key: 0, + type: "bottom", + color: "#333333" + })) : vue.createCommentVNode("v-if", true), + vue.createElementVNode("view", { + onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => { + }, ["stop"])) + }, [ + selectList.value.length && __props.clearable ? (vue.openBlock(), vue.createBlock(_component_uni_icons, { + key: 0, + type: "clear", + size: "24", + color: "#c0c4cc", + onClick: clearSelectList + })) : vue.createCommentVNode("v-if", true) + ]) + ]) + ], + 2 + /* CLASS */ + ), + vue.createVNode(_component_uni_popup, { + ref_key: "popup", + ref: popup, + animation: __props.animation, + "is-mask-click": _ctx.isMaskClick, + "mask-background-color": _ctx.maskBackgroundColor, + "background-color": _ctx.backgroundColor, + "safe-area": __props.safeArea, + type: "bottom", + onChange: change, + onMaskClick: maskClick + }, { + default: vue.withCtx(() => [ + vue.createElementVNode( + "view", + { + class: "popup-content", + style: vue.normalizeStyle({ height: contentHeight.value }) + }, + [ + vue.createElementVNode("view", { class: "title" }, [ + __props.mutiple && __props.canSelectAll ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "left", + onClick: handleSelectAll + }, [ + vue.createElementVNode( + "text", + null, + vue.toDisplayString(isSelectedAll.value ? "取消全选" : "全选"), + 1 + /* TEXT */ + ) + ])) : vue.createCommentVNode("v-if", true), + vue.createElementVNode("view", { class: "center" }, [ + vue.createElementVNode( + "text", + null, + vue.toDisplayString(__props.placeholder), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode( + "view", + { + class: "right", + style: vue.normalizeStyle({ color: __props.confirmTextColor }), + onClick: close + }, + [ + vue.createElementVNode( + "text", + null, + vue.toDisplayString(__props.confirmText), + 1 + /* TEXT */ + ) + ], + 4 + /* STYLE */ + ) + ]), + __props.search ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "search-box" + }, [ + vue.createVNode(_component_uni_easyinput, { + maxlength: -1, + prefixIcon: "search", + placeholder: "搜索", + modelValue: searchStr.value, + "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchStr.value = $event), + "confirm-type": "search", + onConfirm: _cache[2] || (_cache[2] = ($event) => handleSearch(false)), + onClear: _cache[3] || (_cache[3] = ($event) => handleSearch(true)) + }, null, 8, ["modelValue"]), + vue.createElementVNode("button", { + type: "primary", + size: "mini", + class: "search-btn", + onClick: _cache[4] || (_cache[4] = ($event) => handleSearch(false)) + }, "搜索") + ])) : vue.createCommentVNode("v-if", true), + treeData.value.length ? (vue.openBlock(), vue.createElementBlock("view", { + key: 1, + class: "select-content" + }, [ + vue.createElementVNode("scroll-view", { + class: "scroll-view-box", + "scroll-top": scrollTop.value, + "scroll-y": "true", + onTouchmove: _cache[5] || (_cache[5] = vue.withModifiers(() => { + }, ["stop"])) + }, [ + !filterTreeData.value.length ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "no-data center" + }, [ + vue.createElementVNode("text", null, "暂无数据") + ])) : vue.createCommentVNode("v-if", true), + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(filterTreeData.value, (item) => { + return vue.openBlock(), vue.createBlock(dataSelectItem, { + key: item[__props.dataValue], + node: item, + dataLabel: __props.dataLabel, + dataValue: __props.dataValue, + dataChildren: __props.dataChildren, + choseParent: __props.choseParent, + border: __props.border, + linkage: __props.linkage, + lazyLoadChildren: __props.lazyLoadChildren + }, null, 8, ["node", "dataLabel", "dataValue", "dataChildren", "choseParent", "border", "linkage", "lazyLoadChildren"]); + }), + 128 + /* KEYED_FRAGMENT */ + )), + vue.createElementVNode("view", { class: "sentry" }) + ], 40, ["scroll-top"]) + ])) : (vue.openBlock(), vue.createElementBlock("view", { + key: 2, + class: "no-data center" + }, [ + vue.createElementVNode("text", null, "暂无数据") + ])) + ], + 4 + /* STYLE */ + ) + ]), + _: 1 + /* STABLE */ + }, 8, ["animation", "is-mask-click", "mask-background-color", "background-color", "safe-area"]) + ], + 64 + /* STABLE_FRAGMENT */ + ); + }; + } + }); + const treeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-0328d33e"], ["__file", "D:/projects/cxc-szcx-uniapp/components/treeSelect/treeSelect.vue"]]); + const _sfc_main$k = { + __name: "application", + setup(__props) { + const store = useStore(); + const { + proxy + } = vue.getCurrentInstance(); + const realname = vue.ref(store.userinfo.realname); + const depart = vue.ref(""); + const phone = vue.ref(store.userinfo.phone); + const type = vue.ref(""); + const dataSource = vue.ref([]); + const beginTime = vue.ref(""); + const chooseStart = (e2) => { + beginTime.value = e2.detail.value; + }; + const endTime = vue.ref(""); + const chooseEnd = (e2) => { + endTime.value = e2.detail.value; + }; + const typeArr = vue.ref([]); + const typeIndex = vue.ref(null); + const ifShow = vue.ref(true); + const zwcj = vue.ref(""); + const address = vue.ref(""); + const reason = vue.ref(""); + const path = vue.ref([]); + const baseUrl2 = "https://36.112.48.190/jeecg-boot/sys/common/upload/"; + const imageStyles = { + width: 64, + height: 64, + border: { + color: "#dce7e1", + width: 2, + style: "dashed", + radius: "2px" + } + }; + onLoad(() => { + loadData(); + }); + const select = (e2) => { + e2.tempFilePaths; + for (let i2 = 0; i2 < e2.tempFilePaths.length; i2++) { + let photoPath = "职工请假/" + store.userinfo.orgCode + "/" + store.userinfo.realname; + uni.uploadFile({ + url: baseUrl2, + filePath: e2.tempFilePaths[i2], + name: "file", + formData: { + appPath: photoPath + }, + success: (res) => { + path.value.push(JSON.parse(res.data).message); + } + }); + } + }; + const qjAdd = () => { + if (!phone.value.trim()) + return proxy.$toast("请输入联系方式"); + if (!type.value) + return proxy.$toast("请选择请假类型"); + if (!beginTime.value) + return proxy.$toast("请选择开始时间"); + if (!endTime.value) + return proxy.$toast("请选择结束时间"); + if (ifShow.value) { + if (typeIndex.value == null) { + return proxy.$toast("请选择审批领导"); + } + } + if (!address.value.trim()) + return proxy.$toast("请输入请假地点"); + if (!reason.value.trim()) + return proxy.$toast("请输入请假事由"); + qjAddApi({ + username: store.userinfo.username, + phone: phone.value, + type: type.value, + begintime: beginTime.value, + endtime: endTime.value, + examineleader: typeArr.value[typeIndex.value].username, + address: address.value, + reason: reason.value, + zwmc: zwcj.value, + path: path.value.toString() + }).then((res) => { + if (res.success) { + startMutilProcess(res.message); + } else { + proxy.$toast(res.message); + } + }); + }; + const startMutilProcess = (id) => { + startMutilProcessApi({ + flowCode: "dev_cxc_qxj", + id, + formUrl: "modules/qxj/modules/CxcQxjBpmModel", + formUrlMobile: "leaveApplication" + //对应main.js里全局注册createApp()里的 app.component('leaveApplication',index) + }).then((res) => { + if (res.success) { + proxy.$toast(res.message); + setTimeout(() => { + uni.navigateBack(); + }, 2e3); + } + }).catch((err) => { + formatAppLog("log", "at pages/leave/application.vue:235", err); + }); + }; + const loadData = () => { + getCategoryItemsApi("1838487445813645313").then((res) => { + if (res.success) { + dataSource.value = res.result; + } + }); + queryDepByCode(store.userinfo.orgCode).then((res) => { + if (res.success) { + depart.value = res.result; + } + }); + queryZwmcAndExaApi(store.userinfo.username).then((res) => { + if (res.success) { + typeArr.value = res.result.list; + zwcj.value = res.result.zwmc; + if (zwcj.value == "单位专家" || zwcj.value == "正职" || zwcj.value == "高级主管") { + ifShow.value = false; + } + } else { + proxy.$toast(res.message); + } + }); + }; + const bindType = (e2) => { + typeIndex.value = e2.detail.value; + }; + return (_ctx, _cache) => { + const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_1$1); + const _component_uni_file_picker = resolveEasycom(vue.resolveDynamicComponent("uni-file-picker"), __easycom_0$2); + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass({ "gray": vue.unref(store).isgray == 1 }) + }, + [ + vue.createElementVNode("view", { class: "form" }, [ + vue.createElementVNode("view", { class: "f-row aic jcb input_box" }, [ + vue.createElementVNode("view", { class: "title" }, " 职工姓名: "), + vue.withDirectives(vue.createElementVNode( + "input", + { + "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => realname.value = $event), + disabled: "" + }, + null, + 512 + /* NEED_PATCH */ + ), [ + [vue.vModelText, realname.value] + ]) + ]), + vue.createElementVNode("view", { class: "f-row aic jcb input_box" }, [ + vue.createElementVNode("view", { class: "title" }, " 工作单位: "), + vue.withDirectives(vue.createElementVNode( + "input", + { + "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => depart.value = $event), + disabled: "" + }, + null, + 512 + /* NEED_PATCH */ + ), [ + [vue.vModelText, depart.value] + ]) + ]), + vue.createElementVNode("view", { class: "f-row aic jcb input_box" }, [ + vue.createElementVNode("view", { class: "title" }, " 联系方式: "), + vue.withDirectives(vue.createElementVNode( + "input", + { + "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => phone.value = $event) + }, + null, + 512 + /* NEED_PATCH */ + ), [ + [vue.vModelText, phone.value] + ]) + ]), + vue.createElementVNode("view", { class: "f-row aic jcb input_box" }, [ + vue.createElementVNode("view", { class: "title" }, " 请假类型: "), + vue.createVNode(treeSelect, { + dataSource: dataSource.value, + modelValue: type.value, + "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => type.value = $event), + dataValue: "name" + }, null, 8, ["dataSource", "modelValue"]) + ]), + vue.createElementVNode("picker", { + mode: "date", + fields: "day", + onChange: chooseStart, + value: beginTime.value + }, [ + vue.createElementVNode("view", { class: "f-row aic jcb box" }, [ + vue.createElementVNode("view", { class: "title" }, " 开始时间: "), + vue.createElementVNode("view", { class: "f-row aic" }, [ + vue.createElementVNode( + "view", + { + class: vue.normalizeClass([{ "choose": !beginTime.value }, { "choosed": beginTime.value }]) + }, + vue.toDisplayString(beginTime.value ? beginTime.value : "请选择"), + 3 + /* TEXT, CLASS */ + ), + vue.createVNode(_component_uni_icons, { + type: "bottom", + color: "#333333" + }) + ]) + ]) + ], 40, ["value"]), + vue.createElementVNode("picker", { + mode: "date", + fields: "day", + onChange: chooseEnd, + value: endTime.value + }, [ + vue.createElementVNode("view", { class: "f-row aic jcb box" }, [ + vue.createElementVNode("view", { class: "title" }, " 截止时间: "), + vue.createElementVNode("view", { class: "f-row aic" }, [ + vue.createElementVNode( + "view", + { + class: vue.normalizeClass([{ "choose": !endTime.value }, { "choosed": endTime.value }]) + }, + vue.toDisplayString(endTime.value ? endTime.value : "请选择"), + 3 + /* TEXT, CLASS */ + ), + vue.createVNode(_component_uni_icons, { + type: "bottom", + color: "#333333" + }) + ]) + ]) + ], 40, ["value"]), + ifShow.value ? (vue.openBlock(), vue.createElementBlock("picker", { + key: 0, + onChange: bindType, + value: typeIndex.value, + range: typeArr.value, + "range-key": "realname" + }, [ + vue.createElementVNode("view", { class: "f-row aic jcb box" }, [ + vue.createElementVNode("view", { class: "title" }, " 审批领导: "), + vue.createElementVNode("view", { class: "f-row aic" }, [ + vue.createElementVNode( + "view", + { + class: vue.normalizeClass([{ "choose": typeIndex.value == null }, { "choosed": typeIndex.value != null }]) + }, + vue.toDisplayString(typeIndex.value != null ? typeArr.value[typeIndex.value].realname : "请选择"), + 3 + /* TEXT, CLASS */ + ), + vue.createVNode(_component_uni_icons, { + type: "bottom", + color: "#333333" + }) + ]) + ]) + ], 40, ["value", "range"])) : vue.createCommentVNode("v-if", true), + vue.createElementVNode("view", { class: "f-row aic jcb input_box" }, [ + vue.createElementVNode("view", { class: "title" }, " 请假地点: "), + vue.withDirectives(vue.createElementVNode( + "input", + { + "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => address.value = $event), + placeholder: "请输入", + "nplaceholder-style": "font-size: 28rpx;color: #999999;" + }, + null, + 512 + /* NEED_PATCH */ + ), [ + [vue.vModelText, address.value] + ]) + ]), + vue.createElementVNode("view", { class: "f-row aic jcb input_box" }, [ + vue.createElementVNode("view", { class: "title" }, " 请假事由: "), + vue.withDirectives(vue.createElementVNode( + "input", + { + "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => reason.value = $event), + placeholder: "请输入", + "placeholder-style": "font-size: 28rpx;color: #999999;" + }, + null, + 512 + /* NEED_PATCH */ + ), [ + [vue.vModelText, reason.value] + ]) + ]), + vue.createElementVNode("view", { class: "f-row aic jcb input_box" }, [ + vue.createElementVNode("view", { class: "title" }, " 上传附件: "), + vue.createVNode(_component_uni_file_picker, { + onSelect: select, + "image-styles": imageStyles + }) + ]) + ]), + vue.createElementVNode("view", { class: "btn f-col aic" }, [ + vue.createElementVNode("view", { onClick: qjAdd }, " 提交 ") + ]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesLeaveApplication = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-f12ae642"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/leave/application.vue"]]); + const _sfc_main$j = { + __name: "index", + setup(__props) { + const store = useStore(); + const back = () => { + uni.navigateBack(); + }; + return (_ctx, _cache) => { + const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_1$1); + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass(["content", { "gray": vue.unref(store).isgray == 1 }]) + }, + [ + vue.createVNode(customNav, null, { + default: vue.withCtx(() => [ + vue.createElementVNode("view", { class: "nav_box f-row aic" }, [ + vue.createElementVNode("view", { + class: "back", + onClick: back + }, [ + vue.createVNode(_component_uni_icons, { + type: "left", + size: "20", + color: "#fff" + }) + ]), + vue.createElementVNode("view", { class: "avatar" }, [ + vue.createElementVNode("image", { + src: vue.unref(store).userinfo.avatar, + mode: "" + }, null, 8, ["src"]) + ]), + vue.createElementVNode("view", { class: "f-col" }, [ + vue.createElementVNode( + "view", + { class: "name" }, + vue.toDisplayString(vue.unref(store).userinfo.realname), + 1 + /* TEXT */ + ), + vue.createElementVNode( + "view", + { class: "position" }, + vue.toDisplayString(vue.unref(store).role), + 1 + /* TEXT */ + ) + ]) + ]) + ]), + _: 1 + /* STABLE */ + }), + vue.createElementVNode("view", { class: "time_box f-row aic jcb" }, [ + vue.createElementVNode("view", { class: "box" }, [ + vue.createElementVNode("view", { class: "time f-row aic" }, [ + vue.createElementVNode("view", { class: "" }, " 上班 9:30 "), + vue.createElementVNode("image", { + src: "/static/checkin/chenggong.png", + mode: "" + }) + ]), + vue.createElementVNode("view", { class: "text" }, " 重庆市渝北区上弯路 ") + ]), + vue.createElementVNode("view", { class: "box" }, [ + vue.createElementVNode("view", { class: "time f-row aic" }, [ + vue.createElementVNode("view", { class: "" }, " 下班 16:30 "), + vue.createElementVNode("image", { + src: "/static/checkin/shibai.png", + mode: "" + }) + ]), + vue.createElementVNode("view", { class: "text" }, " 打卡已超时 ") + ]) + ]), + vue.createElementVNode("view", { class: "checkin" }, [ + vue.createElementVNode("view", { class: "f-col aic" }, [ + vue.createElementVNode("view", { class: "status f-col aic" }, [ + vue.createCommentVNode(' \r\n \r\n '), + vue.createElementVNode("image", { + src: "/static/checkin/position4.png", + mode: "" + }), + vue.createElementVNode("text", null, "打卡失败") + ]), + vue.createElementVNode("view", { + class: vue.normalizeClass(["circle", "f-col", "aic", "out", "check", "success", "fail"]) + }, [ + vue.createElementVNode("view", { class: "title" }, " 上班打卡 "), + vue.createElementVNode("view", { class: "time" }, " 9:00 "), + vue.createElementVNode("view", { class: "ontime" }, " 已超时 ") + ]) + ]) + ]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesCheckinIndex = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-1410bd6b"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/checkin/index.vue"]]); + const _sfc_main$i = { + __name: "useredit", + setup(__props) { + const baseUrl2 = "https://36.112.48.190/jeecg-boot/sys/common/upload"; + const store = useStore(); + const chooseAvatar = () => { + uni.chooseImage({ + count: 1, + success: (chooseImageRes) => { + const tempFilePaths = chooseImageRes.tempFilePaths; + const photoPath = "用户头像/" + store.userinfo.realname; + uni.uploadFile({ + url: baseUrl2, + //仅为示例,非真实的接口地址 + filePath: tempFilePaths[0], + name: "file", + formData: { + appPath: photoPath + }, + success: (res) => { + uni.showLoading({ + title: "上传中..." + }); + form.avatar = JSON.parse(res.data).message; + userEditApi({ + avatar: form.avatar, + id: store.userinfo.id + }).then((res2) => { + if (res2) { + uni.showToast({ + title: res2, + icon: "success", + duration: 2e3 + }); + } + }).catch((err) => { + formatAppLog("log", "at pages/useredit/useredit.vue:97", err); + }); + }, + fail(err) { + formatAppLog("log", "at pages/useredit/useredit.vue:101", "图片上传出错", err); + } + }); + } + }); + }; + const form = vue.reactive({ + avatar: "", + realname: "", + phone: "" + }); + const loginout = () => { + uni.showModal({ + title: "退出登录", + content: "您确认要退出登录吗?", + success(res) { + if (res.confirm) { + uni.removeStorageSync("token"); + uni.removeStorageSync("user"); + uni.removeStorageSync("role"); + uni.removeStorageSync("logintime"); + uni.reLaunch({ + url: "/pages/login/login" + }); + } + } + }); + }; + onLoad(() => { + uni.setNavigationBarColor({ + frontColor: "#ffffff", + backgroundColor: "#bebebe" + }); + }); + return (_ctx, _cache) => { + const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_1$1); + return vue.openBlock(), vue.createElementBlock( + vue.Fragment, + null, + [ + vue.createElementVNode( + "view", + { + class: vue.normalizeClass(["content", { "gray": vue.unref(store).isgray == 1 }]) + }, + [ + vue.createElementVNode("view", { class: "box" }, [ + vue.createElementVNode("view", null, "头像"), + vue.createElementVNode("view", { style: { "display": "flex", "align-items": "center" } }, [ + vue.createElementVNode("button", { + class: "head-btn", + onClick: chooseAvatar + }, [ + !form.avatar ? (vue.openBlock(), vue.createElementBlock("image", { + key: 0, + class: "head-img", + src: vue.unref(imgUrl)(vue.unref(store).userinfo.avatar), + mode: "" + }, null, 8, ["src"])) : (vue.openBlock(), vue.createElementBlock("image", { + key: 1, + class: "head-img", + src: vue.unref(imgUrl)(form.avatar) + }, null, 8, ["src"])) + ]), + vue.createVNode(_component_uni_icons, { + type: "right", + size: "24" + }) + ]) + ]), + vue.createElementVNode("view", { + class: "box", + style: { "padding-top": "30rpx", "padding-bottom": "30rpx" } + }, [ + vue.createElementVNode("view", null, "姓名"), + vue.withDirectives(vue.createElementVNode( + "input", + { + disabled: "", + style: { "text-align": "right" }, + type: "nickname", + "placeholder-style": "font-size: 32rpx;color: #999999;", + "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.unref(store).userinfo.realname = $event), + placeholder: "请输入姓名" + }, + null, + 512 + /* NEED_PATCH */ + ), [ + [vue.vModelText, vue.unref(store).userinfo.realname] + ]) + ]), + vue.createElementVNode("view", { + class: "box", + style: { "padding-top": "30rpx", "padding-bottom": "30rpx" } + }, [ + vue.createElementVNode("view", null, "手机号"), + vue.withDirectives(vue.createElementVNode( + "input", + { + disabled: "", + style: { "text-align": "right" }, + type: "nickname", + "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.unref(store).userinfo.phone = $event), + placeholder: "请输入手机号", + "placeholder-style": "font-size: 32rpx;color: #999999;" + }, + null, + 512 + /* NEED_PATCH */ + ), [ + [vue.vModelText, vue.unref(store).userinfo.phone] + ]) + ]), + vue.createElementVNode("view", { + class: "box", + style: { "padding-top": "30rpx", "padding-bottom": "30rpx" } + }, [ + vue.createElementVNode("view", null, "劳动合同号"), + vue.withDirectives(vue.createElementVNode( + "input", + { + style: { "text-align": "right" }, + type: "nickname", + disabled: "", + "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.unref(store).userinfo.workNo = $event), + placeholder: "请输入劳动合同号", + "placeholder-style": "font-size: 32rpx;color: #999999;" + }, + null, + 512 + /* NEED_PATCH */ + ), [ + [vue.vModelText, vue.unref(store).userinfo.workNo] + ]) + ]) + ], + 2 + /* CLASS */ + ), + vue.createElementVNode("view", { class: "line" }), + vue.createElementVNode("view", { + class: "btn", + onClick: loginout + }, " 退出登录 ") + ], + 64 + /* STABLE_FRAGMENT */ + ); + }; + } + }; + const PagesUsereditUseredit = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-503dd57f"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/useredit/useredit.vue"]]); + const _sfc_main$h = { + __name: "address", + setup(__props) { + const store = useStore(); + const jump = (url) => { + beforeJump(url, () => { + uni.navigateTo({ + url + }); + }); + }; + return (_ctx, _cache) => { + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass(["content", { "gray": vue.unref(store).isgray == 1 }]) + }, + [ + vue.createElementVNode("view", { class: "list" }, [ + (vue.openBlock(), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(2, (item, i2) => { + return vue.createElementVNode("view", { + class: "item", + key: i2 + }, [ + vue.createElementVNode("view", { class: "province f-row aic" }, [ + vue.createElementVNode("view", { class: "" }, " 浙江省,杭州市 "), + vue.createElementVNode("image", { + src: "/static/my/default.png", + mode: "" + }) + ]), + vue.createElementVNode("view", { class: "address f-row jcb" }, [ + vue.createElementVNode("view", { class: "" }, " 重庆 重庆市 渝北区 龙溪街道花卉园东路黄金 宝高级住宅小区 "), + vue.createElementVNode("image", { + src: "/static/my/edit.png", + mode: "" + }) + ]), + vue.createElementVNode("view", { class: "set f-row aic jcb" }, [ + vue.createElementVNode("view", { class: "f-row aic" }, [ + vue.createCommentVNode(' '), + vue.createElementVNode("image", { + src: "/static/login/nocheck.png", + mode: "" + }), + vue.createTextVNode(" 设为默认地址 ") + ]), + vue.createElementVNode("view", { class: "" }, " 删除 ") + ]) + ]); + }), + 64 + /* STABLE_FRAGMENT */ + )) + ]), + vue.createElementVNode("view", { class: "btn f-col aic" }, [ + vue.createElementVNode("view", { + class: "", + onClick: _cache[0] || (_cache[0] = ($event) => jump("/pages/useredit/add_address")) + }, " +添加收货地址 ") + ]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesUsereditAddress = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-4bd9b73b"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/useredit/address.vue"]]); + const _sfc_main$g = { + __name: "add_address", + setup(__props) { + const store = useStore(); + return (_ctx, _cache) => { + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass(["content", { "gray": vue.unref(store).isgray == 1 }]) + }, + [ + vue.createElementVNode("view", { class: "area f-row jcb" }, [ + vue.createElementVNode("view", { class: "title topic" }, " 所在地区 "), + vue.createElementVNode("input", { + type: "text", + placeholder: "省、市、区、街道" + }) + ]), + vue.createElementVNode("view", { class: "area f-row jcb" }, [ + vue.createElementVNode("view", { class: "title topic" }, " 详细地址 "), + vue.createElementVNode("textarea", { placeholder: "小区楼栋/乡村名称" }) + ]), + vue.createElementVNode("view", { class: "area f-row jcb" }, [ + vue.createElementVNode("view", { class: "title" }, " 设为默认地址 "), + vue.createElementVNode("image", { + src: "/static/login/checked.png", + mode: "" + }), + vue.createCommentVNode(' ') + ]), + vue.createElementVNode("view", { class: "btn f-col aic" }, [ + vue.createElementVNode("view", { class: "" }, " 保存 ") + ]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesUsereditAdd_address = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-f1271877"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/useredit/add_address.vue"]]); + const _sfc_main$f = { + __name: "addressbook", + setup(__props) { + const store = useStore(); + return (_ctx, _cache) => { + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass({ "gray": vue.unref(store).isgray == 1 }) + }, + [ + vue.createElementVNode("view", { class: "list" }, [ + (vue.openBlock(), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(4, (item, i2) => { + return vue.createElementVNode("view", { + class: "item f-row aic jcb", + key: i2 + }, [ + vue.createElementVNode("view", { class: "user f-row aic" }, [ + vue.createElementVNode("image", { + src: "", + mode: "" + }), + vue.createElementVNode("view", { class: "name_job" }, [ + vue.createElementVNode("view", { class: "name" }, " 我是晴天 "), + vue.createElementVNode("view", { class: "job" }, " 销售部-销售总监 ") + ]) + ]), + vue.createElementVNode("view", { class: "btn" }, " 电话联系 ") + ]); + }), + 64 + /* STABLE_FRAGMENT */ + )) + ]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesUsereditAddressbook = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-c0e791d9"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/useredit/addressbook.vue"]]); + const _sfc_main$e = { + __name: "safeCom", + setup(__props) { + const jump = (url) => { + beforeJump(url, () => { + uni.navigateTo({ + url + }); + }); + }; + return (_ctx, _cache) => { + return vue.openBlock(), vue.createElementBlock("view", { class: "list f-row aic jcb" }, [ + (vue.openBlock(), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(20, (item, i2) => { + return vue.createElementVNode("view", { + class: "item", + key: i2, + onClick: _cache[0] || (_cache[0] = ($event) => jump("/pages/safe/detail")) + }, [ + vue.createElementVNode("view", { class: "" }, [ + vue.createElementVNode("image", { + src: "", + mode: "" + }) + ]), + vue.createElementVNode("view", { class: "text" }, " 五月天“突然好想你”线上演唱会精彩回放 ") + ]); + }), + 64 + /* STABLE_FRAGMENT */ + )) + ]); + }; + } + }; + const safeCom = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-982fcf41"], ["__file", "D:/projects/cxc-szcx-uniapp/bpm/safeCom.vue"]]); + const _sfc_main$d = { + __name: "manage", + setup(__props) { + const store = useStore(); + const showicon = vue.ref(true); + const searchKey = vue.ref(""); + return (_ctx, _cache) => { + const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_1$1); + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass(["content", { "gray": vue.unref(store).isgray == 1 }]) + }, + [ + vue.createVNode(customNav, null, { + default: vue.withCtx(() => [ + vue.createElementVNode("view", { class: "nav_box f-row aic jcb" }, [ + vue.createElementVNode("view", { + class: "back f-row aic", + onClick: _cache[0] || (_cache[0] = (...args) => _ctx.back && _ctx.back(...args)) + }, [ + vue.createVNode(_component_uni_icons, { + type: "left", + size: "20", + color: "#fff" + }) + ]), + vue.createElementVNode("view", { class: "search f-row aic" }, [ + vue.withDirectives(vue.createElementVNode( + "input", + { + type: "text", + "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchKey.value = $event), + onConfirm: _cache[2] || (_cache[2] = (...args) => _ctx.search && _ctx.search(...args)), + onBlur: _cache[3] || (_cache[3] = ($event) => showicon.value = !searchKey.value), + onFocus: _cache[4] || (_cache[4] = ($event) => showicon.value = false) + }, + null, + 544 + /* NEED_HYDRATION, NEED_PATCH */ + ), [ + [vue.vModelText, searchKey.value] + ]), + showicon.value ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "f-row aic" + }, [ + vue.createElementVNode("image", { + src: "/static/search.png", + mode: "" + }), + vue.createElementVNode("text", null, "搜索") + ])) : vue.createCommentVNode("v-if", true) + ]) + ]) + ]), + _: 1 + /* STABLE */ + }), + vue.createElementVNode("view", { class: "" }, [ + vue.createVNode(safeCom) + ]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesSafeManage = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-dc2f4615"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/safe/manage.vue"]]); + const _sfc_main$c = { + __name: "dataCom", + props: { + title: { + type: String, + default: "" + }, + list: { + type: Array, + default: function() { + return []; + } + } + }, + setup(__props) { + vue.useCssVars((_ctx) => ({ + "92a54120-moreHeight": moreHeight.value + })); + const props = __props; + const open2 = vue.ref(false); + const moreHeight = vue.ref(null); + vue.watch(() => props.list, () => { + vue.nextTick(() => { + uni.createSelectorQuery().select(".data_box").boundingClientRect((data) => { + moreHeight.value = ((data == null ? void 0 : data.height) || 0) + "px"; + }).exec(); + }); + }, { + immediate: true + }); + return (_ctx, _cache) => { + const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_1$1); + return vue.openBlock(), vue.createElementBlock("view", { class: "" }, [ + vue.createElementVNode("view", { class: "info" }, [ + vue.createElementVNode("view", { class: "item_box" }, [ + vue.createElementVNode("view", { class: "item" }, [ + vue.createElementVNode("view", { class: "title_box f-row aic jcb" }, [ + vue.createElementVNode( + "view", + { class: "title" }, + vue.toDisplayString(__props.title), + 1 + /* TEXT */ + ), + __props.list.length > 6 ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "f-row aic more", + onClick: _cache[0] || (_cache[0] = ($event) => open2.value = !open2.value) + }, [ + vue.createElementVNode( + "text", + null, + vue.toDisplayString(!open2.value ? "展开" : "收起"), + 1 + /* TEXT */ + ), + !open2.value ? (vue.openBlock(), vue.createBlock(_component_uni_icons, { + key: 0, + type: "down", + color: "#999999" + })) : (vue.openBlock(), vue.createBlock(_component_uni_icons, { + key: 1, + type: "up", + color: "#999999" + })) + ])) : vue.createCommentVNode("v-if", true) + ]), + vue.createElementVNode( + "view", + { + class: vue.normalizeClass(["data_wrapper", { "close": __props.list.length > 6 && open2.value }]) + }, + [ + vue.createElementVNode("view", { class: "data_box f-row aic" }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(__props.list, (item, i2) => { + return vue.openBlock(), vue.createElementBlock("view", { class: "data f-col aic" }, [ + vue.createElementVNode( + "view", + { class: "" }, + vue.toDisplayString(item == null ? void 0 : item.dailyVolume), + 1 + /* TEXT */ + ), + vue.createElementVNode( + "text", + null, + vue.toDisplayString(item.gas), + 1 + /* TEXT */ + ) + ]); + }), + 256 + /* UNKEYED_FRAGMENT */ + )) + ]) + ], + 2 + /* CLASS */ + ) + ]) + ]) + ]) + ]); + }; + } + }; + const dataCom = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-92a54120"], ["__file", "D:/projects/cxc-szcx-uniapp/bpm/dataCom.vue"]]); + const _sfc_main$b = { + __name: "index", + setup(__props) { + const store = useStore(); + const shishiArr = vue.ref([]); + const productArr = vue.ref([]); + onLoad((options) => { + shishiArr.value = JSON.parse(options.shishi); + productArr.value = JSON.parse(options.product); + }); + return (_ctx, _cache) => { + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass(["f-col", "aic", { "gray": vue.unref(store).isgray == 1 }]) + }, + [ + vue.createVNode(dataCom, { + title: "实时输差", + list: shishiArr.value + }, null, 8, ["list"]), + vue.createVNode(dataCom, { + title: "偏远计量点", + list: shishiArr.value + }, null, 8, ["list"]), + vue.createVNode(dataCom, { + title: "生产实时数据", + list: productArr.value + }, null, 8, ["list"]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesProductIndex = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__file", "D:/projects/cxc-szcx-uniapp/pages/product/index.vue"]]); + const en = { + "uni-load-more.contentdown": "Pull up to show more", + "uni-load-more.contentrefresh": "loading...", + "uni-load-more.contentnomore": "No more data" + }; + const zhHans = { + "uni-load-more.contentdown": "上拉显示更多", + "uni-load-more.contentrefresh": "正在加载...", + "uni-load-more.contentnomore": "没有更多数据了" + }; + const zhHant = { + "uni-load-more.contentdown": "上拉顯示更多", + "uni-load-more.contentrefresh": "正在加載...", + "uni-load-more.contentnomore": "沒有更多數據了" + }; + const messages = { + en, + "zh-Hans": zhHans, + "zh-Hant": zhHant + }; + let platform; + setTimeout(() => { + platform = uni.getSystemInfoSync().platform; + }, 16); + const { + t + } = initVueI18n(messages); + const _sfc_main$a = { + name: "UniLoadMore", + emits: ["clickLoadMore"], + props: { + status: { + // 上拉的状态:more-loading前;loading-loading中;noMore-没有更多了 + type: String, + default: "more" + }, + showIcon: { + type: Boolean, + default: true + }, + iconType: { + type: String, + default: "auto" + }, + iconSize: { + type: Number, + default: 24 + }, + color: { + type: String, + default: "#777777" + }, + contentText: { + type: Object, + default() { + return { + contentdown: "", + contentrefresh: "", + contentnomore: "" + }; + } + }, + showText: { + type: Boolean, + default: true + } + }, + data() { + return { + webviewHide: false, + platform, + imgBase64: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzlBMzU3OTlEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzlBMzU3OUFEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDOUEzNTc5N0Q5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDOUEzNTc5OEQ5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pt+ALSwAAA6CSURBVHja1FsLkFZVHb98LM+F5bHL8khA1iSeiyQBCRM+YGqKUnnJTDLGI0BGZlKDIU2MMglUiDApEZvSsZnQtBRJtKwQNKQMFYeRDR10WOLd8ljYXdh+v8v5fR3Od+797t1dnOnO/Ofce77z+J//+b/P+ZqtXbs2sJ9MJhNUV1cHJ06cCJo3bx7EPc2aNcvpy7pWrVoF+/fvDyoqKoI2bdoE9fX1F7TjN8a+EXBn/fkfvw942Tf+wYMHg9mzZwfjxo0LDhw4EPa1x2MbFw/fOGfPng1qa2tzcCkILsLDydq2bRsunpOTMM7TD/W/tZDZhPdeKD+yGxHhdu3aBV27dg3OnDlzMVANMheLAO3btw8KCwuDmpoaX5OxbgUIMEq7K8IcPnw4KCsrC/r37x8cP378/4cAXAB3vqSkJMuiDhTkw+XcuXNhOWbMmKBly5YhUT8xArhyFvP0BfwRsAuwxJZJsm/nzp2DTp06he/OU+cZ64K6o0ePBkOHDg2GDx8e6gEbJ5Q/NHNuAJQ1hgBeHUDlR7nVTkY8rQAvAi4z34vR/mPs1FoRsaCgIJThI0eOBC1atEiFGGV+5MiRoS45efJkqFjJFXV1dQuA012m2WcwTw98fy6CqBdsaiIO4CScrGPHjvk4odhavPquRtFWXEC25VgkREKOCh/qDSq+vn37htzD/mZTOmOc5U7zKzBPEedygWshcDyWvs30igAbU+6oyMgJBCFhwQE0fccxN60Ay9iebbjoDh06hMowjQxT4fXq1SskArmHZpkArvixp/kWzHdMeArExSJEaiXIjjRjRJ4DaAGWpibLzXN3Fm1vA5teBgh3j1Rv3bp1YgKwPdmf2p9zcyNYYgPKMfY0T5f5nNYdw158nJ8QawW4CLKwiOBSEgO/hok2eBydR+3dYH+PLxA5J8Vv0KBBwenTp0P2JWAx6+yFEBfs8lMY+y0SWMBNI9E4ThKi58VKTg3FQZS1RQF1cz27eC0QHMu+3E0SkUowjhVt5VdaWhp07949ZHv2Qd1EjDXM2cla1M0nl3GxAs3J9yREzyTdFVKVFOaE9qRA8GM0WebRuo9JGZKA7Mv2SeS/Z8+eoQ9BArMfFrLGo6jvxbhHbJZnKX2Rzz1O7QhJJ9Cs2ZMaWIyq/zhdeqPNfIoHd58clIQD+JSXl4dKlyIAuBdVXZwFVWKspSSoxE++h8x4k3uCnEhE4I5KwRiFWGOU0QWKiCYLbdoRMRKAu2kQ9vkfLU6dOhX06NEjlH+yMRZSinnuyWnYosVcji8CEA/6Cg2JF+IIUBqnGKUTCNwtwBN4f89RiK1R96DEgO2o0NDmtEdvVFdVVYV+P3UAPUEs6GFwV3PHmXkD4vh74iDFJysVI/MlaQhwKeBNTLYX5VuA8T4/gZxA4MRGFxDB6R7OmYPfyykGRJbyie+XnGYnQIC/coH9+vULiYrxrkL9ZA9+0ykaHIfEpM7ge8TiJ2CsHYwyMfafAF1yCGBHYIbCVDjDjKt7BeB51D+LgQa6OkG7IDYEEtvQ7lnXLKLtLdLuJBpE4gPUXcW2+PkZwOex+4cGDhwYDBkyRL7/HFcEwUGPo/8uWRUpYnfxGHco8HkewLHLyYmAawAPuIFZxhOpDfJQ8gbUv41yORAptMWBNr6oqMhWird5+u+iHmBb2nhjDV7HWBNQTgK8y11l5NetWzc5ULscAtSj7nbNI0skhWeUZCc0W4nyH/jO4Vz0u1IeYhbk4AiwM6tjxIWByHsoZ9qcIBPJd/y+DwPfBESOmCa/QF3WiZHucLlEDpNxcNhmheEOPgdQNx6/VZFQzFZ5TN08AHXQt2Ii3EdyFuUsPtTcGPhW5iMiCNELvz+Gdn9huG4HUJaW/w3g0wxV0XaG7arG2WeKiUWYM4Y7GO5ezshTARbbWGw/DvXkpp/ivVvE0JVoMxN4rpGzJMhE5Pl+xlATsDIqikP9F9D2z3h9nOksEUFhK+qO4rcPkoalMQ/HqJLIyb3F3JdjrCcw1yZ8joyJLR5gCo54etlag7qIoeNh1N1BRYj3DTFJ0elotxPlVzkGuYAmL0VSJVGAJA41c4Z6A3BzTLfn0HYwYKEI6CUAMzZEWvLsIcQOo1AmmyyM72nHJCfYsogflGV6jEk9vyQZXSuq6w4c16NsGcGZbwOPr+H1RkOk2LEzjNepxQkihHSCQ4ynAYNRx2zMKV92CQMWqj8J0BRE8EShxRFN6YrfCRhC0x3r/Zm4IbQCcmJoV0kMamllccR6FjHqUC5F2R/wS2dcymOlfAKOS4KmzQb5cpNC2MC7JhVn5wjXoJ44rYhLh8n0eXOCorJxa7POjbSlCGVczr34/RsAmrcvo9s+wGp3tzVhntxiXiJ4nvEYb4FJkf0O8HocAePmLvCxnL0AORraVekJk6TYjDabRVXfRE2lCN1h6ZQRN1+InUbsCpKwoBZHh0dODN9JBCUffItXxEavTQkUtnfTVAplCWL3JISz29h4NjotnuSsQKJCk8dF+kJR6RARjrqFVmfPnj3ZbK8cIJ0msd6jgHPGtfVTQ8VLmlvh4mct9sobRmPic0DyDQQnx/NlfYUgyz59+oScsH379pAwXABD32nTpoUHIToESeI5mnbE/UqDdyLcafEBf2MCqgC7NwxIbMREJQ0g4D4sfJwnD+AmRrII05cfMWJE+L1169bQr+fip06dGp4oJ83lmYd5wj/EmMa4TaHivo4EeCguYZBnkB5g2aWA69OIEnUHOaGysjIYMGBAMGnSpODYsWPZwCpFmm4lNq+4gSLQA7jcX8DwtjEyRC8wjabnXEx9kfWnTJkSJkAo90xpJVV+FmcVNeYAF5zWngS4C4O91MBxmAv8blLEpbjI5sz9MTdAhcgkCT1RO8mZkAjfiYpTEvStAS53Uw1vAiUGgZ3GpuQEYvoiBqlIan7kSDHnTwJQFNiPu0+5VxCVYhcZIjNrdXUDdp+Eq5AZ3Gkg8QAyVZRZIk4Tl4QAbF9cXJxNYZMAtAokgs4BrNxEpCtteXg7DDTMDKYNSuQdKsnJBek7HxewvxaosWxLYXtw+cJp18217wql4aKCfBNoEu0O5VU+PhctJ0YeXD4C6JQpyrlpSLTojpGGGN5YwNziChdIZLk4lvLcFJ9jMX3QdiImY9bmGQU+TRUL5CHITTRlgF8D9ouD1MfmLoEPl5xokIumZ2cfgMpHt47IW9N64Hsh7wQYYjyIugWuF5fCqYncXRd5vPMWyizzvhi/32+nvG0dZc9vR6fZOu0md5e+uC408FvKSIOZwXlGvxPv95izA2Vtvg1xKFWARI+vMX66HUhpQQb643uW1bSjuTWyw2SBvDrBvjFic1eGGlz5esq3ko9uSIlBRqPuFcCv8F4WIcN12nVaBd0SaYwI6PDDImR11JkqgHcPmQssjxIn6bUshygDFJUTxPMpHk+jfjPgupgdnYV2R/g7xSjtpah8RJBewhwf0gGK6XI92u4wXFEU40afJ4DN4h5LcAd+40HI3JgJecuT0c062W0i2hQJUTcxan3/CMW1PF2K6bbA+Daz4xRs1D3Br1Cm0OihKCqizW78/nXAF/G5TXrEcVzaNMH6CyMswqsAHqDyDLEyou8lwOXnKF8DjI6KjV3KzMBiXkDH8ij/H214J5A596ekrZ3F0zXlWeL7+P5eUrNo3/QwC15uxthuzidy7DzKRwEDaAViiDgKbTbz7CJnzo0bN7pIfIiid8SuPwn25o3QCmpnyjlZkyxPP8EomCJzrGb7GJMx7tNsq4MT2xMUYaiErZOluTzKsnz3gwCeCZyVRZJfYplNEokEjwrPtxlxjeYAk+F1F74VAzPxQRNYYdtpOUvWs8J1sGhBJMNsb7igN8plJs1eSmLIhLKE4rvaCX27gOhLpLOsIzJ7qn/i+wZzcvSOZ23/du8TZjwV8zHIXoP4R3ifBxiFz1dcVpa3aPntPE+c6TmIWE9EtcMmAcPdWAhYhAXxcLOQi9L1WhD1Sc8p1d2oL7XGiRKp8F4A2i8K/nfI+y/gsTDJ/YC/8+AD5Uh04KHiGl+cIFPnBDDrPMjwRGkLXyxO4VGbfQWnDH2v0bVWE3C9QOXlepbgjEfIJQI6XDG3z5ahD9cw2pS78ipB85wyScNTvsVzlzzhL8/jRrnmVjfFJK/m3m4nj9vbgQTguT8XZTjsm672R5uJKEaQmBI/c58gyus8ZDagLpEVSJBIyHp4jn++xqPV71OgQgJYEWOtZ/haxRtKmWOBu8xdBLftWltsY84zE6WIEy/eIOWL+BaayMx+KHtL7EAkqdNDLiEXmEMUHniedtJqg9HmZtfvt26vNi0BdG3Ft3g8ZOf7PAu59TxtzivLNIekyi+wD1i8CuUiD9FXAa8C+/xS3JPmZnomyc7H+fb4/Se0bk41Fel621r4cgVxbq91V4jVqwB7HTe2M7jgB+QWHavZkDRPmZcASoZEmBx6i75bGjPcMdL4/VKGFAGWZkGzPG0XAbdL9A81G5LOmUnC9hHKJeO7dcUMjblSl12867ElFTtaGl20xvvLGPdVz/8TVuU7y0x1PG7vtNg24oz9Uo/Z412++VFWI7Fcog9tu9Lm6gvRmIPv9x1xmQAu6RDkXtbOtlGEmpgD5Nvnyc0dcv0EE6cfdi1HmhMf9wDF3k3gtRvEedhxjpgfqPb9PU9iEJHnyOUA7bQUXh6kq/D7l2iTjWv7XOD530BDr8jIrus+srXjt4MzumJMHuTsBa63YKE1+RR5lBjEikCCnWKWiHdzOgKO+nRIBAF88za/IFmJ3eMZov4CYxGBabcpGL8EYx+SeMXJeRwHNsV/h+vdxeuhEpN3ZyNY78Gm2fknJxVGhyjixPiQvVkNzT1elD9Py/aTAL64Hb9vcYmC9zfdXdT/C1LeGbg4rnBaAihDFJH12W5ulfNCNe/xTsP3bp8ikzJs5BF+5PNfAQYAPaseTdsEcaYAAAAASUVORK5CYII=" + }; + }, + computed: { + iconSnowWidth() { + return (Math.floor(this.iconSize / 24) || 1) * 2; + }, + contentdownText() { + return this.contentText.contentdown || t("uni-load-more.contentdown"); + }, + contentrefreshText() { + return this.contentText.contentrefresh || t("uni-load-more.contentrefresh"); + }, + contentnomoreText() { + return this.contentText.contentnomore || t("uni-load-more.contentnomore"); + } + }, + mounted() { + var pages2 = getCurrentPages(); + var page = pages2[pages2.length - 1]; + var currentWebview = page.$getAppWebview(); + currentWebview.addEventListener("hide", () => { + this.webviewHide = true; + }); + currentWebview.addEventListener("show", () => { + this.webviewHide = false; + }); + }, + methods: { + onClick() { + this.$emit("clickLoadMore", { + detail: { + status: this.status + } + }); + } + } + }; + function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("view", { + class: "uni-load-more", + onClick: _cache[0] || (_cache[0] = (...args) => $options.onClick && $options.onClick(...args)) + }, [ + !$data.webviewHide && ($props.iconType === "circle" || $props.iconType === "auto" && $data.platform === "android") && $props.status === "loading" && $props.showIcon ? (vue.openBlock(), vue.createElementBlock( + "view", + { + key: 0, + style: vue.normalizeStyle({ width: $props.iconSize + "px", height: $props.iconSize + "px" }), + class: "uni-load-more__img uni-load-more__img--android-MP" + }, + [ + vue.createElementVNode( + "view", + { + class: "uni-load-more__img-icon", + style: vue.normalizeStyle({ borderTopColor: $props.color, borderTopWidth: $props.iconSize / 12 }) + }, + null, + 4 + /* STYLE */ + ), + vue.createElementVNode( + "view", + { + class: "uni-load-more__img-icon", + style: vue.normalizeStyle({ borderTopColor: $props.color, borderTopWidth: $props.iconSize / 12 }) + }, + null, + 4 + /* STYLE */ + ), + vue.createElementVNode( + "view", + { + class: "uni-load-more__img-icon", + style: vue.normalizeStyle({ borderTopColor: $props.color, borderTopWidth: $props.iconSize / 12 }) + }, + null, + 4 + /* STYLE */ + ) + ], + 4 + /* STYLE */ + )) : !$data.webviewHide && $props.status === "loading" && $props.showIcon ? (vue.openBlock(), vue.createElementBlock( + "view", + { + key: 1, + style: vue.normalizeStyle({ width: $props.iconSize + "px", height: $props.iconSize + "px" }), + class: "uni-load-more__img uni-load-more__img--ios-H5" + }, + [ + vue.createElementVNode("image", { + src: $data.imgBase64, + mode: "widthFix" + }, null, 8, ["src"]) + ], + 4 + /* STYLE */ + )) : vue.createCommentVNode("v-if", true), + $props.showText ? (vue.openBlock(), vue.createElementBlock( + "text", + { + key: 2, + class: "uni-load-more__text", + style: vue.normalizeStyle({ color: $props.color }) + }, + vue.toDisplayString($props.status === "more" ? $options.contentdownText : $props.status === "loading" ? $options.contentrefreshText : $options.contentnomoreText), + 5 + /* TEXT, STYLE */ + )) : vue.createCommentVNode("v-if", true) + ]); + } + const __easycom_0$1 = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$2], ["__scopeId", "data-v-9245e42c"], ["__file", "D:/projects/cxc-szcx-uniapp/uni_modules/uni-load-more/components/uni-load-more/uni-load-more.vue"]]); + const dataPicker = { + props: { + localdata: { + type: [Array, Object], + default() { + return []; + } + }, + spaceInfo: { + type: Object, + default() { + return {}; + } + }, + collection: { + type: String, + default: "" + }, + action: { + type: String, + default: "" + }, + field: { + type: String, + default: "" + }, + orderby: { + type: String, + default: "" + }, + where: { + type: [String, Object], + default: "" + }, + pageData: { + type: String, + default: "add" + }, + pageCurrent: { + type: Number, + default: 1 + }, + pageSize: { + type: Number, + default: 500 + }, + getcount: { + type: [Boolean, String], + default: false + }, + getone: { + type: [Boolean, String], + default: false + }, + gettree: { + type: [Boolean, String], + default: false + }, + manual: { + type: Boolean, + default: false + }, + value: { + type: [Array, String, Number], + default() { + return []; + } + }, + modelValue: { + type: [Array, String, Number], + default() { + return []; + } + }, + preload: { + type: Boolean, + default: false + }, + stepSearh: { + type: Boolean, + default: true + }, + selfField: { + type: String, + default: "" + }, + parentField: { + type: String, + default: "" + }, + multiple: { + type: Boolean, + default: false + }, + map: { + type: Object, + default() { + return { + text: "text", + value: "value" + }; + } + } + }, + data() { + return { + loading: false, + errorMessage: "", + loadMore: { + contentdown: "", + contentrefresh: "", + contentnomore: "" + }, + dataList: [], + selected: [], + selectedIndex: 0, + page: { + current: this.pageCurrent, + size: this.pageSize, + count: 0 + } + }; + }, + computed: { + isLocalData() { + return !this.collection.length; + }, + isCloudData() { + return this.collection.length > 0; + }, + isCloudDataList() { + return this.isCloudData && (!this.parentField && !this.selfField); + }, + isCloudDataTree() { + return this.isCloudData && this.parentField && this.selfField; + }, + dataValue() { + let isModelValue = Array.isArray(this.modelValue) ? this.modelValue.length > 0 : this.modelValue !== null || this.modelValue !== void 0; + return isModelValue ? this.modelValue : this.value; + }, + hasValue() { + if (typeof this.dataValue === "number") { + return true; + } + return this.dataValue != null && this.dataValue.length > 0; + } + }, + created() { + this.$watch(() => { + var al = []; + [ + "pageCurrent", + "pageSize", + "spaceInfo", + "value", + "modelValue", + "localdata", + "collection", + "action", + "field", + "orderby", + "where", + "getont", + "getcount", + "gettree" + ].forEach((key) => { + al.push(this[key]); + }); + return al; + }, (newValue, oldValue) => { + for (let i2 = 2; i2 < newValue.length; i2++) { + if (newValue[i2] != oldValue[i2]) { + break; + } + } + if (newValue[0] != oldValue[0]) { + this.page.current = this.pageCurrent; + } + this.page.size = this.pageSize; + this.onPropsChange(); + }); + this._treeData = []; + }, + methods: { + onPropsChange() { + this._treeData = []; + }, + // 填充 pickview 数据 + async loadData() { + if (this.isLocalData) { + this.loadLocalData(); + } else if (this.isCloudDataList) { + this.loadCloudDataList(); + } else if (this.isCloudDataTree) { + this.loadCloudDataTree(); + } + }, + // 加载本地数据 + async loadLocalData() { + this._treeData = []; + this._extractTree(this.localdata, this._treeData); + let inputValue = this.dataValue; + if (inputValue === void 0) { + return; + } + if (Array.isArray(inputValue)) { + inputValue = inputValue[inputValue.length - 1]; + if (typeof inputValue === "object" && inputValue[this.map.value]) { + inputValue = inputValue[this.map.value]; + } + } + this.selected = this._findNodePath(inputValue, this.localdata); + }, + // 加载 Cloud 数据 (单列) + async loadCloudDataList() { + if (this.loading) { + return; + } + this.loading = true; + try { + let response = await this.getCommand(); + let responseData = response.result.data; + this._treeData = responseData; + this._updateBindData(); + this._updateSelected(); + this.onDataChange(); + } catch (e2) { + this.errorMessage = e2; + } finally { + this.loading = false; + } + }, + // 加载 Cloud 数据 (树形) + async loadCloudDataTree() { + if (this.loading) { + return; + } + this.loading = true; + try { + let commandOptions = { + field: this._cloudDataPostField(), + where: this._cloudDataTreeWhere() + }; + if (this.gettree) { + commandOptions.startwith = `${this.selfField}=='${this.dataValue}'`; + } + let response = await this.getCommand(commandOptions); + let responseData = response.result.data; + this._treeData = responseData; + this._updateBindData(); + this._updateSelected(); + this.onDataChange(); + } catch (e2) { + this.errorMessage = e2; + } finally { + this.loading = false; + } + }, + // 加载 Cloud 数据 (节点) + async loadCloudDataNode(callback) { + if (this.loading) { + return; + } + this.loading = true; + try { + let commandOptions = { + field: this._cloudDataPostField(), + where: this._cloudDataNodeWhere() + }; + let response = await this.getCommand(commandOptions); + let responseData = response.result.data; + callback(responseData); + } catch (e2) { + this.errorMessage = e2; + } finally { + this.loading = false; + } + }, + // 回显 Cloud 数据 + getCloudDataValue() { + if (this.isCloudDataList) { + return this.getCloudDataListValue(); + } + if (this.isCloudDataTree) { + return this.getCloudDataTreeValue(); + } + }, + // 回显 Cloud 数据 (单列) + getCloudDataListValue() { + let where = []; + let whereField = this._getForeignKeyByField(); + if (whereField) { + where.push(`${whereField} == '${this.dataValue}'`); + } + where = where.join(" || "); + if (this.where) { + where = `(${this.where}) && (${where})`; + } + return this.getCommand({ + field: this._cloudDataPostField(), + where + }).then((res) => { + this.selected = res.result.data; + return res.result.data; + }); + }, + // 回显 Cloud 数据 (树形) + getCloudDataTreeValue() { + return this.getCommand({ + field: this._cloudDataPostField(), + getTreePath: { + startWith: `${this.selfField}=='${this.dataValue}'` + } + }).then((res) => { + let treePath = []; + this._extractTreePath(res.result.data, treePath); + this.selected = treePath; + return treePath; + }); + }, + getCommand(options = {}) { + let db = Ws.database(this.spaceInfo); + const action = options.action || this.action; + if (action) { + db = db.action(action); + } + const collection = options.collection || this.collection; + db = db.collection(collection); + const where = options.where || this.where; + if (!(!where || !Object.keys(where).length)) { + db = db.where(where); + } + const field = options.field || this.field; + if (field) { + db = db.field(field); + } + const orderby = options.orderby || this.orderby; + if (orderby) { + db = db.orderBy(orderby); + } + const current = options.pageCurrent !== void 0 ? options.pageCurrent : this.page.current; + const size = options.pageSize !== void 0 ? options.pageSize : this.page.size; + const getCount = options.getcount !== void 0 ? options.getcount : this.getcount; + const getTree = options.gettree !== void 0 ? options.gettree : this.gettree; + const getOptions = { + getCount, + getTree + }; + if (options.getTreePath) { + getOptions.getTreePath = options.getTreePath; + } + db = db.skip(size * (current - 1)).limit(size).get(getOptions); + return db; + }, + _cloudDataPostField() { + let fields = [this.field]; + if (this.parentField) { + fields.push(`${this.parentField} as parent_value`); + } + return fields.join(","); + }, + _cloudDataTreeWhere() { + let result = []; + let selected = this.selected; + let parentField = this.parentField; + if (parentField) { + result.push(`${parentField} == null || ${parentField} == ""`); + } + if (selected.length) { + for (var i2 = 0; i2 < selected.length - 1; i2++) { + result.push(`${parentField} == '${selected[i2].value}'`); + } + } + let where = []; + if (this.where) { + where.push(`(${this.where})`); + } + if (result.length) { + where.push(`(${result.join(" || ")})`); + } + return where.join(" && "); + }, + _cloudDataNodeWhere() { + let where = []; + let selected = this.selected; + if (selected.length) { + where.push(`${this.parentField} == '${selected[selected.length - 1].value}'`); + } + where = where.join(" || "); + if (this.where) { + return `(${this.where}) && (${where})`; + } + return where; + }, + _getWhereByForeignKey() { + let result = []; + let whereField = this._getForeignKeyByField(); + if (whereField) { + result.push(`${whereField} == '${this.dataValue}'`); + } + if (this.where) { + return `(${this.where}) && (${result.join(" || ")})`; + } + return result.join(" || "); + }, + _getForeignKeyByField() { + let fields = this.field.split(","); + let whereField = null; + for (let i2 = 0; i2 < fields.length; i2++) { + const items = fields[i2].split("as"); + if (items.length < 2) { + continue; + } + if (items[1].trim() === "value") { + whereField = items[0].trim(); + break; + } + } + return whereField; + }, + _updateBindData(node) { + const { + dataList, + hasNodes + } = this._filterData(this._treeData, this.selected); + let isleaf = this._stepSearh === false && !hasNodes; + if (node) { + node.isleaf = isleaf; + } + this.dataList = dataList; + this.selectedIndex = dataList.length - 1; + if (!isleaf && this.selected.length < dataList.length) { + this.selected.push({ + value: null, + text: "请选择" + }); + } + return { + isleaf, + hasNodes + }; + }, + _updateSelected() { + let dl = this.dataList; + let sl = this.selected; + let textField = this.map.text; + let valueField = this.map.value; + for (let i2 = 0; i2 < sl.length; i2++) { + let value = sl[i2].value; + let dl2 = dl[i2]; + for (let j2 = 0; j2 < dl2.length; j2++) { + let item2 = dl2[j2]; + if (item2[valueField] === value) { + sl[i2].text = item2[textField]; + break; + } + } + } + }, + _filterData(data, paths) { + let dataList = []; + let hasNodes = true; + dataList.push(data.filter((item) => { + return item.parent_value === null || item.parent_value === void 0 || item.parent_value === ""; + })); + for (let i2 = 0; i2 < paths.length; i2++) { + let value = paths[i2].value; + let nodes = data.filter((item) => { + return item.parent_value === value; + }); + if (nodes.length) { + dataList.push(nodes); + } else { + hasNodes = false; + } + } + return { + dataList, + hasNodes + }; + }, + _extractTree(nodes, result, parent_value) { + let valueField = this.map.value; + for (let i2 = 0; i2 < nodes.length; i2++) { + let node = nodes[i2]; + let child = {}; + for (let key in node) { + if (key !== "children") { + child[key] = node[key]; + } + } + if (parent_value !== null && parent_value !== void 0 && parent_value !== "") { + child.parent_value = parent_value; + } + result.push(child); + let children = node.children; + if (children) { + this._extractTree(children, result, node[valueField]); + } + } + }, + _extractTreePath(nodes, result) { + for (let i2 = 0; i2 < nodes.length; i2++) { + let node = nodes[i2]; + let child = {}; + for (let key in node) { + if (key !== "children") { + child[key] = node[key]; + } + } + result.push(child); + let children = node.children; + if (children) { + this._extractTreePath(children, result); + } + } + }, + _findNodePath(key, nodes, path = []) { + let textField = this.map.text; + let valueField = this.map.value; + for (let i2 = 0; i2 < nodes.length; i2++) { + let node = nodes[i2]; + let children = node.children; + let text = node[textField]; + let value = node[valueField]; + path.push({ + value, + text + }); + if (value === key) { + return path; + } + if (children) { + const p2 = this._findNodePath(key, children, path); + if (p2.length) { + return p2; + } + } + path.pop(); + } + return []; + } + } + }; + const _sfc_main$9 = { + name: "UniDataPickerView", + emits: ["nodeclick", "change", "datachange", "update:modelValue"], + mixins: [dataPicker], + props: { + managedMode: { + type: Boolean, + default: false + }, + ellipsis: { + type: Boolean, + default: true + } + }, + created() { + if (!this.managedMode) { + this.$nextTick(() => { + this.loadData(); + }); + } + }, + methods: { + onPropsChange() { + this._treeData = []; + this.selectedIndex = 0; + this.$nextTick(() => { + this.loadData(); + }); + }, + handleSelect(index) { + this.selectedIndex = index; + }, + handleNodeClick(item, i2, j2) { + if (item.disable) { + return; + } + const node = this.dataList[i2][j2]; + const text = node[this.map.text]; + const value = node[this.map.value]; + if (i2 < this.selected.length - 1) { + this.selected.splice(i2, this.selected.length - i2); + this.selected.push({ + text, + value + }); + } else if (i2 === this.selected.length - 1) { + this.selected.splice(i2, 1, { + text, + value + }); + } + if (node.isleaf) { + this.onSelectedChange(node, node.isleaf); + return; + } + const { + isleaf, + hasNodes + } = this._updateBindData(); + if (this.isLocalData) { + this.onSelectedChange(node, !hasNodes || isleaf); + } else if (this.isCloudDataList) { + this.onSelectedChange(node, true); + } else if (this.isCloudDataTree) { + if (isleaf) { + this.onSelectedChange(node, node.isleaf); + } else if (!hasNodes) { + this.loadCloudDataNode((data) => { + if (!data.length) { + node.isleaf = true; + } else { + this._treeData.push(...data); + this._updateBindData(node); + } + this.onSelectedChange(node, node.isleaf); + }); + } + } + }, + updateData(data) { + this._treeData = data.treeData; + this.selected = data.selected; + if (!this._treeData.length) { + this.loadData(); + } else { + this._updateBindData(); + } + }, + onDataChange() { + this.$emit("datachange"); + }, + onSelectedChange(node, isleaf) { + if (isleaf) { + this._dispatchEvent(); + } + if (node) { + this.$emit("nodeclick", node); + } + }, + _dispatchEvent() { + this.$emit("change", this.selected.slice(0)); + } + } + }; + function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) { + const _component_uni_load_more = resolveEasycom(vue.resolveDynamicComponent("uni-load-more"), __easycom_0$1); + return vue.openBlock(), vue.createElementBlock("view", { class: "uni-data-pickerview" }, [ + !_ctx.isCloudDataList ? (vue.openBlock(), vue.createElementBlock("scroll-view", { + key: 0, + class: "selected-area", + "scroll-x": "true" + }, [ + vue.createElementVNode("view", { class: "selected-list" }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(_ctx.selected, (item, index) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: vue.normalizeClass(["selected-item", { + "selected-item-active": index == _ctx.selectedIndex + }]), + key: index, + onClick: ($event) => $options.handleSelect(index) + }, [ + vue.createElementVNode( + "text", + null, + vue.toDisplayString(item.text || ""), + 1 + /* TEXT */ + ) + ], 10, ["onClick"]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ]) + ])) : vue.createCommentVNode("v-if", true), + vue.createElementVNode("view", { class: "tab-c" }, [ + vue.createElementVNode("scroll-view", { + class: "list", + "scroll-y": true + }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(_ctx.dataList[_ctx.selectedIndex], (item, j2) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: vue.normalizeClass(["item", { "is-disabled": !!item.disable }]), + key: j2, + onClick: ($event) => $options.handleNodeClick(item, _ctx.selectedIndex, j2) + }, [ + vue.createElementVNode( + "text", + { class: "item-text" }, + vue.toDisplayString(item[_ctx.map.text]), + 1 + /* TEXT */ + ), + _ctx.selected.length > _ctx.selectedIndex && item[_ctx.map.value] == _ctx.selected[_ctx.selectedIndex].value ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "check" + })) : vue.createCommentVNode("v-if", true) + ], 10, ["onClick"]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ]), + _ctx.loading ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "loading-cover" + }, [ + vue.createVNode(_component_uni_load_more, { + class: "load-more", + contentText: _ctx.loadMore, + status: "loading" + }, null, 8, ["contentText"]) + ])) : vue.createCommentVNode("v-if", true), + _ctx.errorMessage ? (vue.openBlock(), vue.createElementBlock("view", { + key: 1, + class: "error-message" + }, [ + vue.createElementVNode( + "text", + { class: "error-text" }, + vue.toDisplayString(_ctx.errorMessage), + 1 + /* TEXT */ + ) + ])) : vue.createCommentVNode("v-if", true) + ]) + ]); + } + const DataPickerView = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1], ["__scopeId", "data-v-91ec6a82"], ["__file", "D:/projects/cxc-szcx-uniapp/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.vue"]]); + const _sfc_main$8 = { + name: "UniDataPicker", + emits: ["popupopened", "popupclosed", "nodeclick", "input", "change", "update:modelValue", "inputclick"], + mixins: [dataPicker], + components: { + DataPickerView + }, + props: { + options: { + type: [Object, Array], + default() { + return {}; + } + }, + popupTitle: { + type: String, + default: "请选择" + }, + placeholder: { + type: String, + default: "请选择" + }, + heightMobile: { + type: String, + default: "" + }, + readonly: { + type: Boolean, + default: false + }, + clearIcon: { + type: Boolean, + default: true + }, + border: { + type: Boolean, + default: true + }, + split: { + type: String, + default: "/" + }, + ellipsis: { + type: Boolean, + default: true + } + }, + data() { + return { + isOpened: false, + inputSelected: [] + }; + }, + created() { + this.$nextTick(() => { + this.load(); + }); + }, + watch: { + localdata: { + handler() { + this.load(); + }, + deep: true + } + }, + methods: { + clear() { + this._dispatchEvent([]); + }, + onPropsChange() { + this._treeData = []; + this.selectedIndex = 0; + this.load(); + }, + load() { + if (this.readonly) { + this._processReadonly(this.localdata, this.dataValue); + return; + } + if (this.isLocalData) { + this.loadData(); + this.inputSelected = this.selected.slice(0); + } else if (this.isCloudDataList || this.isCloudDataTree) { + this.loading = true; + this.getCloudDataValue().then((res) => { + this.loading = false; + this.inputSelected = res; + }).catch((err) => { + this.loading = false; + this.errorMessage = err; + }); + } + }, + show() { + this.isOpened = true; + setTimeout(() => { + this.$refs.pickerView.updateData({ + treeData: this._treeData, + selected: this.selected, + selectedIndex: this.selectedIndex + }); + }, 200); + this.$emit("popupopened"); + }, + hide() { + this.isOpened = false; + this.$emit("popupclosed"); + }, + handleInput() { + if (this.readonly) { + this.$emit("inputclick"); + return; + } + this.show(); + }, + handleClose(e2) { + this.hide(); + }, + onnodeclick(e2) { + this.$emit("nodeclick", e2); + }, + ondatachange(e2) { + this._treeData = this.$refs.pickerView._treeData; + }, + onchange(e2) { + this.hide(); + this.$nextTick(() => { + this.inputSelected = e2; + }); + this._dispatchEvent(e2); + }, + _processReadonly(dataList, value) { + var isTree = dataList.findIndex((item2) => { + return item2.children; + }); + if (isTree > -1) { + let inputValue; + if (Array.isArray(value)) { + inputValue = value[value.length - 1]; + if (typeof inputValue === "object" && inputValue.value) { + inputValue = inputValue.value; + } + } else { + inputValue = value; + } + this.inputSelected = this._findNodePath(inputValue, this.localdata); + return; + } + if (!this.hasValue) { + this.inputSelected = []; + return; + } + let result = []; + for (let i2 = 0; i2 < value.length; i2++) { + var val = value[i2]; + var item = dataList.find((v2) => { + return v2.value == val; + }); + if (item) { + result.push(item); + } + } + if (result.length) { + this.inputSelected = result; + } + }, + _filterForArray(data, valueArray) { + var result = []; + for (let i2 = 0; i2 < valueArray.length; i2++) { + var value = valueArray[i2]; + var found = data.find((item) => { + return item.value == value; + }); + if (found) { + result.push(found); + } + } + return result; + }, + _dispatchEvent(selected) { + let item = {}; + if (selected.length) { + var value = new Array(selected.length); + for (var i2 = 0; i2 < selected.length; i2++) { + value[i2] = selected[i2].value; + } + item = selected[selected.length - 1]; + } else { + item.value = ""; + } + if (this.formItem) { + this.formItem.setValue(item.value); + } + this.$emit("input", item.value); + this.$emit("update:modelValue", item.value); + this.$emit("change", { + detail: { + value: selected + } + }); + } + } + }; + function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { + const _component_uni_load_more = resolveEasycom(vue.resolveDynamicComponent("uni-load-more"), __easycom_0$1); + const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_1$1); + const _component_data_picker_view = vue.resolveComponent("data-picker-view"); + return vue.openBlock(), vue.createElementBlock("view", { class: "uni-data-tree" }, [ + vue.createElementVNode("view", { + class: "uni-data-tree-input", + onClick: _cache[1] || (_cache[1] = (...args) => $options.handleInput && $options.handleInput(...args)) + }, [ + vue.renderSlot(_ctx.$slots, "default", { + options: $props.options, + data: $data.inputSelected, + error: _ctx.errorMessage + }, () => [ + vue.createElementVNode( + "view", + { + class: vue.normalizeClass(["input-value", { "input-value-border": $props.border }]) + }, + [ + _ctx.errorMessage ? (vue.openBlock(), vue.createElementBlock( + "text", + { + key: 0, + class: "selected-area error-text" + }, + vue.toDisplayString(_ctx.errorMessage), + 1 + /* TEXT */ + )) : _ctx.loading && !$data.isOpened ? (vue.openBlock(), vue.createElementBlock("view", { + key: 1, + class: "selected-area" + }, [ + vue.createVNode(_component_uni_load_more, { + class: "load-more", + contentText: _ctx.loadMore, + status: "loading" + }, null, 8, ["contentText"]) + ])) : $data.inputSelected.length ? (vue.openBlock(), vue.createElementBlock("scroll-view", { + key: 2, + class: "selected-area", + "scroll-x": "true" + }, [ + vue.createElementVNode("view", { class: "selected-list" }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList($data.inputSelected, (item, index) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: "selected-item", + key: index + }, [ + vue.createElementVNode( + "text", + { class: "text-color" }, + vue.toDisplayString(item.text), + 1 + /* TEXT */ + ), + index < $data.inputSelected.length - 1 ? (vue.openBlock(), vue.createElementBlock( + "text", + { + key: 0, + class: "input-split-line" + }, + vue.toDisplayString($props.split), + 1 + /* TEXT */ + )) : vue.createCommentVNode("v-if", true) + ]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ]) + ])) : (vue.openBlock(), vue.createElementBlock( + "text", + { + key: 3, + class: "selected-area placeholder" + }, + vue.toDisplayString($props.placeholder), + 1 + /* TEXT */ + )), + $props.clearIcon && !$props.readonly && $data.inputSelected.length ? (vue.openBlock(), vue.createElementBlock("view", { + key: 4, + class: "icon-clear", + onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => $options.clear && $options.clear(...args), ["stop"])) + }, [ + vue.createVNode(_component_uni_icons, { + type: "clear", + color: "#c0c4cc", + size: "24" + }) + ])) : vue.createCommentVNode("v-if", true), + (!$props.clearIcon || !$data.inputSelected.length) && !$props.readonly ? (vue.openBlock(), vue.createElementBlock("view", { + key: 5, + class: "arrow-area" + }, [ + vue.createElementVNode("view", { class: "input-arrow" }) + ])) : vue.createCommentVNode("v-if", true) + ], + 2 + /* CLASS */ + ) + ], true) + ]), + $data.isOpened ? (vue.openBlock(), vue.createElementBlock("view", { + key: 0, + class: "uni-data-tree-cover", + onClick: _cache[2] || (_cache[2] = (...args) => $options.handleClose && $options.handleClose(...args)) + })) : vue.createCommentVNode("v-if", true), + $data.isOpened ? (vue.openBlock(), vue.createElementBlock("view", { + key: 1, + class: "uni-data-tree-dialog" + }, [ + vue.createElementVNode("view", { class: "uni-popper__arrow" }), + vue.createElementVNode("view", { class: "dialog-caption" }, [ + vue.createElementVNode("view", { class: "title-area" }, [ + vue.createElementVNode( + "text", + { class: "dialog-title" }, + vue.toDisplayString($props.popupTitle), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { + class: "dialog-close", + onClick: _cache[3] || (_cache[3] = (...args) => $options.handleClose && $options.handleClose(...args)) + }, [ + vue.createElementVNode("view", { + class: "dialog-close-plus", + "data-id": "close" + }), + vue.createElementVNode("view", { + class: "dialog-close-plus dialog-close-rotate", + "data-id": "close" + }) + ]) + ]), + vue.createVNode(_component_data_picker_view, { + class: "picker-view", + ref: "pickerView", + modelValue: _ctx.dataValue, + "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.dataValue = $event), + localdata: _ctx.localdata, + preload: _ctx.preload, + collection: _ctx.collection, + field: _ctx.field, + orderby: _ctx.orderby, + where: _ctx.where, + "step-searh": _ctx.stepSearh, + "self-field": _ctx.selfField, + "parent-field": _ctx.parentField, + "managed-mode": true, + map: _ctx.map, + ellipsis: $props.ellipsis, + onChange: $options.onchange, + onDatachange: $options.ondatachange, + onNodeclick: $options.onnodeclick + }, null, 8, ["modelValue", "localdata", "preload", "collection", "field", "orderby", "where", "step-searh", "self-field", "parent-field", "map", "ellipsis", "onChange", "onDatachange", "onNodeclick"]) + ])) : vue.createCommentVNode("v-if", true) + ]); + } + const __easycom_0 = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render], ["__scopeId", "data-v-2653531e"], ["__file", "D:/projects/cxc-szcx-uniapp/uni_modules/uni-data-picker/components/uni-data-picker/uni-data-picker.vue"]]); + const _sfc_main$7 = { + __name: "index", + setup(__props) { + const store = useStore(); + const { + proxy + } = vue.getCurrentInstance(); + const departList = vue.ref([]); + const queryMyDeptTreeList = () => { + queryMyDeptTreeListApi().then((res) => { + departList.value = res.result; + currentId = res.result[0].id; + queryUserByDepId(res.result[0].id); + }).catch((err) => { + formatAppLog("log", "at pages/userlist/index.vue:98", err); + }); + }; + const userlist = vue.ref([]); + const queryUserByDepId = (id, username2, realname2) => { + queryUserByDepIdApi({ + id, + username: username2 || "", + realname: realname2 || "" + }).then((res) => { + if (res.success) { + userlist.value = res.result; + } + }).catch((err) => { + formatAppLog("log", "at pages/userlist/index.vue:113", err); + }); + }; + let currentId = null; + let departArr = []; + const onnodeclick = (e2) => { + queryUserByDepId(e2.id); + currentId = e2.id; + if (departArr.indexOf(e2.title) != -1) { + departArr.splice(departArr.indexOf(e2.title), 1, e2.title); + } else { + departArr.push(e2.title); + } + }; + const popclose = (e2) => { + formatAppLog("log", "at pages/userlist/index.vue:129", "qqq", e2); + }; + const chooseArr = vue.ref([]); + const choose = (id) => { + if (isradio) { + if (chooseArr.value.indexOf(id) != -1) + return; + chooseArr.value.splice(chooseArr.value.indexOf(id), 1, id); + } else { + if (chooseArr.value.indexOf(id) != -1) { + chooseArr.value.splice(chooseArr.value.indexOf(id), 1); + } else { + chooseArr.value.push(id); + } + } + }; + let isradio = 0; + let taskId = null; + let nextnode = null; + let reason = null; + onLoad((options) => { + isradio = options.isradio; + taskId = options.id; + reason = options.reason; + if (options.nextnode) { + nextnode = JSON.parse(options.nextnode); + } + queryMyDeptTreeList(); + }); + const username = vue.ref(""); + const realname = vue.ref(""); + const search = () => { + if (username.value.trim() || realname.value.trim()) { + userlist.value = []; + queryUserByDepId(currentId, username.value, realname.value); + } + }; + const refresh = () => { + username.value = ""; + realname.value = ""; + userlist.value = []; + queryUserByDepId(currentId, username.value, realname.value); + }; + const taskEntrust = () => { + if (!chooseArr.value.length) + return proxy.$toast("请选择被委托人"); + taskEntrustApi({ + taskAssignee: userlist.value.filter((item) => item.id == chooseArr.value[0])[0].username, + taskId + }).then((res) => { + if (res.success) { + proxy.$toast(res.message); + setTimeout(() => { + uni.navigateBack(); + }, 2e3); + } + }); + }; + const handleprocess = () => { + if (nextnode) { + processComplete(); + } else { + taskEntrust(); + } + }; + const processComplete = () => { + processCompleteApi({ + taskId, + reason, + processModel: 1, + nextnode: nextnode[0].nextnode, + nextUserName: userlist.value.filter((item) => item.id == chooseArr.value[0])[0].realname, + nextUserId: chooseArr.value[0] + }).then((res) => { + proxy.$toast(res.message); + setTimeout(() => { + uni.navigateBack(); + }, 2e3); + }); + }; + return (_ctx, _cache) => { + const _component_uni_data_picker = resolveEasycom(vue.resolveDynamicComponent("uni-data-picker"), __easycom_0); + const _component_uni_icons = resolveEasycom(vue.resolveDynamicComponent("uni-icons"), __easycom_1$1); + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass(["content", { "gray": vue.unref(store).isgray == 1 }]) + }, + [ + vue.createVNode(_component_uni_data_picker, { + onPopupclosed: _cache[0] || (_cache[0] = ($event) => popclose($event)), + "step-searh": false, + map: { text: "departName", value: "id" }, + localdata: departList.value, + "popup-title": "请选择部门", + placeholder: "请选择部门", + onNodeclick: onnodeclick + }, null, 8, ["localdata"]), + vue.createElementVNode("view", { class: "search_box" }, [ + vue.createElementVNode("view", { class: "username f-row aic" }, [ + vue.createTextVNode(" 用户姓名:"), + vue.withDirectives(vue.createElementVNode( + "input", + { + "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => realname.value = $event), + type: "text", + placeholder: "请输入姓名", + "placeholder-style": "color: grey;font-size: 28rpx;" + }, + null, + 512 + /* NEED_PATCH */ + ), [ + [vue.vModelText, realname.value] + ]) + ]), + vue.createElementVNode("view", { class: "username f-row aic" }, [ + vue.createTextVNode(" 用户账号:"), + vue.withDirectives(vue.createElementVNode( + "input", + { + "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => username.value = $event), + type: "text", + placeholder: "请输入账号", + "placeholder-style": "color: grey;font-size: 28rpx;" + }, + null, + 512 + /* NEED_PATCH */ + ), [ + [vue.vModelText, username.value] + ]) + ]), + vue.createElementVNode("view", { class: "btn f-row aic jca" }, [ + vue.createElementVNode("view", { + class: "f-row aic", + onClick: search + }, [ + vue.createVNode(_component_uni_icons, { + type: "search", + size: "15", + color: "#fff" + }), + vue.createTextVNode(" 查询 ") + ]), + vue.createElementVNode("view", { + class: "f-row aic", + onClick: refresh + }, [ + vue.createVNode(_component_uni_icons, { + type: "refreshempty", + size: "15", + color: "#fff" + }), + vue.createTextVNode(" 重置 ") + ]) + ]) + ]), + vue.createElementVNode("view", { class: "list" }, [ + vue.createElementVNode("view", { class: "title f-row aic box" }, [ + vue.createElementVNode("view", { class: "" }), + vue.createElementVNode("view", { class: "" }, " 序号 "), + vue.createElementVNode("view", { class: "username" }, " 用户账号 "), + vue.createElementVNode("view", { class: "" }, " 用户姓名 ") + ]), + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(userlist.value, (item, i2) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: "item f-row aic box", + key: i2 + }, [ + vue.createElementVNode("view", { + class: "f-row aic img", + onClick: ($event) => choose(item.id) + }, [ + chooseArr.value.includes(item.id) ? (vue.openBlock(), vue.createElementBlock("image", { + key: 0, + src: "/static/login/checked.png", + mode: "" + })) : (vue.openBlock(), vue.createElementBlock("image", { + key: 1, + src: "/static/login/nocheck.png", + mode: "" + })) + ], 8, ["onClick"]), + vue.createElementVNode( + "view", + { class: "order" }, + vue.toDisplayString(i2 + 1), + 1 + /* TEXT */ + ), + vue.createElementVNode("view", { class: "username f-col aic" }, [ + vue.createElementVNode( + "view", + { class: "" }, + vue.toDisplayString(item.username), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "realname" }, [ + vue.createElementVNode( + "view", + { class: "" }, + vue.toDisplayString(item.realname), + 1 + /* TEXT */ + ) + ]) + ]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ]), + vue.createElementVNode("view", { class: "confirm f-col aic" }, [ + vue.createElementVNode("view", { + class: "", + onClick: handleprocess + }, " 确认 ") + ]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesUserlistIndex = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-89e61cf9"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/userlist/index.vue"]]); + const _sfc_main$6 = { + __name: "detail", + setup(__props) { + const store = useStore(); + return (_ctx, _cache) => { + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass(["content", { "gray": vue.unref(store).isgray == 1 }]) + }, + [ + vue.createElementVNode("view", { class: "" }, [ + vue.createElementVNode("video", { src: "" }), + vue.createElementVNode("view", { class: "title" }, " 五月天“突然好想你”线上演唱会精彩回放,这里就是标题 ") + ]), + vue.createElementVNode("view", { class: "listcom" }, [ + vue.createVNode(safeCom) + ]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesSafeDetail = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-952b08c2"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/safe/detail.vue"]]); + var dayjs_min = { exports: {} }; + (function(module, exports) { + !function(t2, e2) { + module.exports = e2(); + }(commonjsGlobal, function() { + var t2 = 1e3, e2 = 6e4, n2 = 36e5, r2 = "millisecond", i2 = "second", s2 = "minute", u2 = "hour", a2 = "day", o2 = "week", c2 = "month", f2 = "quarter", h2 = "year", d2 = "date", l2 = "Invalid Date", $2 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y2 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M2 = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) { + var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100; + return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]"; + } }, m2 = function(t3, e3, n3) { + var r3 = String(t3); + return !r3 || r3.length >= e3 ? t3 : "" + Array(e3 + 1 - r3.length).join(n3) + t3; + }, v2 = { s: m2, z: function(t3) { + var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i3 = n3 % 60; + return (e3 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(i3, 2, "0"); + }, m: function t3(e3, n3) { + if (e3.date() < n3.date()) + return -t3(n3, e3); + var r3 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i3 = e3.clone().add(r3, c2), s3 = n3 - i3 < 0, u3 = e3.clone().add(r3 + (s3 ? -1 : 1), c2); + return +(-(r3 + (n3 - i3) / (s3 ? i3 - u3 : u3 - i3)) || 0); + }, a: function(t3) { + return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3); + }, p: function(t3) { + return { M: c2, y: h2, w: o2, d: a2, D: d2, h: u2, m: s2, s: i2, ms: r2, Q: f2 }[t3] || String(t3 || "").toLowerCase().replace(/s$/, ""); + }, u: function(t3) { + return void 0 === t3; + } }, g2 = "en", D2 = {}; + D2[g2] = M2; + var p2 = "$isDayjsObject", S2 = function(t3) { + return t3 instanceof _2 || !(!t3 || !t3[p2]); + }, w2 = function t3(e3, n3, r3) { + var i3; + if (!e3) + return g2; + if ("string" == typeof e3) { + var s3 = e3.toLowerCase(); + D2[s3] && (i3 = s3), n3 && (D2[s3] = n3, i3 = s3); + var u3 = e3.split("-"); + if (!i3 && u3.length > 1) + return t3(u3[0]); + } else { + var a3 = e3.name; + D2[a3] = e3, i3 = a3; + } + return !r3 && i3 && (g2 = i3), i3 || !r3 && g2; + }, O2 = function(t3, e3) { + if (S2(t3)) + return t3.clone(); + var n3 = "object" == typeof e3 ? e3 : {}; + return n3.date = t3, n3.args = arguments, new _2(n3); + }, b2 = v2; + b2.l = w2, b2.i = S2, b2.w = function(t3, e3) { + return O2(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset }); + }; + var _2 = function() { + function M3(t3) { + this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p2] = true; + } + var m3 = M3.prototype; + return m3.parse = function(t3) { + this.$d = function(t4) { + var e3 = t4.date, n3 = t4.utc; + if (null === e3) + return /* @__PURE__ */ new Date(NaN); + if (b2.u(e3)) + return /* @__PURE__ */ new Date(); + if (e3 instanceof Date) + return new Date(e3); + if ("string" == typeof e3 && !/Z$/i.test(e3)) { + var r3 = e3.match($2); + if (r3) { + var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3); + return n3 ? new Date(Date.UTC(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3)) : new Date(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3); + } + } + return new Date(e3); + }(t3), this.init(); + }, m3.init = function() { + var t3 = this.$d; + this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds(); + }, m3.$utils = function() { + return b2; + }, m3.isValid = function() { + return !(this.$d.toString() === l2); + }, m3.isSame = function(t3, e3) { + var n3 = O2(t3); + return this.startOf(e3) <= n3 && n3 <= this.endOf(e3); + }, m3.isAfter = function(t3, e3) { + return O2(t3) < this.startOf(e3); + }, m3.isBefore = function(t3, e3) { + return this.endOf(e3) < O2(t3); + }, m3.$g = function(t3, e3, n3) { + return b2.u(t3) ? this[e3] : this.set(n3, t3); + }, m3.unix = function() { + return Math.floor(this.valueOf() / 1e3); + }, m3.valueOf = function() { + return this.$d.getTime(); + }, m3.startOf = function(t3, e3) { + var n3 = this, r3 = !!b2.u(e3) || e3, f3 = b2.p(t3), l3 = function(t4, e4) { + var i3 = b2.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3); + return r3 ? i3 : i3.endOf(a2); + }, $3 = function(t4, e4) { + return b2.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3); + }, y3 = this.$W, M4 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : ""); + switch (f3) { + case h2: + return r3 ? l3(1, 0) : l3(31, 11); + case c2: + return r3 ? l3(1, M4) : l3(0, M4 + 1); + case o2: + var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3; + return l3(r3 ? m4 - D3 : m4 + (6 - D3), M4); + case a2: + case d2: + return $3(v3 + "Hours", 0); + case u2: + return $3(v3 + "Minutes", 1); + case s2: + return $3(v3 + "Seconds", 2); + case i2: + return $3(v3 + "Milliseconds", 3); + default: + return this.clone(); + } + }, m3.endOf = function(t3) { + return this.startOf(t3, false); + }, m3.$set = function(t3, e3) { + var n3, o3 = b2.p(t3), f3 = "set" + (this.$u ? "UTC" : ""), l3 = (n3 = {}, n3[a2] = f3 + "Date", n3[d2] = f3 + "Date", n3[c2] = f3 + "Month", n3[h2] = f3 + "FullYear", n3[u2] = f3 + "Hours", n3[s2] = f3 + "Minutes", n3[i2] = f3 + "Seconds", n3[r2] = f3 + "Milliseconds", n3)[o3], $3 = o3 === a2 ? this.$D + (e3 - this.$W) : e3; + if (o3 === c2 || o3 === h2) { + var y3 = this.clone().set(d2, 1); + y3.$d[l3]($3), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d; + } else + l3 && this.$d[l3]($3); + return this.init(), this; + }, m3.set = function(t3, e3) { + return this.clone().$set(t3, e3); + }, m3.get = function(t3) { + return this[b2.p(t3)](); + }, m3.add = function(r3, f3) { + var d3, l3 = this; + r3 = Number(r3); + var $3 = b2.p(f3), y3 = function(t3) { + var e3 = O2(l3); + return b2.w(e3.date(e3.date() + Math.round(t3 * r3)), l3); + }; + if ($3 === c2) + return this.set(c2, this.$M + r3); + if ($3 === h2) + return this.set(h2, this.$y + r3); + if ($3 === a2) + return y3(1); + if ($3 === o2) + return y3(7); + var M4 = (d3 = {}, d3[s2] = e2, d3[u2] = n2, d3[i2] = t2, d3)[$3] || 1, m4 = this.$d.getTime() + r3 * M4; + return b2.w(m4, this); + }, m3.subtract = function(t3, e3) { + return this.add(-1 * t3, e3); + }, m3.format = function(t3) { + var e3 = this, n3 = this.$locale(); + if (!this.isValid()) + return n3.invalidDate || l2; + var r3 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i3 = b2.z(this), s3 = this.$H, u3 = this.$m, a3 = this.$M, o3 = n3.weekdays, c3 = n3.months, f3 = n3.meridiem, h3 = function(t4, n4, i4, s4) { + return t4 && (t4[n4] || t4(e3, r3)) || i4[n4].slice(0, s4); + }, d3 = function(t4) { + return b2.s(s3 % 12 || 12, t4, "0"); + }, $3 = f3 || function(t4, e4, n4) { + var r4 = t4 < 12 ? "AM" : "PM"; + return n4 ? r4.toLowerCase() : r4; + }; + return r3.replace(y2, function(t4, r4) { + return r4 || function(t5) { + switch (t5) { + case "YY": + return String(e3.$y).slice(-2); + case "YYYY": + return b2.s(e3.$y, 4, "0"); + case "M": + return a3 + 1; + case "MM": + return b2.s(a3 + 1, 2, "0"); + case "MMM": + return h3(n3.monthsShort, a3, c3, 3); + case "MMMM": + return h3(c3, a3); + case "D": + return e3.$D; + case "DD": + return b2.s(e3.$D, 2, "0"); + case "d": + return String(e3.$W); + case "dd": + return h3(n3.weekdaysMin, e3.$W, o3, 2); + case "ddd": + return h3(n3.weekdaysShort, e3.$W, o3, 3); + case "dddd": + return o3[e3.$W]; + case "H": + return String(s3); + case "HH": + return b2.s(s3, 2, "0"); + case "h": + return d3(1); + case "hh": + return d3(2); + case "a": + return $3(s3, u3, true); + case "A": + return $3(s3, u3, false); + case "m": + return String(u3); + case "mm": + return b2.s(u3, 2, "0"); + case "s": + return String(e3.$s); + case "ss": + return b2.s(e3.$s, 2, "0"); + case "SSS": + return b2.s(e3.$ms, 3, "0"); + case "Z": + return i3; + } + return null; + }(t4) || i3.replace(":", ""); + }); + }, m3.utcOffset = function() { + return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); + }, m3.diff = function(r3, d3, l3) { + var $3, y3 = this, M4 = b2.p(d3), m4 = O2(r3), v3 = (m4.utcOffset() - this.utcOffset()) * e2, g3 = this - m4, D3 = function() { + return b2.m(y3, m4); + }; + switch (M4) { + case h2: + $3 = D3() / 12; + break; + case c2: + $3 = D3(); + break; + case f2: + $3 = D3() / 3; + break; + case o2: + $3 = (g3 - v3) / 6048e5; + break; + case a2: + $3 = (g3 - v3) / 864e5; + break; + case u2: + $3 = g3 / n2; + break; + case s2: + $3 = g3 / e2; + break; + case i2: + $3 = g3 / t2; + break; + default: + $3 = g3; + } + return l3 ? $3 : b2.a($3); + }, m3.daysInMonth = function() { + return this.endOf(c2).$D; + }, m3.$locale = function() { + return D2[this.$L]; + }, m3.locale = function(t3, e3) { + if (!t3) + return this.$L; + var n3 = this.clone(), r3 = w2(t3, e3, true); + return r3 && (n3.$L = r3), n3; + }, m3.clone = function() { + return b2.w(this.$d, this); + }, m3.toDate = function() { + return new Date(this.valueOf()); + }, m3.toJSON = function() { + return this.isValid() ? this.toISOString() : null; + }, m3.toISOString = function() { + return this.$d.toISOString(); + }, m3.toString = function() { + return this.$d.toUTCString(); + }, M3; + }(), k = _2.prototype; + return O2.prototype = k, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h2], ["$D", d2]].forEach(function(t3) { + k[t3[1]] = function(e3) { + return this.$g(e3, t3[0], t3[1]); + }; + }), O2.extend = function(t3, e3) { + return t3.$i || (t3(e3, _2, O2), t3.$i = true), O2; + }, O2.locale = w2, O2.isDayjs = S2, O2.unix = function(t3) { + return O2(1e3 * t3); + }, O2.en = D2[g2], O2.Ls = D2, O2.p = {}, O2; + }); + })(dayjs_min); + var dayjs_minExports = dayjs_min.exports; + const dayjs = /* @__PURE__ */ getDefaultExportFromCjs$1(dayjs_minExports); + const _sfc_main$5 = { + __name: "index", + setup(__props) { + const store = useStore(); + const zhibanArr = vue.ref([]); + onLoad(() => { + zhibanQuery(); + }); + const index = vue.ref(dayjs().format("YYYY-MM")); + const bindPickerChange = (e2) => { + index.value = e2.detail.value; + zhibanQuery(); + }; + const zhibanQuery = () => { + let [year, month] = index.value.split("-"); + zhibanQueryApi({ + year, + month + }).then((res) => { + zhibanArr.value = res.result.records; + }).catch((err) => { + formatAppLog("log", "at pages/zhiban/index.vue:73", err); + }); + }; + return (_ctx, _cache) => { + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass(["f-col", "aic", { "gray": vue.unref(store).isgray == 1 }]) + }, + [ + vue.createElementVNode("picker", { + fields: "month", + mode: "date", + onChange: bindPickerChange, + value: index.value + }, [ + vue.createElementVNode( + "view", + { class: "date" }, + vue.toDisplayString(index.value) + " 点击选择月份", + 1 + /* TEXT */ + ) + ], 40, ["value"]), + vue.createElementVNode("view", { class: "info" }, [ + vue.createElementVNode("view", { class: "info_title f-row aic" }, [ + vue.createElementVNode("view", { class: "" }, " 日期 "), + vue.createElementVNode("view", { class: "" }, " 带班领导 "), + vue.createElementVNode("view", { class: "" }, " 值班领导 "), + vue.createElementVNode("view", { class: "" }, " 值班干部 ") + ]), + vue.createElementVNode("view", { class: "data_box" }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(zhibanArr.value, (item, i2) => { + return vue.openBlock(), vue.createElementBlock("view", { class: "data f-row aic" }, [ + vue.createElementVNode( + "view", + { class: "" }, + vue.toDisplayString(item.date), + 1 + /* TEXT */ + ), + vue.createElementVNode( + "view", + { class: "" }, + vue.toDisplayString(item.dbld_dictText), + 1 + /* TEXT */ + ), + vue.createElementVNode( + "view", + { class: "" }, + vue.toDisplayString(item.zbld_dictText), + 1 + /* TEXT */ + ), + vue.createElementVNode( + "view", + { class: "" }, + vue.toDisplayString(item.zbgbrealname), + 1 + /* TEXT */ + ) + ]); + }), + 256 + /* UNKEYED_FRAGMENT */ + )) + ]) + ]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesZhibanIndex = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-54a2fc4a"], ["__file", "D:/projects/cxc-szcx-uniapp/pages/zhiban/index.vue"]]); + const _sfc_main$4 = { + __name: "self", + setup(__props) { + const store = useStore(); + const taskArr = vue.ref([]); + let processName = ""; + onLoad((options) => { + processName = options.title; + getmyApply(); + }); + let pageNo = 1; + let pageSize = 10; + let loading2 = false; + const getmyApply = () => { + loading2 = true; + uni.showLoading({ + title: "加载中..." + }); + myApplyProcessListApi({ + pageNo, + pageSize, + _t: (/* @__PURE__ */ new Date()).getTime(), + processName + }).then((res) => { + if (res.success) { + if (!res.result.records.length) + return toast("没有更多了~"); + let arr = res.result.records; + arr.map((item) => { + item["processApplyUserName"] = item["startUserName"]; + item["processDefinitionName"] = item["prcocessDefinitionName"]; + item["taskBeginTime"] = item["startTime"]; + }); + taskArr.value = [...taskArr.value, ...arr]; + loading2 = false; + } + }).catch((err) => { + formatAppLog("log", "at pages/task/self.vue:59", err); + }); + }; + const jump = (url) => { + beforeJump(url, () => { + uni.navigateTo({ + url + }); + }); + }; + onReachBottom(() => { + if (loading2) + return; + pageNo++; + getmyApply(); + }); + return (_ctx, _cache) => { + return vue.openBlock(), vue.createElementBlock( + "view", + { + class: vue.normalizeClass({ "gray": vue.unref(store).isgray == 1 }) + }, + [ + vue.createVNode(tasklistCom, { + onJump: jump, + taskArr: taskArr.value, + currentIndex: 2 + }, null, 8, ["taskArr"]) + ], + 2 + /* CLASS */ + ); + }; + } + }; + const PagesTaskSelf = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__file", "D:/projects/cxc-szcx-uniapp/pages/task/self.vue"]]); + __definePage("pages/login/login", PagesLoginLogin); + __definePage("pages/tab/index", PagesTabIndex); + __definePage("pages/task/todotask", PagesTaskTodotask); + __definePage("pages/tab/office", PagesTabOffice); + __definePage("pages/tab/my", PagesTabMy); + __definePage("pages/task/index", PagesTaskIndex); + __definePage("pages/task/handle", PagesTaskHandle); + __definePage("pages/talk/message_list", PagesTalkMessage_list); + __definePage("pages/talk/conversation", PagesTalkConversation); + __definePage("pages/talk/system", PagesTalkSystem); + __definePage("pages/document/index", PagesDocumentIndex); + __definePage("pages/document/detail", PagesDocumentDetail); + __definePage("pages/meeting/index", PagesMeetingIndex); + __definePage("pages/meeting/detail", PagesMeetingDetail); + __definePage("pages/leave/application", PagesLeaveApplication); + __definePage("pages/checkin/index", PagesCheckinIndex); + __definePage("pages/useredit/useredit", PagesUsereditUseredit); + __definePage("pages/useredit/address", PagesUsereditAddress); + __definePage("pages/useredit/add_address", PagesUsereditAdd_address); + __definePage("pages/useredit/addressbook", PagesUsereditAddressbook); + __definePage("pages/safe/manage", PagesSafeManage); + __definePage("pages/product/index", PagesProductIndex); + __definePage("pages/userlist/index", PagesUserlistIndex); + __definePage("pages/safe/detail", PagesSafeDetail); + __definePage("pages/zhiban/index", PagesZhibanIndex); + __definePage("pages/task/self", PagesTaskSelf); + var lookup = [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 62, + 0, + 62, + 0, + 63, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 0, + 0, + 0, + 0, + 63, + 0, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51 + ]; + function base64Decode(source, target) { + var sourceLength = source.length; + var paddingLength = source[sourceLength - 2] === "=" ? 2 : source[sourceLength - 1] === "=" ? 1 : 0; + var tmp; + var byteIndex = 0; + var baseLength = sourceLength - paddingLength & 4294967292; + for (var i2 = 0; i2 < baseLength; i2 += 4) { + tmp = lookup[source.charCodeAt(i2)] << 18 | lookup[source.charCodeAt(i2 + 1)] << 12 | lookup[source.charCodeAt(i2 + 2)] << 6 | lookup[source.charCodeAt(i2 + 3)]; + target[byteIndex++] = tmp >> 16 & 255; + target[byteIndex++] = tmp >> 8 & 255; + target[byteIndex++] = tmp & 255; + } + if (paddingLength === 1) { + tmp = lookup[source.charCodeAt(i2)] << 10 | lookup[source.charCodeAt(i2 + 1)] << 4 | lookup[source.charCodeAt(i2 + 2)] >> 2; + target[byteIndex++] = tmp >> 8 & 255; + target[byteIndex++] = tmp & 255; + } + if (paddingLength === 2) { + tmp = lookup[source.charCodeAt(i2)] << 2 | lookup[source.charCodeAt(i2 + 1)] >> 4; + target[byteIndex++] = tmp & 255; + } + } + const $inject_window_crypto = { + getRandomValues(arr) { + if (!(arr instanceof Int8Array || arr instanceof Uint8Array || arr instanceof Int16Array || arr instanceof Uint16Array || arr instanceof Int32Array || arr instanceof Uint32Array || arr instanceof Uint8ClampedArray)) { + throw new Error("Expected an integer array"); + } + if (arr.byteLength > 65536) { + throw new Error("Can only request a maximum of 65536 bytes"); + } + var crypto = requireNativePlugin("DCloud-Crypto"); + base64Decode(crypto.getRandomValues(arr.byteLength), new Uint8Array( + arr.buffer, + arr.byteOffset, + arr.byteLength + )); + return arr; + } + }; + function getDefaultExportFromCjs(x) { + return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x; + } + var gtpushMin = { exports: {} }; + /*! For license information please see gtpush-min.js.LICENSE.txt */ + (function(module, exports) { + (function t2(e2, r2) { + module.exports = r2(); + })(self, () => (() => { + var t2 = { 4736: (t22, e22, r22) => { + t22 = r22.nmd(t22); + var i22; + var n2 = function(t3) { + var e3 = 1e7, r3 = 7, i3 = 9007199254740992, s2 = d2(i3), a2 = "0123456789abcdefghijklmnopqrstuvwxyz"; + var o2 = "function" === typeof BigInt; + function u2(t4, e4, r4, i4) { + if ("undefined" === typeof t4) + return u2[0]; + if ("undefined" !== typeof e4) + return 10 === +e4 && !r4 ? st2(t4) : X2(t4, e4, r4, i4); + return st2(t4); + } + function c2(t4, e4) { + this.value = t4; + this.sign = e4; + this.isSmall = false; + } + c2.prototype = Object.create(u2.prototype); + function l2(t4) { + this.value = t4; + this.sign = t4 < 0; + this.isSmall = true; + } + l2.prototype = Object.create(u2.prototype); + function f2(t4) { + this.value = t4; + } + f2.prototype = Object.create(u2.prototype); + function h2(t4) { + return -i3 < t4 && t4 < i3; + } + function d2(t4) { + if (t4 < 1e7) + return [t4]; + if (t4 < 1e14) + return [t4 % 1e7, Math.floor(t4 / 1e7)]; + return [t4 % 1e7, Math.floor(t4 / 1e7) % 1e7, Math.floor(t4 / 1e14)]; + } + function v2(t4) { + p2(t4); + var r4 = t4.length; + if (r4 < 4 && N2(t4, s2) < 0) + switch (r4) { + case 0: + return 0; + case 1: + return t4[0]; + case 2: + return t4[0] + t4[1] * e3; + default: + return t4[0] + (t4[1] + t4[2] * e3) * e3; + } + return t4; + } + function p2(t4) { + var e4 = t4.length; + while (0 === t4[--e4]) + ; + t4.length = e4 + 1; + } + function g2(t4) { + var e4 = new Array(t4); + var r4 = -1; + while (++r4 < t4) + e4[r4] = 0; + return e4; + } + function y2(t4) { + if (t4 > 0) + return Math.floor(t4); + return Math.ceil(t4); + } + function m2(t4, r4) { + var i4 = t4.length, n22 = r4.length, s22 = new Array(i4), a22 = 0, o22 = e3, u22, c22; + for (c22 = 0; c22 < n22; c22++) { + u22 = t4[c22] + r4[c22] + a22; + a22 = u22 >= o22 ? 1 : 0; + s22[c22] = u22 - a22 * o22; + } + while (c22 < i4) { + u22 = t4[c22] + a22; + a22 = u22 === o22 ? 1 : 0; + s22[c22++] = u22 - a22 * o22; + } + if (a22 > 0) + s22.push(a22); + return s22; + } + function w2(t4, e4) { + if (t4.length >= e4.length) + return m2(t4, e4); + return m2(e4, t4); + } + function S2(t4, r4) { + var i4 = t4.length, n22 = new Array(i4), s22 = e3, a22, o22; + for (o22 = 0; o22 < i4; o22++) { + a22 = t4[o22] - s22 + r4; + r4 = Math.floor(a22 / s22); + n22[o22] = a22 - r4 * s22; + r4 += 1; + } + while (r4 > 0) { + n22[o22++] = r4 % s22; + r4 = Math.floor(r4 / s22); + } + return n22; + } + c2.prototype.add = function(t4) { + var e4 = st2(t4); + if (this.sign !== e4.sign) + return this.subtract(e4.negate()); + var r4 = this.value, i4 = e4.value; + if (e4.isSmall) + return new c2(S2(r4, Math.abs(i4)), this.sign); + return new c2(w2(r4, i4), this.sign); + }; + c2.prototype.plus = c2.prototype.add; + l2.prototype.add = function(t4) { + var e4 = st2(t4); + var r4 = this.value; + if (r4 < 0 !== e4.sign) + return this.subtract(e4.negate()); + var i4 = e4.value; + if (e4.isSmall) { + if (h2(r4 + i4)) + return new l2(r4 + i4); + i4 = d2(Math.abs(i4)); + } + return new c2(S2(i4, Math.abs(r4)), r4 < 0); + }; + l2.prototype.plus = l2.prototype.add; + f2.prototype.add = function(t4) { + return new f2(this.value + st2(t4).value); + }; + f2.prototype.plus = f2.prototype.add; + function _2(t4, r4) { + var i4 = t4.length, n22 = r4.length, s22 = new Array(i4), a22 = 0, o22 = e3, u22, c22; + for (u22 = 0; u22 < n22; u22++) { + c22 = t4[u22] - a22 - r4[u22]; + if (c22 < 0) { + c22 += o22; + a22 = 1; + } else + a22 = 0; + s22[u22] = c22; + } + for (u22 = n22; u22 < i4; u22++) { + c22 = t4[u22] - a22; + if (c22 < 0) + c22 += o22; + else { + s22[u22++] = c22; + break; + } + s22[u22] = c22; + } + for (; u22 < i4; u22++) + s22[u22] = t4[u22]; + p2(s22); + return s22; + } + function b2(t4, e4, r4) { + var i4; + if (N2(t4, e4) >= 0) + i4 = _2(t4, e4); + else { + i4 = _2(e4, t4); + r4 = !r4; + } + i4 = v2(i4); + if ("number" === typeof i4) { + if (r4) + i4 = -i4; + return new l2(i4); + } + return new c2(i4, r4); + } + function E2(t4, r4, i4) { + var n22 = t4.length, s22 = new Array(n22), a22 = -r4, o22 = e3, u22, f22; + for (u22 = 0; u22 < n22; u22++) { + f22 = t4[u22] + a22; + a22 = Math.floor(f22 / o22); + f22 %= o22; + s22[u22] = f22 < 0 ? f22 + o22 : f22; + } + s22 = v2(s22); + if ("number" === typeof s22) { + if (i4) + s22 = -s22; + return new l2(s22); + } + return new c2(s22, i4); + } + c2.prototype.subtract = function(t4) { + var e4 = st2(t4); + if (this.sign !== e4.sign) + return this.add(e4.negate()); + var r4 = this.value, i4 = e4.value; + if (e4.isSmall) + return E2(r4, Math.abs(i4), this.sign); + return b2(r4, i4, this.sign); + }; + c2.prototype.minus = c2.prototype.subtract; + l2.prototype.subtract = function(t4) { + var e4 = st2(t4); + var r4 = this.value; + if (r4 < 0 !== e4.sign) + return this.add(e4.negate()); + var i4 = e4.value; + if (e4.isSmall) + return new l2(r4 - i4); + return E2(i4, Math.abs(r4), r4 >= 0); + }; + l2.prototype.minus = l2.prototype.subtract; + f2.prototype.subtract = function(t4) { + return new f2(this.value - st2(t4).value); + }; + f2.prototype.minus = f2.prototype.subtract; + c2.prototype.negate = function() { + return new c2(this.value, !this.sign); + }; + l2.prototype.negate = function() { + var t4 = this.sign; + var e4 = new l2(-this.value); + e4.sign = !t4; + return e4; + }; + f2.prototype.negate = function() { + return new f2(-this.value); + }; + c2.prototype.abs = function() { + return new c2(this.value, false); + }; + l2.prototype.abs = function() { + return new l2(Math.abs(this.value)); + }; + f2.prototype.abs = function() { + return new f2(this.value >= 0 ? this.value : -this.value); + }; + function D2(t4, r4) { + var i4 = t4.length, n22 = r4.length, s22 = i4 + n22, a22 = g2(s22), o22 = e3, u22, c22, l22, f22, h22; + for (l22 = 0; l22 < i4; ++l22) { + f22 = t4[l22]; + for (var d22 = 0; d22 < n22; ++d22) { + h22 = r4[d22]; + u22 = f22 * h22 + a22[l22 + d22]; + c22 = Math.floor(u22 / o22); + a22[l22 + d22] = u22 - c22 * o22; + a22[l22 + d22 + 1] += c22; + } + } + p2(a22); + return a22; + } + function M2(t4, r4) { + var i4 = t4.length, n22 = new Array(i4), s22 = e3, a22 = 0, o22, u22; + for (u22 = 0; u22 < i4; u22++) { + o22 = t4[u22] * r4 + a22; + a22 = Math.floor(o22 / s22); + n22[u22] = o22 - a22 * s22; + } + while (a22 > 0) { + n22[u22++] = a22 % s22; + a22 = Math.floor(a22 / s22); + } + return n22; + } + function T2(t4, e4) { + var r4 = []; + while (e4-- > 0) + r4.push(0); + return r4.concat(t4); + } + function I2(t4, e4) { + var r4 = Math.max(t4.length, e4.length); + if (r4 <= 30) + return D2(t4, e4); + r4 = Math.ceil(r4 / 2); + var i4 = t4.slice(r4), n22 = t4.slice(0, r4), s22 = e4.slice(r4), a22 = e4.slice(0, r4); + var o22 = I2(n22, a22), u22 = I2(i4, s22), c22 = I2(w2(n22, i4), w2(a22, s22)); + var l22 = w2(w2(o22, T2(_2(_2(c22, o22), u22), r4)), T2(u22, 2 * r4)); + p2(l22); + return l22; + } + function A2(t4, e4) { + return -0.012 * t4 - 0.012 * e4 + 15e-6 * t4 * e4 > 0; + } + c2.prototype.multiply = function(t4) { + var r4 = st2(t4), i4 = this.value, n22 = r4.value, s22 = this.sign !== r4.sign, a22; + if (r4.isSmall) { + if (0 === n22) + return u2[0]; + if (1 === n22) + return this; + if (-1 === n22) + return this.negate(); + a22 = Math.abs(n22); + if (a22 < e3) + return new c2(M2(i4, a22), s22); + n22 = d2(a22); + } + if (A2(i4.length, n22.length)) + return new c2(I2(i4, n22), s22); + return new c2(D2(i4, n22), s22); + }; + c2.prototype.times = c2.prototype.multiply; + function x(t4, r4, i4) { + if (t4 < e3) + return new c2(M2(r4, t4), i4); + return new c2(D2(r4, d2(t4)), i4); + } + l2.prototype._multiplyBySmall = function(t4) { + if (h2(t4.value * this.value)) + return new l2(t4.value * this.value); + return x(Math.abs(t4.value), d2(Math.abs(this.value)), this.sign !== t4.sign); + }; + c2.prototype._multiplyBySmall = function(t4) { + if (0 === t4.value) + return u2[0]; + if (1 === t4.value) + return this; + if (-1 === t4.value) + return this.negate(); + return x(Math.abs(t4.value), this.value, this.sign !== t4.sign); + }; + l2.prototype.multiply = function(t4) { + return st2(t4)._multiplyBySmall(this); + }; + l2.prototype.times = l2.prototype.multiply; + f2.prototype.multiply = function(t4) { + return new f2(this.value * st2(t4).value); + }; + f2.prototype.times = f2.prototype.multiply; + function R2(t4) { + var r4 = t4.length, i4 = g2(r4 + r4), n22 = e3, s22, a22, o22, u22, c22; + for (o22 = 0; o22 < r4; o22++) { + u22 = t4[o22]; + a22 = 0 - u22 * u22; + for (var l22 = o22; l22 < r4; l22++) { + c22 = t4[l22]; + s22 = 2 * (u22 * c22) + i4[o22 + l22] + a22; + a22 = Math.floor(s22 / n22); + i4[o22 + l22] = s22 - a22 * n22; + } + i4[o22 + r4] = a22; + } + p2(i4); + return i4; + } + c2.prototype.square = function() { + return new c2(R2(this.value), false); + }; + l2.prototype.square = function() { + var t4 = this.value * this.value; + if (h2(t4)) + return new l2(t4); + return new c2(R2(d2(Math.abs(this.value))), false); + }; + f2.prototype.square = function(t4) { + return new f2(this.value * this.value); + }; + function B2(t4, r4) { + var i4 = t4.length, n22 = r4.length, s22 = e3, a22 = g2(r4.length), o22 = r4[n22 - 1], u22 = Math.ceil(s22 / (2 * o22)), c22 = M2(t4, u22), l22 = M2(r4, u22), f22, h22, d22, p22, y22, m22, w22; + if (c22.length <= i4) + c22.push(0); + l22.push(0); + o22 = l22[n22 - 1]; + for (h22 = i4 - n22; h22 >= 0; h22--) { + f22 = s22 - 1; + if (c22[h22 + n22] !== o22) + f22 = Math.floor((c22[h22 + n22] * s22 + c22[h22 + n22 - 1]) / o22); + d22 = 0; + p22 = 0; + m22 = l22.length; + for (y22 = 0; y22 < m22; y22++) { + d22 += f22 * l22[y22]; + w22 = Math.floor(d22 / s22); + p22 += c22[h22 + y22] - (d22 - w22 * s22); + d22 = w22; + if (p22 < 0) { + c22[h22 + y22] = p22 + s22; + p22 = -1; + } else { + c22[h22 + y22] = p22; + p22 = 0; + } + } + while (0 !== p22) { + f22 -= 1; + d22 = 0; + for (y22 = 0; y22 < m22; y22++) { + d22 += c22[h22 + y22] - s22 + l22[y22]; + if (d22 < 0) { + c22[h22 + y22] = d22 + s22; + d22 = 0; + } else { + c22[h22 + y22] = d22; + d22 = 1; + } + } + p22 += d22; + } + a22[h22] = f22; + } + c22 = k(c22, u22)[0]; + return [v2(a22), v2(c22)]; + } + function O2(t4, r4) { + var i4 = t4.length, n22 = r4.length, s22 = [], a22 = [], o22 = e3, u22, c22, l22, f22, h22; + while (i4) { + a22.unshift(t4[--i4]); + p2(a22); + if (N2(a22, r4) < 0) { + s22.push(0); + continue; + } + c22 = a22.length; + l22 = a22[c22 - 1] * o22 + a22[c22 - 2]; + f22 = r4[n22 - 1] * o22 + r4[n22 - 2]; + if (c22 > n22) + l22 = (l22 + 1) * o22; + u22 = Math.ceil(l22 / f22); + do { + h22 = M2(r4, u22); + if (N2(h22, a22) <= 0) + break; + u22--; + } while (u22); + s22.push(u22); + a22 = _2(a22, h22); + } + s22.reverse(); + return [v2(s22), v2(a22)]; + } + function k(t4, r4) { + var i4 = t4.length, n22 = g2(i4), s22 = e3, a22, o22, u22, c22; + u22 = 0; + for (a22 = i4 - 1; a22 >= 0; --a22) { + c22 = u22 * s22 + t4[a22]; + o22 = y2(c22 / r4); + u22 = c22 - o22 * r4; + n22[a22] = 0 | o22; + } + return [n22, 0 | u22]; + } + function C2(t4, r4) { + var i4, n22 = st2(r4); + if (o2) + return [new f2(t4.value / n22.value), new f2(t4.value % n22.value)]; + var s22 = t4.value, a22 = n22.value; + var h22; + if (0 === a22) + throw new Error("Cannot divide by zero"); + if (t4.isSmall) { + if (n22.isSmall) + return [new l2(y2(s22 / a22)), new l2(s22 % a22)]; + return [u2[0], t4]; + } + if (n22.isSmall) { + if (1 === a22) + return [t4, u2[0]]; + if (-1 == a22) + return [t4.negate(), u2[0]]; + var p22 = Math.abs(a22); + if (p22 < e3) { + i4 = k(s22, p22); + h22 = v2(i4[0]); + var g22 = i4[1]; + if (t4.sign) + g22 = -g22; + if ("number" === typeof h22) { + if (t4.sign !== n22.sign) + h22 = -h22; + return [new l2(h22), new l2(g22)]; + } + return [new c2(h22, t4.sign !== n22.sign), new l2(g22)]; + } + a22 = d2(p22); + } + var m22 = N2(s22, a22); + if (-1 === m22) + return [u2[0], t4]; + if (0 === m22) + return [u2[t4.sign === n22.sign ? 1 : -1], u2[0]]; + if (s22.length + a22.length <= 200) + i4 = B2(s22, a22); + else + i4 = O2(s22, a22); + h22 = i4[0]; + var w22 = t4.sign !== n22.sign, S22 = i4[1], _22 = t4.sign; + if ("number" === typeof h22) { + if (w22) + h22 = -h22; + h22 = new l2(h22); + } else + h22 = new c2(h22, w22); + if ("number" === typeof S22) { + if (_22) + S22 = -S22; + S22 = new l2(S22); + } else + S22 = new c2(S22, _22); + return [h22, S22]; + } + c2.prototype.divmod = function(t4) { + var e4 = C2(this, t4); + return { quotient: e4[0], remainder: e4[1] }; + }; + f2.prototype.divmod = l2.prototype.divmod = c2.prototype.divmod; + c2.prototype.divide = function(t4) { + return C2(this, t4)[0]; + }; + f2.prototype.over = f2.prototype.divide = function(t4) { + return new f2(this.value / st2(t4).value); + }; + l2.prototype.over = l2.prototype.divide = c2.prototype.over = c2.prototype.divide; + c2.prototype.mod = function(t4) { + return C2(this, t4)[1]; + }; + f2.prototype.mod = f2.prototype.remainder = function(t4) { + return new f2(this.value % st2(t4).value); + }; + l2.prototype.remainder = l2.prototype.mod = c2.prototype.remainder = c2.prototype.mod; + c2.prototype.pow = function(t4) { + var e4 = st2(t4), r4 = this.value, i4 = e4.value, n22, s22, a22; + if (0 === i4) + return u2[1]; + if (0 === r4) + return u2[0]; + if (1 === r4) + return u2[1]; + if (-1 === r4) + return e4.isEven() ? u2[1] : u2[-1]; + if (e4.sign) + return u2[0]; + if (!e4.isSmall) + throw new Error("The exponent " + e4.toString() + " is too large."); + if (this.isSmall) { + if (h2(n22 = Math.pow(r4, i4))) + return new l2(y2(n22)); + } + s22 = this; + a22 = u2[1]; + while (true) { + if (i4 & true) { + a22 = a22.times(s22); + --i4; + } + if (0 === i4) + break; + i4 /= 2; + s22 = s22.square(); + } + return a22; + }; + l2.prototype.pow = c2.prototype.pow; + f2.prototype.pow = function(t4) { + var e4 = st2(t4); + var r4 = this.value, i4 = e4.value; + var n22 = BigInt(0), s22 = BigInt(1), a22 = BigInt(2); + if (i4 === n22) + return u2[1]; + if (r4 === n22) + return u2[0]; + if (r4 === s22) + return u2[1]; + if (r4 === BigInt(-1)) + return e4.isEven() ? u2[1] : u2[-1]; + if (e4.isNegative()) + return new f2(n22); + var o22 = this; + var c22 = u2[1]; + while (true) { + if ((i4 & s22) === s22) { + c22 = c22.times(o22); + --i4; + } + if (i4 === n22) + break; + i4 /= a22; + o22 = o22.square(); + } + return c22; + }; + c2.prototype.modPow = function(t4, e4) { + t4 = st2(t4); + e4 = st2(e4); + if (e4.isZero()) + throw new Error("Cannot take modPow with modulus 0"); + var r4 = u2[1], i4 = this.mod(e4); + if (t4.isNegative()) { + t4 = t4.multiply(u2[-1]); + i4 = i4.modInv(e4); + } + while (t4.isPositive()) { + if (i4.isZero()) + return u2[0]; + if (t4.isOdd()) + r4 = r4.multiply(i4).mod(e4); + t4 = t4.divide(2); + i4 = i4.square().mod(e4); + } + return r4; + }; + f2.prototype.modPow = l2.prototype.modPow = c2.prototype.modPow; + function N2(t4, e4) { + if (t4.length !== e4.length) + return t4.length > e4.length ? 1 : -1; + for (var r4 = t4.length - 1; r4 >= 0; r4--) + if (t4[r4] !== e4[r4]) + return t4[r4] > e4[r4] ? 1 : -1; + return 0; + } + c2.prototype.compareAbs = function(t4) { + var e4 = st2(t4), r4 = this.value, i4 = e4.value; + if (e4.isSmall) + return 1; + return N2(r4, i4); + }; + l2.prototype.compareAbs = function(t4) { + var e4 = st2(t4), r4 = Math.abs(this.value), i4 = e4.value; + if (e4.isSmall) { + i4 = Math.abs(i4); + return r4 === i4 ? 0 : r4 > i4 ? 1 : -1; + } + return -1; + }; + f2.prototype.compareAbs = function(t4) { + var e4 = this.value; + var r4 = st2(t4).value; + e4 = e4 >= 0 ? e4 : -e4; + r4 = r4 >= 0 ? r4 : -r4; + return e4 === r4 ? 0 : e4 > r4 ? 1 : -1; + }; + c2.prototype.compare = function(t4) { + if (t4 === 1 / 0) + return -1; + if (t4 === -1 / 0) + return 1; + var e4 = st2(t4), r4 = this.value, i4 = e4.value; + if (this.sign !== e4.sign) + return e4.sign ? 1 : -1; + if (e4.isSmall) + return this.sign ? -1 : 1; + return N2(r4, i4) * (this.sign ? -1 : 1); + }; + c2.prototype.compareTo = c2.prototype.compare; + l2.prototype.compare = function(t4) { + if (t4 === 1 / 0) + return -1; + if (t4 === -1 / 0) + return 1; + var e4 = st2(t4), r4 = this.value, i4 = e4.value; + if (e4.isSmall) + return r4 == i4 ? 0 : r4 > i4 ? 1 : -1; + if (r4 < 0 !== e4.sign) + return r4 < 0 ? -1 : 1; + return r4 < 0 ? 1 : -1; + }; + l2.prototype.compareTo = l2.prototype.compare; + f2.prototype.compare = function(t4) { + if (t4 === 1 / 0) + return -1; + if (t4 === -1 / 0) + return 1; + var e4 = this.value; + var r4 = st2(t4).value; + return e4 === r4 ? 0 : e4 > r4 ? 1 : -1; + }; + f2.prototype.compareTo = f2.prototype.compare; + c2.prototype.equals = function(t4) { + return 0 === this.compare(t4); + }; + f2.prototype.eq = f2.prototype.equals = l2.prototype.eq = l2.prototype.equals = c2.prototype.eq = c2.prototype.equals; + c2.prototype.notEquals = function(t4) { + return 0 !== this.compare(t4); + }; + f2.prototype.neq = f2.prototype.notEquals = l2.prototype.neq = l2.prototype.notEquals = c2.prototype.neq = c2.prototype.notEquals; + c2.prototype.greater = function(t4) { + return this.compare(t4) > 0; + }; + f2.prototype.gt = f2.prototype.greater = l2.prototype.gt = l2.prototype.greater = c2.prototype.gt = c2.prototype.greater; + c2.prototype.lesser = function(t4) { + return this.compare(t4) < 0; + }; + f2.prototype.lt = f2.prototype.lesser = l2.prototype.lt = l2.prototype.lesser = c2.prototype.lt = c2.prototype.lesser; + c2.prototype.greaterOrEquals = function(t4) { + return this.compare(t4) >= 0; + }; + f2.prototype.geq = f2.prototype.greaterOrEquals = l2.prototype.geq = l2.prototype.greaterOrEquals = c2.prototype.geq = c2.prototype.greaterOrEquals; + c2.prototype.lesserOrEquals = function(t4) { + return this.compare(t4) <= 0; + }; + f2.prototype.leq = f2.prototype.lesserOrEquals = l2.prototype.leq = l2.prototype.lesserOrEquals = c2.prototype.leq = c2.prototype.lesserOrEquals; + c2.prototype.isEven = function() { + return 0 === (1 & this.value[0]); + }; + l2.prototype.isEven = function() { + return 0 === (1 & this.value); + }; + f2.prototype.isEven = function() { + return (this.value & BigInt(1)) === BigInt(0); + }; + c2.prototype.isOdd = function() { + return 1 === (1 & this.value[0]); + }; + l2.prototype.isOdd = function() { + return 1 === (1 & this.value); + }; + f2.prototype.isOdd = function() { + return (this.value & BigInt(1)) === BigInt(1); + }; + c2.prototype.isPositive = function() { + return !this.sign; + }; + l2.prototype.isPositive = function() { + return this.value > 0; + }; + f2.prototype.isPositive = l2.prototype.isPositive; + c2.prototype.isNegative = function() { + return this.sign; + }; + l2.prototype.isNegative = function() { + return this.value < 0; + }; + f2.prototype.isNegative = l2.prototype.isNegative; + c2.prototype.isUnit = function() { + return false; + }; + l2.prototype.isUnit = function() { + return 1 === Math.abs(this.value); + }; + f2.prototype.isUnit = function() { + return this.abs().value === BigInt(1); + }; + c2.prototype.isZero = function() { + return false; + }; + l2.prototype.isZero = function() { + return 0 === this.value; + }; + f2.prototype.isZero = function() { + return this.value === BigInt(0); + }; + c2.prototype.isDivisibleBy = function(t4) { + var e4 = st2(t4); + if (e4.isZero()) + return false; + if (e4.isUnit()) + return true; + if (0 === e4.compareAbs(2)) + return this.isEven(); + return this.mod(e4).isZero(); + }; + f2.prototype.isDivisibleBy = l2.prototype.isDivisibleBy = c2.prototype.isDivisibleBy; + function P2(t4) { + var e4 = t4.abs(); + if (e4.isUnit()) + return false; + if (e4.equals(2) || e4.equals(3) || e4.equals(5)) + return true; + if (e4.isEven() || e4.isDivisibleBy(3) || e4.isDivisibleBy(5)) + return false; + if (e4.lesser(49)) + return true; + } + function V2(t4, e4) { + var r4 = t4.prev(), i4 = r4, s22 = 0, a22, u22, c22; + while (i4.isEven()) + i4 = i4.divide(2), s22++; + t: + for (u22 = 0; u22 < e4.length; u22++) { + if (t4.lesser(e4[u22])) + continue; + c22 = n2(e4[u22]).modPow(i4, t4); + if (c22.isUnit() || c22.equals(r4)) + continue; + for (a22 = s22 - 1; 0 != a22; a22--) { + c22 = c22.square().mod(t4); + if (c22.isUnit()) + return false; + if (c22.equals(r4)) + continue t; + } + return false; + } + return true; + } + c2.prototype.isPrime = function(e4) { + var r4 = P2(this); + if (r4 !== t3) + return r4; + var i4 = this.abs(); + var s22 = i4.bitLength(); + if (s22 <= 64) + return V2(i4, [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37]); + var a22 = Math.log(2) * s22.toJSNumber(); + var o22 = Math.ceil(true === e4 ? 2 * Math.pow(a22, 2) : a22); + for (var u22 = [], c22 = 0; c22 < o22; c22++) + u22.push(n2(c22 + 2)); + return V2(i4, u22); + }; + f2.prototype.isPrime = l2.prototype.isPrime = c2.prototype.isPrime; + c2.prototype.isProbablePrime = function(e4, r4) { + var i4 = P2(this); + if (i4 !== t3) + return i4; + var s22 = this.abs(); + var a22 = e4 === t3 ? 5 : e4; + for (var o22 = [], u22 = 0; u22 < a22; u22++) + o22.push(n2.randBetween(2, s22.minus(2), r4)); + return V2(s22, o22); + }; + f2.prototype.isProbablePrime = l2.prototype.isProbablePrime = c2.prototype.isProbablePrime; + c2.prototype.modInv = function(t4) { + var e4 = n2.zero, r4 = n2.one, i4 = st2(t4), s22 = this.abs(), a22, o22, u22; + while (!s22.isZero()) { + a22 = i4.divide(s22); + o22 = e4; + u22 = i4; + e4 = r4; + i4 = s22; + r4 = o22.subtract(a22.multiply(r4)); + s22 = u22.subtract(a22.multiply(s22)); + } + if (!i4.isUnit()) + throw new Error(this.toString() + " and " + t4.toString() + " are not co-prime"); + if (-1 === e4.compare(0)) + e4 = e4.add(t4); + if (this.isNegative()) + return e4.negate(); + return e4; + }; + f2.prototype.modInv = l2.prototype.modInv = c2.prototype.modInv; + c2.prototype.next = function() { + var t4 = this.value; + if (this.sign) + return E2(t4, 1, this.sign); + return new c2(S2(t4, 1), this.sign); + }; + l2.prototype.next = function() { + var t4 = this.value; + if (t4 + 1 < i3) + return new l2(t4 + 1); + return new c2(s2, false); + }; + f2.prototype.next = function() { + return new f2(this.value + BigInt(1)); + }; + c2.prototype.prev = function() { + var t4 = this.value; + if (this.sign) + return new c2(S2(t4, 1), true); + return E2(t4, 1, this.sign); + }; + l2.prototype.prev = function() { + var t4 = this.value; + if (t4 - 1 > -i3) + return new l2(t4 - 1); + return new c2(s2, true); + }; + f2.prototype.prev = function() { + return new f2(this.value - BigInt(1)); + }; + var L2 = [1]; + while (2 * L2[L2.length - 1] <= e3) + L2.push(2 * L2[L2.length - 1]); + var H2 = L2.length, U2 = L2[H2 - 1]; + function K2(t4) { + return Math.abs(t4) <= e3; + } + c2.prototype.shiftLeft = function(t4) { + var e4 = st2(t4).toJSNumber(); + if (!K2(e4)) + throw new Error(String(e4) + " is too large for shifting."); + if (e4 < 0) + return this.shiftRight(-e4); + var r4 = this; + if (r4.isZero()) + return r4; + while (e4 >= H2) { + r4 = r4.multiply(U2); + e4 -= H2 - 1; + } + return r4.multiply(L2[e4]); + }; + f2.prototype.shiftLeft = l2.prototype.shiftLeft = c2.prototype.shiftLeft; + c2.prototype.shiftRight = function(t4) { + var e4; + var r4 = st2(t4).toJSNumber(); + if (!K2(r4)) + throw new Error(String(r4) + " is too large for shifting."); + if (r4 < 0) + return this.shiftLeft(-r4); + var i4 = this; + while (r4 >= H2) { + if (i4.isZero() || i4.isNegative() && i4.isUnit()) + return i4; + e4 = C2(i4, U2); + i4 = e4[1].isNegative() ? e4[0].prev() : e4[0]; + r4 -= H2 - 1; + } + e4 = C2(i4, L2[r4]); + return e4[1].isNegative() ? e4[0].prev() : e4[0]; + }; + f2.prototype.shiftRight = l2.prototype.shiftRight = c2.prototype.shiftRight; + function j2(t4, e4, r4) { + e4 = st2(e4); + var i4 = t4.isNegative(), s22 = e4.isNegative(); + var a22 = i4 ? t4.not() : t4, o22 = s22 ? e4.not() : e4; + var u22 = 0, c22 = 0; + var l22 = null, f22 = null; + var h22 = []; + while (!a22.isZero() || !o22.isZero()) { + l22 = C2(a22, U2); + u22 = l22[1].toJSNumber(); + if (i4) + u22 = U2 - 1 - u22; + f22 = C2(o22, U2); + c22 = f22[1].toJSNumber(); + if (s22) + c22 = U2 - 1 - c22; + a22 = l22[0]; + o22 = f22[0]; + h22.push(r4(u22, c22)); + } + var d22 = 0 !== r4(i4 ? 1 : 0, s22 ? 1 : 0) ? n2(-1) : n2(0); + for (var v22 = h22.length - 1; v22 >= 0; v22 -= 1) + d22 = d22.multiply(U2).add(n2(h22[v22])); + return d22; + } + c2.prototype.not = function() { + return this.negate().prev(); + }; + f2.prototype.not = l2.prototype.not = c2.prototype.not; + c2.prototype.and = function(t4) { + return j2(this, t4, function(t5, e4) { + return t5 & e4; + }); + }; + f2.prototype.and = l2.prototype.and = c2.prototype.and; + c2.prototype.or = function(t4) { + return j2(this, t4, function(t5, e4) { + return t5 | e4; + }); + }; + f2.prototype.or = l2.prototype.or = c2.prototype.or; + c2.prototype.xor = function(t4) { + return j2(this, t4, function(t5, e4) { + return t5 ^ e4; + }); + }; + f2.prototype.xor = l2.prototype.xor = c2.prototype.xor; + var q2 = 1 << 30, F2 = (e3 & -e3) * (e3 & -e3) | q2; + function z2(t4) { + var r4 = t4.value, i4 = "number" === typeof r4 ? r4 | q2 : "bigint" === typeof r4 ? r4 | BigInt(q2) : r4[0] + r4[1] * e3 | F2; + return i4 & -i4; + } + function G2(t4, e4) { + if (e4.compareTo(t4) <= 0) { + var r4 = G2(t4, e4.square(e4)); + var i4 = r4.p; + var s22 = r4.e; + var a22 = i4.multiply(e4); + return a22.compareTo(t4) <= 0 ? { p: a22, e: 2 * s22 + 1 } : { p: i4, e: 2 * s22 }; + } + return { p: n2(1), e: 0 }; + } + c2.prototype.bitLength = function() { + var t4 = this; + if (t4.compareTo(n2(0)) < 0) + t4 = t4.negate().subtract(n2(1)); + if (0 === t4.compareTo(n2(0))) + return n2(0); + return n2(G2(t4, n2(2)).e).add(n2(1)); + }; + f2.prototype.bitLength = l2.prototype.bitLength = c2.prototype.bitLength; + function Y2(t4, e4) { + t4 = st2(t4); + e4 = st2(e4); + return t4.greater(e4) ? t4 : e4; + } + function W2(t4, e4) { + t4 = st2(t4); + e4 = st2(e4); + return t4.lesser(e4) ? t4 : e4; + } + function J2(t4, e4) { + t4 = st2(t4).abs(); + e4 = st2(e4).abs(); + if (t4.equals(e4)) + return t4; + if (t4.isZero()) + return e4; + if (e4.isZero()) + return t4; + var r4 = u2[1], i4, n22; + while (t4.isEven() && e4.isEven()) { + i4 = W2(z2(t4), z2(e4)); + t4 = t4.divide(i4); + e4 = e4.divide(i4); + r4 = r4.multiply(i4); + } + while (t4.isEven()) + t4 = t4.divide(z2(t4)); + do { + while (e4.isEven()) + e4 = e4.divide(z2(e4)); + if (t4.greater(e4)) { + n22 = e4; + e4 = t4; + t4 = n22; + } + e4 = e4.subtract(t4); + } while (!e4.isZero()); + return r4.isUnit() ? t4 : t4.multiply(r4); + } + function Z2(t4, e4) { + t4 = st2(t4).abs(); + e4 = st2(e4).abs(); + return t4.divide(J2(t4, e4)).multiply(e4); + } + function $2(t4, r4, i4) { + t4 = st2(t4); + r4 = st2(r4); + var n22 = i4 || Math.random; + var s22 = W2(t4, r4), a22 = Y2(t4, r4); + var o22 = a22.subtract(s22).add(1); + if (o22.isSmall) + return s22.add(Math.floor(n22() * o22)); + var c22 = et2(o22, e3).value; + var l22 = [], f22 = true; + for (var h22 = 0; h22 < c22.length; h22++) { + var d22 = f22 ? c22[h22] + (h22 + 1 < c22.length ? c22[h22 + 1] / e3 : 0) : e3; + var v22 = y2(n22() * d22); + l22.push(v22); + if (v22 < c22[h22]) + f22 = false; + } + return s22.add(u2.fromArray(l22, e3, false)); + } + var X2 = function(t4, e4, r4, i4) { + r4 = r4 || a2; + t4 = String(t4); + if (!i4) { + t4 = t4.toLowerCase(); + r4 = r4.toLowerCase(); + } + var n22 = t4.length; + var s22; + var o22 = Math.abs(e4); + var u22 = {}; + for (s22 = 0; s22 < r4.length; s22++) + u22[r4[s22]] = s22; + for (s22 = 0; s22 < n22; s22++) { + var c22 = t4[s22]; + if ("-" === c22) + continue; + if (c22 in u22) { + if (u22[c22] >= o22) { + if ("1" === c22 && 1 === o22) + continue; + throw new Error(c22 + " is not a valid digit in base " + e4 + "."); + } + } + } + e4 = st2(e4); + var l22 = []; + var f22 = "-" === t4[0]; + for (s22 = f22 ? 1 : 0; s22 < t4.length; s22++) { + var c22 = t4[s22]; + if (c22 in u22) + l22.push(st2(u22[c22])); + else if ("<" === c22) { + var h22 = s22; + do { + s22++; + } while (">" !== t4[s22] && s22 < t4.length); + l22.push(st2(t4.slice(h22 + 1, s22))); + } else + throw new Error(c22 + " is not a valid character"); + } + return Q2(l22, e4, f22); + }; + function Q2(t4, e4, r4) { + var i4 = u2[0], n22 = u2[1], s22; + for (s22 = t4.length - 1; s22 >= 0; s22--) { + i4 = i4.add(t4[s22].times(n22)); + n22 = n22.times(e4); + } + return r4 ? i4.negate() : i4; + } + function tt2(t4, e4) { + e4 = e4 || a2; + if (t4 < e4.length) + return e4[t4]; + return "<" + t4 + ">"; + } + function et2(t4, e4) { + e4 = n2(e4); + if (e4.isZero()) { + if (t4.isZero()) + return { value: [0], isNegative: false }; + throw new Error("Cannot convert nonzero numbers to base 0."); + } + if (e4.equals(-1)) { + if (t4.isZero()) + return { value: [0], isNegative: false }; + if (t4.isNegative()) + return { value: [].concat.apply([], Array.apply(null, Array(-t4.toJSNumber())).map(Array.prototype.valueOf, [1, 0])), isNegative: false }; + var r4 = Array.apply(null, Array(t4.toJSNumber() - 1)).map(Array.prototype.valueOf, [0, 1]); + r4.unshift([1]); + return { value: [].concat.apply([], r4), isNegative: false }; + } + var i4 = false; + if (t4.isNegative() && e4.isPositive()) { + i4 = true; + t4 = t4.abs(); + } + if (e4.isUnit()) { + if (t4.isZero()) + return { value: [0], isNegative: false }; + return { value: Array.apply(null, Array(t4.toJSNumber())).map(Number.prototype.valueOf, 1), isNegative: i4 }; + } + var s22 = []; + var a22 = t4, o22; + while (a22.isNegative() || a22.compareAbs(e4) >= 0) { + o22 = a22.divmod(e4); + a22 = o22.quotient; + var u22 = o22.remainder; + if (u22.isNegative()) { + u22 = e4.minus(u22).abs(); + a22 = a22.next(); + } + s22.push(u22.toJSNumber()); + } + s22.push(a22.toJSNumber()); + return { value: s22.reverse(), isNegative: i4 }; + } + function rt2(t4, e4, r4) { + var i4 = et2(t4, e4); + return (i4.isNegative ? "-" : "") + i4.value.map(function(t5) { + return tt2(t5, r4); + }).join(""); + } + c2.prototype.toArray = function(t4) { + return et2(this, t4); + }; + l2.prototype.toArray = function(t4) { + return et2(this, t4); + }; + f2.prototype.toArray = function(t4) { + return et2(this, t4); + }; + c2.prototype.toString = function(e4, r4) { + if (e4 === t3) + e4 = 10; + if (10 !== e4) + return rt2(this, e4, r4); + var i4 = this.value, n22 = i4.length, s22 = String(i4[--n22]), a22 = "0000000", o22; + while (--n22 >= 0) { + o22 = String(i4[n22]); + s22 += a22.slice(o22.length) + o22; + } + var u22 = this.sign ? "-" : ""; + return u22 + s22; + }; + l2.prototype.toString = function(e4, r4) { + if (e4 === t3) + e4 = 10; + if (10 != e4) + return rt2(this, e4, r4); + return String(this.value); + }; + f2.prototype.toString = l2.prototype.toString; + f2.prototype.toJSON = c2.prototype.toJSON = l2.prototype.toJSON = function() { + return this.toString(); + }; + c2.prototype.valueOf = function() { + return parseInt(this.toString(), 10); + }; + c2.prototype.toJSNumber = c2.prototype.valueOf; + l2.prototype.valueOf = function() { + return this.value; + }; + l2.prototype.toJSNumber = l2.prototype.valueOf; + f2.prototype.valueOf = f2.prototype.toJSNumber = function() { + return parseInt(this.toString(), 10); + }; + function it2(t4) { + if (h2(+t4)) { + var e4 = +t4; + if (e4 === y2(e4)) + return o2 ? new f2(BigInt(e4)) : new l2(e4); + throw new Error("Invalid integer: " + t4); + } + var i4 = "-" === t4[0]; + if (i4) + t4 = t4.slice(1); + var n22 = t4.split(/e/i); + if (n22.length > 2) + throw new Error("Invalid integer: " + n22.join("e")); + if (2 === n22.length) { + var s22 = n22[1]; + if ("+" === s22[0]) + s22 = s22.slice(1); + s22 = +s22; + if (s22 !== y2(s22) || !h2(s22)) + throw new Error("Invalid integer: " + s22 + " is not a valid exponent."); + var a22 = n22[0]; + var u22 = a22.indexOf("."); + if (u22 >= 0) { + s22 -= a22.length - u22 - 1; + a22 = a22.slice(0, u22) + a22.slice(u22 + 1); + } + if (s22 < 0) + throw new Error("Cannot include negative exponent part for integers"); + a22 += new Array(s22 + 1).join("0"); + t4 = a22; + } + var d22 = /^([0-9][0-9]*)$/.test(t4); + if (!d22) + throw new Error("Invalid integer: " + t4); + if (o2) + return new f2(BigInt(i4 ? "-" + t4 : t4)); + var v22 = [], g22 = t4.length, m22 = r3, w22 = g22 - m22; + while (g22 > 0) { + v22.push(+t4.slice(w22, g22)); + w22 -= m22; + if (w22 < 0) + w22 = 0; + g22 -= m22; + } + p2(v22); + return new c2(v22, i4); + } + function nt2(t4) { + if (o2) + return new f2(BigInt(t4)); + if (h2(t4)) { + if (t4 !== y2(t4)) + throw new Error(t4 + " is not an integer."); + return new l2(t4); + } + return it2(t4.toString()); + } + function st2(t4) { + if ("number" === typeof t4) + return nt2(t4); + if ("string" === typeof t4) + return it2(t4); + if ("bigint" === typeof t4) + return new f2(t4); + return t4; + } + for (var at2 = 0; at2 < 1e3; at2++) { + u2[at2] = st2(at2); + if (at2 > 0) + u2[-at2] = st2(-at2); + } + u2.one = u2[1]; + u2.zero = u2[0]; + u2.minusOne = u2[-1]; + u2.max = Y2; + u2.min = W2; + u2.gcd = J2; + u2.lcm = Z2; + u2.isInstance = function(t4) { + return t4 instanceof c2 || t4 instanceof l2 || t4 instanceof f2; + }; + u2.randBetween = $2; + u2.fromArray = function(t4, e4, r4) { + return Q2(t4.map(st2), st2(e4 || 10), r4); + }; + return u2; + }(); + if (t22.hasOwnProperty("exports")) + t22.exports = n2; + i22 = (function() { + return n2; + }).call(e22, r22, e22, t22), void 0 !== i22 && (t22.exports = i22); + }, 452: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(8269), r22(8214), r22(888), r22(5109)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.BlockCipher; + var n2 = e3.algo; + var s2 = []; + var a2 = []; + var o2 = []; + var u2 = []; + var c2 = []; + var l2 = []; + var f2 = []; + var h2 = []; + var d2 = []; + var v2 = []; + (function() { + var t4 = []; + for (var e4 = 0; e4 < 256; e4++) + if (e4 < 128) + t4[e4] = e4 << 1; + else + t4[e4] = e4 << 1 ^ 283; + var r4 = 0; + var i3 = 0; + for (var e4 = 0; e4 < 256; e4++) { + var n22 = i3 ^ i3 << 1 ^ i3 << 2 ^ i3 << 3 ^ i3 << 4; + n22 = n22 >>> 8 ^ 255 & n22 ^ 99; + s2[r4] = n22; + a2[n22] = r4; + var p22 = t4[r4]; + var g22 = t4[p22]; + var y2 = t4[g22]; + var m2 = 257 * t4[n22] ^ 16843008 * n22; + o2[r4] = m2 << 24 | m2 >>> 8; + u2[r4] = m2 << 16 | m2 >>> 16; + c2[r4] = m2 << 8 | m2 >>> 24; + l2[r4] = m2; + var m2 = 16843009 * y2 ^ 65537 * g22 ^ 257 * p22 ^ 16843008 * r4; + f2[n22] = m2 << 24 | m2 >>> 8; + h2[n22] = m2 << 16 | m2 >>> 16; + d2[n22] = m2 << 8 | m2 >>> 24; + v2[n22] = m2; + if (!r4) + r4 = i3 = 1; + else { + r4 = p22 ^ t4[t4[t4[y2 ^ p22]]]; + i3 ^= t4[t4[i3]]; + } + } + })(); + var p2 = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54]; + var g2 = n2.AES = i22.extend({ _doReset: function() { + var t4; + if (this._nRounds && this._keyPriorReset === this._key) + return; + var e4 = this._keyPriorReset = this._key; + var r4 = e4.words; + var i3 = e4.sigBytes / 4; + var n22 = this._nRounds = i3 + 6; + var a22 = 4 * (n22 + 1); + var o22 = this._keySchedule = []; + for (var u22 = 0; u22 < a22; u22++) + if (u22 < i3) + o22[u22] = r4[u22]; + else { + t4 = o22[u22 - 1]; + if (!(u22 % i3)) { + t4 = t4 << 8 | t4 >>> 24; + t4 = s2[t4 >>> 24] << 24 | s2[t4 >>> 16 & 255] << 16 | s2[t4 >>> 8 & 255] << 8 | s2[255 & t4]; + t4 ^= p2[u22 / i3 | 0] << 24; + } else if (i3 > 6 && u22 % i3 == 4) + t4 = s2[t4 >>> 24] << 24 | s2[t4 >>> 16 & 255] << 16 | s2[t4 >>> 8 & 255] << 8 | s2[255 & t4]; + o22[u22] = o22[u22 - i3] ^ t4; + } + var c22 = this._invKeySchedule = []; + for (var l22 = 0; l22 < a22; l22++) { + var u22 = a22 - l22; + if (l22 % 4) + var t4 = o22[u22]; + else + var t4 = o22[u22 - 4]; + if (l22 < 4 || u22 <= 4) + c22[l22] = t4; + else + c22[l22] = f2[s2[t4 >>> 24]] ^ h2[s2[t4 >>> 16 & 255]] ^ d2[s2[t4 >>> 8 & 255]] ^ v2[s2[255 & t4]]; + } + }, encryptBlock: function(t4, e4) { + this._doCryptBlock(t4, e4, this._keySchedule, o2, u2, c2, l2, s2); + }, decryptBlock: function(t4, e4) { + var r4 = t4[e4 + 1]; + t4[e4 + 1] = t4[e4 + 3]; + t4[e4 + 3] = r4; + this._doCryptBlock(t4, e4, this._invKeySchedule, f2, h2, d2, v2, a2); + var r4 = t4[e4 + 1]; + t4[e4 + 1] = t4[e4 + 3]; + t4[e4 + 3] = r4; + }, _doCryptBlock: function(t4, e4, r4, i3, n22, s22, a22, o22) { + var u22 = this._nRounds; + var c22 = t4[e4] ^ r4[0]; + var l22 = t4[e4 + 1] ^ r4[1]; + var f22 = t4[e4 + 2] ^ r4[2]; + var h22 = t4[e4 + 3] ^ r4[3]; + var d22 = 4; + for (var v22 = 1; v22 < u22; v22++) { + var p22 = i3[c22 >>> 24] ^ n22[l22 >>> 16 & 255] ^ s22[f22 >>> 8 & 255] ^ a22[255 & h22] ^ r4[d22++]; + var g22 = i3[l22 >>> 24] ^ n22[f22 >>> 16 & 255] ^ s22[h22 >>> 8 & 255] ^ a22[255 & c22] ^ r4[d22++]; + var y2 = i3[f22 >>> 24] ^ n22[h22 >>> 16 & 255] ^ s22[c22 >>> 8 & 255] ^ a22[255 & l22] ^ r4[d22++]; + var m2 = i3[h22 >>> 24] ^ n22[c22 >>> 16 & 255] ^ s22[l22 >>> 8 & 255] ^ a22[255 & f22] ^ r4[d22++]; + c22 = p22; + l22 = g22; + f22 = y2; + h22 = m2; + } + var p22 = (o22[c22 >>> 24] << 24 | o22[l22 >>> 16 & 255] << 16 | o22[f22 >>> 8 & 255] << 8 | o22[255 & h22]) ^ r4[d22++]; + var g22 = (o22[l22 >>> 24] << 24 | o22[f22 >>> 16 & 255] << 16 | o22[h22 >>> 8 & 255] << 8 | o22[255 & c22]) ^ r4[d22++]; + var y2 = (o22[f22 >>> 24] << 24 | o22[h22 >>> 16 & 255] << 16 | o22[c22 >>> 8 & 255] << 8 | o22[255 & l22]) ^ r4[d22++]; + var m2 = (o22[h22 >>> 24] << 24 | o22[c22 >>> 16 & 255] << 16 | o22[l22 >>> 8 & 255] << 8 | o22[255 & f22]) ^ r4[d22++]; + t4[e4] = p22; + t4[e4 + 1] = g22; + t4[e4 + 2] = y2; + t4[e4 + 3] = m2; + }, keySize: 256 / 32 }); + e3.AES = i22._createHelper(g2); + })(); + return t3.AES; + }); + }, 5109: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(888)); + })(this, function(t3) { + t3.lib.Cipher || function(e3) { + var r3 = t3; + var i22 = r3.lib; + var n2 = i22.Base; + var s2 = i22.WordArray; + var a2 = i22.BufferedBlockAlgorithm; + var o2 = r3.enc; + o2.Utf8; + var c2 = o2.Base64; + var l2 = r3.algo; + var f2 = l2.EvpKDF; + var h2 = i22.Cipher = a2.extend({ cfg: n2.extend(), createEncryptor: function(t4, e4) { + return this.create(this._ENC_XFORM_MODE, t4, e4); + }, createDecryptor: function(t4, e4) { + return this.create(this._DEC_XFORM_MODE, t4, e4); + }, init: function(t4, e4, r4) { + this.cfg = this.cfg.extend(r4); + this._xformMode = t4; + this._key = e4; + this.reset(); + }, reset: function() { + a2.reset.call(this); + this._doReset(); + }, process: function(t4) { + this._append(t4); + return this._process(); + }, finalize: function(t4) { + if (t4) + this._append(t4); + var e4 = this._doFinalize(); + return e4; + }, keySize: 128 / 32, ivSize: 128 / 32, _ENC_XFORM_MODE: 1, _DEC_XFORM_MODE: 2, _createHelper: /* @__PURE__ */ function() { + function t4(t5) { + if ("string" == typeof t5) + return T2; + else + return E2; + } + return function(e4) { + return { encrypt: function(r4, i3, n22) { + return t4(i3).encrypt(e4, r4, i3, n22); + }, decrypt: function(r4, i3, n22) { + return t4(i3).decrypt(e4, r4, i3, n22); + } }; + }; + }() }); + i22.StreamCipher = h2.extend({ _doFinalize: function() { + var t4 = this._process(true); + return t4; + }, blockSize: 1 }); + var v2 = r3.mode = {}; + var p2 = i22.BlockCipherMode = n2.extend({ createEncryptor: function(t4, e4) { + return this.Encryptor.create(t4, e4); + }, createDecryptor: function(t4, e4) { + return this.Decryptor.create(t4, e4); + }, init: function(t4, e4) { + this._cipher = t4; + this._iv = e4; + } }); + var g2 = v2.CBC = function() { + var t4 = p2.extend(); + t4.Encryptor = t4.extend({ processBlock: function(t5, e4) { + var i3 = this._cipher; + var n22 = i3.blockSize; + r4.call(this, t5, e4, n22); + i3.encryptBlock(t5, e4); + this._prevBlock = t5.slice(e4, e4 + n22); + } }); + t4.Decryptor = t4.extend({ processBlock: function(t5, e4) { + var i3 = this._cipher; + var n22 = i3.blockSize; + var s22 = t5.slice(e4, e4 + n22); + i3.decryptBlock(t5, e4); + r4.call(this, t5, e4, n22); + this._prevBlock = s22; + } }); + function r4(t5, r5, i3) { + var n22; + var s22 = this._iv; + if (s22) { + n22 = s22; + this._iv = e3; + } else + n22 = this._prevBlock; + for (var a22 = 0; a22 < i3; a22++) + t5[r5 + a22] ^= n22[a22]; + } + return t4; + }(); + var y2 = r3.pad = {}; + var m2 = y2.Pkcs7 = { pad: function(t4, e4) { + var r4 = 4 * e4; + var i3 = r4 - t4.sigBytes % r4; + var n22 = i3 << 24 | i3 << 16 | i3 << 8 | i3; + var a22 = []; + for (var o22 = 0; o22 < i3; o22 += 4) + a22.push(n22); + var u2 = s2.create(a22, i3); + t4.concat(u2); + }, unpad: function(t4) { + var e4 = 255 & t4.words[t4.sigBytes - 1 >>> 2]; + t4.sigBytes -= e4; + } }; + i22.BlockCipher = h2.extend({ cfg: h2.cfg.extend({ mode: g2, padding: m2 }), reset: function() { + var t4; + h2.reset.call(this); + var e4 = this.cfg; + var r4 = e4.iv; + var i3 = e4.mode; + if (this._xformMode == this._ENC_XFORM_MODE) + t4 = i3.createEncryptor; + else { + t4 = i3.createDecryptor; + this._minBufferSize = 1; + } + if (this._mode && this._mode.__creator == t4) + this._mode.init(this, r4 && r4.words); + else { + this._mode = t4.call(i3, this, r4 && r4.words); + this._mode.__creator = t4; + } + }, _doProcessBlock: function(t4, e4) { + this._mode.processBlock(t4, e4); + }, _doFinalize: function() { + var t4; + var e4 = this.cfg.padding; + if (this._xformMode == this._ENC_XFORM_MODE) { + e4.pad(this._data, this.blockSize); + t4 = this._process(true); + } else { + t4 = this._process(true); + e4.unpad(t4); + } + return t4; + }, blockSize: 128 / 32 }); + var S2 = i22.CipherParams = n2.extend({ init: function(t4) { + this.mixIn(t4); + }, toString: function(t4) { + return (t4 || this.formatter).stringify(this); + } }); + var _2 = r3.format = {}; + var b2 = _2.OpenSSL = { stringify: function(t4) { + var e4; + var r4 = t4.ciphertext; + var i3 = t4.salt; + if (i3) + e4 = s2.create([1398893684, 1701076831]).concat(i3).concat(r4); + else + e4 = r4; + return e4.toString(c2); + }, parse: function(t4) { + var e4; + var r4 = c2.parse(t4); + var i3 = r4.words; + if (1398893684 == i3[0] && 1701076831 == i3[1]) { + e4 = s2.create(i3.slice(2, 4)); + i3.splice(0, 4); + r4.sigBytes -= 16; + } + return S2.create({ ciphertext: r4, salt: e4 }); + } }; + var E2 = i22.SerializableCipher = n2.extend({ cfg: n2.extend({ format: b2 }), encrypt: function(t4, e4, r4, i3) { + i3 = this.cfg.extend(i3); + var n22 = t4.createEncryptor(r4, i3); + var s22 = n22.finalize(e4); + var a22 = n22.cfg; + return S2.create({ ciphertext: s22, key: r4, iv: a22.iv, algorithm: t4, mode: a22.mode, padding: a22.padding, blockSize: t4.blockSize, formatter: i3.format }); + }, decrypt: function(t4, e4, r4, i3) { + i3 = this.cfg.extend(i3); + e4 = this._parse(e4, i3.format); + var n22 = t4.createDecryptor(r4, i3).finalize(e4.ciphertext); + return n22; + }, _parse: function(t4, e4) { + if ("string" == typeof t4) + return e4.parse(t4, this); + else + return t4; + } }); + var D2 = r3.kdf = {}; + var M2 = D2.OpenSSL = { execute: function(t4, e4, r4, i3) { + if (!i3) + i3 = s2.random(64 / 8); + var n22 = f2.create({ keySize: e4 + r4 }).compute(t4, i3); + var a22 = s2.create(n22.words.slice(e4), 4 * r4); + n22.sigBytes = 4 * e4; + return S2.create({ key: n22, iv: a22, salt: i3 }); + } }; + var T2 = i22.PasswordBasedCipher = E2.extend({ cfg: E2.cfg.extend({ kdf: M2 }), encrypt: function(t4, e4, r4, i3) { + i3 = this.cfg.extend(i3); + var n22 = i3.kdf.execute(r4, t4.keySize, t4.ivSize); + i3.iv = n22.iv; + var s22 = E2.encrypt.call(this, t4, e4, n22.key, i3); + s22.mixIn(n22); + return s22; + }, decrypt: function(t4, e4, r4, i3) { + i3 = this.cfg.extend(i3); + e4 = this._parse(e4, i3.format); + var n22 = i3.kdf.execute(r4, t4.keySize, t4.ivSize, e4.salt); + i3.iv = n22.iv; + var s22 = E2.decrypt.call(this, t4, e4, n22.key, i3); + return s22; + } }); + }(); + }); + }, 8249: function(t22, e22, r22) { + (function(r3, i22) { + t22.exports = i22(); + })(this, function() { + var t3 = t3 || function(t4, e3) { + var i22; + if ("undefined" !== typeof window && $inject_window_crypto) + i22 = $inject_window_crypto; + if ("undefined" !== typeof self && self.crypto) + i22 = self.crypto; + if ("undefined" !== typeof globalThis && globalThis.crypto) + i22 = globalThis.crypto; + if (!i22 && "undefined" !== typeof window && window.msCrypto) + i22 = window.msCrypto; + if (!i22 && "undefined" !== typeof r22.g && r22.g.crypto) + i22 = r22.g.crypto; + if (!i22 && true) + try { + i22 = r22(2480); + } catch (t5) { + } + var n2 = function() { + if (i22) { + if ("function" === typeof i22.getRandomValues) + try { + return i22.getRandomValues(new Uint32Array(1))[0]; + } catch (t5) { + } + if ("function" === typeof i22.randomBytes) + try { + return i22.randomBytes(4).readInt32LE(); + } catch (t5) { + } + } + throw new Error("Native crypto module could not be used to get secure random number."); + }; + var s2 = Object.create || /* @__PURE__ */ function() { + function t5() { + } + return function(e4) { + var r3; + t5.prototype = e4; + r3 = new t5(); + t5.prototype = null; + return r3; + }; + }(); + var a2 = {}; + var o2 = a2.lib = {}; + var u2 = o2.Base = /* @__PURE__ */ function() { + return { extend: function(t5) { + var e4 = s2(this); + if (t5) + e4.mixIn(t5); + if (!e4.hasOwnProperty("init") || this.init === e4.init) + e4.init = function() { + e4.$super.init.apply(this, arguments); + }; + e4.init.prototype = e4; + e4.$super = this; + return e4; + }, create: function() { + var t5 = this.extend(); + t5.init.apply(t5, arguments); + return t5; + }, init: function() { + }, mixIn: function(t5) { + for (var e4 in t5) + if (t5.hasOwnProperty(e4)) + this[e4] = t5[e4]; + if (t5.hasOwnProperty("toString")) + this.toString = t5.toString; + }, clone: function() { + return this.init.prototype.extend(this); + } }; + }(); + var c2 = o2.WordArray = u2.extend({ init: function(t5, r3) { + t5 = this.words = t5 || []; + if (r3 != e3) + this.sigBytes = r3; + else + this.sigBytes = 4 * t5.length; + }, toString: function(t5) { + return (t5 || f2).stringify(this); + }, concat: function(t5) { + var e4 = this.words; + var r3 = t5.words; + var i3 = this.sigBytes; + var n22 = t5.sigBytes; + this.clamp(); + if (i3 % 4) + for (var s22 = 0; s22 < n22; s22++) { + var a22 = r3[s22 >>> 2] >>> 24 - s22 % 4 * 8 & 255; + e4[i3 + s22 >>> 2] |= a22 << 24 - (i3 + s22) % 4 * 8; + } + else + for (var o22 = 0; o22 < n22; o22 += 4) + e4[i3 + o22 >>> 2] = r3[o22 >>> 2]; + this.sigBytes += n22; + return this; + }, clamp: function() { + var e4 = this.words; + var r3 = this.sigBytes; + e4[r3 >>> 2] &= 4294967295 << 32 - r3 % 4 * 8; + e4.length = t4.ceil(r3 / 4); + }, clone: function() { + var t5 = u2.clone.call(this); + t5.words = this.words.slice(0); + return t5; + }, random: function(t5) { + var e4 = []; + for (var r3 = 0; r3 < t5; r3 += 4) + e4.push(n2()); + return new c2.init(e4, t5); + } }); + var l2 = a2.enc = {}; + var f2 = l2.Hex = { stringify: function(t5) { + var e4 = t5.words; + var r3 = t5.sigBytes; + var i3 = []; + for (var n22 = 0; n22 < r3; n22++) { + var s22 = e4[n22 >>> 2] >>> 24 - n22 % 4 * 8 & 255; + i3.push((s22 >>> 4).toString(16)); + i3.push((15 & s22).toString(16)); + } + return i3.join(""); + }, parse: function(t5) { + var e4 = t5.length; + var r3 = []; + for (var i3 = 0; i3 < e4; i3 += 2) + r3[i3 >>> 3] |= parseInt(t5.substr(i3, 2), 16) << 24 - i3 % 8 * 4; + return new c2.init(r3, e4 / 2); + } }; + var h2 = l2.Latin1 = { stringify: function(t5) { + var e4 = t5.words; + var r3 = t5.sigBytes; + var i3 = []; + for (var n22 = 0; n22 < r3; n22++) { + var s22 = e4[n22 >>> 2] >>> 24 - n22 % 4 * 8 & 255; + i3.push(String.fromCharCode(s22)); + } + return i3.join(""); + }, parse: function(t5) { + var e4 = t5.length; + var r3 = []; + for (var i3 = 0; i3 < e4; i3++) + r3[i3 >>> 2] |= (255 & t5.charCodeAt(i3)) << 24 - i3 % 4 * 8; + return new c2.init(r3, e4); + } }; + var d2 = l2.Utf8 = { stringify: function(t5) { + try { + return decodeURIComponent(escape(h2.stringify(t5))); + } catch (t6) { + throw new Error("Malformed UTF-8 data"); + } + }, parse: function(t5) { + return h2.parse(unescape(encodeURIComponent(t5))); + } }; + var v2 = o2.BufferedBlockAlgorithm = u2.extend({ reset: function() { + this._data = new c2.init(); + this._nDataBytes = 0; + }, _append: function(t5) { + if ("string" == typeof t5) + t5 = d2.parse(t5); + this._data.concat(t5); + this._nDataBytes += t5.sigBytes; + }, _process: function(e4) { + var r3; + var i3 = this._data; + var n22 = i3.words; + var s22 = i3.sigBytes; + var a22 = this.blockSize; + var o22 = 4 * a22; + var u22 = s22 / o22; + if (e4) + u22 = t4.ceil(u22); + else + u22 = t4.max((0 | u22) - this._minBufferSize, 0); + var l22 = u22 * a22; + var f22 = t4.min(4 * l22, s22); + if (l22) { + for (var h22 = 0; h22 < l22; h22 += a22) + this._doProcessBlock(n22, h22); + r3 = n22.splice(0, l22); + i3.sigBytes -= f22; + } + return new c2.init(r3, f22); + }, clone: function() { + var t5 = u2.clone.call(this); + t5._data = this._data.clone(); + return t5; + }, _minBufferSize: 0 }); + o2.Hasher = v2.extend({ cfg: u2.extend(), init: function(t5) { + this.cfg = this.cfg.extend(t5); + this.reset(); + }, reset: function() { + v2.reset.call(this); + this._doReset(); + }, update: function(t5) { + this._append(t5); + this._process(); + return this; + }, finalize: function(t5) { + if (t5) + this._append(t5); + var e4 = this._doFinalize(); + return e4; + }, blockSize: 512 / 32, _createHelper: function(t5) { + return function(e4, r3) { + return new t5.init(r3).finalize(e4); + }; + }, _createHmacHelper: function(t5) { + return function(e4, r3) { + return new g2.HMAC.init(t5, r3).finalize(e4); + }; + } }); + var g2 = a2.algo = {}; + return a2; + }(Math); + return t3; + }); + }, 8269: function(t22, e22, r22) { + (function(i22, n2) { + t22.exports = n2(r22(8249)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.WordArray; + var n2 = e3.enc; + n2.Base64 = { stringify: function(t4) { + var e4 = t4.words; + var r4 = t4.sigBytes; + var i3 = this._map; + t4.clamp(); + var n22 = []; + for (var s2 = 0; s2 < r4; s2 += 3) { + var a22 = e4[s2 >>> 2] >>> 24 - s2 % 4 * 8 & 255; + var o2 = e4[s2 + 1 >>> 2] >>> 24 - (s2 + 1) % 4 * 8 & 255; + var u2 = e4[s2 + 2 >>> 2] >>> 24 - (s2 + 2) % 4 * 8 & 255; + var c2 = a22 << 16 | o2 << 8 | u2; + for (var l2 = 0; l2 < 4 && s2 + 0.75 * l2 < r4; l2++) + n22.push(i3.charAt(c2 >>> 6 * (3 - l2) & 63)); + } + var f2 = i3.charAt(64); + if (f2) + while (n22.length % 4) + n22.push(f2); + return n22.join(""); + }, parse: function(t4) { + var e4 = t4.length; + var r4 = this._map; + var i3 = this._reverseMap; + if (!i3) { + i3 = this._reverseMap = []; + for (var n22 = 0; n22 < r4.length; n22++) + i3[r4.charCodeAt(n22)] = n22; + } + var s2 = r4.charAt(64); + if (s2) { + var o2 = t4.indexOf(s2); + if (-1 !== o2) + e4 = o2; + } + return a2(t4, e4, i3); + }, _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" }; + function a2(t4, e4, r4) { + var n22 = []; + var s2 = 0; + for (var a22 = 0; a22 < e4; a22++) + if (a22 % 4) { + var o2 = r4[t4.charCodeAt(a22 - 1)] << a22 % 4 * 2; + var u2 = r4[t4.charCodeAt(a22)] >>> 6 - a22 % 4 * 2; + var c2 = o2 | u2; + n22[s2 >>> 2] |= c2 << 24 - s2 % 4 * 8; + s2++; + } + return i22.create(n22, s2); + } + })(); + return t3.enc.Base64; + }); + }, 3786: function(t22, e22, r22) { + (function(i22, n2) { + t22.exports = n2(r22(8249)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.WordArray; + var n2 = e3.enc; + n2.Base64url = { stringify: function(t4, e4 = true) { + var r4 = t4.words; + var i3 = t4.sigBytes; + var n22 = e4 ? this._safe_map : this._map; + t4.clamp(); + var s2 = []; + for (var a22 = 0; a22 < i3; a22 += 3) { + var o2 = r4[a22 >>> 2] >>> 24 - a22 % 4 * 8 & 255; + var u2 = r4[a22 + 1 >>> 2] >>> 24 - (a22 + 1) % 4 * 8 & 255; + var c2 = r4[a22 + 2 >>> 2] >>> 24 - (a22 + 2) % 4 * 8 & 255; + var l2 = o2 << 16 | u2 << 8 | c2; + for (var f2 = 0; f2 < 4 && a22 + 0.75 * f2 < i3; f2++) + s2.push(n22.charAt(l2 >>> 6 * (3 - f2) & 63)); + } + var h2 = n22.charAt(64); + if (h2) + while (s2.length % 4) + s2.push(h2); + return s2.join(""); + }, parse: function(t4, e4 = true) { + var r4 = t4.length; + var i3 = e4 ? this._safe_map : this._map; + var n22 = this._reverseMap; + if (!n22) { + n22 = this._reverseMap = []; + for (var s2 = 0; s2 < i3.length; s2++) + n22[i3.charCodeAt(s2)] = s2; + } + var o2 = i3.charAt(64); + if (o2) { + var u2 = t4.indexOf(o2); + if (-1 !== u2) + r4 = u2; + } + return a2(t4, r4, n22); + }, _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", _safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_" }; + function a2(t4, e4, r4) { + var n22 = []; + var s2 = 0; + for (var a22 = 0; a22 < e4; a22++) + if (a22 % 4) { + var o2 = r4[t4.charCodeAt(a22 - 1)] << a22 % 4 * 2; + var u2 = r4[t4.charCodeAt(a22)] >>> 6 - a22 % 4 * 2; + var c2 = o2 | u2; + n22[s2 >>> 2] |= c2 << 24 - s2 % 4 * 8; + s2++; + } + return i22.create(n22, s2); + } + })(); + return t3.enc.Base64url; + }); + }, 298: function(t22, e22, r22) { + (function(i22, n2) { + t22.exports = n2(r22(8249)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.WordArray; + var n2 = e3.enc; + n2.Utf16 = n2.Utf16BE = { stringify: function(t4) { + var e4 = t4.words; + var r4 = t4.sigBytes; + var i3 = []; + for (var n22 = 0; n22 < r4; n22 += 2) { + var s2 = e4[n22 >>> 2] >>> 16 - n22 % 4 * 8 & 65535; + i3.push(String.fromCharCode(s2)); + } + return i3.join(""); + }, parse: function(t4) { + var e4 = t4.length; + var r4 = []; + for (var n22 = 0; n22 < e4; n22++) + r4[n22 >>> 1] |= t4.charCodeAt(n22) << 16 - n22 % 2 * 16; + return i22.create(r4, 2 * e4); + } }; + n2.Utf16LE = { stringify: function(t4) { + var e4 = t4.words; + var r4 = t4.sigBytes; + var i3 = []; + for (var n22 = 0; n22 < r4; n22 += 2) { + var s2 = a2(e4[n22 >>> 2] >>> 16 - n22 % 4 * 8 & 65535); + i3.push(String.fromCharCode(s2)); + } + return i3.join(""); + }, parse: function(t4) { + var e4 = t4.length; + var r4 = []; + for (var n22 = 0; n22 < e4; n22++) + r4[n22 >>> 1] |= a2(t4.charCodeAt(n22) << 16 - n22 % 2 * 16); + return i22.create(r4, 2 * e4); + } }; + function a2(t4) { + return t4 << 8 & 4278255360 | t4 >>> 8 & 16711935; + } + })(); + return t3.enc.Utf16; + }); + }, 888: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(2783), r22(9824)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.Base; + var n2 = r3.WordArray; + var s2 = e3.algo; + var a2 = s2.MD5; + var o2 = s2.EvpKDF = i22.extend({ cfg: i22.extend({ keySize: 128 / 32, hasher: a2, iterations: 1 }), init: function(t4) { + this.cfg = this.cfg.extend(t4); + }, compute: function(t4, e4) { + var r4; + var i3 = this.cfg; + var s22 = i3.hasher.create(); + var a22 = n2.create(); + var o22 = a22.words; + var u2 = i3.keySize; + var c2 = i3.iterations; + while (o22.length < u2) { + if (r4) + s22.update(r4); + r4 = s22.update(t4).finalize(e4); + s22.reset(); + for (var l2 = 1; l2 < c2; l2++) { + r4 = s22.finalize(r4); + s22.reset(); + } + a22.concat(r4); + } + a22.sigBytes = 4 * u2; + return a22; + } }); + e3.EvpKDF = function(t4, e4, r4) { + return o2.create(r4).compute(t4, e4); + }; + })(); + return t3.EvpKDF; + }); + }, 2209: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(5109)); + })(this, function(t3) { + (function(e3) { + var r3 = t3; + var i22 = r3.lib; + var n2 = i22.CipherParams; + var s2 = r3.enc; + var a2 = s2.Hex; + var o2 = r3.format; + o2.Hex = { stringify: function(t4) { + return t4.ciphertext.toString(a2); + }, parse: function(t4) { + var e4 = a2.parse(t4); + return n2.create({ ciphertext: e4 }); + } }; + })(); + return t3.format.Hex; + }); + }, 9824: function(t22, e22, r22) { + (function(i22, n2) { + t22.exports = n2(r22(8249)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.Base; + var n2 = e3.enc; + var s2 = n2.Utf8; + var a2 = e3.algo; + a2.HMAC = i22.extend({ init: function(t4, e4) { + t4 = this._hasher = new t4.init(); + if ("string" == typeof e4) + e4 = s2.parse(e4); + var r4 = t4.blockSize; + var i3 = 4 * r4; + if (e4.sigBytes > i3) + e4 = t4.finalize(e4); + e4.clamp(); + var n22 = this._oKey = e4.clone(); + var a22 = this._iKey = e4.clone(); + var o2 = n22.words; + var u2 = a22.words; + for (var c2 = 0; c2 < r4; c2++) { + o2[c2] ^= 1549556828; + u2[c2] ^= 909522486; + } + n22.sigBytes = a22.sigBytes = i3; + this.reset(); + }, reset: function() { + var t4 = this._hasher; + t4.reset(); + t4.update(this._iKey); + }, update: function(t4) { + this._hasher.update(t4); + return this; + }, finalize: function(t4) { + var e4 = this._hasher; + var r4 = e4.finalize(t4); + e4.reset(); + var i3 = e4.finalize(this._oKey.clone().concat(r4)); + return i3; + } }); + })(); + }); + }, 1354: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(4938), r22(4433), r22(298), r22(8269), r22(3786), r22(8214), r22(2783), r22(2153), r22(7792), r22(34), r22(7460), r22(3327), r22(706), r22(9824), r22(2112), r22(888), r22(5109), r22(8568), r22(4242), r22(9968), r22(7660), r22(1148), r22(3615), r22(2807), r22(1077), r22(6475), r22(6991), r22(2209), r22(452), r22(4253), r22(1857), r22(4454), r22(3974)); + })(this, function(t3) { + return t3; + }); + }, 4433: function(t22, e22, r22) { + (function(i22, n2) { + t22.exports = n2(r22(8249)); + })(this, function(t3) { + (function() { + if ("function" != typeof ArrayBuffer) + return; + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.WordArray; + var n2 = i22.init; + var s2 = i22.init = function(t4) { + if (t4 instanceof ArrayBuffer) + t4 = new Uint8Array(t4); + if (t4 instanceof Int8Array || "undefined" !== typeof Uint8ClampedArray && t4 instanceof Uint8ClampedArray || t4 instanceof Int16Array || t4 instanceof Uint16Array || t4 instanceof Int32Array || t4 instanceof Uint32Array || t4 instanceof Float32Array || t4 instanceof Float64Array) + t4 = new Uint8Array(t4.buffer, t4.byteOffset, t4.byteLength); + if (t4 instanceof Uint8Array) { + var e4 = t4.byteLength; + var r4 = []; + for (var i3 = 0; i3 < e4; i3++) + r4[i3 >>> 2] |= t4[i3] << 24 - i3 % 4 * 8; + n2.call(this, r4, e4); + } else + n2.apply(this, arguments); + }; + s2.prototype = i22; + })(); + return t3.lib.WordArray; + }); + }, 8214: function(t22, e22, r22) { + (function(i22, n2) { + t22.exports = n2(r22(8249)); + })(this, function(t3) { + (function(e3) { + var r3 = t3; + var i22 = r3.lib; + var n2 = i22.WordArray; + var s2 = i22.Hasher; + var a2 = r3.algo; + var o2 = []; + (function() { + for (var t4 = 0; t4 < 64; t4++) + o2[t4] = 4294967296 * e3.abs(e3.sin(t4 + 1)) | 0; + })(); + var u2 = a2.MD5 = s2.extend({ _doReset: function() { + this._hash = new n2.init([1732584193, 4023233417, 2562383102, 271733878]); + }, _doProcessBlock: function(t4, e4) { + for (var r4 = 0; r4 < 16; r4++) { + var i3 = e4 + r4; + var n22 = t4[i3]; + t4[i3] = 16711935 & (n22 << 8 | n22 >>> 24) | 4278255360 & (n22 << 24 | n22 >>> 8); + } + var s22 = this._hash.words; + var a22 = t4[e4 + 0]; + var u22 = t4[e4 + 1]; + var d2 = t4[e4 + 2]; + var v2 = t4[e4 + 3]; + var p2 = t4[e4 + 4]; + var g2 = t4[e4 + 5]; + var y2 = t4[e4 + 6]; + var m2 = t4[e4 + 7]; + var w2 = t4[e4 + 8]; + var S2 = t4[e4 + 9]; + var _2 = t4[e4 + 10]; + var b2 = t4[e4 + 11]; + var E2 = t4[e4 + 12]; + var D2 = t4[e4 + 13]; + var M2 = t4[e4 + 14]; + var T2 = t4[e4 + 15]; + var I2 = s22[0]; + var A2 = s22[1]; + var x = s22[2]; + var R2 = s22[3]; + I2 = c2(I2, A2, x, R2, a22, 7, o2[0]); + R2 = c2(R2, I2, A2, x, u22, 12, o2[1]); + x = c2(x, R2, I2, A2, d2, 17, o2[2]); + A2 = c2(A2, x, R2, I2, v2, 22, o2[3]); + I2 = c2(I2, A2, x, R2, p2, 7, o2[4]); + R2 = c2(R2, I2, A2, x, g2, 12, o2[5]); + x = c2(x, R2, I2, A2, y2, 17, o2[6]); + A2 = c2(A2, x, R2, I2, m2, 22, o2[7]); + I2 = c2(I2, A2, x, R2, w2, 7, o2[8]); + R2 = c2(R2, I2, A2, x, S2, 12, o2[9]); + x = c2(x, R2, I2, A2, _2, 17, o2[10]); + A2 = c2(A2, x, R2, I2, b2, 22, o2[11]); + I2 = c2(I2, A2, x, R2, E2, 7, o2[12]); + R2 = c2(R2, I2, A2, x, D2, 12, o2[13]); + x = c2(x, R2, I2, A2, M2, 17, o2[14]); + A2 = c2(A2, x, R2, I2, T2, 22, o2[15]); + I2 = l2(I2, A2, x, R2, u22, 5, o2[16]); + R2 = l2(R2, I2, A2, x, y2, 9, o2[17]); + x = l2(x, R2, I2, A2, b2, 14, o2[18]); + A2 = l2(A2, x, R2, I2, a22, 20, o2[19]); + I2 = l2(I2, A2, x, R2, g2, 5, o2[20]); + R2 = l2(R2, I2, A2, x, _2, 9, o2[21]); + x = l2(x, R2, I2, A2, T2, 14, o2[22]); + A2 = l2(A2, x, R2, I2, p2, 20, o2[23]); + I2 = l2(I2, A2, x, R2, S2, 5, o2[24]); + R2 = l2(R2, I2, A2, x, M2, 9, o2[25]); + x = l2(x, R2, I2, A2, v2, 14, o2[26]); + A2 = l2(A2, x, R2, I2, w2, 20, o2[27]); + I2 = l2(I2, A2, x, R2, D2, 5, o2[28]); + R2 = l2(R2, I2, A2, x, d2, 9, o2[29]); + x = l2(x, R2, I2, A2, m2, 14, o2[30]); + A2 = l2(A2, x, R2, I2, E2, 20, o2[31]); + I2 = f2(I2, A2, x, R2, g2, 4, o2[32]); + R2 = f2(R2, I2, A2, x, w2, 11, o2[33]); + x = f2(x, R2, I2, A2, b2, 16, o2[34]); + A2 = f2(A2, x, R2, I2, M2, 23, o2[35]); + I2 = f2(I2, A2, x, R2, u22, 4, o2[36]); + R2 = f2(R2, I2, A2, x, p2, 11, o2[37]); + x = f2(x, R2, I2, A2, m2, 16, o2[38]); + A2 = f2(A2, x, R2, I2, _2, 23, o2[39]); + I2 = f2(I2, A2, x, R2, D2, 4, o2[40]); + R2 = f2(R2, I2, A2, x, a22, 11, o2[41]); + x = f2(x, R2, I2, A2, v2, 16, o2[42]); + A2 = f2(A2, x, R2, I2, y2, 23, o2[43]); + I2 = f2(I2, A2, x, R2, S2, 4, o2[44]); + R2 = f2(R2, I2, A2, x, E2, 11, o2[45]); + x = f2(x, R2, I2, A2, T2, 16, o2[46]); + A2 = f2(A2, x, R2, I2, d2, 23, o2[47]); + I2 = h2(I2, A2, x, R2, a22, 6, o2[48]); + R2 = h2(R2, I2, A2, x, m2, 10, o2[49]); + x = h2(x, R2, I2, A2, M2, 15, o2[50]); + A2 = h2(A2, x, R2, I2, g2, 21, o2[51]); + I2 = h2(I2, A2, x, R2, E2, 6, o2[52]); + R2 = h2(R2, I2, A2, x, v2, 10, o2[53]); + x = h2(x, R2, I2, A2, _2, 15, o2[54]); + A2 = h2(A2, x, R2, I2, u22, 21, o2[55]); + I2 = h2(I2, A2, x, R2, w2, 6, o2[56]); + R2 = h2(R2, I2, A2, x, T2, 10, o2[57]); + x = h2(x, R2, I2, A2, y2, 15, o2[58]); + A2 = h2(A2, x, R2, I2, D2, 21, o2[59]); + I2 = h2(I2, A2, x, R2, p2, 6, o2[60]); + R2 = h2(R2, I2, A2, x, b2, 10, o2[61]); + x = h2(x, R2, I2, A2, d2, 15, o2[62]); + A2 = h2(A2, x, R2, I2, S2, 21, o2[63]); + s22[0] = s22[0] + I2 | 0; + s22[1] = s22[1] + A2 | 0; + s22[2] = s22[2] + x | 0; + s22[3] = s22[3] + R2 | 0; + }, _doFinalize: function() { + var t4 = this._data; + var r4 = t4.words; + var i3 = 8 * this._nDataBytes; + var n22 = 8 * t4.sigBytes; + r4[n22 >>> 5] |= 128 << 24 - n22 % 32; + var s22 = e3.floor(i3 / 4294967296); + var a22 = i3; + r4[(n22 + 64 >>> 9 << 4) + 15] = 16711935 & (s22 << 8 | s22 >>> 24) | 4278255360 & (s22 << 24 | s22 >>> 8); + r4[(n22 + 64 >>> 9 << 4) + 14] = 16711935 & (a22 << 8 | a22 >>> 24) | 4278255360 & (a22 << 24 | a22 >>> 8); + t4.sigBytes = 4 * (r4.length + 1); + this._process(); + var o22 = this._hash; + var u22 = o22.words; + for (var c22 = 0; c22 < 4; c22++) { + var l22 = u22[c22]; + u22[c22] = 16711935 & (l22 << 8 | l22 >>> 24) | 4278255360 & (l22 << 24 | l22 >>> 8); + } + return o22; + }, clone: function() { + var t4 = s2.clone.call(this); + t4._hash = this._hash.clone(); + return t4; + } }); + function c2(t4, e4, r4, i3, n22, s22, a22) { + var o22 = t4 + (e4 & r4 | ~e4 & i3) + n22 + a22; + return (o22 << s22 | o22 >>> 32 - s22) + e4; + } + function l2(t4, e4, r4, i3, n22, s22, a22) { + var o22 = t4 + (e4 & i3 | r4 & ~i3) + n22 + a22; + return (o22 << s22 | o22 >>> 32 - s22) + e4; + } + function f2(t4, e4, r4, i3, n22, s22, a22) { + var o22 = t4 + (e4 ^ r4 ^ i3) + n22 + a22; + return (o22 << s22 | o22 >>> 32 - s22) + e4; + } + function h2(t4, e4, r4, i3, n22, s22, a22) { + var o22 = t4 + (r4 ^ (e4 | ~i3)) + n22 + a22; + return (o22 << s22 | o22 >>> 32 - s22) + e4; + } + r3.MD5 = s2._createHelper(u2); + r3.HmacMD5 = s2._createHmacHelper(u2); + })(Math); + return t3.MD5; + }); + }, 8568: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(5109)); + })(this, function(t3) { + t3.mode.CFB = function() { + var e3 = t3.lib.BlockCipherMode.extend(); + e3.Encryptor = e3.extend({ processBlock: function(t4, e4) { + var i22 = this._cipher; + var n2 = i22.blockSize; + r3.call(this, t4, e4, n2, i22); + this._prevBlock = t4.slice(e4, e4 + n2); + } }); + e3.Decryptor = e3.extend({ processBlock: function(t4, e4) { + var i22 = this._cipher; + var n2 = i22.blockSize; + var s2 = t4.slice(e4, e4 + n2); + r3.call(this, t4, e4, n2, i22); + this._prevBlock = s2; + } }); + function r3(t4, e4, r4, i22) { + var n2; + var s2 = this._iv; + if (s2) { + n2 = s2.slice(0); + this._iv = void 0; + } else + n2 = this._prevBlock; + i22.encryptBlock(n2, 0); + for (var a2 = 0; a2 < r4; a2++) + t4[e4 + a2] ^= n2[a2]; + } + return e3; + }(); + return t3.mode.CFB; + }); + }, 9968: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(5109)); + })(this, function(t3) { + t3.mode.CTRGladman = function() { + var e3 = t3.lib.BlockCipherMode.extend(); + function r3(t4) { + if (255 === (t4 >> 24 & 255)) { + var e4 = t4 >> 16 & 255; + var r4 = t4 >> 8 & 255; + var i3 = 255 & t4; + if (255 === e4) { + e4 = 0; + if (255 === r4) { + r4 = 0; + if (255 === i3) + i3 = 0; + else + ++i3; + } else + ++r4; + } else + ++e4; + t4 = 0; + t4 += e4 << 16; + t4 += r4 << 8; + t4 += i3; + } else + t4 += 1 << 24; + return t4; + } + function i22(t4) { + if (0 === (t4[0] = r3(t4[0]))) + t4[1] = r3(t4[1]); + return t4; + } + var n2 = e3.Encryptor = e3.extend({ processBlock: function(t4, e4) { + var r4 = this._cipher; + var n22 = r4.blockSize; + var s2 = this._iv; + var a2 = this._counter; + if (s2) { + a2 = this._counter = s2.slice(0); + this._iv = void 0; + } + i22(a2); + var o2 = a2.slice(0); + r4.encryptBlock(o2, 0); + for (var u2 = 0; u2 < n22; u2++) + t4[e4 + u2] ^= o2[u2]; + } }); + e3.Decryptor = n2; + return e3; + }(); + return t3.mode.CTRGladman; + }); + }, 4242: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(5109)); + })(this, function(t3) { + t3.mode.CTR = function() { + var e3 = t3.lib.BlockCipherMode.extend(); + var r3 = e3.Encryptor = e3.extend({ processBlock: function(t4, e4) { + var r4 = this._cipher; + var i22 = r4.blockSize; + var n2 = this._iv; + var s2 = this._counter; + if (n2) { + s2 = this._counter = n2.slice(0); + this._iv = void 0; + } + var a2 = s2.slice(0); + r4.encryptBlock(a2, 0); + s2[i22 - 1] = s2[i22 - 1] + 1 | 0; + for (var o2 = 0; o2 < i22; o2++) + t4[e4 + o2] ^= a2[o2]; + } }); + e3.Decryptor = r3; + return e3; + }(); + return t3.mode.CTR; + }); + }, 1148: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(5109)); + })(this, function(t3) { + t3.mode.ECB = function() { + var e3 = t3.lib.BlockCipherMode.extend(); + e3.Encryptor = e3.extend({ processBlock: function(t4, e4) { + this._cipher.encryptBlock(t4, e4); + } }); + e3.Decryptor = e3.extend({ processBlock: function(t4, e4) { + this._cipher.decryptBlock(t4, e4); + } }); + return e3; + }(); + return t3.mode.ECB; + }); + }, 7660: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(5109)); + })(this, function(t3) { + t3.mode.OFB = function() { + var e3 = t3.lib.BlockCipherMode.extend(); + var r3 = e3.Encryptor = e3.extend({ processBlock: function(t4, e4) { + var r4 = this._cipher; + var i22 = r4.blockSize; + var n2 = this._iv; + var s2 = this._keystream; + if (n2) { + s2 = this._keystream = n2.slice(0); + this._iv = void 0; + } + r4.encryptBlock(s2, 0); + for (var a2 = 0; a2 < i22; a2++) + t4[e4 + a2] ^= s2[a2]; + } }); + e3.Decryptor = r3; + return e3; + }(); + return t3.mode.OFB; + }); + }, 3615: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(5109)); + })(this, function(t3) { + t3.pad.AnsiX923 = { pad: function(t4, e3) { + var r3 = t4.sigBytes; + var i22 = 4 * e3; + var n2 = i22 - r3 % i22; + var s2 = r3 + n2 - 1; + t4.clamp(); + t4.words[s2 >>> 2] |= n2 << 24 - s2 % 4 * 8; + t4.sigBytes += n2; + }, unpad: function(t4) { + var e3 = 255 & t4.words[t4.sigBytes - 1 >>> 2]; + t4.sigBytes -= e3; + } }; + return t3.pad.Ansix923; + }); + }, 2807: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(5109)); + })(this, function(t3) { + t3.pad.Iso10126 = { pad: function(e3, r3) { + var i22 = 4 * r3; + var n2 = i22 - e3.sigBytes % i22; + e3.concat(t3.lib.WordArray.random(n2 - 1)).concat(t3.lib.WordArray.create([n2 << 24], 1)); + }, unpad: function(t4) { + var e3 = 255 & t4.words[t4.sigBytes - 1 >>> 2]; + t4.sigBytes -= e3; + } }; + return t3.pad.Iso10126; + }); + }, 1077: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(5109)); + })(this, function(t3) { + t3.pad.Iso97971 = { pad: function(e3, r3) { + e3.concat(t3.lib.WordArray.create([2147483648], 1)); + t3.pad.ZeroPadding.pad(e3, r3); + }, unpad: function(e3) { + t3.pad.ZeroPadding.unpad(e3); + e3.sigBytes--; + } }; + return t3.pad.Iso97971; + }); + }, 6991: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(5109)); + })(this, function(t3) { + t3.pad.NoPadding = { pad: function() { + }, unpad: function() { + } }; + return t3.pad.NoPadding; + }); + }, 6475: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(5109)); + })(this, function(t3) { + t3.pad.ZeroPadding = { pad: function(t4, e3) { + var r3 = 4 * e3; + t4.clamp(); + t4.sigBytes += r3 - (t4.sigBytes % r3 || r3); + }, unpad: function(t4) { + var e3 = t4.words; + var r3 = t4.sigBytes - 1; + for (var r3 = t4.sigBytes - 1; r3 >= 0; r3--) + if (e3[r3 >>> 2] >>> 24 - r3 % 4 * 8 & 255) { + t4.sigBytes = r3 + 1; + break; + } + } }; + return t3.pad.ZeroPadding; + }); + }, 2112: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(2783), r22(9824)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.Base; + var n2 = r3.WordArray; + var s2 = e3.algo; + var a2 = s2.SHA1; + var o2 = s2.HMAC; + var u2 = s2.PBKDF2 = i22.extend({ cfg: i22.extend({ keySize: 128 / 32, hasher: a2, iterations: 1 }), init: function(t4) { + this.cfg = this.cfg.extend(t4); + }, compute: function(t4, e4) { + var r4 = this.cfg; + var i3 = o2.create(r4.hasher, t4); + var s22 = n2.create(); + var a22 = n2.create([1]); + var u22 = s22.words; + var c2 = a22.words; + var l2 = r4.keySize; + var f2 = r4.iterations; + while (u22.length < l2) { + var h2 = i3.update(e4).finalize(a22); + i3.reset(); + var d2 = h2.words; + var v2 = d2.length; + var p2 = h2; + for (var g2 = 1; g2 < f2; g2++) { + p2 = i3.finalize(p2); + i3.reset(); + var y2 = p2.words; + for (var m2 = 0; m2 < v2; m2++) + d2[m2] ^= y2[m2]; + } + s22.concat(h2); + c2[0]++; + } + s22.sigBytes = 4 * l2; + return s22; + } }); + e3.PBKDF2 = function(t4, e4, r4) { + return u2.create(r4).compute(t4, e4); + }; + })(); + return t3.PBKDF2; + }); + }, 3974: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(8269), r22(8214), r22(888), r22(5109)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.StreamCipher; + var n2 = e3.algo; + var s2 = []; + var a2 = []; + var o2 = []; + var u2 = n2.RabbitLegacy = i22.extend({ _doReset: function() { + var t4 = this._key.words; + var e4 = this.cfg.iv; + var r4 = this._X = [t4[0], t4[3] << 16 | t4[2] >>> 16, t4[1], t4[0] << 16 | t4[3] >>> 16, t4[2], t4[1] << 16 | t4[0] >>> 16, t4[3], t4[2] << 16 | t4[1] >>> 16]; + var i3 = this._C = [t4[2] << 16 | t4[2] >>> 16, 4294901760 & t4[0] | 65535 & t4[1], t4[3] << 16 | t4[3] >>> 16, 4294901760 & t4[1] | 65535 & t4[2], t4[0] << 16 | t4[0] >>> 16, 4294901760 & t4[2] | 65535 & t4[3], t4[1] << 16 | t4[1] >>> 16, 4294901760 & t4[3] | 65535 & t4[0]]; + this._b = 0; + for (var n22 = 0; n22 < 4; n22++) + c2.call(this); + for (var n22 = 0; n22 < 8; n22++) + i3[n22] ^= r4[n22 + 4 & 7]; + if (e4) { + var s22 = e4.words; + var a22 = s22[0]; + var o22 = s22[1]; + var u22 = 16711935 & (a22 << 8 | a22 >>> 24) | 4278255360 & (a22 << 24 | a22 >>> 8); + var l2 = 16711935 & (o22 << 8 | o22 >>> 24) | 4278255360 & (o22 << 24 | o22 >>> 8); + var f2 = u22 >>> 16 | 4294901760 & l2; + var h2 = l2 << 16 | 65535 & u22; + i3[0] ^= u22; + i3[1] ^= f2; + i3[2] ^= l2; + i3[3] ^= h2; + i3[4] ^= u22; + i3[5] ^= f2; + i3[6] ^= l2; + i3[7] ^= h2; + for (var n22 = 0; n22 < 4; n22++) + c2.call(this); + } + }, _doProcessBlock: function(t4, e4) { + var r4 = this._X; + c2.call(this); + s2[0] = r4[0] ^ r4[5] >>> 16 ^ r4[3] << 16; + s2[1] = r4[2] ^ r4[7] >>> 16 ^ r4[5] << 16; + s2[2] = r4[4] ^ r4[1] >>> 16 ^ r4[7] << 16; + s2[3] = r4[6] ^ r4[3] >>> 16 ^ r4[1] << 16; + for (var i3 = 0; i3 < 4; i3++) { + s2[i3] = 16711935 & (s2[i3] << 8 | s2[i3] >>> 24) | 4278255360 & (s2[i3] << 24 | s2[i3] >>> 8); + t4[e4 + i3] ^= s2[i3]; + } + }, blockSize: 128 / 32, ivSize: 64 / 32 }); + function c2() { + var t4 = this._X; + var e4 = this._C; + for (var r4 = 0; r4 < 8; r4++) + a2[r4] = e4[r4]; + e4[0] = e4[0] + 1295307597 + this._b | 0; + e4[1] = e4[1] + 3545052371 + (e4[0] >>> 0 < a2[0] >>> 0 ? 1 : 0) | 0; + e4[2] = e4[2] + 886263092 + (e4[1] >>> 0 < a2[1] >>> 0 ? 1 : 0) | 0; + e4[3] = e4[3] + 1295307597 + (e4[2] >>> 0 < a2[2] >>> 0 ? 1 : 0) | 0; + e4[4] = e4[4] + 3545052371 + (e4[3] >>> 0 < a2[3] >>> 0 ? 1 : 0) | 0; + e4[5] = e4[5] + 886263092 + (e4[4] >>> 0 < a2[4] >>> 0 ? 1 : 0) | 0; + e4[6] = e4[6] + 1295307597 + (e4[5] >>> 0 < a2[5] >>> 0 ? 1 : 0) | 0; + e4[7] = e4[7] + 3545052371 + (e4[6] >>> 0 < a2[6] >>> 0 ? 1 : 0) | 0; + this._b = e4[7] >>> 0 < a2[7] >>> 0 ? 1 : 0; + for (var r4 = 0; r4 < 8; r4++) { + var i3 = t4[r4] + e4[r4]; + var n22 = 65535 & i3; + var s22 = i3 >>> 16; + var u22 = ((n22 * n22 >>> 17) + n22 * s22 >>> 15) + s22 * s22; + var c22 = ((4294901760 & i3) * i3 | 0) + ((65535 & i3) * i3 | 0); + o2[r4] = u22 ^ c22; + } + t4[0] = o2[0] + (o2[7] << 16 | o2[7] >>> 16) + (o2[6] << 16 | o2[6] >>> 16) | 0; + t4[1] = o2[1] + (o2[0] << 8 | o2[0] >>> 24) + o2[7] | 0; + t4[2] = o2[2] + (o2[1] << 16 | o2[1] >>> 16) + (o2[0] << 16 | o2[0] >>> 16) | 0; + t4[3] = o2[3] + (o2[2] << 8 | o2[2] >>> 24) + o2[1] | 0; + t4[4] = o2[4] + (o2[3] << 16 | o2[3] >>> 16) + (o2[2] << 16 | o2[2] >>> 16) | 0; + t4[5] = o2[5] + (o2[4] << 8 | o2[4] >>> 24) + o2[3] | 0; + t4[6] = o2[6] + (o2[5] << 16 | o2[5] >>> 16) + (o2[4] << 16 | o2[4] >>> 16) | 0; + t4[7] = o2[7] + (o2[6] << 8 | o2[6] >>> 24) + o2[5] | 0; + } + e3.RabbitLegacy = i22._createHelper(u2); + })(); + return t3.RabbitLegacy; + }); + }, 4454: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(8269), r22(8214), r22(888), r22(5109)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.StreamCipher; + var n2 = e3.algo; + var s2 = []; + var a2 = []; + var o2 = []; + var u2 = n2.Rabbit = i22.extend({ _doReset: function() { + var t4 = this._key.words; + var e4 = this.cfg.iv; + for (var r4 = 0; r4 < 4; r4++) + t4[r4] = 16711935 & (t4[r4] << 8 | t4[r4] >>> 24) | 4278255360 & (t4[r4] << 24 | t4[r4] >>> 8); + var i3 = this._X = [t4[0], t4[3] << 16 | t4[2] >>> 16, t4[1], t4[0] << 16 | t4[3] >>> 16, t4[2], t4[1] << 16 | t4[0] >>> 16, t4[3], t4[2] << 16 | t4[1] >>> 16]; + var n22 = this._C = [t4[2] << 16 | t4[2] >>> 16, 4294901760 & t4[0] | 65535 & t4[1], t4[3] << 16 | t4[3] >>> 16, 4294901760 & t4[1] | 65535 & t4[2], t4[0] << 16 | t4[0] >>> 16, 4294901760 & t4[2] | 65535 & t4[3], t4[1] << 16 | t4[1] >>> 16, 4294901760 & t4[3] | 65535 & t4[0]]; + this._b = 0; + for (var r4 = 0; r4 < 4; r4++) + c2.call(this); + for (var r4 = 0; r4 < 8; r4++) + n22[r4] ^= i3[r4 + 4 & 7]; + if (e4) { + var s22 = e4.words; + var a22 = s22[0]; + var o22 = s22[1]; + var u22 = 16711935 & (a22 << 8 | a22 >>> 24) | 4278255360 & (a22 << 24 | a22 >>> 8); + var l2 = 16711935 & (o22 << 8 | o22 >>> 24) | 4278255360 & (o22 << 24 | o22 >>> 8); + var f2 = u22 >>> 16 | 4294901760 & l2; + var h2 = l2 << 16 | 65535 & u22; + n22[0] ^= u22; + n22[1] ^= f2; + n22[2] ^= l2; + n22[3] ^= h2; + n22[4] ^= u22; + n22[5] ^= f2; + n22[6] ^= l2; + n22[7] ^= h2; + for (var r4 = 0; r4 < 4; r4++) + c2.call(this); + } + }, _doProcessBlock: function(t4, e4) { + var r4 = this._X; + c2.call(this); + s2[0] = r4[0] ^ r4[5] >>> 16 ^ r4[3] << 16; + s2[1] = r4[2] ^ r4[7] >>> 16 ^ r4[5] << 16; + s2[2] = r4[4] ^ r4[1] >>> 16 ^ r4[7] << 16; + s2[3] = r4[6] ^ r4[3] >>> 16 ^ r4[1] << 16; + for (var i3 = 0; i3 < 4; i3++) { + s2[i3] = 16711935 & (s2[i3] << 8 | s2[i3] >>> 24) | 4278255360 & (s2[i3] << 24 | s2[i3] >>> 8); + t4[e4 + i3] ^= s2[i3]; + } + }, blockSize: 128 / 32, ivSize: 64 / 32 }); + function c2() { + var t4 = this._X; + var e4 = this._C; + for (var r4 = 0; r4 < 8; r4++) + a2[r4] = e4[r4]; + e4[0] = e4[0] + 1295307597 + this._b | 0; + e4[1] = e4[1] + 3545052371 + (e4[0] >>> 0 < a2[0] >>> 0 ? 1 : 0) | 0; + e4[2] = e4[2] + 886263092 + (e4[1] >>> 0 < a2[1] >>> 0 ? 1 : 0) | 0; + e4[3] = e4[3] + 1295307597 + (e4[2] >>> 0 < a2[2] >>> 0 ? 1 : 0) | 0; + e4[4] = e4[4] + 3545052371 + (e4[3] >>> 0 < a2[3] >>> 0 ? 1 : 0) | 0; + e4[5] = e4[5] + 886263092 + (e4[4] >>> 0 < a2[4] >>> 0 ? 1 : 0) | 0; + e4[6] = e4[6] + 1295307597 + (e4[5] >>> 0 < a2[5] >>> 0 ? 1 : 0) | 0; + e4[7] = e4[7] + 3545052371 + (e4[6] >>> 0 < a2[6] >>> 0 ? 1 : 0) | 0; + this._b = e4[7] >>> 0 < a2[7] >>> 0 ? 1 : 0; + for (var r4 = 0; r4 < 8; r4++) { + var i3 = t4[r4] + e4[r4]; + var n22 = 65535 & i3; + var s22 = i3 >>> 16; + var u22 = ((n22 * n22 >>> 17) + n22 * s22 >>> 15) + s22 * s22; + var c22 = ((4294901760 & i3) * i3 | 0) + ((65535 & i3) * i3 | 0); + o2[r4] = u22 ^ c22; + } + t4[0] = o2[0] + (o2[7] << 16 | o2[7] >>> 16) + (o2[6] << 16 | o2[6] >>> 16) | 0; + t4[1] = o2[1] + (o2[0] << 8 | o2[0] >>> 24) + o2[7] | 0; + t4[2] = o2[2] + (o2[1] << 16 | o2[1] >>> 16) + (o2[0] << 16 | o2[0] >>> 16) | 0; + t4[3] = o2[3] + (o2[2] << 8 | o2[2] >>> 24) + o2[1] | 0; + t4[4] = o2[4] + (o2[3] << 16 | o2[3] >>> 16) + (o2[2] << 16 | o2[2] >>> 16) | 0; + t4[5] = o2[5] + (o2[4] << 8 | o2[4] >>> 24) + o2[3] | 0; + t4[6] = o2[6] + (o2[5] << 16 | o2[5] >>> 16) + (o2[4] << 16 | o2[4] >>> 16) | 0; + t4[7] = o2[7] + (o2[6] << 8 | o2[6] >>> 24) + o2[5] | 0; + } + e3.Rabbit = i22._createHelper(u2); + })(); + return t3.Rabbit; + }); + }, 1857: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(8269), r22(8214), r22(888), r22(5109)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.StreamCipher; + var n2 = e3.algo; + var s2 = n2.RC4 = i22.extend({ _doReset: function() { + var t4 = this._key; + var e4 = t4.words; + var r4 = t4.sigBytes; + var i3 = this._S = []; + for (var n22 = 0; n22 < 256; n22++) + i3[n22] = n22; + for (var n22 = 0, s22 = 0; n22 < 256; n22++) { + var a22 = n22 % r4; + var o22 = e4[a22 >>> 2] >>> 24 - a22 % 4 * 8 & 255; + s22 = (s22 + i3[n22] + o22) % 256; + var u2 = i3[n22]; + i3[n22] = i3[s22]; + i3[s22] = u2; + } + this._i = this._j = 0; + }, _doProcessBlock: function(t4, e4) { + t4[e4] ^= a2.call(this); + }, keySize: 256 / 32, ivSize: 0 }); + function a2() { + var t4 = this._S; + var e4 = this._i; + var r4 = this._j; + var i3 = 0; + for (var n22 = 0; n22 < 4; n22++) { + e4 = (e4 + 1) % 256; + r4 = (r4 + t4[e4]) % 256; + var s22 = t4[e4]; + t4[e4] = t4[r4]; + t4[r4] = s22; + i3 |= t4[(t4[e4] + t4[r4]) % 256] << 24 - 8 * n22; + } + this._i = e4; + this._j = r4; + return i3; + } + e3.RC4 = i22._createHelper(s2); + var o2 = n2.RC4Drop = s2.extend({ cfg: s2.cfg.extend({ drop: 192 }), _doReset: function() { + s2._doReset.call(this); + for (var t4 = this.cfg.drop; t4 > 0; t4--) + a2.call(this); + } }); + e3.RC4Drop = i22._createHelper(o2); + })(); + return t3.RC4; + }); + }, 706: function(t22, e22, r22) { + (function(i22, n2) { + t22.exports = n2(r22(8249)); + })(this, function(t3) { + (function(e3) { + var r3 = t3; + var i22 = r3.lib; + var n2 = i22.WordArray; + var s2 = i22.Hasher; + var a2 = r3.algo; + var o2 = n2.create([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]); + var u2 = n2.create([5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]); + var c2 = n2.create([11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6]); + var l2 = n2.create([8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11]); + var f2 = n2.create([0, 1518500249, 1859775393, 2400959708, 2840853838]); + var h2 = n2.create([1352829926, 1548603684, 1836072691, 2053994217, 0]); + var d2 = a2.RIPEMD160 = s2.extend({ _doReset: function() { + this._hash = n2.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]); + }, _doProcessBlock: function(t4, e4) { + for (var r4 = 0; r4 < 16; r4++) { + var i3 = e4 + r4; + var n22 = t4[i3]; + t4[i3] = 16711935 & (n22 << 8 | n22 >>> 24) | 4278255360 & (n22 << 24 | n22 >>> 8); + } + var s22 = this._hash.words; + var a22 = f2.words; + var d22 = h2.words; + var S2 = o2.words; + var _2 = u2.words; + var b2 = c2.words; + var E2 = l2.words; + var D2, M2, T2, I2, A2; + var x, R2, B2, O2, k; + x = D2 = s22[0]; + R2 = M2 = s22[1]; + B2 = T2 = s22[2]; + O2 = I2 = s22[3]; + k = A2 = s22[4]; + var C2; + for (var r4 = 0; r4 < 80; r4 += 1) { + C2 = D2 + t4[e4 + S2[r4]] | 0; + if (r4 < 16) + C2 += v2(M2, T2, I2) + a22[0]; + else if (r4 < 32) + C2 += p2(M2, T2, I2) + a22[1]; + else if (r4 < 48) + C2 += g2(M2, T2, I2) + a22[2]; + else if (r4 < 64) + C2 += y2(M2, T2, I2) + a22[3]; + else + C2 += m2(M2, T2, I2) + a22[4]; + C2 |= 0; + C2 = w2(C2, b2[r4]); + C2 = C2 + A2 | 0; + D2 = A2; + A2 = I2; + I2 = w2(T2, 10); + T2 = M2; + M2 = C2; + C2 = x + t4[e4 + _2[r4]] | 0; + if (r4 < 16) + C2 += m2(R2, B2, O2) + d22[0]; + else if (r4 < 32) + C2 += y2(R2, B2, O2) + d22[1]; + else if (r4 < 48) + C2 += g2(R2, B2, O2) + d22[2]; + else if (r4 < 64) + C2 += p2(R2, B2, O2) + d22[3]; + else + C2 += v2(R2, B2, O2) + d22[4]; + C2 |= 0; + C2 = w2(C2, E2[r4]); + C2 = C2 + k | 0; + x = k; + k = O2; + O2 = w2(B2, 10); + B2 = R2; + R2 = C2; + } + C2 = s22[1] + T2 + O2 | 0; + s22[1] = s22[2] + I2 + k | 0; + s22[2] = s22[3] + A2 + x | 0; + s22[3] = s22[4] + D2 + R2 | 0; + s22[4] = s22[0] + M2 + B2 | 0; + s22[0] = C2; + }, _doFinalize: function() { + var t4 = this._data; + var e4 = t4.words; + var r4 = 8 * this._nDataBytes; + var i3 = 8 * t4.sigBytes; + e4[i3 >>> 5] |= 128 << 24 - i3 % 32; + e4[(i3 + 64 >>> 9 << 4) + 14] = 16711935 & (r4 << 8 | r4 >>> 24) | 4278255360 & (r4 << 24 | r4 >>> 8); + t4.sigBytes = 4 * (e4.length + 1); + this._process(); + var n22 = this._hash; + var s22 = n22.words; + for (var a22 = 0; a22 < 5; a22++) { + var o22 = s22[a22]; + s22[a22] = 16711935 & (o22 << 8 | o22 >>> 24) | 4278255360 & (o22 << 24 | o22 >>> 8); + } + return n22; + }, clone: function() { + var t4 = s2.clone.call(this); + t4._hash = this._hash.clone(); + return t4; + } }); + function v2(t4, e4, r4) { + return t4 ^ e4 ^ r4; + } + function p2(t4, e4, r4) { + return t4 & e4 | ~t4 & r4; + } + function g2(t4, e4, r4) { + return (t4 | ~e4) ^ r4; + } + function y2(t4, e4, r4) { + return t4 & r4 | e4 & ~r4; + } + function m2(t4, e4, r4) { + return t4 ^ (e4 | ~r4); + } + function w2(t4, e4) { + return t4 << e4 | t4 >>> 32 - e4; + } + r3.RIPEMD160 = s2._createHelper(d2); + r3.HmacRIPEMD160 = s2._createHmacHelper(d2); + })(); + return t3.RIPEMD160; + }); + }, 2783: function(t22, e22, r22) { + (function(i22, n2) { + t22.exports = n2(r22(8249)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.WordArray; + var n2 = r3.Hasher; + var s2 = e3.algo; + var a2 = []; + var o2 = s2.SHA1 = n2.extend({ _doReset: function() { + this._hash = new i22.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520]); + }, _doProcessBlock: function(t4, e4) { + var r4 = this._hash.words; + var i3 = r4[0]; + var n22 = r4[1]; + var s22 = r4[2]; + var o22 = r4[3]; + var u2 = r4[4]; + for (var c2 = 0; c2 < 80; c2++) { + if (c2 < 16) + a2[c2] = 0 | t4[e4 + c2]; + else { + var l2 = a2[c2 - 3] ^ a2[c2 - 8] ^ a2[c2 - 14] ^ a2[c2 - 16]; + a2[c2] = l2 << 1 | l2 >>> 31; + } + var f2 = (i3 << 5 | i3 >>> 27) + u2 + a2[c2]; + if (c2 < 20) + f2 += (n22 & s22 | ~n22 & o22) + 1518500249; + else if (c2 < 40) + f2 += (n22 ^ s22 ^ o22) + 1859775393; + else if (c2 < 60) + f2 += (n22 & s22 | n22 & o22 | s22 & o22) - 1894007588; + else + f2 += (n22 ^ s22 ^ o22) - 899497514; + u2 = o22; + o22 = s22; + s22 = n22 << 30 | n22 >>> 2; + n22 = i3; + i3 = f2; + } + r4[0] = r4[0] + i3 | 0; + r4[1] = r4[1] + n22 | 0; + r4[2] = r4[2] + s22 | 0; + r4[3] = r4[3] + o22 | 0; + r4[4] = r4[4] + u2 | 0; + }, _doFinalize: function() { + var t4 = this._data; + var e4 = t4.words; + var r4 = 8 * this._nDataBytes; + var i3 = 8 * t4.sigBytes; + e4[i3 >>> 5] |= 128 << 24 - i3 % 32; + e4[(i3 + 64 >>> 9 << 4) + 14] = Math.floor(r4 / 4294967296); + e4[(i3 + 64 >>> 9 << 4) + 15] = r4; + t4.sigBytes = 4 * e4.length; + this._process(); + return this._hash; + }, clone: function() { + var t4 = n2.clone.call(this); + t4._hash = this._hash.clone(); + return t4; + } }); + e3.SHA1 = n2._createHelper(o2); + e3.HmacSHA1 = n2._createHmacHelper(o2); + })(); + return t3.SHA1; + }); + }, 7792: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(2153)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.WordArray; + var n2 = e3.algo; + var s2 = n2.SHA256; + var a2 = n2.SHA224 = s2.extend({ _doReset: function() { + this._hash = new i22.init([3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428]); + }, _doFinalize: function() { + var t4 = s2._doFinalize.call(this); + t4.sigBytes -= 4; + return t4; + } }); + e3.SHA224 = s2._createHelper(a2); + e3.HmacSHA224 = s2._createHmacHelper(a2); + })(); + return t3.SHA224; + }); + }, 2153: function(t22, e22, r22) { + (function(i22, n2) { + t22.exports = n2(r22(8249)); + })(this, function(t3) { + (function(e3) { + var r3 = t3; + var i22 = r3.lib; + var n2 = i22.WordArray; + var s2 = i22.Hasher; + var a2 = r3.algo; + var o2 = []; + var u2 = []; + (function() { + function t4(t5) { + var r5 = e3.sqrt(t5); + for (var i4 = 2; i4 <= r5; i4++) + if (!(t5 % i4)) + return false; + return true; + } + function r4(t5) { + return 4294967296 * (t5 - (0 | t5)) | 0; + } + var i3 = 2; + var n22 = 0; + while (n22 < 64) { + if (t4(i3)) { + if (n22 < 8) + o2[n22] = r4(e3.pow(i3, 1 / 2)); + u2[n22] = r4(e3.pow(i3, 1 / 3)); + n22++; + } + i3++; + } + })(); + var c2 = []; + var l2 = a2.SHA256 = s2.extend({ _doReset: function() { + this._hash = new n2.init(o2.slice(0)); + }, _doProcessBlock: function(t4, e4) { + var r4 = this._hash.words; + var i3 = r4[0]; + var n22 = r4[1]; + var s22 = r4[2]; + var a22 = r4[3]; + var o22 = r4[4]; + var l22 = r4[5]; + var f2 = r4[6]; + var h2 = r4[7]; + for (var d2 = 0; d2 < 64; d2++) { + if (d2 < 16) + c2[d2] = 0 | t4[e4 + d2]; + else { + var v2 = c2[d2 - 15]; + var p2 = (v2 << 25 | v2 >>> 7) ^ (v2 << 14 | v2 >>> 18) ^ v2 >>> 3; + var g2 = c2[d2 - 2]; + var y2 = (g2 << 15 | g2 >>> 17) ^ (g2 << 13 | g2 >>> 19) ^ g2 >>> 10; + c2[d2] = p2 + c2[d2 - 7] + y2 + c2[d2 - 16]; + } + var m2 = o22 & l22 ^ ~o22 & f2; + var w2 = i3 & n22 ^ i3 & s22 ^ n22 & s22; + var S2 = (i3 << 30 | i3 >>> 2) ^ (i3 << 19 | i3 >>> 13) ^ (i3 << 10 | i3 >>> 22); + var _2 = (o22 << 26 | o22 >>> 6) ^ (o22 << 21 | o22 >>> 11) ^ (o22 << 7 | o22 >>> 25); + var b2 = h2 + _2 + m2 + u2[d2] + c2[d2]; + var E2 = S2 + w2; + h2 = f2; + f2 = l22; + l22 = o22; + o22 = a22 + b2 | 0; + a22 = s22; + s22 = n22; + n22 = i3; + i3 = b2 + E2 | 0; + } + r4[0] = r4[0] + i3 | 0; + r4[1] = r4[1] + n22 | 0; + r4[2] = r4[2] + s22 | 0; + r4[3] = r4[3] + a22 | 0; + r4[4] = r4[4] + o22 | 0; + r4[5] = r4[5] + l22 | 0; + r4[6] = r4[6] + f2 | 0; + r4[7] = r4[7] + h2 | 0; + }, _doFinalize: function() { + var t4 = this._data; + var r4 = t4.words; + var i3 = 8 * this._nDataBytes; + var n22 = 8 * t4.sigBytes; + r4[n22 >>> 5] |= 128 << 24 - n22 % 32; + r4[(n22 + 64 >>> 9 << 4) + 14] = e3.floor(i3 / 4294967296); + r4[(n22 + 64 >>> 9 << 4) + 15] = i3; + t4.sigBytes = 4 * r4.length; + this._process(); + return this._hash; + }, clone: function() { + var t4 = s2.clone.call(this); + t4._hash = this._hash.clone(); + return t4; + } }); + r3.SHA256 = s2._createHelper(l2); + r3.HmacSHA256 = s2._createHmacHelper(l2); + })(Math); + return t3.SHA256; + }); + }, 3327: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(4938)); + })(this, function(t3) { + (function(e3) { + var r3 = t3; + var i22 = r3.lib; + var n2 = i22.WordArray; + var s2 = i22.Hasher; + var a2 = r3.x64; + var o2 = a2.Word; + var u2 = r3.algo; + var c2 = []; + var l2 = []; + var f2 = []; + (function() { + var t4 = 1, e4 = 0; + for (var r4 = 0; r4 < 24; r4++) { + c2[t4 + 5 * e4] = (r4 + 1) * (r4 + 2) / 2 % 64; + var i3 = e4 % 5; + var n22 = (2 * t4 + 3 * e4) % 5; + t4 = i3; + e4 = n22; + } + for (var t4 = 0; t4 < 5; t4++) + for (var e4 = 0; e4 < 5; e4++) + l2[t4 + 5 * e4] = e4 + (2 * t4 + 3 * e4) % 5 * 5; + var s22 = 1; + for (var a22 = 0; a22 < 24; a22++) { + var u22 = 0; + var h22 = 0; + for (var d22 = 0; d22 < 7; d22++) { + if (1 & s22) { + var v2 = (1 << d22) - 1; + if (v2 < 32) + h22 ^= 1 << v2; + else + u22 ^= 1 << v2 - 32; + } + if (128 & s22) + s22 = s22 << 1 ^ 113; + else + s22 <<= 1; + } + f2[a22] = o2.create(u22, h22); + } + })(); + var h2 = []; + (function() { + for (var t4 = 0; t4 < 25; t4++) + h2[t4] = o2.create(); + })(); + var d2 = u2.SHA3 = s2.extend({ cfg: s2.cfg.extend({ outputLength: 512 }), _doReset: function() { + var t4 = this._state = []; + for (var e4 = 0; e4 < 25; e4++) + t4[e4] = new o2.init(); + this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32; + }, _doProcessBlock: function(t4, e4) { + var r4 = this._state; + var i3 = this.blockSize / 2; + for (var n22 = 0; n22 < i3; n22++) { + var s22 = t4[e4 + 2 * n22]; + var a22 = t4[e4 + 2 * n22 + 1]; + s22 = 16711935 & (s22 << 8 | s22 >>> 24) | 4278255360 & (s22 << 24 | s22 >>> 8); + a22 = 16711935 & (a22 << 8 | a22 >>> 24) | 4278255360 & (a22 << 24 | a22 >>> 8); + var o22 = r4[n22]; + o22.high ^= a22; + o22.low ^= s22; + } + for (var u22 = 0; u22 < 24; u22++) { + for (var d22 = 0; d22 < 5; d22++) { + var v2 = 0, p2 = 0; + for (var g2 = 0; g2 < 5; g2++) { + var o22 = r4[d22 + 5 * g2]; + v2 ^= o22.high; + p2 ^= o22.low; + } + var y2 = h2[d22]; + y2.high = v2; + y2.low = p2; + } + for (var d22 = 0; d22 < 5; d22++) { + var m2 = h2[(d22 + 4) % 5]; + var w2 = h2[(d22 + 1) % 5]; + var S2 = w2.high; + var _2 = w2.low; + var v2 = m2.high ^ (S2 << 1 | _2 >>> 31); + var p2 = m2.low ^ (_2 << 1 | S2 >>> 31); + for (var g2 = 0; g2 < 5; g2++) { + var o22 = r4[d22 + 5 * g2]; + o22.high ^= v2; + o22.low ^= p2; + } + } + for (var b2 = 1; b2 < 25; b2++) { + var v2; + var p2; + var o22 = r4[b2]; + var E2 = o22.high; + var D2 = o22.low; + var M2 = c2[b2]; + if (M2 < 32) { + v2 = E2 << M2 | D2 >>> 32 - M2; + p2 = D2 << M2 | E2 >>> 32 - M2; + } else { + v2 = D2 << M2 - 32 | E2 >>> 64 - M2; + p2 = E2 << M2 - 32 | D2 >>> 64 - M2; + } + var T2 = h2[l2[b2]]; + T2.high = v2; + T2.low = p2; + } + var I2 = h2[0]; + var A2 = r4[0]; + I2.high = A2.high; + I2.low = A2.low; + for (var d22 = 0; d22 < 5; d22++) + for (var g2 = 0; g2 < 5; g2++) { + var b2 = d22 + 5 * g2; + var o22 = r4[b2]; + var x = h2[b2]; + var R2 = h2[(d22 + 1) % 5 + 5 * g2]; + var B2 = h2[(d22 + 2) % 5 + 5 * g2]; + o22.high = x.high ^ ~R2.high & B2.high; + o22.low = x.low ^ ~R2.low & B2.low; + } + var o22 = r4[0]; + var O2 = f2[u22]; + o22.high ^= O2.high; + o22.low ^= O2.low; + } + }, _doFinalize: function() { + var t4 = this._data; + var r4 = t4.words; + 8 * this._nDataBytes; + var s22 = 8 * t4.sigBytes; + var a22 = 32 * this.blockSize; + r4[s22 >>> 5] |= 1 << 24 - s22 % 32; + r4[(e3.ceil((s22 + 1) / a22) * a22 >>> 5) - 1] |= 128; + t4.sigBytes = 4 * r4.length; + this._process(); + var o22 = this._state; + var u22 = this.cfg.outputLength / 8; + var c22 = u22 / 8; + var l22 = []; + for (var f22 = 0; f22 < c22; f22++) { + var h22 = o22[f22]; + var d22 = h22.high; + var v2 = h22.low; + d22 = 16711935 & (d22 << 8 | d22 >>> 24) | 4278255360 & (d22 << 24 | d22 >>> 8); + v2 = 16711935 & (v2 << 8 | v2 >>> 24) | 4278255360 & (v2 << 24 | v2 >>> 8); + l22.push(v2); + l22.push(d22); + } + return new n2.init(l22, u22); + }, clone: function() { + var t4 = s2.clone.call(this); + var e4 = t4._state = this._state.slice(0); + for (var r4 = 0; r4 < 25; r4++) + e4[r4] = e4[r4].clone(); + return t4; + } }); + r3.SHA3 = s2._createHelper(d2); + r3.HmacSHA3 = s2._createHmacHelper(d2); + })(Math); + return t3.SHA3; + }); + }, 7460: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(4938), r22(34)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.x64; + var i22 = r3.Word; + var n2 = r3.WordArray; + var s2 = e3.algo; + var a2 = s2.SHA512; + var o2 = s2.SHA384 = a2.extend({ _doReset: function() { + this._hash = new n2.init([new i22.init(3418070365, 3238371032), new i22.init(1654270250, 914150663), new i22.init(2438529370, 812702999), new i22.init(355462360, 4144912697), new i22.init(1731405415, 4290775857), new i22.init(2394180231, 1750603025), new i22.init(3675008525, 1694076839), new i22.init(1203062813, 3204075428)]); + }, _doFinalize: function() { + var t4 = a2._doFinalize.call(this); + t4.sigBytes -= 16; + return t4; + } }); + e3.SHA384 = a2._createHelper(o2); + e3.HmacSHA384 = a2._createHmacHelper(o2); + })(); + return t3.SHA384; + }); + }, 34: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(4938)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.Hasher; + var n2 = e3.x64; + var s2 = n2.Word; + var a2 = n2.WordArray; + var o2 = e3.algo; + function u2() { + return s2.create.apply(s2, arguments); + } + var c2 = [u2(1116352408, 3609767458), u2(1899447441, 602891725), u2(3049323471, 3964484399), u2(3921009573, 2173295548), u2(961987163, 4081628472), u2(1508970993, 3053834265), u2(2453635748, 2937671579), u2(2870763221, 3664609560), u2(3624381080, 2734883394), u2(310598401, 1164996542), u2(607225278, 1323610764), u2(1426881987, 3590304994), u2(1925078388, 4068182383), u2(2162078206, 991336113), u2(2614888103, 633803317), u2(3248222580, 3479774868), u2(3835390401, 2666613458), u2(4022224774, 944711139), u2(264347078, 2341262773), u2(604807628, 2007800933), u2(770255983, 1495990901), u2(1249150122, 1856431235), u2(1555081692, 3175218132), u2(1996064986, 2198950837), u2(2554220882, 3999719339), u2(2821834349, 766784016), u2(2952996808, 2566594879), u2(3210313671, 3203337956), u2(3336571891, 1034457026), u2(3584528711, 2466948901), u2(113926993, 3758326383), u2(338241895, 168717936), u2(666307205, 1188179964), u2(773529912, 1546045734), u2(1294757372, 1522805485), u2(1396182291, 2643833823), u2(1695183700, 2343527390), u2(1986661051, 1014477480), u2(2177026350, 1206759142), u2(2456956037, 344077627), u2(2730485921, 1290863460), u2(2820302411, 3158454273), u2(3259730800, 3505952657), u2(3345764771, 106217008), u2(3516065817, 3606008344), u2(3600352804, 1432725776), u2(4094571909, 1467031594), u2(275423344, 851169720), u2(430227734, 3100823752), u2(506948616, 1363258195), u2(659060556, 3750685593), u2(883997877, 3785050280), u2(958139571, 3318307427), u2(1322822218, 3812723403), u2(1537002063, 2003034995), u2(1747873779, 3602036899), u2(1955562222, 1575990012), u2(2024104815, 1125592928), u2(2227730452, 2716904306), u2(2361852424, 442776044), u2(2428436474, 593698344), u2(2756734187, 3733110249), u2(3204031479, 2999351573), u2(3329325298, 3815920427), u2(3391569614, 3928383900), u2(3515267271, 566280711), u2(3940187606, 3454069534), u2(4118630271, 4000239992), u2(116418474, 1914138554), u2(174292421, 2731055270), u2(289380356, 3203993006), u2(460393269, 320620315), u2(685471733, 587496836), u2(852142971, 1086792851), u2(1017036298, 365543100), u2(1126000580, 2618297676), u2(1288033470, 3409855158), u2(1501505948, 4234509866), u2(1607167915, 987167468), u2(1816402316, 1246189591)]; + var l2 = []; + (function() { + for (var t4 = 0; t4 < 80; t4++) + l2[t4] = u2(); + })(); + var f2 = o2.SHA512 = i22.extend({ _doReset: function() { + this._hash = new a2.init([new s2.init(1779033703, 4089235720), new s2.init(3144134277, 2227873595), new s2.init(1013904242, 4271175723), new s2.init(2773480762, 1595750129), new s2.init(1359893119, 2917565137), new s2.init(2600822924, 725511199), new s2.init(528734635, 4215389547), new s2.init(1541459225, 327033209)]); + }, _doProcessBlock: function(t4, e4) { + var r4 = this._hash.words; + var i3 = r4[0]; + var n22 = r4[1]; + var s22 = r4[2]; + var a22 = r4[3]; + var o22 = r4[4]; + var u22 = r4[5]; + var f22 = r4[6]; + var h2 = r4[7]; + var d2 = i3.high; + var v2 = i3.low; + var p2 = n22.high; + var g2 = n22.low; + var y2 = s22.high; + var m2 = s22.low; + var w2 = a22.high; + var S2 = a22.low; + var _2 = o22.high; + var b2 = o22.low; + var E2 = u22.high; + var D2 = u22.low; + var M2 = f22.high; + var T2 = f22.low; + var I2 = h2.high; + var A2 = h2.low; + var x = d2; + var R2 = v2; + var B2 = p2; + var O2 = g2; + var k = y2; + var C2 = m2; + var N2 = w2; + var P2 = S2; + var V2 = _2; + var L2 = b2; + var H2 = E2; + var U2 = D2; + var K2 = M2; + var j2 = T2; + var q2 = I2; + var F2 = A2; + for (var z2 = 0; z2 < 80; z2++) { + var G2; + var Y2; + var W2 = l2[z2]; + if (z2 < 16) { + Y2 = W2.high = 0 | t4[e4 + 2 * z2]; + G2 = W2.low = 0 | t4[e4 + 2 * z2 + 1]; + } else { + var J2 = l2[z2 - 15]; + var Z2 = J2.high; + var $2 = J2.low; + var X2 = (Z2 >>> 1 | $2 << 31) ^ (Z2 >>> 8 | $2 << 24) ^ Z2 >>> 7; + var Q2 = ($2 >>> 1 | Z2 << 31) ^ ($2 >>> 8 | Z2 << 24) ^ ($2 >>> 7 | Z2 << 25); + var tt2 = l2[z2 - 2]; + var et2 = tt2.high; + var rt2 = tt2.low; + var it2 = (et2 >>> 19 | rt2 << 13) ^ (et2 << 3 | rt2 >>> 29) ^ et2 >>> 6; + var nt2 = (rt2 >>> 19 | et2 << 13) ^ (rt2 << 3 | et2 >>> 29) ^ (rt2 >>> 6 | et2 << 26); + var st2 = l2[z2 - 7]; + var at2 = st2.high; + var ot2 = st2.low; + var ut2 = l2[z2 - 16]; + var ct2 = ut2.high; + var lt2 = ut2.low; + G2 = Q2 + ot2; + Y2 = X2 + at2 + (G2 >>> 0 < Q2 >>> 0 ? 1 : 0); + G2 += nt2; + Y2 = Y2 + it2 + (G2 >>> 0 < nt2 >>> 0 ? 1 : 0); + G2 += lt2; + Y2 = Y2 + ct2 + (G2 >>> 0 < lt2 >>> 0 ? 1 : 0); + W2.high = Y2; + W2.low = G2; + } + var ft2 = V2 & H2 ^ ~V2 & K2; + var ht2 = L2 & U2 ^ ~L2 & j2; + var dt2 = x & B2 ^ x & k ^ B2 & k; + var vt2 = R2 & O2 ^ R2 & C2 ^ O2 & C2; + var pt2 = (x >>> 28 | R2 << 4) ^ (x << 30 | R2 >>> 2) ^ (x << 25 | R2 >>> 7); + var gt2 = (R2 >>> 28 | x << 4) ^ (R2 << 30 | x >>> 2) ^ (R2 << 25 | x >>> 7); + var yt2 = (V2 >>> 14 | L2 << 18) ^ (V2 >>> 18 | L2 << 14) ^ (V2 << 23 | L2 >>> 9); + var mt2 = (L2 >>> 14 | V2 << 18) ^ (L2 >>> 18 | V2 << 14) ^ (L2 << 23 | V2 >>> 9); + var wt2 = c2[z2]; + var St2 = wt2.high; + var _t2 = wt2.low; + var bt2 = F2 + mt2; + var Et2 = q2 + yt2 + (bt2 >>> 0 < F2 >>> 0 ? 1 : 0); + var bt2 = bt2 + ht2; + var Et2 = Et2 + ft2 + (bt2 >>> 0 < ht2 >>> 0 ? 1 : 0); + var bt2 = bt2 + _t2; + var Et2 = Et2 + St2 + (bt2 >>> 0 < _t2 >>> 0 ? 1 : 0); + var bt2 = bt2 + G2; + var Et2 = Et2 + Y2 + (bt2 >>> 0 < G2 >>> 0 ? 1 : 0); + var Dt2 = gt2 + vt2; + var Mt2 = pt2 + dt2 + (Dt2 >>> 0 < gt2 >>> 0 ? 1 : 0); + q2 = K2; + F2 = j2; + K2 = H2; + j2 = U2; + H2 = V2; + U2 = L2; + L2 = P2 + bt2 | 0; + V2 = N2 + Et2 + (L2 >>> 0 < P2 >>> 0 ? 1 : 0) | 0; + N2 = k; + P2 = C2; + k = B2; + C2 = O2; + B2 = x; + O2 = R2; + R2 = bt2 + Dt2 | 0; + x = Et2 + Mt2 + (R2 >>> 0 < bt2 >>> 0 ? 1 : 0) | 0; + } + v2 = i3.low = v2 + R2; + i3.high = d2 + x + (v2 >>> 0 < R2 >>> 0 ? 1 : 0); + g2 = n22.low = g2 + O2; + n22.high = p2 + B2 + (g2 >>> 0 < O2 >>> 0 ? 1 : 0); + m2 = s22.low = m2 + C2; + s22.high = y2 + k + (m2 >>> 0 < C2 >>> 0 ? 1 : 0); + S2 = a22.low = S2 + P2; + a22.high = w2 + N2 + (S2 >>> 0 < P2 >>> 0 ? 1 : 0); + b2 = o22.low = b2 + L2; + o22.high = _2 + V2 + (b2 >>> 0 < L2 >>> 0 ? 1 : 0); + D2 = u22.low = D2 + U2; + u22.high = E2 + H2 + (D2 >>> 0 < U2 >>> 0 ? 1 : 0); + T2 = f22.low = T2 + j2; + f22.high = M2 + K2 + (T2 >>> 0 < j2 >>> 0 ? 1 : 0); + A2 = h2.low = A2 + F2; + h2.high = I2 + q2 + (A2 >>> 0 < F2 >>> 0 ? 1 : 0); + }, _doFinalize: function() { + var t4 = this._data; + var e4 = t4.words; + var r4 = 8 * this._nDataBytes; + var i3 = 8 * t4.sigBytes; + e4[i3 >>> 5] |= 128 << 24 - i3 % 32; + e4[(i3 + 128 >>> 10 << 5) + 30] = Math.floor(r4 / 4294967296); + e4[(i3 + 128 >>> 10 << 5) + 31] = r4; + t4.sigBytes = 4 * e4.length; + this._process(); + var n22 = this._hash.toX32(); + return n22; + }, clone: function() { + var t4 = i22.clone.call(this); + t4._hash = this._hash.clone(); + return t4; + }, blockSize: 1024 / 32 }); + e3.SHA512 = i22._createHelper(f2); + e3.HmacSHA512 = i22._createHmacHelper(f2); + })(); + return t3.SHA512; + }); + }, 4253: function(t22, e22, r22) { + (function(i22, n2, s2) { + t22.exports = n2(r22(8249), r22(8269), r22(8214), r22(888), r22(5109)); + })(this, function(t3) { + (function() { + var e3 = t3; + var r3 = e3.lib; + var i22 = r3.WordArray; + var n2 = r3.BlockCipher; + var s2 = e3.algo; + var a2 = [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4]; + var o2 = [14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32]; + var u2 = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28]; + var c2 = [{ 0: 8421888, 268435456: 32768, 536870912: 8421378, 805306368: 2, 1073741824: 512, 1342177280: 8421890, 1610612736: 8389122, 1879048192: 8388608, 2147483648: 514, 2415919104: 8389120, 2684354560: 33280, 2952790016: 8421376, 3221225472: 32770, 3489660928: 8388610, 3758096384: 0, 4026531840: 33282, 134217728: 0, 402653184: 8421890, 671088640: 33282, 939524096: 32768, 1207959552: 8421888, 1476395008: 512, 1744830464: 8421378, 2013265920: 2, 2281701376: 8389120, 2550136832: 33280, 2818572288: 8421376, 3087007744: 8389122, 3355443200: 8388610, 3623878656: 32770, 3892314112: 514, 4160749568: 8388608, 1: 32768, 268435457: 2, 536870913: 8421888, 805306369: 8388608, 1073741825: 8421378, 1342177281: 33280, 1610612737: 512, 1879048193: 8389122, 2147483649: 8421890, 2415919105: 8421376, 2684354561: 8388610, 2952790017: 33282, 3221225473: 514, 3489660929: 8389120, 3758096385: 32770, 4026531841: 0, 134217729: 8421890, 402653185: 8421376, 671088641: 8388608, 939524097: 512, 1207959553: 32768, 1476395009: 8388610, 1744830465: 2, 2013265921: 33282, 2281701377: 32770, 2550136833: 8389122, 2818572289: 514, 3087007745: 8421888, 3355443201: 8389120, 3623878657: 0, 3892314113: 33280, 4160749569: 8421378 }, { 0: 1074282512, 16777216: 16384, 33554432: 524288, 50331648: 1074266128, 67108864: 1073741840, 83886080: 1074282496, 100663296: 1073758208, 117440512: 16, 134217728: 540672, 150994944: 1073758224, 167772160: 1073741824, 184549376: 540688, 201326592: 524304, 218103808: 0, 234881024: 16400, 251658240: 1074266112, 8388608: 1073758208, 25165824: 540688, 41943040: 16, 58720256: 1073758224, 75497472: 1074282512, 92274688: 1073741824, 109051904: 524288, 125829120: 1074266128, 142606336: 524304, 159383552: 0, 176160768: 16384, 192937984: 1074266112, 209715200: 1073741840, 226492416: 540672, 243269632: 1074282496, 260046848: 16400, 268435456: 0, 285212672: 1074266128, 301989888: 1073758224, 318767104: 1074282496, 335544320: 1074266112, 352321536: 16, 369098752: 540688, 385875968: 16384, 402653184: 16400, 419430400: 524288, 436207616: 524304, 452984832: 1073741840, 469762048: 540672, 486539264: 1073758208, 503316480: 1073741824, 520093696: 1074282512, 276824064: 540688, 293601280: 524288, 310378496: 1074266112, 327155712: 16384, 343932928: 1073758208, 360710144: 1074282512, 377487360: 16, 394264576: 1073741824, 411041792: 1074282496, 427819008: 1073741840, 444596224: 1073758224, 461373440: 524304, 478150656: 0, 494927872: 16400, 511705088: 1074266128, 528482304: 540672 }, { 0: 260, 1048576: 0, 2097152: 67109120, 3145728: 65796, 4194304: 65540, 5242880: 67108868, 6291456: 67174660, 7340032: 67174400, 8388608: 67108864, 9437184: 67174656, 10485760: 65792, 11534336: 67174404, 12582912: 67109124, 13631488: 65536, 14680064: 4, 15728640: 256, 524288: 67174656, 1572864: 67174404, 2621440: 0, 3670016: 67109120, 4718592: 67108868, 5767168: 65536, 6815744: 65540, 7864320: 260, 8912896: 4, 9961472: 256, 11010048: 67174400, 12058624: 65796, 13107200: 65792, 14155776: 67109124, 15204352: 67174660, 16252928: 67108864, 16777216: 67174656, 17825792: 65540, 18874368: 65536, 19922944: 67109120, 20971520: 256, 22020096: 67174660, 23068672: 67108868, 24117248: 0, 25165824: 67109124, 26214400: 67108864, 27262976: 4, 28311552: 65792, 29360128: 67174400, 30408704: 260, 31457280: 65796, 32505856: 67174404, 17301504: 67108864, 18350080: 260, 19398656: 67174656, 20447232: 0, 21495808: 65540, 22544384: 67109120, 23592960: 256, 24641536: 67174404, 25690112: 65536, 26738688: 67174660, 27787264: 65796, 28835840: 67108868, 29884416: 67109124, 30932992: 67174400, 31981568: 4, 33030144: 65792 }, { 0: 2151682048, 65536: 2147487808, 131072: 4198464, 196608: 2151677952, 262144: 0, 327680: 4198400, 393216: 2147483712, 458752: 4194368, 524288: 2147483648, 589824: 4194304, 655360: 64, 720896: 2147487744, 786432: 2151678016, 851968: 4160, 917504: 4096, 983040: 2151682112, 32768: 2147487808, 98304: 64, 163840: 2151678016, 229376: 2147487744, 294912: 4198400, 360448: 2151682112, 425984: 0, 491520: 2151677952, 557056: 4096, 622592: 2151682048, 688128: 4194304, 753664: 4160, 819200: 2147483648, 884736: 4194368, 950272: 4198464, 1015808: 2147483712, 1048576: 4194368, 1114112: 4198400, 1179648: 2147483712, 1245184: 0, 1310720: 4160, 1376256: 2151678016, 1441792: 2151682048, 1507328: 2147487808, 1572864: 2151682112, 1638400: 2147483648, 1703936: 2151677952, 1769472: 4198464, 1835008: 2147487744, 1900544: 4194304, 1966080: 64, 2031616: 4096, 1081344: 2151677952, 1146880: 2151682112, 1212416: 0, 1277952: 4198400, 1343488: 4194368, 1409024: 2147483648, 1474560: 2147487808, 1540096: 64, 1605632: 2147483712, 1671168: 4096, 1736704: 2147487744, 1802240: 2151678016, 1867776: 4160, 1933312: 2151682048, 1998848: 4194304, 2064384: 4198464 }, { 0: 128, 4096: 17039360, 8192: 262144, 12288: 536870912, 16384: 537133184, 20480: 16777344, 24576: 553648256, 28672: 262272, 32768: 16777216, 36864: 537133056, 40960: 536871040, 45056: 553910400, 49152: 553910272, 53248: 0, 57344: 17039488, 61440: 553648128, 2048: 17039488, 6144: 553648256, 10240: 128, 14336: 17039360, 18432: 262144, 22528: 537133184, 26624: 553910272, 30720: 536870912, 34816: 537133056, 38912: 0, 43008: 553910400, 47104: 16777344, 51200: 536871040, 55296: 553648128, 59392: 16777216, 63488: 262272, 65536: 262144, 69632: 128, 73728: 536870912, 77824: 553648256, 81920: 16777344, 86016: 553910272, 90112: 537133184, 94208: 16777216, 98304: 553910400, 102400: 553648128, 106496: 17039360, 110592: 537133056, 114688: 262272, 118784: 536871040, 122880: 0, 126976: 17039488, 67584: 553648256, 71680: 16777216, 75776: 17039360, 79872: 537133184, 83968: 536870912, 88064: 17039488, 92160: 128, 96256: 553910272, 100352: 262272, 104448: 553910400, 108544: 0, 112640: 553648128, 116736: 16777344, 120832: 262144, 124928: 537133056, 129024: 536871040 }, { 0: 268435464, 256: 8192, 512: 270532608, 768: 270540808, 1024: 268443648, 1280: 2097152, 1536: 2097160, 1792: 268435456, 2048: 0, 2304: 268443656, 2560: 2105344, 2816: 8, 3072: 270532616, 3328: 2105352, 3584: 8200, 3840: 270540800, 128: 270532608, 384: 270540808, 640: 8, 896: 2097152, 1152: 2105352, 1408: 268435464, 1664: 268443648, 1920: 8200, 2176: 2097160, 2432: 8192, 2688: 268443656, 2944: 270532616, 3200: 0, 3456: 270540800, 3712: 2105344, 3968: 268435456, 4096: 268443648, 4352: 270532616, 4608: 270540808, 4864: 8200, 5120: 2097152, 5376: 268435456, 5632: 268435464, 5888: 2105344, 6144: 2105352, 6400: 0, 6656: 8, 6912: 270532608, 7168: 8192, 7424: 268443656, 7680: 270540800, 7936: 2097160, 4224: 8, 4480: 2105344, 4736: 2097152, 4992: 268435464, 5248: 268443648, 5504: 8200, 5760: 270540808, 6016: 270532608, 6272: 270540800, 6528: 270532616, 6784: 8192, 7040: 2105352, 7296: 2097160, 7552: 0, 7808: 268435456, 8064: 268443656 }, { 0: 1048576, 16: 33555457, 32: 1024, 48: 1049601, 64: 34604033, 80: 0, 96: 1, 112: 34603009, 128: 33555456, 144: 1048577, 160: 33554433, 176: 34604032, 192: 34603008, 208: 1025, 224: 1049600, 240: 33554432, 8: 34603009, 24: 0, 40: 33555457, 56: 34604032, 72: 1048576, 88: 33554433, 104: 33554432, 120: 1025, 136: 1049601, 152: 33555456, 168: 34603008, 184: 1048577, 200: 1024, 216: 34604033, 232: 1, 248: 1049600, 256: 33554432, 272: 1048576, 288: 33555457, 304: 34603009, 320: 1048577, 336: 33555456, 352: 34604032, 368: 1049601, 384: 1025, 400: 34604033, 416: 1049600, 432: 1, 448: 0, 464: 34603008, 480: 33554433, 496: 1024, 264: 1049600, 280: 33555457, 296: 34603009, 312: 1, 328: 33554432, 344: 1048576, 360: 1025, 376: 34604032, 392: 33554433, 408: 34603008, 424: 0, 440: 34604033, 456: 1049601, 472: 1024, 488: 33555456, 504: 1048577 }, { 0: 134219808, 1: 131072, 2: 134217728, 3: 32, 4: 131104, 5: 134350880, 6: 134350848, 7: 2048, 8: 134348800, 9: 134219776, 10: 133120, 11: 134348832, 12: 2080, 13: 0, 14: 134217760, 15: 133152, 2147483648: 2048, 2147483649: 134350880, 2147483650: 134219808, 2147483651: 134217728, 2147483652: 134348800, 2147483653: 133120, 2147483654: 133152, 2147483655: 32, 2147483656: 134217760, 2147483657: 2080, 2147483658: 131104, 2147483659: 134350848, 2147483660: 0, 2147483661: 134348832, 2147483662: 134219776, 2147483663: 131072, 16: 133152, 17: 134350848, 18: 32, 19: 2048, 20: 134219776, 21: 134217760, 22: 134348832, 23: 131072, 24: 0, 25: 131104, 26: 134348800, 27: 134219808, 28: 134350880, 29: 133120, 30: 2080, 31: 134217728, 2147483664: 131072, 2147483665: 2048, 2147483666: 134348832, 2147483667: 133152, 2147483668: 32, 2147483669: 134348800, 2147483670: 134217728, 2147483671: 134219808, 2147483672: 134350880, 2147483673: 134217760, 2147483674: 134219776, 2147483675: 0, 2147483676: 133120, 2147483677: 2080, 2147483678: 131104, 2147483679: 134350848 }]; + var l2 = [4160749569, 528482304, 33030144, 2064384, 129024, 8064, 504, 2147483679]; + var f2 = s2.DES = n2.extend({ _doReset: function() { + var t4 = this._key; + var e4 = t4.words; + var r4 = []; + for (var i3 = 0; i3 < 56; i3++) { + var n22 = a2[i3] - 1; + r4[i3] = e4[n22 >>> 5] >>> 31 - n22 % 32 & 1; + } + var s22 = this._subKeys = []; + for (var c22 = 0; c22 < 16; c22++) { + var l22 = s22[c22] = []; + var f22 = u2[c22]; + for (var i3 = 0; i3 < 24; i3++) { + l22[i3 / 6 | 0] |= r4[(o2[i3] - 1 + f22) % 28] << 31 - i3 % 6; + l22[4 + (i3 / 6 | 0)] |= r4[28 + (o2[i3 + 24] - 1 + f22) % 28] << 31 - i3 % 6; + } + l22[0] = l22[0] << 1 | l22[0] >>> 31; + for (var i3 = 1; i3 < 7; i3++) + l22[i3] = l22[i3] >>> 4 * (i3 - 1) + 3; + l22[7] = l22[7] << 5 | l22[7] >>> 27; + } + var h22 = this._invSubKeys = []; + for (var i3 = 0; i3 < 16; i3++) + h22[i3] = s22[15 - i3]; + }, encryptBlock: function(t4, e4) { + this._doCryptBlock(t4, e4, this._subKeys); + }, decryptBlock: function(t4, e4) { + this._doCryptBlock(t4, e4, this._invSubKeys); + }, _doCryptBlock: function(t4, e4, r4) { + this._lBlock = t4[e4]; + this._rBlock = t4[e4 + 1]; + h2.call(this, 4, 252645135); + h2.call(this, 16, 65535); + d2.call(this, 2, 858993459); + d2.call(this, 8, 16711935); + h2.call(this, 1, 1431655765); + for (var i3 = 0; i3 < 16; i3++) { + var n22 = r4[i3]; + var s22 = this._lBlock; + var a22 = this._rBlock; + var o22 = 0; + for (var u22 = 0; u22 < 8; u22++) + o22 |= c2[u22][((a22 ^ n22[u22]) & l2[u22]) >>> 0]; + this._lBlock = a22; + this._rBlock = s22 ^ o22; + } + var f22 = this._lBlock; + this._lBlock = this._rBlock; + this._rBlock = f22; + h2.call(this, 1, 1431655765); + d2.call(this, 8, 16711935); + d2.call(this, 2, 858993459); + h2.call(this, 16, 65535); + h2.call(this, 4, 252645135); + t4[e4] = this._lBlock; + t4[e4 + 1] = this._rBlock; + }, keySize: 64 / 32, ivSize: 64 / 32, blockSize: 64 / 32 }); + function h2(t4, e4) { + var r4 = (this._lBlock >>> t4 ^ this._rBlock) & e4; + this._rBlock ^= r4; + this._lBlock ^= r4 << t4; + } + function d2(t4, e4) { + var r4 = (this._rBlock >>> t4 ^ this._lBlock) & e4; + this._lBlock ^= r4; + this._rBlock ^= r4 << t4; + } + e3.DES = n2._createHelper(f2); + var v2 = s2.TripleDES = n2.extend({ _doReset: function() { + var t4 = this._key; + var e4 = t4.words; + if (2 !== e4.length && 4 !== e4.length && e4.length < 6) + throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192."); + var r4 = e4.slice(0, 2); + var n22 = e4.length < 4 ? e4.slice(0, 2) : e4.slice(2, 4); + var s22 = e4.length < 6 ? e4.slice(0, 2) : e4.slice(4, 6); + this._des1 = f2.createEncryptor(i22.create(r4)); + this._des2 = f2.createEncryptor(i22.create(n22)); + this._des3 = f2.createEncryptor(i22.create(s22)); + }, encryptBlock: function(t4, e4) { + this._des1.encryptBlock(t4, e4); + this._des2.decryptBlock(t4, e4); + this._des3.encryptBlock(t4, e4); + }, decryptBlock: function(t4, e4) { + this._des3.decryptBlock(t4, e4); + this._des2.encryptBlock(t4, e4); + this._des1.decryptBlock(t4, e4); + }, keySize: 192 / 32, ivSize: 64 / 32, blockSize: 64 / 32 }); + e3.TripleDES = n2._createHelper(v2); + })(); + return t3.TripleDES; + }); + }, 4938: function(t22, e22, r22) { + (function(i22, n2) { + t22.exports = n2(r22(8249)); + })(this, function(t3) { + (function(e3) { + var r3 = t3; + var i22 = r3.lib; + var n2 = i22.Base; + var s2 = i22.WordArray; + var a2 = r3.x64 = {}; + a2.Word = n2.extend({ init: function(t4, e4) { + this.high = t4; + this.low = e4; + } }); + a2.WordArray = n2.extend({ init: function(t4, r4) { + t4 = this.words = t4 || []; + if (r4 != e3) + this.sigBytes = r4; + else + this.sigBytes = 8 * t4.length; + }, toX32: function() { + var t4 = this.words; + var e4 = t4.length; + var r4 = []; + for (var i3 = 0; i3 < e4; i3++) { + var n22 = t4[i3]; + r4.push(n22.high); + r4.push(n22.low); + } + return s2.create(r4, this.sigBytes); + }, clone: function() { + var t4 = n2.clone.call(this); + var e4 = t4.words = this.words.slice(0); + var r4 = e4.length; + for (var i3 = 0; i3 < r4; i3++) + e4[i3] = e4[i3].clone(); + return t4; + } }); + })(); + return t3; + }); + }, 4198: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + e22.ErrorCode = void 0; + (function(t3) { + t3[t3["SUCCESS"] = 0] = "SUCCESS"; + t3[t3["CLIENT_ID_NOT_FOUND"] = 1] = "CLIENT_ID_NOT_FOUND"; + t3[t3["OPERATION_TOO_OFTEN"] = 2] = "OPERATION_TOO_OFTEN"; + t3[t3["REPEAT_MESSAGE"] = 3] = "REPEAT_MESSAGE"; + t3[t3["TIME_OUT"] = 4] = "TIME_OUT"; + })(e22.ErrorCode || (e22.ErrorCode = {})); + }, 9021: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + const n2 = i22(r22(6893)); + const s2 = i22(r22(7555)); + const a2 = i22(r22(6379)); + const o2 = i22(r22(529)); + var u2; + (function(t3) { + function e3(t4) { + o2.default.debugMode = t4; + o2.default.info(`setDebugMode: ${t4}`); + } + t3.setDebugMode = e3; + function r3(t4) { + try { + s2.default.init(t4); + } catch (t5) { + o2.default.error(`init error`, t5); + } + } + t3.init = r3; + function i3(t4) { + try { + if (!t4.url) + throw new Error("invalid url"); + if (!t4.key || !t4.keyId) + throw new Error("invalid key or keyId"); + a2.default.socketUrl = t4.url; + a2.default.publicKeyId = t4.keyId; + a2.default.publicKey = t4.key; + } catch (t5) { + o2.default.error(`setSocketServer error`, t5); + } + } + t3.setSocketServer = i3; + function u22(t4) { + try { + s2.default.enableSocket(t4); + } catch (t5) { + o2.default.error(`enableSocket error`, t5); + } + } + t3.enableSocket = u22; + function c2() { + return n2.default.SDK_VERSION; + } + t3.getVersion = c2; + })(u2 || (u2 = {})); + t22.exports = u2; + }, 9478: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(529)); + const s2 = i22(r22(496)); + const a2 = i22(r22(3555)); + const o2 = i22(r22(1929)); + const u2 = i22(r22(4379)); + const c2 = i22(r22(6899)); + const l2 = i22(r22(776)); + const f2 = i22(r22(2002)); + const h2 = i22(r22(5807)); + const d2 = i22(r22(9704)); + const v2 = i22(r22(6545)); + const p2 = i22(r22(3680)); + const g2 = i22(r22(7706)); + const y2 = i22(r22(4486)); + const m2 = i22(r22(5867)); + const w2 = i22(r22(7006)); + var S2; + (function(t3) { + let e3; + let r3; + let i3; + function S22() { + let t4; + try { + if ("undefined" != typeof uni) { + e3 = new v2.default(); + r3 = new p2.default(); + i3 = new g2.default(); + } else if ("undefined" != typeof tt) { + e3 = new f2.default(); + r3 = new h2.default(); + i3 = new d2.default(); + } else if ("undefined" != typeof my) { + e3 = new s2.default(); + r3 = new a2.default(); + i3 = new o2.default(); + } else if ("undefined" != typeof wx) { + e3 = new y2.default(); + r3 = new m2.default(); + i3 = new w2.default(); + } else if ("undefined" != typeof window) { + e3 = new u2.default(); + r3 = new c2.default(); + i3 = new l2.default(); + } + } catch (e4) { + n2.default.error(`init am error: ${e4}`); + t4 = e4; + } + if (!e3 || !r3 || !i3) { + if ("undefined" != typeof window) { + e3 = new u2.default(); + r3 = new c2.default(); + i3 = new l2.default(); + } + } + if (!e3 || !r3 || !i3) + throw new Error(`init am error: no api impl found, ${t4}`); + } + function _2() { + if (!e3) + S22(); + return e3; + } + t3.getDevice = _2; + function b2() { + if (!r3) + S22(); + return r3; + } + t3.getStorage = b2; + function E2() { + if (!i3) + S22(); + return i3; + } + t3.getWebSocket = E2; + })(S2 || (S2 = {})); + e22["default"] = S2; + }, 4685: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(9478)); + var s2; + (function(t3) { + function e3() { + return n2.default.getDevice().os(); + } + t3.os = e3; + function r3() { + return n2.default.getDevice().osVersion(); + } + t3.osVersion = r3; + function i3() { + return n2.default.getDevice().model(); + } + t3.model = i3; + function s22() { + return n2.default.getDevice().brand(); + } + t3.brand = s22; + function a2() { + return n2.default.getDevice().platform(); + } + t3.platform = a2; + function o2() { + return n2.default.getDevice().platformVersion(); + } + t3.platformVersion = o2; + function u2() { + return n2.default.getDevice().platformId(); + } + t3.platformId = u2; + function c2() { + return n2.default.getDevice().language(); + } + t3.language = c2; + function l2() { + let t4 = n2.default.getDevice().userAgent; + if (t4) + return t4(); + return ""; + } + t3.userAgent = l2; + function f2(t4) { + n2.default.getDevice().getNetworkType(t4); + } + t3.getNetworkType = f2; + function h2(t4) { + n2.default.getDevice().onNetworkStatusChange(t4); + } + t3.onNetworkStatusChange = h2; + })(s2 || (s2 = {})); + e22["default"] = s2; + }, 7002: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(6379)); + const s2 = i22(r22(1386)); + const a2 = i22(r22(4054)); + const o2 = r22(2918); + const u2 = i22(r22(7167)); + const c2 = i22(r22(529)); + const l2 = i22(r22(9478)); + const f2 = i22(r22(8506)); + var h2; + (function(t3) { + let e3; + let r3 = false; + let i3 = false; + let h22 = false; + let d2 = []; + const v2 = 10; + let p2 = 0; + t3.allowReconnect = true; + function g2() { + return r3 && i3; + } + t3.isAvailable = g2; + function y2(e4) { + let r4 = (/* @__PURE__ */ new Date()).getTime(); + if (r4 - p2 < 1e3) { + c2.default.warn(`enableSocket ${e4} fail: this function can only be called once a second`); + return; + } + p2 = r4; + t3.allowReconnect = e4; + if (e4) + t3.reconnect(10); + else + t3.close(`enableSocket ${e4}`); + } + t3.enableSocket = y2; + function m2(e4 = 0) { + if (!t3.allowReconnect) + return; + if (!_2()) + return; + setTimeout(function() { + w2(); + }, e4); + } + t3.reconnect = m2; + function w2() { + t3.allowReconnect = true; + if (!_2()) + return; + if (!b2()) + return; + h22 = true; + let r4 = n2.default.socketUrl; + try { + let t4 = f2.default.getSync(f2.default.KEY_REDIRECT_SERVER, ""); + if (t4) { + let e4 = o2.RedirectServerData.parse(t4); + let i4 = e4.addressList[0].split(","); + let n22 = i4[0]; + let s22 = Number(i4[1]); + let a22 = (/* @__PURE__ */ new Date()).getTime(); + if (a22 - e4.time < 1e3 * s22) + r4 = n22; + } + } catch (t4) { + } + e3 = l2.default.getWebSocket().connect({ url: r4, success: function() { + i3 = true; + S2(); + }, fail: function() { + i3 = false; + M2(); + m2(100); + } }); + e3.onOpen(T2); + e3.onClose(x); + e3.onError(A2); + e3.onMessage(I2); + } + t3.connect = w2; + function S2() { + if (i3 && r3) { + h22 = false; + s2.default.create().send(); + u2.default.getInstance().start(); + } + } + function _2() { + if (!n2.default.networkConnected) { + c2.default.error(`connect failed, network is not available`); + return false; + } + if (h22) { + c2.default.warn(`connecting`); + return false; + } + if (g2()) { + c2.default.warn(`already connected`); + return false; + } + return true; + } + function b2() { + var t4 = d2.length; + let e4 = (/* @__PURE__ */ new Date()).getTime(); + if (t4 > 0) { + for (var r4 = t4 - 1; r4 >= 0; r4--) + if (e4 - d2[r4] > 5e3) { + d2.splice(0, r4 + 1); + break; + } + } + t4 = d2.length; + d2.push(e4); + if (t4 >= v2) { + c2.default.error("connect failed, connection limit reached"); + return false; + } + return true; + } + function E2(t4 = "") { + null === e3 || void 0 === e3 || e3.close({ code: 1e3, reason: t4, success: function(t5) { + }, fail: function(t5) { + } }); + M2(); + } + t3.close = E2; + function D2(t4) { + if (r3 && r3) + null === e3 || void 0 === e3 || e3.send({ data: t4, success: function(t5) { + }, fail: function(t5) { + } }); + else + throw new Error(`socket not connect`); + } + t3.send = D2; + function M2(t4) { + var e4; + i3 = false; + r3 = false; + h22 = false; + u2.default.getInstance().cancel(); + if (n2.default.online) { + n2.default.online = false; + null === (e4 = n2.default.onlineState) || void 0 === e4 || e4.call(n2.default.onlineState, { online: n2.default.online }); + } + } + let T2 = function(t4) { + r3 = true; + S2(); + }; + let I2 = function(t4) { + try { + t4.data; + u2.default.getInstance().refresh(); + a2.default.receiveMessage(t4.data); + } catch (t5) { + } + }; + let A2 = function(t4) { + E2(`socket error`); + }; + let x = function(t4) { + M2(); + }; + })(h2 || (h2 = {})); + e22["default"] = h2; + }, 8506: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(9478)); + var s2; + (function(t3) { + t3.KEY_APPID = "getui_appid"; + t3.KEY_CID = "getui_cid"; + t3.KEY_SESSION = "getui_session"; + t3.KEY_REGID = "getui_regid"; + t3.KEY_SOCKET_URL = "getui_socket_url"; + t3.KEY_DEVICE_ID = "getui_deviceid"; + t3.KEY_ADD_PHONE_INFO_TIME = "getui_api_time"; + t3.KEY_BIND_ALIAS_TIME = "getui_ba_time"; + t3.KEY_SET_TAG_TIME = "getui_st_time"; + t3.KEY_REDIRECT_SERVER = "getui_redirect_server"; + t3.KEY_LAST_CONNECT_TIME = "getui_last_connect_time"; + function e3(t4) { + n2.default.getStorage().set(t4); + } + t3.set = e3; + function r3(t4, e4) { + n2.default.getStorage().setSync(t4, e4); + } + t3.setSync = r3; + function i3(t4) { + n2.default.getStorage().get(t4); + } + t3.get = i3; + function s22(t4, e4) { + let r4 = n2.default.getStorage().getSync(t4); + return r4 ? r4 : e4; + } + t3.getSync = s22; + })(s2 || (s2 = {})); + e22["default"] = s2; + }, 496: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + const n2 = i22(r22(3854)); + class s2 { + constructor() { + this.systemInfo = my.getSystemInfoSync(); + } + os() { + return n2.default.getStr(this.systemInfo, "platform"); + } + osVersion() { + return n2.default.getStr(this.systemInfo, "system"); + } + model() { + return n2.default.getStr(this.systemInfo, "model"); + } + brand() { + return n2.default.getStr(this.systemInfo, "brand"); + } + platform() { + return "MP-ALIPAY"; + } + platformVersion() { + return n2.default.getStr(this.systemInfo, "app") + " " + n2.default.getStr(this.systemInfo, "version"); + } + platformId() { + return my.getAppIdSync(); + } + language() { + return n2.default.getStr(this.systemInfo, "language"); + } + getNetworkType(t3) { + my.getNetworkType({ success: (e3) => { + var r3; + null === (r3 = t3.success) || void 0 === r3 || r3.call(t3.success, { networkType: e3.networkType }); + }, fail: () => { + var e3; + null === (e3 = t3.fail) || void 0 === e3 || e3.call(t3.fail, ""); + } }); + } + onNetworkStatusChange(t3) { + my.onNetworkStatusChange(t3); + } + } + t22.exports = s2; + }, 3555: (t22) => { + class e22 { + set(t3) { + my.setStorage({ key: t3.key, data: t3.data, success: t3.success, fail: t3.fail }); + } + setSync(t3, e3) { + my.setStorageSync({ key: t3, data: e3 }); + } + get(t3) { + my.getStorage({ key: t3.key, success: t3.success, fail: t3.fail, complete: t3.complete }); + } + getSync(t3) { + return my.getStorageSync({ key: t3 }).data; + } + } + t22.exports = e22; + }, 1929: (t22) => { + class e22 { + connect(t3) { + my.connectSocket({ url: t3.url, header: t3.header, method: t3.method, success: t3.success, fail: t3.fail, complete: t3.complete }); + return { onOpen: my.onSocketOpen, send: my.sendSocketMessage, onMessage: (t4) => { + my.onSocketMessage.call(my.onSocketMessage, (e3) => { + t4.call(t4, { data: e3 ? e3.data : "" }); + }); + }, onError: my.onSocketError, onClose: my.onSocketClose, close: my.closeSocket }; + } + } + t22.exports = e22; + }, 4379: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + os() { + let t3 = window.navigator.userAgent.toLowerCase(); + if (t3.indexOf("android") > 0 || t3.indexOf("adr") > 0) + return "android"; + if (!!t3.match(/\(i[^;]+;( u;)? cpu.+mac os x/)) + return "ios"; + if (t3.indexOf("windows") > 0 || t3.indexOf("win32") > 0 || t3.indexOf("win64") > 0) + return "windows"; + if (t3.indexOf("macintosh") > 0 || t3.indexOf("mac os") > 0) + return "mac os"; + if (t3.indexOf("linux") > 0) + return "linux"; + if (t3.indexOf("unix") > 0) + return "linux"; + return "other"; + } + osVersion() { + let t3 = window.navigator.userAgent.toLowerCase(); + let e3 = t3.substring(t3.indexOf(";") + 1).trim(); + if (e3.indexOf(";") > 0) + return e3.substring(0, e3.indexOf(";")).trim(); + return e3.substring(0, e3.indexOf(")")).trim(); + } + model() { + return ""; + } + brand() { + return ""; + } + platform() { + return "H5"; + } + platformVersion() { + return ""; + } + platformId() { + return ""; + } + language() { + return window.navigator.language; + } + userAgent() { + return window.navigator.userAgent; + } + getNetworkType(t3) { + var e3; + null === (e3 = t3.success) || void 0 === e3 || e3.call(t3.success, { networkType: window.navigator.onLine ? "unknown" : "none" }); + } + onNetworkStatusChange(t3) { + } + } + e22["default"] = r22; + }, 6899: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + set(t3) { + var e3; + window.localStorage.setItem(t3.key, t3.data); + null === (e3 = t3.success) || void 0 === e3 || e3.call(t3.success, ""); + } + setSync(t3, e3) { + window.localStorage.setItem(t3, e3); + } + get(t3) { + var e3; + let r3 = window.localStorage.getItem(t3.key); + null === (e3 = t3.success) || void 0 === e3 || e3.call(t3.success, r3); + } + getSync(t3) { + return window.localStorage.getItem(t3); + } + } + e22["default"] = r22; + }, 776: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + connect(t3) { + let e3 = new WebSocket(t3.url); + return { send: (t4) => { + var r3, i22; + try { + e3.send(t4.data); + null === (r3 = t4.success) || void 0 === r3 || r3.call(t4.success, { errMsg: "" }); + } catch (e4) { + null === (i22 = t4.fail) || void 0 === i22 || i22.call(t4.fail, { errMsg: e4 + "" }); + } + }, close: (t4) => { + var r3, i22; + try { + e3.close(t4.code, t4.reason); + null === (r3 = t4.success) || void 0 === r3 || r3.call(t4.success, { errMsg: "" }); + } catch (e4) { + null === (i22 = t4.fail) || void 0 === i22 || i22.call(t4.fail, { errMsg: e4 + "" }); + } + }, onOpen: (r3) => { + e3.onopen = (e4) => { + var i22; + null === (i22 = t3.success) || void 0 === i22 || i22.call(t3.success, ""); + r3({ header: "" }); + }; + }, onError: (r3) => { + e3.onerror = (e4) => { + var i22; + null === (i22 = t3.fail) || void 0 === i22 || i22.call(t3.fail, ""); + r3({ errMsg: "" }); + }; + }, onMessage: (t4) => { + e3.onmessage = (e4) => { + t4({ data: e4.data }); + }; + }, onClose: (t4) => { + e3.onclose = (e4) => { + t4(e4); + }; + } }; + } + } + e22["default"] = r22; + }, 2002: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(3854)); + class s2 { + constructor() { + this.systemInfo = tt.getSystemInfoSync(); + } + os() { + return n2.default.getStr(this.systemInfo, "platform"); + } + osVersion() { + return n2.default.getStr(this.systemInfo, "system"); + } + model() { + return n2.default.getStr(this.systemInfo, "model"); + } + brand() { + return n2.default.getStr(this.systemInfo, "brand"); + } + platform() { + return "MP-TOUTIAO"; + } + platformVersion() { + return n2.default.getStr(this.systemInfo, "appName") + " " + n2.default.getStr(this.systemInfo, "version"); + } + language() { + return ""; + } + platformId() { + return ""; + } + getNetworkType(t3) { + tt.getNetworkType(t3); + } + onNetworkStatusChange(t3) { + tt.onNetworkStatusChange(t3); + } + } + e22["default"] = s2; + }, 5807: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + set(t3) { + tt.setStorage(t3); + } + setSync(t3, e3) { + tt.setStorageSync(t3, e3); + } + get(t3) { + tt.getStorage(t3); + } + getSync(t3) { + return tt.getStorageSync(t3); + } + } + e22["default"] = r22; + }, 9704: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + connect(t3) { + let e3 = tt.connectSocket({ url: t3.url, header: t3.header, protocols: t3.protocols, success: t3.success, fail: t3.fail, complete: t3.complete }); + return { onOpen: e3.onOpen, send: e3.send, onMessage: e3.onMessage, onError: e3.onError, onClose: e3.onClose, close: e3.close }; + } + } + e22["default"] = r22; + }, 6545: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(3854)); + class s2 { + constructor() { + try { + this.systemInfo = uni.getSystemInfoSync(); + this.accountInfo = uni.getAccountInfoSync(); + } catch (t3) { + } + } + os() { + return n2.default.getStr(this.systemInfo, "platform"); + } + model() { + return n2.default.getStr(this.systemInfo, "model"); + } + brand() { + return n2.default.getStr(this.systemInfo, "brand"); + } + osVersion() { + return n2.default.getStr(this.systemInfo, "system"); + } + platform() { + let t3 = ""; + t3 = "APP-PLUS"; + return t3; + } + platformVersion() { + return this.systemInfo ? this.systemInfo.version : ""; + } + platformId() { + return this.accountInfo ? this.accountInfo.miniProgram.appId : ""; + } + language() { + var t3; + return (null === (t3 = this.systemInfo) || void 0 === t3 ? void 0 : t3.language) ? this.systemInfo.language : ""; + } + userAgent() { + return window ? window.navigator.userAgent : ""; + } + getNetworkType(t3) { + uni.getNetworkType(t3); + } + onNetworkStatusChange(t3) { + uni.onNetworkStatusChange(t3); + } + } + e22["default"] = s2; + }, 3680: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + set(t3) { + uni.setStorage(t3); + } + setSync(t3, e3) { + uni.setStorageSync(t3, e3); + } + get(t3) { + uni.getStorage(t3); + } + getSync(t3) { + return uni.getStorageSync(t3); + } + } + e22["default"] = r22; + }, 7706: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + connect(t3) { + let e3 = uni.connectSocket(t3); + return { send: (t4) => { + null === e3 || void 0 === e3 || e3.send(t4); + }, close: (t4) => { + null === e3 || void 0 === e3 || e3.close(t4); + }, onOpen: (t4) => { + null === e3 || void 0 === e3 || e3.onOpen(t4); + }, onError: (t4) => { + null === e3 || void 0 === e3 || e3.onError(t4); + }, onMessage: (t4) => { + null === e3 || void 0 === e3 || e3.onMessage(t4); + }, onClose: (t4) => { + null === e3 || void 0 === e3 || e3.onClose(t4); + } }; + } + } + e22["default"] = r22; + }, 4486: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(3854)); + class s2 { + constructor() { + this.systemInfo = wx.getSystemInfoSync(); + } + os() { + return n2.default.getStr(this.systemInfo, "platform"); + } + osVersion() { + return n2.default.getStr(this.systemInfo, "system"); + } + model() { + return n2.default.getStr(this.systemInfo, "model"); + } + brand() { + return n2.default.getStr(this.systemInfo, "brand"); + } + platform() { + return "MP-WEIXIN"; + } + platformVersion() { + return n2.default.getStr(this.systemInfo, "version"); + } + language() { + return n2.default.getStr(this.systemInfo, "language"); + } + platformId() { + if (wx.canIUse("getAccountInfoSync")) + return wx.getAccountInfoSync().miniProgram.appId; + return ""; + } + getNetworkType(t3) { + wx.getNetworkType({ success: (e3) => { + var r3; + null === (r3 = t3.success) || void 0 === r3 || r3.call(t3.success, { networkType: e3.networkType }); + }, fail: t3.fail }); + } + onNetworkStatusChange(t3) { + wx.onNetworkStatusChange(t3); + } + } + e22["default"] = s2; + }, 5867: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + set(t3) { + wx.setStorage(t3); + } + setSync(t3, e3) { + wx.setStorageSync(t3, e3); + } + get(t3) { + wx.getStorage(t3); + } + getSync(t3) { + return wx.getStorageSync(t3); + } + } + e22["default"] = r22; + }, 7006: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + connect(t3) { + let e3 = wx.connectSocket({ url: t3.url, header: t3.header, protocols: t3.protocols, success: t3.success, fail: t3.fail, complete: t3.complete }); + return { onOpen: e3.onOpen, send: e3.send, onMessage: e3.onMessage, onError: e3.onError, onClose: e3.onClose, close: e3.close }; + } + } + e22["default"] = r22; + }, 6893: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + var r22; + (function(t3) { + t3.SDK_VERSION = "GTMP-2.0.4.dcloud"; + t3.DEFAULT_SOCKET_URL = "wss://wshzn.gepush.com:5223/nws"; + t3.SOCKET_PROTOCOL_VERSION = "1.0"; + t3.SERVER_PUBLIC_KEY = "MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAJp1rROuvBF7sBSnvLaesj2iFhMcY8aXyLvpnNLKs2wjL3JmEnyr++SlVa35liUlzi83tnAFkn3A9GB7pHBNzawyUkBh8WUhq5bnFIkk2RaDa6+5MpG84DEv52p7RR+aWwIDAQAB"; + t3.SERVER_PUBLIC_KEY_ID = "69d747c4b9f641baf4004be4297e9f3b"; + t3.ID_U_2_G = true; + })(r22 || (r22 = {})); + e22["default"] = r22; + }, 7555: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(7002)); + const s2 = i22(r22(529)); + const a2 = i22(r22(6379)); + class o2 { + static init(t3) { + var e3; + if (this.inited) + return; + try { + this.checkAppid(t3.appid); + this.inited = true; + s2.default.info(`init: appid=${t3.appid}`); + a2.default.init(t3); + n2.default.connect(); + } catch (r3) { + this.inited = false; + null === (e3 = t3.onError) || void 0 === e3 || e3.call(t3.onError, { error: r3 }); + throw r3; + } + } + static enableSocket(t3) { + this.checkInit(); + n2.default.enableSocket(t3); + } + static checkInit() { + if (!this.inited) + throw new Error(`not init, please invoke init method firstly`); + } + static checkAppid(t3) { + if (null == t3 || void 0 == t3 || "" == t3.trim()) + throw new Error(`invalid appid ${t3}`); + } + } + o2.inited = false; + e22["default"] = o2; + }, 6379: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(6667)); + const s2 = i22(r22(8506)); + const a2 = i22(r22(6893)); + const o2 = i22(r22(7002)); + const u2 = i22(r22(529)); + const c2 = i22(r22(4685)); + const l2 = i22(r22(2323)); + class f2 { + static init(t3) { + var e3; + if (a2.default.ID_U_2_G) + this.appid = l2.default.to_getui(t3.appid); + else + this.appid = t3.appid; + this.onError = t3.onError; + this.onClientId = t3.onClientId; + this.onlineState = t3.onlineState; + this.onPushMsg = t3.onPushMsg; + if (this.appid != s2.default.getSync(s2.default.KEY_APPID, this.appid)) { + u2.default.info("appid changed, clear session and cid"); + s2.default.setSync(s2.default.KEY_CID, ""); + s2.default.setSync(s2.default.KEY_SESSION, ""); + } + s2.default.setSync(s2.default.KEY_APPID, this.appid); + this.cid = s2.default.getSync(s2.default.KEY_CID, this.cid); + if (this.cid) + null === (e3 = this.onClientId) || void 0 === e3 || e3.call(this.onClientId, { cid: f2.cid }); + this.session = s2.default.getSync(s2.default.KEY_SESSION, this.session); + this.deviceId = s2.default.getSync(s2.default.KEY_DEVICE_ID, this.deviceId); + this.regId = s2.default.getSync(s2.default.KEY_REGID, this.regId); + if (!this.regId) { + this.regId = this.createRegId(); + s2.default.set({ key: s2.default.KEY_REGID, data: this.regId }); + } + this.socketUrl = s2.default.getSync(s2.default.KEY_SOCKET_URL, this.socketUrl); + let r3 = this; + c2.default.getNetworkType({ success: (t4) => { + r3.networkType = t4.networkType; + r3.networkConnected = "none" != r3.networkType && "" != r3.networkType; + } }); + c2.default.onNetworkStatusChange((t4) => { + r3.networkConnected = t4.isConnected; + r3.networkType = t4.networkType; + if (r3.networkConnected) + o2.default.reconnect(100); + }); + } + static createRegId() { + return `M-V${n2.default.md5Hex(this.getUuid())}-${(/* @__PURE__ */ new Date()).getTime()}`; + } + static getUuid() { + return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(t3) { + let e3 = 16 * Math.random() | 0, r3 = "x" === t3 ? e3 : 3 & e3 | 8; + return r3.toString(16); + }); + } + } + f2.appid = ""; + f2.cid = ""; + f2.regId = ""; + f2.session = ""; + f2.deviceId = ""; + f2.packetId = 1; + f2.online = false; + f2.socketUrl = a2.default.DEFAULT_SOCKET_URL; + f2.publicKeyId = a2.default.SERVER_PUBLIC_KEY_ID; + f2.publicKey = a2.default.SERVER_PUBLIC_KEY; + f2.lastAliasTime = 0; + f2.networkConnected = true; + f2.networkType = "none"; + e22["default"] = f2; + }, 9586: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + var n2, s2; + Object.defineProperty(e22, "__esModule", { value: true }); + const a2 = i22(r22(661)); + const o2 = r22(4198); + const u2 = i22(r22(6379)); + class c2 extends a2.default { + constructor() { + super(...arguments); + this.actionMsgData = new l2(); + } + static initActionMsg(t3, ...e3) { + super.initMsg(t3); + t3.command = a2.default.Command.CLIENT_MSG; + t3.data = t3.actionMsgData = l2.create(); + return t3; + } + static parseActionMsg(t3, e3) { + super.parseMsg(t3, e3); + t3.actionMsgData = l2.parse(t3.data); + return t3; + } + send() { + setTimeout(() => { + var t3; + if (c2.waitingLoginMsgMap.has(this.actionMsgData.msgId) || c2.waitingResponseMsgMap.has(this.actionMsgData.msgId)) { + c2.waitingLoginMsgMap.delete(this.actionMsgData.msgId); + c2.waitingResponseMsgMap.delete(this.actionMsgData.msgId); + null === (t3 = this.callback) || void 0 === t3 || t3.call(this.callback, { resultCode: o2.ErrorCode.TIME_OUT, message: "waiting time out" }); + } + }, 1e4); + if (!u2.default.online) { + c2.waitingLoginMsgMap.set(this.actionMsgData.msgId, this); + return; + } + if (this.actionMsgData.msgAction != c2.ClientAction.RECEIVED) + c2.waitingResponseMsgMap.set(this.actionMsgData.msgId, this); + super.send(); + } + receive() { + } + static sendWaitingMessages() { + let t3 = this.waitingLoginMsgMap.keys(); + let e3; + while (e3 = t3.next(), !e3.done) { + let t4 = this.waitingLoginMsgMap.get(e3.value); + this.waitingLoginMsgMap.delete(e3.value); + null === t4 || void 0 === t4 || t4.send(); + } + } + static getWaitingResponseMessage(t3) { + return c2.waitingResponseMsgMap.get(t3); + } + static removeWaitingResponseMessage(t3) { + let e3 = c2.waitingResponseMsgMap.get(t3); + if (e3) + c2.waitingResponseMsgMap.delete(t3); + return e3; + } + } + c2.ServerAction = (n2 = class { + }, n2.PUSH_MESSAGE = "pushmessage", n2.REDIRECT_SERVER = "redirect_server", n2.ADD_PHONE_INFO_RESULT = "addphoneinfo", n2.SET_MODE_RESULT = "set_mode_result", n2.SET_TAG_RESULT = "settag_result", n2.BIND_ALIAS_RESULT = "response_bind", n2.UNBIND_ALIAS_RESULT = "response_unbind", n2.FEED_BACK_RESULT = "pushmessage_feedback", n2.RECEIVED = "received", n2); + c2.ClientAction = (s2 = class { + }, s2.ADD_PHONE_INFO = "addphoneinfo", s2.SET_MODE = "set_mode", s2.FEED_BACK = "pushmessage_feedback", s2.SET_TAGS = "set_tag", s2.BIND_ALIAS = "bind_alias", s2.UNBIND_ALIAS = "unbind_alias", s2.RECEIVED = "received", s2); + c2.waitingLoginMsgMap = /* @__PURE__ */ new Map(); + c2.waitingResponseMsgMap = /* @__PURE__ */ new Map(); + class l2 { + constructor() { + this.appId = ""; + this.cid = ""; + this.msgId = ""; + this.msgAction = ""; + this.msgData = ""; + this.msgExtraData = ""; + } + static create() { + let t3 = new l2(); + t3.appId = u2.default.appid; + t3.cid = u2.default.cid; + t3.msgId = (2147483647 & (/* @__PURE__ */ new Date()).getTime()).toString(); + return t3; + } + static parse(t3) { + let e3 = new l2(); + let r3 = JSON.parse(t3); + e3.appId = r3.appId; + e3.cid = r3.cid; + e3.msgId = r3.msgId; + e3.msgAction = r3.msgAction; + e3.msgData = r3.msgData; + e3.msgExtraData = r3.msgExtraData; + return e3; + } + } + e22["default"] = c2; + }, 4516: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(4685)); + const s2 = i22(r22(8506)); + const a2 = i22(r22(6893)); + const o2 = r22(4198); + const u2 = i22(r22(9586)); + const c2 = i22(r22(6379)); + class l2 extends u2.default { + constructor() { + super(...arguments); + this.addPhoneInfoData = new f2(); + } + static create() { + let t3 = new l2(); + super.initActionMsg(t3); + t3.callback = (e3) => { + if (e3.resultCode != o2.ErrorCode.SUCCESS && e3.resultCode != o2.ErrorCode.REPEAT_MESSAGE) + setTimeout(function() { + t3.send(); + }, 30 * 1e3); + else + s2.default.set({ key: s2.default.KEY_ADD_PHONE_INFO_TIME, data: (/* @__PURE__ */ new Date()).getTime() }); + }; + t3.actionMsgData.msgAction = u2.default.ClientAction.ADD_PHONE_INFO; + t3.addPhoneInfoData = f2.create(); + t3.actionMsgData.msgData = JSON.stringify(t3.addPhoneInfoData); + return t3; + } + send() { + let t3 = (/* @__PURE__ */ new Date()).getTime(); + let e3 = s2.default.getSync(s2.default.KEY_ADD_PHONE_INFO_TIME, 0); + if (t3 - e3 < 24 * 60 * 60 * 1e3) + return; + super.send(); + } + } + class f2 { + constructor() { + this.model = ""; + this.brand = ""; + this.system_version = ""; + this.version = ""; + this.deviceid = ""; + this.type = ""; + } + static create() { + let t3 = new f2(); + t3.model = n2.default.model(); + t3.brand = n2.default.brand(); + t3.system_version = n2.default.osVersion(); + t3.version = a2.default.SDK_VERSION; + t3.device_token = ""; + t3.imei = ""; + t3.oaid = ""; + t3.mac = ""; + t3.idfa = ""; + t3.type = "MINIPROGRAM"; + t3.deviceid = `${t3.type}-${c2.default.deviceId}`; + t3.extra = { os: n2.default.os(), platform: n2.default.platform(), platformVersion: n2.default.platformVersion(), platformId: n2.default.platformId(), language: n2.default.language(), userAgent: n2.default.userAgent() }; + return t3; + } + } + e22["default"] = l2; + }, 8723: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + var n2, s2; + Object.defineProperty(e22, "__esModule", { value: true }); + const a2 = i22(r22(6379)); + const o2 = r22(4198); + const u2 = i22(r22(9586)); + class c2 extends u2.default { + constructor() { + super(...arguments); + this.feedbackData = new l2(); + } + static create(t3, e3) { + let r3 = new c2(); + super.initActionMsg(r3); + r3.callback = (t4) => { + if (t4.resultCode != o2.ErrorCode.SUCCESS && t4.resultCode != o2.ErrorCode.REPEAT_MESSAGE) + setTimeout(function() { + r3.send(); + }, 30 * 1e3); + }; + r3.feedbackData = l2.create(t3, e3); + r3.actionMsgData.msgAction = u2.default.ClientAction.FEED_BACK; + r3.actionMsgData.msgData = JSON.stringify(r3.feedbackData); + return r3; + } + send() { + super.send(); + } + } + c2.ActionId = (n2 = class { + }, n2.RECEIVE = "0", n2.MP_RECEIVE = "210000", n2.WEB_RECEIVE = "220000", n2.BEGIN = "1", n2); + c2.RESULT = (s2 = class { + }, s2.OK = "ok", s2); + class l2 { + constructor() { + this.messageid = ""; + this.appkey = ""; + this.appid = ""; + this.taskid = ""; + this.actionid = ""; + this.result = ""; + this.timestamp = ""; + } + static create(t3, e3) { + let r3 = new l2(); + r3.messageid = t3.pushMessageData.messageid; + r3.appkey = t3.pushMessageData.appKey; + r3.appid = a2.default.appid; + r3.taskid = t3.pushMessageData.taskId; + r3.actionid = e3; + r3.result = c2.RESULT.OK; + r3.timestamp = (/* @__PURE__ */ new Date()).getTime().toString(); + return r3; + } + } + e22["default"] = c2; + }, 6362: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(661)); + class s2 extends n2.default { + static create() { + let t3 = new s2(); + super.initMsg(t3); + t3.command = n2.default.Command.HEART_BEAT; + return t3; + } + } + e22["default"] = s2; + }, 1386: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(6667)); + const s2 = i22(r22(6379)); + const a2 = i22(r22(661)); + class o2 extends a2.default { + constructor() { + super(...arguments); + this.keyNegotiateData = new u2(); + } + static create() { + let t3 = new o2(); + super.initMsg(t3); + t3.command = a2.default.Command.KEY_NEGOTIATE; + n2.default.resetKey(); + t3.data = t3.keyNegotiateData = u2.create(); + return t3; + } + send() { + super.send(); + } + } + class u2 { + constructor() { + this.appId = ""; + this.rsaPublicKeyId = ""; + this.algorithm = ""; + this.secretKey = ""; + this.iv = ""; + } + static create() { + let t3 = new u2(); + t3.appId = s2.default.appid; + t3.rsaPublicKeyId = s2.default.publicKeyId; + t3.algorithm = "AES"; + t3.secretKey = n2.default.getEncryptedSecretKey(); + t3.iv = n2.default.getEncryptedIV(); + return t3; + } + } + e22["default"] = o2; + }, 1280: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(661)); + const s2 = i22(r22(6667)); + const a2 = i22(r22(8858)); + const o2 = i22(r22(529)); + const u2 = i22(r22(6379)); + class c2 extends n2.default { + constructor() { + super(...arguments); + this.keyNegotiateResultData = new l2(); + } + static parse(t3) { + let e3 = new c2(); + super.parseMsg(e3, t3); + e3.keyNegotiateResultData = l2.parse(e3.data); + return e3; + } + receive() { + var t3, e3; + if (0 != this.keyNegotiateResultData.errorCode) { + o2.default.error(`key negotiate fail: ${this.data}`); + null === (t3 = u2.default.onError) || void 0 === t3 || t3.call(u2.default.onError, { error: `key negotiate fail: ${this.data}` }); + return; + } + let r3 = this.keyNegotiateResultData.encryptType.split("/"); + if (!s2.default.algorithmMap.has(r3[0].trim().toLowerCase()) || !s2.default.modeMap.has(r3[1].trim().toLowerCase()) || !s2.default.paddingMap.has(r3[2].trim().toLowerCase())) { + o2.default.error(`key negotiate fail: ${this.data}`); + null === (e3 = u2.default.onError) || void 0 === e3 || e3.call(u2.default.onError, { error: `key negotiate fail: ${this.data}` }); + return; + } + s2.default.setEncryptParams(r3[0].trim().toLowerCase(), r3[1].trim().toLowerCase(), r3[2].trim().toLowerCase()); + a2.default.create().send(); + } + } + class l2 { + constructor() { + this.errorCode = -1; + this.errorMsg = ""; + this.encryptType = ""; + } + static parse(t3) { + let e3 = new l2(); + let r3 = JSON.parse(t3); + e3.errorCode = r3.errorCode; + e3.errorMsg = r3.errorMsg; + e3.encryptType = r3.encryptType; + return e3; + } + } + e22["default"] = c2; + }, 8858: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(6379)); + const s2 = i22(r22(6667)); + const a2 = i22(r22(661)); + const o2 = i22(r22(4534)); + class u2 extends a2.default { + constructor() { + super(...arguments); + this.loginData = new c2(); + } + static create() { + let t3 = new u2(); + super.initMsg(t3); + t3.command = a2.default.Command.LOGIN; + t3.data = t3.loginData = c2.create(); + return t3; + } + send() { + if (!this.loginData.session || n2.default.cid != s2.default.md5Hex(this.loginData.session)) { + o2.default.create().send(); + return; + } + super.send(); + } + } + class c2 { + constructor() { + this.appId = ""; + this.session = ""; + } + static create() { + let t3 = new c2(); + t3.appId = n2.default.appid; + t3.session = n2.default.session; + return t3; + } + } + e22["default"] = u2; + }, 1606: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(8506)); + const s2 = i22(r22(661)); + const a2 = i22(r22(6379)); + const o2 = i22(r22(9586)); + const u2 = i22(r22(4516)); + const c2 = i22(r22(8858)); + class l2 extends s2.default { + constructor() { + super(...arguments); + this.loginResultData = new f2(); + } + static parse(t3) { + let e3 = new l2(); + super.parseMsg(e3, t3); + e3.loginResultData = f2.parse(e3.data); + return e3; + } + receive() { + var t3; + if (0 != this.loginResultData.errorCode) { + this.data; + a2.default.session = a2.default.cid = ""; + n2.default.setSync(n2.default.KEY_CID, ""); + n2.default.setSync(n2.default.KEY_SESSION, ""); + c2.default.create().send(); + return; + } + if (!a2.default.online) { + a2.default.online = true; + null === (t3 = a2.default.onlineState) || void 0 === t3 || t3.call(a2.default.onlineState, { online: a2.default.online }); + } + o2.default.sendWaitingMessages(); + u2.default.create().send(); + } + } + class f2 { + constructor() { + this.errorCode = -1; + this.errorMsg = ""; + this.session = ""; + } + static parse(t3) { + let e3 = new f2(); + let r3 = JSON.parse(t3); + e3.errorCode = r3.errorCode; + e3.errorMsg = r3.errorMsg; + e3.session = r3.session; + return e3; + } + } + e22["default"] = l2; + }, 661: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + var n2; + Object.defineProperty(e22, "__esModule", { value: true }); + const s2 = i22(r22(9593)); + const a2 = i22(r22(7002)); + const o2 = i22(r22(6893)); + const u2 = i22(r22(6379)); + class c2 { + constructor() { + this.version = ""; + this.command = 0; + this.packetId = 0; + this.timeStamp = 0; + this.data = ""; + this.signature = ""; + } + static initMsg(t3, ...e3) { + t3.version = o2.default.SOCKET_PROTOCOL_VERSION; + t3.command = 0; + t3.timeStamp = (/* @__PURE__ */ new Date()).getTime(); + return t3; + } + static parseMsg(t3, e3) { + let r3 = JSON.parse(e3); + t3.version = r3.version; + t3.command = r3.command; + t3.packetId = r3.packetId; + t3.timeStamp = r3.timeStamp; + t3.data = r3.data; + t3.signature = r3.signature; + return t3; + } + stringify() { + return JSON.stringify(this, ["version", "command", "packetId", "timeStamp", "data", "signature"]); + } + send() { + if (!a2.default.isAvailable()) + return; + this.packetId = u2.default.packetId++; + if (this.temp) + this.data = this.temp; + else + this.temp = this.data; + this.data = JSON.stringify(this.data); + this.stringify(); + if (this.command != c2.Command.HEART_BEAT) { + s2.default.sign(this); + if (this.data && this.command != c2.Command.KEY_NEGOTIATE) + s2.default.encrypt(this); + } + a2.default.send(this.stringify()); + } + } + c2.Command = (n2 = class { + }, n2.HEART_BEAT = 0, n2.KEY_NEGOTIATE = 1, n2.KEY_NEGOTIATE_RESULT = 16, n2.REGISTER = 2, n2.REGISTER_RESULT = 32, n2.LOGIN = 3, n2.LOGIN_RESULT = 48, n2.LOGOUT = 4, n2.LOGOUT_RESULT = 64, n2.CLIENT_MSG = 5, n2.SERVER_MSG = 80, n2.SERVER_CLOSE = 96, n2.REDIRECT_SERVER = 112, n2); + e22["default"] = c2; + }, 9593: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(6667)); + var s2; + (function(t3) { + function e3(t4) { + t4.data = n2.default.encrypt(t4.data); + } + t3.encrypt = e3; + function r3(t4) { + t4.data = n2.default.decrypt(t4.data); + } + t3.decrypt = r3; + function i3(t4) { + t4.signature = n2.default.sha256(`${t4.timeStamp}${t4.packetId}${t4.command}${t4.data}`); + } + t3.sign = i3; + function s22(t4) { + let e4 = n2.default.sha256(`${t4.timeStamp}${t4.packetId}${t4.command}${t4.data}`); + if (t4.signature != e4) + throw new Error(`msg signature vierfy failed`); + } + t3.verify = s22; + })(s2 || (s2 = {})); + e22["default"] = s2; + }, 4054: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(1280)); + const s2 = i22(r22(1606)); + const a2 = i22(r22(661)); + const o2 = i22(r22(1277)); + const u2 = i22(r22(910)); + const c2 = i22(r22(9538)); + const l2 = i22(r22(9479)); + const f2 = i22(r22(6755)); + const h2 = i22(r22(2918)); + const d2 = i22(r22(9586)); + const v2 = i22(r22(9510)); + const p2 = i22(r22(4626)); + const g2 = i22(r22(7562)); + const y2 = i22(r22(9593)); + const m2 = i22(r22(9586)); + const w2 = i22(r22(9519)); + const S2 = i22(r22(8947)); + class _2 { + static receiveMessage(t3) { + let e3 = a2.default.parseMsg(new a2.default(), t3); + if (e3.command == a2.default.Command.HEART_BEAT) + return; + if (e3.command != a2.default.Command.KEY_NEGOTIATE_RESULT && e3.command != a2.default.Command.SERVER_CLOSE && e3.command != a2.default.Command.REDIRECT_SERVER) + y2.default.decrypt(e3); + if (e3.command != a2.default.Command.SERVER_CLOSE && e3.command != a2.default.Command.REDIRECT_SERVER) + y2.default.verify(e3); + switch (e3.command) { + case a2.default.Command.KEY_NEGOTIATE_RESULT: + n2.default.parse(e3.stringify()).receive(); + break; + case a2.default.Command.REGISTER_RESULT: + o2.default.parse(e3.stringify()).receive(); + break; + case a2.default.Command.LOGIN_RESULT: + s2.default.parse(e3.stringify()).receive(); + break; + case a2.default.Command.SERVER_MSG: + this.receiveActionMsg(e3.stringify()); + break; + case a2.default.Command.SERVER_CLOSE: + S2.default.parse(e3.stringify()).receive(); + break; + case a2.default.Command.REDIRECT_SERVER: + h2.default.parse(e3.stringify()).receive(); + break; + } + } + static receiveActionMsg(t3) { + let e3 = m2.default.parseActionMsg(new m2.default(), t3); + if (e3.actionMsgData.msgAction != d2.default.ServerAction.RECEIVED && e3.actionMsgData.msgAction != d2.default.ServerAction.REDIRECT_SERVER) { + let t4 = JSON.parse(e3.actionMsgData.msgData); + w2.default.create(t4.id).send(); + } + switch (e3.actionMsgData.msgAction) { + case d2.default.ServerAction.PUSH_MESSAGE: + f2.default.parse(t3).receive(); + break; + case d2.default.ServerAction.ADD_PHONE_INFO_RESULT: + u2.default.parse(t3).receive(); + break; + case d2.default.ServerAction.SET_MODE_RESULT: + v2.default.parse(t3).receive(); + break; + case d2.default.ServerAction.SET_TAG_RESULT: + p2.default.parse(t3).receive(); + break; + case d2.default.ServerAction.BIND_ALIAS_RESULT: + c2.default.parse(t3).receive(); + break; + case d2.default.ServerAction.UNBIND_ALIAS_RESULT: + g2.default.parse(t3).receive(); + break; + case d2.default.ServerAction.FEED_BACK_RESULT: + l2.default.parse(t3).receive(); + break; + case d2.default.ServerAction.RECEIVED: + w2.default.parse(t3).receive(); + break; + } + } + } + e22["default"] = _2; + }, 9519: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = r22(4198); + const s2 = i22(r22(6379)); + const a2 = i22(r22(9586)); + class o2 extends a2.default { + constructor() { + super(...arguments); + this.receivedData = new u2(); + } + static create(t3) { + let e3 = new o2(); + super.initActionMsg(e3); + e3.callback = (t4) => { + if (t4.resultCode != n2.ErrorCode.SUCCESS && t4.resultCode != n2.ErrorCode.REPEAT_MESSAGE) + setTimeout(function() { + e3.send(); + }, 3 * 1e3); + }; + e3.actionMsgData.msgAction = a2.default.ClientAction.RECEIVED; + e3.receivedData = u2.create(t3); + e3.actionMsgData.msgData = JSON.stringify(e3.receivedData); + return e3; + } + static parse(t3) { + let e3 = new o2(); + super.parseActionMsg(e3, t3); + e3.receivedData = u2.parse(e3.data); + return e3; + } + receive() { + var t3; + let e3 = a2.default.getWaitingResponseMessage(this.actionMsgData.msgId); + if (e3 && e3.actionMsgData.msgAction == a2.default.ClientAction.ADD_PHONE_INFO || e3 && e3.actionMsgData.msgAction == a2.default.ClientAction.FEED_BACK) { + a2.default.removeWaitingResponseMessage(e3.actionMsgData.msgId); + null === (t3 = e3.callback) || void 0 === t3 || t3.call(e3.callback, { resultCode: n2.ErrorCode.SUCCESS, message: "received" }); + } + } + send() { + super.send(); + } + } + class u2 { + constructor() { + this.msgId = ""; + this.cid = ""; + } + static create(t3) { + let e3 = new u2(); + e3.cid = s2.default.cid; + e3.msgId = t3; + return e3; + } + static parse(t3) { + let e3 = new u2(); + let r3 = JSON.parse(t3); + e3.cid = r3.cid; + e3.msgId = r3.msgId; + return e3; + } + } + e22["default"] = o2; + }, 2918: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + e22.RedirectServerData = void 0; + const n2 = i22(r22(7002)); + const s2 = i22(r22(8506)); + const a2 = i22(r22(661)); + class o2 extends a2.default { + constructor() { + super(...arguments); + this.redirectServerData = new u2(); + } + static parse(t3) { + let e3 = new o2(); + super.parseMsg(e3, t3); + e3.redirectServerData = u2.parse(e3.data); + return e3; + } + receive() { + this.redirectServerData; + s2.default.setSync(s2.default.KEY_REDIRECT_SERVER, JSON.stringify(this.redirectServerData)); + n2.default.close("redirect server"); + n2.default.reconnect(this.redirectServerData.delay); + } + } + class u2 { + constructor() { + this.addressList = []; + this.delay = 0; + this.loc = ""; + this.conf = ""; + this.time = 0; + } + static parse(t3) { + let e3 = new u2(); + let r3 = JSON.parse(t3); + e3.addressList = r3.addressList; + e3.delay = r3.delay; + e3.loc = r3.loc; + e3.conf = r3.conf; + e3.time = r3.time ? r3.time : (/* @__PURE__ */ new Date()).getTime(); + return e3; + } + } + e22.RedirectServerData = u2; + e22["default"] = o2; + }, 4534: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(6379)); + const s2 = i22(r22(661)); + class a2 extends s2.default { + constructor() { + super(...arguments); + this.registerData = new o2(); + } + static create() { + let t3 = new a2(); + super.initMsg(t3); + t3.command = s2.default.Command.REGISTER; + t3.data = t3.registerData = o2.create(); + return t3; + } + send() { + super.send(); + } + } + class o2 { + constructor() { + this.appId = ""; + this.regId = ""; + } + static create() { + let t3 = new o2(); + t3.appId = n2.default.appid; + t3.regId = n2.default.regId; + return t3; + } + } + e22["default"] = a2; + }, 1277: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(661)); + const s2 = i22(r22(8506)); + const a2 = i22(r22(6379)); + const o2 = i22(r22(8858)); + const u2 = i22(r22(529)); + class c2 extends n2.default { + constructor() { + super(...arguments); + this.registerResultData = new l2(); + } + static parse(t3) { + let e3 = new c2(); + super.parseMsg(e3, t3); + e3.registerResultData = l2.parse(e3.data); + return e3; + } + receive() { + var t3, e3; + if (0 != this.registerResultData.errorCode || !this.registerResultData.cid || !this.registerResultData.session) { + u2.default.error(`register fail: ${this.data}`); + null === (t3 = a2.default.onError) || void 0 === t3 || t3.call(a2.default.onError, { error: `register fail: ${this.data}` }); + return; + } + if (a2.default.cid != this.registerResultData.cid) + s2.default.setSync(s2.default.KEY_ADD_PHONE_INFO_TIME, 0); + a2.default.cid = this.registerResultData.cid; + null === (e3 = a2.default.onClientId) || void 0 === e3 || e3.call(a2.default.onClientId, { cid: a2.default.cid }); + s2.default.set({ key: s2.default.KEY_CID, data: a2.default.cid }); + a2.default.session = this.registerResultData.session; + s2.default.set({ key: s2.default.KEY_SESSION, data: a2.default.session }); + a2.default.deviceId = this.registerResultData.deviceId; + s2.default.set({ key: s2.default.KEY_DEVICE_ID, data: a2.default.deviceId }); + o2.default.create().send(); + } + } + class l2 { + constructor() { + this.errorCode = -1; + this.errorMsg = ""; + this.cid = ""; + this.session = ""; + this.deviceId = ""; + this.regId = ""; + } + static parse(t3) { + let e3 = new l2(); + let r3 = JSON.parse(t3); + e3.errorCode = r3.errorCode; + e3.errorMsg = r3.errorMsg; + e3.cid = r3.cid; + e3.session = r3.session; + e3.deviceId = r3.deviceId; + e3.regId = r3.regId; + return e3; + } + } + e22["default"] = c2; + }, 8947: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(7002)); + const s2 = i22(r22(529)); + const a2 = i22(r22(661)); + class o2 extends a2.default { + constructor() { + super(...arguments); + this.serverCloseData = new u2(); + } + static parse(t3) { + let e3 = new o2(); + super.parseMsg(e3, t3); + e3.serverCloseData = u2.parse(e3.data); + return e3; + } + receive() { + JSON.stringify(this.serverCloseData); + let t3 = `server close ${this.serverCloseData.code}`; + if (20 == this.serverCloseData.code || 23 == this.serverCloseData.code || 24 == this.serverCloseData.code) { + n2.default.allowReconnect = false; + n2.default.close(t3); + } else if (21 == this.serverCloseData.code) + this.safeClose21(t3); + else { + n2.default.allowReconnect = true; + n2.default.close(t3); + n2.default.reconnect(10); + } + } + safeClose21(t3) { + try { + if ("undefined" != typeof document) { + if (document.hasFocus() && "visible" == document.visibilityState) { + n2.default.allowReconnect = true; + n2.default.close(t3); + n2.default.reconnect(10); + return; + } + } + n2.default.allowReconnect = false; + n2.default.close(t3); + } catch (e3) { + s2.default.error(`ServerClose t1`, e3); + n2.default.allowReconnect = false; + n2.default.close(`${t3} error`); + } + } + } + class u2 { + constructor() { + this.code = -1; + this.msg = ""; + } + static parse(t3) { + let e3 = new u2(); + let r3 = JSON.parse(t3); + e3.code = r3.code; + e3.msg = r3.msg; + return e3; + } + } + e22["default"] = o2; + }, 910: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(8506)); + const s2 = i22(r22(9586)); + class a2 extends s2.default { + constructor() { + super(...arguments); + this.addPhoneInfoResultData = new o2(); + } + static parse(t3) { + let e3 = new a2(); + super.parseActionMsg(e3, t3); + e3.addPhoneInfoResultData = o2.parse(e3.actionMsgData.msgData); + return e3; + } + receive() { + var t3; + this.addPhoneInfoResultData; + let e3 = s2.default.removeWaitingResponseMessage(this.actionMsgData.msgId); + if (e3) + null === (t3 = e3.callback) || void 0 === t3 || t3.call(e3.callback, { resultCode: this.addPhoneInfoResultData.errorCode, message: this.addPhoneInfoResultData.errorMsg }); + n2.default.set({ key: n2.default.KEY_ADD_PHONE_INFO_TIME, data: (/* @__PURE__ */ new Date()).getTime() }); + } + } + class o2 { + constructor() { + this.errorCode = -1; + this.errorMsg = ""; + } + static parse(t3) { + let e3 = new o2(); + let r3 = JSON.parse(t3); + e3.errorCode = r3.errorCode; + e3.errorMsg = r3.errorMsg; + return e3; + } + } + e22["default"] = a2; + }, 9538: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(8506)); + const s2 = i22(r22(529)); + const a2 = i22(r22(9586)); + class o2 extends a2.default { + constructor() { + super(...arguments); + this.bindAliasResultData = new u2(); + } + static parse(t3) { + let e3 = new o2(); + super.parseActionMsg(e3, t3); + e3.bindAliasResultData = u2.parse(e3.actionMsgData.msgData); + return e3; + } + receive() { + var t3; + s2.default.info(`bind alias result`, this.bindAliasResultData); + let e3 = a2.default.removeWaitingResponseMessage(this.actionMsgData.msgId); + if (e3) + null === (t3 = e3.callback) || void 0 === t3 || t3.call(e3.callback, { resultCode: this.bindAliasResultData.errorCode, message: this.bindAliasResultData.errorMsg }); + n2.default.set({ key: n2.default.KEY_BIND_ALIAS_TIME, data: (/* @__PURE__ */ new Date()).getTime() }); + } + } + class u2 { + constructor() { + this.errorCode = -1; + this.errorMsg = ""; + } + static parse(t3) { + let e3 = new u2(); + let r3 = JSON.parse(t3); + e3.errorCode = r3.errorCode; + e3.errorMsg = r3.errorMsg; + return e3; + } + } + e22["default"] = o2; + }, 9479: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = r22(4198); + const s2 = i22(r22(9586)); + class a2 extends s2.default { + constructor() { + super(...arguments); + this.feedbackResultData = new o2(); + } + static parse(t3) { + let e3 = new a2(); + super.parseActionMsg(e3, t3); + e3.feedbackResultData = o2.parse(e3.actionMsgData.msgData); + return e3; + } + receive() { + var t3; + this.feedbackResultData; + let e3 = s2.default.removeWaitingResponseMessage(this.actionMsgData.msgId); + if (e3) + null === (t3 = e3.callback) || void 0 === t3 || t3.call(e3.callback, { resultCode: n2.ErrorCode.SUCCESS, message: "received" }); + } + } + class o2 { + constructor() { + this.actionId = ""; + this.taskId = ""; + this.result = ""; + } + static parse(t3) { + let e3 = new o2(); + let r3 = JSON.parse(t3); + e3.actionId = r3.actionId; + e3.taskId = r3.taskId; + e3.result = r3.result; + return e3; + } + } + e22["default"] = a2; + }, 6755: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + var n2; + Object.defineProperty(e22, "__esModule", { value: true }); + const s2 = i22(r22(6379)); + const a2 = i22(r22(9586)); + const o2 = i22(r22(8723)); + class u2 extends a2.default { + constructor() { + super(...arguments); + this.pushMessageData = new c2(); + } + static parse(t3) { + let e3 = new u2(); + super.parseActionMsg(e3, t3); + e3.pushMessageData = c2.parse(e3.actionMsgData.msgData); + return e3; + } + receive() { + var t3; + this.pushMessageData; + if (this.pushMessageData.appId != s2.default.appid || !this.pushMessageData.messageid || !this.pushMessageData.taskId) + this.stringify(); + o2.default.create(this, o2.default.ActionId.RECEIVE).send(); + o2.default.create(this, o2.default.ActionId.MP_RECEIVE).send(); + if (this.actionMsgData.msgExtraData && s2.default.onPushMsg) + null === (t3 = s2.default.onPushMsg) || void 0 === t3 || t3.call(s2.default.onPushMsg, { message: this.actionMsgData.msgExtraData }); + } + } + class c2 { + constructor() { + this.id = ""; + this.appKey = ""; + this.appId = ""; + this.messageid = ""; + this.taskId = ""; + this.actionChain = []; + this.cdnType = ""; + } + static parse(t3) { + let e3 = new c2(); + let r3 = JSON.parse(t3); + e3.id = r3.id; + e3.appKey = r3.appKey; + e3.appId = r3.appId; + e3.messageid = r3.messageid; + e3.taskId = r3.taskId; + e3.actionChain = r3.actionChain; + e3.cdnType = r3.cdnType; + return e3; + } + } + n2 = class { + }, n2.GO_TO = "goto", n2.TRANSMIT = "transmit"; + e22["default"] = u2; + }, 9510: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(9586)); + class s2 extends n2.default { + constructor() { + super(...arguments); + this.setModeResultData = new a2(); + } + static parse(t3) { + let e3 = new s2(); + super.parseActionMsg(e3, t3); + e3.setModeResultData = a2.parse(e3.actionMsgData.msgData); + return e3; + } + receive() { + var t3; + this.setModeResultData; + let e3 = n2.default.removeWaitingResponseMessage(this.actionMsgData.msgId); + if (e3) + null === (t3 = e3.callback) || void 0 === t3 || t3.call(e3.callback, { resultCode: this.setModeResultData.errorCode, message: this.setModeResultData.errorMsg }); + } + } + class a2 { + constructor() { + this.errorCode = -1; + this.errorMsg = ""; + } + static parse(t3) { + let e3 = new a2(); + let r3 = JSON.parse(t3); + e3.errorCode = r3.errorCode; + e3.errorMsg = r3.errorMsg; + return e3; + } + } + e22["default"] = s2; + }, 4626: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(8506)); + const s2 = i22(r22(529)); + const a2 = i22(r22(9586)); + class o2 extends a2.default { + constructor() { + super(...arguments); + this.setTagResultData = new u2(); + } + static parse(t3) { + let e3 = new o2(); + super.parseActionMsg(e3, t3); + e3.setTagResultData = u2.parse(e3.actionMsgData.msgData); + return e3; + } + receive() { + var t3; + s2.default.info(`set tag result`, this.setTagResultData); + let e3 = a2.default.removeWaitingResponseMessage(this.actionMsgData.msgId); + if (e3) + null === (t3 = e3.callback) || void 0 === t3 || t3.call(e3.callback, { resultCode: this.setTagResultData.errorCode, message: this.setTagResultData.errorMsg }); + n2.default.set({ key: n2.default.KEY_SET_TAG_TIME, data: (/* @__PURE__ */ new Date()).getTime() }); + } + } + class u2 { + constructor() { + this.errorCode = 0; + this.errorMsg = ""; + } + static parse(t3) { + let e3 = new u2(); + let r3 = JSON.parse(t3); + e3.errorCode = r3.errorCode; + e3.errorMsg = r3.errorMsg; + return e3; + } + } + e22["default"] = o2; + }, 7562: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(8506)); + const s2 = i22(r22(529)); + const a2 = i22(r22(9586)); + class o2 extends a2.default { + constructor() { + super(...arguments); + this.unbindAliasResultData = new u2(); + } + static parse(t3) { + let e3 = new o2(); + super.parseActionMsg(e3, t3); + e3.unbindAliasResultData = u2.parse(e3.actionMsgData.msgData); + return e3; + } + receive() { + var t3; + s2.default.info(`unbind alias result`, this.unbindAliasResultData); + let e3 = a2.default.removeWaitingResponseMessage(this.actionMsgData.msgId); + if (e3) + null === (t3 = e3.callback) || void 0 === t3 || t3.call(e3.callback, { resultCode: this.unbindAliasResultData.errorCode, message: this.unbindAliasResultData.errorMsg }); + n2.default.set({ key: n2.default.KEY_BIND_ALIAS_TIME, data: (/* @__PURE__ */ new Date()).getTime() }); + } + } + class u2 { + constructor() { + this.errorCode = -1; + this.errorMsg = ""; + } + static parse(t3) { + let e3 = new u2(); + let r3 = JSON.parse(t3); + e3.errorCode = r3.errorCode; + e3.errorMsg = r3.errorMsg; + return e3; + } + } + e22["default"] = o2; + }, 8227: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + constructor(t3) { + this.delay = 10; + this.delay = t3; + } + start() { + this.cancel(); + let t3 = this; + this.timer = setInterval(function() { + t3.run(); + }, this.delay); + } + cancel() { + if (this.timer) + clearInterval(this.timer); + } + } + e22["default"] = r22; + }, 7167: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + var n2; + Object.defineProperty(e22, "__esModule", { value: true }); + const s2 = i22(r22(6362)); + const a2 = i22(r22(8227)); + class o2 extends a2.default { + static getInstance() { + return o2.InstanceHolder.instance; + } + run() { + s2.default.create().send(); + } + refresh() { + this.delay = 60 * 1e3; + this.start(); + } + } + o2.INTERVAL = 60 * 1e3; + o2.InstanceHolder = (n2 = class { + }, n2.instance = new o2(o2.INTERVAL), n2); + e22["default"] = o2; + }, 2323: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(4736)); + const s2 = i22(r22(6667)); + var a2; + (function(t3) { + let e3 = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; + let r3 = (0, n2.default)("9223372036854775808"); + function i3(t4) { + let e4 = a22(t4); + let r4 = o2(e4); + let i4 = r4[1]; + let n22 = r4[0]; + return u2(i4) + u2(n22); + } + t3.to_getui = i3; + function a22(t4) { + let e4 = s2.default.md5Hex(t4); + let r4 = c2(e4); + r4[6] &= 15; + r4[6] |= 48; + r4[8] &= 63; + r4[8] |= 128; + return r4; + } + function o2(t4) { + let e4 = (0, n2.default)(0); + let r4 = (0, n2.default)(0); + for (let r5 = 0; r5 < 8; r5++) + e4 = e4.multiply(256).plus((0, n2.default)(255 & t4[r5])); + for (let e5 = 8; e5 < 16; e5++) + r4 = r4.multiply(256).plus((0, n2.default)(255 & t4[e5])); + return [e4, r4]; + } + function u2(t4) { + if (t4 >= r3) + t4 = r3.multiply(2).minus(t4); + let i4 = ""; + for (; t4 > (0, n2.default)(0); t4 = t4.divide(62)) + i4 += e3.charAt(Number(t4.divmod(62).remainder)); + return i4; + } + function c2(t4) { + let e4 = t4.length; + if (e4 % 2 != 0) + return []; + let r4 = new Array(); + for (let i4 = 0; i4 < e4; i4 += 2) + r4.push(parseInt(t4.substring(i4, i4 + 2), 16)); + return r4; + } + })(a2 || (a2 = {})); + e22["default"] = a2; + }, 6667: function(t22, e22, r22) { + var i22 = this && this.__importDefault || function(t3) { + return t3 && t3.__esModule ? t3 : { default: t3 }; + }; + Object.defineProperty(e22, "__esModule", { value: true }); + const n2 = i22(r22(2620)); + const s2 = i22(r22(1354)); + const a2 = i22(r22(6379)); + var o2; + (function(t3) { + let e3; + let r3; + let i3; + let o22; + let u2 = new n2.default(); + let c2 = s2.default.mode.CBC; + let l2 = s2.default.pad.Pkcs7; + let f2 = s2.default.AES; + t3.algorithmMap = /* @__PURE__ */ new Map([["aes", s2.default.AES]]); + t3.modeMap = /* @__PURE__ */ new Map([["cbc", s2.default.mode.CBC], ["cfb", s2.default.mode.CFB], ["cfb128", s2.default.mode.CFB], ["ecb", s2.default.mode.ECB], ["ofb", s2.default.mode.OFB]]); + t3.paddingMap = /* @__PURE__ */ new Map([["nopadding", s2.default.pad.NoPadding], ["pkcs7", s2.default.pad.Pkcs7]]); + function h2() { + e3 = s2.default.MD5((/* @__PURE__ */ new Date()).getTime().toString()); + r3 = s2.default.MD5(e3); + u2.setPublicKey(a2.default.publicKey); + e3.toString(s2.default.enc.Hex); + r3.toString(s2.default.enc.Hex); + i3 = u2.encrypt(e3.toString(s2.default.enc.Hex)); + o22 = u2.encrypt(r3.toString(s2.default.enc.Hex)); + } + t3.resetKey = h2; + function d2(e4, r4, i4) { + f2 = t3.algorithmMap.get(e4); + c2 = t3.modeMap.get(r4); + l2 = t3.paddingMap.get(i4); + } + t3.setEncryptParams = d2; + function v2(t4) { + return f2.encrypt(t4, e3, { iv: r3, mode: c2, padding: l2 }).toString(); + } + t3.encrypt = v2; + function p2(t4) { + return f2.decrypt(t4, e3, { iv: r3, mode: c2, padding: l2 }).toString(s2.default.enc.Utf8); + } + t3.decrypt = p2; + function g2(t4) { + return s2.default.SHA256(t4).toString(s2.default.enc.Base64); + } + t3.sha256 = g2; + function y2(t4) { + return s2.default.MD5(t4).toString(s2.default.enc.Hex); + } + t3.md5Hex = y2; + function m2() { + return i3 ? i3 : ""; + } + t3.getEncryptedSecretKey = m2; + function w2() { + return o22 ? o22 : ""; + } + t3.getEncryptedIV = w2; + })(o2 || (o2 = {})); + e22["default"] = o2; + }, 529: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + static info(...t3) { + if (this.debugMode) + console.info(`[GtPush]`, t3); + } + static warn(...t3) { + console.warn(`[GtPush]`, t3); + } + static error(...t3) { + console.error(`[GtPush]`, t3); + } + } + r22.debugMode = false; + e22["default"] = r22; + }, 3854: (t22, e22) => { + Object.defineProperty(e22, "__esModule", { value: true }); + class r22 { + static getStr(t3, e3) { + try { + if (!t3 || void 0 === t3[e3]) + return ""; + return t3[e3]; + } catch (t4) { + } + return ""; + } + } + e22["default"] = r22; + }, 2620: (t22, e22, r22) => { + r22.r(e22); + r22.d(e22, { JSEncrypt: () => wt2, default: () => St2 }); + var i22 = "0123456789abcdefghijklmnopqrstuvwxyz"; + function n2(t3) { + return i22.charAt(t3); + } + function s2(t3, e3) { + return t3 & e3; + } + function a2(t3, e3) { + return t3 | e3; + } + function o2(t3, e3) { + return t3 ^ e3; + } + function u2(t3, e3) { + return t3 & ~e3; + } + function c2(t3) { + if (0 == t3) + return -1; + var e3 = 0; + if (0 == (65535 & t3)) { + t3 >>= 16; + e3 += 16; + } + if (0 == (255 & t3)) { + t3 >>= 8; + e3 += 8; + } + if (0 == (15 & t3)) { + t3 >>= 4; + e3 += 4; + } + if (0 == (3 & t3)) { + t3 >>= 2; + e3 += 2; + } + if (0 == (1 & t3)) + ++e3; + return e3; + } + function l2(t3) { + var e3 = 0; + while (0 != t3) { + t3 &= t3 - 1; + ++e3; + } + return e3; + } + var f2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + var h2 = "="; + function d2(t3) { + var e3; + var r3; + var i3 = ""; + for (e3 = 0; e3 + 3 <= t3.length; e3 += 3) { + r3 = parseInt(t3.substring(e3, e3 + 3), 16); + i3 += f2.charAt(r3 >> 6) + f2.charAt(63 & r3); + } + if (e3 + 1 == t3.length) { + r3 = parseInt(t3.substring(e3, e3 + 1), 16); + i3 += f2.charAt(r3 << 2); + } else if (e3 + 2 == t3.length) { + r3 = parseInt(t3.substring(e3, e3 + 2), 16); + i3 += f2.charAt(r3 >> 2) + f2.charAt((3 & r3) << 4); + } + while ((3 & i3.length) > 0) + i3 += h2; + return i3; + } + function v2(t3) { + var e3 = ""; + var r3; + var i3 = 0; + var s22 = 0; + for (r3 = 0; r3 < t3.length; ++r3) { + if (t3.charAt(r3) == h2) + break; + var a22 = f2.indexOf(t3.charAt(r3)); + if (a22 < 0) + continue; + if (0 == i3) { + e3 += n2(a22 >> 2); + s22 = 3 & a22; + i3 = 1; + } else if (1 == i3) { + e3 += n2(s22 << 2 | a22 >> 4); + s22 = 15 & a22; + i3 = 2; + } else if (2 == i3) { + e3 += n2(s22); + e3 += n2(a22 >> 2); + s22 = 3 & a22; + i3 = 3; + } else { + e3 += n2(s22 << 2 | a22 >> 4); + e3 += n2(15 & a22); + i3 = 0; + } + } + if (1 == i3) + e3 += n2(s22 << 2); + return e3; + } + var g2; + var y2 = { decode: function(t3) { + var e3; + if (void 0 === g2) { + var r3 = "0123456789ABCDEF"; + var i3 = " \f\n\r  \u2028\u2029"; + g2 = {}; + for (e3 = 0; e3 < 16; ++e3) + g2[r3.charAt(e3)] = e3; + r3 = r3.toLowerCase(); + for (e3 = 10; e3 < 16; ++e3) + g2[r3.charAt(e3)] = e3; + for (e3 = 0; e3 < i3.length; ++e3) + g2[i3.charAt(e3)] = -1; + } + var n22 = []; + var s22 = 0; + var a22 = 0; + for (e3 = 0; e3 < t3.length; ++e3) { + var o22 = t3.charAt(e3); + if ("=" == o22) + break; + o22 = g2[o22]; + if (-1 == o22) + continue; + if (void 0 === o22) + throw new Error("Illegal character at offset " + e3); + s22 |= o22; + if (++a22 >= 2) { + n22[n22.length] = s22; + s22 = 0; + a22 = 0; + } else + s22 <<= 4; + } + if (a22) + throw new Error("Hex encoding incomplete: 4 bits missing"); + return n22; + } }; + var m2; + var w2 = { decode: function(t3) { + var e3; + if (void 0 === m2) { + var r3 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; + var i3 = "= \f\n\r  \u2028\u2029"; + m2 = /* @__PURE__ */ Object.create(null); + for (e3 = 0; e3 < 64; ++e3) + m2[r3.charAt(e3)] = e3; + m2["-"] = 62; + m2["_"] = 63; + for (e3 = 0; e3 < i3.length; ++e3) + m2[i3.charAt(e3)] = -1; + } + var n22 = []; + var s22 = 0; + var a22 = 0; + for (e3 = 0; e3 < t3.length; ++e3) { + var o22 = t3.charAt(e3); + if ("=" == o22) + break; + o22 = m2[o22]; + if (-1 == o22) + continue; + if (void 0 === o22) + throw new Error("Illegal character at offset " + e3); + s22 |= o22; + if (++a22 >= 4) { + n22[n22.length] = s22 >> 16; + n22[n22.length] = s22 >> 8 & 255; + n22[n22.length] = 255 & s22; + s22 = 0; + a22 = 0; + } else + s22 <<= 6; + } + switch (a22) { + case 1: + throw new Error("Base64 encoding incomplete: at least 2 bits missing"); + case 2: + n22[n22.length] = s22 >> 10; + break; + case 3: + n22[n22.length] = s22 >> 16; + n22[n22.length] = s22 >> 8 & 255; + break; + } + return n22; + }, re: /-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/, unarmor: function(t3) { + var e3 = w2.re.exec(t3); + if (e3) + if (e3[1]) + t3 = e3[1]; + else if (e3[2]) + t3 = e3[2]; + else + throw new Error("RegExp out of sync"); + return w2.decode(t3); + } }; + var S2 = 1e13; + var _2 = function() { + function t3(t4) { + this.buf = [+t4 || 0]; + } + t3.prototype.mulAdd = function(t4, e3) { + var r3 = this.buf; + var i3 = r3.length; + var n22; + var s22; + for (n22 = 0; n22 < i3; ++n22) { + s22 = r3[n22] * t4 + e3; + if (s22 < S2) + e3 = 0; + else { + e3 = 0 | s22 / S2; + s22 -= e3 * S2; + } + r3[n22] = s22; + } + if (e3 > 0) + r3[n22] = e3; + }; + t3.prototype.sub = function(t4) { + var e3 = this.buf; + var r3 = e3.length; + var i3; + var n22; + for (i3 = 0; i3 < r3; ++i3) { + n22 = e3[i3] - t4; + if (n22 < 0) { + n22 += S2; + t4 = 1; + } else + t4 = 0; + e3[i3] = n22; + } + while (0 === e3[e3.length - 1]) + e3.pop(); + }; + t3.prototype.toString = function(t4) { + if (10 != (t4 || 10)) + throw new Error("only base 10 is supported"); + var e3 = this.buf; + var r3 = e3[e3.length - 1].toString(); + for (var i3 = e3.length - 2; i3 >= 0; --i3) + r3 += (S2 + e3[i3]).toString().substring(1); + return r3; + }; + t3.prototype.valueOf = function() { + var t4 = this.buf; + var e3 = 0; + for (var r3 = t4.length - 1; r3 >= 0; --r3) + e3 = e3 * S2 + t4[r3]; + return e3; + }; + t3.prototype.simplify = function() { + var t4 = this.buf; + return 1 == t4.length ? t4[0] : this; + }; + return t3; + }(); + var b2 = "…"; + var E2 = /^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/; + var D2 = /^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/; + function M2(t3, e3) { + if (t3.length > e3) + t3 = t3.substring(0, e3) + b2; + return t3; + } + var T2 = function() { + function t3(e3, r3) { + this.hexDigits = "0123456789ABCDEF"; + if (e3 instanceof t3) { + this.enc = e3.enc; + this.pos = e3.pos; + } else { + this.enc = e3; + this.pos = r3; + } + } + t3.prototype.get = function(t4) { + if (void 0 === t4) + t4 = this.pos++; + if (t4 >= this.enc.length) + throw new Error("Requesting byte offset " + t4 + " on a stream of length " + this.enc.length); + return "string" === typeof this.enc ? this.enc.charCodeAt(t4) : this.enc[t4]; + }; + t3.prototype.hexByte = function(t4) { + return this.hexDigits.charAt(t4 >> 4 & 15) + this.hexDigits.charAt(15 & t4); + }; + t3.prototype.hexDump = function(t4, e3, r3) { + var i3 = ""; + for (var n22 = t4; n22 < e3; ++n22) { + i3 += this.hexByte(this.get(n22)); + if (true !== r3) + switch (15 & n22) { + case 7: + i3 += " "; + break; + case 15: + i3 += "\n"; + break; + default: + i3 += " "; + } + } + return i3; + }; + t3.prototype.isASCII = function(t4, e3) { + for (var r3 = t4; r3 < e3; ++r3) { + var i3 = this.get(r3); + if (i3 < 32 || i3 > 176) + return false; + } + return true; + }; + t3.prototype.parseStringISO = function(t4, e3) { + var r3 = ""; + for (var i3 = t4; i3 < e3; ++i3) + r3 += String.fromCharCode(this.get(i3)); + return r3; + }; + t3.prototype.parseStringUTF = function(t4, e3) { + var r3 = ""; + for (var i3 = t4; i3 < e3; ) { + var n22 = this.get(i3++); + if (n22 < 128) + r3 += String.fromCharCode(n22); + else if (n22 > 191 && n22 < 224) + r3 += String.fromCharCode((31 & n22) << 6 | 63 & this.get(i3++)); + else + r3 += String.fromCharCode((15 & n22) << 12 | (63 & this.get(i3++)) << 6 | 63 & this.get(i3++)); + } + return r3; + }; + t3.prototype.parseStringBMP = function(t4, e3) { + var r3 = ""; + var i3; + var n22; + for (var s22 = t4; s22 < e3; ) { + i3 = this.get(s22++); + n22 = this.get(s22++); + r3 += String.fromCharCode(i3 << 8 | n22); + } + return r3; + }; + t3.prototype.parseTime = function(t4, e3, r3) { + var i3 = this.parseStringISO(t4, e3); + var n22 = (r3 ? E2 : D2).exec(i3); + if (!n22) + return "Unrecognized time: " + i3; + if (r3) { + n22[1] = +n22[1]; + n22[1] += +n22[1] < 70 ? 2e3 : 1900; + } + i3 = n22[1] + "-" + n22[2] + "-" + n22[3] + " " + n22[4]; + if (n22[5]) { + i3 += ":" + n22[5]; + if (n22[6]) { + i3 += ":" + n22[6]; + if (n22[7]) + i3 += "." + n22[7]; + } + } + if (n22[8]) { + i3 += " UTC"; + if ("Z" != n22[8]) { + i3 += n22[8]; + if (n22[9]) + i3 += ":" + n22[9]; + } + } + return i3; + }; + t3.prototype.parseInteger = function(t4, e3) { + var r3 = this.get(t4); + var i3 = r3 > 127; + var n22 = i3 ? 255 : 0; + var s22; + var a22 = ""; + while (r3 == n22 && ++t4 < e3) + r3 = this.get(t4); + s22 = e3 - t4; + if (0 === s22) + return i3 ? -1 : 0; + if (s22 > 4) { + a22 = r3; + s22 <<= 3; + while (0 == (128 & (+a22 ^ n22))) { + a22 = +a22 << 1; + --s22; + } + a22 = "(" + s22 + " bit)\n"; + } + if (i3) + r3 -= 256; + var o22 = new _2(r3); + for (var u22 = t4 + 1; u22 < e3; ++u22) + o22.mulAdd(256, this.get(u22)); + return a22 + o22.toString(); + }; + t3.prototype.parseBitString = function(t4, e3, r3) { + var i3 = this.get(t4); + var n22 = (e3 - t4 - 1 << 3) - i3; + var s22 = "(" + n22 + " bit)\n"; + var a22 = ""; + for (var o22 = t4 + 1; o22 < e3; ++o22) { + var u22 = this.get(o22); + var c22 = o22 == e3 - 1 ? i3 : 0; + for (var l22 = 7; l22 >= c22; --l22) + a22 += u22 >> l22 & 1 ? "1" : "0"; + if (a22.length > r3) + return s22 + M2(a22, r3); + } + return s22 + a22; + }; + t3.prototype.parseOctetString = function(t4, e3, r3) { + if (this.isASCII(t4, e3)) + return M2(this.parseStringISO(t4, e3), r3); + var i3 = e3 - t4; + var n22 = "(" + i3 + " byte)\n"; + r3 /= 2; + if (i3 > r3) + e3 = t4 + r3; + for (var s22 = t4; s22 < e3; ++s22) + n22 += this.hexByte(this.get(s22)); + if (i3 > r3) + n22 += b2; + return n22; + }; + t3.prototype.parseOID = function(t4, e3, r3) { + var i3 = ""; + var n22 = new _2(); + var s22 = 0; + for (var a22 = t4; a22 < e3; ++a22) { + var o22 = this.get(a22); + n22.mulAdd(128, 127 & o22); + s22 += 7; + if (!(128 & o22)) { + if ("" === i3) { + n22 = n22.simplify(); + if (n22 instanceof _2) { + n22.sub(80); + i3 = "2." + n22.toString(); + } else { + var u22 = n22 < 80 ? n22 < 40 ? 0 : 1 : 2; + i3 = u22 + "." + (n22 - 40 * u22); + } + } else + i3 += "." + n22.toString(); + if (i3.length > r3) + return M2(i3, r3); + n22 = new _2(); + s22 = 0; + } + } + if (s22 > 0) + i3 += ".incomplete"; + return i3; + }; + return t3; + }(); + var I2 = function() { + function t3(t4, e3, r3, i3, n22) { + if (!(i3 instanceof A2)) + throw new Error("Invalid tag value."); + this.stream = t4; + this.header = e3; + this.length = r3; + this.tag = i3; + this.sub = n22; + } + t3.prototype.typeName = function() { + switch (this.tag.tagClass) { + case 0: + switch (this.tag.tagNumber) { + case 0: + return "EOC"; + case 1: + return "BOOLEAN"; + case 2: + return "INTEGER"; + case 3: + return "BIT_STRING"; + case 4: + return "OCTET_STRING"; + case 5: + return "NULL"; + case 6: + return "OBJECT_IDENTIFIER"; + case 7: + return "ObjectDescriptor"; + case 8: + return "EXTERNAL"; + case 9: + return "REAL"; + case 10: + return "ENUMERATED"; + case 11: + return "EMBEDDED_PDV"; + case 12: + return "UTF8String"; + case 16: + return "SEQUENCE"; + case 17: + return "SET"; + case 18: + return "NumericString"; + case 19: + return "PrintableString"; + case 20: + return "TeletexString"; + case 21: + return "VideotexString"; + case 22: + return "IA5String"; + case 23: + return "UTCTime"; + case 24: + return "GeneralizedTime"; + case 25: + return "GraphicString"; + case 26: + return "VisibleString"; + case 27: + return "GeneralString"; + case 28: + return "UniversalString"; + case 30: + return "BMPString"; + } + return "Universal_" + this.tag.tagNumber.toString(); + case 1: + return "Application_" + this.tag.tagNumber.toString(); + case 2: + return "[" + this.tag.tagNumber.toString() + "]"; + case 3: + return "Private_" + this.tag.tagNumber.toString(); + } + }; + t3.prototype.content = function(t4) { + if (void 0 === this.tag) + return null; + if (void 0 === t4) + t4 = 1 / 0; + var e3 = this.posContent(); + var r3 = Math.abs(this.length); + if (!this.tag.isUniversal()) { + if (null !== this.sub) + return "(" + this.sub.length + " elem)"; + return this.stream.parseOctetString(e3, e3 + r3, t4); + } + switch (this.tag.tagNumber) { + case 1: + return 0 === this.stream.get(e3) ? "false" : "true"; + case 2: + return this.stream.parseInteger(e3, e3 + r3); + case 3: + return this.sub ? "(" + this.sub.length + " elem)" : this.stream.parseBitString(e3, e3 + r3, t4); + case 4: + return this.sub ? "(" + this.sub.length + " elem)" : this.stream.parseOctetString(e3, e3 + r3, t4); + case 6: + return this.stream.parseOID(e3, e3 + r3, t4); + case 16: + case 17: + if (null !== this.sub) + return "(" + this.sub.length + " elem)"; + else + return "(no elem)"; + case 12: + return M2(this.stream.parseStringUTF(e3, e3 + r3), t4); + case 18: + case 19: + case 20: + case 21: + case 22: + case 26: + return M2(this.stream.parseStringISO(e3, e3 + r3), t4); + case 30: + return M2(this.stream.parseStringBMP(e3, e3 + r3), t4); + case 23: + case 24: + return this.stream.parseTime(e3, e3 + r3, 23 == this.tag.tagNumber); + } + return null; + }; + t3.prototype.toString = function() { + return this.typeName() + "@" + this.stream.pos + "[header:" + this.header + ",length:" + this.length + ",sub:" + (null === this.sub ? "null" : this.sub.length) + "]"; + }; + t3.prototype.toPrettyString = function(t4) { + if (void 0 === t4) + t4 = ""; + var e3 = t4 + this.typeName() + " @" + this.stream.pos; + if (this.length >= 0) + e3 += "+"; + e3 += this.length; + if (this.tag.tagConstructed) + e3 += " (constructed)"; + else if (this.tag.isUniversal() && (3 == this.tag.tagNumber || 4 == this.tag.tagNumber) && null !== this.sub) + e3 += " (encapsulates)"; + e3 += "\n"; + if (null !== this.sub) { + t4 += " "; + for (var r3 = 0, i3 = this.sub.length; r3 < i3; ++r3) + e3 += this.sub[r3].toPrettyString(t4); + } + return e3; + }; + t3.prototype.posStart = function() { + return this.stream.pos; + }; + t3.prototype.posContent = function() { + return this.stream.pos + this.header; + }; + t3.prototype.posEnd = function() { + return this.stream.pos + this.header + Math.abs(this.length); + }; + t3.prototype.toHexString = function() { + return this.stream.hexDump(this.posStart(), this.posEnd(), true); + }; + t3.decodeLength = function(t4) { + var e3 = t4.get(); + var r3 = 127 & e3; + if (r3 == e3) + return r3; + if (r3 > 6) + throw new Error("Length over 48 bits not supported at position " + (t4.pos - 1)); + if (0 === r3) + return null; + e3 = 0; + for (var i3 = 0; i3 < r3; ++i3) + e3 = 256 * e3 + t4.get(); + return e3; + }; + t3.prototype.getHexStringValue = function() { + var t4 = this.toHexString(); + var e3 = 2 * this.header; + var r3 = 2 * this.length; + return t4.substr(e3, r3); + }; + t3.decode = function(e3) { + var r3; + if (!(e3 instanceof T2)) + r3 = new T2(e3, 0); + else + r3 = e3; + var i3 = new T2(r3); + var n22 = new A2(r3); + var s22 = t3.decodeLength(r3); + var a22 = r3.pos; + var o22 = a22 - i3.pos; + var u22 = null; + var c22 = function() { + var e4 = []; + if (null !== s22) { + var i4 = a22 + s22; + while (r3.pos < i4) + e4[e4.length] = t3.decode(r3); + if (r3.pos != i4) + throw new Error("Content size is not correct for container starting at offset " + a22); + } else + try { + for (; ; ) { + var n3 = t3.decode(r3); + if (n3.tag.isEOC()) + break; + e4[e4.length] = n3; + } + s22 = a22 - r3.pos; + } catch (t4) { + throw new Error("Exception while decoding undefined length content: " + t4); + } + return e4; + }; + if (n22.tagConstructed) + u22 = c22(); + else if (n22.isUniversal() && (3 == n22.tagNumber || 4 == n22.tagNumber)) + try { + if (3 == n22.tagNumber) { + if (0 != r3.get()) + throw new Error("BIT STRINGs with unused bits cannot encapsulate."); + } + u22 = c22(); + for (var l22 = 0; l22 < u22.length; ++l22) + if (u22[l22].tag.isEOC()) + throw new Error("EOC is not supposed to be actual content."); + } catch (t4) { + u22 = null; + } + if (null === u22) { + if (null === s22) + throw new Error("We can't skip over an invalid tag with undefined length at offset " + a22); + r3.pos = a22 + Math.abs(s22); + } + return new t3(i3, o22, s22, n22, u22); + }; + return t3; + }(); + var A2 = function() { + function t3(t4) { + var e3 = t4.get(); + this.tagClass = e3 >> 6; + this.tagConstructed = 0 !== (32 & e3); + this.tagNumber = 31 & e3; + if (31 == this.tagNumber) { + var r3 = new _2(); + do { + e3 = t4.get(); + r3.mulAdd(128, 127 & e3); + } while (128 & e3); + this.tagNumber = r3.simplify(); + } + } + t3.prototype.isUniversal = function() { + return 0 === this.tagClass; + }; + t3.prototype.isEOC = function() { + return 0 === this.tagClass && 0 === this.tagNumber; + }; + return t3; + }(); + var x; + var R2 = 244837814094590; + var B2 = 15715070 == (16777215 & R2); + var O2 = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997]; + var k = (1 << 26) / O2[O2.length - 1]; + var C2 = function() { + function t3(t4, e3, r3) { + if (null != t4) + if ("number" == typeof t4) + this.fromNumber(t4, e3, r3); + else if (null == e3 && "string" != typeof t4) + this.fromString(t4, 256); + else + this.fromString(t4, e3); + } + t3.prototype.toString = function(t4) { + if (this.s < 0) + return "-" + this.negate().toString(t4); + var e3; + if (16 == t4) + e3 = 4; + else if (8 == t4) + e3 = 3; + else if (2 == t4) + e3 = 1; + else if (32 == t4) + e3 = 5; + else if (4 == t4) + e3 = 2; + else + return this.toRadix(t4); + var r3 = (1 << e3) - 1; + var i3; + var s22 = false; + var a22 = ""; + var o22 = this.t; + var u22 = this.DB - o22 * this.DB % e3; + if (o22-- > 0) { + if (u22 < this.DB && (i3 = this[o22] >> u22) > 0) { + s22 = true; + a22 = n2(i3); + } + while (o22 >= 0) { + if (u22 < e3) { + i3 = (this[o22] & (1 << u22) - 1) << e3 - u22; + i3 |= this[--o22] >> (u22 += this.DB - e3); + } else { + i3 = this[o22] >> (u22 -= e3) & r3; + if (u22 <= 0) { + u22 += this.DB; + --o22; + } + } + if (i3 > 0) + s22 = true; + if (s22) + a22 += n2(i3); + } + } + return s22 ? a22 : "0"; + }; + t3.prototype.negate = function() { + var e3 = H2(); + t3.ZERO.subTo(this, e3); + return e3; + }; + t3.prototype.abs = function() { + return this.s < 0 ? this.negate() : this; + }; + t3.prototype.compareTo = function(t4) { + var e3 = this.s - t4.s; + if (0 != e3) + return e3; + var r3 = this.t; + e3 = r3 - t4.t; + if (0 != e3) + return this.s < 0 ? -e3 : e3; + while (--r3 >= 0) + if (0 != (e3 = this[r3] - t4[r3])) + return e3; + return 0; + }; + t3.prototype.bitLength = function() { + if (this.t <= 0) + return 0; + return this.DB * (this.t - 1) + W2(this[this.t - 1] ^ this.s & this.DM); + }; + t3.prototype.mod = function(e3) { + var r3 = H2(); + this.abs().divRemTo(e3, null, r3); + if (this.s < 0 && r3.compareTo(t3.ZERO) > 0) + e3.subTo(r3, r3); + return r3; + }; + t3.prototype.modPowInt = function(t4, e3) { + var r3; + if (t4 < 256 || e3.isEven()) + r3 = new P2(e3); + else + r3 = new V2(e3); + return this.exp(t4, r3); + }; + t3.prototype.clone = function() { + var t4 = H2(); + this.copyTo(t4); + return t4; + }; + t3.prototype.intValue = function() { + if (this.s < 0) { + if (1 == this.t) + return this[0] - this.DV; + else if (0 == this.t) + return -1; + } else if (1 == this.t) + return this[0]; + else if (0 == this.t) + return 0; + return (this[1] & (1 << 32 - this.DB) - 1) << this.DB | this[0]; + }; + t3.prototype.byteValue = function() { + return 0 == this.t ? this.s : this[0] << 24 >> 24; + }; + t3.prototype.shortValue = function() { + return 0 == this.t ? this.s : this[0] << 16 >> 16; + }; + t3.prototype.signum = function() { + if (this.s < 0) + return -1; + else if (this.t <= 0 || 1 == this.t && this[0] <= 0) + return 0; + else + return 1; + }; + t3.prototype.toByteArray = function() { + var t4 = this.t; + var e3 = []; + e3[0] = this.s; + var r3 = this.DB - t4 * this.DB % 8; + var i3; + var n22 = 0; + if (t4-- > 0) { + if (r3 < this.DB && (i3 = this[t4] >> r3) != (this.s & this.DM) >> r3) + e3[n22++] = i3 | this.s << this.DB - r3; + while (t4 >= 0) { + if (r3 < 8) { + i3 = (this[t4] & (1 << r3) - 1) << 8 - r3; + i3 |= this[--t4] >> (r3 += this.DB - 8); + } else { + i3 = this[t4] >> (r3 -= 8) & 255; + if (r3 <= 0) { + r3 += this.DB; + --t4; + } + } + if (0 != (128 & i3)) + i3 |= -256; + if (0 == n22 && (128 & this.s) != (128 & i3)) + ++n22; + if (n22 > 0 || i3 != this.s) + e3[n22++] = i3; + } + } + return e3; + }; + t3.prototype.equals = function(t4) { + return 0 == this.compareTo(t4); + }; + t3.prototype.min = function(t4) { + return this.compareTo(t4) < 0 ? this : t4; + }; + t3.prototype.max = function(t4) { + return this.compareTo(t4) > 0 ? this : t4; + }; + t3.prototype.and = function(t4) { + var e3 = H2(); + this.bitwiseTo(t4, s2, e3); + return e3; + }; + t3.prototype.or = function(t4) { + var e3 = H2(); + this.bitwiseTo(t4, a2, e3); + return e3; + }; + t3.prototype.xor = function(t4) { + var e3 = H2(); + this.bitwiseTo(t4, o2, e3); + return e3; + }; + t3.prototype.andNot = function(t4) { + var e3 = H2(); + this.bitwiseTo(t4, u2, e3); + return e3; + }; + t3.prototype.not = function() { + var t4 = H2(); + for (var e3 = 0; e3 < this.t; ++e3) + t4[e3] = this.DM & ~this[e3]; + t4.t = this.t; + t4.s = ~this.s; + return t4; + }; + t3.prototype.shiftLeft = function(t4) { + var e3 = H2(); + if (t4 < 0) + this.rShiftTo(-t4, e3); + else + this.lShiftTo(t4, e3); + return e3; + }; + t3.prototype.shiftRight = function(t4) { + var e3 = H2(); + if (t4 < 0) + this.lShiftTo(-t4, e3); + else + this.rShiftTo(t4, e3); + return e3; + }; + t3.prototype.getLowestSetBit = function() { + for (var t4 = 0; t4 < this.t; ++t4) + if (0 != this[t4]) + return t4 * this.DB + c2(this[t4]); + if (this.s < 0) + return this.t * this.DB; + return -1; + }; + t3.prototype.bitCount = function() { + var t4 = 0; + var e3 = this.s & this.DM; + for (var r3 = 0; r3 < this.t; ++r3) + t4 += l2(this[r3] ^ e3); + return t4; + }; + t3.prototype.testBit = function(t4) { + var e3 = Math.floor(t4 / this.DB); + if (e3 >= this.t) + return 0 != this.s; + return 0 != (this[e3] & 1 << t4 % this.DB); + }; + t3.prototype.setBit = function(t4) { + return this.changeBit(t4, a2); + }; + t3.prototype.clearBit = function(t4) { + return this.changeBit(t4, u2); + }; + t3.prototype.flipBit = function(t4) { + return this.changeBit(t4, o2); + }; + t3.prototype.add = function(t4) { + var e3 = H2(); + this.addTo(t4, e3); + return e3; + }; + t3.prototype.subtract = function(t4) { + var e3 = H2(); + this.subTo(t4, e3); + return e3; + }; + t3.prototype.multiply = function(t4) { + var e3 = H2(); + this.multiplyTo(t4, e3); + return e3; + }; + t3.prototype.divide = function(t4) { + var e3 = H2(); + this.divRemTo(t4, e3, null); + return e3; + }; + t3.prototype.remainder = function(t4) { + var e3 = H2(); + this.divRemTo(t4, null, e3); + return e3; + }; + t3.prototype.divideAndRemainder = function(t4) { + var e3 = H2(); + var r3 = H2(); + this.divRemTo(t4, e3, r3); + return [e3, r3]; + }; + t3.prototype.modPow = function(t4, e3) { + var r3 = t4.bitLength(); + var i3; + var n22 = Y2(1); + var s22; + if (r3 <= 0) + return n22; + else if (r3 < 18) + i3 = 1; + else if (r3 < 48) + i3 = 3; + else if (r3 < 144) + i3 = 4; + else if (r3 < 768) + i3 = 5; + else + i3 = 6; + if (r3 < 8) + s22 = new P2(e3); + else if (e3.isEven()) + s22 = new L2(e3); + else + s22 = new V2(e3); + var a22 = []; + var o22 = 3; + var u22 = i3 - 1; + var c22 = (1 << i3) - 1; + a22[1] = s22.convert(this); + if (i3 > 1) { + var l22 = H2(); + s22.sqrTo(a22[1], l22); + while (o22 <= c22) { + a22[o22] = H2(); + s22.mulTo(l22, a22[o22 - 2], a22[o22]); + o22 += 2; + } + } + var f22 = t4.t - 1; + var h22; + var d22 = true; + var v22 = H2(); + var p2; + r3 = W2(t4[f22]) - 1; + while (f22 >= 0) { + if (r3 >= u22) + h22 = t4[f22] >> r3 - u22 & c22; + else { + h22 = (t4[f22] & (1 << r3 + 1) - 1) << u22 - r3; + if (f22 > 0) + h22 |= t4[f22 - 1] >> this.DB + r3 - u22; + } + o22 = i3; + while (0 == (1 & h22)) { + h22 >>= 1; + --o22; + } + if ((r3 -= o22) < 0) { + r3 += this.DB; + --f22; + } + if (d22) { + a22[h22].copyTo(n22); + d22 = false; + } else { + while (o22 > 1) { + s22.sqrTo(n22, v22); + s22.sqrTo(v22, n22); + o22 -= 2; + } + if (o22 > 0) + s22.sqrTo(n22, v22); + else { + p2 = n22; + n22 = v22; + v22 = p2; + } + s22.mulTo(v22, a22[h22], n22); + } + while (f22 >= 0 && 0 == (t4[f22] & 1 << r3)) { + s22.sqrTo(n22, v22); + p2 = n22; + n22 = v22; + v22 = p2; + if (--r3 < 0) { + r3 = this.DB - 1; + --f22; + } + } + } + return s22.revert(n22); + }; + t3.prototype.modInverse = function(e3) { + var r3 = e3.isEven(); + if (this.isEven() && r3 || 0 == e3.signum()) + return t3.ZERO; + var i3 = e3.clone(); + var n22 = this.clone(); + var s22 = Y2(1); + var a22 = Y2(0); + var o22 = Y2(0); + var u22 = Y2(1); + while (0 != i3.signum()) { + while (i3.isEven()) { + i3.rShiftTo(1, i3); + if (r3) { + if (!s22.isEven() || !a22.isEven()) { + s22.addTo(this, s22); + a22.subTo(e3, a22); + } + s22.rShiftTo(1, s22); + } else if (!a22.isEven()) + a22.subTo(e3, a22); + a22.rShiftTo(1, a22); + } + while (n22.isEven()) { + n22.rShiftTo(1, n22); + if (r3) { + if (!o22.isEven() || !u22.isEven()) { + o22.addTo(this, o22); + u22.subTo(e3, u22); + } + o22.rShiftTo(1, o22); + } else if (!u22.isEven()) + u22.subTo(e3, u22); + u22.rShiftTo(1, u22); + } + if (i3.compareTo(n22) >= 0) { + i3.subTo(n22, i3); + if (r3) + s22.subTo(o22, s22); + a22.subTo(u22, a22); + } else { + n22.subTo(i3, n22); + if (r3) + o22.subTo(s22, o22); + u22.subTo(a22, u22); + } + } + if (0 != n22.compareTo(t3.ONE)) + return t3.ZERO; + if (u22.compareTo(e3) >= 0) + return u22.subtract(e3); + if (u22.signum() < 0) + u22.addTo(e3, u22); + else + return u22; + if (u22.signum() < 0) + return u22.add(e3); + else + return u22; + }; + t3.prototype.pow = function(t4) { + return this.exp(t4, new N2()); + }; + t3.prototype.gcd = function(t4) { + var e3 = this.s < 0 ? this.negate() : this.clone(); + var r3 = t4.s < 0 ? t4.negate() : t4.clone(); + if (e3.compareTo(r3) < 0) { + var i3 = e3; + e3 = r3; + r3 = i3; + } + var n22 = e3.getLowestSetBit(); + var s22 = r3.getLowestSetBit(); + if (s22 < 0) + return e3; + if (n22 < s22) + s22 = n22; + if (s22 > 0) { + e3.rShiftTo(s22, e3); + r3.rShiftTo(s22, r3); + } + while (e3.signum() > 0) { + if ((n22 = e3.getLowestSetBit()) > 0) + e3.rShiftTo(n22, e3); + if ((n22 = r3.getLowestSetBit()) > 0) + r3.rShiftTo(n22, r3); + if (e3.compareTo(r3) >= 0) { + e3.subTo(r3, e3); + e3.rShiftTo(1, e3); + } else { + r3.subTo(e3, r3); + r3.rShiftTo(1, r3); + } + } + if (s22 > 0) + r3.lShiftTo(s22, r3); + return r3; + }; + t3.prototype.isProbablePrime = function(t4) { + var e3; + var r3 = this.abs(); + if (1 == r3.t && r3[0] <= O2[O2.length - 1]) { + for (e3 = 0; e3 < O2.length; ++e3) + if (r3[0] == O2[e3]) + return true; + return false; + } + if (r3.isEven()) + return false; + e3 = 1; + while (e3 < O2.length) { + var i3 = O2[e3]; + var n22 = e3 + 1; + while (n22 < O2.length && i3 < k) + i3 *= O2[n22++]; + i3 = r3.modInt(i3); + while (e3 < n22) + if (i3 % O2[e3++] == 0) + return false; + } + return r3.millerRabin(t4); + }; + t3.prototype.copyTo = function(t4) { + for (var e3 = this.t - 1; e3 >= 0; --e3) + t4[e3] = this[e3]; + t4.t = this.t; + t4.s = this.s; + }; + t3.prototype.fromInt = function(t4) { + this.t = 1; + this.s = t4 < 0 ? -1 : 0; + if (t4 > 0) + this[0] = t4; + else if (t4 < -1) + this[0] = t4 + this.DV; + else + this.t = 0; + }; + t3.prototype.fromString = function(e3, r3) { + var i3; + if (16 == r3) + i3 = 4; + else if (8 == r3) + i3 = 3; + else if (256 == r3) + i3 = 8; + else if (2 == r3) + i3 = 1; + else if (32 == r3) + i3 = 5; + else if (4 == r3) + i3 = 2; + else { + this.fromRadix(e3, r3); + return; + } + this.t = 0; + this.s = 0; + var n22 = e3.length; + var s22 = false; + var a22 = 0; + while (--n22 >= 0) { + var o22 = 8 == i3 ? 255 & +e3[n22] : G2(e3, n22); + if (o22 < 0) { + if ("-" == e3.charAt(n22)) + s22 = true; + continue; + } + s22 = false; + if (0 == a22) + this[this.t++] = o22; + else if (a22 + i3 > this.DB) { + this[this.t - 1] |= (o22 & (1 << this.DB - a22) - 1) << a22; + this[this.t++] = o22 >> this.DB - a22; + } else + this[this.t - 1] |= o22 << a22; + a22 += i3; + if (a22 >= this.DB) + a22 -= this.DB; + } + if (8 == i3 && 0 != (128 & +e3[0])) { + this.s = -1; + if (a22 > 0) + this[this.t - 1] |= (1 << this.DB - a22) - 1 << a22; + } + this.clamp(); + if (s22) + t3.ZERO.subTo(this, this); + }; + t3.prototype.clamp = function() { + var t4 = this.s & this.DM; + while (this.t > 0 && this[this.t - 1] == t4) + --this.t; + }; + t3.prototype.dlShiftTo = function(t4, e3) { + var r3; + for (r3 = this.t - 1; r3 >= 0; --r3) + e3[r3 + t4] = this[r3]; + for (r3 = t4 - 1; r3 >= 0; --r3) + e3[r3] = 0; + e3.t = this.t + t4; + e3.s = this.s; + }; + t3.prototype.drShiftTo = function(t4, e3) { + for (var r3 = t4; r3 < this.t; ++r3) + e3[r3 - t4] = this[r3]; + e3.t = Math.max(this.t - t4, 0); + e3.s = this.s; + }; + t3.prototype.lShiftTo = function(t4, e3) { + var r3 = t4 % this.DB; + var i3 = this.DB - r3; + var n22 = (1 << i3) - 1; + var s22 = Math.floor(t4 / this.DB); + var a22 = this.s << r3 & this.DM; + for (var o22 = this.t - 1; o22 >= 0; --o22) { + e3[o22 + s22 + 1] = this[o22] >> i3 | a22; + a22 = (this[o22] & n22) << r3; + } + for (var o22 = s22 - 1; o22 >= 0; --o22) + e3[o22] = 0; + e3[s22] = a22; + e3.t = this.t + s22 + 1; + e3.s = this.s; + e3.clamp(); + }; + t3.prototype.rShiftTo = function(t4, e3) { + e3.s = this.s; + var r3 = Math.floor(t4 / this.DB); + if (r3 >= this.t) { + e3.t = 0; + return; + } + var i3 = t4 % this.DB; + var n22 = this.DB - i3; + var s22 = (1 << i3) - 1; + e3[0] = this[r3] >> i3; + for (var a22 = r3 + 1; a22 < this.t; ++a22) { + e3[a22 - r3 - 1] |= (this[a22] & s22) << n22; + e3[a22 - r3] = this[a22] >> i3; + } + if (i3 > 0) + e3[this.t - r3 - 1] |= (this.s & s22) << n22; + e3.t = this.t - r3; + e3.clamp(); + }; + t3.prototype.subTo = function(t4, e3) { + var r3 = 0; + var i3 = 0; + var n22 = Math.min(t4.t, this.t); + while (r3 < n22) { + i3 += this[r3] - t4[r3]; + e3[r3++] = i3 & this.DM; + i3 >>= this.DB; + } + if (t4.t < this.t) { + i3 -= t4.s; + while (r3 < this.t) { + i3 += this[r3]; + e3[r3++] = i3 & this.DM; + i3 >>= this.DB; + } + i3 += this.s; + } else { + i3 += this.s; + while (r3 < t4.t) { + i3 -= t4[r3]; + e3[r3++] = i3 & this.DM; + i3 >>= this.DB; + } + i3 -= t4.s; + } + e3.s = i3 < 0 ? -1 : 0; + if (i3 < -1) + e3[r3++] = this.DV + i3; + else if (i3 > 0) + e3[r3++] = i3; + e3.t = r3; + e3.clamp(); + }; + t3.prototype.multiplyTo = function(e3, r3) { + var i3 = this.abs(); + var n22 = e3.abs(); + var s22 = i3.t; + r3.t = s22 + n22.t; + while (--s22 >= 0) + r3[s22] = 0; + for (s22 = 0; s22 < n22.t; ++s22) + r3[s22 + i3.t] = i3.am(0, n22[s22], r3, s22, 0, i3.t); + r3.s = 0; + r3.clamp(); + if (this.s != e3.s) + t3.ZERO.subTo(r3, r3); + }; + t3.prototype.squareTo = function(t4) { + var e3 = this.abs(); + var r3 = t4.t = 2 * e3.t; + while (--r3 >= 0) + t4[r3] = 0; + for (r3 = 0; r3 < e3.t - 1; ++r3) { + var i3 = e3.am(r3, e3[r3], t4, 2 * r3, 0, 1); + if ((t4[r3 + e3.t] += e3.am(r3 + 1, 2 * e3[r3], t4, 2 * r3 + 1, i3, e3.t - r3 - 1)) >= e3.DV) { + t4[r3 + e3.t] -= e3.DV; + t4[r3 + e3.t + 1] = 1; + } + } + if (t4.t > 0) + t4[t4.t - 1] += e3.am(r3, e3[r3], t4, 2 * r3, 0, 1); + t4.s = 0; + t4.clamp(); + }; + t3.prototype.divRemTo = function(e3, r3, i3) { + var n22 = e3.abs(); + if (n22.t <= 0) + return; + var s22 = this.abs(); + if (s22.t < n22.t) { + if (null != r3) + r3.fromInt(0); + if (null != i3) + this.copyTo(i3); + return; + } + if (null == i3) + i3 = H2(); + var a22 = H2(); + var o22 = this.s; + var u22 = e3.s; + var c22 = this.DB - W2(n22[n22.t - 1]); + if (c22 > 0) { + n22.lShiftTo(c22, a22); + s22.lShiftTo(c22, i3); + } else { + n22.copyTo(a22); + s22.copyTo(i3); + } + var l22 = a22.t; + var f22 = a22[l22 - 1]; + if (0 == f22) + return; + var h22 = f22 * (1 << this.F1) + (l22 > 1 ? a22[l22 - 2] >> this.F2 : 0); + var d22 = this.FV / h22; + var v22 = (1 << this.F1) / h22; + var p2 = 1 << this.F2; + var g22 = i3.t; + var y22 = g22 - l22; + var m22 = null == r3 ? H2() : r3; + a22.dlShiftTo(y22, m22); + if (i3.compareTo(m22) >= 0) { + i3[i3.t++] = 1; + i3.subTo(m22, i3); + } + t3.ONE.dlShiftTo(l22, m22); + m22.subTo(a22, a22); + while (a22.t < l22) + a22[a22.t++] = 0; + while (--y22 >= 0) { + var w22 = i3[--g22] == f22 ? this.DM : Math.floor(i3[g22] * d22 + (i3[g22 - 1] + p2) * v22); + if ((i3[g22] += a22.am(0, w22, i3, y22, 0, l22)) < w22) { + a22.dlShiftTo(y22, m22); + i3.subTo(m22, i3); + while (i3[g22] < --w22) + i3.subTo(m22, i3); + } + } + if (null != r3) { + i3.drShiftTo(l22, r3); + if (o22 != u22) + t3.ZERO.subTo(r3, r3); + } + i3.t = l22; + i3.clamp(); + if (c22 > 0) + i3.rShiftTo(c22, i3); + if (o22 < 0) + t3.ZERO.subTo(i3, i3); + }; + t3.prototype.invDigit = function() { + if (this.t < 1) + return 0; + var t4 = this[0]; + if (0 == (1 & t4)) + return 0; + var e3 = 3 & t4; + e3 = e3 * (2 - (15 & t4) * e3) & 15; + e3 = e3 * (2 - (255 & t4) * e3) & 255; + e3 = e3 * (2 - ((65535 & t4) * e3 & 65535)) & 65535; + e3 = e3 * (2 - t4 * e3 % this.DV) % this.DV; + return e3 > 0 ? this.DV - e3 : -e3; + }; + t3.prototype.isEven = function() { + return 0 == (this.t > 0 ? 1 & this[0] : this.s); + }; + t3.prototype.exp = function(e3, r3) { + if (e3 > 4294967295 || e3 < 1) + return t3.ONE; + var i3 = H2(); + var n22 = H2(); + var s22 = r3.convert(this); + var a22 = W2(e3) - 1; + s22.copyTo(i3); + while (--a22 >= 0) { + r3.sqrTo(i3, n22); + if ((e3 & 1 << a22) > 0) + r3.mulTo(n22, s22, i3); + else { + var o22 = i3; + i3 = n22; + n22 = o22; + } + } + return r3.revert(i3); + }; + t3.prototype.chunkSize = function(t4) { + return Math.floor(Math.LN2 * this.DB / Math.log(t4)); + }; + t3.prototype.toRadix = function(t4) { + if (null == t4) + t4 = 10; + if (0 == this.signum() || t4 < 2 || t4 > 36) + return "0"; + var e3 = this.chunkSize(t4); + var r3 = Math.pow(t4, e3); + var i3 = Y2(r3); + var n22 = H2(); + var s22 = H2(); + var a22 = ""; + this.divRemTo(i3, n22, s22); + while (n22.signum() > 0) { + a22 = (r3 + s22.intValue()).toString(t4).substr(1) + a22; + n22.divRemTo(i3, n22, s22); + } + return s22.intValue().toString(t4) + a22; + }; + t3.prototype.fromRadix = function(e3, r3) { + this.fromInt(0); + if (null == r3) + r3 = 10; + var i3 = this.chunkSize(r3); + var n22 = Math.pow(r3, i3); + var s22 = false; + var a22 = 0; + var o22 = 0; + for (var u22 = 0; u22 < e3.length; ++u22) { + var c22 = G2(e3, u22); + if (c22 < 0) { + if ("-" == e3.charAt(u22) && 0 == this.signum()) + s22 = true; + continue; + } + o22 = r3 * o22 + c22; + if (++a22 >= i3) { + this.dMultiply(n22); + this.dAddOffset(o22, 0); + a22 = 0; + o22 = 0; + } + } + if (a22 > 0) { + this.dMultiply(Math.pow(r3, a22)); + this.dAddOffset(o22, 0); + } + if (s22) + t3.ZERO.subTo(this, this); + }; + t3.prototype.fromNumber = function(e3, r3, i3) { + if ("number" == typeof r3) + if (e3 < 2) + this.fromInt(1); + else { + this.fromNumber(e3, i3); + if (!this.testBit(e3 - 1)) + this.bitwiseTo(t3.ONE.shiftLeft(e3 - 1), a2, this); + if (this.isEven()) + this.dAddOffset(1, 0); + while (!this.isProbablePrime(r3)) { + this.dAddOffset(2, 0); + if (this.bitLength() > e3) + this.subTo(t3.ONE.shiftLeft(e3 - 1), this); + } + } + else { + var n22 = []; + var s22 = 7 & e3; + n22.length = (e3 >> 3) + 1; + r3.nextBytes(n22); + if (s22 > 0) + n22[0] &= (1 << s22) - 1; + else + n22[0] = 0; + this.fromString(n22, 256); + } + }; + t3.prototype.bitwiseTo = function(t4, e3, r3) { + var i3; + var n22; + var s22 = Math.min(t4.t, this.t); + for (i3 = 0; i3 < s22; ++i3) + r3[i3] = e3(this[i3], t4[i3]); + if (t4.t < this.t) { + n22 = t4.s & this.DM; + for (i3 = s22; i3 < this.t; ++i3) + r3[i3] = e3(this[i3], n22); + r3.t = this.t; + } else { + n22 = this.s & this.DM; + for (i3 = s22; i3 < t4.t; ++i3) + r3[i3] = e3(n22, t4[i3]); + r3.t = t4.t; + } + r3.s = e3(this.s, t4.s); + r3.clamp(); + }; + t3.prototype.changeBit = function(e3, r3) { + var i3 = t3.ONE.shiftLeft(e3); + this.bitwiseTo(i3, r3, i3); + return i3; + }; + t3.prototype.addTo = function(t4, e3) { + var r3 = 0; + var i3 = 0; + var n22 = Math.min(t4.t, this.t); + while (r3 < n22) { + i3 += this[r3] + t4[r3]; + e3[r3++] = i3 & this.DM; + i3 >>= this.DB; + } + if (t4.t < this.t) { + i3 += t4.s; + while (r3 < this.t) { + i3 += this[r3]; + e3[r3++] = i3 & this.DM; + i3 >>= this.DB; + } + i3 += this.s; + } else { + i3 += this.s; + while (r3 < t4.t) { + i3 += t4[r3]; + e3[r3++] = i3 & this.DM; + i3 >>= this.DB; + } + i3 += t4.s; + } + e3.s = i3 < 0 ? -1 : 0; + if (i3 > 0) + e3[r3++] = i3; + else if (i3 < -1) + e3[r3++] = this.DV + i3; + e3.t = r3; + e3.clamp(); + }; + t3.prototype.dMultiply = function(t4) { + this[this.t] = this.am(0, t4 - 1, this, 0, 0, this.t); + ++this.t; + this.clamp(); + }; + t3.prototype.dAddOffset = function(t4, e3) { + if (0 == t4) + return; + while (this.t <= e3) + this[this.t++] = 0; + this[e3] += t4; + while (this[e3] >= this.DV) { + this[e3] -= this.DV; + if (++e3 >= this.t) + this[this.t++] = 0; + ++this[e3]; + } + }; + t3.prototype.multiplyLowerTo = function(t4, e3, r3) { + var i3 = Math.min(this.t + t4.t, e3); + r3.s = 0; + r3.t = i3; + while (i3 > 0) + r3[--i3] = 0; + for (var n22 = r3.t - this.t; i3 < n22; ++i3) + r3[i3 + this.t] = this.am(0, t4[i3], r3, i3, 0, this.t); + for (var n22 = Math.min(t4.t, e3); i3 < n22; ++i3) + this.am(0, t4[i3], r3, i3, 0, e3 - i3); + r3.clamp(); + }; + t3.prototype.multiplyUpperTo = function(t4, e3, r3) { + --e3; + var i3 = r3.t = this.t + t4.t - e3; + r3.s = 0; + while (--i3 >= 0) + r3[i3] = 0; + for (i3 = Math.max(e3 - this.t, 0); i3 < t4.t; ++i3) + r3[this.t + i3 - e3] = this.am(e3 - i3, t4[i3], r3, 0, 0, this.t + i3 - e3); + r3.clamp(); + r3.drShiftTo(1, r3); + }; + t3.prototype.modInt = function(t4) { + if (t4 <= 0) + return 0; + var e3 = this.DV % t4; + var r3 = this.s < 0 ? t4 - 1 : 0; + if (this.t > 0) + if (0 == e3) + r3 = this[0] % t4; + else + for (var i3 = this.t - 1; i3 >= 0; --i3) + r3 = (e3 * r3 + this[i3]) % t4; + return r3; + }; + t3.prototype.millerRabin = function(e3) { + var r3 = this.subtract(t3.ONE); + var i3 = r3.getLowestSetBit(); + if (i3 <= 0) + return false; + var n22 = r3.shiftRight(i3); + e3 = e3 + 1 >> 1; + if (e3 > O2.length) + e3 = O2.length; + var s22 = H2(); + for (var a22 = 0; a22 < e3; ++a22) { + s22.fromInt(O2[Math.floor(Math.random() * O2.length)]); + var o22 = s22.modPow(n22, this); + if (0 != o22.compareTo(t3.ONE) && 0 != o22.compareTo(r3)) { + var u22 = 1; + while (u22++ < i3 && 0 != o22.compareTo(r3)) { + o22 = o22.modPowInt(2, this); + if (0 == o22.compareTo(t3.ONE)) + return false; + } + if (0 != o22.compareTo(r3)) + return false; + } + } + return true; + }; + t3.prototype.square = function() { + var t4 = H2(); + this.squareTo(t4); + return t4; + }; + t3.prototype.gcda = function(t4, e3) { + var r3 = this.s < 0 ? this.negate() : this.clone(); + var i3 = t4.s < 0 ? t4.negate() : t4.clone(); + if (r3.compareTo(i3) < 0) { + var n22 = r3; + r3 = i3; + i3 = n22; + } + var s22 = r3.getLowestSetBit(); + var a22 = i3.getLowestSetBit(); + if (a22 < 0) { + e3(r3); + return; + } + if (s22 < a22) + a22 = s22; + if (a22 > 0) { + r3.rShiftTo(a22, r3); + i3.rShiftTo(a22, i3); + } + var o22 = function() { + if ((s22 = r3.getLowestSetBit()) > 0) + r3.rShiftTo(s22, r3); + if ((s22 = i3.getLowestSetBit()) > 0) + i3.rShiftTo(s22, i3); + if (r3.compareTo(i3) >= 0) { + r3.subTo(i3, r3); + r3.rShiftTo(1, r3); + } else { + i3.subTo(r3, i3); + i3.rShiftTo(1, i3); + } + if (!(r3.signum() > 0)) { + if (a22 > 0) + i3.lShiftTo(a22, i3); + setTimeout(function() { + e3(i3); + }, 0); + } else + setTimeout(o22, 0); + }; + setTimeout(o22, 10); + }; + t3.prototype.fromNumberAsync = function(e3, r3, i3, n22) { + if ("number" == typeof r3) + if (e3 < 2) + this.fromInt(1); + else { + this.fromNumber(e3, i3); + if (!this.testBit(e3 - 1)) + this.bitwiseTo(t3.ONE.shiftLeft(e3 - 1), a2, this); + if (this.isEven()) + this.dAddOffset(1, 0); + var s22 = this; + var o22 = function() { + s22.dAddOffset(2, 0); + if (s22.bitLength() > e3) + s22.subTo(t3.ONE.shiftLeft(e3 - 1), s22); + if (s22.isProbablePrime(r3)) + setTimeout(function() { + n22(); + }, 0); + else + setTimeout(o22, 0); + }; + setTimeout(o22, 0); + } + else { + var u22 = []; + var c22 = 7 & e3; + u22.length = (e3 >> 3) + 1; + r3.nextBytes(u22); + if (c22 > 0) + u22[0] &= (1 << c22) - 1; + else + u22[0] = 0; + this.fromString(u22, 256); + } + }; + return t3; + }(); + var N2 = function() { + function t3() { + } + t3.prototype.convert = function(t4) { + return t4; + }; + t3.prototype.revert = function(t4) { + return t4; + }; + t3.prototype.mulTo = function(t4, e3, r3) { + t4.multiplyTo(e3, r3); + }; + t3.prototype.sqrTo = function(t4, e3) { + t4.squareTo(e3); + }; + return t3; + }(); + var P2 = function() { + function t3(t4) { + this.m = t4; + } + t3.prototype.convert = function(t4) { + if (t4.s < 0 || t4.compareTo(this.m) >= 0) + return t4.mod(this.m); + else + return t4; + }; + t3.prototype.revert = function(t4) { + return t4; + }; + t3.prototype.reduce = function(t4) { + t4.divRemTo(this.m, null, t4); + }; + t3.prototype.mulTo = function(t4, e3, r3) { + t4.multiplyTo(e3, r3); + this.reduce(r3); + }; + t3.prototype.sqrTo = function(t4, e3) { + t4.squareTo(e3); + this.reduce(e3); + }; + return t3; + }(); + var V2 = function() { + function t3(t4) { + this.m = t4; + this.mp = t4.invDigit(); + this.mpl = 32767 & this.mp; + this.mph = this.mp >> 15; + this.um = (1 << t4.DB - 15) - 1; + this.mt2 = 2 * t4.t; + } + t3.prototype.convert = function(t4) { + var e3 = H2(); + t4.abs().dlShiftTo(this.m.t, e3); + e3.divRemTo(this.m, null, e3); + if (t4.s < 0 && e3.compareTo(C2.ZERO) > 0) + this.m.subTo(e3, e3); + return e3; + }; + t3.prototype.revert = function(t4) { + var e3 = H2(); + t4.copyTo(e3); + this.reduce(e3); + return e3; + }; + t3.prototype.reduce = function(t4) { + while (t4.t <= this.mt2) + t4[t4.t++] = 0; + for (var e3 = 0; e3 < this.m.t; ++e3) { + var r3 = 32767 & t4[e3]; + var i3 = r3 * this.mpl + ((r3 * this.mph + (t4[e3] >> 15) * this.mpl & this.um) << 15) & t4.DM; + r3 = e3 + this.m.t; + t4[r3] += this.m.am(0, i3, t4, e3, 0, this.m.t); + while (t4[r3] >= t4.DV) { + t4[r3] -= t4.DV; + t4[++r3]++; + } + } + t4.clamp(); + t4.drShiftTo(this.m.t, t4); + if (t4.compareTo(this.m) >= 0) + t4.subTo(this.m, t4); + }; + t3.prototype.mulTo = function(t4, e3, r3) { + t4.multiplyTo(e3, r3); + this.reduce(r3); + }; + t3.prototype.sqrTo = function(t4, e3) { + t4.squareTo(e3); + this.reduce(e3); + }; + return t3; + }(); + var L2 = function() { + function t3(t4) { + this.m = t4; + this.r2 = H2(); + this.q3 = H2(); + C2.ONE.dlShiftTo(2 * t4.t, this.r2); + this.mu = this.r2.divide(t4); + } + t3.prototype.convert = function(t4) { + if (t4.s < 0 || t4.t > 2 * this.m.t) + return t4.mod(this.m); + else if (t4.compareTo(this.m) < 0) + return t4; + else { + var e3 = H2(); + t4.copyTo(e3); + this.reduce(e3); + return e3; + } + }; + t3.prototype.revert = function(t4) { + return t4; + }; + t3.prototype.reduce = function(t4) { + t4.drShiftTo(this.m.t - 1, this.r2); + if (t4.t > this.m.t + 1) { + t4.t = this.m.t + 1; + t4.clamp(); + } + this.mu.multiplyUpperTo(this.r2, this.m.t + 1, this.q3); + this.m.multiplyLowerTo(this.q3, this.m.t + 1, this.r2); + while (t4.compareTo(this.r2) < 0) + t4.dAddOffset(1, this.m.t + 1); + t4.subTo(this.r2, t4); + while (t4.compareTo(this.m) >= 0) + t4.subTo(this.m, t4); + }; + t3.prototype.mulTo = function(t4, e3, r3) { + t4.multiplyTo(e3, r3); + this.reduce(r3); + }; + t3.prototype.sqrTo = function(t4, e3) { + t4.squareTo(e3); + this.reduce(e3); + }; + return t3; + }(); + function H2() { + return new C2(null); + } + function U2(t3, e3) { + return new C2(t3, e3); + } + var K2 = "undefined" !== typeof navigator; + if (K2 && B2 && "Microsoft Internet Explorer" == navigator.appName) { + C2.prototype.am = function t3(e3, r3, i3, n22, s22, a22) { + var o22 = 32767 & r3; + var u22 = r3 >> 15; + while (--a22 >= 0) { + var c22 = 32767 & this[e3]; + var l22 = this[e3++] >> 15; + var f22 = u22 * c22 + l22 * o22; + c22 = o22 * c22 + ((32767 & f22) << 15) + i3[n22] + (1073741823 & s22); + s22 = (c22 >>> 30) + (f22 >>> 15) + u22 * l22 + (s22 >>> 30); + i3[n22++] = 1073741823 & c22; + } + return s22; + }; + x = 30; + } else if (K2 && B2 && "Netscape" != navigator.appName) { + C2.prototype.am = function t3(e3, r3, i3, n22, s22, a22) { + while (--a22 >= 0) { + var o22 = r3 * this[e3++] + i3[n22] + s22; + s22 = Math.floor(o22 / 67108864); + i3[n22++] = 67108863 & o22; + } + return s22; + }; + x = 26; + } else { + C2.prototype.am = function t3(e3, r3, i3, n22, s22, a22) { + var o22 = 16383 & r3; + var u22 = r3 >> 14; + while (--a22 >= 0) { + var c22 = 16383 & this[e3]; + var l22 = this[e3++] >> 14; + var f22 = u22 * c22 + l22 * o22; + c22 = o22 * c22 + ((16383 & f22) << 14) + i3[n22] + s22; + s22 = (c22 >> 28) + (f22 >> 14) + u22 * l22; + i3[n22++] = 268435455 & c22; + } + return s22; + }; + x = 28; + } + C2.prototype.DB = x; + C2.prototype.DM = (1 << x) - 1; + C2.prototype.DV = 1 << x; + var j2 = 52; + C2.prototype.FV = Math.pow(2, j2); + C2.prototype.F1 = j2 - x; + C2.prototype.F2 = 2 * x - j2; + var q2 = []; + var F2; + var z2; + F2 = "0".charCodeAt(0); + for (z2 = 0; z2 <= 9; ++z2) + q2[F2++] = z2; + F2 = "a".charCodeAt(0); + for (z2 = 10; z2 < 36; ++z2) + q2[F2++] = z2; + F2 = "A".charCodeAt(0); + for (z2 = 10; z2 < 36; ++z2) + q2[F2++] = z2; + function G2(t3, e3) { + var r3 = q2[t3.charCodeAt(e3)]; + return null == r3 ? -1 : r3; + } + function Y2(t3) { + var e3 = H2(); + e3.fromInt(t3); + return e3; + } + function W2(t3) { + var e3 = 1; + var r3; + if (0 != (r3 = t3 >>> 16)) { + t3 = r3; + e3 += 16; + } + if (0 != (r3 = t3 >> 8)) { + t3 = r3; + e3 += 8; + } + if (0 != (r3 = t3 >> 4)) { + t3 = r3; + e3 += 4; + } + if (0 != (r3 = t3 >> 2)) { + t3 = r3; + e3 += 2; + } + if (0 != (r3 = t3 >> 1)) { + t3 = r3; + e3 += 1; + } + return e3; + } + C2.ZERO = Y2(0); + C2.ONE = Y2(1); + var J2 = function() { + function t3() { + this.i = 0; + this.j = 0; + this.S = []; + } + t3.prototype.init = function(t4) { + var e3; + var r3; + var i3; + for (e3 = 0; e3 < 256; ++e3) + this.S[e3] = e3; + r3 = 0; + for (e3 = 0; e3 < 256; ++e3) { + r3 = r3 + this.S[e3] + t4[e3 % t4.length] & 255; + i3 = this.S[e3]; + this.S[e3] = this.S[r3]; + this.S[r3] = i3; + } + this.i = 0; + this.j = 0; + }; + t3.prototype.next = function() { + var t4; + this.i = this.i + 1 & 255; + this.j = this.j + this.S[this.i] & 255; + t4 = this.S[this.i]; + this.S[this.i] = this.S[this.j]; + this.S[this.j] = t4; + return this.S[t4 + this.S[this.i] & 255]; + }; + return t3; + }(); + function Z2() { + return new J2(); + } + var $2 = 256; + var X2; + var Q2 = null; + var tt2; + if (null == Q2) { + Q2 = []; + tt2 = 0; + } + function nt2() { + if (null == X2) { + X2 = Z2(); + while (tt2 < $2) { + var t3 = Math.floor(65536 * Math.random()); + Q2[tt2++] = 255 & t3; + } + X2.init(Q2); + for (tt2 = 0; tt2 < Q2.length; ++tt2) + Q2[tt2] = 0; + tt2 = 0; + } + return X2.next(); + } + var st2 = function() { + function t3() { + } + t3.prototype.nextBytes = function(t4) { + for (var e3 = 0; e3 < t4.length; ++e3) + t4[e3] = nt2(); + }; + return t3; + }(); + function at2(t3, e3) { + if (e3 < t3.length + 22) { + console.error("Message too long for RSA"); + return null; + } + var r3 = e3 - t3.length - 6; + var i3 = ""; + for (var n22 = 0; n22 < r3; n22 += 2) + i3 += "ff"; + var s22 = "0001" + i3 + "00" + t3; + return U2(s22, 16); + } + function ot2(t3, e3) { + if (e3 < t3.length + 11) { + console.error("Message too long for RSA"); + return null; + } + var r3 = []; + var i3 = t3.length - 1; + while (i3 >= 0 && e3 > 0) { + var n22 = t3.charCodeAt(i3--); + if (n22 < 128) + r3[--e3] = n22; + else if (n22 > 127 && n22 < 2048) { + r3[--e3] = 63 & n22 | 128; + r3[--e3] = n22 >> 6 | 192; + } else { + r3[--e3] = 63 & n22 | 128; + r3[--e3] = n22 >> 6 & 63 | 128; + r3[--e3] = n22 >> 12 | 224; + } + } + r3[--e3] = 0; + var s22 = new st2(); + var a22 = []; + while (e3 > 2) { + a22[0] = 0; + while (0 == a22[0]) + s22.nextBytes(a22); + r3[--e3] = a22[0]; + } + r3[--e3] = 2; + r3[--e3] = 0; + return new C2(r3); + } + var ut2 = function() { + function t3() { + this.n = null; + this.e = 0; + this.d = null; + this.p = null; + this.q = null; + this.dmp1 = null; + this.dmq1 = null; + this.coeff = null; + } + t3.prototype.doPublic = function(t4) { + return t4.modPowInt(this.e, this.n); + }; + t3.prototype.doPrivate = function(t4) { + if (null == this.p || null == this.q) + return t4.modPow(this.d, this.n); + var e3 = t4.mod(this.p).modPow(this.dmp1, this.p); + var r3 = t4.mod(this.q).modPow(this.dmq1, this.q); + while (e3.compareTo(r3) < 0) + e3 = e3.add(this.p); + return e3.subtract(r3).multiply(this.coeff).mod(this.p).multiply(this.q).add(r3); + }; + t3.prototype.setPublic = function(t4, e3) { + if (null != t4 && null != e3 && t4.length > 0 && e3.length > 0) { + this.n = U2(t4, 16); + this.e = parseInt(e3, 16); + } else + console.error("Invalid RSA public key"); + }; + t3.prototype.encrypt = function(t4) { + var e3 = this.n.bitLength() + 7 >> 3; + var r3 = ot2(t4, e3); + if (null == r3) + return null; + var i3 = this.doPublic(r3); + if (null == i3) + return null; + var n22 = i3.toString(16); + var s22 = n22.length; + for (var a22 = 0; a22 < 2 * e3 - s22; a22++) + n22 = "0" + n22; + return n22; + }; + t3.prototype.setPrivate = function(t4, e3, r3) { + if (null != t4 && null != e3 && t4.length > 0 && e3.length > 0) { + this.n = U2(t4, 16); + this.e = parseInt(e3, 16); + this.d = U2(r3, 16); + } else + console.error("Invalid RSA private key"); + }; + t3.prototype.setPrivateEx = function(t4, e3, r3, i3, n22, s22, a22, o22) { + if (null != t4 && null != e3 && t4.length > 0 && e3.length > 0) { + this.n = U2(t4, 16); + this.e = parseInt(e3, 16); + this.d = U2(r3, 16); + this.p = U2(i3, 16); + this.q = U2(n22, 16); + this.dmp1 = U2(s22, 16); + this.dmq1 = U2(a22, 16); + this.coeff = U2(o22, 16); + } else + console.error("Invalid RSA private key"); + }; + t3.prototype.generate = function(t4, e3) { + var r3 = new st2(); + var i3 = t4 >> 1; + this.e = parseInt(e3, 16); + var n22 = new C2(e3, 16); + for (; ; ) { + for (; ; ) { + this.p = new C2(t4 - i3, 1, r3); + if (0 == this.p.subtract(C2.ONE).gcd(n22).compareTo(C2.ONE) && this.p.isProbablePrime(10)) + break; + } + for (; ; ) { + this.q = new C2(i3, 1, r3); + if (0 == this.q.subtract(C2.ONE).gcd(n22).compareTo(C2.ONE) && this.q.isProbablePrime(10)) + break; + } + if (this.p.compareTo(this.q) <= 0) { + var s22 = this.p; + this.p = this.q; + this.q = s22; + } + var a22 = this.p.subtract(C2.ONE); + var o22 = this.q.subtract(C2.ONE); + var u22 = a22.multiply(o22); + if (0 == u22.gcd(n22).compareTo(C2.ONE)) { + this.n = this.p.multiply(this.q); + this.d = n22.modInverse(u22); + this.dmp1 = this.d.mod(a22); + this.dmq1 = this.d.mod(o22); + this.coeff = this.q.modInverse(this.p); + break; + } + } + }; + t3.prototype.decrypt = function(t4) { + var e3 = U2(t4, 16); + var r3 = this.doPrivate(e3); + if (null == r3) + return null; + return ct2(r3, this.n.bitLength() + 7 >> 3); + }; + t3.prototype.generateAsync = function(t4, e3, r3) { + var i3 = new st2(); + var n22 = t4 >> 1; + this.e = parseInt(e3, 16); + var s22 = new C2(e3, 16); + var a22 = this; + var o22 = function() { + var e4 = function() { + if (a22.p.compareTo(a22.q) <= 0) { + var t5 = a22.p; + a22.p = a22.q; + a22.q = t5; + } + var e5 = a22.p.subtract(C2.ONE); + var i4 = a22.q.subtract(C2.ONE); + var n3 = e5.multiply(i4); + if (0 == n3.gcd(s22).compareTo(C2.ONE)) { + a22.n = a22.p.multiply(a22.q); + a22.d = s22.modInverse(n3); + a22.dmp1 = a22.d.mod(e5); + a22.dmq1 = a22.d.mod(i4); + a22.coeff = a22.q.modInverse(a22.p); + setTimeout(function() { + r3(); + }, 0); + } else + setTimeout(o22, 0); + }; + var u22 = function() { + a22.q = H2(); + a22.q.fromNumberAsync(n22, 1, i3, function() { + a22.q.subtract(C2.ONE).gcda(s22, function(t5) { + if (0 == t5.compareTo(C2.ONE) && a22.q.isProbablePrime(10)) + setTimeout(e4, 0); + else + setTimeout(u22, 0); + }); + }); + }; + var c22 = function() { + a22.p = H2(); + a22.p.fromNumberAsync(t4 - n22, 1, i3, function() { + a22.p.subtract(C2.ONE).gcda(s22, function(t5) { + if (0 == t5.compareTo(C2.ONE) && a22.p.isProbablePrime(10)) + setTimeout(u22, 0); + else + setTimeout(c22, 0); + }); + }); + }; + setTimeout(c22, 0); + }; + setTimeout(o22, 0); + }; + t3.prototype.sign = function(t4, e3, r3) { + var i3 = ht2(r3); + var n22 = i3 + e3(t4).toString(); + var s22 = at2(n22, this.n.bitLength() / 4); + if (null == s22) + return null; + var a22 = this.doPrivate(s22); + if (null == a22) + return null; + var o22 = a22.toString(16); + if (0 == (1 & o22.length)) + return o22; + else + return "0" + o22; + }; + t3.prototype.verify = function(t4, e3, r3) { + var i3 = U2(e3, 16); + var n22 = this.doPublic(i3); + if (null == n22) + return null; + var s22 = n22.toString(16).replace(/^1f+00/, ""); + var a22 = dt2(s22); + return a22 == r3(t4).toString(); + }; + t3.prototype.encryptLong = function(t4) { + var e3 = this; + var r3 = ""; + var i3 = (this.n.bitLength() + 7 >> 3) - 11; + var n22 = this.setSplitChn(t4, i3); + n22.forEach(function(t5) { + r3 += e3.encrypt(t5); + }); + return r3; + }; + t3.prototype.decryptLong = function(t4) { + var e3 = ""; + var r3 = this.n.bitLength() + 7 >> 3; + var i3 = 2 * r3; + if (t4.length > i3) { + var n22 = t4.match(new RegExp(".{1," + i3 + "}", "g")) || []; + var s22 = []; + for (var a22 = 0; a22 < n22.length; a22++) { + var o22 = U2(n22[a22], 16); + var u22 = this.doPrivate(o22); + if (null == u22) + return null; + s22.push(u22); + } + e3 = lt2(s22, r3); + } else + e3 = this.decrypt(t4); + return e3; + }; + t3.prototype.setSplitChn = function(t4, e3, r3) { + if (void 0 === r3) + r3 = []; + var i3 = t4.split(""); + var n22 = 0; + for (var s22 = 0; s22 < i3.length; s22++) { + var a22 = i3[s22].charCodeAt(0); + if (a22 <= 127) + n22 += 1; + else if (a22 <= 2047) + n22 += 2; + else if (a22 <= 65535) + n22 += 3; + else + n22 += 4; + if (n22 > e3) { + var o22 = t4.substring(0, s22); + r3.push(o22); + return this.setSplitChn(t4.substring(s22), e3, r3); + } + } + r3.push(t4); + return r3; + }; + return t3; + }(); + function ct2(t3, e3) { + var r3 = t3.toByteArray(); + var i3 = 0; + while (i3 < r3.length && 0 == r3[i3]) + ++i3; + if (r3.length - i3 != e3 - 1 || 2 != r3[i3]) + return null; + ++i3; + while (0 != r3[i3]) + if (++i3 >= r3.length) + return null; + var n22 = ""; + while (++i3 < r3.length) { + var s22 = 255 & r3[i3]; + if (s22 < 128) + n22 += String.fromCharCode(s22); + else if (s22 > 191 && s22 < 224) { + n22 += String.fromCharCode((31 & s22) << 6 | 63 & r3[i3 + 1]); + ++i3; + } else { + n22 += String.fromCharCode((15 & s22) << 12 | (63 & r3[i3 + 1]) << 6 | 63 & r3[i3 + 2]); + i3 += 2; + } + } + return n22; + } + function lt2(t3, e3) { + var r3 = []; + for (var i3 = 0; i3 < t3.length; i3++) { + var n22 = t3[i3]; + var s22 = n22.toByteArray(); + var a22 = 0; + while (a22 < s22.length && 0 == s22[a22]) + ++a22; + if (s22.length - a22 != e3 - 1 || 2 != s22[a22]) + return null; + ++a22; + while (0 != s22[a22]) + if (++a22 >= s22.length) + return null; + r3 = r3.concat(s22.slice(a22 + 1)); + } + var o22 = r3; + var u22 = -1; + var c22 = ""; + while (++u22 < o22.length) { + var l22 = 255 & o22[u22]; + if (l22 < 128) + c22 += String.fromCharCode(l22); + else if (l22 > 191 && l22 < 224) { + c22 += String.fromCharCode((31 & l22) << 6 | 63 & o22[u22 + 1]); + ++u22; + } else { + c22 += String.fromCharCode((15 & l22) << 12 | (63 & o22[u22 + 1]) << 6 | 63 & o22[u22 + 2]); + u22 += 2; + } + } + return c22; + } + var ft2 = { md2: "3020300c06082a864886f70d020205000410", md5: "3020300c06082a864886f70d020505000410", sha1: "3021300906052b0e03021a05000414", sha224: "302d300d06096086480165030402040500041c", sha256: "3031300d060960864801650304020105000420", sha384: "3041300d060960864801650304020205000430", sha512: "3051300d060960864801650304020305000440", ripemd160: "3021300906052b2403020105000414" }; + function ht2(t3) { + return ft2[t3] || ""; + } + function dt2(t3) { + for (var e3 in ft2) + if (ft2.hasOwnProperty(e3)) { + var r3 = ft2[e3]; + var i3 = r3.length; + if (t3.substr(0, i3) == r3) + return t3.substr(i3); + } + return t3; + } + var vt2 = {}; + vt2.lang = { extend: function(t3, e3, r3) { + if (!e3 || !t3) + throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included."); + var i3 = function() { + }; + i3.prototype = e3.prototype; + t3.prototype = new i3(); + t3.prototype.constructor = t3; + t3.superclass = e3.prototype; + if (e3.prototype.constructor == Object.prototype.constructor) + e3.prototype.constructor = e3; + if (r3) { + var n22; + for (n22 in r3) + t3.prototype[n22] = r3[n22]; + var s22 = function() { + }, a22 = ["toString", "valueOf"]; + try { + if (/MSIE/.test(navigator.userAgent)) + s22 = function(t4, e4) { + for (n22 = 0; n22 < a22.length; n22 += 1) { + var r4 = a22[n22], i4 = e4[r4]; + if ("function" === typeof i4 && i4 != Object.prototype[r4]) + t4[r4] = i4; + } + }; + } catch (t4) { + } + s22(t3.prototype, r3); + } + } }; + var pt2 = {}; + if ("undefined" == typeof pt2.asn1 || !pt2.asn1) + pt2.asn1 = {}; + pt2.asn1.ASN1Util = new function() { + this.integerToByteHex = function(t3) { + var e3 = t3.toString(16); + if (e3.length % 2 == 1) + e3 = "0" + e3; + return e3; + }; + this.bigIntToMinTwosComplementsHex = function(t3) { + var e3 = t3.toString(16); + if ("-" != e3.substr(0, 1)) { + if (e3.length % 2 == 1) + e3 = "0" + e3; + else if (!e3.match(/^[0-7]/)) + e3 = "00" + e3; + } else { + var r3 = e3.substr(1); + var i3 = r3.length; + if (i3 % 2 == 1) + i3 += 1; + else if (!e3.match(/^[0-7]/)) + i3 += 2; + var n22 = ""; + for (var s22 = 0; s22 < i3; s22++) + n22 += "f"; + var a22 = new C2(n22, 16); + var o22 = a22.xor(t3).add(C2.ONE); + e3 = o22.toString(16).replace(/^-/, ""); + } + return e3; + }; + this.getPEMStringFromHex = function(t3, e3) { + return hextopem(t3, e3); + }; + this.newObject = function(t3) { + var e3 = pt2, r3 = e3.asn1, i3 = r3.DERBoolean, n22 = r3.DERInteger, s22 = r3.DERBitString, a22 = r3.DEROctetString, o22 = r3.DERNull, u22 = r3.DERObjectIdentifier, c22 = r3.DEREnumerated, l22 = r3.DERUTF8String, f22 = r3.DERNumericString, h22 = r3.DERPrintableString, d22 = r3.DERTeletexString, v22 = r3.DERIA5String, p2 = r3.DERUTCTime, g22 = r3.DERGeneralizedTime, y22 = r3.DERSequence, m22 = r3.DERSet, w22 = r3.DERTaggedObject, S22 = r3.ASN1Util.newObject; + var _22 = Object.keys(t3); + if (1 != _22.length) + throw "key of param shall be only one."; + var b22 = _22[0]; + if (-1 == ":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":" + b22 + ":")) + throw "undefined key: " + b22; + if ("bool" == b22) + return new i3(t3[b22]); + if ("int" == b22) + return new n22(t3[b22]); + if ("bitstr" == b22) + return new s22(t3[b22]); + if ("octstr" == b22) + return new a22(t3[b22]); + if ("null" == b22) + return new o22(t3[b22]); + if ("oid" == b22) + return new u22(t3[b22]); + if ("enum" == b22) + return new c22(t3[b22]); + if ("utf8str" == b22) + return new l22(t3[b22]); + if ("numstr" == b22) + return new f22(t3[b22]); + if ("prnstr" == b22) + return new h22(t3[b22]); + if ("telstr" == b22) + return new d22(t3[b22]); + if ("ia5str" == b22) + return new v22(t3[b22]); + if ("utctime" == b22) + return new p2(t3[b22]); + if ("gentime" == b22) + return new g22(t3[b22]); + if ("seq" == b22) { + var E22 = t3[b22]; + var D22 = []; + for (var M22 = 0; M22 < E22.length; M22++) { + var T22 = S22(E22[M22]); + D22.push(T22); + } + return new y22({ array: D22 }); + } + if ("set" == b22) { + var E22 = t3[b22]; + var D22 = []; + for (var M22 = 0; M22 < E22.length; M22++) { + var T22 = S22(E22[M22]); + D22.push(T22); + } + return new m22({ array: D22 }); + } + if ("tag" == b22) { + var I22 = t3[b22]; + if ("[object Array]" === Object.prototype.toString.call(I22) && 3 == I22.length) { + var A22 = S22(I22[2]); + return new w22({ tag: I22[0], explicit: I22[1], obj: A22 }); + } else { + var x2 = {}; + if (void 0 !== I22.explicit) + x2.explicit = I22.explicit; + if (void 0 !== I22.tag) + x2.tag = I22.tag; + if (void 0 === I22.obj) + throw "obj shall be specified for 'tag'."; + x2.obj = S22(I22.obj); + return new w22(x2); + } + } + }; + this.jsonToASN1HEX = function(t3) { + var e3 = this.newObject(t3); + return e3.getEncodedHex(); + }; + }(); + pt2.asn1.ASN1Util.oidHexToInt = function(t3) { + var e3 = ""; + var r3 = parseInt(t3.substr(0, 2), 16); + var i3 = Math.floor(r3 / 40); + var n22 = r3 % 40; + var e3 = i3 + "." + n22; + var s22 = ""; + for (var a22 = 2; a22 < t3.length; a22 += 2) { + var o22 = parseInt(t3.substr(a22, 2), 16); + var u22 = ("00000000" + o22.toString(2)).slice(-8); + s22 += u22.substr(1, 7); + if ("0" == u22.substr(0, 1)) { + var c22 = new C2(s22, 2); + e3 = e3 + "." + c22.toString(10); + s22 = ""; + } + } + return e3; + }; + pt2.asn1.ASN1Util.oidIntToHex = function(t3) { + var e3 = function(t4) { + var e4 = t4.toString(16); + if (1 == e4.length) + e4 = "0" + e4; + return e4; + }; + var r3 = function(t4) { + var r4 = ""; + var i4 = new C2(t4, 10); + var n3 = i4.toString(2); + var s3 = 7 - n3.length % 7; + if (7 == s3) + s3 = 0; + var a3 = ""; + for (var o22 = 0; o22 < s3; o22++) + a3 += "0"; + n3 = a3 + n3; + for (var o22 = 0; o22 < n3.length - 1; o22 += 7) { + var u22 = n3.substr(o22, 7); + if (o22 != n3.length - 7) + u22 = "1" + u22; + r4 += e3(parseInt(u22, 2)); + } + return r4; + }; + if (!t3.match(/^[0-9.]+$/)) + throw "malformed oid string: " + t3; + var i3 = ""; + var n22 = t3.split("."); + var s22 = 40 * parseInt(n22[0]) + parseInt(n22[1]); + i3 += e3(s22); + n22.splice(0, 2); + for (var a22 = 0; a22 < n22.length; a22++) + i3 += r3(n22[a22]); + return i3; + }; + pt2.asn1.ASN1Object = function() { + var n22 = ""; + this.getLengthHexFromValue = function() { + if ("undefined" == typeof this.hV || null == this.hV) + throw "this.hV is null or undefined."; + if (this.hV.length % 2 == 1) + throw "value hex must be even length: n=" + n22.length + ",v=" + this.hV; + var t3 = this.hV.length / 2; + var e3 = t3.toString(16); + if (e3.length % 2 == 1) + e3 = "0" + e3; + if (t3 < 128) + return e3; + else { + var r3 = e3.length / 2; + if (r3 > 15) + throw "ASN.1 length too long to represent by 8x: n = " + t3.toString(16); + var i3 = 128 + r3; + return i3.toString(16) + e3; + } + }; + this.getEncodedHex = function() { + if (null == this.hTLV || this.isModified) { + this.hV = this.getFreshValueHex(); + this.hL = this.getLengthHexFromValue(); + this.hTLV = this.hT + this.hL + this.hV; + this.isModified = false; + } + return this.hTLV; + }; + this.getValueHex = function() { + this.getEncodedHex(); + return this.hV; + }; + this.getFreshValueHex = function() { + return ""; + }; + }; + pt2.asn1.DERAbstractString = function(t3) { + pt2.asn1.DERAbstractString.superclass.constructor.call(this); + this.getString = function() { + return this.s; + }; + this.setString = function(t4) { + this.hTLV = null; + this.isModified = true; + this.s = t4; + this.hV = stohex(this.s); + }; + this.setStringHex = function(t4) { + this.hTLV = null; + this.isModified = true; + this.s = null; + this.hV = t4; + }; + this.getFreshValueHex = function() { + return this.hV; + }; + if ("undefined" != typeof t3) { + if ("string" == typeof t3) + this.setString(t3); + else if ("undefined" != typeof t3["str"]) + this.setString(t3["str"]); + else if ("undefined" != typeof t3["hex"]) + this.setStringHex(t3["hex"]); + } + }; + vt2.lang.extend(pt2.asn1.DERAbstractString, pt2.asn1.ASN1Object); + pt2.asn1.DERAbstractTime = function(t3) { + pt2.asn1.DERAbstractTime.superclass.constructor.call(this); + this.localDateToUTC = function(t4) { + utc = t4.getTime() + 6e4 * t4.getTimezoneOffset(); + var e3 = new Date(utc); + return e3; + }; + this.formatDate = function(t4, e3, r3) { + var i3 = this.zeroPadding; + var n22 = this.localDateToUTC(t4); + var s22 = String(n22.getFullYear()); + if ("utc" == e3) + s22 = s22.substr(2, 2); + var a22 = i3(String(n22.getMonth() + 1), 2); + var o22 = i3(String(n22.getDate()), 2); + var u22 = i3(String(n22.getHours()), 2); + var c22 = i3(String(n22.getMinutes()), 2); + var l22 = i3(String(n22.getSeconds()), 2); + var f22 = s22 + a22 + o22 + u22 + c22 + l22; + if (true === r3) { + var h22 = n22.getMilliseconds(); + if (0 != h22) { + var d22 = i3(String(h22), 3); + d22 = d22.replace(/[0]+$/, ""); + f22 = f22 + "." + d22; + } + } + return f22 + "Z"; + }; + this.zeroPadding = function(t4, e3) { + if (t4.length >= e3) + return t4; + return new Array(e3 - t4.length + 1).join("0") + t4; + }; + this.getString = function() { + return this.s; + }; + this.setString = function(t4) { + this.hTLV = null; + this.isModified = true; + this.s = t4; + this.hV = stohex(t4); + }; + this.setByDateValue = function(t4, e3, r3, i3, n22, s22) { + var a22 = new Date(Date.UTC(t4, e3 - 1, r3, i3, n22, s22, 0)); + this.setByDate(a22); + }; + this.getFreshValueHex = function() { + return this.hV; + }; + }; + vt2.lang.extend(pt2.asn1.DERAbstractTime, pt2.asn1.ASN1Object); + pt2.asn1.DERAbstractStructured = function(t3) { + pt2.asn1.DERAbstractString.superclass.constructor.call(this); + this.setByASN1ObjectArray = function(t4) { + this.hTLV = null; + this.isModified = true; + this.asn1Array = t4; + }; + this.appendASN1Object = function(t4) { + this.hTLV = null; + this.isModified = true; + this.asn1Array.push(t4); + }; + this.asn1Array = new Array(); + if ("undefined" != typeof t3) { + if ("undefined" != typeof t3["array"]) + this.asn1Array = t3["array"]; + } + }; + vt2.lang.extend(pt2.asn1.DERAbstractStructured, pt2.asn1.ASN1Object); + pt2.asn1.DERBoolean = function() { + pt2.asn1.DERBoolean.superclass.constructor.call(this); + this.hT = "01"; + this.hTLV = "0101ff"; + }; + vt2.lang.extend(pt2.asn1.DERBoolean, pt2.asn1.ASN1Object); + pt2.asn1.DERInteger = function(t3) { + pt2.asn1.DERInteger.superclass.constructor.call(this); + this.hT = "02"; + this.setByBigInteger = function(t4) { + this.hTLV = null; + this.isModified = true; + this.hV = pt2.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t4); + }; + this.setByInteger = function(t4) { + var e3 = new C2(String(t4), 10); + this.setByBigInteger(e3); + }; + this.setValueHex = function(t4) { + this.hV = t4; + }; + this.getFreshValueHex = function() { + return this.hV; + }; + if ("undefined" != typeof t3) { + if ("undefined" != typeof t3["bigint"]) + this.setByBigInteger(t3["bigint"]); + else if ("undefined" != typeof t3["int"]) + this.setByInteger(t3["int"]); + else if ("number" == typeof t3) + this.setByInteger(t3); + else if ("undefined" != typeof t3["hex"]) + this.setValueHex(t3["hex"]); + } + }; + vt2.lang.extend(pt2.asn1.DERInteger, pt2.asn1.ASN1Object); + pt2.asn1.DERBitString = function(t3) { + if (void 0 !== t3 && "undefined" !== typeof t3.obj) { + var e3 = pt2.asn1.ASN1Util.newObject(t3.obj); + t3.hex = "00" + e3.getEncodedHex(); + } + pt2.asn1.DERBitString.superclass.constructor.call(this); + this.hT = "03"; + this.setHexValueIncludingUnusedBits = function(t4) { + this.hTLV = null; + this.isModified = true; + this.hV = t4; + }; + this.setUnusedBitsAndHexValue = function(t4, e4) { + if (t4 < 0 || 7 < t4) + throw "unused bits shall be from 0 to 7: u = " + t4; + var r3 = "0" + t4; + this.hTLV = null; + this.isModified = true; + this.hV = r3 + e4; + }; + this.setByBinaryString = function(t4) { + t4 = t4.replace(/0+$/, ""); + var e4 = 8 - t4.length % 8; + if (8 == e4) + e4 = 0; + for (var r3 = 0; r3 <= e4; r3++) + t4 += "0"; + var i3 = ""; + for (var r3 = 0; r3 < t4.length - 1; r3 += 8) { + var n22 = t4.substr(r3, 8); + var s22 = parseInt(n22, 2).toString(16); + if (1 == s22.length) + s22 = "0" + s22; + i3 += s22; + } + this.hTLV = null; + this.isModified = true; + this.hV = "0" + e4 + i3; + }; + this.setByBooleanArray = function(t4) { + var e4 = ""; + for (var r3 = 0; r3 < t4.length; r3++) + if (true == t4[r3]) + e4 += "1"; + else + e4 += "0"; + this.setByBinaryString(e4); + }; + this.newFalseArray = function(t4) { + var e4 = new Array(t4); + for (var r3 = 0; r3 < t4; r3++) + e4[r3] = false; + return e4; + }; + this.getFreshValueHex = function() { + return this.hV; + }; + if ("undefined" != typeof t3) { + if ("string" == typeof t3 && t3.toLowerCase().match(/^[0-9a-f]+$/)) + this.setHexValueIncludingUnusedBits(t3); + else if ("undefined" != typeof t3["hex"]) + this.setHexValueIncludingUnusedBits(t3["hex"]); + else if ("undefined" != typeof t3["bin"]) + this.setByBinaryString(t3["bin"]); + else if ("undefined" != typeof t3["array"]) + this.setByBooleanArray(t3["array"]); + } + }; + vt2.lang.extend(pt2.asn1.DERBitString, pt2.asn1.ASN1Object); + pt2.asn1.DEROctetString = function(t3) { + if (void 0 !== t3 && "undefined" !== typeof t3.obj) { + var e3 = pt2.asn1.ASN1Util.newObject(t3.obj); + t3.hex = e3.getEncodedHex(); + } + pt2.asn1.DEROctetString.superclass.constructor.call(this, t3); + this.hT = "04"; + }; + vt2.lang.extend(pt2.asn1.DEROctetString, pt2.asn1.DERAbstractString); + pt2.asn1.DERNull = function() { + pt2.asn1.DERNull.superclass.constructor.call(this); + this.hT = "05"; + this.hTLV = "0500"; + }; + vt2.lang.extend(pt2.asn1.DERNull, pt2.asn1.ASN1Object); + pt2.asn1.DERObjectIdentifier = function(t3) { + var e3 = function(t4) { + var e4 = t4.toString(16); + if (1 == e4.length) + e4 = "0" + e4; + return e4; + }; + var r3 = function(t4) { + var r4 = ""; + var i3 = new C2(t4, 10); + var n22 = i3.toString(2); + var s22 = 7 - n22.length % 7; + if (7 == s22) + s22 = 0; + var a22 = ""; + for (var o22 = 0; o22 < s22; o22++) + a22 += "0"; + n22 = a22 + n22; + for (var o22 = 0; o22 < n22.length - 1; o22 += 7) { + var u22 = n22.substr(o22, 7); + if (o22 != n22.length - 7) + u22 = "1" + u22; + r4 += e3(parseInt(u22, 2)); + } + return r4; + }; + pt2.asn1.DERObjectIdentifier.superclass.constructor.call(this); + this.hT = "06"; + this.setValueHex = function(t4) { + this.hTLV = null; + this.isModified = true; + this.s = null; + this.hV = t4; + }; + this.setValueOidString = function(t4) { + if (!t4.match(/^[0-9.]+$/)) + throw "malformed oid string: " + t4; + var i3 = ""; + var n22 = t4.split("."); + var s22 = 40 * parseInt(n22[0]) + parseInt(n22[1]); + i3 += e3(s22); + n22.splice(0, 2); + for (var a22 = 0; a22 < n22.length; a22++) + i3 += r3(n22[a22]); + this.hTLV = null; + this.isModified = true; + this.s = null; + this.hV = i3; + }; + this.setValueName = function(t4) { + var e4 = pt2.asn1.x509.OID.name2oid(t4); + if ("" !== e4) + this.setValueOidString(e4); + else + throw "DERObjectIdentifier oidName undefined: " + t4; + }; + this.getFreshValueHex = function() { + return this.hV; + }; + if (void 0 !== t3) { + if ("string" === typeof t3) + if (t3.match(/^[0-2].[0-9.]+$/)) + this.setValueOidString(t3); + else + this.setValueName(t3); + else if (void 0 !== t3.oid) + this.setValueOidString(t3.oid); + else if (void 0 !== t3.hex) + this.setValueHex(t3.hex); + else if (void 0 !== t3.name) + this.setValueName(t3.name); + } + }; + vt2.lang.extend(pt2.asn1.DERObjectIdentifier, pt2.asn1.ASN1Object); + pt2.asn1.DEREnumerated = function(t3) { + pt2.asn1.DEREnumerated.superclass.constructor.call(this); + this.hT = "0a"; + this.setByBigInteger = function(t4) { + this.hTLV = null; + this.isModified = true; + this.hV = pt2.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t4); + }; + this.setByInteger = function(t4) { + var e3 = new C2(String(t4), 10); + this.setByBigInteger(e3); + }; + this.setValueHex = function(t4) { + this.hV = t4; + }; + this.getFreshValueHex = function() { + return this.hV; + }; + if ("undefined" != typeof t3) { + if ("undefined" != typeof t3["int"]) + this.setByInteger(t3["int"]); + else if ("number" == typeof t3) + this.setByInteger(t3); + else if ("undefined" != typeof t3["hex"]) + this.setValueHex(t3["hex"]); + } + }; + vt2.lang.extend(pt2.asn1.DEREnumerated, pt2.asn1.ASN1Object); + pt2.asn1.DERUTF8String = function(t3) { + pt2.asn1.DERUTF8String.superclass.constructor.call(this, t3); + this.hT = "0c"; + }; + vt2.lang.extend(pt2.asn1.DERUTF8String, pt2.asn1.DERAbstractString); + pt2.asn1.DERNumericString = function(t3) { + pt2.asn1.DERNumericString.superclass.constructor.call(this, t3); + this.hT = "12"; + }; + vt2.lang.extend(pt2.asn1.DERNumericString, pt2.asn1.DERAbstractString); + pt2.asn1.DERPrintableString = function(t3) { + pt2.asn1.DERPrintableString.superclass.constructor.call(this, t3); + this.hT = "13"; + }; + vt2.lang.extend(pt2.asn1.DERPrintableString, pt2.asn1.DERAbstractString); + pt2.asn1.DERTeletexString = function(t3) { + pt2.asn1.DERTeletexString.superclass.constructor.call(this, t3); + this.hT = "14"; + }; + vt2.lang.extend(pt2.asn1.DERTeletexString, pt2.asn1.DERAbstractString); + pt2.asn1.DERIA5String = function(t3) { + pt2.asn1.DERIA5String.superclass.constructor.call(this, t3); + this.hT = "16"; + }; + vt2.lang.extend(pt2.asn1.DERIA5String, pt2.asn1.DERAbstractString); + pt2.asn1.DERUTCTime = function(t3) { + pt2.asn1.DERUTCTime.superclass.constructor.call(this, t3); + this.hT = "17"; + this.setByDate = function(t4) { + this.hTLV = null; + this.isModified = true; + this.date = t4; + this.s = this.formatDate(this.date, "utc"); + this.hV = stohex(this.s); + }; + this.getFreshValueHex = function() { + if ("undefined" == typeof this.date && "undefined" == typeof this.s) { + this.date = /* @__PURE__ */ new Date(); + this.s = this.formatDate(this.date, "utc"); + this.hV = stohex(this.s); + } + return this.hV; + }; + if (void 0 !== t3) { + if (void 0 !== t3.str) + this.setString(t3.str); + else if ("string" == typeof t3 && t3.match(/^[0-9]{12}Z$/)) + this.setString(t3); + else if (void 0 !== t3.hex) + this.setStringHex(t3.hex); + else if (void 0 !== t3.date) + this.setByDate(t3.date); + } + }; + vt2.lang.extend(pt2.asn1.DERUTCTime, pt2.asn1.DERAbstractTime); + pt2.asn1.DERGeneralizedTime = function(t3) { + pt2.asn1.DERGeneralizedTime.superclass.constructor.call(this, t3); + this.hT = "18"; + this.withMillis = false; + this.setByDate = function(t4) { + this.hTLV = null; + this.isModified = true; + this.date = t4; + this.s = this.formatDate(this.date, "gen", this.withMillis); + this.hV = stohex(this.s); + }; + this.getFreshValueHex = function() { + if (void 0 === this.date && void 0 === this.s) { + this.date = /* @__PURE__ */ new Date(); + this.s = this.formatDate(this.date, "gen", this.withMillis); + this.hV = stohex(this.s); + } + return this.hV; + }; + if (void 0 !== t3) { + if (void 0 !== t3.str) + this.setString(t3.str); + else if ("string" == typeof t3 && t3.match(/^[0-9]{14}Z$/)) + this.setString(t3); + else if (void 0 !== t3.hex) + this.setStringHex(t3.hex); + else if (void 0 !== t3.date) + this.setByDate(t3.date); + if (true === t3.millis) + this.withMillis = true; + } + }; + vt2.lang.extend(pt2.asn1.DERGeneralizedTime, pt2.asn1.DERAbstractTime); + pt2.asn1.DERSequence = function(t3) { + pt2.asn1.DERSequence.superclass.constructor.call(this, t3); + this.hT = "30"; + this.getFreshValueHex = function() { + var t4 = ""; + for (var e3 = 0; e3 < this.asn1Array.length; e3++) { + var r3 = this.asn1Array[e3]; + t4 += r3.getEncodedHex(); + } + this.hV = t4; + return this.hV; + }; + }; + vt2.lang.extend(pt2.asn1.DERSequence, pt2.asn1.DERAbstractStructured); + pt2.asn1.DERSet = function(t3) { + pt2.asn1.DERSet.superclass.constructor.call(this, t3); + this.hT = "31"; + this.sortFlag = true; + this.getFreshValueHex = function() { + var t4 = new Array(); + for (var e3 = 0; e3 < this.asn1Array.length; e3++) { + var r3 = this.asn1Array[e3]; + t4.push(r3.getEncodedHex()); + } + if (true == this.sortFlag) + t4.sort(); + this.hV = t4.join(""); + return this.hV; + }; + if ("undefined" != typeof t3) { + if ("undefined" != typeof t3.sortflag && false == t3.sortflag) + this.sortFlag = false; + } + }; + vt2.lang.extend(pt2.asn1.DERSet, pt2.asn1.DERAbstractStructured); + pt2.asn1.DERTaggedObject = function(t3) { + pt2.asn1.DERTaggedObject.superclass.constructor.call(this); + this.hT = "a0"; + this.hV = ""; + this.isExplicit = true; + this.asn1Object = null; + this.setASN1Object = function(t4, e3, r3) { + this.hT = e3; + this.isExplicit = t4; + this.asn1Object = r3; + if (this.isExplicit) { + this.hV = this.asn1Object.getEncodedHex(); + this.hTLV = null; + this.isModified = true; + } else { + this.hV = null; + this.hTLV = r3.getEncodedHex(); + this.hTLV = this.hTLV.replace(/^../, e3); + this.isModified = false; + } + }; + this.getFreshValueHex = function() { + return this.hV; + }; + if ("undefined" != typeof t3) { + if ("undefined" != typeof t3["tag"]) + this.hT = t3["tag"]; + if ("undefined" != typeof t3["explicit"]) + this.isExplicit = t3["explicit"]; + if ("undefined" != typeof t3["obj"]) { + this.asn1Object = t3["obj"]; + this.setASN1Object(this.isExplicit, this.hT, this.asn1Object); + } + } + }; + vt2.lang.extend(pt2.asn1.DERTaggedObject, pt2.asn1.ASN1Object); + var gt2 = /* @__PURE__ */ function() { + var t3 = function(e3, r3) { + t3 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t4, e4) { + t4.__proto__ = e4; + } || function(t4, e4) { + for (var r4 in e4) + if (Object.prototype.hasOwnProperty.call(e4, r4)) + t4[r4] = e4[r4]; + }; + return t3(e3, r3); + }; + return function(e3, r3) { + if ("function" !== typeof r3 && null !== r3) + throw new TypeError("Class extends value " + String(r3) + " is not a constructor or null"); + t3(e3, r3); + function i3() { + this.constructor = e3; + } + e3.prototype = null === r3 ? Object.create(r3) : (i3.prototype = r3.prototype, new i3()); + }; + }(); + var yt2 = function(t3) { + gt2(e3, t3); + function e3(r3) { + var i3 = t3.call(this) || this; + if (r3) { + if ("string" === typeof r3) + i3.parseKey(r3); + else if (e3.hasPrivateKeyProperty(r3) || e3.hasPublicKeyProperty(r3)) + i3.parsePropertiesFrom(r3); + } + return i3; + } + e3.prototype.parseKey = function(t4) { + try { + var e4 = 0; + var r3 = 0; + var i3 = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/; + var n22 = i3.test(t4) ? y2.decode(t4) : w2.unarmor(t4); + var s22 = I2.decode(n22); + if (3 === s22.sub.length) + s22 = s22.sub[2].sub[0]; + if (9 === s22.sub.length) { + e4 = s22.sub[1].getHexStringValue(); + this.n = U2(e4, 16); + r3 = s22.sub[2].getHexStringValue(); + this.e = parseInt(r3, 16); + var a22 = s22.sub[3].getHexStringValue(); + this.d = U2(a22, 16); + var o22 = s22.sub[4].getHexStringValue(); + this.p = U2(o22, 16); + var u22 = s22.sub[5].getHexStringValue(); + this.q = U2(u22, 16); + var c22 = s22.sub[6].getHexStringValue(); + this.dmp1 = U2(c22, 16); + var l22 = s22.sub[7].getHexStringValue(); + this.dmq1 = U2(l22, 16); + var f22 = s22.sub[8].getHexStringValue(); + this.coeff = U2(f22, 16); + } else if (2 === s22.sub.length) { + var h22 = s22.sub[1]; + var d22 = h22.sub[0]; + e4 = d22.sub[0].getHexStringValue(); + this.n = U2(e4, 16); + r3 = d22.sub[1].getHexStringValue(); + this.e = parseInt(r3, 16); + } else + return false; + return true; + } catch (t5) { + return false; + } + }; + e3.prototype.getPrivateBaseKey = function() { + var t4 = { array: [new pt2.asn1.DERInteger({ int: 0 }), new pt2.asn1.DERInteger({ bigint: this.n }), new pt2.asn1.DERInteger({ int: this.e }), new pt2.asn1.DERInteger({ bigint: this.d }), new pt2.asn1.DERInteger({ bigint: this.p }), new pt2.asn1.DERInteger({ bigint: this.q }), new pt2.asn1.DERInteger({ bigint: this.dmp1 }), new pt2.asn1.DERInteger({ bigint: this.dmq1 }), new pt2.asn1.DERInteger({ bigint: this.coeff })] }; + var e4 = new pt2.asn1.DERSequence(t4); + return e4.getEncodedHex(); + }; + e3.prototype.getPrivateBaseKeyB64 = function() { + return d2(this.getPrivateBaseKey()); + }; + e3.prototype.getPublicBaseKey = function() { + var t4 = new pt2.asn1.DERSequence({ array: [new pt2.asn1.DERObjectIdentifier({ oid: "1.2.840.113549.1.1.1" }), new pt2.asn1.DERNull()] }); + var e4 = new pt2.asn1.DERSequence({ array: [new pt2.asn1.DERInteger({ bigint: this.n }), new pt2.asn1.DERInteger({ int: this.e })] }); + var r3 = new pt2.asn1.DERBitString({ hex: "00" + e4.getEncodedHex() }); + var i3 = new pt2.asn1.DERSequence({ array: [t4, r3] }); + return i3.getEncodedHex(); + }; + e3.prototype.getPublicBaseKeyB64 = function() { + return d2(this.getPublicBaseKey()); + }; + e3.wordwrap = function(t4, e4) { + e4 = e4 || 64; + if (!t4) + return t4; + var r3 = "(.{1," + e4 + "})( +|$\n?)|(.{1," + e4 + "})"; + return t4.match(RegExp(r3, "g")).join("\n"); + }; + e3.prototype.getPrivateKey = function() { + var t4 = "-----BEGIN RSA PRIVATE KEY-----\n"; + t4 += e3.wordwrap(this.getPrivateBaseKeyB64()) + "\n"; + t4 += "-----END RSA PRIVATE KEY-----"; + return t4; + }; + e3.prototype.getPublicKey = function() { + var t4 = "-----BEGIN PUBLIC KEY-----\n"; + t4 += e3.wordwrap(this.getPublicBaseKeyB64()) + "\n"; + t4 += "-----END PUBLIC KEY-----"; + return t4; + }; + e3.hasPublicKeyProperty = function(t4) { + t4 = t4 || {}; + return t4.hasOwnProperty("n") && t4.hasOwnProperty("e"); + }; + e3.hasPrivateKeyProperty = function(t4) { + t4 = t4 || {}; + return t4.hasOwnProperty("n") && t4.hasOwnProperty("e") && t4.hasOwnProperty("d") && t4.hasOwnProperty("p") && t4.hasOwnProperty("q") && t4.hasOwnProperty("dmp1") && t4.hasOwnProperty("dmq1") && t4.hasOwnProperty("coeff"); + }; + e3.prototype.parsePropertiesFrom = function(t4) { + this.n = t4.n; + this.e = t4.e; + if (t4.hasOwnProperty("d")) { + this.d = t4.d; + this.p = t4.p; + this.q = t4.q; + this.dmp1 = t4.dmp1; + this.dmq1 = t4.dmq1; + this.coeff = t4.coeff; + } + }; + return e3; + }(ut2); + const mt2 = { i: "3.2.1" }; + var wt2 = function() { + function t3(t4) { + if (void 0 === t4) + t4 = {}; + t4 = t4 || {}; + this.default_key_size = t4.default_key_size ? parseInt(t4.default_key_size, 10) : 1024; + this.default_public_exponent = t4.default_public_exponent || "010001"; + this.log = t4.log || false; + this.key = null; + } + t3.prototype.setKey = function(t4) { + if (this.log && this.key) + console.warn("A key was already set, overriding existing."); + this.key = new yt2(t4); + }; + t3.prototype.setPrivateKey = function(t4) { + this.setKey(t4); + }; + t3.prototype.setPublicKey = function(t4) { + this.setKey(t4); + }; + t3.prototype.decrypt = function(t4) { + try { + return this.getKey().decrypt(t4); + } catch (t5) { + return false; + } + }; + t3.prototype.encrypt = function(t4) { + try { + return this.getKey().encrypt(t4); + } catch (t5) { + return false; + } + }; + t3.prototype.encryptLong = function(t4) { + try { + return d2(this.getKey().encryptLong(t4)); + } catch (t5) { + return false; + } + }; + t3.prototype.decryptLong = function(t4) { + try { + return this.getKey().decryptLong(t4); + } catch (t5) { + return false; + } + }; + t3.prototype.sign = function(t4, e3, r3) { + try { + return d2(this.getKey().sign(t4, e3, r3)); + } catch (t5) { + return false; + } + }; + t3.prototype.verify = function(t4, e3, r3) { + try { + return this.getKey().verify(t4, v2(e3), r3); + } catch (t5) { + return false; + } + }; + t3.prototype.getKey = function(t4) { + if (!this.key) { + this.key = new yt2(); + if (t4 && "[object Function]" === {}.toString.call(t4)) { + this.key.generateAsync(this.default_key_size, this.default_public_exponent, t4); + return; + } + this.key.generate(this.default_key_size, this.default_public_exponent); + } + return this.key; + }; + t3.prototype.getPrivateKey = function() { + return this.getKey().getPrivateKey(); + }; + t3.prototype.getPrivateKeyB64 = function() { + return this.getKey().getPrivateBaseKeyB64(); + }; + t3.prototype.getPublicKey = function() { + return this.getKey().getPublicKey(); + }; + t3.prototype.getPublicKeyB64 = function() { + return this.getKey().getPublicBaseKeyB64(); + }; + t3.version = mt2.i; + return t3; + }(); + const St2 = wt2; + }, 2480: () => { + } }; + var e2 = {}; + function r2(i22) { + var n2 = e2[i22]; + if (void 0 !== n2) + return n2.exports; + var s2 = e2[i22] = { id: i22, loaded: false, exports: {} }; + t2[i22].call(s2.exports, s2, s2.exports, r2); + s2.loaded = true; + return s2.exports; + } + (() => { + r2.d = (t22, e22) => { + for (var i22 in e22) + if (r2.o(e22, i22) && !r2.o(t22, i22)) + Object.defineProperty(t22, i22, { enumerable: true, get: e22[i22] }); + }; + })(); + (() => { + r2.g = function() { + if ("object" === typeof globalThis) + return globalThis; + try { + return this || new Function("return this")(); + } catch (t22) { + if ("object" === typeof window) + return window; + } + }(); + })(); + (() => { + r2.o = (t22, e22) => Object.prototype.hasOwnProperty.call(t22, e22); + })(); + (() => { + r2.r = (t22) => { + if ("undefined" !== typeof Symbol && Symbol.toStringTag) + Object.defineProperty(t22, Symbol.toStringTag, { value: "Module" }); + Object.defineProperty(t22, "__esModule", { value: true }); + }; + })(); + (() => { + r2.nmd = (t22) => { + t22.paths = []; + if (!t22.children) + t22.children = []; + return t22; + }; + })(); + var i2 = r2(9021); + return i2; + })()); + })(gtpushMin); + var gtpushMinExports = gtpushMin.exports; + var GtPush = /* @__PURE__ */ getDefaultExportFromCjs(gtpushMinExports); + function initPushNotification() { + if (typeof plus !== "undefined" && plus.push) { + plus.globalEvent.addEventListener("newPath", ({ path }) => { + if (!path) { + return; + } + const pages2 = getCurrentPages(); + const currentPage = pages2[pages2.length - 1]; + if (currentPage && currentPage.$page && currentPage.$page.fullPath === path) { + return; + } + uni.navigateTo({ + url: path, + fail(res) { + if (res.errMsg.indexOf("tabbar") > -1) { + uni.switchTab({ + url: path, + fail(res2) { + console.error(res2.errMsg); + } + }); + } else { + console.error(res.errMsg); + } + } + }); + }); + } + } + uni.invokePushCallback({ + type: "enabled" + }); + const appid = "__UNI__9F097F0"; + { + initPushNotification(); + if (typeof uni.onAppShow === "function") { + uni.onAppShow(() => { + GtPush.enableSocket(true); + }); + } + GtPush.init({ + appid, + onError: (res) => { + console.error(res.error); + const data = { + type: "clientId", + cid: "", + errMsg: res.error + }; + uni.invokePushCallback(data); + }, + onClientId: (res) => { + const data = { + type: "clientId", + cid: res.cid + }; + uni.invokePushCallback(data); + }, + onlineState: (res) => { + const data = { + type: "lineState", + online: res.online + }; + uni.invokePushCallback(data); + }, + onPushMsg: (res) => { + const data = { + type: "pushMsg", + message: res.message + }; + uni.invokePushCallback(data); + } + }); + uni.onPushMessage((res) => { + if (res.type === "receive" && res.data && res.data.force_notification) { + uni.createPushMessage(res.data); + res.stopped = true; + } + }); + } + const baseUrl = "https://36.112.48.190/jeecg-boot/sys/common/static/"; + const useUpdateApp = defineStore("updateApp", () => { + const updateOptions = vue.reactive({ + force: false, + hasNew: false, + content: "", + url: "", + wgtUrl: "" + }); + const systemInfo = uni.getSystemInfoSync(); + function checkAppUpdate(to = false) { + try { + upDateAppApi().then(async (res) => { + let { + result + } = res; + result.apkUrl = baseUrl + result.apkUrl; + result.wgtUrl = baseUrl + result.wgtUrl; + updateOptions.wgtUrl = result.wgtUrl; + if (systemInfo.osName === "android") { + updateOptions.apkUrl = result.apkUrl; + updateOptions.hasNew = await hasNewVersion(result.versionCode, result.update == "wgt"); + } else { + updateOptions.url = `itms-apps://itunes.apple.com/cn/app/id${123456}?mt=8`; + } + updateOptions.hasNew && uni.showModal({ + title: "更新", + content: "发现新版本,请更新", + success(res2) { + if (res2.confirm) { + onClickUpdate(result.update, result); + } else { + plus.runtime.quit(); + } + } + }); + }); + } catch (error) { + updateOptions.hasNew = false; + } + } + return { + checkAppUpdate, + ...vue.toRefs(updateOptions), + systemInfo + }; + }); + const _sfc_main$3 = { + __name: "App", + setup(__props) { + onLaunch(() => { + useUpdateApp().checkAppUpdate(); + getLocation(); + uni.onPushMessage((res) => { + formatAppLog("log", "at App.vue:29", "收到推送消息:", res); + }); + }); + onShow(() => { + ifGray(); + uni.getPushClientId({ + success: (res) => { + let push_clientid = res.cid; + formatAppLog("log", "at App.vue:39", "客户端推送标识:", push_clientid); + }, + fail(err) { + formatAppLog("log", "at App.vue:42", err); + } + }); + }); + const ifGray = () => { + cxcJurisdictionApi({ + id: "1827997127165677570" + }).then((res) => { + if (res.success) { + const store = useStore(); + uni.setStorageSync("isgray", res.result.value); + store.setIsgray(res.result.value); + } + }); + }; + return () => { + }; + } + }; + const App = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__file", "D:/projects/cxc-szcx-uniapp/App.vue"]]); + const _sfc_main$2 = { + __name: "index", + props: { + dataId: { + type: String, + default: "" + } + }, + setup(__props) { + const props = __props; + const imageValue = vue.ref([]); + const imageStyles = { + width: 64, + height: 64, + border: { + color: "#dce7e1", + width: 2, + style: "dashed", + radius: "2px" + } + }; + const info = vue.ref({}); + const qjQueryById = () => { + qjQueryByIdApi({ + id: props.dataId + }).then((res) => { + if (res.success) { + info.value = res.result.records[0]; + imageValue.value = info.value.path.split(",").map((path) => { + const name = path.split("/").pop(); + const extname = name.split(".").pop(); + return { + name, + extname, + url: imgUrl(path) + }; + }); + } + }); + }; + const extActFlowData = () => { + extActFlowDataApi({ + flowCode: "dev_cxc_qxj", + dataId: props.dataId + }).then((res) => { + if (res.success) { + processHistoryList(res.result.processInstanceId); + } + }); + }; + const step = vue.ref([]); + const processHistoryList = (processInstanceId) => { + processHistoryListApi({ + processInstanceId + }).then((res) => { + if (res.success) { + step.value = res.result.records; + } + }); + }; + vue.onMounted(() => { + qjQueryById(); + extActFlowData(); + }); + return (_ctx, _cache) => { + const _component_uni_file_picker = resolveEasycom(vue.resolveDynamicComponent("uni-file-picker"), __easycom_0$2); + return vue.openBlock(), vue.createElementBlock( + vue.Fragment, + null, + [ + vue.createElementVNode("view", { class: "f-col aic" }, [ + vue.createElementVNode("view", { class: "info_box" }, [ + vue.createElementVNode("view", { class: "title" }, " 申请信息 "), + vue.createElementVNode("view", { class: "info f-row aic jcb" }, [ + vue.createElementVNode("view", null, " 请假职工: "), + vue.createElementVNode( + "text", + null, + vue.toDisplayString(info.value.username_dictText), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "info f-row aic jcb" }, [ + vue.createElementVNode("view", null, " 所属单位: "), + vue.createElementVNode( + "text", + null, + vue.toDisplayString(info.value.sysOrgCode_dictText), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "info f-row aic jcb" }, [ + vue.createElementVNode("view", null, " 联系方式: "), + vue.createElementVNode( + "text", + null, + vue.toDisplayString(info.value.phone), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "info f-row aic jcb" }, [ + vue.createElementVNode("view", null, " 请假类型: "), + vue.createElementVNode( + "text", + null, + vue.toDisplayString(info.value.type), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "info f-row aic jcb" }, [ + vue.createElementVNode("view", null, " 请假开始时间: "), + vue.createElementVNode( + "text", + null, + vue.toDisplayString(info.value.begintime), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "info f-row aic jcb" }, [ + vue.createElementVNode("view", null, " 请假结束时间: "), + vue.createElementVNode( + "text", + null, + vue.toDisplayString(info.value.endtime), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "info f-row aic jcb" }, [ + vue.createElementVNode("view", null, " 请假天数: "), + vue.createElementVNode( + "text", + null, + vue.toDisplayString(info.value.days), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "info f-row aic jcb" }, [ + vue.createElementVNode("view", null, " 审批人: "), + vue.createElementVNode( + "text", + null, + vue.toDisplayString(info.value.examineleader_dictText), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "info f-row aic jcb" }, [ + vue.createElementVNode("view", null, " 请假地点: "), + vue.createElementVNode( + "text", + null, + vue.toDisplayString(info.value.address), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "info f-row aic jcb" }, [ + vue.createElementVNode("view", null, " 请假原因: "), + vue.createElementVNode( + "text", + null, + vue.toDisplayString(info.value.reason), + 1 + /* TEXT */ + ) + ]), + vue.createElementVNode("view", { class: "info f-row aic jcb" }, [ + vue.createElementVNode("view", null, " 附件: "), + vue.createVNode(_component_uni_file_picker, { + modelValue: imageValue.value, + "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => imageValue.value = $event), + "image-styles": imageStyles + }, null, 8, ["modelValue"]) + ]) + ]) + ]), + vue.createElementVNode("view", { class: "f-col aic" }, [ + vue.createElementVNode("view", { class: "progress" }, [ + vue.createElementVNode("view", { class: "title" }, " 审批流程 "), + vue.createElementVNode("view", { class: "progress_box" }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(step.value, (item, index) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: "box", + key: index + }, [ + vue.createElementVNode("view", { class: "topic f-row aic" }, [ + vue.createElementVNode( + "view", + null, + vue.toDisplayString(item.name), + 1 + /* TEXT */ + ), + vue.createElementVNode( + "view", + { + class: vue.normalizeClass(["status", { "complete": item.deleteReason == "已完成" }, { "refuse": item.deleteReason == "已拒绝" }]) + }, + vue.toDisplayString(item.deleteReason), + 3 + /* TEXT, CLASS */ + ) + ]), + vue.createElementVNode( + "view", + { class: "name_time" }, + vue.toDisplayString(item.assigneeName) + " | " + vue.toDisplayString(item.endTime), + 1 + /* TEXT */ + ) + ]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ]) + ]) + ]) + ], + 64 + /* STABLE_FRAGMENT */ + ); + }; + } + }; + const leaveApplication = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-e7121647"], ["__file", "D:/projects/cxc-szcx-uniapp/bpm/leaveApplication/index.vue"]]); + const _sfc_main$1 = { + __name: "processCom", + props: { + info: { + type: Array, + default: () => [] + } + }, + setup(__props) { + return (_ctx, _cache) => { + return vue.openBlock(), vue.createElementBlock("view", { class: "f-col aic" }, [ + vue.createElementVNode("view", { class: "info_box" }, [ + vue.createElementVNode("view", { class: "title" }, " 申请信息 "), + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(__props.info, (item, i2) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: "", + key: i2 + }, [ + vue.createElementVNode("view", { class: "info f-row aic jcb" }, [ + vue.createElementVNode( + "view", + { class: "" }, + vue.toDisplayString(item.title) + ": ", + 1 + /* TEXT */ + ), + item.title == "事项内容" ? (vue.openBlock(), vue.createElementBlock("rich-text", { + key: 0, + nodes: item.data + }, null, 8, ["nodes"])) : (vue.openBlock(), vue.createElementBlock( + "text", + { key: 1 }, + vue.toDisplayString(item.data), + 1 + /* TEXT */ + )) + ]) + ]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ]) + ]); + }; + } + }; + const processCom = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-edc8a089"], ["__file", "D:/projects/cxc-szcx-uniapp/bpm/processCom.vue"]]); + const _sfc_main = { + __name: "supervise", + props: { + dataId: { + type: String, + default: "" + } + }, + setup(__props) { + const props = __props; + const tabArr = [{ + title: "基本信息", + id: 1 + }, { + title: "事项详情", + id: 2 + }, { + title: "添加下级", + id: 3 + }, { + title: "节点顺序", + id: 4 + }, { + title: "运行计划", + id: 5 + }]; + const currentTab = vue.ref(1); + const changeTab = (id) => { + currentTab.value = id; + dbSxxqQueryById(); + }; + const info = vue.ref([]); + const dbSxxqQueryById = () => { + dbSxxqQueryByIdApi({ + id: props.dataId + }).then((res) => { + if (res.success) { + if (currentTab.value == 1) { + dbJbxxQueryById(res.result.jbxxid); + } + if (currentTab.value == 2) { + let d2 = res.result; + info.value = [{ + title: "承办部门", + data: d2.zbdw + }, { + title: "协办部门", + data: d2.xbdw + }, { + title: "部门领导", + data: d2.fgld + }, { + title: "办理人员", + data: d2.dbry + }, { + title: "要求反馈时间", + data: d2.yqfksj + }, { + title: "节点名称", + data: "" + }, { + title: "预计完成时间", + data: "" + }, { + title: "实际反馈时间", + data: d2.sjfksj + }, { + title: "自评价", + data: d2.zpj + }, { + title: "发起时间", + data: d2.fqsj + }, { + title: "序号", + data: "" + }, { + title: "概述", + data: "" + }, { + title: "时间进度", + data: "" + }, { + title: "事项内容", + data: d2.sxnr + }]; + } + } + }); + }; + const dbJbxxQueryById = (id) => { + dbJbxxQueryByIdApi({ + id + }).then((res) => { + if (res.success) { + let d2 = res.result; + info.value = [{ + title: "督办分类", + data: d2.fl + }, { + title: "协办部门", + data: d2.xbbm + }, { + title: "督办部门", + data: d2.cbbm + }, { + title: "督办人员", + data: d2.dbry + }, { + title: "督办部门负责人", + data: d2.zrr + }, { + title: "是否涉密", + data: d2.sfsm + }, { + title: "计划完成时间", + data: d2.jhwcsj + }, { + title: "实际完成时间", + data: d2.wcsj + }, { + title: "完成状态", + data: d2.wczt + }, { + title: "备注", + data: d2.bz + }, { + title: "督办事项", + data: d2.dbsx + }, { + title: "时间进度", + data: d2.sjjd + }]; + } + }); + }; + const extActFlowData = (dataId) => { + extActFlowDataApi({ + flowCode: "dev_db_sxxq_001", + dataId: props.dataId + }).then((res) => { + if (res.success) { + processHistoryList(res.result.processInstanceId); + } + }); + }; + const step = vue.ref([]); + const processHistoryList = (processInstanceId) => { + formatAppLog("log", "at bpm/supervise.vue:199", "000", processInstanceId); + processHistoryListApi({ + processInstanceId + }).then((res) => { + formatAppLog("log", "at bpm/supervise.vue:203", "0088800", res); + if (res.success) { + step.value = res.result.records; + } + }); + }; + vue.onMounted(() => { + dbSxxqQueryById(); + extActFlowData(); + }); + return (_ctx, _cache) => { + return vue.openBlock(), vue.createElementBlock("view", { class: "" }, [ + vue.createElementVNode("view", { class: "tab f-row aic" }, [ + (vue.openBlock(), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(tabArr, (item, i2) => { + return vue.createElementVNode("view", { + class: vue.normalizeClass({ "active": currentTab.value == item.id }), + key: i2, + onClick: ($event) => changeTab(item.id) + }, vue.toDisplayString(item.title), 11, ["onClick"]); + }), + 64 + /* STABLE_FRAGMENT */ + )) + ]), + vue.createVNode(processCom, { info: info.value }, null, 8, ["info"]), + vue.createElementVNode("view", { class: "f-col aic" }, [ + vue.createElementVNode("view", { class: "progress" }, [ + vue.createElementVNode("view", { class: "title" }, " 审批流程 "), + vue.createElementVNode("view", { class: "progress_box" }, [ + (vue.openBlock(true), vue.createElementBlock( + vue.Fragment, + null, + vue.renderList(step.value, (item, index) => { + return vue.openBlock(), vue.createElementBlock("view", { + class: "box", + key: index + }, [ + vue.createElementVNode("view", { class: "topic f-row aic" }, [ + vue.createElementVNode( + "view", + { class: "" }, + vue.toDisplayString(item.name), + 1 + /* TEXT */ + ), + vue.createElementVNode( + "view", + { + class: vue.normalizeClass(["status", { "complete": item.deleteReason == "已完成" }, { "refuse": item.deleteReason == "已拒绝" }]) + }, + vue.toDisplayString(item.deleteReason), + 3 + /* TEXT, CLASS */ + ) + ]), + vue.createElementVNode( + "view", + { class: "name_time" }, + vue.toDisplayString(item.assigneeName) + " | " + vue.toDisplayString(item.endTime), + 1 + /* TEXT */ + ) + ]); + }), + 128 + /* KEYED_FRAGMENT */ + )) + ]) + ]) + ]) + ]); + }; + } + }; + const supervise = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ecbe2408"], ["__file", "D:/projects/cxc-szcx-uniapp/bpm/supervise.vue"]]); + const pinia = createPinia(); + function createApp() { + const app = vue.createVueApp(App); + app.use(pinia); + app.component("leaveApplication", leaveApplication); + app.component("supervise", supervise); + app.config.globalProperties.$toast = toast; + return { + app + }; + } + const { app: __app__, Vuex: __Vuex__, Pinia: __Pinia__ } = createApp(); + uni.Vuex = __Vuex__; + uni.Pinia = __Pinia__; + __app__.provide("__globalStyles", __uniConfig.styles); + __app__._component.mpType = "app"; + __app__._component.render = () => { + }; + __app__.mount("#app"); +})(Vue); diff --git a/unpackage/dist/dev/app-plus/app.css b/unpackage/dist/dev/app-plus/app.css new file mode 100644 index 0000000..ffdb580 --- /dev/null +++ b/unpackage/dist/dev/app-plus/app.css @@ -0,0 +1,617 @@ +*{margin:0;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent}html,body{-webkit-user-select:none;user-select:none;width:100%}html{height:100%;height:100vh;width:100%;width:100vw}body{overflow-x:hidden;background-color:#fff;height:100%}#app{height:100%}input[type=search]::-webkit-search-cancel-button{display:none}.uni-loading,uni-button[loading]:before{background:transparent url(data:image/svg+xml;base64,\ PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=) no-repeat}.uni-loading{width:20px;height:20px;display:inline-block;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}@keyframes uni-loading{0%{transform:rotate3d(0,0,1,0)}to{transform:rotate3d(0,0,1,360deg)}}@media (prefers-color-scheme: dark){html{--UI-BG-CLOLOR-ACTIVE: #373737;--UI-BORDER-CLOLOR-1: #373737;--UI-BG: #000;--UI-BG-0: #191919;--UI-BG-1: #1f1f1f;--UI-BG-2: #232323;--UI-BG-3: #2f2f2f;--UI-BG-4: #606060;--UI-BG-5: #2c2c2c;--UI-FG: #fff;--UI-FG-0: hsla(0, 0%, 100%, .8);--UI-FG-HALF: hsla(0, 0%, 100%, .6);--UI-FG-1: hsla(0, 0%, 100%, .5);--UI-FG-2: hsla(0, 0%, 100%, .3);--UI-FG-3: hsla(0, 0%, 100%, .05)}body{background-color:var(--UI-BG-0);color:var(--UI-FG-0)}}[nvue] uni-view,[nvue] uni-label,[nvue] uni-swiper-item,[nvue] uni-scroll-view{display:flex;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}[nvue] uni-button{margin:0}[nvue-dir-row] uni-view,[nvue-dir-row] uni-label,[nvue-dir-row] uni-swiper-item{flex-direction:row}[nvue-dir-column] uni-view,[nvue-dir-column] uni-label,[nvue-dir-column] uni-swiper-item{flex-direction:column}[nvue-dir-row-reverse] uni-view,[nvue-dir-row-reverse] uni-label,[nvue-dir-row-reverse] uni-swiper-item{flex-direction:row-reverse}[nvue-dir-column-reverse] uni-view,[nvue-dir-column-reverse] uni-label,[nvue-dir-column-reverse] uni-swiper-item{flex-direction:column-reverse}[nvue] uni-view,[nvue] uni-image,[nvue] uni-input,[nvue] uni-scroll-view,[nvue] uni-swiper,[nvue] uni-swiper-item,[nvue] uni-text,[nvue] uni-textarea,[nvue] uni-video{position:relative;border:0px solid #000000;box-sizing:border-box}[nvue] uni-swiper-item{position:absolute}@keyframes once-show{0%{top:0}}uni-resize-sensor,uni-resize-sensor>div{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden}uni-resize-sensor{display:block;z-index:-1;visibility:hidden;animation:once-show 1ms}uni-resize-sensor>div>div{position:absolute;left:0;top:0}uni-resize-sensor>div:first-child>div{width:100000px;height:100000px}uni-resize-sensor>div:last-child>div{width:200%;height:200%}uni-text[selectable]{cursor:auto;-webkit-user-select:text;user-select:text}uni-text{white-space:pre-line}uni-view{display:block}uni-view[hidden]{display:none}uni-button{position:relative;display:block;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;box-sizing:border-box;font-size:18px;text-align:center;text-decoration:none;line-height:2.55555556;border-radius:5px;-webkit-tap-highlight-color:transparent;overflow:hidden;color:#000;background-color:#f8f8f8;cursor:pointer}uni-button[hidden]{display:none!important}uni-button:after{content:" ";width:200%;height:200%;position:absolute;top:0;left:0;border:1px solid rgba(0,0,0,.2);transform:scale(.5);transform-origin:0 0;box-sizing:border-box;border-radius:10px}uni-button[native]{padding-left:0;padding-right:0}uni-button[native] .uni-button-cover-view-wrapper{border:inherit;border-color:inherit;border-radius:inherit;background-color:inherit}uni-button[native] .uni-button-cover-view-inner{padding-left:14px;padding-right:14px}uni-button uni-cover-view{line-height:inherit;white-space:inherit}uni-button[type=default]{color:#000;background-color:#f8f8f8}uni-button[type=primary]{color:#fff;background-color:#007aff}uni-button[type=warn]{color:#fff;background-color:#e64340}uni-button[disabled]{color:rgba(255,255,255,.6);cursor:not-allowed}uni-button[disabled][type=default],uni-button[disabled]:not([type]){color:rgba(0,0,0,.3);background-color:#f7f7f7}uni-button[disabled][type=primary]{background-color:rgba(0,122,255,.6)}uni-button[disabled][type=warn]{background-color:#ec8b89}uni-button[type=primary][plain]{color:#007aff;border:1px solid #007aff;background-color:transparent}uni-button[type=primary][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=primary][plain]:after{border-width:0}uni-button[type=default][plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[type=default][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=default][plain]:after{border-width:0}uni-button[plain]{color:#353535;border:1px solid #353535;background-color:transparent}uni-button[plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[plain]:after{border-width:0}uni-button[plain][native] .uni-button-cover-view-inner{padding:0}uni-button[type=warn][plain]{color:#e64340;border:1px solid #e64340;background-color:transparent}uni-button[type=warn][plain][disabled]{color:rgba(0,0,0,.2);border-color:rgba(0,0,0,.2)}uni-button[type=warn][plain]:after{border-width:0}uni-button[size=mini]{display:inline-block;line-height:2.3;font-size:13px;padding:0 1.34em}uni-button[size=mini][native]{padding:0}uni-button[size=mini][native] .uni-button-cover-view-inner{padding:0 1.34em}uni-button[loading]:not([disabled]){cursor:progress}uni-button[loading]:before{content:" ";display:inline-block;width:18px;height:18px;vertical-align:middle;animation:uni-loading 1s steps(12,end) infinite;background-size:100%}uni-button[loading][type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}uni-button[loading][type=primary][plain]{color:#007aff;background-color:transparent}uni-button[loading][type=default]{color:rgba(0,0,0,.6);background-color:#dedede}uni-button[loading][type=default][plain]{color:#353535;background-color:transparent}uni-button[loading][type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}uni-button[loading][type=warn][plain]{color:#e64340;background-color:transparent}uni-button[loading][native]:before{content:none}.button-hover{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=primary]{color:rgba(255,255,255,.6);background-color:#0062cc}.button-hover[type=primary][plain]{color:rgba(0,122,255,.6);border-color:rgba(0,122,255,.6);background-color:transparent}.button-hover[type=default]{color:rgba(0,0,0,.6);background-color:#dedede}.button-hover[type=default][plain]{color:rgba(53,53,53,.6);border-color:rgba(53,53,53,.6);background-color:transparent}.button-hover[type=warn]{color:rgba(255,255,255,.6);background-color:#ce3c39}.button-hover[type=warn][plain]{color:rgba(230,67,64,.6);border-color:rgba(230,67,64,.6);background-color:transparent}@media (prefers-color-scheme: dark){uni-button,uni-button[type=default]{color:#d6d6d6;background-color:#343434}.button-hover,.button-hover[type=default]{color:#d6d6d6;background-color:rgba(255,255,255,.1)}uni-button[disabled][type=default],uni-button[disabled]:not([type]){color:rgba(255,255,255,.2);background-color:rgba(255,255,255,.08)}uni-button[type=primary][plain][disabled]{color:rgba(255,255,255,.2);border-color:rgba(255,255,255,.2)}uni-button[type=default][plain]{color:#d6d6d6;border:1px solid #d6d6d6}.button-hover[type=default][plain]{color:rgba(150,150,150,.6);border-color:rgba(150,150,150,.6);background-color:rgba(50,50,50,.2)}uni-button[type=default][plain][disabled]{border-color:rgba(255,255,255,.2);color:rgba(255,255,255,.2)}}uni-canvas{width:300px;height:150px;display:block;position:relative}uni-canvas>.uni-canvas-canvas{position:absolute;top:0;left:0;width:100%;height:100%}uni-checkbox{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-checkbox[hidden]{display:none}uni-checkbox[disabled]{cursor:not-allowed}.uni-checkbox-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-checkbox-input{margin-right:5px;-webkit-appearance:none;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative}.uni-checkbox-input svg{color:#007aff;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}@media (hover: hover){uni-checkbox:not([disabled]) .uni-checkbox-input:hover{border-color:var(--HOVER-BD-COLOR, #007aff)!important}}uni-checkbox-group{display:block}uni-checkbox-group[hidden]{display:none}uni-cover-image{display:block;line-height:1.2;overflow:hidden;height:100%;width:100%;pointer-events:auto}uni-cover-image[hidden]{display:none}uni-cover-image .uni-cover-image{width:100%;height:100%}uni-cover-view{display:block;line-height:1.2;overflow:hidden;white-space:nowrap;pointer-events:auto}uni-cover-view[hidden]{display:none}uni-cover-view .uni-cover-view{width:100%;height:100%;visibility:hidden;text-overflow:inherit;white-space:inherit;align-items:inherit;justify-content:inherit;flex-direction:inherit;flex-wrap:inherit;display:inherit;overflow:inherit}.ql-container{display:block;position:relative;box-sizing:border-box;-webkit-user-select:text;user-select:text;outline:none;overflow:hidden;width:100%;height:200px;min-height:200px}.ql-container[hidden]{display:none}.ql-container .ql-editor{position:relative;font-size:inherit;line-height:inherit;font-family:inherit;min-height:inherit;width:100%;height:100%;padding:0;overflow-x:hidden;overflow-y:auto;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-overflow-scrolling:touch}.ql-container .ql-editor::-webkit-scrollbar{width:0!important}.ql-container .ql-editor.scroll-disabled{overflow:hidden}.ql-container .ql-image-overlay{display:flex;position:absolute;box-sizing:border-box;border:1px dashed #ccc;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none}.ql-container .ql-image-overlay .ql-image-size{position:absolute;padding:4px 8px;text-align:center;background-color:#fff;color:#888;border:1px solid #ccc;box-sizing:border-box;opacity:.8;right:4px;top:4px;font-size:12px;display:inline-block;width:auto}.ql-container .ql-image-overlay .ql-image-toolbar{position:relative;text-align:center;box-sizing:border-box;background:#000;border-radius:5px;color:#fff;font-size:0;min-height:24px;z-index:100}.ql-container .ql-image-overlay .ql-image-toolbar span{display:inline-block;cursor:pointer;padding:5px;font-size:12px;border-right:1px solid #fff}.ql-container .ql-image-overlay .ql-image-toolbar span:last-child{border-right:0}.ql-container .ql-image-overlay .ql-image-toolbar span.triangle-up{padding:0;position:absolute;top:-12px;left:50%;transform:translate(-50%);width:0;height:0;border-width:6px;border-style:solid;border-color:transparent transparent black transparent}.ql-container .ql-image-overlay .ql-image-handle{position:absolute;height:12px;width:12px;border-radius:50%;border:1px solid #ccc;box-sizing:border-box;background:#fff}.ql-container img{display:inline-block;max-width:100%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;height:100%;outline:none;overflow-y:auto;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"•"}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"☑"}.ql-editor ul[data-checked=false]>li:before{content:"☐"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:2em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:2em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:2em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:2em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:4em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:4em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:4em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:6em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:8em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:8em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:8em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:10em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:10em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:10em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:12em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:14em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:14em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:14em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:16em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:16em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:16em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:18em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right,.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;pointer-events:none;position:absolute}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}uni-icon{display:inline-block;font-size:0;box-sizing:border-box}uni-icon[hidden]{display:none}uni-image{width:320px;height:240px;display:inline-block;overflow:hidden;position:relative}uni-image[hidden]{display:none}uni-image>div{width:100%;height:100%;background-repeat:no-repeat}uni-image>img{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;display:block;position:absolute;top:0;left:0;width:100%;height:100%;opacity:0}uni-image>.uni-image-will-change{will-change:transform}uni-input{display:block;font-size:16px;line-height:1.4em;height:1.4em;min-height:1.4em;overflow:hidden}uni-input[hidden]{display:none}.uni-input-wrapper,.uni-input-placeholder,.uni-input-form,.uni-input-input{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-input-wrapper,.uni-input-form{display:flex;position:relative;width:100%;height:100%;flex-direction:column;justify-content:center}.uni-input-placeholder,.uni-input-input{width:100%}.uni-input-placeholder{position:absolute;top:auto!important;left:0;color:gray;overflow:hidden;text-overflow:clip;white-space:pre;word-break:keep-all;pointer-events:none;line-height:inherit}.uni-input-input{position:relative;display:block;height:100%;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-input-input[type=search]::-webkit-search-cancel-button,.uni-input-input[type=search]::-webkit-search-decoration{display:none}.uni-input-input::-webkit-outer-spin-button,.uni-input-input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}.uni-input-input[type=number]{-moz-appearance:textfield}.uni-input-input:disabled{-webkit-text-fill-color:currentcolor}.uni-label-pointer{cursor:pointer}uni-live-pusher{width:320px;height:240px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-live-pusher[hidden]{display:none}.uni-live-pusher-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-live-pusher-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-map{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-map[hidden]{display:none}.uni-map-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:transparent}.uni-map-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-movable-area{display:block;position:relative;width:10px;height:10px}uni-movable-area[hidden]{display:none}uni-movable-view{display:inline-block;width:10px;height:10px;top:0;left:0;position:absolute;cursor:grab}uni-movable-view[hidden]{display:none}uni-navigator{height:auto;width:auto;display:block;cursor:pointer}uni-navigator[hidden]{display:none}.navigator-hover{background-color:rgba(0,0,0,.1);opacity:.7}.navigator-wrap,.navigator-wrap:link,.navigator-wrap:visited,.navigator-wrap:hover,.navigator-wrap:active{text-decoration:none;color:inherit;cursor:pointer}uni-picker-view{display:block}.uni-picker-view-wrapper{display:flex;position:relative;overflow:hidden;height:100%}uni-picker-view[hidden]{display:none}uni-picker-view-column{flex:1;position:relative;height:100%;overflow:hidden}uni-picker-view-column[hidden]{display:none}.uni-picker-view-group{height:100%;overflow:hidden}.uni-picker-view-mask{transform:translateZ(0)}.uni-picker-view-indicator,.uni-picker-view-mask{position:absolute;left:0;width:100%;z-index:3;pointer-events:none}.uni-picker-view-mask{top:0;height:100%;margin:0 auto;background-image:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.6)),linear-gradient(0deg,rgba(255,255,255,.95),rgba(255,255,255,.6));background-position:top,bottom;background-size:100% 102px;background-repeat:no-repeat;transform:translateZ(0)}.uni-picker-view-indicator{height:34px;top:50%;transform:translateY(-50%)}.uni-picker-view-content{position:absolute;top:0;left:0;width:100%;will-change:transform;padding:102px 0;cursor:pointer}.uni-picker-view-content>*{height:34px;overflow:hidden}.uni-picker-view-indicator:before{top:0;border-top:1px solid #e5e5e5;transform-origin:0 0;transform:scaleY(.5)}.uni-picker-view-indicator:after{bottom:0;border-bottom:1px solid #e5e5e5;transform-origin:0 100%;transform:scaleY(.5)}.uni-picker-view-indicator:after,.uni-picker-view-indicator:before{content:" ";position:absolute;left:0;right:0;height:1px;color:#e5e5e5}@media (prefers-color-scheme: dark){.uni-picker-view-indicator:before{border-top-color:var(--UI-FG-3)}.uni-picker-view-indicator:after{border-bottom-color:var(--UI-FG-3)}.uni-picker-view-mask{background-image:linear-gradient(180deg,rgba(35,35,35,.95),rgba(35,35,35,.6)),linear-gradient(0deg,rgba(35,35,35,.95),rgba(35,35,35,.6))}}uni-progress{display:flex;align-items:center}uni-progress[hidden]{display:none}.uni-progress-bar{flex:1}.uni-progress-inner-bar{width:0;height:100%}.uni-progress-info{margin-top:0;margin-bottom:0;min-width:2em;margin-left:15px;font-size:16px}uni-radio{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-radio[hidden]{display:none}uni-radio[disabled]{cursor:not-allowed}.uni-radio-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-radio-input{-webkit-appearance:none;appearance:none;margin-right:5px;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:50%;width:22px;height:22px;position:relative}@media (hover: hover){uni-radio:not([disabled]) .uni-radio-input:hover{border-color:var(--HOVER-BD-COLOR, #007aff)!important}}.uni-radio-input svg{color:#fff;font-size:18px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-radio-input.uni-radio-input-disabled{background-color:#e1e1e1;border-color:#d1d1d1}.uni-radio-input.uni-radio-input-disabled svg{color:#adadad}uni-radio-group{display:block}uni-radio-group[hidden]{display:none}uni-scroll-view{display:block;width:100%}uni-scroll-view[hidden]{display:none}.uni-scroll-view{position:relative;-webkit-overflow-scrolling:touch;width:100%;height:100%;max-height:inherit}.uni-scroll-view-scrollbar-hidden::-webkit-scrollbar{display:none}.uni-scroll-view-scrollbar-hidden{-moz-scrollbars:none;scrollbar-width:none}.uni-scroll-view-content{width:100%;height:100%}.uni-scroll-view-refresher{position:relative;overflow:hidden;flex-shrink:0}.uni-scroll-view-refresher-container{position:absolute;width:100%;bottom:0;display:flex;flex-direction:column-reverse}.uni-scroll-view-refresh{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:row;justify-content:center;align-items:center}.uni-scroll-view-refresh-inner{display:flex;align-items:center;justify-content:center;line-height:0;width:40px;height:40px;border-radius:50%;background-color:#fff;box-shadow:0 1px 6px rgba(0,0,0,.118),0 1px 4px rgba(0,0,0,.118)}.uni-scroll-view-refresh__spinner{transform-origin:center center;animation:uni-scroll-view-refresh-rotate 2s linear infinite}.uni-scroll-view-refresh__spinner>circle{stroke:currentColor;stroke-linecap:round;animation:uni-scroll-view-refresh-dash 2s linear infinite}@keyframes uni-scroll-view-refresh-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes uni-scroll-view-refresh-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}uni-slider{margin:10px 18px;padding:0;display:block}uni-slider[hidden]{display:none}uni-slider .uni-slider-wrapper{display:flex;align-items:center;min-height:16px}uni-slider .uni-slider-tap-area{flex:1;padding:8px 0}uni-slider .uni-slider-handle-wrapper{position:relative;height:2px;border-radius:5px;background-color:#e9e9e9;cursor:pointer;transition:background-color .3s ease;-webkit-tap-highlight-color:transparent}uni-slider .uni-slider-track{height:100%;border-radius:6px;background-color:#007aff;transition:background-color .3s ease}uni-slider .uni-slider-handle,uni-slider .uni-slider-thumb{position:absolute;left:50%;top:50%;cursor:pointer;border-radius:50%;transition:border-color .3s ease}uni-slider .uni-slider-handle{width:28px;height:28px;margin-top:-14px;margin-left:-14px;background-color:transparent;z-index:3;cursor:grab}uni-slider .uni-slider-thumb{z-index:2;box-shadow:0 0 4px rgba(0,0,0,.2)}uni-slider .uni-slider-step{position:absolute;width:100%;height:2px;background:transparent;z-index:1}uni-slider .uni-slider-value{width:3ch;color:#888;font-size:14px;margin-left:1em}uni-slider .uni-slider-disabled .uni-slider-track{background-color:#ccc}uni-slider .uni-slider-disabled .uni-slider-thumb{background-color:#fff;border-color:#ccc}uni-swiper{display:block;height:150px}uni-swiper[hidden]{display:none}.uni-swiper-wrapper{overflow:hidden;position:relative;width:100%;height:100%;transform:translateZ(0)}.uni-swiper-slides{position:absolute;left:0;top:0;right:0;bottom:0}.uni-swiper-slide-frame{position:absolute;left:0;top:0;width:100%;height:100%;will-change:transform}.uni-swiper-dots{position:absolute;font-size:0}.uni-swiper-dots-horizontal{left:50%;bottom:10px;text-align:center;white-space:nowrap;transform:translate(-50%)}.uni-swiper-dots-horizontal .uni-swiper-dot{margin-right:8px}.uni-swiper-dots-horizontal .uni-swiper-dot:last-child{margin-right:0}.uni-swiper-dots-vertical{right:10px;top:50%;text-align:right;transform:translateY(-50%)}.uni-swiper-dots-vertical .uni-swiper-dot{display:block;margin-bottom:9px}.uni-swiper-dots-vertical .uni-swiper-dot:last-child{margin-bottom:0}.uni-swiper-dot{display:inline-block;width:8px;height:8px;cursor:pointer;transition-property:background-color;transition-timing-function:ease;background:rgba(0,0,0,.3);border-radius:50%}.uni-swiper-dot-active{background-color:#000}.uni-swiper-navigation{width:26px;height:26px;cursor:pointer;position:absolute;top:50%;margin-top:-13px;display:flex;align-items:center;transition:all .2s;border-radius:50%;opacity:1}.uni-swiper-navigation-disabled{opacity:.35;cursor:not-allowed}.uni-swiper-navigation-hide{opacity:0;cursor:auto;pointer-events:none}.uni-swiper-navigation-prev{left:10px}.uni-swiper-navigation-prev svg{margin-left:-1px;left:10px}.uni-swiper-navigation-prev.uni-swiper-navigation-vertical{top:18px;left:50%;margin-left:-13px}.uni-swiper-navigation-prev.uni-swiper-navigation-vertical svg{transform:rotate(90deg);margin-left:auto;margin-top:-2px}.uni-swiper-navigation-next{right:10px}.uni-swiper-navigation-next svg{transform:rotate(180deg)}.uni-swiper-navigation-next.uni-swiper-navigation-vertical{top:auto;bottom:5px;left:50%;margin-left:-13px}.uni-swiper-navigation-next.uni-swiper-navigation-vertical svg{margin-top:2px;transform:rotate(270deg)}uni-swiper-item{display:block;overflow:hidden;will-change:transform;position:absolute;width:100%;height:100%;cursor:grab}uni-swiper-item[hidden]{display:none}uni-switch{-webkit-tap-highlight-color:transparent;display:inline-block;cursor:pointer}uni-switch[hidden]{display:none}uni-switch[disabled]{cursor:not-allowed}uni-switch[disabled] .uni-switch-input{opacity:.7}.uni-switch-wrapper{display:inline-flex;align-items:center;vertical-align:middle}.uni-switch-input{-webkit-appearance:none;appearance:none;position:relative;width:52px;height:32px;margin-right:5px;border:1px solid #dfdfdf;outline:0;border-radius:16px;box-sizing:border-box;background-color:#dfdfdf;transition:background-color .1s,border .1s}.uni-switch-input:before{content:" ";position:absolute;top:0;left:0;width:50px;height:30px;border-radius:15px;background-color:#fdfdfd;transition:transform .3s}.uni-switch-input:after{content:" ";position:absolute;top:0;left:0;width:30px;height:30px;border-radius:15px;background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4);transition:transform .3s}.uni-switch-input.uni-switch-input-checked{border-color:#007aff;background-color:#007aff}.uni-switch-input.uni-switch-input-checked:before{transform:scale(0)}.uni-switch-input.uni-switch-input-checked:after{transform:translate(20px)}uni-switch .uni-checkbox-input{margin-right:5px;-webkit-appearance:none;appearance:none;outline:0;border:1px solid #d1d1d1;background-color:#fff;border-radius:3px;width:22px;height:22px;position:relative;color:#007aff}uni-switch:not([disabled]) .uni-checkbox-input:hover{border-color:#007aff}uni-switch .uni-checkbox-input svg{fill:#007aff;font-size:22px;position:absolute;top:50%;left:50%;transform:translate(-50%,-48%) scale(.73)}.uni-checkbox-input.uni-checkbox-input-disabled{background-color:#e1e1e1}.uni-checkbox-input.uni-checkbox-input-disabled:before{color:#adadad}@media (prefers-color-scheme: dark){uni-switch .uni-switch-input{border-color:#3b3b3f}uni-switch .uni-switch-input,uni-switch .uni-switch-input:before{background-color:#3b3b3f}uni-switch .uni-switch-input:after{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.4)}uni-switch .uni-checkbox-input{background-color:#2c2c2c;border:1px solid #656565}}uni-textarea{width:300px;height:150px;display:block;position:relative;font-size:16px;line-height:normal;white-space:pre-wrap;word-break:break-all}uni-textarea[hidden]{display:none}.uni-textarea-wrapper,.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{outline:none;border:none;padding:0;margin:0;text-decoration:inherit}.uni-textarea-wrapper{display:block;position:relative;width:100%;height:100%;min-height:inherit;overflow-y:hidden}.uni-textarea-placeholder,.uni-textarea-line,.uni-textarea-compute,.uni-textarea-textarea{position:absolute;width:100%;height:100%;left:0;top:0;white-space:inherit;word-break:inherit}.uni-textarea-placeholder{color:gray;overflow:hidden}.uni-textarea-line,.uni-textarea-compute{visibility:hidden;height:auto}.uni-textarea-line{width:1em}.uni-textarea-textarea{resize:none;background:none;color:inherit;opacity:1;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:inherit;text-indent:inherit;text-transform:inherit;text-shadow:inherit}.uni-textarea-textarea-fix-margin{width:auto;right:0;margin:0 -3px}.uni-textarea-textarea:disabled{-webkit-text-fill-color:currentcolor}uni-video{width:300px;height:225px;display:inline-block;line-height:0;overflow:hidden;position:relative}uni-video[hidden]{display:none}.uni-video-container{width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;background-color:#000}.uni-video-slot{position:absolute;top:0;width:100%;height:100%;overflow:hidden;pointer-events:none}uni-web-view{display:inline-block;position:absolute;left:0;right:0;top:0;bottom:0} + +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +/*每个页面公共css */ +.gray { + filter: grayscale(1); +} +.f-row { + display: flex; + flex-direction: row; +} +.f-col { + display: flex; + flex-direction: column; +} +.jca { + justify-content: space-around; +} +.jce { + justify-content: space-evenly; +} +.jcb { + justify-content: space-between; +} +.aic { + align-items: center; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uni-file-picker__container[data-v-bdfc07e0] { + display: flex; + box-sizing: border-box; + flex-wrap: wrap; + margin: -5px; +} +.file-picker__box[data-v-bdfc07e0] { + position: relative; + width: 33.3%; + height: 0; + padding-top: 33.33%; + box-sizing: border-box; +} +.file-picker__box-content[data-v-bdfc07e0] { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + margin: 5px; + border: 1px #eee solid; + border-radius: 5px; + overflow: hidden; +} +.file-picker__progress[data-v-bdfc07e0] { + position: absolute; + bottom: 0; + left: 0; + right: 0; + /* border: 1px red solid; */ + z-index: 2; +} +.file-picker__progress-item[data-v-bdfc07e0] { + width: 100%; +} +.file-picker__mask[data-v-bdfc07e0] { + display: flex; + justify-content: center; + align-items: center; + position: absolute; + right: 0; + top: 0; + bottom: 0; + left: 0; + color: #fff; + font-size: 12px; + background-color: rgba(0, 0, 0, 0.4); +} +.file-image[data-v-bdfc07e0] { + width: 100%; + height: 100%; +} +.is-add[data-v-bdfc07e0] { + display: flex; + align-items: center; + justify-content: center; +} +.icon-add[data-v-bdfc07e0] { + width: 50px; + height: 5px; + background-color: #f1f1f1; + border-radius: 2px; +} +.rotate[data-v-bdfc07e0] { + position: absolute; + transform: rotate(90deg); +} +.icon-del-box[data-v-bdfc07e0] { + display: flex; + align-items: center; + justify-content: center; + position: absolute; + top: 3px; + right: 3px; + height: 26px; + width: 26px; + border-radius: 50%; + background-color: rgba(0, 0, 0, 0.5); + z-index: 2; + transform: rotate(-45deg); +} +.icon-del[data-v-bdfc07e0] { + width: 15px; + height: 2px; + background-color: #fff; + border-radius: 2px; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uni-file-picker__files[data-v-a54939c6] { + display: flex; + flex-direction: column; + justify-content: flex-start; +} +.uni-file-picker__lists[data-v-a54939c6] { + position: relative; + margin-top: 5px; + overflow: hidden; +} +.file-picker__mask[data-v-a54939c6] { + display: flex; + justify-content: center; + align-items: center; + position: absolute; + right: 0; + top: 0; + bottom: 0; + left: 0; + color: #fff; + font-size: 14px; + background-color: rgba(0, 0, 0, 0.4); +} +.uni-file-picker__lists-box[data-v-a54939c6] { + position: relative; +} +.uni-file-picker__item[data-v-a54939c6] { + display: flex; + align-items: center; + padding: 8px 10px; + padding-right: 5px; + padding-left: 10px; +} +.files-border[data-v-a54939c6] { + border-top: 1px #eee solid; +} +.files__name[data-v-a54939c6] { + flex: 1; + font-size: 14px; + color: #666; + margin-right: 25px; + word-break: break-all; + word-wrap: break-word; +} +.icon-files[data-v-a54939c6] { + position: static; + background-color: initial; +} +.is-list-card[data-v-a54939c6] { + border: 1px #eee solid; + margin-bottom: 5px; + border-radius: 5px; + box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.1); + padding: 5px; +} +.files__image[data-v-a54939c6] { + width: 40px; + height: 40px; + margin-right: 10px; +} +.header-image[data-v-a54939c6] { + width: 100%; + height: 100%; +} +.is-text-box[data-v-a54939c6] { + border: 1px #eee solid; + border-radius: 5px; +} +.is-text-image[data-v-a54939c6] { + width: 25px; + height: 25px; + margin-left: 5px; +} +.rotate[data-v-a54939c6] { + position: absolute; + transform: rotate(90deg); +} +.icon-del-box[data-v-a54939c6] { + display: flex; + margin: auto 0; + align-items: center; + justify-content: center; + position: absolute; + top: 0px; + bottom: 0; + right: 5px; + height: 26px; + width: 26px; + z-index: 2; + transform: rotate(-45deg); +} +.icon-del[data-v-a54939c6] { + width: 15px; + height: 1px; + background-color: #333; +} + +.uni-file-picker[data-v-6223573f] { + + box-sizing: border-box; + overflow: hidden; + width: 100%; + + flex: 1; +} +.uni-file-picker__header[data-v-6223573f] { + padding-top: 5px; + padding-bottom: 10px; + + display: flex; + + justify-content: space-between; +} +.file-title[data-v-6223573f] { + font-size: 14px; + color: #333; +} +.file-count[data-v-6223573f] { + font-size: 14px; + color: #999; +} +.is-add[data-v-6223573f] { + + display: flex; + + align-items: center; + justify-content: center; +} +.icon-add[data-v-6223573f] { + width: 50px; + height: 5px; + background-color: #f1f1f1; + border-radius: 2px; +} +.rotate[data-v-6223573f] { + position: absolute; + transform: rotate(90deg); +} + +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.info_box[data-v-e7121647] { + padding: 1.25rem 0.9375rem 0.5rem 0.9375rem; + width: 19.6875rem; + background: #FFFFFF; + box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.5); + border-radius: 0.5rem; + margin-top: 0.9375rem; +} +.info_box .title[data-v-e7121647] { + font-size: 0.875rem; + color: #333333; + background-image: url(static/index/line.png); + background-size: 1.375rem 0.375rem; + background-repeat: no-repeat; + background-position: left bottom; + margin-bottom: 0.9375rem; +} +.info_box .info[data-v-e7121647] { + font-size: 0.875rem; + margin-bottom: 0.75rem; +} +.info_box .info uni-view[data-v-e7121647] { + color: #666666; +} +.info_box .info uni-text[data-v-e7121647] { + color: #333333; +} +.progress[data-v-e7121647] { + background: #FFFFFF; + box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.5); + border-radius: 0.5rem; + width: 19.6875rem; + padding: 1.25rem 0.9375rem 0.5rem 0.9375rem; + margin-top: 0.9375rem; + margin-bottom: 0.9375rem; +} +.progress .status[data-v-e7121647] { + padding: 0.125rem 0.25rem; + display: inline-block; + color: #FFFFFF; + font-size: 0.625rem; + margin-left: 0.25rem; + border-radius: 0.25rem; +} +.progress .complete[data-v-e7121647] { + background-color: #7AC756; +} +.progress .refuse[data-v-e7121647] { + background-color: #FE4600; +} +.progress .title[data-v-e7121647] { + font-size: 0.875rem; + color: #333333; + background-image: url(static/index/line.png); + background-size: 1.375rem 0.375rem; + background-repeat: no-repeat; + background-position: left bottom; + margin-bottom: 1.25rem; +} +.progress .box[data-v-e7121647]:not(:last-child) { + position: relative; + padding-bottom: 1.875rem; +} +.progress .box[data-v-e7121647]:not(:last-child)::before { + position: absolute; + content: " "; + width: 1px; + height: 100%; + background: #efefef; + left: -1.3125rem; + top: 0.3125rem; +} +.progress .box[data-v-e7121647] { + margin-left: 1.5625rem; +} +.progress .box .topic[data-v-e7121647] { + position: relative; + font-size: 0.875rem; + color: #333333; +} +.progress .box .topic[data-v-e7121647]::before { + position: absolute; + content: " "; + width: 0.5625rem; + height: 0.5625rem; + background: #01508B; + border-radius: 0.4375rem; + left: -1.5625rem; + top: 50%; + transform: translateY(-50%); +} +.progress .box .name_time[data-v-e7121647] { + font-size: 0.75rem; + color: #888888; + margin-top: 0.375rem; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.info_box[data-v-edc8a089] { + padding: 1.25rem 0.9375rem 0.5rem 0.9375rem; + width: 19.6875rem; + background: #FFFFFF; + box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.5); + border-radius: 0.5rem; + margin-top: 0.9375rem; +} +.info_box .title[data-v-edc8a089] { + font-size: 0.875rem; + color: #333333; + background-image: url(../../static/index/line.png); + background-size: 1.375rem 0.375rem; + background-repeat: no-repeat; + background-position: left bottom; + margin-bottom: 0.9375rem; +} +.info_box .info[data-v-edc8a089] { + font-size: 0.875rem; + margin-bottom: 0.75rem; +} +.info_box .info uni-view[data-v-edc8a089] { + color: #666666; +} +.info_box .info uni-text[data-v-edc8a089] { + color: #333333; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.tab[data-v-ecbe2408] { + background-color: #fff; + overflow-x: auto; +} +.tab uni-view[data-v-ecbe2408] { + padding: 0.625rem 0.9375rem; + white-space: nowrap; +} +.tab .active[data-v-ecbe2408] { + position: relative; + color: #1890ff; +} +.tab .active[data-v-ecbe2408]::after { + content: " "; + position: absolute; + width: 3.125rem; + height: 0.1875rem; + border-radius: 0.09375rem; + background-color: #1890ff; + bottom: 0; + left: 50%; + transform: translateX(-50%); +} +.progress[data-v-ecbe2408] { + background: #FFFFFF; + box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.5); + border-radius: 0.5rem; + width: 19.6875rem; + padding: 1.25rem 0.9375rem 0.5rem 0.9375rem; + margin-top: 0.9375rem; + margin-bottom: 0.9375rem; +} +.progress .status[data-v-ecbe2408] { + padding: 0.125rem 0.25rem; + display: inline-block; + color: #FFFFFF; + font-size: 0.625rem; + margin-left: 0.25rem; + border-radius: 0.25rem; +} +.progress .complete[data-v-ecbe2408] { + background-color: #7AC756; +} +.progress .refuse[data-v-ecbe2408] { + background-color: #FE4600; +} +.progress .title[data-v-ecbe2408] { + font-size: 0.875rem; + color: #333333; + background-image: url(../../static/index/line.png); + background-size: 1.375rem 0.375rem; + background-repeat: no-repeat; + background-position: left bottom; + margin-bottom: 1.25rem; +} +.progress .box[data-v-ecbe2408]:not(:last-child) { + position: relative; + padding-bottom: 1.875rem; +} +.progress .box[data-v-ecbe2408]:not(:last-child)::before { + position: absolute; + content: " "; + width: 1px; + height: 100%; + background: #efefef; + left: -1.3125rem; + top: 0.3125rem; +} +.progress .box[data-v-ecbe2408] { + margin-left: 1.5625rem; +} +.progress .box .topic[data-v-ecbe2408] { + position: relative; + font-size: 0.875rem; + color: #333333; +} +.progress .box .topic[data-v-ecbe2408]::before { + position: absolute; + content: " "; + width: 0.5625rem; + height: 0.5625rem; + background: #01508B; + border-radius: 0.4375rem; + left: -1.5625rem; + top: 50%; + transform: translateY(-50%); +} +.progress .box .name_time[data-v-ecbe2408] { + font-size: 0.75rem; + color: #888888; + margin-top: 0.375rem; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/assets/uniicons.32e978a5.ttf b/unpackage/dist/dev/app-plus/assets/uniicons.32e978a5.ttf new file mode 100644 index 0000000..14696d0 Binary files /dev/null and b/unpackage/dist/dev/app-plus/assets/uniicons.32e978a5.ttf differ diff --git a/unpackage/dist/dev/app-plus/manifest.json b/unpackage/dist/dev/app-plus/manifest.json new file mode 100644 index 0000000..19deb84 --- /dev/null +++ b/unpackage/dist/dev/app-plus/manifest.json @@ -0,0 +1,196 @@ +{ + "@platforms": [ + "android", + "iPhone", + "iPad" + ], + "id": "__UNI__9F097F0", + "name": "数智产销", + "version": { + "name": "1.0.0", + "code": 20241024 + }, + "description": "", + "developer": { + "name": "", + "email": "", + "url": "" + }, + "permissions": { + "Geolocation": {}, + "Fingerprint": {}, + "Camera": {}, + "Barcode": {}, + "Push": {}, + "UniNView": { + "description": "UniNView原生渲染" + } + }, + "plus": { + "useragent": { + "value": "uni-app", + "concatenate": true + }, + "splashscreen": { + "target": "id:1", + "autoclose": true, + "waiting": true, + "delay": 0 + }, + "popGesture": "close", + "launchwebview": { + "id": "1", + "kernel": "WKWebview" + }, + "usingComponents": true, + "nvueStyleCompiler": "uni-app", + "compilerVersion": 3, + "distribute": { + "icons": { + "android": { + "hdpi": "unpackage/res/icons/72x72.png", + "xhdpi": "unpackage/res/icons/96x96.png", + "xxhdpi": "unpackage/res/icons/144x144.png", + "xxxhdpi": "unpackage/res/icons/192x192.png" + }, + "ios": { + "appstore": "unpackage/res/icons/1024x1024.png", + "ipad": { + "app": "unpackage/res/icons/76x76.png", + "app@2x": "unpackage/res/icons/152x152.png", + "notification": "unpackage/res/icons/20x20.png", + "notification@2x": "unpackage/res/icons/40x40.png", + "proapp@2x": "unpackage/res/icons/167x167.png", + "settings": "unpackage/res/icons/29x29.png", + "settings@2x": "unpackage/res/icons/58x58.png", + "spotlight": "unpackage/res/icons/40x40.png", + "spotlight@2x": "unpackage/res/icons/80x80.png" + }, + "iphone": { + "app@2x": "unpackage/res/icons/120x120.png", + "app@3x": "unpackage/res/icons/180x180.png", + "notification@2x": "unpackage/res/icons/40x40.png", + "notification@3x": "unpackage/res/icons/60x60.png", + "settings@2x": "unpackage/res/icons/58x58.png", + "settings@3x": "unpackage/res/icons/87x87.png", + "spotlight@2x": "unpackage/res/icons/80x80.png", + "spotlight@3x": "unpackage/res/icons/120x120.png" + } + } + }, + "google": { + "permissions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + "apple": { + "dSYMs": false + }, + "plugins": { + "ad": {}, + "geolocation": { + "system": { + "__platform__": [ + "android" + ] + } + }, + "push": { + "unipush": { + "version": "2", + "offline": false + } + }, + "audio": { + "mp3": { + "description": "Android平台录音支持MP3格式文件" + } + } + } + }, + "statusbar": { + "immersed": "supportedDevice", + "style": "dark", + "background": "#000000" + }, + "uniStatistics": { + "enable": false + }, + "allowsInlineMediaPlayback": true, + "safearea": { + "background": "#FFFFFF", + "bottom": { + "offset": "auto" + } + }, + "uni-app": { + "control": "uni-v3", + "vueVersion": "3", + "compilerVersion": "4.15", + "nvueCompiler": "uni-app", + "renderer": "auto", + "nvue": { + "flex-direction": "column" + }, + "nvueLaunchMode": "normal", + "webView": { + "minUserAgentVersion": "49.0" + } + }, + "tabBar": { + "position": "bottom", + "color": "#333333", + "selectedColor": "#01508B", + "borderStyle": "rgba(0,0,0,0.4)", + "blurEffect": "none", + "fontSize": "10px", + "iconWidth": "24px", + "spacing": "3px", + "height": "50px", + "backgroundColor": "#FFFFFF", + "list": [ + { + "text": "首页", + "pagePath": "pages/tab/index", + "iconPath": "/static/tab/index1.png", + "selectedIconPath": "/static/tab/index2.png" + }, + { + "text": "任务", + "pagePath": "pages/task/todotask", + "iconPath": "/static/tab/office1.png", + "selectedIconPath": "/static/tab/office2.png" + }, + { + "text": "办公", + "pagePath": "pages/tab/office", + "iconPath": "/static/tab/product1.png", + "selectedIconPath": "/static/tab/product2.png" + }, + { + "text": "我的", + "pagePath": "pages/tab/my", + "iconPath": "/static/tab/user1.png", + "selectedIconPath": "/static/tab/user2.png" + } + ], + "selectedIndex": 0, + "shown": true + } + }, + "launch_path": "__uniappview.html" +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/checkin/index.css b/unpackage/dist/dev/app-plus/pages/checkin/index.css new file mode 100644 index 0000000..50b26f3 --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/checkin/index.css @@ -0,0 +1,717 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uniui-cart-filled[data-v-d31e1c47]:before { + content: "\e6d0"; +} +.uniui-gift-filled[data-v-d31e1c47]:before { + content: "\e6c4"; +} +.uniui-color[data-v-d31e1c47]:before { + content: "\e6cf"; +} +.uniui-wallet[data-v-d31e1c47]:before { + content: "\e6b1"; +} +.uniui-settings-filled[data-v-d31e1c47]:before { + content: "\e6ce"; +} +.uniui-auth-filled[data-v-d31e1c47]:before { + content: "\e6cc"; +} +.uniui-shop-filled[data-v-d31e1c47]:before { + content: "\e6cd"; +} +.uniui-staff-filled[data-v-d31e1c47]:before { + content: "\e6cb"; +} +.uniui-vip-filled[data-v-d31e1c47]:before { + content: "\e6c6"; +} +.uniui-plus-filled[data-v-d31e1c47]:before { + content: "\e6c7"; +} +.uniui-folder-add-filled[data-v-d31e1c47]:before { + content: "\e6c8"; +} +.uniui-color-filled[data-v-d31e1c47]:before { + content: "\e6c9"; +} +.uniui-tune-filled[data-v-d31e1c47]:before { + content: "\e6ca"; +} +.uniui-calendar-filled[data-v-d31e1c47]:before { + content: "\e6c0"; +} +.uniui-notification-filled[data-v-d31e1c47]:before { + content: "\e6c1"; +} +.uniui-wallet-filled[data-v-d31e1c47]:before { + content: "\e6c2"; +} +.uniui-medal-filled[data-v-d31e1c47]:before { + content: "\e6c3"; +} +.uniui-fire-filled[data-v-d31e1c47]:before { + content: "\e6c5"; +} +.uniui-refreshempty[data-v-d31e1c47]:before { + content: "\e6bf"; +} +.uniui-location-filled[data-v-d31e1c47]:before { + content: "\e6af"; +} +.uniui-person-filled[data-v-d31e1c47]:before { + content: "\e69d"; +} +.uniui-personadd-filled[data-v-d31e1c47]:before { + content: "\e698"; +} +.uniui-arrowthinleft[data-v-d31e1c47]:before { + content: "\e6d2"; +} +.uniui-arrowthinup[data-v-d31e1c47]:before { + content: "\e6d3"; +} +.uniui-arrowthindown[data-v-d31e1c47]:before { + content: "\e6d4"; +} +.uniui-back[data-v-d31e1c47]:before { + content: "\e6b9"; +} +.uniui-forward[data-v-d31e1c47]:before { + content: "\e6ba"; +} +.uniui-arrow-right[data-v-d31e1c47]:before { + content: "\e6bb"; +} +.uniui-arrow-left[data-v-d31e1c47]:before { + content: "\e6bc"; +} +.uniui-arrow-up[data-v-d31e1c47]:before { + content: "\e6bd"; +} +.uniui-arrow-down[data-v-d31e1c47]:before { + content: "\e6be"; +} +.uniui-arrowthinright[data-v-d31e1c47]:before { + content: "\e6d1"; +} +.uniui-down[data-v-d31e1c47]:before { + content: "\e6b8"; +} +.uniui-bottom[data-v-d31e1c47]:before { + content: "\e6b8"; +} +.uniui-arrowright[data-v-d31e1c47]:before { + content: "\e6d5"; +} +.uniui-right[data-v-d31e1c47]:before { + content: "\e6b5"; +} +.uniui-up[data-v-d31e1c47]:before { + content: "\e6b6"; +} +.uniui-top[data-v-d31e1c47]:before { + content: "\e6b6"; +} +.uniui-left[data-v-d31e1c47]:before { + content: "\e6b7"; +} +.uniui-arrowup[data-v-d31e1c47]:before { + content: "\e6d6"; +} +.uniui-eye[data-v-d31e1c47]:before { + content: "\e651"; +} +.uniui-eye-filled[data-v-d31e1c47]:before { + content: "\e66a"; +} +.uniui-eye-slash[data-v-d31e1c47]:before { + content: "\e6b3"; +} +.uniui-eye-slash-filled[data-v-d31e1c47]:before { + content: "\e6b4"; +} +.uniui-info-filled[data-v-d31e1c47]:before { + content: "\e649"; +} +.uniui-reload[data-v-d31e1c47]:before { + content: "\e6b2"; +} +.uniui-micoff-filled[data-v-d31e1c47]:before { + content: "\e6b0"; +} +.uniui-map-pin-ellipse[data-v-d31e1c47]:before { + content: "\e6ac"; +} +.uniui-map-pin[data-v-d31e1c47]:before { + content: "\e6ad"; +} +.uniui-location[data-v-d31e1c47]:before { + content: "\e6ae"; +} +.uniui-starhalf[data-v-d31e1c47]:before { + content: "\e683"; +} +.uniui-star[data-v-d31e1c47]:before { + content: "\e688"; +} +.uniui-star-filled[data-v-d31e1c47]:before { + content: "\e68f"; +} +.uniui-calendar[data-v-d31e1c47]:before { + content: "\e6a0"; +} +.uniui-fire[data-v-d31e1c47]:before { + content: "\e6a1"; +} +.uniui-medal[data-v-d31e1c47]:before { + content: "\e6a2"; +} +.uniui-font[data-v-d31e1c47]:before { + content: "\e6a3"; +} +.uniui-gift[data-v-d31e1c47]:before { + content: "\e6a4"; +} +.uniui-link[data-v-d31e1c47]:before { + content: "\e6a5"; +} +.uniui-notification[data-v-d31e1c47]:before { + content: "\e6a6"; +} +.uniui-staff[data-v-d31e1c47]:before { + content: "\e6a7"; +} +.uniui-vip[data-v-d31e1c47]:before { + content: "\e6a8"; +} +.uniui-folder-add[data-v-d31e1c47]:before { + content: "\e6a9"; +} +.uniui-tune[data-v-d31e1c47]:before { + content: "\e6aa"; +} +.uniui-auth[data-v-d31e1c47]:before { + content: "\e6ab"; +} +.uniui-person[data-v-d31e1c47]:before { + content: "\e699"; +} +.uniui-email-filled[data-v-d31e1c47]:before { + content: "\e69a"; +} +.uniui-phone-filled[data-v-d31e1c47]:before { + content: "\e69b"; +} +.uniui-phone[data-v-d31e1c47]:before { + content: "\e69c"; +} +.uniui-email[data-v-d31e1c47]:before { + content: "\e69e"; +} +.uniui-personadd[data-v-d31e1c47]:before { + content: "\e69f"; +} +.uniui-chatboxes-filled[data-v-d31e1c47]:before { + content: "\e692"; +} +.uniui-contact[data-v-d31e1c47]:before { + content: "\e693"; +} +.uniui-chatbubble-filled[data-v-d31e1c47]:before { + content: "\e694"; +} +.uniui-contact-filled[data-v-d31e1c47]:before { + content: "\e695"; +} +.uniui-chatboxes[data-v-d31e1c47]:before { + content: "\e696"; +} +.uniui-chatbubble[data-v-d31e1c47]:before { + content: "\e697"; +} +.uniui-upload-filled[data-v-d31e1c47]:before { + content: "\e68e"; +} +.uniui-upload[data-v-d31e1c47]:before { + content: "\e690"; +} +.uniui-weixin[data-v-d31e1c47]:before { + content: "\e691"; +} +.uniui-compose[data-v-d31e1c47]:before { + content: "\e67f"; +} +.uniui-qq[data-v-d31e1c47]:before { + content: "\e680"; +} +.uniui-download-filled[data-v-d31e1c47]:before { + content: "\e681"; +} +.uniui-pyq[data-v-d31e1c47]:before { + content: "\e682"; +} +.uniui-sound[data-v-d31e1c47]:before { + content: "\e684"; +} +.uniui-trash-filled[data-v-d31e1c47]:before { + content: "\e685"; +} +.uniui-sound-filled[data-v-d31e1c47]:before { + content: "\e686"; +} +.uniui-trash[data-v-d31e1c47]:before { + content: "\e687"; +} +.uniui-videocam-filled[data-v-d31e1c47]:before { + content: "\e689"; +} +.uniui-spinner-cycle[data-v-d31e1c47]:before { + content: "\e68a"; +} +.uniui-weibo[data-v-d31e1c47]:before { + content: "\e68b"; +} +.uniui-videocam[data-v-d31e1c47]:before { + content: "\e68c"; +} +.uniui-download[data-v-d31e1c47]:before { + content: "\e68d"; +} +.uniui-help[data-v-d31e1c47]:before { + content: "\e679"; +} +.uniui-navigate-filled[data-v-d31e1c47]:before { + content: "\e67a"; +} +.uniui-plusempty[data-v-d31e1c47]:before { + content: "\e67b"; +} +.uniui-smallcircle[data-v-d31e1c47]:before { + content: "\e67c"; +} +.uniui-minus-filled[data-v-d31e1c47]:before { + content: "\e67d"; +} +.uniui-micoff[data-v-d31e1c47]:before { + content: "\e67e"; +} +.uniui-closeempty[data-v-d31e1c47]:before { + content: "\e66c"; +} +.uniui-clear[data-v-d31e1c47]:before { + content: "\e66d"; +} +.uniui-navigate[data-v-d31e1c47]:before { + content: "\e66e"; +} +.uniui-minus[data-v-d31e1c47]:before { + content: "\e66f"; +} +.uniui-image[data-v-d31e1c47]:before { + content: "\e670"; +} +.uniui-mic[data-v-d31e1c47]:before { + content: "\e671"; +} +.uniui-paperplane[data-v-d31e1c47]:before { + content: "\e672"; +} +.uniui-close[data-v-d31e1c47]:before { + content: "\e673"; +} +.uniui-help-filled[data-v-d31e1c47]:before { + content: "\e674"; +} +.uniui-paperplane-filled[data-v-d31e1c47]:before { + content: "\e675"; +} +.uniui-plus[data-v-d31e1c47]:before { + content: "\e676"; +} +.uniui-mic-filled[data-v-d31e1c47]:before { + content: "\e677"; +} +.uniui-image-filled[data-v-d31e1c47]:before { + content: "\e678"; +} +.uniui-locked-filled[data-v-d31e1c47]:before { + content: "\e668"; +} +.uniui-info[data-v-d31e1c47]:before { + content: "\e669"; +} +.uniui-locked[data-v-d31e1c47]:before { + content: "\e66b"; +} +.uniui-camera-filled[data-v-d31e1c47]:before { + content: "\e658"; +} +.uniui-chat-filled[data-v-d31e1c47]:before { + content: "\e659"; +} +.uniui-camera[data-v-d31e1c47]:before { + content: "\e65a"; +} +.uniui-circle[data-v-d31e1c47]:before { + content: "\e65b"; +} +.uniui-checkmarkempty[data-v-d31e1c47]:before { + content: "\e65c"; +} +.uniui-chat[data-v-d31e1c47]:before { + content: "\e65d"; +} +.uniui-circle-filled[data-v-d31e1c47]:before { + content: "\e65e"; +} +.uniui-flag[data-v-d31e1c47]:before { + content: "\e65f"; +} +.uniui-flag-filled[data-v-d31e1c47]:before { + content: "\e660"; +} +.uniui-gear-filled[data-v-d31e1c47]:before { + content: "\e661"; +} +.uniui-home[data-v-d31e1c47]:before { + content: "\e662"; +} +.uniui-home-filled[data-v-d31e1c47]:before { + content: "\e663"; +} +.uniui-gear[data-v-d31e1c47]:before { + content: "\e664"; +} +.uniui-smallcircle-filled[data-v-d31e1c47]:before { + content: "\e665"; +} +.uniui-map-filled[data-v-d31e1c47]:before { + content: "\e666"; +} +.uniui-map[data-v-d31e1c47]:before { + content: "\e667"; +} +.uniui-refresh-filled[data-v-d31e1c47]:before { + content: "\e656"; +} +.uniui-refresh[data-v-d31e1c47]:before { + content: "\e657"; +} +.uniui-cloud-upload[data-v-d31e1c47]:before { + content: "\e645"; +} +.uniui-cloud-download-filled[data-v-d31e1c47]:before { + content: "\e646"; +} +.uniui-cloud-download[data-v-d31e1c47]:before { + content: "\e647"; +} +.uniui-cloud-upload-filled[data-v-d31e1c47]:before { + content: "\e648"; +} +.uniui-redo[data-v-d31e1c47]:before { + content: "\e64a"; +} +.uniui-images-filled[data-v-d31e1c47]:before { + content: "\e64b"; +} +.uniui-undo-filled[data-v-d31e1c47]:before { + content: "\e64c"; +} +.uniui-more[data-v-d31e1c47]:before { + content: "\e64d"; +} +.uniui-more-filled[data-v-d31e1c47]:before { + content: "\e64e"; +} +.uniui-undo[data-v-d31e1c47]:before { + content: "\e64f"; +} +.uniui-images[data-v-d31e1c47]:before { + content: "\e650"; +} +.uniui-paperclip[data-v-d31e1c47]:before { + content: "\e652"; +} +.uniui-settings[data-v-d31e1c47]:before { + content: "\e653"; +} +.uniui-search[data-v-d31e1c47]:before { + content: "\e654"; +} +.uniui-redo-filled[data-v-d31e1c47]:before { + content: "\e655"; +} +.uniui-list[data-v-d31e1c47]:before { + content: "\e644"; +} +.uniui-mail-open-filled[data-v-d31e1c47]:before { + content: "\e63a"; +} +.uniui-hand-down-filled[data-v-d31e1c47]:before { + content: "\e63c"; +} +.uniui-hand-down[data-v-d31e1c47]:before { + content: "\e63d"; +} +.uniui-hand-up-filled[data-v-d31e1c47]:before { + content: "\e63e"; +} +.uniui-hand-up[data-v-d31e1c47]:before { + content: "\e63f"; +} +.uniui-heart-filled[data-v-d31e1c47]:before { + content: "\e641"; +} +.uniui-mail-open[data-v-d31e1c47]:before { + content: "\e643"; +} +.uniui-heart[data-v-d31e1c47]:before { + content: "\e639"; +} +.uniui-loop[data-v-d31e1c47]:before { + content: "\e633"; +} +.uniui-pulldown[data-v-d31e1c47]:before { + content: "\e632"; +} +.uniui-scan[data-v-d31e1c47]:before { + content: "\e62a"; +} +.uniui-bars[data-v-d31e1c47]:before { + content: "\e627"; +} +.uniui-checkbox[data-v-d31e1c47]:before { + content: "\e62b"; +} +.uniui-checkbox-filled[data-v-d31e1c47]:before { + content: "\e62c"; +} +.uniui-shop[data-v-d31e1c47]:before { + content: "\e62f"; +} +.uniui-headphones[data-v-d31e1c47]:before { + content: "\e630"; +} +.uniui-cart[data-v-d31e1c47]:before { + content: "\e631"; +} +@font-face { + font-family: uniicons; + src: url("../../assets/uniicons.32e978a5.ttf"); +} +.uni-icons[data-v-d31e1c47] { + font-family: uniicons; + text-decoration: none; + text-align: center; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.nav[data-v-420daeb5] { + width: calc(100% - 1.875rem); + padding: 0 0.9375rem; + height: var(--420daeb5-cusnavbarheight); + background: linear-gradient(270deg, #256FBC 0%, #044D87 100%); + font-size: 0.75rem; + color: #FFFFFF; + position: fixed; + top: 0; + left: 0; + z-index: 99; +} +.place[data-v-420daeb5] { + height: var(--420daeb5-cusnavbarheight); +} + +body { + background-color: #f8f8f8; +} + +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.content[data-v-1410bd6b] { + padding-bottom: 3.75rem; +} +.nav_box[data-v-1410bd6b] { + position: absolute; + bottom: 0.5rem; + left: 0; + width: calc(100% - 1.875rem); +} +.back[data-v-1410bd6b] { + padding-left: 0.9375rem; +} +uni-image[data-v-1410bd6b] { + width: 2rem; + height: 2rem; + border-radius: 1rem; + background-color: #fff; + margin-right: 0.625rem; + margin-left: 1.5625rem; +} +.name[data-v-1410bd6b] { + font-size: 0.875rem; + color: #FFFFFF; +} +.position[data-v-1410bd6b] { + font-size: 0.75rem; + color: #FFFFFF; +} +.time_box[data-v-1410bd6b] { + padding: 0.9375rem; +} +.time_box .box[data-v-1410bd6b] { + padding: 1.25rem 0.9375rem; + flex: 1; + box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.5); + border-radius: 0.5rem; +} +.time_box .box[data-v-1410bd6b]:nth-child(1) { + border: 0.03125rem solid #3AC050; + background: #F5FFF7; + margin-right: 0.9375rem; +} +.time_box .box[data-v-1410bd6b]:nth-child(2) { + background: #FFF7F5; + border: 0.03125rem solid #F05C43; +} +.time_box .time[data-v-1410bd6b] { + font-size: 0.875rem; + color: #333333; +} +.time_box .time uni-image[data-v-1410bd6b] { + width: 0.875rem; + height: 0.875rem; + margin-left: 0.3125rem; +} +.time_box .text[data-v-1410bd6b] { + font-size: 0.75rem; + color: #888888; + margin-top: 0.5625rem; +} +.checkin[data-v-1410bd6b] { + margin: 0 0.9375rem; + background: #FFFFFF; + box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.5); + border-radius: 0.5rem; + height: 25.5625rem; +} +.checkin .status[data-v-1410bd6b] { + font-weight: 600; + font-size: 1.4375rem; + color: #F05C43; +} +.checkin .status uni-image[data-v-1410bd6b] { + width: 1.8125rem; + height: 2.15625rem; + margin-top: 2.21875rem; +} +.checkin .status uni-text[data-v-1410bd6b] { + margin-top: 0.71875rem; +} +.checkin .out[data-v-1410bd6b] { + background-image: url("../../static/checkin/circle1.png"); +} +.checkin .check[data-v-1410bd6b] { + background-image: url("../../static/checkin/circle2.png"); +} +.checkin .success[data-v-1410bd6b] { + background-image: url("../../static/checkin/circle3.png"); +} +.checkin .fail[data-v-1410bd6b] { + background-image: url("../../static/checkin/circle4.png"); +} +.checkin .circle[data-v-1410bd6b] { + width: 10.9375rem; + height: 10.9375rem; + background-size: 10.9375rem 10.9375rem; + margin-top: 4.6875rem; +} +.checkin .circle .title[data-v-1410bd6b], +.checkin .circle .time[data-v-1410bd6b] { + font-weight: 600; + font-size: 1.4375rem; + color: #333333; +} +.checkin .circle .title[data-v-1410bd6b] { + margin-top: 2.5rem; +} +.checkin .circle .time[data-v-1410bd6b] { + margin-top: 0.25rem; +} +.checkin .circle .ontime[data-v-1410bd6b] { + font-size: 0.875rem; + color: #888888; + margin-top: 0.375rem; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/document/detail.css b/unpackage/dist/dev/app-plus/pages/document/detail.css new file mode 100644 index 0000000..287ecac --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/document/detail.css @@ -0,0 +1,53 @@ + + /* page{ + background-color: #f8f8f8; + } */ + +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.content[data-v-2c024c80] { + padding: 0 0.9375rem; +} +.title_box .title[data-v-2c024c80] { + font-size: 1rem; + color: #333333; + padding: 0.9375rem 0 0.625rem 0; +} +.title_box .time[data-v-2c024c80] { + font-size: 0.75rem; + color: #888888; + padding-bottom: 0.9375rem; +} +.document uni-text[data-v-2c024c80] { + font-size: 0.875rem; + color: #333333; + white-space: nowrap; +} +.document uni-view[data-v-2c024c80] { + font-size: 0.875rem; + color: #5A79F8; + text-decoration: underline; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/document/index.css b/unpackage/dist/dev/app-plus/pages/document/index.css new file mode 100644 index 0000000..4ac7015 --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/document/index.css @@ -0,0 +1,690 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uniui-cart-filled[data-v-d31e1c47]:before { + content: "\e6d0"; +} +.uniui-gift-filled[data-v-d31e1c47]:before { + content: "\e6c4"; +} +.uniui-color[data-v-d31e1c47]:before { + content: "\e6cf"; +} +.uniui-wallet[data-v-d31e1c47]:before { + content: "\e6b1"; +} +.uniui-settings-filled[data-v-d31e1c47]:before { + content: "\e6ce"; +} +.uniui-auth-filled[data-v-d31e1c47]:before { + content: "\e6cc"; +} +.uniui-shop-filled[data-v-d31e1c47]:before { + content: "\e6cd"; +} +.uniui-staff-filled[data-v-d31e1c47]:before { + content: "\e6cb"; +} +.uniui-vip-filled[data-v-d31e1c47]:before { + content: "\e6c6"; +} +.uniui-plus-filled[data-v-d31e1c47]:before { + content: "\e6c7"; +} +.uniui-folder-add-filled[data-v-d31e1c47]:before { + content: "\e6c8"; +} +.uniui-color-filled[data-v-d31e1c47]:before { + content: "\e6c9"; +} +.uniui-tune-filled[data-v-d31e1c47]:before { + content: "\e6ca"; +} +.uniui-calendar-filled[data-v-d31e1c47]:before { + content: "\e6c0"; +} +.uniui-notification-filled[data-v-d31e1c47]:before { + content: "\e6c1"; +} +.uniui-wallet-filled[data-v-d31e1c47]:before { + content: "\e6c2"; +} +.uniui-medal-filled[data-v-d31e1c47]:before { + content: "\e6c3"; +} +.uniui-fire-filled[data-v-d31e1c47]:before { + content: "\e6c5"; +} +.uniui-refreshempty[data-v-d31e1c47]:before { + content: "\e6bf"; +} +.uniui-location-filled[data-v-d31e1c47]:before { + content: "\e6af"; +} +.uniui-person-filled[data-v-d31e1c47]:before { + content: "\e69d"; +} +.uniui-personadd-filled[data-v-d31e1c47]:before { + content: "\e698"; +} +.uniui-arrowthinleft[data-v-d31e1c47]:before { + content: "\e6d2"; +} +.uniui-arrowthinup[data-v-d31e1c47]:before { + content: "\e6d3"; +} +.uniui-arrowthindown[data-v-d31e1c47]:before { + content: "\e6d4"; +} +.uniui-back[data-v-d31e1c47]:before { + content: "\e6b9"; +} +.uniui-forward[data-v-d31e1c47]:before { + content: "\e6ba"; +} +.uniui-arrow-right[data-v-d31e1c47]:before { + content: "\e6bb"; +} +.uniui-arrow-left[data-v-d31e1c47]:before { + content: "\e6bc"; +} +.uniui-arrow-up[data-v-d31e1c47]:before { + content: "\e6bd"; +} +.uniui-arrow-down[data-v-d31e1c47]:before { + content: "\e6be"; +} +.uniui-arrowthinright[data-v-d31e1c47]:before { + content: "\e6d1"; +} +.uniui-down[data-v-d31e1c47]:before { + content: "\e6b8"; +} +.uniui-bottom[data-v-d31e1c47]:before { + content: "\e6b8"; +} +.uniui-arrowright[data-v-d31e1c47]:before { + content: "\e6d5"; +} +.uniui-right[data-v-d31e1c47]:before { + content: "\e6b5"; +} +.uniui-up[data-v-d31e1c47]:before { + content: "\e6b6"; +} +.uniui-top[data-v-d31e1c47]:before { + content: "\e6b6"; +} +.uniui-left[data-v-d31e1c47]:before { + content: "\e6b7"; +} +.uniui-arrowup[data-v-d31e1c47]:before { + content: "\e6d6"; +} +.uniui-eye[data-v-d31e1c47]:before { + content: "\e651"; +} +.uniui-eye-filled[data-v-d31e1c47]:before { + content: "\e66a"; +} +.uniui-eye-slash[data-v-d31e1c47]:before { + content: "\e6b3"; +} +.uniui-eye-slash-filled[data-v-d31e1c47]:before { + content: "\e6b4"; +} +.uniui-info-filled[data-v-d31e1c47]:before { + content: "\e649"; +} +.uniui-reload[data-v-d31e1c47]:before { + content: "\e6b2"; +} +.uniui-micoff-filled[data-v-d31e1c47]:before { + content: "\e6b0"; +} +.uniui-map-pin-ellipse[data-v-d31e1c47]:before { + content: "\e6ac"; +} +.uniui-map-pin[data-v-d31e1c47]:before { + content: "\e6ad"; +} +.uniui-location[data-v-d31e1c47]:before { + content: "\e6ae"; +} +.uniui-starhalf[data-v-d31e1c47]:before { + content: "\e683"; +} +.uniui-star[data-v-d31e1c47]:before { + content: "\e688"; +} +.uniui-star-filled[data-v-d31e1c47]:before { + content: "\e68f"; +} +.uniui-calendar[data-v-d31e1c47]:before { + content: "\e6a0"; +} +.uniui-fire[data-v-d31e1c47]:before { + content: "\e6a1"; +} +.uniui-medal[data-v-d31e1c47]:before { + content: "\e6a2"; +} +.uniui-font[data-v-d31e1c47]:before { + content: "\e6a3"; +} +.uniui-gift[data-v-d31e1c47]:before { + content: "\e6a4"; +} +.uniui-link[data-v-d31e1c47]:before { + content: "\e6a5"; +} +.uniui-notification[data-v-d31e1c47]:before { + content: "\e6a6"; +} +.uniui-staff[data-v-d31e1c47]:before { + content: "\e6a7"; +} +.uniui-vip[data-v-d31e1c47]:before { + content: "\e6a8"; +} +.uniui-folder-add[data-v-d31e1c47]:before { + content: "\e6a9"; +} +.uniui-tune[data-v-d31e1c47]:before { + content: "\e6aa"; +} +.uniui-auth[data-v-d31e1c47]:before { + content: "\e6ab"; +} +.uniui-person[data-v-d31e1c47]:before { + content: "\e699"; +} +.uniui-email-filled[data-v-d31e1c47]:before { + content: "\e69a"; +} +.uniui-phone-filled[data-v-d31e1c47]:before { + content: "\e69b"; +} +.uniui-phone[data-v-d31e1c47]:before { + content: "\e69c"; +} +.uniui-email[data-v-d31e1c47]:before { + content: "\e69e"; +} +.uniui-personadd[data-v-d31e1c47]:before { + content: "\e69f"; +} +.uniui-chatboxes-filled[data-v-d31e1c47]:before { + content: "\e692"; +} +.uniui-contact[data-v-d31e1c47]:before { + content: "\e693"; +} +.uniui-chatbubble-filled[data-v-d31e1c47]:before { + content: "\e694"; +} +.uniui-contact-filled[data-v-d31e1c47]:before { + content: "\e695"; +} +.uniui-chatboxes[data-v-d31e1c47]:before { + content: "\e696"; +} +.uniui-chatbubble[data-v-d31e1c47]:before { + content: "\e697"; +} +.uniui-upload-filled[data-v-d31e1c47]:before { + content: "\e68e"; +} +.uniui-upload[data-v-d31e1c47]:before { + content: "\e690"; +} +.uniui-weixin[data-v-d31e1c47]:before { + content: "\e691"; +} +.uniui-compose[data-v-d31e1c47]:before { + content: "\e67f"; +} +.uniui-qq[data-v-d31e1c47]:before { + content: "\e680"; +} +.uniui-download-filled[data-v-d31e1c47]:before { + content: "\e681"; +} +.uniui-pyq[data-v-d31e1c47]:before { + content: "\e682"; +} +.uniui-sound[data-v-d31e1c47]:before { + content: "\e684"; +} +.uniui-trash-filled[data-v-d31e1c47]:before { + content: "\e685"; +} +.uniui-sound-filled[data-v-d31e1c47]:before { + content: "\e686"; +} +.uniui-trash[data-v-d31e1c47]:before { + content: "\e687"; +} +.uniui-videocam-filled[data-v-d31e1c47]:before { + content: "\e689"; +} +.uniui-spinner-cycle[data-v-d31e1c47]:before { + content: "\e68a"; +} +.uniui-weibo[data-v-d31e1c47]:before { + content: "\e68b"; +} +.uniui-videocam[data-v-d31e1c47]:before { + content: "\e68c"; +} +.uniui-download[data-v-d31e1c47]:before { + content: "\e68d"; +} +.uniui-help[data-v-d31e1c47]:before { + content: "\e679"; +} +.uniui-navigate-filled[data-v-d31e1c47]:before { + content: "\e67a"; +} +.uniui-plusempty[data-v-d31e1c47]:before { + content: "\e67b"; +} +.uniui-smallcircle[data-v-d31e1c47]:before { + content: "\e67c"; +} +.uniui-minus-filled[data-v-d31e1c47]:before { + content: "\e67d"; +} +.uniui-micoff[data-v-d31e1c47]:before { + content: "\e67e"; +} +.uniui-closeempty[data-v-d31e1c47]:before { + content: "\e66c"; +} +.uniui-clear[data-v-d31e1c47]:before { + content: "\e66d"; +} +.uniui-navigate[data-v-d31e1c47]:before { + content: "\e66e"; +} +.uniui-minus[data-v-d31e1c47]:before { + content: "\e66f"; +} +.uniui-image[data-v-d31e1c47]:before { + content: "\e670"; +} +.uniui-mic[data-v-d31e1c47]:before { + content: "\e671"; +} +.uniui-paperplane[data-v-d31e1c47]:before { + content: "\e672"; +} +.uniui-close[data-v-d31e1c47]:before { + content: "\e673"; +} +.uniui-help-filled[data-v-d31e1c47]:before { + content: "\e674"; +} +.uniui-paperplane-filled[data-v-d31e1c47]:before { + content: "\e675"; +} +.uniui-plus[data-v-d31e1c47]:before { + content: "\e676"; +} +.uniui-mic-filled[data-v-d31e1c47]:before { + content: "\e677"; +} +.uniui-image-filled[data-v-d31e1c47]:before { + content: "\e678"; +} +.uniui-locked-filled[data-v-d31e1c47]:before { + content: "\e668"; +} +.uniui-info[data-v-d31e1c47]:before { + content: "\e669"; +} +.uniui-locked[data-v-d31e1c47]:before { + content: "\e66b"; +} +.uniui-camera-filled[data-v-d31e1c47]:before { + content: "\e658"; +} +.uniui-chat-filled[data-v-d31e1c47]:before { + content: "\e659"; +} +.uniui-camera[data-v-d31e1c47]:before { + content: "\e65a"; +} +.uniui-circle[data-v-d31e1c47]:before { + content: "\e65b"; +} +.uniui-checkmarkempty[data-v-d31e1c47]:before { + content: "\e65c"; +} +.uniui-chat[data-v-d31e1c47]:before { + content: "\e65d"; +} +.uniui-circle-filled[data-v-d31e1c47]:before { + content: "\e65e"; +} +.uniui-flag[data-v-d31e1c47]:before { + content: "\e65f"; +} +.uniui-flag-filled[data-v-d31e1c47]:before { + content: "\e660"; +} +.uniui-gear-filled[data-v-d31e1c47]:before { + content: "\e661"; +} +.uniui-home[data-v-d31e1c47]:before { + content: "\e662"; +} +.uniui-home-filled[data-v-d31e1c47]:before { + content: "\e663"; +} +.uniui-gear[data-v-d31e1c47]:before { + content: "\e664"; +} +.uniui-smallcircle-filled[data-v-d31e1c47]:before { + content: "\e665"; +} +.uniui-map-filled[data-v-d31e1c47]:before { + content: "\e666"; +} +.uniui-map[data-v-d31e1c47]:before { + content: "\e667"; +} +.uniui-refresh-filled[data-v-d31e1c47]:before { + content: "\e656"; +} +.uniui-refresh[data-v-d31e1c47]:before { + content: "\e657"; +} +.uniui-cloud-upload[data-v-d31e1c47]:before { + content: "\e645"; +} +.uniui-cloud-download-filled[data-v-d31e1c47]:before { + content: "\e646"; +} +.uniui-cloud-download[data-v-d31e1c47]:before { + content: "\e647"; +} +.uniui-cloud-upload-filled[data-v-d31e1c47]:before { + content: "\e648"; +} +.uniui-redo[data-v-d31e1c47]:before { + content: "\e64a"; +} +.uniui-images-filled[data-v-d31e1c47]:before { + content: "\e64b"; +} +.uniui-undo-filled[data-v-d31e1c47]:before { + content: "\e64c"; +} +.uniui-more[data-v-d31e1c47]:before { + content: "\e64d"; +} +.uniui-more-filled[data-v-d31e1c47]:before { + content: "\e64e"; +} +.uniui-undo[data-v-d31e1c47]:before { + content: "\e64f"; +} +.uniui-images[data-v-d31e1c47]:before { + content: "\e650"; +} +.uniui-paperclip[data-v-d31e1c47]:before { + content: "\e652"; +} +.uniui-settings[data-v-d31e1c47]:before { + content: "\e653"; +} +.uniui-search[data-v-d31e1c47]:before { + content: "\e654"; +} +.uniui-redo-filled[data-v-d31e1c47]:before { + content: "\e655"; +} +.uniui-list[data-v-d31e1c47]:before { + content: "\e644"; +} +.uniui-mail-open-filled[data-v-d31e1c47]:before { + content: "\e63a"; +} +.uniui-hand-down-filled[data-v-d31e1c47]:before { + content: "\e63c"; +} +.uniui-hand-down[data-v-d31e1c47]:before { + content: "\e63d"; +} +.uniui-hand-up-filled[data-v-d31e1c47]:before { + content: "\e63e"; +} +.uniui-hand-up[data-v-d31e1c47]:before { + content: "\e63f"; +} +.uniui-heart-filled[data-v-d31e1c47]:before { + content: "\e641"; +} +.uniui-mail-open[data-v-d31e1c47]:before { + content: "\e643"; +} +.uniui-heart[data-v-d31e1c47]:before { + content: "\e639"; +} +.uniui-loop[data-v-d31e1c47]:before { + content: "\e633"; +} +.uniui-pulldown[data-v-d31e1c47]:before { + content: "\e632"; +} +.uniui-scan[data-v-d31e1c47]:before { + content: "\e62a"; +} +.uniui-bars[data-v-d31e1c47]:before { + content: "\e627"; +} +.uniui-checkbox[data-v-d31e1c47]:before { + content: "\e62b"; +} +.uniui-checkbox-filled[data-v-d31e1c47]:before { + content: "\e62c"; +} +.uniui-shop[data-v-d31e1c47]:before { + content: "\e62f"; +} +.uniui-headphones[data-v-d31e1c47]:before { + content: "\e630"; +} +.uniui-cart[data-v-d31e1c47]:before { + content: "\e631"; +} +@font-face { + font-family: uniicons; + src: url("../../assets/uniicons.32e978a5.ttf"); +} +.uni-icons[data-v-d31e1c47] { + font-family: uniicons; + text-decoration: none; + text-align: center; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.nav[data-v-420daeb5] { + width: calc(100% - 1.875rem); + padding: 0 0.9375rem; + height: var(--420daeb5-cusnavbarheight); + background: linear-gradient(270deg, #256FBC 0%, #044D87 100%); + font-size: 0.75rem; + color: #FFFFFF; + position: fixed; + top: 0; + left: 0; + z-index: 99; +} +.place[data-v-420daeb5] { + height: var(--420daeb5-cusnavbarheight); +} + +body { + background-color: #f8f8f8; +} + +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.content[data-v-ae7a950b] { + padding-top: var(--ae7a950b-cusnavbarheight); + padding-bottom: 0.75rem; +} +.list[data-v-ae7a950b] { + padding: 0 0.9375rem; +} +.list .item[data-v-ae7a950b] { + background: #FFFFFF; + box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.5); + border-radius: 0.5rem; + padding: 0.9375rem; + margin-top: 0.75rem; + position: relative; +} +.list .item .dot[data-v-ae7a950b] { + width: 0.375rem; + height: 0.375rem; + background: #ED361D; + position: absolute; + border-radius: 50%; + left: 0.28125rem; + top: 1.375rem; +} +.list .item .title[data-v-ae7a950b] { + margin-bottom: 0.625rem; + font-size: 0.875rem; + color: #333333; +} +.list .item .time_box[data-v-ae7a950b] { + font-size: 0.75rem; + color: #888888; +} +.list .item .time_box .look[data-v-ae7a950b] { + position: relative; + margin-left: 1.875rem; +} +.list .item .time_box .look[data-v-ae7a950b]::after { + position: absolute; + content: " "; + width: 0.0625rem; + height: 0.625rem; + background: #999999; + top: 50%; + transform: translateY(-50%); + left: -0.9375rem; +} +.list .item uni-image[data-v-ae7a950b] { + width: 0.875rem; + height: 0.6875rem; + margin-left: 1.9375rem; + margin-right: 0.25rem; +} +.nav_box[data-v-ae7a950b] { + position: absolute; + bottom: 0.4375rem; + width: 100%; + left: 0; +} +.back[data-v-ae7a950b] { + padding: 0 0.9375rem; +} +.search[data-v-ae7a950b] { + position: relative; + padding-right: 0.9375rem; + flex: 1; +} +.search uni-view[data-v-ae7a950b] { + position: absolute; + left: 0.875rem; + top: 50%; + transform: translateY(-50%); + font-size: 0.875rem; + color: #999999; +} +.search uni-input[data-v-ae7a950b] { + flex: 1; + height: 2.25rem; + background: #F8F8F8; + border-radius: 1.375rem; + padding: 0 0.875rem; + color: #333333; +} +.search uni-image[data-v-ae7a950b] { + width: 1.0625rem; + height: 1.0625rem; + margin-right: 0.5rem; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/leave/application.css b/unpackage/dist/dev/app-plus/pages/leave/application.css new file mode 100644 index 0000000..43338f4 --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/leave/application.css @@ -0,0 +1,1322 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uniui-cart-filled[data-v-d31e1c47]:before { + content: "\e6d0"; +} +.uniui-gift-filled[data-v-d31e1c47]:before { + content: "\e6c4"; +} +.uniui-color[data-v-d31e1c47]:before { + content: "\e6cf"; +} +.uniui-wallet[data-v-d31e1c47]:before { + content: "\e6b1"; +} +.uniui-settings-filled[data-v-d31e1c47]:before { + content: "\e6ce"; +} +.uniui-auth-filled[data-v-d31e1c47]:before { + content: "\e6cc"; +} +.uniui-shop-filled[data-v-d31e1c47]:before { + content: "\e6cd"; +} +.uniui-staff-filled[data-v-d31e1c47]:before { + content: "\e6cb"; +} +.uniui-vip-filled[data-v-d31e1c47]:before { + content: "\e6c6"; +} +.uniui-plus-filled[data-v-d31e1c47]:before { + content: "\e6c7"; +} +.uniui-folder-add-filled[data-v-d31e1c47]:before { + content: "\e6c8"; +} +.uniui-color-filled[data-v-d31e1c47]:before { + content: "\e6c9"; +} +.uniui-tune-filled[data-v-d31e1c47]:before { + content: "\e6ca"; +} +.uniui-calendar-filled[data-v-d31e1c47]:before { + content: "\e6c0"; +} +.uniui-notification-filled[data-v-d31e1c47]:before { + content: "\e6c1"; +} +.uniui-wallet-filled[data-v-d31e1c47]:before { + content: "\e6c2"; +} +.uniui-medal-filled[data-v-d31e1c47]:before { + content: "\e6c3"; +} +.uniui-fire-filled[data-v-d31e1c47]:before { + content: "\e6c5"; +} +.uniui-refreshempty[data-v-d31e1c47]:before { + content: "\e6bf"; +} +.uniui-location-filled[data-v-d31e1c47]:before { + content: "\e6af"; +} +.uniui-person-filled[data-v-d31e1c47]:before { + content: "\e69d"; +} +.uniui-personadd-filled[data-v-d31e1c47]:before { + content: "\e698"; +} +.uniui-arrowthinleft[data-v-d31e1c47]:before { + content: "\e6d2"; +} +.uniui-arrowthinup[data-v-d31e1c47]:before { + content: "\e6d3"; +} +.uniui-arrowthindown[data-v-d31e1c47]:before { + content: "\e6d4"; +} +.uniui-back[data-v-d31e1c47]:before { + content: "\e6b9"; +} +.uniui-forward[data-v-d31e1c47]:before { + content: "\e6ba"; +} +.uniui-arrow-right[data-v-d31e1c47]:before { + content: "\e6bb"; +} +.uniui-arrow-left[data-v-d31e1c47]:before { + content: "\e6bc"; +} +.uniui-arrow-up[data-v-d31e1c47]:before { + content: "\e6bd"; +} +.uniui-arrow-down[data-v-d31e1c47]:before { + content: "\e6be"; +} +.uniui-arrowthinright[data-v-d31e1c47]:before { + content: "\e6d1"; +} +.uniui-down[data-v-d31e1c47]:before { + content: "\e6b8"; +} +.uniui-bottom[data-v-d31e1c47]:before { + content: "\e6b8"; +} +.uniui-arrowright[data-v-d31e1c47]:before { + content: "\e6d5"; +} +.uniui-right[data-v-d31e1c47]:before { + content: "\e6b5"; +} +.uniui-up[data-v-d31e1c47]:before { + content: "\e6b6"; +} +.uniui-top[data-v-d31e1c47]:before { + content: "\e6b6"; +} +.uniui-left[data-v-d31e1c47]:before { + content: "\e6b7"; +} +.uniui-arrowup[data-v-d31e1c47]:before { + content: "\e6d6"; +} +.uniui-eye[data-v-d31e1c47]:before { + content: "\e651"; +} +.uniui-eye-filled[data-v-d31e1c47]:before { + content: "\e66a"; +} +.uniui-eye-slash[data-v-d31e1c47]:before { + content: "\e6b3"; +} +.uniui-eye-slash-filled[data-v-d31e1c47]:before { + content: "\e6b4"; +} +.uniui-info-filled[data-v-d31e1c47]:before { + content: "\e649"; +} +.uniui-reload[data-v-d31e1c47]:before { + content: "\e6b2"; +} +.uniui-micoff-filled[data-v-d31e1c47]:before { + content: "\e6b0"; +} +.uniui-map-pin-ellipse[data-v-d31e1c47]:before { + content: "\e6ac"; +} +.uniui-map-pin[data-v-d31e1c47]:before { + content: "\e6ad"; +} +.uniui-location[data-v-d31e1c47]:before { + content: "\e6ae"; +} +.uniui-starhalf[data-v-d31e1c47]:before { + content: "\e683"; +} +.uniui-star[data-v-d31e1c47]:before { + content: "\e688"; +} +.uniui-star-filled[data-v-d31e1c47]:before { + content: "\e68f"; +} +.uniui-calendar[data-v-d31e1c47]:before { + content: "\e6a0"; +} +.uniui-fire[data-v-d31e1c47]:before { + content: "\e6a1"; +} +.uniui-medal[data-v-d31e1c47]:before { + content: "\e6a2"; +} +.uniui-font[data-v-d31e1c47]:before { + content: "\e6a3"; +} +.uniui-gift[data-v-d31e1c47]:before { + content: "\e6a4"; +} +.uniui-link[data-v-d31e1c47]:before { + content: "\e6a5"; +} +.uniui-notification[data-v-d31e1c47]:before { + content: "\e6a6"; +} +.uniui-staff[data-v-d31e1c47]:before { + content: "\e6a7"; +} +.uniui-vip[data-v-d31e1c47]:before { + content: "\e6a8"; +} +.uniui-folder-add[data-v-d31e1c47]:before { + content: "\e6a9"; +} +.uniui-tune[data-v-d31e1c47]:before { + content: "\e6aa"; +} +.uniui-auth[data-v-d31e1c47]:before { + content: "\e6ab"; +} +.uniui-person[data-v-d31e1c47]:before { + content: "\e699"; +} +.uniui-email-filled[data-v-d31e1c47]:before { + content: "\e69a"; +} +.uniui-phone-filled[data-v-d31e1c47]:before { + content: "\e69b"; +} +.uniui-phone[data-v-d31e1c47]:before { + content: "\e69c"; +} +.uniui-email[data-v-d31e1c47]:before { + content: "\e69e"; +} +.uniui-personadd[data-v-d31e1c47]:before { + content: "\e69f"; +} +.uniui-chatboxes-filled[data-v-d31e1c47]:before { + content: "\e692"; +} +.uniui-contact[data-v-d31e1c47]:before { + content: "\e693"; +} +.uniui-chatbubble-filled[data-v-d31e1c47]:before { + content: "\e694"; +} +.uniui-contact-filled[data-v-d31e1c47]:before { + content: "\e695"; +} +.uniui-chatboxes[data-v-d31e1c47]:before { + content: "\e696"; +} +.uniui-chatbubble[data-v-d31e1c47]:before { + content: "\e697"; +} +.uniui-upload-filled[data-v-d31e1c47]:before { + content: "\e68e"; +} +.uniui-upload[data-v-d31e1c47]:before { + content: "\e690"; +} +.uniui-weixin[data-v-d31e1c47]:before { + content: "\e691"; +} +.uniui-compose[data-v-d31e1c47]:before { + content: "\e67f"; +} +.uniui-qq[data-v-d31e1c47]:before { + content: "\e680"; +} +.uniui-download-filled[data-v-d31e1c47]:before { + content: "\e681"; +} +.uniui-pyq[data-v-d31e1c47]:before { + content: "\e682"; +} +.uniui-sound[data-v-d31e1c47]:before { + content: "\e684"; +} +.uniui-trash-filled[data-v-d31e1c47]:before { + content: "\e685"; +} +.uniui-sound-filled[data-v-d31e1c47]:before { + content: "\e686"; +} +.uniui-trash[data-v-d31e1c47]:before { + content: "\e687"; +} +.uniui-videocam-filled[data-v-d31e1c47]:before { + content: "\e689"; +} +.uniui-spinner-cycle[data-v-d31e1c47]:before { + content: "\e68a"; +} +.uniui-weibo[data-v-d31e1c47]:before { + content: "\e68b"; +} +.uniui-videocam[data-v-d31e1c47]:before { + content: "\e68c"; +} +.uniui-download[data-v-d31e1c47]:before { + content: "\e68d"; +} +.uniui-help[data-v-d31e1c47]:before { + content: "\e679"; +} +.uniui-navigate-filled[data-v-d31e1c47]:before { + content: "\e67a"; +} +.uniui-plusempty[data-v-d31e1c47]:before { + content: "\e67b"; +} +.uniui-smallcircle[data-v-d31e1c47]:before { + content: "\e67c"; +} +.uniui-minus-filled[data-v-d31e1c47]:before { + content: "\e67d"; +} +.uniui-micoff[data-v-d31e1c47]:before { + content: "\e67e"; +} +.uniui-closeempty[data-v-d31e1c47]:before { + content: "\e66c"; +} +.uniui-clear[data-v-d31e1c47]:before { + content: "\e66d"; +} +.uniui-navigate[data-v-d31e1c47]:before { + content: "\e66e"; +} +.uniui-minus[data-v-d31e1c47]:before { + content: "\e66f"; +} +.uniui-image[data-v-d31e1c47]:before { + content: "\e670"; +} +.uniui-mic[data-v-d31e1c47]:before { + content: "\e671"; +} +.uniui-paperplane[data-v-d31e1c47]:before { + content: "\e672"; +} +.uniui-close[data-v-d31e1c47]:before { + content: "\e673"; +} +.uniui-help-filled[data-v-d31e1c47]:before { + content: "\e674"; +} +.uniui-paperplane-filled[data-v-d31e1c47]:before { + content: "\e675"; +} +.uniui-plus[data-v-d31e1c47]:before { + content: "\e676"; +} +.uniui-mic-filled[data-v-d31e1c47]:before { + content: "\e677"; +} +.uniui-image-filled[data-v-d31e1c47]:before { + content: "\e678"; +} +.uniui-locked-filled[data-v-d31e1c47]:before { + content: "\e668"; +} +.uniui-info[data-v-d31e1c47]:before { + content: "\e669"; +} +.uniui-locked[data-v-d31e1c47]:before { + content: "\e66b"; +} +.uniui-camera-filled[data-v-d31e1c47]:before { + content: "\e658"; +} +.uniui-chat-filled[data-v-d31e1c47]:before { + content: "\e659"; +} +.uniui-camera[data-v-d31e1c47]:before { + content: "\e65a"; +} +.uniui-circle[data-v-d31e1c47]:before { + content: "\e65b"; +} +.uniui-checkmarkempty[data-v-d31e1c47]:before { + content: "\e65c"; +} +.uniui-chat[data-v-d31e1c47]:before { + content: "\e65d"; +} +.uniui-circle-filled[data-v-d31e1c47]:before { + content: "\e65e"; +} +.uniui-flag[data-v-d31e1c47]:before { + content: "\e65f"; +} +.uniui-flag-filled[data-v-d31e1c47]:before { + content: "\e660"; +} +.uniui-gear-filled[data-v-d31e1c47]:before { + content: "\e661"; +} +.uniui-home[data-v-d31e1c47]:before { + content: "\e662"; +} +.uniui-home-filled[data-v-d31e1c47]:before { + content: "\e663"; +} +.uniui-gear[data-v-d31e1c47]:before { + content: "\e664"; +} +.uniui-smallcircle-filled[data-v-d31e1c47]:before { + content: "\e665"; +} +.uniui-map-filled[data-v-d31e1c47]:before { + content: "\e666"; +} +.uniui-map[data-v-d31e1c47]:before { + content: "\e667"; +} +.uniui-refresh-filled[data-v-d31e1c47]:before { + content: "\e656"; +} +.uniui-refresh[data-v-d31e1c47]:before { + content: "\e657"; +} +.uniui-cloud-upload[data-v-d31e1c47]:before { + content: "\e645"; +} +.uniui-cloud-download-filled[data-v-d31e1c47]:before { + content: "\e646"; +} +.uniui-cloud-download[data-v-d31e1c47]:before { + content: "\e647"; +} +.uniui-cloud-upload-filled[data-v-d31e1c47]:before { + content: "\e648"; +} +.uniui-redo[data-v-d31e1c47]:before { + content: "\e64a"; +} +.uniui-images-filled[data-v-d31e1c47]:before { + content: "\e64b"; +} +.uniui-undo-filled[data-v-d31e1c47]:before { + content: "\e64c"; +} +.uniui-more[data-v-d31e1c47]:before { + content: "\e64d"; +} +.uniui-more-filled[data-v-d31e1c47]:before { + content: "\e64e"; +} +.uniui-undo[data-v-d31e1c47]:before { + content: "\e64f"; +} +.uniui-images[data-v-d31e1c47]:before { + content: "\e650"; +} +.uniui-paperclip[data-v-d31e1c47]:before { + content: "\e652"; +} +.uniui-settings[data-v-d31e1c47]:before { + content: "\e653"; +} +.uniui-search[data-v-d31e1c47]:before { + content: "\e654"; +} +.uniui-redo-filled[data-v-d31e1c47]:before { + content: "\e655"; +} +.uniui-list[data-v-d31e1c47]:before { + content: "\e644"; +} +.uniui-mail-open-filled[data-v-d31e1c47]:before { + content: "\e63a"; +} +.uniui-hand-down-filled[data-v-d31e1c47]:before { + content: "\e63c"; +} +.uniui-hand-down[data-v-d31e1c47]:before { + content: "\e63d"; +} +.uniui-hand-up-filled[data-v-d31e1c47]:before { + content: "\e63e"; +} +.uniui-hand-up[data-v-d31e1c47]:before { + content: "\e63f"; +} +.uniui-heart-filled[data-v-d31e1c47]:before { + content: "\e641"; +} +.uniui-mail-open[data-v-d31e1c47]:before { + content: "\e643"; +} +.uniui-heart[data-v-d31e1c47]:before { + content: "\e639"; +} +.uniui-loop[data-v-d31e1c47]:before { + content: "\e633"; +} +.uniui-pulldown[data-v-d31e1c47]:before { + content: "\e632"; +} +.uniui-scan[data-v-d31e1c47]:before { + content: "\e62a"; +} +.uniui-bars[data-v-d31e1c47]:before { + content: "\e627"; +} +.uniui-checkbox[data-v-d31e1c47]:before { + content: "\e62b"; +} +.uniui-checkbox-filled[data-v-d31e1c47]:before { + content: "\e62c"; +} +.uniui-shop[data-v-d31e1c47]:before { + content: "\e62f"; +} +.uniui-headphones[data-v-d31e1c47]:before { + content: "\e630"; +} +.uniui-cart[data-v-d31e1c47]:before { + content: "\e631"; +} +@font-face { + font-family: uniicons; + src: url("../../assets/uniicons.32e978a5.ttf"); +} +.uni-icons[data-v-d31e1c47] { + font-family: uniicons; + text-decoration: none; + text-align: center; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uni-file-picker__container[data-v-bdfc07e0] { + display: flex; + box-sizing: border-box; + flex-wrap: wrap; + margin: -5px; +} +.file-picker__box[data-v-bdfc07e0] { + position: relative; + width: 33.3%; + height: 0; + padding-top: 33.33%; + box-sizing: border-box; +} +.file-picker__box-content[data-v-bdfc07e0] { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + margin: 5px; + border: 1px #eee solid; + border-radius: 5px; + overflow: hidden; +} +.file-picker__progress[data-v-bdfc07e0] { + position: absolute; + bottom: 0; + left: 0; + right: 0; + /* border: 1px red solid; */ + z-index: 2; +} +.file-picker__progress-item[data-v-bdfc07e0] { + width: 100%; +} +.file-picker__mask[data-v-bdfc07e0] { + display: flex; + justify-content: center; + align-items: center; + position: absolute; + right: 0; + top: 0; + bottom: 0; + left: 0; + color: #fff; + font-size: 12px; + background-color: rgba(0, 0, 0, 0.4); +} +.file-image[data-v-bdfc07e0] { + width: 100%; + height: 100%; +} +.is-add[data-v-bdfc07e0] { + display: flex; + align-items: center; + justify-content: center; +} +.icon-add[data-v-bdfc07e0] { + width: 50px; + height: 5px; + background-color: #f1f1f1; + border-radius: 2px; +} +.rotate[data-v-bdfc07e0] { + position: absolute; + transform: rotate(90deg); +} +.icon-del-box[data-v-bdfc07e0] { + display: flex; + align-items: center; + justify-content: center; + position: absolute; + top: 3px; + right: 3px; + height: 26px; + width: 26px; + border-radius: 50%; + background-color: rgba(0, 0, 0, 0.5); + z-index: 2; + transform: rotate(-45deg); +} +.icon-del[data-v-bdfc07e0] { + width: 15px; + height: 2px; + background-color: #fff; + border-radius: 2px; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uni-file-picker__files[data-v-a54939c6] { + display: flex; + flex-direction: column; + justify-content: flex-start; +} +.uni-file-picker__lists[data-v-a54939c6] { + position: relative; + margin-top: 5px; + overflow: hidden; +} +.file-picker__mask[data-v-a54939c6] { + display: flex; + justify-content: center; + align-items: center; + position: absolute; + right: 0; + top: 0; + bottom: 0; + left: 0; + color: #fff; + font-size: 14px; + background-color: rgba(0, 0, 0, 0.4); +} +.uni-file-picker__lists-box[data-v-a54939c6] { + position: relative; +} +.uni-file-picker__item[data-v-a54939c6] { + display: flex; + align-items: center; + padding: 8px 10px; + padding-right: 5px; + padding-left: 10px; +} +.files-border[data-v-a54939c6] { + border-top: 1px #eee solid; +} +.files__name[data-v-a54939c6] { + flex: 1; + font-size: 14px; + color: #666; + margin-right: 25px; + word-break: break-all; + word-wrap: break-word; +} +.icon-files[data-v-a54939c6] { + position: static; + background-color: initial; +} +.is-list-card[data-v-a54939c6] { + border: 1px #eee solid; + margin-bottom: 5px; + border-radius: 5px; + box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.1); + padding: 5px; +} +.files__image[data-v-a54939c6] { + width: 40px; + height: 40px; + margin-right: 10px; +} +.header-image[data-v-a54939c6] { + width: 100%; + height: 100%; +} +.is-text-box[data-v-a54939c6] { + border: 1px #eee solid; + border-radius: 5px; +} +.is-text-image[data-v-a54939c6] { + width: 25px; + height: 25px; + margin-left: 5px; +} +.rotate[data-v-a54939c6] { + position: absolute; + transform: rotate(90deg); +} +.icon-del-box[data-v-a54939c6] { + display: flex; + margin: auto 0; + align-items: center; + justify-content: center; + position: absolute; + top: 0px; + bottom: 0; + right: 5px; + height: 26px; + width: 26px; + z-index: 2; + transform: rotate(-45deg); +} +.icon-del[data-v-a54939c6] { + width: 15px; + height: 1px; + background-color: #333; +} + +.uni-file-picker[data-v-6223573f] { + + box-sizing: border-box; + overflow: hidden; + width: 100%; + + flex: 1; +} +.uni-file-picker__header[data-v-6223573f] { + padding-top: 5px; + padding-bottom: 10px; + + display: flex; + + justify-content: space-between; +} +.file-title[data-v-6223573f] { + font-size: 14px; + color: #333; +} +.file-count[data-v-6223573f] { + font-size: 14px; + color: #999; +} +.is-add[data-v-6223573f] { + + display: flex; + + align-items: center; + justify-content: center; +} +.icon-add[data-v-6223573f] { + width: 50px; + height: 5px; + background-color: #f1f1f1; + border-radius: 2px; +} +.rotate[data-v-6223573f] { + position: absolute; + transform: rotate(90deg); +} + +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uni-easyinput[data-v-09fd5285] { + width: 100%; + flex: 1; + position: relative; + text-align: left; + color: #333; + font-size: 14px; +} +.uni-easyinput__content[data-v-09fd5285] { + flex: 1; + width: 100%; + display: flex; + box-sizing: border-box; + flex-direction: row; + align-items: center; + border-color: #fff; + transition-property: border-color; + transition-duration: 0.3s; +} +.uni-easyinput__content-input[data-v-09fd5285] { + width: auto; + position: relative; + overflow: hidden; + flex: 1; + line-height: 1; + font-size: 14px; + height: 35px; + /*ifdef H5*/ + /*endif*/ +} +.uni-easyinput__content-input[data-v-09fd5285] ::-ms-reveal { + display: none; +} +.uni-easyinput__content-input[data-v-09fd5285] ::-ms-clear { + display: none; +} +.uni-easyinput__content-input[data-v-09fd5285] ::-o-clear { + display: none; +} +.uni-easyinput__placeholder-class[data-v-09fd5285] { + color: #999; + font-size: 12px; +} +.is-textarea[data-v-09fd5285] { + align-items: flex-start; +} +.is-textarea-icon[data-v-09fd5285] { + margin-top: 5px; +} +.uni-easyinput__content-textarea[data-v-09fd5285] { + position: relative; + overflow: hidden; + flex: 1; + line-height: 1.5; + font-size: 14px; + margin: 6px; + margin-left: 0; + height: 80px; + min-height: 80px; + min-height: 80px; + width: auto; +} +.input-padding[data-v-09fd5285] { + padding-left: 10px; +} +.content-clear-icon[data-v-09fd5285] { + padding: 0 5px; +} +.label-icon[data-v-09fd5285] { + margin-right: 5px; + margin-top: -1px; +} +.is-input-border[data-v-09fd5285] { + display: flex; + box-sizing: border-box; + flex-direction: row; + align-items: center; + border: 1px solid #dcdfe6; + border-radius: 4px; +} +.uni-error-message[data-v-09fd5285] { + position: absolute; + bottom: -17px; + left: 0; + line-height: 12px; + color: #e43d33; + font-size: 12px; + text-align: left; +} +.uni-error-msg--boeder[data-v-09fd5285] { + position: relative; + bottom: 0; + line-height: 22px; +} +.is-input-error-border[data-v-09fd5285] { + border-color: #e43d33; +} +.is-input-error-border .uni-easyinput__placeholder-class[data-v-09fd5285] { + color: #f29e99; +} +.uni-easyinput--border[data-v-09fd5285] { + margin-bottom: 0; + padding: 10px 15px; + border-top: 1px #eee solid; +} +.uni-easyinput-error[data-v-09fd5285] { + padding-bottom: 0; +} +.is-first-border[data-v-09fd5285] { + border: none; +} +.is-disabled[data-v-09fd5285] { + background-color: #f7f6f6; + color: #d5d5d5; +} +.is-disabled .uni-easyinput__placeholder-class[data-v-09fd5285] { + color: #d5d5d5; + font-size: 12px; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uni-popup[data-v-4dd3c44b] { + position: fixed; + z-index: 99; +} +.uni-popup.top[data-v-4dd3c44b], .uni-popup.left[data-v-4dd3c44b], .uni-popup.right[data-v-4dd3c44b] { + top: 0; +} +.uni-popup .uni-popup__wrapper[data-v-4dd3c44b] { + display: block; + position: relative; + /* iphonex 等安全区设置,底部安全区适配 */ +} +.uni-popup .uni-popup__wrapper.left[data-v-4dd3c44b], .uni-popup .uni-popup__wrapper.right[data-v-4dd3c44b] { + padding-top: 0; + flex: 1; +} +.fixforpc-z-index[data-v-4dd3c44b] { + z-index: 999; +} +.fixforpc-top[data-v-4dd3c44b] { + top: 0; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.customthree-tree-select-content.border[data-v-3a65eef7] { + border-left: 1px solid #c8c7cc; +} +.customthree-tree-select-content[data-v-3a65eef7] .uni-checkbox-input { + margin: 0 !important; +} +.customthree-tree-select-content .item-content[data-v-3a65eef7] { + margin: 0 0 12px; + display: flex; + justify-content: space-between; + align-items: center; + position: relative; +} +.customthree-tree-select-content .item-content[data-v-3a65eef7]::after { + content: ""; + position: absolute; + top: 0; + left: 0; + bottom: 0; + width: 3px; + background-color: #fff; + transform: translateX(-2px); + z-index: 1; +} +.customthree-tree-select-content .item-content .left[data-v-3a65eef7] { + flex: 1; + display: flex; + align-items: center; +} +.customthree-tree-select-content .item-content .left .right-icon[data-v-3a65eef7] { + transition: 0.15s ease; +} +.customthree-tree-select-content .item-content .left .right-icon.active[data-v-3a65eef7] { + transform: rotate(90deg); +} +.customthree-tree-select-content .item-content .left .smallcircle-filled[data-v-3a65eef7] { + width: 14px; + height: 13.6px; + display: flex; + align-items: center; +} +.customthree-tree-select-content .item-content .left .smallcircle-filled .smallcircle-filled-icon[data-v-3a65eef7] { + transform-origin: center; + transform: scale(0.55); +} +.customthree-tree-select-content .item-content .left .loading-icon-box[data-v-3a65eef7] { + margin-right: 5px; + width: 14px; + height: 100%; + display: flex; + justify-content: center; + align-items: center; +} +.customthree-tree-select-content .item-content .left .loading-icon-box .loading-icon[data-v-3a65eef7] { + transform-origin: center; + animation: rotating-3a65eef7 infinite 0.2s ease; +} +.customthree-tree-select-content .item-content .left .name[data-v-3a65eef7] { + flex: 1; +} +.customthree-tree-select-content .check-box[data-v-3a65eef7] { + margin: 0; + padding: 0; + box-sizing: border-box; + width: 23.6px; + height: 23.6px; + border: 1px solid #c8c7cc; + display: flex; + justify-content: center; + align-items: center; +} +.customthree-tree-select-content .check-box.disabled[data-v-3a65eef7] { + background-color: #e1e1e1; +} +.customthree-tree-select-content .check-box .part-checked[data-v-3a65eef7] { + width: 60%; + height: 2px; + background-color: #007aff; +} +@keyframes rotating-3a65eef7 { +from { + transform: rotate(0); +} +to { + transform: rotate(360deg); +} +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.select-list[data-v-0328d33e] { + padding-left: 10px; + min-height: 35px; + display: flex; + justify-content: space-between; + align-items: center; +} +.select-list.active[data-v-0328d33e] { + padding: calc(4px / 2) 0 calc(4px / 2) 10px; +} +.select-list .left[data-v-0328d33e] { + flex: 1; +} +.select-list .left .select-items[data-v-0328d33e] { + display: flex; + flex-wrap: wrap; +} +.select-list .left .select-item[data-v-0328d33e] { + max-width: auto; + height: auto; + display: flex; + align-items: center; +} +.select-list .left .select-item .name[data-v-0328d33e] { + flex: 1; + font-size: 14px; +} +.select-list .left .select-item .close[data-v-0328d33e] { + width: 18px; + height: 18px; + display: flex; + justify-content: center; + align-items: center; + overflow: hidden; +} +.select-list.disabled[data-v-0328d33e] { + background-color: #f5f7fa; +} +.select-list.disabled .left .select-item .name[data-v-0328d33e] { + padding: 0; +} +.popup-content[data-v-0328d33e] { + flex: 1; + background-color: #fff; + border-top-left-radius: 20px; + border-top-right-radius: 20px; + display: flex; + flex-direction: column; +} +.popup-content .title[data-v-0328d33e] { + padding: 8px 3rem; + border-bottom: 1px solid #c8c7cc; + font-size: 14px; + display: flex; + justify-content: space-between; + position: relative; +} +.popup-content .title .left[data-v-0328d33e] { + position: absolute; + left: 10px; +} +.popup-content .title .center[data-v-0328d33e] { + flex: 1; + text-align: center; +} +.popup-content .title .right[data-v-0328d33e] { + position: absolute; + right: 10px; +} +.popup-content .search-box[data-v-0328d33e] { + margin: 8px 10px 0; + background-color: #fff; + display: flex; + align-items: center; +} +.popup-content .search-box .search-btn[data-v-0328d33e] { + margin-left: 10px; + height: 35px; + line-height: 35px; +} +.popup-content .select-content[data-v-0328d33e] { + margin: 8px 10px; + flex: 1; + overflow: hidden; + position: relative; +} +.popup-content .scroll-view-box[data-v-0328d33e] { + touch-action: none; + flex: 1; + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; +} +.popup-content .sentry[data-v-0328d33e] { + height: 48px; +} +.no-data[data-v-0328d33e] { + font-size: 0.875rem; + color: #999999; +} + +body { + background-color: #fff; +} + +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.btn[data-v-f12ae642] { + border-top: 1px solid #EFEFEF; + height: 3.75rem; + justify-content: center; + position: fixed; + bottom: 0; + width: 100vw; +} +.btn uni-view[data-v-f12ae642] { + width: 21.5625rem; + height: 2.75rem; + background: #01508B; + border-radius: 0.5rem; + font-size: 0.875rem; + color: #FFFFFF; + text-align: center; + line-height: 2.75rem; +} +.input_box[data-v-f12ae642] { + height: 3.125rem; +} +.input_box .title[data-v-f12ae642] { + font-size: 0.875rem; + color: #333333; +} +.input_box uni-input[data-v-f12ae642] { + flex: 1; + height: 100%; + text-align: right; + font-size: 0.875rem; + color: #333333; +} +.form[data-v-f12ae642] { + padding: 0 0.9375rem; + background-color: #fff; +} +.form .title[data-v-f12ae642] { + font-size: 0.875rem; + color: #333333; +} +.form .box[data-v-f12ae642] { + height: 3.125rem; +} +.form .box[data-v-f12ae642]:not(:last-child) { + border-bottom: 1px solid #EFEFEF; +} +.form .choose[data-v-f12ae642] { + font-size: 0.875rem; + color: #999999; +} +.form .choosed[data-v-f12ae642] { + font-size: 0.875rem; + color: #333333; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/login/login.css b/unpackage/dist/dev/app-plus/pages/login/login.css new file mode 100644 index 0000000..4302d3a --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/login/login.css @@ -0,0 +1,107 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +[data-v-e4e4508d] .uni-select { + border: none; + padding-left: 0; + height: 2.75rem; +} +[data-v-e4e4508d] .uni-select__input-placeholder { + font-size: 0.875rem; + color: #999999; +} +[data-v-e4e4508d] .uni-icons { + display: none; +} +.logo[data-v-e4e4508d] { + padding-top: 5.75rem; +} +.logo uni-image[data-v-e4e4508d] { + width: 14.84375rem; + height: 6.21875rem; +} +.form[data-v-e4e4508d] { + margin-top: 1.875rem; +} +.form .box[data-v-e4e4508d] { + width: 17.8125rem; + height: 2.75rem; + background: #F8F8F8; + border-radius: 1.375rem; + padding: 0 0.9375rem; + margin-top: 1.25rem; + position: relative; +} +.form .box .account_box[data-v-e4e4508d] { + position: absolute; + top: 3.125rem; + left: 2.8125rem; + width: 15.625rem; + background-color: #fff; + box-shadow: 0px 0px 3px 1px #dfdfdf; + z-index: 99; + border-radius: 0.3125rem; +} +.form .box .account_box .account[data-v-e4e4508d] { + max-height: 6.25rem; + overflow-y: auto; +} +.form .box .account_box .account uni-view[data-v-e4e4508d] { + padding: 0.3125rem; +} +.form .box uni-image[data-v-e4e4508d] { + width: 1.25rem; + height: 1.25rem; + margin-right: 0.625rem; +} +.form .box uni-input[data-v-e4e4508d] { + height: 100%; + flex: 1; +} +.pwd[data-v-e4e4508d] { + justify-content: flex-end; + margin-top: 0.625rem; + margin-right: 1.875rem; + font-size: 0.75rem; + color: #01508B; +} +.pwd uni-image[data-v-e4e4508d] { + width: 1.0625rem; + height: 1.0625rem; + margin-right: 0.125rem; +} +.login[data-v-e4e4508d] { + margin-top: 1.96875rem; +} +.login uni-view[data-v-e4e4508d] { + width: 19.6875rem; + height: 2.75rem; + background: #4e74fb; + border-radius: 1.375rem; + font-size: 1rem; + color: #FFFFFF; + text-align: center; + line-height: 2.75rem; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/meeting/detail.css b/unpackage/dist/dev/app-plus/pages/meeting/detail.css new file mode 100644 index 0000000..9793da1 --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/meeting/detail.css @@ -0,0 +1,118 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.content[data-v-ee2c785f] { + padding-bottom: 3.75rem; +} +.btn[data-v-ee2c785f] { + position: fixed; + bottom: 0; + width: 21.5625rem; + height: 3.75rem; + background: #FFFFFF; + padding: 0 0.9375rem; + border-top: 1px solid #EFEFEF; +} +.btn uni-view[data-v-ee2c785f] { + width: 10.3125rem; + height: 2.75rem; + font-size: 0.875rem; + border-radius: 0.5rem; + text-align: center; + line-height: 2.75rem; +} +.btn .refuse[data-v-ee2c785f] { + box-sizing: border-box; + background: #FFFFFF; + border: 0.0625rem solid #01508B; + color: #01508B; +} +.btn .agree[data-v-ee2c785f] { + background: #01508B; + color: #FFFFFF; +} +.list_box .list[data-v-ee2c785f] { + padding: 0.9375rem; + margin-bottom: 0.9375rem; +} +.list_box .list .title[data-v-ee2c785f] { + border-bottom: 1px solid #efefef; + padding-bottom: 0.75rem; + margin-bottom: 0.25rem; +} +.list_box .list .title uni-view[data-v-ee2c785f] { + font-size: 0.875rem; + color: #333333; +} +.list_box .list .title uni-text[data-v-ee2c785f] { + font-size: 0.875rem; + color: #999999; +} +.list_box .list .info[data-v-ee2c785f] { + font-size: 0.875rem; + color: #666666; +} +.list_box .list .info uni-view[data-v-ee2c785f] { + padding-top: 0.5rem; + font-size: 0.875rem; + color: #666666; +} +.list_box .list .info uni-text[data-v-ee2c785f] { + font-size: 0.875rem; + color: #333333; +} +.list_box .list .info .person[data-v-ee2c785f] { + flex-wrap: wrap; +} +.list_box .list .info .person .item[data-v-ee2c785f] { + width: 16.66%; +} +.list_box .list .info .person uni-image[data-v-ee2c785f] { + width: 2.4375rem; + height: 2.4375rem; + border-radius: 1.1875rem; + background-color: #01508B; +} +.list_box .list .btn[data-v-ee2c785f] { + margin-top: 0.9375rem; +} +.list_box .list .btn uni-view[data-v-ee2c785f] { + width: 9.375rem; + height: 2rem; + border-radius: 0.25rem; + font-size: 0.875rem; + text-align: center; + line-height: 2rem; +} +.list_box .list .btn .entrust[data-v-ee2c785f] { + background: #FFFFFF; + border: 0.0625rem solid #01508B; + box-sizing: border-box; + color: #01508B; +} +.list_box .list .btn .handle[data-v-ee2c785f] { + background: #01508B; + color: #FFFFFF; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/meeting/index.css b/unpackage/dist/dev/app-plus/pages/meeting/index.css new file mode 100644 index 0000000..2410655 --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/meeting/index.css @@ -0,0 +1,702 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uniui-cart-filled[data-v-d31e1c47]:before { + content: "\e6d0"; +} +.uniui-gift-filled[data-v-d31e1c47]:before { + content: "\e6c4"; +} +.uniui-color[data-v-d31e1c47]:before { + content: "\e6cf"; +} +.uniui-wallet[data-v-d31e1c47]:before { + content: "\e6b1"; +} +.uniui-settings-filled[data-v-d31e1c47]:before { + content: "\e6ce"; +} +.uniui-auth-filled[data-v-d31e1c47]:before { + content: "\e6cc"; +} +.uniui-shop-filled[data-v-d31e1c47]:before { + content: "\e6cd"; +} +.uniui-staff-filled[data-v-d31e1c47]:before { + content: "\e6cb"; +} +.uniui-vip-filled[data-v-d31e1c47]:before { + content: "\e6c6"; +} +.uniui-plus-filled[data-v-d31e1c47]:before { + content: "\e6c7"; +} +.uniui-folder-add-filled[data-v-d31e1c47]:before { + content: "\e6c8"; +} +.uniui-color-filled[data-v-d31e1c47]:before { + content: "\e6c9"; +} +.uniui-tune-filled[data-v-d31e1c47]:before { + content: "\e6ca"; +} +.uniui-calendar-filled[data-v-d31e1c47]:before { + content: "\e6c0"; +} +.uniui-notification-filled[data-v-d31e1c47]:before { + content: "\e6c1"; +} +.uniui-wallet-filled[data-v-d31e1c47]:before { + content: "\e6c2"; +} +.uniui-medal-filled[data-v-d31e1c47]:before { + content: "\e6c3"; +} +.uniui-fire-filled[data-v-d31e1c47]:before { + content: "\e6c5"; +} +.uniui-refreshempty[data-v-d31e1c47]:before { + content: "\e6bf"; +} +.uniui-location-filled[data-v-d31e1c47]:before { + content: "\e6af"; +} +.uniui-person-filled[data-v-d31e1c47]:before { + content: "\e69d"; +} +.uniui-personadd-filled[data-v-d31e1c47]:before { + content: "\e698"; +} +.uniui-arrowthinleft[data-v-d31e1c47]:before { + content: "\e6d2"; +} +.uniui-arrowthinup[data-v-d31e1c47]:before { + content: "\e6d3"; +} +.uniui-arrowthindown[data-v-d31e1c47]:before { + content: "\e6d4"; +} +.uniui-back[data-v-d31e1c47]:before { + content: "\e6b9"; +} +.uniui-forward[data-v-d31e1c47]:before { + content: "\e6ba"; +} +.uniui-arrow-right[data-v-d31e1c47]:before { + content: "\e6bb"; +} +.uniui-arrow-left[data-v-d31e1c47]:before { + content: "\e6bc"; +} +.uniui-arrow-up[data-v-d31e1c47]:before { + content: "\e6bd"; +} +.uniui-arrow-down[data-v-d31e1c47]:before { + content: "\e6be"; +} +.uniui-arrowthinright[data-v-d31e1c47]:before { + content: "\e6d1"; +} +.uniui-down[data-v-d31e1c47]:before { + content: "\e6b8"; +} +.uniui-bottom[data-v-d31e1c47]:before { + content: "\e6b8"; +} +.uniui-arrowright[data-v-d31e1c47]:before { + content: "\e6d5"; +} +.uniui-right[data-v-d31e1c47]:before { + content: "\e6b5"; +} +.uniui-up[data-v-d31e1c47]:before { + content: "\e6b6"; +} +.uniui-top[data-v-d31e1c47]:before { + content: "\e6b6"; +} +.uniui-left[data-v-d31e1c47]:before { + content: "\e6b7"; +} +.uniui-arrowup[data-v-d31e1c47]:before { + content: "\e6d6"; +} +.uniui-eye[data-v-d31e1c47]:before { + content: "\e651"; +} +.uniui-eye-filled[data-v-d31e1c47]:before { + content: "\e66a"; +} +.uniui-eye-slash[data-v-d31e1c47]:before { + content: "\e6b3"; +} +.uniui-eye-slash-filled[data-v-d31e1c47]:before { + content: "\e6b4"; +} +.uniui-info-filled[data-v-d31e1c47]:before { + content: "\e649"; +} +.uniui-reload[data-v-d31e1c47]:before { + content: "\e6b2"; +} +.uniui-micoff-filled[data-v-d31e1c47]:before { + content: "\e6b0"; +} +.uniui-map-pin-ellipse[data-v-d31e1c47]:before { + content: "\e6ac"; +} +.uniui-map-pin[data-v-d31e1c47]:before { + content: "\e6ad"; +} +.uniui-location[data-v-d31e1c47]:before { + content: "\e6ae"; +} +.uniui-starhalf[data-v-d31e1c47]:before { + content: "\e683"; +} +.uniui-star[data-v-d31e1c47]:before { + content: "\e688"; +} +.uniui-star-filled[data-v-d31e1c47]:before { + content: "\e68f"; +} +.uniui-calendar[data-v-d31e1c47]:before { + content: "\e6a0"; +} +.uniui-fire[data-v-d31e1c47]:before { + content: "\e6a1"; +} +.uniui-medal[data-v-d31e1c47]:before { + content: "\e6a2"; +} +.uniui-font[data-v-d31e1c47]:before { + content: "\e6a3"; +} +.uniui-gift[data-v-d31e1c47]:before { + content: "\e6a4"; +} +.uniui-link[data-v-d31e1c47]:before { + content: "\e6a5"; +} +.uniui-notification[data-v-d31e1c47]:before { + content: "\e6a6"; +} +.uniui-staff[data-v-d31e1c47]:before { + content: "\e6a7"; +} +.uniui-vip[data-v-d31e1c47]:before { + content: "\e6a8"; +} +.uniui-folder-add[data-v-d31e1c47]:before { + content: "\e6a9"; +} +.uniui-tune[data-v-d31e1c47]:before { + content: "\e6aa"; +} +.uniui-auth[data-v-d31e1c47]:before { + content: "\e6ab"; +} +.uniui-person[data-v-d31e1c47]:before { + content: "\e699"; +} +.uniui-email-filled[data-v-d31e1c47]:before { + content: "\e69a"; +} +.uniui-phone-filled[data-v-d31e1c47]:before { + content: "\e69b"; +} +.uniui-phone[data-v-d31e1c47]:before { + content: "\e69c"; +} +.uniui-email[data-v-d31e1c47]:before { + content: "\e69e"; +} +.uniui-personadd[data-v-d31e1c47]:before { + content: "\e69f"; +} +.uniui-chatboxes-filled[data-v-d31e1c47]:before { + content: "\e692"; +} +.uniui-contact[data-v-d31e1c47]:before { + content: "\e693"; +} +.uniui-chatbubble-filled[data-v-d31e1c47]:before { + content: "\e694"; +} +.uniui-contact-filled[data-v-d31e1c47]:before { + content: "\e695"; +} +.uniui-chatboxes[data-v-d31e1c47]:before { + content: "\e696"; +} +.uniui-chatbubble[data-v-d31e1c47]:before { + content: "\e697"; +} +.uniui-upload-filled[data-v-d31e1c47]:before { + content: "\e68e"; +} +.uniui-upload[data-v-d31e1c47]:before { + content: "\e690"; +} +.uniui-weixin[data-v-d31e1c47]:before { + content: "\e691"; +} +.uniui-compose[data-v-d31e1c47]:before { + content: "\e67f"; +} +.uniui-qq[data-v-d31e1c47]:before { + content: "\e680"; +} +.uniui-download-filled[data-v-d31e1c47]:before { + content: "\e681"; +} +.uniui-pyq[data-v-d31e1c47]:before { + content: "\e682"; +} +.uniui-sound[data-v-d31e1c47]:before { + content: "\e684"; +} +.uniui-trash-filled[data-v-d31e1c47]:before { + content: "\e685"; +} +.uniui-sound-filled[data-v-d31e1c47]:before { + content: "\e686"; +} +.uniui-trash[data-v-d31e1c47]:before { + content: "\e687"; +} +.uniui-videocam-filled[data-v-d31e1c47]:before { + content: "\e689"; +} +.uniui-spinner-cycle[data-v-d31e1c47]:before { + content: "\e68a"; +} +.uniui-weibo[data-v-d31e1c47]:before { + content: "\e68b"; +} +.uniui-videocam[data-v-d31e1c47]:before { + content: "\e68c"; +} +.uniui-download[data-v-d31e1c47]:before { + content: "\e68d"; +} +.uniui-help[data-v-d31e1c47]:before { + content: "\e679"; +} +.uniui-navigate-filled[data-v-d31e1c47]:before { + content: "\e67a"; +} +.uniui-plusempty[data-v-d31e1c47]:before { + content: "\e67b"; +} +.uniui-smallcircle[data-v-d31e1c47]:before { + content: "\e67c"; +} +.uniui-minus-filled[data-v-d31e1c47]:before { + content: "\e67d"; +} +.uniui-micoff[data-v-d31e1c47]:before { + content: "\e67e"; +} +.uniui-closeempty[data-v-d31e1c47]:before { + content: "\e66c"; +} +.uniui-clear[data-v-d31e1c47]:before { + content: "\e66d"; +} +.uniui-navigate[data-v-d31e1c47]:before { + content: "\e66e"; +} +.uniui-minus[data-v-d31e1c47]:before { + content: "\e66f"; +} +.uniui-image[data-v-d31e1c47]:before { + content: "\e670"; +} +.uniui-mic[data-v-d31e1c47]:before { + content: "\e671"; +} +.uniui-paperplane[data-v-d31e1c47]:before { + content: "\e672"; +} +.uniui-close[data-v-d31e1c47]:before { + content: "\e673"; +} +.uniui-help-filled[data-v-d31e1c47]:before { + content: "\e674"; +} +.uniui-paperplane-filled[data-v-d31e1c47]:before { + content: "\e675"; +} +.uniui-plus[data-v-d31e1c47]:before { + content: "\e676"; +} +.uniui-mic-filled[data-v-d31e1c47]:before { + content: "\e677"; +} +.uniui-image-filled[data-v-d31e1c47]:before { + content: "\e678"; +} +.uniui-locked-filled[data-v-d31e1c47]:before { + content: "\e668"; +} +.uniui-info[data-v-d31e1c47]:before { + content: "\e669"; +} +.uniui-locked[data-v-d31e1c47]:before { + content: "\e66b"; +} +.uniui-camera-filled[data-v-d31e1c47]:before { + content: "\e658"; +} +.uniui-chat-filled[data-v-d31e1c47]:before { + content: "\e659"; +} +.uniui-camera[data-v-d31e1c47]:before { + content: "\e65a"; +} +.uniui-circle[data-v-d31e1c47]:before { + content: "\e65b"; +} +.uniui-checkmarkempty[data-v-d31e1c47]:before { + content: "\e65c"; +} +.uniui-chat[data-v-d31e1c47]:before { + content: "\e65d"; +} +.uniui-circle-filled[data-v-d31e1c47]:before { + content: "\e65e"; +} +.uniui-flag[data-v-d31e1c47]:before { + content: "\e65f"; +} +.uniui-flag-filled[data-v-d31e1c47]:before { + content: "\e660"; +} +.uniui-gear-filled[data-v-d31e1c47]:before { + content: "\e661"; +} +.uniui-home[data-v-d31e1c47]:before { + content: "\e662"; +} +.uniui-home-filled[data-v-d31e1c47]:before { + content: "\e663"; +} +.uniui-gear[data-v-d31e1c47]:before { + content: "\e664"; +} +.uniui-smallcircle-filled[data-v-d31e1c47]:before { + content: "\e665"; +} +.uniui-map-filled[data-v-d31e1c47]:before { + content: "\e666"; +} +.uniui-map[data-v-d31e1c47]:before { + content: "\e667"; +} +.uniui-refresh-filled[data-v-d31e1c47]:before { + content: "\e656"; +} +.uniui-refresh[data-v-d31e1c47]:before { + content: "\e657"; +} +.uniui-cloud-upload[data-v-d31e1c47]:before { + content: "\e645"; +} +.uniui-cloud-download-filled[data-v-d31e1c47]:before { + content: "\e646"; +} +.uniui-cloud-download[data-v-d31e1c47]:before { + content: "\e647"; +} +.uniui-cloud-upload-filled[data-v-d31e1c47]:before { + content: "\e648"; +} +.uniui-redo[data-v-d31e1c47]:before { + content: "\e64a"; +} +.uniui-images-filled[data-v-d31e1c47]:before { + content: "\e64b"; +} +.uniui-undo-filled[data-v-d31e1c47]:before { + content: "\e64c"; +} +.uniui-more[data-v-d31e1c47]:before { + content: "\e64d"; +} +.uniui-more-filled[data-v-d31e1c47]:before { + content: "\e64e"; +} +.uniui-undo[data-v-d31e1c47]:before { + content: "\e64f"; +} +.uniui-images[data-v-d31e1c47]:before { + content: "\e650"; +} +.uniui-paperclip[data-v-d31e1c47]:before { + content: "\e652"; +} +.uniui-settings[data-v-d31e1c47]:before { + content: "\e653"; +} +.uniui-search[data-v-d31e1c47]:before { + content: "\e654"; +} +.uniui-redo-filled[data-v-d31e1c47]:before { + content: "\e655"; +} +.uniui-list[data-v-d31e1c47]:before { + content: "\e644"; +} +.uniui-mail-open-filled[data-v-d31e1c47]:before { + content: "\e63a"; +} +.uniui-hand-down-filled[data-v-d31e1c47]:before { + content: "\e63c"; +} +.uniui-hand-down[data-v-d31e1c47]:before { + content: "\e63d"; +} +.uniui-hand-up-filled[data-v-d31e1c47]:before { + content: "\e63e"; +} +.uniui-hand-up[data-v-d31e1c47]:before { + content: "\e63f"; +} +.uniui-heart-filled[data-v-d31e1c47]:before { + content: "\e641"; +} +.uniui-mail-open[data-v-d31e1c47]:before { + content: "\e643"; +} +.uniui-heart[data-v-d31e1c47]:before { + content: "\e639"; +} +.uniui-loop[data-v-d31e1c47]:before { + content: "\e633"; +} +.uniui-pulldown[data-v-d31e1c47]:before { + content: "\e632"; +} +.uniui-scan[data-v-d31e1c47]:before { + content: "\e62a"; +} +.uniui-bars[data-v-d31e1c47]:before { + content: "\e627"; +} +.uniui-checkbox[data-v-d31e1c47]:before { + content: "\e62b"; +} +.uniui-checkbox-filled[data-v-d31e1c47]:before { + content: "\e62c"; +} +.uniui-shop[data-v-d31e1c47]:before { + content: "\e62f"; +} +.uniui-headphones[data-v-d31e1c47]:before { + content: "\e630"; +} +.uniui-cart[data-v-d31e1c47]:before { + content: "\e631"; +} +@font-face { + font-family: uniicons; + src: url("../../assets/uniicons.32e978a5.ttf"); +} +.uni-icons[data-v-d31e1c47] { + font-family: uniicons; + text-decoration: none; + text-align: center; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.nav[data-v-420daeb5] { + width: calc(100% - 1.875rem); + padding: 0 0.9375rem; + height: var(--420daeb5-cusnavbarheight); + background: linear-gradient(270deg, #256FBC 0%, #044D87 100%); + font-size: 0.75rem; + color: #FFFFFF; + position: fixed; + top: 0; + left: 0; + z-index: 99; +} +.place[data-v-420daeb5] { + height: var(--420daeb5-cusnavbarheight); +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.nav_box[data-v-f3707b27] { + position: absolute; + bottom: 0.4375rem; + width: 100%; + left: 0; +} +.back[data-v-f3707b27] { + padding: 0 0.9375rem; +} +.search[data-v-f3707b27] { + position: relative; + padding-right: 0.9375rem; + flex: 1; +} +.search uni-view[data-v-f3707b27] { + position: absolute; + left: 0.875rem; + top: 50%; + transform: translateY(-50%); + font-size: 0.875rem; + color: #999999; +} +.search uni-input[data-v-f3707b27] { + flex: 1; + height: 2.25rem; + background: #F8F8F8; + border-radius: 1.375rem; + padding: 0 0.875rem; +} +.search uni-image[data-v-f3707b27] { + width: 1.0625rem; + height: 1.0625rem; + margin-right: 0.5rem; +} +.list_box[data-v-f3707b27] { + padding: 0.4375rem 0.9375rem 0 0.9375rem; + margin-top: 0.75rem; +} +.list_box .list[data-v-f3707b27] { + background: #FFFFFF; + box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.5); + border-radius: 0.5rem; + padding: 0.9375rem; + margin-bottom: 0.9375rem; +} +.list_box .list .title[data-v-f3707b27] { + border-bottom: 1px solid #efefef; + padding-bottom: 0.75rem; + margin-bottom: 0.25rem; +} +.list_box .list .title uni-view[data-v-f3707b27] { + font-size: 0.875rem; + color: #333333; +} +.list_box .list .title uni-text[data-v-f3707b27] { + font-size: 0.875rem; + color: #999999; +} +.list_box .list .info[data-v-f3707b27] { + font-size: 0.875rem; + color: #666666; +} +.list_box .list .info uni-view[data-v-f3707b27] { + padding-top: 0.5rem; +} +.list_box .list .btn[data-v-f3707b27] { + margin-top: 0.9375rem; +} +.list_box .list .btn uni-view[data-v-f3707b27] { + width: 9.375rem; + height: 2rem; + border-radius: 0.25rem; + font-size: 0.875rem; + text-align: center; + line-height: 2rem; +} +.list_box .list .btn .entrust[data-v-f3707b27] { + background: #FFFFFF; + border: 0.0625rem solid #01508B; + box-sizing: border-box; + color: #01508B; +} +.list_box .list .btn .handle[data-v-f3707b27] { + background: #01508B; + color: #FFFFFF; +} +.refused[data-v-f3707b27] { + color: #333333; +} +.agreed[data-v-f3707b27] { + color: #01508B; +} +.handled[data-v-f3707b27] { + justify-content: flex-end; + margin-top: 0.9375rem; +} +.handled uni-view[data-v-f3707b27] { + width: 4.6875rem; + height: 2rem; + background: #EFEFEF; + border-radius: 0.25rem; + text-align: center; + line-height: 2rem; + font-size: 0.875rem; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/product/index.css b/unpackage/dist/dev/app-plus/pages/product/index.css new file mode 100644 index 0000000..73b98dc --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/product/index.css @@ -0,0 +1,614 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uniui-cart-filled[data-v-d31e1c47]:before { + content: "\e6d0"; +} +.uniui-gift-filled[data-v-d31e1c47]:before { + content: "\e6c4"; +} +.uniui-color[data-v-d31e1c47]:before { + content: "\e6cf"; +} +.uniui-wallet[data-v-d31e1c47]:before { + content: "\e6b1"; +} +.uniui-settings-filled[data-v-d31e1c47]:before { + content: "\e6ce"; +} +.uniui-auth-filled[data-v-d31e1c47]:before { + content: "\e6cc"; +} +.uniui-shop-filled[data-v-d31e1c47]:before { + content: "\e6cd"; +} +.uniui-staff-filled[data-v-d31e1c47]:before { + content: "\e6cb"; +} +.uniui-vip-filled[data-v-d31e1c47]:before { + content: "\e6c6"; +} +.uniui-plus-filled[data-v-d31e1c47]:before { + content: "\e6c7"; +} +.uniui-folder-add-filled[data-v-d31e1c47]:before { + content: "\e6c8"; +} +.uniui-color-filled[data-v-d31e1c47]:before { + content: "\e6c9"; +} +.uniui-tune-filled[data-v-d31e1c47]:before { + content: "\e6ca"; +} +.uniui-calendar-filled[data-v-d31e1c47]:before { + content: "\e6c0"; +} +.uniui-notification-filled[data-v-d31e1c47]:before { + content: "\e6c1"; +} +.uniui-wallet-filled[data-v-d31e1c47]:before { + content: "\e6c2"; +} +.uniui-medal-filled[data-v-d31e1c47]:before { + content: "\e6c3"; +} +.uniui-fire-filled[data-v-d31e1c47]:before { + content: "\e6c5"; +} +.uniui-refreshempty[data-v-d31e1c47]:before { + content: "\e6bf"; +} +.uniui-location-filled[data-v-d31e1c47]:before { + content: "\e6af"; +} +.uniui-person-filled[data-v-d31e1c47]:before { + content: "\e69d"; +} +.uniui-personadd-filled[data-v-d31e1c47]:before { + content: "\e698"; +} +.uniui-arrowthinleft[data-v-d31e1c47]:before { + content: "\e6d2"; +} +.uniui-arrowthinup[data-v-d31e1c47]:before { + content: "\e6d3"; +} +.uniui-arrowthindown[data-v-d31e1c47]:before { + content: "\e6d4"; +} +.uniui-back[data-v-d31e1c47]:before { + content: "\e6b9"; +} +.uniui-forward[data-v-d31e1c47]:before { + content: "\e6ba"; +} +.uniui-arrow-right[data-v-d31e1c47]:before { + content: "\e6bb"; +} +.uniui-arrow-left[data-v-d31e1c47]:before { + content: "\e6bc"; +} +.uniui-arrow-up[data-v-d31e1c47]:before { + content: "\e6bd"; +} +.uniui-arrow-down[data-v-d31e1c47]:before { + content: "\e6be"; +} +.uniui-arrowthinright[data-v-d31e1c47]:before { + content: "\e6d1"; +} +.uniui-down[data-v-d31e1c47]:before { + content: "\e6b8"; +} +.uniui-bottom[data-v-d31e1c47]:before { + content: "\e6b8"; +} +.uniui-arrowright[data-v-d31e1c47]:before { + content: "\e6d5"; +} +.uniui-right[data-v-d31e1c47]:before { + content: "\e6b5"; +} +.uniui-up[data-v-d31e1c47]:before { + content: "\e6b6"; +} +.uniui-top[data-v-d31e1c47]:before { + content: "\e6b6"; +} +.uniui-left[data-v-d31e1c47]:before { + content: "\e6b7"; +} +.uniui-arrowup[data-v-d31e1c47]:before { + content: "\e6d6"; +} +.uniui-eye[data-v-d31e1c47]:before { + content: "\e651"; +} +.uniui-eye-filled[data-v-d31e1c47]:before { + content: "\e66a"; +} +.uniui-eye-slash[data-v-d31e1c47]:before { + content: "\e6b3"; +} +.uniui-eye-slash-filled[data-v-d31e1c47]:before { + content: "\e6b4"; +} +.uniui-info-filled[data-v-d31e1c47]:before { + content: "\e649"; +} +.uniui-reload[data-v-d31e1c47]:before { + content: "\e6b2"; +} +.uniui-micoff-filled[data-v-d31e1c47]:before { + content: "\e6b0"; +} +.uniui-map-pin-ellipse[data-v-d31e1c47]:before { + content: "\e6ac"; +} +.uniui-map-pin[data-v-d31e1c47]:before { + content: "\e6ad"; +} +.uniui-location[data-v-d31e1c47]:before { + content: "\e6ae"; +} +.uniui-starhalf[data-v-d31e1c47]:before { + content: "\e683"; +} +.uniui-star[data-v-d31e1c47]:before { + content: "\e688"; +} +.uniui-star-filled[data-v-d31e1c47]:before { + content: "\e68f"; +} +.uniui-calendar[data-v-d31e1c47]:before { + content: "\e6a0"; +} +.uniui-fire[data-v-d31e1c47]:before { + content: "\e6a1"; +} +.uniui-medal[data-v-d31e1c47]:before { + content: "\e6a2"; +} +.uniui-font[data-v-d31e1c47]:before { + content: "\e6a3"; +} +.uniui-gift[data-v-d31e1c47]:before { + content: "\e6a4"; +} +.uniui-link[data-v-d31e1c47]:before { + content: "\e6a5"; +} +.uniui-notification[data-v-d31e1c47]:before { + content: "\e6a6"; +} +.uniui-staff[data-v-d31e1c47]:before { + content: "\e6a7"; +} +.uniui-vip[data-v-d31e1c47]:before { + content: "\e6a8"; +} +.uniui-folder-add[data-v-d31e1c47]:before { + content: "\e6a9"; +} +.uniui-tune[data-v-d31e1c47]:before { + content: "\e6aa"; +} +.uniui-auth[data-v-d31e1c47]:before { + content: "\e6ab"; +} +.uniui-person[data-v-d31e1c47]:before { + content: "\e699"; +} +.uniui-email-filled[data-v-d31e1c47]:before { + content: "\e69a"; +} +.uniui-phone-filled[data-v-d31e1c47]:before { + content: "\e69b"; +} +.uniui-phone[data-v-d31e1c47]:before { + content: "\e69c"; +} +.uniui-email[data-v-d31e1c47]:before { + content: "\e69e"; +} +.uniui-personadd[data-v-d31e1c47]:before { + content: "\e69f"; +} +.uniui-chatboxes-filled[data-v-d31e1c47]:before { + content: "\e692"; +} +.uniui-contact[data-v-d31e1c47]:before { + content: "\e693"; +} +.uniui-chatbubble-filled[data-v-d31e1c47]:before { + content: "\e694"; +} +.uniui-contact-filled[data-v-d31e1c47]:before { + content: "\e695"; +} +.uniui-chatboxes[data-v-d31e1c47]:before { + content: "\e696"; +} +.uniui-chatbubble[data-v-d31e1c47]:before { + content: "\e697"; +} +.uniui-upload-filled[data-v-d31e1c47]:before { + content: "\e68e"; +} +.uniui-upload[data-v-d31e1c47]:before { + content: "\e690"; +} +.uniui-weixin[data-v-d31e1c47]:before { + content: "\e691"; +} +.uniui-compose[data-v-d31e1c47]:before { + content: "\e67f"; +} +.uniui-qq[data-v-d31e1c47]:before { + content: "\e680"; +} +.uniui-download-filled[data-v-d31e1c47]:before { + content: "\e681"; +} +.uniui-pyq[data-v-d31e1c47]:before { + content: "\e682"; +} +.uniui-sound[data-v-d31e1c47]:before { + content: "\e684"; +} +.uniui-trash-filled[data-v-d31e1c47]:before { + content: "\e685"; +} +.uniui-sound-filled[data-v-d31e1c47]:before { + content: "\e686"; +} +.uniui-trash[data-v-d31e1c47]:before { + content: "\e687"; +} +.uniui-videocam-filled[data-v-d31e1c47]:before { + content: "\e689"; +} +.uniui-spinner-cycle[data-v-d31e1c47]:before { + content: "\e68a"; +} +.uniui-weibo[data-v-d31e1c47]:before { + content: "\e68b"; +} +.uniui-videocam[data-v-d31e1c47]:before { + content: "\e68c"; +} +.uniui-download[data-v-d31e1c47]:before { + content: "\e68d"; +} +.uniui-help[data-v-d31e1c47]:before { + content: "\e679"; +} +.uniui-navigate-filled[data-v-d31e1c47]:before { + content: "\e67a"; +} +.uniui-plusempty[data-v-d31e1c47]:before { + content: "\e67b"; +} +.uniui-smallcircle[data-v-d31e1c47]:before { + content: "\e67c"; +} +.uniui-minus-filled[data-v-d31e1c47]:before { + content: "\e67d"; +} +.uniui-micoff[data-v-d31e1c47]:before { + content: "\e67e"; +} +.uniui-closeempty[data-v-d31e1c47]:before { + content: "\e66c"; +} +.uniui-clear[data-v-d31e1c47]:before { + content: "\e66d"; +} +.uniui-navigate[data-v-d31e1c47]:before { + content: "\e66e"; +} +.uniui-minus[data-v-d31e1c47]:before { + content: "\e66f"; +} +.uniui-image[data-v-d31e1c47]:before { + content: "\e670"; +} +.uniui-mic[data-v-d31e1c47]:before { + content: "\e671"; +} +.uniui-paperplane[data-v-d31e1c47]:before { + content: "\e672"; +} +.uniui-close[data-v-d31e1c47]:before { + content: "\e673"; +} +.uniui-help-filled[data-v-d31e1c47]:before { + content: "\e674"; +} +.uniui-paperplane-filled[data-v-d31e1c47]:before { + content: "\e675"; +} +.uniui-plus[data-v-d31e1c47]:before { + content: "\e676"; +} +.uniui-mic-filled[data-v-d31e1c47]:before { + content: "\e677"; +} +.uniui-image-filled[data-v-d31e1c47]:before { + content: "\e678"; +} +.uniui-locked-filled[data-v-d31e1c47]:before { + content: "\e668"; +} +.uniui-info[data-v-d31e1c47]:before { + content: "\e669"; +} +.uniui-locked[data-v-d31e1c47]:before { + content: "\e66b"; +} +.uniui-camera-filled[data-v-d31e1c47]:before { + content: "\e658"; +} +.uniui-chat-filled[data-v-d31e1c47]:before { + content: "\e659"; +} +.uniui-camera[data-v-d31e1c47]:before { + content: "\e65a"; +} +.uniui-circle[data-v-d31e1c47]:before { + content: "\e65b"; +} +.uniui-checkmarkempty[data-v-d31e1c47]:before { + content: "\e65c"; +} +.uniui-chat[data-v-d31e1c47]:before { + content: "\e65d"; +} +.uniui-circle-filled[data-v-d31e1c47]:before { + content: "\e65e"; +} +.uniui-flag[data-v-d31e1c47]:before { + content: "\e65f"; +} +.uniui-flag-filled[data-v-d31e1c47]:before { + content: "\e660"; +} +.uniui-gear-filled[data-v-d31e1c47]:before { + content: "\e661"; +} +.uniui-home[data-v-d31e1c47]:before { + content: "\e662"; +} +.uniui-home-filled[data-v-d31e1c47]:before { + content: "\e663"; +} +.uniui-gear[data-v-d31e1c47]:before { + content: "\e664"; +} +.uniui-smallcircle-filled[data-v-d31e1c47]:before { + content: "\e665"; +} +.uniui-map-filled[data-v-d31e1c47]:before { + content: "\e666"; +} +.uniui-map[data-v-d31e1c47]:before { + content: "\e667"; +} +.uniui-refresh-filled[data-v-d31e1c47]:before { + content: "\e656"; +} +.uniui-refresh[data-v-d31e1c47]:before { + content: "\e657"; +} +.uniui-cloud-upload[data-v-d31e1c47]:before { + content: "\e645"; +} +.uniui-cloud-download-filled[data-v-d31e1c47]:before { + content: "\e646"; +} +.uniui-cloud-download[data-v-d31e1c47]:before { + content: "\e647"; +} +.uniui-cloud-upload-filled[data-v-d31e1c47]:before { + content: "\e648"; +} +.uniui-redo[data-v-d31e1c47]:before { + content: "\e64a"; +} +.uniui-images-filled[data-v-d31e1c47]:before { + content: "\e64b"; +} +.uniui-undo-filled[data-v-d31e1c47]:before { + content: "\e64c"; +} +.uniui-more[data-v-d31e1c47]:before { + content: "\e64d"; +} +.uniui-more-filled[data-v-d31e1c47]:before { + content: "\e64e"; +} +.uniui-undo[data-v-d31e1c47]:before { + content: "\e64f"; +} +.uniui-images[data-v-d31e1c47]:before { + content: "\e650"; +} +.uniui-paperclip[data-v-d31e1c47]:before { + content: "\e652"; +} +.uniui-settings[data-v-d31e1c47]:before { + content: "\e653"; +} +.uniui-search[data-v-d31e1c47]:before { + content: "\e654"; +} +.uniui-redo-filled[data-v-d31e1c47]:before { + content: "\e655"; +} +.uniui-list[data-v-d31e1c47]:before { + content: "\e644"; +} +.uniui-mail-open-filled[data-v-d31e1c47]:before { + content: "\e63a"; +} +.uniui-hand-down-filled[data-v-d31e1c47]:before { + content: "\e63c"; +} +.uniui-hand-down[data-v-d31e1c47]:before { + content: "\e63d"; +} +.uniui-hand-up-filled[data-v-d31e1c47]:before { + content: "\e63e"; +} +.uniui-hand-up[data-v-d31e1c47]:before { + content: "\e63f"; +} +.uniui-heart-filled[data-v-d31e1c47]:before { + content: "\e641"; +} +.uniui-mail-open[data-v-d31e1c47]:before { + content: "\e643"; +} +.uniui-heart[data-v-d31e1c47]:before { + content: "\e639"; +} +.uniui-loop[data-v-d31e1c47]:before { + content: "\e633"; +} +.uniui-pulldown[data-v-d31e1c47]:before { + content: "\e632"; +} +.uniui-scan[data-v-d31e1c47]:before { + content: "\e62a"; +} +.uniui-bars[data-v-d31e1c47]:before { + content: "\e627"; +} +.uniui-checkbox[data-v-d31e1c47]:before { + content: "\e62b"; +} +.uniui-checkbox-filled[data-v-d31e1c47]:before { + content: "\e62c"; +} +.uniui-shop[data-v-d31e1c47]:before { + content: "\e62f"; +} +.uniui-headphones[data-v-d31e1c47]:before { + content: "\e630"; +} +.uniui-cart[data-v-d31e1c47]:before { + content: "\e631"; +} +@font-face { + font-family: uniicons; + src: url("../../assets/uniicons.32e978a5.ttf"); +} +.uni-icons[data-v-d31e1c47] { + font-family: uniicons; + text-decoration: none; + text-align: center; +} + +body[data-v-92a54120] { + background-color: #F8F8F8; +} + +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.data_wrapper[data-v-92a54120] { + height: 9rem; + transition: all 0.3s; + overflow: hidden; +} +.close[data-v-92a54120] { + height: var(--92a54120-moreHeight); +} +.info .item_box .item[data-v-92a54120] { + width: 21.5625rem; + background: #FFFFFF; + box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.5); + border-radius: 0.5rem; + padding: 0.9375rem 0; + margin-top: 0.75rem; +} +.info .item_box .item .title_box[data-v-92a54120] { + padding: 0 0.9375rem; + margin-bottom: -0.625rem; +} +.info .item_box .item .title[data-v-92a54120] { + font-size: 0.875rem; + color: #333333; + background-image: url("../../static/index/line.png"); + background-size: 1.375rem 0.40625rem; + background-repeat: no-repeat; + background-position: left bottom; +} +.info .item_box .item .more[data-v-92a54120] { + font-size: 0.75rem; + color: #999999; +} +.info .item_box .item .more uni-text[data-v-92a54120] { + margin-right: 0.1875rem; +} +.info .item_box .item .data_box[data-v-92a54120] { + flex-wrap: wrap; +} +.info .item_box .item .data_box .data[data-v-92a54120] { + width: 33.33%; + margin-top: 1.875rem; + height: 2.5rem; +} +.info .item_box .item .data_box .data uni-view[data-v-92a54120] { + font-size: 1rem; + color: #333333; + margin-bottom: 0.25rem; +} +.info .item_box .item .data_box .data uni-text[data-v-92a54120] { + font-size: 0.75rem; + color: #333333; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/safe/detail.css b/unpackage/dist/dev/app-plus/pages/safe/detail.css new file mode 100644 index 0000000..904f22a --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/safe/detail.css @@ -0,0 +1,94 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.list[data-v-982fcf41] { + flex-wrap: wrap; +} +.list .item[data-v-982fcf41] { + width: 10.625rem; + background: #FFFFFF; + box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.5); + border-radius: 0.5rem; + margin-top: 0.625rem; + font-size: 0.875rem; + color: #333333; + line-height: 1.25rem; +} +.list .item .text[data-v-982fcf41] { + padding: 0.5rem; +} +.list .item uni-image[data-v-982fcf41] { + width: 10.625rem; + height: 6.25rem; + border-radius: 0.5rem 0.5rem 0 0; + background-color: #efefef; + display: block; +} + +body{ + background-color: #f8f8f8; +} + +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.content .title[data-v-952b08c2] { + background-color: #fff; + font-size: 1rem; + color: #333333; + line-height: 1.40625rem; + padding: 0.9375rem; +} +.content uni-video[data-v-952b08c2] { + width: 23.4375rem; + height: 15.625rem; +} +.listcom[data-v-952b08c2] { + padding: 0 0.9375rem 0.9375rem 0.9375rem; + margin-top: 0.625rem; + background-color: #fff; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/safe/manage.css b/unpackage/dist/dev/app-plus/pages/safe/manage.css new file mode 100644 index 0000000..ffd878c --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/safe/manage.css @@ -0,0 +1,682 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uniui-cart-filled[data-v-d31e1c47]:before { + content: "\e6d0"; +} +.uniui-gift-filled[data-v-d31e1c47]:before { + content: "\e6c4"; +} +.uniui-color[data-v-d31e1c47]:before { + content: "\e6cf"; +} +.uniui-wallet[data-v-d31e1c47]:before { + content: "\e6b1"; +} +.uniui-settings-filled[data-v-d31e1c47]:before { + content: "\e6ce"; +} +.uniui-auth-filled[data-v-d31e1c47]:before { + content: "\e6cc"; +} +.uniui-shop-filled[data-v-d31e1c47]:before { + content: "\e6cd"; +} +.uniui-staff-filled[data-v-d31e1c47]:before { + content: "\e6cb"; +} +.uniui-vip-filled[data-v-d31e1c47]:before { + content: "\e6c6"; +} +.uniui-plus-filled[data-v-d31e1c47]:before { + content: "\e6c7"; +} +.uniui-folder-add-filled[data-v-d31e1c47]:before { + content: "\e6c8"; +} +.uniui-color-filled[data-v-d31e1c47]:before { + content: "\e6c9"; +} +.uniui-tune-filled[data-v-d31e1c47]:before { + content: "\e6ca"; +} +.uniui-calendar-filled[data-v-d31e1c47]:before { + content: "\e6c0"; +} +.uniui-notification-filled[data-v-d31e1c47]:before { + content: "\e6c1"; +} +.uniui-wallet-filled[data-v-d31e1c47]:before { + content: "\e6c2"; +} +.uniui-medal-filled[data-v-d31e1c47]:before { + content: "\e6c3"; +} +.uniui-fire-filled[data-v-d31e1c47]:before { + content: "\e6c5"; +} +.uniui-refreshempty[data-v-d31e1c47]:before { + content: "\e6bf"; +} +.uniui-location-filled[data-v-d31e1c47]:before { + content: "\e6af"; +} +.uniui-person-filled[data-v-d31e1c47]:before { + content: "\e69d"; +} +.uniui-personadd-filled[data-v-d31e1c47]:before { + content: "\e698"; +} +.uniui-arrowthinleft[data-v-d31e1c47]:before { + content: "\e6d2"; +} +.uniui-arrowthinup[data-v-d31e1c47]:before { + content: "\e6d3"; +} +.uniui-arrowthindown[data-v-d31e1c47]:before { + content: "\e6d4"; +} +.uniui-back[data-v-d31e1c47]:before { + content: "\e6b9"; +} +.uniui-forward[data-v-d31e1c47]:before { + content: "\e6ba"; +} +.uniui-arrow-right[data-v-d31e1c47]:before { + content: "\e6bb"; +} +.uniui-arrow-left[data-v-d31e1c47]:before { + content: "\e6bc"; +} +.uniui-arrow-up[data-v-d31e1c47]:before { + content: "\e6bd"; +} +.uniui-arrow-down[data-v-d31e1c47]:before { + content: "\e6be"; +} +.uniui-arrowthinright[data-v-d31e1c47]:before { + content: "\e6d1"; +} +.uniui-down[data-v-d31e1c47]:before { + content: "\e6b8"; +} +.uniui-bottom[data-v-d31e1c47]:before { + content: "\e6b8"; +} +.uniui-arrowright[data-v-d31e1c47]:before { + content: "\e6d5"; +} +.uniui-right[data-v-d31e1c47]:before { + content: "\e6b5"; +} +.uniui-up[data-v-d31e1c47]:before { + content: "\e6b6"; +} +.uniui-top[data-v-d31e1c47]:before { + content: "\e6b6"; +} +.uniui-left[data-v-d31e1c47]:before { + content: "\e6b7"; +} +.uniui-arrowup[data-v-d31e1c47]:before { + content: "\e6d6"; +} +.uniui-eye[data-v-d31e1c47]:before { + content: "\e651"; +} +.uniui-eye-filled[data-v-d31e1c47]:before { + content: "\e66a"; +} +.uniui-eye-slash[data-v-d31e1c47]:before { + content: "\e6b3"; +} +.uniui-eye-slash-filled[data-v-d31e1c47]:before { + content: "\e6b4"; +} +.uniui-info-filled[data-v-d31e1c47]:before { + content: "\e649"; +} +.uniui-reload[data-v-d31e1c47]:before { + content: "\e6b2"; +} +.uniui-micoff-filled[data-v-d31e1c47]:before { + content: "\e6b0"; +} +.uniui-map-pin-ellipse[data-v-d31e1c47]:before { + content: "\e6ac"; +} +.uniui-map-pin[data-v-d31e1c47]:before { + content: "\e6ad"; +} +.uniui-location[data-v-d31e1c47]:before { + content: "\e6ae"; +} +.uniui-starhalf[data-v-d31e1c47]:before { + content: "\e683"; +} +.uniui-star[data-v-d31e1c47]:before { + content: "\e688"; +} +.uniui-star-filled[data-v-d31e1c47]:before { + content: "\e68f"; +} +.uniui-calendar[data-v-d31e1c47]:before { + content: "\e6a0"; +} +.uniui-fire[data-v-d31e1c47]:before { + content: "\e6a1"; +} +.uniui-medal[data-v-d31e1c47]:before { + content: "\e6a2"; +} +.uniui-font[data-v-d31e1c47]:before { + content: "\e6a3"; +} +.uniui-gift[data-v-d31e1c47]:before { + content: "\e6a4"; +} +.uniui-link[data-v-d31e1c47]:before { + content: "\e6a5"; +} +.uniui-notification[data-v-d31e1c47]:before { + content: "\e6a6"; +} +.uniui-staff[data-v-d31e1c47]:before { + content: "\e6a7"; +} +.uniui-vip[data-v-d31e1c47]:before { + content: "\e6a8"; +} +.uniui-folder-add[data-v-d31e1c47]:before { + content: "\e6a9"; +} +.uniui-tune[data-v-d31e1c47]:before { + content: "\e6aa"; +} +.uniui-auth[data-v-d31e1c47]:before { + content: "\e6ab"; +} +.uniui-person[data-v-d31e1c47]:before { + content: "\e699"; +} +.uniui-email-filled[data-v-d31e1c47]:before { + content: "\e69a"; +} +.uniui-phone-filled[data-v-d31e1c47]:before { + content: "\e69b"; +} +.uniui-phone[data-v-d31e1c47]:before { + content: "\e69c"; +} +.uniui-email[data-v-d31e1c47]:before { + content: "\e69e"; +} +.uniui-personadd[data-v-d31e1c47]:before { + content: "\e69f"; +} +.uniui-chatboxes-filled[data-v-d31e1c47]:before { + content: "\e692"; +} +.uniui-contact[data-v-d31e1c47]:before { + content: "\e693"; +} +.uniui-chatbubble-filled[data-v-d31e1c47]:before { + content: "\e694"; +} +.uniui-contact-filled[data-v-d31e1c47]:before { + content: "\e695"; +} +.uniui-chatboxes[data-v-d31e1c47]:before { + content: "\e696"; +} +.uniui-chatbubble[data-v-d31e1c47]:before { + content: "\e697"; +} +.uniui-upload-filled[data-v-d31e1c47]:before { + content: "\e68e"; +} +.uniui-upload[data-v-d31e1c47]:before { + content: "\e690"; +} +.uniui-weixin[data-v-d31e1c47]:before { + content: "\e691"; +} +.uniui-compose[data-v-d31e1c47]:before { + content: "\e67f"; +} +.uniui-qq[data-v-d31e1c47]:before { + content: "\e680"; +} +.uniui-download-filled[data-v-d31e1c47]:before { + content: "\e681"; +} +.uniui-pyq[data-v-d31e1c47]:before { + content: "\e682"; +} +.uniui-sound[data-v-d31e1c47]:before { + content: "\e684"; +} +.uniui-trash-filled[data-v-d31e1c47]:before { + content: "\e685"; +} +.uniui-sound-filled[data-v-d31e1c47]:before { + content: "\e686"; +} +.uniui-trash[data-v-d31e1c47]:before { + content: "\e687"; +} +.uniui-videocam-filled[data-v-d31e1c47]:before { + content: "\e689"; +} +.uniui-spinner-cycle[data-v-d31e1c47]:before { + content: "\e68a"; +} +.uniui-weibo[data-v-d31e1c47]:before { + content: "\e68b"; +} +.uniui-videocam[data-v-d31e1c47]:before { + content: "\e68c"; +} +.uniui-download[data-v-d31e1c47]:before { + content: "\e68d"; +} +.uniui-help[data-v-d31e1c47]:before { + content: "\e679"; +} +.uniui-navigate-filled[data-v-d31e1c47]:before { + content: "\e67a"; +} +.uniui-plusempty[data-v-d31e1c47]:before { + content: "\e67b"; +} +.uniui-smallcircle[data-v-d31e1c47]:before { + content: "\e67c"; +} +.uniui-minus-filled[data-v-d31e1c47]:before { + content: "\e67d"; +} +.uniui-micoff[data-v-d31e1c47]:before { + content: "\e67e"; +} +.uniui-closeempty[data-v-d31e1c47]:before { + content: "\e66c"; +} +.uniui-clear[data-v-d31e1c47]:before { + content: "\e66d"; +} +.uniui-navigate[data-v-d31e1c47]:before { + content: "\e66e"; +} +.uniui-minus[data-v-d31e1c47]:before { + content: "\e66f"; +} +.uniui-image[data-v-d31e1c47]:before { + content: "\e670"; +} +.uniui-mic[data-v-d31e1c47]:before { + content: "\e671"; +} +.uniui-paperplane[data-v-d31e1c47]:before { + content: "\e672"; +} +.uniui-close[data-v-d31e1c47]:before { + content: "\e673"; +} +.uniui-help-filled[data-v-d31e1c47]:before { + content: "\e674"; +} +.uniui-paperplane-filled[data-v-d31e1c47]:before { + content: "\e675"; +} +.uniui-plus[data-v-d31e1c47]:before { + content: "\e676"; +} +.uniui-mic-filled[data-v-d31e1c47]:before { + content: "\e677"; +} +.uniui-image-filled[data-v-d31e1c47]:before { + content: "\e678"; +} +.uniui-locked-filled[data-v-d31e1c47]:before { + content: "\e668"; +} +.uniui-info[data-v-d31e1c47]:before { + content: "\e669"; +} +.uniui-locked[data-v-d31e1c47]:before { + content: "\e66b"; +} +.uniui-camera-filled[data-v-d31e1c47]:before { + content: "\e658"; +} +.uniui-chat-filled[data-v-d31e1c47]:before { + content: "\e659"; +} +.uniui-camera[data-v-d31e1c47]:before { + content: "\e65a"; +} +.uniui-circle[data-v-d31e1c47]:before { + content: "\e65b"; +} +.uniui-checkmarkempty[data-v-d31e1c47]:before { + content: "\e65c"; +} +.uniui-chat[data-v-d31e1c47]:before { + content: "\e65d"; +} +.uniui-circle-filled[data-v-d31e1c47]:before { + content: "\e65e"; +} +.uniui-flag[data-v-d31e1c47]:before { + content: "\e65f"; +} +.uniui-flag-filled[data-v-d31e1c47]:before { + content: "\e660"; +} +.uniui-gear-filled[data-v-d31e1c47]:before { + content: "\e661"; +} +.uniui-home[data-v-d31e1c47]:before { + content: "\e662"; +} +.uniui-home-filled[data-v-d31e1c47]:before { + content: "\e663"; +} +.uniui-gear[data-v-d31e1c47]:before { + content: "\e664"; +} +.uniui-smallcircle-filled[data-v-d31e1c47]:before { + content: "\e665"; +} +.uniui-map-filled[data-v-d31e1c47]:before { + content: "\e666"; +} +.uniui-map[data-v-d31e1c47]:before { + content: "\e667"; +} +.uniui-refresh-filled[data-v-d31e1c47]:before { + content: "\e656"; +} +.uniui-refresh[data-v-d31e1c47]:before { + content: "\e657"; +} +.uniui-cloud-upload[data-v-d31e1c47]:before { + content: "\e645"; +} +.uniui-cloud-download-filled[data-v-d31e1c47]:before { + content: "\e646"; +} +.uniui-cloud-download[data-v-d31e1c47]:before { + content: "\e647"; +} +.uniui-cloud-upload-filled[data-v-d31e1c47]:before { + content: "\e648"; +} +.uniui-redo[data-v-d31e1c47]:before { + content: "\e64a"; +} +.uniui-images-filled[data-v-d31e1c47]:before { + content: "\e64b"; +} +.uniui-undo-filled[data-v-d31e1c47]:before { + content: "\e64c"; +} +.uniui-more[data-v-d31e1c47]:before { + content: "\e64d"; +} +.uniui-more-filled[data-v-d31e1c47]:before { + content: "\e64e"; +} +.uniui-undo[data-v-d31e1c47]:before { + content: "\e64f"; +} +.uniui-images[data-v-d31e1c47]:before { + content: "\e650"; +} +.uniui-paperclip[data-v-d31e1c47]:before { + content: "\e652"; +} +.uniui-settings[data-v-d31e1c47]:before { + content: "\e653"; +} +.uniui-search[data-v-d31e1c47]:before { + content: "\e654"; +} +.uniui-redo-filled[data-v-d31e1c47]:before { + content: "\e655"; +} +.uniui-list[data-v-d31e1c47]:before { + content: "\e644"; +} +.uniui-mail-open-filled[data-v-d31e1c47]:before { + content: "\e63a"; +} +.uniui-hand-down-filled[data-v-d31e1c47]:before { + content: "\e63c"; +} +.uniui-hand-down[data-v-d31e1c47]:before { + content: "\e63d"; +} +.uniui-hand-up-filled[data-v-d31e1c47]:before { + content: "\e63e"; +} +.uniui-hand-up[data-v-d31e1c47]:before { + content: "\e63f"; +} +.uniui-heart-filled[data-v-d31e1c47]:before { + content: "\e641"; +} +.uniui-mail-open[data-v-d31e1c47]:before { + content: "\e643"; +} +.uniui-heart[data-v-d31e1c47]:before { + content: "\e639"; +} +.uniui-loop[data-v-d31e1c47]:before { + content: "\e633"; +} +.uniui-pulldown[data-v-d31e1c47]:before { + content: "\e632"; +} +.uniui-scan[data-v-d31e1c47]:before { + content: "\e62a"; +} +.uniui-bars[data-v-d31e1c47]:before { + content: "\e627"; +} +.uniui-checkbox[data-v-d31e1c47]:before { + content: "\e62b"; +} +.uniui-checkbox-filled[data-v-d31e1c47]:before { + content: "\e62c"; +} +.uniui-shop[data-v-d31e1c47]:before { + content: "\e62f"; +} +.uniui-headphones[data-v-d31e1c47]:before { + content: "\e630"; +} +.uniui-cart[data-v-d31e1c47]:before { + content: "\e631"; +} +@font-face { + font-family: uniicons; + src: url("../../assets/uniicons.32e978a5.ttf"); +} +.uni-icons[data-v-d31e1c47] { + font-family: uniicons; + text-decoration: none; + text-align: center; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.list[data-v-982fcf41] { + flex-wrap: wrap; +} +.list .item[data-v-982fcf41] { + width: 10.625rem; + background: #FFFFFF; + box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.5); + border-radius: 0.5rem; + margin-top: 0.625rem; + font-size: 0.875rem; + color: #333333; + line-height: 1.25rem; +} +.list .item .text[data-v-982fcf41] { + padding: 0.5rem; +} +.list .item uni-image[data-v-982fcf41] { + width: 10.625rem; + height: 6.25rem; + border-radius: 0.5rem 0.5rem 0 0; + background-color: #efefef; + display: block; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.nav[data-v-420daeb5] { + width: calc(100% - 1.875rem); + padding: 0 0.9375rem; + height: var(--420daeb5-cusnavbarheight); + background: linear-gradient(270deg, #256FBC 0%, #044D87 100%); + font-size: 0.75rem; + color: #FFFFFF; + position: fixed; + top: 0; + left: 0; + z-index: 99; +} +.place[data-v-420daeb5] { + height: var(--420daeb5-cusnavbarheight); +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.content[data-v-dc2f4615] { + padding: 0 0.9375rem 0.9375rem 0.9375rem; +} +.nav_box[data-v-dc2f4615] { + position: absolute; + bottom: 0.4375rem; + width: 100%; + left: 0; +} +.back[data-v-dc2f4615] { + padding: 0 0.9375rem; +} +.search[data-v-dc2f4615] { + position: relative; + padding-right: 0.9375rem; + flex: 1; +} +.search uni-view[data-v-dc2f4615] { + position: absolute; + left: 0.875rem; + top: 50%; + transform: translateY(-50%); + font-size: 0.875rem; + color: #999999; +} +.search uni-input[data-v-dc2f4615] { + flex: 1; + height: 2.25rem; + background: #F8F8F8; + border-radius: 1.375rem; + padding: 0 0.875rem; +} +.search uni-image[data-v-dc2f4615] { + width: 1.0625rem; + height: 1.0625rem; + margin-right: 0.5rem; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/tab/index.css b/unpackage/dist/dev/app-plus/pages/tab/index.css new file mode 100644 index 0000000..5dc97f7 --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/tab/index.css @@ -0,0 +1,1505 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uniui-cart-filled[data-v-d31e1c47]:before { + content: "\e6d0"; +} +.uniui-gift-filled[data-v-d31e1c47]:before { + content: "\e6c4"; +} +.uniui-color[data-v-d31e1c47]:before { + content: "\e6cf"; +} +.uniui-wallet[data-v-d31e1c47]:before { + content: "\e6b1"; +} +.uniui-settings-filled[data-v-d31e1c47]:before { + content: "\e6ce"; +} +.uniui-auth-filled[data-v-d31e1c47]:before { + content: "\e6cc"; +} +.uniui-shop-filled[data-v-d31e1c47]:before { + content: "\e6cd"; +} +.uniui-staff-filled[data-v-d31e1c47]:before { + content: "\e6cb"; +} +.uniui-vip-filled[data-v-d31e1c47]:before { + content: "\e6c6"; +} +.uniui-plus-filled[data-v-d31e1c47]:before { + content: "\e6c7"; +} +.uniui-folder-add-filled[data-v-d31e1c47]:before { + content: "\e6c8"; +} +.uniui-color-filled[data-v-d31e1c47]:before { + content: "\e6c9"; +} +.uniui-tune-filled[data-v-d31e1c47]:before { + content: "\e6ca"; +} +.uniui-calendar-filled[data-v-d31e1c47]:before { + content: "\e6c0"; +} +.uniui-notification-filled[data-v-d31e1c47]:before { + content: "\e6c1"; +} +.uniui-wallet-filled[data-v-d31e1c47]:before { + content: "\e6c2"; +} +.uniui-medal-filled[data-v-d31e1c47]:before { + content: "\e6c3"; +} +.uniui-fire-filled[data-v-d31e1c47]:before { + content: "\e6c5"; +} +.uniui-refreshempty[data-v-d31e1c47]:before { + content: "\e6bf"; +} +.uniui-location-filled[data-v-d31e1c47]:before { + content: "\e6af"; +} +.uniui-person-filled[data-v-d31e1c47]:before { + content: "\e69d"; +} +.uniui-personadd-filled[data-v-d31e1c47]:before { + content: "\e698"; +} +.uniui-arrowthinleft[data-v-d31e1c47]:before { + content: "\e6d2"; +} +.uniui-arrowthinup[data-v-d31e1c47]:before { + content: "\e6d3"; +} +.uniui-arrowthindown[data-v-d31e1c47]:before { + content: "\e6d4"; +} +.uniui-back[data-v-d31e1c47]:before { + content: "\e6b9"; +} +.uniui-forward[data-v-d31e1c47]:before { + content: "\e6ba"; +} +.uniui-arrow-right[data-v-d31e1c47]:before { + content: "\e6bb"; +} +.uniui-arrow-left[data-v-d31e1c47]:before { + content: "\e6bc"; +} +.uniui-arrow-up[data-v-d31e1c47]:before { + content: "\e6bd"; +} +.uniui-arrow-down[data-v-d31e1c47]:before { + content: "\e6be"; +} +.uniui-arrowthinright[data-v-d31e1c47]:before { + content: "\e6d1"; +} +.uniui-down[data-v-d31e1c47]:before { + content: "\e6b8"; +} +.uniui-bottom[data-v-d31e1c47]:before { + content: "\e6b8"; +} +.uniui-arrowright[data-v-d31e1c47]:before { + content: "\e6d5"; +} +.uniui-right[data-v-d31e1c47]:before { + content: "\e6b5"; +} +.uniui-up[data-v-d31e1c47]:before { + content: "\e6b6"; +} +.uniui-top[data-v-d31e1c47]:before { + content: "\e6b6"; +} +.uniui-left[data-v-d31e1c47]:before { + content: "\e6b7"; +} +.uniui-arrowup[data-v-d31e1c47]:before { + content: "\e6d6"; +} +.uniui-eye[data-v-d31e1c47]:before { + content: "\e651"; +} +.uniui-eye-filled[data-v-d31e1c47]:before { + content: "\e66a"; +} +.uniui-eye-slash[data-v-d31e1c47]:before { + content: "\e6b3"; +} +.uniui-eye-slash-filled[data-v-d31e1c47]:before { + content: "\e6b4"; +} +.uniui-info-filled[data-v-d31e1c47]:before { + content: "\e649"; +} +.uniui-reload[data-v-d31e1c47]:before { + content: "\e6b2"; +} +.uniui-micoff-filled[data-v-d31e1c47]:before { + content: "\e6b0"; +} +.uniui-map-pin-ellipse[data-v-d31e1c47]:before { + content: "\e6ac"; +} +.uniui-map-pin[data-v-d31e1c47]:before { + content: "\e6ad"; +} +.uniui-location[data-v-d31e1c47]:before { + content: "\e6ae"; +} +.uniui-starhalf[data-v-d31e1c47]:before { + content: "\e683"; +} +.uniui-star[data-v-d31e1c47]:before { + content: "\e688"; +} +.uniui-star-filled[data-v-d31e1c47]:before { + content: "\e68f"; +} +.uniui-calendar[data-v-d31e1c47]:before { + content: "\e6a0"; +} +.uniui-fire[data-v-d31e1c47]:before { + content: "\e6a1"; +} +.uniui-medal[data-v-d31e1c47]:before { + content: "\e6a2"; +} +.uniui-font[data-v-d31e1c47]:before { + content: "\e6a3"; +} +.uniui-gift[data-v-d31e1c47]:before { + content: "\e6a4"; +} +.uniui-link[data-v-d31e1c47]:before { + content: "\e6a5"; +} +.uniui-notification[data-v-d31e1c47]:before { + content: "\e6a6"; +} +.uniui-staff[data-v-d31e1c47]:before { + content: "\e6a7"; +} +.uniui-vip[data-v-d31e1c47]:before { + content: "\e6a8"; +} +.uniui-folder-add[data-v-d31e1c47]:before { + content: "\e6a9"; +} +.uniui-tune[data-v-d31e1c47]:before { + content: "\e6aa"; +} +.uniui-auth[data-v-d31e1c47]:before { + content: "\e6ab"; +} +.uniui-person[data-v-d31e1c47]:before { + content: "\e699"; +} +.uniui-email-filled[data-v-d31e1c47]:before { + content: "\e69a"; +} +.uniui-phone-filled[data-v-d31e1c47]:before { + content: "\e69b"; +} +.uniui-phone[data-v-d31e1c47]:before { + content: "\e69c"; +} +.uniui-email[data-v-d31e1c47]:before { + content: "\e69e"; +} +.uniui-personadd[data-v-d31e1c47]:before { + content: "\e69f"; +} +.uniui-chatboxes-filled[data-v-d31e1c47]:before { + content: "\e692"; +} +.uniui-contact[data-v-d31e1c47]:before { + content: "\e693"; +} +.uniui-chatbubble-filled[data-v-d31e1c47]:before { + content: "\e694"; +} +.uniui-contact-filled[data-v-d31e1c47]:before { + content: "\e695"; +} +.uniui-chatboxes[data-v-d31e1c47]:before { + content: "\e696"; +} +.uniui-chatbubble[data-v-d31e1c47]:before { + content: "\e697"; +} +.uniui-upload-filled[data-v-d31e1c47]:before { + content: "\e68e"; +} +.uniui-upload[data-v-d31e1c47]:before { + content: "\e690"; +} +.uniui-weixin[data-v-d31e1c47]:before { + content: "\e691"; +} +.uniui-compose[data-v-d31e1c47]:before { + content: "\e67f"; +} +.uniui-qq[data-v-d31e1c47]:before { + content: "\e680"; +} +.uniui-download-filled[data-v-d31e1c47]:before { + content: "\e681"; +} +.uniui-pyq[data-v-d31e1c47]:before { + content: "\e682"; +} +.uniui-sound[data-v-d31e1c47]:before { + content: "\e684"; +} +.uniui-trash-filled[data-v-d31e1c47]:before { + content: "\e685"; +} +.uniui-sound-filled[data-v-d31e1c47]:before { + content: "\e686"; +} +.uniui-trash[data-v-d31e1c47]:before { + content: "\e687"; +} +.uniui-videocam-filled[data-v-d31e1c47]:before { + content: "\e689"; +} +.uniui-spinner-cycle[data-v-d31e1c47]:before { + content: "\e68a"; +} +.uniui-weibo[data-v-d31e1c47]:before { + content: "\e68b"; +} +.uniui-videocam[data-v-d31e1c47]:before { + content: "\e68c"; +} +.uniui-download[data-v-d31e1c47]:before { + content: "\e68d"; +} +.uniui-help[data-v-d31e1c47]:before { + content: "\e679"; +} +.uniui-navigate-filled[data-v-d31e1c47]:before { + content: "\e67a"; +} +.uniui-plusempty[data-v-d31e1c47]:before { + content: "\e67b"; +} +.uniui-smallcircle[data-v-d31e1c47]:before { + content: "\e67c"; +} +.uniui-minus-filled[data-v-d31e1c47]:before { + content: "\e67d"; +} +.uniui-micoff[data-v-d31e1c47]:before { + content: "\e67e"; +} +.uniui-closeempty[data-v-d31e1c47]:before { + content: "\e66c"; +} +.uniui-clear[data-v-d31e1c47]:before { + content: "\e66d"; +} +.uniui-navigate[data-v-d31e1c47]:before { + content: "\e66e"; +} +.uniui-minus[data-v-d31e1c47]:before { + content: "\e66f"; +} +.uniui-image[data-v-d31e1c47]:before { + content: "\e670"; +} +.uniui-mic[data-v-d31e1c47]:before { + content: "\e671"; +} +.uniui-paperplane[data-v-d31e1c47]:before { + content: "\e672"; +} +.uniui-close[data-v-d31e1c47]:before { + content: "\e673"; +} +.uniui-help-filled[data-v-d31e1c47]:before { + content: "\e674"; +} +.uniui-paperplane-filled[data-v-d31e1c47]:before { + content: "\e675"; +} +.uniui-plus[data-v-d31e1c47]:before { + content: "\e676"; +} +.uniui-mic-filled[data-v-d31e1c47]:before { + content: "\e677"; +} +.uniui-image-filled[data-v-d31e1c47]:before { + content: "\e678"; +} +.uniui-locked-filled[data-v-d31e1c47]:before { + content: "\e668"; +} +.uniui-info[data-v-d31e1c47]:before { + content: "\e669"; +} +.uniui-locked[data-v-d31e1c47]:before { + content: "\e66b"; +} +.uniui-camera-filled[data-v-d31e1c47]:before { + content: "\e658"; +} +.uniui-chat-filled[data-v-d31e1c47]:before { + content: "\e659"; +} +.uniui-camera[data-v-d31e1c47]:before { + content: "\e65a"; +} +.uniui-circle[data-v-d31e1c47]:before { + content: "\e65b"; +} +.uniui-checkmarkempty[data-v-d31e1c47]:before { + content: "\e65c"; +} +.uniui-chat[data-v-d31e1c47]:before { + content: "\e65d"; +} +.uniui-circle-filled[data-v-d31e1c47]:before { + content: "\e65e"; +} +.uniui-flag[data-v-d31e1c47]:before { + content: "\e65f"; +} +.uniui-flag-filled[data-v-d31e1c47]:before { + content: "\e660"; +} +.uniui-gear-filled[data-v-d31e1c47]:before { + content: "\e661"; +} +.uniui-home[data-v-d31e1c47]:before { + content: "\e662"; +} +.uniui-home-filled[data-v-d31e1c47]:before { + content: "\e663"; +} +.uniui-gear[data-v-d31e1c47]:before { + content: "\e664"; +} +.uniui-smallcircle-filled[data-v-d31e1c47]:before { + content: "\e665"; +} +.uniui-map-filled[data-v-d31e1c47]:before { + content: "\e666"; +} +.uniui-map[data-v-d31e1c47]:before { + content: "\e667"; +} +.uniui-refresh-filled[data-v-d31e1c47]:before { + content: "\e656"; +} +.uniui-refresh[data-v-d31e1c47]:before { + content: "\e657"; +} +.uniui-cloud-upload[data-v-d31e1c47]:before { + content: "\e645"; +} +.uniui-cloud-download-filled[data-v-d31e1c47]:before { + content: "\e646"; +} +.uniui-cloud-download[data-v-d31e1c47]:before { + content: "\e647"; +} +.uniui-cloud-upload-filled[data-v-d31e1c47]:before { + content: "\e648"; +} +.uniui-redo[data-v-d31e1c47]:before { + content: "\e64a"; +} +.uniui-images-filled[data-v-d31e1c47]:before { + content: "\e64b"; +} +.uniui-undo-filled[data-v-d31e1c47]:before { + content: "\e64c"; +} +.uniui-more[data-v-d31e1c47]:before { + content: "\e64d"; +} +.uniui-more-filled[data-v-d31e1c47]:before { + content: "\e64e"; +} +.uniui-undo[data-v-d31e1c47]:before { + content: "\e64f"; +} +.uniui-images[data-v-d31e1c47]:before { + content: "\e650"; +} +.uniui-paperclip[data-v-d31e1c47]:before { + content: "\e652"; +} +.uniui-settings[data-v-d31e1c47]:before { + content: "\e653"; +} +.uniui-search[data-v-d31e1c47]:before { + content: "\e654"; +} +.uniui-redo-filled[data-v-d31e1c47]:before { + content: "\e655"; +} +.uniui-list[data-v-d31e1c47]:before { + content: "\e644"; +} +.uniui-mail-open-filled[data-v-d31e1c47]:before { + content: "\e63a"; +} +.uniui-hand-down-filled[data-v-d31e1c47]:before { + content: "\e63c"; +} +.uniui-hand-down[data-v-d31e1c47]:before { + content: "\e63d"; +} +.uniui-hand-up-filled[data-v-d31e1c47]:before { + content: "\e63e"; +} +.uniui-hand-up[data-v-d31e1c47]:before { + content: "\e63f"; +} +.uniui-heart-filled[data-v-d31e1c47]:before { + content: "\e641"; +} +.uniui-mail-open[data-v-d31e1c47]:before { + content: "\e643"; +} +.uniui-heart[data-v-d31e1c47]:before { + content: "\e639"; +} +.uniui-loop[data-v-d31e1c47]:before { + content: "\e633"; +} +.uniui-pulldown[data-v-d31e1c47]:before { + content: "\e632"; +} +.uniui-scan[data-v-d31e1c47]:before { + content: "\e62a"; +} +.uniui-bars[data-v-d31e1c47]:before { + content: "\e627"; +} +.uniui-checkbox[data-v-d31e1c47]:before { + content: "\e62b"; +} +.uniui-checkbox-filled[data-v-d31e1c47]:before { + content: "\e62c"; +} +.uniui-shop[data-v-d31e1c47]:before { + content: "\e62f"; +} +.uniui-headphones[data-v-d31e1c47]:before { + content: "\e630"; +} +.uniui-cart[data-v-d31e1c47]:before { + content: "\e631"; +} +@font-face { + font-family: uniicons; + src: url("../../assets/uniicons.32e978a5.ttf"); +} +.uni-icons[data-v-d31e1c47] { + font-family: uniicons; + text-decoration: none; + text-align: center; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uni-calendar-item__weeks-box[data-v-3c762a01] { + flex: 1; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + margin: 1px 0; + position: relative; +} +.uni-calendar-item__weeks-box-text[data-v-3c762a01] { + font-size: 14px; + font-weight: bold; + color: #001833; +} +.uni-calendar-item__weeks-box-item[data-v-3c762a01] { + position: relative; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + width: 40px; + height: 40px; +} +.uni-calendar-item__weeks-box-circle[data-v-3c762a01] { + position: absolute; + top: 5px; + right: 5px; + width: 8px; + height: 8px; + border-radius: 8px; + background-color: #dd524d; +} +.uni-calendar-item__weeks-box .uni-calendar-item--disable[data-v-3c762a01] { + cursor: default; +} +.uni-calendar-item--disable .uni-calendar-item__weeks-box-text-disable[data-v-3c762a01] { + color: #D1D1D1; +} +.uni-calendar-item--today[data-v-3c762a01] { + position: absolute; + top: 10px; + right: 17%; + background-color: #dd524d; + width: 6px; + height: 6px; + border-radius: 50%; +} +.uni-calendar-item--extra[data-v-3c762a01] { + color: #dd524d; + opacity: 0.8; +} +.uni-calendar-item__weeks-box .uni-calendar-item--checked[data-v-3c762a01] { + border-radius: 50%; + box-sizing: border-box; + border: 3px solid #fff; +} +.uni-calendar-item--multiple .uni-calendar-item--checked-range-text[data-v-3c762a01] { + color: #333; +} +.uni-calendar-item--multiple[data-v-3c762a01] { + background-color: #F6F7FC; +} +.uni-calendar-item--multiple .uni-calendar-item--before-checked[data-v-3c762a01], +.uni-calendar-item--multiple .uni-calendar-item--after-checked[data-v-3c762a01] { + background-color: #007aff; + border-radius: 50%; + box-sizing: border-box; + border: 3px solid #F6F7FC; +} +.uni-calendar-item--before-checked .uni-calendar-item--checked-text[data-v-3c762a01], +.uni-calendar-item--after-checked .uni-calendar-item--checked-text[data-v-3c762a01] { + color: #fff; +} +.uni-calendar-item--before-checked-x[data-v-3c762a01] { + border-top-left-radius: 50px; + border-bottom-left-radius: 50px; + box-sizing: border-box; + background-color: #F6F7FC; +} +.uni-calendar-item--after-checked-x[data-v-3c762a01] { + border-top-right-radius: 50px; + border-bottom-right-radius: 50px; + background-color: #F6F7FC; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uni-datetime-picker[data-v-1d532b70] { + /* width: 100%; */ +} +.uni-datetime-picker-view[data-v-1d532b70] { + height: 130px; + width: 270px; + cursor: pointer; +} +.uni-datetime-picker-item[data-v-1d532b70] { + height: 50px; + line-height: 50px; + text-align: center; + font-size: 14px; +} +.uni-datetime-picker-btn[data-v-1d532b70] { + margin-top: 60px; + display: flex; + cursor: pointer; + flex-direction: row; + justify-content: space-between; +} +.uni-datetime-picker-btn-text[data-v-1d532b70] { + font-size: 14px; + color: #007aff; +} +.uni-datetime-picker-btn-group[data-v-1d532b70] { + display: flex; + flex-direction: row; +} +.uni-datetime-picker-cancel[data-v-1d532b70] { + margin-right: 30px; +} +.uni-datetime-picker-mask[data-v-1d532b70] { + position: fixed; + bottom: 0px; + top: 0px; + left: 0px; + right: 0px; + background-color: rgba(0, 0, 0, 0.4); + transition-duration: 0.3s; + z-index: 998; +} +.uni-datetime-picker-popup[data-v-1d532b70] { + border-radius: 8px; + padding: 30px; + width: 270px; + background-color: #fff; + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + transition-duration: 0.3s; + z-index: 999; +} +.uni-datetime-picker-time[data-v-1d532b70] { + color: grey; +} +.uni-datetime-picker-column[data-v-1d532b70] { + height: 50px; +} +.uni-datetime-picker-timebox[data-v-1d532b70] { + border: 1px solid #E5E5E5; + border-radius: 5px; + padding: 7px 10px; + box-sizing: border-box; + cursor: pointer; +} +.uni-datetime-picker-timebox-pointer[data-v-1d532b70] { + cursor: pointer; +} +.uni-datetime-picker-disabled[data-v-1d532b70] { + opacity: 0.4; +} +.uni-datetime-picker-text[data-v-1d532b70] { + font-size: 14px; + line-height: 50px; +} +.uni-datetime-picker-sign[data-v-1d532b70] { + position: absolute; + top: 53px; + /* 减掉 10px 的元素高度,兼容nvue */ + color: #999; +} +.sign-left[data-v-1d532b70] { + left: 86px; +} +.sign-right[data-v-1d532b70] { + right: 86px; +} +.sign-center[data-v-1d532b70] { + left: 135px; +} +.uni-datetime-picker__container-box[data-v-1d532b70] { + position: relative; + display: flex; + align-items: center; + justify-content: center; + margin-top: 40px; +} +.time-hide-second[data-v-1d532b70] { + width: 180px; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uni-calendar[data-v-1d379219] { + display: flex; + flex-direction: column; +} +.uni-calendar__mask[data-v-1d379219] { + position: fixed; + bottom: 0; + top: 0; + left: 0; + right: 0; + background-color: rgba(0, 0, 0, 0.4); + transition-property: opacity; + transition-duration: 0.3s; + opacity: 0; + z-index: 99; +} +.uni-calendar--mask-show[data-v-1d379219] { + opacity: 1; +} +.uni-calendar--fixed[data-v-1d379219] { + position: fixed; + bottom: calc(var(--window-bottom)); + left: 0; + right: 0; + transition-property: transform; + transition-duration: 0.3s; + transform: translateY(460px); + z-index: 99; +} +.uni-calendar--ani-show[data-v-1d379219] { + transform: translateY(0); +} +.uni-calendar__content[data-v-1d379219] { + background-color: #fff; +} +.uni-calendar__content-mobile[data-v-1d379219] { + border-top-left-radius: 10px; + border-top-right-radius: 10px; + box-shadow: 0px 0px 5px 3px rgba(0, 0, 0, 0.1); +} +.uni-calendar__header[data-v-1d379219] { + position: relative; + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + height: 50px; +} +.uni-calendar__header-mobile[data-v-1d379219] { + padding: 10px; + padding-bottom: 0; +} +.uni-calendar--fixed-top[data-v-1d379219] { + display: flex; + flex-direction: row; + justify-content: space-between; + border-top-color: rgba(0, 0, 0, 0.4); + border-top-style: solid; + border-top-width: 1px; +} +.uni-calendar--fixed-width[data-v-1d379219] { + width: 50px; +} +.uni-calendar__backtoday[data-v-1d379219] { + position: absolute; + right: 0; + top: 0.78125rem; + padding: 0 5px; + padding-left: 10px; + height: 25px; + line-height: 25px; + font-size: 12px; + border-top-left-radius: 25px; + border-bottom-left-radius: 25px; + color: #fff; + background-color: #f1f1f1; +} +.uni-calendar__header-text[data-v-1d379219] { + text-align: center; + width: 100px; + font-size: 15px; + color: #666; +} +.uni-calendar__button-text[data-v-1d379219] { + text-align: center; + width: 100px; + font-size: 14px; + color: #007aff; + letter-spacing: 3px; +} +.uni-calendar__header-btn-box[data-v-1d379219] { + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + width: 50px; + height: 50px; +} +.uni-calendar__header-btn[data-v-1d379219] { + width: 9px; + height: 9px; + border-left-color: #808080; + border-left-style: solid; + border-left-width: 1px; + border-top-color: #555555; + border-top-style: solid; + border-top-width: 1px; +} +.uni-calendar--left[data-v-1d379219] { + transform: rotate(-45deg); +} +.uni-calendar--right[data-v-1d379219] { + transform: rotate(135deg); +} +.uni-calendar__weeks[data-v-1d379219] { + position: relative; + display: flex; + flex-direction: row; +} +.uni-calendar__weeks-item[data-v-1d379219] { + flex: 1; +} +.uni-calendar__weeks-day[data-v-1d379219] { + flex: 1; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + height: 40px; + border-bottom-color: #F5F5F5; + border-bottom-style: solid; + border-bottom-width: 1px; +} +.uni-calendar__weeks-day-text[data-v-1d379219] { + font-size: 12px; + color: #B2B2B2; +} +.uni-calendar__box[data-v-1d379219] { + position: relative; + padding-bottom: 7px; +} +.uni-calendar__box-bg[data-v-1d379219] { + display: flex; + justify-content: center; + align-items: center; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; +} +.uni-calendar__box-bg-text[data-v-1d379219] { + font-size: 200px; + font-weight: bold; + color: #999; + opacity: 0.1; + text-align: center; + line-height: 1; +} +.uni-date-changed[data-v-1d379219] { + padding: 0 10px; + text-align: center; + color: #333; + border-top-color: #DCDCDC; + border-top-style: solid; + border-top-width: 1px; + flex: 1; +} +.uni-date-btn--ok[data-v-1d379219] { + padding: 20px 15px; +} +.uni-date-changed--time-start[data-v-1d379219] { + display: flex; + align-items: center; +} +.uni-date-changed--time-end[data-v-1d379219] { + display: flex; + align-items: center; +} +.uni-date-changed--time-date[data-v-1d379219] { + color: #999; + line-height: 50px; + margin-right: 5px; +} +.time-picker-style[data-v-1d379219] { + display: flex; + justify-content: center; + align-items: center; +} +.mr-10[data-v-1d379219] { + margin-right: 10px; +} +.dialog-close[data-v-1d379219] { + position: absolute; + top: 0; + right: 0; + bottom: 0; + display: flex; + flex-direction: row; + align-items: center; + padding: 0 25px; + margin-top: 10px; +} +.dialog-close-plus[data-v-1d379219] { + width: 16px; + height: 2px; + background-color: #737987; + border-radius: 2px; + transform: rotate(45deg); +} +.dialog-close-rotate[data-v-1d379219] { + position: absolute; + transform: rotate(-45deg); +} +.uni-datetime-picker--btn[data-v-1d379219] { + border-radius: 100px; + height: 40px; + line-height: 40px; + background-color: #007aff; + color: #fff; + font-size: 16px; + letter-spacing: 2px; +} +.uni-datetime-picker--btn[data-v-1d379219]:active { + opacity: 0.7; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uni-date[data-v-9802168a] { + width: 100%; + flex: 1; +} +.uni-date-x[data-v-9802168a] { + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + border-radius: 4px; + background-color: #fff; + color: #666; + font-size: 14px; + flex: 1; +} +.uni-date-x .icon-calendar[data-v-9802168a] { + padding-left: 3px; +} +.uni-date-x .range-separator[data-v-9802168a] { + height: 35px; + padding: 0 2px; + line-height: 35px; +} +.uni-date-x--border[data-v-9802168a] { + box-sizing: border-box; + border-radius: 4px; + border: 1px solid #e5e5e5; +} +.uni-date-editor--x[data-v-9802168a] { + display: flex; + align-items: center; + position: relative; +} +.uni-date-editor--x .uni-date__icon-clear[data-v-9802168a] { + padding-right: 3px; + display: flex; + align-items: center; +} +.uni-date__x-input[data-v-9802168a] { + width: auto; + height: 35px; + padding-left: 5px; + position: relative; + flex: 1; + line-height: 35px; + font-size: 14px; + overflow: hidden; +} +.text-center[data-v-9802168a] { + text-align: center; +} +.uni-date__input[data-v-9802168a] { + height: 40px; + width: 100%; + line-height: 40px; + font-size: 14px; +} +.uni-date-range__input[data-v-9802168a] { + text-align: center; + max-width: 142px; +} +.uni-date-picker__container[data-v-9802168a] { + position: relative; +} +.uni-date-mask--pc[data-v-9802168a] { + position: fixed; + bottom: 0px; + top: 0px; + left: 0px; + right: 0px; + background-color: rgba(0, 0, 0, 0); + transition-duration: 0.3s; + z-index: 996; +} +.uni-date-single--x[data-v-9802168a] { + background-color: #fff; + position: absolute; + top: 0; + z-index: 999; + border: 1px solid #EBEEF5; + box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); + border-radius: 4px; +} +.uni-date-range--x[data-v-9802168a] { + background-color: #fff; + position: absolute; + top: 0; + z-index: 999; + border: 1px solid #EBEEF5; + box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); + border-radius: 4px; +} +.uni-date-editor--x__disabled[data-v-9802168a] { + opacity: 0.4; + cursor: default; +} +.uni-date-editor--logo[data-v-9802168a] { + width: 16px; + height: 16px; + vertical-align: middle; +} + +/* 添加时间 */ +.popup-x-header[data-v-9802168a] { + display: flex; + flex-direction: row; +} +.popup-x-header--datetime[data-v-9802168a] { + display: flex; + flex-direction: row; + flex: 1; +} +.popup-x-body[data-v-9802168a] { + display: flex; +} +.popup-x-footer[data-v-9802168a] { + padding: 0 15px; + border-top-color: #F1F1F1; + border-top-style: solid; + border-top-width: 1px; + line-height: 40px; + text-align: right; + color: #666; +} +.popup-x-footer uni-text[data-v-9802168a]:hover { + color: #007aff; + cursor: pointer; + opacity: 0.8; +} +.popup-x-footer .confirm-text[data-v-9802168a] { + margin-left: 20px; + color: #007aff; +} +.uni-date-changed[data-v-9802168a] { + text-align: center; + color: #333; + border-bottom-color: #F1F1F1; + border-bottom-style: solid; + border-bottom-width: 1px; +} +.uni-date-changed--time uni-text[data-v-9802168a] { + height: 50px; + line-height: 50px; +} +.uni-date-changed .uni-date-changed--time[data-v-9802168a] { + flex: 1; +} +.uni-date-changed--time-date[data-v-9802168a] { + color: #333; + opacity: 0.6; +} +.mr-50[data-v-9802168a] { + margin-right: 50px; +} + +/* picker 弹出层通用的指示小三角, todo:扩展至上下左右方向定位 */ +.uni-popper__arrow[data-v-9802168a], +.uni-popper__arrow[data-v-9802168a]::after { + position: absolute; + display: block; + width: 0; + height: 0; + border: 6px solid transparent; + border-top-width: 0; +} +.uni-popper__arrow[data-v-9802168a] { + filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.03)); + top: -6px; + left: 10%; + margin-right: 3px; + border-bottom-color: #EBEEF5; +} +.uni-popper__arrow[data-v-9802168a]::after { + content: " "; + top: 1px; + margin-left: -6px; + border-bottom-color: #fff; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.nav[data-v-420daeb5] { + width: calc(100% - 1.875rem); + padding: 0 0.9375rem; + height: var(--420daeb5-cusnavbarheight); + background: linear-gradient(270deg, #256FBC 0%, #044D87 100%); + font-size: 0.75rem; + color: #FFFFFF; + position: fixed; + top: 0; + left: 0; + z-index: 99; +} +.place[data-v-420daeb5] { + height: var(--420daeb5-cusnavbarheight); +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.content[data-v-ae0729d5] { + padding-top: var(--ae0729d5-cusnavbarheight); +} +[data-v-ae0729d5] .uni-drawer { + margin-top: var(--ae0729d5-cusnavbarheight); +} +.nav[data-v-ae0729d5] { + width: calc(100% - 1.875rem); + padding: 0 0.9375rem; + height: var(--ae0729d5-cusnavbarheight); + font-size: 0.75rem; + color: #333333; + position: fixed; + top: 0; + left: 0; + z-index: 99; + background-image: url("../../static/my/navbg.png"); + background-repeat: no-repeat; + background-size: 23.4375rem 14.3125rem; +} +.nav_box[data-v-ae0729d5] { + position: absolute; + bottom: 0.8125rem; + width: calc(100% - 1.875rem); +} +.weather_calender uni-image[data-v-ae0729d5] { + width: 1.125rem; + height: 1.125rem; + margin-right: 0.25rem; +} +.weather_calender .position[data-v-ae0729d5]:not(:last-child) { + position: relative; + margin-right: 1.875rem; +} +.weather_calender .position[data-v-ae0729d5]:not(:last-child)::after { + position: absolute; + content: " "; + width: 0.0625rem; + height: 0.625rem; + background: #EFEFEF; + right: -0.9375rem; + top: 50%; + transform: translateY(-50%); +} +.swiper[data-v-ae0729d5] { + width: 100vw; + height: 12.5rem; +} +.swiper .swiper-item uni-image[data-v-ae0729d5] { + width: 100vw; + height: 12.5rem; + background-color: #a8a8a8; +} +.wrapper[data-v-ae0729d5] { + padding: 0 0.9375rem; + transform: translateY(-1.5625rem); +} +.wrapper .onduty[data-v-ae0729d5] { + background: #FFFFFF; + box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.5); + border-radius: 0.5rem; + padding: 0.625rem 0.75rem 0.75rem 0.75rem; +} +.wrapper .onduty .title[data-v-ae0729d5] { + font-size: 1rem; + color: #333333; + background-size: 1.375rem 0.375rem; + background-repeat: no-repeat; + background-position: left bottom; +} +.wrapper .onduty .info[data-v-ae0729d5] { + background: #F8F8F8; + border-radius: 0.25rem; + text-align: center; + width: 20.0625rem; + margin-top: 0.71875rem; +} +.wrapper .onduty .info .info_title[data-v-ae0729d5] { + font-size: 0.75rem; + color: #333333; + padding: 0.75rem 0; + border-bottom: 1px solid #EFEFEF; +} +.wrapper .onduty .info .info_title uni-view[data-v-ae0729d5] { + flex: 1; +} +.wrapper .onduty .info .data_box[data-v-ae0729d5] { + font-size: 0.75rem; + padding-bottom: 0.75rem; + color: #888888; +} +.wrapper .onduty .info .data_box .first[data-v-ae0729d5] { + font-weight: bold; + color: #333333; +} +.wrapper .onduty .info .data_box .data[data-v-ae0729d5] { + margin-top: 0.71875rem; +} +.wrapper .onduty .info .data_box .data uni-view[data-v-ae0729d5] { + flex: 1; +} +.wrapper .more[data-v-ae0729d5] { + font-size: 0.75rem; + color: #999999; + text-align: right; +} +.wrapper .more uni-image[data-v-ae0729d5] { + width: 0.3125rem; + height: 0.5625rem; +} +.wrapper .list_wrapper[data-v-ae0729d5] { + background: #FFFFFF; + box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.5); + border-radius: 0.5rem; + padding: 0.8125rem 0.75rem 0.75rem 0.75rem; + position: relative; + margin-top: 0.9375rem; + width: 20.0625rem; +} +.wrapper .list_wrapper[data-v-ae0729d5]::after { + position: absolute; + top: 3.125rem; + left: 0; + content: " "; + width: 100%; + height: 1px; + background-color: #EFEFEF; +} +.wrapper .list_wrapper .zhidu[data-v-ae0729d5] { + font-size: 0.75rem; + color: #666666; + justify-content: flex-end; + padding-top: 1.25rem; +} +.wrapper .list_wrapper .zhidu uni-view[data-v-ae0729d5] { + width: 3.75rem; + height: 1.875rem; + line-height: 1.875rem; + text-align: center; +} +.wrapper .list_wrapper .zhidu uni-view[data-v-ae0729d5]:first-child { + margin-right: 1.25rem; +} +.wrapper .list_wrapper .zhidu .active[data-v-ae0729d5] { + position: relative; + color: #3179d6; +} +.wrapper .list_wrapper .zhidu .active[data-v-ae0729d5]::after { + content: " "; + width: 3.75rem; + height: 1.875rem; + border-radius: 1.875rem; + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + position: absolute; + background-color: rgba(49, 121, 214, 0.1); +} +.wrapper .list_wrapper .list_title[data-v-ae0729d5] { + text-align: center; + padding-bottom: 0.90625rem; + font-size: 1rem; + color: #666666; +} +.wrapper .list_wrapper .list_title .active[data-v-ae0729d5] { + position: relative; + color: #3179d6; +} +.wrapper .list_wrapper .list_title .active[data-v-ae0729d5]::after { + content: " "; + width: 3.75rem; + height: 2.1875rem; + border-radius: 2.1875rem; + left: 50%; + top: 50%; + transform: translate(-50%, -50%); + position: absolute; + background-color: rgba(49, 121, 214, 0.1); +} +.wrapper .list_wrapper .list_box[data-v-ae0729d5] { + margin-top: 0.75rem; +} +.wrapper .list_wrapper .list_box .list[data-v-ae0729d5] { + margin-bottom: 0.75rem; + padding: 0.9375rem 0.9375rem 1.09375rem 0.9375rem; + background: #F8F8F8; + border-radius: 0.25rem; +} +.wrapper .list_wrapper .list_box .list .topic[data-v-ae0729d5] { + font-size: 0.875rem; + color: #333333; +} +.wrapper .list_wrapper .list_box .list .time_Box[data-v-ae0729d5] { + font-size: 0.75rem; + color: #888888; + margin-top: 0.625rem; +} +.wrapper .list_wrapper .list_box .list .time_Box .time[data-v-ae0729d5] { + margin-right: 1.9375rem; +} +.wrapper .list_wrapper .list_box .list .time_Box .look[data-v-ae0729d5] { + position: relative; +} +.wrapper .list_wrapper .list_box .list .time_Box .look[data-v-ae0729d5]::before { + position: absolute; + left: -0.9375rem; + top: 50%; + transform: translateY(-50%); + content: " "; + width: 0.0625rem; + height: 0.625rem; + background: #999999; +} +.wrapper .list_wrapper .list_box .list .time_Box uni-image[data-v-ae0729d5] { + width: 0.875rem; + height: 0.6875rem; + margin-right: 0.25rem; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/tab/my.css b/unpackage/dist/dev/app-plus/pages/tab/my.css new file mode 100644 index 0000000..8b381bb --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/tab/my.css @@ -0,0 +1,125 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.operate[data-v-2086c871] { + padding: 0 0.9375rem; + transform: translateY(-0.3125rem); +} +.operate .item[data-v-2086c871] { + height: 3.25rem; + border-bottom: 1px solid #EFEFEF; +} +.operate .item .version[data-v-2086c871] { + font-size: 0.75rem; + color: #888888; +} +.operate .switch uni-image[data-v-2086c871] { + width: 2.125rem; + height: 1.1875rem; +} +.operate .left[data-v-2086c871] { + font-size: 0.875rem; + color: #333333; +} +.operate .left uni-image[data-v-2086c871] { + width: 1.375rem; + height: 1.375rem; + margin-right: 0.9375rem; +} +.msg[data-v-2086c871] { + width: 21.5625rem; + height: 4.4375rem; + background-image: url("../../static/my/bg1.png"); + background-size: 21.5625rem 4.4375rem; + margin-top: 0.9375rem; +} +.msg .box[data-v-2086c871] { + justify-content: center; + width: 33.33%; +} +.msg .box .num[data-v-2086c871] { + font-size: 1rem; + color: #333333; + margin-bottom: 0.125rem; +} +.msg .box uni-text[data-v-2086c871] { + font-size: 0.75rem; + color: #888888; +} +.msg .box[data-v-2086c871]:not(:last-child) { + position: relative; +} +.msg .box[data-v-2086c871]:not(:last-child)::after { + content: " "; + width: 0.03125rem; + height: 1rem; + background: #D8D8D8; + position: absolute; + right: 0; + top: 50%; + transform: translateY(-50%); +} +.nav[data-v-2086c871] { + height: 14.3125rem; + background-image: url("../../static/my/navbg.png"); + background-size: 23.4375rem 14.3125rem; +} +.nav .user[data-v-2086c871] { + padding: 4rem 0.9375rem 0 0.9375rem; +} +.nav .user .right[data-v-2086c871] { + flex: 1; +} +.nav .user .avatar[data-v-2086c871] { + margin-right: 0.75rem; +} +.nav .user .avatar uni-image[data-v-2086c871] { + width: 3.4375rem; + height: 3.4375rem; + border-radius: 50%; + background-color: #fff; +} +.nav .user .name_job .name[data-v-2086c871] { + font-size: 1.125rem; + color: #333333; +} +.nav .user .name_job .status[data-v-2086c871] { + padding: 0.125rem 0.375rem; + background: #55B800; + border-radius: 0.25rem; + font-size: 0.625rem; + color: #FFFFFF; + display: inline-block; + margin-left: 0.25rem; +} +.nav .user .name_job .job[data-v-2086c871] { + font-size: 0.75rem; + color: #666666; + margin-top: 0.1875rem; +} +.nav .user .shezhi uni-image[data-v-2086c871] { + width: 1.3125rem; + height: 1.3125rem; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/tab/office.css b/unpackage/dist/dev/app-plus/pages/tab/office.css new file mode 100644 index 0000000..82390a6 --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/tab/office.css @@ -0,0 +1,97 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.drag[data-v-305a3c9f] { + background: #FFFFFF; + box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.5); + border-radius: 0.5rem; + margin: 0.75rem 0.9375rem 0 0.9375rem; +} +.drag .title[data-v-305a3c9f] { + font-size: 0.875rem; + color: #333333; + padding: 0.9375rem 0 0 0.9375rem; +} +.inner uni-image[data-v-305a3c9f] { + width: 3.0625rem; + height: 3.0625rem; + background-color: #efefef; +} +.inner .text[data-v-305a3c9f] { + font-size: 0.875rem; + color: #333333; + margin-top: 0.625rem; +} +.placeholder[data-v-305a3c9f] { + height: var(--305a3c9f-cusnavbarheight); +} +.nav[data-v-305a3c9f] { + width: calc(100% - 1.875rem); + padding: 0 0.9375rem; + height: var(--305a3c9f-cusnavbarheight); + font-size: 0.75rem; + color: #FFFFFF; + position: fixed; + top: 0; + left: 0; + z-index: 99; + background-image: url("../../static/my/navbg.png"); + background-repeat: no-repeat; + background-size: 23.4375rem 14.3125rem; +} +.content[data-v-305a3c9f] { + padding: 0 0.9375rem 0.625rem 0.9375rem; +} +.list[data-v-305a3c9f] { + margin-bottom: 0.75rem; +} +.list .item[data-v-305a3c9f] { + background: #FFFFFF; + box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.5); + border-radius: 0.5rem; + padding: 0.9375rem 0; + margin-top: 0.75rem; +} +.list .item .title[data-v-305a3c9f] { + font-size: 0.875rem; + color: #333333; + padding-left: 0.9375rem; +} +.list uni-image[data-v-305a3c9f] { + width: 3.0625rem; + height: 3.0625rem; +} +.list .info_box[data-v-305a3c9f] { + flex-wrap: wrap; +} +.list .info_box .info[data-v-305a3c9f] { + margin-top: 1.25rem; + width: 25%; +} +.list .info_box .info .text[data-v-305a3c9f] { + font-size: 0.875rem; + color: #333333; + margin-top: 0.625rem; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/talk/conversation.css b/unpackage/dist/dev/app-plus/pages/talk/conversation.css new file mode 100644 index 0000000..4d909d1 --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/talk/conversation.css @@ -0,0 +1,89 @@ + +body { + background-color: #f8f8f8; +} + +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.content[data-v-696a96aa] { + padding-bottom: 3.75rem; +} +.input_box[data-v-696a96aa] { + position: fixed; + width: 23.4375rem; + height: 3.75rem; + background: #FFFFFF; + bottom: 0; + left: 0; +} +.input_box uni-input[data-v-696a96aa] { + width: 14.59375rem; + height: 2.5rem; + background: #F8F8F8; + border-radius: 0.25rem; + padding: 0 0.9375rem; +} +.input_box .send[data-v-696a96aa] { + width: 4.15625rem; + height: 2.5rem; + background: #01508B; + border-radius: 0.25rem; + text-align: center; + line-height: 2.5rem; + font-size: 0.875rem; + color: #FFFFFF; +} +.list[data-v-696a96aa] { + padding: 1.25rem 0.9375rem; +} +.list .item[data-v-696a96aa]:not(:first-child) { + margin-top: 1.875rem; +} +.list .item uni-image[data-v-696a96aa] { + width: 2.6875rem; + height: 2.6875rem; + border-radius: 50%; + background-color: maroon; +} +.list .item .left .content[data-v-696a96aa] { + padding: 0.75rem 0.9375rem; + background: #FFFFFF; + border-radius: 0 0.5rem 0.5rem 0.5rem; + margin-left: 0.75rem; + font-size: 0.875rem; + color: #333333; +} +.list .item .right[data-v-696a96aa] { + justify-content: flex-end; +} +.list .item .right .content[data-v-696a96aa] { + margin-right: 0.75rem; + padding: 0.75rem 0.9375rem; + background: #01508B; + border-radius: 0.5rem 0 0.5rem 0.5rem; + font-size: 0.875rem; + color: #FFFFFF; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/talk/message_list.css b/unpackage/dist/dev/app-plus/pages/talk/message_list.css new file mode 100644 index 0000000..9b714f5 --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/talk/message_list.css @@ -0,0 +1,60 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.list[data-v-e2a9a302] { + padding: 0 0.9375rem; +} +.item[data-v-e2a9a302]:not(:last-child) { + border-bottom: 1px solid #EFEFEF; +} +.item[data-v-e2a9a302] { + height: 4.6875rem; +} +.item .name_info[data-v-e2a9a302] { + flex: 1; +} +.item .name[data-v-e2a9a302] { + font-size: 1rem; + color: #333333; +} +.item .info[data-v-e2a9a302] { + margin-top: 0.125rem; + width: 16.875rem; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} +.item .time[data-v-e2a9a302], +.item .info[data-v-e2a9a302] { + font-size: 0.875rem; + color: #999999; +} +.item uni-image[data-v-e2a9a302] { + width: 3.125rem; + height: 3.125rem; + border-radius: 50%; + background-color: #f8f8f8; + margin-right: 0.75rem; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/talk/system.css b/unpackage/dist/dev/app-plus/pages/talk/system.css new file mode 100644 index 0000000..adea37e --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/talk/system.css @@ -0,0 +1,52 @@ + +body { + background-color: #f8f8f8; +} + +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.content[data-v-5621beca] { + padding-bottom: 3.75rem; +} +.list[data-v-5621beca] { + padding: 1.25rem 0.9375rem; +} +.list .item[data-v-5621beca]:not(:first-child) { + margin-top: 1.875rem; +} +.list .item uni-image[data-v-5621beca] { + width: 2.6875rem; + height: 2.6875rem; + border-radius: 50%; +} +.list .item .left .content[data-v-5621beca] { + padding: 0.75rem 0.9375rem; + background: #FFFFFF; + border-radius: 0 0.5rem 0.5rem 0.5rem; + margin-left: 0.75rem; + font-size: 0.875rem; + color: #333333; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/task/handle.css b/unpackage/dist/dev/app-plus/pages/task/handle.css new file mode 100644 index 0000000..7ebf66e --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/task/handle.css @@ -0,0 +1,777 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uniui-cart-filled[data-v-d31e1c47]:before { + content: "\e6d0"; +} +.uniui-gift-filled[data-v-d31e1c47]:before { + content: "\e6c4"; +} +.uniui-color[data-v-d31e1c47]:before { + content: "\e6cf"; +} +.uniui-wallet[data-v-d31e1c47]:before { + content: "\e6b1"; +} +.uniui-settings-filled[data-v-d31e1c47]:before { + content: "\e6ce"; +} +.uniui-auth-filled[data-v-d31e1c47]:before { + content: "\e6cc"; +} +.uniui-shop-filled[data-v-d31e1c47]:before { + content: "\e6cd"; +} +.uniui-staff-filled[data-v-d31e1c47]:before { + content: "\e6cb"; +} +.uniui-vip-filled[data-v-d31e1c47]:before { + content: "\e6c6"; +} +.uniui-plus-filled[data-v-d31e1c47]:before { + content: "\e6c7"; +} +.uniui-folder-add-filled[data-v-d31e1c47]:before { + content: "\e6c8"; +} +.uniui-color-filled[data-v-d31e1c47]:before { + content: "\e6c9"; +} +.uniui-tune-filled[data-v-d31e1c47]:before { + content: "\e6ca"; +} +.uniui-calendar-filled[data-v-d31e1c47]:before { + content: "\e6c0"; +} +.uniui-notification-filled[data-v-d31e1c47]:before { + content: "\e6c1"; +} +.uniui-wallet-filled[data-v-d31e1c47]:before { + content: "\e6c2"; +} +.uniui-medal-filled[data-v-d31e1c47]:before { + content: "\e6c3"; +} +.uniui-fire-filled[data-v-d31e1c47]:before { + content: "\e6c5"; +} +.uniui-refreshempty[data-v-d31e1c47]:before { + content: "\e6bf"; +} +.uniui-location-filled[data-v-d31e1c47]:before { + content: "\e6af"; +} +.uniui-person-filled[data-v-d31e1c47]:before { + content: "\e69d"; +} +.uniui-personadd-filled[data-v-d31e1c47]:before { + content: "\e698"; +} +.uniui-arrowthinleft[data-v-d31e1c47]:before { + content: "\e6d2"; +} +.uniui-arrowthinup[data-v-d31e1c47]:before { + content: "\e6d3"; +} +.uniui-arrowthindown[data-v-d31e1c47]:before { + content: "\e6d4"; +} +.uniui-back[data-v-d31e1c47]:before { + content: "\e6b9"; +} +.uniui-forward[data-v-d31e1c47]:before { + content: "\e6ba"; +} +.uniui-arrow-right[data-v-d31e1c47]:before { + content: "\e6bb"; +} +.uniui-arrow-left[data-v-d31e1c47]:before { + content: "\e6bc"; +} +.uniui-arrow-up[data-v-d31e1c47]:before { + content: "\e6bd"; +} +.uniui-arrow-down[data-v-d31e1c47]:before { + content: "\e6be"; +} +.uniui-arrowthinright[data-v-d31e1c47]:before { + content: "\e6d1"; +} +.uniui-down[data-v-d31e1c47]:before { + content: "\e6b8"; +} +.uniui-bottom[data-v-d31e1c47]:before { + content: "\e6b8"; +} +.uniui-arrowright[data-v-d31e1c47]:before { + content: "\e6d5"; +} +.uniui-right[data-v-d31e1c47]:before { + content: "\e6b5"; +} +.uniui-up[data-v-d31e1c47]:before { + content: "\e6b6"; +} +.uniui-top[data-v-d31e1c47]:before { + content: "\e6b6"; +} +.uniui-left[data-v-d31e1c47]:before { + content: "\e6b7"; +} +.uniui-arrowup[data-v-d31e1c47]:before { + content: "\e6d6"; +} +.uniui-eye[data-v-d31e1c47]:before { + content: "\e651"; +} +.uniui-eye-filled[data-v-d31e1c47]:before { + content: "\e66a"; +} +.uniui-eye-slash[data-v-d31e1c47]:before { + content: "\e6b3"; +} +.uniui-eye-slash-filled[data-v-d31e1c47]:before { + content: "\e6b4"; +} +.uniui-info-filled[data-v-d31e1c47]:before { + content: "\e649"; +} +.uniui-reload[data-v-d31e1c47]:before { + content: "\e6b2"; +} +.uniui-micoff-filled[data-v-d31e1c47]:before { + content: "\e6b0"; +} +.uniui-map-pin-ellipse[data-v-d31e1c47]:before { + content: "\e6ac"; +} +.uniui-map-pin[data-v-d31e1c47]:before { + content: "\e6ad"; +} +.uniui-location[data-v-d31e1c47]:before { + content: "\e6ae"; +} +.uniui-starhalf[data-v-d31e1c47]:before { + content: "\e683"; +} +.uniui-star[data-v-d31e1c47]:before { + content: "\e688"; +} +.uniui-star-filled[data-v-d31e1c47]:before { + content: "\e68f"; +} +.uniui-calendar[data-v-d31e1c47]:before { + content: "\e6a0"; +} +.uniui-fire[data-v-d31e1c47]:before { + content: "\e6a1"; +} +.uniui-medal[data-v-d31e1c47]:before { + content: "\e6a2"; +} +.uniui-font[data-v-d31e1c47]:before { + content: "\e6a3"; +} +.uniui-gift[data-v-d31e1c47]:before { + content: "\e6a4"; +} +.uniui-link[data-v-d31e1c47]:before { + content: "\e6a5"; +} +.uniui-notification[data-v-d31e1c47]:before { + content: "\e6a6"; +} +.uniui-staff[data-v-d31e1c47]:before { + content: "\e6a7"; +} +.uniui-vip[data-v-d31e1c47]:before { + content: "\e6a8"; +} +.uniui-folder-add[data-v-d31e1c47]:before { + content: "\e6a9"; +} +.uniui-tune[data-v-d31e1c47]:before { + content: "\e6aa"; +} +.uniui-auth[data-v-d31e1c47]:before { + content: "\e6ab"; +} +.uniui-person[data-v-d31e1c47]:before { + content: "\e699"; +} +.uniui-email-filled[data-v-d31e1c47]:before { + content: "\e69a"; +} +.uniui-phone-filled[data-v-d31e1c47]:before { + content: "\e69b"; +} +.uniui-phone[data-v-d31e1c47]:before { + content: "\e69c"; +} +.uniui-email[data-v-d31e1c47]:before { + content: "\e69e"; +} +.uniui-personadd[data-v-d31e1c47]:before { + content: "\e69f"; +} +.uniui-chatboxes-filled[data-v-d31e1c47]:before { + content: "\e692"; +} +.uniui-contact[data-v-d31e1c47]:before { + content: "\e693"; +} +.uniui-chatbubble-filled[data-v-d31e1c47]:before { + content: "\e694"; +} +.uniui-contact-filled[data-v-d31e1c47]:before { + content: "\e695"; +} +.uniui-chatboxes[data-v-d31e1c47]:before { + content: "\e696"; +} +.uniui-chatbubble[data-v-d31e1c47]:before { + content: "\e697"; +} +.uniui-upload-filled[data-v-d31e1c47]:before { + content: "\e68e"; +} +.uniui-upload[data-v-d31e1c47]:before { + content: "\e690"; +} +.uniui-weixin[data-v-d31e1c47]:before { + content: "\e691"; +} +.uniui-compose[data-v-d31e1c47]:before { + content: "\e67f"; +} +.uniui-qq[data-v-d31e1c47]:before { + content: "\e680"; +} +.uniui-download-filled[data-v-d31e1c47]:before { + content: "\e681"; +} +.uniui-pyq[data-v-d31e1c47]:before { + content: "\e682"; +} +.uniui-sound[data-v-d31e1c47]:before { + content: "\e684"; +} +.uniui-trash-filled[data-v-d31e1c47]:before { + content: "\e685"; +} +.uniui-sound-filled[data-v-d31e1c47]:before { + content: "\e686"; +} +.uniui-trash[data-v-d31e1c47]:before { + content: "\e687"; +} +.uniui-videocam-filled[data-v-d31e1c47]:before { + content: "\e689"; +} +.uniui-spinner-cycle[data-v-d31e1c47]:before { + content: "\e68a"; +} +.uniui-weibo[data-v-d31e1c47]:before { + content: "\e68b"; +} +.uniui-videocam[data-v-d31e1c47]:before { + content: "\e68c"; +} +.uniui-download[data-v-d31e1c47]:before { + content: "\e68d"; +} +.uniui-help[data-v-d31e1c47]:before { + content: "\e679"; +} +.uniui-navigate-filled[data-v-d31e1c47]:before { + content: "\e67a"; +} +.uniui-plusempty[data-v-d31e1c47]:before { + content: "\e67b"; +} +.uniui-smallcircle[data-v-d31e1c47]:before { + content: "\e67c"; +} +.uniui-minus-filled[data-v-d31e1c47]:before { + content: "\e67d"; +} +.uniui-micoff[data-v-d31e1c47]:before { + content: "\e67e"; +} +.uniui-closeempty[data-v-d31e1c47]:before { + content: "\e66c"; +} +.uniui-clear[data-v-d31e1c47]:before { + content: "\e66d"; +} +.uniui-navigate[data-v-d31e1c47]:before { + content: "\e66e"; +} +.uniui-minus[data-v-d31e1c47]:before { + content: "\e66f"; +} +.uniui-image[data-v-d31e1c47]:before { + content: "\e670"; +} +.uniui-mic[data-v-d31e1c47]:before { + content: "\e671"; +} +.uniui-paperplane[data-v-d31e1c47]:before { + content: "\e672"; +} +.uniui-close[data-v-d31e1c47]:before { + content: "\e673"; +} +.uniui-help-filled[data-v-d31e1c47]:before { + content: "\e674"; +} +.uniui-paperplane-filled[data-v-d31e1c47]:before { + content: "\e675"; +} +.uniui-plus[data-v-d31e1c47]:before { + content: "\e676"; +} +.uniui-mic-filled[data-v-d31e1c47]:before { + content: "\e677"; +} +.uniui-image-filled[data-v-d31e1c47]:before { + content: "\e678"; +} +.uniui-locked-filled[data-v-d31e1c47]:before { + content: "\e668"; +} +.uniui-info[data-v-d31e1c47]:before { + content: "\e669"; +} +.uniui-locked[data-v-d31e1c47]:before { + content: "\e66b"; +} +.uniui-camera-filled[data-v-d31e1c47]:before { + content: "\e658"; +} +.uniui-chat-filled[data-v-d31e1c47]:before { + content: "\e659"; +} +.uniui-camera[data-v-d31e1c47]:before { + content: "\e65a"; +} +.uniui-circle[data-v-d31e1c47]:before { + content: "\e65b"; +} +.uniui-checkmarkempty[data-v-d31e1c47]:before { + content: "\e65c"; +} +.uniui-chat[data-v-d31e1c47]:before { + content: "\e65d"; +} +.uniui-circle-filled[data-v-d31e1c47]:before { + content: "\e65e"; +} +.uniui-flag[data-v-d31e1c47]:before { + content: "\e65f"; +} +.uniui-flag-filled[data-v-d31e1c47]:before { + content: "\e660"; +} +.uniui-gear-filled[data-v-d31e1c47]:before { + content: "\e661"; +} +.uniui-home[data-v-d31e1c47]:before { + content: "\e662"; +} +.uniui-home-filled[data-v-d31e1c47]:before { + content: "\e663"; +} +.uniui-gear[data-v-d31e1c47]:before { + content: "\e664"; +} +.uniui-smallcircle-filled[data-v-d31e1c47]:before { + content: "\e665"; +} +.uniui-map-filled[data-v-d31e1c47]:before { + content: "\e666"; +} +.uniui-map[data-v-d31e1c47]:before { + content: "\e667"; +} +.uniui-refresh-filled[data-v-d31e1c47]:before { + content: "\e656"; +} +.uniui-refresh[data-v-d31e1c47]:before { + content: "\e657"; +} +.uniui-cloud-upload[data-v-d31e1c47]:before { + content: "\e645"; +} +.uniui-cloud-download-filled[data-v-d31e1c47]:before { + content: "\e646"; +} +.uniui-cloud-download[data-v-d31e1c47]:before { + content: "\e647"; +} +.uniui-cloud-upload-filled[data-v-d31e1c47]:before { + content: "\e648"; +} +.uniui-redo[data-v-d31e1c47]:before { + content: "\e64a"; +} +.uniui-images-filled[data-v-d31e1c47]:before { + content: "\e64b"; +} +.uniui-undo-filled[data-v-d31e1c47]:before { + content: "\e64c"; +} +.uniui-more[data-v-d31e1c47]:before { + content: "\e64d"; +} +.uniui-more-filled[data-v-d31e1c47]:before { + content: "\e64e"; +} +.uniui-undo[data-v-d31e1c47]:before { + content: "\e64f"; +} +.uniui-images[data-v-d31e1c47]:before { + content: "\e650"; +} +.uniui-paperclip[data-v-d31e1c47]:before { + content: "\e652"; +} +.uniui-settings[data-v-d31e1c47]:before { + content: "\e653"; +} +.uniui-search[data-v-d31e1c47]:before { + content: "\e654"; +} +.uniui-redo-filled[data-v-d31e1c47]:before { + content: "\e655"; +} +.uniui-list[data-v-d31e1c47]:before { + content: "\e644"; +} +.uniui-mail-open-filled[data-v-d31e1c47]:before { + content: "\e63a"; +} +.uniui-hand-down-filled[data-v-d31e1c47]:before { + content: "\e63c"; +} +.uniui-hand-down[data-v-d31e1c47]:before { + content: "\e63d"; +} +.uniui-hand-up-filled[data-v-d31e1c47]:before { + content: "\e63e"; +} +.uniui-hand-up[data-v-d31e1c47]:before { + content: "\e63f"; +} +.uniui-heart-filled[data-v-d31e1c47]:before { + content: "\e641"; +} +.uniui-mail-open[data-v-d31e1c47]:before { + content: "\e643"; +} +.uniui-heart[data-v-d31e1c47]:before { + content: "\e639"; +} +.uniui-loop[data-v-d31e1c47]:before { + content: "\e633"; +} +.uniui-pulldown[data-v-d31e1c47]:before { + content: "\e632"; +} +.uniui-scan[data-v-d31e1c47]:before { + content: "\e62a"; +} +.uniui-bars[data-v-d31e1c47]:before { + content: "\e627"; +} +.uniui-checkbox[data-v-d31e1c47]:before { + content: "\e62b"; +} +.uniui-checkbox-filled[data-v-d31e1c47]:before { + content: "\e62c"; +} +.uniui-shop[data-v-d31e1c47]:before { + content: "\e62f"; +} +.uniui-headphones[data-v-d31e1c47]:before { + content: "\e630"; +} +.uniui-cart[data-v-d31e1c47]:before { + content: "\e631"; +} +@font-face { + font-family: uniicons; + src: url("../../assets/uniicons.32e978a5.ttf"); +} +.uni-icons[data-v-d31e1c47] { + font-family: uniicons; + text-decoration: none; + text-align: center; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uni-popup[data-v-4dd3c44b] { + position: fixed; + z-index: 99; +} +.uni-popup.top[data-v-4dd3c44b], .uni-popup.left[data-v-4dd3c44b], .uni-popup.right[data-v-4dd3c44b] { + top: 0; +} +.uni-popup .uni-popup__wrapper[data-v-4dd3c44b] { + display: block; + position: relative; + /* iphonex 等安全区设置,底部安全区适配 */ +} +.uni-popup .uni-popup__wrapper.left[data-v-4dd3c44b], .uni-popup .uni-popup__wrapper.right[data-v-4dd3c44b] { + padding-top: 0; + flex: 1; +} +.fixforpc-z-index[data-v-4dd3c44b] { + z-index: 999; +} +.fixforpc-top[data-v-4dd3c44b] { + top: 0; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.nav[data-v-420daeb5] { + width: calc(100% - 1.875rem); + padding: 0 0.9375rem; + height: var(--420daeb5-cusnavbarheight); + background: linear-gradient(270deg, #256FBC 0%, #044D87 100%); + font-size: 0.75rem; + color: #FFFFFF; + position: fixed; + top: 0; + left: 0; + z-index: 99; +} +.place[data-v-420daeb5] { + height: var(--420daeb5-cusnavbarheight); +} + +body { + background-color: #f8f8f8; +} + +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.popup[data-v-aeec6874] { + width: 21.5625rem; + background: #FFFFFF; + border-radius: 0.25rem; +} +.popup .node[data-v-aeec6874] { + margin: 0.75rem; + font-size: 0.875rem; + color: #333333; + padding: 0 0.625rem; +} +.popup .agree_operate[data-v-aeec6874] { + padding: 0.75rem; + font-size: 0.875rem; + color: #333333; +} +.popup .agree_operate uni-image[data-v-aeec6874] { + width: 1.25rem; + height: 1.25rem; + margin-right: 0.3125rem; +} +.popup .title[data-v-aeec6874] { + font-size: 1rem; + color: #000000; + text-align: center; + padding: 1.25rem 0; +} +.popup .input[data-v-aeec6874] { + width: 18.1875rem; + height: 7.0625rem; + background: #F8F8F8; + border-radius: 0.25rem; + padding: 0.75rem; +} +.popup .input uni-textarea[data-v-aeec6874] { + flex: 1; + width: 100%; +} +.popup .input uni-view[data-v-aeec6874] { + text-align: right; + font-size: 0.875rem; + color: #999999; +} +.popup .popbtn[data-v-aeec6874] { + font-size: 1rem; + border-top: 1px solid #E5E5E5; + margin-top: 1.25rem; + position: relative; +} +.popup .popbtn[data-v-aeec6874]::after { + position: absolute; + content: " "; + height: 3.125rem; + width: 1px; + background-color: #E5E5E5; + left: 50%; + transform: translateX(-50%); +} +.popup .popbtn uni-view[data-v-aeec6874] { + flex: 1; + text-align: center; + height: 3.125rem; + line-height: 3.125rem; +} +.popup .popbtn .cancel[data-v-aeec6874] { + color: #000000; +} +.popup .popbtn .confirm[data-v-aeec6874] { + color: #007FFF; +} +.content[data-v-aeec6874] { + padding-bottom: 3.75rem; +} +.btn[data-v-aeec6874] { + position: fixed; + bottom: 0; + width: 21.5625rem; + height: 3.75rem; + background: #FFFFFF; + padding: 0 0.9375rem; +} +.btn uni-view[data-v-aeec6874] { + width: 10.3125rem; + height: 2.75rem; + font-size: 0.875rem; + border-radius: 0.5rem; + text-align: center; + line-height: 2.75rem; +} +.btn .refuse[data-v-aeec6874] { + box-sizing: border-box; + background: #FFFFFF; + border: 0.0625rem solid #01508B; + color: #01508B; +} +.btn .agree[data-v-aeec6874] { + background: #01508B; + color: #FFFFFF; +} +.box[data-v-aeec6874] { + position: absolute; + bottom: 0.375rem; + left: 0; +} +.back[data-v-aeec6874] { + padding-left: 0.9375rem; +} +uni-image[data-v-aeec6874] { + width: 2rem; + height: 2rem; + border-radius: 1rem; + background-color: #fff; + margin-right: 0.5rem; + margin-left: 1.5625rem; +} +.name[data-v-aeec6874] { + font-size: 0.875rem; + color: #FFFFFF; +} +.status[data-v-aeec6874] { + padding: 0.125rem 0.25rem; + display: inline-block; + background-color: #FE4600; + color: #FFFFFF; + font-size: 0.625rem; + margin-left: 0.25rem; + border-radius: 0.25rem; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/task/index.css b/unpackage/dist/dev/app-plus/pages/task/index.css new file mode 100644 index 0000000..4960bb9 --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/task/index.css @@ -0,0 +1,155 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.list_box[data-v-a83f61d7] { + padding: 0 0.9375rem 0 0.9375rem; + margin-top: 0.75rem; +} +.list_box .list[data-v-a83f61d7] { + background: #FFFFFF; + box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.5); + border-radius: 0.5rem; + padding: 0.9375rem; + margin-bottom: 0.9375rem; +} +.list_box .list .title[data-v-a83f61d7] { + border-bottom: 1px solid #efefef; + padding-bottom: 0.75rem; + margin-bottom: 0.25rem; +} +.list_box .list .title uni-view[data-v-a83f61d7] { + font-size: 0.875rem; + color: #333333; +} +.list_box .list .title uni-text[data-v-a83f61d7] { + font-size: 0.875rem; + color: #999999; +} +.list_box .list .info[data-v-a83f61d7] { + font-size: 0.875rem; + color: #666666; +} +.list_box .list .info uni-view[data-v-a83f61d7] { + padding-top: 0.5rem; +} +.list_box .list .btn[data-v-a83f61d7] { + margin-top: 0.9375rem; +} +.list_box .list .btn uni-view[data-v-a83f61d7] { + width: 9.375rem; + height: 2rem; + border-radius: 0.25rem; + font-size: 0.875rem; + text-align: center; + line-height: 2rem; +} +.list_box .list .btn .entrust[data-v-a83f61d7] { + background: #FFFFFF; + border: 0.0625rem solid #01508B; + box-sizing: border-box; + color: #01508B; +} +.list_box .list .btn .handle[data-v-a83f61d7] { + background: #01508B; + color: #FFFFFF; +} + +body { + background-color: #f8f8f8; +} + +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.tasklist[data-v-3dabfb60] { + padding-top: 3.125rem; +} +.nav[data-v-3dabfb60] { + background-color: #fff; + height: 3.125rem; + width: 100vw; + position: fixed; + top: 0; + left: 0; + z-index: 99; +} +.nav .tab_box[data-v-3dabfb60] { + padding: 0.75rem 0; +} +.nav .tab_box uni-view[data-v-3dabfb60] { + position: relative; + font-size: 0.875rem; + color: #666666; +} +.nav .tab_box .active[data-v-3dabfb60] { + font-size: 0.875rem; + color: #01508B; +} +.nav .tab_box .active[data-v-3dabfb60]::after { + position: absolute; + width: 7.1875rem; + height: 0.0625rem; + background: #01508B; + content: " "; + bottom: -0.6875rem; + left: 50%; + transform: translateX(-50%); +} +.nav .time_box[data-v-3dabfb60] { + padding: 0.625rem 0; +} +.nav .time_box .time[data-v-3dabfb60] { + padding: 0 0.9375rem; + width: 19.6875rem; + height: 2.25rem; + background: #F8F8F8; + border-radius: 0.25rem; +} +.nav .time_box .time uni-image[data-v-3dabfb60] { + width: 1.0625rem; + height: 1.0625rem; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/task/self.css b/unpackage/dist/dev/app-plus/pages/task/self.css new file mode 100644 index 0000000..8a32081 --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/task/self.css @@ -0,0 +1,77 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.list_box[data-v-a83f61d7] { + padding: 0 0.9375rem 0 0.9375rem; + margin-top: 0.75rem; +} +.list_box .list[data-v-a83f61d7] { + background: #FFFFFF; + box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.5); + border-radius: 0.5rem; + padding: 0.9375rem; + margin-bottom: 0.9375rem; +} +.list_box .list .title[data-v-a83f61d7] { + border-bottom: 1px solid #efefef; + padding-bottom: 0.75rem; + margin-bottom: 0.25rem; +} +.list_box .list .title uni-view[data-v-a83f61d7] { + font-size: 0.875rem; + color: #333333; +} +.list_box .list .title uni-text[data-v-a83f61d7] { + font-size: 0.875rem; + color: #999999; +} +.list_box .list .info[data-v-a83f61d7] { + font-size: 0.875rem; + color: #666666; +} +.list_box .list .info uni-view[data-v-a83f61d7] { + padding-top: 0.5rem; +} +.list_box .list .btn[data-v-a83f61d7] { + margin-top: 0.9375rem; +} +.list_box .list .btn uni-view[data-v-a83f61d7] { + width: 9.375rem; + height: 2rem; + border-radius: 0.25rem; + font-size: 0.875rem; + text-align: center; + line-height: 2rem; +} +.list_box .list .btn .entrust[data-v-a83f61d7] { + background: #FFFFFF; + border: 0.0625rem solid #01508B; + box-sizing: border-box; + color: #01508B; +} +.list_box .list .btn .handle[data-v-a83f61d7] { + background: #01508B; + color: #FFFFFF; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/task/todotask.css b/unpackage/dist/dev/app-plus/pages/task/todotask.css new file mode 100644 index 0000000..ca217de --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/task/todotask.css @@ -0,0 +1,198 @@ + +body[data-v-e40cd242] { + background-color: #F8F8F8; +} + +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.content[data-v-e40cd242] { + padding-top: 0.9375rem; +} +.todo .title_box[data-v-e40cd242] { + width: 19.6875rem; + height: 3.375rem; + background: #FFFFFF; + box-shadow: 0 0.0625rem 0.1875rem 0 rgba(0, 0, 0, 0.16); + border-radius: 0.5rem; + padding: 0 0.9375rem; +} +.todo .title_box .title[data-v-e40cd242] { + font-weight: 500; + font-size: 1rem; + color: #333333; +} +.todo .title_box .title uni-image[data-v-e40cd242] { + width: 1.5rem; + height: 1.5rem; +} +.todo .title_box .num[data-v-e40cd242] { + width: 1.6875rem; + height: 1.6875rem; + background: url("../../static/my/num.png") no-repeat; + background-size: 1.6875rem 1.6875rem; + font-size: 0.75rem; + color: #FFFFFF; + text-align: center; + line-height: 1.6875rem; +} +.todo .list[data-v-e40cd242] { + width: 17.8125rem; + padding: 0.625rem 0.9375rem 0.9375rem 0.9375rem; + background: #FFFFFF; + box-shadow: 0 0.0625rem 0.1875rem 0 rgba(0, 0, 0, 0.16); + border-radius: 0 0 0.5rem 0.5rem; +} +.todo .list .box[data-v-e40cd242] { + max-height: 3.75rem; + transition: all 0.3s; + overflow: hidden; +} +.todo .list .box .item_box[data-v-e40cd242] { + display: flex; + flex-wrap: wrap; +} +.todo .list .box .item[data-v-e40cd242] { + font-size: 0.875rem; + height: 1.875rem; + width: 50%; +} +.todo .list .box .item uni-view[data-v-e40cd242] { + color: #666666; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + -o-text-overflow: ellipsis; +} +.todo .list .box .item uni-text[data-v-e40cd242] { + color: #ED361D; + margin: 0 0.3125rem; +} +.todo .list .close[data-v-e40cd242] { + max-height: var(--e40cd242-moreHeight); +} +.todo .list .more[data-v-e40cd242] { + font-size: 0.875rem; + color: #008DFF; + text-decoration: underline; + margin-top: 0.625rem; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.drag[data-v-fc853b6f] { + background: #FFFFFF; + box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.5); + border-radius: 0.5rem; + margin: 0.75rem 0.9375rem 0 0.9375rem; +} +.drag .title[data-v-fc853b6f] { + font-size: 0.875rem; + color: #333333; + padding: 0.9375rem 0 0 0.9375rem; +} +.inner uni-image[data-v-fc853b6f] { + width: 3.0625rem; + height: 3.0625rem; + background-color: #efefef; +} +.inner .text[data-v-fc853b6f] { + font-size: 0.875rem; + color: #333333; + margin-top: 0.625rem; +} +.placeholder[data-v-fc853b6f] { + height: var(--fc853b6f-cusnavbarheight); +} +.nav[data-v-fc853b6f] { + width: calc(100% - 1.875rem); + padding: 0 0.9375rem; + height: var(--fc853b6f-cusnavbarheight); + font-size: 0.75rem; + color: #FFFFFF; + position: fixed; + top: 0; + left: 0; + z-index: 99; + background-image: url("../../static/my/navbg.png"); + background-repeat: no-repeat; + background-size: 23.4375rem 14.3125rem; +} +.content[data-v-fc853b6f] { + padding: 0 0.9375rem 0.625rem 0.9375rem; +} +.list[data-v-fc853b6f] { + margin-bottom: 0.75rem; +} +.list .item[data-v-fc853b6f] { + background: #FFFFFF; + box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.5); + border-radius: 0.5rem; + padding: 0.9375rem 0; + margin-top: 0.75rem; +} +.list .item .title[data-v-fc853b6f] { + font-size: 0.875rem; + color: #333333; + padding-left: 0.9375rem; +} +.list uni-image[data-v-fc853b6f] { + width: 3.0625rem; + height: 3.0625rem; +} +.list .info_box[data-v-fc853b6f] { + flex-wrap: wrap; +} +.list .info_box .info[data-v-fc853b6f] { + margin-top: 1.25rem; + width: 25%; +} +.list .info_box .info .text[data-v-fc853b6f] { + font-size: 0.875rem; + color: #333333; + margin-top: 0.625rem; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/useredit/add_address.css b/unpackage/dist/dev/app-plus/pages/useredit/add_address.css new file mode 100644 index 0000000..3ec13e8 --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/useredit/add_address.css @@ -0,0 +1,80 @@ + +body { + background-color: #fff; +} + +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.content[data-v-f1271877] { + padding: 0.9375rem 0.9375rem 3.75rem 0.9375rem; +} +.area[data-v-f1271877]:not(:first-child) { + margin-top: 1.25rem; +} +.area uni-image[data-v-f1271877] { + width: 1.1875rem; + height: 1.1875rem; +} +.area .topic[data-v-f1271877] { + margin-top: 0.875rem; +} +.area .title[data-v-f1271877] { + font-size: 1rem; + color: #333333; +} +.area uni-input[data-v-f1271877] { + width: 14.75rem; + height: 3rem; + background: #F6F6F6; + border-radius: 0.5rem; + padding: 0 0.9375rem; +} +.area uni-textarea[data-v-f1271877] { + width: 14.75rem; + height: 3.25rem; + background: #F6F6F6; + border-radius: 0.5rem; + padding: 0.875rem 0.9375rem; +} +.btn[data-v-f1271877] { + position: fixed; + bottom: 0; + width: 23.4375rem; + height: 3.75rem; + background: #FFFFFF; + justify-content: center; + left: 0; +} +.btn uni-view[data-v-f1271877] { + width: 21.5625rem; + height: 2.75rem; + background: #01508B; + border-radius: 0.25rem; + font-size: 1rem; + color: #FFFFFF; + text-align: center; + line-height: 2.75rem; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/useredit/address.css b/unpackage/dist/dev/app-plus/pages/useredit/address.css new file mode 100644 index 0000000..018c839 --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/useredit/address.css @@ -0,0 +1,97 @@ + +body { + background-color: #f8f8f8; +} + +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.content[data-v-4bd9b73b] { + padding-bottom: 3.75rem; +} +.list[data-v-4bd9b73b] { + padding: 0.9375rem; +} +.list .item[data-v-4bd9b73b]:not(:first-child) { + margin-top: 0.9375rem; +} +.list .item[data-v-4bd9b73b] { + padding: 0.9375rem; + background: #FFFFFF; + box-shadow: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.5); + border-radius: 0.5rem; +} +.list .item .province[data-v-4bd9b73b] { + font-size: 0.875rem; + color: #333333; + margin-bottom: 0.3125rem; +} +.list .item .province uni-image[data-v-4bd9b73b] { + width: 1.75rem; + height: 1.125rem; + margin-left: 0.5rem; +} +.list .item .address[data-v-4bd9b73b] { + font-size: 0.75rem; + color: #666666; + padding-bottom: 0.9375rem; + border-bottom: 1px solid #EFEFEF; +} +.list .item .address uni-view[data-v-4bd9b73b] { + flex: 1; +} +.list .item .address uni-image[data-v-4bd9b73b] { + width: 0.875rem; + height: 0.9375rem; + margin-left: 0.625rem; +} +.list .item .set[data-v-4bd9b73b] { + margin-top: 0.9375rem; + font-size: 0.75rem; + color: #666666; +} +.list .item .set uni-image[data-v-4bd9b73b] { + width: 1.1875rem; + height: 1.1875rem; + margin-right: 0.375rem; +} +.btn[data-v-4bd9b73b] { + position: fixed; + bottom: 0; + width: 23.4375rem; + height: 3.75rem; + background: #FFFFFF; + justify-content: center; +} +.btn uni-view[data-v-4bd9b73b] { + width: 21.5625rem; + height: 2.75rem; + background: #01508B; + border-radius: 0.25rem; + font-size: 1rem; + color: #FFFFFF; + text-align: center; + line-height: 2.75rem; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/useredit/addressbook.css b/unpackage/dist/dev/app-plus/pages/useredit/addressbook.css new file mode 100644 index 0000000..0ff5ef9 --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/useredit/addressbook.css @@ -0,0 +1,58 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.list[data-v-c0e791d9] { + padding: 0 0.9375rem; +} +.list .item[data-v-c0e791d9] { + padding: 0.9375rem 0; + border-bottom: 1px solid #EFEFEF; +} +.list .item uni-image[data-v-c0e791d9] { + width: 3.125rem; + height: 3.125rem; + border-radius: 1.5625rem; + background-color: #EFEFEF; + margin-right: 0.9375rem; +} +.list .item .name[data-v-c0e791d9] { + font-size: 1rem; + color: #333333; +} +.list .item .job[data-v-c0e791d9] { + font-size: 0.75rem; + color: #999999; + margin-top: 0.25rem; +} +.list .item .btn[data-v-c0e791d9] { + width: 4.125rem; + height: 1.875rem; + background: #01508B; + border-radius: 0.25rem; + text-align: center; + line-height: 1.875rem; + font-size: 0.75rem; + color: #FFFFFF; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/useredit/useredit.css b/unpackage/dist/dev/app-plus/pages/useredit/useredit.css new file mode 100644 index 0000000..02d0025 --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/useredit/useredit.css @@ -0,0 +1,613 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uniui-cart-filled[data-v-d31e1c47]:before { + content: "\e6d0"; +} +.uniui-gift-filled[data-v-d31e1c47]:before { + content: "\e6c4"; +} +.uniui-color[data-v-d31e1c47]:before { + content: "\e6cf"; +} +.uniui-wallet[data-v-d31e1c47]:before { + content: "\e6b1"; +} +.uniui-settings-filled[data-v-d31e1c47]:before { + content: "\e6ce"; +} +.uniui-auth-filled[data-v-d31e1c47]:before { + content: "\e6cc"; +} +.uniui-shop-filled[data-v-d31e1c47]:before { + content: "\e6cd"; +} +.uniui-staff-filled[data-v-d31e1c47]:before { + content: "\e6cb"; +} +.uniui-vip-filled[data-v-d31e1c47]:before { + content: "\e6c6"; +} +.uniui-plus-filled[data-v-d31e1c47]:before { + content: "\e6c7"; +} +.uniui-folder-add-filled[data-v-d31e1c47]:before { + content: "\e6c8"; +} +.uniui-color-filled[data-v-d31e1c47]:before { + content: "\e6c9"; +} +.uniui-tune-filled[data-v-d31e1c47]:before { + content: "\e6ca"; +} +.uniui-calendar-filled[data-v-d31e1c47]:before { + content: "\e6c0"; +} +.uniui-notification-filled[data-v-d31e1c47]:before { + content: "\e6c1"; +} +.uniui-wallet-filled[data-v-d31e1c47]:before { + content: "\e6c2"; +} +.uniui-medal-filled[data-v-d31e1c47]:before { + content: "\e6c3"; +} +.uniui-fire-filled[data-v-d31e1c47]:before { + content: "\e6c5"; +} +.uniui-refreshempty[data-v-d31e1c47]:before { + content: "\e6bf"; +} +.uniui-location-filled[data-v-d31e1c47]:before { + content: "\e6af"; +} +.uniui-person-filled[data-v-d31e1c47]:before { + content: "\e69d"; +} +.uniui-personadd-filled[data-v-d31e1c47]:before { + content: "\e698"; +} +.uniui-arrowthinleft[data-v-d31e1c47]:before { + content: "\e6d2"; +} +.uniui-arrowthinup[data-v-d31e1c47]:before { + content: "\e6d3"; +} +.uniui-arrowthindown[data-v-d31e1c47]:before { + content: "\e6d4"; +} +.uniui-back[data-v-d31e1c47]:before { + content: "\e6b9"; +} +.uniui-forward[data-v-d31e1c47]:before { + content: "\e6ba"; +} +.uniui-arrow-right[data-v-d31e1c47]:before { + content: "\e6bb"; +} +.uniui-arrow-left[data-v-d31e1c47]:before { + content: "\e6bc"; +} +.uniui-arrow-up[data-v-d31e1c47]:before { + content: "\e6bd"; +} +.uniui-arrow-down[data-v-d31e1c47]:before { + content: "\e6be"; +} +.uniui-arrowthinright[data-v-d31e1c47]:before { + content: "\e6d1"; +} +.uniui-down[data-v-d31e1c47]:before { + content: "\e6b8"; +} +.uniui-bottom[data-v-d31e1c47]:before { + content: "\e6b8"; +} +.uniui-arrowright[data-v-d31e1c47]:before { + content: "\e6d5"; +} +.uniui-right[data-v-d31e1c47]:before { + content: "\e6b5"; +} +.uniui-up[data-v-d31e1c47]:before { + content: "\e6b6"; +} +.uniui-top[data-v-d31e1c47]:before { + content: "\e6b6"; +} +.uniui-left[data-v-d31e1c47]:before { + content: "\e6b7"; +} +.uniui-arrowup[data-v-d31e1c47]:before { + content: "\e6d6"; +} +.uniui-eye[data-v-d31e1c47]:before { + content: "\e651"; +} +.uniui-eye-filled[data-v-d31e1c47]:before { + content: "\e66a"; +} +.uniui-eye-slash[data-v-d31e1c47]:before { + content: "\e6b3"; +} +.uniui-eye-slash-filled[data-v-d31e1c47]:before { + content: "\e6b4"; +} +.uniui-info-filled[data-v-d31e1c47]:before { + content: "\e649"; +} +.uniui-reload[data-v-d31e1c47]:before { + content: "\e6b2"; +} +.uniui-micoff-filled[data-v-d31e1c47]:before { + content: "\e6b0"; +} +.uniui-map-pin-ellipse[data-v-d31e1c47]:before { + content: "\e6ac"; +} +.uniui-map-pin[data-v-d31e1c47]:before { + content: "\e6ad"; +} +.uniui-location[data-v-d31e1c47]:before { + content: "\e6ae"; +} +.uniui-starhalf[data-v-d31e1c47]:before { + content: "\e683"; +} +.uniui-star[data-v-d31e1c47]:before { + content: "\e688"; +} +.uniui-star-filled[data-v-d31e1c47]:before { + content: "\e68f"; +} +.uniui-calendar[data-v-d31e1c47]:before { + content: "\e6a0"; +} +.uniui-fire[data-v-d31e1c47]:before { + content: "\e6a1"; +} +.uniui-medal[data-v-d31e1c47]:before { + content: "\e6a2"; +} +.uniui-font[data-v-d31e1c47]:before { + content: "\e6a3"; +} +.uniui-gift[data-v-d31e1c47]:before { + content: "\e6a4"; +} +.uniui-link[data-v-d31e1c47]:before { + content: "\e6a5"; +} +.uniui-notification[data-v-d31e1c47]:before { + content: "\e6a6"; +} +.uniui-staff[data-v-d31e1c47]:before { + content: "\e6a7"; +} +.uniui-vip[data-v-d31e1c47]:before { + content: "\e6a8"; +} +.uniui-folder-add[data-v-d31e1c47]:before { + content: "\e6a9"; +} +.uniui-tune[data-v-d31e1c47]:before { + content: "\e6aa"; +} +.uniui-auth[data-v-d31e1c47]:before { + content: "\e6ab"; +} +.uniui-person[data-v-d31e1c47]:before { + content: "\e699"; +} +.uniui-email-filled[data-v-d31e1c47]:before { + content: "\e69a"; +} +.uniui-phone-filled[data-v-d31e1c47]:before { + content: "\e69b"; +} +.uniui-phone[data-v-d31e1c47]:before { + content: "\e69c"; +} +.uniui-email[data-v-d31e1c47]:before { + content: "\e69e"; +} +.uniui-personadd[data-v-d31e1c47]:before { + content: "\e69f"; +} +.uniui-chatboxes-filled[data-v-d31e1c47]:before { + content: "\e692"; +} +.uniui-contact[data-v-d31e1c47]:before { + content: "\e693"; +} +.uniui-chatbubble-filled[data-v-d31e1c47]:before { + content: "\e694"; +} +.uniui-contact-filled[data-v-d31e1c47]:before { + content: "\e695"; +} +.uniui-chatboxes[data-v-d31e1c47]:before { + content: "\e696"; +} +.uniui-chatbubble[data-v-d31e1c47]:before { + content: "\e697"; +} +.uniui-upload-filled[data-v-d31e1c47]:before { + content: "\e68e"; +} +.uniui-upload[data-v-d31e1c47]:before { + content: "\e690"; +} +.uniui-weixin[data-v-d31e1c47]:before { + content: "\e691"; +} +.uniui-compose[data-v-d31e1c47]:before { + content: "\e67f"; +} +.uniui-qq[data-v-d31e1c47]:before { + content: "\e680"; +} +.uniui-download-filled[data-v-d31e1c47]:before { + content: "\e681"; +} +.uniui-pyq[data-v-d31e1c47]:before { + content: "\e682"; +} +.uniui-sound[data-v-d31e1c47]:before { + content: "\e684"; +} +.uniui-trash-filled[data-v-d31e1c47]:before { + content: "\e685"; +} +.uniui-sound-filled[data-v-d31e1c47]:before { + content: "\e686"; +} +.uniui-trash[data-v-d31e1c47]:before { + content: "\e687"; +} +.uniui-videocam-filled[data-v-d31e1c47]:before { + content: "\e689"; +} +.uniui-spinner-cycle[data-v-d31e1c47]:before { + content: "\e68a"; +} +.uniui-weibo[data-v-d31e1c47]:before { + content: "\e68b"; +} +.uniui-videocam[data-v-d31e1c47]:before { + content: "\e68c"; +} +.uniui-download[data-v-d31e1c47]:before { + content: "\e68d"; +} +.uniui-help[data-v-d31e1c47]:before { + content: "\e679"; +} +.uniui-navigate-filled[data-v-d31e1c47]:before { + content: "\e67a"; +} +.uniui-plusempty[data-v-d31e1c47]:before { + content: "\e67b"; +} +.uniui-smallcircle[data-v-d31e1c47]:before { + content: "\e67c"; +} +.uniui-minus-filled[data-v-d31e1c47]:before { + content: "\e67d"; +} +.uniui-micoff[data-v-d31e1c47]:before { + content: "\e67e"; +} +.uniui-closeempty[data-v-d31e1c47]:before { + content: "\e66c"; +} +.uniui-clear[data-v-d31e1c47]:before { + content: "\e66d"; +} +.uniui-navigate[data-v-d31e1c47]:before { + content: "\e66e"; +} +.uniui-minus[data-v-d31e1c47]:before { + content: "\e66f"; +} +.uniui-image[data-v-d31e1c47]:before { + content: "\e670"; +} +.uniui-mic[data-v-d31e1c47]:before { + content: "\e671"; +} +.uniui-paperplane[data-v-d31e1c47]:before { + content: "\e672"; +} +.uniui-close[data-v-d31e1c47]:before { + content: "\e673"; +} +.uniui-help-filled[data-v-d31e1c47]:before { + content: "\e674"; +} +.uniui-paperplane-filled[data-v-d31e1c47]:before { + content: "\e675"; +} +.uniui-plus[data-v-d31e1c47]:before { + content: "\e676"; +} +.uniui-mic-filled[data-v-d31e1c47]:before { + content: "\e677"; +} +.uniui-image-filled[data-v-d31e1c47]:before { + content: "\e678"; +} +.uniui-locked-filled[data-v-d31e1c47]:before { + content: "\e668"; +} +.uniui-info[data-v-d31e1c47]:before { + content: "\e669"; +} +.uniui-locked[data-v-d31e1c47]:before { + content: "\e66b"; +} +.uniui-camera-filled[data-v-d31e1c47]:before { + content: "\e658"; +} +.uniui-chat-filled[data-v-d31e1c47]:before { + content: "\e659"; +} +.uniui-camera[data-v-d31e1c47]:before { + content: "\e65a"; +} +.uniui-circle[data-v-d31e1c47]:before { + content: "\e65b"; +} +.uniui-checkmarkempty[data-v-d31e1c47]:before { + content: "\e65c"; +} +.uniui-chat[data-v-d31e1c47]:before { + content: "\e65d"; +} +.uniui-circle-filled[data-v-d31e1c47]:before { + content: "\e65e"; +} +.uniui-flag[data-v-d31e1c47]:before { + content: "\e65f"; +} +.uniui-flag-filled[data-v-d31e1c47]:before { + content: "\e660"; +} +.uniui-gear-filled[data-v-d31e1c47]:before { + content: "\e661"; +} +.uniui-home[data-v-d31e1c47]:before { + content: "\e662"; +} +.uniui-home-filled[data-v-d31e1c47]:before { + content: "\e663"; +} +.uniui-gear[data-v-d31e1c47]:before { + content: "\e664"; +} +.uniui-smallcircle-filled[data-v-d31e1c47]:before { + content: "\e665"; +} +.uniui-map-filled[data-v-d31e1c47]:before { + content: "\e666"; +} +.uniui-map[data-v-d31e1c47]:before { + content: "\e667"; +} +.uniui-refresh-filled[data-v-d31e1c47]:before { + content: "\e656"; +} +.uniui-refresh[data-v-d31e1c47]:before { + content: "\e657"; +} +.uniui-cloud-upload[data-v-d31e1c47]:before { + content: "\e645"; +} +.uniui-cloud-download-filled[data-v-d31e1c47]:before { + content: "\e646"; +} +.uniui-cloud-download[data-v-d31e1c47]:before { + content: "\e647"; +} +.uniui-cloud-upload-filled[data-v-d31e1c47]:before { + content: "\e648"; +} +.uniui-redo[data-v-d31e1c47]:before { + content: "\e64a"; +} +.uniui-images-filled[data-v-d31e1c47]:before { + content: "\e64b"; +} +.uniui-undo-filled[data-v-d31e1c47]:before { + content: "\e64c"; +} +.uniui-more[data-v-d31e1c47]:before { + content: "\e64d"; +} +.uniui-more-filled[data-v-d31e1c47]:before { + content: "\e64e"; +} +.uniui-undo[data-v-d31e1c47]:before { + content: "\e64f"; +} +.uniui-images[data-v-d31e1c47]:before { + content: "\e650"; +} +.uniui-paperclip[data-v-d31e1c47]:before { + content: "\e652"; +} +.uniui-settings[data-v-d31e1c47]:before { + content: "\e653"; +} +.uniui-search[data-v-d31e1c47]:before { + content: "\e654"; +} +.uniui-redo-filled[data-v-d31e1c47]:before { + content: "\e655"; +} +.uniui-list[data-v-d31e1c47]:before { + content: "\e644"; +} +.uniui-mail-open-filled[data-v-d31e1c47]:before { + content: "\e63a"; +} +.uniui-hand-down-filled[data-v-d31e1c47]:before { + content: "\e63c"; +} +.uniui-hand-down[data-v-d31e1c47]:before { + content: "\e63d"; +} +.uniui-hand-up-filled[data-v-d31e1c47]:before { + content: "\e63e"; +} +.uniui-hand-up[data-v-d31e1c47]:before { + content: "\e63f"; +} +.uniui-heart-filled[data-v-d31e1c47]:before { + content: "\e641"; +} +.uniui-mail-open[data-v-d31e1c47]:before { + content: "\e643"; +} +.uniui-heart[data-v-d31e1c47]:before { + content: "\e639"; +} +.uniui-loop[data-v-d31e1c47]:before { + content: "\e633"; +} +.uniui-pulldown[data-v-d31e1c47]:before { + content: "\e632"; +} +.uniui-scan[data-v-d31e1c47]:before { + content: "\e62a"; +} +.uniui-bars[data-v-d31e1c47]:before { + content: "\e627"; +} +.uniui-checkbox[data-v-d31e1c47]:before { + content: "\e62b"; +} +.uniui-checkbox-filled[data-v-d31e1c47]:before { + content: "\e62c"; +} +.uniui-shop[data-v-d31e1c47]:before { + content: "\e62f"; +} +.uniui-headphones[data-v-d31e1c47]:before { + content: "\e630"; +} +.uniui-cart[data-v-d31e1c47]:before { + content: "\e631"; +} +@font-face { + font-family: uniicons; + src: url("../../assets/uniicons.32e978a5.ttf"); +} +.uni-icons[data-v-d31e1c47] { + font-family: uniicons; + text-decoration: none; + text-align: center; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.choose[data-v-503dd57f] { + font-size: 1rem; + color: #999999; +} +.choosed[data-v-503dd57f] { + font-size: 1rem; + color: #333333; +} +uni-button[data-v-503dd57f]::after { + display: none; +} +.content[data-v-503dd57f] { + padding: 0.9375rem 0.9375rem 0 0.9375rem; +} +.content .box[data-v-503dd57f]:not(:last-child) { + border-bottom: 0.03125rem solid #EFEFEF; +} +.content .box[data-v-503dd57f] { + display: flex; + align-items: center; + justify-content: space-between; + font-size: 1rem; + color: #333333; +} +.content .box uni-button[data-v-503dd57f] { + background-color: #fff; + margin: 0; + padding: 0; + border: none; +} +.content .box uni-button uni-image[data-v-503dd57f] { + width: 3.125rem; + height: 3.125rem; + border-radius: 50%; + background-color: #f8f8f8; +} +.content .box .value[data-v-503dd57f] { + color: #999999; +} +.content .out_login[data-v-503dd57f] { + color: #ED361D; + font-size: 1rem; + font-weight: bold; + margin-top: 1.875rem; + text-align: center; +} +.line[data-v-503dd57f] { + height: 0.3125rem; + background: #F8F8F8; +} +.btn[data-v-503dd57f] { + margin-top: 1.25rem; + text-align: center; + font-size: 1rem; + color: #DB4B31; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/userlist/index.css b/unpackage/dist/dev/app-plus/pages/userlist/index.css new file mode 100644 index 0000000..281e91a --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/userlist/index.css @@ -0,0 +1,1201 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uni-load-more[data-v-9245e42c] { + display: flex; + flex-direction: row; + height: 40px; + align-items: center; + justify-content: center; +} +.uni-load-more__text[data-v-9245e42c] { + font-size: 14px; + margin-left: 8px; +} +.uni-load-more__img[data-v-9245e42c] { + width: 24px; + height: 24px; +} +.uni-load-more__img--nvue[data-v-9245e42c] { + color: #666666; +} +.uni-load-more__img--android[data-v-9245e42c], +.uni-load-more__img--ios[data-v-9245e42c] { + width: 24px; + height: 24px; + transform: rotate(0deg); +} +.uni-load-more__img--android[data-v-9245e42c] { + animation: loading-ios 1s 0s linear infinite; +} +@keyframes loading-android-9245e42c { +0% { + transform: rotate(0deg); +} +100% { + transform: rotate(360deg); +} +} +.uni-load-more__img--ios-H5[data-v-9245e42c] { + position: relative; + animation: loading-ios-H5-9245e42c 1s 0s step-end infinite; +} +.uni-load-more__img--ios-H5 uni-image[data-v-9245e42c] { + position: absolute; + width: 100%; + height: 100%; + left: 0; + top: 0; +} +@keyframes loading-ios-H5-9245e42c { +0% { + transform: rotate(0deg); +} +8% { + transform: rotate(30deg); +} +16% { + transform: rotate(60deg); +} +24% { + transform: rotate(90deg); +} +32% { + transform: rotate(120deg); +} +40% { + transform: rotate(150deg); +} +48% { + transform: rotate(180deg); +} +56% { + transform: rotate(210deg); +} +64% { + transform: rotate(240deg); +} +73% { + transform: rotate(270deg); +} +82% { + transform: rotate(300deg); +} +91% { + transform: rotate(330deg); +} +100% { + transform: rotate(360deg); +} +} +.uni-load-more__img--android-MP[data-v-9245e42c] { + position: relative; + width: 24px; + height: 24px; + transform: rotate(0deg); + animation: loading-ios 1s 0s ease infinite; +} +.uni-load-more__img--android-MP .uni-load-more__img-icon[data-v-9245e42c] { + position: absolute; + box-sizing: border-box; + width: 100%; + height: 100%; + border-radius: 50%; + border: solid 2px transparent; + border-top: solid 2px #777777; + transform-origin: center; +} +.uni-load-more__img--android-MP .uni-load-more__img-icon[data-v-9245e42c]:nth-child(1) { + animation: loading-android-MP-1-9245e42c 1s 0s linear infinite; +} +.uni-load-more__img--android-MP .uni-load-more__img-icon[data-v-9245e42c]:nth-child(2) { + animation: loading-android-MP-2-9245e42c 1s 0s linear infinite; +} +.uni-load-more__img--android-MP .uni-load-more__img-icon[data-v-9245e42c]:nth-child(3) { + animation: loading-android-MP-3-9245e42c 1s 0s linear infinite; +} +@keyframes loading-android-9245e42c { +0% { + transform: rotate(0deg); +} +100% { + transform: rotate(360deg); +} +} +@keyframes loading-android-MP-1-9245e42c { +0% { + transform: rotate(0deg); +} +50% { + transform: rotate(90deg); +} +100% { + transform: rotate(360deg); +} +} +@keyframes loading-android-MP-2-9245e42c { +0% { + transform: rotate(0deg); +} +50% { + transform: rotate(180deg); +} +100% { + transform: rotate(360deg); +} +} +@keyframes loading-android-MP-3-9245e42c { +0% { + transform: rotate(0deg); +} +50% { + transform: rotate(270deg); +} +100% { + transform: rotate(360deg); +} +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uniui-cart-filled[data-v-d31e1c47]:before { + content: "\e6d0"; +} +.uniui-gift-filled[data-v-d31e1c47]:before { + content: "\e6c4"; +} +.uniui-color[data-v-d31e1c47]:before { + content: "\e6cf"; +} +.uniui-wallet[data-v-d31e1c47]:before { + content: "\e6b1"; +} +.uniui-settings-filled[data-v-d31e1c47]:before { + content: "\e6ce"; +} +.uniui-auth-filled[data-v-d31e1c47]:before { + content: "\e6cc"; +} +.uniui-shop-filled[data-v-d31e1c47]:before { + content: "\e6cd"; +} +.uniui-staff-filled[data-v-d31e1c47]:before { + content: "\e6cb"; +} +.uniui-vip-filled[data-v-d31e1c47]:before { + content: "\e6c6"; +} +.uniui-plus-filled[data-v-d31e1c47]:before { + content: "\e6c7"; +} +.uniui-folder-add-filled[data-v-d31e1c47]:before { + content: "\e6c8"; +} +.uniui-color-filled[data-v-d31e1c47]:before { + content: "\e6c9"; +} +.uniui-tune-filled[data-v-d31e1c47]:before { + content: "\e6ca"; +} +.uniui-calendar-filled[data-v-d31e1c47]:before { + content: "\e6c0"; +} +.uniui-notification-filled[data-v-d31e1c47]:before { + content: "\e6c1"; +} +.uniui-wallet-filled[data-v-d31e1c47]:before { + content: "\e6c2"; +} +.uniui-medal-filled[data-v-d31e1c47]:before { + content: "\e6c3"; +} +.uniui-fire-filled[data-v-d31e1c47]:before { + content: "\e6c5"; +} +.uniui-refreshempty[data-v-d31e1c47]:before { + content: "\e6bf"; +} +.uniui-location-filled[data-v-d31e1c47]:before { + content: "\e6af"; +} +.uniui-person-filled[data-v-d31e1c47]:before { + content: "\e69d"; +} +.uniui-personadd-filled[data-v-d31e1c47]:before { + content: "\e698"; +} +.uniui-arrowthinleft[data-v-d31e1c47]:before { + content: "\e6d2"; +} +.uniui-arrowthinup[data-v-d31e1c47]:before { + content: "\e6d3"; +} +.uniui-arrowthindown[data-v-d31e1c47]:before { + content: "\e6d4"; +} +.uniui-back[data-v-d31e1c47]:before { + content: "\e6b9"; +} +.uniui-forward[data-v-d31e1c47]:before { + content: "\e6ba"; +} +.uniui-arrow-right[data-v-d31e1c47]:before { + content: "\e6bb"; +} +.uniui-arrow-left[data-v-d31e1c47]:before { + content: "\e6bc"; +} +.uniui-arrow-up[data-v-d31e1c47]:before { + content: "\e6bd"; +} +.uniui-arrow-down[data-v-d31e1c47]:before { + content: "\e6be"; +} +.uniui-arrowthinright[data-v-d31e1c47]:before { + content: "\e6d1"; +} +.uniui-down[data-v-d31e1c47]:before { + content: "\e6b8"; +} +.uniui-bottom[data-v-d31e1c47]:before { + content: "\e6b8"; +} +.uniui-arrowright[data-v-d31e1c47]:before { + content: "\e6d5"; +} +.uniui-right[data-v-d31e1c47]:before { + content: "\e6b5"; +} +.uniui-up[data-v-d31e1c47]:before { + content: "\e6b6"; +} +.uniui-top[data-v-d31e1c47]:before { + content: "\e6b6"; +} +.uniui-left[data-v-d31e1c47]:before { + content: "\e6b7"; +} +.uniui-arrowup[data-v-d31e1c47]:before { + content: "\e6d6"; +} +.uniui-eye[data-v-d31e1c47]:before { + content: "\e651"; +} +.uniui-eye-filled[data-v-d31e1c47]:before { + content: "\e66a"; +} +.uniui-eye-slash[data-v-d31e1c47]:before { + content: "\e6b3"; +} +.uniui-eye-slash-filled[data-v-d31e1c47]:before { + content: "\e6b4"; +} +.uniui-info-filled[data-v-d31e1c47]:before { + content: "\e649"; +} +.uniui-reload[data-v-d31e1c47]:before { + content: "\e6b2"; +} +.uniui-micoff-filled[data-v-d31e1c47]:before { + content: "\e6b0"; +} +.uniui-map-pin-ellipse[data-v-d31e1c47]:before { + content: "\e6ac"; +} +.uniui-map-pin[data-v-d31e1c47]:before { + content: "\e6ad"; +} +.uniui-location[data-v-d31e1c47]:before { + content: "\e6ae"; +} +.uniui-starhalf[data-v-d31e1c47]:before { + content: "\e683"; +} +.uniui-star[data-v-d31e1c47]:before { + content: "\e688"; +} +.uniui-star-filled[data-v-d31e1c47]:before { + content: "\e68f"; +} +.uniui-calendar[data-v-d31e1c47]:before { + content: "\e6a0"; +} +.uniui-fire[data-v-d31e1c47]:before { + content: "\e6a1"; +} +.uniui-medal[data-v-d31e1c47]:before { + content: "\e6a2"; +} +.uniui-font[data-v-d31e1c47]:before { + content: "\e6a3"; +} +.uniui-gift[data-v-d31e1c47]:before { + content: "\e6a4"; +} +.uniui-link[data-v-d31e1c47]:before { + content: "\e6a5"; +} +.uniui-notification[data-v-d31e1c47]:before { + content: "\e6a6"; +} +.uniui-staff[data-v-d31e1c47]:before { + content: "\e6a7"; +} +.uniui-vip[data-v-d31e1c47]:before { + content: "\e6a8"; +} +.uniui-folder-add[data-v-d31e1c47]:before { + content: "\e6a9"; +} +.uniui-tune[data-v-d31e1c47]:before { + content: "\e6aa"; +} +.uniui-auth[data-v-d31e1c47]:before { + content: "\e6ab"; +} +.uniui-person[data-v-d31e1c47]:before { + content: "\e699"; +} +.uniui-email-filled[data-v-d31e1c47]:before { + content: "\e69a"; +} +.uniui-phone-filled[data-v-d31e1c47]:before { + content: "\e69b"; +} +.uniui-phone[data-v-d31e1c47]:before { + content: "\e69c"; +} +.uniui-email[data-v-d31e1c47]:before { + content: "\e69e"; +} +.uniui-personadd[data-v-d31e1c47]:before { + content: "\e69f"; +} +.uniui-chatboxes-filled[data-v-d31e1c47]:before { + content: "\e692"; +} +.uniui-contact[data-v-d31e1c47]:before { + content: "\e693"; +} +.uniui-chatbubble-filled[data-v-d31e1c47]:before { + content: "\e694"; +} +.uniui-contact-filled[data-v-d31e1c47]:before { + content: "\e695"; +} +.uniui-chatboxes[data-v-d31e1c47]:before { + content: "\e696"; +} +.uniui-chatbubble[data-v-d31e1c47]:before { + content: "\e697"; +} +.uniui-upload-filled[data-v-d31e1c47]:before { + content: "\e68e"; +} +.uniui-upload[data-v-d31e1c47]:before { + content: "\e690"; +} +.uniui-weixin[data-v-d31e1c47]:before { + content: "\e691"; +} +.uniui-compose[data-v-d31e1c47]:before { + content: "\e67f"; +} +.uniui-qq[data-v-d31e1c47]:before { + content: "\e680"; +} +.uniui-download-filled[data-v-d31e1c47]:before { + content: "\e681"; +} +.uniui-pyq[data-v-d31e1c47]:before { + content: "\e682"; +} +.uniui-sound[data-v-d31e1c47]:before { + content: "\e684"; +} +.uniui-trash-filled[data-v-d31e1c47]:before { + content: "\e685"; +} +.uniui-sound-filled[data-v-d31e1c47]:before { + content: "\e686"; +} +.uniui-trash[data-v-d31e1c47]:before { + content: "\e687"; +} +.uniui-videocam-filled[data-v-d31e1c47]:before { + content: "\e689"; +} +.uniui-spinner-cycle[data-v-d31e1c47]:before { + content: "\e68a"; +} +.uniui-weibo[data-v-d31e1c47]:before { + content: "\e68b"; +} +.uniui-videocam[data-v-d31e1c47]:before { + content: "\e68c"; +} +.uniui-download[data-v-d31e1c47]:before { + content: "\e68d"; +} +.uniui-help[data-v-d31e1c47]:before { + content: "\e679"; +} +.uniui-navigate-filled[data-v-d31e1c47]:before { + content: "\e67a"; +} +.uniui-plusempty[data-v-d31e1c47]:before { + content: "\e67b"; +} +.uniui-smallcircle[data-v-d31e1c47]:before { + content: "\e67c"; +} +.uniui-minus-filled[data-v-d31e1c47]:before { + content: "\e67d"; +} +.uniui-micoff[data-v-d31e1c47]:before { + content: "\e67e"; +} +.uniui-closeempty[data-v-d31e1c47]:before { + content: "\e66c"; +} +.uniui-clear[data-v-d31e1c47]:before { + content: "\e66d"; +} +.uniui-navigate[data-v-d31e1c47]:before { + content: "\e66e"; +} +.uniui-minus[data-v-d31e1c47]:before { + content: "\e66f"; +} +.uniui-image[data-v-d31e1c47]:before { + content: "\e670"; +} +.uniui-mic[data-v-d31e1c47]:before { + content: "\e671"; +} +.uniui-paperplane[data-v-d31e1c47]:before { + content: "\e672"; +} +.uniui-close[data-v-d31e1c47]:before { + content: "\e673"; +} +.uniui-help-filled[data-v-d31e1c47]:before { + content: "\e674"; +} +.uniui-paperplane-filled[data-v-d31e1c47]:before { + content: "\e675"; +} +.uniui-plus[data-v-d31e1c47]:before { + content: "\e676"; +} +.uniui-mic-filled[data-v-d31e1c47]:before { + content: "\e677"; +} +.uniui-image-filled[data-v-d31e1c47]:before { + content: "\e678"; +} +.uniui-locked-filled[data-v-d31e1c47]:before { + content: "\e668"; +} +.uniui-info[data-v-d31e1c47]:before { + content: "\e669"; +} +.uniui-locked[data-v-d31e1c47]:before { + content: "\e66b"; +} +.uniui-camera-filled[data-v-d31e1c47]:before { + content: "\e658"; +} +.uniui-chat-filled[data-v-d31e1c47]:before { + content: "\e659"; +} +.uniui-camera[data-v-d31e1c47]:before { + content: "\e65a"; +} +.uniui-circle[data-v-d31e1c47]:before { + content: "\e65b"; +} +.uniui-checkmarkempty[data-v-d31e1c47]:before { + content: "\e65c"; +} +.uniui-chat[data-v-d31e1c47]:before { + content: "\e65d"; +} +.uniui-circle-filled[data-v-d31e1c47]:before { + content: "\e65e"; +} +.uniui-flag[data-v-d31e1c47]:before { + content: "\e65f"; +} +.uniui-flag-filled[data-v-d31e1c47]:before { + content: "\e660"; +} +.uniui-gear-filled[data-v-d31e1c47]:before { + content: "\e661"; +} +.uniui-home[data-v-d31e1c47]:before { + content: "\e662"; +} +.uniui-home-filled[data-v-d31e1c47]:before { + content: "\e663"; +} +.uniui-gear[data-v-d31e1c47]:before { + content: "\e664"; +} +.uniui-smallcircle-filled[data-v-d31e1c47]:before { + content: "\e665"; +} +.uniui-map-filled[data-v-d31e1c47]:before { + content: "\e666"; +} +.uniui-map[data-v-d31e1c47]:before { + content: "\e667"; +} +.uniui-refresh-filled[data-v-d31e1c47]:before { + content: "\e656"; +} +.uniui-refresh[data-v-d31e1c47]:before { + content: "\e657"; +} +.uniui-cloud-upload[data-v-d31e1c47]:before { + content: "\e645"; +} +.uniui-cloud-download-filled[data-v-d31e1c47]:before { + content: "\e646"; +} +.uniui-cloud-download[data-v-d31e1c47]:before { + content: "\e647"; +} +.uniui-cloud-upload-filled[data-v-d31e1c47]:before { + content: "\e648"; +} +.uniui-redo[data-v-d31e1c47]:before { + content: "\e64a"; +} +.uniui-images-filled[data-v-d31e1c47]:before { + content: "\e64b"; +} +.uniui-undo-filled[data-v-d31e1c47]:before { + content: "\e64c"; +} +.uniui-more[data-v-d31e1c47]:before { + content: "\e64d"; +} +.uniui-more-filled[data-v-d31e1c47]:before { + content: "\e64e"; +} +.uniui-undo[data-v-d31e1c47]:before { + content: "\e64f"; +} +.uniui-images[data-v-d31e1c47]:before { + content: "\e650"; +} +.uniui-paperclip[data-v-d31e1c47]:before { + content: "\e652"; +} +.uniui-settings[data-v-d31e1c47]:before { + content: "\e653"; +} +.uniui-search[data-v-d31e1c47]:before { + content: "\e654"; +} +.uniui-redo-filled[data-v-d31e1c47]:before { + content: "\e655"; +} +.uniui-list[data-v-d31e1c47]:before { + content: "\e644"; +} +.uniui-mail-open-filled[data-v-d31e1c47]:before { + content: "\e63a"; +} +.uniui-hand-down-filled[data-v-d31e1c47]:before { + content: "\e63c"; +} +.uniui-hand-down[data-v-d31e1c47]:before { + content: "\e63d"; +} +.uniui-hand-up-filled[data-v-d31e1c47]:before { + content: "\e63e"; +} +.uniui-hand-up[data-v-d31e1c47]:before { + content: "\e63f"; +} +.uniui-heart-filled[data-v-d31e1c47]:before { + content: "\e641"; +} +.uniui-mail-open[data-v-d31e1c47]:before { + content: "\e643"; +} +.uniui-heart[data-v-d31e1c47]:before { + content: "\e639"; +} +.uniui-loop[data-v-d31e1c47]:before { + content: "\e633"; +} +.uniui-pulldown[data-v-d31e1c47]:before { + content: "\e632"; +} +.uniui-scan[data-v-d31e1c47]:before { + content: "\e62a"; +} +.uniui-bars[data-v-d31e1c47]:before { + content: "\e627"; +} +.uniui-checkbox[data-v-d31e1c47]:before { + content: "\e62b"; +} +.uniui-checkbox-filled[data-v-d31e1c47]:before { + content: "\e62c"; +} +.uniui-shop[data-v-d31e1c47]:before { + content: "\e62f"; +} +.uniui-headphones[data-v-d31e1c47]:before { + content: "\e630"; +} +.uniui-cart[data-v-d31e1c47]:before { + content: "\e631"; +} +@font-face { + font-family: uniicons; + src: url("../../assets/uniicons.32e978a5.ttf"); +} +.uni-icons[data-v-d31e1c47] { + font-family: uniicons; + text-decoration: none; + text-align: center; +} +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.uni-data-pickerview[data-v-91ec6a82] { + flex: 1; + display: flex; + flex-direction: column; + overflow: hidden; + height: 100%; +} +.error-text[data-v-91ec6a82] { + color: #DD524D; +} +.loading-cover[data-v-91ec6a82] { + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + background-color: rgba(255, 255, 255, 0.5); + display: flex; + flex-direction: column; + align-items: center; + z-index: 1001; +} +.load-more[data-v-91ec6a82] { + margin: auto; +} +.error-message[data-v-91ec6a82] { + background-color: #fff; + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + padding: 15px; + opacity: 0.9; + z-index: 102; +} +.selected-list[data-v-91ec6a82] { + display: flex; + flex-wrap: nowrap; + flex-direction: row; + padding: 0 5px; + border-bottom: 1px solid #f8f8f8; +} +.selected-item[data-v-91ec6a82] { + margin-left: 10px; + margin-right: 10px; + padding: 12px 0; + text-align: center; + white-space: nowrap; +} +.selected-item-text-overflow[data-v-91ec6a82] { + width: 168px; + /* fix nvue */ + overflow: hidden; + width: 6em; + white-space: nowrap; + text-overflow: ellipsis; + -o-text-overflow: ellipsis; +} +.selected-item-active[data-v-91ec6a82] { + border-bottom: 2px solid #007aff; +} +.selected-item-text[data-v-91ec6a82] { + color: #007aff; +} +.tab-c[data-v-91ec6a82] { + position: relative; + flex: 1; + display: flex; + flex-direction: row; + overflow: hidden; +} +.list[data-v-91ec6a82] { + flex: 1; +} +.item[data-v-91ec6a82] { + padding: 12px 15px; + /* border-bottom: 1px solid #f0f0f0; */ + display: flex; + flex-direction: row; + justify-content: space-between; +} +.is-disabled[data-v-91ec6a82] { + opacity: 0.5; +} +.item-text[data-v-91ec6a82] { + /* flex: 1; */ + color: #333333; +} +.item-text-overflow[data-v-91ec6a82] { + width: 280px; + /* fix nvue */ + overflow: hidden; + width: 20em; + white-space: nowrap; + text-overflow: ellipsis; + -o-text-overflow: ellipsis; +} +.check[data-v-91ec6a82] { + margin-right: 5px; + border: 2px solid #007aff; + border-left: 0; + border-top: 0; + height: 12px; + width: 6px; + transform-origin: center; + transition: all 0.3s; + transform: rotate(45deg); +} + +.uni-data-tree[data-v-2653531e] { + flex: 1; + position: relative; + font-size: 14px; +} +.error-text[data-v-2653531e] { + color: #DD524D; +} +.input-value[data-v-2653531e] { + + display: flex; + + flex-direction: row; + align-items: center; + flex-wrap: nowrap; + font-size: 14px; + /* line-height: 35px; */ + padding: 0 10px; + padding-right: 5px; + overflow: hidden; + /* height: 35px; */ + + box-sizing: border-box; + + padding: 0.625rem 10px; +} +.input-value-border[data-v-2653531e] { + border: 1px solid #e5e5e5; + border-radius: 5px; +} +.selected-area[data-v-2653531e] { + flex: 1; + overflow: hidden; + + display: flex; + + flex-direction: row; +} +.load-more[data-v-2653531e] { + + margin-right: auto; +} +.selected-list[data-v-2653531e] { + + display: flex; + + flex-direction: row; + flex-wrap: nowrap; + /* padding: 0 5px; */ +} +.selected-item[data-v-2653531e] { + flex-direction: row; + /* padding: 0 1px; */ + + white-space: nowrap; +} +.text-color[data-v-2653531e] { + color: #333; +} +.placeholder[data-v-2653531e] { + color: grey; + font-size: 0.875rem; +} +.input-split-line[data-v-2653531e] { + opacity: .5; +} +.arrow-area[data-v-2653531e] { + position: relative; + width: 20px; + + margin-bottom: 5px; + margin-left: auto; + display: flex; + + justify-content: center; + transform: rotate(-45deg); + transform-origin: center; +} +.input-arrow[data-v-2653531e] { + width: 7px; + height: 7px; + border-left: 1px solid #999; + border-bottom: 1px solid #999; +} +.uni-data-tree-cover[data-v-2653531e] { + position: fixed; + left: 0; + top: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, .4); + + display: flex; + + flex-direction: column; + z-index: 100; +} +.uni-data-tree-dialog[data-v-2653531e] { + position: fixed; + left: 0; + + top: 20%; + + + + + right: 0; + bottom: 0; + background-color: #FFFFFF; + border-top-left-radius: 10px; + border-top-right-radius: 10px; + + display: flex; + + flex-direction: column; + z-index: 102; + overflow: hidden; +} +.dialog-caption[data-v-2653531e] { + position: relative; + + display: flex; + + flex-direction: row; + /* border-bottom: 1px solid #f0f0f0; */ +} +.title-area[data-v-2653531e] { + + display: flex; + + align-items: center; + + margin: auto; + + padding: 0 10px; +} +.dialog-title[data-v-2653531e] { + /* font-weight: bold; */ + line-height: 44px; +} +.dialog-close[data-v-2653531e] { + position: absolute; + top: 0; + right: 0; + bottom: 0; + + display: flex; + + flex-direction: row; + align-items: center; + padding: 0 15px; +} +.dialog-close-plus[data-v-2653531e] { + width: 16px; + height: 2px; + background-color: #666; + border-radius: 2px; + transform: rotate(45deg); +} +.dialog-close-rotate[data-v-2653531e] { + position: absolute; + transform: rotate(-45deg); +} +.picker-view[data-v-2653531e] { + flex: 1; + overflow: hidden; +} +.icon-clear[data-v-2653531e] { + display: flex; + align-items: center; +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + /* picker 弹出层通用的指示小三角, todo:扩展至上下左右方向定位 */ +.uni-popper__arrow[data-v-2653531e], + .uni-popper__arrow[data-v-2653531e]::after { + position: absolute; + display: block; + width: 0; + height: 0; + border-color: transparent; + border-style: solid; + border-width: 6px; +} +.uni-popper__arrow[data-v-2653531e] { + filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.03)); + top: -6px; + left: 10%; + margin-right: 3px; + border-top-width: 0; + border-bottom-color: #EBEEF5; +} +.uni-popper__arrow[data-v-2653531e]::after { + content: " "; + top: 1px; + margin-left: -6px; + border-top-width: 0; + border-bottom-color: #fff; +} + + + +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.content[data-v-89e61cf9] { + padding-bottom: 4.0625rem; +} +.confirm[data-v-89e61cf9] { + position: fixed; + bottom: 0; + left: 50%; + transform: translateX(-50%); + background-color: #fff; + border-top: 1px solid #efefef; + width: 100%; + padding: 0.625rem 0; +} +.confirm uni-view[data-v-89e61cf9] { + width: 19.6875rem; + height: 2.75rem; + background: #01508B; + border-radius: 1.375rem; + font-size: 1rem; + color: #FFFFFF; + text-align: center; + line-height: 2.75rem; +} +.search_box[data-v-89e61cf9] { + font-size: 0.875rem; +} +.search_box .username[data-v-89e61cf9] { + padding: 0 0.625rem; + border-bottom: 1px solid #e5e5e5; + height: 3.125rem; +} +.search_box .username uni-input[data-v-89e61cf9] { + flex: 1; + height: 100%; +} +.search_box .btn[data-v-89e61cf9] { + color: #fff; + padding: 0.625rem 0; +} +.search_box .btn uni-view[data-v-89e61cf9] { + width: 5.5625rem; + height: 2.5rem; + background-color: #01508B; + border-radius: 1.25rem; + justify-content: center; +} +.list[data-v-89e61cf9] { + word-break: break-all; + font-size: 0.875rem; + color: #333333; +} +.list .box uni-view[data-v-89e61cf9]:first-child { + flex: 0.3; +} +.list .box uni-view[data-v-89e61cf9]:nth-child(2) { + flex: 0.3; +} +.list .box uni-view[data-v-89e61cf9]:nth-child(3) { + flex: 1; +} +.list .box uni-view[data-v-89e61cf9]:nth-child(4) { + flex: 1; +} +.list .title[data-v-89e61cf9] { + text-align: center; + border-bottom: 1px solid #e5e5e5; + background-color: #f8f8f8; + height: 3.125rem; +} +.list .item[data-v-89e61cf9] { + text-align: center; + border-bottom: 1px solid #e5e5e5; +} +.list .item .order[data-v-89e61cf9] { + border-right: 1px solid #e5e5e5; + height: 3.125rem; + line-height: 3.125rem; +} +.list .item .username[data-v-89e61cf9] { + border-right: 1px solid #e5e5e5; + height: 3.125rem; + justify-content: center; + overflow-y: auto; +} +.list .item .realname[data-v-89e61cf9] { + height: 3.125rem; + line-height: 3.125rem; + overflow-y: auto; + justify-content: center; +} +.list .item .img[data-v-89e61cf9] { + border-right: 1px solid #e5e5e5; + height: 3.125rem; + justify-content: center; +} +.list .item uni-image[data-v-89e61cf9] { + width: 1.25rem; + height: 1.25rem; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/pages/zhiban/index.css b/unpackage/dist/dev/app-plus/pages/zhiban/index.css new file mode 100644 index 0000000..1c85808 --- /dev/null +++ b/unpackage/dist/dev/app-plus/pages/zhiban/index.css @@ -0,0 +1,58 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ +/* 颜色变量 */ +/* 行为相关颜色 */ +/* 文字基本颜色 */ +/* 背景颜色 */ +/* 边框颜色 */ +/* 尺寸变量 */ +/* 文字尺寸 */ +/* 图片尺寸 */ +/* Border Radius */ +/* 水平间距 */ +/* 垂直间距 */ +/* 透明度 */ +/* 文章场景相关 */ +.date[data-v-54a2fc4a] { + width: 21.5625rem; + padding: 0.625rem 0.9375rem 0 0.9375rem; + font-size: 0.875rem; + color: #333333; +} +.info[data-v-54a2fc4a] { + background: #F8F8F8; + border-radius: 0.25rem; + text-align: center; + width: 21.5625rem; + margin-top: 0.71875rem; +} +.info .info_title[data-v-54a2fc4a] { + font-size: 0.75rem; + color: #333333; + padding: 0.75rem 0; + border-bottom: 1px solid #EFEFEF; +} +.info .info_title uni-view[data-v-54a2fc4a] { + flex: 1; +} +.info .data_box[data-v-54a2fc4a] { + font-size: 0.75rem; + padding-bottom: 0.75rem; + color: #888888; +} +.info .data_box .data[data-v-54a2fc4a] { + margin-top: 0.71875rem; +} +.info .data_box .data uni-view[data-v-54a2fc4a] { + flex: 1; +} \ No newline at end of file diff --git a/unpackage/dist/dev/app-plus/static/checkin/chenggong.png b/unpackage/dist/dev/app-plus/static/checkin/chenggong.png new file mode 100644 index 0000000..dec1b3a Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/checkin/chenggong.png differ diff --git a/unpackage/dist/dev/app-plus/static/checkin/circle1.png b/unpackage/dist/dev/app-plus/static/checkin/circle1.png new file mode 100644 index 0000000..dc453c6 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/checkin/circle1.png differ diff --git a/unpackage/dist/dev/app-plus/static/checkin/circle2.png b/unpackage/dist/dev/app-plus/static/checkin/circle2.png new file mode 100644 index 0000000..3c0c545 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/checkin/circle2.png differ diff --git a/unpackage/dist/dev/app-plus/static/checkin/circle3.png b/unpackage/dist/dev/app-plus/static/checkin/circle3.png new file mode 100644 index 0000000..0bcf628 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/checkin/circle3.png differ diff --git a/unpackage/dist/dev/app-plus/static/checkin/circle4.png b/unpackage/dist/dev/app-plus/static/checkin/circle4.png new file mode 100644 index 0000000..217260d Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/checkin/circle4.png differ diff --git a/unpackage/dist/dev/app-plus/static/checkin/position1.png b/unpackage/dist/dev/app-plus/static/checkin/position1.png new file mode 100644 index 0000000..db18cc3 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/checkin/position1.png differ diff --git a/unpackage/dist/dev/app-plus/static/checkin/position2.png b/unpackage/dist/dev/app-plus/static/checkin/position2.png new file mode 100644 index 0000000..9c06896 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/checkin/position2.png differ diff --git a/unpackage/dist/dev/app-plus/static/checkin/position3.png b/unpackage/dist/dev/app-plus/static/checkin/position3.png new file mode 100644 index 0000000..6208aca Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/checkin/position3.png differ diff --git a/unpackage/dist/dev/app-plus/static/checkin/position4.png b/unpackage/dist/dev/app-plus/static/checkin/position4.png new file mode 100644 index 0000000..1df86fd Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/checkin/position4.png differ diff --git a/unpackage/dist/dev/app-plus/static/checkin/shibai.png b/unpackage/dist/dev/app-plus/static/checkin/shibai.png new file mode 100644 index 0000000..8862ce5 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/checkin/shibai.png differ diff --git a/unpackage/dist/dev/app-plus/static/index/back.png b/unpackage/dist/dev/app-plus/static/index/back.png new file mode 100644 index 0000000..ed35f33 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/index/back.png differ diff --git a/unpackage/dist/dev/app-plus/static/index/calendar.png b/unpackage/dist/dev/app-plus/static/index/calendar.png new file mode 100644 index 0000000..990d0de Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/index/calendar.png differ diff --git a/unpackage/dist/dev/app-plus/static/index/eye.png b/unpackage/dist/dev/app-plus/static/index/eye.png new file mode 100644 index 0000000..505705a Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/index/eye.png differ diff --git a/unpackage/dist/dev/app-plus/static/index/line.png b/unpackage/dist/dev/app-plus/static/index/line.png new file mode 100644 index 0000000..a7e9749 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/index/line.png differ diff --git a/unpackage/dist/dev/app-plus/static/index/menu.png b/unpackage/dist/dev/app-plus/static/index/menu.png new file mode 100644 index 0000000..a0b1184 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/index/menu.png differ diff --git a/unpackage/dist/dev/app-plus/static/index/position.png b/unpackage/dist/dev/app-plus/static/index/position.png new file mode 100644 index 0000000..14ee508 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/index/position.png differ diff --git a/unpackage/dist/dev/app-plus/static/index/rili.png b/unpackage/dist/dev/app-plus/static/index/rili.png new file mode 100644 index 0000000..c0c893d Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/index/rili.png differ diff --git a/unpackage/dist/dev/app-plus/static/line.png b/unpackage/dist/dev/app-plus/static/line.png new file mode 100644 index 0000000..46258ab Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/line.png differ diff --git a/unpackage/dist/dev/app-plus/static/login/checked.png b/unpackage/dist/dev/app-plus/static/login/checked.png new file mode 100644 index 0000000..a145806 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/login/checked.png differ diff --git a/unpackage/dist/dev/app-plus/static/login/eye-off.png b/unpackage/dist/dev/app-plus/static/login/eye-off.png new file mode 100644 index 0000000..45b5100 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/login/eye-off.png differ diff --git a/unpackage/dist/dev/app-plus/static/login/eye.png b/unpackage/dist/dev/app-plus/static/login/eye.png new file mode 100644 index 0000000..6b4c16a Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/login/eye.png differ diff --git a/unpackage/dist/dev/app-plus/static/login/logo.png b/unpackage/dist/dev/app-plus/static/login/logo.png new file mode 100644 index 0000000..84b9aeb Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/login/logo.png differ diff --git a/unpackage/dist/dev/app-plus/static/login/nocheck.png b/unpackage/dist/dev/app-plus/static/login/nocheck.png new file mode 100644 index 0000000..71e3663 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/login/nocheck.png differ diff --git a/unpackage/dist/dev/app-plus/static/login/phone.png b/unpackage/dist/dev/app-plus/static/login/phone.png new file mode 100644 index 0000000..3093700 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/login/phone.png differ diff --git a/unpackage/dist/dev/app-plus/static/login/pwd.png b/unpackage/dist/dev/app-plus/static/login/pwd.png new file mode 100644 index 0000000..51a728a Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/login/pwd.png differ diff --git a/unpackage/dist/dev/app-plus/static/my/bg1.png b/unpackage/dist/dev/app-plus/static/my/bg1.png new file mode 100644 index 0000000..ed123b7 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/my/bg1.png differ diff --git a/unpackage/dist/dev/app-plus/static/my/biao.png b/unpackage/dist/dev/app-plus/static/my/biao.png new file mode 100644 index 0000000..f557bc2 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/my/biao.png differ diff --git a/unpackage/dist/dev/app-plus/static/my/close.png b/unpackage/dist/dev/app-plus/static/my/close.png new file mode 100644 index 0000000..ef461c0 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/my/close.png differ diff --git a/unpackage/dist/dev/app-plus/static/my/default.png b/unpackage/dist/dev/app-plus/static/my/default.png new file mode 100644 index 0000000..bd645e8 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/my/default.png differ diff --git a/unpackage/dist/dev/app-plus/static/my/dingwei.png b/unpackage/dist/dev/app-plus/static/my/dingwei.png new file mode 100644 index 0000000..906afdb Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/my/dingwei.png differ diff --git a/unpackage/dist/dev/app-plus/static/my/done.png b/unpackage/dist/dev/app-plus/static/my/done.png new file mode 100644 index 0000000..0fd2e3e Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/my/done.png differ diff --git a/unpackage/dist/dev/app-plus/static/my/edit.png b/unpackage/dist/dev/app-plus/static/my/edit.png new file mode 100644 index 0000000..4944e32 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/my/edit.png differ diff --git a/unpackage/dist/dev/app-plus/static/my/navbg.png b/unpackage/dist/dev/app-plus/static/my/navbg.png new file mode 100644 index 0000000..794136b Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/my/navbg.png differ diff --git a/unpackage/dist/dev/app-plus/static/my/num.png b/unpackage/dist/dev/app-plus/static/my/num.png new file mode 100644 index 0000000..fddf20a Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/my/num.png differ diff --git a/unpackage/dist/dev/app-plus/static/my/open.png b/unpackage/dist/dev/app-plus/static/my/open.png new file mode 100644 index 0000000..df2c326 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/my/open.png differ diff --git a/unpackage/dist/dev/app-plus/static/my/process.png b/unpackage/dist/dev/app-plus/static/my/process.png new file mode 100644 index 0000000..d288cde Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/my/process.png differ diff --git a/unpackage/dist/dev/app-plus/static/my/self.png b/unpackage/dist/dev/app-plus/static/my/self.png new file mode 100644 index 0000000..c44396e Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/my/self.png differ diff --git a/unpackage/dist/dev/app-plus/static/my/shengji.png b/unpackage/dist/dev/app-plus/static/my/shengji.png new file mode 100644 index 0000000..0170ce6 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/my/shengji.png differ diff --git a/unpackage/dist/dev/app-plus/static/my/shezhi.png b/unpackage/dist/dev/app-plus/static/my/shezhi.png new file mode 100644 index 0000000..f667315 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/my/shezhi.png differ diff --git a/unpackage/dist/dev/app-plus/static/my/xiaoxi.png b/unpackage/dist/dev/app-plus/static/my/xiaoxi.png new file mode 100644 index 0000000..74fcbe9 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/my/xiaoxi.png differ diff --git a/unpackage/dist/dev/app-plus/static/office/absence.png b/unpackage/dist/dev/app-plus/static/office/absence.png new file mode 100644 index 0000000..b8e5686 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/office/absence.png differ diff --git a/unpackage/dist/dev/app-plus/static/office/baoxiao.png b/unpackage/dist/dev/app-plus/static/office/baoxiao.png new file mode 100644 index 0000000..3241a12 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/office/baoxiao.png differ diff --git a/unpackage/dist/dev/app-plus/static/office/daka.png b/unpackage/dist/dev/app-plus/static/office/daka.png new file mode 100644 index 0000000..97e478c Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/office/daka.png differ diff --git a/unpackage/dist/dev/app-plus/static/office/duty.png b/unpackage/dist/dev/app-plus/static/office/duty.png new file mode 100644 index 0000000..bf1c7a0 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/office/duty.png differ diff --git a/unpackage/dist/dev/app-plus/static/office/feiyong.png b/unpackage/dist/dev/app-plus/static/office/feiyong.png new file mode 100644 index 0000000..96318b3 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/office/feiyong.png differ diff --git a/unpackage/dist/dev/app-plus/static/office/gonggao.png b/unpackage/dist/dev/app-plus/static/office/gonggao.png new file mode 100644 index 0000000..73f43d8 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/office/gonggao.png differ diff --git a/unpackage/dist/dev/app-plus/static/office/gongtuan.png b/unpackage/dist/dev/app-plus/static/office/gongtuan.png new file mode 100644 index 0000000..1afccb4 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/office/gongtuan.png differ diff --git a/unpackage/dist/dev/app-plus/static/office/gongwen.png b/unpackage/dist/dev/app-plus/static/office/gongwen.png new file mode 100644 index 0000000..fdabc20 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/office/gongwen.png differ diff --git a/unpackage/dist/dev/app-plus/static/office/huiyi.png b/unpackage/dist/dev/app-plus/static/office/huiyi.png new file mode 100644 index 0000000..329c447 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/office/huiyi.png differ diff --git a/unpackage/dist/dev/app-plus/static/office/jiankang.png b/unpackage/dist/dev/app-plus/static/office/jiankang.png new file mode 100644 index 0000000..74cfe39 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/office/jiankang.png differ diff --git a/unpackage/dist/dev/app-plus/static/office/jiedai.png b/unpackage/dist/dev/app-plus/static/office/jiedai.png new file mode 100644 index 0000000..3ba894c Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/office/jiedai.png differ diff --git a/unpackage/dist/dev/app-plus/static/office/process.png b/unpackage/dist/dev/app-plus/static/office/process.png new file mode 100644 index 0000000..d288cde Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/office/process.png differ diff --git a/unpackage/dist/dev/app-plus/static/office/task.png b/unpackage/dist/dev/app-plus/static/office/task.png new file mode 100644 index 0000000..d2110dc Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/office/task.png differ diff --git a/unpackage/dist/dev/app-plus/static/office/tongxun.png b/unpackage/dist/dev/app-plus/static/office/tongxun.png new file mode 100644 index 0000000..c41d35f Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/office/tongxun.png differ diff --git a/unpackage/dist/dev/app-plus/static/search.png b/unpackage/dist/dev/app-plus/static/search.png new file mode 100644 index 0000000..6a0019e Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/search.png differ diff --git a/unpackage/dist/dev/app-plus/static/system.png b/unpackage/dist/dev/app-plus/static/system.png new file mode 100644 index 0000000..82a38b5 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/system.png differ diff --git a/unpackage/dist/dev/app-plus/static/tab/anquan.png b/unpackage/dist/dev/app-plus/static/tab/anquan.png new file mode 100644 index 0000000..54ed8d4 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/tab/anquan.png differ diff --git a/unpackage/dist/dev/app-plus/static/tab/cheliang.png b/unpackage/dist/dev/app-plus/static/tab/cheliang.png new file mode 100644 index 0000000..ba753f7 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/tab/cheliang.png differ diff --git a/unpackage/dist/dev/app-plus/static/tab/index1.png b/unpackage/dist/dev/app-plus/static/tab/index1.png new file mode 100644 index 0000000..21b7822 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/tab/index1.png differ diff --git a/unpackage/dist/dev/app-plus/static/tab/index2.png b/unpackage/dist/dev/app-plus/static/tab/index2.png new file mode 100644 index 0000000..1aa67d5 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/tab/index2.png differ diff --git a/unpackage/dist/dev/app-plus/static/tab/office1.png b/unpackage/dist/dev/app-plus/static/tab/office1.png new file mode 100644 index 0000000..3886126 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/tab/office1.png differ diff --git a/unpackage/dist/dev/app-plus/static/tab/office2.png b/unpackage/dist/dev/app-plus/static/tab/office2.png new file mode 100644 index 0000000..7179f1b Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/tab/office2.png differ diff --git a/unpackage/dist/dev/app-plus/static/tab/product.png b/unpackage/dist/dev/app-plus/static/tab/product.png new file mode 100644 index 0000000..7272719 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/tab/product.png differ diff --git a/unpackage/dist/dev/app-plus/static/tab/product1.png b/unpackage/dist/dev/app-plus/static/tab/product1.png new file mode 100644 index 0000000..f52b601 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/tab/product1.png differ diff --git a/unpackage/dist/dev/app-plus/static/tab/product2.png b/unpackage/dist/dev/app-plus/static/tab/product2.png new file mode 100644 index 0000000..53fcfd3 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/tab/product2.png differ diff --git a/unpackage/dist/dev/app-plus/static/tab/scan.png b/unpackage/dist/dev/app-plus/static/tab/scan.png new file mode 100644 index 0000000..af318ad Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/tab/scan.png differ diff --git a/unpackage/dist/dev/app-plus/static/tab/shenpi.png b/unpackage/dist/dev/app-plus/static/tab/shenpi.png new file mode 100644 index 0000000..b1910dd Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/tab/shenpi.png differ diff --git a/unpackage/dist/dev/app-plus/static/tab/taizhang.png b/unpackage/dist/dev/app-plus/static/tab/taizhang.png new file mode 100644 index 0000000..5e1cd56 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/tab/taizhang.png differ diff --git a/unpackage/dist/dev/app-plus/static/tab/todo.png b/unpackage/dist/dev/app-plus/static/tab/todo.png new file mode 100644 index 0000000..1a24984 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/tab/todo.png differ diff --git a/unpackage/dist/dev/app-plus/static/tab/user1.png b/unpackage/dist/dev/app-plus/static/tab/user1.png new file mode 100644 index 0000000..a080253 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/tab/user1.png differ diff --git a/unpackage/dist/dev/app-plus/static/tab/user2.png b/unpackage/dist/dev/app-plus/static/tab/user2.png new file mode 100644 index 0000000..f8bd8b0 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/tab/user2.png differ diff --git a/unpackage/dist/dev/app-plus/static/tab/yunshu.png b/unpackage/dist/dev/app-plus/static/tab/yunshu.png new file mode 100644 index 0000000..da449f2 Binary files /dev/null and b/unpackage/dist/dev/app-plus/static/tab/yunshu.png differ diff --git a/unpackage/dist/dev/app-plus/uni-app-view.umd.js b/unpackage/dist/dev/app-plus/uni-app-view.umd.js new file mode 100644 index 0000000..2d71e6e --- /dev/null +++ b/unpackage/dist/dev/app-plus/uni-app-view.umd.js @@ -0,0 +1,7 @@ +!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t={exports:{}},n={exports:{}},r={exports:{}},i=r.exports={version:"2.6.12"};"number"==typeof __e&&(__e=i);var a=r.exports,o={exports:{}},s=o.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=s);var l=o.exports,u=a,c=l,d="__core-js_shared__",h=c[d]||(c[d]={});(n.exports=function(e,t){return h[e]||(h[e]=void 0!==t?t:{})})("versions",[]).push({version:u.version,mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"});var f=n.exports,p=0,v=Math.random(),g=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++p+v).toString(36))},m=f("wks"),_=g,y=l.Symbol,b="function"==typeof y;(t.exports=function(e){return m[e]||(m[e]=b&&y[e]||(b?y:_)("Symbol."+e))}).store=m;var w,x,S=t.exports,k={},T=function(e){return"object"==typeof e?null!==e:"function"==typeof e},E=T,C=function(e){if(!E(e))throw TypeError(e+" is not an object!");return e},O=function(e){try{return!!e()}catch(t){return!0}},M=!O((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}));function L(){if(x)return w;x=1;var e=T,t=l.document,n=e(t)&&e(t.createElement);return w=function(e){return n?t.createElement(e):{}}}var I=!M&&!O((function(){return 7!=Object.defineProperty(L()("div"),"a",{get:function(){return 7}}).a})),A=T,B=C,N=I,R=function(e,t){if(!A(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!A(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!A(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!A(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},P=Object.defineProperty;k.f=M?Object.defineProperty:function(e,t,n){if(B(e),t=R(t,!0),B(n),N)try{return P(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e};var D=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},z=k,F=D,$=M?function(e,t,n){return z.f(e,t,F(1,n))}:function(e,t,n){return e[t]=n,e},j=S("unscopables"),V=Array.prototype;null==V[j]&&$(V,j,{});var W={},U={}.toString,H=function(e){return U.call(e).slice(8,-1)},q=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},Y=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==H(e)?e.split(""):Object(e)},X=q,Z=function(e){return Y(X(e))},G={exports:{}},K={}.hasOwnProperty,J=function(e,t){return K.call(e,t)},Q=f("native-function-to-string",Function.toString),ee=l,te=$,ne=J,re=g("src"),ie=Q,ae="toString",oe=(""+ie).split(ae);a.inspectSource=function(e){return ie.call(e)},(G.exports=function(e,t,n,r){var i="function"==typeof n;i&&(ne(n,"name")||te(n,"name",t)),e[t]!==n&&(i&&(ne(n,re)||te(n,re,e[t]?""+e[t]:oe.join(String(t)))),e===ee?e[t]=n:r?e[t]?e[t]=n:te(e,t,n):(delete e[t],te(e,t,n)))})(Function.prototype,ae,(function(){return"function"==typeof this&&this[re]||ie.call(this)}));var se=G.exports,le=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},ue=le,ce=l,de=a,he=$,fe=se,pe=function(e,t,n){if(ue(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},ve="prototype",ge=function(e,t,n){var r,i,a,o,s=e&ge.F,l=e&ge.G,u=e&ge.S,c=e&ge.P,d=e&ge.B,h=l?ce:u?ce[t]||(ce[t]={}):(ce[t]||{})[ve],f=l?de:de[t]||(de[t]={}),p=f[ve]||(f[ve]={});for(r in l&&(n=t),n)a=((i=!s&&h&&void 0!==h[r])?h:n)[r],o=d&&i?pe(a,ce):c&&"function"==typeof a?pe(Function.call,a):a,h&&fe(h,r,a,e&ge.U),f[r]!=a&&he(f,r,o),c&&p[r]!=a&&(p[r]=a)};ce.core=de,ge.F=1,ge.G=2,ge.S=4,ge.P=8,ge.B=16,ge.W=32,ge.U=64,ge.R=128;var me,_e,ye,be=ge,we=Math.ceil,xe=Math.floor,Se=function(e){return isNaN(e=+e)?0:(e>0?xe:we)(e)},ke=Se,Te=Math.min,Ee=Se,Ce=Math.max,Oe=Math.min,Me=Z,Le=function(e){return e>0?Te(ke(e),9007199254740991):0},Ie=function(e,t){return(e=Ee(e))<0?Ce(e+t,0):Oe(e,t)},Ae=f("keys"),Be=g,Ne=function(e){return Ae[e]||(Ae[e]=Be(e))},Re=J,Pe=Z,De=(me=!1,function(e,t,n){var r,i=Me(e),a=Le(i.length),o=Ie(n,a);if(me&&t!=t){for(;a>o;)if((r=i[o++])!=r)return!0}else for(;a>o;o++)if((me||o in i)&&i[o]===t)return me||o||0;return!me&&-1}),ze=Ne("IE_PROTO"),Fe="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),$e=function(e,t){var n,r=Pe(e),i=0,a=[];for(n in r)n!=ze&&Re(r,n)&&a.push(n);for(;t.length>i;)Re(r,n=t[i++])&&(~De(a,n)||a.push(n));return a},je=Fe,Ve=Object.keys||function(e){return $e(e,je)},We=k,Ue=C,He=Ve,qe=M?Object.defineProperties:function(e,t){Ue(e);for(var n,r=He(t),i=r.length,a=0;i>a;)We.f(e,n=r[a++],t[n]);return e};var Ye=C,Xe=qe,Ze=Fe,Ge=Ne("IE_PROTO"),Ke=function(){},Je="prototype",Qe=function(){var e,t=L()("iframe"),n=Ze.length;for(t.style.display="none",function(){if(ye)return _e;ye=1;var e=l.document;return _e=e&&e.documentElement}().appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("