((typeof self !== 'undefined' ? self : this)["webpackJsonpportal_management_std"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpportal_management_std"] || []).push([[35,62,68,89],{

/***/ 1:
/***/ (function(module, exports) {

/* (ignored) */

/***/ }),

/***/ "14c3":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var call = __webpack_require__("c65b");
var anObject = __webpack_require__("825a");
var isCallable = __webpack_require__("1626");
var classof = __webpack_require__("c6b6");
var regexpExec = __webpack_require__("9263");

var $TypeError = TypeError;

// `RegExpExec` abstract operation
// https://tc39.es/ecma262/#sec-regexpexec
module.exports = function (R, S) {
  var exec = R.exec;
  if (isCallable(exec)) {
    var result = call(exec, R, S);
    if (result !== null) anObject(result);
    return result;
  }
  if (classof(R) === 'RegExp') return call(regexpExec, R, S);
  throw new $TypeError('RegExp#exec called on incompatible receiver');
};


/***/ }),

/***/ "2532":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $ = __webpack_require__("23e7");
var uncurryThis = __webpack_require__("e330");
var notARegExp = __webpack_require__("5a34");
var requireObjectCoercible = __webpack_require__("1d80");
var toString = __webpack_require__("577e");
var correctIsRegExpLogic = __webpack_require__("ab13");

var stringIndexOf = uncurryThis(''.indexOf);

// `String.prototype.includes` method
// https://tc39.es/ecma262/#sec-string.prototype.includes
$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
  includes: function includes(searchString /* , position = 0 */) {
    return !!~stringIndexOf(
      toString(requireObjectCoercible(this)),
      toString(notARegExp(searchString)),
      arguments.length > 1 ? arguments[1] : undefined
    );
  }
});


/***/ }),

/***/ "33d1":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $ = __webpack_require__("23e7");
var toObject = __webpack_require__("7b0b");
var lengthOfArrayLike = __webpack_require__("07fa");
var toIntegerOrInfinity = __webpack_require__("5926");
var addToUnscopables = __webpack_require__("44d2");

// `Array.prototype.at` method
// https://tc39.es/ecma262/#sec-array.prototype.at
$({ target: 'Array', proto: true }, {
  at: function at(index) {
    var O = toObject(this);
    var len = lengthOfArrayLike(O);
    var relativeIndex = toIntegerOrInfinity(index);
    var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
    return (k < 0 || k >= len) ? undefined : O[k];
  }
});

addToUnscopables('at');


/***/ }),

/***/ "44e7":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var isObject = __webpack_require__("861d");
var classof = __webpack_require__("c6b6");
var wellKnownSymbol = __webpack_require__("b622");

var MATCH = wellKnownSymbol('match');

// `IsRegExp` abstract operation
// https://tc39.es/ecma262/#sec-isregexp
module.exports = function (it) {
  var isRegExp;
  return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) === 'RegExp');
};


/***/ }),

/***/ "5a34":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var isRegExp = __webpack_require__("44e7");

var $TypeError = TypeError;

module.exports = function (it) {
  if (isRegExp(it)) {
    throw new $TypeError("The method doesn't accept regular expressions");
  } return it;
};


/***/ }),

