@kne-components/components-core 0.4.22 → 0.4.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/asset-manifest.json +89 -89
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/{1996.2f2fbea2.chunk.css → 1996.27963203.chunk.css} +2 -2
- package/build/static/css/{1996.2f2fbea2.chunk.css.map → 1996.27963203.chunk.css.map} +1 -1
- package/build/static/css/2004.59f05d7e.chunk.css +2 -0
- package/build/static/css/{2004.0f210950.chunk.css.map → 2004.59f05d7e.chunk.css.map} +1 -1
- package/build/static/css/206.2155db50.chunk.css +2 -0
- package/build/static/css/{206.af8cfe29.chunk.css.map → 206.2155db50.chunk.css.map} +1 -1
- package/build/static/css/254.6c2f23fa.chunk.css +2 -0
- package/build/static/css/{254.e2c8944d.chunk.css.map → 254.6c2f23fa.chunk.css.map} +1 -1
- package/build/static/css/2628.c26968a8.chunk.css +2 -0
- package/build/static/css/{2628.dd5cbc65.chunk.css.map → 2628.c26968a8.chunk.css.map} +1 -1
- package/build/static/css/3404.014b7018.chunk.css +2 -0
- package/build/static/css/{3404.b7a4f15d.chunk.css.map → 3404.014b7018.chunk.css.map} +1 -1
- package/build/static/css/3652.2f634412.chunk.css +2 -0
- package/build/static/css/{3652.ab33b380.chunk.css.map → 3652.2f634412.chunk.css.map} +1 -1
- package/build/static/css/{3771.e5e1ce39.chunk.css → 3771.9245baca.chunk.css} +2 -2
- package/build/static/css/{3771.e5e1ce39.chunk.css.map → 3771.9245baca.chunk.css.map} +1 -1
- package/build/static/css/{3790.3ba5ef7b.chunk.css → 3790.ed902804.chunk.css} +2 -2
- package/build/static/css/{3790.3ba5ef7b.chunk.css.map → 3790.ed902804.chunk.css.map} +1 -1
- package/build/static/css/4244.fbecbe35.chunk.css +2 -0
- package/build/static/css/{4244.ae7d31b6.chunk.css.map → 4244.fbecbe35.chunk.css.map} +1 -1
- package/build/static/css/{4277.e5b9697b.chunk.css → 4277.a927d2fd.chunk.css} +2 -2
- package/build/static/css/{4277.e5b9697b.chunk.css.map → 4277.a927d2fd.chunk.css.map} +1 -1
- package/build/static/css/{4741.0f43ac70.chunk.css → 4741.8f169436.chunk.css} +2 -2
- package/build/static/css/{4741.0f43ac70.chunk.css.map → 4741.8f169436.chunk.css.map} +1 -1
- package/build/static/css/5195.c15336ca.chunk.css +2 -0
- package/build/static/css/{5195.cea77eec.chunk.css.map → 5195.c15336ca.chunk.css.map} +1 -1
- package/build/static/css/{6763.a52b459a.chunk.css → 6763.b323bbba.chunk.css} +2 -2
- package/build/static/css/{6763.a52b459a.chunk.css.map → 6763.b323bbba.chunk.css.map} +1 -1
- package/build/static/css/6980.eefa447e.chunk.css +12 -0
- package/build/static/css/{6980.f825e058.chunk.css.map → 6980.eefa447e.chunk.css.map} +1 -1
- package/build/static/css/7227.d8adf837.chunk.css +2 -0
- package/build/static/css/{7227.826403e5.chunk.css.map → 7227.d8adf837.chunk.css.map} +1 -1
- package/build/static/css/{760.1727f4a1.chunk.css → 760.04a3172f.chunk.css} +2 -2
- package/build/static/css/{760.1727f4a1.chunk.css.map → 760.04a3172f.chunk.css.map} +1 -1
- package/build/static/css/{8593.4c75de6f.chunk.css → 8593.81ac59ab.chunk.css} +2 -2
- package/build/static/css/{8593.4c75de6f.chunk.css.map → 8593.81ac59ab.chunk.css.map} +1 -1
- package/build/static/css/9556.29148c67.chunk.css +2 -0
- package/build/static/css/{9556.7a0499e8.chunk.css.map → 9556.29148c67.chunk.css.map} +1 -1
- package/build/static/css/9772.9cb04e07.chunk.css +2 -0
- package/build/static/css/{9772.806a63cb.chunk.css.map → 9772.9cb04e07.chunk.css.map} +1 -1
- package/build/static/js/{1353.b48f2b94.chunk.js → 1353.55725dc0.chunk.js} +3 -3
- package/build/static/js/1353.55725dc0.chunk.js.map +1 -0
- package/build/static/js/{196.5a15891f.chunk.js → 196.e26406d2.chunk.js} +1 -1
- package/build/static/js/1996.da23c813.chunk.js +2 -0
- package/build/static/js/{1996.e4b4b038.chunk.js.map → 1996.da23c813.chunk.js.map} +1 -1
- package/build/static/js/{2004.2b4cc68b.chunk.js → 2004.38e95df5.chunk.js} +3 -3
- package/build/static/js/{2004.2b4cc68b.chunk.js.map → 2004.38e95df5.chunk.js.map} +1 -1
- package/build/static/js/{206.3eb7453f.chunk.js → 206.20039cc6.chunk.js} +2 -2
- package/build/static/js/{206.3eb7453f.chunk.js.map → 206.20039cc6.chunk.js.map} +1 -1
- package/build/static/js/{254.9234ac66.chunk.js → 254.f0f0e3e2.chunk.js} +2 -2
- package/build/static/js/{254.9234ac66.chunk.js.map → 254.f0f0e3e2.chunk.js.map} +1 -1
- package/build/static/js/2628.d45b97f6.chunk.js +2 -0
- package/build/static/js/{2628.b4314a15.chunk.js.map → 2628.d45b97f6.chunk.js.map} +1 -1
- package/build/static/js/{3404.866eaec9.chunk.js → 3404.ed4b7e5a.chunk.js} +3 -3
- package/build/static/js/{3404.866eaec9.chunk.js.map → 3404.ed4b7e5a.chunk.js.map} +1 -1
- package/build/static/js/{3652.c477ee6f.chunk.js → 3652.0ca01241.chunk.js} +2 -2
- package/build/static/js/{3652.c477ee6f.chunk.js.map → 3652.0ca01241.chunk.js.map} +1 -1
- package/build/static/js/3771.5bd54088.chunk.js +2 -0
- package/build/static/js/{3771.4028e0af.chunk.js.map → 3771.5bd54088.chunk.js.map} +1 -1
- package/build/static/js/{3790.61445add.chunk.js → 3790.babe99e4.chunk.js} +2 -2
- package/build/static/js/{3790.61445add.chunk.js.map → 3790.babe99e4.chunk.js.map} +1 -1
- package/build/static/js/3856.3292951b.chunk.js +2 -0
- package/build/static/js/{3856.63e94062.chunk.js.map → 3856.3292951b.chunk.js.map} +1 -1
- package/build/static/js/{4244.65a942be.chunk.js → 4244.c3518c6f.chunk.js} +2 -2
- package/build/static/js/{4244.65a942be.chunk.js.map → 4244.c3518c6f.chunk.js.map} +1 -1
- package/build/static/js/{4277.dfa8352d.chunk.js → 4277.83804218.chunk.js} +2 -2
- package/build/static/js/{4277.dfa8352d.chunk.js.map → 4277.83804218.chunk.js.map} +1 -1
- package/build/static/js/4474.b7917100.chunk.js +2 -0
- package/build/static/js/{4474.26f92ce2.chunk.js.map → 4474.b7917100.chunk.js.map} +1 -1
- package/build/static/js/{5195.c07262c7.chunk.js → 5195.39b894ab.chunk.js} +2 -2
- package/build/static/js/{5195.c07262c7.chunk.js.map → 5195.39b894ab.chunk.js.map} +1 -1
- package/build/static/js/6763.a5732206.chunk.js +2 -0
- package/build/static/js/{6763.45bd29ac.chunk.js.map → 6763.a5732206.chunk.js.map} +1 -1
- package/build/static/js/{6980.bb2e9f1b.chunk.js → 6980.3ccbb9c7.chunk.js} +2 -2
- package/build/static/js/{6980.bb2e9f1b.chunk.js.map → 6980.3ccbb9c7.chunk.js.map} +1 -1
- package/build/static/js/{7227.1d97ec81.chunk.js → 7227.fe04b7f2.chunk.js} +3 -3
- package/build/static/js/{7227.1d97ec81.chunk.js.map → 7227.fe04b7f2.chunk.js.map} +1 -1
- package/build/static/js/{760.1cbe172b.chunk.js → 760.4c63bd8c.chunk.js} +2 -2
- package/build/static/js/{760.1cbe172b.chunk.js.map → 760.4c63bd8c.chunk.js.map} +1 -1
- package/build/static/js/8593.97fe05ef.chunk.js +2 -0
- package/build/static/js/{8593.bf3982c4.chunk.js.map → 8593.97fe05ef.chunk.js.map} +1 -1
- package/build/static/js/9556.990f75b0.chunk.js +3 -0
- package/build/static/js/{9556.64b40a95.chunk.js.map → 9556.990f75b0.chunk.js.map} +1 -1
- package/build/static/js/{9772.3a3f03d3.chunk.js → 9772.665180cb.chunk.js} +2 -2
- package/build/static/js/{9772.3a3f03d3.chunk.js.map → 9772.665180cb.chunk.js.map} +1 -1
- package/build/static/js/{main.d57d2b8b.js → main.20f823e8.js} +2 -2
- package/build/static/js/{main.d57d2b8b.js.map → main.20f823e8.js.map} +1 -1
- package/package.json +2 -2
- package/build/static/css/2004.0f210950.chunk.css +0 -2
- package/build/static/css/206.af8cfe29.chunk.css +0 -2
- package/build/static/css/254.e2c8944d.chunk.css +0 -2
- package/build/static/css/2628.dd5cbc65.chunk.css +0 -2
- package/build/static/css/3404.b7a4f15d.chunk.css +0 -2
- package/build/static/css/3652.ab33b380.chunk.css +0 -2
- package/build/static/css/4244.ae7d31b6.chunk.css +0 -2
- package/build/static/css/5195.cea77eec.chunk.css +0 -2
- package/build/static/css/6980.f825e058.chunk.css +0 -12
- package/build/static/css/7227.826403e5.chunk.css +0 -2
- package/build/static/css/9556.7a0499e8.chunk.css +0 -2
- package/build/static/css/9772.806a63cb.chunk.css +0 -2
- package/build/static/js/1353.b48f2b94.chunk.js.map +0 -1
- package/build/static/js/1996.e4b4b038.chunk.js +0 -2
- package/build/static/js/2628.b4314a15.chunk.js +0 -2
- package/build/static/js/3771.4028e0af.chunk.js +0 -2
- package/build/static/js/3856.63e94062.chunk.js +0 -2
- package/build/static/js/4474.26f92ce2.chunk.js +0 -2
- package/build/static/js/6763.45bd29ac.chunk.js +0 -2
- package/build/static/js/8593.bf3982c4.chunk.js +0 -2
- package/build/static/js/9556.64b40a95.chunk.js +0 -3
- /package/build/static/js/{1353.b48f2b94.chunk.js.LICENSE.txt → 1353.55725dc0.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2004.2b4cc68b.chunk.js.LICENSE.txt → 2004.38e95df5.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3404.866eaec9.chunk.js.LICENSE.txt → 3404.ed4b7e5a.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.1d97ec81.chunk.js.LICENSE.txt → 7227.fe04b7f2.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9556.64b40a95.chunk.js.LICENSE.txt → 9556.990f75b0.chunk.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2723,2908,4277],{17342:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(34581),l=i.n(n);i(46733);const s=l()},19449:(e,t,i)=>{var n=i(94710),l=i(32952),s=i(9096),a=i(54052);e.exports=function(e,t){return function(i,o){var r=a(i)?n:l,c=t?t():{};return r(i,e,s(o,2),c)}}},32520:(e,t,i)=>{var n=i(75816),l=i(9096),s=i(99140),a=Math.max;e.exports=function(e,t,i){var o=null==e?0:e.length;if(!o)return-1;var r=null==i?0:s(i);return r<0&&(r=a(o+r,0)),n(e,l(t,3),r)}},32952:(e,t,i)=>{var n=i(45652);e.exports=function(e,t,i,l){return n(e,function(e,n,s){t(l,e,i(e),s)}),l}},39835:(e,t,i)=>{var n=i(71775),l=i(19449),s=Object.prototype.hasOwnProperty,a=l(function(e,t,i){s.call(e,i)?e[i].push(t):n(e,i,[t])});e.exports=a},45652:(e,t,i)=>{var n=i(94664),l=i(76516)(n);e.exports=l},46733:()=>{},75816:e=>{e.exports=function(e,t,i,n){for(var l=e.length,s=i+(n?1:-1);n?s--:++s<l;)if(t(e[s],s,e))return s;return-1}},76516:(e,t,i)=>{var n=i(6571);e.exports=function(e,t){return function(i,l){if(null==i)return i;if(!n(i))return e(i,l);for(var s=i.length,a=t?s:-1,o=Object(i);(t?a--:++a<s)&&!1!==l(o[a],a,o););return i}}},82723:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n.Content});var n=i(93813)},85855:(e,t,i)=>{e.exports=i(96483)},89384:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>
|
|
2
|
-
//# sourceMappingURL=4277.
|
|
1
|
+
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2723,2908,4277],{17342:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var n=i(34581),l=i.n(n);i(46733);const s=l()},19449:(e,t,i)=>{var n=i(94710),l=i(32952),s=i(9096),a=i(54052);e.exports=function(e,t){return function(i,o){var r=a(i)?n:l,c=t?t():{};return r(i,e,s(o,2),c)}}},32520:(e,t,i)=>{var n=i(75816),l=i(9096),s=i(99140),a=Math.max;e.exports=function(e,t,i){var o=null==e?0:e.length;if(!o)return-1;var r=null==i?0:s(i);return r<0&&(r=a(o+r,0)),n(e,l(t,3),r)}},32952:(e,t,i)=>{var n=i(45652);e.exports=function(e,t,i,l){return n(e,function(e,n,s){t(l,e,i(e),s)}),l}},39835:(e,t,i)=>{var n=i(71775),l=i(19449),s=Object.prototype.hasOwnProperty,a=l(function(e,t,i){s.call(e,i)?e[i].push(t):n(e,i,[t])});e.exports=a},45652:(e,t,i)=>{var n=i(94664),l=i(76516)(n);e.exports=l},46733:()=>{},75816:e=>{e.exports=function(e,t,i,n){for(var l=e.length,s=i+(n?1:-1);n?s--:++s<l;)if(t(e[s],s,e))return s;return-1}},76516:(e,t,i)=>{var n=i(6571);e.exports=function(e,t){return function(i,l){if(null==i)return i;if(!n(i))return e(i,l);for(var s=i.length,a=t?s:-1,o=Object(i);(t?a--:++a<s)&&!1!==l(o[a],a,o););return i}}},82723:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>n.Content});var n=i(93813)},85855:(e,t,i)=>{e.exports=i(96483)},89384:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>C});var n=i(89379),l=i(55199),s=i(53984),a=i.n(s),o=i(83136),r=i.n(o),c=i(17342),d=i(63743),_=i(64671),u=i(82723);const v={notification:"style_notification__Vv-MM__M7iv4",list:"style_list__l8KOo__M7iv4",header:"style_header__3dcv8__M7iv4",item:"style_item__d92RS__M7iv4","item-box":"style_item-box__dd-Lk__M7iv4","index-1":"style_index-1__f97L0__M7iv4","index-2":"style_index-2__04vAw__M7iv4","item-box-main":"style_item-box-main__lnSak__M7iv4","item-title":"style_item-title__mArMd__M7iv4","level-high":"style_level-high__Uys7Y__M7iv4","level-middle":"style_level-middle__EewyC__M7iv4","level-low":"style_level-low__8kVyL__M7iv4","title-icon":"style_title-icon__1EoAG__M7iv4","item-subtitle":"style_item-subtitle__xeFJs__M7iv4","close-btn":"style_close-btn__7qpG3__M7iv4","is-loading":"style_is-loading__upVL+__M7iv4","item-content":"style_item-content__8MlsG__M7iv4","link-outer":"style_link-outer__kegyZ__M7iv4",link:"style_link__F2CO-__M7iv4","is-last-item":"style_is-last-item__MytRl__M7iv4"};var h=i(73884),m=i(39835),x=i.n(m),p=i(85855),f=i.n(p),g=i(96604),y=i.n(g),j=i(81014),b=i(32520),M=i.n(b),k=i(70579);const w=["high","middle","low"],N=e=>{let{level:t="low",title:i,groupLength:n,subtitle:s,content:a,link:o,id:c,children:h,className:m}=e;const{setGlobal:x}=(0,d.useGlobalContext)("notification"),{apis:p,ajax:f}=(0,d.usePreset)(),{isLoading:g,callback:b}=(0,j.useLoading)(async()=>{var e;const{data:t}=null!==p&&void 0!==p&&null!==(e=p.notification)&&void 0!==e&&e.read?await f(Object.assign({},p.notification.read,{data:{ids:[c]}})):{data:{code:0}};0===t.code&&x(e=>{const t=((null===e||void 0===e?void 0:e.list)||[]).slice(0),i=M()(t,e=>c===e.id);return i>-1&&t.splice(i,1),Object.assign({},e,{list:t})})});return(0,k.jsxs)("div",{className:r()(v.item,m),style:{"--group-length":Math.min(n,3)||1},children:[n&&n>1&&y()(1,Math.min(n,3)).reverse().map(e=>(0,k.jsx)("div",{className:r()(v["item-box"],v["index-".concat(e)])},e)),(0,k.jsxs)("div",{className:r()(v["item-box"],v["item-box-main"]),children:[(0,k.jsxs)("div",{className:r()(v["item-title"],v["level-".concat(t)]),children:[(0,k.jsx)(_.default,{className:v["title-icon"],type:"high"===t?"icon-tishi":"icon-daiwochuli"}),(0,k.jsx)(l.Typography.Text,{ellipsis:!0,children:i})]}),(0,k.jsxs)("div",{className:v["item-content"],children:[(0,k.jsxs)("div",{className:v["item-subtitle"],children:[(0,k.jsx)(l.Typography.Text,{ellipsis:!0,children:s||""}),(0,k.jsx)(_.default,{className:r()(v["close-btn"],{[v["is-loading"]]:g}),type:"icon-close-thin",onClick:()=>{g||c&&b()}})]}),Array.isArray(a)?(0,k.jsx)(u.default,{list:a,labelAlign:"auto",size:"small"}):h]}),o&&(0,k.jsx)("div",{className:v["link-outer"],children:(0,k.jsx)(j.default,{className:v.link,size:"small",onClick:async()=>{var e;const{data:t}=null!==p&&void 0!==p&&null!==(e=p.notification)&&void 0!==e&&e.read?await f(Object.assign({},p.notification.read,{data:{ids:[c]}})):{data:{code:0}};0===t.code&&window.open(o)},children:"\u67e5\u770b\u8be6\u60c5"})})]})]})},C=e=>{let{itemClassName:t}=e;const{global:i,setGlobal:s}=(0,d.useGlobalContext)("notification"),o=(0,h.useRef)(),{apis:_,ajax:u}=(0,d.usePreset)(),[m,p]=(0,h.useState)(32);(0,h.useEffect)(()=>{var e;o.current&&p(null===(e=o.current)||void 0===e?void 0:e.clientHeight)},[]);const{list:g,expand:y}=Object.assign({},{expand:!1,list:[]},i),b=(0,h.useMemo)(()=>{const e=x()(g,e=>e.level||"low");return w.map(t=>e[t]||[])},[g]);return 0===g.length?null:(0,k.jsxs)("div",{className:r()({},v.notification,"notification"),style:{"--head-option-height":"".concat(m,"px")},children:[(0,k.jsx)("div",{ref:o,children:(0,k.jsxs)(l.Row,{justify:"end",wrap:!1,className:v.header,gutter:8,children:[b.some(e=>e.length>1)&&(0,k.jsx)(l.Col,{children:(0,k.jsx)(l.Button,{size:"small",onClick:()=>{s(Object.assign({},i,{expand:!y}))},children:y?"\u5168\u90e8\u6298\u53e0":"\u5168\u90e8\u5c55\u5f00"})}),(0,k.jsx)(l.Col,{children:(0,k.jsx)(j.default,{type:"primary",size:"small",onClick:async()=>{var e;const{data:t}=null!==_&&void 0!==_&&null!==(e=_.notification)&&void 0!==e&&e.read?await u(Object.assign({},_.notification.read,{data:{ids:g.map(e=>e.id).filter(e=>!!e)}})):{data:{code:0}};0===t.code&&s(Object.assign({},i,{list:[]}))},children:"\u5168\u90e8\u6e05\u9664"})})]})}),(0,k.jsx)(c.A,{className:v.list,children:(0,k.jsx)(a(),{leaveReverse:!0,duration:200,interval:20,children:b.filter(e=>e&&e.length>0).map((e,i)=>{var l;if(y)return e.map((t,l)=>{var s;return t&&(0,k.jsx)("div",{children:(0,k.jsx)(N,(0,n.A)((0,n.A)({},Object.assign({},t)),{},{className:r()({[v["is-last-item"]]:+i+1===Math.min(null===(s=b.filter(e=>e&&e.length))||void 0===s?void 0:s.length,3)&&l===(null===e||void 0===e?void 0:e.length)-1})}))},"group-".concat(i,"-").concat(l))});const s=f()(e);return(0,k.jsx)("div",{children:(0,k.jsx)(N,(0,n.A)((0,n.A)({},Object.assign({},s)),{},{groupLength:e.length,className:r()({[v["is-last-item"]]:(null===b||void 0===b?void 0:b.length)&&+i+1===Math.min(null===(l=b.filter(e=>e&&e.length))||void 0===l?void 0:l.length,3)},t)}))},"group-".concat(i,"-0"))})})})]})}},94710:e=>{e.exports=function(e,t,i,n){for(var l=-1,s=null==e?0:e.length;++l<s;){var a=e[l];t(n,a,i(a),e)}return n}},96483:e=>{e.exports=function(e){return e&&e.length?e[0]:void 0}},99140:(e,t,i)=>{var n=i(37303);e.exports=function(e){var t=n(e),i=t%1;return t===t?i?t-i:t:0}}}]);
|
|
2
|
+
//# sourceMappingURL=4277.83804218.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/4277.dfa8352d.chunk.js","mappings":"+MAGA,QAAeA,G,kBCHf,IAAIC,EAAkBC,EAAQ,OAC1BC,EAAiBD,EAAQ,OACzBE,EAAeF,EAAQ,MACvBG,EAAUH,EAAQ,OAmBtBI,EAAOC,QATP,SAA0BC,EAAQC,GAChC,OAAO,SAASC,EAAYC,GAC1B,IAAIC,EAAOP,EAAQK,GAAcT,EAAkBE,EAC/CU,EAAcJ,EAAcA,IAAgB,CAAC,EAEjD,OAAOG,EAAKF,EAAYF,EAAQJ,EAAaO,EAAU,GAAIE,EAC7D,CACF,C,kBCpBA,IAAIC,EAAgBZ,EAAQ,OACxBE,EAAeF,EAAQ,MACvBa,EAAYb,EAAQ,OAGpBc,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,YC9J3D9H,EAAOC,QAXP,SAAyBY,EAAOX,EAAQG,EAAUE,GAIhD,IAHA,IAAIU,GAAS,EACTD,EAAkB,MAATH,EAAgB,EAAIA,EAAMG,SAE9BC,EAAQD,GAAQ,CACvB,IAAIG,EAAQN,EAAMI,GAClBf,EAAOK,EAAaY,EAAOd,EAASc,GAAQN,EAC9C,CACA,OAAON,CACT,C,YCGAP,EAAOC,QAJP,SAAcY,GACZ,OAAQA,GAASA,EAAMG,OAAUH,EAAM,QAAKuH,CAC9C,C,kBCpBA,IAAIC,EAAWzI,EAAQ,OAmCvBI,EAAOC,QAPP,SAAmBkB,GACjB,IAAIQ,EAAS0G,EAASlH,GAClBmH,EAAY3G,EAAS,EAEzB,OAAOA,IAAWA,EAAU2G,EAAY3G,EAAS2G,EAAY3G,EAAU,CACzE,C","sources":["common/components/SimpleBar.js","../node_modules/lodash/_createAggregator.js","../node_modules/lodash/findIndex.js","../node_modules/lodash/_baseAggregator.js","../node_modules/lodash/groupBy.js","../node_modules/lodash/_baseEach.js","../node_modules/lodash/_baseFindIndex.js","../node_modules/lodash/_createBaseEach.js","../node_modules/lodash/first.js","webpack://@kne-components/components-core/./src/components/Notification/style.module.scss?659e","components/Notification/index.js","../node_modules/lodash/_arrayAggregator.js","../node_modules/lodash/head.js","../node_modules/lodash/toInteger.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","var arrayAggregator = require('./_arrayAggregator'),\n baseAggregator = require('./_baseAggregator'),\n baseIteratee = require('./_baseIteratee'),\n isArray = require('./isArray');\n\n/**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\nfunction createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, baseIteratee(iteratee, 2), accumulator);\n };\n}\n\nmodule.exports = createAggregator;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIteratee = require('./_baseIteratee'),\n toInteger = require('./toInteger');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\nfunction findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, baseIteratee(predicate, 3), index);\n}\n\nmodule.exports = findIndex;\n","var baseEach = require('./_baseEach');\n\n/**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n}\n\nmodule.exports = baseAggregator;\n","var baseAssignValue = require('./_baseAssignValue'),\n createAggregator = require('./_createAggregator');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\nvar groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n});\n\nmodule.exports = groupBy;\n","var baseForOwn = require('./_baseForOwn'),\n createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n","var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nmodule.exports = createBaseEach;\n","module.exports = require('./head');\n","// extracted by mini-css-extract-plugin\nexport default {\"notification\":\"style_notification__Vv-MM__Pqx9x\",\"list\":\"style_list__l8KOo__Pqx9x\",\"header\":\"style_header__3dcv8__Pqx9x\",\"item\":\"style_item__d92RS__Pqx9x\",\"item-box\":\"style_item-box__dd-Lk__Pqx9x\",\"index-1\":\"style_index-1__f97L0__Pqx9x\",\"index-2\":\"style_index-2__04vAw__Pqx9x\",\"item-box-main\":\"style_item-box-main__lnSak__Pqx9x\",\"item-title\":\"style_item-title__mArMd__Pqx9x\",\"level-high\":\"style_level-high__Uys7Y__Pqx9x\",\"level-middle\":\"style_level-middle__EewyC__Pqx9x\",\"level-low\":\"style_level-low__8kVyL__Pqx9x\",\"title-icon\":\"style_title-icon__1EoAG__Pqx9x\",\"item-subtitle\":\"style_item-subtitle__xeFJs__Pqx9x\",\"close-btn\":\"style_close-btn__7qpG3__Pqx9x\",\"is-loading\":\"style_is-loading__upVL+__Pqx9x\",\"item-content\":\"style_item-content__8MlsG__Pqx9x\",\"link-outer\":\"style_link-outer__kegyZ__Pqx9x\",\"link\":\"style_link__F2CO-__Pqx9x\",\"is-last-item\":\"style_is-last-item__MytRl__Pqx9x\"};","import {Row, Col, Button, Typography} from \"antd\";\nimport QueueAnim from \"rc-queue-anim\";\nimport classnames from \"classnames\";\nimport SimpleBar from \"@common/components/SimpleBar\";\nimport {useGlobalContext, usePreset} from \"@components/Global\";\nimport Icon from \"@components/Icon\";\nimport Content from \"@components/Content\";\nimport style from \"./style.module.scss\";\nimport {useMemo, useRef, useState, useEffect} from \"react\";\nimport groupBy from \"lodash/groupBy\";\nimport first from \"lodash/first\";\nimport range from \"lodash/range\";\nimport LoadingButton, {useLoading} from \"@components/LoadingButton\";\nimport findIndex from \"lodash/findIndex\";\n\nconst LEVEL = [\"high\", \"middle\", \"low\"];\n\nconst NotificationItem = ({\n level = \"low\", title, groupLength, subtitle, content, link, id, children, className,\n }) => {\n const {setGlobal} = useGlobalContext(\"notification\");\n const {apis, ajax} = usePreset();\n const {isLoading, callback} = useLoading(async () => {\n const {data: resData} = apis?.notification?.read ? await ajax(Object.assign({}, apis.notification.read, {\n data: {ids: [id]},\n })) : {data: {code: 0}};\n\n if (resData.code === 0) {\n setGlobal((notification) => {\n const newList = (notification?.list || []).slice(0);\n const index = findIndex(newList, (item) => id === item.id);\n if (index > -1) {\n newList.splice(index, 1);\n }\n return Object.assign({}, notification, {list: newList});\n });\n }\n });\n return (<div\n className={classnames(style[\"item\"], className)}\n style={{\"--group-length\": Math.min(groupLength, 3) || 1}}\n >\n {groupLength && groupLength > 1 && range(1, Math.min(groupLength, 3))\n .reverse()\n .map((number) => (<div\n className={classnames(style[\"item-box\"], style[`index-${number}`])}\n key={number}\n />))}\n <div className={classnames(style[\"item-box\"], style[\"item-box-main\"])}>\n <div\n className={classnames(style[\"item-title\"], style[`level-${level}`])}\n >\n <Icon\n className={style[\"title-icon\"]}\n type={level === \"high\" ? \"icon-tishi\" : \"icon-daiwochuli\"}\n />\n <Typography.Text ellipsis>{title}</Typography.Text>\n </div>\n <div className={style[\"item-content\"]}>\n <div className={style[\"item-subtitle\"]}>\n <Typography.Text ellipsis>{subtitle || \"\"}</Typography.Text>\n <Icon\n className={classnames(style[\"close-btn\"], {\n [style[\"is-loading\"]]: isLoading,\n })}\n type=\"icon-close-thin\"\n onClick={() => {\n if (isLoading) {\n return;\n }\n\n if (!id) {\n return;\n }\n\n callback();\n }}\n />\n </div>\n {Array.isArray(content) ? (<Content list={content} labelAlign=\"auto\" size=\"small\"/>) : (children)}\n </div>\n {link && (<div className={style[\"link-outer\"]}>\n <LoadingButton\n className={style[\"link\"]}\n size=\"small\"\n onClick={async () => {\n const {data: resData} = apis?.notification?.read ? await ajax(Object.assign({}, apis.notification.read, {\n data: {ids: [id]},\n })) : {data: {code: 0}};\n if (resData.code === 0) {\n window.open(link);\n }\n }}\n >\n 查看详情\n </LoadingButton>\n </div>)}\n </div>\n </div>);\n};\n\nconst Notification = ({itemClassName}) => {\n const {global: notification, setGlobal} = useGlobalContext(\"notification\");\n const headOptionRef = useRef();\n const {apis, ajax} = usePreset();\n const [headOptionHeight, setHeadOptionHeight] = useState(32);\n\n useEffect(() => {\n headOptionRef.current && setHeadOptionHeight(headOptionRef.current?.clientHeight);\n }, []);\n\n const {list, expand} = Object.assign({}, {\n expand: false, list: [],\n }, notification);\n\n const groupList = useMemo(() => {\n const group = groupBy(list, (item) => item.level || \"low\");\n return LEVEL.map((name) => group[name] || []);\n }, [list]);\n\n if (list.length === 0) {\n return null;\n }\n\n return (<div\n className={classnames({}, style[\"notification\"], \"notification\")}\n style={{\n \"--head-option-height\": `${headOptionHeight}px`,\n }}\n >\n <div ref={headOptionRef}>\n <Row justify=\"end\" wrap={false} className={style[\"header\"]} gutter={8}>\n {groupList.some((item) => item.length > 1) && (<Col>\n <Button\n size=\"small\"\n onClick={() => {\n setGlobal(Object.assign({}, notification, {expand: !expand}));\n }}\n >\n {expand ? \"全部折叠\" : \"全部展开\"}\n </Button>\n </Col>)}\n <Col>\n <LoadingButton\n type=\"primary\"\n size=\"small\"\n onClick={async () => {\n const {data: resData} = apis?.notification?.read ? await ajax(Object.assign({}, apis.notification.read, {\n data: {\n ids: list.map((item) => item.id).filter((id) => !!id),\n },\n })) : {data: {code: 0}};\n if (resData.code === 0) {\n setGlobal(Object.assign({}, notification, {list: []}));\n }\n }}\n >\n 全部清除\n </LoadingButton>\n </Col>\n </Row>\n </div>\n <SimpleBar className={style[\"list\"]}>\n <QueueAnim leaveReverse duration={200} interval={20}>\n {groupList\n .filter((item) => item && item.length > 0)\n .map((item, groupKey) => {\n if (expand) {\n return item.map((notification, index) => notification && (\n <div key={`group-${groupKey}-${index}`}>\n <NotificationItem\n {...Object.assign({}, notification)}\n className={classnames({\n [style[\"is-last-item\"]]: +groupKey + 1 === Math.min(groupList.filter((item) => item && item.length)?.length, 3) && index === item?.length - 1,\n })}\n />\n </div>));\n }\n const firstItem = first(item);\n return (<div key={`group-${groupKey}-0`}>\n <NotificationItem\n {...Object.assign({}, firstItem)}\n groupLength={item.length}\n className={classnames({\n [style[\"is-last-item\"]]: groupList?.length && +groupKey + 1 === Math.min(groupList.filter((item) => item && item.length)?.length, 3),\n }, itemClassName)}\n />\n </div>);\n })}\n </QueueAnim>\n </SimpleBar>\n </div>);\n};\n\nexport default Notification;\n","/**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n}\n\nmodule.exports = arrayAggregator;\n","/**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\nfunction head(array) {\n return (array && array.length) ? array[0] : undefined;\n}\n\nmodule.exports = head;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n"],"names":["SimpleBar","arrayAggregator","require","baseAggregator","baseIteratee","isArray","module","exports","setter","initializer","collection","iteratee","func","accumulator","baseFindIndex","toInteger","nativeMax","Math","max","array","predicate","fromIndex","length","index","baseEach","value","key","baseAssignValue","createAggregator","hasOwnProperty","Object","prototype","groupBy","result","call","push","baseForOwn","createBaseEach","fromRight","isArrayLike","eachFunc","iterable","LEVEL","NotificationItem","_ref","level","title","groupLength","subtitle","content","link","id","children","className","setGlobal","useGlobalContext","apis","ajax","usePreset","isLoading","callback","useLoading","async","_apis$notification","data","resData","notification","read","assign","ids","code","newList","list","slice","findIndex","item","splice","_jsxs","classnames","style","min","range","reverse","map","number","_jsx","concat","Icon","type","Typography","Text","ellipsis","onClick","Array","Content","labelAlign","size","LoadingButton","_apis$notification2","window","open","_ref2","itemClassName","global","headOptionRef","useRef","headOptionHeight","setHeadOptionHeight","useState","useEffect","_headOptionRef$curren","current","clientHeight","expand","groupList","useMemo","group","name","ref","Row","justify","wrap","gutter","some","Col","Button","_apis$notification3","filter","QueueAnim","leaveReverse","duration","interval","groupKey","_groupList$filter2","_groupList$filter","_objectSpread","firstItem","first","undefined","toFinite","remainder"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"static/js/4277.83804218.chunk.js","mappings":"+MAGA,QAAeA,G,kBCHf,IAAIC,EAAkBC,EAAQ,OAC1BC,EAAiBD,EAAQ,OACzBE,EAAeF,EAAQ,MACvBG,EAAUH,EAAQ,OAmBtBI,EAAOC,QATP,SAA0BC,EAAQC,GAChC,OAAO,SAASC,EAAYC,GAC1B,IAAIC,EAAOP,EAAQK,GAAcT,EAAkBE,EAC/CU,EAAcJ,EAAcA,IAAgB,CAAC,EAEjD,OAAOG,EAAKF,EAAYF,EAAQJ,EAAaO,EAAU,GAAIE,EAC7D,CACF,C,kBCpBA,IAAIC,EAAgBZ,EAAQ,OACxBE,EAAeF,EAAQ,MACvBa,EAAYb,EAAQ,OAGpBc,EAAYC,KAAKC,IAiDrBZ,EAAOC,QAZP,SAAmBY,EAAOC,EAAWC,GACnC,IAAIC,EAAkB,MAATH,EAAgB,EAAIA,EAAMG,OACvC,IAAKA,EACH,OAAQ,EAEV,IAAIC,EAAqB,MAAbF,EAAoB,EAAIN,EAAUM,GAI9C,OAHIE,EAAQ,IACVA,EAAQP,EAAUM,EAASC,EAAO,IAE7BT,EAAcK,EAAOf,EAAagB,EAAW,GAAIG,EAC1D,C,kBCpDA,IAAIC,EAAWtB,EAAQ,OAoBvBI,EAAOC,QAPP,SAAwBG,EAAYF,EAAQG,EAAUE,GAIpD,OAHAW,EAASd,EAAY,SAASe,EAAOC,EAAKhB,GACxCF,EAAOK,EAAaY,EAAOd,EAASc,GAAQf,EAC9C,GACOG,CACT,C,kBClBA,IAAIc,EAAkBzB,EAAQ,OAC1B0B,EAAmB1B,EAAQ,OAM3B2B,EAHcC,OAAOC,UAGQF,eAyB7BG,EAAUJ,EAAiB,SAASK,EAAQR,EAAOC,GACjDG,EAAeK,KAAKD,EAAQP,GAC9BO,EAAOP,GAAKS,KAAKV,GAEjBE,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,QAAS,QAElJ,SAAAgE,OANa8C,EAAQ,KAAA9C,OAAI/D,MASvC,MAAMiH,EAAYC,IAAM9D,GACxB,OAAQU,EAAAA,EAAAA,KAAA,OAAAjC,UACJiC,EAAAA,EAAAA,KAAC1C,GAAgB4F,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACTzG,OAAOsC,OAAO,CAAC,EAAGoE,IAAU,IAChCzF,YAAa4B,EAAKrD,OAClB+B,UAAWyB,IAAW,CAClB,CAACC,EAAM,kBAA2B,OAATmC,QAAS,IAATA,OAAS,EAATA,EAAW5F,UAAW8G,EAAW,IAAMnH,KAAK+D,IAAmD,QAAhDqD,EAACnB,EAAUa,OAAQpD,GAASA,GAAQA,EAAKrD,eAAO,IAAA+G,OAAA,EAA/CA,EAAiD/G,OAAQ,IACnIgF,OACL,SAAAhB,OAPqB8C,EAAQ,gB,YC9J3D9H,EAAOC,QAXP,SAAyBY,EAAOX,EAAQG,EAAUE,GAIhD,IAHA,IAAIU,GAAS,EACTD,EAAkB,MAATH,EAAgB,EAAIA,EAAMG,SAE9BC,EAAQD,GAAQ,CACvB,IAAIG,EAAQN,EAAMI,GAClBf,EAAOK,EAAaY,EAAOd,EAASc,GAAQN,EAC9C,CACA,OAAON,CACT,C,YCGAP,EAAOC,QAJP,SAAcY,GACZ,OAAQA,GAASA,EAAMG,OAAUH,EAAM,QAAKuH,CAC9C,C,kBCpBA,IAAIC,EAAWzI,EAAQ,OAmCvBI,EAAOC,QAPP,SAAmBkB,GACjB,IAAIQ,EAAS0G,EAASlH,GAClBmH,EAAY3G,EAAS,EAEzB,OAAOA,IAAWA,EAAU2G,EAAY3G,EAAS2G,EAAY3G,EAAU,CACzE,C","sources":["common/components/SimpleBar.js","../node_modules/lodash/_createAggregator.js","../node_modules/lodash/findIndex.js","../node_modules/lodash/_baseAggregator.js","../node_modules/lodash/groupBy.js","../node_modules/lodash/_baseEach.js","../node_modules/lodash/_baseFindIndex.js","../node_modules/lodash/_createBaseEach.js","../node_modules/lodash/first.js","webpack://@kne-components/components-core/./src/components/Notification/style.module.scss?659e","components/Notification/index.js","../node_modules/lodash/_arrayAggregator.js","../node_modules/lodash/head.js","../node_modules/lodash/toInteger.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","var arrayAggregator = require('./_arrayAggregator'),\n baseAggregator = require('./_baseAggregator'),\n baseIteratee = require('./_baseIteratee'),\n isArray = require('./isArray');\n\n/**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\nfunction createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, baseIteratee(iteratee, 2), accumulator);\n };\n}\n\nmodule.exports = createAggregator;\n","var baseFindIndex = require('./_baseFindIndex'),\n baseIteratee = require('./_baseIteratee'),\n toInteger = require('./toInteger');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\nfunction findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, baseIteratee(predicate, 3), index);\n}\n\nmodule.exports = findIndex;\n","var baseEach = require('./_baseEach');\n\n/**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n}\n\nmodule.exports = baseAggregator;\n","var baseAssignValue = require('./_baseAssignValue'),\n createAggregator = require('./_createAggregator');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\nvar groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n});\n\nmodule.exports = groupBy;\n","var baseForOwn = require('./_baseForOwn'),\n createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n}\n\nmodule.exports = baseFindIndex;\n","var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\nmodule.exports = createBaseEach;\n","module.exports = require('./head');\n","// extracted by mini-css-extract-plugin\nexport default {\"notification\":\"style_notification__Vv-MM__M7iv4\",\"list\":\"style_list__l8KOo__M7iv4\",\"header\":\"style_header__3dcv8__M7iv4\",\"item\":\"style_item__d92RS__M7iv4\",\"item-box\":\"style_item-box__dd-Lk__M7iv4\",\"index-1\":\"style_index-1__f97L0__M7iv4\",\"index-2\":\"style_index-2__04vAw__M7iv4\",\"item-box-main\":\"style_item-box-main__lnSak__M7iv4\",\"item-title\":\"style_item-title__mArMd__M7iv4\",\"level-high\":\"style_level-high__Uys7Y__M7iv4\",\"level-middle\":\"style_level-middle__EewyC__M7iv4\",\"level-low\":\"style_level-low__8kVyL__M7iv4\",\"title-icon\":\"style_title-icon__1EoAG__M7iv4\",\"item-subtitle\":\"style_item-subtitle__xeFJs__M7iv4\",\"close-btn\":\"style_close-btn__7qpG3__M7iv4\",\"is-loading\":\"style_is-loading__upVL+__M7iv4\",\"item-content\":\"style_item-content__8MlsG__M7iv4\",\"link-outer\":\"style_link-outer__kegyZ__M7iv4\",\"link\":\"style_link__F2CO-__M7iv4\",\"is-last-item\":\"style_is-last-item__MytRl__M7iv4\"};","import {Row, Col, Button, Typography} from \"antd\";\nimport QueueAnim from \"rc-queue-anim\";\nimport classnames from \"classnames\";\nimport SimpleBar from \"@common/components/SimpleBar\";\nimport {useGlobalContext, usePreset} from \"@components/Global\";\nimport Icon from \"@components/Icon\";\nimport Content from \"@components/Content\";\nimport style from \"./style.module.scss\";\nimport {useMemo, useRef, useState, useEffect} from \"react\";\nimport groupBy from \"lodash/groupBy\";\nimport first from \"lodash/first\";\nimport range from \"lodash/range\";\nimport LoadingButton, {useLoading} from \"@components/LoadingButton\";\nimport findIndex from \"lodash/findIndex\";\n\nconst LEVEL = [\"high\", \"middle\", \"low\"];\n\nconst NotificationItem = ({\n level = \"low\", title, groupLength, subtitle, content, link, id, children, className,\n }) => {\n const {setGlobal} = useGlobalContext(\"notification\");\n const {apis, ajax} = usePreset();\n const {isLoading, callback} = useLoading(async () => {\n const {data: resData} = apis?.notification?.read ? await ajax(Object.assign({}, apis.notification.read, {\n data: {ids: [id]},\n })) : {data: {code: 0}};\n\n if (resData.code === 0) {\n setGlobal((notification) => {\n const newList = (notification?.list || []).slice(0);\n const index = findIndex(newList, (item) => id === item.id);\n if (index > -1) {\n newList.splice(index, 1);\n }\n return Object.assign({}, notification, {list: newList});\n });\n }\n });\n return (<div\n className={classnames(style[\"item\"], className)}\n style={{\"--group-length\": Math.min(groupLength, 3) || 1}}\n >\n {groupLength && groupLength > 1 && range(1, Math.min(groupLength, 3))\n .reverse()\n .map((number) => (<div\n className={classnames(style[\"item-box\"], style[`index-${number}`])}\n key={number}\n />))}\n <div className={classnames(style[\"item-box\"], style[\"item-box-main\"])}>\n <div\n className={classnames(style[\"item-title\"], style[`level-${level}`])}\n >\n <Icon\n className={style[\"title-icon\"]}\n type={level === \"high\" ? \"icon-tishi\" : \"icon-daiwochuli\"}\n />\n <Typography.Text ellipsis>{title}</Typography.Text>\n </div>\n <div className={style[\"item-content\"]}>\n <div className={style[\"item-subtitle\"]}>\n <Typography.Text ellipsis>{subtitle || \"\"}</Typography.Text>\n <Icon\n className={classnames(style[\"close-btn\"], {\n [style[\"is-loading\"]]: isLoading,\n })}\n type=\"icon-close-thin\"\n onClick={() => {\n if (isLoading) {\n return;\n }\n\n if (!id) {\n return;\n }\n\n callback();\n }}\n />\n </div>\n {Array.isArray(content) ? (<Content list={content} labelAlign=\"auto\" size=\"small\"/>) : (children)}\n </div>\n {link && (<div className={style[\"link-outer\"]}>\n <LoadingButton\n className={style[\"link\"]}\n size=\"small\"\n onClick={async () => {\n const {data: resData} = apis?.notification?.read ? await ajax(Object.assign({}, apis.notification.read, {\n data: {ids: [id]},\n })) : {data: {code: 0}};\n if (resData.code === 0) {\n window.open(link);\n }\n }}\n >\n 查看详情\n </LoadingButton>\n </div>)}\n </div>\n </div>);\n};\n\nconst Notification = ({itemClassName}) => {\n const {global: notification, setGlobal} = useGlobalContext(\"notification\");\n const headOptionRef = useRef();\n const {apis, ajax} = usePreset();\n const [headOptionHeight, setHeadOptionHeight] = useState(32);\n\n useEffect(() => {\n headOptionRef.current && setHeadOptionHeight(headOptionRef.current?.clientHeight);\n }, []);\n\n const {list, expand} = Object.assign({}, {\n expand: false, list: [],\n }, notification);\n\n const groupList = useMemo(() => {\n const group = groupBy(list, (item) => item.level || \"low\");\n return LEVEL.map((name) => group[name] || []);\n }, [list]);\n\n if (list.length === 0) {\n return null;\n }\n\n return (<div\n className={classnames({}, style[\"notification\"], \"notification\")}\n style={{\n \"--head-option-height\": `${headOptionHeight}px`,\n }}\n >\n <div ref={headOptionRef}>\n <Row justify=\"end\" wrap={false} className={style[\"header\"]} gutter={8}>\n {groupList.some((item) => item.length > 1) && (<Col>\n <Button\n size=\"small\"\n onClick={() => {\n setGlobal(Object.assign({}, notification, {expand: !expand}));\n }}\n >\n {expand ? \"全部折叠\" : \"全部展开\"}\n </Button>\n </Col>)}\n <Col>\n <LoadingButton\n type=\"primary\"\n size=\"small\"\n onClick={async () => {\n const {data: resData} = apis?.notification?.read ? await ajax(Object.assign({}, apis.notification.read, {\n data: {\n ids: list.map((item) => item.id).filter((id) => !!id),\n },\n })) : {data: {code: 0}};\n if (resData.code === 0) {\n setGlobal(Object.assign({}, notification, {list: []}));\n }\n }}\n >\n 全部清除\n </LoadingButton>\n </Col>\n </Row>\n </div>\n <SimpleBar className={style[\"list\"]}>\n <QueueAnim leaveReverse duration={200} interval={20}>\n {groupList\n .filter((item) => item && item.length > 0)\n .map((item, groupKey) => {\n if (expand) {\n return item.map((notification, index) => notification && (\n <div key={`group-${groupKey}-${index}`}>\n <NotificationItem\n {...Object.assign({}, notification)}\n className={classnames({\n [style[\"is-last-item\"]]: +groupKey + 1 === Math.min(groupList.filter((item) => item && item.length)?.length, 3) && index === item?.length - 1,\n })}\n />\n </div>));\n }\n const firstItem = first(item);\n return (<div key={`group-${groupKey}-0`}>\n <NotificationItem\n {...Object.assign({}, firstItem)}\n groupLength={item.length}\n className={classnames({\n [style[\"is-last-item\"]]: groupList?.length && +groupKey + 1 === Math.min(groupList.filter((item) => item && item.length)?.length, 3),\n }, itemClassName)}\n />\n </div>);\n })}\n </QueueAnim>\n </SimpleBar>\n </div>);\n};\n\nexport default Notification;\n","/**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\nfunction arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n}\n\nmodule.exports = arrayAggregator;\n","/**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\nfunction head(array) {\n return (array && array.length) ? array[0] : undefined;\n}\n\nmodule.exports = head;\n","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n"],"names":["SimpleBar","arrayAggregator","require","baseAggregator","baseIteratee","isArray","module","exports","setter","initializer","collection","iteratee","func","accumulator","baseFindIndex","toInteger","nativeMax","Math","max","array","predicate","fromIndex","length","index","baseEach","value","key","baseAssignValue","createAggregator","hasOwnProperty","Object","prototype","groupBy","result","call","push","baseForOwn","createBaseEach","fromRight","isArrayLike","eachFunc","iterable","LEVEL","NotificationItem","_ref","level","title","groupLength","subtitle","content","link","id","children","className","setGlobal","useGlobalContext","apis","ajax","usePreset","isLoading","callback","useLoading","async","_apis$notification","data","resData","notification","read","assign","ids","code","newList","list","slice","findIndex","item","splice","_jsxs","classnames","style","min","range","reverse","map","number","_jsx","concat","Icon","type","Typography","Text","ellipsis","onClick","Array","Content","labelAlign","size","LoadingButton","_apis$notification2","window","open","_ref2","itemClassName","global","headOptionRef","useRef","headOptionHeight","setHeadOptionHeight","useState","useEffect","_headOptionRef$curren","current","clientHeight","expand","groupList","useMemo","group","name","ref","Row","justify","wrap","gutter","some","Col","Button","_apis$notification3","filter","QueueAnim","leaveReverse","duration","interval","groupKey","_groupList$filter2","_groupList$filter","_objectSpread","firstItem","first","undefined","toFinite","remainder"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[330,4474],{330:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});var a=n(29871),s=n.n(a),l={};for(const i in a)"default"!==i&&(l[i]=()=>a[i]);n.d(t,l),s().Fetch=a.FlexBoxFetch;const r=s()},1904:(e,t,n)=>{n.d(t,{A:()=>o,N:()=>c});var a=n(98434),s=n(43856);const{useOnChange:l,useDecorator:r}=a.hooks,i=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(s.AddressSelectField);i.Field=s.AddressSelectField,i.AddressEnum=s.AddressSelectField.AddressEnum,i.createAddressApi=s.AddressSelectField.createAddressApi,i.withAddressApi=s.AddressSelectField.withAddressApi;const o=i,c=e=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label,inputPlaceholder:"\u8bf7\u8f93\u5165"+e.label},e))(s.AddressInputField);c.Field=s.AddressInputField},2196:(e,t,n)=>{n.d(t,{A:()=>h});var a=n(53986),s=n(55199),l=n(73884),r=n(41381),i=n(330),o=n(68532),c=n(47094),d=n(83136),u=n.n(d),m=n(70579);const p=["list","groupArgs","itemRender","column","gap","className","outer","children"],h=e=>{let{list:t=[],groupArgs:n,itemRender:d,column:h=2,gap:g,className:f,outer:x=(0,m.jsx)(r.default.Part,{}),children:_}=e,v=(0,a.A)(e,p);const A=!(Number.isInteger(h)&&h>0),{ref:j,column:y}=(0,i.useFlexBox)(A?h:{}),b=(e,a)=>(0,m.jsx)(o.FormInfo,{list:t,column:e,groupArgs:n,itemRender:(e,t)=>"function"===typeof d?d(e,t):(0,m.jsx)(s.Col,{span:t.span,children:e}),children:(e,t)=>(0,m.jsx)(s.Row,{gutter:[g||24,0],className:u()({[c.A["column-not-layout"]]:a}),children:"function"===typeof _?_(e,t):e})});return(0,l.cloneElement)(x,Object.assign({},v,{className:u()(f,c.A["form-info"])}),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{ref:j}),A?y?b(y.col):b(2,!0):b(h)]}))}},2842:(e,t,n)=>{n.d(t,{default:()=>s.a});n(2885);var a=n(22986),s=n.n(a);n.o(a,"PHONE_NUMBER_INPUT")&&n.d(t,{PHONE_NUMBER_INPUT:function(){return a.PHONE_NUMBER_INPUT}})},5995:(e,t,n)=>{n.d(t,{Ay:()=>p,Vl:()=>h,W6:()=>g});var a=n(53986),s=n(89379),l=n(3382),r=n(73025),i=n(55199),o=n(76995),c=n(47094),d=n(70579);const u=["classNames"],m=["modalProps"],p=e=>(0,d.jsx)(l.default,(0,s.A)({},(0,o.A)(Object.assign({},e,{className:c.A["form-modal"]})))),h=()=>{const e=(0,l.useModal)();return t=>e((0,o.A)(Object.assign({},t,{className:c.A["form-modal"]})))},g=e=>{let{classNames:t}=e,n=(0,a.A)(e,u);const l=h();if(!n.api){const{modalProps:e}=n,t=(0,a.A)(n,m);return(0,d.jsx)(i.Button,(0,s.A)((0,s.A)({},t),{},{onClick:()=>{l(e)}}))}return(0,d.jsx)(r.A,(0,s.A)((0,s.A)({},n),{},{modalFunc:l}))}},15209:(e,t,n)=>{n.d(t,{A:()=>h});var a=n(53986),s=n(89379),l=n(20454),r=n(55199),i=n(10986),o=n.n(i),c=n(13050),d=n(70579);const u=["remoteModules"],m=e=>{let t=Object.assign({},((0,l.A)(e),e));const[n,a]=o()(t);return(0,d.jsx)(r.Input,(0,s.A)((0,s.A)({},t),{},{value:n,onChange:e=>{a(e.target.value?e.target.value.toUpperCase():e.target.value,e)}}))},p=(0,c.createWithRemoteLoader)({modules:["FormInfo@formModule"]})(e=>{let{remoteModules:t}=e,n=(0,a.A)(e,u);const[s]=t,{hooks:l}=s,{useDecorator:r}=l;return r(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(n.label||"")},n))(m)});p.field=m;const h=p},15445:(e,t,n)=>{n.d(t,{A:()=>se,E:()=>le});var a=n(89379),s=n(53986),l=n(98434),r=n(30096),i=n(34643),o=n(1904),c=n(83230),d=n(55199),u=n(70579);const{useOnChange:m}=l.hooks,p=e=>(0,u.jsx)(d.ColorPicker,(0,a.A)((0,a.A)({},e),{},{onChange:t=>e.onChange(t.toHexString())})),h=e=>m(Object.assign({},e))(p);h.Field=h;const g=h;var f=n(81026),x=n(78756),_=n(92328),v=n(2842);const A=["checked","children"],{useOnChange:j,useCheckedToValue:y}=l.hooks,{withChecked:b}=l.hoc,N=b(e=>{let{checked:t,children:n=null}=e,l=(0,s.A)(e,A);return(0,u.jsxs)(d.Space,{children:[(0,u.jsx)(d.Switch,(0,a.A)({checked:t},l)),"function"===typeof n?n({checked:t}):n]})}),S=e=>{e=Object.assign({},{fieldName:"switch"},e);const t=y(e);return j(t)(N)};S.Field=d.Switch;const M=S;var w=n(89099),C=n(96339),F=n(36972),P=n(15209),I=n(74529),T=n.n(I),k=n(73884),O=n(47458),L=n(33097),R=n.n(L),E=n(21079),D=n(46237),z=n(56259),U=n(29556),B=n(64671),W=n(83136),V=n.n(W),q=n(47094);const H=["forwardedRef","label","placeholder"],G=["placeholder","label"],Q=["placeholder","label"],X=["placeholder","label","soFarText"],Y=e=>t=>{const n=T()(...e)(e=>{let{forwardedRef:n,label:l,placeholder:r}=e,i=(0,s.A)(e,H);return(0,u.jsx)(t,(0,a.A)((0,a.A)({},i),{},{label:l,placeholder:r,labelRender:()=>i.tips?(0,u.jsxs)(d.Space,{children:[l,(0,u.jsx)(U.default,{content:i.tips,children:(0,u.jsx)("span",{className:V()(q.A["field-tips"],{[q.A["label-hidden"]]:i.labelHidden}),children:(0,u.jsx)(B.default,{type:"icon-xinxi-miaobian"})})})]}):l,ref:n}))}),l=(0,k.forwardRef)((e,t)=>(0,u.jsx)(n,(0,a.A)((0,a.A)({},e),{},{forwardedRef:t})));return Object.keys(t).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(e=>{l[e]=t[e]}),l},J=e=>t=>{let{placeholder:n,label:l}=t,r=(0,s.A)(t,G);return(0,u.jsx)(O.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:l},children:t=>(0,u.jsx)(e,(0,a.A)((0,a.A)({},r),{},{label:l,placeholder:n||t}))})},K=e=>t=>{let{placeholder:n,label:l}=t,r=(0,s.A)(t,Q);return(0,u.jsx)(O.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:l},children:t=>(0,u.jsx)(e,(0,a.A)((0,a.A)({},r),{},{label:l,placeholder:n||t}))})},$=e=>t=>{const n=(0,l.useGroup)(),s=R()(n,"name"),r=(0,E.get)(n,"index"),i=(0,D.oc)();return i&&Array.isArray(i)&&i.length>0?i.map(n=>{if("string"===typeof n)return(0,k.createElement)(e,(0,a.A)((0,a.A)({},t),{},{key:n}));const{name:l,label:i,options:o}=n,c=R()(o,"ignore",[]),d=R()(o,"disabled",[]),u=R()(o,"fields",[]),m=e=>t.name===e.name&&!(e.hasOwnProperty("groupName")&&e.groupName!==s)&&!(e.hasOwnProperty("groupIndex")&&e.groupIndex!==r);if(c.length>0&&c.find(m))return null;if(u.length>0&&!u.find(m))return null;let p=Object.assign({},t,{name:R()(o,"nameTransform",(e,t)=>"".concat(e).concat(t))(t.name,l),label:R()(o,"labelTransform",(e,t)=>e&&"".concat(e).concat(t))(t.label,i)});return d.length>0&&d.find(m)&&(p.disabled=!0,p.rule=""),(0,k.createElement)(e,(0,a.A)((0,a.A)({},p),{},{key:l}))}):(0,u.jsx)(e,(0,a.A)({},t))},Z=Y([$,J])(l.Input),ee=Y([$,J])(l.InputNumber);Z.Password=Y([$,J])(l.Input.Password);const te=Y([$,K])(l.DatePicker);te.MonthPicker=Y([$,K])(l.DatePicker.MonthPicker),te.RangePicker=Y([$,K])(l.DatePicker.RangePicker),te.WeekPicker=Y([$,K])(l.DatePicker.WeekPicker);const ne=Y([$,K])(l.TimePicker);ne.RangePicker=Y([$,K])(l.TimePicker.RangePicker);const ae=Y([$])(e=>{let{placeholder:t,label:n,soFarText:r}=e,i=(0,s.A)(e,X);const{formatMessage:o}=(0,O.useIntl)({moduleName:"FormInfo"});return(0,u.jsx)(l.DatePickerToday,(0,a.A)((0,a.A)({},i),{},{label:n,placeholder:[o({id:"startDate"}),o({id:"endDate"})],soFarText:r||o({id:"soFarText"})}))}),se={Input:Z,Checkbox:l.Checkbox,Password:Z.Password,InputNumber:ee,DatePicker:te,MonthPicker:te.MonthPicker,WeekPicker:te.WeekPicker,DateRangePicker:te.RangePicker,TimeRangePicker:ne.RangePicker,TimePicker:ne,DatePickerToday:ae,RadioGroup:Y([$])(l.RadioGroup),CheckboxGroup:Y([$])(l.CheckboxGroup),Rate:Y([$])(l.Rate),Switch:Y([$])(M),Slider:Y([$])(l.Slider),SalaryInput:Y([$,J])(F.A),TypeDateRangePicker:Y([$])(z.A),MoneyInput:Y([$,J])(_.A),PhoneNumber:Y([$,J])(v.default),Upload:Y([$])(w.A),Avatar:Y([$])(C.A),FunctionSelect:Y([$,K])(f.A),IndustrySelect:Y([$,K])(x.A),Cascader:Y([$,K])(c.A),ColorPicker:Y([$,K])(g),AddressSelect:Y([$,K])(o.A),AddressInput:Y([$,K])(o.N),TreeSelect:Y([$,K])(l.TreeSelect),ReactInputNumber:Y([$,J])(l.InputNumber),InputUpperCase:Y([$,J])(P.A),Select:Y([$,K])(l.Select),TextArea:Y([$,J])(l.TextArea),AdvancedSelect:Y([$,K])(r.Ay),SuperSelect:Y([$,K])(i.Ay),SuperSelectTableList:Y([$,K])(i.eM),SuperSelectUser:Y([$,K])(i.Pg),SuperSelectTree:Y([$,K])(i.kx)},le={createWithFieldDecorator:Y,withInputDefaultPlaceholder:J,withSelectDefaultPlaceholder:K,withLang:$}},18936:(e,t,n)=>{n.d(t,{A:()=>U});var a=n(89379),s=n(53986);const l={"ant-tag":"style_ant-tag__7ct2q__M7iv4",overlay:"style_overlay__CXfU5__M7iv4",input:"style_input__+OpvV__M7iv4","is-disabled":"style_is-disabled__uX4qq__M7iv4","input-icon":"style_input-icon__E3NjK__M7iv4",large:"style_large__vMozz__M7iv4",small:"style_small__ubqQ+__M7iv4","input-inner":"style_input-inner__sY-6k__M7iv4","input-custom":"style_input-custom__Kxq3n__M7iv4","display-content":"style_display-content__qA1jn__M7iv4","overlay-footer-extra":"style_overlay-footer-extra__yCzWX__M7iv4","selected-tag":"style_selected-tag__BZsMM__M7iv4","selected-tag-list":"style_selected-tag-list__As0ho__M7iv4","selected-tag-inner":"style_selected-tag-inner__2NH59__M7iv4","text-inner":"style_text-inner__Bq2Ji__M7iv4",placeholder:"style_placeholder__odotY__M7iv4","is-modal":"style_is-modal__4cj8L__M7iv4","overlay-content":"style_overlay-content__kpGRn__M7iv4"};var r=n(74981);const{context:i,useContext:o,Provider:c,Consumer:d}=(0,r.A)();var u=n(73884),m=n(10986),p=n.n(m),h=n(87558),g=n(33097),f=n.n(g),x=n(55199),_=n(83136),v=n.n(_),A=n(3382),j=n(64671),y=n(79686),b=n.n(y),N=n(41740),S=n.n(N),M=n(74065),w=n.n(M),C=n(17342),F=n(70579);const P=["value","onChange","extra","showSelectedTag","renderSelectedContent","children"],I=["value","setValue","children","renderSelectedContent","showSelectedTag","placement","inputContent","single","extra","overlayWidth","wrapClassName"],T=["setFetchApi","wrapClassName"],k=["api","className","displayItems","wrapClassName"],O=e=>{let{maxLength:t,single:n,setValue:a,value:s,message:l}=e;return e=>a(!n&&Number.isInteger(t)&&t>0&&e.length>t?(l("\u6700\u591a\u9009\u62e9".concat(t,"\u4e2a")),s):e)},L=e=>{let{single:t,value:n,mapping:a,onClose:s}=e;return n&&Array.isArray(n)&&0!==n.length?t?(0,F.jsx)("span",{className:l["text-inner"],children:f()(a.get(n[0]),"label")||n[0]}):n.map(e=>{const t=a.get(e);return(0,F.jsx)(x.Tag,{className:l["display-tag"],closable:!0,onClose:n=>{n.preventDefault(),s(e,t)},children:(0,F.jsx)("span",{className:l["tag-inner"],children:f()(t,"label")||e})},e)}):null},R=(0,u.forwardRef)((e,t)=>{let{value:n,onChange:r,extra:i,showSelectedTag:o,renderSelectedContent:c,children:d}=e,m=(0,s.A)(e,P);const[p,h]=(0,u.useState)(n),g=(0,u.useRef)(n);g.current=n;const[f,_]=(0,u.useState)(!1),{message:v}=x.App.useApp(),j=O({maxLength:m.maxLength,single:m.single,setValue:h,value:p,message:v.error});return(0,u.useEffect)(()=>{f&&h(g.current)},[f]),(0,u.useImperativeHandle)(t,()=>({modalOpen:()=>{_(!0)},close:()=>{_(!1)}})),(0,F.jsx)(A.default,(0,a.A)((0,a.A)({},m),{},{open:f,onConfirm:()=>{r(p)},onClose:()=>{_(!1)},footer:(o||i)&&(0,F.jsxs)(x.Space,{direction:"vertical",className:l["overlay-footer"],children:[i&&(0,F.jsx)("div",{className:l["overlay-footer-extra"],children:i}),o&&c({value:p,setValue:j})]}),children:"function"===typeof d?d({value:p,setValue:j}):d}))}),E=(0,u.forwardRef)((e,t)=>{let{value:n,setValue:r,children:i,renderSelectedContent:o,showSelectedTag:c,placement:d,inputContent:m,single:p,extra:h,overlayWidth:g,wrapClassName:f}=e,_=(0,s.A)(e,I);const[v,A]=(0,u.useState)(!1);return(0,u.useImperativeHandle)(t,()=>({close:()=>{A(!1)}}),[]),(0,F.jsx)(x.Popover,(0,a.A)((0,a.A)({},_),{},{open:v,onOpenChange:A,overlayClassName:l.overlay,arrow:!1,content:(0,F.jsxs)("div",{style:g?{"--overlay-width":g}:{},className:l["overlay-content"],onClick:e=>{e.stopPropagation()},children:[(0,F.jsx)("div",{className:l["overlay-inner"],children:"function"===typeof i?i({value:n,setValue:e=>{(!p||n[0]!==e[0])&&r(e),p&&A(!1)}}):i}),(c||h)&&(0,F.jsxs)("div",{className:l["overlay-footer"],children:[h&&(0,F.jsx)("div",{className:l["overlay-footer-extra"],children:h}),c&&o({value:n,setValue:r})]})]}),trigger:"click",placement:d,children:(0,F.jsx)("div",{className:l["input-inner"],children:m})}))}),D=(0,h.withFetch)(e=>{let{setFetchApi:t,wrapClassName:n}=e,a=(0,s.A)(e,T);const[r,i]=(0,u.useState)(!1),c=(0,u.useRef)(null),d=(0,u.useRef)(null),m=o(),{valueState:p,mapping:h,props:g}=m,[f,_]=p,{single:A,placement:y,getPopupContainer:b,placeholder:N,isPopup:S,disabled:M,showSelectedTag:w,extra:P,inputContent:I}=g,k=(0,u.useRef)(a);k.current=a,(0,u.useEffect)(()=>{t(Object.assign({},k.current,{data:a.data,isComplete:a.isComplete}))},[a.data,t,a.isComplete]);const O=L({single:A,value:f,mapping:h,onClose:e=>{_(t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n})}}),D=e=>{let{value:t,setValue:n}=e;return(0,F.jsxs)(x.Space,{className:l["selected-tag"],align:"center",wrap:!0,children:[(0,F.jsxs)("div",{children:["\u5df2\u9009",!g.single&&Number.isInteger(g.maxLength)&&g.maxLength>0?"(".concat(t.length,"/").concat(g.maxLength,")"):"",":"]}),(0,F.jsx)(C.A,{className:l["selected-tag-list"],children:(0,F.jsx)("div",{className:l["selected-tag-inner"],children:L({value:t,mapping:h,onClose:e=>{n(t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n})}})})})]})},z=I?I(m):(0,F.jsxs)(x.Space,{className:l["display-content"],onMouseOver:()=>{i(!0)},onMouseOut:()=>{i(!1)},children:[(0,F.jsx)("div",{children:O||(0,F.jsx)("span",{className:l.placeholder,children:N})}),r&&f&&f.length>0&&!M?(0,F.jsx)(j.default,{className:v()(l.close,l["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),_([])}}):(0,F.jsx)(j.default,{className:v()(l["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return S?(0,F.jsx)(E,{ref:d,overlayWidth:g.overlayWidth,value:f,setValue:_,single:A,inputContent:z,extra:"function"===typeof P?P({close:()=>d.current.close(),context:m}):P,renderSelectedContent:D,showSelectedTag:w,trigger:"click",placement:y,getPopupContainer:b,children:g.children}):(0,F.jsxs)("div",{className:l["input-inner"],onClick:()=>{c.current.modalOpen()},children:[(0,F.jsx)(R,{size:g.modalSize,ref:c,single:g.single,maxLength:g.maxLength,disabledScroller:!0,wrapClassName:v()(l.overlay,l["is-modal"],n),title:g.placeholder,value:f,onChange:_,extra:"function"===typeof P?P({close:()=>c.current.close(),context:m}):P,showSelectedTag:w,renderSelectedContent:D,children:g.children}),z]})}),z=e=>{let{api:t,className:n,displayItems:r,wrapClassName:i}=e,o=(0,s.A)(e,k);const[d,m]=(0,u.useState)(""),[h,g]=(0,u.useState)(new Map(r.map(e=>[e.value,e]))),[_,A]=(0,u.useState)({}),{message:j}=x.App.useApp(),y=e=>{const t=e.filter(e=>h.get(e.value)!==e);0!==t.length&&g(e=>{const n=S()(e);return t.forEach(e=>{n.set(e.value,e)}),n})},N=e=>((e,t,n)=>"all"!==n?e:(t(e),e.map(e=>e.value)))(o.single?b()(e)?[]:[e]:e||[],y,o.valueType),[M,C]=p()(Object.assign({},o,{onChange:e=>{const t=((e,t,n)=>"all"!==n?e:e.map(e=>t.get(e)))(e,h,o.valueType);o.onChange&&o.onChange(o.single?w()(t):t)}},"value"in o?{value:N(o.value)}:{defaultValue:N(o.defaultValue)})),P=O({maxLength:o.maxLength,single:o.single,setValue:C,value:M,message:j.error});return(0,F.jsx)(c,{value:{mapping:h,searchText:d,setSearchText:m,appendMapping:y,setItems:e=>{_.setData(e),y(f()(o.dataFormat(e),"list",[]))},fetchApi:_,valueState:[M,P],props:o},children:(0,F.jsx)("div",{className:v()(l["input".concat(o.inputContent&&"function"===typeof o.inputContent?"-custom":"")],n),children:(0,F.jsx)(D,(0,a.A)((0,a.A)({},t),{},{wrapClassName:i,loading:null,setFetchApi:A,onRequestSuccess:e=>{y(f()(o.dataFormat(e),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}}))})})};z.defaultProps={placeholder:"\u8bf7\u9009\u62e9",displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",getPopupContainer:null,showSelectedTag:!0},z.useContext=o;const U=z},19343:(e,t,n)=>{n.r(t),n.d(t,{Download:()=>p,FileButton:()=>w,FileLink:()=>C,List:()=>N,OptionButtons:()=>b,PrintButton:()=>i.PrintButton,default:()=>o(),download:()=>i.download,downloadBlobFile:()=>i.downloadBlobFile,useDownload:()=>i.useDownload,useFileModal:()=>F});var a=n(89379),s=n(53986),l=(n(64674),n(96418)),r=n.n(l),i=n(36125),o=n.n(i),c=n(3382),d=n(83136),u=n.n(d),m=n(70579);i.Download.useDownload=i.useDownload,i.Download.downloadBlobFile=i.downloadBlobFile;const p=i.Download;var h=n(26304),g=n.n(h),f=n(74065),x=n.n(f),_=n(96252);const v=["apis"],A=["onCancel"],j=["onCancel"],y=e=>{let{apis:t}=e;const n=(0,_.useFormModal)();return"function"===typeof(null===t||void 0===t?void 0:t.onEditModalShow)?t.onEditModalShow:(e,t)=>{const a=n({size:"small",title:"\u4fee\u6539\u6587\u4ef6\u540d\u79f0",formProps:{data:{name:g()(e.filename.split(".")).join(".")},onSubmit:async n=>{!1!==((null===t||void 0===t?void 0:t.onEdit)&&await(null===t||void 0===t?void 0:t.onEdit({formData:Object.assign({},n,{name:"".concat(n.name,".").concat(x()(e.filename.split(".")))}),item:e})))&&a.close()}},children:(0,m.jsx)(_.default,{column:1,list:[(0,m.jsx)(_.Input,{name:"name",label:"\u6587\u4ef6\u540d\u79f0",rule:"REQ LEN-0-100"})]})})}},b=e=>{var t;const n=y({apis:e.apis});return(0,m.jsx)(i.FileListOptionButtons,(0,a.A)((0,a.A)({},e),{},{onEdit:t=>n(t,e.apis),onDelete:null===(t=e.apis)||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof e.renderModal?e.renderModal:e=>{let{onCancel:t}=e,n=(0,s.A)(e,j);return(0,m.jsx)(c.default,(0,a.A)((0,a.A)({},Object.assign({},n)),{},{onClose:t}))}}))},N=e=>{let{apis:t}=e,n=(0,s.A)(e,v);const l=y({apis:t});return(0,m.jsx)(i.FileList,(0,a.A)((0,a.A)({},n),{},{apis:t,onEdit:e=>l(e,t),onDelete:null===t||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof n.renderModal?n.renderModal:e=>{let{onCancel:t}=e,n=(0,s.A)(e,A);return(0,m.jsx)(c.default,(0,a.A)((0,a.A)({},Object.assign({},n)),{},{onClose:t}))}}))},S=["onCancel"],M=["className"],w=e=>(0,m.jsx)(i.FileButton,(0,a.A)({},Object.assign({},e,{modalProps:{renderModal:e=>{let{onCancel:t}=e,n=(0,s.A)(e,S);return(0,m.jsx)(c.default,(0,a.A)((0,a.A)({},Object.assign({},n)),{},{onClose:t}))}}}))),C=e=>{const t=Object.assign({},e),{className:n}=t,l=(0,s.A)(t,M);return(0,m.jsx)(w,(0,a.A)((0,a.A)({},l),{},{className:u()(n,"btn-no-padding"),type:"link",children:l.children||l.filename||l.originName}))},F=e=>{const{title:t,children:n,footer:a}=(0,i.useFileModalProps)(Object.assign({},e)),s=(0,c.useModal)();return r()(()=>s({title:t,children:n,footer:a}))}},24474:(e,t,n)=>{n.r(t),n.d(t,{DragArea:()=>Z,DragAreaOuter:()=>K,DragButton:()=>Y,FileUpload:()=>ie,Title:()=>D,UploadButton:()=>J,UploadTips:()=>$,default:()=>ae});var a=n(89379),s=n(73884),l=n(33097),r=n.n(l),i=n(55199);const o="style_file-list-outer__wPhbb__M7iv4",c="style_file-list-title__zXM5r__M7iv4",d="style_container__P4RaF__M7iv4",u="style_file-preview-inner__cvE72__M7iv4",m="style_file-preview__M-Asq__M7iv4",p="style_drag-area__Q+lm7__M7iv4",h="style_upload-drag-close__u5o8W__M7iv4",g="style_upload-drag-tips__z7puZ__M7iv4",f="style_upload-drag-icon__sGGoS__M7iv4",x="style_upload-drag-title__9Afmb__M7iv4",_="style_upload-drag-text__o38vS__M7iv4",v="style_title-group__8IJkS__M7iv4",A="style_upload-btn__Q+Jxn__M7iv4",j="style_total-count__z1fyd__M7iv4",y="style_file-select__mHqyI__M7iv4",b="style_file-name__QkvMn__M7iv4",N="style_file-select-info__fOLiM__M7iv4",S="style_file-select-option__AbDrD__M7iv4";var M=n(75087),w=n.n(M),C=n(74065),F=n.n(C),P=n(57469),I=n.n(P),T=n(64671),k=n(19343),O=n(47458),L=n(83136),R=n.n(L),E=n(70579);const D=e=>{let{currentTab:t,setCurrentTab:n,previewMap:a,previewList:s,getPermission:l,currentPreviewFileId:r,setCurrentPreviewFileId:o,itemApis:d,children:u,maxWidth:m=260,getPopupContainer:p}=e;return(0,E.jsx)("div",{className:c,children:(0,E.jsxs)(i.Row,{align:"middle",justify:"space-between",wrap:!1,children:[(0,E.jsx)(i.Col,{children:(0,E.jsxs)(i.Space,{className:R()(v,"core-file-list-title-group"),size:4,children:[(0,E.jsx)(i.Segmented,{value:t,onChange:n,options:[{label:(0,E.jsxs)(i.Space,{size:4,children:[(0,E.jsx)(T.default,{type:"icon-shitu-liebiao"}),(0,E.jsx)(O.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,E.jsxs)(i.Space,{size:4,children:[(0,E.jsx)(T.default,{type:"icon-shitu-yulan"}),(0,E.jsx)(O.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&r&&a.get(r)&&(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(i.Select,{className:y,variant:"borderless",popupMatchSelectWidth:!1,value:r,onChange:o,getPopupContainer:p,children:s.map(e=>{let{filename:t,userName:n,date:a,id:s}=e;return(0,E.jsx)(i.Select.Option,{className:S,value:s,children:(0,E.jsxs)(i.Space,{direction:"vertical",children:[(0,E.jsxs)(i.Space,{size:4,align:"start",children:[(0,E.jsx)(w(),{type:F()(t.split(".")),size:14}),(0,E.jsx)(i.Typography.Text,{className:b,ellipsis:!0,style:{"--max-width":"".concat(m,"px")},children:t})]}),n||a?(0,E.jsxs)(i.Space,{className:N,size:24,children:[(0,E.jsxs)("div",{children:[(0,E.jsx)(O.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",n]}),(0,E.jsxs)("div",{children:[(0,E.jsx)(O.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",a&&I()(a).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},s)})}),(0,E.jsx)(k.OptionButtons,{hasPreview:!1,getPermission:l,item:a.get(r),apis:d}),(0,E.jsx)("div",{className:j,children:(0,E.jsx)(O.FormattedMessage,{id:"totalCount",values:{count:s.length},moduleName:"FileList"})})]})]})}),(0,E.jsx)(i.Col,{children:u})]})})};var z=n(53986);const U=e=>({"en-US":()=>n.e(3333).then(n.bind(n,63333)),"zh-CN":()=>n.e(8795).then(n.bind(n,48795))}[e]());var B=n(70720),W=n.n(B);const V=(0,s.createContext)({}),{Provider:q}=V,H=()=>(0,s.useContext)(V);var G=n(36125),Q=n(81348);const X=["children"],Y=e=>{let{children:t}=e;const{onOpenChange:n,getDragButtonEl:a}=H();return(0,E.jsx)("div",{ref:a,className:A,onClick:()=>{n(e=>!e)},children:(0,E.jsxs)(i.Typography.Text,{className:"ant-btn",children:[(0,E.jsx)(T.default,{type:"icon-tuozhuaishangchuan"}),t||(0,E.jsx)(O.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},J=e=>{let{children:t}=e;const{accept:n,onFileSelected:s}=H();return(0,E.jsx)(G.FileInput,{className:R()(A,"btn-no-padding"),accept:n,multiple:!0,onChange:s,children:e=>{let{children:n}=e,s=(0,z.A)(e,X);return(0,E.jsxs)(i.Button,(0,a.A)((0,a.A)({},s),{},{type:"text",children:[(0,E.jsx)(T.default,{type:"icon-tianjia"}),t,n]}))}})},K=e=>{let{title:t,accept:n=[".png",".jpg",".pdf",".docx",".doc"],fileSize:a=20,maxLength:l,onFileSelected:r,children:c,className:u,defaultOpen:m=!1}=e;const[p,h]=(0,s.useState)(m),g=(0,s.useRef)(null),f=W()(e=>{g.current&&(g.current.contains(e.target)||e.target===g.current||h(!1))});return(0,E.jsx)(O.IntlProvider,{importMessages:U,moduleName:"FileList",children:(0,E.jsx)(q,{value:{open:p,onOpenChange:h,accept:n,fileSize:a,maxLength:l,onFileSelected:r,getDragButtonEl:e=>{g.current=e}},children:(0,E.jsxs)(i.Space,{className:o,direction:"vertical",children:[t,(0,E.jsx)("div",{className:R()(d,u),ref:f,onDragEnter:()=>{h(!0)},children:c})]})})})},$=e=>{let{icon:t,title:n,renderTips:a=e=>e}=e;const{accept:s,fileSize:l,maxLength:r}=H(),i=a((0,O.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:s.map(e=>e.replace(/^\./,"")).join("\u3001"),size:l}),{fileSize:l,maxLength:r,accept:s});return(0,E.jsxs)("div",{className:R()(g,"upload-drag-tips"),children:[(0,E.jsx)("div",{className:f,children:t||(0,E.jsx)(T.default,{type:"icon-shangchuan",size:64})}),(0,E.jsx)("div",{className:x,children:n||(0,E.jsx)(O.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,E.jsx)("div",{className:_,children:i})]})},Z=e=>{let{children:t=(0,E.jsx)($,{}),className:n}=e;const{open:a,accept:s,onOpenChange:l,onFileSelected:r}=H();return a?(0,E.jsxs)("div",{className:R()(p,n),onDragOver:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{if(e.stopPropagation(),e.preventDefault(),0===e.dataTransfer.files.length)return;l(!1);const t=Array.from(e.dataTransfer.files).filter(e=>(0,Q.A)(e,s));r(t)},onDragEnd:()=>{l(!1)},children:[(0,E.jsx)(i.Button,{className:h,type:"text",shape:"circle",size:"small",icon:(0,E.jsx)(T.default,{type:"icon-close-bold"}),onClick:()=>{l(!1)}}),t]}):null};var ee=n(50196),te=n(63743);const ne=e=>{var t,n;let{className:l,maxLength:o=Number.MAX_VALUE,list:c,setList:d,infoItemRenders:p,defaultTab:h="list",defaultPreviewFileId:g,apis:f,getPermission:x=()=>!0,titleExtra:_=null,fileSize:v=20,accept:A=[".png",".jpg",".pdf",".docx",".doc"],getPopupContainer:j}=e;const{apis:y}=(0,te.usePreset)(),b=Object.assign({},y,f),N=(c||[]).map(e=>Object.assign({},{id:e.ossId},e)),{fileList:S,onFileSelected:M}=(0,G.useFileUpload)({maxLength:o,multiple:!0,value:N,onChange:d,concurrentCount:1,onAdd:()=>{C("list")},onSave:async function(e){if("function"===typeof b.onSave){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];const s=await b.onSave(e,...n);return Object.assign({},{id:null===s||void 0===s?void 0:s.ossId},s)}return r()(e,"data")||{}},onUpload:b.onUpload||b.ossUpload}),[w,C]=(0,s.useState)(h),{formatMessage:F}=(0,O.useIntl)({moduleName:"FileList"}),{message:P}=i.App.useApp(),I=(0,s.useMemo)(()=>new Map(N.map(e=>[e.id,e])),[N]),[T,L]=(0,s.useState)(g||r()(N,"[0].id",null));(0,s.useEffect)(()=>{T&&I.get(T)||L(r()(N,"[0].id",null))},[N,I,T]);const R=(0,a.A)((0,a.A)({},b),{},{onPreview:e=>{L(e.id),C("preview")},onDelete:async e=>{b.onDelete&&!1===await b.onDelete(e)||(d(t=>{const n=t.slice(0),a=t.findIndex(t=>{let{id:n}=t;return n===e.id});return a>-1&&n.splice(a,1),n}),P.success(F({id:"successDelete"},{name:e.filename})))},onEdit:async e=>{let{formData:t,item:n}=e;const a=b.onEdit&&await b.onEdit({formData:t,item:n});return!1!==a&&(d(e=>{const a=e.slice(0),s=e.findIndex(e=>{let{id:t}=e;return t===n.id});return s>-1&&a.splice(s,1,Object.assign({},n,{filename:t.name})),a}),P.success(F({id:"successEditFileName"},{name:n.filename}))),a}}),z="function"===typeof _?_({currentPreviewFileId:T,currentTab:w}):_;return(0,E.jsx)("div",{className:l,children:(0,E.jsxs)(K,{title:(0,E.jsx)(D,{currentTab:w,setCurrentTab:C,previewMap:I,previewList:N,getPermission:x,currentPreviewFileId:T,setCurrentPreviewFileId:L,itemApis:R,getPopupContainer:j,children:(0,E.jsxs)(i.Space,{split:(0,E.jsx)(i.Divider,{type:"vertical"}),children:[z,x("add",{})?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(Y,{children:F({id:"dragText"})}),(0,E.jsx)(J,{children:F({id:"uploadFile"})})]}):null]})}),fileSize:v,maxLength:o,onFileSelected:M,accept:A,defaultOpen:0===N.length,children:["list"===w?(0,E.jsx)(k.List,{dataSource:[...N,...S],getPermission:x,apis:R,infoItemRenders:p}):null,"preview"===w?T?(0,E.jsx)("div",{className:u,children:(0,E.jsx)(ee.default,{className:m,src:null===(t=I.get(T))||void 0===t?void 0:t.src,id:T,apis:b,filename:null===(n=I.get(T))||void 0===n?void 0:n.filename})}):(0,E.jsx)(i.Empty,{image:i.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,E.jsx)(Z,{})]})})},ae=e=>(0,E.jsx)(O.IntlProvider,{importMessages:U,moduleName:"FileList",children:(0,E.jsx)(ne,(0,a.A)({},e))});var se=n(10986),le=n.n(se);const re=["maxLength","apis","getPermission","fileSize","accept","defaultList"],ie=e=>{let{maxLength:t=Number.MAX_VALUE,apis:n,getPermission:s=()=>!0,fileSize:l=20,accept:o=[".png",".jpg",".pdf",".docx",".doc"],defaultList:c=[]}=e,d=(0,z.A)(e,re);const{apis:u}=(0,te.usePreset)(),m=Object.assign({},u,n),[p,h]=le()((0,a.A)({defaultList:c},d),{defaultValue:"defaultList",value:"list",onChange:"setList"}),{fileList:g,onFileSelected:f}=(0,G.useFileUpload)({maxLength:t,multiple:!0,value:p,onChange:h,concurrentCount:1,onSave:async function(e){if("function"===typeof m.onSave){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];const s=await m.onSave(e,...n);return Object.assign({},{id:null===s||void 0===s?void 0:s.ossId},s)}return r()(e,"data")||{}},onUpload:m.ossUpload});return(0,E.jsxs)(K,{title:(0,E.jsxs)(i.Row,{children:[(0,E.jsx)(i.Col,{flex:1}),(0,E.jsx)(i.Col,{children:(0,E.jsxs)(i.Space,{split:(0,E.jsx)(i.Divider,{type:"vertical"}),children:[(0,E.jsx)(Y,{}),(0,E.jsx)(J,{children:"\u4e0a\u4f20"})]})})]}),fileSize:l,maxLength:t,onFileSelected:f,accept:o,children:[(0,E.jsx)(k.List,{dataSource:[...g,...p],getPermission:s,apis:m}),(0,E.jsx)(Z,{})]})}},29556:(e,t,n)=>{n.r(t),n.d(t,{TooltipFetch:()=>I,TooltipInfoLabel:()=>w,default:()=>S});var a=n(89379),s=n(53986),l=n(55199),r=n(83136),i=n.n(r);const o="style_tooltip__zHGMI__M7iv4",c="style_large__lvmsm__M7iv4",d="style_small__nUt0r__M7iv4",u="style_popup-content__-rKQN__M7iv4",m="style_title__1EQPq__M7iv4",p="style_important-info__qTSZY__M7iv4",h="style_error__yTTq3__M7iv4",g="style_warning__CMJxz__M7iv4",f="style_success__AvJVx__M7iv4",x="style_sub-title__uD8CH__M7iv4",_="style_content__lzgUz__M7iv4",v="style_alone__q6q82__M7iv4",A="style_fetch-content__tEOEV__M7iv4",j="style_fetch-loading__tN-WB__M7iv4",y="style_title-info-icon__iY8Q+__M7iv4";var b=n(70579);const N=["overlayClassName","title","size","subtitle","content","importantInfo","importantInfoType","moreInfo"],S=e=>{let{overlayClassName:t,title:n,size:r,subtitle:A,content:j,importantInfo:y,importantInfoType:S,moreInfo:M}=e,w=(0,s.A)(e,N);return(0,b.jsx)(l.Tooltip,(0,a.A)((0,a.A)({},w),{},{rootClassName:i()(t,o,{[d]:"small"===r,[c]:"large"===r}),title:(0,b.jsxs)(l.Space,{direction:"vertical",className:u,children:[n&&(0,b.jsx)("div",{className:m,children:n}),y&&(0,b.jsx)("div",{className:i()(p,{[f]:"success"===S,[g]:"warning"===S,[h]:"error"===S}),children:y}),A&&(0,b.jsx)("div",{className:x,children:A}),j&&(0,b.jsx)("div",{className:i()(_,{[v]:[n,A,y,M].every(e=>!e)}),children:j}),M&&(0,b.jsx)("div",{children:M})]})}))};var M=n(64671);const w=e=>{let{title:t,tooltipTitle:n}=e;return(0,b.jsxs)("div",{children:[t,n?(0,b.jsx)(S,(0,a.A)((0,a.A)({},n),{},{children:(0,b.jsx)("span",{children:(0,b.jsx)(M.default,{type:"icon-xinxi-miaobian",className:y,size:14})})})):null]})};var C=n(73884),F=n(87558);const P=["api","children","fetchContent","showLoading","loadingClassName","force"],I=e=>{let{api:t,children:n,fetchContent:r,showLoading:o=!0,loadingClassName:c,force:d}=e,u=(0,s.A)(e,P);const[m,p]=(0,C.useState)(!1),h=(0,F.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:g,isLoading:f,data:x,send:_}=h;return(0,b.jsx)(S,(0,a.A)((0,a.A)({},Object.assign({},u,g?r(x,h):{})),{},{open:m,onOpenChange:async e=>{!e||g&&!d||await _({type:"refresh"}),p(e)},children:(0,b.jsxs)("span",{className:A,children:[n,o&&f?(0,b.jsx)(l.Spin,{size:"small",className:i()(c,j)}):null]})}))}},30096:(e,t,n)=>{n.d(t,{Ay:()=>d});var a=n(98434),s=n(43856);const{useOnChange:l}=a.hooks,r=e=>{const t=t=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},i=r(s.UserField),o=r(s.TableField),c=r(s.AdvancedSelectField);c.createdList=e=>{let{renderList:t,defaultProps:n}=e;return r((0,s.createListField)({renderList:t,defaultProps:n}))},c.User=i,c.Table=o;const d=c},30891:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(89379),s=n(98434);const l=e=>{let{children:t}=e;const{openApi:n,formData:l}=(0,s.useFormContext)();return t((0,a.A)((0,a.A)({},n),{},{formData:l}))}},34643:(e,t,n)=>{n.d(t,{Ay:()=>m,Pg:()=>c,eM:()=>d,kx:()=>u});var a=n(98434),s=n(43856),l=n(60586);const{useOnChange:r}=a.hooks,i=e=>{const t=t=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},o=i(s.SuperSelectField),c=i(l.$9),d=i(s.SuperSelectTableListField),u=i(s.SuperSelectTreeField),m=o},35774:(e,t,n)=>{n.d(t,{A:()=>c});var a=n(89379),s=n(53986),l=n(98434),r=n(81014),i=n(70579);const o=["onClick"],c=e=>{let{onClick:t}=e,n=(0,s.A)(e,o);const c=(0,l.useFormContext)();return(0,i.jsx)(r.default,(0,a.A)((0,a.A)({},n),{},{onClick:e=>t(c,e)}))}},36972:(e,t,n)=>{n.d(t,{A:()=>E});var a=n(89379),s=n(53986),l=n(73884),r=n(87558),i=n(98434),o=n(78491),c=n.n(o),d=n(55199);const u="style_salary__sUOtT__M7iv4",m="style_salary-type__Sl1LC__M7iv4",p="style_input-number__eoEZr__M7iv4",h="style_full__NPqJm__M7iv4",g="style_input-group__toLB7__M7iv4",f="style_input-group-no-mb__C4nzh__M7iv4";var x=n(47458),_=n(55431),v=n(48731),A=n(10986),j=n.n(A),y=n(21079),b=n(70579);const N=["data"],S=["getPopupContainer","onBlur","api","isRange","placeholder","disabled","showMonth","remindUnit","req"],M=["api","defaultValue"],w=(0,r.withFetch)(e=>{let{data:t}=e,n=(0,s.A)(e,N);return(0,b.jsx)(d.Select,(0,a.A)((0,a.A)({},n),{},{options:t}))}),{useDecorator:C,useUIDecorator:F}=i.hooks,P=e=>{if(!e)return"";const t=isNaN(Number(e))?e:Math.abs(Number(e));return e.split(".")[1]&&e.split(".")[1].length>2?t.toFixed(2):t},I=e=>{let{children:t,isError:n}=e;return(0,b.jsx)("div",{style:{marginBottom:0},className:"react-form__field ".concat(n?"is-error":""),children:(0,b.jsx)("div",{className:"react-form__field-main",children:(0,b.jsx)("div",{className:"react-form__field-input",children:(0,l.cloneElement)(t,{className:"react-form__field-component"})})})})},T=e=>{let{getPopupContainer:t,onBlur:n,api:l,isRange:r=!0,placeholder:i,disabled:o,showMonth:_,remindUnit:A,req:N}=e,M=(0,s.A)(e,S);const[C,F]=j()(M),{formatMessage:T}=(0,x.useIntl)({moduleName:"FormInfo"}),k=T({id:"defaultSelectPlaceholder"},{label:""}),O=T({id:"defaultInputPlaceholder"},{label:""}),L=[6].indexOf((0,y.get)(C,"type"))>-1,R=1===(0,y.get)(C,"type"),E=7===(0,y.get)(C,"type"),D=e=>{if(e)return L?e/1e4:e},z=c()(n||(()=>{}));return(0,b.jsx)("div",{ref:z,className:u,children:(0,b.jsxs)(d.Row,{wrap:!1,gutter:10,children:[(0,b.jsx)(d.Col,{children:(0,b.jsx)(w,(0,a.A)((0,a.A)({className:m},l),{},{value:(0,y.get)(C,"type"),onChange:e=>{F&&F(Object.assign({},R?{}:C,{type:e,min:"",max:""}))},placeholder:i||k,getPopupContainer:t,disabled:o}))}),R?null:(0,b.jsxs)(d.Col,{flex:1,children:[r&&(0,b.jsxs)(d.Row,{className:A&&[5,6].includes(null===C||void 0===C?void 0:C.type)?g:f,wrap:!1,children:[(0,b.jsx)(d.Col,{flex:1,children:(0,b.jsx)(I,{isError:!(0,y.get)(C,"min")&&N,children:(0,b.jsx)(d.InputNumber,{disabled:o,placeholder:O,formatter:P,value:D((0,y.get)(C,"min")),style:{textAlign:"center"},onChange:e=>{F(Object.assign({},C,{min:L?1e4*e:e}))},description:A&&[5,6].includes(null===C||void 0===C?void 0:C.type)?(0,b.jsxs)("span",{style:{color:"#fc3333"},children:["\u6ce8\u610f\uff1a",(0,b.jsx)(v.default,{name:null===C||void 0===C?void 0:C.type,moduleName:"salaryTypeEnum"}),"\u7684\u5355\u4f4d\u4e3a",L?T({id:"thousand"}):E?"":T({id:"yuan"})]}):null})})}),(0,b.jsx)(d.Col,{children:(0,b.jsx)(d.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0})}),(0,b.jsx)(d.Col,{flex:1,children:(0,b.jsx)(I,{isError:!(0,y.get)(C,"max")&&N,children:(0,b.jsx)(d.InputNumber,{disabled:o,placeholder:O,formatter:P,value:D((0,y.get)(C,"max")),style:{textAlign:"center"},addonAfter:L?T({id:"thousand"}):E?"":T({id:"yuan"}),onChange:e=>{F(Object.assign({},C,{max:L?1e4*e:e}))}})})}),5===(0,y.get)(C,"type")&&_&&(0,b.jsx)(d.Col,{children:(0,b.jsxs)("span",{className:(0,y.get)(C,"max")&&(0,y.get)(C,"min")&&!(0,y.get)(C,"month")&&N?"error":"",children:[(0,b.jsx)("span",{className:p,children:"X"}),(0,b.jsx)(d.InputNumber,{min:12,disabled:o,value:(0,y.get)(C,"month"),onChange:e=>{F(Object.assign({},C,{month:e}))},style:{width:100,textAlign:"center"},placeholder:"\u6570\u91cf",addonAfter:"\u6708"})]})})]}),!r&&!E&&(0,b.jsx)(d.InputNumber,{disabled:o,min:0,max:1e8,placeholder:O,className:h,formatter:P,value:D((0,y.get)(C,"max")),style:{textAlign:"center"},addonAfter:L?T({id:"thousand"}):E?"":T({id:"yuan"}),onChange:e=>{F(Object.assign({},C,{max:L?1e4*e:e}))}}),!r&&E&&(0,b.jsx)(d.Input,{disabled:o,placeholder:O,className:h,onChange:e=>{F(Object.assign({},C,{max:e.target.value}))},value:(0,y.get)(C,"max"),style:{textAlign:"center"}})]})]})})},k={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"}]},O={type:5,min:"",max:"",month:12},L=e=>{let{api:t=k,defaultValue:n=O}=e,l=(0,s.A)(e,M);return(0,b.jsx)(x.IntlProvider,{moduleName:"FormInfo",importMessages:_.A,children:(0,b.jsx)(T,(0,a.A)((0,a.A)({},l),{},{api:t,defaultValue:n}))})},R=e=>{var t;return C((0,a.A)((0,a.A)({},e),{},{req:(null===e||void 0===e||null===(t=e.rule)||void 0===t?void 0:t.indexOf("REQ"))>-1}))(L)};R.Field=L;const E=R},41381:(e,t,n)=>{n.r(t),n.d(t,{default:()=>s.a});n(55664);var a=n(93813),s=n.n(a),l={};for(const r in a)"default"!==r&&(l[r]=()=>a[r]);n.d(t,l)},45053:(e,t,n)=>{n.d(t,{A:()=>m});var a=n(98434),s=n(55199),l=n(73884),r=n(83136),i=n.n(r),o=n(70720),c=n.n(o),d=n(47094),u=n(70579);const m=e=>{let{name:t,groupName:n,overlayClassName:r,errorRender:o=()=>null,groupIndex:m,children:p}=e;const h=(e=>{let{name:t,groupName:n,groupIndex:s}=e;const{emitter:r,formState:i}=(0,a.useFormContext)(),o=(0,l.useRef)({name:t,groupName:n,groupIndex:s});o.current={name:t,groupName:n,groupIndex:s};const c=(0,l.useRef)(i);c.current=i;const[d,u]=(0,l.useState)(null);return(0,l.useEffect)(()=>{const e=r.addListener("form-field-validate-complete",e=>{let{id:t,validate:n}=e;const s=c.current[t];if(!s)return;const l=o.current;s.name!==l.name||l.groupName&&(s.groupName!==l.groupName||s.groupIndex!==l.groupIndex)||u(2===n.status?Object.assign({},n,{label:s.label,errMsg:a.util.compileErrMsg(n.msg,s.label)}):null)});return()=>{e&&e.remove()}},[r]),d})({name:t,groupName:n,groupIndex:m}),[g,f]=(0,l.useState)(!1),x=h&&g&&o(Object.assign({},h,{closeHover:()=>f(!1)})),_=(0,l.useRef)(null),v=(0,l.useRef)(null);c()(()=>{f(!1)}).current={contains:e=>_.current.contains(e)||v.current&&v.current.contains(e)};const[A,j]=(0,l.useState)(0);return(0,l.useLayoutEffect)(()=>{const e=()=>{const e=_.current.querySelector(".react-form__field-component");e&&j(e.clientWidth)};e();const t=new ResizeObserver(e);t.observe(_.current);const n=new MutationObserver(e);return n.observe(_.current,{subtree:!0,childList:!0}),()=>{n.disconnect(),t.disconnect()}},[]),(0,u.jsx)(s.Popover,{open:!!x,rootClassName:i()(r,d.A["error-tip-overlay"]),content:x&&(0,u.jsx)("div",{ref:v,style:{width:A},className:i()(d.A["error-tip-overlay-content"]),children:x}),placement:"bottom",transitionName:"ant-slide-up",arrow:!1,children:(0,u.jsx)("div",{className:i()("error-tip"),ref:_,onMouseEnter:()=>{f(!0)},children:p})})}},46237:(e,t,n)=>{n.d(t,{Ay:()=>o,oc:()=>i});var a=n(73884);const s=(0,a.createContext)([]),{Provider:l,Consumer:r}=s,i=()=>(0,a.useContext)(s),o=l},46732:(e,t,n)=>{n.d(t,{A:()=>d,K:()=>c});var a=n(75363),s=n(73884),l=n(98434),r=n(47094),i=n(70579);const o=(0,s.createContext)(""),{Provider:c}=o,d=e=>{let{name:t}=e;const n=(0,s.useContext)(o),c=(0,l.useGroup)();return n&&(0,i.jsx)(a.default,{className:r.A["helper-guide-field"],name:n+"-"+(c.name?c.name+"-":"")+t})}},47094:(e,t,n)=>{n.d(t,{A:()=>a});const a={"form-outer":"style_form-outer__IWUs0__M7iv4","form-drawer":"style_form-drawer__uYDXS__M7iv4","table-list":"style_table-list__6lp-A__M7iv4","list-item":"style_list-item__hVzQa__M7iv4","table-list-inner":"style_table-list-inner__uc8DK__M7iv4","table-list-field":"style_table-list-field__JSJfB__M7iv4","table-list-header":"style_table-list-header__KXvKa__M7iv4","is-req":"style_is-req__LfXQf__M7iv4","table-list-extra":"style_table-list-extra__faYTK__M7iv4","list-btn":"style_list-btn__WKYkm__M7iv4","form-info":"style_form-info__B8bAP__M7iv4","list-part":"style_list-part__Ld0GA__M7iv4","is-important":"style_is-important__vaBk1__M7iv4","list-item-part":"style_list-item-part__MzKP7__M7iv4","money-input":"style_money-input__J86Pb__M7iv4","money-description":"style_money-description__Gz3p7__M7iv4","components-upload-wrapper":"style_components-upload-wrapper__Ir0gz__M7iv4","textarea-wrapped-component":"style_textarea-wrapped-component__r1oKc__M7iv4","helper-guide-field":"style_helper-guide-field__Wke3w__M7iv4","error-tip-overlay":"style_error-tip-overlay__aNCGc__M7iv4","error-tip-overlay-content":"style_error-tip-overlay-content__kDOoQ__M7iv4","column-not-layout":"style_column-not-layout__+SXC+__M7iv4","mult-field-item":"style_mult-field-item__eS0nJ__M7iv4","react-form__field-label":"style_react-form__field-label__2U91E__M7iv4","mult-field-add-btn":"style_mult-field-add-btn__5Baxz__M7iv4","form-step-section":"style_form-step-section__RvkHy__M7iv4"}},47338:(e,t,n)=>{n.r(t),n.d(t,{ConfirmButton:()=>a.ConfirmButton,ConfirmLink:()=>a.ConfirmLink,ConfirmText:()=>a.ConfirmText,default:()=>s,withConfirm:()=>a.withConfirm});n(9056);var a=n(38885);const s=a.ConfirmButton},48221:(e,t,n)=>{n.d(t,{Ay:()=>c,WJ:()=>u,Xy:()=>d});var a=n(89379),s=n(25963),l=n(73025),r=n(47094),i=n(76995),o=n(70579);const c=e=>(0,o.jsx)(s.default,(0,a.A)({},(0,i.A)(Object.assign({},e,{className:r.A["form-drawer"]})))),d=()=>{const e=(0,s.useDrawer)();return t=>e((0,i.A)(Object.assign({},t,{className:r.A["form-drawer"]})))},u=e=>{const t=d();return(0,o.jsx)(l.A,(0,a.A)((0,a.A)({},e),{},{modalFunc:t}))}},50196:(e,t,n)=>{n.r(t),n.d(t,{AudioPreview:()=>a.AudioPreview,HtmlPreview:()=>a.HtmlPreview,ImagePreview:()=>a.ImagePreview,OSSFilePreview:()=>a.OSSFilePreview,OfficePreview:()=>a.OfficePreview,PdfPreview:()=>a.PdfPreview,TextPreview:()=>a.TextPreview,UnknownPreview:()=>a.UnknownPreview,VideoPreview:()=>a.VideoPreview,default:()=>a.FilePreview});n(64674);var a=n(36125)},55431:(e,t,n)=>{n.d(t,{A:()=>a});const a=e=>({"en-US":()=>n.e(1649).then(n.bind(n,21649)),"zh-CN":()=>n.e(711).then(n.bind(n,80711))}[e]())},56259:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(89319),s=n(98434);const{useOnChange:l}=s.hooks,r=e=>l(Object.assign({},{},e))(a.A);r.Field=a.A;const i=r},64261:(e,t,n)=>{n.d(t,{A:()=>v});var a=n(89379),s=n(98434),l=n(57469),r=n.n(l),i=n(34677),o=n.n(i),c=n(33097),d=n.n(c),u=n(22717),m=n.n(u),p=(n(17448),n(2842)),h=n(46732),g=n(13050),f=n(70579);const x=s.RULES.REQ,_=s.RULES.LEN,v=async(e,t)=>{const{locale:n}=Object.assign({},t);s.interceptors.input.use("photo-string",e=>{if(e&&"string"===typeof e){const[t,n]=e.split("?"),a=new URLSearchParams(n);return Object.assign({},t,m()(Array.from(a.entries()),(e,t)=>{e[t[0]]=t[1]},{}))}return e}),s.interceptors.output.use("photo-string",e=>e&&"string"!==typeof e?"".concat(null===e||void 0===e?void 0:e.id).concat(null!==e&&void 0!==e&&e.filename?"?filename=".concat(null===e||void 0===e?void 0:e.filename):""):e),s.interceptors.input.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>{const[t,n]=e.split("?"),a=new URLSearchParams(n);return Object.assign({},{id:t},m()(Array.from(a.entries()),(e,t)=>{e[t[0]]=t[1]},{}))}):e),s.interceptors.output.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>"".concat(null===e||void 0===e?void 0:e.id).concat(null!==e&&void 0!==e&&e.filename?"?filename=".concat(null===e||void 0===e?void 0:e.filename):"")):e),s.interceptors.input.use("to-array",e=>Array.isArray(e)?e[0]:e),s.interceptors.output.use("to-array",e=>[e]),s.interceptors.input.use("array-single",e=>e?[e]:[]),s.interceptors.output.use("array-single",e=>e?e[0]:null),s.interceptors.input.use("boolean-number",e=>1===e||"1"===e),s.interceptors.output.use("boolean-number",e=>e?1:0),s.interceptors.input.use("un-boolean",e=>!e),s.interceptors.output.use("un-boolean",e=>!e),s.interceptors.output.use("object-output-value",e=>e?e.value||e.id:e),s.interceptors.input.use("date-string",e=>e?r()(e):null),s.interceptors.output.use("date-string",e=>e?new Date(e.valueOf()).toISOString():""),s.interceptors.input.use("date-range-string",e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(r()(e[0])),e[0]&&e[1]&&"sofar"===e[1]&&t.push("\u81f3\u4eca"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(r()(e[1])),t}),s.interceptors.output.use("date-range-string",e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(new Date(e[0].valueOf()).toISOString()),e[0]&&e[1]&&"\u81f3\u4eca"===e[1]&&t.push("sofar"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(new Date(e[1].valueOf()).toISOString()),t}),s.interceptors.output.use("file-format",e=>Array.isArray(e)?e.map(e=>Object.assign({},e,{id:e.id||e.ossId,originalName:e.filename})):[]),s.interceptors.input.use("file-format",e=>Array.isArray(e)?e.map(e=>({id:e.id||e.ossId,ossId:e.id||e.ossId,filename:e.originalName||e.filename})):[]);const{default:l}=await(0,g.loadModule)("components-iconfont:CountyFlag@load"),i=await l(),c=new Map(i.map(e=>{let{ab:t,country_code:n}=e;return[t,n]})),u=new Map(i.map(e=>{let{ab:t,country_code:n}=e;return[n,t]}));s.interceptors.output.use("phone-number-string",e=>null!==e&&void 0!==e&&e.code&&null!==e&&void 0!==e&&e.value?"+".concat(c.get(e.code)," ").concat(e.value.replace(/\s+/g,"")):""),s.interceptors.input.use("phone-number-string",e=>{if(!e)return{};const t=e.match(/^\+(\d+)\s(.*)/);return t&&t.length>=3?{code:u.get(Number(t[1])),value:t[2]}:{code:u.get(86),value:e}});const v=(e,t)=>{t=Object.assign({},t);const a={REQ:{"zh-CN":"%s\u4e0d\u80fd\u4e3a\u7a7a","en-US":"%s cannot be empty "},EMAIL:{"zh-CN":"\u8bf7\u8f93\u5165\u6709\u6548\u7684%s","en-US":"Please enter a valid %s"},LENGTH_EQUAL:{"zh-CN":"%s\u5fc5\u987b\u7b49\u4e8e".concat(t.end),"en-US":"%s must be equal to ".concat(t.end)},LENGTH_MORE:{"zh-CN":"%s\u5fc5\u987b\u5927\u4e8e".concat(t.start),"en-US":"%s must be greater than ".concat(t.start)},LENGTH_LESS:{"zh-CN":"%s\u5fc5\u987b\u5c0f\u4e8e".concat(t.end),"en-US":"%s must be less than ".concat(t.end)}},s=d()(a,"".concat(e,".").concat(n));return s||d()(a,"".concat(e,".zh-CN"))};(0,s.preset)(o()({},{type:"inner",rules:{REQ:function(){return Object.assign({},x(...arguments),{errMsg:v("REQ")})},LEN:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const[a,s,l]=t;let r="";return l===s&&a.length!==Number(l)&&(r="LENGTH_EQUAL"),a.length<s&&(r="LENGTH_MORE"),l&&a.length>l&&(r="LENGTH_LESS"),Object.assign({},_(...t),{errMsg:v(r,{start:s,end:l})})},EMAIL:function(e){return{result:/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e),errMsg:v("EMAIL")}},PHONE_NUMBER_INPUT:p.PHONE_NUMBER_INPUT,ARRAY_LENGTH:(e,t,n)=>n===t&&e.length!==Number(n)?{result:!1,errMsg:v("LENGTH_EQUAL",{start:t,end:n})}:e.length<t?{result:!1,errMsg:v("LENGTH_MORE",{start:t,end:n})}:n&&e.length>n?{result:!1,errMsg:v("LENGTH_LESS",{start:t,end:n})}:{result:!0}},field:{datePicker:{defaultProps:{interceptor:"date-string"}},rangeDatePicker:{defaultProps:{interceptor:"date-range-string"}},inputNumber:{defaultProps:{changeOnWheel:!1}},textArea:{defaultProps:{autoSize:{minRows:2,maxRows:6}}}},globalProps:{labelTips:e=>(0,f.jsx)(h.A,(0,a.A)({},e))}},"function"===typeof e?e({interceptors:s.interceptors,RULES:s.RULES}):e))}},76995:(e,t,n)=>{n.d(t,{A:()=>f});var a=n(89379),s=n(53986),l=n(55431),r=n(98434),i=n(47458),o=n(83799),c=n(83136),d=n.n(c),u=n(47094),m=n(70579);const p=["className","withDecorator","footerButtons","formProps","cancelText","saveText","autoClose"],h=["onSubmit","key"],g="FormInfo",f=e=>{let{className:t,withDecorator:n,footerButtons:c,formProps:f,cancelText:x,saveText:_,autoClose:v=!0}=e,A=(0,s.A)(e,p);return(0,a.A)((0,a.A)({},A),{},{footerButtons:c||[{children:(0,m.jsx)(i.IntlProvider,{importMessages:l.A,moduleName:g,children:x||(0,m.jsx)(i.FormattedMessage,{id:"Cancel",moduleName:g})}),ButtonComponent:r.CancelButton},{type:"primary",children:(0,m.jsx)(i.IntlProvider,{importMessages:l.A,moduleName:g,children:_||(0,m.jsx)(i.FormattedMessage,{id:"Save",moduleName:g})}),ButtonComponent:r.SubmitButton,autoClose:!1}],withDecorator:(e,t)=>{const r=t=>{const n=Object.assign({},"function"===typeof f?f(t):f),{onSubmit:r,key:c}=n,d=(0,s.A)(n,h);return(0,m.jsx)(o.lV,(0,a.A)((0,a.A)({},d),{},{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))&&v&&t.close()},children:(0,m.jsx)(i.IntlProvider,{importMessages:l.A,moduleName:"FormInfo",children:e(t)})}))};return"function"===typeof n?n(r,t):r(t)},className:d()(t,u.A["form-outer"])})}},78756:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(43856),s=n(98434);const{useOnChange:l}=s.hooks,r=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(a.IndustrySelectField);r.Field=a.IndustrySelectField,r.Enum=a.IndustrySelectField.Enum;const i=r},81026:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(43856),s=n(98434);const{useOnChange:l}=s.hooks,r=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(a.FunctionSelectField);r.Field=a.FunctionSelectField,r.Enum=a.FunctionSelectField.Enum;const i=r},83230:(e,t,n)=>{n.d(t,{A:()=>i});var a=n(98434),s=n(43856);const{useOnChange:l}=a.hooks,r=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(s.CascaderField);r.Field=s.CascaderField,r.createTreeUtils=s.createTreeUtils;const i=r},83799:(e,t,n)=>{n.d(t,{NI:()=>H,TQ:()=>p.A,JL:()=>U,eu:()=>A.A,vx:()=>h.A,lr:()=>ee,s3:()=>te,lV:()=>r.A,d4:()=>g.A,ZN:()=>f.A,pd:()=>Q,YI:()=>K,h2:()=>G,F0:()=>x.A,go:()=>_.default,tt:()=>l.Rate,lu:()=>j.A,l6:()=>J,Ap:()=>l.Slider,wD:()=>B,eM:()=>W,kx:()=>q,Pg:()=>V,dO:()=>l.Switch,EY:()=>T,fs:()=>X,AG:()=>Z,f7:()=>$,w5:()=>b.A,_O:()=>v.A,nk:()=>ne});var a=n(89379),s=n(53986),l=n(98434),r=n(85696),i=n(47458),o=n(73884),c=n(30891),d=n(47094),u=n(30096),m=n(34643),p=n(1904),h=n(83230),g=n(81026),f=n(78756),x=n(92328),_=n(2842),v=n(89099),A=n(96339),j=n(36972),y=n(15209),b=n(56259),N=n(55199),S=n(10986),M=n.n(S),w=n(70579);const C=["children"],{useDecorator:F}=l.hooks,P=e=>{let{children:t}=e,n=(0,s.A)(e,C);const[l]=M()(n);return(0,w.jsxs)(N.Typography.Text,(0,a.A)((0,a.A)({},n),{},{children:[(0,w.jsx)("div",{style:{height:0,width:0,overflow:"hidden"},children:(0,w.jsx)(N.Input,{value:l})}),t||l]}))},I=e=>F(e)(P);I.Field=P;const T=I;var k=n(45053);const O=["placeholder","label"],L=["placeholder","label","className"],R=["placeholder","label"],E=["placeholder","label","soFarText"],D=e=>{const t=(0,o.forwardRef)((t,n)=>{let{placeholder:l,label:r}=t,o=(0,s.A)(t,O);return(0,w.jsx)(i.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:r},children:t=>(0,w.jsx)(e,(0,a.A)((0,a.A)({},o),{},{ref:n,label:r,placeholder:l||t}))})});return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(n=>{t[n]=e[n]}),t},z=e=>{const t=(0,o.forwardRef)((t,n)=>{let{placeholder:l,label:r}=t,o=(0,s.A)(t,R);return(0,w.jsx)(i.FormattedMessage,{id:"defaultSelectPlaceholder",moduleName:"FormInfo",values:{label:r},children:t=>(0,w.jsx)(e,(0,a.A)((0,a.A)({},o),{},{ref:n,label:r,placeholder:l||t}))})});return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(n=>{t[n]=e[n]}),t},U=z(u.Ay),B=z(m.Ay),W=z(m.eM),V=z(m.Pg),q=z(m.kx),H=z(p.N),G=D(y.A),Q=D(l.Input);Q.Password=D(l.Input.Password);const X=(Y=l.TextArea,e=>{let{placeholder:t,label:n,className:l}=e,r=(0,s.A)(e,L);return(0,w.jsx)(i.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"FormInfo",values:{label:n},children:e=>(0,w.jsx)("div",{className:d.A["textarea-wrapped-component"],children:(0,w.jsx)(Y,(0,a.A)((0,a.A)({},r),{},{label:n,placeholder:t||e}))})})});var Y;const J=z(l.Select),K=D(l.InputNumber),$=z(l.TreeSelect),Z=z(l.TimePicker);Z.RangePicker=z(l.TimePicker.RangePicker);const ee=z(l.DatePicker);ee.MonthPicker=z(l.DatePicker.MonthPicker),ee.RangePicker=z(l.DatePicker.RangePicker),ee.WeekPicker=z(l.DatePicker.WeekPicker);const te=e=>{let{placeholder:t,label:n,soFarText:r}=e,o=(0,s.A)(e,E);const{formatMessage:c}=(0,i.useIntl)({moduleName:"FormInfo"});return(0,w.jsx)(l.DatePickerToday,(0,a.A)((0,a.A)({},o),{},{label:n,placeholder:[c({id:"startDate"}),c({id:"endDate"})],soFarText:r||c({id:"soFarText"})}))},ne=Object.assign({},l,{Input:Q,InputUpperCase:G,TextArea:X,Select:J,InputNumber:K,TreeSelect:$,TimePicker:Z,DatePicker:ee,DatePickerToday:te,Form:r.A,FormItem:c.A,AdvancedSelect:U,SuperSelect:B,SuperSelectTableList:W,SuperSelectUser:V,SuperSelectTree:q,AddressSelect:p.A,AddressInput:H,MoneyInput:x.A,PhoneNumber:_.default,Cascader:h.A,FunctionSelect:g.A,IndustrySelect:f.A,TypeDateRangePicker:b.A,Upload:v.A,Avatar:A.A,SalaryInput:j.A,Text:T,Rate:l.Rate,Switch:l.Switch,Slider:l.Slider,ErrorTip:k.A})},85696:(e,t,n)=>{n.d(t,{A:()=>y});var a=n(89379),s=n(53986),l=n(73884),r=n(63743),i=n(33097),o=n.n(i),c=n(64261),d=n(47458),u=n(55431),m=n(46237),p=n(41381),h=n(46732),g=n(98434),f=n(83136),x=n.n(f),_=n(47094),v=n(70579);const A=["className","helperGuideName","children","lang"],j=e=>{let{children:t}=e;const[n,a]=(0,l.useState)(!1),s=(0,r.usePreset)(),i=o()(s,"formInfo",{}),d=o()(s,"locale");return(0,l.useEffect)(()=>{Promise.resolve((0,c.A)(i,{locale:d})).then(()=>{a(!0)})},[i,d]),n?t:null},y=(0,l.forwardRef)((e,t)=>{let{className:n,helperGuideName:l,children:r,lang:i}=e,o=(0,s.A)(e,A);return(0,v.jsx)(d.IntlProvider,{importMessages:u.A,moduleName:"FormInfo",children:(0,v.jsx)(m.Ay,{value:i,children:(0,v.jsx)(h.K,{value:l,children:(0,v.jsx)(j,{children:(0,v.jsx)(g.FormAntd,(0,a.A)((0,a.A)({},o),{},{ref:t,className:x()(n,_.A["form-outer"]),children:(0,v.jsx)(p.default,{children:r})}))})})})})})},85846:(e,t,n)=>{n.d(t,{A:()=>b});var a=n(89379),s=n(53986),l=n(73884),r=n(68532),i=n(55199),o=n(64671),c=n(41381),d=n(47338),u=n(2196),m=n(83136),p=n.n(m),h=n(55431),g=n(47458),f=n(47094),x=n(70579);const _=["addText","className","important","outer","renderChildren","deleteButtonProps","title"],v=["list","title","id","allowRemove","onRemove"],A=["add","addText","className","allowAdd"],j=(0,g.createWithIntl)({moduleName:"FormInfo",importMessages:h.A})(e=>{let{addText:t,className:n,important:c,outer:m=(0,x.jsx)(y,{}),renderChildren:h=e=>e,deleteButtonProps:A,title:j}=e,b=(0,s.A)(e,_);const{formatMessage:N}=(0,g.useIntl)({moduleName:"FormInfo"});return(0,x.jsx)(r.SubList,(0,a.A)((0,a.A)({},b),{},{listRender:e=>{let{list:t,title:n,id:l,allowRemove:r,onRemove:m}=e,h=(0,s.A)(e,v);return(0,x.jsxs)("div",{className:p()(f.A["list-item"],{[f.A["is-important"]]:c}),children:[(0,x.jsx)(u.A,(0,a.A)((0,a.A)({},h),{},{title:n,list:t,className:f.A["list-item-part"],gap:16,extra:(0,x.jsx)(g.FormattedMessage,{id:"delText",moduleName:"FormInfo",children:e=>r?(0,x.jsx)(d.default,(0,a.A)((0,a.A)({danger:!0,className:"btn-no-padding",message:N({id:"delConfirm"},{name:n}),type:"link",onClick:()=>{m(l)}},Object.assign({},A)),{},{children:null!==A&&void 0!==A&&A.children?null===A||void 0===A?void 0:A.children:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(o.default,{type:"icon-shanchu"}),e]})})):null})})),(0,x.jsx)(i.Divider,{})]},l)},children:(e,a)=>{let{allowAdd:s,onAdd:r}=a;return(0,l.cloneElement)(m,{title:j,addText:t,className:p()(n,f.A["list-part"]),allowAdd:s,add:()=>r({isUnshift:!1})},h(e))}}))}),y=e=>{let{add:t,addText:n,className:l,allowAdd:r}=e,d=(0,s.A)(e,A);return(0,x.jsx)(c.default.Part,(0,a.A)((0,a.A)({},d),{},{className:l,extra:r&&(0,x.jsx)(g.FormattedMessage,{id:"addText",moduleName:"FormInfo",children:e=>(0,x.jsxs)(i.Typography.Text,{className:f.A["list-btn"],onClick:t,children:[(0,x.jsx)(o.default,{type:"icon-tianjia"}),n||e]})})}))},b=j},89099:(e,t,n)=>{n.d(t,{A:()=>M});var a=n(89379),s=n(53986),l=n(55199),r=n(83136),i=n.n(r),o=n(10986),c=n.n(o);const d="style_upload__t422Q__M7iv4",u="style_upload-list__Q9HDc__M7iv4",m="style_tips__3Gpnu__M7iv4";var p=n(19343),h=n(98434),g=n(47458),f=n(1488),x=n.n(f),_=n(17508),v=n(55431),A=n(70579);const j=["className","fileSize","maxLength","multiple","size","accept","children","renderTips","showUploadList","onSave","ossUpload","onUpload","getPermission","concurrentCount"],y=["interceptor"],{useOnChange:b}=h.hooks,N=(0,g.createWithIntl)({importMessages:v.A,moduleName:"FormInfo"})(e=>{const{formatMessage:t}=(0,g.useIntl)({moduleName:"FormInfo"}),n=Object.assign({},{defaultValue:[],children:t({id:"uploadButtonText"}),accept:[".pdf",".jpg",".png",".jpeg",".doc",".docx",".xls",".xlsx",".html",".msg",".eml",".zip"],renderTips:e=>e,multiple:!0,showUploadList:!0,maxLength:10,fileSize:30,concurrentCount:10},e),{className:r,fileSize:o,maxLength:h,multiple:f,size:v,accept:y,children:b,renderTips:N,showUploadList:S,onSave:M,ossUpload:w,onUpload:C,getPermission:F,concurrentCount:P}=n,I=(0,s.A)(n,j),[T,k]=c()(I),O=T||[],{fileList:L,onFileSelected:R}=(0,_.lN)({multiple:f,onSave:M,onUpload:w||C,fileSize:o,maxLength:h,value:O,onChange:k,concurrentCount:P}),E=[...L,...O],D=N(t({id:"uploadTips"},{extensionNames:y.map(e=>e.replace(/^\./,"")).join(","),maxLength:h,fileSize:o}),{fileSize:o,maxLength:h,accept:y});return(0,A.jsxs)(l.Space,{direction:"vertical",children:[(0,A.jsxs)(l.Flex,{align:"start",gap:8,vertical:!0,children:[(0,A.jsx)(_.Zi,(0,a.A)((0,a.A)({},x()(I,["value","onChange"])),{},{size:v,multiple:f,accept:y,className:i()(d,r),onChange:R,children:b})),D&&(0,A.jsx)("div",{className:m,children:D})]}),S&&E.length>0&&(0,A.jsx)(p.List,{className:u,dataSource:E,infoItemRenders:[],getPermission:F||(e=>"delete"===e),apis:{onDelete:e=>{const t=O.slice(0),n=t.indexOf(e);n>-1&&t.splice(n,1),k(t)}}})]})}),S=e=>{let{interceptor:t="file-format"}=e,n=(0,s.A)(e,y);return b((0,a.A)({interceptor:t},n))(N)};S.Field=N;const M=S},92328:(e,t,n)=>{n.d(t,{A:()=>b});var a=n(89379),s=n(53986),l=n(10986),r=n.n(l),i=n(98434),o=n(55199),c=n(69484);const d="style_money-input__Pyur7__M7iv4",u="style_money-description__9pFk4__M7iv4";var m=n(83136),p=n.n(m),h=n(34677),g=n.n(h),f=n(73884),x=n(70579);const _=["chineseEmpty","className","showError","errorDesc","transformMoneyToChinese","onBlur","moneyFormat"],{isNotEmpty:v}=i.util||i.formUtils,{useOnChange:A}=i.hooks,j=e=>{let{chineseEmpty:t,className:n,showError:l,errorDesc:i,transformMoneyToChinese:m,onBlur:h,moneyFormat:A}=e,j=(0,s.A)(e,_);const[y,b]=(0,f.useState)(""),[N,S]=r()(j),M=g()({controls:!1,precision:2,addonAfter:"\u5143"},j,{max:v(j.max)?j.max>c.e?c.e:j.max:c.e});return(0,x.jsxs)("div",{className:p()(n,"money-input",d),children:[(0,x.jsx)(o.InputNumber,(0,a.A)((0,a.A)({},M),{},{status:y,formatter:A?e=>"".concat(e).replace(/\B(?=(\d{3})+(?!\d))/g,","):null,parser:e=>{const t=A?null===e||void 0===e?void 0:e.replace(/\$\s?|(,*)/g,""):e;return v(t)?(Number(t)>Number(M.max)||v(M.min)&&Number(t)<Number(M.min))&&b("error"):b(""),v(t)?Number(t):null},onChange:e=>{S(e)},onBlur:e=>{h&&h(e,b)}})),(0,x.jsx)("div",{className:p()(u),children:"error"===y&&l?i:v(N)?(0,c.A)(m?m(N):N):t})]})},y=e=>A(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(e.label||"")},e))(j);y.Field=j,y.toChineseCharacter=c.A;const b=y},94005:(e,t,n)=>{n.d(t,{$X:()=>S,Ay:()=>N,Wp:()=>M});var a=n(89379),s=n(53986),l=n(3382),r=n(73884),i=n(98434),o=n(73025),c=n(47458),d=n(47094),u=n(55431),m=n(55199),p=n(76995),h=n(70579);const g=["footerButtons","cancelText","completeText","nextText","items","withDecorator","autoClose"],f=["formProps","title"],x=["onSubmit"],_=["formProps"],v=["children","stepSection"],A=["modalProps"],j="FormInfo",y=e=>{let{items:t,children:n}=e;const[a,s]=(0,r.useState)(0);return n({currentIndex:a,setCurrentIndex:s,stepCacheRef:(0,r.useRef)({}),isLastStep:a===t.length-1,currentProps:Object.assign({},t[a])})},b=e=>{let{footerButtons:t,cancelText:n,completeText:a,nextText:l,items:r,withDecorator:o,autoClose:A=!0}=e,b=(0,s.A)(e,g);return(0,p.A)(Object.assign({},b,{footerButtons:e=>{let{currentIndex:t,isLastStep:s}=e;const{footerButtons:o}=Object.assign({},r[t]);return o||[{children:(0,h.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:j,children:n||(0,h.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:j})}),ButtonComponent:i.CancelButton},{type:"primary",children:(0,h.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:j,children:s?a||(0,h.jsx)(c.FormattedMessage,{id:"Complete",moduleName:j}):l||(0,h.jsx)(c.FormattedMessage,{id:"Next",moduleName:j})}),ButtonComponent:i.SubmitButton,autoClose:!1}]},withDecorator:(e,t)=>{const n=t=>(0,h.jsx)(y,{items:r,children:n=>{var a;let{currentIndex:l,isLastStep:i,setCurrentIndex:o,currentProps:c,stepCacheRef:u}=n;const{formProps:p,title:g}=c,_=(0,s.A)(c,f),v="function"===typeof p?p(t):p,{onSubmit:j}=v,y=(0,s.A)(v,x),b=Object.assign({},y.data,null===(a=u.current[l])||void 0===a?void 0:a.data);return e(Object.assign({},t,_,{currentIndex:l,isLastStep:i,setCurrentIndex:o,stepCacheRef:u,stepSection:(0,h.jsx)(m.Steps,{className:d.A["form-step-section"],current:l,items:r.map(e=>{let{title:t}=e;return{title:t}})}),formProps:Object.assign({},y,{key:l,data:b,onSubmit:async function(e){u.current[l]={data:e};for(var n=arguments.length,a=new Array(n>1?n-1:0),s=1;s<n;s++)a[s-1]=arguments[s];const r=j&&await j(e,Object.assign({},t,{currentIndex:l,isLastStep:i,setCurrentIndex:o,currentProps:c,stepCacheRef:u}),...a);return u.current[l]=Object.assign({},u.current[l],{output:r}),A&&!i&&!1!==r&&o(e=>e+1),!!i&&r}})}))}});return"function"===typeof o?o(n,t):n(t)},formProps:e=>{let{formProps:t}=e,n=(0,s.A)(e,_);return Object.assign({},n,t)},children:e=>{let{children:t,stepSection:n}=e,a=(0,s.A)(e,v);return(0,h.jsxs)(m.Flex,{vertical:!0,gap:24,children:[(0,h.jsx)(m.Flex,{justify:"center",children:n}),"function"===typeof t?t(a):t]})}}))},N=e=>(0,h.jsx)(l.default,(0,a.A)({},b(Object.assign({},e,{className:d.A["form-modal"]})))),S=()=>{const e=(0,l.useModal)();return t=>e(b(Object.assign({},t,{className:d.A["form-modal"]})))},M=e=>{const t=S();if(!e.api){const{modalProps:n}=e,l=(0,s.A)(e,A);return(0,h.jsx)(m.Button,(0,a.A)((0,a.A)({},l),{},{onClick:()=>{t(n)}}))}return(0,h.jsx)(o.A,(0,a.A)((0,a.A)({},e),{},{modalFunc:t}))}},96252:(e,t,n)=>{n.r(t),n.d(t,{AddressInput:()=>_.NI,AddressSelect:()=>_.TQ,AdvancedSelect:()=>_.JL,Avatar:()=>_.eu,Cascader:()=>_.vx,DatePicker:()=>_.lr,DatePickerToday:()=>_.s3,ErrorTip:()=>h.A,Form:()=>m.A,FormApiButton:()=>o.A,FormDrawer:()=>u.Ay,FormDrawerButton:()=>u.WJ,FormItem:()=>p.A,FormModal:()=>c.Ay,FormModalButton:()=>c.W6,FormStepModal:()=>d.Ay,FormStepModalButton:()=>d.Wp,FunctionSelect:()=>_.d4,IndustrySelect:()=>_.ZN,Input:()=>_.pd,InputNumber:()=>_.YI,InputUpperCase:()=>_.h2,List:()=>r.A,MoneyInput:()=>_.F0,MultiField:()=>g.A,PhoneNumber:()=>_.go,Rate:()=>_.tt,SalaryInput:()=>_.lu,Select:()=>_.l6,SelectInnerInput:()=>v.A,Slider:()=>_.Ap,SuperSelect:()=>_.wD,SuperSelectTableList:()=>_.eM,SuperSelectTree:()=>_.kx,SuperSelectUser:()=>_.Pg,Switch:()=>_.dO,TableList:()=>i.A,Text:()=>_.EY,TextArea:()=>_.fs,TimePicker:()=>_.AG,TreeSelect:()=>_.f7,TypeDateRangePicker:()=>_.w5,Upload:()=>_._O,default:()=>A,fieldDecorator:()=>l.E,fields:()=>l.A,formModule:()=>_.nk,useFormDrawer:()=>u.Xy,useFormModal:()=>c.Vl,useFormStepModal:()=>d.$X});var a=n(64261),s=n(2196),l=n(15445),r=n(85846),i=n(97056),o=n(35774),c=n(5995),d=n(94005),u=n(48221),m=n(85696),p=n(30891),h=n(45053),g=n(97949),f=n(98434),x={};for(const j in f)["default","SelectInnerInput","Form","FormItem","ErrorTip","fields","fieldDecorator","List","TableList","FormApiButton","FormModal","useFormModal","FormModalButton","FormStepModal","useFormStepModal","FormStepModalButton","FormDrawer","useFormDrawer","FormDrawerButton","MultiField"].indexOf(j)<0&&(x[j]=()=>f[j]);n.d(t,x);var _=n(83799),v=n(18936);(0,a.A)(),s.A.fields=l.A,s.A.List=r.A,s.A.TableList=i.A,s.A.FormApiButton=o.A,s.A.FormModal=c.Ay,s.A.useFormModal=c.Vl,s.A.FormModalButton=c.W6,s.A.FormStepModal=d.Ay,s.A.useFormStepModal=d.$X,s.A.FormStepModalButton=d.Wp,s.A.FormDrawer=u.Ay,s.A.useFormDrawer=u.Xy,s.A.FormDrawerButton=u.WJ,s.A.Form=m.A,s.A.FormItem=p.A,s.A.ErrorTip=h.A,s.A.SubmitButton=f.SubmitButton,s.A.CancelButton=f.CancelButton,s.A.fieldDecorator=l.E,s.A.MultiField=g.A,s.A.useFormContext=f.useFormContext,s.A.hooks=f.hooks,s.A.widget=f.widget,s.A.utils=f.utils,s.A.formUtils=f.formUtils;const A=s.A},96339:(e,t,n)=>{n.d(t,{A:()=>V});var a=n(53986),s=n(89379),l=n(73884),r=n(17508),i=n(40438),o=n(63743),c=n(3382),d=n(64671),u=n(55199),m=n(53202),p=n.n(m),h=n(33097),g=n.n(h),f=n(83136),x=n.n(f),_=n(51941),v=n(98434),A=n(34677),j=n.n(A);const y="style_upload-btn__-6XtP__M7iv4",b="style_square__UPkfA__M7iv4",N="style_is-loading__wx6Pd__M7iv4",S="style_upload-btn-tips__YtxWz__M7iv4",M="style_drop-tips__N-v59__M7iv4",w="style_preview-area__aV3SN__M7iv4";var C=n(18411),F=n(47458),P=n(55431),I=n(70579);const T=["image","width","height","borderRadius","preview","fileSize","accept","renderTips","getApi","shape","border"],k=["image","width","height","borderRadius","getApi","preview","fileSize","accept","renderTips","border","dropModalSize"],{useOnChange:O}=v.hooks,L=i.default.Avatar,R="FormInfo",E=(0,r.Ay)(e=>{let{className:t,icon:n,loading:a,value:l,gender:r,width:i,height:o,children:c,shape:m,defaultAvatar:p,displayAvatar:h,apis:f}=e;const _=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(L,(0,s.A)((0,s.A)({},Object.assign({},"function"===typeof h?h(l):{id:g()(l,"id")})),{},{gender:r,width:64*i/o,height:64,shape:m,defaultAvatar:p,apis:f})),(0,I.jsx)("div",{className:S,children:n||(0,I.jsx)(d.default,{type:"icon-chuanzhaopian",size:16})}),c]});return(0,I.jsx)("div",{className:x()(t,y,{[N]:a,[b]:"square"===m||!(i&&i===o)}),style:{width:64*i/o},children:a?(0,I.jsx)(u.Spin,{children:_}):_})}),D=e=>{let t=e.split(","),n=t[1].substring(0,t[1].length-2),a=t[0].match(/:(.*?);/)[1],s=atob(n),l=s.length,r=new Uint8Array(l);for(;l--;)r[l]=s.charCodeAt(l);return new Blob([r],{type:a})},z=(0,l.forwardRef)((e,t)=>{let{image:n,width:i,height:o,borderRadius:c,preview:m,fileSize:h,accept:g,renderTips:f,getApi:x,shape:v,border:A=1}=e,j=(0,a.A)(e,T);const y=(0,F.useIntl)({moduleName:R}),[b,N]=(0,l.useState)(0),S=(0,l.useRef)(null),[C,P]=(0,l.useState)(n),[k,O]=(0,l.useState)(1),[L,E]=(0,l.useState)(0),[z,U]=(0,l.useState)(""),B=(0,l.useRef)(null);(0,l.useLayoutEffect)(()=>{N(2*S.current.clientWidth/3)},[]),x({getImage:()=>{const e=B.current.getImage(),t=document.createElement("canvas"),n=t.getContext("2d");return t.width=i,t.height=o,n.drawImage(e,0,0,t.width,t.height),new window.File([D(t.toDataURL())],C.name,{type:C.type})}});const W=()=>{U(B.current.getImage().toDataURL())},V=(0,_.useDebouncedCallback)(W,500);return(0,I.jsx)("div",{ref:S,children:(0,I.jsxs)(u.Row,{wrap:!1,align:"middle",children:[(0,I.jsx)(u.Col,{span:m?16:24,children:b&&(0,I.jsxs)(u.Space,{direction:"vertical",children:[(0,I.jsx)(p(),(0,s.A)((0,s.A)({},j),{},{ref:B,image:C,scale:k,rotate:L,width:b-2*A,height:o*b/i-2*A*o/i,border:A,color:[0,0,0,.6],borderRadius:c*b/i,onImageReady:W,onImageChange:V})),(0,I.jsx)("div",{className:M,children:f("".concat(y.formatMessage({id:"PictureFormat"})).concat(g.map(e=>e.replace(/^\./,"")).join(" ")," ").concat(y.formatMessage({id:"ImageSize"})).concat(y.formatMessage({id:"NotExceeding"},{size:h})),{accept:g,fileSize:h})}),(0,I.jsxs)(u.Row,{gutter:14,align:"middle",children:[(0,I.jsx)(u.Col,{children:(0,I.jsx)(u.Tooltip,{title:y.formatMessage({id:"Rotate"}),placement:"bottom",children:(0,I.jsx)(d.default,{type:"icon-xuanzhuan",onClick:()=>{E(e=>(e-90)%360)}})})}),(0,I.jsx)(u.Col,{children:(0,I.jsx)(u.Tooltip,{title:y.formatMessage({id:"ImageFull"}),placement:"bottom",children:(0,I.jsx)(d.default,{type:"icon-chongman",onClick:()=>{O(1)}})})}),(0,I.jsx)(u.Col,{flex:1,children:(0,I.jsx)(u.Slider,{tooltip:{placement:"bottom",formatter:()=>y.formatMessage({id:"Size"})},value:k,step:.05,min:.2,max:3,onChange:O})}),(0,I.jsx)(u.Col,{children:(0,I.jsx)(r.FI,{accept:g,onChange:e=>{e[0].size>1024*h*1024?u.message.error(y.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:h})):(E(0),O(1),P(e[0]))},children:y.formatMessage({id:"ReUpload"})})})]})]})}),m&&(0,I.jsx)(u.Col,{span:8,children:(0,I.jsx)("div",{className:w,children:(0,I.jsxs)(u.Space,{direction:"vertical",children:[(0,I.jsx)(u.Avatar,{src:z,shape:v,style:{width:b/2-36,height:(b/2-36)*o/i}}),(0,I.jsx)("div",{style:{textAlign:"center"},children:y.formatMessage({id:"Preview"})})]})})})]})})}),U=()=>{const e=(0,c.useModal)();return t=>{const n=Object.assign({},{title:"\u7f16\u8f91\u5934\u50cf",width:200,height:200,borderRadius:"circle"===t.shape&&t.width&&t.width===t.height?t.width/2:2,preview:!0},t),{image:l,width:r,height:i,borderRadius:o,getApi:c,preview:d,fileSize:u,accept:m,renderTips:p,border:h,dropModalSize:g}=n,f=(0,a.A)(n,k);return e((0,s.A)((0,s.A)({},f),{},{size:g,children:(0,I.jsx)(z,{preview:d,fileSize:u,accept:m,getApi:c,renderTips:p,width:r,height:i,shape:"circle"===t.shape&&t.width&&t.width===t.height?"circle":"square",borderRadius:o,image:l,border:h,scale:1,rotate:0})}))}},B=(0,F.createWithIntl)({importMessages:P.A,moduleName:"FormInfo"})(e=>{var t;let{value:n,gender:a,fileSize:s=2,accept:r=[".jpg",".png",".jpeg"],openEditor:i=!0,apis:c,renderTips:d=e=>e,onChange:m,shape:p="circle",width:h=200,height:g=200,title:f=(0,I.jsx)(F.IntlProvider,{importMessages:P.A,moduleName:"FormInfo",children:(0,I.jsx)(F.FormattedMessage,{id:"Crop",moduleName:"FormInfo"})}),border:x=1,icon:_,dropModalSize:v="small",defaultAvatar:A=C.A,displayAvatar:y}=e;const[b,N]=(0,l.useState)(!1),{apis:S}=(0,o.usePreset)(),M=j()({},S,c),w=M.ossUpload||M.upload||(null===(t=M.file)||void 0===t?void 0:t.upload),T=(0,l.useRef)(null),k=U(),O=(0,F.useIntl)({moduleName:R});return(0,I.jsx)(E,{value:n,gender:a,accept:r,width:h,height:g,shape:p,icon:_,loading:b,defaultAvatar:A,displayAvatar:y,apis:M,onChange:e=>{if(e[0].size>1024*s*1024)return void u.message.error(O.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:s}));const t=e=>(N(!0),w({file:e}).then(e=>{let{data:t}=e;0===t.code?m(t.data):u.message.error(O.formatMessage({id:"UploadFailed"},{msg:t.msg?":"+t.msg:""}))}).finally(()=>{N(!1)}));i?k({image:e[0],width:h,height:g,title:f,shape:p,border:x,dropModalSize:v,getApi:e=>T.current=e,fileSize:s,accept:r,renderTips:d,onConfirm:()=>{t(T.current.getImage())}}):t(e[0])}})}),W=e=>O(e)(B);W.Field=B,W.useDropModal=U;const V=W},97056:(e,t,n)=>{n.d(t,{A:()=>f});var a=n(89379),s=n(53986),l=n(55199),r=n(64671),i=n(83136),o=n.n(i),c=n(47094),d=n(68532),u=n(41381),m=n(47458),p=n(55431),h=n(70579);const g=["className"],f=(0,m.createWithIntl)({moduleName:"FormInfo",importMessages:p.A})(e=>{let{className:t}=e,n=(0,s.A)(e,g);const{formatMessage:i}=(0,m.useIntl)({moduleName:"FormInfo"});return(0,h.jsx)("div",{className:o()(t,c.A["table-list"]),children:(0,h.jsx)(d.TableList,(0,a.A)((0,a.A)({},n),{},{className:o()(t,c.A["table-list"]),headerRender:(e,t)=>{let{width:n}=t;return(0,h.jsxs)(l.Row,{wrap:!1,className:c.A["table-list-header"],style:{"--col-width":n},children:[e,(0,h.jsx)(l.Col,{className:c.A["table-list-extra"]})]})},headerItemRender:(e,t)=>{let{id:n,isReq:a}=t;return(0,h.jsx)(l.Col,{className:o()({[c.A["is-req"]]:a}),children:e},n)},listRender:(e,t)=>{let{id:n,width:a,onRemove:s,allowRemove:o}=t;return(0,h.jsxs)(l.Row,{wrap:!1,style:{"--col-width":a},children:[e,(0,h.jsx)(l.Col,{className:c.A["table-list-extra"],children:(0,h.jsx)(l.Button,{type:"link",onClick:s,danger:!0,disabled:!o,children:(0,h.jsxs)("span",{children:[(0,h.jsx)(r.default,{type:"shanchu"}),i({id:"delText"})]})})})]},n)},itemRender:e=>(0,h.jsx)(l.Col,{className:c.A["table-list-field"],flex:1,children:e}),children:(e,t)=>{let{title:n,allowAdd:a,onAdd:s}=t;return(0,h.jsx)(u.default.Part,{title:n,className:o()(c.A["table-list-inner"]),extra:a&&(0,h.jsxs)(l.Typography.Link,{className:c.A["list-btn"],onClick:()=>s({isUnshift:!1}),children:[(0,h.jsx)(r.default,{type:"tianjia"}),i({id:"addText"})]}),children:e})}}))})})},97949:(e,t,n)=>{n.d(t,{A:()=>p});var a=n(89379),s=n(55199),l=n(47458),r=n(64671),i=n(47094),o=n(83136),c=n.n(o),d=n(55431),u=n(68532),m=n(70579);const p=(0,l.createWithIntl)({moduleName:"FormInfo",importMessages:d.A})(e=>{const{formatMessage:t}=(0,l.useIntl)({moduleName:"FormInfo"});return(0,m.jsx)(u.MultiField,(0,a.A)((0,a.A)({},e),{},{itemRender:(e,t)=>{let{id:n,index:a,allowRemove:l,onRemove:o}=t;return(0,m.jsxs)("div",{className:c()(i.A["mult-field-item"],"mult-field-item",{[i.A["first-item"]]:0===a}),children:[e,(0,m.jsxs)("div",{className:c()("form-info-mult-option"),children:[(0,m.jsx)("div",{className:c()(i.A["react-form__field-label"],"react-form__field-label","mult-field-delete--label")}),(0,m.jsx)(s.Button,{icon:(0,m.jsx)(r.default,{type:"shanchu"}),onClick:o,disabled:!l})]})]},n)},children:(n,a)=>{let{allowAdd:l,onAdd:o}=a;return(0,m.jsxs)("div",{className:c()(i.A["mult-field"],"mult-field"),children:[n,l&&(0,m.jsx)("div",{className:c()("form-info-mult-add-btn"),children:(0,m.jsxs)(s.Button,{className:i.A["mult-field-add-btn"],type:"dashed",onClick:()=>o({isUnshift:!1}),children:[(0,m.jsx)(r.default,{type:"tianjia"}),t({id:"addSomeThing"},{label:e.label})]})})]})}}))})}}]);
|
|
2
|
+
//# sourceMappingURL=4474.b7917100.chunk.js.map
|