ecinc-cloud-mappaio 9.7.12 → 9.7.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6770,7 +6770,7 @@ function sendSocketPing(loginUser, ticket) {
6770
6770
 
6771
6771
  /***/ }),
6772
6772
 
6773
- /***/ 4508:
6773
+ /***/ 6590:
6774
6774
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6775
6775
 
6776
6776
  "use strict";
@@ -6783,7 +6783,7 @@ __webpack_require__.d(__webpack_exports__, {
6783
6783
  PdfViewer: function() { return /* binding */ PdfViewer; }
6784
6784
  });
6785
6785
 
6786
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/PdfTools/src/index.vue?vue&type=template&id=edfd6196&scoped=true
6786
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/PdfTools/src/index.vue?vue&type=template&id=5c630b6e&scoped=true
6787
6787
  var render = function render() {
6788
6788
  var _vm = this,
6789
6789
  _c = _vm._self._c;
@@ -6795,6 +6795,27 @@ var render = function render() {
6795
6795
  staticClass: "box"
6796
6796
  }, [_c('div', {
6797
6797
  staticClass: "box-inner"
6798
+ }, [_c('span', {
6799
+ directives: [{
6800
+ name: "show",
6801
+ rawName: "v-show",
6802
+ value: _vm.showViewer,
6803
+ expression: "showViewer"
6804
+ }]
6805
+ }, [_c('ShowViewer', {
6806
+ attrs: {
6807
+ "body-url": _vm.addType ? _vm.sealFileUrl : _vm.bodyFileUrl,
6808
+ "view-body-file-show": _vm.viewBodyFileShow,
6809
+ "type": 1,
6810
+ "orientation": _vm.orientation
6811
+ }
6812
+ })], 1), _c('span', {
6813
+ directives: [{
6814
+ name: "show",
6815
+ rawName: "v-show",
6816
+ value: !_vm.showViewer,
6817
+ expression: "!showViewer"
6818
+ }]
6798
6819
  }, [_vm.viewBodyFileShow === 'ofd' ? [_c('div', {
6799
6820
  staticStyle: {
6800
6821
  "width": "17px",
@@ -6848,28 +6869,7 @@ var render = function render() {
6848
6869
  attrs: {
6849
6870
  "src": './images/m-imgs/app-icons/ic_change_ho.png'
6850
6871
  }
6851
- })])] : _vm._e(), _c('span', {
6852
- directives: [{
6853
- name: "show",
6854
- rawName: "v-show",
6855
- value: _vm.showViewer,
6856
- expression: "showViewer"
6857
- }]
6858
- }, [_c('ShowViewer', {
6859
- attrs: {
6860
- "body-url": _vm.addType ? _vm.sealFileUrl : _vm.bodyFileUrl,
6861
- "view-body-file-show": _vm.viewBodyFileShow,
6862
- "type": 1,
6863
- "orientation": _vm.orientation
6864
- }
6865
- })], 1), _c('span', {
6866
- directives: [{
6867
- name: "show",
6868
- rawName: "v-show",
6869
- value: !_vm.showViewer,
6870
- expression: "!showViewer"
6871
- }]
6872
- }, [_vm.viewBodyFileShow === 'pdf' ? _c('iframe', {
6872
+ })])] : _vm._e(), _vm.viewBodyFileShow === 'pdf' ? _c('iframe', {
6873
6873
  ref: "iframeBodyFile",
6874
6874
  attrs: {
6875
6875
  "id": "pdfHtml",
@@ -6888,7 +6888,7 @@ var render = function render() {
6888
6888
  "scrolling": "yes",
6889
6889
  "src": _vm.addType ? _vm.sealFileUrl : _vm.bodyFileUrl
6890
6890
  }
6891
- }) : _vm._e()])], 2)]), _vm.sign || _vm.seal ? _c('div', {
6891
+ }) : _vm._e()], 2)])]), _vm.sign || _vm.seal ? _c('div', {
6892
6892
  staticClass: "bottom-bar"
6893
6893
  }, [_vm.sign && _vm.dVisiblesign ? _c('AddSign', {
6894
6894
  on: {
@@ -7765,8 +7765,8 @@ var ListSeals_component = (0,componentNormalizer/* default */.A)(
7765
7765
  )
7766
7766
 
7767
7767
  /* harmony default export */ var ListSeals = (ListSeals_component.exports);
7768
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/PdfTools/src/showViewer.vue?vue&type=template&id=42d635b4&scoped=true
7769
- var showViewervue_type_template_id_42d635b4_scoped_true_render = function render() {
7768
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/PdfTools/src/showViewer.vue?vue&type=template&id=fee38558&scoped=true
7769
+ var showViewervue_type_template_id_fee38558_scoped_true_render = function render() {
7770
7770
  var _vm = this,
7771
7771
  _c = _vm._self._c;
7772
7772
  return _c('div', {
@@ -7779,7 +7779,60 @@ var showViewervue_type_template_id_42d635b4_scoped_true_render = function render
7779
7779
  attrs: {
7780
7780
  "id": "pdfDiv"
7781
7781
  }
7782
- }, [_vm.viewBodyFileShow !== 'ofd' ? _c('iframe', {
7782
+ }, [_vm.viewBodyFileShow === 'ofd' ? [_c('div', {
7783
+ staticStyle: {
7784
+ "width": "17px",
7785
+ "right": "3px",
7786
+ "padding": "8px",
7787
+ "top": "4px",
7788
+ "z-index": "1000"
7789
+ },
7790
+ style: {
7791
+ position: _vm.viewBodyFileShow === 'ofd' ? 'absolute' : 'fixed',
7792
+ top: _vm.viewBodyFileShow === 'ofd' ? '40px' : '100px'
7793
+ },
7794
+ attrs: {
7795
+ "id": "changeScreenH"
7796
+ },
7797
+ on: {
7798
+ "click": function click($event) {
7799
+ $event.stopPropagation();
7800
+ return _vm.changeScreenHo.apply(null, arguments);
7801
+ }
7802
+ }
7803
+ }, [_c('img', {
7804
+ staticStyle: {
7805
+ "width": "100%"
7806
+ },
7807
+ attrs: {
7808
+ "src": './images/m-imgs/app-icons/ic_change_ho.png'
7809
+ }
7810
+ })])] : _vm.orientation !== 'landscape' ? [_c('div', {
7811
+ staticStyle: {
7812
+ "width": "17px",
7813
+ "right": "3px",
7814
+ "padding": "8px",
7815
+ "top": "4px",
7816
+ "z-index": "1000",
7817
+ "position": "absolute"
7818
+ },
7819
+ attrs: {
7820
+ "id": "changeScreenH"
7821
+ },
7822
+ on: {
7823
+ "click": function click($event) {
7824
+ $event.stopPropagation();
7825
+ return _vm.changeScreenHo.apply(null, arguments);
7826
+ }
7827
+ }
7828
+ }, [_c('img', {
7829
+ staticStyle: {
7830
+ "width": "100%"
7831
+ },
7832
+ attrs: {
7833
+ "src": './images/m-imgs/app-icons/ic_change_ho.png'
7834
+ }
7835
+ })])] : _vm._e(), _vm.viewBodyFileShow !== 'ofd' ? _c('iframe', {
7783
7836
  ref: "iframeBodyFile",
7784
7837
  attrs: {
7785
7838
  "id": "pdfHtml",
@@ -7812,9 +7865,9 @@ var showViewervue_type_template_id_42d635b4_scoped_true_render = function render
7812
7865
  attrs: {
7813
7866
  "name": "cross"
7814
7867
  }
7815
- }), _vm._v(" 关闭 ")], 1) : _vm._e()])])])]);
7868
+ }), _vm._v(" 关闭 ")], 1) : _vm._e()])], 2)])]);
7816
7869
  };
7817
- var showViewervue_type_template_id_42d635b4_scoped_true_staticRenderFns = [];
7870
+ var showViewervue_type_template_id_fee38558_scoped_true_staticRenderFns = [];
7818
7871
 
7819
7872
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/PdfTools/src/showViewer.vue?vue&type=script&lang=js
7820
7873
  /* harmony default export */ var showViewervue_type_script_lang_js = ({
@@ -7882,7 +7935,7 @@ var showViewervue_type_template_id_42d635b4_scoped_true_staticRenderFns = [];
7882
7935
  if (toolDv) {
7883
7936
  toolDv.style.top = '0';
7884
7937
  toolDv.style.right = '0';
7885
- toolDv.style.left = 'calc(100vw - 100px)';
7938
+ toolDv.style.left = 'calc(100vw - 150px)';
7886
7939
  toolDv.style.paddingLeft = '50px';
7887
7940
  }
7888
7941
  var pdfHtml = document.querySelector('#pdfHtml');
@@ -7935,9 +7988,9 @@ var showViewervue_type_template_id_42d635b4_scoped_true_staticRenderFns = [];
7935
7988
  });
7936
7989
  ;// CONCATENATED MODULE: ./packages/ecmapp/PdfTools/src/showViewer.vue?vue&type=script&lang=js
7937
7990
  /* harmony default export */ var src_showViewervue_type_script_lang_js = (showViewervue_type_script_lang_js);
7938
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/PdfTools/src/showViewer.vue?vue&type=style&index=0&id=42d635b4&prod&scoped=true&lang=scss
7939
- var showViewervue_type_style_index_0_id_42d635b4_prod_scoped_true_lang_scss = __webpack_require__(4797);
7940
- ;// CONCATENATED MODULE: ./packages/ecmapp/PdfTools/src/showViewer.vue?vue&type=style&index=0&id=42d635b4&prod&scoped=true&lang=scss
7991
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/PdfTools/src/showViewer.vue?vue&type=style&index=0&id=fee38558&prod&scoped=true&lang=scss
7992
+ var showViewervue_type_style_index_0_id_fee38558_prod_scoped_true_lang_scss = __webpack_require__(3692);
7993
+ ;// CONCATENATED MODULE: ./packages/ecmapp/PdfTools/src/showViewer.vue?vue&type=style&index=0&id=fee38558&prod&scoped=true&lang=scss
7941
7994
 
7942
7995
  ;// CONCATENATED MODULE: ./packages/ecmapp/PdfTools/src/showViewer.vue
7943
7996
 
@@ -7950,11 +8003,11 @@ var showViewervue_type_style_index_0_id_42d635b4_prod_scoped_true_lang_scss = __
7950
8003
 
7951
8004
  var showViewer_component = (0,componentNormalizer/* default */.A)(
7952
8005
  src_showViewervue_type_script_lang_js,
7953
- showViewervue_type_template_id_42d635b4_scoped_true_render,
7954
- showViewervue_type_template_id_42d635b4_scoped_true_staticRenderFns,
8006
+ showViewervue_type_template_id_fee38558_scoped_true_render,
8007
+ showViewervue_type_template_id_fee38558_scoped_true_staticRenderFns,
7955
8008
  false,
7956
8009
  null,
7957
- "42d635b4",
8010
+ "fee38558",
7958
8011
  null
7959
8012
 
7960
8013
  )
@@ -8364,13 +8417,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
8364
8417
  });
8365
8418
  ;// CONCATENATED MODULE: ./packages/ecmapp/PdfTools/src/index.vue?vue&type=script&lang=js
8366
8419
  /* harmony default export */ var PdfTools_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
8367
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/PdfTools/src/index.vue?vue&type=style&index=0&id=edfd6196&prod&scoped=true&lang=scss
8368
- var srcvue_type_style_index_0_id_edfd6196_prod_scoped_true_lang_scss = __webpack_require__(1313);
8369
- ;// CONCATENATED MODULE: ./packages/ecmapp/PdfTools/src/index.vue?vue&type=style&index=0&id=edfd6196&prod&scoped=true&lang=scss
8420
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/PdfTools/src/index.vue?vue&type=style&index=0&id=5c630b6e&prod&scoped=true&lang=scss
8421
+ var srcvue_type_style_index_0_id_5c630b6e_prod_scoped_true_lang_scss = __webpack_require__(9648);
8422
+ ;// CONCATENATED MODULE: ./packages/ecmapp/PdfTools/src/index.vue?vue&type=style&index=0&id=5c630b6e&prod&scoped=true&lang=scss
8370
8423
 
8371
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/PdfTools/src/index.vue?vue&type=style&index=1&id=edfd6196&prod&lang=css
8372
- var srcvue_type_style_index_1_id_edfd6196_prod_lang_css = __webpack_require__(7763);
8373
- ;// CONCATENATED MODULE: ./packages/ecmapp/PdfTools/src/index.vue?vue&type=style&index=1&id=edfd6196&prod&lang=css
8424
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/PdfTools/src/index.vue?vue&type=style&index=1&id=5c630b6e&prod&lang=css
8425
+ var srcvue_type_style_index_1_id_5c630b6e_prod_lang_css = __webpack_require__(2048);
8426
+ ;// CONCATENATED MODULE: ./packages/ecmapp/PdfTools/src/index.vue?vue&type=style&index=1&id=5c630b6e&prod&lang=css
8374
8427
 
8375
8428
  ;// CONCATENATED MODULE: ./packages/ecmapp/PdfTools/src/index.vue
8376
8429
 
@@ -8388,7 +8441,7 @@ var src_component = (0,componentNormalizer/* default */.A)(
8388
8441
  staticRenderFns,
8389
8442
  false,
8390
8443
  null,
8391
- "edfd6196",
8444
+ "5c630b6e",
8392
8445
  null
8393
8446
 
8394
8447
  )
@@ -8697,7 +8750,7 @@ src.install = function (Vue) {
8697
8750
 
8698
8751
  /***/ }),
8699
8752
 
8700
- /***/ 5713:
8753
+ /***/ 8388:
8701
8754
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8702
8755
 
8703
8756
  "use strict";
@@ -8717,7 +8770,7 @@ __webpack_require__.d(__webpack_exports__, {
8717
8770
  WriteToReadIdea: function() { return /* binding */ Wflowform_WriteToReadIdea; }
8718
8771
  });
8719
8772
 