/***/ "6941":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"29850416-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/windicss-webpack-plugin/dist/loaders/windicss-template.cjs!./src/modules/portal-management/views/information-publish/ColumnPublishManagement/PreviewDialog.vue?vue&type=template&id=5854e44e&scoped=true
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],staticClass:"mid-dialog ",attrs:{"title":"预览","visible":_vm.dialogVisible,"close-on-click-modal":false,"before-close":_vm.closeDialog,"append-to-body":""},on:{"update:visible":function($event){_vm.dialogVisible=$event}}},[_c('div',{staticClass:"flex detail-w justify-center"},[_c('div',{staticClass:"float-left mx-auto",class:_vm.data.isShowSidebar ? 'w-880px' : 'w-1180px'},[_c('div',{staticClass:"border-1px border-[#ccc] py-20px"},[_c('div',{ref:"columnDetail"},[_c('div',{staticClass:"px-50px"},[_c('div',{staticClass:"text-25px font-bold text-center !leading-33px detail-info text-[#000]"},[_vm._v("\n              "+_vm._s(_vm.detailInfo.title)+"\n            ")]),(_vm.detailInfo.subtitle)?_c('div',{staticClass:"text-18px text-center mt-10px leading-24px detail-info text-[#000]"},[_vm._v("\n              "+_vm._s(_vm.detailInfo.subtitle)+"\n            ")]):_vm._e(),_c('div',{staticClass:"flex justify-center mt-10px text-12px !leading-18px text-hex-333 detail-info"},[(_vm.data.textAuthorName || _vm.detailInfo.textAuthorName)?_c('div',{staticClass:"mr-15px text-center"},[_vm._v("\n                文字作者："+_vm._s(_vm.data.textAuthorName || _vm.detailInfo.textAuthorName)+"\n              ")]):_vm._e(),(_vm.data.imageAuthorName || _vm.detailInfo.imageAuthorName)?_c('div',{staticClass:"mr-15px text-center"},[_vm._v("\n                图片作者："+_vm._s(_vm.data.imageAuthorName || _vm.detailInfo.imageAuthorName)+"\n              ")]):_vm._e(),(_vm.data.videoAuthorName || _vm.detailInfo.videoAuthorName)?_c('div',{staticClass:"mr-15px text-center"},[_vm._v("\n                视频作者："+_vm._s(_vm.data.videoAuthorName || _vm.detailInfo.videoAuthorName)+"\n              ")]):_vm._e(),_c('div',{staticClass:"mr-15px text-center"},[_vm._v("\n                部门："+_vm._s(_vm.data.deptSourceName || _vm.detailInfo.deptSourceName)+"\n              ")]),_c('div',{staticClass:"text-center"},[_vm._v("\n                发布时间：\n                "+_vm._s(_vm.detailInfo.editPublishTime
                    ? _vm.dayjs(_vm.detailInfo.editPublishTime).format('YYYY-MM-DD HH:mm:ss')
                    : '')+"\n              ")])])]),_c('div',{staticClass:"border-top-1px border-color-ccc mt-15px mb-10px"}),_c('div',{staticClass:"px-50px"},[_c('div',{staticClass:"ql-container ql-snow"},[(_vm.isVideoColumn)?_c('div',{staticClass:"w-full pb-30px"},[_c('video',{staticClass:"mx-auto",staticStyle:{"width":"80%","height":"500px"},attrs:{"src":_vm.videoSrc,"controls":""}})]):(
                  (!_vm.dataId && (!_vm.data.content || _vm.data.content === '<p><br></p>')) ||
                    !_vm.detailInfo.content ||
                    _vm.detailInfo.content === '<p><br></p>'
                )?_c('div',[(
                    (_vm.data.uploadNotification || _vm.detailInfo.uploadNotification) &&
                      (_vm.isTextColumn || _vm.isImageTextColumn) &&
                      _vm.column.categoryCode !== '0'
                  )?_c('iframe',{ref:"pdfView",staticClass:"w-full h-0px",attrs:{"src":("/lib/pdfjs/web/viewer.html?file=" + _vm.pdfUrl),"frameborder":"0"},on:{"load":_vm.pdfViewOnload}}):_vm._e(),(
                    (_vm.data.attachFile || _vm.detailInfo.attachFile) &&
                      (_vm.isTextColumn || _vm.isImageTextColumn) &&
                      _vm.column.categoryCode !== '0'
                  )?_c('div',{staticClass:"flex mt-15px"},[_c('div',[_vm._v("附件：")]),_c('div',{staticClass:"flex-1"},_vm._l((_vm.attachFileList),function(item,index){return _c('div',{key:index},[_c('a',{staticClass:"underline hyperlink-color mr-50px",attrs:{"href":item.attachFileDownloadUrl,"target":"_blank"}},[_vm._v(_vm._s(item.attachFileName))])])}),0)]):_vm._e(),_c('div',{ref:"richText",staticClass:"ql-editor",domProps:{"innerHTML":_vm._s(_vm.data.content || _vm.detailInfo.content)}})]):_c('div',[_c('div',{ref:"richText",staticClass:"ql-editor",domProps:{"innerHTML":_vm._s(_vm.data.content || _vm.detailInfo.content)}}),(
                    (_vm.data.uploadNotification || _vm.detailInfo.uploadNotification) &&
                      (_vm.isTextColumn || _vm.isImageTextColumn) &&
                      _vm.column.categoryCode !== '0'
                  )?_c('iframe',{ref:"pdfView",staticClass:"w-full h-500px",attrs:{"src":("/lib/pdfjs/web/viewer.html?file=" + _vm.pdfUrl),"frameborder":"0"},on:{"load":_vm.pdfViewOnload}}):_vm._e()])])])]),(
            (_vm.isTextColumn || _vm.isImageTextColumn) &&
              _vm.column.categoryCode !== '0' &&
              ((_vm.detailInfo.attachFile &&
                _vm.detailInfo.content &&
                _vm.detailInfo.content !== '<p><br></p>') ||
                (_vm.data.attachFile && _vm.data.content && _vm.data.content !== '<p><br></p>'))
          )?_c('div',{staticClass:"mt-30px flex px-50px"},[_c('div',[_vm._v("\n            附件：\n          ")]),_c('div',{staticClass:"flex-1"},_vm._l((_vm.attachFileList),function(item,index){return _c('div',{key:index},[_c('a',{staticClass:"underline hyperlink-color mr-50px",attrs:{"href":item.attachFileDownloadUrl,"target":"_blank"}},[_vm._v(_vm._s(item.attachFileName))])])}),0)]):_vm._e()])])])])}
