@abtnode/webapp 1.16.45-beta-20250609-025419-7fd1f86c → 1.16.45-beta-20250609-082716-b6b0592b
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-C4c5cRj4.js → AdapterDayjs-BPnL086D.js} +1 -1
- package/dist/assets/{Add-CikUYjpE.js → Add-BaepTMyl.js} +1 -1
- package/dist/assets/{ArrowDropDown-D8_MvSDM.js → ArrowDropDown-CJZPcYMj.js} +1 -1
- package/dist/assets/{Autocomplete-Bp80XkzK.js → Autocomplete-BzsxfAhs.js} +1 -1
- package/dist/assets/{Breadcrumbs-QDLaI2Qa.js → Breadcrumbs-bCGgNRxZ.js} +1 -1
- package/dist/assets/{ButtonGroup-pSxJUeYq.js → ButtonGroup-jLU91Eto.js} +1 -1
- package/dist/assets/{CSSTransition-BVjZbwGj.js → CSSTransition-CEYSDYhf.js} +1 -1
- package/dist/assets/{CallMerge-BF6pqsMs.js → CallMerge-BmooQIj9.js} +1 -1
- package/dist/assets/{CardContent-C-BKX7Wx.js → CardContent-DztUyw0g.js} +1 -1
- package/dist/assets/{ChevronLeft-BAQVVdap.js → ChevronLeft-DxCtjh6K.js} +1 -1
- package/dist/assets/{ChevronRight-IEbQ0oO7.js → ChevronRight-BJDD27JD.js} +1 -1
- package/dist/assets/{Clear-BZlNAzRM.js → Clear-BxwDIGi1.js} +1 -1
- package/dist/assets/{Close-BHKNxXaD.js → Close-C9dxdyWh.js} +1 -1
- package/dist/assets/{Community-BLBD0747.js → Community-BM20-8dz.js} +1 -1
- package/dist/assets/{Delete-BsyREJcJ.js → Delete-DKeOWzoo.js} +1 -1
- package/dist/assets/{DeleteOutline-rQ9VkMgG.js → DeleteOutline-BKxhOLzM.js} +1 -1
- package/dist/assets/{Done-B2aNlpnL.js → Done-BSxV_Z_N.js} +1 -1
- package/dist/assets/{Edit-QHkWWd7_.js → Edit-CcJpZVnD.js} +1 -1
- package/dist/assets/{ErrorOutline-CLOLWTKD.js → ErrorOutline-Cpcgvmsb.js} +1 -1
- package/dist/assets/{HelpOutline-CWIyZlO2.js → HelpOutline-DddyHTiw.js} +1 -1
- package/dist/assets/{Holiday-C9RYCFxL.js → Holiday-Bqv7Z2Nl.js} +1 -1
- package/dist/assets/{Launch-BNG8lKzq.js → Launch-W68EZl8H.js} +1 -1
- package/dist/assets/{Link-EEbGByUk.js → Link-CI9SWqj5.js} +1 -1
- package/dist/assets/{ListItemButton-BbXA7uft.js → ListItemButton-Cz3h14We.js} +1 -1
- package/dist/assets/{ListSubheader-DWa2bL93.js → ListSubheader-B1Gs-Di0.js} +1 -1
- package/dist/assets/{LoadingButton-DpXNeIFz.js → LoadingButton-DAtzlWSB.js} +1 -1
- package/dist/assets/{LockIcon-B4zbTcxZ.js → LockIcon-B5Cu6iVD.js} +1 -1
- package/dist/assets/{Meeting-Ci2hziPC.js → Meeting-CdElUcfA.js} +1 -1
- package/dist/assets/{MoreHoriz-Bpr5M9Q_.js → MoreHoriz-DAVefXBs.js} +1 -1
- package/dist/assets/{MoreVert-DRkTjUkO.js → MoreVert-DqeE3_Hd.js} +1 -1
- package/dist/assets/{OffSick-CRIemIRD.js → OffSick-BBRqxJJu.js} +1 -1
- package/dist/assets/{OpenInNew-bWOOBVdq.js → OpenInNew-2bjbGYSq.js} +1 -1
- package/dist/assets/{Public-D-3nXhyQ.js → Public-BTdEMtHi.js} +1 -1
- package/dist/assets/{Refresh-D-nSdpB6.js → Refresh-C0Iz2zZt.js} +1 -1
- package/dist/assets/{SchemaReference.es-BY_deeQf.js → SchemaReference.es-oSyd1It7.js} +1 -1
- package/dist/assets/{Search-D0gbvviE.js → Search-DBiDYaX1.js} +1 -1
- package/dist/assets/{Slider-BiyfIh6I.js → Slider-BjpE1rv2.js} +1 -1
- package/dist/assets/{Stepper-CM9Lslx_.js → Stepper-B-l2XYXD.js} +1 -1
- package/dist/assets/{Switch-B54N3yBj.js → Switch-DSS8JChR.js} +1 -1
- package/dist/assets/{TableRow-CkcRLU9h.js → TableRow-DQuCW6hn.js} +1 -1
- package/dist/assets/{TableSearch-BlTmOcM8.js → TableSearch-C6AKfDSr.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-DpMMKgJC.js → ToggleButtonGroup-CnUjfOWR.js} +1 -1
- package/dist/assets/{Verified-DxrzxjY_.js → Verified-ZTqRecOi.js} +1 -1
- package/dist/assets/{VerifiedUser-BXM5-k5o.js → VerifiedUser-TTfmWq7J.js} +1 -1
- package/dist/assets/{ViewColumn-GnhpgPpe.js → ViewColumn-BCvqBjPt.js} +1 -1
- package/dist/assets/{ViewList-HSuvDtjk.js → ViewList-CW3TCfoq.js} +1 -1
- package/dist/assets/{WorkingRemotely-CTtq0D9Q.js → WorkingRemotely-Cxxbbwm6.js} +1 -1
- package/dist/assets/{_createAggregator-ZfSMXJSw.js → _createAggregator-CPkIJJuD.js} +1 -1
- package/dist/assets/{actions-DlFcwRnx.js → actions-B5wmKEDC.js} +1 -1
- package/dist/assets/{actions-CdYuQBqa.js → actions-C42Q30RQ.js} +1 -1
- package/dist/assets/{agreement-Bhttdv52.js → agreement-Jdo-zY9j.js} +1 -1
- package/dist/assets/api-DJB2B_-t.js +1 -0
- package/dist/assets/{appearance-Bcu18Afu.js → appearance-BRCCw1u2.js} +1 -1
- package/dist/assets/{audit-logs-BmUz5Zct.js → audit-logs-BJqbSAPC.js} +1 -1
- package/dist/assets/{base-chart-CHvrasi_.js → base-chart-B2gmFhRJ.js} +1 -1
- package/dist/assets/{blocklet-_bD7hrDe.js → blocklet-DiZeBiJN.js} +1 -1
- package/dist/assets/{brace-fold.es-Db4yPyly.js → brace-fold.es-DxbrOmhK.js} +1 -1
- package/dist/assets/{chain-DsPrR9L2.js → chain-D7X2-qfm.js} +1 -1
- package/dist/assets/{click-to-copy-BTlgMJKM.js → click-to-copy-CgzyQB5V.js} +1 -1
- package/dist/assets/cloneDeep-inGyOGD4.js +1 -0
- package/dist/assets/{closebrackets.es-ts1c8j-S.js → closebrackets.es-Bg15eLC-.js} +1 -1
- package/dist/assets/{codemirror.es-C9d207Ee.js → codemirror.es-CO1Dk0p2.js} +1 -1
- package/dist/assets/{collapse-CxXMR17O.js → collapse-Xins5ZhF.js} +1 -1
- package/dist/assets/{comment.es-DM6yI34p.js → comment.es-3KCDqSac.js} +1 -1
- package/dist/assets/{config-navigation-CVOIaGKR.js → config-navigation-BjQhnuHo.js} +3 -3
- package/dist/assets/{connect-to-CexcZnqq.js → connect-to-CJ05ah0j.js} +1 -1
- package/dist/assets/{delete-confirm-BnbZCjls.js → delete-confirm-CCMGtPBw.js} +1 -1
- package/dist/assets/{detail-DQVEt6SC.js → detail-KJCoxUAd.js} +3 -3
- package/dist/assets/{dialog.es-DoGLiAkD.js → dialog.es-CE99qOYk.js} +1 -1
- package/dist/assets/{domains-6OrTNP_Z.js → domains-DvL3Ga1O.js} +1 -1
- package/dist/assets/{download-DHTd34l7.js → download-ClJJWg3s.js} +1 -1
- package/dist/assets/emotion-react.browser.esm-BnQsp-2e.js +1 -0
- package/dist/assets/{foldgutter.es-CxHJ7-Gd.js → foldgutter.es-CiZmTrO7.js} +1 -1
- package/dist/assets/{get-safe-url-BFX4bheO.js → get-safe-url-DO00hPju.js} +1 -1
- package/dist/assets/{get-safe-url-CoPKh70U.js → get-safe-url-aH9mMJx2.js} +1 -1
- package/dist/assets/getValidReactChildren-D_5CTSB1.js +1 -0
- package/dist/assets/{hint.es-dJ8hGuu1.js → hint.es-Bo36zzhX.js} +1 -1
- package/dist/assets/{hint.es2-vVI1wmKV.js → hint.es2-CAOXzXaR.js} +1 -1
- package/dist/assets/{iframe-CkZ_9pdV.js → iframe-BnX2-HMD.js} +1 -1
- package/dist/assets/index-0cx2L09O.js +1 -0
- package/dist/assets/{index-BztFIse1.js → index-30VVCODr.js} +1 -1
- package/dist/assets/{index-B-tEAxAb.js → index-9XYQmK_k.js} +1 -1
- package/dist/assets/{index-Cq3dVYah.js → index-BCGKopWm.js} +1 -1
- package/dist/assets/{index-CoBQD7XU.js → index-BCxIgLgQ.js} +1 -1
- package/dist/assets/{index-DgaOZFwR.js → index-BOLfvqKF.js} +5 -11
- package/dist/assets/{index-yoF6p3zK.js → index-BbtEo9r9.js} +1 -1
- package/dist/assets/{index-BT8O-Irh.js → index-BhhOQuUW.js} +1 -1
- package/dist/assets/{index-C7KdEOhf.js → index-BlgBrilI.js} +1 -1
- package/dist/assets/{index-CsDq8cUa.js → index-BmtiSq2M.js} +1 -1
- package/dist/assets/{index-CEtkfkOE.js → index-BoMTtsmm.js} +1 -1
- package/dist/assets/{index-obKIcB6j.js → index-Boy3iHgk.js} +3 -3
- package/dist/assets/{index-C6D0BHuh.js → index-Brzpmake.js} +1 -1
- package/dist/assets/{index-459ji0pz.js → index-BuMTt7NP.js} +1 -1
- package/dist/assets/{index-ko1bihsa.js → index-C5r6y0B-.js} +1 -1
- package/dist/assets/{index-CCaZrZxK.js → index-CEJX705l.js} +1 -1
- package/dist/assets/{index-DusWnycz.js → index-CG3kAlcB.js} +1 -1
- package/dist/assets/{index-DRM9LfQc.js → index-CUOESLiC.js} +1 -1
- package/dist/assets/{index-BEvPvzxy.js → index-ClrIfUmS.js} +1 -1
- package/dist/assets/{index-2qex5JRJ.css → index-Cp6LwWOU.css} +1 -1
- package/dist/assets/{index--j8tPpKz.js → index-CrF1a2RT.js} +5 -5
- package/dist/assets/{index-tuzp4LZj.js → index-CxMh-z_6.js} +1 -1
- package/dist/assets/{index-B3Nuc5cB.js → index-D3KU0pJA.js} +1 -1
- package/dist/assets/{index-DcqomzId.js → index-D732T1aT.js} +1 -1
- package/dist/assets/{index-BcsL_Dab.js → index-D9iEwrbX.js} +1 -1
- package/dist/assets/{index-BiwE6LYZ.js → index-DI_gxPWq.js} +3 -3
- package/dist/assets/{index-DnboiUKN.js → index-DKyf9Yqh.js} +1 -1
- package/dist/assets/{index-Digw1IS5.js → index-DMyI2aU2.js} +1 -1
- package/dist/assets/{index-PBOoRtwJ.js → index-DSvMfxSw.js} +1 -1
- package/dist/assets/{index-Dvgqufc8.js → index-De4MlLgJ.js} +3 -3
- package/dist/assets/{index-gG8CGw4D.js → index-Dj_QnghX.js} +1 -1
- package/dist/assets/{index-D8xa5CkE.js → index-Dmp8rYJ8.js} +1 -1
- package/dist/assets/{index-8Mr6G8cA.js → index-Dow64Z2x.js} +1 -1
- package/dist/assets/{index-wOJUY5Eq.js → index-DpBmopYo.js} +1 -1
- package/dist/assets/{index-BzDKvBsq.js → index-Dt9pZ2YF.js} +1 -1
- package/dist/assets/{index-CMFqYiii.js → index-DtapEWSR.js} +1 -1
- package/dist/assets/{index-C-Z-fEXY.js → index-HJyYrv5X.js} +1 -1
- package/dist/assets/{index-CAHq6JDP.js → index-IW9KB94O.js} +1 -1
- package/dist/assets/{index-IjEh0z-9.js → index-SykBhSuA.js} +1 -1
- package/dist/assets/{index-DyPiQOSj.js → index-Z5lc5lIc.js} +1 -1
- package/dist/assets/{index-BabYN7mb.js → index-Zm-WNook.js} +1 -1
- package/dist/assets/{index-BVhjqJYK.js → index-jI8Y9wpJ.js} +1 -1
- package/dist/assets/{index-xlW1-oAi.js → index-mGiaMB4m.js} +1 -1
- package/dist/assets/{index-BdIJZ_d3.js → index-t7cKmyc5.js} +1 -1
- package/dist/assets/{index-CbU4rBOz.js → index-wTEUfJK4.js} +1 -1
- package/dist/assets/{index-5EuVhfzm.js → index-wqaqDly9.js} +1 -1
- package/dist/assets/{index-BjlnQSRT.js → index-xMJ_lTjJ.js} +1 -1
- package/dist/assets/{index-prpjlazI.js → index-zlu_iF9b.js} +2 -2
- package/dist/assets/{index.esm-BxYSmgD0.js → index.esm-Bn-iehLo.js} +1 -1
- package/dist/assets/{info-addon.es-DSzmGHVh.js → info-addon.es-GUHgmi5n.js} +1 -1
- package/dist/assets/{info.es-CqwalMpv.js → info.es-Blua3wzj.js} +1 -1
- package/dist/assets/{install-from-url-2UGnhBYN.js → install-from-url-CE66dEAo.js} +1 -1
- package/dist/assets/{invitation-ZNMCoNWk.js → invitation-DurHrtHf.js} +1 -1
- package/dist/assets/is-path-prefix-equal-CYEALK7U.js +1 -0
- package/dist/assets/{item-BXS1KADn.js → item-DKqObQ3Z.js} +1 -1
- package/dist/assets/{javascript.es-BUwm55k-.js → javascript.es-BH1wlBZU.js} +1 -1
- package/dist/assets/{jump-to-line.es-1FeYE7Rs.js → jump-to-line.es-Bc8f2sko.js} +1 -1
- package/dist/assets/{jump.es-D4tkByFq.js → jump.es-DchNv69N.js} +1 -1
- package/dist/assets/{lint.es-Yw1SkmX-.js → lint.es-DjIO9EP-.js} +1 -1
- package/dist/assets/{lint.es2-C9hShqPk.js → lint.es2-D6QiK1LN.js} +1 -1
- package/dist/assets/{lint.es3-BQpBh-0S.js → lint.es3-1Hh074BZ.js} +1 -1
- package/dist/assets/{list-header-A4IxaRpz.js → list-header-D5vsRPp7.js} +1 -1
- package/dist/assets/{log-CL5NAdAU.js → log-LbP8IGNT.js} +1 -1
- package/dist/assets/{lottie-react.esm-BG8UOYcI.js → lottie-react.esm-vLYu8hjp.js} +1 -1
- package/dist/assets/{matchbrackets.es-RYOD7Chs.js → matchbrackets.es-2wYFPv6E.js} +1 -1
- package/dist/assets/{memory-DFNHJOXa.js → memory-CiKqWgj7.js} +1 -1
- package/dist/assets/{metric-COf2-4wL.js → metric-BDJmu11E.js} +1 -1
- package/dist/assets/{mode.es-DuXl4-3T.js → mode.es-BqW6_fGr.js} +1 -1
- package/dist/assets/{mode.es2-B-kK2xMN.js → mode.es2-D8SKatMd.js} +1 -1
- package/dist/assets/{mode.es3-CEJ-I2M4.js → mode.es3-CNkkrM-6.js} +1 -1
- package/dist/assets/omit-BiJoS85k.js +1 -0
- package/dist/assets/{onlineParser.es-DUDxN90J.js → onlineParser.es-oUEApoDN.js} +1 -1
- package/dist/assets/{overview-Csn0Dj1Z.js → overview-CruS8RZC.js} +1 -1
- package/dist/assets/{permission-BXthXqXh.js → permission-BQtaoI3I.js} +1 -1
- package/dist/assets/{preference-B9jAlduo.js → preference-DJFG2uH3.js} +3 -3
- package/dist/assets/{raf-schd.esm-hyuKNSDN.js → raf-schd.esm-CJK5XRZT.js} +1 -1
- package/dist/assets/refType-C2bDqONV.js +1 -0
- package/dist/assets/{resource-dialog-CwHOc-Kq.js → resource-dialog-CO7CVlvn.js} +4 -4
- package/dist/assets/{runtime-BMiu2UEa.js → runtime-DYumryGg.js} +1 -1
- package/dist/assets/{schema-DMBVVFa7.js → schema--5oUwlB4.js} +1 -1
- package/dist/assets/sdk-DuEQLs4j.js +1 -0
- package/dist/assets/{search.es-D7dESnSM.js → search.es-BNWiVNZg.js} +1 -1
- package/dist/assets/{searchcursor.es-C8QTEpS7.js → searchcursor.es-31Y56HAZ.js} +1 -1
- package/dist/assets/{service-CyBySZRt.js → service-DQkMTtxe.js} +1 -1
- package/dist/assets/{shorten-label-DQLD83VS.js → shorten-label-D74t0ifG.js} +1 -1
- package/dist/assets/{show-hint.es-DjYZtTRo.js → show-hint.es-FtZ2uk9e.js} +1 -1
- package/dist/assets/{simple-select-Di96zHVS.js → simple-select-BdDQTMpn.js} +1 -1
- package/dist/assets/{spaces-QbUjptbk.js → spaces-BgnAkcnA.js} +1 -1
- package/dist/assets/{status-DP39lWQU.js → status-BfSQdY5K.js} +1 -1
- package/dist/assets/{status-Dp0wkJaD.js → status-q1EdEhzw.js} +1 -1
- package/dist/assets/{sublime.es-B3RpYNvI.js → sublime.es-CxJ3H0tj.js} +1 -1
- package/dist/assets/{switch-control-Boqn9KqI.js → switch-control-DwgD_U7I.js} +1 -1
- package/dist/assets/{table-icons-DYTMqu-C.js → table-icons--5A28zgV.js} +1 -1
- package/dist/assets/{team-DJhEPKLu.js → team-RnJISF0L.js} +1 -1
- package/dist/assets/{toLower-2YOzqxCY.js → toLower-RHUaQlXh.js} +1 -1
- package/dist/assets/toUpper-DMGZM86u.js +1 -0
- package/dist/assets/{traffic-DJjSD7Cg.js → traffic-DmNfI0bT.js} +1 -1
- package/dist/assets/{url-evaluation-Bv4SleC_.js → url-evaluation-DiN5Q08e.js} +1 -1
- package/dist/assets/{url-join-DGD2-wJw.js → url-join-BIMdRB8V.js} +1 -1
- package/dist/assets/{use-mobile-Dtv2oNqk.js → use-mobile-utJ7FsR-.js} +1 -1
- package/dist/assets/{use-mobile-CLajk6ed.js → use-mobile-woqAnkRI.js} +1 -1
- package/dist/assets/{useAsync-O3M-Th5w.js → useAsync-BX9-9evM.js} +1 -1
- package/dist/assets/{useAsyncRetry-Btd4OtDi.js → useAsyncRetry-5y7_186e.js} +1 -1
- package/dist/assets/{useLocalStorage-B8V2MAaW.js → useLocalStorage-DPYKzz1_.js} +1 -1
- package/dist/assets/{useThemeProps-Bu2GwFj6.js → useThemeProps-DJJZjixl.js} +1 -1
- package/dist/assets/{util-CWXCirPF.js → util-DvYZzgdN.js} +1 -1
- package/dist/assets/{wait-container-yENMOZJ_.js → wait-container-JJXJ3aE4.js} +1 -1
- package/dist/assets/{withStyles-BfgqMTwe.js → withStyles-zmjsbKsz.js} +1 -1
- package/dist/assets/{wrap-locale-6T2WdFml.js → wrap-locale-mYykcBLv.js} +1 -1
- package/dist/icons/css/all.css +12 -7
- package/dist/index.html +2 -2
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/api--j1_9IsZ.js +0 -1
- package/dist/assets/cloneDeep-BJydieDI.js +0 -1
- package/dist/assets/emotion-react.browser.esm-_0QSUmtf.js +0 -1
- package/dist/assets/getValidReactChildren-Bc78D4Rw.js +0 -1
- package/dist/assets/index-JJo0YmoP.js +0 -1
- package/dist/assets/is-path-prefix-equal-9MPcBtMF.js +0 -1
- package/dist/assets/omit-BErT92fe.js +0 -1
- package/dist/assets/refType-CPgCkYaa.js +0 -1
- package/dist/assets/sdk-BKz2IV5D.js +0 -1
- package/dist/assets/toUpper-DZnB7wQQ.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bq as St,r as x,bC as Q,bi as $,y as V,A as L,j as e,P as d,T as Ct,aP as Xe,aQ as Ze,aw as Nt,h as ne,aB as wt,k as G,K as v,m as X,ej as _e,N as Be,kF as et,bn as Ee,aY as De,U as Ae,ep as we,b7 as Ge,b5 as Oe,C as tt,n as re,f as st,dB as nt,aT as Le,W as Tt,av as at,kG as it,B as ke,kH as ot,g0 as Se,gh as rt,ai as fe,ff as Rt,ax as It,G as Ye,kI as Et,kJ as Dt,D as lt,kK as At,kL as Ot,kM as Lt,kN as kt,R as Pt,bw as ct,O as Ft,S as _t,Q as Je,J as Bt,kO as zt,a4 as Wt}from"./index-DgaOZFwR.js";import{l as Mt,D as dt,g as qt}from"./index-8Mr6G8cA.js";import{a as ze,c as Kt}from"./actions-DlFcwRnx.js";import{B as $t}from"./index-C-Z-fEXY.js";import{S as xe}from"./shorten-label-DQLD83VS.js";import{I as ut}from"./index-DcqomzId.js";import{T as Ht}from"./index-Cq3dVYah.js";import{d as Ut}from"./Refresh-D-nSdpB6.js";import{D as Vt,g as Gt}from"./traffic-DJjSD7Cg.js";import{u as Yt}from"./use-mobile-Dtv2oNqk.js";import"./TableRow-CkcRLU9h.js";import"./useThemeProps-Bu2GwFj6.js";import"./emotion-react.browser.esm-_0QSUmtf.js";import"./ViewColumn-GnhpgPpe.js";import"./Search-D0gbvviE.js";import"./Clear-BZlNAzRM.js";import"./Delete-BsyREJcJ.js";import"./index-5EuVhfzm.js";import"./MoreVert-DRkTjUkO.js";import"./TableSearch-BlTmOcM8.js";import"./useLocalStorage-B8V2MAaW.js";import"./get-safe-url-BFX4bheO.js";import"./ButtonGroup-pSxJUeYq.js";import"./getValidReactChildren-Bc78D4Rw.js";import"./url-evaluation-Bv4SleC_.js";import"./permission-BXthXqXh.js";import"./index.esm-BxYSmgD0.js";import"./collapse-CxXMR17O.js";import"./blocklet-_bD7hrDe.js";import"./Switch-B54N3yBj.js";import"./iframe-CkZ_9pdV.js";import"./ChevronLeft-BAQVVdap.js";import"./ChevronRight-IEbQ0oO7.js";import"./index-BabYN7mb.js";import"./base-chart-CHvrasi_.js";import"./index-BztFIse1.js";import"./AdapterDayjs-C4c5cRj4.js";import"./CSSTransition-BVjZbwGj.js";import"./refType-CPgCkYaa.js";const pt=x.createContext({}),{Provider:Jt,Consumer:pn}=pt;function Qt({children:t,blocklet:s=""}){const{api:n,inService:o,ws:{useSubscription:r}}=St(),[l,b]=x.useState([]),[u,D]=x.useState({total:0,pageSize:20,pageCount:0,page:1}),f=Q(()=>{var p;return(p=s.meta)==null?void 0:p.did},[s]),[C,N]=x.useState([]),[B,z]=x.useState({}),E=Q(()=>l.length?new Set(l.map(p=>p.id)):new Set,[l]),Y=async({page:p=1,pageSize:S=20,...A}={})=>{if(!f)return[];try{const w={paging:{page:p,pageSize:S},...A,teamDid:f,dateRange:A.dateRange?[$(A.dateRange[0]).toISOString(),$(A.dateRange[1]).toISOString()]:void 0},{dids:O,..._}=w;let Z="";O&&O.includes("system")&&(Z="system");const W=O?O.filter(le=>le!=="system"):[],ae={..._,source:Z,componentDids:W},se=await n.getNotificationSendLog({input:ae});return z(ae),b(se.list),D(se.paging),se.list}catch(w){return V.error(w.message),[]}},P=async()=>{const p=await n.getNotificationComponents({input:{teamDid:f}});N(p.componentDids)},k=x.useCallback(p=>{const S=s.children.find(A=>{var w;return((w=A.meta)==null?void 0:w.did)===p});if(S)return S.ancestors=[s],S},[s]),I=async({notificationId:p,receivers:S,channels:A,...w})=>{await n.resendNotification({input:{teamDid:f,notificationId:p,receivers:S,channels:A.map(O=>O==="wallet"?L.NOTIFICATION_SEND_CHANNEL.WALLET:O==="pushKit"?L.NOTIFICATION_SEND_CHANNEL.PUSH:O),...w}})},H=x.useCallback(async p=>(await n.getUser({input:{teamDid:f,user:{did:p}}})).user,[n,f]),J=x.useCallback(async({page:p=1,pageSize:S=20,...A}={})=>{try{const w={paging:{page:p,pageSize:S},...A,userName:A.searchText||"",teamDid:f,dateRange:A.dateRange?[$(A.dateRange[0]).toISOString(),$(A.dateRange[1]).toISOString()]:void 0};return await n.getReceivers({input:w})}catch(w){throw V.error(w.message),w}},[n,f]);x.useEffect(()=>{f&&P()},[f]),r(L.EVENTS.NOTIFICATION_BLOCKLET_UPDATE,p=>{E.has(p.notificationId)&&Y(B)},[E,B]),r(L.EVENTS.NOTIFICATION_BLOCKLET_CREATE,p=>{E.has(p.id)||Y(B)},[E,B]);const te={fetch:Y,data:l,paging:u,blocklet:s,getComponent:k,resendNotification:I,getUser:H,componentDids:C,getReceivers:J,inService:o,teamDid:f};return e.jsx(Jt,{value:{notificationRecords:te},children:t})}function We(){const{notificationRecords:t}=x.useContext(pt);return t}be.propTypes={severity:d.oneOf(Object.values(["info","success","error","warning"])).isRequired};const Xt={info:"primary",success:"success",error:"error",warning:"warning"};function be({severity:t="info"}){return e.jsx(Ct,{type:Xt[t],children:t})}var Me={},Zt=Ze;Object.defineProperty(Me,"__esModule",{value:!0});var ft=Me.default=void 0,es=Zt(Xe()),ts=e;ft=Me.default=(0,es.default)((0,ts.jsx)("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline");var qe={},ss=Ze;Object.defineProperty(qe,"__esModule",{value:!0});var mt=qe.default=void 0,ns=ss(Xe()),as=e;mt=qe.default=(0,ns.default)((0,as.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block");const is=(t,s,n="")=>{if(!n||!s)return"";switch(n){case L.NOTIFICATION_SEND_FAILED_REASON.USER_DISABLED:return t("notification.sendStatus.reason.disabled",{channel:s});case L.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_UNAVAILABLE:return t("notification.sendStatus.reason.unavailable",{channel:s});case L.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_DISABLED:return t("notification.sendStatus.reason.notSent",{channel:s});case L.NOTIFICATION_SEND_FAILED_REASON.NOT_ONLINE:return t("notification.sendStatus.reason.offline");default:return n}};function ht(t,s,n={}){const{status:o,updatedAt:r,reason:l="",channel:b="wallet"}=n,u=r?t("notification.sendStatus.sentTime",{date:Nt(r,s)}):"",D=is(t,b,l);return o===L.NOTIFICATION_SEND_STATUS.FAILED?{status:"failed",title:t("notification.sendStatus.failed"),sentTime:u,reason:D}:o===L.NOTIFICATION_SEND_STATUS.SENT?{status:"success",title:t("notification.sendStatus.success"),sentTime:u}:{status:"pending",title:t("notification.sendStatus.pending"),reason:D,sentTime:u}}const Pe={pending:"#aaaaaa",success:"#34BE74",failed:"#D0021B"},Fe=["wallet","pushKit","email"],Qe=["info","success","error","warning"],gt=t=>{var n,o;const{settings:s}=t;return(o=(n=s==null?void 0:s.notification)==null?void 0:n.email)==null?void 0:o.enabled},xt=t=>{var n,o;const{settings:s}=t;return(o=(n=s==null?void 0:s.notification)==null?void 0:n.pushKit)==null?void 0:o.enabled},os=(t,s)=>{const n=ne(s,"extra.notifications.email",!0);return{available:gt(t),enabled:n}},rs=(t,s)=>{const n=ne(s,"extra.notifications.push",!0);return{available:xt(t),enabled:n}},ls=t=>({enabled:ne(t,"extra.notifications.wallet",!0)}),cs=t=>({enabled:ne(t,"extra.webhooks",[]).length>0}),ye=(t=3)=>new Promise(s=>{setTimeout(()=>{s()},t*1e3)}),ds=(t,s)=>s==="wallet"||s==="webhook"?[{channel:s,type:"enabled",pass:t("notification.sendStatus.reason.enabled",{channel:s}),fail:t("notification.sendStatus.reason.disabled",{channel:s})}]:s==="pushKit"||s==="email"?[{channel:s,type:"available",pass:t("notification.sendStatus.reason.available",{channel:s}),fail:t("notification.sendStatus.reason.unavailable",{channel:s})},{channel:s,type:"enabled",pass:t("notification.sendStatus.reason.enabled",{channel:s}),fail:t("notification.sendStatus.reason.disabled",{channel:s})}]:[],ve=(t=[])=>{const s=$().startOf("day");return t.filter(n=>$(n.sendAt).isSame(s,"day")).length},us=(t,s="")=>{if(s&&Fe.includes(s)){const l=`${s}SendRecord`,b=ne(t,l,[]);return ve(b)}const n=ne(t,"webhook",{}),o=Object.keys(n??{})??[];if(s&&o.includes(s)){const l=n[s]??[];return ve(l)}const r={};return Fe.forEach(l=>{const b=`${l}SendRecord`,u=ne(t,b,[]),D=ve(u);r[l]=D}),o.length>0&&o.forEach(l=>{const b=n[l]??[],u=ve(b);r[l]=u}),r},Ce=(t,s,n)=>{if(!Array.isArray(t))throw new Error("Invalid filterList or index");return t[n].splice(s,1),t},Ne=(t,s)=>{if(!Array.isArray(s))throw new Error("filters must be an array");return s.length?!s.includes(t):!1},ps=t=>{switch(t){case L.NOTIFICATION_SEND_CHANNEL.WALLET:return"Wallet";case L.NOTIFICATION_SEND_CHANNEL.PUSH:return"Push Kit";case L.NOTIFICATION_SEND_CHANNEL.EMAIL:return"Email";case L.NOTIFICATION_SEND_CHANNEL.WEBHOOK:return"Webhook";default:return""}},bt=()=>({components:{MUIDataTableFilter:{styleOverrides:{header:{marginBottom:0,p:{margin:0}},root:{"& .MuiGrid-container":{marginTop:0,"& .MuiGrid-item":{paddingTop:0}}}}},MuiPopover:{styleOverrides:{root:{"&.MuiPopover-root":{"& .MuiPaper-root:has(.filter-container)":{width:"420px"}}}}}}});function ee({config:t,enableTooltip:s=!0,showTitle:n=!1,children:o}){const{status:r,title:l="",sentTime:b="",reason:u=""}=t,D=[l,u].filter(Boolean).join(", ");return e.jsx(wt,{title:s?e.jsxs(e.Fragment,{children:[e.jsx(G,{color:"inherit",sx:{fontSize:12},children:D}),e.jsx("span",{children:b})]}):null,arrow:!0,placement:"top",children:e.jsxs(v,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"},children:[e.jsxs(v,{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center",children:[e.jsx(v,{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:Pe[r],style:{opacity:.15}}),e.jsx(v,{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:Pe[r]})]}),e.jsx(G,{color:"inherit",sx:{fontSize:12},children:n?l:o})]})})}ee.propTypes={config:d.object.isRequired,enableTooltip:d.bool,showTitle:d.bool,children:d.node};ee.defaultProps={enableTooltip:!0,showTitle:!1,children:null};me.propTypes={list:d.array.isRequired,label:d.string.isRequired,onDelete:d.func};me.defaultProps={onDelete:()=>{}};function me({list:t,label:s,onDelete:n}){const{t:o,locale:r}=X();return e.jsxs(v,{display:"flex",gap:1,alignItems:"center",children:[e.jsxs(G,{children:[s,": "]}),t.map(l=>{const b=ht(o,r,{status:l});return e.jsx(_e,{size:"small",label:e.jsx(v,{display:"flex",alignItems:"center",sx:{gap:"4px"},children:e.jsx(ee,{config:b,enableTooltip:!1,children:b.title})}),onDelete:u=>n(u,l)},l)})]})}Ke.propTypes={filterList:d.array.isRequired,onChange:d.func.isRequired,index:d.number.isRequired,column:d.object.isRequired,filterValues:d.array.isRequired,label:d.string.isRequired,renderLabel:d.func.isRequired};function Ke({filterList:t,onChange:s,index:n,column:o,filterValues:r,label:l,renderLabel:b}){return e.jsxs(Be,{className:"filter-container",children:[e.jsx(et,{component:"legend",children:l}),e.jsx(Ee,{row:!0,children:r.map(u=>e.jsx(De,{control:e.jsx(Ae,{checked:t[n].indexOf(u.value??u)>-1,onChange:D=>{const f=[...t];D.target.checked?f[n]=[...f[n],u.value??u]:f[n]=f[n].filter(C=>C!==(u.value??u)),s(f[n],n,o)},name:u.value??u}),label:e.jsx("span",{style:{display:"flex",alignItems:"center"},children:b(u)})},u.value??u))})]})}function Ie(t){return e.jsx(Ke,{...t,renderLabel:s=>e.jsx(ee,{enableTooltip:!1,config:{status:s.status},children:s.label})})}pe.propTypes={status:d.number.isRequired,updatedAt:d.string.isRequired,reason:d.string,channel:d.string,onResend:d.func};function pe({status:t,updatedAt:s,reason:n="",channel:o="wallet",onResend:r}){const{t:l,locale:b}=X(),u=ht(l,b,{status:t,updatedAt:s,reason:n,channel:o});return e.jsxs(v,{display:"flex",alignItems:"center",gap:1,children:[e.jsx(ee,{config:u,showTitle:!0}),u.status!=="success"&&e.jsx(we,{className:"resend-btn",size:"small",startIcon:e.jsx(ze,{}),sx:{fontSize:12,color:"rgba(0, 0, 0, 0.87)",fontWeight:400,".MuiButton-startIcon":{mr:"2px"}},onClick:r,children:l("notification.resend")})]})}$e.propTypes={value:d.array.isRequired,onChange:d.func};function $e({value:t,onChange:s}){const{locale:n}=X(),o=$().toDate(),[r,l]=x.useState(null),b=x.useCallback(f=>{l(r?null:f.currentTarget)},[r]),u=!!r,D=x.useCallback(f=>{if(!f.startDate||!f.endDate){V.error("Please select a date range");return}if($(f.startDate).isAfter(f.endDate)||!$(f.startDate).isValid()||!$(f.endDate).isValid()){V.error("Invalid date range");return}s([f.startDate,f.endDate]),l(null)},[s]);return e.jsxs("div",{children:[e.jsx(G,{component:"div",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},mb:0,children:e.jsxs(we,{onClick:b,variant:"outlined",size:"small",color:"inherit",children:[Ge(t[0],n)," - ",Ge(t[1],n)]})}),e.jsx(Oe,{open:u,anchorEl:r,onClose:()=>{l(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},children:e.jsx(Vt,{open:!0,maxDate:o,initialDateRange:{startDate:t[0],endDate:t[1]},toggle:b,definedRanges:Gt(o),onChange:D})})]})}He.propTypes={itemComponent:d.elementType.isRequired};function He({itemComponent:t,...s}){var r;const{t:n}=X();return!((r=s==null?void 0:s.filterList)!=null&&r.filter(l=>l.length).length)?null:e.jsxs(v,{display:"flex",gap:1,alignItems:"center",children:[e.jsx("div",{className:"toolbar-filter-title",children:n("notification.filter")}),e.jsx("div",{className:"toolbar-filter-content",children:e.jsx(Mt.TableFilterList,{...s,ItemComponent:t})})]})}function Te({label:t,onDelete:s,canDelete:n=()=>!0,...o}){const r=s&&typeof s=="function"?s:void 0;let l=!0;return n&&typeof n=="function"&&(l=n({label:t,...o})),e.jsx(_e,{label:t,variant:"outlined",...r&&l?{onDelete:r}:{}})}Te.propTypes={label:d.string.isRequired,onDelete:d.func,canDelete:d.func};Te.defaultProps={canDelete:()=>!0};const fs=[{label:"Wallet",value:"app",checked:!0},{label:"Email",value:"email",checked:!0},{label:"Push Kit",value:"push",checked:!0},{label:"Webhook",value:"webhook",checked:!0}];Ue.propTypes={loading:d.bool,onCancel:d.func,onConfirm:d.func};Ue.defaultProps={loading:!1,onCancel:()=>{},onConfirm:()=>{}};function Ue({loading:t=!1,onCancel:s,onConfirm:n}){const{t:o}=X(),[r,l]=x.useState(fs),[b,u]=x.useState(!0),D=(C,N)=>{N.checked=C.target.checked;const B=r.map(z=>({...z,checked:z.value===N.value?N.checked:z.checked}));l(B)},f=C=>{C.stopPropagation(),n({channels:r.filter(N=>N.checked).map(N=>N.value),isResendFailedOnly:b})};return e.jsxs(v,{className:"resend-config",sx:{padding:"16px 24px"},children:[e.jsx(G,{variant:"body1",component:"div",className:"check-title",sx:{fontWeight:700,mb:1},children:o("notification.config")}),e.jsx(v,{className:"choose-channel",children:e.jsxs(Be,{component:"fieldset",variant:"standard",children:[e.jsx(et,{component:"legend",children:o("notification.selectChannels")}),e.jsx(Ee,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:1},children:r.map(C=>e.jsx(De,{control:e.jsx(Ae,{checked:C.checked,onChange:N=>D(N,C),name:C.value}),label:C.label},C.value))})]})}),e.jsx(v,{className:"resend-config-footer",children:e.jsx(Ee,{children:e.jsx(De,{control:e.jsx(Ae,{checked:b,onChange:C=>u(C.target.checked)}),label:o("notification.resendFailedOnly")})})}),e.jsxs(v,{display:"flex",justifyContent:"flex-end",gap:1,className:"resend-config-footer-tip",children:[e.jsx(we,{onClick:C=>{C.stopPropagation(),s()},color:"inherit",children:o("common.cancel")}),e.jsxs(we,{onClick:f,color:"primary",disabled:t,variant:"contained",autoFocus:!0,style:{marginLeft:8},children:[t&&e.jsx(tt,{size:16}),o("common.confirm")]})]})]})}jt.propTypes={notificationId:d.string.isRequired,handleResend:d.func,resending:d.bool};function jt({notificationId:t,handleResend:s,resending:n=!1}){const{t:o,locale:r}=X(),l=st(),b=x.useMemo(()=>nt(l,bt()),[l]),{getReceivers:u,inService:D,teamDid:f,getUser:C,blocklet:N}=We(),[B,z]=x.useState(!1),[E,Y]=x.useState([]),P=Le({anchorEl:null,position:null}),k=Le({anchorEl:null,position:null}),[I,H]=x.useState(null),[J,te]=x.useState({total:0,pageSize:10,pageCount:0,page:1}),[p,S]=x.useState({searchText:"",page:1,pageSize:10,walletSendStatus:[],pushKitSendStatus:[],emailSendStatus:[],dateRange:[$().subtract(1,"month").startOf("day").toDate(),$().endOf("day").toDate()]}),[A,w]=x.useState([]),O=[{label:o("notification.sendStatus.pending"),value:0,status:"pending"},{label:o("notification.sendStatus.success"),value:1,status:"success"},{label:o("notification.sendStatus.failed"),value:2,status:"failed"}],_=async()=>{if(!B&&t)try{z(!0);const a=await u({notificationId:t,...p}),i=a.list.map(c=>({...c,receiverUser:{...c.receiverUser,avatar:rt(c.receiverUser.avatar,f,D)}}));Y(i),te(a.paging),z(!1)}catch(a){V.error(a.message),z(!1)}};x.useEffect(()=>{_()},[p]);const Z=a=>{a.stopPropagation();const i=a.currentTarget;k.anchorEl=i;const c=i.getBoundingClientRect();k.position={top:c.top+window.scrollY,left:c.left+window.scrollX}},W=a=>a.data.length?e.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px"},children:e.jsx(ke,{className:"resend-btn",size:"small",color:"primary",variant:"contained",startIcon:e.jsx(ze,{}),sx:{".MuiButton-startIcon":{mr:"2px"}},onClick:Z,children:o("notification.resend")})}):null,ae={sort:!1,download:!1,print:!1,selectableRows:"multiple",searchPlaceholder:o("common.search"),searchAlwaysOpen:!1,filterType:"checkbox",searchDebounceTime:300,page:J.page-1,rowsPerPage:J.pageSize,count:J.total,searchText:p.searchText,tableBodyMaxHeight:"calc(80vh - 260px)",rowsSelected:A,onRowSelectionChange:(a,i)=>{w(i.map(c=>c.dataIndex))},customToolbarSelect:W},se=({page:a,rowsPerPage:i,searchText:c,filterList:y})=>{const[,F=[],K=[],q=[]]=y;p.pageSize!==i?S(M=>({...M,pageSize:i,page:1})):p.page!==a+1?S(M=>({...M,page:a+1})):p.searchText!==c?S(M=>({...M,searchText:c,page:1})):fe(F,p.walletSendStatus)?fe(K,p.pushKitSendStatus)?fe(q,p.emailSendStatus)||S(M=>({...M,emailSendStatus:q,page:1})):S(M=>({...M,pushKitSendStatus:K,page:1})):S(M=>({...M,walletSendStatus:F,page:1}))},le=x.useCallback(async(a,i)=>{if(!i)return!1;const c=await C(i);return c?a==="wallet"?ls(c):a==="email"?os(N,c):a==="pushKit"?rs(N,c):a==="webhook"?cs(c):!0:!1},[C,N]),je=x.useCallback(a=>ds(o,a),[o]),ce=()=>{P.anchorEl=null,P.position=null,H(null)},de=()=>{k.anchorEl=null,k.position=null},ue=async(a,i,c=!0,y="")=>{if(!(!i.length||!a.length))try{s(a,i,c,y),k.anchorEl||(await ye(.5),ce())}catch(F){console.error("handleResend error",{error:F})}},h=async({channels:a,isResendFailedOnly:i})=>{const c=A.map(y=>E[y].receiver);await ue(a,c,i),await ye(.5),de(),w([])},m=async(a,i=[],c=!0)=>{try{await ue(["webhook"],[a.receiver],c,i)}catch(y){V.error(y.response?y.response.statusText:y.message)}},g=async(a,i,c,y=[],F=!0)=>{if(a.stopPropagation(),us(i,c)>=4){V.warning(o("notification.resendLimit"));return}if(!Fe.includes(c)){await m(i,y,F);return}if(a){const q=a.currentTarget,M=q.getBoundingClientRect();P.anchorEl=q,P.position={top:M.top+window.scrollY,left:M.left+window.scrollX}}H({channel:c});try{const q=await le(c,i.receiver);await ye(1),H({channel:c,result:q}),(typeof q=="boolean"&&q||Rt(q)&&Object.values(q).every(M=>!!M))&&(await s([c],[i.receiver],F),k.anchorEl||(await ye(.5),ce()))}catch(q){V.error(q.message)}},j=a=>{S(i=>({...i,dateRange:a,page:1}))},T=(a,i,c,y)=>{a.stopPropagation();const F=c.filter(K=>K!==i);S(K=>({...K,[y]:F,page:1}))},R=Q(()=>[{label:o("notification.receiver"),name:"receiver",width:200,options:{filter:!1,customBodyRenderLite:a=>{const{receiverUser:i,receiver:c}=E[a];return i?e.jsxs(v,{"data-cy":`member-name-${i.fullName}`,display:"flex",alignItems:"center",gap:1,justifyContent:"flex-start",children:[e.jsx(at,{src:`${i.avatar}?imageFilter=resize&w=48&h=48`,size:32,did:c,shape:"circle",style:{borderRadius:"100%",overflow:"hidden"}}),e.jsx(xe,{children:i.fullName})]},c):e.jsx(Tt,{size:14,responsive:!1,compact:!0,copyable:!1,did:c})}}},{label:"Wallet",name:"walletSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),filter:!0,filterType:"custom",filterList:p.walletSendStatus??[],customFilterListOptions:{render:a=>e.jsx(me,{list:a,label:"Wallet",onDelete:(i,c)=>{i.stopPropagation(),T(i,c,R[1].options.filterList,"walletSendStatus")}}),update:Ce},filterOptions:{names:O,fullWidth:!0,logic:Ne,display:(a,i,c,y)=>e.jsx(Ie,{label:"Wallet",filterList:a,onChange:i,index:c,column:y,filterValues:O})},customBodyRenderLite:a=>{const{walletSendStatus:i,walletSendAt:c,walletSendFailedReason:y}=E[a];return e.jsx(pe,{status:i,updatedAt:c,reason:y,channel:"wallet",onResend:F=>g(F,E[a],"wallet",[],!1)})}}},{label:"Push Kit",name:"pushKitSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:a=>{const{pushKitSendStatus:i,pushKitSendAt:c,pushKitSendFailedReason:y}=E[a];return e.jsx(pe,{status:i,updatedAt:c,reason:y,channel:"pushkit",onResend:F=>g(F,E[a],"pushKit",[],!1)})},filter:!0,filterType:"custom",filterList:p.pushKitSendStatus??[],customFilterListOptions:{render:a=>e.jsx(me,{list:a,label:"Push Kit",onDelete:(i,c)=>{i.stopPropagation(),T(i,c,R[2].options.filterList,"pushKitSendStatus")}}),update:Ce},filterOptions:{names:O,fullWidth:!0,logic:Ne,display:(a,i,c,y)=>e.jsx(Ie,{label:"Push Kit",filterList:a,onChange:i,index:c,column:y,filterValues:O})}}},{label:"Email",name:"emailSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:a=>{const{emailSendStatus:i,emailSendAt:c,emailSendFailedReason:y}=E[a];return e.jsx(pe,{status:i,updatedAt:c,reason:y,channel:"email",onResend:F=>g(F,E[a],"email",[],!1)})},filter:!0,filterType:"custom",filterList:p.emailSendStatus??[],customFilterListOptions:{render:a=>e.jsx(me,{list:a,label:"Email",onDelete:(i,c)=>{i.stopPropagation(),T(i,c,R[3].options.filterList,"emailSendStatus")}}),update:Ce},filterOptions:{names:O,fullWidth:!0,logic:Ne,display:(a,i,c,y)=>e.jsx(Ie,{label:"Email",filterList:a,onChange:i,index:c,column:y,filterValues:O})}}},{label:"Webhook",name:"webhook",width:200,options:{filter:!1,setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:a=>{const{webhook:i}=E[a];if(!i)return null;const c=Object.entries(i)[0];if(!c)return null;const[y,F]=c,K=F[0];return e.jsx(v,{display:"flex",flexDirection:"column",gap:1,children:e.jsxs(v,{className:"webhook-item",fontSize:12,children:[e.jsx(xe,{maxLength:30,children:y},y),e.jsx(pe,{status:K.status,updatedAt:K.sendAt,reason:K.failedReason,channel:"webhook",onResend:q=>g(q,E[a],"webhook",[y],!1)})]},y)})}}},{label:o("common.createdAt"),name:"createdAt",width:100,options:{filter:!1,customBodyRenderLite:a=>{const{createdAt:i}=E[a];return e.jsx(it,{value:i,locale:r,shouldUpdate:!0})}}}],[E,r,p,o]),U=[e.jsx($e,{value:p.dateRange,onChange:j},"date-picker"),e.jsx(ke,{variant:"contained",size:"small",color:"primary",loading:B,startIcon:e.jsx(Ut,{}),onClick:()=>_(),sx:{".MuiButton-startIcon":{mr:"2px"}},style:{marginLeft:8},children:o("common.refresh")},"refresh")];return e.jsx(v,{sx:{overflow:"auto",".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"},".MuiTableCell-root":{paddingRight:"8px",whiteSpace:"nowrap"}},children:e.jsx(hs,{children:e.jsxs(ot,{theme:b,children:[e.jsx(dt,{className:"receivers-table",locale:r,loading:B,columns:R,data:E,onChange:se,options:ae,customButtons:U,components:{TableFilterList:a=>e.jsx(He,{...a,itemComponent:i=>e.jsx(Te,{...i,canDelete:()=>!1})})}}),P.anchorEl&&e.jsx(Oe,{open:!!P.anchorEl,anchorReference:"anchorPosition",anchorPosition:P.position,onClose:ce,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsxs(gs,{children:[e.jsxs(G,{variant:"body1",component:"div",className:"check-title",children:[I==null?void 0:I.channel," Checking"]}),e.jsx(v,{display:"flex",flexDirection:"column",sx:{gap:"4px"},children:je(I==null?void 0:I.channel).map(a=>{var F,K;const{type:i,pass:c,fail:y}=a;return!(I!=null&&I.result)||(F=I==null?void 0:I.result)!=null&&F[i]?e.jsxs(G,{variant:"body1",component:"div",className:"check-item",display:"flex",alignItems:"center",sx:{gap:"4px",color:(K=I==null?void 0:I.result)!=null&&K[i]?Se.success.main:"inherit"},children:[I!=null&&I.result?e.jsx(ft,{}):e.jsx(tt,{size:12,sx:{color:Se.primary.main}}),e.jsx("span",{children:c})]},i):e.jsxs(G,{variant:"body1",component:"div",display:"flex",alignItems:"center",className:"check-item",sx:{gap:"4px",color:Se.error.main},children:[e.jsx(mt,{}),e.jsx("span",{children:y})]},i)})})]})}),k.anchorEl&&e.jsx(Oe,{open:!!k.anchorEl,anchorReference:"anchorPosition",anchorPosition:k.position,onClose:de,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsx(Ue,{loading:n,onCancel:de,onConfirm:h})})]})})})}const ms=x.memo(jt),hs=re.div`
|
|
1
|
+
import{bq as St,r as x,bC as Q,bi as $,y as V,A as L,j as e,P as d,T as Ct,aP as Xe,aQ as Ze,aw as Nt,h as ne,aB as wt,k as G,K as v,m as X,ej as _e,N as Be,kF as et,bn as Ee,aY as De,U as Ae,ep as we,b7 as Ge,b5 as Oe,C as tt,n as re,f as st,dB as nt,aT as Le,W as Tt,av as at,kG as it,B as ke,kH as ot,g0 as Se,gh as rt,ai as fe,ff as Rt,ax as It,G as Ye,kI as Et,kJ as Dt,D as lt,kK as At,kL as Ot,kM as Lt,kN as kt,R as Pt,bw as ct,O as Ft,S as _t,Q as Je,J as Bt,kO as zt,a4 as Wt}from"./index-BOLfvqKF.js";import{l as Mt,D as dt,g as qt}from"./index-Dow64Z2x.js";import{a as ze,c as Kt}from"./actions-B5wmKEDC.js";import{B as $t}from"./index-HJyYrv5X.js";import{S as xe}from"./shorten-label-D74t0ifG.js";import{I as ut}from"./index-D732T1aT.js";import{T as Ht}from"./index-BCGKopWm.js";import{d as Ut}from"./Refresh-C0Iz2zZt.js";import{D as Vt,g as Gt}from"./traffic-DmNfI0bT.js";import{u as Yt}from"./use-mobile-utJ7FsR-.js";import"./TableRow-DQuCW6hn.js";import"./useThemeProps-DJJZjixl.js";import"./emotion-react.browser.esm-BnQsp-2e.js";import"./ViewColumn-BCvqBjPt.js";import"./Search-DBiDYaX1.js";import"./Clear-BxwDIGi1.js";import"./Delete-DKeOWzoo.js";import"./index-wqaqDly9.js";import"./MoreVert-DqeE3_Hd.js";import"./TableSearch-C6AKfDSr.js";import"./useLocalStorage-DPYKzz1_.js";import"./get-safe-url-DO00hPju.js";import"./ButtonGroup-jLU91Eto.js";import"./getValidReactChildren-D_5CTSB1.js";import"./url-evaluation-DiN5Q08e.js";import"./permission-BQtaoI3I.js";import"./index.esm-Bn-iehLo.js";import"./collapse-Xins5ZhF.js";import"./blocklet-DiZeBiJN.js";import"./Switch-DSS8JChR.js";import"./iframe-BnX2-HMD.js";import"./ChevronLeft-DxCtjh6K.js";import"./ChevronRight-BJDD27JD.js";import"./index-Zm-WNook.js";import"./base-chart-B2gmFhRJ.js";import"./index-30VVCODr.js";import"./AdapterDayjs-BPnL086D.js";import"./CSSTransition-CEYSDYhf.js";import"./refType-C2bDqONV.js";const pt=x.createContext({}),{Provider:Jt,Consumer:pn}=pt;function Qt({children:t,blocklet:s=""}){const{api:n,inService:o,ws:{useSubscription:r}}=St(),[l,b]=x.useState([]),[u,D]=x.useState({total:0,pageSize:20,pageCount:0,page:1}),f=Q(()=>{var p;return(p=s.meta)==null?void 0:p.did},[s]),[C,N]=x.useState([]),[B,z]=x.useState({}),E=Q(()=>l.length?new Set(l.map(p=>p.id)):new Set,[l]),Y=async({page:p=1,pageSize:S=20,...A}={})=>{if(!f)return[];try{const w={paging:{page:p,pageSize:S},...A,teamDid:f,dateRange:A.dateRange?[$(A.dateRange[0]).toISOString(),$(A.dateRange[1]).toISOString()]:void 0},{dids:O,..._}=w;let Z="";O&&O.includes("system")&&(Z="system");const W=O?O.filter(le=>le!=="system"):[],ae={..._,source:Z,componentDids:W},se=await n.getNotificationSendLog({input:ae});return z(ae),b(se.list),D(se.paging),se.list}catch(w){return V.error(w.message),[]}},P=async()=>{const p=await n.getNotificationComponents({input:{teamDid:f}});N(p.componentDids)},k=x.useCallback(p=>{const S=s.children.find(A=>{var w;return((w=A.meta)==null?void 0:w.did)===p});if(S)return S.ancestors=[s],S},[s]),I=async({notificationId:p,receivers:S,channels:A,...w})=>{await n.resendNotification({input:{teamDid:f,notificationId:p,receivers:S,channels:A.map(O=>O==="wallet"?L.NOTIFICATION_SEND_CHANNEL.WALLET:O==="pushKit"?L.NOTIFICATION_SEND_CHANNEL.PUSH:O),...w}})},H=x.useCallback(async p=>(await n.getUser({input:{teamDid:f,user:{did:p}}})).user,[n,f]),J=x.useCallback(async({page:p=1,pageSize:S=20,...A}={})=>{try{const w={paging:{page:p,pageSize:S},...A,userName:A.searchText||"",teamDid:f,dateRange:A.dateRange?[$(A.dateRange[0]).toISOString(),$(A.dateRange[1]).toISOString()]:void 0};return await n.getReceivers({input:w})}catch(w){throw V.error(w.message),w}},[n,f]);x.useEffect(()=>{f&&P()},[f]),r(L.EVENTS.NOTIFICATION_BLOCKLET_UPDATE,p=>{E.has(p.notificationId)&&Y(B)},[E,B]),r(L.EVENTS.NOTIFICATION_BLOCKLET_CREATE,p=>{E.has(p.id)||Y(B)},[E,B]);const te={fetch:Y,data:l,paging:u,blocklet:s,getComponent:k,resendNotification:I,getUser:H,componentDids:C,getReceivers:J,inService:o,teamDid:f};return e.jsx(Jt,{value:{notificationRecords:te},children:t})}function We(){const{notificationRecords:t}=x.useContext(pt);return t}be.propTypes={severity:d.oneOf(Object.values(["info","success","error","warning"])).isRequired};const Xt={info:"primary",success:"success",error:"error",warning:"warning"};function be({severity:t="info"}){return e.jsx(Ct,{type:Xt[t],children:t})}var Me={},Zt=Ze;Object.defineProperty(Me,"__esModule",{value:!0});var ft=Me.default=void 0,es=Zt(Xe()),ts=e;ft=Me.default=(0,es.default)((0,ts.jsx)("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline");var qe={},ss=Ze;Object.defineProperty(qe,"__esModule",{value:!0});var mt=qe.default=void 0,ns=ss(Xe()),as=e;mt=qe.default=(0,ns.default)((0,as.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"}),"Block");const is=(t,s,n="")=>{if(!n||!s)return"";switch(n){case L.NOTIFICATION_SEND_FAILED_REASON.USER_DISABLED:return t("notification.sendStatus.reason.disabled",{channel:s});case L.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_UNAVAILABLE:return t("notification.sendStatus.reason.unavailable",{channel:s});case L.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_DISABLED:return t("notification.sendStatus.reason.notSent",{channel:s});case L.NOTIFICATION_SEND_FAILED_REASON.NOT_ONLINE:return t("notification.sendStatus.reason.offline");default:return n}};function ht(t,s,n={}){const{status:o,updatedAt:r,reason:l="",channel:b="wallet"}=n,u=r?t("notification.sendStatus.sentTime",{date:Nt(r,s)}):"",D=is(t,b,l);return o===L.NOTIFICATION_SEND_STATUS.FAILED?{status:"failed",title:t("notification.sendStatus.failed"),sentTime:u,reason:D}:o===L.NOTIFICATION_SEND_STATUS.SENT?{status:"success",title:t("notification.sendStatus.success"),sentTime:u}:{status:"pending",title:t("notification.sendStatus.pending"),reason:D,sentTime:u}}const Pe={pending:"#aaaaaa",success:"#34BE74",failed:"#D0021B"},Fe=["wallet","pushKit","email"],Qe=["info","success","error","warning"],gt=t=>{var n,o;const{settings:s}=t;return(o=(n=s==null?void 0:s.notification)==null?void 0:n.email)==null?void 0:o.enabled},xt=t=>{var n,o;const{settings:s}=t;return(o=(n=s==null?void 0:s.notification)==null?void 0:n.pushKit)==null?void 0:o.enabled},os=(t,s)=>{const n=ne(s,"extra.notifications.email",!0);return{available:gt(t),enabled:n}},rs=(t,s)=>{const n=ne(s,"extra.notifications.push",!0);return{available:xt(t),enabled:n}},ls=t=>({enabled:ne(t,"extra.notifications.wallet",!0)}),cs=t=>({enabled:ne(t,"extra.webhooks",[]).length>0}),ye=(t=3)=>new Promise(s=>{setTimeout(()=>{s()},t*1e3)}),ds=(t,s)=>s==="wallet"||s==="webhook"?[{channel:s,type:"enabled",pass:t("notification.sendStatus.reason.enabled",{channel:s}),fail:t("notification.sendStatus.reason.disabled",{channel:s})}]:s==="pushKit"||s==="email"?[{channel:s,type:"available",pass:t("notification.sendStatus.reason.available",{channel:s}),fail:t("notification.sendStatus.reason.unavailable",{channel:s})},{channel:s,type:"enabled",pass:t("notification.sendStatus.reason.enabled",{channel:s}),fail:t("notification.sendStatus.reason.disabled",{channel:s})}]:[],ve=(t=[])=>{const s=$().startOf("day");return t.filter(n=>$(n.sendAt).isSame(s,"day")).length},us=(t,s="")=>{if(s&&Fe.includes(s)){const l=`${s}SendRecord`,b=ne(t,l,[]);return ve(b)}const n=ne(t,"webhook",{}),o=Object.keys(n??{})??[];if(s&&o.includes(s)){const l=n[s]??[];return ve(l)}const r={};return Fe.forEach(l=>{const b=`${l}SendRecord`,u=ne(t,b,[]),D=ve(u);r[l]=D}),o.length>0&&o.forEach(l=>{const b=n[l]??[],u=ve(b);r[l]=u}),r},Ce=(t,s,n)=>{if(!Array.isArray(t))throw new Error("Invalid filterList or index");return t[n].splice(s,1),t},Ne=(t,s)=>{if(!Array.isArray(s))throw new Error("filters must be an array");return s.length?!s.includes(t):!1},ps=t=>{switch(t){case L.NOTIFICATION_SEND_CHANNEL.WALLET:return"Wallet";case L.NOTIFICATION_SEND_CHANNEL.PUSH:return"Push Kit";case L.NOTIFICATION_SEND_CHANNEL.EMAIL:return"Email";case L.NOTIFICATION_SEND_CHANNEL.WEBHOOK:return"Webhook";default:return""}},bt=()=>({components:{MUIDataTableFilter:{styleOverrides:{header:{marginBottom:0,p:{margin:0}},root:{"& .MuiGrid-container":{marginTop:0,"& .MuiGrid-item":{paddingTop:0}}}}},MuiPopover:{styleOverrides:{root:{"&.MuiPopover-root":{"& .MuiPaper-root:has(.filter-container)":{width:"420px"}}}}}}});function ee({config:t,enableTooltip:s=!0,showTitle:n=!1,children:o}){const{status:r,title:l="",sentTime:b="",reason:u=""}=t,D=[l,u].filter(Boolean).join(", ");return e.jsx(wt,{title:s?e.jsxs(e.Fragment,{children:[e.jsx(G,{color:"inherit",sx:{fontSize:12},children:D}),e.jsx("span",{children:b})]}):null,arrow:!0,placement:"top",children:e.jsxs(v,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"},children:[e.jsxs(v,{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center",children:[e.jsx(v,{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:Pe[r],style:{opacity:.15}}),e.jsx(v,{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:Pe[r]})]}),e.jsx(G,{color:"inherit",sx:{fontSize:12},children:n?l:o})]})})}ee.propTypes={config:d.object.isRequired,enableTooltip:d.bool,showTitle:d.bool,children:d.node};ee.defaultProps={enableTooltip:!0,showTitle:!1,children:null};me.propTypes={list:d.array.isRequired,label:d.string.isRequired,onDelete:d.func};me.defaultProps={onDelete:()=>{}};function me({list:t,label:s,onDelete:n}){const{t:o,locale:r}=X();return e.jsxs(v,{display:"flex",gap:1,alignItems:"center",children:[e.jsxs(G,{children:[s,": "]}),t.map(l=>{const b=ht(o,r,{status:l});return e.jsx(_e,{size:"small",label:e.jsx(v,{display:"flex",alignItems:"center",sx:{gap:"4px"},children:e.jsx(ee,{config:b,enableTooltip:!1,children:b.title})}),onDelete:u=>n(u,l)},l)})]})}Ke.propTypes={filterList:d.array.isRequired,onChange:d.func.isRequired,index:d.number.isRequired,column:d.object.isRequired,filterValues:d.array.isRequired,label:d.string.isRequired,renderLabel:d.func.isRequired};function Ke({filterList:t,onChange:s,index:n,column:o,filterValues:r,label:l,renderLabel:b}){return e.jsxs(Be,{className:"filter-container",children:[e.jsx(et,{component:"legend",children:l}),e.jsx(Ee,{row:!0,children:r.map(u=>e.jsx(De,{control:e.jsx(Ae,{checked:t[n].indexOf(u.value??u)>-1,onChange:D=>{const f=[...t];D.target.checked?f[n]=[...f[n],u.value??u]:f[n]=f[n].filter(C=>C!==(u.value??u)),s(f[n],n,o)},name:u.value??u}),label:e.jsx("span",{style:{display:"flex",alignItems:"center"},children:b(u)})},u.value??u))})]})}function Ie(t){return e.jsx(Ke,{...t,renderLabel:s=>e.jsx(ee,{enableTooltip:!1,config:{status:s.status},children:s.label})})}pe.propTypes={status:d.number.isRequired,updatedAt:d.string.isRequired,reason:d.string,channel:d.string,onResend:d.func};function pe({status:t,updatedAt:s,reason:n="",channel:o="wallet",onResend:r}){const{t:l,locale:b}=X(),u=ht(l,b,{status:t,updatedAt:s,reason:n,channel:o});return e.jsxs(v,{display:"flex",alignItems:"center",gap:1,children:[e.jsx(ee,{config:u,showTitle:!0}),u.status!=="success"&&e.jsx(we,{className:"resend-btn",size:"small",startIcon:e.jsx(ze,{}),sx:{fontSize:12,color:"rgba(0, 0, 0, 0.87)",fontWeight:400,".MuiButton-startIcon":{mr:"2px"}},onClick:r,children:l("notification.resend")})]})}$e.propTypes={value:d.array.isRequired,onChange:d.func};function $e({value:t,onChange:s}){const{locale:n}=X(),o=$().toDate(),[r,l]=x.useState(null),b=x.useCallback(f=>{l(r?null:f.currentTarget)},[r]),u=!!r,D=x.useCallback(f=>{if(!f.startDate||!f.endDate){V.error("Please select a date range");return}if($(f.startDate).isAfter(f.endDate)||!$(f.startDate).isValid()||!$(f.endDate).isValid()){V.error("Invalid date range");return}s([f.startDate,f.endDate]),l(null)},[s]);return e.jsxs("div",{children:[e.jsx(G,{component:"div",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},mb:0,children:e.jsxs(we,{onClick:b,variant:"outlined",size:"small",color:"inherit",children:[Ge(t[0],n)," - ",Ge(t[1],n)]})}),e.jsx(Oe,{open:u,anchorEl:r,onClose:()=>{l(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},children:e.jsx(Vt,{open:!0,maxDate:o,initialDateRange:{startDate:t[0],endDate:t[1]},toggle:b,definedRanges:Gt(o),onChange:D})})]})}He.propTypes={itemComponent:d.elementType.isRequired};function He({itemComponent:t,...s}){var r;const{t:n}=X();return!((r=s==null?void 0:s.filterList)!=null&&r.filter(l=>l.length).length)?null:e.jsxs(v,{display:"flex",gap:1,alignItems:"center",children:[e.jsx("div",{className:"toolbar-filter-title",children:n("notification.filter")}),e.jsx("div",{className:"toolbar-filter-content",children:e.jsx(Mt.TableFilterList,{...s,ItemComponent:t})})]})}function Te({label:t,onDelete:s,canDelete:n=()=>!0,...o}){const r=s&&typeof s=="function"?s:void 0;let l=!0;return n&&typeof n=="function"&&(l=n({label:t,...o})),e.jsx(_e,{label:t,variant:"outlined",...r&&l?{onDelete:r}:{}})}Te.propTypes={label:d.string.isRequired,onDelete:d.func,canDelete:d.func};Te.defaultProps={canDelete:()=>!0};const fs=[{label:"Wallet",value:"app",checked:!0},{label:"Email",value:"email",checked:!0},{label:"Push Kit",value:"push",checked:!0},{label:"Webhook",value:"webhook",checked:!0}];Ue.propTypes={loading:d.bool,onCancel:d.func,onConfirm:d.func};Ue.defaultProps={loading:!1,onCancel:()=>{},onConfirm:()=>{}};function Ue({loading:t=!1,onCancel:s,onConfirm:n}){const{t:o}=X(),[r,l]=x.useState(fs),[b,u]=x.useState(!0),D=(C,N)=>{N.checked=C.target.checked;const B=r.map(z=>({...z,checked:z.value===N.value?N.checked:z.checked}));l(B)},f=C=>{C.stopPropagation(),n({channels:r.filter(N=>N.checked).map(N=>N.value),isResendFailedOnly:b})};return e.jsxs(v,{className:"resend-config",sx:{padding:"16px 24px"},children:[e.jsx(G,{variant:"body1",component:"div",className:"check-title",sx:{fontWeight:700,mb:1},children:o("notification.config")}),e.jsx(v,{className:"choose-channel",children:e.jsxs(Be,{component:"fieldset",variant:"standard",children:[e.jsx(et,{component:"legend",children:o("notification.selectChannels")}),e.jsx(Ee,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:1},children:r.map(C=>e.jsx(De,{control:e.jsx(Ae,{checked:C.checked,onChange:N=>D(N,C),name:C.value}),label:C.label},C.value))})]})}),e.jsx(v,{className:"resend-config-footer",children:e.jsx(Ee,{children:e.jsx(De,{control:e.jsx(Ae,{checked:b,onChange:C=>u(C.target.checked)}),label:o("notification.resendFailedOnly")})})}),e.jsxs(v,{display:"flex",justifyContent:"flex-end",gap:1,className:"resend-config-footer-tip",children:[e.jsx(we,{onClick:C=>{C.stopPropagation(),s()},color:"inherit",children:o("common.cancel")}),e.jsxs(we,{onClick:f,color:"primary",disabled:t,variant:"contained",autoFocus:!0,style:{marginLeft:8},children:[t&&e.jsx(tt,{size:16}),o("common.confirm")]})]})]})}jt.propTypes={notificationId:d.string.isRequired,handleResend:d.func,resending:d.bool};function jt({notificationId:t,handleResend:s,resending:n=!1}){const{t:o,locale:r}=X(),l=st(),b=x.useMemo(()=>nt(l,bt()),[l]),{getReceivers:u,inService:D,teamDid:f,getUser:C,blocklet:N}=We(),[B,z]=x.useState(!1),[E,Y]=x.useState([]),P=Le({anchorEl:null,position:null}),k=Le({anchorEl:null,position:null}),[I,H]=x.useState(null),[J,te]=x.useState({total:0,pageSize:10,pageCount:0,page:1}),[p,S]=x.useState({searchText:"",page:1,pageSize:10,walletSendStatus:[],pushKitSendStatus:[],emailSendStatus:[],dateRange:[$().subtract(1,"month").startOf("day").toDate(),$().endOf("day").toDate()]}),[A,w]=x.useState([]),O=[{label:o("notification.sendStatus.pending"),value:0,status:"pending"},{label:o("notification.sendStatus.success"),value:1,status:"success"},{label:o("notification.sendStatus.failed"),value:2,status:"failed"}],_=async()=>{if(!B&&t)try{z(!0);const a=await u({notificationId:t,...p}),i=a.list.map(c=>({...c,receiverUser:{...c.receiverUser,avatar:rt(c.receiverUser.avatar,f,D)}}));Y(i),te(a.paging),z(!1)}catch(a){V.error(a.message),z(!1)}};x.useEffect(()=>{_()},[p]);const Z=a=>{a.stopPropagation();const i=a.currentTarget;k.anchorEl=i;const c=i.getBoundingClientRect();k.position={top:c.top+window.scrollY,left:c.left+window.scrollX}},W=a=>a.data.length?e.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px"},children:e.jsx(ke,{className:"resend-btn",size:"small",color:"primary",variant:"contained",startIcon:e.jsx(ze,{}),sx:{".MuiButton-startIcon":{mr:"2px"}},onClick:Z,children:o("notification.resend")})}):null,ae={sort:!1,download:!1,print:!1,selectableRows:"multiple",searchPlaceholder:o("common.search"),searchAlwaysOpen:!1,filterType:"checkbox",searchDebounceTime:300,page:J.page-1,rowsPerPage:J.pageSize,count:J.total,searchText:p.searchText,tableBodyMaxHeight:"calc(80vh - 260px)",rowsSelected:A,onRowSelectionChange:(a,i)=>{w(i.map(c=>c.dataIndex))},customToolbarSelect:W},se=({page:a,rowsPerPage:i,searchText:c,filterList:y})=>{const[,F=[],K=[],q=[]]=y;p.pageSize!==i?S(M=>({...M,pageSize:i,page:1})):p.page!==a+1?S(M=>({...M,page:a+1})):p.searchText!==c?S(M=>({...M,searchText:c,page:1})):fe(F,p.walletSendStatus)?fe(K,p.pushKitSendStatus)?fe(q,p.emailSendStatus)||S(M=>({...M,emailSendStatus:q,page:1})):S(M=>({...M,pushKitSendStatus:K,page:1})):S(M=>({...M,walletSendStatus:F,page:1}))},le=x.useCallback(async(a,i)=>{if(!i)return!1;const c=await C(i);return c?a==="wallet"?ls(c):a==="email"?os(N,c):a==="pushKit"?rs(N,c):a==="webhook"?cs(c):!0:!1},[C,N]),je=x.useCallback(a=>ds(o,a),[o]),ce=()=>{P.anchorEl=null,P.position=null,H(null)},de=()=>{k.anchorEl=null,k.position=null},ue=async(a,i,c=!0,y="")=>{if(!(!i.length||!a.length))try{s(a,i,c,y),k.anchorEl||(await ye(.5),ce())}catch(F){console.error("handleResend error",{error:F})}},h=async({channels:a,isResendFailedOnly:i})=>{const c=A.map(y=>E[y].receiver);await ue(a,c,i),await ye(.5),de(),w([])},m=async(a,i=[],c=!0)=>{try{await ue(["webhook"],[a.receiver],c,i)}catch(y){V.error(y.response?y.response.statusText:y.message)}},g=async(a,i,c,y=[],F=!0)=>{if(a.stopPropagation(),us(i,c)>=4){V.warning(o("notification.resendLimit"));return}if(!Fe.includes(c)){await m(i,y,F);return}if(a){const q=a.currentTarget,M=q.getBoundingClientRect();P.anchorEl=q,P.position={top:M.top+window.scrollY,left:M.left+window.scrollX}}H({channel:c});try{const q=await le(c,i.receiver);await ye(1),H({channel:c,result:q}),(typeof q=="boolean"&&q||Rt(q)&&Object.values(q).every(M=>!!M))&&(await s([c],[i.receiver],F),k.anchorEl||(await ye(.5),ce()))}catch(q){V.error(q.message)}},j=a=>{S(i=>({...i,dateRange:a,page:1}))},T=(a,i,c,y)=>{a.stopPropagation();const F=c.filter(K=>K!==i);S(K=>({...K,[y]:F,page:1}))},R=Q(()=>[{label:o("notification.receiver"),name:"receiver",width:200,options:{filter:!1,customBodyRenderLite:a=>{const{receiverUser:i,receiver:c}=E[a];return i?e.jsxs(v,{"data-cy":`member-name-${i.fullName}`,display:"flex",alignItems:"center",gap:1,justifyContent:"flex-start",children:[e.jsx(at,{src:`${i.avatar}?imageFilter=resize&w=48&h=48`,size:32,did:c,shape:"circle",style:{borderRadius:"100%",overflow:"hidden"}}),e.jsx(xe,{children:i.fullName})]},c):e.jsx(Tt,{size:14,responsive:!1,compact:!0,copyable:!1,did:c})}}},{label:"Wallet",name:"walletSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),filter:!0,filterType:"custom",filterList:p.walletSendStatus??[],customFilterListOptions:{render:a=>e.jsx(me,{list:a,label:"Wallet",onDelete:(i,c)=>{i.stopPropagation(),T(i,c,R[1].options.filterList,"walletSendStatus")}}),update:Ce},filterOptions:{names:O,fullWidth:!0,logic:Ne,display:(a,i,c,y)=>e.jsx(Ie,{label:"Wallet",filterList:a,onChange:i,index:c,column:y,filterValues:O})},customBodyRenderLite:a=>{const{walletSendStatus:i,walletSendAt:c,walletSendFailedReason:y}=E[a];return e.jsx(pe,{status:i,updatedAt:c,reason:y,channel:"wallet",onResend:F=>g(F,E[a],"wallet",[],!1)})}}},{label:"Push Kit",name:"pushKitSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:a=>{const{pushKitSendStatus:i,pushKitSendAt:c,pushKitSendFailedReason:y}=E[a];return e.jsx(pe,{status:i,updatedAt:c,reason:y,channel:"pushkit",onResend:F=>g(F,E[a],"pushKit",[],!1)})},filter:!0,filterType:"custom",filterList:p.pushKitSendStatus??[],customFilterListOptions:{render:a=>e.jsx(me,{list:a,label:"Push Kit",onDelete:(i,c)=>{i.stopPropagation(),T(i,c,R[2].options.filterList,"pushKitSendStatus")}}),update:Ce},filterOptions:{names:O,fullWidth:!0,logic:Ne,display:(a,i,c,y)=>e.jsx(Ie,{label:"Push Kit",filterList:a,onChange:i,index:c,column:y,filterValues:O})}}},{label:"Email",name:"emailSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:a=>{const{emailSendStatus:i,emailSendAt:c,emailSendFailedReason:y}=E[a];return e.jsx(pe,{status:i,updatedAt:c,reason:y,channel:"email",onResend:F=>g(F,E[a],"email",[],!1)})},filter:!0,filterType:"custom",filterList:p.emailSendStatus??[],customFilterListOptions:{render:a=>e.jsx(me,{list:a,label:"Email",onDelete:(i,c)=>{i.stopPropagation(),T(i,c,R[3].options.filterList,"emailSendStatus")}}),update:Ce},filterOptions:{names:O,fullWidth:!0,logic:Ne,display:(a,i,c,y)=>e.jsx(Ie,{label:"Email",filterList:a,onChange:i,index:c,column:y,filterValues:O})}}},{label:"Webhook",name:"webhook",width:200,options:{filter:!1,setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:a=>{const{webhook:i}=E[a];if(!i)return null;const c=Object.entries(i)[0];if(!c)return null;const[y,F]=c,K=F[0];return e.jsx(v,{display:"flex",flexDirection:"column",gap:1,children:e.jsxs(v,{className:"webhook-item",fontSize:12,children:[e.jsx(xe,{maxLength:30,children:y},y),e.jsx(pe,{status:K.status,updatedAt:K.sendAt,reason:K.failedReason,channel:"webhook",onResend:q=>g(q,E[a],"webhook",[y],!1)})]},y)})}}},{label:o("common.createdAt"),name:"createdAt",width:100,options:{filter:!1,customBodyRenderLite:a=>{const{createdAt:i}=E[a];return e.jsx(it,{value:i,locale:r,shouldUpdate:!0})}}}],[E,r,p,o]),U=[e.jsx($e,{value:p.dateRange,onChange:j},"date-picker"),e.jsx(ke,{variant:"contained",size:"small",color:"primary",loading:B,startIcon:e.jsx(Ut,{}),onClick:()=>_(),sx:{".MuiButton-startIcon":{mr:"2px"}},style:{marginLeft:8},children:o("common.refresh")},"refresh")];return e.jsx(v,{sx:{overflow:"auto",".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"},".MuiTableCell-root":{paddingRight:"8px",whiteSpace:"nowrap"}},children:e.jsx(hs,{children:e.jsxs(ot,{theme:b,children:[e.jsx(dt,{className:"receivers-table",locale:r,loading:B,columns:R,data:E,onChange:se,options:ae,customButtons:U,components:{TableFilterList:a=>e.jsx(He,{...a,itemComponent:i=>e.jsx(Te,{...i,canDelete:()=>!1})})}}),P.anchorEl&&e.jsx(Oe,{open:!!P.anchorEl,anchorReference:"anchorPosition",anchorPosition:P.position,onClose:ce,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsxs(gs,{children:[e.jsxs(G,{variant:"body1",component:"div",className:"check-title",children:[I==null?void 0:I.channel," Checking"]}),e.jsx(v,{display:"flex",flexDirection:"column",sx:{gap:"4px"},children:je(I==null?void 0:I.channel).map(a=>{var F,K;const{type:i,pass:c,fail:y}=a;return!(I!=null&&I.result)||(F=I==null?void 0:I.result)!=null&&F[i]?e.jsxs(G,{variant:"body1",component:"div",className:"check-item",display:"flex",alignItems:"center",sx:{gap:"4px",color:(K=I==null?void 0:I.result)!=null&&K[i]?Se.success.main:"inherit"},children:[I!=null&&I.result?e.jsx(ft,{}):e.jsx(tt,{size:12,sx:{color:Se.primary.main}}),e.jsx("span",{children:c})]},i):e.jsxs(G,{variant:"body1",component:"div",display:"flex",alignItems:"center",className:"check-item",sx:{gap:"4px",color:Se.error.main},children:[e.jsx(mt,{}),e.jsx("span",{children:y})]},i)})})]})}),k.anchorEl&&e.jsx(Oe,{open:!!k.anchorEl,anchorReference:"anchorPosition",anchorPosition:k.position,onClose:de,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsx(Ue,{loading:n,onCancel:de,onConfirm:h})})]})})})}const ms=x.memo(jt),hs=re.div`
|
|
2
2
|
td.MuiTableCell-footer {
|
|
3
3
|
border: none !important;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bW as createSvgIcon,j as jsxRuntimeExports,r as reactExports,P as PropTypes,bl as getDefaultExportFromCjs,n as newStyled,E as useMediaQuery,dx as Skeleton,cS as Img,$ as default_1$1,aB as Tooltip,ep as Button,k as Typography,C as CircularProgress,b8 as styled,al as useTheme,ff as isObject,dB as deepmerge,dT as StyledEngineProvider,dU as ThemeProvider,fF as ThemeProvider$1,fG as HeaderAddons,fH as Hidden,Y as Center,aP as requireCreateSvgIcon,aQ as interopRequireDefaultExports,fI as Check,d8 as commonjsGlobal,cF as Buffer,bh as React,fj as noop,bB as __vitePreload,dq as styled$1}from"./index-
|
|
1
|
+
import{bW as createSvgIcon,j as jsxRuntimeExports,r as reactExports,P as PropTypes,bl as getDefaultExportFromCjs,n as newStyled,E as useMediaQuery,dx as Skeleton,cS as Img,$ as default_1$1,aB as Tooltip,ep as Button,k as Typography,C as CircularProgress,b8 as styled,al as useTheme,ff as isObject,dB as deepmerge,dT as StyledEngineProvider,dU as ThemeProvider,fF as ThemeProvider$1,fG as HeaderAddons,fH as Hidden,Y as Center,aP as requireCreateSvgIcon,aQ as interopRequireDefaultExports,fI as Check,d8 as commonjsGlobal,cF as Buffer,bh as React,fj as noop,bB as __vitePreload,dq as styled$1}from"./index-BOLfvqKF.js";import{j as joinUrl}from"./url-join-BIMdRB8V.js";import{C as CloseIcon}from"./Close-C9dxdyWh.js";const PriorityHigh=createSvgIcon([jsxRuntimeExports.jsx("circle",{cx:"12",cy:"19",r:"2"},"0"),jsxRuntimeExports.jsx("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh"),StepContext=reactExports.createContext(),{Provider}=StepContext,matchPath=(i,s,a=window.location.pathname.replace(/\/$/,"/"))=>i?s?i===a:new RegExp(i).test(a):!1;function StepProvider({children:i,steps:s,mode:a}){const[o,u]=reactExports.useState("");!o&&s.length&&u(s[0].key);const P=s.map(T=>T.children?[{key:T.key,hasChild:!0},T.children.map(O=>({parentKey:T.key,key:O.key}))]:{key:T.key}).flat(1/0),S=P.filter(T=>!T.hasChild),C=T=>{let O;const D=P.findIndex(H=>H.key===o?(O=H.parentKey,!0):!1);if(O===T)return"current";const L=P.findIndex(H=>H.key===T);if(L!==-1){if(L===D)return"current";if(L<D)return"before"}return"after"};function E(T){u(T)}function _(T){if(typeof T=="function"){const O=T(S.findIndex(D=>D.key===o));u(S[O].key)}else u(S[T].key)}const I=S.findIndex(T=>T.key===o);reactExports.useEffect(()=>{if(a==="history"){let T="";s.some(O=>O.children&&O.children.length?O.children.some(D=>matchPath(D.path,D.exact)?(T=D.key,!0):!1):matchPath(O.path,O.exact)?(T=O.key,!0):!1),T&&u(T)}return()=>{}},[s,a]);const j={steps:s,totalStepsCount:S.length,getStepStatus:C,setActiveStepByKey:E,setActiveStepByIndex:_,activeStep:I,canBackToStep:T=>a==="memory"&&I!==0&&T<I};return jsxRuntimeExports.jsx(Provider,{value:j,children:i})}function useStepContext(){return reactExports.useContext(StepContext)}StepProvider.propTypes={children:PropTypes.any.isRequired,steps:PropTypes.array.isRequired,mode:PropTypes.string};StepProvider.defaultProps={mode:"history"};var has=Object.prototype.hasOwnProperty,toString=Object.prototype.toString;function isEmpty(i){if(i==null)return!0;if(typeof i=="boolean")return!1;if(typeof i=="number")return i===0;if(typeof i=="string"||typeof i=="function"||Array.isArray(i))return i.length===0;if(i instanceof Error)return i.message==="";if(i.toString==toString)switch(i.toString()){case"[object File]":case"[object Map]":case"[object Set]":return i.size===0;case"[object Object]":{for(var s in i)if(has.call(i,s))return!1;return!0}}return!1}var lib=isEmpty;const isEmpty$1=getDefaultExportFromCjs(lib),defaultBlockletLogo=""+new URL("blocklet-default-logo-Bspnu_ws.png",import.meta.url).href,translations={en:{optional:"Optional",defaultNavSubTitle:"Launching"},zh:{optional:"可选",defaultNavSubTitle:"启动"}},getTranslations=i=>translations[i]?translations[i]:translations.en,getLaunchingText=i=>i==="zh"?"启动":"Launching",getBlockletDisplayName=i=>(i==null?void 0:i.title)||(i==null?void 0:i.name)||"";function AppHeader({blockletMeta:i,subTitle:s,logoUrl:a,locale:o,navLogo:u,loading:P}){const S=useMediaQuery(j=>j.breakpoints.down("md")),C=S?18:48,E=reactExports.useRef(null),[_,I]=reactExports.useState("");return reactExports.useEffect(()=>{E.current&&E.current.offsetHeight>34&&(_===""?I("middle"):_==="middle"&&I("small"))},[_]),jsxRuntimeExports.jsxs(Container$2,{className:_==="small"?"center-mode":"",children:[S?jsxRuntimeExports.jsx("div",{className:"app-icon",children:u}):jsxRuntimeExports.jsxs("div",{className:"app-icon",children:[P&&jsxRuntimeExports.jsx(AppIconSkeleton,{blockletSize:C,isMobile:S}),!P&&jsxRuntimeExports.jsx(AppIcon,{blockletSize:C,logoUrl:a})]}),jsxRuntimeExports.jsxs("div",{className:"header-title",children:[S&&s&&jsxRuntimeExports.jsx("div",{className:"header-title-sub",children:s}),jsxRuntimeExports.jsxs("div",{className:"app-name-content",children:[!S&&jsxRuntimeExports.jsx("div",{className:"launching-context",children:s||getLaunchingText(o)}),jsxRuntimeExports.jsx("div",{className:`header-title-name ${_==="middle"||_==="small"?"middle-size":""}`,ref:E,children:jsxRuntimeExports.jsx(AppTitle,{logoUrl:a,isMobile:S,blockletMeta:i,blockletSize:C,loading:P})})]})]})]})}AppHeader.propTypes={blockletMeta:PropTypes.object,subTitle:PropTypes.any,logoUrl:PropTypes.string,locale:PropTypes.string,navLogo:PropTypes.any,loading:PropTypes.bool};AppHeader.defaultProps={subTitle:"",logoUrl:"",locale:"",navLogo:"",loading:!1,blockletMeta:{}};function AppIconSkeleton({blockletSize:i,isMobile:s}){return s?jsxRuntimeExports.jsx(Skeleton,{variant:"rectangular",width:100,height:16,alt:"icon",style:{marginTop:4}}):jsxRuntimeExports.jsx(Skeleton,{variant:"rectangular",width:i,height:i})}function AppIcon({logoUrl:i,blockletSize:s}){return jsxRuntimeExports.jsx(Img,{width:s,height:s,src:i,alt:"blocklet icon",fallback:defaultBlockletLogo,style:{verticalAlign:"text-bottom"}},`layout-app-icon-${i}`)}function AppTitle({isMobile:i,logoUrl:s,blockletMeta:a,blockletSize:o,loading:u}){const P=getBlockletDisplayName(a);return u?jsxRuntimeExports.jsx(Skeleton,{variant:"rectangular",width:100,height:16,alt:"icon",style:{marginTop:4}}):isEmpty$1(a)?jsxRuntimeExports.jsx(Skeleton,{variant:"rectangular",animation:!1,width:100,height:16,alt:"icon",style:{marginTop:4}}):i?jsxRuntimeExports.jsxs(MobileTitleStyle,{children:[jsxRuntimeExports.jsx(AppIcon,{blockletSize:o,logoUrl:s}),jsxRuntimeExports.jsx("span",{className:"ellipsis-title",children:getBlockletDisplayName(a)})]}):jsxRuntimeExports.jsx(AppLink,{className:"app-link",target:"_blank",href:joinUrl((a==null?void 0:a.registryUrl)||"",`/blocklets/${a==null?void 0:a.did}`),title:P,children:P})}const MobileTitleStyle=newStyled.div`
|
|
2
2
|
.ellipsis-title {
|
|
3
3
|
flex: 1;
|
|
4
4
|
position: absolute;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as f,j as s,C as d,x as w,aA as v,ct as C,cu as u,K as j,bz as I,af as P,A as S}from"./index-
|
|
1
|
+
import{u as f,j as s,C as d,x as w,aA as v,ct as C,cu as u,K as j,bz as I,af as P,A as S}from"./index-BOLfvqKF.js";import{I as R}from"./invitation-DurHrtHf.js";import{g as T}from"./get-safe-url-aH9mMJx2.js";import"./index-Z5lc5lIc.js";import"./index-IW9KB94O.js";import"./emotion-react.browser.esm-BnQsp-2e.js";import"./index-C5r6y0B-.js";import"./sdk-DuEQLs4j.js";import"./wrap-locale-mYykcBLv.js";function k(n){const{searchParams:i}=new URL(window.location.href),g=w(),{api:a,session:r}=v(),{info:l}=f(),c=i.get("redirect"),p=i.get("id"),e=C(async()=>{if(!p)return null;const{data:t}=await a.get("/api/invitation",{params:{inviteId:p,mode:"issue-passport"}});return t}),m=u(()=>{if(e.error)throw e.error;return e==null?void 0:e.data}),h=u(async(t,x=o=>o)=>{t&&(t.sessionToken&&P(x(t.sessionToken)),await r.refresh()),setTimeout(()=>{if(c){const o=decodeURIComponent(c);o.startsWith(S.WELLKNOWN_SERVICE_PATH_PREFIX)?g(o,{replace:!0}):window.location.href=T(o)}else window.location.href=window.env.pathPrefix||"/"},50)});return e.loading?s.jsx(d,{}):s.jsx(j,{className:"page-invite",sx:{width:"100vw",height:"100%",minHeight:"100vh",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"#f6f8fa",overflow:"auto",padding:"20px"},children:s.jsx(R,{...n,action:"issue-passport",getDataFn:m,createPassportSvg:t=>I(t,l),checkFn:a.get,onLoginSuccess:h,passportColor:"default",onLogin:r.login})})}function b(){return f().loading?s.jsx(d,{}):s.jsx(k,{})}export{b as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as P,K as b,Z as X,j as e,$ as ve,r as f,P as E,m as O,a0 as We,a1 as Se,a2 as j,a3 as Ge,a4 as re,a5 as He,y as I,X as Z,a6 as qe,k as F,T as Ve,a7 as Ye,B as U,D as Ke,C as je,s as Qe,t as Xe,V as Ce,a8 as Ze,a9 as Je,aa as et,u as M,e as tt,ab as W,o as oe,z as st,ac as ne,x as Pe,q as ae,ad as ot,W as ie,g as J,v as Re,w as ee,ae as rt,af as nt,ag as Te,ah as at,b as B,ai as xe,aj as it,I as lt,ak as ct,M as dt,al as pt,am as mt,an as Ee,ao as De,ap as Be,aq as Ue,ar as Oe,as as N,at as _e,au as $e,av as Ae,aw as ht,ax as ge}from"./index-
|
|
1
|
+
import{n as P,K as b,Z as X,j as e,$ as ve,r as f,P as E,m as O,a0 as We,a1 as Se,a2 as j,a3 as Ge,a4 as re,a5 as He,y as I,X as Z,a6 as qe,k as F,T as Ve,a7 as Ye,B as U,D as Ke,C as je,s as Qe,t as Xe,V as Ce,a8 as Ze,a9 as Je,aa as et,u as M,e as tt,ab as W,o as oe,z as st,ac as ne,x as Pe,q as ae,ad as ot,W as ie,g as J,v as Re,w as ee,ae as rt,af as nt,ag as Te,ah as at,b as B,ai as xe,aj as it,I as lt,ak as ct,M as dt,al as pt,am as mt,an as Ee,ao as De,ap as Be,aq as Ue,ar as Oe,as as N,at as _e,au as $e,av as Ae,aw as ht,ax as ge}from"./index-BOLfvqKF.js";import{t as ut}from"./toLower-RHUaQlXh.js";import{P as H,L as ft,A as xt,S as Fe,a as Le}from"./index-CG3kAlcB.js";import{A as gt,D as le,u as yt,W as wt,P as kt,a as Ne,L as Ie}from"./wait-container-JJXJ3aE4.js";import{g as te}from"./get-safe-url-aH9mMJx2.js";import{_ as ye}from"./useLocalStorage-DPYKzz1_.js";import{d as bt}from"./Launch-W68EZl8H.js";import{d as vt}from"./DeleteOutline-BKxhOLzM.js";import{g as St,i as jt}from"./spaces-BgnAkcnA.js";import{d as Ct}from"./MoreVert-DqeE3_Hd.js";import{E as Pt}from"./index-wqaqDly9.js";import"./url-join-BIMdRB8V.js";import"./Close-C9dxdyWh.js";import"./use-mobile-utJ7FsR-.js";import"./api-DJB2B_-t.js";function ce({children:t,selected:i}){return e.jsxs(Rt,{children:[t,e.jsx(b,{className:`selected-container ${i?"selected":""}`,children:e.jsx(ve,{className:"selected-icon"})})]})}const Rt=P(b)`
|
|
2
2
|
position: relative;
|
|
3
3
|
|
|
4
4
|
.selected-container {
|