@abtnode/blocklet-services 1.16.40-beta-20250310-113951-17556f90 → 1.16.40-beta-20250312-140816-ad94b88b
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/api/index.js +8 -1
- package/api/libs/connect/session.js +2 -1
- package/api/routes/env.js +6 -1
- package/api/routes/user.js +6 -3
- package/api/services/auth/index.js +0 -2
- package/api/services/kyc/index.js +2 -2
- package/api/util/index.js +1 -0
- package/dist/assets/{ArrowDropDown-Cm4c8BlY.js → ArrowDropDown-CkoS5Vgu.js} +1 -1
- package/dist/assets/{CheckCircle-sJN5S1iC.js → CheckCircle-CGdHOFiB.js} +1 -1
- package/dist/assets/{ChevronLeft-BeX0eKuU.js → ChevronLeft-D2w2grVw.js} +1 -1
- package/dist/assets/{ChevronRight-BWxZ0GT9.js → ChevronRight-P0UHFnJH.js} +1 -1
- package/dist/assets/{Community-CjBbjelR.js → Community-DkkQ2-I9.js} +1 -1
- package/dist/assets/{DeleteOutline-DnZa0RcQ.js → DeleteOutline-UNCxlD7-.js} +1 -1
- package/dist/assets/{Done-CUONuiq7.js → Done-BoPoI7M4.js} +1 -1
- package/dist/assets/{Download-BymJGiyd.js → Download-BEMi2ReL.js} +1 -1
- package/dist/assets/{EditIcon-ejHqaqyS.js → EditIcon-D7rcxjPn.js} +1 -1
- package/dist/assets/{Email-5VJNIBMV.js → Email-CfWN_Ba0.js} +1 -1
- package/dist/assets/{Error-B8-wyPeq.js → Error-DnMJhoOK.js} +1 -1
- package/dist/assets/{ExpandLess-1p_uqVHy.js → ExpandLess-DkPiQCn3.js} +1 -1
- package/dist/assets/{Google-CtwTVSPC.js → Google-CsLF3U9o.js} +1 -1
- package/dist/assets/{Holiday-cZPVLjRi.js → Holiday-BibOmxdJ.js} +1 -1
- package/dist/assets/{InfoOutlined-aPcuFKow.js → InfoOutlined-CHMeBquS.js} +1 -1
- package/dist/assets/{Launch-CNY19G4F.js → Launch-DSuroYuU.js} +1 -1
- package/dist/assets/{LaunchOutlined-CBLNAogt.js → LaunchOutlined-CsW2MO-S.js} +1 -1
- package/dist/assets/{Location-Ddaqgs_o.js → Location-rEXUbA3f.js} +1 -1
- package/dist/assets/{LockIcon-BSkJrAvs.js → LockIcon-ClZYEGKw.js} +1 -1
- package/dist/assets/{Meeting-B1Wf1UR0.js → Meeting-Bq0eaNpx.js} +1 -1
- package/dist/assets/{MoreHoriz-BTnTEmyW.js → MoreHoriz-BE-qjNk_.js} +1 -1
- package/dist/assets/{OffSick-DjJVy-QB.js → OffSick-B94KRaXv.js} +1 -1
- package/dist/assets/{Phone-CRdqD7Iq.js → Phone-DEa4HPZU.js} +1 -1
- package/dist/assets/{PlayArrow-BWaTV7IU.js → PlayArrow-BmcHH5wq.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-mj_OeUT2.js → QuestionMarkCircle-CZnuAiiS.js} +1 -1
- package/dist/assets/{ServerLogo-DaTXUmCj.js → ServerLogo-BWNl3yot.js} +1 -1
- package/dist/assets/{Timezone-D9FI_BOf.js → Timezone-BnxUGNAt.js} +1 -1
- package/dist/assets/{ViewList-gKXyJK1z.js → ViewList-Br6AlU2_.js} +1 -1
- package/dist/assets/{WorkingRemotely-DPFHPJzl.js → WorkingRemotely-CTActNZC.js} +1 -1
- package/dist/assets/{access-control-CRSnnV6w.js → access-control-C7I0Froc.js} +1 -1
- package/dist/assets/{actions-D8Lw3xe3.js → actions-C3X0HmVL.js} +1 -1
- package/dist/assets/add-component-core-CNiTl3eM.js +765 -0
- package/dist/assets/{add-resource-C5MQEh_d.js → add-resource-BZPYCs8P.js} +1 -1
- package/dist/assets/{addon-DThNrUvh.js → addon-CtRJ-pkD.js} +1 -1
- package/dist/assets/{analytics-BEGoboDQ.js → analytics-H8miKMTw.js} +24 -24
- package/dist/assets/ar-BQHIfuI5.js +3 -0
- package/dist/assets/ar-CVzKLI4f.js +1 -0
- package/dist/assets/{audit-logs-BP-xi6Ls.js → audit-logs-bQ26G7aj.js} +3 -3
- package/dist/assets/{base32-CkPppFg3.js → base32-DWv9Ece3.js} +1 -1
- package/dist/assets/{branding-D1FesAUj.js → branding-C_6yHaPn.js} +2 -2
- package/dist/assets/{bundle-avatar-Ne6xQFVO.js → bundle-avatar-CGBNi-Pw.js} +1 -1
- package/dist/assets/button-DMv_c87G.js +1 -0
- package/dist/assets/{click-to-copy-Ds1jMEk3.js → click-to-copy-DdVQCBQ2.js} +1 -1
- package/dist/assets/{complete-Cw_4hnLS.js → complete-CbHit5Ld.js} +1 -1
- package/dist/assets/{component-InzHICwc.js → component-ArX9ltUY.js} +1 -1
- package/dist/assets/{config-Dneb0aPp.js → config-CFA6cbzB.js} +1 -1
- package/dist/assets/{config-Chl1wmCe.js → config-DfwJFjH9.js} +1 -1
- package/dist/assets/config-navigation-C4bnyLzP.js +26 -0
- package/dist/assets/{config-space-DAxx03my.js → config-space-BLj8bXKI.js} +1 -1
- package/dist/assets/{confirm-twAiL-Pg.js → confirm-DoeLe8C2.js} +1 -1
- package/dist/assets/{connect-CcqhkXJt.js → connect-C0ihILU1.js} +2 -2
- package/dist/assets/connect-DpsWvSFH.js +1 -0
- package/dist/assets/{connect-to-CdxZm7ze.js → connect-to-Cx2g8lmi.js} +1 -1
- package/dist/assets/{content-layout-GiaabWKJ.js → content-layout-DQqZ2KPM.js} +1 -1
- package/dist/assets/{dashboard-j9G-KyD0.js → dashboard-b6JXX3p4.js} +9 -9
- package/dist/assets/de-DIJPqt1Y.js +1 -0
- package/dist/assets/de-x8ZlBTST.js +3 -0
- package/dist/assets/{delete-confirm-B7RqZZsx.js → delete-confirm-ClxLJNMc.js} +1 -1
- package/dist/assets/{did-address-aMjKReYC.js → did-address-4Mhh-PAf.js} +1 -1
- package/dist/assets/{domain-BoBqD6my.js → domain-Bdxn_6we.js} +1 -1
- package/dist/assets/{domain-action-card-BK6VL21y.js → domain-action-card-D-SwY3Ze.js} +2 -2
- package/dist/assets/domains-CrumabGw.js +1 -0
- package/dist/assets/email-CXuxWJlV.js +18 -0
- package/dist/assets/es-C5RqG0zA.js +1 -0
- package/dist/assets/es-dcNkjit-.js +3 -0
- package/dist/assets/exchange-passport-mPaCa_DR.js +1 -0
- package/dist/assets/{form-text-input-BeH6diu_.js → form-text-input-UK8-kE_w.js} +2 -2
- package/dist/assets/fr-BHsPT43-.js +1 -0
- package/dist/assets/fr-D-kvSvvi.js +3 -0
- package/dist/assets/{fuel-D-BDqeNn.js → fuel-CTIfRogi.js} +1 -1
- package/dist/assets/{fullpage-CaydfTeK.js → fullpage-BYe9wNcJ.js} +1 -1
- package/dist/assets/{get-safe-url-DmtG3OsE.js → get-safe-url-DJs2zD_o.js} +1 -1
- package/dist/assets/{get-safe-url-DpCrXjD2.js → get-safe-url-hTi9kcR6.js} +1 -1
- package/dist/assets/hi-Bie09Alk.js +1 -0
- package/dist/assets/hi-hbcuz6uW.js +1 -0
- package/dist/assets/{home-Cuc7_BZ5.js → home-qdv-BopA.js} +1 -1
- package/dist/assets/id-Dl2w2IQG.js +3 -0
- package/dist/assets/id-IlcS05qm.js +1 -0
- package/dist/assets/{iframe-BDXgtf3V.js → iframe-xrFcqDOc.js} +1 -1
- package/dist/assets/{index-Y2eFnQMq.js → index-B5WSguWj.js} +3 -3
- package/dist/assets/{index-C0wrMJu_.js → index-BZBkYhk2.js} +1 -1
- package/dist/assets/{index-CXzEtZ8-.js → index-BepkZ0n5.js} +1 -1
- package/dist/assets/{index-Bcdz6ivm.js → index-C63BfnGF.js} +29 -29
- package/dist/assets/{index-KCwqCBtZ.js → index-CFAVLo-D.js} +1 -1
- package/dist/assets/{index-CMRvG2xO.js → index-Cr1ct0jj.js} +1 -1
- package/dist/assets/index-CySMtNiC.js +228 -0
- package/dist/assets/{index-DloKVD7k.js → index-DPmiy9ni.js} +2 -2
- package/dist/assets/{index-uoDarD9I.js → index-DXn6Hbns.js} +1 -1
- package/dist/assets/{index-BxEJpAM1.js → index-DeVAgq_M.js} +1 -1
- package/dist/assets/{index-HAqfkqId.js → index-DpPunjkO.js} +1 -1
- package/dist/assets/{index-CUYPBPCk.js → index-DttXhHNy.js} +1 -1
- package/dist/assets/index-DwZwqypg.js +138 -0
- package/dist/assets/{index-C1klzBZN.js → index-OxVXC-6Z.js} +1 -1
- package/dist/assets/index-XAPzWSFR.js +104 -0
- package/dist/assets/{index-DC8p-aHz.js → index-aazasytG.js} +1 -1
- package/dist/assets/{index-B17pt9EP.js → index-cb6RHqpl.js} +3 -3
- package/dist/assets/{index-CVOcFexA.js → index-e-YxzZge.js} +1 -1
- package/dist/assets/{index--Cpu5zj7.js → index-oiKgtbcR.js} +2 -2
- package/dist/assets/{index-BjppTGHl.js → index-v5WD1_ZT.js} +1 -1
- package/dist/assets/{invitation-CZiw6z3M.js → invitation-BMYKkv-6.js} +4 -4
- package/dist/assets/invite-DSSUgcx1.js +1 -0
- package/dist/assets/{issue-passport-RgE7dNyX.js → issue-passport-TKgxGTVQ.js} +1 -1
- package/dist/assets/{item-zC83d6Jc.js → item-D4Oo-IF5.js} +2 -2
- package/dist/assets/ja-C2daM668.js +1 -0
- package/dist/assets/ja-D4L0hNvk.js +3 -0
- package/dist/assets/ko-Lni8u0p_.js +1 -0
- package/dist/assets/ko-UNK3QKS8.js +3 -0
- package/dist/assets/{launch-result-message-DvBZHCJ7.js → launch-result-message-BkqOE8v7.js} +1 -1
- package/dist/assets/{layout--BSYMlCG.js → layout-B7tZwdzx.js} +1 -1
- package/dist/assets/{list-DTzzPxLP.js → list-M4HFgEsa.js} +6 -5
- package/dist/assets/{list-header-Cb3sYAQH.js → list-header-BQaIK02i.js} +1 -1
- package/dist/assets/localization-BNfg7M9t.js +1 -0
- package/dist/assets/{log-DyxPA0PM.js → log-CtyoVrfJ.js} +1 -1
- package/dist/assets/{login-DPEenGU7.js → login-BzC0aeEy.js} +1 -1
- package/dist/assets/{login-oauth-callback-B4CoyqBw.js → login-oauth-callback-in8009ob.js} +1 -1
- package/dist/assets/{logo-uploader-G4QDSsmU.js → logo-uploader-o8X3PNAY.js} +3 -3
- package/dist/assets/{lost-passport-CfqCVhZZ.js → lost-passport-B7PZWfaG.js} +2 -2
- package/dist/assets/{open-window-Ctz49LJV.js → open-window-D2nkyqfX.js} +1 -1
- package/dist/assets/{overview-B32B6ff2.js → overview-dqV3RNUK.js} +1 -1
- package/dist/assets/{page-header-CmCHR1mk.js → page-header-BoF5eaJs.js} +1 -1
- package/dist/assets/{permission-BPUMaZy_.js → permission-bBjTSpS3.js} +1 -1
- package/dist/assets/{preferences-BJxsqezy.js → preferences-ZJBeYnId.js} +1 -1
- package/dist/assets/pt-Bi-ekZIe.js +1 -0
- package/dist/assets/pt-D6N4RLzf.js +1 -0
- package/dist/assets/publish-resource-YTxrG5jT.js +1 -0
- package/dist/assets/{react-beautiful-dnd.esm-BxnrNcYv.js → react-beautiful-dnd.esm-b3iFMi32.js} +1 -1
- package/dist/assets/{relative-time-BPP0lNWq.js → relative-time-CqGmG7bS.js} +1 -1
- package/dist/assets/ru-D-xvMzxI.js +1 -0
- package/dist/assets/ru-JhgFz3O1.js +1 -0
- package/dist/assets/sdk-C3FSQJBQ.js +1 -0
- package/dist/assets/{session-BpknZId5.js → session-Du3kKOLg.js} +1 -1
- package/dist/assets/{setup-B50yc7wk.js → setup-Bp0IZlI9.js} +4 -4
- package/dist/assets/{shorten-label-dPKLJRIw.js → shorten-label-tRLn6eBU.js} +1 -1
- package/dist/assets/{simple-select-B4jrDuc2.js → simple-select-WnIIz-gi.js} +1 -1
- package/dist/assets/{slicedToArray-CQCWut1L.js → slicedToArray-D56PtD-z.js} +1 -1
- package/dist/assets/{start-N83AUhRn.js → start-BQiEEPt3.js} +1 -1
- package/dist/assets/{status-DCrcVds4.js → status-Cif-nW4w.js} +2 -2
- package/dist/assets/{step-actions-CQeRAM0V.js → step-actions-CSwg6NlY.js} +1 -1
- package/dist/assets/{studio-BKW7u_X7.js → studio-CZpoYvkI.js} +1 -1
- package/dist/assets/{switch-control-BF9Q5dT3.js → switch-control-66pqQxHq.js} +1 -1
- package/dist/assets/th-B00krePn.js +1 -0
- package/dist/assets/th-CycIQ910.js +1 -0
- package/dist/assets/{traffic-DIZGb0Wa.js → traffic-CuPXr4W0.js} +1 -1
- package/dist/assets/{transfer-13oWu-Fn.js → transfer-D51cF7GB.js} +1 -1
- package/dist/assets/{unsubscribe-BcN3c7Ba.js → unsubscribe-DW-ggSmb.js} +1 -1
- package/dist/assets/{use-mobile-DAiUO9Qj.js → use-mobile-B7yJTP_O.js} +1 -1
- package/dist/assets/{useAsyncRetry-Cbcg1dvJ.js → useAsyncRetry-lRww5QQQ.js} +1 -1
- package/dist/assets/{useLocalStorage-BmgSZ9f3.js → useLocalStorage-CFt3lw03.js} +1 -1
- package/dist/assets/{user-center-CI8PKX42.js → user-center-Buxtm0ff.js} +2 -2
- package/dist/assets/{util-LJfbsxXq.js → util-BBKQIODM.js} +1 -1
- package/dist/assets/{util-CmPA8v8L.js → util-DkMkClr6.js} +1 -1
- package/dist/assets/{vendor-arcblock-BSReIGUe.js → vendor-arcblock-DLTOGOem.js} +205 -225
- package/dist/assets/{vendor-mui-core-BGkzVIkr.js → vendor-mui-core-DuHCqPbx.js} +1 -1
- package/dist/assets/{vendor-mui-x-ZeS-_tC0.js → vendor-mui-x-OX-hf5vz.js} +1 -1
- package/dist/assets/{vendor-ux-did-connect-yBp5D51w.js → vendor-ux-did-connect-C6-B7NaP.js} +56 -56
- package/dist/assets/vi-BqnfnvFP.js +1 -0
- package/dist/assets/vi-ysOE33YI.js +1 -0
- package/dist/assets/wrap-locale-C8DZE5rg.js +1 -0
- package/dist/assets/zh-BduI1PMT.js +4 -0
- package/dist/assets/zh-CHmwTyCg.js +1 -0
- package/dist/assets/zh-tw-BTe_tNbR.js +3 -0
- package/dist/index.html +4 -4
- package/dist/service-worker.js +1 -1
- package/package.json +29 -29
- package/api/services/auth/connect/gen-blocklet-key-pair.js +0 -53
- package/dist/assets/add-component-core-BzFnxw8D.js +0 -765
- package/dist/assets/ar-7cNXWZ2M.js +0 -3
- package/dist/assets/ar-BNajL_0Y.js +0 -1
- package/dist/assets/button-Bzt1WONY.js +0 -1
- package/dist/assets/config-navigation-pBPU0Hd1.js +0 -26
- package/dist/assets/connect-CCL_tilR.js +0 -1
- package/dist/assets/de-CaFcE4Pk.js +0 -3
- package/dist/assets/de-Dxdjmndk.js +0 -1
- package/dist/assets/domains-CzuWJAXa.js +0 -1
- package/dist/assets/email-D62rIr3r.js +0 -18
- package/dist/assets/es-60uy0uB_.js +0 -1
- package/dist/assets/es-D3MSycJa.js +0 -3
- package/dist/assets/exchange-passport-C6QFYPcO.js +0 -1
- package/dist/assets/fr-CFHLZm_-.js +0 -3
- package/dist/assets/fr-D9jSqrTC.js +0 -1
- package/dist/assets/hi-DdzYMWTg.js +0 -1
- package/dist/assets/hi-yZjHgxBy.js +0 -1
- package/dist/assets/id-BT_VHQbI.js +0 -1
- package/dist/assets/id-CEzizPO2.js +0 -3
- package/dist/assets/index-BJbC-Qjr.js +0 -104
- package/dist/assets/index-BkVeJ_e6.js +0 -228
- package/dist/assets/index-CTjSo_AM.js +0 -138
- package/dist/assets/invite-Dsc4lS8l.js +0 -5
- package/dist/assets/ja-BzgY_7dF.js +0 -3
- package/dist/assets/ja-DbBQw4xE.js +0 -1
- package/dist/assets/ko-9PW6OpzF.js +0 -1
- package/dist/assets/ko-VZQe2VvU.js +0 -3
- package/dist/assets/localization-DFOGQYul.js +0 -1
- package/dist/assets/pt-CyuvDZLt.js +0 -1
- package/dist/assets/pt-DpDK-Gpl.js +0 -1
- package/dist/assets/publish-resource-DosFKyd_.js +0 -1
- package/dist/assets/ru-BV_Z5dZ0.js +0 -1
- package/dist/assets/ru-iFaprWdh.js +0 -1
- package/dist/assets/sdk-DT6U58At.js +0 -1
- package/dist/assets/th-B242zqWJ.js +0 -1
- package/dist/assets/th-CbQMXNrp.js +0 -1
- package/dist/assets/vi-BQ0XJEjT.js +0 -1
- package/dist/assets/vi-Bz70uJJ-.js +0 -1
- package/dist/assets/wrap-locale-DyYbMONP.js +0 -1
- package/dist/assets/zh-DqvUnM4F.js +0 -1
- package/dist/assets/zh-nXsPl6mo.js +0 -4
- package/dist/assets/zh-tw-B6GPK4BD.js +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as u,r as $,e as vt,g as kt}from"./vendor-react-DoD83n6N.js";import{G as Z,z as ae,I as Pt,ax as At}from"./index-BJbC-Qjr.js";import{a as I,au as ie,x as oe}from"./vendor-utils-DDG_VdF0.js";import{_ as le}from"./useAsyncRetry-Cbcg1dvJ.js";import{I as ce}from"./iframe-BDXgtf3V.js";import{d as de}from"./LaunchOutlined-CBLNAogt.js";import{cq as Bt,a1 as he,j as M,a3 as J,v as qt,bd as j,al as xt,T as q,L as ue,z as fe,b1 as me,I as ot,bi as It,bj as Nt,aj as zt,_ as pe,E as H,a9 as ge,bB as ye,bK as De,a2 as xe,ac as Me,x as Te,a$ as be}from"./vendor-mui-core-BGkzVIkr.js";import{r as we,bK as ve,u as ke,p as Se}from"./vendor-ux-did-connect-yBp5D51w.js";import{d as Oe}from"./ChevronLeft-BeX0eKuU.js";import{d as Ee}from"./ChevronRight-BWxZ0GT9.js";import{r as St,t as Vt,i as B,a as K,b as _,p as Ye,c as je,d as Ot,e as Tt,s as tt,f as et,g as G,h as nt,j as st,k as lt,l as ct,m as Ce,n as bt,o as Q,q as Ft,u as Et,v as Le,w as Re,x as Pe,y as Ae,z as Ie}from"./index-DC8p-aHz.js";import{a as Ne,b as ze}from"./vendor-hooks-B7GuuzU5.js";import{f as Fe}from"./format-error-LAoTjvJe.js";import{b as He,L as $e,D as We}from"./vendor-mui-x-ZeS-_tC0.js";function Zt(n){St(1,arguments);var s;if(n&&typeof n.forEach=="function")s=n;else if(Bt(n)==="object"&&n!==null)s=Array.prototype.slice.call(n);else return new Date(NaN);var r;return s.forEach(function(o){var h=Vt(o);(r===void 0||r<h||isNaN(Number(h)))&&(r=h)}),r||new Date(NaN)}function Jt(n){St(1,arguments);var s;if(n&&typeof n.forEach=="function")s=n;else if(Bt(n)==="object"&&n!==null)s=Array.prototype.slice.call(n);else return new Date(NaN);var r;return s.forEach(function(o){var h=Vt(o);(r===void 0||r>h||isNaN(h.getDate()))&&(r=h)}),r||new Date(NaN)}function _e(n){return St(1,arguments),B(n,Date.now())}var Yt={},Ue=he;Object.defineProperty(Yt,"__esModule",{value:!0});var Gt=Yt.default=void 0,Be=Ue(we()),qe=M;Gt=Yt.default=(0,Be.default)((0,qe.jsx)("path",{d:"M16.01 11H4v2h12.01v3L20 12l-3.99-4z"}),"ArrowRightAlt");const Ve=(n,s)=>Array.from({length:Math.ceil(n.length/s)},(r,o)=>n.slice(o*s,o*s+s)),Ze=(n,s)=>{const r=tt(nt(n),{locale:s}),o=et(st(n),{locale:s}),h=[];for(let t=r;Q(t,o);)h.push(t),t=Tt(t,1);return h},Je=({startDate:n},s)=>n&&B(s,n),Ge=({endDate:n},s)=>n&&B(s,n),Ke=({startDate:n,endDate:s},r)=>n&&s&&(Et(r,{start:n,end:s})||B(r,n)||B(r,s)),Xe=({startDate:n,endDate:s})=>n&&s?B(n,s):!1,Ht=(n,s)=>{if(n){const r=n instanceof Date?n:Ye(n);if(je(r))return r}return s},Qe=(n,s,r)=>{const{startDate:o,endDate:h}=n;if(o&&h){const t=Zt([o,s]),e=Jt([h,r]);return[t,Ot(t,e)?_(t,1):e]}return[o,h]},tn=(n,s)=>[{label:"Today",startDate:n,endDate:n},{label:"Yesterday",startDate:Tt(n,-1),endDate:Tt(n,-1)},{label:"This Week",startDate:tt(n,{locale:s}),endDate:et(n,{locale:s})},{label:"Last Week",startDate:tt(G(n,-1),{locale:s}),endDate:et(G(n,-1),{locale:s})},{label:"Last 7 Days",startDate:G(n,-1),endDate:n},{label:"This Month",startDate:nt(n),endDate:st(n)},{label:"Last Month",startDate:nt(_(n,-1)),endDate:st(_(n,-1))},{label:"This Year",startDate:lt(n),endDate:ct(n)},{label:"Last Year",startDate:lt(K(n,-1)),endDate:ct(K(n,-1))}],en=(n,s)=>{const r=Math.floor(s/2);return Array(s).fill(0).map((o,h)=>n.getFullYear()-r+h)},nn=({date:n,setDate:s,nextDisabled:r,prevDisabled:o,onClickNext:h,onClickPrevious:t,locale:e})=>{const i=typeof e<"u"?[...Array(12).keys()].map(a=>{var y;return(y=e.localize)===null||y===void 0?void 0:y.month(a,{width:"abbreviated",context:"standalone"})}):["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],d=a=>{s(Ae(n,parseInt(a.target.value,10)))},f=a=>{s(Ie(n,parseInt(a.target.value,10)))};return u.createElement(j,{container:!0,justifyContent:"space-between",alignItems:"center"},u.createElement(j,{item:!0,sx:{padding:"5px"}},u.createElement(ot,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:o,onClick:t},u.createElement(Oe,{color:o?"disabled":"action"}))),u.createElement(j,{item:!0},u.createElement(It,{variant:"standard"},u.createElement(Nt,{value:Re(n),onChange:d,MenuProps:{disablePortal:!0}},i.map((a,y)=>u.createElement(zt,{key:a,value:y},a))))),u.createElement(j,{item:!0},u.createElement(It,{variant:"standard"},u.createElement(Nt,{value:Pe(n),onChange:f,MenuProps:{disablePortal:!0}},en(n,30).map(a=>u.createElement(zt,{key:a,value:a},a))))),u.createElement(j,{item:!0,sx:{padding:"5px"}},u.createElement(ot,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:r,onClick:h},u.createElement(Ee,{color:r?"disabled":"action"}))))},sn=({startOfRange:n,endOfRange:s,disabled:r,highlighted:o,outlined:h,filled:t,onClick:e,onHover:i,value:d})=>u.createElement(J,{sx:{display:"flex",borderRadius:n?"50% 0 0 50%":s?"0 50% 50% 0":void 0,backgroundColor:f=>!r&&o?f.palette.primary.light:void 0}},u.createElement(ot,{sx:Object.assign({height:"36px",width:"36px",padding:0,border:f=>!r&&h?`1px solid ${f.palette.primary.dark}`:void 0},!r&&t?{"&:hover":{backgroundColor:f=>f.palette.primary.dark},backgroundColor:f=>f.palette.primary.dark}:{}),disabled:r,onClick:e,onMouseOver:i},u.createElement(q,{sx:{lineHeight:1.6,color:f=>r?f.palette.text.secondary:t?f.palette.primary.contrastText:f.palette.text.primary},variant:"body2"},d)));var dt;(function(n){n[n.Previous=-1]="Previous",n[n.Next=1]="Next"})(dt||(dt={}));const $t=n=>{var s;const{helpers:r,handlers:o,value:h,dateRange:t,marker:e,setValue:i,minDate:d,maxDate:f,locale:a}=n,y=((s=a==null?void 0:a.options)===null||s===void 0?void 0:s.weekStartsOn)||0,x=typeof a<"u"?[...Array(7).keys()].map(w=>{var l;return(l=a.localize)===null||l===void 0?void 0:l.day((w+y)%7,{width:"short",context:"standalone"})}):["Su","Mo","Tu","We","Th","Fr","Sa"],[b,O]=n.navState;return u.createElement(qt,{square:!0,elevation:0,sx:{width:290}},u.createElement(j,{container:!0},u.createElement(nn,{date:h,setDate:i,nextDisabled:!O,prevDisabled:!b,onClickPrevious:()=>o.onMonthNavigate(e,dt.Previous),onClickNext:()=>o.onMonthNavigate(e,dt.Next),locale:a}),u.createElement(j,{item:!0,container:!0,direction:"row",justifyContent:"space-between",sx:{marginTop:"10px",paddingLeft:"30px",paddingRight:"30px"}},x.map((w,l)=>u.createElement(q,{color:"textSecondary",key:l,variant:"caption"},w))),u.createElement(j,{item:!0,container:!0,direction:"column",justifyContent:"space-between",sx:{paddingLeft:"15px",paddingRight:"15px",marginTop:"15px",marginBottom:"20px"}},Ve(Ze(h,a),7).map((w,l)=>u.createElement(j,{key:l,container:!0,direction:"row",justifyContent:"center"},w.map(c=>{const g=Je(t,c),D=Ge(t,c),T=Xe(t),v=Ke(t,c)||r.inHoverRange(c);return u.createElement(sn,{key:bt(c,"dd-MM-yyyy"),filled:g||D,outlined:_e(c),highlighted:v&&!T,disabled:!Ot(h,c)||!Et(c,{start:d,end:f}),startOfRange:g&&!T,endOfRange:D&&!T,onClick:()=>o.onDayClick(c),onHover:()=>o.onDayHover(c),value:Le(c)})}))))))},Wt=(n,s)=>{const{startDate:r,endDate:o}=n,{startDate:h,endDate:t}=s;return r&&h&&o&&t?B(r,h)&&B(o,t):!1},rn=({ranges:n,setRange:s,selectedRange:r})=>u.createElement(ue,null,n.map((o,h)=>u.createElement(fe,{button:!0,key:h,onClick:()=>s(o),sx:[Wt(o,r)&&{backgroundColor:t=>t.palette.primary.dark,color:"primary.contrastText","&:hover":{color:"inherit"}}]},u.createElement(me,{primaryTypographyProps:{variant:"body2",sx:{fontWeight:Wt(o,r)?"bold":"normal"}}},o.label)))),wt={FIRST_MONTH:Symbol("firstMonth"),SECOND_MONTH:Symbol("secondMonth")},an=n=>{const{ranges:s,dateRange:r,minDate:o,maxDate:h,firstMonth:t,setFirstMonth:e,secondMonth:i,setSecondMonth:d,setDateRange:f,helpers:a,handlers:y,locale:x}=n,{startDate:b,endDate:O}=r,w=Ce(i,t)>=2,l={dateRange:r,minDate:o,maxDate:h,helpers:a,handlers:y};return u.createElement(qt,{elevation:5,square:!0},u.createElement(j,{container:!0,direction:"row",wrap:"nowrap"},u.createElement(j,null,u.createElement(rn,{selectedRange:r,ranges:s,setRange:f})),u.createElement(xt,{orientation:"vertical",flexItem:!0}),u.createElement(j,null,u.createElement(j,{container:!0,sx:{padding:"20px 70px"},alignItems:"center"},u.createElement(j,{item:!0,sx:{flex:1,textAlign:"center"}},u.createElement(q,{variant:"subtitle1"},b?bt(b,"dd MMMM yyyy",{locale:x}):"Start Date")),u.createElement(j,{item:!0,sx:{flex:1,textAlign:"center"}},u.createElement(Gt,{color:"action"})),u.createElement(j,{item:!0,sx:{flex:1,textAlign:"center"}},u.createElement(q,{variant:"subtitle1"},O?bt(O,"dd MMMM yyyy",{locale:x}):"End Date"))),u.createElement(xt,null),u.createElement(j,{container:!0,direction:"row",justifyContent:"center",wrap:"nowrap"},u.createElement($t,Object.assign({},l,{value:t,setValue:e,navState:[!0,w],marker:wt.FIRST_MONTH,locale:x})),u.createElement(xt,{orientation:"vertical",flexItem:!0}),u.createElement($t,Object.assign({},l,{value:i,setValue:d,navState:[w,!0],marker:wt.SECOND_MONTH,locale:x}))))))},on=n=>{const s=new Date,{open:r,onChange:o,initialDateRange:h,minDate:t,maxDate:e,definedRanges:i=tn(new Date,n.locale),locale:d}=n,f=Ht(t,K(s,-10)),a=Ht(e,K(s,10)),[y,x]=Qe(h||{},f,a),[b,O]=$.useState(Object.assign({},h)),[w,l]=$.useState(),[c,g]=$.useState(y||s),[D,T]=$.useState(x||_(c,1)),{startDate:v,endDate:P}=b,W=p=>{Q(p,D)&&g(p)},N=p=>{Ft(p,c)&&T(p)},A=p=>{let{startDate:k,endDate:S}=p;if(k&&S)p.startDate=k=Zt([k,f]),p.endDate=S=Jt([S,a]),O(p),o(p),g(k),T(Ot(k,S)?_(k,1):S);else{const z={};O(z),o(z),g(s),T(_(c,1))}},L=p=>{if(v&&!P&&!Q(p,v)){const k={startDate:v,endDate:p};o(k),O(k)}else O({startDate:p,endDate:void 0});l(p)},R=(p,k)=>{if(p===wt.FIRST_MONTH){const S=_(c,k);Q(S,D)&&g(S)}else{const S=_(D,k);Q(c,S)&&T(S)}},C=p=>{v&&!P&&(!w||!B(p,w))&&l(p)},E={inHoverRange:p=>v&&!P&&w&&Ft(w,v)&&Et(p,{start:v,end:w})},Y={onDayClick:L,onDayHover:C,onMonthNavigate:R};return r?$.createElement(an,{dateRange:b,minDate:f,maxDate:a,ranges:i,firstMonth:c,secondMonth:D,setFirstMonth:W,setSecondMonth:N,setDateRange:A,helpers:E,handlers:Y,locale:d}):null},ln=n=>{const{closeOnClickOutside:s,wrapperClassName:r,toggle:o,open:h}=n,t=()=>{s!==!1&&o()},e=i=>(i==null?void 0:i.key)==="Escape"&&t();return u.createElement(J,{sx:{position:"relative"}},h&&u.createElement(J,{sx:{position:"fixed",height:"100vh",width:"100vw",bottom:0,zIndex:0,right:0,left:0,top:0},onKeyPress:e,onClick:t}),u.createElement(J,{sx:{position:"relative",zIndex:1},className:r},u.createElement(on,Object.assign({},n))))},cn=n=>u.createElement(ln,Object.assign({},n));var Kt={exports:{}};(function(n,s){(function(r,o){n.exports=o()})(vt,function(){var r="week",o="year";return function(h,t,e){var i=t.prototype;i.week=function(d){if(d===void 0&&(d=null),d!==null)return this.add(7*(d-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=e(this).startOf(o).add(1,o).date(f),y=e(this).endOf(r);if(a.isBefore(y))return 1}var x=e(this).startOf(o).date(f).startOf(r).subtract(1,"millisecond"),b=this.diff(x,r,!0);return b<0?e(this).startOf("week").week():Math.ceil(b)},i.weeks=function(d){return d===void 0&&(d=null),this.week(d)}}})})(Kt);var dn=Kt.exports;const hn=kt(dn);var Xt={exports:{}};(function(n,s){(function(r,o){n.exports=o()})(vt,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,h=/\d/,t=/\d\d/,e=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,d={},f=function(l){return(l=+l)+(l>68?1900:2e3)},a=function(l){return function(c){this[l]=+c}},y=[/[+-]\d\d:?(\d\d)?|Z/,function(l){(this.zone||(this.zone={})).offset=function(c){if(!c||c==="Z")return 0;var g=c.match(/([+-]|\d\d)/g),D=60*g[1]+(+g[2]||0);return D===0?0:g[0]==="+"?-D:D}(l)}],x=function(l){var c=d[l];return c&&(c.indexOf?c:c.s.concat(c.f))},b=function(l,c){var g,D=d.meridiem;if(D){for(var T=1;T<=24;T+=1)if(l.indexOf(D(T,0,c))>-1){g=T>12;break}}else g=l===(c?"pm":"PM");return g},O={A:[i,function(l){this.afternoon=b(l,!1)}],a:[i,function(l){this.afternoon=b(l,!0)}],Q:[h,function(l){this.month=3*(l-1)+1}],S:[h,function(l){this.milliseconds=100*+l}],SS:[t,function(l){this.milliseconds=10*+l}],SSS:[/\d{3}/,function(l){this.milliseconds=+l}],s:[e,a("seconds")],ss:[e,a("seconds")],m:[e,a("minutes")],mm:[e,a("minutes")],H:[e,a("hours")],h:[e,a("hours")],HH:[e,a("hours")],hh:[e,a("hours")],D:[e,a("day")],DD:[t,a("day")],Do:[i,function(l){var c=d.ordinal,g=l.match(/\d+/);if(this.day=g[0],c)for(var D=1;D<=31;D+=1)c(D).replace(/\[|\]/g,"")===l&&(this.day=D)}],w:[e,a("week")],ww:[t,a("week")],M:[e,a("month")],MM:[t,a("month")],MMM:[i,function(l){var c=x("months"),g=(x("monthsShort")||c.map(function(D){return D.slice(0,3)})).indexOf(l)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(l){var c=x("months").indexOf(l)+1;if(c<1)throw new Error;this.month=c%12||c}],Y:[/[+-]?\d+/,a("year")],YY:[t,function(l){this.year=f(l)}],YYYY:[/\d{4}/,a("year")],Z:y,ZZ:y};function w(l){var c,g;c=l,g=d&&d.formats;for(var D=(l=c.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(L,R,C){var m=C&&C.toUpperCase();return R||g[C]||r[C]||g[m].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(E,Y,p){return Y||p.slice(1)})})).match(o),T=D.length,v=0;v<T;v+=1){var P=D[v],W=O[P],N=W&&W[0],A=W&&W[1];D[v]=A?{regex:N,parser:A}:P.replace(/^\[|\]$/g,"")}return function(L){for(var R={},C=0,m=0;C<T;C+=1){var E=D[C];if(typeof E=="string")m+=E.length;else{var Y=E.regex,p=E.parser,k=L.slice(m),S=Y.exec(k)[0];p.call(R,S),L=L.replace(S,"")}}return function(z){var V=z.afternoon;if(V!==void 0){var F=z.hours;V?F<12&&(z.hours+=12):F===12&&(z.hours=0),delete z.afternoon}}(R),R}}return function(l,c,g){g.p.customParseFormat=!0,l&&l.parseTwoDigitYear&&(f=l.parseTwoDigitYear);var D=c.prototype,T=D.parse;D.parse=function(v){var P=v.date,W=v.utc,N=v.args;this.$u=W;var A=N[1];if(typeof A=="string"){var L=N[2]===!0,R=N[3]===!0,C=L||R,m=N[2];R&&(m=N[2]),d=this.$locale(),!L&&m&&(d=g.Ls[m]),this.$d=function(k,S,z,V){try{if(["x","X"].indexOf(S)>-1)return new Date((S==="X"?1e3:1)*k);var F=w(S)(k),ht=F.year,rt=F.month,te=F.day,ee=F.hours,ne=F.minutes,se=F.seconds,re=F.milliseconds,Lt=F.zone,Rt=F.week,ut=new Date,ft=te||(ht||rt?1:ut.getDate()),mt=ht||ut.getFullYear(),at=0;ht&&!rt||(at=rt>0?rt-1:ut.getMonth());var it,pt=ee||0,gt=ne||0,yt=se||0,Dt=re||0;return Lt?new Date(Date.UTC(mt,at,ft,pt,gt,yt,Dt+60*Lt.offset*1e3)):z?new Date(Date.UTC(mt,at,ft,pt,gt,yt,Dt)):(it=new Date(mt,at,ft,pt,gt,yt,Dt),Rt&&(it=V(it).week(Rt).toDate()),it)}catch{return new Date("")}}(P,A,W,g),this.init(),m&&m!==!0&&(this.$L=this.locale(m).$L),C&&P!=this.format(A)&&(this.$d=new Date("")),d={}}else if(A instanceof Array)for(var E=A.length,Y=1;Y<=E;Y+=1){N[1]=A[Y-1];var p=g.apply(this,N);if(p.isValid()){this.$d=p.$d,this.$L=p.$L,this.init();break}Y===E&&(this.$d=new Date(""))}else T.call(this,v)}}})})(Xt);var un=Xt.exports;const fn=kt(un);var Qt={exports:{}};(function(n,s){(function(r,o){n.exports=o()})(vt,function(){return function(r,o,h){o.prototype.isBetween=function(t,e,i,d){var f=h(t),a=h(e),y=(d=d||"()")[0]==="(",x=d[1]===")";return(y?this.isAfter(f,i):!this.isBefore(f,i))&&(x?this.isBefore(a,i):!this.isAfter(a,i))||(y?this.isBefore(f,i):!this.isAfter(f,i))&&(x?this.isAfter(a,i):!this.isBefore(a,i))}}})})(Qt);var mn=Qt.exports;const pn=kt(mn);I.extend(fn);I.extend(ve);I.extend(pn);const gn=He(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),yn={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},Dn={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Mt=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
|
|
1
|
+
import{b as u,r as $,e as vt,g as kt}from"./vendor-react-DoD83n6N.js";import{G as Z,z as ae,I as Pt,ax as At}from"./index-XAPzWSFR.js";import{a as I,au as ie,x as oe}from"./vendor-utils-DDG_VdF0.js";import{_ as le}from"./useAsyncRetry-lRww5QQQ.js";import{I as ce}from"./iframe-xrFcqDOc.js";import{d as de}from"./LaunchOutlined-CsW2MO-S.js";import{cq as Bt,a1 as he,j as M,a3 as J,v as qt,bd as j,al as xt,T as q,L as ue,z as fe,b1 as me,I as ot,bj as It,bi as Nt,aj as zt,_ as pe,E as H,a9 as ge,bE as ye,bM as De,a2 as xe,ac as Me,x as Te,a$ as be}from"./vendor-mui-core-DuHCqPbx.js";import{r as we,bL as ve,u as ke,p as Se}from"./vendor-ux-did-connect-C6-B7NaP.js";import{d as Oe}from"./ChevronLeft-D2w2grVw.js";import{d as Ee}from"./ChevronRight-P0UHFnJH.js";import{r as St,t as Vt,i as B,a as K,b as _,p as Ye,c as je,d as Ot,e as Tt,s as tt,f as et,g as G,h as nt,j as st,k as lt,l as ct,m as Ce,n as bt,o as Q,q as Ft,u as Et,v as Le,w as Re,x as Pe,y as Ae,z as Ie}from"./index-aazasytG.js";import{a as Ne,b as ze}from"./vendor-hooks-B7GuuzU5.js";import{f as Fe}from"./format-error-LAoTjvJe.js";import{b as He,L as $e,D as We}from"./vendor-mui-x-OX-hf5vz.js";function Zt(n){St(1,arguments);var s;if(n&&typeof n.forEach=="function")s=n;else if(Bt(n)==="object"&&n!==null)s=Array.prototype.slice.call(n);else return new Date(NaN);var r;return s.forEach(function(o){var h=Vt(o);(r===void 0||r<h||isNaN(Number(h)))&&(r=h)}),r||new Date(NaN)}function Jt(n){St(1,arguments);var s;if(n&&typeof n.forEach=="function")s=n;else if(Bt(n)==="object"&&n!==null)s=Array.prototype.slice.call(n);else return new Date(NaN);var r;return s.forEach(function(o){var h=Vt(o);(r===void 0||r>h||isNaN(h.getDate()))&&(r=h)}),r||new Date(NaN)}function _e(n){return St(1,arguments),B(n,Date.now())}var Yt={},Ue=he;Object.defineProperty(Yt,"__esModule",{value:!0});var Gt=Yt.default=void 0,Be=Ue(we()),qe=M;Gt=Yt.default=(0,Be.default)((0,qe.jsx)("path",{d:"M16.01 11H4v2h12.01v3L20 12l-3.99-4z"}),"ArrowRightAlt");const Ve=(n,s)=>Array.from({length:Math.ceil(n.length/s)},(r,o)=>n.slice(o*s,o*s+s)),Ze=(n,s)=>{const r=tt(nt(n),{locale:s}),o=et(st(n),{locale:s}),h=[];for(let t=r;Q(t,o);)h.push(t),t=Tt(t,1);return h},Je=({startDate:n},s)=>n&&B(s,n),Ge=({endDate:n},s)=>n&&B(s,n),Ke=({startDate:n,endDate:s},r)=>n&&s&&(Et(r,{start:n,end:s})||B(r,n)||B(r,s)),Xe=({startDate:n,endDate:s})=>n&&s?B(n,s):!1,Ht=(n,s)=>{if(n){const r=n instanceof Date?n:Ye(n);if(je(r))return r}return s},Qe=(n,s,r)=>{const{startDate:o,endDate:h}=n;if(o&&h){const t=Zt([o,s]),e=Jt([h,r]);return[t,Ot(t,e)?_(t,1):e]}return[o,h]},tn=(n,s)=>[{label:"Today",startDate:n,endDate:n},{label:"Yesterday",startDate:Tt(n,-1),endDate:Tt(n,-1)},{label:"This Week",startDate:tt(n,{locale:s}),endDate:et(n,{locale:s})},{label:"Last Week",startDate:tt(G(n,-1),{locale:s}),endDate:et(G(n,-1),{locale:s})},{label:"Last 7 Days",startDate:G(n,-1),endDate:n},{label:"This Month",startDate:nt(n),endDate:st(n)},{label:"Last Month",startDate:nt(_(n,-1)),endDate:st(_(n,-1))},{label:"This Year",startDate:lt(n),endDate:ct(n)},{label:"Last Year",startDate:lt(K(n,-1)),endDate:ct(K(n,-1))}],en=(n,s)=>{const r=Math.floor(s/2);return Array(s).fill(0).map((o,h)=>n.getFullYear()-r+h)},nn=({date:n,setDate:s,nextDisabled:r,prevDisabled:o,onClickNext:h,onClickPrevious:t,locale:e})=>{const i=typeof e<"u"?[...Array(12).keys()].map(a=>{var y;return(y=e.localize)===null||y===void 0?void 0:y.month(a,{width:"abbreviated",context:"standalone"})}):["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],d=a=>{s(Ae(n,parseInt(a.target.value,10)))},f=a=>{s(Ie(n,parseInt(a.target.value,10)))};return u.createElement(j,{container:!0,justifyContent:"space-between",alignItems:"center"},u.createElement(j,{item:!0,sx:{padding:"5px"}},u.createElement(ot,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:o,onClick:t},u.createElement(Oe,{color:o?"disabled":"action"}))),u.createElement(j,{item:!0},u.createElement(It,{variant:"standard"},u.createElement(Nt,{value:Re(n),onChange:d,MenuProps:{disablePortal:!0}},i.map((a,y)=>u.createElement(zt,{key:a,value:y},a))))),u.createElement(j,{item:!0},u.createElement(It,{variant:"standard"},u.createElement(Nt,{value:Pe(n),onChange:f,MenuProps:{disablePortal:!0}},en(n,30).map(a=>u.createElement(zt,{key:a,value:a},a))))),u.createElement(j,{item:!0,sx:{padding:"5px"}},u.createElement(ot,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:r,onClick:h},u.createElement(Ee,{color:r?"disabled":"action"}))))},sn=({startOfRange:n,endOfRange:s,disabled:r,highlighted:o,outlined:h,filled:t,onClick:e,onHover:i,value:d})=>u.createElement(J,{sx:{display:"flex",borderRadius:n?"50% 0 0 50%":s?"0 50% 50% 0":void 0,backgroundColor:f=>!r&&o?f.palette.primary.light:void 0}},u.createElement(ot,{sx:Object.assign({height:"36px",width:"36px",padding:0,border:f=>!r&&h?`1px solid ${f.palette.primary.dark}`:void 0},!r&&t?{"&:hover":{backgroundColor:f=>f.palette.primary.dark},backgroundColor:f=>f.palette.primary.dark}:{}),disabled:r,onClick:e,onMouseOver:i},u.createElement(q,{sx:{lineHeight:1.6,color:f=>r?f.palette.text.secondary:t?f.palette.primary.contrastText:f.palette.text.primary},variant:"body2"},d)));var dt;(function(n){n[n.Previous=-1]="Previous",n[n.Next=1]="Next"})(dt||(dt={}));const $t=n=>{var s;const{helpers:r,handlers:o,value:h,dateRange:t,marker:e,setValue:i,minDate:d,maxDate:f,locale:a}=n,y=((s=a==null?void 0:a.options)===null||s===void 0?void 0:s.weekStartsOn)||0,x=typeof a<"u"?[...Array(7).keys()].map(w=>{var l;return(l=a.localize)===null||l===void 0?void 0:l.day((w+y)%7,{width:"short",context:"standalone"})}):["Su","Mo","Tu","We","Th","Fr","Sa"],[b,O]=n.navState;return u.createElement(qt,{square:!0,elevation:0,sx:{width:290}},u.createElement(j,{container:!0},u.createElement(nn,{date:h,setDate:i,nextDisabled:!O,prevDisabled:!b,onClickPrevious:()=>o.onMonthNavigate(e,dt.Previous),onClickNext:()=>o.onMonthNavigate(e,dt.Next),locale:a}),u.createElement(j,{item:!0,container:!0,direction:"row",justifyContent:"space-between",sx:{marginTop:"10px",paddingLeft:"30px",paddingRight:"30px"}},x.map((w,l)=>u.createElement(q,{color:"textSecondary",key:l,variant:"caption"},w))),u.createElement(j,{item:!0,container:!0,direction:"column",justifyContent:"space-between",sx:{paddingLeft:"15px",paddingRight:"15px",marginTop:"15px",marginBottom:"20px"}},Ve(Ze(h,a),7).map((w,l)=>u.createElement(j,{key:l,container:!0,direction:"row",justifyContent:"center"},w.map(c=>{const g=Je(t,c),D=Ge(t,c),T=Xe(t),v=Ke(t,c)||r.inHoverRange(c);return u.createElement(sn,{key:bt(c,"dd-MM-yyyy"),filled:g||D,outlined:_e(c),highlighted:v&&!T,disabled:!Ot(h,c)||!Et(c,{start:d,end:f}),startOfRange:g&&!T,endOfRange:D&&!T,onClick:()=>o.onDayClick(c),onHover:()=>o.onDayHover(c),value:Le(c)})}))))))},Wt=(n,s)=>{const{startDate:r,endDate:o}=n,{startDate:h,endDate:t}=s;return r&&h&&o&&t?B(r,h)&&B(o,t):!1},rn=({ranges:n,setRange:s,selectedRange:r})=>u.createElement(ue,null,n.map((o,h)=>u.createElement(fe,{button:!0,key:h,onClick:()=>s(o),sx:[Wt(o,r)&&{backgroundColor:t=>t.palette.primary.dark,color:"primary.contrastText","&:hover":{color:"inherit"}}]},u.createElement(me,{primaryTypographyProps:{variant:"body2",sx:{fontWeight:Wt(o,r)?"bold":"normal"}}},o.label)))),wt={FIRST_MONTH:Symbol("firstMonth"),SECOND_MONTH:Symbol("secondMonth")},an=n=>{const{ranges:s,dateRange:r,minDate:o,maxDate:h,firstMonth:t,setFirstMonth:e,secondMonth:i,setSecondMonth:d,setDateRange:f,helpers:a,handlers:y,locale:x}=n,{startDate:b,endDate:O}=r,w=Ce(i,t)>=2,l={dateRange:r,minDate:o,maxDate:h,helpers:a,handlers:y};return u.createElement(qt,{elevation:5,square:!0},u.createElement(j,{container:!0,direction:"row",wrap:"nowrap"},u.createElement(j,null,u.createElement(rn,{selectedRange:r,ranges:s,setRange:f})),u.createElement(xt,{orientation:"vertical",flexItem:!0}),u.createElement(j,null,u.createElement(j,{container:!0,sx:{padding:"20px 70px"},alignItems:"center"},u.createElement(j,{item:!0,sx:{flex:1,textAlign:"center"}},u.createElement(q,{variant:"subtitle1"},b?bt(b,"dd MMMM yyyy",{locale:x}):"Start Date")),u.createElement(j,{item:!0,sx:{flex:1,textAlign:"center"}},u.createElement(Gt,{color:"action"})),u.createElement(j,{item:!0,sx:{flex:1,textAlign:"center"}},u.createElement(q,{variant:"subtitle1"},O?bt(O,"dd MMMM yyyy",{locale:x}):"End Date"))),u.createElement(xt,null),u.createElement(j,{container:!0,direction:"row",justifyContent:"center",wrap:"nowrap"},u.createElement($t,Object.assign({},l,{value:t,setValue:e,navState:[!0,w],marker:wt.FIRST_MONTH,locale:x})),u.createElement(xt,{orientation:"vertical",flexItem:!0}),u.createElement($t,Object.assign({},l,{value:i,setValue:d,navState:[w,!0],marker:wt.SECOND_MONTH,locale:x}))))))},on=n=>{const s=new Date,{open:r,onChange:o,initialDateRange:h,minDate:t,maxDate:e,definedRanges:i=tn(new Date,n.locale),locale:d}=n,f=Ht(t,K(s,-10)),a=Ht(e,K(s,10)),[y,x]=Qe(h||{},f,a),[b,O]=$.useState(Object.assign({},h)),[w,l]=$.useState(),[c,g]=$.useState(y||s),[D,T]=$.useState(x||_(c,1)),{startDate:v,endDate:P}=b,W=p=>{Q(p,D)&&g(p)},N=p=>{Ft(p,c)&&T(p)},A=p=>{let{startDate:k,endDate:S}=p;if(k&&S)p.startDate=k=Zt([k,f]),p.endDate=S=Jt([S,a]),O(p),o(p),g(k),T(Ot(k,S)?_(k,1):S);else{const z={};O(z),o(z),g(s),T(_(c,1))}},L=p=>{if(v&&!P&&!Q(p,v)){const k={startDate:v,endDate:p};o(k),O(k)}else O({startDate:p,endDate:void 0});l(p)},R=(p,k)=>{if(p===wt.FIRST_MONTH){const S=_(c,k);Q(S,D)&&g(S)}else{const S=_(D,k);Q(c,S)&&T(S)}},C=p=>{v&&!P&&(!w||!B(p,w))&&l(p)},E={inHoverRange:p=>v&&!P&&w&&Ft(w,v)&&Et(p,{start:v,end:w})},Y={onDayClick:L,onDayHover:C,onMonthNavigate:R};return r?$.createElement(an,{dateRange:b,minDate:f,maxDate:a,ranges:i,firstMonth:c,secondMonth:D,setFirstMonth:W,setSecondMonth:N,setDateRange:A,helpers:E,handlers:Y,locale:d}):null},ln=n=>{const{closeOnClickOutside:s,wrapperClassName:r,toggle:o,open:h}=n,t=()=>{s!==!1&&o()},e=i=>(i==null?void 0:i.key)==="Escape"&&t();return u.createElement(J,{sx:{position:"relative"}},h&&u.createElement(J,{sx:{position:"fixed",height:"100vh",width:"100vw",bottom:0,zIndex:0,right:0,left:0,top:0},onKeyPress:e,onClick:t}),u.createElement(J,{sx:{position:"relative",zIndex:1},className:r},u.createElement(on,Object.assign({},n))))},cn=n=>u.createElement(ln,Object.assign({},n));var Kt={exports:{}};(function(n,s){(function(r,o){n.exports=o()})(vt,function(){var r="week",o="year";return function(h,t,e){var i=t.prototype;i.week=function(d){if(d===void 0&&(d=null),d!==null)return this.add(7*(d-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=e(this).startOf(o).add(1,o).date(f),y=e(this).endOf(r);if(a.isBefore(y))return 1}var x=e(this).startOf(o).date(f).startOf(r).subtract(1,"millisecond"),b=this.diff(x,r,!0);return b<0?e(this).startOf("week").week():Math.ceil(b)},i.weeks=function(d){return d===void 0&&(d=null),this.week(d)}}})})(Kt);var dn=Kt.exports;const hn=kt(dn);var Xt={exports:{}};(function(n,s){(function(r,o){n.exports=o()})(vt,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,h=/\d/,t=/\d\d/,e=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,d={},f=function(l){return(l=+l)+(l>68?1900:2e3)},a=function(l){return function(c){this[l]=+c}},y=[/[+-]\d\d:?(\d\d)?|Z/,function(l){(this.zone||(this.zone={})).offset=function(c){if(!c||c==="Z")return 0;var g=c.match(/([+-]|\d\d)/g),D=60*g[1]+(+g[2]||0);return D===0?0:g[0]==="+"?-D:D}(l)}],x=function(l){var c=d[l];return c&&(c.indexOf?c:c.s.concat(c.f))},b=function(l,c){var g,D=d.meridiem;if(D){for(var T=1;T<=24;T+=1)if(l.indexOf(D(T,0,c))>-1){g=T>12;break}}else g=l===(c?"pm":"PM");return g},O={A:[i,function(l){this.afternoon=b(l,!1)}],a:[i,function(l){this.afternoon=b(l,!0)}],Q:[h,function(l){this.month=3*(l-1)+1}],S:[h,function(l){this.milliseconds=100*+l}],SS:[t,function(l){this.milliseconds=10*+l}],SSS:[/\d{3}/,function(l){this.milliseconds=+l}],s:[e,a("seconds")],ss:[e,a("seconds")],m:[e,a("minutes")],mm:[e,a("minutes")],H:[e,a("hours")],h:[e,a("hours")],HH:[e,a("hours")],hh:[e,a("hours")],D:[e,a("day")],DD:[t,a("day")],Do:[i,function(l){var c=d.ordinal,g=l.match(/\d+/);if(this.day=g[0],c)for(var D=1;D<=31;D+=1)c(D).replace(/\[|\]/g,"")===l&&(this.day=D)}],w:[e,a("week")],ww:[t,a("week")],M:[e,a("month")],MM:[t,a("month")],MMM:[i,function(l){var c=x("months"),g=(x("monthsShort")||c.map(function(D){return D.slice(0,3)})).indexOf(l)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(l){var c=x("months").indexOf(l)+1;if(c<1)throw new Error;this.month=c%12||c}],Y:[/[+-]?\d+/,a("year")],YY:[t,function(l){this.year=f(l)}],YYYY:[/\d{4}/,a("year")],Z:y,ZZ:y};function w(l){var c,g;c=l,g=d&&d.formats;for(var D=(l=c.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(L,R,C){var m=C&&C.toUpperCase();return R||g[C]||r[C]||g[m].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(E,Y,p){return Y||p.slice(1)})})).match(o),T=D.length,v=0;v<T;v+=1){var P=D[v],W=O[P],N=W&&W[0],A=W&&W[1];D[v]=A?{regex:N,parser:A}:P.replace(/^\[|\]$/g,"")}return function(L){for(var R={},C=0,m=0;C<T;C+=1){var E=D[C];if(typeof E=="string")m+=E.length;else{var Y=E.regex,p=E.parser,k=L.slice(m),S=Y.exec(k)[0];p.call(R,S),L=L.replace(S,"")}}return function(z){var V=z.afternoon;if(V!==void 0){var F=z.hours;V?F<12&&(z.hours+=12):F===12&&(z.hours=0),delete z.afternoon}}(R),R}}return function(l,c,g){g.p.customParseFormat=!0,l&&l.parseTwoDigitYear&&(f=l.parseTwoDigitYear);var D=c.prototype,T=D.parse;D.parse=function(v){var P=v.date,W=v.utc,N=v.args;this.$u=W;var A=N[1];if(typeof A=="string"){var L=N[2]===!0,R=N[3]===!0,C=L||R,m=N[2];R&&(m=N[2]),d=this.$locale(),!L&&m&&(d=g.Ls[m]),this.$d=function(k,S,z,V){try{if(["x","X"].indexOf(S)>-1)return new Date((S==="X"?1e3:1)*k);var F=w(S)(k),ht=F.year,rt=F.month,te=F.day,ee=F.hours,ne=F.minutes,se=F.seconds,re=F.milliseconds,Lt=F.zone,Rt=F.week,ut=new Date,ft=te||(ht||rt?1:ut.getDate()),mt=ht||ut.getFullYear(),at=0;ht&&!rt||(at=rt>0?rt-1:ut.getMonth());var it,pt=ee||0,gt=ne||0,yt=se||0,Dt=re||0;return Lt?new Date(Date.UTC(mt,at,ft,pt,gt,yt,Dt+60*Lt.offset*1e3)):z?new Date(Date.UTC(mt,at,ft,pt,gt,yt,Dt)):(it=new Date(mt,at,ft,pt,gt,yt,Dt),Rt&&(it=V(it).week(Rt).toDate()),it)}catch{return new Date("")}}(P,A,W,g),this.init(),m&&m!==!0&&(this.$L=this.locale(m).$L),C&&P!=this.format(A)&&(this.$d=new Date("")),d={}}else if(A instanceof Array)for(var E=A.length,Y=1;Y<=E;Y+=1){N[1]=A[Y-1];var p=g.apply(this,N);if(p.isValid()){this.$d=p.$d,this.$L=p.$L,this.init();break}Y===E&&(this.$d=new Date(""))}else T.call(this,v)}}})})(Xt);var un=Xt.exports;const fn=kt(un);var Qt={exports:{}};(function(n,s){(function(r,o){n.exports=o()})(vt,function(){return function(r,o,h){o.prototype.isBetween=function(t,e,i,d){var f=h(t),a=h(e),y=(d=d||"()")[0]==="(",x=d[1]===")";return(y?this.isAfter(f,i):!this.isBefore(f,i))&&(x?this.isBefore(a,i):!this.isAfter(a,i))||(y?this.isBefore(f,i):!this.isAfter(f,i))&&(x?this.isAfter(a,i):!this.isBefore(a,i))}}})})(Qt);var mn=Qt.exports;const pn=kt(mn);I.extend(fn);I.extend(ve);I.extend(pn);const gn=He(["Your locale has not been found.","Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale","Or you forget to import the locale from 'dayjs/locale/{localeUsed}'","fallback on English locale"]),yn={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},Dn={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Mt=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
|
|
2
2
|
`),_t=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
|
|
3
3
|
`),xn=(n,s)=>s?(...r)=>n(...r).locale(s):n;class Mn{constructor({locale:s,formats:r,instance:o}={}){var h;this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.rawDayJsInstance=void 0,this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=yn,this.setLocaleToValue=t=>{const e=this.getCurrentLocaleCode();return e===t.locale()?t:t.locale(e)},this.hasUTCPlugin=()=>typeof I.utc<"u",this.hasTimezonePlugin=()=>typeof I.tz<"u",this.isSame=(t,e,i)=>{const d=this.setTimezone(e,this.getTimezone(t));return t.format(i)===d.format(i)},this.cleanTimezone=t=>{switch(t){case"default":return;case"system":return I.tz.guess();default:return t}},this.createSystemDate=t=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(t);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const e=I.tz.guess();return e!=="UTC"?I.tz(t,e):I(t)}return I(t)},this.createUTCDate=t=>{if(!this.hasUTCPlugin())throw new Error(Mt);return I.utc(t)},this.createTZDate=(t,e)=>{if(!this.hasUTCPlugin())throw new Error(Mt);if(!this.hasTimezonePlugin())throw new Error(_t);const i=t!==void 0&&!t.endsWith("Z");return I(t).tz(this.cleanTimezone(e),i)},this.getLocaleFormats=()=>{const t=I.Ls,e=this.locale||"en";let i=t[e];return i===void 0&&(gn(),i=t.en),i.formats},this.adjustOffset=t=>{if(!this.hasTimezonePlugin())return t;const e=this.getTimezone(t);if(e!=="UTC"){var i,d;const f=t.tz(this.cleanTimezone(e),!0);if(((i=f.$offset)!=null?i:0)===((d=t.$offset)!=null?d:0))return t;t.$offset=f.$offset}return t},this.date=t=>t===null?null:this.dayjs(t),this.dateWithTimezone=(t,e)=>{if(t===null)return null;let i;return e==="UTC"?i=this.createUTCDate(t):e==="system"||e==="default"&&!this.hasTimezonePlugin()?i=this.createSystemDate(t):i=this.createTZDate(t,e),this.locale===void 0?i:i.locale(this.locale)},this.getTimezone=t=>{if(this.hasTimezonePlugin()){var e;const i=(e=t.$x)==null?void 0:e.$timezone;if(i)return i}return this.hasUTCPlugin()&&t.isUTC()?"UTC":"system"},this.setTimezone=(t,e)=>{if(this.getTimezone(t)===e)return t;if(e==="UTC"){if(!this.hasUTCPlugin())throw new Error(Mt);return t.utc()}if(e==="system")return t.local();if(!this.hasTimezonePlugin()){if(e==="default")return t;throw new Error(_t)}return I.tz(t,this.cleanTimezone(e))},this.toJsDate=t=>t.toDate(),this.parseISO=t=>this.dayjs(t),this.toISO=t=>t.toISOString(),this.parse=(t,e)=>t===""?null:this.dayjs(t,e,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=t=>{const e=this.getLocaleFormats(),i=d=>d.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(f,a,y)=>a||y.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(d,f,a)=>{const y=a&&a.toUpperCase();return f||e[a]||i(e[y])})},this.getFormatHelperText=t=>this.expandFormat(t).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=t=>t===null,this.isValid=t=>this.dayjs(t).isValid(),this.format=(t,e)=>this.formatByString(t,this.formats[e]),this.formatByString=(t,e)=>this.dayjs(t).format(e),this.formatNumber=t=>t,this.getDiff=(t,e,i)=>t.diff(e,i),this.isEqual=(t,e)=>t===null&&e===null?!0:this.dayjs(t).toDate().getTime()===this.dayjs(e).toDate().getTime(),this.isSameYear=(t,e)=>this.isSame(t,e,"YYYY"),this.isSameMonth=(t,e)=>this.isSame(t,e,"YYYY-MM"),this.isSameDay=(t,e)=>this.isSame(t,e,"YYYY-MM-DD"),this.isSameHour=(t,e)=>t.isSame(e,"hour"),this.isAfter=(t,e)=>t>e,this.isAfterYear=(t,e)=>this.hasUTCPlugin()?!this.isSameYear(t,e)&&t.utc()>e.utc():t.isAfter(e,"year"),this.isAfterDay=(t,e)=>this.hasUTCPlugin()?!this.isSameDay(t,e)&&t.utc()>e.utc():t.isAfter(e,"day"),this.isBefore=(t,e)=>t<e,this.isBeforeYear=(t,e)=>this.hasUTCPlugin()?!this.isSameYear(t,e)&&t.utc()<e.utc():t.isBefore(e,"year"),this.isBeforeDay=(t,e)=>this.hasUTCPlugin()?!this.isSameDay(t,e)&&t.utc()<e.utc():t.isBefore(e,"day"),this.isWithinRange=(t,[e,i])=>t>=e&&t<=i,this.startOfYear=t=>this.adjustOffset(t.startOf("year")),this.startOfMonth=t=>this.adjustOffset(t.startOf("month")),this.startOfWeek=t=>this.adjustOffset(t.startOf("week")),this.startOfDay=t=>this.adjustOffset(t.startOf("day")),this.endOfYear=t=>this.adjustOffset(t.endOf("year")),this.endOfMonth=t=>this.adjustOffset(t.endOf("month")),this.endOfWeek=t=>this.adjustOffset(t.endOf("week")),this.endOfDay=t=>this.adjustOffset(t.endOf("day")),this.addYears=(t,e)=>this.adjustOffset(e<0?t.subtract(Math.abs(e),"year"):t.add(e,"year")),this.addMonths=(t,e)=>this.adjustOffset(e<0?t.subtract(Math.abs(e),"month"):t.add(e,"month")),this.addWeeks=(t,e)=>this.adjustOffset(e<0?t.subtract(Math.abs(e),"week"):t.add(e,"week")),this.addDays=(t,e)=>this.adjustOffset(e<0?t.subtract(Math.abs(e),"day"):t.add(e,"day")),this.addHours=(t,e)=>this.adjustOffset(e<0?t.subtract(Math.abs(e),"hour"):t.add(e,"hour")),this.addMinutes=(t,e)=>this.adjustOffset(e<0?t.subtract(Math.abs(e),"minute"):t.add(e,"minute")),this.addSeconds=(t,e)=>this.adjustOffset(e<0?t.subtract(Math.abs(e),"second"):t.add(e,"second")),this.getYear=t=>t.year(),this.getMonth=t=>t.month(),this.getDate=t=>t.date(),this.getHours=t=>t.hour(),this.getMinutes=t=>t.minute(),this.getSeconds=t=>t.second(),this.getMilliseconds=t=>t.millisecond(),this.setYear=(t,e)=>this.adjustOffset(t.set("year",e)),this.setMonth=(t,e)=>this.adjustOffset(t.set("month",e)),this.setDate=(t,e)=>this.adjustOffset(t.set("date",e)),this.setHours=(t,e)=>this.adjustOffset(t.set("hour",e)),this.setMinutes=(t,e)=>this.adjustOffset(t.set("minute",e)),this.setSeconds=(t,e)=>this.adjustOffset(t.set("second",e)),this.setMilliseconds=(t,e)=>this.adjustOffset(t.set("millisecond",e)),this.getDaysInMonth=t=>t.daysInMonth(),this.getNextMonth=t=>this.addMonths(t,1),this.getPreviousMonth=t=>this.addMonths(t,-1),this.getMonthArray=t=>{const i=[t.startOf("year")];for(;i.length<12;){const d=i[i.length-1];i.push(this.addMonths(d,1))}return i},this.mergeDateAndTime=(t,e)=>t.hour(e.hour()).minute(e.minute()).second(e.second()),this.getWeekdays=()=>{const t=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map(e=>this.formatByString(this.addDays(t,e),"dd"))},this.getWeekArray=t=>{const e=this.setLocaleToValue(t),i=e.startOf("month").startOf("week"),d=e.endOf("month").endOf("week");let f=0,a=i;const y=[];for(;a<d;){const x=Math.floor(f/7);y[x]=y[x]||[],y[x].push(a),a=this.addDays(a,1),f+=1}return y},this.getWeekNumber=t=>t.week(),this.getYearRange=(t,e)=>{const i=t.startOf("year"),d=e.endOf("year"),f=[];let a=i;for(;a<d;)f.push(a),a=this.addYears(a,1);return f},this.getMeridiemText=t=>t==="am"?"AM":"PM",this.rawDayJsInstance=o,this.dayjs=xn((h=this.rawDayJsInstance)!=null?h:I,s),this.locale=s,this.formats=pe({},Dn,r),I.extend(hn)}}function Ut(n,s,r,o){return parseFloat((s-o*s/n+r).toFixed(2))}function Tn(n){[...n.querySelectorAll("*")].forEach(s=>n.removeChild(s))}function bn(n){return n.value}function X(n,s){const r=document.createElementNS("http://www.w3.org/2000/svg",n);for(const o in s)r.setAttribute(o,s[o]);return r}function wn(n,s=[],r={}){if(Tn(n),s.length<=1)return;let o=[];typeof s[0]=="number"?o=s.map(m=>({value:m})):o=s;const{onmousemove:h}=r,{onmouseout:t}=r,e="interactive"in r?r.interactive:!!h,i=r.spotRadius||2,d=i*2,f=r.cursorWidth||2,a=parseFloat(n.attributes["stroke-width"].value),y=r.fetch||bn,x=o.map(m=>y(m)),b=parseFloat(n.attributes.width.value)-d*2,O=parseFloat(n.attributes.height.value),w=O-a*2-d,l=Math.max(...x)===0?1:Math.max(...x),c=-1e3,g=x.length-1,D=b/g,T=[],v=Ut(l,w,a+i,x[0]);let P=`M${d} ${v}`;x.forEach((m,E)=>{const Y=E*D+d,p=Ut(l,w,a+i,m);T.push(Object.assign({},o[E],{index:E,x:Y,y:p})),P+=` L ${Y} ${p}`});const W=X("path",{class:"sparkline--line",d:P,fill:"none"}),N=`${P} V ${O} L ${d} ${O} Z`,A=X("path",{class:"sparkline--fill",d:N,stroke:"none"});if(n.appendChild(A),n.appendChild(W),!e)return;const L=X("line",{class:"sparkline--cursor",x1:c,x2:c,y1:0,y2:O,"stroke-width":f}),R=X("circle",{class:"sparkline--spot",cx:c,cy:c,r:i});n.appendChild(L),n.appendChild(R);const C=X("rect",{width:n.attributes.width.value,height:n.attributes.height.value,style:"fill: transparent; stroke: transparent",class:"sparkline--interaction-layer"});n.appendChild(C),C.addEventListener("mouseout",m=>{L.setAttribute("x1",c.toString()),L.setAttribute("x2",c.toString()),R.setAttribute("cx",c.toString()),t&&t(m)}),C.addEventListener("mousemove",m=>{const E=m.offsetX;let Y=T.find(F=>F.x>=E);Y||(Y=T[g]);const p=T[T.indexOf(Y)-1];let k,S;p?(S=p.x+(Y.x-p.x)/2,k=E>=S?Y:p):k=Y;const{x:z}=k,{y:V}=k;R.setAttribute("cx",z.toString()),R.setAttribute("cy",V.toString()),L.setAttribute("x1",z.toString()),L.setAttribute("x2",z.toString()),h&&h(m,k)})}function jt({style:n,title:s,value:r,graph:o,description:h,empty:t}){return M.jsx(vn,{children:M.jsxs(De,{style:{...n},children:[M.jsx(q,{sx:{fontSize:14},color:"text.secondary",children:s}),t&&u.isValidElement(t)?M.jsx(J,{color:"text.secondary",display:"flex",justifyContent:"center",alignItems:"center",style:{height:150},children:t}):M.jsxs(M.Fragment,{children:[M.jsx(q,{variant:"h5",component:"div",mt:1,children:r}),o,!!h&&M.jsx(J,{display:"flex",sx:{fontSize:12,marginTop:3},color:"text.secondary",children:h})]})]})})}jt.propTypes={style:H.object,title:H.node,value:H.node,graph:H.node,description:H.any,empty:H.node};jt.defaultProps={style:{},title:null,value:null,graph:null,empty:null,description:null};const vn=ge(ye)`
|
|
4
4
|
.card-content {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,a2 as y,a3 as f,T,a9 as m}from"./vendor-mui-core-
|
|
1
|
+
import{j as e,a2 as y,a3 as f,T,a9 as m}from"./vendor-mui-core-DuHCqPbx.js";import{u as A,p as D,B as R,ak as b}from"./vendor-ux-did-connect-C6-B7NaP.js";import{H as P}from"./addon-CtRJ-pkD.js";import{F as E}from"./fullpage-BYe9wNcJ.js";import{R as F,a as I}from"./vendor-arcblock-DLTOGOem.js";import{d as H}from"./CheckCircle-CGdHOFiB.js";import{l as L}from"./vendor-hooks-B7GuuzU5.js";import{r as o}from"./vendor-react-DoD83n6N.js";import{u as W,d as _,s as B,a as z,S as N}from"./index-XAPzWSFR.js";import"./vendor-utils-DDG_VdF0.js";import"./lottie-web-B6s7dDoL.js";import"./QuestionMarkCircle-CZnuAiiS.js";function se(){var i,c,l,p;const{t:s,locale:u}=A(),{api:x,session:h}=W(),{searchParams:g}=new URL(window.location.href),[j,S]=o.useState(!1),r=g.get("transferId"),v=(i=window==null?void 0:window.env)==null?void 0:i.appId,w=o.useCallback(async()=>{const{data:t}=await _.get("/blocklet/transfer",{params:{transferId:r}});return t},[r]),a=L(w),C=o.useCallback(async(t,d)=>{t&&(B(d(t.sessionToken)),z(d(t.refreshToken))),await h.refresh(),S(!0)},[]);if(a.loading)return e.jsx(y,{});if(a.error)return e.jsx(K,{children:e.jsx(F,{status:"404",title:(l=(c=a.error)==null?void 0:c.response)==null?void 0:l.data,description:""})});const k=a.data.status==="success";let n;return k||j?n=e.jsxs(e.Fragment,{children:[e.jsx(q,{children:e.jsx(P,{SessionContext:N})}),e.jsx(f,{pt:1,color:"success.main",children:e.jsx(H,{style:{fontSize:80}})}),e.jsx(T,{my:4,variant:"h5",children:s("team.transferApp.successTitle")}),e.jsx("a",{href:`${D.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,children:e.jsx(R,{variant:"contained",children:s("team.transferApp.visitDashboard")})})]}):n=e.jsx(b,{action:"receive-transfer-app-owner",checkFn:x.get,forceConnected:!1,autoConnect:!1,checkTimeout:10*60*1e3,onSuccess:C,onClose:()=>{},locale:u,messages:{title:s("team.transferApp.receiveDialog.title"),scan:s("team.transferApp.receiveDialog.scan"),confirm:s("team.transferApp.receiveDialog.confirm"),success:s("team.transferApp.receiveDialog.success")},extraParams:{transferId:r,appDid:v}}),e.jsx(E,{did:(p=window.blocklet)==null?void 0:p.appPid,children:e.jsx(f,{sx:{maxWidth:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:n})})}const q=m(I)`
|
|
2
2
|
position: fixed;
|
|
3
3
|
top: 16px;
|
|
4
4
|
right: 16px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as i,a3 as t,
|
|
1
|
+
import{j as i,a3 as t,bE as C,bL as w,bM as k,bN as E,T as L}from"./vendor-mui-core-DuHCqPbx.js";import{u as R,L as v}from"./vendor-react-DoD83n6N.js";import{u as F,B as u,Q as a,aE as P,p as d}from"./vendor-ux-did-connect-C6-B7NaP.js";import{a as T,u as f,k as S}from"./vendor-hooks-B7GuuzU5.js";import{x as m}from"./vendor-utils-DDG_VdF0.js";import{u as I}from"./index-XAPzWSFR.js";import"./lottie-web-B6s7dDoL.js";import"./vendor-arcblock-DLTOGOem.js";function M(){var c,l;const{api:b}=I(),h=R(),{t:n}=F(),r=new URLSearchParams(h.search).get("token"),e=T({error:"",finished:!1,loading:!1}),p=f(()=>{window.close(),window.location.replace("/")}),x=f(async()=>{try{e.loading=!0;const{data:o}=await b.post("/api/user/notification/unsubscribe",{token:r});o.success===!0?(e.finished=!0,a.success(n("notification.unsubscribeSucceed"))):(e.finished=!1,a.error(n("notification.unsubscribeFailed")))}catch(o){e.finished=!1,a.error(o.message||n("notification.unsubscribeFailed"))}finally{e.loading=!1}});S(()=>{if(!r)e.error=n("notification.unsubscribeTokenRequired");else{const o=P(r);if(!o)e.error=n("notification.unsubscribeTokenInvalid");else{const{exp:y}=o;y*1e3<=Date.now()&&(e.error=n("notification.unsubscribeTokenExpired"))}}});const s=(c=window==null?void 0:window.blocklet)==null?void 0:c.copyright,g=(s==null?void 0:s.owner)||((l=window==null?void 0:window.blocklet)==null?void 0:l.appName),j=(s==null?void 0:s.year)||new Date().getFullYear();return i.jsx(t,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",minHeight:"100vh",backgroundColor:"#fafafa"},children:i.jsxs(t,{sx:{width:"450px",maxWidth:"90%"},children:[i.jsx(t,{sx:{width:"100%"},children:i.jsx("img",{style:{height:"40px"},src:m(d.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo-rect?imageFilter=convert&f=png"),alt:"blocklet logo"})}),i.jsxs(C,{variant:"outlined",sx:{my:1},children:[i.jsx(w,{title:e.finished?n("notification.unsubscribeSucceed"):n("notification.email.unsubscribe")}),i.jsxs(k,{sx:{minHeight:"10em"},children:[e.error?e.error:null,!e.error&&!e.finished?n("notification.email.unsubscribeDescription"):null,!e.error&&e.finished?i.jsxs(i.Fragment,{children:[n("notification.email.subscribeDescription")," ",i.jsx(v,{to:m(d.WELLKNOWN_SERVICE_PATH_PREFIX,"/user/settings"),color:"primary",children:n("notification.email.subscribe")})]}):null]}),i.jsxs(E,{sx:{justifyContent:"end!important"},children:[i.jsx(u,{size:"small",color:e.error?"error":"primary",variant:"outlined",onClick:p,children:n("common.close")}),e.error||e.finished?null:i.jsx(u,{size:"small",color:"primary",variant:"contained",onClick:x,loading:e.loading,children:n("notification.unsubscribe")})]})]}),i.jsxs(L,{variant:"body2",color:"gray",children:["Copyright © ",j," ",g]})]})})}export{M as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as o,t}from"./vendor-mui-core-
|
|
1
|
+
import{e as o,t}from"./vendor-mui-core-DuHCqPbx.js";function u({key:e}={key:"sm"}){const s=o();return t(s.breakpoints.down(e))}export{u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a9 as v}from"./vendor-mui-core-
|
|
1
|
+
import{a9 as v}from"./vendor-mui-core-DuHCqPbx.js";import{v as m}from"./vendor-hooks-B7GuuzU5.js";import{r as y}from"./vendor-react-DoD83n6N.js";import{u as p}from"./useAsync-DOwDXG5n.js";const i={success:"#3ab39d",error:"#D0021B"},n="10px",k=v.div`
|
|
2
2
|
display: inline-block;
|
|
3
3
|
min-width: ${r=>r.size||n};
|
|
4
4
|
min-height: ${r=>r.size||n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as S}from"./vendor-react-DoD83n6N.js";import{
|
|
1
|
+
import{r as S}from"./vendor-react-DoD83n6N.js";import{b3 as y}from"./vendor-ux-did-connect-C6-B7NaP.js";var d={};Object.defineProperty(d,"__esModule",{value:!0});var c=S,o=y,z=function(f,i,r){if(!o.isBrowser)return[i,o.noop,o.noop];if(!f)throw new Error("useLocalStorage key may not be falsy");var u=r?r.raw?function(t){return t}:r.deserializer:JSON.parse,n=c.useRef(function(t){try{var a=r?r.raw?String:r.serializer:JSON.stringify,e=localStorage.getItem(t);return e!==null?u(e):(i&&localStorage.setItem(t,a(i)),i)}catch{return i}}),l=c.useState(function(){return n.current(f)}),g=l[0],s=l[1];c.useLayoutEffect(function(){return s(n.current(f))},[f]);var m=c.useCallback(function(t){try{var a=typeof t=="function"?t(g):t;if(typeof a>"u")return;var e=void 0;r?r.raw?typeof a=="string"?e=a:e=JSON.stringify(a):r.serializer?e=r.serializer(a):e=JSON.stringify(a):e=JSON.stringify(a),localStorage.setItem(f,e),s(u(e))}catch{}},[f,s]),v=c.useCallback(function(){try{localStorage.removeItem(f),s(void 0)}catch{}},[f,s]);return[g,m,v]},N=d.default=z;export{N as _};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{E as o,j as e,
|
|
1
|
+
import{E as o,j as e,bj as U,bi as K,aj as A,a3 as C,x as I,bJ as ie,a9 as V,bk as se,M as re,t as le,a2 as Y}from"./vendor-mui-core-DuHCqPbx.js";import{A as _,H as ce,U as de}from"./vendor-arcblock-DLTOGOem.js";import{r as h,f as ue,l as pe}from"./vendor-react-DoD83n6N.js";import{f as F}from"./vendor-hooks-B7GuuzU5.js";import{aV as T,u as fe,p as ge}from"./vendor-ux-did-connect-C6-B7NaP.js";import{x as he}from"./vendor-utils-DDG_VdF0.js";import{N as me}from"./list-M4HFgEsa.js";import{B as xe}from"./bundle-avatar-CGBNi-Pw.js";import{R as be}from"./index-XAPzWSFR.js";import"./lottie-web-B6s7dDoL.js";import"./index-DXn6Hbns.js";import"./index-CFAVLo-D.js";import"./relative-time-CqGmG7bS.js";import"./InfoOutlined-CHMeBquS.js";const B={info:"#3B82F6",success:"#10B981",warning:"#F59E0B",error:"#EF4444"};N.propTypes={severity:o.oneOf(["info","success","warning","error",""]).isRequired,size:o.number};N.defaultProps={size:8};function N({severity:l,size:s}){return B[l]?e.jsx(C,{component:"span",sx:{display:"inline-block",width:s,height:s,borderRadius:"50%",backgroundColor:B[l]||B.info}}):null}E.propTypes={theme:o.string,type:o.oneOf(["button","line","select"]),onSelectType:o.func,extra:o.node,loading:o.bool,currentTab:o.oneOf(["info","success","warning","error",""])};function E({theme:l="dark",type:s="button",onSelectType:f,extra:m=void 0,currentTab:g="",loading:x=!1,...y}){const{t:d}=h.useContext(T),u=[{label:d("notification.allSeverity"),value:""},{label:d("notification.severityType.info"),value:"info"},{label:d("notification.severityType.success"),value:"success"},{label:d("notification.severityType.warning"),value:"warning"},{label:d("notification.severityType.error"),value:"error"}],c=t=>{(t!==g||!x)&&f(t)},j=h.useMemo(()=>{const t={width:"100%",bgcolor:l==="dark"?"#F9FAFB":"",overflowY:"auto",paddingTop:s==="select"?"0":"5px",whiteSpace:"nowrap",borderRadius:0,display:"flex",justifyContent:"space-between",alignItems:"flex-end",flexWrap:"wrap",gap:"8px"};return s==="line"?Object.assign(t,{}):t},[s,l]),n=(t,p,w)=>e.jsx(I,{disabled:x,onClick:()=>c(t.value),className:`profile-button ${p?"active":""}`,...y,children:t.label},t.value||w),a=(t,p,w)=>e.jsx(I,{variant:"text",disabled:x,onClick:()=>c(t.value),className:`profile-line-button ${p?"active":""}`,...y,children:t.label},t.value||w),v=()=>u==null?void 0:u.map((t,p)=>{const w=g===(t==null?void 0:t.value);return s==="line"?e.jsx(h.Fragment,{children:a(t,w,p)},t.value||p):e.jsx(h.Fragment,{children:n(t,w,p)},t.value||p)}),b=t=>{const{value:p}=t.target;c(p==="all"?"":p)};return s==="select"?e.jsx(U,{sx:{maxWidth:300},children:e.jsx(K,{value:g||"all",onChange:b,size:"small",label:"Severity",IconComponent:t=>e.jsx(_,{...t,width:20,height:20}),MenuProps:{autoFocus:!1,PaperProps:{style:{maxHeight:400,overflowY:"auto",borderRadius:"8px",boxShadow:"0px 6px 24px rgba(0, 0, 0, 0.15)"}}},variant:"outlined",sx:{fieldset:{border:"none"}},children:u.map((t,p)=>e.jsx(A,{value:t.value||"all",children:e.jsxs(C,{display:"flex",alignItems:"center",gap:1,children:[e.jsx(N,{severity:t.value}),t.label]})},t.value||p))})}):e.jsxs(C,{className:"severity-tabs",sx:j,children:[e.jsx(C,{sx:{...s==="line"?{flex:1,borderBottom:"1px solid rgba(209, 213, 219, 1)"}:{display:"flex",gap:"24px"}},children:v()}),m]})}J.propTypes={paging:o.objectOf(o.any).isRequired,loading:o.bool.isRequired,onChange:o.func.isRequired};function J({loading:l,paging:s,onChange:f}){const{t:m}=h.useContext(T);if(s.pageCount<=0)return null;const g=(d,u)=>{f({page:u+1})},x=d=>{const u=Number(d.target.value);f({page:1,pageSize:u})},y=s.page-1<=0?0:s.page-1;return e.jsx(C,{mt:2,display:"flex",justifyContent:"flex-end",children:e.jsx(ie,{disabled:l,count:s.total,page:y,rowsPerPageOptions:[10,20,50,100],labelRowsPerPage:m("pagination.rowsPerPage"),labelDisplayedRows:({from:d,to:u,count:c})=>`${d}–${u} / ${c!==-1?c:`${m()}more than ${u}`}`,rowsPerPage:s.pageSize,onPageChange:g,onRowsPerPageChange:x})})}const ye=h.memo(J);Q.propTypes={selectedId:o.string,blockletMap:o.object,onSelectChange:o.func,loading:o.bool,filterType:o.oneOf(["component","entity"])};const ve=V.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-items: flex-start;
|
|
4
4
|
align-items: center;
|
|
@@ -76,4 +76,4 @@ import{E as o,j as e,bi as U,bj as K,aj as A,a3 as C,x as I,bG as ie,a9 as V,bH
|
|
|
76
76
|
*::-webkit-scrollbar {
|
|
77
77
|
display: none; /* Chrome, Safari and Opera */
|
|
78
78
|
}
|
|
79
|
-
`;X.propTypes={blocklets:o.array,context:o.object,pagination:o.bool,inDialog:o.bool,filterType:o.oneOf(["component","entity"]),toViewAll:o.func,type:o.oneOf(["server","service"]),enableMarkAllAsRead:o.bool};function X({blocklets:l=[],context:s,pagination:f=!0,inDialog:m=!1,filterType:g="component",toViewAll:x=()=>{},type:y="service",enableMarkAllAsRead:d=!0}){const{data:u,paging:c,refresh:j,loading:n,params:a,onReadNotification:v,componentDids:b,unReadCount:t}=s,p=r=>{j({...a,severity:r,paging:{...a.paging,page:1}})},[w]=ue(),R=F(()=>w.get("id"),[w]),[
|
|
79
|
+
`;X.propTypes={blocklets:o.array,context:o.object,pagination:o.bool,inDialog:o.bool,filterType:o.oneOf(["component","entity"]),toViewAll:o.func,type:o.oneOf(["server","service"]),enableMarkAllAsRead:o.bool};function X({blocklets:l=[],context:s,pagination:f=!0,inDialog:m=!1,filterType:g="component",toViewAll:x=()=>{},type:y="service",enableMarkAllAsRead:d=!0}){const{data:u,paging:c,refresh:j,loading:n,params:a,onReadNotification:v,componentDids:b,unReadCount:t}=s,p=r=>{j({...a,severity:r,paging:{...a.paging,page:1}})},[w]=ue(),R=F(()=>w.get("id"),[w]),[G,z]=h.useState(!1);h.useEffect(()=>{setTimeout(()=>{const r=document.getElementById(R);r&&r.scrollIntoView({behavior:"smooth",block:"center"}),z(!0)},100),setTimeout(()=>{z(!1)},3e3)},[R]);const[Z,D]=h.useState(!1),ee=async()=>{D(!0),s.makeAllAsRead&&typeof s.makeAllAsRead=="function"&&await s.makeAllAsRead(),D(!1)},$=h.useCallback(r=>{const{blocklet:i={}}=window,P=[i==null?void 0:i.did,...((i==null?void 0:i.ancestors)||[]).map(S=>S)];return(b==null?void 0:b.includes(r))||P.findIndex(S=>S===r)>-1},[b]),L=h.useMemo(()=>{const r=new Map;return l.length&&l.forEach(i=>{var S,H,q;const P=(i==null?void 0:i.did)||((S=i.meta)==null?void 0:S.did);P&&!r.has(P)&&(i.ancestors=[],r.set(P,i),((H=i==null?void 0:i.alsoKnownAs)==null?void 0:H.length)>0&&i.alsoKnownAs.forEach(k=>{r.has(k)||r.set(k,i)})),((q=i==null?void 0:i.children)==null?void 0:q.length)>0&&i.children.forEach(k=>{var W;const M=(k==null?void 0:k.did)||((W=k.meta)==null?void 0:W.did);M&&!r.has(M)&&$(M)&&(k.ancestors=[i],r.set(M,k))})}),r},[l,$]),te=r=>{j({...a,paging:{...a.paging,...r}})},oe=r=>{var i,P;!r||(P=(i=r.receivers)==null?void 0:i[0])!=null&&P.read||v(r.id).then(()=>{m&&x()})},ne=r=>{if(n)return;let i={};g==="component"?i={entityId:"",componentDid:r}:g==="entity"&&(i={componentDid:"",entityId:r}),j({...a,...i,paging:{...a.paging,page:1}})},ae=F(()=>g==="component"?a.componentDid||"":g==="entity"&&a.entityId||"",[a,g]);return e.jsxs(Ce,{inDialog:!!m,children:[m?e.jsx(E,{currentTab:a.severity,type:"line",theme:"light",onSelectType:p}):e.jsx(O,{loading:Z||n,onMarkAllRead:ee,blockletMap:L,enableMarkAllAsRead:d,unReadCount:t,filterType:g,type:y,selectedId:ae,onFilterChange:ne,severity:a.severity,onSeverityChange:p}),n?e.jsx(C,{sx:{display:"flex",width:"100%",minHeight:400,justifyContent:"center",alignItems:"center"},children:e.jsx(Y,{sx:{color:"#4598fa"}})}):e.jsx(me,{data:u,blockletMap:L,onReadNotification:oe,inDialog:m,highlightId:R,highlight:!m&&G}),f?e.jsx(ye,{loading:n,paging:c,onChange:te}):null]})}const je=h.memo(X);function De(){var d;const{t:l}=fe(),f=pe().tab,g=new URLSearchParams(window.location.search).get("embed")||((d=window.sessionStorage)==null?void 0:d.getItem("embed")),x=be(),y=F(()=>{var u;return{...window.blocklet,meta:{did:window.blocklet.did,name:window.blocklet.did},children:(u=window==null?void 0:window.blocklet)==null?void 0:u.componentMountPoints.map(c=>({...c,meta:{...c,did:c.did,name:c.name||c.title||"",logo:"logo.png"}}))}});return e.jsxs(e.Fragment,{children:[e.jsx(ce,{children:e.jsx("title",{children:l("pageTitle.userCenter")})}),e.jsx(de,{embed:g==="1",currentTab:f?he(ge.WELLKNOWN_SERVICE_PATH_PREFIX,"user",f):"",disableAutoRedirect:f==="settings",children:f==="notifications"?e.jsx(je,{blocklets:[y],context:x}):null})]})}export{De as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as A}from"./vendor-utils-DDG_VdF0.js";import{b as E}from"./base32-
|
|
1
|
+
import{x as A}from"./vendor-utils-DDG_VdF0.js";import{b as E}from"./base32-DWv9Ece3.js";import{p as r}from"./vendor-ux-did-connect-C6-B7NaP.js";function l(e,i,o,s=!1){var R,_;if(e&&e.startsWith(r.USER_AVATAR_URL_PREFIX)){const n=window.env.apiPrefix||"/";if(o){if(s&&((R=window.blocklet)!=null&&R.serverDid)){const t=`https://${E.encode((_=window.blocklet)==null?void 0:_.serverDid)}.${r.DEFAULT_DID_DOMAIN}`;return`${A(t,r.USER_AVATAR_PATH_PREFIX,i,e.replace(r.USER_AVATAR_URL_PREFIX,""))}?imageFilter=resize&w=64&h=64`}return`${A(n,r.USER_AVATAR_PATH_PREFIX,e.replace(r.USER_AVATAR_URL_PREFIX,""))}?imageFilter=resize&w=64&h=64`}return`${A(n,r.USER_AVATAR_PATH_PREFIX,i,e.replace(r.USER_AVATAR_URL_PREFIX,""))}?imageFilter=resize&w=64&h=64`}return e}const w=(e,i)=>e.nodeOwner&&e.nodeOwner.did===i,U=(e,i)=>e&&e.did===i;export{U as a,w as i,l as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as s,j as h}from"./vendor-mui-core-
|
|
1
|
+
import{a1 as s,j as h}from"./vendor-mui-core-DuHCqPbx.js";import{r as c,p as d}from"./vendor-ux-did-connect-C6-B7NaP.js";import{g as p}from"./vendor-react-DoD83n6N.js";import{ab as v,a5 as P,h as x}from"./index-XAPzWSFR.js";var u={},E=s;Object.defineProperty(u,"__esModule",{value:!0});var R=u.default=void 0,_=E(c()),g=h;R=u.default=(0,_.default)((0,g.jsx)("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2M1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2"}),"ShoppingCart");var f={},m=s;Object.defineProperty(f,"__esModule",{value:!0});var y=f.default=void 0,b=m(c()),L=h;y=f.default=(0,b.default)((0,L.jsx)("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-2 16-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z"}),"VerifiedUser");const l=v;var T=(e,t)=>l(e)===l(t);const $=p(T),S=(e,t)=>{if(e.type===d.ROUTING_RULE_TYPES.REDIRECT){if(!e.url)return new Error(`${t("router.validation.redirectUrlRequired")}`);if(!e.redirectCode)return new Error(`redirect ${t("router.validation.redirectCodeRequired")}`)}else if(e.type===d.ROUTING_RULE_TYPES.BLOCKLET&&!e.did)return new Error(t("router.validation.didRequired"));return null},I=(e,t)=>{const r=S(e,t);return r||(e.pathPrefix.length?e.pathPrefix.length>150?new Error(t("router.validation.pathPrefixTooLong",{length:150})):null:new Error(t("router.validation.pathPrefixCannotBeEmpty")))},j=({params:e,blocklet:t})=>{if(t){const r=(t.children||[]).find(n=>P.hasStartEngine(n.meta)&&$(n.mountPoint,e.pathPrefix));let i="";return r&&(i=r.mountPoint),t.meta.group!=="gateway"&&e.pathPrefix==="/"&&(i="/"),i}return""},z=({params:e,blocklets:t,blocklet:r,locale:i="en"})=>{if(r&&j({params:e,blocklet:r}))return{zh:`挂载点 ${e.pathPrefix} 已存在,请使用其他挂载点`,en:`The mount point ${e.pathPrefix} already exist, please use another mount point`}[i];const n=t.find(o=>o.meta.did===e.did);if(!n)return"";const a=n.meta.interfaces.find(o=>o.type==="web");return a&&a.prefix!==x.BLOCKLET_DYNAMIC_PATH_PREFIX&&e.pathPrefix!==a.prefix?{zh:`该 blocklet 只能挂载在 ${a.prefix}`,en:`This blocklet can only be mounted on ${a.prefix}`}[i]:""},M=e=>{if(!e||typeof e!="string")return e;let t=e.trim();try{return t=t.toLowerCase(),t.startsWith("http://")||t.startsWith("https://")?new URL(t).hostname:t}catch(r){return console.error("format domain failed",r),t}};export{y as a,I as b,R as d,j as e,M as p,z as v};
|