/*
 * 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([[684],{

/***/ "./src/base/mobile/AttachmentPreviewer/previewer/PDFPreviewer.less":
/*!*************************************************************************!*\
  !*** ./src/base/mobile/AttachmentPreviewer/previewer/PDFPreviewer.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\"] = ({\"btn-div\":\"Dbjhp+Pg_btn-div\",\"base-btn\":\"+vDwVRk-_base-btn\",\"zoom-in\":\"REw-Zd22_zoom-in\",\"zoom-out\":\"_3-O1lAkx_zoom-out\",\"rotate\":\"lo5yT22r_rotate\",\"wait-load-data\":\"Gs00UDNh_wait-load-data\",\"loadingtext\":\"pKMpYqR+_loadingtext\",\"errtext\":\"in+HDDWR_errtext\",\"errmsg\":\"_3w3hKZZr_errmsg\",\"pdf-viewer-container\":\"X0Q+Yl5G_pdf-viewer-container\",\"pdf-viewer-wrapper\":\"C9sM7hEL_pdf-viewer-wrapper\",\"pdf-viewer\":\"DjOTL3dY_pdf-viewer\"});\n\n//# sourceURL=webpack://nocode-component/./src/base/mobile/AttachmentPreviewer/previewer/PDFPreviewer.less?");

/***/ }),

/***/ "./src/base/mobile/AttachmentPreviewer/previewer/PDFPreviewer.jsx":
/*!************************************************************************!*\
  !*** ./src/base/mobile/AttachmentPreviewer/previewer/PDFPreviewer.jsx ***!
  \************************************************************************/
