@kne-components/components-core 0.4.66 → 0.4.67

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 (125) hide show
  1. package/build/asset-manifest.json +91 -91
  2. package/build/index.html +1 -1
  3. package/build/remoteEntry.js +1 -1
  4. package/build/remoteEntry.js.map +1 -1
  5. package/build/static/css/111.f68f5313.chunk.css +2 -0
  6. package/build/static/css/{111.af43bf41.chunk.css.map → 111.f68f5313.chunk.css.map} +1 -1
  7. package/build/static/css/2753.e7949ab3.chunk.css +2 -0
  8. package/build/static/css/{2753.65190152.chunk.css.map → 2753.e7949ab3.chunk.css.map} +1 -1
  9. package/build/static/css/{3771.a16d89be.chunk.css → 3771.ff018f27.chunk.css} +2 -2
  10. package/build/static/css/{3771.a16d89be.chunk.css.map → 3771.ff018f27.chunk.css.map} +1 -1
  11. package/build/static/css/{3790.5abb16a3.chunk.css → 3790.4526e53c.chunk.css} +2 -2
  12. package/build/static/css/{3790.5abb16a3.chunk.css.map → 3790.4526e53c.chunk.css.map} +1 -1
  13. package/build/static/css/3841.c7026264.chunk.css +2 -0
  14. package/build/static/css/{3841.9195867c.chunk.css.map → 3841.c7026264.chunk.css.map} +1 -1
  15. package/build/static/css/3874.5d044f62.chunk.css +2 -0
  16. package/build/static/css/{3874.4a2de703.chunk.css.map → 3874.5d044f62.chunk.css.map} +1 -1
  17. package/build/static/css/{4302.dad10603.chunk.css → 4302.651d68fa.chunk.css} +2 -2
  18. package/build/static/css/{4302.dad10603.chunk.css.map → 4302.651d68fa.chunk.css.map} +1 -1
  19. package/build/static/css/4666.8f03839e.chunk.css +2 -0
  20. package/build/static/css/{4666.2c927cd4.chunk.css.map → 4666.8f03839e.chunk.css.map} +1 -1
  21. package/build/static/css/5628.e4fcb2cc.chunk.css +12 -0
  22. package/build/static/css/{5628.97e556c6.chunk.css.map → 5628.e4fcb2cc.chunk.css.map} +1 -1
  23. package/build/static/css/{6763.3f4c0ba1.chunk.css → 6763.a832c4fd.chunk.css} +2 -2
  24. package/build/static/css/{6763.3f4c0ba1.chunk.css.map → 6763.a832c4fd.chunk.css.map} +1 -1
  25. package/build/static/css/7227.031856f2.chunk.css +2 -0
  26. package/build/static/css/{7227.2a0a9dd0.chunk.css.map → 7227.031856f2.chunk.css.map} +1 -1
  27. package/build/static/css/7372.5d6553e3.chunk.css +2 -0
  28. package/build/static/css/{7372.e23f18b8.chunk.css.map → 7372.5d6553e3.chunk.css.map} +1 -1
  29. package/build/static/css/{760.7bd56434.chunk.css → 760.27c95225.chunk.css} +2 -2
  30. package/build/static/css/{760.7bd56434.chunk.css.map → 760.27c95225.chunk.css.map} +1 -1
  31. package/build/static/css/{8221.99a45fda.chunk.css → 8221.bcf604af.chunk.css} +2 -2
  32. package/build/static/css/{8221.99a45fda.chunk.css.map → 8221.bcf604af.chunk.css.map} +1 -1
  33. package/build/static/css/8377.1bbf012a.chunk.css +2 -0
  34. package/build/static/css/{8377.a8cb24d1.chunk.css.map → 8377.1bbf012a.chunk.css.map} +1 -1
  35. package/build/static/css/{8593.11db5d93.chunk.css → 8593.e59836d7.chunk.css} +2 -2
  36. package/build/static/css/{8593.11db5d93.chunk.css.map → 8593.e59836d7.chunk.css.map} +1 -1
  37. package/build/static/css/9387.59954fd1.chunk.css +2 -0
  38. package/build/static/css/{9387.d02253f6.chunk.css.map → 9387.59954fd1.chunk.css.map} +1 -1
  39. package/build/static/css/9556.27566499.chunk.css +2 -0
  40. package/build/static/css/{9556.828a556c.chunk.css.map → 9556.27566499.chunk.css.map} +1 -1
  41. package/build/static/css/9666.a4e2b163.chunk.css +2 -0
  42. package/build/static/css/{9666.d8c91149.chunk.css.map → 9666.a4e2b163.chunk.css.map} +1 -1
  43. package/build/static/js/{111.f812617f.chunk.js → 111.f4b5ea98.chunk.js} +2 -2
  44. package/build/static/js/{111.f812617f.chunk.js.map → 111.f4b5ea98.chunk.js.map} +1 -1
  45. package/build/static/js/{196.74a1326d.chunk.js → 196.80a3177c.chunk.js} +1 -1
  46. package/build/static/js/{2833.2cdd46e6.chunk.js → 2833.1d09d414.chunk.js} +2 -2
  47. package/build/static/js/2833.1d09d414.chunk.js.map +1 -0
  48. package/build/static/js/3771.0d3884d1.chunk.js +2 -0
  49. package/build/static/js/{3771.e50184d9.chunk.js.map → 3771.0d3884d1.chunk.js.map} +1 -1
  50. package/build/static/js/{3790.03afba35.chunk.js → 3790.595590c0.chunk.js} +2 -2
  51. package/build/static/js/{3790.03afba35.chunk.js.map → 3790.595590c0.chunk.js.map} +1 -1
  52. package/build/static/js/{3841.de64ea1f.chunk.js → 3841.bcb1e477.chunk.js} +2 -2
  53. package/build/static/js/{3841.de64ea1f.chunk.js.map → 3841.bcb1e477.chunk.js.map} +1 -1
  54. package/build/static/js/{3856.3bc4f554.chunk.js → 3856.9b306735.chunk.js} +2 -2
  55. package/build/static/js/{3856.3bc4f554.chunk.js.map → 3856.9b306735.chunk.js.map} +1 -1
  56. package/build/static/js/{3874.43b3a191.chunk.js → 3874.f239c12f.chunk.js} +3 -3
  57. package/build/static/js/{3874.43b3a191.chunk.js.map → 3874.f239c12f.chunk.js.map} +1 -1
  58. package/build/static/js/4302.1e65d1a3.chunk.js +2 -0
  59. package/build/static/js/{4302.77e57d61.chunk.js.map → 4302.1e65d1a3.chunk.js.map} +1 -1
  60. package/build/static/js/4474.25d1469a.chunk.js +2 -0
  61. package/build/static/js/{4474.19db5271.chunk.js.map → 4474.25d1469a.chunk.js.map} +1 -1
  62. package/build/static/js/{4666.ced49dea.chunk.js → 4666.da12dcad.chunk.js} +3 -3
  63. package/build/static/js/{4666.ced49dea.chunk.js.map → 4666.da12dcad.chunk.js.map} +1 -1
  64. package/build/static/js/{2363.e9d2eed8.chunk.js → 4744.68f457ed.chunk.js} +2 -2
  65. package/build/static/js/{2363.e9d2eed8.chunk.js.map → 4744.68f457ed.chunk.js.map} +1 -1
  66. package/build/static/js/5628.92cde7ac.chunk.js +2 -0
  67. package/build/static/js/{5628.72e29acc.chunk.js.map → 5628.92cde7ac.chunk.js.map} +1 -1
  68. package/build/static/js/6460.c05b642e.chunk.js +9 -0
  69. package/build/static/js/6460.c05b642e.chunk.js.map +1 -0
  70. package/build/static/js/6763.f212e86e.chunk.js +2 -0
  71. package/build/static/js/{6763.3a0a852f.chunk.js.map → 6763.f212e86e.chunk.js.map} +1 -1
  72. package/build/static/js/{7227.d189f8e3.chunk.js → 7227.9ba0d1ca.chunk.js} +3 -3
  73. package/build/static/js/{7227.d189f8e3.chunk.js.map → 7227.9ba0d1ca.chunk.js.map} +1 -1
  74. package/build/static/js/{7372.7e6e421a.chunk.js → 7372.2abd5112.chunk.js} +2 -2
  75. package/build/static/js/{7372.7e6e421a.chunk.js.map → 7372.2abd5112.chunk.js.map} +1 -1
  76. package/build/static/js/{760.185e0aa5.chunk.js → 760.64ddb4b7.chunk.js} +2 -2
  77. package/build/static/js/{760.185e0aa5.chunk.js.map → 760.64ddb4b7.chunk.js.map} +1 -1
  78. package/build/static/js/7857.07e102fc.chunk.js +2 -0
  79. package/build/static/js/{7857.6ed907e0.chunk.js.map → 7857.07e102fc.chunk.js.map} +1 -1
  80. package/build/static/js/8221.5cde284c.chunk.js +2 -0
  81. package/build/static/js/{8221.c93d129f.chunk.js.map → 8221.5cde284c.chunk.js.map} +1 -1
  82. package/build/static/js/{8377.f4903a9e.chunk.js → 8377.32461eb9.chunk.js} +2 -2
  83. package/build/static/js/{8377.f4903a9e.chunk.js.map → 8377.32461eb9.chunk.js.map} +1 -1
  84. package/build/static/js/8593.53fd497a.chunk.js +2 -0
  85. package/build/static/js/{8593.18b7475f.chunk.js.map → 8593.53fd497a.chunk.js.map} +1 -1
  86. package/build/static/js/{9223.800c4315.chunk.js → 9223.0adf8af5.chunk.js} +2 -2
  87. package/build/static/js/9223.0adf8af5.chunk.js.map +1 -0
  88. package/build/static/js/9556.59fe644a.chunk.js +3 -0
  89. package/build/static/js/{9556.2fa191f6.chunk.js.map → 9556.59fe644a.chunk.js.map} +1 -1
  90. package/build/static/js/9666.51562fa6.chunk.js +2 -0
  91. package/build/static/js/{9666.61a8e69f.chunk.js.map → 9666.51562fa6.chunk.js.map} +1 -1
  92. package/build/static/js/{main.94eeacc5.js → main.3892a3eb.js} +2 -2
  93. package/build/static/js/{main.94eeacc5.js.map → main.3892a3eb.js.map} +1 -1
  94. package/package.json +2 -2
  95. package/build/static/css/111.af43bf41.chunk.css +0 -2
  96. package/build/static/css/2753.65190152.chunk.css +0 -2
  97. package/build/static/css/3841.9195867c.chunk.css +0 -2
  98. package/build/static/css/3874.4a2de703.chunk.css +0 -2
  99. package/build/static/css/4666.2c927cd4.chunk.css +0 -2
  100. package/build/static/css/5628.97e556c6.chunk.css +0 -12
  101. package/build/static/css/7227.2a0a9dd0.chunk.css +0 -2
  102. package/build/static/css/7372.e23f18b8.chunk.css +0 -2
  103. package/build/static/css/8377.a8cb24d1.chunk.css +0 -2
  104. package/build/static/css/9387.d02253f6.chunk.css +0 -2
  105. package/build/static/css/9556.828a556c.chunk.css +0 -2
  106. package/build/static/css/9666.d8c91149.chunk.css +0 -2
  107. package/build/static/js/2833.2cdd46e6.chunk.js.map +0 -1
  108. package/build/static/js/3771.e50184d9.chunk.js +0 -2
  109. package/build/static/js/4302.77e57d61.chunk.js +0 -2
  110. package/build/static/js/4474.19db5271.chunk.js +0 -2
  111. package/build/static/js/5628.72e29acc.chunk.js +0 -2
  112. package/build/static/js/6460.02f933ea.chunk.js +0 -9
  113. package/build/static/js/6460.02f933ea.chunk.js.map +0 -1
  114. package/build/static/js/6763.3a0a852f.chunk.js +0 -2
  115. package/build/static/js/7857.6ed907e0.chunk.js +0 -2
  116. package/build/static/js/8221.c93d129f.chunk.js +0 -2
  117. package/build/static/js/8593.18b7475f.chunk.js +0 -2
  118. package/build/static/js/9223.800c4315.chunk.js.map +0 -1
  119. package/build/static/js/9556.2fa191f6.chunk.js +0 -3
  120. package/build/static/js/9666.61a8e69f.chunk.js +0 -2
  121. /package/build/static/js/{3874.43b3a191.chunk.js.LICENSE.txt → 3874.f239c12f.chunk.js.LICENSE.txt} +0 -0
  122. /package/build/static/js/{4666.ced49dea.chunk.js.LICENSE.txt → 4666.da12dcad.chunk.js.LICENSE.txt} +0 -0
  123. /package/build/static/js/{6460.02f933ea.chunk.js.LICENSE.txt → 6460.c05b642e.chunk.js.LICENSE.txt} +0 -0
  124. /package/build/static/js/{7227.d189f8e3.chunk.js.LICENSE.txt → 7227.9ba0d1ca.chunk.js.LICENSE.txt} +0 -0
  125. /package/build/static/js/{9556.2fa191f6.chunk.js.LICENSE.txt → 9556.59fe644a.chunk.js.LICENSE.txt} +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";(globalThis.webpackChunk_kne_components_components_core=globalThis.webpackChunk_kne_components_components_core||[]).push([[760,2908],{29053(s,e,t){t.r(e),t.d(e,{computedIsPass:()=>m,default:()=>b,usePermissions:()=>_,usePermissionsPass:()=>h});var n=t(73884),r=t(55199),o=t(33097),i=t.n(o),l=t(83136),u=t.n(l);const a="style_outer__vbHB9__NN-KB";var c=t(72752),p=t(70579);const m=s=>{let{permissions:e,request:t}=s;return!(Array.isArray(t)&&t.length>0)||t.some(s=>(e||[]).indexOf(s)>-1)},_=()=>{const{global:s}=(0,c.useGlobalContext)(),{permissions:e,permissionsPath:t}=(0,c.usePreset)();return{permissions:s.permissions||e||t&&i()(s,t)||[]}},h=s=>{let{request:e}=s;const{permissions:t}=_();return m({permissions:t,request:e})},b=s=>{let{type:e="hidden",className:t,tagName:o="span",message:i="\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458",request:l,children:c,...m}=s;const _=h({request:l});return"function"===typeof c?c({isPass:_,type:e,request:l}):!0===_?c:"error"===e?(0,p.jsx)(r.Result,{status:"403",subTitle:i}):"tooltip"===e?(0,p.jsx)(r.Tooltip,{title:i,children:(0,n.createElement)(o,{...m,className:u()(a,t)},c)}):null}}}]);
