@abtnode/webapp 1.16.32-beta-f35ca4b8 → 1.16.32-beta-93e1a798
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{Add-CrVU4iag.js → Add-D_k4pI9W.js} +1 -1
- package/dist/assets/{ArrowDropDown-Dcn5e8ly.js → ArrowDropDown-Fj1T5r_G.js} +1 -1
- package/dist/assets/{Autocomplete-aIdNDEL-.js → Autocomplete-36UFOW-a.js} +1 -1
- package/dist/assets/{Breadcrumbs-CXRVOUaw.js → Breadcrumbs-kKBUARWg.js} +1 -1
- package/dist/assets/{ButtonGroup-7mkCQlrm.js → ButtonGroup-CES_ASkn.js} +1 -1
- package/dist/assets/{CheckCircle-Bfk4fg63.js → CheckCircle-BebjtNY9.js} +1 -1
- package/dist/assets/{ChevronLeft-C0tWZhe0.js → ChevronLeft-BVPkwsiy.js} +1 -1
- package/dist/assets/{ChevronRight-Cy58kVA1.js → ChevronRight-ChF0KBJG.js} +1 -1
- package/dist/assets/{Close-uSQDOggL.js → Close-DrkkcxlK.js} +1 -1
- package/dist/assets/{Delete-Dc7SNaDg.js → Delete-DzIkIBeP.js} +1 -1
- package/dist/assets/{DeleteOutline-DCHqqi5l.js → DeleteOutline-Bby7Ht9O.js} +1 -1
- package/dist/assets/{Done-BgYDb8pl.js → Done-LLl5p9CV.js} +1 -1
- package/dist/assets/{Edit-DS4SRT1Z.js → Edit-CF2dV-p0.js} +1 -1
- package/dist/assets/{EditIcon-D-sfdNT0.js → EditIcon-CS66rX17.js} +1 -1
- package/dist/assets/{ExpandMore-DkEFEOxf.js → ExpandMore-BjFpCvCs.js} +1 -1
- package/dist/assets/{Google-dURdg8SH.js → Google-CEg0_-Ba.js} +1 -1
- package/dist/assets/{Https-CQFYbmfg.js → Https-6X3V6mo0.js} +1 -1
- package/dist/assets/{InputAdornment-C8mYs2cn.js → InputAdornment-ycCoKHr0.js} +1 -1
- package/dist/assets/{InputLabel-B1j7mM5X.js → InputLabel-CbBV3Frl.js} +1 -1
- package/dist/assets/{LastPage-DvyF__jR.js → LastPage-BPNA0QD7.js} +1 -1
- package/dist/assets/{Launch-C9TnBby2.js → Launch-BQ5k3Pyt.js} +1 -1
- package/dist/assets/{Link-tptEI5Ov.js → Link-CrgCiVTG.js} +1 -1
- package/dist/assets/{LoadingButton-BJeZNO98.js → LoadingButton-DK2qXs8-.js} +1 -1
- package/dist/assets/{LockIcon-CCYDgiA9.js → LockIcon-Dsr8612h.js} +1 -1
- package/dist/assets/{Loop-BV9sPKwB.js → Loop-DKDVusA2.js} +1 -1
- package/dist/assets/{MoreHoriz-p0VaffeZ.js → MoreHoriz-DpkDHId8.js} +1 -1
- package/dist/assets/{MoreVert-D7U3C1RJ.js → MoreVert-EDIahDDk.js} +1 -1
- package/dist/assets/{Pagination-BNBOxoP7.js → Pagination-889zSuEV.js} +1 -1
- package/dist/assets/{Public-DldRmgtm.js → Public-B1TdO-Ph.js} +1 -1
- package/dist/assets/{SchemaReference.es-Cj1qFzwO.js → SchemaReference.es-CIGzgiK1.js} +1 -1
- package/dist/assets/{Search-C72vhPrR.js → Search-Dol4CnmY.js} +1 -1
- package/dist/assets/{Select-D1lY3LQG.js → Select-CYNjgjo3.js} +1 -1
- package/dist/assets/{Skeleton-bksK9EQ0.js → Skeleton-CzjJPNB7.js} +1 -1
- package/dist/assets/{Slider-CbEQ27T8.js → Slider-wwN-tiI7.js} +1 -1
- package/dist/assets/{Stepper-Doz-_QYU.js → Stepper-BG1rAugU.js} +1 -1
- package/dist/assets/{TextField-kQx3sAGR.js → TextField-B8Ndn_Ly.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-C1syeauh.js → ToggleButtonGroup-CgfxUxDK.js} +1 -1
- package/dist/assets/{ViewColumn-CBqnaawo.js → ViewColumn-DkiM5eqL.js} +1 -1
- package/dist/assets/{ViewList-J5q5F0G_.js → ViewList-SsmYyAxZ.js} +1 -1
- package/dist/assets/{actions-Cn5PkGYM.js → actions-C-Plplr7.js} +1 -1
- package/dist/assets/{actions-C4t1PEJi.js → actions-CrXporZt.js} +1 -1
- package/dist/assets/{agreement-BW_X8O9K.js → agreement-WG4qIDoW.js} +1 -1
- package/dist/assets/api-B-aFuxhe.js +1 -0
- package/dist/assets/{app-avatar-CzTx2uPE.js → app-avatar-d8qNeOSe.js} +1 -1
- package/dist/assets/{audit-logs-CBBPjsSt.js → audit-logs--xCClvIG.js} +1 -1
- package/dist/assets/blocklet-fx7ejRT1.js +1 -0
- package/dist/assets/{brace-fold.es-3bhfSN2I.js → brace-fold.es-D9Lmc_JQ.js} +1 -1
- package/dist/assets/{bundle-avatar-C6lYc46c.js → bundle-avatar-Csnfb0Gl.js} +1 -1
- package/dist/assets/{chart-B1HGYnJR.js → chart-YMtcv4Pw.js} +1 -1
- package/dist/assets/{click-to-copy-DYkJUEds.js → click-to-copy-BVC4LJBm.js} +1 -1
- package/dist/assets/{closebrackets.es-DeVqbYP2.js → closebrackets.es-Bp0tSkEe.js} +1 -1
- package/dist/assets/{codemirror.es-Du4qRjp0.js → codemirror.es-oZBhhqd0.js} +1 -1
- package/dist/assets/{comment.es-CCo2X9yk.js → comment.es-DsmOpPCK.js} +1 -1
- package/dist/assets/{config-navigation-Cl0W33eM.js → config-navigation-C22iRX72.js} +1 -1
- package/dist/assets/{delete-confirm-BeJKD7Bp.js → delete-confirm-DB1Hsz09.js} +1 -1
- package/dist/assets/{detail-BpGjVixl.js → detail-BRhupi6R.js} +3 -3
- package/dist/assets/{dialog.es-PugcSzA-.js → dialog.es-DUxAmmR0.js} +1 -1
- package/dist/assets/{download-Botg6F7n.js → download-CS0Nwqbd.js} +1 -1
- package/dist/assets/{foldgutter.es-BGL4JV26.js → foldgutter.es-BUBeDpkw.js} +1 -1
- package/dist/assets/getValidReactChildren-DP5iwnLz.js +1 -0
- package/dist/assets/{hint.es-Byg_BqGI.js → hint.es-DYpAHag2.js} +1 -1
- package/dist/assets/{hint.es2-DOHf5haL.js → hint.es2-BGuO_Ryp.js} +1 -1
- package/dist/assets/{iframe-B0_yxwdl.js → iframe-DP4MxIys.js} +1 -1
- package/dist/assets/{index-Co-UUK3y.js → index--bLRFav8.js} +1 -1
- package/dist/assets/{index-UsBHl2fn.js → index-5PA93kSc.js} +5 -5
- package/dist/assets/{index-DBUN7I_x.js → index-6g5X1kQS.js} +1 -1
- package/dist/assets/{index-vahMKwUj.js → index-9y4YR_6P.js} +1 -1
- package/dist/assets/{index-DNeFUdjP.js → index-B0pJul6M.js} +1 -1
- package/dist/assets/{index-DP0Qx805.js → index-B5kkYZq8.js} +1 -1
- package/dist/assets/{index-dKvWGHlG.js → index-BJ57e_hS.js} +1 -1
- package/dist/assets/{index-B-dgg_7V.js → index-BJrQBQOR.js} +1 -1
- package/dist/assets/{index-DALpnmZa.js → index-BLWpQDG1.js} +1 -1
- package/dist/assets/{index-C0A64lpg.js → index-BVMgCTFa.js} +1 -1
- package/dist/assets/{index-C0Ux2a-4.js → index-BZupyUWp.js} +1 -1
- package/dist/assets/{index-CE43hPAy.js → index-BarUm_gh.js} +1 -1
- package/dist/assets/{index-C9QWROlO.js → index-BdODRvyL.js} +3 -3
- package/dist/assets/{index-Dfddf3Zf.js → index-BsrqDkz-.js} +1 -1
- package/dist/assets/{index-fLBtZX_u.js → index-C-rb1x2V.js} +1 -1
- package/dist/assets/{index-BjImoaPY.js → index-C58ue_9I.js} +1 -1
- package/dist/assets/{index-DhNPGktt.js → index-C9LZUW4N.js} +1 -1
- package/dist/assets/{index-DeiblLLO.js → index-CFm2Y_4c.js} +1 -1
- package/dist/assets/{index-DUZgU2qh.js → index-CLn0Mq8q.js} +1 -1
- package/dist/assets/{index-Bd88oXZE.js → index-CTRjGuKx.js} +3 -3
- package/dist/assets/{index-8yVQ7VYg.js → index-Cd5kGc_9.js} +1 -1
- package/dist/assets/{index-CAPmDJRT.js → index-ChSFSE0T.js} +1 -1
- package/dist/assets/{index-euGBouHi.js → index-CiSkmE2u.js} +3 -3
- package/dist/assets/{index-DeaRODgK.js → index-CpvpLQ3r.js} +1 -1
- package/dist/assets/{index-D0VO7WgE.js → index-D-HUAuYc.js} +1 -1
- package/dist/assets/{index-Kac2SwHT.js → index-D19VVree.js} +1 -1
- package/dist/assets/{index-_cR88l1n.js → index-D4j0UCn_.js} +1 -1
- package/dist/assets/{index-CBYC6xoV.js → index-DITPbpVB.js} +1 -1
- package/dist/assets/{index-8nWfzKes.js → index-DL0tSq_I.js} +1 -1
- package/dist/assets/{index-DQO2RskJ.js → index-DQOcXiyw.js} +1 -1
- package/dist/assets/{index-DQBtl0fk.js → index-DZeE4hxl.js} +1 -1
- package/dist/assets/{index-D6UaRj0X.js → index-D_JFrv2N.js} +1 -1
- package/dist/assets/{index-BpBCpY0O.js → index-D_enoZPw.js} +1 -1
- package/dist/assets/{index-BGEa7wgm.js → index-DcM9WqBq.js} +1 -1
- package/dist/assets/{index-1quYfQ0h.js → index-DcQHhGHM.js} +1 -1
- package/dist/assets/{index-C8_Sa1ZZ.js → index-Dgsigr8r.js} +1 -1
- package/dist/assets/{index-o6UEpCzX.js → index-Dz_vS133.js} +1 -1
- package/dist/assets/{index-C8AIaLfh.js → index-JJQ9Omt7.js} +1 -1
- package/dist/assets/{index-CcGSwTMt.js → index-TrxAhXnV.js} +1 -1
- package/dist/assets/{index-BGNI59h2.js → index-Ud3GHmKK.js} +1 -1
- package/dist/assets/{index-OJDHb5ZY.js → index-X5ZsLA2j.js} +1 -1
- package/dist/assets/{index-C2-bicAv.js → index-XhvmS84N.js} +1 -1
- package/dist/assets/{index-Cd0Mo1_w.js → index-f7uSWUvq.js} +1 -1
- package/dist/assets/{index.es-BxVSrDG1.js → index.es-B4ORsvbs.js} +1 -1
- package/dist/assets/{index.esm-DkiKGA7O.js → index.esm-B270ufs-.js} +1 -1
- package/dist/assets/{info-addon.es-BpgVPfAf.js → info-addon.es-BzRM6G1a.js} +1 -1
- package/dist/assets/{info.es-DUGHSeuV.js → info.es-DGgsrgEc.js} +1 -1
- package/dist/assets/{install-from-url-DOdPcOLo.js → install-from-url-C2gBahK1.js} +1 -1
- package/dist/assets/{invitation-B8rpCHkF.js → invitation-CdX27Uxz.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-B3nYZSlR.js → is-path-prefix-equal-BkEH1NZx.js} +1 -1
- package/dist/assets/{isEqual-Bh4I8aKs.js → isEqual-CNnvQgen.js} +1 -1
- package/dist/assets/{item-FJYzqgxR.js → item-JRZi_aRE.js} +1 -1
- package/dist/assets/{javascript.es-DJeH8pQ5.js → javascript.es-By6ZeMFv.js} +1 -1
- package/dist/assets/{jump-to-line.es-CHS7Cpce.js → jump-to-line.es-BBq6_jaH.js} +1 -1
- package/dist/assets/{jump.es-B8fZ5UkD.js → jump.es-CwMJ9osH.js} +1 -1
- package/dist/assets/{line-BxqlcjK5.js → line-CKpAedts.js} +3 -3
- package/dist/assets/{lint.es-dNi4Ghyk.js → lint.es-1aZjgiyc.js} +1 -1
- package/dist/assets/{lint.es2-C58OpqsC.js → lint.es2-Db-t_UEm.js} +1 -1
- package/dist/assets/{lint.es3-BvXIsXsu.js → lint.es3-D8HsQO7s.js} +1 -1
- package/dist/assets/{list-header-Dj2MozqK.js → list-header-B-qlxkz3.js} +1 -1
- package/dist/assets/{log-wE1x1bn4.js → log-Bk7_nQYj.js} +1 -1
- package/dist/assets/{lottie-C_o2afe-.js → lottie-BM_265d4.js} +1 -1
- package/dist/assets/{matchbrackets.es-rYpajz6C.js → matchbrackets.es-BWKnOHAT.js} +1 -1
- package/dist/assets/{memory-BP-6gvQx.js → memory-nuYLHuFl.js} +1 -1
- package/dist/assets/{mode.es-Bl1GOgFG.js → mode.es-BDqcWOl_.js} +1 -1
- package/dist/assets/{mode.es2-BGLi7eHl.js → mode.es2-CB0HZW7S.js} +1 -1
- package/dist/assets/{mode.es3-CuL41pUD.js → mode.es3-DyR4-E4M.js} +1 -1
- package/dist/assets/{onlineParser.es-DqkyzxAH.js → onlineParser.es-CPCTT-Qa.js} +1 -1
- package/dist/assets/{overview-DbeljR0t.js → overview-B97iWfKs.js} +1 -1
- package/dist/assets/{react-Cq9eJ3Pl.js → react-B2TCaRmX.js} +3 -3
- package/dist/assets/{redux-b00FNul4.js → redux-DYkNRFlr.js} +1 -1
- package/dist/assets/{resource-dialog-BmGWI1C9.js → resource-dialog-BhhfM8h1.js} +1 -1
- package/dist/assets/{runtime-CpZ4o9fb.js → runtime-9pTI3HeQ.js} +1 -1
- package/dist/assets/{schema-BijIBYj3.js → schema-Bj-RxzG3.js} +1 -1
- package/dist/assets/sdk-muHS20Ah.js +1 -0
- package/dist/assets/{search.es-Bt-btCjo.js → search.es-Djf8-sUv.js} +1 -1
- package/dist/assets/{searchcursor.es-DZhpv8ff.js → searchcursor.es-DZEW11iz.js} +1 -1
- package/dist/assets/{service-CR1LOIU5.js → service-Oon6YJGj.js} +1 -1
- package/dist/assets/{shorten-label-e4SQFDIH.js → shorten-label-Dc8UKk1Q.js} +1 -1
- package/dist/assets/{show-hint.es-JabryCH1.js → show-hint.es-k48vHIcC.js} +1 -1
- package/dist/assets/{slicedToArray-C3c8ZMzC.js → slicedToArray-rpnwAzRV.js} +1 -1
- package/dist/assets/{spaces-Bu2IhfbA.js → spaces-BJikzBFK.js} +1 -1
- package/dist/assets/{status-kAhSFHIM.js → status-CBbIVZ8o.js} +1 -1
- package/dist/assets/{sublime.es-CxnSzwic.js → sublime.es-C9MYLBy2.js} +1 -1
- package/dist/assets/{switch-control-FJGNlGgR.js → switch-control-7-MGIzPK.js} +1 -1
- package/dist/assets/{table-icons-CWkkl61x.js → table-icons-BS_ATSp2.js} +1 -1
- package/dist/assets/{team-BLioMvZg.js → team-CpKT_TRB.js} +1 -1
- package/dist/assets/{toUpper-gLmZ1q0C.js → toUpper-Cji_NEex.js} +1 -1
- package/dist/assets/{traffic-BBsVBreQ.js → traffic-D_VS-ogp.js} +1 -1
- package/dist/assets/{url-evaluation-DZQMDJ58.js → url-evaluation-CeM0t6WP.js} +1 -1
- package/dist/assets/{url-join-BR2c59F6.js → url-join-C4mC0iDe.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-DqWceY_h.js → use-blocklet-info-for-connect-did-spaces-DOU25_RL.js} +1 -1
- package/dist/assets/{useLocalStorage-kQm6yPnj.js → useLocalStorage-Djk9mE88.js} +1 -1
- package/dist/assets/{useThemeProps-DzCadJBj.js → useThemeProps-DZY4Hl_X.js} +1 -1
- package/dist/assets/{util-D5KPPsSc.js → util-Bg0Sovun.js} +1 -1
- package/dist/assets/{wait-container-BiujCyhV.js → wait-container-BXER-iJR.js} +1 -1
- package/dist/assets/{withStyles-eMUb1FPy.js → withStyles-DeG1LPw1.js} +1 -1
- package/dist/assets/{wrap-locale-BpbnnA7O.js → wrap-locale-C0m1LlXs.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/api-vPjN6Bfi.js +0 -1
- package/dist/assets/blocklet-cMQmhjnL.js +0 -1
- package/dist/assets/getValidReactChildren-C3Ot9SvD.js +0 -1
- package/dist/assets/sdk-CwPZ3suW.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as d,j as o,s as h,Q as p,P as i}from"./index-
|
|
1
|
+
import{r as d,j as o,s as h,Q as p,P as i}from"./index-BdODRvyL.js";var a={};Object.defineProperty(a,"__esModule",{value:!0});var f=a.default=void 0;v(d);var c=o;function v(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(y){return Object.getOwnPropertyDescriptor(e,y).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s(Object(r),!0).forEach(function(n){b(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b(e,t,r){return(t=j(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){var t=g(e,"string");return typeof t=="symbol"?t:t+""}function g(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=function(t){return(0,c.jsx)("svg",u(u({},t),{},{children:(0,c.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.361 2.4a.8.8 0 0 0-.728.469L.873 15.54a.8.8 0 0 0-.072.33V27.393a.8.8 0 0 0 .8.8h28.8a.8.8 0 0 0 .8-.8v-11.52a.8.8 0 0 0-.072-.331L25.37 2.869a.8.8 0 0 0-.728-.47H7.361zm-4.96 14.4v9.792h27.2v-9.799a.814.814 0 0 1-.104.007h-7.098l-2.066 3.1a.8.8 0 0 1-.666.356h-8.064a.8.8 0 0 1-.665-.356L8.87 16.8h-6.47zm26.816-1.6H21.97a.8.8 0 0 0-.665.356l-2.067 3.1h-7.208l-2.066-3.1a.8.8 0 0 0-.666-.356H2.785L7.876 4h16.25l5.09 11.2z",fill:"currentColor"})}))};l.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};l.displayName="empty";f=a.default=l;const O=h(p)`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,f as n,j as t,n as e}from"./index-
|
|
1
|
+
import{r as o,f as n,j as t,n as e}from"./index-BdODRvyL.js";import{R as r}from"./index-C9LZUW4N.js";function i(){const{t:s}=o.useContext(n);return t.jsx(a,{style:{paddingTop:"25vh"},children:t.jsx(r,{status:"404",description:s("noMatch.desc"),style:{backgroundColor:"transparent"}})})}const a=e.main``;export{i as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
2
|
-
import{r as p,ci as X,cj as F,ck as O,cl as q,aK as H,aL as G,j as s,n as E,P as y,J,aO as Q,f as V,cm as K,y as I,Q as x,cd as Y,W as Z,B as M,m as D,cn as $,O as ee,co as te,bn as se,cp as ae,cq as ne,u as oe,z as re,am as ie,bk as ce,ad as le}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-JJQ9Omt7.js","./index-BdODRvyL.js","./index-BEj64JY8.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as p,ci as X,cj as F,ck as O,cl as q,aK as H,aL as G,j as s,n as E,P as y,J,aO as Q,f as V,cm as K,y as I,Q as x,cd as Y,W as Z,B as M,m as D,cn as $,O as ee,co as te,bn as se,cp as ae,cq as ne,u as oe,z as re,am as ie,bk as ce,ad as le}from"./index-BdODRvyL.js";import{d as pe}from"./CheckCircle-BebjtNY9.js";import{d as de}from"./ViewList-SsmYyAxZ.js";import{d as ue}from"./Done-LLl5p9CV.js";import{w as me}from"./wrap-locale-C0m1LlXs.js";import{S as fe,a as he,b as xe}from"./Stepper-BG1rAugU.js";var P=function(t){if(!t)return 0;var r=q(t).valueOf()-Date.now();return r<0?0:r},ge=function(t){return{days:Math.floor(t/864e5),hours:Math.floor(t/36e5)%24,minutes:Math.floor(t/6e4)%60,seconds:Math.floor(t/1e3)%60,milliseconds:Math.floor(t)%1e3}},ve=function(t){t===void 0&&(t={});var r=t||{},l=r.leftTime,i=r.targetDate,d=r.interval,v=d===void 0?1e3:d,b=r.onEnd,g=p.useMemo(function(){return X(l)&&l>0?Date.now()+l:void 0},[l]),a="leftTime"in t?g:i,f=F(p.useState(function(){return P(a)}),2),h=f[0],u=f[1],n=O(b);p.useEffect(function(){if(!a){u(0);return}u(P(a));var w=setInterval(function(){var o,c=P(a);u(c),c===0&&(clearInterval(w),(o=n.current)===null||o===void 0||o.call(n))},v);return function(){return clearInterval(w)}},[a,v]);var j=p.useMemo(function(){return ge(h)},[h]);return[h,j]},k={},be=G;Object.defineProperty(k,"__esModule",{value:!0});var R=k.default=void 0,we=be(H()),je=s;R=k.default=(0,we.default)((0,je.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"}),"GetApp");function T({list:t,width:r,height:l,cardSpace:i,onSelect:d,defaultIndex:v}){const[b,g]=p.useState(0),[a,f]=p.useState(0),h=p.useRef(null),u=o=>{if(o<0||o>t.length-1)return;g(o);const c=h.current.clientWidth;f(o*(r+i)-(c-r)/2+i*.5),d(o)};p.useEffect(()=>{u(v);const o=c=>c.preventDefault();h.current.addEventListener("touchmove",o,{passive:!1})},[]);let n;const j=o=>{n=o.touches[0].clientX},w=o=>{const c=o.changedTouches[0],S=n-c.clientX;Math.abs(S)>60&&(S>0?u(b+1):u(b-1))};return s.jsx(ye,{ref:h,onTouchStart:j,onTouchEnd:w,children:s.jsx("div",{className:"card-container",style:{transform:`translate(${-a}px, 0)`},children:t.map((o,c)=>s.jsx("div",{className:`card-item ${c===b?"selected":""}`,style:{width:r,height:l,margin:i/2},onClick:()=>u(c),children:s.jsx("div",{className:"card-content",dangerouslySetInnerHTML:{__html:o.src}})},o.id))})})}const ye=E.div`
|
|
3
3
|
overflow: hidden;
|
|
4
4
|
mask-image: linear-gradient(to left, transparent, black 3%, black 97%, transparent);
|
|
5
5
|
overflow: hidden;
|
|
@@ -33,7 +33,7 @@ import{r as p,ci as X,cj as F,ck as O,cl as q,aK as H,aL as G,j as s,n as E,P as
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
`;T.propTypes={list:y.array,width:y.number,height:y.number,cardSpace:y.number,onSelect:y.func,defaultIndex:y.number};T.defaultProps={list:"",width:300,height:400,cardSpace:40,onSelect:()=>{},defaultIndex:0};function Se({icon:t,active:r,completed:l}){const i={1:s.jsx(de,{className:"step-icon"}),2:s.jsx(R,{className:"step-icon"}),3:s.jsx(ue,{className:"step-icon"})},d=["step-icon-w"];return r&&d.push("step-icon-w--active"),l&&d.push("step-icon-w--completed"),s.jsx("div",{className:d.join(" "),children:i[String(t)]})}function Pe({SessionContext:t,webWalletUrl:r,createPassportSvg:l,passportColor:i,onLogin:d}){const{api:v,session:b}=p.useContext(t),g=J(e=>e.breakpoints.down("sm")),a=Q({user:null,passport:null,success:!1,activeStep:0}),f=p.useRef({sessionToken:"",refreshToken:""}),{setPassportId:h,clearPassportId:u}=ne(),{t:n,locale:j}=p.useContext(V),{wallet:w}=K(),[o,c]=p.useState(0),{searchParams:S}=new URL(window.location.href),C=()=>{a.activeStep++},W=e=>{a.user=e.user},A=()=>{C()},z=(e,m)=>{e!=null&&e.passportId&&h(e.passportId),e!=null&&e.sessionToken&&(f.current.sessionToken=m(e.sessionToken)),e!=null&&e.refreshToken&&(f.current.refreshToken=m(e.refreshToken)),a.success=!0,C()},U=()=>new Promise(e=>{try{b.logout(()=>{e()})}catch{e()}}),L=async()=>{if(w&&$()){se(()=>import("./index-
|
|
36
|
+
`;T.propTypes={list:y.array,width:y.number,height:y.number,cardSpace:y.number,onSelect:y.func,defaultIndex:y.number};T.defaultProps={list:"",width:300,height:400,cardSpace:40,onSelect:()=>{},defaultIndex:0};function Se({icon:t,active:r,completed:l}){const i={1:s.jsx(de,{className:"step-icon"}),2:s.jsx(R,{className:"step-icon"}),3:s.jsx(ue,{className:"step-icon"})},d=["step-icon-w"];return r&&d.push("step-icon-w--active"),l&&d.push("step-icon-w--completed"),s.jsx("div",{className:d.join(" "),children:i[String(t)]})}function Pe({SessionContext:t,webWalletUrl:r,createPassportSvg:l,passportColor:i,onLogin:d}){const{api:v,session:b}=p.useContext(t),g=J(e=>e.breakpoints.down("sm")),a=Q({user:null,passport:null,success:!1,activeStep:0}),f=p.useRef({sessionToken:"",refreshToken:""}),{setPassportId:h,clearPassportId:u}=ne(),{t:n,locale:j}=p.useContext(V),{wallet:w}=K(),[o,c]=p.useState(0),{searchParams:S}=new URL(window.location.href),C=()=>{a.activeStep++},W=e=>{a.user=e.user},A=()=>{C()},z=(e,m)=>{e!=null&&e.passportId&&h(e.passportId),e!=null&&e.sessionToken&&(f.current.sessionToken=m(e.sessionToken)),e!=null&&e.refreshToken&&(f.current.refreshToken=m(e.refreshToken)),a.success=!0,C()},U=()=>new Promise(e=>{try{b.logout(()=>{e()})}catch{e()}}),L=async()=>{if(w&&$()){se(()=>import("./index-JJQ9Omt7.js").then(m=>m.i),__vite__mapDeps([0,1,2]),import.meta.url).then(m=>{m.call("arcClosePage")});return}await U(),ae(d)&&d({sessionToken:f.current.sessionToken,refreshToken:f.current.refreshToken});const e=S.get("redirect");if(e){window.location.replace(e);return}u(),window.location.replace("/")},B=e=>{a.passport=e.target.value},[N]=ve({leftTime:o,onEnd:()=>{L()}}),_=[{label:n("lostPassport.selectPassport"),content:()=>a.user?s.jsxs(x,{className:"select-passport",children:[s.jsxs(x,{my:1,display:"flex",alignItems:"center",className:"user-info",children:[s.jsx(Y,{src:a.user.avatar,style:{width:48,height:48,backgroundColor:"transparent",marginRight:16}}),s.jsxs(x,{children:[s.jsx(x,{className:"name",children:a.user.fullName}),s.jsx(x,{className:"did",mt:1,children:s.jsx(Z,{responsive:!g,compact:g,did:a.user.did})})]})]}),s.jsx("div",{children:s.jsx(T,{width:g?180:230,height:g?240:306,cardSpace:24,list:a.user.passportTypes.map(e=>({src:l({scope:e.scope,role:e.role,title:e.scope==="passport"?e.title:e.name,issuer:e.issuer.name,issuerDid:e.issuer.id,ownerDid:a.user.did,ownerName:a.user.fullName,ownerAvatarUrl:a.user.avatar,preferredColor:i||"auto",extra:e.scope==="kyc"?{key:"Email",value:e.name}:void 0}),name:e.title,id:e.id})),onSelect:e=>B({target:{value:a.user.passportTypes[e].id}}),defaultIndex:0})}),s.jsx(x,{textAlign:"center",children:s.jsx(M,{variant:"contained",color:"primary",onClick:()=>A(),disabled:!a.passport,children:n("common.next")})})]}):s.jsx(I,{popup:!0,open:!0,hideCloseButton:!0,className:"connect",action:"lost-passport-list",forceConnected:!1,autoConnect:!1,checkFn:v.get,checkTimeout:10*60*1e3,webWalletUrl:r,onSuccess:W,locale:j,messages:{title:n("lostPassport.dialog.title"),scan:n("lostPassport.dialog.scan"),confirm:n("lostPassport.dialog.confirm"),success:n("lostPassport.dialog.success")}})},{label:n("lostPassport.receivePassport"),content:()=>{var m;const e={receiverDid:a.user.did,passportId:a.passport,teamDid:((m=window==null?void 0:window.blocklet)==null?void 0:m.did)||""};return s.jsx(I,{popup:!0,open:!0,hideCloseButton:!0,className:"connect",action:"lost-passport-issue",checkFn:v.get,checkTimeout:10*60*1e3,webWalletUrl:r,onSuccess:z,locale:j,messages:{title:`${n("lostPassport.dialog.title")}`,scan:n("lostPassport.dialog.scan"),confirm:n("lostPassport.dialog.confirm"),success:n("lostPassport.dialog.success")},extraParams:e})}},{label:n("common.complete"),content:()=>(o===0&&c(3e3),s.jsxs(x,{textAlign:"center",children:[s.jsx(x,{mb:3,color:"success.main",children:s.jsx(pe,{style:{fontSize:60}})}),s.jsx(D,{component:"p",variant:"body1",className:"subheader",children:n("issuePassport.dialog.success")}),s.jsx(D,{component:"p",variant:"body2",color:"gray",children:w&&$()?n("issuePassport.dialog.autoClose",{seconds:Math.round(N/1e3)}):n("issuePassport.dialog.autoJump",{seconds:Math.round(N/1e3)})}),s.jsx(M,{style:{marginTop:40},variant:"contained",color:"primary",onClick:L,children:n("issuePassport.dialog.loginWithPassport")})]}))}];return s.jsx(ke,{children:s.jsxs("div",{className:"stepper",children:[s.jsx(fe,{className:"stepper-progress",alternativeLabel:!0,activeStep:a.activeStep,children:_.map(({label:e})=>s.jsx(he,{children:s.jsx(xe,{StepIconComponent:Se,children:e})},e))}),s.jsx("div",{className:"stepper-content",children:_[a.activeStep].content()}),!a.success&&s.jsx(x,{textAlign:"center",fontSize:12,children:s.jsx(ee,{to:"/",style:{color:"#4598FA"},children:n("lostPassport.return")})})]})})}const ke=E(te)`
|
|
37
37
|
padding-top: 46px;
|
|
38
38
|
padding-bottom: 46px;
|
|
39
39
|
height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r,U as u,j as e,dZ as p,dO as I,eQ as M,eR as S,P as t,ez as b,s as m,eS as E}from"./index-
|
|
1
|
+
import{r,U as u,j as e,dZ as p,dO as I,eQ as M,eR as S,P as t,ez as b,s as m,eS as E}from"./index-BdODRvyL.js";import{d as v}from"./ExpandMore-BjFpCvCs.js";import{B as A}from"./ButtonGroup-CES_ASkn.js";function d(s){const{size:f,color:i,menu:a,children:l,variant:h,onClick:x,menuButtonProps:y,...g}=s,[j,c]=r.useState(!1),o=r.useRef(null),k=Array.isArray(a)?a.map((n,z)=>r.isValidElement(n)?n:r.createElement(u,{...n,key:z})):a,B=()=>{c(n=>!n)},C=n=>{o.current&&o.current.contains(n.target)||c(!1)},P=n=>{n.target.closest(".MuiMenuItem-root")&&c(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs(L,{variant:h,size:f,color:i,ref:o,...g,children:[typeof l=="function"?l():e.jsx(p,{onClick:x,color:i,children:l}),e.jsx(p,{onClick:B,color:i,...y,"aria-label":"more functions",children:e.jsx(v,{})})]}),e.jsx(O,{open:j,anchorEl:o.current,placement:"bottom-end",disablePortal:!1,children:e.jsx(I,{children:e.jsx(M,{onClickAway:C,children:e.jsx(S,{onClick:P,children:k})})})})]})}d.propTypes={size:t.string,color:t.string,menu:t.oneOfType([t.node,t.array]),children:t.node,variant:t.oneOf(["outlined","contained"]),onClick:t.func,menuButtonProps:t.object};d.defaultProps={size:"medium",color:"primary",menu:[],children:null,variant:"contained",onClick:b,menuButtonProps:{}};d.Item=u;const L=m(A)`
|
|
2
2
|
> .MuiButtonBase-root:last-of-type {
|
|
3
3
|
min-width: 2em;
|
|
4
4
|
padding-left: 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bJ as Vc,j as h,P as E,n as D0,C as bM,r as V,eZ as tb,cJ as Cc,cO as qb,k as gz,g as rb,J as Qz,cy as Pc,$ as Fc,e_ as jc,eA as Yc,dt as Ic,du as Uc,e$ as Hc,f0 as Kc,m as Qc,X as Jc,aK as $c,aL as Zc,f1 as MA,eD as wz,bb as bA,ez as zA,s as pA}from"./index-
|
|
1
|
+
import{bJ as Vc,j as h,P as E,n as D0,C as bM,r as V,eZ as tb,cJ as Cc,cO as qb,k as gz,g as rb,J as Qz,cy as Pc,$ as Fc,e_ as jc,eA as Yc,dt as Ic,du as Uc,e$ as Hc,f0 as Kc,m as Qc,X as Jc,aK as $c,aL as Zc,f1 as MA,eD as wz,bb as bA,ez as zA,s as pA}from"./index-BdODRvyL.js";import{j as OA}from"./url-join-C4mC0iDe.js";import{S as h2}from"./Skeleton-CzjJPNB7.js";import{C as oA}from"./Close-DrkkcxlK.js";import{l as cA}from"./lottie-BM_265d4.js";const AA=Vc([h.jsx("circle",{cx:"12",cy:"19",r:"2"},"0"),h.jsx("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");function nb({value:M,size:z,style:O,...o}){return h.jsxs(eA,{style:{width:z,height:z,...O},...o,children:[h.jsx(bM,{variant:"determinate",role:"progressbar",value:100,size:z,"aria-label":"decorative progress bar",thickness:10,style:{color:"#dddddd"}}),h.jsx(bM,{variant:"determinate",value:M,role:"progressbar",size:z,thickness:10,"aria-label":"main progress bar"})]})}nb.propTypes={value:E.number.isRequired,size:E.number,style:E.object};nb.defaultProps={size:10,style:{}};const eA=D0.span`
|
|
2
2
|
display: inline-block;
|
|
3
3
|
position: relative;
|
|
4
4
|
> * {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as H,j as o,fw as ho,ch as Ye,fx as go,aK as yr,aL as vr,fe as dt,Q as J,as as br,ax as Ke,m as xe,dW as yo,d1 as Hr,fy as vo,t as ke,fz as xr,fA as bo,aG as xo,cg as wo,dZ as ir,S as jt,eE as _n,eH as Ct,fB as mt,eV as Ce,fC as Eo,fk as Nn,fD as jo,fE as So,fl as Ln,fF as wr,fG as Ao,fH as Po,fI as Oo,fJ as Io,eD as ar,g as Ro,cO as Gr,eK as To,N as Co,bl as Ne,aO as Bn,U as St,eL as Do,fK as Er,at as ht,D as Ze,B as Ae,C as ot,x as jr,K as nt,M as Xe,P as $,fL as _o,k as sr,aU as No,y as Lo,z as Bo,n as Le,fd as ko,f as gt,ac as Dt,V as Fe,cb as Qe,E as it,fM as Uo,b as Je,d5 as qo,v as kn,H as Se,q as cr,W as At,cd as Fo,fN as Ko,fO as Un,aQ as Mo,aD as $o,a8 as zo,cA as Vo,a2 as Wo,bp as Ho,aZ as Go,a_ as Yo,R as Zo}from"./index-C9QWROlO.js";import{c as Jo}from"./index-Cd0Mo1_w.js";import{d as Pt}from"./Add-CrVU4iag.js";import{d as Xo}from"./Loop-BV9sPKwB.js";import{d as Qo}from"./ViewList-J5q5F0G_.js";import{L as ei,S as ti,d as qn}from"./list-header-Dj2MozqK.js";import{D as Sr,g as ri}from"./index-C2-bicAv.js";import"./index-DeiblLLO.js";import{c as qt,U as Ft,d as Fn}from"./resource-dialog-BmGWI1C9.js";import{T as ni}from"./index-B-dgg_7V.js";import{E as Kn}from"./index-8yVQ7VYg.js";import"./index-DhNPGktt.js";import"./index-dKvWGHlG.js";import{l as Mn}from"./index-DP0Qx805.js";import{o as $n}from"./index-ZG7jWpak.js";import{W as zn}from"./url-evaluation-DZQMDJ58.js";import{a as $e}from"./team-BLioMvZg.js";import{u as Vn}from"./blocklet-cMQmhjnL.js";import{C as _t}from"./click-to-copy-DYkJUEds.js";import{F as lr,S as ur}from"./Select-D1lY3LQG.js";import{I as fr}from"./InputLabel-B1j7mM5X.js";import{T as Wn}from"./TextField-kQx3sAGR.js";import{I as dr}from"./index-DQO2RskJ.js";import{b as oi}from"./sdk-CwPZ3suW.js";import{d as ii}from"./Delete-Dc7SNaDg.js";import{A as ai}from"./actions-Cn5PkGYM.js";import{S as si}from"./shorten-label-e4SQFDIH.js";var Ar={};Object.defineProperty(Ar,"__esModule",{value:!0});var Hn=Ar.default=void 0;ci(H);var tt=o;function ci(e){return e&&e.__esModule?e:{default:e}}function Yr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Zr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yr(Object(r),!0).forEach(function(n){li(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function li(e,t,r){return(t=ui(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ui(e){var t=fi(e,"string");return typeof t=="symbol"?t:t+""}function fi(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pr=function(t){return(0,tt.jsxs)("svg",Zr(Zr({},t),{},{children:[(0,tt.jsx)("g",{clipPath:"url(#clip0)",children:(0,tt.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 1.598A4.092 4.092 0 1 0 9 9.78a4.092 4.092 0 0 0 0-8.183zM7.274 3.964a2.44 2.44 0 1 1 3.452 3.451 2.44 2.44 0 0 1-3.452-3.451zm.093 6.343A4.091 4.091 0 0 0 3.275 14.4v2.722c0 .155.126.281.281.281h1.09a.281.281 0 0 0 .28-.281v-2.722a2.44 2.44 0 0 1 2.44-2.44h3.267a2.442 2.442 0 0 1 2.44 2.44v2.722c0 .155.127.281.282.281h1.088a.281.281 0 0 0 .282-.281v-2.722a4.091 4.091 0 0 0-4.092-4.091H7.367z"})}),(0,tt.jsx)("defs",{children:(0,tt.jsx)("clipPath",{id:"clip0",children:(0,tt.jsx)("path",{transform:"translate(0 .5)",d:"M0 0h18v18H0z"})})})]}))};Pr.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};Pr.displayName="person";Hn=Ar.default=Pr;var Et={},di=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Gn="%[a-f0-9]{2}",Jr=new RegExp("("+Gn+")|([^%]+?)","gi"),Xr=new RegExp("("+Gn+")+","gi");function pr(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],pr(r),pr(n))}function pi(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Jr)||[],r=1;r<t.length;r++)e=pr(t,r).join(""),t=e.match(Jr)||[];return e}}function mi(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=Xr.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{var n=pi(r[0]);n!==r[0]&&(t[r[0]]=n)}r=Xr.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),u=0;u<s.length;u++){var p=s[u];e=e.replace(new RegExp(p,"g"),t[p])}return e}var hi=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return mi(e)}},gi=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},yi=function(e,t){for(var r={},n=Object.keys(e),s=Array.isArray(t),u=0;u<n.length;u++){var p=n[u],y=e[p];(s?t.indexOf(p)!==-1:t(p,y,e))&&(r[p]=y)}return r};(function(e){const t=di,r=hi,n=gi,s=yi,u=c=>c==null;function p(c){switch(c.arrayFormat){case"index":return i=>(a,f)=>{const b=a.length;return f===void 0||c.skipNull&&f===null||c.skipEmptyString&&f===""?a:f===null?[...a,[E(i,c),"[",b,"]"].join("")]:[...a,[E(i,c),"[",E(b,c),"]=",E(f,c)].join("")]};case"bracket":return i=>(a,f)=>f===void 0||c.skipNull&&f===null||c.skipEmptyString&&f===""?a:f===null?[...a,[E(i,c),"[]"].join("")]:[...a,[E(i,c),"[]=",E(f,c)].join("")];case"comma":case"separator":return i=>(a,f)=>f==null||f.length===0?a:a.length===0?[[E(i,c),"=",E(f,c)].join("")]:[[a,E(f,c)].join(c.arrayFormatSeparator)];default:return i=>(a,f)=>f===void 0||c.skipNull&&f===null||c.skipEmptyString&&f===""?a:f===null?[...a,E(i,c)]:[...a,[E(i,c),"=",E(f,c)].join("")]}}function y(c){let i;switch(c.arrayFormat){case"index":return(a,f,b)=>{if(i=/\[(\d*)\]$/.exec(a),a=a.replace(/\[\d*\]$/,""),!i){b[a]=f;return}b[a]===void 0&&(b[a]={}),b[a][i[1]]=f};case"bracket":return(a,f,b)=>{if(i=/(\[\])$/.exec(a),a=a.replace(/\[\]$/,""),!i){b[a]=f;return}if(b[a]===void 0){b[a]=[f];return}b[a]=[].concat(b[a],f)};case"comma":case"separator":return(a,f,b)=>{const I=typeof f=="string"&&f.includes(c.arrayFormatSeparator),j=typeof f=="string"&&!I&&d(f,c).includes(c.arrayFormatSeparator);f=j?d(f,c):f;const L=I||j?f.split(c.arrayFormatSeparator).map(z=>d(z,c)):f===null?f:d(f,c);b[a]=L};default:return(a,f,b)=>{if(b[a]===void 0){b[a]=f;return}b[a]=[].concat(b[a],f)}}}function w(c){if(typeof c!="string"||c.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function E(c,i){return i.encode?i.strict?t(c):encodeURIComponent(c):c}function d(c,i){return i.decode?r(c):c}function O(c){return Array.isArray(c)?c.sort():typeof c=="object"?O(Object.keys(c)).sort((i,a)=>Number(i)-Number(a)).map(i=>c[i]):c}function x(c){const i=c.indexOf("#");return i!==-1&&(c=c.slice(0,i)),c}function A(c){let i="";const a=c.indexOf("#");return a!==-1&&(i=c.slice(a)),i}function S(c){c=x(c);const i=c.indexOf("?");return i===-1?"":c.slice(i+1)}function N(c,i){return i.parseNumbers&&!Number.isNaN(Number(c))&&typeof c=="string"&&c.trim()!==""?c=Number(c):i.parseBooleans&&c!==null&&(c.toLowerCase()==="true"||c.toLowerCase()==="false")&&(c=c.toLowerCase()==="true"),c}function P(c,i){i=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},i),w(i.arrayFormatSeparator);const a=y(i),f=Object.create(null);if(typeof c!="string"||(c=c.trim().replace(/^[?#&]/,""),!c))return f;for(const b of c.split("&")){if(b==="")continue;let[I,j]=n(i.decode?b.replace(/\+/g," "):b,"=");j=j===void 0?null:["comma","separator"].includes(i.arrayFormat)?j:d(j,i),a(d(I,i),j,f)}for(const b of Object.keys(f)){const I=f[b];if(typeof I=="object"&&I!==null)for(const j of Object.keys(I))I[j]=N(I[j],i);else f[b]=N(I,i)}return i.sort===!1?f:(i.sort===!0?Object.keys(f).sort():Object.keys(f).sort(i.sort)).reduce((b,I)=>{const j=f[I];return j&&typeof j=="object"&&!Array.isArray(j)?b[I]=O(j):b[I]=j,b},Object.create(null))}e.extract=S,e.parse=P,e.stringify=(c,i)=>{if(!c)return"";i=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},i),w(i.arrayFormatSeparator);const a=j=>i.skipNull&&u(c[j])||i.skipEmptyString&&c[j]==="",f=p(i),b={};for(const j of Object.keys(c))a(j)||(b[j]=c[j]);const I=Object.keys(b);return i.sort!==!1&&I.sort(i.sort),I.map(j=>{const L=c[j];return L===void 0?"":L===null?E(j,i):Array.isArray(L)?L.reduce(f(j),[]).join("&"):E(j,i)+"="+E(L,i)}).filter(j=>j.length>0).join("&")},e.parseUrl=(c,i)=>{i=Object.assign({decode:!0},i);const[a,f]=n(c,"#");return Object.assign({url:a.split("?")[0]||"",query:P(S(c),i)},i&&i.parseFragmentIdentifier&&f?{fragmentIdentifier:d(f,i)}:{})},e.stringifyUrl=(c,i)=>{i=Object.assign({encode:!0,strict:!0},i);const a=x(c.url).split("?")[0]||"",f=e.extract(c.url),b=e.parse(f,{sort:!1}),I=Object.assign(b,c.query);let j=e.stringify(I,i);j&&(j=`?${j}`);let L=A(c.url);return c.fragmentIdentifier&&(L=`#${E(c.fragmentIdentifier,i)}`),`${a}${j}${L}`},e.pick=(c,i,a)=>{a=Object.assign({parseFragmentIdentifier:!0},a);const{url:f,query:b,fragmentIdentifier:I}=e.parseUrl(c,a);return e.stringifyUrl({url:f,query:s(b,i),fragmentIdentifier:I},a)},e.exclude=(c,i,a)=>{const f=Array.isArray(i)?b=>!i.includes(b):(b,I)=>!i(b,I);return e.pick(c,f,a)}})(Et);const ut=go,vi={parseNumbers:!1,parseBooleans:!1},bi={skipNull:!1,skipEmptyString:!1},xi=(e,t)=>{var r,n;const{navigateMode:s="push",parseOptions:u,stringifyOptions:p}={},y=Object.assign(Object.assign({},vi),u),w=Object.assign(Object.assign({},bi),p),E=ut.useLocation(),d=(r=ut.useHistory)===null||r===void 0?void 0:r.call(ut),O=(n=ut.useNavigate)===null||n===void 0?void 0:n.call(ut),x=ho(),A=H.useRef(typeof e=="function"?e():e||{}),S=H.useMemo(()=>Et.parse(E.search,y),[E.search]),N=H.useMemo(()=>Object.assign(Object.assign({},A.current),S),[S]);return[N,Ye(c=>{const i=typeof c=="function"?c(N):c;x(),d&&d[s]({hash:E.hash,search:Et.stringify(Object.assign(Object.assign({},S),i),w)||"?"},E.state),O&&O({hash:E.hash,search:Et.stringify(Object.assign(Object.assign({},S),i),w)||"?"},{replace:s==="replace",state:E.state})})]},wi=xi;var Or={},Ei=vr;Object.defineProperty(Or,"__esModule",{value:!0});var Yn=Or.default=void 0,ji=Ei(yr()),Si=o;Yn=Or.default=(0,ji.default)((0,Si.jsx)("path",{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z"}),"Verified");let Ai=class extends Error{constructor(t){super(),this.name="AbortError",this.message=t}};const Qr=e=>globalThis.DOMException===void 0?new Ai(e):new DOMException(e),en=e=>{const t=e.reason===void 0?Qr("This operation was aborted."):e.reason;return t instanceof Error?t:Qr(t)};async function Pi(e,t,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:n=!0,signal:s}={}){return new Promise((u,p)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof t!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(r)||r===Number.POSITIVE_INFINITY)&&r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);const y=[],w=[],E=new Map;let d=!1,O=!1,x=!1,A=0,S=0;const N=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),P=i=>{d=!0,O=!0,p(i)};s&&(s.aborted&&P(en(s)),s.addEventListener("abort",()=>{P(en(s))}));const c=async()=>{if(O)return;const i=await N.next(),a=S;if(S++,i.done){if(x=!0,A===0&&!O){if(!n&&w.length>0){P(new AggregateError(w));return}if(O=!0,E.size===0){u(y);return}const f=[];for(const[b,I]of y.entries())E.get(b)!==tn&&f.push(I);u(f)}return}A++,(async()=>{try{const f=await i.value;if(O)return;const b=await t(f,a);b===tn&&E.set(a,b),y[a]=b,A--,await c()}catch(f){if(n)P(f);else{w.push(f),A--;try{await c()}catch(b){P(b)}}}})()};(async()=>{for(let i=0;i<r;i++){try{await c()}catch(a){P(a);break}if(x||d)break}})()})}const tn=Symbol("skip");async function Oi(e,t){return Pi(e,r=>r(),t)}function Ii({user:e,sessionUser:t}){const r=dt(()=>{var n;return(n=(e==null?void 0:e.passports)||[])==null?void 0:n.find(s=>s.name===t.role)},[e==null?void 0:e.passports,t==null?void 0:t.role]);return o.jsxs(J,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(br,{size:40,variant:"circle",shape:"circle",src:t.avatar,did:t.did,sx:{flexShrink:0}}),o.jsxs(J,{sx:{flex:1,overflow:"hidden"},children:[o.jsxs(J,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(Ke,{title:t.fullName,children:o.jsx(xe,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:t.fullName})}),o.jsx(yo,{label:(r==null?void 0:r.title)||(r==null?void 0:r.name)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:Hr.textBase,borderColor:Hr.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:.5,pl:0,height:"auto"}})]}),o.jsx(Ke,{title:t.email,children:o.jsx(xe,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.email})})]})]})}const Ri={zh:{confirm:"确认",cancel:"取消",visitorId:"设备标识",deviceType:"设备类型",platform:"操作系统",walletOS:"钱包类型",role:"角色",fullname:"姓名",email:"邮箱",avatar:"头像",user:"用户",createdAt:"首次活动时间",updatedAt:"最近活动时间",lastLoginIp:"最近活动地址",actions:"操作",logoutAll:"注销所有会话",logoutAllTips:"不会注销当前会话",logout:"注销",currentSession:"当前会话",unknown:"未知",expired:"已过期",remove:"删除",logoutThisSession:"注销指定会话",logoutThisSessionConfirm:"确定要注销此会话吗?",logoutAllSession:"注销所有会话",logoutAllSessionConfirm:"确定要注销所有会话吗?"},en:{confirm:"Confirm",cancel:"Cancel",visitorId:"Device ID",deviceType:"Device Type",platform:"Platform",walletOS:"Wallet OS",role:"Role",fullname:"Fullname",email:"Email",avatar:"Avatar",user:"User",createdAt:"First Active Time",updatedAt:"Last Active Time",actions:"Actions",lastLoginIp:"Last Login IP",logoutAll:"Logout all",logoutAllTips:"Will not logout current session",logout:"Logout",currentSession:"Current Session",unknown:"Unknown",expired:"Expired",remove:"Remove",logoutThisSession:"Logout this session",logoutThisSessionConfirm:"Are you sure to logout this session?",logoutAllSession:"Logout all sessions",logoutAllSessionConfirm:"Are you sure to logout all sessions?"}},Zn="Reserved IP",rn="ip-region-cache";async function Ti(e){const t=`https://ipapi.co/${e}/json/`,n=await(await fetch(t)).json();let s="";return n.error?n.reserved&&(s=Zn):s=[n.country_name,n.region,n.city].filter(Boolean).join("/"),s}async function Ci(e){const t=`https://api.ip.sb/geoip/${e}`,n=await(await fetch(t)).json();let s="";return n.error?n.reserved&&(s=Zn):s=[n.country,n.region,n.city].filter(Boolean).join("/"),s}async function Di(e){let t="",r={};try{const n=localStorage.getItem(rn);n&&(r=JSON.parse(n))}catch{r={}}if(r[e])t=r[e];else{try{t=await Ci(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!t)try{t=await Ti(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(t){const n=Object.keys(r);n.length>100&&delete r[n[0]],r[e]&&delete r[e],r[e]=t,localStorage.setItem(rn,JSON.stringify(r))}return t}async function _i(e){return Promise.all(e.map(t=>Di(t)))}const nn=e=>new Ft(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[Ft.BROWSER.NAME,Ft.BROWSER.VERSION]]}).getResult();function Ni({user:e,showAction:t=!0,showUser:r=!0}){const n=vo(),{locale:s}=ke(),{confirmApi:u,confirmHolder:p}=xr(),y=Ye((i,a={})=>bo(Ri,i,s,"en",a)),w=Ye(async()=>{let i=e==null?void 0:e.userSessions;i||(i=await qt.userSession.getUserSessions({did:e.did}));try{const f=i==null?void 0:i.map((j,L)=>[L,j.lastLoginIp]).filter(j=>!!j[1]),b=f==null?void 0:f.map(j=>j[1]),I=await _i(b);for(let j=0;j<I.length;j++){const L=I[j],z=f[j],X=i[z[0]];X.ipRegion=L}}catch(f){console.warn("Failed to convert ip to region"),console.error(f)}const a=new Date().getTime();return xo(i,f=>f.visitorId===n?-1:a-new Date(f.updatedAt).getTime())}),E=wo(w),d=dt(()=>E.data||[],[E.data]),O=dt(()=>d.reduce((i,a)=>(i[a.lastLoginIp]=a.ipRegion,i),{}),[d]),x=Ye(({visitorId:i})=>{u.open({title:y("logoutThisSession"),content:y("logoutThisSessionConfirm"),confirmButtonText:y("confirm"),cancelButtonText:y("cancel"),onConfirm:async()=>{await qt.user.logout({visitorId:i}),E.refresh(),u.close()}})}),A=dt(()=>d.filter(a=>a.visitorId!==n),[d]),S=Ye(()=>{u.open({title:y("logoutAllSession"),content:y("logoutAllSessionConfirm"),confirmButtonText:y("confirm"),cancelButtonText:y("cancel"),onConfirm:async()=>{const i=A.map(a=>()=>qt.user.logout({visitorId:a.visitorId}));await Oi(i,{concurrency:3,stopOnError:!1}),E.refresh(),u.close()}})}),N=[];t&&N.push(o.jsx(Ke,{title:y("logoutAllTips"),children:o.jsx(ir,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:S,disabled:A.length===0,children:y("logoutAll")})},"logoutAll"));const P=dt(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600}),[]),c=[{label:y("platform"),name:"platform",options:{customBodyRenderLite:i=>{var b,I;const a=d[i],f=nn(a.ua);return o.jsx(J,{children:[(b=f.os)==null?void 0:b.name,(I=f.os)==null?void 0:I.version].filter(Boolean).join("/")||y("unknown")})}}},{label:y("deviceType"),name:"deviceType",options:{customBodyRenderLite:i=>{var b,I;const a=d[i],f=nn(a.ua);return o.jsx(J,{children:[(b=f.browser)==null?void 0:b.name,(I=f.browser)==null?void 0:I.version].filter(Boolean).join("/")||y("unknown")})}}},{label:y("walletOS"),name:"walletOS",options:{customBodyRenderLite:i=>{var f;const a=d[i];return o.jsx(J,{children:((f=a.extra)==null?void 0:f.walletOS)||y("unknown")})}}},r&&{label:y("user"),name:"user",options:{customBodyRenderLite:i=>{const a=d[i];return o.jsx(J,{sx:{minWidth:150,maxWidth:250},children:o.jsx(Ii,{sessionUser:a.user,user:e})})}}},{label:y("createdAt"),name:"createdAt",options:{customBodyRenderLite:i=>{const a=d[i];return a.createdAt?o.jsx(jt,{value:a.createdAt,relativeRange:3*86400*1e3,locale:s}):y("unknown")}}},{label:y("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:i=>{const a=d[i];return a.status==="expired"?y("expired"):o.jsx(jt,{value:a.updatedAt,relativeRange:3*86400*1e3,locale:s})}}},{label:y("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:i=>{const a=d[i];return o.jsx(J,{children:O[a.lastLoginIp]?o.jsxs(o.Fragment,{children:[o.jsx(xe,{variant:"body2",children:O[a.lastLoginIp]}),o.jsx(xe,{variant:"body2",color:"grey",children:a.lastLoginIp||y("unknown")})]}):o.jsx(xe,{children:a.lastLoginIp||y("unknown")})})}}},t&&{label:y("actions"),name:"actions",options:{customBodyRenderLite:i=>{const a=d[i];return o.jsx(J,{children:o.jsx(ir,{sx:{whiteSpace:"nowrap",fontSize:"12px",px:1},disabled:n===a.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>x({visitorId:a.visitorId}),children:a.status==="expired"?y("remove"):n===a.visitorId?y("currentSession"):y("logout")})})}}}].filter(Boolean);return o.jsxs(J,{sx:{".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"}},children:[p,o.jsx(Sr,{locale:s,data:d,columns:c,customButtons:N,options:P,loading:E.loading})]})}var he={};Object.defineProperty(he,"__esModule",{value:!0});he.isValid=he.fromJSON=he.fromRandom=he.fromAddress=he.fromPublicKey=he.fromSecretKey=he.Wallet=he.WalletType=void 0;const yt=_n,Ot=Ct,Ie=Mn;he.WalletType=Ie.DidType;function at(e,t="default"){const r=(0,Ie.DidType)(t),n=(0,Ot.getSigner)(r.pk),s=(0,Ot.getHasher)(r.hash);return{type:r,secretKey:e.sk,publicKey:e.pk,address:e.pk?(0,Ie.fromPublicKey)(e.pk,r):e.address,hash(u,p=1,y="hex"){return s(u,p,y)},sign(u,p=!0,y="hex"){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(p){const w=s(u,1);return n.sign(w,e.sk,y)}return n.sign(u,e.sk,y)},verify(u,p,y=!0){if(!e.pk)throw new Error("Cannot verify data without a publicKey");const w=y?s(u,1):u;return n.verify(w,p,e.pk)},ethHash(u){if(typeof n.ethHash!="function")throw new Error("ethHash is not supported by signer");return n.ethHash(u)},ethSign(u,p=!0){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(typeof n.ethHash!="function")throw new Error("ethSign is not supported by signer");return p?n.ethSign(n.ethHash(u),(0,yt.toHex)(e.sk)):n.ethSign(u,(0,yt.toHex)(e.sk))},ethVerify(u,p,y=!0){if(typeof n.ethHash!="function")throw new Error("ethVerify is not supported by signer");const w=y?n.ethHash(u):u;return n.ethRecover(w,p)===this.address},toAddress(){return e.pk?(0,Ie.fromPublicKey)(e.pk,r):e.address},toJSON(){return{type:Ie.DidType.toJSON(r),sk:(0,yt.toHex)(e.sk),pk:(0,yt.toHex)(e.pk),address:this.address}}}}he.Wallet=at;function Li(e,t="default"){const r=(0,Ie.DidType)(t),n={sk:e,pk:(0,Ot.getSigner)(r.pk).getPublicKey(e)};return at(n,r)}he.fromSecretKey=Li;function Bi(e,t="default"){return at({pk:e},(0,Ie.DidType)(t))}he.fromPublicKey=Bi;function ki(e){return at({address:(0,Ie.toAddress)(e)},(0,Ie.toTypeInfo)(e))}he.fromAddress=ki;function Ui(e="default"){const t=(0,Ie.DidType)(e),n=(0,Ot.getSigner)(t.pk).genKeyPair();return at({sk:n.secretKey,pk:n.publicKey},t)}he.fromRandom=Ui;function qi(e){const t=Ie.DidType.fromJSON(e.type);return at(e,t)}he.fromJSON=qi;function Fi(e,t=!0){return!(!e||typeof e!="object"||typeof e.verify!="function"||typeof e.toAddress!="function"||typeof e.toJSON!="function"||!e.type||!e.publicKey||t&&(!e.secretKey||typeof e.sign!="function"))}he.isValid=Fi;var Kt={exports:{}},Mt={},on;function Jn(){if(on)return Mt;on=1;function e(i){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e(i)}function t(i,a,f){return Object.defineProperty(i,"prototype",{writable:!1}),i}function r(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function n(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),a&&s(i,a)}function s(i,a){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,I){return b.__proto__=I,b},s(i,a)}function u(i){var a=w();return function(){var b=E(i),I;if(a){var j=E(this).constructor;I=Reflect.construct(b,arguments,j)}else I=b.apply(this,arguments);return p(this,I)}}function p(i,a){if(a&&(e(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y(i)}function y(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function E(i){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)},E(i)}var d={},O,x;function A(i,a,f){f||(f=Error);function b(j,L,z){return typeof a=="string"?a:a(j,L,z)}var I=function(j){n(z,j);var L=u(z);function z(X,Q,G){var ee;return r(this,z),ee=L.call(this,b(X,Q,G)),ee.code=i,ee}return t(z)}(f);d[i]=I}function S(i,a){if(Array.isArray(i)){var f=i.length;return i=i.map(function(b){return String(b)}),f>2?"one of ".concat(a," ").concat(i.slice(0,f-1).join(", "),", or ")+i[f-1]:f===2?"one of ".concat(a," ").concat(i[0]," or ").concat(i[1]):"of ".concat(a," ").concat(i[0])}else return"of ".concat(a," ").concat(String(i))}function N(i,a,f){return i.substr(0,a.length)===a}function P(i,a,f){return(f===void 0||f>i.length)&&(f=i.length),i.substring(f-a.length,f)===a}function c(i,a,f){return typeof f!="number"&&(f=0),f+a.length>i.length?!1:i.indexOf(a,f)!==-1}return A("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),A("ERR_INVALID_ARG_TYPE",function(i,a,f){O===void 0&&(O=mr()),O(typeof i=="string","'name' must be a string");var b;typeof a=="string"&&N(a,"not ")?(b="must not be",a=a.replace(/^not /,"")):b="must be";var I;if(P(i," argument"))I="The ".concat(i," ").concat(b," ").concat(S(a,"type"));else{var j=c(i,".")?"property":"argument";I='The "'.concat(i,'" ').concat(j," ").concat(b," ").concat(S(a,"type"))}return I+=". Received type ".concat(e(f)),I},TypeError),A("ERR_INVALID_ARG_VALUE",function(i,a){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";x===void 0&&(x=mt);var b=x.inspect(a);return b.length>128&&(b="".concat(b.slice(0,128),"...")),"The argument '".concat(i,"' ").concat(f,". Received ").concat(b)},TypeError),A("ERR_INVALID_RETURN_VALUE",function(i,a,f){var b;return f&&f.constructor&&f.constructor.name?b="instance of ".concat(f.constructor.name):b="type ".concat(e(f)),"Expected ".concat(i,' to be returned from the "').concat(a,'"')+" function but got ".concat(b,".")},TypeError),A("ERR_MISSING_ARGS",function(){for(var i=arguments.length,a=new Array(i),f=0;f<i;f++)a[f]=arguments[f];O===void 0&&(O=mr()),O(a.length>0,"At least one arg needs to be specified");var b="The ",I=a.length;switch(a=a.map(function(j){return'"'.concat(j,'"')}),I){case 1:b+="".concat(a[0]," argument");break;case 2:b+="".concat(a[0]," and ").concat(a[1]," arguments");break;default:b+=a.slice(0,I-1).join(", "),b+=", and ".concat(a[I-1]," arguments");break}return"".concat(b," must be specified")},TypeError),Mt.codes=d,Mt}var $t,an;function Ki(){if(an)return $t;an=1;function e(R,T){var F=Object.keys(R);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(R);T&&(D=D.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),F.push.apply(F,D)}return F}function t(R){for(var T=1;T<arguments.length;T++){var F=arguments[T]!=null?arguments[T]:{};T%2?e(Object(F),!0).forEach(function(D){r(R,D,F[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(F)):e(Object(F)).forEach(function(D){Object.defineProperty(R,D,Object.getOwnPropertyDescriptor(F,D))})}return R}function r(R,T,F){return T=p(T),T in R?Object.defineProperty(R,T,{value:F,enumerable:!0,configurable:!0,writable:!0}):R[T]=F,R}function n(R,T){if(!(R instanceof T))throw new TypeError("Cannot call a class as a function")}function s(R,T){for(var F=0;F<T.length;F++){var D=T[F];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(R,p(D.key),D)}}function u(R,T,F){return T&&s(R.prototype,T),Object.defineProperty(R,"prototype",{writable:!1}),R}function p(R){var T=y(R,"string");return i(T)==="symbol"?T:String(T)}function y(R,T){if(i(R)!=="object"||R===null)return R;var F=R[Symbol.toPrimitive];if(F!==void 0){var D=F.call(R,T||"default");if(i(D)!=="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(R)}function w(R,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(T&&T.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),T&&P(R,T)}function E(R){var T=S();return function(){var D=c(R),W;if(T){var g=c(this).constructor;W=Reflect.construct(D,arguments,g)}else W=D.apply(this,arguments);return d(this,W)}}function d(R,T){if(T&&(i(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O(R)}function O(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function x(R){var T=typeof Map=="function"?new Map:void 0;return x=function(D){if(D===null||!N(D))return D;if(typeof D!="function")throw new TypeError("Super expression must either be null or a function");if(typeof T<"u"){if(T.has(D))return T.get(D);T.set(D,W)}function W(){return A(D,arguments,c(this).constructor)}return W.prototype=Object.create(D.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),P(W,D)},x(R)}function A(R,T,F){return S()?A=Reflect.construct.bind():A=function(W,g,m){var v=[null];v.push.apply(v,g);var B=Function.bind.apply(W,v),_=new B;return m&&P(_,m.prototype),_},A.apply(null,arguments)}function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function N(R){return Function.toString.call(R).indexOf("[native code]")!==-1}function P(R,T){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,W){return D.__proto__=W,D},P(R,T)}function c(R){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},c(R)}function i(R){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},i(R)}var a=mt,f=a.inspect,b=Jn(),I=b.codes.ERR_INVALID_ARG_TYPE;function j(R,T,F){return(F===void 0||F>R.length)&&(F=R.length),R.substring(F-T.length,F)===T}function L(R,T){if(T=Math.floor(T),R.length==0||T==0)return"";var F=R.length*T;for(T=Math.floor(Math.log(T)/Math.log(2));T;)R+=R,T--;return R+=R.substring(0,F-R.length),R}var z="",X="",Q="",G="",ee={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},we=10;function Y(R){var T=Object.keys(R),F=Object.create(Object.getPrototypeOf(R));return T.forEach(function(D){F[D]=R[D]}),Object.defineProperty(F,"message",{value:R.message}),F}function de(R){return f(R,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Ee(R,T,F){var D="",W="",g=0,m="",v=!1,B=de(R),_=B.split(`
|
|
1
|
+
import{r as H,j as o,fw as ho,ch as Ye,fx as go,aK as yr,aL as vr,fe as dt,Q as J,as as br,ax as Ke,m as xe,dW as yo,d1 as Hr,fy as vo,t as ke,fz as xr,fA as bo,aG as xo,cg as wo,dZ as ir,S as jt,eE as _n,eH as Ct,fB as mt,eV as Ce,fC as Eo,fk as Nn,fD as jo,fE as So,fl as Ln,fF as wr,fG as Ao,fH as Po,fI as Oo,fJ as Io,eD as ar,g as Ro,cO as Gr,eK as To,N as Co,bl as Ne,aO as Bn,U as St,eL as Do,fK as Er,at as ht,D as Ze,B as Ae,C as ot,x as jr,K as nt,M as Xe,P as $,fL as _o,k as sr,aU as No,y as Lo,z as Bo,n as Le,fd as ko,f as gt,ac as Dt,V as Fe,cb as Qe,E as it,fM as Uo,b as Je,d5 as qo,v as kn,H as Se,q as cr,W as At,cd as Fo,fN as Ko,fO as Un,aQ as Mo,aD as $o,a8 as zo,cA as Vo,a2 as Wo,bp as Ho,aZ as Go,a_ as Yo,R as Zo}from"./index-BdODRvyL.js";import{c as Jo}from"./index-f7uSWUvq.js";import{d as Pt}from"./Add-D_k4pI9W.js";import{d as Xo}from"./Loop-DKDVusA2.js";import{d as Qo}from"./ViewList-SsmYyAxZ.js";import{L as ei,S as ti,d as qn}from"./list-header-B-qlxkz3.js";import{D as Sr,g as ri}from"./index-XhvmS84N.js";import"./index-CFm2Y_4c.js";import{c as qt,U as Ft,d as Fn}from"./resource-dialog-BhhfM8h1.js";import{T as ni}from"./index-BJrQBQOR.js";import{E as Kn}from"./index-Cd5kGc_9.js";import"./index-C9LZUW4N.js";import"./index-BJ57e_hS.js";import{l as Mn}from"./index-B5kkYZq8.js";import{o as $n}from"./index-ZG7jWpak.js";import{W as zn}from"./url-evaluation-CeM0t6WP.js";import{a as $e}from"./team-CpKT_TRB.js";import{u as Vn}from"./blocklet-fx7ejRT1.js";import{C as _t}from"./click-to-copy-BVC4LJBm.js";import{F as lr,S as ur}from"./Select-CYNjgjo3.js";import{I as fr}from"./InputLabel-CbBV3Frl.js";import{T as Wn}from"./TextField-B8Ndn_Ly.js";import{I as dr}from"./index-DQOcXiyw.js";import{b as oi}from"./sdk-muHS20Ah.js";import{d as ii}from"./Delete-DzIkIBeP.js";import{A as ai}from"./actions-C-Plplr7.js";import{S as si}from"./shorten-label-Dc8UKk1Q.js";var Ar={};Object.defineProperty(Ar,"__esModule",{value:!0});var Hn=Ar.default=void 0;ci(H);var tt=o;function ci(e){return e&&e.__esModule?e:{default:e}}function Yr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Zr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yr(Object(r),!0).forEach(function(n){li(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function li(e,t,r){return(t=ui(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ui(e){var t=fi(e,"string");return typeof t=="symbol"?t:t+""}function fi(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pr=function(t){return(0,tt.jsxs)("svg",Zr(Zr({},t),{},{children:[(0,tt.jsx)("g",{clipPath:"url(#clip0)",children:(0,tt.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 1.598A4.092 4.092 0 1 0 9 9.78a4.092 4.092 0 0 0 0-8.183zM7.274 3.964a2.44 2.44 0 1 1 3.452 3.451 2.44 2.44 0 0 1-3.452-3.451zm.093 6.343A4.091 4.091 0 0 0 3.275 14.4v2.722c0 .155.126.281.281.281h1.09a.281.281 0 0 0 .28-.281v-2.722a2.44 2.44 0 0 1 2.44-2.44h3.267a2.442 2.442 0 0 1 2.44 2.44v2.722c0 .155.127.281.282.281h1.088a.281.281 0 0 0 .282-.281v-2.722a4.091 4.091 0 0 0-4.092-4.091H7.367z"})}),(0,tt.jsx)("defs",{children:(0,tt.jsx)("clipPath",{id:"clip0",children:(0,tt.jsx)("path",{transform:"translate(0 .5)",d:"M0 0h18v18H0z"})})})]}))};Pr.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};Pr.displayName="person";Hn=Ar.default=Pr;var Et={},di=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Gn="%[a-f0-9]{2}",Jr=new RegExp("("+Gn+")|([^%]+?)","gi"),Xr=new RegExp("("+Gn+")+","gi");function pr(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],pr(r),pr(n))}function pi(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Jr)||[],r=1;r<t.length;r++)e=pr(t,r).join(""),t=e.match(Jr)||[];return e}}function mi(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=Xr.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{var n=pi(r[0]);n!==r[0]&&(t[r[0]]=n)}r=Xr.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),u=0;u<s.length;u++){var p=s[u];e=e.replace(new RegExp(p,"g"),t[p])}return e}var hi=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return mi(e)}},gi=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},yi=function(e,t){for(var r={},n=Object.keys(e),s=Array.isArray(t),u=0;u<n.length;u++){var p=n[u],y=e[p];(s?t.indexOf(p)!==-1:t(p,y,e))&&(r[p]=y)}return r};(function(e){const t=di,r=hi,n=gi,s=yi,u=c=>c==null;function p(c){switch(c.arrayFormat){case"index":return i=>(a,f)=>{const b=a.length;return f===void 0||c.skipNull&&f===null||c.skipEmptyString&&f===""?a:f===null?[...a,[E(i,c),"[",b,"]"].join("")]:[...a,[E(i,c),"[",E(b,c),"]=",E(f,c)].join("")]};case"bracket":return i=>(a,f)=>f===void 0||c.skipNull&&f===null||c.skipEmptyString&&f===""?a:f===null?[...a,[E(i,c),"[]"].join("")]:[...a,[E(i,c),"[]=",E(f,c)].join("")];case"comma":case"separator":return i=>(a,f)=>f==null||f.length===0?a:a.length===0?[[E(i,c),"=",E(f,c)].join("")]:[[a,E(f,c)].join(c.arrayFormatSeparator)];default:return i=>(a,f)=>f===void 0||c.skipNull&&f===null||c.skipEmptyString&&f===""?a:f===null?[...a,E(i,c)]:[...a,[E(i,c),"=",E(f,c)].join("")]}}function y(c){let i;switch(c.arrayFormat){case"index":return(a,f,b)=>{if(i=/\[(\d*)\]$/.exec(a),a=a.replace(/\[\d*\]$/,""),!i){b[a]=f;return}b[a]===void 0&&(b[a]={}),b[a][i[1]]=f};case"bracket":return(a,f,b)=>{if(i=/(\[\])$/.exec(a),a=a.replace(/\[\]$/,""),!i){b[a]=f;return}if(b[a]===void 0){b[a]=[f];return}b[a]=[].concat(b[a],f)};case"comma":case"separator":return(a,f,b)=>{const I=typeof f=="string"&&f.includes(c.arrayFormatSeparator),j=typeof f=="string"&&!I&&d(f,c).includes(c.arrayFormatSeparator);f=j?d(f,c):f;const L=I||j?f.split(c.arrayFormatSeparator).map(z=>d(z,c)):f===null?f:d(f,c);b[a]=L};default:return(a,f,b)=>{if(b[a]===void 0){b[a]=f;return}b[a]=[].concat(b[a],f)}}}function w(c){if(typeof c!="string"||c.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function E(c,i){return i.encode?i.strict?t(c):encodeURIComponent(c):c}function d(c,i){return i.decode?r(c):c}function O(c){return Array.isArray(c)?c.sort():typeof c=="object"?O(Object.keys(c)).sort((i,a)=>Number(i)-Number(a)).map(i=>c[i]):c}function x(c){const i=c.indexOf("#");return i!==-1&&(c=c.slice(0,i)),c}function A(c){let i="";const a=c.indexOf("#");return a!==-1&&(i=c.slice(a)),i}function S(c){c=x(c);const i=c.indexOf("?");return i===-1?"":c.slice(i+1)}function N(c,i){return i.parseNumbers&&!Number.isNaN(Number(c))&&typeof c=="string"&&c.trim()!==""?c=Number(c):i.parseBooleans&&c!==null&&(c.toLowerCase()==="true"||c.toLowerCase()==="false")&&(c=c.toLowerCase()==="true"),c}function P(c,i){i=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},i),w(i.arrayFormatSeparator);const a=y(i),f=Object.create(null);if(typeof c!="string"||(c=c.trim().replace(/^[?#&]/,""),!c))return f;for(const b of c.split("&")){if(b==="")continue;let[I,j]=n(i.decode?b.replace(/\+/g," "):b,"=");j=j===void 0?null:["comma","separator"].includes(i.arrayFormat)?j:d(j,i),a(d(I,i),j,f)}for(const b of Object.keys(f)){const I=f[b];if(typeof I=="object"&&I!==null)for(const j of Object.keys(I))I[j]=N(I[j],i);else f[b]=N(I,i)}return i.sort===!1?f:(i.sort===!0?Object.keys(f).sort():Object.keys(f).sort(i.sort)).reduce((b,I)=>{const j=f[I];return j&&typeof j=="object"&&!Array.isArray(j)?b[I]=O(j):b[I]=j,b},Object.create(null))}e.extract=S,e.parse=P,e.stringify=(c,i)=>{if(!c)return"";i=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},i),w(i.arrayFormatSeparator);const a=j=>i.skipNull&&u(c[j])||i.skipEmptyString&&c[j]==="",f=p(i),b={};for(const j of Object.keys(c))a(j)||(b[j]=c[j]);const I=Object.keys(b);return i.sort!==!1&&I.sort(i.sort),I.map(j=>{const L=c[j];return L===void 0?"":L===null?E(j,i):Array.isArray(L)?L.reduce(f(j),[]).join("&"):E(j,i)+"="+E(L,i)}).filter(j=>j.length>0).join("&")},e.parseUrl=(c,i)=>{i=Object.assign({decode:!0},i);const[a,f]=n(c,"#");return Object.assign({url:a.split("?")[0]||"",query:P(S(c),i)},i&&i.parseFragmentIdentifier&&f?{fragmentIdentifier:d(f,i)}:{})},e.stringifyUrl=(c,i)=>{i=Object.assign({encode:!0,strict:!0},i);const a=x(c.url).split("?")[0]||"",f=e.extract(c.url),b=e.parse(f,{sort:!1}),I=Object.assign(b,c.query);let j=e.stringify(I,i);j&&(j=`?${j}`);let L=A(c.url);return c.fragmentIdentifier&&(L=`#${E(c.fragmentIdentifier,i)}`),`${a}${j}${L}`},e.pick=(c,i,a)=>{a=Object.assign({parseFragmentIdentifier:!0},a);const{url:f,query:b,fragmentIdentifier:I}=e.parseUrl(c,a);return e.stringifyUrl({url:f,query:s(b,i),fragmentIdentifier:I},a)},e.exclude=(c,i,a)=>{const f=Array.isArray(i)?b=>!i.includes(b):(b,I)=>!i(b,I);return e.pick(c,f,a)}})(Et);const ut=go,vi={parseNumbers:!1,parseBooleans:!1},bi={skipNull:!1,skipEmptyString:!1},xi=(e,t)=>{var r,n;const{navigateMode:s="push",parseOptions:u,stringifyOptions:p}={},y=Object.assign(Object.assign({},vi),u),w=Object.assign(Object.assign({},bi),p),E=ut.useLocation(),d=(r=ut.useHistory)===null||r===void 0?void 0:r.call(ut),O=(n=ut.useNavigate)===null||n===void 0?void 0:n.call(ut),x=ho(),A=H.useRef(typeof e=="function"?e():e||{}),S=H.useMemo(()=>Et.parse(E.search,y),[E.search]),N=H.useMemo(()=>Object.assign(Object.assign({},A.current),S),[S]);return[N,Ye(c=>{const i=typeof c=="function"?c(N):c;x(),d&&d[s]({hash:E.hash,search:Et.stringify(Object.assign(Object.assign({},S),i),w)||"?"},E.state),O&&O({hash:E.hash,search:Et.stringify(Object.assign(Object.assign({},S),i),w)||"?"},{replace:s==="replace",state:E.state})})]},wi=xi;var Or={},Ei=vr;Object.defineProperty(Or,"__esModule",{value:!0});var Yn=Or.default=void 0,ji=Ei(yr()),Si=o;Yn=Or.default=(0,ji.default)((0,Si.jsx)("path",{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z"}),"Verified");let Ai=class extends Error{constructor(t){super(),this.name="AbortError",this.message=t}};const Qr=e=>globalThis.DOMException===void 0?new Ai(e):new DOMException(e),en=e=>{const t=e.reason===void 0?Qr("This operation was aborted."):e.reason;return t instanceof Error?t:Qr(t)};async function Pi(e,t,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:n=!0,signal:s}={}){return new Promise((u,p)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof t!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(r)||r===Number.POSITIVE_INFINITY)&&r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);const y=[],w=[],E=new Map;let d=!1,O=!1,x=!1,A=0,S=0;const N=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),P=i=>{d=!0,O=!0,p(i)};s&&(s.aborted&&P(en(s)),s.addEventListener("abort",()=>{P(en(s))}));const c=async()=>{if(O)return;const i=await N.next(),a=S;if(S++,i.done){if(x=!0,A===0&&!O){if(!n&&w.length>0){P(new AggregateError(w));return}if(O=!0,E.size===0){u(y);return}const f=[];for(const[b,I]of y.entries())E.get(b)!==tn&&f.push(I);u(f)}return}A++,(async()=>{try{const f=await i.value;if(O)return;const b=await t(f,a);b===tn&&E.set(a,b),y[a]=b,A--,await c()}catch(f){if(n)P(f);else{w.push(f),A--;try{await c()}catch(b){P(b)}}}})()};(async()=>{for(let i=0;i<r;i++){try{await c()}catch(a){P(a);break}if(x||d)break}})()})}const tn=Symbol("skip");async function Oi(e,t){return Pi(e,r=>r(),t)}function Ii({user:e,sessionUser:t}){const r=dt(()=>{var n;return(n=(e==null?void 0:e.passports)||[])==null?void 0:n.find(s=>s.name===t.role)},[e==null?void 0:e.passports,t==null?void 0:t.role]);return o.jsxs(J,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(br,{size:40,variant:"circle",shape:"circle",src:t.avatar,did:t.did,sx:{flexShrink:0}}),o.jsxs(J,{sx:{flex:1,overflow:"hidden"},children:[o.jsxs(J,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(Ke,{title:t.fullName,children:o.jsx(xe,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:t.fullName})}),o.jsx(yo,{label:(r==null?void 0:r.title)||(r==null?void 0:r.name)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:Hr.textBase,borderColor:Hr.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:.5,pl:0,height:"auto"}})]}),o.jsx(Ke,{title:t.email,children:o.jsx(xe,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.email})})]})]})}const Ri={zh:{confirm:"确认",cancel:"取消",visitorId:"设备标识",deviceType:"设备类型",platform:"操作系统",walletOS:"钱包类型",role:"角色",fullname:"姓名",email:"邮箱",avatar:"头像",user:"用户",createdAt:"首次活动时间",updatedAt:"最近活动时间",lastLoginIp:"最近活动地址",actions:"操作",logoutAll:"注销所有会话",logoutAllTips:"不会注销当前会话",logout:"注销",currentSession:"当前会话",unknown:"未知",expired:"已过期",remove:"删除",logoutThisSession:"注销指定会话",logoutThisSessionConfirm:"确定要注销此会话吗?",logoutAllSession:"注销所有会话",logoutAllSessionConfirm:"确定要注销所有会话吗?"},en:{confirm:"Confirm",cancel:"Cancel",visitorId:"Device ID",deviceType:"Device Type",platform:"Platform",walletOS:"Wallet OS",role:"Role",fullname:"Fullname",email:"Email",avatar:"Avatar",user:"User",createdAt:"First Active Time",updatedAt:"Last Active Time",actions:"Actions",lastLoginIp:"Last Login IP",logoutAll:"Logout all",logoutAllTips:"Will not logout current session",logout:"Logout",currentSession:"Current Session",unknown:"Unknown",expired:"Expired",remove:"Remove",logoutThisSession:"Logout this session",logoutThisSessionConfirm:"Are you sure to logout this session?",logoutAllSession:"Logout all sessions",logoutAllSessionConfirm:"Are you sure to logout all sessions?"}},Zn="Reserved IP",rn="ip-region-cache";async function Ti(e){const t=`https://ipapi.co/${e}/json/`,n=await(await fetch(t)).json();let s="";return n.error?n.reserved&&(s=Zn):s=[n.country_name,n.region,n.city].filter(Boolean).join("/"),s}async function Ci(e){const t=`https://api.ip.sb/geoip/${e}`,n=await(await fetch(t)).json();let s="";return n.error?n.reserved&&(s=Zn):s=[n.country,n.region,n.city].filter(Boolean).join("/"),s}async function Di(e){let t="",r={};try{const n=localStorage.getItem(rn);n&&(r=JSON.parse(n))}catch{r={}}if(r[e])t=r[e];else{try{t=await Ci(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!t)try{t=await Ti(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(t){const n=Object.keys(r);n.length>100&&delete r[n[0]],r[e]&&delete r[e],r[e]=t,localStorage.setItem(rn,JSON.stringify(r))}return t}async function _i(e){return Promise.all(e.map(t=>Di(t)))}const nn=e=>new Ft(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[Ft.BROWSER.NAME,Ft.BROWSER.VERSION]]}).getResult();function Ni({user:e,showAction:t=!0,showUser:r=!0}){const n=vo(),{locale:s}=ke(),{confirmApi:u,confirmHolder:p}=xr(),y=Ye((i,a={})=>bo(Ri,i,s,"en",a)),w=Ye(async()=>{let i=e==null?void 0:e.userSessions;i||(i=await qt.userSession.getUserSessions({did:e.did}));try{const f=i==null?void 0:i.map((j,L)=>[L,j.lastLoginIp]).filter(j=>!!j[1]),b=f==null?void 0:f.map(j=>j[1]),I=await _i(b);for(let j=0;j<I.length;j++){const L=I[j],z=f[j],X=i[z[0]];X.ipRegion=L}}catch(f){console.warn("Failed to convert ip to region"),console.error(f)}const a=new Date().getTime();return xo(i,f=>f.visitorId===n?-1:a-new Date(f.updatedAt).getTime())}),E=wo(w),d=dt(()=>E.data||[],[E.data]),O=dt(()=>d.reduce((i,a)=>(i[a.lastLoginIp]=a.ipRegion,i),{}),[d]),x=Ye(({visitorId:i})=>{u.open({title:y("logoutThisSession"),content:y("logoutThisSessionConfirm"),confirmButtonText:y("confirm"),cancelButtonText:y("cancel"),onConfirm:async()=>{await qt.user.logout({visitorId:i}),E.refresh(),u.close()}})}),A=dt(()=>d.filter(a=>a.visitorId!==n),[d]),S=Ye(()=>{u.open({title:y("logoutAllSession"),content:y("logoutAllSessionConfirm"),confirmButtonText:y("confirm"),cancelButtonText:y("cancel"),onConfirm:async()=>{const i=A.map(a=>()=>qt.user.logout({visitorId:a.visitorId}));await Oi(i,{concurrency:3,stopOnError:!1}),E.refresh(),u.close()}})}),N=[];t&&N.push(o.jsx(Ke,{title:y("logoutAllTips"),children:o.jsx(ir,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:S,disabled:A.length===0,children:y("logoutAll")})},"logoutAll"));const P=dt(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600}),[]),c=[{label:y("platform"),name:"platform",options:{customBodyRenderLite:i=>{var b,I;const a=d[i],f=nn(a.ua);return o.jsx(J,{children:[(b=f.os)==null?void 0:b.name,(I=f.os)==null?void 0:I.version].filter(Boolean).join("/")||y("unknown")})}}},{label:y("deviceType"),name:"deviceType",options:{customBodyRenderLite:i=>{var b,I;const a=d[i],f=nn(a.ua);return o.jsx(J,{children:[(b=f.browser)==null?void 0:b.name,(I=f.browser)==null?void 0:I.version].filter(Boolean).join("/")||y("unknown")})}}},{label:y("walletOS"),name:"walletOS",options:{customBodyRenderLite:i=>{var f;const a=d[i];return o.jsx(J,{children:((f=a.extra)==null?void 0:f.walletOS)||y("unknown")})}}},r&&{label:y("user"),name:"user",options:{customBodyRenderLite:i=>{const a=d[i];return o.jsx(J,{sx:{minWidth:150,maxWidth:250},children:o.jsx(Ii,{sessionUser:a.user,user:e})})}}},{label:y("createdAt"),name:"createdAt",options:{customBodyRenderLite:i=>{const a=d[i];return a.createdAt?o.jsx(jt,{value:a.createdAt,relativeRange:3*86400*1e3,locale:s}):y("unknown")}}},{label:y("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:i=>{const a=d[i];return a.status==="expired"?y("expired"):o.jsx(jt,{value:a.updatedAt,relativeRange:3*86400*1e3,locale:s})}}},{label:y("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:i=>{const a=d[i];return o.jsx(J,{children:O[a.lastLoginIp]?o.jsxs(o.Fragment,{children:[o.jsx(xe,{variant:"body2",children:O[a.lastLoginIp]}),o.jsx(xe,{variant:"body2",color:"grey",children:a.lastLoginIp||y("unknown")})]}):o.jsx(xe,{children:a.lastLoginIp||y("unknown")})})}}},t&&{label:y("actions"),name:"actions",options:{customBodyRenderLite:i=>{const a=d[i];return o.jsx(J,{children:o.jsx(ir,{sx:{whiteSpace:"nowrap",fontSize:"12px",px:1},disabled:n===a.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>x({visitorId:a.visitorId}),children:a.status==="expired"?y("remove"):n===a.visitorId?y("currentSession"):y("logout")})})}}}].filter(Boolean);return o.jsxs(J,{sx:{".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"}},children:[p,o.jsx(Sr,{locale:s,data:d,columns:c,customButtons:N,options:P,loading:E.loading})]})}var he={};Object.defineProperty(he,"__esModule",{value:!0});he.isValid=he.fromJSON=he.fromRandom=he.fromAddress=he.fromPublicKey=he.fromSecretKey=he.Wallet=he.WalletType=void 0;const yt=_n,Ot=Ct,Ie=Mn;he.WalletType=Ie.DidType;function at(e,t="default"){const r=(0,Ie.DidType)(t),n=(0,Ot.getSigner)(r.pk),s=(0,Ot.getHasher)(r.hash);return{type:r,secretKey:e.sk,publicKey:e.pk,address:e.pk?(0,Ie.fromPublicKey)(e.pk,r):e.address,hash(u,p=1,y="hex"){return s(u,p,y)},sign(u,p=!0,y="hex"){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(p){const w=s(u,1);return n.sign(w,e.sk,y)}return n.sign(u,e.sk,y)},verify(u,p,y=!0){if(!e.pk)throw new Error("Cannot verify data without a publicKey");const w=y?s(u,1):u;return n.verify(w,p,e.pk)},ethHash(u){if(typeof n.ethHash!="function")throw new Error("ethHash is not supported by signer");return n.ethHash(u)},ethSign(u,p=!0){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(typeof n.ethHash!="function")throw new Error("ethSign is not supported by signer");return p?n.ethSign(n.ethHash(u),(0,yt.toHex)(e.sk)):n.ethSign(u,(0,yt.toHex)(e.sk))},ethVerify(u,p,y=!0){if(typeof n.ethHash!="function")throw new Error("ethVerify is not supported by signer");const w=y?n.ethHash(u):u;return n.ethRecover(w,p)===this.address},toAddress(){return e.pk?(0,Ie.fromPublicKey)(e.pk,r):e.address},toJSON(){return{type:Ie.DidType.toJSON(r),sk:(0,yt.toHex)(e.sk),pk:(0,yt.toHex)(e.pk),address:this.address}}}}he.Wallet=at;function Li(e,t="default"){const r=(0,Ie.DidType)(t),n={sk:e,pk:(0,Ot.getSigner)(r.pk).getPublicKey(e)};return at(n,r)}he.fromSecretKey=Li;function Bi(e,t="default"){return at({pk:e},(0,Ie.DidType)(t))}he.fromPublicKey=Bi;function ki(e){return at({address:(0,Ie.toAddress)(e)},(0,Ie.toTypeInfo)(e))}he.fromAddress=ki;function Ui(e="default"){const t=(0,Ie.DidType)(e),n=(0,Ot.getSigner)(t.pk).genKeyPair();return at({sk:n.secretKey,pk:n.publicKey},t)}he.fromRandom=Ui;function qi(e){const t=Ie.DidType.fromJSON(e.type);return at(e,t)}he.fromJSON=qi;function Fi(e,t=!0){return!(!e||typeof e!="object"||typeof e.verify!="function"||typeof e.toAddress!="function"||typeof e.toJSON!="function"||!e.type||!e.publicKey||t&&(!e.secretKey||typeof e.sign!="function"))}he.isValid=Fi;var Kt={exports:{}},Mt={},on;function Jn(){if(on)return Mt;on=1;function e(i){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e(i)}function t(i,a,f){return Object.defineProperty(i,"prototype",{writable:!1}),i}function r(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function n(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),a&&s(i,a)}function s(i,a){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,I){return b.__proto__=I,b},s(i,a)}function u(i){var a=w();return function(){var b=E(i),I;if(a){var j=E(this).constructor;I=Reflect.construct(b,arguments,j)}else I=b.apply(this,arguments);return p(this,I)}}function p(i,a){if(a&&(e(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y(i)}function y(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function E(i){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)},E(i)}var d={},O,x;function A(i,a,f){f||(f=Error);function b(j,L,z){return typeof a=="string"?a:a(j,L,z)}var I=function(j){n(z,j);var L=u(z);function z(X,Q,G){var ee;return r(this,z),ee=L.call(this,b(X,Q,G)),ee.code=i,ee}return t(z)}(f);d[i]=I}function S(i,a){if(Array.isArray(i)){var f=i.length;return i=i.map(function(b){return String(b)}),f>2?"one of ".concat(a," ").concat(i.slice(0,f-1).join(", "),", or ")+i[f-1]:f===2?"one of ".concat(a," ").concat(i[0]," or ").concat(i[1]):"of ".concat(a," ").concat(i[0])}else return"of ".concat(a," ").concat(String(i))}function N(i,a,f){return i.substr(0,a.length)===a}function P(i,a,f){return(f===void 0||f>i.length)&&(f=i.length),i.substring(f-a.length,f)===a}function c(i,a,f){return typeof f!="number"&&(f=0),f+a.length>i.length?!1:i.indexOf(a,f)!==-1}return A("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),A("ERR_INVALID_ARG_TYPE",function(i,a,f){O===void 0&&(O=mr()),O(typeof i=="string","'name' must be a string");var b;typeof a=="string"&&N(a,"not ")?(b="must not be",a=a.replace(/^not /,"")):b="must be";var I;if(P(i," argument"))I="The ".concat(i," ").concat(b," ").concat(S(a,"type"));else{var j=c(i,".")?"property":"argument";I='The "'.concat(i,'" ').concat(j," ").concat(b," ").concat(S(a,"type"))}return I+=". Received type ".concat(e(f)),I},TypeError),A("ERR_INVALID_ARG_VALUE",function(i,a){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";x===void 0&&(x=mt);var b=x.inspect(a);return b.length>128&&(b="".concat(b.slice(0,128),"...")),"The argument '".concat(i,"' ").concat(f,". Received ").concat(b)},TypeError),A("ERR_INVALID_RETURN_VALUE",function(i,a,f){var b;return f&&f.constructor&&f.constructor.name?b="instance of ".concat(f.constructor.name):b="type ".concat(e(f)),"Expected ".concat(i,' to be returned from the "').concat(a,'"')+" function but got ".concat(b,".")},TypeError),A("ERR_MISSING_ARGS",function(){for(var i=arguments.length,a=new Array(i),f=0;f<i;f++)a[f]=arguments[f];O===void 0&&(O=mr()),O(a.length>0,"At least one arg needs to be specified");var b="The ",I=a.length;switch(a=a.map(function(j){return'"'.concat(j,'"')}),I){case 1:b+="".concat(a[0]," argument");break;case 2:b+="".concat(a[0]," and ").concat(a[1]," arguments");break;default:b+=a.slice(0,I-1).join(", "),b+=", and ".concat(a[I-1]," arguments");break}return"".concat(b," must be specified")},TypeError),Mt.codes=d,Mt}var $t,an;function Ki(){if(an)return $t;an=1;function e(R,T){var F=Object.keys(R);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(R);T&&(D=D.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),F.push.apply(F,D)}return F}function t(R){for(var T=1;T<arguments.length;T++){var F=arguments[T]!=null?arguments[T]:{};T%2?e(Object(F),!0).forEach(function(D){r(R,D,F[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(F)):e(Object(F)).forEach(function(D){Object.defineProperty(R,D,Object.getOwnPropertyDescriptor(F,D))})}return R}function r(R,T,F){return T=p(T),T in R?Object.defineProperty(R,T,{value:F,enumerable:!0,configurable:!0,writable:!0}):R[T]=F,R}function n(R,T){if(!(R instanceof T))throw new TypeError("Cannot call a class as a function")}function s(R,T){for(var F=0;F<T.length;F++){var D=T[F];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(R,p(D.key),D)}}function u(R,T,F){return T&&s(R.prototype,T),Object.defineProperty(R,"prototype",{writable:!1}),R}function p(R){var T=y(R,"string");return i(T)==="symbol"?T:String(T)}function y(R,T){if(i(R)!=="object"||R===null)return R;var F=R[Symbol.toPrimitive];if(F!==void 0){var D=F.call(R,T||"default");if(i(D)!=="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(R)}function w(R,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(T&&T.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),T&&P(R,T)}function E(R){var T=S();return function(){var D=c(R),W;if(T){var g=c(this).constructor;W=Reflect.construct(D,arguments,g)}else W=D.apply(this,arguments);return d(this,W)}}function d(R,T){if(T&&(i(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O(R)}function O(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function x(R){var T=typeof Map=="function"?new Map:void 0;return x=function(D){if(D===null||!N(D))return D;if(typeof D!="function")throw new TypeError("Super expression must either be null or a function");if(typeof T<"u"){if(T.has(D))return T.get(D);T.set(D,W)}function W(){return A(D,arguments,c(this).constructor)}return W.prototype=Object.create(D.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),P(W,D)},x(R)}function A(R,T,F){return S()?A=Reflect.construct.bind():A=function(W,g,m){var v=[null];v.push.apply(v,g);var B=Function.bind.apply(W,v),_=new B;return m&&P(_,m.prototype),_},A.apply(null,arguments)}function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function N(R){return Function.toString.call(R).indexOf("[native code]")!==-1}function P(R,T){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,W){return D.__proto__=W,D},P(R,T)}function c(R){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},c(R)}function i(R){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},i(R)}var a=mt,f=a.inspect,b=Jn(),I=b.codes.ERR_INVALID_ARG_TYPE;function j(R,T,F){return(F===void 0||F>R.length)&&(F=R.length),R.substring(F-T.length,F)===T}function L(R,T){if(T=Math.floor(T),R.length==0||T==0)return"";var F=R.length*T;for(T=Math.floor(Math.log(T)/Math.log(2));T;)R+=R,T--;return R+=R.substring(0,F-R.length),R}var z="",X="",Q="",G="",ee={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},we=10;function Y(R){var T=Object.keys(R),F=Object.create(Object.getPrototypeOf(R));return T.forEach(function(D){F[D]=R[D]}),Object.defineProperty(F,"message",{value:R.message}),F}function de(R){return f(R,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Ee(R,T,F){var D="",W="",g=0,m="",v=!1,B=de(R),_=B.split(`
|
|
2
2
|
`),U=de(T).split(`
|
|
3
3
|
`),K=0,oe="";if(F==="strictEqual"&&i(R)==="object"&&i(T)==="object"&&R!==null&&T!==null&&(F="strictEqualObject"),_.length===1&&U.length===1&&_[0]!==U[0]){var ue=_[0].length+U[0].length;if(ue<=we){if((i(R)!=="object"||R===null)&&(i(T)!=="object"||T===null)&&(R!==0||T!==0))return"".concat(ee[F],`
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as y}from"./index-
|
|
1
|
+
import{g as y}from"./index-BdODRvyL.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var n=this._errors[r],o=n.message,a=(e[o]||0)+1;e[o]=a,a>=t&&(i=n,t=a)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in t)r[n]=t[n];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],a=0;a<r.retries;a++)o.push(this.createTimeout(a,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(a,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var n=r.randomize?Math.random()+1:1,o=Math.round(n*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,n){if(r instanceof Array&&(n=r,r=null),!n){n=[];for(var o in t)typeof t[o]=="function"&&n.push(o)}for(var a=0;a<n.length;a++){var s=n[a],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as O,_ as F,P as o,s as Q,j as e,I as Y,r as p,u as q,c as X,a as P,b as R,L as J,d as K,e as Z,f as ee,h as ne,W as T,i as te,T as j,k as ae,l as b,m as g,G as v,n as V,p as se,C as re,o as L}from"./index-
|
|
1
|
+
import{g as O,_ as F,P as o,s as Q,j as e,I as Y,r as p,u as q,c as X,a as P,b as R,L as J,d as K,e as Z,f as ee,h as ne,W as T,i as te,T as j,k as ae,l as b,m as g,G as v,n as V,p as se,C as re,o as L}from"./index-BdODRvyL.js";import{f as oe}from"./index-BojVbZw0.js";import{I as E}from"./index-DQOcXiyw.js";import{C as I}from"./click-to-copy-BVC4LJBm.js";import{w as ie}from"./withStyles-DeG1LPw1.js";var le=F,ce=le(function(n,i,r){return n+(r?" ":"")+i.toLowerCase()}),me=ce;const de=O(me);function w({icon:n,value:i,name:r,url:x,animated:c,LinkComponent:l,prefix:d}){const s=e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"metric__image",children:e.jsx(Y,{name:n,alt:typeof r=="string"?r:"",size:30,prefix:d,color:"#222222"})}),e.jsxs("div",{children:[e.jsx("div",{className:`metric__number ${c?"metric__number--animated":""}`,dangerouslySetInnerHTML:{__html:i}}),e.jsx("div",{className:"metric__name",children:r})]})]});return e.jsx(ue,{children:x?e.jsx(l,{to:x,children:s}):s})}w.propTypes={icon:o.string.isRequired,value:o.oneOfType([o.string,o.number]).isRequired,name:o.node.isRequired,animated:o.bool,url:o.string,LinkComponent:o.any,prefix:o.string};w.defaultProps={animated:!1,url:"",LinkComponent:null,prefix:"/images"};const ue=Q("div")`
|
|
2
2
|
border-left: 1px solid ${n=>n.theme.typography.color.main};
|
|
3
3
|
padding: 10px 0 10px 16px;
|
|
4
4
|
@media (max-width: ${n=>n.theme.breakpoints.values.sm}px) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{eV as b}from"./index-
|
|
1
|
+
import{eV as b}from"./index-BdODRvyL.js";function c(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function A(o,e){for(var r="",i=0,l=-1,t=0,n,f=0;f<=o.length;++f){if(f<o.length)n=o.charCodeAt(f);else{if(n===47)break;n=47}if(n===47){if(!(l===f-1||t===1))if(l!==f-1&&t===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var s=r.lastIndexOf("/");if(s!==r.length-1){s===-1?(r="",i=0):(r=r.slice(0,s),i=r.length-1-r.lastIndexOf("/")),l=f,t=0;continue}}else if(r.length===2||r.length===1){r="",i=0,l=f,t=0;continue}}e&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+o.slice(l+1,f):r=o.slice(l+1,f),i=f-l-1;l=f,t=0}else n===46&&t!==-1?++t:t=-1}return r}function h(o,e){var r=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+i:r+o+i:i}var g={resolve:function(){for(var e="",r=!1,i,l=arguments.length-1;l>=-1&&!r;l--){var t;l>=0?t=arguments[l]:(i===void 0&&(i=b.cwd()),t=i),c(t),t.length!==0&&(e=t+"/"+e,r=t.charCodeAt(0)===47)}return e=A(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(c(e),e.length===0)return".";var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return e=A(e,!r),e.length===0&&!r&&(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return c(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var i=arguments[r];c(i),i.length>0&&(e===void 0?e=i:e+="/"+i)}return e===void 0?".":g.normalize(e)},relative:function(e,r){if(c(e),c(r),e===r||(e=g.resolve(e),r=g.resolve(r),e===r))return"";for(var i=1;i<e.length&&e.charCodeAt(i)===47;++i);for(var l=e.length,t=l-i,n=1;n<r.length&&r.charCodeAt(n)===47;++n);for(var f=r.length,s=f-n,v=t<s?t:s,u=-1,a=0;a<=v;++a){if(a===v){if(s>v){if(r.charCodeAt(n+a)===47)return r.slice(n+a+1);if(a===0)return r.slice(n+a)}else t>v&&(e.charCodeAt(i+a)===47?u=a:a===0&&(u=0));break}var m=e.charCodeAt(i+a),C=r.charCodeAt(n+a);if(m!==C)break;m===47&&(u=a)}var d="";for(a=i+u+1;a<=l;++a)(a===l||e.charCodeAt(a)===47)&&(d.length===0?d+="..":d+="/..");return d.length>0?d+r.slice(n+u):(n+=u,r.charCodeAt(n)===47&&++n,r.slice(n))},_makeLong:function(e){return e},dirname:function(e){if(c(e),e.length===0)return".";for(var r=e.charCodeAt(0),i=r===47,l=-1,t=!0,n=e.length-1;n>=1;--n)if(r=e.charCodeAt(n),r===47){if(!t){l=n;break}}else t=!1;return l===-1?i?"/":".":i&&l===1?"//":e.slice(0,l)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');c(e);var i=0,l=-1,t=!0,n;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var f=r.length-1,s=-1;for(n=e.length-1;n>=0;--n){var v=e.charCodeAt(n);if(v===47){if(!t){i=n+1;break}}else s===-1&&(t=!1,s=n+1),f>=0&&(v===r.charCodeAt(f)?--f===-1&&(l=n):(f=-1,l=s))}return i===l?l=s:l===-1&&(l=e.length),e.slice(i,l)}else{for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===47){if(!t){i=n+1;break}}else l===-1&&(t=!1,l=n+1);return l===-1?"":e.slice(i,l)}},extname:function(e){c(e);for(var r=-1,i=0,l=-1,t=!0,n=0,f=e.length-1;f>=0;--f){var s=e.charCodeAt(f);if(s===47){if(!t){i=f+1;break}continue}l===-1&&(t=!1,l=f+1),s===46?r===-1?r=f:n!==1&&(n=1):r!==-1&&(n=-1)}return r===-1||l===-1||n===0||n===1&&r===l-1&&r===i+1?"":e.slice(r,l)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return h("/",e)},parse:function(e){c(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var i=e.charCodeAt(0),l=i===47,t;l?(r.root="/",t=1):t=0;for(var n=-1,f=0,s=-1,v=!0,u=e.length-1,a=0;u>=t;--u){if(i=e.charCodeAt(u),i===47){if(!v){f=u+1;break}continue}s===-1&&(v=!1,s=u+1),i===46?n===-1?n=u:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||s===-1||a===0||a===1&&n===s-1&&n===f+1?s!==-1&&(f===0&&l?r.base=r.name=e.slice(1,s):r.base=r.name=e.slice(f,s)):(f===0&&l?(r.name=e.slice(1,n),r.base=e.slice(1,s)):(r.name=e.slice(f,n),r.base=e.slice(f,s)),r.ext=e.slice(n,s)),f>0?r.dir=e.slice(0,f-1):l&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};g.posix=g;var y=g;export{y as p};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as r,m as i,P as e,d5 as c,d6 as f,s as u}from"./index-
|
|
1
|
+
import{j as r,m as i,P as e,d5 as c,d6 as f,s as u}from"./index-BdODRvyL.js";function l({name:t,nameFormatter:o,layout:a,children:n,valueComponent:s,nameWidth:m,...p}){return r.jsxs(d,{layout:a,width:m,...p,children:[r.jsx(i,{color:"textSecondary",className:"info-row__name",children:o(t)}),n&&r.jsx(i,{color:"textPrimary",component:s,className:"info-row__value",children:n})]})}l.propTypes={name:e.any.isRequired,layout:e.oneOf(["horizontal","vertical"]),children:e.any,nameFormatter:e.func,valueComponent:e.string,nameWidth:e.number};l.defaultProps={children:null,nameWidth:90,nameFormatter:t=>{const o=t.split(" ").map(a=>c(f(a))).join(" ");return typeof t=="string"?o:t},valueComponent:"div",layout:"horizontal"};const d=u("div")`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: ${t=>t.layout==="vertical"?"column":"row"};
|
|
4
4
|
justify-content: flex-start;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as P,j as t,t as J,u as Z,aj as De,cs as ee,N as Q,n as U,B as tt,P as de,aw as st,A as $e,ct as nt,w as at,cu as rt,ab as ot,av as ye,bm as je,q as K,b as oe,E as ue,M as ke,ag as lt,R as G,X,C as A,O as ze,i as pe,W as it,y as ct,z as Ee,af as dt,cv as ut,ad as pt,c7 as Te,cw as Ae,a9 as ht,H as mt,aC as le,J as ft,ai as gt,ak as vt,al as xt,am as bt,cx as yt,an as jt,K as kt,ao as wt,ap as q,aq as Pt,ar as Ct}from"./index-C9QWROlO.js";import{L as Y,P as Me,A as _t,S as Lt,a as Bt}from"./index-D0VO7WgE.js";import{u as Ut,A as St,W as Ot,P as It,D as we,L as Pe,d as Ce,a as _e}from"./wait-container-BiujCyhV.js";import{C as Ve,d as Nt,A as Rt}from"./agreement-BW_X8O9K.js";import{a as Dt}from"./api-vPjN6Bfi.js";import{i as $t}from"./isEqual-Bh4I8aKs.js";import{_ as zt}from"./useLocalStorage-kQm6yPnj.js";import{t as Et}from"./schema-BijIBYj3.js";import{s as Tt}from"./logo-BKA11TRi.js";import"./url-join-BR2c59F6.js";import"./Skeleton-bksK9EQ0.js";import"./Close-uSQDOggL.js";import"./lottie-C_o2afe-.js";import"./index-CcGSwTMt.js";import"./index-DP0Qx805.js";import"./index-8nWfzKes.js";var he={};Object.defineProperty(he,"__esModule",{value:!0});var Fe=he.default=void 0;At(P);var w=t;function At(e){return e&&e.__esModule?e:{default:e}}function Le(e,s){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);s&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,a)}return n}function Be(e){for(var s=1;s<arguments.length;s++){var n=arguments[s]!=null?arguments[s]:{};s%2?Le(Object(n),!0).forEach(function(a){Mt(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function Mt(e,s,n){return(s=Vt(s))in e?Object.defineProperty(e,s,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[s]=n,e}function Vt(e){var s=Ft(e,"string");return typeof s=="symbol"?s:s+""}function Ft(e,s){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,s||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(e)}var me=function(s){return(0,w.jsxs)("svg",Be(Be({},s),{},{children:[(0,w.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 10.642L31.72 0 13.288 10.642v14.152L1 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L62.44 53.172V31.89l-12.288-7.095V10.642zM60.52 32.997l-12.288-7.094V11.75L31.72 2.217 15.208 11.75v14.153L2.92 32.997v19.067l16.512 9.533L31.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#paint0_linear_615_428)"}),(0,w.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 24.83L31.72 14.19 13.288 24.831v21.283L31.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L31.72 54.539l-16.512-9.533V25.939zm14.52-3.756l.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762l.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L29.725 46.33l-5.819-3.384zm4.04-12.717l1.442-.827L38.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133l-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#paint1_linear_615_428)"}),(0,w.jsxs)("defs",{children:[(0,w.jsxs)("linearGradient",{id:"paint0_linear_615_428",x1:"31.72",y1:"95.721",x2:"95.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,w.jsx)("stop",{stopColor:"#0FA4B7"}),(0,w.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,w.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,w.jsxs)("linearGradient",{id:"paint1_linear_615_428",x1:"28.437",y1:"99.246",x2:"98.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,w.jsx)("stop",{stopColor:"#0FA4B7"}),(0,w.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,w.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};me.defaultProps={width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"};me.displayName="launcher-logo-notext";Fe=he.default=me;var fe={};Object.defineProperty(fe,"__esModule",{value:!0});var We=fe.default=void 0;Wt(P);var x=t;function Wt(e){return e&&e.__esModule?e:{default:e}}function Ue(e,s){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);s&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,a)}return n}function Se(e){for(var s=1;s<arguments.length;s++){var n=arguments[s]!=null?arguments[s]:{};s%2?Ue(Object(n),!0).forEach(function(a){Ht(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function Ht(e,s,n){return(s=qt(s))in e?Object.defineProperty(e,s,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[s]=n,e}function qt(e){var s=Kt(e,"string");return typeof s=="symbol"?s:s+""}function Kt(e,s){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,s||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(e)}var ge=function(s){return(0,x.jsxs)("svg",Se(Se({},s),{},{children:[(0,x.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80.005 25.994V10h7.737a3.79 3.79 0 0 1 3.79 3.79v1.149a3.777 3.777 0 0 1-1.035 2.602 3.788 3.788 0 0 1 1.901 3.286v1.377a3.79 3.79 0 0 1-3.79 3.79h-8.603zm1.684-8.957h6.226a2.105 2.105 0 0 0 1.932-2.098v-1.15a2.105 2.105 0 0 0-2.105-2.105h-6.053v5.353zm0 7.273v-5.582l6.92-.007c1.163 0 2.105.943 2.105 2.106v1.377a2.105 2.105 0 0 1-2.105 2.106h-6.92zM97.255 10v15.994h-1.762V10h1.762zm8.733 4.319h-1.827a3.81 3.81 0 0 0-3.811 3.81v4.054a3.81 3.81 0 0 0 3.811 3.81h1.827a3.811 3.811 0 0 0 3.811-3.81V18.13a3.811 3.811 0 0 0-3.811-3.81zm-1.827 1.762a2.05 2.05 0 0 0-2.049 2.048v4.054a2.05 2.05 0 0 0 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049V18.13a2.048 2.048 0 0 0-2.048-2.048h-1.827zM125.204 26v-5.754h2.148L130.674 26h2.035l-3.821-6.618 2.993-5.184h-2.035l-2.474 4.286h-2.168V10h-1.762v16h1.762zm-5.556-7.56v-.31a2.048 2.048 0 0 0-2.048-2.05h-1.827a2.048 2.048 0 0 0-2.049 2.05v4.053c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.312h-1.762zm17.918 7.554V10h-1.762v15.994h1.762zm4.989-5.357v1.546c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.746h.001v1.762h-7.687zm5.924-1.762h-5.924v-.746c0-1.131.917-2.048 2.049-2.048h1.827c1.131 0 2.048.917 2.048 2.048v.746zm5.489-1.912H152.4v-1.762h1.568v-2.848h1.684v2.848h4.077v1.762h-4.077v5.677a1.669 1.669 0 1 0 3.339 0v-.35h1.684v.35a3.353 3.353 0 1 1-6.707 0v-5.677z",fill:"#121319"}),(0,x.jsx)("path",{d:"M92.112 50.259v3.108H80.254V33.123h3.766v17.136h8.092zM101.843 47.235c-.999.047-1.839.135-2.52.266-.681.121-1.227.28-1.638.476-.41.196-.705.425-.882.686a1.49 1.49 0 0 0-.266.854c0 .606.177 1.04.532 1.302.364.261.835.392 1.414.392.71 0 1.32-.126 1.834-.378.523-.261 1.031-.654 1.526-1.176v-2.422zm-7.924-6.23c1.652-1.512 3.64-2.268 5.964-2.268.84 0 1.591.14 2.254.42.663.27 1.223.653 1.68 1.148a4.765 4.765 0 0 1 1.036 1.75c.243.681.364 1.428.364 2.24v9.072h-1.568c-.327 0-.579-.047-.756-.14-.177-.103-.317-.303-.42-.602l-.308-1.036c-.364.327-.719.616-1.064.868a6.54 6.54 0 0 1-1.078.616 5.498 5.498 0 0 1-1.204.378c-.42.093-.887.14-1.4.14-.607 0-1.167-.08-1.68-.238a3.775 3.775 0 0 1-1.33-.742 3.297 3.297 0 0 1-.868-1.218c-.206-.486-.308-1.05-.308-1.694a3.308 3.308 0 0 1 .77-2.114 5.12 5.12 0 0 1 1.078-.924c.438-.29.975-.541 1.61-.756a13.74 13.74 0 0 1 2.24-.518c.85-.14 1.82-.224 2.912-.252v-.84c0-.962-.205-1.67-.616-2.128-.411-.467-1.003-.7-1.778-.7-.56 0-1.027.065-1.4.196-.364.13-.686.28-.966.448-.28.159-.537.303-.77.434-.224.13-.476.196-.756.196-.243 0-.448-.06-.616-.182a1.67 1.67 0 0 1-.406-.448l-.616-1.106zM120.85 39.003v14.364h-2.114c-.458 0-.747-.21-.868-.63l-.238-1.148a7.862 7.862 0 0 1-1.946 1.456c-.71.364-1.545.546-2.506.546-.784 0-1.48-.13-2.086-.392a4.236 4.236 0 0 1-1.512-1.134 5.016 5.016 0 0 1-.938-1.722 7.52 7.52 0 0 1-.308-2.212v-9.128h3.458v9.128c0 .877.2 1.559.602 2.044.41.476 1.022.714 1.834.714.597 0 1.157-.13 1.68-.392a6.037 6.037 0 0 0 1.484-1.106V39.003h3.458zM127.512 40.767c.29-.29.593-.556.91-.798a5.623 5.623 0 0 1 2.184-1.036 5.542 5.542 0 0 1 1.344-.154c.784 0 1.48.135 2.086.406a3.957 3.957 0 0 1 1.512 1.12 4.69 4.69 0 0 1 .924 1.722c.215.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.2-1.554-.602-2.03-.401-.486-1.012-.728-1.834-.728-.597 0-1.157.135-1.68.406-.522.27-1.017.64-1.484 1.106v10.388h-3.458V39.003h2.114c.448 0 .742.21.882.63l.238 1.134zM150.373 42.04c-.103.132-.205.234-.308.309-.093.075-.233.112-.42.112a.982.982 0 0 1-.518-.154 9.315 9.315 0 0 0-.602-.364 3.902 3.902 0 0 0-.84-.364c-.317-.112-.714-.168-1.19-.168-.607 0-1.139.112-1.596.336-.457.215-.84.527-1.148.938-.299.41-.523.91-.672 1.498-.149.578-.224 1.236-.224 1.974 0 .765.079 1.447.238 2.044.168.597.406 1.101.714 1.512.308.401.681.71 1.12.924.439.205.933.308 1.484.308.551 0 .994-.066 1.33-.196.345-.14.635-.29.868-.448.233-.168.434-.318.602-.448a.925.925 0 0 1 .588-.21c.28 0 .49.107.63.322l.994 1.26a6.449 6.449 0 0 1-1.246 1.134 7.144 7.144 0 0 1-1.4.728 7.208 7.208 0 0 1-1.484.378 10.3 10.3 0 0 1-1.512.112 6.448 6.448 0 0 1-2.506-.49 6 6 0 0 1-2.058-1.456c-.588-.635-1.055-1.41-1.4-2.324-.336-.924-.504-1.974-.504-3.15 0-1.055.149-2.03.448-2.926.308-.906.756-1.685 1.344-2.338a6.09 6.09 0 0 1 2.184-1.554c.868-.373 1.867-.56 2.996-.56 1.073 0 2.011.172 2.814.518.812.345 1.54.84 2.184 1.484l-.91 1.26zM157.049 40.543a7.51 7.51 0 0 1 1.848-1.274c.672-.327 1.46-.49 2.366-.49.784 0 1.479.135 2.086.406.606.261 1.11.634 1.512 1.12.41.476.718 1.05.924 1.722.214.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.201-1.554-.602-2.03-.402-.486-1.013-.728-1.834-.728-.598 0-1.158.135-1.68.406-.523.27-1.018.64-1.484 1.106v10.388h-3.458V32.563h3.458v7.98zM178.649 44.533a3.95 3.95 0 0 0-.196-1.26 2.908 2.908 0 0 0-.559-1.05 2.562 2.562 0 0 0-.967-.7c-.382-.178-.83-.266-1.343-.266-.999 0-1.788.285-2.367.854-.569.57-.933 1.377-1.091 2.422h6.523zm-6.593 2.086c.056.737.186 1.377.392 1.918.205.532.475.975.811 1.33.336.345.733.607 1.191.784.466.168.98.252 1.54.252s1.04-.066 1.442-.196c.41-.13.765-.276 1.063-.434.308-.159.575-.304.799-.434.233-.13.457-.196.671-.196.29 0 .504.107.644.322l.995 1.26a5.93 5.93 0 0 1-1.289 1.134 7.641 7.641 0 0 1-1.498.728 8.291 8.291 0 0 1-1.581.378c-.532.074-1.05.112-1.554.112a7.766 7.766 0 0 1-2.786-.49 6.352 6.352 0 0 1-2.24-1.47c-.635-.653-1.134-1.456-1.498-2.408-.364-.962-.546-2.072-.546-3.332 0-.98.158-1.9.476-2.758.317-.868.77-1.62 1.358-2.254a6.462 6.462 0 0 1 2.17-1.526c.858-.373 1.824-.56 2.898-.56.905 0 1.74.144 2.506.434a5.41 5.41 0 0 1 1.973 1.274c.551.55.981 1.232 1.289 2.044.317.803.475 1.722.475 2.758 0 .523-.055.877-.167 1.064-.112.177-.327.266-.644.266h-8.89zM187.615 41.495c.448-.859.98-1.53 1.596-2.016.616-.495 1.344-.742 2.184-.742.662 0 1.194.145 1.596.434l-.224 2.59c-.047.168-.117.29-.21.364a.558.558 0 0 1-.35.098c-.14 0-.35-.023-.63-.07a4.704 4.704 0 0 0-.798-.07c-.383 0-.724.056-1.022.168-.299.112-.57.275-.812.49a3.359 3.359 0 0 0-.63.756c-.178.298-.346.64-.504 1.022v8.848h-3.458V39.003h2.03c.354 0 .602.065.742.196.14.121.233.345.28.672l.21 1.624z",fill:"#121319"}),(0,x.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 10.642L30.72 0 12.288 10.642v14.152L0 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L61.44 53.172V31.89l-12.288-7.095V10.642zM59.52 32.997l-12.288-7.094V11.75L30.72 2.217 14.208 11.75v14.153L1.92 32.997v19.067l16.512 9.533L30.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#paint0_linear_615_416)"}),(0,x.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 24.83L30.72 14.19 12.288 24.831v21.283L30.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L30.72 54.539l-16.512-9.533V25.939zm14.52-3.756l.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762l.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L28.725 46.33l-5.819-3.384zm4.04-12.717l1.442-.827L37.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133l-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#paint1_linear_615_416)"}),(0,x.jsxs)("defs",{children:[(0,x.jsxs)("linearGradient",{id:"paint0_linear_615_416",x1:"30.72",y1:"95.721",x2:"94.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,x.jsx)("stop",{stopColor:"#0FA4B7"}),(0,x.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,x.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,x.jsxs)("linearGradient",{id:"paint1_linear_615_416",x1:"27.437",y1:"99.246",x2:"97.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,x.jsx)("stop",{stopColor:"#0FA4B7"}),(0,x.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,x.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};ge.defaultProps={width:"193",height:"64",viewBox:"0 0 193 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"};ge.displayName="launcher-logo";We=fe.default=ge;function Gt(){const{t:e}=J(),{info:s}=Z(),n=De(),a=decodeURIComponent(n.get("accessUrl")||""),{meta:c}=ee();return t.jsx(Xt,{children:t.jsx("div",{className:"body",children:t.jsx(Y,{variant:"success",title:Q.getDisplayName({meta:c},!0),subTitle:e("launchBlocklet.installSuccess",{serverName:s.name}),footer:t.jsx(Qt,{href:a,rel:"noreferrer","data-cy":"open-blocklet",children:e("common.open")})})})})}const Qt=U.a`
|
|
1
|
+
import{r as P,j as t,t as J,u as Z,aj as De,cs as ee,N as Q,n as U,B as tt,P as de,aw as st,A as $e,ct as nt,w as at,cu as rt,ab as ot,av as ye,bm as je,q as K,b as oe,E as ue,M as ke,ag as lt,R as G,X,C as A,O as ze,i as pe,W as it,y as ct,z as Ee,af as dt,cv as ut,ad as pt,c7 as Te,cw as Ae,a9 as ht,H as mt,aC as le,J as ft,ai as gt,ak as vt,al as xt,am as bt,cx as yt,an as jt,K as kt,ao as wt,ap as q,aq as Pt,ar as Ct}from"./index-BdODRvyL.js";import{L as Y,P as Me,A as _t,S as Lt,a as Bt}from"./index-D-HUAuYc.js";import{u as Ut,A as St,W as Ot,P as It,D as we,L as Pe,d as Ce,a as _e}from"./wait-container-BXER-iJR.js";import{C as Ve,d as Nt,A as Rt}from"./agreement-WG4qIDoW.js";import{a as Dt}from"./api-B-aFuxhe.js";import{i as $t}from"./isEqual-CNnvQgen.js";import{_ as zt}from"./useLocalStorage-Djk9mE88.js";import{t as Et}from"./schema-Bj-RxzG3.js";import{s as Tt}from"./logo-BKA11TRi.js";import"./url-join-C4mC0iDe.js";import"./Skeleton-CzjJPNB7.js";import"./Close-DrkkcxlK.js";import"./lottie-BM_265d4.js";import"./index-TrxAhXnV.js";import"./index-B5kkYZq8.js";import"./index-DL0tSq_I.js";var he={};Object.defineProperty(he,"__esModule",{value:!0});var Fe=he.default=void 0;At(P);var w=t;function At(e){return e&&e.__esModule?e:{default:e}}function Le(e,s){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);s&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,a)}return n}function Be(e){for(var s=1;s<arguments.length;s++){var n=arguments[s]!=null?arguments[s]:{};s%2?Le(Object(n),!0).forEach(function(a){Mt(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function Mt(e,s,n){return(s=Vt(s))in e?Object.defineProperty(e,s,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[s]=n,e}function Vt(e){var s=Ft(e,"string");return typeof s=="symbol"?s:s+""}function Ft(e,s){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,s||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(e)}var me=function(s){return(0,w.jsxs)("svg",Be(Be({},s),{},{children:[(0,w.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 10.642L31.72 0 13.288 10.642v14.152L1 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L62.44 53.172V31.89l-12.288-7.095V10.642zM60.52 32.997l-12.288-7.094V11.75L31.72 2.217 15.208 11.75v14.153L2.92 32.997v19.067l16.512 9.533L31.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#paint0_linear_615_428)"}),(0,w.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 24.83L31.72 14.19 13.288 24.831v21.283L31.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L31.72 54.539l-16.512-9.533V25.939zm14.52-3.756l.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762l.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L29.725 46.33l-5.819-3.384zm4.04-12.717l1.442-.827L38.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133l-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#paint1_linear_615_428)"}),(0,w.jsxs)("defs",{children:[(0,w.jsxs)("linearGradient",{id:"paint0_linear_615_428",x1:"31.72",y1:"95.721",x2:"95.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,w.jsx)("stop",{stopColor:"#0FA4B7"}),(0,w.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,w.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,w.jsxs)("linearGradient",{id:"paint1_linear_615_428",x1:"28.437",y1:"99.246",x2:"98.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,w.jsx)("stop",{stopColor:"#0FA4B7"}),(0,w.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,w.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};me.defaultProps={width:"64",height:"64",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"};me.displayName="launcher-logo-notext";Fe=he.default=me;var fe={};Object.defineProperty(fe,"__esModule",{value:!0});var We=fe.default=void 0;Wt(P);var x=t;function Wt(e){return e&&e.__esModule?e:{default:e}}function Ue(e,s){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);s&&(a=a.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),n.push.apply(n,a)}return n}function Se(e){for(var s=1;s<arguments.length;s++){var n=arguments[s]!=null?arguments[s]:{};s%2?Ue(Object(n),!0).forEach(function(a){Ht(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function Ht(e,s,n){return(s=qt(s))in e?Object.defineProperty(e,s,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[s]=n,e}function qt(e){var s=Kt(e,"string");return typeof s=="symbol"?s:s+""}function Kt(e,s){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,s||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(e)}var ge=function(s){return(0,x.jsxs)("svg",Se(Se({},s),{},{children:[(0,x.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80.005 25.994V10h7.737a3.79 3.79 0 0 1 3.79 3.79v1.149a3.777 3.777 0 0 1-1.035 2.602 3.788 3.788 0 0 1 1.901 3.286v1.377a3.79 3.79 0 0 1-3.79 3.79h-8.603zm1.684-8.957h6.226a2.105 2.105 0 0 0 1.932-2.098v-1.15a2.105 2.105 0 0 0-2.105-2.105h-6.053v5.353zm0 7.273v-5.582l6.92-.007c1.163 0 2.105.943 2.105 2.106v1.377a2.105 2.105 0 0 1-2.105 2.106h-6.92zM97.255 10v15.994h-1.762V10h1.762zm8.733 4.319h-1.827a3.81 3.81 0 0 0-3.811 3.81v4.054a3.81 3.81 0 0 0 3.811 3.81h1.827a3.811 3.811 0 0 0 3.811-3.81V18.13a3.811 3.811 0 0 0-3.811-3.81zm-1.827 1.762a2.05 2.05 0 0 0-2.049 2.048v4.054a2.05 2.05 0 0 0 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049V18.13a2.048 2.048 0 0 0-2.048-2.048h-1.827zM125.204 26v-5.754h2.148L130.674 26h2.035l-3.821-6.618 2.993-5.184h-2.035l-2.474 4.286h-2.168V10h-1.762v16h1.762zm-5.556-7.56v-.31a2.048 2.048 0 0 0-2.048-2.05h-1.827a2.048 2.048 0 0 0-2.049 2.05v4.053c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.312h-1.762zm17.918 7.554V10h-1.762v15.994h1.762zm4.989-5.357v1.546c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.746h.001v1.762h-7.687zm5.924-1.762h-5.924v-.746c0-1.131.917-2.048 2.049-2.048h1.827c1.131 0 2.048.917 2.048 2.048v.746zm5.489-1.912H152.4v-1.762h1.568v-2.848h1.684v2.848h4.077v1.762h-4.077v5.677a1.669 1.669 0 1 0 3.339 0v-.35h1.684v.35a3.353 3.353 0 1 1-6.707 0v-5.677z",fill:"#121319"}),(0,x.jsx)("path",{d:"M92.112 50.259v3.108H80.254V33.123h3.766v17.136h8.092zM101.843 47.235c-.999.047-1.839.135-2.52.266-.681.121-1.227.28-1.638.476-.41.196-.705.425-.882.686a1.49 1.49 0 0 0-.266.854c0 .606.177 1.04.532 1.302.364.261.835.392 1.414.392.71 0 1.32-.126 1.834-.378.523-.261 1.031-.654 1.526-1.176v-2.422zm-7.924-6.23c1.652-1.512 3.64-2.268 5.964-2.268.84 0 1.591.14 2.254.42.663.27 1.223.653 1.68 1.148a4.765 4.765 0 0 1 1.036 1.75c.243.681.364 1.428.364 2.24v9.072h-1.568c-.327 0-.579-.047-.756-.14-.177-.103-.317-.303-.42-.602l-.308-1.036c-.364.327-.719.616-1.064.868a6.54 6.54 0 0 1-1.078.616 5.498 5.498 0 0 1-1.204.378c-.42.093-.887.14-1.4.14-.607 0-1.167-.08-1.68-.238a3.775 3.775 0 0 1-1.33-.742 3.297 3.297 0 0 1-.868-1.218c-.206-.486-.308-1.05-.308-1.694a3.308 3.308 0 0 1 .77-2.114 5.12 5.12 0 0 1 1.078-.924c.438-.29.975-.541 1.61-.756a13.74 13.74 0 0 1 2.24-.518c.85-.14 1.82-.224 2.912-.252v-.84c0-.962-.205-1.67-.616-2.128-.411-.467-1.003-.7-1.778-.7-.56 0-1.027.065-1.4.196-.364.13-.686.28-.966.448-.28.159-.537.303-.77.434-.224.13-.476.196-.756.196-.243 0-.448-.06-.616-.182a1.67 1.67 0 0 1-.406-.448l-.616-1.106zM120.85 39.003v14.364h-2.114c-.458 0-.747-.21-.868-.63l-.238-1.148a7.862 7.862 0 0 1-1.946 1.456c-.71.364-1.545.546-2.506.546-.784 0-1.48-.13-2.086-.392a4.236 4.236 0 0 1-1.512-1.134 5.016 5.016 0 0 1-.938-1.722 7.52 7.52 0 0 1-.308-2.212v-9.128h3.458v9.128c0 .877.2 1.559.602 2.044.41.476 1.022.714 1.834.714.597 0 1.157-.13 1.68-.392a6.037 6.037 0 0 0 1.484-1.106V39.003h3.458zM127.512 40.767c.29-.29.593-.556.91-.798a5.623 5.623 0 0 1 2.184-1.036 5.542 5.542 0 0 1 1.344-.154c.784 0 1.48.135 2.086.406a3.957 3.957 0 0 1 1.512 1.12 4.69 4.69 0 0 1 .924 1.722c.215.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.2-1.554-.602-2.03-.401-.486-1.012-.728-1.834-.728-.597 0-1.157.135-1.68.406-.522.27-1.017.64-1.484 1.106v10.388h-3.458V39.003h2.114c.448 0 .742.21.882.63l.238 1.134zM150.373 42.04c-.103.132-.205.234-.308.309-.093.075-.233.112-.42.112a.982.982 0 0 1-.518-.154 9.315 9.315 0 0 0-.602-.364 3.902 3.902 0 0 0-.84-.364c-.317-.112-.714-.168-1.19-.168-.607 0-1.139.112-1.596.336-.457.215-.84.527-1.148.938-.299.41-.523.91-.672 1.498-.149.578-.224 1.236-.224 1.974 0 .765.079 1.447.238 2.044.168.597.406 1.101.714 1.512.308.401.681.71 1.12.924.439.205.933.308 1.484.308.551 0 .994-.066 1.33-.196.345-.14.635-.29.868-.448.233-.168.434-.318.602-.448a.925.925 0 0 1 .588-.21c.28 0 .49.107.63.322l.994 1.26a6.449 6.449 0 0 1-1.246 1.134 7.144 7.144 0 0 1-1.4.728 7.208 7.208 0 0 1-1.484.378 10.3 10.3 0 0 1-1.512.112 6.448 6.448 0 0 1-2.506-.49 6 6 0 0 1-2.058-1.456c-.588-.635-1.055-1.41-1.4-2.324-.336-.924-.504-1.974-.504-3.15 0-1.055.149-2.03.448-2.926.308-.906.756-1.685 1.344-2.338a6.09 6.09 0 0 1 2.184-1.554c.868-.373 1.867-.56 2.996-.56 1.073 0 2.011.172 2.814.518.812.345 1.54.84 2.184 1.484l-.91 1.26zM157.049 40.543a7.51 7.51 0 0 1 1.848-1.274c.672-.327 1.46-.49 2.366-.49.784 0 1.479.135 2.086.406.606.261 1.11.634 1.512 1.12.41.476.718 1.05.924 1.722.214.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.201-1.554-.602-2.03-.402-.486-1.013-.728-1.834-.728-.598 0-1.158.135-1.68.406-.523.27-1.018.64-1.484 1.106v10.388h-3.458V32.563h3.458v7.98zM178.649 44.533a3.95 3.95 0 0 0-.196-1.26 2.908 2.908 0 0 0-.559-1.05 2.562 2.562 0 0 0-.967-.7c-.382-.178-.83-.266-1.343-.266-.999 0-1.788.285-2.367.854-.569.57-.933 1.377-1.091 2.422h6.523zm-6.593 2.086c.056.737.186 1.377.392 1.918.205.532.475.975.811 1.33.336.345.733.607 1.191.784.466.168.98.252 1.54.252s1.04-.066 1.442-.196c.41-.13.765-.276 1.063-.434.308-.159.575-.304.799-.434.233-.13.457-.196.671-.196.29 0 .504.107.644.322l.995 1.26a5.93 5.93 0 0 1-1.289 1.134 7.641 7.641 0 0 1-1.498.728 8.291 8.291 0 0 1-1.581.378c-.532.074-1.05.112-1.554.112a7.766 7.766 0 0 1-2.786-.49 6.352 6.352 0 0 1-2.24-1.47c-.635-.653-1.134-1.456-1.498-2.408-.364-.962-.546-2.072-.546-3.332 0-.98.158-1.9.476-2.758.317-.868.77-1.62 1.358-2.254a6.462 6.462 0 0 1 2.17-1.526c.858-.373 1.824-.56 2.898-.56.905 0 1.74.144 2.506.434a5.41 5.41 0 0 1 1.973 1.274c.551.55.981 1.232 1.289 2.044.317.803.475 1.722.475 2.758 0 .523-.055.877-.167 1.064-.112.177-.327.266-.644.266h-8.89zM187.615 41.495c.448-.859.98-1.53 1.596-2.016.616-.495 1.344-.742 2.184-.742.662 0 1.194.145 1.596.434l-.224 2.59c-.047.168-.117.29-.21.364a.558.558 0 0 1-.35.098c-.14 0-.35-.023-.63-.07a4.704 4.704 0 0 0-.798-.07c-.383 0-.724.056-1.022.168-.299.112-.57.275-.812.49a3.359 3.359 0 0 0-.63.756c-.178.298-.346.64-.504 1.022v8.848h-3.458V39.003h2.03c.354 0 .602.065.742.196.14.121.233.345.28.672l.21 1.624z",fill:"#121319"}),(0,x.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 10.642L30.72 0 12.288 10.642v14.152L0 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L61.44 53.172V31.89l-12.288-7.095V10.642zM59.52 32.997l-12.288-7.094V11.75L30.72 2.217 14.208 11.75v14.153L1.92 32.997v19.067l16.512 9.533L30.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#paint0_linear_615_416)"}),(0,x.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 24.83L30.72 14.19 12.288 24.831v21.283L30.72 56.756l18.432-10.642V24.831zm-34.944 1.11l16.512-9.534 16.512 9.533v19.067L30.72 54.539l-16.512-9.533V25.939zm14.52-3.756l.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762l.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L28.725 46.33l-5.819-3.384zm4.04-12.717l1.442-.827L37.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133l-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#paint1_linear_615_416)"}),(0,x.jsxs)("defs",{children:[(0,x.jsxs)("linearGradient",{id:"paint0_linear_615_416",x1:"30.72",y1:"95.721",x2:"94.488",y2:"34.325",gradientUnits:"userSpaceOnUse",children:[(0,x.jsx)("stop",{stopColor:"#0FA4B7"}),(0,x.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,x.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]}),(0,x.jsxs)("linearGradient",{id:"paint1_linear_615_416",x1:"27.437",y1:"99.246",x2:"97.761",y2:"44.937",gradientUnits:"userSpaceOnUse",children:[(0,x.jsx)("stop",{stopColor:"#0FA4B7"}),(0,x.jsx)("stop",{offset:".495",stopColor:"#1DC1C7"}),(0,x.jsx)("stop",{offset:"1",stopColor:"#2BE0D7"})]})]})]}))};ge.defaultProps={width:"193",height:"64",viewBox:"0 0 193 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"};ge.displayName="launcher-logo";We=fe.default=ge;function Gt(){const{t:e}=J(),{info:s}=Z(),n=De(),a=decodeURIComponent(n.get("accessUrl")||""),{meta:c}=ee();return t.jsx(Xt,{children:t.jsx("div",{className:"body",children:t.jsx(Y,{variant:"success",title:Q.getDisplayName({meta:c},!0),subTitle:e("launchBlocklet.installSuccess",{serverName:s.name}),footer:t.jsx(Qt,{href:a,rel:"noreferrer","data-cy":"open-blocklet",children:e("common.open")})})})})}const Qt=U.a`
|
|
2
2
|
display: block;
|
|
3
3
|
height: 36px;
|
|
4
4
|
color: ${e=>e.theme.palette.primary.main};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as R,j as o,C,aw as F,cz as T,A as b,t as W,ct as D,r,aU as _,k as d,q as x,ak as k,ad as z,y as E,av as O,z as $,bk as q,n as A}from"./index-
|
|
1
|
+
import{u as R,j as o,C,aw as F,cz as T,A as b,t as W,ct as D,r,aU as _,k as d,q as x,ak as k,ad as z,y as E,av as O,z as $,bk as q,n as A}from"./index-BdODRvyL.js";import{I as K}from"./invitation-CdX27Uxz.js";import"./index-C9LZUW4N.js";import"./index-DcM9WqBq.js";import"./sdk-muHS20Ah.js";import"./CheckCircle-BebjtNY9.js";import"./wrap-locale-C0m1LlXs.js";function M(v){const{api:i,session:f}=F(),{info:s}=R(),c=T(),p=b(),{t:l,locale:m}=W(),{encryptKey:P,decrypt:N}=D(),[S,w]=r.useState(!1),h=r.useMemo(()=>new URLSearchParams(c.search).get("inviteId"),[c]),a=_(async()=>{if(!h)return null;let e;const{data:n}=await i.get("/api/invitation",{params:{inviteId:h}}),t=!!d(s,"ownerNft.did")&&n.role.name==="owner";if(t){const u=new URL(window.location.href);u.pathname=x(k(),"/api/did/invite/token"),u.searchParams.set("_ek_",P),u.searchParams.set("inviteId",h);const{data:j}=await i.get(u.href);e=j}return{invitation:n,nextWorkflow:e,needReceiveNFT:t}}),L=r.useCallback(()=>{w(!0)},[]),y=r.useCallback(()=>{if(a.error)throw a.error;return a.value.invitation},[a]),g=r.useCallback(async e=>{e&&z(N(e.sessionToken));const n=new URLSearchParams(c.search);n.delete("inviteId");const t=n.toString();await f.refresh(),p(`/${t&&`?${t}`}`,{replace:!0})},[c,p,f]);if(a.loading)return o.jsx(C,{});const I=()=>{const e=new URL(window.location.href);e.pathname=x(k(),"/api/did/invite/status"),e.searchParams.set("_t_",a.value.nextWorkflow.token),e.searchParams.set("locale",m);const n=setInterval(async()=>{const{data:t}=await i.get(e.href);t.status==="succeed"&&(clearInterval(n),f.updateConnectedInfo(t),g(t))},2e3)},U=()=>{w(!1)};return o.jsxs(B,{className:"page-invite",children:[d(a,"value.needReceiveNFT")&&o.jsx(E,{action:"login",popup:!0,className:"connect",open:S,locale:m,baseUrl:s.launcher.url,checkFn:O.create({baseURL:s.launcher.url}).get,onSuccess:I,onClose:U,checkTimeout:5*60*1e3,webWalletUrl:$(s),extraParams:{nw:d(a,"value.nextWorkflow.url")},messages:{title:l("invite.transferNFTDialog.title",{name:s.name}),scan:l("invite.transferNFTDialog.scan"),confirm:l("invite.transferNFTDialog.confirm"),success:l("invite.transferNFTDialog.success")},prefix:"/.well-known/service/api/did"}),o.jsx(K,{...v,getDataFn:y,createPassportSvg:e=>q(e,s),checkFn:i.get,onLoginSuccess:g,passportColor:"default",onReceive:d(a,"value.needReceiveNFT")?L:null})]})}const B=A.div`
|
|
2
2
|
width: 100vw;
|
|
3
3
|
height: 100%;
|
|
4
4
|
min-height: 100vh;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as l,bg as m,u as p,j as s,U as u}from"./index-
|
|
1
|
+
import{A as l,bg as m,u as p,j as s,U as u}from"./index-BdODRvyL.js";import{L as g,D as v}from"./download-CS0Nwqbd.js";import{F as f,S as x}from"./Select-CYNjgjo3.js";import"./ButtonGroup-CES_ASkn.js";import"./getValidReactChildren-DP5iwnLz.js";function k(){const i=l(),{name:a="abtnode"}=m(),{info:n}=p(),r=n.routing.provider,o=[{id:"abtnode",name:"Blocklet Server",types:["error","info","access","stdout","stderr","pm2"]},{id:"blocklet-services",name:"Blocklet Services",types:["error","info","access","stdout","stderr"]}];if(r){const e=`Service Gateway(${r})`;o.push({id:`service-gateway-${r}`,name:e,types:["error","access"]})}const c=e=>{i(`/logs/${e.target.value}`)},d=s.jsx(f,{sx:{minWidth:240},children:s.jsx(x,{value:a,onChange:c,size:"small",children:o.map(e=>s.jsx(u,{value:e.id,children:e.name},e.id))})}),t=o.find(e=>e.id===a)||o[0];return s.jsx(g,{name:t.name,logId:t.id,types:t.types,prepend:d,postpend:s.jsx(v,{id:n.did,name:"blocklet-server"})},t.id)}export{k as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{P as s,j as t,B as i,gk as r}from"./index-
|
|
1
|
+
import{P as s,j as t,B as i,gk as r}from"./index-BdODRvyL.js";function n({children:e,...o}){return t.jsxs(i,{color:"did",variant:"contained",...o,children:[t.jsx("span",{style:{fontWeight:400},children:e||"Continue With"}),t.jsx(r,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}n.propTypes={children:s.any};n.defaultProps={children:""};export{n as C};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bJ as _o,j as e,aK as Vt,aL as Wt,t as z,bl as K,Q as y,ax as ve,P as i,E as A,r as h,f as Ce,bo as Ye,b as J,N as O,K as dt,V as Ft,cb as Oe,n as F,M as X,hF as qo,bG as Me,aY as ue,aX as gt,aC as Gt,a2 as $,D as xt,aP as Vo,Z as Je,a0 as Hn,b1 as Wo,fQ as Ho,fR as Ko,C as re,fd as Yo,z as uo,av as pt,q as we,y as zt,hG as Jo,hH as Zo,B as ne,ai as mo,J as Ht,hI as Qo,m as ee,a3 as Xo,dW as $o,W as fo,$ as ho,ak as es,x as ts,R as He,X as ns,hJ as go,U as ge,az as os,aA as ss,aB as is,i as yt,aN as rs,cx as as,bg as ls,hf as cs,hK as ds,ay as Kn,cv as ps,H as B,ac as Fe,aJ as xo,bI as Kt,cd as us,hL as ms,b7 as fs,A as hs,aZ as _t,T as gs,aQ as Ke,at as Nt,bp as yo,aF as xs,fN as Pe,dZ as ys,hM as Cs,gr as Yn,hN as Jn,gt as Zn,a_ as js,G as at,gv as vs,bH as Ss}from"./index-
|
|
1
|
+
import{bJ as _o,j as e,aK as Vt,aL as Wt,t as z,bl as K,Q as y,ax as ve,P as i,E as A,r as h,f as Ce,bo as Ye,b as J,N as O,K as dt,V as Ft,cb as Oe,n as F,M as X,hF as qo,bG as Me,aY as ue,aX as gt,aC as Gt,a2 as $,D as xt,aP as Vo,Z as Je,a0 as Hn,b1 as Wo,fQ as Ho,fR as Ko,C as re,fd as Yo,z as uo,av as pt,q as we,y as zt,hG as Jo,hH as Zo,B as ne,ai as mo,J as Ht,hI as Qo,m as ee,a3 as Xo,dW as $o,W as fo,$ as ho,ak as es,x as ts,R as He,X as ns,hJ as go,U as ge,az as os,aA as ss,aB as is,i as yt,aN as rs,cx as as,bg as ls,hf as cs,hK as ds,ay as Kn,cv as ps,H as B,ac as Fe,aJ as xo,bI as Kt,cd as us,hL as ms,b7 as fs,A as hs,aZ as _t,T as gs,aQ as Ke,at as Nt,bp as yo,aF as xs,fN as Pe,dZ as ys,hM as Cs,gr as Yn,hN as Jn,gt as Zn,a_ as js,G as at,gv as vs,bH as Ss}from"./index-BdODRvyL.js";import{d as bs}from"./Add-D_k4pI9W.js";import{a as Rs,R as ct,F as Es,L as Ts,d as Yt,b as Jt}from"./line-CKpAedts.js";import{C as ws,A as Ps,d as Is}from"./agreement-WG4qIDoW.js";import{E as ks}from"./index-Cd5kGc_9.js";import{b as Us,a as Bs,c as Ds,u as Zt,e as Ns}from"./actions-CrXporZt.js";import{S as As}from"./switch-control-7-MGIzPK.js";import{u as oe}from"./blocklet-fx7ejRT1.js";import{d as Co}from"./Edit-CF2dV-p0.js";import{T as Ls}from"./index-BJrQBQOR.js";import{T as Os,M as Ms,t as Fs}from"./table-icons-BS_ATSp2.js";import{C as Qn}from"./click-to-copy-BVC4LJBm.js";import{T as Z}from"./TextField-B8Ndn_Ly.js";import{d as Qt}from"./Link-CrgCiVTG.js";import{c as Gs,C as zs,a as _s,s as jo,b as qs,D as Vs,A as Ws,B as Hs,d as Ks,S as Ys}from"./item-JRZi_aRE.js";import{u as Js,a as Zs,P as vo,L as Xn,A as Qs,S as Xs}from"./index-D-HUAuYc.js";import{u as So,t as $s}from"./toUpper-Cji_NEex.js";import{a as ei,b as ti,c as ni,d as oi,e as si,g as $n,f as ii,i as eo}from"./spaces-BJikzBFK.js";import{d as ri}from"./EditIcon-CS66rX17.js";import{d as ai}from"./Done-LLl5p9CV.js";import{C as li}from"./Google-CEg0_-Ba.js";import{I as ci,a as di,f as pi,B as ui}from"./install-from-url-C2gBahK1.js";import{a as to}from"./api-B-aFuxhe.js";import{v as bo,a as ut,b as mi}from"./util-Bg0Sovun.js";import{P as fi,u as hi}from"./use-blocklet-info-for-connect-did-spaces-DOU25_RL.js";import{d as gi}from"./DeleteOutline-Bby7Ht9O.js";import{S as no}from"./index-CpvpLQ3r.js";import{d as xi}from"./ArrowDropDown-Fj1T5r_G.js";import{_ as yi}from"./useLocalStorage-Djk9mE88.js";import{d as Ci}from"./LockIcon-Dsr8612h.js";import{d as Ct}from"./Delete-DzIkIBeP.js";import{d as Ro}from"./Launch-BQ5k3Pyt.js";import{C as ji}from"./delete-confirm-DB1Hsz09.js";import{W as Ze}from"./url-evaluation-CeM0t6WP.js";import{d as vi}from"./is-path-prefix-equal-BkEH1NZx.js";import{R as Si,a as oo,B as Eo}from"./status-CBbIVZ8o.js";import{B as bi}from"./bundle-avatar-Csnfb0Gl.js";import{A as To}from"./actions-C-Plplr7.js";import{I as At}from"./index-DQOcXiyw.js";import{a as Ri}from"./index-BJ57e_hS.js";import{u as Ei}from"./team-CpKT_TRB.js";import"./ButtonGroup-CES_ASkn.js";import"./getValidReactChildren-DP5iwnLz.js";import"./index-f7uSWUvq.js";import"./index-TrxAhXnV.js";import"./url-join-C4mC0iDe.js";import"./MoreVert-EDIahDDk.js";import"./slicedToArray-rpnwAzRV.js";import"./ChevronLeft-BVPkwsiy.js";import"./redux-DYkNRFlr.js";import"./memoize-one.esm-BdPwpGay.js";import"./ViewColumn-DkiM5eqL.js";import"./ChevronRight-ChF0KBJG.js";import"./Search-Dol4CnmY.js";import"./Select-CYNjgjo3.js";import"./InputLabel-CbBV3Frl.js";import"./index-Dgsigr8r.js";import"./index-ZG7jWpak.js";import"./InputAdornment-ycCoKHr0.js";import"./preact.module-DJUF--8d.js";import"./Skeleton-CzjJPNB7.js";import"./Close-DrkkcxlK.js";import"./lottie-BM_265d4.js";import"./schema-Bj-RxzG3.js";import"./index-B5kkYZq8.js";import"./isEqual-CNnvQgen.js";import"./index-DL0tSq_I.js";import"./Stepper-BG1rAugU.js";import"./ExpandMore-BjFpCvCs.js";import"./shorten-label-Dc8UKk1Q.js";import"./MoreHoriz-DpkDHId8.js";const Ti=_o(e.jsx("path",{d:"M14.17 5 19 9.83V19H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.41l-4.83-4.83c-.37-.38-.88-.59-1.41-.59M7 15h10v2H7zm0-4h10v2H7zm0-4h7v2H7z"}),"TextSnippetOutlined");var Xt={},wi=Wt;Object.defineProperty(Xt,"__esModule",{value:!0});var wo=Xt.default=void 0,Pi=wi(Vt()),Ii=e;wo=Xt.default=(0,Pi.default)((0,Ii.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update");function $t({children:t,...o}){var g;const{t:s}=z(),{api:a}=K(),{blocklet:n}=oe(),r=(g=n==null?void 0:n.settings)==null?void 0:g.autoCheckUpdate,m=async f=>{await a.updateAutoCheckUpdate({input:{did:n.meta.did,autoCheckUpdate:f}})},l=async()=>{try{const f=!(r!=null&&r.enabled);await m({enabled:f}),A.success(s(f?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(f){A.error(f.message)}},u=!!(r!=null&&r.enabled);return e.jsxs(y,{display:"flex",flexDirection:"row",alignItems:"center",children:[t,e.jsx(ve,{title:s("storage.spaces.autoCheckUpdate.title"),arrow:!0,placement:"right",children:e.jsx("div",{children:e.jsx(As,{checked:u,onChange:l,name:"enableWelcomePage",style:{...o.style,zoom:.8}})})})]})}$t.propTypes={children:i.any};$t.defaultProps={children:null};const ki=(t,o)=>{let{description:s}=t;return(Object.values(J.CHAIN_PROP_MAP).includes(t.key)||O.isEnvShareable(t))&&(s?s=`${s} (${o("blocklet.config.sharedToAllComponents")})`:s=o("blocklet.config.sharedToAllComponents")),s&&e.jsx("div",{style:{marginLeft:12},children:s})},Lt=(t,o,s=[])=>!(s!=null&&s.length)&&!t.custom&&!["CHAIN_ID","CHAIN_HOST"].includes(t.key)&&!o.meta.environments.find(a=>a.name===t.key)&&o.children.every(a=>!a.meta.environments.find(n=>n.name===t.key))?!0:t.custom,so=t=>[J.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(t)?!0:!(t.startsWith("BLOCKLET_")||t.startsWith("COMPONENT_")),Ot=t=>[J.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(t)===!1;function mt({blocklet:t,ancestors:o}){const s=K(),{inService:a}=s,{t:n}=h.useContext(Ce),r=[...o.map(c=>c.meta.did),t.meta.did],m=()=>A.success(n("blocklet.config.changedTip")),l=c=>Lt(c,t,o);if(Ye(t.status)||t.status==="unknown"&&Ye(t.status))return null;const u=async c=>{if(!c.key.trim()||!c.value.trim()){A.error(n("blocklet.config.environment.keyValueRequired"));return}if(so(c.key)===!1){A.error(n("blocklet.config.environment.invalidKey"));return}c.custom=Ot(c.key);try{const v=await s.api.configBlocklet({input:{did:r,configs:[c]}});m(v.blocklet)}catch(v){A.error(X(v))}},g=async(c,v)=>{if(c.required&&(!c.key.trim()||!c.value.trim())){A.error(n("blocklet.config.environment.keyValueRequired"));return}if(so(c.key)===!1){A.error(n("blocklet.config.environment.invalidKey"));return}if(c.key===J.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE){const T=qo(c);if(T){A.error(T);return}}const j=[{...c,value:c.secure&&c.value==="__encrypted__"?"":c.value}];if(c.key!==v.key){if(!Lt(c,t,o)){A.error("Only key of custom env can be changed");return}j.push({key:v.key,custom:Ot(c.key)})}try{const T=await s.api.configBlocklet({input:{did:r,configs:j}});m(T.blocklet)}catch(T){A.error(X(T))}},f=async c=>{if(c.required){A.error(n("blocklet.config.environment.deleteForbidden"));return}if(!Lt(c,t,o)){A.error("Only key of custom env can be changed");return}try{const v=await s.api.configBlocklet({input:{did:r,configs:[{key:c.key,custom:Ot(c.key)}]}});m(v.blocklet)}catch(v){A.error(X(v))}},p=(t.configs||[]).filter(c=>!J.BLOCKLET_CONFIGURABLE_KEY[c.key]||[J.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_CLUSTER_SIZE].includes(c.key)),S=O.getSharedConfigObj(o[0],t),d=O.getComponentMissingConfigs(t,o[0]),b=p.map(c=>({...c,value:Object.values(J.CHAIN_PROP_MAP).includes(c.key)&&Object.keys(S).includes(c.key)?S[c.key]:S[c.key]||c.value})),C=b.some(c=>c.key&&c.key.startsWith("BWA_")),x={onRowAdd:u,onRowUpdate:g,onRowDelete:f,isDeletable:l},R=()=>[{title:n("common.key"),field:"key",initialEditValue:"Key",width:"30%",render:c=>e.jsx(Qn,{value:c.value,style:{color:c.required&&!c.value?"#ff4436":"#222222",fontWeight:c.required?"bold":"normal"},children:c.key}),editComponent:c=>{const{value:v,rowData:j,onChange:T}=c;return e.jsx(io,{children:e.jsx(Z,{fullWidth:!0,size:"small",disabled:l(j)===!1,value:v,onChange:I=>T(I.target.value),variant:"outlined",label:"Key",placeholder:n("blocklet.config.environment.key"),margin:"dense",autoFocus:!0})})}},{title:n("common.value"),field:"value",initialEditValue:"Value",width:"calc((100% - (96px + 30%)) / 1)",render:c=>c.value?c.secure?"******":e.jsx(Qn,{unstyled:!0,value:c.value,style:{wordBreak:"break-all"},children:c.value}):null,editComponent:c=>{const{value:v,rowData:j,onChange:T}=c;return e.jsxs(io,{children:[e.jsx(Z,{fullWidth:!0,size:"small",value:v==="__encrypted__"?"":v,onChange:I=>T(I.target.value),variant:"outlined",label:n("common.value"),placeholder:n("blocklet.config.environment.value"),margin:"dense",autoFocus:!0}),ki(j,n)]})}}];return e.jsxs(Ui,{children:[!!d.length&&e.jsx(dt,{severity:"error",style:{marginTop:24},children:n("blocklet.config.missingRequired")}),C&&e.jsx(dt,{severity:"info",children:n("blocklet.config.environment.tip")}),e.jsx(Ft,{permission:a?"":"mutate_blocklets",role:a?Oe:[],children:c=>e.jsx(Os,{className:"config-table",children:e.jsx(Ms,{title:e.jsx("h4",{children:n("common.environment")}),columns:R(),icons:{...Us,...Fs},options:{emptyRowsWhenPaging:!1,actionsColumnIndex:-1,tableLayout:"auto",maxBodyHeight:"100%",paging:!1,search:!1},localization:{header:{actions:n("common.actions")},body:{emptyDataSourceMessage:n("common.noData")}},data:b,editable:c?x:{}})})})]})}mt.propTypes={blocklet:i.object.isRequired,ancestors:i.array};mt.defaultProps={ancestors:[]};const Ui=F.div`
|
|
2
2
|
.config-table {
|
|
3
3
|
margin-bottom: 24px;
|
|
4
4
|
position: relative;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{fk as C,g as P,fl as R}from"./index-
|
|
1
|
+
import{fk as C,g as P,fl as R}from"./index-BdODRvyL.js";import{o as F}from"./index-ZG7jWpak.js";var O={},d,N;function $(){if(N)return d;N=1;var g,r,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
|
|
2
2
|
`,r:"\r",t:" "},v;function s(i){throw{name:"SyntaxError",message:i,at:g,text:v}}function t(i){return i&&i!==r&&s("Expected '"+i+"' instead of '"+r+"'"),r=v.charAt(g),g+=1,r}function h(){var i,n="";for(r==="-"&&(n="-",t("-"));r>="0"&&r<="9";)n+=r,t();if(r===".")for(n+=".";t()&&r>="0"&&r<="9";)n+=r;if(r==="e"||r==="E")for(n+=r,t(),(r==="-"||r==="+")&&(n+=r,t());r>="0"&&r<="9";)n+=r,t();return i=Number(n),isFinite(i)||s("Bad number"),i}function p(){var i,n,a="",y;if(r==='"')for(;t();){if(r==='"')return t(),a;if(r==="\\")if(t(),r==="u"){for(y=0,n=0;n<4&&(i=parseInt(t(),16),!!isFinite(i));n+=1)y=y*16+i;a+=String.fromCharCode(y)}else if(typeof o[r]=="string")a+=o[r];else break;else a+=r}s("Bad string")}function f(){for(;r&&r<=" ";)t()}function u(){switch(r){case"t":return t("t"),t("r"),t("u"),t("e"),!0;case"f":return t("f"),t("a"),t("l"),t("s"),t("e"),!1;case"n":return t("n"),t("u"),t("l"),t("l"),null;default:s("Unexpected '"+r+"'")}}function l(){var i=[];if(r==="["){if(t("["),f(),r==="]")return t("]"),i;for(;r;){if(i.push(e()),f(),r==="]")return t("]"),i;t(","),f()}}s("Bad array")}function c(){var i,n={};if(r==="{"){if(t("{"),f(),r==="}")return t("}"),n;for(;r;){if(i=p(),f(),t(":"),Object.prototype.hasOwnProperty.call(n,i)&&s('Duplicate key "'+i+'"'),n[i]=e(),f(),r==="}")return t("}"),n;t(","),f()}}s("Bad object")}function e(){switch(f(),r){case"{":return c();case"[":return l();case'"':return p();case"-":return h();default:return r>="0"&&r<="9"?h():u()}}return d=function(i,n){var a;return v=i,g=0,r=" ",a=e(),f(),r&&s("Syntax error"),typeof n=="function"?function y(w,m){var b,S,j=w[m];if(j&&typeof j=="object")for(b in e)Object.prototype.hasOwnProperty.call(j,b)&&(S=y(j,b),typeof S>"u"?delete j[b]:j[b]=S);return n.call(w,m,j)}({"":a},""):a},d}var J,A;function D(){if(A)return J;A=1;var g=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r,o,v={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s;function t(p){return g.lastIndex=0,g.test(p)?'"'+p.replace(g,function(f){var u=v[f];return typeof u=="string"?u:"\\u"+("0000"+f.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+p+'"'}function h(p,f){var u,l,c,e,i=r,n,a=f[p];switch(a&&typeof a=="object"&&typeof a.toJSON=="function"&&(a=a.toJSON(p)),typeof s=="function"&&(a=s.call(f,p,a)),typeof a){case"string":return t(a);case"number":return isFinite(a)?String(a):"null";case"boolean":case"null":return String(a);case"object":if(!a)return"null";if(r+=o,n=[],Object.prototype.toString.apply(a)==="[object Array]"){for(e=a.length,u=0;u<e;u+=1)n[u]=h(u,a)||"null";return c=n.length===0?"[]":r?`[
|
|
3
3
|
`+r+n.join(`,
|
|
4
4
|
`+r)+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{hg as W,r as L,hh as z,ck as R,f7 as N,hi as x,hj as P,ci as j,hk as S}from"./index-
|
|
1
|
+
import{hg as W,r as L,hh as z,ck as R,f7 as N,hi as x,hj as P,ci as j,hk as S}from"./index-BdODRvyL.js";var V=function(r,a){return r===void 0&&(r=[]),a===void 0&&(a=[]),W(r,a)},I=function(r,a,n){var e=L.useRef(),u=L.useRef(0);V(a,e.current)||(u.current+=1),e.current=a,z(r,[u.current],n)},J=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),B={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:J?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},E={ctrl:function(r){return r.ctrlKey},shift:function(r){return r.shiftKey},alt:function(r){return r.altKey},meta:function(r){return r.type==="keyup"?B.meta.includes(r.keyCode):r.metaKey}};function G(r){return P(r)||j(r)}function Q(r){var a=Object.keys(E).reduce(function(n,e){return E[e](r)?n+1:n},0);return[16,17,18,91,92].includes(r.keyCode)?a:a+1}function T(r,a,n){var e,u;if(!r.key)return!1;if(j(a))return r.keyCode===a?a:!1;var o=a.split("."),s=0;try{for(var c=x(o),l=c.next();!l.done;l=c.next()){var p=l.value,y=E[p],m=B[p.toLowerCase()];(y&&y(r)||m&&m===r.keyCode)&&s++}}catch(k){e={error:k}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(e)throw e.error}}return n?s===o.length&&Q(r)===o.length?a:!1:s===o.length?a:!1}function U(r,a){return S(r)?r:G(r)?function(n){return T(n,r,a)}:Array.isArray(r)?function(n){return r.find(function(e){return T(n,e,a)})}:function(){return!!r}}var X=["keydown"];function Z(r,a,n){var e=n||{},u=e.events,o=u===void 0?X:u,s=e.target,c=e.exactMatch,l=c===void 0?!1:c,p=e.useCapture,y=p===void 0?!1:p,m=R(a),k=R(r);I(function(){var b,C,K,t=N(s,window);if(t){var q=function(i){var v,g=U(k.current,l),f=g(i),d=G(f)?f:i.key;if(f)return(v=m.current)===null||v===void 0?void 0:v.call(m,i,d)};try{for(var w=x(o),h=w.next();!h.done;h=w.next()){var H=h.value;(K=t==null?void 0:t.addEventListener)===null||K===void 0||K.call(t,H,q,y)}}catch(i){b={error:i}}finally{try{h&&!h.done&&(C=w.return)&&C.call(w)}finally{if(b)throw b.error}}return function(){var i,v,g;try{for(var f=x(o),d=f.next();!d.done;d=f.next()){var M=d.value;(g=t==null?void 0:t.removeEventListener)===null||g===void 0||g.call(t,M,q,y)}}catch(O){i={error:O}}finally{try{d&&!d.done&&(v=f.return)&&v.call(f)}finally{if(i)throw i.error}}}}},[o],s)}export{Z as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as O,cO as j}from"./index-
|
|
1
|
+
import{g as O,cO as j}from"./index-BdODRvyL.js";function J(i,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const e in a)if(e!=="default"&&!(e in i)){const s=Object.getOwnPropertyDescriptor(a,e);s&&Object.defineProperty(i,e,s.get?s:{enumerable:!0,get:()=>a[e]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var d={default:j,call:function(i,t,r){var a="";typeof t=="function"&&(r=t,t={});var e={data:t===void 0?null:t};if(typeof r=="function"){var s="dscb"+window.dscb++;window[s]=r,e._dscbstub=s}return e=JSON.stringify(e),window._dsbridge?a=_dsbridge.call(i,e):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(a=prompt("_dsbridge="+i,e)),JSON.parse(a||"{}").data},register:function(i,t,r){var a=r?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){d.call("_dsb.dsinit")},0)),typeof t=="object"?a._obs[i]=t:a[i]=t},registerAsyn:function(i,t){this.register(i,t,!0)},hasNativeMethod:function(i,t){return this.call("_dsb.hasNativeMethod",{name:i,type:t||"all"})},disableJavascriptDialogBlock:function(i){this.call("_dsb.disableJavascriptDialogBlock",{disable:i!==!1})}};(function(){if(!window._dsf){var i={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:d,close:function(){d.call("_dsb.closePage")},_handleMessageFromNative:function(r){var a=JSON.parse(r.data),e={id:r.callbackId,complete:!0},s=this._dsf[r.method],o=this._dsaf[r.method],p=function(u,_){e.data=u.apply(_,a),d.call("_dsb.returnValue",e)},v=function(u,_){a.push(function(w,y){e.data=w,e.complete=y!==!1,d.call("_dsb.returnValue",e)}),u.apply(_,a)};if(s)p(s,this._dsf);else if(o)v(o,this._dsaf);else{var l=r.method.split(".");if(l.length<2)return;var g=l.pop(),b=l.join("."),c=this._dsf._obs,f=c[b]||{},n=f[g];if(n&&typeof n=="function"){p(n,f);return}if(c=this._dsaf._obs,f=c[b]||{},n=f[g],n&&typeof n=="function"){v(n,f);return}}}};for(var t in i)window[t]=i[t];d.register("_hasJavascriptMethod",function(r,a){var e=r.split(".");if(e.length<2)return!!(_dsf[e]||_dsaf[e]);var r=e.pop(),s=e.join("."),o=_dsf._obs[s]||_dsaf._obs[s];return o&&!!o[r]})}})();var h=d;const N=O(h),k=J({__proto__:null,default:N},[h]);export{k as i};
|