@kne-components/components-core 0.4.11 → 0.4.12

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 (137) hide show
  1. package/build/asset-manifest.json +99 -99
  2. package/build/index.html +1 -1
  3. package/build/remoteEntry.js +1 -1
  4. package/build/remoteEntry.js.map +1 -1
  5. package/build/static/css/{1996.f4dc895c.chunk.css → 1996.b1436cc8.chunk.css} +2 -2
  6. package/build/static/css/{1996.f4dc895c.chunk.css.map → 1996.b1436cc8.chunk.css.map} +1 -1
  7. package/build/static/css/2004.c035d26e.chunk.css +2 -0
  8. package/build/static/css/{2004.1ecfd7c8.chunk.css.map → 2004.c035d26e.chunk.css.map} +1 -1
  9. package/build/static/css/206.c2648b4c.chunk.css +2 -0
  10. package/build/static/css/{206.c999783c.chunk.css.map → 206.c2648b4c.chunk.css.map} +1 -1
  11. package/build/static/css/254.a12729ab.chunk.css +2 -0
  12. package/build/static/css/{254.42f2ab8b.chunk.css.map → 254.a12729ab.chunk.css.map} +1 -1
  13. package/build/static/css/2628.3188c686.chunk.css +2 -0
  14. package/build/static/css/{2628.0ed41fb0.chunk.css.map → 2628.3188c686.chunk.css.map} +1 -1
  15. package/build/static/css/3404.b9717d24.chunk.css +2 -0
  16. package/build/static/css/{3404.47c7883d.chunk.css.map → 3404.b9717d24.chunk.css.map} +1 -1
  17. package/build/static/css/3652.86f3b6bb.chunk.css +2 -0
  18. package/build/static/css/{3652.8b8ff706.chunk.css.map → 3652.86f3b6bb.chunk.css.map} +1 -1
  19. package/build/static/css/{3771.7b5b2292.chunk.css → 3771.446d3735.chunk.css} +2 -2
  20. package/build/static/css/{3771.7b5b2292.chunk.css.map → 3771.446d3735.chunk.css.map} +1 -1
  21. package/build/static/css/{3790.7a016e7e.chunk.css → 3790.d1b530a4.chunk.css} +2 -2
  22. package/build/static/css/{3790.7a016e7e.chunk.css.map → 3790.d1b530a4.chunk.css.map} +1 -1
  23. package/build/static/css/{4277.b3120a24.chunk.css → 4277.3194c080.chunk.css} +2 -2
  24. package/build/static/css/{4277.b3120a24.chunk.css.map → 4277.3194c080.chunk.css.map} +1 -1
  25. package/build/static/css/4741.5a84abe3.chunk.css +2 -0
  26. package/build/static/css/{4741.0a947401.chunk.css.map → 4741.5a84abe3.chunk.css.map} +1 -1
  27. package/build/static/css/4832.ee29b4d5.chunk.css +2 -0
  28. package/build/static/css/{4832.308b8775.chunk.css.map → 4832.ee29b4d5.chunk.css.map} +1 -1
  29. package/build/static/css/5195.9d6bb120.chunk.css +2 -0
  30. package/build/static/css/{5195.721fe509.chunk.css.map → 5195.9d6bb120.chunk.css.map} +1 -1
  31. package/build/static/css/{6763.77b252db.chunk.css → 6763.42d76eb7.chunk.css} +2 -2
  32. package/build/static/css/{6763.77b252db.chunk.css.map → 6763.42d76eb7.chunk.css.map} +1 -1
  33. package/build/static/css/6980.f5424a2c.chunk.css +12 -0
  34. package/build/static/css/{6980.bd108bfe.chunk.css.map → 6980.f5424a2c.chunk.css.map} +1 -1
  35. package/build/static/css/7227.e83fd744.chunk.css +2 -0
  36. package/build/static/css/{7227.0c0f19b3.chunk.css.map → 7227.e83fd744.chunk.css.map} +1 -1
  37. package/build/static/css/{760.9826cad8.chunk.css → 760.7efd69c3.chunk.css} +2 -2
  38. package/build/static/css/{760.9826cad8.chunk.css.map → 760.7efd69c3.chunk.css.map} +1 -1
  39. package/build/static/css/{8593.6023aa62.chunk.css → 8593.df922b83.chunk.css} +2 -2
  40. package/build/static/css/{8593.6023aa62.chunk.css.map → 8593.df922b83.chunk.css.map} +1 -1
  41. package/build/static/css/9556.3024763d.chunk.css +2 -0
  42. package/build/static/css/{9556.acbba93b.chunk.css.map → 9556.3024763d.chunk.css.map} +1 -1
  43. package/build/static/css/9772.e21859cf.chunk.css +2 -0
  44. package/build/static/css/{9772.c55840a8.chunk.css.map → 9772.e21859cf.chunk.css.map} +1 -1
  45. package/build/static/js/{1014.6694d625.chunk.js → 1014.ac7e07be.chunk.js} +1 -1
  46. package/build/static/js/1996.1779e813.chunk.js +2 -0
  47. package/build/static/js/{1996.8fbcfb87.chunk.js.map → 1996.1779e813.chunk.js.map} +1 -1
  48. package/build/static/js/{2004.6947f459.chunk.js → 2004.182c7c0f.chunk.js} +3 -3
  49. package/build/static/js/{2004.6947f459.chunk.js.map → 2004.182c7c0f.chunk.js.map} +1 -1
  50. package/build/static/js/206.870edee0.chunk.js +2 -0
  51. package/build/static/js/{206.638f611d.chunk.js.map → 206.870edee0.chunk.js.map} +1 -1
  52. package/build/static/js/{2097.0d6f945c.chunk.js → 2097.0567ed2b.chunk.js} +2 -2
  53. package/build/static/js/{2097.0d6f945c.chunk.js.map → 2097.0567ed2b.chunk.js.map} +1 -1
  54. package/build/static/js/254.238ab8af.chunk.js +2 -0
  55. package/build/static/js/{254.54653b3f.chunk.js.map → 254.238ab8af.chunk.js.map} +1 -1
  56. package/build/static/js/{2628.d1aa2222.chunk.js → 2628.13f2cd3d.chunk.js} +2 -2
  57. package/build/static/js/{2628.d1aa2222.chunk.js.map → 2628.13f2cd3d.chunk.js.map} +1 -1
  58. package/build/static/js/{3404.25647fbc.chunk.js → 3404.1b947536.chunk.js} +3 -3
  59. package/build/static/js/{3404.25647fbc.chunk.js.map → 3404.1b947536.chunk.js.map} +1 -1
  60. package/build/static/js/{3652.89e28566.chunk.js → 3652.5d13bc4c.chunk.js} +2 -2
  61. package/build/static/js/{3652.89e28566.chunk.js.map → 3652.5d13bc4c.chunk.js.map} +1 -1
  62. package/build/static/js/3771.60b0504e.chunk.js +2 -0
  63. package/build/static/js/{3771.f52ce9cf.chunk.js.map → 3771.60b0504e.chunk.js.map} +1 -1
  64. package/build/static/js/{3790.e7cf2694.chunk.js → 3790.72c7a465.chunk.js} +2 -2
  65. package/build/static/js/{3790.e7cf2694.chunk.js.map → 3790.72c7a465.chunk.js.map} +1 -1
  66. package/build/static/js/3856.29d5e528.chunk.js +2 -0
  67. package/build/static/js/{3856.fd42714f.chunk.js.map → 3856.29d5e528.chunk.js.map} +1 -1
  68. package/build/static/js/4277.de810104.chunk.js +2 -0
  69. package/build/static/js/{4277.c85f1b98.chunk.js.map → 4277.de810104.chunk.js.map} +1 -1
  70. package/build/static/js/4474.dfb83cf2.chunk.js +2 -0
  71. package/build/static/js/{4474.826aa7b7.chunk.js.map → 4474.dfb83cf2.chunk.js.map} +1 -1
  72. package/build/static/js/4832.cf55c52c.chunk.js +2 -0
  73. package/build/static/js/{4832.ce1c84fd.chunk.js.map → 4832.cf55c52c.chunk.js.map} +1 -1
  74. package/build/static/js/{5195.cb69ec50.chunk.js → 5195.9ac8caa0.chunk.js} +2 -2
  75. package/build/static/js/{5195.cb69ec50.chunk.js.map → 5195.9ac8caa0.chunk.js.map} +1 -1
  76. package/build/static/js/{6183.b7c1076d.chunk.js → 6183.23d57d24.chunk.js} +2 -2
  77. package/build/static/js/6183.23d57d24.chunk.js.map +1 -0
  78. package/build/static/js/{6454.2d3bc0d5.chunk.js → 6454.d8a2bc1e.chunk.js} +1 -1
  79. package/build/static/js/{6617.5ff2d3a7.chunk.js → 6617.94f51cff.chunk.js} +1 -1
  80. package/build/static/js/{6629.f017e421.chunk.js → 6629.42f5a044.chunk.js} +2 -2
  81. package/build/static/js/6629.42f5a044.chunk.js.map +1 -0
  82. package/build/static/js/{6763.12b3a896.chunk.js → 6763.97f4747b.chunk.js} +2 -2
  83. package/build/static/js/{6763.12b3a896.chunk.js.map → 6763.97f4747b.chunk.js.map} +1 -1
  84. package/build/static/js/6980.5b98fb8f.chunk.js +2 -0
  85. package/build/static/js/6980.5b98fb8f.chunk.js.map +1 -0
  86. package/build/static/js/7227.65b21900.chunk.js +3 -0
  87. package/build/static/js/{7227.d7a9fa18.chunk.js.map → 7227.65b21900.chunk.js.map} +1 -1
  88. package/build/static/js/{7338.696be797.chunk.js → 7338.0c458623.chunk.js} +2 -2
  89. package/build/static/js/{7338.696be797.chunk.js.map → 7338.0c458623.chunk.js.map} +1 -1
  90. package/build/static/js/{760.706b4b21.chunk.js → 760.bc8726da.chunk.js} +2 -2
  91. package/build/static/js/{760.706b4b21.chunk.js.map → 760.bc8726da.chunk.js.map} +1 -1
  92. package/build/static/js/8593.a7cfca38.chunk.js +2 -0
  93. package/build/static/js/{8593.33bf0ea5.chunk.js.map → 8593.a7cfca38.chunk.js.map} +1 -1
  94. package/build/static/js/{8601.414f9621.chunk.js → 8601.05ca91fd.chunk.js} +2 -2
  95. package/build/static/js/8601.05ca91fd.chunk.js.map +1 -0
  96. package/build/static/js/9556.bd02b06f.chunk.js +3 -0
  97. package/build/static/js/{9556.9b5d4ebb.chunk.js.map → 9556.bd02b06f.chunk.js.map} +1 -1
  98. package/build/static/js/9772.8953d82a.chunk.js +2 -0
  99. package/build/static/js/9772.8953d82a.chunk.js.map +1 -0
  100. package/build/static/js/{main.c7e71eb6.js → main.83f21429.js} +2 -2
  101. package/build/static/js/{main.c7e71eb6.js.map → main.83f21429.js.map} +1 -1
  102. package/package.json +2 -2
  103. package/build/static/css/2004.1ecfd7c8.chunk.css +0 -2
  104. package/build/static/css/206.c999783c.chunk.css +0 -2
  105. package/build/static/css/254.42f2ab8b.chunk.css +0 -2
  106. package/build/static/css/2628.0ed41fb0.chunk.css +0 -2
  107. package/build/static/css/3404.47c7883d.chunk.css +0 -2
  108. package/build/static/css/3652.8b8ff706.chunk.css +0 -2
  109. package/build/static/css/4741.0a947401.chunk.css +0 -2
  110. package/build/static/css/4832.308b8775.chunk.css +0 -2
  111. package/build/static/css/5195.721fe509.chunk.css +0 -2
  112. package/build/static/css/6980.bd108bfe.chunk.css +0 -12
  113. package/build/static/css/7227.0c0f19b3.chunk.css +0 -2
  114. package/build/static/css/9556.acbba93b.chunk.css +0 -2
  115. package/build/static/css/9772.c55840a8.chunk.css +0 -2
  116. package/build/static/js/1996.8fbcfb87.chunk.js +0 -2
  117. package/build/static/js/206.638f611d.chunk.js +0 -2
  118. package/build/static/js/254.54653b3f.chunk.js +0 -2
  119. package/build/static/js/3771.f52ce9cf.chunk.js +0 -2
  120. package/build/static/js/3856.fd42714f.chunk.js +0 -2
  121. package/build/static/js/4277.c85f1b98.chunk.js +0 -2
  122. package/build/static/js/4474.826aa7b7.chunk.js +0 -2
  123. package/build/static/js/4832.ce1c84fd.chunk.js +0 -2
  124. package/build/static/js/6183.b7c1076d.chunk.js.map +0 -1
  125. package/build/static/js/6629.f017e421.chunk.js.map +0 -1
  126. package/build/static/js/6980.58694ca6.chunk.js +0 -2
  127. package/build/static/js/6980.58694ca6.chunk.js.map +0 -1
  128. package/build/static/js/7227.d7a9fa18.chunk.js +0 -3
  129. package/build/static/js/8593.33bf0ea5.chunk.js +0 -2
  130. package/build/static/js/8601.414f9621.chunk.js.map +0 -1
  131. package/build/static/js/9556.9b5d4ebb.chunk.js +0 -3
  132. package/build/static/js/9772.f275c40a.chunk.js +0 -2
  133. package/build/static/js/9772.f275c40a.chunk.js.map +0 -1
  134. /package/build/static/js/{2004.6947f459.chunk.js.LICENSE.txt → 2004.182c7c0f.chunk.js.LICENSE.txt} +0 -0
  135. /package/build/static/js/{3404.25647fbc.chunk.js.LICENSE.txt → 3404.1b947536.chunk.js.LICENSE.txt} +0 -0
  136. /package/build/static/js/{7227.d7a9fa18.chunk.js.LICENSE.txt → 7227.65b21900.chunk.js.LICENSE.txt} +0 -0
  137. /package/build/static/js/{9556.9b5d4ebb.chunk.js.LICENSE.txt → 9556.bd02b06f.chunk.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[254,330],{330:(e,t,l)=>{l.r(t),l.d(t,{default:()=>a});var n=l(29871),r=l.n(n),s={};for(const o in n)"default"!==o&&(s[o]=()=>n[o]);l.d(t,s),r().Fetch=n.FlexBoxFetch;const a=r()},1904:(e,t,l)=>{l.d(t,{A:()=>i,N:()=>d});var n=l(98434),r=l(43856);const{useOnChange:s,useDecorator:a}=n.hooks,o=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(r.AddressSelectField);o.Field=r.AddressSelectField,o.AddressEnum=r.AddressSelectField.AddressEnum,o.createAddressApi=r.AddressSelectField.createAddressApi,o.withAddressApi=r.AddressSelectField.withAddressApi;const i=o,d=e=>a(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label,inputPlaceholder:"\u8bf7\u8f93\u5165"+e.label},e))(r.AddressInputField);d.Field=r.AddressInputField},2196:(e,t,l)=>{l.d(t,{A:()=>m});var n=l(55199),r=l(73884),s=l(41381),a=l(330),o=l(68532),i=l(47094),d=l(83136),c=l.n(d),u=l(70579);const m=e=>{let{list:t=[],groupArgs:l,itemRender:d,column:m=2,gap:p,className:h,outer:g=(0,u.jsx)(s.default.Part,{}),children:f,..._}=e;const x=!(Number.isInteger(m)&&m>0),{ref:b,column:v}=(0,a.useFlexBox)(x?m:{}),y=(e,r)=>(0,u.jsx)(o.FormInfo,{list:t,column:e,groupArgs:l,itemRender:(e,t)=>"function"===typeof d?d(e,t):(0,u.jsx)(n.Col,{span:t.span,children:e}),children:(e,t)=>(0,u.jsx)(n.Row,{gutter:[p||24,0],className:c()({[i.A["column-not-layout"]]:r}),children:"function"===typeof f?f(e,t):e})});return(0,r.cloneElement)(g,Object.assign({},_,{className:c()(h,i.A["form-info"])}),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{ref:b}),x?v?y(v.col):y(2,!0):y(m)]}))}},2842:(e,t,l)=>{l.d(t,{default:()=>r.a});l(2885);var n=l(22986),r=l.n(n);l.o(n,"PHONE_NUMBER_INPUT")&&l.d(t,{PHONE_NUMBER_INPUT:function(){return n.PHONE_NUMBER_INPUT}})},5995:(e,t,l)=>{l.d(t,{Ay:()=>d,Vl:()=>c,W6:()=>u});var n=l(3382),r=l(73025),s=l(55199),a=l(76995),o=l(47094),i=l(70579);const d=e=>(0,i.jsx)(n.default,{...(0,a.A)(Object.assign({},e,{className:o.A["form-modal"]}))}),c=()=>{const e=(0,n.useModal)();return t=>e((0,a.A)(Object.assign({},t,{className:o.A["form-modal"]})))},u=e=>{let{classNames:t,...l}=e;const n=c();if(!l.api){const{modalProps:e,...t}=l;return(0,i.jsx)(s.Button,{...t,onClick:()=>{n(e)}})}return(0,i.jsx)(r.A,{...l,modalFunc:n})}},15209:(e,t,l)=>{l.d(t,{A:()=>c});var n=l(55199),r=l(10986),s=l.n(r),a=l(13050),o=l(70579);const i=e=>{let{...t}=e;const[l,r]=s()(t);return(0,o.jsx)(n.Input,{...t,value:l,onChange:e=>{r(e.target.value?e.target.value.toUpperCase():e.target.value,e)}})},d=(0,a.createWithRemoteLoader)({modules:["FormInfo@formModule"]})(e=>{let{remoteModules:t,...l}=e;const[n]=t,{hooks:r}=n,{useDecorator:s}=r;return s(Object.assign({placeholder:`\u8bf7\u8f93\u5165${l.label||""}`},l))(i)});d.field=i;const c=d},15445:(e,t,l)=>{l.d(t,{A:()=>Y,E:()=>J});var n=l(98434),r=l(30096),s=l(34643),a=l(1904),o=l(83230),i=l(55199),d=l(70579);const{useOnChange:c}=n.hooks,u=e=>(0,d.jsx)(i.ColorPicker,{...e,onChange:t=>e.onChange(t.toHexString())}),m=e=>c(Object.assign({},e))(u);m.Field=m;const p=m;var h=l(81026),g=l(78756),f=l(92328),_=l(2842);const{useOnChange:x,useCheckedToValue:b}=n.hooks,{withChecked:v}=n.hoc,y=v(e=>{let{checked:t,children:l=null,...n}=e;return(0,d.jsxs)(i.Space,{children:[(0,d.jsx)(i.Switch,{checked:t,...n}),"function"===typeof l?l({checked:t}):l]})}),A=e=>{e=Object.assign({},{fieldName:"switch"},e);const t=b(e);return x(t)(y)};A.Field=i.Switch;const j=A;var N=l(89099),S=l(96339),C=l(36972),R=l(15209),w=l(74529),F=l.n(w),I=l(73884),P=l(47458),M=l(33097),k=l.n(M),T=l(21079),O=l(46237),E=l(56259),K=l(29556),L=l(64671),D=l(83136),B=l.n(D),U=l(47094);const z=e=>t=>{const l=F()(...e)(e=>{let{forwardedRef:l,label:n,placeholder:r,...s}=e;return(0,d.jsx)(t,{...s,label:n,placeholder:r,labelRender:()=>s.tips?(0,d.jsxs)(i.Space,{children:[n,(0,d.jsx)(K.default,{content:s.tips,children:(0,d.jsx)("span",{className:B()(U.A["field-tips"],{[U.A["label-hidden"]]:s.labelHidden}),children:(0,d.jsx)(L.default,{type:"icon-xinxi-miaobian"})})})]}):n,ref:l})}),n=(0,I.forwardRef)((e,t)=>(0,d.jsx)(l,{...e,forwardedRef:t}));return Object.keys(t).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(e=>{n[e]=t[e]}),n},$=e=>t=>{let{placeholder:l,label:n,...r}=t;return(0,d.jsx)(P.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:n},children:t=>(0,d.jsx)(e,{...r,label:n,placeholder:l||t})})},W=e=>t=>{let{placeholder:l,label:n,...r}=t;return(0,d.jsx)(P.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:n},children:t=>(0,d.jsx)(e,{...r,label:n,placeholder:l||t})})},q=e=>t=>{const l=(0,n.useGroup)(),r=k()(l,"name"),s=(0,T.get)(l,"index"),a=(0,O.oc)();return a&&Array.isArray(a)&&a.length>0?a.map(l=>{if("string"===typeof l)return(0,I.createElement)(e,{...t,key:l});const{name:n,label:a,options:o}=l,i=k()(o,"ignore",[]),d=k()(o,"disabled",[]),c=k()(o,"fields",[]),u=e=>t.name===e.name&&!(e.hasOwnProperty("groupName")&&e.groupName!==r)&&!(e.hasOwnProperty("groupIndex")&&e.groupIndex!==s);if(i.length>0&&i.find(u))return null;if(c.length>0&&!c.find(u))return null;let m=Object.assign({},t,{name:k()(o,"nameTransform",(e,t)=>`${e}${t}`)(t.name,n),label:k()(o,"labelTransform",(e,t)=>e&&`${e}${t}`)(t.label,a)});return d.length>0&&d.find(u)&&(m.disabled=!0,m.rule=""),(0,I.createElement)(e,{...m,key:n})}):(0,d.jsx)(e,{...t})},G=z([q,$])(n.Input),H=z([q,$])(n.InputNumber);G.Password=z([q,$])(n.Input.Password);const V=z([q,W])(n.DatePicker);V.MonthPicker=z([q,W])(n.DatePicker.MonthPicker),V.RangePicker=z([q,W])(n.DatePicker.RangePicker),V.WeekPicker=z([q,W])(n.DatePicker.WeekPicker);const Q=z([q,W])(n.TimePicker);Q.RangePicker=z([q,W])(n.TimePicker.RangePicker);const X=z([q])(e=>{let{placeholder:t,label:l,soFarText:r,...s}=e;const{formatMessage:a}=(0,P.useIntl)({moduleName:"FormInfo"});return(0,d.jsx)(n.DatePickerToday,{...s,label:l,placeholder:[a({id:"startDate"}),a({id:"endDate"})],soFarText:r||a({id:"soFarText"})})}),Y={Input:G,Checkbox:n.Checkbox,Password:G.Password,InputNumber:H,DatePicker:V,MonthPicker:V.MonthPicker,WeekPicker:V.WeekPicker,DateRangePicker:V.RangePicker,TimeRangePicker:Q.RangePicker,TimePicker:Q,DatePickerToday:X,RadioGroup:z([q])(n.RadioGroup),CheckboxGroup:z([q])(n.CheckboxGroup),Rate:z([q])(n.Rate),Switch:z([q])(j),Slider:z([q])(n.Slider),SalaryInput:z([q,$])(C.A),TypeDateRangePicker:z([q])(E.A),MoneyInput:z([q,$])(f.A),PhoneNumber:z([q,$])(_.default),Upload:z([q])(N.A),Avatar:z([q])(S.A),FunctionSelect:z([q,W])(h.A),IndustrySelect:z([q,W])(g.A),Cascader:z([q,W])(o.A),ColorPicker:z([q,W])(p),AddressSelect:z([q,W])(a.A),AddressInput:z([q,W])(a.N),TreeSelect:z([q,W])(n.TreeSelect),ReactInputNumber:z([q,$])(n.InputNumber),InputUpperCase:z([q,$])(R.A),Select:z([q,W])(n.Select),TextArea:z([q,$])(n.TextArea),AdvancedSelect:z([q,W])(r.Ay),SuperSelect:z([q,W])(s.Ay),SuperSelectTableList:z([q,W])(s.eM),SuperSelectUser:z([q,W])(s.Pg)},J={createWithFieldDecorator:z,withInputDefaultPlaceholder:$,withSelectDefaultPlaceholder:W,withLang:q}},18936:(e,t,l)=>{l.d(t,{A:()=>T});const n={"ant-tag":"style_ant-tag__7ct2q__RltKb",overlay:"style_overlay__CXfU5__RltKb",input:"style_input__+OpvV__RltKb","is-disabled":"style_is-disabled__uX4qq__RltKb","input-icon":"style_input-icon__E3NjK__RltKb",large:"style_large__vMozz__RltKb",small:"style_small__ubqQ+__RltKb","input-inner":"style_input-inner__sY-6k__RltKb","input-custom":"style_input-custom__Kxq3n__RltKb","display-content":"style_display-content__qA1jn__RltKb","overlay-footer-extra":"style_overlay-footer-extra__yCzWX__RltKb","selected-tag":"style_selected-tag__BZsMM__RltKb","selected-tag-list":"style_selected-tag-list__As0ho__RltKb","selected-tag-inner":"style_selected-tag-inner__2NH59__RltKb","text-inner":"style_text-inner__Bq2Ji__RltKb",placeholder:"style_placeholder__odotY__RltKb","is-modal":"style_is-modal__4cj8L__RltKb","overlay-content":"style_overlay-content__kpGRn__RltKb"};var r=l(74981);const{context:s,useContext:a,Provider:o,Consumer:i}=(0,r.A)();var d=l(73884),c=l(10986),u=l.n(c),m=l(87558),p=l(33097),h=l.n(p),g=l(55199),f=l(83136),_=l.n(f),x=l(3382),b=l(64671),v=l(79686),y=l.n(v),A=l(41740),j=l.n(A),N=l(74065),S=l.n(N),C=l(17342),R=l(70579);const w=e=>{let{maxLength:t,single:l,setValue:n,value:r,message:s}=e;return e=>n(!l&&Number.isInteger(t)&&t>0&&e.length>t?(s(`\u6700\u591a\u9009\u62e9${t}\u4e2a`),r):e)},F=e=>{let{single:t,value:l,mapping:r,onClose:s}=e;return l&&Array.isArray(l)&&0!==l.length?t?(0,R.jsx)("span",{className:n["text-inner"],children:h()(r.get(l[0]),"label")||l[0]}):l.map(e=>{const t=r.get(e);return(0,R.jsx)(g.Tag,{className:n["display-tag"],closable:!0,onClose:l=>{l.preventDefault(),s(e,t)},children:(0,R.jsx)("span",{className:n["tag-inner"],children:h()(t,"label")||e})},e)}):null},I=(0,d.forwardRef)((e,t)=>{let{value:l,onChange:r,extra:s,showSelectedTag:a,renderSelectedContent:o,children:i,...c}=e;const[u,m]=(0,d.useState)(l),p=(0,d.useRef)(l);p.current=l;const[h,f]=(0,d.useState)(!1),{message:_}=g.App.useApp(),b=w({maxLength:c.maxLength,single:c.single,setValue:m,value:u,message:_.error});return(0,d.useEffect)(()=>{h&&m(p.current)},[h]),(0,d.useImperativeHandle)(t,()=>({modalOpen:()=>{f(!0)},close:()=>{f(!1)}})),(0,R.jsx)(x.default,{...c,open:h,onConfirm:()=>{r(u)},onClose:()=>{f(!1)},footer:(a||s)&&(0,R.jsxs)(g.Space,{direction:"vertical",className:n["overlay-footer"],children:[s&&(0,R.jsx)("div",{className:n["overlay-footer-extra"],children:s}),a&&o({value:u,setValue:b})]}),children:"function"===typeof i?i({value:u,setValue:b}):i})}),P=(0,d.forwardRef)((e,t)=>{let{value:l,setValue:r,children:s,renderSelectedContent:a,showSelectedTag:o,placement:i,inputContent:c,single:u,extra:m,overlayWidth:p,wrapClassName:h,...f}=e;const[_,x]=(0,d.useState)(!1);return(0,d.useImperativeHandle)(t,()=>({close:()=>{x(!1)}}),[]),(0,R.jsx)(g.Popover,{...f,open:_,onOpenChange:x,overlayClassName:n.overlay,arrow:!1,content:(0,R.jsxs)("div",{style:p?{"--overlay-width":p}:{},className:n["overlay-content"],onClick:e=>{e.stopPropagation()},children:[(0,R.jsx)("div",{className:n["overlay-inner"],children:"function"===typeof s?s({value:l,setValue:e=>{(!u||l[0]!==e[0])&&r(e),u&&x(!1)}}):s}),(o||m)&&(0,R.jsxs)("div",{className:n["overlay-footer"],children:[m&&(0,R.jsx)("div",{className:n["overlay-footer-extra"],children:m}),o&&a({value:l,setValue:r})]})]}),trigger:"click",placement:i,children:(0,R.jsx)("div",{className:n["input-inner"],children:c})})}),M=(0,m.withFetch)(e=>{let{setFetchApi:t,wrapClassName:l,...r}=e;const[s,o]=(0,d.useState)(!1),i=(0,d.useRef)(null),c=(0,d.useRef)(null),u=a(),{valueState:m,mapping:p,props:h}=u,[f,x]=m,{single:v,placement:y,getPopupContainer:A,placeholder:j,isPopup:N,disabled:S,showSelectedTag:w,extra:M,inputContent:k}=h,T=(0,d.useRef)(r);T.current=r,(0,d.useEffect)(()=>{t(Object.assign({},T.current,{data:r.data,isComplete:r.isComplete}))},[r.data,t,r.isComplete]);const O=F({single:v,value:f,mapping:p,onClose:e=>{x(t=>{const l=t.slice(0),n=t.indexOf(e);return n>-1&&l.splice(n,1),l})}}),E=e=>{let{value:t,setValue:l}=e;return(0,R.jsxs)(g.Space,{className:n["selected-tag"],align:"center",wrap:!0,children:[(0,R.jsxs)("div",{children:["\u5df2\u9009",!h.single&&Number.isInteger(h.maxLength)&&h.maxLength>0?`(${t.length}/${h.maxLength})`:"",":"]}),(0,R.jsx)(C.A,{className:n["selected-tag-list"],children:(0,R.jsx)("div",{className:n["selected-tag-inner"],children:F({value:t,mapping:p,onClose:e=>{l(t=>{const l=t.slice(0),n=t.indexOf(e);return n>-1&&l.splice(n,1),l})}})})})]})},K=k?k(u):(0,R.jsxs)(g.Space,{className:n["display-content"],onMouseOver:()=>{o(!0)},onMouseOut:()=>{o(!1)},children:[(0,R.jsx)("div",{children:O||(0,R.jsx)("span",{className:n.placeholder,children:j})}),s&&f&&f.length>0&&!S?(0,R.jsx)(b.default,{className:_()(n.close,n["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),x([])}}):(0,R.jsx)(b.default,{className:_()(n["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return N?(0,R.jsx)(P,{ref:c,overlayWidth:h.overlayWidth,value:f,setValue:x,single:v,inputContent:K,extra:"function"===typeof M?M({close:()=>c.current.close(),context:u}):M,renderSelectedContent:E,showSelectedTag:w,trigger:"click",placement:y,getPopupContainer:A,children:h.children}):(0,R.jsxs)("div",{className:n["input-inner"],onClick:()=>{i.current.modalOpen()},children:[(0,R.jsx)(I,{size:h.modalSize,ref:i,single:h.single,maxLength:h.maxLength,disabledScroller:!0,wrapClassName:_()(n.overlay,n["is-modal"],l),title:h.placeholder,value:f,onChange:x,extra:"function"===typeof M?M({close:()=>i.current.close(),context:u}):M,showSelectedTag:w,renderSelectedContent:E,children:h.children}),K]})}),k=e=>{let{api:t,className:l,displayItems:r,wrapClassName:s,...a}=e;const[i,c]=(0,d.useState)(""),[m,p]=(0,d.useState)(new Map(r.map(e=>[e.value,e]))),[f,x]=(0,d.useState)({}),{message:b}=g.App.useApp(),v=e=>{const t=e.filter(e=>m.get(e.value)!==e);0!==t.length&&p(e=>{const l=j()(e);return t.forEach(e=>{l.set(e.value,e)}),l})},A=e=>((e,t,l)=>"all"!==l?e:(t(e),e.map(e=>e.value)))(a.single?y()(e)?[]:[e]:e||[],v,a.valueType),[N,C]=u()(Object.assign({},a,{onChange:e=>{const t=((e,t,l)=>"all"!==l?e:e.map(e=>t.get(e)))(e,m,a.valueType);a.onChange&&a.onChange(a.single?S()(t):t)}},"value"in a?{value:A(a.value)}:{defaultValue:A(a.defaultValue)})),F=w({maxLength:a.maxLength,single:a.single,setValue:C,value:N,message:b.error});return(0,R.jsx)(o,{value:{mapping:m,searchText:i,setSearchText:c,appendMapping:v,setItems:e=>{f.setData(e),v(h()(a.dataFormat(e),"list",[]))},fetchApi:f,valueState:[N,F],props:a},children:(0,R.jsx)("div",{className:_()(n["input"+(a.inputContent&&"function"===typeof a.inputContent?"-custom":"")],l),children:(0,R.jsx)(M,{...t,wrapClassName:s,loading:null,setFetchApi:x,onRequestSuccess:e=>{v(h()(a.dataFormat(e),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}})})})};k.defaultProps={placeholder:"\u8bf7\u9009\u62e9",displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",getPopupContainer:null,showSelectedTag:!0},k.useContext=a;const T=k},19343:(e,t,l)=>{l.r(t),l.d(t,{Download:()=>u,FileButton:()=>v,FileLink:()=>y,List:()=>b,OptionButtons:()=>x,PrintButton:()=>s.PrintButton,default:()=>a(),download:()=>s.download,downloadBlobFile:()=>s.downloadBlobFile,useDownload:()=>s.useDownload,useFileModal:()=>A});l(64674);var n=l(96418),r=l.n(n),s=l(68827),a=l.n(s),o=l(3382),i=l(83136),d=l.n(i),c=l(70579);s.Download.useDownload=s.useDownload,s.Download.downloadBlobFile=s.downloadBlobFile;const u=s.Download;var m=l(26304),p=l.n(m),h=l(74065),g=l.n(h),f=l(96252);const _=e=>{let{apis:t}=e;const l=(0,f.useFormModal)();return"function"===typeof(null===t||void 0===t?void 0:t.onEditModalShow)?t.onEditModalShow:(e,t)=>{const n=l({size:"small",title:"\u4fee\u6539\u6587\u4ef6\u540d\u79f0",formProps:{data:{name:p()(e.filename.split(".")).join(".")},onSubmit:async l=>{!1!==((null===t||void 0===t?void 0:t.onEdit)&&await(null===t||void 0===t?void 0:t.onEdit({formData:Object.assign({},l,{name:`${l.name}.${g()(e.filename.split("."))}`}),item:e})))&&n.close()}},children:(0,c.jsx)(f.default,{column:1,list:[(0,c.jsx)(f.Input,{name:"name",label:"\u6587\u4ef6\u540d\u79f0",rule:"REQ LEN-0-100"})]})})}},x=e=>{var t;const l=_({apis:e.apis});return(0,c.jsx)(s.FileListOptionButtons,{...e,onEdit:t=>l(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,...l}=e;return(0,c.jsx)(o.default,{...Object.assign({},l),onClose:t})}})},b=e=>{let{apis:t,...l}=e;const n=_({apis:t});return(0,c.jsx)(s.FileList,{...l,apis:t,onEdit:e=>n(e,t),onDelete:null===t||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof l.renderModal?l.renderModal:e=>{let{onCancel:t,...l}=e;return(0,c.jsx)(o.default,{...Object.assign({},l),onClose:t})}})},v=e=>(0,c.jsx)(s.FileButton,{...Object.assign({},e,{modalProps:{renderModal:e=>{let{onCancel:t,...l}=e;return(0,c.jsx)(o.default,{...Object.assign({},l),onClose:t})}}})}),y=e=>{const{className:t,...l}=Object.assign({},e);return(0,c.jsx)(v,{...l,className:d()(t,"btn-no-padding"),type:"link",children:l.children||l.filename||l.originName})},A=e=>{const{title:t,children:l,footer:n}=(0,s.useFileModalProps)(Object.assign({},e)),a=(0,o.useModal)();return r()(()=>a({title:t,children:l,footer:n}))}},29556:(e,t,l)=>{l.r(t),l.d(t,{TooltipFetch:()=>R,TooltipInfoLabel:()=>N,default:()=>A});var n=l(55199),r=l(83136),s=l.n(r);const a="style_tooltip__zHGMI__RltKb",o="style_large__lvmsm__RltKb",i="style_small__nUt0r__RltKb",d="style_popup-content__-rKQN__RltKb",c="style_title__1EQPq__RltKb",u="style_important-info__qTSZY__RltKb",m="style_error__yTTq3__RltKb",p="style_warning__CMJxz__RltKb",h="style_success__AvJVx__RltKb",g="style_sub-title__uD8CH__RltKb",f="style_content__lzgUz__RltKb",_="style_alone__q6q82__RltKb",x="style_fetch-content__tEOEV__RltKb",b="style_fetch-loading__tN-WB__RltKb",v="style_title-info-icon__iY8Q+__RltKb";var y=l(70579);const A=e=>{let{overlayClassName:t,title:l,size:r,subtitle:x,content:b,importantInfo:v,importantInfoType:A,moreInfo:j,...N}=e;return(0,y.jsx)(n.Tooltip,{...N,rootClassName:s()(t,a,{[i]:"small"===r,[o]:"large"===r}),title:(0,y.jsxs)(n.Space,{direction:"vertical",className:d,children:[l&&(0,y.jsx)("div",{className:c,children:l}),v&&(0,y.jsx)("div",{className:s()(u,{[h]:"success"===A,[p]:"warning"===A,[m]:"error"===A}),children:v}),x&&(0,y.jsx)("div",{className:g,children:x}),b&&(0,y.jsx)("div",{className:s()(f,{[_]:[l,x,v,j].every(e=>!e)}),children:b}),j&&(0,y.jsx)("div",{children:j})]})})};var j=l(64671);const N=e=>{let{title:t,tooltipTitle:l}=e;return(0,y.jsxs)("div",{children:[t,l?(0,y.jsx)(A,{...l,children:(0,y.jsx)("span",{children:(0,y.jsx)(j.default,{type:"icon-xinxi-miaobian",className:v,size:14})})}):null]})};var S=l(73884),C=l(87558);const R=e=>{let{api:t,children:l,fetchContent:r,showLoading:a=!0,loadingClassName:o,force:i,...d}=e;const[c,u]=(0,S.useState)(!1),m=(0,C.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:p,isLoading:h,data:g,send:f}=m;return(0,y.jsx)(A,{...Object.assign({},d,p?r(g,m):{}),open:c,onOpenChange:async e=>{!e||p&&!i||await f({type:"refresh"}),u(e)},children:(0,y.jsxs)("span",{className:x,children:[l,a&&h?(0,y.jsx)(n.Spin,{size:"small",className:s()(o,b)}):null]})})}},30096:(e,t,l)=>{l.d(t,{Ay:()=>c});var n=l(98434),r=l(43856);const{useOnChange:s}=n.hooks,a=e=>{const t=t=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},o=a(r.UserField),i=a(r.TableField),d=a(r.AdvancedSelectField);d.createdList=e=>{let{renderList:t,defaultProps:l}=e;return a((0,r.createListField)({renderList:t,defaultProps:l}))},d.User=o,d.Table=i;const c=d},30891:(e,t,l)=>{l.d(t,{A:()=>r});var n=l(98434);const r=e=>{let{children:t}=e;const{openApi:l,formData:r}=(0,n.useFormContext)();return t({...l,formData:r})}},34643:(e,t,l)=>{l.d(t,{Ay:()=>u,Pg:()=>d,eM:()=>c});var n=l(98434),r=l(43856),s=l(60586);const{useOnChange:a}=n.hooks,o=e=>{const t=t=>a(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},i=o(r.SuperSelectField),d=o(s.$9),c=o(r.SuperSelectTableListField),u=i},35774:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(98434),r=l(81014),s=l(70579);const a=e=>{let{onClick:t,...l}=e;const a=(0,n.useFormContext)();return(0,s.jsx)(r.default,{...l,onClick:e=>t(a,e)})}},36972:(e,t,l)=>{l.d(t,{A:()=>M});var n=l(73884),r=l(87558),s=l(98434),a=l(78491),o=l.n(a),i=l(55199);const d="style_salary__sUOtT__RltKb",c="style_salary-type__Sl1LC__RltKb",u="style_input-number__eoEZr__RltKb",m="style_full__NPqJm__RltKb",p="style_input-group__toLB7__RltKb",h="style_input-group-no-mb__C4nzh__RltKb";var g=l(47458),f=l(55431),_=l(48731),x=l(10986),b=l.n(x),v=l(21079),y=l(70579);const A=(0,r.withFetch)(e=>{let{data:t,...l}=e;return(0,y.jsx)(i.Select,{...l,options:t})}),{useDecorator:j,useUIDecorator:N}=s.hooks,S=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:l}=e;return(0,y.jsx)("div",{style:{marginBottom:0},className:"react-form__field "+(l?"is-error":""),children:(0,y.jsx)("div",{className:"react-form__field-main",children:(0,y.jsx)("div",{className:"react-form__field-input",children:(0,n.cloneElement)(t,{className:"react-form__field-component"})})})})},R=e=>{let{getPopupContainer:t,onBlur:l,api:n,isRange:r=!0,placeholder:s,disabled:a,showMonth:f,remindUnit:x,req:j,...N}=e;const[R,w]=b()(N),{formatMessage:F}=(0,g.useIntl)({moduleName:"FormInfo"}),I=F({id:"defaultSelectPlaceholder"},{label:""}),P=F({id:"defaultInputPlaceholder"},{label:""}),M=[6].indexOf((0,v.get)(R,"type"))>-1,k=1===(0,v.get)(R,"type"),T=7===(0,v.get)(R,"type"),O=e=>{if(e)return M?e/1e4:e},E=o()(l||(()=>{}));return(0,y.jsx)("div",{ref:E,className:d,children:(0,y.jsxs)(i.Row,{wrap:!1,gutter:10,children:[(0,y.jsx)(i.Col,{children:(0,y.jsx)(A,{className:c,...n,value:(0,v.get)(R,"type"),onChange:e=>{w&&w(Object.assign({},k?{}:R,{type:e,min:"",max:""}))},placeholder:s||I,getPopupContainer:t,disabled:a})}),k?null:(0,y.jsxs)(i.Col,{flex:1,children:[r&&(0,y.jsxs)(i.Row,{className:x&&[5,6].includes(null===R||void 0===R?void 0:R.type)?p:h,wrap:!1,children:[(0,y.jsx)(i.Col,{flex:1,children:(0,y.jsx)(C,{isError:!(0,v.get)(R,"min")&&j,children:(0,y.jsx)(i.InputNumber,{disabled:a,placeholder:P,formatter:S,value:O((0,v.get)(R,"min")),style:{textAlign:"center"},onChange:e=>{w(Object.assign({},R,{min:M?1e4*e:e}))},description:x&&[5,6].includes(null===R||void 0===R?void 0:R.type)?(0,y.jsxs)("span",{style:{color:"#fc3333"},children:["\u6ce8\u610f\uff1a",(0,y.jsx)(_.default,{name:null===R||void 0===R?void 0:R.type,moduleName:"salaryTypeEnum"}),"\u7684\u5355\u4f4d\u4e3a",M?F({id:"thousand"}):T?"":F({id:"yuan"})]}):null})})}),(0,y.jsx)(i.Col,{children:(0,y.jsx)(i.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0})}),(0,y.jsx)(i.Col,{flex:1,children:(0,y.jsx)(C,{isError:!(0,v.get)(R,"max")&&j,children:(0,y.jsx)(i.InputNumber,{disabled:a,placeholder:P,formatter:S,value:O((0,v.get)(R,"max")),style:{textAlign:"center"},addonAfter:M?F({id:"thousand"}):T?"":F({id:"yuan"}),onChange:e=>{w(Object.assign({},R,{max:M?1e4*e:e}))}})})}),5===(0,v.get)(R,"type")&&f&&(0,y.jsx)(i.Col,{children:(0,y.jsxs)("span",{className:(0,v.get)(R,"max")&&(0,v.get)(R,"min")&&!(0,v.get)(R,"month")&&j?"error":"",children:[(0,y.jsx)("span",{className:u,children:"X"}),(0,y.jsx)(i.InputNumber,{min:12,disabled:a,value:(0,v.get)(R,"month"),onChange:e=>{w(Object.assign({},R,{month:e}))},style:{width:100,textAlign:"center"},placeholder:"\u6570\u91cf",addonAfter:"\u6708"})]})})]}),!r&&!T&&(0,y.jsx)(i.InputNumber,{disabled:a,min:0,max:1e8,placeholder:P,className:m,formatter:S,value:O((0,v.get)(R,"max")),style:{textAlign:"center"},addonAfter:M?F({id:"thousand"}):T?"":F({id:"yuan"}),onChange:e=>{w(Object.assign({},R,{max:M?1e4*e:e}))}}),!r&&T&&(0,y.jsx)(i.Input,{disabled:a,placeholder:P,className:m,onChange:e=>{w(Object.assign({},R,{max:e.target.value}))},value:(0,v.get)(R,"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"}]},F={type:5,min:"",max:"",month:12},I=e=>{let{api:t=w,defaultValue:l=F,...n}=e;return(0,y.jsx)(g.IntlProvider,{moduleName:"FormInfo",importMessages:f.A,children:(0,y.jsx)(R,{...n,api:t,defaultValue:l})})},P=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})(I)};P.Field=I;const M=P},41381:(e,t,l)=>{l.r(t),l.d(t,{default:()=>r.a});l(55664);var n=l(22436),r=l.n(n),s={};for(const a in n)"default"!==a&&(s[a]=()=>n[a]);l.d(t,s)},45053:(e,t,l)=>{l.d(t,{A:()=>m});var n=l(98434),r=l(55199),s=l(73884),a=l(83136),o=l.n(a),i=l(70720),d=l.n(i),c=l(47094),u=l(70579);const m=e=>{let{name:t,groupName:l,overlayClassName:a,errorRender:i=()=>null,groupIndex:m,children:p}=e;const h=(e=>{let{name:t,groupName:l,groupIndex:r}=e;const{emitter:a,formState:o}=(0,n.useFormContext)(),i=(0,s.useRef)({name:t,groupName:l,groupIndex:r});i.current={name:t,groupName:l,groupIndex:r};const d=(0,s.useRef)(o);d.current=o;const[c,u]=(0,s.useState)(null);return(0,s.useEffect)(()=>{const e=a.addListener("form-field-validate-complete",e=>{let{id:t,validate:l}=e;const r=d.current[t];if(!r)return;const s=i.current;r.name!==s.name||s.groupName&&(r.groupName!==s.groupName||r.groupIndex!==s.groupIndex)||u(2===l.status?Object.assign({},l,{label:r.label,errMsg:n.util.compileErrMsg(l.msg,r.label)}):null)});return()=>{e&&e.remove()}},[a]),c})({name:t,groupName:l,groupIndex:m}),[g,f]=(0,s.useState)(!1),_=h&&g&&i(Object.assign({},h,{closeHover:()=>f(!1)})),x=(0,s.useRef)(null),b=(0,s.useRef)(null);d()(()=>{f(!1)}).current={contains:e=>x.current.contains(e)||b.current&&b.current.contains(e)};const[v,y]=(0,s.useState)(0);return(0,s.useLayoutEffect)(()=>{const e=()=>{const e=x.current.querySelector(".react-form__field-component");e&&y(e.clientWidth)};e();const t=new ResizeObserver(e);t.observe(x.current);const l=new MutationObserver(e);return l.observe(x.current,{subtree:!0,childList:!0}),()=>{l.disconnect(),t.disconnect()}},[]),(0,u.jsx)(r.Popover,{open:!!_,rootClassName:o()(a,c.A["error-tip-overlay"]),content:_&&(0,u.jsx)("div",{ref:b,style:{width:v},className:o()(c.A["error-tip-overlay-content"]),children:_}),placement:"bottom",transitionName:"ant-slide-up",arrow:!1,children:(0,u.jsx)("div",{className:o()("error-tip"),ref:x,onMouseEnter:()=>{f(!0)},children:p})})}},46237:(e,t,l)=>{l.d(t,{Ay:()=>i,oc:()=>o});var n=l(73884);const r=(0,n.createContext)([]),{Provider:s,Consumer:a}=r,o=()=>(0,n.useContext)(r),i=s},46732:(e,t,l)=>{l.d(t,{A:()=>c,K:()=>d});var n=l(75363),r=l(73884),s=l(98434),a=l(47094),o=l(70579);const i=(0,r.createContext)(""),{Provider:d}=i,c=e=>{let{name:t}=e;const l=(0,r.useContext)(i),d=(0,s.useGroup)();return l&&(0,o.jsx)(n.default,{className:a.A["helper-guide-field"],name:l+"-"+(d.name?d.name+"-":"")+t})}},47094:(e,t,l)=>{l.d(t,{A:()=>n});const n={"form-outer":"style_form-outer__IWUs0__RltKb","form-drawer":"style_form-drawer__uYDXS__RltKb","table-list":"style_table-list__6lp-A__RltKb","list-item":"style_list-item__hVzQa__RltKb","table-list-inner":"style_table-list-inner__uc8DK__RltKb","table-list-field":"style_table-list-field__JSJfB__RltKb","table-list-header":"style_table-list-header__KXvKa__RltKb","is-req":"style_is-req__LfXQf__RltKb","table-list-extra":"style_table-list-extra__faYTK__RltKb","list-btn":"style_list-btn__WKYkm__RltKb","form-info":"style_form-info__B8bAP__RltKb","list-part":"style_list-part__Ld0GA__RltKb","is-important":"style_is-important__vaBk1__RltKb","list-item-part":"style_list-item-part__MzKP7__RltKb","money-input":"style_money-input__J86Pb__RltKb","money-description":"style_money-description__Gz3p7__RltKb","components-upload-wrapper":"style_components-upload-wrapper__Ir0gz__RltKb","textarea-wrapped-component":"style_textarea-wrapped-component__r1oKc__RltKb","helper-guide-field":"style_helper-guide-field__Wke3w__RltKb","error-tip-overlay":"style_error-tip-overlay__aNCGc__RltKb","error-tip-overlay-content":"style_error-tip-overlay-content__kDOoQ__RltKb","column-not-layout":"style_column-not-layout__+SXC+__RltKb","mult-field-item":"style_mult-field-item__eS0nJ__RltKb","react-form__field-label":"style_react-form__field-label__2U91E__RltKb","mult-field-add-btn":"style_mult-field-add-btn__5Baxz__RltKb","form-step-section":"style_form-step-section__RvkHy__RltKb"}},47338:(e,t,l)=>{l.r(t),l.d(t,{ConfirmButton:()=>n.ConfirmButton,ConfirmLink:()=>n.ConfirmLink,ConfirmText:()=>n.ConfirmText,default:()=>r,withConfirm:()=>n.withConfirm});l(9056);var n=l(48686);const r=n.ConfirmButton},48221:(e,t,l)=>{l.d(t,{Ay:()=>i,WJ:()=>c,Xy:()=>d});var n=l(25963),r=l(73025),s=l(47094),a=l(76995),o=l(70579);const i=e=>(0,o.jsx)(n.default,{...(0,a.A)(Object.assign({},e,{className:s.A["form-drawer"]}))}),d=()=>{const e=(0,n.useDrawer)();return t=>e((0,a.A)(Object.assign({},t,{className:s.A["form-drawer"]})))},c=e=>{const t=d();return(0,o.jsx)(r.A,{...e,modalFunc:t})}},48731:(e,t,l)=>{l.r(t),l.d(t,{default:()=>r.a});var n=l(60922),r=l.n(n),s=l(22717),a=l.n(s);(0,n.preset)({base:a()([["gender",()=>[{value:"M",description:"\u7537"},{value:"F",description:"\u5973"}]],["marital",()=>[{description:"\u5df2\u5a5a",value:"Y"},{description:"\u672a\u5a5a",value:"N"}]],["confirm",()=>[{description:"\u662f",value:"Y"},{description:"\u5426",value:"N"}]],["political",()=>[{description:"\u4e2d\u5171\u515a\u5458",value:"\u4e2d\u5171\u515a\u5458"},{description:"\u5171\u9752\u56e2\u5458",value:"\u5171\u9752\u56e2\u5458"},{description:"\u7fa4\u4f17",value:"\u7fa4\u4f17"},{description:"\u5176\u4ed6\u515a\u6d3e",value:"\u5176\u4ed6\u515a\u6d3e"}]],["phoneStateEnum",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],(e,t)=>{e[t[0]]=t[1]},{})})},55431:(e,t,l)=>{l.d(t,{A:()=>n});const n=e=>({"en-US":()=>l.e(1649).then(l.bind(l,21649)),"zh-CN":()=>l.e(711).then(l.bind(l,80711))}[e]())},56259:(e,t,l)=>{l.d(t,{A:()=>o});var n=l(89319),r=l(98434);const{useOnChange:s}=r.hooks,a=e=>s(Object.assign({},{},e))(n.A);a.Field=n.A;const o=a},64261:(e,t,l)=>{l.d(t,{A:()=>f});var n=l(98434),r=l(57469),s=l.n(r),a=l(34677),o=l.n(a),i=l(33097),d=l.n(i),c=(l(17448),l(2842)),u=l(46732),m=l(13050),p=l(70579);const h=n.RULES.REQ,g=n.RULES.LEN,f=async(e,t)=>{const{locale:l}=Object.assign({},t);n.interceptors.input.use("photo-string",e=>{if(e&&"string"===typeof e){return{id:e.split("?")[0]}}return e}),n.interceptors.output.use("photo-string",e=>{var t,l;return e&&"string"!==typeof e?(null===(t=e.id)||void 0===t||null===(l=t.split("?"))||void 0===l?void 0:l[0])||e.id:e}),n.interceptors.input.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>({id:e.split("?")[0]})):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):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.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:r}=await(0,m.loadModule)("components-iconfont:CountyFlag@load"),a=await r(),i=new Map(a.map(e=>{let{ab:t,country_code:l}=e;return[t,l]})),f=new Map(a.map(e=>{let{ab:t,country_code:l}=e;return[l,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:f.get(Number(t[1])),value:t[2]}:{code:f.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}`}},r=d()(n,`${e}.${l}`);return r||d()(n,`${e}.zh-CN`)};(0,n.preset)(o()({},{type:"inner",rules:{REQ:function(){return Object.assign({},h(...arguments),{errMsg:_("REQ")})},LEN:function(){for(var e=arguments.length,t=new Array(e),l=0;l<e;l++)t[l]=arguments[l];const[n,r,s]=t;let a="";return s===r&&n.length!==Number(s)&&(a="LENGTH_EQUAL"),n.length<r&&(a="LENGTH_MORE"),s&&n.length>s&&(a="LENGTH_LESS"),Object.assign({},g(...t),{errMsg:_(a,{start:r,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:c.PHONE_NUMBER_INPUT,ARRAY_LENGTH:(e,t,l)=>l===t&&e.length!==Number(l)?{result:!1,errMsg:_("LENGTH_EQUAL",{start:t,end:l})}:e.length<t?{result:!1,errMsg:_("LENGTH_MORE",{start:t,end:l})}:l&&e.length>l?{result:!1,errMsg:_("LENGTH_LESS",{start:t,end:l})}:{result:!0}},field:{datePicker:{defaultProps:{interceptor:"date-string"}},rangeDatePicker:{defaultProps:{interceptor:"date-range-string"}},inputNumber:{defaultProps:{changeOnWheel:!1}},textArea:{defaultProps:{autoSize:{minRows:2,maxRows:6}}}},globalProps:{labelTips:e=>(0,p.jsx)(u.A,{...e})}},"function"===typeof e?e({interceptors:n.interceptors,RULES:n.RULES}):e))}},75363:(e,t,l)=>{l.r(t),l.d(t,{default:()=>g});const n=e=>({"en-US":()=>l.e(9431).then(l.bind(l,9431)),"zh-CN":()=>l.e(1065).then(l.bind(l,81065))}[e]());var r=l(47458),s=l(64671),a=l(55199),o=l(83136),i=l.n(o);const d="style_helper-guide__K5xFw__RltKb",c="style_inner__bMKeU__RltKb",u="style_content__xTfWZ__RltKb",m="style_link__93j7O__RltKb";var p=l(48731),h=l(70579);const g=e=>{let{name:t,className:l}=e;return(0,h.jsx)(r.IntlProvider,{importMessages:n,moduleName:"HelperGuide",children:(0,h.jsx)(p.default,{moduleName:"helperGuide",name:t,children:e=>e&&e.value&&(0,h.jsx)("div",{className:i()(d,l),children:(0,h.jsxs)(a.Space,{className:c,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)(a.Typography.Link,{className:m,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,h.jsx)(s.default,{type:"icon-shuangjiantou-right"})]})]})})})})}},76995:(e,t,l)=>{l.d(t,{A:()=>m});var n=l(55431),r=l(98434),s=l(47458),a=l(83799),o=l(83136),i=l.n(o),d=l(47094),c=l(70579);const u="FormInfo",m=e=>{let{className:t,withDecorator:l,footerButtons:o,formProps:m,cancelText:p,saveText:h,autoClose:g=!0,...f}=e;return{...f,footerButtons:o||[{children:(0,c.jsx)(s.IntlProvider,{importMessages:n.A,moduleName:u,children:p||(0,c.jsx)(s.FormattedMessage,{id:"Cancel",moduleName:u})}),ButtonComponent:r.CancelButton},{type:"primary",children:(0,c.jsx)(s.IntlProvider,{importMessages:n.A,moduleName:u,children:h||(0,c.jsx)(s.FormattedMessage,{id:"Save",moduleName:u})}),ButtonComponent:r.SubmitButton,autoClose:!1}],withDecorator:(e,t)=>{const r=t=>{const{onSubmit:l,...r}=Object.assign({},"function"===typeof m?m(t):m);return(0,c.jsx)(a.lV,{...r,onSubmit:async function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];!1!==(l&&await l(e,Object.assign({},t),...r))&&g&&t.close()},children:(0,c.jsx)(s.IntlProvider,{importMessages:n.A,moduleName:"FormInfo",children:e(t)})})};return"function"===typeof l?l(r,t):r(t)},className:i()(t,d.A["form-outer"])}}},78756:(e,t,l)=>{l.d(t,{A:()=>o});var n=l(43856),r=l(98434);const{useOnChange:s}=r.hooks,a=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.IndustrySelectField);a.Field=n.IndustrySelectField,a.Enum=n.IndustrySelectField.Enum;const o=a},81026:(e,t,l)=>{l.d(t,{A:()=>o});var n=l(43856),r=l(98434);const{useOnChange:s}=r.hooks,a=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.FunctionSelectField);a.Field=n.FunctionSelectField,a.Enum=n.FunctionSelectField.Enum;const o=a},83230:(e,t,l)=>{l.d(t,{A:()=>o});var n=l(98434),r=l(43856);const{useOnChange:s}=n.hooks,a=e=>s(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(r.CascaderField);a.Field=r.CascaderField,a.createTreeUtils=r.createTreeUtils;const o=a},83799:(e,t,l)=>{l.d(t,{NI:()=>K,TQ:()=>u.A,JL:()=>k,eu:()=>x.A,vx:()=>m.A,lr:()=>G,s3:()=>H,lV:()=>r.A,d4:()=>p.A,ZN:()=>h.A,pd:()=>D,YI:()=>$,h2:()=>L,F0:()=>g.A,go:()=>f.default,tt:()=>n.Rate,lu:()=>b.A,l6:()=>z,Ap:()=>n.Slider,wD:()=>T,eM:()=>O,Pg:()=>E,dO:()=>n.Switch,EY:()=>F,fs:()=>B,AG:()=>q,f7:()=>W,w5:()=>y.A,_O:()=>_.A,nk:()=>V});var n=l(98434),r=l(85696),s=l(47458),a=l(73884),o=l(30891),i=l(47094),d=l(30096),c=l(34643),u=l(1904),m=l(83230),p=l(81026),h=l(78756),g=l(92328),f=l(2842),_=l(89099),x=l(96339),b=l(36972),v=l(15209),y=l(56259),A=l(55199),j=l(10986),N=l.n(j),S=l(70579);const{useDecorator:C}=n.hooks,R=e=>{let{children:t,...l}=e;const[n]=N()(l);return(0,S.jsxs)(A.Typography.Text,{...l,children:[(0,S.jsx)("div",{style:{height:0,width:0,overflow:"hidden"},children:(0,S.jsx)(A.Input,{value:n})}),t||n]})},w=e=>C(e)(R);w.Field=R;const F=w;var I=l(45053);const P=e=>{const t=(0,a.forwardRef)((t,l)=>{let{placeholder:n,label:r,...a}=t;return(0,S.jsx)(s.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:r},children:t=>(0,S.jsx)(e,{...a,ref:l,label:r,placeholder:n||t})})});return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(l=>{t[l]=e[l]}),t},M=e=>{const t=(0,a.forwardRef)((t,l)=>{let{placeholder:n,label:r,...a}=t;return(0,S.jsx)(s.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:r},children:t=>(0,S.jsx)(e,{...a,ref:l,label:r,placeholder:n||t})})});return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(l=>{t[l]=e[l]}),t},k=M(d.Ay),T=M(c.Ay),O=M(c.eM),E=M(c.Pg),K=M(u.N),L=P(v.A),D=P(n.Input);D.Password=P(n.Input.Password);const B=(U=n.TextArea,e=>{let{placeholder:t,label:l,className:n,...r}=e;return(0,S.jsx)(s.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:l},children:e=>(0,S.jsx)("div",{className:i.A["textarea-wrapped-component"],children:(0,S.jsx)(U,{...r,label:l,placeholder:t||e})})})});var U;const z=M(n.Select),$=P(n.InputNumber),W=M(n.TreeSelect),q=M(n.TimePicker);q.RangePicker=M(n.TimePicker.RangePicker);const G=M(n.DatePicker);G.MonthPicker=M(n.DatePicker.MonthPicker),G.RangePicker=M(n.DatePicker.RangePicker),G.WeekPicker=M(n.DatePicker.WeekPicker);const H=e=>{let{placeholder:t,label:l,soFarText:r,...a}=e;const{formatMessage:o}=(0,s.useIntl)({moduleName:"FormInfo"});return(0,S.jsx)(n.DatePickerToday,{...a,label:l,placeholder:[o({id:"startDate"}),o({id:"endDate"})],soFarText:r||o({id:"soFarText"})})},V=Object.assign({},n,{Input:D,InputUpperCase:L,TextArea:B,Select:z,InputNumber:$,TreeSelect:W,TimePicker:q,DatePicker:G,DatePickerToday:H,Form:r.A,FormItem:o.A,AdvancedSelect:k,SuperSelect:T,SuperSelectTableList:O,SuperSelectUser:E,AddressSelect:u.A,AddressInput:K,MoneyInput:g.A,PhoneNumber:f.default,Cascader:m.A,FunctionSelect:p.A,IndustrySelect:h.A,TypeDateRangePicker:y.A,Upload:_.A,Avatar:x.A,SalaryInput:b.A,Text:F,Rate:n.Rate,Switch:n.Switch,Slider:n.Slider,ErrorTip:I.A})},85696:(e,t,l)=>{l.d(t,{A:()=>b});var n=l(73884),r=l(63743),s=l(33097),a=l.n(s),o=l(64261),i=l(47458),d=l(55431),c=l(46237),u=l(41381),m=l(46732),p=l(98434),h=l(83136),g=l.n(h),f=l(47094),_=l(70579);const x=e=>{let{children:t}=e;const[l,s]=(0,n.useState)(!1),i=(0,r.usePreset)(),d=a()(i,"formInfo",{}),c=a()(i,"locale");return(0,n.useEffect)(()=>{Promise.resolve((0,o.A)(d,{locale:c})).then(()=>{s(!0)})},[d,c]),l?t:null},b=(0,n.forwardRef)((e,t)=>{let{className:l,helperGuideName:n,children:r,lang:s,...a}=e;return(0,_.jsx)(i.IntlProvider,{importMessages:d.A,moduleName:"FormInfo",children:(0,_.jsx)(c.Ay,{value:s,children:(0,_.jsx)(m.K,{value:n,children:(0,_.jsx)(x,{children:(0,_.jsx)(p.FormAntd,{...a,ref:t,className:g()(l,f.A["form-outer"]),children:(0,_.jsx)(u.default,{children:r})})})})})})})},85846:(e,t,l)=>{l.d(t,{A:()=>x});var n=l(73884),r=l(68532),s=l(55199),a=l(64671),o=l(41381),i=l(47338),d=l(2196),c=l(83136),u=l.n(c),m=l(55431),p=l(47458),h=l(47094),g=l(70579);const f=(0,p.createWithIntl)({moduleName:"FormInfo",importMessages:m.A})(e=>{let{addText:t,className:l,important:o,outer:c=(0,g.jsx)(_,{}),renderChildren:m=e=>e,deleteButtonProps:f,title:x,...b}=e;const{formatMessage:v}=(0,p.useIntl)({moduleName:"FormInfo"});return(0,g.jsx)(r.SubList,{...b,listRender:e=>{let{list:t,title:l,id:n,allowRemove:r,onRemove:c,...m}=e;return(0,g.jsxs)("div",{className:u()(h.A["list-item"],{[h.A["is-important"]]:o}),children:[(0,g.jsx)(d.A,{...m,title:l,list:t,className:h.A["list-item-part"],gap:16,extra:(0,g.jsx)(p.FormattedMessage,{id:"delText",moduleName:"FormInfo",children:e=>r?(0,g.jsx)(i.default,{danger:!0,className:"btn-no-padding",message:v({id:"delConfirm"},{name:l}),type:"link",onClick:()=>{c(n)},...Object.assign({},f),children:null!==f&&void 0!==f&&f.children?null===f||void 0===f?void 0:f.children:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(a.default,{type:"icon-shanchu"}),e]})}):null})}),(0,g.jsx)(s.Divider,{})]},n)},children:(e,r)=>{let{allowAdd:s,onAdd:a}=r;return(0,n.cloneElement)(c,{title:x,addText:t,className:u()(l,h.A["list-part"]),allowAdd:s,add:()=>a({isUnshift:!1})},m(e))}})}),_=e=>{let{add:t,addText:l,className:n,allowAdd:r,...i}=e;return(0,g.jsx)(o.default.Part,{...i,className:n,extra:r&&(0,g.jsx)(p.FormattedMessage,{id:"addText",moduleName:"FormInfo",children:e=>(0,g.jsxs)(s.Typography.Text,{className:h.A["list-btn"],onClick:t,children:[(0,g.jsx)(a.default,{type:"icon-tianjia"}),l||e]})})})},x=f},89099:(e,t,l)=>{l.d(t,{A:()=>A});var n=l(55199),r=l(83136),s=l.n(r),a=l(10986),o=l.n(a);const i="style_upload__t422Q__RltKb",d="style_upload-list__Q9HDc__RltKb",c="style_tips__3Gpnu__RltKb";var u=l(19343),m=l(98434),p=l(47458),h=l(1488),g=l.n(h),f=l(17508),_=l(55431),x=l(70579);const{useOnChange:b}=m.hooks,v=(0,p.createWithIntl)({importMessages:_.A,moduleName:"FormInfo"})(e=>{const{formatMessage:t}=(0,p.useIntl)({moduleName:"FormInfo"}),{className:l,fileSize:r,maxLength:a,multiple:m,size:h,accept:_,children:b,renderTips:v,showUploadList:y,onSave:A,ossUpload:j,onUpload:N,getPermission:S,concurrentCount:C,...R}=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,F]=o()(R),I=w||[],{fileList:P,onFileSelected:M}=(0,f.lN)({multiple:m,onSave:A,onUpload:j||N,fileSize:r,maxLength:a,value:I,onChange:F,concurrentCount:C}),k=[...P,...I],T=v(t({id:"uploadTips"},{extensionNames:_.map(e=>e.replace(/^\./,"")).join(","),maxLength:a,fileSize:r}),{fileSize:r,maxLength:a,accept:_});return(0,x.jsxs)(n.Space,{direction:"vertical",children:[(0,x.jsxs)(n.Flex,{align:"start",gap:8,vertical:!0,children:[(0,x.jsx)(f.Zi,{...g()(R,["value","onChange"]),size:h,multiple:m,accept:_,className:s()(i,l),onChange:M,children:b}),T&&(0,x.jsx)("div",{className:c,children:T})]}),y&&k.length>0&&(0,x.jsx)(u.List,{className:d,dataSource:k,infoItemRenders:[],getPermission:S||(e=>"delete"===e),apis:{onDelete:e=>{const t=I.slice(0),l=t.indexOf(e);l>-1&&t.splice(l,1),F(t)}}})]})}),y=e=>{let{interceptor:t="file-format",...l}=e;return b({interceptor:t,...l})(v)};y.Field=v;const A=y},92328:(e,t,l)=>{l.d(t,{A:()=>v});var n=l(10986),r=l.n(n),s=l(98434),a=l(55199),o=l(69484);const i="style_money-input__Pyur7__RltKb",d="style_money-description__9pFk4__RltKb";var c=l(83136),u=l.n(c),m=l(34677),p=l.n(m),h=l(73884),g=l(70579);const{isNotEmpty:f}=s.util||s.formUtils,{useOnChange:_}=s.hooks,x=e=>{let{chineseEmpty:t,className:l,showError:n,errorDesc:s,transformMoneyToChinese:c,onBlur:m,moneyFormat:_,...x}=e;const[b,v]=(0,h.useState)(""),[y,A]=r()(x),j=p()({controls:!1,precision:2,addonAfter:"\u5143"},x,{max:f(x.max)?x.max>o.e?o.e:x.max:o.e});return(0,g.jsxs)("div",{className:u()(l,"money-input",i),children:[(0,g.jsx)(a.InputNumber,{...j,status:b,formatter:_?e=>`${e}`.replace(/\B(?=(\d{3})+(?!\d))/g,","):null,parser:e=>{const t=_?null===e||void 0===e?void 0:e.replace(/\$\s?|(,*)/g,""):e;return f(t)?(Number(t)>Number(j.max)||f(j.min)&&Number(t)<Number(j.min))&&v("error"):v(""),f(t)?Number(t):null},onChange:e=>{A(e)},onBlur:e=>{m&&m(e,v)}}),(0,g.jsx)("div",{className:u()(d),children:"error"===b&&n?s:f(y)?(0,o.A)(c?c(y):y):t})]})},b=e=>_(Object.assign({placeholder:`\u8bf7\u8f93\u5165${e.label||""}`},e))(x);b.Field=x,b.toChineseCharacter=o.A;const v=b},94005:(e,t,l)=>{l.d(t,{$X:()=>_,Ay:()=>f,Wp:()=>x});var n=l(3382),r=l(73884),s=l(98434),a=l(73025),o=l(47458),i=l(47094),d=l(55431),c=l(55199),u=l(76995),m=l(70579);const p="FormInfo",h=e=>{let{items:t,children:l}=e;const[n,s]=(0,r.useState)(0);return l({currentIndex:n,setCurrentIndex:s,stepCacheRef:(0,r.useRef)({}),isLastStep:n===t.length-1,currentProps:Object.assign({},t[n])})},g=e=>{let{footerButtons:t,cancelText:l,completeText:n,nextText:r,items:a,withDecorator:g,...f}=e;return(0,u.A)(Object.assign({},f,{footerButtons:e=>{let{currentIndex:t,isLastStep:i}=e;const{footerButtons:c}=Object.assign({},a[t]);return c||[{children:(0,m.jsx)(o.IntlProvider,{importMessages:d.A,moduleName:p,children:l||(0,m.jsx)(o.FormattedMessage,{id:"Cancel",moduleName:p})}),ButtonComponent:s.CancelButton},{type:"primary",children:(0,m.jsx)(o.IntlProvider,{importMessages:d.A,moduleName:p,children:i?n||(0,m.jsx)(o.FormattedMessage,{id:"Complete",moduleName:p}):r||(0,m.jsx)(o.FormattedMessage,{id:"Next",moduleName:p})}),ButtonComponent:s.SubmitButton,autoClose:!1}]},withDecorator:(e,t)=>{const l=t=>(0,m.jsx)(h,{items:a,children:l=>{var n;let{currentIndex:r,isLastStep:s,setCurrentIndex:o,currentProps:d,stepCacheRef:u}=l;const{formProps:p,title:h,...g}=d,{onSubmit:_,...x}="function"===typeof p?p(t):p,b=Object.assign({},x.data,null===(n=u.current[r])||void 0===n?void 0:n.data);return e(Object.assign({},t,g,{currentIndex:r,isLastStep:s,setCurrentIndex:o,stepCacheRef:u,stepSection:(0,m.jsx)(c.Steps,{className:i.A["form-step-section"],current:r,items:a.map(e=>{let{title:t}=e;return{title:t}})}),formProps:Object.assign({},x,{key:r,data:b,onSubmit:async function(e){u.current[r]={data:e};for(var l=arguments.length,n=new Array(l>1?l-1:0),a=1;a<l;a++)n[a-1]=arguments[a];const i=_&&await _(e,Object.assign({},t,{currentIndex:r,isLastStep:s,setCurrentIndex:o,currentProps:d,stepCacheRef:u}),...n);return f.autoClose&&!s&&!1!==i&&o(e=>e+1),!!s&&i}})}))}});return"function"===typeof g?g(l,t):l(t)},formProps:e=>{let{formProps:t,...l}=e;return Object.assign({},l,t)},children:e=>{let{children:t,stepSection:l,...n}=e;return(0,m.jsxs)(c.Flex,{vertical:!0,gap:24,children:[(0,m.jsx)(c.Flex,{justify:"center",children:l}),"function"===typeof t?t(n):t]})}}))},f=e=>(0,m.jsx)(n.default,{...g(Object.assign({},e,{className:i.A["form-modal"]}))}),_=()=>{const e=(0,n.useModal)();return t=>e(g(Object.assign({},t,{className:i.A["form-modal"]})))},x=e=>{const t=_();if(!e.api){const{modalProps:l,...n}=e;return(0,m.jsx)(c.Button,{...n,onClick:()=>{t(l)}})}return(0,m.jsx)(a.A,{...e,modalFunc:t})}},96252:(e,t,l)=>{l.r(t),l.d(t,{AddressInput:()=>x.NI,AddressSelect:()=>x.TQ,AdvancedSelect:()=>x.JL,Avatar:()=>x.eu,Cascader:()=>x.vx,DatePicker:()=>x.lr,DatePickerToday:()=>x.s3,ErrorTip:()=>h.A,Form:()=>m.A,FormApiButton:()=>i.A,FormDrawer:()=>u.Ay,FormDrawerButton:()=>u.WJ,FormItem:()=>p.A,FormModal:()=>d.Ay,FormModalButton:()=>d.W6,FormStepModal:()=>c.Ay,FormStepModalButton:()=>c.Wp,FunctionSelect:()=>x.d4,IndustrySelect:()=>x.ZN,Input:()=>x.pd,InputNumber:()=>x.YI,InputUpperCase:()=>x.h2,List:()=>a.A,MoneyInput:()=>x.F0,MultiField:()=>g.A,PhoneNumber:()=>x.go,Rate:()=>x.tt,SalaryInput:()=>x.lu,Select:()=>x.l6,SelectInnerInput:()=>b.A,Slider:()=>x.Ap,SuperSelect:()=>x.wD,SuperSelectTableList:()=>x.eM,SuperSelectUser:()=>x.Pg,Switch:()=>x.dO,TableList:()=>o.A,Text:()=>x.EY,TextArea:()=>x.fs,TimePicker:()=>x.AG,TreeSelect:()=>x.f7,TypeDateRangePicker:()=>x.w5,Upload:()=>x._O,default:()=>v,fieldDecorator:()=>s.E,fields:()=>s.A,formModule:()=>x.nk,useFormDrawer:()=>u.Xy,useFormModal:()=>d.Vl,useFormStepModal:()=>c.$X});var n=l(64261),r=l(2196),s=l(15445),a=l(85846),o=l(97056),i=l(35774),d=l(5995),c=l(94005),u=l(48221),m=l(85696),p=l(30891),h=l(45053),g=l(97949),f=l(98434),_={};for(const y in f)["default","Form","FormItem","ErrorTip","fields","fieldDecorator","List","TableList","FormApiButton","FormModal","useFormModal","FormModalButton","FormStepModal","useFormStepModal","FormStepModalButton","FormDrawer","useFormDrawer","FormDrawerButton","MultiField","SelectInnerInput"].indexOf(y)<0&&(_[y]=()=>f[y]);l.d(t,_);var x=l(83799),b=l(18936);(0,n.A)(),r.A.fields=s.A,r.A.List=a.A,r.A.TableList=o.A,r.A.FormApiButton=i.A,r.A.FormModal=d.Ay,r.A.useFormModal=d.Vl,r.A.FormModalButton=d.W6,r.A.FormStepModal=c.Ay,r.A.useFormStepModal=c.$X,r.A.FormStepModalButton=c.Wp,r.A.FormDrawer=u.Ay,r.A.useFormDrawer=u.Xy,r.A.FormDrawerButton=u.WJ,r.A.Form=m.A,r.A.FormItem=p.A,r.A.ErrorTip=h.A,r.A.SubmitButton=f.SubmitButton,r.A.CancelButton=f.CancelButton,r.A.fieldDecorator=s.E,r.A.MultiField=g.A,r.A.useFormContext=f.useFormContext,r.A.hooks=f.hooks,r.A.widget=f.widget,r.A.utils=f.utils,r.A.formUtils=f.formUtils;const v=r.A},96339:(e,t,l)=>{l.d(t,{A:()=>D});var n=l(73884),r=l(17508),s=l(40438),a=l(63743),o=l(3382),i=l(64671),d=l(55199),c=l(53202),u=l.n(c),m=l(33097),p=l.n(m),h=l(83136),g=l.n(h),f=l(51941),_=l(98434),x=l(34677),b=l.n(x);const v="style_upload-btn__-6XtP__RltKb",y="style_square__UPkfA__RltKb",A="style_is-loading__wx6Pd__RltKb",j="style_upload-btn-tips__YtxWz__RltKb",N="style_drop-tips__N-v59__RltKb",S="style_preview-area__aV3SN__RltKb";var C=l(18411),R=l(47458),w=l(55431),F=l(70579);const{useOnChange:I}=_.hooks,P=s.default.Avatar,M="FormInfo",k=(0,r.Ay)(e=>{let{className:t,icon:l,loading:n,value:r,gender:s,width:a,height:o,children:c,shape:u,defaultAvatar:m,displayAvatar:h,apis:f}=e;const _=(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(P,{...Object.assign({},"function"===typeof h?h(r):{id:p()(r,"id")}),gender:s,width:64*a/o,height:64,shape:u,defaultAvatar:m,apis:f}),(0,F.jsx)("div",{className:j,children:l||(0,F.jsx)(i.default,{type:"icon-chuanzhaopian",size:16})}),c]});return(0,F.jsx)("div",{className:g()(t,v,{[A]:n,[y]:"square"===u||!(a&&a===o)}),style:{width:64*a/o},children:n?(0,F.jsx)(d.Spin,{children:_}):_})}),T=e=>{let t=e.split(","),l=t[1].substring(0,t[1].length-2),n=t[0].match(/:(.*?);/)[1],r=atob(l),s=r.length,a=new Uint8Array(s);for(;s--;)a[s]=r.charCodeAt(s);return new Blob([a],{type:n})},O=(0,n.forwardRef)((e,t)=>{let{image:l,width:s,height:a,borderRadius:o,preview:c,fileSize:m,accept:p,renderTips:h,getApi:g,shape:_,border:x=1,...b}=e;const v=(0,R.useIntl)({moduleName:M}),[y,A]=(0,n.useState)(0),j=(0,n.useRef)(null),[C,w]=(0,n.useState)(l),[I,P]=(0,n.useState)(1),[k,O]=(0,n.useState)(0),[E,K]=(0,n.useState)(""),L=(0,n.useRef)(null);(0,n.useLayoutEffect)(()=>{A(2*j.current.clientWidth/3)},[]),g({getImage:()=>{const e=L.current.getImage(),t=document.createElement("canvas"),l=t.getContext("2d");return t.width=s,t.height=a,l.drawImage(e,0,0,t.width,t.height),new window.File([T(t.toDataURL())],C.name,{type:C.type})}});const D=()=>{K(L.current.getImage().toDataURL())},B=(0,f.useDebouncedCallback)(D,500);return(0,F.jsx)("div",{ref:j,children:(0,F.jsxs)(d.Row,{wrap:!1,align:"middle",children:[(0,F.jsx)(d.Col,{span:c?16:24,children:y&&(0,F.jsxs)(d.Space,{direction:"vertical",children:[(0,F.jsx)(u(),{...b,ref:L,image:C,scale:I,rotate:k,width:y-2*x,height:a*y/s-2*x*a/s,border:x,color:[0,0,0,.6],borderRadius:o*y/s,onImageReady:D,onImageChange:B}),(0,F.jsx)("div",{className:N,children:h(`${v.formatMessage({id:"PictureFormat"})}${p.map(e=>e.replace(/^\./,"")).join(" ")} ${v.formatMessage({id:"ImageSize"})}${v.formatMessage({id:"NotExceeding"},{size:m})}`,{accept:p,fileSize:m})}),(0,F.jsxs)(d.Row,{gutter:14,align:"middle",children:[(0,F.jsx)(d.Col,{children:(0,F.jsx)(d.Tooltip,{title:v.formatMessage({id:"Rotate"}),placement:"bottom",children:(0,F.jsx)(i.default,{type:"icon-xuanzhuan",onClick:()=>{O(e=>(e-90)%360)}})})}),(0,F.jsx)(d.Col,{children:(0,F.jsx)(d.Tooltip,{title:v.formatMessage({id:"ImageFull"}),placement:"bottom",children:(0,F.jsx)(i.default,{type:"icon-chongman",onClick:()=>{P(1)}})})}),(0,F.jsx)(d.Col,{flex:1,children:(0,F.jsx)(d.Slider,{tooltip:{placement:"bottom",formatter:()=>v.formatMessage({id:"Size"})},value:I,step:.05,min:.2,max:3,onChange:P})}),(0,F.jsx)(d.Col,{children:(0,F.jsx)(r.FI,{accept:p,onChange:e=>{e[0].size>1024*m*1024?d.message.error(v.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:m})):(O(0),P(1),w(e[0]))},children:v.formatMessage({id:"ReUpload"})})})]})]})}),c&&(0,F.jsx)(d.Col,{span:8,children:(0,F.jsx)("div",{className:S,children:(0,F.jsxs)(d.Space,{direction:"vertical",children:[(0,F.jsx)(d.Avatar,{src:E,shape:_,style:{width:y/2-36,height:(y/2-36)*a/s}}),(0,F.jsx)("div",{style:{textAlign:"center"},children:v.formatMessage({id:"Preview"})})]})})})]})})}),E=()=>{const e=(0,o.useModal)();return t=>{const{image:l,width:n,height:r,borderRadius:s,getApi:a,preview:o,fileSize:i,accept:d,renderTips:c,border:u,dropModalSize:m,...p}=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({...p,size:m,children:(0,F.jsx)(O,{preview:o,fileSize:i,accept:d,getApi:a,renderTips:c,width:n,height:r,shape:"circle"===t.shape&&t.width&&t.width===t.height?"circle":"square",borderRadius:s,image:l,border:u,scale:1,rotate:0})})}},K=(0,R.createWithIntl)({importMessages:w.A,moduleName:"FormInfo"})(e=>{var t;let{value:l,gender:r,fileSize:s=2,accept:o=[".jpg",".png",".jpeg"],openEditor:i=!0,apis:c,renderTips:u=e=>e,onChange:m,shape:p="circle",width:h=200,height:g=200,title:f=(0,F.jsx)(R.IntlProvider,{importMessages:w.A,moduleName:"FormInfo",children:(0,F.jsx)(R.FormattedMessage,{id:"Crop",moduleName:"FormInfo"})}),border:_=1,icon:x,dropModalSize:v="small",defaultAvatar:y=C.A,displayAvatar:A}=e;const[j,N]=(0,n.useState)(!1),{apis:S}=(0,a.usePreset)(),I=b()({},S,c),P=I.ossUpload||I.upload||(null===(t=I.file)||void 0===t?void 0:t.upload),T=(0,n.useRef)(null),O=E(),K=(0,R.useIntl)({moduleName:M});return(0,F.jsx)(k,{value:l,gender:r,accept:o,width:h,height:g,shape:p,icon:x,loading:j,defaultAvatar:y,displayAvatar:A,apis:I,onChange:e=>{if(e[0].size>1024*s*1024)return void d.message.error(K.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:s}));const t=e=>(N(!0),P({file:e}).then(e=>{let{data:t}=e;0===t.code?m(t.data):d.message.error(K.formatMessage({id:"UploadFailed"},{msg:t.msg?":"+t.msg:""}))}).finally(()=>{N(!1)}));i?O({image:e[0],width:h,height:g,title:f,shape:p,border:_,dropModalSize:v,getApi:e=>T.current=e,fileSize:s,accept:o,renderTips:u,onConfirm:()=>{t(T.current.getImage())}}):t(e[0])}})}),L=e=>I(e)(K);L.Field=K,L.useDropModal=E;const D=L},97056:(e,t,l)=>{l.d(t,{A:()=>p});var n=l(55199),r=l(64671),s=l(83136),a=l.n(s),o=l(47094),i=l(68532),d=l(41381),c=l(47458),u=l(55431),m=l(70579);const p=(0,c.createWithIntl)({moduleName:"FormInfo",importMessages:u.A})(e=>{let{className:t,...l}=e;const{formatMessage:s}=(0,c.useIntl)({moduleName:"FormInfo"});return(0,m.jsx)("div",{className:a()(t,o.A["table-list"]),children:(0,m.jsx)(i.TableList,{...l,className:a()(t,o.A["table-list"]),headerRender:(e,t)=>{let{width:l}=t;return(0,m.jsxs)(n.Row,{wrap:!1,className:o.A["table-list-header"],style:{"--col-width":l},children:[e,(0,m.jsx)(n.Col,{className:o.A["table-list-extra"]})]})},headerItemRender:(e,t)=>{let{id:l,isReq:r}=t;return(0,m.jsx)(n.Col,{className:a()({[o.A["is-req"]]:r}),children:e},l)},listRender:(e,t)=>{let{id:l,width:a,onRemove:i,allowRemove:d}=t;return(0,m.jsxs)(n.Row,{wrap:!1,style:{"--col-width":a},children:[e,(0,m.jsx)(n.Col,{className:o.A["table-list-extra"],children:(0,m.jsx)(n.Button,{type:"link",onClick:i,danger:!0,disabled:!d,children:(0,m.jsxs)("span",{children:[(0,m.jsx)(r.default,{type:"shanchu"}),s({id:"delText"})]})})})]},l)},itemRender:e=>(0,m.jsx)(n.Col,{className:o.A["table-list-field"],flex:1,children:e}),children:(e,t)=>{let{title:l,allowAdd:i,onAdd:c}=t;return(0,m.jsx)(d.default.Part,{title:l,className:a()(o.A["table-list-inner"]),extra:i&&(0,m.jsxs)(n.Typography.Link,{className:o.A["list-btn"],onClick:()=>c({isUnshift:!1}),children:[(0,m.jsx)(r.default,{type:"tianjia"}),s({id:"addText"})]}),children:e})}})})})},97949:(e,t,l)=>{l.d(t,{A:()=>m});var n=l(55199),r=l(47458),s=l(64671),a=l(47094),o=l(83136),i=l.n(o),d=l(55431),c=l(68532),u=l(70579);const m=(0,r.createWithIntl)({moduleName:"FormInfo",importMessages:d.A})(e=>{const{formatMessage:t}=(0,r.useIntl)({moduleName:"FormInfo"});return(0,u.jsx)(c.MultiField,{...e,itemRender:(e,t)=>{let{id:l,index:r,allowRemove:o,onRemove:d}=t;return(0,u.jsxs)("div",{className:i()(a.A["mult-field-item"],"mult-field-item",{[a.A["first-item"]]:0===r}),children:[e,(0,u.jsxs)("div",{className:i()("form-info-mult-option"),children:[(0,u.jsx)("div",{className:i()(a.A["react-form__field-label"],"react-form__field-label","mult-field-delete--label")}),(0,u.jsx)(n.Button,{icon:(0,u.jsx)(s.default,{type:"shanchu"}),onClick:d,disabled:!o})]})]},l)},children:(l,r)=>{let{allowAdd:o,onAdd:d}=r;return(0,u.jsxs)("div",{className:i()(a.A["mult-field"],"mult-field"),children:[l,o&&(0,u.jsx)("div",{className:i()("form-info-mult-add-btn"),children:(0,u.jsxs)(n.Button,{className:a.A["mult-field-add-btn"],type:"dashed",onClick:()=>d({isUnshift:!1}),children:[(0,u.jsx)(s.default,{type:"tianjia"}),t({id:"addSomeThing"},{label:e.label})]})})]})}})})}}]);
2
+ //# sourceMappingURL=254.238ab8af.chunk.js.map