{"ast":null,"code":"\"use client\";\n\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport * as React from 'react';\nimport FileTwoTone from \"@ant-design/icons/es/icons/FileTwoTone\";\nimport LoadingOutlined from \"@ant-design/icons/es/icons/LoadingOutlined\";\nimport PaperClipOutlined from \"@ant-design/icons/es/icons/PaperClipOutlined\";\nimport PictureTwoTone from \"@ant-design/icons/es/icons/PictureTwoTone\";\nimport classNames from 'classnames';\nimport CSSMotion, { CSSMotionList } from 'rc-motion';\nimport useForceUpdate from '../../_util/hooks/useForceUpdate';\nimport initCollapseMotion from '../../_util/motion';\nimport { cloneElement, isValidElement } from '../../_util/reactNode';\nimport Button from '../../button';\nimport { ConfigContext } from '../../config-provider';\nimport { isImageUrl, previewImage } from '../utils';\nimport ListItem from './ListItem';\nconst InternalUploadList = (props, ref) => {\n  const {\n    listType = 'text',\n    previewFile = previewImage,\n    onPreview,\n    onDownload,\n    onRemove,\n    locale,\n    iconRender,\n    isImageUrl: isImgUrl = isImageUrl,\n    prefixCls: customizePrefixCls,\n    items = [],\n    showPreviewIcon = true,\n    showRemoveIcon = true,\n    showDownloadIcon = false,\n    removeIcon,\n    previewIcon,\n    downloadIcon,\n    progress = {\n      size: [-1, 2],\n      showInfo: false\n    },\n    appendAction,\n    appendActionVisible = true,\n    itemRender,\n    disabled\n  } = props;\n  const forceUpdate = useForceUpdate();\n  const [motionAppear, setMotionAppear] = React.useState(false);\n  // ============================= Effect =============================\n  React.useEffect(() => {\n    if (listType !== 'picture' && listType !== 'picture-card' && listType !== 'picture-circle') {\n      return;\n    }\n    (items || []).forEach(file => {\n      if (typeof document === 'undefined' || typeof window === 'undefined' || !window.FileReader || !window.File || !(file.originFileObj instanceof File || file.originFileObj instanceof Blob) || file.thumbUrl !== undefined) {\n        return;\n      }\n      file.thumbUrl = '';\n      if (previewFile) {\n        previewFile(file.originFileObj).then(previewDataUrl => {\n          // Need append '' to avoid dead loop\n          file.thumbUrl = previewDataUrl || '';\n          forceUpdate();\n        });\n      }\n    });\n  }, [listType, items, previewFile]);\n  React.useEffect(() => {\n    setMotionAppear(true);\n  }, []);\n  // ============================= Events =============================\n  const onInternalPreview = (file, e) => {\n    if (!onPreview) {\n      return;\n    }\n    e === null || e === void 0 ? void 0 : e.preventDefault();\n    return onPreview(file);\n  };\n  const onInternalDownload = file => {\n    if (typeof onDownload === 'function') {\n      onDownload(file);\n    } else if (file.url) {\n      window.open(file.url);\n    }\n  };\n  const onInternalClose = file => {\n    onRemove === null || onRemove === void 0 ? void 0 : onRemove(file);\n  };\n  const internalIconRender = file => {\n    if (iconRender) {\n      return iconRender(file, listType);\n    }\n    const isLoading = file.status === 'uploading';\n    const fileIcon = isImgUrl && isImgUrl(file) ? /*#__PURE__*/React.createElement(PictureTwoTone, null) : /*#__PURE__*/React.createElement(FileTwoTone, null);\n    let icon = isLoading ? /*#__PURE__*/React.createElement(LoadingOutlined, null) : /*#__PURE__*/React.createElement(PaperClipOutlined, null);\n    if (listType === 'picture') {\n      icon = isLoading ? /*#__PURE__*/React.createElement(LoadingOutlined, null) : fileIcon;\n    } else if (listType === 'picture-card' || listType === 'picture-circle') {\n      icon = isLoading ? locale.uploading : fileIcon;\n    }\n    return icon;\n  };\n  const actionIconRender = (customIcon, callback, prefixCls, title) => {\n    const btnProps = {\n      type: 'text',\n      size: 'small',\n      title,\n      onClick: e => {\n        callback();\n        if (isValidElement(customIcon) && customIcon.props.onClick) {\n          customIcon.props.onClick(e);\n        }\n      },\n      className: `${prefixCls}-list-item-action`,\n      disabled\n    };\n    if (isValidElement(customIcon)) {\n      const btnIcon = cloneElement(customIcon, Object.assign(Object.assign({}, customIcon.props), {\n        onClick: () => {}\n      }));\n      return /*#__PURE__*/React.createElement(Button, Object.assign({}, btnProps, {\n        icon: btnIcon\n      }));\n    }\n    return /*#__PURE__*/React.createElement(Button, Object.assign({}, btnProps), /*#__PURE__*/React.createElement(\"span\", null, customIcon));\n  };\n  // ============================== Ref ===============================\n  // Test needs\n  React.useImperativeHandle(ref, () => ({\n    handlePreview: onInternalPreview,\n    handleDownload: onInternalDownload\n  }));\n  const {\n    getPrefixCls\n  } = React.useContext(ConfigContext);\n  // ============================= Render =============================\n  const prefixCls = getPrefixCls('upload', customizePrefixCls);\n  const rootPrefixCls = getPrefixCls();\n  const listClassNames = classNames(`${prefixCls}-list`, `${prefixCls}-list-${listType}`);\n  // >>> Motion config\n  const motionKeyList = _toConsumableArray(items.map(file => ({\n    key: file.uid,\n    file\n  })));\n  const animationDirection = listType === 'picture-card' || listType === 'picture-circle' ? 'animate-inline' : 'animate';\n  // const transitionName = list.length === 0 ? '' : `${prefixCls}-${animationDirection}`;\n  let motionConfig = {\n    motionDeadline: 2000,\n    motionName: `${prefixCls}-${animationDirection}`,\n    keys: motionKeyList,\n    motionAppear\n  };\n  const listItemMotion = React.useMemo(() => {\n    const motion = Object.assign({}, initCollapseMotion(rootPrefixCls));\n    delete motion.onAppearEnd;\n    delete motion.onEnterEnd;\n    delete motion.onLeaveEnd;\n    return motion;\n  }, [rootPrefixCls]);\n  if (listType !== 'picture-card' && listType !== 'picture-circle') {\n    motionConfig = Object.assign(Object.assign({}, listItemMotion), motionConfig);\n  }\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: listClassNames\n  }, /*#__PURE__*/React.createElement(CSSMotionList, Object.assign({}, motionConfig, {\n    component: false\n  }), _ref => {\n    let {\n      key,\n      file,\n      className: motionClassName,\n      style: motionStyle\n    } = _ref;\n    return /*#__PURE__*/React.createElement(ListItem, {\n      key: key,\n      locale: locale,\n      prefixCls: prefixCls,\n      className: motionClassName,\n      style: motionStyle,\n      file: file,\n      items: items,\n      progress: progress,\n      listType: listType,\n      isImgUrl: isImgUrl,\n      showPreviewIcon: showPreviewIcon,\n      showRemoveIcon: showRemoveIcon,\n      showDownloadIcon: showDownloadIcon,\n      removeIcon: removeIcon,\n      previewIcon: previewIcon,\n      downloadIcon: downloadIcon,\n      iconRender: internalIconRender,\n      actionIconRender: actionIconRender,\n      itemRender: itemRender,\n      onPreview: onInternalPreview,\n      onDownload: onInternalDownload,\n      onClose: onInternalClose\n    });\n  }), appendAction && /*#__PURE__*/React.createElement(CSSMotion, Object.assign({}, motionConfig, {\n    visible: appendActionVisible,\n    forceRender: true\n  }), _ref2 => {\n    let {\n      className: motionClassName,\n      style: motionStyle\n    } = _ref2;\n    return cloneElement(appendAction, oriProps => ({\n      className: classNames(oriProps.className, motionClassName),\n      style: Object.assign(Object.assign(Object.assign({}, motionStyle), {\n        // prevent the element has hover css pseudo-class that may cause animation to end prematurely.\n        pointerEvents: motionClassName ? 'none' : undefined\n      }), oriProps.style)\n    }));\n  }));\n};\nconst UploadList = /*#__PURE__*/React.forwardRef(InternalUploadList);\nif (process.env.NODE_ENV !== 'production') {\n  UploadList.displayName = 'UploadList';\n}\nexport default UploadList;","map":{"version":3,"names":["_toConsumableArray","React","FileTwoTone","LoadingOutlined","PaperClipOutlined","PictureTwoTone","classNames","CSSMotion","CSSMotionList","useForceUpdate","initCollapseMotion","cloneElement","isValidElement","Button","ConfigContext","isImageUrl","previewImage","ListItem","InternalUploadList","props","ref","listType","previewFile","onPreview","onDownload","onRemove","locale","iconRender","isImgUrl","prefixCls","customizePrefixCls","items","showPreviewIcon","showRemoveIcon","showDownloadIcon","removeIcon","previewIcon","downloadIcon","progress","size","showInfo","appendAction","appendActionVisible","itemRender","disabled","forceUpdate","motionAppear","setMotionAppear","useState","useEffect","forEach","file","document","window","FileReader","File","originFileObj","Blob","thumbUrl","undefined","then","previewDataUrl","onInternalPreview","e","preventDefault","onInternalDownload","url","open","onInternalClose","internalIconRender","isLoading","status","fileIcon","createElement","icon","uploading","actionIconRender","customIcon","callback","title","btnProps","type","onClick","className","btnIcon","Object","assign","useImperativeHandle","handlePreview","handleDownload","getPrefixCls","useContext","rootPrefixCls","listClassNames","motionKeyList","map","key","uid","animationDirection","motionConfig","motionDeadline","motionName","keys","listItemMotion","useMemo","motion","onAppearEnd","onEnterEnd","onLeaveEnd","component","_ref","motionClassName","style","motionStyle","onClose","visible","forceRender","_ref2","oriProps","pointerEvents","UploadList","forwardRef","process","env","NODE_ENV","displayName"],"sources":["/var/www/gavt/node_modules/antd/es/upload/UploadList/index.js"],"sourcesContent":["\"use client\";\n\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport * as React from 'react';\nimport FileTwoTone from \"@ant-design/icons/es/icons/FileTwoTone\";\nimport LoadingOutlined from \"@ant-design/icons/es/icons/LoadingOutlined\";\nimport PaperClipOutlined from \"@ant-design/icons/es/icons/PaperClipOutlined\";\nimport PictureTwoTone from \"@ant-design/icons/es/icons/PictureTwoTone\";\nimport classNames from 'classnames';\nimport CSSMotion, { CSSMotionList } from 'rc-motion';\nimport useForceUpdate from '../../_util/hooks/useForceUpdate';\nimport initCollapseMotion from '../../_util/motion';\nimport { cloneElement, isValidElement } from '../../_util/reactNode';\nimport Button from '../../button';\nimport { ConfigContext } from '../../config-provider';\nimport { isImageUrl, previewImage } from '../utils';\nimport ListItem from './ListItem';\nconst InternalUploadList = (props, ref) => {\n  const {\n    listType = 'text',\n    previewFile = previewImage,\n    onPreview,\n    onDownload,\n    onRemove,\n    locale,\n    iconRender,\n    isImageUrl: isImgUrl = isImageUrl,\n    prefixCls: customizePrefixCls,\n    items = [],\n    showPreviewIcon = true,\n    showRemoveIcon = true,\n    showDownloadIcon = false,\n    removeIcon,\n    previewIcon,\n    downloadIcon,\n    progress = {\n      size: [-1, 2],\n      showInfo: false\n    },\n    appendAction,\n    appendActionVisible = true,\n    itemRender,\n    disabled\n  } = props;\n  const forceUpdate = useForceUpdate();\n  const [motionAppear, setMotionAppear] = React.useState(false);\n  // ============================= Effect =============================\n  React.useEffect(() => {\n    if (listType !== 'picture' && listType !== 'picture-card' && listType !== 'picture-circle') {\n      return;\n    }\n    (items || []).forEach(file => {\n      if (typeof document === 'undefined' || typeof window === 'undefined' || !window.FileReader || !window.File || !(file.originFileObj instanceof File || file.originFileObj instanceof Blob) || file.thumbUrl !== undefined) {\n        return;\n      }\n      file.thumbUrl = '';\n      if (previewFile) {\n        previewFile(file.originFileObj).then(previewDataUrl => {\n          // Need append '' to avoid dead loop\n          file.thumbUrl = previewDataUrl || '';\n          forceUpdate();\n        });\n      }\n    });\n  }, [listType, items, previewFile]);\n  React.useEffect(() => {\n    setMotionAppear(true);\n  }, []);\n  // ============================= Events =============================\n  const onInternalPreview = (file, e) => {\n    if (!onPreview) {\n      return;\n    }\n    e === null || e === void 0 ? void 0 : e.preventDefault();\n    return onPreview(file);\n  };\n  const onInternalDownload = file => {\n    if (typeof onDownload === 'function') {\n      onDownload(file);\n    } else if (file.url) {\n      window.open(file.url);\n    }\n  };\n  const onInternalClose = file => {\n    onRemove === null || onRemove === void 0 ? void 0 : onRemove(file);\n  };\n  const internalIconRender = file => {\n    if (iconRender) {\n      return iconRender(file, listType);\n    }\n    const isLoading = file.status === 'uploading';\n    const fileIcon = isImgUrl && isImgUrl(file) ? /*#__PURE__*/React.createElement(PictureTwoTone, null) : /*#__PURE__*/React.createElement(FileTwoTone, null);\n    let icon = isLoading ? /*#__PURE__*/React.createElement(LoadingOutlined, null) : /*#__PURE__*/React.createElement(PaperClipOutlined, null);\n    if (listType === 'picture') {\n      icon = isLoading ? /*#__PURE__*/React.createElement(LoadingOutlined, null) : fileIcon;\n    } else if (listType === 'picture-card' || listType === 'picture-circle') {\n      icon = isLoading ? locale.uploading : fileIcon;\n    }\n    return icon;\n  };\n  const actionIconRender = (customIcon, callback, prefixCls, title) => {\n    const btnProps = {\n      type: 'text',\n      size: 'small',\n      title,\n      onClick: e => {\n        callback();\n        if (isValidElement(customIcon) && customIcon.props.onClick) {\n          customIcon.props.onClick(e);\n        }\n      },\n      className: `${prefixCls}-list-item-action`,\n      disabled\n    };\n    if (isValidElement(customIcon)) {\n      const btnIcon = cloneElement(customIcon, Object.assign(Object.assign({}, customIcon.props), {\n        onClick: () => {}\n      }));\n      return /*#__PURE__*/React.createElement(Button, Object.assign({}, btnProps, {\n        icon: btnIcon\n      }));\n    }\n    return /*#__PURE__*/React.createElement(Button, Object.assign({}, btnProps), /*#__PURE__*/React.createElement(\"span\", null, customIcon));\n  };\n  // ============================== Ref ===============================\n  // Test needs\n  React.useImperativeHandle(ref, () => ({\n    handlePreview: onInternalPreview,\n    handleDownload: onInternalDownload\n  }));\n  const {\n    getPrefixCls\n  } = React.useContext(ConfigContext);\n  // ============================= Render =============================\n  const prefixCls = getPrefixCls('upload', customizePrefixCls);\n  const rootPrefixCls = getPrefixCls();\n  const listClassNames = classNames(`${prefixCls}-list`, `${prefixCls}-list-${listType}`);\n  // >>> Motion config\n  const motionKeyList = _toConsumableArray(items.map(file => ({\n    key: file.uid,\n    file\n  })));\n  const animationDirection = listType === 'picture-card' || listType === 'picture-circle' ? 'animate-inline' : 'animate';\n  // const transitionName = list.length === 0 ? '' : `${prefixCls}-${animationDirection}`;\n  let motionConfig = {\n    motionDeadline: 2000,\n    motionName: `${prefixCls}-${animationDirection}`,\n    keys: motionKeyList,\n    motionAppear\n  };\n  const listItemMotion = React.useMemo(() => {\n    const motion = Object.assign({}, initCollapseMotion(rootPrefixCls));\n    delete motion.onAppearEnd;\n    delete motion.onEnterEnd;\n    delete motion.onLeaveEnd;\n    return motion;\n  }, [rootPrefixCls]);\n  if (listType !== 'picture-card' && listType !== 'picture-circle') {\n    motionConfig = Object.assign(Object.assign({}, listItemMotion), motionConfig);\n  }\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: listClassNames\n  }, /*#__PURE__*/React.createElement(CSSMotionList, Object.assign({}, motionConfig, {\n    component: false\n  }), _ref => {\n    let {\n      key,\n      file,\n      className: motionClassName,\n      style: motionStyle\n    } = _ref;\n    return /*#__PURE__*/React.createElement(ListItem, {\n      key: key,\n      locale: locale,\n      prefixCls: prefixCls,\n      className: motionClassName,\n      style: motionStyle,\n      file: file,\n      items: items,\n      progress: progress,\n      listType: listType,\n      isImgUrl: isImgUrl,\n      showPreviewIcon: showPreviewIcon,\n      showRemoveIcon: showRemoveIcon,\n      showDownloadIcon: showDownloadIcon,\n      removeIcon: removeIcon,\n      previewIcon: previewIcon,\n      downloadIcon: downloadIcon,\n      iconRender: internalIconRender,\n      actionIconRender: actionIconRender,\n      itemRender: itemRender,\n      onPreview: onInternalPreview,\n      onDownload: onInternalDownload,\n      onClose: onInternalClose\n    });\n  }), appendAction && /*#__PURE__*/React.createElement(CSSMotion, Object.assign({}, motionConfig, {\n    visible: appendActionVisible,\n    forceRender: true\n  }), _ref2 => {\n    let {\n      className: motionClassName,\n      style: motionStyle\n    } = _ref2;\n    return cloneElement(appendAction, oriProps => ({\n      className: classNames(oriProps.className, motionClassName),\n      style: Object.assign(Object.assign(Object.assign({}, motionStyle), {\n        // prevent the element has hover css pseudo-class that may cause animation to end prematurely.\n        pointerEvents: motionClassName ? 'none' : undefined\n      }), oriProps.style)\n    }));\n  }));\n};\nconst UploadList = /*#__PURE__*/React.forwardRef(InternalUploadList);\nif (process.env.NODE_ENV !== 'production') {\n  UploadList.displayName = 'UploadList';\n}\nexport default UploadList;"],"mappings":"AAAA,YAAY;;AAEZ,OAAOA,kBAAkB,MAAM,8CAA8C;AAC7E,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,WAAW,MAAM,wCAAwC;AAChE,OAAOC,eAAe,MAAM,4CAA4C;AACxE,OAAOC,iBAAiB,MAAM,8CAA8C;AAC5E,OAAOC,cAAc,MAAM,2CAA2C;AACtE,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,SAAS,IAAIC,aAAa,QAAQ,WAAW;AACpD,OAAOC,cAAc,MAAM,kCAAkC;AAC7D,OAAOC,kBAAkB,MAAM,oBAAoB;AACnD,SAASC,YAAY,EAAEC,cAAc,QAAQ,uBAAuB;AACpE,OAAOC,MAAM,MAAM,cAAc;AACjC,SAASC,aAAa,QAAQ,uBAAuB;AACrD,SAASC,UAAU,EAAEC,YAAY,QAAQ,UAAU;AACnD,OAAOC,QAAQ,MAAM,YAAY;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