@kne-components/components-core 0.3.22 → 0.3.23

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 (173) hide show
  1. package/build/asset-manifest.json +101 -103
  2. package/build/index.html +1 -1
  3. package/build/mock/resume.pdf +0 -0
  4. package/build/mock/resume.png +0 -0
  5. package/build/remoteEntry.js +1 -1
  6. package/build/remoteEntry.js.map +1 -1
  7. package/build/static/css/1248.420f95be.chunk.css +2 -0
  8. package/build/static/css/{1248.4a0b7f83.chunk.css.map → 1248.420f95be.chunk.css.map} +1 -1
  9. package/build/static/css/1559.10a05420.chunk.css +2 -0
  10. package/build/static/css/{1559.699d3dc6.chunk.css.map → 1559.10a05420.chunk.css.map} +1 -1
  11. package/build/static/css/{1996.f2354a07.chunk.css → 1996.ad6ff799.chunk.css} +2 -2
  12. package/build/static/css/{1996.f2354a07.chunk.css.map → 1996.ad6ff799.chunk.css.map} +1 -1
  13. package/build/static/css/206.3b192e68.chunk.css +2 -0
  14. package/build/static/css/206.3b192e68.chunk.css.map +1 -0
  15. package/build/static/css/2309.d47b23b4.chunk.css +2 -0
  16. package/build/static/css/{2309.05cae1d6.chunk.css.map → 2309.d47b23b4.chunk.css.map} +1 -1
  17. package/build/static/css/2630.e3e8f1f9.chunk.css +2 -0
  18. package/build/static/css/{2630.c8ff7541.chunk.css.map → 2630.e3e8f1f9.chunk.css.map} +1 -1
  19. package/build/static/css/2716.22bb4fae.chunk.css +2 -0
  20. package/build/static/css/{2716.730daeea.chunk.css.map → 2716.22bb4fae.chunk.css.map} +1 -1
  21. package/build/static/css/{3771.c8fd3972.chunk.css → 3771.a69d0a04.chunk.css} +2 -2
  22. package/build/static/css/{3771.c8fd3972.chunk.css.map → 3771.a69d0a04.chunk.css.map} +1 -1
  23. package/build/static/css/{3790.432eec3f.chunk.css → 3790.c883c3e8.chunk.css} +2 -2
  24. package/build/static/css/{3790.432eec3f.chunk.css.map → 3790.c883c3e8.chunk.css.map} +1 -1
  25. package/build/static/css/{4277.ff87c82d.chunk.css → 4277.cf236e3f.chunk.css} +2 -2
  26. package/build/static/css/{4277.ff87c82d.chunk.css.map → 4277.cf236e3f.chunk.css.map} +1 -1
  27. package/build/static/css/5422.3fba146d.chunk.css +2 -0
  28. package/build/static/css/5422.3fba146d.chunk.css.map +1 -0
  29. package/build/static/css/{6763.ac565045.chunk.css → 6763.60886b75.chunk.css} +2 -2
  30. package/build/static/css/{6763.ac565045.chunk.css.map → 6763.60886b75.chunk.css.map} +1 -1
  31. package/build/static/css/6980.565a5873.chunk.css +12 -0
  32. package/build/static/css/6980.565a5873.chunk.css.map +1 -0
  33. package/build/static/css/7227.f4fd739b.chunk.css +2 -0
  34. package/build/static/css/{7227.a609a53b.chunk.css.map → 7227.f4fd739b.chunk.css.map} +1 -1
  35. package/build/static/css/{760.f14517c4.chunk.css → 760.b6f1ffe9.chunk.css} +2 -2
  36. package/build/static/css/{760.f14517c4.chunk.css.map → 760.b6f1ffe9.chunk.css.map} +1 -1
  37. package/build/static/css/8278.ae2486d0.chunk.css +2 -0
  38. package/build/static/css/8278.ae2486d0.chunk.css.map +1 -0
  39. package/build/static/css/{8593.35aee5c3.chunk.css → 8593.1131ec48.chunk.css} +2 -2
  40. package/build/static/css/{8593.35aee5c3.chunk.css.map → 8593.1131ec48.chunk.css.map} +1 -1
  41. package/build/static/css/9119.806ab331.chunk.css +2 -0
  42. package/build/static/css/{9119.198f95f9.chunk.css.map → 9119.806ab331.chunk.css.map} +1 -1
  43. package/build/static/css/9556.60bfb7c6.chunk.css +2 -0
  44. package/build/static/css/{9556.70c10c58.chunk.css.map → 9556.60bfb7c6.chunk.css.map} +1 -1
  45. package/build/static/css/9772.40db844e.chunk.css +2 -0
  46. package/build/static/css/9772.40db844e.chunk.css.map +1 -0
  47. package/build/static/js/{1014.87aa5338.chunk.js → 1014.062b3399.chunk.js} +1 -1
  48. package/build/static/js/1248.e04383c7.chunk.js +3 -0
  49. package/build/static/js/1248.e04383c7.chunk.js.map +1 -0
  50. package/build/static/js/1996.977f3d73.chunk.js +2 -0
  51. package/build/static/js/{1996.ba86de26.chunk.js.map → 1996.977f3d73.chunk.js.map} +1 -1
  52. package/build/static/js/206.4fca34c5.chunk.js +2 -0
  53. package/build/static/js/206.4fca34c5.chunk.js.map +1 -0
  54. package/build/static/js/{2097.6e05fc91.chunk.js → 2097.087ae73c.chunk.js} +2 -2
  55. package/build/static/js/{2097.6e05fc91.chunk.js.map → 2097.087ae73c.chunk.js.map} +1 -1
  56. package/build/static/js/2309.1942d3a5.chunk.js +2 -0
  57. package/build/static/js/2309.1942d3a5.chunk.js.map +1 -0
  58. package/build/static/js/2630.fae65a5f.chunk.js +2 -0
  59. package/build/static/js/2630.fae65a5f.chunk.js.map +1 -0
  60. package/build/static/js/2716.db48e70e.chunk.js +3 -0
  61. package/build/static/js/2716.db48e70e.chunk.js.map +1 -0
  62. package/build/static/js/3771.b35db118.chunk.js +2 -0
  63. package/build/static/js/{3771.98136f4e.chunk.js.map → 3771.b35db118.chunk.js.map} +1 -1
  64. package/build/static/js/{3790.9883baec.chunk.js → 3790.7fe81760.chunk.js} +2 -2
  65. package/build/static/js/{3790.9883baec.chunk.js.map → 3790.7fe81760.chunk.js.map} +1 -1
  66. package/build/static/js/3856.308647b4.chunk.js +2 -0
  67. package/build/static/js/{3856.18a1b0df.chunk.js.map → 3856.308647b4.chunk.js.map} +1 -1
  68. package/build/static/js/4277.5999c2e5.chunk.js +2 -0
  69. package/build/static/js/4277.5999c2e5.chunk.js.map +1 -0
  70. package/build/static/js/4474.a13d3bee.chunk.js +2 -0
  71. package/build/static/js/4474.a13d3bee.chunk.js.map +1 -0
  72. package/build/static/js/{5422.c0a4c1e2.chunk.js → 5422.e9ae0d22.chunk.js} +2 -2
  73. package/build/static/js/{5422.c0a4c1e2.chunk.js.map → 5422.e9ae0d22.chunk.js.map} +1 -1
  74. package/build/static/js/{6183.8683d370.chunk.js → 6183.874f397c.chunk.js} +2 -2
  75. package/build/static/js/6183.874f397c.chunk.js.map +1 -0
  76. package/build/static/js/628.3e28efa2.chunk.js +2 -0
  77. package/build/static/js/628.3e28efa2.chunk.js.map +1 -0
  78. package/build/static/js/{6454.158cc0a5.chunk.js → 6454.0a61aac9.chunk.js} +1 -1
  79. package/build/static/js/{6617.a8b13ad4.chunk.js → 6617.478cfff0.chunk.js} +1 -1
  80. package/build/static/js/6763.22216403.chunk.js +2 -0
  81. package/build/static/js/{6763.b9d2f7ca.chunk.js.map → 6763.22216403.chunk.js.map} +1 -1
  82. package/build/static/js/6980.d67616cd.chunk.js +2 -0
  83. package/build/static/js/6980.d67616cd.chunk.js.map +1 -0
  84. package/build/static/js/{7227.d0c93f45.chunk.js → 7227.2044244e.chunk.js} +3 -3
  85. package/build/static/js/{7227.d0c93f45.chunk.js.map → 7227.2044244e.chunk.js.map} +1 -1
  86. package/build/static/js/{7338.32ee54cd.chunk.js → 7338.1e95fe61.chunk.js} +2 -2
  87. package/build/static/js/{7338.32ee54cd.chunk.js.map → 7338.1e95fe61.chunk.js.map} +1 -1
  88. package/build/static/js/{760.59ee3c3b.chunk.js → 760.f16a43aa.chunk.js} +2 -2
  89. package/build/static/js/{760.59ee3c3b.chunk.js.map → 760.f16a43aa.chunk.js.map} +1 -1
  90. package/build/static/js/8247.2a8ecdf4.chunk.js +2 -0
  91. package/build/static/js/8247.2a8ecdf4.chunk.js.map +1 -0
  92. package/build/static/js/8278.223ea344.chunk.js +2 -0
  93. package/build/static/js/8278.223ea344.chunk.js.map +1 -0
  94. package/build/static/js/8593.f380ac2a.chunk.js +2 -0
  95. package/build/static/js/{8593.ac77eba5.chunk.js.map → 8593.f380ac2a.chunk.js.map} +1 -1
  96. package/build/static/js/{8812.46992a9d.chunk.js → 8812.6fa1c023.chunk.js} +2 -2
  97. package/build/static/js/{8812.46992a9d.chunk.js.map → 8812.6fa1c023.chunk.js.map} +1 -1
  98. package/build/static/js/9119.cc873032.chunk.js +2 -0
  99. package/build/static/js/9119.cc873032.chunk.js.map +1 -0
  100. package/build/static/js/9556.283ac73f.chunk.js +3 -0
  101. package/build/static/js/9556.283ac73f.chunk.js.map +1 -0
  102. package/build/static/js/9772.21874f13.chunk.js +2 -0
  103. package/build/static/js/9772.21874f13.chunk.js.map +1 -0
  104. package/build/static/js/main.9ecd33da.js +2 -0
  105. package/build/static/js/main.9ecd33da.js.map +1 -0
  106. package/package.json +3 -4
  107. package/build/mock/1_/347/216/213/346/231/266/347/256/200/345/216/206-2023_06_2.pdf +0 -0
  108. package/build/mock/cLtSR4oBLvtYYBIY9Epn.pdf +0 -0
  109. package/build/mock/demo.html +0 -344
  110. package/build/mock/demo.jpg +0 -0
  111. package/build/mock/demo.pdf +0 -0
  112. package/build/mock/demo2.jpg +0 -0
  113. package/build/mock/demo2.pdf +0 -0
  114. package/build/static/css/1248.4a0b7f83.chunk.css +0 -2
  115. package/build/static/css/1559.699d3dc6.chunk.css +0 -2
  116. package/build/static/css/2309.05cae1d6.chunk.css +0 -2
  117. package/build/static/css/2630.c8ff7541.chunk.css +0 -2
  118. package/build/static/css/2716.730daeea.chunk.css +0 -2
  119. package/build/static/css/5422.a9226ff3.chunk.css +0 -2
  120. package/build/static/css/5422.a9226ff3.chunk.css.map +0 -1
  121. package/build/static/css/6980.5f615080.chunk.css +0 -12
  122. package/build/static/css/6980.5f615080.chunk.css.map +0 -1
  123. package/build/static/css/7227.a609a53b.chunk.css +0 -2
  124. package/build/static/css/7277.43e0877f.chunk.css +0 -2
  125. package/build/static/css/7277.43e0877f.chunk.css.map +0 -1
  126. package/build/static/css/8278.dcdc5ce5.chunk.css +0 -2
  127. package/build/static/css/8278.dcdc5ce5.chunk.css.map +0 -1
  128. package/build/static/css/9119.198f95f9.chunk.css +0 -2
  129. package/build/static/css/9556.70c10c58.chunk.css +0 -2
  130. package/build/static/css/9772.39744849.chunk.css +0 -2
  131. package/build/static/css/9772.39744849.chunk.css.map +0 -1
  132. package/build/static/js/1248.6a5cb721.chunk.js +0 -3
  133. package/build/static/js/1248.6a5cb721.chunk.js.map +0 -1
  134. package/build/static/js/1725.bc60f755.chunk.js +0 -2
  135. package/build/static/js/1725.bc60f755.chunk.js.map +0 -1
  136. package/build/static/js/1996.ba86de26.chunk.js +0 -2
  137. package/build/static/js/224.8fd4d377.chunk.js +0 -2
  138. package/build/static/js/224.8fd4d377.chunk.js.map +0 -1
  139. package/build/static/js/2309.08afbe99.chunk.js +0 -2
  140. package/build/static/js/2309.08afbe99.chunk.js.map +0 -1
  141. package/build/static/js/2630.c1b591c9.chunk.js +0 -2
  142. package/build/static/js/2630.c1b591c9.chunk.js.map +0 -1
  143. package/build/static/js/2716.b7eeeeaa.chunk.js +0 -3
  144. package/build/static/js/2716.b7eeeeaa.chunk.js.map +0 -1
  145. package/build/static/js/3771.98136f4e.chunk.js +0 -2
  146. package/build/static/js/3856.18a1b0df.chunk.js +0 -2
  147. package/build/static/js/4106.30718fc6.chunk.js +0 -2
  148. package/build/static/js/4106.30718fc6.chunk.js.map +0 -1
  149. package/build/static/js/4277.5c5101a6.chunk.js +0 -2
  150. package/build/static/js/4277.5c5101a6.chunk.js.map +0 -1
  151. package/build/static/js/4474.ae434135.chunk.js +0 -2
  152. package/build/static/js/4474.ae434135.chunk.js.map +0 -1
  153. package/build/static/js/6183.8683d370.chunk.js.map +0 -1
  154. package/build/static/js/6763.b9d2f7ca.chunk.js +0 -2
  155. package/build/static/js/6980.004468cd.chunk.js +0 -2
  156. package/build/static/js/6980.004468cd.chunk.js.map +0 -1
  157. package/build/static/js/7277.43ab853a.chunk.js +0 -2
  158. package/build/static/js/7277.43ab853a.chunk.js.map +0 -1
  159. package/build/static/js/8278.c3aac300.chunk.js +0 -2
  160. package/build/static/js/8278.c3aac300.chunk.js.map +0 -1
  161. package/build/static/js/8593.ac77eba5.chunk.js +0 -2
  162. package/build/static/js/9119.d0b077e7.chunk.js +0 -2
  163. package/build/static/js/9119.d0b077e7.chunk.js.map +0 -1
  164. package/build/static/js/9556.8077800b.chunk.js +0 -3
  165. package/build/static/js/9556.8077800b.chunk.js.map +0 -1
  166. package/build/static/js/9772.d9c4284f.chunk.js +0 -2
  167. package/build/static/js/9772.d9c4284f.chunk.js.map +0 -1
  168. package/build/static/js/main.6c9b4111.js +0 -2
  169. package/build/static/js/main.6c9b4111.js.map +0 -1
  170. /package/build/static/js/{1248.6a5cb721.chunk.js.LICENSE.txt → 1248.e04383c7.chunk.js.LICENSE.txt} +0 -0
  171. /package/build/static/js/{2716.b7eeeeaa.chunk.js.LICENSE.txt → 2716.db48e70e.chunk.js.LICENSE.txt} +0 -0
  172. /package/build/static/js/{7227.d0c93f45.chunk.js.LICENSE.txt → 7227.2044244e.chunk.js.LICENSE.txt} +0 -0
  173. /package/build/static/js/{9556.8077800b.chunk.js.LICENSE.txt → 9556.283ac73f.chunk.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[4671,7277],{3870:()=>{function e(e){if((e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this[e]}const t=Reflect.getPrototypeOf(Int8Array);for(const n of[Array,String,t])Object.defineProperty(n.prototype,"at",{value:e,writable:!0,enumerable:!1,configurable:!0})},25963:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppDrawer:()=>V,DrawerButton:()=>Z,default:()=>q,useDrawer:()=>U});var o=n(20454),l=n(89379),r=n(53986),a=n(55199),s=n(83136),c=n.n(s);const i="style_drawer__hA8bn__-vnKV",d="style_drawer-outer__vuEIf__-vnKV",u="style_drawer-title__71eaW__-vnKV",m="style_drawer-body__frw9I__-vnKV",p="style_is-disabled-scroller__ZsITw__-vnKV",_="style_drawer-body-inner__lci9Z__-vnKV",h="style_drawer-footer__1g8o1__-vnKV",f="style_drawer-close__bpxnp__-vnKV",g=e=>({"en-US":()=>n.e(3172).then(n.bind(n,23172)),"zh-CN":()=>n.e(5254).then(n.bind(n,95254))}[e]());var b=n(47458),v=n(73884);const y=()=>{const[e,t]=v.useState([]);return[e,v.useCallback((e=>(t((t=>[...t,e])),()=>{t((t=>t.filter((t=>t!==e))))})),[])]};var C=n(70579);const x=v.forwardRef(((e,t)=>{let{config:n}=e;const[o,r]=v.useState(!0),[s,c]=v.useState(n),i=function(){r(!1);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=t.some((e=>e&&e.triggerCancel));s.onClose&&o&&s.onClose((()=>{}),...t.slice(1))};return v.useImperativeHandle(t,(()=>({destroy:i,update:e=>{c((t=>(0,l.A)((0,l.A)({},t),e)))}}))),(0,C.jsx)(a.Drawer,(0,l.A)((0,l.A)({},s),{},{ref:t,open:o,onClose:i}))}));let w=0;function A(e){return(0,l.A)({},e)}const j=[],k=(0,v.memo)((0,v.forwardRef)(((e,t)=>{const[n,o]=y();return(0,v.useImperativeHandle)(t,(()=>({patchElement:o})),[o]),(0,C.jsx)(C.Fragment,{children:n})})));const P=function(){const e=(0,v.useRef)(null),[t,n]=(0,v.useState)([]);(0,v.useEffect)((()=>{if(t.length){[...t].forEach((e=>{e()})),n([])}}),[t]);const o=(0,v.useCallback)((t=>function(o){var l;w+=1;const r=(0,v.createRef)();let a=()=>{};const s=(0,C.jsx)(x,{config:t(o),ref:r,afterClose:()=>{var e;null===(e=a)||void 0===e||e()}},"drawer-".concat(w));return a=null===(l=e.current)||void 0===l?void 0:l.patchElement(s),a&&j.push(a),{destroy:()=>{function e(){var e;null===(e=r.current)||void 0===e||e.destroy()}r.current?e():n((t=>[...t,e]))},update:e=>{function t(){var t;null===(t=r.current)||void 0===t||t.update(e)}r.current?t():n((e=>[...e,t]))}}}),[]);return[(0,v.useMemo)((()=>o(A)),[o]),(0,C.jsx)(k,{ref:e},"drawer-holder")]},K=(0,v.createContext)({}),{Provider:N}=K,S=e=>{const{children:t}=e,[n,o]=P(),l=(0,v.useMemo)((()=>({drawer:n})),[n]);return(0,C.jsx)(N,{value:l,children:(0,C.jsxs)("div",{children:[o,t]})})};S.useAppDrawer=()=>(0,v.useContext)(K);const V=S;var R=n(81014),G=n(71298),L=n.n(G),E=n(64671);const M=["ButtonComponent","onClick","autoClose"],I=["children","footer","footerButtons","className","size","title","onClose","onConfirm","onCancel","closable","disabledScroller","withDecorator"],B=(e,t)=>"function"===typeof e?e(t):e,D=e=>{let{footer:t,footerButtons:n,onConfirm:o,onCancel:s,onClose:c}=e;return(0,C.jsxs)(a.Row,{gutter:10,wrap:!1,children:[(0,C.jsx)(a.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,C.jsx)(a.Col,{children:(0,C.jsx)(a.Space,{children:(n||[{children:"\u53d6\u6d88",onClick:s},{type:"primary",children:"\u786e\u5b9a",onClick:o}]).map(((e,t)=>{let{ButtonComponent:n,onClick:o,autoClose:a=!0}=e,s=(0,r.A)(e,M);const i=n||R.default;return(0,v.createElement)(i,(0,l.A)((0,l.A)({},s),{},{key:t,onClick:async function(){const e=await Promise.resolve(o&&o(...arguments));return a&&!1!==e&&c&&c(),e}}))}))})})]})},O=e=>{let{title:t,footer:n,disabledScroller:o,footerButtons:l,onClose:r,closable:s,onConfirm:i,onCancel:g,children:b}=e;const y=(0,v.useRef)(null);return(0,v.useEffect)((()=>{!o&&new(L())(y.current)}),[o]),(0,C.jsxs)("div",{className:d,"data-testid":"components-core-drawer",children:[!1===s?null:(0,C.jsx)(a.Button,{"data-testid":"components-core-drawer-close-btn",className:c()(f,"drawer-close"),type:"text",icon:(0,C.jsx)(E.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),r&&r()}}),t&&(0,C.jsx)("div",{className:c()(u,"drawer-title"),children:t}),(0,C.jsx)("div",{className:c()(m,"drawer-body",{[p]:o}),ref:y,children:(0,C.jsx)("div",{className:c()(_,"drawer-body-inner"),children:b})}),null!==n||l?(0,C.jsx)("div",{className:c()(h,"drawer-footer"),children:(0,C.jsx)(D,{footer:n,footerButtons:l,onConfirm:i,onCancel:g,onClose:r})}):null]})},T=e=>{let{withDecorator:t,footerButtons:n,title:o,closable:r,onClose:a,onConfirm:s,onCancel:c,footer:i,disabledScroller:d,children:u}=e;const m=e=>(e=Object.assign({},e),(0,C.jsx)(O,{title:o,closable:r,onClose:a,onConfirm:s,onCancel:c,footerButtons:B(n,(0,l.A)((0,l.A)({},e),{},{close:a})),disabledScroller:d,footer:B(i,(0,l.A)((0,l.A)({},e),{},{close:a})),children:B(u,(0,l.A)((0,l.A)({},e),{},{close:a}))}));return"function"===typeof t?t(m):m({})},F=e=>{let{children:t,footer:n,footerButtons:o,className:a,size:s,title:d,onClose:u,onConfirm:m,onCancel:p,closable:_,disabledScroller:h,withDecorator:f}=e,v=(0,r.A)(e,I);return(0,l.A)((0,l.A)((0,l.A)({},v),{},{icon:null,title:null,maskClosable:!!v.hasOwnProperty("maskClosable")&&v.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:u,className:c()(a,i)},"large"===(y=s)?{width:"calc(100vw - 64px)"}:"small"===y?{width:"600px"}:{width:"1000px"}),{},{children:(0,C.jsx)(b.IntlProvider,{importMessages:g,moduleName:"Drawer",children:T({withDecorator:f,title:d,closable:_,onClose:u,onConfirm:m,onCancel:p,footer:n,footerButtons:o,disabledScroller:h,children:t})})});var y},z=e=>(0,C.jsx)(a.Drawer,(0,l.A)({},F(e)));z.defaultProps={size:"small"};const U=()=>{const{drawer:e}=V.useAppDrawer();return t=>{const n={},r=F((0,l.A)({onClose:()=>n.close()},t)),a=Object.assign({},((0,o.A)(r),r)),{destroy:s}=e((0,l.A)({},a));return n.close=s,n}},q=z;var W=n(73025);const Z=e=>{const t=U();return(0,C.jsx)(W.A,(0,l.A)((0,l.A)({},e),{},{modalFunc:t}))}},47458:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FormattedMessage:()=>x,IntlProvider:()=>C,createWithIntl:()=>A,createWithLocale:()=>b,default:()=>j,useIntl:()=>w});var o=n(89379),l=n(53986),r=n(87558),a=n.n(r),s=n(61032),c=n(63908),i=n(73884),d=n(34677),u=n.n(d),m=n(22717),p=n.n(m),_=n(33097),h=n.n(_),f=n(70579);const g=new Map,b=e=>{let{moduleName:t,importMessages:n}=e;return e=>(0,i.forwardRef)(((l,r)=>{const{global:s}=(0,c.useGlobalContext)("locale"),i=s||"zh-CN";return(0,f.jsx)(a(),{params:{locale:i},loader:e=>{let{params:o}=e;const{locale:l}=o,r="".concat(t,"_").concat(l);return g.has(r)?g.get(r):Promise.resolve(n(l)).then((e=>{let{default:t}=e;return g.set(r,t),t}))},render:t=>{let{data:n}=t;return(0,f.jsx)(e,(0,o.A)((0,o.A)({},l),{},{locale:n,ref:r}))}})}))},v=["id","moduleName","children"],y=(0,r.withFetch)((e=>{let{children:t,data:n,locale:o}=e;return(0,f.jsx)(s.IntlProvider,{locale:o,messages:n,children:t})})),C=e=>{let{locale:t,importMessages:n=()=>({}),moduleName:o="Global",children:l}=e;const{global:{localMessageRef:r,locale:a}}=(0,c.useGlobalContext)(),s=t||a||"zh-CN";return(0,f.jsx)(y,{locale:s,params:{locale:s},loader:e=>{let{params:t}=e;const{locale:l}=t;return Promise.resolve(n(l)).then((e=>{let{default:t}=e;const n=u()({},r.current,p()(t,((e,t,n)=>{e["".concat(o,"_").concat(n)]=t})));return r.current=n,n}))},children:l})},x=e=>{let{id:t,moduleName:n="Global",children:r}=e,a=(0,l.A)(e,v);const c="".concat(n,"_").concat(t);return"function"===typeof r?(0,f.jsx)(s.FormattedMessage,(0,o.A)((0,o.A)({},a),{},{id:c,children:e=>r(e&&e.join(""))})):(0,f.jsx)(s.FormattedMessage,(0,o.A)((0,o.A)({},a),{},{id:c}))},w=e=>{let t=h()(e,"moduleName")||"Global";const{formatMessage:n}=(0,s.useIntl)(),o=(0,i.useCallback)(((e,o)=>(e.id="".concat(t,"_").concat(e.id),n(e,o))),[t,n]);return{formatMessage:o}},A=e=>{let{importMessages:t,moduleName:n}=e;return e=>(0,i.forwardRef)(((l,r)=>(0,f.jsx)(C,{importMessages:t,moduleName:n,children:(0,f.jsx)(e,(0,o.A)((0,o.A)({},l),{},{ref:r}))})))},j=x},63908:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GetGlobal:()=>Z,GlobalInfo:()=>H,GlobalProvider:()=>z,PureGlobal:()=>U,SetGlobal:()=>W,default:()=>J,useGlobalContext:()=>q,usePreset:()=>c.usePreset});var o=n(89379),l=n(53986),r=(n(3870),n(21683),n(83136)),a=n.n(r),s=n(83694),c=n(9206),i=n(55199),d=n(73884),u=n(71298),m=n.n(u),p=n(36755),_=n(76801);const h=()=>/iPhone|iPod|Android|ios|iPad/i.test(navigator.userAgent);var f=n(87558),g=n.n(f),b=n(57469),v=n.n(b),y=n(52526);const C=e=>{let{params:t}=e;const{locale:o}=t;return{"en-US":async()=>(await n.e(3513).then(n.t.bind(n,33513,23)),v().locale("en"),await n.e(2397).then(n.t.bind(n,62397,23)).then((e=>{(0,y.localeLoader)("en-US",e.default,"button-group")})),await n.e(9808).then(n.t.bind(n,79808,23)).then((e=>{(0,y.localeLoader)("en-US",e.default,"phone-number-input")})),await n.e(8670).then(n.t.bind(n,78670,23)).then((e=>{(0,y.localeLoader)("en-US",e.default,"scroll-loader")})),await n.e(9223).then(n.t.bind(n,99223,23)).then((e=>{(0,y.localeLoader)("en-US",e.default,"react-file")})),await n.e(7451).then(n.bind(n,47451)).then((e=>e.default))),"zh-CN":async()=>(await n.e(6484).then(n.t.bind(n,76484,23)),v().locale("zh-cn"),await n.e(1873).then(n.bind(n,91873)).then((e=>e.default)))}[o]()},x={container:"style_container__k+uRt__-vnKV","is-not-init":"style_is-not-init__BZN0v__-vnKV","loading-rotate":"style_loading-rotate__kLLHV__-vnKV",total_text:"style_total_text__oNKMr__-vnKV","ant-pagination":"style_ant-pagination__4LRg7__-vnKV","ant-pagination-total-text":"style_ant-pagination-total-text__8HE6P__-vnKV","ant-pagination-options":"style_ant-pagination-options__mp-tz__-vnKV","ant-select-single":"style_ant-select-single__mL6Zt__-vnKV","ant-select-selector":"style_ant-select-selector__+111I__-vnKV","ant-select-selection-item":"style_ant-select-selection-item__RA3PX__-vnKV","ant-select-selection-placeholder":"style_ant-select-selection-placeholder__CmaPV__-vnKV","ant-pagination-options-quick-jumper":"style_ant-pagination-options-quick-jumper__ruQ4y__-vnKV","ant-pagination-item":"style_ant-pagination-item__i8udA__-vnKV","ant-pagination-prev":"style_ant-pagination-prev__d03DI__-vnKV","ant-pagination-next":"style_ant-pagination-next__lreJT__-vnKV","ant-pagination-item-link":"style_ant-pagination-item-link__qPOiQ__-vnKV","ant-pagination-jump-prev":"style_ant-pagination-jump-prev__Cdgxu__-vnKV","ant-pagination-jump-next":"style_ant-pagination-jump-next__vZW63__-vnKV","ant-pagination-item-active":"style_ant-pagination-item-active__uUJBI__-vnKV"};var w=n(33097),A=n.n(w),j=n(25963),k=n(64671),P=n(96418),K=n.n(P),N=n(22717),S=n.n(N),V=n(96604),R=n.n(V),G=n(25806),L=n.n(G),E=n(13050),M=n(70579);const I=["colorPrimary","components"],B=["preset","children","themeToken","init"],D=["children"],O=["children","className"];document.body.classList.add(x.container),h()||window.__COMPONENTS_CORE_SIMPLE_BAR_DISABLED?document.body.classList.add("simplebar-content-wrapper"):(new(m())(document.body),(0,_.h)().classList.add(x.container));const T=(0,f.withFetch)((e=>{let{data:t,themeToken:n={colorPrimary:"#4096ff"},children:o}=e;const[r,a]=(0,d.useState)(!1),s=Object.assign({},n),{colorPrimary:c,components:u}=s,m=(0,l.A)(s,I);return(0,d.useEffect)((()=>{let e=document.head.querySelector("#component-core-theme");e||(e=document.createElement("style"),e.id="component-core-theme",document.head.appendChild(e));const t=L()(c),n={"--primary-color":c,"--primary-color-red":t.red(),"--primary-color-green":t.green(),"--primary-color-blue":t.blue(),"--primary-color-06":t.alpha(.06).string()};return R()(0,10).forEach((e=>{n["--primary-color-".concat(e+1)]=t.alpha((e+1)/10).string()})),e.textContent=".".concat(x.container.replace(/\+/g,"\\+").replace(/\//g,"\\/"),"{").concat(S()(n,((e,t,n)=>{e.push("".concat(n,":").concat(t,";"))}),[]).join(""),"}"),a(!0),()=>{}}),[c]),r?(0,M.jsx)(i.ConfigProvider,{getTargetContainer:_.h,getPopupContainer:_.h,locale:t,wave:{disabled:!0},autoInsertSpace:!1,theme:{components:u,token:Object.assign({},{colorError:"#f53f3f",colorInfo:"#165dff",colorSuccess:"#00b42a",colorWarning:"#ff7d00",algorithm:m.isDark?i.theme.darkAlgorithm:i.theme.defaultAlgorithm,colorPrimary:c,colorLink:c,colorTextBase:"#222222",colorText:"#222222"},m)},children:o}):null})),F=(0,E.createWithRemoteLoader)({modules:["components-iconfont:Font@path","components-iconfont:ColorfulFont@path"]})((e=>{let{remoteModules:t}=e;const[n,o]=t;return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(k.FontLoader,{path:"".concat(n,"/iconfont.css")}),(0,M.jsx)(k.FontLoader,{path:"".concat(o,"/iconfont.js")})]})})),z=e=>{let{preset:t={locale:"zh-CN",apis:{}},children:n,themeToken:r,init:a}=e,u=(0,l.A)(e,B);const m=A()(t,"locale","zh-CN"),p=(0,d.useRef)({}),_=(0,d.useRef)(new Map),[h,f]=(0,d.useState)(Object.assign({themeToken:r,localMessageRef:p,enumsRef:_,locale:m},A()(t,"global")));return(0,M.jsx)(s.Provider,{value:(0,o.A)((0,o.A)({},u),{},{preset:t,locale:m,global:h,setGlobal:f}),children:(0,M.jsx)(c.Provider,{value:t,children:(0,M.jsxs)(T,{loader:C,params:{locale:h.locale},themeToken:h.themeToken,children:[(0,M.jsx)(i.App,{message:{top:100},children:(0,M.jsx)(j.AppDrawer,{children:"function"===typeof a?(0,M.jsx)(g(),{loader:()=>a({preset:t,global:h,setGlobal:f}),render:()=>n}):n})}),(0,M.jsx)(F,{})]})})})},U=e=>{let{children:t}=e,n=(0,l.A)(e,D);const{global:r}=q("themeToken");return(0,M.jsx)(z,(0,o.A)((0,o.A)({},n),{},{themeToken:n.themeToken||r,children:(0,M.jsx)("div",{"data-testid":"components-core-pure-global",className:a()(x.container,"core-container-body"),children:t})}))},q=e=>{const t=(0,s.useGlobalContext)();return Object.assign({global:{},setGlobal:()=>{console.warn("\u8c03\u7528setGlobal\u7684\u7ec4\u4ef6\u5e94\u8be5\u88ab\u653e\u7f6e\u5728Global\u4e0a\u4e0b\u6587\u4e2d")}},t,e?{global:A()(t.global,e),setGlobal:n=>{t.setGlobal("function"===typeof n?t=>Object.assign({},t,{[e]:n(A()(t,e))}):Object.assign({},t.global,{[e]:n}))}}:{})},W=e=>{let{globalKey:t,value:n,needReady:o,children:l}=e;const{global:r,setGlobal:a}=q(t),s=K()(a);return(0,d.useEffect)((()=>{s(n)}),[n,s]),o&&!r?null:l},Z=e=>{let{globalKey:t,children:n}=e;const{global:o}=q(t);return n({value:o})},H=e=>{let{globalKey:t,value:n,needReady:o,children:l}=e;const{global:r,setGlobal:a}=q(t),s=K()(a);return(0,d.useEffect)((()=>{s(n)}),[n,s]),o&&!r?null:l({global:r,setGlobal:a})},J=e=>{let{children:t,className:n}=e,r=(0,l.A)(e,O);return(0,M.jsx)(p.A,{errorRender:()=>(0,M.jsx)(i.Result,{status:"500",title:"500",subTitle:"\u7a0b\u5e8f\u51fa\u73b0\u5f02\u5e38\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5"}),children:(0,M.jsx)(z,(0,o.A)((0,o.A)({},r),{},{children:(0,M.jsx)("div",{"data-testid":"components-core-global",className:a()(x.container,"container-body",n),children:t})}))})}},64671:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l.a});var o=n(48781),l=n.n(o),r={};for(const a in o)"default"!==a&&(r[a]=()=>o[a]);n.d(t,r)},73025:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var o=n(89379),l=n(53986),r=n(73884),a=n(87558),s=n(96418),c=n.n(s),i=n(55199),d=n(70579);const u=["api","modalProps","modalFunc","onError"],m=e=>{let{api:t,modalProps:n,modalFunc:s,onError:m}=e,p=(0,l.A)(e,u);const _=(0,a.useFetch)(Object.assign({},t,{auto:!1})),{isLoading:h,data:f,error:g,refresh:b}=_,v=c()(m),y=c()((()=>{const e=s("function"===typeof n?n({data:f,fetchApi:_,close:()=>{e.close()}}):n)}));return(0,r.useEffect)((()=>{h||(g?v(g):f&&y())}),[h,g,f,y,v]),(0,d.jsx)(i.Button,(0,o.A)((0,o.A)({},p),{},{loading:h,onClick:()=>{b({onSuccess:()=>{}})}}))};m.defaultProps={modalProps:{}};const p=m},76801:(e,t,n)=>{"use strict";n.d(t,{c:()=>l,h:()=>o});const o=()=>document.querySelector(".simplebar-content-wrapper"),l=()=>document.querySelector(".container-body")},81014:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o.LoadingButton,useLoading:()=>o.useLoading});n(9056);var o=n(24103)}}]);
2
- //# sourceMappingURL=7277.43ab853a.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/js/7277.43ab853a.chunk.js","mappings":"qIAAA,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,MAmBA,EAnBwBG,KACtB,MAAOC,EAAUC,GAAeC,EAAAA,SAAe,IAe/C,MAAO,CAACF,EAbaE,EAAAA,aAAmBC,IAEtCF,GAAaG,GAAmB,IAAIA,EAAgBD,KAI7C,KACLF,G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AAI,MAAEgI,EAAK,QAAEC,GAAYL,EACtCM,EAAenB,IAAeY,GAC9BQ,EAAmBpB,KAAe,KACtC,MAAMqB,EAAWrJ,EACO,oBAAf2I,EACHA,EAAW,CACT1H,OACA4H,WACApR,MAAOA,KACL4R,EAAS5R,WAGbkR,MAgBR,OAbAjP,EAAAA,EAAAA,YAAU,KACJsP,IAGAC,EACFE,EAAaF,GAGVhI,GAGLmI,OACC,CAACJ,EAAWC,EAAOhI,EAAMmI,EAAkBD,KAE5C3Q,EAAAA,EAAAA,KAAC2F,EAAAA,QAAM5F,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACDK,GAAK,IACT0Q,QAASN,EACTvM,QAASA,KACPyM,EAAQ,CACNK,UAAWA,cAOrBxJ,EAAYL,aAAe,CACzBiJ,WAAY,CAAC,GAGf,S,wDCpDO,MAAMrF,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","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__-vnKV\",\"drawer-outer\":\"style_drawer-outer__vuEIf__-vnKV\",\"drawer-title\":\"style_drawer-title__71eaW__-vnKV\",\"drawer-body\":\"style_drawer-body__frw9I__-vnKV\",\"is-disabled-scroller\":\"style_is-disabled-scroller__ZsITw__-vnKV\",\"drawer-body-inner\":\"style_drawer-body-inner__lci9Z__-vnKV\",\"drawer-footer\":\"style_drawer-footer__1g8o1__-vnKV\",\"drawer-close\":\"style_drawer-close__bpxnp__-vnKV\"};","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 * as React from \"react\";\n\nconst usePatchElement = () => {\n const [elements, setElements] = React.useState([]);\n\n const patchElement = React.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) =>\n originElements.filter((ele) => ele !== element)\n );\n };\n }, []);\n\n return [elements, patchElement];\n};\n\nexport default usePatchElement;\n","import * as React from \"react\";\nimport { Drawer } from \"antd\";\n\nconst HookDrawer = ({ config }, ref) => {\n const [open, setOpen] = React.useState(true);\n const [innerConfig, setInnerConfig] = React.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(() => {}, ...args.slice(1));\n }\n };\n\n React.useImperativeHandle(ref, () => ({\n destroy: close,\n update: (newConfig) => {\n setInnerConfig((originConfig) => ({\n ...originConfig,\n ...newConfig,\n }));\n },\n }));\n\n return <Drawer {...innerConfig} ref={ref} open={open} onClose={close} />;\n};\n\nexport default React.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 (\n <Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (\n <Col>\n <Space>\n {(\n footerButtons || [\n { children: \"取消\", onClick: onCancel },\n {\n type: \"primary\",\n children: \"确定\",\n onClick: onConfirm,\n },\n ]\n ).map(\n (\n { ButtonComponent, onClick, autoClose = true, ...props },\n index\n ) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (\n <CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(\n onClick && onClick(...args)\n );\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />\n );\n }\n )}\n </Space>\n </Col>\n )}\n </Row>\n );\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 (\n <div className={style[\"drawer-outer\"]} data-testid=\"components-core-drawer\">\n {closable === false ? null : (\n <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 )}\n {title && (\n <div className={classnames(style[\"drawer-title\"], \"drawer-title\")}>\n {title}\n </div>\n )}\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(\n style[\"drawer-body-inner\"],\n \"drawer-body-inner\"\n )}\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 )}\n </div>\n );\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 (\n <DrawerOuter\n title={title}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props,\n close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, { ...props, close: onClose })}\n >\n {renderWithOptions(children, {\n ...props,\n close: onClose,\n })}\n </DrawerOuter>\n );\n };\n return typeof withDecorator === \"function\"\n ? withDecorator(getInner)\n : 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\")\n ? props.maskClosable\n : false,\n destroyOnClose: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"drawer\"]),\n ...sizeMap(size),\n children: (\n <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};\n\nconst Drawer = (props) => {\n return <AntdDrawer {...computedCommonProps(props)} />;\n};\n\nDrawer.defaultProps = {\n size: \"small\",\n};\n\nexport const useDrawer = () => {\n const { drawer } = AppDrawer.useAppDrawer();\n return (props) => {\n const api = {};\n const { ...otherProps } = computedCommonProps({\n onClose: () => api.close(),\n ...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","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__-vnKV\",\"is-not-init\":\"style_is-not-init__BZN0v__-vnKV\",\"loading-rotate\":\"style_loading-rotate__kLLHV__-vnKV\",\"total_text\":\"style_total_text__oNKMr__-vnKV\",\"ant-pagination\":\"style_ant-pagination__4LRg7__-vnKV\",\"ant-pagination-total-text\":\"style_ant-pagination-total-text__8HE6P__-vnKV\",\"ant-pagination-options\":\"style_ant-pagination-options__mp-tz__-vnKV\",\"ant-select-single\":\"style_ant-select-single__mL6Zt__-vnKV\",\"ant-select-selector\":\"style_ant-select-selector__+111I__-vnKV\",\"ant-select-selection-item\":\"style_ant-select-selection-item__RA3PX__-vnKV\",\"ant-select-selection-placeholder\":\"style_ant-select-selection-placeholder__CmaPV__-vnKV\",\"ant-pagination-options-quick-jumper\":\"style_ant-pagination-options-quick-jumper__ruQ4y__-vnKV\",\"ant-pagination-item\":\"style_ant-pagination-item__i8udA__-vnKV\",\"ant-pagination-prev\":\"style_ant-pagination-prev__d03DI__-vnKV\",\"ant-pagination-next\":\"style_ant-pagination-next__lreJT__-vnKV\",\"ant-pagination-item-link\":\"style_ant-pagination-item-link__qPOiQ__-vnKV\",\"ant-pagination-jump-prev\":\"style_ant-pagination-jump-prev__Cdgxu__-vnKV\",\"ant-pagination-jump-next\":\"style_ant-pagination-jump-next__vZW63__-vnKV\",\"ant-pagination-item-active\":\"style_ant-pagination-item-active__uUJBI__-vnKV\"};","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 \"@kne/global-preset\";\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\";\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\n useEffect(() => {\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\n useEffect(() => {\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(\n typeof modalProps === \"function\"\n ? modalProps({\n data,\n fetchApi,\n close: () => {\n modalApi.close();\n },\n })\n : modalProps\n );\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 (\n <Button\n {...props}\n loading={isLoading}\n onClick={() => {\n refresh({\n onSuccess: () => {},\n });\n }}\n />\n );\n};\n\nFetchButton.defaultProps = {\n modalProps: {},\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","React","element","originElements","filter","ele","HookDrawer","_ref","ref","config","open","setOpen","innerConfig","setInnerConfig","close","_len","arguments","args","_key","triggerCancel","some","param","onClose","slice","destroy","update","newConfig","originConfig","_objectSpread","_jsx","Drawer","uuid","withConfirm","props","destroyFns","ElementsHolder","memo","forwardRef","patchElement","useImperativeHandle","_Fragment","children","holderRef","useRef","actionQueue","setActionQueue","useState","useEffect","forEach","action","getConfirmFunc","useCallback","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","destroyOnClose","width","IntlProvider","importMessages","moduleName","AntdDrawer","defaultProps","api","_computedCommonProps","otherProps","_objectDestructuringEmpty","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","_ref6","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","preset","apis","init","enumsRef","setGlobal","PresetProvider","loadAntdLocale","App","top","PureGlobal","_excluded3","globalKey","contextValue","console","warn","SetGlobal","needReady","setGlobalHandler","useRefCallback","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,2 +0,0 @@
1
- (self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[330,8278],{330:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var r=n(29871),s=n.n(r),a={};for(const o in r)"default"!==o&&(a[o]=()=>r[o]);n.d(t,a),s().Fetch=r.FlexBoxFetch;const l=s()},1904:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,N:()=>c});var r=n(98434),s=n(43856);const{useOnChange:a,useDecorator:l}=r.hooks,o=e=>a(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(s.AddressSelectField);o.Field=s.AddressSelectField,o.AddressEnum=s.AddressSelectField.AddressEnum,o.createAddressApi=s.AddressSelectField.createAddressApi,o.withAddressApi=s.AddressSelectField.withAddressApi;const i=o,c=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label,inputPlaceholder:"\u8bf7\u8f93\u5165"+e.label},e))(s.AddressInputField);c.Field=s.AddressInputField},2196:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(53986),s=n(55199),a=n(73884),l=n(41381),o=n(330),i=n(83560),c=n(47094),d=n(83136),u=n.n(d),p=n(70579);const m=["list","groupArgs","column","gap","className","outer"],h=e=>{let{list:t,groupArgs:n,column:l,gap:d,className:h,outer:f}=e,g=(0,r.A)(e,m);const A=!(Number.isInteger(l)&&l>0),{ref:x,column:_}=(0,o.useFlexBox)(A?l:{}),v=(e,r)=>(0,p.jsx)(s.Row,{gutter:[d||24,0],className:u()({[c.A["column-not-layout"]]:r}),children:(0,p.jsx)(i.A,{list:t,groupArgs:n,itemRender:(t,n)=>(0,p.jsx)(s.Col,{span:!0===n.block?24:Math.round(24/(e||1)),children:t})})});return(0,a.cloneElement)(f,Object.assign({},g,{className:u()(h,c.A["form-info"])}),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{ref:x}),A?_?v(_.col):v(2,!0):v(l)]}))};h.defaultProps={column:2,list:[],outer:(0,p.jsx)(l.default.Part,{})};const f=h},2842:(e,t,n)=>{"use strict";n.d(t,{default:()=>s.a});n(2885);var r=n(22986),s=n.n(r);n.o(r,"PHONE_NUMBER_INPUT")&&n.d(t,{PHONE_NUMBER_INPUT:function(){return r.PHONE_NUMBER_INPUT}})},2885:()=>{},5995:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>m,Vl:()=>h,W6:()=>f});var r=n(53986),s=n(89379),a=n(3382),l=n(73025),o=n(55199),i=n(76995),c=n(47094),d=n(70579);const u=["classNames"],p=["modalProps"],m=e=>(0,d.jsx)(a.default,(0,s.A)({},(0,i.A)(Object.assign({},e,{className:c.A["form-modal"]})))),h=()=>{const e=(0,a.useModal)();return t=>e((0,i.A)(Object.assign({},t,{className:c.A["form-modal"]})))},f=e=>{let{classNames:t}=e,n=(0,r.A)(e,u);const a=h();if(!n.api){const{modalProps:e}=n,t=(0,r.A)(n,p);return(0,d.jsx)(o.Button,(0,s.A)((0,s.A)({},t),{},{onClick:()=>{a(e)}}))}return(0,d.jsx)(l.A,(0,s.A)((0,s.A)({},n),{},{modalFunc:a}))}},15209:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(53986),s=n(89379),a=n(20454),l=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,a.A)(e),e));const[n,r]=i()(t);return(0,d.jsx)(l.Input,(0,s.A)((0,s.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[s]=t,{hooks:a}=s,{useDecorator:l}=a;return l(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(n.label||"")},n))(p)}));m.field=p;const h=m},17448:()=>{},18936:(e,t,n)=>{"use strict";n.d(t,{A:()=>D});var r=n(89379),s=n(53986);const a={"ant-tag":"style_ant-tag__7ct2q__-vnKV",overlay:"style_overlay__CXfU5__-vnKV",input:"style_input__+OpvV__-vnKV","is-disabled":"style_is-disabled__uX4qq__-vnKV","input-icon":"style_input-icon__E3NjK__-vnKV",large:"style_large__vMozz__-vnKV",small:"style_small__ubqQ+__-vnKV","input-inner":"style_input-inner__sY-6k__-vnKV","input-custom":"style_input-custom__Kxq3n__-vnKV","display-content":"style_display-content__qA1jn__-vnKV","overlay-footer-extra":"style_overlay-footer-extra__yCzWX__-vnKV","selected-tag":"style_selected-tag__BZsMM__-vnKV","selected-tag-list":"style_selected-tag-list__As0ho__-vnKV","selected-tag-inner":"style_selected-tag-inner__2NH59__-vnKV","text-inner":"style_text-inner__Bq2Ji__-vnKV",placeholder:"style_placeholder__odotY__-vnKV","is-modal":"style_is-modal__4cj8L__-vnKV","overlay-content":"style_overlay-content__kpGRn__-vnKV"};var l=n(74981);const{context:o,useContext:i,Provider:c,Consumer:d}=(0,l.A)();var u=n(73884),p=n(10986),m=n.n(p),h=n(87558),f=n(33097),g=n.n(f),A=n(55199),x=n(83136),_=n.n(x),v=n(3382),y=n(64671),j=n(79686),b=n.n(j),N=n(41740),C=n.n(N),S=n(74065),w=n.n(S),F=n(17342),I=n(70579);const P=["value","onChange","extra","showSelectedTag","renderSelectedContent","children"],M=["value","setValue","children","renderSelectedContent","showSelectedTag","placement","inputContent","single","extra","overlayWidth","wrapClassName"],k=["setFetchApi","wrapClassName"],T=["api","className","displayItems","wrapClassName"],O=e=>{let{maxLength:t,single:n,setValue:r,value:s,message:a}=e;return e=>r(!n&&Number.isInteger(t)&&t>0&&e.length>t?(a("\u6700\u591a\u9009\u62e9".concat(t,"\u4e2a")),s):e)},R=e=>{let{single:t,value:n,mapping:r,onClose:s}=e;return n&&Array.isArray(n)&&0!==n.length?t?(0,I.jsx)("span",{className:a["text-inner"],children:g()(r.get(n[0]),"label")||n[0]}):n.map((e=>{const t=r.get(e);return(0,I.jsx)(A.Tag,{className:a["display-tag"],closable:!0,onClose:n=>{n.preventDefault(),s(e,t)},children:(0,I.jsx)("span",{className:a["tag-inner"],children:g()(t,"label")||e})},e)})):null},E=(0,u.forwardRef)(((e,t)=>{let{value:n,onChange:l,extra:o,showSelectedTag:i,renderSelectedContent:c,children:d}=e,p=(0,s.A)(e,P);const[m,h]=(0,u.useState)(n),f=(0,u.useRef)(n);f.current=n;const[g,x]=(0,u.useState)(!1),{message:_}=A.App.useApp(),y=O({maxLength:p.maxLength,single:p.single,setValue:h,value:m,message:_.error});return(0,u.useEffect)((()=>{g&&h(f.current)}),[g]),(0,u.useImperativeHandle)(t,(()=>({modalOpen:()=>{x(!0)},close:()=>{x(!1)}}))),(0,I.jsx)(v.default,(0,r.A)((0,r.A)({},p),{},{open:g,onConfirm:()=>{l(m)},onClose:()=>{x(!1)},footer:(i||o)&&(0,I.jsxs)(A.Space,{direction:"vertical",className:a["overlay-footer"],children:[o&&(0,I.jsx)("div",{className:a["overlay-footer-extra"],children:o}),i&&c({value:m,setValue:y})]}),children:"function"===typeof d?d({value:m,setValue:y}):d}))})),L=(0,u.forwardRef)(((e,t)=>{let{value:n,setValue:l,children:o,renderSelectedContent:i,showSelectedTag:c,placement:d,inputContent:p,single:m,extra:h,overlayWidth:f,wrapClassName:g}=e,x=(0,s.A)(e,M);const[_,v]=(0,u.useState)(!1);return(0,u.useImperativeHandle)(t,(()=>({close:()=>{v(!1)}})),[]),(0,I.jsx)(A.Popover,(0,r.A)((0,r.A)({},x),{},{open:_,onOpenChange:v,overlayClassName:a.overlay,arrow:!1,content:(0,I.jsxs)("div",{style:f?{"--overlay-width":f}:{},className:a["overlay-content"],onClick:e=>{e.stopPropagation()},children:[(0,I.jsx)("div",{className:a["overlay-inner"],children:"function"===typeof o?o({value:n,setValue:e=>{(!m||n[0]!==e[0])&&l(e),m&&v(!1)}}):o}),(c||h)&&(0,I.jsxs)("div",{className:a["overlay-footer"],children:[h&&(0,I.jsx)("div",{className:a["overlay-footer-extra"],children:h}),c&&i({value:n,setValue:l})]})]}),trigger:"click",placement:d,children:(0,I.jsx)("div",{className:a["input-inner"],children:p})}))})),V=(0,h.withFetch)((e=>{let{setFetchApi:t,wrapClassName:n}=e,r=(0,s.A)(e,k);const[l,o]=(0,u.useState)(!1),c=(0,u.useRef)(null),d=(0,u.useRef)(null),p=i(),{valueState:m,mapping:h,props:f}=p,[g,x]=m,{single:v,placement:j,getPopupContainer:b,placeholder:N,isPopup:C,disabled:S,showSelectedTag:w,extra:P,inputContent:M}=f,T=(0,u.useRef)(r);T.current=r,(0,u.useEffect)((()=>{t(Object.assign({},T.current,{data:r.data,isComplete:r.isComplete}))}),[r.data,t,r.isComplete]);const O=R({single:v,value:g,mapping:h,onClose:e=>{x((t=>{const n=t.slice(0),r=t.indexOf(e);return r>-1&&n.splice(r,1),n}))}}),V=e=>{let{value:t,setValue:n}=e;return(0,I.jsxs)(A.Space,{className:a["selected-tag"],align:"center",wrap:!0,children:[(0,I.jsxs)("div",{children:["\u5df2\u9009",!f.single&&Number.isInteger(f.maxLength)&&f.maxLength>0?"(".concat(t.length,"/").concat(f.maxLength,")"):"",":"]}),(0,I.jsx)(F.A,{className:a["selected-tag-list"],children:(0,I.jsx)("div",{className:a["selected-tag-inner"],children:R({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}))}})})})]})},K=M?M(p):(0,I.jsxs)(A.Space,{className:a["display-content"],onMouseOver:()=>{o(!0)},onMouseOut:()=>{o(!1)},children:[(0,I.jsx)("div",{children:O||(0,I.jsx)("span",{className:a.placeholder,children:N})}),l&&g&&g.length>0&&!S?(0,I.jsx)(y.default,{className:_()(a.close,a["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),x([])}}):(0,I.jsx)(y.default,{className:_()(a["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return C?(0,I.jsx)(L,{ref:d,overlayWidth:f.overlayWidth,value:g,setValue:x,single:v,inputContent:K,extra:"function"===typeof P?P({close:()=>d.current.close(),context:p}):P,renderSelectedContent:V,showSelectedTag:w,trigger:"click",placement:j,getPopupContainer:b,children:f.children}):(0,I.jsxs)("div",{className:a["input-inner"],onClick:()=>{c.current.modalOpen()},children:[(0,I.jsx)(E,{size:f.modalSize,ref:c,single:f.single,maxLength:f.maxLength,disabledScroller:!0,wrapClassName:_()(a.overlay,a["is-modal"],n),title:f.placeholder,value:g,onChange:x,extra:"function"===typeof P?P({close:()=>c.current.close(),context:p}):P,showSelectedTag:w,renderSelectedContent:V,children:f.children}),K]})})),K=e=>{let{api:t,className:n,displayItems:l,wrapClassName:o}=e,i=(0,s.A)(e,T);const[d,p]=(0,u.useState)(""),[h,f]=(0,u.useState)(new Map(l.map((e=>[e.value,e])))),[x,v]=(0,u.useState)({}),{message:y}=A.App.useApp(),j=e=>{const t=e.filter((e=>h.get(e.value)!==e));0!==t.length&&f((e=>{const n=C()(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),[S,F]=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?w()(t):t)}},"value"in i?{value:N(i.value)}:{defaultValue:N(i.defaultValue)})),P=O({maxLength:i.maxLength,single:i.single,setValue:F,value:S,message:y.error});return(0,I.jsx)(c,{value:{mapping:h,searchText:d,setSearchText:p,appendMapping:j,setItems:e=>{x.setData(e),j(g()(i.dataFormat(e),"list",[]))},fetchApi:x,valueState:[S,P],props:i},children:(0,I.jsx)("div",{className:_()(a["input".concat(i.inputContent&&"function"===typeof i.inputContent?"-custom":"")],n),children:(0,I.jsx)(V,(0,r.A)((0,r.A)({},t),{},{wrapClassName:o,loading:null,setFetchApi:v,onRequestSuccess:e=>{j(g()(i.dataFormat(e),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}}))})})};K.defaultProps={placeholder:"\u8bf7\u9009\u62e9",displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",getPopupContainer:null,showSelectedTag:!0},K.useContext=i;const D=K},19343:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Download:()=>m,FileButton:()=>w,FileLink:()=>F,List:()=>N,OptionButtons:()=>b,PrintButton:()=>o.PrintButton,default:()=>i(),downloadBlobFile:()=>o.downloadBlobFile,useDownload:()=>o.useDownload,useFileModal:()=>I});var r=n(89379),s=n(53986),a=(n(64674),n(96418)),l=n.n(a),o=n(96982),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),f=n.n(h),g=n(74065),A=n.n(g),x=n(96252);const _=["apis"],v=["onCancel"],y=["onCancel"],j=e=>{let{apis:t}=e;const n=(0,x.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:f()(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)(x.default,{column:1,list:[(0,p.jsx)(x.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,s.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,s.A)(e,_);const a=j({apis:t});return(0,p.jsx)(o.FileList,(0,r.A)((0,r.A)({},n),{},{apis:t,onEdit:e=>a(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,s.A)(e,v);return(0,p.jsx)(c.default,(0,r.A)((0,r.A)({},Object.assign({},n)),{},{onClose:t}))}}))},C=["onCancel"],S=["className"],w=e=>(0,p.jsx)(o.FileButton,(0,r.A)({},Object.assign({},e,{modalProps:{renderModal:e=>{let{onCancel:t}=e,n=(0,s.A)(e,C);return(0,p.jsx)(c.default,(0,r.A)((0,r.A)({},Object.assign({},n)),{},{onClose:t}))}}}))),F=e=>{const t=Object.assign({},e),{className:n}=t,a=(0,s.A)(t,S);return(0,p.jsx)(w,(0,r.A)((0,r.A)({},a),{},{className:u()(n,"btn-no-padding"),type:"link",children:a.children||a.filename||a.originName}))},I=e=>{const{title:t,children:n,footer:r}=(0,o.useFileModalProps)(Object.assign({},e)),s=(0,c.useModal)();return l()((()=>s({title:t,children:n,footer:r})))}},26304:(e,t,n)=>{var r=n(53871),s=n(99140);e.exports=function(e,t,n){var a=null==e?0:e.length;return a?(t=n||void 0===t?1:s(t),r(e,0,(t=a-t)<0?0:t)):[]}},29556:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TooltipFetch:()=>M,TooltipInfoLabel:()=>w,default:()=>C});var r=n(89379),s=n(53986),a=n(55199),l=n(83136),o=n.n(l);const i="style_tooltip__zHGMI__-vnKV",c="style_large__lvmsm__-vnKV",d="style_small__nUt0r__-vnKV",u="style_popup-content__-rKQN__-vnKV",p="style_title__1EQPq__-vnKV",m="style_important-info__qTSZY__-vnKV",h="style_error__yTTq3__-vnKV",f="style_warning__CMJxz__-vnKV",g="style_success__AvJVx__-vnKV",A="style_sub-title__uD8CH__-vnKV",x="style_content__lzgUz__-vnKV",_="style_alone__q6q82__-vnKV",v="style_fetch-content__tEOEV__-vnKV",y="style_fetch-loading__tN-WB__-vnKV",j="style_title-info-icon__iY8Q+__-vnKV";var b=n(70579);const N=["overlayClassName","title","size","subtitle","content","importantInfo","importantInfoType","moreInfo"],C=e=>{let{overlayClassName:t,title:n,size:l,subtitle:v,content:y,importantInfo:j,importantInfoType:C,moreInfo:S}=e,w=(0,s.A)(e,N);return(0,b.jsx)(a.Tooltip,(0,r.A)((0,r.A)({},w),{},{overlayClassName:o()(t,i,{[d]:"small"===l,[c]:"large"===l}),title:(0,b.jsxs)(a.Space,{direction:"vertical",className:u,children:[n&&(0,b.jsx)("div",{className:p,children:n}),j&&(0,b.jsx)("div",{className:o()(m,{[g]:"success"===C,[f]:"warning"===C,[h]:"error"===C}),children:j}),v&&(0,b.jsx)("div",{className:A,children:v}),y&&(0,b.jsx)("div",{className:o()(x,{[_]:[n,v,j,S].every((e=>!e))}),children:y}),S&&(0,b.jsx)("div",{children:S})]})}))};var S=n(64671);const w=e=>{let{title:t,tooltipTitle:n}=e;return(0,b.jsxs)("div",{children:[t,n?(0,b.jsx)(C,(0,r.A)((0,r.A)({},n),{},{children:(0,b.jsx)("span",{children:(0,b.jsx)(S.default,{type:"icon-xinxi-miaobian",className:j,size:14})})})):null]})};var F=n(73884),I=n(87558);const P=["api","children","fetchContent","showLoading","loadingClassName","force"],M=e=>{let{api:t,children:n,fetchContent:l,showLoading:i=!0,loadingClassName:c,force:d}=e,u=(0,s.A)(e,P);const[p,m]=(0,F.useState)(!1),h=(0,I.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:f,isLoading:g,data:A,send:x}=h;return(0,b.jsx)(C,(0,r.A)((0,r.A)({},Object.assign({},u,f?l(A,h):{})),{},{open:p,onOpenChange:async e=>{!e||f&&!d||await x({type:"refresh"}),m(e)},children:(0,b.jsxs)("span",{className:v,children:[n,i&&g?(0,b.jsx)(a.Spin,{size:"small",className:o()(c,y)}):null]})}))}},30096:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>d});var r=n(98434),s=n(43856);const{useOnChange:a}=r.hooks,l=e=>{const t=t=>a(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},o=l(s.UserField),i=l(s.TableField),c=l(s.AdvancedSelectField);c.createdList=e=>{let{renderList:t,defaultProps:n}=e;return l((0,s.createListField)({renderList:t,defaultProps:n}))},c.User=o,c.Table=i;const d=c},30891:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(89379),s=n(98434);const a=e=>{let{children:t}=e;const{openApi:n,formData:a}=(0,s.useFormContext)();return t((0,r.A)((0,r.A)({},n),{},{formData:a}))}},34643:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>u,Pg:()=>c,eM:()=>d});var r=n(98434),s=n(43856),a=n(35063);const{useOnChange:l}=r.hooks,o=e=>{const t=t=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},i=o(s.SuperSelectField),c=o(a.$9),d=o(s.SuperSelectTableListField),u=i},35774:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(89379),s=n(53986),a=n(98434),l=n(81014),o=n(70579);const i=["onClick"],c=e=>{let{onClick:t}=e,n=(0,s.A)(e,i);const c=(0,a.useFormContext)();return(0,o.jsx)(l.default,(0,r.A)((0,r.A)({},n),{},{onClick:e=>t(c,e)}))}},36972:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(89379),s=n(53986),a=n(73884),l=n(87558),o=n(98434),i=n(78491),c=n.n(i),d=n(55199);const u="style_salary__sUOtT__-vnKV",p="style_salary-type__Sl1LC__-vnKV",m="style_input-number__eoEZr__-vnKV",h="style_full__NPqJm__-vnKV",f="style_input-group__toLB7__-vnKV",g="style_input-group-no-mb__C4nzh__-vnKV";var A=n(47458),x=n(55431),_=n(48731),v=n(10986),y=n.n(v),j=n(21079),b=n(70579);const N=["data"],C=["getPopupContainer","onBlur","api","isRange","placeholder","disabled","showMonth","remindUnit","req"],S=(0,l.withFetch)((e=>{let{data:t}=e,n=(0,s.A)(e,N);return(0,b.jsx)(d.Select,(0,r.A)((0,r.A)({},n),{},{options:t}))})),{useDecorator:w,useUIDecorator:F}=o.hooks,I=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},P=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,a.cloneElement)(t,{className:"react-form__field-component"})})})})},M=e=>{let{getPopupContainer:t,onBlur:n,api:a,isRange:l=!0,placeholder:o,disabled:i,showMonth:x,remindUnit:v,req:N}=e,w=(0,s.A)(e,C);const[F,M]=y()(w),{formatMessage:k}=(0,A.useIntl)({moduleName:"FormInfo"}),T=k({id:"defaultSelectPlaceholder"},{label:""}),O=k({id:"defaultInputPlaceholder"},{label:""}),R=[6].indexOf((0,j.get)(F,"type"))>-1,E=1===(0,j.get)(F,"type"),L=7===(0,j.get)(F,"type"),V=e=>{if(e)return R?e/1e4:e},K=c()(n||(()=>{}));return(0,b.jsx)("div",{ref:K,className:u,children:(0,b.jsxs)(d.Row,{wrap:!1,gutter:10,children:[(0,b.jsx)(d.Col,{children:(0,b.jsx)(S,(0,r.A)((0,r.A)({className:p},a),{},{value:(0,j.get)(F,"type"),onChange:e=>{M&&M(Object.assign({},E?{}:F,{type:e,min:"",max:""}))},placeholder:o||T,getPopupContainer:t,disabled:i}))}),E?null:(0,b.jsxs)(d.Col,{flex:1,children:[l&&(0,b.jsxs)(d.Row,{className:v&&[5,6].includes(null===F||void 0===F?void 0:F.type)?f:g,wrap:!1,children:[(0,b.jsx)(d.Col,{flex:1,children:(0,b.jsx)(P,{isError:!(0,j.get)(F,"min")&&N,children:(0,b.jsx)(d.InputNumber,{disabled:i,placeholder:O,formatter:I,value:V((0,j.get)(F,"min")),style:{textAlign:"center"},onChange:e=>{M(Object.assign({},F,{min:R?1e4*e:e}))},description:v&&[5,6].includes(null===F||void 0===F?void 0:F.type)?(0,b.jsxs)("span",{style:{color:"#fc3333"},children:["\u6ce8\u610f\uff1a",(0,b.jsx)(_.default,{name:null===F||void 0===F?void 0:F.type,moduleName:"salaryTypeEnum"}),"\u7684\u5355\u4f4d\u4e3a",R?k({id:"thousand"}):L?"":k({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)(P,{isError:!(0,j.get)(F,"max")&&N,children:(0,b.jsx)(d.InputNumber,{disabled:i,placeholder:O,formatter:I,value:V((0,j.get)(F,"max")),style:{textAlign:"center"},addonAfter:R?k({id:"thousand"}):L?"":k({id:"yuan"}),onChange:e=>{M(Object.assign({},F,{max:R?1e4*e:e}))}})})}),5===(0,j.get)(F,"type")&&x&&(0,b.jsx)(d.Col,{children:(0,b.jsxs)("span",{className:(0,j.get)(F,"max")&&(0,j.get)(F,"min")&&!(0,j.get)(F,"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)(F,"month"),onChange:e=>{M(Object.assign({},F,{month:e}))},style:{width:100,textAlign:"center"},placeholder:"\u6570\u91cf",addonAfter:"\u6708"})]})})]}),!l&&!L&&(0,b.jsx)(d.InputNumber,{disabled:i,min:0,max:1e8,placeholder:O,className:h,formatter:I,value:V((0,j.get)(F,"max")),style:{textAlign:"center"},addonAfter:R?k({id:"thousand"}):L?"":k({id:"yuan"}),onChange:e=>{M(Object.assign({},F,{max:R?1e4*e:e}))}}),!l&&L&&(0,b.jsx)(d.Input,{disabled:i,placeholder:O,className:h,onChange:e=>{M(Object.assign({},F,{max:e.target.value}))},value:(0,j.get)(F,"max"),style:{textAlign:"center"}})]})]})})},k=e=>(0,b.jsx)(A.IntlProvider,{moduleName:"FormInfo",importMessages:x.A,children:(0,b.jsx)(M,(0,r.A)({},e))});k.defaultProps={api:{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"}]},defaultValue:{type:5,min:"",max:"",month:12}};const T=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}))(k)};T.Field=k;const O=T},41381:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s.a});n(55664);var r=n(40094),s=n.n(r),a={};for(const l in r)"default"!==l&&(a[l]=()=>r[l]);n.d(t,a)},45053:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(98434),s=n(55199),a=n(73884),l=n(83136),o=n.n(l),i=n(70720),c=n.n(i),d=n(47094),u=n(70579);const p=e=>{let{name:t,groupName:n,overlayClassName:l,errorRender:i,groupIndex:p,children:m}=e;const h=(e=>{let{name:t,groupName:n,groupIndex:s}=e;const{emitter:l,formState:o}=(0,r.useFormContext)(),i=(0,a.useRef)({name:t,groupName:n,groupIndex:s});i.current={name:t,groupName:n,groupIndex:s};const c=(0,a.useRef)(o);c.current=o;const[d,u]=(0,a.useState)(null);return(0,a.useEffect)((()=>{const e=l.addListener("form-field-validate-complete",(e=>{let{id:t,validate:n}=e;const s=c.current[t];if(!s)return;const a=i.current;s.name!==a.name||a.groupName&&(s.groupName!==a.groupName||s.groupIndex!==a.groupIndex)||u(2===n.status?Object.assign({},n,{label:s.label,errMsg:r.util.compileErrMsg(n.msg,s.label)}):null)}));return()=>{e&&e.remove()}}),[l]),d})({name:t,groupName:n,groupIndex:p}),[f,g]=(0,a.useState)(!1),A=h&&f&&i(Object.assign({},h,{closeHover:()=>g(!1)})),x=(0,a.useRef)(null),_=(0,a.useRef)(null);c()((()=>{g(!1)})).current={contains:e=>x.current.contains(e)||_.current&&_.current.contains(e)};const[v,y]=(0,a.useState)(0);return(0,a.useLayoutEffect)((()=>{const e=()=>{const e=x.current.querySelector(".react-form__field-component");e&&y(e.clientWidth)};e();const t=new ResizeObserver(e);t.observe(x.current);const n=new MutationObserver(e);return n.observe(x.current,{subtree:!0,childList:!0}),()=>{n.disconnect(),t.disconnect()}}),[]),(0,u.jsx)(s.Popover,{open:!!A,overlayClassName:o()(l,d.A["error-tip-overlay"]),content:A&&(0,u.jsx)("div",{ref:_,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:x,onMouseEnter:()=>{g(!0)},children:m})})};p.defaultProps={errorRender:()=>null};const m=p},46237:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>i,oc:()=>o});var r=n(73884);const s=(0,r.createContext)([]),{Provider:a,Consumer:l}=s,o=()=>(0,r.useContext)(s),i=a},46732:(e,t,n)=>{"use strict";n.d(t,{A:()=>d,K:()=>c});var r=n(75363),s=n(73884),a=n(98434),l=n(47094),o=n(70579);const i=(0,s.createContext)(""),{Provider:c}=i,d=e=>{let{name:t}=e;const n=(0,s.useContext)(i),c=(0,a.useGroup)();return n&&(0,o.jsx)(r.default,{className:l.A["helper-guide-field"],name:n+"-"+(c.name?c.name+"-":"")+t})}},47094:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={"form-outer":"style_form-outer__IWUs0__-vnKV","form-drawer":"style_form-drawer__uYDXS__-vnKV","table-list":"style_table-list__6lp-A__-vnKV","list-item":"style_list-item__hVzQa__-vnKV","table-list-inner":"style_table-list-inner__uc8DK__-vnKV","table-list-field":"style_table-list-field__JSJfB__-vnKV","table-list-header":"style_table-list-header__KXvKa__-vnKV","is-req":"style_is-req__LfXQf__-vnKV","table-list-extra":"style_table-list-extra__faYTK__-vnKV","list-btn":"style_list-btn__WKYkm__-vnKV","form-info":"style_form-info__B8bAP__-vnKV","list-part":"style_list-part__Ld0GA__-vnKV","is-important":"style_is-important__vaBk1__-vnKV","list-item-part":"style_list-item-part__MzKP7__-vnKV","money-input":"style_money-input__J86Pb__-vnKV","money-description":"style_money-description__Gz3p7__-vnKV","components-upload-wrapper":"style_components-upload-wrapper__Ir0gz__-vnKV","textarea-wrapped-component":"style_textarea-wrapped-component__r1oKc__-vnKV","helper-guide-field":"style_helper-guide-field__Wke3w__-vnKV","error-tip-overlay":"style_error-tip-overlay__aNCGc__-vnKV","error-tip-overlay-content":"style_error-tip-overlay-content__kDOoQ__-vnKV","column-not-layout":"style_column-not-layout__+SXC+__-vnKV","mult-field-item":"style_mult-field-item__eS0nJ__-vnKV","react-form__field-label":"style_react-form__field-label__2U91E__-vnKV","mult-field-add-btn":"style_mult-field-add-btn__5Baxz__-vnKV","form-step-section":"style_form-step-section__RvkHy__-vnKV"}},47338:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConfirmButton:()=>r.ConfirmButton,ConfirmLink:()=>r.ConfirmLink,ConfirmText:()=>r.ConfirmText,default:()=>s,withConfirm:()=>r.withConfirm});n(9056);var r=n(24103);const s=r.ConfirmButton},48221:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c,WJ:()=>u,Xy:()=>d});var r=n(89379),s=n(25963),a=n(73025),l=n(47094),o=n(76995),i=n(70579);const c=e=>(0,i.jsx)(s.default,(0,r.A)({},(0,o.A)(Object.assign({},e,{className:l.A["form-drawer"]})))),d=()=>{const e=(0,s.useDrawer)();return t=>e((0,o.A)(Object.assign({},t,{className:l.A["form-drawer"]})))},u=e=>{const t=d();return(0,i.jsx)(a.A,(0,r.A)((0,r.A)({},e),{},{modalFunc:t}))}},48731:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s.a});var r=n(60922),s=n.n(r),a=n(22717),l=n.n(a);(0,r.preset)({base:l()([["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)=>{"use strict";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]())},55664:()=>{},56259:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(89319),s=n(98434);const{useOnChange:a}=s.hooks,l=e=>a(Object.assign({},{},e))(r.A);l.Field=r.A;const o=l},63361:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x,useFeatureCall:()=>A});var r=n(73884),s=n(63908),a=n(33097),l=n.n(a),o=n(15797),i=n.n(o),c=n(1488),d=n.n(c),u=n(70579);const p=(e,t,n)=>{e&&(Array.isArray(e)?e.forEach((e=>{p(e,t,n)})):(t(Object.assign({},d()(e,["children"]),{parentId:n})),p(e.children,t,n?n+":"+e.id:e.id)))},m=i()((e=>{const t=(()=>{const t=new Map;return p(e,(e=>{t.set(e.parentId?e.parentId+":"+e.id:e.id,e)})),t})(),n=(e=>Array.from(e.keys()).filter((t=>{const n=e.get(t);return!(Array.isArray(n.dependencies)&&n.dependencies.length>0&&n.dependencies.some((n=>!e.get(t))))})))(t);return{profile:e,features:n,profileMap:t}})),h=(e,t)=>{let{profileMap:n,features:r}=t;const s=n.get(e);return-1!==r.indexOf(e)&&!0!==s.close&&l()(s,"dependencies",[]).every((t=>{const s=n.get(e);return r.indexOf(t)>-1&&!0!==s.close}))},f=(0,r.createContext)(null),{Provider:g}=f,A=e=>{const{features:t,profile:n,profileMap:a,debug:o}=(()=>{const e=(0,s.usePreset)(),{profile:t,debug:n}=l()(e,"features",{debug:!1,profile:{}});return Object.assign({},m(t),{debug:n})})(),i="system"===n.type?n.id:"root",c=(0,r.useContext)(f),d=c?c+":"+e:i+":"+e;return(0,r.useEffect)((()=>{t&&t.length>0&&o&&console.log("[featureId] ".concat(d,",[state] ").concat(h(d,{features:t,profileMap:a})),a.get(d))}),[t,a,o,d]),{isPass:!(e&&t&&t.length>0)||h(d,{features:t,profileMap:a}),currentId:d,feature:a.get(d)}},x=e=>{let{id:t,children:n}=e;const{isPass:r,feature:s,currentId:a}=A(t);return(0,u.jsx)(g,{value:a,children:"function"===typeof n?n({isPass:r,options:r?l()(s,"options"):l()(s,"rejectedOptions"),currentId:a}):r&&n})}},64261:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(89379),s=n(98434),a=n(57469),l=n.n(a),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 f=async(e,t)=>{const{locale:n}=Object.assign({},t);s.interceptors.input.use("photo-string",(e=>{if(e&&"string"===typeof e){return{id:e.split("?")[0]}}return e})),s.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})),s.interceptors.input.use("to-array",(e=>Array.isArray(e)?e[0]:e)),s.interceptors.output.use("to-array",(e=>[e])),s.interceptors.input.use("array-single",(e=>e?[e]:[])),s.interceptors.output.use("array-single",(e=>e?e[0]:null)),s.interceptors.input.use("boolean-number",(e=>1===e||"1"===e)),s.interceptors.output.use("boolean-number",(e=>e?1:0)),s.interceptors.input.use("un-boolean",(e=>!e)),s.interceptors.output.use("un-boolean",(e=>!e)),s.interceptors.output.use("object-output-value",(e=>e?e.value||e.id:e)),s.interceptors.input.use("date-string",(e=>e?l()(e):null)),s.interceptors.output.use("date-string",(e=>e?new Date(e.valueOf()).toISOString():"")),s.interceptors.input.use("date-range-string",(e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(l()(e[0])),e[0]&&e[1]&&"sofar"===e[1]&&t.push("\u81f3\u4eca"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(l()(e[1])),t})),s.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})),s.interceptors.output.use("file-format",(e=>Array.isArray(e)?e.map((e=>Object.assign({},e,{id:e.id||e.ossId,originalName:e.filename}))):[])),s.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:a}=await(0,m.loadModule)("components-iconfont:CountyFlag@load"),o=await a(),c=new Map(o.map((e=>{let{ab:t,country_code:n}=e;return[t,n]}))),f=new Map(o.map((e=>{let{ab:t,country_code:n}=e;return[n,t]})));s.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,"")):"")),s.interceptors.input.use("phone-number-string",(e=>{if(!e)return{};const t=e.match(/^\+(\d+)\s(.*)/);return t&&t.length>=3?{code:f.get(Number(t[1])),value:t[2]}:{code:f.get(86),value:e}}));const g=s.RULES.REQ,A=s.RULES.LEN,x=(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)}},s=d()(r,"".concat(e,".").concat(n));return s||d()(r,"".concat(e,".zh-CN"))};(0,s.preset)(i()({},{type:"inner",rules:{REQ:function(){return Object.assign({},g(...arguments),{errMsg:x("REQ")})},LEN:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[r,s,a]=t;let l="";return a===s&&r.length!==Number(a)&&(l="LENGTH_EQUAL"),r.length<s&&(l="LENGTH_MORE"),a&&r.length>a&&(l="LENGTH_LESS"),Object.assign({},A(...t),{errMsg:x(l,{start:s,end:a})})},EMAIL:function(e){return{result:/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e),errMsg:x("EMAIL")}},PHONE_NUMBER_INPUT:u.PHONE_NUMBER_INPUT,ARRAY_LENGTH:(e,t,n)=>n===t&&e.length!==Number(n)?{result:!1,errMsg:x("LENGTH_EQUAL",{start:t,end:n})}:e.length<t?{result:!1,errMsg:x("LENGTH_MORE",{start:t,end:n})}:n&&e.length>n?{result:!1,errMsg:x("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:s.interceptors,RULES:s.RULES}):e))}},64674:()=>{},72297:(e,t,n)=>{"use strict";n.d(t,{A:()=>ee,E:()=>te});var r=n(89379),s=n(53986),a=n(98434),l=n(30096),o=n(34643),i=n(1904),c=n(83230),d=n(81026),u=n(78756),p=n(92328),m=n(2842),h=n(55199),f=n(70579);const g=["checked","children"],{useOnChange:A,useCheckedToValue:x}=a.hooks,{withChecked:_}=a.hoc,v=_((e=>{let{checked:t,children:n=null}=e,a=(0,s.A)(e,g);return(0,f.jsxs)(h.Space,{children:[(0,f.jsx)(h.Switch,(0,r.A)({checked:t},a)),"function"===typeof n?n({checked:t}):n]})})),y=e=>{e=Object.assign({},{fieldName:"switch"},e);const t=x(e);return A(t)(v)};y.Field=h.Switch;const j=y;var b=n(89099),N=n(96339),C=n(36972),S=n(15209),w=n(74529),F=n.n(w),I=n(73884),P=n(47458),M=n(33097),k=n.n(M),T=n(21079),O=n(46237),R=n(56259),E=n(29556),L=n(64671),V=n(83136),K=n.n(V),D=n(47094);const B=["forwardedRef","label","placeholder"],z=["placeholder","label"],U=["placeholder","label"],W=["placeholder","label","soFarText"],G=e=>t=>{const n=F()(...e)((e=>{let{forwardedRef:n,label:a,placeholder:l}=e,o=(0,s.A)(e,B);return(0,f.jsx)(t,(0,r.A)((0,r.A)({},o),{},{label:a,placeholder:l,labelRender:()=>o.tips?(0,f.jsxs)(h.Space,{children:[a,(0,f.jsx)(E.default,{content:o.tips,children:(0,f.jsx)("span",{className:K()(D.A["field-tips"],{[D.A["label-hidden"]]:o.labelHidden}),children:(0,f.jsx)(L.default,{type:"icon-xinxi-miaobian"})})})]}):a,ref:n}))})),a=(0,I.forwardRef)(((e,t)=>(0,f.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=>{a[e]=t[e]})),a},q=e=>t=>{let{placeholder:n,label:a}=t,l=(0,s.A)(t,z);return(0,f.jsx)(P.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:a},children:t=>(0,f.jsx)(e,(0,r.A)((0,r.A)({},l),{},{label:a,placeholder:n||t}))})},H=e=>t=>{let{placeholder:n,label:a}=t,l=(0,s.A)(t,U);return(0,f.jsx)(P.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:a},children:t=>(0,f.jsx)(e,(0,r.A)((0,r.A)({},l),{},{label:a,placeholder:n||t}))})},Q=e=>t=>{const n=(0,a.useGroup)(),s=k()(n,"name"),l=(0,T.get)(n,"index"),o=(0,O.oc)();return o&&Array.isArray(o)&&o.length>0?o.map((n=>{if("string"===typeof n)return(0,I.createElement)(e,(0,r.A)((0,r.A)({},t),{},{key:n}));const{name:a,label:o,options:i}=n,c=k()(i,"ignore",[]),d=k()(i,"disabled",[]),u=k()(i,"fields",[]),p=e=>t.name===e.name&&!(e.hasOwnProperty("groupName")&&e.groupName!==s)&&!(e.hasOwnProperty("groupIndex")&&e.groupIndex!==l);if(c.length>0&&c.find(p))return null;if(u.length>0&&!u.find(p))return null;let m=Object.assign({},t,{name:k()(i,"nameTransform",((e,t)=>"".concat(e).concat(t)))(t.name,a),label:k()(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,I.createElement)(e,(0,r.A)((0,r.A)({},m),{},{key:a}))})):(0,f.jsx)(e,(0,r.A)({},t))},X=G([Q,q])(a.Input),Y=G([Q,q])(a.InputNumber);X.Password=G([Q,q])(a.Input.Password);const J=G([Q,H])(a.DatePicker);J.MonthPicker=G([Q,H])(a.DatePicker.MonthPicker),J.RangePicker=G([Q,H])(a.DatePicker.RangePicker),J.WeekPicker=G([Q,H])(a.DatePicker.WeekPicker);const $=G([Q,H])(a.TimePicker);$.RangePicker=G([Q,H])(a.TimePicker.RangePicker);const Z=G([Q])((e=>{let{placeholder:t,label:n,soFarText:l}=e,o=(0,s.A)(e,W);const{formatMessage:i}=(0,P.useIntl)({moduleName:"FormInfo"});return(0,f.jsx)(a.DatePickerToday,(0,r.A)((0,r.A)({},o),{},{label:n,placeholder:[i({id:"startDate"}),i({id:"endDate"})],soFarText:l||i({id:"soFarText"})}))})),ee={Input:X,Checkbox:a.Checkbox,Password:X.Password,InputNumber:Y,DatePicker:J,MonthPicker:J.MonthPicker,WeekPicker:J.WeekPicker,DateRangePicker:J.RangePicker,TimeRangePicker:$.RangePicker,TimePicker:$,DatePickerToday:Z,RadioGroup:G([Q])(a.RadioGroup),CheckboxGroup:G([Q])(a.CheckboxGroup),Rate:G([Q])(a.Rate),Switch:G([Q])(j),Slider:G([Q])(a.Slider),SalaryInput:G([Q,q])(C.A),TypeDateRangePicker:G([Q])(R.A),MoneyInput:G([Q,q])(p.A),PhoneNumber:G([Q,q])(m.default),Upload:G([Q])(b.A),Avatar:G([Q])(N.A),FunctionSelect:G([Q,H])(d.A),IndustrySelect:G([Q,H])(u.A),Cascader:G([Q,H])(c.A),AddressSelect:G([Q,H])(i.A),AddressInput:G([Q,H])(i.N),TreeSelect:G([Q,H])(a.TreeSelect),ReactInputNumber:G([Q,q])(a.InputNumber),InputUpperCase:G([Q,q])(S.A),Select:G([Q,H])(a.Select),TextArea:G([Q,q])(a.TextArea),AdvancedSelect:G([Q,H])(l.Ay),SuperSelect:G([Q,H])(o.Ay),SuperSelectTableList:G([Q,H])(o.eM),SuperSelectUser:G([Q,H])(o.Pg)},te={createWithFieldDecorator:G,withInputDefaultPlaceholder:q,withSelectDefaultPlaceholder:H,withLang:Q}},75363:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>f});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 s=n(47458),a=n(64671),l=n(55199),o=n(83136),i=n.n(o);const c="style_helper-guide__K5xFw__-vnKV",d="style_inner__bMKeU__-vnKV",u="style_content__xTfWZ__-vnKV",p="style_link__93j7O__-vnKV";var m=n(48731),h=n(70579);const f=e=>{let{name:t,className:n}=e;return(0,h.jsx)(s.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)(l.Space,{className:d,children:[(0,h.jsx)(a.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,h.jsx)("span",{className:u,children:e.content}),e.url&&(0,h.jsxs)(l.Typography.Link,{className:p,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,h.jsx)(a.default,{type:"icon-shuangjiantou-right"})]})]})})})})}},76995:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(89379),s=n(53986),a=n(55431),l=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"],f="FormInfo",g=e=>{let{className:t,withDecorator:n,footerButtons:c,formProps:g,cancelText:A,saveText:x,autoClose:_}=e,v=(0,s.A)(e,m);return(0,r.A)((0,r.A)({},v),{},{footerButtons:c||[{children:(0,p.jsx)(o.IntlProvider,{importMessages:a.A,moduleName:f,children:A||(0,p.jsx)(o.FormattedMessage,{id:"Cancel",moduleName:f})}),ButtonComponent:l.CancelButton},{type:"primary",children:(0,p.jsx)(o.IntlProvider,{importMessages:a.A,moduleName:f,children:x||(0,p.jsx)(o.FormattedMessage,{id:"Save",moduleName:f})}),ButtonComponent:l.SubmitButton,autoClose:!1}],withDecorator:(e,t)=>{const l=t=>{const n="function"===typeof g?g(t):g,{onSubmit:l}=n,c=(0,s.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),s=1;s<n;s++)r[s-1]=arguments[s];!1!==(l&&await l(e,Object.assign({},t),...r))&&_&&t.close()},children:(0,p.jsx)(o.IntlProvider,{importMessages:a.A,moduleName:"FormInfo",children:e(t)})}))};return"function"===typeof n?n(l,t):l(t)},className:d()(t,u.A["form-outer"])})}},78756:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(43856),s=n(98434);const{useOnChange:a}=s.hooks,l=e=>a(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(r.IndustrySelectField);l.Field=r.IndustrySelectField,l.Enum=r.IndustrySelectField.Enum;const o=l},81026:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(43856),s=n(98434);const{useOnChange:a}=s.hooks,l=e=>a(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(r.FunctionSelectField);l.Field=r.FunctionSelectField,l.Enum=r.FunctionSelectField.Enum;const o=l},83230:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(98434),s=n(43856);const{useOnChange:a}=r.hooks,l=e=>a(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(s.CascaderField);l.Field=s.CascaderField,l.createTreeUtils=s.createTreeUtils;const o=l},83560:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(89379),s=n(55199),a=n(98434),l=n(63361),o=n(73884),i=n(10486),c=n(29556),d=n(64671),u=n(83136),p=n.n(u),m=n(47094),h=n(70579);const f=e=>{let{list:t,groupArgs:n,itemRender:u}=e;const f=(0,a.useFormContext)(),g=Object.assign({},f,n?{groupArgs:n}:{}),A=(0,o.useRef)(null),[x,_]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{_(!0)}),[]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{ref:A,style:{display:"none"}}),t.filter((e=>"function"===typeof e.props.display?e.props.display(g):!1!==e.props.display)).map(((e,a)=>{const f=e.props.name+a||n&&n[0]+a||a,_={key:f,list:t,props:e.props},v=Object.assign({},e.props),y=e.type;["display","block","hidden","setExtraProps","isBlock","featureId"].forEach((t=>{e.props.hasOwnProperty(t)&&(_[t]=e.props[t]),delete v[t]})),_.hasOwnProperty("isBlock")&&(v.block=_.isBlock);const j=(0,h.jsx)(y,(0,r.A)((0,r.A)({},Object.assign({},v,"function"===typeof _.setExtraProps?_.setExtraProps({props:v,contextApi:g}):{})),{},{onChange:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.props.onChange&&e.props.onChange(...n,g)}})),b=_.hidden?x&&(0,i.createPortal)(j,A.current):u(_.tips?(0,h.jsxs)(s.Row,{gutter:8,align:"top",children:[(0,h.jsx)(s.Col,{flex:1,children:j}),(0,h.jsx)(s.Col,{children:(0,h.jsx)(c.default,{content:_.tips,children:(0,h.jsx)("span",{className:p()(m.A["field-tips"],{[m.A["label-hidden"]]:v.labelHidden}),children:(0,h.jsx)(d.default,{type:"icon-xinxi-miaobian"})})})})]}):j,_);return(0,h.jsx)(o.Fragment,{children:_.hasOwnProperty("featureId")?(0,h.jsx)(l.default,{id:_.featureId,children:b},f):b},f)}))]})}},83799:(e,t,n)=>{"use strict";n.d(t,{NI:()=>W,TQ:()=>m.A,JL:()=>D,eu:()=>v.A,vx:()=>h.A,lr:()=>Z,s3:()=>ee,lV:()=>l.A,d4:()=>f.A,ZN:()=>g.A,pd:()=>q,YI:()=>Y,h2:()=>G,F0:()=>A.A,go:()=>x.default,tt:()=>a.Rate,lu:()=>y.A,l6:()=>X,Ap:()=>a.Slider,wD:()=>B,eM:()=>z,Pg:()=>U,dO:()=>a.Switch,EY:()=>k,fs:()=>H,AG:()=>$,f7:()=>J,w5:()=>b.A,_O:()=>_.A,nk:()=>te});var r=n(89379),s=n(53986),a=n(98434),l=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),f=n(81026),g=n(78756),A=n(92328),x=n(2842),_=n(89099),v=n(96339),y=n(36972),j=n(15209),b=n(56259),N=n(55199),C=n(10986),S=n.n(C),w=n(70579);const F=["children"],{useDecorator:I}=a.hooks,P=e=>{let{children:t}=e,n=(0,s.A)(e,F);const[a]=S()(n);return(0,w.jsxs)(N.Typography.Text,(0,r.A)((0,r.A)({},n),{},{children:[(0,w.jsx)("div",{style:{height:0,width:0,overflow:"hidden"},children:(0,w.jsx)(N.Input,{value:a})}),t||a]}))},M=e=>I(e)(P);M.Field=P;const k=M;var T=n(45053);const O=["placeholder","label"],R=["placeholder","label","className"],E=["placeholder","label"],L=["placeholder","label","soFarText"],V=e=>{const t=(0,i.forwardRef)(((t,n)=>{let{placeholder:a,label:l}=t,i=(0,s.A)(t,O);return(0,w.jsx)(o.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:l},children:t=>(0,w.jsx)(e,(0,r.A)((0,r.A)({},i),{},{ref:n,label:l,placeholder:a||t}))})}));return Object.keys(e).filter((e=>-1===["$$typeof","render","field"].indexOf(e))).forEach((n=>{t[n]=e[n]})),t},K=e=>{const t=(0,i.forwardRef)(((t,n)=>{let{placeholder:a,label:l}=t,i=(0,s.A)(t,E);return(0,w.jsx)(o.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:l},children:t=>(0,w.jsx)(e,(0,r.A)((0,r.A)({},i),{},{ref:n,label:l,placeholder:a||t}))})}));return Object.keys(e).filter((e=>-1===["$$typeof","render","field"].indexOf(e))).forEach((n=>{t[n]=e[n]})),t},D=K(u.Ay),B=K(p.Ay),z=K(p.eM),U=K(p.Pg),W=K(m.N),G=V(j.A),q=V(a.Input);q.Password=V(a.Input.Password);const H=(Q=a.TextArea,e=>{let{placeholder:t,label:n,className:a}=e,l=(0,s.A)(e,R);return(0,w.jsx)(o.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:n},children:e=>(0,w.jsx)("div",{className:d.A["textarea-wrapped-component"],children:(0,w.jsx)(Q,(0,r.A)((0,r.A)({},l),{},{label:n,placeholder:t||e}))})})});var Q;const X=K(a.Select),Y=V(a.InputNumber),J=K(a.TreeSelect),$=K(a.TimePicker);$.RangePicker=K(a.TimePicker.RangePicker);const Z=K(a.DatePicker);Z.MonthPicker=K(a.DatePicker.MonthPicker),Z.RangePicker=K(a.DatePicker.RangePicker),Z.WeekPicker=K(a.DatePicker.WeekPicker);const ee=e=>{let{placeholder:t,label:n,soFarText:l}=e,i=(0,s.A)(e,L);const{formatMessage:c}=(0,o.useIntl)({moduleName:"FormInfo"});return(0,w.jsx)(a.DatePickerToday,(0,r.A)((0,r.A)({},i),{},{label:n,placeholder:[c({id:"startDate"}),c({id:"endDate"})],soFarText:l||c({id:"soFarText"})}))},te=Object.assign({},a,{Input:q,InputUpperCase:G,TextArea:H,Select:X,InputNumber:Y,TreeSelect:J,TimePicker:$,DatePicker:Z,DatePickerToday:ee,Form:l.A,FormItem:c.A,AdvancedSelect:D,SuperSelect:B,SuperSelectTableList:z,SuperSelectUser:U,AddressSelect:m.A,AddressInput:W,MoneyInput:A.A,PhoneNumber:x.default,Cascader:h.A,FunctionSelect:f.A,IndustrySelect:g.A,TypeDateRangePicker:b.A,Upload:_.A,Avatar:v.A,SalaryInput:y.A,Text:k,Rate:a.Rate,Switch:a.Switch,Slider:a.Slider,ErrorTip:T.A})},85696:(e,t,n)=>{"use strict";n.d(t,{A:()=>j});var r=n(89379),s=n(53986),a=n(73884),l=n(63908),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),f=n(98434),g=n(83136),A=n.n(g),x=n(47094),_=n(70579);const v=["className","helperGuideName","children","lang"],y=e=>{let{children:t}=e;const[n,r]=(0,a.useState)(!1),s=(0,l.usePreset)(),o=i()(s,"formInfo",{}),d=i()(s,"locale");return(0,a.useEffect)((()=>{Promise.resolve((0,c.A)(o,{locale:d})).then((()=>{r(!0)}))}),[o,d]),n?t:null},j=(0,a.forwardRef)(((e,t)=>{let{className:n,helperGuideName:a,children:l,lang:o}=e,i=(0,s.A)(e,v);return(0,_.jsx)(d.IntlProvider,{importMessages:u.A,moduleName:"FormInfo",children:(0,_.jsx)(p.Ay,{value:o,children:(0,_.jsx)(h.K,{value:a,children:(0,_.jsx)(y,{children:(0,_.jsx)(f.FormAntd,(0,r.A)((0,r.A)({},i),{},{ref:t,className:A()(n,x.A["form-outer"]),children:(0,_.jsx)(m.default,{children:l})}))})})})})}))},85846:(e,t,n)=>{"use strict";n.d(t,{A:()=>j});var r=n(53986),s=n(89379),a=n(73884),l=n(55199),o=n(47338),i=n(64671),c=n(41381),d=n(98434),u=n(2196),p=n(83136),m=n.n(p),h=n(55431),f=n(47458),g=n(33097),A=n.n(g),x=n(47094),_=n(70579);const v=["add","addText","className","allowAdd"],y=(0,f.createWithIntl)({moduleName:"FormInfo",importMessages:h.A})((e=>{let{title:t,addText:n,minLength:r,isUnshift:c,maxLength:p,defaultLength:h,label:g,name:v,beforeAdd:y,afterDelete:j,column:b,list:N,listRender:C,itemTitle:S,outer:w,renderChildren:F,className:I,important:P,deleteButtonProps:M}=e;const k=(0,a.useRef)(null),T=(0,d.useFormContext)(),{formData:O}=T,R=!(p&&p<=A()(O,"".concat(v,".length"),0)),{formatMessage:E}=(0,f.useIntl)({moduleName:"FormInfo"}),L=()=>{"function"===typeof y&&!1===y(v,T,{isUnshift:c,group:k.current})||k.current.onAdd({isUnshift:c})};return(0,_.jsxs)(_.Fragment,{children:[(0,a.cloneElement)(w,{title:t,addText:n,className:m()(I,x.A["list-part"]),allowAdd:c&&R,add:L},F((0,_.jsx)(d.GroupList,{name:v,defaultLength:h,ref:k,children:function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];const{id:c,index:d,onRemove:p,length:h}=(e=>{if("object"===typeof e[0])return e[0];const[t,{index:n,onRemove:r,length:s}]=e;return{id:t,index:n,onRemove:r,length:s}})(n),A={column:b,list:"function"===typeof N?N(...n,T):N,title:"function"===typeof S?S({index:d,key:c,onRemove:p}):S,groupArgs:n,extra:(0,_.jsx)(f.FormattedMessage,{id:"delText",moduleName:"FormInfo",children:e=>r&&r>=h?null:(0,_.jsx)(o.default,(0,s.A)((0,s.A)({danger:!0,className:"btn-no-padding",message:E({id:"delConfirm"},{name:g||t}),type:"link",onClick:()=>{p(c),j&&j(...n,T)}},Object.assign({},M)),{},{children:null!==M&&void 0!==M&&M.children?null===M||void 0===M?void 0:M.children:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(i.default,{type:"icon-shanchu"}),e]})}))})};return(0,_.jsxs)("div",{className:m()(x.A["list-item"],{[x.A["is-important"]]:P}),children:["function"===typeof C?C(A):(0,_.jsx)(u.A,(0,s.A)((0,s.A)({},A),{},{className:x.A["list-item-part"],gap:16})),(0,_.jsx)(l.Divider,{})]},c)}}))),!c&&R?(0,_.jsx)(f.FormattedMessage,{id:"addText",moduleName:"FormInfo",children:e=>(0,_.jsx)("div",{className:m()("form-info-list-add-btn"),children:(0,_.jsxs)(l.Button,{onClick:L,children:[(0,_.jsx)(i.default,{type:"icon-tianjia"}),n||e]})})}):null]})}));y.defaultProps={minLength:0,isUnshift:!0,defaultLength:1,outer:(0,_.jsx)((e=>{let{add:t,addText:n,className:a,allowAdd:o}=e,d=(0,r.A)(e,v);return(0,_.jsx)(c.default.Part,(0,s.A)((0,s.A)({},d),{},{className:a,extra:o&&(0,_.jsx)(f.FormattedMessage,{id:"addText",moduleName:"FormInfo",children:e=>(0,_.jsxs)(l.Typography.Text,{className:x.A["list-btn"],onClick:t,children:[(0,_.jsx)(i.default,{type:"icon-tianjia"}),n||e]})})}))}),{}),renderChildren:e=>e};const j=y},89099:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=n(89379),s=n(53986),a=n(55199),l=n(83136),o=n.n(l),i=n(10986),c=n.n(i);const d="style_upload__t422Q__-vnKV",u="style_upload-list__Q9HDc__-vnKV",p="style_tips__3Gpnu__-vnKV";var m=n(19343),h=n(98434),f=n(47458),g=n(1488),A=n.n(g),x=n(17508),_=n(55431),v=n(70579);const y=["className","fileSize","maxLength","multiple","size","accept","children","renderTips","showUploadList","onSave","ossUpload","onUpload","getPermission","concurrentCount"],{useOnChange:j}=h.hooks,b=(0,f.createWithIntl)({importMessages:_.A,moduleName:"FormInfo"})((e=>{const{formatMessage:t}=(0,f.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:l,fileSize:i,maxLength:h,multiple:g,size:_,accept:j,children:b,renderTips:N,showUploadList:C,onSave:S,ossUpload:w,onUpload:F,getPermission:I,concurrentCount:P}=n,M=(0,s.A)(n,y),[k,T]=c()(M),O=k||[],{fileList:R,onFileSelected:E}=(0,x.lN)({multiple:g,onSave:S,onUpload:w||F,fileSize:i,maxLength:h,value:O,onChange:T,concurrentCount:P}),L=[...R,...O],V=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)(a.Space,{direction:"vertical",children:[(0,v.jsxs)("div",{align:"start",children:[(0,v.jsx)(x.Zi,(0,r.A)((0,r.A)({},A()(M,["value","onChange"])),{},{size:_,multiple:g,accept:j,className:o()(d,l),onChange:E,children:b})),V&&(0,v.jsx)("div",{className:p,children:V})]}),C&&L.length>0&&(0,v.jsx)(m.List,{className:u,dataSource:L,infoItemRenders:[],getPermission:I||(e=>"delete"===e),apis:{onDelete:e=>{const t=O.slice(0),n=t.indexOf(e);n>-1&&t.splice(n,1),T(t)}}})]})})),N=e=>j(e)(b);N.defaultProps={interceptor:"file-format"},N.Field=b;const C=N},92328:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(89379),s=n(53986),a=n(10986),l=n.n(a),o=n(98434),i=n(55199),c=n(69484);const d="style_money-input__Pyur7__-vnKV",u="style_money-description__9pFk4__-vnKV";var p=n(83136),m=n.n(p),h=n(34677),f=n.n(h),g=n(73884),A=n(70579);const x=["chineseEmpty","className","showError","errorDesc","transformMoneyToChinese","onBlur","moneyFormat"],{isNotEmpty:_}=o.util||o.formUtils,{useOnChange:v}=o.hooks,y=e=>{let{chineseEmpty:t,className:n,showError:a,errorDesc:o,transformMoneyToChinese:p,onBlur:h,moneyFormat:v}=e,y=(0,s.A)(e,x);const[j,b]=(0,g.useState)(""),[N,C]=l()(y),S=f()({controls:!1,precision:2,addonAfter:"\u5143"},y,{max:_(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)({},S),{},{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 _(t)?(Number(t)>Number(S.max)||_(S.min)&&Number(t)<Number(S.min))&&b("error"):b(""),_(t)?Number(t):null},onChange:e=>{C(e)},onBlur:e=>{h&&h(e,b)}})),(0,A.jsx)("div",{className:m()(u),children:"error"===j&&a?o:_(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)=>{"use strict";n.d(t,{$X:()=>C,Ay:()=>N,Wp:()=>S});var r=n(89379),s=n(53986),a=n(3382),l=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 f=["footerButtons","cancelText","completeText","nextText","items","withDecorator"],g=["formProps","title"],A=["onSubmit"],x=["formProps"],_=["children","stepSection"],v=["modalProps"],y="FormInfo",j=e=>{let{items:t,children:n}=e;const[r,s]=(0,l.useState)(0);return n({currentIndex:r,setCurrentIndex:s,stepCacheRef:(0,l.useRef)({}),isLastStep:r===t.length-1,currentProps:Object.assign({},t[r])})},b=e=>{let{footerButtons:t,cancelText:n,completeText:r,nextText:a,items:l,withDecorator:i}=e,v=(0,s.A)(e,f);return(0,m.A)(Object.assign({},v,{footerButtons:e=>{let{currentIndex:t,isLastStep:s}=e;const{footerButtons:i}=Object.assign({},l[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:s?r||(0,h.jsx)(c.FormattedMessage,{id:"Complete",moduleName:y}):a||(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:l,children:n=>{var r;let{currentIndex:a,isLastStep:o,setCurrentIndex:i,currentProps:c,stepCacheRef:u}=n;const{formProps:m,title:f}=c,x=(0,s.A)(c,g),_="function"===typeof m?m(t):m,{onSubmit:y}=_,j=(0,s.A)(_,A),b=Object.assign({},j.data,null===(r=u.current[a])||void 0===r?void 0:r.data);return e(Object.assign({},t,x,{currentIndex:a,isLastStep:o,setCurrentIndex:i,stepCacheRef:u,stepSection:(0,h.jsx)(p.Steps,{className:d.A["form-step-section"],current:a,items:l.map((e=>{let{title:t}=e;return{title:t}}))}),formProps:Object.assign({},j,{key:a,data:b,onSubmit:async function(e){u.current[a]={data:e};for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];const l=y&&await y(e,Object.assign({},t,{currentIndex:a,isLastStep:o,setCurrentIndex:i,currentProps:c,stepCacheRef:u}),...r);return v.autoClose&&!o&&!1!==l&&i((e=>e+1)),!!o&&l}})}))}});return"function"===typeof i?i(n,t):n(t)},formProps:e=>{let{formProps:t}=e,n=(0,s.A)(e,x);return Object.assign({},n,t)},children:e=>{let{children:t,stepSection:n}=e,r=(0,s.A)(e,_);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)(a.default,(0,r.A)({},b(Object.assign({},e,{className:d.A["form-modal"]})))),C=()=>{const e=(0,a.useModal)();return t=>e(b(Object.assign({},t,{className:d.A["form-modal"]})))},S=e=>{const t=C();if(!e.api){const{modalProps:n}=e,a=(0,s.A)(e,v);return(0,h.jsx)(p.Button,(0,r.A)((0,r.A)({},a),{},{onClick:()=>{t(n)}}))}return(0,h.jsx)(i.A,(0,r.A)((0,r.A)({},e),{},{modalFunc:t}))}},96252:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AddressInput:()=>x.NI,AddressSelect:()=>x.TQ,AdvancedSelect:()=>x.JL,Avatar:()=>x.eu,Cascader:()=>x.vx,DatePicker:()=>x.lr,DatePickerToday:()=>x.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:()=>x.d4,IndustrySelect:()=>x.ZN,Input:()=>x.pd,InputNumber:()=>x.YI,InputUpperCase:()=>x.h2,List:()=>l.A,MoneyInput:()=>x.F0,MultiField:()=>f.A,PhoneNumber:()=>x.go,Rate:()=>x.tt,SalaryInput:()=>x.lu,Select:()=>x.l6,SelectInnerInput:()=>_.A,Slider:()=>x.Ap,SuperSelect:()=>x.wD,SuperSelectTableList:()=>x.eM,SuperSelectUser:()=>x.Pg,Switch:()=>x.dO,TableList:()=>o.A,Text:()=>x.EY,TextArea:()=>x.fs,TimePicker:()=>x.AG,TreeSelect:()=>x.f7,TypeDateRangePicker:()=>x.w5,Upload:()=>x._O,default:()=>v,fieldDecorator:()=>a.E,fields:()=>a.A,formModule:()=>x.nk,useFormDrawer:()=>u.Xy,useFormModal:()=>c.Vl,useFormStepModal:()=>d.$X});var r=n(64261),s=n(2196),a=n(72297),l=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),f=n(97949),g=n(98434),A={};for(const y in g)["default","Form","FormItem","ErrorTip","fields","fieldDecorator","List","TableList","FormApiButton","FormModal","useFormModal","FormModalButton","FormStepModal","useFormStepModal","FormStepModalButton","FormDrawer","useFormDrawer","FormDrawerButton","MultiField","SelectInnerInput"].indexOf(y)<0&&(A[y]=()=>g[y]);n.d(t,A);var x=n(83799),_=n(18936);(0,r.A)(),s.A.fields=a.A,s.A.List=l.A,s.A.TableList=o.A,s.A.FormApiButton=i.A,s.A.FormModal=c.Ay,s.A.useFormModal=c.Vl,s.A.FormModalButton=c.W6,s.A.FormStepModal=d.Ay,s.A.useFormStepModal=d.$X,s.A.FormStepModalButton=d.Wp,s.A.FormDrawer=u.Ay,s.A.useFormDrawer=u.Xy,s.A.FormDrawerButton=u.WJ,s.A.Form=p.A,s.A.FormItem=m.A,s.A.ErrorTip=h.A,s.A.SubmitButton=g.SubmitButton,s.A.CancelButton=g.CancelButton,s.A.fieldDecorator=a.E,s.A.MultiField=f.A,s.A.useFormContext=g.useFormContext,s.A.hooks=g.hooks,s.A.widget=g.widget,s.A.utils=g.utils,s.A.formUtils=g.formUtils;const v=s.A},96339:(e,t,n)=>{"use strict";n.d(t,{A:()=>U});var r=n(53986),s=n(89379),a=n(73884),l=n(17508),o=n(40438),i=n(63908),c=n(3382),d=n(64671),u=n(55199),p=n(53202),m=n.n(p),h=n(33097),f=n.n(h),g=n(83136),A=n.n(g),x=n(51941),_=n(98434),v=n(34677),y=n.n(v);const j="style_upload-btn__-6XtP__-vnKV",b="style_square__UPkfA__-vnKV",N="style_is-loading__wx6Pd__-vnKV",C="style_upload-btn-tips__YtxWz__-vnKV",S="style_drop-tips__N-v59__-vnKV",w="style_preview-area__aV3SN__-vnKV";var F=n(18411),I=n(47458),P=n(55431),M=n(70579);const k=["image","width","height","borderRadius","preview","fileSize","accept","renderTips","getApi","shape","border"],T=["image","width","height","borderRadius","getApi","preview","fileSize","accept","renderTips","border","dropModalSize"],{useOnChange:O}=_.hooks,R=o.default.Avatar,E="FormInfo",L=(0,l.Ay)((e=>{let{className:t,icon:n,loading:r,value:a,gender:l,width:o,height:i,children:c,shape:p,defaultAvatar:m,displayAvatar:h,apis:g}=e;const x=(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(R,(0,s.A)((0,s.A)({},Object.assign({},"function"===typeof h?h(a):{id:f()(a,"id")})),{},{gender:l,width:64*o/i,height:64,shape:p,defaultAvatar:m,apis:g})),(0,M.jsx)("div",{className:C,children:n||(0,M.jsx)(d.default,{type:"icon-chuanzhaopian",size:16})}),c]});return(0,M.jsx)("div",{className:A()(t,j,{[N]:r,[b]:"square"===p||!(o&&o===i)}),style:{width:64*o/i},children:r?(0,M.jsx)(u.Spin,{children:x}):x})})),V=e=>{let t=e.split(","),n=t[1].substring(0,t[1].length-2),r=t[0].match(/:(.*?);/)[1],s=atob(n),a=s.length,l=new Uint8Array(a);for(;a--;)l[a]=s.charCodeAt(a);return new Blob([l],{type:r})},K=(0,a.forwardRef)(((e,t)=>{let{image:n,width:o,height:i,borderRadius:c,preview:p,fileSize:h,accept:f,renderTips:g,getApi:A,shape:_,border:v}=e,y=(0,r.A)(e,k);const j=(0,I.useIntl)({moduleName:E}),[b,N]=(0,a.useState)(0),C=(0,a.useRef)(null),[F,P]=(0,a.useState)(n),[T,O]=(0,a.useState)(1),[R,L]=(0,a.useState)(0),[K,D]=(0,a.useState)(""),B=(0,a.useRef)(null);(0,a.useLayoutEffect)((()=>{N(2*C.current.clientWidth/3)}),[]),A({getImage:()=>{const e=B.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([V(t.toDataURL())],F.name,{type:F.type})}});const z=()=>{D(B.current.getImage().toDataURL())},U=(0,x.useDebouncedCallback)(z,500);return(0,M.jsx)("div",{ref:C,children:(0,M.jsxs)(u.Row,{wrap:!1,align:"middle",children:[(0,M.jsx)(u.Col,{span:p?16:24,children:b&&(0,M.jsxs)(u.Space,{direction:"vertical",children:[(0,M.jsx)(m(),(0,s.A)((0,s.A)({},y),{},{ref:B,image:F,scale:T,rotate:R,width:b-2*v,height:i*b/o-2*v*i/o,border:v,color:[0,0,0,.6],borderRadius:c*b/o,onImageReady:z,onImageChange:U})),(0,M.jsx)("div",{className:S,children:g("".concat(j.formatMessage({id:"PictureFormat"})).concat(f.map((e=>e.replace(/^\./,""))).join(" ")," ").concat(j.formatMessage({id:"ImageSize"})).concat(j.formatMessage({id:"NotExceeding"},{size:h})),{accept:f,fileSize:h})}),(0,M.jsxs)(u.Row,{gutter:14,align:"middle",children:[(0,M.jsx)(u.Col,{children:(0,M.jsx)(u.Tooltip,{title:j.formatMessage({id:"Rotate"}),placement:"bottom",children:(0,M.jsx)(d.default,{type:"icon-xuanzhuan",onClick:()=>{L((e=>(e-90)%360))}})})}),(0,M.jsx)(u.Col,{children:(0,M.jsx)(u.Tooltip,{title:j.formatMessage({id:"ImageFull"}),placement:"bottom",children:(0,M.jsx)(d.default,{type:"icon-chongman",onClick:()=>{O(1)}})})}),(0,M.jsx)(u.Col,{flex:1,children:(0,M.jsx)(u.Slider,{tooltip:{placement:"bottom",formatter:()=>j.formatMessage({id:"Size"})},value:T,step:.05,min:.2,max:3,onChange:O})}),(0,M.jsx)(u.Col,{children:(0,M.jsx)(l.FI,{accept:f,onChange:e=>{e[0].size>1024*h*1024?u.message.error(j.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:h})):(L(0),O(1),P(e[0]))},children:j.formatMessage({id:"ReUpload"})})})]})]})}),p&&(0,M.jsx)(u.Col,{span:8,children:(0,M.jsx)("div",{className:w,children:(0,M.jsxs)(u.Space,{direction:"vertical",children:[(0,M.jsx)(u.Avatar,{src:K,shape:_,style:{width:b/2-36,height:(b/2-36)*i/o}}),(0,M.jsx)("div",{style:{textAlign:"center"},children:j.formatMessage({id:"Preview"})})]})})})]})})}));K.defaultProps={border:1};const D=()=>{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:a,width:l,height:o,borderRadius:i,getApi:c,preview:d,fileSize:u,accept:p,renderTips:m,border:h,dropModalSize:f}=n,g=(0,r.A)(n,T);return e((0,s.A)((0,s.A)({},g),{},{size:f,children:(0,M.jsx)(K,{preview:d,fileSize:u,accept:p,getApi:c,renderTips:m,width:l,height:o,shape:"circle"===t.shape&&t.width&&t.width===t.height?"circle":"square",borderRadius:i,image:a,border:h,scale:1,rotate:0})}))}},B=(0,I.createWithIntl)({importMessages:P.A,moduleName:"FormInfo"})((e=>{var t;let{value:n,gender:r,fileSize:s,accept:l,openEditor:o,apis:c,renderTips:d,onChange:p,shape:m,width:h,height:f,title:g,border:A,icon:x,dropModalSize:_,defaultAvatar:v,displayAvatar:j}=e;const[b,N]=(0,a.useState)(!1),{apis:C}=(0,i.usePreset)(),S=y()({},C,c),w=S.ossUpload||S.upload||(null===(t=S.file)||void 0===t?void 0:t.upload),F=(0,a.useRef)(null),P=D(),k=(0,I.useIntl)({moduleName:E});return(0,M.jsx)(L,{value:n,gender:r,accept:l,width:h,height:f,shape:m,icon:x,loading:b,defaultAvatar:v,displayAvatar:j,apis:S,onChange:e=>{if(e[0].size>1024*s*1024)return void u.message.error(k.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:s}));const t=e=>(N(!0),w({file:e}).then((e=>{let{data:t}=e;0===t.code?p(t.data):u.message.error(k.formatMessage({id:"UploadFailed"},{msg:t.msg?":"+t.msg:""}))})).finally((()=>{N(!1)})));o?P({image:e[0],width:h,height:f,title:g,shape:m,border:A,dropModalSize:_,getApi:e=>F.current=e,fileSize:s,accept:l,renderTips:d,onConfirm:()=>{t(F.current.getImage())}}):t(e[0])}})}));B.defaultProps={defaultAvatar:F.A,openEditor:!0,fileSize:2,width:200,height:200,dropModalSize:"small",border:1,title:(0,M.jsx)(I.IntlProvider,{importMessages:P.A,moduleName:"FormInfo",children:(0,M.jsx)(I.FormattedMessage,{id:"Crop",moduleName:"FormInfo"})}),accept:[".jpg",".png",".jpeg"],renderTips:e=>e,shape:"circle"};const z=e=>O(e)(B);z.defaultProps={},z.Field=B,z.useDropModal=D;const U=z},97056:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(89379),s=n(53986),a=n(85846),l=n(83560),o=n(55199),i=n(41740),c=n.n(i),d=n(73884),u=n(83136),p=n.n(u),m=n(47094),h=n(70579);const f=["list","className"],g=(0,d.forwardRef)(((e,t)=>{const[n,r]=(0,d.useState)(new Map);return(0,d.useImperativeHandle)(t,(()=>e=>{setTimeout((()=>{r((t=>{if(t.has(e.key))return t;const n=c()(t);return n.set(e.key,e.props),n}))}))}),[]),(0,h.jsxs)(o.Row,{wrap:!1,className:m.A["table-list-header"],style:{"--col-width":"".concat(100/n.size,"%")},children:[Array.from(n).map((e=>{let[t,{label:n,rule:r}]=e;return(0,h.jsx)(o.Col,{className:p()({[m.A["is-req"]]:0===(r||"").split(" ").indexOf("REQ")}),children:n},t)})),(0,h.jsx)(o.Col,{className:m.A["table-list-extra"]})]})})),A=e=>{let{list:t,className:n}=e,i=(0,s.A)(e,f);const c=(0,d.useRef)(null);return(0,h.jsx)(a.A,(0,r.A)((0,r.A)({},i),{},{className:p()(n,m.A["table-list"]),list:t,renderChildren:e=>(0,h.jsxs)("div",{className:m.A["table-list-inner"],children:[(0,h.jsx)(g,{ref:c}),e]}),listRender:e=>{let{list:t,groupArgs:n,extra:r,key:s}=e;return(0,h.jsxs)(o.Row,{wrap:!1,align:"top",style:{"--col-width":"".concat(100/t.length,"%")},children:[(0,h.jsx)(l.A,{list:t,groupArgs:n,itemRender:(e,t)=>(c.current(t),(0,h.jsx)(o.Col,{className:m.A["table-list-field"],flex:1,children:e}))}),(0,h.jsx)(o.Col,{className:m.A["table-list-extra"],children:r})]},s)}}))}},97949:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var r=n(89379),s=n(53986),a=n(73884),l=n(55199),o=n(98434),i=n(47458),c=n(64671),d=n(33097),u=n.n(d),p=n(47094),m=n(83136),h=n.n(m),f=n(55431),g=n(70579);const A=["name","label","rule","field","defaultLength","minLength","maxLength"],x=(0,i.createWithIntl)({moduleName:"FormInfo",importMessages:f.A})((e=>{let{name:t,label:n,rule:d,field:m,defaultLength:f,minLength:x,maxLength:_}=e,v=(0,s.A)(e,A);const y=(0,a.useRef)(null),j=m,b=(0,o.useFormContext)(),{formData:N}=b,C=!(_&&_<=u()(N,"".concat(t,".length"),0)),{formatMessage:S}=(0,i.useIntl)({moduleName:"FormInfo"});return(0,g.jsxs)("div",{className:h()(p.A["mult-field"],"mult-field"),children:[(0,g.jsx)(o.GroupList,{ref:y,name:t,defaultLength:Math.max(f,x,1),children:function(){for(var e=arguments.length,s=new Array(e),a=0;a<e;a++)s[a]=arguments[a];const{id:o,index:i,onRemove:u,length:m}=(e=>{if("object"===typeof e[0])return e[0];const[t,{index:n,onRemove:r,length:s}]=e;return{id:t,index:n,onRemove:r,length:s}})(s);return(0,g.jsxs)("div",{className:h()(p.A["mult-field-item"],"mult-field-item",{[p.A["first-item"]]:0===i}),children:[(0,g.jsx)(j,(0,r.A)((0,r.A)({},v),{},{name:t,label:n,rule:d})),(0,g.jsxs)("div",{className:h()("form-info-mult-option"),children:[(0,g.jsx)("div",{className:h()(p.A["react-form__field-label"],"react-form__field-label","mult-field-delete--label")}),(0,g.jsx)(l.Button,{icon:(0,g.jsx)(c.default,{type:"shanchu"}),onClick:u,disabled:m<=Math.max(x,1)})]})]},o)}}),C&&(0,g.jsx)("div",{className:h()("form-info-mult-add-btn"),children:(0,g.jsxs)(l.Button,{className:p.A["mult-field-add-btn"],type:"dashed",onClick:()=>y.current.onAdd(),children:[(0,g.jsx)(c.default,{type:"tianjia"}),S({id:"addSomeThing"},{label:n})]})})]})}));x.defaultProps={minLength:1,defaultLength:1};const _=x},99140:(e,t,n)=>{var r=n(37303);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}}}]);
2
- //# sourceMappingURL=8278.c3aac300.chunk.js.map