@abtnode/webapp 1.16.29-beta-8671c2cf → 1.16.29-beta-a3a3b40e
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-CVNsoK3Q.js → Add-pKyUqZnX.js} +1 -1
- package/dist/assets/{ArrowDropDown-BfO4dBTK.js → ArrowDropDown-DLOk2hQn.js} +1 -1
- package/dist/assets/Autocomplete-CQa-Zchq.js +1 -0
- package/dist/assets/{Breadcrumbs-D-qFzMeY.js → Breadcrumbs-C09hLyvm.js} +1 -1
- package/dist/assets/{ButtonGroup-DI2J-6OG.js → ButtonGroup-DvSv45rY.js} +1 -1
- package/dist/assets/{CheckCircle-ESEiLplI.js → CheckCircle-Bve-EbH9.js} +1 -1
- package/dist/assets/{ChevronLeft-Bfi7NoHM.js → ChevronLeft-D5neZMm8.js} +1 -1
- package/dist/assets/{ChevronRight-CviuIMvz.js → ChevronRight-AF3Oi76r.js} +1 -1
- package/dist/assets/{Close-NK6lKMNp.js → Close-iwCCyAvr.js} +1 -1
- package/dist/assets/{Delete-D_zo8qNY.js → Delete-BG_3zNXs.js} +1 -1
- package/dist/assets/{DeleteOutline-Cxb7-O66.js → DeleteOutline-B-Jo5P14.js} +1 -1
- package/dist/assets/{Done-D45xFqsP.js → Done-BrZXmjmM.js} +1 -1
- package/dist/assets/{Edit-C2G3tqbR.js → Edit-O84hGgRU.js} +1 -1
- package/dist/assets/{EditIcon-Ck6SNRkS.js → EditIcon-BG6ATkhr.js} +1 -1
- package/dist/assets/{ExpandMore-CwHt_ZVc.js → ExpandMore-BVacVg2T.js} +1 -1
- package/dist/assets/FilterList-1kvLdh4X.js +26 -0
- package/dist/assets/{Google-D1_AW-DT.js → Google-CehXTW1E.js} +1 -1
- package/dist/assets/{Https-Dq8brLik.js → Https-MDLWGRiI.js} +1 -1
- package/dist/assets/{InputAdornment-vZb8BB84.js → InputAdornment-BbPdWxkf.js} +1 -1
- package/dist/assets/{InputLabel-CFeFXjoo.js → InputLabel-SPUYdufd.js} +1 -1
- package/dist/assets/{LastPage-qq7jFnRY.js → LastPage-DhmYZtKl.js} +1 -1
- package/dist/assets/{Launch-DM-OAIt1.js → Launch-3iAwD2-o.js} +1 -1
- package/dist/assets/{Link-RUTdr8Sy.js → Link-kfMD43M4.js} +1 -1
- package/dist/assets/LoadingButton-BdU2PA2v.js +1 -0
- package/dist/assets/{LockIcon-PdwfNCrE.js → LockIcon-COOR_19Z.js} +1 -1
- package/dist/assets/{Loop-mB6aLQRu.js → Loop-DJNY6Gly.js} +1 -1
- package/dist/assets/{MoreVert-Cau6w3Nc.js → MoreVert-DqLb0IvW.js} +1 -1
- package/dist/assets/{Pagination-BPEEzqVS.js → Pagination-DWwZRsY-.js} +1 -1
- package/dist/assets/{Public-RloFzq6s.js → Public-Cnl0uk6R.js} +1 -1
- package/dist/assets/{SchemaReference.es-Cy_VpEXU.js → SchemaReference.es-FI5ZcmKj.js} +1 -1
- package/dist/assets/{Search-BjnpBn7M.js → Search-zQ1-xKEI.js} +1 -1
- package/dist/assets/Select-DznafFqO.js +2 -0
- package/dist/assets/{Skeleton-rnv-ggbJ.js → Skeleton-C8dMhHy4.js} +3 -3
- package/dist/assets/Slider-D4WWBNJB.js +1 -0
- package/dist/assets/{Stepper-Dg253Q8k.js → Stepper-W9Yp8FdW.js} +1 -1
- package/dist/assets/{TextField-Csggaa8Q.js → TextField-Bhm-pGTt.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-BgYSvys-.js → ToggleButtonGroup-DeT17l8h.js} +1 -1
- package/dist/assets/{ViewList-CkwZ1YpX.js → ViewList-Br9JJqgO.js} +1 -1
- package/dist/assets/{actions-OnAy2baR.js → actions-BXtydwk9.js} +1 -1
- package/dist/assets/{actions-DDxj2Gro.js → actions-DYuHxkf6.js} +1 -1
- package/dist/assets/{agreement-BI9D0qcZ.js → agreement-Cm12LJFQ.js} +3 -3
- package/dist/assets/api-BeaKO2dl.js +1 -0
- package/dist/assets/{app-avatar-DxCIyKGs.js → app-avatar--K_t_Plu.js} +1 -1
- package/dist/assets/ar-CEz-3AyV.js +1 -0
- package/dist/assets/{audit-logs-VjS1pNCu.js → audit-logs-B4r39ka6.js} +1 -1
- package/dist/assets/blocklet-rYMojVwR.js +1 -0
- package/dist/assets/{brace-fold.es-CRh3GTIu.js → brace-fold.es-Ba3cjgwk.js} +1 -1
- package/dist/assets/{bundle-avatar-aWqgzI5V.js → bundle-avatar-DKdThq9s.js} +1 -1
- package/dist/assets/{chart-BQeVEXRi.js → chart-C-94eWmx.js} +2 -2
- package/dist/assets/{click-to-copy-DmXU88NO.js → click-to-copy-C_gleQEN.js} +1 -1
- package/dist/assets/{closebrackets.es-Bf8m-8Em.js → closebrackets.es-CmCaLuCp.js} +1 -1
- package/dist/assets/{codemirror.es-BDjVt0Cm.js → codemirror.es-l_8ZY7Lh.js} +1 -1
- package/dist/assets/{comment.es-I8duadjp.js → comment.es-CRv3OQd6.js} +1 -1
- package/dist/assets/{config-navigation-BbCsdEr0.js → config-navigation-GH8Li2j-.js} +1 -1
- package/dist/assets/de-Di4pToxm.js +1 -0
- package/dist/assets/{delete-confirm-BmoetJSQ.js → delete-confirm-Ddybjkbg.js} +1 -1
- package/dist/assets/{detail-B5zaEe5r.js → detail-HcSHX1RQ.js} +3 -3
- package/dist/assets/{dialog.es-ld8i8Wew.js → dialog.es-CnBSXVvi.js} +1 -1
- package/dist/assets/{download-DgflxEPA.js → download-Ckh_QSd4.js} +5 -5
- package/dist/assets/es-CPDKeKrG.js +1 -0
- package/dist/assets/{foldgutter.es-BarMj_ub.js → foldgutter.es-DXX4I493.js} +1 -1
- package/dist/assets/fr-9RG8cAa6.js +1 -0
- package/dist/assets/getValidReactChildren-1HAiV6lK.js +1 -0
- package/dist/assets/hi-DJLNiG5V.js +1 -0
- package/dist/assets/{hint.es-0PrTUWEC.js → hint.es-BoJiF4Kl.js} +1 -1
- package/dist/assets/{hint.es2-BnIe29Vj.js → hint.es2-BxUTUC98.js} +1 -1
- package/dist/assets/id-TqWAFNjj.js +1 -0
- package/dist/assets/{iframe-BR7thU6D.js → iframe-9dViXCxz.js} +1 -1
- package/dist/assets/{index-B_whgYLG.js → index--TkSjE0u.js} +1 -1
- package/dist/assets/{index-BoyusNjT.js → index-B4OMw3wi.js} +1 -1
- package/dist/assets/{index-CZVGhGxp.js → index-BH9T3JXE.js} +1 -1
- package/dist/assets/index-BHpKGG76.js +288 -0
- package/dist/assets/{index-Cwt3A7T1.js → index-BLi5-33y.js} +4 -4
- package/dist/assets/{index-DpBO7roy.js → index-BT2YG5dz.js} +1 -1
- package/dist/assets/{index-DwSKqGUi.js → index-BUiCzoDM.js} +1 -1
- package/dist/assets/index-BcjQGvz3.js +11 -0
- package/dist/assets/{index-B_SKfObh.js → index-BjcxSioZ.js} +1 -1
- package/dist/assets/{index-2cPkOt-p.js → index-BlhbeeNQ.js} +1 -1
- package/dist/assets/{index-D2l1phOs.js → index-BsKfUhVE.js} +1 -1
- package/dist/assets/{index-B49E46lJ.js → index-BwjYNlcZ.js} +1 -1
- package/dist/assets/{index-C7EE4JGH.js → index-C4qIP-_F.js} +1 -1
- package/dist/assets/{index-DBffJePm.js → index-C7-D51wU.js} +1 -1
- package/dist/assets/{index-DZ-9lK3d.js → index-CCGu9TL3.js} +4 -4
- package/dist/assets/{index-CbAhvH5X.js → index-CCOLrY6y.js} +1 -1
- package/dist/assets/{index-B6AJoqpH.js → index-CJ30BkZM.js} +1 -1
- package/dist/assets/{index-B2mhcMdY.js → index-CPeqPra-.js} +1 -1
- package/dist/assets/index-CSDwzowm.js +1 -0
- package/dist/assets/{index-CWcagiwH.js → index-CjRC70vz.js} +1 -1
- package/dist/assets/{index-Cakzfu7O.js → index-Ck4dc4qV.js} +5 -5
- package/dist/assets/{index-D07w-tKM.js → index-Cpb-sFNf.js} +1 -1
- package/dist/assets/index-CrLudGXM.js +1 -0
- package/dist/assets/index-D-YrhOuw.js +54 -0
- package/dist/assets/{index-CYFjXOBq.js → index-D-sX61_X.js} +3 -3
- package/dist/assets/{index-n40q7b9N.js → index-D0ex-q5W.js} +4 -4
- package/dist/assets/{index-BqLwmYDo.js → index-D3EYYrwn.js} +1 -1
- package/dist/assets/{index-BZO6weCD.js → index-DDlocpiQ.js} +1 -1
- package/dist/assets/{index-1o_Cpjju.js → index-DFzjLfBo.js} +3 -3
- package/dist/assets/{index-BgORjHuZ.js → index-DSEcsjSl.js} +7 -7
- package/dist/assets/{index-Cq4SZMN1.js → index-DYl7Q_eK.js} +1 -1
- package/dist/assets/{index-DUwL7XL8.js → index-D_Mcr8DR.js} +31 -66
- package/dist/assets/{index-D83fJ4ZZ.js → index-Da2vIr8N.js} +2 -2
- package/dist/assets/{index-B1y0V6oI.js → index-DfXfPJxa.js} +1 -1
- package/dist/assets/{index-CnMRvtiH.js → index-Dhvjh1Ja.js} +1 -1
- package/dist/assets/index-Dt6QXT-d.js +278 -0
- package/dist/assets/{index-r5OX1XAc.js → index-Dw0ah9mI.js} +1 -1
- package/dist/assets/{index-CqKpBuSh.js → index-Dzog9V8a.js} +1 -1
- package/dist/assets/{index-CiYpieJi.js → index-ER8p4lvE.js} +1 -1
- package/dist/assets/{index-DSdFsOP8.js → index-UgBlYd1D.js} +1 -1
- package/dist/assets/{index-CC6C3qvP.js → index-Yclle18m.js} +1 -1
- package/dist/assets/{index-Df-DcHAh.js → index-gBZtvLTL.js} +160 -160
- package/dist/assets/{index-CcAfTAex.js → index-lpy1TDTa.js} +3 -3
- package/dist/assets/{index-D-cZu7y9.js → index-rFymmF-6.js} +1 -1
- package/dist/assets/{index.es-Fps_KP2M.js → index.es-C2o5vtyA.js} +1 -1
- package/dist/assets/{index.esm-D0DYWJ0J.js → index.esm-MEs6trBP.js} +1 -1
- package/dist/assets/{info-addon.es-BXSU_Qmj.js → info-addon.es-DaBVewRe.js} +1 -1
- package/dist/assets/{info.es-HClq6Fw7.js → info.es-EnrVX8VT.js} +1 -1
- package/dist/assets/{install-from-url-Dr1wSd1A.js → install-from-url-BPXWSz02.js} +1 -1
- package/dist/assets/{invitation-sWGyMElP.js → invitation-D1e4BUC2.js} +1 -1
- package/dist/assets/is-path-prefix-equal-Inp_MmbW.js +1 -0
- package/dist/assets/{isEqual-CuSHEenP.js → isEqual-096XH0At.js} +1 -1
- package/dist/assets/{item-BJWKiK8f.js → item-WtkPDlnc.js} +1 -1
- package/dist/assets/ja-BSnhR_mh.js +1 -0
- package/dist/assets/{javascript.es-B_IsyO6D.js → javascript.es-Db9u92CP.js} +1 -1
- package/dist/assets/{jump-to-line.es-_IMKrBri.js → jump-to-line.es-B4DYDCQc.js} +1 -1
- package/dist/assets/{jump.es-CUOB8BsW.js → jump.es-D_5OJAvI.js} +1 -1
- package/dist/assets/ko-gjYVLUHm.js +1 -0
- package/dist/assets/{line-ufiIkqQb.js → line-BBTKuXgG.js} +3 -3
- package/dist/assets/{lint.es-UKbO4MMD.js → lint.es-CPC5HZli.js} +1 -1
- package/dist/assets/{lint.es2-B11JVFra.js → lint.es2-CJa_1JHn.js} +1 -1
- package/dist/assets/{lint.es3-CpxDSCc5.js → lint.es3-DtBCdsAP.js} +1 -1
- package/dist/assets/{list-header-BoMAPPGv.js → list-header-CXVLNW82.js} +1 -1
- package/dist/assets/{log-P6GhKjQ3.js → log-CVqDxZBP.js} +1 -1
- package/dist/assets/{lottie-CWcrdn_r.js → lottie-D77WzIzs.js} +1 -1
- package/dist/assets/{matchbrackets.es-BRGFHH5R.js → matchbrackets.es-i92Mlh7M.js} +1 -1
- package/dist/assets/{memory-r4YEj0vP.js → memory-D-JwjMVG.js} +1 -1
- package/dist/assets/{mode.es-BbxrAJ36.js → mode.es-oco0R2JI.js} +1 -1
- package/dist/assets/{mode.es2-CuBPrcRu.js → mode.es2-NsH2h82n.js} +1 -1
- package/dist/assets/{mode.es3-Bx9ZZNix.js → mode.es3-DDDTQTZ_.js} +1 -1
- package/dist/assets/{onlineParser.es--mLtLOO_.js → onlineParser.es-B1xlorlh.js} +1 -1
- package/dist/assets/overview-CoxKKoup.js +26 -0
- package/dist/assets/pt-B-XCpQDv.js +1 -0
- package/dist/assets/react-B_JXDT98.js +56 -0
- package/dist/assets/{redux-C8OOS_PY.js → redux-CIvT3eos.js} +1 -1
- package/dist/assets/resource-dialog-Daf0mVPu.js +57 -0
- package/dist/assets/ru-DSPtM6j0.js +1 -0
- package/dist/assets/runtime-COrQwWgs.js +1 -0
- package/dist/assets/{schema-B0MpML_w.js → schema-CAq5igE9.js} +1 -1
- package/dist/assets/{search.es-CjDQ2Fhj.js → search.es-DToTAbGB.js} +1 -1
- package/dist/assets/{searchcursor.es-kDqPKfxE.js → searchcursor.es-wtv2yXhB.js} +1 -1
- package/dist/assets/service-CCCA4hfq.js +1 -0
- package/dist/assets/{shorten-label-Co8DUqmu.js → shorten-label-HX5HiA5v.js} +1 -1
- package/dist/assets/{show-hint.es-Cbx3Ybfe.js → show-hint.es-DCzo4BsZ.js} +1 -1
- package/dist/assets/{slicedToArray-C7xZ-QRT.js → slicedToArray-bAsaJQlT.js} +1 -1
- package/dist/assets/{spaces-GvPakdRa.js → spaces-D2iB47oL.js} +1 -1
- package/dist/assets/{sublime.es-C_G3_H-o.js → sublime.es-CzLNyX-C.js} +1 -1
- package/dist/assets/{switch-control-DncyUIeb.js → switch-control-D2PG983M.js} +1 -1
- package/dist/assets/{table-icons-DUqTtklC.js → table-icons-DKqNQABP.js} +3 -3
- package/dist/assets/{tag-gsV8sxA-.js → tag-OD5kAVwU.js} +1 -1
- package/dist/assets/{team-bmjuXLbE.js → team-Cx3ujP3D.js} +1 -1
- package/dist/assets/th-CxPqMbkk.js +1 -0
- package/dist/assets/{toUpper-2qZllqOy.js → toUpper-Bd6pptp4.js} +1 -1
- package/dist/assets/traffic-CfeuJCnk.js +8 -0
- package/dist/assets/{url-evaluation-B1QGhHSk.js → url-evaluation-BJnhShOU.js} +2 -2
- package/dist/assets/{url-join-C9rCXo0P.js → url-join-R_hoMPFS.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-DNT7pV9H.js → use-blocklet-info-for-connect-did-spaces-BQQC5DXS.js} +1 -1
- package/dist/assets/{useLocalStorage-DQQZU_hU.js → useLocalStorage-CV1z5zeH.js} +1 -1
- package/dist/assets/useThemeProps-CB62kBuT.js +1 -0
- package/dist/assets/{util-CY7XCQ7b.js → util-BoYHAMcK.js} +1 -1
- package/dist/assets/vi-B8erxshV.js +1 -0
- package/dist/assets/{wait-container-CRYt3bDb.js → wait-container-CfXxXZfc.js} +1 -1
- package/dist/assets/{withStyles-B37CppbG.js → withStyles-Dp5x5u5h.js} +1 -1
- package/dist/assets/wrap-locale-DHLOopMt.js +1 -0
- package/dist/assets/{zh-DMGrvlv0.js → zh-XzadN7R3.js} +1 -1
- package/dist/assets/zh-tw-BTlMDwjI.js +1 -0
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/Autocomplete-BuV-jJWs.js +0 -1
- package/dist/assets/FilterList-ryS3TXb6.js +0 -26
- package/dist/assets/LoadingButton-CLB-X53C.js +0 -1
- package/dist/assets/Select-DaMjgyJb.js +0 -2
- package/dist/assets/Slider-BssF-rMN.js +0 -1
- package/dist/assets/api-C5GhI8g0.js +0 -1
- package/dist/assets/ar-DAUz5_Ej.js +0 -1
- package/dist/assets/blocklet-xOWFDAq8.js +0 -1
- package/dist/assets/de-JXmbvsP-.js +0 -1
- package/dist/assets/es-D_uIRKnu.js +0 -1
- package/dist/assets/fr-BocLckhV.js +0 -1
- package/dist/assets/getValidReactChildren-BZgaSkVU.js +0 -1
- package/dist/assets/hi-Bn38t0nX.js +0 -1
- package/dist/assets/id-DuC9mOr4.js +0 -1
- package/dist/assets/index-B_X8Mnmw.js +0 -344
- package/dist/assets/index-Bd_QrAUa.js +0 -1
- package/dist/assets/index-CE9jkIu-.js +0 -268
- package/dist/assets/index-DIQO71kA.js +0 -1
- package/dist/assets/index-D_yahWUu.js +0 -11
- package/dist/assets/index-ESizcsN5.js +0 -11
- package/dist/assets/index-RWmdJzPs.js +0 -54
- package/dist/assets/is-path-prefix-equal-DCOkU50l.js +0 -1
- package/dist/assets/ja-B2J7-ZGM.js +0 -1
- package/dist/assets/ko-TAMb2jXz.js +0 -1
- package/dist/assets/overview-BT359x8B.js +0 -26
- package/dist/assets/pt-DAmg1w9n.js +0 -1
- package/dist/assets/react-CnToiOQq.js +0 -379
- package/dist/assets/ru-BqJl8PYs.js +0 -1
- package/dist/assets/runtime-Q3wyKIvm.js +0 -1
- package/dist/assets/service-DLGpb5Rp.js +0 -1
- package/dist/assets/th-CGcwcZWK.js +0 -1
- package/dist/assets/traffic-DqNw6WbG.js +0 -8
- package/dist/assets/ua-parser-Dzgi3kyq.js +0 -1
- package/dist/assets/vi-lYszmNr_.js +0 -1
- package/dist/assets/wrap-locale-D3aDFEon.js +0 -1
- package/dist/assets/zh-tw-BkGc-T4k.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bK as zo,j as e,aK as Vt,aL as _t,q as z,O as y,ax as ve,P as r,A,bm as J,r as f,f as Ce,bp as Je,b as X,M as O,J as dt,U as Mt,cc as Oe,n as F,K as Z,
|
|
1
|
+
import{bK as zo,j as e,aK as Vt,aL as _t,q as z,O as y,ax as ve,P as r,A,bm as J,r as f,f as Ce,bp as Je,b as X,M as O,J as dt,U as Mt,cc as Oe,n as F,K as Z,gN as qo,bH as Me,aY as ue,aX as gt,aC as Ft,a2 as $,D as xt,F as D,aP as Vo,Y as Ke,$ as Wn,b1 as _o,fP as Wo,fQ as Ho,C as re,fe as Yo,y as po,av as pt,a1 as we,x as Gt,hB as Jo,hC as Ko,B as ne,bc as uo,H as Wt,hD as Qo,m as ee,a3 as Zo,eC as Xo,W as mo,Z as fo,ak as $o,w as es,Q as He,V as ts,hE as ho,S as ge,az as ns,aA as os,aB as ss,i as yt,aN as rs,cx as is,bh as as,hc as ls,hF as cs,ay as Hn,cv as ds,ad as Fe,aJ as go,bJ as Ht,ce as ps,hG as us,b7 as ms,z as fs,aZ as zt,T as hs,aQ as Ye,at as Nt,bq as xo,aF as gs,fY as Pe,dP as xs,hH as ys,gl as Yn,hI as Jn,gn as Kn,a_ as Cs,G as at,gp as js,bI as vs}from"./index-gBZtvLTL.js";import{d as Ss}from"./Add-pKyUqZnX.js";import{a as bs,R as ct,F as Rs,L as Es,d as Yt,b as Jt}from"./line-BBTKuXgG.js";import{C as Ts,A as ws,d as Ps}from"./agreement-Cm12LJFQ.js";import{E as Is}from"./index-rFymmF-6.js";import{b as ks,a as Us,c as Ds,u as Kt,e as Bs}from"./actions-BXtydwk9.js";import{S as Ns}from"./switch-control-D2PG983M.js";import{u as As,P as Ls,a as Os}from"./use-blocklet-info-for-connect-did-spaces-BQQC5DXS.js";import{d as yo}from"./Edit-O84hGgRU.js";import{T as Ms}from"./index-ER8p4lvE.js";import{T as Fs,M as Gs,t as zs}from"./table-icons-DKqNQABP.js";import{C as Qn}from"./click-to-copy-C_gleQEN.js";import{T as K}from"./TextField-Bhm-pGTt.js";import{d as Qt}from"./Link-kfMD43M4.js";import{c as qs,C as Vs,a as _s,b as Ws,D as Hs,A as Ys,B as Js,d as Ks,S as Qs}from"./item-WtkPDlnc.js";import{u as Zs,a as Xs,P as Co,L as Zn,A as $s,S as er}from"./index-D_Mcr8DR.js";import{u as jo,t as tr}from"./toUpper-Bd6pptp4.js";import{u as ie}from"./blocklet-rYMojVwR.js";import{a as nr,b as or,c as sr,d as rr,e as ir,g as Xn,f as ar,i as $n}from"./spaces-D2iB47oL.js";import{d as lr}from"./EditIcon-BG6ATkhr.js";import{d as cr}from"./Done-BrZXmjmM.js";import{C as dr}from"./Google-CehXTW1E.js";import{I as pr,a as ur,f as mr,B as fr}from"./install-from-url-BPXWSz02.js";import{a as eo}from"./api-BeaKO2dl.js";import{v as vo,a as ut}from"./util-BoYHAMcK.js";import{d as hr}from"./DeleteOutline-B-Jo5P14.js";import{S as to}from"./index-DDlocpiQ.js";import{d as gr}from"./ArrowDropDown-DLOk2hQn.js";import{_ as xr}from"./useLocalStorage-CV1z5zeH.js";import{d as yr}from"./LockIcon-COOR_19Z.js";import{d as Ct}from"./Delete-BG_3zNXs.js";import{d as So}from"./Launch-3iAwD2-o.js";import{C as Cr}from"./delete-confirm-Ddybjkbg.js";import{W as Qe}from"./tag-OD5kAVwU.js";import{d as jr}from"./is-path-prefix-equal-Inp_MmbW.js";import{R as vr,b as no,B as bo}from"./url-evaluation-BJnhShOU.js";import{B as Sr}from"./bundle-avatar-DKdThq9s.js";import{A as Ro}from"./actions-DYuHxkf6.js";import{I as At}from"./index-BwjYNlcZ.js";import{a as br}from"./index-CSDwzowm.js";import{u as Rr}from"./team-Cx3ujP3D.js";import"./ButtonGroup-DvSv45rY.js";import"./getValidReactChildren-1HAiV6lK.js";import"./index-BT2YG5dz.js";import"./index-CJ30BkZM.js";import"./url-join-R_hoMPFS.js";import"./MoreVert-DqLb0IvW.js";import"./index-CPeqPra-.js";import"./FilterList-1kvLdh4X.js";import"./useThemeProps-CB62kBuT.js";import"./Select-DznafFqO.js";import"./InputLabel-SPUYdufd.js";import"./LastPage-DhmYZtKl.js";import"./slicedToArray-bAsaJQlT.js";import"./Search-zQ1-xKEI.js";import"./ChevronLeft-D5neZMm8.js";import"./ChevronRight-AF3Oi76r.js";import"./redux-CIvT3eos.js";import"./Skeleton-C8dMhHy4.js";import"./InputAdornment-BbPdWxkf.js";import"./memoize-one.esm-BdPwpGay.js";import"./index-D-sX61_X.js";import"./index-ZG7jWpak.js";import"./preact.module-B1z5cdvs.js";import"./Close-iwCCyAvr.js";import"./lottie-D77WzIzs.js";import"./schema-CAq5igE9.js";import"./index-CCOLrY6y.js";import"./isEqual-096XH0At.js";import"./index-BjcxSioZ.js";import"./Stepper-W9Yp8FdW.js";import"./ExpandMore-BVacVg2T.js";import"./shorten-label-HX5HiA5v.js";const Er=zo(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 Zt={},Tr=_t;Object.defineProperty(Zt,"__esModule",{value:!0});var Eo=Zt.default=void 0,wr=Tr(Vt()),Pr=e;Eo=Zt.default=(0,wr.default)((0,Pr.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 Xt({children:t,...o}){const{t:s}=z(),{updateAutoCheckUpdate:a,autoCheckUpdate:n}=As(),i=async()=>{try{const l=!(n!=null&&n.enabled);await a({enabled:l}),A.success(s(l?"storage.spaces.autoCheckUpdate.enabled":"storage.spaces.autoCheckUpdate.disabled"))}catch(l){A.error(l.message)}},m=!!(n!=null&&n.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(Ns,{checked:m,onChange:i,name:"enableWelcomePage",style:{...o.style,zoom:.8}})})})]})}Xt.propTypes={children:r.any};Xt.defaultProps={children:null};const Ir=(t,o)=>{let{description:s}=t;return(Object.values(X.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;function mt({blocklet:t,ancestors:o}){const s=J(),{inService:a}=s,{t:n}=f.useContext(Ce),i=[...o.map(c=>c.meta.did),t.meta.did],m=()=>A.success(n("blocklet.config.changedTip")),l=c=>Lt(c,t,o);if(Je(t.status)||t.status==="unknown"&&Je(t.status))return null;const u=async c=>{if(!c.key.trim()||!c.value.trim()){A.error(n("blocklet.config.environment.keyValueRequired"));return}if(c.key.startsWith("BLOCKLET_")||c.key.startsWith("COMPONENT_")){A.error(n("blocklet.config.environment.invalidKey"));return}c.custom=!0;try{const v=await s.api.configBlocklet({input:{did:i,configs:[c]}});m(v.blocklet)}catch(v){A.error(Z(v))}},h=async(c,v)=>{if(c.required&&(!c.key.trim()||!c.value.trim())){A.error(n("blocklet.config.environment.keyValueRequired"));return}if(c.key.startsWith("BLOCKLET_")&&!X.BLOCKLET_CONFIGURABLE_KEY[c.key]){A.error(n("blocklet.config.environment.invalidKey"));return}if(c.key===X.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:!0})}try{const T=await s.api.configBlocklet({input:{did:i,configs:j}});m(T.blocklet)}catch(T){A.error(Z(T))}},g=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:i,configs:[{key:c.key,custom:!0}]}});m(v.blocklet)}catch(v){A.error(Z(v))}},p=(t.configs||[]).filter(c=>!X.BLOCKLET_CONFIGURABLE_KEY[c.key]),S=O.getSharedConfigObj(o[0],t),d=O.getComponentMissingConfigs(t,o[0]),b=p.map(c=>({...c,value:Object.values(X.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:h,onRowDelete:g,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(oo,{children:e.jsx(K,{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(oo,{children:[e.jsx(K,{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}),Ir(j,n)]})}}];return e.jsxs(kr,{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(Mt,{permission:a?"":"mutate_blocklets",role:a?Oe:[],children:c=>e.jsx(Fs,{className:"config-table",children:e.jsx(Gs,{title:e.jsx("h4",{children:n("common.environment")}),columns:R(),icons:{...ks,...zs},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:r.object.isRequired,ancestors:r.array};mt.defaultProps={ancestors:[]};const kr=F.div`
|
|
2
2
|
.config-table {
|
|
3
3
|
margin-bottom: 24px;
|
|
4
4
|
position: relative;
|
|
@@ -63,7 +63,7 @@ import{bK as zo,j as e,aK as Vt,aL as _t,q as z,O as y,ax as ve,P as r,A,bm as J
|
|
|
63
63
|
.ux-dialog_right {
|
|
64
64
|
padding-right: 20px;
|
|
65
65
|
}
|
|
66
|
-
`,{NODE_MODES:so}=D,Lr=({mode:t,previousMode:o}={})=>t===so.SERVERLESS||o===so.SERVERLESS;var To={isInServerlessMode:Lr};function Or(){const[t,o]=f.useState(null),{blocklet:s}=ie();return f.useEffect(()=>{o(nr(s))},[s]),{storageEndpoint:t}}const wo=f.createContext({}),{Provider:Mr,Consumer
|
|
66
|
+
`,{NODE_MODES:so}=D,Lr=({mode:t,previousMode:o}={})=>t===so.SERVERLESS||o===so.SERVERLESS;var To={isInServerlessMode:Lr};function Or(){const[t,o]=f.useState(null),{blocklet:s}=ie();return f.useEffect(()=>{o(nr(s))},[s]),{storageEndpoint:t}}const wo=f.createContext({}),{Provider:Mr,Consumer:el}=wo;function $t({children:t}){const[o,s]=f.useState(!1),[a,n]=f.useState(null),{blocklet:i,actions:{refreshBlocklet:m}}=ie(),{storageEndpoint:l}=Or(),{api:u}=J();Vo(async()=>{try{if(s(!0),Wn.isEmpty(l)){n(null);return}const d=await or(l);n(d)}catch(d){console.error(d),A.error(d.message)}finally{s(!1)}},[l]);const h=()=>{n(null),m()},g=async d=>{n(d),await p(d.endpoint),m()},p=async d=>{await u.configBlocklet({input:{did:[i.meta.did],configs:[{key:X.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT,value:d}]}}),m()};f.useEffect(()=>{async function d(){if(!a)return;const b=await sr(a.endpoint,a.name),C=Wn.merge(a,{name:b});n(C)}d()},[]);const S=!!(l&&a);return e.jsx(Mr,{value:{loading:o,spaceGateway:a,deleteSpaceGateway:h,updateSpaceGateway:g,storageEndpoint:l,settingStorageEndpoint:p,hasStorageEndpoint:S},children:t})}$t.propTypes={children:Ke.node.isRequired};$t.defaultProps={};function en(){return f.useContext(wo)}const tn={description:r.string,editing:r.bool,onChange:r.func,required:r.bool,value:r.any,componentProps:r.object,render:r.func,renderFormItem:r.func};function nn({editing:t,value:o,onChange:s}){const[a,n]=f.useState(!1),i=f.useRef(),m=f.useRef(o);f.useEffect(()=>{let p=null;return t&&(p=setTimeout(()=>{n(!0)},50)),()=>{clearTimeout(p)}},[t]);const l=p=>{m.current=p,s(p)},u=()=>{n(!1),s(m.current)},h=e.jsx(y,{className:"form-item-input slot",px:1,children:e.jsxs(y,{display:"flex",alignItems:"center",children:[o,o!=="auto"&&e.jsx("div",{style:{marginLeft:4,backgroundColor:o,width:"1em",height:"1em",borderRadius:"0.2em"}})]})}),g=e.jsxs(y,{display:"flex",flexGrow:1,alignItems:"center",height:"40px",onKeyDown:u,children:[e.jsx(y,{display:"flex",alignItems:"center",onClick:()=>n(!0),children:e.jsx("div",{ref:i,style:{flexShrink:0,marginLeft:"8px",backgroundColor:o,width:"32px",height:"32px",boxSizing:"border-box",borderRadius:"8px",border:"1px solid #eee",cursor:o==="auto"?"default":"pointer"}})}),e.jsx(_o,{open:a,anchorEl:i.current,onClose:()=>n(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:e.jsx(dr,{color:o,onChange:p=>l(p.hex)})})]});return t?g:h}nn.propTypes=tn;function on({editing:t,description:o,value:s,onChange:a,componentProps:n,...i}){const{placeholder:m}=n,l=f.useRef(s),u=g=>{g.key==="Enter"&&a(l.current,"confirm")},h=g=>{l.current=g,a(g)};return t?e.jsx(K,{style:{flex:1},fullWidth:!0,value:s,onChange:g=>{g.persist(),h(g.target.value)},autoFocus:!0,size:"small",variant:"outlined",placeholder:o||m,onKeyDown:u,...i}):e.jsx(y,{px:1,className:"form-item-input slot",children:s})}on.propTypes=tn;on.defaultProps={componentProps:{}};function sn({editing:t,value:o,onChange:s,componentProps:a,...n}){const{blocklet:i}=a,m=o==="auto"?Wo.getPassportColorFromDid(i.appDid):o;return e.jsxs(y,{display:"flex",alignItems:"center",children:[e.jsx("div",{style:{width:96,marginRight:12},dangerouslySetInnerHTML:{__html:Ho({title:"Owner",issuer:O.getDisplayName(i),issuerDid:i.appDid,ownerName:"Your Name",ownerDid:i.appDid,preferredColor:o||"auto"})}}),e.jsx(nn,{...n,editing:t,value:t?m:o,onChange:s,componentProps:a})]})}sn.propTypes={...tn,componentProps:r.shape({blocklet:r.object.isRequired}).isRequired};sn.defaultProps={};const Fr={input:on,color:nn,passport:sn,uploader:t=>e.jsx(Es,{...t.componentProps})};function Gr(t,{editing:o=!1}){const{componentType:s="input",render:a,renderFormItem:n}=t;return o&&n?n:!o&&a?a:Fr[s==null?void 0:s.toLowerCase()]}function rn({schema:t,loading:o,value:s,defaultValue:a,onChange:n,style:i,disabled:m}){const l=Object.prototype.toString.call(s)==="[object Object]",[u,h]=f.useState(null),[g,p]=f.useState(l?s:a),S=f.useRef();function d(x,R,c){const{key:v,secure:j}=x,I=g[v]!==R,U={...g,[v]:R};I&&p(U),n({[v]:R},{allValues:U,action:c,currentItem:x}),c==="confirm"&&j&&p({...g,[v]:"__encrypted__"}),["confirm","cancel"].includes(c)?b(null):b(x)}function b(x){if(x){S.current=g[x.key],h(x);return}S.current=null,h(null)}function C(x,{editing:R=!1}){const{key:c}=x,v=l?s[c]:g[c];return v==="__encrypted__"?R?"":"******":v}return e.jsx(zr,{className:"form",style:i,children:t==null?void 0:t.map(x=>{const{key:R,description:c,required:v,solo:j=!1,hidden:T=!1,componentProps:I={}}=x;if(T)return null;const U=!!(u&&R===u.key),L=C(x,{editing:U}),k=Gr(x,{editing:U}),M={inputProps:{"data-cy":"schema-form-item-component"},key:R,description:c,editing:U,value:L,onChange:(B,q="change")=>d(x,B,q),componentProps:I};return e.jsxs(y,{className:"form-item",children:[!j&&e.jsxs(y,{className:"form-item-label",style:{color:v&&!L?"#ff0000":"#333"},children:[c,v&&e.jsx(ct,{})]}),e.jsxs(y,{className:"form-item-body",children:[e.jsx(y,{className:"form-item-input",sx:{textAlign:j?"center":"left"},children:e.jsx(k,{...M})}),!j&&e.jsx(y,{className:"form-item-action",children:U?e.jsxs(e.Fragment,{children:[e.jsx($,{"data-cy":"schema-form-item-confirm",onClick:()=>{d(x,L,"confirm")},disabled:m||o,size:"large",children:o?e.jsx(re,{size:24}):e.jsx(cr,{})}),e.jsx($,{"data-cy":"schema-form-item-cancel",onClick:()=>{d(x,S.current,"cancel")},disabled:m||o,size:"large",children:e.jsx(Yo,{})})]}):e.jsx($,{"data-cy":"schema-form-item-edit",onClick:()=>{d(x,g[R],"edit")},disabled:m||u,size:"large",children:e.jsx(lr,{})})})]})]},R)})})}rn.propTypes={schema:r.array.isRequired,loading:r.bool,onChange:r.func.isRequired,value:r.object,defaultValue:r.object,style:r.object,disabled:r.bool};rn.defaultProps={loading:!1,value:void 0,defaultValue:{},style:{},disabled:!1};const zr=F(Rs)``;function an({meta:t,onCancel:o,mode:s,handlePaySuccess:a}){const{t:n,locale:i}=z(),{info:m}=J(),l=po(m),[u,h]=f.useState(null),g=new URL(t==null?void 0:t.registryUrl).origin,p=O.getDisplayName({meta:t}),S=async(b,C)=>{const x=({downloadTokenList:v})=>{a({downloadTokenList:v})},R=v=>{A.error(v),o(v)};function c(v){return Ko(()=>eo.get(v).then(async({data:j})=>{const T=j==null?void 0:j.downloadTokenList;if(j.status==="succeed"){if(T&&T.length)await x({downloadTokenList:T});else return await R(n("blocklet.component.missDownloadTokenTip")),!0;return!0}return j.status==="error"?(console.error("vc error: ",j),await R(j==null?void 0:j.error),!0):!1}),{interval:1e3})}if(s==="purchase"&&u){const{statusUrl:v}=Jo(u);await c(v)}else await x({downloadTokenList:b.downloadTokenList&&C(b.downloadTokenList)})};if(f.useEffect(()=>{if(s==="purchase"){const b=new URL(g);b.pathname="/api/did/verify-purchase-blocklet/token",b.searchParams.set("serverDid",m.did),b.searchParams.set("blockletDid",t==null?void 0:t.did);try{eo.get(b.href).then(({data:C})=>{const x=`${C.url}`;h(x)})}catch(C){console.error("get next workflow url error: ",C)}}return()=>{h(null)}},[s]),s==="purchase"&&!u)return"";const d={verify:{action:"verify-purchase-blocklet",checkFn:pt.create({baseURL:g}).get,extraParams:{serverDid:m.did,blockletDid:t==null?void 0:t.did},messages:{title:n("store.purchase.verify.auth.title",{name:p}),scan:n("store.purchase.verify.auth.scan"),confirm:n("store.purchase.verify.auth.confirm"),success:n("store.purchase.verify.auth.success")}},purchase:{action:"acquire-asset",checkFn:pt.create({baseURL:we(g,"/store")}).get,extraParams:{factory:t.nftFactory,nw:u},messages:{title:n("store.purchase.auth.title",{name:p}),scan:n("store.purchase.auth.scan"),confirm:n("store.purchase.auth.confirm"),success:e.jsxs(e.Fragment,{children:[e.jsx("p",{children:n("store.purchase.auth.success")}),e.jsx("p",{children:n("blocklet.component.purchaseComponentSecondCheckTip")})]})}}};return e.jsx(Gt,{open:!0,locale:i,popup:!1,saveConnect:!1,className:"connect",baseUrl:g,onSuccess:S,cancelWhenScanned:o,onClose:o,checkTimeout:60*5e3,webWalletUrl:l,disableClose:!0,showDownload:!1,...d[s]})}an.propTypes={...qs,handlePaySuccess:r.func,mode:r.oneOf(["verify","purchase"]).isRequired};an.defaultProps={handlePaySuccess:()=>{}};const ln=f.forwardRef(({mode:t,...o},s)=>{const[a,n]=f.useState(t!=="both"?t:"verify"),[i,m]=f.useState(t!=="both"?2:1),l=h=>{h!==a&&n(h)},u=()=>{a&&i!==2&&m(2)};return f.useImperativeHandle(s,()=>({onNext:u,getCurrentStep:()=>i})),i===1?e.jsx("div",{style:{maxWidth:520},children:e.jsx(Vs,{action:a,onNext:null,onSelect:l})}):e.jsx(an,{...o,mode:a})});ln.propTypes={mode:r.oneOf(["both","verify","purchase"]).isRequired,ref:r.any};ln.defaultProps={ref:{}};const qr=ln;function Vr({...t}){return e.jsx(ne,{className:"bottom-button",variant:"contained",color:"primary",...t})}function cn({key:t}={key:"sm"}){const o=uo();return Wt(o.breakpoints.down(t))}function dn({blocklet:t,onStartNow:o,children:s,disabled:a}){const{t:n}=z(),i=cn();return!t||Qo(t.meta)?e.jsx(_r,{children:s}):e.jsxs(Wr,{isMobile:i,children:[e.jsx(Vr,{className:"start-now",variant:"contained",color:"primary",disabled:a,onClick:()=>o(),children:n("setup.startNow")}),e.jsx(y,{display:"flex",alignItems:"center",children:s})]})}dn.propTypes={blocklet:r.object,onStartNow:r.func,children:r.any,disabled:r.bool};dn.defaultProps={blocklet:null,onStartNow:()=>{},children:null,disabled:!1};const _r=F(y)`
|
|
67
67
|
width: 100%;
|
|
68
68
|
margin-top: auto;
|
|
69
69
|
padding-top: 24px;
|
|
@@ -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-gBZtvLTL.js";import{R as r}from"./index--TkSjE0u.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 +1 @@
|
|
|
1
|
-
import{r as E,q as j,z as I,j as e,V as W,C as
|
|
1
|
+
import{r as E,q as j,z as I,j as e,V as W,C as k,cr as T,O as v,x as L,A as h,F as N,u as R,y as S,am as U,ae as b}from"./index-gBZtvLTL.js";import{w as F}from"./wrap-locale-DHLOopMt.js";function _({SessionContext:t,webWalletUrl:a,onSuccess:c}){var g,u;const{api:o,session:n}=E.useContext(t),{t:s,locale:m}=j(),w=I(),{searchParams:l}=new URL(window.location.href),d=l.get("redirect"),P=async(r,C)=>{c(r,C),await n.refresh(),h.success(s("exchangePassport.success")),setTimeout(()=>{if(d){const i=decodeURIComponent(d);i.startsWith(N.WELLKNOWN_SERVICE_PATH_PREFIX)?w(i,{replace:!0}):window.location=i}else window.location=window.env.pathPrefix||window.env.apiPrefix||"/"},3e3)},f=r=>{h.error(r.message)},x={},p=l.get("componentId");return p&&(x.componentId=p),n.loading?e.jsx(W,{children:e.jsx(k,{})}):e.jsx(T,{did:((g=window==null?void 0:window.blocklet)==null?void 0:g.appPid)||((u=window==null?void 0:window.env)==null?void 0:u.appPid),children:e.jsx(v,{sx:{width:"560px",maxWidth:"100%",height:"100%"},children:e.jsx(L,{className:"connect",action:"exchange-passport",checkFn:o.get,checkTimeout:10*60*1e3,webWalletUrl:a,onSuccess:P,onError:f,locale:m,messages:{title:s("exchangePassport.dialog.title"),scan:s("exchangePassport.dialog.scan"),confirm:s("exchangePassport.dialog.confirm"),success:s("exchangePassport.dialog.success")},extraParams:x,extraContent:null})})})}const y=F(_);function O(){const{info:t}=R(),a=S(t),c=(o,n)=>{o.sessionToken&&b(n(o.sessionToken))};return e.jsx(y,{SessionContext:U,webWalletUrl:a,onSuccess:c})}export{O as default};
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
var Ft=Object.defineProperty;var zt=(e,t,n)=>t in e?Ft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Q=(e,t,n)=>(zt(e,typeof t!="symbol"?t+"":t,n),n);import{j as d,ce as ie,fY as fe,fZ as et,P as u,f_ as Ht,r as T,aO as Dt,ci as Ut,a2 as Bt,dT as Qt,dR as Vt,f$ as Wt,dQ as Zt,d2 as A,a7 as Gt,a8 as Jt,g0 as Yt,O as P,g1 as Xt,m as Kt,g2 as en,g3 as tn,B as nn,g4 as on,fL as tt,q as ee,g5 as rn,g6 as sn,cn,g7 as an,s as M,g8 as nt,g9 as ln,c8 as ot,ga as un,aA as rt,bU as de,bc as fn,co as st,gb as dn}from"./index-gBZtvLTL.js";import{d as pn}from"./ExpandMore-BVacVg2T.js";/**
|
|
2
|
+
* (c) Iconify
|
|
3
|
+
*
|
|
4
|
+
* For the full copyright and license information, please view the license.txt
|
|
5
|
+
* files at https://github.com/iconify/iconify
|
|
6
|
+
*
|
|
7
|
+
* Licensed under MIT.
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
* @version 1.0.8
|
|
11
|
+
*/const it=Object.freeze({left:0,top:0,width:16,height:16}),G=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),U=Object.freeze({...it,...G}),pe=Object.freeze({...U,body:"",hidden:!1}),hn=Object.freeze({width:null,height:null}),ct=Object.freeze({...hn,...G});function gn(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const mn=/[\s,]+/;function yn(e,t){t.split(mn).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const at={...ct,preserveAspectRatio:""};function Ee(e){const t={...at},n=(r,o)=>e.getAttribute(r)||o;return t.width=n("width",null),t.height=n("height",null),t.rotate=gn(n("rotate","")),yn(t,n("flip","")),t.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),t}function bn(e,t){for(const n in at)if(e[n]!==t[n])return!0;return!1}const q=/^[a-z0-9]+(-[a-z0-9]+)*$/,B=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),l={provider:o.length>0?o[0]:r,prefix:c,name:a};return t&&!W(l)?null:l}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!W(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!W(a,n)?null:a}return null},W=(e,t)=>e?!!((e.provider===""||e.provider.match(q))&&(t&&e.prefix===""||e.prefix.match(q))&&e.name.match(q)):!1;function xn(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function $e(e,t){const n=xn(e,t);for(const r in pe)r in G?r in e&&!(r in n)&&(n[r]=G[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function wn(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(s),o}function vn(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=$e(r[a]||o[a],s)}return i(t),n.forEach(i),$e(e,s)}function lt(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=wn(e);for(const o in r){const s=r[o];s&&(t(o,vn(e,o,s)),n.push(o))}return n}const kn={provider:"",aliases:{},not_found:{},...it};function ce(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function ut(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ce(e,kn))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(q)||typeof s.body!="string"||!ce(s,pe))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(q)||typeof i!="string"||!n[i]&&!r[i]||!ce(s,pe))return null}return t}const J=Object.create(null);function jn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function R(e,t){const n=J[e]||(J[e]=Object.create(null));return n[t]||(n[t]=jn(e,t))}function ve(e,t){return ut(t)?lt(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function In(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function Sn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(J)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(J[o]||{})).forEach(i=>{const a=R(o,i);n=n.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),n}let z=!1;function ft(e){return typeof e=="boolean"&&(z=e),z}function H(e){const t=typeof e=="string"?B(e,!0,z):e;if(t){const n=R(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function dt(e,t){const n=B(e,!0,z);if(!n)return!1;const r=R(n.provider,n.prefix);return In(r,n.name,t)}function _e(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),z&&!t&&!e.prefix){let o=!1;return ut(e)&&(e.prefix="",lt(e,(s,i)=>{i&&dt(s,i)&&(o=!0)})),o}const n=e.prefix;if(!W({provider:t,prefix:n,name:"a"}))return!1;const r=R(t,n);return!!ve(r,e)}function Tn(e){return!!H(e)}function Cn(e){const t=H(e);return t?{...U,...t}:null}function An(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,c=n[s]||(n[s]=Object.create(null)),l=c[i]||(c[i]=R(s,i));let f;a in l.icons?f=t.loaded:i===""||l.missing.has(a)?f=t.missing:f=t.pending;const p={provider:s,prefix:i,name:a};f.push(p)}),t}function pt(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Pn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const l=c.name;if(e.icons[l])i.loaded.push({provider:r,prefix:o,name:l});else if(e.missing.has(l))i.missing.push({provider:r,prefix:o,name:l});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||pt([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Mn=0;function Ln(e,t,n){const r=Mn++,o=pt.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}const he=Object.create(null);function qe(e,t){he[e]=t}function ge(e){return he[e]||he[""]}function Rn(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?B(o,t,n):o;s&&r.push(s)}),r}var Nn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function On(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let y=e.resources.slice(0);for(i=[];y.length>1;){const I=Math.floor(Math.random()*y.length);i.push(y[I]),y=y.slice(0,I).concat(y.slice(I+1))}i=i.concat(y)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let c="pending",l=0,f,p=null,h=[],g=[];typeof r=="function"&&g.push(r);function m(){p&&(clearTimeout(p),p=null)}function x(){c==="pending"&&(c="aborted"),m(),h.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),h=[]}function v(y,I){I&&(g=[]),typeof y=="function"&&g.push(y)}function k(){return{startTime:a,payload:t,status:c,queriesSent:l,queriesPending:h.length,subscribe:v,abort:x}}function b(){c="failed",g.forEach(y=>{y(void 0,f)})}function w(){h.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),h=[]}function C(y,I,L){const S=I!=="success";switch(h=h.filter(N=>N!==y),c){case"pending":break;case"failed":if(S||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){f=L,b();return}if(S){f=L,h.length||(i.length?j():b());return}if(m(),w(),!e.random){const N=e.resources.indexOf(y.resource);N!==-1&&N!==e.index&&(e.index=N)}c="completed",g.forEach(N=>{N(L)})}function j(){if(c!=="pending")return;m();const y=i.shift();if(y===void 0){if(h.length){p=setTimeout(()=>{m(),c==="pending"&&(w(),b())},e.timeout);return}b();return}const I={status:"pending",resource:y,callback:(L,S)=>{C(I,L,S)}};h.push(I),l++,p=setTimeout(j,e.rotate),n(y,t,I.callback)}return setTimeout(j),k}function ht(e){const t={...Nn,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,c,l){const f=On(t,a,c,(p,h)=>{r(),l&&l(p,h)});return n.push(f),f}function s(a){return n.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function ke(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const te=Object.create(null),_=["https://api.simplesvg.com","https://api.unisvg.com"],Z=[];for(;_.length>0;)_.length===1||Math.random()>.5?Z.push(_.shift()):Z.push(_.pop());te[""]=ke({resources:["https://api.iconify.design"].concat(Z)});function Fe(e,t){const n=ke(t);return n===null?!1:(te[e]=n,!0)}function ne(e){return te[e]}function En(){return Object.keys(te)}function ze(){}const ae=Object.create(null);function $n(e){if(!ae[e]){const t=ne(e);if(!t)return;const n=ht(t),r={config:t,redundancy:n};ae[e]=r}return ae[e]}function gt(e,t,n){let r,o;if(typeof e=="string"){const s=ge(e);if(!s)return n(void 0,424),ze;o=s.send;const i=$n(e);i&&(r=i.redundancy)}else{const s=ke(e);if(s){r=ht(s);const i=e.resources?e.resources[0]:"",a=ge(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),ze):r.query(t,o,n)().abort}const He="iconify2",D="iconify",mt=D+"-count",De=D+"-version",yt=36e5,_n=168;function me(e,t){try{return e.getItem(t)}catch{}}function je(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Ue(e,t){try{e.removeItem(t)}catch{}}function ye(e,t){return je(e,mt,t.toString())}function be(e){return parseInt(me(e,mt))||0}const O={local:!0,session:!0},bt={local:new Set,session:new Set};let Ie=!1;function qn(e){Ie=e}let V=typeof window>"u"?{}:window;function xt(e){const t=e+"Storage";try{if(V&&V[t]&&typeof V[t].length=="number")return V[t]}catch{}O[e]=!1}function wt(e,t){const n=xt(e);if(!n)return;const r=me(n,De);if(r!==He){if(r){const a=be(n);for(let c=0;c<a;c++)Ue(n,D+c.toString())}je(n,De,He),ye(n,0);return}const o=Math.floor(Date.now()/yt)-_n,s=a=>{const c=D+a.toString(),l=me(n,c);if(typeof l=="string"){try{const f=JSON.parse(l);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>o&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&t(f,a))return!0}catch{}Ue(n,c)}};let i=be(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,ye(n,i)):bt[e].add(a))}function vt(){if(!Ie){qn(!0);for(const e in O)wt(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=R(r,o);if(!ve(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function Fn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in O)wt(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function zn(e,t){Ie||vt();function n(r){let o;if(!O[r]||!(o=xt(r)))return;const s=bt[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=be(o),!ye(o,i+1))return;const a={cached:Math.floor(Date.now()/yt),provider:e.provider,data:t};return je(o,D+i.toString(),JSON.stringify(a))}t.lastModified&&!Fn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Be(){}function Hn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Pn(e)}))}function Dn(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=ge(n)))return;s.prepare(n,r,o).forEach(a=>{gt(n,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{e.missing.add(l)});else try{const l=ve(e,c);if(!l.length)return;const f=e.pendingIcons;f&&l.forEach(p=>{f.delete(p)}),zn(e,c)}catch(l){console.error(l)}Hn(e)})})}))}const Se=(e,t)=>{const n=Rn(e,!0,ft()),r=An(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,Be)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(c=>{const{provider:l,prefix:f}=c;if(f===a&&l===i)return;i=l,a=f,s.push(R(l,f));const p=o[l]||(o[l]=Object.create(null));p[f]||(p[f]=[])}),r.pending.forEach(c=>{const{provider:l,prefix:f,name:p}=c,h=R(l,f),g=h.pendingIcons||(h.pendingIcons=new Set);g.has(p)||(g.add(p),o[l][f].push(p))}),s.forEach(c=>{const{provider:l,prefix:f}=c;o[l][f].length&&Dn(c,o[l][f])}),t?Ln(t,r,s):Be},Un=e=>new Promise((t,n)=>{const r=typeof e=="string"?B(e,!0):e;if(!r){n(e);return}Se([r||e],o=>{if(o.length&&r){const s=H(r);if(s){t({...U,...s});return}}n(e)})});function Bn(e){try{const t=typeof e=="string"?JSON.parse(e):e;if(typeof t.body=="string")return{...t}}catch{}}function Qn(e,t){const n=typeof e=="string"?B(e,!0,!0):null;if(!n){const s=Bn(e);return{value:e,data:s}}const r=H(n);if(r!==void 0||!n.prefix)return{value:e,name:n,data:r};const o=Se([n],()=>t(e,n,H(n)));return{value:e,name:n,loading:o}}function le(e){return e.hasAttribute("inline")}let kt=!1;try{kt=navigator.vendor.indexOf("Apple")===0}catch{}function Vn(e,t){switch(t){case"svg":case"bg":case"mask":return t}return t!=="style"&&(kt||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const Wn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Zn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function xe(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Wn);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=Zn.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const Gn=e=>e==="unset"||e==="undefined"||e==="none";function jt(e,t){const n={...U,...e},r={...ct,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(m=>{const x=[],v=m.hFlip,k=m.vFlip;let b=m.rotate;v?k?b+=2:(x.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),x.push("scale(-1 1)"),o.top=o.left=0):k&&(x.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),x.push("scale(1 -1)"),o.top=o.left=0);let w;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:w=o.height/2+o.top,x.unshift("rotate(90 "+w.toString()+" "+w.toString()+")");break;case 2:x.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:w=o.width/2+o.left,x.unshift("rotate(-90 "+w.toString()+" "+w.toString()+")");break}b%2===1&&(o.left!==o.top&&(w=o.left,o.left=o.top,o.top=w),o.width!==o.height&&(w=o.width,o.width=o.height,o.height=w)),x.length&&(s='<g transform="'+x.join(" ")+'">'+s+"</g>")});const i=r.width,a=r.height,c=o.width,l=o.height;let f,p;i===null?(p=a===null?"1em":a==="auto"?l:a,f=xe(p,c/l)):(f=i==="auto"?c:i,p=a===null?xe(f,l/c):a==="auto"?l:a);const h={},g=(m,x)=>{Gn(x)||(h[m]=x.toString())};return g("width",f),g("height",p),h.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:h,body:s}}const Jn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Y=Jn();function Yn(e){Y=e}function Xn(){return Y}function Kn(e,t){const n=ne(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function eo(e){return e===404}const to=(e,t,n)=>{const r=[],o=Kn(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((c,l)=>{a+=c.length+1,a>=o&&l>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=c.length),i.icons.push(c)}),r.push(i),r};function no(e){if(typeof e=="string"){const t=ne(e);if(t)return t.path}return"/"}const oo=(e,t,n)=>{if(!Y){n("abort",424);return}let r=no(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});r+=s+".json?"+c.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;Y(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(eo(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},ro={prepare:to,send:oo};function Qe(e,t){switch(e){case"local":case"session":O[e]=t;break;case"all":for(const n in O)O[n]=t;break}}const ue="data-style";let It="";function so(e){It=e}function Ve(e,t){let n=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(ue));n||(n=document.createElement("style"),n.setAttribute(ue,ue),e.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(t?"-0.125em":"0")+"}span,svg{display:block}"+It}function St(){qe("",ro),ft(!0);let e;try{e=window}catch{}if(e){if(vt(),e.IconifyPreload!==void 0){const n=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!_e(o))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const n=e.IconifyProviders;if(typeof n=="object"&&n!==null)for(const r in n){const o="IconifyProviders["+r+"] is invalid.";try{const s=n[r];if(typeof s!="object"||!s||s.resources===void 0)continue;Fe(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>Qe(n,!0),disableCache:n=>Qe(n,!1),iconExists:Tn,getIcon:Cn,listIcons:Sn,addIcon:dt,addCollection:_e,calculateSize:xe,buildIcon:jt,loadIcons:Se,loadIcon:Un,addAPIProvider:Fe,appendCustomStyle:so,_api:{getAPIConfig:ne,setAPIModule:qe,sendAPIQuery:gt,setFetch:Yn,getFetch:Xn,listAPIProviders:En}}}function Tt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function io(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function co(e){return"data:image/svg+xml,"+io(e)}function ao(e){return'url("'+co(e)+'")'}const we={"background-color":"currentColor"},Ct={"background-color":"transparent"},We={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ze={"-webkit-mask":we,mask:we,background:Ct};for(const e in Ze){const t=Ze[e];for(const n in We)t[e+"-"+n]=We[n]}function Ge(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function lo(e,t,n){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=e.attributes,i=Tt(o,{...s,width:t.width+"",height:t.height+""}),a=ao(i),c=r.style,l={"--svg":a,width:Ge(s.width),height:Ge(s.height),...n?we:Ct};for(const f in l)c.setProperty(f,l[f]);return r}let F;function uo(){try{F=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{F=null}}function fo(e){return F===void 0&&uo(),F?F.createHTML(e):e}function po(e){const t=document.createElement("span"),n=e.attributes;let r="";n.width||(r="width: inherit;"),n.height||(r+="height: inherit;"),r&&(n.style=r);const o=Tt(e.body,n);return t.innerHTML=fo(o),t.firstChild}function Je(e,t){const n=t.icon.data,r=t.customisations,o=jt(n,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=t.renderedMode;let i;switch(s){case"svg":i=po(o);break;default:i=lo(o,{...U,...n},s==="mask")}const a=Array.from(e.childNodes).find(c=>{const l=c.tagName&&c.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):e.replaceChild(i,a):e.appendChild(i)}function Ye(e,t,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:t,icon:e,lastRender:r}}function ho(e="iconify-icon"){let t,n;try{t=window.customElements,n=window.HTMLElement}catch{return}if(!t||!n)return;const r=t.get(e);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],s=class extends n{constructor(){super();Q(this,"_shadowRoot");Q(this,"_state");Q(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),l=le(this);Ve(c,l),this._state=Ye({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const l=le(this),f=this._state;l!==f.inline&&(f.inline=l,Ve(this._shadowRoot,l))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return le(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const l=this._shadowRoot;if(c.renderedMode==="svg")try{l.lastChild.setCurrentTime(0);return}catch{}Je(l,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,l=this.getAttribute("icon");if(l!==c.icon.value){this._iconChanged(l);return}if(!c.rendered)return;const f=this.getAttribute("mode"),p=Ee(this);(c.attrMode!==f||bn(c.customisations,p))&&this._renderIcon(c.icon,p,f)}_iconChanged(c){const l=Qn(c,(f,p,h)=>{const g=this._state;if(g.rendered||this.getAttribute("icon")!==f)return;const m={value:f,name:p,data:h};m.data?this._gotIconData(m):g.icon=m});l.data?this._gotIconData(l):this._state=Ye(l,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,Ee(this),this.getAttribute("mode"))}_renderIcon(c,l,f){const p=Vn(c.data.body,f),h=this._state.inline;Je(this._shadowRoot,this._state={rendered:!0,icon:c,inline:h,customisations:l,attrMode:f,renderedMode:p})}};o.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=St();for(const a in i)s[a]=s.prototype[a]=i[a];return t.define(e,s),s}ho()||St();const E=(e,t,n="children")=>e.map(r=>Array.isArray(r[n])?t({...r,[n]:E(r[n],t,n)}):t(r)),At=(e,t="children")=>{const n=[];return E(e,r=>n.push(r),t),n},Te=(e,t,n="children")=>e.map(r=>({...r})).filter(r=>{const o=r[n];if(Array.isArray(o)){const i=Te(o,t,n);r[n]=i!=null&&i.length?i:void 0}const s={filteredChildren:r[n],isLeaf:!(o!=null&&o.length)};return t(r,s)}),Pt=e=>/^https?:\/\//.test(e),go=e=>/^[\w-]+:[\w-]+$/.test(e),mo=e=>{if(!e||!(e!=null&&e.startsWith("/")))return!1;const t=o=>o.endsWith("/")?o:`${o}/`,n=t(window.location.pathname),r=t(new URL(e,window.location.origin).pathname);return n.startsWith(r)},Mt=(e=[])=>{const t=e.map((r,o)=>({path:r,index:o})).filter(r=>mo(r.path));return t!=null&&t.length?t.slice(1).reduce((r,o)=>r.path.length>=o.path.length?r:o,t[0]).index:-1};function Ce({icon:e,size:t,sx:n,...r}){const o=[...Array.isArray(n)?n:[n]];if(t&&o.push({width:t,height:t}),r.variant||o.push({"&.MuiAvatar-root":{color:"inherit",fontWeight:"bold",backgroundColor:"transparent",borderRadius:0},"&.MuiAvatar-root svg":{width:"100%",height:"100%"}}),Pt(e))return d.jsx(ie,{component:"span",...r,src:e,sx:o});if(go(e)){const s=t?.6*t+4:0;return d.jsx(ie,{component:"span",...r,sx:o,children:d.jsx(fe,{icon:e,height:s||void 0})})}return e&&typeof e=="string"?(o.push({"&.MuiAvatar-root":{display:"inline-flex",...t&&{fontSize:t-2}}}),d.jsx(ie,{component:"span",...r,sx:o,children:Array.from(e)[0]})):null}const yo=et();function oe({theme:e,children:t}){const n=e?et(e):yo;return d.jsx(Ht,{theme:n,children:t})}oe.propTypes={children:u.any.isRequired,theme:u.object};oe.defaultProps={theme:null};var Xe,Ke;const X=((Xe=window==null?void 0:window.blocklet)==null?void 0:Xe.groupPrefix)||((Ke=window==null?void 0:window.blocklet)==null?void 0:Ke.prefix)||"/",bo=e=>{const t={...e},n=e==null?void 0:e.background;return typeof n=="string"?t.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(t.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),t},$=(e,t="en")=>{if(!(e!=null&&e.length))return e;const n=(o,s)=>typeof o=="string"?o:typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,r=(o,s)=>{if(typeof o=="string"){if(Pt(o)){const a=new URL(o);return a.searchParams.set("locale",s),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",s),i.pathname+i.search}return typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return E(e,o=>{var s;return{...o,title:n(o.title,t),link:(s=o.items)!=null&&s.length?o.link:r(o.link,t),_rawLink:o.link}},"items")},xo=e=>E(e,t=>t.role?{...t,role:Array.isArray(t.role)?t.role:[t.role]}:t,"items"),wo=e=>{if(!(e!=null&&e.length))return null;const t=xo(e),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return t.forEach(r=>{var o;r.section?Array.isArray(r.section)?r.section.forEach(s=>{var i;(i=n[s])==null||i.push(r)}):typeof r.section=="string"&&((o=n[r.section])==null||o.push(r)):n.header.push(r)}),n},Ae=e=>{if(!e)return null;const t={...e};return t.theme=bo(t.theme),t.navigation=wo(vo(t.navigation)),t},vo=(e=[])=>Te(e,(t,n)=>{var r;return!!t.link||((r=n.filteredChildren)==null?void 0:r.length)},"items"),Lt=(e,t)=>Te(e,(n,r)=>{var s;const o=!n.role||t&&n.role.includes(t);return r.isLeaf?o:o&&((s=r.filteredChildren)==null?void 0:s.length)},"items"),ko={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},jo={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function Pe({session:e,locale:t,size:n}){const r=(window==null?void 0:window.blocklet)||{},o=(r.navigation||[]).filter(c=>c.section==="sessionManager"&&!["/sessionManager"].includes(c.id)).filter(c=>{var l;return!!((c==null?void 0:c.role)||[]).includes(((l=e==null?void 0:e.user)==null?void 0:l.role)||"guest")}).map(c=>{const l=((r==null?void 0:r.componentMountPoints)||[]).find(f=>c.component===f.name);return{...c,component:l}}),s=T.useRef(null),i=Dt({open:!1}),a=Ut((c=!i.open)=>{i.open=c});return o.length===0||!(e!=null&&e.user)?null:d.jsxs(d.Fragment,{children:[d.jsx(Bt,{size:"medium",ref:s,onClick:()=>a(),children:d.jsx(fe,{icon:ko,fontSize:n,style:{transform:"scale(1.08)"}})}),d.jsx(Qt,{open:i.open,onClose:()=>a(!1),anchorEl:s.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:c})=>d.jsx(Vt,{onClickAway:l=>{l.preventDefault(),l.stopPropagation(),a(!1)},children:d.jsx(Wt,{...c,timeout:350,children:d.jsxs(Zt,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:A.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${A.gray6}, 0px 0px 0px 1px ${A.gray6}`},children:[d.jsx(Gt,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:o.map(l=>{var f;return d.jsx(Jt,{disablePadding:!0,children:d.jsxs(Yt,{href:l.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:A.surfacePrimarySubtitle}},children:[(f=l==null?void 0:l.component)!=null&&f.did?d.jsx(P,{component:"img",src:`${Xt}/blocklet/logo-bundle/${l.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):d.jsx(fe,{fontSize:50,icon:l.icon||jo,color:A.textSubtitle}),d.jsx(Kt,{sx:{fontSize:"12px",color:A.textBase,textAlign:"center",lineHeight:"normal"},children:en(l.title,t)})]})},l.id)})}),d.jsx(tn,{session:e,children:d.jsx(nn,{variant:"outlined",fullWidth:!0,href:on,sx:{mt:1,borderRadius:2,color:A.textBase,borderColor:A.lineBorderStrong,"&:hover":{color:A.primaryBase,borderColor:A.primaryBase}},children:t==="zh"?"管理":"Manage"})})]})})})})]})}Pe.propTypes={session:u.object.isRequired,locale:u.string,size:u.number};Pe.defaultProps={locale:"en",size:24};const Rt=u.shape({appLogo:u.node,appName:u.string,theme:u.shape({background:u.string}),enableConnect:u.bool,enableLocale:u.bool,navigation:u.arrayOf(u.shape({title:u.oneOfType([u.string,u.object]),link:u.oneOfType([u.string,u.object]),icon:u.string,items:u.arrayOf(u.shape({title:u.oneOfType([u.string,u.object]),link:u.oneOfType([u.string,u.object])}))}))}),Nt=u.shape({showText:u.bool,showRole:u.bool,switchDid:u.bool,switchProfile:u.bool,switchPassport:u.bool,disableLogout:u.bool,onLogin:u.func,onLogout:u.func,onSwitchDid:u.func,onSwitchProfile:u.func,onSwitchPassport:u.func,menu:u.array,menuRender:u.func,dark:u.bool,size:u.number});function re({formattedBlocklet:e,addons:t,sessionManagerProps:n}){var h,g,m,x;const r=T.useContext(tt),{locale:o}=ee()||{},{enableConnect:s=!0,enableLocale:i=!0}=e,a=!!((h=r==null?void 0:r.session)!=null&&h.user);let c=$((g=e==null?void 0:e.navigation)==null?void 0:g.sessionManager,o)||[];c=Lt(c,(x=(m=r==null?void 0:r.session)==null?void 0:m.user)==null?void 0:x.role);const f=(()=>{if(t&&typeof t!="function")return Array.isArray(t)?t:[t];let v=[];if(i&&o&&v.push(d.jsx(rn,{showText:!1},"locale-selector")),s&&r){const k=[];a&&(c?c.slice(0,5):[]).forEach(w=>{k.push({label:w.title,icon:w.icon?d.jsx("iconify-icon",{icon:w.icon,height:24,style:{marginRight:8}}):null,component:"a",href:w.link,key:w.link})}),v.push(d.jsx(Pe,{session:r.session,locale:o},"session-blocklet")),v.push(d.jsx(sn,{session:r.session,locale:o,menu:k,showRole:!0,...n},"session-user"))}return typeof t=="function"&&(v=t(v)||[]),v})();return T.createElement(d.Fragment,null,...Array.isArray(f)?f:[f])}re.propTypes={formattedBlocklet:u.object.isRequired,addons:u.oneOfType([u.func,u.node]),sessionManagerProps:Nt};re.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const Ot=()=>{const e=cn();T.useEffect(()=>{e.wallet&&an.call("arcHideTopBar","{}")},[e])},Io=e=>{if(!(e!=null&&e.length))return{navItems:[],activeId:null};let t=1;const r=E(e,i=>{var l,f;const a=i.icon?d.jsx(Ce,{icon:i.icon}):null;if(i.items)return{id:`${t++}`,label:i.title,icon:a,children:i.items};let c={};return((l=i.link)!=null&&l.startsWith("http://")||(f=i.link)!=null&&f.startsWith("https://"))&&(c={target:"_blank",rel:"noreferrer"}),{id:`${t++}`,label:d.jsx("a",{href:i.link,...c,children:i.title}),icon:a,link:i.link}},"items"),o=At(r),s=Mt(o.map(i=>i.link));return{navItems:r,activeId:s>=0?o[s].id:null}};function So({meta:e={},addons:t,sessionManagerProps:n={showRole:!0},homeLink:r=X,theme:o,hideNavMenu:s=!1,...i}){var b,w;Ot();const{locale:a}=ee()||{},c=T.useMemo(()=>{const C=Object.assign({},window.blocklet,e);try{return Ae(C)}catch(j){return console.error("Failed to format blocklet info",j,C),C}},[e]);if(!c.appName)return null;const{appLogo:l,appLogoRect:f,theme:p}=c,h=$((b=c==null?void 0:c.navigation)==null?void 0:b.header,a),g=Io(h),{navItems:m,activeId:x}=g,v=typeof t=="function"?C=>t(C,{navigation:g}):t,k=d.jsx(re,{formattedBlocklet:c,addons:v,sessionManagerProps:n});return d.jsx(oe,{theme:o,children:d.jsx(To,{homeLink:r,logo:d.jsx("img",{src:f||l,alt:"logo"}),addons:k,...ot(i,["bordered"]),$bordered:i==null?void 0:i.bordered,$bgcolor:(w=p==null?void 0:p.background)==null?void 0:w.header,children:s||!(m!=null&&m.length)?null:({isMobile:C})=>d.jsx(un,{mode:C?"inline":"horizontal",activeId:x,items:m,className:"header-nav",bgColor:"transparent",textColor:"#777"})})})}const To=M(ln)`
|
|
12
|
+
${({$bgcolor:e})=>`background-color: ${e||"#fff"};`}
|
|
13
|
+
font-family: Inter, Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,
|
|
14
|
+
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
15
|
+
.header-logo {
|
|
16
|
+
min-width: 44px;
|
|
17
|
+
}
|
|
18
|
+
${({$bordered:e})=>e?`border-bottom: 1px solid ${A.strokeSep};`:""}
|
|
19
|
+
${e=>e.theme.breakpoints.down("md")} {
|
|
20
|
+
.header-logo {
|
|
21
|
+
min-width: 32px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
.header-nav {
|
|
25
|
+
.navmenu-sub .navmenu-item {
|
|
26
|
+
min-width: 80px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
.header-nav.navmenu--horizontal {
|
|
30
|
+
.navmenu-root > .navmenu-sub,
|
|
31
|
+
.navmenu-root > .navmenu-item {
|
|
32
|
+
padding: 16px 4px;
|
|
33
|
+
|
|
34
|
+
.navmenu-sub-container {
|
|
35
|
+
padding-top: 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
.navmenu-item-icon > .MuiAvatar-root,
|
|
39
|
+
.navmenu-sub-icon > .MuiAvatar-root {
|
|
40
|
+
width: 20px;
|
|
41
|
+
height: 20px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
`,Fo=nt(So,{FallbackComponent:rt});function Me({name:e,logo:t,description:n,...r}){if(!e&&!t&&!n)return null;const o=T.isValidElement(t)?t:d.jsx("img",{src:t,alt:e});return d.jsxs(Co,{...r,children:[d.jsxs("div",{children:[t&&d.jsx(P,{component:"a",href:"/",className:"footer-brand-logo",children:o}),e&&d.jsx("div",{className:"footer-brand-name",children:e})]}),n&&d.jsx("div",{className:"footer-brand-desc",children:n})]})}Me.propTypes={name:u.node,logo:u.node,description:u.string};Me.defaultProps={name:"",logo:"",description:""};const Co=M("div")`
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
font-size: 14px;
|
|
48
|
+
a {
|
|
49
|
+
text-decoration: none;
|
|
50
|
+
color: inherit;
|
|
51
|
+
}
|
|
52
|
+
> div:first-of-type {
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
}
|
|
56
|
+
.footer-brand-logo {
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
margin-right: 16px;
|
|
60
|
+
line-height: 1;
|
|
61
|
+
img,
|
|
62
|
+
svg {
|
|
63
|
+
width: auto;
|
|
64
|
+
height: 44px;
|
|
65
|
+
max-height: 44px;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
.footer-brand-name {
|
|
69
|
+
font-size: 16px;
|
|
70
|
+
font-weight: bold;
|
|
71
|
+
}
|
|
72
|
+
.footer-brand-desc {
|
|
73
|
+
margin-top: 16px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
${e=>e.theme.breakpoints.down("sm")} {
|
|
77
|
+
width: auto;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
${e=>e.theme.breakpoints.down("md")} {
|
|
81
|
+
.footer-brand-logo {
|
|
82
|
+
img,
|
|
83
|
+
svg {
|
|
84
|
+
height: 32px;
|
|
85
|
+
max-height: 32px;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
`;function K({links:e,flowLayout:t,...n}){const[r,o]=T.useState(-1);if(!(e!=null&&e.length))return null;const s=e.some(a=>{var c;return(c=a.items)==null?void 0:c.length}),i=({label:a,link:c,icon:l,render:f,props:p})=>{let h=a;return f?h=f({label:a,link:c,props:p}):c&&(h=d.jsx("a",{href:c,"aria-label":`Footer link for ${a}`,...p,children:a})),d.jsxs(d.Fragment,{children:[l&&d.jsx(Ce,{icon:l,size:20,sx:{mr:.5}}),h]})};return d.jsx(Ao,{...n,className:de(n.className,{"footer-links--grouped":s,"footer-links--flow":t}),children:d.jsxs("div",{className:"footer-links-inner",children:[t&&e.map((a,c)=>d.jsx("span",{className:"footer-links-item",children:i(a)},c)),!t&&e.map((a,c)=>{const{items:l}=a,f=c===r;return d.jsxs("div",{className:de("footer-links-group",{"footer-links-group--active":f}),onClick:()=>o(r===c?-1:c),children:[d.jsxs("span",{className:"footer-links-item",children:[i(a),!!(l!=null&&l.length)&&d.jsx("span",{className:"footer-links-group-expand-icon",children:d.jsx(pn,{style:{transform:`rotate(${f?180:0}deg)`}})})]}),!!(l!=null&&l.length)&&d.jsx("div",{className:"footer-links-sub",children:l.map((p,h)=>d.jsx("span",{className:"footer-links-item",children:i(p)},h))})]},c)})]})})}K.propTypes={links:u.arrayOf(u.shape({label:u.string,link:u.string,render:u.func,props:u.object})),flowLayout:u.bool};K.defaultProps={links:[],flowLayout:!1};const Ao=M("div")`
|
|
90
|
+
overflow: hidden;
|
|
91
|
+
color: ${e=>e.theme.palette.grey[600]};
|
|
92
|
+
.footer-links-inner {
|
|
93
|
+
display: flex;
|
|
94
|
+
justify-content: space-between;
|
|
95
|
+
margin: 0 -8px;
|
|
96
|
+
}
|
|
97
|
+
.footer-links-group,
|
|
98
|
+
.footer-links-sub {
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-direction: column;
|
|
101
|
+
}
|
|
102
|
+
.footer-links-sub .footer-links-item {
|
|
103
|
+
color: ${e=>e.theme.palette.grey[900]};
|
|
104
|
+
}
|
|
105
|
+
.footer-links-group-expand-icon {
|
|
106
|
+
display: none;
|
|
107
|
+
position: absolute;
|
|
108
|
+
right: 16px;
|
|
109
|
+
top: 50%;
|
|
110
|
+
transform: translate(0, -50%);
|
|
111
|
+
line-height: 1;
|
|
112
|
+
svg {
|
|
113
|
+
width: auto;
|
|
114
|
+
height: 0.75em;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
.footer-links-item {
|
|
118
|
+
display: inline-flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
position: relative;
|
|
121
|
+
padding: 4px 8px;
|
|
122
|
+
font-size: 14px;
|
|
123
|
+
}
|
|
124
|
+
&.footer-links--grouped {
|
|
125
|
+
.footer-links-group {
|
|
126
|
+
> .footer-links-item {
|
|
127
|
+
font-weight: bold;
|
|
128
|
+
}
|
|
129
|
+
.footer-links-sub {
|
|
130
|
+
margin-top: 8px;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
a {
|
|
135
|
+
display: inline-block;
|
|
136
|
+
max-width: 150px;
|
|
137
|
+
color: inherit;
|
|
138
|
+
text-decoration: none;
|
|
139
|
+
&:hover {
|
|
140
|
+
text-decoration: underline;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&.footer-links--flow {
|
|
145
|
+
display: inline-flex;
|
|
146
|
+
.footer-links-inner {
|
|
147
|
+
justify-content: center;
|
|
148
|
+
flex-wrap: wrap;
|
|
149
|
+
margin: 0 -8px;
|
|
150
|
+
.footer-links-item {
|
|
151
|
+
padding: 0 8px;
|
|
152
|
+
}
|
|
153
|
+
.footer-links-item + .footer-links-item::before {
|
|
154
|
+
content: '';
|
|
155
|
+
position: absolute;
|
|
156
|
+
left: 0;
|
|
157
|
+
top: 50%;
|
|
158
|
+
transform: translate(0, -50%);
|
|
159
|
+
height: 1em;
|
|
160
|
+
border-left: 1px solid ${e=>e.theme.palette.grey[400]};
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
${e=>e.theme.breakpoints.down("md")} {
|
|
166
|
+
.footer-links-inner {
|
|
167
|
+
flex-direction: column;
|
|
168
|
+
margin: 0;
|
|
169
|
+
}
|
|
170
|
+
.footer-links-sub {
|
|
171
|
+
display: none;
|
|
172
|
+
}
|
|
173
|
+
.footer-links-group {
|
|
174
|
+
position: relative;
|
|
175
|
+
padding: 12px 0;
|
|
176
|
+
.footer-links-item .footer-links-group-expand-icon {
|
|
177
|
+
display: inline-block;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
.footer-links-group + .footer-links-group {
|
|
181
|
+
border-top: 1px solid ${e=>e.theme.palette.grey[200]};
|
|
182
|
+
}
|
|
183
|
+
.footer-links-group--active {
|
|
184
|
+
.footer-links-sub {
|
|
185
|
+
display: flex;
|
|
186
|
+
flex-direction: row;
|
|
187
|
+
flex-wrap: wrap;
|
|
188
|
+
.footer-links-item {
|
|
189
|
+
flex: 0 0 50%;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
.footer-links-item {
|
|
194
|
+
padding-left: 0;
|
|
195
|
+
padding-right: 0;
|
|
196
|
+
font-size: 13px;
|
|
197
|
+
}
|
|
198
|
+
&.footer-links--grouped {
|
|
199
|
+
.footer-links-group {
|
|
200
|
+
> .footer-links-item {
|
|
201
|
+
font-size: 14px;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&.footer-links--flow {
|
|
207
|
+
.footer-links-inner {
|
|
208
|
+
flex-direction: row;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
`;function Le({items:e,...t}){const n=fn();return e!=null&&e.length?d.jsx(Po,{...t,children:e.map((r,o)=>d.jsx("a",{href:r.link,target:"_blank","aria-label":`Social media icon${r.title?` for ${r.title}`:""}`,rel:"noreferrer",children:d.jsx(Ce,{icon:r.icon||r.title,sx:{bgcolor:n.palette.grey[600],color:"#fff"},size:24,component:"span"})},o))}):null}Le.propTypes={items:u.arrayOf(u.shape({icon:u.string,link:u.string}))};Le.defaultProps={items:null};const Po=M("div")`
|
|
213
|
+
display: inline-flex;
|
|
214
|
+
flex-wrap: wrap;
|
|
215
|
+
align-items: center;
|
|
216
|
+
justify-content: center;
|
|
217
|
+
gap: 20px;
|
|
218
|
+
a {
|
|
219
|
+
color: ${e=>e.theme.palette.grey[400]};
|
|
220
|
+
text-decoration: none;
|
|
221
|
+
&:hover {
|
|
222
|
+
color: ${e=>e.theme.palette.primary.light};
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
${e=>e.theme.breakpoints.down("md")} {
|
|
226
|
+
gap: 12px;
|
|
227
|
+
}
|
|
228
|
+
`;function Re({owner:e,year:t,...n}){return d.jsxs(Mo,{...n,children:["Copyright © ",t," ",e]})}Re.propTypes={owner:u.string,year:u.string};Re.defaultProps={owner:"ArcBlock",year:`${new Date().getFullYear()}`};const Mo=M("p")`
|
|
229
|
+
display: flex;
|
|
230
|
+
align-items: center;
|
|
231
|
+
margin: 0;
|
|
232
|
+
font-size: 13px;
|
|
233
|
+
`;function se({children:e,autoCenter:t,...n}){return e?d.jsx(Lo,{...n,className:de(n.className,{"footer-row-auto-center":t}),children:e}):null}se.propTypes={children:u.any,autoCenter:u.bool};se.defaultProps={children:null,autoCenter:!1};const Lo=M(P)`
|
|
234
|
+
display: flex;
|
|
235
|
+
justify-content: space-between;
|
|
236
|
+
& + & {
|
|
237
|
+
margin-top: 24px;
|
|
238
|
+
}
|
|
239
|
+
&.footer-row-auto-center > *:only-child {
|
|
240
|
+
margin: 0 auto;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
${e=>e.theme.breakpoints.down("md")} {
|
|
244
|
+
align-items: stretch;
|
|
245
|
+
flex-direction: column;
|
|
246
|
+
gap: 16px;
|
|
247
|
+
> * {
|
|
248
|
+
flex: 1 0 100%;
|
|
249
|
+
}
|
|
250
|
+
&.footer-row-auto-center > * {
|
|
251
|
+
margin: 0 auto;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
`;function Et({elements:e,data:t,...n}){var r;return d.jsx(Ro,{...n,children:d.jsxs(st,{children:[d.jsxs(P,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},justifyContent:"space-between",alignItems:{xs:"center",md:"space-between"},gap:2,pb:3},children:[d.jsx(P,{children:e.brand}),d.jsx(P,{lineHeight:1,children:e.socialMedia})]}),!!((r=t.navigation)!=null&&r.length)&&d.jsx(P,{sx:{mb:6,pt:3,borderTop:1,borderColor:"grey.200"},children:e.navigation}),d.jsxs(se,{sx:{pt:3,borderTop:1,borderColor:"grey.200"},autoCenter:!0,children:[e.copyright,e.links]})]})})}Et.propTypes={elements:u.shape({brand:u.element,navigation:u.element,socialMedia:u.element,copyright:u.element,links:u.element}).isRequired,data:u.object.isRequired};const Ro=M("div")`
|
|
255
|
+
padding: 32px 0 24px 0;
|
|
256
|
+
.footer-brand-name,
|
|
257
|
+
.footer-brand-desc {
|
|
258
|
+
display: none;
|
|
259
|
+
}
|
|
260
|
+
&& .footer-brand-logo {
|
|
261
|
+
margin-right: 0;
|
|
262
|
+
}
|
|
263
|
+
`;function $t({elements:e,data:t,...n}){return d.jsx(No,{...n,children:d.jsxs(st,{className:"plain-layout-container",children:[!!t.links&&d.jsxs(se,{sx:{width:1},autoCenter:!0,children:[e.copyright,e.links]}),!t.links&&d.jsxs(d.Fragment,{children:[T.cloneElement(e.brand,{name:null,description:null}),e.copyright]})]})})}$t.propTypes={elements:u.shape({brand:u.element,navigation:u.element,socialMedia:u.element,copyright:u.element,links:u.element}).isRequired,data:u.object.isRequired};const No=M("div")`
|
|
264
|
+
padding: 24px 0;
|
|
265
|
+
.plain-layout-container {
|
|
266
|
+
display: flex;
|
|
267
|
+
justify-content: space-between;
|
|
268
|
+
align-items: center;
|
|
269
|
+
flex-wrap: wrap;
|
|
270
|
+
gap: 8px;
|
|
271
|
+
}
|
|
272
|
+
`,_t=[{name:"plain",support:(e,t)=>{var n,r;return!((n=t.navigation)!=null&&n.length)&&!((r=t.socialMedia)!=null&&r.length)},component:$t},{name:"standard",support:()=>!0,component:Et}],Oo=_t.reduce((e,t)=>({...e,[t.name]:t}),{});function Ne(e){var x,v;const{brand:t,navigation:n,socialMedia:r,copyright:o,links:s,layout:i,...a}=e,c=()=>t?d.jsx(Me,{...t}):null,l=()=>n!=null&&n.length?d.jsx(K,{links:n}):null,f=()=>r!=null&&r.length?d.jsx(Le,{items:r}):null,p=()=>{const k=(o==null?void 0:o.owner)||(t==null?void 0:t.name);return k?d.jsx(Re,{owner:k,year:(o==null?void 0:o.year)||void 0}):null},h=()=>s!=null&&s.length?d.jsx(K,{flowLayout:!0,links:s}):null,g={brand:c(),navigation:l(),socialMedia:f(),copyright:p(),links:h()};let m=null;if(i==="auto"?m=_t.find(k=>k.support(g,e)).component:m=(x=Oo[i])==null?void 0:x.component,!m)throw new Error(`layout ${i} is not supported.`);return d.jsxs(P,{position:"relative",...a,children:[d.jsx(m,{elements:g,data:e}),d.jsx(P,{position:"absolute",right:16,bottom:0,fontSize:12,sx:{color:"transparent","::selection":{background:"#000",color:"#fff"}},children:(v=window==null?void 0:window.blocklet)==null?void 0:v.version})]})}Ne.propTypes={brand:u.shape({name:u.node,description:u.string,logo:u.node}),navigation:u.arrayOf(u.shape({label:u.node,link:u.string})),socialMedia:u.arrayOf(u.shape({icon:u.node,link:u.string})),copyright:u.shape({owner:u.string,year:u.oneOfType([u.string,u.number])}),links:u.arrayOf(u.shape({label:u.node,link:u.string})),layout:u.oneOf(["auto","standard","plain"])};Ne.defaultProps={brand:null,navigation:null,copyright:null,socialMedia:null,links:null,layout:"auto"};function Oe({meta:e,theme:t,...n}){var m,x,v,k;const{locale:r}=ee()||{},o=T.useMemo(()=>{const b=Object.assign({},window.blocklet,e);try{return Ae(b)}catch(w){return console.error("Failed to format blocklet info",w,b),b}},[e]);if(!o.appName)return null;const{appLogo:s,appLogoRect:i,appName:a,appDescription:c,description:l,theme:f,copyright:p}=o,h={footerNav:$((m=o==null?void 0:o.navigation)==null?void 0:m.footer,r)||[],socialMedia:$((x=o==null?void 0:o.navigation)==null?void 0:x.social,r)||[],links:$((v=o==null?void 0:o.navigation)==null?void 0:v.bottom,r)||[]},g={brand:{name:a,description:c||l,logo:i||s},navigation:E(h.footerNav,b=>({...b,label:b.title,link:b.link}),"items"),copyright:p,socialMedia:h.socialMedia,links:h.links.map(b=>({...b,label:b.title}))};return d.jsx(oe,{theme:t,children:d.jsx(Eo,{...g,...ot(n,["bordered"]),$bordered:n==null?void 0:n.bordered,$bgcolor:(k=f==null?void 0:f.background)==null?void 0:k.footer})})}Oe.propTypes={meta:Rt,theme:u.object};Oe.defaultProps={meta:{},theme:null};const Eo=M(Ne)`
|
|
273
|
+
${({$bordered:e})=>`border-top: 1px solid ${e?A.strokeSep:"#eee"};`}
|
|
274
|
+
color: ${e=>e.theme.palette.grey[600]};
|
|
275
|
+
${({$bgcolor:e})=>e&&`background-color: ${e};`}
|
|
276
|
+
font-family: Inter, Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,
|
|
277
|
+
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
278
|
+
`,zo=nt(Oe,{FallbackComponent:rt});function qt({meta:e,fallbackUrl:t,invalidPathFallback:n,headerAddons:r,sessionManagerProps:o,links:s,...i}){var C;Ot();const a=T.useContext(tt),c=(C=a==null?void 0:a.session)==null?void 0:C.user,l=c==null?void 0:c.role,{locale:f}=ee()||{},p=T.useMemo(()=>{const j=Object.assign({},window.blocklet,e);try{return Ae(j)}catch(y){return console.error("Failed to format blocklet info",y,j),j}},[e]),{localizedNav:h,flattened:g,matchedIndex:m}=T.useMemo(()=>{var L;let j=$((L=p==null?void 0:p.navigation)==null?void 0:L.dashboard,f)||[];j=Lt(j,l),j=E(j,S=>({title:S.title,url:S.link,icon:S.icon?d.jsx("iconify-icon",{height:"100%",width:"100%",icon:S.icon}):null,external:!0,children:S.items}),"items");const y=At(j).filter(S=>!!S.url),I=Mt(y.map(S=>S.url));return I!==-1&&(y[I].active=!0),{localizedNav:j,flattened:y,matchedIndex:I}},[p,f,l]),x=typeof s=="function"?s(h):[...h,...s];if(T.useLayoutEffect(()=>{c&&!(g!=null&&g.length)&&t&&(window.location.href=t)},[t]),T.useLayoutEffect(()=>{c&&(g!=null&&g.length)&&m===-1&&n&&n()},[n,g,m]),!p.appName)return null;const{appLogo:v,appLogoRect:k,appName:b}=p,w=d.jsx(re,{formattedBlocklet:p,addons:r,sessionManagerProps:o});return d.jsx(dn,{title:b,fullWidth:!0,sidebarWidth:128,legacy:!1,links:x,...i,headerProps:{homeLink:X,logo:d.jsx("img",{src:k||v,alt:"logo"}),addons:w,...i.headerProps}})}qt.propTypes={meta:Rt,fallbackUrl:u.string,invalidPathFallback:u.func,headerAddons:u.oneOfType([u.func,u.node]),sessionManagerProps:Nt,links:u.oneOfType([u.array,u.func])};qt.defaultProps={meta:{},fallbackUrl:X,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=X}},links:[]};export{qt as D,zo as F,Fo as H};
|