From 10374654549a52d09b76d8519eb65620f76dd338 Mon Sep 17 00:00:00 2001 From: Xinecraft Date: Sun, 24 Nov 2024 23:38:19 +0530 Subject: [PATCH] Make role image optional --- app/Http/Controllers/Admin/RoleController.php | 4 +- app/Http/Controllers/Admin/UserController.php | 2 +- app/Http/Requests/CreateRoleRequest.php | 2 +- app/Models/Role.php | 2 +- ...-51905416.js => ActionMessage-996676ab.js} | 2 +- ...-19441b14.js => ActionSection-9dac4615.js} | 2 +- ...ut-d79c45db.js => AdminLayout-5df346fb.js} | 2 +- ...27cab8.js => AfterCreateSteps-ec0a554c.js} | 2 +- ...Card-c9393c92.js => AlertCard-bdb62b63.js} | 2 +- ...bbb5f6e.js => ApiTokenManager-6da61d7c.js} | 2 +- ...yout-6edbf3df.js => AppLayout-9dd9991d.js} | 2 +- ...-fc4c30cd.js => ArrowPathIcon-f1d9337f.js} | 2 +- ...dd51.js => AuthenticationCard-47a82d3f.js} | 2 +- ....js => AuthenticationCardLogo-835dfff8.js} | 2 +- ...{Button-930b37e5.js => Button-222a012d.js} | 2 +- ...kin-3894ed65.js => ChangeSkin-6047b150.js} | 2 +- .../{Chart-2a720e20.js => Chart-281cf293.js} | 2 +- ...be02.js => ChartBarSquareIcon-9cd61f1a.js} | 2 +- ...hatlog-29477f56.js => Chatlog-648a0e3a.js} | 2 +- ...ckbox-95fc13e4.js => Checkbox-6d245cb1.js} | 2 +- ...0419.js => CloudArrowDownIcon-ce7a9066.js} | 2 +- ...ments-ef92e27c.js => Comments-9df81c93.js} | 2 +- ...067a5.js => CommonStatusBadge-5b3952f3.js} | 2 +- ...9c72f88.js => ConfirmPassword-7d9efe24.js} | 2 +- ...3a29c.js => ConfirmationModal-1a9c186e.js} | 2 +- ...f5c754.js => ConfirmsPassword-b0939d96.js} | 2 +- ...log-6e8da507.js => Consolelog-412f47c3.js} | 2 +- ...ge-04bfc546.js => CreateBadge-5f1cf3f7.js} | 2 +- ...bd15.js => CreateCommandQueue-9ad11c12.js} | 2 +- ...3f7a55.js => CreateCustomForm-ac9d7e0b.js} | 2 +- ...7763f8.js => CreateCustomPage-84befd07.js} | 2 +- ...28d141e4.js => CreateDownload-5821bcb6.js} | 2 +- ....js => CreateEditBungeeServer-d28c0992.js} | 2 +- ...ews-79315793.js => CreateNews-c1158aaa.js} | 2 +- ...oll-973b303b.js => CreatePoll-23357d99.js} | 2 +- ...ank-81931b80.js => CreateRank-7eed8275.js} | 2 +- ...05125.js => CreateRecruitment-da2f05bd.js} | 2 +- ...ole-e5954b06.js => CreateRole-ae3fe335.js} | 2 +- ...r-fe0b9057.js => CreateServer-16305895.js} | 2 +- ...s => CustomFormIntelListChart-727499af.js} | 2 +- ...n-d26c2190.js => DangerButton-05bf6fcf.js} | 2 +- ...-a022a5a3.js => DangerSetting-e2ff2231.js} | 2 +- ...oard-39ec8c4e.js => Dashboard-a1a73178.js} | 2 +- ...oard-b13236f9.js => Dashboard-b67ccba5.js} | 2 +- ...able-56310b2c.js => DataTable-0e1cc9de.js} | 2 +- ...a26db8cb.js => DeleteUserForm-d03a42fd.js} | 2 +- ...al-aceecf27.js => DialogModal-f103df3f.js} | 2 +- ...-6b99e184.js => DidYouKnowBox-e307526a.js} | 2 +- ...Item-e0e2d82c.js => DtRowItem-1290e867.js} | 2 +- ...adge-38f218fb.js => EditBadge-39bd3892.js} | 2 +- ...23c7c9ad.js => EditCustomForm-46ca6dff.js} | 2 +- ...ae57364a.js => EditCustomPage-3fcf51c8.js} | 2 +- ...d-b588669c.js => EditDownload-3fff479c.js} | 2 +- ...tNews-493c5b78.js => EditNews-8b3fe3fa.js} | 2 +- ...tRank-82f55d65.js => EditRank-ae6c5903.js} | 2 +- ...a94cdcd.js => EditRecruitment-35167d3b.js} | 2 +- ...tRole-55e33d7b.js => EditRole-8933e06d.js} | 2 +- ...ver-3c15b095.js => EditServer-cdddc238.js} | 2 +- ...tUser-ab9330f0.js => EditUser-4980d159.js} | 2 +- ...yeIcon-2a13c72a.js => EyeIcon-f2aea8c7.js} | 2 +- ...st-75edea4f.js => FeatureList-4a6d07c3.js} | 2 +- ...6426560f.js => ForgotPassword-d4aae729.js} | 2 +- ...on-ce4fe175.js => FormSection-262c44f6.js} | 2 +- ...81933cc9.js => GeneralSetting-82a5723f.js} | 2 +- .../{Icon-51173a24.js => Icon-c6b983eb.js} | 2 +- public/build/default/assets/Index-9779b599.js | 1 - public/build/default/assets/Index-9ae929e8.js | 1 + ...kDb-2d797a4f.js => IndexAskDb-423c751d.js} | 2 +- ...dge-ce8dd9f5.js => IndexBadge-33b7cb45.js} | 2 +- ...13add.js => IndexCommandQueue-7bacbec7.js} | 2 +- ...29ff89e.js => IndexCustomForm-12519923.js} | 2 +- ...45ffe63.js => IndexCustomForm-c1b1f840.js} | 2 +- ... => IndexCustomFormSubmission-edaa2626.js} | 2 +- ...35eb07e.js => IndexCustomPage-67900fbf.js} | 2 +- ...-ec4bdcef.js => IndexDownload-0a4df841.js} | 2 +- ...-732214a4.js => IndexDownload-c589541a.js} | 2 +- ...c8c967e1.js => IndexFailedJob-ebb71af4.js} | 2 +- ...News-4e07a146.js => IndexNews-70f23028.js} | 2 +- ...News-a25d4326.js => IndexNews-e2a86fe3.js} | 2 +- ...er-433bfa56.js => IndexPlayer-6cd75838.js} | 2 +- ...Poll-bd45dcdd.js => IndexPoll-2436419c.js} | 2 +- ...Poll-140a6fcf.js => IndexPoll-e02c01bc.js} | 2 +- ...3b7024d.js => IndexPunishment-66de1a9e.js} | 2 +- ...Rank-1ffa15f8.js => IndexRank-bc17fea1.js} | 2 +- ...bc9566.js => IndexRecruitment-5e20c42d.js} | 2 +- ...0d5453.js => IndexRecruitment-8f58d56c.js} | 2 +- ...=> IndexRecruitmentSubmission-4c0d48cc.js} | 2 +- ...=> IndexRecruitmentSubmission-a7c0c461.js} | 2 +- .../default/assets/IndexRole-5183c964.js | 1 - .../default/assets/IndexRole-81046e13.js | 1 + ...er-2b6b8b0b.js => IndexServer-345b2315.js} | 2 +- ...n-75123f7b.js => IndexSession-007a6484.js} | 2 +- ...n-bf453d9f.js => IndexSession-516ec6e8.js} | 2 +- ...aff-cf85604c.js => IndexStaff-5bbb75c6.js} | 2 +- ...User-d8b8220d.js => IndexUser-551cdc35.js} | 2 +- ...8e6c2ff7.js => InfiniteScroll-3132828f.js} | 2 +- .../{Input-eeec398a.js => Input-80baf30b.js} | 2 +- ...ror-0f9066f5.js => InputError-c9da7e14.js} | 2 +- .../{Label-3b178ab9.js => Label-2875b33b.js} | 2 +- ...s => LinkedSocialAccountsForm-297ee1ef.js} | 2 +- ...6ce232.js => ListLinkedPlayer-f82a527c.js} | 2 +- ...-197d55a5.js => LoadingButton-0b0faf9b.js} | 2 +- ...4d0c5ed3.js => LoadingSpinner-3fdcb150.js} | 2 +- ...n-4c399edc.js => LockOpenIcon-fe328be7.js} | 2 +- .../{Login-256c2831.js => Login-6db86edd.js} | 2 +- ...ogoutOtherBrowserSessionsForm-bac6fcd1.js} | 2 +- .../{Modal-8088ecaa.js => Modal-99e63812.js} | 2 +- ...8d313.js => NavigationSetting-4658cfcd.js} | 2 +- ...ewsBox-174341ef.js => NewsBox-f2177336.js} | 2 +- ...n-8b4eb60e.js => NoSymbolIcon-52e34179.js} | 2 +- ...rview-450d9171.js => Overview-2cde65be.js} | 2 +- ...0.js => PasswordStrengthMeter-2bd04999.js} | 2 +- ...b86eb1.js => PencilSquareIcon-a0549ec0.js} | 2 +- ...ce-3dfbada9.js => Performance-7b70f3c5.js} | 2 +- ...-e336d927.js => PlayerSetting-e563526d.js} | 2 +- ...-1d4f71c8.js => PlayerSubMenu-956d7aed.js} | 2 +- ...ase-45352bb4.js => Playerbase-d709081c.js} | 2 +- ...st-7f55c0d0.js => PlayersList-effac761.js} | 2 +- ...yersMinecraftVersionMetricBox-666d94b8.js} | 2 +- ...-b52412b2.js => PluginSetting-1486058f.js} | 2 +- ...ollBox-a7bf3350.js => PollBox-5266463b.js} | 2 +- .../{Post-3e39eb05.js => Post-7a897762.js} | 2 +- ... => PostRegistrationSetupUser-dcb2ae04.js} | 2 +- ...-2b0657bb.js => PrivacyPolicy-55baabb4.js} | 2 +- ....js => RecruitmentMessagesBox-63016b88.js} | 2 +- ...ister-e803575c.js => Register-7e3c8d3e.js} | 2 +- ...-3aea37eb.js => ResetPassword-90220218.js} | 2 +- ...-b4a5911d.js => ResetPassword-d0e31dd6.js} | 2 +- ...f45fb59.js => SecondaryButton-eeafe46e.js} | 2 +- ...-ecaab741.js => SectionBorder-3ed4f071.js} | 2 +- ...e-509a6aac.js => SectionTitle-47ee3556.js} | 2 +- ...ing-c6507250.js => SeoSetting-9136ff62.js} | 2 +- ... => ServerIntelServerSelector-00201d1c.js} | 2 +- ...7fd5746.js => ServerStatusBox-5dc0816f.js} | 2 +- ...-1e6dc28c.js => ServerSubMenu-8b4e6de4.js} | 2 +- ...utBox-242aa07b.js => ShoutBox-e3a4033e.js} | 2 +- .../{Show-1bd83303.js => Show-5f98cf25.js} | 2 +- ...0f4eb33a.js => ShowBannedPage-3364292e.js} | 2 +- ...a4a927c1.js => ShowCustomForm-8dd62673.js} | 2 +- ...087ffa90.js => ShowCustomForm-9b3e6dfa.js} | 2 +- ...s => ShowCustomFormSubmission-f49b0f43.js} | 2 +- ...d4577535.js => ShowCustomPage-8cd8e138.js} | 2 +- ...d-e43d72fb.js => ShowDownload-66d32a46.js} | 2 +- ...wNews-178ba392.js => ShowNews-241a311f.js} | 2 +- ...wNews-ae47075b.js => ShowNews-4963dfcf.js} | 2 +- ...d-ea6cf0ed.js => ShowNewsCard-c5801968.js} | 2 +- ...yer-8e49b59b.js => ShowPlayer-01c3ae73.js} | 2 +- ...wPost-484aa961.js => ShowPost-0291fe28.js} | 2 +- ...87da7c2d.js => ShowPunishment-343c48ad.js} | 2 +- ...21c32cc.js => ShowRecruitment-3f7887c0.js} | 2 +- ...1a3f004.js => ShowRecruitment-ee656ec8.js} | 2 +- ... => ShowRecruitmentSubmission-af671c47.js} | 2 +- ... => ShowRecruitmentSubmission-de604ea1.js} | 2 +- ...ver-d2eb19a8.js => ShowServer-3a79a9c4.js} | 2 +- ...ceda2f1.js => ShowServerStats-88b2936f.js} | 2 +- ...on-3bf868ae.js => ShowSession-e43065e0.js} | 2 +- ...wUser-417b79b4.js => ShowUser-f4b03aac.js} | 2 +- ...bf2e6.js => SocialAuthButtons-c9ba1b7c.js} | 2 +- ...892ebf.js => SocialChannelBox-8537a1d0.js} | 2 +- ...41f854.js => SpeakerXMarkIcon-9561e0ee.js} | 2 +- ...99c3b19f.js => TermsOfService-793b98e3.js} | 2 +- ...g-9dfd47db.js => ThemeSetting-0287b5a7.js} | 2 +- ...Icon-c2dd8543.js => TrashIcon-ffd3d5e6.js} | 2 +- ...> TwoFactorAuthenticationForm-8a12e349.js} | 2 +- ...5667.js => TwoFactorChallenge-b46e667c.js} | 2 +- ...teNotificationPreferencesForm-c18b3713.js} | 2 +- ...7f83.js => UpdatePasswordForm-de02b9a4.js} | 2 +- ... UpdateProfileInformationForm-350944a8.js} | 2 +- ...df0802f.js => UserDisplayname-a302c4b7.js} | 2 +- ...-6dff99ea.js => UserGroupIcon-e03e7897.js} | 2 +- ...rIcon-a4dfeeb6.js => UserIcon-e32663ad.js} | 2 +- ...719a6.js => UserNotifications-6ff1f6a1.js} | 2 +- ...il-15d50f7b.js => VerifyEmail-34b1fb4b.js} | 2 +- ...elcome-50155092.js => Welcome-bf76bbb2.js} | 2 +- ...kbox-29701ec6.js => XCheckbox-0e9cb980.js} | 2 +- ...{XInput-c6b47d37.js => XInput-2db776cf.js} | 2 +- ...Icon-8be5cb6c.js => XMarkIcon-2ab1c8ef.js} | 2 +- ...Select-9fb18d4e.js => XSelect-9669b895.js} | 2 +- ...area-f0ad972b.js => XTextarea-7b619ed9.js} | 2 +- public/build/default/assets/app-89bd5a8d.css | 7 - .../{app-baae6499.js => app-b56afa57.js} | 2 +- public/build/default/assets/app-f21ea4ed.css | 7 + ...heme-fb6760bb.js => darkTheme-44ed2f1d.js} | 2 +- ...asymde-1871c993.js => easymde-922c4064.js} | 2 +- ...{hidden-593eabf1.js => hidden-4383f5d9.js} | 2 +- .../{index-b1383bad.js => index-0d4d23a0.js} | 2 +- .../{index-e0ddbf94.js => index-bc880d14.js} | 2 +- ...ex.es-2d3f7629.js => index.es-e3059dc2.js} | 2 +- ...ed-ee868aaf.js => open-closed-65012d7e.js} | 2 +- ...js => use-resolve-button-type-9e76052c.js} | 2 +- ...632635d.js => useAuthorizable-94e7d830.js} | 2 +- ...68f.js => vue-multiselect.esm-f8979d44.js} | 2 +- public/build/default/manifest.json | 3232 ++++++++--------- .../default/js/Pages/Admin/Role/IndexRole.vue | 20 +- resources/default/js/Pages/User/ShowUser.vue | 23 +- 195 files changed, 1849 insertions(+), 1818 deletions(-) rename public/build/default/assets/{ActionMessage-51905416.js => ActionMessage-996676ab.js} (85%) rename public/build/default/assets/{ActionSection-19441b14.js => ActionSection-9dac4615.js} (75%) rename public/build/default/assets/{AdminLayout-d79c45db.js => AdminLayout-5df346fb.js} (98%) rename public/build/default/assets/{AfterCreateSteps-e227cab8.js => AfterCreateSteps-ec0a554c.js} (86%) rename public/build/default/assets/{AlertCard-c9393c92.js => AlertCard-bdb62b63.js} (90%) rename public/build/default/assets/{ApiTokenManager-1bbb5f6e.js => ApiTokenManager-6da61d7c.js} (85%) rename public/build/default/assets/{AppLayout-6edbf3df.js => AppLayout-9dd9991d.js} (99%) rename public/build/default/assets/{ArrowPathIcon-fc4c30cd.js => ArrowPathIcon-f1d9337f.js} (86%) rename public/build/default/assets/{AuthenticationCard-4f39dd51.js => AuthenticationCard-47a82d3f.js} (87%) rename public/build/default/assets/{AuthenticationCardLogo-031edfd4.js => AuthenticationCardLogo-835dfff8.js} (93%) rename public/build/default/assets/{Button-930b37e5.js => Button-222a012d.js} (94%) rename public/build/default/assets/{ChangeSkin-3894ed65.js => ChangeSkin-6047b150.js} (96%) rename public/build/default/assets/{Chart-2a720e20.js => Chart-281cf293.js} (99%) rename public/build/default/assets/{ChartBarSquareIcon-6b1cbe02.js => ChartBarSquareIcon-9cd61f1a.js} (85%) rename public/build/default/assets/{Chatlog-29477f56.js => Chatlog-648a0e3a.js} (72%) rename public/build/default/assets/{Checkbox-95fc13e4.js => Checkbox-6d245cb1.js} (89%) rename public/build/default/assets/{CloudArrowDownIcon-db3b0419.js => CloudArrowDownIcon-ce7a9066.js} (85%) rename public/build/default/assets/{Comments-ef92e27c.js => Comments-9df81c93.js} (96%) rename public/build/default/assets/{CommonStatusBadge-b6c067a5.js => CommonStatusBadge-5b3952f3.js} (96%) rename public/build/default/assets/{ConfirmPassword-79c72f88.js => ConfirmPassword-7d9efe24.js} (79%) rename public/build/default/assets/{ConfirmationModal-c1d3a29c.js => ConfirmationModal-1a9c186e.js} (90%) rename public/build/default/assets/{ConfirmsPassword-55f5c754.js => ConfirmsPassword-b0939d96.js} (83%) rename public/build/default/assets/{Consolelog-6e8da507.js => Consolelog-412f47c3.js} (68%) rename public/build/default/assets/{CreateBadge-04bfc546.js => CreateBadge-5f1cf3f7.js} (89%) rename public/build/default/assets/{CreateCommandQueue-7ef0bd15.js => CreateCommandQueue-9ad11c12.js} (94%) rename public/build/default/assets/{CreateCustomForm-813f7a55.js => CreateCustomForm-ac9d7e0b.js} (93%) rename public/build/default/assets/{CreateCustomPage-6d7763f8.js => CreateCustomPage-84befd07.js} (91%) rename public/build/default/assets/{CreateDownload-28d141e4.js => CreateDownload-5821bcb6.js} (92%) rename public/build/default/assets/{CreateEditBungeeServer-8f552716.js => CreateEditBungeeServer-d28c0992.js} (94%) rename public/build/default/assets/{CreateNews-79315793.js => CreateNews-c1158aaa.js} (90%) rename public/build/default/assets/{CreatePoll-973b303b.js => CreatePoll-23357d99.js} (90%) rename public/build/default/assets/{CreateRank-81931b80.js => CreateRank-7eed8275.js} (90%) rename public/build/default/assets/{CreateRecruitment-28205125.js => CreateRecruitment-da2f05bd.js} (94%) rename public/build/default/assets/{CreateRole-e5954b06.js => CreateRole-ae3fe335.js} (91%) rename public/build/default/assets/{CreateServer-fe0b9057.js => CreateServer-16305895.js} (94%) rename public/build/default/assets/{CustomFormIntelListChart-2f66ec24.js => CustomFormIntelListChart-727499af.js} (92%) rename public/build/default/assets/{DangerButton-d26c2190.js => DangerButton-05bf6fcf.js} (88%) rename public/build/default/assets/{DangerSetting-a022a5a3.js => DangerSetting-e2ff2231.js} (95%) rename public/build/default/assets/{Dashboard-39ec8c4e.js => Dashboard-a1a73178.js} (97%) rename public/build/default/assets/{Dashboard-b13236f9.js => Dashboard-b67ccba5.js} (97%) rename public/build/default/assets/{DataTable-56310b2c.js => DataTable-0e1cc9de.js} (98%) rename public/build/default/assets/{DeleteUserForm-a26db8cb.js => DeleteUserForm-d03a42fd.js} (84%) rename public/build/default/assets/{DialogModal-aceecf27.js => DialogModal-f103df3f.js} (83%) rename public/build/default/assets/{DidYouKnowBox-6b99e184.js => DidYouKnowBox-e307526a.js} (97%) rename public/build/default/assets/{DtRowItem-e0e2d82c.js => DtRowItem-1290e867.js} (77%) rename public/build/default/assets/{EditBadge-38f218fb.js => EditBadge-39bd3892.js} (89%) rename public/build/default/assets/{EditCustomForm-23c7c9ad.js => EditCustomForm-46ca6dff.js} (93%) rename public/build/default/assets/{EditCustomPage-ae57364a.js => EditCustomPage-3fcf51c8.js} (91%) rename public/build/default/assets/{EditDownload-b588669c.js => EditDownload-3fff479c.js} (92%) rename public/build/default/assets/{EditNews-493c5b78.js => EditNews-8b3fe3fa.js} (90%) rename public/build/default/assets/{EditRank-82f55d65.js => EditRank-ae6c5903.js} (90%) rename public/build/default/assets/{EditRecruitment-ba94cdcd.js => EditRecruitment-35167d3b.js} (95%) rename public/build/default/assets/{EditRole-55e33d7b.js => EditRole-8933e06d.js} (91%) rename public/build/default/assets/{EditServer-3c15b095.js => EditServer-cdddc238.js} (94%) rename public/build/default/assets/{EditUser-ab9330f0.js => EditUser-4980d159.js} (94%) rename public/build/default/assets/{EyeIcon-2a13c72a.js => EyeIcon-f2aea8c7.js} (89%) rename public/build/default/assets/{FeatureList-75edea4f.js => FeatureList-4a6d07c3.js} (92%) rename public/build/default/assets/{ForgotPassword-6426560f.js => ForgotPassword-d4aae729.js} (81%) rename public/build/default/assets/{FormSection-ce4fe175.js => FormSection-262c44f6.js} (86%) rename public/build/default/assets/{GeneralSetting-81933cc9.js => GeneralSetting-82a5723f.js} (97%) rename public/build/default/assets/{Icon-51173a24.js => Icon-c6b983eb.js} (99%) delete mode 100644 public/build/default/assets/Index-9779b599.js create mode 100644 public/build/default/assets/Index-9ae929e8.js rename public/build/default/assets/{IndexAskDb-2d797a4f.js => IndexAskDb-423c751d.js} (92%) rename public/build/default/assets/{IndexBadge-ce8dd9f5.js => IndexBadge-33b7cb45.js} (83%) rename public/build/default/assets/{IndexCommandQueue-9c213add.js => IndexCommandQueue-7bacbec7.js} (88%) rename public/build/default/assets/{IndexCustomForm-829ff89e.js => IndexCustomForm-12519923.js} (84%) rename public/build/default/assets/{IndexCustomForm-f45ffe63.js => IndexCustomForm-c1b1f840.js} (85%) rename public/build/default/assets/{IndexCustomFormSubmission-020666b6.js => IndexCustomFormSubmission-edaa2626.js} (89%) rename public/build/default/assets/{IndexCustomPage-435eb07e.js => IndexCustomPage-67900fbf.js} (86%) rename public/build/default/assets/{IndexDownload-ec4bdcef.js => IndexDownload-0a4df841.js} (83%) rename public/build/default/assets/{IndexDownload-732214a4.js => IndexDownload-c589541a.js} (80%) rename public/build/default/assets/{IndexFailedJob-c8c967e1.js => IndexFailedJob-ebb71af4.js} (83%) rename public/build/default/assets/{IndexNews-4e07a146.js => IndexNews-70f23028.js} (92%) rename public/build/default/assets/{IndexNews-a25d4326.js => IndexNews-e2a86fe3.js} (84%) rename public/build/default/assets/{IndexPlayer-433bfa56.js => IndexPlayer-6cd75838.js} (97%) rename public/build/default/assets/{IndexPoll-bd45dcdd.js => IndexPoll-2436419c.js} (87%) rename public/build/default/assets/{IndexPoll-140a6fcf.js => IndexPoll-e02c01bc.js} (77%) rename public/build/default/assets/{IndexPunishment-e3b7024d.js => IndexPunishment-66de1a9e.js} (93%) rename public/build/default/assets/{IndexRank-1ffa15f8.js => IndexRank-bc17fea1.js} (86%) rename public/build/default/assets/{IndexRecruitment-e7bc9566.js => IndexRecruitment-5e20c42d.js} (89%) rename public/build/default/assets/{IndexRecruitment-4d0d5453.js => IndexRecruitment-8f58d56c.js} (86%) rename public/build/default/assets/{IndexRecruitmentSubmission-b4bc5c3b.js => IndexRecruitmentSubmission-4c0d48cc.js} (82%) rename public/build/default/assets/{IndexRecruitmentSubmission-5f76ba4e.js => IndexRecruitmentSubmission-a7c0c461.js} (87%) delete mode 100644 public/build/default/assets/IndexRole-5183c964.js create mode 100644 public/build/default/assets/IndexRole-81046e13.js rename public/build/default/assets/{IndexServer-2b6b8b0b.js => IndexServer-345b2315.js} (66%) rename public/build/default/assets/{IndexSession-75123f7b.js => IndexSession-007a6484.js} (85%) rename public/build/default/assets/{IndexSession-bf453d9f.js => IndexSession-516ec6e8.js} (80%) rename public/build/default/assets/{IndexStaff-cf85604c.js => IndexStaff-5bbb75c6.js} (89%) rename public/build/default/assets/{IndexUser-d8b8220d.js => IndexUser-551cdc35.js} (86%) rename public/build/default/assets/{InfiniteScroll-8e6c2ff7.js => InfiniteScroll-3132828f.js} (86%) rename public/build/default/assets/{Input-eeec398a.js => Input-80baf30b.js} (89%) rename public/build/default/assets/{InputError-0f9066f5.js => InputError-c9da7e14.js} (52%) rename public/build/default/assets/{Label-3b178ab9.js => Label-2875b33b.js} (81%) rename public/build/default/assets/{LinkedSocialAccountsForm-c056d7ac.js => LinkedSocialAccountsForm-297ee1ef.js} (72%) rename public/build/default/assets/{ListLinkedPlayer-666ce232.js => ListLinkedPlayer-f82a527c.js} (97%) rename public/build/default/assets/{LoadingButton-197d55a5.js => LoadingButton-0b0faf9b.js} (91%) rename public/build/default/assets/{LoadingSpinner-4d0c5ed3.js => LoadingSpinner-3fdcb150.js} (91%) rename public/build/default/assets/{LockOpenIcon-4c399edc.js => LockOpenIcon-fe328be7.js} (86%) rename public/build/default/assets/{Login-256c2831.js => Login-6db86edd.js} (82%) rename public/build/default/assets/{LogoutOtherBrowserSessionsForm-ceadade8.js => LogoutOtherBrowserSessionsForm-bac6fcd1.js} (90%) rename public/build/default/assets/{Modal-8088ecaa.js => Modal-99e63812.js} (93%) rename public/build/default/assets/{NavigationSetting-67d8d313.js => NavigationSetting-4658cfcd.js} (99%) rename public/build/default/assets/{NewsBox-174341ef.js => NewsBox-f2177336.js} (94%) rename public/build/default/assets/{NoSymbolIcon-8b4eb60e.js => NoSymbolIcon-52e34179.js} (84%) rename public/build/default/assets/{Overview-450d9171.js => Overview-2cde65be.js} (94%) rename public/build/default/assets/{PasswordStrengthMeter-10e67480.js => PasswordStrengthMeter-2bd04999.js} (99%) rename public/build/default/assets/{PencilSquareIcon-68b86eb1.js => PencilSquareIcon-a0549ec0.js} (88%) rename public/build/default/assets/{Performance-3dfbada9.js => Performance-7b70f3c5.js} (91%) rename public/build/default/assets/{PlayerSetting-e336d927.js => PlayerSetting-e563526d.js} (97%) rename public/build/default/assets/{PlayerSubMenu-1d4f71c8.js => PlayerSubMenu-956d7aed.js} (96%) rename public/build/default/assets/{Playerbase-45352bb4.js => Playerbase-d709081c.js} (88%) rename public/build/default/assets/{PlayersList-7f55c0d0.js => PlayersList-effac761.js} (83%) rename public/build/default/assets/{PlayersMinecraftVersionMetricBox-283f00f1.js => PlayersMinecraftVersionMetricBox-666d94b8.js} (96%) rename public/build/default/assets/{PluginSetting-b52412b2.js => PluginSetting-1486058f.js} (97%) rename public/build/default/assets/{PollBox-a7bf3350.js => PollBox-5266463b.js} (97%) rename public/build/default/assets/{Post-3e39eb05.js => Post-7a897762.js} (95%) rename public/build/default/assets/{PostRegistrationSetupUser-6877c6ff.js => PostRegistrationSetupUser-dcb2ae04.js} (81%) rename public/build/default/assets/{PrivacyPolicy-2b0657bb.js => PrivacyPolicy-55baabb4.js} (82%) rename public/build/default/assets/{RecruitmentMessagesBox-090edc0f.js => RecruitmentMessagesBox-63016b88.js} (94%) rename public/build/default/assets/{Register-e803575c.js => Register-7e3c8d3e.js} (87%) rename public/build/default/assets/{ResetPassword-3aea37eb.js => ResetPassword-90220218.js} (84%) rename public/build/default/assets/{ResetPassword-b4a5911d.js => ResetPassword-d0e31dd6.js} (92%) rename public/build/default/assets/{SecondaryButton-ef45fb59.js => SecondaryButton-eeafe46e.js} (94%) rename public/build/default/assets/{SectionBorder-ecaab741.js => SectionBorder-3ed4f071.js} (81%) rename public/build/default/assets/{SectionTitle-509a6aac.js => SectionTitle-47ee3556.js} (88%) rename public/build/default/assets/{SeoSetting-c6507250.js => SeoSetting-9136ff62.js} (92%) rename public/build/default/assets/{ServerIntelServerSelector-d7147618.js => ServerIntelServerSelector-00201d1c.js} (89%) rename public/build/default/assets/{ServerStatusBox-a7fd5746.js => ServerStatusBox-5dc0816f.js} (94%) rename public/build/default/assets/{ServerSubMenu-1e6dc28c.js => ServerSubMenu-8b4e6de4.js} (92%) rename public/build/default/assets/{ShoutBox-242aa07b.js => ShoutBox-e3a4033e.js} (97%) rename public/build/default/assets/{Show-1bd83303.js => Show-5f98cf25.js} (55%) rename public/build/default/assets/{ShowBannedPage-0f4eb33a.js => ShowBannedPage-3364292e.js} (83%) rename public/build/default/assets/{ShowCustomForm-a4a927c1.js => ShowCustomForm-8dd62673.js} (91%) rename public/build/default/assets/{ShowCustomForm-087ffa90.js => ShowCustomForm-9b3e6dfa.js} (86%) rename public/build/default/assets/{ShowCustomFormSubmission-caaa2b34.js => ShowCustomFormSubmission-f49b0f43.js} (94%) rename public/build/default/assets/{ShowCustomPage-d4577535.js => ShowCustomPage-8cd8e138.js} (89%) rename public/build/default/assets/{ShowDownload-e43d72fb.js => ShowDownload-66d32a46.js} (89%) rename public/build/default/assets/{ShowNews-178ba392.js => ShowNews-241a311f.js} (80%) rename public/build/default/assets/{ShowNews-ae47075b.js => ShowNews-4963dfcf.js} (76%) rename public/build/default/assets/{ShowNewsCard-ea6cf0ed.js => ShowNewsCard-c5801968.js} (92%) rename public/build/default/assets/{ShowPlayer-8e49b59b.js => ShowPlayer-01c3ae73.js} (98%) rename public/build/default/assets/{ShowPost-484aa961.js => ShowPost-0291fe28.js} (65%) rename public/build/default/assets/{ShowPunishment-87da7c2d.js => ShowPunishment-343c48ad.js} (97%) rename public/build/default/assets/{ShowRecruitment-621c32cc.js => ShowRecruitment-3f7887c0.js} (94%) rename public/build/default/assets/{ShowRecruitment-e1a3f004.js => ShowRecruitment-ee656ec8.js} (92%) rename public/build/default/assets/{ShowRecruitmentSubmission-64e96549.js => ShowRecruitmentSubmission-af671c47.js} (92%) rename public/build/default/assets/{ShowRecruitmentSubmission-c43ebec4.js => ShowRecruitmentSubmission-de604ea1.js} (91%) rename public/build/default/assets/{ShowServer-d2eb19a8.js => ShowServer-3a79a9c4.js} (99%) rename public/build/default/assets/{ShowServerStats-6ceda2f1.js => ShowServerStats-88b2936f.js} (98%) rename public/build/default/assets/{ShowSession-3bf868ae.js => ShowSession-e43065e0.js} (97%) rename public/build/default/assets/{ShowUser-417b79b4.js => ShowUser-f4b03aac.js} (53%) rename public/build/default/assets/{SocialAuthButtons-5e1bf2e6.js => SocialAuthButtons-c9ba1b7c.js} (96%) rename public/build/default/assets/{SocialChannelBox-83892ebf.js => SocialChannelBox-8537a1d0.js} (98%) rename public/build/default/assets/{SpeakerXMarkIcon-4c41f854.js => SpeakerXMarkIcon-9561e0ee.js} (88%) rename public/build/default/assets/{TermsOfService-99c3b19f.js => TermsOfService-793b98e3.js} (82%) rename public/build/default/assets/{ThemeSetting-9dfd47db.js => ThemeSetting-0287b5a7.js} (96%) rename public/build/default/assets/{TrashIcon-c2dd8543.js => TrashIcon-ffd3d5e6.js} (91%) rename public/build/default/assets/{TwoFactorAuthenticationForm-074eb03e.js => TwoFactorAuthenticationForm-8a12e349.js} (90%) rename public/build/default/assets/{TwoFactorChallenge-ba855667.js => TwoFactorChallenge-b46e667c.js} (89%) rename public/build/default/assets/{UpdateNotificationPreferencesForm-1d8e9ae1.js => UpdateNotificationPreferencesForm-c18b3713.js} (98%) rename public/build/default/assets/{UpdatePasswordForm-f51a7f83.js => UpdatePasswordForm-de02b9a4.js} (87%) rename public/build/default/assets/{UpdateProfileInformationForm-9f403b47.js => UpdateProfileInformationForm-350944a8.js} (95%) rename public/build/default/assets/{UserDisplayname-fdf0802f.js => UserDisplayname-a302c4b7.js} (93%) rename public/build/default/assets/{UserGroupIcon-6dff99ea.js => UserGroupIcon-e03e7897.js} (94%) rename public/build/default/assets/{UserIcon-a4dfeeb6.js => UserIcon-e32663ad.js} (85%) rename public/build/default/assets/{UserNotifications-2db719a6.js => UserNotifications-6ff1f6a1.js} (86%) rename public/build/default/assets/{VerifyEmail-15d50f7b.js => VerifyEmail-34b1fb4b.js} (85%) rename public/build/default/assets/{Welcome-50155092.js => Welcome-bf76bbb2.js} (98%) rename public/build/default/assets/{XCheckbox-29701ec6.js => XCheckbox-0e9cb980.js} (95%) rename public/build/default/assets/{XInput-c6b47d37.js => XInput-2db776cf.js} (97%) rename public/build/default/assets/{XMarkIcon-8be5cb6c.js => XMarkIcon-2ab1c8ef.js} (80%) rename public/build/default/assets/{XSelect-9fb18d4e.js => XSelect-9669b895.js} (97%) rename public/build/default/assets/{XTextarea-f0ad972b.js => XTextarea-7b619ed9.js} (97%) delete mode 100644 public/build/default/assets/app-89bd5a8d.css rename public/build/default/assets/{app-baae6499.js => app-b56afa57.js} (93%) create mode 100644 public/build/default/assets/app-f21ea4ed.css rename public/build/default/assets/{darkTheme-fb6760bb.js => darkTheme-44ed2f1d.js} (99%) rename public/build/default/assets/{easymde-1871c993.js => easymde-922c4064.js} (99%) rename public/build/default/assets/{hidden-593eabf1.js => hidden-4383f5d9.js} (96%) rename public/build/default/assets/{index-b1383bad.js => index-0d4d23a0.js} (98%) rename public/build/default/assets/{index-e0ddbf94.js => index-bc880d14.js} (93%) rename public/build/default/assets/{index.es-2d3f7629.js => index.es-e3059dc2.js} (99%) rename public/build/default/assets/{open-closed-ee868aaf.js => open-closed-65012d7e.js} (75%) rename public/build/default/assets/{use-resolve-button-type-957bab96.js => use-resolve-button-type-9e76052c.js} (96%) rename public/build/default/assets/{useAuthorizable-f632635d.js => useAuthorizable-94e7d830.js} (83%) rename public/build/default/assets/{vue-multiselect.esm-0851868f.js => vue-multiselect.esm-f8979d44.js} (99%) diff --git a/app/Http/Controllers/Admin/RoleController.php b/app/Http/Controllers/Admin/RoleController.php index 9a1071cf8..b7a58f6f9 100644 --- a/app/Http/Controllers/Admin/RoleController.php +++ b/app/Http/Controllers/Admin/RoleController.php @@ -71,7 +71,9 @@ public function store(CreateRoleRequest $request) $role->givePermissionTo($request->permissions); - $role->addMediaFromRequest('photo')->toMediaCollection('role'); + if ($request->photo) { + $role->addMediaFromRequest('photo')->toMediaCollection('role'); + } return redirect()->route('admin.role.index') ->with(['toast' => ['type' => 'success', 'title' => __('Created Successfully'), 'body' => __('New Role is created successfully')]]); diff --git a/app/Http/Controllers/Admin/UserController.php b/app/Http/Controllers/Admin/UserController.php index d8d0fc53c..75b50b450 100644 --- a/app/Http/Controllers/Admin/UserController.php +++ b/app/Http/Controllers/Admin/UserController.php @@ -40,9 +40,9 @@ public function index() 'updated_at', 'country_id', 'last_login_at', - 'roles.display_name', 'country.name', 'discord_user_id', + AllowedFilter::exact('roles.display_name'), AllowedFilter::custom('q', new FilterMultipleFields(['name', 'email', 'username', 'discord_user_id'])), AllowedFilter::scope('is_verified'), ]) diff --git a/app/Http/Requests/CreateRoleRequest.php b/app/Http/Requests/CreateRoleRequest.php index 41c4d0c81..58a9ffd95 100644 --- a/app/Http/Requests/CreateRoleRequest.php +++ b/app/Http/Requests/CreateRoleRequest.php @@ -30,7 +30,7 @@ public function rules() 'display_name' => 'required|string|max:255', 'is_staff' => 'required|boolean', 'is_hidden_from_staff_list' => 'required|boolean', - 'photo' => 'required|image|max:300', + 'photo' => 'nullable|image|max:300', 'weight' => 'required|integer', 'web_message_format' => 'nullable|string|max:255', 'permissions' => 'sometimes|nullable|array|exists:permissions,name' diff --git a/app/Models/Role.php b/app/Models/Role.php index b955c76b0..10cd7548f 100644 --- a/app/Models/Role.php +++ b/app/Models/Role.php @@ -33,7 +33,7 @@ public function registerMediaCollections(): void public function getPhotoUrlAttribute() { - $photo_url = url('images/default-roles/'.$this->name.'.png'); + $photo_url = null; if ($this->getFirstMediaUrl('role')) { $photo_url = $this->getFirstMediaUrl('role'); } diff --git a/public/build/default/assets/ActionMessage-51905416.js b/public/build/default/assets/ActionMessage-996676ab.js similarity index 85% rename from public/build/default/assets/ActionMessage-51905416.js rename to public/build/default/assets/ActionMessage-996676ab.js index acbef3f55..4a2869a51 100644 --- a/public/build/default/assets/ActionMessage-51905416.js +++ b/public/build/default/assets/ActionMessage-996676ab.js @@ -1 +1 @@ -import{o as s,d as t,b as o,w as n,j as c,m as i,a as r,R as l,V as d}from"./app-baae6499.js";const _={class:"text-sm text-gray-600"},v={__name:"ActionMessage",props:{on:Boolean},setup(e){return(a,m)=>(s(),t("div",null,[o(d,{"leave-active-class":"transition duration-1000 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:n(()=>[c(r("div",_,[l(a.$slots,"default")],512),[[i,e.on]])]),_:3})]))}};export{v as _}; +import{o as s,d as t,b as o,w as n,j as c,m as i,a as r,R as l,V as d}from"./app-b56afa57.js";const _={class:"text-sm text-gray-600"},v={__name:"ActionMessage",props:{on:Boolean},setup(e){return(a,m)=>(s(),t("div",null,[o(d,{"leave-active-class":"transition duration-1000 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:n(()=>[c(r("div",_,[l(a.$slots,"default")],512),[[i,e.on]])]),_:3})]))}};export{v as _}; diff --git a/public/build/default/assets/ActionSection-19441b14.js b/public/build/default/assets/ActionSection-9dac4615.js similarity index 75% rename from public/build/default/assets/ActionSection-19441b14.js rename to public/build/default/assets/ActionSection-9dac4615.js index b691e2b67..de555ed83 100644 --- a/public/build/default/assets/ActionSection-19441b14.js +++ b/public/build/default/assets/ActionSection-9dac4615.js @@ -1 +1 @@ -import{J as a}from"./SectionTitle-509a6aac.js";import{o as d,d as i,b as c,w as o,R as t,a as e}from"./app-baae6499.js";const r={class:"md:grid md:grid-cols-3 md:gap-6"},n={class:"mt-5 md:mt-0 md:col-span-2"},l={class:"px-4 py-5 sm:p-6 bg-white dark:bg-cool-gray-800 shadow sm:rounded-lg"},h={__name:"ActionSection",setup(m){return(s,p)=>(d(),i("div",r,[c(a,null,{title:o(()=>[t(s.$slots,"title")]),description:o(()=>[t(s.$slots,"description")]),_:3}),e("div",n,[e("div",l,[t(s.$slots,"content")])])]))}};export{h as _}; +import{J as a}from"./SectionTitle-47ee3556.js";import{o as d,d as i,b as c,w as o,R as t,a as e}from"./app-b56afa57.js";const r={class:"md:grid md:grid-cols-3 md:gap-6"},n={class:"mt-5 md:mt-0 md:col-span-2"},l={class:"px-4 py-5 sm:p-6 bg-white dark:bg-cool-gray-800 shadow sm:rounded-lg"},h={__name:"ActionSection",setup(m){return(s,p)=>(d(),i("div",r,[c(a,null,{title:o(()=>[t(s.$slots,"title")]),description:o(()=>[t(s.$slots,"description")]),_:3}),e("div",n,[e("div",l,[t(s.$slots,"content")])])]))}};export{h as _}; diff --git a/public/build/default/assets/AdminLayout-d79c45db.js b/public/build/default/assets/AdminLayout-5df346fb.js similarity index 98% rename from public/build/default/assets/AdminLayout-d79c45db.js rename to public/build/default/assets/AdminLayout-5df346fb.js index b5543c754..31fd7234f 100644 --- a/public/build/default/assets/AdminLayout-d79c45db.js +++ b/public/build/default/assets/AdminLayout-5df346fb.js @@ -1 +1 @@ -import{A as W}from"./AppLayout-6edbf3df.js";import{o as n,d as o,a,z as $,r as g,y as O,x as y,A as I,B as L,s as G,C as E,l as J,c as p,w as k,M as D,n as v,e as b,t as _,u as f,Z as X,b as S,F as q,g as N,S as Y,i as Z,R as Q}from"./app-baae6499.js";import{t as V,u as P,o as w,H as j,b as ee,N as H,a as x}from"./use-resolve-button-type-957bab96.js";import{c as re,l as B,p as te}from"./open-closed-ee868aaf.js";import{u as ne}from"./useAuthorizable-f632635d.js";import{r as le}from"./CloudArrowDownIcon-db3b0419.js";import{u as ie}from"./index-b1383bad.js";function ae(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.26 10.147a60.436 60.436 0 00-.491 6.347A48.627 48.627 0 0112 20.904a48.627 48.627 0 018.232-4.41 60.46 60.46 0 00-.491-6.347m-15.482 0a50.57 50.57 0 00-2.658-.813A59.905 59.905 0 0112 3.493a59.902 59.902 0 0110.399 5.84c-.896.248-1.783.52-2.658.814m-15.482 0A50.697 50.697 0 0112 13.489a50.702 50.702 0 017.74-3.342M6.75 15a.75.75 0 100-1.5.75.75 0 000 1.5zm0 0v-3.675A55.378 55.378 0 0112 8.443m-7.007 11.55A5.981 5.981 0 006.75 15.75v-1.5"})])}function oe(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 12.75c1.148 0 2.278.08 3.383.237 1.037.146 1.866.966 1.866 2.013 0 3.728-2.35 6.75-5.25 6.75S6.75 18.728 6.75 15c0-1.046.83-1.867 1.866-2.013A24.204 24.204 0 0112 12.75zm0 0c2.883 0 5.647.508 8.207 1.44a23.91 23.91 0 01-1.152 6.06M12 12.75c-2.883 0-5.647.508-8.208 1.44.125 2.104.52 4.136 1.153 6.06M12 12.75a2.25 2.25 0 002.248-2.354M12 12.75a2.25 2.25 0 01-2.248-2.354M12 8.25c.995 0 1.971-.08 2.922-.236.403-.066.74-.358.795-.762a3.778 3.778 0 00-.399-2.25M12 8.25c-.995 0-1.97-.08-2.922-.236-.402-.066-.74-.358-.795-.762a3.734 3.734 0 01.4-2.253M12 8.25a2.25 2.25 0 00-2.248 2.146M12 8.25a2.25 2.25 0 012.248 2.146M8.683 5a6.032 6.032 0 01-1.155-1.002c.07-.63.27-1.222.574-1.747m.581 2.749A3.75 3.75 0 0115.318 5m0 0c.427-.283.815-.62 1.155-.999a4.471 4.471 0 00-.575-1.752M4.921 6a24.048 24.048 0 00-.392 3.314c1.668.546 3.416.914 5.223 1.082M19.08 6c.205 1.08.337 2.187.392 3.314a23.882 23.882 0 01-5.223 1.082"})])}function se(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6a7.5 7.5 0 107.5 7.5h-7.5V6z"}),a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 10.5H21A7.5 7.5 0 0013.5 3v7.5z"})])}function ce(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18.75 19.5l-7.5-7.5 7.5-7.5m-6 15L5.25 12l7.5-7.5"})])}function ue(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"})])}function de(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z"})])}function me(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 011.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.56.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.893.149c-.425.07-.765.383-.93.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 01-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.397.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 01-.12-1.45l.527-.737c.25-.35.273-.806.108-1.204-.165-.397-.505-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.107-1.204l-.527-.738a1.125 1.125 0 01.12-1.45l.773-.773a1.125 1.125 0 011.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894z"}),a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})])}function he(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.75 7.5l3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0021 18V6a2.25 2.25 0 00-2.25-2.25H5.25A2.25 2.25 0 003 6v12a2.25 2.25 0 002.25 2.25z"})])}function ve(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})])}function pe(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})])}function be(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 7.5h1.5m-1.5 3h1.5m-7.5 3h7.5m-7.5 3h7.5m3-9h3.375c.621 0 1.125.504 1.125 1.125V18a2.25 2.25 0 01-2.25 2.25M16.5 7.5V18a2.25 2.25 0 002.25 2.25M16.5 7.5V4.875c0-.621-.504-1.125-1.125-1.125H4.125C3.504 3.75 3 4.254 3 4.875V18a2.25 2.25 0 002.25 2.25h13.5M6 7.5h3v3H6v-3z"})])}function fe(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 3v11.25A2.25 2.25 0 006 16.5h2.25M3.75 3h-1.5m1.5 0h16.5m0 0h1.5m-1.5 0v11.25A2.25 2.25 0 0118 16.5h-2.25m-7.5 0h7.5m-7.5 0l-1 3m8.5-3l1 3m0 0l.5 1.5m-.5-1.5h-9.5m0 0l-.5 1.5m.75-9l3-3 2.148 2.148A12.061 12.061 0 0116.5 7.605"})])}function ge(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 14.25h13.5m-13.5 0a3 3 0 01-3-3m3 3a3 3 0 100 6h13.5a3 3 0 100-6m-16.5-3a3 3 0 013-3h13.5a3 3 0 013 3m-19.5 0a4.5 4.5 0 01.9-2.7L5.737 5.1a3.375 3.375 0 012.7-1.35h7.126c1.062 0 2.062.5 2.7 1.35l2.587 3.45a4.5 4.5 0 01.9 2.7m0 0a3 3 0 01-3 3m0 3h.008v.008h-.008v-.008zm0-6h.008v.008h-.008v-.008zm-3 6h.008v.008h-.008v-.008zm0-6h.008v.008h-.008v-.008z"})])}function we(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.5 18.75h-9m9 0a3 3 0 013 3h-15a3 3 0 013-3m9 0v-3.375c0-.621-.503-1.125-1.125-1.125h-.871M7.5 18.75v-3.375c0-.621.504-1.125 1.125-1.125h.872m5.007 0H9.497m5.007 0a7.454 7.454 0 01-.982-3.172M9.497 14.25a7.454 7.454 0 00.981-3.172M5.25 4.236c-.982.143-1.954.317-2.916.52A6.003 6.003 0 007.73 9.728M5.25 4.236V4.5c0 2.108.966 3.99 2.48 5.228M5.25 4.236V2.721C7.456 2.41 9.71 2.25 12 2.25c2.291 0 4.545.16 6.75.47v1.516M7.73 9.728a6.726 6.726 0 002.748 1.35m8.272-6.842V4.5c0 2.108-.966 3.99-2.48 5.228m2.48-5.492a46.32 46.32 0 012.916.52 6.003 6.003 0 01-5.395 4.972m0 0a6.726 6.726 0 01-2.749 1.35m0 0a6.772 6.772 0 01-3.044 0"})])}function xe(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z"})])}var ke=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ke||{});let R=Symbol("DisclosureContext");function z(e){let r=E(R,null);if(r===null){let c=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(c,z),c}return r}let T=Symbol("DisclosurePanelContext");function ye(){return E(T,null)}let Me=$({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:r,attrs:c}){let l=g(e.defaultOpen?0:1),t=g(null),u=g(null),s={buttonId:g(`headlessui-disclosure-button-${V()}`),panelId:g(`headlessui-disclosure-panel-${V()}`),disclosureState:l,panel:t,button:u,toggleDisclosure(){l.value=P(l.value,{0:1,1:0})},closeDisclosure(){l.value!==1&&(l.value=1)},close(i){s.closeDisclosure();let m=(()=>i?i instanceof HTMLElement?i:i.value instanceof HTMLElement?w(i):w(s.button):w(s.button))();m==null||m.focus()}};return O(R,s),re(y(()=>P(l.value,{0:B.Open,1:B.Closed}))),()=>{let{defaultOpen:i,...m}=e,h={open:l.value===0,close:s.close};return j({theirProps:m,ourProps:{},slot:h,slots:r,attrs:c,name:"Disclosure"})}}}),Ce=$({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:r,slots:c,expose:l}){let t=z("DisclosureButton"),u=ye(),s=y(()=>u===null?!1:u.value===t.panelId.value);I(()=>{s.value||e.id!==null&&(t.buttonId.value=e.id)}),L(()=>{s.value||(t.buttonId.value=null)});let i=g(null);l({el:i,$el:i}),s.value||G(()=>{t.button.value=i.value});let m=ee(y(()=>({as:e.as,type:r.type})),i);function h(){var d;e.disabled||(s.value?(t.toggleDisclosure(),(d=w(t.button))==null||d.focus()):t.toggleDisclosure())}function M(d){var C;if(!e.disabled)if(s.value)switch(d.key){case x.Space:case x.Enter:d.preventDefault(),d.stopPropagation(),t.toggleDisclosure(),(C=w(t.button))==null||C.focus();break}else switch(d.key){case x.Space:case x.Enter:d.preventDefault(),d.stopPropagation(),t.toggleDisclosure();break}}function A(d){switch(d.key){case x.Space:d.preventDefault();break}}return()=>{var d;let C={open:t.disclosureState.value===0},{id:F,...U}=e,K=s.value?{ref:i,type:m.value,onClick:h,onKeydown:M}:{id:(d=t.buttonId.value)!=null?d:F,ref:i,type:m.value,"aria-expanded":t.disclosureState.value===0,"aria-controls":t.disclosureState.value===0||w(t.panel)?t.panelId.value:void 0,disabled:e.disabled?!0:void 0,onClick:h,onKeydown:M,onKeyup:A};return j({ourProps:K,theirProps:U,slot:C,attrs:r,slots:c,name:"DisclosureButton"})}}}),_e=$({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:r,slots:c,expose:l}){let t=z("DisclosurePanel");I(()=>{e.id!==null&&(t.panelId.value=e.id)}),L(()=>{t.panelId.value=null}),l({el:t.panel,$el:t.panel}),O(T,t.panelId);let u=te(),s=y(()=>u!==null?(u.value&B.Open)===B.Open:t.disclosureState.value===0);return()=>{var i;let m={open:t.disclosureState.value===0,close:t.close},{id:h,...M}=e,A={id:(i=t.panelId.value)!=null?i:h,ref:t.panel};return j({ourProps:A,theirProps:M,slot:m,attrs:r,slots:c,features:H.RenderStrategy|H.Static,visible:s.value,name:"DisclosurePanel"})}}});function Se(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[a("path",{"fill-rule":"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z","clip-rule":"evenodd"})])}const Be={key:1},Ae={key:1,class:"flex-1"},De={__name:"SideNavItem",props:{item:Object,collapsed:Boolean},setup(e){const r=e,c=y(()=>{function l(t){return t.some(u=>u.active||l(u.children))}return l(r.item.children)});return(l,t)=>{const u=J("SideNavItem",!0);return!e.item.children.length&&e.item.visible?(n(),p(D(e.item.newtab?"a":f(X)),{key:0,class:v(["group flex w-full items-center rounded-md py-2 px-3 text-sm font-medium","hover:bg-gray-100 dark:hover:bg-gray-900",e.item.active?"text-gray-800 font-semibold dark:text-gray-200":"text-gray-600 dark:text-gray-400 font-medium"]),href:e.item.href,target:e.item.newtab?"_blank":null},{default:k(()=>[e.item.icon?(n(),p(D(e.item.icon),{key:0,class:v(["w-6 h-6 shrink-0 mr-2 group-hover:text-gray-600 dark:group-hover:text-gray-400",e.item.active?"text-gray-600 dark:text-gray-400":"text-gray-400 dark:text-gray-600"])},null,8,["class"])):b("",!0),e.collapsed?b("",!0):(n(),o("span",Be,_(l.__(e.item.label)),1))]),_:1},8,["class","href","target"])):e.item.children.length&&e.item.visible?(n(),p(f(Me),{key:1,"default-open":c.value},{default:k(({open:s})=>[S(f(Ce),{class:v(["group text-left flex w-full items-center rounded-md py-2 px-3 text-sm","hover:bg-gray-100 dark:hover:bg-gray-900",s?"font-semibold text-gray-800 dark:text-gray-200":"text-gray-600 dark:text-gray-400 font-medium"])},{default:k(()=>[e.item.icon?(n(),p(D(e.item.icon),{key:0,class:v(["w-6 h-6 shrink-0 mr-2 group-hover:text-gray-600 dark:group-hover:text-gray-400",s?"text-gray-600 dark:text-gray-400":"text-gray-400 dark:text-gray-600"])},null,8,["class"])):b("",!0),e.collapsed?b("",!0):(n(),o("span",Ae,_(l.__(e.item.label)),1)),e.collapsed?b("",!0):(n(),p(f(Se),{key:2,class:v(["w-6 h-6 shrink-0",s?"-rotate-180 text-gray-600 dark:text-gray-400":"text-gray-400 dark:text-gray-600"])},null,8,["class"]))]),_:2},1032,["class"]),e.collapsed?b("",!0):(n(),p(f(_e),{key:0,class:"ml-4"},{default:k(()=>[(n(!0),o(q,null,N(e.item.children,i=>(n(),p(u,{key:i.label,item:i},null,8,["item"]))),128))]),_:1}))]),_:1},8,["default-open"])):b("",!0)}}},$e={class:"h-screen overflow-y-auto"},je={class:"mt-2 px-2"},ze={key:0,class:"mt-10 text-xs text-center text-gray-600 dark:text-gray-500"},Ve={__name:"AdminSideMenu",props:{collapsed:Boolean},emits:["toggleCollapse"],setup(e){var u,s;const{canWild:r,hasRole:c,can:l}=ne(),t=[{label:"Dashboard",href:route("admin.dashboard"),active:route().current("admin.dashboard"),children:[],icon:pe,visible:!0},{label:"Servers",href:route("admin.server.index"),active:route().current("admin.server.*"),children:[],icon:ge,visible:r("servers")},{label:"Server Analytics",href:"#",active:route().current("admin.intel.server.*"),children:[{label:"Overview",href:route("admin.intel.server.index"),active:route().current("admin.intel.server.index"),children:[],icon:null,visible:r("server_intel")},{label:"Performance",href:route("admin.intel.server.performance"),active:route().current("admin.intel.server.performance"),children:[],icon:null,visible:r("server_intel")},{label:"Playerbase",href:route("admin.intel.server.playerbase"),active:route().current("admin.intel.server.playerbase"),children:[],icon:null,visible:r("server_intel")},{label:"Chatlog",href:route("admin.intel.server.chatlog"),active:route().current("admin.intel.server.chatlog"),children:[],icon:null,visible:r("server_intel")},{label:"Consolelog",href:route("admin.intel.server.consolelog"),active:route().current("admin.intel.server.consolelog"),children:[],icon:null,visible:r("server_intel")}],icon:fe,visible:r("server_intel")},{label:"Players",href:"#",active:route().current("admin.intel.player.*")||route().current("admin.rank.*"),children:[{label:"List Players",href:route("admin.intel.player.list"),active:route().current("admin.intel.player.list"),children:[],icon:null,visible:!0},{label:"Player Ranks",href:route("admin.rank.index"),active:route().current("admin.rank.*"),children:[],icon:null,visible:r("ranks")},{label:"Punishments",href:route("player.punishment.index"),active:route().current("player.punishment.index"),children:[],icon:null,visible:(s=(u=Y().props)==null?void 0:u.banwarden)==null?void 0:s.enabled}],icon:we,visible:!0},{label:"Users",href:"#",active:!1,children:[{label:"List Users",href:route("admin.user.index"),active:route().current("admin.user.*"),children:[],icon:null,visible:r("users")},{label:"Roles & Permissions",href:route("admin.role.index"),active:route().current("admin.role.*"),children:[],icon:null,visible:r("roles")},{label:"User Badges",href:route("admin.badge.index"),active:route().current("admin.badge.*"),children:[],icon:null,visible:r("badges")},{label:"Online Users",href:route("admin.session.index"),active:route().current("admin.session.*"),children:[],icon:null,visible:r("sessions")}],icon:xe,visible:!0},{label:"News",href:route("admin.news.index"),active:route().current("admin.news.*"),children:[],icon:be,visible:r("news")},{label:"Polls",href:route("admin.poll.index"),active:route().current("admin.poll.*"),children:[],icon:se,visible:r("polls")},{label:"Downloads",href:route("admin.download.index"),active:route().current("admin.download.*"),children:[],icon:le,visible:r("downloads")},{label:"Custom Pages",href:route("admin.custom-page.index"),active:route().current("admin.custom-page.*"),children:[],icon:ve,visible:r("custom_pages")},{label:"Ask DB",href:route("admin.ask-db.index"),active:route().current("admin.ask-db.*"),children:[],icon:ue,visible:r("ask_db")},{label:"Applicatons",active:!1,children:[{label:"List Application Forms",href:route("admin.recruitment.index"),active:route().current("admin.recruitment.index"),children:[],icon:null,visible:l("read recruitments")},{label:"Open Requests",href:route("admin.recruitment-submission.index-open"),active:route().current("admin.recruitment-submission.index-open"),children:[],icon:null,visible:l("read recruitment_submissions")},{label:"Closed Requests",href:route("admin.recruitment-submission.index-closed"),active:route().current("admin.recruitment-submission.index-closed"),children:[],icon:null,visible:l("read recruitment_submissions")}],icon:ae,visible:r("recruitments")||r("recruitment_submissions")},{label:"Custom Forms",active:!1,children:[{label:"List Forms",href:route("admin.custom-form.index"),active:route().current("admin.custom-form.index"),children:[],icon:null,visible:l("read custom_forms")},{label:"Submissions",href:route("admin.custom-form-submission.index"),active:route().current("admin.custom-form-submission.index"),children:[],icon:null,visible:l("read custom_form_submissions")},{label:"Archived Submissions",href:route("admin.custom-form-submission.index-archived"),active:route().current("admin.custom-form-submission.index-archived"),children:[],icon:null,visible:l("read custom_form_submissions")}],icon:de,visible:r("custom_forms")||r("custom_form_submissions")},{label:"Commands",active:!1,children:[{label:"Run Command",href:route("admin.command-queue.create"),active:route().current("admin.command-queue.create"),children:[],icon:null,visible:l("create command_queues")},{label:"Command History",href:route("admin.command-queue.index"),active:route().current("admin.command-queue.index"),children:[],icon:null,visible:l("read command_queues")}],icon:he,visible:r("command_queues")},{label:"Settings",href:"#",active:!1,children:[{label:"General",href:route("admin.setting.general.show"),active:route().current("admin.setting.general.show"),children:[],icon:null,visible:!0},{label:"Theme",href:route("admin.setting.theme.show"),active:route().current("admin.setting.theme.show"),children:[],icon:null,visible:!0},{label:"Plugin",href:route("admin.setting.plugin.show"),active:route().current("admin.setting.plugin.show"),children:[],icon:null,visible:!0},{label:"Player",href:route("admin.setting.player.show"),active:route().current("admin.setting.player.show"),children:[],icon:null,visible:!0},{label:"Navigation",href:route("admin.setting.navigation.show"),active:route().current("admin.setting.navigation.show"),children:[],icon:null,visible:!0},{label:"SEO",href:route("admin.setting.seo.show"),active:route().current("admin.setting.seo.show"),children:[],icon:null,visible:!0},{label:"Dangerzone",href:route("admin.setting.danger.show"),active:route().current("admin.setting.danger.show"),children:[],icon:null,visible:c("superadmin")}],icon:me,visible:r("settings")},{label:"Debug",href:"#",active:!1,children:[{label:"Failed Jobs",href:route("admin.failed-job.index"),active:route().current("admin.failed-job.index"),children:[],icon:null,visible:l("read failed_jobs")},{label:"Pulse",href:"/admin/pulse",active:!1,children:[],icon:null,visible:!0,newtab:!0},{label:"Telescope",href:"/telescope",active:!1,children:[],icon:null,visible:!0,newtab:!0}],icon:oe,visible:c("superadmin")}];return(i,m)=>(n(),o("div",{class:v(["min-h-screen fixed bg-white shadow dark:bg-cool-gray-800 z-10 duration-300",e.collapsed?"w-16":"w-64"])},[a("div",$e,[a("div",{class:v(["px-4 mt-2 flex",e.collapsed?"justify-center":"justify-end"])},[a("button",{onClick:m[0]||(m[0]=Z(h=>i.$emit("toggleCollapse"),["prevent"]))},[S(f(ce),{class:v(["h-6 w-6 p-0.5 text-gray-400 hover:text-gray-600 dark:text-gray-600 dark:hover:text-gray-400",e.collapsed?"-rotate-180":""])},null,8,["class"])])],2),a("nav",je,[(n(),o(q,null,N(t,h=>S(De,{key:h.label,item:h,collapsed:e.collapsed},null,8,["item","collapsed"])),64))]),e.collapsed?b("",!0):(n(),o("div",ze,_(i.__("Web Version:"))+" "+_(i.$page.props.webVersion||"unknown"),1))])],2))}},Ne={__name:"AdminLayout",setup(e){let r=ie("is-admin-sidebar-menu-collapsed",!1);function c(){r.value=!r.value}return(l,t)=>(n(),p(W,null,{default:k(()=>[S(Ve,{collapsed:f(r),onToggleCollapse:c},null,8,["collapsed"]),a("main",{class:v([f(r)?"ml-16":"ml-64"])},[Q(l.$slots,"default")],2)]),_:3}))}};export{Ne as _,ge as a,xe as r}; +import{A as W}from"./AppLayout-9dd9991d.js";import{o as n,d as o,a,z as $,r as g,y as O,x as y,A as I,B as L,s as G,C as E,l as J,c as p,w as k,M as D,n as v,e as b,t as _,u as f,Z as X,b as S,F as q,g as N,S as Y,i as Z,R as Q}from"./app-b56afa57.js";import{t as V,u as P,o as w,H as j,b as ee,N as H,a as x}from"./use-resolve-button-type-9e76052c.js";import{c as re,l as B,p as te}from"./open-closed-65012d7e.js";import{u as ne}from"./useAuthorizable-94e7d830.js";import{r as le}from"./CloudArrowDownIcon-ce7a9066.js";import{u as ie}from"./index-0d4d23a0.js";function ae(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.26 10.147a60.436 60.436 0 00-.491 6.347A48.627 48.627 0 0112 20.904a48.627 48.627 0 018.232-4.41 60.46 60.46 0 00-.491-6.347m-15.482 0a50.57 50.57 0 00-2.658-.813A59.905 59.905 0 0112 3.493a59.902 59.902 0 0110.399 5.84c-.896.248-1.783.52-2.658.814m-15.482 0A50.697 50.697 0 0112 13.489a50.702 50.702 0 017.74-3.342M6.75 15a.75.75 0 100-1.5.75.75 0 000 1.5zm0 0v-3.675A55.378 55.378 0 0112 8.443m-7.007 11.55A5.981 5.981 0 006.75 15.75v-1.5"})])}function oe(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 12.75c1.148 0 2.278.08 3.383.237 1.037.146 1.866.966 1.866 2.013 0 3.728-2.35 6.75-5.25 6.75S6.75 18.728 6.75 15c0-1.046.83-1.867 1.866-2.013A24.204 24.204 0 0112 12.75zm0 0c2.883 0 5.647.508 8.207 1.44a23.91 23.91 0 01-1.152 6.06M12 12.75c-2.883 0-5.647.508-8.208 1.44.125 2.104.52 4.136 1.153 6.06M12 12.75a2.25 2.25 0 002.248-2.354M12 12.75a2.25 2.25 0 01-2.248-2.354M12 8.25c.995 0 1.971-.08 2.922-.236.403-.066.74-.358.795-.762a3.778 3.778 0 00-.399-2.25M12 8.25c-.995 0-1.97-.08-2.922-.236-.402-.066-.74-.358-.795-.762a3.734 3.734 0 01.4-2.253M12 8.25a2.25 2.25 0 00-2.248 2.146M12 8.25a2.25 2.25 0 012.248 2.146M8.683 5a6.032 6.032 0 01-1.155-1.002c.07-.63.27-1.222.574-1.747m.581 2.749A3.75 3.75 0 0115.318 5m0 0c.427-.283.815-.62 1.155-.999a4.471 4.471 0 00-.575-1.752M4.921 6a24.048 24.048 0 00-.392 3.314c1.668.546 3.416.914 5.223 1.082M19.08 6c.205 1.08.337 2.187.392 3.314a23.882 23.882 0 01-5.223 1.082"})])}function se(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 6a7.5 7.5 0 107.5 7.5h-7.5V6z"}),a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M13.5 10.5H21A7.5 7.5 0 0013.5 3v7.5z"})])}function ce(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18.75 19.5l-7.5-7.5 7.5-7.5m-6 15L5.25 12l7.5-7.5"})])}function ue(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M20.25 6.375c0 2.278-3.694 4.125-8.25 4.125S3.75 8.653 3.75 6.375m16.5 0c0-2.278-3.694-4.125-8.25-4.125S3.75 4.097 3.75 6.375m16.5 0v11.25c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125V6.375m16.5 0v3.75m-16.5-3.75v3.75m16.5 0v3.75C20.25 16.153 16.556 18 12 18s-8.25-1.847-8.25-4.125v-3.75m16.5 0c0 2.278-3.694 4.125-8.25 4.125s-8.25-1.847-8.25-4.125"})])}function de(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z"})])}function me(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.343 3.94c.09-.542.56-.94 1.11-.94h1.093c.55 0 1.02.398 1.11.94l.149.894c.07.424.384.764.78.93.398.164.855.142 1.205-.108l.737-.527a1.125 1.125 0 011.45.12l.773.774c.39.389.44 1.002.12 1.45l-.527.737c-.25.35-.272.806-.107 1.204.165.397.505.71.93.78l.893.15c.543.09.94.56.94 1.109v1.094c0 .55-.397 1.02-.94 1.11l-.893.149c-.425.07-.765.383-.93.78-.165.398-.143.854.107 1.204l.527.738c.32.447.269 1.06-.12 1.45l-.774.773a1.125 1.125 0 01-1.449.12l-.738-.527c-.35-.25-.806-.272-1.203-.107-.397.165-.71.505-.781.929l-.149.894c-.09.542-.56.94-1.11.94h-1.094c-.55 0-1.019-.398-1.11-.94l-.148-.894c-.071-.424-.384-.764-.781-.93-.398-.164-.854-.142-1.204.108l-.738.527c-.447.32-1.06.269-1.45-.12l-.773-.774a1.125 1.125 0 01-.12-1.45l.527-.737c.25-.35.273-.806.108-1.204-.165-.397-.505-.71-.93-.78l-.894-.15c-.542-.09-.94-.56-.94-1.109v-1.094c0-.55.398-1.02.94-1.11l.894-.149c.424-.07.765-.383.93-.78.165-.398.143-.854-.107-1.204l-.527-.738a1.125 1.125 0 01.12-1.45l.773-.773a1.125 1.125 0 011.45-.12l.737.527c.35.25.807.272 1.204.107.397-.165.71-.505.78-.929l.15-.894z"}),a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})])}function he(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.75 7.5l3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0021 18V6a2.25 2.25 0 00-2.25-2.25H5.25A2.25 2.25 0 003 6v12a2.25 2.25 0 002.25 2.25z"})])}function ve(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})])}function pe(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})])}function be(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 7.5h1.5m-1.5 3h1.5m-7.5 3h7.5m-7.5 3h7.5m3-9h3.375c.621 0 1.125.504 1.125 1.125V18a2.25 2.25 0 01-2.25 2.25M16.5 7.5V18a2.25 2.25 0 002.25 2.25M16.5 7.5V4.875c0-.621-.504-1.125-1.125-1.125H4.125C3.504 3.75 3 4.254 3 4.875V18a2.25 2.25 0 002.25 2.25h13.5M6 7.5h3v3H6v-3z"})])}function fe(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 3v11.25A2.25 2.25 0 006 16.5h2.25M3.75 3h-1.5m1.5 0h16.5m0 0h1.5m-1.5 0v11.25A2.25 2.25 0 0118 16.5h-2.25m-7.5 0h7.5m-7.5 0l-1 3m8.5-3l1 3m0 0l.5 1.5m-.5-1.5h-9.5m0 0l-.5 1.5m.75-9l3-3 2.148 2.148A12.061 12.061 0 0116.5 7.605"})])}function ge(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M5.25 14.25h13.5m-13.5 0a3 3 0 01-3-3m3 3a3 3 0 100 6h13.5a3 3 0 100-6m-16.5-3a3 3 0 013-3h13.5a3 3 0 013 3m-19.5 0a4.5 4.5 0 01.9-2.7L5.737 5.1a3.375 3.375 0 012.7-1.35h7.126c1.062 0 2.062.5 2.7 1.35l2.587 3.45a4.5 4.5 0 01.9 2.7m0 0a3 3 0 01-3 3m0 3h.008v.008h-.008v-.008zm0-6h.008v.008h-.008v-.008zm-3 6h.008v.008h-.008v-.008zm0-6h.008v.008h-.008v-.008z"})])}function we(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.5 18.75h-9m9 0a3 3 0 013 3h-15a3 3 0 013-3m9 0v-3.375c0-.621-.503-1.125-1.125-1.125h-.871M7.5 18.75v-3.375c0-.621.504-1.125 1.125-1.125h.872m5.007 0H9.497m5.007 0a7.454 7.454 0 01-.982-3.172M9.497 14.25a7.454 7.454 0 00.981-3.172M5.25 4.236c-.982.143-1.954.317-2.916.52A6.003 6.003 0 007.73 9.728M5.25 4.236V4.5c0 2.108.966 3.99 2.48 5.228M5.25 4.236V2.721C7.456 2.41 9.71 2.25 12 2.25c2.291 0 4.545.16 6.75.47v1.516M7.73 9.728a6.726 6.726 0 002.748 1.35m8.272-6.842V4.5c0 2.108-.966 3.99-2.48 5.228m2.48-5.492a46.32 46.32 0 012.916.52 6.003 6.003 0 01-5.395 4.972m0 0a6.726 6.726 0 01-2.749 1.35m0 0a6.772 6.772 0 01-3.044 0"})])}function xe(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z"})])}var ke=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ke||{});let R=Symbol("DisclosureContext");function z(e){let r=E(R,null);if(r===null){let c=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(c,z),c}return r}let T=Symbol("DisclosurePanelContext");function ye(){return E(T,null)}let Me=$({name:"Disclosure",props:{as:{type:[Object,String],default:"template"},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:r,attrs:c}){let l=g(e.defaultOpen?0:1),t=g(null),u=g(null),s={buttonId:g(`headlessui-disclosure-button-${V()}`),panelId:g(`headlessui-disclosure-panel-${V()}`),disclosureState:l,panel:t,button:u,toggleDisclosure(){l.value=P(l.value,{0:1,1:0})},closeDisclosure(){l.value!==1&&(l.value=1)},close(i){s.closeDisclosure();let m=(()=>i?i instanceof HTMLElement?i:i.value instanceof HTMLElement?w(i):w(s.button):w(s.button))();m==null||m.focus()}};return O(R,s),re(y(()=>P(l.value,{0:B.Open,1:B.Closed}))),()=>{let{defaultOpen:i,...m}=e,h={open:l.value===0,close:s.close};return j({theirProps:m,ourProps:{},slot:h,slots:r,attrs:c,name:"Disclosure"})}}}),Ce=$({name:"DisclosureButton",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:r,slots:c,expose:l}){let t=z("DisclosureButton"),u=ye(),s=y(()=>u===null?!1:u.value===t.panelId.value);I(()=>{s.value||e.id!==null&&(t.buttonId.value=e.id)}),L(()=>{s.value||(t.buttonId.value=null)});let i=g(null);l({el:i,$el:i}),s.value||G(()=>{t.button.value=i.value});let m=ee(y(()=>({as:e.as,type:r.type})),i);function h(){var d;e.disabled||(s.value?(t.toggleDisclosure(),(d=w(t.button))==null||d.focus()):t.toggleDisclosure())}function M(d){var C;if(!e.disabled)if(s.value)switch(d.key){case x.Space:case x.Enter:d.preventDefault(),d.stopPropagation(),t.toggleDisclosure(),(C=w(t.button))==null||C.focus();break}else switch(d.key){case x.Space:case x.Enter:d.preventDefault(),d.stopPropagation(),t.toggleDisclosure();break}}function A(d){switch(d.key){case x.Space:d.preventDefault();break}}return()=>{var d;let C={open:t.disclosureState.value===0},{id:F,...U}=e,K=s.value?{ref:i,type:m.value,onClick:h,onKeydown:M}:{id:(d=t.buttonId.value)!=null?d:F,ref:i,type:m.value,"aria-expanded":t.disclosureState.value===0,"aria-controls":t.disclosureState.value===0||w(t.panel)?t.panelId.value:void 0,disabled:e.disabled?!0:void 0,onClick:h,onKeydown:M,onKeyup:A};return j({ourProps:K,theirProps:U,slot:C,attrs:r,slots:c,name:"DisclosureButton"})}}}),_e=$({name:"DisclosurePanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:r,slots:c,expose:l}){let t=z("DisclosurePanel");I(()=>{e.id!==null&&(t.panelId.value=e.id)}),L(()=>{t.panelId.value=null}),l({el:t.panel,$el:t.panel}),O(T,t.panelId);let u=te(),s=y(()=>u!==null?(u.value&B.Open)===B.Open:t.disclosureState.value===0);return()=>{var i;let m={open:t.disclosureState.value===0,close:t.close},{id:h,...M}=e,A={id:(i=t.panelId.value)!=null?i:h,ref:t.panel};return j({ourProps:A,theirProps:M,slot:m,attrs:r,slots:c,features:H.RenderStrategy|H.Static,visible:s.value,name:"DisclosurePanel"})}}});function Se(e,r){return n(),o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[a("path",{"fill-rule":"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z","clip-rule":"evenodd"})])}const Be={key:1},Ae={key:1,class:"flex-1"},De={__name:"SideNavItem",props:{item:Object,collapsed:Boolean},setup(e){const r=e,c=y(()=>{function l(t){return t.some(u=>u.active||l(u.children))}return l(r.item.children)});return(l,t)=>{const u=J("SideNavItem",!0);return!e.item.children.length&&e.item.visible?(n(),p(D(e.item.newtab?"a":f(X)),{key:0,class:v(["group flex w-full items-center rounded-md py-2 px-3 text-sm font-medium","hover:bg-gray-100 dark:hover:bg-gray-900",e.item.active?"text-gray-800 font-semibold dark:text-gray-200":"text-gray-600 dark:text-gray-400 font-medium"]),href:e.item.href,target:e.item.newtab?"_blank":null},{default:k(()=>[e.item.icon?(n(),p(D(e.item.icon),{key:0,class:v(["w-6 h-6 shrink-0 mr-2 group-hover:text-gray-600 dark:group-hover:text-gray-400",e.item.active?"text-gray-600 dark:text-gray-400":"text-gray-400 dark:text-gray-600"])},null,8,["class"])):b("",!0),e.collapsed?b("",!0):(n(),o("span",Be,_(l.__(e.item.label)),1))]),_:1},8,["class","href","target"])):e.item.children.length&&e.item.visible?(n(),p(f(Me),{key:1,"default-open":c.value},{default:k(({open:s})=>[S(f(Ce),{class:v(["group text-left flex w-full items-center rounded-md py-2 px-3 text-sm","hover:bg-gray-100 dark:hover:bg-gray-900",s?"font-semibold text-gray-800 dark:text-gray-200":"text-gray-600 dark:text-gray-400 font-medium"])},{default:k(()=>[e.item.icon?(n(),p(D(e.item.icon),{key:0,class:v(["w-6 h-6 shrink-0 mr-2 group-hover:text-gray-600 dark:group-hover:text-gray-400",s?"text-gray-600 dark:text-gray-400":"text-gray-400 dark:text-gray-600"])},null,8,["class"])):b("",!0),e.collapsed?b("",!0):(n(),o("span",Ae,_(l.__(e.item.label)),1)),e.collapsed?b("",!0):(n(),p(f(Se),{key:2,class:v(["w-6 h-6 shrink-0",s?"-rotate-180 text-gray-600 dark:text-gray-400":"text-gray-400 dark:text-gray-600"])},null,8,["class"]))]),_:2},1032,["class"]),e.collapsed?b("",!0):(n(),p(f(_e),{key:0,class:"ml-4"},{default:k(()=>[(n(!0),o(q,null,N(e.item.children,i=>(n(),p(u,{key:i.label,item:i},null,8,["item"]))),128))]),_:1}))]),_:1},8,["default-open"])):b("",!0)}}},$e={class:"h-screen overflow-y-auto"},je={class:"mt-2 px-2"},ze={key:0,class:"mt-10 text-xs text-center text-gray-600 dark:text-gray-500"},Ve={__name:"AdminSideMenu",props:{collapsed:Boolean},emits:["toggleCollapse"],setup(e){var u,s;const{canWild:r,hasRole:c,can:l}=ne(),t=[{label:"Dashboard",href:route("admin.dashboard"),active:route().current("admin.dashboard"),children:[],icon:pe,visible:!0},{label:"Servers",href:route("admin.server.index"),active:route().current("admin.server.*"),children:[],icon:ge,visible:r("servers")},{label:"Server Analytics",href:"#",active:route().current("admin.intel.server.*"),children:[{label:"Overview",href:route("admin.intel.server.index"),active:route().current("admin.intel.server.index"),children:[],icon:null,visible:r("server_intel")},{label:"Performance",href:route("admin.intel.server.performance"),active:route().current("admin.intel.server.performance"),children:[],icon:null,visible:r("server_intel")},{label:"Playerbase",href:route("admin.intel.server.playerbase"),active:route().current("admin.intel.server.playerbase"),children:[],icon:null,visible:r("server_intel")},{label:"Chatlog",href:route("admin.intel.server.chatlog"),active:route().current("admin.intel.server.chatlog"),children:[],icon:null,visible:r("server_intel")},{label:"Consolelog",href:route("admin.intel.server.consolelog"),active:route().current("admin.intel.server.consolelog"),children:[],icon:null,visible:r("server_intel")}],icon:fe,visible:r("server_intel")},{label:"Players",href:"#",active:route().current("admin.intel.player.*")||route().current("admin.rank.*"),children:[{label:"List Players",href:route("admin.intel.player.list"),active:route().current("admin.intel.player.list"),children:[],icon:null,visible:!0},{label:"Player Ranks",href:route("admin.rank.index"),active:route().current("admin.rank.*"),children:[],icon:null,visible:r("ranks")},{label:"Punishments",href:route("player.punishment.index"),active:route().current("player.punishment.index"),children:[],icon:null,visible:(s=(u=Y().props)==null?void 0:u.banwarden)==null?void 0:s.enabled}],icon:we,visible:!0},{label:"Users",href:"#",active:!1,children:[{label:"List Users",href:route("admin.user.index"),active:route().current("admin.user.*"),children:[],icon:null,visible:r("users")},{label:"Roles & Permissions",href:route("admin.role.index"),active:route().current("admin.role.*"),children:[],icon:null,visible:r("roles")},{label:"User Badges",href:route("admin.badge.index"),active:route().current("admin.badge.*"),children:[],icon:null,visible:r("badges")},{label:"Online Users",href:route("admin.session.index"),active:route().current("admin.session.*"),children:[],icon:null,visible:r("sessions")}],icon:xe,visible:!0},{label:"News",href:route("admin.news.index"),active:route().current("admin.news.*"),children:[],icon:be,visible:r("news")},{label:"Polls",href:route("admin.poll.index"),active:route().current("admin.poll.*"),children:[],icon:se,visible:r("polls")},{label:"Downloads",href:route("admin.download.index"),active:route().current("admin.download.*"),children:[],icon:le,visible:r("downloads")},{label:"Custom Pages",href:route("admin.custom-page.index"),active:route().current("admin.custom-page.*"),children:[],icon:ve,visible:r("custom_pages")},{label:"Ask DB",href:route("admin.ask-db.index"),active:route().current("admin.ask-db.*"),children:[],icon:ue,visible:r("ask_db")},{label:"Applicatons",active:!1,children:[{label:"List Application Forms",href:route("admin.recruitment.index"),active:route().current("admin.recruitment.index"),children:[],icon:null,visible:l("read recruitments")},{label:"Open Requests",href:route("admin.recruitment-submission.index-open"),active:route().current("admin.recruitment-submission.index-open"),children:[],icon:null,visible:l("read recruitment_submissions")},{label:"Closed Requests",href:route("admin.recruitment-submission.index-closed"),active:route().current("admin.recruitment-submission.index-closed"),children:[],icon:null,visible:l("read recruitment_submissions")}],icon:ae,visible:r("recruitments")||r("recruitment_submissions")},{label:"Custom Forms",active:!1,children:[{label:"List Forms",href:route("admin.custom-form.index"),active:route().current("admin.custom-form.index"),children:[],icon:null,visible:l("read custom_forms")},{label:"Submissions",href:route("admin.custom-form-submission.index"),active:route().current("admin.custom-form-submission.index"),children:[],icon:null,visible:l("read custom_form_submissions")},{label:"Archived Submissions",href:route("admin.custom-form-submission.index-archived"),active:route().current("admin.custom-form-submission.index-archived"),children:[],icon:null,visible:l("read custom_form_submissions")}],icon:de,visible:r("custom_forms")||r("custom_form_submissions")},{label:"Commands",active:!1,children:[{label:"Run Command",href:route("admin.command-queue.create"),active:route().current("admin.command-queue.create"),children:[],icon:null,visible:l("create command_queues")},{label:"Command History",href:route("admin.command-queue.index"),active:route().current("admin.command-queue.index"),children:[],icon:null,visible:l("read command_queues")}],icon:he,visible:r("command_queues")},{label:"Settings",href:"#",active:!1,children:[{label:"General",href:route("admin.setting.general.show"),active:route().current("admin.setting.general.show"),children:[],icon:null,visible:!0},{label:"Theme",href:route("admin.setting.theme.show"),active:route().current("admin.setting.theme.show"),children:[],icon:null,visible:!0},{label:"Plugin",href:route("admin.setting.plugin.show"),active:route().current("admin.setting.plugin.show"),children:[],icon:null,visible:!0},{label:"Player",href:route("admin.setting.player.show"),active:route().current("admin.setting.player.show"),children:[],icon:null,visible:!0},{label:"Navigation",href:route("admin.setting.navigation.show"),active:route().current("admin.setting.navigation.show"),children:[],icon:null,visible:!0},{label:"SEO",href:route("admin.setting.seo.show"),active:route().current("admin.setting.seo.show"),children:[],icon:null,visible:!0},{label:"Dangerzone",href:route("admin.setting.danger.show"),active:route().current("admin.setting.danger.show"),children:[],icon:null,visible:c("superadmin")}],icon:me,visible:r("settings")},{label:"Debug",href:"#",active:!1,children:[{label:"Failed Jobs",href:route("admin.failed-job.index"),active:route().current("admin.failed-job.index"),children:[],icon:null,visible:l("read failed_jobs")},{label:"Pulse",href:"/admin/pulse",active:!1,children:[],icon:null,visible:!0,newtab:!0},{label:"Telescope",href:"/telescope",active:!1,children:[],icon:null,visible:!0,newtab:!0}],icon:oe,visible:c("superadmin")}];return(i,m)=>(n(),o("div",{class:v(["min-h-screen fixed bg-white shadow dark:bg-cool-gray-800 z-10 duration-300",e.collapsed?"w-16":"w-64"])},[a("div",$e,[a("div",{class:v(["px-4 mt-2 flex",e.collapsed?"justify-center":"justify-end"])},[a("button",{onClick:m[0]||(m[0]=Z(h=>i.$emit("toggleCollapse"),["prevent"]))},[S(f(ce),{class:v(["h-6 w-6 p-0.5 text-gray-400 hover:text-gray-600 dark:text-gray-600 dark:hover:text-gray-400",e.collapsed?"-rotate-180":""])},null,8,["class"])])],2),a("nav",je,[(n(),o(q,null,N(t,h=>S(De,{key:h.label,item:h,collapsed:e.collapsed},null,8,["item","collapsed"])),64))]),e.collapsed?b("",!0):(n(),o("div",ze,_(i.__("Web Version:"))+" "+_(i.$page.props.webVersion||"unknown"),1))])],2))}},Ne={__name:"AdminLayout",setup(e){let r=ie("is-admin-sidebar-menu-collapsed",!1);function c(){r.value=!r.value}return(l,t)=>(n(),p(W,null,{default:k(()=>[S(Ve,{collapsed:f(r),onToggleCollapse:c},null,8,["collapsed"]),a("main",{class:v([f(r)?"ml-16":"ml-64"])},[Q(l.$slots,"default")],2)]),_:3}))}};export{Ne as _,ge as a,xe as r}; diff --git a/public/build/default/assets/AfterCreateSteps-e227cab8.js b/public/build/default/assets/AfterCreateSteps-ec0a554c.js similarity index 86% rename from public/build/default/assets/AfterCreateSteps-e227cab8.js rename to public/build/default/assets/AfterCreateSteps-ec0a554c.js index db281dfc3..64b84f4f5 100644 --- a/public/build/default/assets/AfterCreateSteps-e227cab8.js +++ b/public/build/default/assets/AfterCreateSteps-ec0a554c.js @@ -1,4 +1,4 @@ -import{_ as p}from"./AdminLayout-d79c45db.js";import{o as l,d as c,a as e,l as n,c as h,w as i,b as a,u as _,t,f as s}from"./app-baae6499.js";import"./AppLayout-6edbf3df.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./Icon-51173a24.js";import"./useAuthorizable-f632635d.js";import"./use-resolve-button-type-957bab96.js";import"./open-closed-ee868aaf.js";import"./CloudArrowDownIcon-db3b0419.js";import"./index-b1383bad.js";function f(o,r){return l(),c("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}const g={class:"py-12 px-10 max-w-4xl mx-auto"},m={class:"bg-white shadow rounded p-6 dark:bg-gray-800"},y={class:"flex flex-col items-center justify-center"},v={class:"text-2xl font-bold text-green-500"},w={class:"uppercase font-bold mt-3 dark:text-gray-200 text-gray-800"},b={class:"flex flex-col space-y-4 mt-6 prose-lg prose dark:prose-dark"},x={target:"_blank",class:"text-light-blue-400 hover:text-light-blue-600 whitespace-nowrap",href:"https://github.com/MineTrax/plugin/releases/latest"},k=e("kbd",null,"plugins/Minetrax/config.yml",-1),S=e("br",null,null,-1),q={class:"dark:bg-gray-900"},C={class:"flex justify-end mt-4"},K={__name:"AfterCreateSteps",props:{server:{type:Object,required:!0},apiKey:{type:String,required:!0},apiSecret:{type:String,required:!0},apiHost:{type:String,required:!0}},setup(o){return(r,j)=>{const d=n("app-head"),u=n("InertiaLink");return l(),h(p,null,{default:i(()=>[a(d,{title:r.__("Server Created Successfully!")},null,8,["title"]),e("div",g,[e("div",m,[e("div",y,[a(_(f),{class:"h-32 text-green-500","aria-hidden":"true"}),e("h1",v,t(r.__("Server Added Successfully!")),1),e("h1",w,t(r.__("Follow below steps to add the Plugin!")),1)]),e("div",b,[e("p",null,[s(t(r.__("Download latest version of the MineTrax.jar Plugin and upload it into 'plugins' folder of your server."))+" ",1),e("a",x,t(r.__("Click here to Download")),1)]),e("p",null,[s(t(r.__("Restart your server once so that the plugin can generate the config file inside"))+" ",1),k,s(". ")]),S,e("p",null,[s(t(r.__("Open the config file and update the following details in it as provided below"))+": ",1),e("pre",q,`enabled: true +import{_ as p}from"./AdminLayout-5df346fb.js";import{o as l,d as c,a as e,l as n,c as h,w as i,b as a,u as _,t,f as s}from"./app-b56afa57.js";import"./AppLayout-9dd9991d.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./Icon-c6b983eb.js";import"./useAuthorizable-94e7d830.js";import"./use-resolve-button-type-9e76052c.js";import"./open-closed-65012d7e.js";import"./CloudArrowDownIcon-ce7a9066.js";import"./index-0d4d23a0.js";function f(o,r){return l(),c("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}const g={class:"py-12 px-10 max-w-4xl mx-auto"},m={class:"bg-white shadow rounded p-6 dark:bg-gray-800"},y={class:"flex flex-col items-center justify-center"},v={class:"text-2xl font-bold text-green-500"},w={class:"uppercase font-bold mt-3 dark:text-gray-200 text-gray-800"},b={class:"flex flex-col space-y-4 mt-6 prose-lg prose dark:prose-dark"},x={target:"_blank",class:"text-light-blue-400 hover:text-light-blue-600 whitespace-nowrap",href:"https://github.com/MineTrax/plugin/releases/latest"},k=e("kbd",null,"plugins/Minetrax/config.yml",-1),S=e("br",null,null,-1),q={class:"dark:bg-gray-900"},C={class:"flex justify-end mt-4"},K={__name:"AfterCreateSteps",props:{server:{type:Object,required:!0},apiKey:{type:String,required:!0},apiSecret:{type:String,required:!0},apiHost:{type:String,required:!0}},setup(o){return(r,j)=>{const d=n("app-head"),u=n("InertiaLink");return l(),h(p,null,{default:i(()=>[a(d,{title:r.__("Server Created Successfully!")},null,8,["title"]),e("div",g,[e("div",m,[e("div",y,[a(_(f),{class:"h-32 text-green-500","aria-hidden":"true"}),e("h1",v,t(r.__("Server Added Successfully!")),1),e("h1",w,t(r.__("Follow below steps to add the Plugin!")),1)]),e("div",b,[e("p",null,[s(t(r.__("Download latest version of the MineTrax.jar Plugin and upload it into 'plugins' folder of your server."))+" ",1),e("a",x,t(r.__("Click here to Download")),1)]),e("p",null,[s(t(r.__("Restart your server once so that the plugin can generate the config file inside"))+" ",1),k,s(". ")]),S,e("p",null,[s(t(r.__("Open the config file and update the following details in it as provided below"))+": ",1),e("pre",q,`enabled: true api-host: `+t(o.apiHost)+` api-key: `+t(o.apiKey)+` api-secret: `+t(o.apiSecret)+` diff --git a/public/build/default/assets/AlertCard-c9393c92.js b/public/build/default/assets/AlertCard-bdb62b63.js similarity index 90% rename from public/build/default/assets/AlertCard-c9393c92.js rename to public/build/default/assets/AlertCard-bdb62b63.js index 92c223590..6fdbec02a 100644 --- a/public/build/default/assets/AlertCard-c9393c92.js +++ b/public/build/default/assets/AlertCard-bdb62b63.js @@ -1 +1 @@ -import{r as n}from"./XMarkIcon-8be5cb6c.js";import{o as s,d as r,a as e,R as l,n as a,b as i,u as c,e as g}from"./app-baae6499.js";const u={class:"flex"},b={class:"py-1"},m=e("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM9 11V9h2v6H9v-4zm0-6h2v2H9V5z"},null,-1),h=[m],v={class:"font-bold"},f={class:"text-sm"},w={__name:"AlertCard",props:{borderColor:{type:String,default:"border-green-500"},textColor:{type:String,default:"text-green-500"},titleClass:{type:String,default:""},closeButton:{type:Boolean,default:!1}},emits:["close"],setup(t){return(o,d)=>(s(),r("div",{class:a(`mb-4 bg-white dark:bg-cool-gray-800 border-t-4 ${t.borderColor} rounded-b ${t.textColor} px-4 py-3 shadow relative`),role:"alert"},[e("div",u,[e("div",b,[l(o.$slots,"icon",{},()=>[(s(),r("svg",{class:a(`fill-current h-6 w-6 ${t.textColor} mr-4`),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},h,2))])]),e("div",{class:a(t.titleClass)},[e("div",v,[l(o.$slots,"default")]),e("div",f,[l(o.$slots,"body")])],2)]),t.closeButton?(s(),r("button",{key:0,class:"absolute rounded-full bg-white dark:bg-gray-800 border dark:border-gray-900 dark:hover:bg-gray-700 hover:bg-gray-100 p-1 -top-5 -right-3",onClick:d[0]||(d[0]=y=>o.$emit("close"))},[i(c(n),{class:"h-5 w-5"})])):g("",!0)],2))}};export{w as _}; +import{r as n}from"./XMarkIcon-2ab1c8ef.js";import{o as s,d as r,a as e,R as l,n as a,b as i,u as c,e as g}from"./app-b56afa57.js";const u={class:"flex"},b={class:"py-1"},m=e("path",{d:"M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM9 11V9h2v6H9v-4zm0-6h2v2H9V5z"},null,-1),h=[m],v={class:"font-bold"},f={class:"text-sm"},w={__name:"AlertCard",props:{borderColor:{type:String,default:"border-green-500"},textColor:{type:String,default:"text-green-500"},titleClass:{type:String,default:""},closeButton:{type:Boolean,default:!1}},emits:["close"],setup(t){return(o,d)=>(s(),r("div",{class:a(`mb-4 bg-white dark:bg-cool-gray-800 border-t-4 ${t.borderColor} rounded-b ${t.textColor} px-4 py-3 shadow relative`),role:"alert"},[e("div",u,[e("div",b,[l(o.$slots,"icon",{},()=>[(s(),r("svg",{class:a(`fill-current h-6 w-6 ${t.textColor} mr-4`),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},h,2))])]),e("div",{class:a(t.titleClass)},[e("div",v,[l(o.$slots,"default")]),e("div",f,[l(o.$slots,"body")])],2)]),t.closeButton?(s(),r("button",{key:0,class:"absolute rounded-full bg-white dark:bg-gray-800 border dark:border-gray-900 dark:hover:bg-gray-700 hover:bg-gray-100 p-1 -top-5 -right-3",onClick:d[0]||(d[0]=y=>o.$emit("close"))},[i(c(n),{class:"h-5 w-5"})])):g("",!0)],2))}};export{w as _}; diff --git a/public/build/default/assets/ApiTokenManager-1bbb5f6e.js b/public/build/default/assets/ApiTokenManager-6da61d7c.js similarity index 85% rename from public/build/default/assets/ApiTokenManager-1bbb5f6e.js rename to public/build/default/assets/ApiTokenManager-6da61d7c.js index beac7c4fc..f8f519b0e 100644 --- a/public/build/default/assets/ApiTokenManager-1bbb5f6e.js +++ b/public/build/default/assets/ApiTokenManager-6da61d7c.js @@ -1 +1 @@ -import{T as h,r as b,o as i,d as r,b as t,w as e,a,e as v,f as n,u as l,F as $,g as x,n as A,t as k}from"./app-baae6499.js";import{_ as N}from"./ActionMessage-51905416.js";import{_ as j}from"./ActionSection-19441b14.js";import{_ as P}from"./Button-930b37e5.js";import{_ as U}from"./ConfirmationModal-c1d3a29c.js";import{_ as J}from"./DangerButton-d26c2190.js";import{_ as T}from"./DialogModal-aceecf27.js";import{_ as L}from"./FormSection-ce4fe175.js";import{_ as M}from"./Input-eeec398a.js";import{_ as w}from"./Checkbox-95fc13e4.js";import{_ as z}from"./InputError-0f9066f5.js";import{_ as S}from"./Label-3b178ab9.js";import{_ as C}from"./SecondaryButton-ef45fb59.js";import{J as E}from"./SectionBorder-ecaab741.js";import"./SectionTitle-509a6aac.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./Modal-8088ecaa.js";const Y={class:"col-span-6 sm:col-span-4"},q={key:0,class:"col-span-6"},G={class:"mt-2 grid grid-cols-1 md:grid-cols-2 gap-4"},H={class:"flex items-center"},K={class:"ml-2 text-sm text-gray-600"},O={key:0},Q={class:"mt-10 sm:mt-0"},R={class:"space-y-6"},W={class:"flex items-center"},X={key:0,class:"text-sm text-gray-400"},Z=["onClick"],ee=["onClick"],se=a("div",null," Please copy your new API token. For your security, it won't be shown again. ",-1),te={key:0,class:"mt-4 bg-gray-100 px-4 py-2 rounded font-mono text-sm text-gray-500"},oe={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},ne={class:"flex items-center"},le={class:"ml-2 text-sm text-gray-600"},Ae={__name:"ApiTokenManager",props:{tokens:Array,availablePermissions:Array,defaultPermissions:Array},setup(c){const m=h({name:"",permissions:c.defaultPermissions}),d=h({permissions:[]}),y=h({}),g=b(!1),p=b(null),f=b(null),I=()=>{m.post(route("api-tokens.store"),{preserveScroll:!0,onSuccess:()=>{g.value=!0,m.reset()}})},F=u=>{d.permissions=u.abilities,p.value=u},V=()=>{d.put(route("api-tokens.update",p.value),{preserveScroll:!0,preserveState:!0,onSuccess:()=>p.value=null})},D=u=>{f.value=u},B=()=>{y.delete(route("api-tokens.destroy",f.value),{preserveScroll:!0,preserveState:!0,onSuccess:()=>f.value=null})};return(u,o)=>(i(),r("div",null,[t(L,{onSubmitted:I},{title:e(()=>[n(" Create API Token ")]),description:e(()=>[n(" API tokens allow third-party services to authenticate with our application on your behalf. ")]),form:e(()=>[a("div",Y,[t(S,{for:"name",value:"Name"}),t(M,{id:"name",modelValue:l(m).name,"onUpdate:modelValue":o[0]||(o[0]=s=>l(m).name=s),type:"text",class:"mt-1 block w-full",autofocus:""},null,8,["modelValue"]),t(z,{message:l(m).errors.name,class:"mt-2"},null,8,["message"])]),c.availablePermissions.length>0?(i(),r("div",q,[t(S,{for:"permissions",value:"Permissions"}),a("div",G,[(i(!0),r($,null,x(c.availablePermissions,s=>(i(),r("div",{key:s},[a("label",H,[t(w,{checked:l(m).permissions,"onUpdate:checked":o[1]||(o[1]=_=>l(m).permissions=_),value:s},null,8,["checked","value"]),a("span",K,k(s),1)])]))),128))])])):v("",!0)]),actions:e(()=>[t(N,{on:l(m).recentlySuccessful,class:"mr-3"},{default:e(()=>[n(" Created. ")]),_:1},8,["on"]),t(P,{class:A({"opacity-25":l(m).processing}),disabled:l(m).processing},{default:e(()=>[n(" Create ")]),_:1},8,["class","disabled"])]),_:1}),c.tokens.length>0?(i(),r("div",O,[t(E),a("div",Q,[t(j,null,{title:e(()=>[n(" Manage API Tokens ")]),description:e(()=>[n(" You may delete any of your existing tokens if they are no longer needed. ")]),content:e(()=>[a("div",R,[(i(!0),r($,null,x(c.tokens,s=>(i(),r("div",{key:s.id,class:"flex items-center justify-between"},[a("div",null,k(s.name),1),a("div",W,[s.last_used_ago?(i(),r("div",X," Last used "+k(s.last_used_ago),1)):v("",!0),c.availablePermissions.length>0?(i(),r("button",{key:1,class:"cursor-pointer ml-6 text-sm text-gray-400 underline",onClick:_=>F(s)}," Permissions ",8,Z)):v("",!0),a("button",{class:"cursor-pointer ml-6 text-sm text-red-500",onClick:_=>D(s)}," Delete ",8,ee)])]))),128))])]),_:1})])])):v("",!0),t(T,{show:g.value,onClose:o[3]||(o[3]=s=>g.value=!1)},{title:e(()=>[n(" API Token ")]),content:e(()=>[se,u.$page.props.jetstream.flash.token?(i(),r("div",te,k(u.$page.props.jetstream.flash.token),1)):v("",!0)]),footer:e(()=>[t(C,{onClick:o[2]||(o[2]=s=>g.value=!1)},{default:e(()=>[n(" Close ")]),_:1})]),_:1},8,["show"]),t(T,{show:p.value!=null,onClose:o[6]||(o[6]=s=>p.value=null)},{title:e(()=>[n(" API Token Permissions ")]),content:e(()=>[a("div",oe,[(i(!0),r($,null,x(c.availablePermissions,s=>(i(),r("div",{key:s},[a("label",ne,[t(w,{checked:l(d).permissions,"onUpdate:checked":o[4]||(o[4]=_=>l(d).permissions=_),value:s},null,8,["checked","value"]),a("span",le,k(s),1)])]))),128))])]),footer:e(()=>[t(C,{onClick:o[5]||(o[5]=s=>p.value=null)},{default:e(()=>[n(" Cancel ")]),_:1}),t(P,{class:A(["ml-3",{"opacity-25":l(d).processing}]),disabled:l(d).processing,onClick:V},{default:e(()=>[n(" Save ")]),_:1},8,["class","disabled"])]),_:1},8,["show"]),t(U,{show:f.value!=null,onClose:o[8]||(o[8]=s=>f.value=null)},{title:e(()=>[n(" Delete API Token ")]),content:e(()=>[n(" Are you sure you would like to delete this API token? ")]),footer:e(()=>[t(C,{onClick:o[7]||(o[7]=s=>f.value=null)},{default:e(()=>[n(" Cancel ")]),_:1}),t(J,{class:A(["ml-3",{"opacity-25":l(y).processing}]),disabled:l(y).processing,onClick:B},{default:e(()=>[n(" Delete ")]),_:1},8,["class","disabled"])]),_:1},8,["show"])]))}};export{Ae as default}; +import{T as h,r as b,o as i,d as r,b as t,w as e,a,e as v,f as n,u as l,F as $,g as x,n as A,t as k}from"./app-b56afa57.js";import{_ as N}from"./ActionMessage-996676ab.js";import{_ as j}from"./ActionSection-9dac4615.js";import{_ as P}from"./Button-222a012d.js";import{_ as U}from"./ConfirmationModal-1a9c186e.js";import{_ as J}from"./DangerButton-05bf6fcf.js";import{_ as T}from"./DialogModal-f103df3f.js";import{_ as L}from"./FormSection-262c44f6.js";import{_ as M}from"./Input-80baf30b.js";import{_ as w}from"./Checkbox-6d245cb1.js";import{_ as z}from"./InputError-c9da7e14.js";import{_ as S}from"./Label-2875b33b.js";import{_ as C}from"./SecondaryButton-eeafe46e.js";import{J as E}from"./SectionBorder-3ed4f071.js";import"./SectionTitle-47ee3556.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./Modal-99e63812.js";const Y={class:"col-span-6 sm:col-span-4"},q={key:0,class:"col-span-6"},G={class:"mt-2 grid grid-cols-1 md:grid-cols-2 gap-4"},H={class:"flex items-center"},K={class:"ml-2 text-sm text-gray-600"},O={key:0},Q={class:"mt-10 sm:mt-0"},R={class:"space-y-6"},W={class:"flex items-center"},X={key:0,class:"text-sm text-gray-400"},Z=["onClick"],ee=["onClick"],se=a("div",null," Please copy your new API token. For your security, it won't be shown again. ",-1),te={key:0,class:"mt-4 bg-gray-100 px-4 py-2 rounded font-mono text-sm text-gray-500"},oe={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},ne={class:"flex items-center"},le={class:"ml-2 text-sm text-gray-600"},Ae={__name:"ApiTokenManager",props:{tokens:Array,availablePermissions:Array,defaultPermissions:Array},setup(c){const m=h({name:"",permissions:c.defaultPermissions}),d=h({permissions:[]}),y=h({}),g=b(!1),p=b(null),f=b(null),I=()=>{m.post(route("api-tokens.store"),{preserveScroll:!0,onSuccess:()=>{g.value=!0,m.reset()}})},F=u=>{d.permissions=u.abilities,p.value=u},V=()=>{d.put(route("api-tokens.update",p.value),{preserveScroll:!0,preserveState:!0,onSuccess:()=>p.value=null})},D=u=>{f.value=u},B=()=>{y.delete(route("api-tokens.destroy",f.value),{preserveScroll:!0,preserveState:!0,onSuccess:()=>f.value=null})};return(u,o)=>(i(),r("div",null,[t(L,{onSubmitted:I},{title:e(()=>[n(" Create API Token ")]),description:e(()=>[n(" API tokens allow third-party services to authenticate with our application on your behalf. ")]),form:e(()=>[a("div",Y,[t(S,{for:"name",value:"Name"}),t(M,{id:"name",modelValue:l(m).name,"onUpdate:modelValue":o[0]||(o[0]=s=>l(m).name=s),type:"text",class:"mt-1 block w-full",autofocus:""},null,8,["modelValue"]),t(z,{message:l(m).errors.name,class:"mt-2"},null,8,["message"])]),c.availablePermissions.length>0?(i(),r("div",q,[t(S,{for:"permissions",value:"Permissions"}),a("div",G,[(i(!0),r($,null,x(c.availablePermissions,s=>(i(),r("div",{key:s},[a("label",H,[t(w,{checked:l(m).permissions,"onUpdate:checked":o[1]||(o[1]=_=>l(m).permissions=_),value:s},null,8,["checked","value"]),a("span",K,k(s),1)])]))),128))])])):v("",!0)]),actions:e(()=>[t(N,{on:l(m).recentlySuccessful,class:"mr-3"},{default:e(()=>[n(" Created. ")]),_:1},8,["on"]),t(P,{class:A({"opacity-25":l(m).processing}),disabled:l(m).processing},{default:e(()=>[n(" Create ")]),_:1},8,["class","disabled"])]),_:1}),c.tokens.length>0?(i(),r("div",O,[t(E),a("div",Q,[t(j,null,{title:e(()=>[n(" Manage API Tokens ")]),description:e(()=>[n(" You may delete any of your existing tokens if they are no longer needed. ")]),content:e(()=>[a("div",R,[(i(!0),r($,null,x(c.tokens,s=>(i(),r("div",{key:s.id,class:"flex items-center justify-between"},[a("div",null,k(s.name),1),a("div",W,[s.last_used_ago?(i(),r("div",X," Last used "+k(s.last_used_ago),1)):v("",!0),c.availablePermissions.length>0?(i(),r("button",{key:1,class:"cursor-pointer ml-6 text-sm text-gray-400 underline",onClick:_=>F(s)}," Permissions ",8,Z)):v("",!0),a("button",{class:"cursor-pointer ml-6 text-sm text-red-500",onClick:_=>D(s)}," Delete ",8,ee)])]))),128))])]),_:1})])])):v("",!0),t(T,{show:g.value,onClose:o[3]||(o[3]=s=>g.value=!1)},{title:e(()=>[n(" API Token ")]),content:e(()=>[se,u.$page.props.jetstream.flash.token?(i(),r("div",te,k(u.$page.props.jetstream.flash.token),1)):v("",!0)]),footer:e(()=>[t(C,{onClick:o[2]||(o[2]=s=>g.value=!1)},{default:e(()=>[n(" Close ")]),_:1})]),_:1},8,["show"]),t(T,{show:p.value!=null,onClose:o[6]||(o[6]=s=>p.value=null)},{title:e(()=>[n(" API Token Permissions ")]),content:e(()=>[a("div",oe,[(i(!0),r($,null,x(c.availablePermissions,s=>(i(),r("div",{key:s},[a("label",ne,[t(w,{checked:l(d).permissions,"onUpdate:checked":o[4]||(o[4]=_=>l(d).permissions=_),value:s},null,8,["checked","value"]),a("span",le,k(s),1)])]))),128))])]),footer:e(()=>[t(C,{onClick:o[5]||(o[5]=s=>p.value=null)},{default:e(()=>[n(" Cancel ")]),_:1}),t(P,{class:A(["ml-3",{"opacity-25":l(d).processing}]),disabled:l(d).processing,onClick:V},{default:e(()=>[n(" Save ")]),_:1},8,["class","disabled"])]),_:1},8,["show"]),t(U,{show:f.value!=null,onClose:o[8]||(o[8]=s=>f.value=null)},{title:e(()=>[n(" Delete API Token ")]),content:e(()=>[n(" Are you sure you would like to delete this API token? ")]),footer:e(()=>[t(C,{onClick:o[7]||(o[7]=s=>f.value=null)},{default:e(()=>[n(" Cancel ")]),_:1}),t(J,{class:A(["ml-3",{"opacity-25":l(y).processing}]),disabled:l(y).processing,onClick:B},{default:e(()=>[n(" Delete ")]),_:1},8,["class","disabled"])]),_:1},8,["show"])]))}};export{Ae as default}; diff --git a/public/build/default/assets/AppLayout-6edbf3df.js b/public/build/default/assets/AppLayout-9dd9991d.js similarity index 99% rename from public/build/default/assets/AppLayout-6edbf3df.js rename to public/build/default/assets/AppLayout-9dd9991d.js index 856cbd46e..3c300d81d 100644 --- a/public/build/default/assets/AppLayout-6edbf3df.js +++ b/public/build/default/assets/AppLayout-9dd9991d.js @@ -1,4 +1,4 @@ -import{r as jr,x as je,S as Be,E as uu,o as g,d as w,n as te,a as f,e as W,t as k,i as Xa,l as B,R as Ce,c as X,w as F,U as it,q as Ba,j as De,v as du,b as _,F as ue,g as we,m as pt,A as _o,B as lu,J as Dn,u as D,V as mu,f as V,T as cu,_ as hu}from"./app-baae6499.js";import{_ as Se}from"./_plugin-vue_export-helper-c27b6911.js";import{I as q}from"./Icon-51173a24.js";import{u as fu}from"./useAuthorizable-f632635d.js";const vu={class:"max-w-screen-xl mx-auto py-2 px-3 sm:px-6 lg:px-8"},gu={class:"flex items-center justify-between flex-wrap"},pu={class:"w-0 flex-1 flex items-center min-w-0"},bu={key:0,class:"h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},yu=f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),wu=[yu],$u={key:1,class:"h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},Pu=f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"},null,-1),ku=[Pu],Mu={class:"ml-3 font-medium text-sm text-white truncate"},Wu={class:"shrink-0 sm:ml-3"},xu=f("svg",{class:"h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1),_u=[xu],Du={__name:"Banner",setup(a){const e=jr(!0),t=je(()=>{var n;return((n=Be().props.jetstream.flash)==null?void 0:n.bannerStyle)||"success"}),r=je(()=>{var n;return((n=Be().props.jetstream.flash)==null?void 0:n.banner)||""});return uu(r,async()=>{e.value=!0}),(n,i)=>(g(),w("div",null,[e.value&&r.value?(g(),w("div",{key:0,class:te({"bg-indigo-500":t.value=="success","bg-red-700":t.value=="danger"})},[f("div",vu,[f("div",gu,[f("div",pu,[f("span",{class:te(["flex p-2 rounded-lg",{"bg-indigo-600":t.value=="success","bg-red-600":t.value=="danger"}])},[t.value=="success"?(g(),w("svg",bu,wu)):W("",!0),t.value=="danger"?(g(),w("svg",$u,ku)):W("",!0)],2),f("p",Mu,k(r.value),1)]),f("div",Wu,[f("button",{type:"button",class:te(["-mr-1 flex p-2 rounded-md focus:outline-none sm:-mr-2 transition",{"hover:bg-indigo-600 focus:bg-indigo-600":t.value=="success","hover:bg-red-600 focus:bg-red-600":t.value=="danger"}]),"aria-label":"Dismiss",onClick:i[0]||(i[0]=Xa(u=>e.value=!1,["prevent"]))},_u,2)])])])],2)):W("",!0)]))}},Cu={props:{toast:Object,popstate:String},data(){return{milliseconds:this.toast&&this.toast.milliseconds?this.toast.milliseconds:3e3,id:null}},watch:{toast:{deep:!0,handler(a,e){this.fireToast()}}},mounted(){this.fireToast()},methods:{fireToast(){if(!this.toast||sessionStorage.getItem("toast-"+this.popstate))return;this.milliseconds=this.toast.milliseconds??3e3;const a=this.toast.type==="danger"?"error":this.toast.type;Toast.fire({icon:a,title:this.toast.title,text:this.toast.body,timer:this.milliseconds}),sessionStorage.setItem("toast-"+this.popstate,"1")}}};function Tu(a,e,t,r,n,i){return null}const ju=Se(Cu,[["render",Tu]]),Au=["href"],Do={__name:"ResponsiveNavLink",props:{active:Boolean,href:String,as:String,openInNewTab:{type:Boolean,default:!1}},setup(a){const e=a,t=je(()=>e.active?"block pl-3 pr-4 py-2 border-l-4 border-light-blue-400 text-base font-medium text-light-blue-700 bg-light-blue-50 dark:bg-cool-gray-900 focus:outline-none focus:text-light-blue-800 focus:bg-light-blue-100 dark:focus:bg-cool-gray-900 focus:border-light-blue-700 transition duration-150 ease-in-out":"block pl-3 pr-4 py-2 border-l-4 border-transparent text-base font-medium text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-gray-200 hover:bg-gray-50 dark:hover:bg-cool-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-800 dark:focus:text-gray-200 focus:bg-gray-50 dark:focus:bg-cool-gray-900 focus:border-gray-300 transition duration-150 ease-in-out");return(r,n)=>{const i=B("InertiaLink");return g(),w("div",null,[a.as=="button"?(g(),w("button",{key:0,class:te([t.value,"w-full text-left"])},[Ce(r.$slots,"default")],2)):a.as!="button"&&!a.openInNewTab?(g(),X(i,{key:1,href:a.href,class:te(t.value)},{default:F(()=>[Ce(r.$slots,"default")]),_:3},8,["href","class"])):(g(),w("a",{key:2,target:"_blank",href:a.href,class:te(t.value)},[Ce(r.$slots,"default")],10,Au))])}}};var Su=/\s/;function zu(a){for(var e=a.length;e--&&Su.test(a.charAt(e)););return e}var Eu=zu,Nu=Eu,Fu=/^\s+/;function Ru(a){return a&&a.slice(0,Nu(a)+1).replace(Fu,"")}var Lu=Ru;function Hu(a){var e=typeof a;return a!=null&&(e=="object"||e=="function")}var Ze=Hu,Ou=typeof it=="object"&&it&&it.Object===Object&&it,Co=Ou,Vu=Co,Iu=typeof self=="object"&&self&&self.Object===Object&&self,Xu=Vu||Iu||Function("return this")(),xe=Xu,Bu=xe,Gu=Bu.Symbol,Ga=Gu,Cn=Ga,To=Object.prototype,qu=To.hasOwnProperty,Yu=To.toString,za=Cn?Cn.toStringTag:void 0;function Uu(a){var e=qu.call(a,za),t=a[za];try{a[za]=void 0;var r=!0}catch{}var n=Yu.call(a);return r&&(e?a[za]=t:delete a[za]),n}var Qu=Uu,Ku=Object.prototype,Ju=Ku.toString;function Zu(a){return Ju.call(a)}var ed=Zu,Tn=Ga,ad=Qu,td=ed,rd="[object Null]",nd="[object Undefined]",jn=Tn?Tn.toStringTag:void 0;function id(a){return a==null?a===void 0?nd:rd:jn&&jn in Object(a)?ad(a):td(a)}var qa=id;function od(a){return a!=null&&typeof a=="object"}var Pa=od,sd=qa,ud=Pa,dd="[object Symbol]";function ld(a){return typeof a=="symbol"||ud(a)&&sd(a)==dd}var Dt=ld,md=Lu,An=Ze,cd=Dt,Sn=0/0,hd=/^[-+]0x[0-9a-f]+$/i,fd=/^0b[01]+$/i,vd=/^0o[0-7]+$/i,gd=parseInt;function pd(a){if(typeof a=="number")return a;if(cd(a))return Sn;if(An(a)){var e=typeof a.valueOf=="function"?a.valueOf():a;a=An(e)?e+"":e}if(typeof a!="string")return a===0?a:+a;a=md(a);var t=fd.test(a);return t||vd.test(a)?gd(a.slice(2),t?2:8):hd.test(a)?Sn:+a}var Ar=pd,bd=Ar,zn=1/0,yd=17976931348623157e292;function wd(a){if(!a)return a===0?a:0;if(a=bd(a),a===zn||a===-zn){var e=a<0?-1:1;return e*yd}return a===a?a:0}var $d=wd,Pd=$d;function kd(a){var e=Pd(a),t=e%1;return e===e?t?e-t:e:0}var Ya=kd,Md=Ya,Wd="Expected a function";function xd(a,e){if(typeof e!="function")throw new TypeError(Wd);return a=Md(a),function(){if(--a<1)return e.apply(this,arguments)}}var _d=xd;function Dd(a){return a}var Ua=Dd,Cd=qa,Td=Ze,jd="[object AsyncFunction]",Ad="[object Function]",Sd="[object GeneratorFunction]",zd="[object Proxy]";function Ed(a){if(!Td(a))return!1;var e=Cd(a);return e==Ad||e==Sd||e==jd||e==zd}var jo=Ed,Nd=xe,Fd=Nd["__core-js_shared__"],Rd=Fd,Ut=Rd,En=function(){var a=/[^.]+$/.exec(Ut&&Ut.keys&&Ut.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}();function Ld(a){return!!En&&En in a}var Hd=Ld,Od=Function.prototype,Vd=Od.toString;function Id(a){if(a!=null){try{return Vd.call(a)}catch{}try{return a+""}catch{}}return""}var Ao=Id,Xd=jo,Bd=Hd,Gd=Ze,qd=Ao,Yd=/[\\^$.*+?()[\]{}|]/g,Ud=/^\[object .+?Constructor\]$/,Qd=Function.prototype,Kd=Object.prototype,Jd=Qd.toString,Zd=Kd.hasOwnProperty,el=RegExp("^"+Jd.call(Zd).replace(Yd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function al(a){if(!Gd(a)||Bd(a))return!1;var e=Xd(a)?el:Ud;return e.test(qd(a))}var tl=al;function rl(a,e){return a==null?void 0:a[e]}var nl=rl,il=tl,ol=nl;function sl(a,e){var t=ol(a,e);return il(t)?t:void 0}var ma=sl,ul=ma,dl=xe,ll=ul(dl,"WeakMap"),So=ll,Nn=So,ml=Nn&&new Nn,zo=ml,cl=Ua,Fn=zo,hl=Fn?function(a,e){return Fn.set(a,e),a}:cl,Eo=hl,fl=Ze,Rn=Object.create,vl=function(){function a(){}return function(e){if(!fl(e))return{};if(Rn)return Rn(e);a.prototype=e;var t=new a;return a.prototype=void 0,t}}(),Sr=vl,gl=Sr,pl=Ze;function bl(a){return function(){var e=arguments;switch(e.length){case 0:return new a;case 1:return new a(e[0]);case 2:return new a(e[0],e[1]);case 3:return new a(e[0],e[1],e[2]);case 4:return new a(e[0],e[1],e[2],e[3]);case 5:return new a(e[0],e[1],e[2],e[3],e[4]);case 6:return new a(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new a(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var t=gl(a.prototype),r=a.apply(t,e);return pl(r)?r:t}}var Ct=bl,yl=Ct,wl=xe,$l=1;function Pl(a,e,t){var r=e&$l,n=yl(a);function i(){var u=this&&this!==wl&&this instanceof i?n:a;return u.apply(r?t:this,arguments)}return i}var kl=Pl;function Ml(a,e,t){switch(t.length){case 0:return a.call(e);case 1:return a.call(e,t[0]);case 2:return a.call(e,t[0],t[1]);case 3:return a.call(e,t[0],t[1],t[2])}return a.apply(e,t)}var Qa=Ml,Wl=Math.max;function xl(a,e,t,r){for(var n=-1,i=a.length,u=t.length,l=-1,m=e.length,h=Wl(i-u,0),c=Array(m+h),b=!r;++l0){if(++e>=fm)return arguments[0]}else e=0;return a.apply(void 0,arguments)}}var Oo=pm,bm=Eo,ym=Oo,wm=ym(bm),Vo=wm,$m=/\{\n\/\* \[wrapped with (.+)\] \*/,Pm=/,? & /;function km(a){var e=a.match($m);return e?e[1].split(Pm):[]}var Mm=km,Wm=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function xm(a,e){var t=e.length;if(!t)return a;var r=t-1;return e[r]=(t>1?"& ":"")+e[r],e=e.join(t>2?", ":" "),a.replace(Wm,`{ +import{r as jr,x as je,S as Be,E as uu,o as g,d as w,n as te,a as f,e as W,t as k,i as Xa,l as B,R as Ce,c as X,w as F,U as it,q as Ba,j as De,v as du,b as _,F as ue,g as we,m as pt,A as _o,B as lu,J as Dn,u as D,V as mu,f as V,T as cu,_ as hu}from"./app-b56afa57.js";import{_ as Se}from"./_plugin-vue_export-helper-c27b6911.js";import{I as q}from"./Icon-c6b983eb.js";import{u as fu}from"./useAuthorizable-94e7d830.js";const vu={class:"max-w-screen-xl mx-auto py-2 px-3 sm:px-6 lg:px-8"},gu={class:"flex items-center justify-between flex-wrap"},pu={class:"w-0 flex-1 flex items-center min-w-0"},bu={key:0,class:"h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},yu=f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1),wu=[yu],$u={key:1,class:"h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},Pu=f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"},null,-1),ku=[Pu],Mu={class:"ml-3 font-medium text-sm text-white truncate"},Wu={class:"shrink-0 sm:ml-3"},xu=f("svg",{class:"h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1),_u=[xu],Du={__name:"Banner",setup(a){const e=jr(!0),t=je(()=>{var n;return((n=Be().props.jetstream.flash)==null?void 0:n.bannerStyle)||"success"}),r=je(()=>{var n;return((n=Be().props.jetstream.flash)==null?void 0:n.banner)||""});return uu(r,async()=>{e.value=!0}),(n,i)=>(g(),w("div",null,[e.value&&r.value?(g(),w("div",{key:0,class:te({"bg-indigo-500":t.value=="success","bg-red-700":t.value=="danger"})},[f("div",vu,[f("div",gu,[f("div",pu,[f("span",{class:te(["flex p-2 rounded-lg",{"bg-indigo-600":t.value=="success","bg-red-600":t.value=="danger"}])},[t.value=="success"?(g(),w("svg",bu,wu)):W("",!0),t.value=="danger"?(g(),w("svg",$u,ku)):W("",!0)],2),f("p",Mu,k(r.value),1)]),f("div",Wu,[f("button",{type:"button",class:te(["-mr-1 flex p-2 rounded-md focus:outline-none sm:-mr-2 transition",{"hover:bg-indigo-600 focus:bg-indigo-600":t.value=="success","hover:bg-red-600 focus:bg-red-600":t.value=="danger"}]),"aria-label":"Dismiss",onClick:i[0]||(i[0]=Xa(u=>e.value=!1,["prevent"]))},_u,2)])])])],2)):W("",!0)]))}},Cu={props:{toast:Object,popstate:String},data(){return{milliseconds:this.toast&&this.toast.milliseconds?this.toast.milliseconds:3e3,id:null}},watch:{toast:{deep:!0,handler(a,e){this.fireToast()}}},mounted(){this.fireToast()},methods:{fireToast(){if(!this.toast||sessionStorage.getItem("toast-"+this.popstate))return;this.milliseconds=this.toast.milliseconds??3e3;const a=this.toast.type==="danger"?"error":this.toast.type;Toast.fire({icon:a,title:this.toast.title,text:this.toast.body,timer:this.milliseconds}),sessionStorage.setItem("toast-"+this.popstate,"1")}}};function Tu(a,e,t,r,n,i){return null}const ju=Se(Cu,[["render",Tu]]),Au=["href"],Do={__name:"ResponsiveNavLink",props:{active:Boolean,href:String,as:String,openInNewTab:{type:Boolean,default:!1}},setup(a){const e=a,t=je(()=>e.active?"block pl-3 pr-4 py-2 border-l-4 border-light-blue-400 text-base font-medium text-light-blue-700 bg-light-blue-50 dark:bg-cool-gray-900 focus:outline-none focus:text-light-blue-800 focus:bg-light-blue-100 dark:focus:bg-cool-gray-900 focus:border-light-blue-700 transition duration-150 ease-in-out":"block pl-3 pr-4 py-2 border-l-4 border-transparent text-base font-medium text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-gray-200 hover:bg-gray-50 dark:hover:bg-cool-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-800 dark:focus:text-gray-200 focus:bg-gray-50 dark:focus:bg-cool-gray-900 focus:border-gray-300 transition duration-150 ease-in-out");return(r,n)=>{const i=B("InertiaLink");return g(),w("div",null,[a.as=="button"?(g(),w("button",{key:0,class:te([t.value,"w-full text-left"])},[Ce(r.$slots,"default")],2)):a.as!="button"&&!a.openInNewTab?(g(),X(i,{key:1,href:a.href,class:te(t.value)},{default:F(()=>[Ce(r.$slots,"default")]),_:3},8,["href","class"])):(g(),w("a",{key:2,target:"_blank",href:a.href,class:te(t.value)},[Ce(r.$slots,"default")],10,Au))])}}};var Su=/\s/;function zu(a){for(var e=a.length;e--&&Su.test(a.charAt(e)););return e}var Eu=zu,Nu=Eu,Fu=/^\s+/;function Ru(a){return a&&a.slice(0,Nu(a)+1).replace(Fu,"")}var Lu=Ru;function Hu(a){var e=typeof a;return a!=null&&(e=="object"||e=="function")}var Ze=Hu,Ou=typeof it=="object"&&it&&it.Object===Object&&it,Co=Ou,Vu=Co,Iu=typeof self=="object"&&self&&self.Object===Object&&self,Xu=Vu||Iu||Function("return this")(),xe=Xu,Bu=xe,Gu=Bu.Symbol,Ga=Gu,Cn=Ga,To=Object.prototype,qu=To.hasOwnProperty,Yu=To.toString,za=Cn?Cn.toStringTag:void 0;function Uu(a){var e=qu.call(a,za),t=a[za];try{a[za]=void 0;var r=!0}catch{}var n=Yu.call(a);return r&&(e?a[za]=t:delete a[za]),n}var Qu=Uu,Ku=Object.prototype,Ju=Ku.toString;function Zu(a){return Ju.call(a)}var ed=Zu,Tn=Ga,ad=Qu,td=ed,rd="[object Null]",nd="[object Undefined]",jn=Tn?Tn.toStringTag:void 0;function id(a){return a==null?a===void 0?nd:rd:jn&&jn in Object(a)?ad(a):td(a)}var qa=id;function od(a){return a!=null&&typeof a=="object"}var Pa=od,sd=qa,ud=Pa,dd="[object Symbol]";function ld(a){return typeof a=="symbol"||ud(a)&&sd(a)==dd}var Dt=ld,md=Lu,An=Ze,cd=Dt,Sn=0/0,hd=/^[-+]0x[0-9a-f]+$/i,fd=/^0b[01]+$/i,vd=/^0o[0-7]+$/i,gd=parseInt;function pd(a){if(typeof a=="number")return a;if(cd(a))return Sn;if(An(a)){var e=typeof a.valueOf=="function"?a.valueOf():a;a=An(e)?e+"":e}if(typeof a!="string")return a===0?a:+a;a=md(a);var t=fd.test(a);return t||vd.test(a)?gd(a.slice(2),t?2:8):hd.test(a)?Sn:+a}var Ar=pd,bd=Ar,zn=1/0,yd=17976931348623157e292;function wd(a){if(!a)return a===0?a:0;if(a=bd(a),a===zn||a===-zn){var e=a<0?-1:1;return e*yd}return a===a?a:0}var $d=wd,Pd=$d;function kd(a){var e=Pd(a),t=e%1;return e===e?t?e-t:e:0}var Ya=kd,Md=Ya,Wd="Expected a function";function xd(a,e){if(typeof e!="function")throw new TypeError(Wd);return a=Md(a),function(){if(--a<1)return e.apply(this,arguments)}}var _d=xd;function Dd(a){return a}var Ua=Dd,Cd=qa,Td=Ze,jd="[object AsyncFunction]",Ad="[object Function]",Sd="[object GeneratorFunction]",zd="[object Proxy]";function Ed(a){if(!Td(a))return!1;var e=Cd(a);return e==Ad||e==Sd||e==jd||e==zd}var jo=Ed,Nd=xe,Fd=Nd["__core-js_shared__"],Rd=Fd,Ut=Rd,En=function(){var a=/[^.]+$/.exec(Ut&&Ut.keys&&Ut.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}();function Ld(a){return!!En&&En in a}var Hd=Ld,Od=Function.prototype,Vd=Od.toString;function Id(a){if(a!=null){try{return Vd.call(a)}catch{}try{return a+""}catch{}}return""}var Ao=Id,Xd=jo,Bd=Hd,Gd=Ze,qd=Ao,Yd=/[\\^$.*+?()[\]{}|]/g,Ud=/^\[object .+?Constructor\]$/,Qd=Function.prototype,Kd=Object.prototype,Jd=Qd.toString,Zd=Kd.hasOwnProperty,el=RegExp("^"+Jd.call(Zd).replace(Yd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function al(a){if(!Gd(a)||Bd(a))return!1;var e=Xd(a)?el:Ud;return e.test(qd(a))}var tl=al;function rl(a,e){return a==null?void 0:a[e]}var nl=rl,il=tl,ol=nl;function sl(a,e){var t=ol(a,e);return il(t)?t:void 0}var ma=sl,ul=ma,dl=xe,ll=ul(dl,"WeakMap"),So=ll,Nn=So,ml=Nn&&new Nn,zo=ml,cl=Ua,Fn=zo,hl=Fn?function(a,e){return Fn.set(a,e),a}:cl,Eo=hl,fl=Ze,Rn=Object.create,vl=function(){function a(){}return function(e){if(!fl(e))return{};if(Rn)return Rn(e);a.prototype=e;var t=new a;return a.prototype=void 0,t}}(),Sr=vl,gl=Sr,pl=Ze;function bl(a){return function(){var e=arguments;switch(e.length){case 0:return new a;case 1:return new a(e[0]);case 2:return new a(e[0],e[1]);case 3:return new a(e[0],e[1],e[2]);case 4:return new a(e[0],e[1],e[2],e[3]);case 5:return new a(e[0],e[1],e[2],e[3],e[4]);case 6:return new a(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new a(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var t=gl(a.prototype),r=a.apply(t,e);return pl(r)?r:t}}var Ct=bl,yl=Ct,wl=xe,$l=1;function Pl(a,e,t){var r=e&$l,n=yl(a);function i(){var u=this&&this!==wl&&this instanceof i?n:a;return u.apply(r?t:this,arguments)}return i}var kl=Pl;function Ml(a,e,t){switch(t.length){case 0:return a.call(e);case 1:return a.call(e,t[0]);case 2:return a.call(e,t[0],t[1]);case 3:return a.call(e,t[0],t[1],t[2])}return a.apply(e,t)}var Qa=Ml,Wl=Math.max;function xl(a,e,t,r){for(var n=-1,i=a.length,u=t.length,l=-1,m=e.length,h=Wl(i-u,0),c=Array(m+h),b=!r;++l0){if(++e>=fm)return arguments[0]}else e=0;return a.apply(void 0,arguments)}}var Oo=pm,bm=Eo,ym=Oo,wm=ym(bm),Vo=wm,$m=/\{\n\/\* \[wrapped with (.+)\] \*/,Pm=/,? & /;function km(a){var e=a.match($m);return e?e[1].split(Pm):[]}var Mm=km,Wm=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function xm(a,e){var t=e.length;if(!t)return a;var r=t-1;return e[r]=(t>1?"& ":"")+e[r],e=e.join(t>2?", ":" "),a.replace(Wm,`{ /* [wrapped with `+e+`] */ `)}var _m=xm;function Dm(a){return function(){return a}}var Cm=Dm,Tm=ma,jm=function(){try{var a=Tm(Object,"defineProperty");return a({},"",{}),a}catch{}}(),Am=jm,Sm=Cm,Vn=Am,zm=Ua,Em=Vn?function(a,e){return Vn(a,"toString",{configurable:!0,enumerable:!1,value:Sm(e),writable:!0})}:zm,Nm=Em,Fm=Nm,Rm=Oo,Lm=Rm(Fm),Nr=Lm;function Hm(a,e){for(var t=-1,r=a==null?0:a.length;++t-1}var ac=ec,tc=Om,rc=ac,nc=1,ic=2,oc=8,sc=16,uc=32,dc=64,lc=128,mc=256,cc=512,hc=[["ary",lc],["bind",nc],["bindKey",ic],["curry",oc],["curryRight",sc],["flip",cc],["partial",uc],["partialRight",dc],["rearg",mc]];function fc(a,e){return tc(hc,function(t){var r="_."+t[0];e&t[1]&&!rc(a,r)&&a.push(r)}),a.sort()}var vc=fc,gc=Mm,pc=_m,bc=Nr,yc=vc;function wc(a,e,t){var r=e+"";return bc(a,pc(r,yc(gc(r),t)))}var Io=wc,$c=hm,Pc=Vo,kc=Io,Mc=1,Wc=2,xc=4,_c=8,In=32,Xn=64;function Dc(a,e,t,r,n,i,u,l,m,h){var c=e&_c,b=c?u:void 0,p=c?void 0:u,y=c?i:void 0,M=c?void 0:i;e|=c?In:Xn,e&=~(c?Xn:In),e&xc||(e&=~(Mc|Wc));var R=[a,e,n,y,b,M,p,l,m,h],H=t.apply(void 0,R);return $c(a)&&Pc(H,R),H.placeholder=r,kc(H,a,e)}var Xo=Dc;function Cc(a){var e=a;return e.placeholder}var ka=Cc,Tc=9007199254740991,jc=/^(?:0|[1-9]\d*)$/;function Ac(a,e){var t=typeof a;return e=e??Tc,!!e&&(t=="number"||t!="symbol"&&jc.test(a))&&a>-1&&a%1==0&&a1&&T.reverse(),c&&m0&&(t=e.apply(this,arguments)),a<=1&&(e=void 0),t}}var Yo=Rh,Lh=Qa,ai=Math.max;function Hh(a,e,t){return e=ai(e===void 0?a.length-1:e,0),function(){for(var r=arguments,n=-1,i=ai(r.length-e,0),u=Array(i);++n=e||O<0||b&&G>=i}function E(){var j=er();if(H(j))return T(j);l=setTimeout(E,R(j))}function T(j){return l=void 0,p&&r?y(j):(r=n=void 0,u)}function S(){l!==void 0&&clearTimeout(l),h=0,r=m=n=l=void 0}function N(){return l===void 0?u:T(er())}function L(){var j=er(),O=H(j);if(r=arguments,n=this,m=j,O){if(l===void 0)return M(m);if(b)return clearTimeout(l),l=setTimeout(E,e),y(m)}return l===void 0&&(l=setTimeout(E,e)),u}return L.cancel=S,L.flush=N,L}var Qo=wf,$f="Expected a function";function Pf(a,e,t){if(typeof a!="function")throw new TypeError($f);return setTimeout(function(){a.apply(void 0,t)},e)}var Ko=Pf,kf=Ko,Mf=Le,Wf=Mf(function(a,e){return kf(a,1,e)}),xf=Wf,_f=Ko,Df=Le,Cf=Ar,Tf=Df(function(a,e,t){return _f(a,Cf(e)||0,t)}),jf=Tf,Af=Ge,Sf=512;function zf(a){return Af(a,Sf)}var Ef=zf,Nf=ma,Ff=Nf(Object,"create"),Tt=Ff,ri=Tt;function Rf(){this.__data__=ri?ri(null):{},this.size=0}var Lf=Rf;function Hf(a){var e=this.has(a)&&delete this.__data__[a];return this.size-=e?1:0,e}var Of=Hf,Vf=Tt,If="__lodash_hash_undefined__",Xf=Object.prototype,Bf=Xf.hasOwnProperty;function Gf(a){var e=this.__data__;if(Vf){var t=e[a];return t===If?void 0:t}return Bf.call(e,a)?e[a]:void 0}var qf=Gf,Yf=Tt,Uf=Object.prototype,Qf=Uf.hasOwnProperty;function Kf(a){var e=this.__data__;return Yf?e[a]!==void 0:Qf.call(e,a)}var Jf=Kf,Zf=Tt,ev="__lodash_hash_undefined__";function av(a,e){var t=this.__data__;return this.size+=this.has(a)?0:1,t[a]=Zf&&e===void 0?ev:e,this}var tv=av,rv=Lf,nv=Of,iv=qf,ov=Jf,sv=tv;function Ma(a){var e=-1,t=a==null?0:a.length;for(this.clear();++e-1}var Mv=kv,Wv=jt;function xv(a,e){var t=this.__data__,r=Wv(t,a);return r<0?(++this.size,t.push([a,e])):t[r][1]=e,this}var _v=xv,Dv=lv,Cv=bv,Tv=$v,jv=Mv,Av=_v;function Wa(a){var e=-1,t=a==null?0:a.length;for(this.clear();++e0&&t(l)?e>1?rs(l,e-1,t,r,n):Cg(n,l):r||(n[n.length]=l)}return n}var ns=rs,jg=At;function Ag(){this.__data__=new jg,this.size=0}var Sg=Ag;function zg(a){var e=this.__data__,t=e.delete(a);return this.size=e.size,t}var Eg=zg;function Ng(a){return this.__data__.get(a)}var Fg=Ng;function Rg(a){return this.__data__.has(a)}var Lg=Rg,Hg=At,Og=Vr,Vg=Ir,Ig=200;function Xg(a,e){var t=this.__data__;if(t instanceof Hg){var r=t.__data__;if(!Og||r.lengthl))return!1;var h=i.get(a),c=i.get(e);if(h&&c)return h==e&&c==a;var b=-1,p=!0,y=t&vp?new mp:void 0;for(i.set(a,e),i.set(e,a);++b-1&&a%1==0&&a<=sb}var qr=ub,db=qa,lb=qr,mb=Pa,cb="[object Arguments]",hb="[object Array]",fb="[object Boolean]",vb="[object Date]",gb="[object Error]",pb="[object Function]",bb="[object Map]",yb="[object Number]",wb="[object Object]",$b="[object RegExp]",Pb="[object Set]",kb="[object String]",Mb="[object WeakMap]",Wb="[object ArrayBuffer]",xb="[object DataView]",_b="[object Float32Array]",Db="[object Float64Array]",Cb="[object Int8Array]",Tb="[object Int16Array]",jb="[object Int32Array]",Ab="[object Uint8Array]",Sb="[object Uint8ClampedArray]",zb="[object Uint16Array]",Eb="[object Uint32Array]",K={};K[_b]=K[Db]=K[Cb]=K[Tb]=K[jb]=K[Ab]=K[Sb]=K[zb]=K[Eb]=!0;K[cb]=K[hb]=K[Wb]=K[fb]=K[xb]=K[vb]=K[gb]=K[pb]=K[bb]=K[yb]=K[wb]=K[$b]=K[Pb]=K[kb]=K[Mb]=!1;function Nb(a){return mb(a)&&lb(a.length)&&!!K[db(a)]}var Fb=Nb;function Rb(a){return function(e){return a(e)}}var us=Rb,kt={exports:{}};kt.exports;(function(a,e){var t=Co,r=e&&!e.nodeType&&e,n=r&&!0&&a&&!a.nodeType&&a,i=n&&n.exports===r,u=i&&t.process,l=function(){try{var m=n&&n.require&&n.require("util").types;return m||u&&u.binding&&u.binding("util")}catch{}}();a.exports=l})(kt,kt.exports);var Lb=kt.exports,Hb=Fb,Ob=us,ci=Lb,hi=ci&&ci.isTypedArray,Vb=hi?Ob(hi):Hb,ds=Vb,Ib=nb,Xb=Gr,Bb=ze,Gb=ss,qb=Fr,Yb=ds,Ub=Object.prototype,Qb=Ub.hasOwnProperty;function Kb(a,e){var t=Bb(a),r=!t&&Xb(a),n=!t&&!r&&Gb(a),i=!t&&!r&&!n&&Yb(a),u=t||r||n||i,l=u?Ib(a.length,String):[],m=l.length;for(var h in a)(e||Qb.call(a,h))&&!(u&&(h=="length"||n&&(h=="offset"||h=="parent")||i&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||qb(h,m)))&&l.push(h);return l}var Jb=Kb,Zb=Object.prototype;function ey(a){var e=a&&a.constructor,t=typeof e=="function"&&e.prototype||Zb;return a===t}var ay=ey;function ty(a,e){return function(t){return a(e(t))}}var ry=ty,ny=ry,iy=ny(Object.keys,Object),oy=iy,sy=ay,uy=oy,dy=Object.prototype,ly=dy.hasOwnProperty;function my(a){if(!sy(a))return uy(a);var e=[];for(var t in Object(a))ly.call(a,t)&&t!="constructor"&&e.push(t);return e}var cy=my,hy=jo,fy=qr;function vy(a){return a!=null&&fy(a.length)&&!hy(a)}var gy=vy,py=Jb,by=cy,yy=gy;function wy(a){return yy(a)?py(a):by(a)}var ls=wy,$y=Gp,Py=tb,ky=ls;function My(a){return $y(a,ky,Py)}var Wy=My,fi=Wy,xy=1,_y=Object.prototype,Dy=_y.hasOwnProperty;function Cy(a,e,t,r,n,i){var u=t&xy,l=fi(a),m=l.length,h=fi(e),c=h.length;if(m!=c&&!u)return!1;for(var b=m;b--;){var p=l[b];if(!(u?p in e:Dy.call(e,p)))return!1}var y=i.get(a),M=i.get(e);if(y&&M)return y==e&&M==a;var R=!0;i.set(a,e),i.set(e,a);for(var H=u;++bn?0:n+e),t=t>n?n:t,t<0&&(t+=n),n=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(n);++r=r?a:N$(a,e,t)}var R$=F$,L$=Qa,H$=Br,O$=Le,V$=R$,I$=Ya,X$="Expected a function",B$=Math.max;function G$(a,e){if(typeof a!="function")throw new TypeError(X$);return e=e==null?0:B$(I$(e),0),O$(function(t){var r=t[e],n=V$(t,0,e);return r&&H$(n,r),L$(a,this,n)})}var q$=G$,Y$=Qo,U$=Ze,Q$="Expected a function";function K$(a,e,t){var r=!0,n=!0;if(typeof a!="function")throw new TypeError(Q$);return U$(t)&&(r="leading"in t?!!t.leading:r,n="trailing"in t?!!t.trailing:n),Y$(a,e,{leading:r,maxWait:e,trailing:n})}var J$=K$,Z$=qo;function eP(a){return Z$(a,1)}var aP=eP,tP=Ua;function rP(a){return typeof a=="function"?a:tP}var nP=rP,iP=nP,oP=ys;function sP(a,e){return oP(iP(e),a)}var uP=sP,dP={after:_d,ary:qo,before:Yo,bind:Kh,bindKey:of,curry:df,curryRight:cf,debounce:Qo,defer:xf,delay:jf,flip:Ef,memoize:es,negate:lg,once:hg,overArgs:n$,partial:ys,partialRight:v$,rearg:D$,rest:S$,spread:q$,throttle:J$,unary:aP,wrap:uP};function lP(a,e){return g(),w("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0"})])}function mP(a,e){return g(),w("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})])}function cP(a,e){return g(),w("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21.752 15.002A9.718 9.718 0 0118 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 003 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 009.002-5.998z"})])}function hP(a,e){return g(),w("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[f("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 3v2.25m6.364.386l-1.591 1.591M21 12h-2.25m-.386 6.364l-1.591-1.591M12 18.75V21m-4.773-4.227l-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0z"})])}const fP={name:"Search",components:{Icon:q,MagnifyingGlassIcon:mP},data(){return{showResults:!1,loading:!1,searchString:"",usersList:[],playersList:[]}},created:function(){window.addEventListener("click",a=>{this.$el.contains(a.target)||(this.showResults=!1,this.searchString="")})},methods:{performSearch:dP.debounce(function(){this.searchString&&(this.showResults=!0,this.loading=!0,axios.get(route("search",{q:this.searchString})).then(a=>{this.usersList=a.data.users,this.playersList=a.data.players}).finally(()=>{this.loading=!1}))},200)}},vP={class:"relative mx-auto text-gray-600 dark:text-gray-400"},gP=["placeholder"],pP={type:"submit",class:"absolute right-0 top-0 mt-3 mr-4"},bP={key:0,id:"results",class:"absolute bg-white dark:bg-cool-gray-800 px-3 py-1 w-full rounded-md shadow-lg z-50"},yP={key:0,id:"loading",class:"text-center p-2"},wP={key:1,id:"users"},$P={class:"text-xs text-gray-400 dark:text-gray-300 font-extrabold"},PP={class:"flex flex-col"},kP={class:"flex"},MP=["src"],WP={class:"text-sm"},xP={class:"text-gray-700 dark:text-gray-300 font-bold"},_P={class:"text-gray-500 dark:text-gray-500"},DP={class:"flex"},CP=["title","src"],TP={key:0,id:"emptyusers",class:"italic"},jP={key:2,id:"players",class:"mt-5 pb-4"},AP={class:"text-xs text-gray-400 dark:text-gray-300 font-extrabold"},SP={class:"flex flex-col"},zP={class:"flex items-center"},EP=["src"],NP={class:"text-sm"},FP={class:"text-gray-700 dark:text-gray-300 font-bold"},RP={class:"flex space-x-2"},LP=["src","alt","title"],HP=["title","src"],OP={key:0,id:"emptyplayers",class:"italic"};function VP(a,e,t,r,n,i){const u=B("MagnifyingGlassIcon"),l=B("inertia-link"),m=B("icon"),h=Ba("tippy");return g(),w("div",vP,[f("form",{onSubmit:e[2]||(e[2]=Xa((...c)=>i.performSearch&&i.performSearch(...c),["prevent"]))},[De(f("input",{"onUpdate:modelValue":e[0]||(e[0]=c=>n.searchString=c),"aria-label":"search",class:te(["border-none bg-gray-200 dark:bg-cool-gray-900 h-10 px-5 pr-10 focus:w-80 rounded-full text-sm focus:outline-none focus:ring-0",{"w-80":n.showResults}]),type:"search",name:"search",placeholder:a.__("Search")+"..",autocomplete:"off",onInput:e[1]||(e[1]=(...c)=>i.performSearch&&i.performSearch(...c))},null,42,gP),[[du,n.searchString]]),f("button",pP,[_(u,{class:"text-gray-400 dark:text-gray-600 h-4 w-4 stroke-2"})])],32),n.showResults&&n.searchString?(g(),w("div",bP,[n.loading?(g(),w("div",yP,k(a.__("Loading"))+"... ",1)):W("",!0),n.loading?W("",!0):(g(),w("div",wP,[f("span",$P,k(a.__("USERS")),1),f("div",PP,[(g(!0),w(ue,null,we(n.usersList,c=>(g(),X(l,{id:"user",key:c.username,as:"a",href:a.route("user.public.get",c.username),class:"flex px-2 py-1 justify-between hover:bg-light-blue-100 dark:hover:bg-cool-gray-900 rounded cursor-pointer"},{default:F(()=>[f("div",kP,[f("img",{class:"mr-3 w-10 h-10 rounded-full",src:c.profile_photo_url,alt:"Image"},null,8,MP),f("div",WP,[f("p",xP,k(c.title),1),f("p",_P," @"+k(c.username),1)])]),f("div",DP,[De(f("img",{title:c.country.name,src:c.country.photo_path,alt:"",class:"h-8 w-8 -mt-0.5 focus:outline-none"},null,8,CP),[[h]])])]),_:2},1032,["href"]))),128))]),!n.usersList||n.usersList.length<=0?(g(),w("div",TP,k(a.__("No users found.")),1)):W("",!0)])),n.loading?W("",!0):(g(),w("div",jP,[f("span",AP,k(a.__("PLAYERS")),1),f("div",SP,[(g(!0),w(ue,null,we(n.playersList,c=>(g(),X(l,{id:"player",key:c.uuid,as:"a",href:a.route("player.show",c.uuid),class:"flex justify-between px-2 py-1 hover:bg-light-blue-100 dark:hover:bg-cool-gray-900 rounded cursor-pointer"},{default:F(()=>[f("div",zP,[f("img",{class:"mr-3 w-8 h-8",src:c.avatar_url,alt:"Avatar"},null,8,EP),f("div",NP,[f("p",FP,k(c.title),1)])]),f("div",RP,[De(_(m,{class:"w-8 h-8 focus:outline-none",name:`rating-${c.rating}`,content:c.rating},null,8,["name","content"]),[[pt,c.rating!=null],[h]]),De(f("img",{src:c.rank.photo_path,alt:c.rank.name,title:c.rank.name,class:"h-8 w-8 focus:outline-none"},null,8,LP),[[pt,c.rank.photo_path],[h]]),De(f("img",{title:c.country.name,src:c.country.photo_path,alt:"",class:"h-8 w-8 -mt-0.5 focus:outline-none"},null,8,HP),[[h]])])]),_:2},1032,["href"]))),128))]),!n.playersList||n.playersList.length<=0?(g(),w("div",OP,k(a.__("No players found.")),1)):W("",!0)]))])):W("",!0)])}const ws=Se(fP,[["render",VP]]),IP={name:"ColorThemeToggle",components:{MoonIcon:cP,SunIcon:hP},data(){return{colorMode:window.colorMode}},methods:{toggleTheme(){this.colorMode==="dark"?(this.colorMode="light",window.colorMode="light",localStorage.theme="light",document.documentElement.classList.add("light"),document.documentElement.classList.remove("dark")):(this.colorMode="dark",window.colorMode="dark",localStorage.theme="dark",document.documentElement.classList.add("dark"),document.documentElement.classList.remove("light")),window.location.reload()}}},XP=["title"],BP=["title"];function GP(a,e,t,r,n,i){const u=B("MoonIcon"),l=B("SunIcon"),m=Ba("tippy");return g(),w("div",null,[f("button",{onClick:e[0]||(e[0]=(...h)=>i.toggleTheme&&i.toggleTheme(...h))},[n.colorMode==="dark"?De((g(),w("span",{key:0,title:a.__("Use Light Theme")},[_(u,{class:"w-5 h-5 text-gray-400 focus:outline-none stroke-2"})],8,XP)),[[m]]):De((g(),w("span",{key:1,title:a.__("Use Dark Theme")},[_(l,{class:"w-6 h-6 text-gray-400 focus:outline-none stroke-2"})],8,BP)),[[m]])])])}const $s=Se(IP,[["render",GP]]),qP={computed:{logo(){return window.colorMode==="light"?this.$page.props.generalSettings.site_header_logo_path_light:this.$page.props.generalSettings.site_header_logo_path_dark}}},YP=["src"];function UP(a,e,t,r,n,i){return g(),w("img",{src:i.logo,alt:"Site Header Logo",class:"logo"},null,8,YP)}const $r=Se(qP,[["render",UP]]),QP={class:"flex items-center flex-shrink-0"},KP={__name:"AppLogoMark",props:{canShowAdminSidebar:{type:Boolean,default:!1}},setup(a){return(e,t)=>{const r=B("InertiaLink"),n=Ba("tippy");return g(),w("div",QP,[_(r,{href:e.route("home")},{default:F(()=>[_($r,{class:"block w-auto h-9"})]),_:1},8,["href"]),a.canShowAdminSidebar&&!e.route().current("admin.*")?De((g(),X(r,{key:0,title:e.__("Administration Section"),"aria-label":"Open Menu",class:"ml-2 focus:outline-none",href:e.route("admin.dashboard")},{default:F(()=>[_(q,{name:"cog",class:"w-6 h-6 text-gray-400 dark:text-gray-500 hover:animate-spin"})]),_:1},8,["title","href"])),[[n]]):W("",!0)])}}},JP=["href"],Si={__name:"NavLink",props:{href:String,active:Boolean,openInNewTab:{type:Boolean,default:!1}},setup(a){const e=a,t=je(()=>e.active?"inline-flex items-center px-1 pt-1 border-b-2 border-light-blue-400 text-sm leading-5 text-gray-900 dark:text-gray-200 focus:outline-none focus:border-light-blue-700 transition duration-150 ease-in-out":"inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm leading-5 text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 hover:border-gray-300 focus:outline-none focus:text-gray-700 dark:focus:text-gray-300 focus:border-gray-300 transition duration-150 ease-in-out");return(r,n)=>{const i=B("InertiaLink");return a.openInNewTab?(g(),w("a",{key:1,target:"_blank",href:a.href,class:te(t.value)},[Ce(r.$slots,"default")],10,JP)):(g(),X(i,{key:0,href:a.href,class:te(t.value)},{default:F(()=>[Ce(r.$slots,"default")]),_:3},8,["href","class"]))}}},ZP={class:"relative"},Et={__name:"Dropdown",props:{align:{type:String,default:"right"},width:{type:String,default:"48"},contentClasses:{type:Array,default:()=>["py-1","bg-white"]}},setup(a){const e=a;let t=jr(!1);const r=u=>{t.value&&u.key==="Escape"&&(t.value=!1)};_o(()=>document.addEventListener("keydown",r)),lu(()=>document.removeEventListener("keydown",r));const n=je(()=>({48:"w-48"})[e.width.toString()]),i=je(()=>e.align==="left"?"origin-top-left left-0":e.align==="right"?"origin-top-right right-0":"origin-top");return(u,l)=>(g(),w("div",ZP,[f("div",{onClick:l[0]||(l[0]=m=>Dn(t)?t.value=!D(t):t=!D(t))},[Ce(u.$slots,"trigger")]),De(f("div",{class:"fixed inset-0 z-40",onClick:l[1]||(l[1]=m=>Dn(t)?t.value=!1:t=!1)},null,512),[[pt,D(t)]]),_(mu,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:F(()=>[De(f("div",{class:te(["absolute z-50 mt-2 rounded-md shadow-lg",[n.value,i.value]]),style:{display:"none"}},[f("div",{class:te(["rounded-md ring-1 ring-black ring-opacity-5 dark:bg-gray-800",a.contentClasses])},[Ce(u.$slots,"content")],2)],2),[[pt,D(t)]])]),_:3})]))}},ek=["href"],Xe={__name:"DropdownLink",props:{href:String,as:String,btnClass:String,openInNewTab:{type:Boolean,default:!1}},setup(a){return(e,t)=>{const r=B("InertiaLink");return g(),w("div",null,[a.as=="button"?(g(),w("button",{key:0,type:"submit",class:te(["block w-full px-4 py-2 text-sm leading-5 text-gray-700 dark:text-gray-400 text-left hover:bg-cool-gray-100 dark:hover:bg-cool-gray-900 focus:outline-none focus:bg-cool-gray-100 dark:focus:bg-cool-gray-900 transition duration-150 ease-in-out",a.btnClass])},[Ce(e.$slots,"default")],2)):a.as!="button"&&!a.openInNewTab?(g(),X(r,{key:1,href:a.href,class:te(["block px-4 py-2 text-sm leading-5 text-gray-700 dark:text-gray-400 hover:bg-cool-gray-100 dark:hover:bg-cool-gray-900 focus:outline-none focus:bg-cool-gray-100 dark:focus:bg-cool-gray-900 transition duration-150 ease-in-out",a.btnClass])},{default:F(()=>[Ce(e.$slots,"default")]),_:3},8,["href","class"])):(g(),w("a",{key:2,target:"_blank",href:a.href,class:te(["block px-4 py-2 text-sm leading-5 text-gray-700 dark:text-gray-400 hover:bg-cool-gray-100 dark:hover:bg-cool-gray-900 focus:outline-none focus:bg-cool-gray-100 dark:focus:bg-cool-gray-900 transition duration-150 ease-in-out",a.btnClass])},[Ce(e.$slots,"default")],10,ek))])}}},ak={components:{JetDropdown:Et,JetDropdownLink:Xe},props:{title:{type:String,required:!0},items:{type:Array,required:!0}}},tk={class:"inline-flex items-center px-1 pt-1 text-sm leading-5 text-gray-500 transition duration-150 ease-in-out border-b-2 border-transparent hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300"},rk={class:"inline-flex rounded-md"},nk={type:"button",class:"inline-flex items-center py-2 text-sm font-semibold leading-4 text-gray-500 transition duration-150 ease-in-out border border-transparent rounded-md dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 focus:outline-none"},ik=f("svg",{class:"ml-2 -mr-0.5 h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[f("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1);function ok(a,e,t,r,n,i){const u=B("jet-dropdown-link"),l=B("jet-dropdown");return g(),w("div",tk,[_(l,{align:"right",width:"48"},{trigger:F(()=>[f("span",rk,[f("button",nk,[V(k(a.__(t.title))+" ",1),ik])])]),content:F(()=>[(g(!0),w(ue,null,we(t.items,m=>(g(),X(u,{key:m.key,class:"text-sm",href:a.route(m.route,m.route_params??null),"open-in-new-tab":m.is_open_in_new_tab},{default:F(()=>[V(k(a.__(m.title)),1)]),_:2},1032,["href","open-in-new-tab"]))),128))]),_:1})])}const sk=Se(ak,[["render",ok]]);function uk(a,e){for(var t in e)e.hasOwnProperty(t)&&a[t]===void 0&&(a[t]=e[t]);return a}function dk(a,e,t){var r;return a.length>e&&(t==null?(t="…",r=3):r=t.length,a=a.substring(0,e-r)+t),a}function zi(a,e){if(Array.prototype.indexOf)return a.indexOf(e);for(var t=0,r=a.length;t=0;t--)e(a[t])===!0&&a.splice(t,1)}function lk(a,e){if(!e.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var t=[],r=0,n;n=e.exec(a);)t.push(a.substring(r,n.index)),t.push(n[0]),r=n.index+n[0].length;return t.push(a.substring(r)),t}function Ps(a){throw new Error("Unhandled case for value: '".concat(a,"'"))}var Pr=function(){function a(e){e===void 0&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return a.prototype.setTagName=function(e){return this.tagName=e,this},a.prototype.getTagName=function(){return this.tagName||""},a.prototype.setAttr=function(e,t){var r=this.getAttrs();return r[e]=t,this},a.prototype.getAttr=function(e){return this.getAttrs()[e]},a.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},a.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},a.prototype.setClass=function(e){return this.setAttr("class",e)},a.prototype.addClass=function(e){for(var t=this.getClass(),r=this.whitespaceRegex,n=t?t.split(r):[],i=e.split(r),u;u=i.shift();)zi(n,u)===-1&&n.push(u);return this.getAttrs().class=n.join(" "),this},a.prototype.removeClass=function(e){for(var t=this.getClass(),r=this.whitespaceRegex,n=t?t.split(r):[],i=e.split(r),u;n.length&&(u=i.shift());){var l=zi(n,u);l!==-1&&n.splice(l,1)}return this.getAttrs().class=n.join(" "),this},a.prototype.getClass=function(){return this.getAttrs().class||""},a.prototype.hasClass=function(e){return(" "+this.getClass()+" ").indexOf(" "+e+" ")!==-1},a.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},a.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},a.prototype.getInnerHTML=function(){return this.innerHTML||""},a.prototype.getInnerHtml=function(){return this.getInnerHTML()},a.prototype.toAnchorString=function(){var e=this.getTagName(),t=this.buildAttrsStr();return t=t?" "+t:"",["<",e,t,">",this.getInnerHtml(),""].join("")},a.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r+'="'+e[r]+'"');return t.join(" ")},a}();function mk(a,e,t){var r,n;t==null?(t="…",n=3,r=8):(n=t.length,r=t.length);var i=function(T){var S={},N=T,L=N.match(/^([a-z]+):\/\//i);return L&&(S.scheme=L[1],N=N.substr(L[0].length)),L=N.match(/^(.*?)(?=(\?|#|\/|$))/i),L&&(S.host=L[1],N=N.substr(L[0].length)),L=N.match(/^\/(.*?)(?=(\?|#|$))/i),L&&(S.path=L[1],N=N.substr(L[0].length)),L=N.match(/^\?(.*?)(?=(#|$))/i),L&&(S.query=L[1],N=N.substr(L[0].length)),L=N.match(/^#(.*?)$/i),L&&(S.fragment=L[1]),S},u=function(T){var S="";return T.scheme&&T.host&&(S+=T.scheme+"://"),T.host&&(S+=T.host),T.path&&(S+="/"+T.path),T.query&&(S+="?"+T.query),T.fragment&&(S+="#"+T.fragment),S},l=function(T,S){var N=S/2,L=Math.ceil(N),j=-1*Math.floor(N),O="";return j<0&&(O=T.substr(j)),T.substr(0,L)+t+O};if(a.length<=e)return a;var m=e-n,h=i(a);if(h.query){var c=h.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);c&&(h.query=h.query.substr(0,c[1].length),a=u(h))}if(a.length<=e||(h.host&&(h.host=h.host.replace(/^www\./,""),a=u(h)),a.length<=e))return a;var b="";if(h.host&&(b+=h.host),b.length>=m)return h.host.length==e?(h.host.substr(0,e-n)+t).substr(0,m+r):l(b,m).substr(0,m+r);var p="";if(h.path&&(p+="/"+h.path),h.query&&(p+="?"+h.query),p)if((b+p).length>=m){if((b+p).length==e)return(b+p).substr(0,e);var y=m-b.length;return(b+l(p,y)).substr(0,m+r)}else b+=p;if(h.fragment){var M="#"+h.fragment;if((b+M).length>=m){if((b+M).length==e)return(b+M).substr(0,e);var R=m-b.length;return(b+l(M,R)).substr(0,m+r)}else b+=M}if(h.scheme&&h.host){var H=h.scheme+"://";if((b+H).length0&&(E=b.substr(-1*Math.floor(m/2))),(b.substr(0,Math.ceil(m/2))+t+E).substr(0,m+r)}function ck(a,e,t){if(a.length<=e)return a;var r,n;t==null?(t="…",r=8,n=3):(r=t.length,n=t.length);var i=e-n,u="";return i>0&&(u=a.substr(-1*Math.floor(i/2))),(a.substr(0,Math.ceil(i/2))+t+u).substr(0,i+r)}function hk(a,e,t){return dk(a,e,t)}var Ei=function(){function a(e){e===void 0&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return a.prototype.build=function(e){return new Pr({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},a.prototype.createAttrs=function(e){var t={href:e.getAnchorHref()},r=this.createCssClass(e);return r&&(t.class=r),this.newWindow&&(t.target="_blank",t.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length[c]),_:1})}const p=o(r,[["render",l]]);export{p as J}; +import{_ as o}from"./_plugin-vue_export-helper-c27b6911.js";import{l as n,o as a,c as s,w as i,a as t}from"./app-b56afa57.js";const r={},c=t("svg",{class:"w-16 h-16",viewBox:"0 0 586 630",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M391 68C391 30.4446 421.445 0 459 0H516C554.66 0 586 31.3401 586 70V135C586 168.137 559.137 195 526 195H391V68Z",fill:"#39B9F1"}),t("path",{d:"M0 70C0 31.3401 31.3401 0 70 0H125C163.66 0 195 31.3401 195 70V195H60C26.8629 195 0 168.137 0 135V70Z",fill:"#39B9F1"}),t("path",{d:"M49 319C49 291.386 71.3858 269 99 269H212V580C212 607.614 189.614 630 162 630H99C71.3858 630 49 607.614 49 580V319Z",fill:"#39B9F1"}),t("path",{d:"M375 269H484C511.614 269 534 291.386 534 319V580C534 607.614 511.614 630 484 630H425C397.386 630 375 607.614 375 580V269Z",fill:"#39B9F1"}),t("rect",{x:"195",y:"195",width:"196",height:"279",fill:"#39B9F1"})],-1);function l(C,f){const e=n("InertiaLink");return a(),s(e,{href:"/"},{default:i(()=>[c]),_:1})}const p=o(r,[["render",l]]);export{p as J}; diff --git a/public/build/default/assets/Button-930b37e5.js b/public/build/default/assets/Button-222a012d.js similarity index 94% rename from public/build/default/assets/Button-930b37e5.js rename to public/build/default/assets/Button-222a012d.js index a2c0880f2..20edc1c2e 100644 --- a/public/build/default/assets/Button-930b37e5.js +++ b/public/build/default/assets/Button-222a012d.js @@ -1 +1 @@ -import{o as t,d as o,e as a,R as n,a as r}from"./app-baae6499.js";const l=["type"],c={key:0,class:"animate-spin -ml-1 mr-3 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},i=r("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),d=r("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),u=[i,d],y={__name:"Button",props:{type:{type:String,default:"submit"},loading:{type:Boolean,default:!1}},setup(e){return(s,p)=>(t(),o("button",{type:e.type,class:"inline-flex items-center px-4 py-2 bg-gray-800 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-gray-700 active:bg-gray-900 focus:outline-none focus:border-gray-900 focus:shadow-outline-gray transition ease-in-out duration-150 dark:bg-cool-gray-700 dark:hover:bg-cool-gray-600"},[e.loading?(t(),o("svg",c,u)):a("",!0),n(s.$slots,"default")],8,l))}};export{y as _}; +import{o as t,d as o,e as a,R as n,a as r}from"./app-b56afa57.js";const l=["type"],c={key:0,class:"animate-spin -ml-1 mr-3 h-4 w-4 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},i=r("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),d=r("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),u=[i,d],y={__name:"Button",props:{type:{type:String,default:"submit"},loading:{type:Boolean,default:!1}},setup(e){return(s,p)=>(t(),o("button",{type:e.type,class:"inline-flex items-center px-4 py-2 bg-gray-800 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-gray-700 active:bg-gray-900 focus:outline-none focus:border-gray-900 focus:shadow-outline-gray transition ease-in-out duration-150 dark:bg-cool-gray-700 dark:hover:bg-cool-gray-600"},[e.loading?(t(),o("svg",c,u)):a("",!0),n(s.$slots,"default")],8,l))}};export{y as _}; diff --git a/public/build/default/assets/ChangeSkin-3894ed65.js b/public/build/default/assets/ChangeSkin-6047b150.js similarity index 96% rename from public/build/default/assets/ChangeSkin-3894ed65.js rename to public/build/default/assets/ChangeSkin-6047b150.js index ffb4ae206..a5c3fe675 100644 --- a/public/build/default/assets/ChangeSkin-3894ed65.js +++ b/public/build/default/assets/ChangeSkin-6047b150.js @@ -1 +1 @@ -import{z as O,r as I,G as H,x,y as ee,A as J,E as ce,s as pe,F as K,B as ne,C as Q,T as me,l as fe,o as C,c as D,w as b,b as v,a as l,u as d,d as B,t as n,J as ge,e as N,f as $,g as te,i as q,j as ae,bF as le,n as be}from"./app-baae6499.js";import{s as ye}from"./vue-multiselect.esm-0851868f.js";import{X as se}from"./XInput-c6b47d37.js";import{A as ve}from"./AppLayout-6edbf3df.js";import{L as M}from"./LoadingButton-197d55a5.js";import{_ as Y}from"./AlertCard-c9393c92.js";import{o as h,H as R,T as he,t as oe,N as re,u as z,b as _e,a as A}from"./use-resolve-button-type-957bab96.js";import{a as xe,f as ie,O as j,T as G,m as ke,P as E,N as U}from"./hidden-593eabf1.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./Icon-51173a24.js";import"./useAuthorizable-f632635d.js";import"./XMarkIcon-8be5cb6c.js";function we(a){typeof queueMicrotask=="function"?queueMicrotask(a):Promise.resolve().then(a).catch(p=>setTimeout(()=>{throw p}))}let Se=O({props:{onFocus:{type:Function,required:!0}},setup(a){let p=I(!0);return()=>p.value?H(ie,{as:"button",type:"button",features:xe.Focusable,onFocus(i){i.preventDefault();let f,c=50;function o(){var t;if(c--<=0){f&&cancelAnimationFrame(f);return}if((t=a.onFocus)!=null&&t.call(a)){p.value=!1,cancelAnimationFrame(f);return}f=requestAnimationFrame(o)}f=requestAnimationFrame(o)}}):null}});var Pe=(a=>(a[a.Forwards=0]="Forwards",a[a.Backwards=1]="Backwards",a))(Pe||{}),Ie=(a=>(a[a.Less=-1]="Less",a[a.Equal=0]="Equal",a[a.Greater=1]="Greater",a))(Ie||{});let ue=Symbol("TabsContext");function V(a){let p=Q(ue,null);if(p===null){let i=new Error(`<${a} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,V),i}return p}let Z=Symbol("TabsSSRContext"),Te=O({name:"TabGroup",emits:{change:a=>!0},props:{as:{type:[Object,String],default:"template"},selectedIndex:{type:[Number],default:null},defaultIndex:{type:[Number],default:0},vertical:{type:[Boolean],default:!1},manual:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(a,{slots:p,attrs:i,emit:f}){var c;let o=I((c=a.selectedIndex)!=null?c:a.defaultIndex),t=I([]),w=I([]),S=x(()=>a.selectedIndex!==null),k=x(()=>S.value?a.selectedIndex:o.value);function g(r){var e;let u=j(m.tabs.value,h),_=j(m.panels.value,h),L=u.filter(T=>{var F;return!((F=h(T))!=null&&F.hasAttribute("disabled"))});if(r<0||r>u.length-1){let T=z(o.value===null?0:Math.sign(r-o.value),{[-1]:()=>1,0:()=>z(Math.sign(r),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0}),F=z(T,{0:()=>u.indexOf(L[0]),1:()=>u.indexOf(L[L.length-1])});F!==-1&&(o.value=F),m.tabs.value=u,m.panels.value=_}else{let T=u.slice(0,r),F=[...u.slice(r),...T].find(de=>L.includes(de));if(!F)return;let X=(e=u.indexOf(F))!=null?e:m.selectedIndex.value;X===-1&&(X=m.selectedIndex.value),o.value=X,m.tabs.value=u,m.panels.value=_}}let m={selectedIndex:x(()=>{var r,e;return(e=(r=o.value)!=null?r:a.defaultIndex)!=null?e:null}),orientation:x(()=>a.vertical?"vertical":"horizontal"),activation:x(()=>a.manual?"manual":"auto"),tabs:t,panels:w,setSelectedIndex(r){k.value!==r&&f("change",r),S.value||g(r)},registerTab(r){var e;if(t.value.includes(r))return;let u=t.value[o.value];t.value.push(r),t.value=j(t.value,h);let _=(e=t.value.indexOf(u))!=null?e:o.value;_!==-1&&(o.value=_)},unregisterTab(r){let e=t.value.indexOf(r);e!==-1&&t.value.splice(e,1)},registerPanel(r){w.value.includes(r)||(w.value.push(r),w.value=j(w.value,h))},unregisterPanel(r){let e=w.value.indexOf(r);e!==-1&&w.value.splice(e,1)}};ee(ue,m);let P=I({tabs:[],panels:[]}),s=I(!1);J(()=>{s.value=!0}),ee(Z,x(()=>s.value?null:P.value));let y=x(()=>a.selectedIndex);return J(()=>{ce([y],()=>{var r;return g((r=a.selectedIndex)!=null?r:a.defaultIndex)},{immediate:!0})}),pe(()=>{if(!S.value||k.value==null||m.tabs.value.length<=0)return;let r=j(m.tabs.value,h);r.some((e,u)=>h(m.tabs.value[u])!==h(e))&&m.setSelectedIndex(r.findIndex(e=>h(e)===h(m.tabs.value[k.value])))}),()=>{let r={selectedIndex:o.value};return H(K,[t.value.length<=0&&H(Se,{onFocus:()=>{for(let e of t.value){let u=h(e);if((u==null?void 0:u.tabIndex)===0)return u.focus(),!0}return!1}}),R({theirProps:{...i,...he(a,["selectedIndex","defaultIndex","manual","vertical","onChange"])},ourProps:{},slot:r,slots:p,attrs:i,name:"TabGroup"})])}}}),Fe=O({name:"TabList",props:{as:{type:[Object,String],default:"div"}},setup(a,{attrs:p,slots:i}){let f=V("TabList");return()=>{let c={selectedIndex:f.selectedIndex.value},o={role:"tablist","aria-orientation":f.orientation.value};return R({ourProps:o,theirProps:a,slot:c,attrs:p,slots:i,name:"TabList"})}}}),Ce=O({name:"Tab",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`headlessui-tabs-tab-${oe()}`}},setup(a,{attrs:p,slots:i,expose:f}){let c=V("Tab"),o=I(null);f({el:o,$el:o}),J(()=>c.registerTab(o)),ne(()=>c.unregisterTab(o));let t=Q(Z),w=x(()=>{if(t.value){let e=t.value.tabs.indexOf(a.id);return e===-1?t.value.tabs.push(a.id)-1:e}return-1}),S=x(()=>{let e=c.tabs.value.indexOf(o);return e===-1?w.value:e}),k=x(()=>S.value===c.selectedIndex.value);function g(e){var u;let _=e();if(_===G.Success&&c.activation.value==="auto"){let L=(u=ke(o))==null?void 0:u.activeElement,T=c.tabs.value.findIndex(F=>h(F)===L);T!==-1&&c.setSelectedIndex(T)}return _}function m(e){let u=c.tabs.value.map(_=>h(_)).filter(Boolean);if(e.key===A.Space||e.key===A.Enter){e.preventDefault(),e.stopPropagation(),c.setSelectedIndex(S.value);return}switch(e.key){case A.Home:case A.PageUp:return e.preventDefault(),e.stopPropagation(),g(()=>E(u,U.First));case A.End:case A.PageDown:return e.preventDefault(),e.stopPropagation(),g(()=>E(u,U.Last))}if(g(()=>z(c.orientation.value,{vertical(){return e.key===A.ArrowUp?E(u,U.Previous|U.WrapAround):e.key===A.ArrowDown?E(u,U.Next|U.WrapAround):G.Error},horizontal(){return e.key===A.ArrowLeft?E(u,U.Previous|U.WrapAround):e.key===A.ArrowRight?E(u,U.Next|U.WrapAround):G.Error}}))===G.Success)return e.preventDefault()}let P=I(!1);function s(){var e;P.value||(P.value=!0,!a.disabled&&((e=h(o))==null||e.focus({preventScroll:!0}),c.setSelectedIndex(S.value),we(()=>{P.value=!1})))}function y(e){e.preventDefault()}let r=_e(x(()=>({as:a.as,type:p.type})),o);return()=>{var e;let u={selected:k.value},{id:_,...L}=a,T={ref:o,onKeydown:m,onMousedown:y,onClick:s,id:_,role:"tab",type:r.value,"aria-controls":(e=h(c.panels.value[S.value]))==null?void 0:e.id,"aria-selected":k.value,tabIndex:k.value?0:-1,disabled:a.disabled?!0:void 0};return R({ourProps:T,theirProps:L,slot:u,attrs:p,slots:i,name:"Tab"})}}}),Ae=O({name:"TabPanels",props:{as:{type:[Object,String],default:"div"}},setup(a,{slots:p,attrs:i}){let f=V("TabPanels");return()=>{let c={selectedIndex:f.selectedIndex.value};return R({theirProps:a,ourProps:{},slot:c,attrs:i,slots:p,name:"TabPanels"})}}}),W=O({name:"TabPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:()=>`headlessui-tabs-panel-${oe()}`},tabIndex:{type:Number,default:0}},setup(a,{attrs:p,slots:i,expose:f}){let c=V("TabPanel"),o=I(null);f({el:o,$el:o}),J(()=>c.registerPanel(o)),ne(()=>c.unregisterPanel(o));let t=Q(Z),w=x(()=>{if(t.value){let g=t.value.panels.indexOf(a.id);return g===-1?t.value.panels.push(a.id)-1:g}return-1}),S=x(()=>{let g=c.panels.value.indexOf(o);return g===-1?w.value:g}),k=x(()=>S.value===c.selectedIndex.value);return()=>{var g;let m={selected:k.value},{id:P,tabIndex:s,...y}=a,r={ref:o,id:P,role:"tabpanel","aria-labelledby":(g=h(c.tabs.value[S.value]))==null?void 0:g.id,tabIndex:k.value?s:-1};return!k.value&&a.unmount&&!a.static?H(ie,{as:"span",...r}):R({ourProps:r,theirProps:y,slot:m,attrs:p,slots:i,features:re.Static|re.RenderStrategy,visible:k.value,name:"TabPanel"})}}});const Ue={class:"max-w-6xl px-2 py-3 mx-auto space-y-4 md:py-12 md:px-10"},$e={class:"flex flex-col md:flex-row md:items-center md:justify-between"},Le={key:0,class:"text-lg mb-2 md:mb-0 md:text-2xl font-bold text-gray-700 dark:text-gray-200"},Be={key:1,class:"text-lg italic mb-2 md:mb-0 md:text-2xl font-bold text-gray-500 dark:text-gray-500"},Ee={key:0,class:"text-xs text-gray-500 dark:text-gray-500"},Oe={class:"text-sm"},Ne={class:"text-gray-500 dark:text-gray-400"},je={class:"text-sm text-gray-500 dark:text-gray-400"},Re={class:"mb-2 text-lg font-bold text-gray-900 dark:text-white"},Ve={class:"flex flex-col md:flex-row justify-between pr-4"},De={class:"mb-2 text-sm"},qe={class:"text-sm"},Me=l("br",null,null,-1),Ge=l("a",{class:"text-blue-500 dark:text-blue-400 hover:underline",href:"https://mc-heads.net/skin/xinecraft.png",target:"_blank"},"https://mc-heads.net/skin/xinecraft.png",-1),We=l("img",{src:"/images/valid-skin-format.png",alt:"Skin Sample",class:"w48 h-40"},null,-1),ze=["onSubmit"],He={class:"col-span-6 sm:col-span-6 pt-4 space-y-3"},Je={class:"text-sm text-gray-700 font-bold dark:text-gray-300"},Xe={class:"flex gap-6"},Ye={class:"flex"},Ke={class:"flex items-center h-5"},Qe={class:"ml-2 text-sm"},Ze={for:"skin_type_steve",class:"font-medium text-gray-900 dark:text-gray-300"},et={class:"flex"},tt={class:"flex items-center h-5"},at={class:"ml-2 text-sm"},lt={for:"skin_type_alex",class:"font-medium text-gray-900 dark:text-gray-300"},st={class:"col-span-6 sm:col-span-6 pt-4 space-y-3"},rt={class:"text-sm text-gray-700 font-bold dark:text-gray-300"},nt={class:"flex gap-6"},ot={key:0,class:"text-xs text-red-500"},it={class:"mt-6"},ut={class:"mb-2 text-lg font-bold text-gray-900 dark:text-white"},dt={class:"text-sm"},ct={class:"mb-2"},pt={class:"list-disc list-inside"},mt=["onSubmit"],ft={class:"col-span-6 sm:col-span-6"},gt={class:"mt-6"},bt={class:"mb-2 text-lg font-bold text-gray-900 dark:text-white"},yt={class:"mb-2 text-sm"},vt={class:"text-sm"},ht=["onSubmit"],_t={class:"col-span-6 sm:col-span-6"},xt={class:"mt-6"},kt={class:"mb-2 text-lg font-bold text-gray-900 dark:text-white"},wt={class:"mb-2 text-sm"},St=["onSubmit"],Pt={class:"mt-6"},jt={__name:"ChangeSkin",props:{uuid:{type:String,required:!1},players:{type:Array,required:!0},hasServersWithFeature:{type:Boolean,required:!0},cooldown:{type:Number}},setup(a){const p=a;let i=I(p.players[0]);const f=p.players.find(s=>s.uuid===p.uuid);f&&(i.value=f);const c=["Upload Skin","From URL","From Username","Reset"],o=I(null),t=me({action_type:"upload",player_uuid:null,skin_type:"steve",file:null,username:"",url:""}),w=()=>{t.action_type="upload",t.file=o.value.files[0],t.player_uuid=i.value.uuid,t.post(route("change-player-skin.update"),{onSuccess:()=>{t.reset()}})},S=()=>{t.action_type="url",t.username=null,t.player_uuid=i.value.uuid,t.post(route("change-player-skin.update"),{onSuccess:()=>{t.reset()}})},k=()=>{t.action_type="username",t.url=null,t.player_uuid=i.value.uuid,t.post(route("change-player-skin.update"),{onSuccess:()=>{t.reset()}})},g=()=>{t.action_type="reset",t.url=null,t.username=null,t.player_uuid=i.value.uuid,t.post(route("change-player-skin.update"),{onSuccess:()=>{t.reset()}})},m=["https://namemc.com/skin/a569a3e7aad87b3a","https://minesk.in/7a8d3a710c5b440a875d9b6fb4d7d9a3","http://novask.in/6673493202.png","http://textures.minecraft.net/texture/63741c4509672cc31e43750d5223d4b3099f851e8039651550e98719692dd028"],P=x(()=>!p.hasServersWithFeature||t.processing||!i.value);return(s,y)=>{const r=fe("AppHead");return C(),D(ve,null,{default:b(()=>[v(r,{title:s.__("Change Player Skin")},null,8,["title"]),l("div",Ue,[l("div",$e,[d(i)?(C(),B("h2",Le,n(s.__("Change skin for :username",{username:d(i).username})),1)):(C(),B("h2",Be,n(s.__("No Linked Players")),1)),v(d(ye),{id:"country",modelValue:d(i),"onUpdate:modelValue":y[0]||(y[0]=e=>ge(i)?i.value=e:i=e),class:"w-full md:w-1/3 bg-gray-300 border-gray-300 rounded-md shadow-sm focus:ring-light-blue-500 focus:border-light-blue-500 sm:text-sm dark:bg-gray-900",options:a.players,multiple:!1,placeholder:s.__("Search")+"...",label:"username","allow-empty":!1,"deselect-label":s.__("Can't remove"),"track-by":"id"},null,8,["modelValue","options","placeholder","deselect-label"])]),d(i)?(C(),B("p",Ee,n(s.__("Player Uuid"))+": "+n(d(i).uuid),1)):N("",!0),a.hasServersWithFeature?N("",!0):(C(),D(Y,{key:1,"text-color":"text-red-800 dark:text-red-500","border-color":"border-red-500"},{body:b(()=>[l("p",Ne,n(s.__("This feature is not enabled in any of the servers. Below form will be disabled. ")),1),l("p",je,n(s.__("Please check back later or contact the server administrator.")),1)]),default:b(()=>[l("p",Oe,n(s.__("Oh Jeez! No server support changing of skin yet!")),1)]),_:1})),a.cooldown?(C(),D(Y,{key:2,"text-color":"text-yellow-800 dark:text-yellow-500","border-color":"border-yellow-500"},{default:b(()=>[$(n(s.__("You are on a cooldown! Please wait for :cooldown seconds before you can try again.",{cooldown:a.cooldown})),1)]),_:1})):N("",!0),d(i)?N("",!0):(C(),D(Y,{key:3,"text-color":"text-red-800 dark:text-red-500","border-color":"border-red-500"},{default:b(()=>[$(n(s.__("No linked players found. Please link a player to your account.")),1)]),_:1})),v(d(Te),{as:"div",class:"md:flex"},{default:b(()=>[v(d(Fe),{as:"ul",class:"mb-4 space-y-4 text-sm font-medium text-gray-500 flex-column space-y dark:text-gray-400 md:me-4 md:mb-0"},{default:b(()=>[(C(),B(K,null,te(c,(e,u)=>v(d(Ce),{key:u,as:"li",class:"focus:outline-none whitespace-nowrap"},{default:b(({selected:_})=>[l("a",{href:"#",class:be({"inline-flex items-center w-full px-4 py-3 rounded-lg hover:text-gray-900 bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 dark:hover:text-white":!_,"inline-flex items-center w-full px-4 py-3 text-white bg-gray-500 rounded-lg active dark:bg-gray-600":_}),"aria-current":"page"},n(e),3)]),_:2},1024)),64))]),_:1}),v(d(Ae),{as:"div",class:"w-full"},{default:b(()=>[v(d(W),{as:"div",class:"w-full p-6 text-gray-500 rounded-lg bg-gray-50 text-medium dark:text-gray-400 dark:bg-gray-800"},{default:b(()=>[l("h3",Re,n(s.__("Change Skin"))+" - "+n(s.__("Upload Skin")),1),l("div",Ve,[l("div",null,[l("p",De,n(s.__("Please upload a valid skin image. ⚠️")),1),l("p",qe,[$(n(s.__("Refer to the provided sample guide image to understand which image should be upload."))+" ",1),Me,$(" "+n(s.__("A valid skin image should look like this: "))+" ",1),Ge])]),We]),l("form",{class:"w-full border-t mt-4 border-gray-300 dark:border-gray-700",onSubmit:q(w,["prevent"])},[l("div",He,[l("p",Je,n(s.__("Skin Type")),1),l("div",Xe,[l("div",Ye,[l("div",Ke,[ae(l("input",{id:"skin_type_steve","onUpdate:modelValue":y[1]||(y[1]=e=>d(t).skin_type=e),type:"radio",value:"steve",class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600",name:"skin_type"},null,512),[[le,d(t).skin_type]])]),l("div",Qe,[l("label",Ze,n(s.__("Steve")),1)])]),l("div",et,[l("div",tt,[ae(l("input",{id:"skin_type_alex","onUpdate:modelValue":y[2]||(y[2]=e=>d(t).skin_type=e),type:"radio",value:"alex",class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600",name:"skin_type"},null,512),[[le,d(t).skin_type]])]),l("div",at,[l("label",lt,n(s.__("Alex")),1)])])])]),l("div",st,[l("p",rt,n(s.__("Skin File")),1),l("div",nt,[l("input",{id:"file",ref_key:"file",ref:o,accept:".png",type:"file",class:"block p-2 w-full text-sm text-gray-900 border border-gray-300 rounded-lg cursor-pointer bg-gray-50 dark:text-gray-400 focus:outline-none dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400",required:""},null,512)]),d(t).errors.file?(C(),B("p",ot,n(d(t).errors.file),1)):N("",!0)]),l("div",it,[v(M,{loading:d(t).processing,class:"inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-light-blue-500 hover:bg-light-blue-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-light-blue-500 disabled:opacity-50",disabled:P.value,type:"submit"},{default:b(()=>[$(n(s.__("Change Skin")),1)]),_:1},8,["loading","disabled"])])],40,ze)]),_:1}),v(d(W),{as:"div",class:"w-full p-6 text-gray-500 rounded-lg bg-gray-50 text-medium dark:text-gray-400 dark:bg-gray-800"},{default:b(()=>[l("h3",ut,n(s.__("Change Skin"))+" - "+n(s.__("From URL")),1),l("div",dt,[l("p",ct,n(s.__("Change your skin by providing a valid skin URL. You can find skin from namemc.com, mineskin.org and other skin websites.")),1),l("p",null,[$(n(s.__("Here are some examples of valid skin url:"))+" ",1),l("ul",pt,[(C(),B(K,null,te(m,e=>l("li",{key:e,class:"list-item break-all"},n(e),1)),64))])])]),l("form",{class:"w-full mt-4",onSubmit:q(S,["prevent"])},[l("div",ft,[v(se,{id:"url",modelValue:d(t).url,"onUpdate:modelValue":y[3]||(y[3]=e=>d(t).url=e),label:s.__("Skin URL"),error:d(t).errors.url,type:"text",name:"url","help-error-flex":"flex-row"},null,8,["modelValue","label","error"])]),l("div",gt,[v(M,{loading:d(t).processing,class:"inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-light-blue-500 hover:bg-light-blue-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-light-blue-500 disabled:opacity-50",disabled:P.value,type:"submit"},{default:b(()=>[$(n(s.__("Change Skin")),1)]),_:1},8,["loading","disabled"])])],40,mt)]),_:1}),v(d(W),{as:"div",class:"w-full p-6 text-gray-500 rounded-lg bg-gray-50 text-medium dark:text-gray-400 dark:bg-gray-800"},{default:b(()=>[l("h3",bt,n(s.__("Change Skin"))+" - "+n(s.__("From Username")),1),l("p",yt,n(s.__("Change your skin by providing a valid Minecraft username (Premium account).")),1),l("p",vt,n(s.__("The skin will be fetched from Mojang server.")),1),l("form",{class:"w-full mt-4",onSubmit:q(k,["prevent"])},[l("div",_t,[v(se,{id:"username",modelValue:d(t).username,"onUpdate:modelValue":y[4]||(y[4]=e=>d(t).username=e),label:s.__("Eg: xinecraft"),error:d(t).errors.username,type:"text",name:"username","help-error-flex":"flex-row"},null,8,["modelValue","label","error"])]),l("div",xt,[v(M,{loading:d(t).processing,class:"inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-light-blue-500 hover:bg-light-blue-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-light-blue-500 disabled:opacity-50",disabled:P.value,type:"submit"},{default:b(()=>[$(n(s.__("Change Skin")),1)]),_:1},8,["loading","disabled"])])],40,ht)]),_:1}),v(d(W),{as:"div",class:"w-full p-6 text-gray-500 rounded-lg bg-gray-50 text-medium dark:text-gray-400 dark:bg-gray-800"},{default:b(()=>[l("h3",kt,n(s.__("Change Skin"))+" - "+n(s.__("Reset")),1),l("p",wt,n(s.__("Reset your skin to default Minecraft skin. If you have premium minecraft account it will reset to your premium skin.")),1),l("form",{class:"w-full mt-4",onSubmit:q(g,["prevent"])},[l("div",Pt,[v(M,{loading:d(t).processing,class:"inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-red-500 hover:bg-red-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 disabled:opacity-50",disabled:P.value,type:"submit"},{default:b(()=>[$(n(s.__("Reset to Default Skin")),1)]),_:1},8,["loading","disabled"])])],40,St)]),_:1})]),_:1})]),_:1})])]),_:1})}}};export{jt as default}; +import{z as O,r as I,G as H,x,y as ee,A as J,E as ce,s as pe,F as K,B as ne,C as Q,T as me,l as fe,o as C,c as D,w as b,b as v,a as l,u as d,d as B,t as n,J as ge,e as N,f as $,g as te,i as q,j as ae,bF as le,n as be}from"./app-b56afa57.js";import{s as ye}from"./vue-multiselect.esm-f8979d44.js";import{X as se}from"./XInput-2db776cf.js";import{A as ve}from"./AppLayout-9dd9991d.js";import{L as M}from"./LoadingButton-0b0faf9b.js";import{_ as Y}from"./AlertCard-bdb62b63.js";import{o as h,H as R,T as he,t as oe,N as re,u as z,b as _e,a as A}from"./use-resolve-button-type-9e76052c.js";import{a as xe,f as ie,O as j,T as G,m as ke,P as E,N as U}from"./hidden-4383f5d9.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./Icon-c6b983eb.js";import"./useAuthorizable-94e7d830.js";import"./XMarkIcon-2ab1c8ef.js";function we(a){typeof queueMicrotask=="function"?queueMicrotask(a):Promise.resolve().then(a).catch(p=>setTimeout(()=>{throw p}))}let Se=O({props:{onFocus:{type:Function,required:!0}},setup(a){let p=I(!0);return()=>p.value?H(ie,{as:"button",type:"button",features:xe.Focusable,onFocus(i){i.preventDefault();let f,c=50;function o(){var t;if(c--<=0){f&&cancelAnimationFrame(f);return}if((t=a.onFocus)!=null&&t.call(a)){p.value=!1,cancelAnimationFrame(f);return}f=requestAnimationFrame(o)}f=requestAnimationFrame(o)}}):null}});var Pe=(a=>(a[a.Forwards=0]="Forwards",a[a.Backwards=1]="Backwards",a))(Pe||{}),Ie=(a=>(a[a.Less=-1]="Less",a[a.Equal=0]="Equal",a[a.Greater=1]="Greater",a))(Ie||{});let ue=Symbol("TabsContext");function V(a){let p=Q(ue,null);if(p===null){let i=new Error(`<${a} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,V),i}return p}let Z=Symbol("TabsSSRContext"),Te=O({name:"TabGroup",emits:{change:a=>!0},props:{as:{type:[Object,String],default:"template"},selectedIndex:{type:[Number],default:null},defaultIndex:{type:[Number],default:0},vertical:{type:[Boolean],default:!1},manual:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(a,{slots:p,attrs:i,emit:f}){var c;let o=I((c=a.selectedIndex)!=null?c:a.defaultIndex),t=I([]),w=I([]),S=x(()=>a.selectedIndex!==null),k=x(()=>S.value?a.selectedIndex:o.value);function g(r){var e;let u=j(m.tabs.value,h),_=j(m.panels.value,h),L=u.filter(T=>{var F;return!((F=h(T))!=null&&F.hasAttribute("disabled"))});if(r<0||r>u.length-1){let T=z(o.value===null?0:Math.sign(r-o.value),{[-1]:()=>1,0:()=>z(Math.sign(r),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0}),F=z(T,{0:()=>u.indexOf(L[0]),1:()=>u.indexOf(L[L.length-1])});F!==-1&&(o.value=F),m.tabs.value=u,m.panels.value=_}else{let T=u.slice(0,r),F=[...u.slice(r),...T].find(de=>L.includes(de));if(!F)return;let X=(e=u.indexOf(F))!=null?e:m.selectedIndex.value;X===-1&&(X=m.selectedIndex.value),o.value=X,m.tabs.value=u,m.panels.value=_}}let m={selectedIndex:x(()=>{var r,e;return(e=(r=o.value)!=null?r:a.defaultIndex)!=null?e:null}),orientation:x(()=>a.vertical?"vertical":"horizontal"),activation:x(()=>a.manual?"manual":"auto"),tabs:t,panels:w,setSelectedIndex(r){k.value!==r&&f("change",r),S.value||g(r)},registerTab(r){var e;if(t.value.includes(r))return;let u=t.value[o.value];t.value.push(r),t.value=j(t.value,h);let _=(e=t.value.indexOf(u))!=null?e:o.value;_!==-1&&(o.value=_)},unregisterTab(r){let e=t.value.indexOf(r);e!==-1&&t.value.splice(e,1)},registerPanel(r){w.value.includes(r)||(w.value.push(r),w.value=j(w.value,h))},unregisterPanel(r){let e=w.value.indexOf(r);e!==-1&&w.value.splice(e,1)}};ee(ue,m);let P=I({tabs:[],panels:[]}),s=I(!1);J(()=>{s.value=!0}),ee(Z,x(()=>s.value?null:P.value));let y=x(()=>a.selectedIndex);return J(()=>{ce([y],()=>{var r;return g((r=a.selectedIndex)!=null?r:a.defaultIndex)},{immediate:!0})}),pe(()=>{if(!S.value||k.value==null||m.tabs.value.length<=0)return;let r=j(m.tabs.value,h);r.some((e,u)=>h(m.tabs.value[u])!==h(e))&&m.setSelectedIndex(r.findIndex(e=>h(e)===h(m.tabs.value[k.value])))}),()=>{let r={selectedIndex:o.value};return H(K,[t.value.length<=0&&H(Se,{onFocus:()=>{for(let e of t.value){let u=h(e);if((u==null?void 0:u.tabIndex)===0)return u.focus(),!0}return!1}}),R({theirProps:{...i,...he(a,["selectedIndex","defaultIndex","manual","vertical","onChange"])},ourProps:{},slot:r,slots:p,attrs:i,name:"TabGroup"})])}}}),Fe=O({name:"TabList",props:{as:{type:[Object,String],default:"div"}},setup(a,{attrs:p,slots:i}){let f=V("TabList");return()=>{let c={selectedIndex:f.selectedIndex.value},o={role:"tablist","aria-orientation":f.orientation.value};return R({ourProps:o,theirProps:a,slot:c,attrs:p,slots:i,name:"TabList"})}}}),Ce=O({name:"Tab",props:{as:{type:[Object,String],default:"button"},disabled:{type:[Boolean],default:!1},id:{type:String,default:()=>`headlessui-tabs-tab-${oe()}`}},setup(a,{attrs:p,slots:i,expose:f}){let c=V("Tab"),o=I(null);f({el:o,$el:o}),J(()=>c.registerTab(o)),ne(()=>c.unregisterTab(o));let t=Q(Z),w=x(()=>{if(t.value){let e=t.value.tabs.indexOf(a.id);return e===-1?t.value.tabs.push(a.id)-1:e}return-1}),S=x(()=>{let e=c.tabs.value.indexOf(o);return e===-1?w.value:e}),k=x(()=>S.value===c.selectedIndex.value);function g(e){var u;let _=e();if(_===G.Success&&c.activation.value==="auto"){let L=(u=ke(o))==null?void 0:u.activeElement,T=c.tabs.value.findIndex(F=>h(F)===L);T!==-1&&c.setSelectedIndex(T)}return _}function m(e){let u=c.tabs.value.map(_=>h(_)).filter(Boolean);if(e.key===A.Space||e.key===A.Enter){e.preventDefault(),e.stopPropagation(),c.setSelectedIndex(S.value);return}switch(e.key){case A.Home:case A.PageUp:return e.preventDefault(),e.stopPropagation(),g(()=>E(u,U.First));case A.End:case A.PageDown:return e.preventDefault(),e.stopPropagation(),g(()=>E(u,U.Last))}if(g(()=>z(c.orientation.value,{vertical(){return e.key===A.ArrowUp?E(u,U.Previous|U.WrapAround):e.key===A.ArrowDown?E(u,U.Next|U.WrapAround):G.Error},horizontal(){return e.key===A.ArrowLeft?E(u,U.Previous|U.WrapAround):e.key===A.ArrowRight?E(u,U.Next|U.WrapAround):G.Error}}))===G.Success)return e.preventDefault()}let P=I(!1);function s(){var e;P.value||(P.value=!0,!a.disabled&&((e=h(o))==null||e.focus({preventScroll:!0}),c.setSelectedIndex(S.value),we(()=>{P.value=!1})))}function y(e){e.preventDefault()}let r=_e(x(()=>({as:a.as,type:p.type})),o);return()=>{var e;let u={selected:k.value},{id:_,...L}=a,T={ref:o,onKeydown:m,onMousedown:y,onClick:s,id:_,role:"tab",type:r.value,"aria-controls":(e=h(c.panels.value[S.value]))==null?void 0:e.id,"aria-selected":k.value,tabIndex:k.value?0:-1,disabled:a.disabled?!0:void 0};return R({ourProps:T,theirProps:L,slot:u,attrs:p,slots:i,name:"Tab"})}}}),Ae=O({name:"TabPanels",props:{as:{type:[Object,String],default:"div"}},setup(a,{slots:p,attrs:i}){let f=V("TabPanels");return()=>{let c={selectedIndex:f.selectedIndex.value};return R({theirProps:a,ourProps:{},slot:c,attrs:i,slots:p,name:"TabPanels"})}}}),W=O({name:"TabPanel",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:()=>`headlessui-tabs-panel-${oe()}`},tabIndex:{type:Number,default:0}},setup(a,{attrs:p,slots:i,expose:f}){let c=V("TabPanel"),o=I(null);f({el:o,$el:o}),J(()=>c.registerPanel(o)),ne(()=>c.unregisterPanel(o));let t=Q(Z),w=x(()=>{if(t.value){let g=t.value.panels.indexOf(a.id);return g===-1?t.value.panels.push(a.id)-1:g}return-1}),S=x(()=>{let g=c.panels.value.indexOf(o);return g===-1?w.value:g}),k=x(()=>S.value===c.selectedIndex.value);return()=>{var g;let m={selected:k.value},{id:P,tabIndex:s,...y}=a,r={ref:o,id:P,role:"tabpanel","aria-labelledby":(g=h(c.tabs.value[S.value]))==null?void 0:g.id,tabIndex:k.value?s:-1};return!k.value&&a.unmount&&!a.static?H(ie,{as:"span",...r}):R({ourProps:r,theirProps:y,slot:m,attrs:p,slots:i,features:re.Static|re.RenderStrategy,visible:k.value,name:"TabPanel"})}}});const Ue={class:"max-w-6xl px-2 py-3 mx-auto space-y-4 md:py-12 md:px-10"},$e={class:"flex flex-col md:flex-row md:items-center md:justify-between"},Le={key:0,class:"text-lg mb-2 md:mb-0 md:text-2xl font-bold text-gray-700 dark:text-gray-200"},Be={key:1,class:"text-lg italic mb-2 md:mb-0 md:text-2xl font-bold text-gray-500 dark:text-gray-500"},Ee={key:0,class:"text-xs text-gray-500 dark:text-gray-500"},Oe={class:"text-sm"},Ne={class:"text-gray-500 dark:text-gray-400"},je={class:"text-sm text-gray-500 dark:text-gray-400"},Re={class:"mb-2 text-lg font-bold text-gray-900 dark:text-white"},Ve={class:"flex flex-col md:flex-row justify-between pr-4"},De={class:"mb-2 text-sm"},qe={class:"text-sm"},Me=l("br",null,null,-1),Ge=l("a",{class:"text-blue-500 dark:text-blue-400 hover:underline",href:"https://mc-heads.net/skin/xinecraft.png",target:"_blank"},"https://mc-heads.net/skin/xinecraft.png",-1),We=l("img",{src:"/images/valid-skin-format.png",alt:"Skin Sample",class:"w48 h-40"},null,-1),ze=["onSubmit"],He={class:"col-span-6 sm:col-span-6 pt-4 space-y-3"},Je={class:"text-sm text-gray-700 font-bold dark:text-gray-300"},Xe={class:"flex gap-6"},Ye={class:"flex"},Ke={class:"flex items-center h-5"},Qe={class:"ml-2 text-sm"},Ze={for:"skin_type_steve",class:"font-medium text-gray-900 dark:text-gray-300"},et={class:"flex"},tt={class:"flex items-center h-5"},at={class:"ml-2 text-sm"},lt={for:"skin_type_alex",class:"font-medium text-gray-900 dark:text-gray-300"},st={class:"col-span-6 sm:col-span-6 pt-4 space-y-3"},rt={class:"text-sm text-gray-700 font-bold dark:text-gray-300"},nt={class:"flex gap-6"},ot={key:0,class:"text-xs text-red-500"},it={class:"mt-6"},ut={class:"mb-2 text-lg font-bold text-gray-900 dark:text-white"},dt={class:"text-sm"},ct={class:"mb-2"},pt={class:"list-disc list-inside"},mt=["onSubmit"],ft={class:"col-span-6 sm:col-span-6"},gt={class:"mt-6"},bt={class:"mb-2 text-lg font-bold text-gray-900 dark:text-white"},yt={class:"mb-2 text-sm"},vt={class:"text-sm"},ht=["onSubmit"],_t={class:"col-span-6 sm:col-span-6"},xt={class:"mt-6"},kt={class:"mb-2 text-lg font-bold text-gray-900 dark:text-white"},wt={class:"mb-2 text-sm"},St=["onSubmit"],Pt={class:"mt-6"},jt={__name:"ChangeSkin",props:{uuid:{type:String,required:!1},players:{type:Array,required:!0},hasServersWithFeature:{type:Boolean,required:!0},cooldown:{type:Number}},setup(a){const p=a;let i=I(p.players[0]);const f=p.players.find(s=>s.uuid===p.uuid);f&&(i.value=f);const c=["Upload Skin","From URL","From Username","Reset"],o=I(null),t=me({action_type:"upload",player_uuid:null,skin_type:"steve",file:null,username:"",url:""}),w=()=>{t.action_type="upload",t.file=o.value.files[0],t.player_uuid=i.value.uuid,t.post(route("change-player-skin.update"),{onSuccess:()=>{t.reset()}})},S=()=>{t.action_type="url",t.username=null,t.player_uuid=i.value.uuid,t.post(route("change-player-skin.update"),{onSuccess:()=>{t.reset()}})},k=()=>{t.action_type="username",t.url=null,t.player_uuid=i.value.uuid,t.post(route("change-player-skin.update"),{onSuccess:()=>{t.reset()}})},g=()=>{t.action_type="reset",t.url=null,t.username=null,t.player_uuid=i.value.uuid,t.post(route("change-player-skin.update"),{onSuccess:()=>{t.reset()}})},m=["https://namemc.com/skin/a569a3e7aad87b3a","https://minesk.in/7a8d3a710c5b440a875d9b6fb4d7d9a3","http://novask.in/6673493202.png","http://textures.minecraft.net/texture/63741c4509672cc31e43750d5223d4b3099f851e8039651550e98719692dd028"],P=x(()=>!p.hasServersWithFeature||t.processing||!i.value);return(s,y)=>{const r=fe("AppHead");return C(),D(ve,null,{default:b(()=>[v(r,{title:s.__("Change Player Skin")},null,8,["title"]),l("div",Ue,[l("div",$e,[d(i)?(C(),B("h2",Le,n(s.__("Change skin for :username",{username:d(i).username})),1)):(C(),B("h2",Be,n(s.__("No Linked Players")),1)),v(d(ye),{id:"country",modelValue:d(i),"onUpdate:modelValue":y[0]||(y[0]=e=>ge(i)?i.value=e:i=e),class:"w-full md:w-1/3 bg-gray-300 border-gray-300 rounded-md shadow-sm focus:ring-light-blue-500 focus:border-light-blue-500 sm:text-sm dark:bg-gray-900",options:a.players,multiple:!1,placeholder:s.__("Search")+"...",label:"username","allow-empty":!1,"deselect-label":s.__("Can't remove"),"track-by":"id"},null,8,["modelValue","options","placeholder","deselect-label"])]),d(i)?(C(),B("p",Ee,n(s.__("Player Uuid"))+": "+n(d(i).uuid),1)):N("",!0),a.hasServersWithFeature?N("",!0):(C(),D(Y,{key:1,"text-color":"text-red-800 dark:text-red-500","border-color":"border-red-500"},{body:b(()=>[l("p",Ne,n(s.__("This feature is not enabled in any of the servers. Below form will be disabled. ")),1),l("p",je,n(s.__("Please check back later or contact the server administrator.")),1)]),default:b(()=>[l("p",Oe,n(s.__("Oh Jeez! No server support changing of skin yet!")),1)]),_:1})),a.cooldown?(C(),D(Y,{key:2,"text-color":"text-yellow-800 dark:text-yellow-500","border-color":"border-yellow-500"},{default:b(()=>[$(n(s.__("You are on a cooldown! Please wait for :cooldown seconds before you can try again.",{cooldown:a.cooldown})),1)]),_:1})):N("",!0),d(i)?N("",!0):(C(),D(Y,{key:3,"text-color":"text-red-800 dark:text-red-500","border-color":"border-red-500"},{default:b(()=>[$(n(s.__("No linked players found. Please link a player to your account.")),1)]),_:1})),v(d(Te),{as:"div",class:"md:flex"},{default:b(()=>[v(d(Fe),{as:"ul",class:"mb-4 space-y-4 text-sm font-medium text-gray-500 flex-column space-y dark:text-gray-400 md:me-4 md:mb-0"},{default:b(()=>[(C(),B(K,null,te(c,(e,u)=>v(d(Ce),{key:u,as:"li",class:"focus:outline-none whitespace-nowrap"},{default:b(({selected:_})=>[l("a",{href:"#",class:be({"inline-flex items-center w-full px-4 py-3 rounded-lg hover:text-gray-900 bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 dark:hover:text-white":!_,"inline-flex items-center w-full px-4 py-3 text-white bg-gray-500 rounded-lg active dark:bg-gray-600":_}),"aria-current":"page"},n(e),3)]),_:2},1024)),64))]),_:1}),v(d(Ae),{as:"div",class:"w-full"},{default:b(()=>[v(d(W),{as:"div",class:"w-full p-6 text-gray-500 rounded-lg bg-gray-50 text-medium dark:text-gray-400 dark:bg-gray-800"},{default:b(()=>[l("h3",Re,n(s.__("Change Skin"))+" - "+n(s.__("Upload Skin")),1),l("div",Ve,[l("div",null,[l("p",De,n(s.__("Please upload a valid skin image. ⚠️")),1),l("p",qe,[$(n(s.__("Refer to the provided sample guide image to understand which image should be upload."))+" ",1),Me,$(" "+n(s.__("A valid skin image should look like this: "))+" ",1),Ge])]),We]),l("form",{class:"w-full border-t mt-4 border-gray-300 dark:border-gray-700",onSubmit:q(w,["prevent"])},[l("div",He,[l("p",Je,n(s.__("Skin Type")),1),l("div",Xe,[l("div",Ye,[l("div",Ke,[ae(l("input",{id:"skin_type_steve","onUpdate:modelValue":y[1]||(y[1]=e=>d(t).skin_type=e),type:"radio",value:"steve",class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600",name:"skin_type"},null,512),[[le,d(t).skin_type]])]),l("div",Qe,[l("label",Ze,n(s.__("Steve")),1)])]),l("div",et,[l("div",tt,[ae(l("input",{id:"skin_type_alex","onUpdate:modelValue":y[2]||(y[2]=e=>d(t).skin_type=e),type:"radio",value:"alex",class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600",name:"skin_type"},null,512),[[le,d(t).skin_type]])]),l("div",at,[l("label",lt,n(s.__("Alex")),1)])])])]),l("div",st,[l("p",rt,n(s.__("Skin File")),1),l("div",nt,[l("input",{id:"file",ref_key:"file",ref:o,accept:".png",type:"file",class:"block p-2 w-full text-sm text-gray-900 border border-gray-300 rounded-lg cursor-pointer bg-gray-50 dark:text-gray-400 focus:outline-none dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400",required:""},null,512)]),d(t).errors.file?(C(),B("p",ot,n(d(t).errors.file),1)):N("",!0)]),l("div",it,[v(M,{loading:d(t).processing,class:"inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-light-blue-500 hover:bg-light-blue-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-light-blue-500 disabled:opacity-50",disabled:P.value,type:"submit"},{default:b(()=>[$(n(s.__("Change Skin")),1)]),_:1},8,["loading","disabled"])])],40,ze)]),_:1}),v(d(W),{as:"div",class:"w-full p-6 text-gray-500 rounded-lg bg-gray-50 text-medium dark:text-gray-400 dark:bg-gray-800"},{default:b(()=>[l("h3",ut,n(s.__("Change Skin"))+" - "+n(s.__("From URL")),1),l("div",dt,[l("p",ct,n(s.__("Change your skin by providing a valid skin URL. You can find skin from namemc.com, mineskin.org and other skin websites.")),1),l("p",null,[$(n(s.__("Here are some examples of valid skin url:"))+" ",1),l("ul",pt,[(C(),B(K,null,te(m,e=>l("li",{key:e,class:"list-item break-all"},n(e),1)),64))])])]),l("form",{class:"w-full mt-4",onSubmit:q(S,["prevent"])},[l("div",ft,[v(se,{id:"url",modelValue:d(t).url,"onUpdate:modelValue":y[3]||(y[3]=e=>d(t).url=e),label:s.__("Skin URL"),error:d(t).errors.url,type:"text",name:"url","help-error-flex":"flex-row"},null,8,["modelValue","label","error"])]),l("div",gt,[v(M,{loading:d(t).processing,class:"inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-light-blue-500 hover:bg-light-blue-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-light-blue-500 disabled:opacity-50",disabled:P.value,type:"submit"},{default:b(()=>[$(n(s.__("Change Skin")),1)]),_:1},8,["loading","disabled"])])],40,mt)]),_:1}),v(d(W),{as:"div",class:"w-full p-6 text-gray-500 rounded-lg bg-gray-50 text-medium dark:text-gray-400 dark:bg-gray-800"},{default:b(()=>[l("h3",bt,n(s.__("Change Skin"))+" - "+n(s.__("From Username")),1),l("p",yt,n(s.__("Change your skin by providing a valid Minecraft username (Premium account).")),1),l("p",vt,n(s.__("The skin will be fetched from Mojang server.")),1),l("form",{class:"w-full mt-4",onSubmit:q(k,["prevent"])},[l("div",_t,[v(se,{id:"username",modelValue:d(t).username,"onUpdate:modelValue":y[4]||(y[4]=e=>d(t).username=e),label:s.__("Eg: xinecraft"),error:d(t).errors.username,type:"text",name:"username","help-error-flex":"flex-row"},null,8,["modelValue","label","error"])]),l("div",xt,[v(M,{loading:d(t).processing,class:"inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-light-blue-500 hover:bg-light-blue-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-light-blue-500 disabled:opacity-50",disabled:P.value,type:"submit"},{default:b(()=>[$(n(s.__("Change Skin")),1)]),_:1},8,["loading","disabled"])])],40,ht)]),_:1}),v(d(W),{as:"div",class:"w-full p-6 text-gray-500 rounded-lg bg-gray-50 text-medium dark:text-gray-400 dark:bg-gray-800"},{default:b(()=>[l("h3",kt,n(s.__("Change Skin"))+" - "+n(s.__("Reset")),1),l("p",wt,n(s.__("Reset your skin to default Minecraft skin. If you have premium minecraft account it will reset to your premium skin.")),1),l("form",{class:"w-full mt-4",onSubmit:q(g,["prevent"])},[l("div",Pt,[v(M,{loading:d(t).processing,class:"inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-red-500 hover:bg-red-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 disabled:opacity-50",disabled:P.value,type:"submit"},{default:b(()=>[$(n(s.__("Reset to Default Skin")),1)]),_:1},8,["loading","disabled"])])],40,St)]),_:1})]),_:1})]),_:1})])]),_:1})}}};export{jt as default}; diff --git a/public/build/default/assets/Chart-2a720e20.js b/public/build/default/assets/Chart-281cf293.js similarity index 99% rename from public/build/default/assets/Chart-2a720e20.js rename to public/build/default/assets/Chart-281cf293.js index f71e69890..075779a26 100644 --- a/public/build/default/assets/Chart-2a720e20.js +++ b/public/build/default/assets/Chart-281cf293.js @@ -1,4 +1,4 @@ -import{_ as k}from"./AppLayout-6edbf3df.js";import{z as Ib,K as Hn,C as A4,ab as Pb,x as d1,a3 as Rb,E as M4,s as pl,A as Eb,L as kb,G as Nb,a2 as Ob,u as md,y as Bb,o as Vb,c as zb,p as Gb}from"./app-baae6499.js";var Fb=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),Hb=function(){function r(){this.browser=new Fb,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),A5=new Hb;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(A5.wxa=!0,A5.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?A5.worker=!0:typeof navigator>"u"?(A5.node=!0,A5.svgSupported=!0):Wb(navigator.userAgent,A5);function Wb(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const w0=A5;var eo=12,_d="sans-serif",W9=eo+"px "+_d,$b=20,Ub=100,Yb="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Zb(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function gw(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?ml(s,o):ml(o,s))}function Ad(r){return r.nodeName.toUpperCase()==="CANVAS"}var yw=/([&<>"'])/g,mw={"&":"&","<":"<",">":">",'"':""","'":"'"};function Lt(r){return r==null?"":(r+"").replace(yw,function(e,t){return mw[t]})}var _w=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,$n=[],Sw=w0.browser.firefox&&+w0.browser.version.split(".")[0]<39;function S6(r,e,t,a){return t=t||{},a?Sl(r,e,t):Sw&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):Sl(r,e,t),t}function Sl(r,e,t){if(w0.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(Ad(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(_6($n,r,a,n)){t.zrX=$n[0],t.zrY=$n[1];return}}t.zrX=t.zrY=0}function lo(r){return r||window.event}function Zt(r,e,t){if(e=lo(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&S6(r,o,e,t)}else{S6(r,e,e,t);var i=xw(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&_w.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function xw(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function x6(r,e,t,a){r.addEventListener(e,t,a)}function bw(r,e,t,a){r.removeEventListener(e,t,a)}var s9=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function xl(r){return r.which===2||r.which===3}var ww=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o1&&a&&a.length>1){var i=bl(a)/bl(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=Tw(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function ae(){return[1,0,0,1,0,0]}function rn(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function uo(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function a9(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Ve(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function u1(r,e,t){var a=e[0],n=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),f=Math.cos(t);return r[0]=a*f+o*u,r[1]=-a*u+o*f,r[2]=n*f+s*u,r[3]=-n*u+f*s,r[4]=f*i+u*l,r[5]=f*l-u*i,r}function fo(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function l2(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function Cw(r){var e=ae();return uo(e,r),e}var Aw=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r}();const s0=Aw;var L4=Math.min,I4=Math.max,e5=new s0,r5=new s0,a5=new s0,n5=new s0,w2=new s0,T2=new s0,Mw=function(){function r(e,t,a,n){a<0&&(e=e+a,a=-a),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=a,this.height=n}return r.prototype.union=function(e){var t=L4(e.x,this.x),a=L4(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=I4(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=I4(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=ae();return Ve(i,i,[-t.x,-t.y]),fo(i,i,[a,n]),Ve(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,v=!(ip&&(p=_,dp&&(p=S,y=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}e5.x=a5.x=t.x,e5.y=n5.y=t.y,r5.x=n5.x=t.x+t.width,r5.y=a5.y=t.y+t.height,e5.transform(a),n5.transform(a),r5.transform(a),a5.transform(a),e.x=L4(e5.x,r5.x,a5.x,n5.x),e.y=L4(e5.y,r5.y,a5.y,n5.y);var l=I4(e5.x,r5.x,a5.x,n5.x),u=I4(e5.y,r5.y,a5.y,n5.y);e.width=l-e.x,e.height=u-e.y},r}();const f0=Mw;var Md="silent";function Dw(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Lw}}function Lw(){s9(this.event)}var Iw=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(ie),C2=function(){function r(e,t){this.x=e,this.y=t}return r}(),Pw=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Yn=new f0(0,0,0,0),Dd=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new C2(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new Iw,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new hw(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(M(Pw,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=Ld(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new C2(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new C2(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=Dw(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new C2(t,a);if(wl(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new f0(t-u,a-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Yn.copy(v.getBoundingRect()),v.transform&&Yn.applyTransform(v.transform),Yn.intersect(f)&&s.push(v))}if(s.length)for(var c=4,p=Math.PI/12,d=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function Rw(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1;a.silent&&(n=!0)}var s=a.__hostTarget;a=s||a.parent}return n?Md:!0}return!1}function wl(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=Rw(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==Md)){e.target=o;break}}}function Ld(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}const Ew=Dd;var Id=32,A2=7;function kw(r){for(var e=0;r>=Id;)e|=r&1,r>>=1;return r+e}function Tl(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n=0;)n++;return n-e}function Nw(r,e,t){for(t--;e>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function Zn(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function Xn(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function Ow(r,e){var t=A2,a,n,i=0;r.length;var o=[];a=[],n=[];function s(c,p){a[i]=c,n[i]=p,i+=1}function l(){for(;i>1;){var c=i-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]n[c+1])break;f(c)}}function u(){for(;i>1;){var c=i-2;c>0&&n[c-1]=A2||w>=A2);if(T)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),p===1){for(y=0;y=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=t;;){var T=0,C=0,A=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--p===0){A=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){A=!0;break}while((T|C)=0;y--)r[x+y]=r[b+y];if(p===0){A=!0;break}}if(r[S--]=o[_--],--g===1){A=!0;break}if(C=g-Zn(r[m],o,0,g,g-1,e),C!==0){for(S-=C,_-=C,g-=C,x=S+1,b=_+1,y=0;y=A2||C>=A2);if(A)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(S-=p,m-=p,x=S+1,b=m+1,y=p-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;ys&&(l=s),Cl(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var Vt=1,tr=2,B1=4,Al=!1;function qn(){Al||(Al=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ml(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var Bw=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ml}return r.prototype.traverse=function(e,t){for(var a=0;a0&&(f.__clipPaths=[]),isNaN(f.z)&&(qn(),f.z=0),isNaN(f.z2)&&(qn(),f.z2=0),isNaN(f.zlevel)&&(qn(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,a);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const Vw=Bw;var Pd;Pd=w0.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const b6=Pd;var V7={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-V7.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?V7.bounceIn(r*2)*.5:V7.bounceOut(r*2-1)*.5+.5}};const Rd=V7;var P4=Math.pow,z9=Math.sqrt,na=1e-8,Ed=1e-4,Dl=z9(3),R4=1/3,Ie=l1(),jt=l1(),Y1=l1();function E9(r){return r>-na&&rna||r<-na}function J0(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function Ll(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function ia(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(E9(f)&&E9(h))if(E9(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[c++]=p)}else{var d=h*h-4*f*v;if(E9(d)){var g=h/f,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y)}else if(d>0){var m=z9(d),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-P4(-_,R4):_=P4(_,R4),S<0?S=-P4(-S,R4):S=P4(S,R4);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[c++]=p)}else{var b=(2*f*s-3*o*h)/(2*z9(f*f*f)),x=Math.acos(b)/3,w=z9(f),T=Math.cos(x),p=(-s-2*w*T)/(3*o),y=(-s+w*(T+Dl*Math.sin(x)))/(3*o),C=(-s+w*(T-Dl*Math.sin(x)))/(3*o);p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y),C>=0&&C<=1&&(i[c++]=C)}}return c}function Nd(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(E9(o)){if(kd(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(E9(f))n[0]=-i/(2*o);else if(f>0){var h=z9(f),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function U9(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=a}function Od(r,e,t,a,n,i,o,s,l,u,f){var h,v=.005,c=1/0,p,d,g,y;Ie[0]=l,Ie[1]=u;for(var m=0;m<1;m+=.05)jt[0]=J0(r,t,n,o,m),jt[1]=J0(e,a,i,s,m),g=U5(Ie,jt),g=0&&g=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(E9(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=z9(f),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Bd(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function Ir(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function Vd(r,e,t,a,n,i,o,s,l){var u,f=.005,h=1/0;Ie[0]=o,Ie[1]=s;for(var v=0;v<1;v+=.05){jt[0]=at(r,t,n,v),jt[1]=at(e,a,i,v);var c=U5(Ie,jt);c=0&&c=1?1:ia(0,a,i,1,l,s)&&J0(0,n,o,1,s[0])}}}var Ww=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Y0,this.ondestroy=e.ondestroy||Y0,this.onrestart=e.onrestart||Y0,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=K(e)?e:Rd[e]||ho(e)},r}();const $w=Ww;var zd=function(){function r(e){this.value=e}return r}(),Uw=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new zd(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),Yw=function(){function r(e){this._list=new Uw,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new zd(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const a4=Yw;var Il={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function ge(r){return r=Math.round(r),r<0?0:r>255?255:r}function Zw(r){return r=Math.round(r),r<0?0:r>360?360:r}function Pr(r){return r<0?0:r>1?1:r}function Kn(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?ge(parseFloat(e)/100*255):ge(parseInt(e,10))}function Y5(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Pr(parseFloat(e)/100):Pr(parseFloat(e))}function jn(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function k9(r,e,t){return r+(e-r)*t}function Yt(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function T6(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var Gd=new a4(20),E4=null;function y1(r,e){E4&&T6(E4,e),E4=Gd.put(r,E4||e.slice())}function zt(r,e){if(r){e=e||[];var t=Gd.get(r);if(t)return T6(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in Il)return T6(e,Il[a]),y1(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Yt(e,0,0,0,1);return}return Yt(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),y1(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Yt(e,0,0,0,1);return}return Yt(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),y1(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Yt(e,+u[0],+u[1],+u[2],1):Yt(e,0,0,0,1);f=Y5(u.pop());case"rgb":if(u.length>=3)return Yt(e,Kn(u[0]),Kn(u[1]),Kn(u[2]),u.length===3?f:Y5(u[3])),y1(r,e),e;Yt(e,0,0,0,1);return;case"hsla":if(u.length!==4){Yt(e,0,0,0,1);return}return u[3]=Y5(u[3]),C6(u,e),y1(r,e),e;case"hsl":if(u.length!==3){Yt(e,0,0,0,1);return}return C6(u,e),y1(r,e),e;default:return}}Yt(e,0,0,0,1)}}function C6(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=Y5(r[1]),n=Y5(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],Yt(e,ge(jn(o,i,t+1/3)*255),ge(jn(o,i,t)*255),ge(jn(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function Xw(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-e)/6+o/2)/o,h=((i-t)/6+o/2)/o,v=((i-a)/6+o/2)/o;e===i?l=v-h:t===i?l=1/3+f-v:a===i&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function A6(r,e){var t=zt(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return n9(t,t.length===4?"rgba":"rgb")}}function Qn(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=ge(k9(o[0],s[0],l)),t[1]=ge(k9(o[1],s[1],l)),t[2]=ge(k9(o[2],s[2],l)),t[3]=Pr(k9(o[3],s[3],l)),t}}function qw(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=zt(e[n]),s=zt(e[i]),l=a-n,u=n9([ge(k9(o[0],s[0],l)),ge(k9(o[1],s[1],l)),ge(k9(o[2],s[2],l)),Pr(k9(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function cr(r,e,t,a){var n=zt(r);if(r)return n=Xw(n),e!=null&&(n[0]=Zw(e)),t!=null&&(n[1]=Y5(t)),a!=null&&(n[2]=Y5(a)),n9(C6(n),"rgba")}function oa(r,e){var t=zt(r);if(t&&e!=null)return t[3]=Pr(e),n9(t,"rgba")}function n9(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function sa(r,e){var t=zt(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var la=Math.round;function Rr(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=zt(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var Pl=1e-4;function N9(r){return r-Pl}function k4(r){return la(r*1e3)/1e3}function M6(r){return la(r*1e4)/1e4}function Kw(r){return"matrix("+k4(r[0])+","+k4(r[1])+","+k4(r[2])+","+k4(r[3])+","+M6(r[4])+","+M6(r[5])+")"}var jw={left:"start",right:"end",center:"middle",middle:"middle"};function Qw(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function Jw(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function tT(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function Fd(r){return r&&!!r.image}function eT(r){return r&&!!r.svgElement}function vo(r){return Fd(r)||eT(r)}function Hd(r){return r.type==="linear"}function Wd(r){return r.type==="radial"}function $d(r){return r&&(r.type==="linear"||r.type==="radial")}function an(r){return"url(#"+r+")"}function Ud(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Yd(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*k7,n=l0(r.scaleX,1),i=l0(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+la(o*k7)+"deg, "+la(s*k7)+"deg)"),l.join(" ")}var rT=function(){return w0.hasGlobalWindow&&K(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),D6=Array.prototype.slice;function qe(r,e,t){return(e-r)*t+r}function Jn(r,e,t,a){for(var n=e.length,i=0;ia?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)a.length=o;else for(var l=i;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=El,l=t;if(gt(t)){var u=oT(t);s=u,(u===1&&!C0(t[0])||u===2&&!C0(t[0][0]))&&(o=!0)}else if(C0(t)&&!Lr(t))s=O4;else if($(t))if(!isNaN(+t))s=O4;else{var f=zt(t);f&&(l=f,s=er)}else if(tn(t)){var h=B({},l);h.colorStops=G(t.colorStops,function(c){return{offset:c.offset,color:zt(c.color)}}),Hd(t)?s=L6:Wd(t)&&(s=I6),l=h}i===0?this.valType=s:(s!==this.valType||s===El)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return a&&(v.easing=a,v.easingFunc=K(a)?a:Rd[a]||ho(a)),n.push(v),v},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(d,g){return d.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=B4(n),u=kl(n),f=0;f=0&&!(o[f].percent<=t);f--);f=v(f,s-2)}else{for(f=h;ft);f++);f=v(f-1,s-2)}p=o[f+1],c=o[f]}if(c&&p){this._lastFr=f,this._lastFrP=t;var g=p.percent-c.percent,y=g===0?1:v((t-c.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=a?this._additiveValue:u?M2:e[l];if((B4(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?c.rawValue:p.rawValue;else if(B4(i))i===G7?Jn(m,c[n],p[n],y):aT(m,c[n],p[n],y);else if(kl(i)){var _=c[n],S=p[n],b=i===L6;e[l]={type:b?"linear":"radial",x:qe(_.x,S.x,y),y:qe(_.y,S.y,y),colorStops:G(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:qe(w.offset,C.offset,y),color:z7(Jn([],w.color,C.color,y))}}),global:S.global},b?(e[l].x2=qe(_.x2,S.x2,y),e[l].y2=qe(_.y2,S.y2,y)):e[l].r=qe(_.r,S.r,y)}else if(u)Jn(m,c[n],p[n],y),a||(e[l]=z7(m));else{var x=qe(c[n],p[n],y);a?this._additiveValue=x:e[l]=x}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===O4?e[a]=e[a]+n:t===er?(zt(e[a],M2),N4(M2,M2,n,1),e[a]=z7(M2)):t===G7?N4(e[a],e[a],n,1):t===Zd&&Rl(e[a],e[a],n,1)},r}(),co=function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){no("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,m0(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,pr(u),n),this._trackKeys.push(s)}l.addKeyframe(e,pr(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function H1(){return new Date().getTime()}var lT=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=H1()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(b6(a),!t._paused&&t.update())}b6(a)},e.prototype.start=function(){this._running||(this._time=H1(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=H1(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=H1()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new co(t,a.loop);return this.addAnimator(n),n},e}(ie);const uT=lT;var fT=300,ti=w0.domSupported,ei=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=G(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}}(),Nl={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Ol=!1;function P6(r){var e=r.pointerType;return e==="pen"||e==="touch"}function hT(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function ri(r){r&&(r.zrByTouch=!0)}function vT(r,e){return Zt(r.dom,new cT(r,e),!0)}function Xd(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var cT=function(){function r(e,t){this.stopPropagation=Y0,this.stopImmediatePropagation=Y0,this.preventDefault=Y0,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),he={mousedown:function(r){r=Zt(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Zt(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Zt(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Zt(this.dom,r);var e=r.toElement||r.relatedTarget;Xd(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Ol=!0,r=Zt(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Ol||(r=Zt(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Zt(this.dom,r),ri(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),he.mousemove.call(this,r),he.mousedown.call(this,r)},touchmove:function(r){r=Zt(this.dom,r),ri(r),this.handler.processGesture(r,"change"),he.mousemove.call(this,r)},touchend:function(r){r=Zt(this.dom,r),ri(r),this.handler.processGesture(r,"end"),he.mouseup.call(this,r),+new Date-+this.__lastTouchMomentzl||r<-zl}var o5=[],m1=[],ni=ae(),ii=Math.abs,_T=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return i5(this.rotation)||i5(this.x)||i5(this.y)||i5(this.scaleX-1)||i5(this.scaleY-1)||i5(this.skewX)||i5(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&Vl(a);return}a=a||ae(),t?this.getLocalTransform(a):Vl(a),e&&(t?a9(a,e,a):uo(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(o5);var a=o5[0]<0?-1:1,n=o5[1]<0?-1:1,i=((o5[0]-a)*t+a)/o5[0]||0,o=((o5[1]-n)*t+n)/o5[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||ae(),l2(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(a9(m1,e.invTransform,t),t=m1);var a=this.originX,n=this.originY;(a||n)&&(ni[4]=a,ni[5]=n,a9(m1,t,ni),m1[4]-=a,m1[5]-=n,t=m1),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&st(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&st(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&ii(e[0]-1)>1e-10&&ii(e[3]-1)>1e-10?Math.sqrt(ii(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){Kd(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var p=a+s,d=n+l;t[4]=-p*i-v*d*o,t[5]=-d*o-c*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=c*i,t[2]=v*o,u&&u1(t,t,u),t[4]+=a+f,t[5]+=n+h,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),ze=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Kd(r,e){for(var t=0;t"u"&&typeof self<"u"?A5.worker=!0:typeof navigator>"u"?(A5.node=!0,A5.svgSupported=!0):Wb(navigator.userAgent,A5);function Wb(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const w0=A5;var eo=12,_d="sans-serif",W9=eo+"px "+_d,$b=20,Ub=100,Yb="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Zb(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function gw(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&i&&v===i[h]&&c===i[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?ml(s,o):ml(o,s))}function Ad(r){return r.nodeName.toUpperCase()==="CANVAS"}var yw=/([&<>"'])/g,mw={"&":"&","<":"<",">":">",'"':""","'":"'"};function Lt(r){return r==null?"":(r+"").replace(yw,function(e,t){return mw[t]})}var _w=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,$n=[],Sw=w0.browser.firefox&&+w0.browser.version.split(".")[0]<39;function S6(r,e,t,a){return t=t||{},a?Sl(r,e,t):Sw&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):Sl(r,e,t),t}function Sl(r,e,t){if(w0.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(Ad(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(_6($n,r,a,n)){t.zrX=$n[0],t.zrY=$n[1];return}}t.zrX=t.zrY=0}function lo(r){return r||window.event}function Zt(r,e,t){if(e=lo(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&S6(r,o,e,t)}else{S6(r,e,e,t);var i=xw(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&_w.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function xw(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function x6(r,e,t,a){r.addEventListener(e,t,a)}function bw(r,e,t,a){r.removeEventListener(e,t,a)}var s9=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function xl(r){return r.which===2||r.which===3}var ww=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o1&&a&&a.length>1){var i=bl(a)/bl(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=Tw(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function ae(){return[1,0,0,1,0,0]}function rn(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function uo(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function a9(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Ve(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function u1(r,e,t){var a=e[0],n=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),f=Math.cos(t);return r[0]=a*f+o*u,r[1]=-a*u+o*f,r[2]=n*f+s*u,r[3]=-n*u+f*s,r[4]=f*i+u*l,r[5]=f*l-u*i,r}function fo(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function l2(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function Cw(r){var e=ae();return uo(e,r),e}var Aw=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r}();const s0=Aw;var L4=Math.min,I4=Math.max,e5=new s0,r5=new s0,a5=new s0,n5=new s0,w2=new s0,T2=new s0,Mw=function(){function r(e,t,a,n){a<0&&(e=e+a,a=-a),n<0&&(t=t+n,n=-n),this.x=e,this.y=t,this.width=a,this.height=n}return r.prototype.union=function(e){var t=L4(e.x,this.x),a=L4(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=I4(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=I4(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=ae();return Ve(i,i,[-t.x,-t.y]),fo(i,i,[a,n]),Ve(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,n=a.x,i=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,v=!(ip&&(p=_,dp&&(p=S,y=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}e5.x=a5.x=t.x,e5.y=n5.y=t.y,r5.x=n5.x=t.x+t.width,r5.y=a5.y=t.y+t.height,e5.transform(a),n5.transform(a),r5.transform(a),a5.transform(a),e.x=L4(e5.x,r5.x,a5.x,n5.x),e.y=L4(e5.y,r5.y,a5.y,n5.y);var l=I4(e5.x,r5.x,a5.x,n5.x),u=I4(e5.y,r5.y,a5.y,n5.y);e.width=l-e.x,e.height=u-e.y},r}();const f0=Mw;var Md="silent";function Dw(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Lw}}function Lw(){s9(this.event)}var Iw=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(ie),C2=function(){function r(e,t){this.x=e,this.y=t}return r}(),Pw=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Yn=new f0(0,0,0,0),Dd=function(r){k(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new C2(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new Iw,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new hw(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(M(Pw,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=Ld(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new C2(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new C2(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=Dw(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new C2(t,a);if(wl(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new f0(t-u,a-u,l,l),h=i.length-1;h>=0;h--){var v=i[h];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Yn.copy(v.getBoundingRect()),v.transform&&Yn.applyTransform(v.transform),Yn.intersect(f)&&s.push(v))}if(s.length)for(var c=4,p=Math.PI/12,d=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function Rw(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1;a.silent&&(n=!0)}var s=a.__hostTarget;a=s||a.parent}return n?Md:!0}return!1}function wl(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=Rw(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==Md)){e.target=o;break}}}function Ld(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}const Ew=Dd;var Id=32,A2=7;function kw(r){for(var e=0;r>=Id;)e|=r&1,r>>=1;return r+e}function Tl(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n=0;)n++;return n-e}function Nw(r,e,t){for(t--;e>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function Zn(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function Xn(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function Ow(r,e){var t=A2,a,n,i=0;r.length;var o=[];a=[],n=[];function s(c,p){a[i]=c,n[i]=p,i+=1}function l(){for(;i>1;){var c=i-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]n[c+1])break;f(c)}}function u(){for(;i>1;){var c=i-2;c>0&&n[c-1]=A2||w>=A2);if(T)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),p===1){for(y=0;y=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=t;;){var T=0,C=0,A=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--p===0){A=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){A=!0;break}while((T|C)=0;y--)r[x+y]=r[b+y];if(p===0){A=!0;break}}if(r[S--]=o[_--],--g===1){A=!0;break}if(C=g-Zn(r[m],o,0,g,g-1,e),C!==0){for(S-=C,_-=C,g-=C,x=S+1,b=_+1,y=0;y=A2||C>=A2);if(A)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(S-=p,m-=p,x=S+1,b=m+1,y=p-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;ys&&(l=s),Cl(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var Vt=1,tr=2,B1=4,Al=!1;function qn(){Al||(Al=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ml(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var Bw=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ml}return r.prototype.traverse=function(e,t){for(var a=0;a0&&(f.__clipPaths=[]),isNaN(f.z)&&(qn(),f.z=0),isNaN(f.z2)&&(qn(),f.z2=0),isNaN(f.zlevel)&&(qn(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,a);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,a);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const Vw=Bw;var Pd;Pd=w0.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const b6=Pd;var V7={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-V7.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?V7.bounceIn(r*2)*.5:V7.bounceOut(r*2-1)*.5+.5}};const Rd=V7;var P4=Math.pow,z9=Math.sqrt,na=1e-8,Ed=1e-4,Dl=z9(3),R4=1/3,Ie=l1(),jt=l1(),Y1=l1();function E9(r){return r>-na&&rna||r<-na}function J0(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function Ll(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function ia(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(E9(f)&&E9(h))if(E9(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[c++]=p)}else{var d=h*h-4*f*v;if(E9(d)){var g=h/f,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y)}else if(d>0){var m=z9(d),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-P4(-_,R4):_=P4(_,R4),S<0?S=-P4(-S,R4):S=P4(S,R4);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[c++]=p)}else{var b=(2*f*s-3*o*h)/(2*z9(f*f*f)),x=Math.acos(b)/3,w=z9(f),T=Math.cos(x),p=(-s-2*w*T)/(3*o),y=(-s+w*(T+Dl*Math.sin(x)))/(3*o),C=(-s+w*(T-Dl*Math.sin(x)))/(3*o);p>=0&&p<=1&&(i[c++]=p),y>=0&&y<=1&&(i[c++]=y),C>=0&&C<=1&&(i[c++]=C)}}return c}function Nd(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(E9(o)){if(kd(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(E9(f))n[0]=-i/(2*o);else if(f>0){var h=z9(f),u=(-i+h)/(2*o),v=(-i-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function U9(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=h,i[4]=h,i[5]=f,i[6]=l,i[7]=a}function Od(r,e,t,a,n,i,o,s,l,u,f){var h,v=.005,c=1/0,p,d,g,y;Ie[0]=l,Ie[1]=u;for(var m=0;m<1;m+=.05)jt[0]=J0(r,t,n,o,m),jt[1]=J0(e,a,i,s,m),g=U5(Ie,jt),g=0&&g=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(E9(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=z9(f),u=(-o+h)/(2*i),v=(-o-h)/(2*i);u>=0&&u<=1&&(n[l++]=u),v>=0&&v<=1&&(n[l++]=v)}}return l}function Bd(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function Ir(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function Vd(r,e,t,a,n,i,o,s,l){var u,f=.005,h=1/0;Ie[0]=o,Ie[1]=s;for(var v=0;v<1;v+=.05){jt[0]=at(r,t,n,v),jt[1]=at(e,a,i,v);var c=U5(Ie,jt);c=0&&c=1?1:ia(0,a,i,1,l,s)&&J0(0,n,o,1,s[0])}}}var Ww=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Y0,this.ondestroy=e.ondestroy||Y0,this.onrestart=e.onrestart||Y0,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=K(e)?e:Rd[e]||ho(e)},r}();const $w=Ww;var zd=function(){function r(e){this.value=e}return r}(),Uw=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new zd(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),Yw=function(){function r(e){this._list=new Uw,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new zd(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const a4=Yw;var Il={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function ge(r){return r=Math.round(r),r<0?0:r>255?255:r}function Zw(r){return r=Math.round(r),r<0?0:r>360?360:r}function Pr(r){return r<0?0:r>1?1:r}function Kn(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?ge(parseFloat(e)/100*255):ge(parseInt(e,10))}function Y5(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Pr(parseFloat(e)/100):Pr(parseFloat(e))}function jn(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function k9(r,e,t){return r+(e-r)*t}function Yt(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function T6(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var Gd=new a4(20),E4=null;function y1(r,e){E4&&T6(E4,e),E4=Gd.put(r,E4||e.slice())}function zt(r,e){if(r){e=e||[];var t=Gd.get(r);if(t)return T6(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in Il)return T6(e,Il[a]),y1(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Yt(e,0,0,0,1);return}return Yt(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),y1(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Yt(e,0,0,0,1);return}return Yt(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),y1(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Yt(e,+u[0],+u[1],+u[2],1):Yt(e,0,0,0,1);f=Y5(u.pop());case"rgb":if(u.length>=3)return Yt(e,Kn(u[0]),Kn(u[1]),Kn(u[2]),u.length===3?f:Y5(u[3])),y1(r,e),e;Yt(e,0,0,0,1);return;case"hsla":if(u.length!==4){Yt(e,0,0,0,1);return}return u[3]=Y5(u[3]),C6(u,e),y1(r,e),e;case"hsl":if(u.length!==3){Yt(e,0,0,0,1);return}return C6(u,e),y1(r,e),e;default:return}}Yt(e,0,0,0,1)}}function C6(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=Y5(r[1]),n=Y5(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],Yt(e,ge(jn(o,i,t+1/3)*255),ge(jn(o,i,t)*255),ge(jn(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function Xw(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-e)/6+o/2)/o,h=((i-t)/6+o/2)/o,v=((i-a)/6+o/2)/o;e===i?l=v-h:t===i?l=1/3+f-v:a===i&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function A6(r,e){var t=zt(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return n9(t,t.length===4?"rgba":"rgb")}}function Qn(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=ge(k9(o[0],s[0],l)),t[1]=ge(k9(o[1],s[1],l)),t[2]=ge(k9(o[2],s[2],l)),t[3]=Pr(k9(o[3],s[3],l)),t}}function qw(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=zt(e[n]),s=zt(e[i]),l=a-n,u=n9([ge(k9(o[0],s[0],l)),ge(k9(o[1],s[1],l)),ge(k9(o[2],s[2],l)),Pr(k9(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function cr(r,e,t,a){var n=zt(r);if(r)return n=Xw(n),e!=null&&(n[0]=Zw(e)),t!=null&&(n[1]=Y5(t)),a!=null&&(n[2]=Y5(a)),n9(C6(n),"rgba")}function oa(r,e){var t=zt(r);if(t&&e!=null)return t[3]=Pr(e),n9(t,"rgba")}function n9(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function sa(r,e){var t=zt(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var la=Math.round;function Rr(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=zt(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var Pl=1e-4;function N9(r){return r-Pl}function k4(r){return la(r*1e3)/1e3}function M6(r){return la(r*1e4)/1e4}function Kw(r){return"matrix("+k4(r[0])+","+k4(r[1])+","+k4(r[2])+","+k4(r[3])+","+M6(r[4])+","+M6(r[5])+")"}var jw={left:"start",right:"end",center:"middle",middle:"middle"};function Qw(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function Jw(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function tT(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function Fd(r){return r&&!!r.image}function eT(r){return r&&!!r.svgElement}function vo(r){return Fd(r)||eT(r)}function Hd(r){return r.type==="linear"}function Wd(r){return r.type==="radial"}function $d(r){return r&&(r.type==="linear"||r.type==="radial")}function an(r){return"url(#"+r+")"}function Ud(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Yd(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*k7,n=l0(r.scaleX,1),i=l0(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+la(o*k7)+"deg, "+la(s*k7)+"deg)"),l.join(" ")}var rT=function(){return w0.hasGlobalWindow&&K(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),D6=Array.prototype.slice;function qe(r,e,t){return(e-r)*t+r}function Jn(r,e,t,a){for(var n=e.length,i=0;ia?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)a.length=o;else for(var l=i;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=El,l=t;if(gt(t)){var u=oT(t);s=u,(u===1&&!C0(t[0])||u===2&&!C0(t[0][0]))&&(o=!0)}else if(C0(t)&&!Lr(t))s=O4;else if($(t))if(!isNaN(+t))s=O4;else{var f=zt(t);f&&(l=f,s=er)}else if(tn(t)){var h=B({},l);h.colorStops=G(t.colorStops,function(c){return{offset:c.offset,color:zt(c.color)}}),Hd(t)?s=L6:Wd(t)&&(s=I6),l=h}i===0?this.valType=s:(s!==this.valType||s===El)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return a&&(v.easing=a,v.easingFunc=K(a)?a:Rd[a]||ho(a)),n.push(v),v},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(d,g){return d.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=B4(n),u=kl(n),f=0;f=0&&!(o[f].percent<=t);f--);f=v(f,s-2)}else{for(f=h;ft);f++);f=v(f-1,s-2)}p=o[f+1],c=o[f]}if(c&&p){this._lastFr=f,this._lastFrP=t;var g=p.percent-c.percent,y=g===0?1:v((t-c.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=a?this._additiveValue:u?M2:e[l];if((B4(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?c.rawValue:p.rawValue;else if(B4(i))i===G7?Jn(m,c[n],p[n],y):aT(m,c[n],p[n],y);else if(kl(i)){var _=c[n],S=p[n],b=i===L6;e[l]={type:b?"linear":"radial",x:qe(_.x,S.x,y),y:qe(_.y,S.y,y),colorStops:G(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:qe(w.offset,C.offset,y),color:z7(Jn([],w.color,C.color,y))}}),global:S.global},b?(e[l].x2=qe(_.x2,S.x2,y),e[l].y2=qe(_.y2,S.y2,y)):e[l].r=qe(_.r,S.r,y)}else if(u)Jn(m,c[n],p[n],y),a||(e[l]=z7(m));else{var x=qe(c[n],p[n],y);a?this._additiveValue=x:e[l]=x}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===O4?e[a]=e[a]+n:t===er?(zt(e[a],M2),N4(M2,M2,n,1),e[a]=z7(M2)):t===G7?N4(e[a],e[a],n,1):t===Zd&&Rl(e[a],e[a],n,1)},r}(),co=function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){no("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,m0(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,pr(u),n),this._trackKeys.push(s)}l.addKeyframe(e,pr(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function H1(){return new Date().getTime()}var lT=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=H1()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(b6(a),!t._paused&&t.update())}b6(a)},e.prototype.start=function(){this._running||(this._time=H1(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=H1(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=H1()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new co(t,a.loop);return this.addAnimator(n),n},e}(ie);const uT=lT;var fT=300,ti=w0.domSupported,ei=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=G(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}}(),Nl={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Ol=!1;function P6(r){var e=r.pointerType;return e==="pen"||e==="touch"}function hT(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function ri(r){r&&(r.zrByTouch=!0)}function vT(r,e){return Zt(r.dom,new cT(r,e),!0)}function Xd(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var cT=function(){function r(e,t){this.stopPropagation=Y0,this.stopImmediatePropagation=Y0,this.preventDefault=Y0,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),he={mousedown:function(r){r=Zt(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Zt(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Zt(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Zt(this.dom,r);var e=r.toElement||r.relatedTarget;Xd(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Ol=!0,r=Zt(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Ol||(r=Zt(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Zt(this.dom,r),ri(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),he.mousemove.call(this,r),he.mousedown.call(this,r)},touchmove:function(r){r=Zt(this.dom,r),ri(r),this.handler.processGesture(r,"change"),he.mousemove.call(this,r)},touchend:function(r){r=Zt(this.dom,r),ri(r),this.handler.processGesture(r,"end"),he.mouseup.call(this,r),+new Date-+this.__lastTouchMomentzl||r<-zl}var o5=[],m1=[],ni=ae(),ii=Math.abs,_T=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return i5(this.rotation)||i5(this.x)||i5(this.y)||i5(this.scaleX-1)||i5(this.scaleY-1)||i5(this.skewX)||i5(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&Vl(a);return}a=a||ae(),t?this.getLocalTransform(a):Vl(a),e&&(t?a9(a,e,a):uo(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(o5);var a=o5[0]<0?-1:1,n=o5[1]<0?-1:1,i=((o5[0]-a)*t+a)/o5[0]||0,o=((o5[1]-n)*t+n)/o5[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||ae(),l2(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(a9(m1,e.invTransform,t),t=m1);var a=this.originX,n=this.originY;(a||n)&&(ni[4]=a,ni[5]=n,a9(m1,t,ni),m1[4]-=a,m1[5]-=n,t=m1),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&st(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&st(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&ii(e[0]-1)>1e-10&&ii(e[3]-1)>1e-10?Math.sqrt(ii(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){Kd(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var p=a+s,d=n+l;t[4]=-p*i-v*d*o,t[5]=-d*o-c*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=c*i,t[2]=v*o,u&&u1(t,t,u),t[4]+=a+f,t[5]+=n+h,t},r.initDefaultProps=function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),r}(),ze=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Kd(r,e){for(var t=0;t=0?parseFloat(r)/100*e:parseFloat(r):r}function fa(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",h="top";if(a instanceof Array)l+=me(a[0],t.width),u+=me(a[1],t.height),f=null,h=null;else switch(a){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var oi="__zr_normal__",si=ze.concat(["ignore"]),ST=Be(ze,function(r,e){return r[e]=!0,r},{ignore:!1}),_1={},xT=new f0(0,0,0,0),po=function(){function r(e){this.id=bd(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(t),a.position!=null){var f=xT;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(_1,a,f):fa(_1,a,f),i.x=_1.x,i.y=_1.y,o=_1.align,s=_1.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=me(h[0],f.width),c=me(h[1],f.height)),u=!0,i.originX=-i.x+v+(n?0:f.x),i.originY=-i.y+c+(n?0:f.y)}}a.rotation!=null&&(i.rotation=a.rotation);var p=a.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var d=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;d&&this.canBeInsideText()?(y=a.insideFill,m=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=a.outsideFill,m=a.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=Vt,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?N6:k6},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&zt(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,n9(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},B(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(t0(e))for(var a=e,n=m0(a),i=0;i0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(oi,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===oi,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(v0(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){no("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(e,t,a,f),v&&v.useState(e,t,a,f),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Vt),u}}},r.prototype.useStates=function(e,t,a){if(!e.length)this.clearStates();else{var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,p);var d=this._textContent,g=this._textGuide;d&&d.useStates(e,t,v),g&&g.useStates(e,t,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Vt)}},r.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=v0(n,e),o=v0(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,n=0;n=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,n=a.length,i=[],o=0;o0&&t.during&&i[0].during(function(p,d){t.during(d)});for(var v=0;v0||n.force&&!o.length){var T=void 0,C=void 0,A=void 0;if(s){C={},v&&(T={});for(var S=0;S<_;S++){var y=d[S];C[y]=t[y],v?T[y]=a[y]:t[y]=a[y]}}else if(v){A={};for(var S=0;S<_;S++){var y=d[S];A[y]=pr(t[y]),wT(t,a,y)}}var b=new co(t,!1,!1,h?I0(p,function(L){return L.targetName===e}):null);b.targetName=e,n.scope&&(b.scope=n.scope),v&&T&&b.whenWithKeys(0,T,d),A&&b.whenWithKeys(0,A,d),b.whenWithKeys(u??500,s?C:a,d).delay(f||0),r.addAnimator(b,e),o.push(b)}}const Qd=po;var Jd=function(r){k(e,r);function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var a=this._children,n=0;n=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=v0(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,n=this._children,i=v0(n,t);return i<0?this:(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;n{const _=h("tippy");return c(),v(w,null,{default:o(()=>[r(x,{title:l(t)("Chatlog - ServerIntel")},null,8,["title"]),s("div",C,[r(D,{title:l(t)("Chatlog"),"server-list":i.serverList,filters:i.filters},null,8,["title","server-list","filters"]),s("div",null,[r(T,{class:"bg-white rounded shadow dark:bg-gray-800",header:y,data:i.chatHistory,filters:i.filters},{default:o(({item:e})=>[s("td",j,a(e.id),1),s("td",H,[s("div",N,[s("p",{innerHTML:e.data},null,8,S),e.causer_uuid?(c(),n("p",$,a(l(t)("Causer"))+": "+a(e.causer_uuid)+" ("+a(e.causer_username)+") ",1)):g("",!0)])]),r(p,null,{default:o(()=>[d(a(e.type),1)]),_:2},1024),r(p,null,{default:o(()=>[u((c(),n("span",{title:`Server ID: ${e.server.id}`},[d(a(e.server.name),1)],8,B)),[[_]])]),_:2},1024),r(p,null,{default:o(()=>[u((c(),n("span",{title:l(f)(e.created_at)},[d(a(l(m)(e.created_at)),1)],8,I)),[[_]])]),_:2},1024)]),_:1},8,["data","filters"])])])]),_:1})}}};export{Z as default}; +import{q as h,o as c,c as v,w as o,k as b,b as r,u as l,_ as x,a as s,t as a,d as n,e as g,f as d,j as u}from"./app-b56afa57.js";import{u as k}from"./AppLayout-9dd9991d.js";import{_ as w}from"./AdminLayout-5df346fb.js";import{_ as D}from"./ServerIntelServerSelector-00201d1c.js";import{_ as T}from"./DataTable-0e1cc9de.js";import{D as p}from"./DtRowItem-1290e867.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./Icon-c6b983eb.js";import"./useAuthorizable-94e7d830.js";import"./use-resolve-button-type-9e76052c.js";import"./open-closed-65012d7e.js";import"./CloudArrowDownIcon-ce7a9066.js";import"./index-0d4d23a0.js";import"./XSelect-9669b895.js";import"./vue-multiselect.esm-f8979d44.js";import"./XMarkIcon-2ab1c8ef.js";import"./hidden-4383f5d9.js";const C={class:"p-4 mx-auto space-y-4 px-10"},j={class:"px-4 py-4 text-sm font-medium text-gray-800 whitespace-nowrap dark:text-gray-200"},H={class:"px-4 invert dark:invert-0"},N={class:"text-sm text-gray-200"},S=["innerHTML"],$={key:0,class:"text-xs text-gray-500 italic"},B=["title"],I=["title"],Z={__name:"Chatlog",props:{serverList:{type:Object},filters:{type:Object},chatHistory:{type:Object}},setup(i){const{__:t}=b(),{formatTimeAgoToNow:m,formatToDayDateString:f}=k(),y=[{key:"id",label:t("ID"),sortable:!0,class:"text-left"},{key:"data",label:t("Data"),sortable:!1},{key:"type",label:t("Type"),sortable:!0,filterable:{type:"multiselect",options:["player-leave","server-broadcast","join-join","player-chat"]}},{key:"server_id",label:t("Server"),sortable:!0},{key:"created_at",label:t("Created"),sortable:!0}];return(L,V)=>{const _=h("tippy");return c(),v(w,null,{default:o(()=>[r(x,{title:l(t)("Chatlog - ServerIntel")},null,8,["title"]),s("div",C,[r(D,{title:l(t)("Chatlog"),"server-list":i.serverList,filters:i.filters},null,8,["title","server-list","filters"]),s("div",null,[r(T,{class:"bg-white rounded shadow dark:bg-gray-800",header:y,data:i.chatHistory,filters:i.filters},{default:o(({item:e})=>[s("td",j,a(e.id),1),s("td",H,[s("div",N,[s("p",{innerHTML:e.data},null,8,S),e.causer_uuid?(c(),n("p",$,a(l(t)("Causer"))+": "+a(e.causer_uuid)+" ("+a(e.causer_username)+") ",1)):g("",!0)])]),r(p,null,{default:o(()=>[d(a(e.type),1)]),_:2},1024),r(p,null,{default:o(()=>[u((c(),n("span",{title:`Server ID: ${e.server.id}`},[d(a(e.server.name),1)],8,B)),[[_]])]),_:2},1024),r(p,null,{default:o(()=>[u((c(),n("span",{title:l(f)(e.created_at)},[d(a(l(m)(e.created_at)),1)],8,I)),[[_]])]),_:2},1024)]),_:1},8,["data","filters"])])])]),_:1})}}};export{Z as default}; diff --git a/public/build/default/assets/Checkbox-95fc13e4.js b/public/build/default/assets/Checkbox-6d245cb1.js similarity index 89% rename from public/build/default/assets/Checkbox-95fc13e4.js rename to public/build/default/assets/Checkbox-6d245cb1.js index 17f1a07b6..bbbd46529 100644 --- a/public/build/default/assets/Checkbox-95fc13e4.js +++ b/public/build/default/assets/Checkbox-6d245cb1.js @@ -1 +1 @@ -import{x as s,j as r,Q as n,o as d,d as i}from"./app-baae6499.js";const p=["value"],k={__name:"Checkbox",props:{checked:{type:[Array,Boolean],default:!1},value:{type:String,default:null}},emits:["update:checked"],setup(e,{emit:a}){const l=e,t=s({get(){return l.checked},set(o){a("update:checked",o)}});return(o,c)=>r((d(),i("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>t.value=u),type:"checkbox",value:e.value,class:"rounded border-gray-300 text-light-blue-500 shadow-sm focus:border-light-blue-300 focus:ring focus:ring-light-blue-200 focus:ring-opacity-50"},null,8,p)),[[n,t.value]])}};export{k as _}; +import{x as s,j as r,Q as n,o as d,d as i}from"./app-b56afa57.js";const p=["value"],k={__name:"Checkbox",props:{checked:{type:[Array,Boolean],default:!1},value:{type:String,default:null}},emits:["update:checked"],setup(e,{emit:a}){const l=e,t=s({get(){return l.checked},set(o){a("update:checked",o)}});return(o,c)=>r((d(),i("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>t.value=u),type:"checkbox",value:e.value,class:"rounded border-gray-300 text-light-blue-500 shadow-sm focus:border-light-blue-300 focus:ring focus:ring-light-blue-200 focus:ring-opacity-50"},null,8,p)),[[n,t.value]])}};export{k as _}; diff --git a/public/build/default/assets/CloudArrowDownIcon-db3b0419.js b/public/build/default/assets/CloudArrowDownIcon-ce7a9066.js similarity index 85% rename from public/build/default/assets/CloudArrowDownIcon-db3b0419.js rename to public/build/default/assets/CloudArrowDownIcon-ce7a9066.js index ff375f491..84cc08982 100644 --- a/public/build/default/assets/CloudArrowDownIcon-db3b0419.js +++ b/public/build/default/assets/CloudArrowDownIcon-ce7a9066.js @@ -1 +1 @@ -import{o as e,d as r,a as o}from"./app-baae6499.js";function s(t,n){return e(),r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9.75v6.75m0 0l-3-3m3 3l3-3m-8.25 6a4.5 4.5 0 01-1.41-8.775 5.25 5.25 0 0110.233-2.33 3 3 0 013.758 3.848A3.752 3.752 0 0118 19.5H6.75z"})])}export{s as r}; +import{o as e,d as r,a as o}from"./app-b56afa57.js";function s(t,n){return e(),r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true"},[o("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9.75v6.75m0 0l-3-3m3 3l3-3m-8.25 6a4.5 4.5 0 01-1.41-8.775 5.25 5.25 0 0110.233-2.33 3 3 0 013.758 3.848A3.752 3.752 0 0118 19.5H6.75z"})])}export{s as r}; diff --git a/public/build/default/assets/Comments-ef92e27c.js b/public/build/default/assets/Comments-9df81c93.js similarity index 96% rename from public/build/default/assets/Comments-ef92e27c.js rename to public/build/default/assets/Comments-9df81c93.js index 63f61992c..34a79b483 100644 --- a/public/build/default/assets/Comments-ef92e27c.js +++ b/public/build/default/assets/Comments-9df81c93.js @@ -1 +1 @@ -import{I as v}from"./Icon-51173a24.js";import{_ as w}from"./UserDisplayname-fdf0802f.js";import{u as C}from"./AppLayout-6edbf3df.js";import{l as h,q as g,o as r,d as a,e as i,j as d,m as M,a as s,t as c,F as T,g as B,n as D,b as f,w as y,f as L,c as N,i as V,v as A,a6 as S}from"./app-baae6499.js";import{_ as j}from"./_plugin-vue_export-helper-c27b6911.js";const H={components:{Icon:v,UserDisplayname:w},props:{commentable:Object,commentableType:String},setup(){const{purifyAndLinkifyText:e,formatTimeAgoToNow:n,formatToDayDateString:m}=C();return{purifyAndLinkifyText:e,formatTimeAgoToNow:n,formatToDayDateString:m}},data(){return{comments:null,loading:!0,loadingMore:!1,commentBody:"",submitting:!1,bodyerror:null,showLoadMoreCommentsButton:!0}},created(){axios.get(route(`${this.commentableType}.comment.index`,this.commentable.id)).then(e=>{this.comments=e.data,this.comments.data.reverse()}).finally(()=>{this.loading=!1})},methods:{loadMoreComments(){return this.comments.next_page_url?(this.loadingMore=!0,axios(this.comments.next_page_url).then(e=>{this.comments={...e.data,data:[...e.data.data.reverse(),...this.comments.data]}}).finally(()=>this.loadingMore=!1)):(this.showLoadMoreCommentsButton=!1,Promise.resolve())},submitComment(){this.submitting||(this.submitting=!0,this.bodyerror=null,axios.post(route(`${this.commentableType}.comment.store`,this.commentable.id),{comment:this.commentBody}).then(e=>{e.status===200&&(this.comments.data.push(e.data.data),this.commentBody="")}).catch(e=>{e.response.status===422?this.bodyerror=e.response.data.errors.comment[0]:this.bodyerror=e.response.data.message}).finally(()=>{this.submitting=!1,this.$nextTick(()=>{this.$refs.comment.focus()})}))}}},z={class:"flex flex-col"},F={key:0,class:"mt-0.5 dark:border-cool-gray-700"},I={key:1,class:"flex justify-center p-4"},K=s("svg",{class:"w-5 h-5 mr-3 -ml-1 animate-spin text-light-blue-600 dark:text-light-blue-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[s("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),s("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1),U=[K],q={class:"flex mt-3"},E={key:2,class:"flex justify-center pt-4 text-gray-500 dark:text-gray-400 text-sm"},O={key:3,class:"flex flex-col mt-3 space-y-2"},P={class:"items-start order-2 max-w-lg mx-2 space-y-2 text-sm"},W=["title"],G=["innerHTML"],J=["src"],Q={key:4,class:"flex mt-1"},R=["src"],X={class:"flex-grow order-2 mx-2 text-sm"},Y=["disabled","placeholder"],Z={key:0,class:"ml-2 text-xs text-red-500"};function $(e,n,m,u,t,l){const _=h("user-displayname"),p=h("inertia-link"),b=h("icon"),x=g("tippy"),k=g("confirm");return r(),a("div",z,[m.commentableType=="post"?(r(),a("hr",F)):i("",!0),t.loading||t.loadingMore?(r(),a("div",I,U)):i("",!0),d(s("div",q,[s("button",{class:"text-sm font-semibold text-gray-500 dark:text-gray-400 focus:outline-none hover:underline",onClick:n[0]||(n[0]=(...o)=>l.loadMoreComments&&l.loadMoreComments(...o))},c(e.__("View previous comments")),1)],512),[[M,!t.loadingMore&&!t.loading&&t.showLoadMoreCommentsButton&&t.comments&&t.comments.next_page_url]]),!t.loading&&t.comments&&t.comments.data.length===0?(r(),a("div",E,c(e.__("No comments yet")),1)):i("",!0),!t.loading&&t.comments?(r(),a("div",O,[(r(!0),a(T,null,B(t.comments.data,o=>(r(),a("div",{key:o.id,class:"flex"},[s("div",P,[s("div",{class:D(["flex flex-col px-4 py-2 text-gray-700 bg-gray-100 rounded-tl-lg rounded-2xl dark:bg-cool-gray-600 dark:bg-opacity-25 dark:text-gray-200",{"border border-gray-300 dark:border-gray-700":e.$page.props.auth.user&&e.$page.props.auth.user.id===o.user_id}])},[f(p,{as:"a",class:"hover:cursor-pointer hover:underline",href:e.route("user.public.get",o.commentator.username)},{default:y(()=>[f(_,{user:o.commentator,"show-username":!0,"text-class":"font-sm"},{default:y(()=>[d((r(),a("span",{class:"inline ml-1 text-xs text-gray-500 dark:text-gray-400 focus:outline-none",title:u.formatToDayDateString(o.created_at)},[L(c(u.formatTimeAgoToNow(o.created_at)),1)],8,W)),[[x]])]),_:2},1032,["user"])]),_:2},1032,["href"]),s("span",{innerHTML:u.purifyAndLinkifyText(o.comment)},null,8,G)],2)]),s("img",{src:o.commentator.profile_photo_url,alt:"My profile",class:"order-1 w-8 h-8 mt-2 rounded-full"},null,8,J),e.$page.props.auth.user&&o.permissions.delete?d((r(),N(p,{key:0,"preserve-scroll":!0,"preserve-state":!1,as:"button",method:"delete",href:e.route(`${m.commentableType}.comment.delete`,[m.commentable.id,o.id]),class:"order-3 focus:outline-none"},{default:y(()=>[f(b,{name:"trash",class:"w-4 h-4 text-gray-200 hover:text-red-400 dark:text-gray-500 dark:hover:text-red-500"})]),_:2},1032,["href"])),[[k,{message:e.__("Are you sure you want to delete this comment?")}]]):i("",!0)]))),128))])):i("",!0),e.$page.props.auth.user?(r(),a("div",Q,[s("img",{src:e.$page.props.auth.user.profile_photo_url,alt:"My profile",class:"order-1 w-8 h-8 mt-2 rounded-full"},null,8,R),s("div",X,[s("form",{onSubmit:n[3]||(n[3]=V((...o)=>l.submitComment&&l.submitComment(...o),["prevent"]))},[d(s("input",{ref:"comment","onUpdate:modelValue":n[1]||(n[1]=o=>t.commentBody=o),disabled:t.submitting,placeholder:e.__("Write a comment..."),"aria-label":"comment",type:"text",class:"block w-full mt-1 bg-gray-100 border border-gray-100 rounded-full dark:bg-cool-gray-900 focus:border-gray-300 dark:border-gray-800 dark:focus:border-gray-700 dark:text-gray-200 focus:ring-0 sm:text-sm disabled:opacity-50",onKeypress:n[2]||(n[2]=S((...o)=>l.submitComment&&l.submitComment(...o),["enter"]))},null,40,Y),[[A,t.commentBody]])],32),t.bodyerror?(r(),a("span",Z,c(t.bodyerror),1)):i("",!0)])])):i("",!0)])}const ne=j(H,[["render",$]]);export{ne as C}; +import{I as v}from"./Icon-c6b983eb.js";import{_ as w}from"./UserDisplayname-a302c4b7.js";import{u as C}from"./AppLayout-9dd9991d.js";import{l as h,q as g,o as r,d as a,e as i,j as d,m as M,a as s,t as c,F as T,g as B,n as D,b as f,w as y,f as L,c as N,i as V,v as A,a6 as S}from"./app-b56afa57.js";import{_ as j}from"./_plugin-vue_export-helper-c27b6911.js";const H={components:{Icon:v,UserDisplayname:w},props:{commentable:Object,commentableType:String},setup(){const{purifyAndLinkifyText:e,formatTimeAgoToNow:n,formatToDayDateString:m}=C();return{purifyAndLinkifyText:e,formatTimeAgoToNow:n,formatToDayDateString:m}},data(){return{comments:null,loading:!0,loadingMore:!1,commentBody:"",submitting:!1,bodyerror:null,showLoadMoreCommentsButton:!0}},created(){axios.get(route(`${this.commentableType}.comment.index`,this.commentable.id)).then(e=>{this.comments=e.data,this.comments.data.reverse()}).finally(()=>{this.loading=!1})},methods:{loadMoreComments(){return this.comments.next_page_url?(this.loadingMore=!0,axios(this.comments.next_page_url).then(e=>{this.comments={...e.data,data:[...e.data.data.reverse(),...this.comments.data]}}).finally(()=>this.loadingMore=!1)):(this.showLoadMoreCommentsButton=!1,Promise.resolve())},submitComment(){this.submitting||(this.submitting=!0,this.bodyerror=null,axios.post(route(`${this.commentableType}.comment.store`,this.commentable.id),{comment:this.commentBody}).then(e=>{e.status===200&&(this.comments.data.push(e.data.data),this.commentBody="")}).catch(e=>{e.response.status===422?this.bodyerror=e.response.data.errors.comment[0]:this.bodyerror=e.response.data.message}).finally(()=>{this.submitting=!1,this.$nextTick(()=>{this.$refs.comment.focus()})}))}}},z={class:"flex flex-col"},F={key:0,class:"mt-0.5 dark:border-cool-gray-700"},I={key:1,class:"flex justify-center p-4"},K=s("svg",{class:"w-5 h-5 mr-3 -ml-1 animate-spin text-light-blue-600 dark:text-light-blue-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[s("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),s("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})],-1),U=[K],q={class:"flex mt-3"},E={key:2,class:"flex justify-center pt-4 text-gray-500 dark:text-gray-400 text-sm"},O={key:3,class:"flex flex-col mt-3 space-y-2"},P={class:"items-start order-2 max-w-lg mx-2 space-y-2 text-sm"},W=["title"],G=["innerHTML"],J=["src"],Q={key:4,class:"flex mt-1"},R=["src"],X={class:"flex-grow order-2 mx-2 text-sm"},Y=["disabled","placeholder"],Z={key:0,class:"ml-2 text-xs text-red-500"};function $(e,n,m,u,t,l){const _=h("user-displayname"),p=h("inertia-link"),b=h("icon"),x=g("tippy"),k=g("confirm");return r(),a("div",z,[m.commentableType=="post"?(r(),a("hr",F)):i("",!0),t.loading||t.loadingMore?(r(),a("div",I,U)):i("",!0),d(s("div",q,[s("button",{class:"text-sm font-semibold text-gray-500 dark:text-gray-400 focus:outline-none hover:underline",onClick:n[0]||(n[0]=(...o)=>l.loadMoreComments&&l.loadMoreComments(...o))},c(e.__("View previous comments")),1)],512),[[M,!t.loadingMore&&!t.loading&&t.showLoadMoreCommentsButton&&t.comments&&t.comments.next_page_url]]),!t.loading&&t.comments&&t.comments.data.length===0?(r(),a("div",E,c(e.__("No comments yet")),1)):i("",!0),!t.loading&&t.comments?(r(),a("div",O,[(r(!0),a(T,null,B(t.comments.data,o=>(r(),a("div",{key:o.id,class:"flex"},[s("div",P,[s("div",{class:D(["flex flex-col px-4 py-2 text-gray-700 bg-gray-100 rounded-tl-lg rounded-2xl dark:bg-cool-gray-600 dark:bg-opacity-25 dark:text-gray-200",{"border border-gray-300 dark:border-gray-700":e.$page.props.auth.user&&e.$page.props.auth.user.id===o.user_id}])},[f(p,{as:"a",class:"hover:cursor-pointer hover:underline",href:e.route("user.public.get",o.commentator.username)},{default:y(()=>[f(_,{user:o.commentator,"show-username":!0,"text-class":"font-sm"},{default:y(()=>[d((r(),a("span",{class:"inline ml-1 text-xs text-gray-500 dark:text-gray-400 focus:outline-none",title:u.formatToDayDateString(o.created_at)},[L(c(u.formatTimeAgoToNow(o.created_at)),1)],8,W)),[[x]])]),_:2},1032,["user"])]),_:2},1032,["href"]),s("span",{innerHTML:u.purifyAndLinkifyText(o.comment)},null,8,G)],2)]),s("img",{src:o.commentator.profile_photo_url,alt:"My profile",class:"order-1 w-8 h-8 mt-2 rounded-full"},null,8,J),e.$page.props.auth.user&&o.permissions.delete?d((r(),N(p,{key:0,"preserve-scroll":!0,"preserve-state":!1,as:"button",method:"delete",href:e.route(`${m.commentableType}.comment.delete`,[m.commentable.id,o.id]),class:"order-3 focus:outline-none"},{default:y(()=>[f(b,{name:"trash",class:"w-4 h-4 text-gray-200 hover:text-red-400 dark:text-gray-500 dark:hover:text-red-500"})]),_:2},1032,["href"])),[[k,{message:e.__("Are you sure you want to delete this comment?")}]]):i("",!0)]))),128))])):i("",!0),e.$page.props.auth.user?(r(),a("div",Q,[s("img",{src:e.$page.props.auth.user.profile_photo_url,alt:"My profile",class:"order-1 w-8 h-8 mt-2 rounded-full"},null,8,R),s("div",X,[s("form",{onSubmit:n[3]||(n[3]=V((...o)=>l.submitComment&&l.submitComment(...o),["prevent"]))},[d(s("input",{ref:"comment","onUpdate:modelValue":n[1]||(n[1]=o=>t.commentBody=o),disabled:t.submitting,placeholder:e.__("Write a comment..."),"aria-label":"comment",type:"text",class:"block w-full mt-1 bg-gray-100 border border-gray-100 rounded-full dark:bg-cool-gray-900 focus:border-gray-300 dark:border-gray-800 dark:focus:border-gray-700 dark:text-gray-200 focus:ring-0 sm:text-sm disabled:opacity-50",onKeypress:n[2]||(n[2]=S((...o)=>l.submitComment&&l.submitComment(...o),["enter"]))},null,40,Y),[[A,t.commentBody]])],32),t.bodyerror?(r(),a("span",Z,c(t.bodyerror),1)):i("",!0)])])):i("",!0)])}const ne=j(H,[["render",$]]);export{ne as C}; diff --git a/public/build/default/assets/CommonStatusBadge-b6c067a5.js b/public/build/default/assets/CommonStatusBadge-5b3952f3.js similarity index 96% rename from public/build/default/assets/CommonStatusBadge-b6c067a5.js rename to public/build/default/assets/CommonStatusBadge-5b3952f3.js index 36b0107d1..0ea29ba27 100644 --- a/public/build/default/assets/CommonStatusBadge-b6c067a5.js +++ b/public/build/default/assets/CommonStatusBadge-5b3952f3.js @@ -1 +1 @@ -import{o as t,d,R as o,n as s,x as n,c as l,w as c,f as b,t as g,u as y,I as k}from"./app-baae6499.js";const u={__name:"Badge",props:{colorClass:{type:String,default:"bg-gray-100 text-gray-800 dark:bg-gray-900 dark:text-gray-300"}},setup(r){return(e,a)=>(t(),d("span",{class:s(["font-medium me-2 px-2.5 py-0.5 rounded-full",r.colorClass])},[o(e.$slots,"default")],2))}},i={__name:"CommonStatusBadge",props:{status:{type:String,required:!0}},setup(r){const e=r,a=n(()=>{switch(e.status){case"pending":return"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200 border border-yellow-300 dark:border-yellow-700";case"inprogress":case"running":return"bg-cyan-100 text-cyan-800 dark:bg-cyan-900 dark:text-cyan-200 border border-cyan-300 dark:border-cyan-700";case"approved":case"completed":return"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200 border border-green-300 dark:border-green-700";case"rejected":case"failed":case"ban":case"active":case"permanent":return"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200 border border-red-300 dark:border-red-700";case"onhold":case"deferred":return"bg-amber-100 text-amber-800 dark:bg-amber-900 dark:text-amber-200 border border-amber-300 dark:border-amber-700";case"warn":return"bg-yellow-50 text-yellow-800 dark:bg-yellow-900 dark:bg-opacity-25 dark:text-yellow-200 border border-yellow-300 dark:border-yellow-700";case"kick":return"bg-gray-50 text-gray-800 dark:bg-gray-900 dark:bg-opacity-25 dark:text-gray-200 border border-gray-300 dark:border-gray-700";default:return"bg-gray-100 text-gray-600 dark:bg-gray-900 dark:text-gray-300 border border-gray-300 dark:border-gray-700"}});return(p,x)=>(t(),l(u,{"color-class":a.value},{default:c(()=>[b(g(y(k.startCase)(r.status)),1)]),_:1},8,["color-class"]))}};export{i as _}; +import{o as t,d,R as o,n as s,x as n,c as l,w as c,f as b,t as g,u as y,I as k}from"./app-b56afa57.js";const u={__name:"Badge",props:{colorClass:{type:String,default:"bg-gray-100 text-gray-800 dark:bg-gray-900 dark:text-gray-300"}},setup(r){return(e,a)=>(t(),d("span",{class:s(["font-medium me-2 px-2.5 py-0.5 rounded-full",r.colorClass])},[o(e.$slots,"default")],2))}},i={__name:"CommonStatusBadge",props:{status:{type:String,required:!0}},setup(r){const e=r,a=n(()=>{switch(e.status){case"pending":return"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200 border border-yellow-300 dark:border-yellow-700";case"inprogress":case"running":return"bg-cyan-100 text-cyan-800 dark:bg-cyan-900 dark:text-cyan-200 border border-cyan-300 dark:border-cyan-700";case"approved":case"completed":return"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200 border border-green-300 dark:border-green-700";case"rejected":case"failed":case"ban":case"active":case"permanent":return"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200 border border-red-300 dark:border-red-700";case"onhold":case"deferred":return"bg-amber-100 text-amber-800 dark:bg-amber-900 dark:text-amber-200 border border-amber-300 dark:border-amber-700";case"warn":return"bg-yellow-50 text-yellow-800 dark:bg-yellow-900 dark:bg-opacity-25 dark:text-yellow-200 border border-yellow-300 dark:border-yellow-700";case"kick":return"bg-gray-50 text-gray-800 dark:bg-gray-900 dark:bg-opacity-25 dark:text-gray-200 border border-gray-300 dark:border-gray-700";default:return"bg-gray-100 text-gray-600 dark:bg-gray-900 dark:text-gray-300 border border-gray-300 dark:border-gray-700"}});return(p,x)=>(t(),l(u,{"color-class":a.value},{default:c(()=>[b(g(y(k.startCase)(r.status)),1)]),_:1},8,["color-class"]))}};export{i as _}; diff --git a/public/build/default/assets/ConfirmPassword-79c72f88.js b/public/build/default/assets/ConfirmPassword-7d9efe24.js similarity index 79% rename from public/build/default/assets/ConfirmPassword-79c72f88.js rename to public/build/default/assets/ConfirmPassword-7d9efe24.js index 14d610a16..bdd02c8fc 100644 --- a/public/build/default/assets/ConfirmPassword-79c72f88.js +++ b/public/build/default/assets/ConfirmPassword-7d9efe24.js @@ -1 +1 @@ -import{J as h}from"./AuthenticationCard-4f39dd51.js";import{L as g}from"./LoadingButton-197d55a5.js";import{A as w}from"./AppLayout-6edbf3df.js";import{X as b}from"./XInput-c6b47d37.js";import{I as y}from"./Icon-51173a24.js";import{T as x,l as o,o as v,c as C,w as a,b as e,a as s,t as l,f as V,i as I}from"./app-baae6499.js";import{_ as j}from"./_plugin-vue_export-helper-c27b6911.js";import"./useAuthorizable-f632635d.js";const B={components:{XInput:b,AppLayout:w,LoadingButton:g,JetAuthenticationCard:h,Icon:y},data(){return{form:x({password:""})}},methods:{submit(){this.form.post(this.route("password.confirm"),{onFinish:()=>this.form.reset()})}}},P={class:"mb-4 text-sm text-gray-600 dark:text-gray-400"},k={class:"text-gray-500 text-xs italic"},A={class:"flex justify-end mt-4"};function L(t,r,N,T,n,p){const u=o("app-head"),m=o("Icon"),d=o("x-input"),c=o("loading-button"),f=o("jet-authentication-card"),_=o("app-layout");return v(),C(_,null,{default:a(()=>[e(u,{title:t.__("Confirm your Password")},null,8,["title"]),e(f,null,{logo:a(()=>[e(m,{name:"finger-print2",class:"w-20 h-20 fill-current text-light-blue-500"})]),default:a(()=>[s("div",P,l(t.__("This is a secure area of the application. Please confirm your password before continuing.")),1),s("form",{onSubmit:r[1]||(r[1]=I((...i)=>p.submit&&p.submit(...i),["prevent"]))},[s("div",null,[e(d,{id:"password",modelValue:n.form.password,"onUpdate:modelValue":r[0]||(r[0]=i=>n.form.password=i),label:t.__("Password"),required:!1,autocomplete:"current-password",error:n.form.errors.password,autofocus:!0,type:"password",name:"password"},null,8,["modelValue","label","error"]),s("span",k,l(t.__("Continue with empty password if you have no password.")),1)]),s("div",A,[e(c,{loading:n.form.processing,class:"inline-flex justify-center px-4 py-2 ml-4 text-sm font-medium text-white border border-transparent rounded-md shadow-sm bg-light-blue-500 hover:bg-light-blue-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-light-blue-500 disabled:opacity-50"},{default:a(()=>[V(l(t.__("Confirm")),1)]),_:1},8,["loading"])])],32)]),_:1})]),_:1})}const z=j(B,[["render",L]]);export{z as default}; +import{J as h}from"./AuthenticationCard-47a82d3f.js";import{L as g}from"./LoadingButton-0b0faf9b.js";import{A as w}from"./AppLayout-9dd9991d.js";import{X as b}from"./XInput-2db776cf.js";import{I as y}from"./Icon-c6b983eb.js";import{T as x,l as o,o as v,c as C,w as a,b as e,a as s,t as l,f as V,i as I}from"./app-b56afa57.js";import{_ as j}from"./_plugin-vue_export-helper-c27b6911.js";import"./useAuthorizable-94e7d830.js";const B={components:{XInput:b,AppLayout:w,LoadingButton:g,JetAuthenticationCard:h,Icon:y},data(){return{form:x({password:""})}},methods:{submit(){this.form.post(this.route("password.confirm"),{onFinish:()=>this.form.reset()})}}},P={class:"mb-4 text-sm text-gray-600 dark:text-gray-400"},k={class:"text-gray-500 text-xs italic"},A={class:"flex justify-end mt-4"};function L(t,r,N,T,n,p){const u=o("app-head"),m=o("Icon"),d=o("x-input"),c=o("loading-button"),f=o("jet-authentication-card"),_=o("app-layout");return v(),C(_,null,{default:a(()=>[e(u,{title:t.__("Confirm your Password")},null,8,["title"]),e(f,null,{logo:a(()=>[e(m,{name:"finger-print2",class:"w-20 h-20 fill-current text-light-blue-500"})]),default:a(()=>[s("div",P,l(t.__("This is a secure area of the application. Please confirm your password before continuing.")),1),s("form",{onSubmit:r[1]||(r[1]=I((...i)=>p.submit&&p.submit(...i),["prevent"]))},[s("div",null,[e(d,{id:"password",modelValue:n.form.password,"onUpdate:modelValue":r[0]||(r[0]=i=>n.form.password=i),label:t.__("Password"),required:!1,autocomplete:"current-password",error:n.form.errors.password,autofocus:!0,type:"password",name:"password"},null,8,["modelValue","label","error"]),s("span",k,l(t.__("Continue with empty password if you have no password.")),1)]),s("div",A,[e(c,{loading:n.form.processing,class:"inline-flex justify-center px-4 py-2 ml-4 text-sm font-medium text-white border border-transparent rounded-md shadow-sm bg-light-blue-500 hover:bg-light-blue-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-light-blue-500 disabled:opacity-50"},{default:a(()=>[V(l(t.__("Confirm")),1)]),_:1},8,["loading"])])],32)]),_:1})]),_:1})}const z=j(B,[["render",L]]);export{z as default}; diff --git a/public/build/default/assets/ConfirmationModal-c1d3a29c.js b/public/build/default/assets/ConfirmationModal-1a9c186e.js similarity index 90% rename from public/build/default/assets/ConfirmationModal-c1d3a29c.js rename to public/build/default/assets/ConfirmationModal-1a9c186e.js index 2ce801082..e9fd3a7ce 100644 --- a/public/build/default/assets/ConfirmationModal-c1d3a29c.js +++ b/public/build/default/assets/ConfirmationModal-1a9c186e.js @@ -1 +1 @@ -import{_ as c}from"./Modal-8088ecaa.js";import{o as i,c as n,w as r,a as s,R as o}from"./app-baae6499.js";const d={class:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},m={class:"sm:flex sm:items-start"},h=s("div",{class:"mx-auto shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"},[s("svg",{class:"h-6 w-6 text-red-600",stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})])],-1),f={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},x={class:"text-lg"},_={class:"mt-2"},u={class:"flex flex-row justify-end px-6 py-4 bg-gray-100 text-right"},v={__name:"ConfirmationModal",props:{show:{type:Boolean,default:!1},maxWidth:{type:String,default:"2xl"},closeable:{type:Boolean,default:!0}},emits:["close"],setup(t,{emit:l}){const a=()=>{l("close")};return(e,p)=>(i(),n(c,{show:t.show,"max-width":t.maxWidth,closeable:t.closeable,onClose:a},{default:r(()=>[s("div",d,[s("div",m,[h,s("div",f,[s("h3",x,[o(e.$slots,"title")]),s("div",_,[o(e.$slots,"content")])])])]),s("div",u,[o(e.$slots,"footer")])]),_:3},8,["show","max-width","closeable"]))}};export{v as _}; +import{_ as c}from"./Modal-99e63812.js";import{o as i,c as n,w as r,a as s,R as o}from"./app-b56afa57.js";const d={class:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},m={class:"sm:flex sm:items-start"},h=s("div",{class:"mx-auto shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-red-100 sm:mx-0 sm:h-10 sm:w-10"},[s("svg",{class:"h-6 w-6 text-red-600",stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})])],-1),f={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"},x={class:"text-lg"},_={class:"mt-2"},u={class:"flex flex-row justify-end px-6 py-4 bg-gray-100 text-right"},v={__name:"ConfirmationModal",props:{show:{type:Boolean,default:!1},maxWidth:{type:String,default:"2xl"},closeable:{type:Boolean,default:!0}},emits:["close"],setup(t,{emit:l}){const a=()=>{l("close")};return(e,p)=>(i(),n(c,{show:t.show,"max-width":t.maxWidth,closeable:t.closeable,onClose:a},{default:r(()=>[s("div",d,[s("div",m,[h,s("div",f,[s("h3",x,[o(e.$slots,"title")]),s("div",_,[o(e.$slots,"content")])])])]),s("div",u,[o(e.$slots,"footer")])]),_:3},8,["show","max-width","closeable"]))}};export{v as _}; diff --git a/public/build/default/assets/ConfirmsPassword-55f5c754.js b/public/build/default/assets/ConfirmsPassword-b0939d96.js similarity index 83% rename from public/build/default/assets/ConfirmsPassword-55f5c754.js rename to public/build/default/assets/ConfirmsPassword-b0939d96.js index a554d39b3..5b9fc3719 100644 --- a/public/build/default/assets/ConfirmsPassword-55f5c754.js +++ b/public/build/default/assets/ConfirmsPassword-b0939d96.js @@ -1 +1 @@ -import{r as u,h as g,o as y,d as h,a as d,R as C,b as e,w as a,f as t,t as r,a6 as k,n as v,a2 as b}from"./app-baae6499.js";import{_ as x}from"./Button-930b37e5.js";import{_ as P}from"./DialogModal-aceecf27.js";import{_ as V}from"./Input-eeec398a.js";import{_ as $}from"./InputError-0f9066f5.js";import{_ as S}from"./SecondaryButton-ef45fb59.js";const B={class:"mt-4"},K={class:"text-gray-500 text-xs italic"},F={__name:"ConfirmsPassword",props:{title:{type:String,default:"Confirm Password"},content:{type:String,default:"For your security, please confirm your password to continue."},button:{type:String,default:"Confirm"}},emits:["confirmed"],setup(n,{emit:p}){const i=u(!1),s=g({password:"",error:"",processing:!1}),l=u(null),w=()=>{axios.get(route("password.confirmation")).then(o=>{o.data.confirmed?p("confirmed"):(i.value=!0,setTimeout(()=>l.value.focus(),250))})},f=()=>{s.processing=!0,axios.post(route("password.confirm"),{password:s.password}).then(()=>{s.processing=!1,c(),b().then(()=>p("confirmed"))}).catch(o=>{s.processing=!1,s.error=o.response.data.errors.password[0],l.value.focus()})},c=()=>{i.value=!1,s.password="",s.error=""};return(o,m)=>(y(),h("span",null,[d("span",{onClick:w},[C(o.$slots,"default")]),e(P,{show:i.value,onClose:c},{title:a(()=>[t(r(n.title),1)]),content:a(()=>[t(r(n.content)+" ",1),d("div",B,[e(V,{ref_key:"passwordInput",ref:l,modelValue:s.password,"onUpdate:modelValue":m[0]||(m[0]=_=>s.password=_),type:"password",class:"mt-1 block w-3/4",placeholder:o.__("Password"),onKeyup:k(f,["enter"])},null,8,["modelValue","placeholder","onKeyup"]),e($,{message:s.error,class:"mt-2"},null,8,["message"])]),d("span",K,r(o.__("Continue with empty password if you have no password.")),1)]),footer:a(()=>[e(S,{onClick:c},{default:a(()=>[t(r(o.__("Cancel")),1)]),_:1}),e(x,{class:v(["ml-3",{"opacity-25":s.processing}]),disabled:s.processing,onClick:f},{default:a(()=>[t(r(n.button),1)]),_:1},8,["class","disabled"])]),_:1},8,["show"])]))}};export{F as _}; +import{r as u,h as g,o as y,d as h,a as d,R as C,b as e,w as a,f as t,t as r,a6 as k,n as v,a2 as b}from"./app-b56afa57.js";import{_ as x}from"./Button-222a012d.js";import{_ as P}from"./DialogModal-f103df3f.js";import{_ as V}from"./Input-80baf30b.js";import{_ as $}from"./InputError-c9da7e14.js";import{_ as S}from"./SecondaryButton-eeafe46e.js";const B={class:"mt-4"},K={class:"text-gray-500 text-xs italic"},F={__name:"ConfirmsPassword",props:{title:{type:String,default:"Confirm Password"},content:{type:String,default:"For your security, please confirm your password to continue."},button:{type:String,default:"Confirm"}},emits:["confirmed"],setup(n,{emit:p}){const i=u(!1),s=g({password:"",error:"",processing:!1}),l=u(null),w=()=>{axios.get(route("password.confirmation")).then(o=>{o.data.confirmed?p("confirmed"):(i.value=!0,setTimeout(()=>l.value.focus(),250))})},f=()=>{s.processing=!0,axios.post(route("password.confirm"),{password:s.password}).then(()=>{s.processing=!1,c(),b().then(()=>p("confirmed"))}).catch(o=>{s.processing=!1,s.error=o.response.data.errors.password[0],l.value.focus()})},c=()=>{i.value=!1,s.password="",s.error=""};return(o,m)=>(y(),h("span",null,[d("span",{onClick:w},[C(o.$slots,"default")]),e(P,{show:i.value,onClose:c},{title:a(()=>[t(r(n.title),1)]),content:a(()=>[t(r(n.content)+" ",1),d("div",B,[e(V,{ref_key:"passwordInput",ref:l,modelValue:s.password,"onUpdate:modelValue":m[0]||(m[0]=_=>s.password=_),type:"password",class:"mt-1 block w-3/4",placeholder:o.__("Password"),onKeyup:k(f,["enter"])},null,8,["modelValue","placeholder","onKeyup"]),e($,{message:s.error,class:"mt-2"},null,8,["message"])]),d("span",K,r(o.__("Continue with empty password if you have no password.")),1)]),footer:a(()=>[e(S,{onClick:c},{default:a(()=>[t(r(o.__("Cancel")),1)]),_:1}),e(x,{class:v(["ml-3",{"opacity-25":s.processing}]),disabled:s.processing,onClick:f},{default:a(()=>[t(r(n.button),1)]),_:1},8,["class","disabled"])]),_:1},8,["show"])]))}};export{F as _}; diff --git a/public/build/default/assets/Consolelog-6e8da507.js b/public/build/default/assets/Consolelog-412f47c3.js similarity index 68% rename from public/build/default/assets/Consolelog-6e8da507.js rename to public/build/default/assets/Consolelog-412f47c3.js index 7c733f36c..33bf20a45 100644 --- a/public/build/default/assets/Consolelog-6e8da507.js +++ b/public/build/default/assets/Consolelog-412f47c3.js @@ -1 +1 @@ -import{q as h,o as c,c as v,w as o,k as w,b as a,u as i,_ as x,a as s,t as l,j as d,d as p,f as _}from"./app-baae6499.js";import{u as b}from"./AppLayout-6edbf3df.js";import{_ as g}from"./AdminLayout-d79c45db.js";import{_ as k}from"./ServerIntelServerSelector-d7147618.js";import{_ as D}from"./DataTable-56310b2c.js";import{D as m}from"./DtRowItem-e0e2d82c.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./Icon-51173a24.js";import"./useAuthorizable-f632635d.js";import"./use-resolve-button-type-957bab96.js";import"./open-closed-ee868aaf.js";import"./CloudArrowDownIcon-db3b0419.js";import"./index-b1383bad.js";import"./XSelect-9fb18d4e.js";import"./vue-multiselect.esm-0851868f.js";import"./XMarkIcon-8be5cb6c.js";import"./hidden-593eabf1.js";const C={class:"p-4 mx-auto space-y-4 px-10"},S={class:"px-4 py-4 text-sm font-medium text-gray-800 whitespace-nowrap dark:text-gray-200"},T={class:"px-4"},$={class:"text-sm text-gray-800 dark:text-gray-200"},j={class:"whitespace-pre-wrap"},B=["title"],I=["title"],X={__name:"Consolelog",props:{serverList:{type:Object},filters:{type:Object},consoleHistory:{type:Object}},setup(r){const{__:e}=w(),{formatTimeAgoToNow:f,formatToDayDateString:u}=b(),y=[{key:"id",label:e("ID"),sortable:!0,class:"text-left"},{key:"data",label:e("Data"),sortable:!1},{key:"server_id",label:e("Server"),sortable:!0},{key:"created_at",label:e("Created"),sortable:!0}];return(L,N)=>{const n=h("tippy");return c(),v(g,null,{default:o(()=>[a(x,{title:i(e)("ConsoleLog - ServerIntel")},null,8,["title"]),s("div",C,[a(k,{title:i(e)("ConsoleLog"),"server-list":r.serverList,filters:r.filters},null,8,["title","server-list","filters"]),s("div",null,[a(D,{class:"bg-white rounded shadow dark:bg-gray-800",header:y,data:r.consoleHistory,filters:r.filters},{default:o(({item:t})=>[s("td",S,l(t.id),1),s("td",T,[s("div",$,[s("pre",j,l(t.data),1)])]),a(m,null,{default:o(()=>[d((c(),p("span",{class:"whitespace-nowrap",title:`Server ID: ${t.server.id}`},[_(l(t.server.name),1)],8,B)),[[n]])]),_:2},1024),a(m,null,{default:o(()=>[d((c(),p("span",{class:"whitespace-nowrap",title:i(u)(t.created_at)},[_(l(i(f)(t.created_at)),1)],8,I)),[[n]])]),_:2},1024)]),_:1},8,["data","filters"])])])]),_:1})}}};export{X as default}; +import{q as h,o as c,c as v,w as o,k as w,b as a,u as i,_ as x,a as s,t as l,j as d,d as p,f as _}from"./app-b56afa57.js";import{u as b}from"./AppLayout-9dd9991d.js";import{_ as g}from"./AdminLayout-5df346fb.js";import{_ as k}from"./ServerIntelServerSelector-00201d1c.js";import{_ as D}from"./DataTable-0e1cc9de.js";import{D as m}from"./DtRowItem-1290e867.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./Icon-c6b983eb.js";import"./useAuthorizable-94e7d830.js";import"./use-resolve-button-type-9e76052c.js";import"./open-closed-65012d7e.js";import"./CloudArrowDownIcon-ce7a9066.js";import"./index-0d4d23a0.js";import"./XSelect-9669b895.js";import"./vue-multiselect.esm-f8979d44.js";import"./XMarkIcon-2ab1c8ef.js";import"./hidden-4383f5d9.js";const C={class:"p-4 mx-auto space-y-4 px-10"},S={class:"px-4 py-4 text-sm font-medium text-gray-800 whitespace-nowrap dark:text-gray-200"},T={class:"px-4"},$={class:"text-sm text-gray-800 dark:text-gray-200"},j={class:"whitespace-pre-wrap"},B=["title"],I=["title"],X={__name:"Consolelog",props:{serverList:{type:Object},filters:{type:Object},consoleHistory:{type:Object}},setup(r){const{__:e}=w(),{formatTimeAgoToNow:f,formatToDayDateString:u}=b(),y=[{key:"id",label:e("ID"),sortable:!0,class:"text-left"},{key:"data",label:e("Data"),sortable:!1},{key:"server_id",label:e("Server"),sortable:!0},{key:"created_at",label:e("Created"),sortable:!0}];return(L,N)=>{const n=h("tippy");return c(),v(g,null,{default:o(()=>[a(x,{title:i(e)("ConsoleLog - ServerIntel")},null,8,["title"]),s("div",C,[a(k,{title:i(e)("ConsoleLog"),"server-list":r.serverList,filters:r.filters},null,8,["title","server-list","filters"]),s("div",null,[a(D,{class:"bg-white rounded shadow dark:bg-gray-800",header:y,data:r.consoleHistory,filters:r.filters},{default:o(({item:t})=>[s("td",S,l(t.id),1),s("td",T,[s("div",$,[s("pre",j,l(t.data),1)])]),a(m,null,{default:o(()=>[d((c(),p("span",{class:"whitespace-nowrap",title:`Server ID: ${t.server.id}`},[_(l(t.server.name),1)],8,B)),[[n]])]),_:2},1024),a(m,null,{default:o(()=>[d((c(),p("span",{class:"whitespace-nowrap",title:i(u)(t.created_at)},[_(l(i(f)(t.created_at)),1)],8,I)),[[n]])]),_:2},1024)]),_:1},8,["data","filters"])])])]),_:1})}}};export{X as default}; diff --git a/public/build/default/assets/CreateBadge-04bfc546.js b/public/build/default/assets/CreateBadge-5f1cf3f7.js similarity index 89% rename from public/build/default/assets/CreateBadge-04bfc546.js rename to public/build/default/assets/CreateBadge-5f1cf3f7.js index e209b0186..e8acc2495 100644 --- a/public/build/default/assets/CreateBadge-04bfc546.js +++ b/public/build/default/assets/CreateBadge-5f1cf3f7.js @@ -1 +1 @@ -import{_ as v}from"./SecondaryButton-ef45fb59.js";import{L as k}from"./LoadingButton-197d55a5.js";import{X as w}from"./XInput-c6b47d37.js";import{X as x}from"./XCheckbox-29701ec6.js";import{_ as B}from"./InputError-0f9066f5.js";import{T as V,l as i,o as S,c as P,w as d,b as a,a as e,t as n,f as m,i as p,j as A,m as j,p as C}from"./app-baae6499.js";import{_ as I}from"./AdminLayout-d79c45db.js";import{_ as N}from"./_plugin-vue_export-helper-c27b6911.js";import"./AppLayout-6edbf3df.js";import"./Icon-51173a24.js";import"./useAuthorizable-f632635d.js";import"./use-resolve-button-type-957bab96.js";import"./open-closed-ee868aaf.js";import"./CloudArrowDownIcon-db3b0419.js";import"./index-b1383bad.js";const U={components:{AdminLayout:I,JetInputError:B,LoadingButton:k,JetSecondaryButton:v,XInput:w,XCheckbox:x},data(){return{form:V({name:"",shortname:"",sort_order:"",is_sticky:!1,photo:null}),photoPreview:null}},methods:{addBadge(){this.$refs.photo&&(this.form.photo=this.$refs.photo.files[0]),this.form.post(route("admin.badge.store"),{preserveScroll:!0})},updatePhotoPreview(){const o=new FileReader;o.onload=s=>{this.photoPreview=s.target.result},o.readAsDataURL(this.$refs.photo.files[0])},selectNewPhoto(){this.$refs.photo.click()}}},L={class:"max-w-6xl px-10 py-12 mx-auto"},E={class:"flex justify-between mb-8"},D={class:"text-3xl font-bold text-gray-500 dark:text-gray-300"},T={class:"mt-10 sm:mt-0"},X={class:"md:grid md:grid-cols-3 md:gap-6"},M={class:"md:col-span-1"},z={class:"px-4 sm:px-0"},J={class:"text-lg font-medium leading-6 text-gray-900 dark:text-gray-400"},O={class:"mt-1 text-sm text-gray-600 dark:text-gray-500"},R=e("br",null,null,-1),q={class:"mt-3 text-sm text-gray-600 dark:text-gray-500"},F={class:"mt-5 md:mt-0 md:col-span-2"},Y={class:"overflow-hidden shadow sm:rounded-md"},G={class:"px-4 py-5 bg-white dark:bg-cool-gray-800 sm:p-6"},H={class:"grid grid-cols-6 gap-6"},K={class:"col-span-6 sm:col-span-4"},Q={class:"col-span-6 sm:col-span-2"},W={class:"col-span-6 sm:col-span-3"},Z={class:"flex items-center col-span-6 sm:col-span-3"},$={class:"col-span-6 sm:col-span-6"},ee={for:"badge_img",class:"block text-sm font-medium text-gray-700 dark:text-gray-400"},oe={class:"mt-2"},te={class:"flex justify-end px-4 py-3 bg-gray-50 dark:bg-cool-gray-800 sm:px-6"};function se(o,s,re,ae,t,l){const _=i("app-head"),u=i("inertia-link"),c=i("x-input"),g=i("x-checkbox"),h=i("jet-secondary-button"),f=i("jet-input-error"),b=i("loading-button"),y=i("AdminLayout");return S(),P(y,null,{default:d(()=>[a(_,{title:o.__("Add User Badge")},null,8,["title"]),e("div",L,[e("div",E,[e("h1",D,n(o.__("Add User Badge")),1),a(u,{href:o.route("admin.badge.index"),class:"inline-flex items-center px-4 py-2 text-xs font-semibold tracking-widest text-white uppercase transition duration-150 ease-in-out bg-gray-400 border border-transparent rounded-md dark:bg-gray-600 hover:bg-gray-500 active:bg-gray-600 focus:outline-none focus:border-gray-500 focus:shadow-outline-gray"},{default:d(()=>[e("span",null,n(o.__("Cancel")),1)]),_:1},8,["href"])]),e("div",T,[e("div",X,[e("div",M,[e("div",z,[e("h3",J,n(o.__("Overview")),1),e("p",O,[m(n(o.__("Badges are something you assign to users for some achievements.")),1),R,m(n(o.__("Eg: You can create a badge for Special User, Top Donator, Most Active etc.")),1)]),e("p",q,n(o.__("By default badges are marked non sticky. Means it will only show when you visit user's profile page. If you want the badge to always display beside username tick the 'Is Sticky' checkbox.")),1)])]),e("div",F,[e("form",{onSubmit:s[5]||(s[5]=p((...r)=>l.addBadge&&l.addBadge(...r),["prevent"]))},[e("div",Y,[e("div",G,[e("div",H,[e("div",K,[a(c,{id:"name",modelValue:t.form.name,"onUpdate:modelValue":s[0]||(s[0]=r=>t.form.name=r),label:o.__("Badge Name"),help:o.__("Eg: Special"),error:t.form.errors.name,type:"text",name:"name"},null,8,["modelValue","label","help","error"])]),e("div",Q,[a(c,{id:"shortname",modelValue:t.form.shortname,"onUpdate:modelValue":s[1]||(s[1]=r=>t.form.shortname=r),label:o.__("Short Name"),help:o.__("Eg: special"),error:t.form.errors.shortname,type:"text",name:"shortname"},null,8,["modelValue","label","help","error"])]),e("div",W,[a(c,{id:"sort_order",modelValue:t.form.sort_order,"onUpdate:modelValue":s[2]||(s[2]=r=>t.form.sort_order=r),label:o.__("Sort Order"),error:t.form.errors.sort_order,type:"number",name:"sort_order"},null,8,["modelValue","label","error"])]),e("div",Z,[a(g,{id:"is_sticky",modelValue:t.form.is_sticky,"onUpdate:modelValue":s[3]||(s[3]=r=>t.form.is_sticky=r),label:o.__("Is Sticky"),help:o.__("Tick if you want this badge to always appear with username"),name:"is_sticky",error:t.form.errors.is_sticky},null,8,["modelValue","label","help","error"])]),e("div",$,[e("input",{id:"badge_img",ref:"photo",type:"file",class:"hidden",onChange:s[4]||(s[4]=(...r)=>l.updatePhotoPreview&&l.updatePhotoPreview(...r))},null,544),e("label",ee,n(o.__("Badge Icon Image (A small square(Eg: 50x50) image is recomended)")),1),A(e("div",oe,[e("span",{class:"block w-20 h-20",style:C("background-size: cover; background-repeat: no-repeat; background-position: center center; background-image: url('"+t.photoPreview+"');")},null,4)],512),[[j,t.photoPreview]]),a(h,{class:"mt-2 mr-2",type:"button",onClick:p(l.selectNewPhoto,["prevent"])},{default:d(()=>[m(n(o.__("Select A New Image")),1)]),_:1},8,["onClick"]),a(f,{message:t.form.errors.photo,class:"mt-2"},null,8,["message"])])])]),e("div",te,[a(b,{loading:t.form.processing,class:"inline-flex justify-center px-4 py-2 text-sm font-medium text-white border border-transparent rounded-md shadow-sm bg-light-blue-600 hover:bg-light-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-light-blue-500 disabled:opacity-50",type:"submit"},{default:d(()=>[m(n(o.__("Add Badge")),1)]),_:1},8,["loading"])])])],32)])])])])]),_:1})}const ke=N(U,[["render",se]]);export{ke as default}; +import{_ as v}from"./SecondaryButton-eeafe46e.js";import{L as k}from"./LoadingButton-0b0faf9b.js";import{X as w}from"./XInput-2db776cf.js";import{X as x}from"./XCheckbox-0e9cb980.js";import{_ as B}from"./InputError-c9da7e14.js";import{T as V,l as i,o as S,c as P,w as d,b as a,a as e,t as n,f as m,i as p,j as A,m as j,p as C}from"./app-b56afa57.js";import{_ as I}from"./AdminLayout-5df346fb.js";import{_ as N}from"./_plugin-vue_export-helper-c27b6911.js";import"./AppLayout-9dd9991d.js";import"./Icon-c6b983eb.js";import"./useAuthorizable-94e7d830.js";import"./use-resolve-button-type-9e76052c.js";import"./open-closed-65012d7e.js";import"./CloudArrowDownIcon-ce7a9066.js";import"./index-0d4d23a0.js";const U={components:{AdminLayout:I,JetInputError:B,LoadingButton:k,JetSecondaryButton:v,XInput:w,XCheckbox:x},data(){return{form:V({name:"",shortname:"",sort_order:"",is_sticky:!1,photo:null}),photoPreview:null}},methods:{addBadge(){this.$refs.photo&&(this.form.photo=this.$refs.photo.files[0]),this.form.post(route("admin.badge.store"),{preserveScroll:!0})},updatePhotoPreview(){const o=new FileReader;o.onload=s=>{this.photoPreview=s.target.result},o.readAsDataURL(this.$refs.photo.files[0])},selectNewPhoto(){this.$refs.photo.click()}}},L={class:"max-w-6xl px-10 py-12 mx-auto"},E={class:"flex justify-between mb-8"},D={class:"text-3xl font-bold text-gray-500 dark:text-gray-300"},T={class:"mt-10 sm:mt-0"},X={class:"md:grid md:grid-cols-3 md:gap-6"},M={class:"md:col-span-1"},z={class:"px-4 sm:px-0"},J={class:"text-lg font-medium leading-6 text-gray-900 dark:text-gray-400"},O={class:"mt-1 text-sm text-gray-600 dark:text-gray-500"},R=e("br",null,null,-1),q={class:"mt-3 text-sm text-gray-600 dark:text-gray-500"},F={class:"mt-5 md:mt-0 md:col-span-2"},Y={class:"overflow-hidden shadow sm:rounded-md"},G={class:"px-4 py-5 bg-white dark:bg-cool-gray-800 sm:p-6"},H={class:"grid grid-cols-6 gap-6"},K={class:"col-span-6 sm:col-span-4"},Q={class:"col-span-6 sm:col-span-2"},W={class:"col-span-6 sm:col-span-3"},Z={class:"flex items-center col-span-6 sm:col-span-3"},$={class:"col-span-6 sm:col-span-6"},ee={for:"badge_img",class:"block text-sm font-medium text-gray-700 dark:text-gray-400"},oe={class:"mt-2"},te={class:"flex justify-end px-4 py-3 bg-gray-50 dark:bg-cool-gray-800 sm:px-6"};function se(o,s,re,ae,t,l){const _=i("app-head"),u=i("inertia-link"),c=i("x-input"),g=i("x-checkbox"),h=i("jet-secondary-button"),f=i("jet-input-error"),b=i("loading-button"),y=i("AdminLayout");return S(),P(y,null,{default:d(()=>[a(_,{title:o.__("Add User Badge")},null,8,["title"]),e("div",L,[e("div",E,[e("h1",D,n(o.__("Add User Badge")),1),a(u,{href:o.route("admin.badge.index"),class:"inline-flex items-center px-4 py-2 text-xs font-semibold tracking-widest text-white uppercase transition duration-150 ease-in-out bg-gray-400 border border-transparent rounded-md dark:bg-gray-600 hover:bg-gray-500 active:bg-gray-600 focus:outline-none focus:border-gray-500 focus:shadow-outline-gray"},{default:d(()=>[e("span",null,n(o.__("Cancel")),1)]),_:1},8,["href"])]),e("div",T,[e("div",X,[e("div",M,[e("div",z,[e("h3",J,n(o.__("Overview")),1),e("p",O,[m(n(o.__("Badges are something you assign to users for some achievements.")),1),R,m(n(o.__("Eg: You can create a badge for Special User, Top Donator, Most Active etc.")),1)]),e("p",q,n(o.__("By default badges are marked non sticky. Means it will only show when you visit user's profile page. If you want the badge to always display beside username tick the 'Is Sticky' checkbox.")),1)])]),e("div",F,[e("form",{onSubmit:s[5]||(s[5]=p((...r)=>l.addBadge&&l.addBadge(...r),["prevent"]))},[e("div",Y,[e("div",G,[e("div",H,[e("div",K,[a(c,{id:"name",modelValue:t.form.name,"onUpdate:modelValue":s[0]||(s[0]=r=>t.form.name=r),label:o.__("Badge Name"),help:o.__("Eg: Special"),error:t.form.errors.name,type:"text",name:"name"},null,8,["modelValue","label","help","error"])]),e("div",Q,[a(c,{id:"shortname",modelValue:t.form.shortname,"onUpdate:modelValue":s[1]||(s[1]=r=>t.form.shortname=r),label:o.__("Short Name"),help:o.__("Eg: special"),error:t.form.errors.shortname,type:"text",name:"shortname"},null,8,["modelValue","label","help","error"])]),e("div",W,[a(c,{id:"sort_order",modelValue:t.form.sort_order,"onUpdate:modelValue":s[2]||(s[2]=r=>t.form.sort_order=r),label:o.__("Sort Order"),error:t.form.errors.sort_order,type:"number",name:"sort_order"},null,8,["modelValue","label","error"])]),e("div",Z,[a(g,{id:"is_sticky",modelValue:t.form.is_sticky,"onUpdate:modelValue":s[3]||(s[3]=r=>t.form.is_sticky=r),label:o.__("Is Sticky"),help:o.__("Tick if you want this badge to always appear with username"),name:"is_sticky",error:t.form.errors.is_sticky},null,8,["modelValue","label","help","error"])]),e("div",$,[e("input",{id:"badge_img",ref:"photo",type:"file",class:"hidden",onChange:s[4]||(s[4]=(...r)=>l.updatePhotoPreview&&l.updatePhotoPreview(...r))},null,544),e("label",ee,n(o.__("Badge Icon Image (A small square(Eg: 50x50) image is recomended)")),1),A(e("div",oe,[e("span",{class:"block w-20 h-20",style:C("background-size: cover; background-repeat: no-repeat; background-position: center center; background-image: url('"+t.photoPreview+"');")},null,4)],512),[[j,t.photoPreview]]),a(h,{class:"mt-2 mr-2",type:"button",onClick:p(l.selectNewPhoto,["prevent"])},{default:d(()=>[m(n(o.__("Select A New Image")),1)]),_:1},8,["onClick"]),a(f,{message:t.form.errors.photo,class:"mt-2"},null,8,["message"])])])]),e("div",te,[a(b,{loading:t.form.processing,class:"inline-flex justify-center px-4 py-2 text-sm font-medium text-white border border-transparent rounded-md shadow-sm bg-light-blue-600 hover:bg-light-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-light-blue-500 disabled:opacity-50",type:"submit"},{default:d(()=>[m(n(o.__("Add Badge")),1)]),_:1},8,["loading"])])])],32)])])])])]),_:1})}const ke=N(U,[["render",se]]);export{ke as default}; diff --git a/public/build/default/assets/CreateCommandQueue-7ef0bd15.js b/public/build/default/assets/CreateCommandQueue-9ad11c12.js similarity index 94% rename from public/build/default/assets/CreateCommandQueue-7ef0bd15.js rename to public/build/default/assets/CreateCommandQueue-9ad11c12.js index d94ad6d7d..36d662c13 100644 --- a/public/build/default/assets/CreateCommandQueue-7ef0bd15.js +++ b/public/build/default/assets/CreateCommandQueue-9ad11c12.js @@ -1 +1 @@ -import{s as ie,r as R,x as v,y as B,z as D,A as G,B as W,u as r,C as z,D as S,E as de,G as M,F as ue,T as pe,l as ce,o as O,c as me,w as E,b as x,a as n,t as g,i as fe,f as C,n as $,d as A,e as N,k as ye}from"./app-baae6499.js";import{_ as ve}from"./AdminLayout-d79c45db.js";import{L as ge}from"./LoadingButton-197d55a5.js";import{X as be}from"./XInput-c6b47d37.js";import{X as he}from"./XSelect-9fb18d4e.js";import{X as xe}from"./XCheckbox-29701ec6.js";import{s as Y}from"./vue-multiselect.esm-0851868f.js";import{i as _e}from"./index.es-2d3f7629.js";import{_ as ke}from"./InputError-0f9066f5.js";import{t as F,H as I,o as P,K as we,T as Se,a as V}from"./use-resolve-button-type-957bab96.js";import{m as L,O as Re,f as Ee,a as Ve,P as H,N as T,T as K}from"./hidden-593eabf1.js";import"./AppLayout-6edbf3df.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./Icon-51173a24.js";import"./useAuthorizable-f632635d.js";import"./open-closed-ee868aaf.js";import"./CloudArrowDownIcon-db3b0419.js";import"./index-b1383bad.js";function Oe({container:e,accept:a,walk:o,enabled:t}){ie(()=>{let s=e.value;if(!s||t!==void 0&&!t.value)return;let u=L(e);if(!u)return;let d=Object.assign(p=>a(p),{acceptNode:a}),y=u.createTreeWalker(s,NodeFilter.SHOW_ELEMENT,d,!1);for(;y.nextNode();)o(y.currentNode)})}function J(e={},a=null,o=[]){for(let[t,s]of Object.entries(e))Z(o,Q(a,t),s);return o}function Q(e,a){return e?e+"["+a+"]":a}function Z(e,a,o){if(Array.isArray(o))for(let[t,s]of o.entries())Z(e,Q(a,t.toString()),s);else o instanceof Date?e.push([a,o.toISOString()]):typeof o=="boolean"?e.push([a,o?"1":"0"]):typeof o=="string"?e.push([a,o]):typeof o=="number"?e.push([a,`${o}`]):o==null?e.push([a,""]):J(o,a,e)}function Ce(e){var a,o;let t=(a=e==null?void 0:e.form)!=null?a:e.closest("form");if(t){for(let s of t.elements)if(s!==e&&(s.tagName==="INPUT"&&s.type==="submit"||s.tagName==="BUTTON"&&s.type==="submit"||s.nodeName==="INPUT"&&s.type==="image")){s.click();return}(o=t.requestSubmit)==null||o.call(t)}}function $e(e,a,o){let t=R(o==null?void 0:o.value),s=v(()=>e.value!==void 0);return[v(()=>s.value?e.value:t.value),function(u){return s.value||(t.value=u),a==null?void 0:a(u)}]}let Ae=Symbol("DescriptionContext");function ee({slot:e=R({}),name:a="Description",props:o={}}={}){let t=R([]);function s(u){return t.value.push(u),()=>{let d=t.value.indexOf(u);d!==-1&&t.value.splice(d,1)}}return B(Ae,{register:s,slot:e,name:a,props:o}),v(()=>t.value.length>0?t.value.join(" "):void 0)}let te=Symbol("LabelContext");function ae(){let e=z(te,null);if(e===null){let a=new Error("You used a