/*
 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
(self["webpackChunknocode_component"] = self["webpackChunknocode_component"] || []).push([[80],{

/***/ "./src/base/web/AttachmentPreviewer/Viewer/PDFViewer/style.less":
/*!**********************************************************************!*\
  !*** ./src/base/web/AttachmentPreviewer/Viewer/PDFViewer/style.less ***!
  \**********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"pdf-viewer-container\":\"j3Q5tOkJ_pdf-viewer-container\",\"pdf-viewer-toolbar\":\"ufbowuob_pdf-viewer-toolbar\",\"pdf-viewer-wrapper\":\"MqJbX4j+_pdf-viewer-wrapper\",\"pdf-loading\":\"eEDuZgat_pdf-loading\",\"pdf-failed\":\"_61kFpQK8_pdf-failed\",\"pdf-viewer\":\"N0FOuYbd_pdf-viewer\",\"toolbar-container\":\"_8JGViG88_toolbar-container\",\"page-input\":\"UlCj6jRZ_page-input\",\"pages\":\"_1EgjW9mm_pages\",\"zoom-out-btn\":\"nQreDJfD_zoom-out-btn\",\"zoom-in-btn\":\"PGDnNn4N_zoom-in-btn\",\"rotate-btn\":\"_0nuHXery_rotate-btn\"});\n\n//# sourceURL=webpack://nocode-component/./src/base/web/AttachmentPreviewer/Viewer/PDFViewer/style.less?");

/***/ }),

