@abtnode/blocklet-services 1.16.20-beta-cf6dfce1 → 1.16.20-beta-148929e2
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/api/index.js +1 -0
- package/api/services/notification/index.js +21 -4
- package/api/services/static.js +1 -1
- package/api/socket/channel/did.js +42 -1
- package/package.json +35 -38
- package/build/asset-manifest.json +0 -225
- package/build/favicon.ico +0 -0
- package/build/images/blocklet.png +0 -0
- package/build/images/https-certificate-icon.png +0 -0
- package/build/images/logo.png +0 -0
- package/build/index.html +0 -1
- package/build/router-template-styles/fonts/lato-latin-400-normal.woff +0 -0
- package/build/router-template-styles/fonts/lato-latin-400-normal.woff2 +0 -0
- package/build/router-template-styles/fonts/lato-latin-ext-400-normal.woff +0 -0
- package/build/router-template-styles/fonts/lato-latin-ext-400-normal.woff2 +0 -0
- package/build/router-template-styles/styles.css +0 -1
- package/build/service-worker.js +0 -3
- package/build/service-worker.js.LICENSE.txt +0 -1
- package/build/service-worker.js.map +0 -1
- package/build/static/css/3154.e954fcda.chunk.css +0 -2
- package/build/static/css/424.13cf051c.chunk.css +0 -2
- package/build/static/css/4802.bf353f58.chunk.css +0 -2
- package/build/static/css/5547.75913953.chunk.css +0 -12
- package/build/static/css/5982.ac464505.chunk.css +0 -2
- package/build/static/css/main.7ea79dc8.css +0 -2
- package/build/static/js/1.138935fc.chunk.js +0 -2
- package/build/static/js/1035.ceeeaa2a.chunk.js +0 -2
- package/build/static/js/1148.d3c53aea.chunk.js +0 -2
- package/build/static/js/1249.ce085f29.chunk.js +0 -3
- package/build/static/js/1249.ce085f29.chunk.js.LICENSE.txt +0 -5
- package/build/static/js/1275.34d2fab6.chunk.js +0 -2
- package/build/static/js/1318.11dffa16.chunk.js +0 -2
- package/build/static/js/1343.69031e0b.chunk.js +0 -2
- package/build/static/js/1359.add26d23.chunk.js +0 -2
- package/build/static/js/1809.2d1a1fe4.chunk.js +0 -2
- package/build/static/js/1946.b8762af5.chunk.js +0 -2
- package/build/static/js/2291.7ffdc7df.chunk.js +0 -2
- package/build/static/js/2362.ab5308a8.chunk.js +0 -2
- package/build/static/js/2631.54f86f84.chunk.js +0 -2
- package/build/static/js/2653.980158ea.chunk.js +0 -2
- package/build/static/js/2664.da443f31.chunk.js +0 -2
- package/build/static/js/2940.5fc76234.chunk.js +0 -2
- package/build/static/js/2988.62cc135c.chunk.js +0 -2
- package/build/static/js/3025.76882d0f.chunk.js +0 -2
- package/build/static/js/3033.f950a32b.chunk.js +0 -2
- package/build/static/js/3131.b2bb8f6c.chunk.js +0 -2
- package/build/static/js/3430.28c5bd04.chunk.js +0 -2
- package/build/static/js/356.0210d3f8.chunk.js +0 -2
- package/build/static/js/3593.b9a1a7f5.chunk.js +0 -2
- package/build/static/js/3842.780dc9e9.chunk.js +0 -3
- package/build/static/js/3842.780dc9e9.chunk.js.LICENSE.txt +0 -5
- package/build/static/js/3925.948d992d.chunk.js +0 -2
- package/build/static/js/3953.ddf8be86.chunk.js +0 -2
- package/build/static/js/3979.2e0c92ff.chunk.js +0 -3
- package/build/static/js/3979.2e0c92ff.chunk.js.LICENSE.txt +0 -155
- package/build/static/js/3994.e53e7ce2.chunk.js +0 -2
- package/build/static/js/4009.65d1c083.chunk.js +0 -2
- package/build/static/js/4023.8c5c7db4.chunk.js +0 -2
- package/build/static/js/4076.8055ce74.chunk.js +0 -2
- package/build/static/js/424.d91b48b7.chunk.js +0 -3
- package/build/static/js/424.d91b48b7.chunk.js.LICENSE.txt +0 -23
- package/build/static/js/4319.8d9e189e.chunk.js +0 -2
- package/build/static/js/4461.a64e7486.chunk.js +0 -2
- package/build/static/js/4587.0d0fd3ae.chunk.js +0 -2
- package/build/static/js/476.f196e88a.chunk.js +0 -2
- package/build/static/js/4802.217e3956.chunk.js +0 -2
- package/build/static/js/4881.1de6ed4a.chunk.js +0 -2
- package/build/static/js/4882.0435e418.chunk.js +0 -2
- package/build/static/js/4917.6e72ef28.chunk.js +0 -2
- package/build/static/js/4961.89add60c.chunk.js +0 -3
- package/build/static/js/4961.89add60c.chunk.js.LICENSE.txt +0 -5
- package/build/static/js/5070.be5019aa.chunk.js +0 -2
- package/build/static/js/5403.56417480.chunk.js +0 -3
- package/build/static/js/5403.56417480.chunk.js.LICENSE.txt +0 -26
- package/build/static/js/5434.523d071d.chunk.js +0 -2
- package/build/static/js/5468.21a861b9.chunk.js +0 -2
- package/build/static/js/5509.a196d497.chunk.js +0 -3
- package/build/static/js/5509.a196d497.chunk.js.LICENSE.txt +0 -1
- package/build/static/js/5547.7468ef6a.chunk.js +0 -3
- package/build/static/js/5547.7468ef6a.chunk.js.LICENSE.txt +0 -62
- package/build/static/js/556.e1875260.chunk.js +0 -3
- package/build/static/js/556.e1875260.chunk.js.LICENSE.txt +0 -5
- package/build/static/js/5569.e4bfe697.chunk.js +0 -2
- package/build/static/js/5645.3c5c0f93.chunk.js +0 -2
- package/build/static/js/5683.cb2ab151.chunk.js +0 -2
- package/build/static/js/5725.c401d636.chunk.js +0 -3
- package/build/static/js/5725.c401d636.chunk.js.LICENSE.txt +0 -7
- package/build/static/js/5785.38eedf8e.chunk.js +0 -2
- package/build/static/js/5820.c40d570f.chunk.js +0 -2
- package/build/static/js/5982.7fb6982b.chunk.js +0 -2
- package/build/static/js/6218.4f3036a7.chunk.js +0 -2
- package/build/static/js/6326.2816fb2f.chunk.js +0 -2
- package/build/static/js/6400.0d9d1b25.chunk.js +0 -2
- package/build/static/js/655.cdee65b4.chunk.js +0 -2
- package/build/static/js/6629.fd9d74f5.chunk.js +0 -3
- package/build/static/js/6629.fd9d74f5.chunk.js.LICENSE.txt +0 -13
- package/build/static/js/6637.b2e35031.chunk.js +0 -2
- package/build/static/js/6658.98f9956d.chunk.js +0 -2
- package/build/static/js/6733.80a6ecbd.chunk.js +0 -2
- package/build/static/js/6771.c9706b0b.chunk.js +0 -3
- package/build/static/js/6771.c9706b0b.chunk.js.LICENSE.txt +0 -18
- package/build/static/js/7006.9a659b1f.chunk.js +0 -2
- package/build/static/js/716.8cd88d8c.chunk.js +0 -3
- package/build/static/js/716.8cd88d8c.chunk.js.LICENSE.txt +0 -5
- package/build/static/js/717.ec2ba6d0.chunk.js +0 -2
- package/build/static/js/7313.b53b59d8.chunk.js +0 -2
- package/build/static/js/7556.218caceb.chunk.js +0 -2
- package/build/static/js/7606.25231f8c.chunk.js +0 -2
- package/build/static/js/779.cbad02fa.chunk.js +0 -2
- package/build/static/js/7832.81aaf011.chunk.js +0 -2
- package/build/static/js/7858.dda2dc10.chunk.js +0 -2
- package/build/static/js/7973.7d559f93.chunk.js +0 -3
- package/build/static/js/7973.7d559f93.chunk.js.LICENSE.txt +0 -13
- package/build/static/js/8283.20452732.chunk.js +0 -2
- package/build/static/js/8393.c6c4c762.chunk.js +0 -2
- package/build/static/js/8604.ece06cf7.chunk.js +0 -3
- package/build/static/js/8604.ece06cf7.chunk.js.LICENSE.txt +0 -6
- package/build/static/js/8622.03f917b3.chunk.js +0 -2
- package/build/static/js/8792.13a6919f.chunk.js +0 -2
- package/build/static/js/8944.6d336f28.chunk.js +0 -2
- package/build/static/js/8983.020df395.chunk.js +0 -2
- package/build/static/js/9017.369db632.chunk.js +0 -2
- package/build/static/js/9194.6800abab.chunk.js +0 -2
- package/build/static/js/9529.c7112fae.chunk.js +0 -2
- package/build/static/js/9582.2c539fcf.chunk.js +0 -2
- package/build/static/js/9657.b03b88e5.chunk.js +0 -2
- package/build/static/js/9900.26718c8f.chunk.js +0 -2
- package/build/static/js/9982.4f1ebb7f.chunk.js +0 -2
- package/build/static/js/9996.5545ea26.chunk.js +0 -2
- package/build/static/js/9997.540afd6e.chunk.js +0 -2
- package/build/static/js/main.606a579e.js +0 -3
- package/build/static/js/main.606a579e.js.LICENSE.txt +0 -152
- package/build/static/media/empty-space-nft.3878bc5c8ba6490ef5075fdda24be921.svg +0 -59
- package/build/static/media/lato-all-400-normal.3dc1eff492ab1f598560.woff +0 -0
- package/build/static/media/lato-all-700-normal.1e7707c9ec98d9b97e7f.woff +0 -0
- package/build/static/media/lato-latin-400-normal.be36596da218e1eec01c.woff2 +0 -0
- package/build/static/media/lato-latin-700-normal.8f28e0e1fdb195149f1c.woff2 +0 -0
- package/build/static/media/lato-latin-ext-400-normal.361f3dbb9db6a5980326.woff2 +0 -0
- package/build/static/media/lato-latin-ext-700-normal.9c8812eaec45956201e1.woff2 +0 -0
- package/build/static/media/space-connected.9a4e18fd2bc7d065191b0d241a131c28.svg +0 -3
- package/build/static/media/studio.f849ff5763d19a78ada7fdeea249f819.svg +0 -23
- package/build/static/media/ubuntu-mono-all-400-normal.c879328bc62e9c68268f.woff +0 -0
- package/build/static/media/ubuntu-mono-cyrillic-400-normal.c367f416832eb8f1b846.woff2 +0 -0
- package/build/static/media/ubuntu-mono-cyrillic-ext-400-normal.eda1c4946b1f7bf58386.woff2 +0 -0
- package/build/static/media/ubuntu-mono-greek-400-normal.22f3bfc91f79c342bdf4.woff2 +0 -0
- package/build/static/media/ubuntu-mono-greek-ext-400-normal.b3459900ea8a25d1f7c2.woff2 +0 -0
- package/build/static/media/ubuntu-mono-latin-400-normal.18e32d9d743af28f913e.woff2 +0 -0
- package/build/static/media/ubuntu-mono-latin-ext-400-normal.b56e2315611d10838ad5.woff2 +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[2362],{23299:function(o,t,e){e.d(t,{Z:function(){return w}});var r,n=e(71171),a=e(33028),i=e(59740),l=e(24974),d=e.n(l),c=e(33359),s={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"},u=e(30969),p=e(6200),v=e(55581),b=e(37574),g=function(o,t){t.name,t.alternative;return function(t){return(0,u.useEffect)((function(){}),[]),(0,b.jsx)(o,(0,a.Z)({},t))}},f=["name","color","size","variant","rounded","style","className","forwardedRef"],m={light:"fal",regular:"far",solid:"fas"};function h(o){var t=o.name,e=o.color,r=o.size,n=o.variant,l=o.rounded,d=o.style,c=o.className,s=o.forwardedRef,u=(0,i.Z)(o,f),p=(0,b.jsx)("i",{ref:s,className:"".concat(m[n]," fa-").concat(t," ").concat(l?"":c),style:Object.assign({color:e,fontSize:"".concat(r,"px")},d||{})});return l?(0,b.jsx)(x,(0,a.Z)((0,a.Z)({ref:s,size:r,color:e,className:c},u),{},{children:p})):p}h.propTypes={name:d().string.isRequired,className:d().string,color:d().string,rounded:d().bool,variant:d().string,size:d().number,style:d().object},h.defaultProps={rounded:!1,variant:"light",color:p.Z.grey[900],className:"",size:24,style:{}};var Z,x=(0,v.zo)("span")(r||(r=(0,n.Z)(["\n width: ","px;\n height: ","px;\n border-radius: 50%;\n border: 1px solid ",";\n display: flex;\n justify-content: center;\n align-items: center;\n\n .fa,\n .fas,\n .fal,\n .far {\n line-height: ","px;\n }\n"])),(function(o){return 2*o.size}),(function(o){return 2*o.size}),(function(o){return o.color}),(function(o){return o.size})),y=g((0,u.forwardRef)((function(o,t){return(0,b.jsx)(h,(0,a.Z)((0,a.Z)({},o),{},{forwardedRef:t}))})),{name:"Icon",alternative:"SVG icons"}),B=e(79216),R=["type","children","style","className","variant"],C={error:{icon:"exclamation-circle",color:p.Z.error.main,borderColor:"#e35b54",backgroundColor:"rgba(227, 91, 84, 0.2)"},warning:{icon:"exclamation-triangle",color:p.Z.warning.main,borderColor:"#f7d040",backgroundColor:"rgba(247, 208, 64, 0.2)"},success:{icon:"check-circle",color:p.Z.success.main,borderColor:"#89ddd9",backgroundColor:"rgba(137, 221, 217, 0.2)"},tip:{icon:"info-circle",color:p.Z.grey[500],borderColor:"#222222",backgroundColor:"#EEEEEE"}};function z(o){var t=(0,B.dG)(o,z,["style"]),e=t.type,r=t.children,n=t.style,l=t.className,d=t.variant,u=(0,i.Z)(t,R),p=C[e]||C.success,v=p.icon,g=p.color,f=p.backgroundColor,m=p.borderColor,h=Object.assign({color:s[500],backgroundColor:"border"===d?f:"transparent",borderLeft:"border"===d?"5px solid ".concat(m):"none"},n);return(0,b.jsxs)(E,(0,a.Z)((0,a.Z)({},u),{},{className:"alert alert--".concat(e," alert--").concat(d," ").concat(l).trim(),style:h,children:["icon"===d&&(0,b.jsx)(y,{className:"alert-icon",name:v,size:24,style:{color:g}}),(0,b.jsx)(c.Z,{component:"div",className:"alert-content",children:r})]}))}z.propTypes={type:d().oneOf(Object.keys(C)),children:d().any.isRequired,className:d().string,style:d().oneOfType([d().object,d().string]),variant:d().oneOf(["border","icon"])},z.defaultProps={type:"tip",className:"",style:"{}",variant:"border"};var w=g(z,{name:"Alert",alternative:"@mui/material/Alert"}),E=(0,v.zo)("div")(Z||(Z=(0,n.Z)(["\n display: flex;\n align-items: center;\n font-size: 16px;\n margin: 0;\n padding: 16px;\n margin: 16px 0;\n\n strong {\n margin: 0 5px;\n }\n\n .alert-icon {\n margin-right: 16px;\n }\n\n .alert-content {\n flex: 1;\n display: flex;\n flex-direction: column;\n }\n"])))},27265:function(o,t,e){e.d(t,{Z:function(){return B}});var r=e(56666),n=e(31461),a=e(7896),i=e(30969),l=e(87023),d=e(26540),c=e(74262);var s=e(24099),u=e(45971),p=e(17363),v=e(62746),b=e(2975);function g(o){return(0,b.Z)("MuiButtonGroup",o)}var f=(0,v.Z)("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),m=e(68734),h=e(94766),Z=e(37574),x=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],y=(0,u.ZP)("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:function(o,t){var e=o.ownerState;return[(0,r.Z)({},"& .".concat(f.grouped),t.grouped),(0,r.Z)({},"& .".concat(f.grouped),t["grouped".concat((0,s.Z)(e.orientation))]),(0,r.Z)({},"& .".concat(f.grouped),t["grouped".concat((0,s.Z)(e.variant))]),(0,r.Z)({},"& .".concat(f.grouped),t["grouped".concat((0,s.Z)(e.variant)).concat((0,s.Z)(e.orientation))]),(0,r.Z)({},"& .".concat(f.grouped),t["grouped".concat((0,s.Z)(e.variant)).concat((0,s.Z)(e.color))]),(0,r.Z)({},"& .".concat(f.firstButton),t.firstButton),(0,r.Z)({},"& .".concat(f.lastButton),t.lastButton),(0,r.Z)({},"& .".concat(f.middleButton),t.middleButton),t.root,t[e.variant],!0===e.disableElevation&&t.disableElevation,e.fullWidth&&t.fullWidth,"vertical"===e.orientation&&t.vertical]}})((function(o){var t,e=o.theme,n=o.ownerState;return(0,a.Z)({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius},"contained"===n.variant&&{boxShadow:(e.vars||e).shadows[2]},n.disableElevation&&{boxShadow:"none"},n.fullWidth&&{width:"100%"},"vertical"===n.orientation&&{flexDirection:"column"},(t={},(0,r.Z)(t,"& .".concat(f.grouped),(0,a.Z)({minWidth:40,"&:hover":(0,a.Z)({},"contained"===n.variant&&{boxShadow:"none"})},"contained"===n.variant&&{boxShadow:"none"})),(0,r.Z)(t,"& .".concat(f.firstButton,",& .").concat(f.middleButton),(0,a.Z)({},"horizontal"===n.orientation&&{borderTopRightRadius:0,borderBottomRightRadius:0},"vertical"===n.orientation&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},"text"===n.variant&&"horizontal"===n.orientation&&(0,r.Z)({borderRight:e.vars?"1px solid rgba(".concat(e.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"&.".concat(f.disabled),{borderRight:"1px solid ".concat((e.vars||e).palette.action.disabled)}),"text"===n.variant&&"vertical"===n.orientation&&(0,r.Z)({borderBottom:e.vars?"1px solid rgba(".concat(e.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"&.".concat(f.disabled),{borderBottom:"1px solid ".concat((e.vars||e).palette.action.disabled)}),"text"===n.variant&&"inherit"!==n.color&&{borderColor:e.vars?"rgba(".concat(e.vars.palette[n.color].mainChannel," / 0.5)"):(0,c.Fq)(e.palette[n.color].main,.5)},"outlined"===n.variant&&"horizontal"===n.orientation&&{borderRightColor:"transparent"},"outlined"===n.variant&&"vertical"===n.orientation&&{borderBottomColor:"transparent"},"contained"===n.variant&&"horizontal"===n.orientation&&(0,r.Z)({borderRight:"1px solid ".concat((e.vars||e).palette.grey[400])},"&.".concat(f.disabled),{borderRight:"1px solid ".concat((e.vars||e).palette.action.disabled)}),"contained"===n.variant&&"vertical"===n.orientation&&(0,r.Z)({borderBottom:"1px solid ".concat((e.vars||e).palette.grey[400])},"&.".concat(f.disabled),{borderBottom:"1px solid ".concat((e.vars||e).palette.action.disabled)}),"contained"===n.variant&&"inherit"!==n.color&&{borderColor:(e.vars||e).palette[n.color].dark},{"&:hover":(0,a.Z)({},"outlined"===n.variant&&"horizontal"===n.orientation&&{borderRightColor:"currentColor"},"outlined"===n.variant&&"vertical"===n.orientation&&{borderBottomColor:"currentColor"})})),(0,r.Z)(t,"& .".concat(f.lastButton,",& .").concat(f.middleButton),(0,a.Z)({},"horizontal"===n.orientation&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},"vertical"===n.orientation&&{borderTopRightRadius:0,borderTopLeftRadius:0},"outlined"===n.variant&&"horizontal"===n.orientation&&{marginLeft:-1},"outlined"===n.variant&&"vertical"===n.orientation&&{marginTop:-1})),t))})),B=i.forwardRef((function(o,t){var e=(0,p.Z)({props:o,name:"MuiButtonGroup"}),r=e.children,c=e.className,u=e.color,v=void 0===u?"primary":u,b=e.component,f=void 0===b?"div":b,B=e.disabled,R=void 0!==B&&B,C=e.disableElevation,z=void 0!==C&&C,w=e.disableFocusRipple,E=void 0!==w&&w,k=e.disableRipple,N=void 0!==k&&k,j=e.fullWidth,T=void 0!==j&&j,S=e.orientation,O=void 0===S?"horizontal":S,W=e.size,P=void 0===W?"medium":W,A=e.variant,G=void 0===A?"outlined":A,L=(0,n.Z)(e,x),V=(0,a.Z)({},e,{color:v,component:f,disabled:R,disableElevation:z,disableFocusRipple:E,disableRipple:N,fullWidth:T,orientation:O,size:P,variant:G}),_=function(o){var t=o.classes,e=o.color,r=o.disabled,n=o.disableElevation,a=o.fullWidth,i=o.orientation,l=o.variant,c={root:["root",l,"vertical"===i&&"vertical",a&&"fullWidth",n&&"disableElevation"],grouped:["grouped","grouped".concat((0,s.Z)(i)),"grouped".concat((0,s.Z)(l)),"grouped".concat((0,s.Z)(l)).concat((0,s.Z)(i)),"grouped".concat((0,s.Z)(l)).concat((0,s.Z)(e)),r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,d.Z)(c,g,t)}(V),F=i.useMemo((function(){return{className:_.grouped,color:v,disabled:R,disableElevation:z,disableFocusRipple:E,disableRipple:N,fullWidth:T,size:P,variant:G}}),[v,R,z,E,N,T,P,G,_.grouped]),M=function(o){return i.Children.toArray(o).filter((function(o){return i.isValidElement(o)}))}(r),H=M.length,q=function(o){var t=0===o,e=o===H-1;return t&&e?"":t?_.firstButton:e?_.lastButton:_.middleButton};return(0,Z.jsx)(y,(0,a.Z)({as:f,role:"group",className:(0,l.Z)(_.root,c),ref:t,ownerState:V},L,{children:(0,Z.jsx)(m.Z.Provider,{value:F,children:M.map((function(o,t){return(0,Z.jsx)(h.Z.Provider,{value:q(t),children:o},t)}))})}))}))}}]);
|
|
2
|
-
//# sourceMappingURL=2362.ab5308a8.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[2631],{49132:function(e,t,r){"use strict";function n(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return n[a++]})))).name="Invariant Violation"}throw i.framesToPop=1,i}}r.d(t,{k:function(){return n}})},16193:function(e,t,r){"use strict";function n(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var s=i[c];if(!u(s))return!1;var f=e[s],l=t[s];if(!1===(o=r?r.call(n,f,l,s):void 0)||void 0===o&&f!==l)return!1}return!0}r.d(t,{w:function(){return n}})},78489:function(e,t,r){e=r.nmd(e);var n="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,u="[object Arguments]",c="[object Array]",s="[object AsyncFunction]",f="[object Boolean]",l="[object Date]",d="[object Error]",h="[object Function]",p="[object GeneratorFunction]",g="[object Map]",v="[object Number]",y="[object Null]",b="[object Object]",m="[object Promise]",O="[object Proxy]",D="[object RegExp]",w="[object Set]",S="[object String]",k="[object Symbol]",I="[object Undefined]",T="[object WeakMap]",C="[object ArrayBuffer]",E="[object DataView]",j=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,_={};_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_[u]=_[c]=_[C]=_[f]=_[E]=_[l]=_[d]=_[h]=_[g]=_[v]=_[b]=_[D]=_[w]=_[S]=_[T]=!1;var A="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,x="object"==typeof self&&self&&self.Object===Object&&self,R=A||x||Function("return this")(),M=t&&!t.nodeType&&t,N=M&&e&&!e.nodeType&&e,L=N&&N.exports===M,H=L&&A.process,U=function(){try{return H&&H.binding&&H.binding("util")}catch(e){}}(),F=U&&U.isTypedArray;function z(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function B(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function W(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var $,G,Y=Array.prototype,q=Function.prototype,X=Object.prototype,K=R["__core-js_shared__"],V=q.toString,Z=X.hasOwnProperty,J=function(){var e=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Q=X.toString,ee=RegExp("^"+V.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),te=L?R.Buffer:void 0,re=R.Symbol,ne=R.Uint8Array,oe=X.propertyIsEnumerable,ie=Y.splice,ae=re?re.toStringTag:void 0,ue=Object.getOwnPropertySymbols,ce=te?te.isBuffer:void 0,se=($=Object.keys,G=Object,function(e){return $(G(e))}),fe=He(R,"DataView"),le=He(R,"Map"),de=He(R,"Promise"),he=He(R,"Set"),pe=He(R,"WeakMap"),ge=He(Object,"create"),ve=Be(fe),ye=Be(le),be=Be(de),me=Be(he),Oe=Be(pe),De=re?re.prototype:void 0,we=De?De.valueOf:void 0;function Se(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ke(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Ie(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Te(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Ie;++t<r;)this.add(e[t])}function Ce(e){var t=this.__data__=new ke(e);this.size=t.size}function Ee(e,t){var r=Ge(e),n=!r&&$e(e),o=!r&&!n&&Ye(e),i=!r&&!n&&!o&&Ze(e),a=r||n||o||i,u=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=u.length;for(var s in e)!t&&!Z.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||ze(s,c))||u.push(s);return u}function je(e,t){for(var r=e.length;r--;)if(We(e[r][0],t))return r;return-1}function Pe(e){return null==e?void 0===e?I:y:ae&&ae in Object(e)?function(e){var t=Z.call(e,ae),r=e[ae];try{e[ae]=void 0;var n=!0}catch(i){}var o=Q.call(e);n&&(t?e[ae]=r:delete e[ae]);return o}(e):function(e){return Q.call(e)}(e)}function _e(e){return Ve(e)&&Pe(e)==u}function Ae(e,t,r,n,a){return e===t||(null==e||null==t||!Ve(e)&&!Ve(t)?e!==e&&t!==t:function(e,t,r,n,a,s){var h=Ge(e),p=Ge(t),y=h?c:Fe(e),m=p?c:Fe(t),O=(y=y==u?b:y)==b,I=(m=m==u?b:m)==b,T=y==m;if(T&&Ye(e)){if(!Ye(t))return!1;h=!0,O=!1}if(T&&!O)return s||(s=new Ce),h||Ze(e)?Me(e,t,r,n,a,s):function(e,t,r,n,a,u,c){switch(r){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case C:return!(e.byteLength!=t.byteLength||!u(new ne(e),new ne(t)));case f:case l:case v:return We(+e,+t);case d:return e.name==t.name&&e.message==t.message;case D:case S:return e==t+"";case g:var s=B;case w:var h=n&o;if(s||(s=W),e.size!=t.size&&!h)return!1;var p=c.get(e);if(p)return p==t;n|=i,c.set(e,t);var y=Me(s(e),s(t),n,a,u,c);return c.delete(e),y;case k:if(we)return we.call(e)==we.call(t)}return!1}(e,t,y,r,n,a,s);if(!(r&o)){var j=O&&Z.call(e,"__wrapped__"),P=I&&Z.call(t,"__wrapped__");if(j||P){var _=j?e.value():e,A=P?t.value():t;return s||(s=new Ce),a(_,A,r,n,s)}}if(!T)return!1;return s||(s=new Ce),function(e,t,r,n,i,a){var u=r&o,c=Ne(e),s=c.length,f=Ne(t),l=f.length;if(s!=l&&!u)return!1;var d=s;for(;d--;){var h=c[d];if(!(u?h in t:Z.call(t,h)))return!1}var p=a.get(e);if(p&&a.get(t))return p==t;var g=!0;a.set(e,t),a.set(t,e);var v=u;for(;++d<s;){var y=e[h=c[d]],b=t[h];if(n)var m=u?n(b,y,h,t,e,a):n(y,b,h,e,t,a);if(!(void 0===m?y===b||i(y,b,r,n,a):m)){g=!1;break}v||(v="constructor"==h)}if(g&&!v){var O=e.constructor,D=t.constructor;O==D||!("constructor"in e)||!("constructor"in t)||"function"==typeof O&&O instanceof O&&"function"==typeof D&&D instanceof D||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,r,n,a,s)}(e,t,r,n,Ae,a))}function xe(e){return!(!Ke(e)||function(e){return!!J&&J in e}(e))&&(qe(e)?ee:j).test(Be(e))}function Re(e){if(!function(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||X;return e===r}(e))return se(e);var t=[];for(var r in Object(e))Z.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Me(e,t,r,n,a,u){var c=r&o,s=e.length,f=t.length;if(s!=f&&!(c&&f>s))return!1;var l=u.get(e);if(l&&u.get(t))return l==t;var d=-1,h=!0,p=r&i?new Te:void 0;for(u.set(e,t),u.set(t,e);++d<s;){var g=e[d],v=t[d];if(n)var y=c?n(v,g,d,t,e,u):n(g,v,d,e,t,u);if(void 0!==y){if(y)continue;h=!1;break}if(p){if(!z(t,(function(e,t){if(o=t,!p.has(o)&&(g===e||a(g,e,r,n,u)))return p.push(t);var o}))){h=!1;break}}else if(g!==v&&!a(g,v,r,n,u)){h=!1;break}}return u.delete(e),u.delete(t),h}function Ne(e){return function(e,t,r){var n=t(e);return Ge(e)?n:function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}(n,r(e))}(e,Je,Ue)}function Le(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function He(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return xe(r)?r:void 0}Se.prototype.clear=function(){this.__data__=ge?ge(null):{},this.size=0},Se.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Se.prototype.get=function(e){var t=this.__data__;if(ge){var r=t[e];return r===n?void 0:r}return Z.call(t,e)?t[e]:void 0},Se.prototype.has=function(e){var t=this.__data__;return ge?void 0!==t[e]:Z.call(t,e)},Se.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ge&&void 0===t?n:t,this},ke.prototype.clear=function(){this.__data__=[],this.size=0},ke.prototype.delete=function(e){var t=this.__data__,r=je(t,e);return!(r<0)&&(r==t.length-1?t.pop():ie.call(t,r,1),--this.size,!0)},ke.prototype.get=function(e){var t=this.__data__,r=je(t,e);return r<0?void 0:t[r][1]},ke.prototype.has=function(e){return je(this.__data__,e)>-1},ke.prototype.set=function(e,t){var r=this.__data__,n=je(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Ie.prototype.clear=function(){this.size=0,this.__data__={hash:new Se,map:new(le||ke),string:new Se}},Ie.prototype.delete=function(e){var t=Le(this,e).delete(e);return this.size-=t?1:0,t},Ie.prototype.get=function(e){return Le(this,e).get(e)},Ie.prototype.has=function(e){return Le(this,e).has(e)},Ie.prototype.set=function(e,t){var r=Le(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Te.prototype.add=Te.prototype.push=function(e){return this.__data__.set(e,n),this},Te.prototype.has=function(e){return this.__data__.has(e)},Ce.prototype.clear=function(){this.__data__=new ke,this.size=0},Ce.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Ce.prototype.get=function(e){return this.__data__.get(e)},Ce.prototype.has=function(e){return this.__data__.has(e)},Ce.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ke){var n=r.__data__;if(!le||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ie(n)}return r.set(e,t),this.size=r.size,this};var Ue=ue?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}(ue(e),(function(t){return oe.call(e,t)})))}:function(){return[]},Fe=Pe;function ze(e,t){return!!(t=null==t?a:t)&&("number"==typeof e||P.test(e))&&e>-1&&e%1==0&&e<t}function Be(e){if(null!=e){try{return V.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function We(e,t){return e===t||e!==e&&t!==t}(fe&&Fe(new fe(new ArrayBuffer(1)))!=E||le&&Fe(new le)!=g||de&&Fe(de.resolve())!=m||he&&Fe(new he)!=w||pe&&Fe(new pe)!=T)&&(Fe=function(e){var t=Pe(e),r=t==b?e.constructor:void 0,n=r?Be(r):"";if(n)switch(n){case ve:return E;case ye:return g;case be:return m;case me:return w;case Oe:return T}return t});var $e=_e(function(){return arguments}())?_e:function(e){return Ve(e)&&Z.call(e,"callee")&&!oe.call(e,"callee")},Ge=Array.isArray;var Ye=ce||function(){return!1};function qe(e){if(!Ke(e))return!1;var t=Pe(e);return t==h||t==p||t==s||t==O}function Xe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Ke(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ve(e){return null!=e&&"object"==typeof e}var Ze=F?function(e){return function(t){return e(t)}}(F):function(e){return Ve(e)&&Xe(e.length)&&!!_[Pe(e)]};function Je(e){return null!=(t=e)&&Xe(t.length)&&!qe(t)?Ee(e):Re(e);var t}e.exports=function(e,t){return Ae(e,t)}},96605:function(e,t,r){"use strict";r.r(t),r.d(t,{HTML5Backend:function(){return R},NativeTypes:function(){return n},getEmptyImage:function(){return x}});var n={};function o(e){var t=null;return function(){return null==t&&(t=e()),t}}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}r.r(n),r.d(n,{FILE:function(){return v},TEXT:function(){return b},URL:function(){return y}});var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entered=[],this.isNodeInDocument=t}var t,r,n;return t=e,(r=[{key:"enter",value:function(e){var t=this,r=this.entered.length;return this.entered=function(e,t){var r=new Set,n=function(e){return r.add(e)};e.forEach(n),t.forEach(n);var o=[];return r.forEach((function(e){return o.push(e)})),o}(this.entered.filter((function(r){return t.isNodeInDocument(r)&&(!r.contains||r.contains(e))})),[e]),0===r&&this.entered.length>0}},{key:"leave",value:function(e){var t,r,n=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),r=e,t.filter((function(e){return e!==r}))),n>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&i(t.prototype,r),n&&i(t,n),e}(),u=o((function(){return/firefox/i.test(navigator.userAgent)})),c=o((function(){return Boolean(window.safari)}));function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var f=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=t.length,o=[],i=0;i<n;i++)o.push(i);o.sort((function(e,r){return t[e]<t[r]?-1:1}));for(var a,u,c=[],s=[],f=[],l=0;l<n-1;l++)a=t[l+1]-t[l],u=r[l+1]-r[l],s.push(a),c.push(u),f.push(u/a);for(var d=[f[0]],h=0;h<s.length-1;h++){var p=f[h],g=f[h+1];if(p*g<=0)d.push(0);else{a=s[h];var v=s[h+1],y=a+v;d.push(3*y/((y+v)/p+(y+a)/g))}}d.push(f[f.length-1]);for(var b,m=[],O=[],D=0;D<d.length-1;D++){b=f[D];var w=d[D],S=1/s[D],k=w+d[D+1]-b-b;m.push((b-w-k)*S),O.push(k*S*S)}this.xs=t,this.ys=r,this.c1s=d,this.c2s=m,this.c3s=O}var t,r,n;return t=e,(r=[{key:"interpolate",value:function(e){var t=this.xs,r=this.ys,n=this.c1s,o=this.c2s,i=this.c3s,a=t.length-1;if(e===t[a])return r[a];for(var u,c=0,s=i.length-1;c<=s;){var f=t[u=Math.floor(.5*(c+s))];if(f<e)c=u+1;else{if(!(f>e))return r[u];s=u-1}}var l=e-t[a=Math.max(0,s)],d=l*l;return r[a]+n[a]*l+o[a]*d+i[a]*l*d}}])&&s(t.prototype,r),n&&s(t,n),e}(),l=1;function d(e){var t=e.nodeType===l?e:e.parentElement;if(!t)return null;var r=t.getBoundingClientRect(),n=r.top;return{x:r.left,y:n}}function h(e){return{x:e.clientX,y:e.clientY}}function p(e,t,r,n,o){var i=function(e){var t;return"IMG"===e.nodeName&&(u()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),a=d(i?e:t),s={x:r.x-a.x,y:r.y-a.y},l=e.offsetWidth,h=e.offsetHeight,p=n.anchorX,g=n.anchorY,v=function(e,t,r,n){var o=e?t.width:r,i=e?t.height:n;return c()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(i,t,l,h),y=v.dragPreviewWidth,b=v.dragPreviewHeight,m=o.offsetX,O=o.offsetY,D=0===O||O;return{x:0===m||m?m:new f([0,.5,1],[s.x,s.x/l*y,s.x+y-l]).interpolate(p),y:D?O:function(){var e=new f([0,.5,1],[s.y,s.y/h*b,s.y+b-h]).interpolate(g);return c()&&i&&(e+=(window.devicePixelRatio-1)*b),e}()}}var g,v="__NATIVE_FILE__",y="__NATIVE_URL__",b="__NATIVE_TEXT__";function m(e,t,r){var n=t.reduce((function(t,r){return t||e.getData(r)}),"");return null!=n?n:r}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var D=(O(g={},v,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),O(g,y,{exposeProperties:{urls:function(e,t){return m(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),O(g,b,{exposeProperties:{text:function(e,t){return m(e,t,"")}},matchesTypes:["Text","text/plain"]}),g);function w(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var S=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.item={},this.initializeExposedProperties()}var t,r,n;return t=e,(r=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach((function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var r={};Object.keys(this.config.exposeProperties).forEach((function(n){r[n]={value:t.config.exposeProperties[n](e,t.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,r)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&w(t.prototype,r),n&&w(t,n),e}();function k(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(D).filter((function(e){return D[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}function I(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var T=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.globalContext=t}var t,r,n;return t=e,(r=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!==typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&I(t.prototype,r),n&&I(t,n),e}();function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach((function(t){j(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function j(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var _,A=function(){function e(t,r){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(e){var t=n.sourceNodes.get(e);return t&&d(t)||null},this.endDragNativeItem=function(){n.isDraggingNativeItem()&&(n.actions.endDrag(),n.currentNativeHandle&&n.registry.removeSource(n.currentNativeHandle),n.currentNativeHandle=null,n.currentNativeSource=null)},this.isNodeInDocument=function(e){return Boolean(e&&n.document&&n.document.body&&document.body.contains(e))},this.endDragIfSourceWasRemovedFromDOM=function(){var e=n.currentDragSourceNode;n.isNodeInDocument(e)||n.clearCurrentDragSourceNode()&&n.actions.endDrag()},this.handleTopDragStartCapture=function(){n.clearCurrentDragSourceNode(),n.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=n.dragStartSourceIds;n.dragStartSourceIds=null;var r=h(e);n.monitor.isDragging()&&n.actions.endDrag(),n.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:n.getSourceClientOffset,clientOffset:r});var o=e.dataTransfer,i=k(o);if(n.monitor.isDragging()){if(o&&"function"===typeof o.setDragImage){var a=n.monitor.getSourceId(),u=n.sourceNodes.get(a),c=n.sourcePreviewNodes.get(a)||u;if(c){var s=n.getCurrentSourcePreviewNodeOptions(),f=p(u,c,r,{anchorX:s.anchorX,anchorY:s.anchorY},{offsetX:s.offsetX,offsetY:s.offsetY});o.setDragImage(c,f.x,f.y)}}try{null===o||void 0===o||o.setData("application/json",{})}catch(l){}n.setCurrentDragSourceNode(e.target),n.getCurrentSourcePreviewNodeOptions().captureDraggingState?n.actions.publishDragSource():setTimeout((function(){return n.actions.publishDragSource()}),0)}else if(i)n.beginDragNativeItem(i);else{if(o&&!o.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}},this.handleTopDragEndCapture=function(){n.clearCurrentDragSourceNode()&&n.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(n.dragEnterTargetIds=[],n.enterLeaveCounter.enter(e.target)&&!n.monitor.isDragging()){var t=e.dataTransfer,r=k(t);r&&n.beginDragNativeItem(r,t)}},this.handleTopDragEnter=function(e){var t=n.dragEnterTargetIds;(n.dragEnterTargetIds=[],n.monitor.isDragging())&&(n.altKeyPressed=e.altKey,u()||n.actions.hover(t,{clientOffset:h(e)}),t.some((function(e){return n.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=n.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){n.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var t=n.dragOverTargetIds;if(n.dragOverTargetIds=[],!n.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));n.altKeyPressed=e.altKey,n.actions.hover(t||[],{clientOffset:h(e)}),(t||[]).some((function(e){return n.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=n.getCurrentDropEffect())):n.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){n.isDraggingNativeItem()&&e.preventDefault(),n.enterLeaveCounter.leave(e.target)&&n.isDraggingNativeItem()&&n.endDragNativeItem()},this.handleTopDropCapture=function(e){var t;(n.dropTargetIds=[],e.preventDefault(),n.isDraggingNativeItem())&&(null===(t=n.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));n.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=n.dropTargetIds;n.dropTargetIds=[],n.actions.hover(t,{clientOffset:h(e)}),n.actions.drop({dropEffect:n.getCurrentDropEffect()}),n.isDraggingNativeItem()?n.endDragNativeItem():n.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(e){var t=e.target;"function"===typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new T(r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new a(this.isNodeInDocument)}var t,r,o;return t=e,(r=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"connectDragPreview",value:function(e,t,r){var n=this;return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),function(){n.sourcePreviewNodes.delete(e),n.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,r){var n=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);var o=function(t){return n.handleDragStart(t,e)},i=function(e){return n.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){n.sourceNodes.delete(e),n.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var r=this,n=function(t){return r.handleDragEnter(t,e)},o=function(t){return r.handleDragOver(t,e)},i=function(t){return r.handleDrop(t,e)};return t.addEventListener("dragenter",n),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",n),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return E({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return E({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(n).some((function(t){return n[t]===e}))}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var r=new S(D[e]);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((function(){return t.window&&t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}])&&P(t.prototype,r),o&&P(t,o),e}();function x(){return _||((_=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),_}var R=function(e,t){return new A(e,t)}},46636:function(e,t,r){"use strict";r.d(t,{L:function(){return Se},W:function(){return ke}});var n=r(30969),o=r(20655),i="dnd-core/INIT_COORDS",a="dnd-core/BEGIN_DRAG",u="dnd-core/PUBLISH_DRAG_SOURCE",c="dnd-core/HOVER",s="dnd-core/DROP",f="dnd-core/END_DRAG",l=function(e,t){return e===t};function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function v(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,n=arguments.length>1?arguments[1]:void 0,o=n.payload;switch(n.type){case i:case a:return{initialSourceClientOffset:o.sourceClientOffset,initialClientOffset:o.clientOffset,clientOffset:o.clientOffset};case c:return e=r.clientOffset,t=o.clientOffset,!e&&!t||e&&t&&e.x===t.x&&e.y===t.y?r:h(h({},r),{},{clientOffset:o.clientOffset});case f:case s:return g;default:return r}}var y="dnd-core/ADD_SOURCE",b="dnd-core/ADD_TARGET",m="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function D(e){return D="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function w(e){return"object"===D(e)}function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var T={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function C(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,n=arguments.length>1?arguments[1]:void 0,o=n.payload;switch(n.type){case a:return k(k({},r),{},{itemType:o.itemType,item:o.item,sourceId:o.sourceId,isSourcePublic:o.isSourcePublic,dropResult:null,didDrop:!1});case u:return k(k({},r),{},{isSourcePublic:!0});case c:return k(k({},r),{},{targetIds:o.targetIds});case O:return-1===r.targetIds.indexOf(o.targetId)?r:k(k({},r),{},{targetIds:(e=r.targetIds,t=o.targetId,e.filter((function(e){return e!==t})))});case s:return k(k({},r),{},{dropResult:o.dropResult,didDrop:!0,targetIds:[]});case f:return k(k({},r),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return r}}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case y:case b:return e+1;case m:case O:return e-1;default:return e}}var j=[],P=[];function _(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case c:break;case y:case b:case O:case m:return j;default:return P}var t=e.payload,r=t.targetIds,n=void 0===r?[]:r,o=t.prevTargetIds,i=void 0===o?[]:o,a=function(e,t){var r=new Map,n=function(e){r.set(e,r.has(e)?r.get(e)+1:1)};e.forEach(n),t.forEach(n);var o=[];return r.forEach((function(e,t){1===e&&o.push(t)})),o}(n,i),u=a.length>0||!function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}(n,i);if(!u)return j;var s=i[i.length-1],f=n[n.length-1];return s!==f&&(s&&a.push(s),f&&a.push(f)),a}function A(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){M(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function M(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N(){var e,t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:_(n.dirtyHandlerIds,{type:o.type,payload:R(R({},o.payload),{},{prevTargetIds:(e=n,t="dragOperation.targetIds",r=[],t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:r||null}),e))})}),dragOffset:v(n.dragOffset,o),refCount:E(n.refCount,o),dragOperation:C(n.dragOperation,o),stateId:A(n.stateId)}}j.__IS_NONE__=!0,P.__IS_ALL__=!0;var L=r(49132);function H(e,t){return{type:i,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var U={type:i,payload:{clientOffset:null,sourceClientOffset:null}};function F(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},n=r.publishSource,o=void 0===n||n,i=r.clientOffset,u=r.getSourceClientOffset,c=e.getMonitor(),s=e.getRegistry();e.dispatch(H(i)),function(e,t,r){(0,L.k)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){(0,L.k)(r.getSource(e),"Expected sourceIds to be registered.")}))}(t,c,s);var f=function(e,t){for(var r=null,n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}(t,c);if(null!==f){var l=null;if(i){if(!u)throw new Error("getSourceClientOffset must be defined");!function(e){(0,L.k)("function"===typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(u),l=u(f)}e.dispatch(H(i,l));var d=s.getSource(f).beginDrag(c,f);!function(e){(0,L.k)(w(e),"Item must be an object.")}(d),s.pinSource(f);var h=s.getSourceType(f);return{type:a,payload:{itemType:h,item:d,sourceId:f,clientOffset:i||null,sourceClientOffset:l||null,isSourcePublic:!!o}}}e.dispatch(U)}}function z(e){return function(){if(e.getMonitor().isDragging())return{type:u}}}function B(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function W(e){return function(t){var r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(e){(0,L.k)(Array.isArray(e),"Expected targetIds to be an array.")}(t);var n=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,r){(0,L.k)(t.isDragging(),"Cannot call hover while not dragging."),(0,L.k)(!t.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var o=e[n];(0,L.k)(e.lastIndexOf(o)===n,"Expected targetIds to be unique in the passed array.");var i=r.getTarget(o);(0,L.k)(i,"Expected targetIds to be registered.")}}(n,o,i),function(e,t,r){for(var n=e.length-1;n>=0;n--){var o=e[n];B(t.getTargetType(o),r)||e.splice(n,1)}}(n,i,o.getItemType()),function(e,t,r){e.forEach((function(e){r.getTarget(e).hover(t,e)}))}(n,o,i),{type:c,payload:{targetIds:n,clientOffset:r||null}}}}function $(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$(Object(r),!0).forEach((function(t){Y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.getMonitor(),n=e.getRegistry();!function(e){(0,L.k)(e.isDragging(),"Cannot call drop while not dragging."),(0,L.k)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(r);var o=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(r);o.forEach((function(o,i){var a=function(e,t,r,n){var o=r.getTarget(e),i=o?o.drop(n,e):void 0;(function(e){(0,L.k)("undefined"===typeof e||w(e),"Drop result must either be an object or undefined.")})(i),"undefined"===typeof i&&(i=0===t?{}:n.getDropResult());return i}(o,i,n,r),u={type:s,payload:{dropResult:G(G({},t),a)}};e.dispatch(u)}))}}function X(e){return function(){var t=e.getMonitor(),r=e.getRegistry();!function(e){(0,L.k)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var n=t.getSourceId();null!=n&&(r.getSource(n,!0).endDrag(t,n),r.unpinSource());return{type:f}}}function K(e,t){return{x:e.x-t.x,y:e.y-t.y}}function V(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Z,J=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.registry=r}var t,r,n;return t=e,r=[{key:"subscribeToStateChange",value:function(e){var t=this,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0}).handlerIds;(0,L.k)("function"===typeof e,"listener must be a function."),(0,L.k)("undefined"===typeof r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");var n=this.store.getState().stateId;return this.store.subscribe((function(){var o=t.store.getState(),i=o.stateId;try{var a=i===n||i===n+1&&!function(e,t){return e!==j&&(e===P||"undefined"===typeof t||(r=e,t.filter((function(e){return r.indexOf(e)>-1}))).length>0);var r}(o.dirtyHandlerIds,r);a||e()}finally{n=i}}))}},{key:"subscribeToOffsetChange",value:function(e){var t=this;(0,L.k)("function"===typeof e,"listener must be a function.");var r=this.store.getState().dragOffset;return this.store.subscribe((function(){var n=t.store.getState().dragOffset;n!==r&&(r=n,e())}))}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return(0,L.k)(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return(0,L.k)(t,"Expected to find a valid target."),!(!this.isDragging()||this.didDrop())&&B(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return(0,L.k)(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){if(!e)return!1;var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(e),n=this.getItemType();if(n&&!B(r,n))return!1;var o=this.getTargetIds();if(!o.length)return!1;var i=o.indexOf(e);return t?i===o.length-1:i>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return function(e){var t,r,n=e.clientOffset,o=e.initialClientOffset,i=e.initialSourceClientOffset;return n&&o&&i?K((r=i,{x:(t=n).x+r.x,y:t.y+r.y}),o):null}(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return function(e){var t=e.clientOffset,r=e.initialClientOffset;return t&&r?K(t,r):null}(this.store.getState().dragOffset)}}],r&&V(t.prototype,r),n&&V(t,n),e}(),Q=0;function ee(e){return ee="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ee(e)}function te(e,t){t&&Array.isArray(e)?e.forEach((function(e){return te(e,!1)})):(0,L.k)("string"===typeof e||"symbol"===ee(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(Z||(Z={}));var re=r(9249),ne=r(87371),oe="undefined"!==typeof global?global:self,ie=oe.MutationObserver||oe.WebKitMutationObserver;function ae(e){return function(){var t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}var ue="function"===typeof ie?function(e){var t=1,r=new ie(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}:ae,ce=function(){function e(){var t=this;(0,re.Z)(this,e),this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=function(){for(var e=t.queue;t.index<e.length;){var r=t.index;if(t.index++,e[r].call(),t.index>t.capacity){for(var n=0,o=e.length-t.index;n<o;n++)e[n]=e[n+t.index];e.length-=t.index,t.index=0}}e.length=0,t.index=0,t.flushing=!1},this.registerPendingError=function(e){t.pendingErrors.push(e),t.requestErrorThrow()},this.requestFlush=ue(this.flush),this.requestErrorThrow=ae((function(){if(t.pendingErrors.length)throw t.pendingErrors.shift()}))}return(0,ne.Z)(e,[{key:"enqueueTask",value:function(e){var t=this.queue,r=this.requestFlush;t.length||(r(),this.flushing=!0),t[t.length]=e}}]),e}(),se=function(){function e(t,r){(0,re.Z)(this,e),this.onError=t,this.release=r,this.task=null}return(0,ne.Z)(e,[{key:"call",value:function(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}}]),e}(),fe=function(){function e(t){(0,re.Z)(this,e),this.onError=t,this.freeTasks=[]}return(0,ne.Z)(e,[{key:"create",value:function(e){var t=this.freeTasks,r=t.length?t.pop():new se(this.onError,(function(e){return t[t.length]=e}));return r.task=e,r}}]),e}(),le=new ce,de=new fe(le.registerPendingError);function he(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return ge(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ge(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ve(e){var t=(Q++).toString();switch(e){case Z.SOURCE:return"S".concat(t);case Z.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function ye(e){switch(e[0]){case"S":return Z.SOURCE;case"T":return Z.TARGET;default:(0,L.k)(!1,"Cannot parse handler ID: ".concat(e))}}function be(e,t){var r=e.entries(),n=!1;do{var o=r.next(),i=o.done;if(pe(o.value,2)[1]===t)return!0;n=!!i}while(!n);return!1}var me=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}var t,r,n;return t=e,r=[{key:"addSource",value:function(e,t){te(e),function(e){(0,L.k)("function"===typeof e.canDrag,"Expected canDrag to be a function."),(0,L.k)("function"===typeof e.beginDrag,"Expected beginDrag to be a function."),(0,L.k)("function"===typeof e.endDrag,"Expected endDrag to be a function.")}(t);var r=this.addHandler(Z.SOURCE,e,t);return this.store.dispatch(function(e){return{type:y,payload:{sourceId:e}}}(r)),r}},{key:"addTarget",value:function(e,t){te(e,!0),function(e){(0,L.k)("function"===typeof e.canDrop,"Expected canDrop to be a function."),(0,L.k)("function"===typeof e.hover,"Expected hover to be a function."),(0,L.k)("function"===typeof e.drop,"Expected beginDrag to be a function.")}(t);var r=this.addHandler(Z.TARGET,e,t);return this.store.dispatch(function(e){return{type:b,payload:{targetId:e}}}(r)),r}},{key:"containsHandler",value:function(e){return be(this.dragSources,e)||be(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,L.k)(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}},{key:"getTarget",value:function(e){return(0,L.k)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return(0,L.k)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return(0,L.k)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return ye(e)===Z.SOURCE}},{key:"isTargetId",value:function(e){return ye(e)===Z.TARGET}},{key:"removeSource",value:function(e){var t,r=this;(0,L.k)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:m,payload:{sourceId:e}}}(e)),t=function(){r.dragSources.delete(e),r.types.delete(e)},le.enqueueTask(de.create(t))}},{key:"removeTarget",value:function(e){(0,L.k)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:O,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);(0,L.k)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){(0,L.k)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,r){var n=ve(e);return this.types.set(n,t),e===Z.SOURCE?this.dragSources.set(n,r):e===Z.TARGET&&this.dropTargets.set(n,r),n}}],r&&he(t.prototype,r),n&&he(t,n),e}();function Oe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var De=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=t.store.getState().refCount>0;t.backend&&(e&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!e&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var n=function(e){var t="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return(0,o.MT)(N,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r);this.store=n,this.monitor=new J(n,new me(n)),n.subscribe(this.handleRefCountChange)}var t,r,n;return t=e,r=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,r=function(e){return{beginDrag:F(e),publishDragSource:z(e),hover:W(e),drop:q(e),endDrag:X(e)}}(this);return Object.keys(r).reduce((function(n,o){var i,a=r[o];return n[o]=(i=a,function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var a=i.apply(e,n);"undefined"!==typeof a&&t(a)}),n}),{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],r&&Oe(t.prototype,r),n&&Oe(t,n),e}();function we(e,t,r,n){var o=new De(n),i=e(o,t,r);return o.receiveBackend(i),o}var Se=n.createContext({dragDropManager:void 0});function ke(e,t,r,n){return{dragDropManager:we(e,t,r,n)}}},42821:function(e,t,r){"use strict";r.d(t,{W:function(){return s}});var n=r(30969),o=r(46636);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=0,s=(0,n.memo)((function(e){var t=e.children,r=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=t;i[f]||(i[f]=(0,o.W)(e,t,r,n));return i[f]}(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}(u(e,["children"])),a=i(r,2),s=a[0],d=a[1];return n.useEffect((function(){return d&&c++,function(){d&&(0===--c&&(l()[f]=null))}}),[]),n.createElement(o.L.Provider,{value:s},t)}));s.displayName="DndProvider";var f=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function l(){return"undefined"!==typeof r.g?r.g:window}},64127:function(e,t,r){"use strict";r.d(t,{p:function(){return u}});var n=r(49132);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=!1,a=!1,u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t,r,u;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){(0,n.k)(!i,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return i=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{i=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;(0,n.k)(!a,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return a=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{a=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&o(t.prototype,r),u&&o(t,u),e}()},9178:function(e,t,r){"use strict";r.d(t,{H:function(){return a}});var n=r(49132);function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var i=!1,a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t,r,a;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;(0,n.k)(!i,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return i=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{i=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&o(t.prototype,r),a&&o(t,a),e}()},65009:function(e,t,r){"use strict";r.d(t,{x:function(){return u}});var n=r(77067),o=r(19513),i=r(16193);function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var u=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=(0,n.p)({dragSource:function(e,t){r.clearDragSource(),r.dragSourceOptions=t||null,(0,o.d)(e)?r.dragSourceRef=e:r.dragSourceNode=e,r.reconnectDragSource()},dragPreview:function(e,t){r.clearDragPreview(),r.dragPreviewOptions=t||null,(0,o.d)(e)?r.dragPreviewRef=e:r.dragPreviewNode=e,r.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,r,u;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!(0,i.w)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!(0,i.w)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}}])&&a(t.prototype,r),u&&a(t,u),e}()},27623:function(e,t,r){"use strict";r.d(t,{Y:function(){return u}});var n=r(16193),o=r(77067),i=r(19513);function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var u=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=(0,o.p)({dropTarget:function(e,t){r.clearDropTarget(),r.dropTargetOptions=t,(0,i.d)(e)?r.dropTargetRef=e:r.dropTargetNode=e,r.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,r,u;return t=e,(r=[{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!(0,n.w)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}},{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}])&&a(t.prototype,r),u&&a(t,u),e}()},13214:function(e,t,r){"use strict";r.d(t,{LB:function(){return n.L},WG:function(){return o.W},hw:function(){return a},LT:function(){return n.W}});var n=r(46636),o=r(42821),i=r(30969),a=i.memo((function(e){var t=e.connect,r=e.src;return i.useEffect((function(){if("undefined"!==typeof Image){var e=!1,n=new Image;return n.src=r,n.onload=function(){t(n),e=!0},function(){e&&t(null)}}})),null}));a.displayName="DragPreviewImage"},20742:function(e,t,r){"use strict";function n(e,t,r){var n=r.getRegistry(),o=n.addTarget(e,t);return[o,function(){return n.removeTarget(o)}]}function o(e,t,r){var n=r.getRegistry(),o=n.addSource(e,t);return[o,function(){return n.removeSource(o)}]}r.d(t,{n:function(){return n},w:function(){return o}})},77067:function(e,t,r){"use strict";r.d(t,{p:function(){return u}});var n=r(30969),o=r(49132);function i(e,t){"function"===typeof e?e(t):e.current=t}function a(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,n.isValidElement)(t)){var a=t;return e(a,r),a}var u=t;!function(e){if("string"!==typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}(u);var c=r?function(t){return e(t,r)}:e;return function(e,t){var r=e.ref;return(0,o.k)("string"!==typeof r,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),r?(0,n.cloneElement)(e,{ref:function(e){i(r,e),i(t,e)}}):(0,n.cloneElement)(e,{ref:t})}(u,c)}}function u(e){var t={};return Object.keys(e).forEach((function(r){var n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{var o=a(n);t[r]=function(){return o}}})),t}},24919:function(e,t,r){"use strict";r.d(t,{r:function(){return v}});var n=r(30969),o=r(16193),i=r(47814),a=r.n(i),u=r(49132),c=r(46636),s=r(74731),f=r(73903);function l(e){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var o=g(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,f.U9)("DragLayer","collect[, options]",e,t),(0,u.k)("function"===typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e),(0,u.k)((0,s.PO)(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',t),function(r){var i=r,s=t.arePropsEqual,g=void 0===s?o.w:s,v=i.displayName||i.name||"Component",y=function(){var t=function(t){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(b,t);var r,a,s,y=p(b);function b(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b),(e=y.apply(this,arguments)).isCurrentlyMounted=!1,e.ref=n.createRef(),e.handleChange=function(){if(e.isCurrentlyMounted){var t=e.getCurrentState();(0,o.w)(t,e.state)||e.setState(t)}},e}return r=b,(a=[{key:"getDecoratedComponentInstance",value:function(){return(0,u.k)(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current}},{key:"shouldComponentUpdate",value:function(e,t){return!g(e,this.props)||!(0,o.w)(t,this.state)}},{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)}},{key:"render",value:function(){var e=this;return n.createElement(c.L.Consumer,null,(function(t){var r=t.dragDropManager;return void 0===r?null:(e.receiveDragDropManager(r),e.isCurrentlyMounted?n.createElement(i,Object.assign({},e.props,e.state,{ref:(0,f.J7)(i)?e.ref:null})):null)}))}},{key:"receiveDragDropManager",value:function(e){if(void 0===this.manager){this.manager=e,(0,u.k)("object"===l(e),"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",v,v);var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var t=this.manager.getMonitor();return e(t,this.props)}}])&&d(r.prototype,a),s&&d(r,s),b}(n.Component);return t.displayName="DragLayer(".concat(v,")"),t.DecoratedComponent=r,t}();return a()(y,r)}}},11046:function(e,t,r){"use strict";r.d(t,{E:function(){return g}});var n=r(49132),o=r(74731),i=r(73903),a=r(16413),u=r(20742),c=r(64127),s=r(65009),f=r(62673);function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var d=["canDrag","beginDrag","isDragging","endDrag"],h=["beginDrag"],p=function(){function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.beginDrag=function(){if(o.props)return o.spec.beginDrag(o.props,o.monitor,o.ref.current)},this.spec=t,this.monitor=r,this.ref=n}var t,r,n;return t=e,(r=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,(0,i.Al)(this.ref))}}])&&l(t.prototype,r),n&&l(t,n),e}();function g(e,t,r){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,i.U9)("DragSource","type, spec, collect[, options]",e,t,r,l);var g=e;"function"!==typeof e&&((0,n.k)((0,f.m)(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),g=function(){return e}),(0,n.k)((0,o.PO)(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var v=function(e){return Object.keys(e).forEach((function(t){(0,n.k)(d.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',d.join(", "),t),(0,n.k)("function"===typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),h.forEach((function(t){(0,n.k)("function"===typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,r){return new p(e,t,r)}}(t);return(0,n.k)("function"===typeof r,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',r),(0,n.k)((0,o.PO)(l),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',r),function(e){return(0,a.K)({containerDisplayName:"DragSource",createHandler:v,registerHandler:u.w,createConnector:function(e){return new s.x(e)},createMonitor:function(e){return new c.p(e)},DecoratedComponent:e,getType:g,collect:r,options:l})}}},43672:function(e,t,r){"use strict";r.d(t,{G:function(){return p}});var n=r(49132),o=r(74731),i=r(20742),a=r(62673),u=r(27623),c=r(9178),s=r(73903),f=r(16413);function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var d=["canDrop","hover","drop"],h=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.spec=t,this.monitor=r,this.ref=n}var t,r,n;return t=e,(r=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.props&&this.spec.hover(this.props,this.monitor,(0,s.Al)(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&l(t.prototype,r),n&&l(t,n),e}();function p(e,t,r){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,s.U9)("DropTarget","type, spec, collect[, options]",e,t,r,l);var p=e;"function"!==typeof e&&((0,n.k)((0,a.m)(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),p=function(){return e}),(0,n.k)((0,o.PO)(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var g=function(e){return Object.keys(e).forEach((function(t){(0,n.k)(d.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',d.join(", "),t),(0,n.k)("function"===typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,r){return new h(e,t,r)}}(t);return(0,n.k)("function"===typeof r,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',r),(0,n.k)((0,o.PO)(l),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',r),function(e){return(0,f.K)({containerDisplayName:"DropTarget",createHandler:g,registerHandler:i.n,createMonitor:function(e){return new c.H(e)},createConnector:function(e){return new u.Y(e)},DecoratedComponent:e,getType:p,collect:r,options:l})}}},16413:function(e,t,r){"use strict";r.d(t,{K:function(){return k}});var n=r(30969),o=r(16193),i=r(49132),a=r(47814),u=r.n(a),c=r(46636),s=r(74731);function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function d(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),e}var h=function(){var e=function(){function e(t){f(this,e),this.isDisposed=!1,this.action=(0,s.mf)(t)?t:s.ZT}return d(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return Boolean(e&&(0,s.mf)(e.dispose))}},{key:"_fixup",value:function(t){return e.isDisposable(t)?t:e.empty}},{key:"create",value:function(t){return new e(t)}}]),e}();return e.empty={dispose:s.ZT},e}(),p=function(){function e(){f(this,e),this.isDisposed=!1;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this.disposables=r}return d(e,[{key:"add",value:function(e){this.isDisposed?e.dispose():this.disposables.push(e)}},{key:"remove",value:function(e){var t=!1;if(!this.isDisposed){var r=this.disposables.indexOf(e);-1!==r&&(t=!0,this.disposables.splice(r,1),e.dispose())}return t}},{key:"clear",value:function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),r=0;r<e;r++)t[r]=this.disposables[r];this.disposables=[];for(var n=0;n<e;n++)t[n].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),r=0;r<e;r++)t[r]=this.disposables[r];this.disposables=[];for(var n=0;n<e;n++)t[n].dispose()}}}]),e}(),g=function(){function e(){f(this,e),this.isDisposed=!1}return d(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(e){var t=this.isDisposed;if(!t){var r=this.current;this.current=e,r&&r.dispose()}t&&e&&e.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}}}]),e}(),v=r(73903);function y(e){return y="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function D(e,t){return D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},D(e,t)}function w(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var o=S(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===y(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function k(e){var t=e.DecoratedComponent,r=e.createHandler,a=e.createMonitor,s=e.createConnector,f=e.registerHandler,l=e.containerDisplayName,d=e.getType,y=e.collect,m=e.options.arePropsEqual,S=void 0===m?o.w:m,k=t,I=t.displayName||t.name||"Component",T=function(){var e=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}(T,e);var t,u,l,m=w(T);function T(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,T),(t=m.call(this,e)).decoratedRef=n.createRef(),t.handleChange=function(){var e=t.getCurrentState();(0,o.w)(e,t.state)||t.setState(e)},t.disposable=new g,t.receiveProps(e),t.dispose(),t}return t=T,(u=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return(0,i.k)(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!S(e,this.props)||!(0,o.w)(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new g,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){S(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(d(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=b(f(e,this.handler,this.manager),2),r=t[0],n=t[1];this.handlerId=r,this.handlerMonitor.receiveHandlerId(r),this.handlerConnector.receiveHandlerId(r);var o=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[r]});this.disposable.setDisposable(new p(new h(o),new h(n)))}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?y(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return n.createElement(c.L.Consumer,null,(function(t){var r=t.dragDropManager;return e.receiveDragDropManager(r),"undefined"!==typeof requestAnimationFrame&&requestAnimationFrame((function(){var t;return null===(t=e.handlerConnector)||void 0===t?void 0:t.reconnect()})),n.createElement(k,Object.assign({},e.props,e.getCurrentState(),{ref:(0,v.J7)(k)?e.decoratedRef:null}))}))}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&((0,i.k)(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",I,I),void 0!==e&&(this.manager=e,this.handlerMonitor=a(e),this.handlerConnector=s(e.getBackend()),this.handler=r(this.handlerMonitor,this.decoratedRef)))}}])&&O(t.prototype,u),l&&O(t,l),T}(n.Component);return e.DecoratedComponent=t,e.displayName="".concat(l,"(").concat(I,")"),e}();return u()(T,t)}},5008:function(e,t,r){"use strict";r.r(t),r.d(t,{DragLayer:function(){return i.r},DragSource:function(){return n.E},DropTarget:function(){return o.G}});var n=r(11046),o=r(43672),i=r(24919),a=r(91271),u={};for(var c in a)["default","DragSource","DropTarget","DragLayer"].indexOf(c)<0&&(u[c]=function(e){return a[e]}.bind(0,c));r.d(t,u)},91271:function(){},73903:function(e,t,r){"use strict";function n(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}function o(e){return(t=e)&&t.prototype&&"function"===typeof t.prototype.render||function(e){var t;return"Symbol(react.forward_ref)"===(null===e||void 0===e||null===(t=e.$$typeof)||void 0===t?void 0:t.toString())}(e);var t}function i(e,t){}r.d(t,{Al:function(){return n},J7:function(){return o},U9:function(){return i}})},94122:function(e,t,r){"use strict";r.d(t,{c0:function(){return S},Nx:function(){return g},f$:function(){return x},LW:function(){return P}});var n=r(30969),o=r(49132),i="undefined"!==typeof window?n.useLayoutEffect:n.useEffect,a=r(16193);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t,r){var o=u((0,n.useState)((function(){return t(e)})),2),c=o[0],s=o[1],f=(0,n.useCallback)((function(){var n=t(e);(0,a.w)(c,n)||(s(n),r&&r())}),[c,e,r]);return i(f,[]),[c,f]}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d(e,t,r){var n=f(s(e,t,r),2),o=n[0],a=n[1];return i((function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(a,{handlerIds:[t]})}),[e,a]),o}var h=r(20742),p=r(46636);function g(){var e=(0,n.useContext)(p.L).dragDropManager;return(0,o.k)(null!=e,"Expected drag drop context"),e}var v=r(64127),y=r(65009);function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O(e){return O="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function S(e){var t=(0,n.useRef)(e);t.current=e,(0,o.k)(null!=e.item,"item must be defined"),(0,o.k)(null!=e.item.type,"item type must be defined");var r=D(function(){var e=g();return[(0,n.useMemo)((function(){return new v.p(e)}),[e]),(0,n.useMemo)((function(){return new y.x(e.getBackend())}),[e])]}(),2),a=r[0],u=r[1];!function(e,t,r){var a=g(),u=(0,n.useMemo)((function(){return{beginDrag:function(){var r=e.current,n=r.begin,i=r.item;if(n){var a=n(t);return(0,o.k)(null==a||"object"===O(a),"dragSpec.begin() must either return an object, undefined, or null"),a||i||{}}return i||{}},canDrag:function(){return"boolean"===typeof e.current.canDrag?e.current.canDrag:"function"!==typeof e.current.canDrag||e.current.canDrag(t)},isDragging:function(r,n){var o=e.current.isDragging;return o?o(t):n===r.getSourceId()},endDrag:function(){var n=e.current.end;n&&n(t.getItem(),t),r.reconnect()}}}),[]);i((function(){var n=b((0,h.w)(e.current.item.type,u,a),2),o=n[0],i=n[1];return t.receiveHandlerId(o),r.receiveHandlerId(o),i}),[])}(t,a,u);var c=d(a,t.current.collect||function(){return{}},(function(){return u.reconnect()})),s=(0,n.useMemo)((function(){return u.hooks.dragSource()}),[u]),f=(0,n.useMemo)((function(){return u.hooks.dragPreview()}),[u]);return i((function(){u.dragSourceOptions=t.current.options||null,u.reconnect()}),[u]),i((function(){u.dragPreviewOptions=t.current.previewOptions||null,u.reconnect()}),[u]),[c,s,f]}var k=r(27623),I=r(9178);function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function P(e){var t=(0,n.useRef)(e);t.current=e,(0,o.k)(null!=e.accept,"accept must be defined");var r=E(function(){var e=g();return[(0,n.useMemo)((function(){return new I.H(e)}),[e]),(0,n.useMemo)((function(){return new k.Y(e.getBackend())}),[e])]}(),2),a=r[0],u=r[1];!function(e,t,r){var o=g(),a=(0,n.useMemo)((function(){return{canDrop:function(){var r=e.current.canDrop;return!r||r(t.getItem(),t)},hover:function(){var r=e.current.hover;r&&r(t.getItem(),t)},drop:function(){var r=e.current.drop;if(r)return r(t.getItem(),t)}}}),[t]);i((function(){var n=T((0,h.n)(e.current.accept,a,o),2),i=n[0],u=n[1];return t.receiveHandlerId(i),r.receiveHandlerId(i),u}),[t,r])}(t,a,u);var c=d(a,t.current.collect||function(){return{}},(function(){return u.reconnect()})),s=(0,n.useMemo)((function(){return u.hooks.dropTarget()}),[u]);return i((function(){u.dropTargetOptions=e.options||null,u.reconnect()}),[e.options]),[c,s]}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function x(e){var t=g().getMonitor(),r=_(s(t,e),2),o=r[0],i=r[1];return(0,n.useEffect)((function(){return t.subscribeToOffsetChange(i)})),(0,n.useEffect)((function(){return t.subscribeToStateChange(i)})),o}},81668:function(e,t,r){"use strict";r.r(t),r.d(t,{DndContext:function(){return n.LB},DndProvider:function(){return n.WG},DragPreviewImage:function(){return n.hw},createDndContext:function(){return n.LT},useDrag:function(){return u.c0},useDragDropManager:function(){return u.Nx},useDragLayer:function(){return u.f$},useDrop:function(){return u.LW}});var n=r(13214),o=r(84407),i={};for(var a in o)["default","DndContext","DndProvider","DragPreviewImage","createDndContext"].indexOf(a)<0&&(i[a]=function(e){return o[e]}.bind(0,a));r.d(t,i);var u=r(94122),c=r(5008);i={};for(var a in c)["default","DndContext","DndProvider","DragPreviewImage","createDndContext","useDrag","useDragDropManager","useDragLayer","useDrop"].indexOf(a)<0&&(i[a]=function(e){return c[e]}.bind(0,a));r.d(t,i)},16091:function(){},64668:function(){},84407:function(e,t,r){"use strict";r.r(t);var n=r(63506),o={};for(var i in n)"default"!==i&&(o[i]=function(e){return n[e]}.bind(0,i));r.d(t,o);var a=r(64668);o={};for(var i in a)"default"!==i&&(o[i]=function(e){return a[e]}.bind(0,i));r.d(t,o);var u=r(4782);o={};for(var i in u)"default"!==i&&(o[i]=function(e){return u[e]}.bind(0,i));r.d(t,o);var c=r(16091);o={};for(var i in c)"default"!==i&&(o[i]=function(e){return c[e]}.bind(0,i));r.d(t,o)},63506:function(){},4782:function(){},19513:function(e,t,r){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e){return null!==e&&"object"===n(e)&&Object.prototype.hasOwnProperty.call(e,"current")}r.d(t,{d:function(){return o}})},62673:function(e,t,r){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return"string"===typeof e||"symbol"===n(e)||!!t&&Array.isArray(e)&&e.every((function(e){return o(e,!1)}))}r.d(t,{m:function(){return o}})},74731:function(e,t,r){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e){return"function"===typeof e}function i(){}function a(e){if(!function(e){return"object"===n(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}r.d(t,{PO:function(){return a},ZT:function(){return i},mf:function(){return o}})}}]);
|
|
2
|
-
//# sourceMappingURL=2631.54f86f84.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[2653],{86384:function(e,n,t){"use strict";n.h1=void 0;var r=t(59505);function i(e){return(null===e||void 0===e?void 0:e.connectedAccounts)||[]}function s(e){return i(e).find((function(e){return e.provider===r.LOGIN_PROVIDER.WALLET}))}n.h1=function(e){var n=s(e);return null===n||void 0===n?void 0:n.did}},26807:function(e,n,t){var r=t(20244),i=r.ROLES,s=r.PASSPORT_STATUS;e.exports={hasActiveOwnerPassport:function(e){return((null===e||void 0===e?void 0:e.passports)||[]).some((function(e){return e.role===i.OWNER&&e.status===s.VALID}))}}},80714:function(e,n,t){"use strict";t.d(n,{Z:function(){return k}});var r,i=t(71171),s=t(32723),o=t(34795),a=t(33028),c=t(96234),l=t(59740),u=t(30969),d=t(24974),p=t.n(d),m=t(16380),f=t(94551),h=t(48082),v=t(2689),x=t(28722),g=t(93310),Z=t(86008),b=t(37574),j=["actions","size"],y=["icon","text","onClick","disabled"];function k(e){var n=e.actions,t=e.size,r=(0,l.Z)(e,j),i=(0,u.useState)(null),d=(0,c.Z)(i,2),p=d[0],m=d[1],k=Boolean(p),S=function(e){try{e.stopPropagation(),e.preventDefault()}catch(n){}m(null)};return(0,b.jsxs)(P,(0,a.Z)((0,a.Z)({},r),{},{children:[(0,b.jsx)(f.Z,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:function(e){try{e.stopPropagation(),e.preventDefault()}catch(n){}m(e.currentTarget)},size:t,children:(0,b.jsx)(x.Z,{})}),(0,b.jsx)(h.Z,{id:"actions-menu","data-cy":"actions-menu",anchorEl:p,keepMounted:!0,open:k,onClose:S,PaperProps:{},children:n.map((function(e,n){if("function"===typeof e)return e({close:S});var t=e.icon,r=e.text,i=e.onClick,c=e.disabled,d=void 0!==c&&c,p=(0,l.Z)(e,y);return(0,u.createElement)(v.Z,(0,a.Z)((0,a.Z)({},p),{},{disabled:d,dense:!0,onClick:function(){var e=(0,o.Z)((0,s.Z)().mark((function e(n){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i(n);case 2:S();case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),key:n,"data-cy":"actions-menu-".concat(n)}),(0,b.jsx)(g.Z,{style:{minWidth:24,marginRight:8},children:t}),(0,b.jsx)(Z.Z,{primary:r}))}))})]}))}k.propTypes={actions:p().array,size:p().oneOf(["small","medium","large"])},k.defaultProps={actions:[],size:"small"};var P=m.Z.div(r||(r=(0,i.Z)([""])))},73820:function(e,n,t){"use strict";t.d(n,{Z:function(){return p}});var r=t(33028),i=t(59740),s=t(30969),o=t(24974),a=t.n(o),c=t(99631),l=t(26022),u=t(37574),d=["children"];function p(e){var n=e.children,t=(0,i.Z)(e,d),o=(0,s.useContext)(l.RD).t;return(0,u.jsx)(c.Z,(0,r.Z)((0,r.Z)({tip:o("common.copyTip"),copiedTip:o("common.copiedTip")},t),{},{children:n}))}p.propTypes={children:a().any.isRequired}},36558:function(e,n,t){"use strict";var r=t(33028),i=t(59740),s=t(24974),o=t.n(s),a=t(86822),c=t(19638),l=t(23586),u=t(37574),d=["did","href","external","avatarProps"];function p(e){var n=e.did,t=e.href,s=e.external,o=(e.avatarProps,(0,i.Z)(e,d)),p=(0,u.jsx)(l.Z,(0,r.Z)({did:n},o));return t?s?(0,u.jsx)(c.Z,{target:"_blank",href:t,underline:"hover",children:p}):(0,u.jsx)(a.rU,{to:t,children:p}):p}p.propTypes={did:o().string.isRequired,to:o().string,href:o().string,avatarProps:o().object,external:o().bool},p.defaultProps={to:"",href:"",avatarProps:{},external:!1},n.Z=p},22572:function(e,n,t){"use strict";t.d(n,{V:function(){return l},Z:function(){return c}});var r=t(33028),i=t(24974),s=t.n(i),o=t(77370),a=t(37574);function c(e){var n=e.permission,t=e.role,r=e.component,i=e.children,s=(0,o.T)().session,a=!0,c=[].concat(n).filter(Boolean),l=[].concat(t).filter(Boolean);if(c.length){var u=s.user&&s.user.permissions||[];a=c.some((function(e){return u.includes(e)}))}return a&&l.length&&(a=l.includes(s.user.role)),"function"===typeof r?r(a):"function"===typeof i?i(a):a&&(r||i)||null}function l(e,n,t){return function(i){return(0,a.jsx)(c,{permission:n,role:t,children:function(n){return(0,a.jsx)(e,(0,r.Z)((0,r.Z)({},i),{},{hasPermission:n}))}})}}c.propTypes={permission:s().oneOfType([s().string,s().arrayOf(s().string)]),role:s().oneOfType([s().string,s().arrayOf(s().string)]),component:s().oneOfType([s().func,s().node]),children:s().oneOfType([s().func,s().node])},c.defaultProps={permission:"",role:"",component:null,children:null}},12502:function(e,n,t){"use strict";t.d(n,{Z:function(){return c}});t(30969);var r=t(24974),i=t.n(r),s=t(70177),o=t(36558),a=t(37574);function c(e){return(e.user.connectedAccounts||[]).map((function(e){return(0,a.jsx)(s.Z,{style:{alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:e.provider,children:(0,a.jsx)(o.Z,{did:e.did})},e.did)}))}c.propTypes={user:i().object.isRequired},c.defaultProps={}},92653:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return xn}});var r,i=t(71171),s=t(33028),o=t(32723),a=t(34795),c=t(96234),l=t(30969),u=t(16380),d=t(76032),p=t.n(d),m=t(24974),f=t.n(m),h=t(65667),v=t.n(h),x=t(50496),g=t(6779),Z=t(38361),b=t(49884),j=t(88876),y=t(3715),k=t(13134),P=t(62399),S=t(26022),C=t(29996),w=t(90954),D=t(15378),R=t(52469),T=t(2291),E=t(16438),I=t(20244),N=t(35470),A=t(49476),z=t(1986),B=t(61472),_=t(36558),L=t(41395),O=t(80670),U=t(45008),W=t(22572),q=t(24891),F=t(94308),M=t(43207),V=t(33359),K=t(2689),J=t(39130),H=t(87006),X=t(51385),$=t(87535),G=t(23299),Y=t(73820),Q=t(37574);function ee(e){var n=e.teamDid,t=e.roles,r=e.onCancel,i=e.onSuccess,s=e.onError,u=e.endpoint,d=(0,L.h6)().api,p=(0,l.useState)(!1),m=(0,c.Z)(p,2),f=m[0],h=m[1],v=(0,l.useState)(""),g=(0,c.Z)(v,2),Z=g[0],b=g[1],j=(0,S.PE)(),y=j.t,k=j.locale,P=(0,l.useState)(0),w=(0,c.Z)(P,2),D=w[0],R=w[1],T=(0,l.useState)(""),E=(0,c.Z)(T,2),I=E[0],N=E[1],A=(0,l.useState)(""),z=(0,c.Z)(A,2),B=z[0],_=z[1],O=(0,l.useState)(""),U=(0,c.Z)(O,2),W=U[0],ee=U[1],ne=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(){var t,r,i,a;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(B){e.next=3;break}return b(y("team.member.error.passportEmpty")),e.abrupt("return");case 3:return t=W.trim(),b(null),h(!0),e.prev=6,e.next=9,d.createMemberInvitation({input:{teamDid:n,role:B,remark:t}});case 9:r=e.sent,i=r.inviteInfo,N(i),R(1),e.next=20;break;case 15:e.prev=15,e.t0=e.catch(6),a=(0,q.Z)(e.t0),b(a),s(e.t0);case 20:return e.prev=20,h(!1),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[6,15,20,23]])})));return function(){return e.apply(this,arguments)}}(),re=[{body:(0,Q.jsxs)(V.Z,{component:"div",children:[(0,Q.jsxs)($.Z,{style:{width:"100%"},variant:"outlined",children:[(0,Q.jsx)(X.Z,{children:y("common.passport")}),(0,Q.jsx)(J.Z,{"data-cy":"invite-member-select-role",value:B,onChange:function(e){b(null),_(e.target.value)},fullWidth:!0,label:y("common.passport"),disabled:f,onKeyPress:function(e){"Enter"===e.key&&(e.preventDefault(),ne())},children:t.filter((function(e){return"owner"!==e.name})).map((function(e){return(0,Q.jsx)(K.Z,{value:e.name,"data-cy":"invite-member-select-option-".concat(e.name),children:(0,Q.jsx)("span",{children:e.title||e.name})},e.name)}))})]}),(0,Q.jsx)("div",{style:{marginTop:20,marginBottom:10}}),(0,Q.jsx)(H.Z,{label:y("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:W,onChange:function(e){b(null),ee(e.target.value)},disabled:f,"data-cy":"invite-member-input-remark"}),(0,Q.jsx)("div",{style:{marginTop:20,marginBottom:10}})]}),cancel:y("common.cancel"),confirm:y("team.member.inviteDialog.createInviteLink"),onCancel:r,onConfirm:ne},{body:function(){var e=(0,q.ly)({inviteId:I.inviteId,endpoint:u});return(0,Q.jsxs)("div",{children:[(0,Q.jsx)(te,{children:y("team.member.inviteDialog.createSuccessTip",{expireDate:(0,q.B2)(I.expireDate,k)})}),(0,Q.jsx)("div",{style:{marginTop:"40px"}}),(0,Q.jsx)(Y.Z,{children:e})]})},confirm:y("common.confirm"),onConfirm:i}][D];return(0,Q.jsxs)(x.ZP,{title:y("common.invite"),fullWidth:!0,open:!0,showCloseButton:!1,actions:(0,Q.jsxs)(Q.Fragment,{children:[re.cancel&&(0,Q.jsx)(C.Z,{onClick:re.onCancel,color:"inherit",children:re.cancel}),(0,Q.jsxs)(C.Z,{onClick:re.onConfirm,color:"primary",disabled:f||!B,variant:"contained",autoFocus:!0,children:[f&&(0,Q.jsx)(F.Z,{size:16}),re.confirm]})]}),children:[(0,Q.jsx)(M.Z,{component:"div",children:"function"===typeof re.body?re.body():re.body}),!!Z&&(0,Q.jsx)(G.Z,{type:"error",variant:"icon",children:Z})]})}ee.propTypes={teamDid:f().string.isRequired,onCancel:f().func.isRequired,onSuccess:f().func.isRequired,onError:f().func,roles:f().array,endpoint:f().string},ee.defaultProps={onError:function(){},roles:[],endpoint:""};var ne,te=u.Z.div(r||(r=(0,i.Z)(["\n font-size: 16px;\n font-weight: bold;\n"]))),re=t(17660),ie=t(46292),se=t.n(ie),oe=t(26328),ae=t(77370);function ce(e){var n=e.teamDid,t=e.onCancel,r=e.onSuccess,i=e.onError,s=e.endpoint,u=(0,L.h6)(),d=u.api,p=u.info,m=(0,l.useContext)(ae.B).api,f=(0,l.useState)(!1),h=(0,c.Z)(f,2),v=h[0],g=h[1],Z=(0,S.PE)(),b=Z.t,j=Z.locale,y=(0,l.useState)(""),k=(0,c.Z)(y,2),P=k[0],w=k[1],D=(0,l.useState)(!1),R=(0,c.Z)(D,2),T=R[0],E=R[1],I=(0,l.useState)(0),N=(0,c.Z)(I,2),A=N[0],z=N[1],B=(0,l.useState)(""),_=(0,c.Z)(B,2),O=_[0],U=_[1],W=(0,l.useState)(""),K=(0,c.Z)(W,2),J=K[0],X=K[1],$=!!se()(p,"ownerNft.did"),ee=(0,re.default)((0,a.Z)((0,o.Z)().mark((function e(){var n,t;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!$){e.next=6;break}return e.next=3,d.getDelegationState();case 3:return n=e.sent,t=n.state,e.abrupt("return",t);case 6:return e.abrupt("return",{delegated:!0});case 7:case"end":return e.stop()}}),e)}))));if(ee.loading)return(0,Q.jsx)(x.ZP,{title:b("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,onClose:t,children:(0,Q.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(0,Q.jsx)(F.Z,{})})});if(ee.error)return(0,Q.jsx)(x.ZP,{title:b("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,onClose:t,children:(0,Q.jsx)(G.Z,{type:"error",variant:"icon",children:(0,q.Z)(ee.error)})});var ne=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(){var t,r,s;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(null),g(!0),e.prev=2,e.next=5,d.createTransferInvitation({input:{teamDid:n,role:"owner",remark:J.trim()}});case 5:t=e.sent,r=t.inviteInfo,U(r),z(ie.length-1),e.next=16;break;case 11:e.prev=11,e.t0=e.catch(2),s=(0,q.Z)(e.t0),w(s),i(e.t0);case 16:return e.prev=16,g(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[2,11,16,19]])})));return function(){return e.apply(this,arguments)}}(),te=function(){E(!1),z(0)},ie=[{body:(0,Q.jsxs)(V.Z,{component:"div",children:[(0,Q.jsxs)(G.Z,{type:"warning",children:[(0,Q.jsx)(V.Z,{children:b("team.transferNode.inviteDialog.tips.progress")}),(0,Q.jsx)(V.Z,{children:b("team.transferNode.inviteDialog.tips.newOwnerPermissions")})]}),(0,Q.jsx)(G.Z,{type:"warning",children:(0,Q.jsx)(V.Z,{children:b("team.transferNode.inviteDialog.tips.revoke")})}),(0,Q.jsx)("div",{style:{marginTop:20,marginBottom:10}}),(0,Q.jsx)(H.Z,{label:b("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:J,onChange:function(e){w(null),X(e.target.value)},disabled:v,"data-cy":"transfer-node-input-remark"}),(0,Q.jsx)("div",{style:{marginTop:20,marginBottom:10}})]}),cancel:b("common.cancel"),confirm:b("team.transferNode.inviteDialog.createInviteLink"),onCancel:t,onConfirm:$&&!se()(ee,"value.delegated")?function(){E(!0),z(1)}:ne},{body:function(){return(0,Q.jsx)(oe.Z,{action:"delegate-transfer-nft",open:T,locale:j,checkFn:m.get,onClose:te,onSuccess:ne,checkTimeout:3e5,webWalletUrl:(0,q.yP)(p),extraParams:{targetDID:p.did},messages:{title:b("team.transferNode.delegateDialog.title"),scan:b("team.transferNode.delegateDialog.scan"),confirm:b("team.transferNode.delegateDialog.confirm"),success:b("team.transferNode.delegateDialog.success")},popup:!0})}},{body:function(){var e=(0,q.ly)({inviteId:O.inviteId,endpoint:s});return(0,Q.jsxs)("div",{children:[(0,Q.jsx)(ue,{children:b("team.transferNode.inviteDialog.createSuccessTip",{expireDate:(0,q.B2)(O.expireDate,j)})}),(0,Q.jsx)("div",{style:{marginTop:"40px"}}),(0,Q.jsx)(Y.Z,{children:e})]})},confirm:b("common.confirm"),onConfirm:r}],ce=ie[A];return(0,Q.jsxs)(x.ZP,{title:b("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,showCloseButton:!1,actions:(0,Q.jsxs)(Q.Fragment,{children:[ce.cancel&&(0,Q.jsx)(C.Z,{onClick:ce.onCancel,color:"inherit",children:ce.cancel}),(0,Q.jsxs)(C.Z,{onClick:ce.onConfirm,color:"primary",disabled:v,variant:"contained",autoFocus:!0,children:[v&&(0,Q.jsx)(F.Z,{size:16}),ce.confirm]})]}),children:[(0,Q.jsx)(M.Z,{component:"div",children:"function"===typeof ce.body?ce.body():ce.body}),!!P&&(0,Q.jsx)(G.Z,{type:"error",variant:"icon",children:P})]})}ce.propTypes={teamDid:f().string.isRequired,onCancel:f().func.isRequired,onSuccess:f().func.isRequired,onError:f().func,endpoint:f().string},ce.defaultProps={onError:function(){},endpoint:""};var le,ue=u.Z.div(ne||(ne=(0,i.Z)(["\n font-size: 16px;\n font-weight: bold;\n"]))),de=t(59740),pe=t(59467),me=t(19865),fe=t(70177),he=t(48401),ve=t(83486),xe=t(28595),ge=t(59505),Ze=t(8479),be=t(88581),je=["passport","onDelete"];function ye(e){var n=e.passport,t=e.onDelete,r=(0,de.Z)(e,je);return(0,Q.jsxs)(Pe,(0,s.Z)((0,s.Z)({},r),{},{children:[n.title||n.name," ",!!t&&(0,Q.jsx)(be.default,{"data-cy":"delete-issuance",className:"delete",onClick:t})]}))}ye.propTypes={passport:f().object.isRequired,onDelete:f().func},ye.defaultProps={onDelete:null};var ke,Pe=u.Z.span(le||(le=(0,i.Z)(["\n display: inline-flex;\n padding: 2px 8px;\n background: ",";\n border-radius: 100vw;\n font-weight: 400;\n font-size: 12px;\n line-height: 22px;\n color: #fff;\n align-items: center;\n .delete {\n font-size: 1em;\n margin-left: 6px;\n cursor: pointer;\n }\n"])),(function(e){return e.theme.palette.primary.main}));function Se(e){var n=e.issuances,t=e.teamDid,r=e.onRefresh,i=(0,L.h6)(),s=i.api,u=i.inService,d=(0,l.useContext)(S.RD),p=d.t,m=d.locale,f=(0,l.useState)(null),h=(0,c.Z)(f,2),v=h[0],x=h[1],g=(0,l.useState)(!1),b=(0,c.Z)(g,2),j=b[0],y=b[1],k=(0,O.DJ)().endpoint,P=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(n){var i;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.id,!j){e.next=3;break}return e.abrupt("return");case 3:return y(!0),e.prev=4,e.next=7,s.deletePassportIssuance({input:{teamDid:t,sessionId:i}});case 7:r(),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(4),z.Z.error(e.t0.message);case 13:return e.prev=13,y(!1),x(null),e.finish(13);case 17:case"end":return e.stop()}}),e,null,[[4,10,13,17]])})));return function(n){return e.apply(this,arguments)}}(),C=function(){y(!1),x(null)},w=function(e){return k?(0,q._)({id:e.id,endpoint:k}):""};function D(e){var n=e.data;return(0,Q.jsxs)("div",{className:"issuance",children:[(0,Q.jsxs)(Z.Z,{display:"flex",justifyContent:"space-between",children:[(0,Q.jsx)(W.Z,{permission:u?"":"mutate_team",role:u?q.Wf:[],children:function(e){return e?(0,Q.jsx)(ye,{passport:{title:n.title,name:n.name},onDelete:function(){return x({title:p("team.passport.issuance.delete.title"),description:p("team.passport.issuance.delete.description",{link:w(n)}),confirm:p("common.delConfirm"),cancel:p("common.cancel"),onConfirm:function(){P(n)},onCancel:C})}}):(0,Q.jsx)(ye,{passport:{title:n.title,name:n.name}})}}),(0,Q.jsxs)("div",{style:{color:"#999"},children:[p("common.expires"),":\xa0",(0,q.B2)(n.expireDate,m)]})]}),(0,Q.jsx)(Z.Z,{mt:2,children:(0,Q.jsx)(Y.Z,{children:w(n)})})]})}return(0,Q.jsxs)(Ce,{children:[n.map((function(e){return(0,Q.jsx)(D,{data:e})})),v&&(0,Q.jsx)(Ze.Z,{title:v.title,description:v.description,confirm:v.confirm,cancel:v.cancel,params:v.params,onConfirm:v.onConfirm,onCancel:v.onCancel})]})}var Ce=u.Z.div(ke||(ke=(0,i.Z)(["\n .MuiTableHead-root {\n display: none;\n }\n .issuance {\n padding: 16px 0;\n border-bottom: 1px solid #f0f0f0;\n .MuiTypography-root {\n display: inline-block;\n width: 100%;\n background: #f3f3f3;\n border-radius: 4px;\n padding-top: 6px;\n padding-bottom: 6px;\n }\n }\n"])));Se.propTypes={teamDid:f().string.isRequired,issuances:f().array,onRefresh:f().func},Se.defaultProps={issuances:[],onRefresh:function(){}};var we=t(68079),De=t(25177),Re=t(86384),Te=t(69936),Ee=t(78789),Ie=t(83683),Ne=t(36568);function Ae(e){var n=e.teamDid,t=e.ownerDid,r=e.needReceive,i=e.roles,s=e.onCancel,u=e.onSuccess,d=e.onError,p=e.showOwnerPassport,m=(0,L.h6)().api,f=(0,l.useState)(!1),h=(0,c.Z)(f,2),v=h[0],g=h[1],Z=(0,l.useState)(""),b=(0,c.Z)(Z,2),j=b[0],y=b[1],k=(0,S.PE)().t,P=(0,l.useState)(""),w=(0,c.Z)(P,2),D=w[0],R=w[1],T=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(){var r;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(D){e.next=3;break}return y(k("team.member.error.passportEmpty")),e.abrupt("return");case 3:return y(null),g(!0),e.prev=5,e.next=8,m.createPassportIssuance({input:{teamDid:n,name:D,ownerDid:t}});case 8:u(),e.next=16;break;case 11:e.prev=11,e.t0=e.catch(5),r=(0,q.Z)(e.t0),y(r),d(e.t0);case 16:return e.prev=16,g(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[5,11,16,19]])})));return function(){return e.apply(this,arguments)}}();return(0,Q.jsxs)(x.ZP,{title:k("team.passport.issue"),fullWidth:!0,open:!0,onClick:function(e){return e.stopPropagation()},onClose:s,disableEscapeKeyDown:!0,PaperProps:{style:{minHeight:"auto"}},actions:(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(C.Z,{onClick:s,color:"inherit",size:"small",children:k("common.cancel")}),(0,Q.jsxs)(C.Z,{onClick:T,color:"primary",size:"small",disabled:v||!D,variant:"contained",autoFocus:!0,"data-cy":"issue-passport-create-btn",children:[v&&(0,Q.jsx)(F.Z,{size:16}),k(r?"team.passport.issuance.create.title":"oauth.issued")]})]}),children:[(0,Q.jsx)(M.Z,{component:"div",children:(0,Q.jsx)(V.Z,{component:"div",children:(0,Q.jsxs)($.Z,{style:{width:"100%"},variant:"outlined",children:[(0,Q.jsx)(X.Z,{children:k("common.passport")}),(0,Q.jsx)(J.Z,{"data-cy":"issue-passport-select-passport",value:D,onChange:function(e){y(null),R(e.target.value)},fullWidth:!0,label:k("common.passport"),disabled:v,onKeyPress:function(e){"Enter"===e.key&&(e.preventDefault(),T())},children:i.filter((function(e){return p||"owner"!==e.name})).map((function(e){return(0,Q.jsx)(K.Z,{value:e.name,"data-cy":"issue-passport-select-option-".concat(e.name),children:(0,Q.jsx)("span",{children:e.title||e.name})},e.name)}))})]})})}),!!j&&(0,Q.jsx)(G.Z,{type:"error",variant:"icon",children:j})]})}Ae.propTypes={teamDid:f().string.isRequired,ownerDid:f().string.isRequired,needReceive:f().bool,onCancel:f().func.isRequired,onSuccess:f().func.isRequired,onError:f().func,roles:f().array,showOwnerPassport:f().bool},Ae.defaultProps={onError:function(){},roles:[],showOwnerPassport:!1,needReceive:!0};var ze,Be=t(75980);function _e(e){var n=e.action,t=e.passport,r=(0,S.PE)().t,i=(0,O.DJ)().roles.find((function(e){return e.name===t.role}));return(0,Q.jsxs)("div",{children:[(0,Q.jsx)("div",{children:r("enable"===n?"team.member.enablePassportDescription":"team.member.revokePassportDescription")}),i&&(0,Q.jsx)(Z.Z,{mt:3,fontWeight:"bold",children:r("team.member.passportPermissionTitle")}),i&&(0,Q.jsx)(Z.Z,{mt:1,children:i.description})]})}function Le(e){var n,t=e.user,r=e.onCreate,i=e.createPassportSvg,u=(0,S.PE)().t,d=(0,ae.T)().session,p=(0,O.DJ)(),m=p.roles,f=p.teamDid,h=p.teamIssuerDid,v=p.refresh,x=p.enablePassportIssuance,b=p.trustedPassports,j=p.passportColor,k=p.blocklet,P=(0,U.y0)().appIdList,w=(0,L.h6)(),R=w.api,T=w.inService,E=(0,l.useState)(!1),N=(0,c.Z)(E,2),A=N[0],B=N[1],_=(0,l.useState)(null),F=(0,c.Z)(_,2),M=F[0],V=F[1],K=(0,l.useState)(!1),J=(0,c.Z)(K,2),H=J[0],X=J[1],$=(0,l.useState)(""),G=(0,c.Z)($,2),Y=G[0],ee=G[1],ne=[h].concat((0,we.Z)(P||[])).filter(Boolean),te=(se()(t,"passports")||[]).map((function(e){return(0,s.Z)((0,s.Z)({},e),{},{revoked:e.status===I.PASSPORT_STATUS.REVOKED})})),re=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(n){var r;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!A){e.next=2;break}return e.abrupt("return");case 2:return B(!0),e.prev=3,r=n.status===I.PASSPORT_STATUS.REVOKED?"enableUserPassport":"revokeUserPassport",e.next=7,R[r]({input:{teamDid:f,userDid:t.did,passportId:n.id}});case 7:v(),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),z.Z.error((0,q.Z)(e.t0));case 13:return e.prev=13,B(!1),V(null),e.finish(13);case 17:case"end":return e.stop()}}),e,null,[[3,10,13,17]])})));return function(n){return e.apply(this,arguments)}}(),ie=function(e,n){return t.did===d.user.did&&d.user.passportId&&d.user.passportId===n.id?{revokable:!1,message:u("team.passport.shouldNotDeleteCurrent")}:e?f===n.issuer.id&&"owner"===n.name?{revokable:!1,message:u("team.passport.noPermission")}:{revokable:!0}:{revokable:!1,message:u("team.passport.noPermission")}},oe=te.filter((function(e){return!Y||e.title.includes(Y)||e.name.includes(Y)}));return(0,Q.jsxs)(Oe,{children:[(0,Q.jsxs)(Ne.Z,{children:[(0,Q.jsx)("div",{className:"left",children:(0,Q.jsx)(Ie.Z,{placeholder:u("team.passport.search"),value:Y,onChange:function(e){return ee(e.target.value)}})}),(0,Q.jsx)("div",{className:"right",children:x&&!!t.approved&&(0,Q.jsx)(W.Z,{permission:T?"":"mutate_team",role:T?q.Wf:[],children:(0,Q.jsxs)(C.Z,{variant:"contained",color:"primary","data-cy":"issue-passport",onClick:function(){return X(!0)},children:[(0,Q.jsx)(y.Z,{style:{fontSize:16,marginRight:4}}),u("team.passport.issue")]})})})]}),(0,Q.jsxs)(Z.Z,{children:[oe.map((function(e){return(0,Q.jsx)(W.Z,{permission:T?"":"mutate_team",role:T?q.Wf:[],children:function(n){return(0,Q.jsxs)(Z.Z,{className:"passport-item",display:"flex",justifyContent:"space-between",alignItems:"center",mt:3,children:[(0,Q.jsx)(Be.Z,{passport:e,user:t,color:j,createPassportSvg:i,icon:ne.length&&!ne.includes(e.issuer.id)?(0,Q.jsx)(D.Z,{}):null,children:!!ne.length&&!ne.includes(e.issuer.id)&&(0,Q.jsxs)("div",{className:"tip",children:[e.issuer.id!==h&&!b.some((function(n){return n.issuerDid===e.issuer.id}))&&(0,Q.jsx)(g.Z,{title:u("team.passport.notTrustedIssuerTip"),children:(0,Q.jsx)(Z.Z,{component:De.Z,style:{fontSize:"1.3em"},color:"error.main",mr:.5})}),(0,Q.jsx)("span",{children:u("team.passport.issueBy",{name:e.issuer.name})})]})}),(0,Q.jsx)(Z.Z,{children:ie(n,e).revokable?(0,Q.jsxs)(C.Z,{variant:"outlined",color:e.revoked?"primary":"secondary",onClick:function(){return(n=e).status===I.PASSPORT_STATUS.REVOKED?V({title:u("team.member.enablePassport"),description:(0,Q.jsx)(_e,{action:"enable",passport:n}),confirm:u("common.enable"),cancel:u("common.cancel"),onConfirm:function(){re(n)},onCancel:function(){B(!1),V(null)},color:"primary"}):V({title:u("team.member.revokePassport"),description:(0,Q.jsx)(_e,{action:"revoke",passport:n}),confirm:u("common.revoke"),cancel:u("common.cancel"),onConfirm:function(){re(n)},onCancel:function(){B(!1),V(null)}});var n},children:[e.revoked?(0,Q.jsx)(y.Z,{style:{fontSize:16,marginRight:4}}):(0,Q.jsx)(Te.Z,{style:{height:16,marginRight:4}}),e.revoked?u("common.enable"):u("common.revoke")]}):(0,Q.jsx)(g.Z,{title:ie(n,e).message,children:(0,Q.jsx)(De.Z,{style:{color:"#ddd"}})})})]})}},e.id)})),!oe.length&&(0,Q.jsx)(Ee.Z,{children:u("common.empty")})]}),H&&(0,Q.jsx)(Ae,{teamDid:f,ownerDid:t.did,needReceive:(0,Re.h1)(t)===t.did,roles:m,onCancel:function(){return X(!1)},onSuccess:function(){r(),X(!1)},showOwnerPassport:k&&!(null!==(n=k.settings)&&void 0!==n&&n.owner)}),M&&(0,Q.jsx)(Ze.Z,{title:M.title,description:M.description,confirm:M.confirm,cancel:M.cancel,params:M.params,onConfirm:M.onConfirm,onCancel:M.onCancel,color:M.color})]})}_e.propTypes={action:f().string.isRequired,passport:f().object.isRequired},_e.defaultProps={},Le.propTypes={user:f().object.isRequired,createPassportSvg:f().func.isRequired,onCreate:f().func},Le.defaultProps={onCreate:function(){}};var Oe=u.Z.div(ze||(ze=(0,i.Z)(["\n .passport-item {\n .MuiButton-outlinedSecondary {\n color: #f16e6e;\n fill: #f16e6e;\n background: #fcf3f3;\n border: 0;\n &:hover {\n border: 0;\n }\n }\n }\n"]))),Ue=t(26807),We=function(e,n){return e.nodeOwner&&e.nodeOwner.did===n},qe=function(e,n){return e&&e.did===n};function Fe(e){var n,t=e.user,r=e.onCancel,i=e.onSuccess,s=e.onError,u=e.children,d=(0,L.h6)(),p=d.api,m=d.info,f=d.inService,h=(0,ae.T)().session,v=(0,O.DJ)(),x=v.teamDid,g=v.refresh,Z=(0,S.PE)().t,b=(0,l.useState)(!1),j=(0,c.Z)(b,2),y=j[0],k=j[1],P=(0,l.useState)(!1),C=(0,c.Z)(P,2),w=C[0],D=C[1],R=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(n){var t,r;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.did,r=n.approved,!y){e.next=3;break}return e.abrupt("return");case 3:return k(!0),e.prev=4,e.next=7,p.updateUserApproval({input:{teamDid:x,user:{did:t,approved:!r}}});case 7:D(!1),i(),g(),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(4),z.Z.error((0,q.Z)(e.t0)),s();case 16:return e.prev=16,k(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[4,12,16,19]])})));return function(n){return e.apply(this,arguments)}}(),T={title:t.approved?Z("team.member.forbidLogin"):Z("team.member.allowLogin"),description:t.approved?Z("team.member.forbidLoginDescription"):Z("team.member.allowLoginDescription"),confirm:Z("common.confirm"),cancel:Z("common.cancel"),onConfirm:function(){R(t)},onCancel:function(){k(!1),D(!1),r()},color:t.approved?"error":"primary"};return(n=!(0,Ue.hasActiveOwnerPassport)(t)&&((f||m.nodeOwner&&!We(m,t.did))&&!qe(h.user,t.did)))?(0,Q.jsxs)(Q.Fragment,{children:["function"===typeof u?u({can:n,open:function(){return D(!0)}}):u,w?(0,Q.jsx)(Ze.Z,{title:T.title,description:T.description,confirm:T.confirm,cancel:T.cancel,params:T.params,onConfirm:T.onConfirm,onCancel:T.onCancel,color:T.color}):null]}):null}Fe.propTypes={user:f().object,onSuccess:f().func,onCancel:f().func,onError:f().func,children:f().oneOfType([f().object,f().func])},Fe.defaultProps={user:{},onSuccess:function(){},onCancel:function(){},onError:function(){},children:null};var Me=t(19611),Ve=t.n(Me);function Ke(e,n,t){if(e&&e.startsWith(I.USER_AVATAR_URL_PREFIX)){var r=window.env.apiPrefix||"/";return t?Ve()(r,I.USER_AVATAR_PATH_PREFIX,e.replace(I.USER_AVATAR_URL_PREFIX,"")):Ve()(r,I.USER_AVATAR_PATH_PREFIX,n,e.replace(I.USER_AVATAR_URL_PREFIX,""))}return e}var Je,He,Xe,$e=t(12502);f().string.isRequired;var Ge="info";function Ye(e){var n=e.userDid,t=e.onCancel,r=e.initTab,i=e.createPassportSvg,s=(0,L.h6)(),c=s.api,u=s.ws.useSubscription,d=s.inService,p=(0,O.DJ)(),m=p.roles,f=p.teamDid,h=p.enablePassportIssuance,v=(0,S.PE)(),g=v.t,b=v.locale,j=(0,xe.Z)({user:null,issuances:null,tab:r||Ge}),y=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(n,t){var r;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c.doBatchQuery({getUser:{input:{teamDid:n,user:{did:t},options:{includeTags:!0}}},getPassportIssuances:{input:{teamDid:n,ownerDid:t}}});case 3:(r=e.sent).getUser.user&&(r.getUser.user.avatar=Ke(r.getUser.user.avatar,n,d),r.getUser.user.passports=(r.getUser.user.passports||[]).filter((function(e){return e.issuer}))),j.user=r.getUser.user||{},j.issuances=r.getPassportIssuances.list||[],e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),z.Z.error((0,q.Z)(e.t0));case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(n,t){return e.apply(this,arguments)}}();(0,l.useEffect)((function(){f&&y(f,n)}),[n,f]);u(I.EVENTS.USER_UPDATED,(function(e){e.teamDid===f&&e.user&&e.user.did===n&&y(f,n)}),[n,f]),(0,l.useEffect)((function(){j.issuances&&!j.issuances.length&&"issuances"===j.tab&&(j.tab=Ge)}),[j.issuances]);var k=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(n){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y(f,n.did);case 2:j.tab=Ge;case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),P={auth0:"Auth0",wallet:"DID wallet",federated:"Federated"},C={info:{label:g("common.basicInfo"),value:Ge,component:function(){var e,n;return(j.user?[{name:g("team.member.name"),value:j.user.fullName},{name:g("common.email"),value:j.user.email},{name:g("team.member.source"),value:(0,Q.jsx)(Z.Z,{display:"flex",alignItems:"center",children:P[(null===(e=j.user)||void 0===e?void 0:e.sourceProvider)||I.USER_TYPE.WALLET]||(null===(n=j.user)||void 0===n?void 0:n.sourceProvider)})},{name:g("team.member.allowLogin"),value:j.user.approved?g("common.yes"):g("common.no")},{name:g("team.member.lastLogin"),value:(0,q.B2)(j.user.lastLoginAt,b)},{name:g("team.member.lastLoginIp"),value:j.user.lastLoginIp||""},{name:g("common.createdAt"),value:(0,q.B2)(j.user.createdAt,b)},{name:g("common.remark"),value:j.user.remark||"--"},Array.isArray(j.user.tags)&&j.user.tags.length>0?{name:g("common.tags"),value:j.user.tags.map((function(e){return(0,Q.jsx)(B.Z,{style:{background:e.color,color:(0,R.getTextColor)(e.color),marginRight:4},children:e.title},e.id)}))}:null].filter(Boolean):[]).map((function(e){return e.name===g("common.did")?(0,Q.jsx)(fe.Z,{valueComponent:"div",nameWidth:120,name:e.name,nameFormatter:function(){return g("common.did")},children:e.value},e.name):(0,Q.jsx)(fe.Z,{style:{alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:e.name,children:e.value},e.name)}))}},oauth:{label:g("team.member.connectedAccounts"),value:"oauth",component:function(){return(0,Q.jsx)($e.Z,{user:j.user,onChangeUser:k})}},passports:{label:g("common.passport"),value:"passports",component:function(){return(0,Q.jsx)(Le,{user:j.user,teamDid:f,roles:m,createPassportSvg:i,onCreate:function(){y(f,n).then((function(){h&&j.issuances&&j.issuances.length&&(j.tab="issuances")}))},onRefresh:function(){y(f,n)}})}},issuances:{label:g("team.passport.issuance.pending"),value:"issuances",component:function(){return(0,Q.jsx)(Se,{issuances:j.issuances||[],teamDid:f,onRefresh:function(){return y(f,n)}})}}},w=Object.values(C).map((function(e){return{label:e.label,value:e.value}})).filter((function(e){return"issuances"===e.value?h&&j.issuances&&!!j.issuances.length:"oauth"!==e.value||((null===(n=j.user)||void 0===n?void 0:n.connectedAccounts)||[]).find((function(e){var n;return e.provider!==((null===(n=j.user)||void 0===n?void 0:n.sourceProvider)||ge.LOGIN_PROVIDER.WALLET)}));var n})),D=C[j.tab]||C.info;return(0,Q.jsx)(x.ZP,{title:g("common.member"),onClose:t,open:!0,PaperProps:{style:{maxWidth:632,minHeight:"80vh"}},fullWidth:!0,actions:j.user&&(0,Q.jsx)(W.Z,{permission:d?"":"mutate_team",role:d?q.Wf:[],children:(0,Q.jsx)(Fe,{user:j.user,children:function(e){var n=e.open;return(0,Q.jsxs)(tn,{onClick:n,children:[j.user.approved?(0,Q.jsx)(he.Z,{style:{fontSize:"1.2em",marginRight:"0.4em"}}):(0,Q.jsx)(ve.Z,{style:{fontSize:"1.2em",marginRight:"0.4em"}}),j.user.approved?g("team.member.forbidLogin"):g("team.member.allowLogin")]})}})}),children:(0,Q.jsxs)(en,{children:[!j.user&&(0,Q.jsx)(nn,{children:(0,Q.jsx)(F.Z,{})}),j.user&&(0,Q.jsxs)("div",{children:[(0,Q.jsxs)(Z.Z,{display:"flex",alignItems:"center",className:"info",children:[(0,Q.jsx)(pe.Z,{src:j.user.avatar,style:{width:48,height:48,backgroundColor:"transparent",marginRight:16}}),(0,Q.jsxs)(Z.Z,{children:[(0,Q.jsx)(Z.Z,{className:"name",children:j.user.fullName}),(0,Q.jsx)(Z.Z,{className:"did",mt:1,children:(0,Q.jsx)(_.Z,{did:j.user.did})})]})]}),(0,Q.jsx)(Z.Z,{mx:3,className:"tabs",children:(0,Q.jsx)(me.Z,{tabs:w,current:j.tab,onChange:function(e){j.tab=e},scrollButtons:"auto"})}),(0,Q.jsx)("div",{className:"body",children:(0,Q.jsx)(D.component,{})})]})]})})}Ye.propTypes={userDid:f().string.isRequired,onCancel:f().func.isRequired,createPassportSvg:f().func.isRequired,initTab:f().string},Ye.defaultProps={initTab:Ge};var Qe,en=u.Z.div(Je||(Je=(0,i.Z)(["\n .info {\n .name {\n font-weight: 400;\n font-size: 18px;\n line-height: 25px;\n color: #222222;\n }\n }\n\n .tabs {\n margin-top: 24px;\n margin-left: 0;\n margin-right: 0;\n }\n\n .body {\n margin-top: 24px;\n }\n"]))),nn=u.Z.div(He||(He=(0,i.Z)(["\n flex: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n height: 200px;\n"]))),tn=u.Z.div(Xe||(Xe=(0,i.Z)(["\n flex-shrink: 0;\n width: 100%;\n height: 64px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n color: #999;\n fill: #999;\n font-size: 16px;\n border-top: 1px solid #f0f0f0;\n position: sticky;\n bottom: 0;\n background: #fff;\n z-index: 10;\n"]))),rn=t(10814);function sn(){var e=(0,L.h6)(),n=e.api,t=e.inService,r=(0,l.useContext)(S.RD),i=r.t,s=r.locale,u=(0,O.DJ)(),d=u.teamDid,p=u.invitations,m=u.refresh,f=u.endpoint,h=(0,l.useState)(null),v=(0,c.Z)(h,2),x=v[0],g=v[1],Z=(0,l.useState)(!1),b=(0,c.Z)(Z,2),j=b[0],y=b[1],k=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(t){var r;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.inviteId,!j){e.next=3;break}return e.abrupt("return");case 3:return y(!0),e.prev=4,e.next=7,n.deleteInvitation({input:{teamDid:d,inviteId:r}});case 7:return m(),e.next=10,(0,q._v)(800);case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(4),console.error(e.t0);case 15:return e.prev=15,y(!1),g(null),e.finish(15);case 19:case"end":return e.stop()}}),e,null,[[4,12,15,19]])})));return function(n){return e.apply(this,arguments)}}(),P=function(){y(!1),g(null)},w=function(e){return f?(0,q.ly)({inviteId:e.inviteId,endpoint:f}):""},D=[{label:i("team.inviting.link"),name:"inviteId",options:{sort:!1,customBodyRenderLite:function(e){var n=p[e];return f?(0,Q.jsx)(Y.Z,{children:w(n)}):(0,Q.jsx)(F.Z,{size:16})}}},{label:i("common.role"),name:"role",widtn:70},{label:i("common.remark"),name:"remark",options:{customBodyRender:function(e){return e||"--"}}},{label:i("team.inviting.inviter"),name:"inviter.fullName",options:{sort:!1,customBodyRender:function(e,n){var t,r=n.rowIndex,i=p[r];return null===i||void 0===i||null===(t=i.inviter)||void 0===t?void 0:t.fullName}}},{label:i("common.expires"),name:"expireDate",options:{customBodyRender:function(e){return(0,Q.jsx)(E.Z,{value:e,locale:s})}}},{label:i("common.actions"),name:"",width:100,align:"center",options:{sort:!1,customBodyRenderLite:function(e){var n=p[e];return(0,Q.jsx)(W.Z,{permission:t?"":"mutate_team",role:t?q.Wf:[],children:(0,Q.jsxs)(C.Z,{onClick:function(){return g({title:i("team.inviting.delete.title"),description:i("team.inviting.delete.description",{link:w(n)}),confirm:i("common.delConfirm"),cancel:i("common.cancel"),onConfirm:function(){return k(n)},onCancel:P})},size:"small",color:"error",variant:"text",children:[(0,Q.jsx)(rn.default,{style:{fontSize:"1.2em"}}),i("common.delete")]})})}}}];return(0,Q.jsxs)(on,{children:[p.length?(0,Q.jsx)(T.Z,{locale:s,data:(0,we.Z)(p),columns:D,verticalKeyWidth:100,options:{download:!1,filter:!1,print:!1}}):(0,Q.jsx)(Ee.Z,{children:i("common.empty")}),x&&(0,Q.jsx)(Ze.Z,{title:x.title,description:x.description,confirm:x.confirm,cancel:x.cancel,params:x.params,onConfirm:x.onConfirm,onCancel:x.onCancel})]})}var on=u.Z.div(Qe||(Qe=(0,i.Z)(["\n margin-top: -20px;\n"])));sn.propTypes={},sn.defaultProps={};var an,cn=t(93310),ln=t(86008),un=t(80714);function dn(e){var n=e.user,t=e.onIssuePassport,r=(0,O.DJ)(),i=r.teamDid,s=r.roles,o=(0,l.useContext)(S.RD).t,a=(0,l.useState)(!1),u=(0,c.Z)(a,2),d=u[0],p=u[1];return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(un.Z,{"data-cy":"member-actions",actions:[{icon:(0,Q.jsx)(y.Z,{fontSize:"small"}),text:o("team.passport.issue"),"data-cy":"action-issue-passport",onClick:function(e){e.stopPropagation(),p(!0)}},function(e){var t=e.close;return(0,Q.jsx)(Fe,{user:n,children:function(e){var r=e.open;return(0,Q.jsxs)(K.Z,{dense:!0,onClick:function(e){e.stopPropagation(),t(),r(e)},"data-cy":"action-toggle-block",children:[(0,Q.jsx)(cn.Z,{style:{minWidth:24,marginRight:8},children:n.approved?(0,Q.jsx)(he.Z,{}):(0,Q.jsx)(ve.Z,{})}),(0,Q.jsx)(ln.Z,{primary:n.approved?o("team.member.forbidLogin"):o("team.member.allowLogin")})]})}},"toggle-approval")}]}),d&&(0,Q.jsx)(Ae,{teamDid:i,ownerDid:n.did,needReceive:(0,Re.h1)(n)===n.did,roles:s,onCancel:function(){return p(!1)},onSuccess:function(){t(),p(!1)}})]})}dn.propTypes={user:f().object.isRequired,onIssuePassport:f().func},dn.defaultProps={onIssuePassport:function(){}};var pn="$all",mn="$none",fn=function(e,n){var t=e.find((function(e){return e.key===n}));return(null===t||void 0===t?void 0:t.value)||0},hn=function(e,n){var t=e.passports||[];return!!t.length&&!t.some((function(e){var t;return n.includes(null===(t=e.issuer)||void 0===t?void 0:t.id)}))};function vn(e){var n=e.user,t=(0,l.useContext)(S.RD).t,r=(0,Q.jsxs)("div",{className:"member-block",children:[(0,Q.jsxs)("div",{className:"member-avatar",children:[(0,Q.jsx)(P.Z,{src:"".concat(n.avatar,"?imageFilter=resize&w=48&h=48"),size:32,did:n.did,shape:"circle",style:{borderRadius:"100%",overflow:"hidden"}}),!n.approved&&(0,Q.jsx)("did",{className:"badge-block"}),n.isFromExternal&&(0,Q.jsx)(g.Z,{title:t("team.passport.externalPassport"),children:(0,Q.jsx)(Z.Z,{ml:1,className:"icon",children:(0,Q.jsx)(D.Z,{})})})]}),(0,Q.jsxs)("div",{className:"member-meta",children:[(0,Q.jsx)("div",{className:"member-text",children:n.fullName}),Array.isArray(n.tags)&&n.tags.length>0&&(0,Q.jsx)("div",{className:"member-tags",children:n.tags.map((function(e){return(0,Q.jsx)(B.Z,{style:{background:e.color,color:(0,R.getTextColor)(e.color),marginRight:4},children:e.title},e.id)}))})]})]});return n.approved?r:(0,Q.jsx)(Z.Z,{display:"flex",alignItems:"center",children:(0,Q.jsx)(g.Z,{title:t("team.member.forbidLoginDescription"),children:r})})}function xn(e){var n=e.type,t=e.createPassportSvg,r=(0,U.y0)().appIdList,i=void 0===r?[]:r,u=(0,O.DJ)(),d=u.teamDid,m=u.invitations,f=u.teamIssuerDid,h=u.roles,g=u.refresh,P=u.enablePassportIssuance,D=u.endpoint,R=u.api,B=(0,L.h6)(),F=B.inService,M=B.ws.useSubscription,V=(0,l.useContext)(S.RD),K=V.t,J=V.locale,H=(0,l.useState)(!1),X=(0,c.Z)(H,2),$=X[0],G=X[1],Y=(0,l.useState)(!1),ne=(0,c.Z)(Y,2),te=ne[0],re=ne[1],ie=(0,l.useState)(!1),se=(0,c.Z)(ie,2),oe=se[0],ae=se[1],le=(0,l.useState)(!1),ue=(0,c.Z)(le,2),de=ue[0],pe=ue[1],me=(0,l.useState)(!1),fe=(0,c.Z)(me,2),he=fe[0],ve=fe[1],xe=(0,l.useState)([]),ge=(0,c.Z)(xe,2),Ze=ge[0],be=ge[1],je=(0,l.useState)(),ye=(0,c.Z)(je,2),ke=ye[0],Pe=ye[1],Se=(0,l.useState)([]),Ce=(0,c.Z)(Se,2),we=Ce[0],De=Ce[1],Re=(0,N.Z)({did:void 0}),Te=(0,c.Z)(Re,1)[0],Ee="members-".concat(d),Ie=(0,T.$)(Ee),Ne=(0,l.useState)({role:pn,searchText:Ie.searchText||"",hideBlocked:!1,pageSize:Ie.rowsPerPage||10,page:Ie.page?Ie.page+1:1}),Ae=(0,c.Z)(Ne,2),ze=Ae[0],Be=Ae[1];(0,A.Z)((0,a.Z)((0,o.Z)().mark((function e(){var n,t;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Te.did){e.next=6;break}return e.next=3,R.getUser({did:Te.did});case 3:n=e.sent,(t=n.user)&&pe(t);case 6:case"end":return e.stop()}}),e)}))));var _e=(h||[]).map((function(e){return{name:e.name,title:e.title,num:fn(we,e.name)}}));_e.unshift({name:pn,title:"All Members",num:fn(we,pn)}),_e.push({name:mn,title:"Other",num:fn(we,mn)});var Le=function(){var e={includeTags:!0};ze.hideBlocked&&(e.approved=!0),e.role=ze.role,ze.searchText&&(e.search=ze.searchText),ve(!0),R.getUsers({query:e,paging:{page:ze.page,pageSize:ze.pageSize}}).then((function(e){ve(!1),(e.users||[]).forEach((function(e){e.isFromExternal=hn(e,p()(i)?[f]:i),e.avatar=Ke(e.avatar,d,F),e.passports=(e.passports||[]).filter((function(e){return e.issuer}))})),be(e.users||[]),Pe(e.paging.total)})).catch((function(e){ve(!1),z.Z.error(e.message)}))},Oe=function(){R.getUsersCountPerRole().then((function(e){De(e.counts||[])})).catch((function(e){z.Z.error(e.message)}))},Ue=function(e){e.teamDid===d&&(Le(),Oe())};(0,l.useEffect)((function(){Le()}),["".concat(ze.hideBlocked,"-").concat(ze.role,"-").concat(ze.page,"-").concat(ze.pageSize,"-").concat(ze.searchText)]),(0,l.useEffect)((function(){Oe()}),[]),M(I.EVENTS.USER_UPDATED,Ue,[ze]),M(I.EVENTS.USER_ADDED,Ue,[ze]);var We=P,qe=[{label:K("common.name"),name:"fullName",options:{customBodyRenderLite:function(e){var n=Ze[e];return(0,Q.jsx)("div",{"data-cy":"member-name-".concat(n.fullName),children:(0,Q.jsx)(vn,{user:n})},n.did)}}},{label:K("common.address"),name:"did",options:{customBodyRender:function(e){return(0,Q.jsx)(_.Z,{size:14,responsive:!0,copyable:!1,did:e})}}},{label:K("team.member.lastLogin"),name:"lastLoginAt",options:{customBodyRender:function(e){return(0,Q.jsx)(E.Z,{value:e,locale:J})}}},{label:K("team.member.lastLoginIp"),name:"lastLoginIp",options:{customBodyRender:function(e){return e||"-"}}},{label:K("team.member.source"),name:"sourceProvider",options:{customBodyRenderLite:function(e){var n=Ze[e],t=n.sourceProvider||I.USER_TYPE.WALLET,r={auth0:"Auth0",wallet:"DID wallet",federated:"Federated"}[t]||t;return n.sourceAppPid?"".concat(r," (").concat(K("team.member.federated"),")"):r}}},{label:K("common.actions"),name:"",width:100,align:"center",verticalKeyAlign:"center",options:{customBodyRenderLite:function(e){var n=Ze[e];return(0,Q.jsx)(W.Z,{permission:F?"":"mutate_team",role:F?q.Wf:[],children:(0,Q.jsx)(dn,{user:n,onIssuePassport:function(){return pe((0,s.Z)((0,s.Z)({},n),{},{initTab:"issuances"}))}})})}}}],Fe=[];We&&(Fe.push((0,Q.jsxs)(C.Z,{variant:"outlined",style:{flexShrink:0,marginRight:16},color:"primary",size:"small",onClick:function(){ae(!0)},children:[(0,Q.jsx)(w.Z,{style:{height:"1em",marginRight:4}}),K("common.inviting"),m.length?" (".concat(m.length,")"):""]}),(0,Q.jsx)(W.Z,{permission:F?"":"mutate_team",role:F?q.Wf:[],children:(0,Q.jsxs)(C.Z,{style:{flexShrink:0,marginRight:16},variant:"contained",edge:"end",color:"primary",size:"small","data-cy":"invite-member",onClick:function(){return G(!0)},children:[(0,Q.jsx)(y.Z,{style:{fontSize:"1.3em",marginRight:4}}),K("team.invite")]})})),"server"===n&&Fe.push((0,Q.jsx)(W.Z,{role:"owner",children:(0,Q.jsxs)(C.Z,{style:{flexShrink:0},variant:"contained",edge:"end",color:"error",size:"small","data-cy":"invite-member",onClick:function(){return re(!0)},children:[(0,Q.jsx)(k.Z,{style:{fontSize:"1.3em",marginRight:4}}),K("team.transferNode.name")]})})));var Me={sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!0,onRowClick:function(e,n){var t=n.dataIndex,r=Ze[t];pe(r)},page:ze.page-1,rowsPerPage:ze.pageSize,count:ke,searchDebounceTime:600};return(0,Q.jsxs)(gn,{children:[(0,Q.jsxs)(Z.Z,{className:"main",display:"flex",sx:{mt:F?4:0},children:[(0,Q.jsx)("div",{className:"left",children:(0,Q.jsx)("div",{className:"tabs",children:_e.map((function(e){return(0,Q.jsxs)("div",{className:"tab ".concat(ze.role===e.name?"active":""),onClick:function(){return n=e.name,void(he||Be((function(e){return(0,s.Z)((0,s.Z)({},e),{},{role:n,hideBlocked:!1,searchText:"",page:1})})));var n},children:[(0,Q.jsx)("span",{className:"text",children:e.title}),(0,Q.jsx)("span",{className:v()("badge",{"is-rect":e.num>999}),children:e.num})]},e.name)}))})}),(0,Q.jsx)("div",{className:"right",children:(0,Q.jsx)(T.Z,{className:"main-table",verticalKeyWidth:100,locale:J,durable:Ee,durableKeys:["page","rowsPerPage"],title:(0,Q.jsx)("div",{className:"table-toolbar-left",children:(0,Q.jsx)(b.Z,{control:(0,Q.jsx)(j.Z,{sx:{display:"flex !important"},disabled:he,color:"primary",checked:ze.hideBlocked,onChange:function(e){return n=e.target.checked,void Be((function(e){return(0,s.Z)((0,s.Z)({},e),{},{hideBlocked:n,page:1})}));var n}}),label:K("team.member.hideBlockedMember")})}),data:Ze,columns:qe,customButtons:Fe,options:Me,loading:he,onChange:function(e){var n=e.page,t=e.rowsPerPage,r=e.searchText;ze.pageSize!==t?Be((function(e){return(0,s.Z)((0,s.Z)({},e),{},{pageSize:t,page:1})})):ze.page!==n+1?Be((function(e){return(0,s.Z)((0,s.Z)({},e),{},{page:n+1})})):ze.searchText!==r&&Be((function(e){return(0,s.Z)((0,s.Z)({},e),{},{searchText:r,page:1})}))}})})]}),(0,Q.jsx)(x.ZP,{title:K("common.inviting"),onClose:function(){return ae(!1)},open:oe,maxWidth:"lg",fullWidth:!0,children:(0,Q.jsx)(sn,{})}),de&&(0,Q.jsx)(Ye,{onCancel:function(){return pe(null)},userDid:de.did,createPassportSvg:t,initTab:de.initTab}),$&&(0,Q.jsx)(ee,{teamDid:d,endpoint:D,roles:h,onCancel:function(){return G(!1)},onSuccess:function(){g(),G(!1)}}),te&&(0,Q.jsx)(ce,{teamDid:d,endpoint:D,roles:h,onCancel:function(){return re(!1)},onSuccess:function(){g(),re(!1)}})]})}vn.propTypes={user:f().object.isRequired};var gn=u.Z.div(an||(an=(0,i.Z)(["\n .main {\n .left {\n width: 168px;\n flex-shrink: 0;\n margin-right: 65px;\n .tabs {\n padding-top: 16px;\n .tab {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 8px 16px;\n transition: background 0.4s;\n\n width: 168px;\n height: 36px;\n border-radius: 8px;\n\n cursor: pointer;\n user-select: none;\n\n &:nth-child(n + 2) {\n margin-top: 24px;\n }\n\n &.active {\n background: #f2f2f2;\n }\n\n &:hover {\n background: #f2f2f2;\n }\n\n .text {\n font-weight: 400;\n font-size: 16px;\n line-height: 19px;\n\n color: #222222;\n }\n\n .badge {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 20px;\n height: 20px;\n border-radius: 100%;\n color: #fff;\n background: #666666;\n font-size: 10px;\n font-weight: 400;\n &.is-rect {\n width: auto;\n border-radius: 8px;\n padding: 0 4px;\n }\n }\n }\n }\n @media (max-width: ","px) {\n display: none;\n }\n }\n .right {\n flex-grow: 1;\n }\n }\n\n .member-block {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n .member-avatar {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .member-meta {\n margin-left: 10px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n }\n .badge-block {\n width: 14px;\n height: 14px;\n position: absolute;\n right: -4px;\n top: -4px;\n background: #ff5757;\n border-radius: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n &::after {\n content: '';\n width: 6px;\n height: 2px;\n background: #fefefe;\n }\n }\n }\n\n .table-toolbar-left {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 7px 0;\n }\n"])),(function(e){return e.theme.breakpoints.values.md}));xn.propTypes={type:f().oneOf(["server","blocklet"]).isRequired,createPassportSvg:f().func.isRequired}},75980:function(e,n,t){"use strict";t.d(n,{Z:function(){return x}});var r,i=t(71171),s=t(33028),o=t(59740),a=(t(30969),t(24974)),c=t.n(a),l=t(16380),u=t(70093),d=t.n(u),p=t(38361),m=t(26022),f=t(69936),h=t(37574),v=["passport","user","color","width","icon","children","createPassportSvg"];function x(e){var n=e.passport,t=e.user,r=e.color,i=e.width,a=e.icon,c=e.children,l=e.createPassportSvg,u=(0,o.Z)(e,v),x=(0,m.PE)().t;return(0,h.jsxs)(g,(0,s.Z)((0,s.Z)({display:"flex",alignItems:"center"},u),{},{children:[(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:l({title:n.title||n.name,issuer:n.issuer&&n.issuer.name,issuerDid:n.issuer&&n.issuer.id,ownerName:t.fullName,ownerDid:t.did,ownerAvatarUrl:t.avatar,revoked:n.revoked,preferredColor:r,width:i})}}),(0,h.jsxs)("div",{className:"body",children:[(0,h.jsxs)(p.Z,{className:"title",display:"flex",alignItems:"center",children:[d()(n.title),(0,h.jsxs)("div",{className:"status-icons",children:[a,n.revoked&&(0,h.jsx)(f.Z,{})]})]}),n.expirationDate&&(0,h.jsx)(p.Z,{className:"title",display:"flex",alignItems:"center",children:x("team.passport.validUntil",{date:n.expirationDate})}),c]})]}))}x.propTypes={passport:c().any.isRequired,user:c().any.isRequired,color:c().string.isRequired,createPassportSvg:c().func.isRequired,icon:c().any,children:c().any,width:c().number},x.defaultProps={icon:null,children:null,width:150};var g=(0,l.Z)(p.Z)(r||(r=(0,i.Z)(["\n .body {\n padding: 0;\n margin-left: 24px;\n margin-top: 0;\n }\n .title {\n font-weight: 400;\n font-size: 16px;\n line-height: 19px;\n color: #222222;\n }\n .tip {\n display: flex;\n align-items: center;\n font-size: 14px;\n margin-top: 6px;\n color: #bbb;\n }\n .status-icons {\n svg {\n fill: #bfbfbf;\n height: 1.2em;\n margin-left: 0.4em;\n }\n }\n"])))},83683:function(e,n,t){"use strict";var r,i=t(33028),s=t(59740),o=t(71171),a=t(16380),c=t(87006),l=t(90713),u=t(37574),d=["children"],p=(0,a.Z)((function(e){var n=e.children,t=(0,s.Z)(e,d);return(0,u.jsx)(c.Z,(0,i.Z)((0,i.Z)({},t),{},{id:"outlined-basic",variant:"outlined",InputProps:{startAdornment:(0,u.jsx)(l.default,{})},size:"small",children:n}))}))(r||(r=(0,o.Z)(["\n .MuiOutlinedInput-root {\n color: #999;\n &.MuiInputBase-adornedStart .MuiSvgIcon-root {\n color: #bfbfbf;\n }\n opacity: 1;\n border-radius: 36px;\n background: #f8f8f8;\n padding-left: 16px;\n input {\n padding-left: 8px;\n font-weight: bold;\n &::placeholder {\n opacity: 1;\n color: #bfbfbf;\n }\n padding-top: 8.5px;\n padding-bottom: 8.5px;\n }\n }\n\n .MuiOutlinedInput-notchedOutline,\n .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline,\n .Mui-focused .MuiOutlinedInput-notchedOutline {\n border-color: #eee;\n border-width: 1px;\n }\n"])));n.Z=p},36568:function(e,n,t){"use strict";var r,i=t(71171),s=t(16380).Z.div(r||(r=(0,i.Z)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-size: 14px;\n .left,\n .right {\n }\n .right {\n display: flex;\n align-items: center;\n }\n .tabs {\n .MuiButton-root {\n border: none;\n color: #999;\n &.active {\n color: #222;\n }\n }\n }\n\n @media (max-width: 600px) {\n display: block;\n .right {\n margin-top: 12px;\n }\n }\n"])));n.Z=s}}]);
|
|
2
|
-
//# sourceMappingURL=2653.980158ea.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[2664],{46513:function(e,n,t){n.Z=void 0;(r=t(30969))&&r.__esModule;var r,o=t(37574);function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){l(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function l(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var a=function(e){return(0,o.jsx)("svg",c(c({},e),{},{children:(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.606 17.32a7.933 7.933 0 0 1-.581-1.18c-.165-.411-.312-.86-.44-1.339a7.639 7.639 0 0 0-1.586 1.054 7.69 7.69 0 0 0 2.607 1.465zm.657-1.675c-.16-.4-.305-.848-.429-1.335A7.643 7.643 0 0 1 10 14h.002c.734 0 1.463.104 2.165.31-.124.487-.268.935-.428 1.335-.283.707-.604 1.235-.925 1.575-.32.339-.595.447-.813.447-.218 0-.493-.108-.813-.447-.322-.34-.642-.867-.925-1.575zM10 12.667a8.976 8.976 0 0 1 2.436.334c.116-.727.193-1.511.22-2.334H7.344c.027.823.103 1.607.22 2.334A8.972 8.972 0 0 1 10 12.667zM7.345 9.333c.027-.823.103-1.607.22-2.334.791.223 1.61.335 2.436.334A8.974 8.974 0 0 0 12.437 7c.116.727.193 1.511.22 2.334H7.344zm6.646 1.334c-.03.982-.127 1.925-.28 2.797.81.367 1.56.852 2.227 1.439a7.666 7.666 0 0 0 1.734-4.236h-3.681zm3.681-1.334H13.99a19.718 19.718 0 0 0-.28-2.798 8.975 8.975 0 0 0 2.228-1.438 7.665 7.665 0 0 1 1.734 4.236zm1.329.669A9 9 0 1 1 1 10a9 9 0 0 1 18 0v.002zM2.329 9.333a7.665 7.665 0 0 1 1.734-4.236A8.974 8.974 0 0 0 6.29 6.535a19.74 19.74 0 0 0-.28 2.798H2.329zm0 1.334h3.682c.03.983.126 1.925.28 2.797a8.974 8.974 0 0 0-2.228 1.439 7.665 7.665 0 0 1-1.734-4.236zm10.648 5.473c.164-.411.312-.86.44-1.34.57.285 1.103.639 1.585 1.055a7.687 7.687 0 0 1-2.606 1.465c.216-.354.41-.751.58-1.18zm-.581-13.46c.967.316 1.85.819 2.606 1.465A7.64 7.64 0 0 1 13.417 5.2c-.128-.48-.276-.928-.44-1.34a7.925 7.925 0 0 0-.581-1.18zm-.657 1.675c.16.4.304.848.428 1.335a7.64 7.64 0 0 1-2.165.31H10a7.64 7.64 0 0 1-2.166-.31c.124-.487.268-.935.429-1.335.283-.708.603-1.235.925-1.575.32-.339.595-.447.813-.447.218 0 .492.108.813.447.321.34.642.867.925 1.575zM7.025 3.86c-.165.411-.312.86-.44 1.34a7.64 7.64 0 0 1-1.586-1.055A7.688 7.688 0 0 1 7.606 2.68c-.216.354-.41.751-.581 1.18z",fill:"currentColor"})}))};a.defaultProps={width:"21",height:"20",viewBox:"0 0 21 20",xmlns:"http://www.w3.org/2000/svg"},a.displayName="globe";var s=a;n.Z=s},91077:function(e,n,t){n.Z=void 0;(r=t(30969))&&r.__esModule;var r,o=t(37574);function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){l(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function l(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var a=function(e){return(0,o.jsxs)("svg",c(c({},e),{},{children:[(0,o.jsx)("path",{d:"M9.928 13.133a.981.981 0 0 0-.678.252.79.79 0 0 0-.281.61c0 .27.094.482.283.636.19.154.41.231.663.231.257 0 .48-.076.673-.228.19-.153.287-.365.287-.639a.796.796 0 0 0-.275-.61.958.958 0 0 0-.672-.252zM12.633 7.2a2.526 2.526 0 0 0-1.035-.88c-.441-.212-.955-.32-1.528-.32-.617 0-1.166.129-1.63.383-.467.255-.826.582-1.07.972-.245.392-.37.786-.37 1.172 0 .205.086.397.254.57.169.174.38.262.625.262.419 0 .705-.246.85-.729.132-.399.296-.703.485-.905.177-.19.465-.286.856-.286.336 0 .602.095.813.29.208.191.309.42.309.698a.78.78 0 0 1-.1.387c-.07.125-.156.24-.258.342-.108.109-.287.27-.53.484a9.184 9.184 0 0 0-.679.647 2.268 2.268 0 0 0-.42.656 2.27 2.27 0 0 0-.159.884c0 .288.08.511.24.663.156.15.352.227.58.227.439 0 .714-.24.796-.687.041-.186.073-.316.094-.39.019-.067.046-.136.081-.205.034-.068.089-.144.162-.227.076-.088.179-.19.305-.306.472-.422.805-.727.99-.908.19-.186.356-.41.493-.665A1.9 1.9 0 0 0 13 8.416a2.18 2.18 0 0 0-.367-1.217",fill:"currentColor"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 17.5a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15zm0 1.5a9 9 0 1 0 0-18 9 9 0 0 0 0 18z",fill:"currentColor"})]}))};a.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},a.displayName="question-mark-circle";var s=a;n.Z=s},47650:function(e,n,t){n.Z=void 0;(r=t(30969))&&r.__esModule;var r,o=t(37574);function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){l(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function l(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var a=function(e){return(0,o.jsxs)("svg",c(c({},e),{},{children:[(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 10.673L30.72 0 12.288 10.673v14.194L0 31.982v21.345L18.432 64l12.258-7.098.03.017.03-.017L43.008 64 61.44 53.327V31.982l-12.288-7.115V10.673zm10.368 22.42l-12.288-7.115V11.784L30.72 2.224l-16.512 9.56v14.194L1.92 33.093v19.122l16.512 9.561L30.69 54.68l.03.017.03-.017 12.258 7.097 16.512-9.56V33.093z",fill:"url(#paint0_linear_615_418)"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80.005 26.07V10.03h7.737a3.795 3.795 0 0 1 3.79 3.8v1.152c0 1.01-.394 1.929-1.035 2.61a3.801 3.801 0 0 1 1.901 3.295v1.382c0 2.1-1.696 3.8-3.79 3.8h-8.603zm1.684-8.983h6.226a2.11 2.11 0 0 0 1.932-2.104V13.83a2.108 2.108 0 0 0-2.105-2.112h-6.053v5.369zm0 7.294v-5.598l6.92-.007c1.163 0 2.105.945 2.105 2.111v1.382a2.108 2.108 0 0 1-2.105 2.112h-6.92zm15.566-14.352v16.04h-1.762V10.03h1.762zm8.733 4.331h-1.827a3.816 3.816 0 0 0-3.811 3.822v4.066a3.816 3.816 0 0 0 3.811 3.822h1.827a3.817 3.817 0 0 0 3.811-3.822v-4.066a3.817 3.817 0 0 0-3.811-3.822zm-1.827 1.768c-1.131 0-2.049.92-2.049 2.054v4.066c0 1.135.918 2.054 2.049 2.054h1.827c1.131 0 2.048-.92 2.048-2.054v-4.066a2.051 2.051 0 0 0-2.048-2.054h-1.827zm21.043 9.948v-5.77h2.148l3.322 5.77h2.035l-3.821-6.638 2.993-5.198h-2.035l-2.474 4.298h-2.168V10.03h-1.762v16.047h1.762zm-5.556-7.581v-.313a2.051 2.051 0 0 0-2.048-2.054h-1.827c-1.132 0-2.049.92-2.049 2.054v4.066c0 1.135.917 2.054 2.049 2.054h1.827c1.131 0 2.048-.92 2.048-2.054v-.313h1.762v.313a3.816 3.816 0 0 1-3.81 3.822h-1.827a3.816 3.816 0 0 1-3.811-3.822v-4.066a3.816 3.816 0 0 1 3.811-3.822h1.827a3.816 3.816 0 0 1 3.81 3.822v.313h-1.762zm17.918 7.575V10.03h-1.762v16.04h1.762zm4.989-5.372v1.55c0 1.135.917 2.054 2.049 2.054h1.827c1.131 0 2.048-.92 2.048-2.054v-.313h1.762v.313a3.816 3.816 0 0 1-3.81 3.822h-1.827a3.816 3.816 0 0 1-3.811-3.822v-4.066a3.816 3.816 0 0 1 3.811-3.822h1.827a3.816 3.816 0 0 1 3.81 3.822v.748h.001v1.768h-7.687zm5.924-1.768h-5.924v-.748c0-1.134.917-2.054 2.049-2.054h1.827c1.131 0 2.048.92 2.048 2.054v.748zm5.489-1.917H152.4v-1.768h1.568V12.39h1.684v2.856h4.077v1.768h-4.077v5.693c0 .925.747 1.675 1.669 1.675s1.67-.75 1.67-1.675v-.351h1.684v.351a3.358 3.358 0 0 1-3.354 3.364 3.358 3.358 0 0 1-3.353-3.364v-5.693z",fill:"#121319"}),(0,o.jsx)("path",{d:"M91.034 36.52c-.112.196-.233.34-.364.434a.793.793 0 0 1-.462.126c-.196 0-.41-.07-.644-.21-.224-.15-.495-.313-.812-.49a6.307 6.307 0 0 0-1.12-.476c-.42-.15-.92-.224-1.498-.224-.523 0-.98.065-1.372.196a2.87 2.87 0 0 0-.994.518 2.117 2.117 0 0 0-.588.812 2.59 2.59 0 0 0-.196 1.022c0 .476.13.872.392 1.19.27.317.625.588 1.064.812.439.224.938.424 1.498.602.56.177 1.134.368 1.722.574.588.196 1.162.429 1.722.7.56.261 1.06.597 1.498 1.008.439.401.789.896 1.05 1.484.27.588.406 1.302.406 2.142 0 .914-.159 1.773-.476 2.576a5.884 5.884 0 0 1-1.372 2.086c-.597.588-1.33 1.054-2.198 1.4-.868.336-1.862.504-2.982.504a9.288 9.288 0 0 1-1.904-.196 9.827 9.827 0 0 1-1.806-.532 9.763 9.763 0 0 1-1.61-.84 7.8 7.8 0 0 1-1.344-1.092l1.106-1.806c.093-.131.215-.238.364-.322a.883.883 0 0 1 .476-.14c.233 0 .485.098.756.294.27.186.593.396.966.63.373.233.807.448 1.302.644.504.186 1.106.28 1.806.28 1.073 0 1.904-.252 2.492-.756.588-.514.882-1.246.882-2.198 0-.532-.135-.966-.406-1.302a3.073 3.073 0 0 0-1.05-.84 7.585 7.585 0 0 0-1.498-.588c-.56-.159-1.13-.332-1.708-.518a14.738 14.738 0 0 1-1.708-.672 5.535 5.535 0 0 1-1.498-1.022 4.75 4.75 0 0 1-1.064-1.568c-.261-.635-.392-1.414-.392-2.338 0-.738.145-1.456.434-2.156.299-.7.728-1.321 1.288-1.862.56-.542 1.25-.976 2.072-1.302.821-.327 1.764-.49 2.828-.49 1.195 0 2.296.186 3.304.56 1.008.373 1.867.896 2.576 1.568l-.938 1.778zM104.274 44.248a3.95 3.95 0 0 0-.196-1.26 2.909 2.909 0 0 0-.56-1.05 2.557 2.557 0 0 0-.966-.7c-.382-.178-.83-.266-1.344-.266-.998 0-1.787.284-2.365.854-.57.569-.934 1.376-1.093 2.422h6.524zm-6.594 2.086c.056.737.187 1.376.392 1.918a4 4 0 0 0 .813 1.33c.335.345.732.606 1.189.784.467.168.98.252 1.54.252s1.041-.066 1.442-.196c.411-.131.766-.276 1.064-.434.308-.159.574-.304.798-.434a1.38 1.38 0 0 1 .672-.196c.29 0 .504.107.644.322l.994 1.26a5.902 5.902 0 0 1-1.288 1.134 7.653 7.653 0 0 1-1.498.728 8.298 8.298 0 0 1-1.582.378c-.532.074-1.05.112-1.554.112a7.772 7.772 0 0 1-2.785-.49 6.361 6.361 0 0 1-2.24-1.47c-.635-.654-1.135-1.456-1.499-2.408-.364-.962-.545-2.072-.545-3.332 0-.98.158-1.9.476-2.758.317-.868.77-1.62 1.358-2.254a6.47 6.47 0 0 1 2.17-1.526c.858-.374 1.824-.56 2.897-.56.906 0 1.741.144 2.506.434.766.289 1.424.714 1.974 1.274.551.55.98 1.232 1.288 2.044.318.802.476 1.722.476 2.758 0 .522-.056.877-.168 1.064-.112.177-.326.266-.644.266h-8.89zM113.24 41.21c.448-.859.98-1.531 1.596-2.016.616-.495 1.344-.742 2.184-.742.662 0 1.194.144 1.596.434l-.224 2.59c-.047.168-.117.289-.21.364a.558.558 0 0 1-.35.098c-.14 0-.35-.024-.63-.07a4.694 4.694 0 0 0-.798-.07c-.383 0-.724.056-1.022.168-.299.112-.57.275-.812.49a3.354 3.354 0 0 0-.63.756c-.178.298-.346.639-.504 1.022v8.848h-3.458V38.718h2.03c.354 0 .602.065.742.196.14.121.233.345.28.672l.21 1.624zM133.373 38.718l-5.698 14.364h-3.136l-5.698-14.364h2.856c.261 0 .476.06.644.182a.849.849 0 0 1 .35.462l2.772 7.672a20.846 20.846 0 0 1 .686 2.604 31.6 31.6 0 0 1 .308-1.288c.112-.43.247-.868.406-1.316l2.828-7.672a.944.944 0 0 1 .35-.462 1 1 0 0 1 .602-.182h2.73zM144.032 44.248a3.95 3.95 0 0 0-.196-1.26 2.909 2.909 0 0 0-.56-1.05 2.557 2.557 0 0 0-.966-.7c-.382-.178-.83-.266-1.344-.266-.998 0-1.787.284-2.366.854-.569.569-.933 1.376-1.092 2.422h6.524zm-6.594 2.086c.056.737.187 1.376.392 1.918.206.532.476.975.812 1.33.336.345.733.606 1.19.784.467.168.98.252 1.54.252s1.041-.066 1.442-.196c.411-.131.766-.276 1.064-.434.308-.159.574-.304.798-.434a1.38 1.38 0 0 1 .672-.196c.29 0 .504.107.644.322l.994 1.26a5.902 5.902 0 0 1-1.288 1.134 7.653 7.653 0 0 1-1.498.728 8.298 8.298 0 0 1-1.582.378c-.532.074-1.05.112-1.554.112a7.776 7.776 0 0 1-2.786-.49 6.37 6.37 0 0 1-2.24-1.47c-.634-.654-1.134-1.456-1.498-2.408-.364-.962-.546-2.072-.546-3.332 0-.98.159-1.9.476-2.758.318-.868.77-1.62 1.358-2.254a6.48 6.48 0 0 1 2.17-1.526c.859-.374 1.825-.56 2.898-.56.906 0 1.741.144 2.506.434.766.289 1.424.714 1.974 1.274.551.55.98 1.232 1.288 2.044.318.802.476 1.722.476 2.758 0 .522-.056.877-.168 1.064-.112.177-.326.266-.644.266h-8.89zM152.997 41.21c.448-.859.98-1.531 1.596-2.016.616-.495 1.344-.742 2.184-.742.663 0 1.195.144 1.596.434l-.224 2.59c-.046.168-.116.289-.21.364a.556.556 0 0 1-.35.098c-.14 0-.35-.024-.63-.07a4.676 4.676 0 0 0-.798-.07c-.382 0-.723.056-1.022.168a2.599 2.599 0 0 0-.812.49 3.408 3.408 0 0 0-.63.756c-.177.298-.345.639-.504 1.022v8.848h-3.458V38.718h2.03c.355 0 .602.065.742.196.14.121.234.345.28.672l.21 1.624z",fill:"#121319"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 24.83L30.72 14.19 12.288 24.831v21.283L30.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L30.72 54.539l-16.512-9.533V25.939zm13.338-2.894a.96.96 0 0 1 .924-.696h4.5a.96.96 0 0 1 .924.696l.856 2.999 2.12 1.223 3.025-.757a.96.96 0 0 1 1.064.451l2.25 3.898a.96.96 0 0 1-.14 1.148l-2.17 2.24v2.448l2.17 2.24a.96.96 0 0 1 .14 1.148l-2.25 3.899a.96.96 0 0 1-1.065.45l-3.024-.756-2.12 1.223-.856 2.998a.96.96 0 0 1-.923.697H28.47a.96.96 0 0 1-.924-.697L26.69 44.9l-2.12-1.223-3.024.757a.96.96 0 0 1-1.065-.451l-2.25-3.898a.96.96 0 0 1 .141-1.148l2.168-2.241v-2.447l-2.168-2.241a.96.96 0 0 1-.142-1.148l2.251-3.898a.96.96 0 0 1 1.065-.451l3.025.757 2.119-1.223.856-2.999zm.44 4.467a.96.96 0 0 0 .443-.567l.765-2.676h3.053l.764 2.676a.96.96 0 0 0 .443.567l2.792 1.612a.96.96 0 0 0 .713.1l2.7-.676 1.526 2.644-1.935 2a.96.96 0 0 0-.27.668v3.223c0 .25.097.489.27.668l1.935 2-1.527 2.643-2.699-.675a.96.96 0 0 0-.713.1l-2.792 1.612a.96.96 0 0 0-.443.567l-.764 2.676h-3.053l-.765-2.676a.96.96 0 0 0-.443-.567l-2.792-1.612a.96.96 0 0 0-.713-.1l-2.7.675-1.526-2.643 1.935-2a.96.96 0 0 0 .27-.668V33.86a.96.96 0 0 0-.27-.667l-1.935-2 1.527-2.644 2.7.676a.96.96 0 0 0 .712-.1l2.792-1.612zm2.734 14.128a6.168 6.168 0 1 1 0-12.337 6.168 6.168 0 0 1 0 12.337zm4.248-6.169a4.248 4.248 0 1 1-8.496 0 4.248 4.248 0 0 1 8.496 0z",fill:"url(#paint1_linear_615_418)"}),(0,o.jsxs)("defs",{children:[(0,o.jsxs)("linearGradient",{id:"paint0_linear_615_418",x1:"30.72",y1:"96",x2:"94.667",y2:"34.611",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#0FA4B7"}),(0,o.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,o.jsxs)("linearGradient",{id:"paint1_linear_615_418",x1:"27.437",y1:"99.246",x2:"97.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#0FA4B7"}),(0,o.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};a.defaultProps={width:"170",height:"64",viewBox:"0 0 170 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.displayName="server-logo";var s=a;n.Z=s},26681:function(e,n,t){t.d(n,{Z:function(){return Z}});var r,o,i=t(71171),c=t(33028),l=t(96234),a=t(59740),s=t(30969),u=t(24974),p=t.n(u),v=t(72097),f=t(94551),h=t(38361),d=t(33359),m=t(38589),b=t(23484),g=t(2689),y=t(45761),j=t(38996),x=t(46513),w=t(79216),O=t(26022),z=t(55581),P=t(37574),k=["showText","popperProps","popperType","icon","size"];function Z(e){var n,t,r,o=e.showText,i=e.popperProps,u=e.popperType,p=e.icon,y=e.size,w=(0,a.Z)(e,k),Z=(0,s.useContext)(O.RD),M=Z.locale,S=Z.changeLocale,D=Z.languages,L=(0,s.useRef)(null),V=(0,s.useState)(!1),E=(0,l.Z)(V,2),R=E[0],T=E[1],A=(0,z.Fg)(),N="dark"===(null===A||void 0===A||null===(n=A.palette)||void 0===n?void 0:n.mode),B=o?v.Z:f.Z,H="hover"===u?{onMouseEnter:function(){T(!0)},onMouseLeave:function(){T(!1)}}:{onClick:function(){T(!R)}},F=(0,s.useMemo)((function(){return p?(0,P.jsx)(p,{}):(0,P.jsx)(x.Z,{style:{width:"auto",height:y,color:A.palette.text.secondary}})}),[p,null===A||void 0===A||null===(t=A.palette)||void 0===t||null===(r=t.text)||void 0===r?void 0:r.secondary,y]);return(0,P.jsxs)(_,(0,c.Z)((0,c.Z)((0,c.Z)({component:"div",dark:N,theme:A},w),H),{},{children:[(0,P.jsx)(B,{ref:L,className:"trigger",role:"button","aria-label":"Locale selector button",children:(0,P.jsxs)(h.Z,{display:"flex",alignItems:"center",children:[F,o?(0,P.jsx)(d.Z,{component:"strong",className:"trigger-text",children:D.find((function(e){return e.code===M})).name}):""]})}),(0,P.jsx)(C,(0,c.Z)((0,c.Z)({open:R,anchorEl:L.current},i),{},{disablePortal:!0,children:(0,P.jsx)("div",{className:"locales",children:(0,P.jsx)(m.d,{onClickAway:function(e){var n;null!==(n=L.current)&&void 0!==n&&n.contains(e.target)||T(!1)},children:(0,P.jsx)(b.Z,{children:D.map((function(n){var t=n.code,r=n.name;return(0,P.jsxs)(g.Z,{className:"locale-item",onClick:function(){return S(n=t),T(!1),void("function"===typeof e.onChange&&e.onChange(n));var n},children:[(0,P.jsx)(j.default,{className:t===M?"check-icon check-icon-visible":"check-icon",fontSize:"small"}),r]},t)}))})})})}))]}))}Z.propTypes={size:p().number,showText:p().bool,popperProps:p().object,onChange:p().func,popperType:p().oneOf(["hover","click"]),icon:p().any},Z.defaultProps={showText:!0,size:24,popperProps:{},onChange:function(){},popperType:"click",icon:null};var _=(0,z.zo)("div",{shouldForwardProp:function(e){return"dark"!==e}})(r||(r=(0,i.Z)(["\n display: inline-block;\n\n .trigger {\n display: flex;\n flex-direction: column;\n justify-content: center;\n font-size: 14px;\n white-space: nowrap;\n\n .trigger-text {\n margin-left: 5px;\n font-size: 14px;\n color: ",";\n }\n }\n\n .locales {\n background: ",";\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);\n }\n\n .locale-item {\n font-size: 16px;\n font-style: normal;\n font-stretch: normal;\n line-height: normal;\n letter-spacing: 2px;\n text-align: center;\n color: ",";\n cursor: pointer;\n display: flex;\n padding: 16px;\n align-items: center;\n .check-icon {\n visibility: hidden;\n margin-right: 4px;\n }\n .check-icon-visible {\n visibility: visible;\n }\n }\n"])),(function(e){return(0,w.Lq)(e)}),(function(e){return(0,w.Vu)(e)}),(function(e){return(0,w.Lq)(e)})),C=(0,z.zo)(y.Z)(o||(o=(0,i.Z)(["\n z-index: ",";\n"])),(function(e){return e.theme.zIndex.tooltip+10}))}}]);
|
|
2
|
-
//# sourceMappingURL=2664.da443f31.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[2940],{49884:function(e,r,n){var o=n(56666),t=n(31461),a=n(7896),i=n(30969),l=n(87023),c=n(26540),s=n(86171),d=n(25139),u=n(33359),p=n(24099),m=n(45971),f=n(17363),b=n(46057),v=n(42641),h=n(37574),Z=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],g=(0,m.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:function(e,r){var n=e.ownerState;return[(0,o.Z)({},"& .".concat(b.Z.label),r.label),r.root,r["labelPlacement".concat((0,p.Z)(n.labelPlacement))]]}})((function(e){var r=e.theme,n=e.ownerState;return(0,a.Z)((0,o.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16},"&.".concat(b.Z.disabled),{cursor:"default"}),"start"===n.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===n.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===n.labelPlacement&&{flexDirection:"column",marginLeft:16},(0,o.Z)({},"& .".concat(b.Z.label),(0,o.Z)({},"&.".concat(b.Z.disabled),{color:(r.vars||r).palette.text.disabled})))})),k=(0,m.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:function(e,r){return r.asterisk}})((function(e){var r=e.theme;return(0,o.Z)({},"&.".concat(b.Z.error),{color:(r.vars||r).palette.error.main})})),y=i.forwardRef((function(e,r){var n,o,m=(0,f.Z)({props:e,name:"MuiFormControlLabel"}),y=m.className,P=m.componentsProps,x=void 0===P?{}:P,R=m.control,F=m.disabled,w=m.disableTypography,S=m.label,C=m.labelPlacement,N=void 0===C?"end":C,B=m.required,j=m.slotProps,q=void 0===j?{}:j,L=(0,t.Z)(m,Z),M=(0,s.Z)(),I=null!=(n=null!=F?F:R.props.disabled)?n:null==M?void 0:M.disabled,T=null!=B?B:R.props.required,E={disabled:I,required:T};["checked","name","onChange","value","inputRef"].forEach((function(e){"undefined"===typeof R.props[e]&&"undefined"!==typeof m[e]&&(E[e]=m[e])}));var O=(0,v.Z)({props:m,muiFormControl:M,states:["error"]}),_=(0,a.Z)({},m,{disabled:I,labelPlacement:N,required:T,error:O.error}),A=function(e){var r=e.classes,n=e.disabled,o=e.labelPlacement,t=e.error,a=e.required,i={root:["root",n&&"disabled","labelPlacement".concat((0,p.Z)(o)),t&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",t&&"error"]};return(0,c.Z)(i,b.r,r)}(_),D=null!=(o=q.typography)?o:x.typography,G=S;return null==G||G.type===u.Z||w||(G=(0,h.jsx)(u.Z,(0,a.Z)({component:"span"},D,{className:(0,l.Z)(A.label,null==D?void 0:D.className),children:G}))),(0,h.jsxs)(g,(0,a.Z)({className:(0,l.Z)(A.root,y),ownerState:_,ref:r},L,{children:[i.cloneElement(R,E),T?(0,h.jsxs)(d.Z,{display:"block",children:[G,(0,h.jsxs)(k,{ownerState:_,"aria-hidden":!0,className:A.asterisk,children:["\u2009","*"]})]}):G]}))}));r.Z=y},46057:function(e,r,n){n.d(r,{r:function(){return a}});var o=n(62746),t=n(2975);function a(e){return(0,t.Z)("MuiFormControlLabel",e)}var i=(0,o.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);r.Z=i},25139:function(e,r,n){n.d(r,{Z:function(){return S}});var o=n(56666),t=n(31461),a=n(7896),i=n(30969),l=n(87023),c=n(87929),s=n(26540),d=n(2975),u=n(19210),p=n(33876),m=n(49505),f=n(56871),b=n(29878),v=n(78433),h=n(37574),Z=["component","direction","spacing","divider","children","className","useFlexGap"],g=(0,f.Z)(),k=(0,u.Z)("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,r){return r.root}});function y(e){return(0,p.Z)({props:e,name:"MuiStack",defaultTheme:g})}function P(e,r){var n=i.Children.toArray(e).filter(Boolean);return n.reduce((function(e,o,t){return e.push(o),t<n.length-1&&e.push(i.cloneElement(r,{key:"separator-".concat(t)})),e}),[])}var x=function(e){var r=e.ownerState,n=e.theme,t=(0,a.Z)({display:"flex",flexDirection:"column"},(0,b.k9)({theme:n},(0,b.P$)({values:r.direction,breakpoints:n.breakpoints.values}),(function(e){return{flexDirection:e}})));if(r.spacing){var i=(0,v.hB)(n),l=Object.keys(n.breakpoints.values).reduce((function(e,n){return("object"===typeof r.spacing&&null!=r.spacing[n]||"object"===typeof r.direction&&null!=r.direction[n])&&(e[n]=!0),e}),{}),s=(0,b.P$)({values:r.direction,base:l}),d=(0,b.P$)({values:r.spacing,base:l});"object"===typeof s&&Object.keys(s).forEach((function(e,r,n){if(!s[e]){var o=r>0?s[n[r-1]]:"column";s[e]=o}}));t=(0,c.Z)(t,(0,b.k9)({theme:n},d,(function(e,n){return r.useFlexGap?{gap:(0,v.NA)(i,e)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":(0,o.Z)({},"margin".concat((t=n?s[n]:r.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[t])),(0,v.NA)(i,e))};var t})))}return t=(0,b.dt)(n.breakpoints,t)};var R=n(45971),F=n(17363),w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.createStyledComponent,n=void 0===r?k:r,o=e.useThemeProps,c=void 0===o?y:o,u=e.componentName,p=void 0===u?"MuiStack":u,f=n(x),b=i.forwardRef((function(e,r){var n=c(e),o=(0,m.Z)(n),i=o.component,u=void 0===i?"div":i,b=o.direction,v=void 0===b?"column":b,g=o.spacing,k=void 0===g?0:g,y=o.divider,x=o.children,R=o.className,F=o.useFlexGap,w=void 0!==F&&F,S=(0,t.Z)(o,Z),C={direction:v,spacing:k,useFlexGap:w},N=(0,s.Z)({root:["root"]},(function(e){return(0,d.Z)(p,e)}),{});return(0,h.jsx)(f,(0,a.Z)({as:u,ownerState:C,ref:r,className:(0,l.Z)(N.root,R)},S,{children:y?P(x,y):x}))}));return b}({createStyledComponent:(0,R.ZP)("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,r){return r.root}}),useThemeProps:function(e){return(0,F.Z)({props:e,name:"MuiStack"})}}),S=w},71885:function(e,r,n){n.d(r,{Z:function(){return y}});var o=n(96234),t=n(31461),a=n(7896),i=n(30969),l=n(87023),c=n(26540),s=n(24099),d=n(45971),u=n(47707),p=n(86171),m=n(4839),f=n(62746),b=n(2975);function v(e){return(0,b.Z)("PrivateSwitchBase",e)}(0,f.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var h=n(37574),Z=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],g=(0,d.ZP)(m.Z)((function(e){var r=e.ownerState;return(0,a.Z)({padding:9,borderRadius:"50%"},"start"===r.edge&&{marginLeft:"small"===r.size?-3:-12},"end"===r.edge&&{marginRight:"small"===r.size?-3:-12})})),k=(0,d.ZP)("input",{shouldForwardProp:d.FO})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),y=i.forwardRef((function(e,r){var n=e.autoFocus,i=e.checked,d=e.checkedIcon,m=e.className,f=e.defaultChecked,b=e.disabled,y=e.disableFocusRipple,P=void 0!==y&&y,x=e.edge,R=void 0!==x&&x,F=e.icon,w=e.id,S=e.inputProps,C=e.inputRef,N=e.name,B=e.onBlur,j=e.onChange,q=e.onFocus,L=e.readOnly,M=e.required,I=void 0!==M&&M,T=e.tabIndex,E=e.type,O=e.value,_=(0,t.Z)(e,Z),A=(0,u.Z)({controlled:i,default:Boolean(f),name:"SwitchBase",state:"checked"}),D=(0,o.Z)(A,2),G=D[0],z=D[1],$=(0,p.Z)(),H=b;$&&"undefined"===typeof H&&(H=$.disabled);var W="checkbox"===E||"radio"===E,J=(0,a.Z)({},e,{checked:G,disabled:H,disableFocusRipple:P,edge:R}),K=function(e){var r=e.classes,n=e.checked,o=e.disabled,t=e.edge,a={root:["root",n&&"checked",o&&"disabled",t&&"edge".concat((0,s.Z)(t))],input:["input"]};return(0,c.Z)(a,v,r)}(J);return(0,h.jsxs)(g,(0,a.Z)({component:"span",className:(0,l.Z)(K.root,m),centerRipple:!0,focusRipple:!P,disabled:H,tabIndex:null,role:void 0,onFocus:function(e){q&&q(e),$&&$.onFocus&&$.onFocus(e)},onBlur:function(e){B&&B(e),$&&$.onBlur&&$.onBlur(e)},ownerState:J,ref:r},_,{children:[(0,h.jsx)(k,(0,a.Z)({autoFocus:n,checked:i,defaultChecked:f,className:K.input,disabled:H,id:W?w:void 0,name:N,onChange:function(e){if(!e.nativeEvent.defaultPrevented){var r=e.target.checked;z(r),j&&j(e,r)}},readOnly:L,ref:C,required:I,ownerState:J,tabIndex:T,type:E},"checkbox"===E&&void 0===O?{}:{value:O},S)),G?d:F]}))}))}}]);
|
|
2
|
-
//# sourceMappingURL=2940.5fc76234.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[2988],{19006:function(n,e,t){e.Z=void 0;(r=t(30969))&&r.__esModule;var r,o=t(37574);function i(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function l(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?i(Object(t),!0).forEach((function(e){a(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function a(n,e,t){return(e=function(n){var e=function(n,e){if("object"!==typeof n||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"===typeof e?e:String(e)}(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var s=function(n){return(0,o.jsxs)("svg",l(l({},n),{},{children:[(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 10.642L31.72 0 13.288 10.642v14.152L1 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L62.44 53.172V31.89l-12.288-7.095V10.642zM60.52 32.997l-12.288-7.094V11.75L31.72 2.217 15.208 11.75v14.153L2.92 32.997v19.067l16.512 9.533L31.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#paint0_linear_615_426)"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 24.83L31.72 14.19 13.288 24.831v21.283L31.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L31.72 54.539l-16.512-9.533V25.939zm13.338-2.894a.96.96 0 0 1 .924-.696h4.5a.96.96 0 0 1 .924.696l.856 2.999 2.12 1.223 3.025-.757a.96.96 0 0 1 1.064.451l2.25 3.898a.96.96 0 0 1-.14 1.148l-2.17 2.24v2.448l2.17 2.24a.96.96 0 0 1 .14 1.148l-2.25 3.899a.96.96 0 0 1-1.065.45l-3.024-.756-2.12 1.223-.856 2.998a.96.96 0 0 1-.923.697H29.47a.96.96 0 0 1-.924-.697L27.69 44.9l-2.12-1.223-3.024.757a.96.96 0 0 1-1.065-.451l-2.25-3.898a.96.96 0 0 1 .141-1.148l2.168-2.241v-2.447l-2.168-2.241a.96.96 0 0 1-.142-1.148l2.251-3.898a.96.96 0 0 1 1.065-.451l3.025.757 2.119-1.223.856-2.999zm.44 4.467a.96.96 0 0 0 .443-.567l.765-2.676h3.053l.764 2.676a.96.96 0 0 0 .443.567l2.792 1.612a.96.96 0 0 0 .713.1l2.7-.676 1.526 2.644-1.935 2a.96.96 0 0 0-.27.668v3.223c0 .25.097.489.27.668l1.935 2-1.527 2.643-2.699-.675a.96.96 0 0 0-.713.1l-2.792 1.612a.96.96 0 0 0-.443.567l-.764 2.676h-3.053l-.765-2.676a.96.96 0 0 0-.443-.567l-2.792-1.612a.96.96 0 0 0-.713-.1l-2.7.675-1.526-2.643 1.935-2a.96.96 0 0 0 .27-.668V33.86a.96.96 0 0 0-.27-.667l-1.935-2 1.527-2.644 2.7.676a.96.96 0 0 0 .712-.1l2.792-1.612zm2.734 14.128a6.168 6.168 0 1 1 0-12.337 6.168 6.168 0 0 1 0 12.337zm4.248-6.169a4.248 4.248 0 1 1-8.496 0 4.248 4.248 0 0 1 8.496 0z",fill:"url(#paint1_linear_615_426)"}),(0,o.jsxs)("defs",{children:[(0,o.jsxs)("linearGradient",{id:"paint0_linear_615_426",x1:"31.72",y1:"95.721",x2:"95.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#0FA4B7"}),(0,o.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,o.jsxs)("linearGradient",{id:"paint1_linear_615_426",x1:"28.437",y1:"99.246",x2:"98.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,o.jsx)("stop",{stopColor:"#0FA4B7"}),(0,o.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,o.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};s.defaultProps={width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.displayName="server-logo-notext";var p=s;e.Z=p},20146:function(n,e,t){t.d(e,{Z:function(){return S}});var r=t(7896),o=t(31461),i=t(30969),l=t(96234),a=t(86769),s=t(94702),p=t(32468),d=t(75255),c=t(37574),u=["initialWidth","width"],f=["xs","sm","md","lg","xl"],v=function(n,e){return!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?f.indexOf(n)<=f.indexOf(e):f.indexOf(n)<f.indexOf(e)},m=function(n,e){return arguments.length>2&&void 0!==arguments[2]&&arguments[2]?f.indexOf(e)<=f.indexOf(n):f.indexOf(e)<f.indexOf(n)},w=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=n.withTheme,f=void 0!==t&&t,v=n.noSSR,m=void 0!==v&&v,w=n.initialWidth;return function(n){var t=(0,s.Z)(),v=n.theme||t,x=(0,a.Z)({theme:v,name:"MuiWithWidth",props:n}),h=x.initialWidth,b=x.width,y=(0,o.Z)(x,u),g=i.useState(!1),D=(0,l.Z)(g,2),j=D[0],k=D[1];(0,p.Z)((function(){k(!0)}),[]);var U=v.breakpoints.keys.slice().reverse().reduce((function(n,e){var t=(0,d.Z)(v.breakpoints.up(e));return!n&&t?e:n}),null),Z=(0,r.Z)({width:b||(j||m?U:void 0)||h||w},f?{theme:v}:{},y);return void 0===Z.width?null:(0,c.jsx)(e,(0,r.Z)({},Z))}}};var x=w()((function(n){var e=n.children,t=n.only,r=n.width,o=(0,s.Z)(),l=!0;if(t)if(Array.isArray(t))for(var a=0;a<t.length;a+=1){if(r===t[a]){l=!1;break}}else t&&r===t&&(l=!1);if(l)for(var p=0;p<o.breakpoints.keys.length;p+=1){var d=o.breakpoints.keys[p],u=n["".concat(d,"Up")],f=n["".concat(d,"Down")];if(u&&v(d,r)||f&&m(d,r)){l=!1;break}}return l?(0,c.jsx)(i.Fragment,{children:e}):null})),h=t(56666),b=t(68079),y=t(87023),g=t(26540),D=t(24099),j=t(45971),k=t(62746),U=t(2975);function Z(n){return(0,U.Z)("PrivateHiddenCss",n)}(0,k.Z)("PrivateHiddenCss",["root","xlDown","xlUp","onlyXl","lgDown","lgUp","onlyLg","mdDown","mdUp","onlyMd","smDown","smUp","onlySm","xsDown","xsUp","onlyXs"]);var O=["children","className","only"],_=(0,j.ZP)("div",{name:"PrivateHiddenCss",slot:"Root"})((function(n){var e=n.theme,t=n.ownerState,o={display:"none"};return(0,r.Z)({},t.breakpoints.map((function(n){var t=n.breakpoint,r=n.dir;return"only"===r?(0,h.Z)({},e.breakpoints.only(t),o):"up"===r?(0,h.Z)({},e.breakpoints.up(t),o):(0,h.Z)({},e.breakpoints.down(t),o)})).reduce((function(n,e){return Object.keys(e).forEach((function(t){n[t]=e[t]})),n}),{}))}));var P=function(n){for(var e=n.children,t=n.className,i=n.only,l=(0,o.Z)(n,O),a=(0,s.Z)(),p=[],d=0;d<a.breakpoints.keys.length;d+=1){var u=a.breakpoints.keys[d],f=l["".concat(u,"Up")],v=l["".concat(u,"Down")];f&&p.push({breakpoint:u,dir:"up"}),v&&p.push({breakpoint:u,dir:"down"})}i&&(Array.isArray(i)?i:[i]).forEach((function(n){p.push({breakpoint:n,dir:"only"})}));var m=(0,r.Z)({},n,{breakpoints:p}),w=function(n){var e=n.classes,t=n.breakpoints,r={root:["root"].concat((0,b.Z)(t.map((function(n){var e=n.breakpoint,t=n.dir;return"only"===t?"".concat(t).concat((0,D.Z)(e)):"".concat(e).concat((0,D.Z)(t))}))))};return(0,g.Z)(r,Z,e)}(m);return(0,c.jsx)(_,{className:(0,y.Z)(w.root,t),ownerState:m,children:e})},C=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];var S=function(n){var e=n.implementation,t=void 0===e?"js":e,i=n.lgDown,l=void 0!==i&&i,a=n.lgUp,s=void 0!==a&&a,p=n.mdDown,d=void 0!==p&&p,u=n.mdUp,f=void 0!==u&&u,v=n.smDown,m=void 0!==v&&v,w=n.smUp,h=void 0!==w&&w,b=n.xlDown,y=void 0!==b&&b,g=n.xlUp,D=void 0!==g&&g,j=n.xsDown,k=void 0!==j&&j,U=n.xsUp,Z=void 0!==U&&U,O=(0,o.Z)(n,C);return"js"===t?(0,c.jsx)(x,(0,r.Z)({lgDown:l,lgUp:s,mdDown:d,mdUp:f,smDown:m,smUp:h,xlDown:y,xlUp:D,xsDown:k,xsUp:Z},O)):(0,c.jsx)(P,(0,r.Z)({lgDown:l,lgUp:s,mdDown:d,mdUp:f,smDown:m,smUp:h,xlDown:y,xlUp:D,xsDown:k,xsUp:Z},O))}}}]);
|
|
2
|
-
//# sourceMappingURL=2988.62cc135c.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[3025],{83025:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return C}});var s,o=t(71171),a=t(96234),r=t(30969),i=t(16380),c=t(30734),l=t(33359),u=t(32901),d=t(38361),p=t(238),f=t(29996),x=t(26328),h=t(26022),m=t(20244),g=t(85752),v=t(86776),P=t(37574);var Z=(0,i.Z)(p.Z)(s||(s=(0,o.Z)(["\n .header {\n text-align: center;\n margin-bottom: 8px;\n }\n\n .subheader {\n text-align: center;\n margin-bottom: 24px;\n }\n\n .login {\n padding: 24px;\n height: auto;\n min-height: 480px;\n display: flex;\n flex-direction: column;\n }\n\n .connect {\n background: #fafafa;\n }\n"]))),b=(0,g.Z)((function(n){var e=n.SessionContext,t=n.webWalletUrl,s=(0,r.useContext)(e),o=s.api,i=s.session,p=(0,r.useContext)(h.RD),g=p.t,b=p.locale,I=(0,r.useState)(!1),j=(0,a.Z)(I,2),C=j[0],w=j[1],_=(0,c.useNavigate)(),k=(0,v.Z)().setPassportId,S={},N=new URL(window.location.href).searchParams.get("id");return N&&(S.id=N),(0,P.jsx)(Z,{children:C?(0,P.jsx)("div",{className:"login",children:(0,P.jsx)("div",{className:"connect",children:(0,P.jsxs)(d.Z,{textAlign:"center",children:[(0,P.jsx)(d.Z,{mb:3,color:"success.main",children:(0,P.jsx)(u.Z,{style:{fontSize:60}})}),(0,P.jsx)(l.Z,{component:"p",variant:"body1",className:"subheader",children:g("issuePassport.dialog.success")}),(0,P.jsx)(d.Z,{mt:3,children:(0,P.jsx)(f.Z,{variant:"contained",color:"primary",onClick:function(){var n;try{i.logout()}catch(e){}((null===(n=window.env)||void 0===n?void 0:n.apiPrefix)||"").startsWith(m.WELLKNOWN_SERVICE_PATH_PREFIX)?_("".concat(m.WELLKNOWN_SERVICE_PATH_PREFIX,"/login"),{replace:!0}):_("/",{replace:!0})},children:g("issuePassport.dialog.loginWithPassport")})})]})})}):(0,P.jsx)(x.Z,{className:"connect",action:"issue-passport",forceConnected:!1,autoConnect:!1,checkFn:o.get,checkTimeout:6e5,webWalletUrl:t,onSuccess:function(n){null!==n&&void 0!==n&&n.passportId&&k(n.passportId),w(!0)},locale:b,messages:{title:g("issuePassport.title"),scan:g("issuePassport.description",{name:window.env.appName}),confirm:g("issuePassport.dialog.confirm"),success:g("issuePassport.dialog.success")},extraParams:S})})})),I=t(4485),j=t(38507);function C(){return(0,P.jsx)(b,{SessionContext:I.B3,webWalletUrl:(0,j.yP)()})}},86776:function(n,e,t){"use strict";function s(){return{getPassportId:function(){var n=localStorage.getItem("passportId")||"";return localStorage.removeItem("passportId"),n},setPassportId:function(n){localStorage.setItem("passportId",n)}}}t.d(e,{Z:function(){return s}})},19477:function(n,e,t){var s=t(2717),o=t(37095),a=t(93113);n.exports={translations:{zh:s(a),en:s(o)}}},85752:function(n,e,t){"use strict";t.d(e,{Z:function(){return i}});var s=t(33028),o=t(26022),a=t(19477),r=t(37574);function i(n){return function(e){return(0,r.jsx)(o.Iw,{translations:a.translations,children:(0,r.jsx)(n,(0,s.Z)({},e))})}}},32901:function(n,e,t){"use strict";var s=t(71600);e.Z=void 0;var o=s(t(48035)),a=t(37574),r=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckCircle");e.Z=r}}]);
|
|
2
|
-
//# sourceMappingURL=3025.76882d0f.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[3033],{73033:function(e,n,r){r.r(n),r.d(n,{default:function(){return b}});var t,u=r(71171),a=r(32723),c=r(34795),o=(r(30969),r(19611)),s=r.n(o),i=r(17660),l=r(26022),f=r(26328),d=r(94308),p=r(33359),v=r(238),_=r(1986),h=r(16380),g=r(4485),k=r(38507),Z=r(37574);function b(e){var n=e.children,r=(0,l.PE)(),t=r.t,u=r.locale,o=(0,g.Tt)(),h=o.api,b=o.session,w=(0,f.R)(),x=w.encryptKey,y=w.decrypt,j=(0,i.default)((0,c.Z)((0,a.Z)().mark((function e(){var n,r,t,u,c,o;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(u=new URL(window.location.href)).pathname=s()(null!==(n=null===(r=window)||void 0===r||null===(t=r.env)||void 0===t?void 0:t.apiPrefix)&&void 0!==n?n:"/","/api/did/setup/token"),u.searchParams.set("_ek_",x),e.next=5,h.get(u.href);case 5:return c=e.sent,o=c.data,e.abrupt("return",o);case 8:case"end":return e.stop()}}),e)})))),P=function(){var e=(0,c.Z)((0,a.Z)().mark((function e(n){var r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Array.isArray(n)?n.find((function(e){return e.sessionToken})):n,(0,k.ZB)(y(r.sessionToken)),e.prev=2,e.next=5,b.refresh();case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(2),_.Z.error(e.t0.message);case 10:case"end":return e.stop()}}),e,null,[[2,7]])})));return function(n){return e.apply(this,arguments)}}();return!j.value||j.loading||b.loading?(0,Z.jsx)(v.Z,{relative:"parent",children:(0,Z.jsx)(d.Z,{})}):b.user?n:j.error?(0,Z.jsx)(v.Z,{relative:"parent",children:(0,Z.jsx)(p.Z,{children:j.error.message})}):(0,Z.jsx)(m,{popup:!0,open:!0,hideCloseButton:!0,action:"pre-setup",checkFn:h.get,checkTimeout:6e5,webWalletUrl:(0,k.yP)(),onSuccess:P,locale:u,messages:{title:t("setup.connect.title"),scan:t("setup.connect.scan"),confirm:t("setup.connect.confirm"),success:t("setup.connect.success")},extraParams:{setup:!0,nw:j.value.url}})}var m=(0,h.Z)(f.Z)(t||(t=(0,u.Z)(["\n .action-info-desc {\n padding: 0 72px;\n }\n"])))},17660:function(e,n,r){Object.defineProperty(n,"__esModule",{value:!0});var t=r(11681),u=r(30969),a=t.__importDefault(r(23075));n.default=function(e,n){void 0===n&&(n=[]);var r=a.default(e,n,{loading:!0}),t=r[0],c=r[1];return u.useEffect((function(){c()}),[c]),t}},23075:function(e,n,r){Object.defineProperty(n,"__esModule",{value:!0});var t=r(11681),u=r(30969),a=t.__importDefault(r(75410));n.default=function(e,n,r){void 0===n&&(n=[]),void 0===r&&(r={loading:!1});var c=u.useRef(0),o=a.default(),s=u.useState(r),i=s[0],l=s[1],f=u.useCallback((function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var u=++c.current;return i.loading||l((function(e){return t.__assign(t.__assign({},e),{loading:!0})})),e.apply(void 0,n).then((function(e){return o()&&u===c.current&&l({value:e,loading:!1}),e}),(function(e){return o()&&u===c.current&&l({error:e,loading:!1}),e}))}),n);return[i,f]}},75410:function(e,n,r){Object.defineProperty(n,"__esModule",{value:!0});var t=r(30969);n.default=function(){var e=t.useRef(!1),n=t.useCallback((function(){return e.current}),[]);return t.useEffect((function(){return e.current=!0,function(){e.current=!1}}),[]),n}}}]);
|
|
2
|
-
//# sourceMappingURL=3033.f950a32b.chunk.js.map
|