var staticRenderFns = []


// CONCATENATED MODULE: ./src/modules/portal-management/views/information-publish/ColumnPublishManagement/PreviewDialog.vue?vue&type=template&id=5854e44e&scoped=true

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js + 1 modules
var objectSpread2 = __webpack_require__("5530");

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__("c7eb");

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 3 modules
var slicedToArray = __webpack_require__("3835");

// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
var asyncToGenerator = __webpack_require__("1da1");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.at.js
var es_array_at = __webpack_require__("33d1");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
var es_array_concat = __webpack_require__("99af");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
var es_array_includes = __webpack_require__("caad");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
var es_array_push = __webpack_require__("14d9");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
var es_function_name = __webpack_require__("b0c0");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
var es_object_to_string = __webpack_require__("d3b7");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
var es_regexp_exec = __webpack_require__("ac1f");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.at-alternative.js
var es_string_at_alternative = __webpack_require__("ea98");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
var es_string_includes = __webpack_require__("2532");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
var es_string_match = __webpack_require__("466d");

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
var es_string_replace = __webpack_require__("5319");

// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
var web_dom_collections_for_each = __webpack_require__("159b");

// EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
var dayjs_min = __webpack_require__("5a0c");
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);

// EXTERNAL MODULE: ./node_modules/@wiz-api/workbench-std/lib/workbench-std.umd.js
var workbench_std_umd = __webpack_require__("78a9");

// EXTERNAL MODULE: ./node_modules/@wiz-api/file-management/lib/file-management.umd.js
var file_management_umd = __webpack_require__("3c33");

// EXTERNAL MODULE: ./src/modules/portal-management/js/config.js
var config = __webpack_require__("e2d8");

// EXTERNAL MODULE: ./node_modules/quill/dist/quill.core.css
var quill_core = __webpack_require__("a753");

// EXTERNAL MODULE: ./node_modules/quill/dist/quill.snow.css
var quill_snow = __webpack_require__("8096");

// EXTERNAL MODULE: ./node_modules/quill/dist/quill.bubble.css
var quill_bubble = __webpack_require__("14e1");

// CONCATENATED MODULE: ./node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib??ref--12-1!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/windicss-webpack-plugin/dist/loaders/windicss-template.cjs!./src/modules/portal-management/views/information-publish/ColumnPublishManagement/PreviewDialog.vue?vue&type=script&lang=js
















//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//








