@abtnode/webapp 1.17.6-beta-20251217-011553-818fcc8e → 1.17.6-beta-20251217-144034-62fafb94

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 (185) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-D4d-PrqS.js → AdapterDayjs-236QfbBU.js} +1 -1
  4. package/dist/assets/{Add-BSsB0LgV.js → Add-Des5za4N.js} +1 -1
  5. package/dist/assets/ArrowDropDown-DUiaaUDs.js +1 -0
  6. package/dist/assets/{Autocomplete-fQULCEh3.js → Autocomplete-Bgl3dGJJ.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-BYVgLpiJ.js → Breadcrumbs-Btf_gF-0.js} +1 -1
  8. package/dist/assets/{ButtonGroup-DgPN2-YM.js → ButtonGroup-Z9547yzG.js} +1 -1
  9. package/dist/assets/{CSSTransition-DYtKv9e9.js → CSSTransition-B5wQ0yUS.js} +1 -1
  10. package/dist/assets/{CallMerge-v67_Z3SC.js → CallMerge-4v2MXTdn.js} +1 -1
  11. package/dist/assets/{CardContent-BYECX7XP.js → CardContent-CtTlBjH7.js} +1 -1
  12. package/dist/assets/{ChevronLeft-CfyGnxyr.js → ChevronLeft-C9Y_ggAJ.js} +1 -1
  13. package/dist/assets/{ChevronRight-C4O2fZlw.js → ChevronRight-DAyMYZEW.js} +1 -1
  14. package/dist/assets/{Clear-CybwA2Jd.js → Clear-CzjQBpCS.js} +1 -1
  15. package/dist/assets/{Delete-ytwLYNdm.js → Delete-BtTxVz6z.js} +1 -1
  16. package/dist/assets/{DeleteOutline-CjxNIx7X.js → DeleteOutline-DDdlNULq.js} +1 -1
  17. package/dist/assets/{Done-BqFmWa1U.js → Done-DmttcwQI.js} +1 -1
  18. package/dist/assets/{Edit-DNmNGF17.js → Edit-CsYUR2zq.js} +1 -1
  19. package/dist/assets/{ErrorOutline-BlyorQPQ.js → ErrorOutline-C83OSg_z.js} +1 -1
  20. package/dist/assets/{FilterList-DD3VXN0o.js → FilterList-DNfECclT.js} +1 -1
  21. package/dist/assets/{Google-Bp60YdGj.js → Google-CU3piwDe.js} +1 -1
  22. package/dist/assets/{HelpOutline-kE6mcJHh.js → HelpOutline-Gx_yLuDF.js} +1 -1
  23. package/dist/assets/{KeyboardArrowDown-5IVXxFq-.js → KeyboardArrowDown-CS63clJ4.js} +1 -1
  24. package/dist/assets/{Launch-Dnww4ldq.js → Launch-9bwdZPzQ.js} +1 -1
  25. package/dist/assets/{Link-DkJ5JSUR.js → Link-DQZf-Cnd.js} +1 -1
  26. package/dist/assets/{ListItemButton-Cmz2lNmj.js → ListItemButton-Tot-RyK-.js} +1 -1
  27. package/dist/assets/{ListSubheader-CE5Bsi9j.js → ListSubheader-BIN8GsVb.js} +1 -1
  28. package/dist/assets/{LoadingButton-CyiIDt4W.js → LoadingButton-Cy89o260.js} +1 -1
  29. package/dist/assets/{MoreVert-C-gNfdF4.js → MoreVert-DOn_691b.js} +1 -1
  30. package/dist/assets/{OpenInNew-Dw9F5-j0.js → OpenInNew-D2ujTWne.js} +1 -1
  31. package/dist/assets/{Refresh-CZ4VLHgc.js → Refresh-D0ZhzC4E.js} +1 -1
  32. package/dist/assets/{Replay-BJq8nepA.js → Replay-sIyuLlhq.js} +1 -1
  33. package/dist/assets/{Search-Cc0L1P8Y.js → Search-DXzn9Lp-.js} +1 -1
  34. package/dist/assets/{Stepper-DMJHwAtc.js → Stepper-Zgoofdon.js} +1 -1
  35. package/dist/assets/{TableSearch-DIxp58MQ.js → TableSearch-BSa4dOKp.js} +1 -1
  36. package/dist/assets/{ToggleButtonGroup-D0GUjsDr.js → ToggleButtonGroup-DKenn_kW.js} +1 -1
  37. package/dist/assets/{UnfoldMore-CxNKo0Ry.js → UnfoldMore-C-42QCTj.js} +1 -1
  38. package/dist/assets/{Verified-Bmj6wp69.js → Verified-CPXkSMxG.js} +1 -1
  39. package/dist/assets/{VerifiedUser-U4nx-WO7.js → VerifiedUser-B8sBVwQC.js} +1 -1
  40. package/dist/assets/{ViewList-CFmOfqSL.js → ViewList-C8mEloA5.js} +1 -1
  41. package/dist/assets/{_createAggregator-BNHjiP2Z.js → _createAggregator-CT9vDd72.js} +1 -1
  42. package/dist/assets/{actions-LmskFz0e.js → actions-CsKJtA25.js} +1 -1
  43. package/dist/assets/{actions-DxhW-s_8.js → actions-D1Lm1JEd.js} +1 -1
  44. package/dist/assets/{agreement-Cw-Y24RV.js → agreement-BeaWnXWa.js} +1 -1
  45. package/dist/assets/api-QrlC06mC.js +1 -0
  46. package/dist/assets/{appearance-B_sAL_Xy.js → appearance-CaUuLp12.js} +1 -1
  47. package/dist/assets/{audit-logs-DrYw8YX2.js → audit-logs-BVvz-gNB.js} +1 -1
  48. package/dist/assets/{base-chart-Cnjgjyps.js → base-chart-azE0aacM.js} +1 -1
  49. package/dist/assets/{blocklet-CAtl3NS9.js → blocklet-B_b8vapJ.js} +1 -1
  50. package/dist/assets/{chain-CLyDSq6m.js → chain-DQuRoRbo.js} +1 -1
  51. package/dist/assets/{click-to-copy-B4kD-azC.js → click-to-copy-BuexyggU.js} +1 -1
  52. package/dist/assets/cloneDeep-B-GM3ClR.js +1 -0
  53. package/dist/assets/{config-navigation-EBUlfuPd.js → config-navigation-zi1EpHXk.js} +3 -3
  54. package/dist/assets/{connect-to-BBTYSJcL.js → connect-to-uRhilqPM.js} +1 -1
  55. package/dist/assets/{cssMode-Bt9MhaWE.js → cssMode-xzKgveff.js} +1 -1
  56. package/dist/assets/{delete-confirm-BW9rRHcw.js → delete-confirm-ImHpqh9B.js} +1 -1
  57. package/dist/assets/{depsEqual-CZmuZV4u.js → depsEqual-DIlm5Prx.js} +1 -1
  58. package/dist/assets/{detail-NaPLCibZ.js → detail-CsB1ATb9.js} +3 -3
  59. package/dist/assets/{domains-CRVaOfFE.js → domains-CnrJ8TbP.js} +1 -1
  60. package/dist/assets/{download-Q0QwEx4s.js → download-Chk5ZS7w.js} +1 -1
  61. package/dist/assets/{edit.svg-BwRgVxi0.js → edit.svg-J7XY7Hsh.js} +1 -1
  62. package/dist/assets/emotion-cache.browser.esm-BtAWOyO4.js +1 -0
  63. package/dist/assets/engine-DNd4CfoF.js +1 -0
  64. package/dist/assets/{freemarker2-tDqLNl-2.js → freemarker2-D7zjhCq4.js} +1 -1
  65. package/dist/assets/{get-safe-url-2iJX7eF-.js → get-safe-url-M4uziR0J.js} +1 -1
  66. package/dist/assets/getValidReactChildren-Duobzte7.js +1 -0
  67. package/dist/assets/{graphqlMode-BlUbMfzr.js → graphqlMode-C0GhJVjj.js} +2 -2
  68. package/dist/assets/{handlebars-9eJ84UTg.js → handlebars-tOVv9ziY.js} +1 -1
  69. package/dist/assets/{html-D6df9rSg.js → html-BW7PD4So.js} +1 -1
  70. package/dist/assets/{html-title-lLYk44sN.js → html-title-BVs9_wlq.js} +1 -1
  71. package/dist/assets/{htmlMode-LE_hT0Km.js → htmlMode-xMKOb_Lf.js} +1 -1
  72. package/dist/assets/{iframe-BeIjzVA5.js → iframe-BRekcQQF.js} +1 -1
  73. package/dist/assets/{index-D6qulFBc.js → index-8axptow7.js} +1 -1
  74. package/dist/assets/{index-DlsopR7t.js → index-95rGb30b.js} +1 -1
  75. package/dist/assets/{index-CfIM04Ha.js → index-B0pL7l-o.js} +2 -2
  76. package/dist/assets/{index-UQ3D2bKL.js → index-B9etyM0e.js} +1 -1
  77. package/dist/assets/{index-DqqrHhsp.js → index-BAvBoYZf.js} +1 -1
  78. package/dist/assets/{index-BPTVdEku.js → index-BGiju4eo.js} +1 -1
  79. package/dist/assets/{index-D6nTf7SK.js → index-BMXhbckP.js} +3 -3
  80. package/dist/assets/{index-DdUmpiCp.js → index-BkX5LVL8.js} +3 -3
  81. package/dist/assets/{index-BKiW1GO2.js → index-CUMH9ev3.js} +1 -1
  82. package/dist/assets/{index-B5BIzAQO.js → index-CWm3LFCr.js} +1 -1
  83. package/dist/assets/{index-CZuf0REe.js → index-CXjNOxDY.js} +1 -1
  84. package/dist/assets/{index-BhijUvdW.js → index-Cd7zjVGT.js} +1 -1
  85. package/dist/assets/{index-WvfzGhKH.js → index-CdFR6v70.js} +1 -1
  86. package/dist/assets/{index-CNTV-HhI.js → index-CoOfoUvl.js} +1 -1
  87. package/dist/assets/{index-ojNpFmwB.js → index-CqRJU2Wz.js} +1 -1
  88. package/dist/assets/{index-P7FcdKFO.js → index-CrtPsFlg.js} +1 -1
  89. package/dist/assets/{index-DLeyjgnC.js → index-CtpH5d08.js} +1 -1
  90. package/dist/assets/{index-BfBO-AOR.js → index-D2AxRjl4.js} +1 -1
  91. package/dist/assets/{index-cmzW_NwI.js → index-D3M-eD99.js} +1 -1
  92. package/dist/assets/{index-B9nSfr01.js → index-D3TFHWgY.js} +3 -3
  93. package/dist/assets/{index-CPcBs23J.js → index-DDo-FAUp.js} +1 -1
  94. package/dist/assets/{index-D1_GavIJ.js → index-DGwBkyQM.js} +1 -1
  95. package/dist/assets/{index-Dcu0Ced5.js → index-DK_hcqBI.js} +1 -1
  96. package/dist/assets/{index-Cd1hBQ_9.js → index-DN2WOMzG.js} +1 -1
  97. package/dist/assets/{index-BjV7y4g4.js → index-DQPdwz2Y.js} +1 -1
  98. package/dist/assets/{index-IxMsTtHL.js → index-DVwyJ4JG.js} +1 -1
  99. package/dist/assets/{index-jxWF1-Uj.js → index-DX-QhcNe.js} +1 -1
  100. package/dist/assets/{index-DsPQ5RNh.js → index-DcWgVTc7.js} +1 -1
  101. package/dist/assets/{index-YqJm1wxK.js → index-DfDp2UkB.js} +9 -9
  102. package/dist/assets/index-Dj8a3cuS.js +1 -0
  103. package/dist/assets/{index-BLPxMqb5.js → index-DliHjDiB.js} +1 -1
  104. package/dist/assets/{index-CxNALWK-.js → index-DqTo3Zfc.js} +1 -1
  105. package/dist/assets/{index-CUC9gaVs.js → index-Dzca3Eph.js} +1 -1
  106. package/dist/assets/{index-C8LJNLE1.js → index-GeaUvbQe.js} +1 -1
  107. package/dist/assets/{index-I7yLA1Ov.js → index-HNO5BP09.js} +1 -1
  108. package/dist/assets/{index-DmEIktUl.js → index-NFZNhczl.js} +3 -3
  109. package/dist/assets/{index-C88tq6i-.js → index-T7DaPPrZ.js} +1 -1
  110. package/dist/assets/{index-C_HV1TNt.js → index-UdYQdYeZ.js} +3 -3
  111. package/dist/assets/{index-Bk9ooLXT.js → index-ZGTYJOlF.js} +1 -1
  112. package/dist/assets/{index-Bnk9byas.js → index-aVnqs5SE.js} +1 -1
  113. package/dist/assets/{index-Cu2YPuaF.js → index-aZ0P5xMq.js} +1 -1
  114. package/dist/assets/{index-D_bACieO.js → index-eCz9tbys.js} +1 -1
  115. package/dist/assets/{index-20VJ2Oit.js → index-gYQgg1uX.js} +1 -1
  116. package/dist/assets/{index-2yC9CX7x.js → index-m0QvVu6g.js} +1 -1
  117. package/dist/assets/{index-Mpmy1dYW.js → index-qB7t2ll3.js} +1 -1
  118. package/dist/assets/{index.esm-JPVKYAuW.js → index.esm-BDwjJuws.js} +1 -1
  119. package/dist/assets/{install-from-url-a0384hu9.js → install-from-url-BHD7ooeJ.js} +1 -1
  120. package/dist/assets/{invitation-CdbygWIR.js → invitation-BdW0X7yz.js} +1 -1
  121. package/dist/assets/{is-path-prefix-equal-BK7rdpKT.js → is-path-prefix-equal-CqqICkbj.js} +1 -1
  122. package/dist/assets/{item-C3UkBhG5.js → item-DVPBqmze.js} +1 -1
  123. package/dist/assets/{javascript-DkE91zSZ.js → javascript-R4JASNoM.js} +1 -1
  124. package/dist/assets/{jsonMode-CBrNM7_M.js → jsonMode-Dnd3iDrj.js} +1 -1
  125. package/dist/assets/{liquid-CnsOwi8j.js → liquid-DS_tFa90.js} +1 -1
  126. package/dist/assets/{list-header-C7PJrzvN.js → list-header-DIo8-J88.js} +1 -1
  127. package/dist/assets/{lock.svg-Rm7SZx1d.js → lock.svg-CYcx9CJE.js} +1 -1
  128. package/dist/assets/{log-DEFMVzdt.js → log-DxBmpu0q.js} +1 -1
  129. package/dist/assets/{lottie-react.esm-B-ezAxOL.js → lottie-react.esm-B1QMlD6I.js} +1 -1
  130. package/dist/assets/{mdx-CZIaKyUY.js → mdx-BmkQn3Gr.js} +1 -1
  131. package/dist/assets/{memory-i6finnCy.js → memory-NNIOAp-5.js} +1 -1
  132. package/dist/assets/{metric-CihRbocA.js → metric-B3PRczUq.js} +1 -1
  133. package/dist/assets/omit-ewJIh-hW.js +1 -0
  134. package/dist/assets/{overview-BKE4gv-F.js → overview-UGi51Hmm.js} +1 -1
  135. package/dist/assets/{permission-DlhGxFII.js → permission-DDKds_VS.js} +1 -1
  136. package/dist/assets/{preference-BtrpCLMm.js → preference-C6jdAtaj.js} +3 -3
  137. package/dist/assets/{python-DJYt3n7B.js → python-CAc1dG-m.js} +1 -1
  138. package/dist/assets/{raf-schd.esm-D8v9lZx_.js → raf-schd.esm-DtLayBIf.js} +1 -1
  139. package/dist/assets/{razor-hMRIDDQT.js → razor-ac-meNWY.js} +1 -1
  140. package/dist/assets/{rotate-session-key-WBI1WJWo.js → rotate-session-key-DXCF4wZ3.js} +1 -1
  141. package/dist/assets/{runtime-Bc-gjnta.js → runtime-4wraYeNg.js} +1 -1
  142. package/dist/assets/schema-C2x1Agyu.js +1 -0
  143. package/dist/assets/sdk-DjOw_oab.js +1 -0
  144. package/dist/assets/{service-C3is7e0x.js → service-BmS-Hfnk.js} +1 -1
  145. package/dist/assets/{shorten-label-DL-itFUz.js → shorten-label-DYIwy50H.js} +1 -1
  146. package/dist/assets/{simple-select-BAsjOjPA.js → simple-select-Dl66gaGg.js} +1 -1
  147. package/dist/assets/{spaces-Djmw0nt4.js → spaces-CIbaLYiX.js} +1 -1
  148. package/dist/assets/{status-D2Drllod.js → status-BLdIB43U.js} +1 -1
  149. package/dist/assets/{status-D7ZlLl4T.js → status-FhheVLzV.js} +1 -1
  150. package/dist/assets/{switch-control-BBA1I68_.js → switch-control-DMPIVGLz.js} +1 -1
  151. package/dist/assets/{table-icons-CqagwqOY.js → table-icons-CKVRCGfs.js} +1 -1
  152. package/dist/assets/{team-D2Gv3KS6.js → team-BH09WBcn.js} +1 -1
  153. package/dist/assets/{toLower-CreXzxO2.js → toLower-D2IQg44t.js} +1 -1
  154. package/dist/assets/toUpper-DhyOAo1_.js +1 -0
  155. package/dist/assets/{traffic-lQhdhL0g.js → traffic-Rb_HJzxE.js} +1 -1
  156. package/dist/assets/{tsMode-B0t-i9QO.js → tsMode-C6_gO0t8.js} +1 -1
  157. package/dist/assets/{typescript-BWstSdq7.js → typescript-C8KE2NUj.js} +1 -1
  158. package/dist/assets/{url-evaluation-xPcTMwue.js → url-evaluation-BSVN9Sr-.js} +1 -1
  159. package/dist/assets/{url-join-DaMo7uyz.js → url-join-7gtYpqME.js} +1 -1
  160. package/dist/assets/{use-mobile-DAmtuic1.js → use-mobile-CHNtQz3M.js} +1 -1
  161. package/dist/assets/{use-mobile-DqI6fEdw.js → use-mobile-Cvb4FhMO.js} +1 -1
  162. package/dist/assets/{useAsync-8DzECKWt.js → useAsync-BJp2j1-A.js} +1 -1
  163. package/dist/assets/{useAsyncRetry-CndpIWJk.js → useAsyncRetry-Zp4PKIr6.js} +1 -1
  164. package/dist/assets/{useLocalStorage-BL64yJ27.js → useLocalStorage-DQlL9Uk_.js} +1 -1
  165. package/dist/assets/{useThemeProps-URhp63Pk.js → useThemeProps-CR5EdUim.js} +1 -1
  166. package/dist/assets/{util-Cx7Tm9SQ.js → util-TQDWHiT7.js} +1 -1
  167. package/dist/assets/{wait-container-BAd15_CC.js → wait-container-DI1fYqjh.js} +1 -1
  168. package/dist/assets/{without-wallet-C_iBTPyr.js → without-wallet-CYR1YjcE.js} +1 -1
  169. package/dist/assets/wrap-locale-CtR1iX6O.js +1 -0
  170. package/dist/assets/{xml-HxQqV2ss.js → xml-CarJoMuA.js} +1 -1
  171. package/dist/assets/{yaml-pWyAJblD.js → yaml-cKOyFvAs.js} +1 -1
  172. package/dist/index.html +1 -1
  173. package/package.json +1 -1
  174. package/dist/assets/ArrowDropDown-CNKThDMg.js +0 -1
  175. package/dist/assets/api-CM8nEaeN.js +0 -1
  176. package/dist/assets/cloneDeep-B7ITWJEe.js +0 -1
  177. package/dist/assets/emotion-cache.browser.esm-OrWbvjn-.js +0 -1
  178. package/dist/assets/engine-CyztVVgp.js +0 -1
  179. package/dist/assets/getValidReactChildren-BaHtQCbY.js +0 -1
  180. package/dist/assets/index-BtepVdqB.js +0 -1
  181. package/dist/assets/omit-CzDjJ0V8.js +0 -1
  182. package/dist/assets/schema-HU2ZEH5u.js +0 -1
  183. package/dist/assets/sdk-46pKrnQg.js +0 -1
  184. package/dist/assets/toUpper-Crz2bdSG.js +0 -1
  185. package/dist/assets/wrap-locale-DIHRO_br.js +0 -1