2
- //# sourceMappingURL=760.185e0aa5.chunk.js.map
1
+ "use strict";(globalThis.webpackChunk_kne_components_components_core=globalThis.webpackChunk_kne_components_components_core||[]).push([[760,2908],{29053(s,e,t){t.r(e),t.d(e,{computedIsPass:()=>m,default:()=>b,usePermissions:()=>_,usePermissionsPass:()=>h});var n=t(73884),r=t(55199),o=t(33097),i=t.n(o),u=t(83136),l=t.n(u);const a="style_outer__vbHB9__urHvB";var c=t(72752),p=t(70579);const m=s=>{let{permissions:e,request:t}=s;return!(Array.isArray(t)&&t.length>0)||t.some(s=>(e||[]).indexOf(s)>-1)},_=()=>{const{global:s}=(0,c.useGlobalContext)(),{permissions:e,permissionsPath:t}=(0,c.usePreset)();return{permissions:s.permissions||e||t&&i()(s,t)||[]}},h=s=>{let{request:e}=s;const{permissions:t}=_();return m({permissions:t,request:e})},b=s=>{let{type:e="hidden",className:t,tagName:o="span",message:i="\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458",request:u,children:c,...m}=s;const _=h({request:u});return"function"===typeof c?c({isPass:_,type:e,request:u}):!0===_?c:"error"===e?(0,p.jsx)(r.Result,{status:"403",subTitle:i}):"tooltip"===e?(0,p.jsx)(r.Tooltip,{title:i,children:(0,n.createElement)(o,{...m,className:l()(a,t)},c)}):null}}}]);
2
+ //# sourceMappingURL=760.64ddb4b7.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/760.185e0aa5.chunk.js","mappings":"mUACA,QAAwB,4B,0BCMjB,MAAMA,EAAiBC,IAA6B,IAA5B,YAACC,EAAW,QAAEC,GAAQF,EACjD,QAAOG,MAAMC,QAAQF,IAAYA,EAAQG,OAAS,IAAIH,EAAQI,KAAMC,IAAgBN,GAAe,IAAIO,QAAQD,IAAe,IAGrHE,EAAiBA,KAC1B,MAAM,OAACC,IAAUC,EAAAA,EAAAA,qBACX,YAACV,EAAW,gBAAEW,IAAmBC,EAAAA,EAAAA,aACvC,MAAO,CACHZ,YAAaS,EAAOT,aAAeA,GAAgBW,GAAmBE,IAAIJ,EAAQE,IAAqB,KAIlGG,EAAqBC,IAAgB,IAAf,QAACd,GAAQc,EACxC,MAAM,YAACf,GAAeQ,IACtB,OAAOV,EAAe,CAACE,cAAaC,aAkCxC,EA/BoBe,IAQQ,IARP,KACIC,EAAO,SAAQ,UACfC,EAAS,QACTC,EAAU,OAAM,QAChBC,EAAU,2EAAc,QACxBnB,EAAO,SACPoB,KACGC,GACNN,EAClB,MAAMO,EAAST,EAAmB,CAACb,YACnC,MAAwB,oBAAboB,EACAA,EAAS,CAACE,SAAQN,OAAMhB,aAGpB,IAAXsB,EACOF,EAGE,UAATJ,GACOO,EAAAA,EAAAA,KAACC,EAAAA,OAAM,CAACC,OAAO,MAAMC,SAAUP,IAG7B,YAATH,GACQO,EAAAA,EAAAA,KAACI,EAAAA,QAAO,CAACC,MAAOT,EAAQC,UAC3BS,EAAAA,EAAAA,eAAcX,EAAS,IAAIG,EAAOJ,UAAWa,IAAWC,EAAgBd,IAAaG,KAIvF,K","sources":["webpack://@kne-components/components-core/./src/components/Permissions/style.module.scss?e327","components/Permissions/index.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"outer\":\"style_outer__vbHB9__NN-KB\"};","import {createElement} from \"react\";\nimport {Result, Tooltip} from \"antd\";\nimport get from \"lodash/get\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport {useGlobalContext, usePreset} from \"@components/Global\";\n\nexport const computedIsPass = ({permissions, request}) => {\n return Array.isArray(request) && request.length > 0 ? request.some((currentKey) => (permissions || []).indexOf(currentKey) > -1) : true;\n};\n\nexport const usePermissions = () => {\n const {global} = useGlobalContext();\n const {permissions, permissionsPath} = usePreset();\n return {\n permissions: global.permissions || permissions || (permissionsPath && get(global, permissionsPath)) || [],\n };\n};\n\nexport const usePermissionsPass = ({request}) => {\n const {permissions} = usePermissions();\n return computedIsPass({permissions, request});\n};\n\nconst Permissions = ({\n type = 'hidden',\n className,\n tagName = 'span',\n message = '您暂无权限,请联系管理员',\n request,\n children,\n ...props\n }) => {\n const isPass = usePermissionsPass({request});\n if (typeof children === \"function\") {\n return children({isPass, type, request});\n }\n\n if (isPass === true) {\n return children;\n }\n\n if (type === \"error\") {\n return <Result status=\"403\" subTitle={message}/>;\n }\n\n if (type === \"tooltip\") {\n return (<Tooltip title={message}>\n {createElement(tagName, {...props, className: classnames(style[\"outer\"], className)}, children)}\n </Tooltip>);\n }\n\n return null;\n};\n\nexport default Permissions;\n"],"names":["computedIsPass","_ref","permissions","request","Array","isArray","length","some","currentKey","indexOf","usePermissions","global","useGlobalContext","permissionsPath","usePreset","get","usePermissionsPass","_ref2","_ref3","type","className","tagName","message","children","props","isPass","_jsx","Result","status","subTitle","Tooltip","title","createElement","classnames","style"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/760.64ddb4b7.chunk.js","mappings":"mUACA,QAAwB,4B,0BCMjB,MAAMA,EAAiBC,IAA6B,IAA5B,YAACC,EAAW,QAAEC,GAAQF,EACjD,QAAOG,MAAMC,QAAQF,IAAYA,EAAQG,OAAS,IAAIH,EAAQI,KAAMC,IAAgBN,GAAe,IAAIO,QAAQD,IAAe,IAGrHE,EAAiBA,KAC1B,MAAM,OAACC,IAAUC,EAAAA,EAAAA,qBACX,YAACV,EAAW,gBAAEW,IAAmBC,EAAAA,EAAAA,aACvC,MAAO,CACHZ,YAAaS,EAAOT,aAAeA,GAAgBW,GAAmBE,IAAIJ,EAAQE,IAAqB,KAIlGG,EAAqBC,IAAgB,IAAf,QAACd,GAAQc,EACxC,MAAM,YAACf,GAAeQ,IACtB,OAAOV,EAAe,CAACE,cAAaC,aAkCxC,EA/BoBe,IAQQ,IARP,KACIC,EAAO,SAAQ,UACfC,EAAS,QACTC,EAAU,OAAM,QAChBC,EAAU,2EAAc,QACxBnB,EAAO,SACPoB,KACGC,GACNN,EAClB,MAAMO,EAAST,EAAmB,CAACb,YACnC,MAAwB,oBAAboB,EACAA,EAAS,CAACE,SAAQN,OAAMhB,aAGpB,IAAXsB,EACOF,EAGE,UAATJ,GACOO,EAAAA,EAAAA,KAACC,EAAAA,OAAM,CAACC,OAAO,MAAMC,SAAUP,IAG7B,YAATH,GACQO,EAAAA,EAAAA,KAACI,EAAAA,QAAO,CAACC,MAAOT,EAAQC,UAC3BS,EAAAA,EAAAA,eAAcX,EAAS,IAAIG,EAAOJ,UAAWa,IAAWC,EAAgBd,IAAaG,KAIvF,K","sources":["webpack://@kne-components/components-core/./src/components/Permissions/style.module.scss?e327","components/Permissions/index.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"outer\":\"style_outer__vbHB9__urHvB\"};","import {createElement} from \"react\";\nimport {Result, Tooltip} from \"antd\";\nimport get from \"lodash/get\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport {useGlobalContext, usePreset} from \"@components/Global\";\n\nexport const computedIsPass = ({permissions, request}) => {\n return Array.isArray(request) && request.length > 0 ? request.some((currentKey) => (permissions || []).indexOf(currentKey) > -1) : true;\n};\n\nexport const usePermissions = () => {\n const {global} = useGlobalContext();\n const {permissions, permissionsPath} = usePreset();\n return {\n permissions: global.permissions || permissions || (permissionsPath && get(global, permissionsPath)) || [],\n };\n};\n\nexport const usePermissionsPass = ({request}) => {\n const {permissions} = usePermissions();\n return computedIsPass({permissions, request});\n};\n\nconst Permissions = ({\n type = 'hidden',\n className,\n tagName = 'span',\n message = '您暂无权限,请联系管理员',\n request,\n children,\n ...props\n }) => {\n const isPass = usePermissionsPass({request});\n if (typeof children === \"function\") {\n return children({isPass, type, request});\n }\n\n if (isPass === true) {\n return children;\n }\n\n if (type === \"error\") {\n return <Result status=\"403\" subTitle={message}/>;\n }\n\n if (type === \"tooltip\") {\n return (<Tooltip title={message}>\n {createElement(tagName, {...props, className: classnames(style[\"outer\"], className)}, children)}\n </Tooltip>);\n }\n\n return null;\n};\n\nexport default Permissions;\n"],"names":["computedIsPass","_ref","permissions","request","Array","isArray","length","some","currentKey","indexOf","usePermissions","global","useGlobalContext","permissionsPath","usePreset","get","usePermissionsPass","_ref2","_ref3","type","className","tagName","message","children","props","isPass","_jsx","Result","status","subTitle","Tooltip","title","createElement","classnames","style"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ (globalThis.webpackChunk_kne_components_components_core=globalThis.webpackChunk_kne_components_components_core||[]).push([[4671,7857],{73025(e,t,o){"use strict";o.d(t,{A:()=>c});var r=o(73884),n=o(87558),l=o(96418),a=o(55199),s=o(70579);const c=e=>{let{api:t,modalProps:o={},modalFunc:c,onError:i,...u}=e;const d=(0,n.useFetch)(Object.assign({},t,{auto:!1})),{isLoading:f,data:h,error:m,refresh:p}=d,_=(0,l.default)(i),b=(0,l.default)(()=>{const e=c("function"===typeof o?o({data:h,fetchApi:d,close:()=>{e.close()}}):o)});return(0,r.useEffect)(()=>{f||(m?_(m):h&&b())},[f,m,h,b,_]),(0,s.jsx)(a.Button,{...u,loading:f,onClick:()=>{p({onSuccess:()=>{}})}})}},76801(e,t,o){"use strict";o.d(t,{c:()=>n,h:()=>r});const r=()=>document.querySelector(".simplebar-content-wrapper"),n=()=>document.querySelector(".container-body")},25963(e,t,o){"use strict";o.r(t),o.d(t,{AppDrawer:()=>k,DrawerButton:()=>T,default:()=>$,useDrawer:()=>I});var r=o(55199),n=o(83136),l=o.n(n);const a="style_drawer__hA8bn__urHvB",s="style_drawer-outer__vuEIf__urHvB",c="style_drawer-title__71eaW__urHvB",i="style_drawer-body__frw9I__urHvB",u="style_is-disabled-scroller__ZsITw__urHvB",d="style_drawer-body-inner__lci9Z__urHvB",f="style_drawer-footer__1g8o1__urHvB",h="style_drawer-close__bpxnp__urHvB",m=e=>({"en-US":()=>o.e(3172).then(o.bind(o,23172)),"zh-CN":()=>o.e(5254).then(o.bind(o,95254))}[e]());var p=o(47458),_=o(73884);const b=()=>{const[e,t]=(0,_.useState)([]);return[e,(0,_.useCallback)(e=>(t(t=>[...t,e]),()=>{t(t=>t.filter(t=>t!==e))}),[])]};var g=o(70579);const y=(0,_.forwardRef)((e,t)=>{let{config:o}=e;const[n,l]=(0,_.useState)(!0),[a,s]=(0,_.useState)(o),c=function(){l(!1);for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];const r=t.some(e=>e&&e.triggerCancel);a.onClose&&r&&a.onClose(()=>{},...t.slice(1))};return(0,_.useImperativeHandle)(t,()=>({destroy:c,update:e=>{s(t=>({...t,...e}))}})),(0,g.jsx)(r.Drawer,{...a,ref:t,open:n,onClose:c})});let v=0;function w(e){return{...e}}const C=[],x=(0,_.memo)((0,_.forwardRef)((e,t)=>{const[o,r]=b();return(0,_.useImperativeHandle)(t,()=>({patchElement:r}),[r]),(0,g.jsx)(g.Fragment,{children:o})}));const j=function(){const e=(0,_.useRef)(null),[t,o]=(0,_.useState)([]);(0,_.useEffect)(()=>{if(t.length){[...t].forEach(e=>{e()}),o([])}},[t]);const r=(0,_.useCallback)(t=>function(r){var n;v+=1;const l=(0,_.createRef)();let a=()=>{};const s=(0,g.jsx)(y,{config:t(r),ref:l,afterClose:()=>{var e;null===(e=a)||void 0===e||e()}},`drawer-${v}`);return a=null===(n=e.current)||void 0===n?void 0:n.patchElement(s),a&&C.push(a),{destroy:()=>{function e(){var e;null===(e=l.current)||void 0===e||e.destroy()}l.current?e():o(t=>[...t,e])},update:e=>{function t(){var t;null===(t=l.current)||void 0===t||t.update(e)}l.current?t():o(e=>[...e,t])}}},[]);return[(0,_.useMemo)(()=>r(w),[r]),(0,g.jsx)(x,{ref:e},"drawer-holder")]},B=(0,_.createContext)({}),{Provider:P}=B,S=e=>{const{children:t}=e,[o,r]=j(),n=(0,_.useMemo)(()=>({drawer:o}),[o]);return(0,g.jsx)(P,{value:n,children:(0,g.jsxs)("div",{children:[r,t]})})};S.useAppDrawer=()=>(0,_.useContext)(B);const k=S;var N=o(81014),G=o(71298),R=o(64671);const H=(e,t)=>"function"===typeof e?e(t):e,L=e=>{let{footer:t,footerButtons:o,onConfirm:n,onCancel:l,onClose:a}=e;return(0,g.jsxs)(r.Row,{gutter:10,wrap:!1,children:[(0,g.jsx)(r.Col,{flex:1,children:t}),Array.isArray(o)&&0===o.length?null:(0,g.jsx)(r.Col,{children:(0,g.jsx)(r.Space,{children:(o||[{children:"\u53d6\u6d88",onClick:l},{type:"primary",children:"\u786e\u5b9a",onClick:n}]).map((e,t)=>{let{ButtonComponent:o,onClick:r,autoClose:n=!0,...l}=e;const s=o||N.default;return(0,_.createElement)(s,{...l,key:t,onClick:async function(){const e=await Promise.resolve(r&&r(...arguments));return n&&!1!==e&&a&&a(),e}})})})})]})},M=e=>{let{title:t,footer:o,disabledScroller:n,footerButtons:a,onClose:m,closable:p,onConfirm:b,onCancel:y,children:v}=e;const w=(0,_.useRef)(null);return(0,_.useEffect)(()=>{!n&&new G.default(w.current)},[n]),(0,g.jsxs)("div",{className:s,"data-testid":"components-core-drawer",children:[!1===p?null:(0,g.jsx)(r.Button,{"data-testid":"components-core-drawer-close-btn",className:l()(h,"drawer-close"),type:"text",icon:(0,g.jsx)(R.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),m&&m()}}),t&&(0,g.jsx)("div",{className:l()(c,"drawer-title"),children:t}),(0,g.jsx)("div",{className:l()(i,"drawer-body",{[u]:n}),ref:w,children:(0,g.jsx)("div",{className:l()(d,"drawer-body-inner"),children:v})}),null!==o||a?(0,g.jsx)("div",{className:l()(f,"drawer-footer"),children:(0,g.jsx)(L,{footer:o,footerButtons:a,onConfirm:b,onCancel:y,onClose:m})}):null]})},A=e=>{let{withDecorator:t,footerButtons:o,title:r,closable:n,onClose:l,onConfirm:a,onCancel:s,footer:c,disabledScroller:i,children:u}=e;const d=e=>(e=Object.assign({},e),(0,g.jsx)(M,{title:r,closable:n,onClose:l,onConfirm:a,onCancel:s,footerButtons:H(o,{...e,close:l}),disabledScroller:i,footer:H(c,{...e,close:l}),children:H(u,{...e,close:l})}));return"function"===typeof t?t(d):d({})},E=e=>{let{children:t,footer:o,footerButtons:r,className:n,size:s,title:c,onClose:i,onConfirm:u,onCancel:d,closable:f,disabledScroller:h,withDecorator:_,...b}=e;return{...b,icon:null,title:null,maskClosable:!!b.hasOwnProperty("maskClosable")&&b.maskClosable,destroyOnHidden:!0,footer:null,closable:!1,onCancel:i,className:l()(n,a),...(y=s,"large"===y?{width:"calc(100vw - 64px)"}:"small"===y?{width:"600px"}:{width:"1000px"}),children:(0,g.jsx)(p.IntlProvider,{importMessages:m,moduleName:"Drawer",children:A({withDecorator:_,title:c,closable:f,onClose:i,onConfirm:u,onCancel:d,footer:o,footerButtons:r,disabledScroller:h,children:t})})};var y},I=()=>{const{drawer:e}=k.useAppDrawer();return t=>{const o={},{...r}=E({onClose:()=>o.close(),...t}),{destroy:n}=e({...r});return o.close=n,o}},$=e=>{let{size:t="small",...o}=e;return(0,g.jsx)(r.Drawer,{...E({size:t,...o})})};var O=o(73025);const T=e=>{const t=I();return(0,g.jsx)(O.A,{...e,modalFunc:t})}},72752(e,t,o){"use strict";o.r(t),o.d(t,{GetGlobal:()=>D,GlobalProvider:()=>I,GlobalSetting:()=>l.GlobalSetting,GlobalValue:()=>l.GlobalValue,PureGlobal:()=>$,SetGlobal:()=>T,containerClassName:()=>M,default:()=>F,useGlobalContext:()=>O,useGlobalValue:()=>l.useGlobalValue,usePreset:()=>l.usePreset});o(3870),o(21683);var r=o(83136),n=o.n(r),l=o(83694),a=o(55199),s=o(73884),c=o(71298),i=o(36755),u=o(76801);const d=()=>/iPhone|iPod|Android|ios|iPad/i.test(navigator.userAgent);var f=o(87558),h=o(57469),m=o.n(h),p=o(52526);const _=e=>{let{params:t}=e;const{locale:r}=t;return{"en-US":async()=>(await o.e(3513).then(o.t.bind(o,33513,23)),m().locale("en"),await o.e(2397).then(o.t.bind(o,62397,23)).then(e=>{(0,p.localeLoader)("en-US",e.default,"button-group")}),await o.e(9808).then(o.t.bind(o,79808,23)).then(e=>{(0,p.localeLoader)("en-US",e.default,"phone-number-input")}),await o.e(8670).then(o.t.bind(o,78670,23)).then(e=>{(0,p.localeLoader)("en-US",e.default,"scroll-loader")}),await o.e(9223).then(o.t.bind(o,99223,23)).then(e=>{(0,p.localeLoader)("en-US",e.default,"react-file")}),await o.e(7451).then(o.bind(o,47451)).then(e=>e.default)),"zh-CN":async()=>(await o.e(6484).then(o.t.bind(o,76484,23)),m().locale("zh-cn"),await o.e(4965).then(o.bind(o,64965)).then(e=>e.default))}[r]()},b={container:"style_container__k+uRt__urHvB","is-not-init":"style_is-not-init__BZN0v__urHvB","loading-rotate":"style_loading-rotate__kLLHV__urHvB",total_text:"style_total_text__oNKMr__urHvB","ant-pagination":"style_ant-pagination__4LRg7__urHvB","ant-pagination-options":"style_ant-pagination-options__mp-tz__urHvB","ant-select-single":"style_ant-select-single__mL6Zt__urHvB","ant-select-selector":"style_ant-select-selector__+111I__urHvB","ant-select-selection-item":"style_ant-select-selection-item__RA3PX__urHvB","ant-select-selection-placeholder":"style_ant-select-selection-placeholder__CmaPV__urHvB","ant-pagination-options-quick-jumper":"style_ant-pagination-options-quick-jumper__ruQ4y__urHvB"};var g=o(33097),y=o.n(g),v=o(25963),w=o(64671),C=o(96418),x=o(22717),j=o.n(x),B=o(96604),P=o.n(B),S=o(25806),k=o.n(S),N=o(13050),G=o(56641),R=o.n(G);const H=(e,t)=>R()(e,t,(e,t)=>{if("function"===typeof e||"function"===typeof t||"symbol"===typeof e||"symbol"===typeof t)return!0});var L=o(70579);document.body.classList.add(b.container),d()||window.__COMPONENTS_CORE_SIMPLE_BAR_DISABLED?document.body.classList.add("simplebar-content-wrapper"):(new c.default(document.body),(0,u.h)().classList.add(b.container));const M=b.container.replace(/\+/g,"\\+").replace(/\//g,"\\/"),A=(0,f.withFetch)(e=>{let{data:t,themeToken:o,children:r}=e;const[n,l]=(0,s.useState)(!1),{colorPrimary:c,components:i,...d}=Object.assign({},{colorPrimary:"#4096ff"},o),f=(0,s.useMemo)(()=>k()(c),[c]),[h,m]=(0,s.useState)({});return(0,s.useEffect)(()=>{const e=document.querySelector(`.${M}`),t=getComputedStyle(e);m({colorSuccess:t.getPropertyValue("--state-success-color"),colorError:t.getPropertyValue("--state-error-color"),colorWarning:t.getPropertyValue("--state-warning-color"),colorInfo:t.getPropertyValue("--state-info-color")})},[]),(0,s.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={"--primary-color":c,"--primary-color-red":f.red(),"--primary-color-green":f.green(),"--primary-color-blue":f.blue(),"--primary-color-06":f.alpha(.06).string()};return P()(0,10).forEach(e=>{t[`--primary-color-${e+1}`]=f.alpha((e+1)/10).string()}),e.textContent=`.${M}{${j()(t,(e,t,o)=>{e.push(`${o}:${t};`)},[]).join("")}}`,l(!0),()=>{}},[c,f]),n?(0,L.jsx)(a.ConfigProvider,{getTargetContainer:u.h,getPopupContainer:u.h,locale:t,wave:{disabled:!0},autoInsertSpace:!1,warning:{strict:!1},theme:{components:i,token:Object.assign({},{...h,colorPrimary:c,colorPrimaryBg:f.alpha(.1).string(),colorLink:c,colorTextBase:"#222222",colorText:"#222222"},d)},children:r}):null}),E=(0,N.createWithRemoteLoader)({modules:["components-iconfont:Font@path","components-iconfont:ColorfulFont@path"]})(e=>{let{remoteModules:t}=e;const[o,r]=t;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(w.FontLoader,{path:`${o}/iconfont.css`}),(0,L.jsx)(w.FontLoader,{path:`${r}/iconfont.js`})]})}),I=e=>{let{preset:t={locale:"zh-CN",apis:{}},children:o,themeToken:r,init:n,...c}=e;const i=y()(t,"locale","zh-CN"),u=(0,s.useRef)(null),d=(0,s.useRef)(null);return(0,L.jsx)(l.Global,{preset:t,initValue:Object.assign({},c,{themeToken:r,localMessageRef:u,enumsRef:d,locale:i},y()(t,"global")),children:(0,L.jsx)(l.GlobalValue,{globalKey:"locale",children:e=>{let{value:t}=e;return(0,L.jsxs)(A,{loader:_,params:{locale:t},themeToken:r,children:[(0,L.jsx)(a.App,{message:{top:100},children:(0,L.jsx)(v.AppDrawer,{children:"function"===typeof n?(0,L.jsx)(f.default,{loader:()=>n(),render:()=>o}):o})}),(0,L.jsx)(E,{})]})}})})},$=e=>{let{children:t,...o}=e;const r=(0,l.useGlobalValue)("themeToken");return(0,L.jsx)(I,{...o,themeToken:o.themeToken||r,children:(0,L.jsx)("div",{"data-testid":"components-core-pure-global",className:n()(b.container,"core-container-body"),children:t})})},O=e=>{const t=(0,l.useGlobalContext)(),o=(0,C.default)(o=>{t.setGlobal(t=>"function"===typeof o?Object.assign({},t,{[e]:o(y()(t,e))}):Object.assign({},t,{[e]:o}))});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:y()(t.global,e),setGlobal:o}:{})},T=e=>{let{globalKey:t,value:o,needReady:r,children:n}=e;const{global:l,setGlobal:a}=O(t),c=(0,C.default)(a),i=(0,s.useRef)(null);return i.current=l,(0,s.useEffect)(()=>{H(i.current,o)||(i.current=o,c(o))},[o,c]),r&&!l?null:"function"===typeof n?n({global:l,setGlobal:a}):n},D=e=>{let{globalKey:t,children:o}=e;const{global:r}=O(t);return o({value:r})},F=e=>{let{children:t,className:o,...r}=e;return(0,L.jsx)(i.A,{errorRender:()=>(0,L.jsx)(a.Result,{status:"500",title:"500",subTitle:"\u7a0b\u5e8f\u51fa\u73b0\u5f02\u5e38\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5"}),children:(0,L.jsx)(I,{...r,children:(0,L.jsx)("div",{"data-testid":"components-core-global",className:n()(b.container,"container-body",o),children:t})})})}},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 o of[Array,String,t])Object.defineProperty(o.prototype,"at",{value:e,writable:!0,enumerable:!1,configurable:!0})},64671(e,t,o){"use strict";o.r(t),o.d(t,{default:()=>r.default});var r=o(48781),n={};for(const l in r)"default"!==l&&(n[l]=()=>r[l]);o.d(t,n)},47458(e,t,o){"use strict";o.r(t),o.d(t,{FormattedMessage:()=>g,IntlProvider:()=>b,createWithIntl:()=>v,createWithLocale:()=>p,default:()=>w,useIntl:()=>y});var r=o(87558),n=o(61032),l=o(72752),a=o(73884),s=o(34677),c=o.n(s),i=o(22717),u=o.n(i),d=o(33097),f=o.n(d),h=o(70579);const m=new Map,p=e=>{let{moduleName:t,importMessages:o}=e;return e=>(0,a.forwardRef)((n,a)=>{const{global:s}=(0,l.useGlobalContext)("locale"),c=s||"zh-CN";return(0,h.jsx)(r.default,{params:{locale:c},loader:e=>{let{params:r}=e;const{locale:n}=r,l=`${t}_${n}`;return m.has(l)?m.get(l):Promise.resolve(o(n)).then(e=>{let{default:t}=e;return m.set(l,t),t})},render:t=>{let{data:o}=t;return(0,h.jsx)(e,{...n,locale:o,ref:a})}})})},_=(0,r.withFetch)(e=>{let{children:t,data:o,locale:r}=e;return(0,h.jsx)(n.IntlProvider,{locale:r,messages:o,children:t})}),b=e=>{let{locale:t,importMessages:o=()=>({}),moduleName:r="Global",children:n}=e;const{global:{localMessageRef:a,locale:s}}=(0,l.useGlobalContext)(),i=t||s||"zh-CN";return(0,h.jsx)(_,{locale:i,params:{locale:i},loader:e=>{let{params:t}=e;const{locale:n}=t;return Promise.resolve(o(n)).then(e=>{let{default:t}=e;const o=c()({},a.current,u()(t,(e,t,o)=>{e[`${r}_${o}`]=t}));return a.current=o,o})},children:n})},g=e=>{let{id:t,moduleName:o="Global",children:r,...l}=e;const a=`${o}_${t}`;return"function"===typeof r?(0,h.jsx)(n.FormattedMessage,{...l,id:a,children:e=>r(e&&e.join(""))}):(0,h.jsx)(n.FormattedMessage,{...l,id:a})},y=e=>{let t=f()(e,"moduleName")||"Global";const{formatMessage:o}=(0,n.useIntl)(),r=(0,a.useCallback)((e,r)=>(e.id=`${t}_${e.id}`,o(e,r)),[t,o]);return{formatMessage:r}},v=e=>{let{importMessages:t,moduleName:o}=e;return e=>(0,a.forwardRef)((r,n)=>(0,h.jsx)(b,{importMessages:t,moduleName:o,children:(0,h.jsx)(e,{...r,ref:n})}))},w=g},81014(e,t,o){"use strict";o.r(t),o.d(t,{default:()=>r.LoadingButton,useLoading:()=>r.useLoading});o(9056);var r=o(41846)},70579(e,t,o){"use strict";e.exports=o(51153)}}]);
2
+ //# sourceMappingURL=7857.07e102fc.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/7857.6ed907e0.chunk.js","mappings":"6OAKA,MAoCA,EApCoBA,IAA2D,IAA1D,IAACC,EAAG,WAAEC,EAAa,CAAC,EAAC,UAAEC,EAAS,QAAEC,KAAYC,GAAML,EACrE,MAAMM,GAAWC,EAAAA,EAAAA,UAASC,OAAOC,OAAO,CAAC,EAAGR,EAAK,CAACS,MAAM,MAClD,UAACC,EAAS,KAAEC,EAAI,MAAEC,EAAK,QAAEC,GAAWR,EACpCS,GAAeC,EAAAA,EAAAA,SAAeZ,GAC9Ba,GAAmBD,EAAAA,EAAAA,SAAe,KACpC,MAAME,EAAWf,EAAgC,oBAAfD,EAA4BA,EAAW,CACrEU,OAAMN,WAAUa,MAAOA,KACnBD,EAASC,WAEZjB,KAeT,OAbAkB,EAAAA,EAAAA,WAAU,KACFT,IAGAE,EACAE,EAAaF,GAGZD,GAGLK,MACD,CAACN,EAAWE,EAAOD,EAAMK,EAAkBF,KACtCM,EAAAA,EAAAA,KAACC,EAAAA,OAAM,IACPjB,EACJkB,QAASZ,EACTa,QAASA,KACLV,EAAQ,CACJW,UAAWA,Y,qDClCpB,MAAMC,EAAcA,IAAMC,SAASC,cAAc,8BAC3CC,EAAmBA,IAAMF,SAASC,cAAc,kB,gJCA7D,QAAyB,6BAAzB,EAAqE,mCAArE,EAAuH,mCAAvH,EAAwK,kCAAxK,EAAiO,2CAAjO,EAAgS,wCAAhS,EAAwV,oCAAxV,EAA2Y,mCCM3Y,EAPwBE,IACf,CACL,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,EAAOkU,KAC5ClU,EAAMkN,GAAK,GAAGlD,KAAchK,EAAMkN,KAC3B6G,EAAc/T,EAAOkU,IAC7B,CAAClK,EAAY+J,IAChB,MAAO,CACHA,cAAeE,IAIVE,EAAiBjK,IAAA,IAAC,eAACH,EAAc,WAAEC,GAAWE,EAAA,OAAM2I,IAAqBxQ,EAAAA,EAAAA,YAAW,CAACrC,EAAOuC,KACrGvB,EAAAA,EAAAA,KAAC8I,EAAY,CAACC,eAAgBA,EAAgBC,WAAYA,EAAW3F,UACjErD,EAAAA,EAAAA,KAAC6R,EAAgB,IAAK7S,EAAOuC,IAAKA,QAG1C,G,sJCnEEqI,EAAOwJ,QAAU,EAAjBxJ,M","sources":["common/components/FetchButton.js","common/utils/importantContainer.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","common/utils/isMobile.js","components/Global/loadAntdLocale.js","webpack://@kne-components/components-core/./src/components/Global/style.module.scss?6540","components/Global/isEqual.js","components/Global/index.js","components/Global/polyfill.js","components/Intl/createWithLocale.js","components/Intl/index.js","../node_modules/react/jsx-runtime.js"],"sourcesContent":["import {useEffect} from \"react\";\nimport {useFetch} from \"@kne/react-fetch\";\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport {Button} from \"antd\";\n\nconst FetchButton = ({api, modalProps = {}, modalFunc, onError, ...props}) => {\n const fetchApi = useFetch(Object.assign({}, api, {auto: false}));\n const {isLoading, data, error, refresh} = fetchApi;\n const errorHandler = useRefCallback(onError);\n const modalFuncHandler = useRefCallback(() => {\n const modalApi = modalFunc(typeof modalProps === \"function\" ? modalProps({\n data, fetchApi, close: () => {\n modalApi.close();\n },\n }) : modalProps);\n });\n useEffect(() => {\n if (isLoading) {\n return;\n }\n if (error) {\n errorHandler(error);\n return;\n }\n if (!data) {\n return;\n }\n modalFuncHandler();\n }, [isLoading, error, data, modalFuncHandler, errorHandler]);\n return (<Button\n {...props}\n loading={isLoading}\n onClick={() => {\n refresh({\n onSuccess: () => {\n },\n });\n }}\n />);\n};\n\nexport default FetchButton;\n","export const getScrollEl = () => document.querySelector('.simplebar-content-wrapper');\nexport const getContainerBody = () => document.querySelector('.container-body');\n","// extracted by mini-css-extract-plugin\nexport default {\"drawer\":\"style_drawer__hA8bn__NN-KB\",\"drawer-outer\":\"style_drawer-outer__vuEIf__NN-KB\",\"drawer-title\":\"style_drawer-title__71eaW__NN-KB\",\"drawer-body\":\"style_drawer-body__frw9I__NN-KB\",\"is-disabled-scroller\":\"style_is-disabled-scroller__ZsITw__NN-KB\",\"drawer-body-inner\":\"style_drawer-body-inner__lci9Z__NN-KB\",\"drawer-footer\":\"style_drawer-footer__1g8o1__NN-KB\",\"drawer-close\":\"style_drawer-close__bpxnp__NN-KB\"};","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","import {useState, useCallback} from \"react\";\n\nconst usePatchElement = () => {\n const [elements, setElements] = useState([]);\n\n const patchElement = useCallback((element) => {\n // append a new element to elements (and create a new ref)\n setElements((originElements) => [...originElements, element]);\n\n // return a function that removes the new element out of elements (and create a new ref)\n // it works a little like useEffect\n return () => {\n setElements((originElements) => originElements.filter((ele) => ele !== element));\n };\n }, []);\n\n return [elements, patchElement];\n};\n\nexport default usePatchElement;\n","import {useState, useImperativeHandle, forwardRef} from \"react\";\nimport {Drawer} from \"antd\";\n\nconst HookDrawer = ({config}, ref) => {\n const [open, setOpen] = useState(true);\n const [innerConfig, setInnerConfig] = useState(config);\n\n const close = (...args) => {\n setOpen(false);\n const triggerCancel = args.some((param) => param && param.triggerCancel);\n if (innerConfig.onClose && triggerCancel) {\n innerConfig.onClose(() => {\n }, ...args.slice(1));\n }\n };\n\n useImperativeHandle(ref, () => ({\n destroy: close, update: (newConfig) => {\n setInnerConfig((originConfig) => ({\n ...originConfig, ...newConfig,\n }));\n },\n }));\n\n return <Drawer {...innerConfig} ref={ref} open={open} onClose={close}/>;\n};\n\nexport default forwardRef(HookDrawer);\n","import {\n createRef,\n forwardRef,\n memo,\n useCallback,\n useEffect,\n useImperativeHandle,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport usePatchElement from \"./usePatchElement\";\nimport HookDrawer from \"./HookDrawer\";\n\nlet uuid = 0;\n\nfunction withConfirm(props) {\n return {\n ...props,\n };\n}\n\nconst destroyFns = [];\n\nconst ElementsHolder = memo(\n forwardRef((props, ref) => {\n const [elements, patchElement] = usePatchElement();\n useImperativeHandle(\n ref,\n () => ({\n patchElement,\n }),\n [patchElement]\n );\n return <>{elements}</>;\n })\n);\n\nfunction useDrawer() {\n const holderRef = useRef(null);\n const [actionQueue, setActionQueue] = useState([]);\n useEffect(() => {\n if (actionQueue.length) {\n const cloneQueue = [...actionQueue];\n cloneQueue.forEach((action) => {\n action();\n });\n setActionQueue([]);\n }\n }, [actionQueue]);\n\n const getConfirmFunc = useCallback(\n (withFunc) =>\n function hookConfirm(config) {\n uuid += 1;\n\n const drawerRef = createRef();\n\n let closeFunc = () => {};\n const drawer = (\n <HookDrawer\n key={`drawer-${uuid}`}\n config={withFunc(config)}\n ref={drawerRef}\n afterClose={() => {\n closeFunc?.();\n }}\n />\n );\n\n closeFunc = holderRef.current?.patchElement(drawer);\n\n if (closeFunc) {\n destroyFns.push(closeFunc);\n }\n\n return {\n destroy: () => {\n function destroyAction() {\n drawerRef.current?.destroy();\n }\n\n if (drawerRef.current) {\n destroyAction();\n } else {\n setActionQueue((prev) => [...prev, destroyAction]);\n }\n },\n update: (newConfig) => {\n function updateAction() {\n drawerRef.current?.update(newConfig);\n }\n\n if (drawerRef.current) {\n updateAction();\n } else {\n setActionQueue((prev) => [...prev, updateAction]);\n }\n },\n };\n },\n []\n );\n\n const fns = useMemo(() => getConfirmFunc(withConfirm), [getConfirmFunc]);\n\n return [fns, <ElementsHolder key=\"drawer-holder\" ref={holderRef} />];\n}\n\nexport default useDrawer;\n","import { createContext, useContext, useMemo } from \"react\";\nimport useDrawer from \"./useDrawer\";\n\nconst context = createContext({});\nconst { Provider } = context;\n\nconst useAppDrawer = () => useContext(context);\n\nconst AppDrawer = (props) => {\n const { children } = props;\n const [DrawerApi, DrawerContextHolder] = useDrawer();\n const memoizedContextValue = useMemo(\n () => ({\n drawer: DrawerApi,\n }),\n [DrawerApi]\n );\n return (\n <Provider value={memoizedContextValue}>\n <div>\n {DrawerContextHolder}\n {children}\n </div>\n </Provider>\n );\n};\n\nAppDrawer.useAppDrawer = useAppDrawer;\n\nexport default AppDrawer;\n","import {Button, Col, Drawer as AntdDrawer, Row, Space} from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport {IntlProvider} from \"@components/Intl\";\nimport AppDrawer from \"./AppDrawer\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport React, {useEffect, useRef} from \"react\";\nimport SimpleBar from \"simplebar\";\nimport Icon from \"@components/Icon\";\n\nconst renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nconst sizeMap = (type) => {\n if (type === \"large\") {\n return {width: \"calc(100vw - 64px)\"};\n }\n if (type === \"small\") {\n return {width: \"600px\"};\n }\n return {width: \"1000px\"};\n};\n\nconst Footer = ({footer, footerButtons, onConfirm, onCancel, onClose}) => {\n return (<Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (<Col>\n <Space>\n {(footerButtons || [{children: \"取消\", onClick: onCancel}, {\n type: \"primary\", children: \"确定\", onClick: onConfirm,\n },]).map(({ButtonComponent, onClick, autoClose = true, ...props}, index) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (<CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(onClick && onClick(...args));\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />);\n })}\n </Space>\n </Col>)}\n </Row>);\n};\n\nconst DrawerOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n }) => {\n const modalBodyRef = useRef(null);\n useEffect(() => {\n !disabledScroller && new SimpleBar(modalBodyRef.current);\n }, [disabledScroller]);\n return (<div className={style[\"drawer-outer\"]} data-testid=\"components-core-drawer\">\n {closable === false ? null : (<Button\n data-testid=\"components-core-drawer-close-btn\"\n className={classnames(style[\"drawer-close\"], \"drawer-close\")}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\"/>}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />)}\n {title && (<div className={classnames(style[\"drawer-title\"], \"drawer-title\")}>\n {title}\n </div>)}\n <div\n className={classnames(style[\"drawer-body\"], \"drawer-body\", {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n })}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"drawer-body-inner\"], \"drawer-body-inner\")}\n >\n {children}\n </div>\n </div>\n {footer === null && !footerButtons ? null : (\n <div className={classnames(style[\"drawer-footer\"], \"drawer-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n />\n </div>)}\n </div>);\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n disabledScroller,\n children,\n }) => {\n const getInner = (props) => {\n props = Object.assign({}, props);\n return (<DrawerOuter\n title={title}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props, close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {...props, close: onClose})}\n >\n {renderWithOptions(children, {\n ...props, close: onClose,\n })}\n </DrawerOuter>);\n };\n return typeof withDecorator === \"function\" ? withDecorator(getInner) : getInner({});\n};\n\nexport const computedCommonProps = ({\n children,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n ...props\n }) => {\n return {\n ...props,\n icon: null,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\") ? props.maskClosable : false,\n destroyOnHidden: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"drawer\"]), ...sizeMap(size),\n children: (<IntlProvider importMessages={importMessages} moduleName=\"Drawer\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n disabledScroller,\n children,\n })}\n </IntlProvider>),\n };\n};\n\nconst Drawer = ({size = \"small\", ...props}) => {\n return <AntdDrawer {...computedCommonProps({size, ...props})} />;\n};\n\nexport const useDrawer = () => {\n const {drawer} = AppDrawer.useAppDrawer();\n return (props) => {\n const api = {};\n const {...otherProps} = computedCommonProps({\n onClose: () => api.close(), ...props,\n });\n const {destroy} = drawer({\n ...otherProps,\n });\n api.close = destroy;\n return api;\n };\n};\n\nexport default Drawer;\n","import { useDrawer } from \"./Drawer\";\nimport FetchButton from \"@common/components/FetchButton\";\n\nconst DrawerButton = (props) => {\n const drawer = useDrawer();\n return <FetchButton {...props} modalFunc={drawer} />;\n};\n\nexport default DrawerButton;\n","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__NN-KB\",\"is-not-init\":\"style_is-not-init__BZN0v__NN-KB\",\"loading-rotate\":\"style_loading-rotate__kLLHV__NN-KB\",\"total_text\":\"style_total_text__oNKMr__NN-KB\",\"ant-pagination\":\"style_ant-pagination__4LRg7__NN-KB\",\"ant-pagination-options\":\"style_ant-pagination-options__mp-tz__NN-KB\",\"ant-select-single\":\"style_ant-select-single__mL6Zt__NN-KB\",\"ant-select-selector\":\"style_ant-select-selector__+111I__NN-KB\",\"ant-select-selection-item\":\"style_ant-select-selection-item__RA3PX__NN-KB\",\"ant-select-selection-placeholder\":\"style_ant-select-selection-placeholder__CmaPV__NN-KB\",\"ant-pagination-options-quick-jumper\":\"style_ant-pagination-options-quick-jumper__ruQ4y__NN-KB\"};","import isEqualWith from \"lodash/isEqualWith\";\n\nconst isEqual = (value, other) => {\n return isEqualWith(value, other, (objValue, othValue) => {\n // 如果值是函数或 Symbol,认为相等(跳过比较)\n if (typeof objValue === 'function' || typeof othValue === 'function' || typeof objValue === 'symbol' || typeof othValue === 'symbol') {\n return true;\n }\n // 返回 undefined 让 lodash 使用默认比较\n return undefined;\n });\n}\n\nexport default isEqual;","import \"./polyfill\";\nimport \"simplebar/dist/simplebar.min.css\";\nimport \"./override.scss\";\nimport classnames from \"classnames\";\nimport {\n Global as GlobalContext, useGlobalContext as useContext, usePreset, GlobalValue, useGlobalValue, GlobalSetting\n} from \"@kne/global-context\";\nimport {App, ConfigProvider as AntdConfigProvider, Result} from \"antd\";\nimport {useEffect, useState, useRef, useMemo} from \"react\";\nimport SimpleBar from \"simplebar\";\nimport ErrorBoundary from \"@kne/react-error-boundary\";\nimport {getScrollEl} from \"@common/utils/importantContainer\";\nimport isMobile from \"@common/utils/isMobile\";\nimport Fetch, {withFetch} from \"@kne/react-fetch\";\nimport loadAntdLocale from \"./loadAntdLocale\";\nimport style from \"./style.module.scss\";\nimport get from \"lodash/get\";\nimport {AppDrawer} from \"@components/Drawer\";\nimport {FontLoader} from '@components/Icon';\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport transform from \"lodash/transform\";\nimport range from \"lodash/range\";\nimport Color from \"color\";\nimport {createWithRemoteLoader} from \"@kne/remote-loader\";\nimport isEqual from './isEqual';\n\ndocument.body.classList.add(style[\"container\"]);\nif (!isMobile() && !window.__COMPONENTS_CORE_SIMPLE_BAR_DISABLED) {\n new SimpleBar(document.body);\n getScrollEl().classList.add(style[\"container\"]);\n} else {\n document.body.classList.add(\"simplebar-content-wrapper\");\n}\n\nexport const containerClassName = style[\"container\"]\n .replace(/\\+/g, \"\\\\+\")\n .replace(/\\//g, \"\\\\/\");\n\nconst ConfigProvider = withFetch(({data: message, themeToken, children}) => {\n const [isInit, setIsInit] = useState(false);\n const {colorPrimary, components, ...otherToken} = Object.assign({}, {colorPrimary: \"#4096ff\"}, themeToken);\n const colorPrimaryObject = useMemo(() => {\n return Color(colorPrimary)\n }, [colorPrimary]);\n\n const [statusColors, setStatusColors] = useState({});\n\n useEffect(() => {\n const containerEl = document.querySelector(`.${containerClassName}`);\n const styles = getComputedStyle(containerEl);\n setStatusColors({\n colorSuccess: styles.getPropertyValue(\"--state-success-color\"),\n colorError: styles.getPropertyValue(\"--state-error-color\"),\n colorWarning: styles.getPropertyValue(\"--state-warning-color\"),\n colorInfo: styles.getPropertyValue(\"--state-info-color\"),\n });\n }, []);\n\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 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 = `.${containerClassName}{${transform(themeProps, (result, value, key) => {\n result.push(`${key}:${value};`);\n }, []).join(\"\")}}`;\n setIsInit(true);\n return () => {\n // uninstall();\n };\n }, [colorPrimary, colorPrimaryObject]);\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 warning={{strict: false}}\n theme={{\n components, token: Object.assign({}, {\n ...statusColors,\n colorPrimary: colorPrimary,\n colorPrimaryBg: colorPrimaryObject.alpha(0.1).string(),\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\n const localMessageRef = useRef(null);\n const enumsRef = useRef(null);\n\n return (<GlobalContext preset={preset} initValue={Object.assign({}, props, {\n themeToken, localMessageRef, enumsRef, locale,\n }, get(preset, \"global\"))}>\n <GlobalValue globalKey=\"locale\">{({value: locale}) => {\n return <ConfigProvider\n loader={loadAntdLocale}\n params={{locale}}\n themeToken={themeToken}\n >\n <App message={{top: 100}}>\n <AppDrawer>\n {typeof init === \"function\" ? (<Fetch\n loader={() => init()}\n render={() => children}\n />) : (children)}\n </AppDrawer>\n </App>\n <GlobalFontLoader/>\n </ConfigProvider>;\n }}</GlobalValue>\n </GlobalContext>);\n};\n\nexport const PureGlobal = ({children, ...props}) => {\n const themeToken = useGlobalValue(\"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, useGlobalValue, GlobalSetting, GlobalValue};\n\nexport const useGlobalContext = (globalKey) => {\n const contextValue = useContext();\n const setGlobalHandler = useRefCallback((value) => {\n contextValue.setGlobal((global) => {\n return typeof value === \"function\" ? Object.assign({}, global, {\n [globalKey]: value(get(global, globalKey)),\n }) : Object.assign({}, global, {\n [globalKey]: value,\n });\n });\n });\n return Object.assign({\n global: {}, setGlobal: () => {\n console.warn(\"调用setGlobal的组件应该被放置在Global上下文中\");\n },\n }, contextValue, globalKey ? {\n global: get(contextValue.global, globalKey), setGlobal: setGlobalHandler,\n } : {});\n};\n\nexport const SetGlobal = ({globalKey, value, needReady, children}) => {\n const {global, setGlobal} = useGlobalContext(globalKey);\n const setGlobalHandler = useRefCallback(setGlobal);\n const prevValueRef = useRef(null);\n prevValueRef.current = global;\n useEffect(() => {\n if (isEqual(prevValueRef.current, value)) {\n return;\n }\n prevValueRef.current = value;\n setGlobalHandler(value);\n }, [value, setGlobalHandler]);\n\n if (needReady && !global) {\n return null;\n }\n\n if (typeof children === 'function') {\n return children({global, setGlobal});\n }\n\n return children;\n};\n\nexport const GetGlobal = ({globalKey, children}) => {\n const {global} = useGlobalContext(globalKey);\n return children({value: global});\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","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","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","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["_ref","api","modalProps","modalFunc","onError","props","fetchApi","useFetch","Object","assign","auto","isLoading","data","error","refresh","errorHandler","useRefCallback","modalFuncHandler","modalApi","close","useEffect","_jsx","Button","loading","onClick","onSuccess","getScrollEl","document","querySelector","getContainerBody","locale","en-US","zh-CN","usePatchElement","elements","setElements","useState","useCallback","element","originElements","filter","ele","forwardRef","HookDrawer","ref","config","open","setOpen","innerConfig","setInnerConfig","_len","arguments","length","args","Array","_key","triggerCancel","some","param","onClose","slice","useImperativeHandle","destroy","update","newConfig","originConfig","Drawer","uuid","withConfirm","destroyFns","ElementsHolder","memo","patchElement","_Fragment","children","holderRef","useRef","actionQueue","setActionQueue","forEach","action","getConfirmFunc","withFunc","_holderRef$current","drawerRef","createRef","closeFunc","drawer","afterClose","_closeFunc","current","push","destroyAction","_drawerRef$current","prev","updateAction","_drawerRef$current2","useMemo","context","createContext","Provider","AppDrawer","DrawerApi","DrawerContextHolder","useDrawer","memoizedContextValue","value","_jsxs","useAppDrawer","useContext","renderWithOptions","footer","options","Footer","footerButtons","onConfirm","onCancel","Row","gutter","wrap","Col","flex","isArray","Space","type","map","_ref2","index","ButtonComponent","autoClose","CurrentButton","LoadingButton","_createElement","key","async","res","Promise","resolve","DrawerOuter","_ref3","title","disabledScroller","closable","modalBodyRef","SimpleBar","className","style","classnames","icon","Icon","e","stopPropagation","runWithDecorator","_ref4","withDecorator","getInner","computedCommonProps","_ref5","size","maskClosable","hasOwnProperty","destroyOnHidden","width","IntlProvider","importMessages","moduleName","otherProps","_ref6","AntdDrawer","FetchButton","isMobile","test","navigator","userAgent","params","dayjs","then","module","localeLoader","isEqual","other","isEqualWith","objValue","othValue","body","classList","add","window","__COMPONENTS_CORE_SIMPLE_BAR_DISABLED","containerClassName","replace","ConfigProvider","withFetch","message","themeToken","isInit","setIsInit","colorPrimary","components","otherToken","colorPrimaryObject","Color","statusColors","setStatusColors","containerEl","styles","getComputedStyle","colorSuccess","getPropertyValue","colorError","colorWarning","colorInfo","styleEl","head","createElement","id","appendChild","themeProps","red","green","blue","alpha","string","range","i","textContent","transform","result","join","AntdConfigProvider","getTargetContainer","getPopupContainer","wave","disabled","autoInsertSpace","warning","strict","theme","token","colorPrimaryBg","colorLink","colorTextBase","colorText","GlobalFontLoader","createWithRemoteLoader","modules","remoteModules","fontPath","colorfulPath","FontLoader","path","GlobalProvider","preset","apis","init","get","localMessageRef","enumsRef","GlobalContext","initValue","GlobalValue","globalKey","loader","loadAntdLocale","App","top","Fetch","render","PureGlobal","useGlobalValue","useGlobalContext","contextValue","setGlobalHandler","setGlobal","global","console","warn","SetGlobal","needReady","prevValueRef","GetGlobal","_ref7","_ref8","ErrorBoundary","errorRender","Result","status","subTitle","at","n","Math","trunc","this","TypedArray","Reflect","getPrototypeOf","Int8Array","C","String","defineProperty","prototype","writable","enumerable","configurable","localeCache","Map","WrappedComponent","currentLocale","has","default","localMessages","set","messages","InnerProvider","ReactIntlProvider","baseLocale","currentMessages","merge","results","FormattedMessage","moduleId","IntlFormattedMessage","text","useIntl","formatMessage","useReactIntl","formatModuleMessage","values","createWithIntl","exports"],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/7857.07e102fc.chunk.js","mappings":"6OAKA,MAoCA,EApCoBA,IAA2D,IAA1D,IAACC,EAAG,WAAEC,EAAa,CAAC,EAAC,UAAEC,EAAS,QAAEC,KAAYC,GAAML,EACrE,MAAMM,GAAWC,EAAAA,EAAAA,UAASC,OAAOC,OAAO,CAAC,EAAGR,EAAK,CAACS,MAAM,MAClD,UAACC,EAAS,KAAEC,EAAI,MAAEC,EAAK,QAAEC,GAAWR,EACpCS,GAAeC,EAAAA,EAAAA,SAAeZ,GAC9Ba,GAAmBD,EAAAA,EAAAA,SAAe,KACpC,MAAME,EAAWf,EAAgC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BtK,QAAUkO,EACnBA,KAEblP,SAEDA,KAIIqP,EAAmBlK,IAAsD,IAArD,GAAC0D,EAAE,WAAElD,EAAa,SAAQ,SAAE3F,KAAarE,GAAMwJ,EAC5E,MAAMmK,EAAW,GAAG3J,KAAckD,IAClC,MAAwB,oBAAb7I,GACCrD,EAAAA,EAAAA,KAAC4S,EAAAA,iBAAoB,IAAK5T,EAAOkN,GAAIyG,EAAStP,SAChDwP,GACSxP,EAASwP,GAAQA,EAAK9F,KAAK,QAIvC/M,EAAAA,EAAAA,KAAC4S,EAAAA,iBAAoB,IAAK5T,EAAOkN,GAAIyG,KAGnCG,EAAW9T,IACpB,IAAIgK,EAAa0F,IAAI1P,EAAO,eAAiB,SAC7C,MAAM,cAAC+T,IAAiBC,EAAAA,EAAAA,WAClBC,GAAsBjS,EAAAA,EAAAA,aAAY,CAAChC,EAAOkU,KAC5ClU,EAAMkN,GAAK,GAAGlD,KAAchK,EAAMkN,KAC3B6G,EAAc/T,EAAOkU,IAC7B,CAAClK,EAAY+J,IAChB,MAAO,CACHA,cAAeE,IAIVE,EAAiBjK,IAAA,IAAC,eAACH,EAAc,WAAEC,GAAWE,EAAA,OAAM2I,IAAqBxQ,EAAAA,EAAAA,YAAW,CAACrC,EAAOuC,KACrGvB,EAAAA,EAAAA,KAAC8I,EAAY,CAACC,eAAgBA,EAAgBC,WAAYA,EAAW3F,UACjErD,EAAAA,EAAAA,KAAC6R,EAAgB,IAAK7S,EAAOuC,IAAKA,QAG1C,G,sJCnEEqI,EAAOwJ,QAAU,EAAjBxJ,M","sources":["common/components/FetchButton.js","common/utils/importantContainer.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","common/utils/isMobile.js","components/Global/loadAntdLocale.js","webpack://@kne-components/components-core/./src/components/Global/style.module.scss?6540","components/Global/isEqual.js","components/Global/index.js","components/Global/polyfill.js","components/Intl/createWithLocale.js","components/Intl/index.js","../node_modules/react/jsx-runtime.js"],"sourcesContent":["import {useEffect} from \"react\";\nimport {useFetch} from \"@kne/react-fetch\";\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport {Button} from \"antd\";\n\nconst FetchButton = ({api, modalProps = {}, modalFunc, onError, ...props}) => {\n const fetchApi = useFetch(Object.assign({}, api, {auto: false}));\n const {isLoading, data, error, refresh} = fetchApi;\n const errorHandler = useRefCallback(onError);\n const modalFuncHandler = useRefCallback(() => {\n const modalApi = modalFunc(typeof modalProps === \"function\" ? modalProps({\n data, fetchApi, close: () => {\n modalApi.close();\n },\n }) : modalProps);\n });\n useEffect(() => {\n if (isLoading) {\n return;\n }\n if (error) {\n errorHandler(error);\n return;\n }\n if (!data) {\n return;\n }\n modalFuncHandler();\n }, [isLoading, error, data, modalFuncHandler, errorHandler]);\n return (<Button\n {...props}\n loading={isLoading}\n onClick={() => {\n refresh({\n onSuccess: () => {\n },\n });\n }}\n />);\n};\n\nexport default FetchButton;\n","export const getScrollEl = () => document.querySelector('.simplebar-content-wrapper');\nexport const getContainerBody = () => document.querySelector('.container-body');\n","// extracted by mini-css-extract-plugin\nexport default {\"drawer\":\"style_drawer__hA8bn__urHvB\",\"drawer-outer\":\"style_drawer-outer__vuEIf__urHvB\",\"drawer-title\":\"style_drawer-title__71eaW__urHvB\",\"drawer-body\":\"style_drawer-body__frw9I__urHvB\",\"is-disabled-scroller\":\"style_is-disabled-scroller__ZsITw__urHvB\",\"drawer-body-inner\":\"style_drawer-body-inner__lci9Z__urHvB\",\"drawer-footer\":\"style_drawer-footer__1g8o1__urHvB\",\"drawer-close\":\"style_drawer-close__bpxnp__urHvB\"};","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","import {useState, useCallback} from \"react\";\n\nconst usePatchElement = () => {\n const [elements, setElements] = useState([]);\n\n const patchElement = useCallback((element) => {\n // append a new element to elements (and create a new ref)\n setElements((originElements) => [...originElements, element]);\n\n // return a function that removes the new element out of elements (and create a new ref)\n // it works a little like useEffect\n return () => {\n setElements((originElements) => originElements.filter((ele) => ele !== element));\n };\n }, []);\n\n return [elements, patchElement];\n};\n\nexport default usePatchElement;\n","import {useState, useImperativeHandle, forwardRef} from \"react\";\nimport {Drawer} from \"antd\";\n\nconst HookDrawer = ({config}, ref) => {\n const [open, setOpen] = useState(true);\n const [innerConfig, setInnerConfig] = useState(config);\n\n const close = (...args) => {\n setOpen(false);\n const triggerCancel = args.some((param) => param && param.triggerCancel);\n if (innerConfig.onClose && triggerCancel) {\n innerConfig.onClose(() => {\n }, ...args.slice(1));\n }\n };\n\n useImperativeHandle(ref, () => ({\n destroy: close, update: (newConfig) => {\n setInnerConfig((originConfig) => ({\n ...originConfig, ...newConfig,\n }));\n },\n }));\n\n return <Drawer {...innerConfig} ref={ref} open={open} onClose={close}/>;\n};\n\nexport default forwardRef(HookDrawer);\n","import {\n createRef,\n forwardRef,\n memo,\n useCallback,\n useEffect,\n useImperativeHandle,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport usePatchElement from \"./usePatchElement\";\nimport HookDrawer from \"./HookDrawer\";\n\nlet uuid = 0;\n\nfunction withConfirm(props) {\n return {\n ...props,\n };\n}\n\nconst destroyFns = [];\n\nconst ElementsHolder = memo(\n forwardRef((props, ref) => {\n const [elements, patchElement] = usePatchElement();\n useImperativeHandle(\n ref,\n () => ({\n patchElement,\n }),\n [patchElement]\n );\n return <>{elements}</>;\n })\n);\n\nfunction useDrawer() {\n const holderRef = useRef(null);\n const [actionQueue, setActionQueue] = useState([]);\n useEffect(() => {\n if (actionQueue.length) {\n const cloneQueue = [...actionQueue];\n cloneQueue.forEach((action) => {\n action();\n });\n setActionQueue([]);\n }\n }, [actionQueue]);\n\n const getConfirmFunc = useCallback(\n (withFunc) =>\n function hookConfirm(config) {\n uuid += 1;\n\n const drawerRef = createRef();\n\n let closeFunc = () => {};\n const drawer = (\n <HookDrawer\n key={`drawer-${uuid}`}\n config={withFunc(config)}\n ref={drawerRef}\n afterClose={() => {\n closeFunc?.();\n }}\n />\n );\n\n closeFunc = holderRef.current?.patchElement(drawer);\n\n if (closeFunc) {\n destroyFns.push(closeFunc);\n }\n\n return {\n destroy: () => {\n function destroyAction() {\n drawerRef.current?.destroy();\n }\n\n if (drawerRef.current) {\n destroyAction();\n } else {\n setActionQueue((prev) => [...prev, destroyAction]);\n }\n },\n update: (newConfig) => {\n function updateAction() {\n drawerRef.current?.update(newConfig);\n }\n\n if (drawerRef.current) {\n updateAction();\n } else {\n setActionQueue((prev) => [...prev, updateAction]);\n }\n },\n };\n },\n []\n );\n\n const fns = useMemo(() => getConfirmFunc(withConfirm), [getConfirmFunc]);\n\n return [fns, <ElementsHolder key=\"drawer-holder\" ref={holderRef} />];\n}\n\nexport default useDrawer;\n","import { createContext, useContext, useMemo } from \"react\";\nimport useDrawer from \"./useDrawer\";\n\nconst context = createContext({});\nconst { Provider } = context;\n\nconst useAppDrawer = () => useContext(context);\n\nconst AppDrawer = (props) => {\n const { children } = props;\n const [DrawerApi, DrawerContextHolder] = useDrawer();\n const memoizedContextValue = useMemo(\n () => ({\n drawer: DrawerApi,\n }),\n [DrawerApi]\n );\n return (\n <Provider value={memoizedContextValue}>\n <div>\n {DrawerContextHolder}\n {children}\n </div>\n </Provider>\n );\n};\n\nAppDrawer.useAppDrawer = useAppDrawer;\n\nexport default AppDrawer;\n","import {Button, Col, Drawer as AntdDrawer, Row, Space} from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport {IntlProvider} from \"@components/Intl\";\nimport AppDrawer from \"./AppDrawer\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport React, {useEffect, useRef} from \"react\";\nimport SimpleBar from \"simplebar\";\nimport Icon from \"@components/Icon\";\n\nconst renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nconst sizeMap = (type) => {\n if (type === \"large\") {\n return {width: \"calc(100vw - 64px)\"};\n }\n if (type === \"small\") {\n return {width: \"600px\"};\n }\n return {width: \"1000px\"};\n};\n\nconst Footer = ({footer, footerButtons, onConfirm, onCancel, onClose}) => {\n return (<Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (<Col>\n <Space>\n {(footerButtons || [{children: \"取消\", onClick: onCancel}, {\n type: \"primary\", children: \"确定\", onClick: onConfirm,\n },]).map(({ButtonComponent, onClick, autoClose = true, ...props}, index) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (<CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(onClick && onClick(...args));\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />);\n })}\n </Space>\n </Col>)}\n </Row>);\n};\n\nconst DrawerOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n }) => {\n const modalBodyRef = useRef(null);\n useEffect(() => {\n !disabledScroller && new SimpleBar(modalBodyRef.current);\n }, [disabledScroller]);\n return (<div className={style[\"drawer-outer\"]} data-testid=\"components-core-drawer\">\n {closable === false ? null : (<Button\n data-testid=\"components-core-drawer-close-btn\"\n className={classnames(style[\"drawer-close\"], \"drawer-close\")}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\"/>}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />)}\n {title && (<div className={classnames(style[\"drawer-title\"], \"drawer-title\")}>\n {title}\n </div>)}\n <div\n className={classnames(style[\"drawer-body\"], \"drawer-body\", {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n })}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"drawer-body-inner\"], \"drawer-body-inner\")}\n >\n {children}\n </div>\n </div>\n {footer === null && !footerButtons ? null : (\n <div className={classnames(style[\"drawer-footer\"], \"drawer-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n />\n </div>)}\n </div>);\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n disabledScroller,\n children,\n }) => {\n const getInner = (props) => {\n props = Object.assign({}, props);\n return (<DrawerOuter\n title={title}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props, close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {...props, close: onClose})}\n >\n {renderWithOptions(children, {\n ...props, close: onClose,\n })}\n </DrawerOuter>);\n };\n return typeof withDecorator === \"function\" ? withDecorator(getInner) : getInner({});\n};\n\nexport const computedCommonProps = ({\n children,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n ...props\n }) => {\n return {\n ...props,\n icon: null,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\") ? props.maskClosable : false,\n destroyOnHidden: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"drawer\"]), ...sizeMap(size),\n children: (<IntlProvider importMessages={importMessages} moduleName=\"Drawer\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n disabledScroller,\n children,\n })}\n </IntlProvider>),\n };\n};\n\nconst Drawer = ({size = \"small\", ...props}) => {\n return <AntdDrawer {...computedCommonProps({size, ...props})} />;\n};\n\nexport const useDrawer = () => {\n const {drawer} = AppDrawer.useAppDrawer();\n return (props) => {\n const api = {};\n const {...otherProps} = computedCommonProps({\n onClose: () => api.close(), ...props,\n });\n const {destroy} = drawer({\n ...otherProps,\n });\n api.close = destroy;\n return api;\n };\n};\n\nexport default Drawer;\n","import { useDrawer } from \"./Drawer\";\nimport FetchButton from \"@common/components/FetchButton\";\n\nconst DrawerButton = (props) => {\n const drawer = useDrawer();\n return <FetchButton {...props} modalFunc={drawer} />;\n};\n\nexport default DrawerButton;\n","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__urHvB\",\"is-not-init\":\"style_is-not-init__BZN0v__urHvB\",\"loading-rotate\":\"style_loading-rotate__kLLHV__urHvB\",\"total_text\":\"style_total_text__oNKMr__urHvB\",\"ant-pagination\":\"style_ant-pagination__4LRg7__urHvB\",\"ant-pagination-options\":\"style_ant-pagination-options__mp-tz__urHvB\",\"ant-select-single\":\"style_ant-select-single__mL6Zt__urHvB\",\"ant-select-selector\":\"style_ant-select-selector__+111I__urHvB\",\"ant-select-selection-item\":\"style_ant-select-selection-item__RA3PX__urHvB\",\"ant-select-selection-placeholder\":\"style_ant-select-selection-placeholder__CmaPV__urHvB\",\"ant-pagination-options-quick-jumper\":\"style_ant-pagination-options-quick-jumper__ruQ4y__urHvB\"};","import isEqualWith from \"lodash/isEqualWith\";\n\nconst isEqual = (value, other) => {\n return isEqualWith(value, other, (objValue, othValue) => {\n // 如果值是函数或 Symbol,认为相等(跳过比较)\n if (typeof objValue === 'function' || typeof othValue === 'function' || typeof objValue === 'symbol' || typeof othValue === 'symbol') {\n return true;\n }\n // 返回 undefined 让 lodash 使用默认比较\n return undefined;\n });\n}\n\nexport default isEqual;","import \"./polyfill\";\nimport \"simplebar/dist/simplebar.min.css\";\nimport \"./override.scss\";\nimport classnames from \"classnames\";\nimport {\n Global as GlobalContext, useGlobalContext as useContext, usePreset, GlobalValue, useGlobalValue, GlobalSetting\n} from \"@kne/global-context\";\nimport {App, ConfigProvider as AntdConfigProvider, Result} from \"antd\";\nimport {useEffect, useState, useRef, useMemo} from \"react\";\nimport SimpleBar from \"simplebar\";\nimport ErrorBoundary from \"@kne/react-error-boundary\";\nimport {getScrollEl} from \"@common/utils/importantContainer\";\nimport isMobile from \"@common/utils/isMobile\";\nimport Fetch, {withFetch} from \"@kne/react-fetch\";\nimport loadAntdLocale from \"./loadAntdLocale\";\nimport style from \"./style.module.scss\";\nimport get from \"lodash/get\";\nimport {AppDrawer} from \"@components/Drawer\";\nimport {FontLoader} from '@components/Icon';\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport transform from \"lodash/transform\";\nimport range from \"lodash/range\";\nimport Color from \"color\";\nimport {createWithRemoteLoader} from \"@kne/remote-loader\";\nimport isEqual from './isEqual';\n\ndocument.body.classList.add(style[\"container\"]);\nif (!isMobile() && !window.__COMPONENTS_CORE_SIMPLE_BAR_DISABLED) {\n new SimpleBar(document.body);\n getScrollEl().classList.add(style[\"container\"]);\n} else {\n document.body.classList.add(\"simplebar-content-wrapper\");\n}\n\nexport const containerClassName = style[\"container\"]\n .replace(/\\+/g, \"\\\\+\")\n .replace(/\\//g, \"\\\\/\");\n\nconst ConfigProvider = withFetch(({data: message, themeToken, children}) => {\n const [isInit, setIsInit] = useState(false);\n const {colorPrimary, components, ...otherToken} = Object.assign({}, {colorPrimary: \"#4096ff\"}, themeToken);\n const colorPrimaryObject = useMemo(() => {\n return Color(colorPrimary)\n }, [colorPrimary]);\n\n const [statusColors, setStatusColors] = useState({});\n\n useEffect(() => {\n const containerEl = document.querySelector(`.${containerClassName}`);\n const styles = getComputedStyle(containerEl);\n setStatusColors({\n colorSuccess: styles.getPropertyValue(\"--state-success-color\"),\n colorError: styles.getPropertyValue(\"--state-error-color\"),\n colorWarning: styles.getPropertyValue(\"--state-warning-color\"),\n colorInfo: styles.getPropertyValue(\"--state-info-color\"),\n });\n }, []);\n\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 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 = `.${containerClassName}{${transform(themeProps, (result, value, key) => {\n result.push(`${key}:${value};`);\n }, []).join(\"\")}}`;\n setIsInit(true);\n return () => {\n // uninstall();\n };\n }, [colorPrimary, colorPrimaryObject]);\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 warning={{strict: false}}\n theme={{\n components, token: Object.assign({}, {\n ...statusColors,\n colorPrimary: colorPrimary,\n colorPrimaryBg: colorPrimaryObject.alpha(0.1).string(),\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\n const localMessageRef = useRef(null);\n const enumsRef = useRef(null);\n\n return (<GlobalContext preset={preset} initValue={Object.assign({}, props, {\n themeToken, localMessageRef, enumsRef, locale,\n }, get(preset, \"global\"))}>\n <GlobalValue globalKey=\"locale\">{({value: locale}) => {\n return <ConfigProvider\n loader={loadAntdLocale}\n params={{locale}}\n themeToken={themeToken}\n >\n <App message={{top: 100}}>\n <AppDrawer>\n {typeof init === \"function\" ? (<Fetch\n loader={() => init()}\n render={() => children}\n />) : (children)}\n </AppDrawer>\n </App>\n <GlobalFontLoader/>\n </ConfigProvider>;\n }}</GlobalValue>\n </GlobalContext>);\n};\n\nexport const PureGlobal = ({children, ...props}) => {\n const themeToken = useGlobalValue(\"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, useGlobalValue, GlobalSetting, GlobalValue};\n\nexport const useGlobalContext = (globalKey) => {\n const contextValue = useContext();\n const setGlobalHandler = useRefCallback((value) => {\n contextValue.setGlobal((global) => {\n return typeof value === \"function\" ? Object.assign({}, global, {\n [globalKey]: value(get(global, globalKey)),\n }) : Object.assign({}, global, {\n [globalKey]: value,\n });\n });\n });\n return Object.assign({\n global: {}, setGlobal: () => {\n console.warn(\"调用setGlobal的组件应该被放置在Global上下文中\");\n },\n }, contextValue, globalKey ? {\n global: get(contextValue.global, globalKey), setGlobal: setGlobalHandler,\n } : {});\n};\n\nexport const SetGlobal = ({globalKey, value, needReady, children}) => {\n const {global, setGlobal} = useGlobalContext(globalKey);\n const setGlobalHandler = useRefCallback(setGlobal);\n const prevValueRef = useRef(null);\n prevValueRef.current = global;\n useEffect(() => {\n if (isEqual(prevValueRef.current, value)) {\n return;\n }\n prevValueRef.current = value;\n setGlobalHandler(value);\n }, [value, setGlobalHandler]);\n\n if (needReady && !global) {\n return null;\n }\n\n if (typeof children === 'function') {\n return children({global, setGlobal});\n }\n\n return children;\n};\n\nexport const GetGlobal = ({globalKey, children}) => {\n const {global} = useGlobalContext(globalKey);\n return children({value: global});\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","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","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","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["_ref","api","modalProps","modalFunc","onError","props","fetchApi","useFetch","Object","assign","auto","isLoading","data","error","refresh","errorHandler","useRefCallback","modalFuncHandler","modalApi","close","useEffect","_jsx","Button","loading","onClick","onSuccess","getScrollEl","document","querySelector","getContainerBody","locale","en-US","zh-CN","usePatchElement","elements","setElements","useState","useCallback","element","originElements","filter","ele","forwardRef","HookDrawer","ref","config","open","setOpen","innerConfig","setInnerConfig","_len","arguments","length","args","Array","_key","triggerCancel","some","param","onClose","slice","useImperativeHandle","destroy","update","newConfig","originConfig","Drawer","uuid","withConfirm","destroyFns","ElementsHolder","memo","patchElement","_Fragment","children","holderRef","useRef","actionQueue","setActionQueue","forEach","action","getConfirmFunc","withFunc","_holderRef$current","drawerRef","createRef","closeFunc","drawer","afterClose","_closeFunc","current","push","destroyAction","_drawerRef$current","prev","updateAction","_drawerRef$current2","useMemo","context","createContext","Provider","AppDrawer","DrawerApi","DrawerContextHolder","useDrawer","memoizedContextValue","value","_jsxs","useAppDrawer","useContext","renderWithOptions","footer","options","Footer","footerButtons","onConfirm","onCancel","Row","gutter","wrap","Col","flex","isArray","Space","type","map","_ref2","index","ButtonComponent","autoClose","CurrentButton","LoadingButton","_createElement","key","async","res","Promise","resolve","DrawerOuter","_ref3","title","disabledScroller","closable","modalBodyRef","SimpleBar","className","style","classnames","icon","Icon","e","stopPropagation","runWithDecorator","_ref4","withDecorator","getInner","computedCommonProps","_ref5","size","maskClosable","hasOwnProperty","destroyOnHidden","width","IntlProvider","importMessages","moduleName","otherProps","_ref6","AntdDrawer","FetchButton","isMobile","test","navigator","userAgent","params","dayjs","then","module","localeLoader","isEqual","other","isEqualWith","objValue","othValue","body","classList","add","window","__COMPONENTS_CORE_SIMPLE_BAR_DISABLED","containerClassName","replace","ConfigProvider","withFetch","message","themeToken","isInit","setIsInit","colorPrimary","components","otherToken","colorPrimaryObject","Color","statusColors","setStatusColors","containerEl","styles","getComputedStyle","colorSuccess","getPropertyValue","colorError","colorWarning","colorInfo","styleEl","head","createElement","id","appendChild","themeProps","red","green","blue","alpha","string","range","i","textContent","transform","result","join","AntdConfigProvider","getTargetContainer","getPopupContainer","wave","disabled","autoInsertSpace","warning","strict","theme","token","colorPrimaryBg","colorLink","colorTextBase","colorText","GlobalFontLoader","createWithRemoteLoader","modules","remoteModules","fontPath","colorfulPath","FontLoader","path","GlobalProvider","preset","apis","init","get","localMessageRef","enumsRef","GlobalContext","initValue","GlobalValue","globalKey","loader","loadAntdLocale","App","top","Fetch","render","PureGlobal","useGlobalValue","useGlobalContext","contextValue","setGlobalHandler","setGlobal","global","console","warn","SetGlobal","needReady","prevValueRef","GetGlobal","_ref7","_ref8","ErrorBoundary","errorRender","Result","status","subTitle","at","n","Math","trunc","this","TypedArray","Reflect","getPrototypeOf","Int8Array","C","String","defineProperty","prototype","writable","enumerable","configurable","localeCache","Map","WrappedComponent","currentLocale","has","default","localMessages","set","messages","InnerProvider","ReactIntlProvider","baseLocale","currentMessages","merge","results","FormattedMessage","moduleId","IntlFormattedMessage","text","useIntl","formatMessage","useReactIntl","formatModuleMessage","values","createWithIntl","exports"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ (globalThis.webpackChunk_kne_components_components_core=globalThis.webpackChunk_kne_components_components_core||[]).push([[8221,8731,9387],{48731(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>n.default});var n=r(98919),a=r(22717),s=r.n(a);const l=[{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}],o=[{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"}],i=[["openStatus",[{value:"open",description:"\u5f00\u542f",type:"success"},{value:"closed",description:"\u5173\u95ed",type:"danger"}]],["commonStatus",()=>[{value:"open",description:"\u5f00\u542f",type:"success"},{value:"close",description:"\u5173\u95ed",type:"danger"}]],["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",o],["phoneState",o],["degreeEnum",l],["degree",l]];(0,n.preset)({base:s()(i,(e,t)=>{e[t[0]]=t[1]},{})})},34699(e,t,r){"use strict";r.r(t),r.d(t,{Download:()=>c,FileButton:()=>y,FileLink:()=>b,List:()=>_,OptionButtons:()=>x,PrintButton:()=>a.PrintButton,default:()=>a.default,download:()=>a.download,downloadBlobFile:()=>a.downloadBlobFile,useDownload:()=>a.useDownload,useFileModal:()=>S});r(64674);var n=r(96418),a=r(37744),s=r(3382),l=r(83136),o=r.n(l),i=r(70579);a.Download.useDownload=a.useDownload,a.Download.downloadBlobFile=a.downloadBlobFile;const c=a.Download;var d=r(26304),u=r.n(d),p=r(74065),m=r.n(p),h=r(96252);const g=e=>({"en-US":()=>r.e(5645).then(r.bind(r,75645)),"zh-CN":()=>r.e(6707).then(r.bind(r,26707))}[e]());var f=r(47458);const v=e=>{let{apis:t}=e;const r=(0,h.useFormModal)();return"function"===typeof(null===t||void 0===t?void 0:t.onEditModalShow)?t.onEditModalShow:(e,t)=>{const n=r({size:"small",title:(0,i.jsx)(f.IntlProvider,{importMessages:g,moduleName:"File",children:(0,i.jsx)(f.FormattedMessage,{id:"editDocumentName",moduleName:"File"})}),formProps:{data:{name:u()(e.filename.split(".")).join(".")},onSubmit:async r=>{!1!==((null===t||void 0===t?void 0:t.onEdit)&&await(null===t||void 0===t?void 0:t.onEdit({formData:Object.assign({},r,{name:`${r.name}.${m()(e.filename.split("."))}`}),item:e})))&&n.close()}},children:(0,i.jsx)(h.default,{column:1,list:[(0,i.jsx)(h.Input,{name:"name",label:(0,i.jsx)(f.IntlProvider,{importMessages:g,moduleName:"File",children:(0,i.jsx)(f.FormattedMessage,{id:"documentName",moduleName:"File"})}),rule:"REQ LEN-0-100"})]})})}},x=e=>{var t;const r=v({apis:e.apis});return(0,i.jsx)(a.FileListOptionButtons,{...e,onEdit:t=>r(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,...r}=e;return(0,i.jsx)(s.default,{...Object.assign({},r),onClose:t})}})},_=e=>{let{apis:t,...r}=e;const n=v({apis:t});return(0,i.jsx)(a.FileList,{...r,apis:t,onEdit:e=>n(e,t),onDelete:null===t||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof r.renderModal?r.renderModal:e=>{let{onCancel:t,...r}=e;return(0,i.jsx)(s.default,{...Object.assign({},r),onClose:t})}})},y=e=>(0,i.jsx)(a.FileButton,{...Object.assign({},e,{modalProps:{renderModal:e=>{let{onCancel:t,...r}=e;return(0,i.jsx)(s.default,{...Object.assign({},r),onClose:t})}}})}),b=e=>{const{className:t,...r}=Object.assign({},e);return(0,i.jsx)(y,{...r,className:o()(t,"btn-no-padding"),type:"link",children:r.children||r.filename||r.originName})},S=e=>{const{title:t,children:r,footer:l}=(0,a.useFileModalProps)(Object.assign({},e)),o=(0,s.useModal)();return(0,n.default)(()=>o({title:t,children:r,footer:l}))}},45053(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(98434),a=r(55199),s=r(73884),l=r(83136),o=r.n(l),i=r(70720),c=r(47094),d=r(70579);const u=e=>{let{name:t,groupName:r,overlayClassName:l,errorRender:u=()=>null,groupIndex:p,children:m}=e;const h=(e=>{let{name:t,groupName:r,groupIndex:a}=e;const{emitter:l,formState:o}=(0,n.useFormContext)(),i=(0,s.useRef)({name:t,groupName:r,groupIndex:a});i.current={name:t,groupName:r,groupIndex:a};const c=(0,s.useRef)(o);c.current=o;const[d,u]=(0,s.useState)(null);return(0,s.useEffect)(()=>{const e=l.addListener("form-field-validate-complete",e=>{let{id:t,validate:r}=e;const a=c.current[t];if(!a)return;const s=i.current;a.name!==s.name||s.groupName&&(a.groupName!==s.groupName||a.groupIndex!==s.groupIndex)||u(2===r.status?Object.assign({},r,{label:a.label,errMsg:n.util.compileErrMsg(r.msg,a.label)}):null)});return()=>{e&&e.remove()}},[l]),d})({name:t,groupName:r,groupIndex:p}),[g,f]=(0,s.useState)(!1),v=h&&g&&u(Object.assign({},h,{closeHover:()=>f(!1)})),x=(0,s.useRef)(null),_=(0,s.useRef)(null);(0,i.default)(()=>{f(!1)}).current={contains:e=>x.current.contains(e)||_.current&&_.current.contains(e)};const[y,b]=(0,s.useState)(0);return(0,s.useLayoutEffect)(()=>{const e=()=>{const e=x.current.querySelector(".react-form__field-component");e&&b(e.clientWidth)};e();const t=new ResizeObserver(e);t.observe(x.current);const r=new MutationObserver(e);return r.observe(x.current,{subtree:!0,childList:!0}),()=>{r.disconnect(),t.disconnect()}},[]),(0,d.jsx)(a.Popover,{open:!!v,rootClassName:o()(l,c.A["error-tip-overlay"]),content:v&&(0,d.jsx)("div",{ref:_,style:{width:y},className:o()(c.A["error-tip-overlay-content"]),children:v}),placement:"bottom",transitionName:"ant-slide-up",arrow:!1,children:(0,d.jsx)("div",{className:o()("error-tip"),ref:x,onMouseEnter:()=>{f(!0)},children:m})})}},85696(e,t,r){"use strict";r.d(t,{A:()=>h});var n=r(73884),a=r(72752),s=r(33097),l=r.n(s),o=r(64261),i=r(46237),c=r(36045),d=r(46732),u=(r(39825),r(70188)),p=r(70579);const m=e=>{let{children:t}=e;const[r,s]=(0,n.useState)(!1),i=(0,a.usePreset)(),c=(0,a.useGlobalValue)("locale"),d=l()(i,"formInfo",{});return(0,n.useEffect)(()=>{Promise.resolve((0,o.A)(d,{locale:c})).then(()=>{s(!0)})},[d,c]),r?(0,p.jsx)(n.Fragment,{children:t},c):null},h=(0,u.A)((0,n.forwardRef)((e,t)=>{let{helperGuideName:r,lang:n,...a}=e;return(0,p.jsx)(i.Ay,{value:n,children:(0,p.jsx)(d.K,{value:r,children:(0,p.jsx)(m,{children:(0,p.jsx)(c.Form,{...a,ref:t})})})})}))},35774(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(98434),a=r(81014),s=r(70579);const l=e=>{let{onClick:t,...r}=e;const l=(0,n.useFormContext)();return(0,s.jsx)(a.default,{...r,onClick:e=>t(l,e)})}},48221(e,t,r){"use strict";r.d(t,{Ay:()=>i,WJ:()=>d,Xy:()=>c});var n=r(25963),a=r(73025),s=r(47094),l=r(76995),o=r(70579);const i=e=>(0,o.jsx)(n.default,{...(0,l.A)(Object.assign({},e,{className:s.A["form-drawer"]}))}),c=()=>{const e=(0,n.useDrawer)();return t=>e({...(0,l.A)(Object.assign({},t,{className:s.A["form-drawer"]}))})},d=e=>{const t=c();return(0,o.jsx)(a.A,{...e,modalFunc:t})}},30891(e,t,r){"use strict";r.d(t,{A:()=>a});var n=r(98434);const a=e=>{let{children:t}=e;const{openApi:r,formData:a}=(0,n.useFormContext)();return t({...r,formData:a})}},46237(e,t,r){"use strict";r.d(t,{Ay:()=>i,oc:()=>o});var n=r(73884);const a=(0,n.createContext)([]),{Provider:s,Consumer:l}=a,o=()=>(0,n.useContext)(a),i=s},5995(e,t,r){"use strict";r.d(t,{Ay:()=>c,Vl:()=>d,W6:()=>u});var n=r(3382),a=r(73025),s=r(55199),l=r(76995),o=r(47094),i=r(70579);const c=e=>(0,i.jsx)(n.default,{...(0,l.A)(Object.assign({},e,{className:o.A["form-modal"]}))}),d=()=>{const e=(0,n.useModal)();return t=>e({...(0,l.A)(Object.assign({},t,{className:o.A["form-modal"]}))})},u=e=>{let{classNames:t,...r}=e;const n=d();if(!r.api){const{modalProps:e,...t}=r;return(0,i.jsx)(s.Button,{...t,onClick:()=>{n(e)}})}return(0,i.jsx)(a.A,{...r,modalFunc:n})}},94005(e,t,r){"use strict";r.d(t,{$X:()=>v,Ay:()=>f,Wp:()=>x});var n=r(3382),a=r(73884),s=r(98434),l=r(73025),o=r(47458),i=r(47094),c=r(55431),d=r(55199),u=r(76995),p=r(70579);const m="FormInfo",h=e=>{let{items:t,children:r}=e;const[n,s]=(0,a.useState)(0);return r({currentIndex:n,setCurrentIndex:s,stepCacheRef:(0,a.useRef)({}),isLastStep:n===t.length-1,currentProps:Object.assign({},t[n])})},g=e=>{let{footerButtons:t,cancelText:r,completeText:n,nextText:a,items:l,withDecorator:g,autoClose:f=!0,...v}=e;return(0,u.A)(Object.assign({},v,{footerButtons:e=>{let{currentIndex:t,isLastStep:i}=e;const{footerButtons:d}=Object.assign({},l[t]);return d||[{children:(0,p.jsx)(o.IntlProvider,{importMessages:c.A,moduleName:m,children:r||(0,p.jsx)(o.FormattedMessage,{id:"Cancel",moduleName:m})}),ButtonComponent:s.CancelButton},{type:"primary",children:(0,p.jsx)(o.IntlProvider,{importMessages:c.A,moduleName:m,children:i?n||(0,p.jsx)(o.FormattedMessage,{id:"Complete",moduleName:m}):a||(0,p.jsx)(o.FormattedMessage,{id:"Next",moduleName:m})}),ButtonComponent:s.SubmitButton,autoClose:!1}]},withDecorator:(e,t)=>{const r=t=>(0,p.jsx)(h,{items:l,children:r=>{var n;let{currentIndex:a,isLastStep:s,setCurrentIndex:o,currentProps:c,stepCacheRef:u}=r;const{formProps:m,title:h,...g}=c,{onSubmit:v,...x}="function"===typeof m?m(t):m,_=Object.assign({},x.data,null===(n=u.current[a])||void 0===n?void 0:n.data);return e(Object.assign({},t,g,{currentIndex:a,isLastStep:s,setCurrentIndex:o,stepCacheRef:u,stepSection:(0,p.jsx)(d.Steps,{className:i.A["form-step-section"],current:a,items:l.map(e=>{let{title:t}=e;return{title:t}})}),formProps:Object.assign({},x,{key:a,data:_,onSubmit:async function(e){u.current[a]={data:e};for(var r=arguments.length,n=new Array(r>1?r-1:0),l=1;l<r;l++)n[l-1]=arguments[l];const i=v&&await v(e,Object.assign({},t,{currentIndex:a,isLastStep:s,setCurrentIndex:o,currentProps:c,stepCacheRef:u}),...n);return u.current[a]=Object.assign({},u.current[a],{output:i}),f&&!s&&!1!==i&&o(e=>e+1),!!s&&i}})}))}});return"function"===typeof g?g(r,t):r(t)},formProps:e=>{let{formProps:t,...r}=e;return Object.assign({},r,t)},children:e=>{let{children:t,stepSection:r,...n}=e;return(0,p.jsxs)(d.Flex,{vertical:!0,gap:24,children:[(0,p.jsx)(d.Flex,{justify:"center",children:r}),"function"===typeof t?t(n):t]})}}))},f=e=>(0,p.jsx)(n.default,{...g(Object.assign({},e,{className:i.A["form-modal"]}))}),v=()=>{const e=(0,n.useModal)();return t=>e({...g(Object.assign({},t,{className:i.A["form-modal"]}))})},x=e=>{const t=v();if(!e.api){const{modalProps:r,...n}=e;return(0,p.jsx)(d.Button,{...n,onClick:()=>{t(r)}})}return(0,p.jsx)(l.A,{...e,modalFunc:t})}},46732(e,t,r){"use strict";r.d(t,{A:()=>d,K:()=>c});var n=r(75363),a=r(73884),s=r(98434),l=r(47094),o=r(70579);const i=(0,a.createContext)(""),{Provider:c}=i,d=e=>{let{name:t}=e;const r=(0,a.useContext)(i),c=(0,s.useGroup)();return r&&(0,o.jsx)(n.default,{className:l.A["helper-guide-field"],name:r+"-"+(c.name?c.name+"-":"")+t})}},18936(e,t,r){"use strict";r.d(t,{A:()=>k});const n={"ant-tag":"style_ant-tag__7ct2q__urHvB",overlay:"style_overlay__CXfU5__urHvB",input:"style_input__+OpvV__urHvB","is-disabled":"style_is-disabled__uX4qq__urHvB","input-icon":"style_input-icon__E3NjK__urHvB",large:"style_large__vMozz__urHvB",small:"style_small__ubqQ+__urHvB","input-inner":"style_input-inner__sY-6k__urHvB","input-custom":"style_input-custom__Kxq3n__urHvB","display-content":"style_display-content__qA1jn__urHvB","overlay-footer-extra":"style_overlay-footer-extra__yCzWX__urHvB","selected-tag":"style_selected-tag__BZsMM__urHvB","selected-tag-list":"style_selected-tag-list__As0ho__urHvB","selected-tag-inner":"style_selected-tag-inner__2NH59__urHvB","text-inner":"style_text-inner__Bq2Ji__urHvB",placeholder:"style_placeholder__odotY__urHvB","is-modal":"style_is-modal__4cj8L__urHvB","overlay-content":"style_overlay-content__kpGRn__urHvB"};var a=r(74981);const{context:s,useContext:l,Provider:o,Consumer:i}=(0,a.A)();var c=r(73884),d=r(10986),u=r(87558),p=r(33097),m=r.n(p),h=r(55199),g=r(83136),f=r.n(g),v=r(3382),x=r(64671),_=r(79686),y=r.n(_),b=r(41740),S=r.n(b),j=r(74065),A=r.n(j),N=r(17342),C=r(70579);const F=e=>{let{maxLength:t,single:r,setValue:n,value:a,message:s}=e;return e=>n(!r&&Number.isInteger(t)&&t>0&&e.length>t?(s(`\u6700\u591a\u9009\u62e9${t}\u4e2a`),a):e)},w=e=>{let{single:t,value:r,mapping:a,onClose:s}=e;return r&&Array.isArray(r)&&0!==r.length?t?(0,C.jsx)("span",{className:n["text-inner"],children:m()(a.get(r[0]),"label")||r[0]}):r.map(e=>{const t=a.get(e);return(0,C.jsx)(h.Tag,{className:n["display-tag"],closable:!0,onClose:r=>{r.preventDefault(),s(e,t)},children:(0,C.jsx)("span",{className:n["tag-inner"],children:m()(t,"label")||e})},e)}):null},I=(0,c.forwardRef)((e,t)=>{let{value:r,onChange:a,extra:s,showSelectedTag:l,renderSelectedContent:o,children:i,...d}=e;const[u,p]=(0,c.useState)(r),m=(0,c.useRef)(r);m.current=r;const[g,f]=(0,c.useState)(!1),{message:x}=h.App.useApp(),_=F({maxLength:d.maxLength,single:d.single,setValue:p,value:u,message:x.error});return(0,c.useEffect)(()=>{g&&p(m.current)},[g]),(0,c.useImperativeHandle)(t,()=>({modalOpen:()=>{f(!0)},close:()=>{f(!1)}})),(0,C.jsx)(v.default,{...d,open:g,onConfirm:()=>{a(u)},onClose:()=>{f(!1)},footer:(l||s)&&(0,C.jsxs)(h.Space,{direction:"vertical",className:n["overlay-footer"],children:[s&&(0,C.jsx)("div",{className:n["overlay-footer-extra"],children:s}),l&&o({value:u,setValue:_})]}),children:"function"===typeof i?i({value:u,setValue:_}):i})}),P=(0,c.forwardRef)((e,t)=>{let{value:r,setValue:a,children:s,renderSelectedContent:l,showSelectedTag:o,placement:i,inputContent:d,single:u,extra:p,overlayWidth:m,wrapClassName:g,...f}=e;const[v,x]=(0,c.useState)(!1);return(0,c.useImperativeHandle)(t,()=>({close:()=>{x(!1)}}),[]),(0,C.jsx)(h.Popover,{...f,open:v,onOpenChange:x,overlayClassName:n.overlay,arrow:!1,content:(0,C.jsxs)("div",{style:m?{"--overlay-width":m}:{},className:n["overlay-content"],onClick:e=>{e.stopPropagation()},children:[(0,C.jsx)("div",{className:n["overlay-inner"],children:"function"===typeof s?s({value:r,setValue:e=>{(!u||r[0]!==e[0])&&a(e),u&&x(!1)}}):s}),(o||p)&&(0,C.jsxs)("div",{className:n["overlay-footer"],children:[p&&(0,C.jsx)("div",{className:n["overlay-footer-extra"],children:p}),o&&l({value:r,setValue:a})]})]}),trigger:"click",placement:i,children:(0,C.jsx)("div",{className:n["input-inner"],children:d})})}),M=(0,u.withFetch)(e=>{let{setFetchApi:t,wrapClassName:r,...a}=e;const[s,o]=(0,c.useState)(!1),i=(0,c.useRef)(null),d=(0,c.useRef)(null),u=l(),{valueState:p,mapping:m,props:g}=u,[v,_]=p,{single:y,placement:b,getPopupContainer:S,placeholder:j,isPopup:A,disabled:F,showSelectedTag:M,extra:T,inputContent:k}=g,O=(0,c.useRef)(a);O.current=a,(0,c.useEffect)(()=>{t(Object.assign({},O.current,{data:a.data,isComplete:a.isComplete}))},[a.data,t,a.isComplete]);const B=w({single:y,value:v,mapping:m,onClose:e=>{_(t=>{const r=t.slice(0),n=t.indexOf(e);return n>-1&&r.splice(n,1),r})}}),R=e=>{let{value:t,setValue:r}=e;return(0,C.jsxs)(h.Space,{className:n["selected-tag"],align:"center",wrap:!0,children:[(0,C.jsxs)("div",{children:["\u5df2\u9009",!g.single&&Number.isInteger(g.maxLength)&&g.maxLength>0?`(${t.length}/${g.maxLength})`:"",":"]}),(0,C.jsx)(N.A,{className:n["selected-tag-list"],children:(0,C.jsx)("div",{className:n["selected-tag-inner"],children:w({value:t,mapping:m,onClose:e=>{r(t=>{const r=t.slice(0),n=t.indexOf(e);return n>-1&&r.splice(n,1),r})}})})})]})},E=k?k(u):(0,C.jsxs)(h.Space,{className:n["display-content"],onMouseOver:()=>{o(!0)},onMouseOut:()=>{o(!1)},children:[(0,C.jsx)("div",{children:B||(0,C.jsx)("span",{className:n.placeholder,children:j})}),s&&v&&v.length>0&&!F?(0,C.jsx)(x.default,{className:f()(n.close,n["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),_([])}}):(0,C.jsx)(x.default,{className:f()(n["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return A?(0,C.jsx)(P,{ref:d,overlayWidth:g.overlayWidth,value:v,setValue:_,single:y,inputContent:E,extra:"function"===typeof T?T({close:()=>d.current.close(),context:u}):T,renderSelectedContent:R,showSelectedTag:M,trigger:"click",placement:b,getPopupContainer:S,children:g.children}):(0,C.jsxs)("div",{className:n["input-inner"],onClick:()=>{i.current.modalOpen()},children:[(0,C.jsx)(I,{size:g.modalSize,ref:i,single:g.single,maxLength:g.maxLength,disabledScroller:!0,wrapClassName:f()(n.overlay,n["is-modal"],r),title:g.placeholder,value:v,onChange:_,extra:"function"===typeof T?T({close:()=>i.current.close(),context:u}):T,showSelectedTag:M,renderSelectedContent:R,children:g.children}),E]})}),T=e=>{let{api:t,className:r,displayItems:a,wrapClassName:s,...l}=e;const[i,u]=(0,c.useState)(""),[p,g]=(0,c.useState)(new Map(a.map(e=>[e.value,e]))),[v,x]=(0,c.useState)({}),{message:_}=h.App.useApp(),b=e=>{const t=e.filter(e=>p.get(e.value)!==e);0!==t.length&&g(e=>{const r=S()(e);return t.forEach(e=>{r.set(e.value,e)}),r})},j=e=>((e,t,r)=>"all"!==r?e:(t(e),e.map(e=>e.value)))(l.single?y()(e)?[]:[e]:e||[],b,l.valueType),[N,w]=(0,d.default)(Object.assign({},l,{onChange:e=>{const t=((e,t,r)=>"all"!==r?e:e.map(e=>t.get(e)))(e,p,l.valueType);l.onChange&&l.onChange(l.single?A()(t):t)}},"value"in l?{value:j(l.value)}:{defaultValue:j(l.defaultValue)})),I=F({maxLength:l.maxLength,single:l.single,setValue:w,value:N,message:_.error});return(0,C.jsx)(o,{value:{mapping:p,searchText:i,setSearchText:u,appendMapping:b,setItems:e=>{v.setData(e),b(m()(l.dataFormat(e),"list",[]))},fetchApi:v,valueState:[N,I],props:l},children:(0,C.jsx)("div",{className:f()(n["input"+(l.inputContent&&"function"===typeof l.inputContent?"-custom":"")],r),children:(0,C.jsx)(M,{...t,wrapClassName:s,loading:null,setFetchApi:x,onRequestSuccess:e=>{b(m()(l.dataFormat(e),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}})})})};T.defaultProps={placeholder:"\u8bf7\u9009\u62e9",displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",getPopupContainer:null,showSelectedTag:!0},T.useContext=l;const k=T},76995(e,t,r){"use strict";r.d(t,{A:()=>d});var n=r(98434),a=r(52526),s=r(83799),l=r(83136),o=r.n(l),i=r(47094),c=r(70579);const d=e=>{let{className:t,withDecorator:r,footerButtons:l,formProps:d,cancelText:u,saveText:p,autoClose:m=!0,...h}=e;return{...h,footerButtons:l||[{children:u||(0,c.jsx)(a.FormattedMessage,{id:"Cancel"}),ButtonComponent:n.CancelButton},{type:"primary",children:p||(0,c.jsx)(a.FormattedMessage,{id:"Save"}),ButtonComponent:n.SubmitButton,autoClose:!1}],withDecorator:(e,t)=>{const n=t=>{const{onSubmit:r,key:n,...a}=Object.assign({},"function"===typeof d?d(t):d);return(0,c.jsx)(s.lV,{...a,onSubmit:async function(e){for(var n=arguments.length,a=new Array(n>1?n-1:0),s=1;s<n;s++)a[s-1]=arguments[s];!1!==(r&&await r(e,Object.assign({},t),...a))&&m&&t.close()},children:e(t)})};return"function"===typeof r?r(n,t):n(t)},className:o()(t,i.A["form-outer"])}}},1904(e,t,r){"use strict";r.d(t,{A:()=>i,N:()=>c});var n=r(98434),a=r(43856);const{useOnChange:s,useDecorator:l}=n.hooks,o=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(a.AddressSelectField);o.Field=a.AddressSelectField,o.AddressEnum=a.AddressSelectField.AddressEnum,o.createAddressApi=a.AddressSelectField.createAddressApi,o.withAddressApi=a.AddressSelectField.withAddressApi;const i=o,c=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label,inputPlaceholder:"\u8bf7\u8f93\u5165"+e.label},e))(a.AddressInputField);c.Field=a.AddressInputField},30096(e,t,r){"use strict";r.d(t,{Ay:()=>d});var n=r(98434),a=r(43856);const{useOnChange:s}=n.hooks,l=e=>{const t=t=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},o=l(a.UserField),i=l(a.TableField),c=l(a.AdvancedSelectField);c.createdList=e=>{let{renderList:t,defaultProps:r}=e;return l((0,a.createListField)({renderList:t,defaultProps:r}))},c.User=o,c.Table=i;const d=c},96339(e,t,r){"use strict";r.d(t,{A:()=>L});var n=r(73884),a=r(17508),s=r(40438),l=r(72752),o=r(3382),i=r(64671),c=r(55199),d=r(53202),u=r.n(d),p=r(33097),m=r.n(p),h=r(83136),g=r.n(h),f=r(51941),v=r(98434),x=r(34677),_=r.n(x);const y="style_upload-btn__-6XtP__urHvB",b="style_square__UPkfA__urHvB",S="style_is-loading__wx6Pd__urHvB",j="style_upload-btn-tips__YtxWz__urHvB",A="style_drop-tips__N-v59__urHvB",N="style_preview-area__aV3SN__urHvB";var C=r(18411),F=r(47458),w=r(55431),I=r(70579);const{useOnChange:P}=v.hooks,M=s.default.Avatar,T="FormInfo",k=(0,a.Ay)(e=>{let{className:t,icon:r,loading:n,value:a,gender:s,width:l,height:o,children:d,shape:u,defaultAvatar:p,displayAvatar:h,apis:f}=e;const v=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(M,{...Object.assign({},"function"===typeof h?h(a):{id:m()(a,"id")}),gender:s,width:64*l/o,height:64,shape:u,defaultAvatar:p,apis:f}),(0,I.jsx)("div",{className:j,children:r||(0,I.jsx)(i.default,{type:"icon-chuanzhaopian",size:16})}),d]});return(0,I.jsx)("div",{className:g()(t,y,{[S]:n,[b]:"square"===u||!(l&&l===o)}),style:{width:64*l/o},children:n?(0,I.jsx)(c.Spin,{children:v}):v})}),O=e=>{let t=e.split(","),r=t[1].substring(0,t[1].length-2),n=t[0].match(/:(.*?);/)[1],a=atob(r),s=a.length,l=new Uint8Array(s);for(;s--;)l[s]=a.charCodeAt(s);return new Blob([l],{type:n})},B=(0,n.forwardRef)((e,t)=>{let{image:r,width:s,height:l,borderRadius:o,preview:d,fileSize:p,accept:m,renderTips:h,getApi:g,shape:v,border:x=1,..._}=e;const y=(0,F.useIntl)({moduleName:T}),[b,S]=(0,n.useState)(0),j=(0,n.useRef)(null),[C,w]=(0,n.useState)(r),[P,M]=(0,n.useState)(1),[k,B]=(0,n.useState)(0),[R,E]=(0,n.useState)(""),D=(0,n.useRef)(null);(0,n.useLayoutEffect)(()=>{S(2*j.current.clientWidth/3)},[]),g({getImage:()=>{const e=D.current.getImage(),t=document.createElement("canvas"),r=t.getContext("2d");return t.width=s,t.height=l,r.drawImage(e,0,0,t.width,t.height),new window.File([O(t.toDataURL())],C.name,{type:C.type})}});const L=()=>{E(D.current.getImage().toDataURL())},H=(0,f.useDebouncedCallback)(L,500);return(0,I.jsx)("div",{ref:j,children:(0,I.jsxs)(c.Row,{wrap:!1,align:"middle",children:[(0,I.jsx)(c.Col,{span:d?16:24,children:b&&(0,I.jsxs)(c.Space,{direction:"vertical",children:[(0,I.jsx)(u(),{..._,ref:D,image:C,scale:P,rotate:k,width:b-2*x,height:l*b/s-2*x*l/s,border:x,color:[0,0,0,.6],borderRadius:o*b/s,onImageReady:L,onImageChange:H}),(0,I.jsx)("div",{className:A,children:h(`${y.formatMessage({id:"PictureFormat"})}${m.map(e=>e.replace(/^\./,"")).join(" ")} ${y.formatMessage({id:"ImageSize"})}${y.formatMessage({id:"NotExceeding"},{size:p})}`,{accept:m,fileSize:p})}),(0,I.jsxs)(c.Row,{gutter:14,align:"middle",children:[(0,I.jsx)(c.Col,{children:(0,I.jsx)(c.Tooltip,{title:y.formatMessage({id:"Rotate"}),placement:"bottom",children:(0,I.jsx)(i.default,{type:"icon-xuanzhuan",onClick:()=>{B(e=>(e-90)%360)}})})}),(0,I.jsx)(c.Col,{children:(0,I.jsx)(c.Tooltip,{title:y.formatMessage({id:"ImageFull"}),placement:"bottom",children:(0,I.jsx)(i.default,{type:"icon-chongman",onClick:()=>{M(1)}})})}),(0,I.jsx)(c.Col,{flex:1,children:(0,I.jsx)(c.Slider,{tooltip:{placement:"bottom",formatter:()=>y.formatMessage({id:"Size"})},value:P,step:.05,min:.2,max:3,onChange:M})}),(0,I.jsx)(c.Col,{children:(0,I.jsx)(a.FI,{accept:m,onChange:e=>{e[0].size>1024*p*1024?c.message.error(y.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:p})):(B(0),M(1),w(e[0]))},children:y.formatMessage({id:"ReUpload"})})})]})]})}),d&&(0,I.jsx)(c.Col,{span:8,children:(0,I.jsx)("div",{className:N,children:(0,I.jsxs)(c.Space,{direction:"vertical",children:[(0,I.jsx)(c.Avatar,{src:R,shape:v,style:{width:b/2-36,height:(b/2-36)*l/s}}),(0,I.jsx)("div",{style:{textAlign:"center"},children:y.formatMessage({id:"Preview"})})]})})})]})})}),R=()=>{const e=(0,o.useModal)();return t=>{const{image:r,width:n,height:a,borderRadius:s,getApi:l,preview:o,fileSize:i,accept:c,renderTips:d,border:u,dropModalSize:p,...m}=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);return e({...m,size:p,children:(0,I.jsx)(B,{preview:o,fileSize:i,accept:c,getApi:l,renderTips:d,width:n,height:a,shape:"circle"===t.shape&&t.width&&t.width===t.height?"circle":"square",borderRadius:s,image:r,border:u,scale:1,rotate:0})})}},E=(0,F.createWithIntl)({importMessages:w.A,moduleName:"FormInfo"})(e=>{var t;let{value:r,gender:a,fileSize:s=2,accept:o=[".jpg",".png",".jpeg"],openEditor:i=!0,apis:d,renderTips:u=e=>e,onChange:p,shape:m="circle",width:h=200,height:g=200,title:f=(0,I.jsx)(F.IntlProvider,{importMessages:w.A,moduleName:"FormInfo",children:(0,I.jsx)(F.FormattedMessage,{id:"Crop",moduleName:"FormInfo"})}),border:v=1,icon:x,dropModalSize:y="small",defaultAvatar:b=C.A,displayAvatar:S}=e;const[j,A]=(0,n.useState)(!1),{apis:N}=(0,l.usePreset)(),P=_()({},N,d),M=P.ossUpload||P.upload||(null===(t=P.file)||void 0===t?void 0:t.upload),O=(0,n.useRef)(null),B=R(),E=(0,F.useIntl)({moduleName:T});return(0,I.jsx)(k,{value:r,gender:a,accept:o,width:h,height:g,shape:m,icon:x,loading:j,defaultAvatar:b,displayAvatar:S,apis:P,onChange:e=>{if(e[0].size>1024*s*1024)return void c.message.error(E.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:s}));const t=e=>(A(!0),M({file:e}).then(e=>{let{data:t}=e;0===t.code?p(t.data):c.message.error(E.formatMessage({id:"UploadFailed"},{msg:t.msg?":"+t.msg:""}))}).finally(()=>{A(!1)}));i?B({image:e[0],width:h,height:g,title:f,shape:m,border:v,dropModalSize:y,getApi:e=>O.current=e,fileSize:s,accept:o,renderTips:u,onConfirm:()=>{t(O.current.getImage())}}):t(e[0])}})}),D=e=>P(e)(E);D.Field=E,D.useDropModal=R;const L=D},83230(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(98434),a=r(43856);const{useOnChange:s}=n.hooks,l=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(a.CascaderField);l.Field=a.CascaderField,l.createTreeUtils=a.createTreeUtils;const o=l},81026(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(43856),a=r(98434);const{useOnChange:s}=a.hooks,l=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.FunctionSelectField);l.Field=n.FunctionSelectField,l.Enum=n.FunctionSelectField.Enum;const o=l},78756(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(43856),a=r(98434);const{useOnChange:s}=a.hooks,l=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.IndustrySelectField);l.Field=n.IndustrySelectField,l.Enum=n.IndustrySelectField.Enum;const o=l},15209(e,t,r){"use strict";r.d(t,{A:()=>c});var n=r(55199),a=r(10986),s=r(13050),l=r(70579);const o=e=>{let{...t}=e;const[r,s]=(0,a.default)(t);return(0,l.jsx)(n.Input,{...t,value:r,onChange:e=>{s(e.target.value?e.target.value.toUpperCase():e.target.value,e)}})},i=(0,s.createWithRemoteLoader)({modules:["FormInfo@formModule"]})(e=>{let{remoteModules:t,...r}=e;const[n]=t,{hooks:a}=n,{useDecorator:s}=a;return s(Object.assign({placeholder:`\u8bf7\u8f93\u5165${r.label||""}`},r))(o)});i.field=o;const c=i},92328(e,t,r){"use strict";r.d(t,{A:()=>_});var n=r(10986),a=r(98434),s=r(55199),l=r(69484);const o="style_money-input__Pyur7__urHvB",i="style_money-description__9pFk4__urHvB";var c=r(83136),d=r.n(c),u=r(34677),p=r.n(u),m=r(73884),h=r(70579);const{isNotEmpty:g}=a.util||a.formUtils,{useOnChange:f}=a.hooks,v=e=>{let{chineseEmpty:t,className:r,showError:a,errorDesc:c,transformMoneyToChinese:u,onBlur:f,moneyFormat:v,...x}=e;const[_,y]=(0,m.useState)(""),[b,S]=(0,n.default)(x),j=p()({controls:!1,precision:2,addonAfter:"\u5143"},x,{max:g(x.max)?x.max>l.e?l.e:x.max:l.e});return(0,h.jsxs)("div",{className:d()(r,"money-input",o),children:[(0,h.jsx)(s.InputNumber,{...j,status:_,formatter:v?e=>`${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 g(t)?(Number(t)>Number(j.max)||g(j.min)&&Number(t)<Number(j.min))&&y("error"):y(""),g(t)?Number(t):null},onChange:e=>{S(e)},onBlur:e=>{f&&f(e,y)}}),(0,h.jsx)("div",{className:d()(i),children:"error"===_&&a?c:g(b)?(0,l.A)(u?u(b):b):t})]})},x=e=>f(Object.assign({placeholder:`\u8bf7\u8f93\u5165${e.label||""}`},e))(v);x.Field=v,x.toChineseCharacter=l.A;const _=x},2842(e,t,r){"use strict";r.d(t,{default:()=>n.default});r(2885);var n=r(77339);r.o(n,"PHONE_NUMBER_INPUT")&&r.d(t,{PHONE_NUMBER_INPUT:function(){return n.PHONE_NUMBER_INPUT}})},36972(e,t,r){"use strict";r.d(t,{A:()=>T});var n=r(73884),a=r(87558),s=r(98434),l=r(78491),o=r(55199);const i="style_salary__sUOtT__urHvB",c="style_salary-type__Sl1LC__urHvB",d="style_input-number__eoEZr__urHvB",u="style_full__NPqJm__urHvB",p="style_input-group__toLB7__urHvB",m="style_input-group-no-mb__C4nzh__urHvB",h="style_separator__uTK9-__urHvB",g="style_separator-text__6R5Hs__urHvB";var f=r(47458),v=r(55431),x=r(48731),_=r(10986),y=r(65317),b=r(70579);const S=(0,a.withFetch)(e=>{let{data:t,...r}=e;return(0,b.jsx)(o.Select,{...r,options:t})}),{useDecorator:j,useUIDecorator:A}=s.hooks,N=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},C=e=>{let{children:t,isError:r}=e;return(0,b.jsx)("div",{style:{marginBottom:0},className:"react-form__field "+(r?"is-error":""),children:(0,b.jsx)("div",{className:"react-form__field-main",children:(0,b.jsx)("div",{className:"react-form__field-input",children:(0,n.cloneElement)(t,{className:"react-form__field-component"})})})})},F=e=>{let{getPopupContainer:t,onBlur:r,api:n,isRange:a=!0,placeholder:s,disabled:v,showMonth:j,remindUnit:A,req:F,...w}=e;const[I,P]=(0,_.default)(w),{formatMessage:M}=(0,f.useIntl)({moduleName:"FormInfo"}),T=M({id:"defaultSelectPlaceholder"},{label:""}),k=M({id:"defaultInputPlaceholder"},{label:""}),O=[6].indexOf((0,y.get)(I,"type"))>-1,B=1===(0,y.get)(I,"type"),R=7===(0,y.get)(I,"type"),E=e=>{if(e)return O?e/1e4:e},D=(0,l.default)(r||(()=>{}));return(0,b.jsx)("div",{ref:D,className:i,children:(0,b.jsxs)(o.Row,{wrap:!1,gutter:10,children:[(0,b.jsx)(o.Col,{children:(0,b.jsx)(S,{className:c,...n,value:(0,y.get)(I,"type"),onChange:e=>{P&&P(Object.assign({},B?{}:I,{type:e,min:"",max:""}))},placeholder:s||T,getPopupContainer:t,disabled:v})}),B?null:(0,b.jsxs)(o.Col,{flex:1,children:[a&&(0,b.jsxs)(o.Row,{className:A&&[5,6].includes(null===I||void 0===I?void 0:I.type)?p:m,wrap:!1,gutter:8,align:"middle",children:[(0,b.jsx)(o.Col,{flex:1,children:(0,b.jsx)(C,{isError:!(0,y.get)(I,"min")&&F,children:(0,b.jsx)(o.InputNumber,{disabled:v,placeholder:k,formatter:N,value:E((0,y.get)(I,"min")),style:{width:"100%"},onChange:e=>{P(Object.assign({},I,{min:O?1e4*e:e}))},description:A&&[5,6].includes(null===I||void 0===I?void 0:I.type)?(0,b.jsxs)("span",{style:{color:"#fc3333"},children:["\u6ce8\u610f\uff1a",(0,b.jsx)(x.default,{name:null===I||void 0===I?void 0:I.type,moduleName:"salaryTypeEnum"}),"\u7684\u5355\u4f4d\u4e3a",O?M({id:"thousand"}):R?"":M({id:"yuan"})]}):null})})}),(0,b.jsx)(o.Col,{className:h,children:(0,b.jsx)("span",{className:g,children:"~"})}),(0,b.jsx)(o.Col,{flex:1,children:(0,b.jsx)(C,{isError:!(0,y.get)(I,"max")&&F,children:(0,b.jsx)(o.InputNumber,{disabled:v,placeholder:k,formatter:N,value:E((0,y.get)(I,"max")),style:{width:"100%"},addonAfter:O?M({id:"thousand"}):R?"":M({id:"yuan"}),onChange:e=>{P(Object.assign({},I,{max:O?1e4*e:e}))}})})}),5===(0,y.get)(I,"type")&&j&&(0,b.jsx)(o.Col,{children:(0,b.jsxs)(o.Flex,{className:(0,y.get)(I,"max")&&(0,y.get)(I,"min")&&!(0,y.get)(I,"month")&&F?"error":"",children:[(0,b.jsx)("span",{className:d,children:"X"}),(0,b.jsx)(o.InputNumber,{min:12,disabled:v,value:(0,y.get)(I,"month"),onChange:e=>{P(Object.assign({},I,{month:e}))},style:{width:100,textAlign:"center"},placeholder:"\u6570\u91cf",addonAfter:"\u6708"})]})})]}),!a&&!R&&(0,b.jsx)(o.InputNumber,{disabled:v,min:0,max:1e8,placeholder:k,className:u,formatter:N,value:E((0,y.get)(I,"max")),style:{textAlign:"center"},addonAfter:O?M({id:"thousand"}):R?"":M({id:"yuan"}),onChange:e=>{P(Object.assign({},I,{max:O?1e4*e:e}))}}),!a&&R&&(0,b.jsx)(o.Input,{disabled:v,placeholder:k,className:u,onChange:e=>{P(Object.assign({},I,{max:e.target.value}))},value:(0,y.get)(I,"max"),style:{textAlign:"center"}})]})]})})},w={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"}]},I={type:5,min:"",max:"",month:12},P=e=>{let{api:t=w,defaultValue:r=I,...n}=e;return(0,b.jsx)(f.IntlProvider,{moduleName:"FormInfo",importMessages:v.A,children:(0,b.jsx)(F,{...n,api:t,defaultValue:r})})},M=e=>{var t;return j({...e,req:(null===e||void 0===e||null===(t=e.rule)||void 0===t?void 0:t.indexOf("REQ"))>-1})(P)};M.Field=P;const T=M},34643(e,t,r){"use strict";r.d(t,{Ay:()=>p,Pg:()=>c,eM:()=>d,kx:()=>u});var n=r(98434),a=r(43856),s=r(60586);const{useOnChange:l}=n.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(a.SuperSelectField),c=o(s.$9),d=o(a.SuperSelectTableListField),u=o(a.SuperSelectTreeField),p=i},56259(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(89319),a=r(98434);const{useOnChange:s}=a.hooks,l=e=>s(Object.assign({},{},e))(n.A);l.Field=n.A;const o=l},89099(e,t,r){"use strict";r.d(t,{A:()=>b});var n=r(55199),a=r(83136),s=r.n(a),l=r(10986);const o="style_upload__t422Q__urHvB",i="style_upload-list__Q9HDc__urHvB",c="style_tips__3Gpnu__urHvB";var d=r(34699),u=r(98434),p=r(47458),m=r(1488),h=r.n(m),g=r(17508),f=r(55431),v=r(70579);const{useOnChange:x}=u.hooks,_=(0,p.createWithIntl)({importMessages:f.A,moduleName:"FormInfo"})(e=>{const{formatMessage:t}=(0,p.useIntl)({moduleName:"FormInfo"}),{className:r,fileSize:a,maxLength:u,multiple:m,size:f,accept:x,children:_,renderTips:y,showUploadList:b,onSave:S,ossUpload:j,onUpload:A,getPermission:N,concurrentCount:C,...F}=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),[w,I]=(0,l.default)(F),P=w||[],{fileList:M,onFileSelected:T}=(0,g.lN)({multiple:m,onSave:S,onUpload:j||A,fileSize:a,maxLength:u,value:P,onChange:I,concurrentCount:C}),k=[...M,...P],O=y(t({id:"uploadTips"},{extensionNames:x.map(e=>e.replace(/^\./,"")).join(","),maxLength:u,fileSize:a}),{fileSize:a,maxLength:u,accept:x});return(0,v.jsxs)(n.Space,{direction:"vertical",children:[(0,v.jsxs)(n.Flex,{align:"start",gap:8,vertical:!0,children:[(0,v.jsx)(g.Zi,{...h()(F,["value","onChange"]),size:f,multiple:m,accept:x,className:s()(o,r),onChange:T,children:_}),O&&(0,v.jsx)("div",{className:c,children:O})]}),b&&k.length>0&&(0,v.jsx)(d.List,{className:i,dataSource:k,infoItemRenders:[],getPermission:N||(e=>"delete"===e),apis:{onDelete:e=>{const t=P.slice(0),r=t.indexOf(e);r>-1&&t.splice(r,1),I(t)}}})]})}),y=e=>{let{interceptor:t="file-format",...r}=e;return x({interceptor:t,...r})(_)};y.Field=_;const b=y},5089(e,t,r){"use strict";r.d(t,{A:()=>se,E:()=>le});var n=r(98434),a=r(30096),s=r(34643),l=r(1904),o=r(83230),i=r(55199),c=r(70579);const{useOnChange:d}=n.hooks,u=e=>(0,c.jsx)(i.ColorPicker,{...e,onChange:t=>e.onChange(t.toHexString())}),p=e=>d(Object.assign({},e))(u);p.Field=p;const m=p;var h=r(81026),g=r(78756),f=r(92328),v=r(2842);const{useOnChange:x,useCheckedToValue:_}=n.hooks,{withChecked:y}=n.hoc,b=y(e=>{let{checked:t,children:r=null,...n}=e;return(0,c.jsxs)(i.Space,{children:[(0,c.jsx)(i.Switch,{checked:t,...n}),"function"===typeof r?r({checked:t}):r]})}),S=e=>{e=Object.assign({},{fieldName:"switch"},e);const t=_(e);return x(t)(b)};S.Field=i.Switch;const j=S;var A=r(89099),N=r(96339),C=r(36972),F=r(80071),w=(r(65176),r(17508)),I=r(10986),P=r(40438),M=r(70188),T=r(52526);const{useOnChange:k}=n.hooks,O=(0,M.A)(e=>{const{formatMessage:t}=(0,T.useIntl)(),{render:r,placeholder:n=t({id:"ClickSign"}),title:a=t({id:"Sign"}),width:s,height:l,mask:o,onUpload:d,...u}=e,[p,m]=(0,I.default)(e),{onFileSelected:h}=(0,w.lN)({onUpload:d,maxLength:1,value:p?[p]:[],onChange:e=>{m(e[0])}}),g=(0,F.useSignature)();return"function"===typeof r?r({modal:g,value:p,placeholder:n}):(0,c.jsx)(i.Button,{...u,style:{height:"62px",overflow:"hidden"},onClick:()=>{g({title:a,width:s,height:l,mask:o,onSuccess:async e=>{await h([e])}})},children:p&&p.id?(0,c.jsx)(P.default,{id:p.id,style:{height:"60px"}}):n})}),B=e=>{let{...t}=e;return k(t)(O)};B.Field=O;const R=B;var E=r(15209),D=r(74529),L=r(73884),H=r(33097),z=r.n(H),U=r(65317),$=r(46237),V=r(56259),W=r(29556),G=r(64671),q=r(83136),Q=r.n(q),Y=r(47094);const X=e=>t=>{const r=(0,D.default)(...e)(e=>{let{forwardedRef:r,label:n,placeholder:a,labelRender:s,...l}=e;return(0,c.jsx)(t,{...l,label:n,placeholder:a,labelRender:function(){const e="function"===typeof s?s(...arguments):n;return l.tips?(0,c.jsxs)(i.Space,{children:[e,(0,c.jsx)(W.default,{content:l.tips,children:(0,c.jsx)("span",{className:Q()(Y.A["field-tips"],{[Y.A["label-hidden"]]:l.labelHidden}),children:(0,c.jsx)(G.default,{type:"icon-xinxi-miaobian"})})})]}):e},ref:r})}),n=(0,L.forwardRef)((e,t)=>(0,c.jsx)(r,{...e,forwardedRef:t}));return Object.keys(t).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(e=>{n[e]=t[e]}),n},Z=e=>(0,M.A)(t=>{let{placeholder:r,label:n,...a}=t;const{formatMessage:s}=(0,T.useIntl)();return(0,c.jsx)(e,{...a,label:n,placeholder:r||s({id:"defaultInputPlaceholder"},{label:n})})}),J=e=>(0,M.A)(t=>{let{placeholder:r,label:n,...a}=t;const{formatMessage:s}=(0,T.useIntl)();return(0,c.jsx)(e,{...a,label:n,placeholder:r||s({id:"defaultSelectPlaceholder"},{label:n})})}),K=e=>t=>{const r=(0,n.useGroup)(),a=z()(r,"name"),s=(0,U.get)(r,"index"),l=(0,$.oc)();return l&&Array.isArray(l)&&l.length>0?l.map(r=>{if("string"===typeof r)return(0,L.createElement)(e,{...t,key:r});const{name:n,label:l,options:o}=r,i=z()(o,"ignore",[]),c=z()(o,"disabled",[]),d=z()(o,"fields",[]),u=e=>t.name===e.name&&!(e.hasOwnProperty("groupName")&&e.groupName!==a)&&!(e.hasOwnProperty("groupIndex")&&e.groupIndex!==s);if(i.length>0&&i.find(u))return null;if(d.length>0&&!d.find(u))return null;let p=Object.assign({},t,{name:z()(o,"nameTransform",(e,t)=>`${e}${t}`)(t.name,n),label:z()(o,"labelTransform",(e,t)=>e&&`${e}${t}`)(t.label,l)});return c.length>0&&c.find(u)&&(p.disabled=!0,p.rule=""),(0,L.createElement)(e,{...p,key:n})}):(0,c.jsx)(e,{...t})},ee=X([K,Z])(n.Input),te=X([K,Z])(n.InputNumber);ee.Password=X([K,Z])(n.Input.Password);const re=X([K,J])(n.DatePicker);re.MonthPicker=X([K,J])(n.DatePicker.MonthPicker),re.RangePicker=X([K,J])(n.DatePicker.RangePicker),re.WeekPicker=X([K,J])(n.DatePicker.WeekPicker);const ne=X([K,J])(n.TimePicker);ne.RangePicker=X([K,J])(n.TimePicker.RangePicker);const ae=X([K])(e=>{let{placeholder:t,label:r,soFarText:a,...s}=e;const{formatMessage:l}=(0,T.useIntl)({moduleName:"FormInfo"});return(0,c.jsx)(n.DatePickerToday,{...s,label:r,placeholder:[l({id:"startDate"}),l({id:"endDate"})],soFarText:a||l({id:"soFarText"})})}),se={Signature:R,Input:ee,Checkbox:n.Checkbox,Password:ee.Password,InputNumber:te,DatePicker:re,MonthPicker:re.MonthPicker,WeekPicker:re.WeekPicker,DateRangePicker:re.RangePicker,TimeRangePicker:ne.RangePicker,TimePicker:ne,DatePickerToday:ae,RadioGroup:X([K])(n.RadioGroup),CheckboxGroup:X([K])(n.CheckboxGroup),Rate:X([K])(n.Rate),Switch:X([K])(j),Slider:X([K])(n.Slider),SalaryInput:X([K,Z])(C.A),TypeDateRangePicker:X([K])(V.A),MoneyInput:X([K,Z])(f.A),PhoneNumber:X([K,Z])(v.default),Upload:X([K])(A.A),Avatar:X([K])(N.A),FunctionSelect:X([K,J])(h.A),IndustrySelect:X([K,J])(g.A),Cascader:X([K,J])(o.A),ColorPicker:X([K,J])(m),AddressSelect:X([K,J])(l.A),AddressInput:X([K,J])(l.N),TreeSelect:X([K,J])(n.TreeSelect),ReactInputNumber:X([K,Z])(n.InputNumber),InputUpperCase:X([K,Z])(E.A),Select:X([K,J])(n.Select),TextArea:X([K,Z])(n.TextArea),AdvancedSelect:X([K,J])(a.Ay),SuperSelect:X([K,J])(s.Ay),SuperSelectTableList:X([K,J])(s.eM),SuperSelectUser:X([K,J])(s.Pg),SuperSelectTree:X([K,J])(s.kx)},le={createWithFieldDecorator:X,withInputDefaultPlaceholder:Z,withSelectDefaultPlaceholder:J,withLang:K}},83799(e,t,r){"use strict";r.d(t,{NI:()=>D,TQ:()=>u.A,JL:()=>k,eu:()=>x.A,vx:()=>p.A,lr:()=>q,s3:()=>Q,lV:()=>a.A,d4:()=>m.A,ZN:()=>h.A,pd:()=>H,YI:()=>V,h2:()=>L,F0:()=>g.A,go:()=>f.default,tt:()=>n.Rate,lu:()=>_.A,l6:()=>$,Ap:()=>n.Slider,wD:()=>O,eM:()=>B,kx:()=>E,Pg:()=>R,dO:()=>n.Switch,EY:()=>w,fs:()=>z,AG:()=>G,f7:()=>W,w5:()=>b.A,_O:()=>v.A,nk:()=>Y});var n=r(98434),a=r(85696),s=r(52526),l=r(73884),o=r(30891),i=r(47094),c=r(30096),d=r(34643),u=r(1904),p=r(83230),m=r(81026),h=r(78756),g=r(92328),f=r(2842),v=r(89099),x=r(96339),_=r(36972),y=r(15209),b=r(56259),S=r(55199),j=r(10986),A=r(70579);const{useDecorator:N}=n.hooks,C=e=>{let{children:t,...r}=e;const[n]=(0,j.default)(r);return(0,A.jsxs)(S.Typography.Text,{...r,children:[(0,A.jsx)("div",{style:{height:0,width:0,overflow:"hidden"},children:(0,A.jsx)(S.Input,{value:n})}),t||n]})},F=e=>N(e)(C);F.Field=C;const w=F;var I=r(45053),P=r(70188);const M=e=>{const t=(0,P.A)((0,l.forwardRef)((t,r)=>{let{placeholder:n,label:a,...l}=t;const{formatMessage:o}=(0,s.useIntl)();return(0,A.jsx)(e,{...l,ref:r,label:a,placeholder:n||o({id:"defaultInputPlaceholder"},{label:a})})}));return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(r=>{t[r]=e[r]}),t},T=e=>{const t=(0,P.A)((0,l.forwardRef)((t,r)=>{let{placeholder:n,label:a,...l}=t;const{formatMessage:o}=(0,s.useIntl)();return(0,A.jsx)(e,{...l,ref:r,label:a,placeholder:n||o({id:"defaultSelectPlaceholder"},{label:a})})}));return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(r=>{t[r]=e[r]}),t},k=T(c.Ay),O=T(d.Ay),B=T(d.eM),R=T(d.Pg),E=T(d.kx),D=T(u.N),L=M(y.A),H=M(n.Input);H.Password=M(n.Input.Password);const z=(U=n.TextArea,(0,P.A)(e=>{let{placeholder:t,label:r,className:n,...a}=e;const{formatMessage:l}=(0,s.useIntl)();return(0,A.jsx)("div",{className:i.A["textarea-wrapped-component"],children:(0,A.jsx)(U,{...a,label:r,placeholder:t||l({id:"defaultInputPlaceholder"},{label:r})})})}));var U;const $=T(n.Select),V=M(n.InputNumber),W=T(n.TreeSelect),G=T(n.TimePicker);G.RangePicker=T(n.TimePicker.RangePicker);const q=T(n.DatePicker);q.MonthPicker=T(n.DatePicker.MonthPicker),q.RangePicker=T(n.DatePicker.RangePicker),q.WeekPicker=T(n.DatePicker.WeekPicker);const Q=e=>{let{placeholder:t,label:r,soFarText:a,...l}=e;const{formatMessage:o}=(0,s.useIntl)({moduleName:"FormInfo"});return(0,A.jsx)(n.DatePickerToday,{...l,label:r,placeholder:[o({id:"startDate"}),o({id:"endDate"})],soFarText:a||o({id:"soFarText"})})},Y=Object.assign({},n,{Input:H,InputUpperCase:L,TextArea:z,Select:$,InputNumber:V,TreeSelect:W,TimePicker:G,DatePicker:q,DatePickerToday:Q,Form:a.A,FormItem:o.A,AdvancedSelect:k,SuperSelect:O,SuperSelectTableList:B,SuperSelectUser:R,SuperSelectTree:E,AddressSelect:u.A,AddressInput:D,MoneyInput:g.A,PhoneNumber:f.default,Cascader:p.A,FunctionSelect:m.A,IndustrySelect:h.A,TypeDateRangePicker:b.A,Upload:v.A,Avatar:x.A,SalaryInput:_.A,Text:w,Rate:n.Rate,Switch:n.Switch,Slider:n.Slider,ErrorTip:I.A})},96252(e,t,r){"use strict";r.r(t),r.d(t,{AddressInput:()=>g.NI,AddressSelect:()=>g.TQ,AdvancedSelect:()=>g.JL,Avatar:()=>g.eu,Cascader:()=>g.vx,DatePicker:()=>g.lr,DatePickerToday:()=>g.s3,ErrorTip:()=>p.A,Form:()=>d.A,FormApiButton:()=>l.A,FormDrawer:()=>c.Ay,FormDrawerButton:()=>c.WJ,FormItem:()=>u.A,FormModal:()=>o.Ay,FormModalButton:()=>o.W6,FormStepModal:()=>i.Ay,FormStepModalButton:()=>i.Wp,FormSteps:()=>s.FormSteps,FunctionSelect:()=>g.d4,IndustrySelect:()=>g.ZN,Input:()=>g.pd,InputNumber:()=>g.YI,InputUpperCase:()=>g.h2,List:()=>s.List,MoneyInput:()=>g.F0,MultiField:()=>s.MultiField,PhoneNumber:()=>g.go,Rate:()=>g.tt,SalaryInput:()=>g.lu,Select:()=>g.l6,SelectInnerInput:()=>f.A,Slider:()=>g.Ap,SuperSelect:()=>g.wD,SuperSelectTableList:()=>g.eM,SuperSelectTree:()=>g.kx,SuperSelectUser:()=>g.Pg,Switch:()=>g.dO,TableList:()=>s.TableList,Text:()=>g.EY,TextArea:()=>g.fs,TimePicker:()=>g.AG,TreeSelect:()=>g.f7,TypeDateRangePicker:()=>g.w5,Upload:()=>g._O,default:()=>v,fieldDecorator:()=>a.E,fields:()=>a.A,formModule:()=>g.nk,useFormDrawer:()=>c.Xy,useFormModal:()=>o.Vl,useFormStepModal:()=>i.$X});var n=r(64261),a=r(5089),s=r(36045),l=r(35774),o=r(5995),i=r(94005),c=r(48221),d=r(85696),u=r(30891),p=r(45053),m=r(98434),h={};for(const x in m)["default","SelectInnerInput","Form","FormItem","ErrorTip","fields","fieldDecorator","List","TableList","FormApiButton","FormModal","useFormModal","FormModalButton","FormStepModal","FormSteps","useFormStepModal","FormStepModalButton","FormDrawer","useFormDrawer","FormDrawerButton","MultiField"].indexOf(x)<0&&(h[x]=()=>m[x]);r.d(t,h);var g=r(83799),f=r(18936);(0,n.A)(),s.default.fields=a.A,s.default.List=s.List,s.default.TableList=s.TableList,s.default.FormApiButton=l.A,s.default.FormModal=o.Ay,s.default.FormSteps=s.FormSteps,s.default.useFormModal=o.Vl,s.default.FormModalButton=o.W6,s.default.FormStepModal=i.Ay,s.default.useFormStepModal=i.$X,s.default.FormStepModalButton=i.Wp,s.default.FormDrawer=c.Ay,s.default.useFormDrawer=c.Xy,s.default.FormDrawerButton=c.WJ,s.default.Form=d.A,s.default.FormItem=u.A,s.default.ErrorTip=p.A,s.default.SubmitButton=m.SubmitButton,s.default.CancelButton=m.CancelButton,s.default.fieldDecorator=a.E,s.default.MultiField=s.MultiField,s.default.useFormContext=m.useFormContext,s.default.hooks=m.hooks,s.default.widget=m.widget,s.default.utils=m.utils,s.default.formUtils=m.formUtils;const v=s.default},21649(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>n});const n={addText:"Add",addSomeThing:"Add {label}",delText:"Delete",selectedTextAdvanced:"Selected",delConfirm:"Are you sure you want to delete this {name}?",defaultInputPlaceholder:"Please enter {label}",defaultSelectPlaceholder:"Please select {label}",startDate:"Start Date",endDate:"End Date",soFarText:"Hitherto",uploadButtonText:"Click Upload",uploadTips:"Support extension {extensionNames}, single file size does not exceed {fileSize} M, upload up to {maxLength} attachments",yuan:"yuan",thousand:"ten thousand yuan",salaryType:"Salary type",Cancel:"Cancel",Save:"Save",Next:"Next",Complete:"Complete",Crop:"Crop",Preview:"Preview",PictureFormat:"Picture Format: ",ImageSize:"Image Size: ",ReUpload:"Re-upload",UploadFailed:"Upload Failed{msg}",NotExceeding:"Not exceeding {size}M",FileNotExceeding:"File {name} not exceeding {size}MB\uff01",Rotate:"Rotate",ImageFull:"Image Full",Size:"Image Size",Sign:"Sign",ClickSign:"Click Sign"}},55431(e,t,r){"use strict";r.d(t,{A:()=>n});const n=e=>({"en-US":()=>Promise.resolve().then(r.bind(r,21649)),"zh-CN":()=>Promise.resolve().then(r.bind(r,80711))}[e]())},80711(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>n});const n={addText:"\u6dfb\u52a0",addSomeThing:"\u6dfb\u52a0{label}",delText:"\u5220\u9664",selectedTextAdvanced:"\u5df2\u9009",delConfirm:"\u786e\u5b9a\u8981\u5220\u9664\u8fd9\u6761{name}\u5417?",defaultInputPlaceholder:"\u8bf7\u8f93\u5165{label}",defaultSelectPlaceholder:"\u8bf7\u9009\u62e9{label}",startDate:"\u5f00\u59cb\u65e5\u671f",endDate:"\u7ed3\u675f\u65e5\u671f",soFarText:"\u81f3\u4eca",uploadButtonText:"\u70b9\u51fb\u4e0a\u4f20",uploadTips:"\u652f\u6301\u6269\u5c55\u540d{extensionNames},\u5355\u4e2a\u6587\u4ef6\u5927\u5c0f\u4e0d\u8d85\u8fc7{fileSize}M\uff0c\u6700\u591a\u4e0a\u4f20{maxLength}\u4e2a\u9644\u4ef6",yuan:"\u5143",thousand:"\u4e07\u5143",salaryType:"\u85aa\u8d44\u7c7b\u578b",Cancel:"\u53d6\u6d88",Save:"\u4fdd\u5b58",Next:"\u4e0b\u4e00\u6b65",Complete:"\u5b8c\u6210",Crop:"\u88c1\u526a",Preview:"\u9884\u89c8",PictureFormat:"\u56fe\u7247\u683c\u5f0f\uff1a",ImageSize:"\u56fe\u7247\u5c3a\u5bf8\uff1a",ReUpload:"\u91cd\u65b0\u4e0a\u4f20",UploadFailed:"\u4e0a\u4f20\u5931\u8d25{msg}",NotExceeding:"\u4e0d\u8d85\u8fc7{size}M",FileNotExceeding:"\u6587\u4ef6{name}\u4e0d\u80fd\u8d85\u8fc7{size}MB!",Rotate:"\u65cb\u8f6c",ImageFull:"\u5145\u6ee1",Size:"\u5927\u5c0f",Sign:"\u7b7e\u540d",ClickSign:"\u70b9\u51fb\u7b7e\u540d"}},64261(e,t,r){"use strict";r.d(t,{A:()=>_});var n=r(98434),a=r(57469),s=r.n(a),l=r(34677),o=r.n(l),i=r(33097),c=r.n(i),d=r(22717),u=r.n(d),p=(r(17448),r(2842)),m=r(46732),h=r(37881),g=r(13050),f=r(70579);const v=n.RULES.REQ,x=n.RULES.LEN,_=async(e,t)=>{const{locale:r}=Object.assign({},t);n.interceptors.input.use("photo-string",e=>{if(e&&"string"===typeof e){const[t,r]=e.split("?"),n=new URLSearchParams(r);return Object.assign({},{id:t},u()(Array.from(n.entries()),(e,t)=>{e[t[0]]=t[1]},{}))}return e}),n.interceptors.output.use("photo-string",e=>e&&"string"!==typeof e?`${null===e||void 0===e?void 0:e.id}${null!==e&&void 0!==e&&e.filename?`?filename=${null===e||void 0===e?void 0:e.filename}`:""}`:e),n.interceptors.input.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>{const[t,r]=e.split("?"),n=new URLSearchParams(r);return Object.assign({},{id:t},u()(Array.from(n.entries()),(e,t)=>{e[t[0]]=t[1]},{}))}):e),n.interceptors.output.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>`${null===e||void 0===e?void 0:e.id}${null!==e&&void 0!==e&&e.filename?`?filename=${null===e||void 0===e?void 0:e.filename}`:""}`):e),n.interceptors.input.use("to-array",e=>Array.isArray(e)?e[0]:e),n.interceptors.output.use("to-array",e=>[e]),n.interceptors.input.use("array-single",e=>e?[e]:[]),n.interceptors.output.use("array-single",e=>e?e[0]:null),n.interceptors.input.use("boolean-number",e=>1===e||"1"===e),n.interceptors.output.use("boolean-number",e=>e?1:0),n.interceptors.input.use("un-boolean",e=>!e),n.interceptors.output.use("un-boolean",e=>!e),n.interceptors.output.use("object-output-value",e=>e?e.value||e.id:e),n.interceptors.output.use("array-output-value",e=>Array.isArray(e)&&e.length>0?e.map(e=>e.value||e.id):[]),n.interceptors.input.use("date-string",e=>e?s()(e):null),n.interceptors.output.use("date-string",e=>e?new Date(e.valueOf()).toISOString():""),n.interceptors.input.use("date-range-string",e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(s()(e[0])),e[0]&&e[1]&&"sofar"===e[1]&&t.push("\u81f3\u4eca"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(s()(e[1])),t}),n.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}),n.interceptors.output.use("file-format",e=>Array.isArray(e)?e.map(e=>Object.assign({},e,{id:e.id||e.ossId,originalName:e.filename})):[]),n.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,g.loadModule)("components-iconfont:CountyFlag@load"),l=await a(),i=new Map(l.map(e=>{let{ab:t,country_code:r}=e;return[t,r]})),d=new Map(l.map(e=>{let{ab:t,country_code:r}=e;return[r,t]}));n.interceptors.output.use("phone-number-string",e=>null!==e&&void 0!==e&&e.code&&null!==e&&void 0!==e&&e.value?`+${i.get(e.code)} ${e.value.replace(/\s+/g,"")}`:""),n.interceptors.input.use("phone-number-string",e=>{if(!e)return{};const t=e.match(/^\+(\d+)\s(.*)/);return t&&t.length>=3?{code:d.get(Number(t[1])),value:t[2]}:{code:d.get(86),value:e}});const _=(e,t)=>{const n={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${(t=Object.assign({},t)).end}`,"en-US":`%s must be equal to ${t.end}`},LENGTH_MORE:{"zh-CN":`%s\u5fc5\u987b\u5927\u4e8e${t.start}`,"en-US":`%s must be greater than ${t.start}`},LENGTH_LESS:{"zh-CN":`%s\u5fc5\u987b\u5c0f\u4e8e${t.end}`,"en-US":`%s must be less than ${t.end}`},ID_CARD_INVALID:{"zh-CN":"\u8bf7\u8f93\u5165\u6709\u6548\u7684\u8eab\u4efd\u8bc1\u53f7\u7801","en-US":"Please enter a valid ID card number"}},a=c()(n,`${e}.${r}`);return a||c()(n,`${e}.zh-CN`)};(0,n.preset)(o()({},{type:"inner",rules:{REQ:function(){return Object.assign({},v(...arguments),{errMsg:_("REQ")})},LEN:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const[n,a,s]=t;let l="";return s===a&&n.length!==Number(s)&&(l="LENGTH_EQUAL"),n.length<a&&(l="LENGTH_MORE"),s&&n.length>s&&(l="LENGTH_LESS"),Object.assign({},x(...t),{errMsg:_(l,{start:a,end:s})})},EMAIL:function(e){return{result:/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e),errMsg:_("EMAIL")}},PHONE_NUMBER_INPUT:p.PHONE_NUMBER_INPUT,ARRAY_LENGTH:(e,t,r)=>r===t&&e.length!==Number(r)?{result:!1,errMsg:_("LENGTH_EQUAL",{start:t,end:r})}:e.length<t?{result:!1,errMsg:_("LENGTH_MORE",{start:t,end:r})}:r&&e.length>r?{result:!1,errMsg:_("LENGTH_LESS",{start:t,end:r})}:{result:!0},ID_CARD:e=>(0,h.A)(e).isValid?{result:!0}:{result:!1,errMsg:_("ID_CARD_INVALID")}},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,f.jsx)(m.A,{...e})}},"function"===typeof e?e({interceptors:n.interceptors,RULES:n.RULES}):e))}},70188(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(52526),a=r(80711),s=r(21649);const l=(0,n.createWithIntlProvider)({defaultLocale:"zh-CN",messages:{"zh-CN":a.default,"en-US":s.default},namespace:"FormInfo"})},75363(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>g});const n=e=>({"en-US":()=>r.e(9431).then(r.bind(r,9431)),"zh-CN":()=>r.e(1065).then(r.bind(r,81065))}[e]());var a=r(47458),s=r(64671),l=r(55199),o=r(83136),i=r.n(o);const c="style_helper-guide__K5xFw__urHvB",d="style_inner__bMKeU__urHvB",u="style_content__xTfWZ__urHvB",p="style_link__93j7O__urHvB";var m=r(48731),h=r(70579);const g=e=>{let{name:t,className:r}=e;return(0,h.jsx)(a.IntlProvider,{importMessages:n,moduleName:"HelperGuide",children:(0,h.jsx)(m.default,{moduleName:"helperGuide",name:t,children:e=>e&&e.value&&(0,h.jsx)("div",{className:i()(c,r),children:(0,h.jsxs)(l.Space,{className:d,size:4,children:[(0,h.jsx)(s.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)(s.default,{type:"icon-shuangjiantou-right"})]})]})})})})}},29556(e,t,r){"use strict";r.r(t),r.d(t,{TooltipFetch:()=>C,TooltipInfoLabel:()=>j,default:()=>b});var n=r(55199),a=r(83136),s=r.n(a);const l="style_tooltip__zHGMI__urHvB",o="style_large__lvmsm__urHvB",i="style_small__nUt0r__urHvB",c="style_popup-content__-rKQN__urHvB",d="style_title__1EQPq__urHvB",u="style_important-info__qTSZY__urHvB",p="style_error__yTTq3__urHvB",m="style_warning__CMJxz__urHvB",h="style_success__AvJVx__urHvB",g="style_sub-title__uD8CH__urHvB",f="style_content__lzgUz__urHvB",v="style_alone__q6q82__urHvB",x="style_fetch-content__tEOEV__urHvB",_="style_title-info-icon__iY8Q+__urHvB";var y=r(70579);const b=e=>{let{overlayClassName:t,title:r,size:a,subtitle:x,content:_,importantInfo:b,importantInfoType:S,moreInfo:j,...A}=e;return(0,y.jsx)(n.Tooltip,{...A,rootClassName:s()(t,l,{[i]:"small"===a,[o]:"large"===a}),title:(0,y.jsxs)(n.Space,{direction:"vertical",className:c,children:[r&&(0,y.jsx)("div",{className:d,children:r}),b&&(0,y.jsx)("div",{className:s()(u,{[h]:"success"===S,[m]:"warning"===S,[p]:"error"===S}),children:b}),x&&(0,y.jsx)("div",{className:g,children:x}),_&&(0,y.jsx)("div",{className:s()(f,{[v]:[r,x,b,j].every(e=>!e)}),children:_}),j&&(0,y.jsx)("div",{children:j})]})})};var S=r(64671);const j=e=>{let{title:t,tooltipTitle:r}=e;return(0,y.jsxs)("div",{children:[t,r?(0,y.jsx)(b,{...r,children:(0,y.jsx)("span",{children:(0,y.jsx)(S.default,{type:"icon-xinxi-miaobian",className:_,size:14})})}):null]})};var A=r(73884),N=r(87558);const C=e=>{let{api:t,children:r,fetchContent:a,showLoading:s=!0,loadingClassName:l,force:o,...i}=e;const[c,d]=(0,A.useState)(!1),u=(0,N.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:p,isLoading:m,data:h,send:g}=u;return(0,y.jsx)(b,{...Object.assign({},i,p?a(h,u):{}),open:c,onOpenChange:async e=>{!e||p&&!o||await g({type:"refresh"}),d(e)},children:(0,y.jsx)("span",{className:x,children:(0,y.jsx)(n.Spin,{spinning:s&&m,size:"small",children:r})})})}},26304(e,t,r){var n=r(53871),a=r(99140);e.exports=function(e,t,r){var s=null==e?0:e.length;return s?(t=r||void 0===t?1:a(t),n(e,0,(t=s-t)<0?0:t)):[]}},99140(e,t,r){var n=r(37303);e.exports=function(e){var t=n(e),r=t%1;return t===t?r?t-r:t:0}},39825(){},2885(){},64674(){},17448(){},65176(){},47094(e,t,r){"use strict";r.d(t,{A:()=>n});const n={"form-drawer":"style_form-drawer__uYDXS__urHvB"}}}]);
2
+ //# sourceMappingURL=8221.5cde284c.chunk.js.map