8720
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/Attachment.vue?vue&type=template&id=4f8ded30&scoped=true
8773
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/Attachment.vue?vue&type=template&id=d820d2a0&scoped=true
8721
8774
  var render = function render() {
8722
8775
  var _vm = this,
8723
8776
  _c = _vm._self._c;
@@ -8728,9 +8781,9 @@ var render = function render() {
8728
8781
  }) : _vm._e(), _vm.attachModeType === 'default' ? _c('van-cell-group', {
8729
8782
  staticClass: "van-attachment-field",
8730
8783
  class: {
8731
- 'wflow-attach': _vm.showAttachments || _vm.canUpload
8784
+ 'wflow-attach': _vm.localShowAttach || _vm.canUpload
8732
8785
  }
8733
- }, [!_vm.canUpload ? _c('van-cell', {
8786
+ }, [_c('van-cell', {
8734
8787
  staticStyle: {
8735
8788
  "height": "44px"
8736
8789
  },
@@ -8740,21 +8793,20 @@ var render = function render() {
8740
8793
  },
8741
8794
  on: {
8742
8795
  "click": function click($event) {
8743
- _vm.showAttachments = !_vm.showAttachments;
8796
+ _vm.localShowAttach = !_vm.localShowAttach;
8744
8797
  }
8745
8798
  }
8746
- }, [_vm.attachList.length > 0 ? [_vm._v(" " + _vm._s(_vm.showAttachments ? _vm.$tx('ecmapp.pageBtns.fold', '折叠') : _vm.$tx('ecmapp.pageBtns.open', '展开')) + " "), _c('van-icon', {
8747
- class: _vm.showAttachments ? 'icon-play-up' : 'icon-play-down',
8748
- attrs: {
8749
- "name": "play"
8750
- }
8751
- })] : [_vm._v(_vm._s(_vm.$tx('ecmapp.common.nothing', '无')))]], 2) : _c('van-cell', {
8799
+ }, [_c('span', {
8752
8800
  staticStyle: {
8753
- "height": "44px"
8754
- },
8755
- attrs: {
8756
- "required": _vm.isRequired > 0,
8757
- "title": (_vm.title ? _vm.title : _vm.$tx('common.attach', '附件')) + '(' + _vm.attachList.length + ')'
8801
+ "display": "inline-flex",
8802
+ "align-items": "center",
8803
+ "gap": "8px"
8804
+ }
8805
+ }, [_vm.canUpload ? _c('span', {
8806
+ on: {
8807
+ "click": function click($event) {
8808
+ $event.stopPropagation();
8809
+ }
8758
8810
  }
8759
8811
  }, [_c('van-uploader', {
8760
8812
  attrs: {
@@ -8774,7 +8826,7 @@ var render = function render() {
8774
8826
  },
8775
8827
  expression: "uploadAttach"
8776
8828
  }
8777
- }, [_vm.canUpload ? _c('van-icon', {
8829
+ }, [_c('van-icon', {
8778
8830
  staticStyle: {
8779
8831
  "margin-top": "2px"
8780
8832
  },
@@ -8782,12 +8834,17 @@ var render = function render() {
8782
8834
  "name": "add-o",
8783
8835
  "size": "20px"
8784
8836
  }
8785
- }) : _vm._e()], 1)], 1)], 1) : _vm._e(), _vm.attachModeType === 'default' ? _c('van-cell-group', {
8837
+ })], 1)], 1) : _vm._e(), _vm.attachList.length > 0 ? _c('span', [_vm._v(" " + _vm._s(_vm.localShowAttach ? _vm.$tx('ecmapp.pageBtns.fold', '折叠') : _vm.$tx('ecmapp.pageBtns.open', '展开')) + " "), _c('van-icon', {
8838
+ class: _vm.localShowAttach ? 'icon-play-up' : 'icon-play-down',
8839
+ attrs: {
8840
+ "name": "play"
8841
+ }
8842
+ })], 1) : _vm._e(), _vm.attachList.length === 0 && !_vm.canUpload ? _c('span', [_vm._v(" " + _vm._s(_vm.$tx('ecmapp.common.nothing', '无')) + " ")]) : _vm._e()])])], 1) : _vm._e(), _vm.attachModeType === 'default' ? _c('van-cell-group', {
8786
8843
  directives: [{
8787
8844
  name: "show",
8788
8845
  rawName: "v-show",
8789
- value: _vm.showAttachments || _vm.componentType === 'Wflow' && _vm.vo.status < 1,
8790
- expression: "showAttachments || (componentType === 'Wflow' && vo.status < 1)"
8846
+ value: _vm.localShowAttach || _vm.componentType === 'Wflow' && _vm.vo.status < 1,
8847
+ expression: "localShowAttach || (componentType === 'Wflow' && vo.status < 1)"
8791
8848
  }],
8792
8849
  staticClass: "wfattach-container"
8793
8850
  }, [_vm._l(_vm.attachList, function (attach, index) {
@@ -8814,7 +8871,7 @@ var render = function render() {
8814
8871
  domProps: {
8815
8872
  "innerHTML": _vm._s(attach.fileSize)
8816
8873
  }
8817
- }), _vm.showMoreMenu && attach.id !== undefined ? [_c('van-icon', {
8874
+ }), _vm.localShowMoreMenu && attach.id !== undefined ? [_c('van-icon', {
8818
8875
  attrs: {
8819
8876
  "name": "ellipsis"
8820
8877
  },
@@ -8835,7 +8892,13 @@ var render = function render() {
8835
8892
  return _vm.handleOpenEditor(attach);
8836
8893
  }
8837
8894
  }
8838
- }) : _vm._e(), _vm.canUpload && _vm.canDelete ? _c('van-icon', {
8895
+ }) : _vm._e(), _vm.deletingAttachId === attach.id ? [_c('van-icon', {
8896
+ staticClass: "attach-deleting-icon",
8897
+ attrs: {
8898
+ "name": "replay",
8899
+ "color": "#ee0a24"
8900
+ }
8901
+ })] : _vm.canUpload && _vm.canDelete ? _c('van-icon', {
8839
8902
  attrs: {
8840
8903
  "color": "#ee0a24",
8841
8904
  "name": "cross"
@@ -8847,9 +8910,6 @@ var render = function render() {
8847
8910
  }
8848
8911
  }
8849
8912
  }) : _vm._e(), _vm.attachShowDownload && attach.id !== undefined ? _c('van-icon', {
8850
- staticStyle: {
8851
- "margin-left": "4px"
8852
- },
8853
8913
  attrs: {
8854
8914
  "name": "down"
8855
8915
  },
@@ -8929,7 +8989,13 @@ var render = function render() {
8929
8989
  "top": "11px",
8930
8990
  "padding": "0 5px"
8931
8991
  }
8932
- }, [_vm.canUpload && _vm.canDelete ? _c('van-icon', {
8992
+ }, [_vm.deletingAttachId === attach.id ? [_c('van-icon', {
8993
+ staticClass: "attach-deleting-icon",
8994
+ attrs: {
8995
+ "name": "replay",
8996
+ "color": "#ee0a24"
8997
+ }
8998
+ })] : _vm.canUpload && _vm.canDelete ? _c('van-icon', {
8933
8999
  attrs: {
8934
9000
  "name": "cross"
8935
9001
  },
@@ -8949,7 +9015,7 @@ var render = function render() {
8949
9015
  return _vm.handleUploadPreview(attach);
8950
9016
  }
8951
9017
  }
8952
- })], 1)]), !attach.id && attach.file.progress > 0 ? _c('template', {
9018
+ })], 2)]), !attach.id && attach.file.progress > 0 ? _c('template', {
8953
9019
  slot: "label"
8954
9020
  }, [_c('div', {
8955
9021
  staticClass: "upload-progress"
@@ -9145,7 +9211,12 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
9145
9211
  onZipAttachPreviewClick: {
9146
9212
  type: Function,
9147
9213
  default: null
9148
- } // 自定义压缩附件处理方式
9214
+ },
9215
+ // 自定义压缩附件处理方式
9216
+ autoUpload: {
9217
+ type: Boolean,
9218
+ default: true
9219
+ } // 是否开启自动上传,属性值为true时选择文件后自动上传
9149
9220
  },
9150
9221
  data: function data() {
9151
9222
  return {
@@ -9157,6 +9228,9 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
9157
9228
  renameAttach: {
9158
9229
  rename: ''
9159
9230
  },
9231
+ localShowAttach: this.showAttachments,
9232
+ localShowMoreMenu: this.showMoreMenu,
9233
+ deletingAttachId: null,
9160
9234
  licExpiredAlert: null,
9161
9235
  loginUser: this.$store.getters.loginUser,
9162
9236
  topdfFile: '.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt',
@@ -9164,7 +9238,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
9164
9238
  imgFile: '.pdf,.pdfx,.jpg,.png,.jpeg,.gif,.bmp' //图片文件格式
9165
9239
  };
9166
9240
  },
9167
- computed: _objectSpread({}, (0,vuex_esm/* mapGetters */.L8)(['loginUser'])),
9241
+ computed: _objectSpread({}, (0,vuex_esm/* mapGetters */.L8)(['loginUser', 'maxFileSize'])),
9168
9242
  watch: {
9169
9243
  attachments: {
9170
9244
  handler: function handler(val) {
@@ -9212,6 +9286,12 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
9212
9286
  },
9213
9287
  deep: true,
9214
9288
  immediate: true
9289
+ },
9290
+ showAttachments: function showAttachments(val) {
9291
+ this.localShowAttach = val;
9292
+ },
9293
+ showMoreMenu: function showMoreMenu(val) {
9294
+ this.localShowMoreMenu = val;
9215
9295
  }
9216
9296
  },
9217
9297
  created: function created() {
@@ -9225,7 +9305,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
9225
9305
  this.curTN.tnCanEdit = $scope.canEdit;
9226
9306
  if (this.canEdit == null) this.canEdit = this.curTN.tnCanEdit;
9227
9307
  this.canUpload = this.attachEdit !== null ? this.attachEdit.canUpload : this.canEdit === 1;
9228
- } else if (this.vo.status < 1 || this.attachsType === 'DONEXT') {
9308
+ } else if (this.curTN.tnCanEdit === 1 || this.attachsType === 'DONEXT') {
9229
9309
  // 流程表单
9230
9310
  this.canUpload = true;
9231
9311
  }
@@ -9239,8 +9319,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
9239
9319
  setTimeout(function () {
9240
9320
  _this3.setWfAttachUrl();
9241
9321
  if (window.mappType !== 'ecinc') {
9242
- _this3.$set(_this3, 'showMoreMenu', false);
9243
- _this3.$forceUpdate();
9322
+ _this3.localShowMoreMenu = false;
9244
9323
  }
9245
9324
  }, 500);
9246
9325
 
@@ -9707,6 +9786,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
9707
9786
  deleteUrl = _this8.wfAttachUrl + '/delete';
9708
9787
  if (_this.$vnode.context.wfInstance === undefined || _this.$vnode.context.wfInstance === null || _this.$vnode.context.wfInstance.id === undefined) deleteUrl = _this8.wfAttachUrl + '/deleteAttach'; // 非流程表单
9709
9788
 
9789
+ _this8.deletingAttachId = file.id;
9710
9790
  _this8.$http({
9711
9791
  method: 'DELETE',
9712
9792
  contentType: 'application/x-www-form-urlencoded',
@@ -9730,8 +9810,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
9730
9810
  message: res.message
9731
9811
  });
9732
9812
  }
9813
+ }).finally(function () {
9814
+ _this8.deletingAttachId = null;
9733
9815
  });
9734
- case 3:
9816
+ case 4:
9735
9817
  case "end":
9736
9818
  return _context2.stop();
9737
9819
  }
@@ -9835,6 +9917,33 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
9835
9917
  return attach.fileType === _this9.attachsType;
9836
9918
  });
9837
9919
  this.$forceUpdate();
9920
+
9921
+ // 选择文件后自动展开附件列表
9922
+ this.localShowAttach = true;
9923
+ setTimeout(function () {
9924
+ // 自动上传
9925
+ if (_this9.autoUpload) {
9926
+ var scope = null;
9927
+ if (_this9.$vnode.context.wfInstance) {
9928
+ scope = _this9.$vnode.context;
9929
+ } else if (_this9.$vnode.context.$parent.moduleInfo) {
9930
+ scope = _this9.$vnode.context.$parent;
9931
+ scope.wfInstance = {
9932
+ module: scope.moduleCode,
9933
+ bodyDocId: ''
9934
+ };
9935
+ } else if (_this9.$vnode.context.$parent.$vnode.context.moduleInfo) {
9936
+ scope = _this9.$vnode.context.$parent.$vnode.context;
9937
+ scope.wfInstance = {
9938
+ module: scope.moduleCode,
9939
+ bodyDocId: ''
9940
+ };
9941
+ }
9942
+ if (scope) {
9943
+ _this9.uploadWflowAttach(scope);
9944
+ }
9945
+ }
9946
+ }, 100);
9838
9947
  },
9839
9948
  // 初始化文件头像
9840
9949
  initPotourl: function initPotourl(attach) {
@@ -9874,11 +9983,27 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
9874
9983
  case 0:
9875
9984
  _uploadAttachFile = function _uploadAttachFile3() {
9876
9985
  _uploadAttachFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(attach, index) {
9877
- var file, config, module, reqData, uploadRst;
9986
+ var file, maxFileSizeStr, message, config, module, reqData, uploadRst;
9878
9987
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
9879
9988
  while (1) switch (_context4.prev = _context4.next) {
9880
9989
  case 0:
9881
- file = attach.file;
9990
+ file = attach.file; // maxFileSize 校验:超过单文件大小限制时拒绝上传
9991
+ if (!(_this.maxFileSize && _this.maxFileSize !== -1)) {
9992
+ _context4.next = 6;
9993
+ break;
9994
+ }
9995
+ if (!(file.file && file.file.size > _this.maxFileSize)) {
9996
+ _context4.next = 6;
9997
+ break;
9998
+ }
9999
+ maxFileSizeStr = (0,utils/* formatFileSize */.v7)(_this.maxFileSize);
10000
+ message = '上传单个文件大小不允许超过' + maxFileSizeStr;
10001
+ return _context4.abrupt("return", {
10002
+ code: 'failure',
10003
+ message: message,
10004
+ body: {}
10005
+ });
10006
+ case 6:
9882
10007
  config = {
9883
10008
  onUploadProgress: function onUploadProgress(progressEvent) {
9884
10009
  var complete = progressEvent.loaded / progressEvent.total * 100 | 0;
@@ -9909,12 +10034,12 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
9909
10034
  // 代办佐证材料
9910
10035
  reqData.uploadBy = attach.uploadBy;
9911
10036
  }
9912
- _context4.next = 9;
10037
+ _context4.next = 14;
9913
10038
  return _this.$wfEngine.upload(_this, _this.wfAttachUrl + '/upload', file.file, reqData, config);
9914
- case 9:
10039
+ case 14:
9915
10040
  uploadRst = _context4.sent;
9916
10041
  return _context4.abrupt("return", uploadRst);
9917
- case 11:
10042
+ case 16:
9918
10043
  case "end":
9919
10044
  return _context4.stop();
9920
10045
  }
@@ -10120,7 +10245,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
10120
10245
  if (!attachment.id) return;
10121
10246
  var downloadUrl = '';
10122
10247
  downloadUrl = "/apigw" + '/' + this.wfAttachUrl + '/downloadById?inline=false&attachIds=' + attachment.id + '&httpPort=' + location.port + '&csrfToken=' + window.$auth.getCsrfToken();
10123
- if (window.layout === 'H5') {
10248
+ if (window.mappType === 'ecinc') {
10124
10249
  window.$wv.downloadFile(downloadUrl, null, attachment.fileName, null);
10125
10250
  } else {
10126
10251
  this.$mappUtils.downLoadAndOpenFile(this, downloadUrl, attachment.fileName, attachment.fileSize);
@@ -10130,9 +10255,9 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
10130
10255
  });
10131
10256
  ;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/Attachment.vue?vue&type=script&lang=js
10132
10257
  /* harmony default export */ var src_Attachmentvue_type_script_lang_js = (Attachmentvue_type_script_lang_js);
10133
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/Attachment.vue?vue&type=style&index=0&id=4f8ded30&prod&scoped=true&lang=scss
10134
- var Attachmentvue_type_style_index_0_id_4f8ded30_prod_scoped_true_lang_scss = __webpack_require__(8811);
10135
- ;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/Attachment.vue?vue&type=style&index=0&id=4f8ded30&prod&scoped=true&lang=scss
10258
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/Attachment.vue?vue&type=style&index=0&id=d820d2a0&prod&scoped=true&lang=scss
10259
+ var Attachmentvue_type_style_index_0_id_d820d2a0_prod_scoped_true_lang_scss = __webpack_require__(9302);
10260
+ ;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/Attachment.vue?vue&type=style&index=0&id=d820d2a0&prod&scoped=true&lang=scss
10136
10261
 
10137
10262
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
10138
10263
  var componentNormalizer = __webpack_require__(1656);
@@ -10151,7 +10276,7 @@ var component = (0,componentNormalizer/* default */.A)(
10151
10276
  staticRenderFns,
10152
10277
  false,
10153
10278
  null,
10154
- "4f8ded30",
10279
+ "d820d2a0",
10155
10280
  null
10156
10281
 
10157
10282
  )
@@ -12575,8 +12700,8 @@ var SelectOuterDeputy_component = (0,componentNormalizer/* default */.A)(
12575
12700
  )
12576
12701
 
12577
12702
  /* harmony default export */ var SelectOuterDeputy = (SelectOuterDeputy_component.exports);
12578
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=template&id=0b80df4d&scoped=true
12579
- var SubmitHandlevue_type_template_id_0b80df4d_scoped_true_render = function render() {
12703
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=template&id=1336f0a5&scoped=true
12704
+ var SubmitHandlevue_type_template_id_1336f0a5_scoped_true_render = function render() {
12580
12705
  var _vm = this,
12581
12706
  _c = _vm._self._c;
12582
12707
  return _vm.initiated ? _c('div', {
@@ -13329,7 +13454,7 @@ var SubmitHandlevue_type_template_id_0b80df4d_scoped_true_render = function rend
13329
13454
  }
13330
13455
  })], 1) : _vm._e()], 2) : _vm._e();
13331
13456
  };