/***/ "./src/base/web/AttachmentPreviewer/Viewer/PDFViewer/PDFViewer.jsx":
/*!*************************************************************************!*\
  !*** ./src/base/web/AttachmentPreviewer/Viewer/PDFViewer/PDFViewer.jsx ***!
  \*************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/slicedToArray */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/slicedToArray.js\");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/concat */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_parse_int__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/parse-int */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/parse-int.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_parse_int__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_parse_int__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var pdfjs_dist216_legacy_web_pdf_viewer_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! pdfjs-dist216/legacy/web/pdf_viewer.js */ \"../../node_modules/pdfjs-dist216/legacy/web/pdf_viewer.js\");\n/* harmony import */ var pdfjs_dist216_legacy_web_pdf_viewer_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(pdfjs_dist216_legacy_web_pdf_viewer_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var pdfjs_dist216_legacy_build_pdf__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! pdfjs-dist216/legacy/build/pdf */ \"../../node_modules/pdfjs-dist216/legacy/build/pdf.js\");\n/* harmony import */ var pdfjs_dist216_legacy_build_pdf__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(pdfjs_dist216_legacy_build_pdf__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _PDFViewerToolbar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./PDFViewerToolbar */ \"./src/base/web/AttachmentPreviewer/Viewer/PDFViewer/PDFViewerToolbar.jsx\");\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! kd_libs/lodash */ \"webpack/container/remote/kd_libs/lodash\");\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(kd_libs_lodash__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _style_less__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./style.less */ \"./src/base/web/AttachmentPreviewer/Viewer/PDFViewer/style.less\");\n/* harmony import */ var _hooks_useFixArrayPrototypeError__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/hooks/useFixArrayPrototypeError */ \"./src/hooks/useFixArrayPrototypeError.ts\");\n/* harmony import */ var _utils_webTools__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/utils/webTools */ \"./src/utils/webTools.ts\");\n/* harmony import */ var _PreviewerAlertBox__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../PreviewerAlertBox */ \"./src/base/web/AttachmentPreviewer/PreviewerAlertBox.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @/utils */ \"./src/utils/index.ts\");\n\n\n\n\n\n\n// import LoadingGIF from '@/component/common/LoadingGIF'\n\n\n\n\n// import 'react-pdf/dist/esm/Page/AnnotationLayer.css'\n\n\n\n\n\n\n// 解决worker找不到的问题\npdfjs_dist216_legacy_build_pdf__WEBPACK_IMPORTED_MODULE_7__.GlobalWorkerOptions.workerSrc = (typeof window !== 'undefined' ? window : {}).pdfjsWorker = __webpack_require__(/*! pdfjs-dist216/legacy/build/pdf.worker.min.js */ \"../../node_modules/pdfjs-dist216/legacy/build/pdf.worker.min.js\");\nvar PDFViewer = function PDFViewer(_ref) {\n  var url = _ref.url,\n    onLoad = _ref.onLoad,\n    downloadFile = _ref.downloadFile;\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_4__.useState)(0),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState, 2),\n    totalPage = _useState2[0],\n    setTotalPage = _useState2[1];\n  var _useState3 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_4__.useState)(0),\n    _useState4 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState3, 2),\n    currentPage = _useState4[0],\n    setCurrentPage = _useState4[1];\n  var _useState5 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_4__.useState)(false),\n    _useState6 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState5, 2),\n    loading = _useState6[0],\n    setLoading = _useState6[1];\n  var _useState7 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_4__.useState)(false),\n    _useState8 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState7, 2),\n    errorVisible = _useState8[0],\n    setErrorVisible = _useState8[1];\n  var containerRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_4__.useRef)(null);\n  var viewerRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_4__.useRef)(null);\n  var scaleRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_4__.useRef)(1);\n  (0,_hooks_useFixArrayPrototypeError__WEBPACK_IMPORTED_MODULE_11__[\"default\"])();\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {\n    if (!containerRef.current) {\n      return;\n    }\n    var eventBus = new pdfjs_dist216_legacy_web_pdf_viewer_js__WEBPACK_IMPORTED_MODULE_6__.EventBus();\n    viewerRef.current = new pdfjs_dist216_legacy_web_pdf_viewer_js__WEBPACK_IMPORTED_MODULE_6__.PDFViewer({\n      container: containerRef.current,\n      eventBus: eventBus\n    });\n  }, []);\n  var sourceUrl = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_4__.useMemo)(function () {\n    return (0,_utils__WEBPACK_IMPORTED_MODULE_14__.getPublicSourceUrl)();\n  }, []);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {\n    setLoading(true);\n    var options = {\n      url: url,\n      cMapUrl: \"\".concat(sourceUrl, \"public/thirdjs/cmaps/\"),\n      // 预定义Adobe CMaps所在的URL，包括尾部斜杠\n      cMapPacked: true,\n      // 指定Adobe CMaps是否为二进制打包\n      rangeChunkSize: 65536 * 8,\n      // 用于指定每个范围请求获取的最大字节数\n      isEvalSupported: false // 默认为true时存在漏洞!!!\n    };\n    var task = pdfjs_dist216_legacy_build_pdf__WEBPACK_IMPORTED_MODULE_7__.getDocument(options);\n    task.promise.then(function (doc) {\n      var _context, _viewerRef$current;\n      console.log(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default()(_context = \"Document \".concat(url, \" loaded \")).call(_context, doc.numPages, \" page(s)\"));\n      doc.getPage(1).then(function (page) {\n        var _page$getViewport = page.getViewport({\n            scale: 1.5\n          }),\n          width = _page$getViewport.width;\n        var _ref2 = containerRef.current || {},\n          viewerWidth = _ref2.offsetWidth;\n        if (width > viewerWidth) {\n          scaleRef.current = viewerWidth / width;\n          viewerRef.current.currentScale = scaleRef.current;\n        }\n      });\n      (_viewerRef$current = viewerRef.current) === null || _viewerRef$current === void 0 || _viewerRef$current.setDocument(doc);\n      setTotalPage(doc.numPages);\n      setCurrentPage(1);\n      setLoading(false);\n      onLoad && onLoad();\n      errorVisible && setErrorVisible(false);\n    }, function (reason) {\n      var _context2;\n      console.error(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_2___default()(_context2 = \"Error during \".concat(url, \" loading: \")).call(_context2, reason));\n      setLoading(false);\n      onLoad && onLoad();\n      !errorVisible && setErrorVisible(true);\n    });\n    return function () {\n      var _viewerRef$current2, _viewerRef$current2$d;\n      (_viewerRef$current2 = viewerRef.current) === null || _viewerRef$current2 === void 0 || (_viewerRef$current2 = _viewerRef$current2.pdfDocument) === null || _viewerRef$current2 === void 0 || (_viewerRef$current2$d = _viewerRef$current2.destory) === null || _viewerRef$current2$d === void 0 || _viewerRef$current2$d.call(_viewerRef$current2);\n    };\n  }, [url]);\n  var handlePageChange = function handlePageChange(evt) {\n    var value = evt.target.value;\n    setCurrentPage(value);\n  };\n  var handleBlur = function handleBlur(evt) {\n    var value = evt.target.value;\n    if (!/\\d+/.test(value)) {\n      return;\n    }\n    var num = _babel_runtime_corejs3_core_js_stable_parse_int__WEBPACK_IMPORTED_MODULE_3___default()(value, 10);\n    num = num <= 0 ? 1 : num >= totalPage ? totalPage : num;\n    viewerRef.current.currentPageNumber = num;\n    var ele = document.body.querySelector(\"[data-page-number=\\\"\".concat(num, \"\\\"]\"));\n    if (ele) {\n      var offsetTop = ele.offsetTop;\n      containerRef.current.scrollTop = offsetTop;\n    }\n  };\n\n  /**\n   * 缩小\n   */\n  var handleZoomOut = function handleZoomOut() {\n    if (!viewerRef.current || scaleRef.current <= 0.2) {\n      return;\n    }\n    scaleRef.current -= 0.2;\n    viewerRef.current.currentScale = scaleRef.current;\n  };\n\n  /**\n   * 放大\n   */\n  var handleZoomIn = function handleZoomIn() {\n    if (!viewerRef.current || scaleRef.current >= 2) {\n      return;\n    }\n    scaleRef.current += 0.2;\n    viewerRef.current.currentScale = scaleRef.current;\n  };\n\n  /**\n   * 旋转\n   */\n  var handleRotate = function handleRotate() {\n    var newAngle = viewerRef.current.pagesRotation + 90;\n    viewerRef.current.pagesRotation = newAngle === 360 ? 0 : newAngle;\n  };\n  var handleScroll = (0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_9__.debounce)(function () {\n    if (!viewerRef.current) {\n      return;\n    }\n    setCurrentPage(viewerRef.current.currentPageNumber);\n  }, 200);\n  return !errorVisible ? /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_4___default().createElement(\"div\", {\n    className: _style_less__WEBPACK_IMPORTED_MODULE_10__[\"default\"]['pdf-viewer-container']\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_PDFViewerToolbar__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n    className: classnames__WEBPACK_IMPORTED_MODULE_5___default()('kd-cq-attachment-previewer-toolbar', _style_less__WEBPACK_IMPORTED_MODULE_10__[\"default\"]['pdf-viewer-toolbar']),\n    currentPage: currentPage,\n    totalPage: totalPage,\n    onBlur: handleBlur,\n    onPageChange: handlePageChange,\n    onZoomOutClick: handleZoomOut,\n    onZoomInClick: handleZoomIn,\n    onRotateClick: handleRotate\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_4___default().createElement(\"div\", {\n    className: classnames__WEBPACK_IMPORTED_MODULE_5___default()(_style_less__WEBPACK_IMPORTED_MODULE_10__[\"default\"]['pdf-viewer-wrapper']),\n    ref: containerRef,\n    onScroll: handleScroll\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_4___default().createElement(\"div\", {\n    className: classnames__WEBPACK_IMPORTED_MODULE_5___default()(_style_less__WEBPACK_IMPORTED_MODULE_10__[\"default\"]['pdf-viewer'])\n  }))) : /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_PreviewerAlertBox__WEBPACK_IMPORTED_MODULE_13__[\"default\"], {\n    title: \"\\u8BE5\\u6587\\u4EF6\\u6682\\u4E0D\\u652F\\u6301\\u9884\\u89C8\",\n    btnText: \"\\u8BF7\\u4E0B\\u8F7D\\u67E5\\u770B\",\n    onClick: downloadFile\n  });\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (PDFViewer);\n\n//# sourceURL=webpack://nocode-component/./src/base/web/AttachmentPreviewer/Viewer/PDFViewer/PDFViewer.jsx?");