/***/ (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 */   ErrDom: function() { return /* binding */ ErrDom; },\n/* harmony export */   Loading: function() { return /* binding */ Loading; }\n/* harmony export */ });\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_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __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_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __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_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! kd_libs/react */ \"webpack/container/remote/kd_libs/react\");\n/* harmony import */ var kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(kd_libs_react__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var pdfjs_dist_es5_web_pdf_viewer_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! pdfjs-dist/es5/web/pdf_viewer.js */ \"../../node_modules/pdfjs-dist/es5/web/pdf_viewer.js\");\n/* harmony import */ var pdfjs_dist_es5_web_pdf_viewer_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(pdfjs_dist_es5_web_pdf_viewer_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var pdfjs_dist_es5_build_pdf__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! pdfjs-dist/es5/build/pdf */ \"../../node_modules/pdfjs-dist/es5/build/pdf.js\");\n/* harmony import */ var pdfjs_dist_es5_build_pdf__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(pdfjs_dist_es5_build_pdf__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _PDFPreviewer_less__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PDFPreviewer.less */ \"./src/base/mobile/AttachmentPreviewer/previewer/PDFPreviewer.less\");\n/* harmony import */ var _Loading__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Loading */ \"./src/base/mobile/AttachmentPreviewer/Loading.js\");\n/* harmony import */ var _pdfZoom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./pdfZoom */ \"./src/base/mobile/AttachmentPreviewer/previewer/pdfZoom.js\");\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! kd_libs/kdesign1 */ \"webpack/container/remote/kd_libs/kdesign1\");\n/* harmony import */ var kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var _hooks_useFixArrayPrototypeError__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/hooks/useFixArrayPrototypeError */ \"./src/hooks/useFixArrayPrototypeError.ts\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/utils */ \"./src/utils/index.ts\");\n\n\n\n\n\n\n\n\n\n// import { getLangMsg } from '../../i18n/intlApi'\n\n\n\n\n\n// 解决worker找不到的问题\npdfjs_dist_es5_build_pdf__WEBPACK_IMPORTED_MODULE_6__.GlobalWorkerOptions.workerSrc = (typeof window !== 'undefined' ? window : {}).pdfjsWorker = __webpack_require__(/*! pdfjs-dist/es5/build/pdf.worker.js */ \"../../node_modules/pdfjs-dist/es5/build/pdf.worker.js\");\n\n/**\n * 移动端PDF文件预览\n */\n\nvar Loading = function Loading(props) {\n  switch (props.loadingType) {\n    case 1:\n      return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_Loading__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n        text: \"\\u6587\\u4EF6\\u6B63\\u5728\\u8F6C\\u6362\\uFF0C\\u8BF7\\u7A0D\\u5019\"\n      });\n    case 2:\n      return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_Loading__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n        text: \"\\u9884\\u89C8\\u9875\\u9762\\u6B63\\u5728\\u52A0\\u8F7D\\uFF0C\\u8BF7\\u7A0D\\u5019\"\n      });\n    case 3:\n      return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_Loading__WEBPACK_IMPORTED_MODULE_8__[\"default\"], {\n        text: \"\\u6587\\u4EF6\\u6B63\\u5728\\u52A0\\u8F7D\\uFF0C\\u8BF7\\u7A0D\\u5019\"\n      });\n  }\n};\nvar ErrDom = function ErrDom(props) {\n  // const errMsg = props.errMsg\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n    className: _PDFPreviewer_less__WEBPACK_IMPORTED_MODULE_7__[\"default\"]['wait-load-data']\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"span\", {\n    className: _PDFPreviewer_less__WEBPACK_IMPORTED_MODULE_7__[\"default\"].errtext\n  }, \"\\u8BE5\\u6587\\u4EF6\\u6682\\u4E0D\\u652F\\u6301\\u9884\\u89C8\\uFF0C\\u8BF7\\u4E0B\\u8F7D\\u67E5\\u770B\\u3002\"));\n};\nvar PDFPreviewerHooks = function PDFPreviewerHooks(props) {\n  var maxScale = 2.5; // 最大放大倍数\n  var minScale = 0.4; // 最小倍数\n  var PasswordResponses = {\n    NEED_PASSWORD: 1,\n    // 需要密码\n    INCORRECT_PASSWORD: 2 // 密码错误\n  };\n  var _useState = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useState)(false),\n    _useState2 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState, 2),\n    loading = _useState2[0],\n    setLoading = _useState2[1];\n  var containerRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useRef)(null);\n  var viewerRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useRef)(null);\n  var scaleRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useRef)(minScale);\n  var viewDomRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useRef)(null);\n  var viewerContainerRef = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useRef)(null);\n  // const [isClose, setClose] = useState(false)\n  var _useState3 = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useState)(false),\n    _useState4 = (0,_babel_runtime_corejs3_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(_useState3, 2),\n    showErrMsg = _useState4[0],\n    setShowErrMsg = _useState4[1];\n  // const [errMsg, setErrMsg] = useState('')\n  var url = props.url;\n  // if (isClose) return null\n\n  (0,_hooks_useFixArrayPrototypeError__WEBPACK_IMPORTED_MODULE_11__[\"default\"])();\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useEffect)(function () {\n    if (!containerRef.current) {\n      return;\n    }\n    var eventBus = new pdfjs_dist_es5_web_pdf_viewer_js__WEBPACK_IMPORTED_MODULE_5__.EventBus();\n    viewerRef.current = new pdfjs_dist_es5_web_pdf_viewer_js__WEBPACK_IMPORTED_MODULE_5__.PDFViewer({\n      container: containerRef.current,\n      eventBus: eventBus,\n      useOnlyCssZoom: true // 仅使用css缩放\n    });\n    var config = {\n      childList: true,\n      subtree: true,\n      attributeFilter: ['style'],\n      attributes: true\n    };\n    var observer = new window.MutationObserver(callback);\n    var ele = viewDomRef.current;\n    observer.observe(ele, config);\n    var removeZoom = (0,_pdfZoom__WEBPACK_IMPORTED_MODULE_9__[\"default\"])(containerRef.current, viewerRef.current, viewerContainerRef.current, minScale);\n    return function () {\n      observer.disconnect();\n      removeZoom();\n    };\n  }, []);\n  var sourceUrl = (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.useMemo)(function () {\n    return (0,_utils__WEBPACK_IMPORTED_MODULE_12__.getPublicSourceUrl)();\n  }, []);\n  (0,kd_libs_react__WEBPACK_IMPORTED_MODULE_3__.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      isEvalSupported: false // 默认为true时存在漏洞!!!\n    };\n    var task = pdfjs_dist_es5_build_pdf__WEBPACK_IMPORTED_MODULE_6__.getDocument(options);\n    task.promise.then(function (doc) {\n      viewerRef.current.setDocument(doc);\n      viewerRef.current.currentScale = scaleRef.current;\n      setLoading(false);\n      setShowErrMsg(false);\n    }, function (reason) {\n      // setErrMsg(reason)\n      setLoading(false);\n      setShowErrMsg(true);\n    });\n  }, [url]);\n  var callback = function callback(mutations, observer) {\n    mutations.forEach(function (mutation) {\n      if (mutation.type === 'attributes' && mutation.attributeName === 'style') {\n        var scrollWidth = viewDomRef.current.scrollWidth;\n        var offsetWidth = viewDomRef.current.offsetWidth;\n        if (scrollWidth <= offsetWidth) {\n          viewDomRef.current.style.alignItems = 'center';\n        } else {\n          viewDomRef.current.style.alignItems = 'flex-start';\n        }\n      }\n    });\n  };\n\n  /**\n   * 关闭预览\n   */\n  // const close = () => {\n  //   setClose(true)\n  //   window.history.go(-1)\n  // }\n\n  /**\n   * 输入密码逻辑，弹出输入框\n   * 如果用户点击’取消‘，则退出预览\n   */\n  // const inputPassword = (updatePassword, tipsText) => {\n  //   const password = window.prompt(tipsText)\n  //   if (password === null) {\n  //     // 点击’取消‘按钮，返回null，则退出预览\n  //     close()\n  //     return\n  //   }\n  //   updatePassword(password)\n  // }\n\n  /**\n   * 加载加密的文档时进入的方法\n   * @param {func} updatePassword 输入密码方法\n   */\n  // const onPassword = (updatePassword, reason) => {\n  //   const getTitle = {\n  //     1: '此文档已被密码保护，请输入密码。',\n  //     2: '密码无效，请再次输入密码。'\n  //   }\n  //   if (PasswordResponses.NEED_PASSWORD === reason || PasswordResponses.INCORRECT_PASSWORD === reason) {\n  //     inputPassword(updatePassword, getTitle[reason])\n  //   }\n  // }\n\n  /**\n   * 旋转\n   */\n  var handlePDFRotate = function handlePDFRotate() {\n    var newAngle = viewerRef.current.pagesRotation + 90;\n    viewerRef.current.pagesRotation = newAngle === 360 ? 0 : newAngle;\n  };\n  /**\n   * 渲染放大、缩小按钮\n   */\n  var renderZoomBtn = function renderZoomBtn() {\n    return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n      className: _PDFPreviewer_less__WEBPACK_IMPORTED_MODULE_7__[\"default\"]['btn-div']\n    }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(kd_libs_kdesign1__WEBPACK_IMPORTED_MODULE_10__.Icon, {\n      className: _PDFPreviewer_less__WEBPACK_IMPORTED_MODULE_7__[\"default\"]['base-btn'],\n      type: \"spin\",\n      onClick: handlePDFRotate\n    }));\n  };\n  return /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n    className: _PDFPreviewer_less__WEBPACK_IMPORTED_MODULE_7__[\"default\"]['pdf-viewer-container'],\n    ref: viewerContainerRef\n  }, loading && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(Loading, {\n    loadingType: 3\n  }), /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n    className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(_PDFPreviewer_less__WEBPACK_IMPORTED_MODULE_7__[\"default\"]['pdf-viewer-wrapper']),\n    ref: containerRef\n  }, /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(\"div\", {\n    className: classnames__WEBPACK_IMPORTED_MODULE_4___default()(_PDFPreviewer_less__WEBPACK_IMPORTED_MODULE_7__[\"default\"]['pdf-viewer']),\n    id: \"pdfList\",\n    ref: viewDomRef\n  })), !loading && !showErrMsg && renderZoomBtn(), showErrMsg && !loading && /*#__PURE__*/kd_libs_react__WEBPACK_IMPORTED_MODULE_3___default().createElement(ErrDom, null));\n};\n/* harmony default export */ __webpack_exports__[\"default\"] = (PDFPreviewerHooks);\n\n//# sourceURL=webpack://nocode-component/./src/base/mobile/AttachmentPreviewer/previewer/PDFPreviewer.jsx?");