13332
- var SubmitHandlevue_type_template_id_0b80df4d_scoped_true_staticRenderFns = [];
13457
+ var SubmitHandlevue_type_template_id_1336f0a5_scoped_true_staticRenderFns = [];
13333
13458
 
13334
13459
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/WfTaskNode.vue?vue&type=template&id=3c3aeb78&scoped=true
13335
13460
  var WfTaskNodevue_type_template_id_3c3aeb78_scoped_true_render = function render() {
@@ -15068,8 +15193,8 @@ var moment = __webpack_require__(5093);
15068
15193
  }
15069
15194
  } else {
15070
15195
  var wfusers = _this4.Cookies.get('route-wfuser-' + _this4.curTN.tnID + '-' + taskNode.id);
15196
+ var _selectedNodes = [];
15071
15197
  if (wfusers !== undefined && wfusers !== null) {
15072
- var _selectedNodes = [];
15073
15198
  taskNode.users.forEach(function (user) {
15074
15199
  if (wfusers.indexOf(user.id) !== -1) {
15075
15200
  _selectedNodes.push(user);
@@ -15088,7 +15213,8 @@ var moment = __webpack_require__(5093);
15088
15213
  showUsers: _showUsers2,
15089
15214
  isLink: true
15090
15215
  };
15091
- } else if (taskNode.autoCheckedAll === '2' && taskNode.users.length > 0 && taskNode.users[0].personId) {
15216
+ }
15217
+ if (_selectedNodes.length === 0 && taskNode.autoCheckedAll === '2' && taskNode.users.length > 0 && taskNode.users[0].personId) {
15092
15218
  //自动选择第一个处理人
15093
15219
  _this4.submitHandle.route[taskNode.name] = {
15094
15220
  users: [taskNode.users[0]],
@@ -15631,9 +15757,9 @@ var moment = __webpack_require__(5093);
15631
15757
  });
15632
15758
  ;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=script&lang=js
15633
15759
  /* harmony default export */ var src_SubmitHandlevue_type_script_lang_js = (SubmitHandlevue_type_script_lang_js);
15634
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=style&index=0&id=0b80df4d&prod&scoped=true&lang=scss
15635
- var SubmitHandlevue_type_style_index_0_id_0b80df4d_prod_scoped_true_lang_scss = __webpack_require__(4394);
15636
- ;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=style&index=0&id=0b80df4d&prod&scoped=true&lang=scss
15760
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=style&index=0&id=1336f0a5&prod&scoped=true&lang=scss
15761
+ var SubmitHandlevue_type_style_index_0_id_1336f0a5_prod_scoped_true_lang_scss = __webpack_require__(2787);
15762
+ ;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue?vue&type=style&index=0&id=1336f0a5&prod&scoped=true&lang=scss
15637
15763
 
15638
15764
  ;// CONCATENATED MODULE: ./packages/ecmapp/Wflowform/src/SubmitHandle.vue
15639
15765
 
@@ -15646,11 +15772,11 @@ var SubmitHandlevue_type_style_index_0_id_0b80df4d_prod_scoped_true_lang_scss =
15646
15772
 
15647
15773
  var SubmitHandle_component = (0,componentNormalizer/* default */.A)(
15648
15774
  src_SubmitHandlevue_type_script_lang_js,
15649
- SubmitHandlevue_type_template_id_0b80df4d_scoped_true_render,
15650
- SubmitHandlevue_type_template_id_0b80df4d_scoped_true_staticRenderFns,
15775
+ SubmitHandlevue_type_template_id_1336f0a5_scoped_true_render,
15776
+ SubmitHandlevue_type_template_id_1336f0a5_scoped_true_staticRenderFns,
15651
15777
  false,
15652
15778
  null,
15653
- "0b80df4d",
15779
+ "1336f0a5",
15654
15780
  null
15655
15781
 
15656
15782
  )
@@ -18726,15 +18852,347 @@ module.exports = {
18726
18852
 
18727
18853
  /***/ }),
18728
18854
 
18729
- /***/ 7924:
18855
+ /***/ 8838:
18730
18856
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
18731
18857
 
18732
18858
  "use strict";
18859
+ // ESM COMPAT FLAG
18733
18860
  __webpack_require__.r(__webpack_exports__);
18734
- /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5373);
18735
- /* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_1__);
18736
- /* harmony import */ var js_cookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2215);
18737
- /* harmony import */ var js_cookie__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(js_cookie__WEBPACK_IMPORTED_MODULE_0__);
18861
+
18862
+ // EXPORTS
18863
+ __webpack_require__.d(__webpack_exports__, {
18864
+ "default": function() { return /* binding */ wfengine; }
18865
+ });
18866
+
18867
+ // EXTERNAL MODULE: ./node_modules/qs/lib/index.js
18868
+ var lib = __webpack_require__(5373);
18869
+ var lib_default = /*#__PURE__*/__webpack_require__.n(lib);
18870
+ // EXTERNAL MODULE: ./node_modules/js-cookie/src/js.cookie.js
18871
+ var js_cookie = __webpack_require__(2215);
18872
+ var js_cookie_default = /*#__PURE__*/__webpack_require__.n(js_cookie);
18873
+ // EXTERNAL MODULE: ./node_modules/spark-md5/spark-md5.js
18874
+ var spark_md5 = __webpack_require__(5735);
18875
+ var spark_md5_default = /*#__PURE__*/__webpack_require__.n(spark_md5);
18876
+ ;// CONCATENATED MODULE: ./packages/ecwflow/wfengine/chunkUpload.js
18877
+ /**
18878
+ * 分片上传核心模块
18879
+ * 封装大文件分片上传、断点续传全流程逻辑
18880
+ */
18881
+
18882
+
18883
+ // ========== 配置 ==========
18884
+ var DEFAULT_CHUNK_SIZE = 5; // 默认分片大小(MB)
18885
+ var MAX_RETRY = 3; // 单分片最大重试次数
18886
+ var RETRY_DELAYS = [1000, 2000, 4000]; // 指数退避延迟(ms)
18887
+ var STORAGE_PREFIX = 'chunk_upload_'; // localStorage key 前缀
18888
+
18889
+ /**
18890
+ * 获取分片大小(字节)
18891
+ */
18892
+ function getChunkSize() {
18893
+ return (window.chunkUploadSize || DEFAULT_CHUNK_SIZE) * 1024 * 1024;
18894
+ }
18895
+
18896
+ // ========== MD5 计算 ==========
18897
+
18898
+ /**
18899
+ * 使用 spark-md5 增量计算文件 MD5(避免大文件一次性读入内存)
18900
+ * @param {File} file 文件对象
18901
+ * @param {number} chunkSize 切片大小(字节)
18902
+ * @returns {Promise<string>} 文件 MD5 值(32位小写)
18903
+ */
18904
+ function computeFileMD5(file, chunkSize) {
18905
+ return new Promise(function (resolve, reject) {
18906
+ var blobSlice = File.prototype.slice || File.prototype.mozSlice || File.prototype.webkitSlice;
18907
+ var chunks = Math.ceil(file.size / chunkSize);
18908
+ var currentChunk = 0;
18909
+ var spark = new (spark_md5_default()).ArrayBuffer();
18910
+ var reader = new FileReader();
18911
+ reader.onload = function (e) {
18912
+ spark.append(e.target.result);
18913
+ currentChunk++;
18914
+ if (currentChunk < chunks) {
18915
+ loadNext();
18916
+ } else {
18917
+ resolve(spark.end());
18918
+ }
18919
+ };
18920
+ reader.onerror = function () {
18921
+ reject(new Error('文件读取失败'));
18922
+ };
18923
+ function loadNext() {
18924
+ var start = currentChunk * chunkSize;
18925
+ var end = Math.min(start + chunkSize, file.size);
18926
+ var chunk = blobSlice.call(file, start, end);
18927
+ reader.readAsArrayBuffer(chunk);
18928
+ }
18929
+ loadNext();
18930
+ });
18931
+ }
18932
+
18933
+ // ========== localStorage 断点进度管理 ==========
18934
+
18935
+ /**
18936
+ * 保存上传进度
18937
+ */
18938
+ function saveUploadProgress(fileMd5, data) {
18939
+ try {
18940
+ localStorage.setItem(STORAGE_PREFIX + fileMd5, JSON.stringify(data));
18941
+ } catch (e) {
18942
+ // localStorage 满或不可用,静默忽略
18943
+ }
18944
+ }
18945
+
18946
+ /**
18947
+ * 获取上传进度
18948
+ */
18949
+ function getUploadProgress(fileMd5) {
18950
+ try {
18951
+ var raw = localStorage.getItem(STORAGE_PREFIX + fileMd5);
18952
+ return raw ? JSON.parse(raw) : null;
18953
+ } catch (e) {
18954
+ return null;
18955
+ }
18956
+ }
18957
+
18958
+ /**
18959
+ * 清除上传进度
18960
+ */
18961
+ function clearUploadProgress(fileMd5) {
18962
+ try {
18963
+ localStorage.removeItem(STORAGE_PREFIX + fileMd5);
18964
+ } catch (e) {
18965
+ // 静默忽略
18966
+ }
18967
+ }
18968
+
18969
+ // ========== 后端接口调用 ==========
18970
+
18971
+ /**
18972
+ * 检查已上传分片
18973
+ * @param {Vue} $scope Vue 实例
18974
+ * @param {string} baseUrl 基础 URL(如 workflow/wfBusiAttach)
18975
+ * @param {string} fileMd5 文件 MD5
18976
+ * @param {number} totalChunks 总分片数
18977
+ * @returns {Promise<number[]>} 已上传分片索引列表
18978
+ */
18979
+ function checkChunkStatus($scope, baseUrl, fileMd5, totalChunks) {
18980
+ var formData = new FormData();
18981
+ formData.append('fileMd5', fileMd5);
18982
+ formData.append('totalChunks', totalChunks);
18983
+ return $scope.$http({
18984
+ url: baseUrl + '/uploadChunkCheck',
18985
+ method: 'post',
18986
+ data: formData
18987
+ }).then(function (res) {
18988
+ if (res.code === 'success' && res.body) {
18989
+ return res.body.uploadedChunks || [];
18990
+ }
18991
+ return [];
18992
+ }).catch(function () {
18993
+ return [];
18994
+ });
18995
+ }
18996
+
18997
+ /**
18998
+ * 上传单个分片(含重试)
18999
+ * @param {Vue} $scope Vue 实例
19000
+ * @param {string} baseUrl 基础 URL
19001
+ * @param {File} file 完整文件对象
19002
+ * @param {number} chunkIndex 分片索引
19003
+ * @param {string} fileMd5 文件 MD5
19004
+ * @param {number} totalChunks 总分片数
19005
+ * @param {string} fileName 文件名
19006
+ * @param {number} fileSize 文件大小
19007
+ * @returns {Promise}
19008
+ */
19009
+ function uploadSingleChunk($scope, baseUrl, file, chunkIndex, fileMd5, totalChunks, fileName, fileSize) {
19010
+ var chunkSize = getChunkSize();
19011
+ var start = chunkIndex * chunkSize;
19012
+ var end = Math.min(start + chunkSize, file.size);
19013
+ var chunk = file.slice(start, end);
19014
+ var formData = new FormData();
19015
+ formData.append('chunkFile', chunk, 'chunk_' + chunkIndex);
19016
+ formData.append('fileMd5', fileMd5);
19017
+ formData.append('chunkIndex', chunkIndex);
19018
+ formData.append('totalChunks', totalChunks);
19019
+ formData.append('fileName', fileName);
19020
+ formData.append('fileSize', fileSize);
19021
+ return doUploadWithRetry($scope, baseUrl + '/uploadChunk', formData, 0, chunkIndex);
19022
+ }
19023
+
19024
+ /**
19025
+ * 带重试的上传请求
19026
+ */
19027
+ function doUploadWithRetry($scope, url, formData, retryCount, chunkIdx) {
19028
+ return $scope.$http({
19029
+ url: url,
19030
+ method: 'post',
19031
+ data: formData
19032
+ }).then(function (res) {
19033
+ if (res.code !== 'success') {
19034
+ console.error('[chunkUpload] chunk_' + chunkIdx + ' failed:', res.message);
19035
+ throw new Error(res.message || 'chunk upload failed');
19036
+ }
19037
+ console.log('[chunkUpload] chunk_' + chunkIdx + ' success');
19038
+ return res;
19039
+ }).catch(function (err) {
19040
+ if (retryCount < MAX_RETRY) {
19041
+ console.warn('[chunkUpload] chunk_' + chunkIdx + ' retry ' + (retryCount + 1) + ':', err.message || err);
19042
+ var delay = RETRY_DELAYS[retryCount] || RETRY_DELAYS[RETRY_DELAYS.length - 1];
19043
+ return new Promise(function (resolve) {
19044
+ setTimeout(resolve, delay);
19045
+ }).then(function () {
19046
+ return doUploadWithRetry($scope, url, formData, retryCount + 1, chunkIdx);
19047
+ });
19048
+ }
19049
+ throw err;
19050
+ });
19051
+ }
19052
+
19053
+ /**
19054
+ * 合并分片
19055
+ * @param {Vue} $scope Vue 实例
19056
+ * @param {string} baseUrl 基础 URL
19057
+ * @param {string} fileMd5 文件 MD5
19058
+ * @param {string} fileName 文件名
19059
+ * @param {number} fileSize 文件大小
19060
+ * @param {number} totalChunks 总分片数
19061
+ * @param {Object} reqData 业务参数(module, busiDataId 等)
19062
+ * @returns {Promise}
19063
+ */
19064
+ function mergeChunks($scope, baseUrl, fileMd5, fileName, fileSize, totalChunks, reqData) {
19065
+ var formData = new FormData();
19066
+ formData.append('fileMd5', fileMd5);
19067
+ formData.append('fileName', fileName);
19068
+ formData.append('fileSize', fileSize);
19069
+ formData.append('totalChunks', totalChunks);
19070
+ if (reqData) {
19071
+ for (var key in reqData) {
19072
+ if (reqData.hasOwnProperty(key) && reqData[key] !== undefined && reqData[key] !== null) {
19073
+ formData.append(key, reqData[key]);
19074
+ }
19075
+ }
19076
+ }
19077
+ return $scope.$http({
19078
+ url: baseUrl + '/uploadChunkMerge',
19079
+ method: 'post',
19080
+ data: formData
19081
+ });
19082
+ }
19083
+
19084
+ // ========== 主编排函数 ==========
19085
+
19086
+ /**
19087
+ * 分片上传主流程
19088
+ * @param {Vue} $scope Vue 实例
19089
+ * @param {string} uploadUrl 上传 URL(如 workflow/wfBusiAttach/upload)
19090
+ * @param {File} file 文件对象
19091
+ * @param {Object} reqData 业务参数
19092
+ * @param {Object} config 配置(含 onUploadProgress 回调)
19093
+ * @returns {Promise} 合并后的响应,与原 upload 接口返回格式一致
19094
+ */
19095
+ function chunkedUpload($scope, uploadUrl, file, reqData, config) {
19096
+ var chunkSize = getChunkSize();
19097
+ var totalChunks = Math.ceil(file.size / chunkSize);
19098
+ var fileName = file.name || 'unknown';
19099
+ var fileSize = file.size;
19100
+
19101
+ // 从 uploadUrl 中提取 baseUrl(去掉末尾的 /upload)
19102
+ var baseUrl = uploadUrl.replace(/\/upload\/?$/, '');
19103
+ var onProgress = config && config.onUploadProgress || null;
19104
+ return new Promise(function (resolve, reject) {
19105
+ // Step 1: 计算文件 MD5
19106
+ computeFileMD5(file, chunkSize).then(function (fileMd5) {
19107
+ // Step 2: 检查断点续传进度
19108
+ var savedProgress = getUploadProgress(fileMd5);
19109
+ var uploadedBytes = savedProgress ? savedProgress.uploadedBytes || 0 : 0;
19110
+ return checkChunkStatus($scope, baseUrl, fileMd5, totalChunks).then(function (uploadedChunks) {
19111
+ // Step 3: 逐片上传未完成的分片
19112
+ var completedChunks = uploadedChunks.length;
19113
+ var uploadedBytesFromServer = 0;
19114
+ for (var i = 0; i < uploadedChunks.length; i++) {
19115
+ var idx = uploadedChunks[i];
19116
+ var cStart = idx * chunkSize;
19117
+ var cEnd = Math.min(cStart + chunkSize, fileSize);
19118
+ uploadedBytesFromServer += cEnd - cStart;
19119
+ }
19120
+ uploadedBytes = uploadedBytesFromServer;
19121
+
19122
+ // 模拟初始进度回调
19123
+ if (onProgress) {
19124
+ onProgress({
19125
+ loaded: uploadedBytes,
19126
+ total: fileSize
19127
+ });
19128
+ }
19129
+ return uploadChunksSequentially($scope, baseUrl, file, fileMd5, totalChunks, uploadedChunks, fileName, fileSize, chunkSize, function (chunkBytes) {
19130
+ completedChunks++;
19131
+ uploadedBytes += chunkBytes;
19132
+ if (onProgress) {
19133
+ onProgress({
19134
+ loaded: uploadedBytes,
19135
+ total: fileSize
19136
+ });
19137
+ }
19138
+ // 保存进度到 localStorage
19139
+ saveUploadProgress(fileMd5, {
19140
+ completedChunks: completedChunks,
19141
+ uploadedBytes: uploadedBytes,
19142
+ totalChunks: totalChunks,
19143
+ fileName: fileName,
19144
+ fileSize: fileSize,
19145
+ timestamp: Date.now()
19146
+ });
19147
+ }).then(function () {
19148
+ // Step 4: 合并分片
19149
+ return mergeChunks($scope, baseUrl, fileMd5, fileName, fileSize, totalChunks, reqData);
19150
+ }).then(function (mergeResult) {
19151
+ // Step 5: 合并成功,清除进度记录
19152
+ clearUploadProgress(fileMd5);
19153
+ resolve(mergeResult);
19154
+ });
19155
+ });
19156
+ }).catch(function (err) {
19157
+ reject(err);
19158
+ });
19159
+ });
19160
+ }
19161
+
19162
+ /**
19163
+ * 逐片串行上传
19164
+ * 使用 Array.reduce 链式调用,reduce 回调参数 cIdx 天然为每次迭代创建独立闭包,
19165
+ * 避免 for + var 共享变量导致所有分片使用同一个 chunkIndex 的问题。
19166
+ */
19167
+ function uploadChunksSequentially($scope, baseUrl, file, fileMd5, totalChunks, uploadedChunks, fileName, fileSize, chunkSize, onChunkDone) {
19168
+ var uploadedSet = {};
19169
+ for (var i = 0; i < uploadedChunks.length; i++) {
19170
+ uploadedSet[uploadedChunks[i]] = true;
19171
+ }
19172
+
19173
+ // 构建待上传分片索引数组
19174
+ var chunkIndices = [];
19175
+ for (var chunkIndex = 0; chunkIndex < totalChunks; chunkIndex++) {
19176
+ if (!uploadedSet[chunkIndex]) {
19177
+ chunkIndices.push(chunkIndex);
19178
+ }
19179
+ }
19180
+
19181
+ // reduce 的 cIdx 参数每次迭代都是独立的值,无闭包共享问题
19182
+ return chunkIndices.reduce(function (chain, cIdx) {
19183
+ return chain.then(function () {
19184
+ return uploadSingleChunk($scope, baseUrl, file, cIdx, fileMd5, totalChunks, fileName, fileSize).then(function () {
19185
+ var cStart = cIdx * chunkSize;
19186
+ var cEnd = Math.min(cStart + chunkSize, fileSize);
19187
+ var cBytes = cEnd - cStart;
19188
+ if (onChunkDone) {
19189
+ onChunkDone(cBytes);
19190
+ }
19191
+ });
19192
+ });
19193
+ }, Promise.resolve());
19194
+ }
19195
+ ;// CONCATENATED MODULE: ./packages/ecwflow/wfengine/index.js
18738
19196
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
18739
19197
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
18740
19198
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -18749,6 +19207,7 @@ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(
18749
19207
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
18750
19208
 
18751
19209
 
19210
+
18752
19211
  var install = function install(Vue) {
18753
19212
  var WfEngine = new Vue({
18754
19213
  methods: {
@@ -18966,7 +19425,7 @@ var install = function install(Vue) {
18966
19425
  }
18967
19426
  }
18968
19427
  if ($scope.wfJsonData && $scope.wfJsonData.routes) {
18969
- var rindex = js_cookie__WEBPACK_IMPORTED_MODULE_0___default().get('route-index-' + $scope.wfInstance.id);
19428
+ var rindex = js_cookie_default().get('route-index-' + $scope.wfInstance.id);
18970
19429
  if (rindex !== undefined && rindex !== null) {
18971
19430
  rindex = parseInt(rindex);
18972
19431
  if ($scope.wfJsonData.routes.length > rindex) $scope.submitHandle.route.index = rindex;
@@ -19414,7 +19873,7 @@ var install = function install(Vue) {
19414
19873
  $scope.$http({
19415
19874
  method: 'POST',
19416
19875
  contentType: 'application/x-www-form-urlencoded',
19417
- data: qs__WEBPACK_IMPORTED_MODULE_1___default().stringify(saveData),
19876
+ data: lib_default().stringify(saveData),
19418
19877
  params: params,
19419
19878
  url: wfEngineUrl
19420
19879
  }).then(function (res) {
@@ -19460,7 +19919,7 @@ var install = function install(Vue) {
19460
19919
  });
19461
19920
  }
19462
19921
  if ($scope.wfJsonData && $scope.wfJsonData.routes) {
19463
- var rindex = js_cookie__WEBPACK_IMPORTED_MODULE_0___default().get('route-index-' + $scope.wfInstance.id);
19922
+ var rindex = js_cookie_default().get('route-index-' + $scope.wfInstance.id);
19464
19923
  if (rindex !== undefined && rindex !== null) {
19465
19924
  rindex = parseInt(rindex);
19466
19925
  if ($scope.wfJsonData.routes.length > rindex) $scope.submitHandle.route.index = rindex;
@@ -19535,7 +19994,7 @@ var install = function install(Vue) {
19535
19994
  }
19536
19995
  var submitHandle = JSON.parse(JSON.stringify($scope.submitHandle));
19537
19996
  if (submitType.indexOf('Save') !== -1) {
19538
- js_cookie__WEBPACK_IMPORTED_MODULE_0___default().set('route-index-' + $scope.wfInstance.id, submitHandle.route.index);
19997
+ js_cookie_default().set('route-index-' + $scope.wfInstance.id, submitHandle.route.index);
19539
19998
  var route = $scope.wfJsonData == null || $scope.wfJsonData.routes == null || $scope.wfJsonData.routes.length === 0 ? {
19540
19999
  taskNodes: []
19541
20000
  } : $scope.wfJsonData.routes[submitHandle.route.index];
@@ -19546,14 +20005,14 @@ var install = function install(Vue) {
19546
20005
  if (nextUsers !== '') nextUsers += ';';
19547
20006
  nextUsers += user.id;
19548
20007
  });
19549
- js_cookie__WEBPACK_IMPORTED_MODULE_0___default().set('route-wfuser-' + $scope.curTN.tnID + '-' + wfNode.id, nextUsers);
20008
+ js_cookie_default().set('route-wfuser-' + $scope.curTN.tnID + '-' + wfNode.id, nextUsers);
19550
20009
  }
19551
20010
  });
19552
20011
  delete submitHandle.submitRoute;
19553
20012
  delete submitHandle.nextTNProp;
19554
20013
  delete submitHandle.nextTNUser;
19555
20014
  } else {
19556
- js_cookie__WEBPACK_IMPORTED_MODULE_0___default().set('route-index-' + $scope.wfInstance.id, '', {
20015
+ js_cookie_default().set('route-index-' + $scope.wfInstance.id, '', {
19557
20016
  expires: 0
19558
20017
  });
19559
20018
  var selRoute = $scope.wfJsonData == null || $scope.wfJsonData.routes == null || $scope.wfJsonData.routes.length === 0 ? {
@@ -19596,7 +20055,7 @@ var install = function install(Vue) {
19596
20055
  delete wfNode.users;
19597
20056
  submitHandle.nextTNProp.push(wfNode);
19598
20057
  submitHandle.nextTNUser.push(nextUsers);
19599
- js_cookie__WEBPACK_IMPORTED_MODULE_0___default().set('route-wfuser-' + $scope.curTN.tnID + '-' + wfNode.id, '', {
20058
+ js_cookie_default().set('route-wfuser-' + $scope.curTN.tnID + '-' + wfNode.id, '', {
19600
20059
  expires: 0
19601
20060
  });
19602
20061
  }
@@ -19629,7 +20088,7 @@ var install = function install(Vue) {
19629
20088
  headers: {
19630
20089
  'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
19631
20090
  },
19632
- data: qs__WEBPACK_IMPORTED_MODULE_1___default().stringify(saveData),
20091
+ data: lib_default().stringify(saveData),
19633
20092
  url: (params.wfEngineUrl || $scope.wfEngineUrl || 'workflow/wfInstance') + '/saveWfInstance'
19634
20093
  }).then(function (res) {
19635
20094
  if (res.code === 'success') {
@@ -19902,7 +20361,7 @@ var install = function install(Vue) {
19902
20361
  _this4.$http({
19903
20362
  method: 'POST',
19904
20363
  contentType: 'application/x-www-form-urlencoded',
19905
- data: qs__WEBPACK_IMPORTED_MODULE_1___default().stringify(saveData),
20364
+ data: lib_default().stringify(saveData),
19906
20365
  params: $scope.$vnode.context.wfParams,
19907
20366
  url: 'workflow/wfInstance/getUdmNodeUsers'
19908
20367
  }).then(function (res) {
@@ -19952,7 +20411,7 @@ var install = function install(Vue) {
19952
20411
  headers: {
19953
20412
  'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
19954
20413
  },
19955
- data: qs__WEBPACK_IMPORTED_MODULE_1___default().stringify({
20414
+ data: lib_default().stringify({
19956
20415
  wfInstance: JSON.stringify($scope.wfInstance),
19957
20416
  nextTNUsers: JSON.stringify(nextTNUsers)
19958
20417
  }),
@@ -20110,6 +20569,11 @@ var install = function install(Vue) {
20110
20569
  }
20111
20570
  },
20112
20571
  upload: function upload($scope, uploadUrl, file, params, config) {
20572
+ // 分片上传分流判断:chunkFileSizeThreshold > 0 且文件大小超过阈值
20573
+ var chunkThreshold = window.chunkFileSizeThreshold;
20574
+ if (chunkThreshold > 0 && file && file.size > chunkThreshold * 1024 * 1024) {
20575
+ return chunkedUpload($scope, uploadUrl, file, params, config);
20576
+ }
20113
20577
  var formData = new FormData();
20114
20578
  if (params != null) {
20115
20579
  for (var key in params) {
@@ -20208,7 +20672,7 @@ var install = function install(Vue) {
20208
20672
  });
20209
20673
  Vue.prototype.$wfEngine = WfEngine;
20210
20674
  };
20211
- /* harmony default export */ __webpack_exports__["default"] = (install);
20675
+ /* harmony default export */ var wfengine = (install);
20212
20676
 
20213
20677
  /***/ }),
20214
20678
 
@@ -20856,7 +21320,7 @@ if ($defineProperty) {
20856
21320
 
20857
21321
  /***/ }),
20858
21322
 
20859
- /***/ 2380:
21323
+ /***/ 679:
20860
21324
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
20861
21325
 
20862
21326
  "use strict";
@@ -21324,7 +21788,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-3277b832] .popup-body{backgrou
21324
21788
 
21325
21789
  /***/ }),
21326
21790
 
21327
- /***/ 6627:
21791
+ /***/ 6949:
21328
21792
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
21329
21793
 
21330
21794
  "use strict";
@@ -21338,14 +21802,14 @@ __webpack_require__.r(__webpack_exports__);
21338
21802
 
21339
21803
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
21340
21804
  // Module
21341
- ___CSS_LOADER_EXPORT___.push([module.id, "#bodyfilebox[data-v-edfd6196]{position:absolute;width:100%;overflow:hidden}#bodyfilebox[data-v-edfd6196]:before{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";pointer-events:none;right:0;top:20;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5);z-index:1}#bodyfilebox .box[data-v-edfd6196]{height:100%}#bodyfilebox .box .box-inner[data-v-edfd6196]{position:relative;width:100%;height:100%}#bodyfilebox[data-v-edfd6196] .van-cell__title{text-align:left}.busi-form-container #bodyfilebox[data-v-edfd6196]{height:calc(100vh - 104px - var(--headerHeight))}.busi-form-nobtn-container #bodyfilebox[data-v-edfd6196]{height:calc(100vh - 44px - var(--headerHeight))}.bottom-bar[data-v-edfd6196]{position:absolute;bottom:20px;width:100%;text-align:center}.bottom-bar .btn-g[data-v-edfd6196]:not(:first-child){margin-top:10px}.van-loading[data-v-edfd6196]{height:inherit;padding:inherit}", ""]);
21805
+ ___CSS_LOADER_EXPORT___.push([module.id, "#bodyfilebox[data-v-5c630b6e]{position:absolute;width:100%;overflow:hidden}#bodyfilebox[data-v-5c630b6e]:before{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";pointer-events:none;right:0;top:20;left:0;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5);z-index:1}#bodyfilebox .box[data-v-5c630b6e]{height:100%}#bodyfilebox .box .box-inner[data-v-5c630b6e]{position:relative;width:100%;height:100%}#bodyfilebox[data-v-5c630b6e] .van-cell__title{text-align:left}.busi-form-container #bodyfilebox[data-v-5c630b6e]{height:calc(100vh - 104px - var(--headerHeight))}.busi-form-nobtn-container #bodyfilebox[data-v-5c630b6e]{height:calc(100vh - 44px - var(--headerHeight))}.bottom-bar[data-v-5c630b6e]{position:absolute;bottom:20px;width:100%;text-align:center}.bottom-bar .btn-g[data-v-5c630b6e]:not(:first-child){margin-top:10px}.van-loading[data-v-5c630b6e]{height:inherit;padding:inherit}", ""]);
21342
21806
  // Exports
21343
21807
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
21344
21808
 
21345
21809
 
21346
21810
  /***/ }),
21347
21811
 
21348
- /***/ 1723:
21812
+ /***/ 1298:
21349
21813
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
21350
21814
 
21351
21815
  "use strict";
@@ -21359,7 +21823,7 @@ __webpack_require__.r(__webpack_exports__);
21359
21823
 
21360
21824
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
21361
21825
  // Module
21362
- ___CSS_LOADER_EXPORT___.push([module.id, ".divPortraitContainer[data-v-42d635b4]{-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:bottom left;transform-origin:bottom left;position:absolute;top:-100vw;height:100vw;width:100vh}.divLandscapeContainer[data-v-42d635b4]{-webkit-transform:rotate(0deg);transform:rotate(0deg);-webkit-transform-origin:top left;transform-origin:top left;position:absolute;top:0;height:100vh;width:100vw}.view-container[data-v-42d635b4]{position:fixed;top:0;width:100vw;height:100vh;background-color:#fff;z-index:9999}.tool-dv[data-v-42d635b4]{position:absolute;bottom:calc(100vw - 38px);left:calc(100vh - 100px);width:100px;height:37px;background-color:#f1f1f1}.docDiv[data-v-42d635b4],.iframe[data-v-42d635b4]{height:100%;width:100%}.docDiv[data-v-42d635b4]{position:relative;background-color:#fff}.buttomDiv[data-v-42d635b4]{right:10px}.buttomDiv[data-v-42d635b4],.buttomDivD[data-v-42d635b4]{float:right;top:7px;z-index:111;position:absolute;font-size:12px;font-weight:600;width:45px;line-height:25px;text-align:center;border-radius:2px}.buttomDivD[data-v-42d635b4]{right:60px}", ""]);
21826
+ ___CSS_LOADER_EXPORT___.push([module.id, ".divPortraitContainer[data-v-fee38558]{-webkit-transform:rotate(90deg);transform:rotate(90deg);-webkit-transform-origin:bottom left;transform-origin:bottom left;position:absolute;top:-100vw;height:100vw;width:100vh}.divLandscapeContainer[data-v-fee38558]{-webkit-transform:rotate(0deg);transform:rotate(0deg);-webkit-transform-origin:top left;transform-origin:top left;position:absolute;top:0;height:100vh;width:100vw}.view-container[data-v-fee38558]{position:fixed;top:0;width:100vw;height:100vh;background-color:#fff;z-index:9999}.tool-dv[data-v-fee38558]{position:absolute;bottom:calc(100vw - 38px);left:calc(100vh - 150px);width:150px;height:37px;background-color:#f1f1f1}.docDiv[data-v-fee38558],.iframe[data-v-fee38558]{height:100%;width:100%}.docDiv[data-v-fee38558]{position:relative;background-color:#fff}.buttomDiv[data-v-fee38558]{right:10px}.buttomDiv[data-v-fee38558],.buttomDivD[data-v-fee38558]{float:right;top:7px;z-index:111;position:absolute;font-size:12px;font-weight:600;width:45px;line-height:25px;text-align:center;border-radius:2px}.buttomDivD[data-v-fee38558]{right:60px}", ""]);
21363
21827
  // Exports
21364
21828
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
21365
21829
 
@@ -21534,7 +21998,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, "[data-v-d6f101a0] .van-nav-bar__title{
21534
21998
 
21535
21999
  /***/ }),
21536
22000
 
21537
- /***/ 3641:
22001
+ /***/ 5596:
21538
22002
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
21539
22003
 
21540
22004
  "use strict";
@@ -21548,7 +22012,7 @@ __webpack_require__.r(__webpack_exports__);
21548
22012
 
21549
22013
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
21550
22014
  // Module
21551
- ___CSS_LOADER_EXPORT___.push([module.id, ".wfattach-container .van-cell__value[data-v-4f8ded30],.wfattach-container[data-v-4f8ded30] .van-cell__title{-webkit-box-flex:0;-ms-flex:none;flex:none}.wfattach-container[data-v-4f8ded30] .van-cell__title{width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}.wfattach-container[data-v-4f8ded30] .van-cell__value{width:35%;height:24px}.wfattach-container[data-v-4f8ded30] .van-cell__value .van-icon-add-o{line-height:24px}.wfattach-container[data-v-4f8ded30] .van-cell__value .van-circle{margin-top:2px}.wfattach-container[data-v-4f8ded30] .van-cell__value .attach-icon{display:-webkit-box;display:-ms-flexbox;display:flex;float:right}.wfattach-container[data-v-4f8ded30] .van-cell__value .attach-icon .van-icon{line-height:24px;margin-left:15px;font-size:16px}.wfattach-container[data-v-4f8ded30]:after{border-top-width:0}.attachmants_preview .attachmants .van-cell-group .van-cell[data-v-4f8ded30]{padding-left:70px;padding-right:36px}.attachmants_preview .attachmants .van-cell-group .van-cell[data-v-4f8ded30]:after{right:0}.attachmants_preview .attachmants .van-cell-group .van-cell[data-v-4f8ded30]:first-child:before{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";pointer-events:none;right:0;top:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.attachmants_preview .attachmants .van-cell-group .van-cell .van-cell__title[data-v-4f8ded30]{position:relative}.attachmants_preview .attachmants .van-cell-group .van-cell .van-cell__title .attach_photo[data-v-4f8ded30]{position:absolute;left:-54px;height:44px;width:44px}.attachmants_preview .attachmants .van-cell-group .van-cell .van-cell__title .attach_name[data-v-4f8ded30]{width:calc(100vw - 107px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.van-attachment-field[data-v-4f8ded30]{position:relative}.van-attachment-field[data-v-4f8ded30]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";pointer-events:none;top:unset;border-width:0;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}", ""]);
22015
+ ___CSS_LOADER_EXPORT___.push([module.id, ".wfattach-container .van-cell__value[data-v-d820d2a0],.wfattach-container[data-v-d820d2a0] .van-cell__title{-webkit-box-flex:0;-ms-flex:none;flex:none}.wfattach-container[data-v-d820d2a0] .van-cell__title{width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}.wfattach-container[data-v-d820d2a0] .van-cell__value{width:45%;height:24px}.wfattach-container[data-v-d820d2a0] .van-cell__value .van-icon-add-o{line-height:24px}.wfattach-container[data-v-d820d2a0] .van-cell__value .van-circle{margin-top:2px}.wfattach-container[data-v-d820d2a0] .van-cell__value .attach-icon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wfattach-container[data-v-d820d2a0] .van-cell__value .attach-icon>span{white-space:nowrap;-ms-flex-negative:0;flex-shrink:0}.wfattach-container[data-v-d820d2a0] .van-cell__value .attach-icon .van-icon{line-height:24px;margin-left:10px;font-size:16px;-ms-flex-negative:0;flex-shrink:0}.wfattach-container[data-v-d820d2a0]:after{border-top-width:0}.attachmants_preview .attachmants .van-cell-group .van-cell[data-v-d820d2a0]{padding-left:70px;padding-right:36px}.attachmants_preview .attachmants .van-cell-group .van-cell[data-v-d820d2a0]:after{right:0}.attachmants_preview .attachmants .van-cell-group .van-cell[data-v-d820d2a0]:first-child:before{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";pointer-events:none;right:0;top:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.attachmants_preview .attachmants .van-cell-group .van-cell .van-cell__title[data-v-d820d2a0]{position:relative}.attachmants_preview .attachmants .van-cell-group .van-cell .van-cell__title .attach_photo[data-v-d820d2a0]{position:absolute;left:-54px;height:44px;width:44px}.attachmants_preview .attachmants .van-cell-group .van-cell .van-cell__title .attach_name[data-v-d820d2a0]{width:calc(100vw - 107px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.van-attachment-field[data-v-d820d2a0]{position:relative}.van-attachment-field[data-v-d820d2a0]:after{position:absolute;-webkit-box-sizing:border-box;box-sizing:border-box;content:\" \";pointer-events:none;top:unset;border-width:0;right:0;bottom:0;left:16px;border-bottom:1px solid #ebedf0;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.attach-deleting-icon[data-v-d820d2a0]{display:inline-block;-webkit-animation:attach-spin-d820d2a0 .8s linear infinite;animation:attach-spin-d820d2a0 .8s linear infinite}@-webkit-keyframes attach-spin-d820d2a0{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes attach-spin-d820d2a0{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}", ""]);
21552
22016
  // Exports
21553
22017
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
21554
22018
 
@@ -21681,7 +22145,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".submit-dialog-container[data-v-f9ec80
21681
22145
 
21682
22146
  /***/ }),
21683
22147
 
21684
- /***/ 3284:
22148
+ /***/ 2357:
21685
22149
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
21686
22150
 
21687
22151
  "use strict";
@@ -21700,7 +22164,7 @@ var ___CSS_LOADER_URL_IMPORT_0___ = new URL(/* asset import */ __webpack_require
21700
22164
  var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
21701
22165
  var ___CSS_LOADER_URL_REPLACEMENT_0___ = _node_modules_css_loader_dist_runtime_getUrl_js__WEBPACK_IMPORTED_MODULE_2___default()(___CSS_LOADER_URL_IMPORT_0___);
21702
22166
  // Module
21703
- ___CSS_LOADER_EXPORT___.push([module.id, ".submit-handle-container .idea-button-container .van-cell__value[data-v-0b80df4d]{text-align:right}.submit-handle-container .idea-button-container .van-cell__value .van-button[data-v-0b80df4d]{margin-right:0;margin-left:5px}.submit-handle-container .curIdea-filed[data-v-0b80df4d] .van-cell__title,.submit-handle-container .curIdea-filed[data-v-0b80df4d]:after{display:none}.submit-handle-container .clearfix[data-v-0b80df4d]:after{content:\".\";display:block;height:0;clear:both;visibility:hidden}.submit-handle-container[data-v-0b80df4d] .van-radio-group .van-cell__title{font-weight:400!important}.submit-handle-container .van-wflow-operate-detail-cell[data-v-0b80df4d]:after{border-top-width:0}.submit-handle-container .van-wflow-operate-detail-cell-path[data-v-0b80df4d]:after{border-width:1px;-webkit-transform:scale(.5);transform:scale(.5)}.submit-handle-container[data-v-0b80df4d] .tnLimit-container .van-field{width:50px;display:inline-block;padding:0}.submit-handle-container[data-v-0b80df4d] .tnLimit-container .van-field .van-field__body input{text-align:center}.submit-handle-container[data-v-0b80df4d] .tnLimit-container .van-field__body:after{color:#323233;content:attr(value-suffix);word-break:keep-all}.submit-handle-container .delete-icon[data-v-0b80df4d]{display:-webkit-box;display:-ms-flexbox;display:flex;float:right}.submit-handle-container .delete-icon .van-icon[data-v-0b80df4d]{line-height:24px;margin-left:5px;font-size:16px}.selectBox_title[data-v-0b80df4d]{height:45px;line-height:45px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px}.selectBox_content[data-v-0b80df4d],.selectBox_title[data-v-0b80df4d]{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0 15px}.selectBox_content[data-v-0b80df4d]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-wrap:wrap;flex-wrap:wrap}.selectBox_content .selectBox_content_son[data-v-0b80df4d]{border:1px solid #f1f1f1}.selectBox_content .selectBox_content_son[data-v-0b80df4d],.selectBox_content .selectBox_content_son_change[data-v-0b80df4d]{padding:4px;background:#f8fafb;font-size:14px;margin-bottom:10px!important;text-align:center;height:22px;line-height:22px;width:calc(25% - 17.5px);margin-right:10px}.selectBox_content .selectBox_content_son_change[data-v-0b80df4d]{border:1px solid #3f88f1;background-image:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ");background-repeat:no-repeat;background-size:15px 15px;background-position:100% 100%;color:#3f88f1}.selectBox_content_sonall[data-v-0b80df4d]{white-space:nowrap;overflow:hidden;overflow-x:scroll;-webkit-overflow-scrolling:touch}.selectBox_content_sonall[data-v-0b80df4d]:nth-child(4n){margin-right:0}.selectBox_content_sonall[data-v-0b80df4d]::-webkit-scrollbar{display:none}.viewAllComments[data-v-0b80df4d]{height:45px;line-height:45px;text-align:center;color:#b7b7b7;font-size:12px;background:#fff;display:block;width:100%}", ""]);
22167
+ ___CSS_LOADER_EXPORT___.push([module.id, ".submit-handle-container .idea-button-container .van-cell__value[data-v-1336f0a5]{text-align:right}.submit-handle-container .idea-button-container .van-cell__value .van-button[data-v-1336f0a5]{margin-right:0;margin-left:5px}.submit-handle-container .curIdea-filed[data-v-1336f0a5] .van-cell__title,.submit-handle-container .curIdea-filed[data-v-1336f0a5]:after{display:none}.submit-handle-container .clearfix[data-v-1336f0a5]:after{content:\".\";display:block;height:0;clear:both;visibility:hidden}.submit-handle-container[data-v-1336f0a5] .van-radio-group .van-cell__title{font-weight:400!important}.submit-handle-container .van-wflow-operate-detail-cell[data-v-1336f0a5]:after{border-top-width:0}.submit-handle-container .van-wflow-operate-detail-cell-path[data-v-1336f0a5]:after{border-width:1px;-webkit-transform:scale(.5);transform:scale(.5)}.submit-handle-container[data-v-1336f0a5] .tnLimit-container .van-field{width:50px;display:inline-block;padding:0}.submit-handle-container[data-v-1336f0a5] .tnLimit-container .van-field .van-field__body input{text-align:center}.submit-handle-container[data-v-1336f0a5] .tnLimit-container .van-field__body:after{color:#323233;content:attr(value-suffix);word-break:keep-all}.submit-handle-container .delete-icon[data-v-1336f0a5]{display:-webkit-box;display:-ms-flexbox;display:flex;float:right}.submit-handle-container .delete-icon .van-icon[data-v-1336f0a5]{line-height:24px;margin-left:5px;font-size:16px}.selectBox_title[data-v-1336f0a5]{height:45px;line-height:45px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px}.selectBox_content[data-v-1336f0a5],.selectBox_title[data-v-1336f0a5]{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0 15px}.selectBox_content[data-v-1336f0a5]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-wrap:wrap;flex-wrap:wrap}.selectBox_content .selectBox_content_son[data-v-1336f0a5]{border:1px solid #f1f1f1}.selectBox_content .selectBox_content_son[data-v-1336f0a5],.selectBox_content .selectBox_content_son_change[data-v-1336f0a5]{padding:4px;background:#f8fafb;font-size:14px;margin-bottom:10px!important;text-align:center;height:22px;line-height:22px;width:calc(25% - 17.5px);margin-right:10px}.selectBox_content .selectBox_content_son_change[data-v-1336f0a5]{border:1px solid #3f88f1;background-image:url(" + ___CSS_LOADER_URL_REPLACEMENT_0___ + ");background-repeat:no-repeat;background-size:15px 15px;background-position:100% 100%;color:#3f88f1}.selectBox_content_sonall[data-v-1336f0a5]{white-space:nowrap;overflow:hidden;overflow-x:scroll;-webkit-overflow-scrolling:touch}.selectBox_content_sonall[data-v-1336f0a5]:nth-child(4n){margin-right:0}.selectBox_content_sonall[data-v-1336f0a5]::-webkit-scrollbar{display:none}.viewAllComments[data-v-1336f0a5]{height:45px;line-height:45px;text-align:center;color:#b7b7b7;font-size:12px;background:#fff;display:block;width:100%}", ""]);
21704
22168
  // Exports
21705
22169
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
21706
22170
 
@@ -47964,19 +48428,763 @@ module.exports = function getSideChannel() {
47964
48428
 
47965
48429
  /***/ }),
47966
48430
 
47967
- /***/ 7763:
48431
+ /***/ 5735:
48432
+ /***/ (function(module) {
48433
+
48434
+ (function (factory) {
48435
+ if (true) {
48436
+ // Node/CommonJS
48437
+ module.exports = factory();
48438
+ } else { var glob; }
48439
+ }(function (undefined) {
48440
+
48441
+ 'use strict';
48442
+
48443
+ /*
48444
+ * Fastest md5 implementation around (JKM md5).
48445
+ * Credits: Joseph Myers
48446
+ *
48447
+ * @see http://www.myersdaily.org/joseph/javascript/md5-text.html
48448
+ * @see http://jsperf.com/md5-shootout/7
48449
+ */
48450
+
48451
+ /* this function is much faster,
48452
+ so if possible we use it. Some IEs
48453
+ are the only ones I know of that
48454
+ need the idiotic second function,
48455
+ generated by an if clause. */
48456
+ var add32 = function (a, b) {
48457
+ return (a + b) & 0xFFFFFFFF;
48458
+ },
48459
+ hex_chr = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'];
48460
+
48461
+
48462
+ function cmn(q, a, b, x, s, t) {
48463
+ a = add32(add32(a, q), add32(x, t));
48464
+ return add32((a << s) | (a >>> (32 - s)), b);
48465
+ }
48466
+
48467
+ function md5cycle(x, k) {
48468
+ var a = x[0],
48469
+ b = x[1],
48470
+ c = x[2],
48471
+ d = x[3];
48472
+
48473
+ a += (b & c | ~b & d) + k[0] - 680876936 | 0;
48474
+ a = (a << 7 | a >>> 25) + b | 0;
48475
+ d += (a & b | ~a & c) + k[1] - 389564586 | 0;
48476
+ d = (d << 12 | d >>> 20) + a | 0;
48477
+ c += (d & a | ~d & b) + k[2] + 606105819 | 0;
48478
+ c = (c << 17 | c >>> 15) + d | 0;
48479
+ b += (c & d | ~c & a) + k[3] - 1044525330 | 0;
48480
+ b = (b << 22 | b >>> 10) + c | 0;
48481
+ a += (b & c | ~b & d) + k[4] - 176418897 | 0;
48482
+ a = (a << 7 | a >>> 25) + b | 0;
48483
+ d += (a & b | ~a & c) + k[5] + 1200080426 | 0;
48484
+ d = (d << 12 | d >>> 20) + a | 0;
48485
+ c += (d & a | ~d & b) + k[6] - 1473231341 | 0;
48486
+ c = (c << 17 | c >>> 15) + d | 0;
48487
+ b += (c & d | ~c & a) + k[7] - 45705983 | 0;
48488
+ b = (b << 22 | b >>> 10) + c | 0;
48489
+ a += (b & c | ~b & d) + k[8] + 1770035416 | 0;
48490
+ a = (a << 7 | a >>> 25) + b | 0;
48491
+ d += (a & b | ~a & c) + k[9] - 1958414417 | 0;
48492
+ d = (d << 12 | d >>> 20) + a | 0;
48493
+ c += (d & a | ~d & b) + k[10] - 42063 | 0;
48494
+ c = (c << 17 | c >>> 15) + d | 0;
48495
+ b += (c & d | ~c & a) + k[11] - 1990404162 | 0;
48496
+ b = (b << 22 | b >>> 10) + c | 0;
48497
+ a += (b & c | ~b & d) + k[12] + 1804603682 | 0;
48498
+ a = (a << 7 | a >>> 25) + b | 0;
48499
+ d += (a & b | ~a & c) + k[13] - 40341101 | 0;
48500
+ d = (d << 12 | d >>> 20) + a | 0;
48501
+ c += (d & a | ~d & b) + k[14] - 1502002290 | 0;
48502
+ c = (c << 17 | c >>> 15) + d | 0;
48503
+ b += (c & d | ~c & a) + k[15] + 1236535329 | 0;
48504
+ b = (b << 22 | b >>> 10) + c | 0;
48505
+
48506
+ a += (b & d | c & ~d) + k[1] - 165796510 | 0;
48507
+ a = (a << 5 | a >>> 27) + b | 0;
48508
+ d += (a & c | b & ~c) + k[6] - 1069501632 | 0;
48509
+ d = (d << 9 | d >>> 23) + a | 0;
48510
+ c += (d & b | a & ~b) + k[11] + 643717713 | 0;
48511
+ c = (c << 14 | c >>> 18) + d | 0;
48512
+ b += (c & a | d & ~a) + k[0] - 373897302 | 0;
48513
+ b = (b << 20 | b >>> 12) + c | 0;
48514
+ a += (b & d | c & ~d) + k[5] - 701558691 | 0;
48515
+ a = (a << 5 | a >>> 27) + b | 0;
48516
+ d += (a & c | b & ~c) + k[10] + 38016083 | 0;
48517
+ d = (d << 9 | d >>> 23) + a | 0;
48518
+ c += (d & b | a & ~b) + k[15] - 660478335 | 0;
48519
+ c = (c << 14 | c >>> 18) + d | 0;
48520
+ b += (c & a | d & ~a) + k[4] - 405537848 | 0;
48521
+ b = (b << 20 | b >>> 12) + c | 0;
48522
+ a += (b & d | c & ~d) + k[9] + 568446438 | 0;
48523
+ a = (a << 5 | a >>> 27) + b | 0;
48524
+ d += (a & c | b & ~c) + k[14] - 1019803690 | 0;
48525
+ d = (d << 9 | d >>> 23) + a | 0;
48526
+ c += (d & b | a & ~b) + k[3] - 187363961 | 0;
48527
+ c = (c << 14 | c >>> 18) + d | 0;
48528
+ b += (c & a | d & ~a) + k[8] + 1163531501 | 0;
48529
+ b = (b << 20 | b >>> 12) + c | 0;
48530
+ a += (b & d | c & ~d) + k[13] - 1444681467 | 0;
48531
+ a = (a << 5 | a >>> 27) + b | 0;
48532
+ d += (a & c | b & ~c) + k[2] - 51403784 | 0;
48533
+ d = (d << 9 | d >>> 23) + a | 0;
48534
+ c += (d & b | a & ~b) + k[7] + 1735328473 | 0;
48535
+ c = (c << 14 | c >>> 18) + d | 0;
48536
+ b += (c & a | d & ~a) + k[12] - 1926607734 | 0;
48537
+ b = (b << 20 | b >>> 12) + c | 0;
48538
+
48539
+ a += (b ^ c ^ d) + k[5] - 378558 | 0;
48540
+ a = (a << 4 | a >>> 28) + b | 0;
48541
+ d += (a ^ b ^ c) + k[8] - 2022574463 | 0;
48542
+ d = (d << 11 | d >>> 21) + a | 0;
48543
+ c += (d ^ a ^ b) + k[11] + 1839030562 | 0;
48544
+ c = (c << 16 | c >>> 16) + d | 0;
48545
+ b += (c ^ d ^ a) + k[14] - 35309556 | 0;
48546
+ b = (b << 23 | b >>> 9) + c | 0;
48547
+ a += (b ^ c ^ d) + k[1] - 1530992060 | 0;
48548
+ a = (a << 4 | a >>> 28) + b | 0;
48549
+ d += (a ^ b ^ c) + k[4] + 1272893353 | 0;
48550
+ d = (d << 11 | d >>> 21) + a | 0;
48551
+ c += (d ^ a ^ b) + k[7] - 155497632 | 0;
48552
+ c = (c << 16 | c >>> 16) + d | 0;
48553
+ b += (c ^ d ^ a) + k[10] - 1094730640 | 0;
48554
+ b = (b << 23 | b >>> 9) + c | 0;
48555
+ a += (b ^ c ^ d) + k[13] + 681279174 | 0;
48556
+ a = (a << 4 | a >>> 28) + b | 0;
48557
+ d += (a ^ b ^ c) + k[0] - 358537222 | 0;
48558
+ d = (d << 11 | d >>> 21) + a | 0;
48559
+ c += (d ^ a ^ b) + k[3] - 722521979 | 0;
48560
+ c = (c << 16 | c >>> 16) + d | 0;
48561
+ b += (c ^ d ^ a) + k[6] + 76029189 | 0;
48562
+ b = (b << 23 | b >>> 9) + c | 0;
48563
+ a += (b ^ c ^ d) + k[9] - 640364487 | 0;
48564
+ a = (a << 4 | a >>> 28) + b | 0;
48565
+ d += (a ^ b ^ c) + k[12] - 421815835 | 0;
48566
+ d = (d << 11 | d >>> 21) + a | 0;
48567
+ c += (d ^ a ^ b) + k[15] + 530742520 | 0;
48568
+ c = (c << 16 | c >>> 16) + d | 0;
48569
+ b += (c ^ d ^ a) + k[2] - 995338651 | 0;
48570
+ b = (b << 23 | b >>> 9) + c | 0;
48571
+
48572
+ a += (c ^ (b | ~d)) + k[0] - 198630844 | 0;
48573
+ a = (a << 6 | a >>> 26) + b | 0;
48574
+ d += (b ^ (a | ~c)) + k[7] + 1126891415 | 0;
48575
+ d = (d << 10 | d >>> 22) + a | 0;
48576
+ c += (a ^ (d | ~b)) + k[14] - 1416354905 | 0;
48577
+ c = (c << 15 | c >>> 17) + d | 0;
48578
+ b += (d ^ (c | ~a)) + k[5] - 57434055 | 0;
48579
+ b = (b << 21 |b >>> 11) + c | 0;
48580
+ a += (c ^ (b | ~d)) + k[12] + 1700485571 | 0;
48581
+ a = (a << 6 | a >>> 26) + b | 0;
48582
+ d += (b ^ (a | ~c)) + k[3] - 1894986606 | 0;
48583
+ d = (d << 10 | d >>> 22) + a | 0;
48584
+ c += (a ^ (d | ~b)) + k[10] - 1051523 | 0;
48585
+ c = (c << 15 | c >>> 17) + d | 0;
48586
+ b += (d ^ (c | ~a)) + k[1] - 2054922799 | 0;
48587
+ b = (b << 21 |b >>> 11) + c | 0;
48588
+ a += (c ^ (b | ~d)) + k[8] + 1873313359 | 0;
48589
+ a = (a << 6 | a >>> 26) + b | 0;
48590
+ d += (b ^ (a | ~c)) + k[15] - 30611744 | 0;
48591
+ d = (d << 10 | d >>> 22) + a | 0;
48592
+ c += (a ^ (d | ~b)) + k[6] - 1560198380 | 0;
48593
+ c = (c << 15 | c >>> 17) + d | 0;
48594
+ b += (d ^ (c | ~a)) + k[13] + 1309151649 | 0;
48595
+ b = (b << 21 |b >>> 11) + c | 0;
48596
+ a += (c ^ (b | ~d)) + k[4] - 145523070 | 0;
48597
+ a = (a << 6 | a >>> 26) + b | 0;
48598
+ d += (b ^ (a | ~c)) + k[11] - 1120210379 | 0;
48599
+ d = (d << 10 | d >>> 22) + a | 0;
48600
+ c += (a ^ (d | ~b)) + k[2] + 718787259 | 0;
48601
+ c = (c << 15 | c >>> 17) + d | 0;
48602
+ b += (d ^ (c | ~a)) + k[9] - 343485551 | 0;
48603
+ b = (b << 21 | b >>> 11) + c | 0;
48604
+
48605
+ x[0] = a + x[0] | 0;
48606
+ x[1] = b + x[1] | 0;
48607
+ x[2] = c + x[2] | 0;
48608
+ x[3] = d + x[3] | 0;
48609
+ }
48610
+
48611
+ function md5blk(s) {
48612
+ var md5blks = [],
48613
+ i; /* Andy King said do it this way. */
48614
+
48615
+ for (i = 0; i < 64; i += 4) {
48616
+ md5blks[i >> 2] = s.charCodeAt(i) + (s.charCodeAt(i + 1) << 8) + (s.charCodeAt(i + 2) << 16) + (s.charCodeAt(i + 3) << 24);
48617
+ }
48618
+ return md5blks;
48619
+ }
48620
+
48621
+ function md5blk_array(a) {
48622
+ var md5blks = [],
48623
+ i; /* Andy King said do it this way. */
48624
+
48625
+ for (i = 0; i < 64; i += 4) {
48626
+ md5blks[i >> 2] = a[i] + (a[i + 1] << 8) + (a[i + 2] << 16) + (a[i + 3] << 24);
48627
+ }
48628
+ return md5blks;
48629
+ }
48630
+
48631
+ function md51(s) {
48632
+ var n = s.length,
48633
+ state = [1732584193, -271733879, -1732584194, 271733878],
48634
+ i,
48635
+ length,
48636
+ tail,
48637
+ tmp,
48638
+ lo,
48639
+ hi;
48640
+
48641
+ for (i = 64; i <= n; i += 64) {
48642
+ md5cycle(state, md5blk(s.substring(i - 64, i)));
48643
+ }
48644
+ s = s.substring(i - 64);
48645
+ length = s.length;
48646
+ tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
48647
+ for (i = 0; i < length; i += 1) {
48648
+ tail[i >> 2] |= s.charCodeAt(i) << ((i % 4) << 3);
48649
+ }
48650
+ tail[i >> 2] |= 0x80 << ((i % 4) << 3);
48651
+ if (i > 55) {
48652
+ md5cycle(state, tail);
48653
+ for (i = 0; i < 16; i += 1) {
48654
+ tail[i] = 0;
48655
+ }
48656
+ }
48657
+
48658
+ // Beware that the final length might not fit in 32 bits so we take care of that
48659
+ tmp = n * 8;
48660
+ tmp = tmp.toString(16).match(/(.*?)(.{0,8})$/);
48661
+ lo = parseInt(tmp[2], 16);
48662
+ hi = parseInt(tmp[1], 16) || 0;
48663
+
48664
+ tail[14] = lo;
48665
+ tail[15] = hi;
48666
+
48667
+ md5cycle(state, tail);
48668
+ return state;
48669
+ }
48670
+
48671
+ function md51_array(a) {
48672
+ var n = a.length,
48673
+ state = [1732584193, -271733879, -1732584194, 271733878],
48674
+ i,
48675
+ length,
48676
+ tail,
48677
+ tmp,
48678
+ lo,
48679
+ hi;
48680
+
48681
+ for (i = 64; i <= n; i += 64) {
48682
+ md5cycle(state, md5blk_array(a.subarray(i - 64, i)));
48683
+ }
48684
+
48685
+ // Not sure if it is a bug, however IE10 will always produce a sub array of length 1
48686
+ // containing the last element of the parent array if the sub array specified starts
48687
+ // beyond the length of the parent array - weird.
48688
+ // https://connect.microsoft.com/IE/feedback/details/771452/typed-array-subarray-issue
48689
+ a = (i - 64) < n ? a.subarray(i - 64) : new Uint8Array(0);
48690
+
48691
+ length = a.length;
48692
+ tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
48693
+ for (i = 0; i < length; i += 1) {
48694
+ tail[i >> 2] |= a[i] << ((i % 4) << 3);
48695
+ }
48696
+
48697
+ tail[i >> 2] |= 0x80 << ((i % 4) << 3);
48698
+ if (i > 55) {
48699
+ md5cycle(state, tail);
48700
+ for (i = 0; i < 16; i += 1) {
48701
+ tail[i] = 0;
48702
+ }
48703
+ }
48704
+
48705
+ // Beware that the final length might not fit in 32 bits so we take care of that
48706
+ tmp = n * 8;
48707
+ tmp = tmp.toString(16).match(/(.*?)(.{0,8})$/);
48708
+ lo = parseInt(tmp[2], 16);
48709
+ hi = parseInt(tmp[1], 16) || 0;
48710
+
48711
+ tail[14] = lo;
48712
+ tail[15] = hi;
48713
+
48714
+ md5cycle(state, tail);
48715
+
48716
+ return state;
48717
+ }
48718
+
48719
+ function rhex(n) {
48720
+ var s = '',
48721
+ j;
48722
+ for (j = 0; j < 4; j += 1) {
48723
+ s += hex_chr[(n >> (j * 8 + 4)) & 0x0F] + hex_chr[(n >> (j * 8)) & 0x0F];
48724
+ }
48725
+ return s;
48726
+ }
48727
+
48728
+ function hex(x) {
48729
+ var i;
48730
+ for (i = 0; i < x.length; i += 1) {
48731
+ x[i] = rhex(x[i]);
48732
+ }
48733
+ return x.join('');
48734
+ }
48735
+
48736
+ // In some cases the fast add32 function cannot be used..
48737
+ if (hex(md51('hello')) !== '5d41402abc4b2a76b9719d911017c592') {
48738
+ add32 = function (x, y) {
48739
+ var lsw = (x & 0xFFFF) + (y & 0xFFFF),
48740
+ msw = (x >> 16) + (y >> 16) + (lsw >> 16);
48741
+ return (msw << 16) | (lsw & 0xFFFF);
48742
+ };
48743
+ }
48744
+
48745
+ // ---------------------------------------------------
48746
+
48747
+ /**
48748
+ * ArrayBuffer slice polyfill.
48749
+ *
48750
+ * @see https://github.com/ttaubert/node-arraybuffer-slice
48751
+ */
48752
+
48753
+ if (typeof ArrayBuffer !== 'undefined' && !ArrayBuffer.prototype.slice) {
48754
+ (function () {
48755
+ function clamp(val, length) {
48756
+ val = (val | 0) || 0;
48757
+
48758
+ if (val < 0) {
48759
+ return Math.max(val + length, 0);
48760
+ }
48761
+
48762
+ return Math.min(val, length);
48763
+ }
48764
+
48765
+ ArrayBuffer.prototype.slice = function (from, to) {
48766
+ var length = this.byteLength,
48767
+ begin = clamp(from, length),
48768
+ end = length,
48769
+ num,
48770
+ target,
48771
+ targetArray,
48772
+ sourceArray;
48773
+
48774
+ if (to !== undefined) {
48775
+ end = clamp(to, length);
48776
+ }
48777
+
48778
+ if (begin > end) {
48779
+ return new ArrayBuffer(0);
48780
+ }
48781
+
48782
+ num = end - begin;
48783
+ target = new ArrayBuffer(num);
48784
+ targetArray = new Uint8Array(target);
48785
+
48786
+ sourceArray = new Uint8Array(this, begin, num);
48787
+ targetArray.set(sourceArray);
48788
+
48789
+ return target;
48790
+ };
48791
+ })();
48792
+ }
48793
+
48794
+ // ---------------------------------------------------
48795
+
48796
+ /**
48797
+ * Helpers.
48798
+ */
48799
+
48800
+ function toUtf8(str) {
48801
+ if (/[\u0080-\uFFFF]/.test(str)) {
48802
+ str = unescape(encodeURIComponent(str));
48803
+ }
48804
+
48805
+ return str;
48806
+ }
48807
+
48808
+ function utf8Str2ArrayBuffer(str, returnUInt8Array) {
48809
+ var length = str.length,
48810
+ buff = new ArrayBuffer(length),
48811
+ arr = new Uint8Array(buff),
48812
+ i;
48813
+
48814
+ for (i = 0; i < length; i += 1) {
48815
+ arr[i] = str.charCodeAt(i);
48816
+ }
48817
+
48818
+ return returnUInt8Array ? arr : buff;
48819
+ }
48820
+
48821
+ function arrayBuffer2Utf8Str(buff) {
48822
+ return String.fromCharCode.apply(null, new Uint8Array(buff));
48823
+ }
48824
+
48825
+ function concatenateArrayBuffers(first, second, returnUInt8Array) {
48826
+ var result = new Uint8Array(first.byteLength + second.byteLength);
48827
+
48828
+ result.set(new Uint8Array(first));
48829
+ result.set(new Uint8Array(second), first.byteLength);
48830
+
48831
+ return returnUInt8Array ? result : result.buffer;
48832
+ }
48833
+
48834
+ function hexToBinaryString(hex) {
48835
+ var bytes = [],
48836
+ length = hex.length,
48837
+ x;
48838
+
48839
+ for (x = 0; x < length - 1; x += 2) {
48840
+ bytes.push(parseInt(hex.substr(x, 2), 16));
48841
+ }
48842
+
48843
+ return String.fromCharCode.apply(String, bytes);
48844
+ }
48845
+
48846
+ // ---------------------------------------------------
48847
+
48848
+ /**
48849
+ * SparkMD5 OOP implementation.
48850
+ *
48851
+ * Use this class to perform an incremental md5, otherwise use the
48852
+ * static methods instead.
48853
+ */
48854
+
48855
+ function SparkMD5() {
48856
+ // call reset to init the instance
48857
+ this.reset();
48858
+ }
48859
+
48860
+ /**
48861
+ * Appends a string.
48862
+ * A conversion will be applied if an utf8 string is detected.
48863
+ *
48864
+ * @param {String} str The string to be appended
48865
+ *
48866
+ * @return {SparkMD5} The instance itself
48867
+ */
48868
+ SparkMD5.prototype.append = function (str) {
48869
+ // Converts the string to utf8 bytes if necessary
48870
+ // Then append as binary
48871
+ this.appendBinary(toUtf8(str));
48872
+
48873
+ return this;
48874
+ };
48875
+
48876
+ /**
48877
+ * Appends a binary string.
48878
+ *
48879
+ * @param {String} contents The binary string to be appended
48880
+ *
48881
+ * @return {SparkMD5} The instance itself
48882
+ */
48883
+ SparkMD5.prototype.appendBinary = function (contents) {
48884
+ this._buff += contents;
48885
+ this._length += contents.length;
48886
+
48887
+ var length = this._buff.length,
48888
+ i;
48889
+
48890
+ for (i = 64; i <= length; i += 64) {
48891
+ md5cycle(this._hash, md5blk(this._buff.substring(i - 64, i)));
48892
+ }
48893
+
48894
+ this._buff = this._buff.substring(i - 64);
48895
+
48896
+ return this;
48897
+ };
48898
+
48899
+ /**
48900
+ * Finishes the incremental computation, reseting the internal state and
48901
+ * returning the result.
48902
+ *
48903
+ * @param {Boolean} raw True to get the raw string, false to get the hex string
48904
+ *
48905
+ * @return {String} The result
48906
+ */
48907
+ SparkMD5.prototype.end = function (raw) {
48908
+ var buff = this._buff,
48909
+ length = buff.length,
48910
+ i,
48911
+ tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
48912
+ ret;
48913
+
48914
+ for (i = 0; i < length; i += 1) {
48915
+ tail[i >> 2] |= buff.charCodeAt(i) << ((i % 4) << 3);
48916
+ }
48917
+
48918
+ this._finish(tail, length);
48919
+ ret = hex(this._hash);
48920
+
48921
+ if (raw) {
48922
+ ret = hexToBinaryString(ret);
48923
+ }
48924
+
48925
+ this.reset();
48926
+
48927
+ return ret;
48928
+ };
48929
+
48930
+ /**
48931
+ * Resets the internal state of the computation.
48932
+ *
48933
+ * @return {SparkMD5} The instance itself
48934
+ */
48935
+ SparkMD5.prototype.reset = function () {
48936
+ this._buff = '';
48937
+ this._length = 0;
48938
+ this._hash = [1732584193, -271733879, -1732584194, 271733878];
48939
+
48940
+ return this;
48941
+ };
48942
+
48943
+ /**
48944
+ * Gets the internal state of the computation.
48945
+ *
48946
+ * @return {Object} The state
48947
+ */
48948
+ SparkMD5.prototype.getState = function () {
48949
+ return {
48950
+ buff: this._buff,
48951
+ length: this._length,
48952
+ hash: this._hash.slice()
48953
+ };
48954
+ };
48955
+
48956
+ /**
48957
+ * Gets the internal state of the computation.
48958
+ *
48959
+ * @param {Object} state The state
48960
+ *
48961
+ * @return {SparkMD5} The instance itself
48962
+ */
48963
+ SparkMD5.prototype.setState = function (state) {
48964
+ this._buff = state.buff;
48965
+ this._length = state.length;
48966
+ this._hash = state.hash;
48967
+
48968
+ return this;
48969
+ };
48970
+
48971
+ /**
48972
+ * Releases memory used by the incremental buffer and other additional
48973
+ * resources. If you plan to use the instance again, use reset instead.
48974
+ */
48975
+ SparkMD5.prototype.destroy = function () {
48976
+ delete this._hash;
48977
+ delete this._buff;
48978
+ delete this._length;
48979
+ };
48980
+
48981
+ /**
48982
+ * Finish the final calculation based on the tail.
48983
+ *
48984
+ * @param {Array} tail The tail (will be modified)
48985
+ * @param {Number} length The length of the remaining buffer
48986
+ */
48987
+ SparkMD5.prototype._finish = function (tail, length) {
48988
+ var i = length,
48989
+ tmp,
48990
+ lo,
48991
+ hi;
48992
+
48993
+ tail[i >> 2] |= 0x80 << ((i % 4) << 3);
48994
+ if (i > 55) {
48995
+ md5cycle(this._hash, tail);
48996
+ for (i = 0; i < 16; i += 1) {
48997
+ tail[i] = 0;
48998
+ }
48999
+ }
49000
+
49001
+ // Do the final computation based on the tail and length
49002
+ // Beware that the final length may not fit in 32 bits so we take care of that
49003
+ tmp = this._length * 8;
49004
+ tmp = tmp.toString(16).match(/(.*?)(.{0,8})$/);
49005
+ lo = parseInt(tmp[2], 16);
49006
+ hi = parseInt(tmp[1], 16) || 0;
49007
+
49008
+ tail[14] = lo;
49009
+ tail[15] = hi;
49010
+ md5cycle(this._hash, tail);
49011
+ };
49012
+
49013
+ /**
49014
+ * Performs the md5 hash on a string.
49015
+ * A conversion will be applied if utf8 string is detected.
49016
+ *
49017
+ * @param {String} str The string
49018
+ * @param {Boolean} [raw] True to get the raw string, false to get the hex string
49019
+ *
49020
+ * @return {String} The result
49021
+ */
49022
+ SparkMD5.hash = function (str, raw) {
49023
+ // Converts the string to utf8 bytes if necessary
49024
+ // Then compute it using the binary function
49025
+ return SparkMD5.hashBinary(toUtf8(str), raw);
49026
+ };
49027
+
49028
+ /**
49029
+ * Performs the md5 hash on a binary string.
49030
+ *
49031
+ * @param {String} content The binary string
49032
+ * @param {Boolean} [raw] True to get the raw string, false to get the hex string
49033
+ *
49034
+ * @return {String} The result
49035
+ */
49036
+ SparkMD5.hashBinary = function (content, raw) {
49037
+ var hash = md51(content),
49038
+ ret = hex(hash);
49039
+
49040
+ return raw ? hexToBinaryString(ret) : ret;
49041
+ };
49042
+
49043
+ // ---------------------------------------------------
49044
+
49045
+ /**
49046
+ * SparkMD5 OOP implementation for array buffers.
49047
+ *
49048
+ * Use this class to perform an incremental md5 ONLY for array buffers.
49049
+ */
49050
+ SparkMD5.ArrayBuffer = function () {
49051
+ // call reset to init the instance
49052
+ this.reset();
49053
+ };
49054
+
49055
+ /**
49056
+ * Appends an array buffer.
49057
+ *
49058
+ * @param {ArrayBuffer} arr The array to be appended
49059
+ *
49060
+ * @return {SparkMD5.ArrayBuffer} The instance itself
49061
+ */
49062
+ SparkMD5.ArrayBuffer.prototype.append = function (arr) {
49063
+ var buff = concatenateArrayBuffers(this._buff.buffer, arr, true),
49064
+ length = buff.length,
49065
+ i;
49066
+
49067
+ this._length += arr.byteLength;
49068
+
49069
+ for (i = 64; i <= length; i += 64) {
49070
+ md5cycle(this._hash, md5blk_array(buff.subarray(i - 64, i)));
49071
+ }
49072
+
49073
+ this._buff = (i - 64) < length ? new Uint8Array(buff.buffer.slice(i - 64)) : new Uint8Array(0);
49074
+
49075
+ return this;
49076
+ };
49077
+
49078
+ /**
49079
+ * Finishes the incremental computation, reseting the internal state and
49080
+ * returning the result.
49081
+ *
49082
+ * @param {Boolean} raw True to get the raw string, false to get the hex string
49083
+ *
49084
+ * @return {String} The result
49085
+ */
49086
+ SparkMD5.ArrayBuffer.prototype.end = function (raw) {
49087
+ var buff = this._buff,
49088
+ length = buff.length,
49089
+ tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
49090
+ i,
49091
+ ret;
49092
+
49093
+ for (i = 0; i < length; i += 1) {
49094
+ tail[i >> 2] |= buff[i] << ((i % 4) << 3);
49095
+ }
49096
+
49097
+ this._finish(tail, length);
49098
+ ret = hex(this._hash);
49099
+
49100
+ if (raw) {
49101
+ ret = hexToBinaryString(ret);
49102
+ }
49103
+
49104
+ this.reset();
49105
+
49106
+ return ret;
49107
+ };
49108
+
49109
+ /**
49110
+ * Resets the internal state of the computation.
49111
+ *
49112
+ * @return {SparkMD5.ArrayBuffer} The instance itself
49113
+ */
49114
+ SparkMD5.ArrayBuffer.prototype.reset = function () {
49115
+ this._buff = new Uint8Array(0);
49116
+ this._length = 0;
49117
+ this._hash = [1732584193, -271733879, -1732584194, 271733878];
49118
+
49119
+ return this;
49120
+ };
49121
+
49122
+ /**
49123
+ * Gets the internal state of the computation.
49124
+ *
49125
+ * @return {Object} The state
49126
+ */
49127
+ SparkMD5.ArrayBuffer.prototype.getState = function () {
49128
+ var state = SparkMD5.prototype.getState.call(this);
49129
+
49130
+ // Convert buffer to a string
49131
+ state.buff = arrayBuffer2Utf8Str(state.buff);
49132
+
49133
+ return state;
49134
+ };
49135
+
49136
+ /**
49137
+ * Gets the internal state of the computation.
49138
+ *
49139
+ * @param {Object} state The state
49140
+ *
49141
+ * @return {SparkMD5.ArrayBuffer} The instance itself
49142
+ */
49143
+ SparkMD5.ArrayBuffer.prototype.setState = function (state) {
49144
+ // Convert string to buffer
49145
+ state.buff = utf8Str2ArrayBuffer(state.buff, true);
49146
+
49147
+ return SparkMD5.prototype.setState.call(this, state);
49148
+ };
49149
+
49150
+ SparkMD5.ArrayBuffer.prototype.destroy = SparkMD5.prototype.destroy;
49151
+
49152
+ SparkMD5.ArrayBuffer.prototype._finish = SparkMD5.prototype._finish;
49153
+
49154
+ /**
49155
+ * Performs the md5 hash on an array buffer.
49156
+ *
49157
+ * @param {ArrayBuffer} arr The array buffer
49158
+ * @param {Boolean} [raw] True to get the raw string, false to get the hex one
49159
+ *
49160
+ * @return {String} The result
49161
+ */
49162
+ SparkMD5.ArrayBuffer.hash = function (arr, raw) {
49163
+ var hash = md51_array(new Uint8Array(arr)),
49164
+ ret = hex(hash);
49165
+
49166
+ return raw ? hexToBinaryString(ret) : ret;
49167
+ };
49168
+
49169
+ return SparkMD5;
49170
+ }));
49171
+
49172
+
49173
+ /***/ }),
49174
+
49175
+ /***/ 2048:
47968
49176
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
47969
49177
 
47970
49178
  // style-loader: Adds some css to the DOM by adding a <style> tag
47971
49179
 
47972
49180
  // load the styles
47973
- var content = __webpack_require__(2380);
49181
+ var content = __webpack_require__(679);
47974
49182
  if(content.__esModule) content = content.default;
47975
49183
  if(typeof content === 'string') content = [[module.id, content, '']];
47976
49184
  if(content.locals) module.exports = content.locals;
47977
49185
  // add the styles to the DOM
47978
49186
  var add = (__webpack_require__(9548)/* ["default"] */ .A)
47979
- var update = add("34ddc412", content, true, {"sourceMap":false,"shadowMode":false});
49187
+ var update = add("67d682bb", content, true, {"sourceMap":false,"shadowMode":false});
47980
49188
 
47981
49189
  /***/ }),
47982
49190
 
@@ -48316,35 +49524,35 @@ var update = add("4cf79f76", content, true, {"sourceMap":false,"shadowMode":fals
48316
49524
 
48317
49525
  /***/ }),
48318
49526
 
48319
- /***/ 1313:
49527
+ /***/ 9648:
48320
49528
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
48321
49529
 
48322
49530
  // style-loader: Adds some css to the DOM by adding a <style> tag
48323
49531
 
48324
49532
  // load the styles
48325
- var content = __webpack_require__(6627);
49533
+ var content = __webpack_require__(6949);
48326
49534
  if(content.__esModule) content = content.default;
48327
49535
  if(typeof content === 'string') content = [[module.id, content, '']];
48328
49536
  if(content.locals) module.exports = content.locals;
48329
49537
  // add the styles to the DOM
48330
49538
  var add = (__webpack_require__(9548)/* ["default"] */ .A)
48331
- var update = add("017ce674", content, true, {"sourceMap":false,"shadowMode":false});
49539
+ var update = add("1657a8bd", content, true, {"sourceMap":false,"shadowMode":false});
48332
49540
 
48333
49541
  /***/ }),
48334
49542
 
48335
- /***/ 4797:
49543
+ /***/ 3692:
48336
49544
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
48337
49545
 
48338
49546
  // style-loader: Adds some css to the DOM by adding a <style> tag
48339
49547
 
48340
49548
  // load the styles
48341
- var content = __webpack_require__(1723);
49549
+ var content = __webpack_require__(1298);
48342
49550
  if(content.__esModule) content = content.default;
48343
49551
  if(typeof content === 'string') content = [[module.id, content, '']];
48344
49552
  if(content.locals) module.exports = content.locals;
48345
49553
  // add the styles to the DOM
48346
49554
  var add = (__webpack_require__(9548)/* ["default"] */ .A)
48347
- var update = add("6f619629", content, true, {"sourceMap":false,"shadowMode":false});
49555
+ var update = add("530a90c0", content, true, {"sourceMap":false,"shadowMode":false});
48348
49556
 
48349
49557
  /***/ }),
48350
49558
 
@@ -48476,19 +49684,19 @@ var update = add("4ff8cc4e", content, true, {"sourceMap":false,"shadowMode":fals
48476
49684
 
48477
49685
  /***/ }),
48478
49686
 
48479
- /***/ 8811:
49687
+ /***/ 9302:
48480
49688
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
48481
49689
 
48482
49690
  // style-loader: Adds some css to the DOM by adding a <style> tag
48483
49691
 
48484
49692
  // load the styles
48485
- var content = __webpack_require__(3641);
49693
+ var content = __webpack_require__(5596);
48486
49694
  if(content.__esModule) content = content.default;
48487
49695
  if(typeof content === 'string') content = [[module.id, content, '']];
48488
49696
  if(content.locals) module.exports = content.locals;
48489
49697
  // add the styles to the DOM
48490
49698
  var add = (__webpack_require__(9548)/* ["default"] */ .A)
48491
- var update = add("430458c6", content, true, {"sourceMap":false,"shadowMode":false});
49699
+ var update = add("06724a92", content, true, {"sourceMap":false,"shadowMode":false});
48492
49700
 
48493
49701
  /***/ }),
48494
49702
 
@@ -48588,19 +49796,19 @@ var update = add("6ee707dc", content, true, {"sourceMap":false,"shadowMode":fals
48588
49796
 
48589
49797
  /***/ }),
48590
49798
 
48591
- /***/ 4394:
49799
+ /***/ 2787:
48592
49800
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
48593
49801
 
48594
49802
  // style-loader: Adds some css to the DOM by adding a <style> tag
48595
49803
 
48596
49804
  // load the styles
48597
- var content = __webpack_require__(3284);
49805
+ var content = __webpack_require__(2357);
48598
49806
  if(content.__esModule) content = content.default;
48599
49807
  if(typeof content === 'string') content = [[module.id, content, '']];
48600
49808
  if(content.locals) module.exports = content.locals;
48601
49809
  // add the styles to the DOM
48602
49810
  var add = (__webpack_require__(9548)/* ["default"] */ .A)
48603
- var update = add("676f3282", content, true, {"sourceMap":false,"shadowMode":false});
49811
+ var update = add("120341e6", content, true, {"sourceMap":false,"shadowMode":false});
48604
49812
 
48605
49813
  /***/ }),
48606
49814
 
@@ -54632,6 +55840,10 @@ service.interceptors.response.use(function (response) {
54632
55840
  body: {}
54633
55841
  };
54634
55842
  } else if (errmsg.indexOf('timeout') !== -1) {
55843
+ // 后台标签页浏览器节流导致超时,静默拒绝避免切换回前台时弹出大量提示
55844
+ if (document.visibilityState === 'hidden') {
55845
+ return Promise.reject(errmsg);
55846
+ }
54635
55847
  return {
54636
55848
  code: 'failure',
54637
55849
  message: '服务接口请求超时,请重试。',
@@ -70735,49 +71947,49 @@ var asyncComponents = [
70735
71947
  ['RichtextEditor', function () {
70736
71948
  return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 9733));
70737
71949
  }], ['PdfTools', function () {
70738
- return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 4508)).then(function (m) {
71950
+ return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 6590)).then(function (m) {
70739
71951
  return m.PdfTools;
70740
71952
  });
70741
71953
  }], ['PdfViewer', function () {
70742
- return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 4508)).then(function (m) {
71954
+ return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 6590)).then(function (m) {
70743
71955
  return m.PdfViewer;
70744
71956
  });
70745
71957
  }],
70746
71958
  // ========== ecmapp/Wflowform 工作流表单子组件 → chunk: m-wflow-form ==========
70747
71959
  ['Attachment', function () {
70748
- return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 5713)).then(function (m) {
71960
+ return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 8388)).then(function (m) {
70749
71961
  return m.Attachment;
70750
71962
  });
70751
71963
  }], ['BodyFile', function () {
70752
- return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 5713)).then(function (m) {
71964
+ return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 8388)).then(function (m) {
70753
71965
  return m.BodyFile;
70754
71966
  });