@@ -0,0 +1 @@
1
+ import{c6 as c,r as _,aT as f,h1 as S,cW as r}from"./index-NFZNhczl.js";var d=function(n){var a=c(_.useState(n),2),u=a[0],o=a[1],i=f(function(t){o(function(e){var s=S(t)?t(e):t;return s?r(r({},e),s):e})});return[u,i]};export{d as u};
@@ -1 +1 @@
1
- import{u,j as s,C as d,A as x,ay as v,cw as C,aT as f,af as j,aH as I,K as P,bC as S}from"./index-DmEIktUl.js";import{I as T}from"./invitation-CdbygWIR.js";import{g as E}from"./get-safe-url-2iJX7eF-.js";import"./index-I7yLA1Ov.js";import"./index-Bnk9byas.js";import"./emotion-cache.browser.esm-OrWbvjn-.js";import"./sdk-46pKrnQg.js";import"./wrap-locale-DIHRO_br.js";import"./index-Dcu0Ced5.js";function R(n){const{searchParams:a}=new URL(window.location.href),g=x(),{api:i,session:r}=v(),{info:l}=u(),c=a.get("redirect"),p=a.get("id"),o=C(async()=>{if(!p)return null;const{data:t}=await i.get("/api/invitation",{params:{inviteId:p,mode:"issue-passport"}});return t}),m=f(()=>{if(o.error)throw o.error;return o?.data}),h=f(async(t,w=e=>e)=>{t&&(t.sessionToken&&j(w(t.sessionToken)),await r.refresh()),setTimeout(()=>{if(c){const e=decodeURIComponent(c);e.startsWith(I.WELLKNOWN_SERVICE_PATH_PREFIX)?g(e,{replace:!0}):window.location.href=E(e)}else window.location.href=window.env.pathPrefix||"/"},50)});return o.loading?s.jsx(d,{}):s.jsx(P,{className:"page-invite",sx:{width:"100vw",height:"100%",minHeight:"100vh",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"#f6f8fa",overflow:"auto",padding:"20px"},children:s.jsx(T,{...n,action:"issue-passport",getDataFn:m,createPassportSvg:t=>S(t,l),checkFn:i.get,onLoginSuccess:h,passportColor:"default",onLogin:r.login})})}function b(){return u().loading?s.jsx(d,{}):s.jsx(R,{})}export{b as default};
1
+ import{u,j as s,C as d,A as x,ay as v,cw as C,aT as f,af as j,aH as I,K as P,bC as S}from"./index-NFZNhczl.js";import{I as T}from"./invitation-BdW0X7yz.js";import{g as E}from"./get-safe-url-M4uziR0J.js";import"./index-HNO5BP09.js";import"./index-aVnqs5SE.js";import"./emotion-cache.browser.esm-BtAWOyO4.js";import"./sdk-DjOw_oab.js";import"./wrap-locale-CtR1iX6O.js";import"./index-DK_hcqBI.js";function R(n){const{searchParams:a}=new URL(window.location.href),g=x(),{api:i,session:r}=v(),{info:l}=u(),c=a.get("redirect"),p=a.get("id"),o=C(async()=>{if(!p)return null;const{data:t}=await i.get("/api/invitation",{params:{inviteId:p,mode:"issue-passport"}});return t}),m=f(()=>{if(o.error)throw o.error;return o?.data}),h=f(async(t,w=e=>e)=>{t&&(t.sessionToken&&j(w(t.sessionToken)),await r.refresh()),setTimeout(()=>{if(c){const e=decodeURIComponent(c);e.startsWith(I.WELLKNOWN_SERVICE_PATH_PREFIX)?g(e,{replace:!0}):window.location.href=E(e)}else window.location.href=window.env.pathPrefix||"/"},50)});return o.loading?s.jsx(d,{}):s.jsx(P,{className:"page-invite",sx:{width:"100vw",height:"100%",minHeight:"100vh",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"#f6f8fa",overflow:"auto",padding:"20px"},children:s.jsx(T,{...n,action:"issue-passport",getDataFn:m,createPassportSvg:t=>S(t,l),checkFn:i.get,onLoginSuccess:h,passportColor:"default",onLogin:r.login})})}function b(){return u().loading?s.jsx(d,{}):s.jsx(R,{})}export{b as default};
@@ -1,4 +1,4 @@
1
- import{ak as ee,A as T,r as f,a as te,b as se,V as S,u as j,x as re,aw as A,i as F,j as t,w as q,ax as oe,T as C,y as k,$,o as m,ay as ne,O as ae,v as _,C as N,az as ie,H as W,Y as O,aA as le,aB as ce,K as E,aC as ue,L as de,aD as pe,aa as he,s as M,a7 as fe,a8 as me,aE as ge,a9 as xe}from"./index-DmEIktUl.js";import{u as L}from"./useLocalStorage-BL64yJ27.js";import{C as be,c as ke,e as ye,_ as Se,a as je,d as we,s as ve,S as V,b as Pe,A as Ce}from"./item-C3UkBhG5.js";import{e as D}from"./engine-CyztVVgp.js";import{g as U}from"./get-safe-url-2iJX7eF-.js";import{P as z}from"./permission-DlhGxFII.js";import{A as Re}from"./ArrowDropDown-CNKThDMg.js";import{B as Le}from"./Breadcrumbs-BYVgLpiJ.js";import"./index-D_bACieO.js";import"./KeyboardArrowDown-5IVXxFq-.js";import"./ChevronLeft-CfyGnxyr.js";import"./ChevronRight-C4O2fZlw.js";import"./Search-Cc0L1P8Y.js";import"./index-C88tq6i-.js";import"./blocklet-CAtl3NS9.js";import"./Autocomplete-fQULCEh3.js";import"./ListSubheader-CE5Bsi9j.js";import"./Verified-Bmj6wp69.js";import"./VerifiedUser-U4nx-WO7.js";import"./Add-BSsB0LgV.js";import"./Launch-Dnww4ldq.js";import"./Done-BqFmWa1U.js";import"./DeleteOutline-CjxNIx7X.js";import"./delete-confirm-BW9rRHcw.js";import"./click-to-copy-B4kD-azC.js";import"./MoreVert-C-gNfdF4.js";import"./ButtonGroup-DgPN2-YM.js";import"./getValidReactChildren-BaHtQCbY.js";function Be(e){const r=ee(),c=T(),[s,o]=L(`sid:blocklet:purchase:${e}`),[l,u]=f.useState(!1),[d,a]=f.useState(null),p=()=>{const{pathname:n,searchParams:b}=new URL(window.location.href),g=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";b.get("sid")&&(o(""),c(n.replace(g,"/"),{replace:!0}))},i=!!(r.get("assetDid")&&s&&r.get("sid")===s);return te(se.BlockletEvents.purchaseChange,n=>{n.did===e&&(a(n.session),["declined","confirmed","error"].includes(n.session.status)&&(u(!0),setTimeout(p,2e3)))}),f.useEffect(()=>{d&&d.id!==s&&o(d.id)},[d]),{hasCompleted:l,hasPurchased:i,session:d,setSession:a,doRedirect:p}}function De(e){setTimeout(()=>{window.location.href=U(e,{allowDomains:null})},1e3)}function K({meta:e,onCancel:r,handlePaySuccess:c=De,storeUrl:s}){const{t:o}=S(),{info:l}=j(),[u,d]=f.useState("both"),[a,p]=f.useState(1),i=re(l),n=A(e,l,s),b=P=>{P!==u&&d(P)},g=()=>{u&&(p(2),u==="verify"&&(window.location.href=U(n)))},w=(P,B)=>{B!=="backdropClick"&&r()},x=()=>{c(n)},h=F.getDisplayName({meta:e});if(u==="purchase"&&a===2)return t.jsx(q,{open:!0,popup:!0,baseUrl:s,action:"acquire-asset",checkFn:oe.create({baseURL:k(s,"/store")}).get,onSuccess:x,onClose:r,checkTimeout:60*5e3,extraParams:{factory:e.nftFactory},webWalletUrl:i,disableClose:!0,saveConnect:!1,showDownload:!1,messages:{title:o("store.purchase.auth.title",{name:h}),scan:o("store.purchase.auth.scan"),confirm:o("store.purchase.auth.confirm"),success:t.jsxs(t.Fragment,{children:[t.jsx(C,{gutterBottom:!0,children:o("store.purchase.auth.success")}),t.jsxs(C,{variant:"subtitle2",children:[" ",o("store.purchase.autoLaunch",{name:h})]})]})}});const v=$;return t.jsx(v,{title:o("store.purchase.title",{name:h}),disableEscapeKeyDown:!0,open:!0,fullWidth:!0,onClose:w,children:t.jsx("div",{style:{marginBottom:16},children:t.jsx(be,{action:u,onNext:g,onSelect:b})})})}K.propTypes={...ke,storeUrl:m.string.isRequired,handlePaySuccess:m.func};function H({meta:e,buttonText:r,storeUrl:c,isResource:s=!1}){const{t:o}=S(),l=T(),{info:u}=j(),{api:d}=ne(),a=F.isFreeBlocklet(e)===!1,[p,i]=f.useState(!1),{hasPurchased:n}=Be(e.did),[b,g]=f.useState(!1),[w]=L("instant-blocklet-install",!1),[x,h]=f.useState(!1),v=f.useMemo(()=>p?o(a?"blocklet.status.purchasing":"blocklet.status.waiting"):"",[p,o,a]),P=f.useMemo(()=>s?o("blocklet.status.resource"):a?r.purchase:r.launch,[a,r,s]),B=y=>{y.preventDefault(),y.stopPropagation();try{if(i(!0),a){g(!0);return}if(w){h(!0);return}if(!a){const R=A(e,u,c);window.location.href=U(R)}}catch(R){W.error(O(R),{autoHideDuration:5e3}),console.error("Blocklet installed failed",R)}finally{i(!1)}},J=()=>{i(!1),g(!1)},X=y=>{i(!1),h(!1),l(`/blocklets/${y.appDid}/components`)},Z=()=>{i(!1),h(!1)};return t.jsxs(t.Fragment,{children:[t.jsx(ye,{children:t.jsx(z,{permission:"mutate_blocklets",children:y=>t.jsx(ae,{title:s?o("launchBlocklet.error.resourceBlocklet"):"",children:t.jsx(_,{onClick:B,size:"small",sx:{cursor:s?"not-allowed":"pointer",overflow:"hidden"},disabled:!!(v||!y),variant:"outlined",color:"primary","data-cy":"install-blocklet",children:v?t.jsxs(t.Fragment,{children:[t.jsx(N,{size:16,style:{marginRight:3}}),v]}):P},e.did)})})}),(n||b)&&t.jsx(K,{method:"launch",meta:e,mode:"both",onCancel:J,storeUrl:c}),x&&t.jsx(q,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:"launch-free-blocklet-by-session",checkFn:d.get,checkTimeout:5*60*1e3,onSuccess:X,extraParams:{title:e.title,blockletMetaUrl:decodeURIComponent(ie(c,e.did).trim())},messages:{title:o("setup.keyPair.title"),scan:o("setup.keyPair.scan"),confirm:o("setup.keyPair.confirm"),success:o("setup.keyPair.success")},onClose:Z})]})}H.propTypes={isResource:m.bool,meta:m.object.isRequired,buttonText:m.shape({purchase:m.string.isRequired,launch:m.string.isRequired}).isRequired,storeUrl:m.string.isRequired};const Ee=(e,r,c)=>{const s=he(r);return k(c,`/blocklets/${e.did}/?server-url=${s}`)},I=({meta:e,attribute:r,value:c})=>e._formatted?e._formatted[r]:c,Ue=(e,r)=>{if(!e||!r)return"";try{return k(r,e)}catch(c){return console.warn("Failed to construct avatar URL:",c),""}};function G({blocklet:e,endpoint:r="",serverVersion:c=""}){const{t:s}=S(),o=j();let l=k(o.imgPrefix,"blocklet.png");const u=r;if(u.startsWith("http")&&e.logo)l=k(u,ue(e.did,e.logo,e.version));else{let n=(window.env.apiPrefix||"/").replace(/^\/+/,"").replace(/\/+$/,"");n&&(n=`/${n}`),l=k(n,`/blocklet/logo/${e.did}`)}try{const i=new URL(l);i.searchParams.set("v",e.version||+new Date),l=i.href}catch{}const d=i=>i.currentTarget.contains(i.target)?!0:(i.preventDefault(),!1),a={meta:e,buttonText:{purchase:s("common.purchase"),launch:s("common.launch")},storeUrl:u},p=t.jsx("div",{style:{display:"flex",alignItems:"center"},children:t.jsx(je,{serverVersion:c,requirementVersion:e.requirements?.server,size:"small",children:t.jsx(H,{isResource:!(D.hasStartEngine(e)||D.isGatewayBlocklet(e)||D.isPackBlocklet(e)),...a})})});return t.jsx(de,{href:Ee(e,o.info,r),style:{color:"initial",textDecoration:"none"},onClick:d,target:"_blank",children:t.jsx(Ie,{title:I({meta:e,attribute:"title",value:e.title||e.name}),did:e.did,description:I({meta:e,attribute:"description",value:e.description}),cover:e.logo?l:"",version:e.version,onButtonClick:null,icons:e.docker?.image?[{key:"docker",icon:t.jsx(E,{sx:{display:"flex",color:"primary.main"},children:t.jsx(pe,{icon:we})}),title:s("blocklet.dockerImage")}]:[],official:e.isOfficial?{tooltip:s("blocklet.component.isOfficial")}:void 0,author:e.owner.fullName,avatar:Ue(e.owner.avatar,r),download:e.stats.downloads,button:p})})}G.propTypes={blocklet:m.object.isRequired,serverVersion:m.string,endpoint:m.string};function Y({storeUrl:e,handleSearchSelect:r=null,extraFilter:c=void 0,...s}){const{locale:o}=S(),l=j(),[u,d]=f.useState({}),a=n=>{d(n)},p=e,i=l?.info?.version;return f.useEffect(()=>{d({})},[p]),t.jsx(le,{FallbackComponent:ce,resetKeys:[p],children:t.jsx(E,{...s,sx:{"& .title-bar":{pt:0},".blocklet-list":{mt:0},"& h2":{display:"none"}},children:t.jsx(Se,{layout:{showExplore:!1,showTitle:!0},blockletRender:n=>t.jsx(G,{...n,endpoint:p}),baseSearch:!0,endpoint:p,locale:o,onFilterChange:a,onSearchSelect:r,filters:u,extraFilter:c,serverVersion:i})})})}Y.propTypes={storeUrl:m.string.isRequired,handleSearchSelect:m.func,extraFilter:m.func};const Ie=M(ve)`
1
+ import{ak as ee,A as T,r as f,a as te,b as se,V as S,u as j,x as re,aw as A,i as F,j as t,w as q,ax as oe,T as C,y as k,$,o as m,ay as ne,O as ae,v as _,C as N,az as ie,H as W,Y as O,aA as le,aB as ce,K as E,aC as ue,L as de,aD as pe,aa as he,s as M,a7 as fe,a8 as me,aE as ge,a9 as xe}from"./index-NFZNhczl.js";import{u as L}from"./useLocalStorage-DQlL9Uk_.js";import{C as be,c as ke,e as ye,_ as Se,a as je,d as we,s as ve,S as V,b as Pe,A as Ce}from"./item-DVPBqmze.js";import{e as D}from"./engine-DNd4CfoF.js";import{g as U}from"./get-safe-url-M4uziR0J.js";import{P as z}from"./permission-DDKds_VS.js";import{A as Re}from"./ArrowDropDown-DUiaaUDs.js";import{B as Le}from"./Breadcrumbs-Btf_gF-0.js";import"./index-eCz9tbys.js";import"./KeyboardArrowDown-CS63clJ4.js";import"./ChevronLeft-C9Y_ggAJ.js";import"./ChevronRight-DAyMYZEW.js";import"./Search-DXzn9Lp-.js";import"./index-T7DaPPrZ.js";import"./blocklet-B_b8vapJ.js";import"./Autocomplete-Bgl3dGJJ.js";import"./ListSubheader-BIN8GsVb.js";import"./Verified-CPXkSMxG.js";import"./VerifiedUser-B8sBVwQC.js";import"./Add-Des5za4N.js";import"./Launch-9bwdZPzQ.js";import"./Done-DmttcwQI.js";import"./DeleteOutline-DDdlNULq.js";import"./delete-confirm-ImHpqh9B.js";import"./click-to-copy-BuexyggU.js";import"./MoreVert-DOn_691b.js";import"./ButtonGroup-Z9547yzG.js";import"./getValidReactChildren-Duobzte7.js";function Be(e){const r=ee(),c=T(),[s,o]=L(`sid:blocklet:purchase:${e}`),[l,u]=f.useState(!1),[d,a]=f.useState(null),p=()=>{const{pathname:n,searchParams:b}=new URL(window.location.href),g=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";b.get("sid")&&(o(""),c(n.replace(g,"/"),{replace:!0}))},i=!!(r.get("assetDid")&&s&&r.get("sid")===s);return te(se.BlockletEvents.purchaseChange,n=>{n.did===e&&(a(n.session),["declined","confirmed","error"].includes(n.session.status)&&(u(!0),setTimeout(p,2e3)))}),f.useEffect(()=>{d&&d.id!==s&&o(d.id)},[d]),{hasCompleted:l,hasPurchased:i,session:d,setSession:a,doRedirect:p}}function De(e){setTimeout(()=>{window.location.href=U(e,{allowDomains:null})},1e3)}function K({meta:e,onCancel:r,handlePaySuccess:c=De,storeUrl:s}){const{t:o}=S(),{info:l}=j(),[u,d]=f.useState("both"),[a,p]=f.useState(1),i=re(l),n=A(e,l,s),b=P=>{P!==u&&d(P)},g=()=>{u&&(p(2),u==="verify"&&(window.location.href=U(n)))},w=(P,B)=>{B!=="backdropClick"&&r()},x=()=>{c(n)},h=F.getDisplayName({meta:e});if(u==="purchase"&&a===2)return t.jsx(q,{open:!0,popup:!0,baseUrl:s,action:"acquire-asset",checkFn:oe.create({baseURL:k(s,"/store")}).get,onSuccess:x,onClose:r,checkTimeout:60*5e3,extraParams:{factory:e.nftFactory},webWalletUrl:i,disableClose:!0,saveConnect:!1,showDownload:!1,messages:{title:o("store.purchase.auth.title",{name:h}),scan:o("store.purchase.auth.scan"),confirm:o("store.purchase.auth.confirm"),success:t.jsxs(t.Fragment,{children:[t.jsx(C,{gutterBottom:!0,children:o("store.purchase.auth.success")}),t.jsxs(C,{variant:"subtitle2",children:[" ",o("store.purchase.autoLaunch",{name:h})]})]})}});const v=$;return t.jsx(v,{title:o("store.purchase.title",{name:h}),disableEscapeKeyDown:!0,open:!0,fullWidth:!0,onClose:w,children:t.jsx("div",{style:{marginBottom:16},children:t.jsx(be,{action:u,onNext:g,onSelect:b})})})}K.propTypes={...ke,storeUrl:m.string.isRequired,handlePaySuccess:m.func};function H({meta:e,buttonText:r,storeUrl:c,isResource:s=!1}){const{t:o}=S(),l=T(),{info:u}=j(),{api:d}=ne(),a=F.isFreeBlocklet(e)===!1,[p,i]=f.useState(!1),{hasPurchased:n}=Be(e.did),[b,g]=f.useState(!1),[w]=L("instant-blocklet-install",!1),[x,h]=f.useState(!1),v=f.useMemo(()=>p?o(a?"blocklet.status.purchasing":"blocklet.status.waiting"):"",[p,o,a]),P=f.useMemo(()=>s?o("blocklet.status.resource"):a?r.purchase:r.launch,[a,r,s]),B=y=>{y.preventDefault(),y.stopPropagation();try{if(i(!0),a){g(!0);return}if(w){h(!0);return}if(!a){const R=A(e,u,c);window.location.href=U(R)}}catch(R){W.error(O(R),{autoHideDuration:5e3}),console.error("Blocklet installed failed",R)}finally{i(!1)}},J=()=>{i(!1),g(!1)},X=y=>{i(!1),h(!1),l(`/blocklets/${y.appDid}/components`)},Z=()=>{i(!1),h(!1)};return t.jsxs(t.Fragment,{children:[t.jsx(ye,{children:t.jsx(z,{permission:"mutate_blocklets",children:y=>t.jsx(ae,{title:s?o("launchBlocklet.error.resourceBlocklet"):"",children:t.jsx(_,{onClick:B,size:"small",sx:{cursor:s?"not-allowed":"pointer",overflow:"hidden"},disabled:!!(v||!y),variant:"outlined",color:"primary","data-cy":"install-blocklet",children:v?t.jsxs(t.Fragment,{children:[t.jsx(N,{size:16,style:{marginRight:3}}),v]}):P},e.did)})})}),(n||b)&&t.jsx(K,{method:"launch",meta:e,mode:"both",onCancel:J,storeUrl:c}),x&&t.jsx(q,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:"launch-free-blocklet-by-session",checkFn:d.get,checkTimeout:5*60*1e3,onSuccess:X,extraParams:{title:e.title,blockletMetaUrl:decodeURIComponent(ie(c,e.did).trim())},messages:{title:o("setup.keyPair.title"),scan:o("setup.keyPair.scan"),confirm:o("setup.keyPair.confirm"),success:o("setup.keyPair.success")},onClose:Z})]})}H.propTypes={isResource:m.bool,meta:m.object.isRequired,buttonText:m.shape({purchase:m.string.isRequired,launch:m.string.isRequired}).isRequired,storeUrl:m.string.isRequired};const Ee=(e,r,c)=>{const s=he(r);return k(c,`/blocklets/${e.did}/?server-url=${s}`)},I=({meta:e,attribute:r,value:c})=>e._formatted?e._formatted[r]:c,Ue=(e,r)=>{if(!e||!r)return"";try{return k(r,e)}catch(c){return console.warn("Failed to construct avatar URL:",c),""}};function G({blocklet:e,endpoint:r="",serverVersion:c=""}){const{t:s}=S(),o=j();let l=k(o.imgPrefix,"blocklet.png");const u=r;if(u.startsWith("http")&&e.logo)l=k(u,ue(e.did,e.logo,e.version));else{let n=(window.env.apiPrefix||"/").replace(/^\/+/,"").replace(/\/+$/,"");n&&(n=`/${n}`),l=k(n,`/blocklet/logo/${e.did}`)}try{const i=new URL(l);i.searchParams.set("v",e.version||+new Date),l=i.href}catch{}const d=i=>i.currentTarget.contains(i.target)?!0:(i.preventDefault(),!1),a={meta:e,buttonText:{purchase:s("common.purchase"),launch:s("common.launch")},storeUrl:u},p=t.jsx("div",{style:{display:"flex",alignItems:"center"},children:t.jsx(je,{serverVersion:c,requirementVersion:e.requirements?.server,size:"small",children:t.jsx(H,{isResource:!(D.hasStartEngine(e)||D.isGatewayBlocklet(e)||D.isPackBlocklet(e)),...a})})});return t.jsx(de,{href:Ee(e,o.info,r),style:{color:"initial",textDecoration:"none"},onClick:d,target:"_blank",children:t.jsx(Ie,{title:I({meta:e,attribute:"title",value:e.title||e.name}),did:e.did,description:I({meta:e,attribute:"description",value:e.description}),cover:e.logo?l:"",version:e.version,onButtonClick:null,icons:e.docker?.image?[{key:"docker",icon:t.jsx(E,{sx:{display:"flex",color:"primary.main"},children:t.jsx(pe,{icon:we})}),title:s("blocklet.dockerImage")}]:[],official:e.isOfficial?{tooltip:s("blocklet.component.isOfficial")}:void 0,author:e.owner.fullName,avatar:Ue(e.owner.avatar,r),download:e.stats.downloads,button:p})})}G.propTypes={blocklet:m.object.isRequired,serverVersion:m.string,endpoint:m.string};function Y({storeUrl:e,handleSearchSelect:r=null,extraFilter:c=void 0,...s}){const{locale:o}=S(),l=j(),[u,d]=f.useState({}),a=n=>{d(n)},p=e,i=l?.info?.version;return f.useEffect(()=>{d({})},[p]),t.jsx(le,{FallbackComponent:ce,resetKeys:[p],children:t.jsx(E,{...s,sx:{"& .title-bar":{pt:0},".blocklet-list":{mt:0},"& h2":{display:"none"}},children:t.jsx(Se,{layout:{showExplore:!1,showTitle:!0},blockletRender:n=>t.jsx(G,{...n,endpoint:p}),baseSearch:!0,endpoint:p,locale:o,onFilterChange:a,onSearchSelect:r,filters:u,extraFilter:c,serverVersion:i})})})}Y.propTypes={storeUrl:m.string.isRequired,handleSearchSelect:m.func,extraFilter:m.func};const Ie=M(ve)`
2
2
  .ms-highlight {
3
3
  color: ${e=>e.theme.palette.primary.main};
4
4
  }
@@ -1,4 +1,4 @@
1
- import{cJ as $m,be as jL,g_ as oT,bb as Xm,bc as Zm,cW as qm,bf as JL,r as QL}from"./index-DmEIktUl.js";/*! *****************************************************************************
1
+ import{cJ as $m,be as jL,g_ as oT,bb as Xm,bc as Zm,cW as qm,bf as JL,r as QL}from"./index-NFZNhczl.js";/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -1 +1 @@
1
- import{eH as D}from"./index-DmEIktUl.js";function f(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function $(e){return f(e)==="object"}function re(e){return Array.isArray(e)&&e.length>0&&e.every(m=>"message"in m)}function Y(e,m){return e.length<124?e:m}const ne="graphql-transport-ws";var g;(function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(g||(g={}));var c;(function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"})(c||(c={}));function v(e){if(!$(e))throw new Error(`Message is expected to be an object, but got ${f(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${f(e.type)}`);switch(e.type){case c.ConnectionInit:case c.ConnectionAck:case c.Ping:case c.Pong:{if(e.payload!=null&&!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case c.Subscribe:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${f(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${f(e.payload.query)}`);if(e.payload.variables!=null&&!$(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${f(e.payload.variables)}`);if(e.payload.operationName!=null&&f(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${f(e.payload.operationName)}`);if(e.payload.extensions!=null&&!$(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${f(e.payload.extensions)}`);break}case c.Next:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${f(e.payload)}`);break}case c.Error:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!re(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case c.Complete:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function oe(e,m){return v(typeof e=="string"?JSON.parse(e,m):e)}function W(e,m){return v(e),JSON.stringify(e,m)}var A=function(e){return this instanceof A?(this.v=e,this):new A(e)},ie=function(e,m,R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var M=R.apply(e,m||[]),b,w=[];return b={},E("next"),E("throw"),E("return"),b[Symbol.asyncIterator]=function(){return this},b;function E(u){M[u]&&(b[u]=function(r){return new Promise(function(S,L){w.push([u,r,S,L])>1||I(u,r)})})}function I(u,r){try{q(M[u](r))}catch(S){j(w[0][3],S)}}function q(u){u.value instanceof A?Promise.resolve(u.value.v).then(z,G):j(w[0][2],u)}function z(u){I("next",u)}function G(u){I("throw",u)}function j(u,r){u(r),w.shift(),w.length&&I(w[0][0],w[0][1])}};function pe(e){const{url:m,connectionParams:R,lazy:M=!0,onNonLazyError:b=console.error,lazyCloseTimeout:w=0,keepAlive:E=0,disablePong:I,connectionAckWaitTimeout:q=0,retryAttempts:z=5,retryWait:G=async function(a){let t=1e3;for(let o=0;o<a;o++)t*=2;await new Promise(o=>setTimeout(o,t+Math.floor(Math.random()*2700+300)))},shouldRetry:j=J,isFatalConnectionProblem:u,on:r,webSocketImpl:S,generateID:L=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,a=>{const t=Math.random()*16|0;return(a=="x"?t:t&3|8).toString(16)})},jsonMessageReplacer:U,jsonMessageReviver:ee}=e;let T;if(S){if(!ae(S))throw new Error("Invalid WebSocket implementation provided");T=S}else typeof WebSocket<"u"?T=WebSocket:typeof D<"u"?T=D.WebSocket||D.MozWebSocket:typeof window<"u"&&(T=window.WebSocket||window.MozWebSocket);if(!T)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const N=T,d=(()=>{const n=(()=>{const t={};return{on(o,s){return t[o]=s,()=>{delete t[o]}},emit(o){var s;"id"in o&&((s=t[o.id])===null||s===void 0||s.call(t,o))}}})(),a={connecting:r?.connecting?[r.connecting]:[],opened:r?.opened?[r.opened]:[],connected:r?.connected?[r.connected]:[],ping:r?.ping?[r.ping]:[],pong:r?.pong?[r.pong]:[],message:r?.message?[n.emit,r.message]:[n.emit],closed:r?.closed?[r.closed]:[],error:r?.error?[r.error]:[]};return{onMessage:n.on,on(t,o){const s=a[t];return s.push(o),()=>{s.splice(s.indexOf(o),1)}},emit(t,...o){for(const s of[...a[t]])s(...o)}}})();function Q(n){const a=[d.on("error",t=>{a.forEach(o=>o()),n(t)}),d.on("closed",t=>{a.forEach(o=>o()),n(t)})]}let h,k=0,H,O=!1,B=0,C=!1;async function K(){clearTimeout(H);const[n,a]=await(h??(h=new Promise((s,y)=>(async()=>{if(O){if(await G(B),!k)return h=void 0,y({code:1e3,reason:"All Subscriptions Gone"});B++}d.emit("connecting",O);const i=new N(typeof m=="function"?await m():m,ne);let x,_;function F(){isFinite(E)&&E>0&&(clearTimeout(_),_=setTimeout(()=>{i.readyState===N.OPEN&&(i.send(W({type:c.Ping})),d.emit("ping",!1,void 0))},E))}Q(l=>{h=void 0,clearTimeout(x),clearTimeout(_),y(l),l instanceof Z&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)}),i.onerror=l=>d.emit("error",l),i.onclose=l=>d.emit("closed",l),i.onopen=async()=>{try{d.emit("opened",i);const l=typeof R=="function"?await R():R;if(i.readyState!==N.OPEN)return;i.send(W(l?{type:c.ConnectionInit,payload:l}:{type:c.ConnectionInit},U)),isFinite(q)&&q>0&&(x=setTimeout(()=>{i.close(g.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},q)),F()}catch(l){d.emit("error",l),i.close(g.InternalClientError,Y(l instanceof Error?l.message:new Error(l).message,"Internal client error"))}};let P=!1;i.onmessage=({data:l})=>{try{const p=oe(l,ee);if(d.emit("message",p),p.type==="ping"||p.type==="pong"){d.emit(p.type,!0,p.payload),p.type==="pong"?F():I||(i.send(W(p.payload?{type:c.Pong,payload:p.payload}:{type:c.Pong})),d.emit("pong",!1,p.payload));return}if(P)return;if(p.type!==c.ConnectionAck)throw new Error(`First message cannot be of type ${p.type}`);clearTimeout(x),P=!0,d.emit("connected",i,p.payload,O),O=!1,B=0,s([i,new Promise((ce,te)=>Q(te))])}catch(p){i.onmessage=null,d.emit("error",p),i.close(g.BadResponse,Y(p instanceof Error?p.message:new Error(p).message,"Bad response"))}}})())));n.readyState===N.CLOSING&&await a;let t=()=>{};const o=new Promise(s=>t=s);return[n,t,Promise.race([o.then(()=>{if(!k){const s=()=>n.close(1e3,"Normal Closure");isFinite(w)&&w>0?H=setTimeout(()=>{n.readyState===N.OPEN&&s()},w):s()}}),a])]}function V(n){if(J(n)&&(se(n.code)||[g.InternalServerError,g.InternalClientError,g.BadRequest,g.BadResponse,g.Unauthorized,g.SubprotocolNotAcceptable,g.SubscriberAlreadyExists,g.TooManyInitialisationRequests].includes(n.code)))throw n;if(C)return!1;if(J(n)&&n.code===1e3)return k>0;if(!z||B>=z||!j(n)||u?.(n))throw n;return O=!0}M||(async()=>{for(k++;;)try{const[,,n]=await K();await n}catch(n){try{if(!V(n))return}catch(a){return b?.(a)}}})();function X(n,a){const t=L(n);let o=!1,s=!1,y=()=>{k--,o=!0};return(async()=>{for(k++;;)try{const[i,x,_]=await K();if(o)return x();const F=d.onMessage(t,P=>{switch(P.type){case c.Next:{a.next(P.payload);return}case c.Error:{s=!0,o=!0,a.error(P.payload),y();return}case c.Complete:{o=!0,y();return}}});i.send(W({id:t,type:c.Subscribe,payload:n},U)),y=()=>{!o&&i.readyState===N.OPEN&&i.send(W({id:t,type:c.Complete},U)),k--,o=!0,x()},await _.finally(F);return}catch(i){if(!V(i))return}})().then(()=>{s||a.complete()}).catch(i=>{a.error(i)}),()=>{o||y()}}return{on:d.on,subscribe:X,iterate(n){const a=[],t={done:!1,error:null,resolve:()=>{}},o=X(n,{next(y){a.push(y),t.resolve()},error(y){t.done=!0,t.error=y,t.resolve()},complete(){t.done=!0,t.resolve()}}),s=function(){return ie(this,arguments,function*(){for(;;){for(a.length||(yield A(new Promise(x=>t.resolve=x)));a.length;)yield yield A(a.shift());if(t.error)throw t.error;if(t.done)return yield A(void 0)}})}();return s.throw=async y=>(t.done||(t.done=!0,t.error=y,t.resolve()),{done:!0,value:void 0}),s.return=async()=>(o(),{done:!0,value:void 0}),s},async dispose(){if(C=!0,h){const[n]=await h;n.close(1e3,"Normal Closure")}},terminate(){h&&d.emit("closed",new Z)}}}class Z extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function J(e){return $(e)&&"code"in e&&"reason"in e}function se(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function ae(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}export{g as CloseCode,ne as GRAPHQL_TRANSPORT_WS_PROTOCOL,c as MessageType,Z as TerminatedCloseEvent,pe as createClient,oe as parseMessage,W as stringifyMessage,v as validateMessage};
1
+ import{eH as D}from"./index-NFZNhczl.js";function f(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function $(e){return f(e)==="object"}function re(e){return Array.isArray(e)&&e.length>0&&e.every(m=>"message"in m)}function Y(e,m){return e.length<124?e:m}const ne="graphql-transport-ws";var g;(function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(g||(g={}));var c;(function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"})(c||(c={}));function v(e){if(!$(e))throw new Error(`Message is expected to be an object, but got ${f(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${f(e.type)}`);switch(e.type){case c.ConnectionInit:case c.ConnectionAck:case c.Ping:case c.Pong:{if(e.payload!=null&&!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case c.Subscribe:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${f(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${f(e.payload.query)}`);if(e.payload.variables!=null&&!$(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${f(e.payload.variables)}`);if(e.payload.operationName!=null&&f(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${f(e.payload.operationName)}`);if(e.payload.extensions!=null&&!$(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${f(e.payload.extensions)}`);break}case c.Next:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${f(e.payload)}`);break}case c.Error:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!re(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case c.Complete:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function oe(e,m){return v(typeof e=="string"?JSON.parse(e,m):e)}function W(e,m){return v(e),JSON.stringify(e,m)}var A=function(e){return this instanceof A?(this.v=e,this):new A(e)},ie=function(e,m,R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var M=R.apply(e,m||[]),b,w=[];return b={},E("next"),E("throw"),E("return"),b[Symbol.asyncIterator]=function(){return this},b;function E(u){M[u]&&(b[u]=function(r){return new Promise(function(S,L){w.push([u,r,S,L])>1||I(u,r)})})}function I(u,r){try{q(M[u](r))}catch(S){j(w[0][3],S)}}function q(u){u.value instanceof A?Promise.resolve(u.value.v).then(z,G):j(w[0][2],u)}function z(u){I("next",u)}function G(u){I("throw",u)}function j(u,r){u(r),w.shift(),w.length&&I(w[0][0],w[0][1])}};function pe(e){const{url:m,connectionParams:R,lazy:M=!0,onNonLazyError:b=console.error,lazyCloseTimeout:w=0,keepAlive:E=0,disablePong:I,connectionAckWaitTimeout:q=0,retryAttempts:z=5,retryWait:G=async function(a){let t=1e3;for(let o=0;o<a;o++)t*=2;await new Promise(o=>setTimeout(o,t+Math.floor(Math.random()*2700+300)))},shouldRetry:j=J,isFatalConnectionProblem:u,on:r,webSocketImpl:S,generateID:L=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,a=>{const t=Math.random()*16|0;return(a=="x"?t:t&3|8).toString(16)})},jsonMessageReplacer:U,jsonMessageReviver:ee}=e;let T;if(S){if(!ae(S))throw new Error("Invalid WebSocket implementation provided");T=S}else typeof WebSocket<"u"?T=WebSocket:typeof D<"u"?T=D.WebSocket||D.MozWebSocket:typeof window<"u"&&(T=window.WebSocket||window.MozWebSocket);if(!T)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const N=T,d=(()=>{const n=(()=>{const t={};return{on(o,s){return t[o]=s,()=>{delete t[o]}},emit(o){var s;"id"in o&&((s=t[o.id])===null||s===void 0||s.call(t,o))}}})(),a={connecting:r?.connecting?[r.connecting]:[],opened:r?.opened?[r.opened]:[],connected:r?.connected?[r.connected]:[],ping:r?.ping?[r.ping]:[],pong:r?.pong?[r.pong]:[],message:r?.message?[n.emit,r.message]:[n.emit],closed:r?.closed?[r.closed]:[],error:r?.error?[r.error]:[]};return{onMessage:n.on,on(t,o){const s=a[t];return s.push(o),()=>{s.splice(s.indexOf(o),1)}},emit(t,...o){for(const s of[...a[t]])s(...o)}}})();function Q(n){const a=[d.on("error",t=>{a.forEach(o=>o()),n(t)}),d.on("closed",t=>{a.forEach(o=>o()),n(t)})]}let h,k=0,H,O=!1,B=0,C=!1;async function K(){clearTimeout(H);const[n,a]=await(h??(h=new Promise((s,y)=>(async()=>{if(O){if(await G(B),!k)return h=void 0,y({code:1e3,reason:"All Subscriptions Gone"});B++}d.emit("connecting",O);const i=new N(typeof m=="function"?await m():m,ne);let x,_;function F(){isFinite(E)&&E>0&&(clearTimeout(_),_=setTimeout(()=>{i.readyState===N.OPEN&&(i.send(W({type:c.Ping})),d.emit("ping",!1,void 0))},E))}Q(l=>{h=void 0,clearTimeout(x),clearTimeout(_),y(l),l instanceof Z&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)}),i.onerror=l=>d.emit("error",l),i.onclose=l=>d.emit("closed",l),i.onopen=async()=>{try{d.emit("opened",i);const l=typeof R=="function"?await R():R;if(i.readyState!==N.OPEN)return;i.send(W(l?{type:c.ConnectionInit,payload:l}:{type:c.ConnectionInit},U)),isFinite(q)&&q>0&&(x=setTimeout(()=>{i.close(g.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},q)),F()}catch(l){d.emit("error",l),i.close(g.InternalClientError,Y(l instanceof Error?l.message:new Error(l).message,"Internal client error"))}};let P=!1;i.onmessage=({data:l})=>{try{const p=oe(l,ee);if(d.emit("message",p),p.type==="ping"||p.type==="pong"){d.emit(p.type,!0,p.payload),p.type==="pong"?F():I||(i.send(W(p.payload?{type:c.Pong,payload:p.payload}:{type:c.Pong})),d.emit("pong",!1,p.payload));return}if(P)return;if(p.type!==c.ConnectionAck)throw new Error(`First message cannot be of type ${p.type}`);clearTimeout(x),P=!0,d.emit("connected",i,p.payload,O),O=!1,B=0,s([i,new Promise((ce,te)=>Q(te))])}catch(p){i.onmessage=null,d.emit("error",p),i.close(g.BadResponse,Y(p instanceof Error?p.message:new Error(p).message,"Bad response"))}}})())));n.readyState===N.CLOSING&&await a;let t=()=>{};const o=new Promise(s=>t=s);return[n,t,Promise.race([o.then(()=>{if(!k){const s=()=>n.close(1e3,"Normal Closure");isFinite(w)&&w>0?H=setTimeout(()=>{n.readyState===N.OPEN&&s()},w):s()}}),a])]}function V(n){if(J(n)&&(se(n.code)||[g.InternalServerError,g.InternalClientError,g.BadRequest,g.BadResponse,g.Unauthorized,g.SubprotocolNotAcceptable,g.SubscriberAlreadyExists,g.TooManyInitialisationRequests].includes(n.code)))throw n;if(C)return!1;if(J(n)&&n.code===1e3)return k>0;if(!z||B>=z||!j(n)||u?.(n))throw n;return O=!0}M||(async()=>{for(k++;;)try{const[,,n]=await K();await n}catch(n){try{if(!V(n))return}catch(a){return b?.(a)}}})();function X(n,a){const t=L(n);let o=!1,s=!1,y=()=>{k--,o=!0};return(async()=>{for(k++;;)try{const[i,x,_]=await K();if(o)return x();const F=d.onMessage(t,P=>{switch(P.type){case c.Next:{a.next(P.payload);return}case c.Error:{s=!0,o=!0,a.error(P.payload),y();return}case c.Complete:{o=!0,y();return}}});i.send(W({id:t,type:c.Subscribe,payload:n},U)),y=()=>{!o&&i.readyState===N.OPEN&&i.send(W({id:t,type:c.Complete},U)),k--,o=!0,x()},await _.finally(F);return}catch(i){if(!V(i))return}})().then(()=>{s||a.complete()}).catch(i=>{a.error(i)}),()=>{o||y()}}return{on:d.on,subscribe:X,iterate(n){const a=[],t={done:!1,error:null,resolve:()=>{}},o=X(n,{next(y){a.push(y),t.resolve()},error(y){t.done=!0,t.error=y,t.resolve()},complete(){t.done=!0,t.resolve()}}),s=function(){return ie(this,arguments,function*(){for(;;){for(a.length||(yield A(new Promise(x=>t.resolve=x)));a.length;)yield yield A(a.shift());if(t.error)throw t.error;if(t.done)return yield A(void 0)}})}();return s.throw=async y=>(t.done||(t.done=!0,t.error=y,t.resolve()),{done:!0,value:void 0}),s.return=async()=>(o(),{done:!0,value:void 0}),s},async dispose(){if(C=!0,h){const[n]=await h;n.close(1e3,"Normal Closure")}},terminate(){h&&d.emit("closed",new Z)}}}class Z extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function J(e){return $(e)&&"code"in e&&"reason"in e}function se(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function ae(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}export{g as CloseCode,ne as GRAPHQL_TRANSPORT_WS_PROTOCOL,c as MessageType,Z as TerminatedCloseEvent,pe as createClient,oe as parseMessage,W as stringifyMessage,v as validateMessage};
@@ -1,4 +1,4 @@
1
- import{aF as v,j as n,K as a,bs as w,V as z,f as p,dm as F}from"./index-DmEIktUl.js";const k=v(n.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m4.3 14.3c-.39.39-1.02.39-1.41 0L12 13.41 9.11 16.3c-.39.39-1.02.39-1.41 0a.996.996 0 0 1 0-1.41L10.59 12 7.7 9.11a.996.996 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L12 10.59l2.89-2.89c.39-.39 1.02-.39 1.41 0s.39 1.02 0 1.41L13.41 12l2.89 2.89c.38.38.38 1.02 0 1.41"}));function r({icon:e=null,title:t="",description:o="",extra:b=null,...y}){return n.jsxs(E,{...y,children:[e,typeof t=="string"?n.jsx(a,{sx:{mt:3,fontSize:22,fontWeight:400,color:"text.primary",textAlign:"center"},children:t}):t,typeof o=="string"?n.jsx(a,{sx:{mt:1,fontSize:14,color:"text.secondary",textAlign:"center"},children:o}):o,n.jsx(a,{sx:{mt:3},children:b})]})}const E=w("div")`
1
+ import{aF as v,j as n,K as a,bs as w,V as z,f as p,dm as F}from"./index-NFZNhczl.js";const k=v(n.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m4.3 14.3c-.39.39-1.02.39-1.41 0L12 13.41 9.11 16.3c-.39.39-1.02.39-1.41 0a.996.996 0 0 1 0-1.41L10.59 12 7.7 9.11a.996.996 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L12 10.59l2.89-2.89c.39-.39 1.02-.39 1.41 0s.39 1.02 0 1.41L13.41 12l2.89 2.89c.38.38.38 1.02 0 1.41"}));function r({icon:e=null,title:t="",description:o="",extra:b=null,...y}){return n.jsxs(E,{...y,children:[e,typeof t=="string"?n.jsx(a,{sx:{mt:3,fontSize:22,fontWeight:400,color:"text.primary",textAlign:"center"},children:t}):t,typeof o=="string"?n.jsx(a,{sx:{mt:1,fontSize:14,color:"text.secondary",textAlign:"center"},children:o}):o,n.jsx(a,{sx:{mt:3},children:b})]})}const E=w("div")`
2
2
  box-sizing: border-box;
3
3
  display: flex;
4
4
  flex-direction: column;