@abtnode/blocklet-services 1.16.18-beta-aa01bd8e → 1.16.18-beta-bb4ebacc

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 (97) hide show
  1. package/api/index.js +1 -7
  2. package/api/routes/env.js +4 -2
  3. package/api/services/auth/index.js +77 -13
  4. package/api/services/auth/session.js +48 -1
  5. package/api/services/notification/blocklet-events-notifier.js +1 -0
  6. package/api/socket/channel/component.js +6 -5
  7. package/api/socket/channel/did.js +51 -20
  8. package/api/socket/util.js +1 -0
  9. package/build/asset-manifest.json +99 -87
  10. package/build/index.html +1 -1
  11. package/build/service-worker.js +1 -1
  12. package/build/service-worker.js.map +1 -1
  13. package/build/static/css/{4448.de9040c4.chunk.css → 1233.dba37e64.chunk.css} +1 -1
  14. package/build/static/js/{1148.e614f706.chunk.js → 1148.5ccba08e.chunk.js} +2 -2
  15. package/build/static/js/{4448.f0c62086.chunk.js → 1233.276cf2d0.chunk.js} +3 -3
  16. package/build/static/js/{4448.f0c62086.chunk.js.LICENSE.txt → 1233.276cf2d0.chunk.js.LICENSE.txt} +6 -0
  17. package/build/static/js/2653.980158ea.chunk.js +2 -0
  18. package/build/static/js/2664.da443f31.chunk.js +2 -0
  19. package/build/static/js/2801.33d2f238.chunk.js +2 -0
  20. package/build/static/js/2940.ce32ab3f.chunk.js +2 -0
  21. package/build/static/js/3025.7c99c058.chunk.js +2 -0
  22. package/build/static/js/{3033.6623d19d.chunk.js → 3033.9fe46d7f.chunk.js} +2 -2
  23. package/build/static/js/{3131.672170fb.chunk.js → 3131.99541aca.chunk.js} +2 -2
  24. package/build/static/js/3430.dc830483.chunk.js +2 -0
  25. package/build/static/js/{3688.48e7b69c.chunk.js → 3688.679796d1.chunk.js} +2 -2
  26. package/build/static/js/3708.7e2ad66b.chunk.js +3 -0
  27. package/build/static/js/3842.e1bb702b.chunk.js +3 -0
  28. package/build/static/js/3953.ddf8be86.chunk.js +2 -0
  29. package/build/static/js/{4023.a2e9db00.chunk.js → 4023.5fe8180a.chunk.js} +2 -2
  30. package/build/static/js/4076.5ca97365.chunk.js +2 -0
  31. package/build/static/js/4160.e45b5ba1.chunk.js +2 -0
  32. package/build/static/js/4587.9a042d46.chunk.js +2 -0
  33. package/build/static/js/4802.217e3956.chunk.js +2 -0
  34. package/build/static/js/5070.31a74ba7.chunk.js +2 -0
  35. package/build/static/js/5468.b54ce65b.chunk.js +2 -0
  36. package/build/static/js/5547.d68bfde3.chunk.js +3 -0
  37. package/build/static/js/556.e1875260.chunk.js +3 -0
  38. package/build/static/js/6032.1001afd3.chunk.js +2 -0
  39. package/build/static/js/{6139.5867193a.chunk.js → 6139.161b2e7f.chunk.js} +2 -2
  40. package/build/static/js/6218.9a4feced.chunk.js +2 -0
  41. package/build/static/js/{6658.090d923f.chunk.js → 6658.98f9956d.chunk.js} +2 -2
  42. package/build/static/js/{716.9c76ad65.chunk.js → 716.e68425d7.chunk.js} +3 -3
  43. package/build/static/js/716.e68425d7.chunk.js.LICENSE.txt +5 -0
  44. package/build/static/js/7305.465df4a1.chunk.js +2 -0
  45. package/build/static/js/7313.b53b59d8.chunk.js +2 -0
  46. package/build/static/js/779.73350f02.chunk.js +2 -0
  47. package/build/static/js/7858.52930f63.chunk.js +2 -0
  48. package/build/static/js/8016.3ef64a2c.chunk.js +2 -0
  49. package/build/static/js/{8181.86477cc5.chunk.js → 8181.6c2a7dcb.chunk.js} +2 -2
  50. package/build/static/js/8393.ea7ef05d.chunk.js +2 -0
  51. package/build/static/js/840.5bc210dd.chunk.js +2 -0
  52. package/build/static/js/{8622.66a81bc0.chunk.js → 8622.ebd44812.chunk.js} +2 -2
  53. package/build/static/js/8641.bec13444.chunk.js +2 -0
  54. package/build/static/js/8702.bb84d009.chunk.js +2 -0
  55. package/build/static/js/{8792.8b009f81.chunk.js → 8792.0f55707c.chunk.js} +2 -2
  56. package/build/static/js/8944.559ade67.chunk.js +2 -0
  57. package/build/static/js/9033.ebf65926.chunk.js +2 -0
  58. package/build/static/js/9107.7f32925d.chunk.js +2 -0
  59. package/build/static/js/9314.f0add972.chunk.js +2 -0
  60. package/build/static/js/{9596.5251398b.chunk.js → 9596.a4eead04.chunk.js} +2 -2
  61. package/build/static/js/9865.d5dfa72b.chunk.js +2 -0
  62. package/build/static/js/{9900.cce3f786.chunk.js → 9900.3b72165e.chunk.js} +2 -2
  63. package/build/static/js/main.36b0deea.js +3 -0
  64. package/package.json +27 -26
  65. package/build/static/js/1343.69031e0b.chunk.js +0 -2
  66. package/build/static/js/1581.ed4544c6.chunk.js +0 -2
  67. package/build/static/js/2026.514f995a.chunk.js +0 -2
  68. package/build/static/js/2362.ab5308a8.chunk.js +0 -2
  69. package/build/static/js/2506.dd9284b6.chunk.js +0 -2
  70. package/build/static/js/2653.6610534f.chunk.js +0 -2
  71. package/build/static/js/2972.2d5268c3.chunk.js +0 -2
  72. package/build/static/js/3025.aa129833.chunk.js +0 -2
  73. package/build/static/js/3038.40d611d1.chunk.js +0 -2
  74. package/build/static/js/3683.6f169a32.chunk.js +0 -2
  75. package/build/static/js/3920.5c63a2b9.chunk.js +0 -3
  76. package/build/static/js/4076.bcc72fcc.chunk.js +0 -2
  77. package/build/static/js/4247.c25f1945.chunk.js +0 -2
  78. package/build/static/js/4587.906e3023.chunk.js +0 -2
  79. package/build/static/js/4716.a8a5b75d.chunk.js +0 -2
  80. package/build/static/js/4764.51208c0d.chunk.js +0 -2
  81. package/build/static/js/4802.cd83ecef.chunk.js +0 -2
  82. package/build/static/js/5547.8447edf9.chunk.js +0 -3
  83. package/build/static/js/556.4d5cc702.chunk.js +0 -3
  84. package/build/static/js/6032.48c0a152.chunk.js +0 -2
  85. package/build/static/js/7050.3281ad5f.chunk.js +0 -2
  86. package/build/static/js/779.383b4b4a.chunk.js +0 -2
  87. package/build/static/js/7858.4e5b7c88.chunk.js +0 -2
  88. package/build/static/js/8702.2d858942.chunk.js +0 -2
  89. package/build/static/js/8944.07bcf75f.chunk.js +0 -2
  90. package/build/static/js/8983.19b79a23.chunk.js +0 -2
  91. package/build/static/js/9880.13ac9520.chunk.js +0 -2
  92. package/build/static/js/main.63103d24.js +0 -3
  93. /package/build/static/js/{3920.5c63a2b9.chunk.js.LICENSE.txt → 3708.7e2ad66b.chunk.js.LICENSE.txt} +0 -0
  94. /package/build/static/js/{716.9c76ad65.chunk.js.LICENSE.txt → 3842.e1bb702b.chunk.js.LICENSE.txt} +0 -0
  95. /package/build/static/js/{5547.8447edf9.chunk.js.LICENSE.txt → 5547.d68bfde3.chunk.js.LICENSE.txt} +0 -0
  96. /package/build/static/js/{556.4d5cc702.chunk.js.LICENSE.txt → 556.e1875260.chunk.js.LICENSE.txt} +0 -0
  97. /package/build/static/js/{main.63103d24.js.LICENSE.txt → main.36b0deea.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2 @@
1
+ (self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[5070,5434],{46513:function(e,n,t){"use strict";n.Z=void 0;(r=t(30969))&&r.__esModule;var r,i=t(37574);function o(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){c(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function c(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var u=function(e){return(0,i.jsx)("svg",a(a({},e),{},{children:(0,i.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"})}))};u.defaultProps={width:"21",height:"20",viewBox:"0 0 21 20",xmlns:"http://www.w3.org/2000/svg"},u.displayName="globe";var s=u;n.Z=s},26681:function(e,n,t){"use strict";t.d(n,{Z:function(){return O}});var r,i,o=t(71171),a=t(33028),c=t(96234),u=t(59740),s=t(30969),l=t(24974),f=t.n(l),d=t(72097),h=t(94551),p=t(38361),v=t(33359),g=t(38589),b=t(23484),m=t(2689),y=t(45761),w=t(38996),x=t(46513),k=t(79216),j=t(26022),_=t(55581),Z=t(37574),A=["showText","popperProps","popperType","icon","size"];function O(e){var n,t,r,i=e.showText,o=e.popperProps,l=e.popperType,f=e.icon,y=e.size,k=(0,u.Z)(e,A),O=(0,s.useContext)(j.RD),S=O.locale,M=O.changeLocale,T=O.languages,I=(0,s.useRef)(null),E=(0,s.useState)(!1),z=(0,c.Z)(E,2),N=z[0],L=z[1],R=(0,_.Fg)(),F="dark"===(null===R||void 0===R||null===(n=R.palette)||void 0===n?void 0:n.mode),D=i?d.Z:h.Z,J="hover"===l?{onMouseEnter:function(){L(!0)},onMouseLeave:function(){L(!1)}}:{onClick:function(){L(!N)}},B=(0,s.useMemo)((function(){return f?(0,Z.jsx)(f,{}):(0,Z.jsx)(x.Z,{style:{width:"auto",height:y,color:R.palette.text.secondary}})}),[f,null===R||void 0===R||null===(t=R.palette)||void 0===t||null===(r=t.text)||void 0===r?void 0:r.secondary,y]);return(0,Z.jsxs)(C,(0,a.Z)((0,a.Z)((0,a.Z)({component:"div",dark:F,theme:R},k),J),{},{children:[(0,Z.jsx)(D,{ref:I,className:"trigger",role:"button","aria-label":"Locale selector button",children:(0,Z.jsxs)(p.Z,{display:"flex",alignItems:"center",children:[B,i?(0,Z.jsx)(v.Z,{component:"strong",className:"trigger-text",children:T.find((function(e){return e.code===S})).name}):""]})}),(0,Z.jsx)(P,(0,a.Z)((0,a.Z)({open:N,anchorEl:I.current},o),{},{disablePortal:!0,children:(0,Z.jsx)("div",{className:"locales",children:(0,Z.jsx)(g.d,{onClickAway:function(e){var n;null!==(n=I.current)&&void 0!==n&&n.contains(e.target)||L(!1)},children:(0,Z.jsx)(b.Z,{children:T.map((function(n){var t=n.code,r=n.name;return(0,Z.jsxs)(m.Z,{className:"locale-item",onClick:function(){return M(n=t),L(!1),void("function"===typeof e.onChange&&e.onChange(n));var n},children:[(0,Z.jsx)(w.default,{className:t===S?"check-icon check-icon-visible":"check-icon",fontSize:"small"}),r]},t)}))})})})}))]}))}O.propTypes={size:f().number,showText:f().bool,popperProps:f().object,onChange:f().func,popperType:f().oneOf(["hover","click"]),icon:f().any},O.defaultProps={showText:!0,size:24,popperProps:{},onChange:function(){},popperType:"click",icon:null};var C=(0,_.zo)("div",{shouldForwardProp:function(e){return"dark"!==e}})(r||(r=(0,o.Z)(["\n display: inline-block;\n\n .trigger {\n display: flex;\n flex-direction: column;\n justify-content: center;\n font-size: 14px;\n white-space: nowrap;\n\n .trigger-text {\n margin-left: 5px;\n font-size: 14px;\n color: ",";\n }\n }\n\n .locales {\n background: ",";\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);\n }\n\n .locale-item {\n font-size: 16px;\n font-style: normal;\n font-stretch: normal;\n line-height: normal;\n letter-spacing: 2px;\n text-align: center;\n color: ",";\n cursor: pointer;\n display: flex;\n padding: 16px;\n align-items: center;\n .check-icon {\n visibility: hidden;\n margin-right: 4px;\n }\n .check-icon-visible {\n visibility: visible;\n }\n }\n"])),(function(e){return(0,k.Lq)(e)}),(function(e){return(0,k.Vu)(e)}),(function(e){return(0,k.Lq)(e)})),P=(0,_.zo)(y.Z)(i||(i=(0,o.Z)(["\n z-index: ",";\n"])),(function(e){return e.theme.zIndex.tooltip+10}))},56368:function(e,n,t){"use strict";t.d(n,{KN:function(){return l},Kb:function(){return p},RX:function(){return d},iU:function(){return s}});var r,i,o,a,c=t(33028),u=t(97347),s=(null===(r=window)||void 0===r||null===(i=r.blocklet)||void 0===i?void 0:i.groupPrefix)||(null===(o=window)||void 0===o||null===(a=o.blocklet)||void 0===a?void 0:a.prefix)||"/",l=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";if(null===e||void 0===e||!e.length)return e;var t=function(e,n){return"string"===typeof e?e:"object"===typeof e?e[n]||(null===e||void 0===e?void 0:e.en)||(null===e||void 0===e?void 0:e.zh):e},r=function(e,n){if("string"===typeof e){if((0,u.CB)(e)){var t=new URL(e);return t.searchParams.set("locale",n),t.href}var r=new URL(e,window.location.origin);return r.searchParams.set("locale",n),r.pathname+r.search}return"object"===typeof e?e[n]||(null===e||void 0===e?void 0:e.en)||(null===e||void 0===e?void 0:e.zh):e};return(0,u._J)(e,(function(e){var i;return(0,c.Z)((0,c.Z)({},e),{},{title:t(e.title,n),link:null!==(i=e.items)&&void 0!==i&&i.length?e.link:r(e.link,n)})}),"items")},f=function(e){if(null===e||void 0===e||!e.length)return null;var n=function(e){return(0,u._J)(e,(function(e){return e.role?(0,c.Z)((0,c.Z)({},e),{},{role:Array.isArray(e.role)?e.role:[e.role]}):e}),"items")}(e),t={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[]};return n.forEach((function(e){if(e.section){if(Array.isArray(e.section))e.section.forEach((function(n){var r;null===(r=t[n])||void 0===r||r.push(e)}));else if("string"===typeof e.section){var n;null===(n=t[e.section])||void 0===n||n.push(e)}}else t.header.push(e)})),t},d=function(e){if(!e)return null;var n=(0,c.Z)({},e);return n.theme=function(e){var n=(0,c.Z)({},e),t=null===e||void 0===e?void 0:e.background;return"string"===typeof t?n.background={header:t,footer:t,default:t}:t&&"object"===typeof t&&(n.background={header:t.header||t.default,footer:t.footer||t.default,default:t.default}),n}(n.theme),n.navigation=f(h(n.navigation)),n},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,u.fA)(e,(function(e,n){var t;return!!e.link||(null===(t=n.filteredChildren)||void 0===t?void 0:t.length)}),"items")},p=function(e,n){return(0,u.fA)(e,(function(e,t){var r,i=!e.role||n&&e.role.includes(n);return t.isLeaf?i:i&&(null===(r=t.filteredChildren)||void 0===r?void 0:r.length)}),"items")}},11689:function(e,n,t){"use strict";t.d(n,{Z:function(){return v}});var r=t(68079),i=t(33028),o=(t(86204),t(30969)),a=t(24974),c=t.n(a),u=t(37574),s=t(82972),l=t(87843),f=t(26681),d=t(26022),h=t(26862),p=t(56368);function v(e){var n,t,a,c,h=e.formattedBlocklet,v=e.addons,g=e.sessionManagerProps,b=(0,o.useContext)(s.B3),m=((0,d.PE)()||{}).locale,y=h.enableConnect,w=void 0===y||y,x=h.enableLocale,k=void 0===x||x,j=!(null===b||void 0===b||null===(n=b.session)||void 0===n||!n.user),_=(0,p.KN)(null===h||void 0===h||null===(t=h.navigation)||void 0===t?void 0:t.sessionManager,m)||[];_=(0,p.Kb)(_,null===b||void 0===b||null===(a=b.session)||void 0===a||null===(c=a.user)||void 0===c?void 0:c.role);var Z=function(){if(v&&"function"!==typeof v)return Array.isArray(v)?v:[v];var e=[];if(k&&m&&e.push((0,u.jsx)(f.Z,{showText:!1},"locale-selector")),w&&b){var n=[];if(j)(_?_.slice(0,5):[]).forEach((function(e){n.push({label:e.title,icon:e.icon?(0,u.jsx)("iconify-icon",{icon:e.icon,height:24,style:{marginRight:8}}):null,component:"a",href:e.link,key:e.link})}));e.push((0,u.jsx)(l.Z,(0,i.Z)({session:b.session,locale:m,menu:n,showRole:!0},g),"session-manager"))}return"function"===typeof v&&(e=v(e)||[]),e}();return o.createElement.apply(void 0,[u.Fragment,null].concat((0,r.Z)(Array.isArray(Z)?Z:[Z])))}v.propTypes={formattedBlocklet:c().object.isRequired,addons:c().oneOfType([c().func,c().node]),sessionManagerProps:h.Z},v.defaultProps={addons:null,sessionManagerProps:{showRole:!0}}},23906:function(e,n,t){"use strict";t.d(n,{x:function(){return c}});var r=t(30969),i=t(92771),o=t(45434),a=t.n(o),c=function(){var e=(0,i.Z)();(0,r.useEffect)((function(){e.wallet&&a().call("arcHideTopBar","{}")}),[e])}},26862:function(e,n,t){"use strict";t.d(n,{I:function(){return o},Z:function(){return a}});var r=t(24974),i=t.n(r),o=i().shape({appLogo:i().node,appName:i().string,theme:i().shape({background:i().string}),enableConnect:i().bool,enableLocale:i().bool,navigation:i().arrayOf(i().shape({title:i().oneOfType([i().string,i().object]),link:i().oneOfType([i().string,i().object]),icon:i().string,items:i().arrayOf(i().shape({title:i().oneOfType([i().string,i().object]),link:i().oneOfType([i().string,i().object])}))}))}),a=i().shape({showText:i().bool,showRole:i().bool,switchDid:i().bool,switchProfile:i().bool,switchPassport:i().bool,disableLogout:i().bool,onLogin:i().func,onLogout:i().func,onSwitchDid:i().func,onSwitchProfile:i().func,onSwitchPassport:i().func,menu:i().array,menuRender:i().func,dark:i().bool,size:i().number})},97347:function(e,n,t){"use strict";t.d(n,{CB:function(){return u},Ik:function(){return a},RX:function(){return l},Xk:function(){return s},_J:function(){return o},fA:function(){return c}});var r=t(56666),i=t(33028),o=function e(n,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children";return n.map((function(n){return Array.isArray(n[o])?t((0,i.Z)((0,i.Z)({},n),{},(0,r.Z)({},o,e(n[o],t,o)))):t(n)}))},a=function(e){var n=[];return o(e,(function(e){return n.push(e)}),arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children"),n},c=function e(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children";return n.map((function(e){return(0,i.Z)({},e)})).filter((function(n){var i=n[r];if(Array.isArray(i)){var o=e(i,t,r);n[r]=null!==o&&void 0!==o&&o.length?o:void 0}var a={filteredChildren:n[r],isLeaf:!(null!==i&&void 0!==i&&i.length)};return t(n,a)}))},u=function(e){return/^https?:\/\//.test(e)},s=function(e){return/^[\w-]+:[\w-]+$/.test(e)},l=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(e,n){return{path:e,index:n}})).filter((function(e){return function(e){if(!e||null===e||void 0===e||!e.startsWith("/"))return!1;var n=function(e){return e.endsWith("/")?e:"".concat(e,"/")},t=n(window.location.pathname),r=n(new URL(e,window.location.origin).pathname);return t.startsWith(r)}(e.path)}));return null!==e&&void 0!==e&&e.length?e.slice(1).reduce((function(e,n){return e.path.length>=n.path.length?e:n}),e[0]).index:-1}},45434:function(e){var n={default:this,call:function(e,n,t){var r="";"function"==typeof n&&(t=n,n={});var i={data:void 0===n?null:n};if("function"==typeof t){var o="dscb"+window.dscb++;window[o]=t,i._dscbstub=o}return i=JSON.stringify(i),window._dsbridge?r=_dsbridge.call(e,i):(window._dswk||-1!=navigator.userAgent.indexOf("_dsbridge"))&&(r=prompt("_dsbridge="+e,i)),JSON.parse(r||"{}").data},register:function(e,t,r){var i=r?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout((function(){n.call("_dsb.dsinit")}),0)),"object"==typeof t?i._obs[e]=t:i[e]=t},registerAsyn:function(e,n){this.register(e,n,!0)},hasNativeMethod:function(e,n){return this.call("_dsb.hasNativeMethod",{name:e,type:n||"all"})},disableJavascriptDialogBlock:function(e){this.call("_dsb.disableJavascriptDialogBlock",{disable:!1!==e})}};!function(){if(!window._dsf){var e={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:n,close:function(){n.call("_dsb.closePage")},_handleMessageFromNative:function(e){var t=JSON.parse(e.data),r={id:e.callbackId,complete:!0},i=this._dsf[e.method],o=this._dsaf[e.method],a=function(e,i){r.data=e.apply(i,t),n.call("_dsb.returnValue",r)},c=function(e,i){t.push((function(e,t){r.data=e,r.complete=!1!==t,n.call("_dsb.returnValue",r)})),e.apply(i,t)};if(i)a(i,this._dsf);else if(o)c(o,this._dsaf);else{var u=e.method.split(".");if(u.length<2)return;var s=u.pop(),l=u.join("."),f=this._dsf._obs,d=f[l]||{},h=d[s];if(h&&"function"==typeof h)return void a(h,d);if((h=(d=(f=this._dsaf._obs)[l]||{})[s])&&"function"==typeof h)return void c(h,d)}}};for(var t in e)window[t]=e[t];n.register("_hasJavascriptMethod",(function(e,n){var t=e.split(".");if(t.length<2)return!(!_dsf[t]&&!_dsaf[t]);e=t.pop();var r=t.join("."),i=_dsf._obs[r]||_dsaf._obs[r];return i&&!!i[e]}))}}(),e.exports=n},86204:function(e,n,t){"use strict";var r=t(9249),i=t(87371),o=t(80753),a=t(45754),c=t(86906),u=t(56666),s=t(33028),l=Object.freeze({left:0,top:0,width:16,height:16}),f=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),d=Object.freeze((0,s.Z)((0,s.Z)({},l),f)),h=Object.freeze((0,s.Z)((0,s.Z)({},d),{},{body:"",hidden:!1})),p=Object.freeze({width:null,height:null}),v=Object.freeze((0,s.Z)((0,s.Z)({},p),f));var g=/[\s,]+/;var b=(0,s.Z)((0,s.Z)({},v),{},{preserveAspectRatio:""});function m(e){var n,t=(0,s.Z)({},b),r=function(n,t){return e.getAttribute(n)||t};return t.width=r("width",null),t.height=r("height",null),t.rotate=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=e.replace(/^-?[0-9.]*/,"");function r(e){for(;e<0;)e+=4;return e%4}if(""===t){var i=parseInt(e);return isNaN(i)?0:r(i)}if(t!==e){var o=0;switch(t){case"%":o=25;break;case"deg":o=90}if(o){var a=parseFloat(e.slice(0,e.length-t.length));return isNaN(a)?0:(a/=o)%1===0?r(a):0}}return n}(r("rotate","")),n=t,r("flip","").split(g).forEach((function(e){switch(e.trim()){case"horizontal":n.hFlip=!0;break;case"vertical":n.vFlip=!0}})),t.preserveAspectRatio=r("preserveAspectRatio",r("preserveaspectratio","")),t}var y=/^[a-z0-9]+(-[a-z0-9]+)*$/,w=function(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=e.split(":");if("@"===e.slice(0,1)){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){var o=i.pop(),a=i.pop(),c={provider:i.length>0?i[0]:r,prefix:a,name:o};return n&&!x(c)?null:c}var u=i[0],s=u.split("-");if(s.length>1){var l={provider:r,prefix:s.shift(),name:s.join("-")};return n&&!x(l)?null:l}if(t&&""===r){var f={provider:r,prefix:"",name:u};return n&&!x(f,t)?null:f}return null},x=function(e,n){return!!e&&!(""!==e.provider&&!e.provider.match(y)||!(n&&""===e.prefix||e.prefix.match(y))||!e.name.match(y))};function k(e,n){var t=function(e,n){var t={};!e.hFlip!==!n.hFlip&&(t.hFlip=!0),!e.vFlip!==!n.vFlip&&(t.vFlip=!0);var r=((e.rotate||0)+(n.rotate||0))%4;return r&&(t.rotate=r),t}(e,n);for(var r in h)r in f?r in e&&!(r in t)&&(t[r]=f[r]):r in n?t[r]=n[r]:r in e&&(t[r]=e[r]);return t}function j(e,n,t){var r=e.icons,i=e.aliases||Object.create(null),o={};function a(e){o=k(r[e]||i[e],o)}return a(n),t.forEach(a),k(e,o)}function _(e,n){var t=[];if("object"!==typeof e||"object"!==typeof e.icons)return t;e.not_found instanceof Array&&e.not_found.forEach((function(e){n(e,null),t.push(e)}));var r=function(e,n){var t=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);return(n||Object.keys(t).concat(Object.keys(r))).forEach((function e(n){if(t[n])return i[n]=[];if(!(n in i)){i[n]=null;var o=r[n]&&r[n].parent,a=o&&e(o);a&&(i[n]=[o].concat(a))}return i[n]})),i}(e);for(var i in r){var o=r[i];o&&(n(i,j(e,i,o)),t.push(i))}return t}var Z=(0,s.Z)({provider:"",aliases:{},not_found:{}},l);function A(e,n){for(var t in n)if(t in e&&typeof e[t]!==typeof n[t])return!1;return!0}function O(e){if("object"!==typeof e||null===e)return null;var n=e;if("string"!==typeof n.prefix||!e.icons||"object"!==typeof e.icons)return null;if(!A(e,Z))return null;var t=n.icons;for(var r in t){var i=t[r];if(!r.match(y)||"string"!==typeof i.body||!A(i,h))return null}var o=n.aliases||Object.create(null);for(var a in o){var c=o[a],u=c.parent;if(!a.match(y)||"string"!==typeof u||!t[u]&&!o[u]||!A(c,h))return null}return n}var C=Object.create(null);function P(e,n){var t=C[e]||(C[e]=Object.create(null));return t[n]||(t[n]=function(e,n){return{provider:e,prefix:n,icons:Object.create(null),missing:new Set}}(e,n))}function S(e,n){return O(n)?_(n,(function(n,t){t?e.icons[n]=t:e.missing.add(n)})):[]}function M(e,n){var t=[];return("string"===typeof e?[e]:Object.keys(C)).forEach((function(e){("string"===typeof e&&"string"===typeof n?[n]:Object.keys(C[e]||{})).forEach((function(n){var r=P(e,n);t=t.concat(Object.keys(r.icons).map((function(t){return(""!==e?"@"+e+":":"")+n+":"+t})))}))})),t}var T=!1;function I(e){return"boolean"===typeof e&&(T=e),T}function E(e){var n="string"===typeof e?w(e,!0,T):e;if(n){var t=P(n.provider,n.prefix),r=n.name;return t.icons[r]||(t.missing.has(r)?null:void 0)}}function z(e,n){var t=w(e,!0,T);return!!t&&function(e,n,t){try{if("string"===typeof t.body)return e.icons[n]=(0,s.Z)({},t),!0}catch(r){}return!1}(P(t.provider,t.prefix),t.name,n)}function N(e,n){if("object"!==typeof e)return!1;if("string"!==typeof n&&(n=e.provider||""),T&&!n&&!e.prefix){var t=!1;return O(e)&&(e.prefix="",_(e,(function(e,n){n&&z(e,n)&&(t=!0)}))),t}var r=e.prefix;return!!x({provider:n,prefix:r,name:"a"})&&!!S(P(n,r),e)}function L(e){return!!E(e)}function R(e){var n=E(e);return n?(0,s.Z)((0,s.Z)({},d),n):null}function F(e,n){e.forEach((function(e){var t=e.loaderCallbacks;t&&(e.loaderCallbacks=t.filter((function(e){return e.id!==n})))}))}var D=0;var J=Object.create(null);function B(e,n){J[e]=n}function q(e){return J[e]||J[""]}var H={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Q(e,n,t,r){var i,o=e.resources.length,a=e.random?Math.floor(Math.random()*o):e.index;if(e.random){var c=e.resources.slice(0);for(i=[];c.length>1;){var u=Math.floor(Math.random()*c.length);i.push(c[u]),c=c.slice(0,u).concat(c.slice(u+1))}i=i.concat(c)}else i=e.resources.slice(a).concat(e.resources.slice(0,a));var s,l=Date.now(),f="pending",d=0,h=null,p=[],v=[];function g(){h&&(clearTimeout(h),h=null)}function b(){"pending"===f&&(f="aborted"),g(),p.forEach((function(e){"pending"===e.status&&(e.status="aborted")})),p=[]}function m(e,n){n&&(v=[]),"function"===typeof e&&v.push(e)}function y(){f="failed",v.forEach((function(e){e(void 0,s)}))}function w(){p.forEach((function(e){"pending"===e.status&&(e.status="aborted")})),p=[]}function x(){if("pending"===f){g();var r=i.shift();if(void 0===r)return p.length?void(h=setTimeout((function(){g(),"pending"===f&&(w(),y())}),e.timeout)):void y();var o={status:"pending",resource:r,callback:function(n,t){!function(n,t,r){var o="success"!==t;switch(p=p.filter((function(e){return e!==n})),f){case"pending":break;case"failed":if(o||!e.dataAfterTimeout)return;break;default:return}if("abort"===t)return s=r,void y();if(o)return s=r,void(p.length||(i.length?x():y()));if(g(),w(),!e.random){var a=e.resources.indexOf(n.resource);-1!==a&&a!==e.index&&(e.index=a)}f="completed",v.forEach((function(e){e(r)}))}(o,n,t)}};p.push(o),d++,h=setTimeout(x,e.rotate),t(r,n,o.callback)}}return"function"===typeof r&&v.push(r),setTimeout(x),function(){return{startTime:l,payload:n,status:f,queriesSent:d,queriesPending:p.length,subscribe:m,abort:b}}}function U(e){var n=(0,s.Z)((0,s.Z)({},H),e),t=[];function r(){t=t.filter((function(e){return"pending"===e().status}))}return{query:function(e,i,o){var a=Q(n,e,i,(function(e,n){r(),o&&o(e,n)}));return t.push(a),a},find:function(e){return t.find((function(n){return e(n)}))||null},setIndex:function(e){n.index=e},getIndex:function(){return n.index},cleanup:r}}function K(e){var n;if("string"===typeof e.resources)n=[e.resources];else if(!((n=e.resources)instanceof Array)||!n.length)return null;return{resources:n,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}for(var V=Object.create(null),$=["https://api.simplesvg.com","https://api.unisvg.com"],W=[];$.length>0;)1===$.length||Math.random()>.5?W.push($.shift()):W.push($.pop());function X(e,n){var t=K(n);return null!==t&&(V[e]=t,!0)}function G(e){return V[e]}function Y(){return Object.keys(V)}function ee(){}V[""]=K({resources:["https://api.iconify.design"].concat(W)});var ne=Object.create(null);function te(e,n,t){var r,i;if("string"===typeof e){var o=q(e);if(!o)return t(void 0,424),ee;i=o.send;var a=function(e){if(!ne[e]){var n=G(e);if(!n)return;var t={config:n,redundancy:U(n)};ne[e]=t}return ne[e]}(e);a&&(r=a.redundancy)}else{var c=K(e);if(c){r=U(c);var u=q(e.resources?e.resources[0]:"");u&&(i=u.send)}}return r&&i?r.query(n,i,t)().abort:(t(void 0,424),ee)}var re="iconify2",ie="iconify",oe=ie+"-count",ae=ie+"-version",ce=36e5,ue=168;function se(e,n){try{return e.getItem(n)}catch(t){}}function le(e,n,t){try{return e.setItem(n,t),!0}catch(r){}}function fe(e,n){try{e.removeItem(n)}catch(t){}}function de(e,n){return le(e,oe,n.toString())}function he(e){return parseInt(se(e,oe))||0}var pe={local:!0,session:!0},ve={local:new Set,session:new Set},ge=!1;var be="undefined"===typeof window?{}:window;function me(e){var n=e+"Storage";try{if(be&&be[n]&&"number"===typeof be[n].length)return be[n]}catch(t){}pe[e]=!1}function ye(e,n){var t=me(e);if(t){var r=se(t,ae);if(r!==re){if(r)for(var i=he(t),o=0;o<i;o++)fe(t,ie+o.toString());return le(t,ae,re),void de(t,0)}for(var a=Math.floor(Date.now()/ce)-ue,c=function(e){var r=ie+e.toString(),i=se(t,r);if("string"===typeof i){try{var o=JSON.parse(i);if("object"===typeof o&&"number"===typeof o.cached&&o.cached>a&&"string"===typeof o.provider&&"object"===typeof o.data&&"string"===typeof o.data.prefix&&n(o,e))return!0}catch(c){}fe(t,r)}},u=he(t),s=u-1;s>=0;s--)c(s)||(s===u-1?(u--,de(t,u)):ve[e].add(s))}}function we(){if(!ge)for(var e in ge=!0,pe)ye(e,(function(e){var n=e.data,t=P(e.provider,n.prefix);if(!S(t,n).length)return!1;var r=n.lastModified||-1;return t.lastModifiedCached=t.lastModifiedCached?Math.min(t.lastModifiedCached,r):r,!0}))}function xe(e,n){function t(t){var r;if(pe[t]&&(r=me(t))){var i,o=ve[t];if(o.size)o.delete(i=Array.from(o).shift());else if(!de(r,(i=he(r))+1))return;var a={cached:Math.floor(Date.now()/ce),provider:e.provider,data:n};return le(r,ie+i.toString(),JSON.stringify(a))}}ge||we(),n.lastModified&&!function(e,n){var t=e.lastModifiedCached;if(t&&t>=n)return t===n;if(e.lastModifiedCached=n,t)for(var r in pe)ye(r,(function(t){var r=t.data;return t.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===n}));return!0}(e,n.lastModified)||Object.keys(n.icons).length&&(n.not_found&&delete(n=Object.assign({},n)).not_found,t("local")||t("session"))}function ke(){}function je(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout((function(){e.iconsLoaderFlag=!1,function(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout((function(){e.pendingCallbacksFlag=!1;var n=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(n.length){var t=!1,r=e.provider,i=e.prefix;n.forEach((function(n){var o=n.icons,a=o.pending.length;o.pending=o.pending.filter((function(n){if(n.prefix!==i)return!0;var a=n.name;if(e.icons[a])o.loaded.push({provider:r,prefix:i,name:a});else{if(!e.missing.has(a))return t=!0,!0;o.missing.push({provider:r,prefix:i,name:a})}return!1})),o.pending.length!==a&&(t||F([e],n.id),n.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),n.abort))}))}})))}(e)})))}var _e=function(e,n){var t=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[];return e.forEach((function(e){var i="string"===typeof e?w(e,n,t):e;i&&r.push(i)})),r}(e,!0,I()),r=function(e){var n={loaded:[],missing:[],pending:[]},t=Object.create(null);e.sort((function(e,n){return e.provider!==n.provider?e.provider.localeCompare(n.provider):e.prefix!==n.prefix?e.prefix.localeCompare(n.prefix):e.name.localeCompare(n.name)}));var r={provider:"",prefix:"",name:""};return e.forEach((function(e){if(r.name!==e.name||r.prefix!==e.prefix||r.provider!==e.provider){r=e;var i=e.provider,o=e.prefix,a=e.name,c=t[i]||(t[i]=Object.create(null)),u=c[o]||(c[o]=P(i,o)),s={provider:i,prefix:o,name:a};(a in u.icons?n.loaded:""===o||u.missing.has(a)?n.missing:n.pending).push(s)}})),n}(t);if(!r.pending.length){var i=!0;return n&&setTimeout((function(){i&&n(r.loaded,r.missing,r.pending,ke)})),function(){i=!1}}var o,a,c=Object.create(null),u=[];return r.pending.forEach((function(e){var n=e.provider,t=e.prefix;if(t!==a||n!==o){o=n,a=t,u.push(P(n,t));var r=c[n]||(c[n]=Object.create(null));r[t]||(r[t]=[])}})),r.pending.forEach((function(e){var n=e.provider,t=e.prefix,r=e.name,i=P(n,t),o=i.pendingIcons||(i.pendingIcons=new Set);o.has(r)||(o.add(r),c[n][t].push(r))})),u.forEach((function(e){var n=e.provider,t=e.prefix;c[n][t].length&&function(e,n){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(n).sort():e.iconsToLoad=n,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout((function(){e.iconsQueueFlag=!1;var n,t=e.provider,r=e.prefix,i=e.iconsToLoad;delete e.iconsToLoad,i&&(n=q(t))&&n.prepare(t,r,i).forEach((function(n){te(t,n,(function(t){if("object"!==typeof t)n.icons.forEach((function(n){e.missing.add(n)}));else try{var r=S(e,t);if(!r.length)return;var i=e.pendingIcons;i&&r.forEach((function(e){i.delete(e)})),xe(e,t)}catch(o){console.error(o)}je(e)}))}))})))}(e,c[n][t])})),n?function(e,n,t){var r=D++,i=F.bind(null,t,r);if(!n.pending.length)return i;var o={id:r,icons:n,callback:e,abort:i};return t.forEach((function(e){(e.loaderCallbacks||(e.loaderCallbacks=[])).push(o)})),i}(n,r,u):ke},Ze=function(e){return new Promise((function(n,t){var r="string"===typeof e?w(e,!0):e;r?_e([r||e],(function(i){if(i.length&&r){var o=E(r);if(o)return void n((0,s.Z)((0,s.Z)({},d),o))}t(e)})):t(e)}))};function Ae(e,n){var t="string"===typeof e?w(e,!0,!0):null;if(!t){var r=function(e){try{var n="string"===typeof e?JSON.parse(e):e;if("string"===typeof n.body)return(0,s.Z)({},n)}catch(t){}}(e);return{value:e,data:r}}var i=E(t);if(void 0!==i||!t.prefix)return{value:e,name:t,data:i};var o=_e([t],(function(){return n(e,t,E(t))}));return{value:e,name:t,loading:o}}function Oe(e){return e.hasAttribute("inline")}var Ce=!1;try{Ce=0===navigator.vendor.indexOf("Apple")}catch(on){}var Pe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Se=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Me(e,n,t){if(1===n)return e;if(t=t||100,"number"===typeof e)return Math.ceil(e*n*t)/t;if("string"!==typeof e)return e;var r=e.split(Pe);if(null===r||!r.length)return e;for(var i=[],o=r.shift(),a=Se.test(o);;){if(a){var c=parseFloat(o);isNaN(c)?i.push(o):i.push(Math.ceil(c*n*t)/t)}else i.push(o);if(void 0===(o=r.shift()))return i.join("");a=!a}}var Te=function(e){return"unset"===e||"undefined"===e||"none"===e};function Ie(e,n){var t=(0,s.Z)((0,s.Z)({},d),e),r=(0,s.Z)((0,s.Z)({},v),n),i={left:t.left,top:t.top,width:t.width,height:t.height},o=t.body;[t,r].forEach((function(e){var n,t=[],r=e.hFlip,a=e.vFlip,c=e.rotate;switch(r?a?c+=2:(t.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),t.push("scale(-1 1)"),i.top=i.left=0):a&&(t.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),t.push("scale(1 -1)"),i.top=i.left=0),c<0&&(c-=4*Math.floor(c/4)),c%=4){case 1:n=i.height/2+i.top,t.unshift("rotate(90 "+n.toString()+" "+n.toString()+")");break;case 2:t.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:n=i.width/2+i.left,t.unshift("rotate(-90 "+n.toString()+" "+n.toString()+")")}c%2===1&&(i.left!==i.top&&(n=i.left,i.left=i.top,i.top=n),i.width!==i.height&&(n=i.width,i.width=i.height,i.height=n)),t.length&&(o='<g transform="'+t.join(" ")+'">'+o+"</g>")}));var a,c,u=r.width,l=r.height,f=i.width,h=i.height;null===u?a=Me(c=null===l?"1em":"auto"===l?h:l,f/h):(a="auto"===u?f:u,c=null===l?Me(a,h/f):"auto"===l?h:l);var p={},g=function(e,n){Te(n)||(p[e]=n.toString())};return g("width",a),g("height",c),p.viewBox=i.left.toString()+" "+i.top.toString()+" "+f.toString()+" "+h.toString(),{attributes:p,body:o}}var Ee=function(){var e;try{if("function"===typeof(e=fetch))return e}catch(on){}}();function ze(e){Ee=e}function Ne(){return Ee}var Le={prepare:function(e,n,t){var r=[],i=function(e,n){var t,r=G(e);if(!r)return 0;if(r.maxURL){var i=0;r.resources.forEach((function(e){var n=e;i=Math.max(i,n.length)}));var o=n+".json?icons=";t=r.maxURL-i-r.path.length-o.length}else t=0;return t}(e,n),o="icons",a={type:o,provider:e,prefix:n,icons:[]},c=0;return t.forEach((function(t,u){(c+=t.length+1)>=i&&u>0&&(r.push(a),a={type:o,provider:e,prefix:n,icons:[]},c=t.length),a.icons.push(t)})),r.push(a),r},send:function(e,n,t){if(Ee){var r=function(e){if("string"===typeof e){var n=G(e);if(n)return n.path}return"/"}(n.provider);switch(n.type){case"icons":var i=n.prefix,o=n.icons.join(",");r+=i+".json?"+new URLSearchParams({icons:o}).toString();break;case"custom":var a=n.uri;r+="/"===a.slice(0,1)?a.slice(1):a;break;default:return void t("abort",400)}var c=503;Ee(e+r).then((function(e){var n=e.status;if(200===n)return c=501,e.json();setTimeout((function(){t(function(e){return 404===e}(n)?"abort":"next",n)}))})).then((function(e){"object"===typeof e&&null!==e?setTimeout((function(){t("success",e)})):setTimeout((function(){404===e?t("abort",e):t("next",c)}))})).catch((function(){t("next",c)}))}else t("abort",424)}};function Re(e,n){switch(e){case"local":case"session":pe[e]=n;break;case"all":for(var t in pe)pe[t]=n}}var Fe="data-style",De="";function Je(e){De=e}function Be(e,n){var t=Array.from(e.childNodes).find((function(e){return e.hasAttribute&&e.hasAttribute(Fe)}));t||((t=document.createElement("style")).setAttribute(Fe,Fe),e.appendChild(t)),t.textContent=":host{display:inline-block;vertical-align:"+(n?"-0.125em":"0")+"}span,svg{display:block}"+De}function qe(){var e;B("",Le),I(!0);try{e=window}catch(t){}if(e){if(we(),void 0!==e.IconifyPreload){var n=e.IconifyPreload,t="Invalid IconifyPreload syntax.";"object"===typeof n&&null!==n&&(n instanceof Array?n:[n]).forEach((function(e){try{("object"!==typeof e||null===e||e instanceof Array||"object"!==typeof e.icons||"string"!==typeof e.prefix||!N(e))&&console.error(t)}catch(n){console.error(t)}}))}if(void 0!==e.IconifyProviders){var r=e.IconifyProviders;if("object"===typeof r&&null!==r)for(var i in r){var o="IconifyProviders["+i+"] is invalid.";try{var a=r[i];if("object"!==typeof a||!a||void 0===a.resources)continue;X(i,a)||console.error(o)}catch(c){console.error(o)}}}}return{enableCache:function(e){return Re(e,!0)},disableCache:function(e){return Re(e,!1)},iconExists:L,getIcon:R,listIcons:M,addIcon:z,addCollection:N,calculateSize:Me,buildIcon:Ie,loadIcons:_e,loadIcon:Ze,addAPIProvider:X,appendCustomStyle:Je,_api:{getAPIConfig:G,setAPIModule:B,sendAPIQuery:te,setFetch:ze,getFetch:Ne,listAPIProviders:Y}}}function He(e,n){var t=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(var r in n)t+=" "+r+'="'+n[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+t+">"+e+"</svg>"}var Qe,Ue={"background-color":"currentColor"},Ke={"background-color":"transparent"},Ve={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},$e={"-webkit-mask":Ue,mask:Ue,background:Ke};for(var We in $e){var Xe=$e[We];for(var Ge in Ve)Xe[We+"-"+Ge]=Ve[Ge]}function Ye(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function en(e){return void 0===Qe&&function(){try{Qe=window.trustedTypes.createPolicy("iconify",{createHTML:function(e){return e}})}catch(on){Qe=null}}(),Qe?Qe.createHTML(e):e}function nn(e,n){var t=n.icon.data,r=n.customisations,i=Ie(t,r);r.preserveAspectRatio&&(i.attributes.preserveAspectRatio=r.preserveAspectRatio);var o,a=n.renderedMode;if("svg"===a)o=function(e){var n=document.createElement("span"),t=e.attributes,r="";t.width||(r="width: inherit;"),t.height||(r+="height: inherit;"),r&&(t.style=r);var i=He(e.body,t);return n.innerHTML=en(i),n.firstChild}(i);else o=function(e,n,t){var r=document.createElement("span"),i=e.body;-1!==i.indexOf("<a")&&(i+="\x3c!-- "+Date.now()+" --\x3e");var o=e.attributes,a='url("'+(l=He(i,(0,s.Z)((0,s.Z)({},o),{},{width:n.width+"",height:n.height+""})),"data:image/svg+xml,"+function(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}(l)+'")'),c=r.style,u=(0,s.Z)({"--svg":a,width:Ye(o.width),height:Ye(o.height)},t?Ue:Ke);var l;for(var f in u)c.setProperty(f,u[f]);return r}(i,(0,s.Z)((0,s.Z)({},d),t),"mask"===a);var c=Array.from(e.childNodes).find((function(e){var n=e.tagName&&e.tagName.toUpperCase();return"SPAN"===n||"SVG"===n}));c?"SPAN"===o.tagName&&c.tagName===o.tagName?c.setAttribute("style",o.getAttribute("style")):e.replaceChild(o,c):e.appendChild(o)}function tn(e,n,t){return{rendered:!1,inline:n,icon:e,lastRender:t&&(t.rendered?t:t.lastRender)}}var rn=function(){var e,n,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"iconify-icon";try{e=window.customElements,n=window.HTMLElement}catch(on){return}if(e&&n){var s=e.get(t);if(s)return s;var l=["icon","mode","inline","width","height","rotate","flip"],f=function(e){(0,a.Z)(t,e);var n=(0,c.Z)(t);function t(){var e;(0,r.Z)(this,t),e=n.call(this),(0,u.Z)((0,o.Z)(e),"_shadowRoot",void 0),(0,u.Z)((0,o.Z)(e),"_state",void 0),(0,u.Z)((0,o.Z)(e),"_checkQueued",!1);var i=e._shadowRoot=e.attachShadow({mode:"open"}),a=Oe((0,o.Z)(e));return Be(i,a),e._state=tn({value:""},a),e._queueCheck(),e}return(0,i.Z)(t,[{key:"attributeChangedCallback",value:function(e){if("inline"===e){var n=Oe(this),t=this._state;n!==t.inline&&(t.inline=n,Be(this._shadowRoot,n))}else this._queueCheck()}},{key:"icon",get:function(){var e=this.getAttribute("icon");if(e&&"{"===e.slice(0,1))try{return JSON.parse(e)}catch(on){}return e},set:function(e){"object"===typeof e&&(e=JSON.stringify(e)),this.setAttribute("icon",e)}},{key:"inline",get:function(){return Oe(this)},set:function(e){e?this.setAttribute("inline","true"):this.removeAttribute("inline")}},{key:"restartAnimation",value:function(){var e=this._state;if(e.rendered){var n=this._shadowRoot;if("svg"===e.renderedMode)try{return void n.lastChild.setCurrentTime(0)}catch(on){}nn(n,e)}}},{key:"status",get:function(){var e=this._state;return e.rendered?"rendered":null===e.icon.data?"failed":"loading"}},{key:"_queueCheck",value:function(){var e=this;this._checkQueued||(this._checkQueued=!0,setTimeout((function(){e._check()})))}},{key:"_check",value:function(){if(this._checkQueued){this._checkQueued=!1;var e=this._state,n=this.getAttribute("icon");if(n===e.icon.value){if(e.rendered){var t=this.getAttribute("mode"),r=m(this);(e.attrMode!==t||function(e,n){for(var t in b)if(e[t]!==n[t])return!0;return!1}(e.customisations,r))&&this._renderIcon(e.icon,r,t)}}else this._iconChanged(n)}}},{key:"_iconChanged",value:function(e){var n=this,t=Ae(e,(function(e,t,r){var i=n._state;if(!i.rendered&&n.getAttribute("icon")===e){var o={value:e,name:t,data:r};o.data?n._gotIconData(o):i.icon=o}}));t.data?this._gotIconData(t):this._state=tn(t,this._state.inline,this._state)}},{key:"_gotIconData",value:function(e){this._checkQueued=!1,this._renderIcon(e,m(this),this.getAttribute("mode"))}},{key:"_renderIcon",value:function(e,n,t){var r=function(e,n){switch(n){case"svg":case"bg":case"mask":return n}return"style"===n||!Ce&&-1!==e.indexOf("<a")?-1===e.indexOf("currentColor")?"bg":"mask":"svg"}(e.data.body,t),i=this._state.inline;nn(this._shadowRoot,this._state={rendered:!0,icon:e,inline:i,customisations:n,attrMode:t,renderedMode:r})}}],[{key:"observedAttributes",get:function(){return l.slice(0)}}]),t}(n);l.forEach((function(e){e in f.prototype||Object.defineProperty(f.prototype,e,{get:function(){return this.getAttribute(e)},set:function(n){null!==n?this.setAttribute(e,n):this.removeAttribute(e)}})}));var d=qe();for(var h in d)f[h]=f.prototype[h]=d[h];return e.define(t,f),f}}()||qe();rn.enableCache,rn.disableCache,rn.iconExists,rn.getIcon,rn.listIcons,rn.addIcon,rn.addCollection,rn.calculateSize,rn.buildIcon,rn.loadIcons,rn.loadIcon,rn.addAPIProvider,rn._api}}]);
2
+ //# sourceMappingURL=5070.31a74ba7.chunk.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[5468],{65468:function(e,n,r){r.r(n),r.d(n,{UserPassports:function(){return le},UserProfile:function(){return ae},default:function(){return ce}});var t=r(71171),i=r(33028),o=(r(30969),r(65321)),s=r(70177),a=r(19865),l=r(78789),c=r(46292),d=r.n(c),u=r(61398),m=r.n(u),p=r(16380),h=r(29996),x=r(26022),f=r(25139),v=r(59467),Z=r(33359),g=r(38361),j=r(7173),b=r(1059),y=r(28595),w=r(20244),k=r(59505),P=r(36558),C=r(12502),I=r(75980),T=r(24891),S=r(30734),E=r(53279),z=r(4485),R=r(32723),_=r(34795),A=r(96234),L=r(62558),N=r.n(L),W=r(1986),q=r(86384),D=r(92522),O=r.n(D),U=r(63269),V=r(65453),B=r(31076),M=r(49884),Q=r(88876),F=r(39130),G=r(2689),H=r(87006),K=r(4953),J=r(94551),X=r(18877),Y=r(94308),$=r(39185),ee=r(54164),ne=r(13953),re=r(37574);function te(e){var n=e.data,r=e.user,t=(0,x.PE)().t,o=(0,z.Tt)().api,a=(0,$.Z)({editing:!1,dirty:!1}),c=(0,A.Z)(a,2),u=c[0],m=c[1],p=(0,ne.cI)({defaultValues:N()({notifications:{email:!0,wallet:!0,phone:!1},webhooks:[]},n)}),v=p.control,g=p.getValues,j=p.setValue,b=p.formState,y=p.handleSubmit,w=(0,ne.Dq)({control:v,name:"webhooks"}),k=y(function(){var e=(0,_.Z)((0,R.Z)().mark((function e(n){return(0,R.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.post("/api/user/extra",n);case 3:W.Z.success(t("common.saveSuccess")),m({editing:!1}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),W.Z.error((0,T.Z)(e.t0));case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(n){return e.apply(this,arguments)}}()),P=function(){var e=(0,_.Z)((0,R.Z)().mark((function e(n){return(0,R.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.put("/api/user/extra",w.fields[n]);case 3:W.Z.success(t("team.member.settings.tested")),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),W.Z.error((0,T.Z)(e.t0));case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(n){return e.apply(this,arguments)}}();return(0,re.jsxs)(f.Z,{spacing:3,children:[(0,re.jsxs)(f.Z,{sx:{width:"100%"},children:[(0,re.jsxs)(f.Z,{direction:"row",justifyContent:"space-between",children:[(0,re.jsx)(Z.Z,{variant:"h6",gutterBottom:!0,children:t("team.member.settings.notification")}),(0,re.jsx)(h.Z,{variant:"contained",size:"small",color:"primary",style:{height:"32px"},onClick:k,disabled:b.isSubmitting,children:t("common.save")})]}),(0,re.jsx)(ne.Qr,{name:"notifications.wallet",control:v,render:function(e){var n=e.field;return(0,re.jsx)(M.Z,{control:(0,re.jsx)(Q.Z,(0,i.Z)((0,i.Z)({checked:g().notifications.wallet},n),{},{onChange:function(e,r){return j(n.name,r)}})),disableTypography:!0,label:(0,re.jsxs)(Z.Z,{color:"text.primary",children:[t("team.member.settings.wallet"),(0,re.jsx)(Z.Z,{component:"span",color:"text.secondary",ml:1,children:(0,q.h1)(r)})]})})}}),(0,re.jsx)(ne.Qr,{name:"notifications.email",control:v,render:function(e){var n=e.field;return(0,re.jsx)(M.Z,{control:(0,re.jsx)(Q.Z,(0,i.Z)((0,i.Z)({checked:g().notifications.email},n),{},{onChange:function(e,r){return j(n.name,r)}})),disableTypography:!0,label:(0,re.jsxs)(Z.Z,{color:"text.primary",children:[t("team.member.settings.email"),(0,re.jsx)(Z.Z,{component:"span",color:"text.secondary",ml:1,children:r.email||""})]})})}}),(0,re.jsx)(ne.Qr,{name:"notifications.phone",control:v,render:function(e){var n=e.field;return(0,re.jsx)(M.Z,{control:(0,re.jsx)(Q.Z,(0,i.Z)((0,i.Z)({checked:g().notifications.phone},n),{},{onChange:function(e,r){return j(n.name,r)}})),disableTypography:!0,disabled:!0,label:(0,re.jsxs)(Z.Z,{color:"text.primary",children:[t("team.member.settings.phone"),(0,re.jsx)(Z.Z,{component:"span",color:"text.secondary",ml:1,children:r.phone||""})]})})}})]}),(0,re.jsxs)(f.Z,{children:[(0,re.jsxs)(f.Z,{direction:"row",justifyContent:"space-between",children:[(0,re.jsx)(Z.Z,{variant:"h6",gutterBottom:!0,children:t("team.member.settings.webhook")}),(0,re.jsxs)(f.Z,{direction:"row",children:[u.editing&&(0,re.jsx)(h.Z,{variant:"text",size:"small",color:"primary",style:{height:"32px"},onClick:function(){return m({editing:!1})},children:t("common.cancel")}),(0,re.jsx)(h.Z,{variant:"contained",size:"small",color:"primary",style:{height:"32px"},onClick:u.editing?k:function(){return m({editing:!0})},disabled:b.isSubmitting,children:u.editing?t("common.save"):t("common.edit")})]})]}),w.fields.map((function(e,n){var r,o=null===(r=d()(b.errors,"webhooks.".concat(n,".url")))||void 0===r?void 0:r.message;return u.editing?(0,re.jsxs)(f.Z,{mt:2,spacing:2,sx:{width:"100%"},direction:"row",alignItems:"center",children:[(0,re.jsxs)(f.Z,{direction:"row",spacing:2,sx:{width:"80%"},children:[(0,re.jsx)(ne.Qr,{name:"webhooks.".concat(n,".type"),control:v,rules:{required:t("common.required")},render:function(e){var n=e.field;return(0,re.jsxs)(F.Z,(0,i.Z)((0,i.Z)({},n),{},{sx:{flex:1},fullWidth:!0,size:"small",children:[(0,re.jsx)(G.Z,{value:"api",children:t("team.member.settings.url")}),(0,re.jsx)(G.Z,{value:"slack",children:t("team.member.settings.slack")})]}))}}),(0,re.jsx)(ne.Qr,{name:"webhooks.".concat(n,".url"),control:v,rules:{required:t("common.required"),validate:function(e){return O()(e)||t("common.invalid")}},render:function(e){var n=e.field;return(0,re.jsx)(H.Z,(0,i.Z)((0,i.Z)({sx:{flex:4},fullWidth:!0,size:"small",required:!0},n),{},{error:!!o,InputProps:{endAdornment:o?(0,re.jsx)(K.Z,{position:"end",children:(0,re.jsx)(Z.Z,{component:"span",color:"error",children:o})}):null}}))}})]}),(0,re.jsxs)(f.Z,{direction:"row",spacing:1,children:[(0,re.jsx)(J.Z,{size:"small",onClick:function(){return P(n)},children:(0,re.jsx)(U.Z,{color:"primary",sx:{opacity:.75}})}),(0,re.jsx)(J.Z,{size:"small",onClick:function(){return w.remove(n)},children:(0,re.jsx)(V.Z,{color:"error",sx:{opacity:.75}})})]})]},e.id):(0,re.jsx)(s.Z,{style:{alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:e.type,children:e.url},e.id)})),!u.editing&&!w.fields.length&&(0,re.jsx)(l.Z,{children:t("common.empty")}),u.editing&&(0,re.jsx)(f.Z,{mt:w.fields.length?2:1,direction:"row",justifyContent:"space-between",children:(0,re.jsxs)(h.Z,{size:"small",variant:"outlined",color:"primary",onClick:function(){return w.append({type:"slack",url:""})},children:[(0,re.jsx)(B.Z,{fontSize:"small"})," ",t("team.member.settings.add")]})})]})]})}function ie(e){var n=e.user,r=(0,z.Tt)().api,t=(0,ee.Z)((function(){return r.get("/api/user/extra").then((function(e){return e.data}))})),i=t.loading,o=t.error,s=t.data;return o?(0,re.jsx)(X.Z,{severity:"error",children:o.message}):i||!s?(0,re.jsx)(Y.Z,{}):(0,re.jsx)(te,{data:s,user:n})}var oe,se=r(38507);function ae(e){var n=e.user,r=(0,x.PE)(),t=r.t,i=r.locale;return[{name:t("team.member.name"),value:n.fullName},{name:t("common.email"),value:n.email},{name:t("common.phone"),value:n.phone},{name:t("team.member.lastLogin"),value:(0,T.B2)(n.lastLoginAt,i)},{name:t("team.member.lastLoginIp"),value:n.lastLoginIp||""},{name:t("common.createdAt"),value:(0,T.B2)(n.createdAt,i)},{name:t("team.member.source"),value:{auth0:"Auth0",wallet:"DID wallet",federated:"Federated"}[(null===n||void 0===n?void 0:n.sourceProvider)||w.USER_TYPE.WALLET]||(null===n||void 0===n?void 0:n.sourceProvider)}].filter(Boolean).map((function(e){return e.name===t("common.did")?(0,re.jsx)(s.Z,{valueComponent:"div",nameWidth:120,name:e.name,nameFormatter:function(){return t("common.did")},children:e.value},e.name):(0,re.jsx)(s.Z,{style:{alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:e.name,children:e.value},e.name)}))}function le(e){var n=e.user,r=(0,x.PE)().t,t=(d()(n,"passports")||[]).map((function(e){return(0,i.Z)((0,i.Z)({},e),{},{revoked:e.status===w.PASSPORT_STATUS.REVOKED})}));return 0===t.length?(0,re.jsx)(l.Z,{children:r("common.empty")}):(0,re.jsx)(f.Z,{direction:"row",spacing:3,children:t.map((function(e){return(0,re.jsx)(I.Z,{passport:e,user:n,width:200,color:window.blocklet.passportColor,createPassportSvg:se.Ju,sx:{flexDirection:"column",alignItems:"center"}},e.id)}))})}function ce(){var e=(0,S.useNavigate)(),n=(0,S.useParams)(),r=(0,x.PE)().t,t=(0,z.Tt)().session,i=(0,y.Z)({user:t.user,tab:n.tab||"profile"}),s={info:{label:r("common.profile"),value:"profile",component:ae},oauth:{label:r("team.member.connections"),value:"connections",component:C.Z},passports:{label:r("team.member.passports"),value:"passports",component:le},settings:{label:r("common.setting"),value:"settings",component:ie}},l=Object.values(s).map((function(e){return{label:e.label,value:e.value}})).filter((function(e){var n;return"connections"!==e.value||((null===(n=i.user)||void 0===n?void 0:n.connectedAccounts)||[]).find((function(e){var n;return e.provider!==((null===(n=i.user)||void 0===n?void 0:n.sourceProvider)||k.LOGIN_PROVIDER.WALLET)}))})),c=s[i.tab]||s.info;return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsx)(o.Z,{}),(0,re.jsxs)(de,{sx:{mt:4},children:[(0,re.jsxs)(f.Z,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,re.jsxs)(f.Z,{direction:"row",spacing:1,alignItems:"center",children:[(0,re.jsx)(v.Z,{src:i.user.avatar,variant:"rounded",style:{width:80,height:80,backgroundColor:"transparent",marginRight:8}}),(0,re.jsxs)(f.Z,{direction:"column",spacing:.5,children:[(0,re.jsx)(Z.Z,{variant:"h4",fontWeight:"bold",children:i.user.fullName}),(0,re.jsx)(g.Z,{children:(0,re.jsx)(j.Z,{label:i.user.role.toUpperCase(),size:"small",variant:"outlined",color:"success",sx:{height:"auto",fontWeight:"bold",fontSize:"12px"},icon:(0,re.jsx)(E.Z,{sx:{fontSize:"0.8em"}})})}),(0,re.jsx)(P.Z,{did:i.user.did})]})]}),(0,re.jsxs)(f.Z,{children:["profile"===i.tab&&(0,re.jsx)(h.Z,{variant:"contained",size:"small",color:"primary",onClick:function(){return t.switchProfile(m(),{})},children:r("team.member.switch.profile")}),"passports"===i.tab&&(0,re.jsx)(h.Z,{variant:"contained",size:"small",color:"primary",onClick:function(){return t.switchPassport(m(),{})},children:r("team.member.switch.passport")})]})]}),(0,re.jsx)(g.Z,{className:"tabs",sx:{my:3},children:(0,re.jsx)(a.Z,{tabs:l,current:i.tab,onChange:function(n){i.tab=n,e("".concat(w.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/").concat(n))}})}),(0,re.jsx)("div",{className:"body",children:(0,re.jsx)(c.component,{user:i.user})})]})]})}var de=(0,p.Z)(b.Z)(oe||(oe=(0,t.Z)(["\n .MuiTab-root {\n padding: 0;\n margin-right: 24px;\n min-height: 32px;\n min-width: auto;\n }\n\n .MuiTabs-root {\n min-height: 32px;\n margin-bottom: 8px;\n }\n\n .MuiTabs-scroller {\n border-bottom: 1px solid #eee;\n }\n\n .MuiCheckbox-root {\n padding-top: 2px;\n padding-bottom: 2px;\n }\n"])))},86384:function(e,n,r){n.h1=void 0;var t=r(59505);function i(e){return(null===e||void 0===e?void 0:e.connectedAccounts)||[]}function o(e){return i(e).find((function(e){return e.provider===t.LOGIN_PROVIDER.WALLET}))}n.h1=function(e){var n=o(e);return null===n||void 0===n?void 0:n.did}},36558:function(e,n,r){var t=r(33028),i=r(59740),o=r(24974),s=r.n(o),a=r(86822),l=r(19638),c=r(23586),d=r(37574),u=["did","href","external","avatarProps"];function m(e){var n=e.did,r=e.href,o=e.external,s=(e.avatarProps,(0,i.Z)(e,u)),m=(0,d.jsx)(c.Z,(0,t.Z)({did:n},s));return r?o?(0,d.jsx)(l.Z,{target:"_blank",href:r,underline:"hover",children:m}):(0,d.jsx)(a.rU,{to:r,children:m}):m}m.propTypes={did:s().string.isRequired,to:s().string,href:s().string,avatarProps:s().object,external:s().bool},m.defaultProps={to:"",href:"",avatarProps:{},external:!1},n.Z=m},12502:function(e,n,r){r.d(n,{Z:function(){return l}});r(30969);var t=r(24974),i=r.n(t),o=r(70177),s=r(36558),a=r(37574);function l(e){return(e.user.connectedAccounts||[]).map((function(e){return(0,a.jsx)(o.Z,{style:{alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:e.provider,children:(0,a.jsx)(s.Z,{did:e.did})},e.did)}))}l.propTypes={user:i().object.isRequired},l.defaultProps={}},75980:function(e,n,r){r.d(n,{Z:function(){return v}});var t,i=r(71171),o=r(33028),s=r(59740),a=(r(30969),r(24974)),l=r.n(a),c=r(16380),d=r(70093),u=r.n(d),m=r(38361),p=r(26022),h=r(69936),x=r(37574),f=["passport","user","color","width","icon","children","createPassportSvg"];function v(e){var n=e.passport,r=e.user,t=e.color,i=e.width,a=e.icon,l=e.children,c=e.createPassportSvg,d=(0,s.Z)(e,f),v=(0,p.PE)().t;return(0,x.jsxs)(Z,(0,o.Z)((0,o.Z)({display:"flex",alignItems:"center"},d),{},{children:[(0,x.jsx)("div",{dangerouslySetInnerHTML:{__html:c({title:n.title||n.name,issuer:n.issuer&&n.issuer.name,issuerDid:n.issuer&&n.issuer.id,ownerName:r.fullName,ownerDid:r.did,ownerAvatarUrl:r.avatar,revoked:n.revoked,preferredColor:t,width:i})}}),(0,x.jsxs)("div",{className:"body",children:[(0,x.jsxs)(m.Z,{className:"title",display:"flex",alignItems:"center",children:[u()(n.title),(0,x.jsxs)("div",{className:"status-icons",children:[a,n.revoked&&(0,x.jsx)(h.Z,{})]})]}),n.expirationDate&&(0,x.jsx)(m.Z,{className:"title",display:"flex",alignItems:"center",children:v("team.passport.validUntil",{date:n.expirationDate})}),l]})]}))}v.propTypes={passport:l().any.isRequired,user:l().any.isRequired,color:l().string.isRequired,createPassportSvg:l().func.isRequired,icon:l().any,children:l().any,width:l().number},v.defaultProps={icon:null,children:null,width:150};var Z=(0,c.Z)(m.Z)(t||(t=(0,i.Z)(["\n .body {\n padding: 0;\n margin-left: 24px;\n margin-top: 0;\n }\n .title {\n font-weight: 400;\n font-size: 16px;\n line-height: 19px;\n color: #222222;\n }\n .tip {\n display: flex;\n align-items: center;\n font-size: 14px;\n margin-top: 6px;\n color: #bbb;\n }\n .status-icons {\n svg {\n fill: #bfbfbf;\n height: 1.2em;\n margin-left: 0.4em;\n }\n }\n"])))}}]);
2
+ //# sourceMappingURL=5468.b54ce65b.chunk.js.map