/***/ }),

/***/ "./src/base/web/AttachmentPreviewer/Viewer/PDFViewer/PDFViewerToolbar.jsx":
/*!********************************************************************************!*\
  !*** ./src/base/web/AttachmentPreviewer/Viewer/PDFViewer/PDFViewerToolbar.jsx ***!
  \********************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _style_less__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./style.less */ \"./src/base/web/AttachmentPreviewer/Viewer/PDFViewer/style.less\");\n\n\n\n\nvar PDFViewerToolbar = function PDFViewerToolbar(_ref) {\n  var className = _ref.className,\n    currentPage = _ref.currentPage,\n    _ref$totalPage = _ref.totalPage,\n    totalPage = _ref$totalPage === void 0 ? '' : _ref$totalPage,\n    handlePageChange = _ref.onPageChange,\n    handleBlur = _ref.onBlur,\n    handleZoomOut = _ref.onZoomOutClick,\n    handleZoomIn = _ref.onZoomInClick,\n    handleRotate = _ref.onRotateClick;\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n    className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(_style_less__WEBPACK_IMPORTED_MODULE_3__[\"default\"]['toolbar-container'], className)\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n    className: _style_less__WEBPACK_IMPORTED_MODULE_3__[\"default\"]['left-side']\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"input\", {\n    className: classnames__WEBPACK_IMPORTED_MODULE_1___default()('kd-cq-input', _style_less__WEBPACK_IMPORTED_MODULE_3__[\"default\"]['page-input']),\n    value: currentPage,\n    onChange: handlePageChange,\n    onBlur: handleBlur\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", null, \"/\"), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"span\", {\n    className: _style_less__WEBPACK_IMPORTED_MODULE_3__[\"default\"].pages\n  }, totalPage)), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", {\n    className: _style_less__WEBPACK_IMPORTED_MODULE_3__[\"default\"]['right-side']\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(\"div\", null, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_2__.Icon, {\n    type: \"shrink\",\n    onClick: handleZoomOut,\n    className: _style_less__WEBPACK_IMPORTED_MODULE_3__[\"default\"]['zoom-out-btn']\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_2__.Icon, {\n    type: \"zoom\",\n    onClick: handleZoomIn,\n    className: _style_less__WEBPACK_IMPORTED_MODULE_3__[\"default\"]['zoom-in-btn']\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_0___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_2__.Icon, {\n    type: \"spin\",\n    onClick: handleRotate,\n    className: _style_less__WEBPACK_IMPORTED_MODULE_3__[\"default\"]['rotate-btn']\n  }))));\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (PDFViewerToolbar);\n\n//# sourceURL=webpack://nocode-component/./src/base/web/AttachmentPreviewer/Viewer/PDFViewer/PDFViewerToolbar.jsx?");

/***/ }),