var columnTypes = config["f" /* informationPublishMap */].column;
var columnTextType = columnTypes.columnText; // 文字栏目
var columnImgTextType = columnTypes.columnImgText; // 图文栏目
var columnVideoType = columnTypes.columnVideo; // 视频栏目
var columnTableApi = new workbench_std_umd["ColumnTableApi"]();
var columApi = new workbench_std_umd["ColumApi"]();
var fileApi = new file_management_umd["FileApi"]();
/* harmony default export */ var PreviewDialogvue_type_script_lang_js = ({
  props: {
    visible: {
      type: Boolean,
      default: false
    },
    data: {
      type: Object,
      required: true
    }
  },
  computed: {
    dialogVisible: {
      get: function get() {
        return this.visible;
      },
      set: function set(val) {
        this.$emit('update:visible', val);
      }
    },
    isVideoColumn: function isVideoColumn() {
      return this.type === columnVideoType;
    },
    isTextColumn: function isTextColumn() {
      return this.type === columnTextType;
    },
    isImageTextColumn: function isImageTextColumn() {
      return this.type === columnImgTextType;
    },
    dataId: function dataId() {
      return this.data.id;
    },
    videoUrl: function videoUrl() {
      var fileServer = Wiz.GetModuleServer('file-management');
      return "".concat(fileServer, "/api/file-management/files/");
    },
    pdfUrl: function pdfUrl() {
      var fileId = this.data.uploadNotification || this.detailInfo.uploadNotification;
      return encodeURIComponent("".concat(this.fileUrl, "preview/").concat(fileId, "?contentType=application/pdf"));
    },
    fileUrl: function fileUrl() {
      var fileServer = Wiz.GetModuleServer('file-management');
      return "".concat(fileServer, "/api/file-management/files/public/");
    }
  },
  watch: {
    // dataId: {
    //   immediate: true,
    //   handler(val) {
    //     if (val) {
    //       const type = this.data.type || ''
    //       this.type = type * 1
    //       this.getColumnDetail(val, type * 1)
    //     }
    //   },
    // },
    dialogVisible: function dialogVisible(val) {
      if (val && this.dataId) {
        var type = this.data.type || '';
        this.type = type * 1;
        this.getColumnDetail(this.dataId, type * 1);
      }
    }
  },
  data: function data() {
    return {
      type: '',
      videoSrc: '',
      attachFileList: [],
      // 附件信息
      detailInfo: {},
      // 详情
      column: {
        categoryCode: '0'
      },
      columnId: ''
    };
  },
  methods: {
    getColumn: function getColumn() {
      var _this = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee() {
        var _yield$columApi$getCo, _yield$columApi$getCo2, err, res;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee$(_context) {
          while (1) switch (_context.prev = _context.next) {
            case 0:
              _context.next = 2;
              return columApi.getColumnDetail(_this.columnId);
            case 2:
              _yield$columApi$getCo = _context.sent;
              _yield$columApi$getCo2 = Object(slicedToArray["a" /* default */])(_yield$columApi$getCo, 2);
              err = _yield$columApi$getCo2[0];
              res = _yield$columApi$getCo2[1];
              if (!err) {
                _this.column = res;
              }
            case 7:
            case "end":
              return _context.stop();
          }
        }, _callee);
      }))();
    },
    closeDialog: function closeDialog(done) {
      this.dialogVisible = false;
      this.attachFileList = [];
    },
    pdfViewOnload: function pdfViewOnload() {
      var _this2 = this;
      var primaryColor = document.querySelector(':root').style.getPropertyValue('--portalPrimaryColor');
      var contentWindow = this.$refs.pdfView.contentWindow;
      var contentDocument = contentWindow.document;
      setTimeout(function () {
        var _resetFunction = function resetFunction(e) {
          if (e.pageNumber === contentWindow.PDFViewerApplication.pagesCount) {
            var maxWidth = contentDocument.body.offsetWidth;
            _.forEach(contentDocument.getElementsByClassName('page'), function (item) {
              var actualWidth = item.offsetWidth / contentWindow.PDFViewerApplication.toolbar.pageScale;
              if (actualWidth > maxWidth) {
                maxWidth = actualWidth;
              }
            });
            contentWindow.PDFViewerApplication.eventBus.dispatch('scalechanged', {
              source: contentWindow.PDFViewerApplication.toolbar,
              value: _.round(contentDocument.body.offsetWidth / maxWidth, 2)
            });
            _this2.$refs.pdfView.style.height = "".concat(contentDocument.getElementById('viewer').offsetHeight + 100, "px");
            contentWindow.PDFViewerApplication.eventBus.off('textlayerrendered', _resetFunction);
          }
        };
        contentWindow.PDFViewerApplication.eventBus.on('textlayerrendered', _resetFunction);
      }, 100);
      // 调整pdf预览样式颜色与主题色一致
      contentDocument.body.style.backgroundColor = 'unset';
      contentDocument.getElementById('toolbarContainer').style.backgroundImage = 'unset';
      contentDocument.getElementById('toolbarContainer').style.backgroundColor = primaryColor;
      contentDocument.getElementById('toolbarSidebar').style.backgroundColor = primaryColor;
      contentDocument.getElementById('toolbarSidebar').style.backgroundImage = 'unset';
      contentDocument.getElementById('findbar').style.backgroundColor = primaryColor;
      contentDocument.getElementById('findbar').style.backgroundImage = 'unset';
      contentDocument.getElementById('secondaryToolbar').style.backgroundColor = primaryColor;
      contentDocument.getElementById('secondaryToolbar').style.backgroundImage = 'unset';
      var selectOptions = contentDocument.querySelectorAll('.dropdownToolbarButton > select > option');
      if (selectOptions) {
        selectOptions.forEach(function (item) {
          item.style.backgroundColor = primaryColor;
        });
      }
      var timer = setInterval(function () {
        if (contentWindow.PDFViewerApplication.pdfDocument) {
          clearInterval(timer);
          _this2.$refs.pdfView.style.height = "".concat(contentDocument.getElementById('viewer').offsetHeight + 100, "px");
          setTimeout(function () {
            _this2.$refs.pdfView.style.height = "".concat(contentDocument.getElementById('viewer').offsetHeight + 100, "px");
          }, 500);
          // 缩小
          contentDocument.getElementById('zoomIn').onclick = function () {
            _this2.$refs.pdfView.style.height = "".concat(contentDocument.getElementById('viewer').offsetHeight + 100, "px");
          };
          // 放大
          contentDocument.getElementById('zoomOut').onclick = function () {
            _this2.$refs.pdfView.style.height = "".concat(contentDocument.getElementById('viewer').offsetHeight + 100, "px");
          };
          // 缩放下拉切换
          contentDocument.getElementById('scaleSelect').onchange = function () {
            _this2.$refs.pdfView.style.height = "".concat(contentDocument.getElementById('viewer').offsetHeight + 100, "px");
          };
        }
      }, 500);
      if (!this.detailInfo.isAllowDownload) {
        contentDocument.querySelector('.toolbarButton.download').style.display = 'none';
        contentDocument.querySelector('.toolbarButton.print').style.display = 'none';
      }
    },
    getColumnDetail: function getColumnDetail(id, type) {
      var _this3 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee2() {
        var err, res, _yield$columnTableApi, _yield$columnTableApi2, _yield$columnTableApi3, _yield$columnTableApi4, _yield$columnTableApi5, _yield$columnTableApi6;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee2$(_context2) {
          while (1) switch (_context2.prev = _context2.next) {
            case 0:
              _this3.attachFileList = [];
              if (!(type === columnTextType)) {
                _context2.next = 14;
                break;
              }
              ;
              _context2.next = 5;
              return columnTableApi.getTextColumnTableDetail(id);
            case 5:
              _yield$columnTableApi = _context2.sent;
              _yield$columnTableApi2 = Object(slicedToArray["a" /* default */])(_yield$columnTableApi, 2);
              err = _yield$columnTableApi2[0];
              res = _yield$columnTableApi2[1];
              if (err) {
                _context2.next = 14;
                break;
              }
              // res.author = res.textAuthorName
              _this3.columnId = res.columnId;
              _context2.next = 13;
              return _this3.getColumn();
            case 13:
              _this3.handleAttachFile(res);
            case 14:
              if (!(type === columnImgTextType)) {
                _context2.next = 27;
                break;
              }
              ;
              _context2.next = 18;
              return columnTableApi.getImageColumnTableDetail(id);
            case 18:
              _yield$columnTableApi3 = _context2.sent;
              _yield$columnTableApi4 = Object(slicedToArray["a" /* default */])(_yield$columnTableApi3, 2);
              err = _yield$columnTableApi4[0];
              res = _yield$columnTableApi4[1];
              if (err) {
                _context2.next = 27;
                break;
              }
              // res.author = res.textAuthorName
              _this3.columnId = res.columnId;
              _context2.next = 26;
              return _this3.getColumn();
            case 26:
              _this3.handleAttachFile(res);
            case 27:
              if (!(type === columnVideoType)) {
                _context2.next = 42;
                break;
              }
              ;
              _context2.next = 31;
              return columnTableApi.getVideoColumnTableDetail({
                id: id
              });
            case 31:
              _yield$columnTableApi5 = _context2.sent;
              _yield$columnTableApi6 = Object(slicedToArray["a" /* default */])(_yield$columnTableApi5, 2);
              err = _yield$columnTableApi6[0];
              res = _yield$columnTableApi6[1];
              if (err) {
                _context2.next = 42;
                break;
              }
              // res.author = res.videoAuthorName
              _this3.columnId = res.columnId;
              res.videoSrc = "".concat(_this3.videoUrl).concat(res.videoFile, "/play-video");
              _context2.next = 40;
              return _this3.getColumn();
            case 40:
              _this3.handleVideo(res.videoFile);
              _this3.handleAttachFile(res);
            case 42:
            case "end":
              return _context2.stop();
          }
        }, _callee2);
      }))();
    },
    handleAttachFile: function handleAttachFile(res) {
      var _this4 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee3() {
        var _this4$data;
        var attachFile, fileIdList;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee3$(_context3) {
          while (1) switch (_context3.prev = _context3.next) {
            case 0:
              res.creationTime = dayjs_min_default()(res.creationTime).format('YYYY-MM-DD HH:mm:ss');
              attachFile = ((_this4$data = _this4.data) === null || _this4$data === void 0 ? void 0 : _this4$data.attachFile) || res.attachFile;
              if (attachFile) {
                fileIdList = attachFile.split(',');
                _this4.getAttachFileDownloadInfo(fileIdList, 0);
              }
              _this4.detailInfo = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, res), {}, {
                content: _this4.replaceTableWidth(res.content)
              });
            case 4:
            case "end":
              return _context3.stop();
          }
        }, _callee3);
      }))();
    },
    getAttachFileDownloadInfo: function getAttachFileDownloadInfo(fileIdList, index) {
      var _this5 = this;
      return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/Object(regeneratorRuntime["a" /* default */])().mark(function _callee4() {
        var fileId, _yield$fileApi$get, _yield$fileApi$get2, error, result, fileType, contentType;
        return Object(regeneratorRuntime["a" /* default */])().wrap(function _callee4$(_context4) {
          while (1) switch (_context4.prev = _context4.next) {
            case 0:
              if (!(index >= fileIdList.length)) {
                _context4.next = 2;
                break;
              }
              return _context4.abrupt("return");
            case 2:
              fileId = fileIdList[index];
              if (fileId) {
                _context4.next = 6;
                break;
              }
              _this5.getAttachFileDownloadInfo(fileIdList, index + 1);
              return _context4.abrupt("return");
            case 6:
              _context4.next = 8;
              return fileApi.get(fileId);
            case 8:
              _yield$fileApi$get = _context4.sent;
              _yield$fileApi$get2 = Object(slicedToArray["a" /* default */])(_yield$fileApi$get, 2);
              error = _yield$fileApi$get2[0];
              result = _yield$fileApi$get2[1];
              if (!error) {
                fileType = result.name.split('.').at(-1).toLowerCase();
                if (['pdf', 'jpg', 'jpeg', 'png', 'mp4'].includes(fileType)) {
                  contentType = {
                    png: 'image/png',
                    jpeg: 'image/jpeg',
                    jpg: 'image/jpeg',
                    mp4: 'video/mp4',
                    pdf: 'application/pdf'
                  };
                  _this5.attachFileList.push({
                    id: fileId,
                    attachFileName: result.name,
                    attachFileDownloadUrl: "".concat(_this5.routerBase, "/integration/attachments-view?fileId=").concat(fileId, "&fileName=").concat(result.name, "&contentType=").concat(contentType[fileType])
                  });
                } else {
                  _this5.attachFileList.push({
                    id: fileId,
                    attachFileName: result.name,
                    attachFileDownloadUrl: "".concat(_this5.videoUrl).concat(fileId, "/download")
                  });
                }
              }
              _this5.getAttachFileDownloadInfo(fileIdList, index + 1);
            case 14:
            case "end":
              return _context4.stop();
          }
        }, _callee4);
      }))();
    },
    replaceTableWidth: function replaceTableWidth(htmlText) {
      if (!htmlText) {
        return '';
      }
      // 处理历史数据中段落起始为三个空格为两个空格
      if (htmlText.includes('<p>&nbsp; &nbsp; &nbsp;')) {
        htmlText = htmlText.replace('<p>&nbsp; &nbsp; &nbsp;', '<p>&nbsp; &nbsp;');
      }
      // 处理quill-better-table表格超出宽度问题
      if (htmlText.includes('quill-better-table')) {
        var tempDiv = document.createElement('div');
        tempDiv.innerHTML = htmlText;
        var colgroupList = tempDiv.querySelectorAll('.quill-better-table colgroup');
        colgroupList.forEach(function (item) {
          item.remove();
        });
        htmlText = tempDiv.innerHTML;
      }
      // 使用正则表达式匹配<table>标签
      var tableRegex = /<table\b[^>]*>/i;
      var tableMatches = htmlText.match(tableRegex);
      if (tableMatches) {
        // 遍历匹配到的<table>标签
        _.forEach(tableMatches, function (item) {
          // 判断是否设置了width属性
          var widthRegex = /width=['"]([^'"]+)['"]/i;
          var widthMatch = item.match(widthRegex);
          if (widthMatch) {
            var width = parseInt(widthMatch[[1]], 10);
            // 如果宽度超过780，则替换为780
            if (width > 780) {
              var newTableMatch = item.replace(widthMatch[0], 'width="780"');
              htmlText = htmlText.replace(item, newTableMatch);
              item = newTableMatch;
            }
          }
          // 判断是否存在style属性，并且style中是否设置了width
          var styleRegex = /style=['"]([^'"]+)['"]/i;
          var styleMatch = item.match(styleRegex);
          if (styleMatch) {
            var style = styleMatch[[1]];
            var newStyle = style.replace(/width:\s?[^;]+;/i, item.includes('quill-better-table') ? '' : 'table-layout: unset;');
            var _newTableMatch = item.replace(styleMatch[0], "style=\"".concat(newStyle, "\""));
            htmlText = htmlText.replace(item, _newTableMatch);
          }
        });
      }
      return htmlText;
    },
    handleVideo: function handleVideo(videoFileId) {
      this.videoSrc = "".concat(this.videoUrl).concat(videoFileId, "/play-video");
    }
  }
});
// CONCATENATED MODULE: ./src/modules/portal-management/views/information-publish/ColumnPublishManagement/PreviewDialog.vue?vue&type=script&lang=js
 /* harmony default export */ var ColumnPublishManagement_PreviewDialogvue_type_script_lang_js = (PreviewDialogvue_type_script_lang_js); 
