alistgo-alist-web 3.64.0 → 3.65.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-4e84c410.js → 2fa-ed5fd3f5.js} +1 -1
- package/dist/assets/{2fa-legacy.f6d2ef4d.js → 2fa-legacy.ac2273d3.js} +1 -1
- package/dist/assets/{About-190507e6.js → About-07b39c36.js} +1 -1
- package/dist/assets/{About-legacy.b327ecf8.js → About-legacy.f45be2db.js} +1 -1
- package/dist/assets/{AddLabelDialog-9914fe78.js → AddLabelDialog-1d6357b9.js} +1 -1
- package/dist/assets/{AddLabelDialog-legacy.036a9ab6.js → AddLabelDialog-legacy.dd6c914a.js} +1 -1
- package/dist/assets/AddOrEdit-07c7f3da.js +1 -0
- package/dist/assets/AddOrEdit-8e0d8742.js +4 -0
- package/dist/assets/{AddOrEdit-67238002.js → AddOrEdit-a3103973.js} +1 -1
- package/dist/assets/{AddOrEdit-47e0ac05.js → AddOrEdit-dc4e0032.js} +1 -1
- package/dist/assets/{AddOrEdit-legacy.e74c5c7c.js → AddOrEdit-legacy.284f0a57.js} +1 -1
- package/dist/assets/AddOrEdit-legacy.4bcd7dc8.js +1 -0
- package/dist/assets/AddOrEdit-legacy.9c182801.js +1 -0
- package/dist/assets/{AddOrEdit-legacy.3db7bb35.js → AddOrEdit-legacy.afba0798.js} +1 -1
- package/dist/assets/{Common-0e68477f.js → Common-8516cca9.js} +1 -1
- package/dist/assets/{Common-legacy.c2861b24.js → Common-legacy.c5ae8b86.js} +1 -1
- package/dist/assets/{Copy-279e327d.js → Copy-4a811523.js} +1 -1
- package/dist/assets/{Copy-legacy.fde30af5.js → Copy-legacy.8d10f1fe.js} +1 -1
- package/dist/assets/Decompress-ca56760c.js +1 -0
- package/dist/assets/{Decompress-legacy.babd980c.js → Decompress-legacy.9f3f38d7.js} +1 -1
- package/dist/assets/{DeletePopover-8805036c.js → DeletePopover-b8a9a633.js} +1 -1
- package/dist/assets/{DeletePopover-legacy.c02233f5.js → DeletePopover-legacy.ca04a0ab.js} +1 -1
- package/dist/assets/{EditLabelDialog-caa825c7.js → EditLabelDialog-a98f4188.js} +1 -1
- package/dist/assets/{EditLabelDialog-legacy.f130f84a.js → EditLabelDialog-legacy.1621d4fa.js} +1 -1
- package/dist/assets/{File-a608e169.js → File-0abcb7cc.js} +1 -1
- package/dist/assets/{File-legacy.ba03acb0.js → File-legacy.9c7c661c.js} +1 -1
- package/dist/assets/{Folder-26f37994.js → Folder-41ab63d0.js} +2 -2
- package/dist/assets/{Folder-legacy.f5072a96.js → Folder-legacy.d3dd609c.js} +2 -2
- package/dist/assets/FolderTree-fee990c3.js +1 -0
- package/dist/assets/{FolderTree-legacy.4bc9cb59.js → FolderTree-legacy.5beed504.js} +1 -1
- package/dist/assets/{Frp-056a26c6.js → Frp-fdb81713.js} +1 -1
- package/dist/assets/{Frp-legacy.f5b4d8c3.js → Frp-legacy.3bd5da35.js} +1 -1
- package/dist/assets/Grid-96af823b.js +1 -0
- package/dist/assets/{Grid-legacy.dc4aab9b.js → Grid-legacy.8196af70.js} +1 -1
- package/dist/assets/GridItem-8f0a4e78.js +1 -0
- package/dist/assets/GridItem-legacy.53e5db4f.js +1 -0
- package/dist/assets/ImageWithError-7a9cb94e.js +1 -0
- package/dist/assets/{ImageWithError-legacy.d1f48994.js → ImageWithError-legacy.7897ddfe.js} +1 -1
- package/dist/assets/{Images-83a8d60b.js → Images-5b45ded6.js} +1 -1
- package/dist/assets/{Images-legacy.4d33680c.js → Images-legacy.7c25071b.js} +1 -1
- package/dist/assets/{Layout-897b8819.js → Layout-03b40a95.js} +4 -4
- package/dist/assets/{Layout-legacy.76d8e726.js → Layout-legacy.b774c154.js} +1 -1
- package/dist/assets/List-2219e301.js +9 -0
- package/dist/assets/List-legacy.b78e0937.js +1 -0
- package/dist/assets/Messenger-3b98cd80.js +1 -0
- package/dist/assets/{Messenger-legacy.bc15d42f.js → Messenger-legacy.ac452c08.js} +1 -1
- package/dist/assets/{Metas-e05f9ce1.js → Metas-8334d2a7.js} +1 -1
- package/dist/assets/{Metas-legacy.fbb019f8.js → Metas-legacy.bf01cbbc.js} +1 -1
- package/dist/assets/{Other-359d1308.js → Other-8a75824a.js} +1 -1
- package/dist/assets/{Other-legacy.98d34500.js → Other-legacy.a375dca6.js} +1 -1
- package/dist/assets/{PackageDownload-519b9a38.js → PackageDownload-1d343eca.js} +1 -1
- package/dist/assets/{PackageDownload-legacy.99bfadfb.js → PackageDownload-legacy.0718c7cf.js} +1 -1
- package/dist/assets/{Paginator-c9173645.js → Paginator-33b3808f.js} +1 -1
- package/dist/assets/{Paginator-legacy.20830174.js → Paginator-legacy.0bcc0a06.js} +1 -1
- package/dist/assets/{Password-ecb0e10f.js → Password-1e03b2a1.js} +1 -1
- package/dist/assets/{Password-legacy.6428b474.js → Password-legacy.38bae4cb.js} +1 -1
- package/dist/assets/{PermissionForm-c3eb17c8.js → PermissionForm-d8ce57a2.js} +1 -1
- package/dist/assets/{PermissionForm-legacy.7c5eb6c6.js → PermissionForm-legacy.9b4348f3.js} +1 -1
- package/dist/assets/{Profile-3ee435be.js → Profile-a5f67165.js} +1 -1
- package/dist/assets/{Profile-legacy.b4580d6f.js → Profile-legacy.ddceb40f.js} +1 -1
- package/dist/assets/{ResponsiveGrid-c7c746e7.js → ResponsiveGrid-9a165c0d.js} +1 -1
- package/dist/assets/{ResponsiveGrid-legacy.f9981337.js → ResponsiveGrid-legacy.92d430a0.js} +1 -1
- package/dist/assets/{Role-9912dd61.js → Role-237e29ce.js} +1 -1
- package/dist/assets/{Role-legacy.6533ab1b.js → Role-legacy.937d458b.js} +1 -1
- package/dist/assets/{S3-0aa994e6.js → S3-061d6236.js} +1 -1
- package/dist/assets/{S3-legacy.0fefd5e0.js → S3-legacy.8823249a.js} +1 -1
- package/dist/assets/{S3Transition-89090584.js → S3Transition-beb9f092.js} +1 -1
- package/dist/assets/{S3Transition-legacy.87d826d5.js → S3Transition-legacy.a9014759.js} +1 -1
- package/dist/assets/{SettingItem-004aa8f7.js → SettingItem-1101a924.js} +1 -1
- package/dist/assets/{SettingItem-legacy.4459beb0.js → SettingItem-legacy.2e0a1b78.js} +1 -1
- package/dist/assets/{Storages-41749b58.js → Storages-d34a1526.js} +1 -1
- package/dist/assets/{Storages-legacy.06dcad07.js → Storages-legacy.b1cd5702.js} +1 -1
- package/dist/assets/{StrmGenerate-a872c94f.js → StrmGenerate-79e9aee1.js} +1 -1
- package/dist/assets/StrmGenerate-7bb10c94.js +1 -0
- package/dist/assets/{StrmGenerate-legacy.cabca006.js → StrmGenerate-legacy.21cae5f7.js} +1 -1
- package/dist/assets/{StrmGenerate-legacy.bd455ae0.js → StrmGenerate-legacy.ab5aecec.js} +1 -1
- package/dist/assets/{Tag-090a70de.js → Tag-ec0bc77d.js} +1 -1
- package/dist/assets/{Tag-legacy.4d08ea51.js → Tag-legacy.091c6c0b.js} +1 -1
- package/dist/assets/{Task-305456a7.js → Task-ee12c6df.js} +1 -1
- package/dist/assets/{Task-legacy.bef00b05.js → Task-legacy.993c84aa.js} +1 -1
- package/dist/assets/{Tasks-bcb27730.js → Tasks-da5c9e10.js} +1 -1
- package/dist/assets/{Tasks-legacy.e4e4be39.js → Tasks-legacy.24f9634a.js} +1 -1
- package/dist/assets/Upload-0bd3bbaf.js +1 -0
- package/dist/assets/{Upload-f8f5df20.js → Upload-a30ea457.js} +1 -1
- package/dist/assets/{Upload-legacy.ea24de65.js → Upload-legacy.8e3f8f5b.js} +1 -1
- package/dist/assets/{Upload-legacy.3167d140.js → Upload-legacy.9c750547.js} +1 -1
- package/dist/assets/{Users-00f028b6.js → Users-8072ac4d.js} +1 -1
- package/dist/assets/{Users-legacy.6adffa4b.js → Users-legacy.f5b75f2a.js} +1 -1
- package/dist/assets/{Wether-2ad383a0.js → Wether-2d1fe638.js} +1 -1
- package/dist/assets/{Wether-legacy.c0dbd869.js → Wether-legacy.98561794.js} +1 -1
- package/dist/assets/{aliyun_office-70f9e774.js → aliyun_office-ebee9588.js} +1 -1
- package/dist/assets/{aliyun_office-legacy.01ab1f19.js → aliyun_office-legacy.b06a1a45.js} +1 -1
- package/dist/assets/{aliyun_video-8ecd5833.js → aliyun_video-b7361903.js} +1 -1
- package/dist/assets/{aliyun_video-legacy.b463b3a2.js → aliyun_video-legacy.6d4ff360.js} +1 -1
- package/dist/assets/archive-918eb782.js +1 -0
- package/dist/assets/{archive-legacy.665b85a4.js → archive-legacy.66cc28d1.js} +1 -1
- package/dist/assets/{asciinema-63cb7e53.js → asciinema-c7a38e55.js} +1 -1
- package/dist/assets/{asciinema-legacy.4d730bad.js → asciinema-legacy.f5ef7418.js} +1 -1
- package/dist/assets/{audio-99be5f4b.js → audio-767031b9.js} +1 -1
- package/dist/assets/{audio-legacy.cb5be320.js → audio-legacy.a1601447.js} +1 -1
- package/dist/assets/{backup-restore-87d007a6.js → backup-restore-1e664d39.js} +1 -1
- package/dist/assets/{backup-restore-legacy.fca2a0a0.js → backup-restore-legacy.3454be27.js} +1 -1
- package/dist/assets/{doubao-edc7ea0c.js → doubao-dbccef6f.js} +1 -1
- package/dist/assets/{doubao-legacy.1a73dcb5.js → doubao-legacy.54e97f26.js} +1 -1
- package/dist/assets/{download-fe955410.js → download-85777c30.js} +1 -1
- package/dist/assets/{download-legacy.40f6adf0.js → download-legacy.0a88d596.js} +1 -1
- package/dist/assets/{entry-dbda7502.js → entry-0c2f5c59.js} +4 -4
- package/dist/assets/{entry-47b2abb1.js → entry-1cb4692b.js} +4 -4
- package/dist/assets/{entry-cd479580.js → entry-293f8889.js} +4 -4
- package/dist/assets/{entry-65f35baf.js → entry-2b7d7a8d.js} +3 -3
- package/dist/assets/{entry-8a764c5e.js → entry-54719adb.js} +3 -3
- package/dist/assets/{entry-76e6ff37.js → entry-6a475220.js} +4 -4
- package/dist/assets/{entry-8e81cbee.js → entry-922e5ac4.js} +3 -3
- package/dist/assets/{entry-53f2edcc.js → entry-bb2bec47.js} +4 -4
- package/dist/assets/{entry-7bf2f5c5.js → entry-c0e113da.js} +3 -3
- package/dist/assets/{entry-ad0c322e.js → entry-d9ec77d7.js} +4 -4
- package/dist/assets/entry-legacy.3077b509.js +1 -0
- package/dist/assets/entry-legacy.30e420ec.js +1 -0
- package/dist/assets/entry-legacy.33fb2aeb.js +1 -0
- package/dist/assets/entry-legacy.5477e86d.js +1 -0
- package/dist/assets/entry-legacy.70163a35.js +1 -0
- package/dist/assets/entry-legacy.8ef24743.js +1 -0
- package/dist/assets/entry-legacy.da9a301f.js +1 -0
- package/dist/assets/entry-legacy.e8c74358.js +1 -0
- package/dist/assets/entry-legacy.eb9090b0.js +1 -0
- package/dist/assets/entry-legacy.ed0cc5a4.js +1 -0
- package/dist/assets/{helper-e7a18c7f.js → helper-89addd3d.js} +1 -1
- package/dist/assets/{helper-cfffcdeb.js → helper-ab5aae32.js} +1 -1
- package/dist/assets/{helper-legacy.f3369b5d.js → helper-legacy.41207839.js} +1 -1
- package/dist/assets/{helper-legacy.ecf72a12.js → helper-legacy.4304690b.js} +1 -1
- package/dist/assets/{hls-86ec98bf.js → hls-490669be.js} +1 -1
- package/dist/assets/{hls-legacy.7eb02010.js → hls-legacy.0cd3dbde.js} +1 -1
- package/dist/assets/{html-f0c8404b.js → html-ae28dd97.js} +1 -1
- package/dist/assets/{html-legacy.6b46728d.js → html-legacy.1ee9a3dd.js} +1 -1
- package/dist/assets/{image-aee483b3.js → image-ce762fda.js} +1 -1
- package/dist/assets/{image-legacy.293578fc.js → image-legacy.ebb99722.js} +1 -1
- package/dist/assets/{index-d2ee9913.js → index-0b95f278.js} +2 -2
- package/dist/assets/index-0c3482f7.js +1 -0
- package/dist/assets/{index-1c7df6bb.js → index-12a11fa4.js} +1 -1
- package/dist/assets/{index-3409ca0b.js → index-1f021dd2.js} +1 -1
- package/dist/assets/index-25c8c203.js +1 -0
- package/dist/assets/index-5b80a56f.js +1 -0
- package/dist/assets/{index-e2343554.js → index-6e2f0655.js} +1 -1
- package/dist/assets/{index-b0560a31.js → index-6e98aa26.js} +37 -37
- package/dist/assets/index-94a67054.js +4 -0
- package/dist/assets/{index-bfb42663.js → index-9f85fd4a.js} +1 -1
- package/dist/assets/index-aa5a83eb.js +1 -0
- package/dist/assets/{index-b8456ee7.js → index-cdc3b5ff.js} +1 -1
- package/dist/assets/index-d0610ae0.js +1 -0
- package/dist/assets/{index-63d411f6.js → index-d8ea6769.js} +1 -1
- package/dist/assets/{index-legacy.cdce98e1.js → index-legacy.0569de56.js} +3 -3
- package/dist/assets/index-legacy.35059afc.js +1 -0
- package/dist/assets/{index-legacy.77dc574f.js → index-legacy.4902336b.js} +1 -1
- package/dist/assets/{index-legacy.eb264a4b.js → index-legacy.50848259.js} +1 -1
- package/dist/assets/index-legacy.63ab569f.js +1 -0
- package/dist/assets/{index-legacy.510e67dc.js → index-legacy.7d1fb0aa.js} +1 -1
- package/dist/assets/{index-legacy.d888bbd6.js → index-legacy.7efaa5f5.js} +1 -1
- package/dist/assets/index-legacy.82ee4b37.js +1 -0
- package/dist/assets/{index-legacy.93f532c8.js → index-legacy.aadeb0a6.js} +1 -1
- package/dist/assets/{index-legacy.04ddeb6e.js → index-legacy.c084734b.js} +1 -1
- package/dist/assets/{index-legacy.e65fdd44.js → index-legacy.d8a05658.js} +1 -1
- package/dist/assets/{index-legacy.7d5d9c7c.js → index-legacy.e99049a5.js} +1 -1
- package/dist/assets/{index-legacy.e544ccf2.js → index-legacy.f38f262a.js} +1 -1
- package/dist/assets/{index-legacy.766df57d.js → index-legacy.fdc1b267.js} +1 -1
- package/dist/assets/{indexes-d17840a6.js → indexes-9e849b24.js} +2 -2
- package/dist/assets/{indexes-legacy.4a5b688a.js → indexes-legacy.09a65722.js} +1 -1
- package/dist/assets/info-57ab995f.js +1 -0
- package/dist/assets/{info-legacy.a104f6ee.js → info-legacy.6f573e67.js} +1 -1
- package/dist/assets/{ipa-adf70a53.js → ipa-1c627d9e.js} +1 -1
- package/dist/assets/{ipa-legacy.b0527f0c.js → ipa-legacy.466226b4.js} +1 -1
- package/dist/assets/{lark-1a7cae41.js → lark-9c1d307c.js} +1 -1
- package/dist/assets/{lark-legacy.05b566b8.js → lark-legacy.7226f6e3.js} +1 -1
- package/dist/assets/{lark_tools-fb000845.js → lark_tools-8c437ef0.js} +1 -1
- package/dist/assets/{lark_tools-legacy.6fedd7ea.js → lark_tools-legacy.90fd3d64.js} +1 -1
- package/dist/assets/{layout-28afe0f0.js → layout-8c3e88b6.js} +1 -1
- package/dist/assets/{layout-legacy.e0cfb4c0.js → layout-legacy.4f5f3870.js} +1 -1
- package/dist/assets/{management-01a86f43.js → management-4c1a6b51.js} +1 -1
- package/dist/assets/{management-legacy.77a4015b.js → management-legacy.84e5760a.js} +1 -1
- package/dist/assets/{markdown-5ea99b9a.js → markdown-3ab05481.js} +1 -1
- package/dist/assets/{markdown-legacy.ff36c111.js → markdown-legacy.0df6ed9c.js} +1 -1
- package/dist/assets/{markdown_with_word_wrap-a0b244a5.js → markdown_with_word_wrap-b392805e.js} +1 -1
- package/dist/assets/{markdown_with_word_wrap-legacy.a6da7d19.js → markdown_with_word_wrap-legacy.e68f3d4b.js} +1 -1
- package/dist/assets/{mySession-084533dd.js → mySession-7bcb5a9b.js} +1 -1
- package/dist/assets/{mySession-legacy.2f5e1d14.js → mySession-legacy.dadbd1a4.js} +1 -1
- package/dist/assets/offline_download-bcb94b4e.js +1 -0
- package/dist/assets/{offline_download-legacy.fe7fa221.js → offline_download-legacy.aa9a79f5.js} +1 -1
- package/dist/assets/open-with-d9208620.js +1 -0
- package/dist/assets/open-with-legacy.e3bd9fea.js +1 -0
- package/dist/assets/{plist-90c2d892.js → plist-a6756c80.js} +1 -1
- package/dist/assets/{plist-legacy.3de6335c.js → plist-legacy.e1cd044b.js} +1 -1
- package/dist/assets/{shares-63cf54ab.js → shares-51c029e6.js} +1 -1
- package/dist/assets/{shares-legacy.63ed175b.js → shares-legacy.bf13fa75.js} +1 -1
- package/dist/assets/{solid-contextmenu-905ecc32.js → solid-contextmenu-c30dd1d1.js} +1 -1
- package/dist/assets/{solid-contextmenu-legacy.b73c8617.js → solid-contextmenu-legacy.1761700f.js} +1 -1
- package/dist/assets/{text-editor-4451aa37.js → text-editor-fb3ed4e7.js} +2 -2
- package/dist/assets/{text-editor-legacy.1d233d02.js → text-editor-legacy.456eba2d.js} +1 -1
- package/dist/assets/{url-755a9cce.js → url-16016714.js} +1 -1
- package/dist/assets/{url-legacy.a69a518d.js → url-legacy.f4fd9db0.js} +1 -1
- package/dist/assets/{useTitle-838069b0.js → useTitle-f9295ffa.js} +1 -1
- package/dist/assets/{useTitle-legacy.b3b2613b.js → useTitle-legacy.4c438d1f.js} +1 -1
- package/dist/assets/{video-08e3c2a6.js → video-a0ebea7a.js} +1 -1
- package/dist/assets/{video-legacy.a9ff6ce2.js → video-legacy.5b7f41a6.js} +1 -1
- package/dist/assets/{video360-fc95901a.js → video360-df3b70b3.js} +1 -1
- package/dist/assets/{video360-legacy.e051fc87.js → video360-legacy.267eb864.js} +1 -1
- package/dist/assets/{video_box-de39a6c5.js → video_box-3ddaba1b.js} +1 -1
- package/dist/assets/{video_box-legacy.86e3adf4.js → video_box-legacy.a54c8061.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/AddOrEdit-79a98c71.js +0 -1
- package/dist/assets/AddOrEdit-83e5bdd3.js +0 -4
- package/dist/assets/AddOrEdit-legacy.4c3acaab.js +0 -1
- package/dist/assets/AddOrEdit-legacy.cd047027.js +0 -1
- package/dist/assets/Decompress-43856ece.js +0 -1
- package/dist/assets/FolderTree-89544a6b.js +0 -1
- package/dist/assets/Grid-37629e6d.js +0 -1
- package/dist/assets/GridItem-be9067db.js +0 -1
- package/dist/assets/GridItem-legacy.76a1e630.js +0 -1
- package/dist/assets/ImageWithError-ad444cc4.js +0 -1
- package/dist/assets/List-e85a0b2a.js +0 -9
- package/dist/assets/List-legacy.401536e5.js +0 -1
- package/dist/assets/Messenger-68d3a6f9.js +0 -1
- package/dist/assets/StrmGenerate-59595312.js +0 -1
- package/dist/assets/Upload-dea525de.js +0 -1
- package/dist/assets/archive-734c2ae5.js +0 -1
- package/dist/assets/entry-legacy.113b27f4.js +0 -1
- package/dist/assets/entry-legacy.12fb7042.js +0 -1
- package/dist/assets/entry-legacy.205b85a6.js +0 -1
- package/dist/assets/entry-legacy.84c5b84d.js +0 -1
- package/dist/assets/entry-legacy.99944f7e.js +0 -1
- package/dist/assets/entry-legacy.a1e4c725.js +0 -1
- package/dist/assets/entry-legacy.ccf750f1.js +0 -1
- package/dist/assets/entry-legacy.d79bc047.js +0 -1
- package/dist/assets/entry-legacy.e342d8cc.js +0 -1
- package/dist/assets/entry-legacy.e6d5043a.js +0 -1
- package/dist/assets/index-1da4255f.js +0 -1
- package/dist/assets/index-1eca9bf7.js +0 -1
- package/dist/assets/index-286258af.js +0 -1
- package/dist/assets/index-425600b4.js +0 -4
- package/dist/assets/index-653e8df2.js +0 -1
- package/dist/assets/index-9f389c06.js +0 -1
- package/dist/assets/index-legacy.5f2e7154.js +0 -1
- package/dist/assets/index-legacy.a2e25f9b.js +0 -1
- package/dist/assets/index-legacy.e932630e.js +0 -1
- package/dist/assets/info-a9253ca6.js +0 -1
- package/dist/assets/offline_download-ed30f8c1.js +0 -1
- package/dist/assets/open-with-79c445c3.js +0 -1
- package/dist/assets/open-with-legacy.a62babc1.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(){function e(t){return e="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},e(t)}function t(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=l(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function r(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return t};var t={},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(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(L){l=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),a=new O(n||[]);return i._invoke=function(e,t,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 a=r.delegate;if(a){var u=_(a,r);if(u){if(u===f)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=s(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=d;var f={};function h(){}function v(){}function g(){}var p={};l(p,a,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(C([])));m&&m!==n&&o.call(m,a)&&(p=m);var b=g.prototype=h.prototype=Object.create(p);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(t,r){function n(i,a,u,c){var l=s(t[i],t,a);if("throw"!==l.type){var d=l.arg,f=d.value;return f&&"object"==e(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(e){n("next",e,u,c)}),(function(e){n("throw",e,u,c)})):r.resolve(f).then((function(e){d.value=e,u(d)}),(function(e){return n("throw",e,u,c)}))}c(l.arg)}var i;this._invoke=function(e,t){function o(){return new r((function(r,o){n(e,t,r,o)}))}return i=i?i.then(o,o):o()}}function _(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=s(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,f;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:j}}function j(){return{value:void 0,done:!0}}return v.prototype=g,l(b,"constructor",g),l(g,"constructor",v),v.displayName=l(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,l(e,c,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},w(x.prototype),l(x.prototype,u,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(d(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(b),l(b,c,"Generator"),l(b,a,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=C,O.prototype={constructor:O,reset:function(e){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(k),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.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(e,t){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"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function n(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(l){return void r(l)}u.done?t(c):Promise.resolve(c).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function u(e){n(a,o,i,u,c,"next",e)}function c(e){n(a,o,i,u,c,"throw",e)}u(void 0)}))}}function i(e,t){return u(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(c){u=!0,o=c}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}(e,t)||l(e,t)||a()}function a(){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 u(e){if(Array.isArray(e))return e}function c(e){return function(e){if(Array.isArray(e))return s(e)}(e)||d(e)||l(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 l(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}function d(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t){for(var r in t){(i=t[r]).configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r,i)}if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(t),o=0;o<n.length;o++){var i,a=n[o];(i=t[a]).configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,a,i)}return e}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}System.register(["./index-legacy.0569de56.js","./item_type-legacy.1b6076a1.js","./FolderTree-legacy.5beed504.js","./ResponsiveGrid-legacy.92d430a0.js","./index-legacy.d8a05658.js"],(function(e,n){"use strict";var s,v,g,p,y,m,b,w,x,_,S,k,O,C,j,L,E,T,N,I,$,A,P,F,G,B,V,q,J,M,R,Y,D,W,Z,z,K,U,H,Q;return{setters:[function(e){s=e.b,v=e.y,g=e.$,p=e.al,y=e.aJ,m=e.am,b=e.N,w=e.bD,x=e.bP,_=e.S,S=e.aw,k=e.ar,O=e.bN,C=e.T,j=e.Y,L=e.a6,E=e.R,T=e.O,N=e.df,I=e.Z,$=e.ax,A=e.d,P=e.ba,F=e.bq,G=e.C,B=e.de,V=e.B,q=e.bW,J=e.eF,M=e.cK,R=e.cL,Y=e.aG,D=e.a5,W=e.n,Z=e.ac,z=e.a3,K=e.cZ},function(e){U=e.T},function(e){H=e.a},function(e){Q=e.R},null],execute:function(){e("isItemVisible",re);var n=/(https?:\/\/[^\s<>"')]*[^\s<>"'),.;:])/g,X=function(e){return v(L,{get each(){return e.text.split(n)},children:function(e){return/^https?:\/\//.test(e)?v($,{href:e,external:!0,p:"0",color:"$info9",wordBreak:"break-all",children:e}):e}})},ee=function(e){var t=s(),r=e.type===U.String&&!e.readonly&&("root_folder_path"===e.name||"remote_path"===e.name),n=e.type===U.Number&&"Chunker"===e.driver&&"chunk_size"===e.name,o=e.type===U.Text&&"Chunker"===e.driver&&"remote_paths"===e.name,i=e.type===U.Text&&"Strm"===e.driver&&"paths"===e.name,a=o||i,u=e.type===U.Bool&&"Chunker"===e.driver&&"store_chunks_in_primary"===e.name,l=e.type===U.Number?e.onChange:void 0,d=function(){return u?0===String(null!==(r=null===(n=e.additionValues)||void 0===n?void 0:n.remote_paths)&&void 0!==r?r:"").split("\n").map((function(e){return e.trim()})).filter(Boolean).length?t("drivers.Chunker.store_chunks_in_primary-empty_hint"):e.value?t("drivers.Chunker.store_chunks_in_primary-enabled_hint"):t("drivers.Chunker.store_chunks_in_primary-disabled_hint"):"";var r,n},$=function(){var t;if(!a)return[];var r=null!==(t=e.value)&&void 0!==t?t:"";return""===r?[""]:r.split("\n")},A=function(t){var r;e.type===U.Text&&(null===(r=e.onChange)||void 0===r||r.call(e,t.join("\n")))};return v(I,{w:"$full",display:"flex",flexDirection:"column",get required(){return e.required},get children(){var o,i;return[v(g,(o={},"for",i={},i.for=i.for||{},i.for.get=function(){return e.name},h(o,"display","flex"),h(o,"alignItems","center"),"children",i.children=i.children||{},i.children.get=function(){var r;return t((null!==(r=e.full_name_path)&&void 0!==r?r:"common"===e.driver)?"storages.common.".concat(e.name):"drivers.".concat(e.driver,".").concat(e.name))},f(o,i),o)),v(p,{get fallback(){return v(y,{get children(){return t("settings.unknown_type")}})},get children(){return[v(m,{when:r,get children(){return v(H,{get id(){return e.name},get value(){return e.value},onChange:function(t){var r;e.type===U.String&&(null===(r=e.onChange)||void 0===r||r.call(e,t))}})}}),v(m,{get when(){return e.type===U.String},get children(){return v(b,{get id(){return e.name},get type(){return"password"==e.name?"password":"text"},get readOnly(){return e.readonly},get value(){return e.value},get onChange(){return e.type===U.String?function(t){var r;return null===(r=e.onChange)||void 0===r?void 0:r.call(e,t.currentTarget.value)}:void 0}})}}),v(m,{get when(){return e.type===U.Number&&e.options},get children(){return v(w,{get id(){return e.name},get readOnly(){return e.readonly},get defaultValue(){return String(e.value)},get onChange(){return e.type===U.Number?function(t){var r,n=parseInt(t,10);null===(r=e.onChange)||void 0===r||r.call(e,Number.isNaN(n)?0:n)}:void 0},get children(){return v(x,{get readonly(){return e.readonly},get options(){return e.options.split(",").map((function(r){var n;return{key:r,label:t((null!==(n=e.options_prefix)&&void 0!==n?n:"common"===e.driver?"storages.common.".concat(e.name,"s"):"drivers.".concat(e.driver,".").concat(e.name,"s"))+".".concat(r))}}))}})}})}}),v(m,{get when(){return e.type===U.Number},get children(){return v(_,{when:n,get fallback(){return v(b,{type:"number",get id(){return e.name},get readOnly(){return e.readonly},get value(){return e.value},get onInput(){return e.type===U.Number?function(t){var r;return null===(r=e.onChange)||void 0===r?void 0:r.call(e,parseInt(t.currentTarget.value))}:void 0}})},get children(){return v(S,{w:"$full",spacing:"$2",get children(){return[v(b,{type:"number",get id(){return e.name},get readOnly(){return e.readonly},get value(){return(e.value/1048576).toString()},onInput:function(e){var t=parseFloat(e.currentTarget.value);null==l||l(Number.isFinite(t)?Math.round(1024*t*1024):0)}}),v(k,{minW:"3rem",textAlign:"right",children:"MB"})]}})}})}}),v(m,{get when(){return e.type===U.Float},get children(){return v(b,{type:"number",get id(){return e.name},get readOnly(){return e.readonly},get value(){return e.value},get onInput(){return e.type===U.Float?function(t){var r;return null===(r=e.onChange)||void 0===r?void 0:r.call(e,parseFloat(t.currentTarget.value))}:void 0}})}}),v(m,{get when(){return e.type===U.Bool},get children(){return v(O,{get id(){return e.name},get readOnly(){return e.readonly},get defaultChecked(){return e.value},get onChange(){return e.type===U.Bool?function(t){var r;return null===(r=e.onChange)||void 0===r?void 0:r.call(e,t.currentTarget.checked)}:void 0}})}}),v(m,{get when(){return e.type===U.Text},get children(){return v(_,{when:a,get fallback(){return v(C,{get id(){return e.name},get readOnly(){return e.readonly},get value(){return e.value},get onChange(){return e.type===U.Text?function(t){var r;return null===(r=e.onChange)||void 0===r?void 0:r.call(e,t.currentTarget.value)}:void 0}})},get children(){return v(j,{w:"$full",alignItems:"stretch",spacing:"$2",get children(){return[v(L,{get each(){return $()},children:function(r,n){return v(S,{w:"$full",alignItems:"flex-start",spacing:"$2",get children(){return[v(H,{get id(){return 0===n()?e.name:void 0},value:r,onChange:function(e){var t=c($());t[n()]=e,A(t)}}),v(E,{colorScheme:"danger",variant:"subtle",onClick:function(){var e=c($());e.splice(n(),1),A(e)},get disabled(){return e.readonly},get children(){return t("global.delete")}})]}})}}),v(E,{variant:"subtle",onClick:function(){A([].concat(c($()),[""]))},get disabled(){return e.readonly},get children(){return t("global.add")}})]}})}})}}),v(m,{get when(){return e.type===U.Select},get children(){return v(w,{get id(){return e.name},get readOnly(){return e.readonly},get defaultValue(){return e.value},get onChange(){return e.type===U.Select?function(t){var r;return null===(r=e.onChange)||void 0===r?void 0:r.call(e,t)}:void 0},get children(){return v(x,{get readonly(){return e.readonly},get searchable(){return e.type===U.Select&&e.searchable},get options(){return e.options.split(",").map((function(r){var n;return{key:r,label:t((null!==(n=e.options_prefix)&&void 0!==n?n:"common"===e.driver?"storages.common.".concat(e.name,"s"):"drivers.".concat(e.driver,".").concat(e.name,"s"))+".".concat(r))}}))}})}})}})]}}),v(_,{get when(){return e.help},get children(){return v(T,{get children(){return v(X,{get text(){return t("common"===e.driver?"storages.common.".concat(e.name,"-tips"):"drivers.".concat(e.driver,".").concat(e.name,"-tips"))}})}})}}),v(_,{when:n,get children(){return v(T,{get children(){return"".concat(e.value.toLocaleString()," bytes (").concat(N(e.value),")")}})}}),v(_,{get when(){return d()},get children(){return v(T,{get children(){return d()}})}})]}})};function te(e,t){switch(e){case U.Bool:return!!t&&"true"===t;case U.Number:return t?parseInt(t):0;default:return t||""}}function re(e,t,r){var n,o=null===(n=e.show_when)||void 0===n?void 0:n.trim();if(!o)return!0;var i=o.indexOf("=");if(i<0)return!0;var a,u,c=o.slice(0,i).trim(),l=o.slice(i+1).split("|").map((function(e){return e.trim()})),d=t[c];null!=d&&""!==d||(d=null!==(a=null===(u=r.find((function(e){return e.name===c})))||void 0===u?void 0:u.default)&&void 0!==a?a:"");return l.includes(String(d))}e("default",(function(){var e=s(),n=A(),c=n.params,f=n.back,g=n.to,p=c.id,y=i(P((function(){return F.get("/admin/driver/list")}),!0),2),m=y[0],b=y[1],w=i(G({}),2),x=w[0],S=w[1],k=function(){var e=o(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,b();case 2:t=e.sent,z(t,S);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),O=i(P((function(){return F.get("/admin/storage/get?id=".concat(p))}),!0),2),C=O[0],T=O[1],N=i(P((function(){return F.get("/admin/driver/info?driver=".concat(ne.driver))}),!0),2),I=N[0],$=N[1],H=function(){var e=o(r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T();case 2:t=e.sent,z(t,function(){var e=o(r().mark((function e(t){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return oe(t),ue(JSON.parse(t.addition)),e.next=4,$();case 4:n=e.sent,z(n,(function(e){return S(h({},ne.driver,e))}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();p?H():k();var X=i(B({}),2),ne=X[0],oe=X[1],ie=i(B({}),2),ae=ie[0],ue=ie[1],ce=i(P((function(){return oe("addition",JSON.stringify(ae)),F.post("/admin/storage/".concat(p?"update":"create"),ne)})),2),le=ce[0],de=ce[1],se=V((function(){var e,t,r=null===(e=x()[ne.driver])||void 0===e||null===(t=e.config.alert)||void 0===t?void 0:t.trim();if(r){var n,o=r.split("|"),i=u(n=o)||d(n)||l(n)||a(),c=i[0],s=i.slice(1);return{status:["info","success","warning","danger"].includes(c)?c:"info",fallbackText:s.length>0?s.join("|").trim():r}}}));return v(K,{get loading(){return p?C()||I():m()},get children(){return[v(q,{mb:"$2",get children(){return e("global.".concat(p?"edit":"add"))}}),v(j,{mb:"$2",spacing:"$2",get children(){return[v(ee,{name:"driver",default:"",readonly:void 0!==p,required:!0,searchable:!0,get type(){return U.Select},get options(){return p?ne.driver:Object.keys(x()).join(",")},get value(){return ne.driver},full_name_path:"storages.common.driver",options_prefix:"drivers.drivers",driver:"drivers",onChange:function(e){var r,n=t(x()[e].common);try{for(n.s();!(r=n.n()).done;){var o=r.value;oe(o.name,te(o.type,o.default))}}catch(c){n.e(c)}finally{n.f()}ue(J((function(e){for(var t in e)delete e[t]})));var i,a=t(x()[e].additional);try{for(a.s();!(i=a.n()).done;){var u=i.value;ue(u.name,te(u.type,u.default))}}catch(c){a.e(c)}finally{a.f()}oe("driver",e)}}),v(_,{get when(){return se()},get children(){return v(M,{get status(){return se().status},w:"$full",get children(){return[v(R,{}),Y((function(){return e("drivers.config.".concat(ne.driver,".alert"),void 0,se().fallbackText)}))]}})}})]}}),v(Q,{get children(){return v(_,{get when(){return x()[ne.driver]},get children(){return[v(L,{get each(){return x()[ne.driver].common},children:function(e){return v(ee,D(e,{driver:"common",additionValues:ae,get value(){return ne[e.name]},onChange:function(t){oe(e.name,t)}}))}}),v(L,{get each(){return x()[ne.driver].additional},children:function(e){return v(_,{get when(){return re(e,ae,x()[ne.driver].additional)},get children(){return v(ee,D(e,{get driver(){return ne.driver},additionValues:ae,get value(){return ae[e.name]},onChange:function(t){ue(e.name,t)}}))}})}})]}})}}),v(E,{mt:"$2",get loading(){return le()},onClick:(n=o(r().mark((function t(){var n;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return x()[ne.driver].config.need_ms&&(W.info(e("manage.add_storage-tips")),window.open(Z("/@manage/messenger"),"_blank")),t.next=3,de();case 3:n=t.sent,z(n,(function(){W.success(e("global.save_success")),f()}),(function(e,t){n.data.id&&g("/@manage/storages/edit/".concat(n.data.id))}));case 5:case"end":return t.stop()}}),t)}))),function(){return n.apply(this,arguments)}),get children(){return e("global.".concat(p?"save":"add"))}})];var n}})}))}}}))}();
|
|
@@ -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(k){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),a=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 O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=_(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=s(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 s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(k){return{type:"throw",arg:k}}}r.wrap=f;var h={};function p(){}function d(){}function y(){}var g={};l(g,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(j([])));m&&m!==n&&o.call(m,a)&&(g=m);var b=y.prototype=p.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,r){function n(i,a,u,c){var l=s(e[i],e,a);if("throw"!==l.type){var f=l.arg,h=f.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){f.value=t,u(f)}),(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 _(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=s(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=y,l(b,"constructor",y),l(y,"constructor",d),d.displayName=l(y,c,"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,l(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},r.awrap=function(t){return{__await:t}},w(x.prototype),l(x.prototype,u,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(f(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),l(b,c,"Generator"),l(b,a,(function(){return this})),l(b,"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,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(S),!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),S(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;S(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}function a(t,e){for(var r in e){(i=e[r]).configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r,i)}if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(e),o=0;o<n.length;o++){var i,a=n[o];(i=e[a]).configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a,i)}return t}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}System.register(["./index-legacy.cdce98e1.js","./FolderTree-legacy.4bc9cb59.js","./index-legacy.e65fdd44.js"],(function(t,r){"use strict";var i,c,l,f,s,h,p,d,y,g,v,m,b,w,x,_,L,S,E,j,O,k,P,T;return{setters:[function(t){i=t.b,c=t.d,l=t.dd,f=t.ba,s=t.bq,h=t.y,p=t.Y,d=t.bW,y=t.Z,g=t.$,v=t.a6,m=t.R,b=t.a3,w=t.n,x=t.cY,_=t.bX,L=t.aG,S=t.N,E=t.bN,j=t.T,O=t.a0,k=t.S,P=t.O},function(t){T=t.a},null],execute:function(){var r=function(t){var e=i();return h(y,{w:"$full",display:"flex",flexDirection:"column",get children(){var r,n;return[h(g,(r={},"for",n={},n.for=n.for||{},n.for.get=function(){return t.name},u(r,"display","flex"),u(r,"alignItems","center"),"children",n.children=n.children||{},n.children.get=function(){return e("metas.".concat(t.name))},a(r,n),r)),h(_,{w:"$full",get direction(){return"bool"===t.type?"row":{"@initial":"column","@md":"row"}},gap:"$2",get children(){return[L((function(){return L((function(){return"string"===t.type}),!0)()?h(S,{get id(){return t.name},get value(){return t.value},onInput:function(e){return t.onChange(e.currentTarget.value)}}):L((function(){return"bool"===t.type}),!0)()?h(E,{get id(){return t.name},get checked(){return t.value},onChange:function(e){return t.onChange(e.currentTarget.checked)}}):h(j,{get id(){return t.name},get value(){return t.value},onChange:function(e){return t.onChange(e.currentTarget.value)}})})),h(y,{w:"fit-content",display:"flex",get children(){return h(O,{css:{whiteSpace:"nowrap"},get id(){return"".concat(t.name,"_sub")},onChange:function(e){return t.onSub(e.currentTarget.checked)},color:"$neutral10",fontSize:"$sm",get checked(){return t.sub},get children(){return e("metas.apply_sub")}})}})]}}),h(k,{get when(){return t.help},get children(){return h(P,{get children(){return e("metas.".concat(t.name,"_help"))}})}})]}})};t("default",(function(){var t=i(),a=c(),u=a.params,_=a.back,L=u.id,S=o(l({id:0,path:"",password:"",p_sub:!1,write:!1,w_sub:!1,hide:"",h_sub:!1,readme:"",r_sub:!1,header:"",header_sub:!1}),2),E=S[0],j=S[1],O=o(f((function(){return s.get("/admin/meta/get?id=".concat(L))})),2),k=O[0],P=O[1],C=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,P();case 2:r=t.sent,b(r,j);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();L&&C();var I=o(f((function(){return s.post("/admin/meta/".concat(L?"update":"create"),E)})),2),N=I[0],$=I[1];return h(x,{get loading(){return k()},get children(){return h(p,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[h(d,{get children(){return t("global.".concat(L?"edit":"add"))}}),h(y,{w:"$full",display:"flex",flexDirection:"column",required:!0,get children(){return[h(g,{for:"path",display:"flex",alignItems:"center",get children(){return t("metas.path")}}),h(T,{id:"path",get value(){return E.path},onChange:function(t){return j("path",t)}})]}}),h(v,{each:[{name:"password",type:"string",sub:"p_sub"},{name:"write",type:"bool",sub:"w_sub"},{name:"hide",type:"text",sub:"h_sub",help:!0},{name:"header",type:"text",sub:"header_sub",help:!0},{name:"readme",type:"text",sub:"r_sub",help:!0}],children:function(t){return h(r,{get name(){return t.name},get type(){return t.type},get value(){return E[t.name]},onChange:function(e){return j(t.name,e)},get sub(){return E[t.sub]},onSub:function(e){return j(t.sub,e)},get help(){return t.help}})}}),h(m,{get loading(){return N()},onClick:(o=n(e().mark((function r(){var n;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$();case 2:n=e.sent,b(n,(function(){w.success(t("global.save_success")),_()}));case 4:case"end":return e.stop()}}),r)}))),function(){return o.apply(this,arguments)}),get children(){return t("global.".concat(L?"save":"add"))}})];var o}})}})}))}}}))}();
|
|
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(k){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),a=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 O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=_(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=s(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 s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(k){return{type:"throw",arg:k}}}r.wrap=f;var h={};function p(){}function d(){}function y(){}var g={};l(g,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(j([])));m&&m!==n&&o.call(m,a)&&(g=m);var b=y.prototype=p.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,r){function n(i,a,u,c){var l=s(e[i],e,a);if("throw"!==l.type){var f=l.arg,h=f.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){f.value=t,u(f)}),(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 _(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=s(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(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:O}}function O(){return{value:void 0,done:!0}}return d.prototype=y,l(b,"constructor",y),l(y,"constructor",d),d.displayName=l(y,c,"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,l(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},r.awrap=function(t){return{__await:t}},w(x.prototype),l(x.prototype,u,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(f(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),l(b,c,"Generator"),l(b,a,(function(){return this})),l(b,"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,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(S),!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),S(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;S(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}function a(t,e){for(var r in e){(i=e[r]).configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r,i)}if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(e),o=0;o<n.length;o++){var i,a=n[o];(i=e[a]).configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a,i)}return t}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}System.register(["./index-legacy.0569de56.js","./FolderTree-legacy.5beed504.js","./index-legacy.d8a05658.js"],(function(t,r){"use strict";var i,c,l,f,s,h,p,d,y,g,v,m,b,w,x,_,L,S,E,j,O,k,P,T;return{setters:[function(t){i=t.b,c=t.d,l=t.de,f=t.ba,s=t.bq,h=t.y,p=t.Y,d=t.bW,y=t.Z,g=t.$,v=t.a6,m=t.R,b=t.a3,w=t.n,x=t.cZ,_=t.bX,L=t.aG,S=t.N,E=t.bN,j=t.T,O=t.a0,k=t.S,P=t.O},function(t){T=t.a},null],execute:function(){var r=function(t){var e=i();return h(y,{w:"$full",display:"flex",flexDirection:"column",get children(){var r,n;return[h(g,(r={},"for",n={},n.for=n.for||{},n.for.get=function(){return t.name},u(r,"display","flex"),u(r,"alignItems","center"),"children",n.children=n.children||{},n.children.get=function(){return e("metas.".concat(t.name))},a(r,n),r)),h(_,{w:"$full",get direction(){return"bool"===t.type?"row":{"@initial":"column","@md":"row"}},gap:"$2",get children(){return[L((function(){return L((function(){return"string"===t.type}),!0)()?h(S,{get id(){return t.name},get value(){return t.value},onInput:function(e){return t.onChange(e.currentTarget.value)}}):L((function(){return"bool"===t.type}),!0)()?h(E,{get id(){return t.name},get checked(){return t.value},onChange:function(e){return t.onChange(e.currentTarget.checked)}}):h(j,{get id(){return t.name},get value(){return t.value},onChange:function(e){return t.onChange(e.currentTarget.value)}})})),h(y,{w:"fit-content",display:"flex",get children(){return h(O,{css:{whiteSpace:"nowrap"},get id(){return"".concat(t.name,"_sub")},onChange:function(e){return t.onSub(e.currentTarget.checked)},color:"$neutral10",fontSize:"$sm",get checked(){return t.sub},get children(){return e("metas.apply_sub")}})}})]}}),h(k,{get when(){return t.help},get children(){return h(P,{get children(){return e("metas.".concat(t.name,"_help"))}})}})]}})};t("default",(function(){var t=i(),a=c(),u=a.params,_=a.back,L=u.id,S=o(l({id:0,path:"",password:"",p_sub:!1,write:!1,w_sub:!1,hide:"",h_sub:!1,readme:"",r_sub:!1,header:"",header_sub:!1}),2),E=S[0],j=S[1],O=o(f((function(){return s.get("/admin/meta/get?id=".concat(L))})),2),k=O[0],P=O[1],C=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,P();case 2:r=t.sent,b(r,j);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();L&&C();var I=o(f((function(){return s.post("/admin/meta/".concat(L?"update":"create"),E)})),2),N=I[0],$=I[1];return h(x,{get loading(){return k()},get children(){return h(p,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[h(d,{get children(){return t("global.".concat(L?"edit":"add"))}}),h(y,{w:"$full",display:"flex",flexDirection:"column",required:!0,get children(){return[h(g,{for:"path",display:"flex",alignItems:"center",get children(){return t("metas.path")}}),h(T,{id:"path",get value(){return E.path},onChange:function(t){return j("path",t)}})]}}),h(v,{each:[{name:"password",type:"string",sub:"p_sub"},{name:"write",type:"bool",sub:"w_sub"},{name:"hide",type:"text",sub:"h_sub",help:!0},{name:"header",type:"text",sub:"header_sub",help:!0},{name:"readme",type:"text",sub:"r_sub",help:!0}],children:function(t){return h(r,{get name(){return t.name},get type(){return t.type},get value(){return E[t.name]},onChange:function(e){return j(t.name,e)},get sub(){return E[t.sub]},onSub:function(e){return j(t.sub,e)},get help(){return t.help}})}}),h(m,{get loading(){return N()},onClick:(o=n(e().mark((function r(){var n;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$();case 2:n=e.sent,b(n,(function(){w.success(t("global.save_success")),_()}));case 4:case"end":return e.stop()}}),r)}))),function(){return o.apply(this,arguments)}),get children(){return t("global.".concat(L?"save":"add"))}})];var o}})}})}))}}}))}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as v,d as x,ba as f,bq as g,
|
|
1
|
+
import{b as v,d as x,ba as f,bq as g,de as _,C,B as $,y as a,dL as L,a5 as R,a3 as d,n as y,aw as N,R as h,Y as T,dK as B}from"./index-6e98aa26.js";import{b as M}from"./useTitle-f9295ffa.js";import{I as P}from"./SettingItem-1101a924.js";import{R as q}from"./ResponsiveGrid-9a165c0d.js";import"./index-25c8c203.js";import"./index-9f85fd4a.js";import"./index-d8ea6769.js";import"./index-aa5a83eb.js";import"./index-6e2f0655.js";import"./item_type-32dc6fdf.js";const A=c=>{const n=B(c),o=n.find(i=>i.key==="allow_register");return(o==null?void 0:o.value)!=="true"?n.filter(i=>i.key!=="default_role"):n},J=c=>{const n=v(),{pathname:o}=x();M(`manage.sidemenu.${o().split("/").pop()}`);const[i,k]=f(()=>g.get(`/admin/setting/list?group=${c.group}`)),[u,p]=_([]),l=async()=>{const e=await k();d(e,p)};l();const[w,I]=f(()=>g.post("/admin/setting/save",A(u))),[S,m]=C(!1),b=$(()=>{const e=[...u],r=e.findIndex(s=>s.key==="allow_indexed"),t=e.findIndex(s=>s.key==="use_newui");if(r!==-1&&t!==-1){if(t<r){const s=e.splice(t,1)[0];e.splice(r,0,s)}else if(t>r+1){const s=e.splice(t,1)[0];e.splice(r+1,0,s)}}return e});return a(T,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[a(q,{get children(){return a(L,{get each(){return b()},children:(e,r)=>a(P,R(e,{onChange:t=>{p(s=>e().key===s.key,"value",t)},onDelete:async()=>{m(!0);const t=await g.post(`/admin/setting/delete?key=${e().key}`);m(!1),d(t,()=>{y.success(n("global.delete_success")),l()})}}))})}}),a(N,{spacing:"$2",get children(){return[a(h,{colorScheme:"accent",onClick:l,get loading(){return i()||S()},get children(){return n("global.refresh")}}),a(h,{get loading(){return w()},onClick:async()=>{const e=await I();d(e,()=>y.success(n("global.save_success")))},get children(){return n("global.save")}})]}})]}})};export{J 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(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||a(t)||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 r(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return e};var e={},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(O){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,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 k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=L(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(O){return{type:"throw",arg:O}}}e.wrap=s;var h={};function y(){}function p(){}function d(){}var v={};l(v,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(_([])));m&&m!==n&&o.call(m,a)&&(v=m);var w=d.prototype=y.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(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 L(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,L(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 j(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 E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function _(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:k}}function k(){return{value:void 0,done:!0}}return p.prototype=d,l(w,"constructor",d),l(d,"constructor",p),p.displayName=l(d,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},b(x.prototype),l(x.prototype,u,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),l(w,c,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.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}},e.values=_,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(E),!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),E(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;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:_(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}function n(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 o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function u(t){n(a,o,i,u,c,"next",t)}function c(t){n(a,o,i,u,c,"throw",t)}u(void 0)}))}}function i(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)||a(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 a(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}function u(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.cdce98e1.js","./useTitle-legacy.b3b2613b.js","./SettingItem-legacy.4459beb0.js","./ResponsiveGrid-legacy.f9981337.js","./index-legacy.04ddeb6e.js","./index-legacy.d888bbd6.js","./index-legacy.e65fdd44.js","./index-legacy.a2e25f9b.js","./index-legacy.766df57d.js","./item_type-legacy.1b6076a1.js"],(function(t,n){"use strict";var a,u,c,l,s,f,h,y,p,d,v,g,m,w,b,x,L,j,E;return{setters:[function(t){a=t.b,u=t.d,c=t.ba,l=t.bq,s=t.dd,f=t.C,h=t.B,y=t.y,p=t.dL,d=t.a5,v=t.a3,g=t.n,m=t.aw,w=t.R,b=t.Y,x=t.dK},function(t){L=t.b},function(t){j=t.I},function(t){E=t.R},null,null,null,null,null,null],execute:function(){t("default",(function(t){var n=a(),S=u().pathname;L("manage.sidemenu.".concat(S().split("/").pop()));var _=i(c((function(){return l.get("/admin/setting/list?group=".concat(t.group))})),2),k=_[0],O=_[1],I=i(s([]),2),A=I[0],G=I[1],N=function(){var t=o(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O();case 2:e=t.sent,v(e,G);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();N();var P=c((function(){return l.post("/admin/setting/save",function(t){var e=x(t),r=e.find((function(t){return"allow_register"===t.key}));return"true"!==(null==r?void 0:r.value)?e.filter((function(t){return"default_role"!==t.key})):e}(A))})),T=i(P,2),F=T[0],C=T[1],$=i(f(!1),2),R=$[0],Y=$[1],q=h((function(){var t=e(A),r=t.findIndex((function(t){return"allow_indexed"===t.key})),n=t.findIndex((function(t){return"use_newui"===t.key}));if(-1!==r&&-1!==n)if(n<r){var o=t.splice(n,1)[0];t.splice(r,0,o)}else if(n>r+1){var i=t.splice(n,1)[0];t.splice(r+1,0,i)}return t}));return y(b,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[y(E,{get children(){return y(p,{get each(){return q()},children:function(t,e){return y(j,d(t,{onChange:function(e){G((function(e){return t().key===e.key}),"value",e)},onDelete:(i=o(r().mark((function e(){var o;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Y(!0),e.next=3,l.post("/admin/setting/delete?key=".concat(t().key));case 3:o=e.sent,Y(!1),v(o,(function(){g.success(n("global.delete_success")),N()}));case 6:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)})}));var i}})}}),y(m,{spacing:"$2",get children(){return[y(w,{colorScheme:"accent",onClick:N,get loading(){return k()||R()},get children(){return n("global.refresh")}}),y(w,{get loading(){return F()},onClick:(t=o(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,C();case 2:e=t.sent,v(e,(function(){return g.success(n("global.save_success"))}));case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)}),get children(){return n("global.save")}})];var t}})]}})}))}}}))}();
|
|
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(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||a(t)||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 r(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return e};var e={},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(O){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,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 k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=L(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(O){return{type:"throw",arg:O}}}e.wrap=s;var h={};function y(){}function p(){}function d(){}var v={};l(v,a,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(_([])));m&&m!==n&&o.call(m,a)&&(v=m);var w=d.prototype=y.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(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 L(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,L(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 j(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 E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function _(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:k}}function k(){return{value:void 0,done:!0}}return p.prototype=d,l(w,"constructor",d),l(d,"constructor",p),p.displayName=l(d,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},b(x.prototype),l(x.prototype,u,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(w),l(w,c,"Generator"),l(w,a,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.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}},e.values=_,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(E),!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),E(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;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:_(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}function n(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 o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function u(t){n(a,o,i,u,c,"next",t)}function c(t){n(a,o,i,u,c,"throw",t)}u(void 0)}))}}function i(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)||a(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 a(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}function u(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.0569de56.js","./useTitle-legacy.4c438d1f.js","./SettingItem-legacy.2e0a1b78.js","./ResponsiveGrid-legacy.92d430a0.js","./index-legacy.c084734b.js","./index-legacy.7efaa5f5.js","./index-legacy.d8a05658.js","./index-legacy.35059afc.js","./index-legacy.fdc1b267.js","./item_type-legacy.1b6076a1.js"],(function(t,n){"use strict";var a,u,c,l,s,f,h,y,p,d,v,g,m,w,b,x,L,j,E;return{setters:[function(t){a=t.b,u=t.d,c=t.ba,l=t.bq,s=t.de,f=t.C,h=t.B,y=t.y,p=t.dL,d=t.a5,v=t.a3,g=t.n,m=t.aw,w=t.R,b=t.Y,x=t.dK},function(t){L=t.b},function(t){j=t.I},function(t){E=t.R},null,null,null,null,null,null],execute:function(){t("default",(function(t){var n=a(),S=u().pathname;L("manage.sidemenu.".concat(S().split("/").pop()));var _=i(c((function(){return l.get("/admin/setting/list?group=".concat(t.group))})),2),k=_[0],O=_[1],I=i(s([]),2),A=I[0],G=I[1],N=function(){var t=o(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,O();case 2:e=t.sent,v(e,G);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();N();var P=c((function(){return l.post("/admin/setting/save",function(t){var e=x(t),r=e.find((function(t){return"allow_register"===t.key}));return"true"!==(null==r?void 0:r.value)?e.filter((function(t){return"default_role"!==t.key})):e}(A))})),T=i(P,2),F=T[0],C=T[1],$=i(f(!1),2),R=$[0],Y=$[1],q=h((function(){var t=e(A),r=t.findIndex((function(t){return"allow_indexed"===t.key})),n=t.findIndex((function(t){return"use_newui"===t.key}));if(-1!==r&&-1!==n)if(n<r){var o=t.splice(n,1)[0];t.splice(r,0,o)}else if(n>r+1){var i=t.splice(n,1)[0];t.splice(r+1,0,i)}return t}));return y(b,{w:"$full",alignItems:"start",spacing:"$2",get children(){return[y(E,{get children(){return y(p,{get each(){return q()},children:function(t,e){return y(j,d(t,{onChange:function(e){G((function(e){return t().key===e.key}),"value",e)},onDelete:(i=o(r().mark((function e(){var o;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Y(!0),e.next=3,l.post("/admin/setting/delete?key=".concat(t().key));case 3:o=e.sent,Y(!1),v(o,(function(){g.success(n("global.delete_success")),N()}));case 6:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)})}));var i}})}}),y(m,{spacing:"$2",get children(){return[y(w,{colorScheme:"accent",onClick:N,get loading(){return k()||R()},get children(){return n("global.refresh")}}),y(w,{get loading(){return F()},onClick:(t=o(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,C();case 2:e=t.sent,v(e,(function(){return g.success(n("global.save_success"))}));case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)}),get children(){return n("global.save")}})];var t}})]}})}))}}}))}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e,y as a}from"./index-
|
|
1
|
+
import{b as e,y as a}from"./index-6e98aa26.js";import{b as p}from"./useTitle-f9295ffa.js";import{T as s}from"./Tasks-da5c9e10.js";import{b as o}from"./helper-ab5aae32.js";import"./Paginator-33b3808f.js";import"./index-aa5a83eb.js";import"./Task-ee12c6df.js";const g=()=>{const r=e();return p("manage.sidemenu.copy"),a(s,{type:"copy",canRetry:!0,get nameAnalyzer(){return{regex:/^copy \[(.*\/([^\/]*))]\((.*\/([^\/]*))\) to \[(.+)]\((.+)\)$/,title:t=>t[4]!==""?t[4]:t[2]===""?"/":t[2],attrs:{[r("tasks.attr.copy.src")]:t=>o(t[1],t[3]),[r("tasks.attr.copy.dst")]:t=>o(t[5],t[6])}}}})};export{g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}System.register(["./index-legacy.
|
|
1
|
+
!function(){function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}System.register(["./index-legacy.0569de56.js","./useTitle-legacy.4c438d1f.js","./Tasks-legacy.24f9634a.js","./helper-legacy.4304690b.js","./Paginator-legacy.0bcc0a06.js","./index-legacy.35059afc.js","./Task-legacy.993c84aa.js"],(function(t,n){"use strict";var r,c,u,a,s;return{setters:[function(e){r=e.b,c=e.y},function(e){u=e.b},function(e){a=e.T},function(e){s=e.b},null,null,null],execute:function(){t("default",(function(){var t=r();return u("manage.sidemenu.copy"),c(a,{type:"copy",canRetry:!0,get nameAnalyzer(){var n;return{regex:/^copy \[(.*\/([^\/]*))]\((.*\/([^\/]*))\) to \[(.+)]\((.+)\)$/,title:function(e){return""!==e[4]?e[4]:""===e[2]?"/":e[2]},attrs:(n={},e(n,t("tasks.attr.copy.src"),(function(e){return s(e[1],e[3])})),e(n,t("tasks.attr.copy.dst"),(function(e){return s(e[5],e[6])})),n)}}})}))}}}))}();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{y as e,Y as t}from"./index-6e98aa26.js";import{b as a}from"./useTitle-f9295ffa.js";import{T as r}from"./Tasks-da5c9e10.js";import{c as s,d as m}from"./helper-ab5aae32.js";import"./Paginator-33b3808f.js";import"./index-aa5a83eb.js";import"./Task-ee12c6df.js";const y=()=>(a("manage.sidemenu.decompress"),e(t,{w:"$full",alignItems:"start",spacing:"$4",get children(){return[e(r,{type:"decompress",canRetry:!0,get nameAnalyzer(){return s()}}),e(r,{type:"decompress_upload",canRetry:!0,get nameAnalyzer(){return m()}})]}}));export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./index-legacy.
|
|
1
|
+
System.register(["./index-legacy.0569de56.js","./useTitle-legacy.4c438d1f.js","./Tasks-legacy.24f9634a.js","./helper-legacy.4304690b.js","./Paginator-legacy.0bcc0a06.js","./index-legacy.35059afc.js","./Task-legacy.993c84aa.js"],(function(e,n){"use strict";var t,r,s,a,c,l;return{setters:[function(e){t=e.y,r=e.Y},function(e){s=e.b},function(e){a=e.T},function(e){c=e.c,l=e.d},null,null,null],execute:function(){e("default",(function(){return s("manage.sidemenu.decompress"),t(r,{w:"$full",alignItems:"start",spacing:"$4",get children(){return[t(a,{type:"decompress",canRetry:!0,get nameAnalyzer(){return c()}}),t(a,{type:"decompress_upload",canRetry:!0,get nameAnalyzer(){return l()}})]}})}))}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as c,y as e,ej as i,R as o,el as d,em as g,eo as s,en as u,aw as h,ei as m}from"./index-
|
|
1
|
+
import{b as c,y as e,ej as i,R as o,el as d,em as g,eo as s,en as u,aw as h,ei as m}from"./index-6e98aa26.js";const v=r=>{const n=c(),t=r.disabled??!1,l=r.buttonText??n("global.delete");return e(m,{children:({onClose:a})=>[e(i,{as:o,colorScheme:"danger",disabled:t,children:l}),e(d,{get children(){return[e(g,{}),e(s,{get children(){return n("global.delete_confirm",{name:r.name})}}),e(u,{get children(){return e(h,{spacing:"$2",get children(){return[e(o,{onClick:a,colorScheme:"neutral",get children(){return n("global.cancel")}}),e(o,{colorScheme:"danger",get loading(){return r.loading},get onClick(){return r.onClick},get children(){return n("global.confirm")}})]}})}})]}})]})};export{v as D};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./index-legacy.
|
|
1
|
+
System.register(["./index-legacy.0569de56.js"],(function(e,n){"use strict";var r,l,t,c,i,o,u,a,d,g;return{setters:[function(e){r=e.b,l=e.y,t=e.ej,c=e.R,i=e.el,o=e.em,u=e.eo,a=e.en,d=e.aw,g=e.ei}],execute:function(){e("D",(function(e){var n,s,h=r(),m=null!==(n=e.disabled)&&void 0!==n&&n,b=null!==(s=e.buttonText)&&void 0!==s?s:h("global.delete");return l(g,{children:function(n){var r=n.onClose;return[l(t,{as:c,colorScheme:"danger",disabled:m,children:b}),l(i,{get children(){return[l(o,{}),l(u,{get children(){return h("global.delete_confirm",{name:e.name})}}),l(a,{get children(){return l(d,{spacing:"$2",get children(){return[l(c,{onClick:r,colorScheme:"neutral",get children(){return h("global.cancel")}}),l(c,{colorScheme:"danger",get loading(){return e.loading},get onClick(){return e.onClick},get children(){return h("global.confirm")}})]}})}})]}})]}})}))}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as O,d as T,a4 as v,C as d,I as M,y as e,M as j,J as I,X as F,K as z,L as P,Y as E,Z as _,$ as H,bD as R,bE as p,av as D,S as u,bF as K,a6 as h,
|
|
1
|
+
import{b as O,d as T,a4 as v,C as d,I as M,y as e,M as j,J as I,X as F,K as z,L as P,Y as E,Z as _,$ as H,bD as R,bE as p,av as D,S as u,bF as K,a6 as h,dv as b,dw as m,dx as N,aG as q,bI as G,bK as J,aw as i,a0 as Q,bL as U,Q as V,R as o,aE as W,dy as X,U as Y,b2 as Z,a3 as A,n as f}from"./index-6e98aa26.js";const te=n=>{const l=O(),{to:S}=T(),{refresh:C}=v(),[a,s]=d([]),[$,g]=d(!1),y=()=>{var t;n.isOpen&&((t=n.obj.label_list)!=null&&t.length)?s(n.obj.label_list.map(r=>r.id.toString())):s([])};M(()=>{n.isOpen&&y()});const w=async()=>{try{g(!0);const t=n.isBatch&&n.selectedObjs?n.selectedObjs:[n.obj],r=await Z(a(),t);A(r,()=>{f.success(l("home.tag.bind_success")),n.onSubmit(a()),n.onClose(),setTimeout(()=>{C(!1,!1)},300)})}catch(t){f.error(t.message||l("home.tag.bind_failed"))}finally{g(!1)}},L=()=>{n.onClose(),S("/@manage/settings/tag")},x=t=>{const r=a();r.includes(t)?s(r.filter(c=>c!==t)):s([...r,t])},k=t=>{s(a().filter(r=>r!==t))},B=t=>{var r;return((r=n.labels.find(c=>c.id.toString()===t))==null?void 0:r.name)||""};return e(Y,{get opened(){return n.isOpen},get onClose(){return n.onClose},get children(){return[e(j,{}),e(I,{get children(){return[e(F,{}),e(z,{get children(){return l("home.tag.tag")}}),e(P,{get children(){return e(E,{spacing:"$3",get children(){return e(_,{required:!0,get children(){return[e(H,{color:"$neutral11",get children(){return l("home.tag.select")}}),e(R,{multiple:!0,get value(){return a()},onChange:s,get children(){return[e(p,{get children(){return e(D,{display:"flex",flexWrap:"wrap",gap:"$2",p:"$2",minH:"40px",alignItems:"center",get children(){return e(u,{get when(){return a().length>0},get fallback(){return e(K,{get children(){return l("home.tag.select")}})},get children(){return[e(h,{get each(){return a().slice(0,3)},children:t=>e(b,{size:"lg",variant:"subtle",bgColor:"$neutral2",rounded:"$sm",px:"$3",py:"$1",get children(){return[e(m,{get children(){return B(t)}}),e(N,{onClick:r=>{r.stopPropagation(),k(t)}})]}})}),e(u,{get when(){return a().length>3},get children(){return e(b,{size:"lg",variant:"subtle",bgColor:"$neutral2",rounded:"$sm",px:"$3",py:"$1",get children(){return e(m,{get children(){return["+",q(()=>a().length-3)]}})}})}})]}})}})}}),e(G,{get children(){return e(h,{get each(){return n.labels},children:t=>e(J,{get value(){return t.id.toString()},onClick:()=>x(t.id.toString()),get children(){return e(i,{spacing:"$2",w:"$full",pl:"$4",fontSize:"$lg",get children(){return[e(Q,{get checked(){return a().includes(t.id.toString())},readOnly:!0}),e(U,{get children(){return t.name}})]}})}})})}})]}})]}})}})}}),e(V,{get children(){return e(i,{spacing:"$2",justifyContent:"space-between",w:"$full",get children(){return[e(o,{onClick:L,get leftIcon(){return e(W,{as:X,boxSize:"$5"})},get children(){return l("home.tag.new")}}),e(i,{spacing:"$2",get children(){return[e(o,{colorScheme:"primary",get onClick(){return n.onClose},get children(){return l("global.cancel")}}),e(o,{onClick:w,get loading(){return $()},get children(){return l("global.confirm")}})]}})]}})}})]}})]}})};export{te as default};
|
package/dist/assets/{EditLabelDialog-legacy.f130f84a.js → EditLabelDialog-legacy.1621d4fa.js}
RENAMED
|
@@ -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(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||i(t)||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 r(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return e};var e={},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(_){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 j(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 O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(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(_){return{type:"throw",arg:_}}}e.wrap=s;var h={};function d(){}function p(){}function g(){}var y={};l(y,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v($([])));m&&m!==n&&o.call(m,a)&&(y=m);var b=g.prototype=d.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(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 S(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,S(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 E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function $(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:O}}function O(){return{value:void 0,done:!0}}return p.prototype=g,l(b,"constructor",g),l(g,"constructor",p),p.displayName=l(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},w(x.prototype),l(x.prototype,u,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),l(b,c,"Generator"),l(b,a,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),e.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}},e.values=$,j.prototype={constructor:j,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(E),!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),E(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;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:$(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}function n(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 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)||i(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){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}function a(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.cdce98e1.js"],(function(t,i){"use strict";var a,u,c,l,s,f,h,d,p,g,y,v,m,b,w,x,S,L,E,j,$,O,_,k,C,I,A,G,P,N,T,F,z,Y,K,M,U;return{setters:[function(t){a=t.b,u=t.d,c=t.a4,l=t.C,s=t.I,f=t.y,h=t.M,d=t.J,p=t.X,g=t.K,y=t.L,v=t.Y,m=t.Z,b=t.$,w=t.bD,x=t.bE,S=t.av,L=t.S,E=t.bF,j=t.a6,$=t.du,O=t.dv,_=t.dw,k=t.aG,C=t.bI,I=t.bK,A=t.aw,G=t.a0,P=t.bL,N=t.Q,T=t.R,F=t.aE,z=t.dx,Y=t.U,K=t.b2,M=t.a3,U=t.n}],execute:function(){t("default",(function(t){var i=a(),q=u().to,B=c().refresh,D=o(l([]),2),H=D[0],J=D[1],Q=o(l(!1),2),R=Q[0],W=Q[1];s((function(){var e;t.isOpen&&(t.isOpen&&null!==(e=t.obj.label_list)&&void 0!==e&&e.length?J(t.obj.label_list.map((function(t){return t.id.toString()}))):J([]))}));var X=function(){var e,o=(e=r().mark((function e(){var n,o;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,W(!0),n=t.isBatch&&t.selectedObjs?t.selectedObjs:[t.obj],e.next=5,K(H(),n);case 5:o=e.sent,M(o,(function(){U.success(i("home.tag.bind_success")),t.onSubmit(H()),t.onClose(),setTimeout((function(){B(!1,!1)}),300)})),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),U.error(e.t0.message||i("home.tag.bind_failed"));case 12:return e.prev=12,W(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,9,12,15]])})),function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function u(t){n(a,o,i,u,c,"next",t)}function c(t){n(a,o,i,u,c,"throw",t)}u(void 0)}))});return function(){return o.apply(this,arguments)}}(),Z=function(){t.onClose(),q("/@manage/settings/tag")};return f(Y,{get opened(){return t.isOpen},get onClose(){return t.onClose},get children(){return[f(h,{}),f(d,{get children(){return[f(p,{}),f(g,{get children(){return i("home.tag.tag")}}),f(y,{get children(){return f(v,{spacing:"$3",get children(){return f(m,{required:!0,get children(){return[f(b,{color:"$neutral11",get children(){return i("home.tag.select")}}),f(w,{multiple:!0,get value(){return H()},onChange:J,get children(){return[f(x,{get children(){return f(S,{display:"flex",flexWrap:"wrap",gap:"$2",p:"$2",minH:"40px",alignItems:"center",get children(){return f(L,{get when(){return H().length>0},get fallback(){return f(E,{get children(){return i("home.tag.select")}})},get children(){return[f(j,{get each(){return H().slice(0,3)},children:function(e){return f($,{size:"lg",variant:"subtle",bgColor:"$neutral2",rounded:"$sm",px:"$3",py:"$1",get children(){return[f(O,{get children(){return r=e,(null===(n=t.labels.find((function(t){return t.id.toString()===r})))||void 0===n?void 0:n.name)||"";var r,n}}),f(_,{onClick:function(t){var r;t.stopPropagation(),r=e,J(H().filter((function(t){return t!==r})))}})]}})}}),f(L,{get when(){return H().length>3},get children(){return f($,{size:"lg",variant:"subtle",bgColor:"$neutral2",rounded:"$sm",px:"$3",py:"$1",get children(){return f(O,{get children(){return["+",k((function(){return H().length-3}))]}})}})}})]}})}})}}),f(C,{get children(){return f(j,{get each(){return t.labels},children:function(t){return f(I,{get value(){return t.id.toString()},onClick:function(){return r=t.id.toString(),void((n=H()).includes(r)?J(n.filter((function(t){return t!==r}))):J([].concat(e(n),[r])));var r,n},get children(){return f(A,{spacing:"$2",w:"$full",pl:"$4",fontSize:"$lg",get children(){return[f(G,{get checked(){return H().includes(t.id.toString())},readOnly:!0}),f(P,{get children(){return t.name}})]}})}})}})}})]}})]}})}})}}),f(N,{get children(){return f(A,{spacing:"$2",justifyContent:"space-between",w:"$full",get children(){return[f(T,{onClick:Z,get leftIcon(){return f(F,{as:z,boxSize:"$5"})},get children(){return i("home.tag.new")}}),f(A,{spacing:"$2",get children(){return[f(T,{colorScheme:"primary",get onClick(){return t.onClose},get children(){return i("global.cancel")}}),f(T,{onClick:X,get loading(){return R()},get children(){return i("global.confirm")}})]}})]}})}})]}})]}})}))}}}))}();
|
|
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(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||i(t)||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 r(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return e};var e={},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(_){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 j(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 O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(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(_){return{type:"throw",arg:_}}}e.wrap=s;var h={};function d(){}function p(){}function g(){}var y={};l(y,a,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v($([])));m&&m!==n&&o.call(m,a)&&(y=m);var b=g.prototype=d.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(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 S(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,S(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 E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function $(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:O}}function O(){return{value:void 0,done:!0}}return p.prototype=g,l(b,"constructor",g),l(g,"constructor",p),p.displayName=l(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},w(x.prototype),l(x.prototype,u,(function(){return this})),e.AsyncIterator=x,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),l(b,c,"Generator"),l(b,a,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),e.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}},e.values=$,j.prototype={constructor:j,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(E),!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),E(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;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:$(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}function n(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 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)||i(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){if(t){if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}function a(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.0569de56.js"],(function(t,i){"use strict";var a,u,c,l,s,f,h,d,p,g,y,v,m,b,w,x,S,L,E,j,$,O,_,k,C,I,A,G,P,N,T,F,z,Y,K,M,U;return{setters:[function(t){a=t.b,u=t.d,c=t.a4,l=t.C,s=t.I,f=t.y,h=t.M,d=t.J,p=t.X,g=t.K,y=t.L,v=t.Y,m=t.Z,b=t.$,w=t.bD,x=t.bE,S=t.av,L=t.S,E=t.bF,j=t.a6,$=t.dv,O=t.dw,_=t.dx,k=t.aG,C=t.bI,I=t.bK,A=t.aw,G=t.a0,P=t.bL,N=t.Q,T=t.R,F=t.aE,z=t.dy,Y=t.U,K=t.b2,M=t.a3,U=t.n}],execute:function(){t("default",(function(t){var i=a(),q=u().to,B=c().refresh,D=o(l([]),2),H=D[0],J=D[1],Q=o(l(!1),2),R=Q[0],W=Q[1];s((function(){var e;t.isOpen&&(t.isOpen&&null!==(e=t.obj.label_list)&&void 0!==e&&e.length?J(t.obj.label_list.map((function(t){return t.id.toString()}))):J([]))}));var X=function(){var e,o=(e=r().mark((function e(){var n,o;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,W(!0),n=t.isBatch&&t.selectedObjs?t.selectedObjs:[t.obj],e.next=5,K(H(),n);case 5:o=e.sent,M(o,(function(){U.success(i("home.tag.bind_success")),t.onSubmit(H()),t.onClose(),setTimeout((function(){B(!1,!1)}),300)})),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),U.error(e.t0.message||i("home.tag.bind_failed"));case 12:return e.prev=12,W(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,9,12,15]])})),function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function u(t){n(a,o,i,u,c,"next",t)}function c(t){n(a,o,i,u,c,"throw",t)}u(void 0)}))});return function(){return o.apply(this,arguments)}}(),Z=function(){t.onClose(),q("/@manage/settings/tag")};return f(Y,{get opened(){return t.isOpen},get onClose(){return t.onClose},get children(){return[f(h,{}),f(d,{get children(){return[f(p,{}),f(g,{get children(){return i("home.tag.tag")}}),f(y,{get children(){return f(v,{spacing:"$3",get children(){return f(m,{required:!0,get children(){return[f(b,{color:"$neutral11",get children(){return i("home.tag.select")}}),f(w,{multiple:!0,get value(){return H()},onChange:J,get children(){return[f(x,{get children(){return f(S,{display:"flex",flexWrap:"wrap",gap:"$2",p:"$2",minH:"40px",alignItems:"center",get children(){return f(L,{get when(){return H().length>0},get fallback(){return f(E,{get children(){return i("home.tag.select")}})},get children(){return[f(j,{get each(){return H().slice(0,3)},children:function(e){return f($,{size:"lg",variant:"subtle",bgColor:"$neutral2",rounded:"$sm",px:"$3",py:"$1",get children(){return[f(O,{get children(){return r=e,(null===(n=t.labels.find((function(t){return t.id.toString()===r})))||void 0===n?void 0:n.name)||"";var r,n}}),f(_,{onClick:function(t){var r;t.stopPropagation(),r=e,J(H().filter((function(t){return t!==r})))}})]}})}}),f(L,{get when(){return H().length>3},get children(){return f($,{size:"lg",variant:"subtle",bgColor:"$neutral2",rounded:"$sm",px:"$3",py:"$1",get children(){return f(O,{get children(){return["+",k((function(){return H().length-3}))]}})}})}})]}})}})}}),f(C,{get children(){return f(j,{get each(){return t.labels},children:function(t){return f(I,{get value(){return t.id.toString()},onClick:function(){return r=t.id.toString(),void((n=H()).includes(r)?J(n.filter((function(t){return t!==r}))):J([].concat(e(n),[r])));var r,n},get children(){return f(A,{spacing:"$2",w:"$full",pl:"$4",fontSize:"$lg",get children(){return[f(G,{get checked(){return H().includes(t.id.toString())},readOnly:!0}),f(P,{get children(){return t.name}})]}})}})}})}})]}})]}})}})}}),f(N,{get children(){return f(A,{spacing:"$2",justifyContent:"space-between",w:"$full",get children(){return[f(T,{onClick:Z,get leftIcon(){return f(F,{as:z,boxSize:"$5"})},get children(){return i("home.tag.new")}}),f(A,{spacing:"$2",get children(){return[f(T,{colorScheme:"primary",get onClick(){return t.onClose},get children(){return i("global.cancel")}}),f(T,{onClick:X,get loading(){return R()},get children(){return i("global.confirm")}})]}})]}})}})]}})]}})}))}}}))}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as p,B as i,an as n,C as u,y as e,Y as c,aw as g,bs as m,aj as w,ak as d,
|
|
1
|
+
import{b as p,B as i,an as n,C as u,y as e,Y as c,aw as g,bs as m,aj as w,ak as d,cX as h,S as f}from"./index-6e98aa26.js";import{Download as b}from"./download-85777c30.js";import{O as S}from"./open-with-d9208620.js";import{g as y}from"./index-5b80a56f.js";import"./info-57ab995f.js";import"./storage-class-1ac53f89.js";import"./index-aa5a83eb.js";const B=()=>{const o=p(),t=i(()=>y({...n.obj,provider:n.provider,web_proxy:n.web_proxy})),[a,s]=u(t()[0]);return e(f,{get when(){return t().length>1},get fallback(){return e(b,{openWith:!0})},get children(){return e(c,{w:"$full",spacing:"$2",get children(){return[e(g,{w:"$full",spacing:"$2",get children(){return[e(m,{alwaysShowBorder:!0,get value(){return a().name},onChange:r=>{s(t().find(l=>l.name===r))},get options(){return t().map(r=>({value:r.name,label:r.i18nKey?o(r.i18nKey):r.name}))}}),e(S,{})]}}),e(w,{get fallback(){return e(d,{})},get children(){return e(h,{get component(){return a().component}})}})]}})}})};export{B as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){function e(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var t,o,u=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(u.push(t.value),!r||u.length!==r);i=!0);}catch(c){a=!0,o=c}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return u}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return r(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,n)}(e,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(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function n(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function t(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?n(Object(t),!0).forEach((function(r){o(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):n(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function o(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}System.register(["./index-legacy.
|
|
1
|
+
!function(){function e(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var t,o,u=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(t=n.next()).done)&&(u.push(t.value),!r||u.length!==r);i=!0);}catch(c){a=!0,o=c}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return u}(e,n)||function(e,n){if(!e)return;if("string"==typeof e)return r(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return r(e,n)}(e,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(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n<r;n++)t[n]=e[n];return t}function n(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function t(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?n(Object(t),!0).forEach((function(r){o(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):n(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function o(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}System.register(["./index-legacy.0569de56.js","./download-legacy.0a88d596.js","./open-with-legacy.e3bd9fea.js","./index-legacy.f38f262a.js","./info-legacy.6f573e67.js","./storage-class-legacy.7f6d9768.js","./index-legacy.35059afc.js"],(function(r,n){"use strict";var o,u,i,a,c,l,f,s,y,g,p,b,d,j,h;return{setters:[function(e){o=e.b,u=e.B,i=e.an,a=e.C,c=e.y,l=e.Y,f=e.aw,s=e.bs,y=e.aj,g=e.ak,p=e.cX,b=e.S},function(e){d=e.Download},function(e){j=e.O},function(e){h=e.g},null,null,null],execute:function(){r("default",(function(){var r=o(),n=u((function(){return h(t(t({},i.obj),{},{provider:i.provider,web_proxy:i.web_proxy}))})),m=e(a(n()[0]),2),w=m[0],O=m[1];return c(b,{get when(){return n().length>1},get fallback(){return c(d,{openWith:!0})},get children(){return c(l,{w:"$full",spacing:"$2",get children(){return[c(f,{w:"$full",spacing:"$2",get children(){return[c(s,{alwaysShowBorder:!0,get value(){return w().name},onChange:function(e){O(n().find((function(r){return r.name===e})))},get options(){return n().map((function(e){return{value:e.name,label:e.i18nKey?r(e.i18nKey):e.name}}))}}),c(j,{})]}}),c(y,{get fallback(){return c(g,{})},get children(){return c(p,{get component(){return w().component}})}})]}})}})}))}}}))}();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{ag as
|
|
1
|
+
import{ag as W,ah as D,b as z,di as xe,aQ as we,a4 as V,C as F,r as Q,W as S,x as K,cU as he,y as r,a6 as X,aO as ae,ay as P,az as M,dj as H,S as N,aG as ie,bg as B,e as J,aw as L,aE as j,b0 as be,ar as $,dk as Ee,j as de,n as _e,cV as fe,dl as Ie,dm as Se,aB as Ne,ac as Re,a$ as oe,aV as se,aj as Ce,aA as Oe,b2 as Me,l as ge,am as T,an as ee,ap as Te,ak as te,al as ne,d as pe,B as me,cI as ce,cN as $e,bD as Le,dn as le,bE as Ae,R as ve,av as Pe,bI as Fe,bJ as ze,bK as We,bL as De,dp as Be,dq as Je,dr as je,aW as Ve,ba as Ke,ds as Ue,M as He,J as Ge,X as qe,K as Ze,L as Xe,Y,bs as Ye,N as Qe,ci as et,aF as tt,U as nt,aa as ue,aD as rt,dt as at,cJ as it,df as ot,aH as st,_ as ct,a3 as lt,a7 as ut,du as ht,I as dt,E as ft,cW as G}from"./index-6e98aa26.js";import{x as _,C as q,w as gt}from"./solid-contextmenu-c30dd1d1.js";import{u as pt,o as Z,a as mt}from"./Layout-03b40a95.js";/* empty css */import{p as vt}from"./video_box-3ddaba1b.js";import{i as yt,L as kt}from"./index-aa5a83eb.js";import{P as ye}from"./Paginator-33b3808f.js";import{l as xt,Z as wt,T as bt,R as Et,A as _t,F as It}from"./lightgallery-bundle-aafbce76.js";import"./useTitle-f9295ffa.js";import"./layout-8c3e88b6.js";import"./FolderTree-fee990c3.js";import"./index-d8ea6769.js";import"./index-9f85fd4a.js";import"./index-6e2f0655.js";import"./StrmGenerate-79e9aee1.js";import"./index-cdc3b5ff.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./storage-class-1ac53f89.js";const St=Oe("<div></div>"),Nt=W(()=>D(()=>import("./AddLabelDialog-1d6357b9.js"),["assets/AddLabelDialog-1d6357b9.js","assets/index-6e98aa26.js","assets/index-b206f97b.css"])),Rt=W(()=>D(()=>import("./EditLabelDialog-a98f4188.js"),["assets/EditLabelDialog-a98f4188.js","assets/index-6e98aa26.js","assets/index-b206f97b.css"])),O=d=>{const k=z();return r(L,{spacing:"$2",get children(){return[r(j,{get p(){return Z[d.name].p?"$1":void 0},get as(){return Z[d.name].icon},boxSize:"$7",get color(){return Z[d.name].color}}),r($,{get children(){return k(`home.toolbar.${d.name}`)}})]}})},Ct=()=>{const d=z(),{colorMode:k}=xe(),{copySelectedRawLink:p,copySelectedPreviewPage:E}=we(),{batchDownloadSelected:w,sendToAria2:b,playlistDownloadSelected:x}=pt(),{refresh:R}=V(),{labels:C,refetch:m}=mt(),[c,e]=F(!1),[n,t]=F(!1),[a,i]=F(null);Q(()=>{const l=()=>{m()};S.on("refresh_labels",l),K(()=>{S.off("refresh_labels",l)})});const s=async(l,g,y)=>{var v;try{const I=a();if(!I)return;const A=await m();if((v=A==null?void 0:A.data)!=null&&v.content){const re=A.data.content.find(U=>U.name===l&&U.description===g&&U.bg_color===y);re&&(await Me(re.id.toString(),[I]),await R(!1,!0))}}catch(I){console.error("Failed to bind label to file:",I)}},o=l=>{S.emit("refresh")},u=()=>P.is_admin(M())||se("package_download"),f=()=>!oe()||!P.is_admin(M())?!1:J().every(l=>!l.is_dir&&!!l.storage_class),{rawLink:h}=he();return[r(gt,{id:1,animation:"scale",get theme(){return k()!=="dark"?"light":"dark"},style:"z-index: var(--hope-zIndices-popover)",get children(){return[r(X,{each:["rename","move","copy","delete"],children:l=>r(_,{hidden:()=>{const g=ae.findIndex(y=>y===l);return!P.can(M(),g,H())},onClick:()=>{S.emit("tool",l)},get children(){return r(O,{name:l})}})}),r(N,{get when(){return ie(()=>!!(B()&&P.is_admin(M())),!0)()&&!J()[0].is_dir},get children(){return r(_,{onClick:({props:l})=>{var y,v;i(l);const g=C();(v=(y=g==null?void 0:g.data)==null?void 0:y.content)!=null&&v.length?t(!0):e(!0)},get children(){return r(L,{spacing:"$2",get children(){return[r(j,{as:be,boxSize:"$7",color:"$info9"}),r($,{get children(){return d("home.tag.add")}})]}})}})}}),r(N,{get when(){return B()},get children(){return r(_,{hidden:()=>{const l=ae.findIndex(g=>g==="decompress");return!P.can(M(),l,H())||J()[0].is_dir||!Ee(J()[0].name)},onClick:()=>{S.emit("tool","decompress")},get children(){return r(O,{name:"decompress"})}})}}),r(N,{get when(){return f()},get children(){return[r(_,{onClick:()=>{S.emit("tool","s3_archive")},get children(){return r(O,{name:"s3_archive"})}}),r(_,{onClick:()=>{S.emit("tool","s3_restore")},get children(){return r(O,{name:"s3_restore"})}})]}}),r(N,{get when(){return B()},get children(){return[r(_,{onClick:({props:l})=>{S.emit("share",{path:de(H(),l.name),name:l.name,is_dir:l.is_dir})},get children(){return r(O,{name:"share"})}}),r(_,{onClick:({props:l})=>{l.is_dir?E():p(!0)},get children(){return r(O,{name:"copy_link"})}}),r(_,{onClick:({props:l})=>{if(l.is_dir){if(!u()){_e.warning(d("home.toolbar.package_download_disabled"));return}S.emit("tool","package_download")}else w()},get children(){return r(O,{name:"download"})}}),r(q,{hidden:({props:l})=>l.type!==fe.VIDEO,get label(){return r(L,{spacing:"$2",get children(){return[r(j,{as:Ie,boxSize:"$7",p:"$0_5",color:"$info9"}),r($,{get children(){return d("home.preview.play_with")}})]}})},get children(){return r(X,{each:vt,children:l=>r(_,{onClick:({props:g})=>{const y=Se(l.scheme,{raw_url:"",name:g.name,d_url:h(g,!0)});window.open(y,"_self")},get children(){return r(L,{spacing:"$2",get children(){return[r(Ne,{m:"0 auto",boxSize:"$7",get src(){return Re(`/images/${l.icon}.webp`)}}),r($,{get children(){return l.name}})]}})}})})}})]}}),r(N,{get when(){return ie(()=>!B(),!0)()&&oe()},get children(){return[r(q,{get label(){return r(O,{name:"copy_link"})},get children(){return[r(_,{onClick:E,get children(){return d("home.toolbar.preview_page")}}),r(_,{onClick:()=>p(),get children(){return d("home.toolbar.down_link")}}),r(_,{onClick:()=>p(!0),get children(){return d("home.toolbar.encode_down_link")}})]}}),r(q,{get label(){return r(O,{name:"download"})},get children(){return[r(_,{onClick:w,get children(){return d("home.toolbar.batch_download")}}),r(N,{get when(){return P.is_admin(M())||se("package_download")},get children(){return[r(_,{onClick:()=>S.emit("tool","package_download"),get children(){return d("home.toolbar.package_download")}}),r(_,{onClick:x,get children(){return d("home.toolbar.playlist_download")}})]}}),r(_,{onClick:b,get children(){return d("home.toolbar.send_aria2")}})]}})]}})]}}),r(Ce,{get fallback(){return St.cloneNode(!0)},get children(){return[r(N,{get when(){return c()},get children(){return r(Nt,{get isOpen(){return c()},onClose:()=>e(!1),onSubmit:s})}}),r(N,{get when(){return n()},get children(){return r(Rt,{get isOpen(){return n()},onClose:()=>t(!1),onSubmit:o,get labels(){var l,g;return((g=(l=C())==null?void 0:l.data)==null?void 0:g.content)||[]},get obj(){return a()}})}})]}})]},Ot=()=>{const d=ge(),{pathname:k,searchParams:p,setSearchParams:E}=pe(),w=[50,100,200,300,500].filter(x=>x<=ce),b=me(()=>{const x=parseInt(p.per_page,10);return Number.isFinite(x)&&x>0?Math.min(ce,x):d.size||$e});return r(L,{spacing:"$2",flexWrap:"wrap",justifyContent:"center",get children(){return[r(L,{spacing:"$1",get children(){return r(Le,{size:"sm",get defaultValue(){return b()},onChange:x=>{const R=Number(x);le(k(),1),E({page:1,per_page:R})},get children(){return[r(Ae,{as:ve,size:"sm",variant:"subtle",minW:"$20",get children(){return[r(Pe,{get children(){return b()}}),r(yt,{})]}}),r(Fe,{minW:"$20",get children(){return r(ze,{get children(){return w.map(x=>r(We,{value:x,get children(){return r(De,{children:x})}}))}})}})]}})}}),r(N,{get when(){return b()},keyed:!0,children:x=>r(ye,{get total(){return ee.total},get defaultCurrent(){return Be()},defaultPageSize:x,onChange:R=>{le(k(),R),E({page:R,per_page:x})}})})]}})},Mt=()=>{const{loadMore:d,allLoaded:k}=V(),p=z();return r(N,{get when(){return!k()},get fallback(){return r($,{fontStyle:"italic",get children(){return p("home.no_more")}})},get children(){return r(ve,{onClick:d,get children(){return p("home.load_more")}})}})},Tt=()=>{const{loadMore:d,allLoaded:k}=V(),p=z(),E=new IntersectionObserver(b=>{b[0].isIntersecting&&d()},{threshold:.1});let w;return Q(()=>{k()||E.observe(w)}),K(()=>{E.disconnect()}),r(N,{get when(){return!k()},get fallback(){return r($,{fontStyle:"italic",get children(){return p("home.no_more")}})},get children(){return r(te,{py:"$2",size:"md",thickness:3,ref(b){const x=w;typeof x=="function"?x(b):w=b}})}})},$t=()=>{const d=ge();return r(ne,{get children(){return[r(T,{get when(){return ee.state===Te.FetchingMore},get children(){return r(te,{py:"$2",size:"md",thickness:3})}}),r(T,{get when(){return d.type==="pagination"},get children(){return r(Ot,{})}}),r(T,{get when(){return d.type==="load_more"},get children(){return r(Mt,{})}}),r(T,{get when(){return d.type==="auto_load_more"},get children(){return r(Tt,{})}})]}})};var ke={exports:{}};/*!***************************************************
|
|
2
2
|
* mark.js v8.11.1
|
|
3
3
|
* https://markjs.io/
|
|
4
4
|
* Copyright (c) 2014–2018, Julian Kühnel
|
|
5
5
|
* Released under the MIT license https://git.io/vwTVl
|
|
6
|
-
*****************************************************/(function(d,k){(function(p,E){d.exports=E()})(Je,function(){var p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},E=function(m,c){if(!(m instanceof c))throw new TypeError("Cannot call a class as a function")},w=function(){function m(c,e){for(var n=0;n<e.length;n++){var t=e[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(c,t.key,t)}}return function(c,e,n){return e&&m(c.prototype,e),n&&m(c,n),c}}(),b=Object.assign||function(m){for(var c=1;c<arguments.length;c++){var e=arguments[c];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(m[n]=e[n])}return m},x=function(){function m(c){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;E(this,m),this.ctx=c,this.iframes=e,this.exclude=n,this.iframesTimeout=t}return w(m,[{key:"getContexts",value:function(){var e=void 0,n=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(function(t){var a=n.filter(function(i){return i.contains(t)}).length>0;n.indexOf(t)===-1&&!a&&n.push(t)}),n}},{key:"getIframeContents",value:function(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=void 0;try{var i=e.contentWindow;if(a=i.document,!i||!a)throw new Error("iframe inaccessible")}catch{t()}a&&n(a)}},{key:"isIframeBlank",value:function(e){var n="about:blank",t=e.getAttribute("src").trim(),a=e.contentWindow.location.href;return a===n&&t!==n&&t}},{key:"observeIframeLoad",value:function(e,n,t){var a=this,i=!1,s=null,o=function u(){if(!i){i=!0,clearTimeout(s);try{a.isIframeBlank(e)||(e.removeEventListener("load",u),a.getIframeContents(e,n,t))}catch{t()}}};e.addEventListener("load",o),s=setTimeout(o,this.iframesTimeout)}},{key:"onIframeReady",value:function(e,n,t){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,n,t):this.getIframeContents(e,n,t):this.observeIframeLoad(e,n,t)}catch{t()}}},{key:"waitForIframes",value:function(e,n){var t=this,a=0;this.forEachIframe(e,function(){return!0},function(i){a++,t.waitForIframes(i.querySelector("html"),function(){--a||n()})},function(i){i||n()})}},{key:"forEachIframe",value:function(e,n,t){var a=this,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},s=e.querySelectorAll("iframe"),o=s.length,u=0;s=Array.prototype.slice.call(s);var f=function(){--o<=0&&i(u)};o||f(),s.forEach(function(h){m.matches(h,a.exclude)?f():a.onIframeReady(h,function(l){n(h)&&(u++,t(l)),f()},f)})}},{key:"createIterator",value:function(e,n,t){return document.createNodeIterator(e,n,t,!1)}},{key:"createInstanceOnIframe",value:function(e){return new m(e.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(e,n,t){var a=e.compareDocumentPosition(t),i=Node.DOCUMENT_POSITION_PRECEDING;if(a&i)if(n!==null){var s=n.compareDocumentPosition(t),o=Node.DOCUMENT_POSITION_FOLLOWING;if(s&o)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(e){var n=e.previousNode(),t=void 0;return n===null?t=e.nextNode():t=e.nextNode()&&e.nextNode(),{prevNode:n,node:t}}},{key:"checkIframeFilter",value:function(e,n,t,a){var i=!1,s=!1;return a.forEach(function(o,u){o.val===t&&(i=u,s=o.handled)}),this.compareNodeIframe(e,n,t)?(i===!1&&!s?a.push({val:t,handled:!0}):i!==!1&&!s&&(a[i].handled=!0),!0):(i===!1&&a.push({val:t,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(e,n,t,a){var i=this;e.forEach(function(s){s.handled||i.getIframeContents(s.val,function(o){i.createInstanceOnIframe(o).forEachNode(n,t,a)})})}},{key:"iterateThroughNodes",value:function(e,n,t,a,i){for(var s=this,o=this.createIterator(n,e,a),u=[],f=[],h=void 0,l=void 0,g=function(){var v=s.getIteratorNode(o);return l=v.prevNode,h=v.node,h};g();)this.iframes&&this.forEachIframe(n,function(y){return s.checkIframeFilter(h,l,y,u)},function(y){s.createInstanceOnIframe(y).forEachNode(e,function(v){return f.push(v)},a)}),f.push(h);f.forEach(function(y){t(y)}),this.iframes&&this.handleOpenIframes(u,e,t,a),i()}},{key:"forEachNode",value:function(e,n,t){var a=this,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},s=this.getContexts(),o=s.length;o||i(),s.forEach(function(u){var f=function(){a.iterateThroughNodes(e,u,n,t,function(){--o<=0&&i()})};a.iframes?a.waitForIframes(u,f):f()})}}],[{key:"matches",value:function(e,n){var t=typeof n=="string"?[n]:n,a=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(a){var i=!1;return t.every(function(s){return a.call(e,s)?(i=!0,!1):!0}),i}else return!1}}]),m}(),R=function(){function m(c){E(this,m),this.ctx=c,this.ie=!1;var e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1)&&(this.ie=!0)}return w(m,[{key:"log",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",t=this.opt.log;this.opt.debug&&(typeof t>"u"?"undefined":p(t))==="object"&&typeof t[n]=="function"&&t[n]("mark.js: "+e)}},{key:"escapeStr",value:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}},{key:"createSynonymsRegExp",value:function(e){var n=this.opt.synonyms,t=this.opt.caseSensitive?"":"i",a=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var i in n)if(n.hasOwnProperty(i)){var s=n[i],o=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(i):this.escapeStr(i),u=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);o!==""&&u!==""&&(e=e.replace(new RegExp("("+this.escapeStr(o)+"|"+this.escapeStr(u)+")","gm"+t),a+("("+this.processSynomyms(o)+"|")+(this.processSynomyms(u)+")")+a))}return e}},{key:"processSynomyms",value:function(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}},{key:"setupWildcardsRegExp",value:function(e){return e=e.replace(/(?:\\)*\?/g,function(n){return n.charAt(0)==="\\"?"?":""}),e.replace(/(?:\\)*\*/g,function(n){return n.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(e){var n=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,n?"[\\S\\s]?":"\\S?").replace(/\u0002/g,n?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(e){return e.replace(/[^(|)\\]/g,function(n,t,a){var i=a.charAt(t+1);return/[(|)\\]/.test(i)||i===""?n:n+"\0"})}},{key:"createJoinersRegExp",value:function(e){var n=[],t=this.opt.ignorePunctuation;return Array.isArray(t)&&t.length&&n.push(this.escapeStr(t.join(""))),this.opt.ignoreJoiners&&n.push("\\u00ad\\u200b\\u200c\\u200d"),n.length?e.split(/\u0000+/).join("["+n.join("")+"]*"):e}},{key:"createDiacriticsRegExp",value:function(e){var n=this.opt.caseSensitive?"":"i",t=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],a=[];return e.split("").forEach(function(i){t.every(function(s){if(s.indexOf(i)!==-1){if(a.indexOf(s)>-1)return!1;e=e.replace(new RegExp("["+s+"]","gm"+n),"["+s+"]"),a.push(s)}return!0})}),e}},{key:"createMergedBlanksRegExp",value:function(e){return e.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(e){var n=this,t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",a=this.opt.accuracy,i=typeof a=="string"?a:a.value,s=typeof a=="string"?[]:a.limiters,o="";switch(s.forEach(function(u){o+="|"+n.escapeStr(u)}),i){case"partially":default:return"()("+e+")";case"complementary":return o="\\s"+(o||this.escapeStr(t)),"()([^"+o+"]*"+e+"[^"+o+"]*)";case"exactly":return"(^|\\s"+o+")("+e+")(?=$|\\s"+o+")"}}},{key:"getSeparatedKeywords",value:function(e){var n=this,t=[];return e.forEach(function(a){n.opt.separateWordSearch?a.split(" ").forEach(function(i){i.trim()&&t.indexOf(i)===-1&&t.push(i)}):a.trim()&&t.indexOf(a)===-1&&t.push(a)}),{keywords:t.sort(function(a,i){return i.length-a.length}),length:t.length}}},{key:"isNumeric",value:function(e){return Number(parseFloat(e))==e}},{key:"checkRanges",value:function(e){var n=this;if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];var t=[],a=0;return e.sort(function(i,s){return i.start-s.start}).forEach(function(i){var s=n.callNoMatchOnInvalidRanges(i,a),o=s.start,u=s.end,f=s.valid;f&&(i.start=o,i.length=u-o,t.push(i),a=u)}),t}},{key:"callNoMatchOnInvalidRanges",value:function(e,n){var t=void 0,a=void 0,i=!1;return e&&typeof e.start<"u"?(t=parseInt(e.start,10),a=t+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&a-n>0&&a-t>0?i=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(e))),this.opt.noMatch(e))):(this.log("Ignoring invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:t,end:a,valid:i}}},{key:"checkWhitespaceRanges",value:function(e,n,t){var a=void 0,i=!0,s=t.length,o=n-s,u=parseInt(e.start,10)-o;return u=u>s?s:u,a=u+parseInt(e.length,10),a>s&&(a=s,this.log("End range automatically set to the max value of "+s)),u<0||a-u<0||u>s||a>s?(i=!1,this.log("Invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)):t.substring(u,a).replace(/\s+/g,"")===""&&(i=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:u,end:a,valid:i}}},{key:"getTextNodes",value:function(e){var n=this,t="",a=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(i){a.push({start:t.length,end:(t+=i.textContent).length,node:i})},function(i){return n.matchesExclude(i.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){e({value:t,nodes:a})})}},{key:"matchesExclude",value:function(e){return x.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(e,n,t){var a=this.opt.element?this.opt.element:"mark",i=e.splitText(n),s=i.splitText(t-n),o=document.createElement(a);return o.setAttribute("data-markjs","true"),this.opt.className&&o.setAttribute("class",this.opt.className),o.textContent=i.textContent,i.parentNode.replaceChild(o,i),s}},{key:"wrapRangeInMappedTextNode",value:function(e,n,t,a,i){var s=this;e.nodes.every(function(o,u){var f=e.nodes[u+1];if(typeof f>"u"||f.start>n){if(!a(o.node))return!1;var h=n-o.start,l=(t>o.end?o.end:t)-o.start,g=e.value.substr(0,o.start),y=e.value.substr(l+o.start);if(o.node=s.wrapRangeInTextNode(o.node,h,l),e.value=g+y,e.nodes.forEach(function(v,I){I>=u&&(e.nodes[I].start>0&&I!==u&&(e.nodes[I].start-=l),e.nodes[I].end-=l)}),t-=l,i(o.node.previousSibling,o.start),t>o.end)n=o.end;else return!1}return!0})}},{key:"wrapMatches",value:function(e,n,t,a,i){var s=this,o=n===0?0:n+1;this.getTextNodes(function(u){u.nodes.forEach(function(f){f=f.node;for(var h=void 0;(h=e.exec(f.textContent))!==null&&h[o]!=="";)if(t(h[o],f)){var l=h.index;if(o!==0)for(var g=1;g<o;g++)l+=h[g].length;f=s.wrapRangeInTextNode(f,l,l+h[o].length),a(f.previousSibling),e.lastIndex=0}}),i()})}},{key:"wrapMatchesAcrossElements",value:function(e,n,t,a,i){var s=this,o=n===0?0:n+1;this.getTextNodes(function(u){for(var f=void 0;(f=e.exec(u.value))!==null&&f[o]!=="";){var h=f.index;if(o!==0)for(var l=1;l<o;l++)h+=f[l].length;var g=h+f[o].length;s.wrapRangeInMappedTextNode(u,h,g,function(y){return t(f[o],y)},function(y,v){e.lastIndex=v,a(y)})}i()})}},{key:"wrapRangeFromIndex",value:function(e,n,t,a){var i=this;this.getTextNodes(function(s){var o=s.value.length;e.forEach(function(u,f){var h=i.checkWhitespaceRanges(u,o,s.value),l=h.start,g=h.end,y=h.valid;y&&i.wrapRangeInMappedTextNode(s,l,g,function(v){return n(v,u,s.value.substring(l,g),f)},function(v){t(v,u)})}),a()})}},{key:"unwrapMatches",value:function(e){for(var n=e.parentNode,t=document.createDocumentFragment();e.firstChild;)t.appendChild(e.removeChild(e.firstChild));n.replaceChild(t,e),this.ie?this.normalizeTextNode(n):n.normalize()}},{key:"normalizeTextNode",value:function(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}},{key:"markRegExp",value:function(e,n){var t=this;this.opt=n,this.log('Searching with expression "'+e+'"');var a=0,i="wrapMatches",s=function(u){a++,t.opt.each(u)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](e,this.opt.ignoreGroups,function(o,u){return t.opt.filter(u,o,a)},s,function(){a===0&&t.opt.noMatch(e),t.opt.done(a)})}},{key:"mark",value:function(e,n){var t=this;this.opt=n;var a=0,i="wrapMatches",s=this.getSeparatedKeywords(typeof e=="string"?[e]:e),o=s.keywords,u=s.length,f=this.opt.caseSensitive?"":"i",h=function l(g){var y=new RegExp(t.createRegExp(g),"gm"+f),v=0;t.log('Searching with expression "'+y+'"'),t[i](y,1,function(I,A){return t.opt.filter(A,g,a,v)},function(I){v++,a++,t.opt.each(I)},function(){v===0&&t.opt.noMatch(g),o[u-1]===g?t.opt.done(a):l(o[o.indexOf(g)+1])})};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),u===0?this.opt.done(a):h(o[0])}},{key:"markRanges",value:function(e,n){var t=this;this.opt=n;var a=0,i=this.checkRanges(e);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,function(s,o,u,f){return t.opt.filter(s,o,u,f)},function(s,o){a++,t.opt.each(s,o)},function(){t.opt.done(a)})):this.opt.done(a)}},{key:"unmark",value:function(e){var n=this;this.opt=e;var t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+="."+this.opt.className),this.log('Removal selector "'+t+'"'),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,function(a){n.unwrapMatches(a)},function(a){var i=x.matches(a,t),s=n.matchesExclude(a);return!i||s?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}},{key:"opt",set:function(e){this._opt=b({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:function(){},noMatch:function(){},filter:function(){return!0},done:function(){},debug:!1,log:window.console},e)},get:function(){return this._opt}},{key:"iterator",get:function(){return new x(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}}]),m}();function C(m){var c=this,e=new R(m);return this.mark=function(n,t){return e.mark(n,t),c},this.markRegExp=function(n,t){return e.markRegExp(n,t),c},this.markRanges=function(n,t){return e.markRanges(n,t),c},this.unmark=function(n){return e.unmark(n),c},this}return C})})(ke);var Lt=ke.exports;const At=je(Lt);function Pt(d){let k;return Q(()=>{new At(k).mark(d.keywords,{separateWordSearch:!0,diacritics:!0})}),r(ht.span,{ref(p){const E=k;typeof E=="function"?E(p):k=p},css:{mark:{bg:"$info4",rounded:"$md",px:"1px",color:"$info11",fontWeight:"$bold"}},get children(){return d.name}})}const Ft=d=>{const{setPathAs:k}=V();return r(L,{w:"$full",get borderBottom(){return`1px solid ${ue()}`},get _hover(){return{bgColor:ue()}},rounded:"$md",cursor:"pointer",px:"$2",as:kt,get href(){return`${d.node.path}?from=search`},onMouseEnter:()=>{k(d.node.path,d.node.is_dir)},get children(){return[r(j,{class:"icon",boxSize:"$6",get color(){return rt()},get as(){return at(d.node)},mr:"$1"}),r(Y,{flex:1,p:"$1",spacing:"$1",w:"$full",alignItems:"start",get children(){return[r($,{css:{wordBreak:"break-all"},get children(){return[r(Pt,{get keywords(){return d.keywords},get name(){return d.node.name}}),r(N,{get when(){return d.node.size>0||!d.node.is_dir},get children(){return r(it,{colorScheme:"info",ml:"$2",get children(){return ot(d.node.size)}})}})]}}),r($,{color:"$neutral10",size:"xs",css:{wordBreak:"break-all"},get children(){return d.node.parent}})]}})]}})},zt=()=>{const{isOpen:k,onOpen:p,onClose:E,onToggle:w}=Ve(),b=z(),x=h=>{h==="search"&&p()};S.on("tool",x);const R=h=>{(h.ctrlKey||st&&h.metaKey)&&h.key.toLowerCase()==="k"&&(h.preventDefault(),w())};document.addEventListener("keydown",R),K(()=>{S.off("tool",x),document.removeEventListener("keydown",R)});const[C,m]=F(""),{pathname:c}=pe(),[e,n]=Ke(Ue),[t,a]=F({content:[],total:0}),[i,s]=F(0),o=["all","folder","file"];let u;const f=async(h=1)=>{if(h===1&&(u==null||u()),e())return;a({content:[],total:0});const l=await n(c(),C(),ct(),i(),h,100);lt(l,g=>{const y=g.content;y&&(y.forEach(v=>{if(O().base_path&&v.parent.startsWith(O().base_path)){const I=new RegExp("^"+O().base_path);v.parent=v.parent.replace(I,"")||"/",v.parent.startsWith("/")||(v.parent="/"+v.parent)}v.path=ut(de(v.parent,v.name))}),a(g))})};return r(nt,{get opened(){return k()},onClose:E,closeOnEsc:!1,size:{"@initial":"sm","@sm":"lg","@md":"2xl"},initialFocus:"#search-input",scrollBehavior:"inside",get children(){return[r(He,{bg:"$blackAlpha5"}),r(Ge,{mx:"$2",get children(){return[r(qe,{}),r(Ze,{get children(){return b("home.search.search")}}),r(Xe,{get children(){return r(Y,{w:"$full",spacing:"$2",get children(){return[r(L,{w:"$full",spacing:"$2",get children(){return[r(Ye,{w:"$32",get value(){return i()},onChange:h=>s(h),get options(){return o.map((h,l)=>({value:l,label:b(`home.search.scopes.${h}`)}))}}),r(Qe,{id:"search-input",get value(){return C()},onInput:h=>{m(h.currentTarget.value)},onKeyDown:h=>{h.key==="Enter"&&C().length!==0&&f()}}),r(et,{flexShrink:0,"aria-label":"search",get icon(){return r(tt,{})},onClick:()=>f(),get loading(){return e()},get disabled(){return C().length===0}})]}}),r(ne,{get children(){return[r(T,{get when(){return e()},get children(){return r(te,{})}}),r(T,{get when(){return t().content.length===0},get children(){return r($,{size:"2xl",my:"$8",get children(){return b("home.search.no_result")}})}})]}}),r(Y,{w:"$full",get children(){return r(X,{get each(){return t().content},children:h=>r(Ft,{node:h,get keywords(){return C()}})})}}),r(ye,{get total(){return t().total},defaultPageSize:100,onChange:h=>{f(h)},setResetCallback:h=>u=h})]}})}})]}})]}})},Dt=D(()=>W(()=>import("./List-e85a0b2a.js").then(d=>d.b),["assets/List-e85a0b2a.js","assets/index-b0560a31.js","assets/index-b206f97b.css","assets/solid-contextmenu-905ecc32.js","assets/storage-class-1ac53f89.js","assets/index-653e8df2.js","assets/helper-e7a18c7f.js","assets/color-a58de010.js"])),Wt=D(()=>W(()=>import("./Grid-37629e6d.js"),["assets/Grid-37629e6d.js","assets/index-b0560a31.js","assets/index-b206f97b.css","assets/GridItem-be9067db.js","assets/solid-contextmenu-905ecc32.js","assets/storage-class-1ac53f89.js","assets/index-653e8df2.js","assets/ImageWithError-ad444cc4.js","assets/helper-e7a18c7f.js","assets/lightgallery-bundle-aafbce76.js","assets/lightgallery-bundle-6ee8584f.css"])),Bt=D(()=>W(()=>import("./Images-83a8d60b.js"),["assets/Images-83a8d60b.js","assets/index-b0560a31.js","assets/index-b206f97b.css","assets/solid-contextmenu-905ecc32.js","assets/ImageWithError-ad444cc4.js","assets/helper-e7a18c7f.js","assets/GridItem-be9067db.js","assets/storage-class-1ac53f89.js","assets/index-653e8df2.js"])),sn=()=>{const{rawLink:d}=he(),k=me(()=>ee.objs.filter(w=>w.type===fe.IMAGE));let p;const E=()=>{p=xt(document.createElement("div"),{addClass:"lightgallery-container",dynamic:!0,thumbnail:!0,plugins:[wt,bt,Et,_t,It],dynamicEl:k().map(w=>{const b=d(w,!0);return{src:b,thumb:w.thumb===""?b:w.thumb,subHtml:`<h4>${w.name}</h4>`}})})};return dt(ft(k,()=>{p==null||p.destroy(),p=void 0})),S.on("gallery",w=>{p||E(),p==null||p.openGallery(k().findIndex(b=>b.name===w))}),K(()=>{S.off("gallery"),p==null||p.destroy()}),z(),[r(ne,{get children(){return[r(T,{get when(){return G()==="list"},get children(){return r(Dt,{})}}),r(T,{get when(){return G()==="grid"},get children(){return r(Wt,{})}}),r(T,{get when(){return G()==="image"},get children(){return r(Bt,{get images(){return k()}})}})]}}),r($t,{}),r(zt,{}),r(Ct,{})]};export{sn as default};
|
|
6
|
+
*****************************************************/(function(d,k){(function(p,E){d.exports=E()})(Je,function(){var p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},E=function(m,c){if(!(m instanceof c))throw new TypeError("Cannot call a class as a function")},w=function(){function m(c,e){for(var n=0;n<e.length;n++){var t=e[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(c,t.key,t)}}return function(c,e,n){return e&&m(c.prototype,e),n&&m(c,n),c}}(),b=Object.assign||function(m){for(var c=1;c<arguments.length;c++){var e=arguments[c];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(m[n]=e[n])}return m},x=function(){function m(c){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:5e3;E(this,m),this.ctx=c,this.iframes=e,this.exclude=n,this.iframesTimeout=t}return w(m,[{key:"getContexts",value:function(){var e=void 0,n=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(function(t){var a=n.filter(function(i){return i.contains(t)}).length>0;n.indexOf(t)===-1&&!a&&n.push(t)}),n}},{key:"getIframeContents",value:function(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=void 0;try{var i=e.contentWindow;if(a=i.document,!i||!a)throw new Error("iframe inaccessible")}catch{t()}a&&n(a)}},{key:"isIframeBlank",value:function(e){var n="about:blank",t=e.getAttribute("src").trim(),a=e.contentWindow.location.href;return a===n&&t!==n&&t}},{key:"observeIframeLoad",value:function(e,n,t){var a=this,i=!1,s=null,o=function u(){if(!i){i=!0,clearTimeout(s);try{a.isIframeBlank(e)||(e.removeEventListener("load",u),a.getIframeContents(e,n,t))}catch{t()}}};e.addEventListener("load",o),s=setTimeout(o,this.iframesTimeout)}},{key:"onIframeReady",value:function(e,n,t){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,n,t):this.getIframeContents(e,n,t):this.observeIframeLoad(e,n,t)}catch{t()}}},{key:"waitForIframes",value:function(e,n){var t=this,a=0;this.forEachIframe(e,function(){return!0},function(i){a++,t.waitForIframes(i.querySelector("html"),function(){--a||n()})},function(i){i||n()})}},{key:"forEachIframe",value:function(e,n,t){var a=this,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},s=e.querySelectorAll("iframe"),o=s.length,u=0;s=Array.prototype.slice.call(s);var f=function(){--o<=0&&i(u)};o||f(),s.forEach(function(h){m.matches(h,a.exclude)?f():a.onIframeReady(h,function(l){n(h)&&(u++,t(l)),f()},f)})}},{key:"createIterator",value:function(e,n,t){return document.createNodeIterator(e,n,t,!1)}},{key:"createInstanceOnIframe",value:function(e){return new m(e.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(e,n,t){var a=e.compareDocumentPosition(t),i=Node.DOCUMENT_POSITION_PRECEDING;if(a&i)if(n!==null){var s=n.compareDocumentPosition(t),o=Node.DOCUMENT_POSITION_FOLLOWING;if(s&o)return!0}else return!0;return!1}},{key:"getIteratorNode",value:function(e){var n=e.previousNode(),t=void 0;return n===null?t=e.nextNode():t=e.nextNode()&&e.nextNode(),{prevNode:n,node:t}}},{key:"checkIframeFilter",value:function(e,n,t,a){var i=!1,s=!1;return a.forEach(function(o,u){o.val===t&&(i=u,s=o.handled)}),this.compareNodeIframe(e,n,t)?(i===!1&&!s?a.push({val:t,handled:!0}):i!==!1&&!s&&(a[i].handled=!0),!0):(i===!1&&a.push({val:t,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(e,n,t,a){var i=this;e.forEach(function(s){s.handled||i.getIframeContents(s.val,function(o){i.createInstanceOnIframe(o).forEachNode(n,t,a)})})}},{key:"iterateThroughNodes",value:function(e,n,t,a,i){for(var s=this,o=this.createIterator(n,e,a),u=[],f=[],h=void 0,l=void 0,g=function(){var v=s.getIteratorNode(o);return l=v.prevNode,h=v.node,h};g();)this.iframes&&this.forEachIframe(n,function(y){return s.checkIframeFilter(h,l,y,u)},function(y){s.createInstanceOnIframe(y).forEachNode(e,function(v){return f.push(v)},a)}),f.push(h);f.forEach(function(y){t(y)}),this.iframes&&this.handleOpenIframes(u,e,t,a),i()}},{key:"forEachNode",value:function(e,n,t){var a=this,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){},s=this.getContexts(),o=s.length;o||i(),s.forEach(function(u){var f=function(){a.iterateThroughNodes(e,u,n,t,function(){--o<=0&&i()})};a.iframes?a.waitForIframes(u,f):f()})}}],[{key:"matches",value:function(e,n){var t=typeof n=="string"?[n]:n,a=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(a){var i=!1;return t.every(function(s){return a.call(e,s)?(i=!0,!1):!0}),i}else return!1}}]),m}(),R=function(){function m(c){E(this,m),this.ctx=c,this.ie=!1;var e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1)&&(this.ie=!0)}return w(m,[{key:"log",value:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"debug",t=this.opt.log;this.opt.debug&&(typeof t>"u"?"undefined":p(t))==="object"&&typeof t[n]=="function"&&t[n]("mark.js: "+e)}},{key:"escapeStr",value:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}},{key:"createSynonymsRegExp",value:function(e){var n=this.opt.synonyms,t=this.opt.caseSensitive?"":"i",a=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var i in n)if(n.hasOwnProperty(i)){var s=n[i],o=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(i):this.escapeStr(i),u=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);o!==""&&u!==""&&(e=e.replace(new RegExp("("+this.escapeStr(o)+"|"+this.escapeStr(u)+")","gm"+t),a+("("+this.processSynomyms(o)+"|")+(this.processSynomyms(u)+")")+a))}return e}},{key:"processSynomyms",value:function(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}},{key:"setupWildcardsRegExp",value:function(e){return e=e.replace(/(?:\\)*\?/g,function(n){return n.charAt(0)==="\\"?"?":""}),e.replace(/(?:\\)*\*/g,function(n){return n.charAt(0)==="\\"?"*":""})}},{key:"createWildcardsRegExp",value:function(e){var n=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,n?"[\\S\\s]?":"\\S?").replace(/\u0002/g,n?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(e){return e.replace(/[^(|)\\]/g,function(n,t,a){var i=a.charAt(t+1);return/[(|)\\]/.test(i)||i===""?n:n+"\0"})}},{key:"createJoinersRegExp",value:function(e){var n=[],t=this.opt.ignorePunctuation;return Array.isArray(t)&&t.length&&n.push(this.escapeStr(t.join(""))),this.opt.ignoreJoiners&&n.push("\\u00ad\\u200b\\u200c\\u200d"),n.length?e.split(/\u0000+/).join("["+n.join("")+"]*"):e}},{key:"createDiacriticsRegExp",value:function(e){var n=this.opt.caseSensitive?"":"i",t=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],a=[];return e.split("").forEach(function(i){t.every(function(s){if(s.indexOf(i)!==-1){if(a.indexOf(s)>-1)return!1;e=e.replace(new RegExp("["+s+"]","gm"+n),"["+s+"]"),a.push(s)}return!0})}),e}},{key:"createMergedBlanksRegExp",value:function(e){return e.replace(/[\s]+/gmi,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(e){var n=this,t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿",a=this.opt.accuracy,i=typeof a=="string"?a:a.value,s=typeof a=="string"?[]:a.limiters,o="";switch(s.forEach(function(u){o+="|"+n.escapeStr(u)}),i){case"partially":default:return"()("+e+")";case"complementary":return o="\\s"+(o||this.escapeStr(t)),"()([^"+o+"]*"+e+"[^"+o+"]*)";case"exactly":return"(^|\\s"+o+")("+e+")(?=$|\\s"+o+")"}}},{key:"getSeparatedKeywords",value:function(e){var n=this,t=[];return e.forEach(function(a){n.opt.separateWordSearch?a.split(" ").forEach(function(i){i.trim()&&t.indexOf(i)===-1&&t.push(i)}):a.trim()&&t.indexOf(a)===-1&&t.push(a)}),{keywords:t.sort(function(a,i){return i.length-a.length}),length:t.length}}},{key:"isNumeric",value:function(e){return Number(parseFloat(e))==e}},{key:"checkRanges",value:function(e){var n=this;if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];var t=[],a=0;return e.sort(function(i,s){return i.start-s.start}).forEach(function(i){var s=n.callNoMatchOnInvalidRanges(i,a),o=s.start,u=s.end,f=s.valid;f&&(i.start=o,i.length=u-o,t.push(i),a=u)}),t}},{key:"callNoMatchOnInvalidRanges",value:function(e,n){var t=void 0,a=void 0,i=!1;return e&&typeof e.start<"u"?(t=parseInt(e.start,10),a=t+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&a-n>0&&a-t>0?i=!0:(this.log("Ignoring invalid or overlapping range: "+(""+JSON.stringify(e))),this.opt.noMatch(e))):(this.log("Ignoring invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:t,end:a,valid:i}}},{key:"checkWhitespaceRanges",value:function(e,n,t){var a=void 0,i=!0,s=t.length,o=n-s,u=parseInt(e.start,10)-o;return u=u>s?s:u,a=u+parseInt(e.length,10),a>s&&(a=s,this.log("End range automatically set to the max value of "+s)),u<0||a-u<0||u>s||a>s?(i=!1,this.log("Invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)):t.substring(u,a).replace(/\s+/g,"")===""&&(i=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:u,end:a,valid:i}}},{key:"getTextNodes",value:function(e){var n=this,t="",a=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,function(i){a.push({start:t.length,end:(t+=i.textContent).length,node:i})},function(i){return n.matchesExclude(i.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},function(){e({value:t,nodes:a})})}},{key:"matchesExclude",value:function(e){return x.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(e,n,t){var a=this.opt.element?this.opt.element:"mark",i=e.splitText(n),s=i.splitText(t-n),o=document.createElement(a);return o.setAttribute("data-markjs","true"),this.opt.className&&o.setAttribute("class",this.opt.className),o.textContent=i.textContent,i.parentNode.replaceChild(o,i),s}},{key:"wrapRangeInMappedTextNode",value:function(e,n,t,a,i){var s=this;e.nodes.every(function(o,u){var f=e.nodes[u+1];if(typeof f>"u"||f.start>n){if(!a(o.node))return!1;var h=n-o.start,l=(t>o.end?o.end:t)-o.start,g=e.value.substr(0,o.start),y=e.value.substr(l+o.start);if(o.node=s.wrapRangeInTextNode(o.node,h,l),e.value=g+y,e.nodes.forEach(function(v,I){I>=u&&(e.nodes[I].start>0&&I!==u&&(e.nodes[I].start-=l),e.nodes[I].end-=l)}),t-=l,i(o.node.previousSibling,o.start),t>o.end)n=o.end;else return!1}return!0})}},{key:"wrapMatches",value:function(e,n,t,a,i){var s=this,o=n===0?0:n+1;this.getTextNodes(function(u){u.nodes.forEach(function(f){f=f.node;for(var h=void 0;(h=e.exec(f.textContent))!==null&&h[o]!=="";)if(t(h[o],f)){var l=h.index;if(o!==0)for(var g=1;g<o;g++)l+=h[g].length;f=s.wrapRangeInTextNode(f,l,l+h[o].length),a(f.previousSibling),e.lastIndex=0}}),i()})}},{key:"wrapMatchesAcrossElements",value:function(e,n,t,a,i){var s=this,o=n===0?0:n+1;this.getTextNodes(function(u){for(var f=void 0;(f=e.exec(u.value))!==null&&f[o]!=="";){var h=f.index;if(o!==0)for(var l=1;l<o;l++)h+=f[l].length;var g=h+f[o].length;s.wrapRangeInMappedTextNode(u,h,g,function(y){return t(f[o],y)},function(y,v){e.lastIndex=v,a(y)})}i()})}},{key:"wrapRangeFromIndex",value:function(e,n,t,a){var i=this;this.getTextNodes(function(s){var o=s.value.length;e.forEach(function(u,f){var h=i.checkWhitespaceRanges(u,o,s.value),l=h.start,g=h.end,y=h.valid;y&&i.wrapRangeInMappedTextNode(s,l,g,function(v){return n(v,u,s.value.substring(l,g),f)},function(v){t(v,u)})}),a()})}},{key:"unwrapMatches",value:function(e){for(var n=e.parentNode,t=document.createDocumentFragment();e.firstChild;)t.appendChild(e.removeChild(e.firstChild));n.replaceChild(t,e),this.ie?this.normalizeTextNode(n):n.normalize()}},{key:"normalizeTextNode",value:function(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}},{key:"markRegExp",value:function(e,n){var t=this;this.opt=n,this.log('Searching with expression "'+e+'"');var a=0,i="wrapMatches",s=function(u){a++,t.opt.each(u)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](e,this.opt.ignoreGroups,function(o,u){return t.opt.filter(u,o,a)},s,function(){a===0&&t.opt.noMatch(e),t.opt.done(a)})}},{key:"mark",value:function(e,n){var t=this;this.opt=n;var a=0,i="wrapMatches",s=this.getSeparatedKeywords(typeof e=="string"?[e]:e),o=s.keywords,u=s.length,f=this.opt.caseSensitive?"":"i",h=function l(g){var y=new RegExp(t.createRegExp(g),"gm"+f),v=0;t.log('Searching with expression "'+y+'"'),t[i](y,1,function(I,A){return t.opt.filter(A,g,a,v)},function(I){v++,a++,t.opt.each(I)},function(){v===0&&t.opt.noMatch(g),o[u-1]===g?t.opt.done(a):l(o[o.indexOf(g)+1])})};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),u===0?this.opt.done(a):h(o[0])}},{key:"markRanges",value:function(e,n){var t=this;this.opt=n;var a=0,i=this.checkRanges(e);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,function(s,o,u,f){return t.opt.filter(s,o,u,f)},function(s,o){a++,t.opt.each(s,o)},function(){t.opt.done(a)})):this.opt.done(a)}},{key:"unmark",value:function(e){var n=this;this.opt=e;var t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+="."+this.opt.className),this.log('Removal selector "'+t+'"'),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,function(a){n.unwrapMatches(a)},function(a){var i=x.matches(a,t),s=n.matchesExclude(a);return!i||s?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}},{key:"opt",set:function(e){this._opt=b({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:function(){},noMatch:function(){},filter:function(){return!0},done:function(){},debug:!1,log:window.console},e)},get:function(){return this._opt}},{key:"iterator",get:function(){return new x(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}}]),m}();function C(m){var c=this,e=new R(m);return this.mark=function(n,t){return e.mark(n,t),c},this.markRegExp=function(n,t){return e.markRegExp(n,t),c},this.markRanges=function(n,t){return e.markRanges(n,t),c},this.unmark=function(n){return e.unmark(n),c},this}return C})})(ke);var Lt=ke.exports;const At=je(Lt);function Pt(d){let k;return Q(()=>{new At(k).mark(d.keywords,{separateWordSearch:!0,diacritics:!0})}),r(ht.span,{ref(p){const E=k;typeof E=="function"?E(p):k=p},css:{mark:{bg:"$info4",rounded:"$md",px:"1px",color:"$info11",fontWeight:"$bold"}},get children(){return d.name}})}const Ft=d=>{const{setPathAs:k}=V();return r(L,{w:"$full",get borderBottom(){return`1px solid ${ue()}`},get _hover(){return{bgColor:ue()}},rounded:"$md",cursor:"pointer",px:"$2",as:kt,get href(){return`${d.node.path}?from=search`},onMouseEnter:()=>{k(d.node.path,d.node.is_dir)},get children(){return[r(j,{class:"icon",boxSize:"$6",get color(){return rt()},get as(){return at(d.node)},mr:"$1"}),r(Y,{flex:1,p:"$1",spacing:"$1",w:"$full",alignItems:"start",get children(){return[r($,{css:{wordBreak:"break-all"},get children(){return[r(Pt,{get keywords(){return d.keywords},get name(){return d.node.name}}),r(N,{get when(){return d.node.size>0||!d.node.is_dir},get children(){return r(it,{colorScheme:"info",ml:"$2",get children(){return ot(d.node.size)}})}})]}}),r($,{color:"$neutral10",size:"xs",css:{wordBreak:"break-all"},get children(){return d.node.parent}})]}})]}})},zt=()=>{const{isOpen:k,onOpen:p,onClose:E,onToggle:w}=Ve(),b=z(),x=h=>{h==="search"&&p()};S.on("tool",x);const R=h=>{(h.ctrlKey||st&&h.metaKey)&&h.key.toLowerCase()==="k"&&(h.preventDefault(),w())};document.addEventListener("keydown",R),K(()=>{S.off("tool",x),document.removeEventListener("keydown",R)});const[C,m]=F(""),{pathname:c}=pe(),[e,n]=Ke(Ue),[t,a]=F({content:[],total:0}),[i,s]=F(0),o=["all","folder","file"];let u;const f=async(h=1)=>{if(h===1&&(u==null||u()),e())return;a({content:[],total:0});const l=await n(c(),C(),ct(),i(),h,100);lt(l,g=>{const y=g.content;y&&(y.forEach(v=>{if(M().base_path&&v.parent.startsWith(M().base_path)){const I=new RegExp("^"+M().base_path);v.parent=v.parent.replace(I,"")||"/",v.parent.startsWith("/")||(v.parent="/"+v.parent)}v.path=ut(de(v.parent,v.name))}),a(g))})};return r(nt,{get opened(){return k()},onClose:E,closeOnEsc:!1,size:{"@initial":"sm","@sm":"lg","@md":"2xl"},initialFocus:"#search-input",scrollBehavior:"inside",get children(){return[r(He,{bg:"$blackAlpha5"}),r(Ge,{mx:"$2",get children(){return[r(qe,{}),r(Ze,{get children(){return b("home.search.search")}}),r(Xe,{get children(){return r(Y,{w:"$full",spacing:"$2",get children(){return[r(L,{w:"$full",spacing:"$2",get children(){return[r(Ye,{w:"$32",get value(){return i()},onChange:h=>s(h),get options(){return o.map((h,l)=>({value:l,label:b(`home.search.scopes.${h}`)}))}}),r(Qe,{id:"search-input",get value(){return C()},onInput:h=>{m(h.currentTarget.value)},onKeyDown:h=>{h.key==="Enter"&&C().length!==0&&f()}}),r(et,{flexShrink:0,"aria-label":"search",get icon(){return r(tt,{})},onClick:()=>f(),get loading(){return e()},get disabled(){return C().length===0}})]}}),r(ne,{get children(){return[r(T,{get when(){return e()},get children(){return r(te,{})}}),r(T,{get when(){return t().content.length===0},get children(){return r($,{size:"2xl",my:"$8",get children(){return b("home.search.no_result")}})}})]}}),r(Y,{w:"$full",get children(){return r(X,{get each(){return t().content},children:h=>r(Ft,{node:h,get keywords(){return C()}})})}}),r(ye,{get total(){return t().total},defaultPageSize:100,onChange:h=>{f(h)},setResetCallback:h=>u=h})]}})}})]}})]}})},Wt=W(()=>D(()=>import("./List-2219e301.js").then(d=>d.b),["assets/List-2219e301.js","assets/index-6e98aa26.js","assets/index-b206f97b.css","assets/solid-contextmenu-c30dd1d1.js","assets/storage-class-1ac53f89.js","assets/index-aa5a83eb.js","assets/helper-89addd3d.js","assets/color-a58de010.js"])),Dt=W(()=>D(()=>import("./Grid-96af823b.js"),["assets/Grid-96af823b.js","assets/index-6e98aa26.js","assets/index-b206f97b.css","assets/GridItem-8f0a4e78.js","assets/solid-contextmenu-c30dd1d1.js","assets/storage-class-1ac53f89.js","assets/index-aa5a83eb.js","assets/ImageWithError-7a9cb94e.js","assets/helper-89addd3d.js","assets/lightgallery-bundle-aafbce76.js","assets/lightgallery-bundle-6ee8584f.css"])),Bt=W(()=>D(()=>import("./Images-5b45ded6.js"),["assets/Images-5b45ded6.js","assets/index-6e98aa26.js","assets/index-b206f97b.css","assets/solid-contextmenu-c30dd1d1.js","assets/ImageWithError-7a9cb94e.js","assets/helper-89addd3d.js","assets/GridItem-8f0a4e78.js","assets/storage-class-1ac53f89.js","assets/index-aa5a83eb.js"])),sn=()=>{const{rawLink:d}=he(),k=me(()=>ee.objs.filter(w=>w.type===fe.IMAGE));let p;const E=()=>{p=xt(document.createElement("div"),{addClass:"lightgallery-container",dynamic:!0,thumbnail:!0,plugins:[wt,bt,Et,_t,It],dynamicEl:k().map(w=>{const b=d(w,!0);return{src:b,thumb:w.thumb===""?b:w.thumb,subHtml:`<h4>${w.name}</h4>`}})})};return dt(ft(k,()=>{p==null||p.destroy(),p=void 0})),S.on("gallery",w=>{p||E(),p==null||p.openGallery(k().findIndex(b=>b.name===w))}),K(()=>{S.off("gallery"),p==null||p.destroy()}),z(),[r(ne,{get children(){return[r(T,{get when(){return G()==="list"},get children(){return r(Wt,{})}}),r(T,{get when(){return G()==="grid"},get children(){return r(Dt,{})}}),r(T,{get when(){return G()==="image"},get children(){return r(Bt,{get images(){return k()}})}})]}}),r($t,{}),r(zt,{}),r(Ct,{})]};export{sn as default};
|