@abtnode/webapp 1.17.5-beta-20251214-231110-497f8d27 → 1.17.6-beta-20251216-081847-bf91c4db
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/{AdapterDayjs-CgNLGdsV.js → AdapterDayjs-BJDMOH87.js} +1 -1
- package/dist/assets/{Add-DY1gS9Dz.js → Add-CwfzHL2f.js} +1 -1
- package/dist/assets/ArrowDropDown-BRCFiDo5.js +1 -0
- package/dist/assets/{Autocomplete-DBXlHxck.js → Autocomplete-DTfKu22k.js} +1 -1
- package/dist/assets/{Breadcrumbs-C4L8U0Mj.js → Breadcrumbs-CI3uNLPY.js} +1 -1
- package/dist/assets/{ButtonGroup-3fqwj5Ky.js → ButtonGroup-CE8Yme-Z.js} +1 -1
- package/dist/assets/{CSSTransition-hVfsLWm-.js → CSSTransition-Cq_0t7dk.js} +1 -1
- package/dist/assets/{CallMerge-BWKncjAQ.js → CallMerge-BpBCpBS4.js} +1 -1
- package/dist/assets/{CardContent-S1Olt54S.js → CardContent-VIJU2wwZ.js} +1 -1
- package/dist/assets/{ChevronLeft-DGU-DOuV.js → ChevronLeft-DDZiF24z.js} +1 -1
- package/dist/assets/{ChevronRight-8InGKmMS.js → ChevronRight-iPKgmmla.js} +1 -1
- package/dist/assets/{Clear-BFurvC8R.js → Clear-lc-87cdU.js} +1 -1
- package/dist/assets/{Delete-Brb8t62i.js → Delete-Depf4F2y.js} +1 -1
- package/dist/assets/{DeleteOutline-P1tPKlQL.js → DeleteOutline-CCoXF09b.js} +1 -1
- package/dist/assets/{Done-D7HN06J1.js → Done-KOQXZtlD.js} +1 -1
- package/dist/assets/{Edit-CpNEn5zp.js → Edit-BWqfJBJ6.js} +1 -1
- package/dist/assets/{ErrorOutline-DlSN54Ps.js → ErrorOutline-B7Ps-w5c.js} +1 -1
- package/dist/assets/{FilterList-DCiDc43y.js → FilterList-BGhEWkST.js} +1 -1
- package/dist/assets/{Google-D_lyR__A.js → Google-B-6SbnBW.js} +1 -1
- package/dist/assets/{HelpOutline-DpBESAst.js → HelpOutline-VHuGbaF6.js} +1 -1
- package/dist/assets/{KeyboardArrowDown-DeA6xh4S.js → KeyboardArrowDown-6ORbckfg.js} +1 -1
- package/dist/assets/{Launch-Bq5mqcUb.js → Launch-BeO2pbYn.js} +1 -1
- package/dist/assets/{Link-CyO965jU.js → Link-pkcRdxt0.js} +1 -1
- package/dist/assets/{ListItemButton-BsnowPaA.js → ListItemButton-BUXqqfVc.js} +1 -1
- package/dist/assets/{ListSubheader-BcTZxGIx.js → ListSubheader-DzDc9oA3.js} +1 -1
- package/dist/assets/{LoadingButton-UXSaquyL.js → LoadingButton-DuEza0fz.js} +1 -1
- package/dist/assets/{MoreVert-V2LiAaXF.js → MoreVert-DXy5wrMx.js} +1 -1
- package/dist/assets/{OpenInNew-C5gvRiqd.js → OpenInNew-O9EysXQn.js} +1 -1
- package/dist/assets/{Refresh-C6MLAQnO.js → Refresh-BT6pxoXK.js} +1 -1
- package/dist/assets/{Replay-CSz8ZIga.js → Replay-CBq27_EQ.js} +1 -1
- package/dist/assets/{Search-x2lb6Akd.js → Search-edKoOPH1.js} +1 -1
- package/dist/assets/{Stepper-D7l565H3.js → Stepper-rWMUaF_2.js} +1 -1
- package/dist/assets/{TableSearch-DRmWGhph.js → TableSearch-B1H-6-fg.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-DTZuFSiT.js → ToggleButtonGroup-C_82EW2F.js} +1 -1
- package/dist/assets/{UnfoldMore-CfZy9D-D.js → UnfoldMore-COp9hgN2.js} +1 -1
- package/dist/assets/{Verified-BpXE28d4.js → Verified-CDQAXply.js} +1 -1
- package/dist/assets/{VerifiedUser-BNuQYAdH.js → VerifiedUser-DK9YGdyH.js} +1 -1
- package/dist/assets/{ViewList-C-96Tk3T.js → ViewList-BbsCfkWP.js} +1 -1
- package/dist/assets/{_createAggregator-CImEitD-.js → _createAggregator-Dw9ehKUs.js} +1 -1
- package/dist/assets/{actions-B8scXmgC.js → actions-B3lOcEVi.js} +1 -1
- package/dist/assets/{actions-kx-IWp3k.js → actions-D6D1nZGR.js} +1 -1
- package/dist/assets/{agreement-DP0eUo8S.js → agreement-BJafEhuZ.js} +1 -1
- package/dist/assets/api-CzO1JAlF.js +1 -0
- package/dist/assets/{appearance-cERzuGGi.js → appearance-DHyuFSLh.js} +1 -1
- package/dist/assets/{audit-logs-Cv2ihhLM.js → audit-logs-9W-SjlpY.js} +1 -1
- package/dist/assets/{base-chart-DEZPYe4h.js → base-chart-CQIo67AL.js} +1 -1
- package/dist/assets/{blocklet-C0-c8dVN.js → blocklet-c-fcHcMv.js} +1 -1
- package/dist/assets/{chain-fXxRiV2U.js → chain-DggQDLgW.js} +1 -1
- package/dist/assets/{click-to-copy-CGVo7y_H.js → click-to-copy-CUoB1qVU.js} +1 -1
- package/dist/assets/cloneDeep-CF0rc6VO.js +1 -0
- package/dist/assets/{config-navigation-DLeJwQ7O.js → config-navigation-0EI4c1lJ.js} +3 -3
- package/dist/assets/{connect-to-DCLDiA4c.js → connect-to-DYsYwfyz.js} +1 -1
- package/dist/assets/{cssMode-JYzCUrBO.js → cssMode-BsY3xqt4.js} +1 -1
- package/dist/assets/{delete-confirm-CKUwqxvJ.js → delete-confirm-BuKtLpww.js} +1 -1
- package/dist/assets/{depsEqual-B4BFmwuI.js → depsEqual-CDIkAeqx.js} +1 -1
- package/dist/assets/{detail-F8H8w9u1.js → detail-DEbKzuLV.js} +3 -3
- package/dist/assets/{domains-BpTnyTDn.js → domains-lG_9thiv.js} +1 -1
- package/dist/assets/{download-DDdx75jE.js → download-Z-lPT0_Q.js} +1 -1
- package/dist/assets/{edit.svg-CBK1UF-9.js → edit.svg-BNlNDOgE.js} +1 -1
- package/dist/assets/emotion-cache.browser.esm-DcciVh-V.js +1 -0
- package/dist/assets/engine-DHbDpbO8.js +1 -0
- package/dist/assets/{freemarker2-BUy2QQDP.js → freemarker2-C5pjFwAf.js} +1 -1
- package/dist/assets/{get-safe-url-DwUMajjg.js → get-safe-url-DMzSWw8A.js} +1 -1
- package/dist/assets/getValidReactChildren-C2YiZOfP.js +1 -0
- package/dist/assets/{graphqlMode-DL2_JbNW.js → graphqlMode-DQJwvpqC.js} +2 -2
- package/dist/assets/{handlebars-q_jgTrqQ.js → handlebars-AtbuPgIu.js} +1 -1
- package/dist/assets/{html-D9YLKYtv.js → html-BZ4Y9llP.js} +1 -1
- package/dist/assets/{html-title-Dp-sqsn-.js → html-title-ZIT73gw4.js} +1 -1
- package/dist/assets/{htmlMode-Bz_kRcCe.js → htmlMode-CaNYTMy1.js} +1 -1
- package/dist/assets/{iframe-Ca3kRbO-.js → iframe-BeX_RqP4.js} +1 -1
- package/dist/assets/{index-D-lCEtM3.js → index-5clu8qhD.js} +1 -1
- package/dist/assets/{index-CwQLM6w6.js → index-AQr2b_V7.js} +1 -1
- package/dist/assets/{index-BkRtS9xF.js → index-B7tB7lMU.js} +1 -1
- package/dist/assets/{index-EFWTbF8B.js → index-BE354x55.js} +1 -1
- package/dist/assets/{index-DgrHpp-o.js → index-BGKWLg7d.js} +1 -1
- package/dist/assets/{index-CvyKEas9.js → index-BSjBv3t4.js} +1 -1
- package/dist/assets/{index-QPSBfX_L.js → index-Bi94s6DF.js} +1 -1
- package/dist/assets/{index-COx5xHO6.js → index-BtplxQ7P.js} +1 -1
- package/dist/assets/{index-DfKSjTkz.js → index-Bx58QoYR.js} +1 -1
- package/dist/assets/{index-BqujSmiU.js → index-Bya-MYDK.js} +1 -1
- package/dist/assets/{index-CzaXdOyt.js → index-C0fIFyuA.js} +3 -3
- package/dist/assets/{index-t688rAZG.js → index-C3en75nR.js} +1 -1
- package/dist/assets/index-C7FK1qLV.js +1 -0
- package/dist/assets/{index-CghNgTHC.js → index-C8Gu9f5N.js} +1 -1
- package/dist/assets/{index-lxTcvHA2.js → index-CJF8E7TC.js} +1 -1
- package/dist/assets/{index-D3FM5z_m.js → index-CLwXTEVs.js} +3 -3
- package/dist/assets/{index-Snc2Ei8N.js → index-CNAqYYKs.js} +1 -1
- package/dist/assets/{index-sI82kOvs.js → index-CSHkmzNN.js} +30 -34
- package/dist/assets/{index-DxWj3O4A.js → index-CWU4hC_i.js} +3 -3
- package/dist/assets/{index-BTjnUzI6.js → index-CYG5tlBe.js} +1 -1
- package/dist/assets/{index-Bm01pS0y.js → index-CZlU7cPx.js} +1 -1
- package/dist/assets/{index-DqhaUjOT.js → index-CfCMnLvt.js} +1 -1
- package/dist/assets/{index-C7i09MwD.js → index-CffUOfeg.js} +1 -1
- package/dist/assets/{index-JEnbYjKN.js → index-CiR3wNRT.js} +1 -1
- package/dist/assets/{index-29D5d56z.js → index-Cihue4u0.js} +1 -1
- package/dist/assets/{index-Lkm8XAFp.js → index-CjAXuazv.js} +1 -1
- package/dist/assets/{index-C-lLLTqv.js → index-CnSanU-5.js} +2 -2
- package/dist/assets/{index-DLSU0S2q.js → index-CwvGvnvI.js} +1 -1
- package/dist/assets/{index-87RKuT5C.js → index-CyYCs6Na.js} +6 -6
- package/dist/assets/{index-C-Jgy1MF.js → index-D8iAEh5P.js} +1 -1
- package/dist/assets/{index-D9CYdevY.js → index-DBPZHeTe.js} +1 -1
- package/dist/assets/{index-BOuTBP5N.js → index-DH-JWbgS.js} +1 -1
- package/dist/assets/{index-BCxpBrwy.js → index-DKnP8AX5.js} +1 -1
- package/dist/assets/{index-BF-3wV6r.js → index-DOuT_eWr.js} +1 -1
- package/dist/assets/{index-CS7M20xU.js → index-Dgm3J-5y.js} +1 -1
- package/dist/assets/{index-B1mE4gVN.js → index-DvylVaG5.js} +1 -1
- package/dist/assets/{index-zltF8Ym1.js → index-FBWsHUHc.js} +1 -1
- package/dist/assets/{index-BNrJ3-FU.js → index-JpjTsddL.js} +1 -1
- package/dist/assets/{index-HS1vQPHE.js → index-ZHthb_a5.js} +1 -1
- package/dist/assets/{index-D26x5oE3.js → index-_wUNu-iB.js} +1 -1
- package/dist/assets/{index-qPcTPC8W.js → index-_ylGel7X.js} +1 -1
- package/dist/assets/{index-BP8O3XHI.js → index-hkRM3sJd.js} +1 -1
- package/dist/assets/{index-CCjtqj3s.js → index-qDXgq7vV.js} +9 -9
- package/dist/assets/{index-B0_tF8nw.js → index-sJeutPoU.js} +1 -1
- package/dist/assets/{index-BkZRidRp.js → index-tUPbUUvJ.js} +1 -1
- package/dist/assets/{index.esm-rxbUJdm1.js → index.esm-XgmtgzU6.js} +1 -1
- package/dist/assets/{install-from-url-Vgpqf_RA.js → install-from-url-CGtgqRyi.js} +1 -1
- package/dist/assets/{invitation-8UtMlo2J.js → invitation-C_eNuh8O.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-5DtBeL0p.js → is-path-prefix-equal-BspuX_I9.js} +1 -1
- package/dist/assets/{item-Bo6y5Gud.js → item-wxO3KmF4.js} +1 -1
- package/dist/assets/{javascript-DYN9z7wM.js → javascript-CKDwawbm.js} +1 -1
- package/dist/assets/{jsonMode-D32rzzdQ.js → jsonMode-BP0R9CmR.js} +1 -1
- package/dist/assets/{liquid-BtOj54gG.js → liquid-4UI0Zois.js} +1 -1
- package/dist/assets/{list-header-DMsNH71I.js → list-header-C9_FZEk7.js} +1 -1
- package/dist/assets/{lock.svg-Cs99iZpo.js → lock.svg-tfWudiuy.js} +1 -1
- package/dist/assets/{log-BDpurb-t.js → log-CF_IJCaQ.js} +1 -1
- package/dist/assets/{lottie-react.esm-DHr-1U6T.js → lottie-react.esm-BvFBsF4l.js} +1 -1
- package/dist/assets/{mdx-BvhFWG4R.js → mdx-O8RIyVTG.js} +1 -1
- package/dist/assets/{memory-DdzEg3E6.js → memory-CoHOdYyC.js} +1 -1
- package/dist/assets/{metric-C2htX2Yk.js → metric-8WMIjcND.js} +1 -1
- package/dist/assets/omit-DbDS-rZP.js +1 -0
- package/dist/assets/{overview--R-CMMW-.js → overview-KMBUCZti.js} +1 -1
- package/dist/assets/{permission-SRhWeTXb.js → permission-3nsQS0Bo.js} +1 -1
- package/dist/assets/{preference-CKq_K8v4.js → preference-DvLBp1_G.js} +3 -3
- package/dist/assets/{python-DxaDOp9e.js → python-CCp746AY.js} +1 -1
- package/dist/assets/{raf-schd.esm-VXV4zFrR.js → raf-schd.esm-BNZAb83s.js} +1 -1
- package/dist/assets/{razor-BRzb-KS4.js → razor-YJwBLn7z.js} +1 -1
- package/dist/assets/{rotate-session-key-hCEg8oFb.js → rotate-session-key-D_IS-WkQ.js} +1 -1
- package/dist/assets/{runtime-D91pG25y.js → runtime-Dxp6bWyV.js} +1 -1
- package/dist/assets/schema-DAPWQjet.js +1 -0
- package/dist/assets/sdk-Dbin21P4.js +1 -0
- package/dist/assets/{service-dZBUbVK3.js → service-BwsotI3l.js} +1 -1
- package/dist/assets/{shorten-label-BF590ANn.js → shorten-label-DJxU7eGt.js} +1 -1
- package/dist/assets/{simple-select-BVmpIZiu.js → simple-select-DTAtG4Ai.js} +1 -1
- package/dist/assets/{spaces-BJDcrjBg.js → spaces-z72qxe5O.js} +1 -1
- package/dist/assets/{status-8XKvO1QE.js → status-3LMMJunc.js} +1 -1
- package/dist/assets/{status-DQ167_MQ.js → status-Cj3yOznG.js} +1 -1
- package/dist/assets/{switch-control-HQLhcuwU.js → switch-control-DBzGlbkg.js} +1 -1
- package/dist/assets/{table-icons-CTYxIeWB.js → table-icons-C-h4FDAF.js} +1 -1
- package/dist/assets/{team-CWb9WqYD.js → team-BgfMEJL2.js} +1 -1
- package/dist/assets/{toLower-TUYcnZbz.js → toLower-BHBBXNv2.js} +1 -1
- package/dist/assets/toUpper-C6xfv6tZ.js +1 -0
- package/dist/assets/{traffic-DGVWI219.js → traffic-D-uRzuea.js} +1 -1
- package/dist/assets/{tsMode-DHb6BLph.js → tsMode-CeRn61xO.js} +1 -1
- package/dist/assets/{typescript-BIlsbF26.js → typescript-DoL6n85S.js} +1 -1
- package/dist/assets/{url-evaluation-mq4H4jA_.js → url-evaluation-B3eRUARy.js} +1 -1
- package/dist/assets/{url-join-bG8RQ0FO.js → url-join-CfCMzD0L.js} +1 -1
- package/dist/assets/{use-mobile-BffT8C8k.js → use-mobile-CHK2BJEL.js} +1 -1
- package/dist/assets/{use-mobile-BmJGrK15.js → use-mobile-DW1xADqf.js} +1 -1
- package/dist/assets/{useAsync-C6Syz0fD.js → useAsync-DHJaMqFP.js} +1 -1
- package/dist/assets/{useAsyncRetry-BG_Bqdv2.js → useAsyncRetry-DE25r2jb.js} +1 -1
- package/dist/assets/{useLocalStorage-7RvuX-wT.js → useLocalStorage-BrmzkzdD.js} +1 -1
- package/dist/assets/{useThemeProps-DP_44cxZ.js → useThemeProps-Chclx8ny.js} +1 -1
- package/dist/assets/{util-BvF3wEH8.js → util-yYX5V34t.js} +1 -1
- package/dist/assets/{wait-container-DLuEZWXO.js → wait-container-DXBOHjPe.js} +1 -1
- package/dist/assets/{without-wallet-DZoff-em.js → without-wallet-BNsRjeI5.js} +1 -1
- package/dist/assets/wrap-locale-Crvlfq9n.js +1 -0
- package/dist/assets/{xml-DjQcmk1n.js → xml-ZZLcLPO2.js} +1 -1
- package/dist/assets/{yaml-Cdu8Piv-.js → yaml-3xc0kMOl.js} +1 -1
- package/dist/assets/{zh-Dr9buZnV.js → zh-CSl2KD_S.js} +1 -1
- package/dist/assets/{zh-tw-CeXBj2i0.js → zh-tw-BiloxWNq.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +25 -2
- package/package.json +1 -1
- package/dist/assets/ArrowDropDown-BA2tLXoO.js +0 -1
- package/dist/assets/api-D8LqcBu8.js +0 -1
- package/dist/assets/cloneDeep-CtZ8Xty4.js +0 -1
- package/dist/assets/emotion-cache.browser.esm-CZAf8Clc.js +0 -1
- package/dist/assets/engine-C1YpSsUo.js +0 -1
- package/dist/assets/getValidReactChildren-7B6f8iqP.js +0 -1
- package/dist/assets/index-CCTRr7te.js +0 -1
- package/dist/assets/omit-Csc9rFvJ.js +0 -1
- package/dist/assets/schema-Bksytr0e.js +0 -1
- package/dist/assets/sdk-DXEfKnNl.js +0 -1
- package/dist/assets/toUpper-C6wT1Gl8.js +0 -1
- package/dist/assets/wrap-locale-CwRGSp3B.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-
|
|
2
|
-
import{r as d,cx as z,c6 as U,cy as F,cz as X,aF as B,j as s,s as E,o as k,E as H,aP as V,p as G,cA as K,w as D,K as p,cB as O,W as J,v as L,b8 as Q,T as I,cC as M,L as q,cD as Y,bK as Z,cE as ee,cF as te,u as se,x as ae,bC as oe,ar as ne,af as re}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-Bi94s6DF.js","./index-CyYCs6Na.js","./index-DGkT7afN.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as d,cx as z,c6 as U,cy as F,cz as X,aF as B,j as s,s as E,o as k,E as H,aP as V,p as G,cA as K,w as D,K as p,cB as O,W as J,v as L,b8 as Q,T as I,cC as M,L as q,cD as Y,bK as Z,cE as ee,cF as te,u as se,x as ae,bC as oe,ar as ne,af as re}from"./index-CyYCs6Na.js";import{V as ie}from"./ViewList-BbsCfkWP.js";import{D as ce}from"./Done-KOQXZtlD.js";import{N as le}from"./index-BSjBv3t4.js";import{w as pe}from"./wrap-locale-Crvlfq9n.js";import{g as de}from"./get-safe-url-DMzSWw8A.js";import{S as ue,a as me,b as fe}from"./Stepper-rWMUaF_2.js";import"./emotion-cache.browser.esm-DcciVh-V.js";import"./index-DOuT_eWr.js";var T=function(e){if(!e)return 0;var r=X(e).valueOf()-Date.now();return r<0?0:r},he=function(e){return{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3}},xe=function(e){e===void 0&&(e={});var r=e||{},l=r.leftTime,i=r.targetDate,u=r.interval,w=u===void 0?1e3:u,x=r.onEnd,g=d.useMemo(function(){return z(l)&&l>0?Date.now()+l:void 0},[l]),a="leftTime"in e?g:i,m=U(d.useState(function(){return T(a)}),2),h=m[0],f=m[1],o=F(x);d.useEffect(function(){if(!a){f(0);return}f(T(a));var v=setInterval(function(){var n,c=T(a);f(c),c===0&&(clearInterval(v),(n=o.current)===null||n===void 0||n.call(o))},w);return function(){return clearInterval(v)}},[a,w]);var j=d.useMemo(function(){return he(h)},[h]);return[h,j]};const ge=B(s.jsx("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"}));function _({list:e=[],width:r=300,height:l=400,cardSpace:i=40,onSelect:u=()=>{},defaultIndex:w=0}){const[x,g]=d.useState(0),[a,m]=d.useState(0),h=d.useRef(null),f=n=>{if(n<0||n>e.length-1)return;g(n);const c=h.current.clientWidth;m(n*(r+i)-(c-r)/2+i*.5),u(n)};d.useEffect(()=>{f(w);const n=c=>c.preventDefault();h.current.addEventListener("touchmove",n,{passive:!1})},[]);let o;const j=n=>{o=n.touches[0].clientX},v=n=>{const c=n.changedTouches[0],y=o-c.clientX;Math.abs(y)>60&&(y>0?f(x+1):f(x-1))};return s.jsx(ve,{ref:h,onTouchStart:j,onTouchEnd:v,children:s.jsx("div",{className:"card-container",style:{transform:`translate(${-a}px, 0)`},children:e.map((n,c)=>s.jsx("div",{className:`card-item ${c===x?"selected":""}`,style:{width:r,height:l,margin:i/2},onClick:()=>f(c),children:n.display?s.jsx("div",{className:"card-content",children:s.jsx(le,{data:n.display,style:{width:"100%",height:"100%"}})}):s.jsx("div",{className:"card-content",dangerouslySetInnerHTML:{__html:n.src}})},n.id))})})}const ve=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 d,cx as z,c6 as U,cy as F,cz as X,aF as B,j as s,s as E,o as k,E as
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
`;_.propTypes={list:k.array,width:k.number,height:k.number,cardSpace:k.number,onSelect:k.func,defaultIndex:k.number};function be({icon:e,active:r,completed:l}){const i={1:s.jsx(ie,{className:"step-icon"}),2:s.jsx(ge,{className:"step-icon"}),3:s.jsx(ce,{className:"step-icon"})},u=["step-icon-w"];return r&&u.push("step-icon-w--active"),l&&u.push("step-icon-w--completed"),s.jsx("div",{className:u.join(" "),children:i[String(e)]})}function we({SessionContext:e,webWalletUrl:r,createPassportSvg:l,passportColor:i,onLogin:u,teamDid:w}){const{api:x}=d.useContext(e),g=H(t=>t.breakpoints.down("sm")),a=V({user:null,passport:null,success:!1,activeStep:0}),m=d.useRef({sessionToken:"",refreshToken:"",csrfToken:""}),{setPassportId:h,clearPassportId:f}=Y(),{t:o,locale:j}=d.useContext(G),{wallet:v}=K(),[n,c]=d.useState(0),{searchParams:y}=new URL(window.location.href),P=()=>{a.activeStep++},$=t=>{a.user=t.user},W=()=>{P()},A=(t,b)=>{t?.passportId&&h(t.passportId),t?.sessionToken&&(m.current.sessionToken=b(t.sessionToken)),t?.refreshToken&&(m.current.refreshToken=b(t.refreshToken)),t?.csrfToken&&(m.current.csrfToken=b(t.csrfToken)),a.success=!0,P()},S=async()=>{if(v&&M()){Z(()=>import("./index-
|
|
36
|
+
`;_.propTypes={list:k.array,width:k.number,height:k.number,cardSpace:k.number,onSelect:k.func,defaultIndex:k.number};function be({icon:e,active:r,completed:l}){const i={1:s.jsx(ie,{className:"step-icon"}),2:s.jsx(ge,{className:"step-icon"}),3:s.jsx(ce,{className:"step-icon"})},u=["step-icon-w"];return r&&u.push("step-icon-w--active"),l&&u.push("step-icon-w--completed"),s.jsx("div",{className:u.join(" "),children:i[String(e)]})}function we({SessionContext:e,webWalletUrl:r,createPassportSvg:l,passportColor:i,onLogin:u,teamDid:w}){const{api:x}=d.useContext(e),g=H(t=>t.breakpoints.down("sm")),a=V({user:null,passport:null,success:!1,activeStep:0}),m=d.useRef({sessionToken:"",refreshToken:"",csrfToken:""}),{setPassportId:h,clearPassportId:f}=Y(),{t:o,locale:j}=d.useContext(G),{wallet:v}=K(),[n,c]=d.useState(0),{searchParams:y}=new URL(window.location.href),P=()=>{a.activeStep++},$=t=>{a.user=t.user},W=()=>{P()},A=(t,b)=>{t?.passportId&&h(t.passportId),t?.sessionToken&&(m.current.sessionToken=b(t.sessionToken)),t?.refreshToken&&(m.current.refreshToken=b(t.refreshToken)),t?.csrfToken&&(m.current.csrfToken=b(t.csrfToken)),a.success=!0,P()},S=async()=>{if(v&&M()){Z(()=>import("./index-Bi94s6DF.js").then(b=>b.i),__vite__mapDeps([0,1,2]),import.meta.url).then(b=>{b.call("arcClosePage")});return}ee(u)&&u({sessionToken:m.current.sessionToken,refreshToken:m.current.refreshToken,csrfToken:m.current.csrfToken});const t=y.get("redirect");if(t){window.location.replace(de(t));return}f(),window.location.replace("/")},R=t=>{a.passport=t.target.value},[C]=xe({leftTime:n,onEnd:()=>{S()}}),N=[{label:o("lostPassport.recoverPassport"),content:()=>{if(!a.user){const t=y.get("scope")||"passport";return s.jsx(D,{popup:!0,open:!0,hideCloseButton:!0,className:"connect",action:"lost-passport-list",forceConnected:!1,autoConnect:!1,checkFn:x.get,checkTimeout:10*60*1e3,webWalletUrl:r,onSuccess:$,locale:j,messages:{title:o("lostPassport.recoverDialog.title"),scan:o("lostPassport.recoverDialog.scan"),confirm:o("lostPassport.recoverDialog.confirm"),success:o("lostPassport.recoverDialog.success")},extraParams:{scope:t}})}return s.jsxs(p,{className:"select-passport",children:[s.jsxs(p,{className:"user-info",sx:{my:1,display:"flex",alignItems:"center"},children:[s.jsx(O,{src:a.user.avatar,style:{width:48,height:48,backgroundColor:"transparent",marginRight:16}}),s.jsxs(p,{children:[s.jsx(p,{className:"name",children:a.user.fullName}),s.jsx(p,{className:"did",sx:{mt:1},children:s.jsx(J,{responsive:!g,compact:g,did:a.user.did})})]})]}),s.jsx(p,{children:s.jsx(_,{width:g?180:230,height:g?240:306,cardSpace:24,list:a.user.passportTypes.map(t=>({src:l({scope:t.scope,role:t.role,title:t.scope==="kyc"?t.name:t.title,issuer:t.issuer.name,issuerDid:t.issuer.id,ownerDid:a.user.did,ownerName:a.user.fullName,ownerAvatarUrl:a.user.avatar,preferredColor:i||"auto",extra:t.scope==="kyc"?{key:"Email",value:t.name}:void 0}),name:t.title,id:t.id,display:t.display})),onSelect:t=>R({target:{value:a.user.passportTypes[t].id}}),defaultIndex:0})}),s.jsx(p,{sx:{textAlign:"center"},children:s.jsx(L,{variant:"contained",color:"primary",onClick:()=>W(),disabled:!a.passport,children:o("common.next")})})]})}},{label:o("lostPassport.receivePassport"),content:()=>{const t={receiverDid:a.user.did,passportId:a.passport,teamDid:w||window?.blocklet?.did};return s.jsx(D,{popup:!0,open:!0,hideCloseButton:!0,className:"connect",action:"lost-passport-issue",checkFn:x.get,checkTimeout:10*60*1e3,webWalletUrl:r,onSuccess:A,forceConnected:!1,locale:j,messages:{title:`${o("lostPassport.receiveDialog.title")}`,scan:o("lostPassport.receiveDialog.scan"),confirm:o("lostPassport.receiveDialog.confirm"),success:o("lostPassport.receiveDialog.success")},extraParams:t})}},{label:o("common.complete"),content:()=>(n===0&&c(3e3),s.jsxs(p,{sx:{textAlign:"center"},children:[s.jsx(p,{sx:{mb:3,color:"success.main"},children:s.jsx(Q,{style:{fontSize:60}})}),s.jsx(I,{component:"p",variant:"body1",className:"subheader",children:o("issuePassport.dialog.success")}),s.jsx(I,{component:"p",variant:"body2",color:"gray",children:v&&M()?o("issuePassport.dialog.autoClose",{seconds:Math.round(C/1e3)}):o("issuePassport.dialog.autoJump",{seconds:Math.round(C/1e3)})}),s.jsx(L,{style:{marginTop:40},variant:"contained",color:"primary",onClick:S,children:o("issuePassport.dialog.loginWithPassport")})]}))}];return s.jsx(je,{children:s.jsxs(p,{className:"stepper",children:[s.jsx(ue,{className:"stepper-progress",alternativeLabel:!0,activeStep:a.activeStep,children:N.map(({label:t})=>s.jsx(me,{children:s.jsx(fe,{slots:{stepIcon:be},children:t})},t))}),s.jsx(p,{className:"stepper-content",children:N[a.activeStep].content()}),!a.success&&s.jsx(p,{sx:{textAlign:"center",fontSize:12},children:s.jsx(q,{href:"/",sx:{color:"#4598FA",textDecoration:"none"},children:o("lostPassport.return")})})]})})}const je=E(te)`
|
|
37
37
|
padding-top: 46px;
|
|
38
38
|
padding-bottom: 46px;
|
|
39
39
|
height: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as a,u as D,j as e,T as k,bf as Q,K as i,s as U,b3 as X,o as l,p as P,k as M,d5 as Y,bl as ee,d as te,Z as re,C as ne,V as se,i as v,a as h,aH as T,b,d6 as oe,J as ie,by as ae,aD as le,d7 as me,G as C,H as R,l as ce,m as ue,A as de,bn as pe}from"./index-
|
|
1
|
+
import{r as a,u as D,j as e,T as k,bf as Q,K as i,s as U,b3 as X,o as l,p as P,k as M,d5 as Y,bl as ee,d as te,Z as re,C as ne,V as se,i as v,a as h,aH as T,b,d6 as oe,J as ie,by as ae,aD as le,d7 as me,G as C,H as R,l as ce,m as ue,A as de,bn as pe}from"./index-CyYCs6Na.js";import{u as fe,T as xe}from"./html-title-ZIT73gw4.js";import{T as ge}from"./traffic-D-uRzuea.js";import{H as he}from"./index-BE354x55.js";import{x as V}from"./index-DRYJ0xIl.js";import{C as ye,M as L}from"./memory-CoHOdYyC.js";import{C as ve}from"./CardContent-VIJU2wwZ.js";import{u as Ce}from"./useLocalStorage-BrmzkzdD.js";import{T as je,a as Ie}from"./ToggleButtonGroup-C_82EW2F.js";import"./iframe-BeX_RqP4.js";import"./ChevronLeft-DDZiF24z.js";import"./ChevronRight-iPKgmmla.js";import"./index-DBii9-f-.js";import"./typeof-QjJsDpFa.js";import"./base-chart-CQIo67AL.js";import"./index-DBPZHeTe.js";import"./AdapterDayjs-BJDMOH87.js";import"./useThemeProps-Chclx8ny.js";import"./CSSTransition-Cq_0t7dk.js";import"./visuallyHidden-Dan1xhjv.js";import"./FilterList-BGhEWkST.js";import"./emotion-cache.browser.esm-DcciVh-V.js";import"./index-_ylGel7X.js";import"./redux-DfszZyTl.js";import"./depsEqual-CDIkAeqx.js";import"./index-CNAqYYKs.js";import"./TableSearch-B1H-6-fg.js";import"./Search-edKoOPH1.js";import"./Clear-lc-87cdU.js";import"./MoreVert-DXy5wrMx.js";import"./getValidReactChildren-C2YiZOfP.js";const be=o=>a.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...o},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.08295 3.2C2.08295 2.58144 2.58439 2.08 3.20295 2.08H28.8029C29.4215 2.08 29.9229 2.58144 29.9229 3.2V13.44C29.9229 14.0586 29.4215 14.56 28.8029 14.56H3.20295C2.58439 14.56 2.08295 14.0586 2.08295 13.44V3.2ZM4.32295 4.32V12.32H27.6829V4.32H4.32295ZM2.08295 18.56C2.08295 17.9414 2.58439 17.44 3.20295 17.44H28.8029C29.4215 17.44 29.9229 17.9414 29.9229 18.56V28.8C29.9229 29.4186 29.4215 29.92 28.8029 29.92H3.20295C2.58439 29.92 2.08295 29.4186 2.08295 28.8V18.56ZM4.32295 19.68V27.68H27.6829V19.68H4.32295Z",fill:"currentColor"}),a.createElement("path",{d:"M8.96297 7.04001H7.68297C7.51323 7.04001 7.35044 7.10744 7.23042 7.22746C7.1104 7.34748 7.04297 7.51027 7.04297 7.68001V8.96001C7.04297 9.12975 7.1104 9.29253 7.23042 9.41256C7.35044 9.53258 7.51323 9.60001 7.68297 9.60001H8.96297C9.13271 9.60001 9.29549 9.53258 9.41552 9.41256C9.53554 9.29253 9.60297 9.12975 9.60297 8.96001V7.68001C9.60297 7.51027 9.53554 7.34748 9.41552 7.22746C9.29549 7.10744 9.13271 7.04001 8.96297 7.04001ZM8.96297 22.4H7.68297C7.51323 22.4 7.35044 22.4674 7.23042 22.5875C7.1104 22.7075 7.04297 22.8703 7.04297 23.04V24.32C7.04297 24.4897 7.1104 24.6525 7.23042 24.7726C7.35044 24.8926 7.51323 24.96 7.68297 24.96H8.96297C9.13271 24.96 9.29549 24.8926 9.41552 24.7726C9.53554 24.6525 9.60297 24.4897 9.60297 24.32V23.04C9.60297 22.8703 9.53554 22.7075 9.41552 22.5875C9.29549 22.4674 9.13271 22.4 8.96297 22.4ZM14.083 7.04001H12.803C12.6332 7.04001 12.4704 7.10744 12.3504 7.22746C12.2304 7.34748 12.163 7.51027 12.163 7.68001V8.96001C12.163 9.12975 12.2304 9.29253 12.3504 9.41256C12.4704 9.53258 12.6332 9.60001 12.803 9.60001H14.083C14.2527 9.60001 14.4155 9.53258 14.5355 9.41256C14.6555 9.29253 14.723 9.12975 14.723 8.96001V7.68001C14.723 7.51027 14.6555 7.34748 14.5355 7.22746C14.4155 7.10744 14.2527 7.04001 14.083 7.04001ZM14.083 22.4H12.803C12.6332 22.4 12.4704 22.4674 12.3504 22.5875C12.2304 22.7075 12.163 22.8703 12.163 23.04V24.32C12.163 24.4897 12.2304 24.6525 12.3504 24.7726C12.4704 24.8926 12.6332 24.96 12.803 24.96H14.083C14.2527 24.96 14.4155 24.8926 14.5355 24.7726C14.6555 24.6525 14.723 24.4897 14.723 24.32V23.04C14.723 22.8703 14.6555 22.7075 14.5355 22.5875C14.4155 22.4674 14.2527 22.4 14.083 22.4Z",fill:"currentColor"}));function Me(){const{api:o,info:s}=D();return e.jsx(ge,{client:o,did:s.did})}function $({style:o={},title:s=null,value:m=null,graph:c=null,description:p=null,empty:f=null}){return e.jsx(ke,{children:e.jsxs(ve,{style:{...o},children:[e.jsx(k,{sx:{color:"text.secondary",fontSize:14},children:s}),f&&Q.isValidElement(f)?e.jsx(i,{style:{height:150},sx:{color:"text.secondary",display:"flex",justifyContent:"center",alignItems:"center"},children:f}):e.jsxs(e.Fragment,{children:[e.jsx(k,{variant:"h5",component:"div",sx:{mt:1},children:m}),c,!!p&&e.jsx(i,{sx:{display:"flex",color:"text.secondary",fontSize:12,marginTop:3},children:p})]})]})})}$.propTypes={style:l.object,title:l.node,value:l.node,graph:l.node,description:l.any,empty:l.node};const ke=U(X)`
|
|
2
2
|
.card-content {
|
|
3
3
|
height: 150px;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aF as ce,j as e,hp as Zr,hq as Vr,bR as Wr,r as q,s as ye,K as A,f5 as Tt,t as H,eO as bt,a4 as le,C as Ee,bj as Xt,dL as Ur,o as T,hr as Kr,b3 as Qt,cB as Jr,cU as Gr,dq as Yr,T as Y,dH as ut,bo as ne,bF as jt,p as ue,hs as Xr,bG as _t,b as K,bh as ee,bB as re,H as F,aW as ie,V as ae,n as er,q as Qr,w as tr,ad as es,i as rr,gm as ts,ht as rs,au as ss,aV as G,U as Te,$ as Se,D as ns,X as is,v as X,Y as ht,hu as as,hv as os,eA as ls,eC as cs,F as _e,aH as J,gb as ds,d0 as Et,W as us,fn as sr,O as te,aR as It,hw as hs,hx as fs,be as ms,gs as Ie,f9 as be,aP as ge,aT as E,hy as Ye,hz as ft,P as W,z as ps,y as wt,bE as xe,aD as se,hA as Me,a2 as gs,hB as Xe,c8 as Re,eD as xs,hC as ys,dI as he,f as Oe,bA as mt,M as vs,cI as nr,bt as bs,hD as js,ba as _s,L as ws,cw as Be,aJ as We,hE as ks,R as Ss,bq as Cs,ag as Dt,a3 as ir,bk as Ue,hF as ar,b7 as Rs,gL as ke,fa as or,c_ as lr,B as Os,b6 as Lt,fc as As,fh as $s,G as Qe,J as Ps,by as Ts}from"./index-87RKuT5C.js";import{S as Es}from"./actions-kx-IWp3k.js";import{N as qt}from"./ChevronRight-8InGKmMS.js";import{T as He}from"./html-title-Dp-sqsn-.js";import{w as De,P as Is}from"./permission-SRhWeTXb.js";import{u as kt}from"./index-CCTRr7te.js";import{F as Ds,R as Ls,S as M,a as pt,s as qs,L as we,A as Ms,b as zs,c as Bs,d as Hs,B as Ns}from"./preference-CKq_K8v4.js";import{D as Fs}from"./Done-D7HN06J1.js";import{A as Zs,a as Mt}from"./Autocomplete-DBXlHxck.js";import{C as Vs,R as Ws,S as Us,P as Ks}from"./rotate-session-key-hCEg8oFb.js";import{u as oe}from"./blocklet-C0-c8dVN.js";import{C as cr}from"./click-to-copy-CGVo7y_H.js";import{u as Ke}from"./team-CWb9WqYD.js";import{v as dr}from"./index-29D5d56z.js";import{g as Js}from"./chain-fXxRiV2U.js";import{V as Gs,d as Ys}from"./status-DQ167_MQ.js";import{a as de,S as Ne,u as Xs}from"./switch-control-HQLhcuwU.js";import{u as ve,C as z,b as zt}from"./index.esm-rxbUJdm1.js";import{y as Qs}from"./index-Snc2Ei8N.js";import{I as en,J as tn,K as rn,L as sn}from"./index-qPcTPC8W.js";import{D as Bt}from"./Delete-Brb8t62i.js";import{A as Ht}from"./Add-DY1gS9Dz.js";import{H as Je}from"./index-EFWTbF8B.js";import{u as ur}from"./use-mobile-BmJGrK15.js";import{S as et}from"./simple-select-BVmpIZiu.js";import{C as nn}from"./CardContent-S1Olt54S.js";import{R as hr,a as fr}from"./url-evaluation-mq4H4jA_.js";import"./useLocalStorage-7RvuX-wT.js";import"./MoreVert-V2LiAaXF.js";import"./DeleteOutline-P1tPKlQL.js";import"./get-safe-url-DwUMajjg.js";import"./ButtonGroup-3fqwj5Ky.js";import"./getValidReactChildren-7B6f8iqP.js";import"./omit-Csc9rFvJ.js";import"./index-C-Jgy1MF.js";import"./edit.svg-CBK1UF-9.js";import"./ArrowDropDown-BA2tLXoO.js";import"./index-BkZRidRp.js";import"./iframe-Ca3kRbO-.js";import"./ListSubheader-BcTZxGIx.js";import"./visuallyHidden-Dan1xhjv.js";import"./ErrorOutline-DlSN54Ps.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./FilterList-DCiDc43y.js";import"./CSSTransition-hVfsLWm-.js";import"./emotion-cache.browser.esm-CZAf8Clc.js";import"./depsEqual-B4BFmwuI.js";import"./TableSearch-DRmWGhph.js";import"./Search-x2lb6Akd.js";import"./Clear-BFurvC8R.js";const mr=ce([e.jsx("path",{d:"M21 7.28V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-2.28c.59-.35 1-.98 1-1.72V9c0-.74-.41-1.37-1-1.72M20 9v6h-7V9zM5 19V5h14v2h-6c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h6v2z"},"0"),e.jsx("circle",{cx:"16",cy:"12",r:"1.5"},"1")]),an=ce([e.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),e.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),on=ce(e.jsx("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"})),ln=ce(e.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"})),cn=ce(e.jsx("path",{d:"M24 9v2h-6V9zM8 4C5.79 4 4 5.79 4 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4m4.51-8.95C13.43 5.11 14 6.49 14 8s-.57 2.89-1.49 3.95C14.47 11.7 16 10.04 16 8s-1.53-3.7-3.49-3.95m4.02 9.78C17.42 14.66 18 15.7 18 17v3h2v-3c0-1.45-1.59-2.51-3.47-3.17"})),dn=ce(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"})),un=ce(e.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),hn=ce(e.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),gt=ce(e.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"})),fn=ce([e.jsx("path",{d:"M18 11c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.79-1.13-1.26-2.51-1.26-4 0-3.87 3.13-7 7-7M8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9z"},"0"),e.jsx("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5m0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32"},"1")]),mn=ce(e.jsx("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"})),pn=ce(e.jsx("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z"})),pr=ce(e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23z"})),gn=ce(e.jsx("path",{d:"M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1M3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1m10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1M7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1m14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1m-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1"})),xn=ce(e.jsx("path",{d:"M16 13c3.09-2.81 6-5.44 6-7.7C22 3.45 20.55 2 18.7 2c-1.04 0-2.05.49-2.7 1.25C15.34 2.49 14.34 2 13.3 2 11.45 2 10 3.45 10 5.3c0 2.26 2.91 4.89 6 7.7m-2.7-9c.44 0 .89.21 1.18.55L16 6.34l1.52-1.79c.29-.34.74-.55 1.18-.55.74 0 1.3.56 1.3 1.3 0 1.12-2.04 3.17-4 4.99-1.96-1.82-4-3.88-4-4.99 0-.74.56-1.3 1.3-1.3M19 16h-2c0-1.2-.75-2.28-1.87-2.7L8.97 11H1v11h6v-1.44l7 1.94 8-2.5v-1c0-1.66-1.34-3-3-3M3 20v-7h2v7zm10.97.41L7 18.48V13h1.61l5.82 2.17c.34.13.57.46.57.83 0 0-1.99-.05-2.3-.15l-2.38-.79-.63 1.9 2.38.79c.51.17 1.04.26 1.58.26H19c.39 0 .74.23.9.56z"}));var yn=Array.prototype,Nt=yn.splice;function vn(v,R,C,O){var _=Vr,j=-1,p=R.length,i=v;for(v===R&&(R=Zr(R));++j<p;)for(var m=0,f=R[j],u=f;(m=_(i,u,m))>-1;)i!==v&&Nt.call(i,m,1),Nt.call(v,m,1);return v}function bn(v,R){return v&&v.length&&R&&R.length?vn(v,R):v}var jn=Wr(bn);const _n={width:24,height:24,body:'<path fill="currentColor" d="M4.975 15q-.425 0-.7-.288T4 14q0-.425.288-.713T5 13h14.025q.425 0 .7.288T20 14q0 .425-.288.713T19 15H4.975Zm0 4q-.425 0-.7-.288T4 18q0-.425.288-.713T5 17h14.025q.425 0 .7.288T20 18q0 .425-.288.713T19 19H4.975Zm0-8q-.425 0-.7-.288T4 10q0-.425.288-.713T5 9h14.025q.425 0 .7.288T20 10q0 .425-.288.713T19 11H4.975Zm0-4q-.425 0-.7-.288T4 6q0-.425.288-.713T5 5h14.025q.425 0 .7.288T20 6q0 .425-.288.713T19 7H4.975Z"/>'};function gr({label:v="",disabled:R=!1,required:C=!1,initialValue:O="",onChange:_=()=>{},style:j={},onSubmit:p=()=>{},triggers:i=[],options:m=[],formatterBeforeSubmit:f=n=>n.join(","),helperText:u="",placeholder:t="",renderImage:l=()=>null,renderLabel:o=()=>"",filterKeys:s=["name"],noEmpty:r=!1,...c}){const[n,a]=q.useState(!1),[h,x]=q.useState(!1),[g,S]=q.useState(""),k=q.useRef(null),[d,y]=q.useState(O),[b,w]=q.useState(d),$=q.useMemo(()=>{if(!m)return{};const N={};return m.forEach(D=>{N[D.code]=D}),N},[m]),P=()=>{if(!m)return[];if(!g)return m.map(D=>D.code);const N=new RegExp(g.toLowerCase());return m.filter(D=>{for(let B=0;B<s.length;B++){const V=s[B];if(N.test(D[V]?.toLowerCase()))return!0}return!1}).map(D=>D.code)},I=async()=>{x(!0);try{await p(typeof f=="function"?f(b):b)===!1?w(d):r&&!b.length?(w(O),y(O)):(w(b),y(b))}catch{w(d)}finally{x(!1),a(!1)}},L=(N,D)=>{if(!Array.isArray(D)){w([]),_([]);return}const B=D.filter(V=>$[V]);if(!B.length){w([]),_([]);return}w(B),_(B)},Z=N=>{N.stopPropagation(),a(!0),setTimeout(()=>{if(k.current){const D=k.current.querySelector("input");D&&D.focus()}},500)},U=n?e.jsx(Zs,{ref:k,options:m,value:b,onChange:L,inputValue:g,onInputChange:(N,D)=>{S(D)},fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",filterOptions:P,getOptionLabel:N=>$[N]?.name,renderInput:N=>e.jsx(H,{...N,label:"",placeholder:t}),renderOption:(N,D)=>{const B=b.indexOf(D)!==-1;return q.createElement(wn,{component:"li",...N,key:D},l($[D]||{}),e.jsx(A,{sx:{"& > img":{mr:2,flexShrink:0}},style:{flex:1,fontWeight:B?"700":"normal"},children:o(D,$[D])||$[D]?.name}),e.jsx(A,{component:Tt,sx:{opacity:.5,width:18,height:18},style:{visibility:B?"visible":"hidden"}}))},...c,slots:{popper:kn}}):e.jsx(A,{className:"form-item-input slot",onClick:Z,style:{whiteSpace:"pre-wrap",cursor:"text"},sx:{px:1},children:b.filter(N=>m.some(D=>D.code===N)).map(N=>e.jsx(bt,{label:m.find(D=>D.code===N).name,style:{marginRight:8},size:"small"},N))});return e.jsx(Ds,{className:"form",style:j,children:e.jsxs(A,{className:"form-item",children:[e.jsxs(A,{className:"form-item-label",children:[v,C&&e.jsx(Ls,{})]}),e.jsxs(A,{className:"form-item-body",children:[e.jsx(A,{className:"form-item-input",children:U}),n?e.jsx(A,{className:"form-item-action",children:e.jsxs(e.Fragment,{children:[e.jsx(le,{"data-cy":"schema-form-item-confirm",onClick:I,disabled:R||h,size:"large",children:h?e.jsx(Ee,{size:24}):e.jsx(Fs,{})}),e.jsx(le,{"data-cy":"schema-form-item-cancel",onClick:()=>{w(d),a(!1)},disabled:R||h,size:"large",children:e.jsx(Tt,{})})]})}):null]}),n&&u&&e.jsx(Xt,{children:u})]})})}gr.propTypes={style:T.object,onSubmit:T.func,onChange:T.func,label:T.string,initialValue:T.string,required:T.bool,disabled:T.bool,triggers:T.array,options:T.array,helperText:T.string,formatterBeforeSubmit:T.func,placeholder:T.string,renderImage:T.func,filterKeys:T.arrayOf(T.string),noEmpty:T.bool,renderLabel:T.func};const wn=ye.div`
|
|
1
|
+
import{aF as ce,j as e,hp as Zr,hq as Vr,bR as Wr,r as q,s as ye,K as A,f5 as Tt,t as H,eO as bt,a4 as le,C as Ee,bj as Xt,dL as Ur,o as T,hr as Kr,b3 as Qt,cB as Jr,cU as Gr,dq as Yr,T as Y,dH as ut,bo as ne,bF as jt,p as ue,hs as Xr,bG as _t,b as K,bh as ee,bB as re,H as F,aW as ie,V as ae,n as er,q as Qr,w as tr,ad as es,i as rr,gm as ts,ht as rs,au as ss,aV as G,U as Te,$ as Se,D as ns,X as is,v as X,Y as ht,hu as as,hv as os,eA as ls,eC as cs,F as _e,aH as J,gb as ds,d0 as Et,W as us,fn as sr,O as te,aR as It,hw as hs,hx as fs,be as ms,gs as Ie,f9 as be,aP as ge,aT as E,hy as Ye,hz as ft,P as W,z as ps,y as wt,bE as xe,aD as se,hA as Me,a2 as gs,hB as Xe,c8 as Re,eD as xs,hC as ys,dI as he,f as Oe,bA as mt,M as vs,cI as nr,bt as bs,hD as js,ba as _s,L as ws,cw as Be,aJ as We,hE as ks,R as Ss,bq as Cs,ag as Dt,a3 as ir,bk as Ue,hF as ar,b7 as Rs,gL as ke,fa as or,c_ as lr,B as Os,b6 as Lt,fc as As,fh as $s,G as Qe,J as Ps,by as Ts}from"./index-CyYCs6Na.js";import{S as Es}from"./actions-D6D1nZGR.js";import{N as qt}from"./ChevronRight-iPKgmmla.js";import{T as He}from"./html-title-ZIT73gw4.js";import{w as De,P as Is}from"./permission-3nsQS0Bo.js";import{u as kt}from"./index-C7FK1qLV.js";import{F as Ds,R as Ls,S as M,a as pt,s as qs,L as we,A as Ms,b as zs,c as Bs,d as Hs,B as Ns}from"./preference-DvLBp1_G.js";import{D as Fs}from"./Done-KOQXZtlD.js";import{A as Zs,a as Mt}from"./Autocomplete-DTfKu22k.js";import{C as Vs,R as Ws,S as Us,P as Ks}from"./rotate-session-key-D_IS-WkQ.js";import{u as oe}from"./blocklet-c-fcHcMv.js";import{C as cr}from"./click-to-copy-CUoB1qVU.js";import{u as Ke}from"./team-BgfMEJL2.js";import{v as dr}from"./index-Cihue4u0.js";import{g as Js}from"./chain-DggQDLgW.js";import{V as Gs,d as Ys}from"./status-Cj3yOznG.js";import{a as de,S as Ne,u as Xs}from"./switch-control-DBzGlbkg.js";import{u as ve,C as z,b as zt}from"./index.esm-XgmtgzU6.js";import{y as Qs}from"./index-CNAqYYKs.js";import{I as en,J as tn,K as rn,L as sn}from"./index-_ylGel7X.js";import{D as Bt}from"./Delete-Depf4F2y.js";import{A as Ht}from"./Add-CwfzHL2f.js";import{H as Je}from"./index-BE354x55.js";import{u as ur}from"./use-mobile-DW1xADqf.js";import{S as et}from"./simple-select-DTAtG4Ai.js";import{C as nn}from"./CardContent-VIJU2wwZ.js";import{R as hr,a as fr}from"./url-evaluation-B3eRUARy.js";import"./useLocalStorage-BrmzkzdD.js";import"./MoreVert-DXy5wrMx.js";import"./DeleteOutline-CCoXF09b.js";import"./get-safe-url-DMzSWw8A.js";import"./ButtonGroup-CE8Yme-Z.js";import"./getValidReactChildren-C2YiZOfP.js";import"./omit-DbDS-rZP.js";import"./index-D8iAEh5P.js";import"./edit.svg-BNlNDOgE.js";import"./ArrowDropDown-BRCFiDo5.js";import"./index-tUPbUUvJ.js";import"./iframe-BeX_RqP4.js";import"./ListSubheader-DzDc9oA3.js";import"./visuallyHidden-Dan1xhjv.js";import"./ErrorOutline-B7Ps-w5c.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./FilterList-BGhEWkST.js";import"./CSSTransition-Cq_0t7dk.js";import"./emotion-cache.browser.esm-DcciVh-V.js";import"./depsEqual-CDIkAeqx.js";import"./TableSearch-B1H-6-fg.js";import"./Search-edKoOPH1.js";import"./Clear-lc-87cdU.js";const mr=ce([e.jsx("path",{d:"M21 7.28V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-2.28c.59-.35 1-.98 1-1.72V9c0-.74-.41-1.37-1-1.72M20 9v6h-7V9zM5 19V5h14v2h-6c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h6v2z"},"0"),e.jsx("circle",{cx:"16",cy:"12",r:"1.5"},"1")]),an=ce([e.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),e.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),on=ce(e.jsx("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"})),ln=ce(e.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"})),cn=ce(e.jsx("path",{d:"M24 9v2h-6V9zM8 4C5.79 4 4 5.79 4 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4m4.51-8.95C13.43 5.11 14 6.49 14 8s-.57 2.89-1.49 3.95C14.47 11.7 16 10.04 16 8s-1.53-3.7-3.49-3.95m4.02 9.78C17.42 14.66 18 15.7 18 17v3h2v-3c0-1.45-1.59-2.51-3.47-3.17"})),dn=ce(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"})),un=ce(e.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),hn=ce(e.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),gt=ce(e.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"})),fn=ce([e.jsx("path",{d:"M18 11c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.79-1.13-1.26-2.51-1.26-4 0-3.87 3.13-7 7-7M8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9z"},"0"),e.jsx("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5m0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32"},"1")]),mn=ce(e.jsx("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"})),pn=ce(e.jsx("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z"})),pr=ce(e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23z"})),gn=ce(e.jsx("path",{d:"M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1M3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1m10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1M7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1m14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1m-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1"})),xn=ce(e.jsx("path",{d:"M16 13c3.09-2.81 6-5.44 6-7.7C22 3.45 20.55 2 18.7 2c-1.04 0-2.05.49-2.7 1.25C15.34 2.49 14.34 2 13.3 2 11.45 2 10 3.45 10 5.3c0 2.26 2.91 4.89 6 7.7m-2.7-9c.44 0 .89.21 1.18.55L16 6.34l1.52-1.79c.29-.34.74-.55 1.18-.55.74 0 1.3.56 1.3 1.3 0 1.12-2.04 3.17-4 4.99-1.96-1.82-4-3.88-4-4.99 0-.74.56-1.3 1.3-1.3M19 16h-2c0-1.2-.75-2.28-1.87-2.7L8.97 11H1v11h6v-1.44l7 1.94 8-2.5v-1c0-1.66-1.34-3-3-3M3 20v-7h2v7zm10.97.41L7 18.48V13h1.61l5.82 2.17c.34.13.57.46.57.83 0 0-1.99-.05-2.3-.15l-2.38-.79-.63 1.9 2.38.79c.51.17 1.04.26 1.58.26H19c.39 0 .74.23.9.56z"}));var yn=Array.prototype,Nt=yn.splice;function vn(v,R,C,O){var _=Vr,j=-1,p=R.length,i=v;for(v===R&&(R=Zr(R));++j<p;)for(var m=0,f=R[j],u=f;(m=_(i,u,m))>-1;)i!==v&&Nt.call(i,m,1),Nt.call(v,m,1);return v}function bn(v,R){return v&&v.length&&R&&R.length?vn(v,R):v}var jn=Wr(bn);const _n={width:24,height:24,body:'<path fill="currentColor" d="M4.975 15q-.425 0-.7-.288T4 14q0-.425.288-.713T5 13h14.025q.425 0 .7.288T20 14q0 .425-.288.713T19 15H4.975Zm0 4q-.425 0-.7-.288T4 18q0-.425.288-.713T5 17h14.025q.425 0 .7.288T20 18q0 .425-.288.713T19 19H4.975Zm0-8q-.425 0-.7-.288T4 10q0-.425.288-.713T5 9h14.025q.425 0 .7.288T20 10q0 .425-.288.713T19 11H4.975Zm0-4q-.425 0-.7-.288T4 6q0-.425.288-.713T5 5h14.025q.425 0 .7.288T20 6q0 .425-.288.713T19 7H4.975Z"/>'};function gr({label:v="",disabled:R=!1,required:C=!1,initialValue:O="",onChange:_=()=>{},style:j={},onSubmit:p=()=>{},triggers:i=[],options:m=[],formatterBeforeSubmit:f=n=>n.join(","),helperText:u="",placeholder:t="",renderImage:l=()=>null,renderLabel:o=()=>"",filterKeys:s=["name"],noEmpty:r=!1,...c}){const[n,a]=q.useState(!1),[h,x]=q.useState(!1),[g,S]=q.useState(""),k=q.useRef(null),[d,y]=q.useState(O),[b,w]=q.useState(d),$=q.useMemo(()=>{if(!m)return{};const N={};return m.forEach(D=>{N[D.code]=D}),N},[m]),P=()=>{if(!m)return[];if(!g)return m.map(D=>D.code);const N=new RegExp(g.toLowerCase());return m.filter(D=>{for(let B=0;B<s.length;B++){const V=s[B];if(N.test(D[V]?.toLowerCase()))return!0}return!1}).map(D=>D.code)},I=async()=>{x(!0);try{await p(typeof f=="function"?f(b):b)===!1?w(d):r&&!b.length?(w(O),y(O)):(w(b),y(b))}catch{w(d)}finally{x(!1),a(!1)}},L=(N,D)=>{if(!Array.isArray(D)){w([]),_([]);return}const B=D.filter(V=>$[V]);if(!B.length){w([]),_([]);return}w(B),_(B)},Z=N=>{N.stopPropagation(),a(!0),setTimeout(()=>{if(k.current){const D=k.current.querySelector("input");D&&D.focus()}},500)},U=n?e.jsx(Zs,{ref:k,options:m,value:b,onChange:L,inputValue:g,onInputChange:(N,D)=>{S(D)},fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",filterOptions:P,getOptionLabel:N=>$[N]?.name,renderInput:N=>e.jsx(H,{...N,label:"",placeholder:t}),renderOption:(N,D)=>{const B=b.indexOf(D)!==-1;return q.createElement(wn,{component:"li",...N,key:D},l($[D]||{}),e.jsx(A,{sx:{"& > img":{mr:2,flexShrink:0}},style:{flex:1,fontWeight:B?"700":"normal"},children:o(D,$[D])||$[D]?.name}),e.jsx(A,{component:Tt,sx:{opacity:.5,width:18,height:18},style:{visibility:B?"visible":"hidden"}}))},...c,slots:{popper:kn}}):e.jsx(A,{className:"form-item-input slot",onClick:Z,style:{whiteSpace:"pre-wrap",cursor:"text"},sx:{px:1},children:b.filter(N=>m.some(D=>D.code===N)).map(N=>e.jsx(bt,{label:m.find(D=>D.code===N).name,style:{marginRight:8},size:"small"},N))});return e.jsx(Ds,{className:"form",style:j,children:e.jsxs(A,{className:"form-item",children:[e.jsxs(A,{className:"form-item-label",children:[v,C&&e.jsx(Ls,{})]}),e.jsxs(A,{className:"form-item-body",children:[e.jsx(A,{className:"form-item-input",children:U}),n?e.jsx(A,{className:"form-item-action",children:e.jsxs(e.Fragment,{children:[e.jsx(le,{"data-cy":"schema-form-item-confirm",onClick:I,disabled:R||h,size:"large",children:h?e.jsx(Ee,{size:24}):e.jsx(Fs,{})}),e.jsx(le,{"data-cy":"schema-form-item-cancel",onClick:()=>{w(d),a(!1)},disabled:R||h,size:"large",children:e.jsx(Tt,{})})]})}):null]}),n&&u&&e.jsx(Xt,{children:u})]})})}gr.propTypes={style:T.object,onSubmit:T.func,onChange:T.func,label:T.string,initialValue:T.string,required:T.bool,disabled:T.bool,triggers:T.array,options:T.array,helperText:T.string,formatterBeforeSubmit:T.func,placeholder:T.string,renderImage:T.func,filterKeys:T.arrayOf(T.string),noEmpty:T.bool,renderLabel:T.func};const wn=ye.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
align-items: center;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as g,bn as v,u as y,j as r,P as f,S as x,R as h}from"./index-
|
|
1
|
+
import{A as g,bn as v,u as y,j as r,P as f,S as x,R as h}from"./index-CyYCs6Na.js";import{L as S,D as j}from"./download-Z-lPT0_Q.js";import{u as L}from"./useLocalStorage-BrmzkzdD.js";import"./ButtonGroup-CE8Yme-Z.js";import"./getValidReactChildren-C2YiZOfP.js";function I(){const c=g(),[s,i]=L("server-logs-filter",{name:"abtnode",type:{abtnode:"error"}}),{name:t=s.name}=v(),{info:l}=y(),n=l.routing.provider,a=[{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(n){const e=`Service Gateway(${n})`;a.push({id:`service-gateway-${n}`,name:e,types:["error","access","security"]})}const d=e=>{i({...s,name:e.target.value}),c(`/logs/${e.target.value}`)},m=r.jsx(f,{sx:{minWidth:240},children:r.jsx(x,{value:t,onChange:d,size:"small",children:a.map(e=>r.jsx(h,{value:e.id,children:e.name},e.id))})}),o=a.find(e=>e.id===t)||a[0],p=o.types.indexOf(s.type[t]||"error"),u=e=>{i({name:t,type:{...s.type,[t]:e}})};return r.jsx(S,{name:o.name,logId:o.id,types:o.types,prepend:m,postpend:r.jsx(j,{id:l.did,name:"blocklet-server"}),defaultTypeIndex:p,onTypeChange:u},o.id)}export{I as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aF as G,j as e,r as b,aW as V,cB as Le,T as N,O as K,o as y,V as F,bf as ie,b9 as je,K as g,N as oe,W as J,eO as ve,fJ as be,bE as Nt,bv as Lt,bw as Bt,bx as Mt,aO as Be,aP as $t,$ as q,s as W,bo as A,cw as le,C as O,X as Ke,au as Ot,dm as Et,bg as Ze,bh as _t,aH as U,H as z,bF as X,gw as Ht,gx as qt,i as Wt,v as B,b as Ut,a3 as Q,t as E,R as ce,a4 as H,aS as ae,Y as ne,F as Je,ad as Ce,be as Qe,gy as Vt,q as Gt,fn as Yt,Q as Xe,ff as et,bj as tt,g as Kt,D as Zt,ca as st,aV as Jt,U as Qt,bB as Xt,E as es,gz as Me,fH as ts,gA as ss,S as rs}from"./index-87RKuT5C.js";import{H as Se,g as ns}from"./index-EFWTbF8B.js";import{T as as}from"./html-title-Dp-sqsn-.js";import{u as M}from"./team-CWb9WqYD.js";import{U as os}from"./ua-parser-DP5omx3I.js";import{u as is}from"./use-mobile-BmJGrK15.js";import{v as se}from"./index-CS7M20xU.js";import{w as Y,P as rt}from"./permission-SRhWeTXb.js";import{C as ls}from"./Google-D_lyR__A.js";import{u as cs}from"./blocklet-C0-c8dVN.js";import{A as we}from"./Add-DY1gS9Dz.js";import{y as Te}from"./index-Snc2Ei8N.js";import{e as pe}from"./edit.svg-CBK1UF-9.js";import{M as nt}from"./TableSearch-DRmWGhph.js";import{L as at}from"./list-header-DMsNH71I.js";import{g as ds}from"./chain-fXxRiV2U.js";import{T as ot,a as re}from"./ToggleButtonGroup-DTZuFSiT.js";import{C as ps}from"./lock.svg-Cs99iZpo.js";const us=G(e.jsx("path",{d:"m17.6 9.48 1.84-3.18c.16-.31.04-.69-.26-.85-.29-.15-.65-.06-.83.22l-1.88 3.24c-2.86-1.21-6.08-1.21-8.94 0L5.65 5.67c-.19-.29-.58-.38-.87-.2-.28.18-.37.54-.22.83L6.4 9.48C3.3 11.25 1.28 14.44 1 18h22c-.28-3.56-2.3-6.75-5.4-8.52M7 15.25c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m10 0c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25"})),$e=G(e.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})),it=G(e.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"})),me=G(e.jsx("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6v2H8v2h8v-2h-2v-2h6c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"})),ms=G(e.jsx("path",{d:"M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2zM4 6h16v10H4z"})),fs=G(e.jsx("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1m-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5-4H7V4h9z"})),xs=G(e.jsx("path",{d:"M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2m-2 14H5V6h14z"})),fe=G(e.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-5 14H4v-4h11zm0-5H4V9h11zm5 5h-4V9h4z"})),ue=s=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s},b.createElement("path",{d:"M8.4375 4.3125H8.25C8.35313 4.3125 8.4375 4.22812 8.4375 4.125V4.3125H15.5625V4.125C15.5625 4.22812 15.6469 4.3125 15.75 4.3125H15.5625V6H17.25V4.125C17.25 3.29766 16.5773 2.625 15.75 2.625H8.25C7.42266 2.625 6.75 3.29766 6.75 4.125V6H8.4375V4.3125ZM20.25 6H3.75C3.33516 6 3 6.33516 3 6.75V7.5C3 7.60313 3.08437 7.6875 3.1875 7.6875H4.60312L5.18203 19.9453C5.21953 20.7445 5.88047 21.375 6.67969 21.375H17.3203C18.1219 21.375 18.7805 20.7469 18.818 19.9453L19.3969 7.6875H20.8125C20.9156 7.6875 21 7.60313 21 7.5V6.75C21 6.33516 20.6648 6 20.25 6ZM17.1398 19.6875H6.86016L6.29297 7.6875H17.707L17.1398 19.6875Z"}));function hs(s){return!s||typeof s!="string"?"break-all":s.includes(" ")?"break-word":"break-all"}function lt({logo:s="",name:n="",description:l="",size:p=40,variant:c="rounded",sx:u={},className:f="",logoName:a="",tooltip:d=null}){const r={width:p,height:p,...u},o=typeof n=="string"?n:s,i=e.jsxs(V,{direction:"row",spacing:1,className:`info-card-wrapper ${f}`,sx:{alignItems:"center",cursor:d?"pointer":"default"},children:[s?e.jsx(Le,{src:s,alt:a??o,variant:c,sx:r}):e.jsx(Le,{variant:c,sx:r,children:o?.slice(0,1)}),e.jsxs(V,{direction:"column",sx:{alignItems:"flex-start",justifyContent:"space-around",wordBreak:hs(n),minWidth:{xs:100,sm:140}},children:[e.jsx(N,{variant:"body1",component:"div",sx:{color:"text.primary"},children:n}),l&&e.jsx(N,{variant:"subtitle1",sx:{color:"text.secondary"},children:l})]})]});return d?e.jsx(K,{title:d,placement:"top-start",slotProps:{tooltip:{sx:{bgcolor:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff",color:t=>t.palette.mode==="dark"?"#ffffff":t.palette.text.primary,boxShadow:"0 2px 10px rgba(0, 0, 0, 0.15)",borderRadius:2,padding:"10px 16px",fontSize:14,maxWidth:400,minWidth:240,wordBreak:"break-word",border:t=>t.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0","& .MuiTooltip-arrow":{color:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff","&::before":{border:t=>t.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0",backgroundColor:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff"}}}}},children:i}):i}lt.propTypes={logo:y.string,name:y.oneOfType([y.string,y.node]).isRequired,description:y.oneOfType([y.string,y.node]),size:y.oneOfType([y.number,y.string]),variant:y.oneOf(["square","rounded","circular"]),sx:y.object,className:y.string,logoName:y.string,tooltip:y.oneOfType([y.string,y.node])};function gs(s){try{if(!s.trim())return{device:{icon:e.jsx(me,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(fe,{fontSize:"small"}),text:"Unknown Browser"}};const l=new os(s).getResult();let p="";const c=s.split(/\s+/).find(d=>d.startsWith("arcwallet"));if(c){const d=c.split("/");d.length>1&&Be.coerce(d[1])&&(p=Be.coerce(d[1]).version)}const u=(()=>{const{type:d="",model:r=""}=l.device;return d==="mobile"?{icon:e.jsx(fs,{fontSize:"small"}),text:r||"Mobile Device"}:d==="tablet"?{icon:e.jsx(xs,{fontSize:"small"}),text:r||"Tablet"}:{icon:e.jsx(ms,{fontSize:"small"}),text:r||"Desktop"}})(),f=(()=>{const{name:d="",version:r=""}=l.os;return d.toLowerCase().includes("mac")?{icon:e.jsx($e,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("ios")?{icon:e.jsx($e,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("android")?{icon:e.jsx(us,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("windows")?{icon:e.jsx(me,{fontSize:"small"}),text:`${d} ${r}`}:{icon:null,text:d?`${d} ${r}`:"Unknown OS"}})(),a=(()=>{const{name:d="",version:r=""}=l.browser;return{icon:e.jsx(fe,{fontSize:"small"}),text:d?`${d} ${r}`:"Unknown Browser"}})();return{device:u,os:f,browser:a,...p?{walletVersion:{icon:null,text:p}}:{}}}catch(n){return console.error("Error parsing user agent:",n),{device:{icon:e.jsx(me,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(fe,{fontSize:"small"}),text:"Unknown Browser"}}}}function ct({ua:s}){const n=gs(s);return e.jsx(V,{spacing:1,children:Object.entries(n).map(([l,{icon:p,text:c}])=>e.jsxs(g,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(g,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:p}),e.jsx(N,{variant:"body2",sx:{display:"flex"},children:c})]},l))})}ct.propTypes={ua:y.string.isRequired};const dt=()=>{const{t:s}=F(),n={$all:s("common.all"),owner:"Owner",admin:"Admin",member:"Member",guest:"Guest"};return{SYSTEM_ROLES:n,formatRoleName:p=>{const c=(p||"").toLowerCase();return c.startsWith("$")?n[c]||c.slice(1):n[c]||c}}},ys=(s,n=!1)=>{const l=n?1:.6;switch(s){case"owner":return`rgba(232, 222, 255, ${l})`;case"admin":return`rgba(227, 242, 253, ${l})`;case"member":return`rgba(232, 245, 233, ${l})`;case"guest":return`rgba(245, 245, 245, ${l})`;default:return`rgba(245, 245, 245, ${l})`}},js=je(ve)(({role:s})=>({backgroundColor:ys(s.toLowerCase()),color:"#000000"})),vs=s=>{switch(s){case"valid":return n=>n.palette.success.light;case"expired":return n=>n.palette.text.disabled;case"revoked":return n=>n.palette.error.light;default:return n=>n.palette.warning.light}},bs=je(ve)(({theme:s,status:n})=>({backgroundColor:vs(n)(s),color:"#FFFFFF"}));function pt({did:s}){return e.jsx(J,{size:14,responsive:!1,compact:!0,copyable:!1,did:s})}pt.propTypes={did:y.string.isRequired};function ut({timestamp:s,locale:n}){return e.jsx(g,{sx:{minWidth:"100px"},children:e.jsx(oe,{value:s,locale:n})})}ut.propTypes={timestamp:y.number.isRequired,locale:y.string.isRequired};function mt({name:s="",role:n}){const{formatRoleName:l}=dt();return e.jsx(js,{label:l(s||n),size:"small",role:s||n,sx:{borderRadius:1}})}mt.propTypes={role:y.string.isRequired,name:y.string};function ft({status:s}){const{t:n}=F();return e.jsx(bs,{label:n(`team.passport.statusMap.${s}`),size:"small",status:s,sx:{borderRadius:1}})}ft.propTypes={status:y.string.isRequired};function xt({source:s}){const{t:n}=F();return s?n(`team.passport.sourceMaps.${s}`):"-"}xt.propTypes={source:y.string.isRequired};function ht({user:s,size:n="default",tooltip:l=!1,inService:p=!1}){const{teamDid:c}=M(),u=ie.useMemo(()=>be(s.avatar,c,p),[s.avatar,c,p]),f=ie.useMemo(()=>e.jsx(J,{did:s?.did,compact:!0,responsive:!1,sx:{whiteSpace:"nowrap"},size:12}),[s?.did]),a=Nt(()=>({...s,avatar:u}),[s,u]);return n==="small"?e.jsx(lt,{variant:"circular",logo:u,name:e.jsx(N,{sx:{maxWidth:320,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},className:"customer-link-name",children:s.fullName||s.email}),...n==="small"?{tooltip:l?e.jsx(J,{did:s?.did}):!1,size:24}:{description:f,size:36}}):e.jsx(Lt,{user:a,avatarSize:n==="small"?24:36,cardType:Mt.Detailed,infoType:Bt.Minimal,sx:{padding:0,border:"none"},showDid:!0,didProps:{compact:!0,responsive:!1},showHoverCard:!1})}ht.propTypes={user:y.object.isRequired,size:y.string,tooltip:y.bool,inService:y.bool};const Cs=ie.memo(ht),Ss=s=>e.jsx(pt,{did:s}),Ie=(s,n)=>e.jsx(mt,{name:s,role:n}),Re=s=>e.jsx(ft,{status:s}),gt=(s,n)=>e.jsx(ut,{timestamp:s,locale:n}),de=s=>e.jsx(xt,{source:s}),De=(s,n=!1)=>e.jsx(Cs,{user:s,inService:n}),ws=s=>e.jsx(ct,{ua:s}),Oe="info";function yt({createPassportSvg:s,passport:n,onCancel:l,onSwitchPassport:p=()=>{}}){const{t:c}=F(),u=$t({tab:Oe}),f={info:{label:c("common.basicInfo"),value:Oe,component:()=>e.jsx(jt,{passport:n,createPassportSvg:s})},logs:{label:c("common.logs"),value:"logs",component:()=>e.jsx(Ct,{passport:n})},related:{label:c("team.passport.related"),value:"related",component:()=>e.jsx(St,{passport:n,onSwitchPassport:p})}},a=Object.values(f).map(({label:o,value:i})=>({label:o,value:i})).filter(o=>o.value==="related"?n.parentDid:!0),d=f[u.tab]||f.info,r=o=>{u.tab=o};return e.jsx(q,{title:c("common.passport"),onClose:l,open:!0,PaperProps:{style:{maxWidth:800,minHeight:"80vh"}},fullWidth:!0,children:e.jsxs(Ts,{children:[e.jsx(g,{className:"tabs",children:e.jsx(as,{tabs:a,current:u.tab,onChange:r,scrollButtons:"auto"})}),e.jsx(g,{className:"body",children:e.jsx(d.component,{})})]})})}yt.propTypes={createPassportSvg:y.func.isRequired,passport:y.object.isRequired,onCancel:y.func.isRequired,onSwitchPassport:y.func};const Ts=W(g)`
|
|
1
|
+
import{aF as G,j as e,r as b,aW as V,cB as Le,T as N,O as K,o as y,V as F,bf as ie,b9 as je,K as g,N as oe,W as J,eO as ve,fJ as be,bE as Nt,bv as Lt,bw as Bt,bx as Mt,aO as Be,aP as $t,$ as q,s as W,bo as A,cw as le,C as O,X as Ke,au as Ot,dm as Et,bg as Ze,bh as _t,aH as U,H as z,bF as X,gw as Ht,gx as qt,i as Wt,v as B,b as Ut,a3 as Q,t as E,R as ce,a4 as H,aS as ae,Y as ne,F as Je,ad as Ce,be as Qe,gy as Vt,q as Gt,fn as Yt,Q as Xe,ff as et,bj as tt,g as Kt,D as Zt,ca as st,aV as Jt,U as Qt,bB as Xt,E as es,gz as Me,fH as ts,gA as ss,S as rs}from"./index-CyYCs6Na.js";import{H as Se,g as ns}from"./index-BE354x55.js";import{T as as}from"./html-title-ZIT73gw4.js";import{u as M}from"./team-BgfMEJL2.js";import{U as os}from"./ua-parser-DP5omx3I.js";import{u as is}from"./use-mobile-DW1xADqf.js";import{v as se}from"./index-Dgm3J-5y.js";import{w as Y,P as rt}from"./permission-3nsQS0Bo.js";import{C as ls}from"./Google-B-6SbnBW.js";import{u as cs}from"./blocklet-c-fcHcMv.js";import{A as we}from"./Add-CwfzHL2f.js";import{y as Te}from"./index-CNAqYYKs.js";import{e as pe}from"./edit.svg-BNlNDOgE.js";import{M as nt}from"./TableSearch-B1H-6-fg.js";import{L as at}from"./list-header-C9_FZEk7.js";import{g as ds}from"./chain-DggQDLgW.js";import{T as ot,a as re}from"./ToggleButtonGroup-C_82EW2F.js";import{C as ps}from"./lock.svg-tfWudiuy.js";const us=G(e.jsx("path",{d:"m17.6 9.48 1.84-3.18c.16-.31.04-.69-.26-.85-.29-.15-.65-.06-.83.22l-1.88 3.24c-2.86-1.21-6.08-1.21-8.94 0L5.65 5.67c-.19-.29-.58-.38-.87-.2-.28.18-.37.54-.22.83L6.4 9.48C3.3 11.25 1.28 14.44 1 18h22c-.28-3.56-2.3-6.75-5.4-8.52M7 15.25c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m10 0c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25"})),$e=G(e.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})),it=G(e.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"})),me=G(e.jsx("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6v2H8v2h8v-2h-2v-2h6c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"})),ms=G(e.jsx("path",{d:"M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2zM4 6h16v10H4z"})),fs=G(e.jsx("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1m-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5-4H7V4h9z"})),xs=G(e.jsx("path",{d:"M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2m-2 14H5V6h14z"})),fe=G(e.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-5 14H4v-4h11zm0-5H4V9h11zm5 5h-4V9h4z"})),ue=s=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s},b.createElement("path",{d:"M8.4375 4.3125H8.25C8.35313 4.3125 8.4375 4.22812 8.4375 4.125V4.3125H15.5625V4.125C15.5625 4.22812 15.6469 4.3125 15.75 4.3125H15.5625V6H17.25V4.125C17.25 3.29766 16.5773 2.625 15.75 2.625H8.25C7.42266 2.625 6.75 3.29766 6.75 4.125V6H8.4375V4.3125ZM20.25 6H3.75C3.33516 6 3 6.33516 3 6.75V7.5C3 7.60313 3.08437 7.6875 3.1875 7.6875H4.60312L5.18203 19.9453C5.21953 20.7445 5.88047 21.375 6.67969 21.375H17.3203C18.1219 21.375 18.7805 20.7469 18.818 19.9453L19.3969 7.6875H20.8125C20.9156 7.6875 21 7.60313 21 7.5V6.75C21 6.33516 20.6648 6 20.25 6ZM17.1398 19.6875H6.86016L6.29297 7.6875H17.707L17.1398 19.6875Z"}));function hs(s){return!s||typeof s!="string"?"break-all":s.includes(" ")?"break-word":"break-all"}function lt({logo:s="",name:n="",description:l="",size:p=40,variant:c="rounded",sx:u={},className:f="",logoName:a="",tooltip:d=null}){const r={width:p,height:p,...u},o=typeof n=="string"?n:s,i=e.jsxs(V,{direction:"row",spacing:1,className:`info-card-wrapper ${f}`,sx:{alignItems:"center",cursor:d?"pointer":"default"},children:[s?e.jsx(Le,{src:s,alt:a??o,variant:c,sx:r}):e.jsx(Le,{variant:c,sx:r,children:o?.slice(0,1)}),e.jsxs(V,{direction:"column",sx:{alignItems:"flex-start",justifyContent:"space-around",wordBreak:hs(n),minWidth:{xs:100,sm:140}},children:[e.jsx(N,{variant:"body1",component:"div",sx:{color:"text.primary"},children:n}),l&&e.jsx(N,{variant:"subtitle1",sx:{color:"text.secondary"},children:l})]})]});return d?e.jsx(K,{title:d,placement:"top-start",slotProps:{tooltip:{sx:{bgcolor:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff",color:t=>t.palette.mode==="dark"?"#ffffff":t.palette.text.primary,boxShadow:"0 2px 10px rgba(0, 0, 0, 0.15)",borderRadius:2,padding:"10px 16px",fontSize:14,maxWidth:400,minWidth:240,wordBreak:"break-word",border:t=>t.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0","& .MuiTooltip-arrow":{color:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff","&::before":{border:t=>t.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0",backgroundColor:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff"}}}}},children:i}):i}lt.propTypes={logo:y.string,name:y.oneOfType([y.string,y.node]).isRequired,description:y.oneOfType([y.string,y.node]),size:y.oneOfType([y.number,y.string]),variant:y.oneOf(["square","rounded","circular"]),sx:y.object,className:y.string,logoName:y.string,tooltip:y.oneOfType([y.string,y.node])};function gs(s){try{if(!s.trim())return{device:{icon:e.jsx(me,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(fe,{fontSize:"small"}),text:"Unknown Browser"}};const l=new os(s).getResult();let p="";const c=s.split(/\s+/).find(d=>d.startsWith("arcwallet"));if(c){const d=c.split("/");d.length>1&&Be.coerce(d[1])&&(p=Be.coerce(d[1]).version)}const u=(()=>{const{type:d="",model:r=""}=l.device;return d==="mobile"?{icon:e.jsx(fs,{fontSize:"small"}),text:r||"Mobile Device"}:d==="tablet"?{icon:e.jsx(xs,{fontSize:"small"}),text:r||"Tablet"}:{icon:e.jsx(ms,{fontSize:"small"}),text:r||"Desktop"}})(),f=(()=>{const{name:d="",version:r=""}=l.os;return d.toLowerCase().includes("mac")?{icon:e.jsx($e,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("ios")?{icon:e.jsx($e,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("android")?{icon:e.jsx(us,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("windows")?{icon:e.jsx(me,{fontSize:"small"}),text:`${d} ${r}`}:{icon:null,text:d?`${d} ${r}`:"Unknown OS"}})(),a=(()=>{const{name:d="",version:r=""}=l.browser;return{icon:e.jsx(fe,{fontSize:"small"}),text:d?`${d} ${r}`:"Unknown Browser"}})();return{device:u,os:f,browser:a,...p?{walletVersion:{icon:null,text:p}}:{}}}catch(n){return console.error("Error parsing user agent:",n),{device:{icon:e.jsx(me,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(fe,{fontSize:"small"}),text:"Unknown Browser"}}}}function ct({ua:s}){const n=gs(s);return e.jsx(V,{spacing:1,children:Object.entries(n).map(([l,{icon:p,text:c}])=>e.jsxs(g,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(g,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:p}),e.jsx(N,{variant:"body2",sx:{display:"flex"},children:c})]},l))})}ct.propTypes={ua:y.string.isRequired};const dt=()=>{const{t:s}=F(),n={$all:s("common.all"),owner:"Owner",admin:"Admin",member:"Member",guest:"Guest"};return{SYSTEM_ROLES:n,formatRoleName:p=>{const c=(p||"").toLowerCase();return c.startsWith("$")?n[c]||c.slice(1):n[c]||c}}},ys=(s,n=!1)=>{const l=n?1:.6;switch(s){case"owner":return`rgba(232, 222, 255, ${l})`;case"admin":return`rgba(227, 242, 253, ${l})`;case"member":return`rgba(232, 245, 233, ${l})`;case"guest":return`rgba(245, 245, 245, ${l})`;default:return`rgba(245, 245, 245, ${l})`}},js=je(ve)(({role:s})=>({backgroundColor:ys(s.toLowerCase()),color:"#000000"})),vs=s=>{switch(s){case"valid":return n=>n.palette.success.light;case"expired":return n=>n.palette.text.disabled;case"revoked":return n=>n.palette.error.light;default:return n=>n.palette.warning.light}},bs=je(ve)(({theme:s,status:n})=>({backgroundColor:vs(n)(s),color:"#FFFFFF"}));function pt({did:s}){return e.jsx(J,{size:14,responsive:!1,compact:!0,copyable:!1,did:s})}pt.propTypes={did:y.string.isRequired};function ut({timestamp:s,locale:n}){return e.jsx(g,{sx:{minWidth:"100px"},children:e.jsx(oe,{value:s,locale:n})})}ut.propTypes={timestamp:y.number.isRequired,locale:y.string.isRequired};function mt({name:s="",role:n}){const{formatRoleName:l}=dt();return e.jsx(js,{label:l(s||n),size:"small",role:s||n,sx:{borderRadius:1}})}mt.propTypes={role:y.string.isRequired,name:y.string};function ft({status:s}){const{t:n}=F();return e.jsx(bs,{label:n(`team.passport.statusMap.${s}`),size:"small",status:s,sx:{borderRadius:1}})}ft.propTypes={status:y.string.isRequired};function xt({source:s}){const{t:n}=F();return s?n(`team.passport.sourceMaps.${s}`):"-"}xt.propTypes={source:y.string.isRequired};function ht({user:s,size:n="default",tooltip:l=!1,inService:p=!1}){const{teamDid:c}=M(),u=ie.useMemo(()=>be(s.avatar,c,p),[s.avatar,c,p]),f=ie.useMemo(()=>e.jsx(J,{did:s?.did,compact:!0,responsive:!1,sx:{whiteSpace:"nowrap"},size:12}),[s?.did]),a=Nt(()=>({...s,avatar:u}),[s,u]);return n==="small"?e.jsx(lt,{variant:"circular",logo:u,name:e.jsx(N,{sx:{maxWidth:320,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},className:"customer-link-name",children:s.fullName||s.email}),...n==="small"?{tooltip:l?e.jsx(J,{did:s?.did}):!1,size:24}:{description:f,size:36}}):e.jsx(Lt,{user:a,avatarSize:n==="small"?24:36,cardType:Mt.Detailed,infoType:Bt.Minimal,sx:{padding:0,border:"none"},showDid:!0,didProps:{compact:!0,responsive:!1},showHoverCard:!1})}ht.propTypes={user:y.object.isRequired,size:y.string,tooltip:y.bool,inService:y.bool};const Cs=ie.memo(ht),Ss=s=>e.jsx(pt,{did:s}),Ie=(s,n)=>e.jsx(mt,{name:s,role:n}),Re=s=>e.jsx(ft,{status:s}),gt=(s,n)=>e.jsx(ut,{timestamp:s,locale:n}),de=s=>e.jsx(xt,{source:s}),De=(s,n=!1)=>e.jsx(Cs,{user:s,inService:n}),ws=s=>e.jsx(ct,{ua:s}),Oe="info";function yt({createPassportSvg:s,passport:n,onCancel:l,onSwitchPassport:p=()=>{}}){const{t:c}=F(),u=$t({tab:Oe}),f={info:{label:c("common.basicInfo"),value:Oe,component:()=>e.jsx(jt,{passport:n,createPassportSvg:s})},logs:{label:c("common.logs"),value:"logs",component:()=>e.jsx(Ct,{passport:n})},related:{label:c("team.passport.related"),value:"related",component:()=>e.jsx(St,{passport:n,onSwitchPassport:p})}},a=Object.values(f).map(({label:o,value:i})=>({label:o,value:i})).filter(o=>o.value==="related"?n.parentDid:!0),d=f[u.tab]||f.info,r=o=>{u.tab=o};return e.jsx(q,{title:c("common.passport"),onClose:l,open:!0,PaperProps:{style:{maxWidth:800,minHeight:"80vh"}},fullWidth:!0,children:e.jsxs(Ts,{children:[e.jsx(g,{className:"tabs",children:e.jsx(as,{tabs:a,current:u.tab,onChange:r,scrollButtons:"auto"})}),e.jsx(g,{className:"body",children:e.jsx(d.component,{})})]})})}yt.propTypes={createPassportSvg:y.func.isRequired,passport:y.object.isRequired,onCancel:y.func.isRequired,onSwitchPassport:y.func};const Ts=W(g)`
|
|
2
2
|
margin-top: -16px;
|
|
3
3
|
|
|
4
4
|
.tabs {
|