/***/ "./src/hooks/useFixArrayPrototypeError.ts":
/*!************************************************!*\
  !*** ./src/hooks/useFixArrayPrototypeError.ts ***!
  \************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": function() { return /* binding */ useFixArrayPrototypeError; }\n/* harmony export */ });\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"../../node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/define-property */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/object/keys */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n/**\n * pdf.worker.js 中会对 Array.prototype 的方法进行遍历，\n * 如果当中存在可枚举的方法时，会报错\n */\n\n\nvar enumerableProperties = {};\n/**\n * pdf.worker.js 中会对 Array.prototype 的方法进行遍历，\n * 如果当中存在可枚举的方法时，会报错\n */\nfunction fixArrayPrototypeError() {\n  for (var property in []) {\n    enumerableProperties[property] = Array.prototype[property];\n    _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_2___default()(Array.prototype, property, {\n      enumerable: false\n    });\n  }\n}\nfunction resetArrayPrototype() {\n  _babel_runtime_corejs3_core_js_stable_object_keys__WEBPACK_IMPORTED_MODULE_3___default()(enumerableProperties).forEach(function (property) {\n    _babel_runtime_corejs3_core_js_stable_object_define_property__WEBPACK_IMPORTED_MODULE_2___default()(Array.prototype, property, {\n      enumerable: true\n    });\n  });\n  enumerableProperties = {};\n}\nfunction useFixArrayPrototypeError() {\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {\n    fixArrayPrototypeError();\n    return function () {\n      resetArrayPrototype();\n    };\n  }, []);\n}\n\n//# sourceURL=webpack://nocode-component/./src/hooks/useFixArrayPrototypeError.ts?");

/***/ }),

/***/ "?1b85":
/*!************************!*\
  !*** canvas (ignored) ***!
  \************************/
/***/ (function() {

eval("/* (ignored) */\n\n//# sourceURL=webpack://nocode-component/canvas_(ignored)?");

/***/ }),

/***/ "?022b":
/*!********************!*\
  !*** fs (ignored) ***!
  \********************/
/***/ (function() {

eval("/* (ignored) */\n\n//# sourceURL=webpack://nocode-component/fs_(ignored)?");

/***/ }),

/***/ "?7c40":
/*!**********************!*\
  !*** http (ignored) ***!
  \**********************/
/***/ (function() {

eval("/* (ignored) */\n\n//# sourceURL=webpack://nocode-component/http_(ignored)?");

/***/ }),

/***/ "?3a13":
/*!***********************!*\
  !*** https (ignored) ***!
  \***********************/
/***/ (function() {

eval("/* (ignored) */\n\n//# sourceURL=webpack://nocode-component/https_(ignored)?");

/***/ }),

/***/ "?ea48":
/*!*********************!*\
  !*** url (ignored) ***!
  \*********************/
/***/ (function() {

eval("/* (ignored) */\n\n//# sourceURL=webpack://nocode-component/url_(ignored)?");

/***/ }),

/***/ "?dcf6":
/*!**********************!*\
  !*** zlib (ignored) ***!
  \**********************/
/***/ (function() {

eval("/* (ignored) */\n\n//# sourceURL=webpack://nocode-component/zlib_(ignored)?");

/***/ })

}]);