@abtnode/blocklet-services 1.16.17-beta-952ef53d → 1.16.17-beta-a8cf4b25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/api/index.js +15 -13
  2. package/api/libs/connect/session.js +1 -1
  3. package/api/routes/federated.js +0 -1
  4. package/api/routes/oauth.js +1 -2
  5. package/api/routes/user-session.js +31 -5
  6. package/api/services/auth/connect/invite.js +24 -2
  7. package/build/asset-manifest.json +61 -69
  8. package/build/index.html +1 -1
  9. package/build/service-worker.js +1 -1
  10. package/build/service-worker.js.map +1 -1
  11. package/build/static/js/1148.4b2a7347.chunk.js +2 -0
  12. package/build/static/js/218.74e73a26.chunk.js +2 -0
  13. package/build/static/js/2653.6610534f.chunk.js +2 -0
  14. package/build/static/js/3025.a48c96f5.chunk.js +2 -0
  15. package/build/static/js/3033.6623d19d.chunk.js +2 -0
  16. package/build/static/js/3131.672170fb.chunk.js +2 -0
  17. package/build/static/js/3688.735c65ce.chunk.js +2 -0
  18. package/build/static/js/4022.5ec79b56.chunk.js +2 -0
  19. package/build/static/js/4076.bcc72fcc.chunk.js +2 -0
  20. package/build/static/js/4587.906e3023.chunk.js +2 -0
  21. package/build/static/js/4716.b0917145.chunk.js +2 -0
  22. package/build/static/js/4802.fe56c787.chunk.js +2 -0
  23. package/build/static/js/4961.89add60c.chunk.js +3 -0
  24. package/build/static/js/5662.34df2fcd.chunk.js +2 -0
  25. package/build/static/js/{5982.d9eb7e90.chunk.js → 5982.4f8369df.chunk.js} +2 -2
  26. package/build/static/js/6084.30821f2c.chunk.js +3 -0
  27. package/build/static/js/6139.cabc22a2.chunk.js +2 -0
  28. package/build/static/js/6658.090d923f.chunk.js +2 -0
  29. package/build/static/js/{716.438b9c22.chunk.js → 716.703a9880.chunk.js} +3 -3
  30. package/build/static/js/779.b64e7db1.chunk.js +2 -0
  31. package/build/static/js/7832.741ac84f.chunk.js +2 -0
  32. package/build/static/js/7858.e4167dfd.chunk.js +2 -0
  33. package/build/static/js/8622.2a685bf5.chunk.js +2 -0
  34. package/build/static/js/{8641.f2bb0ffc.chunk.js → 8641.506d61d5.chunk.js} +2 -2
  35. package/build/static/js/8702.2d858942.chunk.js +2 -0
  36. package/build/static/js/8792.8b009f81.chunk.js +2 -0
  37. package/build/static/js/8944.70ff7557.chunk.js +2 -0
  38. package/build/static/js/{9596.0e51cd6e.chunk.js → 9596.5251398b.chunk.js} +2 -2
  39. package/build/static/js/9900.cce3f786.chunk.js +2 -0
  40. package/build/static/js/main.5f0a940b.js +3 -0
  41. package/build/static/js/{main.3cf7fedb.js.LICENSE.txt → main.5f0a940b.js.LICENSE.txt} +9 -0
  42. package/package.json +33 -33
  43. package/api/util/user-session.js +0 -47
  44. package/build/static/js/1148.e5dc907a.chunk.js +0 -2
  45. package/build/static/js/2653.6a6c1c6c.chunk.js +0 -2
  46. package/build/static/js/3025.e2b1dac4.chunk.js +0 -2
  47. package/build/static/js/3033.1bbcc14e.chunk.js +0 -2
  48. package/build/static/js/3131.f75fa792.chunk.js +0 -2
  49. package/build/static/js/3688.2cea0226.chunk.js +0 -2
  50. package/build/static/js/4076.e73cb63a.chunk.js +0 -2
  51. package/build/static/js/4355.f459ab57.chunk.js +0 -2
  52. package/build/static/js/4587.5b31e02e.chunk.js +0 -2
  53. package/build/static/js/4716.1ecc2bb6.chunk.js +0 -2
  54. package/build/static/js/4802.d185b9f1.chunk.js +0 -2
  55. package/build/static/js/4932.c7c954aa.chunk.js +0 -2
  56. package/build/static/js/4946.dbbdb25b.chunk.js +0 -2
  57. package/build/static/js/5012.551dbbc3.chunk.js +0 -2
  58. package/build/static/js/5662.919cc4a2.chunk.js +0 -2
  59. package/build/static/js/5969.2791e4e5.chunk.js +0 -3
  60. package/build/static/js/6139.cf6eb9b1.chunk.js +0 -2
  61. package/build/static/js/6465.e704f56b.chunk.js +0 -3
  62. package/build/static/js/6473.d89e783e.chunk.js +0 -2
  63. package/build/static/js/6658.0a27e04e.chunk.js +0 -2
  64. package/build/static/js/779.99b3f0d2.chunk.js +0 -2
  65. package/build/static/js/7858.bac05f8f.chunk.js +0 -2
  66. package/build/static/js/8622.8478c900.chunk.js +0 -2
  67. package/build/static/js/8702.957f131a.chunk.js +0 -2
  68. package/build/static/js/873.d6d31b32.chunk.js +0 -3
  69. package/build/static/js/873.d6d31b32.chunk.js.LICENSE.txt +0 -8
  70. package/build/static/js/8792.eff43237.chunk.js +0 -2
  71. package/build/static/js/8944.09a1c53a.chunk.js +0 -2
  72. package/build/static/js/9403.b72e020c.chunk.js +0 -2
  73. package/build/static/js/9900.b66896e6.chunk.js +0 -2
  74. package/build/static/js/main.3cf7fedb.js +0 -3
  75. /package/build/static/js/{5969.2791e4e5.chunk.js.LICENSE.txt → 4961.89add60c.chunk.js.LICENSE.txt} +0 -0
  76. /package/build/static/js/{6465.e704f56b.chunk.js.LICENSE.txt → 6084.30821f2c.chunk.js.LICENSE.txt} +0 -0
  77. /package/build/static/js/{716.438b9c22.chunk.js.LICENSE.txt → 716.703a9880.chunk.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[4355],{24597:function(e,t,r){var n=r(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(48035)),a=r(37574),i=(0,o.default)((0,a.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList");t.default=i},65481:function(e,t,r){var n=r(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(48035)),a=r(37574),i=(0,o.default)((0,a.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove");t.default=i},90713:function(e,t,r){var n=r(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(48035)),a=r(37574),i=(0,o.default)((0,a.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");t.default=i},83153:function(e,t,r){var n=r(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(48035)),a=r(37574),i=(0,o.default)((0,a.jsx)("path",{d:"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z"}),"ViewColumn");t.default=i},84916:function(e,t,r){r.r(t),r.d(t,{buttonClasses:function(){return o.Z},default:function(){return n.Z},getButtonUtilityClass:function(){return o.F}});var n=r(72097),o=r(15714)},88876:function(e,t,r){r.d(t,{Z:function(){return w}});var n=r(56666),o=r(31461),a=r(7896),i=r(30969),c=r(87023),l=r(26540),s=r(74262),u=r(71885),d=r(17469),f=r(37574),m=(0,d.Z)((0,f.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),p=(0,d.Z)((0,f.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),g=(0,d.Z)((0,f.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),v=r(24099),h=r(17363),b=r(45971),y=r(72726),Z=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],C=(0,b.ZP)(u.Z,{shouldForwardProp:function(e){return(0,b.FO)(e)||"classes"===e},name:"MuiCheckbox",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.indeterminate&&t.indeterminate,"default"!==r.color&&t["color".concat((0,v.Z)(r.color))]]}})((function(e){var t,r=e.theme,o=e.ownerState;return(0,a.Z)({color:(r.vars||r).palette.text.secondary},!o.disableRipple&&{"&:hover":{backgroundColor:r.vars?"rgba(".concat("default"===o.color?r.vars.palette.action.activeChannel:r.vars.palette[o.color].mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,s.Fq)("default"===o.color?r.palette.action.active:r.palette[o.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==o.color&&(t={},(0,n.Z)(t,"&.".concat(y.Z.checked,", &.").concat(y.Z.indeterminate),{color:(r.vars||r).palette[o.color].main}),(0,n.Z)(t,"&.".concat(y.Z.disabled),{color:(r.vars||r).palette.action.disabled}),t))})),S=(0,f.jsx)(p,{}),x=(0,f.jsx)(m,{}),k=(0,f.jsx)(g,{}),w=i.forwardRef((function(e,t){var r,n,s=(0,h.Z)({props:e,name:"MuiCheckbox"}),u=s.checkedIcon,d=void 0===u?S:u,m=s.color,p=void 0===m?"primary":m,g=s.icon,b=void 0===g?x:g,w=s.indeterminate,P=void 0!==w&&w,T=s.indeterminateIcon,M=void 0===T?k:T,B=s.inputProps,I=s.size,j=void 0===I?"medium":I,A=s.className,R=(0,o.Z)(s,Z),L=P?M:b,z=P?M:d,F=(0,a.Z)({},s,{color:p,indeterminate:P,size:j}),H=function(e){var t=e.classes,r=e.indeterminate,n=e.color,o=e.size,i={root:["root",r&&"indeterminate","color".concat((0,v.Z)(n)),"size".concat((0,v.Z)(o))]},c=(0,l.Z)(i,y.y,t);return(0,a.Z)({},t,c)}(F);return(0,f.jsx)(C,(0,a.Z)({type:"checkbox",inputProps:(0,a.Z)({"data-indeterminate":P},B),icon:i.cloneElement(L,{fontSize:null!=(r=L.props.fontSize)?r:j}),checkedIcon:i.cloneElement(z,{fontSize:null!=(n=z.props.fontSize)?n:j}),ownerState:F,ref:t,className:(0,c.Z)(H.root,A)},R,{classes:H}))}))},72726:function(e,t,r){r.d(t,{y:function(){return a}});var n=r(62746),o=r(2975);function a(e){return(0,o.Z)("MuiCheckbox",e)}var i=(0,n.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);t.Z=i},55078:function(e,t,r){r.r(t),r.d(t,{checkboxClasses:function(){return o.Z},default:function(){return n.Z},getCheckboxUtilityClass:function(){return o.y}});var n=r(88876),o=r(72726)},25847:function(e,t,r){r.r(t),r.d(t,{chipClasses:function(){return o.Z},default:function(){return n.Z},getChipUtilityClass:function(){return o.z}});var n=r(7173),o=r(84834)},44045:function(e,t,r){r.r(t),r.d(t,{default:function(){return n.Z},formControlClasses:function(){return a.Z},getFormControlUtilityClasses:function(){return a.e},useFormControl:function(){return o.Z}});var n=r(87535),o=r(86171),a=r(35572)},20392:function(e,t,r){r.r(t),r.d(t,{default:function(){return n.Z},formControlLabelClasses:function(){return o.Z},getFormControlLabelUtilityClasses:function(){return o.r}});var n=r(49884),o=r(46057)},1415:function(e,t,r){r.r(t),r.d(t,{default:function(){return n.Z},formGroupClasses:function(){return o.Z},getFormGroupUtilityClass:function(){return o.y}});var n=r(21098),o=r(54126)},98623:function(e,t,r){r.r(t),r.d(t,{default:function(){return n.Z},getIconButtonUtilityClass:function(){return o.r},iconButtonClasses:function(){return o.Z}});var n=r(94551),o=r(33657)},84645:function(e,t,r){r.r(t),r.d(t,{default:function(){return n.Z},getInputLabelUtilityClasses:function(){return o.Y},inputLabelClasses:function(){return o.Z}});var n=r(51385),o=r(50504)},38627:function(e,t,r){var n,o,a,i,c,l,s,u,d,f,m,p,g=r(71171),v=r(31461),h=r(7896),b=r(30969),y=r(87023),Z=r(26540),C=r(54470),S=r(74262),x=r(24099),k=r(94702),w=r(45971),P=r(17363),T=r(99518),M=r(37574),B=["className","color","value","valueBuffer","variant"],I=(0,C.keyframes)(s||(s=n||(n=(0,g.Z)(["\n 0% {\n left: -35%;\n right: 100%;\n }\n\n 60% {\n left: 100%;\n right: -90%;\n }\n\n 100% {\n left: 100%;\n right: -90%;\n }\n"])))),j=(0,C.keyframes)(u||(u=o||(o=(0,g.Z)(["\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n"])))),A=(0,C.keyframes)(d||(d=a||(a=(0,g.Z)(["\n 0% {\n opacity: 1;\n background-position: 0 -23px;\n }\n\n 60% {\n opacity: 0;\n background-position: 0 -23px;\n }\n\n 100% {\n opacity: 1;\n background-position: -200px -23px;\n }\n"])))),R=function(e,t){return"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress["".concat(t,"Bg")]:"light"===e.palette.mode?(0,S.$n)(e.palette[t].main,.62):(0,S._j)(e.palette[t].main,.5)},L=(0,w.ZP)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t["color".concat((0,x.Z)(r.color))],t[r.variant]]}})((function(e){var t=e.ownerState,r=e.theme;return(0,h.Z)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:R(r,t.color)},"inherit"===t.color&&"buffer"!==t.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===t.variant&&{backgroundColor:"transparent"},"query"===t.variant&&{transform:"rotate(180deg)"})})),z=(0,w.ZP)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:function(e,t){var r=e.ownerState;return[t.dashed,t["dashedColor".concat((0,x.Z)(r.color))]]}})((function(e){var t=e.ownerState,r=e.theme,n=R(r,t.color);return(0,h.Z)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===t.color&&{opacity:.3},{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),(0,C.css)(f||(f=i||(i=(0,g.Z)(["\n animation: "," 3s infinite linear;\n "]))),A)),F=(0,w.ZP)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:function(e,t){var r=e.ownerState;return[t.bar,t["barColor".concat((0,x.Z)(r.color))],("indeterminate"===r.variant||"query"===r.variant)&&t.bar1Indeterminate,"determinate"===r.variant&&t.bar1Determinate,"buffer"===r.variant&&t.bar1Buffer]}})((function(e){var t=e.ownerState,r=e.theme;return(0,h.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===t.color?"currentColor":(r.vars||r).palette[t.color].main},"determinate"===t.variant&&{transition:"transform .".concat(4,"s linear")},"buffer"===t.variant&&{zIndex:1,transition:"transform .".concat(4,"s linear")})}),(function(e){var t=e.ownerState;return("indeterminate"===t.variant||"query"===t.variant)&&(0,C.css)(m||(m=c||(c=(0,g.Z)(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n "]))),I)})),H=(0,w.ZP)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:function(e,t){var r=e.ownerState;return[t.bar,t["barColor".concat((0,x.Z)(r.color))],("indeterminate"===r.variant||"query"===r.variant)&&t.bar2Indeterminate,"buffer"===r.variant&&t.bar2Buffer]}})((function(e){var t=e.ownerState,r=e.theme;return(0,h.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==t.variant&&{backgroundColor:"inherit"===t.color?"currentColor":(r.vars||r).palette[t.color].main},"inherit"===t.color&&{opacity:.3},"buffer"===t.variant&&{backgroundColor:R(r,t.color),transition:"transform .".concat(4,"s linear")})}),(function(e){var t=e.ownerState;return("indeterminate"===t.variant||"query"===t.variant)&&(0,C.css)(p||(p=l||(l=(0,g.Z)(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n "]))),j)})),N=b.forwardRef((function(e,t){var r=(0,P.Z)({props:e,name:"MuiLinearProgress"}),n=r.className,o=r.color,a=void 0===o?"primary":o,i=r.value,c=r.valueBuffer,l=r.variant,s=void 0===l?"indeterminate":l,u=(0,v.Z)(r,B),d=(0,h.Z)({},r,{color:a,variant:s}),f=function(e){var t=e.classes,r=e.variant,n=e.color,o={root:["root","color".concat((0,x.Z)(n)),r],dashed:["dashed","dashedColor".concat((0,x.Z)(n))],bar1:["bar","barColor".concat((0,x.Z)(n)),("indeterminate"===r||"query"===r)&&"bar1Indeterminate","determinate"===r&&"bar1Determinate","buffer"===r&&"bar1Buffer"],bar2:["bar","buffer"!==r&&"barColor".concat((0,x.Z)(n)),"buffer"===r&&"color".concat((0,x.Z)(n)),("indeterminate"===r||"query"===r)&&"bar2Indeterminate","buffer"===r&&"bar2Buffer"]};return(0,Z.Z)(o,T.E,t)}(d),m=(0,k.Z)(),p={},g={bar1:{},bar2:{}};if("determinate"===s||"buffer"===s)if(void 0!==i){p["aria-valuenow"]=Math.round(i),p["aria-valuemin"]=0,p["aria-valuemax"]=100;var b=i-100;"rtl"===m.direction&&(b=-b),g.bar1.transform="translateX(".concat(b,"%)")}else 0;if("buffer"===s)if(void 0!==c){var C=(c||0)-100;"rtl"===m.direction&&(C=-C),g.bar2.transform="translateX(".concat(C,"%)")}else 0;return(0,M.jsxs)(L,(0,h.Z)({className:(0,y.Z)(f.root,n),ownerState:d,role:"progressbar"},p,{ref:t},u,{children:["buffer"===s?(0,M.jsx)(z,{className:f.dashed,ownerState:d}):null,(0,M.jsx)(F,{className:f.bar1,ownerState:d,style:g.bar1}),"determinate"===s?null:(0,M.jsx)(H,{className:f.bar2,ownerState:d,style:g.bar2})]}))}));t.Z=N},99518:function(e,t,r){r.d(t,{E:function(){return a}});var n=r(62746),o=r(2975);function a(e){return(0,o.Z)("MuiLinearProgress",e)}var i=(0,n.Z)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);t.Z=i},54277:function(e,t,r){r.r(t),r.d(t,{default:function(){return n.Z},getListItemTextUtilityClass:function(){return o.L},listItemTextClasses:function(){return o.Z}});var n=r(86008),o=r(74288)},47856:function(e,t,r){r.r(t),r.d(t,{default:function(){return n.Z},getMenuItemUtilityClass:function(){return o.K},menuItemClasses:function(){return o.Z}});var n=r(2689),o=r(7205)},97305:function(e,t,r){r.r(t),r.d(t,{default:function(){return n.Z},getPaperUtilityClass:function(){return o.J},paperClasses:function(){return o.Z}});var n=r(46672),o=r(6514)},15529:function(e,t,r){r.r(t),r.d(t,{default:function(){return n.Z},getSelectUtilityClasses:function(){return o.o},selectClasses:function(){return o.Z}});var n=r(39130),o=r(11872)},49922:function(e,t,r){var n=r(31461),o=r(7896),a=r(30969),i=r(87023),c=r(26540),l=r(84236),s=r(17363),u=r(45971),d=r(17263),f=r(37574),m=["className","component","padding","size","stickyHeader"],p=(0,u.ZP)("table",{name:"MuiTable",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.stickyHeader&&t.stickyHeader]}})((function(e){var t=e.theme,r=e.ownerState;return(0,o.Z)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,o.Z)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},r.stickyHeader&&{borderCollapse:"separate"})})),g="table",v=a.forwardRef((function(e,t){var r=(0,s.Z)({props:e,name:"MuiTable"}),u=r.className,v=r.component,h=void 0===v?g:v,b=r.padding,y=void 0===b?"normal":b,Z=r.size,C=void 0===Z?"medium":Z,S=r.stickyHeader,x=void 0!==S&&S,k=(0,n.Z)(r,m),w=(0,o.Z)({},r,{component:h,padding:y,size:C,stickyHeader:x}),P=function(e){var t=e.classes,r={root:["root",e.stickyHeader&&"stickyHeader"]};return(0,c.Z)(r,d.K,t)}(w),T=a.useMemo((function(){return{padding:y,size:C,stickyHeader:x}}),[y,C,x]);return(0,f.jsx)(l.Z.Provider,{value:T,children:(0,f.jsx)(p,(0,o.Z)({as:h,role:h===g?null:"table",ref:t,className:(0,i.Z)(P.root,u),ownerState:w},k))})}));t.Z=v},84236:function(e,t,r){var n=r(30969).createContext();t.Z=n},81556:function(e,t,r){var n=r(30969).createContext();t.Z=n},1148:function(e,t,r){r.r(t),r.d(t,{default:function(){return n.Z},getTableUtilityClass:function(){return o.K},tableClasses:function(){return o.Z}});var n=r(49922),o=r(17263)},17263:function(e,t,r){r.d(t,{K:function(){return a}});var n=r(62746),o=r(2975);function a(e){return(0,o.Z)("MuiTable",e)}var i=(0,n.Z)("MuiTable",["root","stickyHeader"]);t.Z=i},79465:function(e,t,r){var n=r(7896),o=r(31461),a=r(30969),i=r(87023),c=r(26540),l=r(81556),s=r(17363),u=r(45971),d=r(39514),f=r(37574),m=["className","component"],p=(0,u.ZP)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"table-row-group"}),g={variant:"body"},v="tbody",h=a.forwardRef((function(e,t){var r=(0,s.Z)({props:e,name:"MuiTableBody"}),a=r.className,u=r.component,h=void 0===u?v:u,b=(0,o.Z)(r,m),y=(0,n.Z)({},r,{component:h}),Z=function(e){var t=e.classes;return(0,c.Z)({root:["root"]},d.j,t)}(y);return(0,f.jsx)(l.Z.Provider,{value:g,children:(0,f.jsx)(p,(0,n.Z)({className:(0,i.Z)(Z.root,a),as:h,ref:t,role:h===v?null:"rowgroup",ownerState:y},b))})}));t.Z=h},94634:function(e,t,r){r.r(t),r.d(t,{default:function(){return n.Z},getTableBodyUtilityClass:function(){return o.j},tableBodyClasses:function(){return o.Z}});var n=r(79465),o=r(39514)},39514:function(e,t,r){r.d(t,{j:function(){return a}});var n=r(62746),o=r(2975);function a(e){return(0,o.Z)("MuiTableBody",e)}var i=(0,n.Z)("MuiTableBody",["root"]);t.Z=i},61758:function(e,t,r){var n=r(56666),o=r(31461),a=r(7896),i=r(30969),c=r(87023),l=r(26540),s=r(74262),u=r(24099),d=r(84236),f=r(81556),m=r(17363),p=r(45971),g=r(82848),v=r(37574),h=["align","className","component","padding","scope","size","sortDirection","variant"],b=(0,p.ZP)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,t[r.variant],t["size".concat((0,u.Z)(r.size))],"normal"!==r.padding&&t["padding".concat((0,u.Z)(r.padding))],"inherit"!==r.align&&t["align".concat((0,u.Z)(r.align))],r.stickyHeader&&t.stickyHeader]}})((function(e){var t=e.theme,r=e.ownerState;return(0,a.Z)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n ".concat("light"===t.palette.mode?(0,s.$n)((0,s.Fq)(t.palette.divider,1),.88):(0,s._j)((0,s.Fq)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===r.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===r.variant&&{color:(t.vars||t).palette.text.primary},"footer"===r.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===r.size&&(0,n.Z)({padding:"6px 16px"},"&.".concat(g.Z.paddingCheckbox),{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}),"checkbox"===r.padding&&{width:48,padding:"0 0 0 4px"},"none"===r.padding&&{padding:0},"left"===r.align&&{textAlign:"left"},"center"===r.align&&{textAlign:"center"},"right"===r.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===r.align&&{textAlign:"justify"},r.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),y=i.forwardRef((function(e,t){var r,n=(0,m.Z)({props:e,name:"MuiTableCell"}),s=n.align,p=void 0===s?"inherit":s,y=n.className,Z=n.component,C=n.padding,S=n.scope,x=n.size,k=n.sortDirection,w=n.variant,P=(0,o.Z)(n,h),T=i.useContext(d.Z),M=i.useContext(f.Z),B=M&&"head"===M.variant,I=S;"td"===(r=Z||(B?"th":"td"))?I=void 0:!I&&B&&(I="col");var j=w||M&&M.variant,A=(0,a.Z)({},n,{align:p,component:r,padding:C||(T&&T.padding?T.padding:"normal"),size:x||(T&&T.size?T.size:"medium"),sortDirection:k,stickyHeader:"head"===j&&T&&T.stickyHeader,variant:j}),R=function(e){var t=e.classes,r=e.variant,n=e.align,o=e.padding,a=e.size,i={root:["root",r,e.stickyHeader&&"stickyHeader","inherit"!==n&&"align".concat((0,u.Z)(n)),"normal"!==o&&"padding".concat((0,u.Z)(o)),"size".concat((0,u.Z)(a))]};return(0,l.Z)(i,g.U,t)}(A),L=null;return k&&(L="asc"===k?"ascending":"descending"),(0,v.jsx)(b,(0,a.Z)({as:r,ref:t,className:(0,c.Z)(R.root,y),"aria-sort":L,scope:I,ownerState:A},P))}));t.Z=y},80904:function(e,t,r){r.r(t),r.d(t,{default:function(){return n.Z},getTableCellUtilityClass:function(){return o.U},tableCellClasses:function(){return o.Z}});var n=r(61758),o=r(82848)},82848:function(e,t,r){r.d(t,{U:function(){return a}});var n=r(62746),o=r(2975);function a(e){return(0,o.Z)("MuiTableCell",e)}var i=(0,n.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);t.Z=i},89774:function(e,t,r){r.r(t),r.d(t,{default:function(){return Z},getTableFooterUtilityClass:function(){return m},tableFooterClasses:function(){return p}});var n=r(7896),o=r(31461),a=r(30969),i=r(87023),c=r(26540),l=r(81556),s=r(17363),u=r(45971),d=r(62746),f=r(2975);function m(e){return(0,f.Z)("MuiTableFooter",e)}var p=(0,d.Z)("MuiTableFooter",["root"]),g=r(37574),v=["className","component"],h=(0,u.ZP)("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"table-footer-group"}),b={variant:"footer"},y="tfoot",Z=a.forwardRef((function(e,t){var r=(0,s.Z)({props:e,name:"MuiTableFooter"}),a=r.className,u=r.component,d=void 0===u?y:u,f=(0,o.Z)(r,v),p=(0,n.Z)({},r,{component:d}),Z=function(e){var t=e.classes;return(0,c.Z)({root:["root"]},m,t)}(p);return(0,g.jsx)(l.Z.Provider,{value:b,children:(0,g.jsx)(h,(0,n.Z)({as:d,className:(0,i.Z)(Z.root,a),ref:t,role:d===y?null:"rowgroup",ownerState:p},f))})}))},88911:function(e,t,r){r.r(t),r.d(t,{default:function(){return Z},getTableHeadUtilityClass:function(){return m},tableHeadClasses:function(){return p}});var n=r(7896),o=r(31461),a=r(30969),i=r(87023),c=r(26540),l=r(81556),s=r(17363),u=r(45971),d=r(62746),f=r(2975);function m(e){return(0,f.Z)("MuiTableHead",e)}var p=(0,d.Z)("MuiTableHead",["root"]),g=r(37574),v=["className","component"],h=(0,u.ZP)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"table-header-group"}),b={variant:"head"},y="thead",Z=a.forwardRef((function(e,t){var r=(0,s.Z)({props:e,name:"MuiTableHead"}),a=r.className,u=r.component,d=void 0===u?y:u,f=(0,o.Z)(r,v),p=(0,n.Z)({},r,{component:d}),Z=function(e){var t=e.classes;return(0,c.Z)({root:["root"]},m,t)}(p);return(0,g.jsx)(l.Z.Provider,{value:b,children:(0,g.jsx)(h,(0,n.Z)({as:d,className:(0,i.Z)(Z.root,a),ref:t,role:d===y?null:"rowgroup",ownerState:p},f))})}))},84465:function(e,t,r){r.r(t),r.d(t,{default:function(){return X},getTablePaginationUtilityClass:function(){return H},tablePaginationClasses:function(){return D}});var n,o,a,i,c,l,s,u,d=r(56666),f=r(31461),m=r(7896),p=r(30969),g=r(87023),v=r(26540),h=r(15346),b=r(45971),y=r(17363),Z=r(92915),C=r(2689),S=r(39130),x=r(61758),k=r(56277),w=r(77332),P=r(88489),T=r(94702),M=r(94551),B=r(77759),I=r(24726),j=r(37574),A=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],R=p.forwardRef((function(e,t){var r=e.backIconButtonProps,d=e.count,p=e.getItemAriaLabel,g=e.nextIconButtonProps,v=e.onPageChange,h=e.page,b=e.rowsPerPage,y=e.showFirstButton,Z=e.showLastButton,C=(0,f.Z)(e,A),S=(0,T.Z)();return(0,j.jsxs)("div",(0,m.Z)({ref:t},C,{children:[y&&(0,j.jsx)(M.Z,{onClick:function(e){v(e,0)},disabled:0===h,"aria-label":p("first",h),title:p("first",h),children:"rtl"===S.direction?n||(n=(0,j.jsx)(B.Z,{})):o||(o=(0,j.jsx)(I.Z,{}))}),(0,j.jsx)(M.Z,(0,m.Z)({onClick:function(e){v(e,h-1)},disabled:0===h,color:"inherit","aria-label":p("previous",h),title:p("previous",h)},r,{children:"rtl"===S.direction?a||(a=(0,j.jsx)(P.Z,{})):i||(i=(0,j.jsx)(w.Z,{}))})),(0,j.jsx)(M.Z,(0,m.Z)({onClick:function(e){v(e,h+1)},disabled:-1!==d&&h>=Math.ceil(d/b)-1,color:"inherit","aria-label":p("next",h),title:p("next",h)},g,{children:"rtl"===S.direction?c||(c=(0,j.jsx)(w.Z,{})):l||(l=(0,j.jsx)(P.Z,{}))})),Z&&(0,j.jsx)(M.Z,{onClick:function(e){v(e,Math.max(0,Math.ceil(d/b)-1))},disabled:h>=Math.ceil(d/b)-1,"aria-label":p("last",h),title:p("last",h),children:"rtl"===S.direction?s||(s=(0,j.jsx)(I.Z,{})):u||(u=(0,j.jsx)(B.Z,{}))})]}))})),L=r(30570),z=r(62746),F=r(2975);function H(e){return(0,F.Z)("MuiTablePagination",e)}var N,D=(0,z.Z)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),q=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],O=(0,b.ZP)(x.Z,{name:"MuiTablePagination",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}})),V=(0,b.ZP)(k.Z,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:function(e,t){return(0,m.Z)((0,d.Z)({},"& .".concat(D.actions),t.actions),t.toolbar)}})((function(e){var t,r=e.theme;return t={minHeight:52,paddingRight:2},(0,d.Z)(t,"".concat(r.breakpoints.up("xs")," and (orientation: landscape)"),{minHeight:52}),(0,d.Z)(t,r.breakpoints.up("sm"),{minHeight:52,paddingRight:2}),(0,d.Z)(t,"& .".concat(D.actions),{flexShrink:0,marginLeft:20}),t})),E=(0,b.ZP)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:function(e,t){return t.spacer}})({flex:"1 1 100%"}),U=(0,b.ZP)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:function(e,t){return t.selectLabel}})((function(e){var t=e.theme;return(0,m.Z)({},t.typography.body2,{flexShrink:0})})),_=(0,b.ZP)(S.Z,{name:"MuiTablePagination",slot:"Select",overridesResolver:function(e,t){var r;return(0,m.Z)((r={},(0,d.Z)(r,"& .".concat(D.selectIcon),t.selectIcon),(0,d.Z)(r,"& .".concat(D.select),t.select),r),t.input,t.selectRoot)}})((0,d.Z)({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8},"& .".concat(D.select),{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"})),K=(0,b.ZP)(C.Z,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:function(e,t){return t.menuItem}})({}),W=(0,b.ZP)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:function(e,t){return t.displayedRows}})((function(e){var t=e.theme;return(0,m.Z)({},t.typography.body2,{flexShrink:0})}));function G(e){var t=e.from,r=e.to,n=e.count;return"".concat(t,"\u2013").concat(r," of ").concat(-1!==n?n:"more than ".concat(r))}function $(e){return"Go to ".concat(e," page")}var X=p.forwardRef((function(e,t){var r,n=(0,y.Z)({props:e,name:"MuiTablePagination"}),o=n.ActionsComponent,a=void 0===o?R:o,i=n.backIconButtonProps,c=n.className,l=n.colSpan,s=n.component,u=void 0===s?x.Z:s,d=n.count,b=n.getItemAriaLabel,C=void 0===b?$:b,S=n.labelDisplayedRows,k=void 0===S?G:S,w=n.labelRowsPerPage,P=void 0===w?"Rows per page:":w,T=n.nextIconButtonProps,M=n.onPageChange,B=n.onRowsPerPageChange,I=n.page,A=n.rowsPerPage,z=n.rowsPerPageOptions,F=void 0===z?[10,25,50,100]:z,D=n.SelectProps,X=void 0===D?{}:D,J=n.showFirstButton,Y=void 0!==J&&J,Q=n.showLastButton,ee=void 0!==Q&&Q,te=(0,f.Z)(n,q),re=n,ne=function(e){var t=e.classes;return(0,v.Z)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},H,t)}(re),oe=X.native?"option":K;u!==x.Z&&"td"!==u||(r=l||1e3);var ae=(0,L.Z)(X.id),ie=(0,L.Z)(X.labelId);return(0,j.jsx)(O,(0,m.Z)({colSpan:r,ref:t,as:u,ownerState:re,className:(0,g.Z)(ne.root,c)},te,{children:(0,j.jsxs)(V,{className:ne.toolbar,children:[(0,j.jsx)(E,{className:ne.spacer}),F.length>1&&(0,j.jsx)(U,{className:ne.selectLabel,id:ie,children:P}),F.length>1&&(0,j.jsx)(_,(0,m.Z)({variant:"standard"},!X.variant&&{input:N||(N=(0,j.jsx)(Z.ZP,{}))},{value:A,onChange:B,id:ae,labelId:ie},X,{classes:(0,m.Z)({},X.classes,{root:(0,g.Z)(ne.input,ne.selectRoot,(X.classes||{}).root),select:(0,g.Z)(ne.select,(X.classes||{}).select),icon:(0,g.Z)(ne.selectIcon,(X.classes||{}).icon)}),children:F.map((function(e){return(0,p.createElement)(oe,(0,m.Z)({},!(0,h.X)(oe)&&{ownerState:re},{className:ne.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e)}))})),(0,j.jsx)(W,{className:ne.displayedRows,children:k({from:0===d?0:I*A+1,to:-1===d?(I+1)*A:-1===A?d:Math.min(d,(I+1)*A),count:-1===d?-1:d,page:I})}),(0,j.jsx)(a,{className:ne.actions,backIconButtonProps:i,count:d,nextIconButtonProps:T,onPageChange:M,page:I,rowsPerPage:A,showFirstButton:Y,showLastButton:ee,getItemAriaLabel:C})]})}))}))},92725:function(e,t,r){var n=r(56666),o=r(7896),a=r(31461),i=r(30969),c=r(87023),l=r(26540),s=r(74262),u=r(81556),d=r(17363),f=r(45971),m=r(32139),p=r(37574),g=["className","component","hover","selected"],v=(0,f.ZP)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((function(e){var t,r=e.theme;return t={color:"inherit",display:"table-row",verticalAlign:"middle",outline:0},(0,n.Z)(t,"&.".concat(m.Z.hover,":hover"),{backgroundColor:(r.vars||r).palette.action.hover}),(0,n.Z)(t,"&.".concat(m.Z.selected),{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,s.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity),"&:hover":{backgroundColor:r.vars?"rgba(".concat(r.vars.palette.primary.mainChannel," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,s.Fq)(r.palette.primary.main,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity)}}),t})),h=i.forwardRef((function(e,t){var r=(0,d.Z)({props:e,name:"MuiTableRow"}),n=r.className,s=r.component,f=void 0===s?"tr":s,h=r.hover,b=void 0!==h&&h,y=r.selected,Z=void 0!==y&&y,C=(0,a.Z)(r,g),S=i.useContext(u.Z),x=(0,o.Z)({},r,{component:f,hover:b,selected:Z,head:S&&"head"===S.variant,footer:S&&"footer"===S.variant}),k=function(e){var t=e.classes,r={root:["root",e.selected&&"selected",e.hover&&"hover",e.head&&"head",e.footer&&"footer"]};return(0,l.Z)(r,m.G,t)}(x);return(0,p.jsx)(v,(0,o.Z)({as:f,ref:t,className:(0,c.Z)(k.root,n),role:"tr"===f?null:"row",ownerState:x},C))}));t.Z=h},80966:function(e,t,r){r.r(t),r.d(t,{default:function(){return n.Z},getTableRowUtilityClass:function(){return o.G},tableRowClasses:function(){return o.Z}});var n=r(92725),o=r(32139)},32139:function(e,t,r){r.d(t,{G:function(){return a}});var n=r(62746),o=r(2975);function a(e){return(0,o.Z)("MuiTableRow",e)}var i=(0,n.Z)("MuiTableRow",["root","selected","hover","head","footer"]);t.Z=i},14339:function(e,t,r){r.r(t),r.d(t,{default:function(){return x},getTableSortLabelUtilityClass:function(){return b},tableSortLabelClasses:function(){return y}});var n=r(56666),o=r(31461),a=r(7896),i=r(26540),c=r(87023),l=r(30969),s=r(4839),u=r(17469),d=r(37574),f=(0,u.Z)((0,d.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),m=r(45971),p=r(17363),g=r(24099),v=r(62746),h=r(2975);function b(e){return(0,h.Z)("MuiTableSortLabel",e)}var y=(0,v.Z)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),Z=["active","children","className","direction","hideSortIcon","IconComponent"],C=(0,m.ZP)(s.Z,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:function(e,t){var r=e.ownerState;return[t.root,r.active&&t.active]}})((function(e){var t=e.theme;return(0,n.Z)({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":(0,n.Z)({color:(t.vars||t).palette.text.secondary},"& .".concat(y.icon),{opacity:.5})},"&.".concat(y.active),(0,n.Z)({color:(t.vars||t).palette.text.primary},"& .".concat(y.icon),{opacity:1,color:(t.vars||t).palette.text.secondary}))})),S=(0,m.ZP)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:function(e,t){var r=e.ownerState;return[t.icon,t["iconDirection".concat((0,g.Z)(r.direction))]]}})((function(e){var t=e.theme,r=e.ownerState;return(0,a.Z)({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.shorter}),userSelect:"none"},"desc"===r.direction&&{transform:"rotate(0deg)"},"asc"===r.direction&&{transform:"rotate(180deg)"})})),x=l.forwardRef((function(e,t){var r=(0,p.Z)({props:e,name:"MuiTableSortLabel"}),n=r.active,l=void 0!==n&&n,s=r.children,u=r.className,m=r.direction,v=void 0===m?"asc":m,h=r.hideSortIcon,y=void 0!==h&&h,x=r.IconComponent,k=void 0===x?f:x,w=(0,o.Z)(r,Z),P=(0,a.Z)({},r,{active:l,direction:v,hideSortIcon:y,IconComponent:k}),T=function(e){var t=e.classes,r=e.direction,n={root:["root",e.active&&"active"],icon:["icon","iconDirection".concat((0,g.Z)(r))]};return(0,i.Z)(n,b,t)}(P);return(0,d.jsxs)(C,(0,a.Z)({className:(0,c.Z)(T.root,u),component:"span",disableRipple:!0,ownerState:P,ref:t},w,{children:[s,y&&!l?null:(0,d.jsx)(S,{as:k,className:(0,c.Z)(T.icon),ownerState:P})]}))}))},89558:function(e,t,r){r.r(t),r.d(t,{default:function(){return n.Z},getTextFieldUtilityClass:function(){return o.I},textFieldClasses:function(){return o.Z}});var n=r(87006),o=r(99453)},84172:function(e,t,r){r.r(t),r.d(t,{default:function(){return n.Z},getToolbarUtilityClass:function(){return o.N},toolbarClasses:function(){return o.Z}});var n=r(56277),o=r(6856)},58926:function(e,t,r){r.r(t),r.d(t,{default:function(){return n.Z},getTooltipUtilityClass:function(){return o.Q},tooltipClasses:function(){return o.Z}});var n=r(6779),o=r(2295)},49284:function(e,t,r){r.r(t),r.d(t,{default:function(){return n.Z},getTypographyUtilityClass:function(){return o.f},typographyClasses:function(){return o.Z}});var n=r(33359),o=r(51047)},24726:function(e,t,r){r(30969);var n=r(17469),o=r(37574);t.Z=(0,n.Z)((0,o.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage")},77759:function(e,t,r){r(30969);var n=r(17469),o=r(37574);t.Z=(0,n.Z)((0,o.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage")},69106:function(e,t,r){r.r(t),r.d(t,{Experimental_CssVarsProvider:function(){return ve},StyledEngineProvider:function(){return T.Z},THEME_ID:function(){return o.Z},ThemeProvider:function(){return P.Z},adaptV4Theme:function(){return f},alpha:function(){return m.Fq},createMuiTheme:function(){return g.A},createStyles:function(){return y},createTheme:function(){return g.Z},css:function(){return p.css},darken:function(){return m._j},decomposeColor:function(){return m.tB},duration:function(){return S.x9},easing:function(){return S.Ui},emphasize:function(){return m._4},experimentalStyled:function(){return w.ZP},experimental_extendTheme:function(){return de},experimental_sx:function(){return ye},getContrastRatio:function(){return m.mi},getInitColorSchemeScript:function(){return be},getLuminance:function(){return m.H3},getOverlayAlpha:function(){return ne.Z},hexToRgb:function(){return m.oo},hslToRgb:function(){return m.ve},keyframes:function(){return p.keyframes},lighten:function(){return m.$n},makeStyles:function(){return M},private_createTypography:function(){return fe.Z},private_excludeVariablesFromRoot:function(){return me},recomposeColor:function(){return m.wy},responsiveFontSizes:function(){return C.Z},rgbToHex:function(){return m.vq},shouldSkipGeneratingVar:function(){return re},styled:function(){return w.ZP},unstable_createMuiStrictModeTheme:function(){return h},unstable_getUnit:function(){return Z.Wy},unstable_toUnitless:function(){return Z.YL},useColorScheme:function(){return he},useTheme:function(){return x.Z},useThemeProps:function(){return k.Z},withStyles:function(){return B},withTheme:function(){return I}});var n=r(94442),o=r(56002),a=r(56666),i=r(7896),c=r(31461),l=r(57640),s=r(44707),u=["defaultProps","mixins","overrides","palette","props","styleOverrides"],d=["type","mode"];function f(e){var t=e.defaultProps,r=void 0===t?{}:t,n=e.mixins,o=void 0===n?{}:n,f=e.overrides,m=void 0===f?{}:f,p=e.palette,g=void 0===p?{}:p,v=e.props,h=void 0===v?{}:v,b=e.styleOverrides,y=void 0===b?{}:b,Z=(0,c.Z)(e,u),C=(0,i.Z)({},Z,{components:{}});Object.keys(r).forEach((function(e){var t=C.components[e]||{};t.defaultProps=r[e],C.components[e]=t})),Object.keys(h).forEach((function(e){var t=C.components[e]||{};t.defaultProps=h[e],C.components[e]=t})),Object.keys(y).forEach((function(e){var t=C.components[e]||{};t.styleOverrides=y[e],C.components[e]=t})),Object.keys(m).forEach((function(e){var t=C.components[e]||{};t.styleOverrides=m[e],C.components[e]=t})),C.spacing=(0,l.Z)(e.spacing);var S=(0,s.Z)(e.breakpoints||{}),x=C.spacing;C.mixins=(0,i.Z)({gutters:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)({paddingLeft:x(2),paddingRight:x(2)},e,(0,a.Z)({},S.up("sm"),(0,i.Z)({paddingLeft:x(3),paddingRight:x(3)},e[S.up("sm")])))}},o);var k=g.type,w=g.mode,P=(0,c.Z)(g,d),T=w||k||"light";return C.palette=(0,i.Z)({text:{hint:"dark"===T?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:T,type:T},P),C}var m=r(74262),p=r(54470),g=r(36085),v=r(87929);function h(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return g.Z.apply(void 0,[(0,v.Z)({unstable_strictMode:!0},e)].concat(r))}var b=!1;function y(e){return b||(console.warn(["MUI: createStyles from @mui/material/styles is deprecated.","Please use @mui/styles/createStyles"].join("\n")),b=!0),e}var Z=r(72879),C=r(47730),S=r(92093),x=r(94702),k=r(17363),w=r(45971),P=r(75844),T=r(80867);function M(){throw new Error((0,n.Z)(14))}function B(){throw new Error((0,n.Z)(15))}function I(){throw new Error((0,n.Z)(16))}var j=r(96234),A=r(30969),R=r(9466),L=r(55116),z=r(13787),F=r(37574),H="mode",N="color-scheme",D="data-color-scheme";function q(e){if("undefined"!==typeof window&&"system"===e)return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function O(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function V(e,t){if("undefined"!==typeof window){var r;try{(r=localStorage.getItem(e)||void 0)||localStorage.setItem(e,t)}catch(n){}return r||t}}function E(e){var t=e.defaultMode,r=void 0===t?"light":t,n=e.defaultLightColorScheme,o=e.defaultDarkColorScheme,a=e.supportedColorSchemes,c=void 0===a?[]:a,l=e.modeStorageKey,s=void 0===l?H:l,u=e.colorSchemeStorageKey,d=void 0===u?N:u,f=e.storageWindow,m=void 0===f?"undefined"===typeof window?void 0:window:f,p=c.join(","),g=A.useState((function(){var e=V(s,r),t=V("".concat(d,"-light"),n),a=V("".concat(d,"-dark"),o);return{mode:e,systemMode:q(e),lightColorScheme:t,darkColorScheme:a}})),v=(0,j.Z)(g,2),h=v[0],b=v[1],y=function(e){return O(e,(function(t){return"light"===t?e.lightColorScheme:"dark"===t?e.darkColorScheme:void 0}))}(h),Z=A.useCallback((function(e){b((function(t){if(e===t.mode)return t;var n=e||r;try{localStorage.setItem(s,n)}catch(o){}return(0,i.Z)({},t,{mode:n,systemMode:q(n)})}))}),[s,r]),C=A.useCallback((function(e){e?"string"===typeof e?e&&!p.includes(e)?console.error("`".concat(e,"` does not exist in `theme.colorSchemes`.")):b((function(t){var r=(0,i.Z)({},t);return O(t,(function(t){try{localStorage.setItem("".concat(d,"-").concat(t),e)}catch(n){}"light"===t&&(r.lightColorScheme=e),"dark"===t&&(r.darkColorScheme=e)})),r})):b((function(t){var r=(0,i.Z)({},t),a=null===e.light?n:e.light,c=null===e.dark?o:e.dark;if(a)if(p.includes(a)){r.lightColorScheme=a;try{localStorage.setItem("".concat(d,"-light"),a)}catch(l){}}else console.error("`".concat(a,"` does not exist in `theme.colorSchemes`."));if(c)if(p.includes(c)){r.darkColorScheme=c;try{localStorage.setItem("".concat(d,"-dark"),c)}catch(l){}}else console.error("`".concat(c,"` does not exist in `theme.colorSchemes`."));return r})):b((function(e){try{localStorage.setItem("".concat(d,"-light"),n),localStorage.setItem("".concat(d,"-dark"),o)}catch(t){}return(0,i.Z)({},e,{lightColorScheme:n,darkColorScheme:o})}))}),[p,d,n,o]),S=A.useCallback((function(e){"system"===h.mode&&b((function(t){return(0,i.Z)({},t,{systemMode:null!=e&&e.matches?"dark":"light"})}))}),[h.mode]),x=A.useRef(S);return x.current=S,A.useEffect((function(){var e=function(){return x.current.apply(x,arguments)},t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),function(){return t.removeListener(e)}}),[]),A.useEffect((function(){var e=function(e){var t=e.newValue;"string"!==typeof e.key||!e.key.startsWith(d)||t&&!p.match(t)||(e.key.endsWith("light")&&C({light:t}),e.key.endsWith("dark")&&C({dark:t})),e.key!==s||t&&!["light","dark","system"].includes(t)||Z(t||r)};if(m)return m.addEventListener("storage",e),function(){return m.removeEventListener("storage",e)}}),[C,Z,s,d,p,r,m]),(0,i.Z)({},h,{colorScheme:y,setMode:Z,setColorScheme:C})}var U=["colorSchemes","components","generateCssVars","cssVarPrefix"];var _=r(40176),K=r(68079);function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";function t(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];if(!n.length)return"";var a=n[0];return"string"!==typeof a||a.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?", ".concat(a):", var(--".concat(e?"".concat(e,"-"):"").concat(a).concat(t.apply(void 0,(0,K.Z)(n.slice(1))),")")}return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return"var(--".concat(e?"".concat(e,"-"):"").concat(r).concat(t.apply(void 0,o),")")}}var G=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=e;t.forEach((function(e,a){a===t.length-1?Array.isArray(o)?o[Number(e)]=r:o&&"object"===typeof o&&(o[e]=r):o&&"object"===typeof o&&(o[e]||(o[e]=n.includes(e)?[]:{}),o=o[e])}))},$=function(e,t,r){!function e(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];Object.entries(n).forEach((function(n){var i=(0,j.Z)(n,2),c=i[0],l=i[1];(!r||r&&!r([].concat((0,K.Z)(o),[c])))&&void 0!==l&&null!==l&&("object"===typeof l&&Object.keys(l).length>0?e(l,[].concat((0,K.Z)(o),[c]),Array.isArray(l)?[].concat((0,K.Z)(a),[c]):a):t([].concat((0,K.Z)(o),[c]),l,a))}))}(e)},X=function(e,t){return"number"===typeof t?["lineHeight","fontWeight","opacity","zIndex"].some((function(t){return e.includes(t)}))||e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:"".concat(t,"px"):t};function J(e,t){var r=t||{},n=r.prefix,o=r.shouldSkipGeneratingVar,i={},c={},l={};return $(e,(function(e,t,r){if(("string"===typeof t||"number"===typeof t)&&(!o||!o(e,t))){var s="--".concat(n?"".concat(n,"-"):"").concat(e.join("-"));Object.assign(i,(0,a.Z)({},s,X(e,t))),G(c,e,"var(".concat(s,")"),r),G(l,e,"var(".concat(s,", ").concat(t,")"),r)}}),(function(e){return"vars"===e[0]})),{css:i,vars:c,varsWithDefaults:l}}var Y=["colorSchemes","components"],Q=["light"];var ee=function(e,t){var r=e.colorSchemes,n=void 0===r?{}:r,o=J((0,c.Z)(e,Y),t),a=o.vars,l=o.css,s=o.varsWithDefaults,u={},d=n.light,f=(0,c.Z)(n,Q);if(Object.entries(f||{}).forEach((function(e){var r=(0,j.Z)(e,2),n=r[0],o=J(r[1],t),a=o.vars,i=o.css,c=o.varsWithDefaults;s=(0,v.Z)(s,c),u[n]={css:i,vars:a}})),d){var m=J(d,t),p=m.css,g=m.vars,h=m.varsWithDefaults;s=(0,v.Z)(s,h),u.light={css:p,vars:g}}return{vars:s,generateCssVars:function(e){return e?{css:(0,i.Z)({},u[e].css),vars:u[e].vars}:{css:(0,i.Z)({},l),vars:a}}}},te=r(85792);function re(e){var t;return!!e[0].match(/(cssVarPrefix|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!(null==(t=e[1])||!t.match(/(mode|contrastThreshold|tonalOffset)/))}var ne=r(72723),oe=["colorSchemes","cssVarPrefix","shouldSkipGeneratingVar"],ae=["palette"],ie=(0,K.Z)(Array(25)).map((function(e,t){if(0!==t){var r=(0,ne.Z)(t);return"linear-gradient(rgba(255 255 255 / ".concat(r,"), rgba(255 255 255 / ").concat(r,"))")}}));function ce(e,t,r){!e[t]&&r&&(e[t]=r)}function le(e,t){"".concat(t,"Channel")in e||(e["".concat(t,"Channel")]=(0,m.LR)(e[t],"MUI: Can't create `palette.".concat(t,"Channel` because `palette.").concat(t,"` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().")+"\n"+"To suppress this warning, you need to explicitly provide the `palette.".concat(t,'Channel` as a string (in rgb format, e.g. "12 12 12") or undefined if you want to remove the channel token.')))}var se=function(e){try{return e()}catch(t){}},ue=function(){return W(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mui")};function de(){var e,t,r,n,o,a,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=l.colorSchemes,u=void 0===s?{}:s,d=l.cssVarPrefix,f=void 0===d?"mui":d,p=l.shouldSkipGeneratingVar,h=void 0===p?re:p,b=(0,c.Z)(l,oe),y=ue(f),Z=(0,g.Z)((0,i.Z)({},b,u.light&&{palette:null==(e=u.light)?void 0:e.palette})),C=Z.palette,S=(0,c.Z)(Z,ae),x=(0,g.Z)({palette:(0,i.Z)({mode:"dark"},null==(t=u.dark)?void 0:t.palette)}).palette,k=(0,i.Z)({},S,{cssVarPrefix:f,getCssVar:y,colorSchemes:(0,i.Z)({},u,{light:(0,i.Z)({},u.light,{palette:C,opacity:(0,i.Z)({inputPlaceholder:.42,inputUnderline:.42,switchTrackDisabled:.12,switchTrack:.38},null==(r=u.light)?void 0:r.opacity),overlays:(null==(n=u.light)?void 0:n.overlays)||[]}),dark:(0,i.Z)({},u.dark,{palette:x,opacity:(0,i.Z)({inputPlaceholder:.5,inputUnderline:.7,switchTrackDisabled:.2,switchTrack:.3},null==(o=u.dark)?void 0:o.opacity),overlays:(null==(a=u.dark)?void 0:a.overlays)||ie})})});Object.keys(k.colorSchemes).forEach((function(e){var t,r=k.colorSchemes[e].palette,n=function(e){var t=e.split("-"),n=t[1],o=t[2];return y(e,r[n][o])};if("light"===e?(ce(r.common,"background","#fff"),ce(r.common,"onBackground","#000")):(ce(r.common,"background","#000"),ce(r.common,"onBackground","#fff")),t=r,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach((function(e){t[e]||(t[e]={})})),"light"===e){ce(r.Alert,"errorColor",(0,m.q8)(r.error.light,.6)),ce(r.Alert,"infoColor",(0,m.q8)(r.info.light,.6)),ce(r.Alert,"successColor",(0,m.q8)(r.success.light,.6)),ce(r.Alert,"warningColor",(0,m.q8)(r.warning.light,.6)),ce(r.Alert,"errorFilledBg",n("palette-error-main")),ce(r.Alert,"infoFilledBg",n("palette-info-main")),ce(r.Alert,"successFilledBg",n("palette-success-main")),ce(r.Alert,"warningFilledBg",n("palette-warning-main")),ce(r.Alert,"errorFilledColor",se((function(){return C.getContrastText(r.error.main)}))),ce(r.Alert,"infoFilledColor",se((function(){return C.getContrastText(r.info.main)}))),ce(r.Alert,"successFilledColor",se((function(){return C.getContrastText(r.success.main)}))),ce(r.Alert,"warningFilledColor",se((function(){return C.getContrastText(r.warning.main)}))),ce(r.Alert,"errorStandardBg",(0,m.ux)(r.error.light,.9)),ce(r.Alert,"infoStandardBg",(0,m.ux)(r.info.light,.9)),ce(r.Alert,"successStandardBg",(0,m.ux)(r.success.light,.9)),ce(r.Alert,"warningStandardBg",(0,m.ux)(r.warning.light,.9)),ce(r.Alert,"errorIconColor",n("palette-error-main")),ce(r.Alert,"infoIconColor",n("palette-info-main")),ce(r.Alert,"successIconColor",n("palette-success-main")),ce(r.Alert,"warningIconColor",n("palette-warning-main")),ce(r.AppBar,"defaultBg",n("palette-grey-100")),ce(r.Avatar,"defaultBg",n("palette-grey-400")),ce(r.Button,"inheritContainedBg",n("palette-grey-300")),ce(r.Button,"inheritContainedHoverBg",n("palette-grey-A100")),ce(r.Chip,"defaultBorder",n("palette-grey-400")),ce(r.Chip,"defaultAvatarColor",n("palette-grey-700")),ce(r.Chip,"defaultIconColor",n("palette-grey-700")),ce(r.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ce(r.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ce(r.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ce(r.LinearProgress,"primaryBg",(0,m.ux)(r.primary.main,.62)),ce(r.LinearProgress,"secondaryBg",(0,m.ux)(r.secondary.main,.62)),ce(r.LinearProgress,"errorBg",(0,m.ux)(r.error.main,.62)),ce(r.LinearProgress,"infoBg",(0,m.ux)(r.info.main,.62)),ce(r.LinearProgress,"successBg",(0,m.ux)(r.success.main,.62)),ce(r.LinearProgress,"warningBg",(0,m.ux)(r.warning.main,.62)),ce(r.Skeleton,"bg","rgba(".concat(n("palette-text-primaryChannel")," / 0.11)")),ce(r.Slider,"primaryTrack",(0,m.ux)(r.primary.main,.62)),ce(r.Slider,"secondaryTrack",(0,m.ux)(r.secondary.main,.62)),ce(r.Slider,"errorTrack",(0,m.ux)(r.error.main,.62)),ce(r.Slider,"infoTrack",(0,m.ux)(r.info.main,.62)),ce(r.Slider,"successTrack",(0,m.ux)(r.success.main,.62)),ce(r.Slider,"warningTrack",(0,m.ux)(r.warning.main,.62));var o=(0,m.fk)(r.background.default,.8);ce(r.SnackbarContent,"bg",o),ce(r.SnackbarContent,"color",se((function(){return C.getContrastText(o)}))),ce(r.SpeedDialAction,"fabHoverBg",(0,m.fk)(r.background.paper,.15)),ce(r.StepConnector,"border",n("palette-grey-400")),ce(r.StepContent,"border",n("palette-grey-400")),ce(r.Switch,"defaultColor",n("palette-common-white")),ce(r.Switch,"defaultDisabledColor",n("palette-grey-100")),ce(r.Switch,"primaryDisabledColor",(0,m.ux)(r.primary.main,.62)),ce(r.Switch,"secondaryDisabledColor",(0,m.ux)(r.secondary.main,.62)),ce(r.Switch,"errorDisabledColor",(0,m.ux)(r.error.main,.62)),ce(r.Switch,"infoDisabledColor",(0,m.ux)(r.info.main,.62)),ce(r.Switch,"successDisabledColor",(0,m.ux)(r.success.main,.62)),ce(r.Switch,"warningDisabledColor",(0,m.ux)(r.warning.main,.62)),ce(r.TableCell,"border",(0,m.ux)((0,m.zp)(r.divider,1),.88)),ce(r.Tooltip,"bg",(0,m.zp)(r.grey[700],.92))}else{ce(r.Alert,"errorColor",(0,m.ux)(r.error.light,.6)),ce(r.Alert,"infoColor",(0,m.ux)(r.info.light,.6)),ce(r.Alert,"successColor",(0,m.ux)(r.success.light,.6)),ce(r.Alert,"warningColor",(0,m.ux)(r.warning.light,.6)),ce(r.Alert,"errorFilledBg",n("palette-error-dark")),ce(r.Alert,"infoFilledBg",n("palette-info-dark")),ce(r.Alert,"successFilledBg",n("palette-success-dark")),ce(r.Alert,"warningFilledBg",n("palette-warning-dark")),ce(r.Alert,"errorFilledColor",se((function(){return x.getContrastText(r.error.dark)}))),ce(r.Alert,"infoFilledColor",se((function(){return x.getContrastText(r.info.dark)}))),ce(r.Alert,"successFilledColor",se((function(){return x.getContrastText(r.success.dark)}))),ce(r.Alert,"warningFilledColor",se((function(){return x.getContrastText(r.warning.dark)}))),ce(r.Alert,"errorStandardBg",(0,m.q8)(r.error.light,.9)),ce(r.Alert,"infoStandardBg",(0,m.q8)(r.info.light,.9)),ce(r.Alert,"successStandardBg",(0,m.q8)(r.success.light,.9)),ce(r.Alert,"warningStandardBg",(0,m.q8)(r.warning.light,.9)),ce(r.Alert,"errorIconColor",n("palette-error-main")),ce(r.Alert,"infoIconColor",n("palette-info-main")),ce(r.Alert,"successIconColor",n("palette-success-main")),ce(r.Alert,"warningIconColor",n("palette-warning-main")),ce(r.AppBar,"defaultBg",n("palette-grey-900")),ce(r.AppBar,"darkBg",n("palette-background-paper")),ce(r.AppBar,"darkColor",n("palette-text-primary")),ce(r.Avatar,"defaultBg",n("palette-grey-600")),ce(r.Button,"inheritContainedBg",n("palette-grey-800")),ce(r.Button,"inheritContainedHoverBg",n("palette-grey-700")),ce(r.Chip,"defaultBorder",n("palette-grey-700")),ce(r.Chip,"defaultAvatarColor",n("palette-grey-300")),ce(r.Chip,"defaultIconColor",n("palette-grey-300")),ce(r.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ce(r.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ce(r.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ce(r.LinearProgress,"primaryBg",(0,m.q8)(r.primary.main,.5)),ce(r.LinearProgress,"secondaryBg",(0,m.q8)(r.secondary.main,.5)),ce(r.LinearProgress,"errorBg",(0,m.q8)(r.error.main,.5)),ce(r.LinearProgress,"infoBg",(0,m.q8)(r.info.main,.5)),ce(r.LinearProgress,"successBg",(0,m.q8)(r.success.main,.5)),ce(r.LinearProgress,"warningBg",(0,m.q8)(r.warning.main,.5)),ce(r.Skeleton,"bg","rgba(".concat(n("palette-text-primaryChannel")," / 0.13)")),ce(r.Slider,"primaryTrack",(0,m.q8)(r.primary.main,.5)),ce(r.Slider,"secondaryTrack",(0,m.q8)(r.secondary.main,.5)),ce(r.Slider,"errorTrack",(0,m.q8)(r.error.main,.5)),ce(r.Slider,"infoTrack",(0,m.q8)(r.info.main,.5)),ce(r.Slider,"successTrack",(0,m.q8)(r.success.main,.5)),ce(r.Slider,"warningTrack",(0,m.q8)(r.warning.main,.5));var a=(0,m.fk)(r.background.default,.98);ce(r.SnackbarContent,"bg",a),ce(r.SnackbarContent,"color",se((function(){return x.getContrastText(a)}))),ce(r.SpeedDialAction,"fabHoverBg",(0,m.fk)(r.background.paper,.15)),ce(r.StepConnector,"border",n("palette-grey-600")),ce(r.StepContent,"border",n("palette-grey-600")),ce(r.Switch,"defaultColor",n("palette-grey-300")),ce(r.Switch,"defaultDisabledColor",n("palette-grey-600")),ce(r.Switch,"primaryDisabledColor",(0,m.q8)(r.primary.main,.55)),ce(r.Switch,"secondaryDisabledColor",(0,m.q8)(r.secondary.main,.55)),ce(r.Switch,"errorDisabledColor",(0,m.q8)(r.error.main,.55)),ce(r.Switch,"infoDisabledColor",(0,m.q8)(r.info.main,.55)),ce(r.Switch,"successDisabledColor",(0,m.q8)(r.success.main,.55)),ce(r.Switch,"warningDisabledColor",(0,m.q8)(r.warning.main,.55)),ce(r.TableCell,"border",(0,m.q8)((0,m.zp)(r.divider,1),.68)),ce(r.Tooltip,"bg",(0,m.zp)(r.grey[700],.92))}le(r.background,"default"),le(r.common,"background"),le(r.common,"onBackground"),le(r,"divider"),Object.keys(r).forEach((function(e){var t=r[e];t&&"object"===typeof t&&(t.main&&ce(r[e],"mainChannel",(0,m.LR)(t.main)),t.light&&ce(r[e],"lightChannel",(0,m.LR)(t.light)),t.dark&&ce(r[e],"darkChannel",(0,m.LR)(t.dark)),t.contrastText&&ce(r[e],"contrastTextChannel",(0,m.LR)(t.contrastText)),"text"===e&&(le(r[e],"primary"),le(r[e],"secondary")),"action"===e&&(t.active&&le(r[e],"active"),t.selected&&le(r[e],"selected")))}))}));for(var w=arguments.length,P=new Array(w>1?w-1:0),T=1;T<w;T++)P[T-1]=arguments[T];k=P.reduce((function(e,t){return(0,v.Z)(e,t)}),k);var M=ee(k,{prefix:f,shouldSkipGeneratingVar:h}),B=M.vars,I=M.generateCssVars;return k.vars=B,k.generateCssVars=I,k.shouldSkipGeneratingVar=h,k.unstable_sxConfig=(0,i.Z)({},te.Z,null==b?void 0:b.unstable_sxConfig),k.unstable_sx=function(e){return(0,_.Z)({sx:e,theme:this})},k}var fe=r(87345),me=function(e){return[].concat((0,K.Z)((0,K.Z)(Array(24)).map((function(t,r){return"--".concat(e?"".concat(e,"-"):"","overlays-").concat(r+1)}))),["--".concat(e?"".concat(e,"-"):"","palette-AppBar-darkBg"),"--".concat(e?"".concat(e,"-"):"","palette-AppBar-darkColor")])},pe=de(),ge=function(e){var t=e.themeId,r=e.theme,o=void 0===r?{}:r,l=e.attribute,s=void 0===l?D:l,u=e.modeStorageKey,d=void 0===u?H:u,f=e.colorSchemeStorageKey,m=void 0===f?N:f,p=e.defaultMode,g=void 0===p?"light":p,h=e.defaultColorScheme,b=e.disableTransitionOnChange,y=void 0!==b&&b,Z=e.resolveTheme,C=e.excludeVariablesFromRoot;(!o.colorSchemes||"string"===typeof h&&!o.colorSchemes[h]||"object"===typeof h&&!o.colorSchemes[null==h?void 0:h.light]||"object"===typeof h&&!o.colorSchemes[null==h?void 0:h.dark])&&console.error("MUI: `".concat(h,"` does not exist in `theme.colorSchemes`."));var S=A.createContext(void 0),x="string"===typeof h?h:h.light,k="string"===typeof h?h:h.dark;return{CssVarsProvider:function(e){var r=e.children,n=e.theme,l=void 0===n?o:n,u=e.modeStorageKey,f=void 0===u?d:u,p=e.colorSchemeStorageKey,b=void 0===p?m:p,x=e.attribute,k=void 0===x?s:x,w=e.defaultMode,P=void 0===w?g:w,T=e.defaultColorScheme,M=void 0===T?h:T,B=e.disableTransitionOnChange,I=void 0===B?y:B,H=e.storageWindow,N=void 0===H?"undefined"===typeof window?void 0:window:H,D=e.documentNode,q=void 0===D?"undefined"===typeof document?void 0:document:D,O=e.colorSchemeNode,V=void 0===O?"undefined"===typeof document?void 0:document.documentElement:O,_=e.colorSchemeSelector,K=void 0===_?":root":_,W=e.disableNestedContext,G=void 0!==W&&W,$=e.disableStyleSheetGeneration,X=void 0!==$&&$,J=A.useRef(!1),Y=(0,L.Z)(),Q=A.useContext(S),ee=!!Q&&!G,te=l[t],re=te||l,ne=re.colorSchemes,oe=void 0===ne?{}:ne,ae=re.components,ie=void 0===ae?{}:ae,ce=re.generateCssVars,le=void 0===ce?function(){return{vars:{},css:{}}}:ce,se=re.cssVarPrefix,ue=(0,c.Z)(re,U),de=Object.keys(oe),fe="string"===typeof M?M:M.light,me="string"===typeof M?M:M.dark,pe=E({supportedColorSchemes:de,defaultLightColorScheme:fe,defaultDarkColorScheme:me,modeStorageKey:f,colorSchemeStorageKey:b,defaultMode:P,storageWindow:N}),ge=pe.mode,ve=pe.setMode,he=pe.systemMode,be=pe.lightColorScheme,ye=pe.darkColorScheme,Ze=pe.colorScheme,Ce=pe.setColorScheme,Se=ge,xe=Ze;ee&&(Se=Q.mode,xe=Q.colorScheme);var ke=xe||("dark"===(Se||("system"===P?g:P))?me:fe),we=le(),Pe=we.css,Te=we.vars,Me=(0,i.Z)({},ue,{components:ie,colorSchemes:oe,cssVarPrefix:se,vars:Te,getColorSchemeSelector:function(e){return"[".concat(k,'="').concat(e,'"] &')}}),Be={},Ie={};Object.entries(oe).forEach((function(e){var t=(0,j.Z)(e,2),r=t[0],n=t[1],o=le(r),a=o.css,c=o.vars;if(Me.vars=(0,v.Z)(Me.vars,c),r===ke&&(Object.keys(n).forEach((function(e){n[e]&&"object"===typeof n[e]?Me[e]=(0,i.Z)({},Me[e],n[e]):Me[e]=n[e]})),Me.palette&&(Me.palette.colorScheme=r)),r===("string"===typeof M?M:"dark"===P?M.dark:M.light)){if(C){var l={};C(se).forEach((function(e){l[e]=a[e],delete a[e]})),Be["[".concat(k,'="').concat(r,'"]')]=l}Be["".concat(K,", [").concat(k,'="').concat(r,'"]')]=a}else Ie["".concat(":root"===K?"":K,"[").concat(k,'="').concat(r,'"]')]=a})),Me.vars=(0,v.Z)(Me.vars,Te),A.useEffect((function(){xe&&V&&V.setAttribute(k,xe)}),[xe,k,V]),A.useEffect((function(){var e;if(I&&J.current&&q){var t=q.createElement("style");t.appendChild(q.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),q.head.appendChild(t),window.getComputedStyle(q.body),e=setTimeout((function(){q.head.removeChild(t)}),1)}return function(){clearTimeout(e)}}),[xe,I,q]),A.useEffect((function(){return J.current=!0,function(){J.current=!1}}),[]);var je=A.useMemo((function(){return{mode:Se,systemMode:he,setMode:ve,lightColorScheme:be,darkColorScheme:ye,colorScheme:xe,setColorScheme:Ce,allColorSchemes:de}}),[de,xe,ye,be,Se,Ce,ve,he]),Ae=!0;(X||ee&&(null==Y?void 0:Y.cssVarPrefix)===se)&&(Ae=!1);var Re=(0,F.jsxs)(A.Fragment,{children:[Ae&&(0,F.jsxs)(A.Fragment,{children:[(0,F.jsx)(R.Z,{styles:(0,a.Z)({},K,Pe)}),(0,F.jsx)(R.Z,{styles:Be}),(0,F.jsx)(R.Z,{styles:Ie})]}),(0,F.jsx)(z.Z,{themeId:te?t:void 0,theme:Z?Z(Me):Me,children:r})]});return ee?Re:(0,F.jsx)(S.Provider,{value:je,children:Re})},useColorScheme:function(){var e=A.useContext(S);if(!e)throw new Error((0,n.Z)(19));return e},getInitColorSchemeScript:function(e){return function(e){var t=e||{},r=t.defaultMode,n=void 0===r?"light":r,o=t.defaultLightColorScheme,a=void 0===o?"light":o,i=t.defaultDarkColorScheme,c=void 0===i?"dark":i,l=t.modeStorageKey,s=void 0===l?H:l,u=t.colorSchemeStorageKey,d=void 0===u?N:u,f=t.attribute,m=void 0===f?D:f,p=t.colorSchemeNode,g=void 0===p?"document.documentElement":p;return(0,F.jsx)("script",{dangerouslySetInnerHTML:{__html:"(function() {\ntry {\n var mode = localStorage.getItem('".concat(s,"') || '").concat(n,"';\n var colorScheme = '';\n if (mode === 'system') {\n // handle system mode\n var mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n colorScheme = localStorage.getItem('").concat(d,"-dark') || '").concat(c,"';\n } else {\n colorScheme = localStorage.getItem('").concat(d,"-light') || '").concat(a,"';\n }\n }\n if (mode === 'light') {\n colorScheme = localStorage.getItem('").concat(d,"-light') || '").concat(a,"';\n }\n if (mode === 'dark') {\n colorScheme = localStorage.getItem('").concat(d,"-dark') || '").concat(c,"';\n }\n if (colorScheme) {\n ").concat(g,".setAttribute('").concat(m,"', colorScheme);\n }\n} catch(e){}})();")}},"mui-color-scheme-init")}((0,i.Z)({attribute:s,colorSchemeStorageKey:m,defaultMode:g,defaultLightColorScheme:x,defaultDarkColorScheme:k,modeStorageKey:d},e))}}}({themeId:o.Z,theme:pe,attribute:"data-mui-color-scheme",modeStorageKey:"mui-mode",colorSchemeStorageKey:"mui-color-scheme",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:function(e){var t=(0,i.Z)({},e,{typography:(0,fe.Z)(e.palette,e.typography)});return t.unstable_sx=function(e){return(0,_.Z)({sx:e,theme:this})},t},excludeVariablesFromRoot:me}),ve=ge.CssVarsProvider,he=ge.useColorScheme,be=ge.getInitColorSchemeScript;function ye(){throw new Error((0,n.Z)(20))}}}]);
2
- //# sourceMappingURL=4355.f459ab57.chunk.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[4587],{34587:function(n,e,t){t.r(e),t.d(e,{default:function(){return q}});var r,o,i,a,l=t(71171),c=t(32723),s=t(34795),d=t(33028),p=t(96234),u=t(59740),h=t(30969),f=t(86822),v=t(16380),m=t(54470),x=t(38361),g=t(8825),b=t(60680),j=t(46672),w=t(19638),y=t(29996),Z=t(26022),z=t(1986),k=t(62399),O=t(36558),P=t(12268),_=t(238),S=t(59505),C=t(94308),N=t(75255),M=t(47650),E=t(7017),L=t(20244),D=t(99574),R=t(24891),I=t(83364),T=t(99042),V=t(48952),A=t(4485),B=t(38507),H=t(37574),U=["appInfo"];function F(n){var e=n.appInfo,t=(0,u.Z)(n,U),r=(0,h.useState)(!1),o=(0,p.Z)(r,2),i=o[0],a=o[1],l=(0,N.Z)((function(n){return n.breakpoints.down("md")}))?32:48;return i?(0,H.jsx)(k.Z,{did:e.publisher,size:l}):(0,H.jsx)(P.Z,(0,d.Z)((0,d.Z)({src:e.icon,alt:e.title,width:l,height:l},t),{},{onError:function(){return a(!0)}}))}var W=function(n,e){return(0,E.findComponentByIdV2)(n,e)||n};function q(){var n,e,t,r=(0,Z.PE)(),o=r.t,i=r.locale,a=(0,h.useState)(null),l=(0,p.Z)(a,2),d=l[0],u=l[1],v=(0,h.useState)(null),j=(0,p.Z)(v,2),k=j[0],P=j[1],U=(0,h.useState)(!1),q=(0,p.Z)(U,2),Q=q[0],Y=q[1],$=(0,h.useState)(!1),nn=(0,p.Z)($,2),en=nn[0],tn=nn[1],rn=(0,N.Z)((function(n){return n.breakpoints.down("md")})),on=new URL(window.location.href),an=on.searchParams.get("componentId"),ln=function(){var n=on.searchParams.get("redirect")||"/";window.location=decodeURIComponent(n)},cn=function(){var n=setInterval((function(){T.Z.get("/blocklet/detail").then((function(e){var t=e.data,r=W(t,an);"running"!==r.status?"starting"!==r.status&&(tn(!1),u(t),t!==r&&P(r),clearInterval(n)):ln()})).catch((function(n){Y(!1),z.Z.error(n.message)}))}),3e3)};(0,h.useEffect)((function(){Y(!0),T.Z.get("/blocklet/detail").then(function(){var n=(0,s.Z)((0,c.Z)().mark((function n(e){var t,r,o;return(0,c.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t=e.data,r=W(t,an),!(o=t.controller)){n.next=7;break}return n.next=6,(0,R.Nh)(o.chainHost,o.nftId);case 6:t.nftState=n.sent;case 7:if(Y(!1),"running"!==r.status){n.next=11;break}return ln(),n.abrupt("return");case 11:u(t),t!==r&&P(r),"starting"===r.status&&(tn(!0),cn());case 14:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()).catch((function(n){Y(!1),z.Z.error(n.message)}))}),[]);var sn=(0,h.useCallback)((function(){Y(!0),tn(!0);var n={did:d.meta.did};k&&(n.componentDids=[k.meta.did]),V.Z.startBlocklet({input:n}).then((function(){cn()})).catch((function(n){z.Z.error(n.message),Y(!1),tn(!1)}))}),[k,d]);if(!d)return(0,H.jsx)(_.Z,{children:(0,H.jsx)(C.Z,{})});var dn={icon:"".concat(L.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo"),title:(0,E.getDisplayName)(d),publisher:d.appDid},pn=localStorage.getItem("blocklet-server-url");return(0,H.jsxs)(K,{children:[(0,H.jsx)(m.Global,{styles:G}),(0,H.jsxs)("header",{className:"root-header",children:[!rn&&(0,H.jsx)("div",{className:"left",children:(0,H.jsx)(M.Z,{width:"128",height:"48",onClick:function(){pn&&window.open(pn)},style:{cursor:pn?"pointer":""}})}),(0,H.jsx)("div",{className:"right",children:(0,H.jsx)(D.Z,{SessionContext:A.B3})})]}),(0,H.jsxs)(X,{elevation:0,children:[(0,H.jsxs)(J,{children:[(0,H.jsx)(F,{appInfo:dn}),(0,H.jsxs)("div",{className:"app-info_content",children:[(0,H.jsx)(x.Z,{className:"app-info_name",children:dn.title}),(0,H.jsx)(O.Z,{size:14,className:"app-info_did",did:dn.publisher})]})]}),(null===d||void 0===d||null===(n=d.controller)||void 0===n||null===(e=n.status)||void 0===e?void 0:e.value)!==S.BLOCKLET_CONTROLLER_STATUS.suspended&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(x.Z,{className:"title-box",children:[(0,H.jsx)(x.Z,{className:"icon",children:(0,H.jsx)(g.Z,{})}),(0,H.jsx)(x.Z,{className:"title",children:o("blocklet.startApplication")})]}),(0,H.jsx)(x.Z,{className:"sub-title",children:o("blocklet.startDescription",{name:k?(0,E.getDisplayName)(k,!0):(0,E.getDisplayName)(d)})}),(0,H.jsx)(x.Z,{mt:8,children:(0,H.jsx)(y.Z,{style:{minWidth:200},disabled:Q||en,variant:"contained",color:"primary",size:"large",loading:en,onClick:function(){return sn()},children:o(en?"blocklet.starting":"blocklet.start")})})]}),(0,B.xp)(null===d||void 0===d?void 0:d.controller,null===d||void 0===d?void 0:d.nftState)&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(x.Z,{className:"title-box",children:[(0,H.jsx)(b.Z,{className:"icon-error"}),(0,H.jsx)(x.Z,{className:"title error",children:o("blocklet.suspended")})]}),(0,H.jsx)(x.Z,{className:"sub-title",children:o("blocklet.redemptionTip",{deadline:(0,B.a7)((0,I.getNftExpirationDate)(d.nftState),i)})}),(0,H.jsx)(x.Z,{mt:8,children:(0,H.jsx)(y.Z,{component:w.Z,style:{minWidth:200},variant:"contained",color:"primary",size:"large",href:(0,R.Hz)({nftState:d.nftState,nftId:null===(t=d.nftState)||void 0===t?void 0:t.address,locale:i}),children:o("common.renew")})})]}),(0,H.jsx)(x.Z,{mt:5,children:(0,H.jsx)(f.rU,{className:"footer-link",to:"".concat(L.WELLKNOWN_SERVICE_PATH_PREFIX,"/admin/overview"),children:o("blocklet.dashboard")})})]})]})}var G=(0,m.css)(r||(r=(0,l.Z)(["\n html,\n body,\n #root,\n #root > .wrapper {\n height: 100%;\n }\n"]))),K=v.Z.div(o||(o=(0,l.Z)(["\n width: 100vw;\n height: 100%;\n background: #f6f8fa;\n display: flex;\n justify-content: center;\n align-items: center;\n\n .root-header {\n position: fixed;\n z-index: 200;\n top: 0;\n display: flex;\n width: 100%;\n height: 68px;\n align-items: center;\n justify-content: flex-end;\n padding: 24px;\n max-width: 1245px;\n\n "," {\n padding: 14px 16px;\n height: 56px;\n }\n\n .left {\n margin-top: 4px;\n margin-right: auto;\n "," {\n margin-top: 0%;\n }\n }\n\n .right {\n display: flex;\n align-items: center;\n "," {\n button,\n a {\n padding-left: 8px;\n padding-right: 8px;\n }\n }\n }\n }\n"])),(function(n){return n.theme.breakpoints.down("md")}),(function(n){return n.theme.breakpoints.down("md")}),(function(n){return n.theme.breakpoints.down("md")})),X=(0,v.Z)(j.Z)(i||(i=(0,l.Z)(["\n width: 80vw;\n max-width: 1245px;\n height: 80vh;\n box-sizing: border-box;\n padding: 32px;\n &.MuiPaper-rounded {\n border-radius: 8px;\n }\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n\n "," {\n width: 100vw;\n height: 100%;\n left: 0;\n top: 0;\n padding: 32px 0;\n }\n\n .MuiIconButton-root {\n svg {\n fill: #888;\n }\n &.Mui-disabled {\n opacity: 0.4;\n }\n }\n\n .title-box {\n display: flex;\n align-items: center;\n "," {\n margin-top: 60px;\n }\n }\n\n .icon {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n width: 32px;\n height: 32px;\n border-radius: 100%;\n background-color: ",";\n color: ",";\n }\n\n .icon-error {\n width: 32px;\n height: 32px;\n color: ",";\n }\n\n .title {\n margin-left: 12px;\n color: ",";\n font-size: 24px;\n font-weight: bolder;\n }\n\n .error {\n color: ",";\n }\n\n .sub-title {\n margin-top: 24px;\n color: ",";\n font-size: 16px;\n max-width: 360px;\n word-break: break-word;\n hyphens: auto;\n\n "," {\n padding: 0 32px;\n }\n }\n\n .footer-link {\n color: ",";\n }\n"])),(function(n){return n.theme.breakpoints.down("md")}),(function(n){return n.theme.breakpoints.down("md")}),(function(n){return n.theme.palette.primary.main}),(function(n){return n.theme.palette.common.white}),(function(n){return n.theme.palette.error.main}),(function(n){return n.theme.palette.primary.main}),(function(n){return n.theme.palette.error.main}),(function(n){return n.theme.palette.grey[700]}),(function(n){return n.theme.breakpoints.down("md")}),(function(n){return n.theme.palette.primary.main})),J=v.Z.div(a||(a=(0,l.Z)(["\n display: flex;\n align-items: center;\n position: absolute;\n left: 24px;\n right: 24px;\n top: 24px;\n font-size: 16px;\n font-weight: 500;\n color: #222;\n\n /* \u7981\u6b62 app icon shrink */\n > *:first-child {\n flex: 0 0 auto;\n }\n\n .app-info_content {\n padding-left: 16px;\n overflow: hidden;\n }\n\n .app-info_name {\n max-width: 100%;\n padding-right: 32px;\n line-height: 1;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-weight: bold;\n }\n\n .app-info_did {\n transform: translate(0, 2px);\n }\n\n .app-info_did .did-address__text {\n color: #666;\n font-size: 14px;\n }\n\n "," {\n top: 12px;\n .app-info_did {\n transform: translate(0, 0);\n }\n .app-info_did .did-address__text {\n font-size: 12px;\n }\n }\n"])),(function(n){return n.theme.breakpoints.down("md")}))},36558:function(n,e,t){var r=t(33028),o=t(59740),i=t(24974),a=t.n(i),l=t(86822),c=t(19638),s=t(23586),d=t(37574),p=["did","href","external","avatarProps"];function u(n){var e=n.did,t=n.href,i=n.external,a=(n.avatarProps,(0,o.Z)(n,p)),u=(0,d.jsx)(s.Z,(0,r.Z)({did:e},a));return t?i?(0,d.jsx)(c.Z,{target:"_blank",href:t,underline:"hover",children:u}):(0,d.jsx)(l.rU,{to:t,children:u}):u}u.propTypes={did:a().string.isRequired,to:a().string,href:a().string,avatarProps:a().object,external:a().bool},u.defaultProps={to:"",href:"",avatarProps:{},external:!1},e.Z=u},99574:function(n,e,t){t.d(e,{Z:function(){return g}});var r,o=t(71171),i=t(33028),a=t(30969),l=t(16380),c=t(24974),s=t.n(c),d=t(94551),p=t(30734),u=t(87843),h=t(26681),f=t(26022),v=t(46513),m=t(91077),x=t(37574);function g(n){var e=n.SessionContext,t=n.extraItems,r=n.showLocale,o=n.showHelper,l=n.showSessionManager,c=n.sessionManagerProps,s=(0,a.useContext)(e).session,g=(0,a.useContext)(f.RD).locale,j=(0,p.useLocation)(),w={"/store":{endpoint:"https://store.blocklet.io"},"/dashboard":{path:"/conceptual/overview"},"/settings/router":{path:"/conceptual/server-architecture"}};return(0,x.jsxs)(b,{children:[t.map((function(n,e){return(0,a.cloneElement)(n,{key:e})})),r&&(0,x.jsx)(h.Z,{"data-cy":"locale-addon",icon:v.Z,size:23,showText:!1,className:"locale-addon"}),o&&(0,x.jsx)(d.Z,{onClick:function(){var n=j.pathname,e={};n.indexOf("/store")>-1?e=w["/store"]:w[n]&&(e=w[n]),window.open("".concat(e.endpoint||"https://developer.blocklet.io/docs","/").concat(g).concat(e.path||""),"_blank")},children:(0,x.jsx)(m.Z,{})}),l&&(0,x.jsx)(u.Z,(0,i.Z)((0,i.Z)({locale:g,session:s,size:24,showRole:!0},c),{},{showManageBlocklet:!1}))]})}g.propTypes={SessionContext:s().object.isRequired,webWalletUrl:s().string,extraItems:s().array,showLocale:s().bool,showSessionManager:s().bool,showHelper:s().bool,sessionManagerProps:s().object},g.defaultProps={webWalletUrl:"",extraItems:[],showLocale:!0,showSessionManager:!0,showHelper:!0,sessionManagerProps:{}};var b=l.Z.div(r||(r=(0,o.Z)(["\n display: flex;\n justify-content: center;\n align-items: center;\n\n .MuiIconButton-root svg {\n width: 26px;\n height: 26px;\n }\n\n .user-addon {\n .user-avatar {\n width: 28px;\n border-radius: 14px;\n height: auto;\n }\n }\n\n "," {\n > button,\n > a {\n padding-left: 8px;\n padding-right: 8px;\n }\n }\n"])),(function(n){return n.theme.breakpoints.down("md")}))},62399:function(n,e,t){t.d(e,{Z:function(){return r.Z}});var r=t(22797)},46513: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 a(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){l(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 l(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 c=function(n){return(0,o.jsx)("svg",a(a({},n),{},{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"})}))};c.defaultProps={width:"21",height:"20",viewBox:"0 0 21 20",xmlns:"http://www.w3.org/2000/svg"},c.displayName="globe";var s=c;e.Z=s},91077: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 a(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){l(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 l(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 c=function(n){return(0,o.jsxs)("svg",a(a({},n),{},{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"})]}))};c.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},c.displayName="question-mark-circle";var s=c;e.Z=s},47650: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 a(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){l(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 l(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 c=function(n){return(0,o.jsxs)("svg",a(a({},n),{},{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"})]})]})]}))};c.defaultProps={width:"170",height:"64",viewBox:"0 0 170 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c.displayName="server-logo";var s=c;e.Z=s},26681:function(n,e,t){t.d(e,{Z:function(){return P}});var r,o,i=t(71171),a=t(33028),l=t(96234),c=t(59740),s=t(30969),d=t(24974),p=t.n(d),u=t(72097),h=t(94551),f=t(38361),v=t(33359),m=t(38589),x=t(23484),g=t(2689),b=t(45761),j=t(38996),w=t(46513),y=t(79216),Z=t(26022),z=t(55581),k=t(37574),O=["showText","popperProps","popperType","icon","size"];function P(n){var e,t,r,o=n.showText,i=n.popperProps,d=n.popperType,p=n.icon,b=n.size,y=(0,c.Z)(n,O),P=(0,s.useContext)(Z.RD),C=P.locale,N=P.changeLocale,M=P.languages,E=(0,s.useRef)(null),L=(0,s.useState)(!1),D=(0,l.Z)(L,2),R=D[0],I=D[1],T=(0,z.Fg)(),V="dark"===(null===T||void 0===T||null===(e=T.palette)||void 0===e?void 0:e.mode),A=o?u.Z:h.Z,B="hover"===d?{onMouseEnter:function(){I(!0)},onMouseLeave:function(){I(!1)}}:{onClick:function(){I(!R)}},H=(0,s.useMemo)((function(){return p?(0,k.jsx)(p,{}):(0,k.jsx)(w.Z,{style:{width:"auto",height:b,color:T.palette.text.secondary}})}),[p,null===T||void 0===T||null===(t=T.palette)||void 0===t||null===(r=t.text)||void 0===r?void 0:r.secondary,b]);return(0,k.jsxs)(_,(0,a.Z)((0,a.Z)((0,a.Z)({component:"div",dark:V,theme:T},y),B),{},{children:[(0,k.jsx)(A,{ref:E,className:"trigger",role:"button","aria-label":"Locale selector button",children:(0,k.jsxs)(f.Z,{display:"flex",alignItems:"center",children:[H,o?(0,k.jsx)(v.Z,{component:"strong",className:"trigger-text",children:M.find((function(n){return n.code===C})).name}):""]})}),(0,k.jsx)(S,(0,a.Z)((0,a.Z)({open:R,anchorEl:E.current},i),{},{disablePortal:!0,children:(0,k.jsx)("div",{className:"locales",children:(0,k.jsx)(m.d,{onClickAway:function(n){var e;null!==(e=E.current)&&void 0!==e&&e.contains(n.target)||I(!1)},children:(0,k.jsx)(x.Z,{children:M.map((function(e){var t=e.code,r=e.name;return(0,k.jsxs)(g.Z,{className:"locale-item",onClick:function(){return N(e=t),I(!1),void("function"===typeof n.onChange&&n.onChange(e));var e},children:[(0,k.jsx)(j.default,{className:t===C?"check-icon check-icon-visible":"check-icon",fontSize:"small"}),r]},t)}))})})})}))]}))}P.propTypes={size:p().number,showText:p().bool,popperProps:p().object,onChange:p().func,popperType:p().oneOf(["hover","click"]),icon:p().any},P.defaultProps={showText:!0,size:24,popperProps:{},onChange:function(){},popperType:"click",icon:null};var _=(0,z.zo)("div",{shouldForwardProp:function(n){return"dark"!==n}})(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(n){return(0,y.Lq)(n)}),(function(n){return(0,y.Vu)(n)}),(function(n){return(0,y.Lq)(n)})),S=(0,z.zo)(b.Z)(o||(o=(0,i.Z)(["\n z-index: ",";\n"])),(function(n){return n.theme.zIndex.tooltip+10}))},60680:function(n,e,t){var r=t(71600);e.Z=void 0;var o=r(t(48035)),i=t(37574),a=(0,o.default)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}),"Error");e.Z=a},8825:function(n,e,t){var r=t(71600);e.Z=void 0;var o=r(t(48035)),i=t(37574),a=(0,o.default)((0,i.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");e.Z=a}}]);
2
- //# sourceMappingURL=4587.5b31e02e.chunk.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[4716],{44716:function(e,n,o){o.r(n),o.d(n,{default:function(){return S}});var r=o(32723),t=o(34795),i=o(96234),a=o(35147),s=o(49476),c=o(30969),u=o(30734),f=o(94308),l=o(38361),d=o(238),p=o(1986),v=o(26022),g=o(48164),w=o(19611),h=o.n(w),m=o(86776),y=o(66550),k=o(85300),I=o(4485),b=o(38507),Z=o(37574),P=function(e){setTimeout((function(){var n=new URL(window.location.href).searchParams.get("redirect");if(n){var o=decodeURIComponent(n);o.startsWith(k.Bu)?e(o,{replace:!0}):window.location=o}else window.location=window.env.pathPrefix||"/"}),50)};function S(){var e=(0,c.useRef)(null),n=(0,I.Tt)().session,o=(0,v.PE)(),w=o.t,S=o.locale,x=(0,m.Z)().getPassportId,N=(0,u.useNavigate)(),T=(0,y.Z)(),L=(0,i.Z)(T,2),C=L[0],E=L[1],_=new URL(window.location.href).searchParams,B={passportId:x()},O=_.get("componentId");O&&(B.componentId=O),C&&(B.visitorId=C);var R=function(){var e=(0,t.Z)((0,r.Z)().mark((function e(o,t){return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,b.ZB)(t(o.sessionToken)),(0,b.zI)(t(o.refreshToken)),o.visitorId&&E(t(o.visitorId)),e.next=5,n.refresh();case 5:P(N);case 6:case"end":return e.stop()}}),e)})));return function(n,o){return e.apply(this,arguments)}}(),U=(0,a.Z)((function(){var e,n=null===(e=window)||void 0===e?void 0:e.blocklet,o={className:"connect",popup:!1,action:"login",onSuccess:R,onError:z,locale:S,messages:{title:w("login.dialog.title"),scan:w("login.dialog.scan"),confirm:w("login.dialog.confirm"),success:w("login.dialog.success")},extraParams:B,baseUrl:window.location.origin,prefix:window.location.origin+h()(k.Bu,k.nC)};if(!_.get("sessionToken")){var r=(0,g.CF)(),t=(0,g.pS)()?r.appUrl:window.location.origin,i=new URL(h()(k.Bu,"connect"),t);return i.searchParams.set("params",btoa(encodeURIComponent(JSON.stringify(o)))),i.searchParams.set("appPid",null===n||void 0===n?void 0:n.appPid),i.searchParams.set("appName",null===n||void 0===n?void 0:n.appName),i.searchParams.set("locale",S),i.searchParams.set("redirect",window.location.href),void(window.location.href=i.href)}R({sessionToken:_.get("sessionToken"),refreshToken:_.get("refreshToken"),visitorId:_.get("visitorId")},(function(e){return e}))}));(0,s.Z)((function(){n.user?P(N):U()}));var z=function(e){p.Z.error(e.message)};return n.loading||n.user?(0,Z.jsx)(d.Z,{children:(0,Z.jsx)(f.Z,{})}):(0,Z.jsx)(l.Z,{sx:{"box-sizing":"border-box",width:"100%",height:"100vh",position:"relative",display:"flex","flex-direction":"column",".connect":{background:"#fafafa"}},ref:e})}},86776:function(e,n,o){o.d(n,{Z:function(){return i}});var r=o(96234),t=o(17708);function i(){var e=(0,t.Z)("passportId",""),n=(0,r.Z)(e,3),o=n[0],i=n[1],a=n[2];return{getPassportId:function(){return setTimeout((function(){a()}),0),o||""},setPassportId:i}}},46378:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.isNavigator=n.isBrowser=n.off=n.on=n.noop=void 0;n.noop=function(){},n.on=function(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];e&&e.addEventListener&&e.addEventListener.apply(e,n)},n.off=function(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];e&&e.removeEventListener&&e.removeEventListener.apply(e,n)},n.isBrowser="undefined"!==typeof window,n.isNavigator="undefined"!==typeof navigator},17708:function(e,n,o){var r=o(30969),t=o(46378);n.Z=function(e,n,o){if(!t.isBrowser)return[n,t.noop,t.noop];if(!e)throw new Error("useLocalStorage key may not be falsy");var i=o?o.raw?function(e){return e}:o.deserializer:JSON.parse,a=r.useRef((function(e){try{var r=o?o.raw?String:o.serializer:JSON.stringify,t=localStorage.getItem(e);return null!==t?i(t):(n&&localStorage.setItem(e,r(n)),n)}catch(s){return n}})),s=r.useState((function(){return a.current(e)})),c=s[0],u=s[1];r.useLayoutEffect((function(){return u(a.current(e))}),[e]);var f=r.useCallback((function(n){try{var r="function"===typeof n?n(c):n;if("undefined"===typeof r)return;var t=void 0;t=o?o.raw?"string"===typeof r?r:JSON.stringify(r):o.serializer?o.serializer(r):JSON.stringify(r):JSON.stringify(r),localStorage.setItem(e,t),u(i(t))}catch(s){}}),[e,u]),l=r.useCallback((function(){try{localStorage.removeItem(e),u(void 0)}catch(s){}}),[e,u]);return[c,f,l]}}}]);
2
- //# sourceMappingURL=4716.1ecc2bb6.chunk.js.map
@@ -1,2 +0,0 @@
1
- "use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[4802],{92746:function(e,n,t){var r,i=t(71171),o=t(33028),a=t(59740),l=t(16380),s=t(50442),c=t(37574),d=["labelProps","className","style"];function u(e){var n=e.labelProps,t=e.className,r=e.style,i=(0,a.Z)(e,d),l=(0,o.Z)((0,o.Z)({},n),{},{labelPlacement:(null===n||void 0===n?void 0:n.labelPlacement)||"start"});return(0,c.jsx)(f,{className:t,style:r,children:(0,c.jsx)(s.Z,(0,o.Z)({labelProps:l},i))})}u.propTypes=s.Z.propTypes,u.defaultProps=s.Z.defaultProps;var f=l.Z.div(r||(r=(0,i.Z)(["\n max-width: 300px;\n > label {\n display: flex;\n justify-content: space-between;\n width: 100%;\n margin-left: 0;\n margin-right: 0;\n }\n "," {\n max-width: 100%;\n }\n"])),(function(e){return e.theme.breakpoints.down("sm")}));n.Z=u},121:function(e,n,t){t.r(n),t.d(n,{default:function(){return bt}});var r=t(71171),i=t(33028),o=t(96234),a=t(59740),l=t(68079),s=t(30969),c=t(16380),d=t(24974),u=t.n(d),f=t(95973),p=t(19611),m=t.n(p),h=t(20244),x=t(38361),Z=t(3994),g=t(79823),v=t(64689),b=t(99254),j=t(76527),k=t(85385),y=t(52838),C=t(23038),w=t(86822),L=t(26022),S=t(19865),E=t(7017),P=t(70998),A=t(84802),_=t(32723),T=t(34795),N=t(46292),O=t.n(N),R=t(15888),I=t.n(R),B=t(65667),F=t.n(B),D=t(34159),U=t(75295),z=t(29996),K=t(13134),W=t(59467),G=t(59505),H=t(1986),V=t(67019),Y=t(94308),q=t(88581),M=t(27724),J=t(94551),Q=t(2689),X=t(39130),$=t(7173),ee=t(94702),ne=t(98123),te=t(14458),re=t(28412),ie=t(76934),oe=t(37574),ae=["label","disabled","required","initialValue","onChange","style","onSubmit","triggers","options","formatterBeforeSubmit","helperText"],le={PaperProps:{style:{maxHeight:224,width:250}}},se=function(e,n,t){return{fontWeight:-1===n.indexOf(e)?t.typography.fontWeightRegular:t.typography.fontWeightMedium}};function ce(e){var n=e.label,t=e.disabled,r=e.required,l=e.initialValue,c=e.onChange,d=e.style,u=e.onSubmit,f=e.triggers,p=e.options,m=e.formatterBeforeSubmit,h=e.helperText,Z=(0,a.Z)(e,ae),g=(0,ee.Z)(),v=(0,s.useState)(!1),b=(0,o.Z)(v,2),j=b[0],k=b[1],y=(0,s.useState)(!1),C=(0,o.Z)(y,2),w=C[0],L=C[1],S=(0,s.useState)(l),E=(0,o.Z)(S,2),P=E[0],A=E[1],N=(0,s.useState)(P),O=(0,o.Z)(N,2),R=O[0],I=O[1],B=function(){var e=(0,T.Z)((0,_.Z)().mark((function e(){return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return L(!0),e.prev=1,e.next=4,u("function"===typeof m?m(R):R);case 4:!1===e.sent?I(P):(I(R),A(R)),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),I(P);case 11:return e.prev=11,L(!1),k(!1),e.finish(11);case 15:case"end":return e.stop()}}),e,null,[[1,8,11,15]])})));return function(){return e.apply(this,arguments)}}(),F=j?(0,oe.jsx)(X.Z,(0,i.Z)((0,i.Z)({value:R,onChange:function(e){var n=e.target.value;n="string"===typeof n?n.split(","):n,I(n),c(n)},fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",renderValue:function(e){return(0,oe.jsx)(x.Z,{sx:{display:"flex",flexWrap:"wrap"},children:e.filter((function(e){return p.some((function(n){return n.code===e}))})).map((function(e){return(0,oe.jsx)($.Z,{label:p.find((function(n){return n.code===e})).name,style:{marginRight:8},size:"small"},e)}))})},MenuProps:le},Z),{},{children:p.map((function(e){return(0,oe.jsx)(Q.Z,{value:e.code,style:se(e.code,R,g),children:e.name},e.code)}))})):(0,oe.jsx)(x.Z,{px:1,className:"form-item-input slot",style:{whiteSpace:"pre-wrap"},children:R.filter((function(e){return p.some((function(n){return n.code===e}))})).map((function(e){return(0,oe.jsx)($.Z,{label:p.find((function(n){return n.code===e})).name,style:{marginRight:8},size:"small"},e)}))});return(0,oe.jsx)(re.Z,{className:"form",style:d,children:(0,oe.jsxs)(x.Z,{className:"form-item",children:[(0,oe.jsxs)(x.Z,{className:"form-item-label",children:[n,r&&(0,oe.jsx)(te.Z,{})]}),(0,oe.jsxs)(x.Z,{className:"form-item-body",children:[(0,oe.jsx)(x.Z,{className:"form-item-input",children:F}),(0,oe.jsx)(x.Z,{className:"form-item-action",children:j?(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)(J.Z,{"data-cy":"schema-form-item-confirm",onClick:B,disabled:t||w,size:"large",children:w?(0,oe.jsx)(Y.Z,{size:24}):(0,oe.jsx)(M.Z,{})}),(0,oe.jsx)(J.Z,{"data-cy":"schema-form-item-cancel",onClick:function(){I(P),k(!1)},disabled:t||w,size:"large",children:(0,oe.jsx)(q.default,{})})]}):(0,oe.jsx)(ie.Z,{triggers:f,onEnterEdit:function(){return k(!0)},disabled:t})})]}),j&&h&&(0,oe.jsx)(ne.Z,{children:h})]})})}ce.propTypes={style:u().object,onSubmit:u().func,onChange:u().func,label:u().string,initialValue:u().string,required:u().bool,disabled:u().bool,triggers:u().array,options:u().array,helperText:u().string,formatterBeforeSubmit:u().func},ce.defaultProps={style:{},onSubmit:function(){},onChange:function(){},label:"",initialValue:"",required:!1,disabled:!1,triggers:[],options:[],helperText:"",formatterBeforeSubmit:function(e){return e.join(",")}};var de=t(41395),ue=t(24891),fe=t(19066),pe=t(22572),me=t(85710),he=t(8479),xe=["teamDid","size"];function Ze(e){var n=e.teamDid,t=e.size,r=void 0===t?"small":t,l=(0,a.Z)(e,xe),c=(0,L.PE)().t,d=(0,de.h6)().api,u=(0,s.useState)(!1),f=(0,o.Z)(u,2),p=f[0],m=f[1],h=(0,s.useState)(null),x=(0,o.Z)(h,2),Z=x[0],g=x[1],v=function(){var e=(0,T.Z)((0,_.Z)().mark((function e(){var t,r;return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,m(!0),e.next=4,d.clearCache({input:{teamDid:n}});case 4:r=e.sent,H.Z.success(c("blocklet.config.clearCache.success",{count:(null===(t=r.removed)||void 0===t?void 0:t.length)||0})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),H.Z.error((0,me.Z)(e.t0));case 11:return e.prev=11,m(!1),g(null),e.finish(11);case 15:case"end":return e.stop()}}),e,null,[[0,8,11,15]])})));return function(){return e.apply(this,arguments)}}(),b={title:c("blocklet.config.clearCache.title"),description:c("blocklet.config.clearCache.description"),confirm:c("common.confirm"),cancel:c("common.cancel"),onConfirm:v,onCancel:function(){m(!1),g(null)}};return(0,oe.jsxs)("div",(0,i.Z)((0,i.Z)({},l),{},{children:[(0,oe.jsxs)(z.Z,{onClick:function(){return g(b)},color:"error",variant:"outlined",size:r,children:[p?(0,oe.jsx)(Y.Z,{size:16,style:{marginRight:5}}):null,c("blocklet.config.clearCache.action")]}),Z&&(0,oe.jsx)(he.Z,{title:Z.title,description:Z.description,confirm:Z.confirm,cancel:Z.cancel,onConfirm:Z.onConfirm,onCancel:Z.onCancel})]}))}var ge,ve=t(43178),be=t(86473),je=t(77370),ke=t(45008);function ye(e){var n=e.initialValue,t=e.onChange,r=e.disabled,i=e.loading,a=(0,L.PE)().t,l=(0,je.T)().api,s=(0,ke.y0)().blocklet,c=(0,ve.Z)({newAppSk:"",isConnectOpen:!1}),d=(0,o.Z)(c,2),u=d[0],f=d[1],p=function(){var e=(0,T.Z)((0,_.Z)().mark((function e(n){return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t(n);case 3:return e.prev=3,f({newAppSk:""}),e.finish(3);case 6:case"end":return e.stop()}}),e,null,[[0,,3,6]])})));return function(n){return e.apply(this,arguments)}}(),m=function(){return f({isConnectOpen:!1})},Z=s.structVersion===h.APP_STRUCT_VERSION?[{key:"rotate-with-did-wallet",title:"Migrate with DID Wallet",handler:function(){(0,ue.An)(s.status)?H.Z.error(a("blocklet.error.isRunning")):(0,E.isInProgress)(s.status)?H.Z.error(a("blocklet.error.isInProgress")):f({isConnectOpen:!0})}}]:[];return[(0,oe.jsx)(V.Z,{disabled:r,loading:i,initialValue:n,onSubmit:function(e){return f({newAppSk:e}),!1},triggers:Z,secure:!0}),u.newAppSk&&(0,oe.jsx)(he.Z,{title:a("blocklet.config.appSkTitle"),description:(0,oe.jsxs)(x.Z,{children:[(0,oe.jsx)(x.Z,{children:a("blocklet.config.appSkChangeTip")}),(0,oe.jsx)(x.Z,{fontWeight:"bold",mt:2,children:a("blocklet.config.appDidChangeTip")}),(0,oe.jsxs)(we,{children:[(0,oe.jsx)("li",{children:a("blocklet.config.appDidChangeTipL1")}),(0,oe.jsx)("li",{children:a("blocklet.config.appDidChangeTipL2")})]})]}),confirm:a("confirm"),cancel:a("cancel"),onConfirm:function(){return p(u.newAppSk)},onCancel:function(){return f({newAppSk:""})}}),(0,oe.jsx)(be.default,{popup:!0,open:u.isConnectOpen,forceConnected:!1,saveConnect:!1,action:"rotate-key-pair",checkFn:l.get,checkTimeout:3e5,onSuccess:m,extraParams:{appDid:s.appDid},messages:{title:a("setup.keyPair.title"),scan:a("setup.keyPair.scan"),confirm:a("setup.keyPair.confirm"),success:a("setup.keyPair.success")},onClose:m})]}ye.propTypes={initialValue:u().string,onChange:u().func,disabled:u().bool,loading:u().bool},ye.defaultProps={initialValue:"default",onChange:function(){},disabled:!1,loading:!1};var Ce,we=(0,c.Z)("ul")(ge||(ge=(0,r.Z)(["\n padding-left: 16px;\n li {\n margin-top: 8px;\n list-style: disk;\n font-weight: bold;\n }\n"]))),Le=t(50496),Se=t(43207),Ee=t(33359),Pe=t(23299),Ae=t(49884),_e=t(88876),Te=t(73820),Ne=t(80670);function Oe(e){var n=e.onCancel,t=e.onSuccess,r=e.onError,i=(0,s.useContext)(je.B).api,a=(0,s.useState)(!1),l=(0,o.Z)(a,2),c=l[0],d=l[1],u=(0,L.PE)(),f=u.t,p=u.locale,m=(0,s.useState)(""),h=(0,o.Z)(m,2),Z=h[0],g=h[1],v=(0,s.useState)(!1),b=(0,o.Z)(v,2),j=b[0],k=b[1],y=(0,s.useState)(0),C=(0,o.Z)(y,2),w=C[0],S=C[1],E=(0,s.useState)(""),P=(0,o.Z)(E,2),A=P[0],_=P[1],T=(0,Ne.DJ)().endpoint,N=(0,s.useState)(!1),O=(0,o.Z)(N,2),R=O[0],I=O[1],B=function(e){g(null),d(!0);try{_(e.result),S(D.length-1)}catch(t){var n=(0,ue.Z)(t);g(n),r(t)}finally{d(!1)}},F=function(){k(!1),S(0)},D=[{body:(0,oe.jsxs)(x.Z,{children:[(0,oe.jsx)(Ee.Z,{children:f("team.transferApp.transferDialog.tips.progress")}),(0,oe.jsx)(Ee.Z,{mt:3,mb:2,children:f("team.transferApp.transferDialog.tips.newOwnerPermissions")})]}),cancel:f("common.cancel"),confirm:f("team.transferApp.transferDialog.createTransferLink"),onCancel:n,onConfirm:function(){k(!0),S(1)}},{body:function(){return(0,oe.jsx)(be.default,{action:"transfer-app-owner",open:j,locale:p,checkFn:i.get,onClose:F,onSuccess:B,checkTimeout:3e5,extraParams:{},messages:{title:f("team.transferApp.connectDialog.title"),scan:f("team.transferApp.connectDialog.scan"),confirm:f("team.transferApp.connectDialog.confirm"),success:f("team.transferApp.connectDialog.success")},popup:!0})}},{body:function(){var e=(0,ue.VP)({transferId:A.transferId,endpoint:T});return(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)(x.Z,{component:Ie,dangerouslySetInnerHTML:{__html:f("team.transferApp.transferDialog.createSuccessTip1")}}),(0,oe.jsx)(x.Z,{component:Ie,mt:2,children:(0,oe.jsx)(Ie,{children:f("team.transferApp.transferDialog.createSuccessTip3")})}),(0,oe.jsxs)(x.Z,{children:[(0,oe.jsx)(x.Z,{component:Ie,mt:2,children:(0,oe.jsx)(Ie,{children:f("team.transferApp.transferDialog.createSuccessTip2",{expireDate:(0,ue.B2)(A.expireDate,p)})})}),(0,oe.jsx)(x.Z,{my:1,children:(0,oe.jsx)(Te.Z,{children:e})})]}),(0,oe.jsx)("div",{children:(0,oe.jsx)(Ae.Z,{value:"end",control:(0,oe.jsx)(_e.Z,{checked:R,onChange:function(e){return I(e.target.checked)}}),label:f("team.transferApp.transferDialog.iKnow"),labelPlacement:"end"})})]})},confirm:f("common.confirm"),onConfirm:t}],U=D[w];return(0,oe.jsxs)(Le.ZP,{title:(0,oe.jsx)(Ie,{className:"title",children:f("team.transferApp.transferDialog.title")}),fullWidth:!0,open:!0,showCloseButton:!1,actions:(0,oe.jsxs)(oe.Fragment,{children:[U.cancel&&(0,oe.jsx)(z.Z,{onClick:U.onCancel,color:"inherit",children:U.cancel}),(0,oe.jsxs)(z.Z,{onClick:U.onConfirm,color:"error",disabled:c||w===D.length-1&&!R,variant:"contained",autoFocus:!0,children:[c&&(0,oe.jsx)(Y.Z,{size:16}),U.confirm]})]}),children:[(0,oe.jsx)(Se.Z,{component:"div",children:"function"===typeof U.body?U.body():U.body}),!!Z&&(0,oe.jsx)(Pe.Z,{type:"error",variant:"icon",children:Z})]})}Oe.propTypes={onCancel:u().func.isRequired,onSuccess:u().func.isRequired,onError:u().func},Oe.defaultProps={onError:function(){}};var Re,Ie=c.Z.div(Ce||(Ce=(0,r.Z)(["\n font-size: 16px;\n font-weight: bold;\n &.title {\n font-size: 20px;\n }\n"]))),Be=t(15300),Fe=["blocklet","onUpdate","hasPermission"],De=Object.keys(G.SUPPORTED_LANGUAGES).map((function(e){return{code:e,name:G.SUPPORTED_LANGUAGES[e].nativeName}})),Ue=(0,s.lazy)((function(){return Promise.all([t.e(4917),t.e(5547)]).then(t.bind(t,25547)).then((function(e){return{default:e.Uploader}}))})),ze="/blocklet/logo/upload";function Ke(e){var n,t=e.blocklet,r=e.onUpdate,l=e.hasPermission,c=(0,a.Z)(e,Fe),d=(0,de.h6)(),u=d.api,f=d.inService,p=d.prefix,Z=d.getSessionInHeader,g=d.ws.useSubscription,v=(0,s.useContext)(L.RD).t,b=(0,s.useState)(""),j=(0,o.Z)(b,2),k=j[0],y=j[1],C=(0,s.useState)(""),w=(0,o.Z)(C,2),S=w[0],P=w[1],A=(0,s.useState)(!1),N=(0,o.Z)(A,2),R=N[0],B=N[1],Y=(0,E.getWhoCanAccess)(t),q=null===t||void 0===t||null===(n=t.settings)||void 0===n?void 0:n.publicToStore,M=S||!l,J=(0,s.useRef)(null),Q=(0,Be.Z)({blocklet:t}),X=Q.logoUrl,$=Q.rectLogoUrl,ee=Q.faviconUrl,ne=(0,s.useState)(),te=(0,o.Z)(ne,2),re=te[0],ie=te[1],ae=m()(p,ze,"square",t.meta.did),le=m()(p,ze,"rect",t.meta.did),se=m()(p,ze,"favicon",t.meta.did),me=function(e){l&&(ie({uploader:e,disableMediaKitPrefix:!0}),J.current.open())},he=t.meta.did,xe=t.site,ge=O()(t.meta,"capabilities.clusterMode",!1);if(g(h.EVENTS.NODE_RUNTIME_INFO,(function(e){ge&&y(O()(e,"cpu.physicalCores",""))})),(0,ue.wS)(t.status))return null;var ve=t.environments.find((function(e){return e.key===G.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_DELETABLE})),be=!ve||"yes"===ve.value,je=t.environments.find((function(e){return e.key===G.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LANGUAGES})),ke=t.environments.find((function(e){return e.key===G.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL})),Ce=t.environments.find((function(e){return e.key===G.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_OWNER})),we=t.environments.find((function(e){return e.key===G.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_YEAR})),Le=[{key:G.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_NAME,description:v("blocklet.config.name"),value:t.environments.find((function(e){return"BLOCKLET_APP_NAME"===e.key})).value},{key:G.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_DESCRIPTION,description:v("blocklet.config.description"),value:t.environments.find((function(e){return"BLOCKLET_APP_DESCRIPTION"===e.key})).value},{key:G.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL,description:v("blocklet.config.appUrl"),value:ke?ke.value:""},{key:G.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_OWNER,description:v("blocklet.config.copyrightOwner"),value:Ce?Ce.value:""},{key:G.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_YEAR,description:v("blocklet.config.copyrightYear"),value:we?we.value:""}];if(ge){var Se=t.configs.find((function(e){return e.key===G.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE})),Ee=Se?Se.value:k;Le.push({key:G.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE,description:v("blocklet.config.clusterSize"),value:Ee,cpuCores:k})}var Pe=function(){var e=(0,T.Z)((0,_.Z)().mark((function e(n){var i,o,a;return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!S){e.next=2;break}return e.abrupt("return");case 2:return P(!0),e.prev=3,i=n.target.checked,e.next=7,u.configPublicToStore({input:{did:t.meta.did,publicToStore:i}});case 7:o=e.sent,a=o.blocklet,r(a),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(3),H.Z.error(e.t0.message);case 15:return e.prev=15,P(!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[3,12,15,18]])})));return function(n){return e.apply(this,arguments)}}(),Ae=function(){var e=(0,T.Z)((0,_.Z)().mark((function e(n,i){var o,a,l,s;return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n!==G.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE){e.next=5;break}if(!(o=(0,ue.I)({value:i,cpuCores:k}))){e.next=5;break}return H.Z.error(o),e.abrupt("return");case 5:return a=[{key:n,value:i}],e.prev=6,P(!0),e.next=10,u.configBlocklet({input:{did:t.meta.did,configs:a}});case 10:l=e.sent,s=l.blocklet,r(s),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(6),H.Z.error(e.t0.message);case 18:return e.prev=18,P(!1),e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[6,15,18,21]])})));return function(n,t){return e.apply(this,arguments)}}(),_e=function(){var e=(0,T.Z)((0,_.Z)().mark((function e(n){var i,o,a;return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!S){e.next=2;break}return e.abrupt("return");case 2:return P(!0),e.prev=3,i=n.target.checked,e.next=7,u.configBlocklet({input:{did:t.meta.did,configs:[{key:G.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_DELETABLE,value:i?"no":"yes"}]}});case 7:o=e.sent,a=o.blocklet,r(a),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(3),H.Z.error(e.t0.message);case 15:return e.prev=15,P(!1),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[3,12,15,18]])})));return function(n){return e.apply(this,arguments)}}(),Te=function(){var e=(0,T.Z)((0,_.Z)().mark((function e(n){var r,i,o;return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=xe.corsAllowedOrigins||[],i=n.split(",").map((function(e){return e.trim()})).filter(Boolean),!I()(r,i)){e.next=4;break}return e.abrupt("return",!1);case 4:return e.prev=4,P(!0),o=i.length?i:["__none__"],e.next=9,u.updateRoutingSite({input:{id:xe.id,corsAllowedOrigins:o,teamDid:t.meta.did}});case 9:P(!1),e.next=17;break;case 12:return e.prev=12,e.t0=e.catch(4),H.Z.error(e.t0.message),P(!1),e.abrupt("return",!1);case 17:return e.abrupt("return",!0);case 18:case"end":return e.stop()}}),e,null,[[4,12]])})));return function(n){return e.apply(this,arguments)}}(),Ne=function(){var e=(0,T.Z)((0,_.Z)().mark((function e(n){var i,o;return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!S){e.next=2;break}return e.abrupt("return");case 2:return P(!0),e.prev=3,e.next=6,u.configBlocklet({input:{did:t.meta.did,configs:[{key:G.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SK,value:n}]}});case 6:i=e.sent,o=i.blocklet,r(o),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),H.Z.error(e.t0.message);case 14:return e.prev=14,P(!1),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[3,11,14,17]])})));return function(n){return e.apply(this,arguments)}}(),Re={"&::after":{content:'"'.concat(v("common.switch"),'"')}};return(0,oe.jsxs)(Ve,(0,i.Z)((0,i.Z)({},c),{},{children:[Le.map((function(e){return(0,oe.jsxs)(x.Z,{className:"config-form",mt:2,children:[(0,oe.jsx)(x.Z,{className:"config-label",fontSize:14,mb:0,children:e.description}),(0,oe.jsx)(V.Z,{style:{marginTop:0},disabled:S||M,loading:S,initialValue:e.value,onSubmit:function(n){return Ae(e.key,n)}})]})})),(0,oe.jsx)(x.Z,{className:"config-form",component:U.Z,my:3}),(0,oe.jsx)(x.Z,{className:"config-label",fontSize:14,mb:1,sx:{flexGrow:0,width:"auto"},children:v("blocklet.config.logoSquare")}),(0,oe.jsx)(x.Z,{className:F()("uploader-wrapper",l&&"enabled"),sx:Re,onClick:function(){return me(ae)},children:(0,oe.jsx)(W.Z,{sx:{height:80,width:80},variant:"square",alt:"Blocklet Logo",src:X})}),(0,oe.jsx)(x.Z,{className:"config-label",fontSize:14,mt:4,children:v("blocklet.config.logoRect")}),(0,oe.jsx)(x.Z,{mb:1.5,className:"config-desc",children:v("blocklet.config.logoRectDesc")}),(0,oe.jsx)(x.Z,{className:F()("uploader-wrapper",l&&"enabled"),sx:Re,onClick:function(){return me(le)},children:(0,oe.jsx)("img",{alt:"Blocklet Rect Logo",src:$,style:{height:"80px"}})}),(0,oe.jsx)(x.Z,{className:"config-label",fontSize:14,mt:4,children:v("blocklet.config.logoFavicon")}),(0,oe.jsx)(x.Z,{mb:1.5,className:"config-desc",children:v("blocklet.config.logoFaviconDesc")}),(0,oe.jsx)(x.Z,{sx:{display:"inline-flex",cursor:l?"pointer":"default"},onClick:function(){return me(se)},children:(0,oe.jsx)(W.Z,{variant:"square",sx:{width:20,height:20},alt:"Blocklet Favicon Logo",src:ee})}),(0,oe.jsx)(Ue,{id:"\u200buploader-logo",ref:J,popup:!0,onUploadFinish:function(){J.current.close()},plugins:[],apiPathProps:re,coreProps:{restrictions:{allowedFileTypes:["image/*",".jpg",".jpeg",".png",".gif",".svg"],maxFileSize:10485760,maxNumberOfFiles:1}},tusProps:{headers:Z}},"uploader-logo"),(0,oe.jsx)(x.Z,{className:"config-form",children:"all"===Y&&"registry"===t.source&&(0,oe.jsxs)(x.Z,{className:"config-item",children:[(0,oe.jsxs)(x.Z,{className:"config-label",children:[v("blocklet.config.access.publicToStore"),(0,oe.jsx)(x.Z,{className:"config-desc",children:v("blocklet.config.access.publicInstanceTip")})]}),(0,oe.jsx)(D.Z,{disabled:M,checked:q,defaultChecked:!0,onChange:Pe})]})}),(0,oe.jsx)(x.Z,{className:"config-form",component:U.Z,my:3}),(0,oe.jsxs)(x.Z,{className:"config-form",mt:2,children:[(0,oe.jsx)(x.Z,{className:"config-label",fontSize:14,mb:0,children:v("blocklet.config.languages")}),(0,oe.jsx)(ce,{style:{marginTop:0},disabled:S||M,loading:S,options:De,initialValue:je?je.value.split(","):["en","zh"],onSubmit:function(e){return Ae("BLOCKLET_APP_LANGUAGES",e)},helperText:v("blocklet.config.selectLanguagesTip")})]}),(0,oe.jsx)(x.Z,{className:"config-form",component:U.Z,my:3}),(0,oe.jsx)(x.Z,{className:"config-form",mt:2,children:(0,oe.jsx)(x.Z,{className:"config-label",mb:0,children:v("common.security")})}),(0,oe.jsxs)(x.Z,{className:"config-form",mt:2,children:[(0,oe.jsx)(x.Z,{className:"config-label",fontSize:14,mb:0,children:v("router.domainSecurity.cors.title")}),(0,oe.jsx)(x.Z,{mb:1.5,className:"config-desc",children:v("router.domainSecurity.cors.description",{name:"the blocklet"})}),(0,oe.jsx)(V.Z,{style:{marginTop:0},disabled:S||M,loading:S,initialValue:(xe.corsAllowedOrigins||[]).join(", "),onSubmit:Te})]}),(0,oe.jsx)(x.Z,{className:"config-form",component:U.Z,my:3}),(0,oe.jsx)(x.Z,{mb:2,className:"config-label",fontSize:20,children:v("blocklet.config.dangerZone")}),(0,oe.jsxs)(x.Z,{px:2,py:1,sx:{border:"1px solid red",borderRadius:2},children:[(0,oe.jsx)(x.Z,{className:"config-form",mt:2,children:!f&&(0,oe.jsxs)(x.Z,{className:"config-item",children:[(0,oe.jsxs)(x.Z,{className:"config-label",children:[v("blocklet.config.deletable.name"),(0,oe.jsx)(x.Z,{className:"config-desc",children:v(be?"blocklet.config.deletable.disable":"blocklet.config.deletable.enable")})]}),(0,oe.jsx)(D.Z,{disabled:M,checked:!be,defaultChecked:!0,onChange:_e})]})}),(0,oe.jsxs)(x.Z,{className:"config-form",mt:2,children:[(0,oe.jsx)(x.Z,{className:"config-label",fontSize:14,mb:0,children:v("blocklet.config.sk")}),(0,oe.jsx)(ye,{disabled:S||M,loading:S,initialValue:t.environments.find((function(e){return"BLOCKLET_APP_SK"===e.key})).value,onChange:Ne})]}),f&&(0,oe.jsx)(pe.Z,{role:"owner",children:function(e){return(e||fe.C)&&(0,oe.jsxs)(x.Z,{className:"config-form",mt:2,children:[(0,oe.jsxs)(x.Z,{className:"config-item",children:[(0,oe.jsx)(x.Z,{className:"config-label",mb:0,children:v("team.transferApp.name")}),(0,oe.jsxs)(z.Z,{style:{flexShrink:0},variant:"contained",edge:"end",color:"error",size:"small","data-cy":"transfer-app",onClick:function(){return B(!0)},children:[(0,oe.jsx)(K.Z,{style:{fontSize:"1.3em",marginRight:4}}),v("team.transferApp.name")]})]}),R&&(0,oe.jsx)(Oe,{onCancel:function(){return B(!1)},onSuccess:function(){return B(!1)}})]})}}),(0,oe.jsx)(x.Z,{className:"config-form",mt:2,children:(0,oe.jsxs)(x.Z,{className:"config-item",children:[(0,oe.jsxs)(x.Z,{className:"config-label",children:[v("blocklet.config.clearCache.name"),(0,oe.jsx)(x.Z,{className:"config-desc",children:v("blocklet.config.clearCache.purpose")})]}),(0,oe.jsx)(Ze,{teamDid:he})]})})]})]}))}var We=(0,pe.V)(Ke,"mutate_blocklets"),Ge=(0,pe.V)(Ke,"",ue.Wf);function He(e){return(0,de.h6)().inService?(0,oe.jsx)(Ge,(0,i.Z)({},e)):(0,oe.jsx)(We,(0,i.Z)({},e))}Ke.propTypes={blocklet:u().object.isRequired,onUpdate:u().func,hasPermission:u().bool},Ke.defaultProps={onUpdate:function(){},hasPermission:!1};var Ve=c.Z.div(Re||(Re=(0,r.Z)(["\n padding-top: 24px;\n .config-form {\n flex-grow: 1;\n overflow-y: auto;\n "," {\n width: 100%;\n flex-shrink: 0;\n padding: 0 24px;\n transform: translate(0, 0);\n }\n }\n\n .config-item {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 16px 0;\n }\n\n .config-label {\n font-weight: bold;\n }\n\n .config-desc {\n font-weight: normal;\n font-size: 12px;\n color: #666;\n }\n\n .form-item {\n margin-top: 0;\n }\n\n .uploader-wrapper {\n display: inline-flex;\n position: relative;\n font-size: 0px;\n &.enabled {\n cursor: pointer;\n }\n &::after {\n display: none;\n }\n &.enabled::after {\n display: block;\n opacity: 0;\n position: absolute;\n bottom: 0;\n background: rgba(0, 0, 0, 0.2);\n left: 0;\n right: 0;\n height: 2.2em;\n color: white;\n text-align: center;\n font-size: 12px;\n line-height: 2em;\n transition: opacity 0.3s ease;\n }\n &:hover::after {\n opacity: 1;\n }\n }\n"])),(function(e){return e.theme.breakpoints.down("md")})),Ye=t(78789),qe=t(46121),Me=t(87535),Je=t(87006),Qe=t(72097),Xe=t(49735),$e=t.n(Xe),en=t(35147),nn=t(14764),tn=t(52553),rn=t.n(tn),on=t(27021),an=t.n(on),ln=t(44632),sn=t.n(ln),cn={enabled:!1,secure:!1,from:"",host:"",port:"",user:"",password:""};var dn=function(){var e,n,t,r=(0,de.h6)().api,o=(0,ke.y0)().blocklet,a=(0,L.PE)().t,l=null===o||void 0===o||null===(e=o.meta)||void 0===e?void 0:e.did,s=Object.assign((0,i.Z)({},cn),(null===o||void 0===o||null===(n=o.settings)||void 0===n||null===(t=n.notification)||void 0===t?void 0:t.email)||{}),c=(0,nn.cI)({defaultValues:$e()(s,Object.keys(cn))}),d=c.handleSubmit,u=c.control,f=c.formState,p=c.watch,m=c.reset,h=p("enabled"),Z=(0,en.Z)(function(){var e=(0,T.Z)((0,_.Z)().mark((function e(n){var t,o,s,c,d;return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.configNotification({input:{did:l,notification:JSON.stringify({email:n})}});case 3:s=e.sent,c=s.blocklet,d=Object.assign((0,i.Z)({},cn),(null===c||void 0===c||null===(t=c.settings)||void 0===t||null===(o=t.notification)||void 0===o?void 0:o.email)||{}),m(d),H.Z.success(a("oauth.saveSuccess")),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),H.Z.error(e.t0.message||a("oauth.saveFailed"));case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(n){return e.apply(this,arguments)}}()),g=(0,en.Z)((function(e){var n=null===e||void 0===e?void 0:e.trim();return n?!!rn()(n)||a("notification.email.fromInvalid"):a("notification.email.fromRequired")})),v=(0,en.Z)((function(e){var n=null===e||void 0===e?void 0:e.trim();return n?!!an()(n,{require_host:!1,protocols:[]})||a("notification.email.hostInvalid"):a("notification.email.hostRequired")})),b=(0,en.Z)((function(e){return e?!!sn()(e)||a("notification.email.portInvalid"):a("notification.email.portRequired")})),j=(0,en.Z)((function(e){return!(null===e||void 0===e||!e.trim())||a("notification.email.userRequired")})),k=(0,en.Z)((function(e){return!(null===e||void 0===e||!e.trim())||a("notification.email.passwordRequired")})),y=(0,en.Z)((function(){return!0}));return(0,oe.jsx)(x.Z,{children:(0,oe.jsxs)("form",{onSubmit:d(Z),disabled:!0,children:[(0,oe.jsx)(nn.Qr,{name:"enabled",control:u,render:function(e){var n=e.field;return(0,oe.jsx)(Ae.Z,{control:(0,oe.jsx)(D.Z,(0,i.Z)({checked:n.value},n)),label:a("notification.email.enable"),sx:{marginBottom:"8px"}})}}),(0,oe.jsx)(nn.Qr,{name:"from",control:u,rules:{validate:h?g:y},render:function(e){var n,t=e.field;return(0,oe.jsx)(Me.Z,{fullWidth:!0,children:(0,oe.jsx)(Je.Z,(0,i.Z)((0,i.Z)({},t),{},{label:a("notification.email.from"),error:!!f.errors[t.name],helperText:(null===(n=f.errors[t.name])||void 0===n?void 0:n.message)||"\u3000",disabled:!h}))})}}),(0,oe.jsx)(nn.Qr,{name:"host",control:u,rules:{validate:h?v:y},render:function(e){var n,t=e.field;return(0,oe.jsx)(Me.Z,{fullWidth:!0,children:(0,oe.jsx)(Je.Z,(0,i.Z)((0,i.Z)({},t),{},{error:!!f.errors[t.name],label:a("notification.email.host"),helperText:(null===(n=f.errors[t.name])||void 0===n?void 0:n.message)||"\u3000",disabled:!h}))})}}),(0,oe.jsx)(nn.Qr,{name:"port",control:u,rules:{validate:h?b:y},render:function(e){var n,t=e.field;return(0,oe.jsx)(Me.Z,{fullWidth:!0,children:(0,oe.jsx)(Je.Z,(0,i.Z)((0,i.Z)({},t),{},{type:"number",error:!!f.errors[t.name],label:a("notification.email.port"),helperText:(null===(n=f.errors[t.name])||void 0===n?void 0:n.message)||"\u3000",disabled:!h}))})}}),(0,oe.jsx)(nn.Qr,{name:"user",control:u,rules:{validate:h?j:y},render:function(e){var n,t=e.field;return(0,oe.jsx)(Me.Z,{fullWidth:!0,children:(0,oe.jsx)(Je.Z,(0,i.Z)((0,i.Z)({},t),{},{error:!!f.errors[t.name],label:a("notification.email.user"),helperText:(null===(n=f.errors[t.name])||void 0===n?void 0:n.message)||"\u3000",disabled:!h}))})}}),(0,oe.jsx)(nn.Qr,{name:"password",control:u,rules:{validate:h?k:y},render:function(e){var n,t=e.field;return(0,oe.jsx)(Me.Z,{fullWidth:!0,children:(0,oe.jsx)(Je.Z,(0,i.Z)((0,i.Z)({},t),{},{type:"password",error:!!f.errors[t.name],label:a("notification.email.password"),helperText:(null===(n=f.errors[t.name])||void 0===n?void 0:n.message)||"\u3000",disabled:!h}))})}}),(0,oe.jsx)(nn.Qr,{name:"secure",control:u,rules:{validate:y},render:function(e){var n=e.field;return(0,oe.jsx)(Me.Z,{fullWidth:!0,children:(0,oe.jsx)(Ae.Z,{control:(0,oe.jsx)(D.Z,(0,i.Z)((0,i.Z)({checked:n.value},n),{},{disabled:!h})),label:a("notification.email.secure"),style:{marginBottom:16}})})}}),(0,oe.jsx)(Qe.Z,{type:"submit",variant:"contained",onSubmit:d(Z),disabled:!f.isDirty,children:a("oauth.save")})]})})},un=[{label:(0,oe.jsx)(x.Z,{textAlign:"center",width:"100%",children:"Email"}),value:"email"},{label:(0,oe.jsx)(x.Z,{textAlign:"center",width:"100%",children:"More"}),value:"more"}];var fn,pn,mn=function(){var e=(0,s.useState)(un[0].value),n=(0,o.Z)(e,2),t=n[0],r=n[1],i=(0,s.useContext)(L.RD).t,a=(0,qe.Z)((function(){return{email:(0,oe.jsx)(dn,{}),more:(0,oe.jsx)(x.Z,{children:(0,oe.jsx)(Ye.Z,{children:i("notification.comingSoon")})})}}),[i]);return(0,oe.jsxs)(x.Z,{children:[(0,oe.jsx)(S.Z,{tabs:un,current:t,onChange:r}),(0,oe.jsx)(x.Z,{marginTop:"10px",children:a[t]})]})},hn=t(6779),xn=t(6698),Zn=t(11909),gn=t(1484),vn=t(2569),bn=t(88356),jn=t(98127),kn=t(86008),yn=t(70115),Cn="roles",wn=[].concat((0,l.Z)(yn.Z),[{value:Cn,icon:jn.Z,title:{zh:"\u6307\u5b9a\u901a\u884c\u8bc1\u53ef\u8bbf\u95ee",en:"Accessible to selected passports"},description:{zh:"\u53ea\u6709\u6307\u5b9a\u7684\u901a\u884c\u8bc1\u53ef\u4ee5\u8bbf\u95ee",en:"Only specified passports can access"}}]),Ln=function(e,n){if(e&&e.startsWith(h.WHO_CAN_ACCESS_PREFIX_ROLES)){var t=(0,E.getRolesFromAuthConfig)({whoCanAccess:e}),r=n.filter((function(e){return t.includes(e.name)}));return{access:Cn,roles:r}}return{access:e,roles:[]}},Sn=function(e,n){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).roles,r=void 0===t?[]:t,i=(e.configs||[]).find((function(e){return e.key===G.BLOCKLET_CONFIGURABLE_KEY.COMPONENT_ACCESS_WHO}));if(i)return Ln(i.value,r);if(n&&O()(n,"settings.whoCanAccess")&&O()(n,"settings.whoCanAccess")!==h.WHO_CAN_ACCESS.ALL)return Ln(O()(n,"settings.whoCanAccess"),r);var o=(0,E.findServiceFromMeta)(e.meta,h.NODE_SERVICES.AUTH);return O()(o,"config.whoCanAccess")?Ln(o.config.whoCanAccess,r):{access:h.WHO_CAN_ACCESS.ALL,roles:[]}};function En(e){var n=e.blocklet,t=e.ancestors,r=e.children,i=(0,ee.Z)(),a=(0,s.useState)(""),c=(0,o.Z)(a,2),d=c[0],u=c[1],f=(0,L.PE)(),p=f.t,m=f.locale,Z=(0,de.h6)().api,g=(0,Ne.DJ)().roles,v=(0,s.useState)(""),b=(0,o.Z)(v,2),j=b[0],k=b[1],y=t[0]||n,C=Sn(n,y,{roles:g}),w=C.access,S=C.roles,P=(0,s.useState)(w),A=(0,o.Z)(P,2),N=A[0],O=A[1],R=(0,s.useState)(S),I=(0,o.Z)(R,2),B=I[0],F=I[1],D=[].concat((0,l.Z)(t.map((function(e){return e.meta.did}))),[n.meta.did]),U={marginRight:4,fontSize:18,verticalAlign:"text-bottom",color:i.palette.text.secondary},K=t.concat(n).map((function(e){return(0,E.getDisplayName)(e,!0)})).join(" / ");if((0,ue.wS)(n.status))return null;if("unknown"===n.status&&(0,ue.wS)(n.status))return null;var W=function(){u(!1)},G=function(e){e.stopPropagation(),u(!0)},V=function(){var e=(0,T.Z)((0,_.Z)().mark((function e(){var n;return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!j){e.next=2;break}return e.abrupt("return");case 2:return k(!0),e.prev=3,(n=N)===Cn&&(n="".concat(h.WHO_CAN_ACCESS_PREFIX_ROLES).concat(B.map((function(e){return e.name})).join(","))),e.next=8,Z.updateWhoCanAccess({input:{did:D,whoCanAccess:n}});case 8:H.Z.success(p("blocklet.config.access.updatedTip")),W(),k(!1),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(3),k(!1),H.Z.error((0,ue.Z)(e.t0));case 17:case"end":return e.stop()}}),e,null,[[3,13]])})));return function(){return e.apply(this,arguments)}}(),q=j||N===Cn&&!B.length;return["function"===typeof r?r({open:G}):(0,oe.jsx)(J.Z,{onClick:G,"data-cy":"action-config-component",children:(0,oe.jsx)(bn.default,{})}),d&&(0,oe.jsxs)(An,{open:!0,fullWidth:!0,title:K,onClose:W,PaperProps:{style:{minHeight:"auto"}},actions:(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)(z.Z,{onClick:W,color:"inherit","data-cy":"config-access-cancel",children:p("common.cancel")}),(0,oe.jsxs)(z.Z,{onClick:V,color:"primary",disabled:q,variant:"contained",autoFocus:!0,"data-cy":"config-access-confirm",children:[j&&(0,oe.jsx)(Y.Z,{size:16}),p("common.confirm")]})]}),children:[(0,oe.jsx)(x.Z,{mt:4,mb:3,children:(0,oe.jsx)(Je.Z,{label:p("blocklet.config.access.description"),select:!0,fullWidth:!0,value:N,onChange:function(e){var n=e.target.value;O(n)},"data-cy":"config-access-select",SelectProps:{renderValue:function(e){var n=wn.find((function(n){return n.value===e}));return n?(0,oe.jsxs)(x.Z,{children:[(0,oe.jsx)(n.icon,{style:U}),n.title[m]]}):null}},children:wn.map((function(e){return(0,oe.jsxs)(_n,{value:e.value,sx:{display:"block"},"data-cy":"config-access-opt-".concat(e.value),children:[(0,oe.jsxs)(x.Z,{display:"flex",alignItems:"center",children:[(0,oe.jsx)(e.icon,{style:U}),(0,oe.jsx)(x.Z,{children:e.title[m]})]}),(0,oe.jsx)(x.Z,{children:(0,oe.jsx)(x.Z,{className:"tip",children:e.description[m]})})]})}))})}),N===Cn&&(0,oe.jsx)(x.Z,{mt:4,mb:3,children:(0,oe.jsx)(Je.Z,{label:p("blocklet.config.access.description"),select:!0,fullWidth:!0,value:B.map((function(e){return e.name})),onChange:function(e){F(g.filter((function(n){return(e.target.value||[]).includes(n.name)})))},SelectProps:{multiple:!0,renderValue:function(e){return(0,oe.jsx)(x.Z,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:e.map((function(e){var n=g.find((function(n){return n.name===e}));return(0,oe.jsx)($.Z,{label:n.title},n.text)}))})}},children:g.map((function(e){var n=e.name,t=e.title;return(0,oe.jsxs)(Q.Z,{value:n,children:[(0,oe.jsx)(_e.Z,{checked:B.some((function(e){return e.name===n}))}),(0,oe.jsx)(kn.Z,{primary:t})]},n)}))})})]})]}En.propTypes={blocklet:u().object.isRequired,ancestors:u().array,children:u().any},En.defaultProps={ancestors:[],children:null};var Pn,An=(0,c.Z)(Le.ZP)(fn||(fn=(0,r.Z)(["\n .MuiDialogContent-root {\n padding-top: 0;\n margin-top: -32px;\n }\n .MuiToolbar-root {\n padding-right: 12px;\n }\n .ux-dialog_right {\n padding-right: 20px;\n }\n"]))),_n=(0,c.Z)(Q.Z)(pn||(pn=(0,r.Z)(["\n .tip {\n font-size: 12px;\n color: ",";\n }\n"])),(function(e){return e.theme.palette.text.secondary}));function Tn(e){var n,t,r=e.blocklet,i=e.ancestors,a=e.depth,c=(0,ee.Z)(),d=(0,L.PE)(),u=d.t,f=d.locale,p=(0,Ne.DJ)().roles,m=(0,s.useState)(!0),h=(0,o.Z)(m,2),Z=h[0],g=h[1],v=(0,ke.y0)().recommendedDomain,b=i[0]||r,j="/".concat(i.map((function(e){return e.mountPoint||"/"})).join("/"),"/").concat(r.mountPoint||"/").replace(/\/+/g,"/"),k=(0,ue.vH)({blocklet:b,domain:{value:v},mountPoint:j,params:(0,ue.f0)(b,f)}),w={fill:c.palette.text.secondary},S=a>0&&r.children.length>0,A=(0,oe.jsx)(J.Z,{size:"small",children:Z?(0,oe.jsx)(C.Z,{fontSize:"inherit"}):(0,oe.jsx)(y.default,{fontSize:"inherit"})}),_=Sn(r,b,{roles:p}),T=_.access,N=_.roles;if("roles"!==T)t=yn.Z.find((function(e){return e.value===T}))||yn.Z[2];else{var O=N.map((function(e){return e.title})).join("/");t={title:{zh:"\u53ea\u6709 ".concat(O," \u53ef\u4ee5\u8bbf\u95ee"),en:"Only ".concat(O," can access")}}}return[(a>0||"gateway"!==r.meta.group)&&(0,oe.jsxs)(x.Z,{display:"flex",py:2,className:"component-item",justifyContent:"space-between",alignItems:"center",children:[(0,oe.jsxs)(x.Z,{pl:Math.max(2*(a-1),0),width:{xs:300,md:400},display:"flex",alignItems:"center",style:{cursor:S?"pointer":"cursor"},onClick:function(){return S&&g(!Z)},children:[S?A:(0,oe.jsx)(x.Z,{width:28}),(0,oe.jsx)(P.Z,{blocklet:r,ancestors:i}),(0,oe.jsxs)(x.Z,{ml:"16px",children:[(0,oe.jsx)(x.Z,{style:{color:"#222",fontSize:18},children:(0,E.getDisplayName)(r,!0)}),(0,oe.jsx)(x.Z,{display:"flex",alignItems:"center",children:(0,oe.jsx)(x.Z,{color:"text.secondary",children:t.title[f]})})]})]},r),(0,oe.jsxs)(x.Z,{children:[(0,oe.jsx)(hn.Z,{title:u("common.visit"),children:(0,oe.jsx)("a",{target:"_blank",href:k,rel:"noopener noreferrer",title:k,children:(0,oe.jsx)(J.Z,{children:(0,oe.jsx)(Zn.Z,{})})})}),(0,oe.jsx)(En,{blocklet:r,ancestors:i,children:function(e){var n=e.open;return(0,oe.jsx)(hn.Z,{title:u("common.edit"),children:(0,oe.jsx)(J.Z,{onClick:n,"data-cy":"btn-edit-".concat(r.meta.did),children:(0,oe.jsx)(gn.Z,{style:w})})})}})]},"actions")]},"group-not-gateway-box"),(0,oe.jsx)(vn.Z,{depth:a}),null!==(n=r.children)&&void 0!==n&&n.length?(0,oe.jsx)(xn.Z,{in:Z,children:r.children.map((function(e){return(0,oe.jsx)(Tn,{blocklet:e,ancestors:[].concat((0,l.Z)(i),[r]),depth:a+1},"".concat(a+1,"-").concat(e.meta.did))}))},"blocklet-collapse"):null]}function Nn(){var e=(0,L.PE)().t,n=(0,ke.y0)().blocklet,t=(0,l.Z)(n.children)||[];return"gateway"!==n.meta.group&&t.unshift(n),(0,oe.jsx)(On,{component:"div",children:t&&t.length?[(0,oe.jsx)(x.Z,{mt:2,ml:{xs:"-12px",md:"-24px"},style:{maxWidth:1080},children:(0,oe.jsx)(Tn,{blocklet:n},"0-".concat(n.meta.did))},"top-blocklet-".concat(n.meta.did))]:(0,oe.jsx)(x.Z,{mt:8,children:(0,oe.jsx)(Ye.Z,{children:e("blocklet.component.noComponent")})})})}Tn.propTypes={blocklet:u().object.isRequired,ancestors:u().array,depth:u().number},Tn.defaultProps={ancestors:[],depth:0},Nn.propTypes={};var On=(0,c.Z)(x.Z)(Pn||(Pn=(0,r.Z)(["\n .title {\n font-size: 1.2rem;\n font-weight: bold;\n margin-top: ",";\n margin-bottom: ",";\n &.first {\n margin-top: 0;\n }\n }\n"])),(function(e){return e.theme.spacing(5)}),(function(e){return e.theme.spacing(3)})),Rn=t(92746);var In=function(){var e,n,t,r=(0,de.h6)().api,o=(0,ke.y0)().blocklet,a=(0,L.PE)().t,l=null===o||void 0===o||null===(e=o.meta)||void 0===e?void 0:e.did,s=Object.assign({enabled:!1,domain:"",clientId:""},(null===o||void 0===o||null===(n=o.settings)||void 0===n||null===(t=n.oauth)||void 0===t?void 0:t.auth0)||{}),c=(0,nn.cI)({defaultValues:$e()(s,["domain","clientId","enabled"])}),d=c.handleSubmit,u=c.control,f=c.formState,p=c.watch,m=c.reset,h=p("enabled"),Z=(0,en.Z)(function(){var e=(0,T.Z)((0,_.Z)().mark((function e(n){var t,i,o,s,c;return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.configOAuth({input:{did:l,oauth:JSON.stringify({auth0:n})}});case 3:o=e.sent,s=o.blocklet,c=Object.assign({enabled:!1,domain:"",clientId:""},(null===s||void 0===s||null===(t=s.settings)||void 0===t||null===(i=t.oauth)||void 0===i?void 0:i.auth0)||{}),m(c),H.Z.success(a("oauth.saveSuccess")),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),H.Z.error(e.t0.message||a("oauth.saveFailed"));case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(n){return e.apply(this,arguments)}}()),g=(0,en.Z)((function(e){return!(null===e||void 0===e||!e.trim())||a("oauth.auth0.domainDescribe")})),v=(0,en.Z)((function(e){return!(null===e||void 0===e||!e.trim())||a("oauth.auth0.clientIdDescribe")})),b=(0,en.Z)((function(){return!0}));return(0,oe.jsx)(x.Z,{children:(0,oe.jsxs)("form",{onSubmit:d(Z),disabled:!0,children:[(0,oe.jsx)(nn.Qr,{name:"enabled",control:u,render:function(e){var n=e.field;return(0,oe.jsx)(Ae.Z,{control:(0,oe.jsx)(Rn.Z,(0,i.Z)({checked:n.value,style:{marginRight:"6px"}},n)),label:a("oauth.auth0.enable"),sx:{marginBottom:2,ml:1}})}}),(0,oe.jsx)(nn.Qr,{name:"domain",control:u,rules:{validate:h?g:b},render:function(e){var n,t=e.field;return(0,oe.jsx)(Me.Z,{fullWidth:!0,children:(0,oe.jsx)(Je.Z,(0,i.Z)((0,i.Z)({},t),{},{label:a("oauth.auth0.domain"),error:!!f.errors[t.name],helperText:(null===(n=f.errors[t.name])||void 0===n?void 0:n.message)||"\u3000",disabled:!h}))})}}),(0,oe.jsx)(nn.Qr,{name:"clientId",control:u,rules:{validate:h?v:b},render:function(e){var n,t=e.field;return(0,oe.jsx)(Me.Z,{fullWidth:!0,children:(0,oe.jsx)(Je.Z,(0,i.Z)((0,i.Z)({},t),{},{error:!!f.errors[t.name],label:a("oauth.auth0.clientId"),helperText:(null===(n=f.errors[t.name])||void 0===n?void 0:n.message)||"\u3000",disabled:!h}))})}}),(0,oe.jsx)(Qe.Z,{type:"submit",variant:"contained",onSubmit:d(Z),disabled:!f.isDirty,children:a("oauth.save")})]})})},Bn=t(29529),Fn=t(25139),Dn={ttl:604800};function Un(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?86400*e.ttl:e.ttl/86400;return(0,i.Z)((0,i.Z)({},e),{},{ttl:n})}function zn(){var e,n,t=(0,de.h6)().api,r=(0,ke.y0)().blocklet,o=null===r||void 0===r||null===(e=r.meta)||void 0===e?void 0:e.did,a=Object.assign({},Dn,(null===r||void 0===r||null===(n=r.settings)||void 0===n?void 0:n.session)||{}),l=(0,nn.cI)({defaultValues:$e()(Un(a),["ttl"])}),s=l.handleSubmit,c=l.control,d=l.formState,u=l.reset,f=(0,L.PE)().t,p=(0,en.Z)(function(){var e=(0,T.Z)((0,_.Z)().mark((function e(n){var r,i,a,l;return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.updateAppSessionConfig({input:{did:o,config:Un(n,!0)}});case 3:i=e.sent,a=i.blocklet,l=Object.assign({},Dn,$e()((null===a||void 0===a||null===(r=a.settings)||void 0===r?void 0:r.session)||{},["ttl"])),u(Un(l)),H.Z.success(f("common.configSuccess")),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),H.Z.error(e.t0.message);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(n){return e.apply(this,arguments)}}());return(0,oe.jsx)(x.Z,{children:(0,oe.jsxs)("form",{onSubmit:s(p),disabled:!0,children:[(0,oe.jsx)(nn.Qr,{name:"ttl",control:c,render:function(e){var n=e.field;return(0,oe.jsx)(Me.Z,{fullWidth:!0,sx:{mb:2},children:(0,oe.jsxs)(Fn.Z,{px:3,children:[(0,oe.jsx)(x.Z,{mx:-3,my:.5,children:f("blocklet.config.session.ttl",{day:n.value})}),(0,oe.jsx)(Bn.ZP,(0,i.Z)((0,i.Z)({},n),{},{defaultValue:7,step:1,marks:[{value:1,label:f("blocklet.config.session.day",{day:1})},{value:7,label:f("blocklet.config.session.days",{day:7})},{value:14,label:f("blocklet.config.session.days",{day:14})},{value:21,label:f("blocklet.config.session.days",{day:21})},{value:30,label:f("blocklet.config.session.days",{day:30})}],min:1,max:30,valueLabelDisplay:"auto",style:{maxWidth:"360px"}}))]})})}}),(0,oe.jsx)(Qe.Z,{type:"submit",variant:"contained",onSubmit:s(p),disabled:!d.isDirty,children:f("oauth.save")})]})})}var Kn=t(48537),Wn=t(95002),Gn=t(2291),Hn=t(75260),Vn=t(28595),Yn=t(61398),qn=t.n(Yn),Mn=(0,s.forwardRef)((function(e,n){var t=(0,s.useContext)(L.RD).t,r=(0,Vn.Z)({show:!1,title:"",content:"",onConfirm:qn(),onCancel:qn(),loading:!1}),i=(0,en.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r.show=!0,r.title=e.title,r.content=e.content,r.onConfirm=e.onConfirm||qn(),r.onCancel=e.onCancel||qn(),r.loading=!1})),o=(0,en.Z)((function(){r.title="",r.content="",r.onConfirm=qn(),r.onCancel=qn()})),a=(0,en.Z)((function(){r.show=!1,setTimeout((function(){o()}),300)})),l=(0,en.Z)((function(){a(),null===r||void 0===r||r.onCancel()}),[]),c=(0,en.Z)((0,T.Z)((0,_.Z)().mark((function e(){return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.loading=!0,e.prev=1,e.next=4,null===r||void 0===r?void 0:r.onConfirm(a);case 4:return e.prev=4,r.loading=!1,e.finish(4);case 7:case"end":return e.stop()}}),e,null,[[1,,4,7]])}))),[]);return(0,s.useImperativeHandle)(n,(function(){return{open:i,close:a}}),[i,a]),(0,oe.jsx)(Le.I4,{open:r.show,title:r.title,onConfirm:c,onCancel:l,confirmButton:{text:t("common.confirm"),props:{variant:"contained",color:"primary",loading:r.loading}},cancelButton:{text:t("common.cancel"),props:{variant:"outlined",color:"primary"}},children:r.content})}));var Jn=t(70177),Qn=t(59182),Xn=t.n(Qn),$n=t(76032),et=t.n($n),nt=t(55581),tt=t(63531),rt=t(92522),it=t.n(rt),ot=(0,s.forwardRef)((function(e,n){var t,r,i=(0,s.useContext)(L.RD).t,o=(0,ke.y0)().blocklet,a=(0,de.h6)().api,l=(0,Vn.Z)({mode:"view",show:!1,data:{},callback:qn()}),c=(0,nt.Fg)(),d=(null===c||void 0===c||null===(t=c.transitions)||void 0===t||null===(r=t.duration)||void 0===r?void 0:r.leavingScreen)||300,u=(0,en.Z)((function(){l.mode="view",l.data={},l.callback=qn()}),[]),f=(0,en.Z)((function(){l.show=!1,setTimeout((function(){u()}),d)}),[]),p=(0,en.Z)((function(e){l.mode="view",l.show=!0,l.data=e}),[]),h=(0,en.Z)((function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qn();l.mode="approve",l.show=!0,l.data=e,l.callback=n}),[]);(0,s.useImperativeHandle)(n,(function(){return{open:p,close:f,approve:h}}),[p,f,h]);var Z=(0,qe.Z)((function(){if(!l.show)return[];l.data.migratedFrom=[l.data.appId,l.data.appPid];var e=["appName","appLogo","appId","appPid","migratedFrom","appDescription","appUrl","version","appliedAt","status","serverId","serverVersion"];return!1!==l.data.isMaster&&Xn()(e,"appliedAt","status"),e.map((function(e){var n=i("federated.info.".concat(e)),t=l.data[e];if("appName"===e&&l.data.isMaster&&(t=(0,oe.jsxs)(x.Z,{children:[(0,oe.jsx)(Kn.Z,{component:Wn.Z}),t]})),["appId","appPid","serverId"].includes(e)&&(t=(0,oe.jsx)(tt.kL,{children:t})),["appUrl"].includes(e)&&(t=(0,oe.jsx)(x.Z,{component:"a",href:t,target:"_blank",children:t})),["appLogo"].includes(e)){var r=it()(t)?t:m()(l.data.appUrl||"",t||"");try{var o=new URL(r);o.searchParams.set("imageFilter","resize"),o.searchParams.set("w","80"),o.searchParams.set("h","80"),t=(0,oe.jsx)("img",{src:o.href,width:"60",height:"60",alt:l.data.appName})}catch(a){t=(0,oe.jsx)("img",{src:r,width:"60",height:"60",alt:l.data.appName})}}("status"===e&&(t=t&&i("federated.status.".concat(t))),"migratedFrom"===e)&&(t=(l.data.migratedFrom||[]).filter((function(e){return![l.data.appId,l.data.appPid].includes(e)})).map((function(e){return(0,oe.jsx)(tt.kL,{children:e})})));return et()(t)&&(t="-"),{name:n,value:t}}))}),[l.data]),g="approve"===l.mode,v=(0,en.Z)((0,T.Z)((0,_.Z)().mark((function e(){return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.auditFederatedLogin({input:{memberPid:l.data.appPid,did:o.appPid,status:"rejected"}});case 2:f(),null===l||void 0===l||l.callback(!1);case 4:case"end":return e.stop()}}),e)})))),b=(0,en.Z)((0,T.Z)((0,_.Z)().mark((function e(){return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.auditFederatedLogin({input:{memberPid:l.data.appPid,did:o.appPid,status:"approved"}});case 2:f(),null===l||void 0===l||l.callback(!0);case 4:case"end":return e.stop()}}),e)}))));return(0,oe.jsx)(Le.ZP,{open:l.show,title:i(g?"federated.approveToJoinLogin":"federated.siteDetail"),onClose:f,actions:g?(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)(Qe.Z,{color:"error",variant:"contained",onClick:v,children:i("common.reject")}),(0,oe.jsx)(Qe.Z,{variant:"contained",onClick:b,children:i("common.approve")})]}):(0,oe.jsx)(Qe.Z,{variant:"outlined",onClick:f,children:i("common.close")}),children:Z.map((function(e){return(0,oe.jsx)(Jn.Z,{style:{alignItems:"flex-start"},valueComponent:"div",nameWidth:180,name:e.name,children:e.value},e.name)}))})})),at=ot,lt=t(29951),st=t(34760),ct=t.n(st),dt=(0,s.forwardRef)((function(e,n){var t,r,i=(0,nt.Fg)(),o=(null===i||void 0===i||null===(t=i.transitions)||void 0===t||null===(r=t.duration)||void 0===r?void 0:r.leavingScreen)||300,a=(0,s.useContext)(L.RD).t,l=(0,Vn.Z)({show:!1,data:{link:""}}),c=(0,en.Z)((function(){l.data.link=""}),[]),d=(0,en.Z)((function(){l.show=!1,setTimeout((function(){c()}),o)}),[]),u=(0,en.Z)((function(e){var n=e.link;l.show=!0,l.data.link=n}),[]);(0,s.useImperativeHandle)(n,(function(){return{open:u,close:d}}),[u,d]);var f=(0,en.Z)((function(){ct()(l.data.link),d()}),[d]);return(0,oe.jsxs)(Le.ZP,{open:l.show,title:a("federated.joinFederatedLogin"),onClose:d,PaperProps:{style:{minHeight:"unset"}},actions:(0,oe.jsx)(z.Z,{color:"primary",autoFocus:!0,variant:"contained",onClick:f,children:a("common.copyAndClose")}),children:[(0,oe.jsx)(x.Z,{mb:1,children:a("federated.inviteJoinFederatedLoginDescription")}),(0,oe.jsx)(x.Z,{sx:{"& .copy-button":{display:"none !important"}},children:(0,oe.jsx)(lt.Z,{language:"shell",style:{marginBottom:0},children:l.data.link})})]})}));function ut(e){var n,t,r,i,o,a=e.mode,l=(0,s.useRef)(null),c=(0,s.useRef)(null),d=(0,s.useContext)(L.RD),u=d.t,f=d.locale,p=(0,ke.y0)(),m=p.blocklet,h=p.actions.refreshBlocklet,Z=function(){var e=(0,s.useRef)(null),n=(0,en.Z)((function(){for(var n,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];null===(n=e.current)||void 0===n||n.open.apply(n,r)})),t=(0,en.Z)((function(){for(var n,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];null===(n=e.current)||void 0===n||n.close.apply(n,r)})),r={open:n,close:t};return{confirmHolder:(0,oe.jsx)(Mn,{ref:e}),confirmApi:r}}(),g=Z.confirmApi,v=Z.confirmHolder,b=(0,de.h6)().api,j=(null===(n=m.settings.federated)||void 0===n?void 0:n.sites)||[],k=(null===(t=m.settings.federated)||void 0===t?void 0:t.config)||{},y=!1!==k.isMaster,C=(0,en.Z)((function(e){var n;null===(n=c.current)||void 0===n||n.open(e)})),w=(0,en.Z)((function(e){var n;null===(n=c.current)||void 0===n||n.approve(e,h)})),S=(0,en.Z)((function(e){g.open({title:u("federated.disableFederatedLogin"),content:u("federated.disableFederatedLoginDescription"),onConfirm:function(n){return(0,T.Z)((0,_.Z)().mark((function t(){return(0,_.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,b.auditFederatedLogin({input:{memberPid:e.appPid,did:m.appPid,status:"revoked"}});case 2:n();case 3:case"end":return t.stop()}}),t)})))()}})})),E=(0,en.Z)((function(e){g.open({title:u("federated.enableFederatedLogin"),content:u("federated.enableFederatedLoginDescription"),onConfirm:function(n){return(0,T.Z)((0,_.Z)().mark((function t(){return(0,_.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,b.auditFederatedLogin({input:{memberPid:e.appPid,did:m.appPid,status:"approved"}});case 2:n();case 3:case"end":return t.stop()}}),t)})))()}})})),P=(0,qe.Z)((function(){var e=[{label:u("common.name"),name:"appName",options:{customBodyRenderLite:function(e){var n=j[e],t=!1!==n.isMaster;return(0,oe.jsx)(x.Z,{display:"inline-block",children:(0,oe.jsxs)(x.Z,{component:"a",display:"flex",alignItems:"center",href:n.appUrl,target:"_blank",onClick:function(e){e.stopPropagation()},children:[t&&(0,oe.jsx)(Kn.Z,{component:Wn.Z,style:{marginRight:"4px"}}),n.appName]})})}}},{label:u("common.did"),name:"appId",options:{customBodyRenderLite:function(e){var n=j[e];return(0,oe.jsx)(Hn.Z,{children:n.appId})}}},{label:u("common.status"),name:"status",options:{customBodyRenderLite:function(e){var n=j[e],t=!1!==n.isMaster;return(0,oe.jsx)(x.Z,{children:t?"-":u("federated.status.".concat(n.status))})}}}];return y&&e.push({label:u("common.actions"),name:"actions",options:{customBodyRenderLite:function(e){var n=j[e],t=!1!==n.isMaster;return(0,oe.jsx)(x.Z,{display:"flex",gap:1,children:t?(0,oe.jsxs)(oe.Fragment,{children:["rejected"===n.status&&(0,oe.jsx)(z.Z,{variant:"contained",color:"error",size:"small",onClick:function(e){e.stopPropagation()},children:u("federated.status.rejected")}),"revoked"===n.status&&(0,oe.jsx)(z.Z,{variant:"contained",color:"secondary",size:"small",onClick:function(e){e.stopPropagation()},children:u("federated.status.revoked")})]}):(0,oe.jsxs)(oe.Fragment,{children:["pending"===n.status&&(0,oe.jsx)(z.Z,{variant:"contained",color:"primary",size:"small",onClick:function(e){e.stopPropagation(),w(n)},children:u("federated.status.pending")}),"approved"===n.status&&(0,oe.jsx)(z.Z,{variant:"contained",color:"error",size:"small",onClick:function(e){e.stopPropagation(),S(n)},style:{whiteSpace:"nowrap"},children:u("federated.revoke")}),"revoked"===n.status&&(0,oe.jsx)(z.Z,{variant:"contained",color:"warning",size:"small",onClick:function(e){e.stopPropagation(),E(n)},style:{whiteSpace:"nowrap"},children:u("federated.approve")})]})})}}}),e}),[k.appId,j,y]),A=(0,qe.Z)((function(){return{sort:!0,download:!1,filter:!1,print:!1,expandableRowsOnClick:!0,onRowClick:function(e,n){var t=n.dataIndex,r=j[t];C(r)}}}),[]),N=(0,en.Z)((function(){var e,n=m.environments.find((function(e){return e.key===G.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL}));null!==n&&void 0!==n&&n.value?null===(e=l.current)||void 0===e||e.open({link:n.value}):H.Z.error(u("federated.failedToGetFederatedLoginLink"))}),[null===(r=m.site)||void 0===r||null===(i=r.domainAliases)||void 0===i||null===(o=i[0])||void 0===o?void 0:o.href]),O=(0,en.Z)((function(){g.open({title:u("federated.quitFederatedLogin"),content:u("federated.quitFederatedLoginDescription"),onConfirm:function(e){return(0,T.Z)((0,_.Z)().mark((function n(){return(0,_.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,b.quitFederatedLogin({input:{did:m.appPid}});case 2:e();case 3:case"end":return n.stop()}}),n)})))()}})})),R=(0,en.Z)((function(){g.open({title:u("federated.disbandFederatedLogin"),content:u("federated.disbandFederatedLoginDescription"),onConfirm:function(e){return(0,T.Z)((0,_.Z)().mark((function n(){return(0,_.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,b.disbandFederatedLogin({input:{did:m.appPid}});case 2:e();case 3:case"end":return n.stop()}}),n)})))()}})})),I=[];return"master"!==a?I.push((0,oe.jsx)(z.Z,{size:"small",variant:"contained",color:"error",onClick:O,sx:{ml:1},children:u("federated.quitFederatedLogin")},"quitFederatedLogin")):(I.push((0,oe.jsx)(z.Z,{size:"small",variant:"contained",onClick:N,sx:{ml:1},children:u("federated.inviteJoinFederatedLogin")},"inviteJoinFederatedLogin")),I.push((0,oe.jsx)(z.Z,{color:"error",size:"small",variant:"contained",onClick:R,sx:{ml:1},children:u("federated.disbandFederatedLogin")},"disbandFederatedLogin"))),(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsx)(Gn.Z,{className:"main-table",locale:f,data:j,columns:P,customButtons:I,title:(0,oe.jsx)(x.Z,{className:"table-toolbar-left",children:u("oauth.federated")}),options:A}),v,(0,oe.jsx)(dt,{ref:l}),(0,oe.jsx)(at,{ref:c})]})}ut.propTypes={mode:u().oneOf(["member","master"])},ut.defaultProps={mode:"member"};var ft=ut,pt=(0,s.forwardRef)((function(e,n){var t,r,i=(0,s.useContext)(L.RD).t,o=(0,de.h6)().api,a=(0,ke.y0)().blocklet,l=null===a||void 0===a?void 0:a.appPid,c=(0,nt.Fg)(),d=(null===c||void 0===c||null===(t=c.transitions)||void 0===t||null===(r=t.duration)||void 0===r?void 0:r.leavingScreen)||300,u=(0,Vn.Z)({show:!1,appUrl:"",appUrlError:"",callback:qn()}),f=(0,en.Z)((function(){u.appUrl="",u.appUrlError="",u.callback=qn()}),[]),p=(0,en.Z)((function(){u.show=!1,setTimeout((function(){f()}),d)}),[]),m=(0,en.Z)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qn();u.show=!0,u.callback=e}),[]);(0,s.useImperativeHandle)(n,(function(){return{open:m,close:p}}),[m,p]);var h=(0,en.Z)((function(e){if(!e)throw new Error(i("federated.federatedJoinAppUrlRequired"));if(!it()(e))throw new Error(i("federated.federatedJoinAppUrlInvalid"))})),Z=(0,en.Z)((0,T.Z)((0,_.Z)().mark((function e(){var n;return(0,_.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,h(u.appUrl),e.next=4,o.joinFederatedLogin({input:{did:l,appUrl:u.appUrl}});case 4:n=e.sent,u.show=!1,p(),null===u||void 0===u||u.callback(n),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),u.appUrlError=e.t0.message;case 13:case"end":return e.stop()}}),e,null,[[0,10]])}))),[p,l]);return(0,oe.jsxs)(Le.ZP,{open:u.show,title:i("federated.joinFederatedLogin"),onClose:p,PaperProps:{style:{minHeight:"unset"}},actions:(0,oe.jsx)(z.Z,{color:"primary",autoFocus:!0,variant:"contained",onClick:Z,children:i("common.confirm")}),children:[(0,oe.jsx)(x.Z,{mb:1,children:i("federated.joinFederatedLoginDescription")}),(0,oe.jsx)(Je.Z,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:i("federated.federatedJoinAppUrl"),label:i("federated.federatedJoinAppUrl"),value:u.appUrl,error:!!u.appUrlError,helperText:u.appUrlError||"eg: https://www.arcblock.io",onChange:function(e){u.appUrl=e.target.value}})]})})),mt=pt;function ht(){var e,n,t,r,i=(0,s.useRef)(null),o=(0,s.useRef)(null),a=(0,s.useContext)(L.RD).t,l=(0,ke.y0)(),c=l.blocklet,d=l.actions.refreshBlocklet,u=(0,en.Z)((function(){var e,n,t,r=null===(e=c.site)||void 0===e||null===(n=e.domainAliases)||void 0===n||null===(t=n[0])||void 0===t?void 0:t.href;if(r)try{var o,l=new URL(r);null===(o=i.current)||void 0===o||o.open({link:l.origin})}catch(s){H.Z.error(a("federated.failedToGetFederatedLoginLink"))}}),[null===(e=c.site)||void 0===e||null===(n=e.domainAliases)||void 0===n||null===(t=n[0])||void 0===t?void 0:t.href]),f=(0,en.Z)((function(){var e;null===(e=o.current)||void 0===e||e.open((function(){d()}))}),[d]);if((null===(r=c.settings.federated)||void 0===r?void 0:r.sites.length)>0){var p,m=!1!==(null===(p=c.settings.federated)||void 0===p?void 0:p.config.isMaster);return(0,oe.jsx)(ft,{mode:m?"master":"member"})}return(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsxs)(x.Z,{display:"flex",flexDirection:"column",gap:2,justifyContent:"center",alignItems:"center",minHeight:"200px",children:[(0,oe.jsx)(z.Z,{variant:"contained",onClick:u,children:a("federated.inviteJoinFederatedLogin")}),(0,oe.jsx)(U.Z,{sx:{width:"150px",color:"rgba(0, 0, 0, 0.3)"},children:"OR"}),(0,oe.jsx)(z.Z,{variant:"outlined",onClick:f,children:a("federated.joinFederatedLogin")})]}),(0,oe.jsx)(dt,{ref:i}),(0,oe.jsx)(mt,{ref:o})]})}var xt,Zt=function(){var e=(0,s.useContext)(L.RD).t,n=[{label:(0,oe.jsx)(x.Z,{textAlign:"center",width:"100%",children:e("oauth.commonSettings")}),value:"settings"},{label:(0,oe.jsx)(x.Z,{textAlign:"center",width:"100%",children:e("oauth.federated")}),value:"federated"},{label:(0,oe.jsx)(x.Z,{textAlign:"center",width:"100%",children:"Auth0"}),value:"auth0"},{label:(0,oe.jsx)(x.Z,{textAlign:"center",width:"100%",children:e("oauth.moreLogin")}),value:"more"}],t=(0,s.useState)(n[0].value),r=(0,o.Z)(t,2),i=r[0],a=r[1],l=(0,qe.Z)((function(){return{auth0:(0,oe.jsx)(In,{}),federated:(0,oe.jsx)(ht,{}),more:(0,oe.jsx)(x.Z,{children:(0,oe.jsx)(Ye.Z,{children:e("oauth.comingSoon")})}),settings:(0,oe.jsx)(x.Z,{children:(0,oe.jsx)(zn,{})})}}),[e]);return(0,oe.jsxs)(x.Z,{children:[(0,oe.jsx)(S.Z,{tabs:n,current:i,onChange:a}),(0,oe.jsx)(x.Z,{marginTop:"10px",children:l[i]})]})},gt=["blocklet","onUpdate"],vt=function e(n){var t=n.tabs,r=n.blocklet,i=n.ancestors,o=void 0===i?[]:i,a=n.depth,s=void 0===a?1:a,c=n.t,d=[].concat((0,l.Z)(o.map((function(e){return e.meta.did}))),[r.meta.did]).join("/"),u=!(null!==o&&void 0!==o&&o.length);t.push({label:(0,oe.jsxs)(x.Z,{pl:2*Math.max(1,s-1),display:"flex",alignItems:"center",justifyContent:"flex-start",children:[u?(0,oe.jsx)(A.Z,{size:24,blocklet:r}):(0,oe.jsx)(P.Z,{size:24,blocklet:r,ancestors:o}),(0,oe.jsx)(x.Z,{ml:"16px",children:(0,oe.jsx)(x.Z,{style:{color:"#222"},children:u?c("blocklet.component.container"):(0,E.getDisplayName)(r,!0)})})]},d),value:d}),r.children.length>0&&r.children.forEach((function(n){e({tabs:t,blocklet:n,ancestors:[].concat((0,l.Z)(o),[r]),depth:s+1,t:c})}))};function bt(e){var n=e.blocklet,t=e.onUpdate,r=(0,a.Z)(e,gt),l=(0,s.useContext)(L.RD).t,c=(0,de.h6)(),d=c.info,u=c.inService,p=(0,s.useState)(!0),E=(0,o.Z)(p,2),P=E[0],A=E[1],_=(0,w.lr)(),T=(0,o.Z)(_,2),N=T[0],O=T[1],R=N.get("tab")||"general",I=[{label:(0,oe.jsxs)(x.Z,{display:"flex",alignItems:"center","data-cy":"configuration-tab-general",children:[(0,oe.jsx)(g.Z,{sx:{fontSize:24}}),(0,oe.jsx)(x.Z,{ml:"16px",children:(0,oe.jsx)(x.Z,{style:{color:"#222"},children:l("common.general")})})]},"general"),value:"general"},{label:(0,oe.jsxs)(x.Z,{display:"flex",alignItems:"center","data-cy":"configuration-tab-access",children:[(0,oe.jsx)(v.Z,{sx:{fontSize:24}}),(0,oe.jsx)(x.Z,{ml:"16px",children:(0,oe.jsx)(x.Z,{style:{color:"#222"},children:l("common.access")})})]},"access"),value:"access"},{label:(0,oe.jsxs)(x.Z,{display:"flex",alignItems:"center","data-cy":"configuration-tab-oauth",children:[(0,oe.jsx)(b.Z,{sx:{fontSize:24}}),(0,oe.jsx)(x.Z,{ml:"16px",children:(0,oe.jsx)(x.Z,{style:{color:"#222"},children:l("common.login")})})]},"oauth"),value:"oauth"},{label:(0,oe.jsxs)(x.Z,{display:"flex",alignItems:"center","data-cy":"configuration-tab-notification",children:[(0,oe.jsx)(j.Z,{sx:{fontSize:24}}),(0,oe.jsx)(x.Z,{ml:"16px",children:(0,oe.jsx)(x.Z,{style:{color:"#222"},children:l("common.notification")})})]},"notification"),value:"notification"},{label:(0,oe.jsxs)(x.Z,{display:"flex",alignItems:"center","data-cy":"configuration-tab-preference",children:[(0,oe.jsx)(x.Z,{ml:-2,style:{transform:"translateY(2px)"},children:P?(0,oe.jsx)(C.Z,{fontSize:"inherit"}):(0,oe.jsx)(y.default,{fontSize:"inherit"})}),(0,oe.jsx)(k.Z,{sx:{fontSize:24}}),(0,oe.jsx)(x.Z,{ml:"16px",children:(0,oe.jsx)(x.Z,{style:{color:"#222"},children:l("common.preferences")})})]},"preference"),value:"preference"}];P&&vt({tabs:I,blocklet:n,t:l});var B=null;if("general"===R)B=(0,oe.jsx)(He,{blocklet:n,onUpdate:t});else if("access"===R)B=(0,oe.jsx)(Nn,{});else if("oauth"===R)B=(0,oe.jsx)(Zt,{});else if("notification"===R)B=(0,oe.jsx)(mn,{});else{var F=u?h.WELLKNOWN_SERVICE_PATH_PREFIX:d.routing.adminPath,D=new URLSearchParams;u||D.set("authKey","__sst"),D.set("schemaKey",m()(window.location.origin,F,"/api/preferences?id=".concat(encodeURIComponent(R)))),B=(0,oe.jsx)(f.Z,{url:"".concat(m()(window.location.origin,F,"/hosted/form-collector/"),"?").concat(D.toString()),width:"100%",height:"100%",frameBorder:0,styles:{border:0}})}return(0,oe.jsx)(jt,(0,i.Z)((0,i.Z)({},r),{},{children:(0,oe.jsxs)(Z.ZP,{container:!0,spacing:4,columns:24,children:[(0,oe.jsx)(Z.ZP,{item:!0,sm:7,md:5,children:(0,oe.jsx)(S.Z,{tabs:I,current:R,orientation:"vertical",onChange:function(e){"preference"===e?A(!P):O((function(n){return"general"===e?n.delete("tab"):n.set("tab",e),n}))},sx:{borderRight:1,height:"100%",borderColor:"divider"}})}),(0,oe.jsx)(Z.ZP,{item:!0,sm:17,md:19,children:(0,oe.jsx)(x.Z,{style:{minHeight:"66vh",height:"100%",position:"relative",overflow:"hidden"},children:B})})]})}))}bt.propTypes={blocklet:u().object.isRequired,onUpdate:u().func},bt.defaultProps={onUpdate:function(){}};var jt=c.Z.div(xt||(xt=(0,r.Z)(["\n .MuiTab-root {\n text-align: left;\n align-items: flex-start;\n font-weight: normal;\n }\n .Mui-selected {\n font-weight: bold;\n }\n"])))},19066:function(e,n,t){t.d(n,{C:function(){return r}});var r="true"===localStorage.getItem("enableDebug")},70115:function(e,n,t){var r=t(39517),i=t(87642),o=t(64076),a=t(20244);n.Z=[{value:a.WHO_CAN_ACCESS.ALL,icon:o.Z,title:{zh:"\u6240\u6709\u4eba\u53ef\u8bbf\u95ee",en:"Accessible to all"},description:{zh:"\u5411\u6240\u6709\u4eba\u5f00\u653e\uff0c\u65e0\u9700\u901a\u884c\u8bc1\u5373\u53ef\u8bbf\u95ee\u5e94\u7528",en:"Open to the world anyone can access without passport"}},{value:a.WHO_CAN_ACCESS.INVITED,icon:i.Z,title:{zh:"\u53ea\u6709\u88ab\u9080\u8bf7\u7684\u4eba\u53ef\u4ee5\u8bbf\u95ee",en:"Only invited people can access"},description:{zh:"\u7a0d\u540e\u60a8\u53ef\u4ee5\u5728\u7ba1\u7406\u9875\u9762\u4e2d\u9080\u8bf7\u6210\u5458",en:"You can invite members later in the admin page"}},{value:a.WHO_CAN_ACCESS.OWNER,icon:r.Z,title:{zh:"\u53ea\u6709\u5e94\u7528\u6240\u6709\u8005\u53ef\u4ee5\u8bbf\u95ee",en:"Only Owner of the blocklet can access"},description:{zh:"\u5fc5\u987b\u63d0\u4f9b\u6240\u6709\u8005\u901a\u884c\u8bc1\u624d\u80fd\u8bbf\u95ee\u5e94\u7528",en:"You must provide owner passport to access this application"}}]}}]);
2
- //# sourceMappingURL=4802.d185b9f1.chunk.js.map