@abtnode/blocklet-services 1.16.39-beta-20250215-130252-43410928 → 1.16.39-beta-20250218-110004-a308c501

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.
Files changed (132) hide show
  1. package/api/index.js +6 -2
  2. package/api/libs/email.js +2 -2
  3. package/api/services/notification/index.js +4 -2
  4. package/api/services/notification/notification-queue.js +671 -0
  5. package/api/socket/channel/did.js +146 -473
  6. package/dist/assets/{Add-TglZpKpw.js → Add-eTw9dWVa.js} +1 -1
  7. package/dist/assets/{ArrowDropDown-DCM27ed6.js → ArrowDropDown-D-RD-2MB.js} +1 -1
  8. package/dist/assets/{CheckCircle-CH8SYy4d.js → CheckCircle-fnIa_Tjy.js} +1 -1
  9. package/dist/assets/{ChevronLeft-B7m8AFzR.js → ChevronLeft-B6BBtJvf.js} +1 -1
  10. package/dist/assets/{ChevronRight-DeRklga5.js → ChevronRight-BO6iBxGF.js} +1 -1
  11. package/dist/assets/{DeleteOutline-DZA1YKE4.js → DeleteOutline-6B6Fe5fo.js} +1 -1
  12. package/dist/assets/{Done-CVdTMvGH.js → Done-BpK9makc.js} +1 -1
  13. package/dist/assets/{Download-DECMRaRC.js → Download-CHVAgVy8.js} +1 -1
  14. package/dist/assets/{Error-B61ZB0Rr.js → Error-kGbi4Zxj.js} +1 -1
  15. package/dist/assets/{Google-D_UbrpMW.js → Google-T-9fe6qI.js} +1 -1
  16. package/dist/assets/{InfoOutlined-QBw5AmWP.js → InfoOutlined-BgLmQpjA.js} +1 -1
  17. package/dist/assets/{Launch-Cpp3LVnV.js → Launch-C9zEVLvk.js} +1 -1
  18. package/dist/assets/{LaunchOutlined-WdAKKV2H.js → LaunchOutlined-Cql1NmZZ.js} +1 -1
  19. package/dist/assets/{Loop-CbPhaPlF.js → Loop-CawJEzLG.js} +1 -1
  20. package/dist/assets/{MoreHoriz-BsTY94ce.js → MoreHoriz-M9rI-Gh1.js} +1 -1
  21. package/dist/assets/{PlayArrow-BgVzxA9Q.js → PlayArrow-BAowUCpY.js} +1 -1
  22. package/dist/assets/{ViewList-DBUe2NSG.js → ViewList-BPtSTNst.js} +1 -1
  23. package/dist/assets/{access-control-DeqFMOm5.js → access-control-DEUU0fDz.js} +1 -1
  24. package/dist/assets/{actions-DP_Rm54e.js → actions-wYAFmtYW.js} +1 -1
  25. package/dist/assets/{add-component-core-BnP0_g-C.js → add-component-core-C36Oh0S_.js} +1 -1
  26. package/dist/assets/{add-resource-B26HHRU4.js → add-resource-Xm48tGBR.js} +1 -1
  27. package/dist/assets/{addon-DH34oI6i.js → addon-DJRfOF39.js} +1 -1
  28. package/dist/assets/{analytics-DPn53GmC.js → analytics-BxMLe4sZ.js} +1 -1
  29. package/dist/assets/{ar-BJD4HTM3.js → ar-BFUPmTkR.js} +1 -1
  30. package/dist/assets/{audit-logs-C1oUmr2S.js → audit-logs-QI7Dc290.js} +1 -1
  31. package/dist/assets/{base32-CwwDjweV.js → base32-BMSr-Oor.js} +1 -1
  32. package/dist/assets/{branding-DFfBkuOI.js → branding-BiBArxE7.js} +2 -2
  33. package/dist/assets/{bundle-avatar-Cv2R2iWI.js → bundle-avatar-CcKbW8ZA.js} +1 -1
  34. package/dist/assets/{button-4qfNeG4u.js → button-hN0nkg5h.js} +1 -1
  35. package/dist/assets/{click-to-copy-886R1sA9.js → click-to-copy-DlRwVMBE.js} +1 -1
  36. package/dist/assets/{complete-Cz6Vt9yr.js → complete-BCHhjgui.js} +2 -2
  37. package/dist/assets/{component-BOGOOyWw.js → component---BohhtR.js} +1 -1
  38. package/dist/assets/{config-BBRmjpUL.js → config-BT7DA9eX.js} +1 -1
  39. package/dist/assets/{config-CE9eJ5Ce.js → config-Chtg5c7S.js} +1 -1
  40. package/dist/assets/{config-navigation-ZGyHDU_V.js → config-navigation-DGQXESo8.js} +3 -3
  41. package/dist/assets/config-space-D3_ddjoK.js +1 -0
  42. package/dist/assets/{confirm-f60NfF3X.js → confirm-BUf2FX6y.js} +1 -1
  43. package/dist/assets/{connect-D9S16wyT.js → connect-9ktVrhs9.js} +1 -1
  44. package/dist/assets/{connect-B2VVyCQY.js → connect-Bg1fiX7Q.js} +1 -1
  45. package/dist/assets/{connect-to-BSmtnPV9.js → connect-to-6-yxL1od.js} +1 -1
  46. package/dist/assets/{dashboard-BoV1-CrH.js → dashboard-CRO3eTt1.js} +4 -4
  47. package/dist/assets/{de-CaPBInxb.js → de-hV0yD3gq.js} +1 -1
  48. package/dist/assets/{did-address-CgDvtQbT.js → did-address-Rncailh0.js} +1 -1
  49. package/dist/assets/{domain-DLGsAByD.js → domain-CiQ58Nbb.js} +1 -1
  50. package/dist/assets/{domain-list-BLV11Y6_.js → domain-list-DlMnYtcT.js} +2 -2
  51. package/dist/assets/{email-Fgr58FLV.js → email-C7B2iQRL.js} +1 -1
  52. package/dist/assets/{es-hhXhgxGX.js → es-BcSAobJW.js} +1 -1
  53. package/dist/assets/{exchange-passport-CcsLEfpo.js → exchange-passport-DvgnrFhH.js} +1 -1
  54. package/dist/assets/{form-text-input-CbMAGh7u.js → form-text-input-B3XB3R1O.js} +1 -1
  55. package/dist/assets/{fr-BwQvAhhM.js → fr-8qti32p1.js} +1 -1
  56. package/dist/assets/{fuel-B8r20ueU.js → fuel-De_bc9rw.js} +1 -1
  57. package/dist/assets/{fullpage-DLk_Ap1u.js → fullpage-ClwEgpoB.js} +1 -1
  58. package/dist/assets/{get-safe-url-BzE2b8Zw.js → get-safe-url-3FtlbQXR.js} +1 -1
  59. package/dist/assets/{get-safe-url-C2hTfmjV.js → get-safe-url-DgnUmHPg.js} +1 -1
  60. package/dist/assets/{hi-CRWmR5oy.js → hi-DDEUhQcX.js} +1 -1
  61. package/dist/assets/{home-B30MMEWW.js → home-s4XxyP6G.js} +1 -1
  62. package/dist/assets/{id-Dlr6Q1sk.js → id-DkUYINLx.js} +1 -1
  63. package/dist/assets/{iframe-DvysnY8O.js → iframe-DkAOGH82.js} +1 -1
  64. package/dist/assets/{index-r2Lf0YIw.js → index-AKILhCB1.js} +46 -46
  65. package/dist/assets/{index-CM-Ew9KZ.js → index-BM6MW3P4.js} +1 -1
  66. package/dist/assets/{index-C-yw0A3M.js → index-BQD1ktrC.js} +1 -1
  67. package/dist/assets/{index-V7v6XM-s.js → index-BuAHCrPZ.js} +1 -1
  68. package/dist/assets/{index-EDdyNc1F.js → index-C3Z6Hby2.js} +1 -1
  69. package/dist/assets/{index-j5s7Rpz_.js → index-C3cP3eho.js} +1 -1
  70. package/dist/assets/{index-B4_ve2gt.js → index-CKmE0Sqg.js} +1 -1
  71. package/dist/assets/index-CctdI8X8.js +125 -0
  72. package/dist/assets/{index-EIsfexf1.js → index-DEkiPG8Y.js} +1 -1
  73. package/dist/assets/{index-uSZNIR4c.js → index-DFzh5oL0.js} +1 -1
  74. package/dist/assets/index-DiLNptzT.js +5 -0
  75. package/dist/assets/{index-DFM7u7wl.js → index-IC1Rf7BW.js} +1 -1
  76. package/dist/assets/{index-B6CyLMos.js → index-Pdt8JY75.js} +1 -1
  77. package/dist/assets/{index-RoF9rzF3.js → index-XjSUrEf9.js} +1 -1
  78. package/dist/assets/{index-U8kTDDEm.js → index-vSb5bw1I.js} +4 -4
  79. package/dist/assets/{invitation-ZW3n52Yc.js → invitation-398ugOww.js} +1 -1
  80. package/dist/assets/{invite-B8cpjqrT.js → invite-CxctjCks.js} +1 -1
  81. package/dist/assets/{issue-passport-DrbTLcdD.js → issue-passport-BzEXCFP0.js} +1 -1
  82. package/dist/assets/{item-BVrq9ZQD.js → item-BzigISWG.js} +1 -1
  83. package/dist/assets/{ja-CmKylH6K.js → ja-C2LP4WQG.js} +1 -1
  84. package/dist/assets/{ko-Blp8936a.js → ko-C-DMeONa.js} +1 -1
  85. package/dist/assets/{layout-Dw2Qx7hs.js → layout-N5xbN7Ti.js} +1 -1
  86. package/dist/assets/{list-BwH5q_Zc.js → list-QwzSO7Cs.js} +1 -1
  87. package/dist/assets/{list-header-BBHpD8dC.js → list-header-bKaZ4zsu.js} +1 -1
  88. package/dist/assets/{localization-Ciwo-y3M.js → localization-CNvFSQc0.js} +1 -1
  89. package/dist/assets/{log-Ba7iTEJj.js → log-Bz9TkxcV.js} +1 -1
  90. package/dist/assets/{login-BewdlPwi.js → login-DbJD9Sgu.js} +1 -1
  91. package/dist/assets/{login-oauth-callback-D_bP2yYx.js → login-oauth-callback-BagCPt1j.js} +1 -1
  92. package/dist/assets/{logo-uploader-CneV6CnS.js → logo-uploader-QnBnkpOO.js} +3 -3
  93. package/dist/assets/{lost-passport-CNuZ281r.js → lost-passport-se4N22vE.js} +1 -1
  94. package/dist/assets/{open-window-Q0PVNWdu.js → open-window-BWPlSJZK.js} +1 -1
  95. package/dist/assets/{overview-giDiT6rf.js → overview-u84fbCZU.js} +1 -1
  96. package/dist/assets/{page-header-BDwGXuEW.js → page-header-CVCtfFXY.js} +1 -1
  97. package/dist/assets/{permission-Cqed8iP-.js → permission-CoRqvd18.js} +1 -1
  98. package/dist/assets/{preferences-CBm0eML7.js → preferences-CCm3JuB9.js} +1 -1
  99. package/dist/assets/{pt-BbwAvpfn.js → pt-CbxvF__Z.js} +1 -1
  100. package/dist/assets/publish-resource-Cmlpn7H3.js +1 -0
  101. package/dist/assets/{react-beautiful-dnd.esm-BTWrOgJp.js → react-beautiful-dnd.esm-CrvlS-3X.js} +1 -1
  102. package/dist/assets/{relative-time-Bt6RtG4o.js → relative-time-IDiRzYUd.js} +1 -1
  103. package/dist/assets/{ru-DgfLeWul.js → ru-DLHrAeE7.js} +1 -1
  104. package/dist/assets/sdk-DRntvOGy.js +1 -0
  105. package/dist/assets/{session-BKdZFtFw.js → session-BzY_i5lZ.js} +1 -1
  106. package/dist/assets/{setup-BdFkCCIb.js → setup-CFL-k7o4.js} +3 -3
  107. package/dist/assets/{start-Cy0MNYb6.js → start-Bnol7r-4.js} +1 -1
  108. package/dist/assets/{step-actions-CPEQpBG3.js → step-actions-vFuOlgmX.js} +1 -1
  109. package/dist/assets/{studio-BzK2t7MU.js → studio-D8dNrjXX.js} +1 -1
  110. package/dist/assets/{switch-control-BSKk9hbF.js → switch-control-DTOAJIEb.js} +1 -1
  111. package/dist/assets/{th-DXRi_ppC.js → th-Dil9kwjH.js} +1 -1
  112. package/dist/assets/{traffic-BQRcq8gg.js → traffic-C-Or__6J.js} +1 -1
  113. package/dist/assets/{transfer-DhNfOwE1.js → transfer-tWhnvLV8.js} +1 -1
  114. package/dist/assets/{unsubscribe-C0PztwA5.js → unsubscribe-8PpNeEGq.js} +1 -1
  115. package/dist/assets/{useLocalStorage-Bx8dJwZw.js → useLocalStorage-DDsWbihG.js} +1 -1
  116. package/dist/assets/{user-center-BshF32Jc.js → user-center-FVVJclAc.js} +1 -1
  117. package/dist/assets/{util-BPubgk5p.js → util-CqwLA_zk.js} +1 -1
  118. package/dist/assets/{util-CWVLbRLp.js → util-DfAqJble.js} +1 -1
  119. package/dist/assets/{vendor-arcblock-HzAExiTd.js → vendor-arcblock-naCuSDgJ.js} +5 -5
  120. package/dist/assets/{vi-nO7JrO24.js → vi-B46hyfUM.js} +1 -1
  121. package/dist/assets/wrap-locale-JORvcC3E.js +1 -0
  122. package/dist/assets/{zh-CEvYioAt.js → zh-DWWuPzr1.js} +1 -1
  123. package/dist/assets/{zh-tw-BjfRYnXu.js → zh-tw-Ci21sS2Y.js} +1 -1
  124. package/dist/index.html +2 -2
  125. package/dist/service-worker.js +1 -1
  126. package/package.json +24 -24
  127. package/dist/assets/config-space-Bgt2MtPU.js +0 -1
  128. package/dist/assets/index-4zAH1uuX.js +0 -5
  129. package/dist/assets/index-BkZLaapf.js +0 -123
  130. package/dist/assets/publish-resource-CQLawfAh.js +0 -1
  131. package/dist/assets/sdk-B4wNFenI.js +0 -1
  132. package/dist/assets/wrap-locale-DrPh3OVK.js +0 -1