// EXTERNAL MODULE: ./src/modules/portal-management/views/information-publish/ColumnPublishManagement/PreviewDialog.vue?vue&type=style&index=0&id=5854e44e&prod&lang=scss&scoped=true
var PreviewDialogvue_type_style_index_0_id_5854e44e_prod_lang_scss_scoped_true = __webpack_require__("c6a6");

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__("2877");

// CONCATENATED MODULE: ./src/modules/portal-management/views/information-publish/ColumnPublishManagement/PreviewDialog.vue






/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  ColumnPublishManagement_PreviewDialogvue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  null,
  "5854e44e",
  null
  
)

/* harmony default export */ var PreviewDialog = __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ "805c":
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__("9cf4");
if(content.__esModule) content = content.default;
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("499e").default
var update = add("d1ecad24", content, true, {"sourceMap":false,"shadowMode":false});

/***/ }),

/***/ "99af":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $ = __webpack_require__("23e7");
var fails = __webpack_require__("d039");
var isArray = __webpack_require__("e8b5");
var isObject = __webpack_require__("861d");
var toObject = __webpack_require__("7b0b");
var lengthOfArrayLike = __webpack_require__("07fa");
var doesNotExceedSafeInteger = __webpack_require__("3511");
var createProperty = __webpack_require__("8418");
var arraySpeciesCreate = __webpack_require__("65f0");
var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
var wellKnownSymbol = __webpack_require__("b622");
var V8_VERSION = __webpack_require__("1212");

