alistgo-alist-web 3.56.0 → 3.58.0
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/dist/assets/{2fa-46b8256b.js → 2fa-6af218a3.js} +1 -1
- package/dist/assets/{2fa-legacy.398e8e78.js → 2fa-legacy.907b4543.js} +1 -1
- package/dist/assets/{About-e47182af.js → About-a77d8d20.js} +1 -1
- package/dist/assets/{About-legacy.1289a3bb.js → About-legacy.faf2735b.js} +1 -1
- package/dist/assets/{AddLabelDialog-0c30515a.js → AddLabelDialog-cfd2cf2e.js} +1 -1
- package/dist/assets/{AddLabelDialog-legacy.cc57656a.js → AddLabelDialog-legacy.fefaa5a7.js} +1 -1
- package/dist/assets/{AddOrEdit-6d416fd2.js → AddOrEdit-4ff0efa1.js} +1 -1
- package/dist/assets/{AddOrEdit-e6bf2264.js → AddOrEdit-5e5ab894.js} +1 -1
- package/dist/assets/{AddOrEdit-9d27739a.js → AddOrEdit-8aefb31c.js} +1 -1
- package/dist/assets/{AddOrEdit-1124188f.js → AddOrEdit-c19402e7.js} +1 -1
- package/dist/assets/{AddOrEdit-legacy.73708fb8.js → AddOrEdit-legacy.464f7017.js} +1 -1
- package/dist/assets/{AddOrEdit-legacy.8c9d1f76.js → AddOrEdit-legacy.784d4721.js} +1 -1
- package/dist/assets/{AddOrEdit-legacy.0f9dd018.js → AddOrEdit-legacy.b4375806.js} +1 -1
- package/dist/assets/{AddOrEdit-legacy.abdbec5f.js → AddOrEdit-legacy.fd09620e.js} +1 -1
- package/dist/assets/Common-69a0fb8a.js +1 -0
- package/dist/assets/{Common-legacy.d3b29529.js → Common-legacy.9f60f3ff.js} +1 -1
- package/dist/assets/{Copy-27ccc5bb.js → Copy-b2ebb023.js} +1 -1
- package/dist/assets/{Copy-legacy.4726f176.js → Copy-legacy.9aa68355.js} +1 -1
- package/dist/assets/{Decompress-487355e7.js → Decompress-c3a4d3ba.js} +1 -1
- package/dist/assets/{Decompress-legacy.c2c88fbd.js → Decompress-legacy.7613de66.js} +1 -1
- package/dist/assets/DeletePopover-2fb0138c.js +1 -0
- package/dist/assets/DeletePopover-legacy.3bef252d.js +1 -0
- package/dist/assets/{EditLabelDialog-e1c497f9.js → EditLabelDialog-f8fe6c1e.js} +1 -1
- package/dist/assets/{EditLabelDialog-legacy.4297e407.js → EditLabelDialog-legacy.d78db030.js} +1 -1
- package/dist/assets/{File-d8b1045a.js → File-b3d6c366.js} +6 -6
- package/dist/assets/{File-legacy.42c11a63.js → File-legacy.d850788a.js} +1 -1
- package/dist/assets/{Folder-015eb94d.js → Folder-732f0c1c.js} +15 -15
- package/dist/assets/Folder-legacy.e17aec55.js +29 -0
- package/dist/assets/{FolderTree-6f54b0b0.js → FolderTree-3887d06d.js} +1 -1
- package/dist/assets/{FolderTree-legacy.eeec4df2.js → FolderTree-legacy.5e170387.js} +1 -1
- package/dist/assets/Grid-a9dd5e14.js +1 -0
- package/dist/assets/{Grid-legacy.304bdbd6.js → Grid-legacy.d85788e8.js} +1 -1
- package/dist/assets/{GridItem-e11988da.js → GridItem-5727336e.js} +1 -1
- package/dist/assets/{GridItem-legacy.92e61601.js → GridItem-legacy.5c1e5d23.js} +1 -1
- package/dist/assets/{ImageWithError-335988a8.js → ImageWithError-99f355a5.js} +1 -1
- package/dist/assets/{ImageWithError-legacy.3b16de13.js → ImageWithError-legacy.fd49b607.js} +1 -1
- package/dist/assets/{Images-12aaeeaa.js → Images-7f43bcbb.js} +1 -1
- package/dist/assets/{Images-legacy.08b105c3.js → Images-legacy.b59e53c9.js} +1 -1
- package/dist/assets/{Layout-66d6a6fd.js → Layout-8a0a2c68.js} +6 -6
- package/dist/assets/Layout-legacy.53b536f3.js +1 -0
- package/dist/assets/{List-d289fe27.js → List-2c510900.js} +2 -2
- package/dist/assets/{List-legacy.0b19a233.js → List-legacy.024b493f.js} +1 -1
- package/dist/assets/{Messenger-b99aa3a0.js → Messenger-e8b40e7b.js} +1 -1
- package/dist/assets/{Messenger-legacy.f7d5c274.js → Messenger-legacy.04676d0d.js} +1 -1
- package/dist/assets/Metas-3d43d367.js +1 -0
- package/dist/assets/{Metas-legacy.047fb1e9.js → Metas-legacy.2f0fcedf.js} +1 -1
- package/dist/assets/{Other-db3bfec1.js → Other-8551d8de.js} +1 -1
- package/dist/assets/{Other-legacy.ca03d7c1.js → Other-legacy.20edfa68.js} +1 -1
- package/dist/assets/{PackageDownload-8b8471d2.js → PackageDownload-8e4c014c.js} +1 -1
- package/dist/assets/{PackageDownload-legacy.6d567c0f.js → PackageDownload-legacy.31cacc88.js} +1 -1
- package/dist/assets/{Paginator-6b8b297f.js → Paginator-7e0484cf.js} +1 -1
- package/dist/assets/Paginator-legacy.99dfcb34.js +1 -0
- package/dist/assets/{Password-eb061964.js → Password-7af2ddb0.js} +1 -1
- package/dist/assets/{Password-legacy.471d11cd.js → Password-legacy.7429d55d.js} +1 -1
- package/dist/assets/{PermissionForm-4251595a.js → PermissionForm-dbcae6ec.js} +1 -1
- package/dist/assets/{PermissionForm-legacy.90ad121a.js → PermissionForm-legacy.387c533f.js} +1 -1
- package/dist/assets/{Profile-3fecd1ab.js → Profile-5a1c61a3.js} +1 -1
- package/dist/assets/{Profile-legacy.8c4b70ea.js → Profile-legacy.9bc82314.js} +1 -1
- package/dist/assets/ResponsiveGrid-31af9f08.js +1 -0
- package/dist/assets/{ResponsiveGrid-legacy.6c0954c3.js → ResponsiveGrid-legacy.4a47f200.js} +1 -1
- package/dist/assets/{Role-a54a8031.js → Role-a9b5b6ce.js} +1 -1
- package/dist/assets/{Role-legacy.4362cd27.js → Role-legacy.ddf3de28.js} +1 -1
- package/dist/assets/{S3-3368841d.js → S3-0309c7f4.js} +1 -1
- package/dist/assets/{S3-legacy.88de8a46.js → S3-legacy.bc65e94c.js} +1 -1
- package/dist/assets/{S3Transition-0528c963.js → S3Transition-b63e2297.js} +1 -1
- package/dist/assets/{S3Transition-legacy.288c6def.js → S3Transition-legacy.5529517f.js} +1 -1
- package/dist/assets/{SettingItem-b001fb21.js → SettingItem-e66b06f6.js} +1 -1
- package/dist/assets/{SettingItem-legacy.30070d20.js → SettingItem-legacy.4f3189c6.js} +1 -1
- package/dist/assets/{Storages-71961af9.js → Storages-82415e4f.js} +1 -1
- package/dist/assets/{Storages-legacy.62a6c6f5.js → Storages-legacy.098951ce.js} +1 -1
- package/dist/assets/{Tag-28e6c753.js → Tag-5a3c9435.js} +1 -1
- package/dist/assets/{Tag-legacy.02ba977c.js → Tag-legacy.f31f0280.js} +1 -1
- package/dist/assets/{Tasks-955b8122.js → Tasks-db5b0556.js} +1 -1
- package/dist/assets/{Tasks-legacy.db2a67ab.js → Tasks-legacy.812cc101.js} +1 -1
- package/dist/assets/Upload-4dd9ff2b.js +1 -0
- package/dist/assets/{Upload-2acc2769.js → Upload-ecc1eabc.js} +1 -1
- package/dist/assets/{Upload-legacy.63a456fd.js → Upload-legacy.44ea25f0.js} +1 -1
- package/dist/assets/{Upload-legacy.2aae06b6.js → Upload-legacy.8eff8935.js} +1 -1
- package/dist/assets/{Users-d61fcb09.js → Users-9d91e932.js} +1 -1
- package/dist/assets/{Users-legacy.351af943.js → Users-legacy.3eb1dc56.js} +1 -1
- package/dist/assets/{Wether-efd806ad.js → Wether-2b2bf57f.js} +1 -1
- package/dist/assets/{Wether-legacy.99a49486.js → Wether-legacy.13620d74.js} +1 -1
- package/dist/assets/{aliyun_office-f185e970.js → aliyun_office-697a57a5.js} +1 -1
- package/dist/assets/{aliyun_office-legacy.bb247542.js → aliyun_office-legacy.e6722692.js} +1 -1
- package/dist/assets/{aliyun_video-fefe8145.js → aliyun_video-c27cf614.js} +1 -1
- package/dist/assets/{aliyun_video-legacy.5de29048.js → aliyun_video-legacy.abcde17f.js} +1 -1
- package/dist/assets/{archive-cd361e2c.js → archive-b2690360.js} +1 -1
- package/dist/assets/{archive-legacy.1dba1a02.js → archive-legacy.8dacbbc3.js} +1 -1
- package/dist/assets/{asciinema-9a29aaad.js → asciinema-064c7ff1.js} +1 -1
- package/dist/assets/{asciinema-legacy.f47a54ab.js → asciinema-legacy.c13c9614.js} +1 -1
- package/dist/assets/{audio-4a4cbc3a.js → audio-55f6bc9a.js} +1 -1
- package/dist/assets/{audio-legacy.e6590bf5.js → audio-legacy.db05eda2.js} +1 -1
- package/dist/assets/{backup-restore-7a7d8f68.js → backup-restore-58c314b3.js} +1 -1
- package/dist/assets/{backup-restore-legacy.9aaed952.js → backup-restore-legacy.499894c2.js} +1 -1
- package/dist/assets/doubao-c88f8d6b.js +1 -0
- package/dist/assets/doubao-legacy.16698426.js +1 -0
- package/dist/assets/entry-10574124.js +5 -0
- package/dist/assets/entry-28a4dcf8.js +5 -0
- package/dist/assets/entry-4d116535.js +5 -0
- package/dist/assets/entry-66cc462c.js +6 -0
- package/dist/assets/entry-7bc57540.js +5 -0
- package/dist/assets/entry-80f7b791.js +8 -0
- package/dist/assets/entry-b68756c5.js +9 -0
- package/dist/assets/entry-c1e55c5f.js +5 -0
- package/dist/assets/entry-eb7f297b.js +5 -0
- package/dist/assets/entry-effbda2b.js +5 -0
- package/dist/assets/entry-legacy.7f16caac.js +1 -0
- package/dist/assets/entry-legacy.8df6d0e2.js +1 -0
- package/dist/assets/entry-legacy.9c292a2e.js +1 -0
- package/dist/assets/entry-legacy.c2bb158f.js +1 -0
- package/dist/assets/entry-legacy.c93f93c0.js +1 -0
- package/dist/assets/entry-legacy.cc0709cb.js +1 -0
- package/dist/assets/entry-legacy.cd069a40.js +1 -0
- package/dist/assets/entry-legacy.cdc0c87c.js +1 -0
- package/dist/assets/entry-legacy.d65c09d6.js +1 -0
- package/dist/assets/entry-legacy.faa972f5.js +1 -0
- package/dist/assets/{helper-edad9708.js → helper-18247784.js} +1 -1
- package/dist/assets/{helper-35b1dcfb.js → helper-699382d8.js} +1 -1
- package/dist/assets/{helper-legacy.a9f06abb.js → helper-legacy.91469451.js} +1 -1
- package/dist/assets/{helper-legacy.f89e2639.js → helper-legacy.fbbd18fe.js} +1 -1
- package/dist/assets/{hls-d6b9fc1a.js → hls-bddce1bf.js} +1 -1
- package/dist/assets/{hls-legacy.ae2e1dfe.js → hls-legacy.4d1b84ea.js} +1 -1
- package/dist/assets/html-13d85ff2.js +1 -0
- package/dist/assets/{html-legacy.3d2480dd.js → html-legacy.f5fc062e.js} +1 -1
- package/dist/assets/{image-a16903d2.js → image-28b6515c.js} +1 -1
- package/dist/assets/{image-legacy.80edfdc1.js → image-legacy.e92b8aa4.js} +1 -1
- package/dist/assets/{index-c1c6ff9d.js → index-06a2e1d1.js} +1 -1
- package/dist/assets/{index-13b290a7.js → index-0ac33e44.js} +43 -43
- package/dist/assets/{index-5b99d24c.js → index-0fbb7175.js} +1 -1
- package/dist/assets/{index-870b387c.js → index-22c5d5df.js} +1 -1
- package/dist/assets/{index-4ce3d2a1.js → index-2a7c71fa.js} +1 -1
- package/dist/assets/{index-69644529.js → index-62f37b04.js} +1 -1
- package/dist/assets/{index-d9416289.js → index-904bdd79.js} +1 -1
- package/dist/assets/{index-8034ec29.js → index-d1b62002.js} +3 -3
- package/dist/assets/{index-864d4e91.js → index-fc7cec23.js} +1 -1
- package/dist/assets/{index-legacy.e98cf2bb.js → index-legacy.03386895.js} +1 -1
- package/dist/assets/{index-legacy.9842d021.js → index-legacy.143be82f.js} +1 -1
- package/dist/assets/{index-legacy.5b54d5e4.js → index-legacy.2a3d5492.js} +1 -1
- package/dist/assets/{index-legacy.de03403a.js → index-legacy.2ff748cd.js} +3 -3
- package/dist/assets/{index-legacy.d760057f.js → index-legacy.854fefde.js} +1 -1
- package/dist/assets/{index-legacy.0f46aa15.js → index-legacy.b4a7f69e.js} +1 -1
- package/dist/assets/{index-legacy.52c6160a.js → index-legacy.bf3a5b10.js} +1 -1
- package/dist/assets/{index-legacy.62c06d64.js → index-legacy.eace8bff.js} +3 -3
- package/dist/assets/{index-legacy.43a11866.js → index-legacy.f9a28a3c.js} +1 -1
- package/dist/assets/{indexes-7cc6998a.js → indexes-3cfa432d.js} +2 -2
- package/dist/assets/{indexes-legacy.c057d4aa.js → indexes-legacy.8515e724.js} +1 -1
- package/dist/assets/{ipa-99035991.js → ipa-3f466a03.js} +1 -1
- package/dist/assets/{ipa-legacy.5f9016d0.js → ipa-legacy.16744579.js} +1 -1
- package/dist/assets/{management-c5058b09.js → management-b892a416.js} +1 -1
- package/dist/assets/{management-legacy.dac45ae8.js → management-legacy.f1e9aecd.js} +1 -1
- package/dist/assets/{markdown-68e1268c.js → markdown-92c0c4f2.js} +1 -1
- package/dist/assets/{markdown-legacy.345b4c89.js → markdown-legacy.04b5a6ef.js} +1 -1
- package/dist/assets/markdown_with_word_wrap-bfe8724f.js +1 -0
- package/dist/assets/{markdown_with_word_wrap-legacy.bfb81d65.js → markdown_with_word_wrap-legacy.d3e14b82.js} +1 -1
- package/dist/assets/mySession-7d61c8ce.js +1 -0
- package/dist/assets/{mySession-legacy.1dc68111.js → mySession-legacy.abcecfb8.js} +1 -1
- package/dist/assets/{offline_download-827377f8.js → offline_download-551ee1f9.js} +1 -1
- package/dist/assets/{offline_download-legacy.8be0325e.js → offline_download-legacy.92950672.js} +1 -1
- package/dist/assets/{plist-a2abd5f6.js → plist-1c039eca.js} +1 -1
- package/dist/assets/{plist-legacy.48a58efc.js → plist-legacy.ee94fbae.js} +1 -1
- package/dist/assets/{style-a91f2fe1.js → style-f5d5f2e6.js} +1 -1
- package/dist/assets/{style-legacy.92f43969.js → style-legacy.070d5172.js} +1 -1
- package/dist/assets/{text-editor-4cdde982.js → text-editor-42221068.js} +1 -1
- package/dist/assets/{text-editor-legacy.c89be03c.js → text-editor-legacy.bd233d8f.js} +1 -1
- package/dist/assets/url-c75f0407.js +1 -0
- package/dist/assets/url-legacy.6a4f78af.js +1 -0
- package/dist/assets/{useTitle-efd03a2a.js → useTitle-98cd4016.js} +1 -1
- package/dist/assets/{useTitle-legacy.771fa6e1.js → useTitle-legacy.80f4343f.js} +1 -1
- package/dist/assets/{video-e846152c.js → video-84ddfc5a.js} +1 -1
- package/dist/assets/{video-legacy.3e8def69.js → video-legacy.08f07630.js} +1 -1
- package/dist/assets/{video360-7ff50eab.js → video360-2b96e18e.js} +1 -1
- package/dist/assets/{video360-legacy.53143d53.js → video360-legacy.185dac77.js} +1 -1
- package/dist/assets/{video_box-06f63821.js → video_box-fa1e5e08.js} +1 -1
- package/dist/assets/{video_box-legacy.95767478.js → video_box-legacy.b500b361.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/Common-972fe675.js +0 -1
- package/dist/assets/DeletePopover-14667228.js +0 -1
- package/dist/assets/DeletePopover-legacy.eea88399.js +0 -1
- package/dist/assets/Folder-legacy.4311946a.js +0 -29
- package/dist/assets/Grid-9188d13c.js +0 -1
- package/dist/assets/Layout-legacy.b2082e61.js +0 -1
- package/dist/assets/Metas-73ad14ea.js +0 -1
- package/dist/assets/Paginator-legacy.0e75f264.js +0 -1
- package/dist/assets/ResponsiveGrid-35b6c8ed.js +0 -1
- package/dist/assets/Upload-dac85921.js +0 -1
- package/dist/assets/entry-125255d4.js +0 -9
- package/dist/assets/entry-1f8750d3.js +0 -5
- package/dist/assets/entry-2dcf102b.js +0 -5
- package/dist/assets/entry-40c0efae.js +0 -6
- package/dist/assets/entry-89a5b151.js +0 -5
- package/dist/assets/entry-c149acf6.js +0 -5
- package/dist/assets/entry-c9079448.js +0 -5
- package/dist/assets/entry-e8ead902.js +0 -7
- package/dist/assets/entry-fe0e94b2.js +0 -5
- package/dist/assets/entry-ff0ec710.js +0 -5
- package/dist/assets/entry-legacy.0bf5e0ca.js +0 -1
- package/dist/assets/entry-legacy.1bea9f3a.js +0 -1
- package/dist/assets/entry-legacy.3cbf81df.js +0 -1
- package/dist/assets/entry-legacy.5e9cadea.js +0 -1
- package/dist/assets/entry-legacy.759fde7b.js +0 -1
- package/dist/assets/entry-legacy.bca06ca5.js +0 -1
- package/dist/assets/entry-legacy.c35a6372.js +0 -1
- package/dist/assets/entry-legacy.d14255c4.js +0 -1
- package/dist/assets/entry-legacy.e8ec9e72.js +0 -1
- package/dist/assets/entry-legacy.fea7f65d.js +0 -1
- package/dist/assets/html-d6918c57.js +0 -1
- package/dist/assets/markdown_with_word_wrap-223f2b9c.js +0 -1
- package/dist/assets/mySession-94f62c14.js +0 -1
- package/dist/assets/url-64ba4724.js +0 -1
- package/dist/assets/url-legacy.bce70b79.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./index-legacy.
|
|
1
|
+
System.register(["./index-legacy.eace8bff.js"],(function(e,r){"use strict";var n,o,t,a,h,l,i,c,v;return{setters:[function(e){n=e.aU,o=e.x,t=e.V,a=e.a1,h=e.X,l=e.a0,i=e.am,c=e.aw,v=e.d}],execute:function(){e({B:function(e){return n({a:{viewBox:"0 0 24 24"},c:'<path d="M20.005 5.995h-1v2h1v8h-1v2h1c1.103 0 2-.897 2-2v-8c0-1.102-.898-2-2-2zm-14 4H15v4H6.005z"/><path d="M17.005 17.995V4H20V2h-8v2h3.005v1.995h-11c-1.103 0-2 .897-2 2v8c0 1.103.897 2 2 2h11V20H12v2h8v-2h-2.995v-2.005zm-13-2v-8h11v8h-11z"/>'},e)},C:function(e){return n({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" fill-rule="evenodd" d="M10 4H8v2H5a3 3 0 00-3 3v6a3 3 0 003 3h3v2h2V4zM8 8v8H5a1 1 0 01-1-1V9a1 1 0 011-1h3z" clip-rule="evenodd"/><path fill="currentColor" d="M19 16h-7v2h7a3 3 0 003-3V9a3 3 0 00-3-3h-7v2h7a1 1 0 011 1v6a1 1 0 01-1 1z"/>'},e)},T:function(e){return n({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><rect width="12" height="12" x="8" y="8" rx="2"/><path d="M16 8V6a2 2 0 00-2-2H6a2 2 0 00-2 2v8a2 2 0 002 2h2"/>'},e)},a:function(e){return n({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><path d="M14 3v4a1 1 0 001 1h4"/><path d="M17 21H7a2 2 0 01-2-2V5a2 2 0 012-2h7l5 5v11a2 2 0 01-2 2zM9 15h6"/><path d="M12.5 17.5L15 15l-2.5-2.5"/>'},e)},b:function(e){return n({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><rect width="18" height="4" x="3" y="4" rx="2"/><path d="M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8M10 12h4"/>'},e)},c:function(e){return n({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><path d="M10 4l2 1 2-1m-2-2v6.5l3 1.72M17.928 6.268l.134 2.232 1.866 1.232M20.66 7l-5.629 3.25.01 3.458M19.928 14.268L18.062 15.5l-.134 2.232M20.66 17l-5.629-3.25-2.99 1.738M14 20l-2-1-2 1m2 2v-6.5l-3-1.72M6.072 17.732L5.938 15.5l-1.866-1.232M3.34 17l5.629-3.25-.01-3.458M4.072 9.732L5.938 8.5l.134-2.232M3.34 7l5.629 3.25 2.99-1.738"/>'},e)},d:function(e){return n({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><circle cx="12" cy="12" r="4"/><path d="M3 12h1m8-9v1m8 8h1m-9 8v1M5.6 5.6l.7.7m12.1-.7l-.7.7m0 11.4l.7.7m-12.1-.7l-.7.7"/>'},e)},e:function(e){return n({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><path d="M10 14a3.5 3.5 0 005 0l4-4a3.5 3.5 0 00-5-5l-.5.5"/><path d="M14 10a3.5 3.5 0 00-5 0l-4 4a3.5 3.5 0 005 5l.5-.5"/>'},e)},f:function(e){return n({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" d="M11 14.5v2h2v-2h2v-2h-2v-2h-2v2H9v2h2z"/><path fill="currentColor" fill-rule="evenodd" d="M4 1.5a2 2 0 00-2 2v1c0 .057.002.113.007.168A3.001 3.001 0 000 7.5v12a3 3 0 003 3h18a3 3 0 003-3v-12a3 3 0 00-3-3h-9.126A4.002 4.002 0 008 1.5H4zm5.732 3A2 2 0 008 3.5H4v1h5.732zM3 6.5a1 1 0 00-1 1v12a1 1 0 001 1h18a1 1 0 001-1v-12a1 1 0 00-1-1H3z" clip-rule="evenodd"/>'},e)},g:function(e){return n({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" d="M10 18v-2H8v-2h2v-2h2v2h2v2h-2v2h-2z"/><path fill="currentColor" fill-rule="evenodd" d="M6 2a3 3 0 00-3 3v14a3 3 0 003 3h12a3 3 0 003-3V9a7 7 0 00-7-7H6zm0 2h7v5h6v10a1 1 0 01-1 1H6a1 1 0 01-1-1V5a1 1 0 011-1zm9 .1A5.009 5.009 0 0118.584 7H15V4.1z" clip-rule="evenodd"/>'},e)},h:function(e){return n({a:{baseProfile:"tiny",version:"1.2",viewBox:"0 0 24 24"},c:'<path d="M12 3c-4.963 0-9 4.038-9 9s4.037 9 9 9 9-4.038 9-9-4.037-9-9-9zm0 16c-3.859 0-7-3.14-7-7s3.141-7 7-7 7 3.14 7 7-3.141 7-7 7zm.707-7l2.646-2.646a.502.502 0 000-.707.502.502 0 00-.707 0L12 11.293 9.354 8.646a.5.5 0 00-.707.707L11.293 12l-2.646 2.646a.5.5 0 00.707.708L12 12.707l2.646 2.646a.5.5 0 10.708-.706L12.707 12z"/>'},e)},i:function(e){return n({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" d="M7 14a2 2 0 100-4 2 2 0 000 4zM14 12a2 2 0 11-4 0 2 2 0 014 0zM17 14a2 2 0 100-4 2 2 0 000 4z"/><path fill="currentColor" fill-rule="evenodd" d="M24 12c0 6.627-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0s12 5.373 12 12zm-2 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10z" clip-rule="evenodd"/>'},e)},j:function(e){return n({a:{viewBox:"0 0 24 24"},c:'<path d="M20 3H4c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2zm-1 4v2h-5V7h5zm-5 4h5v2h-5v-2zM4 19V5h7v14H4z"/>'},e)},k:function(e){return n({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><path d="M9 11l3 3 8-8"/><path d="M20 12v6a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2h9"/>'},e)},l:function(e){return n({a:{viewBox:"0 0 24 24"},c:'<path d="M5.536 21.886a1.004 1.004 0 001.033-.064l13-9a1 1 0 000-1.644l-13-9A1 1 0 005 3v18a1 1 0 00.536.886z"/>'},e)},m:function(e){return n({a:{viewBox:"0 0 24 24"},c:'<path d="M5 2c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h3.586L12 21.414 15.414 18H19c1.103 0 2-.897 2-2V4c0-1.103-.897-2-2-2H5zm14 14h-4.414L12 18.586 9.414 16H5V4h14v12z"/><path d="M7 7h10v2H7zm0 4h7v2H7z"/>'},e)},n:function(e){return n({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><path d="M10 15H4a1 1 0 01-1-1V6a1 1 0 011-1h6"/><rect width="8" height="16" x="13" y="4" rx="1"/><path d="M7 19h3M17 8v.01"/><circle cx="17" cy="16" r="1"/><path d="M9 15v4"/>'},e)},o:function(e){return n({a:{fill:"none",viewBox:"0 0 24 24"},c:'<path fill="currentColor" d="M5 9V7h2v2H5zM9 9h10V7H9v2zM5 15v2h2v-2H5zM19 17H9v-2h10v2z"/><path fill="currentColor" fill-rule="evenodd" d="M1 6a3 3 0 013-3h16a3 3 0 013 3v12a3 3 0 01-3 3H4a3 3 0 01-3-3V6zm3-1h16a1 1 0 011 1v5H3V6a1 1 0 011-1zm-1 8v5a1 1 0 001 1h16a1 1 0 001-1v-5H3z" clip-rule="evenodd"/>'},e)},p:function(e){return n({a:{baseProfile:"tiny",version:"1.2",viewBox:"0 0 24 24"},c:'<path d="M19 17H5c-1.103 0-2 .897-2 2s.897 2 2 2h14c1.103 0 2-.897 2-2s-.897-2-2-2zm0-7H5c-1.103 0-2 .897-2 2s.897 2 2 2h14c1.103 0 2-.897 2-2s-.897-2-2-2zm0-7H5c-1.103 0-2 .897-2 2s.897 2 2 2h14c1.103 0 2-.897 2-2s-.897-2-2-2z"/>'},e)},q:function(e){return n({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><path d="M8 9l4-4 4 4M16 15l-4 4-4-4"/>'},e)},r:function(e){return n({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:'<path stroke="none" d="M0 0h24v24H0z"/><path d="M11 7H6a2 2 0 00-2 2v9a2 2 0 002 2h9a2 2 0 002-2v-5M10 14L20 4M15 4h5v5"/>'},e)},s:function(e){return n({a:{viewBox:"0 0 24 24"},c:'<path d="M2.165 19.551c.186.28.499.449.835.449h15c.4 0 .762-.238.919-.606l3-7A.998.998 0 0021 11h-1V8c0-1.103-.897-2-2-2h-6.655L8.789 4H4c-1.103 0-2 .897-2 2v13h.007a1 1 0 00.158.551zM18 8v3H6c-.4 0-.762.238-.919.606L4 14.129V8h14z"/>'},e)},t:function(e){return n({a:{baseProfile:"tiny",version:"1.2",viewBox:"0 0 24 24"},c:'<path d="M12 4c-4.419 0-8 3.582-8 8s3.581 8 8 8 8-3.582 8-8-3.581-8-8-8zm3.707 10.293a.999.999 0 11-1.414 1.414L12 13.414l-2.293 2.293a.997.997 0 01-1.414 0 .999.999 0 010-1.414L10.586 12 8.293 9.707a.999.999 0 111.414-1.414L12 10.586l2.293-2.293a.999.999 0 111.414 1.414L13.414 12l2.293 2.293z"/>'},e)},v:function(e){return n({a:{baseProfile:"tiny",version:"1.2",viewBox:"0 0 24 24"},c:'<path d="M21.171 15.398l-5.912-9.854C14.483 4.251 13.296 3.511 12 3.511s-2.483.74-3.259 2.031l-5.912 9.856c-.786 1.309-.872 2.705-.235 3.83C3.23 20.354 4.472 21 6 21h12c1.528 0 2.77-.646 3.406-1.771.637-1.125.551-2.521-.235-3.831zM12 17.549c-.854 0-1.55-.695-1.55-1.549 0-.855.695-1.551 1.55-1.551s1.55.696 1.55 1.551c0 .854-.696 1.549-1.55 1.549zm1.633-7.424c-.011.031-1.401 3.468-1.401 3.468-.038.094-.13.156-.231.156s-.193-.062-.231-.156l-1.391-3.438a1.776 1.776 0 01-.129-.655c0-.965.785-1.75 1.75-1.75a1.752 1.752 0 011.633 2.375z"/>'},e)}});var r=e("L",(function(e){return o(l,t(e,{get href(){return a(e.encode?h(e.href):e.href)}}))}));e("A",(function(e){return o(c,t(e,{get href(){return i((function(){return!!e.cancelBase}),!0)()?e.href:a(e.href)}}))})),e("u",(function(e){var n=v().pushHref;return o(r,t(e,{get href(){return n(e.href)}}))}))}}}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
`));let a=20;l.value&&(a=parseInt(l.value));const H=await P(t,a);g(H),s()},{isOpen:D,onOpen:O,onClose:j}=
|
|
1
|
+
import{dY as C,az as b,b as F,B as G,be as i,bv as p,r as V,eb as X,ec as Z,a$ as E,x as e,c2 as u,S as f,av as x,a7 as J,aP as K,ai as k,ah as h,am as c,cX as m,de as Q,Q as o,R as W,M as Y,I as A,bz as U,J as ee,K as te,T as re,L as ne,O as ae,bw as se,bh as g}from"./index-0ac33e44.js";import{G as oe}from"./index-2a7c71fa.js";import ie from"./Common-69a0fb8a.js";import"./useTitle-98cd4016.js";import"./index-06a2e1d1.js";import"./index-62f37b04.js";import"./SettingItem-e66b06f6.js";import"./item_type-32dc6fdf.js";import"./ResponsiveGrid-31af9f08.js";const de=b('<svg width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="2"><path stroke-dasharray="60" stroke-dashoffset="60" stroke-opacity=".3" d="M12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3Z"><animate fill="freeze" attributeName="stroke-dashoffset" dur="1.3s" values="60;0"></animate></path><path stroke-dasharray="15" stroke-dashoffset="15" d="M12 3C16.9706 3 21 7.02944 21 12"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.3s" values="15;0"></animate><animateTransform attributeName="transform" dur="1.5s" repeatCount="indefinite" type="rotate" values="0 12 12;360 12 12"></animateTransform></path></g></svg>'),le=b('<svg width="1em" height="1em" viewBox="0 0 24 24"><g stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path fill="currentColor" fill-opacity="0" stroke-dasharray="60" stroke-dashoffset="60" d="M3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.5s" values="60;0"></animate><animate fill="freeze" attributeName="fill-opacity" begin="0.8s" dur="0.15s" values="0;0.3"></animate></path><path fill="none" stroke-dasharray="14" stroke-dashoffset="14" d="M8 12L11 15L16 10"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.6s" dur="0.2s" values="14;0"></animate></path></g></svg>');function ue(r){return(()=>{const n=de.cloneNode(!0);return C(n,r,!0,!0),n})()}function ce(r){return(()=>{const n=le.cloneNode(!0);return C(n,r,!0,!0),n})()}const we=()=>{const r=F(),[n,v]=G(),[w,$]=i(()=>p.get("/admin/index/progress")),s=async()=>{const t=await $();se(t,a=>{v(a)})},y=setInterval(s,5e3);V(()=>clearInterval(y)),s();const[_,M]=i(X),I=async()=>{const t=await M();g(t),s()},[S,L]=i(()=>p.post("/admin/index/clear")),B=async()=>{const t=await L();g(t),s()},[N,R]=i(()=>p.post("/admin/index/stop")),z=async()=>{const t=await R();g(t),s()};let d,l;const[T,P]=i(Z),q=async()=>{let t=[];d.value&&(t=d.value.split(`
|
|
2
|
+
`));let a=20;l.value&&(a=parseInt(l.value));const H=await P(t,a);g(H),s()},{isOpen:D,onOpen:O,onClose:j}=E();return e(k,{spacing:"$2",w:"$full",alignItems:"start",get children(){return[e(u,{get children(){return r("manage.sidemenu.settings")}}),e(ie,{get group(){return oe.INDEX}}),e(u,{get children(){return r("indexes.current")}}),e(f,{get when(){return n()},get children(){return e(x,{spacing:"$2",w:"fit-content",shadow:"$md",rounded:"$lg",get bg(){return J("","$neutral3")()},get children(){return[e(K,{boxSize:"$28",color:"$accent9",p:"$2",get as(){var t;return(t=n())!=null&&t.is_done?ce:ue}}),e(k,{spacing:"$2",flex:"1",alignItems:"start",mr:"$2",get children(){return[e(h,{get children(){return[c(()=>r("indexes.obj_count")),":",e(m,{colorScheme:"info",ml:"$2",get children(){var t;return(t=n())==null?void 0:t.obj_count}})]}}),e(h,{get children(){return[c(()=>r("indexes.last_done_time")),":",e(m,{colorScheme:"accent",ml:"$2",get children(){return c(()=>!!n().last_done_time,!0)()?Q(n().last_done_time):r("indexes.unknown")}})]}}),e(f,{get when(){var t;return(t=n())==null?void 0:t.error},get children(){return e(h,{css:{wordBreak:"break-all"},get children(){return[c(()=>r("indexes.error")),":",e(m,{colorScheme:"danger",ml:"$2",get children(){return n().error}})]}})}})]}})]}})}}),e(x,{spacing:"$2",get children(){return[e(o,{colorScheme:"accent",onClick:[s,void 0],get loading(){return w()},get children(){return r("global.refresh")}}),e(o,{colorScheme:"danger",onClick:[B,void 0],get loading(){return S()},get children(){return r("indexes.clear")}}),e(o,{colorScheme:"warning",onClick:[z,void 0],get loading(){return N()},get children(){return r("indexes.stop")}}),e(o,{onClick:[I,void 0],get loading(){return _()},get children(){var t;return r(`indexes.${(t=n())!=null&&t.is_done?"rebuild":"build"}`)}})]}}),e(o,{onClick:O,get children(){return r("indexes.update")}}),e(W,{get opened(){return D()},onClose:j,get children(){return[e(Y,{}),e(A,{get children(){return[e(U,{}),e(ee,{get children(){return r("indexes.update")}}),e(te,{get children(){return[e(u,{get children(){return r("indexes.paths_to_update")}}),e(re,{ref(t){const a=d;typeof a=="function"?a(t):d=t}}),e(u,{get children(){return r("indexes.max_depth")}}),e(ne,{value:20,type:"number",ref(t){const a=l;typeof a=="function"?a(t):l=t}})]}}),e(ae,{get children(){return e(o,{onClick:[q,void 0],get loading(){return T()},get children(){return r("indexes.update")}})}})]}})]}})]}})};export{we as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(C){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return E()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=k(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(C){return{type:"throw",arg:C}}}r.wrap=s;var h={};function d(){}function p(){}function v(){}var g={};l(g,a,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(j([])));m&&m!==n&&o.call(m,a)&&(g=m);var w=v.prototype=d.prototype=Object.create(g);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function b(e,r){function n(i,a,u,c){var l=f(e[i],e,a);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==t(h)&&o.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):r.resolve(h).then((function(t){s.value=t,u(s)}),(function(t){return n("throw",t,u,c)}))}c(l.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function k(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:E}}function E(){return{value:void 0,done:!0}}return p.prototype=v,l(w,"constructor",v),l(v,"constructor",p),p.displayName=l(v,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},x(b.prototype),l(b.prototype,u,(function(){return this})),r.AsyncIterator=b,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new b(s(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),l(w,c,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=j,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(l){return void r(l)}u.done?e(c):Promise.resolve(c).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,"next",t)}function c(t){r(a,o,i,u,c,"throw",t)}u(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}System.register(["./index-legacy.62c06d64.js","./index-legacy.9842d021.js","./Common-legacy.d3b29529.js","./useTitle-legacy.771fa6e1.js","./index-legacy.43a11866.js","./index-legacy.52c6160a.js","./SettingItem-legacy.30070d20.js","./item_type-legacy.1b6076a1.js","./ResponsiveGrid-legacy.6c0954c3.js"],(function(t,r){"use strict";var i,a,u,c,l,s,f,h,d,p,v,g,y,m,w,x,b,k,L,_,S,j,E,C,N,O,$,I,G,T,P,z,A,M,F;return{setters:[function(t){i=t.dW,a=t.az,u=t.b,c=t.B,l=t.be,s=t.bv,f=t.r,h=t.e9,d=t.ea,p=t.a$,v=t.x,g=t.c2,y=t.S,m=t.av,w=t.a7,x=t.aP,b=t.ai,k=t.ah,L=t.am,_=t.cX,S=t.dc,j=t.Q,E=t.R,C=t.M,N=t.I,O=t.bz,$=t.J,I=t.K,G=t.T,T=t.L,P=t.O,z=t.bw,A=t.bh},function(t){M=t.G},function(t){F=t.default},null,null,null,null,null,null],execute:function(){var r=a('<svg width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="2"><path stroke-dasharray="60" stroke-dashoffset="60" stroke-opacity=".3" d="M12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3Z"><animate fill="freeze" attributeName="stroke-dashoffset" dur="1.3s" values="60;0"></animate></path><path stroke-dasharray="15" stroke-dashoffset="15" d="M12 3C16.9706 3 21 7.02944 21 12"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.3s" values="15;0"></animate><animateTransform attributeName="transform" dur="1.5s" repeatCount="indefinite" type="rotate" values="0 12 12;360 12 12"></animateTransform></path></g></svg>'),B=a('<svg width="1em" height="1em" viewBox="0 0 24 24"><g stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path fill="currentColor" fill-opacity="0" stroke-dasharray="60" stroke-dashoffset="60" d="M3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.5s" values="60;0"></animate><animate fill="freeze" attributeName="fill-opacity" begin="0.8s" dur="0.15s" values="0;0.3"></animate></path><path fill="none" stroke-dasharray="14" stroke-dashoffset="14" d="M8 12L11 15L16 10"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.6s" dur="0.2s" values="14;0"></animate></path></g></svg>');function R(t){return e=r.cloneNode(!0),i(e,t,!0,!0),e;var e}function X(t){return e=B.cloneNode(!0),i(e,t,!0,!0),e;var e}t("default",(function(){var t=u(),r=o(c(),2),i=r[0],a=r[1],B=o(l((function(){return s.get("/admin/index/progress")})),2),Y=B[0],Z=B[1],q=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Z();case 2:r=t.sent,z(r,(function(t){a(t)}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),D=setInterval(q,5e3);f((function(){return clearInterval(D)})),q();var J,K,Q=o(l(h),2),U=Q[0],W=Q[1],H=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,W();case 2:r=t.sent,A(r),q();case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),V=o(l((function(){return s.post("/admin/index/clear")})),2),tt=V[0],et=V[1],rt=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,et();case 2:r=t.sent,A(r),q();case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),nt=o(l((function(){return s.post("/admin/index/stop")})),2),ot=nt[0],it=nt[1],at=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,it();case 2:r=t.sent,A(r),q();case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),ut=o(l(d),2),ct=ut[0],lt=ut[1],st=function(){var t=n(e().mark((function t(){var r,n,o;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],J.value&&(r=J.value.split("\n")),n=20,K.value&&(n=parseInt(K.value)),t.next=6,lt(r,n);case 6:o=t.sent,A(o),q();case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),ft=p(),ht=ft.isOpen,dt=ft.onOpen,pt=ft.onClose;return v(b,{spacing:"$2",w:"$full",alignItems:"start",get children(){return[v(g,{get children(){return t("manage.sidemenu.settings")}}),v(F,{get group(){return M.INDEX}}),v(g,{get children(){return t("indexes.current")}}),v(y,{get when(){return i()},get children(){return v(m,{spacing:"$2",w:"fit-content",shadow:"$md",rounded:"$lg",get bg(){return w("","$neutral3")()},get children(){return[v(x,{boxSize:"$28",color:"$accent9",p:"$2",get as(){var t;return null!==(t=i())&&void 0!==t&&t.is_done?X:R}}),v(b,{spacing:"$2",flex:"1",alignItems:"start",mr:"$2",get children(){return[v(k,{get children(){return[L((function(){return t("indexes.obj_count")})),":",v(_,{colorScheme:"info",ml:"$2",get children(){var t;return null===(t=i())||void 0===t?void 0:t.obj_count}})]}}),v(k,{get children(){return[L((function(){return t("indexes.last_done_time")})),":",v(_,{colorScheme:"accent",ml:"$2",get children(){return L((function(){return!!i().last_done_time}),!0)()?S(i().last_done_time):t("indexes.unknown")}})]}}),v(y,{get when(){var t;return null===(t=i())||void 0===t?void 0:t.error},get children(){return v(k,{css:{wordBreak:"break-all"},get children(){return[L((function(){return t("indexes.error")})),":",v(_,{colorScheme:"danger",ml:"$2",get children(){return i().error}})]}})}})]}})]}})}}),v(m,{spacing:"$2",get children(){return[v(j,{colorScheme:"accent",onClick:[q,void 0],get loading(){return Y()},get children(){return t("global.refresh")}}),v(j,{colorScheme:"danger",onClick:[rt,void 0],get loading(){return tt()},get children(){return t("indexes.clear")}}),v(j,{colorScheme:"warning",onClick:[at,void 0],get loading(){return ot()},get children(){return t("indexes.stop")}}),v(j,{onClick:[H,void 0],get loading(){return U()},get children(){var e;return t("indexes.".concat(null!==(e=i())&&void 0!==e&&e.is_done?"rebuild":"build"))}})]}}),v(j,{onClick:dt,get children(){return t("indexes.update")}}),v(E,{get opened(){return ht()},onClose:pt,get children(){return[v(C,{}),v(N,{get children(){return[v(O,{}),v($,{get children(){return t("indexes.update")}}),v(I,{get children(){return[v(g,{get children(){return t("indexes.paths_to_update")}}),v(G,{ref:function(t){"function"==typeof J?J(t):J=t}}),v(g,{get children(){return t("indexes.max_depth")}}),v(T,{value:20,type:"number",ref:function(t){"function"==typeof K?K(t):K=t}})]}}),v(P,{get children(){return v(j,{onClick:[st,void 0],get loading(){return ct()},get children(){return t("indexes.update")}})}})]}})]}})]}})}))}}}))}();
|
|
1
|
+
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(C){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return E()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=k(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(C){return{type:"throw",arg:C}}}r.wrap=s;var h={};function d(){}function p(){}function v(){}var g={};l(g,a,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(j([])));m&&m!==n&&o.call(m,a)&&(g=m);var w=v.prototype=d.prototype=Object.create(g);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function b(e,r){function n(i,a,u,c){var l=f(e[i],e,a);if("throw"!==l.type){var s=l.arg,h=s.value;return h&&"object"==t(h)&&o.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,u,c)}),(function(t){n("throw",t,u,c)})):r.resolve(h).then((function(t){s.value=t,u(s)}),(function(t){return n("throw",t,u,c)}))}c(l.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function k(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:E}}function E(){return{value:void 0,done:!0}}return p.prototype=v,l(w,"constructor",v),l(v,"constructor",p),p.displayName=l(v,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},x(b.prototype),l(b.prototype,u,(function(){return this})),r.AsyncIterator=b,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new b(s(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),l(w,c,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=j,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(l){return void r(l)}u.done?e(c):Promise.resolve(c).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,"next",t)}function c(t){r(a,o,i,u,c,"throw",t)}u(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}System.register(["./index-legacy.eace8bff.js","./index-legacy.143be82f.js","./Common-legacy.9f60f3ff.js","./useTitle-legacy.80f4343f.js","./index-legacy.f9a28a3c.js","./index-legacy.bf3a5b10.js","./SettingItem-legacy.4f3189c6.js","./item_type-legacy.1b6076a1.js","./ResponsiveGrid-legacy.4a47f200.js"],(function(t,r){"use strict";var i,a,u,c,l,s,f,h,d,p,v,g,y,m,w,x,b,k,L,_,S,j,E,C,N,O,$,I,G,T,P,z,A,M,F;return{setters:[function(t){i=t.dY,a=t.az,u=t.b,c=t.B,l=t.be,s=t.bv,f=t.r,h=t.eb,d=t.ec,p=t.a$,v=t.x,g=t.c2,y=t.S,m=t.av,w=t.a7,x=t.aP,b=t.ai,k=t.ah,L=t.am,_=t.cX,S=t.de,j=t.Q,E=t.R,C=t.M,N=t.I,O=t.bz,$=t.J,I=t.K,G=t.T,T=t.L,P=t.O,z=t.bw,A=t.bh},function(t){M=t.G},function(t){F=t.default},null,null,null,null,null,null],execute:function(){var r=a('<svg width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="2"><path stroke-dasharray="60" stroke-dashoffset="60" stroke-opacity=".3" d="M12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3Z"><animate fill="freeze" attributeName="stroke-dashoffset" dur="1.3s" values="60;0"></animate></path><path stroke-dasharray="15" stroke-dashoffset="15" d="M12 3C16.9706 3 21 7.02944 21 12"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.3s" values="15;0"></animate><animateTransform attributeName="transform" dur="1.5s" repeatCount="indefinite" type="rotate" values="0 12 12;360 12 12"></animateTransform></path></g></svg>'),B=a('<svg width="1em" height="1em" viewBox="0 0 24 24"><g stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path fill="currentColor" fill-opacity="0" stroke-dasharray="60" stroke-dashoffset="60" d="M3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12Z"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.5s" values="60;0"></animate><animate fill="freeze" attributeName="fill-opacity" begin="0.8s" dur="0.15s" values="0;0.3"></animate></path><path fill="none" stroke-dasharray="14" stroke-dashoffset="14" d="M8 12L11 15L16 10"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.6s" dur="0.2s" values="14;0"></animate></path></g></svg>');function Y(t){return e=r.cloneNode(!0),i(e,t,!0,!0),e;var e}function R(t){return e=B.cloneNode(!0),i(e,t,!0,!0),e;var e}t("default",(function(){var t=u(),r=o(c(),2),i=r[0],a=r[1],B=o(l((function(){return s.get("/admin/index/progress")})),2),X=B[0],Z=B[1],q=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Z();case 2:r=t.sent,z(r,(function(t){a(t)}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),D=setInterval(q,5e3);f((function(){return clearInterval(D)})),q();var J,K,Q=o(l(h),2),U=Q[0],H=Q[1],V=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,H();case 2:r=t.sent,A(r),q();case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),W=o(l((function(){return s.post("/admin/index/clear")})),2),tt=W[0],et=W[1],rt=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,et();case 2:r=t.sent,A(r),q();case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),nt=o(l((function(){return s.post("/admin/index/stop")})),2),ot=nt[0],it=nt[1],at=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,it();case 2:r=t.sent,A(r),q();case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),ut=o(l(d),2),ct=ut[0],lt=ut[1],st=function(){var t=n(e().mark((function t(){var r,n,o;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=[],J.value&&(r=J.value.split("\n")),n=20,K.value&&(n=parseInt(K.value)),t.next=6,lt(r,n);case 6:o=t.sent,A(o),q();case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),ft=p(),ht=ft.isOpen,dt=ft.onOpen,pt=ft.onClose;return v(b,{spacing:"$2",w:"$full",alignItems:"start",get children(){return[v(g,{get children(){return t("manage.sidemenu.settings")}}),v(F,{get group(){return M.INDEX}}),v(g,{get children(){return t("indexes.current")}}),v(y,{get when(){return i()},get children(){return v(m,{spacing:"$2",w:"fit-content",shadow:"$md",rounded:"$lg",get bg(){return w("","$neutral3")()},get children(){return[v(x,{boxSize:"$28",color:"$accent9",p:"$2",get as(){var t;return null!==(t=i())&&void 0!==t&&t.is_done?R:Y}}),v(b,{spacing:"$2",flex:"1",alignItems:"start",mr:"$2",get children(){return[v(k,{get children(){return[L((function(){return t("indexes.obj_count")})),":",v(_,{colorScheme:"info",ml:"$2",get children(){var t;return null===(t=i())||void 0===t?void 0:t.obj_count}})]}}),v(k,{get children(){return[L((function(){return t("indexes.last_done_time")})),":",v(_,{colorScheme:"accent",ml:"$2",get children(){return L((function(){return!!i().last_done_time}),!0)()?S(i().last_done_time):t("indexes.unknown")}})]}}),v(y,{get when(){var t;return null===(t=i())||void 0===t?void 0:t.error},get children(){return v(k,{css:{wordBreak:"break-all"},get children(){return[L((function(){return t("indexes.error")})),":",v(_,{colorScheme:"danger",ml:"$2",get children(){return i().error}})]}})}})]}})]}})}}),v(m,{spacing:"$2",get children(){return[v(j,{colorScheme:"accent",onClick:[q,void 0],get loading(){return X()},get children(){return t("global.refresh")}}),v(j,{colorScheme:"danger",onClick:[rt,void 0],get loading(){return tt()},get children(){return t("indexes.clear")}}),v(j,{colorScheme:"warning",onClick:[at,void 0],get loading(){return ot()},get children(){return t("indexes.stop")}}),v(j,{onClick:[V,void 0],get loading(){return U()},get children(){var e;return t("indexes.".concat(null!==(e=i())&&void 0!==e&&e.is_done?"rebuild":"build"))}})]}}),v(j,{onClick:dt,get children(){return t("indexes.update")}}),v(E,{get opened(){return ht()},onClose:pt,get children(){return[v(C,{}),v(N,{get children(){return[v(O,{}),v($,{get children(){return t("indexes.update")}}),v(I,{get children(){return[v(g,{get children(){return t("indexes.paths_to_update")}}),v(G,{ref:function(t){"function"==typeof J?J(t):J=t}}),v(g,{get children(){return t("indexes.max_depth")}}),v(T,{value:20,type:"number",ref:function(t){"function"==typeof K?K(t):K=t}})]}}),v(P,{get children(){return v(j,{onClick:[st,void 0],get loading(){return ct()},get children(){return t("indexes.update")}})}})]}})]}})]}})}))}}}))}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as m,B as n,ak as p,x as e,av as u,Q as a,
|
|
1
|
+
import{b as m,B as n,ak as p,x as e,av as u,Q as a,eC as g,eD as d,ad as r,eB as f}from"./index-0ac33e44.js";import{F as h}from"./File-b3d6c366.js";import"./storage-class-1ac53f89.js";import"./index-06a2e1d1.js";const $=()=>{const t=m(),[s,i]=n(!1),[o,l]=n(!1),{currentObjLink:c}=p();return e(h,{get children(){return e(u,{spacing:"$2",get children(){return[e(a,{as:"a",get href(){return`itms-services://?action=download-manifest&url=${g}/i/${d(encodeURIComponent(r.raw_url)+"/"+f(encodeURIComponent(r.obj.name)))}.plist`},onClick:()=>{i(!0)},get children(){return t(`home.preview.${s()?"installing":"install"}`)}}),e(a,{as:"a",colorScheme:"primary",get href(){return"apple-magnifier://install?url="+encodeURIComponent(c(!0))},onClick:()=>{l(!0)},get children(){return t(`home.preview.${o()?"tr-installing":"tr-install"}`)}})]}})}})};export{$ as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){function n(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null==t)return;var r,i,o=[],a=!0,l=!1;try{for(t=t.call(n);!(a=(r=t.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(c){l=!0,i=c}finally{try{a||null==t.return||t.return()}finally{if(l)throw i}}return o}(n,t)||function(n,t){if(!n)return;if("string"==typeof n)return e(n,t);var r=Object.prototype.toString.call(n).slice(8,-1);"Object"===r&&n.constructor&&(r=n.constructor.name);if("Map"===r||"Set"===r)return Array.from(n);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(n,t)}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}System.register(["./index-legacy.
|
|
1
|
+
!function(){function n(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null==t)return;var r,i,o=[],a=!0,l=!1;try{for(t=t.call(n);!(a=(r=t.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(c){l=!0,i=c}finally{try{a||null==t.return||t.return()}finally{if(l)throw i}}return o}(n,t)||function(n,t){if(!n)return;if("string"==typeof n)return e(n,t);var r=Object.prototype.toString.call(n).slice(8,-1);"Object"===r&&n.constructor&&(r=n.constructor.name);if("Map"===r||"Set"===r)return Array.from(n);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(n,t)}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}System.register(["./index-legacy.eace8bff.js","./File-legacy.d850788a.js","./storage-class-legacy.7f6d9768.js","./index-legacy.f9a28a3c.js"],(function(e,t){"use strict";var r,i,o,a,l,c,u,s,f,y,g;return{setters:[function(n){r=n.b,i=n.B,o=n.ak,a=n.x,l=n.av,c=n.Q,u=n.eC,s=n.eD,f=n.ad,y=n.eB},function(n){g=n.F},null,null],execute:function(){e("default",(function(){var e=r(),t=n(i(!1),2),m=t[0],d=t[1],p=n(i(!1),2),h=p[0],v=p[1],b=o().currentObjLink;return a(g,{get children(){return a(l,{spacing:"$2",get children(){return[a(c,{as:"a",get href(){return"itms-services://?action=download-manifest&url="+"".concat(u,"/i/").concat(s(encodeURIComponent(f.raw_url)+"/"+y(encodeURIComponent(f.obj.name))),".plist")},onClick:function(){d(!0)},get children(){return e("home.preview.".concat(m()?"installing":"install"))}}),a(c,{as:"a",colorScheme:"primary",get href(){return"apple-magnifier://install?url="+encodeURIComponent(b(!0))},onClick:function(){v(!0)},get children(){return e("home.preview.".concat(h()?"tr-installing":"tr-install"))}})]}})}})}))}}}))}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as
|
|
1
|
+
import{b as H,d as I,B as a,q as L,x as n,av as _,Q as f,am as o,ao as m,dF as O,dG as R,dH as p,W as l,dI as U,dJ as A,dK as E,ai as F,n as s,cr as M,e8 as W,bw as u,e9 as j,ea as q}from"./index-0ac33e44.js";import{D as z}from"./DeletePopover-2fb0138c.js";import{g as S}from"./ua-parser-5a8f43f2.js";const P=()=>{const r=H(),{to:v}=I(),[$,w]=a([]),[C,g]=a(!1),[d,c]=a(null),[k,h]=a(null),[b,y]=a(!1),D=async e=>{h(e);try{const t=await q(e);u(t,()=>{s.success(r("session.kick_out_success")),i()},B=>{s.error(B||r("session.kick_out_failed"))})}catch{s.error(r("session.kick_out_failed"))}finally{h(null)}},T=e=>{const t=localStorage.getItem("device_key");return t&&e.session_id===t},x=async e=>{T(e)?(s.error(r("session.kick_out_current_session")),M(),v(`/@login?redirect=${encodeURIComponent(window.location.pathname)}`)):await D(e.session_id)},i=async()=>{g(!0),c(null);try{const e=await W();u(e,t=>{w(t||[])},t=>{c(t)})}catch(e){c(e instanceof Error?e.message:"Unknown error")}finally{g(!1)}};L(()=>{i()});const K=async()=>{y(!0);try{const e=await j();u(e,()=>{s.success(r("session.clean_success")),i()},t=>{s.error(t||r("session.clean_failed"))})}catch{s.error(r("session.clean_failed"))}finally{y(!1)}};return n(F,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[n(_,{spacing:"$2",get children(){return[n(f,{colorScheme:"accent",get loading(){return C()},onClick:i,get children(){return r("global.refresh")}}),n(f,{colorScheme:"danger",get loading(){return b()},onClick:K,get children(){return r("session.clean")}})]}}),o(()=>o(()=>!!d(),!0)()&&n(m,{color:"red.500",fontSize:"sm",get children(){return d()}})),n(m,{w:"$full",overflowX:"auto",get children(){return n(O,{highlightOnHover:!0,dense:!0,get children(){return[n(R,{get children(){return n(p,{get children(){return n(l,{each:[{key:"device_id",align:"left"},{key:"system_info",align:"left"},{key:"ip",align:"center"},{key:"last_active",align:"center"},{key:"status",align:"center"},{key:"user_id",align:"center"},{key:"username",align:"center"},{key:"operations",align:"center"}],children:e=>n(U,{get textAlign(){return e.align},get children(){return o(()=>e.key==="operations",!0)()?r("global.operations"):r(`session.${e.key}`)}})})}})}}),n(A,{get children(){return n(l,{get each(){return $()},children:e=>n(p,{get children(){return n(l,{get each(){return[{key:"device_id",align:"left",content:e.session_id?`${e.session_id.slice(0,6)}***${e.session_id.slice(-6)}`:"-"},{key:"system_info",align:"left",content:e.ua?S(e.ua):"-"},{key:"ip",align:"center",content:e.ip||"-"},{key:"last_active",align:"center",content:e.last_active?new Date(e.last_active*1e3).toLocaleString():"-"},{key:"status",align:"center",content:e.status===0?r("session.active"):r("session.offline")},{key:"user_id",align:"center",content:e.user_id},{key:"username",align:"center",content:e.username||"-"},{key:"operations",align:"center",content:n(_,{spacing:"$2",justifyContent:"center",get children(){return n(z,{get name(){return`${e.session_id?`${e.session_id.slice(0,6)}***${e.session_id.slice(-6)}`:"-"} (${e.ua?S(e.ua):"-"})`},get loading(){return k()===e.session_id},get disabled(){return k()!==null},onClick:()=>x(e),get buttonText(){return r("session.kick_out")}})}})}]},children:t=>n(E,{get textAlign(){return t.align},get children(){return t.content}})})}})})}})]}})}})]}})};export{P as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return n};var n={},r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(O){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),c=new E(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var a=b(c,n);if(a){if(a===h)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,c),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(O){return{type:"throw",arg:O}}}n.wrap=l;var h={};function p(){}function d(){}function y(){}var g={};s(g,c,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==r&&o.call(m,c)&&(g=m);var w=y.prototype=p.prototype=Object.create(g);function k(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function _(e,n){function r(i,c,a,u){var s=f(e[i],e,c);if("throw"!==s.type){var l=s.arg,h=l.value;return h&&"object"==t(h)&&o.call(h,"__await")?n.resolve(h.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):n.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var i;this._invoke=function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return i=i?i.then(o,o):o()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function S(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:j}}function j(){return{value:void 0,done:!0}}return d.prototype=y,s(w,"constructor",y),s(y,"constructor",d),d.displayName=s(y,u,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},n.awrap=function(t){return{__await:t}},k(_.prototype),s(_.prototype,a,(function(){return this})),n.AsyncIterator=_,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var c=new _(l(t,e,r,o),i);return n.isGeneratorFunction(e)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},k(w),s(w,u,"Generator"),s(w,c,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},n.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return c.type="throw",c.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},n}function n(t,e,n,r,o,i,c){try{var a=t[i](c),u=a.value}catch(s){return void n(s)}a.done?e(u):Promise.resolve(u).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var c=t.apply(e,r);function a(t){n(c,o,i,a,u,"next",t)}function u(t){n(c,o,i,a,u,"throw",t)}a(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],c=!0,a=!1;try{for(n=n.call(t);!(c=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);c=!0);}catch(u){a=!0,o=u}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}System.register(["./index-legacy.62c06d64.js","./DeletePopover-legacy.eea88399.js","./ua-parser-legacy.5e4c06d6.js"],(function(t,n){"use strict";var i,c,a,u,s,l,f,h,p,d,y,g,v,m,w,k,_,b,x,L,E,S,j,O,A;return{setters:[function(t){i=t.b,c=t.d,a=t.B,u=t.q,s=t.x,l=t.av,f=t.Q,h=t.am,p=t.ao,d=t.dD,y=t.dE,g=t.dF,v=t.W,m=t.dG,w=t.dH,k=t.dI,_=t.ai,b=t.n,x=t.cr,L=t.e6,E=t.bw,S=t.e7,j=t.e8},function(t){O=t.D},function(t){A=t.g}],execute:function(){t("default",(function(){var t=i(),n=c().to,I=o(a([]),2),G=I[0],P=I[1],N=o(a(!1),2),T=N[0],C=N[1],F=o(a(null),2),$=F[0],D=F[1],U=o(a(null),2),H=U[0],Y=U[1],q=o(a(!1),2),z=q[0],B=q[1],M=function(){var n=r(e().mark((function n(r){var o;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Y(r),e.prev=1,e.next=4,j(r);case 4:o=e.sent,E(o,(function(){b.success(t("session.kick_out_success")),W()}),(function(e){b.error(e||t("session.kick_out_failed"))})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),b.error(t("session.kick_out_failed"));case 11:return e.prev=11,Y(null),e.finish(11);case 14:case"end":return e.stop()}}),n,null,[[1,8,11,14]])})));return function(t){return n.apply(this,arguments)}}(),Q=function(t){var e=localStorage.getItem("device_key");return e&&t.session_id===e},R=function(){var o=r(e().mark((function r(o){return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Q(o)){e.next=7;break}b.error(t("session.kick_out_current_session")),x(),n("/@login?redirect=".concat(encodeURIComponent(window.location.pathname))),e.next=9;break;case 7:return e.next=9,M(o.session_id);case 9:case"end":return e.stop()}}),r)})));return function(t){return o.apply(this,arguments)}}(),W=function(){var t=r(e().mark((function t(){var n;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return C(!0),D(null),t.prev=2,t.next=5,L();case 5:n=t.sent,E(n,(function(t){P(t||[])}),(function(t){D(t)})),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),D(t.t0 instanceof Error?t.t0.message:"Unknown error");case 12:return t.prev=12,C(!1),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[2,9,12,15]])})));return function(){return t.apply(this,arguments)}}();u((function(){W()}));var X=function(){var n=r(e().mark((function n(){var r;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B(!0),e.prev=1,e.next=4,S();case 4:r=e.sent,E(r,(function(){b.success(t("session.clean_success")),W()}),(function(e){b.error(e||t("session.clean_failed"))})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),b.error(t("session.clean_failed"));case 11:return e.prev=11,B(!1),e.finish(11);case 14:case"end":return e.stop()}}),n,null,[[1,8,11,14]])})));return function(){return n.apply(this,arguments)}}();return s(_,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[s(l,{spacing:"$2",get children(){return[s(f,{colorScheme:"accent",get loading(){return T()},onClick:W,get children(){return t("global.refresh")}}),s(f,{colorScheme:"danger",get loading(){return z()},onClick:X,get children(){return t("session.clean")}})]}}),h((function(){return h((function(){return!!$()}),!0)()&&s(p,{color:"red.500",fontSize:"sm",get children(){return $()}})})),s(p,{w:"$full",overflowX:"auto",get children(){return s(d,{highlightOnHover:!0,dense:!0,get children(){return[s(y,{get children(){return s(g,{get children(){return s(v,{each:[{key:"device_id",align:"left"},{key:"system_info",align:"left"},{key:"ip",align:"center"},{key:"last_active",align:"center"},{key:"status",align:"center"},{key:"user_id",align:"center"},{key:"username",align:"center"},{key:"operations",align:"center"}],children:function(e){return s(m,{get textAlign(){return e.align},get children(){return h((function(){return"operations"===e.key}),!0)()?t("global.operations"):t("session.".concat(e.key))}})}})}})}}),s(w,{get children(){return s(v,{get each(){return G()},children:function(e){return s(g,{get children(){return s(v,{get each(){return[{key:"device_id",align:"left",content:e.session_id?"".concat(e.session_id.slice(0,6),"***").concat(e.session_id.slice(-6)):"-"},{key:"system_info",align:"left",content:e.ua?A(e.ua):"-"},{key:"ip",align:"center",content:e.ip||"-"},{key:"last_active",align:"center",content:e.last_active?new Date(1e3*e.last_active).toLocaleString():"-"},{key:"status",align:"center",content:0===e.status?t("session.active"):t("session.offline")},{key:"user_id",align:"center",content:e.user_id},{key:"username",align:"center",content:e.username||"-"},{key:"operations",align:"center",content:s(l,{spacing:"$2",justifyContent:"center",get children(){return s(O,{get name(){return"".concat(e.session_id?"".concat(e.session_id.slice(0,6),"***").concat(e.session_id.slice(-6)):"-"," (").concat(e.ua?A(e.ua):"-",")")},get loading(){return H()===e.session_id},get disabled(){return null!==H()},onClick:function(){return R(e)},get buttonText(){return t("session.kick_out")}})}})}]},children:function(t){return s(k,{get textAlign(){return t.align},get children(){return t.content}})}})}})}})}})]}})}})]}})}))}}}))}();
|
|
1
|
+
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return n};var n={},r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(O){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),c=new E(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return j()}for(n.method=o,n.arg=i;;){var c=n.delegate;if(c){var a=b(c,n);if(a){if(a===h)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,c),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(O){return{type:"throw",arg:O}}}n.wrap=l;var h={};function p(){}function d(){}function y(){}var g={};s(g,c,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==r&&o.call(m,c)&&(g=m);var w=y.prototype=p.prototype=Object.create(g);function k(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function _(e,n){function r(i,c,a,u){var s=f(e[i],e,c);if("throw"!==s.type){var l=s.arg,h=l.value;return h&&"object"==t(h)&&o.call(h,"__await")?n.resolve(h.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):n.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var i;this._invoke=function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return i=i?i.then(o,o):o()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function S(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:j}}function j(){return{value:void 0,done:!0}}return d.prototype=y,s(w,"constructor",y),s(y,"constructor",d),d.displayName=s(y,u,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},n.awrap=function(t){return{__await:t}},k(_.prototype),s(_.prototype,a,(function(){return this})),n.AsyncIterator=_,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var c=new _(l(t,e,r,o),i);return n.isGeneratorFunction(e)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},k(w),s(w,u,"Generator"),s(w,c,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},n.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return c.type="throw",c.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],c=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),L(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},n}function n(t,e,n,r,o,i,c){try{var a=t[i](c),u=a.value}catch(s){return void n(s)}a.done?e(u):Promise.resolve(u).then(r,o)}function r(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var c=t.apply(e,r);function a(t){n(c,o,i,a,u,"next",t)}function u(t){n(c,o,i,a,u,"throw",t)}a(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],c=!0,a=!1;try{for(n=n.call(t);!(c=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);c=!0);}catch(u){a=!0,o=u}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}System.register(["./index-legacy.eace8bff.js","./DeletePopover-legacy.3bef252d.js","./ua-parser-legacy.5e4c06d6.js"],(function(t,n){"use strict";var i,c,a,u,s,l,f,h,p,d,y,g,v,m,w,k,_,b,x,L,E,S,j,O,A;return{setters:[function(t){i=t.b,c=t.d,a=t.B,u=t.q,s=t.x,l=t.av,f=t.Q,h=t.am,p=t.ao,d=t.dF,y=t.dG,g=t.dH,v=t.W,m=t.dI,w=t.dJ,k=t.dK,_=t.ai,b=t.n,x=t.cr,L=t.e8,E=t.bw,S=t.e9,j=t.ea},function(t){O=t.D},function(t){A=t.g}],execute:function(){t("default",(function(){var t=i(),n=c().to,I=o(a([]),2),G=I[0],P=I[1],N=o(a(!1),2),T=N[0],C=N[1],F=o(a(null),2),$=F[0],D=F[1],U=o(a(null),2),H=U[0],Y=U[1],q=o(a(!1),2),z=q[0],B=q[1],J=function(){var n=r(e().mark((function n(r){var o;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Y(r),e.prev=1,e.next=4,j(r);case 4:o=e.sent,E(o,(function(){b.success(t("session.kick_out_success")),Q()}),(function(e){b.error(e||t("session.kick_out_failed"))})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),b.error(t("session.kick_out_failed"));case 11:return e.prev=11,Y(null),e.finish(11);case 14:case"end":return e.stop()}}),n,null,[[1,8,11,14]])})));return function(t){return n.apply(this,arguments)}}(),K=function(t){var e=localStorage.getItem("device_key");return e&&t.session_id===e},M=function(){var o=r(e().mark((function r(o){return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!K(o)){e.next=7;break}b.error(t("session.kick_out_current_session")),x(),n("/@login?redirect=".concat(encodeURIComponent(window.location.pathname))),e.next=9;break;case 7:return e.next=9,J(o.session_id);case 9:case"end":return e.stop()}}),r)})));return function(t){return o.apply(this,arguments)}}(),Q=function(){var t=r(e().mark((function t(){var n;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return C(!0),D(null),t.prev=2,t.next=5,L();case 5:n=t.sent,E(n,(function(t){P(t||[])}),(function(t){D(t)})),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),D(t.t0 instanceof Error?t.t0.message:"Unknown error");case 12:return t.prev=12,C(!1),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[2,9,12,15]])})));return function(){return t.apply(this,arguments)}}();u((function(){Q()}));var R=function(){var n=r(e().mark((function n(){var r;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B(!0),e.prev=1,e.next=4,S();case 4:r=e.sent,E(r,(function(){b.success(t("session.clean_success")),Q()}),(function(e){b.error(e||t("session.clean_failed"))})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),b.error(t("session.clean_failed"));case 11:return e.prev=11,B(!1),e.finish(11);case 14:case"end":return e.stop()}}),n,null,[[1,8,11,14]])})));return function(){return n.apply(this,arguments)}}();return s(_,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[s(l,{spacing:"$2",get children(){return[s(f,{colorScheme:"accent",get loading(){return T()},onClick:Q,get children(){return t("global.refresh")}}),s(f,{colorScheme:"danger",get loading(){return z()},onClick:R,get children(){return t("session.clean")}})]}}),h((function(){return h((function(){return!!$()}),!0)()&&s(p,{color:"red.500",fontSize:"sm",get children(){return $()}})})),s(p,{w:"$full",overflowX:"auto",get children(){return s(d,{highlightOnHover:!0,dense:!0,get children(){return[s(y,{get children(){return s(g,{get children(){return s(v,{each:[{key:"device_id",align:"left"},{key:"system_info",align:"left"},{key:"ip",align:"center"},{key:"last_active",align:"center"},{key:"status",align:"center"},{key:"user_id",align:"center"},{key:"username",align:"center"},{key:"operations",align:"center"}],children:function(e){return s(m,{get textAlign(){return e.align},get children(){return h((function(){return"operations"===e.key}),!0)()?t("global.operations"):t("session.".concat(e.key))}})}})}})}}),s(w,{get children(){return s(v,{get each(){return G()},children:function(e){return s(g,{get children(){return s(v,{get each(){return[{key:"device_id",align:"left",content:e.session_id?"".concat(e.session_id.slice(0,6),"***").concat(e.session_id.slice(-6)):"-"},{key:"system_info",align:"left",content:e.ua?A(e.ua):"-"},{key:"ip",align:"center",content:e.ip||"-"},{key:"last_active",align:"center",content:e.last_active?new Date(1e3*e.last_active).toLocaleString():"-"},{key:"status",align:"center",content:0===e.status?t("session.active"):t("session.offline")},{key:"user_id",align:"center",content:e.user_id},{key:"username",align:"center",content:e.username||"-"},{key:"operations",align:"center",content:s(l,{spacing:"$2",justifyContent:"center",get children(){return s(O,{get name(){return"".concat(e.session_id?"".concat(e.session_id.slice(0,6),"***").concat(e.session_id.slice(-6)):"-"," (").concat(e.ua?A(e.ua):"-",")")},get loading(){return H()===e.session_id},get disabled(){return null!==H()},onClick:function(){return M(e)},get buttonText(){return t("session.kick_out")}})}})}]},children:function(t){return s(k,{get textAlign(){return t.align},get children(){return t.content}})}})}})}})}})]}})}})]}})}))}}}))}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{eq as r,x as n,aq as a,dq as o,ad as d,ap as s}from"./index-0ac33e44.js";const u=()=>{const[e]=r();return n(s,{get loading(){return e.loading},get children(){return n(a,{get children(){var t;return(t=e())==null?void 0:t.content},get ext(){return o(d.obj.name)},toc:!0})}})};export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){function t(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var e,o,u=[],i=!0,a=!1;try{for(n=n.call(t);!(i=(e=n.next()).done)&&(u.push(e.value),!r||u.length!==r);i=!0);}catch(l){a=!0,o=l}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return u}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return r(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return r(t,n)}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}System.register(["./index-legacy.
|
|
1
|
+
!function(){function t(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var e,o,u=[],i=!0,a=!1;try{for(n=n.call(t);!(i=(e=n.next()).done)&&(u.push(e.value),!r||u.length!==r);i=!0);}catch(l){a=!0,o=l}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return u}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return r(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return r(t,n)}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}System.register(["./index-legacy.eace8bff.js"],(function(r,n){"use strict";var e,o,u,i,a,l;return{setters:[function(t){e=t.eq,o=t.x,u=t.aq,i=t.dq,a=t.ad,l=t.ap}],execute:function(){r("default",(function(){var r=t(e(),1)[0];return o(l,{get loading(){return r.loading},get children(){return o(u,{get children(){var t;return null===(t=r())||void 0===t?void 0:t.content},get ext(){return i(a.obj.name)},toc:!0})}})}))}}}))}();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{eq as a,x as r,aq as n,dq as o,ad as s,ap as d}from"./index-0ac33e44.js";const u=()=>{const[e]=a();return r(d,{get loading(){return e.loading},get children(){return r(n,{class:"word-wrap",get children(){var t;return(t=e())==null?void 0:t.content},get ext(){return o(s.obj.name)},toc:!0})}})};export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){function r(r,n){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var n=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==n)return;var e,o,u=[],
|
|
1
|
+
!function(){function r(r,n){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var n=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==n)return;var e,o,u=[],a=!0,i=!1;try{for(n=n.call(r);!(a=(e=n.next()).done)&&(u.push(e.value),!t||u.length!==t);a=!0);}catch(l){i=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(i)throw o}}return u}(r,n)||function(r,n){if(!r)return;if("string"==typeof r)return t(r,n);var e=Object.prototype.toString.call(r).slice(8,-1);"Object"===e&&r.constructor&&(e=r.constructor.name);if("Map"===e||"Set"===e)return Array.from(r);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return t(r,n)}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,e=new Array(t);n<t;n++)e[n]=r[n];return e}System.register(["./index-legacy.eace8bff.js"],(function(t,n){"use strict";var e,o,u,a,i,l;return{setters:[function(r){e=r.eq,o=r.x,u=r.aq,a=r.dq,i=r.ad,l=r.ap}],execute:function(){t("default",(function(){var t=r(e(),1)[0];return o(l,{get loading(){return t.loading},get children(){return o(u,{class:"word-wrap",get children(){var r;return null===(r=t())||void 0===r?void 0:r.content},get ext(){return a(i.obj.name)},toc:!0})}})}))}}}))}();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{B as a,b,d as D,q as x,x as n,av as h,Q as K,ao as M,dF as B,dG as E,dH as _,W as u,dI as H,am as I,dJ as O,dK as R,ai as U,n as s,cr as A,e6 as F,bw as y,e7 as L,cw as f}from"./index-0ac33e44.js";import{g as p}from"./ua-parser-5a8f43f2.js";import{D as W}from"./DeletePopover-2fb0138c.js";const N=()=>{const[v,m]=a([]),[S,g]=a(!1),[j,c]=a(null),[d,k]=a(null),r=b(),{to:o}=D(),$=async e=>{k(e);try{const t=await L(e);y(t,()=>{s.success(r("session.kick_out_success")),l()},(i,T)=>{if(i!=null&&i.includes("session inactive")||T===403){s.error(r("session.kick_out_current_session")),f(),o("/@login");return}s.error(i||r("session.kick_out_failed"))})}catch(t){const i=t instanceof Error?t.message:String(t);if(i.includes("session inactive")||i.includes("401")){s.error(r("session.kick_out_current_session")),f(),o("/@login");return}s.error(r("session.kick_out_failed"))}finally{k(null)}},w=e=>{const t=localStorage.getItem("device_key");return t&&e.session_id===t},C=async e=>{w(e)?(s.error(r("session.kick_out_current_session")),A(),o(`/@login?redirect=${encodeURIComponent(window.location.pathname)}`)):await $(e.session_id)},l=async()=>{g(!0),c(null);try{const e=await F();y(e,t=>{m(t||[])},t=>{c(t)})}catch(e){c(e instanceof Error?e.message:"Unknown error")}finally{g(!1)}};return x(()=>{l()}),n(U,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[n(h,{spacing:"$2",get children(){return n(K,{colorScheme:"accent",get loading(){return S()},onClick:l,get children(){return r("global.refresh")}})}}),n(M,{w:"$full",overflowX:"auto",get children(){return n(B,{highlightOnHover:!0,dense:!0,get children(){return[n(E,{get children(){return n(_,{get children(){return n(u,{each:[{key:"device_id",align:"left"},{key:"system_info",align:"left"},{key:"ip",align:"center"},{key:"last_active",align:"center"},{key:"status",align:"center"},{key:"operations",align:"center"}],children:e=>n(H,{get textAlign(){return e.align},get children(){return I(()=>e.key==="operations",!0)()?r("global.operations"):r(`session.${e.key}`)}})})}})}}),n(O,{get children(){return n(u,{get each(){return v()},children:e=>n(_,{get children(){return n(u,{get each(){return[{key:"device_id",align:"left",content:e.session_id?`${e.session_id.slice(0,6)}***${e.session_id.slice(-6)}`:"-"},{key:"system_info",align:"left",content:e.ua?p(e.ua):"-"},{key:"ip",align:"center",content:e.ip||"-"},{key:"last_active",align:"center",content:e.last_active?new Date(e.last_active*1e3).toLocaleString():"-"},{key:"status",align:"center",content:e.status===0?r("session.active"):r("session.offline")},{key:"operations",align:"center",content:n(h,{spacing:"$2",justifyContent:"center",get children(){return n(W,{get name(){return`${e.session_id?`${e.session_id.slice(0,6)}***${e.session_id.slice(-6)}`:"-"} (${e.ua?p(e.ua):"-"})`},get loading(){return d()===e.session_id},get disabled(){return d()!==null},onClick:()=>C(e),get buttonText(){return r("session.kick_out")}})}})}]},children:t=>n(R,{get textAlign(){return t.align},get children(){return t.content}})})}})})}})]}})}})]}})};export{N as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(O){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),c=new E(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var a=k(c,r);if(a){if(a===h)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,c),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(O){return{type:"throw",arg:O}}}r.wrap=l;var h={};function p(){}function d(){}function y(){}var g={};s(g,c,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==n&&o.call(m,c)&&(g=m);var w=y.prototype=p.prototype=Object.create(g);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function _(e,r){function n(i,c,a,u){var s=f(e[i],e,c);if("throw"!==s.type){var l=s.arg,h=l.value;return h&&"object"==t(h)&&o.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):r.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,u)}))}u(s.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function k(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function S(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:j}}function j(){return{value:void 0,done:!0}}return d.prototype=y,s(w,"constructor",y),s(y,"constructor",d),d.displayName=s(y,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},b(_.prototype),s(_.prototype,a,(function(){return this})),r.AsyncIterator=_,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var c=new _(l(t,e,n,o),i);return r.isGeneratorFunction(e)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},b(w),s(w,u,"Generator"),s(w,c,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return c.type="throw",c.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(s){return void r(s)}a.done?e(u):Promise.resolve(u).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var c=t.apply(e,n);function a(t){r(c,o,i,a,u,"next",t)}function u(t){r(c,o,i,a,u,"throw",t)}a(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],c=!0,a=!1;try{for(r=r.call(t);!(c=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);c=!0);}catch(u){a=!0,o=u}finally{try{c||null==r.return||r.return()}finally{if(a)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}System.register(["./index-legacy.62c06d64.js","./ua-parser-legacy.5e4c06d6.js","./DeletePopover-legacy.eea88399.js"],(function(t,r){"use strict";var i,c,a,u,s,l,f,h,p,d,y,g,v,m,w,b,_,k,x,L,E,S,j,O,A;return{setters:[function(t){i=t.B,c=t.b,a=t.d,u=t.q,s=t.x,l=t.av,f=t.Q,h=t.ao,p=t.dD,d=t.dE,y=t.dF,g=t.W,v=t.dG,m=t.am,w=t.dH,b=t.dI,_=t.ai,k=t.n,x=t.cr,L=t.e4,E=t.bw,S=t.e5,j=t.cw},function(t){O=t.g},function(t){A=t.D}],execute:function(){t("default",(function(){var t=o(i([]),2),r=t[0],I=t[1],G=o(i(!1),2),P=G[0],N=G[1],T=o(i(null),2),F=(T[0],T[1]),$=o(i(null),2),C=$[0],D=$[1],U=c(),H=a().to,Y=function(){var t=n(e().mark((function t(r){var n,o;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return D(r),t.prev=1,t.next=4,S(r);case 4:n=t.sent,E(n,(function(){k.success(U("session.kick_out_success")),M()}),(function(t,e){if(null!=t&&t.includes("session inactive")||403===e)return k.error(U("session.kick_out_current_session")),j(),void H("/@login");k.error(t||U("session.kick_out_failed"))})),t.next=17;break;case 8:if(t.prev=8,t.t0=t.catch(1),!(o=t.t0 instanceof Error?t.t0.message:String(t.t0)).includes("session inactive")&&!o.includes("401")){t.next=16;break}return k.error(U("session.kick_out_current_session")),j(),H("/@login"),t.abrupt("return");case 16:k.error(U("session.kick_out_failed"));case 17:return t.prev=17,D(null),t.finish(17);case 20:case"end":return t.stop()}}),t,null,[[1,8,17,20]])})));return function(e){return t.apply(this,arguments)}}(),q=function(t){var e=localStorage.getItem("device_key");return e&&t.session_id===e},B=function(){var t=n(e().mark((function t(r){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!q(r)){t.next=7;break}k.error(U("session.kick_out_current_session")),x(),H("/@login?redirect=".concat(encodeURIComponent(window.location.pathname))),t.next=9;break;case 7:return t.next=9,Y(r.session_id);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),M=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return N(!0),F(null),t.prev=2,t.next=5,L();case 5:r=t.sent,E(r,(function(t){I(t||[])}),(function(t){F(t)})),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),F(t.t0 instanceof Error?t.t0.message:"Unknown error");case 12:return t.prev=12,N(!1),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[2,9,12,15]])})));return function(){return t.apply(this,arguments)}}();return u((function(){M()})),s(_,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[s(l,{spacing:"$2",get children(){return s(f,{colorScheme:"accent",get loading(){return P()},onClick:M,get children(){return U("global.refresh")}})}}),s(h,{w:"$full",overflowX:"auto",get children(){return s(p,{highlightOnHover:!0,dense:!0,get children(){return[s(d,{get children(){return s(y,{get children(){return s(g,{each:[{key:"device_id",align:"left"},{key:"system_info",align:"left"},{key:"ip",align:"center"},{key:"last_active",align:"center"},{key:"status",align:"center"},{key:"operations",align:"center"}],children:function(t){return s(v,{get textAlign(){return t.align},get children(){return m((function(){return"operations"===t.key}),!0)()?U("global.operations"):U("session.".concat(t.key))}})}})}})}}),s(w,{get children(){return s(g,{get each(){return r()},children:function(t){return s(y,{get children(){return s(g,{get each(){return[{key:"device_id",align:"left",content:t.session_id?"".concat(t.session_id.slice(0,6),"***").concat(t.session_id.slice(-6)):"-"},{key:"system_info",align:"left",content:t.ua?O(t.ua):"-"},{key:"ip",align:"center",content:t.ip||"-"},{key:"last_active",align:"center",content:t.last_active?new Date(1e3*t.last_active).toLocaleString():"-"},{key:"status",align:"center",content:0===t.status?U("session.active"):U("session.offline")},{key:"operations",align:"center",content:s(l,{spacing:"$2",justifyContent:"center",get children(){return s(A,{get name(){return"".concat(t.session_id?"".concat(t.session_id.slice(0,6),"***").concat(t.session_id.slice(-6)):"-"," (").concat(t.ua?O(t.ua):"-",")")},get loading(){return C()===t.session_id},get disabled(){return null!==C()},onClick:function(){return B(t)},get buttonText(){return U("session.kick_out")}})}})}]},children:function(t){return s(b,{get textAlign(){return t.align},get children(){return t.content}})}})}})}})}})]}})}})]}})}))}}}))}();
|
|
1
|
+
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(O){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),c=new E(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var c=r.delegate;if(c){var a=_(c,r);if(a){if(a===h)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=f(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}(t,r,c),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(O){return{type:"throw",arg:O}}}r.wrap=l;var h={};function p(){}function d(){}function y(){}var g={};s(g,c,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==n&&o.call(m,c)&&(g=m);var w=y.prototype=p.prototype=Object.create(g);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function k(e,r){function n(i,c,a,u){var s=f(e[i],e,c);if("throw"!==s.type){var l=s.arg,h=l.value;return h&&"object"==t(h)&&o.call(h,"__await")?r.resolve(h.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):r.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,u)}))}u(s.arg)}var i;this._invoke=function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}}function _(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function S(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:j}}function j(){return{value:void 0,done:!0}}return d.prototype=y,s(w,"constructor",y),s(y,"constructor",d),d.displayName=s(y,u,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},b(k.prototype),s(k.prototype,a,(function(){return this})),r.AsyncIterator=k,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var c=new k(l(t,e,n,o),i);return r.isGeneratorFunction(e)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},b(w),s(w,u,"Generator"),s(w,c,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},r.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(L),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return c.type="throw",c.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var c=i?i.completion:{};return c.type=t,c.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),L(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(t,e,r,n,o,i,c){try{var a=t[i](c),u=a.value}catch(s){return void r(s)}a.done?e(u):Promise.resolve(u).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var c=t.apply(e,n);function a(t){r(c,o,i,a,u,"next",t)}function u(t){r(c,o,i,a,u,"throw",t)}a(void 0)}))}}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],c=!0,a=!1;try{for(r=r.call(t);!(c=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);c=!0);}catch(u){a=!0,o=u}finally{try{c||null==r.return||r.return()}finally{if(a)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}System.register(["./index-legacy.eace8bff.js","./ua-parser-legacy.5e4c06d6.js","./DeletePopover-legacy.3bef252d.js"],(function(t,r){"use strict";var i,c,a,u,s,l,f,h,p,d,y,g,v,m,w,b,k,_,x,L,E,S,j,O,A;return{setters:[function(t){i=t.B,c=t.b,a=t.d,u=t.q,s=t.x,l=t.av,f=t.Q,h=t.ao,p=t.dF,d=t.dG,y=t.dH,g=t.W,v=t.dI,m=t.am,w=t.dJ,b=t.dK,k=t.ai,_=t.n,x=t.cr,L=t.e6,E=t.bw,S=t.e7,j=t.cw},function(t){O=t.g},function(t){A=t.D}],execute:function(){t("default",(function(){var t=o(i([]),2),r=t[0],I=t[1],G=o(i(!1),2),P=G[0],N=G[1],T=o(i(null),2),F=(T[0],T[1]),$=o(i(null),2),C=$[0],D=$[1],U=c(),H=a().to,Y=function(){var t=n(e().mark((function t(r){var n,o;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return D(r),t.prev=1,t.next=4,S(r);case 4:n=t.sent,E(n,(function(){_.success(U("session.kick_out_success")),J()}),(function(t,e){if(null!=t&&t.includes("session inactive")||403===e)return _.error(U("session.kick_out_current_session")),j(),void H("/@login");_.error(t||U("session.kick_out_failed"))})),t.next=17;break;case 8:if(t.prev=8,t.t0=t.catch(1),!(o=t.t0 instanceof Error?t.t0.message:String(t.t0)).includes("session inactive")&&!o.includes("401")){t.next=16;break}return _.error(U("session.kick_out_current_session")),j(),H("/@login"),t.abrupt("return");case 16:_.error(U("session.kick_out_failed"));case 17:return t.prev=17,D(null),t.finish(17);case 20:case"end":return t.stop()}}),t,null,[[1,8,17,20]])})));return function(e){return t.apply(this,arguments)}}(),q=function(t){var e=localStorage.getItem("device_key");return e&&t.session_id===e},B=function(){var t=n(e().mark((function t(r){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!q(r)){t.next=7;break}_.error(U("session.kick_out_current_session")),x(),H("/@login?redirect=".concat(encodeURIComponent(window.location.pathname))),t.next=9;break;case 7:return t.next=9,Y(r.session_id);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),J=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return N(!0),F(null),t.prev=2,t.next=5,L();case 5:r=t.sent,E(r,(function(t){I(t||[])}),(function(t){F(t)})),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),F(t.t0 instanceof Error?t.t0.message:"Unknown error");case 12:return t.prev=12,N(!1),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[2,9,12,15]])})));return function(){return t.apply(this,arguments)}}();return u((function(){J()})),s(k,{spacing:"$2",alignItems:"start",w:"$full",get children(){return[s(l,{spacing:"$2",get children(){return s(f,{colorScheme:"accent",get loading(){return P()},onClick:J,get children(){return U("global.refresh")}})}}),s(h,{w:"$full",overflowX:"auto",get children(){return s(p,{highlightOnHover:!0,dense:!0,get children(){return[s(d,{get children(){return s(y,{get children(){return s(g,{each:[{key:"device_id",align:"left"},{key:"system_info",align:"left"},{key:"ip",align:"center"},{key:"last_active",align:"center"},{key:"status",align:"center"},{key:"operations",align:"center"}],children:function(t){return s(v,{get textAlign(){return t.align},get children(){return m((function(){return"operations"===t.key}),!0)()?U("global.operations"):U("session.".concat(t.key))}})}})}})}}),s(w,{get children(){return s(g,{get each(){return r()},children:function(t){return s(y,{get children(){return s(g,{get each(){return[{key:"device_id",align:"left",content:t.session_id?"".concat(t.session_id.slice(0,6),"***").concat(t.session_id.slice(-6)):"-"},{key:"system_info",align:"left",content:t.ua?O(t.ua):"-"},{key:"ip",align:"center",content:t.ip||"-"},{key:"last_active",align:"center",content:t.last_active?new Date(1e3*t.last_active).toLocaleString():"-"},{key:"status",align:"center",content:0===t.status?U("session.active"):U("session.offline")},{key:"operations",align:"center",content:s(l,{spacing:"$2",justifyContent:"center",get children(){return s(A,{get name(){return"".concat(t.session_id?"".concat(t.session_id.slice(0,6),"***").concat(t.session_id.slice(-6)):"-"," (").concat(t.ua?O(t.ua):"-",")")},get loading(){return C()===t.session_id},get disabled(){return null!==C()},onClick:function(){return B(t)},get buttonText(){return U("session.kick_out")}})}})}]},children:function(t){return s(b,{get textAlign(){return t.align},get children(){return t.content}})}})}})}})}})]}})}})]}})}))}}}))}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as e,ai as n}from"./index-
|
|
1
|
+
import{x as e,ai as n}from"./index-0ac33e44.js";import{b as r}from"./useTitle-98cd4016.js";import{T as a}from"./Tasks-db5b0556.js";import{g as t,a as o}from"./helper-699382d8.js";import"./Paginator-7e0484cf.js";import"./index-06a2e1d1.js";const p=()=>(r("manage.sidemenu.offline_download"),e(n,{w:"$full",alignItems:"start",spacing:"$4",get children(){return[e(a,{type:"offline_download",canRetry:!0,get nameAnalyzer(){return t()}}),e(a,{type:"offline_download_transfer",canRetry:!0,get nameAnalyzer(){return o()}})]}}));export{p as default};
|
package/dist/assets/{offline_download-legacy.8be0325e.js → offline_download-legacy.92950672.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./index-legacy.
|
|
1
|
+
System.register(["./index-legacy.eace8bff.js","./useTitle-legacy.80f4343f.js","./Tasks-legacy.812cc101.js","./helper-legacy.fbbd18fe.js","./Paginator-legacy.99dfcb34.js","./index-legacy.f9a28a3c.js"],(function(e,n){"use strict";var t,a,l,r,i,s;return{setters:[function(e){t=e.x,a=e.ai},function(e){l=e.b},function(e){r=e.T},function(e){i=e.g,s=e.a},null,null],execute:function(){e("default",(function(){return l("manage.sidemenu.offline_download"),t(a,{w:"$full",alignItems:"start",spacing:"$4",get children(){return[t(r,{type:"offline_download",canRetry:!0,get nameAnalyzer(){return i()}}),t(r,{type:"offline_download_transfer",canRetry:!0,get nameAnalyzer(){return s()}})]}})}))}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,B as s,x as t,Q as i,ad as o}from"./index-
|
|
1
|
+
import{b as a,B as s,x as t,Q as i,ad as o}from"./index-0ac33e44.js";import{F as l}from"./File-b3d6c366.js";import"./storage-class-1ac53f89.js";import"./index-06a2e1d1.js";const g=()=>{const e=a(),[r,n]=s(!1);return t(l,{get children(){return t(i,{as:"a",get href(){return"itms-services://?action=download-manifest&url="+o.raw_url},onClick:()=>{n(!0)},get children(){return e(`home.preview.${r()?"installing":"install"}`)}})}})};export{g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){function r(r,n){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var n=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==n)return;var e,i,l=[],u=!0,a=!1;try{for(n=n.call(r);!(u=(e=n.next()).done)&&(l.push(e.value),!t||l.length!==t);u=!0);}catch(o){a=!0,i=o}finally{try{u||null==n.return||n.return()}finally{if(a)throw i}}return l}(r,n)||function(r,n){if(!r)return;if("string"==typeof r)return t(r,n);var e=Object.prototype.toString.call(r).slice(8,-1);"Object"===e&&r.constructor&&(e=r.constructor.name);if("Map"===e||"Set"===e)return Array.from(r);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return t(r,n)}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,e=new Array(t);n<t;n++)e[n]=r[n];return e}System.register(["./index-legacy.
|
|
1
|
+
!function(){function r(r,n){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var n=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==n)return;var e,i,l=[],u=!0,a=!1;try{for(n=n.call(r);!(u=(e=n.next()).done)&&(l.push(e.value),!t||l.length!==t);u=!0);}catch(o){a=!0,i=o}finally{try{u||null==n.return||n.return()}finally{if(a)throw i}}return l}(r,n)||function(r,n){if(!r)return;if("string"==typeof r)return t(r,n);var e=Object.prototype.toString.call(r).slice(8,-1);"Object"===e&&r.constructor&&(e=r.constructor.name);if("Map"===e||"Set"===e)return Array.from(r);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return t(r,n)}(r,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,e=new Array(t);n<t;n++)e[n]=r[n];return e}System.register(["./index-legacy.eace8bff.js","./File-legacy.d850788a.js","./storage-class-legacy.7f6d9768.js","./index-legacy.f9a28a3c.js"],(function(t,n){"use strict";var e,i,l,u,a,o;return{setters:[function(r){e=r.b,i=r.B,l=r.x,u=r.Q,a=r.ad},function(r){o=r.F},null,null],execute:function(){t("default",(function(){var t=e(),n=r(i(!1),2),c=n[0],s=n[1];return l(o,{get children(){return l(u,{as:"a",get href(){return"itms-services://?action=download-manifest&url="+a.raw_url},onClick:function(){s(!0)},get children(){return t("home.preview.".concat(c()?"installing":"install"))}})}})}))}}}))}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{dW as X,dX as R,B as P,V as N,r as S,A,x as E,c1 as K,S as W,dY as q,b_ as T,dZ as k,b0 as H,z as U,C as Z,y as I,dU as Q,dR as tt,az as F,E as et}from"./index-0ac33e44.js";var $=(t=>(t.menu="solid-contextmenu",t.submenu="solid-contextmenu solid-contextmenu__submenu",t.submenuArrow="solid-contextmenu__submenu-arrow",t.submenuOpen="solid-contextmenu__submenu--is-open",t.separator="solid-contextmenu__separator",t.item="solid-contextmenu__item",t.itemDisabled="solid-contextmenu__item--disabled",t.itemContent="solid-contextmenu__item__content",t.theme="solid-contextmenu__theme--",t.animationWillEnter="solid-contextmenu__will-enter--",t.animationWillLeave="solid-contextmenu__will-leave--",t))($||{});function O(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}const nt=t=>{let e,i=!0;const[o,c]=P(),[y,g]=P(),x=U(()=>t.children),m=t.name||"s";t=N({name:m,enterActiveClass:m+"-enter-active",enterClass:m+"-enter",enterToClass:m+"-enter-to",exitActiveClass:m+"-exit-active",exitClass:m+"-exit",exitToClass:m+"-exit-to"},t);const{onBeforeEnter:C,onEnter:a,onAfterEnter:u,onBeforeExit:f,onExit:w,onAfterExit:r}=t;function b(n,s){if(!i||t.appear){let l=function(v){n&&(!v||v.target===n)&&(n.removeEventListener("transitionend",l),n.removeEventListener("animationend",l),n.classList.remove(...d),n.classList.remove(...h),et(()=>{o()!==n&&c(n),y()===n&&g(void 0)}),u&&u(n),t.mode==="inout"&&p(n,s))};const _=t.enterClass.split(" "),d=t.enterActiveClass.split(" "),h=t.enterToClass.split(" ");C&&C(n),n.classList.add(..._),n.classList.add(...d),O(()=>{n.classList.remove(..._),n.classList.add(...h),a&&a(n,()=>l()),(!a||a.length<2)&&(n.addEventListener("transitionend",l),n.addEventListener("animationend",l))})}s&&!t.mode?g(n):c(n)}function p(n,s){const l=t.exitClass.split(" "),_=t.exitActiveClass.split(" "),d=t.exitToClass.split(" ");if(!s.parentNode)return h();f&&f(s),s.classList.add(...l),s.classList.add(..._),O(()=>{s.classList.remove(...l),s.classList.add(...d)}),w&&w(s,()=>h()),(!w||w.length<2)&&(s.addEventListener("transitionend",h),s.addEventListener("animationend",h));function h(v){(!v||v.target===s)&&(s.removeEventListener("transitionend",h),s.removeEventListener("animationend",h),s.classList.remove(..._),s.classList.remove(...d),o()===s&&c(void 0),r&&r(s),t.mode==="outin"&&b(n,s))}}return Z(n=>{for(e=x();typeof e=="function";)e=e();return I(()=>(e&&e!==n&&(t.mode!=="outin"?b(e,n):i&&c(e)),n&&n!==e&&t.mode!=="inout"&&p(e,n),i=!1,e))}),[o,y]};function it(t){return{all:t=t||new Map,on:function(e,i){var o=t.get(e);o?o.push(i):t.set(e,[i])},off:function(e,i){var o=t.get(e);o&&(i?o.splice(o.indexOf(i)>>>0,1):t.set(e,[]))},emit:function(e,i){var o=t.get(e);o&&o.slice().map(function(c){c(i)}),(o=t.get("*"))&&o.slice().map(function(c){c(e,i)})}}}const L=it(),Y=Q(),G=()=>tt(Y);function J(t){var e,i,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(i=J(t[e]))&&(o&&(o+=" "),o+=i);else for(e in t)t[e]&&(o&&(o+=" "),o+=e);return o}function z(){for(var t,e,i=0,o="";i<arguments.length;)(t=arguments[i++])&&(e=J(t))&&(o&&(o+=" "),o+=e);return o}const ot=F("<div></div>"),V=(t,e,i)=>t+e<=i?t:t<e?i-e:t-e,st=(t,e)=>{const i={width:window.innerWidth,height:window.innerHeight};return{x:V(t.x,e.width,i.width),y:V(t.y,e.height,i.height)}},ht=t=>{const[e,i]=R(t,["id","theme","animation","onShown","onHidden"]),[o,c]=P(!1),[y,g]=P({x:0,y:0});let x;const[m,C]=P();L.on("show",r=>{r.id===e.id&&(r.event.preventDefault(),C(r.props),c(!0),g(r.position??st({x:r.event.clientX,y:r.event.clientY},{width:x.offsetWidth,height:x.offsetHeight})))});const a=()=>{L.emit("hide",e.id),c(!1)},u=N({shown:o,animation:"scale",hide:a,props:m},e);L.on("hideAll",()=>{a()}),S(()=>{L.off("show"),L.off("hideAll")});const f=A(()=>{let r="";return e.animation&&(r=`solid-contextmenu-${e.animation}`),console.log(r),r}),w=A(()=>({enterActiveClass:f()+"-enter-active",exitActiveClass:f()+"-exit-active"}));return E(Y.Provider,{value:u,get children(){return E(K,{get children(){return E(nt,N(w,{get children(){return E(W,{get when(){return o()},get children(){const r=ot.cloneNode(!0),b=x;return typeof b=="function"?b(r):x=r,rt(r,()=>a()),q(r,i,!1,!1),T(p=>{const n=z($.menu,i.class,{[`${$.theme}${e.theme}`]:e.theme}),s=y().x+"px",l=y().y+"px";return n!==p._v$&&k(r,p._v$=n),s!==p._v$2&&r.style.setProperty("left",p._v$2=s),l!==p._v$3&&r.style.setProperty("top",p._v$3=l),p},{_v$:void 0,_v$2:void 0,_v$3:void 0}),r}})}}))}})}})};function rt(t,e){const i=o=>{var c;return!t.contains(o.target)&&((c=e())==null?void 0:c())};document.body.addEventListener("click",i),S(()=>document.body.removeEventListener("click",i))}function dt(t){return typeof t=="function"}function D(t,e){return dt(t)?t(e):t}const at=F("<div><div></div></div>"),ut=t=>{const[e,i]=R(t,["hidden","disabled","onClick","data","children"]),o=N({hidden:!1,disabled:!1},e),{props:c,hide:y}=G(),g=A(()=>({props:c(),data:t.data})),x=A(()=>D(o.disabled,g())),m=A(()=>D(o.hidden,g())),C=a=>{var u;x()||((u=t.onClick)==null||u.call(t,{event:a,...g()}),y())};return E(W,{get when(){return!m()},get children(){const a=at.cloneNode(!0),u=a.firstChild;return a.$$click=C,q(a,i,!1,!0),H(u,()=>e.children),T(f=>{const w=z($.item,{[$.itemDisabled]:x()}),r=$.itemContent;return w!==f._v$&&k(a,f._v$=w),r!==f._v$2&&k(u,f._v$2=r),f},{_v$:void 0,_v$2:void 0}),a}})};X(["click"]);const lt=F("<div></div>"),ct=F("<div><div><span></span></div></div>"),mt=t=>{const[e,i]=R(t,["arrow","children","disabled","hidden","label","class"]),o=N({arrow:"▶️",disabled:!1,hidden:!1},e),{props:c,id:y}=G(),g=A(()=>({props:c()})),x=A(()=>D(o.disabled,g())),m=A(()=>D(o.hidden,g()));let C,a;const[u,f]=P({x:0,y:0}),w=()=>{const n=C.getBoundingClientRect(),s=a.getBoundingClientRect(),l={width:window.innerWidth,height:window.innerHeight};let _=n.right;_+s.width>l.width&&(n.left-s.width>0?_=n.left-s.width:_=l.width-s.width);let d=n.top;d+s.height>l.height&&(n.bottom-s.height>0?d=n.bottom-s.height:d=l.height-s.height),f({x:_,y:d}),console.log(u())},[r,b]=P(!1),p=()=>{b(!0),w()};return L.on("hide",n=>{n===y&&b(!1)}),S(()=>{L.off("hide")}),E(W,{get when(){return!m()},get children(){const n=ct.cloneNode(!0),s=n.firstChild,l=s.firstChild;n.$$click=()=>r()?b(!1):p(),n.addEventListener("mouseleave",()=>b(!1)),n.addEventListener("mouseenter",()=>p()),q(n,i,!1,!0);const _=C;return typeof _=="function"?_(s):C=s,H(s,()=>o.label,l),H(l,()=>o.arrow),H(n,E(W,{get when(){return r()},get children(){const d=lt.cloneNode(!0),h=a;return typeof h=="function"?h(d):a=d,H(d,()=>o.children),T(v=>{const B=$.submenu,j=u().x+"px",M=u().y+"px";return B!==v._v$&&k(d,v._v$=B),j!==v._v$2&&d.style.setProperty("left",v._v$2=j),M!==v._v$3&&d.style.setProperty("top",v._v$3=M),v},{_v$:void 0,_v$2:void 0,_v$3:void 0}),d}}),null),T(d=>{const h=z($.item,e.class,{[$.itemDisabled]:x()}),v=$.itemContent,B=$.submenuArrow;return h!==d._v$4&&k(n,d._v$4=h),v!==d._v$5&&k(s,d._v$5=v),B!==d._v$6&&k(l,d._v$6=B),d},{_v$4:void 0,_v$5:void 0,_v$6:void 0}),n}})};X(["click"]);const ft=t=>({show:(e,i)=>{L.emit("show",{id:(i==null?void 0:i.id)||(t==null?void 0:t.id),props:(i==null?void 0:i.props)||(t==null?void 0:t.props),event:e,position:i==null?void 0:i.position})},hideAll:()=>{L.emit("hideAll")}});export{mt as C,ft as b,ht as w,ut as x};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var o,i,r=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!t||r.length!==t);s=!0);}catch(c){a=!0,i=c}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return r}(e,t)||r(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}System.register(["./index-legacy.62c06d64.js"],(function(r,s){"use strict";var a,c,l,u,d,m,f,p,_,v,x,h,y,b,g,w,$,k,O,C;return{setters:[function(e){a=e.dU,c=e.dV,l=e.B,u=e.V,d=e.r,m=e.A,f=e.x,p=e.c1,_=e.S,v=e.dW,x=e.b_,h=e.dX,y=e.b0,b=e.z,g=e.C,w=e.y,$=e.dS,k=e.dP,O=e.az,C=e.E}],execute:function(){var s=document.createElement("style");s.textContent=".solid-contextmenu{position:fixed;user-select:none;background-color:#fff;box-sizing:border-box;box-shadow:0 10px 30px -5px rgba(0,0,0,.3);border-radius:6px;padding:6px 0;min-width:200px;z-index:100}.solid-contextmenu__submenu--is-open,.solid-contextmenu__submenu--is-open>.solid-contextmenu__item__content{color:#fff;background-color:#4393e6}.solid-contextmenu__submenu--is-open>.solid-contextmenu__submenu{pointer-events:initial;opacity:1}.solid-contextmenu .solid-contextmenu__submenu{position:fixed;pointer-events:none;transition:opacity .275s}.solid-contextmenu__submenu-arrow{margin-left:auto;font-size:12px}.solid-contextmenu__separator{width:100%;height:1px;cursor:default;margin:4px 0;background-color:rgba(0,0,0,.2)}.solid-contextmenu__will-leave--disabled{pointer-events:none}.solid-contextmenu__item{cursor:pointer;position:relative}.solid-contextmenu__item:focus{outline:0}.solid-contextmenu__item:not(.solid-contextmenu__item--disabled):hover>.solid-contextmenu__item__content,.solid-contextmenu__item:not(.solid-contextmenu__item--disabled):focus>.solid-contextmenu__item__content{color:#fff;background-color:#4393e6}.solid-contextmenu__item:not(.solid-contextmenu__item--disabled):hover>.solid-contextmenu__submenu{pointer-events:initial;opacity:1}.solid-contextmenu__item--disabled{cursor:default;opacity:.5}.solid-contextmenu__item__content{padding:6px 12px;display:flex;align-items:center;white-space:nowrap;color:#333;position:relative}.solid-contextmenu__theme--dark,.solid-contextmenu__theme--dark .solid-contextmenu__submenu{background-color:rgba(40,40,40,.98)}.solid-contextmenu__theme--dark .solid-contextmenu__separator{background-color:#eee}.solid-contextmenu__theme--dark .solid-contextmenu__item__content{color:#fff}.solid-contextmenu__theme--light .solid-contextmenu__separator{background-color:#eee}.solid-contextmenu__theme--light .solid-contextmenu__submenu--is-open,.solid-contextmenu__theme--light .solid-contextmenu__submenu--is-open>.solid-contextmenu__item__content{color:#4393e6;background-color:#e0eefd}.solid-contextmenu__theme--light .solid-contextmenu__item:not(.solid-contextmenu__item--disabled):hover>.solid-contextmenu__item__content,.solid-contextmenu__theme--light .solid-contextmenu__item:not(.solid-contextmenu__item--disabled):focus>.solid-contextmenu__item__content{color:#4393e6;background-color:#e0eefd}.solid-contextmenu__theme--light .solid-contextmenu__item__content{color:#666}@keyframes solid-contextmenu__scaleIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:1}}@keyframes solid-contextmenu__scaleOut{0%{opacity:1}to{opacity:0;transform:scale3d(.3,.3,.3)}}.solid-contextmenu-scale-enter-active{transform-origin:top left;animation:solid-contextmenu__scaleIn .3s}.solid-contextmenu-scale-exit-active{transform-origin:top left;animation:solid-contextmenu__scaleOut .3s}@keyframes solid-contextmenu__fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes solid-contextmenu__fadeOut{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(10px)}}.solid-contextmenu-fade-enter-active{animation:solid-contextmenu__fadeIn .3s ease}.solid-contextmenu-fade-exit-active{animation:solid-contextmenu__fadeOut .3s ease}@keyframes solid-contextmenu__flipInX{0%{transform:perspective(800px) rotateX(45deg)}to{transform:perspective(800px)}}@keyframes solid-contextmenu__flipOutX{0%{transform:perspective(800px)}to{transform:perspective(800px) rotateX(45deg);opacity:0}}.solid-contextmenu-flip-enter-active{backface-visibility:visible!important;transform-origin:top center;animation:solid-contextmenu__flipInX .3s}.solid-contextmenu-flip-exit-active{transform-origin:top center;animation:solid-contextmenu__flipOutX .3s;backface-visibility:visible!important}@keyframes swing-in-top-fwd{0%{transform:rotateX(-100deg);transform-origin:top;opacity:0}to{transform:rotateX(0);transform-origin:top;opacity:1}}@keyframes solid-contextmenu__slideIn{0%{opacity:0;transform:scale3d(1,.3,1)}to{opacity:1}}@keyframes solid-contextmenu__slideOut{0%{opacity:1}to{opacity:0;transform:scale3d(1,.3,1)}}.solid-contextmenu-slide-enter-active{transform-origin:top center;animation:solid-contextmenu__slideIn .3s}.solid-contextmenu-slide-exit-active{transform-origin:top center;animation:solid-contextmenu__slideOut .3s}\n",document.head.appendChild(s);var A=function(e){return e.menu="solid-contextmenu",e.submenu="solid-contextmenu solid-contextmenu__submenu",e.submenuArrow="solid-contextmenu__submenu-arrow",e.submenuOpen="solid-contextmenu__submenu--is-open",e.separator="solid-contextmenu__separator",e.item="solid-contextmenu__item",e.itemDisabled="solid-contextmenu__item--disabled",e.itemContent="solid-contextmenu__item__content",e.theme="solid-contextmenu__theme--",e.animationWillEnter="solid-contextmenu__will-enter--",e.animationWillLeave="solid-contextmenu__will-leave--",e}(A||{});function E(e){requestAnimationFrame((function(){requestAnimationFrame(e)}))}var L=function(e){var t,n=!0,r=i(l(),2),s=r[0],a=r[1],c=i(l(),2),d=c[0],m=c[1],f=b((function(){return e.children})),p=e.name||"s",_=e=u({name:p,enterActiveClass:p+"-enter-active",enterClass:p+"-enter",enterToClass:p+"-enter-to",exitActiveClass:p+"-exit-active",exitClass:p+"-exit",exitToClass:p+"-exit-to"},e),v=_.onBeforeEnter,x=_.onEnter,h=_.onAfterEnter,y=_.onBeforeExit,$=_.onExit,k=_.onAfterExit;function O(t,i){if(!n||e.appear){var r,c,l=function n(r){var c,l;t&&(!r||r.target===t)&&(t.removeEventListener("transitionend",n),t.removeEventListener("animationend",n),(c=t.classList).remove.apply(c,o(f)),(l=t.classList).remove.apply(l,o(p)),C((function(){s()!==t&&a(t),d()===t&&m(void 0)})),h&&h(t),"inout"===e.mode&&A(t,i))},u=e.enterClass.split(" "),f=e.enterActiveClass.split(" "),p=e.enterToClass.split(" ");v&&v(t),(r=t.classList).add.apply(r,o(u)),(c=t.classList).add.apply(c,o(f)),E((function(){var e,n;(e=t.classList).remove.apply(e,o(u)),(n=t.classList).add.apply(n,o(p)),x&&x(t,(function(){return l()})),(!x||x.length<2)&&(t.addEventListener("transitionend",l),t.addEventListener("animationend",l))}))}i&&!e.mode?m(t):a(t)}function A(t,n){var i,r,c=e.exitClass.split(" "),l=e.exitActiveClass.split(" "),u=e.exitToClass.split(" ");if(!n.parentNode)return d();function d(i){var r,c;(!i||i.target===n)&&(n.removeEventListener("transitionend",d),n.removeEventListener("animationend",d),(r=n.classList).remove.apply(r,o(l)),(c=n.classList).remove.apply(c,o(u)),s()===n&&a(void 0),k&&k(n),"outin"===e.mode&&O(t,n))}y&&y(n),(i=n.classList).add.apply(i,o(c)),(r=n.classList).add.apply(r,o(l)),E((function(){var e,t;(e=n.classList).remove.apply(e,o(c)),(t=n.classList).add.apply(t,o(u))})),$&&$(n,(function(){return d()})),(!$||$.length<2)&&(n.addEventListener("transitionend",d),n.addEventListener("animationend",d))}return g((function(o){for(t=f();"function"==typeof t;)t=t();return w((function(){return t&&t!==o&&("outin"!==e.mode?O(t,o):n&&a(t)),o&&o!==t&&"inout"!==e.mode&&A(t,o),n=!1,t}))})),[s,d]};var S,j={all:S=S||new Map,on:function(e,t){var n=S.get(e);n?n.push(t):S.set(e,[t])},off:function(e,t){var n=S.get(e);n&&(t?n.splice(n.indexOf(t)>>>0,1):S.set(e,[]))},emit:function(e,t){var n=S.get(e);n&&n.slice().map((function(e){e(t)})),(n=S.get("*"))&&n.slice().map((function(n){n(e,t)}))}},P=$(),I=function(){return k(P)};function X(e){var t,o,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==n(e))if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(o=X(e[t]))&&(i&&(i+=" "),i+=o);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function D(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=X(e))&&(o&&(o+=" "),o+=t);return o}var T=O("<div></div>"),W=function(e,t,n){return e+t<=n?e:e<t?n-t:e-t};r("w",(function(e){var n,o=i(c(e,["id","theme","animation","onShown","onHidden"]),2),r=o[0],s=o[1],a=i(l(!1),2),y=a[0],b=a[1],g=i(l({x:0,y:0}),2),w=g[0],$=g[1],k=i(l(),2),O=k[0],C=k[1];j.on("show",(function(e){var t;e.id===r.id&&(e.event.preventDefault(),C(e.props),b(!0),$(null!==(t=e.position)&&void 0!==t?t:function(e,t){var n={width:window.innerWidth,height:window.innerHeight};return{x:W(e.x,t.width,n.width),y:W(e.y,t.height,n.height)}}({x:e.event.clientX,y:e.event.clientY},{width:n.offsetWidth,height:n.offsetHeight})))}));var E=function(){j.emit("hide",r.id),b(!1)},S=u({shown:y,animation:"scale",hide:E,props:O},r);j.on("hideAll",(function(){E()})),d((function(){j.off("show"),j.off("hideAll")}));var I=m((function(){var e="";return r.animation&&(e="solid-contextmenu-".concat(r.animation)),console.log(e),e})),X=m((function(){return{enterActiveClass:I()+"-enter-active",exitActiveClass:I()+"-exit-active"}}));return f(P.Provider,{value:S,get children(){return f(p,{get children(){return f(L,u(X,{get children(){return f(_,{get when(){return y()},get children(){var e=T.cloneNode(!0);return"function"==typeof n?n(e):n=e,function(e,t){var n=function(n){var o;return!e.contains(n.target)&&(null===(o=t())||void 0===o?void 0:o())};document.body.addEventListener("click",n),d((function(){return document.body.removeEventListener("click",n)}))}(e,(function(){return E()})),v(e,s,!1,!1),x((function(n){var o=D(A.menu,s.class,t({},"".concat(A.theme).concat(r.theme),r.theme)),i=w().x+"px",a=w().y+"px";return o!==n._v$&&h(e,n._v$=o),i!==n._v$2&&e.style.setProperty("left",n._v$2=i),a!==n._v$3&&e.style.setProperty("top",n._v$3=a),n}),{_v$:void 0,_v$2:void 0,_v$3:void 0}),e}})}}))}})}})}));function z(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}var B=O("<div><div></div></div>");r("x",(function(n){var o=i(c(n,["hidden","disabled","onClick","data","children"]),2),r=o[0],s=o[1],a=u({hidden:!1,disabled:!1},r),l=I(),d=l.props,p=l.hide,b=m((function(){return{props:d(),data:n.data}})),g=m((function(){return z(a.disabled,b())})),w=m((function(){return z(a.hidden,b())})),$=function(o){var i;g()||(null!==(i=n.onClick)&&void 0!==i&&i.call(n,function(n){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?e(Object(i),!0).forEach((function(e){t(n,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))}))}return n}({event:o},b())),p())};return f(_,{get when(){return!w()},get children(){var e=B.cloneNode(!0),n=e.firstChild;return e.$$click=$,v(e,s,!1,!0),y(n,(function(){return r.children})),x((function(o){var i=D(A.item,t({},A.itemDisabled,g())),r=A.itemContent;return i!==o._v$&&h(e,o._v$=i),r!==o._v$2&&h(n,o._v$2=r),o}),{_v$:void 0,_v$2:void 0}),e}})}));a(["click"]);var N=O("<div></div>"),Y=O("<div><div><span></span></div></div>");r("C",(function(e){var n,o,r=i(c(e,["arrow","children","disabled","hidden","label","class"]),2),s=r[0],a=r[1],p=u({arrow:"▶️",disabled:!1,hidden:!1},s),b=I(),g=b.props,w=b.id,$=m((function(){return{props:g()}})),k=m((function(){return z(p.disabled,$())})),O=m((function(){return z(p.hidden,$())})),C=i(l({x:0,y:0}),2),E=C[0],L=C[1],S=i(l(!1),2),P=S[0],X=S[1],T=function(){X(!0),function(){var e=n.getBoundingClientRect(),t=o.getBoundingClientRect(),i=window.innerWidth,r=window.innerHeight,s=e.right;s+t.width>i&&(s=e.left-t.width>0?e.left-t.width:i-t.width);var a=e.top;a+t.height>r&&(a=e.bottom-t.height>0?e.bottom-t.height:r-t.height),L({x:s,y:a}),console.log(E())}()};return j.on("hide",(function(e){e===w&&X(!1)})),d((function(){j.off("hide")})),f(_,{get when(){return!O()},get children(){var e=Y.cloneNode(!0),i=e.firstChild,r=i.firstChild;e.$$click=function(){return P()?X(!1):T()},e.addEventListener("mouseleave",(function(){return X(!1)})),e.addEventListener("mouseenter",(function(){return T()})),v(e,a,!1,!0);return"function"==typeof n?n(i):n=i,y(i,(function(){return p.label}),r),y(r,(function(){return p.arrow})),y(e,f(_,{get when(){return P()},get children(){var e=N.cloneNode(!0);return"function"==typeof o?o(e):o=e,y(e,(function(){return p.children})),x((function(t){var n=A.submenu,o=E().x+"px",i=E().y+"px";return n!==t._v$&&h(e,t._v$=n),o!==t._v$2&&e.style.setProperty("left",t._v$2=o),i!==t._v$3&&e.style.setProperty("top",t._v$3=i),t}),{_v$:void 0,_v$2:void 0,_v$3:void 0}),e}}),null),x((function(n){var o=D(A.item,s.class,t({},A.itemDisabled,k())),a=A.itemContent,c=A.submenuArrow;return o!==n._v$4&&h(e,n._v$4=o),a!==n._v$5&&h(i,n._v$5=a),c!==n._v$6&&h(r,n._v$6=c),n}),{_v$4:void 0,_v$5:void 0,_v$6:void 0}),e}})}));a(["click"]);r("b",(function(e){return{show:function(t,n){j.emit("show",{id:(null==n?void 0:n.id)||(null==e?void 0:e.id),props:(null==n?void 0:n.props)||(null==e?void 0:e.props),event:t,position:null==n?void 0:n.position})},hideAll:function(){j.emit("hideAll")}}}))}}}))}();
|
|
1
|
+
!function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var o,i,r=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!t||r.length!==t);s=!0);}catch(c){a=!0,i=c}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return r}(e,t)||r(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}System.register(["./index-legacy.eace8bff.js"],(function(r,s){"use strict";var a,c,l,u,d,m,f,p,_,v,x,h,y,b,g,w,$,k,O,C;return{setters:[function(e){a=e.dW,c=e.dX,l=e.B,u=e.V,d=e.r,m=e.A,f=e.x,p=e.c1,_=e.S,v=e.dY,x=e.b_,h=e.dZ,y=e.b0,b=e.z,g=e.C,w=e.y,$=e.dU,k=e.dR,O=e.az,C=e.E}],execute:function(){var s=document.createElement("style");s.textContent=".solid-contextmenu{position:fixed;user-select:none;background-color:#fff;box-sizing:border-box;box-shadow:0 10px 30px -5px rgba(0,0,0,.3);border-radius:6px;padding:6px 0;min-width:200px;z-index:100}.solid-contextmenu__submenu--is-open,.solid-contextmenu__submenu--is-open>.solid-contextmenu__item__content{color:#fff;background-color:#4393e6}.solid-contextmenu__submenu--is-open>.solid-contextmenu__submenu{pointer-events:initial;opacity:1}.solid-contextmenu .solid-contextmenu__submenu{position:fixed;pointer-events:none;transition:opacity .275s}.solid-contextmenu__submenu-arrow{margin-left:auto;font-size:12px}.solid-contextmenu__separator{width:100%;height:1px;cursor:default;margin:4px 0;background-color:rgba(0,0,0,.2)}.solid-contextmenu__will-leave--disabled{pointer-events:none}.solid-contextmenu__item{cursor:pointer;position:relative}.solid-contextmenu__item:focus{outline:0}.solid-contextmenu__item:not(.solid-contextmenu__item--disabled):hover>.solid-contextmenu__item__content,.solid-contextmenu__item:not(.solid-contextmenu__item--disabled):focus>.solid-contextmenu__item__content{color:#fff;background-color:#4393e6}.solid-contextmenu__item:not(.solid-contextmenu__item--disabled):hover>.solid-contextmenu__submenu{pointer-events:initial;opacity:1}.solid-contextmenu__item--disabled{cursor:default;opacity:.5}.solid-contextmenu__item__content{padding:6px 12px;display:flex;align-items:center;white-space:nowrap;color:#333;position:relative}.solid-contextmenu__theme--dark,.solid-contextmenu__theme--dark .solid-contextmenu__submenu{background-color:rgba(40,40,40,.98)}.solid-contextmenu__theme--dark .solid-contextmenu__separator{background-color:#eee}.solid-contextmenu__theme--dark .solid-contextmenu__item__content{color:#fff}.solid-contextmenu__theme--light .solid-contextmenu__separator{background-color:#eee}.solid-contextmenu__theme--light .solid-contextmenu__submenu--is-open,.solid-contextmenu__theme--light .solid-contextmenu__submenu--is-open>.solid-contextmenu__item__content{color:#4393e6;background-color:#e0eefd}.solid-contextmenu__theme--light .solid-contextmenu__item:not(.solid-contextmenu__item--disabled):hover>.solid-contextmenu__item__content,.solid-contextmenu__theme--light .solid-contextmenu__item:not(.solid-contextmenu__item--disabled):focus>.solid-contextmenu__item__content{color:#4393e6;background-color:#e0eefd}.solid-contextmenu__theme--light .solid-contextmenu__item__content{color:#666}@keyframes solid-contextmenu__scaleIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:1}}@keyframes solid-contextmenu__scaleOut{0%{opacity:1}to{opacity:0;transform:scale3d(.3,.3,.3)}}.solid-contextmenu-scale-enter-active{transform-origin:top left;animation:solid-contextmenu__scaleIn .3s}.solid-contextmenu-scale-exit-active{transform-origin:top left;animation:solid-contextmenu__scaleOut .3s}@keyframes solid-contextmenu__fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes solid-contextmenu__fadeOut{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(10px)}}.solid-contextmenu-fade-enter-active{animation:solid-contextmenu__fadeIn .3s ease}.solid-contextmenu-fade-exit-active{animation:solid-contextmenu__fadeOut .3s ease}@keyframes solid-contextmenu__flipInX{0%{transform:perspective(800px) rotateX(45deg)}to{transform:perspective(800px)}}@keyframes solid-contextmenu__flipOutX{0%{transform:perspective(800px)}to{transform:perspective(800px) rotateX(45deg);opacity:0}}.solid-contextmenu-flip-enter-active{backface-visibility:visible!important;transform-origin:top center;animation:solid-contextmenu__flipInX .3s}.solid-contextmenu-flip-exit-active{transform-origin:top center;animation:solid-contextmenu__flipOutX .3s;backface-visibility:visible!important}@keyframes swing-in-top-fwd{0%{transform:rotateX(-100deg);transform-origin:top;opacity:0}to{transform:rotateX(0);transform-origin:top;opacity:1}}@keyframes solid-contextmenu__slideIn{0%{opacity:0;transform:scale3d(1,.3,1)}to{opacity:1}}@keyframes solid-contextmenu__slideOut{0%{opacity:1}to{opacity:0;transform:scale3d(1,.3,1)}}.solid-contextmenu-slide-enter-active{transform-origin:top center;animation:solid-contextmenu__slideIn .3s}.solid-contextmenu-slide-exit-active{transform-origin:top center;animation:solid-contextmenu__slideOut .3s}\n",document.head.appendChild(s);var A=function(e){return e.menu="solid-contextmenu",e.submenu="solid-contextmenu solid-contextmenu__submenu",e.submenuArrow="solid-contextmenu__submenu-arrow",e.submenuOpen="solid-contextmenu__submenu--is-open",e.separator="solid-contextmenu__separator",e.item="solid-contextmenu__item",e.itemDisabled="solid-contextmenu__item--disabled",e.itemContent="solid-contextmenu__item__content",e.theme="solid-contextmenu__theme--",e.animationWillEnter="solid-contextmenu__will-enter--",e.animationWillLeave="solid-contextmenu__will-leave--",e}(A||{});function E(e){requestAnimationFrame((function(){requestAnimationFrame(e)}))}var L=function(e){var t,n=!0,r=i(l(),2),s=r[0],a=r[1],c=i(l(),2),d=c[0],m=c[1],f=b((function(){return e.children})),p=e.name||"s",_=e=u({name:p,enterActiveClass:p+"-enter-active",enterClass:p+"-enter",enterToClass:p+"-enter-to",exitActiveClass:p+"-exit-active",exitClass:p+"-exit",exitToClass:p+"-exit-to"},e),v=_.onBeforeEnter,x=_.onEnter,h=_.onAfterEnter,y=_.onBeforeExit,$=_.onExit,k=_.onAfterExit;function O(t,i){if(!n||e.appear){var r,c,l=function n(r){var c,l;t&&(!r||r.target===t)&&(t.removeEventListener("transitionend",n),t.removeEventListener("animationend",n),(c=t.classList).remove.apply(c,o(f)),(l=t.classList).remove.apply(l,o(p)),C((function(){s()!==t&&a(t),d()===t&&m(void 0)})),h&&h(t),"inout"===e.mode&&A(t,i))},u=e.enterClass.split(" "),f=e.enterActiveClass.split(" "),p=e.enterToClass.split(" ");v&&v(t),(r=t.classList).add.apply(r,o(u)),(c=t.classList).add.apply(c,o(f)),E((function(){var e,n;(e=t.classList).remove.apply(e,o(u)),(n=t.classList).add.apply(n,o(p)),x&&x(t,(function(){return l()})),(!x||x.length<2)&&(t.addEventListener("transitionend",l),t.addEventListener("animationend",l))}))}i&&!e.mode?m(t):a(t)}function A(t,n){var i,r,c=e.exitClass.split(" "),l=e.exitActiveClass.split(" "),u=e.exitToClass.split(" ");if(!n.parentNode)return d();function d(i){var r,c;(!i||i.target===n)&&(n.removeEventListener("transitionend",d),n.removeEventListener("animationend",d),(r=n.classList).remove.apply(r,o(l)),(c=n.classList).remove.apply(c,o(u)),s()===n&&a(void 0),k&&k(n),"outin"===e.mode&&O(t,n))}y&&y(n),(i=n.classList).add.apply(i,o(c)),(r=n.classList).add.apply(r,o(l)),E((function(){var e,t;(e=n.classList).remove.apply(e,o(c)),(t=n.classList).add.apply(t,o(u))})),$&&$(n,(function(){return d()})),(!$||$.length<2)&&(n.addEventListener("transitionend",d),n.addEventListener("animationend",d))}return g((function(o){for(t=f();"function"==typeof t;)t=t();return w((function(){return t&&t!==o&&("outin"!==e.mode?O(t,o):n&&a(t)),o&&o!==t&&"inout"!==e.mode&&A(t,o),n=!1,t}))})),[s,d]};var j,S={all:j=j||new Map,on:function(e,t){var n=j.get(e);n?n.push(t):j.set(e,[t])},off:function(e,t){var n=j.get(e);n&&(t?n.splice(n.indexOf(t)>>>0,1):j.set(e,[]))},emit:function(e,t){var n=j.get(e);n&&n.slice().map((function(e){e(t)})),(n=j.get("*"))&&n.slice().map((function(n){n(e,t)}))}},P=$(),I=function(){return k(P)};function X(e){var t,o,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==n(e))if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(o=X(e[t]))&&(i&&(i+=" "),i+=o);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function D(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=X(e))&&(o&&(o+=" "),o+=t);return o}var T=O("<div></div>"),W=function(e,t,n){return e+t<=n?e:e<t?n-t:e-t};r("w",(function(e){var n,o=i(c(e,["id","theme","animation","onShown","onHidden"]),2),r=o[0],s=o[1],a=i(l(!1),2),y=a[0],b=a[1],g=i(l({x:0,y:0}),2),w=g[0],$=g[1],k=i(l(),2),O=k[0],C=k[1];S.on("show",(function(e){var t;e.id===r.id&&(e.event.preventDefault(),C(e.props),b(!0),$(null!==(t=e.position)&&void 0!==t?t:function(e,t){var n={width:window.innerWidth,height:window.innerHeight};return{x:W(e.x,t.width,n.width),y:W(e.y,t.height,n.height)}}({x:e.event.clientX,y:e.event.clientY},{width:n.offsetWidth,height:n.offsetHeight})))}));var E=function(){S.emit("hide",r.id),b(!1)},j=u({shown:y,animation:"scale",hide:E,props:O},r);S.on("hideAll",(function(){E()})),d((function(){S.off("show"),S.off("hideAll")}));var I=m((function(){var e="";return r.animation&&(e="solid-contextmenu-".concat(r.animation)),console.log(e),e})),X=m((function(){return{enterActiveClass:I()+"-enter-active",exitActiveClass:I()+"-exit-active"}}));return f(P.Provider,{value:j,get children(){return f(p,{get children(){return f(L,u(X,{get children(){return f(_,{get when(){return y()},get children(){var e=T.cloneNode(!0);return"function"==typeof n?n(e):n=e,function(e,t){var n=function(n){var o;return!e.contains(n.target)&&(null===(o=t())||void 0===o?void 0:o())};document.body.addEventListener("click",n),d((function(){return document.body.removeEventListener("click",n)}))}(e,(function(){return E()})),v(e,s,!1,!1),x((function(n){var o=D(A.menu,s.class,t({},"".concat(A.theme).concat(r.theme),r.theme)),i=w().x+"px",a=w().y+"px";return o!==n._v$&&h(e,n._v$=o),i!==n._v$2&&e.style.setProperty("left",n._v$2=i),a!==n._v$3&&e.style.setProperty("top",n._v$3=a),n}),{_v$:void 0,_v$2:void 0,_v$3:void 0}),e}})}}))}})}})}));function Y(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}var z=O("<div><div></div></div>");r("x",(function(n){var o=i(c(n,["hidden","disabled","onClick","data","children"]),2),r=o[0],s=o[1],a=u({hidden:!1,disabled:!1},r),l=I(),d=l.props,p=l.hide,b=m((function(){return{props:d(),data:n.data}})),g=m((function(){return Y(a.disabled,b())})),w=m((function(){return Y(a.hidden,b())})),$=function(o){var i;g()||(null!==(i=n.onClick)&&void 0!==i&&i.call(n,function(n){for(var o=1;o<arguments.length;o++){var i=null!=arguments[o]?arguments[o]:{};o%2?e(Object(i),!0).forEach((function(e){t(n,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))}))}return n}({event:o},b())),p())};return f(_,{get when(){return!w()},get children(){var e=z.cloneNode(!0),n=e.firstChild;return e.$$click=$,v(e,s,!1,!0),y(n,(function(){return r.children})),x((function(o){var i=D(A.item,t({},A.itemDisabled,g())),r=A.itemContent;return i!==o._v$&&h(e,o._v$=i),r!==o._v$2&&h(n,o._v$2=r),o}),{_v$:void 0,_v$2:void 0}),e}})}));a(["click"]);var B=O("<div></div>"),N=O("<div><div><span></span></div></div>");r("C",(function(e){var n,o,r=i(c(e,["arrow","children","disabled","hidden","label","class"]),2),s=r[0],a=r[1],p=u({arrow:"▶️",disabled:!1,hidden:!1},s),b=I(),g=b.props,w=b.id,$=m((function(){return{props:g()}})),k=m((function(){return Y(p.disabled,$())})),O=m((function(){return Y(p.hidden,$())})),C=i(l({x:0,y:0}),2),E=C[0],L=C[1],j=i(l(!1),2),P=j[0],X=j[1],T=function(){X(!0),function(){var e=n.getBoundingClientRect(),t=o.getBoundingClientRect(),i=window.innerWidth,r=window.innerHeight,s=e.right;s+t.width>i&&(s=e.left-t.width>0?e.left-t.width:i-t.width);var a=e.top;a+t.height>r&&(a=e.bottom-t.height>0?e.bottom-t.height:r-t.height),L({x:s,y:a}),console.log(E())}()};return S.on("hide",(function(e){e===w&&X(!1)})),d((function(){S.off("hide")})),f(_,{get when(){return!O()},get children(){var e=N.cloneNode(!0),i=e.firstChild,r=i.firstChild;e.$$click=function(){return P()?X(!1):T()},e.addEventListener("mouseleave",(function(){return X(!1)})),e.addEventListener("mouseenter",(function(){return T()})),v(e,a,!1,!0);return"function"==typeof n?n(i):n=i,y(i,(function(){return p.label}),r),y(r,(function(){return p.arrow})),y(e,f(_,{get when(){return P()},get children(){var e=B.cloneNode(!0);return"function"==typeof o?o(e):o=e,y(e,(function(){return p.children})),x((function(t){var n=A.submenu,o=E().x+"px",i=E().y+"px";return n!==t._v$&&h(e,t._v$=n),o!==t._v$2&&e.style.setProperty("left",t._v$2=o),i!==t._v$3&&e.style.setProperty("top",t._v$3=i),t}),{_v$:void 0,_v$2:void 0,_v$3:void 0}),e}}),null),x((function(n){var o=D(A.item,s.class,t({},A.itemDisabled,k())),a=A.itemContent,c=A.submenuArrow;return o!==n._v$4&&h(e,n._v$4=o),a!==n._v$5&&h(i,n._v$5=a),c!==n._v$6&&h(r,n._v$6=c),n}),{_v$4:void 0,_v$5:void 0,_v$6:void 0}),e}})}));a(["click"]);r("b",(function(e){return{show:function(t,n){S.emit("show",{id:(null==n?void 0:n.id)||(null==e?void 0:e.id),props:(null==n?void 0:n.props)||(null==e?void 0:e.props),event:t,position:null==n?void 0:n.position})},hideAll:function(){S.emit("hideAll")}}}))}}}))}();
|