70755
71967
  }], ['HandleIdea', function () {
70756
- return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 5713)).then(function (m) {
71968
+ return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 8388)).then(function (m) {
70757
71969
  return m.HandleIdea;
70758
71970
  });
70759
71971
  }], ['SelectOuterDeputy', function () {
70760
- return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 5713)).then(function (m) {
71972
+ return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 8388)).then(function (m) {
70761
71973
  return m.SelectOuterDeputy;
70762
71974
  });
70763
71975
  }], ['SubmitHandle', function () {
70764
- return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 5713)).then(function (m) {
71976
+ return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 8388)).then(function (m) {
70765
71977
  return m.SubmitHandle;
70766
71978
  });
70767
71979
  }], ['SubmitDialog', function () {
70768
- return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 5713)).then(function (m) {
71980
+ return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 8388)).then(function (m) {
70769
71981
  return m.SubmitDialog;
70770
71982
  });
70771
71983
  }], ['ShortcutProcessing', function () {
70772
- return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 5713)).then(function (m) {
71984
+ return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 8388)).then(function (m) {
70773
71985
  return m.ShortcutProcessing;
70774
71986
  });
70775
71987
  }], ['WfNodelogList', function () {
70776
- return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 5713)).then(function (m) {
71988
+ return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 8388)).then(function (m) {
70777
71989
  return m.WfNodelogList;
70778
71990
  });