/***/ }),

/***/ "./src/base/mobile/AttachmentPreviewer/previewer/pdfZoom.js":
/*!******************************************************************!*\
  !*** ./src/base/mobile/AttachmentPreviewer/previewer/pdfZoom.js ***!
  \******************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_math_hypot__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/math/hypot */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/math/hypot.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_math_hypot__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_math_hypot__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_1__ = __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_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! kd_libs/lodash */ \"webpack/container/remote/kd_libs/lodash\");\n/* harmony import */ var kd_libs_lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(kd_libs_lodash__WEBPACK_IMPORTED_MODULE_2__);\n\n\n\nfunction enablePinchZoom(viewer, pdfViewer, containerBox, minScale) {\n  var startX = 0;\n  var startY = 0;\n  var initialPinchDistance = 0;\n  var pinchScale = 1;\n  var rafId;\n  var lastPinchDistance = 0; // 最新的缩放距离\n  var pinchStepLength = 50; // 距离超过50才缩放\n\n  var reset = function reset() {\n    startX = 0;\n    startY = 0;\n    initialPinchDistance = 0;\n    pinchScale = 1;\n  };\n  var touchStartHandler = function touchStartHandler(e) {\n    if (e.touches.length > 1) {\n      startX = (e.touches[0].pageX + e.touches[1].pageX) / 2;\n      startY = (e.touches[0].pageY + e.touches[1].pageY) / 2;\n      initialPinchDistance = _babel_runtime_corejs3_core_js_stable_math_hypot__WEBPACK_IMPORTED_MODULE_0___default()(e.touches[1].pageX - e.touches[0].pageX, e.touches[1].pageY - e.touches[0].pageY);\n    } else {\n      initialPinchDistance = 0;\n    }\n  };\n  var touchMoveHandler = function touchMoveHandler(e) {\n    if (initialPinchDistance <= 0 || e.touches.length < 2) return;\n    if (e.scale !== 1 || e.touches.length === 2) e.preventDefault();\n    var pinchDistance = _babel_runtime_corejs3_core_js_stable_math_hypot__WEBPACK_IMPORTED_MODULE_0___default()(e.touches[1].pageX - e.touches[0].pageX, e.touches[1].pageY - e.touches[0].pageY);\n    if (Math.abs(pinchDistance - lastPinchDistance) < pinchStepLength) {\n      return;\n    }\n    lastPinchDistance = pinchDistance;\n    if (rafId) window.cancelAnimationFrame(rafId);\n    rafId = window.requestAnimationFrame(function () {\n      var _context;\n      var originX = startX + containerBox.scrollLeft;\n      var originY = startY + containerBox.scrollTop;\n      pinchScale = pinchDistance / initialPinchDistance;\n      viewer.style.transform = \"translate3d(0, 0, 0) scale(\".concat(pinchScale, \")\");\n      viewer.style.transformOrigin = _babel_runtime_corejs3_core_js_stable_instance_concat__WEBPACK_IMPORTED_MODULE_1___default()(_context = \"\".concat(originX, \"px \")).call(_context, originY, \"px\");\n    });\n  };\n  var touchEndHandler = function touchEndHandler() {\n    if (initialPinchDistance <= 0 || !isFinite(pinchScale)) return;\n    var _viewer$getBoundingCl = viewer.getBoundingClientRect(),\n      top = _viewer$getBoundingCl.top,\n      left = _viewer$getBoundingCl.left;\n    viewer.style.transform = 'none';\n    viewer.style.transformOrigin = 'unset';\n    var newScale = pdfViewer.currentScale * pinchScale;\n    if (newScale <= minScale) {\n      newScale = minScale;\n    }\n    pdfViewer.currentScale = newScale;\n    window.requestAnimationFrame(function () {\n      containerBox.scrollTop = top * -1;\n      containerBox.scrollLeft = left * -1;\n    });\n    reset();\n  };\n  var debounceEnd = (0,kd_libs_lodash__WEBPACK_IMPORTED_MODULE_2__.debounce)(touchEndHandler, 300);\n  document.addEventListener('touchstart', touchStartHandler, true);\n  document.addEventListener('touchmove', touchMoveHandler, {\n    passive: false,\n    capture: true\n  });\n  document.addEventListener('touchend', debounceEnd, true);\n  return function () {\n    document.removeEventListener('touchstart', touchStartHandler, true);\n    document.removeEventListener('touchmove', touchMoveHandler, true);\n    document.removeEventListener('touchend', debounceEnd, true);\n  };\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (enablePinchZoom);\n\n//# sourceURL=webpack://nocode-component/./src/base/mobile/AttachmentPreviewer/previewer/pdfZoom.js?");

/***/ }),

/***/ "./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?");

/***/ }),

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

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

/***/ }),

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

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

/***/ }),

/***/ "?581c":
/*!***********************!*\
  !*** https (ignored) ***!
  \***********************/
/***/ (function() {

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

/***/ }),

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

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

/***/ }),

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

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

/***/ })

}]);