@kne-components/components-core 0.4.19 → 0.4.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/build/asset-manifest.json +88 -88
  2. package/build/index.html +1 -1
  3. package/build/remoteEntry.js +1 -1
  4. package/build/remoteEntry.js.map +1 -1
  5. package/build/static/css/{1996.2e5446bd.chunk.css → 1996.669fbbe4.chunk.css} +2 -2
  6. package/build/static/css/{1996.2e5446bd.chunk.css.map → 1996.669fbbe4.chunk.css.map} +1 -1
  7. package/build/static/css/2004.b82ff9af.chunk.css +2 -0
  8. package/build/static/css/{2004.5a5f5050.chunk.css.map → 2004.b82ff9af.chunk.css.map} +1 -1
  9. package/build/static/css/206.a943eeec.chunk.css +2 -0
  10. package/build/static/css/{206.87cc50f7.chunk.css.map → 206.a943eeec.chunk.css.map} +1 -1
  11. package/build/static/css/254.ebe3daf6.chunk.css +2 -0
  12. package/build/static/css/{254.7e1a9cae.chunk.css.map → 254.ebe3daf6.chunk.css.map} +1 -1
  13. package/build/static/css/2628.34a09969.chunk.css +2 -0
  14. package/build/static/css/{2628.4b2fa5e7.chunk.css.map → 2628.34a09969.chunk.css.map} +1 -1
  15. package/build/static/css/3404.01f4e121.chunk.css +2 -0
  16. package/build/static/css/{3404.ab96a91e.chunk.css.map → 3404.01f4e121.chunk.css.map} +1 -1
  17. package/build/static/css/3652.f33d39bc.chunk.css +2 -0
  18. package/build/static/css/{3652.94c4a057.chunk.css.map → 3652.f33d39bc.chunk.css.map} +1 -1
  19. package/build/static/css/{3771.848b3542.chunk.css → 3771.d54ca80c.chunk.css} +2 -2
  20. package/build/static/css/{3771.848b3542.chunk.css.map → 3771.d54ca80c.chunk.css.map} +1 -1
  21. package/build/static/css/{3790.cbbb1d11.chunk.css → 3790.49dd4665.chunk.css} +2 -2
  22. package/build/static/css/{3790.cbbb1d11.chunk.css.map → 3790.49dd4665.chunk.css.map} +1 -1
  23. package/build/static/css/4244.0b449249.chunk.css +2 -0
  24. package/build/static/css/{4244.e15399ee.chunk.css.map → 4244.0b449249.chunk.css.map} +1 -1
  25. package/build/static/css/{4277.224c3e71.chunk.css → 4277.f50cb4fe.chunk.css} +2 -2
  26. package/build/static/css/{4277.224c3e71.chunk.css.map → 4277.f50cb4fe.chunk.css.map} +1 -1
  27. package/build/static/css/{4741.92851600.chunk.css → 4741.d037d214.chunk.css} +2 -2
  28. package/build/static/css/{4741.92851600.chunk.css.map → 4741.d037d214.chunk.css.map} +1 -1
  29. package/build/static/css/5195.56e71eae.chunk.css +2 -0
  30. package/build/static/css/{5195.fe9e1bec.chunk.css.map → 5195.56e71eae.chunk.css.map} +1 -1
  31. package/build/static/css/{6763.bf02c54a.chunk.css → 6763.955247ee.chunk.css} +2 -2
  32. package/build/static/css/{6763.bf02c54a.chunk.css.map → 6763.955247ee.chunk.css.map} +1 -1
  33. package/build/static/css/6980.eaa63357.chunk.css +12 -0
  34. package/build/static/css/{6980.130af877.chunk.css.map → 6980.eaa63357.chunk.css.map} +1 -1
  35. package/build/static/css/7227.134cb112.chunk.css +2 -0
  36. package/build/static/css/{7227.b7452b3a.chunk.css.map → 7227.134cb112.chunk.css.map} +1 -1
  37. package/build/static/css/{760.8472541b.chunk.css → 760.940979da.chunk.css} +2 -2
  38. package/build/static/css/{760.8472541b.chunk.css.map → 760.940979da.chunk.css.map} +1 -1
  39. package/build/static/css/{8593.f35a8aa6.chunk.css → 8593.db4e73b8.chunk.css} +2 -2
  40. package/build/static/css/{8593.f35a8aa6.chunk.css.map → 8593.db4e73b8.chunk.css.map} +1 -1
  41. package/build/static/css/9556.b4cf60cd.chunk.css +2 -0
  42. package/build/static/css/{9556.cf902901.chunk.css.map → 9556.b4cf60cd.chunk.css.map} +1 -1
  43. package/build/static/css/9772.618ab97d.chunk.css +2 -0
  44. package/build/static/css/{9772.4a475b09.chunk.css.map → 9772.618ab97d.chunk.css.map} +1 -1
  45. package/build/static/js/1996.03851a05.chunk.js +2 -0
  46. package/build/static/js/{1996.ca9b00d5.chunk.js.map → 1996.03851a05.chunk.js.map} +1 -1
  47. package/build/static/js/{2004.085d943f.chunk.js → 2004.35b53879.chunk.js} +3 -3
  48. package/build/static/js/{2004.085d943f.chunk.js.map → 2004.35b53879.chunk.js.map} +1 -1
  49. package/build/static/js/206.8d606f29.chunk.js +2 -0
  50. package/build/static/js/{206.92fa9c1f.chunk.js.map → 206.8d606f29.chunk.js.map} +1 -1
  51. package/build/static/js/254.9697112f.chunk.js +2 -0
  52. package/build/static/js/{254.11755151.chunk.js.map → 254.9697112f.chunk.js.map} +1 -1
  53. package/build/static/js/{2628.8834a75f.chunk.js → 2628.de13331a.chunk.js} +2 -2
  54. package/build/static/js/{2628.8834a75f.chunk.js.map → 2628.de13331a.chunk.js.map} +1 -1
  55. package/build/static/js/{3404.77db51dc.chunk.js → 3404.753081f6.chunk.js} +3 -3
  56. package/build/static/js/{3404.77db51dc.chunk.js.map → 3404.753081f6.chunk.js.map} +1 -1
  57. package/build/static/js/{3652.7e815933.chunk.js → 3652.094bc015.chunk.js} +2 -2
  58. package/build/static/js/{3652.7e815933.chunk.js.map → 3652.094bc015.chunk.js.map} +1 -1
  59. package/build/static/js/3771.21de0446.chunk.js +2 -0
  60. package/build/static/js/{3771.6baa72b9.chunk.js.map → 3771.21de0446.chunk.js.map} +1 -1
  61. package/build/static/js/{3790.435a94b8.chunk.js → 3790.331aee9a.chunk.js} +2 -2
  62. package/build/static/js/{3790.435a94b8.chunk.js.map → 3790.331aee9a.chunk.js.map} +1 -1
  63. package/build/static/js/3856.ef83565d.chunk.js +2 -0
  64. package/build/static/js/3856.ef83565d.chunk.js.map +1 -0
  65. package/build/static/js/4244.7b8c33e7.chunk.js +2 -0
  66. package/build/static/js/{4244.d1666f2b.chunk.js.map → 4244.7b8c33e7.chunk.js.map} +1 -1
  67. package/build/static/js/4277.71e9c264.chunk.js +2 -0
  68. package/build/static/js/{4277.f953fa5c.chunk.js.map → 4277.71e9c264.chunk.js.map} +1 -1
  69. package/build/static/js/4474.ae9cc1df.chunk.js +2 -0
  70. package/build/static/js/{4474.bd07c69e.chunk.js.map → 4474.ae9cc1df.chunk.js.map} +1 -1
  71. package/build/static/js/5195.c442c6a9.chunk.js +2 -0
  72. package/build/static/js/{5195.ff2ecd55.chunk.js.map → 5195.c442c6a9.chunk.js.map} +1 -1
  73. package/build/static/js/{6075.4cb6c645.chunk.js → 6075.0cce58de.chunk.js} +2 -2
  74. package/build/static/js/{6075.4cb6c645.chunk.js.map → 6075.0cce58de.chunk.js.map} +1 -1
  75. package/build/static/js/6763.d8d67bc8.chunk.js +2 -0
  76. package/build/static/js/{6763.4a72ce83.chunk.js.map → 6763.d8d67bc8.chunk.js.map} +1 -1
  77. package/build/static/js/{6980.4c035b4e.chunk.js → 6980.9317c11e.chunk.js} +2 -2
  78. package/build/static/js/6980.9317c11e.chunk.js.map +1 -0
  79. package/build/static/js/{7227.5563cb7e.chunk.js → 7227.19cb906d.chunk.js} +3 -3
  80. package/build/static/js/{7227.5563cb7e.chunk.js.map → 7227.19cb906d.chunk.js.map} +1 -1
  81. package/build/static/js/{760.d53179f5.chunk.js → 760.9091d738.chunk.js} +2 -2
  82. package/build/static/js/{760.d53179f5.chunk.js.map → 760.9091d738.chunk.js.map} +1 -1
  83. package/build/static/js/8593.06ee7e92.chunk.js +2 -0
  84. package/build/static/js/{8593.b8fbccf4.chunk.js.map → 8593.06ee7e92.chunk.js.map} +1 -1
  85. package/build/static/js/9556.573b6a87.chunk.js +3 -0
  86. package/build/static/js/{9556.4b2d6baa.chunk.js.map → 9556.573b6a87.chunk.js.map} +1 -1
  87. package/build/static/js/9772.317c43ec.chunk.js +2 -0
  88. package/build/static/js/9772.317c43ec.chunk.js.map +1 -0
  89. package/build/static/js/{main.74e21614.js → main.1ca47a52.js} +2 -2
  90. package/build/static/js/{main.74e21614.js.map → main.1ca47a52.js.map} +1 -1
  91. package/package.json +2 -2
  92. package/build/static/css/2004.5a5f5050.chunk.css +0 -2
  93. package/build/static/css/206.87cc50f7.chunk.css +0 -2
  94. package/build/static/css/254.7e1a9cae.chunk.css +0 -2
  95. package/build/static/css/2628.4b2fa5e7.chunk.css +0 -2
  96. package/build/static/css/3404.ab96a91e.chunk.css +0 -2
  97. package/build/static/css/3652.94c4a057.chunk.css +0 -2
  98. package/build/static/css/4244.e15399ee.chunk.css +0 -2
  99. package/build/static/css/5195.fe9e1bec.chunk.css +0 -2
  100. package/build/static/css/6980.130af877.chunk.css +0 -12
  101. package/build/static/css/7227.b7452b3a.chunk.css +0 -2
  102. package/build/static/css/9556.cf902901.chunk.css +0 -2
  103. package/build/static/css/9772.4a475b09.chunk.css +0 -2
  104. package/build/static/js/1996.ca9b00d5.chunk.js +0 -2
  105. package/build/static/js/206.92fa9c1f.chunk.js +0 -2
  106. package/build/static/js/254.11755151.chunk.js +0 -2
  107. package/build/static/js/3771.6baa72b9.chunk.js +0 -2
  108. package/build/static/js/3856.69b5b484.chunk.js +0 -2
  109. package/build/static/js/3856.69b5b484.chunk.js.map +0 -1
  110. package/build/static/js/4244.d1666f2b.chunk.js +0 -2
  111. package/build/static/js/4277.f953fa5c.chunk.js +0 -2
  112. package/build/static/js/4474.bd07c69e.chunk.js +0 -2
  113. package/build/static/js/5195.ff2ecd55.chunk.js +0 -2
  114. package/build/static/js/6763.4a72ce83.chunk.js +0 -2
  115. package/build/static/js/6980.4c035b4e.chunk.js.map +0 -1
  116. package/build/static/js/8593.b8fbccf4.chunk.js +0 -2
  117. package/build/static/js/9556.4b2d6baa.chunk.js +0 -3
  118. package/build/static/js/9772.b80d84c8.chunk.js +0 -2
  119. package/build/static/js/9772.b80d84c8.chunk.js.map +0 -1
  120. /package/build/static/js/{2004.085d943f.chunk.js.LICENSE.txt → 2004.35b53879.chunk.js.LICENSE.txt} +0 -0
  121. /package/build/static/js/{3404.77db51dc.chunk.js.LICENSE.txt → 3404.753081f6.chunk.js.LICENSE.txt} +0 -0
  122. /package/build/static/js/{7227.5563cb7e.chunk.js.LICENSE.txt → 7227.19cb906d.chunk.js.LICENSE.txt} +0 -0
  123. /package/build/static/js/{9556.4b2d6baa.chunk.js.LICENSE.txt → 9556.573b6a87.chunk.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/206.92fa9c1f.chunk.js","mappings":"oIAAA,SAASA,EAAGC,GAMV,IAJAA,EAAIC,KAAKC,MAAMF,IAAM,GAEb,IAAGA,GAAKG,KAAKC,UAEjBJ,EAAI,GAAKA,GAAKG,KAAKC,QAEvB,OAAOD,KAAKH,EACd,CAEA,MAAMK,EAAaC,QAAQC,eAAeC,WAC1C,IAAK,MAAMC,IAAK,CAACC,MAAOC,OAAQN,GAC9BO,OAAOC,eAAeJ,EAAEK,UAAW,KAAM,CACvCC,MAAOhB,EACPiB,UAAU,EACVC,YAAY,EACZC,cAAc,G,oLChBlB,QAAyB,6BAAzB,EAAqE,mCAArE,EAAuH,mCAAvH,EAAwK,kCAAxK,EAAiO,2CAAjO,EAAgS,wCAAhS,EAAwV,oCAAxV,EAA2Y,mCCM3Y,EAPwBC,IACf,CACL,QAASC,IAAM,gCACf,QAASC,IAAM,iCACfF,M,0BCFJ,MAiBA,EAjBwBG,KACpB,MAAOC,EAAUC,IAAeC,EAAAA,EAAAA,UAAS,IAazC,MAAO,CAACF,GAXaG,EAAAA,EAAAA,aAAaC,IAE9BH,EAAaI,GAAmB,IAAIA,EAAgBD,IAI7C,KACHH,EAAaI,GAAmBA,EAAeC,OAAQC,GAAQA,IAAQH,MAE5E,M,eCXP,MAwBA,GAAeI,EAAAA,EAAAA,YAxBIC,CAAAC,EAAWC,KAAS,IAAnB,OAACC,GAAOF,EACxB,MAAOG,EAAMC,IAAWZ,EAAAA,EAAAA,WAAS,IAC1Ba,EAAaC,IAAkBd,EAAAA,EAAAA,UAASU,GAEzCK,EAAQ,WACVH,GAAQ,GAAO,QAAAI,EAAAC,UAAAtC,OADDuC,EAAI,IAAAjC,MAAA+B,GAAAG,EAAA,EAA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,KAAA,OACI,cAAY,yBACZqF,UAAWG,IAAWF,EAAiB,UAAG,iBAAkBD,GAAW3E,SAEtEA,S,iVChMjB,EApCoBjC,IAA2D,IAA1D,IAACoI,EAAG,WAAEqJ,EAAa,CAAC,EAAC,UAAE7I,EAAS,QAAE8I,GAAkB1R,EAAN2B,GAAKgE,EAAAA,EAAAA,GAAA3F,EAAA4F,GACpE,MAAM+L,GAAWC,EAAAA,EAAAA,UAASjT,OAAO6I,OAAO,CAAC,EAAGY,EAAK,CAACyJ,MAAM,MAClD,UAACC,EAAS,KAAEjI,EAAI,MAAEkI,EAAK,QAAEC,GAAWL,EACpCM,EAAerB,IAAec,GAC9BQ,EAAmBtB,IAAe,KACpC,MAAMuB,EAAWvJ,EAAgC,oBAAf6I,EAA4BA,EAAW,CACrE5H,OAAM8H,WAAUpR,MAAOA,KACnB4R,EAAS5R,WAEZkR,KAeT,OAbAnP,EAAAA,EAAAA,WAAU,KACFwP,IAGAC,EACAE,EAAaF,GAGZlI,GAGLqI,MACD,CAACJ,EAAWC,EAAOlI,EAAMqI,EAAkBD,KACtC1Q,EAAAA,EAAAA,KAACuF,EAAAA,QAAMxF,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACPK,GAAK,IACTyQ,QAASN,EACT1M,QAASA,KACL4M,EAAQ,CACJK,UAAWA,a,wDClCpB,MAAMjG,EAAcA,IAAMN,SAASkB,cAAc,8BAC3CsF,EAAmBA,IAAMxG,SAASkB,cAAc,kB","sources":["components/Global/polyfill.js","webpack://@kne-components/components-core/./src/components/Drawer/style.module.scss?33d4","components/Drawer/locale/index.js","components/Drawer/useDrawer/usePatchElement.js","components/Drawer/useDrawer/HookDrawer.js","components/Drawer/useDrawer/index.js","components/Drawer/AppDrawer.js","components/Drawer/Drawer.js","components/Drawer/DrawerButton.js","components/Intl/createWithLocale.js","components/Intl/index.js","components/Global/presetContext.js","common/utils/isMobile.js","components/Global/loadAntdLocale.js","webpack://@kne-components/components-core/./src/components/Global/style.module.scss?6540","components/Global/index.js","common/components/FetchButton.js","common/utils/importantContainer.js"],"sourcesContent":["function at(n) {\n // ToInteger() abstract op\n n = Math.trunc(n) || 0;\n // Allow negative indexing from the end\n if (n < 0) n += this.length;\n // OOB access is guaranteed to return undefined\n if (n < 0 || n >= this.length) return undefined;\n // Otherwise, this is just normal property access\n return this[n];\n}\n\nconst TypedArray = Reflect.getPrototypeOf(Int8Array);\nfor (const C of [Array, String, TypedArray]) {\n Object.defineProperty(C.prototype, \"at\", {\n value: at,\n writable: true,\n enumerable: false,\n configurable: true,\n });\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"drawer\":\"style_drawer__hA8bn__bxpL6\",\"drawer-outer\":\"style_drawer-outer__vuEIf__bxpL6\",\"drawer-title\":\"style_drawer-title__71eaW__bxpL6\",\"drawer-body\":\"style_drawer-body__frw9I__bxpL6\",\"is-disabled-scroller\":\"style_is-disabled-scroller__ZsITw__bxpL6\",\"drawer-body-inner\":\"style_drawer-body-inner__lci9Z__bxpL6\",\"drawer-footer\":\"style_drawer-footer__1g8o1__bxpL6\",\"drawer-close\":\"style_drawer-close__bpxnp__bxpL6\"};","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","import {useState, useCallback} from \"react\";\n\nconst usePatchElement = () => {\n const [elements, setElements] = useState([]);\n\n const patchElement = useCallback((element) => {\n // append a new element to elements (and create a new ref)\n setElements((originElements) => [...originElements, element]);\n\n // return a function that removes the new element out of elements (and create a new ref)\n // it works a little like useEffect\n return () => {\n setElements((originElements) => originElements.filter((ele) => ele !== element));\n };\n }, []);\n\n return [elements, patchElement];\n};\n\nexport default usePatchElement;\n","import {useState, useImperativeHandle, forwardRef} from \"react\";\nimport {Drawer} from \"antd\";\n\nconst HookDrawer = ({config}, ref) => {\n const [open, setOpen] = useState(true);\n const [innerConfig, setInnerConfig] = useState(config);\n\n const close = (...args) => {\n setOpen(false);\n const triggerCancel = args.some((param) => param && param.triggerCancel);\n if (innerConfig.onClose && triggerCancel) {\n innerConfig.onClose(() => {\n }, ...args.slice(1));\n }\n };\n\n useImperativeHandle(ref, () => ({\n destroy: close, update: (newConfig) => {\n setInnerConfig((originConfig) => ({\n ...originConfig, ...newConfig,\n }));\n },\n }));\n\n return <Drawer {...innerConfig} ref={ref} open={open} onClose={close}/>;\n};\n\nexport default forwardRef(HookDrawer);\n","import {\n createRef,\n forwardRef,\n memo,\n useCallback,\n useEffect,\n useImperativeHandle,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport usePatchElement from \"./usePatchElement\";\nimport HookDrawer from \"./HookDrawer\";\n\nlet uuid = 0;\n\nfunction withConfirm(props) {\n return {\n ...props,\n };\n}\n\nconst destroyFns = [];\n\nconst ElementsHolder = memo(\n forwardRef((props, ref) => {\n const [elements, patchElement] = usePatchElement();\n useImperativeHandle(\n ref,\n () => ({\n patchElement,\n }),\n [patchElement]\n );\n return <>{elements}</>;\n })\n);\n\nfunction useDrawer() {\n const holderRef = useRef(null);\n const [actionQueue, setActionQueue] = useState([]);\n useEffect(() => {\n if (actionQueue.length) {\n const cloneQueue = [...actionQueue];\n cloneQueue.forEach((action) => {\n action();\n });\n setActionQueue([]);\n }\n }, [actionQueue]);\n\n const getConfirmFunc = useCallback(\n (withFunc) =>\n function hookConfirm(config) {\n uuid += 1;\n\n const drawerRef = createRef();\n\n let closeFunc = () => {};\n const drawer = (\n <HookDrawer\n key={`drawer-${uuid}`}\n config={withFunc(config)}\n ref={drawerRef}\n afterClose={() => {\n closeFunc?.();\n }}\n />\n );\n\n closeFunc = holderRef.current?.patchElement(drawer);\n\n if (closeFunc) {\n destroyFns.push(closeFunc);\n }\n\n return {\n destroy: () => {\n function destroyAction() {\n drawerRef.current?.destroy();\n }\n\n if (drawerRef.current) {\n destroyAction();\n } else {\n setActionQueue((prev) => [...prev, destroyAction]);\n }\n },\n update: (newConfig) => {\n function updateAction() {\n drawerRef.current?.update(newConfig);\n }\n\n if (drawerRef.current) {\n updateAction();\n } else {\n setActionQueue((prev) => [...prev, updateAction]);\n }\n },\n };\n },\n []\n );\n\n const fns = useMemo(() => getConfirmFunc(withConfirm), [getConfirmFunc]);\n\n return [fns, <ElementsHolder key=\"drawer-holder\" ref={holderRef} />];\n}\n\nexport default useDrawer;\n","import { createContext, useContext, useMemo } from \"react\";\nimport useDrawer from \"./useDrawer\";\n\nconst context = createContext({});\nconst { Provider } = context;\n\nconst useAppDrawer = () => useContext(context);\n\nconst AppDrawer = (props) => {\n const { children } = props;\n const [DrawerApi, DrawerContextHolder] = useDrawer();\n const memoizedContextValue = useMemo(\n () => ({\n drawer: DrawerApi,\n }),\n [DrawerApi]\n );\n return (\n <Provider value={memoizedContextValue}>\n <div>\n {DrawerContextHolder}\n {children}\n </div>\n </Provider>\n );\n};\n\nAppDrawer.useAppDrawer = useAppDrawer;\n\nexport default AppDrawer;\n","import {Button, Col, Drawer as AntdDrawer, Row, Space} from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport {IntlProvider} from \"@components/Intl\";\nimport AppDrawer from \"./AppDrawer\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport React, {useEffect, useRef} from \"react\";\nimport SimpleBar from \"simplebar\";\nimport Icon from \"@components/Icon\";\n\nconst renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nconst sizeMap = (type) => {\n if (type === \"large\") {\n return {width: \"calc(100vw - 64px)\"};\n }\n if (type === \"small\") {\n return {width: \"600px\"};\n }\n return {width: \"1000px\"};\n};\n\nconst Footer = ({footer, footerButtons, onConfirm, onCancel, onClose}) => {\n return (<Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (<Col>\n <Space>\n {(footerButtons || [{children: \"取消\", onClick: onCancel}, {\n type: \"primary\", children: \"确定\", onClick: onConfirm,\n },]).map(({ButtonComponent, onClick, autoClose = true, ...props}, index) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (<CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(onClick && onClick(...args));\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />);\n })}\n </Space>\n </Col>)}\n </Row>);\n};\n\nconst DrawerOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n }) => {\n const modalBodyRef = useRef(null);\n useEffect(() => {\n !disabledScroller && new SimpleBar(modalBodyRef.current);\n }, [disabledScroller]);\n return (<div className={style[\"drawer-outer\"]} data-testid=\"components-core-drawer\">\n {closable === false ? null : (<Button\n data-testid=\"components-core-drawer-close-btn\"\n className={classnames(style[\"drawer-close\"], \"drawer-close\")}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\"/>}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />)}\n {title && (<div className={classnames(style[\"drawer-title\"], \"drawer-title\")}>\n {title}\n </div>)}\n <div\n className={classnames(style[\"drawer-body\"], \"drawer-body\", {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n })}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"drawer-body-inner\"], \"drawer-body-inner\")}\n >\n {children}\n </div>\n </div>\n {footer === null && !footerButtons ? null : (\n <div className={classnames(style[\"drawer-footer\"], \"drawer-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n />\n </div>)}\n </div>);\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n disabledScroller,\n children,\n }) => {\n const getInner = (props) => {\n props = Object.assign({}, props);\n return (<DrawerOuter\n title={title}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props, close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {...props, close: onClose})}\n >\n {renderWithOptions(children, {\n ...props, close: onClose,\n })}\n </DrawerOuter>);\n };\n return typeof withDecorator === \"function\" ? withDecorator(getInner) : getInner({});\n};\n\nexport const computedCommonProps = ({\n children,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n ...props\n }) => {\n return {\n ...props,\n icon: null,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\") ? props.maskClosable : false,\n destroyOnHidden: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"drawer\"]), ...sizeMap(size),\n children: (<IntlProvider importMessages={importMessages} moduleName=\"Drawer\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n disabledScroller,\n children,\n })}\n </IntlProvider>),\n };\n};\n\nconst Drawer = ({size = \"small\", ...props}) => {\n return <AntdDrawer {...computedCommonProps({size, ...props})} />;\n};\n\nexport const useDrawer = () => {\n const {drawer} = AppDrawer.useAppDrawer();\n return (props) => {\n const api = {};\n const {...otherProps} = computedCommonProps({\n onClose: () => api.close(), ...props,\n });\n const {destroy} = drawer({\n ...otherProps,\n });\n api.close = destroy;\n return api;\n };\n};\n\nexport default Drawer;\n","import { useDrawer } from \"./Drawer\";\nimport FetchButton from \"@common/components/FetchButton\";\n\nconst DrawerButton = (props) => {\n const drawer = useDrawer();\n return <FetchButton {...props} modalFunc={drawer} />;\n};\n\nexport default DrawerButton;\n","import { forwardRef } from \"react\";\nimport Fetch from \"@kne/react-fetch\";\nimport { useGlobalContext } from \"@components/Global\";\n\nconst localeCache = new Map();\n\nconst createWithLocale =\n ({ moduleName, importMessages }) =>\n (WrappedComponent) =>\n forwardRef((props, ref) => {\n const { global: locale } = useGlobalContext(\"locale\");\n const currentLocale = locale || \"zh-CN\";\n return (\n <Fetch\n params={{ locale: currentLocale }}\n loader={({ params }) => {\n const { locale } = params;\n const key = `${moduleName}_${locale}`;\n if (localeCache.has(key)) {\n return localeCache.get(key);\n }\n return Promise.resolve(importMessages(locale)).then(\n ({ default: localMessages }) => {\n localeCache.set(key, localMessages);\n return localMessages;\n }\n );\n }}\n render={({ data: messages }) => {\n return <WrappedComponent {...props} locale={messages} ref={ref} />;\n }}\n />\n );\n });\n\nexport default createWithLocale;\n","import {withFetch} from \"@kne/react-fetch\";\nimport {\n FormattedMessage as IntlFormattedMessage, IntlProvider as ReactIntlProvider, useIntl as useReactIntl,\n} from \"react-intl\";\nimport {useGlobalContext} from \"@components/Global\";\nimport {forwardRef, useCallback} from \"react\";\nimport merge from \"lodash/merge\";\nimport transform from \"lodash/transform\";\nimport get from \"lodash/get\";\n\nconst InnerProvider = withFetch(({children, data: messages, locale}) => {\n return (<ReactIntlProvider locale={locale} messages={messages}>\n {children}\n </ReactIntlProvider>);\n});\n\nexport const IntlProvider = ({\n locale: baseLocale, importMessages = () => ({}), moduleName = \"Global\", children,\n }) => {\n const {\n global: {localMessageRef, locale},\n } = useGlobalContext();\n const currentLocale = baseLocale || locale || \"zh-CN\";\n return (<InnerProvider\n locale={currentLocale}\n params={{locale: currentLocale}}\n loader={({params}) => {\n const {locale} = params;\n return Promise.resolve(importMessages(locale)).then(({default: localMessages}) => {\n const currentMessages = merge({}, localMessageRef.current, transform(localMessages, (results, value, key) => {\n results[`${moduleName}_${key}`] = value;\n }));\n localMessageRef.current = currentMessages;\n return currentMessages;\n });\n }}\n >\n {children}\n </InnerProvider>);\n};\n\nexport const FormattedMessage = ({id, moduleName = \"Global\", children, ...props}) => {\n const moduleId = `${moduleName}_${id}`;\n if (typeof children === \"function\") {\n return (<IntlFormattedMessage {...props} id={moduleId}>\n {(text) => {\n return children(text && text.join(\"\"));\n }}\n </IntlFormattedMessage>);\n }\n return <IntlFormattedMessage {...props} id={moduleId}/>;\n};\n\nexport const useIntl = (props) => {\n let moduleName = get(props, \"moduleName\") || \"Global\";\n const {formatMessage} = useReactIntl();\n const formatModuleMessage = useCallback((props, values) => {\n props.id = `${moduleName}_${props.id}`;\n return formatMessage(props, values);\n }, [moduleName, formatMessage]);\n return {\n formatMessage: formatModuleMessage,\n };\n};\n\nexport const createWithIntl = ({importMessages, moduleName}) => (WrappedComponent) => forwardRef((props, ref) => (\n <IntlProvider importMessages={importMessages} moduleName={moduleName}>\n <WrappedComponent {...props} ref={ref}/>\n </IntlProvider>));\n\nexport default FormattedMessage;\n\nexport {default as createWithLocale} from \"./createWithLocale\";\n","import React, {createContext, useContext, useRef} from 'react';\n\nexport const context = createContext({});\n\nconst {Provider: ReactProvider} = context;\n\nconst Provider = ({value = {}, children}) => {\n const preset = useRef(value);\n preset.current = value;\n return <ReactProvider value={preset}>\n {children}\n </ReactProvider>\n};\n\nconst usePreset = () => {\n const preset = useContext(context);\n return preset.current || {};\n};\n\nexport {Provider, usePreset};\n","const isMobile = () => {\n return /iPhone|iPod|Android|ios|iPad/i.test(navigator.userAgent);\n};\n\nexport default isMobile;\n","import dayjs from \"dayjs\";\nimport {localeLoader} from '@kne/react-intl';\n\nconst loadAntdLocale = ({params}) => {\n const {locale} = params;\n return {\n \"en-US\": async () => {\n await import(\"dayjs/locale/en\");\n dayjs.locale(\"en\");\n await import(\"@kne/button-group/dist/locale/en-US\").then((module) => {\n localeLoader('en-US', module['default'], 'button-group');\n });\n await import(\"@kne/phone-number-input/dist/locale/en-US\").then((module) => {\n localeLoader('en-US', module['default'], 'phone-number-input');\n });\n await import(\"@kne/scroll-loader/dist/locale/en-US\").then((module) => {\n localeLoader('en-US', module['default'], 'scroll-loader');\n });\n await import(\"@kne/react-file/dist/locale/en-US\").then((module) => {\n localeLoader('en-US', module['default'], 'react-file');\n });\n\n return await import(\"antd/es/locale/en_US\").then(module => module[\"default\"]);\n }, \"zh-CN\": async () => {\n await import(\"dayjs/locale/zh-cn\");\n dayjs.locale(\"zh-cn\");\n\n return await import(\"antd/es/locale/zh_CN\").then(module => module[\"default\"]);\n }\n }[locale]();\n};\n\nexport default loadAntdLocale;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"style_container__k+uRt__bxpL6\",\"is-not-init\":\"style_is-not-init__BZN0v__bxpL6\",\"loading-rotate\":\"style_loading-rotate__kLLHV__bxpL6\",\"total_text\":\"style_total_text__oNKMr__bxpL6\",\"ant-pagination\":\"style_ant-pagination__4LRg7__bxpL6\",\"ant-pagination-total-text\":\"style_ant-pagination-total-text__8HE6P__bxpL6\",\"ant-pagination-options\":\"style_ant-pagination-options__mp-tz__bxpL6\",\"ant-select-single\":\"style_ant-select-single__mL6Zt__bxpL6\",\"ant-select-selector\":\"style_ant-select-selector__+111I__bxpL6\",\"ant-select-selection-item\":\"style_ant-select-selection-item__RA3PX__bxpL6\",\"ant-select-selection-placeholder\":\"style_ant-select-selection-placeholder__CmaPV__bxpL6\",\"ant-pagination-options-quick-jumper\":\"style_ant-pagination-options-quick-jumper__ruQ4y__bxpL6\",\"ant-pagination-item\":\"style_ant-pagination-item__i8udA__bxpL6\",\"ant-pagination-prev\":\"style_ant-pagination-prev__d03DI__bxpL6\",\"ant-pagination-next\":\"style_ant-pagination-next__lreJT__bxpL6\",\"ant-pagination-item-link\":\"style_ant-pagination-item-link__qPOiQ__bxpL6\",\"ant-pagination-jump-prev\":\"style_ant-pagination-jump-prev__Cdgxu__bxpL6\",\"ant-pagination-jump-next\":\"style_ant-pagination-jump-next__vZW63__bxpL6\",\"ant-pagination-item-active\":\"style_ant-pagination-item-active__uUJBI__bxpL6\"};","import \"./polyfill\";\nimport \"simplebar/dist/simplebar.min.css\";\nimport \"./override.scss\";\nimport classnames from \"classnames\";\nimport {Provider, useGlobalContext as useContext} from \"@kne/global-context\";\nimport {Provider as PresetProvider, usePreset} from \"./presetContext\";\nimport {App, ConfigProvider as AntdConfigProvider, Result, theme} from \"antd\";\nimport {useEffect, useState, useRef} from \"react\";\nimport SimpleBar from \"simplebar\";\nimport ErrorBoundary from \"@kne/react-error-boundary\";\nimport {getScrollEl} from \"@common/utils/importantContainer\";\nimport isMobile from \"@common/utils/isMobile\";\nimport Fetch, {withFetch} from \"@kne/react-fetch\";\nimport loadAntdLocale from \"./loadAntdLocale\";\nimport style from \"./style.module.scss\";\nimport get from \"lodash/get\";\nimport {AppDrawer} from \"@components/Drawer\";\nimport {FontLoader} from '@components/Icon';\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport transform from \"lodash/transform\";\nimport range from \"lodash/range\";\nimport Color from \"color\";\nimport {createWithRemoteLoader} from \"@kne/remote-loader\";\nimport isEqual from \"lodash/isEqual\";\n\ndocument.body.classList.add(style[\"container\"]);\nif (!isMobile() && !window.__COMPONENTS_CORE_SIMPLE_BAR_DISABLED) {\n new SimpleBar(document.body);\n getScrollEl().classList.add(style[\"container\"]);\n} else {\n document.body.classList.add(\"simplebar-content-wrapper\");\n}\n\nconst ConfigProvider = withFetch(({data: message, themeToken = {colorPrimary: \"#4096ff\"}, children}) => {\n const [isInit, setIsInit] = useState(false);\n const {colorPrimary, components, ...otherToken} = Object.assign({}, themeToken);\n useEffect(() => {\n let styleEl = document.head.querySelector(\"#component-core-theme\");\n if (!styleEl) {\n styleEl = document.createElement(\"style\");\n styleEl.id = \"component-core-theme\";\n document.head.appendChild(styleEl);\n }\n const colorPrimaryObject = Color(colorPrimary);\n const themeProps = {\n \"--primary-color\": colorPrimary,\n \"--primary-color-red\": colorPrimaryObject.red(),\n \"--primary-color-green\": colorPrimaryObject.green(),\n \"--primary-color-blue\": colorPrimaryObject.blue(),\n \"--primary-color-06\": colorPrimaryObject.alpha(0.06).string(),\n };\n range(0, 10).forEach((i) => {\n themeProps[`--primary-color-${i + 1}`] = colorPrimaryObject\n .alpha((i + 1) / 10)\n .string();\n });\n styleEl.textContent = `.${style[\"container\"]\n .replace(/\\+/g, \"\\\\+\")\n .replace(/\\//g, \"\\\\/\")}{${transform(themeProps, (result, value, key) => {\n result.push(`${key}:${value};`);\n }, []).join(\"\")}}`;\n setIsInit(true);\n return () => {\n // uninstall();\n };\n }, [colorPrimary]);\n //设置主题色成功再展示页面\n if (!isInit) {\n return null;\n }\n return (<AntdConfigProvider\n getTargetContainer={getScrollEl}\n getPopupContainer={getScrollEl}\n locale={message}\n wave={{disabled: true}}\n autoInsertSpace={false}\n theme={{\n components, token: Object.assign({}, {\n colorError: \"#f53f3f\",\n colorInfo: \"#165dff\",\n colorSuccess: \"#00b42a\",\n colorWarning: \"#ff7d00\",\n algorithm: otherToken.isDark ? theme.darkAlgorithm : theme.defaultAlgorithm,\n colorPrimary: colorPrimary,\n colorLink: colorPrimary,\n colorTextBase: \"#222222\",\n colorText: \"#222222\"\n }, otherToken),\n }}\n >\n {children}\n </AntdConfigProvider>);\n});\n\nconst GlobalFontLoader = createWithRemoteLoader({\n modules: [\"components-iconfont:Font@path\", \"components-iconfont:ColorfulFont@path\",],\n})(({remoteModules}) => {\n const [fontPath, colorfulPath] = remoteModules;\n\n return <>\n <FontLoader path={`${fontPath}/iconfont.css`}/>\n <FontLoader path={`${colorfulPath}/iconfont.js`}/>\n </>;\n});\n\nexport const GlobalProvider = ({\n preset = {locale: \"zh-CN\", apis: {}}, children, themeToken, init, ...props\n }) => {\n const locale = get(preset, \"locale\", \"zh-CN\");\n const localMessageRef = useRef({});\n const enumsRef = useRef(new Map());\n const [global, setGlobal] = useState(Object.assign({\n themeToken, localMessageRef, enumsRef, locale,\n }, get(preset, \"global\")));\n return (<Provider\n value={{\n ...props, preset, locale, global, setGlobal,\n }}\n >\n <PresetProvider value={preset}>\n <ConfigProvider\n loader={loadAntdLocale}\n params={{locale: global.locale}}\n themeToken={global.themeToken}\n >\n <App message={{top: 100}}>\n <AppDrawer>\n {typeof init === \"function\" ? (<Fetch\n loader={() => init({\n preset, global, setGlobal,\n })}\n render={() => children}\n />) : (children)}\n </AppDrawer>\n </App>\n <GlobalFontLoader/>\n </ConfigProvider>\n </PresetProvider>\n </Provider>);\n};\n\nexport const PureGlobal = ({children, ...props}) => {\n const {global: themeToken} = useGlobalContext(\"themeToken\");\n return (<GlobalProvider {...props} themeToken={props.themeToken || themeToken}>\n <div\n data-testid=\"components-core-pure-global\"\n className={classnames(style[\"container\"], \"core-container-body\")}\n >\n {children}\n </div>\n </GlobalProvider>);\n};\n\nexport {usePreset};\n\nexport const useGlobalContext = (globalKey) => {\n const contextValue = useContext();\n return Object.assign({\n global: {}, setGlobal: () => {\n console.warn(\"调用setGlobal的组件应该被放置在Global上下文中\");\n },\n }, contextValue, globalKey ? {\n global: get(contextValue.global, globalKey), setGlobal: (value) => {\n contextValue.setGlobal(typeof value === \"function\" ? (global) => {\n return Object.assign({}, global, {\n [globalKey]: value(get(global, globalKey)),\n });\n } : Object.assign({}, contextValue.global, {\n [globalKey]: value,\n }));\n },\n } : {});\n};\n\nexport const SetGlobal = ({globalKey, value, needReady, children}) => {\n const {global, setGlobal} = useGlobalContext(globalKey);\n const setGlobalHandler = useRefCallback(setGlobal);\n const prevValueRef = useRef(null);\n prevValueRef.current = global;\n useEffect(() => {\n if (isEqual(prevValueRef.current, value)) {\n return;\n }\n prevValueRef.current = value;\n setGlobalHandler(value);\n }, [value, setGlobalHandler]);\n\n if (needReady && !global) {\n return null;\n }\n\n return children;\n};\n\nexport const GetGlobal = ({globalKey, children}) => {\n const {global} = useGlobalContext(globalKey);\n return children({value: global});\n};\n\nexport const GlobalInfo = ({globalKey, value, needReady, children}) => {\n const {global, setGlobal} = useGlobalContext(globalKey);\n const setGlobalHandler = useRefCallback(setGlobal);\n const prevValueRef = useRef(null);\n prevValueRef.current = global;\n useEffect(() => {\n if (isEqual(prevValueRef.current, value)) {\n return;\n }\n prevValueRef.current = value;\n setGlobalHandler(value);\n }, [value, setGlobalHandler]);\n\n if (needReady && !global) {\n return null;\n }\n return children({global, setGlobal});\n};\n\nconst Global = ({children, className, ...props}) => {\n return (<ErrorBoundary\n errorRender={() => {\n return (<Result\n status=\"500\"\n title=\"500\"\n subTitle=\"程序出现异常,请刷新后重试\"\n />);\n }}\n >\n <GlobalProvider {...props}>\n <div\n data-testid=\"components-core-global\"\n className={classnames(style[\"container\"], \"container-body\", className)}\n >\n {children}\n </div>\n </GlobalProvider>\n </ErrorBoundary>);\n};\n\nexport default Global;\n","import {useEffect} from \"react\";\nimport {useFetch} from \"@kne/react-fetch\";\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport {Button} from \"antd\";\n\nconst FetchButton = ({api, modalProps = {}, modalFunc, onError, ...props}) => {\n const fetchApi = useFetch(Object.assign({}, api, {auto: false}));\n const {isLoading, data, error, refresh} = fetchApi;\n const errorHandler = useRefCallback(onError);\n const modalFuncHandler = useRefCallback(() => {\n const modalApi = modalFunc(typeof modalProps === \"function\" ? modalProps({\n data, fetchApi, close: () => {\n modalApi.close();\n },\n }) : modalProps);\n });\n useEffect(() => {\n if (isLoading) {\n return;\n }\n if (error) {\n errorHandler(error);\n return;\n }\n if (!data) {\n return;\n }\n modalFuncHandler();\n }, [isLoading, error, data, modalFuncHandler, errorHandler]);\n return (<Button\n {...props}\n loading={isLoading}\n onClick={() => {\n refresh({\n onSuccess: () => {\n },\n });\n }}\n />);\n};\n\nexport default FetchButton;\n","export const getScrollEl = () => document.querySelector('.simplebar-content-wrapper');\nexport const getContainerBody = () => document.querySelector('.container-body');\n"],"names":["at","n","Math","trunc","this","length","TypedArray","Reflect","getPrototypeOf","Int8Array","C","Array","String","Object","defineProperty","prototype","value","writable","enumerable","configurable","locale","en-US","zh-CN","usePatchElement","elements","setElements","useState","useCallback","element","originElements","filter","ele","forwardRef","HookDrawer","_ref","ref","config","open","setOpen","innerConfig","setInnerConfig","close","_len","arguments","args","_key","triggerCancel","some","param","onClose","slice","useImperativeHandle","destroy","update","newConfig","originConfig","_objectSpread","_jsx","Drawer","uuid","withConfirm","props","destroyFns","ElementsHolder","memo","patchElement","_Fragment","children","holderRef","useRef","actionQueue","setActionQueue","useEffect","forEach","action","getConfirmFunc","withFunc","_holderRef$current","drawerRef","createRef","closeFunc","drawer","afterClose","_closeFunc","concat","current","push","destroyAction","_drawerRef$current","prev","updateAction","_drawerRef$current2","useMemo","context","createContext","Provider","AppDrawer","DrawerApi","DrawerContextHolder","useDrawer","memoizedContextValue","_jsxs","useAppDrawer","useContext","renderWithOptions","footer","options","Footer","footerButtons","onConfirm","onCancel","Row","gutter","wrap","Col","flex","isArray","Space","onClick","type","map","_ref2","index","ButtonComponent","autoClose","_objectWithoutProperties","_excluded","CurrentButton","LoadingButton","_createElement","key","async","res","Promise","resolve","DrawerOuter","_ref3","title","disabledScroller","closable","modalBodyRef","SimpleBar","className","style","Button","classnames","icon","Icon","e","stopPropagation","runWithDecorator","_ref4","withDecorator","getInner","assign","computedCommonProps","_ref5","size","_excluded2","maskClosable","hasOwnProperty","destroyOnHidden","width","IntlProvider","importMessages","moduleName","api","_computedCommonProps","otherProps","_objectDestructuringEmpty","_ref6","_excluded3","AntdDrawer","FetchButton","modalFunc","localeCache","Map","WrappedComponent","global","useGlobalContext","currentLocale","Fetch","params","loader","has","get","then","default","localMessages","set","render","data","messages","InnerProvider","withFetch","ReactIntlProvider","baseLocale","localMessageRef","currentMessages","merge","transform","results","FormattedMessage","id","moduleId","IntlFormattedMessage","text","join","useIntl","formatMessage","useReactIntl","formatModuleMessage","values","createWithIntl","ReactProvider","preset","usePreset","isMobile","test","navigator","userAgent","dayjs","module","localeLoader","document","body","classList","add","window","__COMPONENTS_CORE_SIMPLE_BAR_DISABLED","getScrollEl","ConfigProvider","message","themeToken","colorPrimary","isInit","setIsInit","_Object$assign","components","otherToken","styleEl","head","querySelector","createElement","appendChild","colorPrimaryObject","Color","themeProps","red","green","blue","alpha","string","range","i","textContent","replace","result","AntdConfigProvider","getTargetContainer","getPopupContainer","wave","disabled","autoInsertSpace","theme","token","colorError","colorInfo","colorSuccess","colorWarning","algorithm","isDark","darkAlgorithm","defaultAlgorithm","colorLink","colorTextBase","colorText","GlobalFontLoader","createWithRemoteLoader","modules","remoteModules","fontPath","colorfulPath","FontLoader","path","GlobalProvider","apis","init","enumsRef","setGlobal","PresetProvider","loadAntdLocale","App","top","PureGlobal","globalKey","contextValue","console","warn","SetGlobal","needReady","setGlobalHandler","useRefCallback","prevValueRef","isEqual","GetGlobal","GlobalInfo","_ref7","_ref8","_excluded4","ErrorBoundary","errorRender","Result","status","subTitle","modalProps","onError","fetchApi","useFetch","auto","isLoading","error","refresh","errorHandler","modalFuncHandler","modalApi","loading","onSuccess","getContainerBody"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/206.8d606f29.chunk.js","mappings":"oIAAA,SAASA,EAAGC,GAMV,IAJAA,EAAIC,KAAKC,MAAMF,IAAM,GAEb,IAAGA,GAAKG,KAAKC,UAEjBJ,EAAI,GAAKA,GAAKG,KAAKC,QAEvB,OAAOD,KAAKH,EACd,CAEA,MAAMK,EAAaC,QAAQC,eAAeC,WAC1C,IAAK,MAAMC,IAAK,CAACC,MAAOC,OAAQN,GAC9BO,OAAOC,eAAeJ,EAAEK,UAAW,KAAM,CACvCC,MAAOhB,EACPiB,UAAU,EACVC,YAAY,EACZC,cAAc,G,oLChBlB,QAAyB,6BAAzB,EAAqE,mCAArE,EAAuH,mCAAvH,EAAwK,kCAAxK,EAAiO,2CAAjO,EAAgS,wCAAhS,EAAwV,oCAAxV,EAA2Y,mCCM3Y,EAPwBC,IACf,CACL,QAASC,IAAM,gCACf,QAASC,IAAM,iCACfF,M,0BCFJ,MAiBA,EAjBwBG,KACpB,MAAOC,EAAUC,IAAeC,EAAAA,EAAAA,UAAS,IAazC,MAAO,CAACF,GAXaG,EAAAA,EAAAA,aAAaC,IAE9BH,EAAaI,GAAmB,IAAIA,EAAgBD,IAI7C,KACHH,EAAaI,GAAmBA,EAAeC,OAAQC,GAAQA,IAAQH,MAE5E,M,eCXP,MAwBA,GAAeI,EAAAA,EAAAA,YAxBIC,CAAAC,EAAWC,KAAS,IAAnB,OAACC,GAAOF,EACxB,MAAOG,EAAMC,IAAWZ,EAAAA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C,OAAO,MACPhL,MAAM,MACNiL,SAAS,mFAEfvP,UAEFV,EAAAA,EAAAA,KAACoO,GAAcrO,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAAKK,GAAK,IAAAM,UACrBV,EAAAA,EAAAA,KAAA,OACI,cAAY,yBACZqF,UAAWG,IAAWF,EAAiB,UAAG,iBAAkBD,GAAW3E,SAEtEA,S,iVChMjB,EApCoBjC,IAA2D,IAA1D,IAACoI,EAAG,WAAEqJ,EAAa,CAAC,EAAC,UAAE7I,EAAS,QAAE8I,GAAkB1R,EAAN2B,GAAKgE,EAAAA,EAAAA,GAAA3F,EAAA4F,GACpE,MAAM+L,GAAWC,EAAAA,EAAAA,UAASjT,OAAO6I,OAAO,CAAC,EAAGY,EAAK,CAACyJ,MAAM,MAClD,UAACC,EAAS,KAAEjI,EAAI,MAAEkI,EAAK,QAAEC,GAAWL,EACpCM,EAAerB,IAAec,GAC9BQ,EAAmBtB,IAAe,KACpC,MAAMuB,EAAWvJ,EAAgC,oBAAf6I,EAA4BA,EAAW,CACrE5H,OAAM8H,WAAUpR,MAAOA,KACnB4R,EAAS5R,WAEZkR,KAeT,OAbAnP,EAAAA,EAAAA,WAAU,KACFwP,IAGAC,EACAE,EAAaF,GAGZlI,GAGLqI,MACD,CAACJ,EAAWC,EAAOlI,EAAMqI,EAAkBD,KACtC1Q,EAAAA,EAAAA,KAACuF,EAAAA,QAAMxF,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACPK,GAAK,IACTyQ,QAASN,EACT1M,QAASA,KACL4M,EAAQ,CACJK,UAAWA,a,wDClCpB,MAAMjG,EAAcA,IAAMN,SAASkB,cAAc,8BAC3CsF,EAAmBA,IAAMxG,SAASkB,cAAc,kB","sources":["components/Global/polyfill.js","webpack://@kne-components/components-core/./src/components/Drawer/style.module.scss?33d4","components/Drawer/locale/index.js","components/Drawer/useDrawer/usePatchElement.js","components/Drawer/useDrawer/HookDrawer.js","components/Drawer/useDrawer/index.js","components/Drawer/AppDrawer.js","components/Drawer/Drawer.js","components/Drawer/DrawerButton.js","components/Intl/createWithLocale.js","components/Intl/index.js","components/Global/presetContext.js","common/utils/isMobile.js","components/Global/loadAntdLocale.js","webpack://@kne-components/components-core/./src/components/Global/style.module.scss?6540","components/Global/index.js","common/components/FetchButton.js","common/utils/importantContainer.js"],"sourcesContent":["function at(n) {\n // ToInteger() abstract op\n n = Math.trunc(n) || 0;\n // Allow negative indexing from the end\n if (n < 0) n += this.length;\n // OOB access is guaranteed to return undefined\n if (n < 0 || n >= this.length) return undefined;\n // Otherwise, this is just normal property access\n return this[n];\n}\n\nconst TypedArray = Reflect.getPrototypeOf(Int8Array);\nfor (const C of [Array, String, TypedArray]) {\n Object.defineProperty(C.prototype, \"at\", {\n value: at,\n writable: true,\n enumerable: false,\n configurable: true,\n });\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"drawer\":\"style_drawer__hA8bn__RknBi\",\"drawer-outer\":\"style_drawer-outer__vuEIf__RknBi\",\"drawer-title\":\"style_drawer-title__71eaW__RknBi\",\"drawer-body\":\"style_drawer-body__frw9I__RknBi\",\"is-disabled-scroller\":\"style_is-disabled-scroller__ZsITw__RknBi\",\"drawer-body-inner\":\"style_drawer-body-inner__lci9Z__RknBi\",\"drawer-footer\":\"style_drawer-footer__1g8o1__RknBi\",\"drawer-close\":\"style_drawer-close__bpxnp__RknBi\"};","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","import {useState, useCallback} from \"react\";\n\nconst usePatchElement = () => {\n const [elements, setElements] = useState([]);\n\n const patchElement = useCallback((element) => {\n // append a new element to elements (and create a new ref)\n setElements((originElements) => [...originElements, element]);\n\n // return a function that removes the new element out of elements (and create a new ref)\n // it works a little like useEffect\n return () => {\n setElements((originElements) => originElements.filter((ele) => ele !== element));\n };\n }, []);\n\n return [elements, patchElement];\n};\n\nexport default usePatchElement;\n","import {useState, useImperativeHandle, forwardRef} from \"react\";\nimport {Drawer} from \"antd\";\n\nconst HookDrawer = ({config}, ref) => {\n const [open, setOpen] = useState(true);\n const [innerConfig, setInnerConfig] = useState(config);\n\n const close = (...args) => {\n setOpen(false);\n const triggerCancel = args.some((param) => param && param.triggerCancel);\n if (innerConfig.onClose && triggerCancel) {\n innerConfig.onClose(() => {\n }, ...args.slice(1));\n }\n };\n\n useImperativeHandle(ref, () => ({\n destroy: close, update: (newConfig) => {\n setInnerConfig((originConfig) => ({\n ...originConfig, ...newConfig,\n }));\n },\n }));\n\n return <Drawer {...innerConfig} ref={ref} open={open} onClose={close}/>;\n};\n\nexport default forwardRef(HookDrawer);\n","import {\n createRef,\n forwardRef,\n memo,\n useCallback,\n useEffect,\n useImperativeHandle,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport usePatchElement from \"./usePatchElement\";\nimport HookDrawer from \"./HookDrawer\";\n\nlet uuid = 0;\n\nfunction withConfirm(props) {\n return {\n ...props,\n };\n}\n\nconst destroyFns = [];\n\nconst ElementsHolder = memo(\n forwardRef((props, ref) => {\n const [elements, patchElement] = usePatchElement();\n useImperativeHandle(\n ref,\n () => ({\n patchElement,\n }),\n [patchElement]\n );\n return <>{elements}</>;\n })\n);\n\nfunction useDrawer() {\n const holderRef = useRef(null);\n const [actionQueue, setActionQueue] = useState([]);\n useEffect(() => {\n if (actionQueue.length) {\n const cloneQueue = [...actionQueue];\n cloneQueue.forEach((action) => {\n action();\n });\n setActionQueue([]);\n }\n }, [actionQueue]);\n\n const getConfirmFunc = useCallback(\n (withFunc) =>\n function hookConfirm(config) {\n uuid += 1;\n\n const drawerRef = createRef();\n\n let closeFunc = () => {};\n const drawer = (\n <HookDrawer\n key={`drawer-${uuid}`}\n config={withFunc(config)}\n ref={drawerRef}\n afterClose={() => {\n closeFunc?.();\n }}\n />\n );\n\n closeFunc = holderRef.current?.patchElement(drawer);\n\n if (closeFunc) {\n destroyFns.push(closeFunc);\n }\n\n return {\n destroy: () => {\n function destroyAction() {\n drawerRef.current?.destroy();\n }\n\n if (drawerRef.current) {\n destroyAction();\n } else {\n setActionQueue((prev) => [...prev, destroyAction]);\n }\n },\n update: (newConfig) => {\n function updateAction() {\n drawerRef.current?.update(newConfig);\n }\n\n if (drawerRef.current) {\n updateAction();\n } else {\n setActionQueue((prev) => [...prev, updateAction]);\n }\n },\n };\n },\n []\n );\n\n const fns = useMemo(() => getConfirmFunc(withConfirm), [getConfirmFunc]);\n\n return [fns, <ElementsHolder key=\"drawer-holder\" ref={holderRef} />];\n}\n\nexport default useDrawer;\n","import { createContext, useContext, useMemo } from \"react\";\nimport useDrawer from \"./useDrawer\";\n\nconst context = createContext({});\nconst { Provider } = context;\n\nconst useAppDrawer = () => useContext(context);\n\nconst AppDrawer = (props) => {\n const { children } = props;\n const [DrawerApi, DrawerContextHolder] = useDrawer();\n const memoizedContextValue = useMemo(\n () => ({\n drawer: DrawerApi,\n }),\n [DrawerApi]\n );\n return (\n <Provider value={memoizedContextValue}>\n <div>\n {DrawerContextHolder}\n {children}\n </div>\n </Provider>\n );\n};\n\nAppDrawer.useAppDrawer = useAppDrawer;\n\nexport default AppDrawer;\n","import {Button, Col, Drawer as AntdDrawer, Row, Space} from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport {IntlProvider} from \"@components/Intl\";\nimport AppDrawer from \"./AppDrawer\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport React, {useEffect, useRef} from \"react\";\nimport SimpleBar from \"simplebar\";\nimport Icon from \"@components/Icon\";\n\nconst renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nconst sizeMap = (type) => {\n if (type === \"large\") {\n return {width: \"calc(100vw - 64px)\"};\n }\n if (type === \"small\") {\n return {width: \"600px\"};\n }\n return {width: \"1000px\"};\n};\n\nconst Footer = ({footer, footerButtons, onConfirm, onCancel, onClose}) => {\n return (<Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (<Col>\n <Space>\n {(footerButtons || [{children: \"取消\", onClick: onCancel}, {\n type: \"primary\", children: \"确定\", onClick: onConfirm,\n },]).map(({ButtonComponent, onClick, autoClose = true, ...props}, index) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (<CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(onClick && onClick(...args));\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />);\n })}\n </Space>\n </Col>)}\n </Row>);\n};\n\nconst DrawerOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n }) => {\n const modalBodyRef = useRef(null);\n useEffect(() => {\n !disabledScroller && new SimpleBar(modalBodyRef.current);\n }, [disabledScroller]);\n return (<div className={style[\"drawer-outer\"]} data-testid=\"components-core-drawer\">\n {closable === false ? null : (<Button\n data-testid=\"components-core-drawer-close-btn\"\n className={classnames(style[\"drawer-close\"], \"drawer-close\")}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\"/>}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />)}\n {title && (<div className={classnames(style[\"drawer-title\"], \"drawer-title\")}>\n {title}\n </div>)}\n <div\n className={classnames(style[\"drawer-body\"], \"drawer-body\", {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n })}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"drawer-body-inner\"], \"drawer-body-inner\")}\n >\n {children}\n </div>\n </div>\n {footer === null && !footerButtons ? null : (\n <div className={classnames(style[\"drawer-footer\"], \"drawer-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n />\n </div>)}\n </div>);\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n disabledScroller,\n children,\n }) => {\n const getInner = (props) => {\n props = Object.assign({}, props);\n return (<DrawerOuter\n title={title}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props, close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {...props, close: onClose})}\n >\n {renderWithOptions(children, {\n ...props, close: onClose,\n })}\n </DrawerOuter>);\n };\n return typeof withDecorator === \"function\" ? withDecorator(getInner) : getInner({});\n};\n\nexport const computedCommonProps = ({\n children,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n ...props\n }) => {\n return {\n ...props,\n icon: null,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\") ? props.maskClosable : false,\n destroyOnHidden: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"drawer\"]), ...sizeMap(size),\n children: (<IntlProvider importMessages={importMessages} moduleName=\"Drawer\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n disabledScroller,\n children,\n })}\n </IntlProvider>),\n };\n};\n\nconst Drawer = ({size = \"small\", ...props}) => {\n return <AntdDrawer {...computedCommonProps({size, ...props})} />;\n};\n\nexport const useDrawer = () => {\n const {drawer} = AppDrawer.useAppDrawer();\n return (props) => {\n const api = {};\n const {...otherProps} = computedCommonProps({\n onClose: () => api.close(), ...props,\n });\n const {destroy} = drawer({\n ...otherProps,\n });\n api.close = destroy;\n return api;\n };\n};\n\nexport default Drawer;\n","import { useDrawer } from \"./Drawer\";\nimport FetchButton from \"@common/components/FetchButton\";\n\nconst DrawerButton = (props) => {\n const drawer = useDrawer();\n return <FetchButton {...props} modalFunc={drawer} />;\n};\n\nexport default DrawerButton;\n","import { forwardRef } from \"react\";\nimport Fetch from \"@kne/react-fetch\";\nimport { useGlobalContext } from \"@components/Global\";\n\nconst localeCache = new Map();\n\nconst createWithLocale =\n ({ moduleName, importMessages }) =>\n (WrappedComponent) =>\n forwardRef((props, ref) => {\n const { global: locale } = useGlobalContext(\"locale\");\n const currentLocale = locale || \"zh-CN\";\n return (\n <Fetch\n params={{ locale: currentLocale }}\n loader={({ params }) => {\n const { locale } = params;\n const key = `${moduleName}_${locale}`;\n if (localeCache.has(key)) {\n return localeCache.get(key);\n }\n return Promise.resolve(importMessages(locale)).then(\n ({ default: localMessages }) => {\n localeCache.set(key, localMessages);\n return localMessages;\n }\n );\n }}\n render={({ data: messages }) => {\n return <WrappedComponent {...props} locale={messages} ref={ref} />;\n }}\n />\n );\n });\n\nexport default createWithLocale;\n","import {withFetch} from \"@kne/react-fetch\";\nimport {\n FormattedMessage as IntlFormattedMessage, IntlProvider as ReactIntlProvider, useIntl as useReactIntl,\n} from \"react-intl\";\nimport {useGlobalContext} from \"@components/Global\";\nimport {forwardRef, useCallback} from \"react\";\nimport merge from \"lodash/merge\";\nimport transform from \"lodash/transform\";\nimport get from \"lodash/get\";\n\nconst InnerProvider = withFetch(({children, data: messages, locale}) => {\n return (<ReactIntlProvider locale={locale} messages={messages}>\n {children}\n </ReactIntlProvider>);\n});\n\nexport const IntlProvider = ({\n locale: baseLocale, importMessages = () => ({}), moduleName = \"Global\", children,\n }) => {\n const {\n global: {localMessageRef, locale},\n } = useGlobalContext();\n const currentLocale = baseLocale || locale || \"zh-CN\";\n return (<InnerProvider\n locale={currentLocale}\n params={{locale: currentLocale}}\n loader={({params}) => {\n const {locale} = params;\n return Promise.resolve(importMessages(locale)).then(({default: localMessages}) => {\n const currentMessages = merge({}, localMessageRef.current, transform(localMessages, (results, value, key) => {\n results[`${moduleName}_${key}`] = value;\n }));\n localMessageRef.current = currentMessages;\n return currentMessages;\n });\n }}\n >\n {children}\n </InnerProvider>);\n};\n\nexport const FormattedMessage = ({id, moduleName = \"Global\", children, ...props}) => {\n const moduleId = `${moduleName}_${id}`;\n if (typeof children === \"function\") {\n return (<IntlFormattedMessage {...props} id={moduleId}>\n {(text) => {\n return children(text && text.join(\"\"));\n }}\n </IntlFormattedMessage>);\n }\n return <IntlFormattedMessage {...props} id={moduleId}/>;\n};\n\nexport const useIntl = (props) => {\n let moduleName = get(props, \"moduleName\") || \"Global\";\n const {formatMessage} = useReactIntl();\n const formatModuleMessage = useCallback((props, values) => {\n props.id = `${moduleName}_${props.id}`;\n return formatMessage(props, values);\n }, [moduleName, formatMessage]);\n return {\n formatMessage: formatModuleMessage,\n };\n};\n\nexport const createWithIntl = ({importMessages, moduleName}) => (WrappedComponent) => forwardRef((props, ref) => (\n <IntlProvider importMessages={importMessages} moduleName={moduleName}>\n <WrappedComponent {...props} ref={ref}/>\n </IntlProvider>));\n\nexport default FormattedMessage;\n\nexport {default as createWithLocale} from \"./createWithLocale\";\n","import React, {createContext, useContext, useRef} from 'react';\n\nexport const context = createContext({});\n\nconst {Provider: ReactProvider} = context;\n\nconst Provider = ({value = {}, children}) => {\n const preset = useRef(value);\n preset.current = value;\n return <ReactProvider value={preset}>\n {children}\n </ReactProvider>\n};\n\nconst usePreset = () => {\n const preset = useContext(context);\n return preset.current || {};\n};\n\nexport {Provider, usePreset};\n","const isMobile = () => {\n return /iPhone|iPod|Android|ios|iPad/i.test(navigator.userAgent);\n};\n\nexport default isMobile;\n","import dayjs from \"dayjs\";\nimport {localeLoader} from '@kne/react-intl';\n\nconst loadAntdLocale = ({params}) => {\n const {locale} = params;\n return {\n \"en-US\": async () => {\n await import(\"dayjs/locale/en\");\n dayjs.locale(\"en\");\n await import(\"@kne/button-group/dist/locale/en-US\").then((module) => {\n localeLoader('en-US', module['default'], 'button-group');\n });\n await import(\"@kne/phone-number-input/dist/locale/en-US\").then((module) => {\n localeLoader('en-US', module['default'], 'phone-number-input');\n });\n await import(\"@kne/scroll-loader/dist/locale/en-US\").then((module) => {\n localeLoader('en-US', module['default'], 'scroll-loader');\n });\n await import(\"@kne/react-file/dist/locale/en-US\").then((module) => {\n localeLoader('en-US', module['default'], 'react-file');\n });\n\n return await import(\"antd/es/locale/en_US\").then(module => module[\"default\"]);\n }, \"zh-CN\": async () => {\n await import(\"dayjs/locale/zh-cn\");\n dayjs.locale(\"zh-cn\");\n\n return await import(\"antd/es/locale/zh_CN\").then(module => module[\"default\"]);\n }\n }[locale]();\n};\n\nexport default loadAntdLocale;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"style_container__k+uRt__RknBi\",\"is-not-init\":\"style_is-not-init__BZN0v__RknBi\",\"loading-rotate\":\"style_loading-rotate__kLLHV__RknBi\",\"total_text\":\"style_total_text__oNKMr__RknBi\",\"ant-pagination\":\"style_ant-pagination__4LRg7__RknBi\",\"ant-pagination-total-text\":\"style_ant-pagination-total-text__8HE6P__RknBi\",\"ant-pagination-options\":\"style_ant-pagination-options__mp-tz__RknBi\",\"ant-select-single\":\"style_ant-select-single__mL6Zt__RknBi\",\"ant-select-selector\":\"style_ant-select-selector__+111I__RknBi\",\"ant-select-selection-item\":\"style_ant-select-selection-item__RA3PX__RknBi\",\"ant-select-selection-placeholder\":\"style_ant-select-selection-placeholder__CmaPV__RknBi\",\"ant-pagination-options-quick-jumper\":\"style_ant-pagination-options-quick-jumper__ruQ4y__RknBi\",\"ant-pagination-item\":\"style_ant-pagination-item__i8udA__RknBi\",\"ant-pagination-prev\":\"style_ant-pagination-prev__d03DI__RknBi\",\"ant-pagination-next\":\"style_ant-pagination-next__lreJT__RknBi\",\"ant-pagination-item-link\":\"style_ant-pagination-item-link__qPOiQ__RknBi\",\"ant-pagination-jump-prev\":\"style_ant-pagination-jump-prev__Cdgxu__RknBi\",\"ant-pagination-jump-next\":\"style_ant-pagination-jump-next__vZW63__RknBi\",\"ant-pagination-item-active\":\"style_ant-pagination-item-active__uUJBI__RknBi\"};","import \"./polyfill\";\nimport \"simplebar/dist/simplebar.min.css\";\nimport \"./override.scss\";\nimport classnames from \"classnames\";\nimport {Provider, useGlobalContext as useContext} from \"@kne/global-context\";\nimport {Provider as PresetProvider, usePreset} from \"./presetContext\";\nimport {App, ConfigProvider as AntdConfigProvider, Result, theme} from \"antd\";\nimport {useEffect, useState, useRef} from \"react\";\nimport SimpleBar from \"simplebar\";\nimport ErrorBoundary from \"@kne/react-error-boundary\";\nimport {getScrollEl} from \"@common/utils/importantContainer\";\nimport isMobile from \"@common/utils/isMobile\";\nimport Fetch, {withFetch} from \"@kne/react-fetch\";\nimport loadAntdLocale from \"./loadAntdLocale\";\nimport style from \"./style.module.scss\";\nimport get from \"lodash/get\";\nimport {AppDrawer} from \"@components/Drawer\";\nimport {FontLoader} from '@components/Icon';\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport transform from \"lodash/transform\";\nimport range from \"lodash/range\";\nimport Color from \"color\";\nimport {createWithRemoteLoader} from \"@kne/remote-loader\";\nimport isEqual from \"lodash/isEqual\";\n\ndocument.body.classList.add(style[\"container\"]);\nif (!isMobile() && !window.__COMPONENTS_CORE_SIMPLE_BAR_DISABLED) {\n new SimpleBar(document.body);\n getScrollEl().classList.add(style[\"container\"]);\n} else {\n document.body.classList.add(\"simplebar-content-wrapper\");\n}\n\nconst ConfigProvider = withFetch(({data: message, themeToken = {colorPrimary: \"#4096ff\"}, children}) => {\n const [isInit, setIsInit] = useState(false);\n const {colorPrimary, components, ...otherToken} = Object.assign({}, themeToken);\n useEffect(() => {\n let styleEl = document.head.querySelector(\"#component-core-theme\");\n if (!styleEl) {\n styleEl = document.createElement(\"style\");\n styleEl.id = \"component-core-theme\";\n document.head.appendChild(styleEl);\n }\n const colorPrimaryObject = Color(colorPrimary);\n const themeProps = {\n \"--primary-color\": colorPrimary,\n \"--primary-color-red\": colorPrimaryObject.red(),\n \"--primary-color-green\": colorPrimaryObject.green(),\n \"--primary-color-blue\": colorPrimaryObject.blue(),\n \"--primary-color-06\": colorPrimaryObject.alpha(0.06).string(),\n };\n range(0, 10).forEach((i) => {\n themeProps[`--primary-color-${i + 1}`] = colorPrimaryObject\n .alpha((i + 1) / 10)\n .string();\n });\n styleEl.textContent = `.${style[\"container\"]\n .replace(/\\+/g, \"\\\\+\")\n .replace(/\\//g, \"\\\\/\")}{${transform(themeProps, (result, value, key) => {\n result.push(`${key}:${value};`);\n }, []).join(\"\")}}`;\n setIsInit(true);\n return () => {\n // uninstall();\n };\n }, [colorPrimary]);\n //设置主题色成功再展示页面\n if (!isInit) {\n return null;\n }\n return (<AntdConfigProvider\n getTargetContainer={getScrollEl}\n getPopupContainer={getScrollEl}\n locale={message}\n wave={{disabled: true}}\n autoInsertSpace={false}\n theme={{\n components, token: Object.assign({}, {\n colorError: \"#f53f3f\",\n colorInfo: \"#165dff\",\n colorSuccess: \"#00b42a\",\n colorWarning: \"#ff7d00\",\n algorithm: otherToken.isDark ? theme.darkAlgorithm : theme.defaultAlgorithm,\n colorPrimary: colorPrimary,\n colorLink: colorPrimary,\n colorTextBase: \"#222222\",\n colorText: \"#222222\"\n }, otherToken),\n }}\n >\n {children}\n </AntdConfigProvider>);\n});\n\nconst GlobalFontLoader = createWithRemoteLoader({\n modules: [\"components-iconfont:Font@path\", \"components-iconfont:ColorfulFont@path\",],\n})(({remoteModules}) => {\n const [fontPath, colorfulPath] = remoteModules;\n\n return <>\n <FontLoader path={`${fontPath}/iconfont.css`}/>\n <FontLoader path={`${colorfulPath}/iconfont.js`}/>\n </>;\n});\n\nexport const GlobalProvider = ({\n preset = {locale: \"zh-CN\", apis: {}}, children, themeToken, init, ...props\n }) => {\n const locale = get(preset, \"locale\", \"zh-CN\");\n const localMessageRef = useRef({});\n const enumsRef = useRef(new Map());\n const [global, setGlobal] = useState(Object.assign({\n themeToken, localMessageRef, enumsRef, locale,\n }, get(preset, \"global\")));\n return (<Provider\n value={{\n ...props, preset, locale, global, setGlobal,\n }}\n >\n <PresetProvider value={preset}>\n <ConfigProvider\n loader={loadAntdLocale}\n params={{locale: global.locale}}\n themeToken={global.themeToken}\n >\n <App message={{top: 100}}>\n <AppDrawer>\n {typeof init === \"function\" ? (<Fetch\n loader={() => init({\n preset, global, setGlobal,\n })}\n render={() => children}\n />) : (children)}\n </AppDrawer>\n </App>\n <GlobalFontLoader/>\n </ConfigProvider>\n </PresetProvider>\n </Provider>);\n};\n\nexport const PureGlobal = ({children, ...props}) => {\n const {global: themeToken} = useGlobalContext(\"themeToken\");\n return (<GlobalProvider {...props} themeToken={props.themeToken || themeToken}>\n <div\n data-testid=\"components-core-pure-global\"\n className={classnames(style[\"container\"], \"core-container-body\")}\n >\n {children}\n </div>\n </GlobalProvider>);\n};\n\nexport {usePreset};\n\nexport const useGlobalContext = (globalKey) => {\n const contextValue = useContext();\n return Object.assign({\n global: {}, setGlobal: () => {\n console.warn(\"调用setGlobal的组件应该被放置在Global上下文中\");\n },\n }, contextValue, globalKey ? {\n global: get(contextValue.global, globalKey), setGlobal: (value) => {\n contextValue.setGlobal(typeof value === \"function\" ? (global) => {\n return Object.assign({}, global, {\n [globalKey]: value(get(global, globalKey)),\n });\n } : Object.assign({}, contextValue.global, {\n [globalKey]: value,\n }));\n },\n } : {});\n};\n\nexport const SetGlobal = ({globalKey, value, needReady, children}) => {\n const {global, setGlobal} = useGlobalContext(globalKey);\n const setGlobalHandler = useRefCallback(setGlobal);\n const prevValueRef = useRef(null);\n prevValueRef.current = global;\n useEffect(() => {\n if (isEqual(prevValueRef.current, value)) {\n return;\n }\n prevValueRef.current = value;\n setGlobalHandler(value);\n }, [value, setGlobalHandler]);\n\n if (needReady && !global) {\n return null;\n }\n\n return children;\n};\n\nexport const GetGlobal = ({globalKey, children}) => {\n const {global} = useGlobalContext(globalKey);\n return children({value: global});\n};\n\nexport const GlobalInfo = ({globalKey, value, needReady, children}) => {\n const {global, setGlobal} = useGlobalContext(globalKey);\n const setGlobalHandler = useRefCallback(setGlobal);\n const prevValueRef = useRef(null);\n prevValueRef.current = global;\n useEffect(() => {\n if (isEqual(prevValueRef.current, value)) {\n return;\n }\n prevValueRef.current = value;\n setGlobalHandler(value);\n }, [value, setGlobalHandler]);\n\n if (needReady && !global) {\n return null;\n }\n return children({global, setGlobal});\n};\n\nconst Global = ({children, className, ...props}) => {\n return (<ErrorBoundary\n errorRender={() => {\n return (<Result\n status=\"500\"\n title=\"500\"\n subTitle=\"程序出现异常,请刷新后重试\"\n />);\n }}\n >\n <GlobalProvider {...props}>\n <div\n data-testid=\"components-core-global\"\n className={classnames(style[\"container\"], \"container-body\", className)}\n >\n {children}\n </div>\n </GlobalProvider>\n </ErrorBoundary>);\n};\n\nexport default Global;\n","import {useEffect} from \"react\";\nimport {useFetch} from \"@kne/react-fetch\";\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport {Button} from \"antd\";\n\nconst FetchButton = ({api, modalProps = {}, modalFunc, onError, ...props}) => {\n const fetchApi = useFetch(Object.assign({}, api, {auto: false}));\n const {isLoading, data, error, refresh} = fetchApi;\n const errorHandler = useRefCallback(onError);\n const modalFuncHandler = useRefCallback(() => {\n const modalApi = modalFunc(typeof modalProps === \"function\" ? modalProps({\n data, fetchApi, close: () => {\n modalApi.close();\n },\n }) : modalProps);\n });\n useEffect(() => {\n if (isLoading) {\n return;\n }\n if (error) {\n errorHandler(error);\n return;\n }\n if (!data) {\n return;\n }\n modalFuncHandler();\n }, [isLoading, error, data, modalFuncHandler, errorHandler]);\n return (<Button\n {...props}\n loading={isLoading}\n onClick={() => {\n refresh({\n onSuccess: () => {\n },\n });\n }}\n />);\n};\n\nexport default FetchButton;\n","export const getScrollEl = () => document.querySelector('.simplebar-content-wrapper');\nexport const getContainerBody = () => document.querySelector('.container-body');\n"],"names":["at","n","Math","trunc","this","length","TypedArray","Reflect","getPrototypeOf","Int8Array","C","Array","String","Object","defineProperty","prototype","value","writable","enumerable","configurable","locale","en-US","zh-CN","usePatchElement","elements","setElements","useState","useCallback","element","originElements","filter","ele","forwardRef","HookDrawer","_ref","ref","config","open","setOpen","innerConfig","setInnerConfig","close","_len","arguments","args","_key","triggerCancel","some","param","onClose","slice","useImperativeHandle","destroy","update","newConfig","originConfig","_objectSpread","_jsx","Drawer","uuid","withConfirm","props","destroyFns","ElementsHolder","memo","patchElement","_Fragment","children","holderRef","useRef","actionQueue","setActionQueue","useEffect","forEach","action","getConfirmFunc","withFunc","_holderRef$current","drawerRef","createRef","closeFunc","drawer","afterClose","_closeFunc","concat","current","push","destroyAction","_drawerRef$current","prev","updateAction","_drawerRef$current2","useMemo","context","createContext","Provider","AppDrawer","DrawerApi","DrawerContextHolder","useDrawer","memoizedContextValue","_jsxs","useAppDrawer","useContext","renderWithOptions","footer","options","Footer","footerButtons","onConfirm","onCancel","Row","gutter","wrap","Col","flex","isArray","Space","onClick","type","map","_ref2","index","ButtonComponent","autoClose","_objectWithoutProperties","_excluded","CurrentButton","LoadingButton","_createElement","key","async","res","Promise","resolve","DrawerOuter","_ref3","title","disabledScroller","closable","modalBodyRef","SimpleBar","className","style","Button","classnames","icon","Icon","e","stopPropagation","runWithDecorator","_ref4","withDecorator","getInner","assign","computedCommonProps","_ref5","size","_excluded2","maskClosable","hasOwnProperty","destroyOnHidden","width","IntlProvider","importMessages","moduleName","api","_computedCommonProps","otherProps","_objectDestructuringEmpty","_ref6","_excluded3","AntdDrawer","FetchButton","modalFunc","localeCache","Map","WrappedComponent","global","useGlobalContext","currentLocale","Fetch","params","loader","has","get","then","default","localMessages","set","render","data","messages","InnerProvider","withFetch","ReactIntlProvider","baseLocale","localMessageRef","currentMessages","merge","transform","results","FormattedMessage","id","moduleId","IntlFormattedMessage","text","join","useIntl","formatMessage","useReactIntl","formatModuleMessage","values","createWithIntl","ReactProvider","preset","usePreset","isMobile","test","navigator","userAgent","dayjs","module","localeLoader","document","body","classList","add","window","__COMPONENTS_CORE_SIMPLE_BAR_DISABLED","getScrollEl","ConfigProvider","message","themeToken","colorPrimary","isInit","setIsInit","_Object$assign","components","otherToken","styleEl","head","querySelector","createElement","appendChild","colorPrimaryObject","Color","themeProps","red","green","blue","alpha","string","range","i","textContent","replace","result","AntdConfigProvider","getTargetContainer","getPopupContainer","wave","disabled","autoInsertSpace","theme","token","colorError","colorInfo","colorSuccess","colorWarning","algorithm","isDark","darkAlgorithm","defaultAlgorithm","colorLink","colorTextBase","colorText","GlobalFontLoader","createWithRemoteLoader","modules","remoteModules","fontPath","colorfulPath","FontLoader","path","GlobalProvider","apis","init","enumsRef","setGlobal","PresetProvider","loadAntdLocale","App","top","PureGlobal","globalKey","contextValue","console","warn","SetGlobal","needReady","setGlobalHandler","useRefCallback","prevValueRef","isEqual","GetGlobal","GlobalInfo","_ref7","_ref8","_excluded4","ErrorBoundary","errorRender","Result","status","subTitle","modalProps","onError","fetchApi","useFetch","auto","isLoading","error","refresh","errorHandler","modalFuncHandler","modalApi","loading","onSuccess","getContainerBody"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[254,330],{330:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s});var r=n(29871),a=n.n(r),l={};for(const o in r)"default"!==o&&(l[o]=()=>r[o]);n.d(t,l),a().Fetch=r.FlexBoxFetch;const s=a()},1904:(e,t,n)=>{n.d(t,{A:()=>i,N:()=>c});var r=n(98434),a=n(43856);const{useOnChange:l,useDecorator:s}=r.hooks,o=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(a.AddressSelectField);o.Field=a.AddressSelectField,o.AddressEnum=a.AddressSelectField.AddressEnum,o.createAddressApi=a.AddressSelectField.createAddressApi,o.withAddressApi=a.AddressSelectField.withAddressApi;const i=o,c=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label,inputPlaceholder:"\u8bf7\u8f93\u5165"+e.label},e))(a.AddressInputField);c.Field=a.AddressInputField},2196:(e,t,n)=>{n.d(t,{A:()=>h});var r=n(53986),a=n(55199),l=n(73884),s=n(41381),o=n(330),i=n(68532),c=n(47094),d=n(83136),u=n.n(d),p=n(70579);const m=["list","groupArgs","itemRender","column","gap","className","outer","children"],h=e=>{let{list:t=[],groupArgs:n,itemRender:d,column:h=2,gap:g,className:f,outer:A=(0,p.jsx)(s.default.Part,{}),children:_}=e,x=(0,r.A)(e,m);const v=!(Number.isInteger(h)&&h>0),{ref:y,column:j}=(0,o.useFlexBox)(v?h:{}),b=(e,r)=>(0,p.jsx)(i.FormInfo,{list:t,column:e,groupArgs:n,itemRender:(e,t)=>"function"===typeof d?d(e,t):(0,p.jsx)(a.Col,{span:t.span,children:e}),children:(e,t)=>(0,p.jsx)(a.Row,{gutter:[g||24,0],className:u()({[c.A["column-not-layout"]]:r}),children:"function"===typeof _?_(e,t):e})});return(0,l.cloneElement)(A,Object.assign({},x,{className:u()(f,c.A["form-info"])}),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{ref:y}),v?j?b(j.col):b(2,!0):b(h)]}))}},2842:(e,t,n)=>{n.d(t,{default:()=>a.a});n(2885);var r=n(22986),a=n.n(r);n.o(r,"PHONE_NUMBER_INPUT")&&n.d(t,{PHONE_NUMBER_INPUT:function(){return r.PHONE_NUMBER_INPUT}})},5995:(e,t,n)=>{n.d(t,{Ay:()=>m,Vl:()=>h,W6:()=>g});var r=n(53986),a=n(89379),l=n(3382),s=n(73025),o=n(55199),i=n(76995),c=n(47094),d=n(70579);const u=["classNames"],p=["modalProps"],m=e=>(0,d.jsx)(l.default,(0,a.A)({},(0,i.A)(Object.assign({},e,{className:c.A["form-modal"]})))),h=()=>{const e=(0,l.useModal)();return t=>e((0,i.A)(Object.assign({},t,{className:c.A["form-modal"]})))},g=e=>{let{classNames:t}=e,n=(0,r.A)(e,u);const l=h();if(!n.api){const{modalProps:e}=n,t=(0,r.A)(n,p);return(0,d.jsx)(o.Button,(0,a.A)((0,a.A)({},t),{},{onClick:()=>{l(e)}}))}return(0,d.jsx)(s.A,(0,a.A)((0,a.A)({},n),{},{modalFunc:l}))}},15209:(e,t,n)=>{n.d(t,{A:()=>h});var r=n(53986),a=n(89379),l=n(20454),s=n(55199),o=n(10986),i=n.n(o),c=n(13050),d=n(70579);const u=["remoteModules"],p=e=>{let t=Object.assign({},((0,l.A)(e),e));const[n,r]=i()(t);return(0,d.jsx)(s.Input,(0,a.A)((0,a.A)({},t),{},{value:n,onChange:e=>{r(e.target.value?e.target.value.toUpperCase():e.target.value,e)}}))},m=(0,c.createWithRemoteLoader)({modules:["FormInfo@formModule"]})(e=>{let{remoteModules:t}=e,n=(0,r.A)(e,u);const[a]=t,{hooks:l}=a,{useDecorator:s}=l;return s(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(n.label||"")},n))(p)});m.field=p;const h=m},15445:(e,t,n)=>{n.d(t,{A:()=>ae,E:()=>le});var r=n(89379),a=n(53986),l=n(98434),s=n(30096),o=n(34643),i=n(1904),c=n(83230),d=n(55199),u=n(70579);const{useOnChange:p}=l.hooks,m=e=>(0,u.jsx)(d.ColorPicker,(0,r.A)((0,r.A)({},e),{},{onChange:t=>e.onChange(t.toHexString())})),h=e=>p(Object.assign({},e))(m);h.Field=h;const g=h;var f=n(81026),A=n(78756),_=n(92328),x=n(2842);const v=["checked","children"],{useOnChange:y,useCheckedToValue:j}=l.hooks,{withChecked:b}=l.hoc,N=b(e=>{let{checked:t,children:n=null}=e,l=(0,a.A)(e,v);return(0,u.jsxs)(d.Space,{children:[(0,u.jsx)(d.Switch,(0,r.A)({checked:t},l)),"function"===typeof n?n({checked:t}):n]})}),S=e=>{e=Object.assign({},{fieldName:"switch"},e);const t=j(e);return y(t)(N)};S.Field=d.Switch;const k=S;var C=n(89099),w=n(96339),R=n(36972),F=n(15209),I=n(74529),P=n.n(I),B=n(73884),M=n(47458),T=n(33097),O=n.n(T),E=n(21079),L=n(46237),D=n(56259),U=n(29556),z=n(64671),W=n(83136),q=n.n(W),G=n(47094);const V=["forwardedRef","label","placeholder"],H=["placeholder","label"],Q=["placeholder","label"],X=["placeholder","label","soFarText"],Y=e=>t=>{const n=P()(...e)(e=>{let{forwardedRef:n,label:l,placeholder:s}=e,o=(0,a.A)(e,V);return(0,u.jsx)(t,(0,r.A)((0,r.A)({},o),{},{label:l,placeholder:s,labelRender:()=>o.tips?(0,u.jsxs)(d.Space,{children:[l,(0,u.jsx)(U.default,{content:o.tips,children:(0,u.jsx)("span",{className:q()(G.A["field-tips"],{[G.A["label-hidden"]]:o.labelHidden}),children:(0,u.jsx)(z.default,{type:"icon-xinxi-miaobian"})})})]}):l,ref:n}))}),l=(0,B.forwardRef)((e,t)=>(0,u.jsx)(n,(0,r.A)((0,r.A)({},e),{},{forwardedRef:t})));return Object.keys(t).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(e=>{l[e]=t[e]}),l},K=e=>t=>{let{placeholder:n,label:l}=t,s=(0,a.A)(t,H);return(0,u.jsx)(M.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:l},children:t=>(0,u.jsx)(e,(0,r.A)((0,r.A)({},s),{},{label:l,placeholder:n||t}))})},J=e=>t=>{let{placeholder:n,label:l}=t,s=(0,a.A)(t,Q);return(0,u.jsx)(M.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:l},children:t=>(0,u.jsx)(e,(0,r.A)((0,r.A)({},s),{},{label:l,placeholder:n||t}))})},$=e=>t=>{const n=(0,l.useGroup)(),a=O()(n,"name"),s=(0,E.get)(n,"index"),o=(0,L.oc)();return o&&Array.isArray(o)&&o.length>0?o.map(n=>{if("string"===typeof n)return(0,B.createElement)(e,(0,r.A)((0,r.A)({},t),{},{key:n}));const{name:l,label:o,options:i}=n,c=O()(i,"ignore",[]),d=O()(i,"disabled",[]),u=O()(i,"fields",[]),p=e=>t.name===e.name&&!(e.hasOwnProperty("groupName")&&e.groupName!==a)&&!(e.hasOwnProperty("groupIndex")&&e.groupIndex!==s);if(c.length>0&&c.find(p))return null;if(u.length>0&&!u.find(p))return null;let m=Object.assign({},t,{name:O()(i,"nameTransform",(e,t)=>"".concat(e).concat(t))(t.name,l),label:O()(i,"labelTransform",(e,t)=>e&&"".concat(e).concat(t))(t.label,o)});return d.length>0&&d.find(p)&&(m.disabled=!0,m.rule=""),(0,B.createElement)(e,(0,r.A)((0,r.A)({},m),{},{key:l}))}):(0,u.jsx)(e,(0,r.A)({},t))},Z=Y([$,K])(l.Input),ee=Y([$,K])(l.InputNumber);Z.Password=Y([$,K])(l.Input.Password);const te=Y([$,J])(l.DatePicker);te.MonthPicker=Y([$,J])(l.DatePicker.MonthPicker),te.RangePicker=Y([$,J])(l.DatePicker.RangePicker),te.WeekPicker=Y([$,J])(l.DatePicker.WeekPicker);const ne=Y([$,J])(l.TimePicker);ne.RangePicker=Y([$,J])(l.TimePicker.RangePicker);const re=Y([$])(e=>{let{placeholder:t,label:n,soFarText:s}=e,o=(0,a.A)(e,X);const{formatMessage:i}=(0,M.useIntl)({moduleName:"FormInfo"});return(0,u.jsx)(l.DatePickerToday,(0,r.A)((0,r.A)({},o),{},{label:n,placeholder:[i({id:"startDate"}),i({id:"endDate"})],soFarText:s||i({id:"soFarText"})}))}),ae={Input:Z,Checkbox:l.Checkbox,Password:Z.Password,InputNumber:ee,DatePicker:te,MonthPicker:te.MonthPicker,WeekPicker:te.WeekPicker,DateRangePicker:te.RangePicker,TimeRangePicker:ne.RangePicker,TimePicker:ne,DatePickerToday:re,RadioGroup:Y([$])(l.RadioGroup),CheckboxGroup:Y([$])(l.CheckboxGroup),Rate:Y([$])(l.Rate),Switch:Y([$])(k),Slider:Y([$])(l.Slider),SalaryInput:Y([$,K])(R.A),TypeDateRangePicker:Y([$])(D.A),MoneyInput:Y([$,K])(_.A),PhoneNumber:Y([$,K])(x.default),Upload:Y([$])(C.A),Avatar:Y([$])(w.A),FunctionSelect:Y([$,J])(f.A),IndustrySelect:Y([$,J])(A.A),Cascader:Y([$,J])(c.A),ColorPicker:Y([$,J])(g),AddressSelect:Y([$,J])(i.A),AddressInput:Y([$,J])(i.N),TreeSelect:Y([$,J])(l.TreeSelect),ReactInputNumber:Y([$,K])(l.InputNumber),InputUpperCase:Y([$,K])(F.A),Select:Y([$,J])(l.Select),TextArea:Y([$,K])(l.TextArea),AdvancedSelect:Y([$,J])(s.Ay),SuperSelect:Y([$,J])(o.Ay),SuperSelectTableList:Y([$,J])(o.eM),SuperSelectUser:Y([$,J])(o.Pg),SuperSelectTree:Y([$,J])(o.kx)},le={createWithFieldDecorator:Y,withInputDefaultPlaceholder:K,withSelectDefaultPlaceholder:J,withLang:$}},18936:(e,t,n)=>{n.d(t,{A:()=>U});var r=n(89379),a=n(53986);const l={"ant-tag":"style_ant-tag__7ct2q__RknBi",overlay:"style_overlay__CXfU5__RknBi",input:"style_input__+OpvV__RknBi","is-disabled":"style_is-disabled__uX4qq__RknBi","input-icon":"style_input-icon__E3NjK__RknBi",large:"style_large__vMozz__RknBi",small:"style_small__ubqQ+__RknBi","input-inner":"style_input-inner__sY-6k__RknBi","input-custom":"style_input-custom__Kxq3n__RknBi","display-content":"style_display-content__qA1jn__RknBi","overlay-footer-extra":"style_overlay-footer-extra__yCzWX__RknBi","selected-tag":"style_selected-tag__BZsMM__RknBi","selected-tag-list":"style_selected-tag-list__As0ho__RknBi","selected-tag-inner":"style_selected-tag-inner__2NH59__RknBi","text-inner":"style_text-inner__Bq2Ji__RknBi",placeholder:"style_placeholder__odotY__RknBi","is-modal":"style_is-modal__4cj8L__RknBi","overlay-content":"style_overlay-content__kpGRn__RknBi"};var s=n(74981);const{context:o,useContext:i,Provider:c,Consumer:d}=(0,s.A)();var u=n(73884),p=n(10986),m=n.n(p),h=n(87558),g=n(33097),f=n.n(g),A=n(55199),_=n(83136),x=n.n(_),v=n(3382),y=n(64671),j=n(79686),b=n.n(j),N=n(41740),S=n.n(N),k=n(74065),C=n.n(k),w=n(17342),R=n(70579);const F=["value","onChange","extra","showSelectedTag","renderSelectedContent","children"],I=["value","setValue","children","renderSelectedContent","showSelectedTag","placement","inputContent","single","extra","overlayWidth","wrapClassName"],P=["setFetchApi","wrapClassName"],B=["api","className","displayItems","wrapClassName"],M=e=>{let{maxLength:t,single:n,setValue:r,value:a,message:l}=e;return e=>r(!n&&Number.isInteger(t)&&t>0&&e.length>t?(l("\u6700\u591a\u9009\u62e9".concat(t,"\u4e2a")),a):e)},T=e=>{let{single:t,value:n,mapping:r,onClose:a}=e;return n&&Array.isArray(n)&&0!==n.length?t?(0,R.jsx)("span",{className:l["text-inner"],children:f()(r.get(n[0]),"label")||n[0]}):n.map(e=>{const t=r.get(e);return(0,R.jsx)(A.Tag,{className:l["display-tag"],closable:!0,onClose:n=>{n.preventDefault(),a(e,t)},children:(0,R.jsx)("span",{className:l["tag-inner"],children:f()(t,"label")||e})},e)}):null},O=(0,u.forwardRef)((e,t)=>{let{value:n,onChange:s,extra:o,showSelectedTag:i,renderSelectedContent:c,children:d}=e,p=(0,a.A)(e,F);const[m,h]=(0,u.useState)(n),g=(0,u.useRef)(n);g.current=n;const[f,_]=(0,u.useState)(!1),{message:x}=A.App.useApp(),y=M({maxLength:p.maxLength,single:p.single,setValue:h,value:m,message:x.error});return(0,u.useEffect)(()=>{f&&h(g.current)},[f]),(0,u.useImperativeHandle)(t,()=>({modalOpen:()=>{_(!0)},close:()=>{_(!1)}})),(0,R.jsx)(v.default,(0,r.A)((0,r.A)({},p),{},{open:f,onConfirm:()=>{s(m)},onClose:()=>{_(!1)},footer:(i||o)&&(0,R.jsxs)(A.Space,{direction:"vertical",className:l["overlay-footer"],children:[o&&(0,R.jsx)("div",{className:l["overlay-footer-extra"],children:o}),i&&c({value:m,setValue:y})]}),children:"function"===typeof d?d({value:m,setValue:y}):d}))}),E=(0,u.forwardRef)((e,t)=>{let{value:n,setValue:s,children:o,renderSelectedContent:i,showSelectedTag:c,placement:d,inputContent:p,single:m,extra:h,overlayWidth:g,wrapClassName:f}=e,_=(0,a.A)(e,I);const[x,v]=(0,u.useState)(!1);return(0,u.useImperativeHandle)(t,()=>({close:()=>{v(!1)}}),[]),(0,R.jsx)(A.Popover,(0,r.A)((0,r.A)({},_),{},{open:x,onOpenChange:v,overlayClassName:l.overlay,arrow:!1,content:(0,R.jsxs)("div",{style:g?{"--overlay-width":g}:{},className:l["overlay-content"],onClick:e=>{e.stopPropagation()},children:[(0,R.jsx)("div",{className:l["overlay-inner"],children:"function"===typeof o?o({value:n,setValue:e=>{(!m||n[0]!==e[0])&&s(e),m&&v(!1)}}):o}),(c||h)&&(0,R.jsxs)("div",{className:l["overlay-footer"],children:[h&&(0,R.jsx)("div",{className:l["overlay-footer-extra"],children:h}),c&&i({value:n,setValue:s})]})]}),trigger:"click",placement:d,children:(0,R.jsx)("div",{className:l["input-inner"],children:p})}))}),L=(0,h.withFetch)(e=>{let{setFetchApi:t,wrapClassName:n}=e,r=(0,a.A)(e,P);const[s,o]=(0,u.useState)(!1),c=(0,u.useRef)(null),d=(0,u.useRef)(null),p=i(),{valueState:m,mapping:h,props:g}=p,[f,_]=m,{single:v,placement:j,getPopupContainer:b,placeholder:N,isPopup:S,disabled:k,showSelectedTag:C,extra:F,inputContent:I}=g,B=(0,u.useRef)(r);B.current=r,(0,u.useEffect)(()=>{t(Object.assign({},B.current,{data:r.data,isComplete:r.isComplete}))},[r.data,t,r.isComplete]);const M=T({single:v,value:f,mapping:h,onClose:e=>{_(t=>{const n=t.slice(0),r=t.indexOf(e);return r>-1&&n.splice(r,1),n})}}),L=e=>{let{value:t,setValue:n}=e;return(0,R.jsxs)(A.Space,{className:l["selected-tag"],align:"center",wrap:!0,children:[(0,R.jsxs)("div",{children:["\u5df2\u9009",!g.single&&Number.isInteger(g.maxLength)&&g.maxLength>0?"(".concat(t.length,"/").concat(g.maxLength,")"):"",":"]}),(0,R.jsx)(w.A,{className:l["selected-tag-list"],children:(0,R.jsx)("div",{className:l["selected-tag-inner"],children:T({value:t,mapping:h,onClose:e=>{n(t=>{const n=t.slice(0),r=t.indexOf(e);return r>-1&&n.splice(r,1),n})}})})})]})},D=I?I(p):(0,R.jsxs)(A.Space,{className:l["display-content"],onMouseOver:()=>{o(!0)},onMouseOut:()=>{o(!1)},children:[(0,R.jsx)("div",{children:M||(0,R.jsx)("span",{className:l.placeholder,children:N})}),s&&f&&f.length>0&&!k?(0,R.jsx)(y.default,{className:x()(l.close,l["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),_([])}}):(0,R.jsx)(y.default,{className:x()(l["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return S?(0,R.jsx)(E,{ref:d,overlayWidth:g.overlayWidth,value:f,setValue:_,single:v,inputContent:D,extra:"function"===typeof F?F({close:()=>d.current.close(),context:p}):F,renderSelectedContent:L,showSelectedTag:C,trigger:"click",placement:j,getPopupContainer:b,children:g.children}):(0,R.jsxs)("div",{className:l["input-inner"],onClick:()=>{c.current.modalOpen()},children:[(0,R.jsx)(O,{size:g.modalSize,ref:c,single:g.single,maxLength:g.maxLength,disabledScroller:!0,wrapClassName:x()(l.overlay,l["is-modal"],n),title:g.placeholder,value:f,onChange:_,extra:"function"===typeof F?F({close:()=>c.current.close(),context:p}):F,showSelectedTag:C,renderSelectedContent:L,children:g.children}),D]})}),D=e=>{let{api:t,className:n,displayItems:s,wrapClassName:o}=e,i=(0,a.A)(e,B);const[d,p]=(0,u.useState)(""),[h,g]=(0,u.useState)(new Map(s.map(e=>[e.value,e]))),[_,v]=(0,u.useState)({}),{message:y}=A.App.useApp(),j=e=>{const t=e.filter(e=>h.get(e.value)!==e);0!==t.length&&g(e=>{const n=S()(e);return t.forEach(e=>{n.set(e.value,e)}),n})},N=e=>((e,t,n)=>"all"!==n?e:(t(e),e.map(e=>e.value)))(i.single?b()(e)?[]:[e]:e||[],j,i.valueType),[k,w]=m()(Object.assign({},i,{onChange:e=>{const t=((e,t,n)=>"all"!==n?e:e.map(e=>t.get(e)))(e,h,i.valueType);i.onChange&&i.onChange(i.single?C()(t):t)}},"value"in i?{value:N(i.value)}:{defaultValue:N(i.defaultValue)})),F=M({maxLength:i.maxLength,single:i.single,setValue:w,value:k,message:y.error});return(0,R.jsx)(c,{value:{mapping:h,searchText:d,setSearchText:p,appendMapping:j,setItems:e=>{_.setData(e),j(f()(i.dataFormat(e),"list",[]))},fetchApi:_,valueState:[k,F],props:i},children:(0,R.jsx)("div",{className:x()(l["input".concat(i.inputContent&&"function"===typeof i.inputContent?"-custom":"")],n),children:(0,R.jsx)(L,(0,r.A)((0,r.A)({},t),{},{wrapClassName:o,loading:null,setFetchApi:v,onRequestSuccess:e=>{j(f()(i.dataFormat(e),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}}))})})};D.defaultProps={placeholder:"\u8bf7\u9009\u62e9",displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",getPopupContainer:null,showSelectedTag:!0},D.useContext=i;const U=D},19343:(e,t,n)=>{n.r(t),n.d(t,{Download:()=>m,FileButton:()=>C,FileLink:()=>w,List:()=>N,OptionButtons:()=>b,PrintButton:()=>o.PrintButton,default:()=>i(),download:()=>o.download,downloadBlobFile:()=>o.downloadBlobFile,useDownload:()=>o.useDownload,useFileModal:()=>R});var r=n(89379),a=n(53986),l=(n(64674),n(96418)),s=n.n(l),o=n(68827),i=n.n(o),c=n(3382),d=n(83136),u=n.n(d),p=n(70579);o.Download.useDownload=o.useDownload,o.Download.downloadBlobFile=o.downloadBlobFile;const m=o.Download;var h=n(26304),g=n.n(h),f=n(74065),A=n.n(f),_=n(96252);const x=["apis"],v=["onCancel"],y=["onCancel"],j=e=>{let{apis:t}=e;const n=(0,_.useFormModal)();return"function"===typeof(null===t||void 0===t?void 0:t.onEditModalShow)?t.onEditModalShow:(e,t)=>{const r=n({size:"small",title:"\u4fee\u6539\u6587\u4ef6\u540d\u79f0",formProps:{data:{name:g()(e.filename.split(".")).join(".")},onSubmit:async n=>{!1!==((null===t||void 0===t?void 0:t.onEdit)&&await(null===t||void 0===t?void 0:t.onEdit({formData:Object.assign({},n,{name:"".concat(n.name,".").concat(A()(e.filename.split(".")))}),item:e})))&&r.close()}},children:(0,p.jsx)(_.default,{column:1,list:[(0,p.jsx)(_.Input,{name:"name",label:"\u6587\u4ef6\u540d\u79f0",rule:"REQ LEN-0-100"})]})})}},b=e=>{var t;const n=j({apis:e.apis});return(0,p.jsx)(o.FileListOptionButtons,(0,r.A)((0,r.A)({},e),{},{onEdit:t=>n(t,e.apis),onDelete:null===(t=e.apis)||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof e.renderModal?e.renderModal:e=>{let{onCancel:t}=e,n=(0,a.A)(e,y);return(0,p.jsx)(c.default,(0,r.A)((0,r.A)({},Object.assign({},n)),{},{onClose:t}))}}))},N=e=>{let{apis:t}=e,n=(0,a.A)(e,x);const l=j({apis:t});return(0,p.jsx)(o.FileList,(0,r.A)((0,r.A)({},n),{},{apis:t,onEdit:e=>l(e,t),onDelete:null===t||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof n.renderModal?n.renderModal:e=>{let{onCancel:t}=e,n=(0,a.A)(e,v);return(0,p.jsx)(c.default,(0,r.A)((0,r.A)({},Object.assign({},n)),{},{onClose:t}))}}))},S=["onCancel"],k=["className"],C=e=>(0,p.jsx)(o.FileButton,(0,r.A)({},Object.assign({},e,{modalProps:{renderModal:e=>{let{onCancel:t}=e,n=(0,a.A)(e,S);return(0,p.jsx)(c.default,(0,r.A)((0,r.A)({},Object.assign({},n)),{},{onClose:t}))}}}))),w=e=>{const t=Object.assign({},e),{className:n}=t,l=(0,a.A)(t,k);return(0,p.jsx)(C,(0,r.A)((0,r.A)({},l),{},{className:u()(n,"btn-no-padding"),type:"link",children:l.children||l.filename||l.originName}))},R=e=>{const{title:t,children:n,footer:r}=(0,o.useFileModalProps)(Object.assign({},e)),a=(0,c.useModal)();return s()(()=>a({title:t,children:n,footer:r}))}},29556:(e,t,n)=>{n.r(t),n.d(t,{TooltipFetch:()=>I,TooltipInfoLabel:()=>C,default:()=>S});var r=n(89379),a=n(53986),l=n(55199),s=n(83136),o=n.n(s);const i="style_tooltip__zHGMI__RknBi",c="style_large__lvmsm__RknBi",d="style_small__nUt0r__RknBi",u="style_popup-content__-rKQN__RknBi",p="style_title__1EQPq__RknBi",m="style_important-info__qTSZY__RknBi",h="style_error__yTTq3__RknBi",g="style_warning__CMJxz__RknBi",f="style_success__AvJVx__RknBi",A="style_sub-title__uD8CH__RknBi",_="style_content__lzgUz__RknBi",x="style_alone__q6q82__RknBi",v="style_fetch-content__tEOEV__RknBi",y="style_fetch-loading__tN-WB__RknBi",j="style_title-info-icon__iY8Q+__RknBi";var b=n(70579);const N=["overlayClassName","title","size","subtitle","content","importantInfo","importantInfoType","moreInfo"],S=e=>{let{overlayClassName:t,title:n,size:s,subtitle:v,content:y,importantInfo:j,importantInfoType:S,moreInfo:k}=e,C=(0,a.A)(e,N);return(0,b.jsx)(l.Tooltip,(0,r.A)((0,r.A)({},C),{},{rootClassName:o()(t,i,{[d]:"small"===s,[c]:"large"===s}),title:(0,b.jsxs)(l.Space,{direction:"vertical",className:u,children:[n&&(0,b.jsx)("div",{className:p,children:n}),j&&(0,b.jsx)("div",{className:o()(m,{[f]:"success"===S,[g]:"warning"===S,[h]:"error"===S}),children:j}),v&&(0,b.jsx)("div",{className:A,children:v}),y&&(0,b.jsx)("div",{className:o()(_,{[x]:[n,v,j,k].every(e=>!e)}),children:y}),k&&(0,b.jsx)("div",{children:k})]})}))};var k=n(64671);const C=e=>{let{title:t,tooltipTitle:n}=e;return(0,b.jsxs)("div",{children:[t,n?(0,b.jsx)(S,(0,r.A)((0,r.A)({},n),{},{children:(0,b.jsx)("span",{children:(0,b.jsx)(k.default,{type:"icon-xinxi-miaobian",className:j,size:14})})})):null]})};var w=n(73884),R=n(87558);const F=["api","children","fetchContent","showLoading","loadingClassName","force"],I=e=>{let{api:t,children:n,fetchContent:s,showLoading:i=!0,loadingClassName:c,force:d}=e,u=(0,a.A)(e,F);const[p,m]=(0,w.useState)(!1),h=(0,R.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:g,isLoading:f,data:A,send:_}=h;return(0,b.jsx)(S,(0,r.A)((0,r.A)({},Object.assign({},u,g?s(A,h):{})),{},{open:p,onOpenChange:async e=>{!e||g&&!d||await _({type:"refresh"}),m(e)},children:(0,b.jsxs)("span",{className:v,children:[n,i&&f?(0,b.jsx)(l.Spin,{size:"small",className:o()(c,y)}):null]})}))}},30096:(e,t,n)=>{n.d(t,{Ay:()=>d});var r=n(98434),a=n(43856);const{useOnChange:l}=r.hooks,s=e=>{const t=t=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},o=s(a.UserField),i=s(a.TableField),c=s(a.AdvancedSelectField);c.createdList=e=>{let{renderList:t,defaultProps:n}=e;return s((0,a.createListField)({renderList:t,defaultProps:n}))},c.User=o,c.Table=i;const d=c},30891:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(89379),a=n(98434);const l=e=>{let{children:t}=e;const{openApi:n,formData:l}=(0,a.useFormContext)();return t((0,r.A)((0,r.A)({},n),{},{formData:l}))}},34643:(e,t,n)=>{n.d(t,{Ay:()=>p,Pg:()=>c,eM:()=>d,kx:()=>u});var r=n(98434),a=n(43856),l=n(60586);const{useOnChange:s}=r.hooks,o=e=>{const t=t=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},i=o(a.SuperSelectField),c=o(l.$9),d=o(a.SuperSelectTableListField),u=o(a.SuperSelectTreeField),p=i},35774:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(89379),a=n(53986),l=n(98434),s=n(81014),o=n(70579);const i=["onClick"],c=e=>{let{onClick:t}=e,n=(0,a.A)(e,i);const c=(0,l.useFormContext)();return(0,o.jsx)(s.default,(0,r.A)((0,r.A)({},n),{},{onClick:e=>t(c,e)}))}},36972:(e,t,n)=>{n.d(t,{A:()=>E});var r=n(89379),a=n(53986),l=n(73884),s=n(87558),o=n(98434),i=n(78491),c=n.n(i),d=n(55199);const u="style_salary__sUOtT__RknBi",p="style_salary-type__Sl1LC__RknBi",m="style_input-number__eoEZr__RknBi",h="style_full__NPqJm__RknBi",g="style_input-group__toLB7__RknBi",f="style_input-group-no-mb__C4nzh__RknBi";var A=n(47458),_=n(55431),x=n(48731),v=n(10986),y=n.n(v),j=n(21079),b=n(70579);const N=["data"],S=["getPopupContainer","onBlur","api","isRange","placeholder","disabled","showMonth","remindUnit","req"],k=["api","defaultValue"],C=(0,s.withFetch)(e=>{let{data:t}=e,n=(0,a.A)(e,N);return(0,b.jsx)(d.Select,(0,r.A)((0,r.A)({},n),{},{options:t}))}),{useDecorator:w,useUIDecorator:R}=o.hooks,F=e=>{if(!e)return"";const t=isNaN(Number(e))?e:Math.abs(Number(e));return e.split(".")[1]&&e.split(".")[1].length>2?t.toFixed(2):t},I=e=>{let{children:t,isError:n}=e;return(0,b.jsx)("div",{style:{marginBottom:0},className:"react-form__field ".concat(n?"is-error":""),children:(0,b.jsx)("div",{className:"react-form__field-main",children:(0,b.jsx)("div",{className:"react-form__field-input",children:(0,l.cloneElement)(t,{className:"react-form__field-component"})})})})},P=e=>{let{getPopupContainer:t,onBlur:n,api:l,isRange:s=!0,placeholder:o,disabled:i,showMonth:_,remindUnit:v,req:N}=e,k=(0,a.A)(e,S);const[w,R]=y()(k),{formatMessage:P}=(0,A.useIntl)({moduleName:"FormInfo"}),B=P({id:"defaultSelectPlaceholder"},{label:""}),M=P({id:"defaultInputPlaceholder"},{label:""}),T=[6].indexOf((0,j.get)(w,"type"))>-1,O=1===(0,j.get)(w,"type"),E=7===(0,j.get)(w,"type"),L=e=>{if(e)return T?e/1e4:e},D=c()(n||(()=>{}));return(0,b.jsx)("div",{ref:D,className:u,children:(0,b.jsxs)(d.Row,{wrap:!1,gutter:10,children:[(0,b.jsx)(d.Col,{children:(0,b.jsx)(C,(0,r.A)((0,r.A)({className:p},l),{},{value:(0,j.get)(w,"type"),onChange:e=>{R&&R(Object.assign({},O?{}:w,{type:e,min:"",max:""}))},placeholder:o||B,getPopupContainer:t,disabled:i}))}),O?null:(0,b.jsxs)(d.Col,{flex:1,children:[s&&(0,b.jsxs)(d.Row,{className:v&&[5,6].includes(null===w||void 0===w?void 0:w.type)?g:f,wrap:!1,children:[(0,b.jsx)(d.Col,{flex:1,children:(0,b.jsx)(I,{isError:!(0,j.get)(w,"min")&&N,children:(0,b.jsx)(d.InputNumber,{disabled:i,placeholder:M,formatter:F,value:L((0,j.get)(w,"min")),style:{textAlign:"center"},onChange:e=>{R(Object.assign({},w,{min:T?1e4*e:e}))},description:v&&[5,6].includes(null===w||void 0===w?void 0:w.type)?(0,b.jsxs)("span",{style:{color:"#fc3333"},children:["\u6ce8\u610f\uff1a",(0,b.jsx)(x.default,{name:null===w||void 0===w?void 0:w.type,moduleName:"salaryTypeEnum"}),"\u7684\u5355\u4f4d\u4e3a",T?P({id:"thousand"}):E?"":P({id:"yuan"})]}):null})})}),(0,b.jsx)(d.Col,{children:(0,b.jsx)(d.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0})}),(0,b.jsx)(d.Col,{flex:1,children:(0,b.jsx)(I,{isError:!(0,j.get)(w,"max")&&N,children:(0,b.jsx)(d.InputNumber,{disabled:i,placeholder:M,formatter:F,value:L((0,j.get)(w,"max")),style:{textAlign:"center"},addonAfter:T?P({id:"thousand"}):E?"":P({id:"yuan"}),onChange:e=>{R(Object.assign({},w,{max:T?1e4*e:e}))}})})}),5===(0,j.get)(w,"type")&&_&&(0,b.jsx)(d.Col,{children:(0,b.jsxs)("span",{className:(0,j.get)(w,"max")&&(0,j.get)(w,"min")&&!(0,j.get)(w,"month")&&N?"error":"",children:[(0,b.jsx)("span",{className:m,children:"X"}),(0,b.jsx)(d.InputNumber,{min:12,disabled:i,value:(0,j.get)(w,"month"),onChange:e=>{R(Object.assign({},w,{month:e}))},style:{width:100,textAlign:"center"},placeholder:"\u6570\u91cf",addonAfter:"\u6708"})]})})]}),!s&&!E&&(0,b.jsx)(d.InputNumber,{disabled:i,min:0,max:1e8,placeholder:M,className:h,formatter:F,value:L((0,j.get)(w,"max")),style:{textAlign:"center"},addonAfter:T?P({id:"thousand"}):E?"":P({id:"yuan"}),onChange:e=>{R(Object.assign({},w,{max:T?1e4*e:e}))}}),!s&&E&&(0,b.jsx)(d.Input,{disabled:i,placeholder:M,className:h,onChange:e=>{R(Object.assign({},w,{max:e.target.value}))},value:(0,j.get)(w,"max"),style:{textAlign:"center"}})]})]})})},B={loader:()=>[{value:1,label:"\u9762\u8bae"},{value:2,label:"\u65f6\u85aa"},{value:3,label:"\u65e5\u85aa"},{value:4,label:"\u5468\u85aa"},{value:5,label:"\u6708\u85aa"},{value:6,label:"\u5e74\u85aa"}]},M={type:5,min:"",max:"",month:12},T=e=>{let{api:t=B,defaultValue:n=M}=e,l=(0,a.A)(e,k);return(0,b.jsx)(A.IntlProvider,{moduleName:"FormInfo",importMessages:_.A,children:(0,b.jsx)(P,(0,r.A)((0,r.A)({},l),{},{api:t,defaultValue:n}))})},O=e=>{var t;return w((0,r.A)((0,r.A)({},e),{},{req:(null===e||void 0===e||null===(t=e.rule)||void 0===t?void 0:t.indexOf("REQ"))>-1}))(T)};O.Field=T;const E=O},41381:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a.a});n(55664);var r=n(22436),a=n.n(r),l={};for(const s in r)"default"!==s&&(l[s]=()=>r[s]);n.d(t,l)},45053:(e,t,n)=>{n.d(t,{A:()=>p});var r=n(98434),a=n(55199),l=n(73884),s=n(83136),o=n.n(s),i=n(70720),c=n.n(i),d=n(47094),u=n(70579);const p=e=>{let{name:t,groupName:n,overlayClassName:s,errorRender:i=()=>null,groupIndex:p,children:m}=e;const h=(e=>{let{name:t,groupName:n,groupIndex:a}=e;const{emitter:s,formState:o}=(0,r.useFormContext)(),i=(0,l.useRef)({name:t,groupName:n,groupIndex:a});i.current={name:t,groupName:n,groupIndex:a};const c=(0,l.useRef)(o);c.current=o;const[d,u]=(0,l.useState)(null);return(0,l.useEffect)(()=>{const e=s.addListener("form-field-validate-complete",e=>{let{id:t,validate:n}=e;const a=c.current[t];if(!a)return;const l=i.current;a.name!==l.name||l.groupName&&(a.groupName!==l.groupName||a.groupIndex!==l.groupIndex)||u(2===n.status?Object.assign({},n,{label:a.label,errMsg:r.util.compileErrMsg(n.msg,a.label)}):null)});return()=>{e&&e.remove()}},[s]),d})({name:t,groupName:n,groupIndex:p}),[g,f]=(0,l.useState)(!1),A=h&&g&&i(Object.assign({},h,{closeHover:()=>f(!1)})),_=(0,l.useRef)(null),x=(0,l.useRef)(null);c()(()=>{f(!1)}).current={contains:e=>_.current.contains(e)||x.current&&x.current.contains(e)};const[v,y]=(0,l.useState)(0);return(0,l.useLayoutEffect)(()=>{const e=()=>{const e=_.current.querySelector(".react-form__field-component");e&&y(e.clientWidth)};e();const t=new ResizeObserver(e);t.observe(_.current);const n=new MutationObserver(e);return n.observe(_.current,{subtree:!0,childList:!0}),()=>{n.disconnect(),t.disconnect()}},[]),(0,u.jsx)(a.Popover,{open:!!A,rootClassName:o()(s,d.A["error-tip-overlay"]),content:A&&(0,u.jsx)("div",{ref:x,style:{width:v},className:o()(d.A["error-tip-overlay-content"]),children:A}),placement:"bottom",transitionName:"ant-slide-up",arrow:!1,children:(0,u.jsx)("div",{className:o()("error-tip"),ref:_,onMouseEnter:()=>{f(!0)},children:m})})}},46237:(e,t,n)=>{n.d(t,{Ay:()=>i,oc:()=>o});var r=n(73884);const a=(0,r.createContext)([]),{Provider:l,Consumer:s}=a,o=()=>(0,r.useContext)(a),i=l},46732:(e,t,n)=>{n.d(t,{A:()=>d,K:()=>c});var r=n(75363),a=n(73884),l=n(98434),s=n(47094),o=n(70579);const i=(0,a.createContext)(""),{Provider:c}=i,d=e=>{let{name:t}=e;const n=(0,a.useContext)(i),c=(0,l.useGroup)();return n&&(0,o.jsx)(r.default,{className:s.A["helper-guide-field"],name:n+"-"+(c.name?c.name+"-":"")+t})}},47094:(e,t,n)=>{n.d(t,{A:()=>r});const r={"form-outer":"style_form-outer__IWUs0__RknBi","form-drawer":"style_form-drawer__uYDXS__RknBi","table-list":"style_table-list__6lp-A__RknBi","list-item":"style_list-item__hVzQa__RknBi","table-list-inner":"style_table-list-inner__uc8DK__RknBi","table-list-field":"style_table-list-field__JSJfB__RknBi","table-list-header":"style_table-list-header__KXvKa__RknBi","is-req":"style_is-req__LfXQf__RknBi","table-list-extra":"style_table-list-extra__faYTK__RknBi","list-btn":"style_list-btn__WKYkm__RknBi","form-info":"style_form-info__B8bAP__RknBi","list-part":"style_list-part__Ld0GA__RknBi","is-important":"style_is-important__vaBk1__RknBi","list-item-part":"style_list-item-part__MzKP7__RknBi","money-input":"style_money-input__J86Pb__RknBi","money-description":"style_money-description__Gz3p7__RknBi","components-upload-wrapper":"style_components-upload-wrapper__Ir0gz__RknBi","textarea-wrapped-component":"style_textarea-wrapped-component__r1oKc__RknBi","helper-guide-field":"style_helper-guide-field__Wke3w__RknBi","error-tip-overlay":"style_error-tip-overlay__aNCGc__RknBi","error-tip-overlay-content":"style_error-tip-overlay-content__kDOoQ__RknBi","column-not-layout":"style_column-not-layout__+SXC+__RknBi","mult-field-item":"style_mult-field-item__eS0nJ__RknBi","react-form__field-label":"style_react-form__field-label__2U91E__RknBi","mult-field-add-btn":"style_mult-field-add-btn__5Baxz__RknBi","form-step-section":"style_form-step-section__RvkHy__RknBi"}},47338:(e,t,n)=>{n.r(t),n.d(t,{ConfirmButton:()=>r.ConfirmButton,ConfirmLink:()=>r.ConfirmLink,ConfirmText:()=>r.ConfirmText,default:()=>a,withConfirm:()=>r.withConfirm});n(9056);var r=n(38885);const a=r.ConfirmButton},48221:(e,t,n)=>{n.d(t,{Ay:()=>c,WJ:()=>u,Xy:()=>d});var r=n(89379),a=n(25963),l=n(73025),s=n(47094),o=n(76995),i=n(70579);const c=e=>(0,i.jsx)(a.default,(0,r.A)({},(0,o.A)(Object.assign({},e,{className:s.A["form-drawer"]})))),d=()=>{const e=(0,a.useDrawer)();return t=>e((0,o.A)(Object.assign({},t,{className:s.A["form-drawer"]})))},u=e=>{const t=d();return(0,i.jsx)(l.A,(0,r.A)((0,r.A)({},e),{},{modalFunc:t}))}},48731:(e,t,n)=>{n.r(t),n.d(t,{default:()=>a.a});var r=n(98919),a=n.n(r),l=n(22717),s=n.n(l);(0,r.preset)({base:s()([["gender",()=>[{value:"M",description:"\u7537"},{value:"F",description:"\u5973"}]],["marital",()=>[{description:"\u5df2\u5a5a",value:"Y"},{description:"\u672a\u5a5a",value:"N"}]],["confirm",()=>[{description:"\u662f",value:"Y"},{description:"\u5426",value:"N"}]],["political",()=>[{description:"\u4e2d\u5171\u515a\u5458",value:"\u4e2d\u5171\u515a\u5458"},{description:"\u5171\u9752\u56e2\u5458",value:"\u5171\u9752\u56e2\u5458"},{description:"\u7fa4\u4f17",value:"\u7fa4\u4f17"},{description:"\u5176\u4ed6\u515a\u6d3e",value:"\u5176\u4ed6\u515a\u6d3e"}]],["phoneStateEnum",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],(e,t)=>{e[t[0]]=t[1]},{})})},55431:(e,t,n)=>{n.d(t,{A:()=>r});const r=e=>({"en-US":()=>n.e(1649).then(n.bind(n,21649)),"zh-CN":()=>n.e(711).then(n.bind(n,80711))}[e]())},56259:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(89319),a=n(98434);const{useOnChange:l}=a.hooks,s=e=>l(Object.assign({},{},e))(r.A);s.Field=r.A;const o=s},64261:(e,t,n)=>{n.d(t,{A:()=>A});var r=n(89379),a=n(98434),l=n(57469),s=n.n(l),o=n(34677),i=n.n(o),c=n(33097),d=n.n(c),u=(n(17448),n(2842)),p=n(46732),m=n(13050),h=n(70579);const g=a.RULES.REQ,f=a.RULES.LEN,A=async(e,t)=>{const{locale:n}=Object.assign({},t);a.interceptors.input.use("photo-string",e=>{if(e&&"string"===typeof e){return{id:e.split("?")[0]}}return e}),a.interceptors.output.use("photo-string",e=>{var t,n;return e&&"string"!==typeof e?(null===(t=e.id)||void 0===t||null===(n=t.split("?"))||void 0===n?void 0:n[0])||e.id:e}),a.interceptors.input.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>({id:e.split("?")[0]})):e),a.interceptors.output.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>null===e||void 0===e?void 0:e.id):e),a.interceptors.input.use("to-array",e=>Array.isArray(e)?e[0]:e),a.interceptors.output.use("to-array",e=>[e]),a.interceptors.input.use("array-single",e=>e?[e]:[]),a.interceptors.output.use("array-single",e=>e?e[0]:null),a.interceptors.input.use("boolean-number",e=>1===e||"1"===e),a.interceptors.output.use("boolean-number",e=>e?1:0),a.interceptors.input.use("un-boolean",e=>!e),a.interceptors.output.use("un-boolean",e=>!e),a.interceptors.output.use("object-output-value",e=>e?e.value||e.id:e),a.interceptors.input.use("date-string",e=>e?s()(e):null),a.interceptors.output.use("date-string",e=>e?new Date(e.valueOf()).toISOString():""),a.interceptors.input.use("date-range-string",e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(s()(e[0])),e[0]&&e[1]&&"sofar"===e[1]&&t.push("\u81f3\u4eca"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(s()(e[1])),t}),a.interceptors.output.use("date-range-string",e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(new Date(e[0].valueOf()).toISOString()),e[0]&&e[1]&&"\u81f3\u4eca"===e[1]&&t.push("sofar"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(new Date(e[1].valueOf()).toISOString()),t}),a.interceptors.output.use("file-format",e=>Array.isArray(e)?e.map(e=>Object.assign({},e,{id:e.id||e.ossId,originalName:e.filename})):[]),a.interceptors.input.use("file-format",e=>Array.isArray(e)?e.map(e=>({id:e.id||e.ossId,ossId:e.id||e.ossId,filename:e.originalName||e.filename})):[]);const{default:l}=await(0,m.loadModule)("components-iconfont:CountyFlag@load"),o=await l(),c=new Map(o.map(e=>{let{ab:t,country_code:n}=e;return[t,n]})),A=new Map(o.map(e=>{let{ab:t,country_code:n}=e;return[n,t]}));a.interceptors.output.use("phone-number-string",e=>null!==e&&void 0!==e&&e.code&&null!==e&&void 0!==e&&e.value?"+".concat(c.get(e.code)," ").concat(e.value.replace(/\s+/g,"")):""),a.interceptors.input.use("phone-number-string",e=>{if(!e)return{};const t=e.match(/^\+(\d+)\s(.*)/);return t&&t.length>=3?{code:A.get(Number(t[1])),value:t[2]}:{code:A.get(86),value:e}});const _=(e,t)=>{t=Object.assign({},t);const r={REQ:{"zh-CN":"%s\u4e0d\u80fd\u4e3a\u7a7a","en-US":"%s cannot be empty "},EMAIL:{"zh-CN":"\u8bf7\u8f93\u5165\u6709\u6548\u7684%s","en-US":"Please enter a valid %s"},LENGTH_EQUAL:{"zh-CN":"%s\u5fc5\u987b\u7b49\u4e8e".concat(t.end),"en-US":"%s must be equal to ".concat(t.end)},LENGTH_MORE:{"zh-CN":"%s\u5fc5\u987b\u5927\u4e8e".concat(t.start),"en-US":"%s must be greater than ".concat(t.start)},LENGTH_LESS:{"zh-CN":"%s\u5fc5\u987b\u5c0f\u4e8e".concat(t.end),"en-US":"%s must be less than ".concat(t.end)}},a=d()(r,"".concat(e,".").concat(n));return a||d()(r,"".concat(e,".zh-CN"))};(0,a.preset)(i()({},{type:"inner",rules:{REQ:function(){return Object.assign({},g(...arguments),{errMsg:_("REQ")})},LEN:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,a,l]=t;let s="";return l===a&&r.length!==Number(l)&&(s="LENGTH_EQUAL"),r.length<a&&(s="LENGTH_MORE"),l&&r.length>l&&(s="LENGTH_LESS"),Object.assign({},f(...t),{errMsg:_(s,{start:a,end:l})})},EMAIL:function(e){return{result:/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e),errMsg:_("EMAIL")}},PHONE_NUMBER_INPUT:u.PHONE_NUMBER_INPUT,ARRAY_LENGTH:(e,t,n)=>n===t&&e.length!==Number(n)?{result:!1,errMsg:_("LENGTH_EQUAL",{start:t,end:n})}:e.length<t?{result:!1,errMsg:_("LENGTH_MORE",{start:t,end:n})}:n&&e.length>n?{result:!1,errMsg:_("LENGTH_LESS",{start:t,end:n})}:{result:!0}},field:{datePicker:{defaultProps:{interceptor:"date-string"}},rangeDatePicker:{defaultProps:{interceptor:"date-range-string"}},inputNumber:{defaultProps:{changeOnWheel:!1}},textArea:{defaultProps:{autoSize:{minRows:2,maxRows:6}}}},globalProps:{labelTips:e=>(0,h.jsx)(p.A,(0,r.A)({},e))}},"function"===typeof e?e({interceptors:a.interceptors,RULES:a.RULES}):e))}},75363:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});const r=e=>({"en-US":()=>n.e(9431).then(n.bind(n,9431)),"zh-CN":()=>n.e(1065).then(n.bind(n,81065))}[e]());var a=n(47458),l=n(64671),s=n(55199),o=n(83136),i=n.n(o);const c="style_helper-guide__K5xFw__RknBi",d="style_inner__bMKeU__RknBi",u="style_content__xTfWZ__RknBi",p="style_link__93j7O__RknBi";var m=n(48731),h=n(70579);const g=e=>{let{name:t,className:n}=e;return(0,h.jsx)(a.IntlProvider,{importMessages:r,moduleName:"HelperGuide",children:(0,h.jsx)(m.default,{moduleName:"helperGuide",name:t,children:e=>e&&e.value&&(0,h.jsx)("div",{className:i()(c,n),children:(0,h.jsxs)(s.Space,{className:d,children:[(0,h.jsx)(l.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,h.jsx)("span",{className:u,children:e.content}),e.url&&(0,h.jsxs)(s.Typography.Link,{className:p,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,h.jsx)(l.default,{type:"icon-shuangjiantou-right"})]})]})})})})}},76995:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(89379),a=n(53986),l=n(55431),s=n(98434),o=n(47458),i=n(83799),c=n(83136),d=n.n(c),u=n(47094),p=n(70579);const m=["className","withDecorator","footerButtons","formProps","cancelText","saveText","autoClose"],h=["onSubmit"],g="FormInfo",f=e=>{let{className:t,withDecorator:n,footerButtons:c,formProps:f,cancelText:A,saveText:_,autoClose:x=!0}=e,v=(0,a.A)(e,m);return(0,r.A)((0,r.A)({},v),{},{footerButtons:c||[{children:(0,p.jsx)(o.IntlProvider,{importMessages:l.A,moduleName:g,children:A||(0,p.jsx)(o.FormattedMessage,{id:"Cancel",moduleName:g})}),ButtonComponent:s.CancelButton},{type:"primary",children:(0,p.jsx)(o.IntlProvider,{importMessages:l.A,moduleName:g,children:_||(0,p.jsx)(o.FormattedMessage,{id:"Save",moduleName:g})}),ButtonComponent:s.SubmitButton,autoClose:!1}],withDecorator:(e,t)=>{const s=t=>{const n=Object.assign({},"function"===typeof f?f(t):f),{onSubmit:s}=n,c=(0,a.A)(n,h);return(0,p.jsx)(i.lV,(0,r.A)((0,r.A)({},c),{},{onSubmit:async function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];!1!==(s&&await s(e,Object.assign({},t),...r))&&x&&t.close()},children:(0,p.jsx)(o.IntlProvider,{importMessages:l.A,moduleName:"FormInfo",children:e(t)})}))};return"function"===typeof n?n(s,t):s(t)},className:d()(t,u.A["form-outer"])})}},78756:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(43856),a=n(98434);const{useOnChange:l}=a.hooks,s=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(r.IndustrySelectField);s.Field=r.IndustrySelectField,s.Enum=r.IndustrySelectField.Enum;const o=s},81026:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(43856),a=n(98434);const{useOnChange:l}=a.hooks,s=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(r.FunctionSelectField);s.Field=r.FunctionSelectField,s.Enum=r.FunctionSelectField.Enum;const o=s},83230:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(98434),a=n(43856);const{useOnChange:l}=r.hooks,s=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(a.CascaderField);s.Field=a.CascaderField,s.createTreeUtils=a.createTreeUtils;const o=s},83799:(e,t,n)=>{n.d(t,{NI:()=>V,TQ:()=>m.A,JL:()=>U,eu:()=>v.A,vx:()=>h.A,lr:()=>ee,s3:()=>te,lV:()=>s.A,d4:()=>g.A,ZN:()=>f.A,pd:()=>Q,YI:()=>J,h2:()=>H,F0:()=>A.A,go:()=>_.default,tt:()=>l.Rate,lu:()=>y.A,l6:()=>K,Ap:()=>l.Slider,wD:()=>z,eM:()=>W,kx:()=>G,Pg:()=>q,dO:()=>l.Switch,EY:()=>P,fs:()=>X,AG:()=>Z,f7:()=>$,w5:()=>b.A,_O:()=>x.A,nk:()=>ne});var r=n(89379),a=n(53986),l=n(98434),s=n(85696),o=n(47458),i=n(73884),c=n(30891),d=n(47094),u=n(30096),p=n(34643),m=n(1904),h=n(83230),g=n(81026),f=n(78756),A=n(92328),_=n(2842),x=n(89099),v=n(96339),y=n(36972),j=n(15209),b=n(56259),N=n(55199),S=n(10986),k=n.n(S),C=n(70579);const w=["children"],{useDecorator:R}=l.hooks,F=e=>{let{children:t}=e,n=(0,a.A)(e,w);const[l]=k()(n);return(0,C.jsxs)(N.Typography.Text,(0,r.A)((0,r.A)({},n),{},{children:[(0,C.jsx)("div",{style:{height:0,width:0,overflow:"hidden"},children:(0,C.jsx)(N.Input,{value:l})}),t||l]}))},I=e=>R(e)(F);I.Field=F;const P=I;var B=n(45053);const M=["placeholder","label"],T=["placeholder","label","className"],O=["placeholder","label"],E=["placeholder","label","soFarText"],L=e=>{const t=(0,i.forwardRef)((t,n)=>{let{placeholder:l,label:s}=t,i=(0,a.A)(t,M);return(0,C.jsx)(o.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:s},children:t=>(0,C.jsx)(e,(0,r.A)((0,r.A)({},i),{},{ref:n,label:s,placeholder:l||t}))})});return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(n=>{t[n]=e[n]}),t},D=e=>{const t=(0,i.forwardRef)((t,n)=>{let{placeholder:l,label:s}=t,i=(0,a.A)(t,O);return(0,C.jsx)(o.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:s},children:t=>(0,C.jsx)(e,(0,r.A)((0,r.A)({},i),{},{ref:n,label:s,placeholder:l||t}))})});return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(n=>{t[n]=e[n]}),t},U=D(u.Ay),z=D(p.Ay),W=D(p.eM),q=D(p.Pg),G=D(p.kx),V=D(m.N),H=L(j.A),Q=L(l.Input);Q.Password=L(l.Input.Password);const X=(Y=l.TextArea,e=>{let{placeholder:t,label:n,className:l}=e,s=(0,a.A)(e,T);return(0,C.jsx)(o.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:n},children:e=>(0,C.jsx)("div",{className:d.A["textarea-wrapped-component"],children:(0,C.jsx)(Y,(0,r.A)((0,r.A)({},s),{},{label:n,placeholder:t||e}))})})});var Y;const K=D(l.Select),J=L(l.InputNumber),$=D(l.TreeSelect),Z=D(l.TimePicker);Z.RangePicker=D(l.TimePicker.RangePicker);const ee=D(l.DatePicker);ee.MonthPicker=D(l.DatePicker.MonthPicker),ee.RangePicker=D(l.DatePicker.RangePicker),ee.WeekPicker=D(l.DatePicker.WeekPicker);const te=e=>{let{placeholder:t,label:n,soFarText:s}=e,i=(0,a.A)(e,E);const{formatMessage:c}=(0,o.useIntl)({moduleName:"FormInfo"});return(0,C.jsx)(l.DatePickerToday,(0,r.A)((0,r.A)({},i),{},{label:n,placeholder:[c({id:"startDate"}),c({id:"endDate"})],soFarText:s||c({id:"soFarText"})}))},ne=Object.assign({},l,{Input:Q,InputUpperCase:H,TextArea:X,Select:K,InputNumber:J,TreeSelect:$,TimePicker:Z,DatePicker:ee,DatePickerToday:te,Form:s.A,FormItem:c.A,AdvancedSelect:U,SuperSelect:z,SuperSelectTableList:W,SuperSelectUser:q,SuperSelectTree:G,AddressSelect:m.A,AddressInput:V,MoneyInput:A.A,PhoneNumber:_.default,Cascader:h.A,FunctionSelect:g.A,IndustrySelect:f.A,TypeDateRangePicker:b.A,Upload:x.A,Avatar:v.A,SalaryInput:y.A,Text:P,Rate:l.Rate,Switch:l.Switch,Slider:l.Slider,ErrorTip:B.A})},85696:(e,t,n)=>{n.d(t,{A:()=>j});var r=n(89379),a=n(53986),l=n(73884),s=n(63743),o=n(33097),i=n.n(o),c=n(64261),d=n(47458),u=n(55431),p=n(46237),m=n(41381),h=n(46732),g=n(98434),f=n(83136),A=n.n(f),_=n(47094),x=n(70579);const v=["className","helperGuideName","children","lang"],y=e=>{let{children:t}=e;const[n,r]=(0,l.useState)(!1),a=(0,s.usePreset)(),o=i()(a,"formInfo",{}),d=i()(a,"locale");return(0,l.useEffect)(()=>{Promise.resolve((0,c.A)(o,{locale:d})).then(()=>{r(!0)})},[o,d]),n?t:null},j=(0,l.forwardRef)((e,t)=>{let{className:n,helperGuideName:l,children:s,lang:o}=e,i=(0,a.A)(e,v);return(0,x.jsx)(d.IntlProvider,{importMessages:u.A,moduleName:"FormInfo",children:(0,x.jsx)(p.Ay,{value:o,children:(0,x.jsx)(h.K,{value:l,children:(0,x.jsx)(y,{children:(0,x.jsx)(g.FormAntd,(0,r.A)((0,r.A)({},i),{},{ref:t,className:A()(n,_.A["form-outer"]),children:(0,x.jsx)(m.default,{children:s})}))})})})})})},85846:(e,t,n)=>{n.d(t,{A:()=>b});var r=n(89379),a=n(53986),l=n(73884),s=n(68532),o=n(55199),i=n(64671),c=n(41381),d=n(47338),u=n(2196),p=n(83136),m=n.n(p),h=n(55431),g=n(47458),f=n(47094),A=n(70579);const _=["addText","className","important","outer","renderChildren","deleteButtonProps","title"],x=["list","title","id","allowRemove","onRemove"],v=["add","addText","className","allowAdd"],y=(0,g.createWithIntl)({moduleName:"FormInfo",importMessages:h.A})(e=>{let{addText:t,className:n,important:c,outer:p=(0,A.jsx)(j,{}),renderChildren:h=e=>e,deleteButtonProps:v,title:y}=e,b=(0,a.A)(e,_);const{formatMessage:N}=(0,g.useIntl)({moduleName:"FormInfo"});return(0,A.jsx)(s.SubList,(0,r.A)((0,r.A)({},b),{},{listRender:e=>{let{list:t,title:n,id:l,allowRemove:s,onRemove:p}=e,h=(0,a.A)(e,x);return(0,A.jsxs)("div",{className:m()(f.A["list-item"],{[f.A["is-important"]]:c}),children:[(0,A.jsx)(u.A,(0,r.A)((0,r.A)({},h),{},{title:n,list:t,className:f.A["list-item-part"],gap:16,extra:(0,A.jsx)(g.FormattedMessage,{id:"delText",moduleName:"FormInfo",children:e=>s?(0,A.jsx)(d.default,(0,r.A)((0,r.A)({danger:!0,className:"btn-no-padding",message:N({id:"delConfirm"},{name:n}),type:"link",onClick:()=>{p(l)}},Object.assign({},v)),{},{children:null!==v&&void 0!==v&&v.children?null===v||void 0===v?void 0:v.children:(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(i.default,{type:"icon-shanchu"}),e]})})):null})})),(0,A.jsx)(o.Divider,{})]},l)},children:(e,r)=>{let{allowAdd:a,onAdd:s}=r;return(0,l.cloneElement)(p,{title:y,addText:t,className:m()(n,f.A["list-part"]),allowAdd:a,add:()=>s({isUnshift:!1})},h(e))}}))}),j=e=>{let{add:t,addText:n,className:l,allowAdd:s}=e,d=(0,a.A)(e,v);return(0,A.jsx)(c.default.Part,(0,r.A)((0,r.A)({},d),{},{className:l,extra:s&&(0,A.jsx)(g.FormattedMessage,{id:"addText",moduleName:"FormInfo",children:e=>(0,A.jsxs)(o.Typography.Text,{className:f.A["list-btn"],onClick:t,children:[(0,A.jsx)(i.default,{type:"icon-tianjia"}),n||e]})})}))},b=y},89099:(e,t,n)=>{n.d(t,{A:()=>k});var r=n(89379),a=n(53986),l=n(55199),s=n(83136),o=n.n(s),i=n(10986),c=n.n(i);const d="style_upload__t422Q__RknBi",u="style_upload-list__Q9HDc__RknBi",p="style_tips__3Gpnu__RknBi";var m=n(19343),h=n(98434),g=n(47458),f=n(1488),A=n.n(f),_=n(17508),x=n(55431),v=n(70579);const y=["className","fileSize","maxLength","multiple","size","accept","children","renderTips","showUploadList","onSave","ossUpload","onUpload","getPermission","concurrentCount"],j=["interceptor"],{useOnChange:b}=h.hooks,N=(0,g.createWithIntl)({importMessages:x.A,moduleName:"FormInfo"})(e=>{const{formatMessage:t}=(0,g.useIntl)({moduleName:"FormInfo"}),n=Object.assign({},{defaultValue:[],children:t({id:"uploadButtonText"}),accept:[".pdf",".jpg",".png",".jpeg",".doc",".docx",".xls",".xlsx",".html",".msg",".eml",".zip"],renderTips:e=>e,multiple:!0,showUploadList:!0,maxLength:10,fileSize:30,concurrentCount:10},e),{className:s,fileSize:i,maxLength:h,multiple:f,size:x,accept:j,children:b,renderTips:N,showUploadList:S,onSave:k,ossUpload:C,onUpload:w,getPermission:R,concurrentCount:F}=n,I=(0,a.A)(n,y),[P,B]=c()(I),M=P||[],{fileList:T,onFileSelected:O}=(0,_.lN)({multiple:f,onSave:k,onUpload:C||w,fileSize:i,maxLength:h,value:M,onChange:B,concurrentCount:F}),E=[...T,...M],L=N(t({id:"uploadTips"},{extensionNames:j.map(e=>e.replace(/^\./,"")).join(","),maxLength:h,fileSize:i}),{fileSize:i,maxLength:h,accept:j});return(0,v.jsxs)(l.Space,{direction:"vertical",children:[(0,v.jsxs)(l.Flex,{align:"start",gap:8,vertical:!0,children:[(0,v.jsx)(_.Zi,(0,r.A)((0,r.A)({},A()(I,["value","onChange"])),{},{size:x,multiple:f,accept:j,className:o()(d,s),onChange:O,children:b})),L&&(0,v.jsx)("div",{className:p,children:L})]}),S&&E.length>0&&(0,v.jsx)(m.List,{className:u,dataSource:E,infoItemRenders:[],getPermission:R||(e=>"delete"===e),apis:{onDelete:e=>{const t=M.slice(0),n=t.indexOf(e);n>-1&&t.splice(n,1),B(t)}}})]})}),S=e=>{let{interceptor:t="file-format"}=e,n=(0,a.A)(e,j);return b((0,r.A)({interceptor:t},n))(N)};S.Field=N;const k=S},92328:(e,t,n)=>{n.d(t,{A:()=>b});var r=n(89379),a=n(53986),l=n(10986),s=n.n(l),o=n(98434),i=n(55199),c=n(69484);const d="style_money-input__Pyur7__RknBi",u="style_money-description__9pFk4__RknBi";var p=n(83136),m=n.n(p),h=n(34677),g=n.n(h),f=n(73884),A=n(70579);const _=["chineseEmpty","className","showError","errorDesc","transformMoneyToChinese","onBlur","moneyFormat"],{isNotEmpty:x}=o.util||o.formUtils,{useOnChange:v}=o.hooks,y=e=>{let{chineseEmpty:t,className:n,showError:l,errorDesc:o,transformMoneyToChinese:p,onBlur:h,moneyFormat:v}=e,y=(0,a.A)(e,_);const[j,b]=(0,f.useState)(""),[N,S]=s()(y),k=g()({controls:!1,precision:2,addonAfter:"\u5143"},y,{max:x(y.max)?y.max>c.e?c.e:y.max:c.e});return(0,A.jsxs)("div",{className:m()(n,"money-input",d),children:[(0,A.jsx)(i.InputNumber,(0,r.A)((0,r.A)({},k),{},{status:j,formatter:v?e=>"".concat(e).replace(/\B(?=(\d{3})+(?!\d))/g,","):null,parser:e=>{const t=v?null===e||void 0===e?void 0:e.replace(/\$\s?|(,*)/g,""):e;return x(t)?(Number(t)>Number(k.max)||x(k.min)&&Number(t)<Number(k.min))&&b("error"):b(""),x(t)?Number(t):null},onChange:e=>{S(e)},onBlur:e=>{h&&h(e,b)}})),(0,A.jsx)("div",{className:m()(u),children:"error"===j&&l?o:x(N)?(0,c.A)(p?p(N):N):t})]})},j=e=>v(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(e.label||"")},e))(y);j.Field=y,j.toChineseCharacter=c.A;const b=j},94005:(e,t,n)=>{n.d(t,{$X:()=>S,Ay:()=>N,Wp:()=>k});var r=n(89379),a=n(53986),l=n(3382),s=n(73884),o=n(98434),i=n(73025),c=n(47458),d=n(47094),u=n(55431),p=n(55199),m=n(76995),h=n(70579);const g=["footerButtons","cancelText","completeText","nextText","items","withDecorator"],f=["formProps","title"],A=["onSubmit"],_=["formProps"],x=["children","stepSection"],v=["modalProps"],y="FormInfo",j=e=>{let{items:t,children:n}=e;const[r,a]=(0,s.useState)(0);return n({currentIndex:r,setCurrentIndex:a,stepCacheRef:(0,s.useRef)({}),isLastStep:r===t.length-1,currentProps:Object.assign({},t[r])})},b=e=>{let{footerButtons:t,cancelText:n,completeText:r,nextText:l,items:s,withDecorator:i}=e,v=(0,a.A)(e,g);return(0,m.A)(Object.assign({},v,{footerButtons:e=>{let{currentIndex:t,isLastStep:a}=e;const{footerButtons:i}=Object.assign({},s[t]);return i||[{children:(0,h.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:y,children:n||(0,h.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:y})}),ButtonComponent:o.CancelButton},{type:"primary",children:(0,h.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:y,children:a?r||(0,h.jsx)(c.FormattedMessage,{id:"Complete",moduleName:y}):l||(0,h.jsx)(c.FormattedMessage,{id:"Next",moduleName:y})}),ButtonComponent:o.SubmitButton,autoClose:!1}]},withDecorator:(e,t)=>{const n=t=>(0,h.jsx)(j,{items:s,children:n=>{var r;let{currentIndex:l,isLastStep:o,setCurrentIndex:i,currentProps:c,stepCacheRef:u}=n;const{formProps:m,title:g}=c,_=(0,a.A)(c,f),x="function"===typeof m?m(t):m,{onSubmit:y}=x,j=(0,a.A)(x,A),b=Object.assign({},j.data,null===(r=u.current[l])||void 0===r?void 0:r.data);return e(Object.assign({},t,_,{currentIndex:l,isLastStep:o,setCurrentIndex:i,stepCacheRef:u,stepSection:(0,h.jsx)(p.Steps,{className:d.A["form-step-section"],current:l,items:s.map(e=>{let{title:t}=e;return{title:t}})}),formProps:Object.assign({},j,{key:l,data:b,onSubmit:async function(e){u.current[l]={data:e};for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];const s=y&&await y(e,Object.assign({},t,{currentIndex:l,isLastStep:o,setCurrentIndex:i,currentProps:c,stepCacheRef:u}),...r);return v.autoClose&&!o&&!1!==s&&i(e=>e+1),!!o&&s}})}))}});return"function"===typeof i?i(n,t):n(t)},formProps:e=>{let{formProps:t}=e,n=(0,a.A)(e,_);return Object.assign({},n,t)},children:e=>{let{children:t,stepSection:n}=e,r=(0,a.A)(e,x);return(0,h.jsxs)(p.Flex,{vertical:!0,gap:24,children:[(0,h.jsx)(p.Flex,{justify:"center",children:n}),"function"===typeof t?t(r):t]})}}))},N=e=>(0,h.jsx)(l.default,(0,r.A)({},b(Object.assign({},e,{className:d.A["form-modal"]})))),S=()=>{const e=(0,l.useModal)();return t=>e(b(Object.assign({},t,{className:d.A["form-modal"]})))},k=e=>{const t=S();if(!e.api){const{modalProps:n}=e,l=(0,a.A)(e,v);return(0,h.jsx)(p.Button,(0,r.A)((0,r.A)({},l),{},{onClick:()=>{t(n)}}))}return(0,h.jsx)(i.A,(0,r.A)((0,r.A)({},e),{},{modalFunc:t}))}},96252:(e,t,n)=>{n.r(t),n.d(t,{AddressInput:()=>_.NI,AddressSelect:()=>_.TQ,AdvancedSelect:()=>_.JL,Avatar:()=>_.eu,Cascader:()=>_.vx,DatePicker:()=>_.lr,DatePickerToday:()=>_.s3,ErrorTip:()=>h.A,Form:()=>p.A,FormApiButton:()=>i.A,FormDrawer:()=>u.Ay,FormDrawerButton:()=>u.WJ,FormItem:()=>m.A,FormModal:()=>c.Ay,FormModalButton:()=>c.W6,FormStepModal:()=>d.Ay,FormStepModalButton:()=>d.Wp,FunctionSelect:()=>_.d4,IndustrySelect:()=>_.ZN,Input:()=>_.pd,InputNumber:()=>_.YI,InputUpperCase:()=>_.h2,List:()=>s.A,MoneyInput:()=>_.F0,MultiField:()=>g.A,PhoneNumber:()=>_.go,Rate:()=>_.tt,SalaryInput:()=>_.lu,Select:()=>_.l6,SelectInnerInput:()=>x.A,Slider:()=>_.Ap,SuperSelect:()=>_.wD,SuperSelectTableList:()=>_.eM,SuperSelectTree:()=>_.kx,SuperSelectUser:()=>_.Pg,Switch:()=>_.dO,TableList:()=>o.A,Text:()=>_.EY,TextArea:()=>_.fs,TimePicker:()=>_.AG,TreeSelect:()=>_.f7,TypeDateRangePicker:()=>_.w5,Upload:()=>_._O,default:()=>v,fieldDecorator:()=>l.E,fields:()=>l.A,formModule:()=>_.nk,useFormDrawer:()=>u.Xy,useFormModal:()=>c.Vl,useFormStepModal:()=>d.$X});var r=n(64261),a=n(2196),l=n(15445),s=n(85846),o=n(97056),i=n(35774),c=n(5995),d=n(94005),u=n(48221),p=n(85696),m=n(30891),h=n(45053),g=n(97949),f=n(98434),A={};for(const y in f)["default","SelectInnerInput","Form","FormItem","ErrorTip","fields","fieldDecorator","List","TableList","FormApiButton","FormModal","useFormModal","FormModalButton","FormStepModal","useFormStepModal","FormStepModalButton","FormDrawer","useFormDrawer","FormDrawerButton","MultiField"].indexOf(y)<0&&(A[y]=()=>f[y]);n.d(t,A);var _=n(83799),x=n(18936);(0,r.A)(),a.A.fields=l.A,a.A.List=s.A,a.A.TableList=o.A,a.A.FormApiButton=i.A,a.A.FormModal=c.Ay,a.A.useFormModal=c.Vl,a.A.FormModalButton=c.W6,a.A.FormStepModal=d.Ay,a.A.useFormStepModal=d.$X,a.A.FormStepModalButton=d.Wp,a.A.FormDrawer=u.Ay,a.A.useFormDrawer=u.Xy,a.A.FormDrawerButton=u.WJ,a.A.Form=p.A,a.A.FormItem=m.A,a.A.ErrorTip=h.A,a.A.SubmitButton=f.SubmitButton,a.A.CancelButton=f.CancelButton,a.A.fieldDecorator=l.E,a.A.MultiField=g.A,a.A.useFormContext=f.useFormContext,a.A.hooks=f.hooks,a.A.widget=f.widget,a.A.utils=f.utils,a.A.formUtils=f.formUtils;const v=a.A},96339:(e,t,n)=>{n.d(t,{A:()=>q});var r=n(53986),a=n(89379),l=n(73884),s=n(17508),o=n(40438),i=n(63743),c=n(3382),d=n(64671),u=n(55199),p=n(53202),m=n.n(p),h=n(33097),g=n.n(h),f=n(83136),A=n.n(f),_=n(51941),x=n(98434),v=n(34677),y=n.n(v);const j="style_upload-btn__-6XtP__RknBi",b="style_square__UPkfA__RknBi",N="style_is-loading__wx6Pd__RknBi",S="style_upload-btn-tips__YtxWz__RknBi",k="style_drop-tips__N-v59__RknBi",C="style_preview-area__aV3SN__RknBi";var w=n(18411),R=n(47458),F=n(55431),I=n(70579);const P=["image","width","height","borderRadius","preview","fileSize","accept","renderTips","getApi","shape","border"],B=["image","width","height","borderRadius","getApi","preview","fileSize","accept","renderTips","border","dropModalSize"],{useOnChange:M}=x.hooks,T=o.default.Avatar,O="FormInfo",E=(0,s.Ay)(e=>{let{className:t,icon:n,loading:r,value:l,gender:s,width:o,height:i,children:c,shape:p,defaultAvatar:m,displayAvatar:h,apis:f}=e;const _=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(T,(0,a.A)((0,a.A)({},Object.assign({},"function"===typeof h?h(l):{id:g()(l,"id")})),{},{gender:s,width:64*o/i,height:64,shape:p,defaultAvatar:m,apis:f})),(0,I.jsx)("div",{className:S,children:n||(0,I.jsx)(d.default,{type:"icon-chuanzhaopian",size:16})}),c]});return(0,I.jsx)("div",{className:A()(t,j,{[N]:r,[b]:"square"===p||!(o&&o===i)}),style:{width:64*o/i},children:r?(0,I.jsx)(u.Spin,{children:_}):_})}),L=e=>{let t=e.split(","),n=t[1].substring(0,t[1].length-2),r=t[0].match(/:(.*?);/)[1],a=atob(n),l=a.length,s=new Uint8Array(l);for(;l--;)s[l]=a.charCodeAt(l);return new Blob([s],{type:r})},D=(0,l.forwardRef)((e,t)=>{let{image:n,width:o,height:i,borderRadius:c,preview:p,fileSize:h,accept:g,renderTips:f,getApi:A,shape:x,border:v=1}=e,y=(0,r.A)(e,P);const j=(0,R.useIntl)({moduleName:O}),[b,N]=(0,l.useState)(0),S=(0,l.useRef)(null),[w,F]=(0,l.useState)(n),[B,M]=(0,l.useState)(1),[T,E]=(0,l.useState)(0),[D,U]=(0,l.useState)(""),z=(0,l.useRef)(null);(0,l.useLayoutEffect)(()=>{N(2*S.current.clientWidth/3)},[]),A({getImage:()=>{const e=z.current.getImage(),t=document.createElement("canvas"),n=t.getContext("2d");return t.width=o,t.height=i,n.drawImage(e,0,0,t.width,t.height),new window.File([L(t.toDataURL())],w.name,{type:w.type})}});const W=()=>{U(z.current.getImage().toDataURL())},q=(0,_.useDebouncedCallback)(W,500);return(0,I.jsx)("div",{ref:S,children:(0,I.jsxs)(u.Row,{wrap:!1,align:"middle",children:[(0,I.jsx)(u.Col,{span:p?16:24,children:b&&(0,I.jsxs)(u.Space,{direction:"vertical",children:[(0,I.jsx)(m(),(0,a.A)((0,a.A)({},y),{},{ref:z,image:w,scale:B,rotate:T,width:b-2*v,height:i*b/o-2*v*i/o,border:v,color:[0,0,0,.6],borderRadius:c*b/o,onImageReady:W,onImageChange:q})),(0,I.jsx)("div",{className:k,children:f("".concat(j.formatMessage({id:"PictureFormat"})).concat(g.map(e=>e.replace(/^\./,"")).join(" ")," ").concat(j.formatMessage({id:"ImageSize"})).concat(j.formatMessage({id:"NotExceeding"},{size:h})),{accept:g,fileSize:h})}),(0,I.jsxs)(u.Row,{gutter:14,align:"middle",children:[(0,I.jsx)(u.Col,{children:(0,I.jsx)(u.Tooltip,{title:j.formatMessage({id:"Rotate"}),placement:"bottom",children:(0,I.jsx)(d.default,{type:"icon-xuanzhuan",onClick:()=>{E(e=>(e-90)%360)}})})}),(0,I.jsx)(u.Col,{children:(0,I.jsx)(u.Tooltip,{title:j.formatMessage({id:"ImageFull"}),placement:"bottom",children:(0,I.jsx)(d.default,{type:"icon-chongman",onClick:()=>{M(1)}})})}),(0,I.jsx)(u.Col,{flex:1,children:(0,I.jsx)(u.Slider,{tooltip:{placement:"bottom",formatter:()=>j.formatMessage({id:"Size"})},value:B,step:.05,min:.2,max:3,onChange:M})}),(0,I.jsx)(u.Col,{children:(0,I.jsx)(s.FI,{accept:g,onChange:e=>{e[0].size>1024*h*1024?u.message.error(j.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:h})):(E(0),M(1),F(e[0]))},children:j.formatMessage({id:"ReUpload"})})})]})]})}),p&&(0,I.jsx)(u.Col,{span:8,children:(0,I.jsx)("div",{className:C,children:(0,I.jsxs)(u.Space,{direction:"vertical",children:[(0,I.jsx)(u.Avatar,{src:D,shape:x,style:{width:b/2-36,height:(b/2-36)*i/o}}),(0,I.jsx)("div",{style:{textAlign:"center"},children:j.formatMessage({id:"Preview"})})]})})})]})})}),U=()=>{const e=(0,c.useModal)();return t=>{const n=Object.assign({},{title:"\u7f16\u8f91\u5934\u50cf",width:200,height:200,borderRadius:"circle"===t.shape&&t.width&&t.width===t.height?t.width/2:2,preview:!0},t),{image:l,width:s,height:o,borderRadius:i,getApi:c,preview:d,fileSize:u,accept:p,renderTips:m,border:h,dropModalSize:g}=n,f=(0,r.A)(n,B);return e((0,a.A)((0,a.A)({},f),{},{size:g,children:(0,I.jsx)(D,{preview:d,fileSize:u,accept:p,getApi:c,renderTips:m,width:s,height:o,shape:"circle"===t.shape&&t.width&&t.width===t.height?"circle":"square",borderRadius:i,image:l,border:h,scale:1,rotate:0})}))}},z=(0,R.createWithIntl)({importMessages:F.A,moduleName:"FormInfo"})(e=>{var t;let{value:n,gender:r,fileSize:a=2,accept:s=[".jpg",".png",".jpeg"],openEditor:o=!0,apis:c,renderTips:d=e=>e,onChange:p,shape:m="circle",width:h=200,height:g=200,title:f=(0,I.jsx)(R.IntlProvider,{importMessages:F.A,moduleName:"FormInfo",children:(0,I.jsx)(R.FormattedMessage,{id:"Crop",moduleName:"FormInfo"})}),border:A=1,icon:_,dropModalSize:x="small",defaultAvatar:v=w.A,displayAvatar:j}=e;const[b,N]=(0,l.useState)(!1),{apis:S}=(0,i.usePreset)(),k=y()({},S,c),C=k.ossUpload||k.upload||(null===(t=k.file)||void 0===t?void 0:t.upload),P=(0,l.useRef)(null),B=U(),M=(0,R.useIntl)({moduleName:O});return(0,I.jsx)(E,{value:n,gender:r,accept:s,width:h,height:g,shape:m,icon:_,loading:b,defaultAvatar:v,displayAvatar:j,apis:k,onChange:e=>{if(e[0].size>1024*a*1024)return void u.message.error(M.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:a}));const t=e=>(N(!0),C({file:e}).then(e=>{let{data:t}=e;0===t.code?p(t.data):u.message.error(M.formatMessage({id:"UploadFailed"},{msg:t.msg?":"+t.msg:""}))}).finally(()=>{N(!1)}));o?B({image:e[0],width:h,height:g,title:f,shape:m,border:A,dropModalSize:x,getApi:e=>P.current=e,fileSize:a,accept:s,renderTips:d,onConfirm:()=>{t(P.current.getImage())}}):t(e[0])}})}),W=e=>M(e)(z);W.Field=z,W.useDropModal=U;const q=W},97056:(e,t,n)=>{n.d(t,{A:()=>f});var r=n(89379),a=n(53986),l=n(55199),s=n(64671),o=n(83136),i=n.n(o),c=n(47094),d=n(68532),u=n(41381),p=n(47458),m=n(55431),h=n(70579);const g=["className"],f=(0,p.createWithIntl)({moduleName:"FormInfo",importMessages:m.A})(e=>{let{className:t}=e,n=(0,a.A)(e,g);const{formatMessage:o}=(0,p.useIntl)({moduleName:"FormInfo"});return(0,h.jsx)("div",{className:i()(t,c.A["table-list"]),children:(0,h.jsx)(d.TableList,(0,r.A)((0,r.A)({},n),{},{className:i()(t,c.A["table-list"]),headerRender:(e,t)=>{let{width:n}=t;return(0,h.jsxs)(l.Row,{wrap:!1,className:c.A["table-list-header"],style:{"--col-width":n},children:[e,(0,h.jsx)(l.Col,{className:c.A["table-list-extra"]})]})},headerItemRender:(e,t)=>{let{id:n,isReq:r}=t;return(0,h.jsx)(l.Col,{className:i()({[c.A["is-req"]]:r}),children:e},n)},listRender:(e,t)=>{let{id:n,width:r,onRemove:a,allowRemove:i}=t;return(0,h.jsxs)(l.Row,{wrap:!1,style:{"--col-width":r},children:[e,(0,h.jsx)(l.Col,{className:c.A["table-list-extra"],children:(0,h.jsx)(l.Button,{type:"link",onClick:a,danger:!0,disabled:!i,children:(0,h.jsxs)("span",{children:[(0,h.jsx)(s.default,{type:"shanchu"}),o({id:"delText"})]})})})]},n)},itemRender:e=>(0,h.jsx)(l.Col,{className:c.A["table-list-field"],flex:1,children:e}),children:(e,t)=>{let{title:n,allowAdd:r,onAdd:a}=t;return(0,h.jsx)(u.default.Part,{title:n,className:i()(c.A["table-list-inner"]),extra:r&&(0,h.jsxs)(l.Typography.Link,{className:c.A["list-btn"],onClick:()=>a({isUnshift:!1}),children:[(0,h.jsx)(s.default,{type:"tianjia"}),o({id:"addText"})]}),children:e})}}))})})},97949:(e,t,n)=>{n.d(t,{A:()=>m});var r=n(89379),a=n(55199),l=n(47458),s=n(64671),o=n(47094),i=n(83136),c=n.n(i),d=n(55431),u=n(68532),p=n(70579);const m=(0,l.createWithIntl)({moduleName:"FormInfo",importMessages:d.A})(e=>{const{formatMessage:t}=(0,l.useIntl)({moduleName:"FormInfo"});return(0,p.jsx)(u.MultiField,(0,r.A)((0,r.A)({},e),{},{itemRender:(e,t)=>{let{id:n,index:r,allowRemove:l,onRemove:i}=t;return(0,p.jsxs)("div",{className:c()(o.A["mult-field-item"],"mult-field-item",{[o.A["first-item"]]:0===r}),children:[e,(0,p.jsxs)("div",{className:c()("form-info-mult-option"),children:[(0,p.jsx)("div",{className:c()(o.A["react-form__field-label"],"react-form__field-label","mult-field-delete--label")}),(0,p.jsx)(a.Button,{icon:(0,p.jsx)(s.default,{type:"shanchu"}),onClick:i,disabled:!l})]})]},n)},children:(n,r)=>{let{allowAdd:l,onAdd:i}=r;return(0,p.jsxs)("div",{className:c()(o.A["mult-field"],"mult-field"),children:[n,l&&(0,p.jsx)("div",{className:c()("form-info-mult-add-btn"),children:(0,p.jsxs)(a.Button,{className:o.A["mult-field-add-btn"],type:"dashed",onClick:()=>i({isUnshift:!1}),children:[(0,p.jsx)(s.default,{type:"tianjia"}),t({id:"addSomeThing"},{label:e.label})]})})]})}}))})}}]);
2
+ //# sourceMappingURL=254.9697112f.chunk.js.map