70779
71991
  }], ['WriteToReadIdea', function () {
70780
- return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 5713)).then(function (m) {
71992
+ return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 8388)).then(function (m) {
70781
71993
  return m.WriteToReadIdea;
70782
71994
  });
70783
71995
  }]];
@@ -70801,7 +72013,7 @@ var mappaio_install = function install(Vue) {
70801
72013
  });
70802
72014
 
70803
72015
  // 3. 异步加载工作流引擎插件(独立 chunk)
70804
- Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 7924)).then(function (m) {
72016
+ Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 8838)).then(function (m) {
70805
72017
  Vue.use(m.default || m);
70806
72018
  });
70807
72019
  };
@@ -70827,20 +72039,20 @@ var webSocket = websocket/* default */.A;
70827
72039
 
70828
72040
  // ---------- 工作流相关 ----------
70829
72041
  var WfengineModule = function WfengineModule() {
70830
- return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 7924));
72042
+ return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 8838));
70831
72043
  };
70832
72044
  var WflowformModule = function WflowformModule() {
70833
- return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 5713));
72045
+ return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 8388));
70834
72046
  };
70835
72047
 
70836
72048
  // ---------- 重型功能(PDF/富文本,仅特定页面使用) ----------
70837
72049
  var PdfToolsModule = function PdfToolsModule() {
70838
- return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 4508)).then(function (m) {
72050
+ return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 6590)).then(function (m) {
70839
72051
  return m.PdfTools;
70840
72052
  });
70841
72053
  };
70842
72054
  var PdfViewerModule = function PdfViewerModule() {
70843
- return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 4508)).then(function (m) {
72055
+ return Promise.resolve(/* import() eager */).then(__webpack_require__.bind(__webpack_require__, 6590)).then(function (m) {
70844
72056
  return m.PdfViewer;
70845
72057
  });
70846
72058
  };