var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');

// We can't use this feature detection in V8 since it causes
// deoptimization and serious performance degradation
// https://github.com/zloirock/core-js/issues/679
var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
  var array = [];
  array[IS_CONCAT_SPREADABLE] = false;
  return array.concat()[0] !== array;
});

var isConcatSpreadable = function (O) {
  if (!isObject(O)) return false;
  var spreadable = O[IS_CONCAT_SPREADABLE];
  return spreadable !== undefined ? !!spreadable : isArray(O);
};

var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');

// `Array.prototype.concat` method
// https://tc39.es/ecma262/#sec-array.prototype.concat
// with adding support of @@isConcatSpreadable and @@species
$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
  // eslint-disable-next-line no-unused-vars -- required for `.length`
  concat: function concat(arg) {
    var O = toObject(this);
    var A = arraySpeciesCreate(O, 0);
    var n = 0;
    var i, k, length, len, E;
    for (i = -1, length = arguments.length; i < length; i++) {
      E = i === -1 ? O : arguments[i];
      if (isConcatSpreadable(E)) {
        len = lengthOfArrayLike(E);
        doesNotExceedSafeInteger(n + len);
        for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
      } else {
        doesNotExceedSafeInteger(n + 1);
        createProperty(A, n++, E);
      }
    }
    A.length = n;
    return A;
  }
});