@@ -1,4 +1,4 @@
1
- import{b as u,r as W,e as vt,g as kt}from"./vendor-react-D-afvo_7.js";import{G as Z,z as ae,I as Pt,ax as It}from"./index-r2Lf0YIw.js";import{a as A,aq as ie,x as oe}from"./vendor-utils-5TjOM6td.js";import{_ as le}from"./useAsyncRetry-Bmo6a1Zp.js";import{I as ce}from"./iframe-DvysnY8O.js";import{d as he}from"./LaunchOutlined-WdAKKV2H.js";import{co as Bt,a1 as de,j as M,a3 as J,v as qt,bO as C,ah as xt,T as q,L as ue,z as fe,bn as me,I as ot,bH as At,aP as Nt,al as zt,_ as pe,E as H,aa as ge,am as ye,ao as De,a2 as xe,ad as Me,x as Te,aj as be}from"./vendor-mui-core-xF5F4eT7.js";import{a0 as we,bC as ve,e as ke,b as Se}from"./vendor-arcblock-HzAExiTd.js";import{d as Oe}from"./ChevronLeft-B7m8AFzR.js";import{d as Ee}from"./ChevronRight-DeRklga5.js";import{r as St,t as Vt,i as B,a as K,b as _,p as Ye,c as Ce,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 je,n as bt,o as Q,q as Ft,u as Et,v as Le,w as Re,x as Pe,y as Ie,z as Ae}from"./index-C-D-nCB1.js";import{a as Ne,b as ze}from"./vendor-hooks-BKxTDk_P.js";import{f as Fe}from"./format-error-C0Ke3VXF.js";import{b as He,L as We,D as $e}from"./vendor-mui-x-CSUdon8K.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 d=Vt(o);(r===void 0||r<d||isNaN(Number(d)))&&(r=d)}),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 d=Vt(o);(r===void 0||r>d||isNaN(d.getDate()))&&(r=d)}),r||new Date(NaN)}function _e(n){return St(1,arguments),B(n,Date.now())}var Yt={},Ue=de;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}),d=[];for(let t=r;Q(t,o);)d.push(t),t=Tt(t,1);return d},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(Ce(r))return r}return s},Qe=(n,s,r)=>{const{startDate:o,endDate:d}=n;if(o&&d){const t=Zt([o,s]),e=Jt([d,r]);return[t,Ot(t,e)?_(t,1):e]}return[o,d]},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,d)=>n.getFullYear()-r+d)},nn=({date:n,setDate:s,nextDisabled:r,prevDisabled:o,onClickNext:d,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"],h=a=>{s(Ie(n,parseInt(a.target.value,10)))},f=a=>{s(Ae(n,parseInt(a.target.value,10)))};return u.createElement(C,{container:!0,justifyContent:"space-between",alignItems:"center"},u.createElement(C,{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(C,{item:!0},u.createElement(At,{variant:"standard"},u.createElement(Nt,{value:Re(n),onChange:h,MenuProps:{disablePortal:!0}},i.map((a,y)=>u.createElement(zt,{key:a,value:y},a))))),u.createElement(C,{item:!0},u.createElement(At,{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(C,{item:!0,sx:{padding:"5px"}},u.createElement(ot,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:r,onClick:d},u.createElement(Ee,{color:r?"disabled":"action"}))))},sn=({startOfRange:n,endOfRange:s,disabled:r,highlighted:o,outlined:d,filled:t,onClick:e,onHover:i,value:h})=>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&&d?`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"},h)));var ht;(function(n){n[n.Previous=-1]="Previous",n[n.Next=1]="Next"})(ht||(ht={}));const Wt=n=>{var s;const{helpers:r,handlers:o,value:d,dateRange:t,marker:e,setValue:i,minDate:h,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(C,{container:!0},u.createElement(nn,{date:d,setDate:i,nextDisabled:!O,prevDisabled:!b,onClickPrevious:()=>o.onMonthNavigate(e,ht.Previous),onClickNext:()=>o.onMonthNavigate(e,ht.Next),locale:a}),u.createElement(C,{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(C,{item:!0,container:!0,direction:"column",justifyContent:"space-between",sx:{paddingLeft:"15px",paddingRight:"15px",marginTop:"15px",marginBottom:"20px"}},Ve(Ze(d,a),7).map((w,l)=>u.createElement(C,{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(d,c)||!Et(c,{start:h,end:f}),startOfRange:g&&!T,endOfRange:D&&!T,onClick:()=>o.onDayClick(c),onHover:()=>o.onDayHover(c),value:Le(c)})}))))))},$t=(n,s)=>{const{startDate:r,endDate:o}=n,{startDate:d,endDate:t}=s;return r&&d&&o&&t?B(r,d)&&B(o,t):!1},rn=({ranges:n,setRange:s,selectedRange:r})=>u.createElement(ue,null,n.map((o,d)=>u.createElement(fe,{button:!0,key:d,onClick:()=>s(o),sx:[$t(o,r)&&{backgroundColor:t=>t.palette.primary.dark,color:"primary.contrastText","&:hover":{color:"inherit"}}]},u.createElement(me,{primaryTypographyProps:{variant:"body2",sx:{fontWeight:$t(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:d,firstMonth:t,setFirstMonth:e,secondMonth:i,setSecondMonth:h,setDateRange:f,helpers:a,handlers:y,locale:x}=n,{startDate:b,endDate:O}=r,w=je(i,t)>=2,l={dateRange:r,minDate:o,maxDate:d,helpers:a,handlers:y};return u.createElement(qt,{elevation:5,square:!0},u.createElement(C,{container:!0,direction:"row",wrap:"nowrap"},u.createElement(C,null,u.createElement(rn,{selectedRange:r,ranges:s,setRange:f})),u.createElement(xt,{orientation:"vertical",flexItem:!0}),u.createElement(C,null,u.createElement(C,{container:!0,sx:{padding:"20px 70px"},alignItems:"center"},u.createElement(C,{item:!0,sx:{flex:1,textAlign:"center"}},u.createElement(q,{variant:"subtitle1"},b?bt(b,"dd MMMM yyyy",{locale:x}):"Start Date")),u.createElement(C,{item:!0,sx:{flex:1,textAlign:"center"}},u.createElement(Gt,{color:"action"})),u.createElement(C,{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(C,{container:!0,direction:"row",justifyContent:"center",wrap:"nowrap"},u.createElement(Wt,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(Wt,Object.assign({},l,{value:i,setValue:h,navState:[w,!0],marker:wt.SECOND_MONTH,locale:x}))))))},on=n=>{const s=new Date,{open:r,onChange:o,initialDateRange:d,minDate:t,maxDate:e,definedRanges:i=tn(new Date,n.locale),locale:h}=n,f=Ht(t,K(s,-10)),a=Ht(e,K(s,10)),[y,x]=Qe(d||{},f,a),[b,O]=W.useState(Object.assign({},d)),[w,l]=W.useState(),[c,g]=W.useState(y||s),[D,T]=W.useState(x||_(c,1)),{startDate:v,endDate:P}=b,$=p=>{Q(p,D)&&g(p)},N=p=>{Ft(p,c)&&T(p)},I=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)}},j=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:j,onMonthNavigate:R};return r?W.createElement(an,{dateRange:b,minDate:f,maxDate:a,ranges:i,firstMonth:c,secondMonth:D,setFirstMonth:$,setSecondMonth:N,setDateRange:I,helpers:E,handlers:Y,locale:h}):null},ln=n=>{const{closeOnClickOutside:s,wrapperClassName:r,toggle:o,open:d}=n,t=()=>{s!==!1&&o()},e=i=>(i==null?void 0:i.key)==="Escape"&&t();return u.createElement(J,{sx:{position:"relative"}},d&&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(d,t,e){var i=t.prototype;i.week=function(h){if(h===void 0&&(h=null),h!==null)return this.add(7*(h-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(h){return h===void 0&&(h=null),this.week(h)}}})})(Kt);var hn=Kt.exports;const dn=kt(hn);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,d=/\d/,t=/\d\d/,e=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,h={},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=h[l];return c&&(c.indexOf?c:c.s.concat(c.f))},b=function(l,c){var g,D=h.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:[d,function(l){this.month=3*(l-1)+1}],S:[d,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=h.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=h&&h.formats;for(var D=(l=c.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(L,R,j){var m=j&&j.toUpperCase();return R||g[j]||r[j]||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],$=O[P],N=$&&$[0],I=$&&$[1];D[v]=I?{regex:N,parser:I}:P.replace(/^\[|\]$/g,"")}return function(L){for(var R={},j=0,m=0;j<T;j+=1){var E=D[j];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,$=v.utc,N=v.args;this.$u=$;var I=N[1];if(typeof I=="string"){var L=N[2]===!0,R=N[3]===!0,j=L||R,m=N[2];R&&(m=N[2]),h=this.$locale(),!L&&m&&(h=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),dt=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||(dt||rt?1:ut.getDate()),mt=dt||ut.getFullYear(),at=0;dt&&!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,I,$,g),this.init(),m&&m!==!0&&(this.$L=this.locale(m).$L),j&&P!=this.format(I)&&(this.$d=new Date("")),h={}}else if(I instanceof Array)for(var E=I.length,Y=1;Y<=E;Y+=1){N[1]=I[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,d){o.prototype.isBetween=function(t,e,i,h){var f=d(t),a=d(e),y=(h=h||"()")[0]==="(",x=h[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);A.extend(fn);A.extend(ve);A.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 W,e as vt,g as kt}from"./vendor-react-D-afvo_7.js";import{G as Z,z as ae,I as Pt,ax as It}from"./index-AKILhCB1.js";import{a as A,aq as ie,x as oe}from"./vendor-utils-5TjOM6td.js";import{_ as le}from"./useAsyncRetry-Bmo6a1Zp.js";import{I as ce}from"./iframe-DkAOGH82.js";import{d as he}from"./LaunchOutlined-Cql1NmZZ.js";import{co as Bt,a1 as de,j as M,a3 as J,v as qt,bO as C,ah as xt,T as q,L as ue,z as fe,bn as me,I as ot,bH as At,aP as Nt,al as zt,_ as pe,E as H,aa as ge,am as ye,ao as De,a2 as xe,ad as Me,x as Te,aj as be}from"./vendor-mui-core-xF5F4eT7.js";import{a0 as we,bC as ve,e as ke,b as Se}from"./vendor-arcblock-naCuSDgJ.js";import{d as Oe}from"./ChevronLeft-B6BBtJvf.js";import{d as Ee}from"./ChevronRight-BO6iBxGF.js";import{r as St,t as Vt,i as B,a as K,b as _,p as Ye,c as Ce,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 je,n as bt,o as Q,q as Ft,u as Et,v as Le,w as Re,x as Pe,y as Ie,z as Ae}from"./index-C-D-nCB1.js";import{a as Ne,b as ze}from"./vendor-hooks-BKxTDk_P.js";import{f as Fe}from"./format-error-C0Ke3VXF.js";import{b as He,L as We,D as $e}from"./vendor-mui-x-CSUdon8K.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 d=Vt(o);(r===void 0||r<d||isNaN(Number(d)))&&(r=d)}),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 d=Vt(o);(r===void 0||r>d||isNaN(d.getDate()))&&(r=d)}),r||new Date(NaN)}function _e(n){return St(1,arguments),B(n,Date.now())}var Yt={},Ue=de;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}),d=[];for(let t=r;Q(t,o);)d.push(t),t=Tt(t,1);return d},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(Ce(r))return r}return s},Qe=(n,s,r)=>{const{startDate:o,endDate:d}=n;if(o&&d){const t=Zt([o,s]),e=Jt([d,r]);return[t,Ot(t,e)?_(t,1):e]}return[o,d]},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,d)=>n.getFullYear()-r+d)},nn=({date:n,setDate:s,nextDisabled:r,prevDisabled:o,onClickNext:d,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"],h=a=>{s(Ie(n,parseInt(a.target.value,10)))},f=a=>{s(Ae(n,parseInt(a.target.value,10)))};return u.createElement(C,{container:!0,justifyContent:"space-between",alignItems:"center"},u.createElement(C,{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(C,{item:!0},u.createElement(At,{variant:"standard"},u.createElement(Nt,{value:Re(n),onChange:h,MenuProps:{disablePortal:!0}},i.map((a,y)=>u.createElement(zt,{key:a,value:y},a))))),u.createElement(C,{item:!0},u.createElement(At,{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(C,{item:!0,sx:{padding:"5px"}},u.createElement(ot,{sx:{padding:"10px","&:hover":{background:"none"}},disabled:r,onClick:d},u.createElement(Ee,{color:r?"disabled":"action"}))))},sn=({startOfRange:n,endOfRange:s,disabled:r,highlighted:o,outlined:d,filled:t,onClick:e,onHover:i,value:h})=>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&&d?`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"},h)));var ht;(function(n){n[n.Previous=-1]="Previous",n[n.Next=1]="Next"})(ht||(ht={}));const Wt=n=>{var s;const{helpers:r,handlers:o,value:d,dateRange:t,marker:e,setValue:i,minDate:h,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(C,{container:!0},u.createElement(nn,{date:d,setDate:i,nextDisabled:!O,prevDisabled:!b,onClickPrevious:()=>o.onMonthNavigate(e,ht.Previous),onClickNext:()=>o.onMonthNavigate(e,ht.Next),locale:a}),u.createElement(C,{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(C,{item:!0,container:!0,direction:"column",justifyContent:"space-between",sx:{paddingLeft:"15px",paddingRight:"15px",marginTop:"15px",marginBottom:"20px"}},Ve(Ze(d,a),7).map((w,l)=>u.createElement(C,{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(d,c)||!Et(c,{start:h,end:f}),startOfRange:g&&!T,endOfRange:D&&!T,onClick:()=>o.onDayClick(c),onHover:()=>o.onDayHover(c),value:Le(c)})}))))))},$t=(n,s)=>{const{startDate:r,endDate:o}=n,{startDate:d,endDate:t}=s;return r&&d&&o&&t?B(r,d)&&B(o,t):!1},rn=({ranges:n,setRange:s,selectedRange:r})=>u.createElement(ue,null,n.map((o,d)=>u.createElement(fe,{button:!0,key:d,onClick:()=>s(o),sx:[$t(o,r)&&{backgroundColor:t=>t.palette.primary.dark,color:"primary.contrastText","&:hover":{color:"inherit"}}]},u.createElement(me,{primaryTypographyProps:{variant:"body2",sx:{fontWeight:$t(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:d,firstMonth:t,setFirstMonth:e,secondMonth:i,setSecondMonth:h,setDateRange:f,helpers:a,handlers:y,locale:x}=n,{startDate:b,endDate:O}=r,w=je(i,t)>=2,l={dateRange:r,minDate:o,maxDate:d,helpers:a,handlers:y};return u.createElement(qt,{elevation:5,square:!0},u.createElement(C,{container:!0,direction:"row",wrap:"nowrap"},u.createElement(C,null,u.createElement(rn,{selectedRange:r,ranges:s,setRange:f})),u.createElement(xt,{orientation:"vertical",flexItem:!0}),u.createElement(C,null,u.createElement(C,{container:!0,sx:{padding:"20px 70px"},alignItems:"center"},u.createElement(C,{item:!0,sx:{flex:1,textAlign:"center"}},u.createElement(q,{variant:"subtitle1"},b?bt(b,"dd MMMM yyyy",{locale:x}):"Start Date")),u.createElement(C,{item:!0,sx:{flex:1,textAlign:"center"}},u.createElement(Gt,{color:"action"})),u.createElement(C,{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(C,{container:!0,direction:"row",justifyContent:"center",wrap:"nowrap"},u.createElement(Wt,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(Wt,Object.assign({},l,{value:i,setValue:h,navState:[w,!0],marker:wt.SECOND_MONTH,locale:x}))))))},on=n=>{const s=new Date,{open:r,onChange:o,initialDateRange:d,minDate:t,maxDate:e,definedRanges:i=tn(new Date,n.locale),locale:h}=n,f=Ht(t,K(s,-10)),a=Ht(e,K(s,10)),[y,x]=Qe(d||{},f,a),[b,O]=W.useState(Object.assign({},d)),[w,l]=W.useState(),[c,g]=W.useState(y||s),[D,T]=W.useState(x||_(c,1)),{startDate:v,endDate:P}=b,$=p=>{Q(p,D)&&g(p)},N=p=>{Ft(p,c)&&T(p)},I=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)}},j=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:j,onMonthNavigate:R};return r?W.createElement(an,{dateRange:b,minDate:f,maxDate:a,ranges:i,firstMonth:c,secondMonth:D,setFirstMonth:$,setSecondMonth:N,setDateRange:I,helpers:E,handlers:Y,locale:h}):null},ln=n=>{const{closeOnClickOutside:s,wrapperClassName:r,toggle:o,open:d}=n,t=()=>{s!==!1&&o()},e=i=>(i==null?void 0:i.key)==="Escape"&&t();return u.createElement(J,{sx:{position:"relative"}},d&&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(d,t,e){var i=t.prototype;i.week=function(h){if(h===void 0&&(h=null),h!==null)return this.add(7*(h-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(h){return h===void 0&&(h=null),this.week(h)}}})})(Kt);var hn=Kt.exports;const dn=kt(hn);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,d=/\d/,t=/\d\d/,e=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,h={},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=h[l];return c&&(c.indexOf?c:c.s.concat(c.f))},b=function(l,c){var g,D=h.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:[d,function(l){this.month=3*(l-1)+1}],S:[d,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=h.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=h&&h.formats;for(var D=(l=c.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(L,R,j){var m=j&&j.toUpperCase();return R||g[j]||r[j]||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],$=O[P],N=$&&$[0],I=$&&$[1];D[v]=I?{regex:N,parser:I}:P.replace(/^\[|\]$/g,"")}return function(L){for(var R={},j=0,m=0;j<T;j+=1){var E=D[j];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,$=v.utc,N=v.args;this.$u=$;var I=N[1];if(typeof I=="string"){var L=N[2]===!0,R=N[3]===!0,j=L||R,m=N[2];R&&(m=N[2]),h=this.$locale(),!L&&m&&(h=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),dt=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||(dt||rt?1:ut.getDate()),mt=dt||ut.getFullYear(),at=0;dt&&!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,I,$,g),this.init(),m&&m!==!0&&(this.$L=this.locale(m).$L),j&&P!=this.format(I)&&(this.$d=new Date("")),h={}}else if(I instanceof Array)for(var E=I.length,Y=1;Y<=E;Y+=1){N[1]=I[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,d){o.prototype.isBetween=function(t,e,i,h){var f=d(t),a=d(e),y=(h=h||"()")[0]==="(",x=h[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);A.extend(fn);A.extend(ve);A.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 d;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 A.utc<"u",this.hasTimezonePlugin=()=>typeof A.tz<"u",this.isSame=(t,e,i)=>{const h=this.setTimezone(e,this.getTimezone(t));return t.format(i)===h.format(i)},this.cleanTimezone=t=>{switch(t){case"default":return;case"system":return A.tz.guess();default:return t}},this.createSystemDate=t=>{if(this.rawDayJsInstance)return this.rawDayJsInstance(t);if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const e=A.tz.guess();return e!=="UTC"?A.tz(t,e):A(t)}return A(t)},this.createUTCDate=t=>{if(!this.hasUTCPlugin())throw new Error(Mt);return A.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 A(t).tz(this.cleanTimezone(e),i)},this.getLocaleFormats=()=>{const t=A.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,h;const f=t.tz(this.cleanTimezone(e),!0);if(((i=f.$offset)!=null?i:0)===((h=t.$offset)!=null?h: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 A.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=h=>h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(f,a,y)=>a||y.slice(1));return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(h,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 h=i[i.length-1];i.push(this.addMonths(h,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"),h=e.endOf("month").endOf("week");let f=0,a=i;const y=[];for(;a<h;){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"),h=e.endOf("year"),f=[];let a=i;for(;a<h;)f.push(a),a=this.addYears(a,1);return f},this.getMeridiemText=t=>t==="am"?"AM":"PM",this.rawDayJsInstance=o,this.dayjs=xn((d=this.rawDayJsInstance)!=null?d:A,s),this.locale=s,this.formats=pe({},Dn,r),A.extend(dn)}}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:d}=r,{onmouseout:t}=r,e="interactive"in r?r.interactive:!!d,i=r.spotRadius||2,h=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)-h*2,O=parseFloat(n.attributes.height.value),w=O-a*2-h,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${h} ${v}`;x.forEach((m,E)=>{const Y=E*D+h,p=Ut(l,w,a+i,m);T.push(Object.assign({},o[E],{index:E,x:Y,y:p})),P+=` L ${Y} ${p}`});const $=X("path",{class:"sparkline--line",d:P,fill:"none"}),N=`${P} V ${O} L ${h} ${O} Z`,I=X("path",{class:"sparkline--fill",d:N,stroke:"none"});if(n.appendChild(I),n.appendChild($),!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 j=X("rect",{width:n.attributes.width.value,height:n.attributes.height.value,style:"fill: transparent; stroke: transparent",class:"sparkline--interaction-layer"});n.appendChild(j),j.addEventListener("mouseout",m=>{L.setAttribute("x1",c.toString()),L.setAttribute("x2",c.toString()),R.setAttribute("cx",c.toString()),t&&t(m)}),j.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()),d&&d(m,k)})}function Ct({style:n,title:s,value:r,graph:o,description:d,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,!!d&&M.jsx(J,{display:"flex",sx:{fontSize:12,marginTop:3},color:"text.secondary",children:d})]})]})})}Ct.propTypes={style:H.object,title:H.node,value:H.node,graph:H.node,description:H.any,empty:H.node};Ct.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 k,a3 as p,T,aa as m}from"./vendor-mui-core-xF5F4eT7.js";import{e as A,R as D,b as R,a3 as b,_ as P}from"./vendor-arcblock-HzAExiTd.js";import{H as E}from"./addon-DH34oI6i.js";import{F}from"./fullpage-DLk_Ap1u.js";import{d as I}from"./CheckCircle-CH8SYy4d.js";import{n as _}from"./vendor-hooks-BKxTDk_P.js";import{r as o}from"./vendor-react-D-afvo_7.js";import{u as L,d as W,s as H,a as z,S as B}from"./index-r2Lf0YIw.js";import"./vendor-utils-5TjOM6td.js";import"./QuestionMarkCircle-BvUTckGB.js";function Y(){var i,c,l,d;const{t:s,locale:u}=A(),{api:x,session:h}=L(),{searchParams:g}=new URL(window.location.href),[j,v]=o.useState(!1),n=g.get("transferId"),w=(i=window==null?void 0:window.env)==null?void 0:i.appId,S=o.useCallback(async()=>{const{data:t}=await W.get("/blocklet/transfer",{params:{transferId:n}});return t},[n]),a=_(S),C=o.useCallback(async(t,f)=>{t&&(H(f(t.sessionToken)),z(f(t.refreshToken))),await h.refresh(),v(!0)},[]);if(a.loading)return e.jsx(k,{});if(a.error)return e.jsx(q,{children:e.jsx(D,{status:"404",title:(l=(c=a.error)==null?void 0:c.response)==null?void 0:l.data,description:""})});const y=a.data.status==="success";let r;return y||j?r=e.jsxs(e.Fragment,{children:[e.jsx(N,{children:e.jsx(E,{SessionContext:B})}),e.jsx(p,{pt:1,color:"success.main",children:e.jsx(I,{style:{fontSize:80}})}),e.jsx(T,{my:4,variant:"h5",children:s("team.transferApp.successTitle")}),e.jsx("a",{href:`${R.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,children:e.jsx(b,{variant:"contained",children:s("team.transferApp.visitDashboard")})})]}):r=e.jsx(P,{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:n,appDid:w}}),e.jsx(F,{did:(d=window.blocklet)==null?void 0:d.appPid,children:e.jsx(p,{sx:{width:"560px",maxWidth:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:r})})}const N=m.div`
1
+ import{j as e,a2 as k,a3 as p,T,aa as m}from"./vendor-mui-core-xF5F4eT7.js";import{e as A,R as D,b as R,a3 as b,_ as P}from"./vendor-arcblock-naCuSDgJ.js";import{H as E}from"./addon-DJRfOF39.js";import{F}from"./fullpage-ClwEgpoB.js";import{d as I}from"./CheckCircle-fnIa_Tjy.js";import{n as _}from"./vendor-hooks-BKxTDk_P.js";import{r as o}from"./vendor-react-D-afvo_7.js";import{u as L,d as W,s as H,a as z,S as B}from"./index-AKILhCB1.js";import"./vendor-utils-5TjOM6td.js";import"./QuestionMarkCircle-BvUTckGB.js";function Y(){var i,c,l,d;const{t:s,locale:u}=A(),{api:x,session:h}=L(),{searchParams:g}=new URL(window.location.href),[j,v]=o.useState(!1),n=g.get("transferId"),w=(i=window==null?void 0:window.env)==null?void 0:i.appId,S=o.useCallback(async()=>{const{data:t}=await W.get("/blocklet/transfer",{params:{transferId:n}});return t},[n]),a=_(S),C=o.useCallback(async(t,f)=>{t&&(H(f(t.sessionToken)),z(f(t.refreshToken))),await h.refresh(),v(!0)},[]);if(a.loading)return e.jsx(k,{});if(a.error)return e.jsx(q,{children:e.jsx(D,{status:"404",title:(l=(c=a.error)==null?void 0:c.response)==null?void 0:l.data,description:""})});const y=a.data.status==="success";let r;return y||j?r=e.jsxs(e.Fragment,{children:[e.jsx(N,{children:e.jsx(E,{SessionContext:B})}),e.jsx(p,{pt:1,color:"success.main",children:e.jsx(I,{style:{fontSize:80}})}),e.jsx(T,{my:4,variant:"h5",children:s("team.transferApp.successTitle")}),e.jsx("a",{href:`${R.WELLKNOWN_SERVICE_PATH_PREFIX}/admin`,children:e.jsx(b,{variant:"contained",children:s("team.transferApp.visitDashboard")})})]}):r=e.jsx(P,{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:n,appDid:w}}),e.jsx(F,{did:(d=window.blocklet)==null?void 0:d.appPid,children:e.jsx(p,{sx:{width:"560px",maxWidth:"100%",height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:r})})}const N=m.div`
2
2
  position: fixed;
3
3
  top: 16px;
4
4
  right: 16px;
@@ -1 +1 @@
1
- import{j as i,a3 as a,am as C,an as w,ao as k,ap as E,T as L}from"./vendor-mui-core-xF5F4eT7.js";import{f as R,L as v}from"./vendor-react-D-afvo_7.js";import{e as F,a3 as u,j as t,B as P,b as d}from"./vendor-arcblock-HzAExiTd.js";import{a as T,u as f,k as S}from"./vendor-hooks-BKxTDk_P.js";import{x as m}from"./vendor-utils-5TjOM6td.js";import{u as I}from"./index-r2Lf0YIw.js";function A(){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}),x=f(()=>{window.close(),window.location.replace("/")}),p=f(async()=>{try{e.loading=!0;const{data:o}=await b.post("/api/user/notification/unsubscribe",{token:r});o.success===!0?(e.finished=!0,t.success(n("notification.unsubscribeSucceed"))):(e.finished=!1,t.error(n("notification.unsubscribeFailed")))}catch(o){e.finished=!1,t.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(a,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",minHeight:"100vh",backgroundColor:"#fafafa"},children:i.jsxs(a,{sx:{width:"450px",maxWidth:"90%"},children:[i.jsx(a,{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:x,children:n("common.close")}),e.error||e.finished?null:i.jsx(u,{size:"small",color:"primary",variant:"contained",onClick:p,loading:e.loading,children:n("notification.unsubscribe")})]})]}),i.jsxs(L,{variant:"body2",color:"gray",children:["Copyright © ",j," ",g]})]})})}export{A as default};
1
+ import{j as i,a3 as a,am as y,an as C,ao as k,ap as E,T as L}from"./vendor-mui-core-xF5F4eT7.js";import{f as R,L as v}from"./vendor-react-D-afvo_7.js";import{e as F,a3 as u,j as t,w as P,b as d}from"./vendor-arcblock-naCuSDgJ.js";import{a as T,u as f,k as S}from"./vendor-hooks-BKxTDk_P.js";import{x as m}from"./vendor-utils-5TjOM6td.js";import{u as I}from"./index-AKILhCB1.js";function A(){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}),x=f(()=>{window.close(),window.location.replace("/")}),p=f(async()=>{try{e.loading=!0;const{data:o}=await b.post("/api/user/notification/unsubscribe",{token:r});o.success===!0?(e.finished=!0,t.success(n("notification.unsubscribeSucceed"))):(e.finished=!1,t.error(n("notification.unsubscribeFailed")))}catch(o){e.finished=!1,t.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:w}=o;w*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(a,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",minHeight:"100vh",backgroundColor:"#fafafa"},children:i.jsxs(a,{sx:{width:"450px",maxWidth:"90%"},children:[i.jsx(a,{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(y,{variant:"outlined",sx:{my:1},children:[i.jsx(C,{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:x,children:n("common.close")}),e.error||e.finished?null:i.jsx(u,{size:"small",color:"primary",variant:"contained",onClick:p,loading:e.loading,children:n("notification.unsubscribe")})]})]}),i.jsxs(L,{variant:"body2",color:"gray",children:["Copyright © ",j," ",g]})]})})}export{A as default};
@@ -1 +1 @@
1
- import{r as S}from"./vendor-react-D-afvo_7.js";import{ar as y}from"./vendor-arcblock-HzAExiTd.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]},b=d.default=z;export{b as _};
1
+ import{r as S}from"./vendor-react-D-afvo_7.js";import{ar as y}from"./vendor-arcblock-naCuSDgJ.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]},b=d.default=z;export{b as _};
@@ -1,4 +1,4 @@
1
- import{E as s,j as t,a3 as I,x as B,bG as oe,aa as q,bH as ne,bI as ae,aP as se,bJ as ie,M as re,al as A,t as le,a2 as W}from"./vendor-mui-core-xF5F4eT7.js";import{r as d,u as K,l as ce}from"./vendor-react-D-afvo_7.js";import{a2 as N,e as de,H as ue,ao as pe,b as fe}from"./vendor-arcblock-HzAExiTd.js";import{d as T}from"./vendor-hooks-BKxTDk_P.js";import{x as me}from"./vendor-utils-5TjOM6td.js";import{N as ge}from"./list-BwH5q_Zc.js";import{B as he}from"./bundle-avatar-Cv2R2iWI.js";import{R as xe}from"./index-r2Lf0YIw.js";import"./index-CHFvfli7.js";import"./index-C-yw0A3M.js";import"./relative-time-Bt6RtG4o.js";import"./InfoOutlined-QBw5AmWP.js";U.propTypes={theme:s.string,type:s.oneOf(["button","line"]),onSelectType:s.func,extra:s.node,loading:s.bool,currentTab:s.oneOf(["info","success","warning","error",""])};function U({theme:f="dark",type:i="button",onSelectType:m,extra:g=void 0,currentTab:h="",loading:l=!1,...x}){const u=[{label:"All",value:""},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Warning",value:"warning"},{label:"Error",value:"error"}],r=e=>{(e!==h||!l)&&m(e)},b=d.useMemo(()=>{const e={width:"100%",bgcolor:f==="dark"?"#F9FAFB":"",overflowY:"auto",paddingTop:"5px",whiteSpace:"nowrap",borderRadius:0,display:"flex",justifyContent:"space-between",alignItems:"flex-end",flexWrap:"wrap",gap:"8px"};return i==="line"?Object.assign(e,{}):e},[i,f]),v=(e,c,p)=>t.jsx(B,{disabled:l,onClick:()=>r(e.value),className:`profile-button ${c?"active":""}`,...x,children:e.label},e.value||p),o=(e,c,p)=>t.jsx(B,{variant:"text",disabled:l,onClick:()=>r(e.value),className:`profile-line-button ${c?"active":""}`,...x,children:e.label},e.value||p);return t.jsxs(I,{className:"severity-tabs",sx:b,children:[t.jsx("div",{style:x.isMd?{flex:"0 0 100%"}:{},children:u==null?void 0:u.map((e,c)=>{const p=h===(e==null?void 0:e.value);return i==="line"?t.jsx(d.Fragment,{children:o(e,p,c)},e.value||c):t.jsx(d.Fragment,{children:v(e,p,c)},e.value||c)})}),g]})}V.propTypes={paging:s.objectOf(s.any).isRequired,loading:s.bool.isRequired,onChange:s.func.isRequired};function V({loading:f,paging:i,onChange:m}){const{t:g}=d.useContext(N);if(i.pageCount<=0)return null;const h=(u,r)=>{m({page:r+1})},l=u=>{const r=Number(u.target.value);m({page:1,pageSize:r})},x=i.page-1<=0?0:i.page-1;return t.jsx(I,{mt:2,display:"flex",justifyContent:"flex-end",children:t.jsx(oe,{disabled:f,count:i.total,page:x,rowsPerPageOptions:[10,20,50,100],labelRowsPerPage:g("pagination.rowsPerPage"),labelDisplayedRows:({from:u,to:r,count:b})=>`${u}–${r} / ${b!==-1?b:`${g()}more than ${r}`}`,rowsPerPage:i.pageSize,onPageChange:h,onRowsPerPageChange:l})})}const be=d.memo(V);_.propTypes={selectedId:s.string,blockletMap:s.object,onSelectChange:s.func,loading:s.bool,filterType:s.oneOf(["component","entity"])};const we=q.div`
1
+ import{E as s,j as t,a3 as I,x as B,bG as oe,aa as q,bH as ne,bI as ae,aP as se,bJ as ie,M as re,al as A,t as le,a2 as W}from"./vendor-mui-core-xF5F4eT7.js";import{r as d,u as K,l as ce}from"./vendor-react-D-afvo_7.js";import{a2 as N,e as de,H as ue,ao as pe,b as fe}from"./vendor-arcblock-naCuSDgJ.js";import{d as T}from"./vendor-hooks-BKxTDk_P.js";import{x as me}from"./vendor-utils-5TjOM6td.js";import{N as ge}from"./list-QwzSO7Cs.js";import{B as he}from"./bundle-avatar-CcKbW8ZA.js";import{R as xe}from"./index-AKILhCB1.js";import"./index-CHFvfli7.js";import"./index-BQD1ktrC.js";import"./relative-time-IDiRzYUd.js";import"./InfoOutlined-BgLmQpjA.js";U.propTypes={theme:s.string,type:s.oneOf(["button","line"]),onSelectType:s.func,extra:s.node,loading:s.bool,currentTab:s.oneOf(["info","success","warning","error",""])};function U({theme:f="dark",type:i="button",onSelectType:m,extra:g=void 0,currentTab:h="",loading:l=!1,...x}){const u=[{label:"All",value:""},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Warning",value:"warning"},{label:"Error",value:"error"}],r=e=>{(e!==h||!l)&&m(e)},b=d.useMemo(()=>{const e={width:"100%",bgcolor:f==="dark"?"#F9FAFB":"",overflowY:"auto",paddingTop:"5px",whiteSpace:"nowrap",borderRadius:0,display:"flex",justifyContent:"space-between",alignItems:"flex-end",flexWrap:"wrap",gap:"8px"};return i==="line"?Object.assign(e,{}):e},[i,f]),v=(e,c,p)=>t.jsx(B,{disabled:l,onClick:()=>r(e.value),className:`profile-button ${c?"active":""}`,...x,children:e.label},e.value||p),o=(e,c,p)=>t.jsx(B,{variant:"text",disabled:l,onClick:()=>r(e.value),className:`profile-line-button ${c?"active":""}`,...x,children:e.label},e.value||p);return t.jsxs(I,{className:"severity-tabs",sx:b,children:[t.jsx("div",{style:x.isMd?{flex:"0 0 100%"}:{},children:u==null?void 0:u.map((e,c)=>{const p=h===(e==null?void 0:e.value);return i==="line"?t.jsx(d.Fragment,{children:o(e,p,c)},e.value||c):t.jsx(d.Fragment,{children:v(e,p,c)},e.value||c)})}),g]})}V.propTypes={paging:s.objectOf(s.any).isRequired,loading:s.bool.isRequired,onChange:s.func.isRequired};function V({loading:f,paging:i,onChange:m}){const{t:g}=d.useContext(N);if(i.pageCount<=0)return null;const h=(u,r)=>{m({page:r+1})},l=u=>{const r=Number(u.target.value);m({page:1,pageSize:r})},x=i.page-1<=0?0:i.page-1;return t.jsx(I,{mt:2,display:"flex",justifyContent:"flex-end",children:t.jsx(oe,{disabled:f,count:i.total,page:x,rowsPerPageOptions:[10,20,50,100],labelRowsPerPage:g("pagination.rowsPerPage"),labelDisplayedRows:({from:u,to:r,count:b})=>`${u}–${r} / ${b!==-1?b:`${g()}more than ${r}`}`,rowsPerPage:i.pageSize,onPageChange:h,onRowsPerPageChange:l})})}const be=d.memo(V);_.propTypes={selectedId:s.string,blockletMap:s.object,onSelectChange:s.func,loading:s.bool,filterType:s.oneOf(["component","entity"])};const we=q.div`
2
2
  display: flex;
3
3
  justify-items: flex-start;
4
4
  align-items: center;
@@ -1 +1 @@
1
- import{x as A}from"./vendor-utils-5TjOM6td.js";import{b as E}from"./base32-CwwDjweV.js";import{b as r}from"./vendor-arcblock-HzAExiTd.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
+ import{x as A}from"./vendor-utils-5TjOM6td.js";import{b as E}from"./base32-BMSr-Oor.js";import{b as r}from"./vendor-arcblock-naCuSDgJ.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 l,j as d}from"./vendor-mui-core-xF5F4eT7.js";import{a0 as h,b as u}from"./vendor-arcblock-HzAExiTd.js";import{g as c}from"./vendor-react-D-afvo_7.js";import{ac as p,a6 as P,h as x}from"./index-r2Lf0YIw.js";var f={},v=l;Object.defineProperty(f,"__esModule",{value:!0});var E=f.default=void 0,R=v(h()),g=d;E=f.default=(0,R.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");const s=p;var m=(e,t)=>s(e)===s(t);const _=c(m),y=(e,t)=>{if(e.type===u.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===u.ROUTING_RULE_TYPES.BLOCKLET&&!e.did)return new Error(t("router.validation.didRequired"));return null},q=(e,t)=>{const r=y(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")))},T=({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""},C=({params:e,blocklets:t,blocklet:r,locale:i="en"})=>{if(r&&T({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(a=>a.meta.did===e.did);if(!n)return"";const o=n.meta.interfaces.find(a=>a.type==="web");return o&&o.prefix!==x.BLOCKLET_DYNAMIC_PATH_PREFIX&&e.pathPrefix!==o.prefix?{zh:`该 blocklet 只能挂载在 ${o.prefix}`,en:`This blocklet can only be mounted on ${o.prefix}`}[i]:""},$=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{q as a,E as d,T as e,$ as p,C as v};
1
+ import{a1 as l,j as d}from"./vendor-mui-core-xF5F4eT7.js";import{a0 as h,b as u}from"./vendor-arcblock-naCuSDgJ.js";import{g as c}from"./vendor-react-D-afvo_7.js";import{ac as p,a6 as P,h as x}from"./index-AKILhCB1.js";var f={},v=l;Object.defineProperty(f,"__esModule",{value:!0});var E=f.default=void 0,R=v(h()),g=d;E=f.default=(0,R.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");const s=p;var m=(e,t)=>s(e)===s(t);const _=c(m),y=(e,t)=>{if(e.type===u.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===u.ROUTING_RULE_TYPES.BLOCKLET&&!e.did)return new Error(t("router.validation.didRequired"));return null},q=(e,t)=>{const r=y(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")))},T=({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""},C=({params:e,blocklets:t,blocklet:r,locale:i="en"})=>{if(r&&T({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(a=>a.meta.did===e.did);if(!n)return"";const o=n.meta.interfaces.find(a=>a.type==="web");return o&&o.prefix!==x.BLOCKLET_DYNAMIC_PATH_PREFIX&&e.pathPrefix!==o.prefix?{zh:`该 blocklet 只能挂载在 ${o.prefix}`,en:`This blocklet can only be mounted on ${o.prefix}`}[i]:""},$=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{q as a,E as d,T as e,$ as p,C as v};