/***/ }),

/***/ "9cf4":
/***/ (function(module, exports, __webpack_require__) {

exports = module.exports = __webpack_require__("2350")(false);
// imports


// module
exports.push([module.i, "[data-v-5854e44e] .el-dialog{width:1240px!important}[data-v-5854e44e] .ql-container.ql-snow{border:none}.ql-editor[data-v-5854e44e]{padding:12px 0}", ""]);

// exports


/***/ }),

/***/ "ab13":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var wellKnownSymbol = __webpack_require__("b622");

var MATCH = wellKnownSymbol('match');

module.exports = function (METHOD_NAME) {
  var regexp = /./;
  try {
    '/./'[METHOD_NAME](regexp);
  } catch (error1) {
    try {
      regexp[MATCH] = false;
      return '/./'[METHOD_NAME](regexp);
    } catch (error2) { /* empty */ }
  } return false;
};


/***/ }),

/***/ "c6a6":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _node_modules_windicss_webpack_plugin_dist_loaders_windicss_style_pitcher_cjs_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_windicss_webpack_plugin_dist_loaders_windicss_template_cjs_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PreviewDialog_vue_vue_type_style_index_0_id_5854e44e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("805c");
/* harmony import */ var _node_modules_windicss_webpack_plugin_dist_loaders_windicss_style_pitcher_cjs_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_windicss_webpack_plugin_dist_loaders_windicss_template_cjs_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PreviewDialog_vue_vue_type_style_index_0_id_5854e44e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_windicss_webpack_plugin_dist_loaders_windicss_style_pitcher_cjs_node_modules_vue_style_loader_index_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_windicss_webpack_plugin_dist_loaders_windicss_template_cjs_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PreviewDialog_vue_vue_type_style_index_0_id_5854e44e_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */


/***/ }),

/***/ "caad":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $ = __webpack_require__("23e7");
var $includes = __webpack_require__("4d64").includes;
var fails = __webpack_require__("d039");
var addToUnscopables = __webpack_require__("44d2");

// FF99+ bug
var BROKEN_ON_SPARSE = fails(function () {
  // eslint-disable-next-line es/no-array-prototype-includes -- detection
  return !Array(1).includes();
});

// `Array.prototype.includes` method
// https://tc39.es/ecma262/#sec-array.prototype.includes
$({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
  includes: function includes(el /* , fromIndex = 0 */) {
    return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
  }
});

// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables('includes');


/***/ }),

/***/ "d784":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

// TODO: Remove from `core-js@4` since it's moved to entry points
__webpack_require__("ac1f");
var call = __webpack_require__("c65b");
var defineBuiltIn = __webpack_require__("cb2d");
var regexpExec = __webpack_require__("9263");
var fails = __webpack_require__("d039");
var wellKnownSymbol = __webpack_require__("b622");
var createNonEnumerableProperty = __webpack_require__("9112");

var SPECIES = wellKnownSymbol('species');
var RegExpPrototype = RegExp.prototype;

module.exports = function (KEY, exec, FORCED, SHAM) {
  var SYMBOL = wellKnownSymbol(KEY);

  var DELEGATES_TO_SYMBOL = !fails(function () {
    // String methods call symbol-named RegExp methods
    var O = {};
    O[SYMBOL] = function () { return 7; };
    return ''[KEY](O) !== 7;
  });

  var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
    // Symbol-named RegExp methods call .exec
    var execCalled = false;
    var re = /a/;

    if (KEY === 'split') {
      // We can't use real regex here since it causes deoptimization
      // and serious performance degradation in V8
      // https://github.com/zloirock/core-js/issues/306
      re = {};
      // RegExp[@@split] doesn't call the regex's exec method, but first creates
      // a new one. We need to return the patched regex when creating the new one.
      re.constructor = {};
      re.constructor[SPECIES] = function () { return re; };
      re.flags = '';
      re[SYMBOL] = /./[SYMBOL];
    }

    re.exec = function () {
      execCalled = true;
      return null;
    };

    re[SYMBOL]('');
    return !execCalled;
  });

  if (
    !DELEGATES_TO_SYMBOL ||
    !DELEGATES_TO_EXEC ||
    FORCED
  ) {
    var nativeRegExpMethod = /./[SYMBOL];
    var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
      var $exec = regexp.exec;
      if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
        if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
          // The native String method already delegates to @@method (this
          // polyfilled function), leasing to infinite recursion.
          // We avoid it by directly calling the native @@method method.
          return { done: true, value: call(nativeRegExpMethod, regexp, str, arg2) };
        }
        return { done: true, value: call(nativeMethod, str, regexp, arg2) };
      }
      return { done: false };
    });

    defineBuiltIn(String.prototype, KEY, methods[0]);
    defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
  }

  if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
};


/***/ }),

/***/ "ea98":
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var $ = __webpack_require__("23e7");
var uncurryThis = __webpack_require__("e330");
var requireObjectCoercible = __webpack_require__("1d80");
var toIntegerOrInfinity = __webpack_require__("5926");
var toString = __webpack_require__("577e");
var fails = __webpack_require__("d039");

var charAt = uncurryThis(''.charAt);

var FORCED = fails(function () {
  // eslint-disable-next-line es/no-string-prototype-at -- safe
  return '𠮷'.at(-2) !== '\uD842';
});

// `String.prototype.at` method
// https://tc39.es/ecma262/#sec-string.prototype.at
$({ target: 'String', proto: true, forced: FORCED }, {
  at: function at(index) {
    var S = toString(requireObjectCoercible(this));
    var len = S.length;
    var relativeIndex = toIntegerOrInfinity(index);
    var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
    return (k < 0 || k >= len) ? undefined : charAt(S, k);
  }
});


/***/ })

}]);
//# sourceMappingURL=portal-management-std.umd.35.js.map