From 2ef174901a907a94921a0d005aa8c8b06acc5251 Mon Sep 17 00:00:00 2001 From: Paul Grimes Date: Tue, 3 Dec 2024 10:00:56 +1300 Subject: [PATCH] Production build - doco working locally --- composer.json | 2 +- composer.lock | 3366 ++++++++--------- config/scribe.php | 3 - package-lock.json | 613 ++- package.json | 4 +- ...WeNERtHw.js => APIAccessToken-BxKNWUdy.js} | 2 +- ...N8Itwfz.js => APIAccessTokens-C66OPdJ3.js} | 2 +- ...Home-BDzN-pu4.js => AdminHome-DAyF3eY4.js} | 2 +- ...s => AdminTeamCreateComponent--ZqK8uaD.js} | 2 +- ...amVoucherTemplateEditComponent-D8-25Xe9.js | 1 - ...amVoucherTemplateEditComponent-kp4t6m7l.js | 1 + ...TKkz.js => AdminTopNavigation-Bl9ElpaD.js} | 2 +- ... => AdminUserDetailsComponent-BIuw6cp6.js} | 2 +- ...UH.js => AjaxLoadingIndicator-DnIg5N8b.js} | 2 +- ...XEUN_wz.js => ApplicationLogo-B917rUN3.js} | 2 +- public/build/assets/AuditItems-C91XYBsh.js | 1 - public/build/assets/AuditItems-CVvx5G_R.js | 1 + ...wdn.js => AuditItemsComponent-C0ljhUTP.js} | 2 +- ...Waj.js => AuthenticatedLayout-DuLcXyKk.js} | 8 +- ...ckbox-wBCZrcZW.js => Checkbox-YEQY-CTw.js} | 2 +- ...A4mXGUh.js => ConfirmPassword-CPdCSdFC.js} | 2 +- ...n-cN2oNBEm.js => DangerButton-Bm5iDOLt.js} | 2 +- ...oard-voGaOXrv.js => Dashboard-DNnYM2Kc.js} | 2 +- ...D6z3ubnh.js => DeleteUserForm-CdHmJiuD.js} | 2 +- .../{Edit-B3eZwoPy.js => Edit-BofEmzVj.js} | 2 +- ...ThOZn2.js => ErrorMessagePage-DtsaBtAA.js} | 2 +- ...C6UcyEey.js => ForgotPassword-CtrOA6NT.js} | 2 +- ...ut-BgHVKdPO.js => GuestLayout-BPBJX1aK.js} | 2 +- ...ror-CnwioU3j.js => InputError-CTOWZzBt.js} | 2 +- ...bel-D6wY3cNc.js => InputLabel-P7ZTY_pn.js} | 2 +- .../{Login-BzDW5pEZ.js => Login-CSSIF9_W.js} | 2 +- ...{MyTeam-B-XbZQ3p.js => MyTeam-Bp8yT71s.js} | 2 +- ...DnjB4.js => MyTeamVoucherSets-BKBSr5xT.js} | 2 +- ...OsjZ.js => PaginatorComponent-DpqX95xS.js} | 2 +- ...-6L6tESKC.js => PrimaryButton-BtqGl7rR.js} | 2 +- ...ister-Ch5scNZb.js => Register-CvIlSVQL.js} | 2 +- ...-DmhMO4o_.js => ResetPassword-BBx7Oi9y.js} | 2 +- ...ml8iKd5.js => SecondaryButton-DL_I_H3U.js} | 2 +- .../{Team-nT4YbDKo.js => Team-BP2ZvGAI.js} | 2 +- public/build/assets/TeamNew-2IygTToe.js | 1 + public/build/assets/TeamNew-3N8ET57c.js | 1 - .../{Teams-Bp92R9wt.js => Teams-BklxzQRZ.js} | 2 +- ...nput-BGBBA2nL.js => TextInput-C41DJZHw.js} | 2 +- ...O8Y2.js => UpdatePasswordForm-C370omcu.js} | 2 +- ... UpdateProfileInformationForm-CxNRXhbu.js} | 2 +- .../{User-CbxmEhwT.js => User-C_zeNGnt.js} | 2 +- .../{Users-DqdRsvhQ.js => Users-BeOew9TI.js} | 2 +- ...il-CVpG63al.js => VerifyEmail-XmSRG_in.js} | 2 +- ...oucher-BviKMyQX.js => Voucher-DH40YzDI.js} | 2 +- ...oucher-3e_NpFce.js => Voucher-brxKvDUT.js} | 2 +- ...-CVnRNsPo.js => VoucherRedeem-u7uJu8Rx.js} | 2 +- ...KYbvZ.js => VoucherRedemption-D8qaxnfs.js} | 2 +- ...PIaF.js => VoucherRedemptions-I5DskLP3.js} | 2 +- ...Set-C_M-yuj1.js => VoucherSet-DZ--1ZAq.js} | 2 +- ...Set-BGMqhdxQ.js => VoucherSet-DeRvCbT6.js} | 2 +- ...oucherSetMerchantTeamApproval-CmPfS_Dx.js} | 2 +- ...-BoGlXiEp.js => VoucherSetNew-FiyNeAgB.js} | 2 +- ...ts-Ym74sKgi.js => VoucherSets-w_SenqBe.js} | 2 +- ...Zu.js => VoucherSetsComponent-PmCvbfnV.js} | 2 +- .../assets/VoucherTemplateEdit-CAqmVyFX.js | 1 - .../assets/VoucherTemplateEdit-tUbvCUOh.js | 1 + .../assets/VoucherTemplateNew-CO4wq0pO.js | 1 + .../assets/VoucherTemplateNew-Du4J7iBR.js | 1 - public/build/assets/Vouchers-B0FApYnN.js | 1 - public/build/assets/Vouchers-CDzwjVXy.js | 1 + ...V5xCe.js => VouchersComponent-o-O6pMZi.js} | 2 +- public/build/assets/app-DolNWhzr.js | 103 + public/build/assets/app-zpP4mvhd.js | 103 - public/build/assets/dayjs.min-C0_0pMrK.js | 1 - public/build/assets/dayjs.min-ilzO22t1.js | 1 + .../build/assets/localizedFormat-DCfJHBMc.js | 1 - .../build/assets/localizedFormat-r4JmUt9E.js | 1 + public/build/assets/relativeTime-BTl_QCHW.js | 1 + public/build/assets/relativeTime-__Y28WrV.js | 1 - public/build/assets/utc-CWodzHWT.js | 1 + public/build/assets/utc-D2jiDVXM.js | 1 - public/build/manifest.json | 722 ++-- resources/views/scribe/index.blade.php | 1654 ++++---- 78 files changed, 3473 insertions(+), 3221 deletions(-) rename public/build/assets/{APIAccessToken-WeNERtHw.js => APIAccessToken-BxKNWUdy.js} (84%) rename public/build/assets/{APIAccessTokens-BN8Itwfz.js => APIAccessTokens-C66OPdJ3.js} (79%) rename public/build/assets/{AdminHome-BDzN-pu4.js => AdminHome-DAyF3eY4.js} (87%) rename public/build/assets/{AdminTeamCreateComponent-C5RZWvlc.js => AdminTeamCreateComponent--ZqK8uaD.js} (87%) delete mode 100644 public/build/assets/AdminTeamVoucherTemplateEditComponent-D8-25Xe9.js create mode 100644 public/build/assets/AdminTeamVoucherTemplateEditComponent-kp4t6m7l.js rename public/build/assets/{AdminTopNavigation-CKquTKkz.js => AdminTopNavigation-Bl9ElpaD.js} (97%) rename public/build/assets/{AdminUserDetailsComponent-QT1KkMwg.js => AdminUserDetailsComponent-BIuw6cp6.js} (83%) rename public/build/assets/{AjaxLoadingIndicator-R8NM17UH.js => AjaxLoadingIndicator-DnIg5N8b.js} (90%) rename public/build/assets/{ApplicationLogo-xXEUN_wz.js => ApplicationLogo-B917rUN3.js} (99%) delete mode 100644 public/build/assets/AuditItems-C91XYBsh.js create mode 100644 public/build/assets/AuditItems-CVvx5G_R.js rename public/build/assets/{AuditItemsComponent-a90oNwdn.js => AuditItemsComponent-C0ljhUTP.js} (86%) rename public/build/assets/{AuthenticatedLayout-BSBk4Waj.js => AuthenticatedLayout-DuLcXyKk.js} (97%) rename public/build/assets/{Checkbox-wBCZrcZW.js => Checkbox-YEQY-CTw.js} (87%) rename public/build/assets/{ConfirmPassword-BA4mXGUh.js => ConfirmPassword-CPdCSdFC.js} (77%) rename public/build/assets/{DangerButton-cN2oNBEm.js => DangerButton-Bm5iDOLt.js} (87%) rename public/build/assets/{Dashboard-voGaOXrv.js => Dashboard-DNnYM2Kc.js} (89%) rename public/build/assets/{DeleteUserForm-D6z3ubnh.js => DeleteUserForm-CdHmJiuD.js} (64%) rename public/build/assets/{Edit-B3eZwoPy.js => Edit-BofEmzVj.js} (57%) rename public/build/assets/{ErrorMessagePage-B7ThOZn2.js => ErrorMessagePage-DtsaBtAA.js} (79%) rename public/build/assets/{ForgotPassword-C6UcyEey.js => ForgotPassword-CtrOA6NT.js} (75%) rename public/build/assets/{GuestLayout-BgHVKdPO.js => GuestLayout-BPBJX1aK.js} (65%) rename public/build/assets/{InputError-CnwioU3j.js => InputError-CTOWZzBt.js} (53%) rename public/build/assets/{InputLabel-D6wY3cNc.js => InputLabel-P7ZTY_pn.js} (80%) rename public/build/assets/{Login-BzDW5pEZ.js => Login-CSSIF9_W.js} (84%) rename public/build/assets/{MyTeam-B-XbZQ3p.js => MyTeam-Bp8yT71s.js} (92%) rename public/build/assets/{MyTeamVoucherSets-BkFDnjB4.js => MyTeamVoucherSets-BKBSr5xT.js} (82%) rename public/build/assets/{PaginatorComponent-Dk-0OsjZ.js => PaginatorComponent-DpqX95xS.js} (90%) rename public/build/assets/{PrimaryButton-6L6tESKC.js => PrimaryButton-BtqGl7rR.js} (88%) rename public/build/assets/{Register-Ch5scNZb.js => Register-CvIlSVQL.js} (87%) rename public/build/assets/{ResetPassword-DmhMO4o_.js => ResetPassword-BBx7Oi9y.js} (85%) rename public/build/assets/{SecondaryButton-Dml8iKd5.js => SecondaryButton-DL_I_H3U.js} (75%) rename public/build/assets/{Team-nT4YbDKo.js => Team-BP2ZvGAI.js} (96%) create mode 100644 public/build/assets/TeamNew-2IygTToe.js delete mode 100644 public/build/assets/TeamNew-3N8ET57c.js rename public/build/assets/{Teams-Bp92R9wt.js => Teams-BklxzQRZ.js} (80%) rename public/build/assets/{TextInput-BGBBA2nL.js => TextInput-C41DJZHw.js} (78%) rename public/build/assets/{UpdatePasswordForm-DIoNO8Y2.js => UpdatePasswordForm-C370omcu.js} (87%) rename public/build/assets/{UpdateProfileInformationForm-CuiKvqK9.js => UpdateProfileInformationForm-CxNRXhbu.js} (90%) rename public/build/assets/{User-CbxmEhwT.js => User-C_zeNGnt.js} (92%) rename public/build/assets/{Users-DqdRsvhQ.js => Users-BeOew9TI.js} (76%) rename public/build/assets/{VerifyEmail-CVpG63al.js => VerifyEmail-XmSRG_in.js} (79%) rename public/build/assets/{Voucher-BviKMyQX.js => Voucher-DH40YzDI.js} (92%) rename public/build/assets/{Voucher-3e_NpFce.js => Voucher-brxKvDUT.js} (87%) rename public/build/assets/{VoucherRedeem-CVnRNsPo.js => VoucherRedeem-u7uJu8Rx.js} (93%) rename public/build/assets/{VoucherRedemption-lvGKYbvZ.js => VoucherRedemption-D8qaxnfs.js} (85%) rename public/build/assets/{VoucherRedemptions-DElMPIaF.js => VoucherRedemptions-I5DskLP3.js} (78%) rename public/build/assets/{VoucherSet-C_M-yuj1.js => VoucherSet-DZ--1ZAq.js} (94%) rename public/build/assets/{VoucherSet-BGMqhdxQ.js => VoucherSet-DeRvCbT6.js} (91%) rename public/build/assets/{VoucherSetMerchantTeamApproval-tEh6E6dN.js => VoucherSetMerchantTeamApproval-CmPfS_Dx.js} (91%) rename public/build/assets/{VoucherSetNew-BoGlXiEp.js => VoucherSetNew-FiyNeAgB.js} (98%) rename public/build/assets/{VoucherSets-Ym74sKgi.js => VoucherSets-w_SenqBe.js} (51%) rename public/build/assets/{VoucherSetsComponent-7qrYpVZu.js => VoucherSetsComponent-PmCvbfnV.js} (91%) delete mode 100644 public/build/assets/VoucherTemplateEdit-CAqmVyFX.js create mode 100644 public/build/assets/VoucherTemplateEdit-tUbvCUOh.js create mode 100644 public/build/assets/VoucherTemplateNew-CO4wq0pO.js delete mode 100644 public/build/assets/VoucherTemplateNew-Du4J7iBR.js delete mode 100644 public/build/assets/Vouchers-B0FApYnN.js create mode 100644 public/build/assets/Vouchers-CDzwjVXy.js rename public/build/assets/{VouchersComponent-DQsV5xCe.js => VouchersComponent-o-O6pMZi.js} (91%) create mode 100644 public/build/assets/app-DolNWhzr.js delete mode 100644 public/build/assets/app-zpP4mvhd.js delete mode 100644 public/build/assets/dayjs.min-C0_0pMrK.js create mode 100644 public/build/assets/dayjs.min-ilzO22t1.js delete mode 100644 public/build/assets/localizedFormat-DCfJHBMc.js create mode 100644 public/build/assets/localizedFormat-r4JmUt9E.js create mode 100644 public/build/assets/relativeTime-BTl_QCHW.js delete mode 100644 public/build/assets/relativeTime-__Y28WrV.js create mode 100644 public/build/assets/utc-CWodzHWT.js delete mode 100644 public/build/assets/utc-D2jiDVXM.js diff --git a/composer.json b/composer.json index ef0ee850..5671b1a2 100644 --- a/composer.json +++ b/composer.json @@ -9,6 +9,7 @@ "ext-imagick": "*", "inertiajs/inertia-laravel": "^1.0", "intervention/image-laravel": "^1.3", + "knuckleswtf/scribe": "^4.37", "laravel/framework": "^11.9", "laravel/sanctum": "^4.0", "laravel/slack-notification-channel": "^3.3", @@ -25,7 +26,6 @@ }, "require-dev": { "fakerphp/faker": "^1.23", - "knuckleswtf/scribe": "^4.37", "laravel/breeze": "^2.1", "laravel/pint": "^1.13", "laravel/sail": "^1.26", diff --git a/composer.lock b/composer.lock index ab8b2701..e1cb9f65 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "34189572d9b076b01d47b8e8628b187a", + "content-hash": "7a25a7d7078190356cd1385b75127238", "packages": [ { "name": "aws/aws-crt-php", @@ -766,6 +766,190 @@ ], "time": "2023-10-06T06:47:41+00:00" }, + { + "name": "erusev/parsedown", + "version": "1.7.4", + "source": { + "type": "git", + "url": "https://github.com/erusev/parsedown.git", + "reference": "cb17b6477dfff935958ba01325f2e8a2bfa6dab3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/erusev/parsedown/zipball/cb17b6477dfff935958ba01325f2e8a2bfa6dab3", + "reference": "cb17b6477dfff935958ba01325f2e8a2bfa6dab3", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": ">=5.3.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35" + }, + "type": "library", + "autoload": { + "psr-0": { + "Parsedown": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Emanuil Rusev", + "email": "hello@erusev.com", + "homepage": "http://erusev.com" + } + ], + "description": "Parser for Markdown.", + "homepage": "http://parsedown.org", + "keywords": [ + "markdown", + "parser" + ], + "support": { + "issues": "https://github.com/erusev/parsedown/issues", + "source": "https://github.com/erusev/parsedown/tree/1.7.x" + }, + "time": "2019-12-30T22:54:17+00:00" + }, + { + "name": "fakerphp/faker", + "version": "v1.24.1", + "source": { + "type": "git", + "url": "https://github.com/FakerPHP/Faker.git", + "reference": "e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/FakerPHP/Faker/zipball/e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5", + "reference": "e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0", + "psr/container": "^1.0 || ^2.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "conflict": { + "fzaninotto/faker": "*" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "doctrine/persistence": "^1.3 || ^2.0", + "ext-intl": "*", + "phpunit/phpunit": "^9.5.26", + "symfony/phpunit-bridge": "^5.4.16" + }, + "suggest": { + "doctrine/orm": "Required to use Faker\\ORM\\Doctrine", + "ext-curl": "Required by Faker\\Provider\\Image to download images.", + "ext-dom": "Required by Faker\\Provider\\HtmlLorem for generating random HTML.", + "ext-iconv": "Required by Faker\\Provider\\ru_RU\\Text::realText() for generating real Russian text.", + "ext-mbstring": "Required for multibyte Unicode string functionality." + }, + "type": "library", + "autoload": { + "psr-4": { + "Faker\\": "src/Faker/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "François Zaninotto" + } + ], + "description": "Faker is a PHP library that generates fake data for you.", + "keywords": [ + "data", + "faker", + "fixtures" + ], + "support": { + "issues": "https://github.com/FakerPHP/Faker/issues", + "source": "https://github.com/FakerPHP/Faker/tree/v1.24.1" + }, + "time": "2024-11-21T13:46:39+00:00" + }, + { + "name": "filp/whoops", + "version": "2.16.0", + "source": { + "type": "git", + "url": "https://github.com/filp/whoops.git", + "reference": "befcdc0e5dce67252aa6322d82424be928214fa2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filp/whoops/zipball/befcdc0e5dce67252aa6322d82424be928214fa2", + "reference": "befcdc0e5dce67252aa6322d82424be928214fa2", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0", + "psr/log": "^1.0.1 || ^2.0 || ^3.0" + }, + "require-dev": { + "mockery/mockery": "^1.0", + "phpunit/phpunit": "^7.5.20 || ^8.5.8 || ^9.3.3", + "symfony/var-dumper": "^4.0 || ^5.0" + }, + "suggest": { + "symfony/var-dumper": "Pretty print complex values better with var-dumper available", + "whoops/soap": "Formats errors as SOAP responses" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Whoops\\": "src/Whoops/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Filipe Dobreira", + "homepage": "https://github.com/filp", + "role": "Developer" + } + ], + "description": "php error handling for cool kids", + "homepage": "https://filp.github.io/whoops/", + "keywords": [ + "error", + "exception", + "handling", + "library", + "throwable", + "whoops" + ], + "support": { + "issues": "https://github.com/filp/whoops/issues", + "source": "https://github.com/filp/whoops/tree/2.16.0" + }, + "funding": [ + { + "url": "https://github.com/denis-sokolov", + "type": "github" + } + ], + "time": "2024-09-25T12:00:00+00:00" + }, { "name": "fruitcake/php-cors", "version": "v1.3.0", @@ -1667,80 +1851,175 @@ "time": "2024-11-18T16:19:46+00:00" }, { - "name": "laravel/framework", - "version": "v11.34.2", + "name": "knuckleswtf/scribe", + "version": "4.38.0", "source": { "type": "git", - "url": "https://github.com/laravel/framework.git", - "reference": "865da6d73dd353f07a7bcbd778c55966a620121f" + "url": "https://github.com/knuckleswtf/scribe.git", + "reference": "da667aafb6804b4b599ac6506bb178bfa5434802" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/865da6d73dd353f07a7bcbd778c55966a620121f", - "reference": "865da6d73dd353f07a7bcbd778c55966a620121f", + "url": "https://api.github.com/repos/knuckleswtf/scribe/zipball/da667aafb6804b4b599ac6506bb178bfa5434802", + "reference": "da667aafb6804b4b599ac6506bb178bfa5434802", "shasum": "" }, "require": { - "brick/math": "^0.9.3|^0.10.2|^0.11|^0.12", - "composer-runtime-api": "^2.2", - "doctrine/inflector": "^2.0.5", - "dragonmantank/cron-expression": "^3.4", - "egulias/email-validator": "^3.2.1|^4.0", - "ext-ctype": "*", - "ext-filter": "*", - "ext-hash": "*", - "ext-mbstring": "*", - "ext-openssl": "*", - "ext-session": "*", - "ext-tokenizer": "*", - "fruitcake/php-cors": "^1.3", - "guzzlehttp/guzzle": "^7.8.2", - "guzzlehttp/uri-template": "^1.0", - "laravel/prompts": "^0.1.18|^0.2.0|^0.3.0", - "laravel/serializable-closure": "^1.3|^2.0", - "league/commonmark": "^2.2.1", - "league/flysystem": "^3.25.1", - "league/flysystem-local": "^3.25.1", - "monolog/monolog": "^3.0", - "nesbot/carbon": "^2.72.2|^3.4", - "nunomaduro/termwind": "^2.0", - "php": "^8.2", - "psr/container": "^1.1.1|^2.0.1", - "psr/log": "^1.0|^2.0|^3.0", - "psr/simple-cache": "^1.0|^2.0|^3.0", - "ramsey/uuid": "^4.7", - "symfony/console": "^7.0.3", - "symfony/error-handler": "^7.0.3", - "symfony/finder": "^7.0.3", - "symfony/http-foundation": "^7.0.3", - "symfony/http-kernel": "^7.0.3", - "symfony/mailer": "^7.0.3", - "symfony/mime": "^7.0.3", - "symfony/polyfill-php83": "^1.31", - "symfony/process": "^7.0.3", - "symfony/routing": "^7.0.3", - "symfony/uid": "^7.0.3", - "symfony/var-dumper": "^7.0.3", - "tijsverkoyen/css-to-inline-styles": "^2.2.5", - "vlucas/phpdotenv": "^5.6.1", - "voku/portable-ascii": "^2.0.2" - }, - "conflict": { - "mockery/mockery": "1.6.8", - "tightenco/collect": "<5.5.33" - }, - "provide": { - "psr/container-implementation": "1.1|2.0", - "psr/log-implementation": "1.0|2.0|3.0", - "psr/simple-cache-implementation": "1.0|2.0|3.0" - }, - "replace": { - "illuminate/auth": "self.version", - "illuminate/broadcasting": "self.version", - "illuminate/bus": "self.version", - "illuminate/cache": "self.version", - "illuminate/collections": "self.version", - "illuminate/concurrency": "self.version", + "erusev/parsedown": "1.7.4", + "ext-fileinfo": "*", + "ext-json": "*", + "ext-pdo": "*", + "fakerphp/faker": "^1.9.1", + "illuminate/console": "^8.0|^9.0|^10.0|^11.0", + "illuminate/routing": "^8.0|^9.0|^10.0|^11.0", + "illuminate/support": "^8.0|^9.0|^10.0|^11.0", + "league/flysystem": "^1.1.4|^2.1.1|^3.0", + "mpociot/reflection-docblock": "^1.0.1", + "nikic/php-parser": "^5.0", + "nunomaduro/collision": "^5.10|^6.0|^7.0|^8.0", + "php": ">=8.0", + "ramsey/uuid": "^4.2.2", + "shalvah/clara": "^3.1.0", + "shalvah/upgrader": ">=0.6.0", + "spatie/data-transfer-object": "^2.6|^3.0", + "symfony/var-exporter": "^5.4|^6.0|^7.0", + "symfony/yaml": "^5.4|^6.0|^7.0" + }, + "replace": { + "mpociot/laravel-apidoc-generator": "*" + }, + "require-dev": { + "brianium/paratest": "^6.0", + "dms/phpunit-arraysubset-asserts": "^0.4", + "laravel/legacy-factories": "^1.3.0", + "laravel/lumen-framework": "^8.0|^9.0|^10.0", + "league/fractal": "^0.20", + "nikic/fast-route": "^1.3", + "orchestra/testbench": "^6.0|^7.0|^8.0", + "pestphp/pest": "^1.21", + "phpstan/phpstan": "^1.0", + "phpunit/phpunit": "^9.0|^10.0", + "symfony/css-selector": "^5.4|^6.0", + "symfony/dom-crawler": "^5.4|^6.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Knuckles\\Scribe\\ScribeServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Knuckles\\Camel\\": "camel/", + "Knuckles\\Scribe\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Shalvah" + } + ], + "description": "Generate API documentation for humans from your Laravel codebase.✍", + "homepage": "http://github.com/knuckleswtf/scribe", + "keywords": [ + "api", + "dingo", + "documentation", + "laravel" + ], + "support": { + "issues": "https://github.com/knuckleswtf/scribe/issues", + "source": "https://github.com/knuckleswtf/scribe/tree/4.38.0" + }, + "funding": [ + { + "url": "https://patreon.com/shalvah", + "type": "patreon" + } + ], + "time": "2024-10-18T20:16:40+00:00" + }, + { + "name": "laravel/framework", + "version": "v11.34.2", + "source": { + "type": "git", + "url": "https://github.com/laravel/framework.git", + "reference": "865da6d73dd353f07a7bcbd778c55966a620121f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/framework/zipball/865da6d73dd353f07a7bcbd778c55966a620121f", + "reference": "865da6d73dd353f07a7bcbd778c55966a620121f", + "shasum": "" + }, + "require": { + "brick/math": "^0.9.3|^0.10.2|^0.11|^0.12", + "composer-runtime-api": "^2.2", + "doctrine/inflector": "^2.0.5", + "dragonmantank/cron-expression": "^3.4", + "egulias/email-validator": "^3.2.1|^4.0", + "ext-ctype": "*", + "ext-filter": "*", + "ext-hash": "*", + "ext-mbstring": "*", + "ext-openssl": "*", + "ext-session": "*", + "ext-tokenizer": "*", + "fruitcake/php-cors": "^1.3", + "guzzlehttp/guzzle": "^7.8.2", + "guzzlehttp/uri-template": "^1.0", + "laravel/prompts": "^0.1.18|^0.2.0|^0.3.0", + "laravel/serializable-closure": "^1.3|^2.0", + "league/commonmark": "^2.2.1", + "league/flysystem": "^3.25.1", + "league/flysystem-local": "^3.25.1", + "monolog/monolog": "^3.0", + "nesbot/carbon": "^2.72.2|^3.4", + "nunomaduro/termwind": "^2.0", + "php": "^8.2", + "psr/container": "^1.1.1|^2.0.1", + "psr/log": "^1.0|^2.0|^3.0", + "psr/simple-cache": "^1.0|^2.0|^3.0", + "ramsey/uuid": "^4.7", + "symfony/console": "^7.0.3", + "symfony/error-handler": "^7.0.3", + "symfony/finder": "^7.0.3", + "symfony/http-foundation": "^7.0.3", + "symfony/http-kernel": "^7.0.3", + "symfony/mailer": "^7.0.3", + "symfony/mime": "^7.0.3", + "symfony/polyfill-php83": "^1.31", + "symfony/process": "^7.0.3", + "symfony/routing": "^7.0.3", + "symfony/uid": "^7.0.3", + "symfony/var-dumper": "^7.0.3", + "tijsverkoyen/css-to-inline-styles": "^2.2.5", + "vlucas/phpdotenv": "^5.6.1", + "voku/portable-ascii": "^2.0.2" + }, + "conflict": { + "mockery/mockery": "1.6.8", + "tightenco/collect": "<5.5.33" + }, + "provide": { + "psr/container-implementation": "1.1|2.0", + "psr/log-implementation": "1.0|2.0|3.0", + "psr/simple-cache-implementation": "1.0|2.0|3.0" + }, + "replace": { + "illuminate/auth": "self.version", + "illuminate/broadcasting": "self.version", + "illuminate/bus": "self.version", + "illuminate/cache": "self.version", + "illuminate/collections": "self.version", + "illuminate/concurrency": "self.version", "illuminate/conditionable": "self.version", "illuminate/config": "self.version", "illuminate/console": "self.version", @@ -2868,6 +3147,59 @@ ], "time": "2024-11-12T13:57:08+00:00" }, + { + "name": "mpociot/reflection-docblock", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/mpociot/reflection-docblock.git", + "reference": "c8b2e2b1f5cebbb06e2b5ccbf2958f2198867587" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mpociot/reflection-docblock/zipball/c8b2e2b1f5cebbb06e2b5ccbf2958f2198867587", + "reference": "c8b2e2b1f5cebbb06e2b5ccbf2958f2198867587", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "~4.0" + }, + "suggest": { + "dflydev/markdown": "~1.0", + "erusev/parsedown": "~1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-0": { + "Mpociot": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "mike.vanriel@naenius.com" + } + ], + "support": { + "issues": "https://github.com/mpociot/reflection-docblock/issues", + "source": "https://github.com/mpociot/reflection-docblock/tree/master" + }, + "time": "2016-06-20T20:53:12+00:00" + }, { "name": "mtdowling/jmespath.php", "version": "2.8.0", @@ -3247,51 +3579,148 @@ "time": "2024-10-08T18:51:32+00:00" }, { - "name": "nunomaduro/termwind", - "version": "v2.3.0", + "name": "nunomaduro/collision", + "version": "v8.5.0", "source": { "type": "git", - "url": "https://github.com/nunomaduro/termwind.git", - "reference": "52915afe6a1044e8b9cee1bcff836fb63acf9cda" + "url": "https://github.com/nunomaduro/collision.git", + "reference": "f5c101b929c958e849a633283adff296ed5f38f5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nunomaduro/termwind/zipball/52915afe6a1044e8b9cee1bcff836fb63acf9cda", - "reference": "52915afe6a1044e8b9cee1bcff836fb63acf9cda", + "url": "https://api.github.com/repos/nunomaduro/collision/zipball/f5c101b929c958e849a633283adff296ed5f38f5", + "reference": "f5c101b929c958e849a633283adff296ed5f38f5", "shasum": "" }, "require": { - "ext-mbstring": "*", - "php": "^8.2", - "symfony/console": "^7.1.8" + "filp/whoops": "^2.16.0", + "nunomaduro/termwind": "^2.1.0", + "php": "^8.2.0", + "symfony/console": "^7.1.5" + }, + "conflict": { + "laravel/framework": "<11.0.0 || >=12.0.0", + "phpunit/phpunit": "<10.5.1 || >=12.0.0" }, "require-dev": { - "illuminate/console": "^11.33.2", - "laravel/pint": "^1.18.2", - "mockery/mockery": "^1.6.12", - "pestphp/pest": "^2.36.0", - "phpstan/phpstan": "^1.12.11", - "phpstan/phpstan-strict-rules": "^1.6.1", - "symfony/var-dumper": "^7.1.8", - "thecodingmachine/phpstan-strict-rules": "^1.0.0" + "larastan/larastan": "^2.9.8", + "laravel/framework": "^11.28.0", + "laravel/pint": "^1.18.1", + "laravel/sail": "^1.36.0", + "laravel/sanctum": "^4.0.3", + "laravel/tinker": "^2.10.0", + "orchestra/testbench-core": "^9.5.3", + "pestphp/pest": "^2.36.0 || ^3.4.0", + "sebastian/environment": "^6.1.0 || ^7.2.0" }, "type": "library", "extra": { "laravel": { "providers": [ - "Termwind\\Laravel\\TermwindServiceProvider" + "NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider" ] }, "branch-alias": { - "dev-2.x": "2.x-dev" + "dev-8.x": "8.x-dev" } }, "autoload": { "files": [ - "src/Functions.php" + "./src/Adapters/Phpunit/Autoload.php" ], "psr-4": { - "Termwind\\": "src/" + "NunoMaduro\\Collision\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Cli error handling for console/command-line PHP applications.", + "keywords": [ + "artisan", + "cli", + "command-line", + "console", + "error", + "handling", + "laravel", + "laravel-zero", + "php", + "symfony" + ], + "support": { + "issues": "https://github.com/nunomaduro/collision/issues", + "source": "https://github.com/nunomaduro/collision" + }, + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://www.patreon.com/nunomaduro", + "type": "patreon" + } + ], + "time": "2024-10-15T16:06:32+00:00" + }, + { + "name": "nunomaduro/termwind", + "version": "v2.3.0", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/termwind.git", + "reference": "52915afe6a1044e8b9cee1bcff836fb63acf9cda" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/termwind/zipball/52915afe6a1044e8b9cee1bcff836fb63acf9cda", + "reference": "52915afe6a1044e8b9cee1bcff836fb63acf9cda", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": "^8.2", + "symfony/console": "^7.1.8" + }, + "require-dev": { + "illuminate/console": "^11.33.2", + "laravel/pint": "^1.18.2", + "mockery/mockery": "^1.6.12", + "pestphp/pest": "^2.36.0", + "phpstan/phpstan": "^1.12.11", + "phpstan/phpstan-strict-rules": "^1.6.1", + "symfony/var-dumper": "^7.1.8", + "thecodingmachine/phpstan-strict-rules": "^1.0.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Termwind\\Laravel\\TermwindServiceProvider" + ] + }, + "branch-alias": { + "dev-2.x": "2.x-dev" + } + }, + "autoload": { + "files": [ + "src/Functions.php" + ], + "psr-4": { + "Termwind\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -4380,6 +4809,111 @@ ], "time": "2024-11-24T11:02:20+00:00" }, + { + "name": "shalvah/clara", + "version": "3.2.0", + "source": { + "type": "git", + "url": "https://github.com/shalvah/clara.git", + "reference": "cdbb5737cbdd101756d97dd2279a979a1af7710b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/shalvah/clara/zipball/cdbb5737cbdd101756d97dd2279a979a1af7710b", + "reference": "cdbb5737cbdd101756d97dd2279a979a1af7710b", + "shasum": "" + }, + "require": { + "php": ">=7.4", + "symfony/console": "^4.0|^5.0|^6.0|^7.0" + }, + "require-dev": { + "eloquent/phony-phpunit": "^7.0", + "phpunit/phpunit": "^9.1" + }, + "type": "library", + "autoload": { + "files": [ + "helpers.php" + ], + "psr-4": { + "Shalvah\\Clara\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "🔊 Simple, pretty, testable console output for CLI apps.", + "keywords": [ + "cli", + "log", + "logging" + ], + "support": { + "issues": "https://github.com/shalvah/clara/issues", + "source": "https://github.com/shalvah/clara/tree/3.2.0" + }, + "time": "2024-02-27T20:30:59+00:00" + }, + { + "name": "shalvah/upgrader", + "version": "0.6.0", + "source": { + "type": "git", + "url": "https://github.com/shalvah/upgrader.git", + "reference": "d95ed17fe9f5e1ee7d47ad835595f1af080a867f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/shalvah/upgrader/zipball/d95ed17fe9f5e1ee7d47ad835595f1af080a867f", + "reference": "d95ed17fe9f5e1ee7d47ad835595f1af080a867f", + "shasum": "" + }, + "require": { + "illuminate/support": ">=8.0", + "nikic/php-parser": "^5.0", + "php": ">=8.0" + }, + "require-dev": { + "dms/phpunit-arraysubset-asserts": "^0.2.0", + "pestphp/pest": "^1.21", + "phpstan/phpstan": "^1.0", + "spatie/ray": "^1.33" + }, + "type": "library", + "autoload": { + "psr-4": { + "Shalvah\\Upgrader\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Shalvah", + "email": "hello@shalvah.me" + } + ], + "description": "Create automatic upgrades for your package.", + "homepage": "http://github.com/shalvah/upgrader", + "keywords": [ + "upgrade" + ], + "support": { + "issues": "https://github.com/shalvah/upgrader/issues", + "source": "https://github.com/shalvah/upgrader/tree/0.6.0" + }, + "funding": [ + { + "url": "https://patreon.com/shalvah", + "type": "patreon" + } + ], + "time": "2024-02-20T11:51:46+00:00" + }, { "name": "simplesoftwareio/simple-qrcode", "version": "4.2.0", @@ -4450,27 +4984,27 @@ }, { "name": "spatie/backtrace", - "version": "1.6.3", + "version": "1.7.1", "source": { "type": "git", "url": "https://github.com/spatie/backtrace.git", - "reference": "7c18db2bc667ac84e5d7c18e33f16c38ff2d8838" + "reference": "0f2477c520e3729de58e061b8192f161c99f770b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/backtrace/zipball/7c18db2bc667ac84e5d7c18e33f16c38ff2d8838", - "reference": "7c18db2bc667ac84e5d7c18e33f16c38ff2d8838", + "url": "https://api.github.com/repos/spatie/backtrace/zipball/0f2477c520e3729de58e061b8192f161c99f770b", + "reference": "0f2477c520e3729de58e061b8192f161c99f770b", "shasum": "" }, "require": { - "php": "^7.3|^8.0" + "php": "^7.3 || ^8.0" }, "require-dev": { "ext-json": "*", - "laravel/serializable-closure": "^1.3", - "phpunit/phpunit": "^9.3", - "spatie/phpunit-snapshot-assertions": "^4.2", - "symfony/var-dumper": "^5.1" + "laravel/serializable-closure": "^1.3 || ^2.0", + "phpunit/phpunit": "^9.3 || ^11.4.3", + "spatie/phpunit-snapshot-assertions": "^4.2 || ^5.1.6", + "symfony/var-dumper": "^5.1 || ^6.0 || ^7.0" }, "type": "library", "autoload": { @@ -4497,7 +5031,7 @@ "spatie" ], "support": { - "source": "https://github.com/spatie/backtrace/tree/1.6.3" + "source": "https://github.com/spatie/backtrace/tree/1.7.1" }, "funding": [ { @@ -4509,51 +5043,35 @@ "type": "other" } ], - "time": "2024-11-18T14:58:58+00:00" + "time": "2024-12-02T13:28:15+00:00" }, { - "name": "spatie/error-solutions", - "version": "1.1.1", + "name": "spatie/data-transfer-object", + "version": "3.9.1", "source": { "type": "git", - "url": "https://github.com/spatie/error-solutions.git", - "reference": "ae7393122eda72eed7cc4f176d1e96ea444f2d67" + "url": "https://github.com/spatie/data-transfer-object.git", + "reference": "1df0906c4e9e3aebd6c0506fd82c8b7d5548c1c8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/error-solutions/zipball/ae7393122eda72eed7cc4f176d1e96ea444f2d67", - "reference": "ae7393122eda72eed7cc4f176d1e96ea444f2d67", + "url": "https://api.github.com/repos/spatie/data-transfer-object/zipball/1df0906c4e9e3aebd6c0506fd82c8b7d5548c1c8", + "reference": "1df0906c4e9e3aebd6c0506fd82c8b7d5548c1c8", "shasum": "" }, "require": { "php": "^8.0" }, "require-dev": { - "illuminate/broadcasting": "^10.0|^11.0", - "illuminate/cache": "^10.0|^11.0", - "illuminate/support": "^10.0|^11.0", - "livewire/livewire": "^2.11|^3.3.5", - "openai-php/client": "^0.10.1", - "orchestra/testbench": "^7.0|8.22.3|^9.0", - "pestphp/pest": "^2.20", - "phpstan/phpstan": "^1.11", - "psr/simple-cache": "^3.0", - "psr/simple-cache-implementation": "^3.0", - "spatie/ray": "^1.28", - "symfony/cache": "^5.4|^6.0|^7.0", - "symfony/process": "^5.4|^6.0|^7.0", - "vlucas/phpdotenv": "^5.5" - }, - "suggest": { - "openai-php/client": "Require get solutions from OpenAI", - "simple-cache-implementation": "To cache solutions from OpenAI" + "illuminate/collections": "^8.36", + "jetbrains/phpstorm-attributes": "^1.0", + "larapack/dd": "^1.1", + "phpunit/phpunit": "^9.5.5" }, "type": "library", "autoload": { "psr-4": { - "Spatie\\Ignition\\": "legacy/ignition", - "Spatie\\ErrorSolutions\\": "src", - "Spatie\\LaravelIgnition\\": "legacy/laravel-ignition" + "Spatie\\DataTransferObject\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -4562,41 +5080,121 @@ ], "authors": [ { - "name": "Ruben Van Assche", - "email": "ruben@spatie.be", + "name": "Brent Roose", + "email": "brent@spatie.be", + "homepage": "https://spatie.be", "role": "Developer" } ], - "description": "This is my package error-solutions", - "homepage": "https://github.com/spatie/error-solutions", + "description": "Data transfer objects with batteries included", + "homepage": "https://github.com/spatie/data-transfer-object", "keywords": [ - "error-solutions", + "data-transfer-object", "spatie" ], "support": { - "issues": "https://github.com/spatie/error-solutions/issues", - "source": "https://github.com/spatie/error-solutions/tree/1.1.1" + "issues": "https://github.com/spatie/data-transfer-object/issues", + "source": "https://github.com/spatie/data-transfer-object/tree/3.9.1" }, "funding": [ { - "url": "https://github.com/Spatie", + "url": "https://spatie.be/open-source/support-us", + "type": "custom" + }, + { + "url": "https://github.com/spatie", "type": "github" } ], - "time": "2024-07-25T11:06:04+00:00" + "abandoned": "spatie/laravel-data", + "time": "2022-09-16T13:34:38+00:00" + }, + { + "name": "spatie/error-solutions", + "version": "1.1.1", + "source": { + "type": "git", + "url": "https://github.com/spatie/error-solutions.git", + "reference": "ae7393122eda72eed7cc4f176d1e96ea444f2d67" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/error-solutions/zipball/ae7393122eda72eed7cc4f176d1e96ea444f2d67", + "reference": "ae7393122eda72eed7cc4f176d1e96ea444f2d67", + "shasum": "" + }, + "require": { + "php": "^8.0" + }, + "require-dev": { + "illuminate/broadcasting": "^10.0|^11.0", + "illuminate/cache": "^10.0|^11.0", + "illuminate/support": "^10.0|^11.0", + "livewire/livewire": "^2.11|^3.3.5", + "openai-php/client": "^0.10.1", + "orchestra/testbench": "^7.0|8.22.3|^9.0", + "pestphp/pest": "^2.20", + "phpstan/phpstan": "^1.11", + "psr/simple-cache": "^3.0", + "psr/simple-cache-implementation": "^3.0", + "spatie/ray": "^1.28", + "symfony/cache": "^5.4|^6.0|^7.0", + "symfony/process": "^5.4|^6.0|^7.0", + "vlucas/phpdotenv": "^5.5" + }, + "suggest": { + "openai-php/client": "Require get solutions from OpenAI", + "simple-cache-implementation": "To cache solutions from OpenAI" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\Ignition\\": "legacy/ignition", + "Spatie\\ErrorSolutions\\": "src", + "Spatie\\LaravelIgnition\\": "legacy/laravel-ignition" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ruben Van Assche", + "email": "ruben@spatie.be", + "role": "Developer" + } + ], + "description": "This is my package error-solutions", + "homepage": "https://github.com/spatie/error-solutions", + "keywords": [ + "error-solutions", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/error-solutions/issues", + "source": "https://github.com/spatie/error-solutions/tree/1.1.1" + }, + "funding": [ + { + "url": "https://github.com/Spatie", + "type": "github" + } + ], + "time": "2024-07-25T11:06:04+00:00" }, { "name": "spatie/flare-client-php", - "version": "1.8.0", + "version": "1.10.0", "source": { "type": "git", "url": "https://github.com/spatie/flare-client-php.git", - "reference": "180f8ca4c0d0d6fc51477bd8c53ce37ab5a96122" + "reference": "140a42b2c5d59ac4ecf8f5b493386a4f2eb28272" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/flare-client-php/zipball/180f8ca4c0d0d6fc51477bd8c53ce37ab5a96122", - "reference": "180f8ca4c0d0d6fc51477bd8c53ce37ab5a96122", + "url": "https://api.github.com/repos/spatie/flare-client-php/zipball/140a42b2c5d59ac4ecf8f5b493386a4f2eb28272", + "reference": "140a42b2c5d59ac4ecf8f5b493386a4f2eb28272", "shasum": "" }, "require": { @@ -4644,7 +5242,7 @@ ], "support": { "issues": "https://github.com/spatie/flare-client-php/issues", - "source": "https://github.com/spatie/flare-client-php/tree/1.8.0" + "source": "https://github.com/spatie/flare-client-php/tree/1.10.0" }, "funding": [ { @@ -4652,7 +5250,7 @@ "type": "github" } ], - "time": "2024-08-01T08:27:26+00:00" + "time": "2024-12-02T14:30:06+00:00" }, { "name": "spatie/laravel-error-share", @@ -4738,16 +5336,16 @@ }, { "name": "spatie/laravel-flare", - "version": "1.0.0", + "version": "1.1.0", "source": { "type": "git", "url": "https://github.com/spatie/laravel-flare.git", - "reference": "e05a1621e5dbe50f7b51e87a10d6764425d66278" + "reference": "2e0650fb9d4e50407ed0265c3b3a280a9d84c2ee" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/laravel-flare/zipball/e05a1621e5dbe50f7b51e87a10d6764425d66278", - "reference": "e05a1621e5dbe50f7b51e87a10d6764425d66278", + "url": "https://api.github.com/repos/spatie/laravel-flare/zipball/2e0650fb9d4e50407ed0265c3b3a280a9d84c2ee", + "reference": "2e0650fb9d4e50407ed0265c3b3a280a9d84c2ee", "shasum": "" }, "require": { @@ -4757,7 +5355,7 @@ "illuminate/support": "^11.0", "php": "^8.1", "spatie/error-solutions": "^1.0", - "spatie/flare-client-php": "^1.7", + "spatie/flare-client-php": "^1.10", "spatie/laravel-error-share": "^1.0", "symfony/console": "^7.0", "symfony/var-dumper": "^7.0" @@ -4780,12 +5378,12 @@ "type": "library", "extra": { "laravel": { - "providers": [ - "Spatie\\LaravelFlare\\FlareServiceProvider" - ], "aliases": { "Flare": "Spatie\\LaravelFlare\\Facades\\Flare" - } + }, + "providers": [ + "Spatie\\LaravelFlare\\FlareServiceProvider" + ] } }, "autoload": { @@ -4823,7 +5421,7 @@ "type": "github" } ], - "time": "2024-06-12T15:00:28+00:00" + "time": "2024-12-02T14:45:45+00:00" }, { "name": "spatie/laravel-package-tools", @@ -7505,6 +8103,154 @@ ], "time": "2024-11-08T15:48:14+00:00" }, + { + "name": "symfony/var-exporter", + "version": "v7.2.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/var-exporter.git", + "reference": "1a6a89f95a46af0f142874c9d650a6358d13070d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/var-exporter/zipball/1a6a89f95a46af0f142874c9d650a6358d13070d", + "reference": "1a6a89f95a46af0f142874c9d650a6358d13070d", + "shasum": "" + }, + "require": { + "php": ">=8.2" + }, + "require-dev": { + "symfony/property-access": "^6.4|^7.0", + "symfony/serializer": "^6.4|^7.0", + "symfony/var-dumper": "^6.4|^7.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\VarExporter\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Allows exporting any serializable PHP data structure to plain PHP code", + "homepage": "https://symfony.com", + "keywords": [ + "clone", + "construct", + "export", + "hydrate", + "instantiate", + "lazy-loading", + "proxy", + "serialize" + ], + "support": { + "source": "https://github.com/symfony/var-exporter/tree/v7.2.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-10-18T07:58:17+00:00" + }, + { + "name": "symfony/yaml", + "version": "v7.2.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "099581e99f557e9f16b43c5916c26380b54abb22" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/099581e99f557e9f16b43c5916c26380b54abb22", + "reference": "099581e99f557e9f16b43c5916c26380b54abb22", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3.0", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/console": "<6.4" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0" + }, + "bin": [ + "Resources/bin/yaml-lint" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Loads and dumps YAML files", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/yaml/tree/v7.2.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-10-23T06:56:12+00:00" + }, { "name": "tightenco/ziggy", "version": "v2.4.1", @@ -7847,95 +8593,94 @@ ], "packages-dev": [ { - "name": "erusev/parsedown", - "version": "1.7.4", + "name": "hamcrest/hamcrest-php", + "version": "v2.0.1", "source": { "type": "git", - "url": "https://github.com/erusev/parsedown.git", - "reference": "cb17b6477dfff935958ba01325f2e8a2bfa6dab3" + "url": "https://github.com/hamcrest/hamcrest-php.git", + "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/erusev/parsedown/zipball/cb17b6477dfff935958ba01325f2e8a2bfa6dab3", - "reference": "cb17b6477dfff935958ba01325f2e8a2bfa6dab3", + "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", + "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", "shasum": "" }, "require": { - "ext-mbstring": "*", - "php": ">=5.3.0" + "php": "^5.3|^7.0|^8.0" }, - "require-dev": { - "phpunit/phpunit": "^4.8.35" + "replace": { + "cordoval/hamcrest-php": "*", + "davedevelopment/hamcrest-php": "*", + "kodova/hamcrest-php": "*" }, - "type": "library", - "autoload": { - "psr-0": { - "Parsedown": "" + "require-dev": { + "phpunit/php-file-iterator": "^1.4 || ^2.0", + "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1-dev" } }, + "autoload": { + "classmap": [ + "hamcrest" + ] + }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" - ], - "authors": [ - { - "name": "Emanuil Rusev", - "email": "hello@erusev.com", - "homepage": "http://erusev.com" - } + "BSD-3-Clause" ], - "description": "Parser for Markdown.", - "homepage": "http://parsedown.org", + "description": "This is the PHP port of Hamcrest Matchers", "keywords": [ - "markdown", - "parser" + "test" ], "support": { - "issues": "https://github.com/erusev/parsedown/issues", - "source": "https://github.com/erusev/parsedown/tree/1.7.x" + "issues": "https://github.com/hamcrest/hamcrest-php/issues", + "source": "https://github.com/hamcrest/hamcrest-php/tree/v2.0.1" }, - "time": "2019-12-30T22:54:17+00:00" + "time": "2020-07-09T08:09:16+00:00" }, { - "name": "fakerphp/faker", - "version": "v1.24.1", + "name": "laravel/breeze", + "version": "v2.2.6", "source": { "type": "git", - "url": "https://github.com/FakerPHP/Faker.git", - "reference": "e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5" + "url": "https://github.com/laravel/breeze.git", + "reference": "907b12160d1b8b8213e7e2e011987fffb5567edc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/FakerPHP/Faker/zipball/e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5", - "reference": "e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5", + "url": "https://api.github.com/repos/laravel/breeze/zipball/907b12160d1b8b8213e7e2e011987fffb5567edc", + "reference": "907b12160d1b8b8213e7e2e011987fffb5567edc", "shasum": "" }, "require": { - "php": "^7.4 || ^8.0", - "psr/container": "^1.0 || ^2.0", - "symfony/deprecation-contracts": "^2.2 || ^3.0" - }, - "conflict": { - "fzaninotto/faker": "*" + "illuminate/console": "^11.0", + "illuminate/filesystem": "^11.0", + "illuminate/support": "^11.0", + "illuminate/validation": "^11.0", + "php": "^8.2.0", + "symfony/console": "^7.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.4.1", - "doctrine/persistence": "^1.3 || ^2.0", - "ext-intl": "*", - "phpunit/phpunit": "^9.5.26", - "symfony/phpunit-bridge": "^5.4.16" - }, - "suggest": { - "doctrine/orm": "Required to use Faker\\ORM\\Doctrine", - "ext-curl": "Required by Faker\\Provider\\Image to download images.", - "ext-dom": "Required by Faker\\Provider\\HtmlLorem for generating random HTML.", - "ext-iconv": "Required by Faker\\Provider\\ru_RU\\Text::realText() for generating real Russian text.", - "ext-mbstring": "Required for multibyte Unicode string functionality." + "laravel/framework": "^11.0", + "orchestra/testbench-core": "^9.0", + "phpstan/phpstan": "^2.0" }, "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Breeze\\BreezeServiceProvider" + ] + } + }, "autoload": { "psr-4": { - "Faker\\": "src/Faker/" + "Laravel\\Breeze\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -7944,57 +8689,60 @@ ], "authors": [ { - "name": "François Zaninotto" + "name": "Taylor Otwell", + "email": "taylor@laravel.com" } ], - "description": "Faker is a PHP library that generates fake data for you.", + "description": "Minimal Laravel authentication scaffolding with Blade and Tailwind.", "keywords": [ - "data", - "faker", - "fixtures" + "auth", + "laravel" ], "support": { - "issues": "https://github.com/FakerPHP/Faker/issues", - "source": "https://github.com/FakerPHP/Faker/tree/v1.24.1" + "issues": "https://github.com/laravel/breeze/issues", + "source": "https://github.com/laravel/breeze" }, - "time": "2024-11-21T13:46:39+00:00" + "time": "2024-11-20T15:01:15+00:00" }, { - "name": "filp/whoops", - "version": "2.16.0", + "name": "laravel/pint", + "version": "v1.18.3", "source": { "type": "git", - "url": "https://github.com/filp/whoops.git", - "reference": "befcdc0e5dce67252aa6322d82424be928214fa2" + "url": "https://github.com/laravel/pint.git", + "reference": "cef51821608239040ab841ad6e1c6ae502ae3026" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/filp/whoops/zipball/befcdc0e5dce67252aa6322d82424be928214fa2", - "reference": "befcdc0e5dce67252aa6322d82424be928214fa2", + "url": "https://api.github.com/repos/laravel/pint/zipball/cef51821608239040ab841ad6e1c6ae502ae3026", + "reference": "cef51821608239040ab841ad6e1c6ae502ae3026", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0", - "psr/log": "^1.0.1 || ^2.0 || ^3.0" + "ext-json": "*", + "ext-mbstring": "*", + "ext-tokenizer": "*", + "ext-xml": "*", + "php": "^8.1.0" }, "require-dev": { - "mockery/mockery": "^1.0", - "phpunit/phpunit": "^7.5.20 || ^8.5.8 || ^9.3.3", - "symfony/var-dumper": "^4.0 || ^5.0" - }, - "suggest": { - "symfony/var-dumper": "Pretty print complex values better with var-dumper available", - "whoops/soap": "Formats errors as SOAP responses" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.7-dev" - } + "friendsofphp/php-cs-fixer": "^3.65.0", + "illuminate/view": "^10.48.24", + "larastan/larastan": "^2.9.11", + "laravel-zero/framework": "^10.4.0", + "mockery/mockery": "^1.6.12", + "nunomaduro/termwind": "^1.17.0", + "pestphp/pest": "^2.36.0" }, + "bin": [ + "builds/pint" + ], + "type": "project", "autoload": { "psr-4": { - "Whoops\\": "src/Whoops/" + "App\\": "app/", + "Database\\Seeders\\": "database/seeders/", + "Database\\Factories\\": "database/factories/" } }, "notification-url": "https://packagist.org/downloads/", @@ -8003,888 +8751,123 @@ ], "authors": [ { - "name": "Filipe Dobreira", - "homepage": "https://github.com/filp", - "role": "Developer" + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" } ], - "description": "php error handling for cool kids", - "homepage": "https://filp.github.io/whoops/", + "description": "An opinionated code formatter for PHP.", + "homepage": "https://laravel.com", "keywords": [ - "error", - "exception", - "handling", - "library", - "throwable", - "whoops" + "format", + "formatter", + "lint", + "linter", + "php" ], "support": { - "issues": "https://github.com/filp/whoops/issues", - "source": "https://github.com/filp/whoops/tree/2.16.0" + "issues": "https://github.com/laravel/pint/issues", + "source": "https://github.com/laravel/pint" }, - "funding": [ - { - "url": "https://github.com/denis-sokolov", - "type": "github" - } - ], - "time": "2024-09-25T12:00:00+00:00" + "time": "2024-11-26T15:34:00+00:00" }, { - "name": "hamcrest/hamcrest-php", - "version": "v2.0.1", + "name": "laravel/sail", + "version": "v1.39.1", "source": { "type": "git", - "url": "https://github.com/hamcrest/hamcrest-php.git", - "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3" + "url": "https://github.com/laravel/sail.git", + "reference": "1a3c7291bc88de983b66688919a4d298d68ddec7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", - "reference": "8c3d0a3f6af734494ad8f6fbbee0ba92422859f3", + "url": "https://api.github.com/repos/laravel/sail/zipball/1a3c7291bc88de983b66688919a4d298d68ddec7", + "reference": "1a3c7291bc88de983b66688919a4d298d68ddec7", "shasum": "" }, "require": { - "php": "^5.3|^7.0|^8.0" - }, - "replace": { - "cordoval/hamcrest-php": "*", - "davedevelopment/hamcrest-php": "*", - "kodova/hamcrest-php": "*" + "illuminate/console": "^9.52.16|^10.0|^11.0", + "illuminate/contracts": "^9.52.16|^10.0|^11.0", + "illuminate/support": "^9.52.16|^10.0|^11.0", + "php": "^8.0", + "symfony/console": "^6.0|^7.0", + "symfony/yaml": "^6.0|^7.0" }, "require-dev": { - "phpunit/php-file-iterator": "^1.4 || ^2.0", - "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0" + "orchestra/testbench": "^7.0|^8.0|^9.0", + "phpstan/phpstan": "^1.10" }, + "bin": [ + "bin/sail" + ], "type": "library", "extra": { - "branch-alias": { - "dev-master": "2.1-dev" + "laravel": { + "providers": [ + "Laravel\\Sail\\SailServiceProvider" + ] } }, "autoload": { - "classmap": [ - "hamcrest" - ] + "psr-4": { + "Laravel\\Sail\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" + "MIT" ], - "description": "This is the PHP port of Hamcrest Matchers", + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Docker files for running a basic Laravel application.", "keywords": [ - "test" + "docker", + "laravel" ], "support": { - "issues": "https://github.com/hamcrest/hamcrest-php/issues", - "source": "https://github.com/hamcrest/hamcrest-php/tree/v2.0.1" - }, - "time": "2020-07-09T08:09:16+00:00" - }, - { - "name": "knuckleswtf/scribe", - "version": "4.38.0", - "source": { - "type": "git", - "url": "https://github.com/knuckleswtf/scribe.git", - "reference": "da667aafb6804b4b599ac6506bb178bfa5434802" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/knuckleswtf/scribe/zipball/da667aafb6804b4b599ac6506bb178bfa5434802", - "reference": "da667aafb6804b4b599ac6506bb178bfa5434802", - "shasum": "" + "issues": "https://github.com/laravel/sail/issues", + "source": "https://github.com/laravel/sail" }, - "require": { - "erusev/parsedown": "1.7.4", - "ext-fileinfo": "*", - "ext-json": "*", - "ext-pdo": "*", - "fakerphp/faker": "^1.9.1", - "illuminate/console": "^8.0|^9.0|^10.0|^11.0", - "illuminate/routing": "^8.0|^9.0|^10.0|^11.0", - "illuminate/support": "^8.0|^9.0|^10.0|^11.0", - "league/flysystem": "^1.1.4|^2.1.1|^3.0", - "mpociot/reflection-docblock": "^1.0.1", - "nikic/php-parser": "^5.0", - "nunomaduro/collision": "^5.10|^6.0|^7.0|^8.0", - "php": ">=8.0", - "ramsey/uuid": "^4.2.2", - "shalvah/clara": "^3.1.0", - "shalvah/upgrader": ">=0.6.0", - "spatie/data-transfer-object": "^2.6|^3.0", - "symfony/var-exporter": "^5.4|^6.0|^7.0", - "symfony/yaml": "^5.4|^6.0|^7.0" - }, - "replace": { - "mpociot/laravel-apidoc-generator": "*" - }, - "require-dev": { - "brianium/paratest": "^6.0", - "dms/phpunit-arraysubset-asserts": "^0.4", - "laravel/legacy-factories": "^1.3.0", - "laravel/lumen-framework": "^8.0|^9.0|^10.0", - "league/fractal": "^0.20", - "nikic/fast-route": "^1.3", - "orchestra/testbench": "^6.0|^7.0|^8.0", - "pestphp/pest": "^1.21", - "phpstan/phpstan": "^1.0", - "phpunit/phpunit": "^9.0|^10.0", - "symfony/css-selector": "^5.4|^6.0", - "symfony/dom-crawler": "^5.4|^6.0" - }, - "type": "library", - "extra": { - "laravel": { - "providers": [ - "Knuckles\\Scribe\\ScribeServiceProvider" - ] - } - }, - "autoload": { - "psr-4": { - "Knuckles\\Camel\\": "camel/", - "Knuckles\\Scribe\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Shalvah" - } - ], - "description": "Generate API documentation for humans from your Laravel codebase.✍", - "homepage": "http://github.com/knuckleswtf/scribe", - "keywords": [ - "api", - "dingo", - "documentation", - "laravel" - ], - "support": { - "issues": "https://github.com/knuckleswtf/scribe/issues", - "source": "https://github.com/knuckleswtf/scribe/tree/4.38.0" - }, - "funding": [ - { - "url": "https://patreon.com/shalvah", - "type": "patreon" - } - ], - "time": "2024-10-18T20:16:40+00:00" - }, - { - "name": "laravel/breeze", - "version": "v2.2.6", - "source": { - "type": "git", - "url": "https://github.com/laravel/breeze.git", - "reference": "907b12160d1b8b8213e7e2e011987fffb5567edc" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/laravel/breeze/zipball/907b12160d1b8b8213e7e2e011987fffb5567edc", - "reference": "907b12160d1b8b8213e7e2e011987fffb5567edc", - "shasum": "" - }, - "require": { - "illuminate/console": "^11.0", - "illuminate/filesystem": "^11.0", - "illuminate/support": "^11.0", - "illuminate/validation": "^11.0", - "php": "^8.2.0", - "symfony/console": "^7.0" - }, - "require-dev": { - "laravel/framework": "^11.0", - "orchestra/testbench-core": "^9.0", - "phpstan/phpstan": "^2.0" - }, - "type": "library", - "extra": { - "laravel": { - "providers": [ - "Laravel\\Breeze\\BreezeServiceProvider" - ] - } - }, - "autoload": { - "psr-4": { - "Laravel\\Breeze\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Taylor Otwell", - "email": "taylor@laravel.com" - } - ], - "description": "Minimal Laravel authentication scaffolding with Blade and Tailwind.", - "keywords": [ - "auth", - "laravel" - ], - "support": { - "issues": "https://github.com/laravel/breeze/issues", - "source": "https://github.com/laravel/breeze" - }, - "time": "2024-11-20T15:01:15+00:00" - }, - { - "name": "laravel/pint", - "version": "v1.18.3", - "source": { - "type": "git", - "url": "https://github.com/laravel/pint.git", - "reference": "cef51821608239040ab841ad6e1c6ae502ae3026" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/cef51821608239040ab841ad6e1c6ae502ae3026", - "reference": "cef51821608239040ab841ad6e1c6ae502ae3026", - "shasum": "" - }, - "require": { - "ext-json": "*", - "ext-mbstring": "*", - "ext-tokenizer": "*", - "ext-xml": "*", - "php": "^8.1.0" - }, - "require-dev": { - "friendsofphp/php-cs-fixer": "^3.65.0", - "illuminate/view": "^10.48.24", - "larastan/larastan": "^2.9.11", - "laravel-zero/framework": "^10.4.0", - "mockery/mockery": "^1.6.12", - "nunomaduro/termwind": "^1.17.0", - "pestphp/pest": "^2.36.0" - }, - "bin": [ - "builds/pint" - ], - "type": "project", - "autoload": { - "psr-4": { - "App\\": "app/", - "Database\\Seeders\\": "database/seeders/", - "Database\\Factories\\": "database/factories/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nuno Maduro", - "email": "enunomaduro@gmail.com" - } - ], - "description": "An opinionated code formatter for PHP.", - "homepage": "https://laravel.com", - "keywords": [ - "format", - "formatter", - "lint", - "linter", - "php" - ], - "support": { - "issues": "https://github.com/laravel/pint/issues", - "source": "https://github.com/laravel/pint" - }, - "time": "2024-11-26T15:34:00+00:00" - }, - { - "name": "laravel/sail", - "version": "v1.39.1", - "source": { - "type": "git", - "url": "https://github.com/laravel/sail.git", - "reference": "1a3c7291bc88de983b66688919a4d298d68ddec7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/laravel/sail/zipball/1a3c7291bc88de983b66688919a4d298d68ddec7", - "reference": "1a3c7291bc88de983b66688919a4d298d68ddec7", - "shasum": "" - }, - "require": { - "illuminate/console": "^9.52.16|^10.0|^11.0", - "illuminate/contracts": "^9.52.16|^10.0|^11.0", - "illuminate/support": "^9.52.16|^10.0|^11.0", - "php": "^8.0", - "symfony/console": "^6.0|^7.0", - "symfony/yaml": "^6.0|^7.0" - }, - "require-dev": { - "orchestra/testbench": "^7.0|^8.0|^9.0", - "phpstan/phpstan": "^1.10" - }, - "bin": [ - "bin/sail" - ], - "type": "library", - "extra": { - "laravel": { - "providers": [ - "Laravel\\Sail\\SailServiceProvider" - ] - } - }, - "autoload": { - "psr-4": { - "Laravel\\Sail\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Taylor Otwell", - "email": "taylor@laravel.com" - } - ], - "description": "Docker files for running a basic Laravel application.", - "keywords": [ - "docker", - "laravel" - ], - "support": { - "issues": "https://github.com/laravel/sail/issues", - "source": "https://github.com/laravel/sail" - }, - "time": "2024-11-27T15:42:28+00:00" - }, - { - "name": "mockery/mockery", - "version": "1.6.12", - "source": { - "type": "git", - "url": "https://github.com/mockery/mockery.git", - "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/mockery/mockery/zipball/1f4efdd7d3beafe9807b08156dfcb176d18f1699", - "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699", - "shasum": "" - }, - "require": { - "hamcrest/hamcrest-php": "^2.0.1", - "lib-pcre": ">=7.0", - "php": ">=7.3" - }, - "conflict": { - "phpunit/phpunit": "<8.0" - }, - "require-dev": { - "phpunit/phpunit": "^8.5 || ^9.6.17", - "symplify/easy-coding-standard": "^12.1.14" - }, - "type": "library", - "autoload": { - "files": [ - "library/helpers.php", - "library/Mockery.php" - ], - "psr-4": { - "Mockery\\": "library/Mockery" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Pádraic Brady", - "email": "padraic.brady@gmail.com", - "homepage": "https://github.com/padraic", - "role": "Author" - }, - { - "name": "Dave Marshall", - "email": "dave.marshall@atstsolutions.co.uk", - "homepage": "https://davedevelopment.co.uk", - "role": "Developer" - }, - { - "name": "Nathanael Esayeas", - "email": "nathanael.esayeas@protonmail.com", - "homepage": "https://github.com/ghostwriter", - "role": "Lead Developer" - } - ], - "description": "Mockery is a simple yet flexible PHP mock object framework", - "homepage": "https://github.com/mockery/mockery", - "keywords": [ - "BDD", - "TDD", - "library", - "mock", - "mock objects", - "mockery", - "stub", - "test", - "test double", - "testing" - ], - "support": { - "docs": "https://docs.mockery.io/", - "issues": "https://github.com/mockery/mockery/issues", - "rss": "https://github.com/mockery/mockery/releases.atom", - "security": "https://github.com/mockery/mockery/security/advisories", - "source": "https://github.com/mockery/mockery" - }, - "time": "2024-05-16T03:13:13+00:00" - }, - { - "name": "mpociot/reflection-docblock", - "version": "1.0.1", - "source": { - "type": "git", - "url": "https://github.com/mpociot/reflection-docblock.git", - "reference": "c8b2e2b1f5cebbb06e2b5ccbf2958f2198867587" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/mpociot/reflection-docblock/zipball/c8b2e2b1f5cebbb06e2b5ccbf2958f2198867587", - "reference": "c8b2e2b1f5cebbb06e2b5ccbf2958f2198867587", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "require-dev": { - "phpunit/phpunit": "~4.0" - }, - "suggest": { - "dflydev/markdown": "~1.0", - "erusev/parsedown": "~1.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "psr-0": { - "Mpociot": [ - "src/" - ] - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Mike van Riel", - "email": "mike.vanriel@naenius.com" - } - ], - "support": { - "issues": "https://github.com/mpociot/reflection-docblock/issues", - "source": "https://github.com/mpociot/reflection-docblock/tree/master" - }, - "time": "2016-06-20T20:53:12+00:00" - }, - { - "name": "myclabs/deep-copy", - "version": "1.12.1", - "source": { - "type": "git", - "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "123267b2c49fbf30d78a7b2d333f6be754b94845" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/123267b2c49fbf30d78a7b2d333f6be754b94845", - "reference": "123267b2c49fbf30d78a7b2d333f6be754b94845", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0" - }, - "conflict": { - "doctrine/collections": "<1.6.8", - "doctrine/common": "<2.13.3 || >=3 <3.2.2" - }, - "require-dev": { - "doctrine/collections": "^1.6.8", - "doctrine/common": "^2.13.3 || ^3.2.2", - "phpspec/prophecy": "^1.10", - "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" - }, - "type": "library", - "autoload": { - "files": [ - "src/DeepCopy/deep_copy.php" - ], - "psr-4": { - "DeepCopy\\": "src/DeepCopy/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Create deep copies (clones) of your objects", - "keywords": [ - "clone", - "copy", - "duplicate", - "object", - "object graph" - ], - "support": { - "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.12.1" - }, - "funding": [ - { - "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", - "type": "tidelift" - } - ], - "time": "2024-11-08T17:47:46+00:00" - }, - { - "name": "nunomaduro/collision", - "version": "v8.5.0", - "source": { - "type": "git", - "url": "https://github.com/nunomaduro/collision.git", - "reference": "f5c101b929c958e849a633283adff296ed5f38f5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nunomaduro/collision/zipball/f5c101b929c958e849a633283adff296ed5f38f5", - "reference": "f5c101b929c958e849a633283adff296ed5f38f5", - "shasum": "" - }, - "require": { - "filp/whoops": "^2.16.0", - "nunomaduro/termwind": "^2.1.0", - "php": "^8.2.0", - "symfony/console": "^7.1.5" - }, - "conflict": { - "laravel/framework": "<11.0.0 || >=12.0.0", - "phpunit/phpunit": "<10.5.1 || >=12.0.0" - }, - "require-dev": { - "larastan/larastan": "^2.9.8", - "laravel/framework": "^11.28.0", - "laravel/pint": "^1.18.1", - "laravel/sail": "^1.36.0", - "laravel/sanctum": "^4.0.3", - "laravel/tinker": "^2.10.0", - "orchestra/testbench-core": "^9.5.3", - "pestphp/pest": "^2.36.0 || ^3.4.0", - "sebastian/environment": "^6.1.0 || ^7.2.0" - }, - "type": "library", - "extra": { - "laravel": { - "providers": [ - "NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider" - ] - }, - "branch-alias": { - "dev-8.x": "8.x-dev" - } - }, - "autoload": { - "files": [ - "./src/Adapters/Phpunit/Autoload.php" - ], - "psr-4": { - "NunoMaduro\\Collision\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nuno Maduro", - "email": "enunomaduro@gmail.com" - } - ], - "description": "Cli error handling for console/command-line PHP applications.", - "keywords": [ - "artisan", - "cli", - "command-line", - "console", - "error", - "handling", - "laravel", - "laravel-zero", - "php", - "symfony" - ], - "support": { - "issues": "https://github.com/nunomaduro/collision/issues", - "source": "https://github.com/nunomaduro/collision" - }, - "funding": [ - { - "url": "https://www.paypal.com/paypalme/enunomaduro", - "type": "custom" - }, - { - "url": "https://github.com/nunomaduro", - "type": "github" - }, - { - "url": "https://www.patreon.com/nunomaduro", - "type": "patreon" - } - ], - "time": "2024-10-15T16:06:32+00:00" - }, - { - "name": "phar-io/manifest", - "version": "2.0.4", - "source": { - "type": "git", - "url": "https://github.com/phar-io/manifest.git", - "reference": "54750ef60c58e43759730615a392c31c80e23176" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phar-io/manifest/zipball/54750ef60c58e43759730615a392c31c80e23176", - "reference": "54750ef60c58e43759730615a392c31c80e23176", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-libxml": "*", - "ext-phar": "*", - "ext-xmlwriter": "*", - "phar-io/version": "^3.0.1", - "php": "^7.2 || ^8.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - }, - { - "name": "Sebastian Heuer", - "email": "sebastian@phpeople.de", - "role": "Developer" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "Developer" - } - ], - "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", - "support": { - "issues": "https://github.com/phar-io/manifest/issues", - "source": "https://github.com/phar-io/manifest/tree/2.0.4" - }, - "funding": [ - { - "url": "https://github.com/theseer", - "type": "github" - } - ], - "time": "2024-03-03T12:33:53+00:00" - }, - { - "name": "phar-io/version", - "version": "3.2.1", - "source": { - "type": "git", - "url": "https://github.com/phar-io/version.git", - "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", - "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", - "shasum": "" - }, - "require": { - "php": "^7.2 || ^8.0" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Arne Blankerts", - "email": "arne@blankerts.de", - "role": "Developer" - }, - { - "name": "Sebastian Heuer", - "email": "sebastian@phpeople.de", - "role": "Developer" - }, - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "Developer" - } - ], - "description": "Library for handling version information and constraints", - "support": { - "issues": "https://github.com/phar-io/version/issues", - "source": "https://github.com/phar-io/version/tree/3.2.1" - }, - "time": "2022-02-21T01:04:05+00:00" - }, - { - "name": "phpunit/php-code-coverage", - "version": "11.0.7", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "f7f08030e8811582cc459871d28d6f5a1a4d35ca" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/f7f08030e8811582cc459871d28d6f5a1a4d35ca", - "reference": "f7f08030e8811582cc459871d28d6f5a1a4d35ca", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-libxml": "*", - "ext-xmlwriter": "*", - "nikic/php-parser": "^5.3.1", - "php": ">=8.2", - "phpunit/php-file-iterator": "^5.1.0", - "phpunit/php-text-template": "^4.0.1", - "sebastian/code-unit-reverse-lookup": "^4.0.1", - "sebastian/complexity": "^4.0.1", - "sebastian/environment": "^7.2.0", - "sebastian/lines-of-code": "^3.0.1", - "sebastian/version": "^5.0.2", - "theseer/tokenizer": "^1.2.3" - }, - "require-dev": { - "phpunit/phpunit": "^11.4.1" - }, - "suggest": { - "ext-pcov": "PHP extension that provides line coverage", - "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "11.0.x-dev" - } - }, - "autoload": { - "classmap": [ - "src/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", - "homepage": "https://github.com/sebastianbergmann/php-code-coverage", - "keywords": [ - "coverage", - "testing", - "xunit" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/11.0.7" - }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-10-09T06:21:38+00:00" + "time": "2024-11-27T15:42:28+00:00" }, { - "name": "phpunit/php-file-iterator", - "version": "5.1.0", + "name": "mockery/mockery", + "version": "1.6.12", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "118cfaaa8bc5aef3287bf315b6060b1174754af6" + "url": "https://github.com/mockery/mockery.git", + "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/118cfaaa8bc5aef3287bf315b6060b1174754af6", - "reference": "118cfaaa8bc5aef3287bf315b6060b1174754af6", + "url": "https://api.github.com/repos/mockery/mockery/zipball/1f4efdd7d3beafe9807b08156dfcb176d18f1699", + "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699", "shasum": "" }, "require": { - "php": ">=8.2" + "hamcrest/hamcrest-php": "^2.0.1", + "lib-pcre": ">=7.0", + "php": ">=7.3" + }, + "conflict": { + "phpunit/phpunit": "<8.0" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^8.5 || ^9.6.17", + "symplify/easy-coding-standard": "^12.1.14" }, "type": "library", - "extra": { - "branch-alias": { - "dev-main": "5.0-dev" - } - }, "autoload": { - "classmap": [ - "src/" - ] + "files": [ + "library/helpers.php", + "library/Mockery.php" + ], + "psr-4": { + "Mockery\\": "library/Mockery" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -8892,118 +8875,133 @@ ], "authors": [ { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" + "name": "Pádraic Brady", + "email": "padraic.brady@gmail.com", + "homepage": "https://github.com/padraic", + "role": "Author" + }, + { + "name": "Dave Marshall", + "email": "dave.marshall@atstsolutions.co.uk", + "homepage": "https://davedevelopment.co.uk", + "role": "Developer" + }, + { + "name": "Nathanael Esayeas", + "email": "nathanael.esayeas@protonmail.com", + "homepage": "https://github.com/ghostwriter", + "role": "Lead Developer" } ], - "description": "FilterIterator implementation that filters files based on a list of suffixes.", - "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "description": "Mockery is a simple yet flexible PHP mock object framework", + "homepage": "https://github.com/mockery/mockery", "keywords": [ - "filesystem", - "iterator" + "BDD", + "TDD", + "library", + "mock", + "mock objects", + "mockery", + "stub", + "test", + "test double", + "testing" ], "support": { - "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", - "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/5.1.0" + "docs": "https://docs.mockery.io/", + "issues": "https://github.com/mockery/mockery/issues", + "rss": "https://github.com/mockery/mockery/releases.atom", + "security": "https://github.com/mockery/mockery/security/advisories", + "source": "https://github.com/mockery/mockery" }, - "funding": [ - { - "url": "https://github.com/sebastianbergmann", - "type": "github" - } - ], - "time": "2024-08-27T05:02:59+00:00" + "time": "2024-05-16T03:13:13+00:00" }, { - "name": "phpunit/php-invoker", - "version": "5.0.1", + "name": "myclabs/deep-copy", + "version": "1.12.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-invoker.git", - "reference": "c1ca3814734c07492b3d4c5f794f4b0995333da2" + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "123267b2c49fbf30d78a7b2d333f6be754b94845" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/c1ca3814734c07492b3d4c5f794f4b0995333da2", - "reference": "c1ca3814734c07492b3d4c5f794f4b0995333da2", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/123267b2c49fbf30d78a7b2d333f6be754b94845", + "reference": "123267b2c49fbf30d78a7b2d333f6be754b94845", "shasum": "" }, "require": { - "php": ">=8.2" + "php": "^7.1 || ^8.0" }, - "require-dev": { - "ext-pcntl": "*", - "phpunit/phpunit": "^11.0" + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3 <3.2.2" }, - "suggest": { - "ext-pcntl": "*" + "require-dev": { + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpspec/prophecy": "^1.10", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" }, "type": "library", - "extra": { - "branch-alias": { - "dev-main": "5.0-dev" - } - }, "autoload": { - "classmap": [ - "src/" - ] + "files": [ + "src/DeepCopy/deep_copy.php" + ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } + "MIT" ], - "description": "Invoke callables with a timeout", - "homepage": "https://github.com/sebastianbergmann/php-invoker/", + "description": "Create deep copies (clones) of your objects", "keywords": [ - "process" + "clone", + "copy", + "duplicate", + "object", + "object graph" ], "support": { - "issues": "https://github.com/sebastianbergmann/php-invoker/issues", - "security": "https://github.com/sebastianbergmann/php-invoker/security/policy", - "source": "https://github.com/sebastianbergmann/php-invoker/tree/5.0.1" + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.12.1" }, "funding": [ { - "url": "https://github.com/sebastianbergmann", - "type": "github" + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" } ], - "time": "2024-07-03T05:07:44+00:00" + "time": "2024-11-08T17:47:46+00:00" }, { - "name": "phpunit/php-text-template", - "version": "4.0.1", + "name": "phar-io/manifest", + "version": "2.0.4", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "3e0404dc6b300e6bf56415467ebcb3fe4f33e964" + "url": "https://github.com/phar-io/manifest.git", + "reference": "54750ef60c58e43759730615a392c31c80e23176" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/3e0404dc6b300e6bf56415467ebcb3fe4f33e964", - "reference": "3e0404dc6b300e6bf56415467ebcb3fe4f33e964", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/54750ef60c58e43759730615a392c31c80e23176", + "reference": "54750ef60c58e43759730615a392c31c80e23176", "shasum": "" }, "require": { - "php": ">=8.2" - }, - "require-dev": { - "phpunit/phpunit": "^11.0" + "ext-dom": "*", + "ext-libxml": "*", + "ext-phar": "*", + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "4.0-dev" + "dev-master": "2.0.x-dev" } }, "autoload": { @@ -9016,56 +9014,53 @@ "BSD-3-Clause" ], "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, { "name": "Sebastian Bergmann", "email": "sebastian@phpunit.de", - "role": "lead" + "role": "Developer" } ], - "description": "Simple template engine.", - "homepage": "https://github.com/sebastianbergmann/php-text-template/", - "keywords": [ - "template" - ], + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", "support": { - "issues": "https://github.com/sebastianbergmann/php-text-template/issues", - "security": "https://github.com/sebastianbergmann/php-text-template/security/policy", - "source": "https://github.com/sebastianbergmann/php-text-template/tree/4.0.1" + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/2.0.4" }, "funding": [ { - "url": "https://github.com/sebastianbergmann", + "url": "https://github.com/theseer", "type": "github" } ], - "time": "2024-07-03T05:08:43+00:00" + "time": "2024-03-03T12:33:53+00:00" }, { - "name": "phpunit/php-timer", - "version": "7.0.1", + "name": "phar-io/version", + "version": "3.2.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "3b415def83fbcb41f991d9ebf16ae4ad8b7837b3" + "url": "https://github.com/phar-io/version.git", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3b415def83fbcb41f991d9ebf16ae4ad8b7837b3", - "reference": "3b415def83fbcb41f991d9ebf16ae4ad8b7837b3", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", "shasum": "" }, "require": { - "php": ">=8.2" - }, - "require-dev": { - "phpunit/phpunit": "^11.0" + "php": "^7.2 || ^8.0" }, "type": "library", - "extra": { - "branch-alias": { - "dev-main": "7.0-dev" - } - }, "autoload": { "classmap": [ "src/" @@ -9077,86 +9072,71 @@ ], "authors": [ { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "Utility class for timing", - "homepage": "https://github.com/sebastianbergmann/php-timer/", - "keywords": [ - "timer" - ], - "support": { - "issues": "https://github.com/sebastianbergmann/php-timer/issues", - "security": "https://github.com/sebastianbergmann/php-timer/security/policy", - "source": "https://github.com/sebastianbergmann/php-timer/tree/7.0.1" - }, - "funding": [ + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, { - "url": "https://github.com/sebastianbergmann", - "type": "github" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" } ], - "time": "2024-07-03T05:09:35+00:00" + "description": "Library for handling version information and constraints", + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/3.2.1" + }, + "time": "2022-02-21T01:04:05+00:00" }, { - "name": "phpunit/phpunit", - "version": "11.4.4", + "name": "phpunit/php-code-coverage", + "version": "11.0.7", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "f9ba7bd3c9f3ff54ec379d7a1c2e3f13fe0bbde4" + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "f7f08030e8811582cc459871d28d6f5a1a4d35ca" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/f9ba7bd3c9f3ff54ec379d7a1c2e3f13fe0bbde4", - "reference": "f9ba7bd3c9f3ff54ec379d7a1c2e3f13fe0bbde4", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/f7f08030e8811582cc459871d28d6f5a1a4d35ca", + "reference": "f7f08030e8811582cc459871d28d6f5a1a4d35ca", "shasum": "" }, "require": { "ext-dom": "*", - "ext-json": "*", "ext-libxml": "*", - "ext-mbstring": "*", - "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.12.1", - "phar-io/manifest": "^2.0.4", - "phar-io/version": "^3.2.1", + "nikic/php-parser": "^5.3.1", "php": ">=8.2", - "phpunit/php-code-coverage": "^11.0.7", "phpunit/php-file-iterator": "^5.1.0", - "phpunit/php-invoker": "^5.0.1", "phpunit/php-text-template": "^4.0.1", - "phpunit/php-timer": "^7.0.1", - "sebastian/cli-parser": "^3.0.2", - "sebastian/code-unit": "^3.0.1", - "sebastian/comparator": "^6.2.1", - "sebastian/diff": "^6.0.2", + "sebastian/code-unit-reverse-lookup": "^4.0.1", + "sebastian/complexity": "^4.0.1", "sebastian/environment": "^7.2.0", - "sebastian/exporter": "^6.1.3", - "sebastian/global-state": "^7.0.2", - "sebastian/object-enumerator": "^6.0.1", - "sebastian/type": "^5.1.0", - "sebastian/version": "^5.0.2" + "sebastian/lines-of-code": "^3.0.1", + "sebastian/version": "^5.0.2", + "theseer/tokenizer": "^1.2.3" + }, + "require-dev": { + "phpunit/phpunit": "^11.4.1" }, "suggest": { - "ext-soap": "To be able to generate mocks based on WSDL files" + "ext-pcov": "PHP extension that provides line coverage", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" }, - "bin": [ - "phpunit" - ], "type": "library", "extra": { "branch-alias": { - "dev-main": "11.4-dev" + "dev-main": "11.0.x-dev" } }, "autoload": { - "files": [ - "src/Framework/Assert/Functions.php" - ], "classmap": [ "src/" ] @@ -9172,46 +9152,38 @@ "role": "lead" } ], - "description": "The PHP Unit Testing framework.", - "homepage": "https://phpunit.de/", + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", "keywords": [ - "phpunit", + "coverage", "testing", "xunit" ], "support": { - "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/11.4.4" + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/11.0.7" }, "funding": [ - { - "url": "https://phpunit.de/sponsors.html", - "type": "custom" - }, { "url": "https://github.com/sebastianbergmann", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", - "type": "tidelift" } ], - "time": "2024-11-27T10:44:52+00:00" + "time": "2024-10-09T06:21:38+00:00" }, { - "name": "sebastian/cli-parser", - "version": "3.0.2", + "name": "phpunit/php-file-iterator", + "version": "5.1.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "15c5dd40dc4f38794d383bb95465193f5e0ae180" + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "118cfaaa8bc5aef3287bf315b6060b1174754af6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/15c5dd40dc4f38794d383bb95465193f5e0ae180", - "reference": "15c5dd40dc4f38794d383bb95465193f5e0ae180", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/118cfaaa8bc5aef3287bf315b6060b1174754af6", + "reference": "118cfaaa8bc5aef3287bf315b6060b1174754af6", "shasum": "" }, "require": { @@ -9223,7 +9195,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -9242,12 +9214,16 @@ "role": "lead" } ], - "description": "Library for parsing CLI options", - "homepage": "https://github.com/sebastianbergmann/cli-parser", + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], "support": { - "issues": "https://github.com/sebastianbergmann/cli-parser/issues", - "security": "https://github.com/sebastianbergmann/cli-parser/security/policy", - "source": "https://github.com/sebastianbergmann/cli-parser/tree/3.0.2" + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/5.1.0" }, "funding": [ { @@ -9255,32 +9231,36 @@ "type": "github" } ], - "time": "2024-07-03T04:41:36+00:00" + "time": "2024-08-27T05:02:59+00:00" }, { - "name": "sebastian/code-unit", - "version": "3.0.1", + "name": "phpunit/php-invoker", + "version": "5.0.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/code-unit.git", - "reference": "6bb7d09d6623567178cf54126afa9c2310114268" + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "c1ca3814734c07492b3d4c5f794f4b0995333da2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/6bb7d09d6623567178cf54126afa9c2310114268", - "reference": "6bb7d09d6623567178cf54126afa9c2310114268", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/c1ca3814734c07492b3d4c5f794f4b0995333da2", + "reference": "c1ca3814734c07492b3d4c5f794f4b0995333da2", "shasum": "" }, "require": { "php": ">=8.2" }, "require-dev": { + "ext-pcntl": "*", "phpunit/phpunit": "^11.0" }, + "suggest": { + "ext-pcntl": "*" + }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "5.0-dev" } }, "autoload": { @@ -9299,12 +9279,15 @@ "role": "lead" } ], - "description": "Collection of value objects that represent the PHP code units", - "homepage": "https://github.com/sebastianbergmann/code-unit", + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", + "keywords": [ + "process" + ], "support": { - "issues": "https://github.com/sebastianbergmann/code-unit/issues", - "security": "https://github.com/sebastianbergmann/code-unit/security/policy", - "source": "https://github.com/sebastianbergmann/code-unit/tree/3.0.1" + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "security": "https://github.com/sebastianbergmann/php-invoker/security/policy", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/5.0.1" }, "funding": [ { @@ -9312,20 +9295,20 @@ "type": "github" } ], - "time": "2024-07-03T04:44:28+00:00" + "time": "2024-07-03T05:07:44+00:00" }, { - "name": "sebastian/code-unit-reverse-lookup", + "name": "phpunit/php-text-template", "version": "4.0.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", - "reference": "183a9b2632194febd219bb9246eee421dad8d45e" + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "3e0404dc6b300e6bf56415467ebcb3fe4f33e964" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/183a9b2632194febd219bb9246eee421dad8d45e", - "reference": "183a9b2632194febd219bb9246eee421dad8d45e", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/3e0404dc6b300e6bf56415467ebcb3fe4f33e964", + "reference": "3e0404dc6b300e6bf56415467ebcb3fe4f33e964", "shasum": "" }, "require": { @@ -9352,15 +9335,19 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Looks up which function or method a line of code belongs to", - "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], "support": { - "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", - "security": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/security/policy", - "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/4.0.1" + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "security": "https://github.com/sebastianbergmann/php-text-template/security/policy", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/4.0.1" }, "funding": [ { @@ -9368,36 +9355,32 @@ "type": "github" } ], - "time": "2024-07-03T04:45:54+00:00" + "time": "2024-07-03T05:08:43+00:00" }, { - "name": "sebastian/comparator", - "version": "6.2.1", + "name": "phpunit/php-timer", + "version": "7.0.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "43d129d6a0f81c78bee378b46688293eb7ea3739" + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "3b415def83fbcb41f991d9ebf16ae4ad8b7837b3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/43d129d6a0f81c78bee378b46688293eb7ea3739", - "reference": "43d129d6a0f81c78bee378b46688293eb7ea3739", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3b415def83fbcb41f991d9ebf16ae4ad8b7837b3", + "reference": "3b415def83fbcb41f991d9ebf16ae4ad8b7837b3", "shasum": "" }, "require": { - "ext-dom": "*", - "ext-mbstring": "*", - "php": ">=8.2", - "sebastian/diff": "^6.0", - "sebastian/exporter": "^6.0" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^11.4" + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "6.2-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -9412,32 +9395,19 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@2bepublished.at" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Provides the functionality to compare PHP values for equality", - "homepage": "https://github.com/sebastianbergmann/comparator", + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", "keywords": [ - "comparator", - "compare", - "equality" + "timer" ], "support": { - "issues": "https://github.com/sebastianbergmann/comparator/issues", - "security": "https://github.com/sebastianbergmann/comparator/security/policy", - "source": "https://github.com/sebastianbergmann/comparator/tree/6.2.1" + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "security": "https://github.com/sebastianbergmann/php-timer/security/policy", + "source": "https://github.com/sebastianbergmann/php-timer/tree/7.0.1" }, "funding": [ { @@ -9445,36 +9415,65 @@ "type": "github" } ], - "time": "2024-10-31T05:30:08+00:00" + "time": "2024-07-03T05:09:35+00:00" }, { - "name": "sebastian/complexity", - "version": "4.0.1", + "name": "phpunit/phpunit", + "version": "11.4.4", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/complexity.git", - "reference": "ee41d384ab1906c68852636b6de493846e13e5a0" + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "f9ba7bd3c9f3ff54ec379d7a1c2e3f13fe0bbde4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/ee41d384ab1906c68852636b6de493846e13e5a0", - "reference": "ee41d384ab1906c68852636b6de493846e13e5a0", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/f9ba7bd3c9f3ff54ec379d7a1c2e3f13fe0bbde4", + "reference": "f9ba7bd3c9f3ff54ec379d7a1c2e3f13fe0bbde4", "shasum": "" }, "require": { - "nikic/php-parser": "^5.0", - "php": ">=8.2" + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.12.1", + "phar-io/manifest": "^2.0.4", + "phar-io/version": "^3.2.1", + "php": ">=8.2", + "phpunit/php-code-coverage": "^11.0.7", + "phpunit/php-file-iterator": "^5.1.0", + "phpunit/php-invoker": "^5.0.1", + "phpunit/php-text-template": "^4.0.1", + "phpunit/php-timer": "^7.0.1", + "sebastian/cli-parser": "^3.0.2", + "sebastian/code-unit": "^3.0.1", + "sebastian/comparator": "^6.2.1", + "sebastian/diff": "^6.0.2", + "sebastian/environment": "^7.2.0", + "sebastian/exporter": "^6.1.3", + "sebastian/global-state": "^7.0.2", + "sebastian/object-enumerator": "^6.0.1", + "sebastian/type": "^5.1.0", + "sebastian/version": "^5.0.2" }, - "require-dev": { - "phpunit/phpunit": "^11.0" + "suggest": { + "ext-soap": "To be able to generate mocks based on WSDL files" }, + "bin": [ + "phpunit" + ], "type": "library", "extra": { "branch-alias": { - "dev-main": "4.0-dev" + "dev-main": "11.4-dev" } }, "autoload": { + "files": [ + "src/Framework/Assert/Functions.php" + ], "classmap": [ "src/" ] @@ -9490,46 +9489,58 @@ "role": "lead" } ], - "description": "Library for calculating the complexity of PHP code units", - "homepage": "https://github.com/sebastianbergmann/complexity", + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], "support": { - "issues": "https://github.com/sebastianbergmann/complexity/issues", - "security": "https://github.com/sebastianbergmann/complexity/security/policy", - "source": "https://github.com/sebastianbergmann/complexity/tree/4.0.1" + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/11.4.4" }, "funding": [ + { + "url": "https://phpunit.de/sponsors.html", + "type": "custom" + }, { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", + "type": "tidelift" } ], - "time": "2024-07-03T04:49:50+00:00" + "time": "2024-11-27T10:44:52+00:00" }, { - "name": "sebastian/diff", - "version": "6.0.2", + "name": "sebastian/cli-parser", + "version": "3.0.2", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "b4ccd857127db5d41a5b676f24b51371d76d8544" + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "15c5dd40dc4f38794d383bb95465193f5e0ae180" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/b4ccd857127db5d41a5b676f24b51371d76d8544", - "reference": "b4ccd857127db5d41a5b676f24b51371d76d8544", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/15c5dd40dc4f38794d383bb95465193f5e0ae180", + "reference": "15c5dd40dc4f38794d383bb95465193f5e0ae180", "shasum": "" }, "require": { "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^11.0", - "symfony/process": "^4.2 || ^5" + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "6.0-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -9544,25 +9555,16 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" - }, - { - "name": "Kore Nordmann", - "email": "mail@kore-nordmann.de" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Diff implementation", - "homepage": "https://github.com/sebastianbergmann/diff", - "keywords": [ - "diff", - "udiff", - "unidiff", - "unified diff" - ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", "support": { - "issues": "https://github.com/sebastianbergmann/diff/issues", - "security": "https://github.com/sebastianbergmann/diff/security/policy", - "source": "https://github.com/sebastianbergmann/diff/tree/6.0.2" + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "security": "https://github.com/sebastianbergmann/cli-parser/security/policy", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/3.0.2" }, "funding": [ { @@ -9570,20 +9572,20 @@ "type": "github" } ], - "time": "2024-07-03T04:53:05+00:00" + "time": "2024-07-03T04:41:36+00:00" }, { - "name": "sebastian/environment", - "version": "7.2.0", + "name": "sebastian/code-unit", + "version": "3.0.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "855f3ae0ab316bbafe1ba4e16e9f3c078d24a0c5" + "url": "https://github.com/sebastianbergmann/code-unit.git", + "reference": "6bb7d09d6623567178cf54126afa9c2310114268" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/855f3ae0ab316bbafe1ba4e16e9f3c078d24a0c5", - "reference": "855f3ae0ab316bbafe1ba4e16e9f3c078d24a0c5", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit/zipball/6bb7d09d6623567178cf54126afa9c2310114268", + "reference": "6bb7d09d6623567178cf54126afa9c2310114268", "shasum": "" }, "require": { @@ -9592,13 +9594,10 @@ "require-dev": { "phpunit/phpunit": "^11.0" }, - "suggest": { - "ext-posix": "*" - }, "type": "library", "extra": { "branch-alias": { - "dev-main": "7.2-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -9613,20 +9612,16 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de" + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Provides functionality to handle HHVM/PHP environments", - "homepage": "https://github.com/sebastianbergmann/environment", - "keywords": [ - "Xdebug", - "environment", - "hhvm" - ], + "description": "Collection of value objects that represent the PHP code units", + "homepage": "https://github.com/sebastianbergmann/code-unit", "support": { - "issues": "https://github.com/sebastianbergmann/environment/issues", - "security": "https://github.com/sebastianbergmann/environment/security/policy", - "source": "https://github.com/sebastianbergmann/environment/tree/7.2.0" + "issues": "https://github.com/sebastianbergmann/code-unit/issues", + "security": "https://github.com/sebastianbergmann/code-unit/security/policy", + "source": "https://github.com/sebastianbergmann/code-unit/tree/3.0.1" }, "funding": [ { @@ -9634,34 +9629,32 @@ "type": "github" } ], - "time": "2024-07-03T04:54:44+00:00" + "time": "2024-07-03T04:44:28+00:00" }, { - "name": "sebastian/exporter", - "version": "6.1.3", + "name": "sebastian/code-unit-reverse-lookup", + "version": "4.0.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "c414673eee9a8f9d51bbf8d61fc9e3ef1e85b20e" + "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git", + "reference": "183a9b2632194febd219bb9246eee421dad8d45e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/c414673eee9a8f9d51bbf8d61fc9e3ef1e85b20e", - "reference": "c414673eee9a8f9d51bbf8d61fc9e3ef1e85b20e", + "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/183a9b2632194febd219bb9246eee421dad8d45e", + "reference": "183a9b2632194febd219bb9246eee421dad8d45e", "shasum": "" }, "require": { - "ext-mbstring": "*", - "php": ">=8.2", - "sebastian/recursion-context": "^6.0" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^11.2" + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "6.1-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -9677,34 +9670,14 @@ { "name": "Sebastian Bergmann", "email": "sebastian@phpunit.de" - }, - { - "name": "Jeff Welch", - "email": "whatthejeff@gmail.com" - }, - { - "name": "Volker Dusch", - "email": "github@wallbash.com" - }, - { - "name": "Adam Harvey", - "email": "aharvey@php.net" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" } ], - "description": "Provides the functionality to export PHP variables for visualization", - "homepage": "https://www.github.com/sebastianbergmann/exporter", - "keywords": [ - "export", - "exporter" - ], + "description": "Looks up which function or method a line of code belongs to", + "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", "support": { - "issues": "https://github.com/sebastianbergmann/exporter/issues", - "security": "https://github.com/sebastianbergmann/exporter/security/policy", - "source": "https://github.com/sebastianbergmann/exporter/tree/6.1.3" + "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", + "security": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/security/policy", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/4.0.1" }, "funding": [ { @@ -9712,35 +9685,36 @@ "type": "github" } ], - "time": "2024-07-03T04:56:19+00:00" + "time": "2024-07-03T04:45:54+00:00" }, { - "name": "sebastian/global-state", - "version": "7.0.2", + "name": "sebastian/comparator", + "version": "6.2.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "3be331570a721f9a4b5917f4209773de17f747d7" + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "43d129d6a0f81c78bee378b46688293eb7ea3739" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/3be331570a721f9a4b5917f4209773de17f747d7", - "reference": "3be331570a721f9a4b5917f4209773de17f747d7", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/43d129d6a0f81c78bee378b46688293eb7ea3739", + "reference": "43d129d6a0f81c78bee378b46688293eb7ea3739", "shasum": "" }, "require": { + "ext-dom": "*", + "ext-mbstring": "*", "php": ">=8.2", - "sebastian/object-reflector": "^4.0", - "sebastian/recursion-context": "^6.0" + "sebastian/diff": "^6.0", + "sebastian/exporter": "^6.0" }, "require-dev": { - "ext-dom": "*", - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^11.4" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "7.0-dev" + "dev-main": "6.2-dev" } }, "autoload": { @@ -9756,17 +9730,31 @@ { "name": "Sebastian Bergmann", "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" } ], - "description": "Snapshotting of global state", - "homepage": "https://www.github.com/sebastianbergmann/global-state", + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", "keywords": [ - "global state" + "comparator", + "compare", + "equality" ], "support": { - "issues": "https://github.com/sebastianbergmann/global-state/issues", - "security": "https://github.com/sebastianbergmann/global-state/security/policy", - "source": "https://github.com/sebastianbergmann/global-state/tree/7.0.2" + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "security": "https://github.com/sebastianbergmann/comparator/security/policy", + "source": "https://github.com/sebastianbergmann/comparator/tree/6.2.1" }, "funding": [ { @@ -9774,20 +9762,20 @@ "type": "github" } ], - "time": "2024-07-03T04:57:36+00:00" + "time": "2024-10-31T05:30:08+00:00" }, { - "name": "sebastian/lines-of-code", - "version": "3.0.1", + "name": "sebastian/complexity", + "version": "4.0.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "d36ad0d782e5756913e42ad87cb2890f4ffe467a" + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "ee41d384ab1906c68852636b6de493846e13e5a0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/d36ad0d782e5756913e42ad87cb2890f4ffe467a", - "reference": "d36ad0d782e5756913e42ad87cb2890f4ffe467a", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/ee41d384ab1906c68852636b6de493846e13e5a0", + "reference": "ee41d384ab1906c68852636b6de493846e13e5a0", "shasum": "" }, "require": { @@ -9800,7 +9788,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "4.0-dev" } }, "autoload": { @@ -9819,12 +9807,12 @@ "role": "lead" } ], - "description": "Library for counting the lines of code in PHP source code", - "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", "support": { - "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", - "security": "https://github.com/sebastianbergmann/lines-of-code/security/policy", - "source": "https://github.com/sebastianbergmann/lines-of-code/tree/3.0.1" + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "security": "https://github.com/sebastianbergmann/complexity/security/policy", + "source": "https://github.com/sebastianbergmann/complexity/tree/4.0.1" }, "funding": [ { @@ -9832,29 +9820,28 @@ "type": "github" } ], - "time": "2024-07-03T04:58:38+00:00" + "time": "2024-07-03T04:49:50+00:00" }, { - "name": "sebastian/object-enumerator", - "version": "6.0.1", + "name": "sebastian/diff", + "version": "6.0.2", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/object-enumerator.git", - "reference": "f5b498e631a74204185071eb41f33f38d64608aa" + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "b4ccd857127db5d41a5b676f24b51371d76d8544" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/f5b498e631a74204185071eb41f33f38d64608aa", - "reference": "f5b498e631a74204185071eb41f33f38d64608aa", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/b4ccd857127db5d41a5b676f24b51371d76d8544", + "reference": "b4ccd857127db5d41a5b676f24b51371d76d8544", "shasum": "" }, "require": { - "php": ">=8.2", - "sebastian/object-reflector": "^4.0", - "sebastian/recursion-context": "^6.0" + "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^11.0", + "symfony/process": "^4.2 || ^5" }, "type": "library", "extra": { @@ -9875,14 +9862,24 @@ { "name": "Sebastian Bergmann", "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" } ], - "description": "Traverses array structures and object graphs to enumerate all referenced objects", - "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], "support": { - "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", - "security": "https://github.com/sebastianbergmann/object-enumerator/security/policy", - "source": "https://github.com/sebastianbergmann/object-enumerator/tree/6.0.1" + "issues": "https://github.com/sebastianbergmann/diff/issues", + "security": "https://github.com/sebastianbergmann/diff/security/policy", + "source": "https://github.com/sebastianbergmann/diff/tree/6.0.2" }, "funding": [ { @@ -9890,20 +9887,20 @@ "type": "github" } ], - "time": "2024-07-03T05:00:13+00:00" + "time": "2024-07-03T04:53:05+00:00" }, { - "name": "sebastian/object-reflector", - "version": "4.0.1", + "name": "sebastian/environment", + "version": "7.2.0", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/object-reflector.git", - "reference": "6e1a43b411b2ad34146dee7524cb13a068bb35f9" + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "855f3ae0ab316bbafe1ba4e16e9f3c078d24a0c5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/6e1a43b411b2ad34146dee7524cb13a068bb35f9", - "reference": "6e1a43b411b2ad34146dee7524cb13a068bb35f9", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/855f3ae0ab316bbafe1ba4e16e9f3c078d24a0c5", + "reference": "855f3ae0ab316bbafe1ba4e16e9f3c078d24a0c5", "shasum": "" }, "require": { @@ -9912,10 +9909,13 @@ "require-dev": { "phpunit/phpunit": "^11.0" }, + "suggest": { + "ext-posix": "*" + }, "type": "library", "extra": { "branch-alias": { - "dev-main": "4.0-dev" + "dev-main": "7.2-dev" } }, "autoload": { @@ -9933,12 +9933,17 @@ "email": "sebastian@phpunit.de" } ], - "description": "Allows reflection of object attributes, including inherited and non-public ones", - "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "https://github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], "support": { - "issues": "https://github.com/sebastianbergmann/object-reflector/issues", - "security": "https://github.com/sebastianbergmann/object-reflector/security/policy", - "source": "https://github.com/sebastianbergmann/object-reflector/tree/4.0.1" + "issues": "https://github.com/sebastianbergmann/environment/issues", + "security": "https://github.com/sebastianbergmann/environment/security/policy", + "source": "https://github.com/sebastianbergmann/environment/tree/7.2.0" }, "funding": [ { @@ -9946,32 +9951,34 @@ "type": "github" } ], - "time": "2024-07-03T05:01:32+00:00" + "time": "2024-07-03T04:54:44+00:00" }, { - "name": "sebastian/recursion-context", - "version": "6.0.2", + "name": "sebastian/exporter", + "version": "6.1.3", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "694d156164372abbd149a4b85ccda2e4670c0e16" + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "c414673eee9a8f9d51bbf8d61fc9e3ef1e85b20e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/694d156164372abbd149a4b85ccda2e4670c0e16", - "reference": "694d156164372abbd149a4b85ccda2e4670c0e16", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/c414673eee9a8f9d51bbf8d61fc9e3ef1e85b20e", + "reference": "c414673eee9a8f9d51bbf8d61fc9e3ef1e85b20e", "shasum": "" }, "require": { - "php": ">=8.2" + "ext-mbstring": "*", + "php": ">=8.2", + "sebastian/recursion-context": "^6.0" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^11.2" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "6.0-dev" + "dev-main": "6.1-dev" } }, "autoload": { @@ -9992,17 +9999,29 @@ "name": "Jeff Welch", "email": "whatthejeff@gmail.com" }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, { "name": "Adam Harvey", "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" } ], - "description": "Provides functionality to recursively process PHP variables", - "homepage": "https://github.com/sebastianbergmann/recursion-context", + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "https://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], "support": { - "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "security": "https://github.com/sebastianbergmann/recursion-context/security/policy", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/6.0.2" + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "security": "https://github.com/sebastianbergmann/exporter/security/policy", + "source": "https://github.com/sebastianbergmann/exporter/tree/6.1.3" }, "funding": [ { @@ -10010,32 +10029,35 @@ "type": "github" } ], - "time": "2024-07-03T05:10:34+00:00" + "time": "2024-07-03T04:56:19+00:00" }, { - "name": "sebastian/type", - "version": "5.1.0", + "name": "sebastian/global-state", + "version": "7.0.2", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/type.git", - "reference": "461b9c5da241511a2a0e8f240814fb23ce5c0aac" + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "3be331570a721f9a4b5917f4209773de17f747d7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/461b9c5da241511a2a0e8f240814fb23ce5c0aac", - "reference": "461b9c5da241511a2a0e8f240814fb23ce5c0aac", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/3be331570a721f9a4b5917f4209773de17f747d7", + "reference": "3be331570a721f9a4b5917f4209773de17f747d7", "shasum": "" }, "require": { - "php": ">=8.2" + "php": ">=8.2", + "sebastian/object-reflector": "^4.0", + "sebastian/recursion-context": "^6.0" }, "require-dev": { - "phpunit/phpunit": "^11.3" + "ext-dom": "*", + "phpunit/phpunit": "^11.0" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.1-dev" + "dev-main": "7.0-dev" } }, "autoload": { @@ -10050,16 +10072,18 @@ "authors": [ { "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" + "email": "sebastian@phpunit.de" } ], - "description": "Collection of value objects that represent the types of the PHP type system", - "homepage": "https://github.com/sebastianbergmann/type", + "description": "Snapshotting of global state", + "homepage": "https://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], "support": { - "issues": "https://github.com/sebastianbergmann/type/issues", - "security": "https://github.com/sebastianbergmann/type/security/policy", - "source": "https://github.com/sebastianbergmann/type/tree/5.1.0" + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "security": "https://github.com/sebastianbergmann/global-state/security/policy", + "source": "https://github.com/sebastianbergmann/global-state/tree/7.0.2" }, "funding": [ { @@ -10067,29 +10091,33 @@ "type": "github" } ], - "time": "2024-09-17T13:12:04+00:00" + "time": "2024-07-03T04:57:36+00:00" }, { - "name": "sebastian/version", - "version": "5.0.2", + "name": "sebastian/lines-of-code", + "version": "3.0.1", "source": { "type": "git", - "url": "https://github.com/sebastianbergmann/version.git", - "reference": "c687e3387b99f5b03b6caa64c74b63e2936ff874" + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "d36ad0d782e5756913e42ad87cb2890f4ffe467a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c687e3387b99f5b03b6caa64c74b63e2936ff874", - "reference": "c687e3387b99f5b03b6caa64c74b63e2936ff874", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/d36ad0d782e5756913e42ad87cb2890f4ffe467a", + "reference": "d36ad0d782e5756913e42ad87cb2890f4ffe467a", "shasum": "" }, "require": { + "nikic/php-parser": "^5.0", "php": ">=8.2" }, + "require-dev": { + "phpunit/phpunit": "^11.0" + }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.0-dev" + "dev-main": "3.0-dev" } }, "autoload": { @@ -10108,12 +10136,12 @@ "role": "lead" } ], - "description": "Library that helps with managing the version number of Git-hosted PHP projects", - "homepage": "https://github.com/sebastianbergmann/version", + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", "support": { - "issues": "https://github.com/sebastianbergmann/version/issues", - "security": "https://github.com/sebastianbergmann/version/security/policy", - "source": "https://github.com/sebastianbergmann/version/tree/5.0.2" + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "security": "https://github.com/sebastianbergmann/lines-of-code/security/policy", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/3.0.1" }, "funding": [ { @@ -10121,324 +10149,296 @@ "type": "github" } ], - "time": "2024-10-09T05:16:32+00:00" + "time": "2024-07-03T04:58:38+00:00" }, { - "name": "shalvah/clara", - "version": "3.2.0", + "name": "sebastian/object-enumerator", + "version": "6.0.1", "source": { "type": "git", - "url": "https://github.com/shalvah/clara.git", - "reference": "cdbb5737cbdd101756d97dd2279a979a1af7710b" + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "f5b498e631a74204185071eb41f33f38d64608aa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/shalvah/clara/zipball/cdbb5737cbdd101756d97dd2279a979a1af7710b", - "reference": "cdbb5737cbdd101756d97dd2279a979a1af7710b", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/f5b498e631a74204185071eb41f33f38d64608aa", + "reference": "f5b498e631a74204185071eb41f33f38d64608aa", "shasum": "" }, "require": { - "php": ">=7.4", - "symfony/console": "^4.0|^5.0|^6.0|^7.0" + "php": ">=8.2", + "sebastian/object-reflector": "^4.0", + "sebastian/recursion-context": "^6.0" }, "require-dev": { - "eloquent/phony-phpunit": "^7.0", - "phpunit/phpunit": "^9.1" + "phpunit/phpunit": "^11.0" }, "type": "library", - "autoload": { - "files": [ - "helpers.php" - ], - "psr-4": { - "Shalvah\\Clara\\": "src/" + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" } }, + "autoload": { + "classmap": [ + "src/" + ] + }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], - "description": "🔊 Simple, pretty, testable console output for CLI apps.", - "keywords": [ - "cli", - "log", - "logging" + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", "support": { - "issues": "https://github.com/shalvah/clara/issues", - "source": "https://github.com/shalvah/clara/tree/3.2.0" + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "security": "https://github.com/sebastianbergmann/object-enumerator/security/policy", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/6.0.1" }, - "time": "2024-02-27T20:30:59+00:00" + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-07-03T05:00:13+00:00" }, { - "name": "shalvah/upgrader", - "version": "0.6.0", + "name": "sebastian/object-reflector", + "version": "4.0.1", "source": { - "type": "git", - "url": "https://github.com/shalvah/upgrader.git", - "reference": "d95ed17fe9f5e1ee7d47ad835595f1af080a867f" + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "6e1a43b411b2ad34146dee7524cb13a068bb35f9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/shalvah/upgrader/zipball/d95ed17fe9f5e1ee7d47ad835595f1af080a867f", - "reference": "d95ed17fe9f5e1ee7d47ad835595f1af080a867f", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/6e1a43b411b2ad34146dee7524cb13a068bb35f9", + "reference": "6e1a43b411b2ad34146dee7524cb13a068bb35f9", "shasum": "" }, "require": { - "illuminate/support": ">=8.0", - "nikic/php-parser": "^5.0", - "php": ">=8.0" + "php": ">=8.2" }, "require-dev": { - "dms/phpunit-arraysubset-asserts": "^0.2.0", - "pestphp/pest": "^1.21", - "phpstan/phpstan": "^1.0", - "spatie/ray": "^1.33" + "phpunit/phpunit": "^11.0" }, "type": "library", - "autoload": { - "psr-4": { - "Shalvah\\Upgrader\\": "src/" + "extra": { + "branch-alias": { + "dev-main": "4.0-dev" } }, + "autoload": { + "classmap": [ + "src/" + ] + }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Shalvah", - "email": "hello@shalvah.me" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" } ], - "description": "Create automatic upgrades for your package.", - "homepage": "http://github.com/shalvah/upgrader", - "keywords": [ - "upgrade" - ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", "support": { - "issues": "https://github.com/shalvah/upgrader/issues", - "source": "https://github.com/shalvah/upgrader/tree/0.6.0" + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "security": "https://github.com/sebastianbergmann/object-reflector/security/policy", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/4.0.1" }, "funding": [ { - "url": "https://patreon.com/shalvah", - "type": "patreon" + "url": "https://github.com/sebastianbergmann", + "type": "github" } ], - "time": "2024-02-20T11:51:46+00:00" + "time": "2024-07-03T05:01:32+00:00" }, { - "name": "spatie/data-transfer-object", - "version": "3.9.1", + "name": "sebastian/recursion-context", + "version": "6.0.2", "source": { "type": "git", - "url": "https://github.com/spatie/data-transfer-object.git", - "reference": "1df0906c4e9e3aebd6c0506fd82c8b7d5548c1c8" + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "694d156164372abbd149a4b85ccda2e4670c0e16" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/data-transfer-object/zipball/1df0906c4e9e3aebd6c0506fd82c8b7d5548c1c8", - "reference": "1df0906c4e9e3aebd6c0506fd82c8b7d5548c1c8", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/694d156164372abbd149a4b85ccda2e4670c0e16", + "reference": "694d156164372abbd149a4b85ccda2e4670c0e16", "shasum": "" }, "require": { - "php": "^8.0" + "php": ">=8.2" }, "require-dev": { - "illuminate/collections": "^8.36", - "jetbrains/phpstorm-attributes": "^1.0", - "larapack/dd": "^1.1", - "phpunit/phpunit": "^9.5.5" + "phpunit/phpunit": "^11.0" }, "type": "library", - "autoload": { - "psr-4": { - "Spatie\\DataTransferObject\\": "src" + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" } }, + "autoload": { + "classmap": [ + "src/" + ] + }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Brent Roose", - "email": "brent@spatie.be", - "homepage": "https://spatie.be", - "role": "Developer" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" } ], - "description": "Data transfer objects with batteries included", - "homepage": "https://github.com/spatie/data-transfer-object", - "keywords": [ - "data-transfer-object", - "spatie" - ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "https://github.com/sebastianbergmann/recursion-context", "support": { - "issues": "https://github.com/spatie/data-transfer-object/issues", - "source": "https://github.com/spatie/data-transfer-object/tree/3.9.1" + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "security": "https://github.com/sebastianbergmann/recursion-context/security/policy", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/6.0.2" }, "funding": [ { - "url": "https://spatie.be/open-source/support-us", - "type": "custom" - }, - { - "url": "https://github.com/spatie", + "url": "https://github.com/sebastianbergmann", "type": "github" } ], - "abandoned": "spatie/laravel-data", - "time": "2022-09-16T13:34:38+00:00" + "time": "2024-07-03T05:10:34+00:00" }, { - "name": "symfony/var-exporter", - "version": "v7.2.0", + "name": "sebastian/type", + "version": "5.1.0", "source": { "type": "git", - "url": "https://github.com/symfony/var-exporter.git", - "reference": "1a6a89f95a46af0f142874c9d650a6358d13070d" + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "461b9c5da241511a2a0e8f240814fb23ce5c0aac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-exporter/zipball/1a6a89f95a46af0f142874c9d650a6358d13070d", - "reference": "1a6a89f95a46af0f142874c9d650a6358d13070d", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/461b9c5da241511a2a0e8f240814fb23ce5c0aac", + "reference": "461b9c5da241511a2a0e8f240814fb23ce5c0aac", "shasum": "" }, "require": { "php": ">=8.2" }, "require-dev": { - "symfony/property-access": "^6.4|^7.0", - "symfony/serializer": "^6.4|^7.0", - "symfony/var-dumper": "^6.4|^7.0" + "phpunit/phpunit": "^11.3" }, "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.1-dev" + } + }, "autoload": { - "psr-4": { - "Symfony\\Component\\VarExporter\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" + "classmap": [ + "src/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Allows exporting any serializable PHP data structure to plain PHP code", - "homepage": "https://symfony.com", - "keywords": [ - "clone", - "construct", - "export", - "hydrate", - "instantiate", - "lazy-loading", - "proxy", - "serialize" - ], + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", "support": { - "source": "https://github.com/symfony/var-exporter/tree/v7.2.0" + "issues": "https://github.com/sebastianbergmann/type/issues", + "security": "https://github.com/sebastianbergmann/type/security/policy", + "source": "https://github.com/sebastianbergmann/type/tree/5.1.0" }, "funding": [ { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", + "url": "https://github.com/sebastianbergmann", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" } ], - "time": "2024-10-18T07:58:17+00:00" + "time": "2024-09-17T13:12:04+00:00" }, { - "name": "symfony/yaml", - "version": "v7.2.0", + "name": "sebastian/version", + "version": "5.0.2", "source": { "type": "git", - "url": "https://github.com/symfony/yaml.git", - "reference": "099581e99f557e9f16b43c5916c26380b54abb22" + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "c687e3387b99f5b03b6caa64c74b63e2936ff874" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/099581e99f557e9f16b43c5916c26380b54abb22", - "reference": "099581e99f557e9f16b43c5916c26380b54abb22", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/c687e3387b99f5b03b6caa64c74b63e2936ff874", + "reference": "c687e3387b99f5b03b6caa64c74b63e2936ff874", "shasum": "" }, "require": { - "php": ">=8.2", - "symfony/deprecation-contracts": "^2.5|^3.0", - "symfony/polyfill-ctype": "^1.8" - }, - "conflict": { - "symfony/console": "<6.4" - }, - "require-dev": { - "symfony/console": "^6.4|^7.0" + "php": ">=8.2" }, - "bin": [ - "Resources/bin/yaml-lint" - ], "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, "autoload": { - "psr-4": { - "Symfony\\Component\\Yaml\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" + "classmap": [ + "src/" ] }, "notification-url": "https://packagist.org/downloads/", "license": [ - "MIT" + "BSD-3-Clause" ], "authors": [ { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" } ], - "description": "Loads and dumps YAML files", - "homepage": "https://symfony.com", + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", "support": { - "source": "https://github.com/symfony/yaml/tree/v7.2.0" + "issues": "https://github.com/sebastianbergmann/version/issues", + "security": "https://github.com/sebastianbergmann/version/security/policy", + "source": "https://github.com/sebastianbergmann/version/tree/5.0.2" }, "funding": [ { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", + "url": "https://github.com/sebastianbergmann", "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" } ], - "time": "2024-10-23T06:56:12+00:00" + "time": "2024-10-09T05:16:32+00:00" }, { "name": "theseer/tokenizer", diff --git a/config/scribe.php b/config/scribe.php index 05a564f1..746d5123 100644 --- a/config/scribe.php +++ b/config/scribe.php @@ -357,7 +357,4 @@ ], 'routeMatcher' => RouteMatcher::class, - // The base URL displayed in the docs. If this is empty, Scribe will use the value of config('app.url') at generation time. - // If you're using `laravel` type, you can set this to a dynamic string, like '{{ config("app.tenant_url") }}' to get a dynamic base URL. - 'base_url' => null, ]; diff --git a/package-lock.json b/package-lock.json index c2c2b7e9..c24fe3fa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,11 +11,11 @@ "autoprefixer": "^10.4.12", "axios": "^1.6.4", "dayjs": "^1.11.12", - "laravel-vite-plugin": "^1.0", + "laravel-vite-plugin": "^1.1.0", "postcss": "^8.4.31", "sweetalert2": "^11.12.4", "tailwindcss": "^3.2.1", - "vite": "^5.0", + "vite": "^6.0.2", "vue": "^3.4.0", "vue3-dropzone": "^2.2.1" } @@ -25,6 +25,7 @@ "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz", "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -37,6 +38,7 @@ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -46,6 +48,7 @@ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -55,6 +58,7 @@ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.2.tgz", "integrity": "sha512-DWMCZH9WA4Maitz2q21SRKHo9QXZxkDsbNZoVD62gusNtNBBqDg9i7uOhASfTfIGNzW+O+r7+jAlM8dwphcJKQ==", "dev": true, + "license": "MIT", "dependencies": { "@babel/types": "^7.26.0" }, @@ -70,6 +74,7 @@ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.0.tgz", "integrity": "sha512-Z/yiTPj+lDVnF7lWeKCIJzaIkI0vYO87dMpZ4bg4TDrFe4XXLFWL1TbXU27gBP3QccxV9mZICCrnjnYlJjXHOA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-string-parser": "^7.25.9", "@babel/helper-validator-identifier": "^7.25.9" @@ -79,371 +84,411 @@ } }, "node_modules/@esbuild/aix-ppc64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", - "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.24.0.tgz", + "integrity": "sha512-WtKdFM7ls47zkKHFVzMz8opM7LkcsIp9amDUBIAWirg70RM71WRSjdILPsY5Uv1D42ZpUfaPILDlfactHgsRkw==", "cpu": [ "ppc64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "aix" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/android-arm": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", - "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.24.0.tgz", + "integrity": "sha512-arAtTPo76fJ/ICkXWetLCc9EwEHKaeya4vMrReVlEIUCAUncH7M4bhMQ+M9Vf+FFOZJdTNMXNBrWwW+OXWpSew==", "cpu": [ "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "android" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/android-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", - "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.24.0.tgz", + "integrity": "sha512-Vsm497xFM7tTIPYK9bNTYJyF/lsP590Qc1WxJdlB6ljCbdZKU9SY8i7+Iin4kyhV/KV5J2rOKsBQbB77Ab7L/w==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "android" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/android-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", - "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.24.0.tgz", + "integrity": "sha512-t8GrvnFkiIY7pa7mMgJd7p8p8qqYIz1NYiAoKc75Zyv73L3DZW++oYMSHPRarcotTKuSs6m3hTOa5CKHaS02TQ==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "android" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", - "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.24.0.tgz", + "integrity": "sha512-CKyDpRbK1hXwv79soeTJNHb5EiG6ct3efd/FTPdzOWdbZZfGhpbcqIpiD0+vwmpu0wTIL97ZRPZu8vUt46nBSw==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "darwin" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", - "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.24.0.tgz", + "integrity": "sha512-rgtz6flkVkh58od4PwTRqxbKH9cOjaXCMZgWD905JOzjFKW+7EiUObfd/Kav+A6Gyud6WZk9w+xu6QLytdi2OA==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "darwin" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", - "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.24.0.tgz", + "integrity": "sha512-6Mtdq5nHggwfDNLAHkPlyLBpE5L6hwsuXZX8XNmHno9JuL2+bg2BX5tRkwjyfn6sKbxZTq68suOjgWqCicvPXA==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "freebsd" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", - "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.24.0.tgz", + "integrity": "sha512-D3H+xh3/zphoX8ck4S2RxKR6gHlHDXXzOf6f/9dbFt/NRBDIE33+cVa49Kil4WUjxMGW0ZIYBYtaGCa2+OsQwQ==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "freebsd" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-arm": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", - "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.24.0.tgz", + "integrity": "sha512-gJKIi2IjRo5G6Glxb8d3DzYXlxdEj2NlkixPsqePSZMhLudqPhtZ4BUrpIuTjJYXxvF9njql+vRjB2oaC9XpBw==", "cpu": [ "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", - "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.24.0.tgz", + "integrity": "sha512-TDijPXTOeE3eaMkRYpcy3LarIg13dS9wWHRdwYRnzlwlA370rNdZqbcp0WTyyV/k2zSxfko52+C7jU5F9Tfj1g==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", - "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.24.0.tgz", + "integrity": "sha512-K40ip1LAcA0byL05TbCQ4yJ4swvnbzHscRmUilrmP9Am7//0UjPreh4lpYzvThT2Quw66MhjG//20mrufm40mA==", "cpu": [ "ia32" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", - "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.24.0.tgz", + "integrity": "sha512-0mswrYP/9ai+CU0BzBfPMZ8RVm3RGAN/lmOMgW4aFUSOQBjA31UP8Mr6DDhWSuMwj7jaWOT0p0WoZ6jeHhrD7g==", "cpu": [ "loong64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", - "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.24.0.tgz", + "integrity": "sha512-hIKvXm0/3w/5+RDtCJeXqMZGkI2s4oMUGj3/jM0QzhgIASWrGO5/RlzAzm5nNh/awHE0A19h/CvHQe6FaBNrRA==", "cpu": [ "mips64el" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", - "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.24.0.tgz", + "integrity": "sha512-HcZh5BNq0aC52UoocJxaKORfFODWXZxtBaaZNuN3PUX3MoDsChsZqopzi5UupRhPHSEHotoiptqikjN/B77mYQ==", "cpu": [ "ppc64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", - "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.24.0.tgz", + "integrity": "sha512-bEh7dMn/h3QxeR2KTy1DUszQjUrIHPZKyO6aN1X4BCnhfYhuQqedHaa5MxSQA/06j3GpiIlFGSsy1c7Gf9padw==", "cpu": [ "riscv64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", - "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.24.0.tgz", + "integrity": "sha512-ZcQ6+qRkw1UcZGPyrCiHHkmBaj9SiCD8Oqd556HldP+QlpUIe2Wgn3ehQGVoPOvZvtHm8HPx+bH20c9pvbkX3g==", "cpu": [ "s390x" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/linux-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", - "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.24.0.tgz", + "integrity": "sha512-vbutsFqQ+foy3wSSbmjBXXIJ6PL3scghJoM8zCL142cGaZKAdCZHyf+Bpu/MmX9zT9Q0zFBVKb36Ma5Fzfa8xA==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", - "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.24.0.tgz", + "integrity": "sha512-hjQ0R/ulkO8fCYFsG0FZoH+pWgTTDreqpqY7UnQntnaKv95uP5iW3+dChxnx7C3trQQU40S+OgWhUVwCjVFLvg==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "netbsd" ], "engines": { - "node": ">=12" + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.24.0.tgz", + "integrity": "sha512-MD9uzzkPQbYehwcN583yx3Tu5M8EIoTD+tUgKF982WYL9Pf5rKy9ltgD0eUgs8pvKnmizxjXZyLt0z6DC3rRXg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", - "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.24.0.tgz", + "integrity": "sha512-4ir0aY1NGUhIC1hdoCzr1+5b43mw99uNwVzhIq1OY3QcEwPDO3B7WNXBzaKY5Nsf1+N11i1eOfFcq+D/gOS15Q==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "openbsd" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/sunos-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", - "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.24.0.tgz", + "integrity": "sha512-jVzdzsbM5xrotH+W5f1s+JtUy1UWgjU0Cf4wMvffTB8m6wP5/kx0KiaLHlbJO+dMgtxKV8RQ/JvtlFcdZ1zCPA==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "sunos" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", - "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.24.0.tgz", + "integrity": "sha512-iKc8GAslzRpBytO2/aN3d2yb2z8XTVfNV0PjGlCxKo5SgWmNXx82I/Q3aG1tFfS+A2igVCY97TJ8tnYwpUWLCA==", "cpu": [ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", - "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.24.0.tgz", + "integrity": "sha512-vQW36KZolfIudCcTnaTpmLQ24Ha1RjygBo39/aLkM2kmjkWmZGEJ5Gn9l5/7tzXA42QGIoWbICfg6KLLkIw6yw==", "cpu": [ "ia32" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@esbuild/win32-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", - "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.24.0.tgz", + "integrity": "sha512-7IAFPrjSQIJrGsK6flwg7NFmwBoSTyF3rl7If0hNUFQU4ilTsEPL6GuMuU9BfIWVVGuRnuIidkSMC+c0Otu8IA==", "cpu": [ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" ], "engines": { - "node": ">=12" + "node": ">=18" } }, "node_modules/@inertiajs/core": { @@ -451,6 +496,7 @@ "resolved": "https://registry.npmjs.org/@inertiajs/core/-/core-1.2.0.tgz", "integrity": "sha512-6U0gqCPbGGGMcLoDm+ckKipc5gptZMmfVFfPGdO7vlO7yipWf1RD+TKkcZGJklFvfgFMKwK2VPw8GAv1OctuQA==", "dev": true, + "license": "MIT", "dependencies": { "axios": "^1.6.0", "deepmerge": "^4.0.0", @@ -463,6 +509,7 @@ "resolved": "https://registry.npmjs.org/@inertiajs/vue3/-/vue3-1.2.0.tgz", "integrity": "sha512-Y6AsvwIK/E1pQKAMp8B7i99CbNApcTYb7j8R+TXM/AFQG6yBlQ1Qb9oFMItb6VimXSnDyfO4+FWe/JPLk9OIVA==", "dev": true, + "license": "MIT", "dependencies": { "@inertiajs/core": "1.2.0", "lodash.clonedeep": "^4.5.0", @@ -477,6 +524,7 @@ "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", "dev": true, + "license": "ISC", "dependencies": { "string-width": "^5.1.2", "string-width-cjs": "npm:string-width@^4.2.0", @@ -494,6 +542,7 @@ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", "dev": true, + "license": "MIT", "dependencies": { "@jridgewell/set-array": "^1.2.1", "@jridgewell/sourcemap-codec": "^1.4.10", @@ -508,6 +557,7 @@ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.0.0" } @@ -517,6 +567,7 @@ "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.0.0" } @@ -525,13 +576,15 @@ "version": "1.5.0", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { "version": "0.3.25", "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dev": true, + "license": "MIT", "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" @@ -542,6 +595,7 @@ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, + "license": "MIT", "dependencies": { "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" @@ -555,6 +609,7 @@ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "dev": true, + "license": "MIT", "engines": { "node": ">= 8" } @@ -564,6 +619,7 @@ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "dev": true, + "license": "MIT", "dependencies": { "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" @@ -577,6 +633,7 @@ "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", "dev": true, + "license": "MIT", "optional": true, "engines": { "node": ">=14" @@ -590,6 +647,7 @@ "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "android" @@ -603,6 +661,7 @@ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "android" @@ -616,6 +675,7 @@ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -629,6 +689,7 @@ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -642,6 +703,7 @@ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "freebsd" @@ -655,6 +717,7 @@ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "freebsd" @@ -668,6 +731,7 @@ "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -681,6 +745,7 @@ "arm" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -694,6 +759,7 @@ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -707,6 +773,7 @@ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -720,6 +787,7 @@ "ppc64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -733,6 +801,7 @@ "riscv64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -746,6 +815,7 @@ "s390x" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -759,6 +829,7 @@ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -772,6 +843,7 @@ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "linux" @@ -785,6 +857,7 @@ "arm64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" @@ -798,6 +871,7 @@ "ia32" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" @@ -811,6 +885,7 @@ "x64" ], "dev": true, + "license": "MIT", "optional": true, "os": [ "win32" @@ -821,6 +896,7 @@ "resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.9.tgz", "integrity": "sha512-tM4XVr2+UVTxXJzey9Twx48c1gcxFStqn1pQz0tRsX8o3DvxhN5oY5pvyAbUx7VTaZxpej4Zzvc6h+1RJBzpIg==", "dev": true, + "license": "MIT", "dependencies": { "mini-svg-data-uri": "^1.2.3" }, @@ -832,13 +908,15 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/@vitejs/plugin-vue": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-5.2.1.tgz", "integrity": "sha512-cxh314tzaWwOLqVes2gnnCtvBDcM1UMdn+iFR+UjAn411dPT3tOmqrJjbMd7koZpMAmBM/GqeV4n9ge7JSiJJQ==", "dev": true, + "license": "MIT", "engines": { "node": "^18.0.0 || >=20.0.0" }, @@ -852,6 +930,7 @@ "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.13.tgz", "integrity": "sha512-oOdAkwqUfW1WqpwSYJce06wvt6HljgY3fGeM9NcVA1HaYOij3mZG9Rkysn0OHuyUAGMbEbARIpsG+LPVlBJ5/Q==", "dev": true, + "license": "MIT", "dependencies": { "@babel/parser": "^7.25.3", "@vue/shared": "3.5.13", @@ -865,6 +944,7 @@ "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.13.tgz", "integrity": "sha512-ZOJ46sMOKUjO3e94wPdCzQ6P1Lx/vhp2RSvfaab88Ajexs0AHeV0uasYhi99WPaogmBlRHNRuly8xV75cNTMDA==", "dev": true, + "license": "MIT", "dependencies": { "@vue/compiler-core": "3.5.13", "@vue/shared": "3.5.13" @@ -875,6 +955,7 @@ "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.13.tgz", "integrity": "sha512-6VdaljMpD82w6c2749Zhf5T9u5uLBWKnVue6XWxprDobftnletJ8+oel7sexFfM3qIxNmVE7LSFGTpv6obNyaQ==", "dev": true, + "license": "MIT", "dependencies": { "@babel/parser": "^7.25.3", "@vue/compiler-core": "3.5.13", @@ -892,6 +973,7 @@ "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.13.tgz", "integrity": "sha512-wMH6vrYHxQl/IybKJagqbquvxpWCuVYpoUJfCqFZwa/JY1GdATAQ+TgVtgrwwMZ0D07QhA99rs/EAAWfvG6KpA==", "dev": true, + "license": "MIT", "dependencies": { "@vue/compiler-dom": "3.5.13", "@vue/shared": "3.5.13" @@ -902,6 +984,7 @@ "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.13.tgz", "integrity": "sha512-NaCwtw8o48B9I6L1zl2p41OHo/2Z4wqYGGIK1Khu5T7yxrn+ATOixn/Udn2m+6kZKB/J7cuT9DbWWhRxqixACg==", "dev": true, + "license": "MIT", "dependencies": { "@vue/shared": "3.5.13" } @@ -911,6 +994,7 @@ "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.13.tgz", "integrity": "sha512-Fj4YRQ3Az0WTZw1sFe+QDb0aXCerigEpw418pw1HBUKFtnQHWzwojaukAs2X/c9DQz4MQ4bsXTGlcpGxU/RCIw==", "dev": true, + "license": "MIT", "dependencies": { "@vue/reactivity": "3.5.13", "@vue/shared": "3.5.13" @@ -921,6 +1005,7 @@ "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.13.tgz", "integrity": "sha512-dLaj94s93NYLqjLiyFzVs9X6dWhTdAlEAciC3Moq7gzAc13VJUdCnjjRurNM6uTLFATRHexHCTu/Xp3eW6yoog==", "dev": true, + "license": "MIT", "dependencies": { "@vue/reactivity": "3.5.13", "@vue/runtime-core": "3.5.13", @@ -933,6 +1018,7 @@ "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.13.tgz", "integrity": "sha512-wAi4IRJV/2SAW3htkTlB+dHeRmpTiVIK1OGLWV1yeStVSebSQQOwGwIq0D3ZIoBj2C2qpgz5+vX9iEBkTdk5YA==", "dev": true, + "license": "MIT", "dependencies": { "@vue/compiler-ssr": "3.5.13", "@vue/shared": "3.5.13" @@ -945,13 +1031,15 @@ "version": "3.5.13", "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.13.tgz", "integrity": "sha512-/hnE/qP5ZoGpol0a5mDi45bOd7t3tjYJBjsgCsivow7D48cJeV5l05RD82lPqi7gRiphZM37rnhW1l6ZoCNNnQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/ansi-regex": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", "dev": true, + "license": "MIT", "engines": { "node": ">=12" }, @@ -964,6 +1052,7 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", "dev": true, + "license": "MIT", "engines": { "node": ">=12" }, @@ -975,13 +1064,15 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/anymatch": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, + "license": "ISC", "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -994,19 +1085,22 @@ "version": "5.0.2", "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/attr-accept": { "version": "2.2.5", "resolved": "https://registry.npmjs.org/attr-accept/-/attr-accept-2.2.5.tgz", "integrity": "sha512-0bDNnY/u6pPwHDMoF0FieU354oBi0a8rD9FcsLwzcGWbc8KS8KPIi7y+s13OlVY+gMWc/9xEMUgNE6Qm8ZllYQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -1030,6 +1124,7 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { "browserslist": "^4.23.3", "caniuse-lite": "^1.0.30001646", @@ -1053,6 +1148,7 @@ "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.8.tgz", "integrity": "sha512-Uu0wb7KNqK2t5K+YQyVCLM76prD5sRFjKHbJYCP1J7JFGEQ6nN7HWn9+04LAeiJ3ji54lgS/gZCH1oxyrf1SPw==", "dev": true, + "license": "MIT", "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", @@ -1063,13 +1159,15 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/binary-extensions": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" }, @@ -1082,6 +1180,7 @@ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", "dev": true, + "license": "MIT", "dependencies": { "balanced-match": "^1.0.0" } @@ -1091,6 +1190,7 @@ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, + "license": "MIT", "dependencies": { "fill-range": "^7.1.1" }, @@ -1117,6 +1217,7 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { "caniuse-lite": "^1.0.30001669", "electron-to-chromium": "^1.5.41", @@ -1135,6 +1236,7 @@ "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", "dev": true, + "license": "MIT", "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", @@ -1154,14 +1256,15 @@ "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", "dev": true, + "license": "MIT", "engines": { "node": ">= 6" } }, "node_modules/caniuse-lite": { - "version": "1.0.30001684", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001684.tgz", - "integrity": "sha512-G1LRwLIQjBQoyq0ZJGqGIJUXzJ8irpbjHLpVRXDvBEScFJ9b17sgK6vlx0GAJFE21okD7zXl08rRRUfq6HdoEQ==", + "version": "1.0.30001685", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001685.tgz", + "integrity": "sha512-e/kJN1EMyHQzgcMEEgoo+YTCO1NGCmIYHk5Qk8jT6AazWemS5QFKJ5ShCJlH3GZrNIdZofcNCEwZqbMjjKzmnA==", "dev": true, "funding": [ { @@ -1176,13 +1279,15 @@ "type": "github", "url": "https://github.com/sponsors/ai" } - ] + ], + "license": "CC-BY-4.0" }, "node_modules/chokidar": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", "dev": true, + "license": "MIT", "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", @@ -1207,6 +1312,7 @@ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, + "license": "ISC", "dependencies": { "is-glob": "^4.0.1" }, @@ -1219,6 +1325,7 @@ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, + "license": "MIT", "dependencies": { "color-name": "~1.1.4" }, @@ -1230,13 +1337,15 @@ "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "dev": true, + "license": "MIT", "dependencies": { "delayed-stream": "~1.0.0" }, @@ -1249,6 +1358,7 @@ "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", "dev": true, + "license": "MIT", "engines": { "node": ">= 6" } @@ -1258,6 +1368,7 @@ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, + "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -1272,6 +1383,7 @@ "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", "dev": true, + "license": "MIT", "bin": { "cssesc": "bin/cssesc" }, @@ -1283,19 +1395,22 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/dayjs": { "version": "1.11.13", "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz", "integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/deepmerge": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -1305,6 +1420,7 @@ "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", "dev": true, + "license": "MIT", "dependencies": { "es-define-property": "^1.0.0", "es-errors": "^1.3.0", @@ -1322,6 +1438,7 @@ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.4.0" } @@ -1330,37 +1447,43 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==", - "dev": true + "dev": true, + "license": "Apache-2.0" }, "node_modules/dlv": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/eastasianwidth": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/electron-to-chromium": { - "version": "1.5.67", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.67.tgz", - "integrity": "sha512-nz88NNBsD7kQSAGGJyp8hS6xSPtWwqNogA0mjtc2nUYeEf3nURK9qpV18TuBdDmEDgVWotS8Wkzf+V52dSQ/LQ==", - "dev": true + "version": "1.5.68", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.68.tgz", + "integrity": "sha512-FgMdJlma0OzUYlbrtZ4AeXjKxKPk6KT8WOP8BjcqxWtlg8qyJQjRzPJzUtUn5GBg1oQ26hFs7HOOHJMYiJRnvQ==", + "dev": true, + "license": "ISC" }, "node_modules/emoji-regex": { "version": "9.2.2", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/entities": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", "dev": true, + "license": "BSD-2-Clause", "engines": { "node": ">=0.12" }, @@ -1373,6 +1496,7 @@ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", "dev": true, + "license": "MIT", "dependencies": { "get-intrinsic": "^1.2.4" }, @@ -1385,46 +1509,49 @@ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" } }, "node_modules/esbuild": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", - "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.24.0.tgz", + "integrity": "sha512-FuLPevChGDshgSicjisSooU0cemp/sGXR841D5LHMB7mTVOmsEHcAxaH3irL53+8YDIeVNQEySh4DaYU/iuPqQ==", "dev": true, "hasInstallScript": true, + "license": "MIT", "bin": { "esbuild": "bin/esbuild" }, "engines": { - "node": ">=12" + "node": ">=18" }, "optionalDependencies": { - "@esbuild/aix-ppc64": "0.21.5", - "@esbuild/android-arm": "0.21.5", - "@esbuild/android-arm64": "0.21.5", - "@esbuild/android-x64": "0.21.5", - "@esbuild/darwin-arm64": "0.21.5", - "@esbuild/darwin-x64": "0.21.5", - "@esbuild/freebsd-arm64": "0.21.5", - "@esbuild/freebsd-x64": "0.21.5", - "@esbuild/linux-arm": "0.21.5", - "@esbuild/linux-arm64": "0.21.5", - "@esbuild/linux-ia32": "0.21.5", - "@esbuild/linux-loong64": "0.21.5", - "@esbuild/linux-mips64el": "0.21.5", - "@esbuild/linux-ppc64": "0.21.5", - "@esbuild/linux-riscv64": "0.21.5", - "@esbuild/linux-s390x": "0.21.5", - "@esbuild/linux-x64": "0.21.5", - "@esbuild/netbsd-x64": "0.21.5", - "@esbuild/openbsd-x64": "0.21.5", - "@esbuild/sunos-x64": "0.21.5", - "@esbuild/win32-arm64": "0.21.5", - "@esbuild/win32-ia32": "0.21.5", - "@esbuild/win32-x64": "0.21.5" + "@esbuild/aix-ppc64": "0.24.0", + "@esbuild/android-arm": "0.24.0", + "@esbuild/android-arm64": "0.24.0", + "@esbuild/android-x64": "0.24.0", + "@esbuild/darwin-arm64": "0.24.0", + "@esbuild/darwin-x64": "0.24.0", + "@esbuild/freebsd-arm64": "0.24.0", + "@esbuild/freebsd-x64": "0.24.0", + "@esbuild/linux-arm": "0.24.0", + "@esbuild/linux-arm64": "0.24.0", + "@esbuild/linux-ia32": "0.24.0", + "@esbuild/linux-loong64": "0.24.0", + "@esbuild/linux-mips64el": "0.24.0", + "@esbuild/linux-ppc64": "0.24.0", + "@esbuild/linux-riscv64": "0.24.0", + "@esbuild/linux-s390x": "0.24.0", + "@esbuild/linux-x64": "0.24.0", + "@esbuild/netbsd-x64": "0.24.0", + "@esbuild/openbsd-arm64": "0.24.0", + "@esbuild/openbsd-x64": "0.24.0", + "@esbuild/sunos-x64": "0.24.0", + "@esbuild/win32-arm64": "0.24.0", + "@esbuild/win32-ia32": "0.24.0", + "@esbuild/win32-x64": "0.24.0" } }, "node_modules/escalade": { @@ -1432,6 +1559,7 @@ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -1440,13 +1568,15 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/fast-glob": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", "dev": true, + "license": "MIT", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -1463,6 +1593,7 @@ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, + "license": "ISC", "dependencies": { "is-glob": "^4.0.1" }, @@ -1475,6 +1606,7 @@ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", "dev": true, + "license": "ISC", "dependencies": { "reusify": "^1.0.4" } @@ -1484,6 +1616,7 @@ "resolved": "https://registry.npmjs.org/file-selector/-/file-selector-0.2.4.tgz", "integrity": "sha512-ZDsQNbrv6qRi1YTDOEWzf5J2KjZ9KMI1Q2SGeTkCJmNNW25Jg4TW4UMcmoqcg4WrAyKRcpBXdbWRxkfrOzVRbA==", "dev": true, + "license": "MIT", "dependencies": { "tslib": "^2.0.3" }, @@ -1496,6 +1629,7 @@ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, + "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -1514,6 +1648,7 @@ "url": "https://github.com/sponsors/RubenVerborgh" } ], + "license": "MIT", "engines": { "node": ">=4.0" }, @@ -1528,6 +1663,7 @@ "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", "dev": true, + "license": "ISC", "dependencies": { "cross-spawn": "^7.0.0", "signal-exit": "^4.0.1" @@ -1544,6 +1680,7 @@ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz", "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", "dev": true, + "license": "MIT", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", @@ -1558,6 +1695,7 @@ "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz", "integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==", "dev": true, + "license": "MIT", "engines": { "node": "*" }, @@ -1572,6 +1710,7 @@ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, "hasInstallScript": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -1585,6 +1724,7 @@ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "dev": true, + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -1594,6 +1734,7 @@ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", "dev": true, + "license": "MIT", "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2", @@ -1613,6 +1754,7 @@ "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", "dev": true, + "license": "ISC", "dependencies": { "foreground-child": "^3.1.0", "jackspeak": "^3.1.2", @@ -1633,6 +1775,7 @@ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", "dev": true, + "license": "ISC", "dependencies": { "is-glob": "^4.0.3" }, @@ -1645,6 +1788,7 @@ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.1.0.tgz", "integrity": "sha512-FQoVQnqcdk4hVM4JN1eromaun4iuS34oStkdlLENLdpULsuQcTyXj8w7ayhuUfPwEYZ1ZOooOTT6fdA9Vmx/RA==", "dev": true, + "license": "MIT", "dependencies": { "get-intrinsic": "^1.2.4" }, @@ -1660,6 +1804,7 @@ "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", "dev": true, + "license": "MIT", "dependencies": { "es-define-property": "^1.0.0" }, @@ -1672,6 +1817,7 @@ "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.1.0.tgz", "integrity": "sha512-QLdzI9IIO1Jg7f9GT1gXpPpXArAn6cS31R1eEZqz08Gc+uQ8/XiqHWt17Fiw+2p6oTTIq5GXEpQkAlA88YRl/Q==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.7" }, @@ -1683,10 +1829,11 @@ } }, "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -1699,6 +1846,7 @@ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", "dev": true, + "license": "MIT", "dependencies": { "function-bind": "^1.1.2" }, @@ -1711,6 +1859,7 @@ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", "dev": true, + "license": "MIT", "dependencies": { "binary-extensions": "^2.0.0" }, @@ -1723,6 +1872,7 @@ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.1.tgz", "integrity": "sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==", "dev": true, + "license": "MIT", "dependencies": { "hasown": "^2.0.2" }, @@ -1738,6 +1888,7 @@ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -1747,6 +1898,7 @@ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -1756,6 +1908,7 @@ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, + "license": "MIT", "dependencies": { "is-extglob": "^2.1.1" }, @@ -1768,6 +1921,7 @@ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.12.0" } @@ -1776,13 +1930,15 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/jackspeak": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", "dev": true, + "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/cliui": "^8.0.2" }, @@ -1798,15 +1954,17 @@ "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.6.tgz", "integrity": "sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w==", "dev": true, + "license": "MIT", "bin": { "jiti": "bin/jiti.js" } }, "node_modules/laravel-vite-plugin": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/laravel-vite-plugin/-/laravel-vite-plugin-1.0.6.tgz", - "integrity": "sha512-B34OqmZc/rV1KvSjst8SsUm/LKHsuDusw8jiZCIhlnTHXbXnK89JUM9pTJuk6E/Vc/1DT2gX7qNfhipak1WS8w==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/laravel-vite-plugin/-/laravel-vite-plugin-1.1.0.tgz", + "integrity": "sha512-jo0PQGvAxbhUwNPEBKwNV8cS5kEsrCHPKrUtIBAuPrWODNCKcM4a/7dq2Hq4vzHaXdE7qOoasFs6GNQZecfZqw==", "dev": true, + "license": "MIT", "dependencies": { "picocolors": "^1.0.0", "vite-plugin-full-reload": "^1.1.0" @@ -1815,10 +1973,10 @@ "clean-orphaned-assets": "bin/clean.js" }, "engines": { - "node": "^18.0.0 || >=20.0.0" + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" }, "peerDependencies": { - "vite": "^5.0.0" + "vite": "^6.0.0" } }, "node_modules/lilconfig": { @@ -1826,6 +1984,7 @@ "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz", "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" } @@ -1834,31 +1993,36 @@ "version": "1.2.4", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.clonedeep": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", "integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.isequal": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lru-cache": { "version": "10.4.3", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/magic-string": { "version": "0.30.14", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.14.tgz", "integrity": "sha512-5c99P1WKTed11ZC0HMJOj6CDIue6F8ySu+bJL+85q1zBEIY8IklrJ1eiKC2NDRh3Ct3FcvmJPyQHb9erXMTJNw==", "dev": true, + "license": "MIT", "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0" } @@ -1868,6 +2032,7 @@ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 8" } @@ -1877,6 +2042,7 @@ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, + "license": "MIT", "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" @@ -1890,6 +2056,7 @@ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -1899,6 +2066,7 @@ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "dev": true, + "license": "MIT", "dependencies": { "mime-db": "1.52.0" }, @@ -1911,6 +2079,7 @@ "resolved": "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.4.4.tgz", "integrity": "sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==", "dev": true, + "license": "MIT", "bin": { "mini-svg-data-uri": "cli.js" } @@ -1920,6 +2089,7 @@ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", "dev": true, + "license": "ISC", "dependencies": { "brace-expansion": "^2.0.1" }, @@ -1935,6 +2105,7 @@ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", "dev": true, + "license": "ISC", "engines": { "node": ">=16 || 14 >=14.17" } @@ -1944,6 +2115,7 @@ "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", "dev": true, + "license": "MIT", "dependencies": { "any-promise": "^1.0.0", "object-assign": "^4.0.1", @@ -1961,6 +2133,7 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "bin": { "nanoid": "bin/nanoid.cjs" }, @@ -1972,13 +2145,15 @@ "version": "2.0.18", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.18.tgz", "integrity": "sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -1988,6 +2163,7 @@ "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -1996,13 +2172,15 @@ "version": "0.2.0", "resolved": "https://registry.npmjs.org/nprogress/-/nprogress-0.2.0.tgz", "integrity": "sha512-I19aIingLgR1fmhftnbWWO3dXc0hSxqHQHQb3H8m+K3TnEn/iSeTZZOyvKXWqQESMwuUVnatlCnZdLBZZt2VSA==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -2012,6 +2190,7 @@ "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", "dev": true, + "license": "MIT", "engines": { "node": ">= 6" } @@ -2021,6 +2200,7 @@ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.3.tgz", "integrity": "sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -2032,13 +2212,15 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", - "dev": true + "dev": true, + "license": "BlueOak-1.0.0" }, "node_modules/path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -2047,13 +2229,15 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/path-scurry": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", "dev": true, + "license": "BlueOak-1.0.0", "dependencies": { "lru-cache": "^10.2.0", "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" @@ -2069,13 +2253,15 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8.6" }, @@ -2088,6 +2274,7 @@ "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -2097,6 +2284,7 @@ "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", "dev": true, + "license": "MIT", "engines": { "node": ">= 6" } @@ -2120,6 +2308,7 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { "nanoid": "^3.3.7", "picocolors": "^1.1.1", @@ -2134,6 +2323,7 @@ "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", "dev": true, + "license": "MIT", "dependencies": { "postcss-value-parser": "^4.0.0", "read-cache": "^1.0.0", @@ -2151,6 +2341,7 @@ "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz", "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==", "dev": true, + "license": "MIT", "dependencies": { "camelcase-css": "^2.0.1" }, @@ -2180,6 +2371,7 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { "lilconfig": "^3.0.0", "yaml": "^2.3.4" @@ -2205,6 +2397,7 @@ "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.2.tgz", "integrity": "sha512-eop+wDAvpItUys0FWkHIKeC9ybYrTGbU41U5K7+bttZZeohvnY7M9dZ5kB21GNWiFT2q1OoPTvncPCgSOVO5ow==", "dev": true, + "license": "MIT", "engines": { "node": ">=14" }, @@ -2227,6 +2420,7 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { "postcss-selector-parser": "^6.1.1" }, @@ -2242,6 +2436,7 @@ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz", "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==", "dev": true, + "license": "MIT", "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" @@ -2254,19 +2449,22 @@ "version": "4.2.0", "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/proxy-from-env": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/qs": { "version": "6.13.1", "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.1.tgz", "integrity": "sha512-EJPeIn0CYrGu+hli1xilKAPXODtJ12T0sP63Ijx2/khC2JtuaN3JyNIpvmnkmaEtha9ocbG4A4cMcr+TvqvwQg==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "side-channel": "^1.0.6" }, @@ -2295,13 +2493,15 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT" }, "node_modules/read-cache": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==", "dev": true, + "license": "MIT", "dependencies": { "pify": "^2.3.0" } @@ -2311,6 +2511,7 @@ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", "dev": true, + "license": "MIT", "dependencies": { "picomatch": "^2.2.1" }, @@ -2323,6 +2524,7 @@ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", "dev": true, + "license": "MIT", "dependencies": { "is-core-module": "^2.13.0", "path-parse": "^1.0.7", @@ -2340,6 +2542,7 @@ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", "dev": true, + "license": "MIT", "engines": { "iojs": ">=1.0.0", "node": ">=0.10.0" @@ -2350,6 +2553,7 @@ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.28.0.tgz", "integrity": "sha512-G9GOrmgWHBma4YfCcX8PjH0qhXSdH8B4HDE2o4/jaxj93S4DPCIDoLcXz99eWMji4hB29UFCEd7B2gwGJDR9cQ==", "dev": true, + "license": "MIT", "dependencies": { "@types/estree": "1.0.6" }, @@ -2401,6 +2605,7 @@ "url": "https://feross.org/support" } ], + "license": "MIT", "dependencies": { "queue-microtask": "^1.2.2" } @@ -2410,6 +2615,7 @@ "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", "dev": true, + "license": "MIT", "dependencies": { "define-data-property": "^1.1.4", "es-errors": "^1.3.0", @@ -2427,6 +2633,7 @@ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, + "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" }, @@ -2439,6 +2646,7 @@ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -2448,6 +2656,7 @@ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", "dev": true, + "license": "MIT", "dependencies": { "call-bind": "^1.0.7", "es-errors": "^1.3.0", @@ -2466,6 +2675,7 @@ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", "dev": true, + "license": "ISC", "engines": { "node": ">=14" }, @@ -2478,6 +2688,7 @@ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } @@ -2487,6 +2698,7 @@ "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", "dev": true, + "license": "MIT", "dependencies": { "eastasianwidth": "^0.2.0", "emoji-regex": "^9.2.2", @@ -2505,6 +2717,7 @@ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, + "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -2519,6 +2732,7 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -2527,13 +2741,15 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/string-width-cjs/node_modules/strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -2546,6 +2762,7 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^6.0.1" }, @@ -2562,6 +2779,7 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -2574,6 +2792,7 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -2583,6 +2802,7 @@ "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.0.tgz", "integrity": "sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==", "dev": true, + "license": "MIT", "dependencies": { "@jridgewell/gen-mapping": "^0.3.2", "commander": "^4.0.0", @@ -2605,6 +2825,7 @@ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -2617,6 +2838,7 @@ "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-11.14.5.tgz", "integrity": "sha512-8MWk5uc/r6bWhiJWkUXyEuApfXAhSCZT8FFX7pZXL7YwaPxq+9Ynhi2dUzWkOFn9jvLjKj22CXuccZ+IHcnjvQ==", "dev": true, + "license": "MIT", "funding": { "type": "individual", "url": "https://github.com/sponsors/limonte" @@ -2627,6 +2849,7 @@ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.15.tgz", "integrity": "sha512-r4MeXnfBmSOuKUWmXe6h2CcyfzJCEk4F0pptO5jlnYSIViUkVmsawj80N5h2lO3gwcmSb4n3PuN+e+GC1Guylw==", "dev": true, + "license": "MIT", "dependencies": { "@alloc/quick-lru": "^5.2.0", "arg": "^5.0.2", @@ -2664,6 +2887,7 @@ "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", "dev": true, + "license": "MIT", "dependencies": { "any-promise": "^1.0.0" } @@ -2673,6 +2897,7 @@ "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", "dev": true, + "license": "MIT", "dependencies": { "thenify": ">= 3.1.0 < 4" }, @@ -2685,6 +2910,7 @@ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, + "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, @@ -2696,13 +2922,15 @@ "version": "0.1.13", "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", - "dev": true + "dev": true, + "license": "Apache-2.0" }, "node_modules/tslib": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", - "dev": true + "dev": true, + "license": "0BSD" }, "node_modules/update-browserslist-db": { "version": "1.1.1", @@ -2723,6 +2951,7 @@ "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { "escalade": "^3.2.0", "picocolors": "^1.1.0" @@ -2738,23 +2967,25 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/vite": { - "version": "5.4.11", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.11.tgz", - "integrity": "sha512-c7jFQRklXua0mTzneGW9QVyxFjUgwcihC4bXEtujIo2ouWCe1Ajt/amn2PCxYnhYfd5k09JX3SB7OYWFKYqj8Q==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/vite/-/vite-6.0.2.tgz", + "integrity": "sha512-XdQ+VsY2tJpBsKGs0wf3U/+azx8BBpYRHFAyKm5VeEZNOJZRB63q7Sc8Iup3k0TrN3KO6QgyzFf+opSbfY1y0g==", "dev": true, + "license": "MIT", "dependencies": { - "esbuild": "^0.21.3", - "postcss": "^8.4.43", - "rollup": "^4.20.0" + "esbuild": "^0.24.0", + "postcss": "^8.4.49", + "rollup": "^4.23.0" }, "bin": { "vite": "bin/vite.js" }, "engines": { - "node": "^18.0.0 || >=20.0.0" + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" }, "funding": { "url": "https://github.com/vitejs/vite?sponsor=1" @@ -2763,19 +2994,25 @@ "fsevents": "~2.3.3" }, "peerDependencies": { - "@types/node": "^18.0.0 || >=20.0.0", + "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", + "jiti": ">=1.21.0", "less": "*", "lightningcss": "^1.21.0", "sass": "*", "sass-embedded": "*", "stylus": "*", "sugarss": "*", - "terser": "^5.4.0" + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" }, "peerDependenciesMeta": { "@types/node": { "optional": true }, + "jiti": { + "optional": true + }, "less": { "optional": true }, @@ -2796,6 +3033,12 @@ }, "terser": { "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true } } }, @@ -2804,6 +3047,7 @@ "resolved": "https://registry.npmjs.org/vite-plugin-full-reload/-/vite-plugin-full-reload-1.2.0.tgz", "integrity": "sha512-kz18NW79x0IHbxRSHm0jttP4zoO9P9gXh+n6UTwlNKnviTTEpOlum6oS9SmecrTtSr+muHEn5TUuC75UovQzcA==", "dev": true, + "license": "MIT", "dependencies": { "picocolors": "^1.0.0", "picomatch": "^2.3.1" @@ -2814,6 +3058,7 @@ "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.13.tgz", "integrity": "sha512-wmeiSMxkZCSc+PM2w2VRsOYAZC8GdipNFRTsLSfodVqI9mbejKeXEGr8SckuLnrQPGe3oJN5c3K0vpoU9q/wCQ==", "dev": true, + "license": "MIT", "dependencies": { "@vue/compiler-dom": "3.5.13", "@vue/compiler-sfc": "3.5.13", @@ -2835,6 +3080,7 @@ "resolved": "https://registry.npmjs.org/vue3-dropzone/-/vue3-dropzone-2.2.1.tgz", "integrity": "sha512-TWV/BWTMHePoAcHVn+S5a+a69S1Hwkpdn1LlcBkzvesGZTBqL0TDnKuXWMrF+aWlPLVBUfRJO0uIy9+n2jkDxA==", "dev": true, + "license": "ISC", "dependencies": { "attr-accept": "^2.2.2", "file-selector": "^0.2.4" @@ -2848,6 +3094,7 @@ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, + "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -2863,6 +3110,7 @@ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", @@ -2881,6 +3129,7 @@ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -2898,6 +3147,7 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -2907,6 +3157,7 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, + "license": "MIT", "dependencies": { "color-convert": "^2.0.1" }, @@ -2921,13 +3172,15 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/wrap-ansi-cjs/node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, + "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -2942,6 +3195,7 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -2954,6 +3208,7 @@ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.6.1.tgz", "integrity": "sha512-7r0XPzioN/Q9kXBro/XPnA6kznR73DHq+GXh5ON7ZozRO6aMjbmiBuKste2wslTFkC5d1dw0GooOCepZXJ2SAg==", "dev": true, + "license": "ISC", "bin": { "yaml": "bin.mjs" }, diff --git a/package.json b/package.json index fc8e64fc..3dd1e271 100644 --- a/package.json +++ b/package.json @@ -12,11 +12,11 @@ "autoprefixer": "^10.4.12", "axios": "^1.6.4", "dayjs": "^1.11.12", - "laravel-vite-plugin": "^1.0", + "laravel-vite-plugin": "^1.1.0", "postcss": "^8.4.31", "sweetalert2": "^11.12.4", "tailwindcss": "^3.2.1", - "vite": "^5.0", + "vite": "^6.0.2", "vue": "^3.4.0", "vue3-dropzone": "^2.2.1" } diff --git a/public/build/assets/APIAccessToken-WeNERtHw.js b/public/build/assets/APIAccessToken-BxKNWUdy.js similarity index 84% rename from public/build/assets/APIAccessToken-WeNERtHw.js rename to public/build/assets/APIAccessToken-BxKNWUdy.js index 098f24eb..e0b5ab05 100644 --- a/public/build/assets/APIAccessToken-WeNERtHw.js +++ b/public/build/assets/APIAccessToken-BxKNWUdy.js @@ -1 +1 @@ -import{_ as h,S as y}from"./AuthenticatedLayout-BSBk4Waj.js";import{r as A,o as x,c as i,a as r,u as v,w as d,F as w,b as l,Z as g,d as t,t as a,e as n,i as T,f as u}from"./app-zpP4mvhd.js";import{_ as B}from"./AdminTopNavigation-CKquTKkz.js";import{d as c}from"./dayjs.min-C0_0pMrK.js";import{r as C}from"./relativeTime-__Y28WrV.js";import{l as N}from"./localizedFormat-DCfJHBMc.js";import{P}from"./PrimaryButton-6L6tESKC.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const F={class:"card"},L={class:"card"},V={class:"my-1"},$={key:0,class:"my-1"},I={class:"my-1"},S={key:1,class:"my-1"},j={key:2,class:"my-1"},E={class:"card"},R={key:0},q={class:"card"},Q={__name:"APIAccessToken",props:{id:{required:!0,type:Number}},setup(k){const p=k,s=A({});x(()=>{_()});function m(o){return c.extend(C),c.extend(N),c(o).fromNow()+" ("+c(o).format("LLL")+")"}function _(){axios.get("/admin/user-personal-access-tokens/"+p.id+"?cached=false&relations=user").then(o=>{s.value=o.data.data}).catch(o=>{console.log(o)})}function b(){y.fire({title:"Are you sure you want to delete this token?",text:"This action cannot be undone, and the user will no longer be able to use this token. Please confirm if you wish to proceed.",icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:"Revoke this token",showCancelButton:!0}).then(o=>{o.isConfirmed&&axios.delete("/admin/user-personal-access-tokens/"+p.id).then(e=>{window.location.href=route("admin.api-access-tokens")}).catch(e=>{console.log(e)})})}return(o,e)=>(l(),i(w,null,[r(v(g),{title:"API Access Token"}),r(h,null,{header:d(()=>[r(B)]),default:d(()=>[t("div",F,[t("h2",null,a(s.value.name)+" (#"+a(s.value.id)+") ",1)]),t("div",L,[e[6]||(e[6]=t("div",{class:"card-header"}," API Access Token details ",-1)),t("div",V,[e[1]||(e[1]=t("span",{class:"font-bold"}," Name: ",-1)),n(" "+a(s.value.name),1)]),s.value.tokenable_id?(l(),i("div",$,[e[2]||(e[2]=t("span",{class:"font-bold"}," Assigned To: ",-1)),r(v(T),{href:o.route("admin.user",{id:s.value.tokenable_id})},{default:d(()=>{var f;return[n(a((f=s.value.user)==null?void 0:f.name),1)]}),_:1},8,["href"])])):u("",!0),t("div",I,[e[3]||(e[3]=t("span",{class:"font-bold"}," Created: ",-1)),n(" "+a(m(s.value.created_at)),1)]),s.value.last_used_at?(l(),i("div",S,[e[4]||(e[4]=t("span",{class:"font-bold"}," Last used: ",-1)),n(" "+a(m(s.value.last_used_at)),1)])):u("",!0),s.value.expires_at?(l(),i("div",j,[e[5]||(e[5]=t("span",{class:"font-bold"}," Expires: ",-1)),n(" "+a(m(s.value.expires_at)),1)])):u("",!0)]),t("div",E,[e[7]||(e[7]=t("div",{class:"card-header"}," Abilities ",-1)),s.value.abilities&&s.value.abilities.length?(l(),i("div",R,a(s.value.abilities.join(", ")),1)):u("",!0)]),t("div",q,[r(P,{onClick:e[0]||(e[0]=f=>b())},{default:d(()=>e[8]||(e[8]=[n(" Revoke this token ")])),_:1})])]),_:1})],64))}};export{Q as default}; +import{_ as h,S as y}from"./AuthenticatedLayout-DuLcXyKk.js";import{r as A,o as x,c as i,a as r,u as v,w as d,F as w,b as l,Z as g,d as t,t as a,e as n,i as T,f as u}from"./app-DolNWhzr.js";import{_ as B}from"./AdminTopNavigation-Bl9ElpaD.js";import{d as c}from"./dayjs.min-ilzO22t1.js";import{r as C}from"./relativeTime-BTl_QCHW.js";import{l as N}from"./localizedFormat-r4JmUt9E.js";import{P}from"./PrimaryButton-BtqGl7rR.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const F={class:"card"},L={class:"card"},V={class:"my-1"},$={key:0,class:"my-1"},I={class:"my-1"},S={key:1,class:"my-1"},j={key:2,class:"my-1"},E={class:"card"},R={key:0},q={class:"card"},Q={__name:"APIAccessToken",props:{id:{required:!0,type:Number}},setup(k){const p=k,s=A({});x(()=>{_()});function m(o){return c.extend(C),c.extend(N),c(o).fromNow()+" ("+c(o).format("LLL")+")"}function _(){axios.get("/admin/user-personal-access-tokens/"+p.id+"?cached=false&relations=user").then(o=>{s.value=o.data.data}).catch(o=>{console.log(o)})}function b(){y.fire({title:"Are you sure you want to delete this token?",text:"This action cannot be undone, and the user will no longer be able to use this token. Please confirm if you wish to proceed.",icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:"Revoke this token",showCancelButton:!0}).then(o=>{o.isConfirmed&&axios.delete("/admin/user-personal-access-tokens/"+p.id).then(e=>{window.location.href=route("admin.api-access-tokens")}).catch(e=>{console.log(e)})})}return(o,e)=>(l(),i(w,null,[r(v(g),{title:"API Access Token"}),r(h,null,{header:d(()=>[r(B)]),default:d(()=>[t("div",F,[t("h2",null,a(s.value.name)+" (#"+a(s.value.id)+") ",1)]),t("div",L,[e[6]||(e[6]=t("div",{class:"card-header"}," API Access Token details ",-1)),t("div",V,[e[1]||(e[1]=t("span",{class:"font-bold"}," Name: ",-1)),n(" "+a(s.value.name),1)]),s.value.tokenable_id?(l(),i("div",$,[e[2]||(e[2]=t("span",{class:"font-bold"}," Assigned To: ",-1)),r(v(T),{href:o.route("admin.user",{id:s.value.tokenable_id})},{default:d(()=>{var f;return[n(a((f=s.value.user)==null?void 0:f.name),1)]}),_:1},8,["href"])])):u("",!0),t("div",I,[e[3]||(e[3]=t("span",{class:"font-bold"}," Created: ",-1)),n(" "+a(m(s.value.created_at)),1)]),s.value.last_used_at?(l(),i("div",S,[e[4]||(e[4]=t("span",{class:"font-bold"}," Last used: ",-1)),n(" "+a(m(s.value.last_used_at)),1)])):u("",!0),s.value.expires_at?(l(),i("div",j,[e[5]||(e[5]=t("span",{class:"font-bold"}," Expires: ",-1)),n(" "+a(m(s.value.expires_at)),1)])):u("",!0)]),t("div",E,[e[7]||(e[7]=t("div",{class:"card-header"}," Abilities ",-1)),s.value.abilities&&s.value.abilities.length?(l(),i("div",R,a(s.value.abilities.join(", ")),1)):u("",!0)]),t("div",q,[r(P,{onClick:e[0]||(e[0]=f=>b())},{default:d(()=>e[8]||(e[8]=[n(" Revoke this token ")])),_:1})])]),_:1})],64))}};export{Q as default}; diff --git a/public/build/assets/APIAccessTokens-BN8Itwfz.js b/public/build/assets/APIAccessTokens-C66OPdJ3.js similarity index 79% rename from public/build/assets/APIAccessTokens-BN8Itwfz.js rename to public/build/assets/APIAccessTokens-C66OPdJ3.js index fe4fc6fc..458bc7b4 100644 --- a/public/build/assets/APIAccessTokens-BN8Itwfz.js +++ b/public/build/assets/APIAccessTokens-C66OPdJ3.js @@ -1 +1 @@ -import{_}from"./AuthenticatedLayout-BSBk4Waj.js";import{r as f,o as h,c as n,a as r,u,w as c,F as m,b as o,Z as v,d as e,g,f as p,h as x,i as k,t as l,e as w}from"./app-zpP4mvhd.js";import{_ as y}from"./AdminTopNavigation-CKquTKkz.js";import{P as A}from"./PaginatorComponent-Dk-0OsjZ.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-6L6tESKC.js";import"./SecondaryButton-Dml8iKd5.js";const B={class:"card"},b={key:0},P={class:"border-b flex justify-between items-center py-2 sm:p-2"},T={class:"font-bold"},C={class:"text-xs opacity-25"},N={key:0,class:"text-sm"},V={class:"flex justify-end items-center mt-4"},j={class:"w-full lg:w-1/3"},Z={__name:"APIAccessTokens",setup(I){const t=f({});h(()=>{d()});function d(i=1){axios.get("/admin/user-personal-access-tokens?cached=false&page="+i+"&relations=user&orderBy=id,desc").then(s=>{t.value=s.data.data}).catch(s=>{console.log(s)})}return(i,s)=>(o(),n(m,null,[r(u(v),{title:"API Access Tokens"}),r(_,null,{header:c(()=>[r(y)]),default:c(()=>[e("div",B,[t.value.data&&t.value.data.length?(o(),n("div",b,[(o(!0),n(m,null,g(t.value.data,a=>(o(),x(u(k),{href:i.route("admin.api-access-token",a.id),class:"hover:no-underline hover:opacity-75"},{default:c(()=>[e("div",P,[e("div",null,[e("div",T,[e("span",C," #"+l(a.id),1),w(" "+l(a.name),1)]),a.user?(o(),n("div",N," Issued to: "+l(a.user.name),1)):p("",!0)]),s[0]||(s[0]=e("div",{class:"text-2xl"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256))])):p("",!0),e("div",V,[e("div",j,[r(A,{onSetDataPage:d,"pagination-data":t.value},null,8,["pagination-data"])])])])]),_:1})],64))}};export{Z as default}; +import{_}from"./AuthenticatedLayout-DuLcXyKk.js";import{r as f,o as h,c as n,a as r,u,w as c,F as m,b as o,Z as v,d as e,g,f as p,h as x,i as k,t as l,e as w}from"./app-DolNWhzr.js";import{_ as y}from"./AdminTopNavigation-Bl9ElpaD.js";import{P as A}from"./PaginatorComponent-DpqX95xS.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./SecondaryButton-DL_I_H3U.js";const B={class:"card"},b={key:0},P={class:"border-b flex justify-between items-center py-2 sm:p-2"},T={class:"font-bold"},C={class:"text-xs opacity-25"},N={key:0,class:"text-sm"},V={class:"flex justify-end items-center mt-4"},j={class:"w-full lg:w-1/3"},Z={__name:"APIAccessTokens",setup(I){const t=f({});h(()=>{d()});function d(i=1){axios.get("/admin/user-personal-access-tokens?cached=false&page="+i+"&relations=user&orderBy=id,desc").then(s=>{t.value=s.data.data}).catch(s=>{console.log(s)})}return(i,s)=>(o(),n(m,null,[r(u(v),{title:"API Access Tokens"}),r(_,null,{header:c(()=>[r(y)]),default:c(()=>[e("div",B,[t.value.data&&t.value.data.length?(o(),n("div",b,[(o(!0),n(m,null,g(t.value.data,a=>(o(),x(u(k),{href:i.route("admin.api-access-token",a.id),class:"hover:no-underline hover:opacity-75"},{default:c(()=>[e("div",P,[e("div",null,[e("div",T,[e("span",C," #"+l(a.id),1),w(" "+l(a.name),1)]),a.user?(o(),n("div",N," Issued to: "+l(a.user.name),1)):p("",!0)]),s[0]||(s[0]=e("div",{class:"text-2xl"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256))])):p("",!0),e("div",V,[e("div",j,[r(A,{onSetDataPage:d,"pagination-data":t.value},null,8,["pagination-data"])])])])]),_:1})],64))}};export{Z as default}; diff --git a/public/build/assets/AdminHome-BDzN-pu4.js b/public/build/assets/AdminHome-DAyF3eY4.js similarity index 87% rename from public/build/assets/AdminHome-BDzN-pu4.js rename to public/build/assets/AdminHome-DAyF3eY4.js index d6c86367..04a0a71b 100644 --- a/public/build/assets/AdminHome-BDzN-pu4.js +++ b/public/build/assets/AdminHome-DAyF3eY4.js @@ -1 +1 @@ -import{S as p,_ as g}from"./AuthenticatedLayout-BSBk4Waj.js";import{r as m,b as c,c as v,a as t,d as e,w as l,u as r,i as n,t as u,F as y,Z as w}from"./app-zpP4mvhd.js";import{_ as S}from"./AdminTopNavigation-CKquTKkz.js";import{_ as d}from"./SecondaryButton-Dml8iKd5.js";import{_ as $}from"./AjaxLoadingIndicator-R8NM17UH.js";import{_ as j}from"./AuditItemsComponent-a90oNwdn.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-6L6tESKC.js";import"./dayjs.min-C0_0pMrK.js";const V={class:"card"},b={class:"grid grid-cols-2 lg:grid-cols-4 gap-4"},B={class:"w-full"},N={class:"flex justify-center text-3xl"},D={class:"w-full"},F={class:"flex justify-center text-3xl"},R={class:"w-full"},k={class:"flex justify-center text-3xl"},C={class:"w-full"},O={class:"flex justify-center text-3xl"},A={class:"w-full"},E={class:"flex justify-center text-3xl"},H={class:"w-full"},I={class:"flex justify-center text-3xl"},T={class:"w-full"},U={class:"flex justify-center text-3xl"},Z={class:"w-full"},q={class:"flex justify-center text-3xl"},z={__name:"SystemStatisticsComponent",setup(h){const _=m(!1),o=m({num_users:0,num_teams:0,num_voucher_sets:0,num_vouchers:0,num_voucher_redemptions:0,sum_voucher_value_total:0,sum_voucher_value_redeemed:0,sum_voucher_value_remaining:0});function x(){_.value=!0,axios.get("/admin/system-statistics?cached=false&limit=1&orderBy=id,desc").then(a=>{var s,f;(s=a.data.data)!=null&&s.data[0]&&(o.value=(f=a.data.data)==null?void 0:f.data[0]),_.value=!1}).catch(a=>{p.fire({icon:"error",title:"Oops!",text:a.response.data.meta.message}),_.value=!1})}function i(a){return Intl.NumberFormat("en",{notation:"compact"}).format(a)}return x(),(a,s)=>(c(),v("div",V,[t($,{loading:_.value},null,8,["loading"]),e("div",b,[t(d,null,{default:l(()=>[e("div",B,[t(r(n),{href:a.route("admin.users"),class:"hover:no-underline"},{default:l(()=>[e("div",N,u(i(o.value.num_users)),1),s[0]||(s[0]=e("div",{class:"text-xs"}," # Users ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",D,[t(r(n),{href:a.route("admin.teams"),class:"hover:no-underline"},{default:l(()=>[e("div",F,u(i(o.value.num_teams)),1),s[1]||(s[1]=e("div",{class:"text-xs"}," # Teams ",-1))]),_:1},8,["href"])])]),_:1}),s[8]||(s[8]=e("div",{class:"hidden lg:inline"},null,-1)),s[9]||(s[9]=e("div",{class:"hidden lg:inline"},null,-1)),t(d,null,{default:l(()=>[e("div",R,[t(r(n),{href:a.route("admin.voucher-sets"),class:"hover:no-underline"},{default:l(()=>[e("div",k,u(i(o.value.num_voucher_sets)),1),s[2]||(s[2]=e("div",{class:"text-xs"}," # Voucher Sets ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",C,[t(r(n),{href:a.route("admin.vouchers"),class:"hover:no-underline"},{default:l(()=>[e("div",O,u(i(o.value.num_vouchers)),1),s[3]||(s[3]=e("div",{class:"text-xs"}," # Vouchers ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",A,[t(r(n),{href:a.route("admin.vouchers"),class:"hover:no-underline"},{default:l(()=>[e("div",E,u(i(o.value.sum_voucher_value_total)),1),s[4]||(s[4]=e("div",{class:"text-xs"}," $ Voucher (Original) ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",H,[t(r(n),{href:a.route("admin.vouchers"),class:"hover:no-underline"},{default:l(()=>[e("div",I,u(i(o.value.sum_voucher_value_remaining)),1),s[5]||(s[5]=e("div",{class:"text-xs"}," $ Vouchers Remaining ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",T,[t(r(n),{href:a.route("admin.voucher-redemptions"),class:"hover:no-underline"},{default:l(()=>[e("div",U,u(i(o.value.num_voucher_redemptions)),1),s[6]||(s[6]=e("div",{class:"text-xs"}," # Redemptions ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",Z,[t(r(n),{href:a.route("admin.voucher-redemptions"),class:"hover:no-underline"},{default:l(()=>[e("div",q,u(i(o.value.sum_voucher_value_redeemed)),1),s[7]||(s[7]=e("div",{class:"text-xs"}," $ Redemptions ",-1))]),_:1},8,["href"])])]),_:1})])]))}},ee={__name:"AdminHome",setup(h){return(_,o)=>(c(),v(y,null,[t(r(w),{title:"Dashboard"}),t(g,null,{header:l(()=>[t(S)]),default:l(()=>[t(z),t(j,{"is-admin":!0})]),_:1})],64))}};export{ee as default}; +import{S as p,_ as g}from"./AuthenticatedLayout-DuLcXyKk.js";import{r as m,b as c,c as v,a as t,d as e,w as l,u as r,i as n,t as u,F as y,Z as w}from"./app-DolNWhzr.js";import{_ as S}from"./AdminTopNavigation-Bl9ElpaD.js";import{_ as d}from"./SecondaryButton-DL_I_H3U.js";import{_ as $}from"./AjaxLoadingIndicator-DnIg5N8b.js";import{_ as j}from"./AuditItemsComponent-C0ljhUTP.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./dayjs.min-ilzO22t1.js";const V={class:"card"},b={class:"grid grid-cols-2 lg:grid-cols-4 gap-4"},B={class:"w-full"},N={class:"flex justify-center text-3xl"},D={class:"w-full"},F={class:"flex justify-center text-3xl"},R={class:"w-full"},k={class:"flex justify-center text-3xl"},C={class:"w-full"},O={class:"flex justify-center text-3xl"},A={class:"w-full"},E={class:"flex justify-center text-3xl"},H={class:"w-full"},I={class:"flex justify-center text-3xl"},T={class:"w-full"},U={class:"flex justify-center text-3xl"},Z={class:"w-full"},q={class:"flex justify-center text-3xl"},z={__name:"SystemStatisticsComponent",setup(h){const _=m(!1),o=m({num_users:0,num_teams:0,num_voucher_sets:0,num_vouchers:0,num_voucher_redemptions:0,sum_voucher_value_total:0,sum_voucher_value_redeemed:0,sum_voucher_value_remaining:0});function x(){_.value=!0,axios.get("/admin/system-statistics?cached=false&limit=1&orderBy=id,desc").then(a=>{var s,f;(s=a.data.data)!=null&&s.data[0]&&(o.value=(f=a.data.data)==null?void 0:f.data[0]),_.value=!1}).catch(a=>{p.fire({icon:"error",title:"Oops!",text:a.response.data.meta.message}),_.value=!1})}function i(a){return Intl.NumberFormat("en",{notation:"compact"}).format(a)}return x(),(a,s)=>(c(),v("div",V,[t($,{loading:_.value},null,8,["loading"]),e("div",b,[t(d,null,{default:l(()=>[e("div",B,[t(r(n),{href:a.route("admin.users"),class:"hover:no-underline"},{default:l(()=>[e("div",N,u(i(o.value.num_users)),1),s[0]||(s[0]=e("div",{class:"text-xs"}," # Users ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",D,[t(r(n),{href:a.route("admin.teams"),class:"hover:no-underline"},{default:l(()=>[e("div",F,u(i(o.value.num_teams)),1),s[1]||(s[1]=e("div",{class:"text-xs"}," # Teams ",-1))]),_:1},8,["href"])])]),_:1}),s[8]||(s[8]=e("div",{class:"hidden lg:inline"},null,-1)),s[9]||(s[9]=e("div",{class:"hidden lg:inline"},null,-1)),t(d,null,{default:l(()=>[e("div",R,[t(r(n),{href:a.route("admin.voucher-sets"),class:"hover:no-underline"},{default:l(()=>[e("div",k,u(i(o.value.num_voucher_sets)),1),s[2]||(s[2]=e("div",{class:"text-xs"}," # Voucher Sets ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",C,[t(r(n),{href:a.route("admin.vouchers"),class:"hover:no-underline"},{default:l(()=>[e("div",O,u(i(o.value.num_vouchers)),1),s[3]||(s[3]=e("div",{class:"text-xs"}," # Vouchers ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",A,[t(r(n),{href:a.route("admin.vouchers"),class:"hover:no-underline"},{default:l(()=>[e("div",E,u(i(o.value.sum_voucher_value_total)),1),s[4]||(s[4]=e("div",{class:"text-xs"}," $ Voucher (Original) ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",H,[t(r(n),{href:a.route("admin.vouchers"),class:"hover:no-underline"},{default:l(()=>[e("div",I,u(i(o.value.sum_voucher_value_remaining)),1),s[5]||(s[5]=e("div",{class:"text-xs"}," $ Vouchers Remaining ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",T,[t(r(n),{href:a.route("admin.voucher-redemptions"),class:"hover:no-underline"},{default:l(()=>[e("div",U,u(i(o.value.num_voucher_redemptions)),1),s[6]||(s[6]=e("div",{class:"text-xs"}," # Redemptions ",-1))]),_:1},8,["href"])])]),_:1}),t(d,null,{default:l(()=>[e("div",Z,[t(r(n),{href:a.route("admin.voucher-redemptions"),class:"hover:no-underline"},{default:l(()=>[e("div",q,u(i(o.value.sum_voucher_value_redeemed)),1),s[7]||(s[7]=e("div",{class:"text-xs"}," $ Redemptions ",-1))]),_:1},8,["href"])])]),_:1})])]))}},ee={__name:"AdminHome",setup(h){return(_,o)=>(c(),v(y,null,[t(r(w),{title:"Dashboard"}),t(g,null,{header:l(()=>[t(S)]),default:l(()=>[t(z),t(j,{"is-admin":!0})]),_:1})],64))}};export{ee as default}; diff --git a/public/build/assets/AdminTeamCreateComponent-C5RZWvlc.js b/public/build/assets/AdminTeamCreateComponent--ZqK8uaD.js similarity index 87% rename from public/build/assets/AdminTeamCreateComponent-C5RZWvlc.js rename to public/build/assets/AdminTeamCreateComponent--ZqK8uaD.js index 8f4cbe4b..c362111f 100644 --- a/public/build/assets/AdminTeamCreateComponent-C5RZWvlc.js +++ b/public/build/assets/AdminTeamCreateComponent--ZqK8uaD.js @@ -1 +1 @@ -import{r as u,o as b,b as l,c as n,d as o,e as r,a as d,l as x,v as S,F as w,g as C,t as g,w as k,n as V,k as N}from"./app-zpP4mvhd.js";import{_ as B}from"./TextInput-BGBBA2nL.js";import{P as T}from"./PrimaryButton-6L6tESKC.js";import{S as c}from"./AuthenticatedLayout-BSBk4Waj.js";const h={class:"flex justify-start items-center mt-4"},j={class:"w-full font-bold",for:"name"},M={class:"flex justify-start items-center mt-4"},$={class:"w-full font-bold",for:"country"},D=["value"],F={class:"flex items-center justify-end mt-4"},E={__name:"AdminTeamCreateComponent",props:{searchStr:{default:null}},emits:["teamCreated"],setup(f,{emit:v}){const i=f,m=u({}),t=u({name:"",country_id:""}),p=v;b(()=>{i.searchStr!==null&&(t.value.name=i.searchStr),_()});function y(){axios.post("/admin/teams",t.value).then(a=>{c.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{let e=a.data.data;p("teamCreated",e),e.value={}})}).catch(a=>{c.fire({icon:"error",title:"Oops!",text:a.response.data.message})})}function _(){axios.get("/countries?limit=300").then(a=>{m.value=a.data.data}).catch(a=>{console.log(a)})}return(a,e)=>(l(),n("form",{onSubmit:e[3]||(e[3]=N(s=>y(),["prevent"]))},[o("div",null,[o("div",h,[o("label",j,[e[4]||(e[4]=r(" Team Name: ")),d(B,{id:"name",modelValue:t.value.name,"onUpdate:modelValue":e[0]||(e[0]=s=>t.value.name=s),class:"mt-1 block w-full font-normal",type:"text"},null,8,["modelValue"])])]),o("div",M,[o("label",$,[e[6]||(e[6]=r(" Country: ")),x(o("select",{id:"country","onUpdate:modelValue":e[1]||(e[1]=s=>t.value.country_id=s),class:"mt-1 block w-full font-normal"},[e[5]||(e[5]=o("option",{value:""},"Select a country",-1)),(l(!0),n(w,null,C(m.value.data,s=>(l(),n("option",{key:s.id,value:s.id},g(s.name),9,D))),128))],512),[[S,t.value.country_id]])])])]),o("div",F,[d(T,{class:V([{"opacity-25":!t.value.name||!t.value.country_id},"ms-4 hover:cursor-pointer"]),disabled:!t.value.name||!t.value.country_id,onClick:e[2]||(e[2]=()=>{})},{default:k(()=>e[7]||(e[7]=[r(" Submit ")])),_:1},8,["class","disabled"])])],32))}};export{E as _}; +import{r as u,o as b,b as l,c as n,d as o,e as r,a as d,l as x,v as S,F as w,g as C,t as g,w as k,n as V,k as N}from"./app-DolNWhzr.js";import{_ as B}from"./TextInput-C41DJZHw.js";import{P as T}from"./PrimaryButton-BtqGl7rR.js";import{S as c}from"./AuthenticatedLayout-DuLcXyKk.js";const h={class:"flex justify-start items-center mt-4"},j={class:"w-full font-bold",for:"name"},M={class:"flex justify-start items-center mt-4"},$={class:"w-full font-bold",for:"country"},D=["value"],F={class:"flex items-center justify-end mt-4"},E={__name:"AdminTeamCreateComponent",props:{searchStr:{default:null}},emits:["teamCreated"],setup(f,{emit:v}){const i=f,m=u({}),t=u({name:"",country_id:""}),p=v;b(()=>{i.searchStr!==null&&(t.value.name=i.searchStr),_()});function y(){axios.post("/admin/teams",t.value).then(a=>{c.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{let e=a.data.data;p("teamCreated",e),e.value={}})}).catch(a=>{c.fire({icon:"error",title:"Oops!",text:a.response.data.message})})}function _(){axios.get("/countries?limit=300").then(a=>{m.value=a.data.data}).catch(a=>{console.log(a)})}return(a,e)=>(l(),n("form",{onSubmit:e[3]||(e[3]=N(s=>y(),["prevent"]))},[o("div",null,[o("div",h,[o("label",j,[e[4]||(e[4]=r(" Team Name: ")),d(B,{id:"name",modelValue:t.value.name,"onUpdate:modelValue":e[0]||(e[0]=s=>t.value.name=s),class:"mt-1 block w-full font-normal",type:"text"},null,8,["modelValue"])])]),o("div",M,[o("label",$,[e[6]||(e[6]=r(" Country: ")),x(o("select",{id:"country","onUpdate:modelValue":e[1]||(e[1]=s=>t.value.country_id=s),class:"mt-1 block w-full font-normal"},[e[5]||(e[5]=o("option",{value:""},"Select a country",-1)),(l(!0),n(w,null,C(m.value.data,s=>(l(),n("option",{key:s.id,value:s.id},g(s.name),9,D))),128))],512),[[S,t.value.country_id]])])])]),o("div",F,[d(T,{class:V([{"opacity-25":!t.value.name||!t.value.country_id},"ms-4 hover:cursor-pointer"]),disabled:!t.value.name||!t.value.country_id,onClick:e[2]||(e[2]=()=>{})},{default:k(()=>e[7]||(e[7]=[r(" Submit ")])),_:1},8,["class","disabled"])])],32))}};export{E as _}; diff --git a/public/build/assets/AdminTeamVoucherTemplateEditComponent-D8-25Xe9.js b/public/build/assets/AdminTeamVoucherTemplateEditComponent-D8-25Xe9.js deleted file mode 100644 index 1d2e8127..00000000 --- a/public/build/assets/AdminTeamVoucherTemplateEditComponent-D8-25Xe9.js +++ /dev/null @@ -1 +0,0 @@ -import{r as V,p as je,x as Re,o as xe,y as Ue,z as Q,A as $e,b as x,c as D,d as s,B as fe,C as ce,f as R,a as g,F as Be,g as Me,w as _,e as b,t as J,u as Ne,i as qe,k as ne,l as F,q as k,n as ve}from"./app-zpP4mvhd.js";import{_ as We}from"./TextInput-BGBBA2nL.js";import{_ as w}from"./InputLabel-D6wY3cNc.js";import{P as Ye}from"./PrimaryButton-6L6tESKC.js";import{S as ee}from"./AuthenticatedLayout-BSBk4Waj.js";import{_ as Ge}from"./SecondaryButton-Dml8iKd5.js";import{D as pe}from"./DangerButton-cN2oNBEm.js";import{_ as He}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{_ as Ke}from"./Checkbox-wBCZrcZW.js";function q(t,r,e,i){function a(n){return n instanceof e?n:new e(function(f){f(n)})}return new(e||(e=Promise))(function(n,f){function p(c){try{l(i.next(c))}catch(m){f(m)}}function h(c){try{l(i.throw(c))}catch(m){f(m)}}function l(c){c.done?n(c.value):a(c.value).then(p,h)}l((i=i.apply(t,r||[])).next())})}function W(t,r){var e={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,f=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return f.next=p(0),f.throw=p(1),f.return=p(2),typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function p(l){return function(c){return h([l,c])}}function h(l){if(i)throw new TypeError("Generator is already executing.");for(;f&&(f=0,l[0]&&(e=0)),e;)try{if(i=1,a&&(n=l[0]&2?a.return:l[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,l[1])).done)return n;switch(a=0,n&&(l=[l[0]&2,n.value]),l[0]){case 0:case 1:n=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,a=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(n=e.trys,!(n=n.length>0&&n[n.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]0)&&!(a=i.next()).done;)n.push(a.value)}catch(p){f={error:p}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(f)throw f.error}}return n}function Qe(){for(var t=[],r=0;r0?i:t.name,writable:!1,configurable:!1,enumerable:!0})}return e}function Ze(t){var r=t.name,e=r&&r.lastIndexOf(".")!==-1;if(e&&!t.type){var i=r.split(".").pop().toLowerCase(),a=Je.get(i);a&&Object.defineProperty(t,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return t}var et=[".DS_Store","Thumbs.db"];function tt(t){return q(this,void 0,void 0,function(){return W(this,function(r){return[2,rt(t)&&t.dataTransfer?at(t.dataTransfer,t.type):nt(t)]})})}function rt(t){return!!t.dataTransfer}function nt(t){var r=ot(t.target)?t.target.files?oe(t.target.files):[]:[];return r.map(function(e){return re(e)})}function ot(t){return t!==null}function at(t,r){return q(this,void 0,void 0,function(){var e,i;return W(this,function(a){switch(a.label){case 0:return t.items?(e=oe(t.items).filter(function(n){return n.kind==="file"}),r!=="drop"?[2,e]:[4,Promise.all(e.map(it))]):[3,2];case 1:return i=a.sent(),[2,me(De(i))];case 2:return[2,me(oe(t.files).map(function(n){return re(n)}))]}})})}function me(t){return t.filter(function(r){return et.indexOf(r.name)===-1})}function oe(t){for(var r=[],e=0;e0&&n[n.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]e)return[!1,_e(e)];if(t.sizee)return[!1,_e(e)]}return[!0,null]}function L(){for(var t=[],r=0;r1||n&&f>=1&&r.length>f?!1:r.every(function(p){var h=Fe(p,e)[0],l=ke(p,i,a)[0];return h&&l})}var wt={disabled:!1,getFilesFromEvent:tt,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1};function Et(t){t===void 0&&(t={});var r=V(P(P({},wt),t));je(function(){return P({},t)},function(u){r.value=P(P({},r.value),u)});var e=V(),i=V(),a=Re({isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]}),n=function(){i.value&&(a.isFileDialogActive=!0,i.value.value="",i.value.click())},f=function(){var u=r.value.onFileDialogCancel;a.isFileDialogActive&&setTimeout(function(){if(i.value){var v=i.value.files;v&&!v.length&&(a.isFileDialogActive=!1,typeof u=="function"&&u())}},300)};function p(){a.isFocused=!0}function h(){a.isFocused=!1}function l(){var u=r.value.noClick;u||(vt()?setTimeout(n,0):n())}var c=V([]),m=function(u){if(e.value){var v=e.value.$el||e.value;v.contains(u.target)||(u.preventDefault(),c.value=[])}};xe(function(){window.addEventListener("focus",f,!1);var u=r.value.preventDropOnDocument;u&&(document.addEventListener("dragover",ye,!1),document.addEventListener("drop",m,!1))}),Ue(function(){window.removeEventListener("focus",f,!1);var u=r.value.preventDropOnDocument;u&&(document.removeEventListener("dragover",ye),document.removeEventListener("drop",m))});function E(u){var v=r.value.noDragEventsBubbling;v&&u.stopPropagation()}function U(u){return st(this,void 0,void 0,function(){var v,S,O,T,A;return dt(this,function(j){switch(j.label){case 0:return v=r.value,S=v.getFilesFromEvent,O=v.noDragEventsBubbling,T=v.onDragEnter,u.preventDefault(),E(u),c.value=ae(ae([],c.value,!0),[u.target],!1),Z(u)?S?[4,S(u)]:[2]:[3,2];case 1:if(A=j.sent(),A||(A=[]),te(u)&&!O)return[2];a.draggedFiles=A,a.isDragActive=!0,T&&T(u),j.label=2;case 2:return[2]}})})}function y(u){var v=r.value.onDragOver;if(u.preventDefault(),E(u),u.dataTransfer)try{u.dataTransfer.dropEffect="copy"}catch{}return Z(u)&&v&&v(u),!1}function o(u){u.preventDefault(),E(u);var v=c.value.filter(function(T){if(!e.value)return!1;var A=e.value.$el||e.value;return A.contains(T)}),S=v.indexOf(u.target);if(S!==-1&&v.splice(S,1),c.value=v,!(v.length>0)){a.draggedFiles=[],a.isDragActive=!1;var O=r.value.onDragLeave;Z(u)&&O&&O(u)}}function C(u){u.preventDefault(),E(u),c.value=[];var v=r.value,S=v.getFilesFromEvent,O=v.noDragEventsBubbling,T=v.accept,A=v.minSize,j=v.maxSize,Y=v.multiple,G=v.maxFiles,H=v.onDrop,K=v.onDropRejected,X=v.onDropAccepted;if(Z(u)){if(!S)return;Promise.resolve(S(u)).then(function(Oe){if(!(te(u)&&!O)){var z=[],$=[];Oe.forEach(function(B){var se=Fe(B,T),Te=se[0],Ae=se[1],de=ke(B,A,j),Ie=de[0],ze=de[1];if(Te&&Ie)z.push(B);else{var Le=[Ae,ze].filter(function(Ve){return Ve});$.push({file:B,errors:Le})}}),(!Y&&z.length>1||Y&&G>=1&&z.length>G)&&(z.forEach(function(B){$.push({file:B,errors:[yt]})}),z.splice(0)),a.acceptedFiles=z,a.fileRejections=$,H&&H(z,$,u),$.length>0&&K&&K($,u),z.length>0&&X&&X(z,u)}})}a.isFileDialogActive=!1,a.isDragActive=!1,a.draggedFiles=[],a.acceptedFiles=[],a.fileRejections=[]}var I=function(u){return r.value.disabled?void 0:u},M=function(u){return r.value.noKeyboard?void 0:I(u)},d=function(u){return r.value.noDrag?void 0:I(u)},ie=function(u){u===void 0&&(u={});var v=u.onFocus,S=u.onBlur,O=u.onClick,T=u.onDragEnter,A=u.onDragenter,j=u.onDragOver,Y=u.onDragover,G=u.onDragLeave,H=u.onDragleave,K=u.onDrop,X=he(u,["onFocus","onBlur","onClick","onDragEnter","onDragenter","onDragOver","onDragover","onDragLeave","onDragleave","onDrop"]);return P(P({onFocus:M(L(v,p)),onBlur:M(L(S,h)),onClick:I(L(O,l)),onDragenter:d(L(T,A,U)),onDragover:d(L(j,Y,y)),onDragleave:d(L(G,H,o)),onDrop:d(L(K,C)),ref:e},!r.value.disabled&&!r.value.noKeyboard?{tabIndex:0}:{}),X)},Ce=function(u){u.stopPropagation()};function Se(u){u===void 0&&(u={});var v=u.onChange,S=u.onClick,O=he(u,["onChange","onClick"]),T={accept:r.value.accept,multiple:r.value.multiple,style:"display: none",type:"file",onChange:I(L(v,C)),onClick:I(L(S,Ce)),autoComplete:"off",tabIndex:-1,ref:i};return P(P({},T),O)}var le=Q(function(){return a.draggedFiles?a.draggedFiles.length:0}),ue=Q(function(){return le.value>0&&Dt({files:a.draggedFiles,accept:r.value.accept,minSize:r.value.minSize,maxSize:r.value.maxSize,multiple:r.value.multiple,maxFiles:r.value.maxFiles})}),Pe=Q(function(){return le.value>0&&!ue.value});return P(P({},$e(a)),{isDragAccept:ue,isDragReject:Pe,isFocused:Q(function(){return a.isFocused&&!r.value.disabled}),getRootProps:ie,getInputProps:Se,rootRef:e,inputRef:i,open:I(n)})}const Ft={props:{folder:{type:String,required:!0},visibility:{type:String,default:null},allowedFileTypes:String,uploadSuccessFunction:Function},setup(t,r){const e=h=>{let l={folder:t.folder,files:[],visibility:"public"};const c=new FormData;for(var m=0;m{E.data.data&&r.emit("filesWereUploaded",E.data.data)}).catch(function(E){console.log(E),ee.fire({icon:"error",title:"Oops!",text:E.response.data.meta.message})})};function i(h,l){var c,m,E,U;(m=(c=l[0])==null?void 0:c.errors[0])!=null&&m.message?ee.fire({icon:"error",title:"Oops!",text:(U=(E=l[0])==null?void 0:E.errors[0])==null?void 0:U.message}):e(h)}let a={onDrop:i,maxFiles:1,accept:t.allowedFileTypes,multiple:0};const{getRootProps:n,getInputProps:f,...p}=Et(a);return{getRootProps:n,getInputProps:f,...p}}},kt={class:"border bg-gray-100 rounded p-8 text-center cursor-pointer hover:border-2 hover:border-dashed"},Ct={key:0},St={key:1};function Pt(t,r,e,i,a,n){return x(),D("div",null,[s("div",fe(ce(i.getRootProps())),[s("input",fe(ce(i.getInputProps())),null,16),s("div",kt,[t.isDragActive?(x(),D("p",Ct,"Drop the file here ...")):(x(),D("p",St,"Drag 'n' drop a files here, or click to select files"))])],16)])}const Ot=He(Ft,[["render",Pt]]),Tt={class:"flex flex-wrap justify-between container mx-auto"},At={class:"card-header flex justify-between items-center"},It={class:"text-lg font-bold flex justify-start items-center"},zt={key:0},Lt={key:1},Vt={key:0},jt={key:0},Rt={class:"border-b border-dotted py-4"},Ut={key:0,class:"mt-4"},$t={class:"grid grid-cols-4 gap-2"},Bt={key:1},Mt={key:1},Nt={class:"border-b border-dotted py-4"},qt={class:"flex justify-start items-center"},Wt={key:0,class:"border-b border-dotted py-4"},Yt={key:1},Gt={class:"border-b border-dotted py-4"},Ht={class:"flex justify-start items-center"},Kt={key:0,class:"text-xs italic"},Xt={key:0,class:"py-4 border-b"},Qt={class:"grid grid-cols-2 lg:grid-cols-4"},Jt={class:"mb-4"},Zt={class:"mb-4"},er={class:"mb-4"},tr={class:"mb-4"},rr={class:"mb-4"},nr={class:"mb-4"},or={class:"mb-4"},ar={class:"mb-4"},ir={class:"mb-4"},lr={class:"mb-4"},ur={class:"mb-4"},sr={class:"mb-4"},dr={class:"mb-4"},fr={class:"mb-4"},cr={class:"mb-4"},vr={class:"py-4 border-b"},pr={for:"archived"},mr={key:0},gr={class:"flex items-center justify-start mt-4"},hr={key:0,class:"card w-full xl:w-1/3"},yr=["src"],Sr={__name:"AdminTeamVoucherTemplateEditComponent",props:{id:{type:Number,required:!1}},setup(t){const r=t,e=V({team_id:"",voucher_template_path:"",voucher_example_template_path:"",overlay_font_path:"fonts/Roboto-Regular.ttf",voucher_qr_size_px:900,voucher_qr_x:1e3,voucher_qr_y:250,voucher_code_size_px:100,voucher_code_x:1e3,voucher_code_y:1700,voucher_code_prefix:"Voucher Code: ",voucher_expiry_size_px:100,voucher_expiry_x:1e3,voucher_expiry_y:1530,voucher_expiry_prefix:"Expiry: ",voucher_value_size_px:300,voucher_value_x:2100,voucher_value_y:500,voucher_value_prefix:"$"}),i=V(""),a=V({}),n=V({}),f=V(!1);function p(){axios.get("/admin/teams?where[]=name,like,*"+i.value+"*&limit=100").then(y=>{a.value=y.data.data}).catch(y=>{console.log(y)})}function h(y){e.value.team_id=y.id,n.value=y}function l(){let y="post",o="/admin/team-voucher-templates";r.id&&(y="put",o="/admin/team-voucher-templates/"+r.id),e.value.archive=f.value,axios[y](o,e.value).then(C=>{ee.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{window.location.href="/admin/team-voucher-template/"+C.data.data.id})}).catch(C=>{console.log(C)})}function c(){axios.get("/admin/team-voucher-templates/"+r.id+"?cached=false&relations=team").then(y=>{e.value=y.data.data,n.value=e.value.team,m()}).catch(y=>{console.log(y)})}function m(){e.value.archived_at?f.value=!0:f.value=!1}function E(){const y=new URLSearchParams(window.location.search);if(y.has("teamId")){const o=y.get("teamId");axios.get("/admin/teams/"+o).then(C=>{n.value=C.data.data,e.value.team_id=C.data.data.id,m()}).catch(C=>{console.log(C),ee.fire({title:"Oops..!",icon:"error",text:"I couldn't locate team with ID "+o+". Please start from scratch."})})}}xe(y=>{r.id?c():E()});function U(y){e.value.voucher_template_path=y[0]}return(y,o)=>{var C,I,M;return x(),D("div",Tt,[s("div",{class:ve(["card",{"w-full xl:w-2/3":e.value.example_template_image_url}])},[s("div",At,[s("div",It,[(C=e.value)!=null&&C.id?(x(),D("div",zt,"Edit")):(x(),D("div",Lt,"New")),o[21]||(o[21]=s("div",{class:"ml-1"}," Voucher Template ",-1))]),e.value.archived_at?(x(),D("div",Vt,o[22]||(o[22]=[s("div",{class:"border-4 rounded-lg border-dashed p-2 px-8 border-red-300 text-red-300 text-xl font-bold"}," Archived ",-1)]))):R("",!0)]),e.value.team_id?(x(),D("div",Mt,[s("div",Nt,[o[25]||(o[25]=s("div",{class:"text-sm font-bold"}," Selected Team ",-1)),s("div",qt,[g(Ne(qe),{href:"/admin/team/"+e.value.team_id},{default:_(()=>{var d;return[b(J((d=n.value)==null?void 0:d.name),1)]}),_:1},8,["href"]),g(pe,{class:"ml-2 !p-1 !px-2",onClick:o[2]||(o[2]=ne(d=>e.value.team_id="",["prevent"]))},{default:_(()=>o[24]||(o[24]=[s("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})],-1)])),_:1})])]),s("div",null,[e.value.voucher_template_path?(x(),D("div",Yt,[s("div",Gt,[o[28]||(o[28]=s("div",{class:"text-sm font-bold"}," Selected Template ",-1)),s("div",Ht,[b(J((I=e.value)==null?void 0:I.voucher_template_path)+" ",1),g(pe,{class:"ml-2 !p-1 !px-2",onClick:o[3]||(o[3]=ne(d=>e.value.voucher_template_path="",["prevent"]))},{default:_(()=>o[27]||(o[27]=[s("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})],-1)])),_:1})]),e.value.voucher_example_template_path?R("",!0):(x(),D("div",Kt," Example image will show after we have saved/re-saved. "))])])):(x(),D("div",Wt,[o[26]||(o[26]=s("div",null," Next, Upload a template (PNG only): ",-1)),g(Ot,{onFilesWereUploaded:U,folder:"/teams/"+e.value.team_id+"/voucher-templates","allowed-file-types":"image/png"},null,8,["folder"])]))]),e.value.voucher_example_template_path?(x(),D("div",Xt,[o[45]||(o[45]=s("div",{class:"text-sm font-bold mb-4"}," Template Positions ",-1)),s("div",Qt,[s("div",Jt,[g(w,null,{default:_(()=>o[29]||(o[29]=[b(" QR Size ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[4]||(o[4]=d=>e.value.voucher_qr_size_px=d)},null,512),[[k,e.value.voucher_qr_size_px,void 0,{number:!0}]])]),s("div",Zt,[g(w,null,{default:_(()=>o[30]||(o[30]=[b(" QR Coords: X Position ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[5]||(o[5]=d=>e.value.voucher_qr_x=d)},null,512),[[k,e.value.voucher_qr_x,void 0,{number:!0}]])]),s("div",er,[g(w,null,{default:_(()=>o[31]||(o[31]=[b(" QR Coords: Y Position ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[6]||(o[6]=d=>e.value.voucher_qr_y=d)},null,512),[[k,e.value.voucher_qr_y,void 0,{number:!0}]])]),o[44]||(o[44]=s("div",{class:"hidden lg:inline"},null,-1)),s("div",tr,[g(w,null,{default:_(()=>o[32]||(o[32]=[b(" Voucher Code: Size (px) ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[7]||(o[7]=d=>e.value.voucher_code_size_px=d)},null,512),[[k,e.value.voucher_code_size_px,void 0,{number:!0}]])]),s("div",rr,[g(w,null,{default:_(()=>o[33]||(o[33]=[b(" Code Coords: X Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[8]||(o[8]=d=>e.value.voucher_code_x=d)},null,512),[[k,e.value.voucher_code_x,void 0,{number:!0}]])]),s("div",nr,[g(w,null,{default:_(()=>o[34]||(o[34]=[b(" Code Coords: Y Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[9]||(o[9]=d=>e.value.voucher_code_y=d)},null,512),[[k,e.value.voucher_code_y,void 0,{number:!0}]])]),s("div",or,[g(w,null,{default:_(()=>o[35]||(o[35]=[b(" Code Prefix: ")])),_:1}),F(s("input",{type:"text","onUpdate:modelValue":o[10]||(o[10]=d=>e.value.voucher_code_prefix=d)},null,512),[[k,e.value.voucher_code_prefix]])]),s("div",ar,[g(w,null,{default:_(()=>o[36]||(o[36]=[b(" Voucher Expiry: Size (px) ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[11]||(o[11]=d=>e.value.voucher_expiry_size_px=d)},null,512),[[k,e.value.voucher_expiry_size_px,void 0,{number:!0}]])]),s("div",ir,[g(w,null,{default:_(()=>o[37]||(o[37]=[b(" Expiry Coords: X Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[12]||(o[12]=d=>e.value.voucher_expiry_x=d)},null,512),[[k,e.value.voucher_expiry_x,void 0,{number:!0}]])]),s("div",lr,[g(w,null,{default:_(()=>o[38]||(o[38]=[b(" Expiry Coords: Y Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[13]||(o[13]=d=>e.value.voucher_expiry_y=d)},null,512),[[k,e.value.voucher_expiry_y,void 0,{number:!0}]])]),s("div",ur,[g(w,null,{default:_(()=>o[39]||(o[39]=[b(" Expiry Prefix: ")])),_:1}),F(s("input",{type:"text","onUpdate:modelValue":o[14]||(o[14]=d=>e.value.voucher_expiry_prefix=d)},null,512),[[k,e.value.voucher_expiry_prefix]])]),s("div",sr,[g(w,null,{default:_(()=>o[40]||(o[40]=[b(" Voucher Value: Size (px) ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[15]||(o[15]=d=>e.value.voucher_value_size_px=d)},null,512),[[k,e.value.voucher_value_size_px,void 0,{number:!0}]])]),s("div",dr,[g(w,null,{default:_(()=>o[41]||(o[41]=[b(" Value Coords: X Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[16]||(o[16]=d=>e.value.voucher_value_x=d)},null,512),[[k,e.value.voucher_value_x,void 0,{number:!0}]])]),s("div",fr,[g(w,null,{default:_(()=>o[42]||(o[42]=[b(" Value Coords: Y Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[17]||(o[17]=d=>e.value.voucher_value_y=d)},null,512),[[k,e.value.voucher_value_y,void 0,{number:!0}]])]),s("div",cr,[g(w,null,{default:_(()=>o[43]||(o[43]=[b(" Value Prefix: ")])),_:1}),F(s("input",{type:"text","onUpdate:modelValue":o[18]||(o[18]=d=>e.value.voucher_value_prefix=d)},null,512),[[k,e.value.voucher_value_prefix]])])])])):R("",!0)])):(x(),D("div",jt,[s("div",Rt,[s("div",null,[g(w,{for:"name",value:"First, Select A Team.."}),g(We,{onKeyup:o[0]||(o[0]=d=>p()),modelValue:i.value,"onUpdate:modelValue":o[1]||(o[1]=d=>i.value=d),class:"mt-1 block w-full",placeholder:"Search team by name..",type:"search"},null,8,["modelValue"])]),i.value.length>0&&a.value.total>0?(x(),D("div",Ut,[s("div",$t,[(x(!0),D(Be,null,Me(a.value.data,d=>(x(),D("div",null,[g(Ge,{class:"truncate w-full py-2 flex justify-center",onClick:ie=>h(d)},{default:_(()=>[b(J(d==null?void 0:d.name),1)]),_:2},1032,["onClick"])]))),256))])])):R("",!0),i.value.length>0&&a.value.total===0?(x(),D("div",Bt,o[23]||(o[23]=[s("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline"}," No teams found. ",-1)]))):R("",!0)])])),s("div",vr,[g(w,{for:"archived",value:"Archive / Unarchive this template"}),s("label",pr,[g(Ke,{id:"archived",checked:f.value,modelValue:f.value,"onUpdate:modelValue":o[19]||(o[19]=d=>f.value=d)},null,8,["checked","modelValue"]),o[46]||(o[46]=s("span",{class:"ml-2"}," Archived ",-1)),(M=e.value)!=null&&M.archived_at?(x(),D("span",mr,"@ "+J(e.value.archived_at),1)):R("",!0)])]),s("div",gr,[g(Ye,{onClick:o[20]||(o[20]=ne(d=>l(),["prevent"])),class:ve(["",{"opacity-25":!e.value.voucher_template_path}]),disabled:!e.value.voucher_template_path},{default:_(()=>o[47]||(o[47]=[b(" Submit ")])),_:1},8,["class","disabled"])])],2),e.value.example_template_image_url?(x(),D("div",hr,[o[48]||(o[48]=s("div",{class:"card-header"},[s("div",{class:"text-lg font-bold"}," Preview ")],-1)),s("img",{src:e.value.example_template_image_url,alt:"",class:"border rounded w-full"},null,8,yr)])):R("",!0)])}}};export{Sr as _}; diff --git a/public/build/assets/AdminTeamVoucherTemplateEditComponent-kp4t6m7l.js b/public/build/assets/AdminTeamVoucherTemplateEditComponent-kp4t6m7l.js new file mode 100644 index 00000000..2ed466e8 --- /dev/null +++ b/public/build/assets/AdminTeamVoucherTemplateEditComponent-kp4t6m7l.js @@ -0,0 +1 @@ +import{x as Ue,r as L,p as $e,y as Be,o as we,z as Me,A as Q,B as qe,b as x,c as D,d as s,C as ce,D as ve,f as R,a as g,F as Ne,g as We,w as _,e as b,t as J,u as Ye,i as Ge,k as oe,l as F,q as k,n as pe}from"./app-DolNWhzr.js";import{_ as He}from"./TextInput-C41DJZHw.js";import{_ as w}from"./InputLabel-P7ZTY_pn.js";import{P as Ke}from"./PrimaryButton-BtqGl7rR.js";import{S as te}from"./AuthenticatedLayout-DuLcXyKk.js";import{_ as Xe}from"./SecondaryButton-DL_I_H3U.js";import{D as me}from"./DangerButton-Bm5iDOLt.js";import{_ as Qe}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{_ as Je}from"./Checkbox-YEQY-CTw.js";function N(t,r,e,i){function a(n){return n instanceof e?n:new e(function(f){f(n)})}return new(e||(e=Promise))(function(n,f){function p(c){try{l(i.next(c))}catch(m){f(m)}}function h(c){try{l(i.throw(c))}catch(m){f(m)}}function l(c){c.done?n(c.value):a(c.value).then(p,h)}l((i=i.apply(t,r||[])).next())})}function W(t,r){var e={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,f=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return f.next=p(0),f.throw=p(1),f.return=p(2),typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function p(l){return function(c){return h([l,c])}}function h(l){if(i)throw new TypeError("Generator is already executing.");for(;f&&(f=0,l[0]&&(e=0)),e;)try{if(i=1,a&&(n=l[0]&2?a.return:l[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,l[1])).done)return n;switch(a=0,n&&(l=[l[0]&2,n.value]),l[0]){case 0:case 1:n=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,a=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(n=e.trys,!(n=n.length>0&&n[n.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]0)&&!(a=i.next()).done;)n.push(a.value)}catch(p){f={error:p}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(f)throw f.error}}return n}function et(){for(var t=[],r=0;r0?i:t.name,writable:!1,configurable:!1,enumerable:!0})}return e}function rt(t){var r=t.name,e=r&&r.lastIndexOf(".")!==-1;if(e&&!t.type){var i=r.split(".").pop().toLowerCase(),a=tt.get(i);a&&Object.defineProperty(t,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return t}var nt=[".DS_Store","Thumbs.db"];function ot(t){return N(this,void 0,void 0,function(){return W(this,function(r){return[2,at(t)&&t.dataTransfer?ut(t.dataTransfer,t.type):it(t)]})})}function at(t){return!!t.dataTransfer}function it(t){var r=lt(t.target)?t.target.files?ae(t.target.files):[]:[];return r.map(function(e){return ne(e)})}function lt(t){return t!==null}function ut(t,r){return N(this,void 0,void 0,function(){var e,i;return W(this,function(a){switch(a.label){case 0:return t.items?(e=ae(t.items).filter(function(n){return n.kind==="file"}),r!=="drop"?[2,e]:[4,Promise.all(e.map(st))]):[3,2];case 1:return i=a.sent(),[2,ge(Ee(i))];case 2:return[2,ge(ae(t.files).map(function(n){return ne(n)}))]}})})}function ge(t){return t.filter(function(r){return nt.indexOf(r.name)===-1})}function ae(t){for(var r=[],e=0;e0&&n[n.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]e)return[!1,xe(e)];if(t.sizee)return[!1,xe(e)]}return[!0,null]}function j(){for(var t=[],r=0;r1||n&&f>=1&&r.length>f?!1:r.every(function(p){var h=Ce(p,e)[0],l=Se(p,i,a)[0];return h&&l})}var St={disabled:!1,getFilesFromEvent:ot,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1};function Pt(t){t===void 0&&(t={});var r=L(P(P({},St),t));$e(function(){return P({},t)},function(u){r.value=P(P({},r.value),u)});var e=L(),i=L(),a=Be({isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]}),n=function(){i.value&&(a.isFileDialogActive=!0,i.value.value="",i.value.click())},f=function(){var u=r.value.onFileDialogCancel;a.isFileDialogActive&&setTimeout(function(){if(i.value){var v=i.value.files;v&&!v.length&&(a.isFileDialogActive=!1,typeof u=="function"&&u())}},300)};function p(){a.isFocused=!0}function h(){a.isFocused=!1}function l(){var u=r.value.noClick;u||(yt()?setTimeout(n,0):n())}var c=L([]),m=function(u){if(e.value){var v=e.value.$el||e.value;v.contains(u.target)||(u.preventDefault(),c.value=[])}};we(function(){window.addEventListener("focus",f,!1);var u=r.value.preventDropOnDocument;u&&(document.addEventListener("dragover",be,!1),document.addEventListener("drop",m,!1))}),Me(function(){window.removeEventListener("focus",f,!1);var u=r.value.preventDropOnDocument;u&&(document.removeEventListener("dragover",be),document.removeEventListener("drop",m))});function E(u){var v=r.value.noDragEventsBubbling;v&&u.stopPropagation()}function U(u){return pt(this,void 0,void 0,function(){var v,S,O,T,A;return mt(this,function(V){switch(V.label){case 0:return v=r.value,S=v.getFilesFromEvent,O=v.noDragEventsBubbling,T=v.onDragEnter,u.preventDefault(),E(u),c.value=ie(ie([],c.value,!0),[u.target],!1),ee(u)?S?[4,S(u)]:[2]:[3,2];case 1:if(A=V.sent(),A||(A=[]),re(u)&&!O)return[2];a.draggedFiles=A,a.isDragActive=!0,T&&T(u),V.label=2;case 2:return[2]}})})}function y(u){var v=r.value.onDragOver;if(u.preventDefault(),E(u),u.dataTransfer)try{u.dataTransfer.dropEffect="copy"}catch{}return ee(u)&&v&&v(u),!1}function o(u){u.preventDefault(),E(u);var v=c.value.filter(function(T){if(!e.value)return!1;var A=e.value.$el||e.value;return A.contains(T)}),S=v.indexOf(u.target);if(S!==-1&&v.splice(S,1),c.value=v,!(v.length>0)){a.draggedFiles=[],a.isDragActive=!1;var O=r.value.onDragLeave;ee(u)&&O&&O(u)}}function C(u){u.preventDefault(),E(u),c.value=[];var v=r.value,S=v.getFilesFromEvent,O=v.noDragEventsBubbling,T=v.accept,A=v.minSize,V=v.maxSize,Y=v.multiple,G=v.maxFiles,H=v.onDrop,K=v.onDropRejected,X=v.onDropAccepted;if(ee(u)){if(!S)return;Promise.resolve(S(u)).then(function(Ae){if(!(re(u)&&!O)){var z=[],$=[];Ae.forEach(function(B){var de=Ce(B,T),Ie=de[0],ze=de[1],fe=Se(B,A,V),je=fe[0],Le=fe[1];if(Ie&&je)z.push(B);else{var Ve=[ze,Le].filter(function(Re){return Re});$.push({file:B,errors:Ve})}}),(!Y&&z.length>1||Y&&G>=1&&z.length>G)&&(z.forEach(function(B){$.push({file:B,errors:[wt]})}),z.splice(0)),a.acceptedFiles=z,a.fileRejections=$,H&&H(z,$,u),$.length>0&&K&&K($,u),z.length>0&&X&&X(z,u)}})}a.isFileDialogActive=!1,a.isDragActive=!1,a.draggedFiles=[],a.acceptedFiles=[],a.fileRejections=[]}var I=function(u){return r.value.disabled?void 0:u},M=function(u){return r.value.noKeyboard?void 0:I(u)},d=function(u){return r.value.noDrag?void 0:I(u)},le=function(u){u===void 0&&(u={});var v=u.onFocus,S=u.onBlur,O=u.onClick,T=u.onDragEnter,A=u.onDragenter,V=u.onDragOver,Y=u.onDragover,G=u.onDragLeave,H=u.onDragleave,K=u.onDrop,X=_e(u,["onFocus","onBlur","onClick","onDragEnter","onDragenter","onDragOver","onDragover","onDragLeave","onDragleave","onDrop"]);return P(P({onFocus:M(j(v,p)),onBlur:M(j(S,h)),onClick:I(j(O,l)),onDragenter:d(j(T,A,U)),onDragover:d(j(V,Y,y)),onDragleave:d(j(G,H,o)),onDrop:d(j(K,C)),ref:e},!r.value.disabled&&!r.value.noKeyboard?{tabIndex:0}:{}),X)},Pe=function(u){u.stopPropagation()};function Oe(u){u===void 0&&(u={});var v=u.onChange,S=u.onClick,O=_e(u,["onChange","onClick"]),T={accept:r.value.accept,multiple:r.value.multiple,style:"display: none",type:"file",onChange:I(j(v,C)),onClick:I(j(S,Pe)),autoComplete:"off",tabIndex:-1,ref:i};return P(P({},T),O)}var ue=Q(function(){return a.draggedFiles?a.draggedFiles.length:0}),se=Q(function(){return ue.value>0&&Ct({files:a.draggedFiles,accept:r.value.accept,minSize:r.value.minSize,maxSize:r.value.maxSize,multiple:r.value.multiple,maxFiles:r.value.maxFiles})}),Te=Q(function(){return ue.value>0&&!se.value});return P(P({},qe(a)),{isDragAccept:se,isDragReject:Te,isFocused:Q(function(){return a.isFocused&&!r.value.disabled}),getRootProps:le,getInputProps:Oe,rootRef:e,inputRef:i,open:I(n)})}const Ot={props:{folder:{type:String,required:!0},visibility:{type:String,default:null},allowedFileTypes:String,uploadSuccessFunction:Function},setup(t,r){const e=h=>{let l={folder:t.folder,files:[],visibility:"public"};const c=new FormData;for(var m=0;m{E.data.data&&r.emit("filesWereUploaded",E.data.data)}).catch(function(E){console.log(E),te.fire({icon:"error",title:"Oops!",text:E.response.data.meta.message})})};function i(h,l){var c,m,E,U;(m=(c=l[0])==null?void 0:c.errors[0])!=null&&m.message?te.fire({icon:"error",title:"Oops!",text:(U=(E=l[0])==null?void 0:E.errors[0])==null?void 0:U.message}):e(h)}let a={onDrop:i,maxFiles:1,accept:t.allowedFileTypes,multiple:0};const{getRootProps:n,getInputProps:f,...p}=Pt(a);return{getRootProps:n,getInputProps:f,...p}}},Tt={class:"border bg-gray-100 rounded p-8 text-center cursor-pointer hover:border-2 hover:border-dashed"},At={key:0},It={key:1};function zt(t,r,e,i,a,n){return x(),D("div",null,[s("div",ce(ve(i.getRootProps())),[s("input",ce(ve(i.getInputProps())),null,16),s("div",Tt,[t.isDragActive?(x(),D("p",At,"Drop the file here ...")):(x(),D("p",It,"Drag 'n' drop a files here, or click to select files"))])],16)])}const jt=Qe(Ot,[["render",zt]]),Lt={class:"flex flex-wrap justify-between container mx-auto"},Vt={class:"card-header flex justify-between items-center"},Rt={class:"text-lg font-bold flex justify-start items-center"},Ut={key:0},$t={key:1},Bt={key:0},Mt={key:0},qt={class:"border-b border-dotted py-4"},Nt={key:0,class:"mt-4"},Wt={class:"grid grid-cols-4 gap-2"},Yt={key:1},Gt={key:1},Ht={class:"border-b border-dotted py-4"},Kt={class:"flex justify-start items-center"},Xt={key:0,class:"border-b border-dotted py-4"},Qt={key:1},Jt={class:"border-b border-dotted py-4"},Zt={class:"flex justify-start items-center"},er={key:0,class:"text-xs italic"},tr={key:0,class:"py-4 border-b"},rr={class:"grid grid-cols-2 lg:grid-cols-4"},nr={class:"mb-4"},or={class:"mb-4"},ar={class:"mb-4"},ir={class:"mb-4"},lr={class:"mb-4"},ur={class:"mb-4"},sr={class:"mb-4"},dr={class:"mb-4"},fr={class:"mb-4"},cr={class:"mb-4"},vr={class:"mb-4"},pr={class:"mb-4"},mr={class:"mb-4"},gr={class:"mb-4"},hr={class:"mb-4"},yr={class:"py-4 border-b"},_r={for:"archived"},br={key:0},xr={class:"flex items-center justify-start mt-4"},Dr={key:0,class:"card w-full xl:w-1/3"},wr=["src"],Ir={__name:"AdminTeamVoucherTemplateEditComponent",props:{id:{type:Number,required:!1}},setup(t){const r=t,e=L({team_id:"",voucher_template_path:"",voucher_example_template_path:"",overlay_font_path:"fonts/Roboto-Regular.ttf",voucher_qr_size_px:900,voucher_qr_x:1e3,voucher_qr_y:250,voucher_code_size_px:100,voucher_code_x:1e3,voucher_code_y:1700,voucher_code_prefix:"Voucher Code: ",voucher_expiry_size_px:100,voucher_expiry_x:1e3,voucher_expiry_y:1530,voucher_expiry_prefix:"Expiry: ",voucher_value_size_px:300,voucher_value_x:2100,voucher_value_y:500,voucher_value_prefix:"$"}),i=L(""),a=L({}),n=L({}),f=L(!1);function p(){axios.get("/admin/teams?where[]=name,like,*"+i.value+"*&limit=100").then(y=>{a.value=y.data.data}).catch(y=>{console.log(y)})}function h(y){e.value.team_id=y.id,n.value=y}function l(){let y="post",o="/admin/team-voucher-templates";r.id&&(y="put",o="/admin/team-voucher-templates/"+r.id),e.value.archive=f.value,axios[y](o,e.value).then(C=>{te.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{window.location.href="/admin/team-voucher-template/"+C.data.data.id})}).catch(C=>{console.log(C)})}function c(){axios.get("/admin/team-voucher-templates/"+r.id+"?cached=false&relations=team").then(y=>{e.value=y.data.data,n.value=e.value.team,m()}).catch(y=>{console.log(y)})}function m(){e.value.archived_at?f.value=!0:f.value=!1}function E(){const y=new URLSearchParams(window.location.search);if(y.has("teamId")){const o=y.get("teamId");axios.get("/admin/teams/"+o).then(C=>{n.value=C.data.data,e.value.team_id=C.data.data.id,m()}).catch(C=>{console.log(C),te.fire({title:"Oops..!",icon:"error",text:"I couldn't locate team with ID "+o+". Please start from scratch."})})}}we(y=>{r.id?c():E()});function U(y){e.value.voucher_template_path=y[0]}return(y,o)=>{var C,I,M;return x(),D("div",Lt,[s("div",{class:pe(["card",{"w-full xl:w-2/3":e.value.example_template_image_url}])},[s("div",Vt,[s("div",Rt,[(C=e.value)!=null&&C.id?(x(),D("div",Ut,"Edit")):(x(),D("div",$t,"New")),o[21]||(o[21]=s("div",{class:"ml-1"}," Voucher Template ",-1))]),e.value.archived_at?(x(),D("div",Bt,o[22]||(o[22]=[s("div",{class:"border-4 rounded-lg border-dashed p-2 px-8 border-red-300 text-red-300 text-xl font-bold"}," Archived ",-1)]))):R("",!0)]),e.value.team_id?(x(),D("div",Gt,[s("div",Ht,[o[25]||(o[25]=s("div",{class:"text-sm font-bold"}," Selected Team ",-1)),s("div",Kt,[g(Ye(Ge),{href:"/admin/team/"+e.value.team_id},{default:_(()=>{var d;return[b(J((d=n.value)==null?void 0:d.name),1)]}),_:1},8,["href"]),g(me,{class:"ml-2 !p-1 !px-2",onClick:o[2]||(o[2]=oe(d=>e.value.team_id="",["prevent"]))},{default:_(()=>o[24]||(o[24]=[s("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})],-1)])),_:1})])]),s("div",null,[e.value.voucher_template_path?(x(),D("div",Qt,[s("div",Jt,[o[28]||(o[28]=s("div",{class:"text-sm font-bold"}," Selected Template ",-1)),s("div",Zt,[b(J((I=e.value)==null?void 0:I.voucher_template_path)+" ",1),g(me,{class:"ml-2 !p-1 !px-2",onClick:o[3]||(o[3]=oe(d=>e.value.voucher_template_path="",["prevent"]))},{default:_(()=>o[27]||(o[27]=[s("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4"},[s("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})],-1)])),_:1})]),e.value.voucher_example_template_path?R("",!0):(x(),D("div",er," Example image will show after we have saved/re-saved. "))])])):(x(),D("div",Xt,[o[26]||(o[26]=s("div",null," Next, Upload a template (PNG only): ",-1)),g(jt,{onFilesWereUploaded:U,folder:"/teams/"+e.value.team_id+"/voucher-templates","allowed-file-types":"image/png"},null,8,["folder"])]))]),e.value.voucher_example_template_path?(x(),D("div",tr,[o[45]||(o[45]=s("div",{class:"text-sm font-bold mb-4"}," Template Positions ",-1)),s("div",rr,[s("div",nr,[g(w,null,{default:_(()=>o[29]||(o[29]=[b(" QR Size ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[4]||(o[4]=d=>e.value.voucher_qr_size_px=d)},null,512),[[k,e.value.voucher_qr_size_px,void 0,{number:!0}]])]),s("div",or,[g(w,null,{default:_(()=>o[30]||(o[30]=[b(" QR Coords: X Position ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[5]||(o[5]=d=>e.value.voucher_qr_x=d)},null,512),[[k,e.value.voucher_qr_x,void 0,{number:!0}]])]),s("div",ar,[g(w,null,{default:_(()=>o[31]||(o[31]=[b(" QR Coords: Y Position ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[6]||(o[6]=d=>e.value.voucher_qr_y=d)},null,512),[[k,e.value.voucher_qr_y,void 0,{number:!0}]])]),o[44]||(o[44]=s("div",{class:"hidden lg:inline"},null,-1)),s("div",ir,[g(w,null,{default:_(()=>o[32]||(o[32]=[b(" Voucher Code: Size (px) ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[7]||(o[7]=d=>e.value.voucher_code_size_px=d)},null,512),[[k,e.value.voucher_code_size_px,void 0,{number:!0}]])]),s("div",lr,[g(w,null,{default:_(()=>o[33]||(o[33]=[b(" Code Coords: X Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[8]||(o[8]=d=>e.value.voucher_code_x=d)},null,512),[[k,e.value.voucher_code_x,void 0,{number:!0}]])]),s("div",ur,[g(w,null,{default:_(()=>o[34]||(o[34]=[b(" Code Coords: Y Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[9]||(o[9]=d=>e.value.voucher_code_y=d)},null,512),[[k,e.value.voucher_code_y,void 0,{number:!0}]])]),s("div",sr,[g(w,null,{default:_(()=>o[35]||(o[35]=[b(" Code Prefix: ")])),_:1}),F(s("input",{type:"text","onUpdate:modelValue":o[10]||(o[10]=d=>e.value.voucher_code_prefix=d)},null,512),[[k,e.value.voucher_code_prefix]])]),s("div",dr,[g(w,null,{default:_(()=>o[36]||(o[36]=[b(" Voucher Expiry: Size (px) ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[11]||(o[11]=d=>e.value.voucher_expiry_size_px=d)},null,512),[[k,e.value.voucher_expiry_size_px,void 0,{number:!0}]])]),s("div",fr,[g(w,null,{default:_(()=>o[37]||(o[37]=[b(" Expiry Coords: X Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[12]||(o[12]=d=>e.value.voucher_expiry_x=d)},null,512),[[k,e.value.voucher_expiry_x,void 0,{number:!0}]])]),s("div",cr,[g(w,null,{default:_(()=>o[38]||(o[38]=[b(" Expiry Coords: Y Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[13]||(o[13]=d=>e.value.voucher_expiry_y=d)},null,512),[[k,e.value.voucher_expiry_y,void 0,{number:!0}]])]),s("div",vr,[g(w,null,{default:_(()=>o[39]||(o[39]=[b(" Expiry Prefix: ")])),_:1}),F(s("input",{type:"text","onUpdate:modelValue":o[14]||(o[14]=d=>e.value.voucher_expiry_prefix=d)},null,512),[[k,e.value.voucher_expiry_prefix]])]),s("div",pr,[g(w,null,{default:_(()=>o[40]||(o[40]=[b(" Voucher Value: Size (px) ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[15]||(o[15]=d=>e.value.voucher_value_size_px=d)},null,512),[[k,e.value.voucher_value_size_px,void 0,{number:!0}]])]),s("div",mr,[g(w,null,{default:_(()=>o[41]||(o[41]=[b(" Value Coords: X Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[16]||(o[16]=d=>e.value.voucher_value_x=d)},null,512),[[k,e.value.voucher_value_x,void 0,{number:!0}]])]),s("div",gr,[g(w,null,{default:_(()=>o[42]||(o[42]=[b(" Value Coords: Y Pos ")])),_:1}),F(s("input",{type:"number","onUpdate:modelValue":o[17]||(o[17]=d=>e.value.voucher_value_y=d)},null,512),[[k,e.value.voucher_value_y,void 0,{number:!0}]])]),s("div",hr,[g(w,null,{default:_(()=>o[43]||(o[43]=[b(" Value Prefix: ")])),_:1}),F(s("input",{type:"text","onUpdate:modelValue":o[18]||(o[18]=d=>e.value.voucher_value_prefix=d)},null,512),[[k,e.value.voucher_value_prefix]])])])])):R("",!0)])):(x(),D("div",Mt,[s("div",qt,[s("div",null,[g(w,{for:"name",value:"First, Select A Team.."}),g(He,{onKeyup:o[0]||(o[0]=d=>p()),modelValue:i.value,"onUpdate:modelValue":o[1]||(o[1]=d=>i.value=d),class:"mt-1 block w-full",placeholder:"Search team by name..",type:"search"},null,8,["modelValue"])]),i.value.length>0&&a.value.total>0?(x(),D("div",Nt,[s("div",Wt,[(x(!0),D(Ne,null,We(a.value.data,d=>(x(),D("div",null,[g(Xe,{class:"truncate w-full py-2 flex justify-center",onClick:le=>h(d)},{default:_(()=>[b(J(d==null?void 0:d.name),1)]),_:2},1032,["onClick"])]))),256))])])):R("",!0),i.value.length>0&&a.value.total===0?(x(),D("div",Yt,o[23]||(o[23]=[s("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline"}," No teams found. ",-1)]))):R("",!0)])])),s("div",yr,[g(w,{for:"archived",value:"Archive / Unarchive this template"}),s("label",_r,[g(Je,{id:"archived",checked:f.value,modelValue:f.value,"onUpdate:modelValue":o[19]||(o[19]=d=>f.value=d)},null,8,["checked","modelValue"]),o[46]||(o[46]=s("span",{class:"ml-2"}," Archived ",-1)),(M=e.value)!=null&&M.archived_at?(x(),D("span",br,"@ "+J(e.value.archived_at),1)):R("",!0)])]),s("div",xr,[g(Ke,{onClick:o[20]||(o[20]=oe(d=>l(),["prevent"])),class:pe(["",{"opacity-25":!e.value.voucher_template_path}]),disabled:!e.value.voucher_template_path},{default:_(()=>o[47]||(o[47]=[b(" Submit ")])),_:1},8,["class","disabled"])])],2),e.value.example_template_image_url?(x(),D("div",Dr,[o[48]||(o[48]=s("div",{class:"card-header"},[s("div",{class:"text-lg font-bold"}," Preview ")],-1)),s("img",{src:e.value.example_template_image_url,alt:"",class:"border rounded w-full"},null,8,wr)])):R("",!0)])}}};export{Ir as _}; diff --git a/public/build/assets/AdminTopNavigation-CKquTKkz.js b/public/build/assets/AdminTopNavigation-Bl9ElpaD.js similarity index 97% rename from public/build/assets/AdminTopNavigation-CKquTKkz.js rename to public/build/assets/AdminTopNavigation-Bl9ElpaD.js index 30b8c204..26627b93 100644 --- a/public/build/assets/AdminTopNavigation-CKquTKkz.js +++ b/public/build/assets/AdminTopNavigation-Bl9ElpaD.js @@ -1 +1 @@ -import{r as p,p as T,b as n,c as r,d as s,a,w as u,e as d,u as f,i as v,l as S,q as V,t as M,F as x,g as w,f as m}from"./app-zpP4mvhd.js";import{S as N}from"./AuthenticatedLayout-BSBk4Waj.js";const R={class:"flex justify-between flex-wrap"},j={class:"w-full md:mt-4 md:w-2/3 md:flex-grow lg:flex lg:justify-start lg:items-start lg:gap-x-4 grid grid-cols-3 font-normal text-base"},A={class:"w-full md:w-1/3"},z={class:"py-1 h-full w-full pt-4 md:pt-0"},C={class:"h-full"},D={key:0,class:"absolute top-48 left-0 w-full h-full min-h-full min-w-full"},B={class:"bg-white border rounded-lg p-4 mt-6 w-3/4 mx-auto z-20 relative overflow-y-scroll max-h-screen"},E={class:"mb-4 text-2xl"},U={key:0,class:"mb-8"},q=["href"],F={class:"flex space-x-4"},$=["innerHTML"],I=["innerHTML"],O={key:1,class:"my-8"},P=["href"],G={class:"flex"},J=["innerHTML"],K={key:2,class:"my-8"},Q=["href"],W={class:"flex"},X=["innerHTML"],Y={key:3,class:"my-8"},Z=["href"],ee={class:"flex"},se=["innerHTML"],le={class:"ml-2"},te=["innerHTML"],ne={key:1,class:"absolute top-48 left-0 w-full h-full min-h-full min-w-full"},re={class:"bg-white border rounded-lg p-4 mt-6 w-3/4 mx-auto z-20 relative overflow-y-scroll max-h-screen"},ie={class:"text-2xl"},de={__name:"AdminTopNavigation",setup(oe){const o=p(""),i=p({users:[],teams:[],vouchers:[],voucherSets:[]}),c=p(!1),g=p(!1);T(o,()=>{o.value.length>=3?k():(c.value=!1,g.value=!1)}),T(i,()=>{c.value=!1,g.value=!1,o.value.length>=3&&(i.value.users.length||i.value.teams.length||i.value.vouchers.length||i.value.voucherSets.length?c.value=!0:g.value=!0)});function k(){o.value&&o.value.length>=3&&axios.get("/admin/search?cached=false&query="+o.value).then(t=>{i.value=t.data.data}).catch(t=>{N.fire({icon:"error",title:"Oops!",text:t.response.data.message})})}function h(t){let e=new RegExp(o.value,"ig"),l=t.matchAll(e);if(l.length===0)return t;let y=0;return l.forEach(b=>{const H=t.slice(0,b.index+y),L=t.slice(b.index+y+b[0].length),_=''+b[0]+"";t=H+_+L,y+=_.length-b[0].length}),t}return(t,e)=>(n(),r(x,null,[e[19]||(e[19]=s("h2",null," Admin Dashboard ",-1)),s("div",R,[s("div",j,[a(f(v),{href:t.route("admin.home")},{default:u(()=>e[3]||(e[3]=[d(" Admin Home ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.users")},{default:u(()=>e[4]||(e[4]=[d(" Users ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.teams")},{default:u(()=>e[5]||(e[5]=[d(" Teams ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.voucher-sets")},{default:u(()=>e[6]||(e[6]=[d(" Voucher Sets ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.vouchers")},{default:u(()=>e[7]||(e[7]=[d(" Vouchers ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.voucher-redemptions")},{default:u(()=>e[8]||(e[8]=[d(" Redemptions ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.api-access-tokens")},{default:u(()=>e[9]||(e[9]=[d(" API Access Tokens ")])),_:1},8,["href"])]),s("div",A,[s("div",z,[S(s("input",{id:"admin-search-box","onUpdate:modelValue":e[0]||(e[0]=l=>o.value=l),autofocus:"",class:"border-gray-200 placeholder:text-gray-400 rounded p-3 w-full text-blue",placeholder:"Search..",type:"search"},null,512),[[V,o.value]]),e[10]||(e[10]=s("div",{class:"text-xs mt-1 text-gray italic"},"Min. 3 chars",-1))])])]),s("div",C,[c.value?(n(),r("div",D,[s("div",{class:"bg-black fixed top-18 w-full h-screen opacity-60 z-10",onClick:e[1]||(e[1]=l=>c.value=!1)}),s("div",B,[s("div",E,'Search Results for "'+M(o.value)+'"',1),i.value.users.length>0?(n(),r("div",U,[e[12]||(e[12]=s("div",{class:"font-bold text-gray-300 mb-1"}," Users ",-1)),s("div",null,[(n(!0),r(x,null,w(i.value.users,l=>(n(),r("div",null,[s("a",{href:"/admin/user/"+l.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[s("div",F,[s("div",{innerHTML:h(l.name)},null,8,$),s("div",{innerHTML:h(l.email)},null,8,I)]),e[11]||(e[11]=s("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,q)]))),256))])])):m("",!0),i.value.teams.length>0?(n(),r("div",O,[e[14]||(e[14]=s("div",{class:"font-bold text-gray-300 mb-1"}," Teams ",-1)),s("div",null,[(n(!0),r(x,null,w(i.value.teams,l=>(n(),r("div",null,[s("a",{href:"/admin/team/"+l.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[s("div",G,[s("div",{innerHTML:h(l.name)},null,8,J)]),e[13]||(e[13]=s("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,P)]))),256))])])):m("",!0),i.value.voucherSets.length>0?(n(),r("div",K,[e[16]||(e[16]=s("div",{class:"font-bold text-gray-300 mb-1"}," Voucher Sets ",-1)),s("div",null,[(n(!0),r(x,null,w(i.value.voucherSets,l=>(n(),r("div",null,[s("a",{href:"/admin/voucher-set/"+l.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[s("div",W,[s("div",{innerHTML:h(l.id)},null,8,X)]),e[15]||(e[15]=s("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,Q)]))),256))])])):m("",!0),i.value.vouchers.length>0?(n(),r("div",Y,[e[18]||(e[18]=s("div",{class:"font-bold text-gray-300 mb-1"}," Vouchers ",-1)),s("div",null,[(n(!0),r(x,null,w(i.value.vouchers,l=>(n(),r("div",null,[s("a",{href:"/admin/voucher/"+l.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[s("div",ee,[s("div",{innerHTML:h(l.id)},null,8,se),s("div",le,[s("div",{innerHTML:h("("+l.voucher_short_code+")")},null,8,te)])]),e[17]||(e[17]=s("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,Z)]))),256))])])):m("",!0)])])):m("",!0),g.value?(n(),r("div",ne,[s("div",{class:"bg-black fixed top-18 w-full h-screen opacity-60 z-10",onClick:e[2]||(e[2]=l=>g.value=!1)}),s("div",re,[s("div",ie,'No Search Results for "'+M(o.value)+'"',1)])])):m("",!0)])],64))}};export{de as _}; +import{r as p,p as T,b as n,c as r,d as s,a,w as u,e as d,u as f,i as v,l as S,q as V,t as M,F as x,g as w,f as m}from"./app-DolNWhzr.js";import{S as N}from"./AuthenticatedLayout-DuLcXyKk.js";const R={class:"flex justify-between flex-wrap"},j={class:"w-full md:mt-4 md:w-2/3 md:flex-grow lg:flex lg:justify-start lg:items-start lg:gap-x-4 grid grid-cols-3 font-normal text-base"},A={class:"w-full md:w-1/3"},z={class:"py-1 h-full w-full pt-4 md:pt-0"},C={class:"h-full"},D={key:0,class:"absolute top-48 left-0 w-full h-full min-h-full min-w-full"},B={class:"bg-white border rounded-lg p-4 mt-6 w-3/4 mx-auto z-20 relative overflow-y-scroll max-h-screen"},E={class:"mb-4 text-2xl"},U={key:0,class:"mb-8"},q=["href"],F={class:"flex space-x-4"},$=["innerHTML"],I=["innerHTML"],O={key:1,class:"my-8"},P=["href"],G={class:"flex"},J=["innerHTML"],K={key:2,class:"my-8"},Q=["href"],W={class:"flex"},X=["innerHTML"],Y={key:3,class:"my-8"},Z=["href"],ee={class:"flex"},se=["innerHTML"],le={class:"ml-2"},te=["innerHTML"],ne={key:1,class:"absolute top-48 left-0 w-full h-full min-h-full min-w-full"},re={class:"bg-white border rounded-lg p-4 mt-6 w-3/4 mx-auto z-20 relative overflow-y-scroll max-h-screen"},ie={class:"text-2xl"},de={__name:"AdminTopNavigation",setup(oe){const o=p(""),i=p({users:[],teams:[],vouchers:[],voucherSets:[]}),c=p(!1),g=p(!1);T(o,()=>{o.value.length>=3?k():(c.value=!1,g.value=!1)}),T(i,()=>{c.value=!1,g.value=!1,o.value.length>=3&&(i.value.users.length||i.value.teams.length||i.value.vouchers.length||i.value.voucherSets.length?c.value=!0:g.value=!0)});function k(){o.value&&o.value.length>=3&&axios.get("/admin/search?cached=false&query="+o.value).then(t=>{i.value=t.data.data}).catch(t=>{N.fire({icon:"error",title:"Oops!",text:t.response.data.message})})}function h(t){let e=new RegExp(o.value,"ig"),l=t.matchAll(e);if(l.length===0)return t;let y=0;return l.forEach(b=>{const H=t.slice(0,b.index+y),L=t.slice(b.index+y+b[0].length),_=''+b[0]+"";t=H+_+L,y+=_.length-b[0].length}),t}return(t,e)=>(n(),r(x,null,[e[19]||(e[19]=s("h2",null," Admin Dashboard ",-1)),s("div",R,[s("div",j,[a(f(v),{href:t.route("admin.home")},{default:u(()=>e[3]||(e[3]=[d(" Admin Home ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.users")},{default:u(()=>e[4]||(e[4]=[d(" Users ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.teams")},{default:u(()=>e[5]||(e[5]=[d(" Teams ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.voucher-sets")},{default:u(()=>e[6]||(e[6]=[d(" Voucher Sets ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.vouchers")},{default:u(()=>e[7]||(e[7]=[d(" Vouchers ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.voucher-redemptions")},{default:u(()=>e[8]||(e[8]=[d(" Redemptions ")])),_:1},8,["href"]),a(f(v),{href:t.route("admin.api-access-tokens")},{default:u(()=>e[9]||(e[9]=[d(" API Access Tokens ")])),_:1},8,["href"])]),s("div",A,[s("div",z,[S(s("input",{id:"admin-search-box","onUpdate:modelValue":e[0]||(e[0]=l=>o.value=l),autofocus:"",class:"border-gray-200 placeholder:text-gray-400 rounded p-3 w-full text-blue",placeholder:"Search..",type:"search"},null,512),[[V,o.value]]),e[10]||(e[10]=s("div",{class:"text-xs mt-1 text-gray italic"},"Min. 3 chars",-1))])])]),s("div",C,[c.value?(n(),r("div",D,[s("div",{class:"bg-black fixed top-18 w-full h-screen opacity-60 z-10",onClick:e[1]||(e[1]=l=>c.value=!1)}),s("div",B,[s("div",E,'Search Results for "'+M(o.value)+'"',1),i.value.users.length>0?(n(),r("div",U,[e[12]||(e[12]=s("div",{class:"font-bold text-gray-300 mb-1"}," Users ",-1)),s("div",null,[(n(!0),r(x,null,w(i.value.users,l=>(n(),r("div",null,[s("a",{href:"/admin/user/"+l.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[s("div",F,[s("div",{innerHTML:h(l.name)},null,8,$),s("div",{innerHTML:h(l.email)},null,8,I)]),e[11]||(e[11]=s("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,q)]))),256))])])):m("",!0),i.value.teams.length>0?(n(),r("div",O,[e[14]||(e[14]=s("div",{class:"font-bold text-gray-300 mb-1"}," Teams ",-1)),s("div",null,[(n(!0),r(x,null,w(i.value.teams,l=>(n(),r("div",null,[s("a",{href:"/admin/team/"+l.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[s("div",G,[s("div",{innerHTML:h(l.name)},null,8,J)]),e[13]||(e[13]=s("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,P)]))),256))])])):m("",!0),i.value.voucherSets.length>0?(n(),r("div",K,[e[16]||(e[16]=s("div",{class:"font-bold text-gray-300 mb-1"}," Voucher Sets ",-1)),s("div",null,[(n(!0),r(x,null,w(i.value.voucherSets,l=>(n(),r("div",null,[s("a",{href:"/admin/voucher-set/"+l.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[s("div",W,[s("div",{innerHTML:h(l.id)},null,8,X)]),e[15]||(e[15]=s("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,Q)]))),256))])])):m("",!0),i.value.vouchers.length>0?(n(),r("div",Y,[e[18]||(e[18]=s("div",{class:"font-bold text-gray-300 mb-1"}," Vouchers ",-1)),s("div",null,[(n(!0),r(x,null,w(i.value.vouchers,l=>(n(),r("div",null,[s("a",{href:"/admin/voucher/"+l.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[s("div",ee,[s("div",{innerHTML:h(l.id)},null,8,se),s("div",le,[s("div",{innerHTML:h("("+l.voucher_short_code+")")},null,8,te)])]),e[17]||(e[17]=s("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,Z)]))),256))])])):m("",!0)])])):m("",!0),g.value?(n(),r("div",ne,[s("div",{class:"bg-black fixed top-18 w-full h-screen opacity-60 z-10",onClick:e[2]||(e[2]=l=>g.value=!1)}),s("div",re,[s("div",ie,'No Search Results for "'+M(o.value)+'"',1)])])):m("",!0)])],64))}};export{de as _}; diff --git a/public/build/assets/AdminUserDetailsComponent-QT1KkMwg.js b/public/build/assets/AdminUserDetailsComponent-BIuw6cp6.js similarity index 83% rename from public/build/assets/AdminUserDetailsComponent-QT1KkMwg.js rename to public/build/assets/AdminUserDetailsComponent-BIuw6cp6.js index 4030f810..d2f69cdc 100644 --- a/public/build/assets/AdminUserDetailsComponent-QT1KkMwg.js +++ b/public/build/assets/AdminUserDetailsComponent-BIuw6cp6.js @@ -1 +1 @@ -import{b as r,c as o,d as s,t,e as c}from"./app-zpP4mvhd.js";const n={class:""},i={class:"text-xs text-gray-300"},_={class:"text-sm"},m={__name:"AdminUserDetailsComponent",props:{user:{required:!0,type:Object}},setup(a){const e=a;return(d,p)=>(r(),o("div",null,[s("div",n,[s("span",i,"#"+t(e.user.id)+".",1),c(" "+t(e.user.name),1)]),s("div",_,t(e.user.email),1)]))}};export{m as _}; +import{b as r,c as o,d as s,t,e as c}from"./app-DolNWhzr.js";const n={class:""},i={class:"text-xs text-gray-300"},_={class:"text-sm"},m={__name:"AdminUserDetailsComponent",props:{user:{required:!0,type:Object}},setup(a){const e=a;return(d,p)=>(r(),o("div",null,[s("div",n,[s("span",i,"#"+t(e.user.id)+".",1),c(" "+t(e.user.name),1)]),s("div",_,t(e.user.email),1)]))}};export{m as _}; diff --git a/public/build/assets/AjaxLoadingIndicator-R8NM17UH.js b/public/build/assets/AjaxLoadingIndicator-DnIg5N8b.js similarity index 90% rename from public/build/assets/AjaxLoadingIndicator-R8NM17UH.js rename to public/build/assets/AjaxLoadingIndicator-DnIg5N8b.js index cea0becd..5c8c529d 100644 --- a/public/build/assets/AjaxLoadingIndicator-R8NM17UH.js +++ b/public/build/assets/AjaxLoadingIndicator-DnIg5N8b.js @@ -1 +1 @@ -import{b as s,c as a,d as e,f as c}from"./app-zpP4mvhd.js";const l={key:0,class:"-ml-12 -mt-12"},m={__name:"AjaxLoadingIndicator",props:{loading:{type:Boolean,required:!0,default:!1}},setup(t){const r=t;return(n,o)=>r.loading?(s(),a("div",l,o[0]||(o[0]=[e("svg",{class:"animate-spin -ml-1 mr-3 h-8 w-8",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e("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)]))):c("",!0)}};export{m as _}; +import{b as s,c as a,d as e,f as c}from"./app-DolNWhzr.js";const l={key:0,class:"-ml-12 -mt-12"},m={__name:"AjaxLoadingIndicator",props:{loading:{type:Boolean,required:!0,default:!1}},setup(t){const r=t;return(n,o)=>r.loading?(s(),a("div",l,o[0]||(o[0]=[e("svg",{class:"animate-spin -ml-1 mr-3 h-8 w-8",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e("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)]))):c("",!0)}};export{m as _}; diff --git a/public/build/assets/ApplicationLogo-xXEUN_wz.js b/public/build/assets/ApplicationLogo-B917rUN3.js similarity index 99% rename from public/build/assets/ApplicationLogo-xXEUN_wz.js rename to public/build/assets/ApplicationLogo-B917rUN3.js index a5c59e66..7d68b204 100644 --- a/public/build/assets/ApplicationLogo-xXEUN_wz.js +++ b/public/build/assets/ApplicationLogo-B917rUN3.js @@ -1 +1 @@ -import{_ as Q}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{b as I,c as B,d as A}from"./app-zpP4mvhd.js";const C={},E={width:"640",height:"130",viewBox:"0 0 640 130",fill:"none",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};function v(f,g){return I(),B("svg",E,g[0]||(g[0]=[A("rect",{width:"640",height:"130",fill:"url(#pattern0_5_5)"},null,-1),A("defs",null,[A("pattern",{id:"pattern0_5_5",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},[A("use",{"xlink:href":"#image0_5_5",transform:"scale(0.0015625 0.00769231)"})]),A("image",{id:"image0_5_5",width:"640",height:"130","xlink:href":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAACCCAYAAADWmnkBAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACgKADAAQAAAABAAAAggAAAAA3mjyUAABAAElEQVR4Ae19TYwjR5ZeZlZpAdvqEWXAP8DCIwo+2JdFV98XaNZ9ALFbO5e5NOtkYLFGsVqz8LG6zqPuYl108KXYgPc0oy7qsOdiA95zU5iLDzZELbCAfbGokYxZrIqZ/r7MCDIyGZE/ZPKnql4AVRkZvy++TDI+voj3wvfuUPjx5JM/m0Z7P/cj/898L/p3vuf/PIrCDzzf/7Myw4x87/sg8n/PsqHn/Z2Pe9T//c8urv57mfpSRhAQBAQBQWB5BP5w/Mv/EAXe9IPz3/7P5VuRmoKAIFAGAb9MoV0s81233djz9lp+FD32vOjA8/zWeuX0RyCVo9D33k69cPhhbzBeb3/SuiAgCAgC9weBH46f/g1G+6t4xL73Xx/03vyn+zN6GakgsHkEbhUBBOlrvucF7SiKPlk/4ct/GABuHHnewPfD1+/3BqP80pIrCAgCgoAg4ELgh//85LEX+EMzH9+tj+S71URE4oJAvQjs19tc/a1R0wfS14ki/5kXRQcgXQjb562QowlBulEUdH88fipkkI9FgiAgCAgCSyDgB/6fJt/t88pTL/hT3MmP6zkkEhMEakVgZwngD92/wPJu+CyKvE7yxZD9eqgVh5UaM8ngD8efjiI/uvhZ701/pUalsiAgCAgCgoAgIAgIAmtCYOcI4B+6TzvY1wdtX9jaXcqX9zSiAz/yLrGf5RyKyosbL+xhv+Akr4bkCQKCgCAgCAgCgoAgsEkEdoYAkvgFkXcKjV+zniVeH0sH4QQWwG8JKMjk2PeCMePZEHlRAwYeB0wHefsI903EeN9g2pKhgU5P973g+IfuUyGCS4Io1QQBQUAQEAQEAUGgfgS2TgC51OtF01OQpRU0fiR70RBuXL4OvHC05MbhQRZe7j/c9/ZBBEPISGvjpSyNZ0Twx+7Ts/d7b3rZfuReEBAEBAFBQBAQBASBTSKwNWsKWvTuR8E5BtteYsATCD5QLlkGm1xiTQhr+An6b6u9f5XER71x5AdHD3q/G1aqKIUFAUFAELijCMCQ7lf4PqUbmFnA9/svPui9+dtZgkQEAUGgVgS2QgChCYP1rHeKkTQqjmYQ+f7rn/W+HFSst5biP3bbB7ACfobGO/irPJYbPzzaJHldCwjSqCAgCAgCKyIgBHBFAKW6ILAEAhslgInWz7+sspSaaMy81zCm6O+y8+WZ8Uq1ZeIJCO3RrhDaJd4fqSIICAKCwMoICAFcGUJpQBCojMDG9gAmBMnjkm8pTRmJH5YAzuANvl95VFuooNy+9Gd7GssRwQYsnq/w5df/yQ9PRBu4hQcnXQoCgoAgIAgIAvcQgWDdY6YhBQjOJV2joK9C8qc0fkfvX7z5+Db60uPevgcXV4eeHxzSMKUMvhGWkPejvWsuKZcpL2UEAUFAEBAEBAFBQBBYBYG1EsBkyXfvmgSnhJBw2eKd3Vbilx2fSQRJarP5i/c45SQKrqkpXcyTFEFAEBAEBAFBQBAQBOpDYG0EkNosWPm+gxasjFZrAIOIR1jufVHf0HajJRJBklqSW0g0KZAKS8JwIt19+qKgnGQLAoKAICAICAKCgCCwNAJrIYDUYlGbBamKlnxpBPHkwcWbJ7ts4LE0ukZFkluS3FLLwrCQ5rK5UV2igoAgIAgIAoKAICAI1IZA7QRQGXuQvBSRP2r9sM9vN1y61IZoTkMkudwf6PveSU6xOIvL5iSB3ENZVFbyBQFBQBAQBAQBQUAQqIJArQTQIH+5MpAAKa1f0ZJobju3NZOngfjQBhbtDSQJpHGIkMDb+qRFbkFAEBAEBAFBYDcRqI0AliR/MPQIDuU4NM/jcXVw/VJiSTjCXkohgbv58RGpBAFBQBAQBASB24lALQSwHPnzR4mhhxyBpl8V+v2Ll4Q9r6/T7FeSQP/KniepgoAgIAgIAoKAICAIVENgZQJYnvxND++6oUc16OelYSV8VLwv0G+JYcgcM4kJAoKAICAICAKCwPIIrEQA6epFOXh2SoB9bv0bPyZ/93K/nxOYTAaXxSPfO8okp265J/CH46c8TUWCICAICAKCgCAgCAgCSyOwNAGkk2fl6sXZOckftVtc6nQWkowZAjz5pIgEonCXWtdZJYkIAoKAICAICAKCgCBQEYGlCCCtUmGYwD1pThclmvxVlOfeFy9DAql1lWPj7v2rIgAIAoKAICAICAJLI7AUAXwvCrAMmXfCh08L10Jfd0tLfccrliGB1L6Ke5g7/iLI8AQBQUAQEAQEgTUhUJkAcvmRe9Hc8tDaV/b8ufEpl0MSiJK9nNLQwoplcA4+kiUICAKCgCAgCAgCDgT2HenWZO77w/JjnhHCBOSPx7rJnj8rgtUS4Sz7BEYfTdRq22vCMrj7tHuX/Cp2u93m/v4+x+zd3PiTXu83I/vYJVUQmCOA96aB9+ZAp3z++edDHV/X9de//nVLt31zczPq9XryvacBkasgIAjsPALYqlc+/HD86bu8pV+ebkEHx+VblJJFCKj9ltd3Gffnz593PM//BFi08NfAXyrARc4oivyvwvCmj0l2nMrMuWG7qPcsp8hClu/7bz0vHIdhOCg7oT9//tllFHnNhcYqJmCckzCcntjGiLGcYywzgmM2DZm/evXq856ZpuMkRkGwh7qL8gWBd/Hy5cuBLrvsVfVBDBaeXdU29/b8s7LkjQQsDCM+3xb+mvjLhjEShmEYXNTxQ4I/ToIgOMa72ka7TfxlwwQJgyDwX5cdAxtI2o2fUWn8lnlPs8Lu0j1cXP0KK0t/Y8oU+t4vPui9+VszTeKCgCBQHwKlNYA/dJ++8CL3vj/6sRPyV9+D0S1RmwqDjyNlcW2dIKJo7xLlcarI7QpqAqfszTzJQSwOSIBBZE6fP//1GcjOi7zyOo/kD+9lS9+Xu0Yo73vo6xLErq8IGSd2a1Bj6KCfWkIQ7H+Nhl4sNuZ33X1ELZAIEtZxth61YiBJVvnCMC49yNapeq/6aLvlK9/idAoaANKWV4OEyff3LjGuVl455DXx1wmCsINnOcCzPCpL6s120V9MotmWmW6J8/PZId4nJ58Noyjub2wpl0rCM+/g/a6I3+w9PcePA7yn4dkyY0sJIjeCgCBwrxAoRQC59OtFHn75OsNgl5chKf++x2XFsGUbAebuSeQFoxvvZrSLy9ck1th7eeL2uRgd3LalYGrnMFGS/FUM0elnn332yXQ6PdzAhAfysNcGyXtSRaNTcUC1FE9IhI041tL8zjTS7f41fgiE1xCIZKtKaONZgij/Nd6b8tsKVH9X6KhZpTP+8ABJfYd39agOLWtO38DB72Jsnapjy2lTsgQBQeAeIBCUGSOMDThRu75wse8vPCrTzibL/KH7aZsnZ+Dvm/0o+MaLMGlE3qntDxqmc+aj3HcsT2fLu+ZmRRmFDFwYYgynMVF3FdihdJI/TFpLkL9kENQI7u3tXVMzs4FhNUBUrxOZN9Db0l3ES6FL174NFVcgf3p40OSFeG/++kAn5F2paVRks5lXLievgXf1qmx/Oe2Uyao0tjINShlBQBC42wgUEsAfun/RwmSNP3uIfH9nHD2TAJH0gcB950fRVYTlGPw17ZLbU1X5LpZc35EMUrOGdjdBNOwCGamKaE+MJDPagHueUzNhF+NcMl2F/OkxkQRC63Gu79d/9c83NJEvO5Tmjsu37Ljiesky7FKav2y/jb298LLMjwf8yKDmb+XPfkI6N/NjRfXVzA5a7gUBQUAQyCJQSAD9KLzMVjLuBz/rfTkw7rcS1cSPmj4QuA6EWPlLmwMhGQTROGe7JIJM22bg8jQJt0sGjj0h7K4S20+PoqhO0tZJCOVGxtWAkVOdstcuNCb/49ob3ZEGYXxxClHq+VzHPx72cz/P2Gv6gj8yaho+tHMb+7GC93Tvsia5pRlBQBC4wwjkEkDl86/pGP9OLP3SOMUgfg5RV07mUs45raC3vTSsCPfAOaJoyolyJwOXUUtMqhOUwQb62BBgXDQQGA1sbLzc17V+whkWjjkHk3ZO3q3IAsYL4+dSLPe5FQ1AvzdoY1RUFj/vjvO1gFEhmWY/us/i/jzs0eM41h82856ufxzSgyAgCKwXgVwjkAD7yiJH//iSOdumwQSJWGz9mmOZ7BB9heQIfWJpGAYZ2zR6wVLwCUhvCwNpLA7Gb1EL+KD3u+Fi3rZTYlcvOUL4J1l3JiRc1Bpioj2wVeRkx4nVZgFrKz9P80/gBiVFFNAP9vt5x2xzXi4dw37AZ0gZplOdd2O4BHFqbLO1avB72CDJfvXqVT/b9rbugeUILktOyvZvM7aBgUs71se7G1mw1uY7obRuqGsN0MoFzOtnc9V+z0Y23binRXHKXQ/JpOqvY5RLRRMXMl5pLFTlPt3KmA3xPcXnge+ha2ye+mE0NOtJXBAQBAQBEwEnAYy1fxbfYazse954mwRIyYbluCjvS9ocpxmfoN5onuDe3zgvk47hy/cc+wMf8ri7bZBg9DmG5vMiNmhJi5bcJVrAoS1ry2nOCQtv1QL5o6wkBJhcDzG5foNb6/NOCELuqSkLwyb5s5ENFBzAZcgVri5ZWwuNORLwnowdfThq1JEck+x+HS3V0QYI9eT8fDWnzCA8n4BIusLg1auXCyRb/SB4Ancs125C78LKf+zqDM90eH7+8kk2X1mkH+HdYVYnm897EOGWLT0/zf/W8Q7xPb1E3Y6tPsf8l3/5l+9/8cUXP9ryJU0QEAQEAecSMLV/LnjgoPPMlbfudC75KncoVjKw2L8/AmM98/zgECdr+Pj78MHFFeL6740PjdqHzEfdHuaZ8WIbiykRvnj3o72tncd744U9SDVZlIwpiRbQnred1IKl03FW82dKmUyu/oWZlo5Hzgk7Xa7cHbU7OSWbOXm7kNWmNmoXBKlLBjeBg2On/Gfl0bF0jhwHtjz0Z01nWTrPttXRaZDH2R/Io7NdXb/KVRHfsavOn/zJv3joypN0QUAQEASsBDB/7180VC5JNo4eLXydWq+0NBMQuT6I3ccPLr589KD35kXekii1eMzn0WvvX7z5OCGD0TDdpO0uOtgWCYw1j37OZBTtlkEAHNU2bQgyjZoyV55Ox8Q71PHsFfVrJTzVl5OzEm33XvkE3K4QNfUOMtvMa6roWTm0Z7pJa9t5RK3Ip5+SZ6w7yF7rt9SOBtk+9H0QTP+9jstVEBAEBIEsAlYCCBcqz7IF9X3kB7m/gHW5uq+0wqXWrahdTfxA5OieZlxU3pafkMGrQxJBtFfQBklgcGlrZ91p+VpAr71bfgGDpguP5FgrV26Szv1xrhJ5GhtXnbz0Am1lXtWdyPN99+d3JwSsIIQ+F9pWBURtaEu3pDnfnSwhq0N7mveDZn9/qW0rliHppOB7HctesV/532TT5F4QEAQEAY3AAgFMrFz9li5gXkmGtuH2hU6d8aWKPX/uEBM1EDZF/Jxf+O4WFnNIBLHP7xFJ5WJuKqUdH5WXSlr/TZEWEMT0eP1SbKaHgtMbGnVJQQJAoxNXeyCbI1ferqRTg1WkOdsVWTchB/BwPrMsIeOxdi6ZdvHZ52nGIe+/dY1F0gUBQUAQWDQCySEN29j7Ry0WNJJFGrYBiBo0fm8mdT/SmGR53hGWxd+6j2JDr9gzCevbYd5Sc92ysT1qAfe9mOg1LO13kHZiSd9CUvhBbD60hZ5tXdKaF77eWum8WEa6qrFhGRcFORym67jvqJmkPzl3iXQONHejoiXGdA333ZIWp+4Gl8wBBs3yGITYC5q2YKbF65Jd116NBi1lGsWYx65yaKOFvKErX9IFAUFAENgUAgsEEMusbUfnk23s/cMeu6s8a19q56j1c8hcWzLHDhLo5ZFA5TT749o6LdEQCSr2Rg4cy+MNak+3obXNih5F/gEmRkdYyfedo83C5A5Zezo4BZwVw17GKlsgQF7K+ykE8WQoFmImTV7E5+d4F8h/szwGvofl95TlNN+bxeeUjJuEOQ+B7eX537pk3p5M0rMgIAgIAmkEUkvAJAvIbqSLzO76s9iGIsnpGxEmAHvATLkR8qd7JwmMfO9I32evmL+b21gK9nw3Kcnbz5mVf1v30FaNt9V3xX77RUYHFdtbZ/Hmbd/LWAyOe/9bcd37UCJ6eB9GKWMUBASB5RBIEcAA/rZczcCitormw9VM6XSevwuNyKm7QjTchOYv27/Sgvay6bP7yDum7LP7DUTe7w1GUBzhzxpoDLJReaxS3P7EcZHLkW0MEVpVPvexrW/ltNqWJWl3BIECK+c7MkoZhiAgCKwDgRQBhAarbe/EHy1rUWtvrzgV+9q6KOUiLjiGLnpS3Mp6StBdTA7haijZ19O5o1Ush712ZHl73l7LlSfppRCYhGHwBNq/SanSGyyU7Etz+kiE8dTu7KHbICzSlSAgCAgCgkABAjMCmLf8m0cuCtpfPhuaNFflyPfp4mW7k3HO8VbYJ/jMJfu60n/ywoGr7TzNrquOpCcIQAs9hObv4wIr5K3CFYY3rmdPLbpTq79VoaXzWhDIX+aP5BSQWlCWRgSBu4nAjABir9hj1xDzyIWrzirpdESN+g17G3RE/aVrwrNXWUNqYu1rtwiFJrWpCPUaerY3mWho7cvAbs2uva1Np+Y5id60LLo/Ej9s5D/CsV+Hu6j503LyqvYluj4TbbPsrsfz/D0uyk6rbQluBIL/5c6THEFAELjvCMysgGFQ0QZRsITNL/9Cg+bWWvh7ZxYht5NEWaKwZetcad1ck7Ktyspp1NSCuBxYGmrQv2OyV9CSu4GkxGLT7l8SB2w1NyBCtos+lvG/zSROeEbwzc3NqCbSN0EfpffO5vl0y8i5cIu9gHz2NrLXWCi82YQxMHhdrstwnNW08r3BuKwhsRC2Zm05MfpoywJI94KAICAIFCIQE0D62sOXbNNe2q7lspddPTU2WLBPZGjcH23az17eiCgLXLCMMT81LeValrQ1J4VDkClHH0ELGSNH5gaSabHpmMk30Hu2iyDwX697Az0+U6Pz889fZPtexz39Bz5//tkYbTfX0f6ybQKD8SoY4JSYCfYxLtt9rfVAsptlGuR3Kcpawyok39qgJAoCgoAgsCQCMQGEkcCBc3L2g6+WbHupaonBgv0LP/Kj0tqUpTpfohIkHaBaN1sV6U0S600az1DD98Px0wlkaSzIE3mPkdbLpt+W++TIrtAlLscsIda0lfc7eF8AAxk7cI0V2t6xmccfBSDSZpIZb5o3uxBXjqWtooCI/m9rhiRuBQHOB/vefpOd+97NpOyKjK5XpY45QK7+RN5+48a7oTFn4Xcl+3vPC7gi2NDt4PfMhFvB8uYz3Y+us8w1O0Y99qK26lIMmf1lZSmSAXVhALp/ULVett1l29H1dHtlMIkJYN7+vzKN6A7ruPqe2+/fNMfQoY6+l2nD90MsvcUWywvV97yghcQ+/jYZhuisbemwZUnbYBKdPdvVItDwkJzmBh7ZhcnOGjDRjawZ9ywRxiD9INg7vUvDJkHDmKxDArFrWTMWE2cTWTZL7Z/MJq90D7margaq7XF0tWKmu0/YwXfT/zFLSny7CLwXBdeRFzYpRYSVGhCmR2VI4H7kX3pe2GIdTPIf55Gw7AhjUhYF71Df2/f8IfIPs2X0PU6yannR9NSLfPSVDryHd4vzH46fDLEt48QmN+bBuJ90zWp3HCPCbKLAcaZs0/n51a1D8cHowPODi1U4i9lfVbxRl88JxLn8s9Xym9dl29H1dFuwpTgqOrxDrRe6SNdml39jwZ1kIN6LONGD25Wr7YOgZcNb3NTxTV0x+bx19FX4IXLUqyU5z9lz3oSpO4ehiHNfKOqPdbn7fC0wBrmV0BQRtKIzjz/77LN2zsDHtjy8TyNbOtMK2vOUPE1X/eweR1e58unxiS/W4mG4J0YgVmQ2n5hox7LzQdCqKonWIJatR81fmbLxoQtReA3uVSATyCFImTLULNP0qmVKya86aWNP/jW2ZV1SG1a1Yz4j1EnVoya0fDtzl1tlcbe3vXQ7LbO9XFsKVXBmBGJWnMftVqXz/Ppjvuc3s78+2As0g6OqveElmKncq9St/guCRNnywXGS2SrSVC2btw+walv1lS9aWsN5sd1Xrz7v2XrEpIoPpd+x5SVp/tfuvPuVA/LiMga5tUBAwwutg13bB+3gOQb2xDU4aI2PUdcVrN8pSqN84Kh0ivSBI89T8liz84iltUJBIpaqoXHIkop5pX/6p/8nn4s5HFuNQSvUzgqAlQ/+qO1l0zd9TzKHd56fIzNAm+bN3594LpvPcSAXl/B0geNhUx458LmYkxezMTWvN1XaBOVGZr6Oo9xYxxevdoVUpm1oV70OjpA9wPx/WGbJW/ezy89Iy+i6xl5HFn2+tlzldboigDHRWyy84f1/FAoPr8lrNiC9MTtmLfI+QMmDeZmgkb5XOahE1XfVoNTJlmrEKZzMM3Dve99DZc7+58mzGOXabKBG8ofjTyGniU8sQ2+zklh7GyC1bc3xonOQQCzz3kDpM3e4TD9n+KI8xxdUw14PT8TtB89VZSPpmPArH8e2qmGKMgaZYIBOvDYy+Bo7gSHIV3ifW44m2yBCVzylxdQWUhOnyJirHpqL0O5iwHP7Cu9bZzEHNWBlf3Ly2XUUTY8c/Tneb9blOKqG6GHW1x8+D9wOcYyWWjmtDb744gvxA5gD0EazIh9kbzZHqM+n36KmqgpJqVtmKklA5gzy5498f3pkW9lKlojDK8gQf7dg6xg1bUMtPw5IeOKSL5679clevodl2qsXrrKu9AcXV4euvGSp28c4NEmNDpIlUfePw4W2dvQZLchpSchs41PvFznTX7TyFFoxAcQxb2fYZ3AwBw8x38M6/++Glr5qS+LLz02T3BeBH+l8ET+afUQWe4F61yQPqDELObVmZeqIkFSZ/eILOO7a1X90gD0T1/xVgzOEv0Wpse8FY2zGHVfZx1FV8ht/eoj9Juforw1pJ+j79YPemxdV26m7PN6pAu1UdIpJ+xQT7JB9o3wTx5k1GXcFTMhDcyJ2ldtSOuW/rtL38+fPe69evTqpUmexbNQHet3F9NuZovY2GpPUwjjaeG/aWJ4dgRjRlQ8dYOOzmhsm2FYwsJUoItF4L1u+v/cNra7RD/YoluqPP1T6tv4K0tp4h9rZMpAhN8DK/SK3gGRuDAHOc2D/8fuIxzZGx0N8N3cogDqlyfoeMn/dASTpGH00VD84YWvq1JqRSIBoHWIJmN9prNPAEmkH1x7+thoUYT3k8q/GFgK1iwiQFnqXn5GWMe+K94pGO3HAd8MZvpeS78so3jo1VFkLl5gAKgZ/mOxTiK2FaiUomuhBV9NKSB4ndRDOWKsTziiVHsCClLc6QW2oxeCS72xuxg28RMsYLx1PkPF1BBc3U29KK63xqsNVz/MI7fBvZwInVk7SRZMzJ9iyQu/t+Wdly96GcnX4tgOxuQAh6t6G8ZaRkRphEuMiUsv3isQI1xLBv2C77oJ8r6I80smqTfTXLNef19/UDxXIM1xVk+zGRXKqIgBjwLaug1dzgJOs3kJj02HaNvzFalmSKzVmyQcG7/KZmjvSRYy7eIWp+/QCVU6ZvCvL2FrE9y/eHGFubeA+wZxGLSDcOt913e1n5JI6SQe/4ndQM7nzRz950wENdtR9K7na/6f2ANrUvvZq7lST7OHteByvz8fCJUux6lVzN3CvcpS6GppN7HHMEsMRNHdfw/KZKvbxXYFlOg2OgiB8V894ot7nn78c1tPW3WmFRINaVHyht+7KqEBqz6jlw3iaq44JuIxevsz3z8j9qPix8gxfrAer9of60DZOV9TqlpYCfhOnR6VLS8G1IxDABVcy74Ewgfzhh/6QSgAVWjqynet8q1DZE798eOPAfrmYAMaKnO0I7uwVK5on0GwmBBBLwuQkRcR2t5+Rc6hxhnLZowpFMV+YbwOLuBey6eIQs7cwvwt3LhvnJlKqXtHpOwD/HS1xkl8Isfar6a4tOXYEYmLYhbb0Enh+g1803+HvipZaylLJXu0WpCZWkNHKExQncZKCWzDkrYgIVw2vt9Lxmjqlti4MA+4xmqzYxYQ/Qsq0MZ1Oa+kPcm/qOEFixL7GZcYnZTaDAMifIiOeR/KXkJF43z11b81d+U53kYQsShlFUSObv+37ZBwJvpSF28yKZLotz8g2DvxIfTxLn9ltzA1mlDu6WREzshQBpMUJCMk5SN83JCgkKgCwg983hUCbnUu8NAL8kLXxoGEMEbzThJDEmwS8dCs7UhB73Pp4V0pNwjaRgcMQk/OmJlWbCDuflmC8MlnaqXHyxwMJDoSaLCnYOCFIvxmVqU8ixfL8sVGmvKWMImTl+rPUr5JUaWxVGpayyyOgyB2/vxEMV2a+aYAUtJi77VBxLlGfwTnR2rb86f5NY810TvYu/YxiDZoa25xEYbG+la23Q/dtLYs2+KCmWaeBn32i49lragk4m6nv8WI0uEauGoIxBugeQvJfl9rUlS+cfrh+vH8u3XMwTN+vdqcNVFKtRN5DjL6RpAW4bpz4sm8+j3ayn/BTWG5Fr4s8tafGsOUbEhSc7jHa2wsv8TodlBRngi/Ri1WOFtP91O+QV7e82hVkA2OsK9wtYxCiQhIIC9+PsRx8idt2BaT6iaXwy0r4qv4O4cfytGgPoikLf6QklsIvx2b6GuLxZyKxnq82tjXIIk1mEEi5FkmTviHmMbxTmD226g6G82kyf0GZcwxxSm1VgMXvh5T9LoT0M5oTJziV/gqrmV2OcbvPyI2ycv+iCwx0pOw2g1wCSA1TTPpS1re6i3VcFeOesdeEzK3banbVkSjz+GtHO3goJIswevE8XNcRogOSKG785Nr/bSGDyXKw94jOdSE/f6W08beAESdTugKhFSWXAssiCOvMC1iFLgS09Vb1vZBXNSHxb/i8V4fxBskfNE5ndhl8WHYtnpjCMdrL0z1OvG+uAfyatjJ5dW3lXWk4rWMEQta39bMOIx31Djzh8YBBMH2Gzxbfm2ZWPmrugNmQRjGrLIuq/k5APGFcE8CvIJ3hWn+0jCED+gvQX3mtn7Jyfog2F9797Jh4j3GN8f9bfM6xl/HlwFZG0nYEgZRrkblygpoarOQoIcvtU1vHiDhXGO8ythg9/fb93pveOvrabJvxfFuuyx1/RnmDgDHRY52P74WZ1o/bDHhqC74nWsh3uoNZIICxOhS/BCJOxiW/kLQAZa4+zOAjLxrjW+wt+hgrtyi0fp2UqX/bymR9I5EsYvyN+Mi7WJPoN/UvsHrGZpLBp7Q4e51x1llPNzW2oiYxTmRHbFb7PeMxYKtM3Ea7NUq72NTqblsW28ymwCjhRTat6F4RlxjTorKr5G+qn6yMimSNkB5rLUgIeWQgtbtVCFi2Xde9ehdnGpK6+lPtPnH1K+m3EwGunEF1dKCkn+jlOWM0/M5r835b7mCwatSHEQHn+yblABnk1q5jD776btOKEmXXgYork7tYcNdFebTezj+jmbCWCPjUzP0LfvIPU0WoSIuUIaDDHcyMACZarOkpNBmtVCMr3cCpJD1+x25OglHeg1ipm61XDltlRTAw4Id/Fki8Qy84gMaVy8v40qjlOWCZOGrjAz0OYeJfdC7gTJgtR8SFxZYfwC3tfh2kLw+KTfeXJ4vk7R4CpmsRSDfMSkiNDQhXTAC35Q6GihfMPU+8uW8/cAaQQRBBrihx7qDsIVZgdl2RQHxJ6GDRe4oxxAEEqa+i1stteEZWwZGIsTbx/jRV/iRjnINkapyTbQYkikiY/XhVdbz9//tffvnBe/8I5hiFJB06fckrlnDj5dtgaBCdJdu6X9XUwxuZo042pwYtfBhBCr2W/pVmlikTZz0Qy0t8mB/TT1KZOlJGEBAEBAFBYHkETNci5vLcvMX5sZ34juYEvZXvZs49IBMfq8MDOnP5oIogGYSBJxQJHSxZT8AQBj/h4IjE0tYsuf04CRGOgLvCChtlZphQ1iRq/x9vcVNZRc8IxVr2VraTarp/4XPJSkEOxmeG9AafI/HJPrfgT/4x/G94zAfZyuXuYwugHjZLHmKp0+dRLTxx4r6RP7xEH9nxMq2I7CXyUvnB5H4Mkjb8fQz/Rh/jJSWLX3jYee3oPLwEnYRU6hS5CgKCgCAgCKwDAXzftuftZpbnkMHvd0zcY1Wmsc3vZmoCOc9wjoE8PSiDRkou80IigXN24Zqs+/SFmbGJOAhMI9sP07h6CaJzDrnemVwGfnRPsoQnWx/3rXma/Rkhf8IyGPvOuOyJ5THcv2CF7y3TLGGo00gYdVxf98GW/1zflLxiX5n31V1zUFxy7NZiyS8OfJTXHNTL3EM3/PNoAcSlA/VF0yjTvbJ4GpUpK2UEAUFAEBAEqiNAMoflufg7mSRPrfDYGhoiscOMXfhuVnNMvFRIcsW9idY5BsusMDJ4nHc+L8dUZwDBoz/cdJOY/LDMmU7DHTjKUdGWJ2W8WfiM8Pzg+Dp5RsodzK7Mn209cPIxHTev5jYDvI+Pkdcz82d7AM1EW5wvMdKHJDvQeD0Dm8QL8LRpKztP46+IxGULTgTJnod7Zww/4tNO5oM2YtZfUUb+alG1J2OAVo4MMthZrVWpLQgIAoKAILAKAvDX+syoPzTiqSg1N5hPO3FibI3qvUgV2OINtYLonvOLmmOedtT+umYilh9r3rD6t7C3LMnf/P+Yp/jhkwfQrhb2nhhG6GJDHclezWcEGwk+1162zKbvTfcvHLNL00lDHu7lVPK1s3KWdgQNBtzEXycxTih7woc2ZojLd/AT5xQv+yVPClFsPsKviGuqb+PTRPCrKSvgbbgnNlY5fe97a/oaEkkGqcKH1e8TND9xd8GNoRIEAUFAEBAE1oeA39Jt5yzP4WQQU3MTH9vV0PV27UqNGvbUPYJcA0O2LveWGfdbi5IIUb4cbWtGttv7jJTRUDwe8A/zeaTGSGIYk2KVGhNHo0RpDaBRp+Zo/BBaIIZUgXsggyAvtBymQ8bdNyZRamQHJpsjW4nPxugZ7PhbDmEkWRAQBAQBQWDNCMSEaO7+xaMxCPbMNct0q6xS+2XKbqMMtYIY3xEMRg604gMapg5kebFueWhnkO2DhAYGKldMV/KQQIND5Ic78Ixa8xFGB7l7MgGMDsDqMeIzwrgDBFCLNrviAYIUxv5rQi4z82EOd3XfoTopZCa8GaEDa/O+7jhe4gY+fF0uySfm4Aufj7q7lPYEAUFAEBAEchAAiWuZ2Zh/O2QnZQLJIsr1y5RdtUysvPDCFmYNuBAp7/yZJBAOoy8wpmRp0XBGvKpMVetz5ctweOyBmJ6ijaOidm7LM7KNQ+0vbc7zNF+ap5gx89XDs24j70Tn74NYfQ8CAdK1s4GygeXv5rFnkOuhCznXuryrfNl0fnD9KCTp67CO+YDLtrGNcjhJobG/v3+g+17G0bPhJHoEB7oT3Za+6nx9X/XKUy3MdrMyV20vW95sH203gUeTZar4PjRlWsbpcVUHxpQTJ2C0oJFvQlQz4OQSf1jVH545brMxW9zEy5afTUtjk36W2bLZ+6q4ZOvLvSBABDAnfLIsEvgub6NuIYFZtv1UvWgKshRvz/Iwp1Ty04vVupHN+CLV/qZu/L0zbCtrsTvg18FYXhd5Irk1z8iKYdCyJpdIBD4pdzD7QeT/HoYdH5WouyNFzJMuduHYM7BvKwVbzQVMFmyqrGMz7sg7jqKwiQe5VIBWEh/c7QSe3xqGEb/g4oD7CSIfqtvCy/Pnv+6ifvyrE3UHqPDErGTmm+lV4tl2szJXactWNgj2z5D+gnm+H+PRYhyyn+C0jx7jRQEynQOHDssFUBmA9Hxokta8+iQ5QRC+4xF5rIuAH4X2QDI9nUansCRrJSUW3zq28fz5Z2N8Bs54vnNSLv8/5Ef/+iztwrIejgrEkW7+6zJHAZrPy8Q6v5cY/y4mNOA6w/RjYDouqif5goAFgZaRBjdpJfaC43sddRr8o4an/D42o6d7Gk383c2OPcNXEYntouPtDDwt4/5WPSMcb4kfGLOv7QGiXxtjsUZBeJ/h27vJTOUOJp5rKi0Bo8sxyOJYW/SaPaHxMSxK6CeIL/EsoOOPUKeJr1WkL+tvcNZcJrILZNA1ptUtgLnEyz0hWLd/Brv2FrBdOVB9v3IjSzYAjWUDZMIMjefPn3fKEgdUnL1bbMtsSMVtaZZi7qRsuxaZ3ZVXyon3ZvRKNtEyy+3t7fF+YKa54iBsLKvDREeyVzwXksxu5nlli+n7Jr6QLkHUjqfT6WEJMlrpOeEZHPC7A+TuFH0c5Z1/u8zz4juI9uMfFhwQxjzCxYkNy0gQBGwIxMuqURi/35wvYZh3YiuXTYOT/o/w/d5hep47GG45YpmywfdC7tVTwXe+01Xbzdv6pHvb6NXQAuIT3OJzcGkB1/2M1jlucgJyAd0H/DaW8XXoYcl+ghcr/o7Dd+Rj1O+xjX384P07vKi/0A2aV6T3acEUeCEcEpcwqzYrO+LJvrX9g/jFjB0oa0thR4XSyWkyiI/REA6qv3K9BKWbzSlommJni8Ea9202rcw9NX3cnxCrqNUxQXihy1QtLINWxoWFNl7AP0WX/XV0y4kcGh3nl56tTx6Obqb7eI74xWUmpeLo4wAJDSNxjOJj4z4VBQEb6QS2jfe0pe7ZTtnQNAtCO8a6AzPNHY+JZpwNOWeymOWh0bvEfcdMQ3yCvyHeRfVrM141aCGtib84oD2StG+gkXxUQXs2sckRBPgxGRM/3Xp8ZdoV5Ou/evXyKJWz5A21nCC6HK8Ok+k0OOr1XnK8EgSBagiUdC2SbdR0NYIJHhoew6iC3xPqTNdYGVDl+zLRLMbd4bsK3zdmiJUULaaoJdE+42UC9yrOvxXjdspUW1uZSlrAdTyjtY0s3XByZrRG3qcrvXG6hP3O5Q5mHy/F93i5rIFuRawZKyQqDdQQTfBvFqj25lm4fLGQ2IJIzVlm5UislTvAvoCuNiJJXv5wWBeRpUjKosYq3dSbDq0ZlkT1i4Rq3RaseA8sRUon+Yrk2fCj9rZ0Q5sr2IRWp52n1VlGFBCFIUjC4TJ1zTpYln1h3mfjikBc6/Qg8I/K7ucDyRmCoJ6quk3uXyvSnqn+dHfxFQT1cSoh/2b2fiUENF2Ymj+kdIxUEKEIy9P25V3Kg/7PDbLWgEbyCvUfGW04o/hcHuE5DVwF1JL1MfI7RpkOlsy/LXo2RnlrlG2HYUhZdcCexgAazN+MdIJcBYFqCOA7XE2oPD+3bF24g6G/tsukfOIORq/W3HhhH3nqe8Jv0eNDkZNjtgOtTxefy2bSpueRBOh4fIWChHOkSmvnac3MesoIoTNLYzu7EPz5XkDOpW6c6n9Gmxq+csqtuiu/zYxE8YfjT/G9lvALKq9oQIP2wt+7hI+JiSuz5nQSM77UJJ34w5Fnsb+hOnppoJE2PgiYpIJ3IISJ70EcZUMQqHFbvhO+SLYQM/OJLYf9sV+abSsfiOBl4TXK4oO4EvnDXoDgkNhFaY2UIcb2f6kZwsyiIEGc4O9doIGDOWjTQMZMN+PA6sC8ZxwkaiEtW4b3IJhNXPgXBxJQFY0vJHNoDe/hLMSEyEX+WIpkl8u+iPZ5z0AyCIL2Ir4p+AcSOskrQjJGbR+INfswykanJHB5dfPyFLHk566hywn500jIdRkEkrlk/h2uHPWXaiohe/MJnVt/dEVO3r7x+YK27pLkRufbrsznnKfzWJ/t6Htek9UxY06IwiuSO7NMNh6PMQqMH01+JeORbHt13ifjmWMIZZIizfNe1vWM5j2sPdbSPYAjvdbxctc5Nlp5tf+et//3N3BHaQtV9wXY2lg2Te2DWLZ6QT0QN6jUffzDLyv6HkT5aKj3NkaejzMa/QnduGQ/NLrh5IMw/7Dr9OQaDefkGdZJkfcB2scHC0t18d41ULQ44GO5QkDtMay4X/MXopYzkWs+qZnNgyh8a95vN+6fAZP4Awq5WpyQ75vmhdq+xMAhIXAgdy08k2H+c4keWvIbZfCDZu4Ak8IsZDWVyuBjll+WEHEcIJcnWP5toXIzaSA6RhqyFi21k/xq/ykrCOoTLNde65owZuH780Tfl71CLmgpw0tgMSN/eBex7Cuav7IYSrlFBDKuRQaLJfJT8GPoK7yTLZZSK2F9xhng4PgEhye0EY3fWZJA7Bt8jPQz/d3PcjGBiwIYCnod3jP4mCdYP7lL//f96REVIyoVWyyCaygnLsw5hXmcVzBXdjB/HeMrZPa5Yf10i9u9u/GjI7g2+YZSQE4oW9La0nU+I3Pk3OIGDmAmOeM0zMQznDgLqAyleW2qW7juqbgtz9D44p3gu3Sy/88ufvv3apl09lBVBwsvoU5f9xUvGzY65miFfA9m37H7FQ6ipqCMLPDWkBjy9ZmTw7gLPKD5/i0vio1aXH13DdW6KgPIawpoCXszfexv/HKQbRJ7BA7iVz+bgfvEdN+SsYUkap+mU+8xyR+7x2R+jMtOfZlQrnUHfFGP0AeeGZ5PiaVcavtQZyEEwZRtsC1nSNpP3kO0MTQLghQ19bNQ6f0qhIhEDwTtyCBoDVjhdtBWz+xnlThJIPf/oY2OaqdNudH3WN0XXhLyt3eN8ceYJxUiLEPbl7gLG5QCgoBCAKTsEw0GPktvdbz8laeCwJQSAR/xNi6z70MSBBCAQxI0pDdUmQ5IYSeZvzk3+fxuiPOYr8LEw9FoLoJBEgGSdERCqcpz7j3lkjMI5hjLU2MoQ5pot6nyZxcoH45KHbk2q7H+CMkw5O4Dvw57U1rAPuMM63xGSQ/Jf+B1XtZNDrCeoNaHZn17PGjpdHyLD3S87DXZJxn7VaaxbpOEMnnbTGJjtAZN2IFxu7EoAOmis4a9w2j4oPfmBbyCP4EFzId8CVGOYEzs5WtLhTzQHM7+XNq/2vrLNBQNOVaOmcvkruUFrdrNVI5vExW5LWc7aRmDiw4n8+1Iss1eo7e6d5I7HXddM8SlZ5R7aMStUWgYWjoD2I90nFeQtbZ5H4bTM/O+TFxpFMe6LAjnbELUaates3JRq1mlTbqJSWPol3ZfU6UfKXsvEWjpUS/st9MZOVeSMUzsY1UkdgdjFmc+vv8fgR4OzXTEG8m8lJ0zoyHLF2mK4v2E2D5k9B03T5LAdpPrvMe4HMqX2Yc4r7W5GLWiureE6Dzt6ntcWzq+jmek2654xfMrDub3ad7xggUtDef5QStxA2NYGc0zGUtvRk3nredOLWEeO1vnRk8V1K+aPm7553FvHQkQXtB29qVl/u0LWIqGVSpfVP6yKSd/vNRsKWrs9bDkbiOJWhdodE7Rd5P9w9kwn7t1qYL5dzGE4d4I2k89tEaeRot79KBh02XHIHRvQWbiLzdlCazzrFeT+LBuulDKkGRcRauWaWeASSOWqQyhTdctvqNceGcmKNlg6SoW0Kh3iSpt1lMB1sT5Rj66oFwFgRIIDPFGNqAxc24dKmzD93DCRvLD6SeLUkPNA4dc2lTaLPN91s1zP/hFlR/8LIu59xH3HmIOfaYIpW5PXamE8OFk+U0/k1F4m2yrSs49rrgSNdCYFnaiChAjLGNjlTD5ToNx6dioO9TtlZ9TjdqMup5RzKNm38+ZSnm36X3QyVaApJ3UaWKz9v0JjYbyWnTl8fnhEIkG84mL8gMYDHF7aqsEFfMpwORpIR9BHdxkmVglrCZtWx0QsFh1rMpyn9q3SJvwweftq2N5HuWCoccCLrZN7d/vhovpSYrSihGYExJJrverD0kLaY42kbOjgfsrin69maInS+dzLY+Zh5d+mL7flTv/ArKdJ9L41AKecTlxV6RbtxxcZgUxmXWTnLgxN6iYZSCSMQAZwfhiCI1WXARkq2WWzcYz5NFjXbMMyOHMRyPiYzOvWjz4Fs9TV1nLZw7y4YdR/ni1APqaGKUkzrNVWm2uZHQfcr3fCHBValUE1JFsvaJ2lPatz3Kc6/a9/WbR3FrUJggRv3f76q+2dtmvMTfztnRYFlOuEto6WbY9sy3XM3L1adYtE19n+9nnEBNAbkLkfjdHwH42/ZUOGocw+3p3VEB+EzQRf6rsrH5o7KsjIfFHIIdfaz+DNJyAVXKH9azBn2v/rPlGomL3fST1aW2LvlpG9q5E+YGzTpJAelyF/HFAaR9B6SES53TKbtzxdAeQmFNIQxxq3ze2G6PMlwKEZmgQmofu0qYBiP81iTLI4xjlm6xDkpc17GA6gzIwSW7wbmVJNvo/0JnZ5WGdXuaKvZ30vTgLeTLNClWMGFiVqqkcPfMdiwPqkzzfK02zHrtc7x4Caq4b1z2ydbVbt5zS3vIIxKwvYf6bXiKMCVkXGjrsyYnds3wHw4kr11BAiPp52j9XPS4Lu8gfSRaI0RFUmmegqkPeu9pZPT1uvx/3hf0T3MuHOLRfjpCX56hCH0GOLNh5L6cydrVXV3pCRKL+vL3oeB6/HzFzOTZvKdckaYYLl5FGKaMh1MnqapLHtAGIKkACrkLwvY7t2pU+I02ZDBzM5Fk8IX/+pU5Q5A++/u6PllmPXa6CgCAgCJgIqCVgJPkRnELOtQBmoQ3FjQlooceJubFzITcnAaToPHLkYyPlmW0jq1apJ9WSQ6ZnTSTWyS5ZeyB134NIxsvdrJNHWmGt9MwlG/b99Wd9loygrdTkOK/m9ks4L7O9GJzxXkAL2FUSNDlp3yerTGrcoAWMQ552C2UO9FOa+xDkyRz6fOUUydNF9bWlIyj/dh6/dbFTQ+KJS+PJMtg0DStz3/xBMabPQiF/BoISFQQEgXuLwIwAwm/NAHv0zC/XnQIFexGPQcwulFq6lGzKGWbTVpjaPtdm1ozqe6jrJ7797HslwaBHDy6+LL2sVCAb/fpNdL9lrrGmM4oa1rIk9zscMCFzY38fInYoJrRgz3DpM75sAJFqcvmxSv2bG39SxfVJlbbzypp7+VjO5tMvs4dvtoRLDRg0f/pz27L1w/awCDx7N0C4h7ZydaQpVy11NLXQBo04TBKMz9zFQiEjIUOm6dT6iRzxZgAkUUFAELjXCMw2/qn9ZpVIxwaR4+TVBQn8BseZvCN5ig0ecgRgPpaXz11FqP1z5TnTo6meaBeKRH6UOxllK9i8lOsykR+81vGy17zlX5L7su1sqxxOepiNmRN3VfJmkbtJn3RV/mCN+24brmiURmqsx4Dzgls6rq+Z5d2RTs9owJqQn5+VVFA+AnUaSG6+37yiZVXd0KaufCYgf1for6P7xDuCvYY3PX1fcI1PNNkGuS+QS7IFAUFAENgaAjMNICWAVgxawPmXrCkV8sZ0CunRFNkI+tQM5MH8PeMbT5lho+UDVFmYmIxmKkSjA+4bhNHKORxg9rGXzqoVpPWyq0+OxaX9cwkSa/+izHLwvHAls+w87R/0X8O8ZeN5l/MYl6yhGWnPU+YxjrWqMcm89uZiJDInJ5/NjCFA3Lh0N9ycBElPOI6tidg4udvo/yF66yQ92pZyzTQu+84DyZDWjKnj5IbzXMb8x8b90IhvPQpt5Ccg+1Y5EtIbj7uTKTCZTgOc3PFykkl33aLcT2NXpqQLAoKAIHAfEUgRQHgMhw+ioOMAYvjg4urIkaeTBzpiu9LzdOjtNWOiGJPDlYhhA31QK9iFlS/8EwUX2jmyOjKla5OBaThF48SV50yPtX+gU7YAg40qS7bU/oFoWwPHYc3IJJL0vecF7Xi5NMoQb6MsjFxeG7c7HaXPQ5CVlhKyTc1PkbYqb0AgRcO8/GweiFTunrJs+Xrv4718cZOQ4yDbNtMwnjhkNXRIHyEjrgPS1EJ8iD8ztOY36R9w8/RtxfwuyL7zs5qVimQXS+Zcyh1n83Lum3AYfY33Sfb/5YAkWYKAIHC/EEgRQGqKkuNfvGYWBsw9XHZNnTuYLVN0rzRRnKwGSqN2XVSnXL4Pf39RSx1p1wcpakGT5qgaDWH4MXBkWpOLtH84N7FnrWhJzNP+gV5CM7l4vJtuRsnxCcqB+HnNZISucSa1eKajrr/r10XH0LF7mKNl5Cb5Oz9/ebhM3W3UAanDkmbSM2Q/yMpgps0NQHSpOXmk4YNO5RWkp4FLk3EG9pPE3P/VcvPQXWJbOf7Zy5fLOW4mfiSBkPzRtqSXfgUBQUAQ2CUEZnsAtVB5GiMsu3Z0uVWu1F7luXxh2/5yy3Cc7Logfwcu+XhYtCvPmR5r/xy5FbR/GHelfYnUZP7YfQoN59Mr/GGVPeQE1gXlazqkySRHwypGM5nKW7pNbeynFpDP9M6HzF6+2KefHnRmP+TMAETnh6E/1PGs9hCkp6XzeM32Y+YZ8aUxTwxOjJaKoxOS9exfthrG9aT6qR1RjxpD3RZJIA1J9L1cBQFBQBC4zwgsEMBcjRFcoJDErAIY6+9He9zQ7WwHX9onOO/2Yz8+9zA+TH6ySp/zutHwvZx+5+XmMWrsjGXJeUYSm1TR/uWfcYxj37yAR9i8UITvO/pHxKRFQ5Z2tuMy9zz2pUy5XSpDx9CQRz9vOobu7pJ865SFJEi3r5Zy41ulkdNZIx3R14xxQwOkuanzTL+CZvs6v+7r/r7DEt3RET7rR9TUZv9gsZvS1EH2TxxN5CQH39Pti0kCUbgjJDAHMskSBASBe4PAAgGkxsh3u+BoKBKzFECK/EGL5dbQsW91FIrHJWMc3XKCvw+hmTxCveFSHc8q4WBr5XQ6JlkkWzh9BHI1Z0WMCOXNsySGmrL03r+4D+z9M5rPRIEJNXxJGRK+RqZApVvgOLb5OKzUyBYKJxax99MxdPoEDtPow4ynDUD0IzLJnTpOLs4yl4RNh9O6nnGdGPGNRSGTtV9FavuGIJ2MJtTIckf5PnHPIEqY/YAE/rrrriU5goAgIAjcfQRSewD1cGM3JK4j2RItYK+K0YNuFwYbWH5xkz9o2kY/+fYjmvTZhyRS6rzgNtpt6LYrXlmvDbKFNsJTkFoPhBBJ8fF0ExC7r0GgJsh/GLn7sGr/KB/PZaQ8pmU0iOQztLWxkLeUvzEhluwo4xi6cV8cQ5Oggch1FWwHGj5osJwGIPMy0cjQVD+cp8dGIfFtmmDqEskV/c7O1zVJY7pU8V1GW+kt7lcsbkOXCMPpGRyEd/T9dBrxB9RQ35e90pAIS9OHcPNzjTqNpF50jvdqcp8cjpfFS8oJAoLA/UBgQQPIYSduSJzaNizhBqfUnNn+qDWzQQfjkkukt215Km1y40+fFBFLaiixPHwE9y8fJ1pBHxNfXSG2QCUxPMWEyBNEOjktE4fvuDfP/EPaN4kmL7yGYcoV24rbK71vL6fH8llWclq++nZLKsvf/lwKnxP/nQ/QVJnv8synH97FAz34HEL1tS6jl32zGjO0P9RlsleQzIlOg6FIQ8erX8OPzDqJRtdMKR9P3gP/TNeAjK3kaDedUv5KjSJ8TVITaAT/Mnu0nJEpUUFAEBAE7jQCVgIYj9jfm33xWhDoapKTvWpSBMIHp81Prkn8uNxaQKYm2O93SHJn6cuaRKJIrSBIYJ6c1rq3PRHayXHuGCosTee2s8VM0zE0xKh8qscWRV+6a0V8x7oBGnBkSNyCAYguG4Z7M/JIosR0UxuHtFE+GZsvLZNwmvsIdR9lrtBitnQ5tDPU8WWvytnzjJxCy3kK2ZYiqIkBTNoIDDJeLmG4suxwpJ4gIAgIAjuDgJMAFmgBCwcAwtfkkpQifu28CiBxJ8s4K6aVLLRsl3lt35E8ToADTOIn1HwWnGJyq7V/+nlxsjYJhFr+09l3+TrSg6MmzyRxSJ/l6TL6qvbM8T2JQ0Jq5i5hsKw7VFnWCyyJB2YGjG865n2ZOPskedRl85acdZmia0Ja51pAlG+uYhiULPmmSCAMjUL4CORxeRIEAUFAELg/CDgJYAxBvhawNpRA4p7R+pWErmyjOkIrAwAADqJJREFUXGqGQcc1yjdcdUiY+If8Af4mrnK7lq40fDHhoyU0jWDw90QZx0zqMkzZtXFn5UkcQyepeI4t7Kr8KFvm7t2bmjgSuGIDEI0ByNdIx9Vxcgf6HtfZErGRNosqAjmeJXjRcVVNG95VWqzPAvdyzm5WiMD9Sw/Vx/Mmqss2r+t5at9f30hTJHA5zaLRjkQFAUFAELg1COQSQHUk2WD9o8GyUbzvLnjHpWMuG/+h+2nb1S/JH1zJ5JM/ZU1M0kTyRBJFMhWTQuQVLqO6Oq85PZED2hksZcNtyxNq+OgCRxO+rGYUS+yXEKFhE4NtVXFLY2tjl9LURD02ZOoY8TsZNU/5SEjvfN+smWcbfNrKNz5Kr6nLgYwNddx9jc6MvIY6PcP6rhnl4ihdqyh5ddYA2ruxvln1ys+t0QYI216KbBp5paKvXr08QsG+UbjSeI16EhUEBAFB4FYikEsAOSIQEvOLd+2DjLDEg78ODSiwd/A7kkFTMzgnf/nWxDQUyQpLMkVCyDxFsnzPDw4TY5LY32C2yrruJyR7IHl+IsfVIc4mfsGj7PL2QSpS7CTGPOKOeyPXJfR22k05ht6OCBvs1eKoeUbAcgxAYgkzS65NQ2zuHRwb99YoCbe57M7lXJLAzD7EVF3uFQT5u0Jix8iYwIK31u+Nly9fDkzZ2N+qy7YkgSCWIy23Hm9VzaeuL1dBQBAQBG4TAlY3MOYASEiwPHtGDZ2ZvqF4g2SQ5xODCI6hJbvAvqhnWBY7cPVPLRhcyRy68rPpSsvpkWiir7zQQ//f5xWI4MYGjBLuY6bAar4ZPlsHk85Z3pFv2fK8J/HN3+9Y/Yg7Wz+7lkbH0ND2AE+71tMlL7VRJyefXbvyXelcdlaaR1eRtaeTlJCMZDpyGoDocrQiBlb61rzOSI6ZaItH0fSJ7++9Q16T+ZQD+wevYS0LmfyvYFoyhqZxklgax8vTbZYzA+Q/KkM4zTpl4nt7/hnODW7psmrJufRnXdczr8DskCRX482r0i4emeUkLggIAoLAXUOgkABywNROgSA9A0Fq2gDwQbrgO3D2hel74QHKNkAaH4IIoY6bsNnas6XFfcenYiDmDvDhFxa6kslW5/5DfPF3sunz+2j44OKqlEaDJ4eABLbmdbOxaPh+76qXTS263498alkajnJwoZPa2O4odvuSQSQmcNp7gXfotKr0JIFV64DYsEq/ar06yycGG/5Bps1R5n7hlqQL2rgxMprpTP9t+t59R7yhAXtkkiKWTggSP8c+40zhv2yY0NWKRYuZLbfUPdvF+Aao3GYDfL5040Lt4FINopIaL3wE7n2D24Zqp6N8BJb6zC/bt9QTBAQBQWCbCJQigBQwJnjJWbQL8mIqaMIdzDH3ranMYbYQl3FDL4DVbkwKW2jxIFtmxfvYlUx2z1xRm/FRb/naTZIrPa7c5jhGTI7nOYVKt2W2QYKK+bZlpqXiiduXcSrtDt0YWsDZqDD5T2Y3OxTBMu24BnG+XmxjbhyymJdKGeGuaaaYZwWb6a44SRHyHoF4v8Dn9Bjxhquskd7nsu+rV3FdI9kaZftl2lyozD5A1to6A5+3TxAf6PtlrgkJzDqK9jtoSwjgMoBKHUFAELgVCJQmgFwqxZ68HkbVdYysTaJCbaEtXxGzkc7jkuaet9cKoohf4K2YROrMpa7R6KeKlr7cU5e/rApB/AAaxTeTIpE4HixVX6Fcw1m2ZFtm/XjfX5Sn/fJHWE5+YdbZ1TiWF7HnKnYvMqmiJcIEPYam50my7JiMTp0ZnBoqfcbBRQiflfsZpGos3kTRTX8x1Z2SaKWeH3le0OQePMrqLl0uBwYbA4yDY9DjwJ66cnIlBGnfIJAhlo5/MyrXc7oUrG9fIOUFtWzEHprJx2YJtefwa8qLcU/MvLw4tYRwb9NCmUrvAdskvtiTeKjqw9dhGhfjHWNej3XKBGJEzad2f1NkcFOmTSkjCAgCgsAuI+BXEa6MAQYNKpY5gzbRngXPIFB7NTIYDWFg8XrqhTSocE5Kqr9rjL/hwqDKWH44/vRdrlYz3vdnJ8eu/kvICI1i+CjPcMTVtqQLAoKAILArCGCL0a/wvf83pjzwd/qLD3pv/tZMk7ggIAjUh0AlAshuS5AS7M0JH1VdijWHlPSxd5lLqMwK7vgAJO6rLBksNQa6kbFYEtu6UgYkHVtekhbvITx0589zeLweNtq3sNHqMdSPiLtDFYLqbkVyBAFBQBDYLgJCALeLv/R+PxEovQSs4SGxw765E+zlA0GzBzpoBsk6XJYERl7QroH8UTgs8XrtfS/AcXSfjjw/+oqWuljKouxOzR/yBnWRPzBsWCXb9xDGGlVv/yBF+KKQciMUcvPeMprWpG35LwgIAoKAICAICAL3GYHKBJBgkXhgP+BDRLsO8BrLkMBkiRnWrnkGD44Oi5NhdAIXD7BhLCjqj2786VFBoTibBiTYhN7JKTuzSo61jh73dVG75z0EvcOeKq+Je1W9kPAZ3ZS3SjYqSVQQEAQEAUFAEBAEBIEYgSqsYwGyH46fXBcsU5a2zOXSpx+Fl6BnzYWO0gloE6dmFPgDTFepcuePoH0cQgH3PWQZ+14w1rV972aitZqxu5ccLSjrANwxNI6TmrSZSoyYoB7m7W/U8spVEBAEBIHbgIAsAd+GpyQy3jUEltIAahDoHgVHk4EEOl26lNIEJm5OwlMQroIAR8vQzikS1qNWDZa3x6jXRkVo1+oI8VioLSSBQ9AaOozSCzxoPpNOioVlE03WqjGA/E6PhPzViKg0JQgIAoKAICAI3EMEglXGTCKC5dJDarpy2olJYOxvL1OIBC62ns33w6dqRUP2pTVwTGSce/V4fi4NIpA0UIXv4qW0NvUuDl7GJAgIAoKAICAICAL1IbASAaQYsTYKp28giqVOZ8AxZt5lrOlTRRjHPsF81ynz5no4icO57EkZuC+RjqhBBj9MyCCWce9OEPJ3d56ljEQQEAQEAUFAENg6AisTQI6Amji4fjlENI8EcjX0FEuoV9jv8Q3jJUY/IZkDsSvtkZ9kkG5f4Ji3UaL921BEyN9teEoioyAgCAgCgoAgcIsQqIUAcrylSWBpR8/c7xceVnV1wmVl7Ev8Jmdfono8NPYoIKyqZN2XgiVzszshfyYaEhcEBAFBQBAQBASBWhBYyQgkKwFJIFy5fLwf7V0XE7Bs7dQ9lny/LK310zWVW5ZLfe+6goDByfOX3DPoQd7mvrff9L3wIKIhyey4K/8A2UtpEUnwIi8aw4wEbmC8r3E/gQHJ6Ma7Gb/nBW24fzll3wVByF8BQJItCAgCgoAgIAgIAsshUCsBpAhcggWpOlyGBMbEyQ+OeO5wleHQf+B7UXAOYtUpUa8Hw5EZuYS8Y9Th3xB/qVB8wgeLQ5Po+ydFMsdEM/Lp5qaV6sR6E7t6wRnEsWzWEpIoCAgCgoAgIAgIAoLAsgjUTgApCEkgLo/KEahEdJK/n7Dk+2HvzThJKfc/drAc7YFYOV3RzBrifsIyS8oklPuRf1VM1miZHJKocbzWELflBd2Sex7ZxoCOqPPatHYkiYKAICAICAKCgCAgCJREYC0EUPdNFy1Yln2bd2ycLguy1cTevXewDr648cJeGQKUWBJzORW18wOWYoMnPyuhWUzIX/ESNggrlpGvjvK65ZJ0gOVeji2v3CwPDq4f9N68mN1LRBAQBAQBQUAQEAQEgTUgsFYCSHmpcYOWbgSHzdSoNQvGgD143in2yT37EUTwJy/s24ig1vphvx736RUE7Tz6zaigoJe0G1yDUDbyyibk742T/M2IX+Q1C6lp0lFMUIuWkfNkkjxBQBAQBAQBQUAQEATKIgAus5mQaNaCU/TWrdAjjSioESQRHC/RBpZTw1LLqSRtZTSVLvJH2UBcOyCwPJmkWWGMpWWs0KYUFQQEAUHg1iAgR8Hdmkclgt4hBDZGADVmFc781VXUlY6dy1vm4rzgk/d7b3qZRqy3Zfcq2tr8Q/fTdhBFn4D0dayNuxPh49DHnsQvB+4ikiMICAKCwN1HQAjg3X/GMsLdQ2DtS8DZIXOZE9qyR9jvV1Eb6LeybdnuwWjHHgwz6JLGlm+mQQ7sO9zD0nTxUnLskBrL2axP0ufDXQz6gkuXqOwy76xr1OvD4OXEtrw9KyQRQUAQEAQEAUFAEBAE1oTAxgkgx6GIzwkI2AWsbS+h2WvVMb4qxEot+Z4X7feDXPDH552h7QZPMcF9C3sPG5QXWr+KAVpMf+/s/RLGKBUbluKCgCAgCAgCgoAgIAiURgC8ZvuBy8JeNIVGcHUiiAGNYyfMvv8W8dgBM0dIJ8zGPkKQTq+9qZFTphC+AmW5d1OISz+CgCBwmxCQJeDb9LRE1ruCwFY0gFnwlPXrsA4iCK1cE0SyCfVcK9HQhXF3+17gQYO3jNourr/cP38U+dEFXLv0l6svtQQBQUAQEAQEAUFAEKgfgZ0ggHpYmgjSHQvcxtCatqPzbtl1AL+DIH7VTjS5ZWMUcQUBQUAQEAQEAUHgliKwUwRQY6gMOI6wR/CErlWiyH8G1d2Bzt/FK5d5Pbisge/CAZead1FGkUkQEAQEgV1EIIy8P2KvdSoEXvTHVILcCAKCQK0IZD5ytbZda2O02AUZhNXt7pBBkj5oKQe+H74uY3VcKyDSmCAgCAgCdwSB709++S+DcPo/MJx/pYb0D3/8ae8//usvfvvjHRmiDEMQ2DkEbg0BNJEDGWzsgQzimLXHSOdev6aZv644CR/aHoa+93bqhUPR9K0LaWlXEBAE7hsCk7/65cdBcPNXHPf+3v6rf37+23+4bxjIeAWBTSJwKwlgFiASwn1vH0vEYQuneXwEK+AmDEG4ZNzIli1/Hzue5kkkX0eeP5p605EQvvLoSUlBQBAQBAQBQUAQ2F0E7gQBzIP3j8e//PlP3s3P02WCP8d+k++jKPy9mR4E4ffvn3+VSjPzJS4ICAKCgCAgCAgCgsBdQOD/A497TRFqF6UzAAAAAElFTkSuQmCC"})],-1)]))}const l=Q(C,[["render",v]]);export{l as A}; +import{_ as Q}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{b as I,c as B,d as A}from"./app-DolNWhzr.js";const C={},E={width:"640",height:"130",viewBox:"0 0 640 130",fill:"none",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};function v(f,g){return I(),B("svg",E,g[0]||(g[0]=[A("rect",{width:"640",height:"130",fill:"url(#pattern0_5_5)"},null,-1),A("defs",null,[A("pattern",{id:"pattern0_5_5",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},[A("use",{"xlink:href":"#image0_5_5",transform:"scale(0.0015625 0.00769231)"})]),A("image",{id:"image0_5_5",width:"640",height:"130","xlink:href":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAACCCAYAAADWmnkBAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACgKADAAQAAAABAAAAggAAAAA3mjyUAABAAElEQVR4Ae19TYwjR5ZeZlZpAdvqEWXAP8DCIwo+2JdFV98XaNZ9ALFbO5e5NOtkYLFGsVqz8LG6zqPuYl108KXYgPc0oy7qsOdiA95zU5iLDzZELbCAfbGokYxZrIqZ/r7MCDIyGZE/ZPKnql4AVRkZvy++TDI+voj3wvfuUPjx5JM/m0Z7P/cj/898L/p3vuf/PIrCDzzf/7Myw4x87/sg8n/PsqHn/Z2Pe9T//c8urv57mfpSRhAQBAQBQWB5BP5w/Mv/EAXe9IPz3/7P5VuRmoKAIFAGAb9MoV0s81233djz9lp+FD32vOjA8/zWeuX0RyCVo9D33k69cPhhbzBeb3/SuiAgCAgC9weBH46f/g1G+6t4xL73Xx/03vyn+zN6GakgsHkEbhUBBOlrvucF7SiKPlk/4ct/GABuHHnewPfD1+/3BqP80pIrCAgCgoAg4ELgh//85LEX+EMzH9+tj+S71URE4oJAvQjs19tc/a1R0wfS14ki/5kXRQcgXQjb562QowlBulEUdH88fipkkI9FgiAgCAgCSyDgB/6fJt/t88pTL/hT3MmP6zkkEhMEakVgZwngD92/wPJu+CyKvE7yxZD9eqgVh5UaM8ngD8efjiI/uvhZ701/pUalsiAgCAgCgoAgIAgIAmtCYOcI4B+6TzvY1wdtX9jaXcqX9zSiAz/yLrGf5RyKyosbL+xhv+Akr4bkCQKCgCAgCAgCgoAgsEkEdoYAkvgFkXcKjV+zniVeH0sH4QQWwG8JKMjk2PeCMePZEHlRAwYeB0wHefsI903EeN9g2pKhgU5P973g+IfuUyGCS4Io1QQBQUAQEAQEAUGgfgS2TgC51OtF01OQpRU0fiR70RBuXL4OvHC05MbhQRZe7j/c9/ZBBEPISGvjpSyNZ0Twx+7Ts/d7b3rZfuReEBAEBAFBQBAQBASBTSKwNWsKWvTuR8E5BtteYsATCD5QLlkGm1xiTQhr+An6b6u9f5XER71x5AdHD3q/G1aqKIUFAUFAELijCMCQ7lf4PqUbmFnA9/svPui9+dtZgkQEAUGgVgS2QgChCYP1rHeKkTQqjmYQ+f7rn/W+HFSst5biP3bbB7ACfobGO/irPJYbPzzaJHldCwjSqCAgCAgCKyIgBHBFAKW6ILAEAhslgInWz7+sspSaaMy81zCm6O+y8+WZ8Uq1ZeIJCO3RrhDaJd4fqSIICAKCwMoICAFcGUJpQBCojMDG9gAmBMnjkm8pTRmJH5YAzuANvl95VFuooNy+9Gd7GssRwQYsnq/w5df/yQ9PRBu4hQcnXQoCgoAgIAgIAvcQgWDdY6YhBQjOJV2joK9C8qc0fkfvX7z5+Db60uPevgcXV4eeHxzSMKUMvhGWkPejvWsuKZcpL2UEAUFAEBAEBAFBQBBYBYG1EsBkyXfvmgSnhJBw2eKd3Vbilx2fSQRJarP5i/c45SQKrqkpXcyTFEFAEBAEBAFBQBAQBOpDYG0EkNosWPm+gxasjFZrAIOIR1jufVHf0HajJRJBklqSW0g0KZAKS8JwIt19+qKgnGQLAoKAICAICAKCgCCwNAJrIYDUYlGbBamKlnxpBPHkwcWbJ7ts4LE0ukZFkluS3FLLwrCQ5rK5UV2igoAgIAgIAoKAICAI1IZA7QRQGXuQvBSRP2r9sM9vN1y61IZoTkMkudwf6PveSU6xOIvL5iSB3ENZVFbyBQFBQBAQBAQBQUAQqIJArQTQIH+5MpAAKa1f0ZJobju3NZOngfjQBhbtDSQJpHGIkMDb+qRFbkFAEBAEBAFBYDcRqI0AliR/MPQIDuU4NM/jcXVw/VJiSTjCXkohgbv58RGpBAFBQBAQBASB24lALQSwHPnzR4mhhxyBpl8V+v2Ll4Q9r6/T7FeSQP/KniepgoAgIAgIAoKAICAIVENgZQJYnvxND++6oUc16OelYSV8VLwv0G+JYcgcM4kJAoKAICAICAKCwPIIrEQA6epFOXh2SoB9bv0bPyZ/93K/nxOYTAaXxSPfO8okp265J/CH46c8TUWCICAICAKCgCAgCAgCSyOwNAGkk2fl6sXZOckftVtc6nQWkowZAjz5pIgEonCXWtdZJYkIAoKAICAICAKCgCBQEYGlCCCtUmGYwD1pThclmvxVlOfeFy9DAql1lWPj7v2rIgAIAoKAICAICAJLI7AUAXwvCrAMmXfCh08L10Jfd0tLfccrliGB1L6Ke5g7/iLI8AQBQUAQEAQEgTUhUJkAcvmRe9Hc8tDaV/b8ufEpl0MSiJK9nNLQwoplcA4+kiUICAKCgCAgCAgCDgT2HenWZO77w/JjnhHCBOSPx7rJnj8rgtUS4Sz7BEYfTdRq22vCMrj7tHuX/Cp2u93m/v4+x+zd3PiTXu83I/vYJVUQmCOA96aB9+ZAp3z++edDHV/X9de//nVLt31zczPq9XryvacBkasgIAjsPALYqlc+/HD86bu8pV+ebkEHx+VblJJFCKj9ltd3Gffnz593PM//BFi08NfAXyrARc4oivyvwvCmj0l2nMrMuWG7qPcsp8hClu/7bz0vHIdhOCg7oT9//tllFHnNhcYqJmCckzCcntjGiLGcYywzgmM2DZm/evXq856ZpuMkRkGwh7qL8gWBd/Hy5cuBLrvsVfVBDBaeXdU29/b8s7LkjQQsDCM+3xb+mvjLhjEShmEYXNTxQ4I/ToIgOMa72ka7TfxlwwQJgyDwX5cdAxtI2o2fUWn8lnlPs8Lu0j1cXP0KK0t/Y8oU+t4vPui9+VszTeKCgCBQHwKlNYA/dJ++8CL3vj/6sRPyV9+D0S1RmwqDjyNlcW2dIKJo7xLlcarI7QpqAqfszTzJQSwOSIBBZE6fP//1GcjOi7zyOo/kD+9lS9+Xu0Yo73vo6xLErq8IGSd2a1Bj6KCfWkIQ7H+Nhl4sNuZ33X1ELZAIEtZxth61YiBJVvnCMC49yNapeq/6aLvlK9/idAoaANKWV4OEyff3LjGuVl455DXx1wmCsINnOcCzPCpL6s120V9MotmWmW6J8/PZId4nJ58Noyjub2wpl0rCM+/g/a6I3+w9PcePA7yn4dkyY0sJIjeCgCBwrxAoRQC59OtFHn75OsNgl5chKf++x2XFsGUbAebuSeQFoxvvZrSLy9ck1th7eeL2uRgd3LalYGrnMFGS/FUM0elnn332yXQ6PdzAhAfysNcGyXtSRaNTcUC1FE9IhI041tL8zjTS7f41fgiE1xCIZKtKaONZgij/Nd6b8tsKVH9X6KhZpTP+8ABJfYd39agOLWtO38DB72Jsnapjy2lTsgQBQeAeIBCUGSOMDThRu75wse8vPCrTzibL/KH7aZsnZ+Dvm/0o+MaLMGlE3qntDxqmc+aj3HcsT2fLu+ZmRRmFDFwYYgynMVF3FdihdJI/TFpLkL9kENQI7u3tXVMzs4FhNUBUrxOZN9Db0l3ES6FL174NFVcgf3p40OSFeG/++kAn5F2paVRks5lXLievgXf1qmx/Oe2Uyao0tjINShlBQBC42wgUEsAfun/RwmSNP3uIfH9nHD2TAJH0gcB950fRVYTlGPw17ZLbU1X5LpZc35EMUrOGdjdBNOwCGamKaE+MJDPagHueUzNhF+NcMl2F/OkxkQRC63Gu79d/9c83NJEvO5Tmjsu37Ljiesky7FKav2y/jb298LLMjwf8yKDmb+XPfkI6N/NjRfXVzA5a7gUBQUAQyCJQSAD9KLzMVjLuBz/rfTkw7rcS1cSPmj4QuA6EWPlLmwMhGQTROGe7JIJM22bg8jQJt0sGjj0h7K4S20+PoqhO0tZJCOVGxtWAkVOdstcuNCb/49ob3ZEGYXxxClHq+VzHPx72cz/P2Gv6gj8yaho+tHMb+7GC93Tvsia5pRlBQBC4wwjkEkDl86/pGP9OLP3SOMUgfg5RV07mUs45raC3vTSsCPfAOaJoyolyJwOXUUtMqhOUwQb62BBgXDQQGA1sbLzc17V+whkWjjkHk3ZO3q3IAsYL4+dSLPe5FQ1AvzdoY1RUFj/vjvO1gFEhmWY/us/i/jzs0eM41h82856ufxzSgyAgCKwXgVwjkAD7yiJH//iSOdumwQSJWGz9mmOZ7BB9heQIfWJpGAYZ2zR6wVLwCUhvCwNpLA7Gb1EL+KD3u+Fi3rZTYlcvOUL4J1l3JiRc1Bpioj2wVeRkx4nVZgFrKz9P80/gBiVFFNAP9vt5x2xzXi4dw37AZ0gZplOdd2O4BHFqbLO1avB72CDJfvXqVT/b9rbugeUILktOyvZvM7aBgUs71se7G1mw1uY7obRuqGsN0MoFzOtnc9V+z0Y23binRXHKXQ/JpOqvY5RLRRMXMl5pLFTlPt3KmA3xPcXnge+ha2ye+mE0NOtJXBAQBAQBEwEnAYy1fxbfYazse954mwRIyYbluCjvS9ocpxmfoN5onuDe3zgvk47hy/cc+wMf8ri7bZBg9DmG5vMiNmhJi5bcJVrAoS1ry2nOCQtv1QL5o6wkBJhcDzG5foNb6/NOCELuqSkLwyb5s5ENFBzAZcgVri5ZWwuNORLwnowdfThq1JEck+x+HS3V0QYI9eT8fDWnzCA8n4BIusLg1auXCyRb/SB4Ancs125C78LKf+zqDM90eH7+8kk2X1mkH+HdYVYnm897EOGWLT0/zf/W8Q7xPb1E3Y6tPsf8l3/5l+9/8cUXP9ryJU0QEAQEAecSMLV/LnjgoPPMlbfudC75KncoVjKw2L8/AmM98/zgECdr+Pj78MHFFeL6740PjdqHzEfdHuaZ8WIbiykRvnj3o72tncd744U9SDVZlIwpiRbQnred1IKl03FW82dKmUyu/oWZlo5Hzgk7Xa7cHbU7OSWbOXm7kNWmNmoXBKlLBjeBg2On/Gfl0bF0jhwHtjz0Z01nWTrPttXRaZDH2R/Io7NdXb/KVRHfsavOn/zJv3joypN0QUAQEASsBDB/7180VC5JNo4eLXydWq+0NBMQuT6I3ccPLr589KD35kXekii1eMzn0WvvX7z5OCGD0TDdpO0uOtgWCYw1j37OZBTtlkEAHNU2bQgyjZoyV55Ox8Q71PHsFfVrJTzVl5OzEm33XvkE3K4QNfUOMtvMa6roWTm0Z7pJa9t5RK3Ip5+SZ6w7yF7rt9SOBtk+9H0QTP+9jstVEBAEBIEsAlYCCBcqz7IF9X3kB7m/gHW5uq+0wqXWrahdTfxA5OieZlxU3pafkMGrQxJBtFfQBklgcGlrZ91p+VpAr71bfgGDpguP5FgrV26Szv1xrhJ5GhtXnbz0Am1lXtWdyPN99+d3JwSsIIQ+F9pWBURtaEu3pDnfnSwhq0N7mveDZn9/qW0rliHppOB7HctesV/532TT5F4QEAQEAY3AAgFMrFz9li5gXkmGtuH2hU6d8aWKPX/uEBM1EDZF/Jxf+O4WFnNIBLHP7xFJ5WJuKqUdH5WXSlr/TZEWEMT0eP1SbKaHgtMbGnVJQQJAoxNXeyCbI1ferqRTg1WkOdsVWTchB/BwPrMsIeOxdi6ZdvHZ52nGIe+/dY1F0gUBQUAQWDQCySEN29j7Ry0WNJJFGrYBiBo0fm8mdT/SmGR53hGWxd+6j2JDr9gzCevbYd5Sc92ysT1qAfe9mOg1LO13kHZiSd9CUvhBbD60hZ5tXdKaF77eWum8WEa6qrFhGRcFORym67jvqJmkPzl3iXQONHejoiXGdA333ZIWp+4Gl8wBBs3yGITYC5q2YKbF65Jd116NBi1lGsWYx65yaKOFvKErX9IFAUFAENgUAgsEEMusbUfnk23s/cMeu6s8a19q56j1c8hcWzLHDhLo5ZFA5TT749o6LdEQCSr2Rg4cy+MNak+3obXNih5F/gEmRkdYyfedo83C5A5Zezo4BZwVw17GKlsgQF7K+ykE8WQoFmImTV7E5+d4F8h/szwGvofl95TlNN+bxeeUjJuEOQ+B7eX537pk3p5M0rMgIAgIAmkEUkvAJAvIbqSLzO76s9iGIsnpGxEmAHvATLkR8qd7JwmMfO9I32evmL+b21gK9nw3Kcnbz5mVf1v30FaNt9V3xX77RUYHFdtbZ/Hmbd/LWAyOe/9bcd37UCJ6eB9GKWMUBASB5RBIEcAA/rZczcCitormw9VM6XSevwuNyKm7QjTchOYv27/Sgvay6bP7yDum7LP7DUTe7w1GUBzhzxpoDLJReaxS3P7EcZHLkW0MEVpVPvexrW/ltNqWJWl3BIECK+c7MkoZhiAgCKwDgRQBhAarbe/EHy1rUWtvrzgV+9q6KOUiLjiGLnpS3Mp6StBdTA7haijZ19O5o1Ush712ZHl73l7LlSfppRCYhGHwBNq/SanSGyyU7Etz+kiE8dTu7KHbICzSlSAgCAgCgkABAjMCmLf8m0cuCtpfPhuaNFflyPfp4mW7k3HO8VbYJ/jMJfu60n/ywoGr7TzNrquOpCcIQAs9hObv4wIr5K3CFYY3rmdPLbpTq79VoaXzWhDIX+aP5BSQWlCWRgSBu4nAjABir9hj1xDzyIWrzirpdESN+g17G3RE/aVrwrNXWUNqYu1rtwiFJrWpCPUaerY3mWho7cvAbs2uva1Np+Y5id60LLo/Ej9s5D/CsV+Hu6j503LyqvYluj4TbbPsrsfz/D0uyk6rbQluBIL/5c6THEFAELjvCMysgGFQ0QZRsITNL/9Cg+bWWvh7ZxYht5NEWaKwZetcad1ck7Ktyspp1NSCuBxYGmrQv2OyV9CSu4GkxGLT7l8SB2w1NyBCtos+lvG/zSROeEbwzc3NqCbSN0EfpffO5vl0y8i5cIu9gHz2NrLXWCi82YQxMHhdrstwnNW08r3BuKwhsRC2Zm05MfpoywJI94KAICAIFCIQE0D62sOXbNNe2q7lspddPTU2WLBPZGjcH23az17eiCgLXLCMMT81LeValrQ1J4VDkClHH0ELGSNH5gaSabHpmMk30Hu2iyDwX697Az0+U6Pz889fZPtexz39Bz5//tkYbTfX0f6ybQKD8SoY4JSYCfYxLtt9rfVAsptlGuR3Kcpawyok39qgJAoCgoAgsCQCMQGEkcCBc3L2g6+WbHupaonBgv0LP/Kj0tqUpTpfohIkHaBaN1sV6U0S600az1DD98Px0wlkaSzIE3mPkdbLpt+W++TIrtAlLscsIda0lfc7eF8AAxk7cI0V2t6xmccfBSDSZpIZb5o3uxBXjqWtooCI/m9rhiRuBQHOB/vefpOd+97NpOyKjK5XpY45QK7+RN5+48a7oTFn4Xcl+3vPC7gi2NDt4PfMhFvB8uYz3Y+us8w1O0Y99qK26lIMmf1lZSmSAXVhALp/ULVett1l29H1dHtlMIkJYN7+vzKN6A7ruPqe2+/fNMfQoY6+l2nD90MsvcUWywvV97yghcQ+/jYZhuisbemwZUnbYBKdPdvVItDwkJzmBh7ZhcnOGjDRjawZ9ywRxiD9INg7vUvDJkHDmKxDArFrWTMWE2cTWTZL7Z/MJq90D7margaq7XF0tWKmu0/YwXfT/zFLSny7CLwXBdeRFzYpRYSVGhCmR2VI4H7kX3pe2GIdTPIf55Gw7AhjUhYF71Df2/f8IfIPs2X0PU6yannR9NSLfPSVDryHd4vzH46fDLEt48QmN+bBuJ90zWp3HCPCbKLAcaZs0/n51a1D8cHowPODi1U4i9lfVbxRl88JxLn8s9Xym9dl29H1dFuwpTgqOrxDrRe6SNdml39jwZ1kIN6LONGD25Wr7YOgZcNb3NTxTV0x+bx19FX4IXLUqyU5z9lz3oSpO4ehiHNfKOqPdbn7fC0wBrmV0BQRtKIzjz/77LN2zsDHtjy8TyNbOtMK2vOUPE1X/eweR1e58unxiS/W4mG4J0YgVmQ2n5hox7LzQdCqKonWIJatR81fmbLxoQtReA3uVSATyCFImTLULNP0qmVKya86aWNP/jW2ZV1SG1a1Yz4j1EnVoya0fDtzl1tlcbe3vXQ7LbO9XFsKVXBmBGJWnMftVqXz/Ppjvuc3s78+2As0g6OqveElmKncq9St/guCRNnywXGS2SrSVC2btw+walv1lS9aWsN5sd1Xrz7v2XrEpIoPpd+x5SVp/tfuvPuVA/LiMga5tUBAwwutg13bB+3gOQb2xDU4aI2PUdcVrN8pSqN84Kh0ivSBI89T8liz84iltUJBIpaqoXHIkop5pX/6p/8nn4s5HFuNQSvUzgqAlQ/+qO1l0zd9TzKHd56fIzNAm+bN3594LpvPcSAXl/B0geNhUx458LmYkxezMTWvN1XaBOVGZr6Oo9xYxxevdoVUpm1oV70OjpA9wPx/WGbJW/ezy89Iy+i6xl5HFn2+tlzldboigDHRWyy84f1/FAoPr8lrNiC9MTtmLfI+QMmDeZmgkb5XOahE1XfVoNTJlmrEKZzMM3Dve99DZc7+58mzGOXabKBG8ofjTyGniU8sQ2+zklh7GyC1bc3xonOQQCzz3kDpM3e4TD9n+KI8xxdUw14PT8TtB89VZSPpmPArH8e2qmGKMgaZYIBOvDYy+Bo7gSHIV3ifW44m2yBCVzylxdQWUhOnyJirHpqL0O5iwHP7Cu9bZzEHNWBlf3Ly2XUUTY8c/Tneb9blOKqG6GHW1x8+D9wOcYyWWjmtDb744gvxA5gD0EazIh9kbzZHqM+n36KmqgpJqVtmKklA5gzy5498f3pkW9lKlojDK8gQf7dg6xg1bUMtPw5IeOKSL5679clevodl2qsXrrKu9AcXV4euvGSp28c4NEmNDpIlUfePw4W2dvQZLchpSchs41PvFznTX7TyFFoxAcQxb2fYZ3AwBw8x38M6/++Glr5qS+LLz02T3BeBH+l8ET+afUQWe4F61yQPqDELObVmZeqIkFSZ/eILOO7a1X90gD0T1/xVgzOEv0Wpse8FY2zGHVfZx1FV8ht/eoj9Juforw1pJ+j79YPemxdV26m7PN6pAu1UdIpJ+xQT7JB9o3wTx5k1GXcFTMhDcyJ2ldtSOuW/rtL38+fPe69evTqpUmexbNQHet3F9NuZovY2GpPUwjjaeG/aWJ4dgRjRlQ8dYOOzmhsm2FYwsJUoItF4L1u+v/cNra7RD/YoluqPP1T6tv4K0tp4h9rZMpAhN8DK/SK3gGRuDAHOc2D/8fuIxzZGx0N8N3cogDqlyfoeMn/dASTpGH00VD84YWvq1JqRSIBoHWIJmN9prNPAEmkH1x7+thoUYT3k8q/GFgK1iwiQFnqXn5GWMe+K94pGO3HAd8MZvpeS78so3jo1VFkLl5gAKgZ/mOxTiK2FaiUomuhBV9NKSB4ndRDOWKsTziiVHsCClLc6QW2oxeCS72xuxg28RMsYLx1PkPF1BBc3U29KK63xqsNVz/MI7fBvZwInVk7SRZMzJ9iyQu/t+Wdly96GcnX4tgOxuQAh6t6G8ZaRkRphEuMiUsv3isQI1xLBv2C77oJ8r6I80smqTfTXLNef19/UDxXIM1xVk+zGRXKqIgBjwLaug1dzgJOs3kJj02HaNvzFalmSKzVmyQcG7/KZmjvSRYy7eIWp+/QCVU6ZvCvL2FrE9y/eHGFubeA+wZxGLSDcOt913e1n5JI6SQe/4ndQM7nzRz950wENdtR9K7na/6f2ANrUvvZq7lST7OHteByvz8fCJUux6lVzN3CvcpS6GppN7HHMEsMRNHdfw/KZKvbxXYFlOg2OgiB8V894ot7nn78c1tPW3WmFRINaVHyht+7KqEBqz6jlw3iaq44JuIxevsz3z8j9qPix8gxfrAer9of60DZOV9TqlpYCfhOnR6VLS8G1IxDABVcy74Ewgfzhh/6QSgAVWjqynet8q1DZE798eOPAfrmYAMaKnO0I7uwVK5on0GwmBBBLwuQkRcR2t5+Rc6hxhnLZowpFMV+YbwOLuBey6eIQs7cwvwt3LhvnJlKqXtHpOwD/HS1xkl8Isfar6a4tOXYEYmLYhbb0Enh+g1803+HvipZaylLJXu0WpCZWkNHKExQncZKCWzDkrYgIVw2vt9Lxmjqlti4MA+4xmqzYxYQ/Qsq0MZ1Oa+kPcm/qOEFixL7GZcYnZTaDAMifIiOeR/KXkJF43z11b81d+U53kYQsShlFUSObv+37ZBwJvpSF28yKZLotz8g2DvxIfTxLn9ltzA1mlDu6WREzshQBpMUJCMk5SN83JCgkKgCwg983hUCbnUu8NAL8kLXxoGEMEbzThJDEmwS8dCs7UhB73Pp4V0pNwjaRgcMQk/OmJlWbCDuflmC8MlnaqXHyxwMJDoSaLCnYOCFIvxmVqU8ixfL8sVGmvKWMImTl+rPUr5JUaWxVGpayyyOgyB2/vxEMV2a+aYAUtJi77VBxLlGfwTnR2rb86f5NY810TvYu/YxiDZoa25xEYbG+la23Q/dtLYs2+KCmWaeBn32i49lragk4m6nv8WI0uEauGoIxBugeQvJfl9rUlS+cfrh+vH8u3XMwTN+vdqcNVFKtRN5DjL6RpAW4bpz4sm8+j3ayn/BTWG5Fr4s8tafGsOUbEhSc7jHa2wsv8TodlBRngi/Ri1WOFtP91O+QV7e82hVkA2OsK9wtYxCiQhIIC9+PsRx8idt2BaT6iaXwy0r4qv4O4cfytGgPoikLf6QklsIvx2b6GuLxZyKxnq82tjXIIk1mEEi5FkmTviHmMbxTmD226g6G82kyf0GZcwxxSm1VgMXvh5T9LoT0M5oTJziV/gqrmV2OcbvPyI2ycv+iCwx0pOw2g1wCSA1TTPpS1re6i3VcFeOesdeEzK3banbVkSjz+GtHO3goJIswevE8XNcRogOSKG785Nr/bSGDyXKw94jOdSE/f6W08beAESdTugKhFSWXAssiCOvMC1iFLgS09Vb1vZBXNSHxb/i8V4fxBskfNE5ndhl8WHYtnpjCMdrL0z1OvG+uAfyatjJ5dW3lXWk4rWMEQta39bMOIx31Djzh8YBBMH2Gzxbfm2ZWPmrugNmQRjGrLIuq/k5APGFcE8CvIJ3hWn+0jCED+gvQX3mtn7Jyfog2F9797Jh4j3GN8f9bfM6xl/HlwFZG0nYEgZRrkblygpoarOQoIcvtU1vHiDhXGO8ythg9/fb93pveOvrabJvxfFuuyx1/RnmDgDHRY52P74WZ1o/bDHhqC74nWsh3uoNZIICxOhS/BCJOxiW/kLQAZa4+zOAjLxrjW+wt+hgrtyi0fp2UqX/bymR9I5EsYvyN+Mi7WJPoN/UvsHrGZpLBp7Q4e51x1llPNzW2oiYxTmRHbFb7PeMxYKtM3Ea7NUq72NTqblsW28ymwCjhRTat6F4RlxjTorKr5G+qn6yMimSNkB5rLUgIeWQgtbtVCFi2Xde9ehdnGpK6+lPtPnH1K+m3EwGunEF1dKCkn+jlOWM0/M5r835b7mCwatSHEQHn+yblABnk1q5jD776btOKEmXXgYork7tYcNdFebTezj+jmbCWCPjUzP0LfvIPU0WoSIuUIaDDHcyMACZarOkpNBmtVCMr3cCpJD1+x25OglHeg1ipm61XDltlRTAw4Id/Fki8Qy84gMaVy8v40qjlOWCZOGrjAz0OYeJfdC7gTJgtR8SFxZYfwC3tfh2kLw+KTfeXJ4vk7R4CpmsRSDfMSkiNDQhXTAC35Q6GihfMPU+8uW8/cAaQQRBBrihx7qDsIVZgdl2RQHxJ6GDRe4oxxAEEqa+i1stteEZWwZGIsTbx/jRV/iRjnINkapyTbQYkikiY/XhVdbz9//tffvnBe/8I5hiFJB06fckrlnDj5dtgaBCdJdu6X9XUwxuZo042pwYtfBhBCr2W/pVmlikTZz0Qy0t8mB/TT1KZOlJGEBAEBAFBYHkETNci5vLcvMX5sZ34juYEvZXvZs49IBMfq8MDOnP5oIogGYSBJxQJHSxZT8AQBj/h4IjE0tYsuf04CRGOgLvCChtlZphQ1iRq/x9vcVNZRc8IxVr2VraTarp/4XPJSkEOxmeG9AafI/HJPrfgT/4x/G94zAfZyuXuYwugHjZLHmKp0+dRLTxx4r6RP7xEH9nxMq2I7CXyUvnB5H4Mkjb8fQz/Rh/jJSWLX3jYee3oPLwEnYRU6hS5CgKCgCAgCKwDAXzftuftZpbnkMHvd0zcY1Wmsc3vZmoCOc9wjoE8PSiDRkou80IigXN24Zqs+/SFmbGJOAhMI9sP07h6CaJzDrnemVwGfnRPsoQnWx/3rXma/Rkhf8IyGPvOuOyJ5THcv2CF7y3TLGGo00gYdVxf98GW/1zflLxiX5n31V1zUFxy7NZiyS8OfJTXHNTL3EM3/PNoAcSlA/VF0yjTvbJ4GpUpK2UEAUFAEBAEqiNAMoflufg7mSRPrfDYGhoiscOMXfhuVnNMvFRIcsW9idY5BsusMDJ4nHc+L8dUZwDBoz/cdJOY/LDMmU7DHTjKUdGWJ2W8WfiM8Pzg+Dp5RsodzK7Mn209cPIxHTev5jYDvI+Pkdcz82d7AM1EW5wvMdKHJDvQeD0Dm8QL8LRpKztP46+IxGULTgTJnod7Zww/4tNO5oM2YtZfUUb+alG1J2OAVo4MMthZrVWpLQgIAoKAILAKAvDX+syoPzTiqSg1N5hPO3FibI3qvUgV2OINtYLonvOLmmOedtT+umYilh9r3rD6t7C3LMnf/P+Yp/jhkwfQrhb2nhhG6GJDHclezWcEGwk+1162zKbvTfcvHLNL00lDHu7lVPK1s3KWdgQNBtzEXycxTih7woc2ZojLd/AT5xQv+yVPClFsPsKviGuqb+PTRPCrKSvgbbgnNlY5fe97a/oaEkkGqcKH1e8TND9xd8GNoRIEAUFAEBAE1oeA39Jt5yzP4WQQU3MTH9vV0PV27UqNGvbUPYJcA0O2LveWGfdbi5IIUb4cbWtGttv7jJTRUDwe8A/zeaTGSGIYk2KVGhNHo0RpDaBRp+Zo/BBaIIZUgXsggyAvtBymQ8bdNyZRamQHJpsjW4nPxugZ7PhbDmEkWRAQBAQBQWDNCMSEaO7+xaMxCPbMNct0q6xS+2XKbqMMtYIY3xEMRg604gMapg5kebFueWhnkO2DhAYGKldMV/KQQIND5Ic78Ixa8xFGB7l7MgGMDsDqMeIzwrgDBFCLNrviAYIUxv5rQi4z82EOd3XfoTopZCa8GaEDa/O+7jhe4gY+fF0uySfm4Aufj7q7lPYEAUFAEBAEchAAiWuZ2Zh/O2QnZQLJIsr1y5RdtUysvPDCFmYNuBAp7/yZJBAOoy8wpmRp0XBGvKpMVetz5ctweOyBmJ6ijaOidm7LM7KNQ+0vbc7zNF+ap5gx89XDs24j70Tn74NYfQ8CAdK1s4GygeXv5rFnkOuhCznXuryrfNl0fnD9KCTp67CO+YDLtrGNcjhJobG/v3+g+17G0bPhJHoEB7oT3Za+6nx9X/XKUy3MdrMyV20vW95sH203gUeTZar4PjRlWsbpcVUHxpQTJ2C0oJFvQlQz4OQSf1jVH545brMxW9zEy5afTUtjk36W2bLZ+6q4ZOvLvSBABDAnfLIsEvgub6NuIYFZtv1UvWgKshRvz/Iwp1Ty04vVupHN+CLV/qZu/L0zbCtrsTvg18FYXhd5Irk1z8iKYdCyJpdIBD4pdzD7QeT/HoYdH5WouyNFzJMuduHYM7BvKwVbzQVMFmyqrGMz7sg7jqKwiQe5VIBWEh/c7QSe3xqGEb/g4oD7CSIfqtvCy/Pnv+6ifvyrE3UHqPDErGTmm+lV4tl2szJXactWNgj2z5D+gnm+H+PRYhyyn+C0jx7jRQEynQOHDssFUBmA9Hxokta8+iQ5QRC+4xF5rIuAH4X2QDI9nUansCRrJSUW3zq28fz5Z2N8Bs54vnNSLv8/5Ef/+iztwrIejgrEkW7+6zJHAZrPy8Q6v5cY/y4mNOA6w/RjYDouqif5goAFgZaRBjdpJfaC43sddRr8o4an/D42o6d7Gk383c2OPcNXEYntouPtDDwt4/5WPSMcb4kfGLOv7QGiXxtjsUZBeJ/h27vJTOUOJp5rKi0Bo8sxyOJYW/SaPaHxMSxK6CeIL/EsoOOPUKeJr1WkL+tvcNZcJrILZNA1ptUtgLnEyz0hWLd/Brv2FrBdOVB9v3IjSzYAjWUDZMIMjefPn3fKEgdUnL1bbMtsSMVtaZZi7qRsuxaZ3ZVXyon3ZvRKNtEyy+3t7fF+YKa54iBsLKvDREeyVzwXksxu5nlli+n7Jr6QLkHUjqfT6WEJMlrpOeEZHPC7A+TuFH0c5Z1/u8zz4juI9uMfFhwQxjzCxYkNy0gQBGwIxMuqURi/35wvYZh3YiuXTYOT/o/w/d5hep47GG45YpmywfdC7tVTwXe+01Xbzdv6pHvb6NXQAuIT3OJzcGkB1/2M1jlucgJyAd0H/DaW8XXoYcl+ghcr/o7Dd+Rj1O+xjX384P07vKi/0A2aV6T3acEUeCEcEpcwqzYrO+LJvrX9g/jFjB0oa0thR4XSyWkyiI/REA6qv3K9BKWbzSlommJni8Ea9202rcw9NX3cnxCrqNUxQXihy1QtLINWxoWFNl7AP0WX/XV0y4kcGh3nl56tTx6Obqb7eI74xWUmpeLo4wAJDSNxjOJj4z4VBQEb6QS2jfe0pe7ZTtnQNAtCO8a6AzPNHY+JZpwNOWeymOWh0bvEfcdMQ3yCvyHeRfVrM141aCGtib84oD2StG+gkXxUQXs2sckRBPgxGRM/3Xp8ZdoV5Ou/evXyKJWz5A21nCC6HK8Ok+k0OOr1XnK8EgSBagiUdC2SbdR0NYIJHhoew6iC3xPqTNdYGVDl+zLRLMbd4bsK3zdmiJUULaaoJdE+42UC9yrOvxXjdspUW1uZSlrAdTyjtY0s3XByZrRG3qcrvXG6hP3O5Q5mHy/F93i5rIFuRawZKyQqDdQQTfBvFqj25lm4fLGQ2IJIzVlm5UislTvAvoCuNiJJXv5wWBeRpUjKosYq3dSbDq0ZlkT1i4Rq3RaseA8sRUon+Yrk2fCj9rZ0Q5sr2IRWp52n1VlGFBCFIUjC4TJ1zTpYln1h3mfjikBc6/Qg8I/K7ucDyRmCoJ6quk3uXyvSnqn+dHfxFQT1cSoh/2b2fiUENF2Ymj+kdIxUEKEIy9P25V3Kg/7PDbLWgEbyCvUfGW04o/hcHuE5DVwF1JL1MfI7RpkOlsy/LXo2RnlrlG2HYUhZdcCexgAazN+MdIJcBYFqCOA7XE2oPD+3bF24g6G/tsukfOIORq/W3HhhH3nqe8Jv0eNDkZNjtgOtTxefy2bSpueRBOh4fIWChHOkSmvnac3MesoIoTNLYzu7EPz5XkDOpW6c6n9Gmxq+csqtuiu/zYxE8YfjT/G9lvALKq9oQIP2wt+7hI+JiSuz5nQSM77UJJ34w5Fnsb+hOnppoJE2PgiYpIJ3IISJ70EcZUMQqHFbvhO+SLYQM/OJLYf9sV+abSsfiOBl4TXK4oO4EvnDXoDgkNhFaY2UIcb2f6kZwsyiIEGc4O9doIGDOWjTQMZMN+PA6sC8ZxwkaiEtW4b3IJhNXPgXBxJQFY0vJHNoDe/hLMSEyEX+WIpkl8u+iPZ5z0AyCIL2Ir4p+AcSOskrQjJGbR+INfswykanJHB5dfPyFLHk566hywn500jIdRkEkrlk/h2uHPWXaiohe/MJnVt/dEVO3r7x+YK27pLkRufbrsznnKfzWJ/t6Htek9UxY06IwiuSO7NMNh6PMQqMH01+JeORbHt13ifjmWMIZZIizfNe1vWM5j2sPdbSPYAjvdbxctc5Nlp5tf+et//3N3BHaQtV9wXY2lg2Te2DWLZ6QT0QN6jUffzDLyv6HkT5aKj3NkaejzMa/QnduGQ/NLrh5IMw/7Dr9OQaDefkGdZJkfcB2scHC0t18d41ULQ44GO5QkDtMay4X/MXopYzkWs+qZnNgyh8a95vN+6fAZP4Awq5WpyQ75vmhdq+xMAhIXAgdy08k2H+c4keWvIbZfCDZu4Ak8IsZDWVyuBjll+WEHEcIJcnWP5toXIzaSA6RhqyFi21k/xq/ykrCOoTLNde65owZuH780Tfl71CLmgpw0tgMSN/eBex7Cuav7IYSrlFBDKuRQaLJfJT8GPoK7yTLZZSK2F9xhng4PgEhye0EY3fWZJA7Bt8jPQz/d3PcjGBiwIYCnod3jP4mCdYP7lL//f96REVIyoVWyyCaygnLsw5hXmcVzBXdjB/HeMrZPa5Yf10i9u9u/GjI7g2+YZSQE4oW9La0nU+I3Pk3OIGDmAmOeM0zMQznDgLqAyleW2qW7juqbgtz9D44p3gu3Sy/88ufvv3apl09lBVBwsvoU5f9xUvGzY65miFfA9m37H7FQ6ipqCMLPDWkBjy9ZmTw7gLPKD5/i0vio1aXH13DdW6KgPIawpoCXszfexv/HKQbRJ7BA7iVz+bgfvEdN+SsYUkap+mU+8xyR+7x2R+jMtOfZlQrnUHfFGP0AeeGZ5PiaVcavtQZyEEwZRtsC1nSNpP3kO0MTQLghQ19bNQ6f0qhIhEDwTtyCBoDVjhdtBWz+xnlThJIPf/oY2OaqdNudH3WN0XXhLyt3eN8ceYJxUiLEPbl7gLG5QCgoBCAKTsEw0GPktvdbz8laeCwJQSAR/xNi6z70MSBBCAQxI0pDdUmQ5IYSeZvzk3+fxuiPOYr8LEw9FoLoJBEgGSdERCqcpz7j3lkjMI5hjLU2MoQ5pot6nyZxcoH45KHbk2q7H+CMkw5O4Dvw57U1rAPuMM63xGSQ/Jf+B1XtZNDrCeoNaHZn17PGjpdHyLD3S87DXZJxn7VaaxbpOEMnnbTGJjtAZN2IFxu7EoAOmis4a9w2j4oPfmBbyCP4EFzId8CVGOYEzs5WtLhTzQHM7+XNq/2vrLNBQNOVaOmcvkruUFrdrNVI5vExW5LWc7aRmDiw4n8+1Iss1eo7e6d5I7HXddM8SlZ5R7aMStUWgYWjoD2I90nFeQtbZ5H4bTM/O+TFxpFMe6LAjnbELUaates3JRq1mlTbqJSWPol3ZfU6UfKXsvEWjpUS/st9MZOVeSMUzsY1UkdgdjFmc+vv8fgR4OzXTEG8m8lJ0zoyHLF2mK4v2E2D5k9B03T5LAdpPrvMe4HMqX2Yc4r7W5GLWiureE6Dzt6ntcWzq+jmek2654xfMrDub3ad7xggUtDef5QStxA2NYGc0zGUtvRk3nredOLWEeO1vnRk8V1K+aPm7553FvHQkQXtB29qVl/u0LWIqGVSpfVP6yKSd/vNRsKWrs9bDkbiOJWhdodE7Rd5P9w9kwn7t1qYL5dzGE4d4I2k89tEaeRot79KBh02XHIHRvQWbiLzdlCazzrFeT+LBuulDKkGRcRauWaWeASSOWqQyhTdctvqNceGcmKNlg6SoW0Kh3iSpt1lMB1sT5Rj66oFwFgRIIDPFGNqAxc24dKmzD93DCRvLD6SeLUkPNA4dc2lTaLPN91s1zP/hFlR/8LIu59xH3HmIOfaYIpW5PXamE8OFk+U0/k1F4m2yrSs49rrgSNdCYFnaiChAjLGNjlTD5ToNx6dioO9TtlZ9TjdqMup5RzKNm38+ZSnm36X3QyVaApJ3UaWKz9v0JjYbyWnTl8fnhEIkG84mL8gMYDHF7aqsEFfMpwORpIR9BHdxkmVglrCZtWx0QsFh1rMpyn9q3SJvwweftq2N5HuWCoccCLrZN7d/vhovpSYrSihGYExJJrverD0kLaY42kbOjgfsrin69maInS+dzLY+Zh5d+mL7flTv/ArKdJ9L41AKecTlxV6RbtxxcZgUxmXWTnLgxN6iYZSCSMQAZwfhiCI1WXARkq2WWzcYz5NFjXbMMyOHMRyPiYzOvWjz4Fs9TV1nLZw7y4YdR/ni1APqaGKUkzrNVWm2uZHQfcr3fCHBValUE1JFsvaJ2lPatz3Kc6/a9/WbR3FrUJggRv3f76q+2dtmvMTfztnRYFlOuEto6WbY9sy3XM3L1adYtE19n+9nnEBNAbkLkfjdHwH42/ZUOGocw+3p3VEB+EzQRf6rsrH5o7KsjIfFHIIdfaz+DNJyAVXKH9azBn2v/rPlGomL3fST1aW2LvlpG9q5E+YGzTpJAelyF/HFAaR9B6SES53TKbtzxdAeQmFNIQxxq3ze2G6PMlwKEZmgQmofu0qYBiP81iTLI4xjlm6xDkpc17GA6gzIwSW7wbmVJNvo/0JnZ5WGdXuaKvZ30vTgLeTLNClWMGFiVqqkcPfMdiwPqkzzfK02zHrtc7x4Caq4b1z2ydbVbt5zS3vIIxKwvYf6bXiKMCVkXGjrsyYnds3wHw4kr11BAiPp52j9XPS4Lu8gfSRaI0RFUmmegqkPeu9pZPT1uvx/3hf0T3MuHOLRfjpCX56hCH0GOLNh5L6cydrVXV3pCRKL+vL3oeB6/HzFzOTZvKdckaYYLl5FGKaMh1MnqapLHtAGIKkACrkLwvY7t2pU+I02ZDBzM5Fk8IX/+pU5Q5A++/u6PllmPXa6CgCAgCJgIqCVgJPkRnELOtQBmoQ3FjQlooceJubFzITcnAaToPHLkYyPlmW0jq1apJ9WSQ6ZnTSTWyS5ZeyB134NIxsvdrJNHWmGt9MwlG/b99Wd9loygrdTkOK/m9ks4L7O9GJzxXkAL2FUSNDlp3yerTGrcoAWMQ552C2UO9FOa+xDkyRz6fOUUydNF9bWlIyj/dh6/dbFTQ+KJS+PJMtg0DStz3/xBMabPQiF/BoISFQQEgXuLwIwAwm/NAHv0zC/XnQIFexGPQcwulFq6lGzKGWbTVpjaPtdm1ozqe6jrJ7797HslwaBHDy6+LL2sVCAb/fpNdL9lrrGmM4oa1rIk9zscMCFzY38fInYoJrRgz3DpM75sAJFqcvmxSv2bG39SxfVJlbbzypp7+VjO5tMvs4dvtoRLDRg0f/pz27L1w/awCDx7N0C4h7ZydaQpVy11NLXQBo04TBKMz9zFQiEjIUOm6dT6iRzxZgAkUUFAELjXCMw2/qn9ZpVIxwaR4+TVBQn8BseZvCN5ig0ecgRgPpaXz11FqP1z5TnTo6meaBeKRH6UOxllK9i8lOsykR+81vGy17zlX5L7su1sqxxOepiNmRN3VfJmkbtJn3RV/mCN+24brmiURmqsx4Dzgls6rq+Z5d2RTs9owJqQn5+VVFA+AnUaSG6+37yiZVXd0KaufCYgf1for6P7xDuCvYY3PX1fcI1PNNkGuS+QS7IFAUFAENgaAjMNICWAVgxawPmXrCkV8sZ0CunRFNkI+tQM5MH8PeMbT5lho+UDVFmYmIxmKkSjA+4bhNHKORxg9rGXzqoVpPWyq0+OxaX9cwkSa/+izHLwvHAls+w87R/0X8O8ZeN5l/MYl6yhGWnPU+YxjrWqMcm89uZiJDInJ5/NjCFA3Lh0N9ycBElPOI6tidg4udvo/yF66yQ92pZyzTQu+84DyZDWjKnj5IbzXMb8x8b90IhvPQpt5Ccg+1Y5EtIbj7uTKTCZTgOc3PFykkl33aLcT2NXpqQLAoKAIHAfEUgRQHgMhw+ioOMAYvjg4urIkaeTBzpiu9LzdOjtNWOiGJPDlYhhA31QK9iFlS/8EwUX2jmyOjKla5OBaThF48SV50yPtX+gU7YAg40qS7bU/oFoWwPHYc3IJJL0vecF7Xi5NMoQb6MsjFxeG7c7HaXPQ5CVlhKyTc1PkbYqb0AgRcO8/GweiFTunrJs+Xrv4718cZOQ4yDbNtMwnjhkNXRIHyEjrgPS1EJ8iD8ztOY36R9w8/RtxfwuyL7zs5qVimQXS+Zcyh1n83Lum3AYfY33Sfb/5YAkWYKAIHC/EEgRQGqKkuNfvGYWBsw9XHZNnTuYLVN0rzRRnKwGSqN2XVSnXL4Pf39RSx1p1wcpakGT5qgaDWH4MXBkWpOLtH84N7FnrWhJzNP+gV5CM7l4vJtuRsnxCcqB+HnNZISucSa1eKajrr/r10XH0LF7mKNl5Cb5Oz9/ebhM3W3UAanDkmbSM2Q/yMpgps0NQHSpOXmk4YNO5RWkp4FLk3EG9pPE3P/VcvPQXWJbOf7Zy5fLOW4mfiSBkPzRtqSXfgUBQUAQ2CUEZnsAtVB5GiMsu3Z0uVWu1F7luXxh2/5yy3Cc7Logfwcu+XhYtCvPmR5r/xy5FbR/GHelfYnUZP7YfQoN59Mr/GGVPeQE1gXlazqkySRHwypGM5nKW7pNbeynFpDP9M6HzF6+2KefHnRmP+TMAETnh6E/1PGs9hCkp6XzeM32Y+YZ8aUxTwxOjJaKoxOS9exfthrG9aT6qR1RjxpD3RZJIA1J9L1cBQFBQBC4zwgsEMBcjRFcoJDErAIY6+9He9zQ7WwHX9onOO/2Yz8+9zA+TH6ySp/zutHwvZx+5+XmMWrsjGXJeUYSm1TR/uWfcYxj37yAR9i8UITvO/pHxKRFQ5Z2tuMy9zz2pUy5XSpDx9CQRz9vOobu7pJ865SFJEi3r5Zy41ulkdNZIx3R14xxQwOkuanzTL+CZvs6v+7r/r7DEt3RET7rR9TUZv9gsZvS1EH2TxxN5CQH39Pti0kCUbgjJDAHMskSBASBe4PAAgGkxsh3u+BoKBKzFECK/EGL5dbQsW91FIrHJWMc3XKCvw+hmTxCveFSHc8q4WBr5XQ6JlkkWzh9BHI1Z0WMCOXNsySGmrL03r+4D+z9M5rPRIEJNXxJGRK+RqZApVvgOLb5OKzUyBYKJxax99MxdPoEDtPow4ynDUD0IzLJnTpOLs4yl4RNh9O6nnGdGPGNRSGTtV9FavuGIJ2MJtTIckf5PnHPIEqY/YAE/rrrriU5goAgIAjcfQRSewD1cGM3JK4j2RItYK+K0YNuFwYbWH5xkz9o2kY/+fYjmvTZhyRS6rzgNtpt6LYrXlmvDbKFNsJTkFoPhBBJ8fF0ExC7r0GgJsh/GLn7sGr/KB/PZaQ8pmU0iOQztLWxkLeUvzEhluwo4xi6cV8cQ5Oggch1FWwHGj5osJwGIPMy0cjQVD+cp8dGIfFtmmDqEskV/c7O1zVJY7pU8V1GW+kt7lcsbkOXCMPpGRyEd/T9dBrxB9RQ35e90pAIS9OHcPNzjTqNpF50jvdqcp8cjpfFS8oJAoLA/UBgQQPIYSduSJzaNizhBqfUnNn+qDWzQQfjkkukt215Km1y40+fFBFLaiixPHwE9y8fJ1pBHxNfXSG2QCUxPMWEyBNEOjktE4fvuDfP/EPaN4kmL7yGYcoV24rbK71vL6fH8llWclq++nZLKsvf/lwKnxP/nQ/QVJnv8synH97FAz34HEL1tS6jl32zGjO0P9RlsleQzIlOg6FIQ8erX8OPzDqJRtdMKR9P3gP/TNeAjK3kaDedUv5KjSJ8TVITaAT/Mnu0nJEpUUFAEBAE7jQCVgIYj9jfm33xWhDoapKTvWpSBMIHp81Prkn8uNxaQKYm2O93SHJn6cuaRKJIrSBIYJ6c1rq3PRHayXHuGCosTee2s8VM0zE0xKh8qscWRV+6a0V8x7oBGnBkSNyCAYguG4Z7M/JIosR0UxuHtFE+GZsvLZNwmvsIdR9lrtBitnQ5tDPU8WWvytnzjJxCy3kK2ZYiqIkBTNoIDDJeLmG4suxwpJ4gIAgIAjuDgJMAFmgBCwcAwtfkkpQifu28CiBxJ8s4K6aVLLRsl3lt35E8ToADTOIn1HwWnGJyq7V/+nlxsjYJhFr+09l3+TrSg6MmzyRxSJ/l6TL6qvbM8T2JQ0Jq5i5hsKw7VFnWCyyJB2YGjG865n2ZOPskedRl85acdZmia0Ja51pAlG+uYhiULPmmSCAMjUL4CORxeRIEAUFAELg/CDgJYAxBvhawNpRA4p7R+pWErmyjOkIrAwAADqJJREFUXGqGQcc1yjdcdUiY+If8Af4mrnK7lq40fDHhoyU0jWDw90QZx0zqMkzZtXFn5UkcQyepeI4t7Kr8KFvm7t2bmjgSuGIDEI0ByNdIx9Vxcgf6HtfZErGRNosqAjmeJXjRcVVNG95VWqzPAvdyzm5WiMD9Sw/Vx/Mmqss2r+t5at9f30hTJHA5zaLRjkQFAUFAELg1COQSQHUk2WD9o8GyUbzvLnjHpWMuG/+h+2nb1S/JH1zJ5JM/ZU1M0kTyRBJFMhWTQuQVLqO6Oq85PZED2hksZcNtyxNq+OgCRxO+rGYUS+yXEKFhE4NtVXFLY2tjl9LURD02ZOoY8TsZNU/5SEjvfN+smWcbfNrKNz5Kr6nLgYwNddx9jc6MvIY6PcP6rhnl4ihdqyh5ddYA2ruxvln1ys+t0QYI216KbBp5paKvXr08QsG+UbjSeI16EhUEBAFB4FYikEsAOSIQEvOLd+2DjLDEg78ODSiwd/A7kkFTMzgnf/nWxDQUyQpLMkVCyDxFsnzPDw4TY5LY32C2yrruJyR7IHl+IsfVIc4mfsGj7PL2QSpS7CTGPOKOeyPXJfR22k05ht6OCBvs1eKoeUbAcgxAYgkzS65NQ2zuHRwb99YoCbe57M7lXJLAzD7EVF3uFQT5u0Jix8iYwIK31u+Nly9fDkzZ2N+qy7YkgSCWIy23Hm9VzaeuL1dBQBAQBG4TAlY3MOYASEiwPHtGDZ2ZvqF4g2SQ5xODCI6hJbvAvqhnWBY7cPVPLRhcyRy68rPpSsvpkWiir7zQQ//f5xWI4MYGjBLuY6bAar4ZPlsHk85Z3pFv2fK8J/HN3+9Y/Yg7Wz+7lkbH0ND2AE+71tMlL7VRJyefXbvyXelcdlaaR1eRtaeTlJCMZDpyGoDocrQiBlb61rzOSI6ZaItH0fSJ7++9Q16T+ZQD+wevYS0LmfyvYFoyhqZxklgax8vTbZYzA+Q/KkM4zTpl4nt7/hnODW7psmrJufRnXdczr8DskCRX482r0i4emeUkLggIAoLAXUOgkABywNROgSA9A0Fq2gDwQbrgO3D2hel74QHKNkAaH4IIoY6bsNnas6XFfcenYiDmDvDhFxa6kslW5/5DfPF3sunz+2j44OKqlEaDJ4eABLbmdbOxaPh+76qXTS263498alkajnJwoZPa2O4odvuSQSQmcNp7gXfotKr0JIFV64DYsEq/ar06yycGG/5Bps1R5n7hlqQL2rgxMprpTP9t+t59R7yhAXtkkiKWTggSP8c+40zhv2yY0NWKRYuZLbfUPdvF+Aao3GYDfL5040Lt4FINopIaL3wE7n2D24Zqp6N8BJb6zC/bt9QTBAQBQWCbCJQigBQwJnjJWbQL8mIqaMIdzDH3ranMYbYQl3FDL4DVbkwKW2jxIFtmxfvYlUx2z1xRm/FRb/naTZIrPa7c5jhGTI7nOYVKt2W2QYKK+bZlpqXiiduXcSrtDt0YWsDZqDD5T2Y3OxTBMu24BnG+XmxjbhyymJdKGeGuaaaYZwWb6a44SRHyHoF4v8Dn9Bjxhquskd7nsu+rV3FdI9kaZftl2lyozD5A1to6A5+3TxAf6PtlrgkJzDqK9jtoSwjgMoBKHUFAELgVCJQmgFwqxZ68HkbVdYysTaJCbaEtXxGzkc7jkuaet9cKoohf4K2YROrMpa7R6KeKlr7cU5e/rApB/AAaxTeTIpE4HixVX6Fcw1m2ZFtm/XjfX5Sn/fJHWE5+YdbZ1TiWF7HnKnYvMqmiJcIEPYam50my7JiMTp0ZnBoqfcbBRQiflfsZpGos3kTRTX8x1Z2SaKWeH3le0OQePMrqLl0uBwYbA4yDY9DjwJ66cnIlBGnfIJAhlo5/MyrXc7oUrG9fIOUFtWzEHprJx2YJtefwa8qLcU/MvLw4tYRwb9NCmUrvAdskvtiTeKjqw9dhGhfjHWNej3XKBGJEzad2f1NkcFOmTSkjCAgCgsAuI+BXEa6MAQYNKpY5gzbRngXPIFB7NTIYDWFg8XrqhTSocE5Kqr9rjL/hwqDKWH44/vRdrlYz3vdnJ8eu/kvICI1i+CjPcMTVtqQLAoKAILArCGCL0a/wvf83pjzwd/qLD3pv/tZMk7ggIAjUh0AlAshuS5AS7M0JH1VdijWHlPSxd5lLqMwK7vgAJO6rLBksNQa6kbFYEtu6UgYkHVtekhbvITx0589zeLweNtq3sNHqMdSPiLtDFYLqbkVyBAFBQBDYLgJCALeLv/R+PxEovQSs4SGxw765E+zlA0GzBzpoBsk6XJYERl7QroH8UTgs8XrtfS/AcXSfjjw/+oqWuljKouxOzR/yBnWRPzBsWCXb9xDGGlVv/yBF+KKQciMUcvPeMprWpG35LwgIAoKAICAICAL3GYHKBJBgkXhgP+BDRLsO8BrLkMBkiRnWrnkGD44Oi5NhdAIXD7BhLCjqj2786VFBoTibBiTYhN7JKTuzSo61jh73dVG75z0EvcOeKq+Je1W9kPAZ3ZS3SjYqSVQQEAQEAUFAEBAEBIEYgSqsYwGyH46fXBcsU5a2zOXSpx+Fl6BnzYWO0gloE6dmFPgDTFepcuePoH0cQgH3PWQZ+14w1rV972aitZqxu5ccLSjrANwxNI6TmrSZSoyYoB7m7W/U8spVEBAEBIHbgIAsAd+GpyQy3jUEltIAahDoHgVHk4EEOl26lNIEJm5OwlMQroIAR8vQzikS1qNWDZa3x6jXRkVo1+oI8VioLSSBQ9AaOozSCzxoPpNOioVlE03WqjGA/E6PhPzViKg0JQgIAoKAICAI3EMEglXGTCKC5dJDarpy2olJYOxvL1OIBC62ns33w6dqRUP2pTVwTGSce/V4fi4NIpA0UIXv4qW0NvUuDl7GJAgIAoKAICAICAL1IbASAaQYsTYKp28giqVOZ8AxZt5lrOlTRRjHPsF81ynz5no4icO57EkZuC+RjqhBBj9MyCCWce9OEPJ3d56ljEQQEAQEAUFAENg6AisTQI6Amji4fjlENI8EcjX0FEuoV9jv8Q3jJUY/IZkDsSvtkZ9kkG5f4Ji3UaL921BEyN9teEoioyAgCAgCgoAgcIsQqIUAcrylSWBpR8/c7xceVnV1wmVl7Ev8Jmdfono8NPYoIKyqZN2XgiVzszshfyYaEhcEBAFBQBAQBASBWhBYyQgkKwFJIFy5fLwf7V0XE7Bs7dQ9lny/LK310zWVW5ZLfe+6goDByfOX3DPoQd7mvrff9L3wIKIhyey4K/8A2UtpEUnwIi8aw4wEbmC8r3E/gQHJ6Ma7Gb/nBW24fzll3wVByF8BQJItCAgCgoAgIAgIAsshUCsBpAhcggWpOlyGBMbEyQ+OeO5wleHQf+B7UXAOYtUpUa8Hw5EZuYS8Y9Th3xB/qVB8wgeLQ5Po+ydFMsdEM/Lp5qaV6sR6E7t6wRnEsWzWEpIoCAgCgoAgIAgIAoLAsgjUTgApCEkgLo/KEahEdJK/n7Dk+2HvzThJKfc/drAc7YFYOV3RzBrifsIyS8oklPuRf1VM1miZHJKocbzWELflBd2Sex7ZxoCOqPPatHYkiYKAICAICAKCgCAgCJREYC0EUPdNFy1Yln2bd2ycLguy1cTevXewDr648cJeGQKUWBJzORW18wOWYoMnPyuhWUzIX/ESNggrlpGvjvK65ZJ0gOVeji2v3CwPDq4f9N68mN1LRBAQBAQBQUAQEAQEgTUgsFYCSHmpcYOWbgSHzdSoNQvGgD143in2yT37EUTwJy/s24ig1vphvx736RUE7Tz6zaigoJe0G1yDUDbyyibk742T/M2IX+Q1C6lp0lFMUIuWkfNkkjxBQBAQBAQBQUAQEATKIgAus5mQaNaCU/TWrdAjjSioESQRHC/RBpZTw1LLqSRtZTSVLvJH2UBcOyCwPJmkWWGMpWWs0KYUFQQEAUHg1iAgR8Hdmkclgt4hBDZGADVmFc781VXUlY6dy1vm4rzgk/d7b3qZRqy3Zfcq2tr8Q/fTdhBFn4D0dayNuxPh49DHnsQvB+4ikiMICAKCwN1HQAjg3X/GMsLdQ2DtS8DZIXOZE9qyR9jvV1Eb6LeybdnuwWjHHgwz6JLGlm+mQQ7sO9zD0nTxUnLskBrL2axP0ufDXQz6gkuXqOwy76xr1OvD4OXEtrw9KyQRQUAQEAQEAUFAEBAE1oTAxgkgx6GIzwkI2AWsbS+h2WvVMb4qxEot+Z4X7feDXPDH552h7QZPMcF9C3sPG5QXWr+KAVpMf+/s/RLGKBUbluKCgCAgCAgCgoAgIAiURgC8ZvuBy8JeNIVGcHUiiAGNYyfMvv8W8dgBM0dIJ8zGPkKQTq+9qZFTphC+AmW5d1OISz+CgCBwmxCQJeDb9LRE1ruCwFY0gFnwlPXrsA4iCK1cE0SyCfVcK9HQhXF3+17gQYO3jNourr/cP38U+dEFXLv0l6svtQQBQUAQEAQEAUFAEKgfgZ0ggHpYmgjSHQvcxtCatqPzbtl1AL+DIH7VTjS5ZWMUcQUBQUAQEAQEAUHgliKwUwRQY6gMOI6wR/CErlWiyH8G1d2Bzt/FK5d5Pbisge/CAZead1FGkUkQEAQEgV1EIIy8P2KvdSoEXvTHVILcCAKCQK0IZD5ytbZda2O02AUZhNXt7pBBkj5oKQe+H74uY3VcKyDSmCAgCAgCdwSB709++S+DcPo/MJx/pYb0D3/8ae8//usvfvvjHRmiDEMQ2DkEbg0BNJEDGWzsgQzimLXHSOdev6aZv644CR/aHoa+93bqhUPR9K0LaWlXEBAE7hsCk7/65cdBcPNXHPf+3v6rf37+23+4bxjIeAWBTSJwKwlgFiASwn1vH0vEYQuneXwEK+AmDEG4ZNzIli1/Hzue5kkkX0eeP5p605EQvvLoSUlBQBAQBAQBQUAQ2F0E7gQBzIP3j8e//PlP3s3P02WCP8d+k++jKPy9mR4E4ffvn3+VSjPzJS4ICAKCgCAgCAgCgsBdQOD/A497TRFqF6UzAAAAAElFTkSuQmCC"})],-1)]))}const l=Q(C,[["render",v]]);export{l as A}; diff --git a/public/build/assets/AuditItems-C91XYBsh.js b/public/build/assets/AuditItems-C91XYBsh.js deleted file mode 100644 index 45596da0..00000000 --- a/public/build/assets/AuditItems-C91XYBsh.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as r}from"./AuthenticatedLayout-BSBk4Waj.js";import{c as o,a as t,u as s,w as e,F as i,b as m,Z as l,d as n}from"./app-zpP4mvhd.js";import{_}from"./AuditItemsComponent-a90oNwdn.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-6L6tESKC.js";import"./dayjs.min-C0_0pMrK.js";const B={__name:"AuditItems",setup(p){return(u,a)=>(m(),o(i,null,[t(s(l),{title:"Audit Trail"}),t(r,null,{header:e(()=>a[0]||(a[0]=[n("h2",{class:"font-normal text-xl text-gray-800 leading-tight"},"Audit Trail",-1)])),default:e(()=>[t(_)]),_:1})],64))}};export{B as default}; diff --git a/public/build/assets/AuditItems-CVvx5G_R.js b/public/build/assets/AuditItems-CVvx5G_R.js new file mode 100644 index 00000000..5e5ed49b --- /dev/null +++ b/public/build/assets/AuditItems-CVvx5G_R.js @@ -0,0 +1 @@ +import{_ as r}from"./AuthenticatedLayout-DuLcXyKk.js";import{c as o,a as t,u as s,w as e,F as i,b as m,Z as l,d as n}from"./app-DolNWhzr.js";import{_}from"./AuditItemsComponent-C0ljhUTP.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./dayjs.min-ilzO22t1.js";const B={__name:"AuditItems",setup(p){return(u,a)=>(m(),o(i,null,[t(s(l),{title:"Audit Trail"}),t(r,null,{header:e(()=>a[0]||(a[0]=[n("h2",{class:"font-normal text-xl text-gray-800 leading-tight"},"Audit Trail",-1)])),default:e(()=>[t(_)]),_:1})],64))}};export{B as default}; diff --git a/public/build/assets/AuditItemsComponent-a90oNwdn.js b/public/build/assets/AuditItemsComponent-C0ljhUTP.js similarity index 86% rename from public/build/assets/AuditItemsComponent-a90oNwdn.js rename to public/build/assets/AuditItemsComponent-C0ljhUTP.js index 34e70bc9..2ac042da 100644 --- a/public/build/assets/AuditItemsComponent-a90oNwdn.js +++ b/public/build/assets/AuditItemsComponent-C0ljhUTP.js @@ -1 +1 @@ -import{d as m}from"./dayjs.min-C0_0pMrK.js";import{S as f}from"./AuthenticatedLayout-BSBk4Waj.js";import{r as p,o as h,b as r,c as d,d as t,F as v,g as x,a as _,w as g,t as n,u as l,i as w}from"./app-zpP4mvhd.js";const y={class:"card"},b={class:"flex justify-between items-center border-b border-gray-200 p-4"},B={class:"text-xs text-gray-500 italic"},Y={__name:"AuditItemsComponent",props:{isAdmin:{type:Boolean,default:!1,required:!1}},setup(o){const c=o,i=p({});function u(){let a="/my-team-audit-items?cached=false&orderBy=id,desc";c.isAdmin&&(a="/admin/audit-items?cached=false&relations=team&orderBy=id,desc"),axios.get(a).then(e=>{i.value=e.data.data}).catch(e=>{f.fire({icon:"error",title:"Oops!",text:e.response.data.message})})}return h(()=>{u()}),(a,e)=>(r(),d("div",y,[e[1]||(e[1]=t("div",{class:"card-header"}," Audit Trail ",-1)),(r(!0),d(v,null,x(i.value.data,s=>(r(),d("div",null,[_(l(w),{class:"hover:no-underline",href:o.isAdmin?s.admin_url:s.dashboard_url},{default:g(()=>[t("div",b,[t("div",null,[t("div",null,n(s.auditable_text),1),t("div",B,n(l(m)(s.created_at).format("dddd, MMMM Do YYYY [at] h:mm:ss a")),1)]),e[0]||(e[0]=t("div",null,[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"])]))),256))]))}};export{Y as _}; +import{d as m}from"./dayjs.min-ilzO22t1.js";import{S as f}from"./AuthenticatedLayout-DuLcXyKk.js";import{r as p,o as h,b as r,c as d,d as t,F as v,g as x,a as _,w as g,t as n,u as l,i as w}from"./app-DolNWhzr.js";const y={class:"card"},b={class:"flex justify-between items-center border-b border-gray-200 p-4"},B={class:"text-xs text-gray-500 italic"},Y={__name:"AuditItemsComponent",props:{isAdmin:{type:Boolean,default:!1,required:!1}},setup(o){const c=o,i=p({});function u(){let a="/my-team-audit-items?cached=false&orderBy=id,desc";c.isAdmin&&(a="/admin/audit-items?cached=false&relations=team&orderBy=id,desc"),axios.get(a).then(e=>{i.value=e.data.data}).catch(e=>{f.fire({icon:"error",title:"Oops!",text:e.response.data.message})})}return h(()=>{u()}),(a,e)=>(r(),d("div",y,[e[1]||(e[1]=t("div",{class:"card-header"}," Audit Trail ",-1)),(r(!0),d(v,null,x(i.value.data,s=>(r(),d("div",null,[_(l(w),{class:"hover:no-underline",href:o.isAdmin?s.admin_url:s.dashboard_url},{default:g(()=>[t("div",b,[t("div",null,[t("div",null,n(s.auditable_text),1),t("div",B,n(l(m)(s.created_at).format("dddd, MMMM Do YYYY [at] h:mm:ss a")),1)]),e[0]||(e[0]=t("div",null,[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"])]))),256))]))}};export{Y as _}; diff --git a/public/build/assets/AuthenticatedLayout-BSBk4Waj.js b/public/build/assets/AuthenticatedLayout-DuLcXyKk.js similarity index 97% rename from public/build/assets/AuthenticatedLayout-BSBk4Waj.js rename to public/build/assets/AuthenticatedLayout-DuLcXyKk.js index f43b32c4..b30643a7 100644 --- a/public/build/assets/AuthenticatedLayout-BSBk4Waj.js +++ b/public/build/assets/AuthenticatedLayout-DuLcXyKk.js @@ -1,4 +1,4 @@ -import{A as eo}from"./ApplicationLogo-xXEUN_wz.js";import{o as to,y as oo,z as ge,r as Y,b as p,c as v,d as a,H as W,l as Ie,I as Xe,a as k,w as g,n as R,J as no,h as J,u as F,i as le,p as Je,q as so,t as _,F as X,g as ae,f as O,e as A,Q as Ge}from"./app-zpP4mvhd.js";import{P as io}from"./PrimaryButton-6L6tESKC.js";const ro={class:"relative"},ao={__name:"Dropdown",props:{align:{type:String,default:"right"},width:{type:String,default:"48"},contentClasses:{type:String,default:"py-1 bg-white"}},setup(e){const t=e,o=d=>{r.value&&d.key==="Escape"&&(r.value=!1)};to(()=>document.addEventListener("keydown",o)),oo(()=>document.removeEventListener("keydown",o));const n=ge(()=>({48:"w-48"})[t.width.toString()]),s=ge(()=>t.align==="left"?"ltr:origin-top-left rtl:origin-top-right start-0":t.align==="right"?"ltr:origin-top-right rtl:origin-top-left end-0":"origin-top"),r=Y(!1);return(d,l)=>(p(),v("div",ro,[a("div",{onClick:l[0]||(l[0]=u=>r.value=!r.value)},[W(d.$slots,"trigger")]),Ie(a("div",{class:"fixed inset-0 z-40",onClick:l[1]||(l[1]=u=>r.value=!1)},null,512),[[Xe,r.value]]),k(no,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:g(()=>[Ie(a("div",{class:R(["absolute z-50 mt-2 rounded-md shadow-lg",[n.value,s.value]]),style:{display:"none"},onClick:l[2]||(l[2]=u=>r.value=!1)},[a("div",{class:R(["rounded-md ring-1 ring-black ring-opacity-5",e.contentClasses])},[W(d.$slots,"content")],2)],2),[[Xe,r.value]])]),_:3})]))}},V={__name:"DropdownLink",props:{href:{type:String,required:!0}},setup(e){return(t,o)=>(p(),J(F(le),{href:e.href,class:"block w-full px-4 py-2 text-start text-sm leading-5 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out"},{default:g(()=>[W(t.$slots,"default")]),_:3},8,["href"]))}},lo={__name:"NavLink",props:{href:{type:String,required:!0},active:{type:Boolean}},setup(e){const t=e,o=ge(()=>t.active?"inline-flex items-center px-1 pt-1 border-b-2 border-indigo-400 text-sm font-light leading-5 text-gray-900 focus:outline-none focus:border-indigo-700 transition duration-150 ease-in-out":"inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-light leading-5 text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out");return(n,s)=>(p(),J(F(le),{href:e.href,class:R(o.value)},{default:g(()=>[W(n.$slots,"default")]),_:3},8,["href","class"]))}},re={__name:"ResponsiveNavLink",props:{href:{type:String,required:!0},active:{type:Boolean}},setup(e){const t=e,o=ge(()=>t.active?"block w-full ps-3 pe-4 py-2 border-l-4 border-indigo-400 text-start text-base font-medium text-indigo-700 bg-indigo-50 focus:outline-none focus:text-indigo-800 focus:bg-indigo-100 focus:border-indigo-700 transition duration-150 ease-in-out":"block w-full ps-3 pe-4 py-2 border-l-4 border-transparent text-start text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300 focus:outline-none focus:text-gray-800 focus:bg-gray-50 focus:border-gray-300 transition duration-150 ease-in-out");return(n,s)=>(p(),J(F(le),{href:e.href,class:R(o.value)},{default:g(()=>[W(n.$slots,"default")]),_:3},8,["href","class"]))}};/*! +import{A as eo}from"./ApplicationLogo-B917rUN3.js";import{o as to,z as oo,A as ge,r as Y,b as p,c as v,d as a,G as W,l as Ie,H as Xe,a as k,w as g,n as R,I as no,h as G,u as F,i as le,p as Ge,q as so,t as _,F as X,g as ae,f as O,e as A,Q as Je}from"./app-DolNWhzr.js";import{P as io}from"./PrimaryButton-BtqGl7rR.js";const ro={class:"relative"},ao={__name:"Dropdown",props:{align:{type:String,default:"right"},width:{type:String,default:"48"},contentClasses:{type:String,default:"py-1 bg-white"}},setup(e){const t=e,o=d=>{r.value&&d.key==="Escape"&&(r.value=!1)};to(()=>document.addEventListener("keydown",o)),oo(()=>document.removeEventListener("keydown",o));const n=ge(()=>({48:"w-48"})[t.width.toString()]),s=ge(()=>t.align==="left"?"ltr:origin-top-left rtl:origin-top-right start-0":t.align==="right"?"ltr:origin-top-right rtl:origin-top-left end-0":"origin-top"),r=Y(!1);return(d,l)=>(p(),v("div",ro,[a("div",{onClick:l[0]||(l[0]=u=>r.value=!r.value)},[W(d.$slots,"trigger")]),Ie(a("div",{class:"fixed inset-0 z-40",onClick:l[1]||(l[1]=u=>r.value=!1)},null,512),[[Xe,r.value]]),k(no,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:g(()=>[Ie(a("div",{class:R(["absolute z-50 mt-2 rounded-md shadow-lg",[n.value,s.value]]),style:{display:"none"},onClick:l[2]||(l[2]=u=>r.value=!1)},[a("div",{class:R(["rounded-md ring-1 ring-black ring-opacity-5",e.contentClasses])},[W(d.$slots,"content")],2)],2),[[Xe,r.value]])]),_:3})]))}},V={__name:"DropdownLink",props:{href:{type:String,required:!0}},setup(e){return(t,o)=>(p(),G(F(le),{href:e.href,class:"block w-full px-4 py-2 text-start text-sm leading-5 text-gray-700 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out"},{default:g(()=>[W(t.$slots,"default")]),_:3},8,["href"]))}},lo={__name:"NavLink",props:{href:{type:String,required:!0},active:{type:Boolean}},setup(e){const t=e,o=ge(()=>t.active?"inline-flex items-center px-1 pt-1 border-b-2 border-indigo-400 text-sm font-light leading-5 text-gray-900 focus:outline-none focus:border-indigo-700 transition duration-150 ease-in-out":"inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-light leading-5 text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out");return(n,s)=>(p(),G(F(le),{href:e.href,class:R(o.value)},{default:g(()=>[W(n.$slots,"default")]),_:3},8,["href","class"]))}},re={__name:"ResponsiveNavLink",props:{href:{type:String,required:!0},active:{type:Boolean}},setup(e){const t=e,o=ge(()=>t.active?"block w-full ps-3 pe-4 py-2 border-l-4 border-indigo-400 text-start text-base font-medium text-indigo-700 bg-indigo-50 focus:outline-none focus:text-indigo-800 focus:bg-indigo-100 focus:border-indigo-700 transition duration-150 ease-in-out":"block w-full ps-3 pe-4 py-2 border-l-4 border-transparent text-start text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300 focus:outline-none focus:text-gray-800 focus:bg-gray-50 focus:border-gray-300 transition duration-150 ease-in-out");return(n,s)=>(p(),G(F(le),{href:e.href,class:R(o.value)},{default:g(()=>[W(n.$slots,"default")]),_:3},8,["href","class"]))}};/*! * sweetalert2 v11.14.5 * Released under the MIT License. */function ut(e,t,o){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}function co(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Qe(e,t){return e.get(ut(e,t))}function uo(e,t,o){co(e,t),t.set(e,o)}function wo(e,t,o){return e.set(ut(e,t),o),o}const fo=100,c={},po=()=>{c.previousActiveElement instanceof HTMLElement?(c.previousActiveElement.focus(),c.previousActiveElement=null):document.body&&document.body.focus()},ho=e=>new Promise(t=>{if(!e)return t();const o=window.scrollX,n=window.scrollY;c.restoreFocusTimeout=setTimeout(()=>{po(),t()},fo),window.scrollTo(o,n)}),wt="swal2-",mo=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"],i=mo.reduce((e,t)=>(e[t]=wt+t,e),{}),go=["success","warning","info","question","error"],be=go.reduce((e,t)=>(e[t]=wt+t,e),{}),ft="SweetAlert2:",He=e=>e.charAt(0).toUpperCase()+e.slice(1),E=e=>{console.warn(`${ft} ${typeof e=="object"?e.join(" "):e}`)},K=e=>{console.error(`${ft} ${e}`)},et=[],bo=e=>{et.includes(e)||(et.push(e),E(e))},pt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;bo(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},$e=e=>typeof e=="function"?e():e,_e=e=>e&&typeof e.toPromise=="function",ce=e=>_e(e)?e.toPromise():Promise.resolve(e),je=e=>e&&Promise.resolve(e)===e,B=()=>document.body.querySelector(`.${i.container}`),de=e=>{const t=B();return t?t.querySelector(e):null},T=e=>de(`.${e}`),f=()=>T(i.popup),ue=()=>T(i.icon),yo=()=>T(i["icon-content"]),ht=()=>T(i.title),De=()=>T(i["html-container"]),mt=()=>T(i.image),ze=()=>T(i["progress-steps"]),Ee=()=>T(i["validation-message"]),I=()=>de(`.${i.actions} .${i.confirm}`),oe=()=>de(`.${i.actions} .${i.cancel}`),Z=()=>de(`.${i.actions} .${i.deny}`),vo=()=>T(i["input-label"]),ne=()=>de(`.${i.loader}`),we=()=>T(i.actions),gt=()=>T(i.footer),Be=()=>T(i["timer-progress-bar"]),Ve=()=>T(i.close),xo=` @@ -49,7 +49,7 @@ import{A as eo}from"./ApplicationLogo-xXEUN_wz.js";import{o as to,y as oo,z as g
-`.replace(/(^|\n)\s*/g,""),Po=()=>{const e=B();return e?(e.remove(),M([document.documentElement,document.body],[i["no-backdrop"],i["toast-shown"],i["has-column"]]),!0):!1},q=()=>{c.currentInstance.resetValidationMessage()},To=()=>{const e=f(),t=j(e,i.input),o=j(e,i.file),n=e.querySelector(`.${i.range} input`),s=e.querySelector(`.${i.range} output`),r=j(e,i.select),d=e.querySelector(`.${i.checkbox} input`),l=j(e,i.textarea);t.oninput=q,o.onchange=q,r.onchange=q,d.onchange=q,l.oninput=q,n.oninput=()=>{q(),s.value=n.value},n.onchange=()=>{q(),s.value=n.value}},Lo=e=>typeof e=="string"?document.querySelector(e):e,So=e=>{const t=f();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},Io=e=>{window.getComputedStyle(e).direction==="rtl"&&w(B(),i.rtl)},Mo=e=>{const t=Po();if(Eo()){K("SweetAlert2 requires document to initialize");return}const o=document.createElement("div");o.className=i.container,t&&w(o,i["no-transition"]),L(o,Bo);const n=Lo(e.target);n.appendChild(o),So(e),Io(n),To()},We=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):typeof e=="object"?Oo(e,t):e&&L(t,e)},Oo=(e,t)=>{e.jquery?Ho(t,e):L(t,e.toString())},Ho=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},_o=(e,t)=>{const o=we(),n=ne();!o||!n||(!t.showConfirmButton&&!t.showDenyButton&&!t.showCancelButton?C(o):x(o),P(o,t,"actions"),jo(o,n,t),L(n,t.loaderHtml||""),P(n,t,"loader"))};function jo(e,t,o){const n=I(),s=Z(),r=oe();!n||!s||!r||(Le(n,"confirm",o),Le(s,"deny",o),Le(r,"cancel",o),Do(n,s,r,o),o.reverseButtons&&(o.toast?(e.insertBefore(r,n),e.insertBefore(s,n)):(e.insertBefore(r,t),e.insertBefore(s,t),e.insertBefore(n,t))))}function Do(e,t,o,n){if(!n.buttonsStyling){M([e,t,o],i.styled);return}w([e,t,o],i.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,w(e,i["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,w(t,i["default-outline"])),n.cancelButtonColor&&(o.style.backgroundColor=n.cancelButtonColor,w(o,i["default-outline"]))}function Le(e,t,o){const n=He(t);fe(e,o[`show${n}Button`],"inline-block"),L(e,o[`${t}ButtonText`]||""),e.setAttribute("aria-label",o[`${t}ButtonAriaLabel`]||""),e.className=i[t],P(e,o,`${t}Button`)}const zo=(e,t)=>{const o=Ve();o&&(L(o,t.closeButtonHtml||""),P(o,t,"closeButton"),fe(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel||""))},Vo=(e,t)=>{const o=B();o&&(qo(o,t.backdrop),Fo(o,t.position),Ro(o,t.grow),P(o,t,"container"))};function qo(e,t){typeof t=="string"?e.style.background=t:t||w([document.documentElement,document.body],i["no-backdrop"])}function Fo(e,t){t&&(t in i?w(e,i[t]):(E('The "position" parameter is not valid, defaulting to "center"'),w(e,i.center)))}function Ro(e,t){t&&w(e,i[`grow-${t}`])}var h={innerParams:new WeakMap,domCache:new WeakMap};const No=["input","file","range","select","radio","checkbox","textarea"],Wo=(e,t)=>{const o=f();if(!o)return;const n=h.innerParams.get(e),s=!n||t.input!==n.input;No.forEach(r=>{const d=j(o,i[r]);d&&(Zo(r,t.inputAttributes),d.className=i[r],s&&C(d))}),t.input&&(s&&Uo(t),Yo(t))},Uo=e=>{if(!e.input)return;if(!b[e.input]){K(`Unexpected type of input! Expected ${Object.keys(b).join(" | ")}, got "${e.input}"`);return}const t=xt(e.input);if(!t)return;const o=b[e.input](t,e);x(t),e.inputAutoFocus&&setTimeout(()=>{bt(o)})},Ko=e=>{for(let t=0;t{const o=f();if(!o)return;const n=Te(o,e);if(n){Ko(n);for(const s in t)n.setAttribute(s,t[s])}},Yo=e=>{if(!e.input)return;const t=xt(e.input);t&&P(t,e,"input")},Ue=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},pe=(e,t,o)=>{if(o.inputLabel){const n=document.createElement("label"),s=i["input-label"];n.setAttribute("for",e.id),n.className=s,typeof o.customClass=="object"&&w(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},xt=e=>{const t=f();if(t)return j(t,i[e]||i.input)},ye=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:je(t)||E(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},b={};b.text=b.email=b.password=b.number=b.tel=b.url=b.search=b.date=b["datetime-local"]=b.time=b.week=b.month=(e,t)=>(ye(e,t.inputValue),pe(e,e,t),Ue(e,t),e.type=t.input,e);b.file=(e,t)=>(pe(e,e,t),Ue(e,t),e);b.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return ye(o,t.inputValue),o.type=t.input,ye(n,t.inputValue),pe(o,e,t),e};b.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");L(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return pe(e,e,t),e};b.radio=e=>(e.textContent="",e);b.checkbox=(e,t)=>{const o=Te(f(),"checkbox");o.value="1",o.checked=!!t.inputValue;const n=e.querySelector("span");return L(n,t.inputPlaceholder||t.inputLabel),o};b.textarea=(e,t)=>{ye(e,t.inputValue),Ue(e,t),pe(e,e,t);const o=n=>parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const n=parseInt(window.getComputedStyle(f()).width),s=()=>{if(!document.body.contains(e))return;const r=e.offsetWidth+o(e);r>n?f().style.width=`${r}px`:N(f(),"width",t.width)};new MutationObserver(s).observe(e,{attributes:!0,attributeFilter:["style"]})}}),e};const Xo=(e,t)=>{const o=De();o&&(Re(o),P(o,t,"htmlContainer"),t.html?(We(t.html,o),x(o,"block")):t.text?(o.textContent=t.text,x(o,"block")):C(o),Wo(e,t))},Jo=(e,t)=>{const o=gt();o&&(Re(o),fe(o,t.footer,"block"),t.footer&&We(t.footer,o),P(o,t,"footer"))},Go=(e,t)=>{const o=h.innerParams.get(e),n=ue();if(n){if(o&&t.icon===o.icon){st(n,t),nt(n,t);return}if(!t.icon&&!t.iconHtml){C(n);return}if(t.icon&&Object.keys(be).indexOf(t.icon)===-1){K(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),C(n);return}x(n),st(n,t),nt(n,t),w(n,t.showClass&&t.showClass.icon)}},nt=(e,t)=>{for(const[o,n]of Object.entries(be))t.icon!==o&&M(e,n);w(e,t.icon&&be[t.icon]),on(e,t),Qo(),P(e,t,"icon")},Qo=()=>{const e=f();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let n=0;n{const e=B();return e?(e.remove(),M([document.documentElement,document.body],[i["no-backdrop"],i["toast-shown"],i["has-column"]]),!0):!1},q=()=>{c.currentInstance.resetValidationMessage()},To=()=>{const e=f(),t=j(e,i.input),o=j(e,i.file),n=e.querySelector(`.${i.range} input`),s=e.querySelector(`.${i.range} output`),r=j(e,i.select),d=e.querySelector(`.${i.checkbox} input`),l=j(e,i.textarea);t.oninput=q,o.onchange=q,r.onchange=q,d.onchange=q,l.oninput=q,n.oninput=()=>{q(),s.value=n.value},n.onchange=()=>{q(),s.value=n.value}},Lo=e=>typeof e=="string"?document.querySelector(e):e,So=e=>{const t=f();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},Io=e=>{window.getComputedStyle(e).direction==="rtl"&&w(B(),i.rtl)},Mo=e=>{const t=Po();if(Eo()){K("SweetAlert2 requires document to initialize");return}const o=document.createElement("div");o.className=i.container,t&&w(o,i["no-transition"]),L(o,Bo);const n=Lo(e.target);n.appendChild(o),So(e),Io(n),To()},We=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):typeof e=="object"?Oo(e,t):e&&L(t,e)},Oo=(e,t)=>{e.jquery?Ho(t,e):L(t,e.toString())},Ho=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},_o=(e,t)=>{const o=we(),n=ne();!o||!n||(!t.showConfirmButton&&!t.showDenyButton&&!t.showCancelButton?C(o):x(o),P(o,t,"actions"),jo(o,n,t),L(n,t.loaderHtml||""),P(n,t,"loader"))};function jo(e,t,o){const n=I(),s=Z(),r=oe();!n||!s||!r||(Le(n,"confirm",o),Le(s,"deny",o),Le(r,"cancel",o),Do(n,s,r,o),o.reverseButtons&&(o.toast?(e.insertBefore(r,n),e.insertBefore(s,n)):(e.insertBefore(r,t),e.insertBefore(s,t),e.insertBefore(n,t))))}function Do(e,t,o,n){if(!n.buttonsStyling){M([e,t,o],i.styled);return}w([e,t,o],i.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor,w(e,i["default-outline"])),n.denyButtonColor&&(t.style.backgroundColor=n.denyButtonColor,w(t,i["default-outline"])),n.cancelButtonColor&&(o.style.backgroundColor=n.cancelButtonColor,w(o,i["default-outline"]))}function Le(e,t,o){const n=He(t);fe(e,o[`show${n}Button`],"inline-block"),L(e,o[`${t}ButtonText`]||""),e.setAttribute("aria-label",o[`${t}ButtonAriaLabel`]||""),e.className=i[t],P(e,o,`${t}Button`)}const zo=(e,t)=>{const o=Ve();o&&(L(o,t.closeButtonHtml||""),P(o,t,"closeButton"),fe(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel||""))},Vo=(e,t)=>{const o=B();o&&(qo(o,t.backdrop),Fo(o,t.position),Ro(o,t.grow),P(o,t,"container"))};function qo(e,t){typeof t=="string"?e.style.background=t:t||w([document.documentElement,document.body],i["no-backdrop"])}function Fo(e,t){t&&(t in i?w(e,i[t]):(E('The "position" parameter is not valid, defaulting to "center"'),w(e,i.center)))}function Ro(e,t){t&&w(e,i[`grow-${t}`])}var h={innerParams:new WeakMap,domCache:new WeakMap};const No=["input","file","range","select","radio","checkbox","textarea"],Wo=(e,t)=>{const o=f();if(!o)return;const n=h.innerParams.get(e),s=!n||t.input!==n.input;No.forEach(r=>{const d=j(o,i[r]);d&&(Zo(r,t.inputAttributes),d.className=i[r],s&&C(d))}),t.input&&(s&&Uo(t),Yo(t))},Uo=e=>{if(!e.input)return;if(!b[e.input]){K(`Unexpected type of input! Expected ${Object.keys(b).join(" | ")}, got "${e.input}"`);return}const t=xt(e.input);if(!t)return;const o=b[e.input](t,e);x(t),e.inputAutoFocus&&setTimeout(()=>{bt(o)})},Ko=e=>{for(let t=0;t{const o=f();if(!o)return;const n=Te(o,e);if(n){Ko(n);for(const s in t)n.setAttribute(s,t[s])}},Yo=e=>{if(!e.input)return;const t=xt(e.input);t&&P(t,e,"input")},Ue=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},pe=(e,t,o)=>{if(o.inputLabel){const n=document.createElement("label"),s=i["input-label"];n.setAttribute("for",e.id),n.className=s,typeof o.customClass=="object"&&w(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},xt=e=>{const t=f();if(t)return j(t,i[e]||i.input)},ye=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:je(t)||E(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},b={};b.text=b.email=b.password=b.number=b.tel=b.url=b.search=b.date=b["datetime-local"]=b.time=b.week=b.month=(e,t)=>(ye(e,t.inputValue),pe(e,e,t),Ue(e,t),e.type=t.input,e);b.file=(e,t)=>(pe(e,e,t),Ue(e,t),e);b.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return ye(o,t.inputValue),o.type=t.input,ye(n,t.inputValue),pe(o,e,t),e};b.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");L(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return pe(e,e,t),e};b.radio=e=>(e.textContent="",e);b.checkbox=(e,t)=>{const o=Te(f(),"checkbox");o.value="1",o.checked=!!t.inputValue;const n=e.querySelector("span");return L(n,t.inputPlaceholder||t.inputLabel),o};b.textarea=(e,t)=>{ye(e,t.inputValue),Ue(e,t),pe(e,e,t);const o=n=>parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const n=parseInt(window.getComputedStyle(f()).width),s=()=>{if(!document.body.contains(e))return;const r=e.offsetWidth+o(e);r>n?f().style.width=`${r}px`:N(f(),"width",t.width)};new MutationObserver(s).observe(e,{attributes:!0,attributeFilter:["style"]})}}),e};const Xo=(e,t)=>{const o=De();o&&(Re(o),P(o,t,"htmlContainer"),t.html?(We(t.html,o),x(o,"block")):t.text?(o.textContent=t.text,x(o,"block")):C(o),Wo(e,t))},Go=(e,t)=>{const o=gt();o&&(Re(o),fe(o,t.footer,"block"),t.footer&&We(t.footer,o),P(o,t,"footer"))},Jo=(e,t)=>{const o=h.innerParams.get(e),n=ue();if(n){if(o&&t.icon===o.icon){st(n,t),nt(n,t);return}if(!t.icon&&!t.iconHtml){C(n);return}if(t.icon&&Object.keys(be).indexOf(t.icon)===-1){K(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),C(n);return}x(n),st(n,t),nt(n,t),w(n,t.showClass&&t.showClass.icon)}},nt=(e,t)=>{for(const[o,n]of Object.entries(be))t.icon!==o&&M(e,n);w(e,t.icon&&be[t.icon]),on(e,t),Qo(),P(e,t,"icon")},Qo=()=>{const e=f();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let n=0;n
@@ -59,7 +59,7 @@ import{A as eo}from"./ApplicationLogo-xXEUN_wz.js";import{o as to,y as oo,z as g -`,st=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let o=e.innerHTML,n="";t.iconHtml?n=it(t.iconHtml):t.icon==="success"?(n=en,o=o.replace(/ style=".*?"/g,"")):t.icon==="error"?n=tn:t.icon&&(n=it({question:"?",warning:"!",info:"i"}[t.icon])),o.trim()!==n.trim()&&L(e,n)},on=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])tt(e,o,"background-color",t.iconColor);tt(e,".swal2-success-ring","border-color",t.iconColor)}},it=e=>`
${e}
`,nn=(e,t)=>{const o=mt();if(o){if(!t.imageUrl){C(o);return}x(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt||""),N(o,"width",t.imageWidth),N(o,"height",t.imageHeight),o.className=i.image,P(o,t,"image")}},sn=(e,t)=>{const o=B(),n=f();if(!(!o||!n)){if(t.toast){N(o,"width",t.width),n.style.width="100%";const s=ne();s&&n.insertBefore(s,ue())}else N(n,"width",t.width);N(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),C(Ee()),rn(n,t)}},rn=(e,t)=>{const o=t.showClass||{};e.className=`${i.popup} ${$(e)?o.popup:""}`,t.toast?(w([document.documentElement,document.body],i["toast-shown"]),w(e,i.toast)):w(e,i.modal),P(e,t,"popup"),typeof t.customClass=="string"&&w(e,t.customClass),t.icon&&w(e,i[`icon-${t.icon}`])},an=(e,t)=>{const o=ze();if(!o)return;const{progressSteps:n,currentProgressStep:s}=t;if(!n||n.length===0||s===void 0){C(o);return}x(o),o.textContent="",s>=n.length&&E("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.forEach((r,d)=>{const l=ln(r);if(o.appendChild(l),d===s&&w(l,i["active-progress-step"]),d!==n.length-1){const u=cn(t);o.appendChild(u)}})},ln=e=>{const t=document.createElement("li");return w(t,i["progress-step"]),L(t,e),t},cn=e=>{const t=document.createElement("li");return w(t,i["progress-step-line"]),e.progressStepsDistance&&N(t,"width",e.progressStepsDistance),t},dn=(e,t)=>{const o=ht();o&&(Re(o),fe(o,t.title||t.titleText,"block"),t.title&&We(t.title,o),t.titleText&&(o.innerText=t.titleText),P(o,t,"title"))},kt=(e,t)=>{sn(e,t),Vo(e,t),an(e,t),Go(e,t),nn(e,t),dn(e,t),zo(e,t),Xo(e,t),_o(e,t),Jo(e,t);const o=f();typeof t.didRender=="function"&&o&&t.didRender(o),c.eventEmitter.emit("didRender",o)},un=()=>$(f()),Ct=()=>{var e;return(e=I())===null||e===void 0?void 0:e.click()},wn=()=>{var e;return(e=Z())===null||e===void 0?void 0:e.click()},fn=()=>{var e;return(e=oe())===null||e===void 0?void 0:e.click()},se=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),At=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},pn=(e,t,o)=>{At(e),t.toast||(e.keydownHandler=n=>mn(t,n,o),e.keydownTarget=t.keydownListenerCapture?window:f(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Me=(e,t)=>{var o;const n=qe();if(n.length){e=e+t,e===n.length?e=0:e===-1&&(e=n.length-1),n[e].focus();return}(o=f())===null||o===void 0||o.focus()},$t=["ArrowRight","ArrowDown"],hn=["ArrowLeft","ArrowUp"],mn=(e,t,o)=>{e&&(t.isComposing||t.keyCode===229||(e.stopKeydownPropagation&&t.stopPropagation(),t.key==="Enter"?gn(t,e):t.key==="Tab"?bn(t):[...$t,...hn].includes(t.key)?yn(t.key):t.key==="Escape"&&vn(t,e,o)))},gn=(e,t)=>{if(!$e(t.allowEnterKey))return;const o=Te(f(),t.input);if(e.target&&o&&e.target instanceof HTMLElement&&e.target.outerHTML===o.outerHTML){if(["textarea","file"].includes(t.input))return;Ct(),e.preventDefault()}},bn=e=>{const t=e.target,o=qe();let n=-1;for(let s=0;s{const t=we(),o=I(),n=Z(),s=oe();if(!t||!o||!n||!s)return;const r=[o,n,s];if(document.activeElement instanceof HTMLElement&&!r.includes(document.activeElement))return;const d=$t.includes(e)?"nextElementSibling":"previousElementSibling";let l=document.activeElement;if(l){for(let u=0;u{$e(t.allowEscapeKey)&&(e.preventDefault(),o(se.esc))};var ee={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const xn=()=>{const e=B();Array.from(document.body.children).forEach(o=>{o.contains(e)||(o.hasAttribute("aria-hidden")&&o.setAttribute("data-previous-aria-hidden",o.getAttribute("aria-hidden")||""),o.setAttribute("aria-hidden","true"))})},Et=()=>{Array.from(document.body.children).forEach(t=>{t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")||""),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})},Bt=typeof window<"u"&&!!window.GestureEvent,kn=()=>{if(Bt&&!H(document.body,i.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,w(document.body,i.iosfix),Cn()}},Cn=()=>{const e=B();if(!e)return;let t;e.ontouchstart=o=>{t=An(o)},e.ontouchmove=o=>{t&&(o.preventDefault(),o.stopPropagation())}},An=e=>{const t=e.target,o=B(),n=De();return!o||!n||$n(e)||En(e)?!1:t===o||!ot(o)&&t instanceof HTMLElement&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"&&!(ot(n)&&n.contains(t))},$n=e=>e.touches&&e.touches.length&&e.touches[0].touchType==="stylus",En=e=>e.touches&&e.touches.length>1,Bn=()=>{if(H(document.body,i.iosfix)){const e=parseInt(document.body.style.top,10);M(document.body,i.iosfix),document.body.style.top="",document.body.scrollTop=e*-1}},Pn=()=>{const e=document.createElement("div");e.className=i["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let G=null;const Tn=e=>{G===null&&(document.body.scrollHeight>window.innerHeight||e==="scroll")&&(G=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${G+Pn()}px`)},Ln=()=>{G!==null&&(document.body.style.paddingRight=`${G}px`,G=null)};function Pt(e,t,o,n){Pe()?rt(e,n):(ho(o).then(()=>rt(e,n)),At(c)),Bt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),Fe()&&(Ln(),Bn(),Et()),Sn()}function Sn(){M([document.documentElement,document.body],[i.shown,i["height-auto"],i["no-backdrop"],i["toast-shown"]])}function D(e){e=Mn(e);const t=ee.swalPromiseResolve.get(this),o=In(this);this.isAwaitingPromise?e.isDismissed||(he(this),t(e)):o&&t(e)}const In=e=>{const t=f();if(!t)return!1;const o=h.innerParams.get(e);if(!o||H(t,o.hideClass.popup))return!1;M(t,o.showClass.popup),w(t,o.hideClass.popup);const n=B();return M(n,o.showClass.backdrop),w(n,o.hideClass.backdrop),On(e,t,o),!0};function Tt(e){const t=ee.swalPromiseReject.get(this);he(this),t&&t(e)}const he=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,h.innerParams.get(e)||e._destroy())},Mn=e=>typeof e>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),On=(e,t,o)=>{var n;const s=B(),r=vt(t);typeof o.willClose=="function"&&o.willClose(t),(n=c.eventEmitter)===null||n===void 0||n.emit("willClose",t),r?Hn(e,t,s,o.returnFocus,o.didClose):Pt(e,s,o.returnFocus,o.didClose)},Hn=(e,t,o,n,s)=>{c.swalCloseEventFinishedCallback=Pt.bind(null,e,o,n,s);const r=function(d){if(d.target===t){var l;(l=c.swalCloseEventFinishedCallback)===null||l===void 0||l.call(c),delete c.swalCloseEventFinishedCallback,t.removeEventListener("animationend",r),t.removeEventListener("transitionend",r)}};t.addEventListener("animationend",r),t.addEventListener("transitionend",r)},rt=(e,t)=>{setTimeout(()=>{var o;typeof t=="function"&&t.bind(e.params)(),(o=c.eventEmitter)===null||o===void 0||o.emit("didClose"),e._destroy&&e._destroy()})},te=e=>{let t=f();if(t||new Ae,t=f(),!t)return;const o=ne();Pe()?C(ue()):_n(t,e),x(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},_n=(e,t)=>{const o=we(),n=ne();!o||!n||(!t&&$(I())&&(t=I()),x(o),t&&(C(t),n.setAttribute("data-button-to-replace",t.className),o.insertBefore(n,t)),w([e,o],i.loading))},jn=(e,t)=>{t.input==="select"||t.input==="radio"?Fn(e,t):["text","email","number","tel","textarea"].some(o=>o===t.input)&&(_e(t.inputValue)||je(t.inputValue))&&(te(I()),Rn(e,t))},Dn=(e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return zn(o);case"radio":return Vn(o);case"file":return qn(o);default:return t.inputAutoTrim?o.value.trim():o.value}},zn=e=>e.checked?1:0,Vn=e=>e.checked?e.value:null,qn=e=>e.files&&e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null,Fn=(e,t)=>{const o=f();if(!o)return;const n=s=>{t.input==="select"?Nn(o,ve(s),t):t.input==="radio"&&Wn(o,ve(s),t)};_e(t.inputOptions)||je(t.inputOptions)?(te(I()),ce(t.inputOptions).then(s=>{e.hideLoading(),n(s)})):typeof t.inputOptions=="object"?n(t.inputOptions):K(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`)},Rn=(e,t)=>{const o=e.getInput();o&&(C(o),ce(t.inputValue).then(n=>{o.value=t.input==="number"?`${parseFloat(n)||0}`:`${n}`,x(o),o.focus(),e.hideLoading()}).catch(n=>{K(`Error in inputValue promise: ${n}`),o.value="",x(o),o.focus(),e.hideLoading()}))};function Nn(e,t,o){const n=j(e,i.select);if(!n)return;const s=(r,d,l)=>{const u=document.createElement("option");u.value=l,L(u,d),u.selected=Lt(l,o.inputValue),r.appendChild(u)};t.forEach(r=>{const d=r[0],l=r[1];if(Array.isArray(l)){const u=document.createElement("optgroup");u.label=d,u.disabled=!1,n.appendChild(u),l.forEach(m=>s(u,m[1],m[0]))}else s(n,l,d)}),n.focus()}function Wn(e,t,o){const n=j(e,i.radio);if(!n)return;t.forEach(r=>{const d=r[0],l=r[1],u=document.createElement("input"),m=document.createElement("label");u.type="radio",u.name=i.radio,u.value=d,Lt(d,o.inputValue)&&(u.checked=!0);const z=document.createElement("span");L(z,l),z.className=i.label,m.appendChild(u),m.appendChild(z),n.appendChild(m)});const s=n.querySelectorAll("input");s.length&&s[0].focus()}const ve=e=>{const t=[];return e instanceof Map?e.forEach((o,n)=>{let s=o;typeof s=="object"&&(s=ve(s)),t.push([n,s])}):Object.keys(e).forEach(o=>{let n=e[o];typeof n=="object"&&(n=ve(n)),t.push([o,n])}),t},Lt=(e,t)=>!!t&&t.toString()===e.toString(),Un=e=>{const t=h.innerParams.get(e);e.disableButtons(),t.input?St(e,"confirm"):Ze(e,!0)},Kn=e=>{const t=h.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?St(e,"deny"):Ke(e,!1)},Zn=(e,t)=>{e.disableButtons(),t(se.cancel)},St=(e,t)=>{const o=h.innerParams.get(e);if(!o.input){K(`The "input" parameter is needed to be set when using returnInputValueOn${He(t)}`);return}const n=e.getInput(),s=Dn(e,o);o.inputValidator?Yn(e,s,t):n&&!n.checkValidity()?(e.enableButtons(),e.showValidationMessage(o.validationMessage||n.validationMessage)):t==="deny"?Ke(e,s):Ze(e,s)},Yn=(e,t,o)=>{const n=h.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>ce(n.inputValidator(t,n.validationMessage))).then(r=>{e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):o==="deny"?Ke(e,t):Ze(e,t)})},Ke=(e,t)=>{const o=h.innerParams.get(e||void 0);o.showLoaderOnDeny&&te(Z()),o.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>ce(o.preDeny(t,o.validationMessage))).then(s=>{s===!1?(e.hideLoading(),he(e)):e.close({isDenied:!0,value:typeof s>"u"?t:s})}).catch(s=>It(e||void 0,s))):e.close({isDenied:!0,value:t})},at=(e,t)=>{e.close({isConfirmed:!0,value:t})},It=(e,t)=>{e.rejectPromise(t)},Ze=(e,t)=>{const o=h.innerParams.get(e||void 0);o.showLoaderOnConfirm&&te(),o.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>ce(o.preConfirm(t,o.validationMessage))).then(s=>{$(Ee())||s===!1?(e.hideLoading(),he(e)):at(e,typeof s>"u"?t:s)}).catch(s=>It(e||void 0,s))):at(e,t)};function xe(){const e=h.innerParams.get(this);if(!e)return;const t=h.domCache.get(this);C(t.loader),Pe()?e.icon&&x(ue()):Xn(t),M([t.popup,t.actions],i.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Xn=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?x(t[0],"inline-block"):Ao()&&C(e.actions)};function Mt(){const e=h.innerParams.get(this),t=h.domCache.get(this);return t?Te(t.popup,e.input):null}function Ot(e,t,o){const n=h.domCache.get(e);t.forEach(s=>{n[s].disabled=o})}function Ht(e,t){const o=f();if(!(!o||!e))if(e.type==="radio"){const n=o.querySelectorAll(`[name="${i.radio}"]`);for(let s=0;sObject.prototype.hasOwnProperty.call(Q,e),Rt=e=>Jn.indexOf(e)!==-1,Nt=e=>Gn[e],es=e=>{Ft(e)||E(`Unknown parameter "${e}"`)},ts=e=>{Qn.includes(e)&&E(`The parameter "${e}" is incompatible with toasts`)},os=e=>{const t=Nt(e);t&&pt(e,t)},ns=e=>{e.backdrop===!1&&e.allowOutsideClick&&E('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)es(t),e.toast&&ts(t),os(t)};function Wt(e){const t=f(),o=h.innerParams.get(this);if(!t||H(t,o.hideClass.popup)){E("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const n=ss(e),s=Object.assign({},o,n);kt(this,s),h.innerParams.set(this,s),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const ss=e=>{const t={};return Object.keys(e).forEach(o=>{Rt(o)?t[o]=e[o]:E(`Invalid parameter to update: ${o}`)}),t};function Ut(){const e=h.domCache.get(this),t=h.innerParams.get(this);if(!t){Kt(this);return}e.popup&&c.swalCloseEventFinishedCallback&&(c.swalCloseEventFinishedCallback(),delete c.swalCloseEventFinishedCallback),typeof t.didDestroy=="function"&&t.didDestroy(),c.eventEmitter.emit("didDestroy"),is(this)}const is=e=>{Kt(e),delete e.params,delete c.keydownHandler,delete c.keydownTarget,delete c.currentInstance},Kt=e=>{e.isAwaitingPromise?(Se(h,e),e.isAwaitingPromise=!0):(Se(ee,e),Se(h,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},Se=(e,t)=>{for(const o in e)e[o].delete(t)};var rs=Object.freeze({__proto__:null,_destroy:Ut,close:D,closeModal:D,closePopup:D,closeToast:D,disableButtons:jt,disableInput:zt,disableLoading:xe,enableButtons:_t,enableInput:Dt,getInput:Mt,handleAwaitingPromise:he,hideLoading:xe,rejectPromise:Tt,resetValidationMessage:qt,showValidationMessage:Vt,update:Wt});const as=(e,t,o)=>{e.toast?ls(e,t,o):(ds(t),us(t),ws(e,t,o))},ls=(e,t,o)=>{t.popup.onclick=()=>{e&&(cs(e)||e.timer||e.input)||o(se.close)}},cs=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let ke=!1;const ds=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(ke=!0)}}},us=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(o){e.popup.onmouseup=()=>{},(o.target===e.popup||o.target instanceof HTMLElement&&e.popup.contains(o.target))&&(ke=!0)}}},ws=(e,t,o)=>{t.container.onclick=n=>{if(ke){ke=!1;return}n.target===t.container&&$e(e.allowOutsideClick)&&o(se.backdrop)}},fs=e=>typeof e=="object"&&e.jquery,lt=e=>e instanceof Element||fs(e),ps=e=>{const t={};return typeof e[0]=="object"&&!lt(e[0])?Object.assign(t,e[0]):["title","html","icon"].forEach((o,n)=>{const s=e[n];typeof s=="string"||lt(s)?t[o]=s:s!==void 0&&K(`Unexpected type of ${o}! Expected "string" or "Element", got ${typeof s}`)}),t};function hs(){for(var e=arguments.length,t=new Array(e),o=0;oc.timeout&&c.timeout.getTimerLeft(),Zt=()=>{if(c.timeout)return $o(),c.timeout.stop()},Yt=()=>{if(c.timeout){const e=c.timeout.start();return Ne(e),e}},bs=()=>{const e=c.timeout;return e&&(e.running?Zt():Yt())},ys=e=>{if(c.timeout){const t=c.timeout.increase(e);return Ne(t,!0),t}},vs=()=>!!(c.timeout&&c.timeout.isRunning());let ct=!1;const Oe={};function xs(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";Oe[e]=this,ct||(document.body.addEventListener("click",ks),ct=!0)}const ks=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const o in Oe){const n=t.getAttribute(o);if(n){Oe[o].fire({template:n});return}}};class Cs{constructor(){this.events={}}_getHandlersByEventName(t){return typeof this.events[t]>"u"&&(this.events[t]=[]),this.events[t]}on(t,o){const n=this._getHandlersByEventName(t);n.includes(o)||n.push(o)}once(t,o){var n=this;const s=function(){n.removeListener(t,s);for(var r=arguments.length,d=new Array(r),l=0;l1?o-1:0),s=1;s{try{r.apply(this,n)}catch(d){console.error(d)}})}removeListener(t,o){const n=this._getHandlersByEventName(t),s=n.indexOf(o);s>-1&&n.splice(s,1)}removeAllListeners(t){this.events[t]!==void 0&&(this.events[t].length=0)}reset(){this.events={}}}c.eventEmitter=new Cs;const As=(e,t)=>{c.eventEmitter.on(e,t)},$s=(e,t)=>{c.eventEmitter.once(e,t)},Es=(e,t)=>{if(!e){c.eventEmitter.reset();return}t?c.eventEmitter.removeListener(e,t):c.eventEmitter.removeAllListeners(e)};var Bs=Object.freeze({__proto__:null,argsToParams:ps,bindClickHandler:xs,clickCancel:fn,clickConfirm:Ct,clickDeny:wn,enableLoading:te,fire:hs,getActions:we,getCancelButton:oe,getCloseButton:Ve,getConfirmButton:I,getContainer:B,getDenyButton:Z,getFocusableElements:qe,getFooter:gt,getHtmlContainer:De,getIcon:ue,getIconContent:yo,getImage:mt,getInputLabel:vo,getLoader:ne,getPopup:f,getProgressSteps:ze,getTimerLeft:gs,getTimerProgressBar:Be,getTitle:ht,getValidationMessage:Ee,increaseTimer:ys,isDeprecatedParameter:Nt,isLoading:ko,isTimerRunning:vs,isUpdatableParameter:Rt,isValidParameter:Ft,isVisible:un,mixin:ms,off:Es,on:As,once:$s,resumeTimer:Yt,showLoading:te,stopTimer:Zt,toggleTimer:bs});class Ps{constructor(t,o){this.callback=t,this.remaining=o,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(t){const o=this.running;return o&&this.stop(),this.remaining+=t,o&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Xt=["swal-title","swal-html","swal-footer"],Ts=e=>{const t=typeof e.template=="string"?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return js(o),Object.assign(Ls(o),Ss(o),Is(o),Ms(o),Os(o),Hs(o),_s(o,Xt))},Ls=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(n=>{U(n,["name","value"]);const s=n.getAttribute("name"),r=n.getAttribute("value");!s||!r||(typeof Q[s]=="boolean"?t[s]=r!=="false":typeof Q[s]=="object"?t[s]=JSON.parse(r):t[s]=r)}),t},Ss=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(n=>{const s=n.getAttribute("name"),r=n.getAttribute("value");!s||!r||(t[s]=new Function(`return ${r}`)())}),t},Is=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(n=>{U(n,["type","color","aria-label"]);const s=n.getAttribute("type");!s||!["confirm","cancel","deny"].includes(s)||(t[`${s}ButtonText`]=n.innerHTML,t[`show${He(s)}Button`]=!0,n.hasAttribute("color")&&(t[`${s}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(t[`${s}ButtonAriaLabel`]=n.getAttribute("aria-label")))}),t},Ms=e=>{const t={},o=e.querySelector("swal-image");return o&&(U(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")||void 0),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")||void 0),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")||void 0),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt")||void 0)),t},Os=e=>{const t={},o=e.querySelector("swal-icon");return o&&(U(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},Hs=e=>{const t={},o=e.querySelector("swal-input");o&&(U(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach(s=>{U(s,["value"]);const r=s.getAttribute("value");if(!r)return;const d=s.innerHTML;t.inputOptions[r]=d})),t},_s=(e,t)=>{const o={};for(const n in t){const s=t[n],r=e.querySelector(s);r&&(U(r,[]),o[s.replace(/^swal-/,"")]=r.innerHTML.trim())}return o},js=e=>{const t=Xt.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(o=>{const n=o.tagName.toLowerCase();t.includes(n)||E(`Unrecognized element <${n}>`)})},U=(e,t)=>{Array.from(e.attributes).forEach(o=>{t.indexOf(o.name)===-1&&E([`Unrecognized attribute "${o.name}" on <${e.tagName.toLowerCase()}>.`,`${t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."}`])})},Jt=10,Ds=e=>{const t=B(),o=f();typeof e.willOpen=="function"&&e.willOpen(o),c.eventEmitter.emit("willOpen",o);const s=window.getComputedStyle(document.body).overflowY;qs(t,o,e),setTimeout(()=>{zs(t,o)},Jt),Fe()&&(Vs(t,e.scrollbarPadding,s),xn()),!Pe()&&!c.previousActiveElement&&(c.previousActiveElement=document.activeElement),typeof e.didOpen=="function"&&setTimeout(()=>e.didOpen(o)),c.eventEmitter.emit("didOpen",o),M(t,i["no-transition"])},Ce=e=>{const t=f();if(e.target!==t)return;const o=B();t.removeEventListener("animationend",Ce),t.removeEventListener("transitionend",Ce),o.style.overflowY="auto"},zs=(e,t)=>{vt(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",Ce),t.addEventListener("transitionend",Ce)):e.style.overflowY="auto"},Vs=(e,t,o)=>{kn(),t&&o!=="hidden"&&Tn(o),setTimeout(()=>{e.scrollTop=0})},qs=(e,t,o)=>{w(e,o.showClass.backdrop),o.animation?(t.style.setProperty("opacity","0","important"),x(t,"grid"),setTimeout(()=>{w(t,o.showClass.popup),t.style.removeProperty("opacity")},Jt)):x(t,"grid"),w([document.documentElement,document.body],i.shown),o.heightAuto&&o.backdrop&&!o.toast&&w([document.documentElement,document.body],i["height-auto"])};var dt={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function Fs(e){e.inputValidator||(e.input==="email"&&(e.inputValidator=dt.email),e.input==="url"&&(e.inputValidator=dt.url))}function Rs(e){(!e.target||typeof e.target=="string"&&!document.querySelector(e.target)||typeof e.target!="string"&&!e.target.appendChild)&&(E('Target parameter is not valid, defaulting to "body"'),e.target="body")}function Ns(e){Fs(e),e.showLoaderOnConfirm&&!e.preConfirm&&E(`showLoaderOnConfirm is set to true, but preConfirm is not defined. +`,st=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let o=e.innerHTML,n="";t.iconHtml?n=it(t.iconHtml):t.icon==="success"?(n=en,o=o.replace(/ style=".*?"/g,"")):t.icon==="error"?n=tn:t.icon&&(n=it({question:"?",warning:"!",info:"i"}[t.icon])),o.trim()!==n.trim()&&L(e,n)},on=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])tt(e,o,"background-color",t.iconColor);tt(e,".swal2-success-ring","border-color",t.iconColor)}},it=e=>`
${e}
`,nn=(e,t)=>{const o=mt();if(o){if(!t.imageUrl){C(o);return}x(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt||""),N(o,"width",t.imageWidth),N(o,"height",t.imageHeight),o.className=i.image,P(o,t,"image")}},sn=(e,t)=>{const o=B(),n=f();if(!(!o||!n)){if(t.toast){N(o,"width",t.width),n.style.width="100%";const s=ne();s&&n.insertBefore(s,ue())}else N(n,"width",t.width);N(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),C(Ee()),rn(n,t)}},rn=(e,t)=>{const o=t.showClass||{};e.className=`${i.popup} ${$(e)?o.popup:""}`,t.toast?(w([document.documentElement,document.body],i["toast-shown"]),w(e,i.toast)):w(e,i.modal),P(e,t,"popup"),typeof t.customClass=="string"&&w(e,t.customClass),t.icon&&w(e,i[`icon-${t.icon}`])},an=(e,t)=>{const o=ze();if(!o)return;const{progressSteps:n,currentProgressStep:s}=t;if(!n||n.length===0||s===void 0){C(o);return}x(o),o.textContent="",s>=n.length&&E("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.forEach((r,d)=>{const l=ln(r);if(o.appendChild(l),d===s&&w(l,i["active-progress-step"]),d!==n.length-1){const u=cn(t);o.appendChild(u)}})},ln=e=>{const t=document.createElement("li");return w(t,i["progress-step"]),L(t,e),t},cn=e=>{const t=document.createElement("li");return w(t,i["progress-step-line"]),e.progressStepsDistance&&N(t,"width",e.progressStepsDistance),t},dn=(e,t)=>{const o=ht();o&&(Re(o),fe(o,t.title||t.titleText,"block"),t.title&&We(t.title,o),t.titleText&&(o.innerText=t.titleText),P(o,t,"title"))},kt=(e,t)=>{sn(e,t),Vo(e,t),an(e,t),Jo(e,t),nn(e,t),dn(e,t),zo(e,t),Xo(e,t),_o(e,t),Go(e,t);const o=f();typeof t.didRender=="function"&&o&&t.didRender(o),c.eventEmitter.emit("didRender",o)},un=()=>$(f()),Ct=()=>{var e;return(e=I())===null||e===void 0?void 0:e.click()},wn=()=>{var e;return(e=Z())===null||e===void 0?void 0:e.click()},fn=()=>{var e;return(e=oe())===null||e===void 0?void 0:e.click()},se=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),At=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},pn=(e,t,o)=>{At(e),t.toast||(e.keydownHandler=n=>mn(t,n,o),e.keydownTarget=t.keydownListenerCapture?window:f(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Me=(e,t)=>{var o;const n=qe();if(n.length){e=e+t,e===n.length?e=0:e===-1&&(e=n.length-1),n[e].focus();return}(o=f())===null||o===void 0||o.focus()},$t=["ArrowRight","ArrowDown"],hn=["ArrowLeft","ArrowUp"],mn=(e,t,o)=>{e&&(t.isComposing||t.keyCode===229||(e.stopKeydownPropagation&&t.stopPropagation(),t.key==="Enter"?gn(t,e):t.key==="Tab"?bn(t):[...$t,...hn].includes(t.key)?yn(t.key):t.key==="Escape"&&vn(t,e,o)))},gn=(e,t)=>{if(!$e(t.allowEnterKey))return;const o=Te(f(),t.input);if(e.target&&o&&e.target instanceof HTMLElement&&e.target.outerHTML===o.outerHTML){if(["textarea","file"].includes(t.input))return;Ct(),e.preventDefault()}},bn=e=>{const t=e.target,o=qe();let n=-1;for(let s=0;s{const t=we(),o=I(),n=Z(),s=oe();if(!t||!o||!n||!s)return;const r=[o,n,s];if(document.activeElement instanceof HTMLElement&&!r.includes(document.activeElement))return;const d=$t.includes(e)?"nextElementSibling":"previousElementSibling";let l=document.activeElement;if(l){for(let u=0;u{$e(t.allowEscapeKey)&&(e.preventDefault(),o(se.esc))};var ee={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const xn=()=>{const e=B();Array.from(document.body.children).forEach(o=>{o.contains(e)||(o.hasAttribute("aria-hidden")&&o.setAttribute("data-previous-aria-hidden",o.getAttribute("aria-hidden")||""),o.setAttribute("aria-hidden","true"))})},Et=()=>{Array.from(document.body.children).forEach(t=>{t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")||""),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})},Bt=typeof window<"u"&&!!window.GestureEvent,kn=()=>{if(Bt&&!H(document.body,i.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,w(document.body,i.iosfix),Cn()}},Cn=()=>{const e=B();if(!e)return;let t;e.ontouchstart=o=>{t=An(o)},e.ontouchmove=o=>{t&&(o.preventDefault(),o.stopPropagation())}},An=e=>{const t=e.target,o=B(),n=De();return!o||!n||$n(e)||En(e)?!1:t===o||!ot(o)&&t instanceof HTMLElement&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"&&!(ot(n)&&n.contains(t))},$n=e=>e.touches&&e.touches.length&&e.touches[0].touchType==="stylus",En=e=>e.touches&&e.touches.length>1,Bn=()=>{if(H(document.body,i.iosfix)){const e=parseInt(document.body.style.top,10);M(document.body,i.iosfix),document.body.style.top="",document.body.scrollTop=e*-1}},Pn=()=>{const e=document.createElement("div");e.className=i["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let J=null;const Tn=e=>{J===null&&(document.body.scrollHeight>window.innerHeight||e==="scroll")&&(J=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${J+Pn()}px`)},Ln=()=>{J!==null&&(document.body.style.paddingRight=`${J}px`,J=null)};function Pt(e,t,o,n){Pe()?rt(e,n):(ho(o).then(()=>rt(e,n)),At(c)),Bt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),Fe()&&(Ln(),Bn(),Et()),Sn()}function Sn(){M([document.documentElement,document.body],[i.shown,i["height-auto"],i["no-backdrop"],i["toast-shown"]])}function D(e){e=Mn(e);const t=ee.swalPromiseResolve.get(this),o=In(this);this.isAwaitingPromise?e.isDismissed||(he(this),t(e)):o&&t(e)}const In=e=>{const t=f();if(!t)return!1;const o=h.innerParams.get(e);if(!o||H(t,o.hideClass.popup))return!1;M(t,o.showClass.popup),w(t,o.hideClass.popup);const n=B();return M(n,o.showClass.backdrop),w(n,o.hideClass.backdrop),On(e,t,o),!0};function Tt(e){const t=ee.swalPromiseReject.get(this);he(this),t&&t(e)}const he=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,h.innerParams.get(e)||e._destroy())},Mn=e=>typeof e>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),On=(e,t,o)=>{var n;const s=B(),r=vt(t);typeof o.willClose=="function"&&o.willClose(t),(n=c.eventEmitter)===null||n===void 0||n.emit("willClose",t),r?Hn(e,t,s,o.returnFocus,o.didClose):Pt(e,s,o.returnFocus,o.didClose)},Hn=(e,t,o,n,s)=>{c.swalCloseEventFinishedCallback=Pt.bind(null,e,o,n,s);const r=function(d){if(d.target===t){var l;(l=c.swalCloseEventFinishedCallback)===null||l===void 0||l.call(c),delete c.swalCloseEventFinishedCallback,t.removeEventListener("animationend",r),t.removeEventListener("transitionend",r)}};t.addEventListener("animationend",r),t.addEventListener("transitionend",r)},rt=(e,t)=>{setTimeout(()=>{var o;typeof t=="function"&&t.bind(e.params)(),(o=c.eventEmitter)===null||o===void 0||o.emit("didClose"),e._destroy&&e._destroy()})},te=e=>{let t=f();if(t||new Ae,t=f(),!t)return;const o=ne();Pe()?C(ue()):_n(t,e),x(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},_n=(e,t)=>{const o=we(),n=ne();!o||!n||(!t&&$(I())&&(t=I()),x(o),t&&(C(t),n.setAttribute("data-button-to-replace",t.className),o.insertBefore(n,t)),w([e,o],i.loading))},jn=(e,t)=>{t.input==="select"||t.input==="radio"?Fn(e,t):["text","email","number","tel","textarea"].some(o=>o===t.input)&&(_e(t.inputValue)||je(t.inputValue))&&(te(I()),Rn(e,t))},Dn=(e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return zn(o);case"radio":return Vn(o);case"file":return qn(o);default:return t.inputAutoTrim?o.value.trim():o.value}},zn=e=>e.checked?1:0,Vn=e=>e.checked?e.value:null,qn=e=>e.files&&e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null,Fn=(e,t)=>{const o=f();if(!o)return;const n=s=>{t.input==="select"?Nn(o,ve(s),t):t.input==="radio"&&Wn(o,ve(s),t)};_e(t.inputOptions)||je(t.inputOptions)?(te(I()),ce(t.inputOptions).then(s=>{e.hideLoading(),n(s)})):typeof t.inputOptions=="object"?n(t.inputOptions):K(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`)},Rn=(e,t)=>{const o=e.getInput();o&&(C(o),ce(t.inputValue).then(n=>{o.value=t.input==="number"?`${parseFloat(n)||0}`:`${n}`,x(o),o.focus(),e.hideLoading()}).catch(n=>{K(`Error in inputValue promise: ${n}`),o.value="",x(o),o.focus(),e.hideLoading()}))};function Nn(e,t,o){const n=j(e,i.select);if(!n)return;const s=(r,d,l)=>{const u=document.createElement("option");u.value=l,L(u,d),u.selected=Lt(l,o.inputValue),r.appendChild(u)};t.forEach(r=>{const d=r[0],l=r[1];if(Array.isArray(l)){const u=document.createElement("optgroup");u.label=d,u.disabled=!1,n.appendChild(u),l.forEach(m=>s(u,m[1],m[0]))}else s(n,l,d)}),n.focus()}function Wn(e,t,o){const n=j(e,i.radio);if(!n)return;t.forEach(r=>{const d=r[0],l=r[1],u=document.createElement("input"),m=document.createElement("label");u.type="radio",u.name=i.radio,u.value=d,Lt(d,o.inputValue)&&(u.checked=!0);const z=document.createElement("span");L(z,l),z.className=i.label,m.appendChild(u),m.appendChild(z),n.appendChild(m)});const s=n.querySelectorAll("input");s.length&&s[0].focus()}const ve=e=>{const t=[];return e instanceof Map?e.forEach((o,n)=>{let s=o;typeof s=="object"&&(s=ve(s)),t.push([n,s])}):Object.keys(e).forEach(o=>{let n=e[o];typeof n=="object"&&(n=ve(n)),t.push([o,n])}),t},Lt=(e,t)=>!!t&&t.toString()===e.toString(),Un=e=>{const t=h.innerParams.get(e);e.disableButtons(),t.input?St(e,"confirm"):Ze(e,!0)},Kn=e=>{const t=h.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?St(e,"deny"):Ke(e,!1)},Zn=(e,t)=>{e.disableButtons(),t(se.cancel)},St=(e,t)=>{const o=h.innerParams.get(e);if(!o.input){K(`The "input" parameter is needed to be set when using returnInputValueOn${He(t)}`);return}const n=e.getInput(),s=Dn(e,o);o.inputValidator?Yn(e,s,t):n&&!n.checkValidity()?(e.enableButtons(),e.showValidationMessage(o.validationMessage||n.validationMessage)):t==="deny"?Ke(e,s):Ze(e,s)},Yn=(e,t,o)=>{const n=h.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>ce(n.inputValidator(t,n.validationMessage))).then(r=>{e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):o==="deny"?Ke(e,t):Ze(e,t)})},Ke=(e,t)=>{const o=h.innerParams.get(e||void 0);o.showLoaderOnDeny&&te(Z()),o.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>ce(o.preDeny(t,o.validationMessage))).then(s=>{s===!1?(e.hideLoading(),he(e)):e.close({isDenied:!0,value:typeof s>"u"?t:s})}).catch(s=>It(e||void 0,s))):e.close({isDenied:!0,value:t})},at=(e,t)=>{e.close({isConfirmed:!0,value:t})},It=(e,t)=>{e.rejectPromise(t)},Ze=(e,t)=>{const o=h.innerParams.get(e||void 0);o.showLoaderOnConfirm&&te(),o.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>ce(o.preConfirm(t,o.validationMessage))).then(s=>{$(Ee())||s===!1?(e.hideLoading(),he(e)):at(e,typeof s>"u"?t:s)}).catch(s=>It(e||void 0,s))):at(e,t)};function xe(){const e=h.innerParams.get(this);if(!e)return;const t=h.domCache.get(this);C(t.loader),Pe()?e.icon&&x(ue()):Xn(t),M([t.popup,t.actions],i.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Xn=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?x(t[0],"inline-block"):Ao()&&C(e.actions)};function Mt(){const e=h.innerParams.get(this),t=h.domCache.get(this);return t?Te(t.popup,e.input):null}function Ot(e,t,o){const n=h.domCache.get(e);t.forEach(s=>{n[s].disabled=o})}function Ht(e,t){const o=f();if(!(!o||!e))if(e.type==="radio"){const n=o.querySelectorAll(`[name="${i.radio}"]`);for(let s=0;sObject.prototype.hasOwnProperty.call(Q,e),Rt=e=>Gn.indexOf(e)!==-1,Nt=e=>Jn[e],es=e=>{Ft(e)||E(`Unknown parameter "${e}"`)},ts=e=>{Qn.includes(e)&&E(`The parameter "${e}" is incompatible with toasts`)},os=e=>{const t=Nt(e);t&&pt(e,t)},ns=e=>{e.backdrop===!1&&e.allowOutsideClick&&E('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const t in e)es(t),e.toast&&ts(t),os(t)};function Wt(e){const t=f(),o=h.innerParams.get(this);if(!t||H(t,o.hideClass.popup)){E("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const n=ss(e),s=Object.assign({},o,n);kt(this,s),h.innerParams.set(this,s),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const ss=e=>{const t={};return Object.keys(e).forEach(o=>{Rt(o)?t[o]=e[o]:E(`Invalid parameter to update: ${o}`)}),t};function Ut(){const e=h.domCache.get(this),t=h.innerParams.get(this);if(!t){Kt(this);return}e.popup&&c.swalCloseEventFinishedCallback&&(c.swalCloseEventFinishedCallback(),delete c.swalCloseEventFinishedCallback),typeof t.didDestroy=="function"&&t.didDestroy(),c.eventEmitter.emit("didDestroy"),is(this)}const is=e=>{Kt(e),delete e.params,delete c.keydownHandler,delete c.keydownTarget,delete c.currentInstance},Kt=e=>{e.isAwaitingPromise?(Se(h,e),e.isAwaitingPromise=!0):(Se(ee,e),Se(h,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},Se=(e,t)=>{for(const o in e)e[o].delete(t)};var rs=Object.freeze({__proto__:null,_destroy:Ut,close:D,closeModal:D,closePopup:D,closeToast:D,disableButtons:jt,disableInput:zt,disableLoading:xe,enableButtons:_t,enableInput:Dt,getInput:Mt,handleAwaitingPromise:he,hideLoading:xe,rejectPromise:Tt,resetValidationMessage:qt,showValidationMessage:Vt,update:Wt});const as=(e,t,o)=>{e.toast?ls(e,t,o):(ds(t),us(t),ws(e,t,o))},ls=(e,t,o)=>{t.popup.onclick=()=>{e&&(cs(e)||e.timer||e.input)||o(se.close)}},cs=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let ke=!1;const ds=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(ke=!0)}}},us=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(o){e.popup.onmouseup=()=>{},(o.target===e.popup||o.target instanceof HTMLElement&&e.popup.contains(o.target))&&(ke=!0)}}},ws=(e,t,o)=>{t.container.onclick=n=>{if(ke){ke=!1;return}n.target===t.container&&$e(e.allowOutsideClick)&&o(se.backdrop)}},fs=e=>typeof e=="object"&&e.jquery,lt=e=>e instanceof Element||fs(e),ps=e=>{const t={};return typeof e[0]=="object"&&!lt(e[0])?Object.assign(t,e[0]):["title","html","icon"].forEach((o,n)=>{const s=e[n];typeof s=="string"||lt(s)?t[o]=s:s!==void 0&&K(`Unexpected type of ${o}! Expected "string" or "Element", got ${typeof s}`)}),t};function hs(){for(var e=arguments.length,t=new Array(e),o=0;oc.timeout&&c.timeout.getTimerLeft(),Zt=()=>{if(c.timeout)return $o(),c.timeout.stop()},Yt=()=>{if(c.timeout){const e=c.timeout.start();return Ne(e),e}},bs=()=>{const e=c.timeout;return e&&(e.running?Zt():Yt())},ys=e=>{if(c.timeout){const t=c.timeout.increase(e);return Ne(t,!0),t}},vs=()=>!!(c.timeout&&c.timeout.isRunning());let ct=!1;const Oe={};function xs(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";Oe[e]=this,ct||(document.body.addEventListener("click",ks),ct=!0)}const ks=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const o in Oe){const n=t.getAttribute(o);if(n){Oe[o].fire({template:n});return}}};class Cs{constructor(){this.events={}}_getHandlersByEventName(t){return typeof this.events[t]>"u"&&(this.events[t]=[]),this.events[t]}on(t,o){const n=this._getHandlersByEventName(t);n.includes(o)||n.push(o)}once(t,o){var n=this;const s=function(){n.removeListener(t,s);for(var r=arguments.length,d=new Array(r),l=0;l1?o-1:0),s=1;s{try{r.apply(this,n)}catch(d){console.error(d)}})}removeListener(t,o){const n=this._getHandlersByEventName(t),s=n.indexOf(o);s>-1&&n.splice(s,1)}removeAllListeners(t){this.events[t]!==void 0&&(this.events[t].length=0)}reset(){this.events={}}}c.eventEmitter=new Cs;const As=(e,t)=>{c.eventEmitter.on(e,t)},$s=(e,t)=>{c.eventEmitter.once(e,t)},Es=(e,t)=>{if(!e){c.eventEmitter.reset();return}t?c.eventEmitter.removeListener(e,t):c.eventEmitter.removeAllListeners(e)};var Bs=Object.freeze({__proto__:null,argsToParams:ps,bindClickHandler:xs,clickCancel:fn,clickConfirm:Ct,clickDeny:wn,enableLoading:te,fire:hs,getActions:we,getCancelButton:oe,getCloseButton:Ve,getConfirmButton:I,getContainer:B,getDenyButton:Z,getFocusableElements:qe,getFooter:gt,getHtmlContainer:De,getIcon:ue,getIconContent:yo,getImage:mt,getInputLabel:vo,getLoader:ne,getPopup:f,getProgressSteps:ze,getTimerLeft:gs,getTimerProgressBar:Be,getTitle:ht,getValidationMessage:Ee,increaseTimer:ys,isDeprecatedParameter:Nt,isLoading:ko,isTimerRunning:vs,isUpdatableParameter:Rt,isValidParameter:Ft,isVisible:un,mixin:ms,off:Es,on:As,once:$s,resumeTimer:Yt,showLoading:te,stopTimer:Zt,toggleTimer:bs});class Ps{constructor(t,o){this.callback=t,this.remaining=o,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(t){const o=this.running;return o&&this.stop(),this.remaining+=t,o&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Xt=["swal-title","swal-html","swal-footer"],Ts=e=>{const t=typeof e.template=="string"?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return js(o),Object.assign(Ls(o),Ss(o),Is(o),Ms(o),Os(o),Hs(o),_s(o,Xt))},Ls=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(n=>{U(n,["name","value"]);const s=n.getAttribute("name"),r=n.getAttribute("value");!s||!r||(typeof Q[s]=="boolean"?t[s]=r!=="false":typeof Q[s]=="object"?t[s]=JSON.parse(r):t[s]=r)}),t},Ss=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(n=>{const s=n.getAttribute("name"),r=n.getAttribute("value");!s||!r||(t[s]=new Function(`return ${r}`)())}),t},Is=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(n=>{U(n,["type","color","aria-label"]);const s=n.getAttribute("type");!s||!["confirm","cancel","deny"].includes(s)||(t[`${s}ButtonText`]=n.innerHTML,t[`show${He(s)}Button`]=!0,n.hasAttribute("color")&&(t[`${s}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(t[`${s}ButtonAriaLabel`]=n.getAttribute("aria-label")))}),t},Ms=e=>{const t={},o=e.querySelector("swal-image");return o&&(U(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")||void 0),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")||void 0),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")||void 0),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt")||void 0)),t},Os=e=>{const t={},o=e.querySelector("swal-icon");return o&&(U(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},Hs=e=>{const t={},o=e.querySelector("swal-input");o&&(U(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach(s=>{U(s,["value"]);const r=s.getAttribute("value");if(!r)return;const d=s.innerHTML;t.inputOptions[r]=d})),t},_s=(e,t)=>{const o={};for(const n in t){const s=t[n],r=e.querySelector(s);r&&(U(r,[]),o[s.replace(/^swal-/,"")]=r.innerHTML.trim())}return o},js=e=>{const t=Xt.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(o=>{const n=o.tagName.toLowerCase();t.includes(n)||E(`Unrecognized element <${n}>`)})},U=(e,t)=>{Array.from(e.attributes).forEach(o=>{t.indexOf(o.name)===-1&&E([`Unrecognized attribute "${o.name}" on <${e.tagName.toLowerCase()}>.`,`${t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."}`])})},Gt=10,Ds=e=>{const t=B(),o=f();typeof e.willOpen=="function"&&e.willOpen(o),c.eventEmitter.emit("willOpen",o);const s=window.getComputedStyle(document.body).overflowY;qs(t,o,e),setTimeout(()=>{zs(t,o)},Gt),Fe()&&(Vs(t,e.scrollbarPadding,s),xn()),!Pe()&&!c.previousActiveElement&&(c.previousActiveElement=document.activeElement),typeof e.didOpen=="function"&&setTimeout(()=>e.didOpen(o)),c.eventEmitter.emit("didOpen",o),M(t,i["no-transition"])},Ce=e=>{const t=f();if(e.target!==t)return;const o=B();t.removeEventListener("animationend",Ce),t.removeEventListener("transitionend",Ce),o.style.overflowY="auto"},zs=(e,t)=>{vt(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",Ce),t.addEventListener("transitionend",Ce)):e.style.overflowY="auto"},Vs=(e,t,o)=>{kn(),t&&o!=="hidden"&&Tn(o),setTimeout(()=>{e.scrollTop=0})},qs=(e,t,o)=>{w(e,o.showClass.backdrop),o.animation?(t.style.setProperty("opacity","0","important"),x(t,"grid"),setTimeout(()=>{w(t,o.showClass.popup),t.style.removeProperty("opacity")},Gt)):x(t,"grid"),w([document.documentElement,document.body],i.shown),o.heightAuto&&o.backdrop&&!o.toast&&w([document.documentElement,document.body],i["height-auto"])};var dt={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function Fs(e){e.inputValidator||(e.input==="email"&&(e.inputValidator=dt.email),e.input==="url"&&(e.inputValidator=dt.url))}function Rs(e){(!e.target||typeof e.target=="string"&&!document.querySelector(e.target)||typeof e.target!="string"&&!e.target.appendChild)&&(E('Target parameter is not valid, defaulting to "body"'),e.target="body")}function Ns(e){Fs(e),e.showLoaderOnConfirm&&!e.preConfirm&&E(`showLoaderOnConfirm is set to true, but preConfirm is not defined. showLoaderOnConfirm should be used together with preConfirm, see usage example: https://sweetalert2.github.io/#ajax-request`),Rs(e),typeof e.title=="string"&&(e.title=e.title.split(` -`).join("
")),Mo(e)}let S;var me=new WeakMap;class y{constructor(){if(uo(this,me,void 0),typeof window>"u")return;S=this;for(var t=arguments.length,o=new Array(t),n=0;n1&&arguments[1]!==void 0?arguments[1]:{};if(ns(Object.assign({},o,t)),c.currentInstance){const r=ee.swalPromiseResolve.get(c.currentInstance),{isAwaitingPromise:d}=c.currentInstance;c.currentInstance._destroy(),d||r({isDismissed:!0}),Fe()&&Et()}c.currentInstance=S;const n=Us(t,o);Ns(n),Object.freeze(n),c.timeout&&(c.timeout.stop(),delete c.timeout),clearTimeout(c.restoreFocusTimeout);const s=Ks(S);return kt(S,n),h.innerParams.set(S,n),Ws(S,s,n)}then(t){return Qe(me,this).then(t)}finally(t){return Qe(me,this).finally(t)}}const Ws=(e,t,o)=>new Promise((n,s)=>{const r=d=>{e.close({isDismissed:!0,dismiss:d})};ee.swalPromiseResolve.set(e,n),ee.swalPromiseReject.set(e,s),t.confirmButton.onclick=()=>{Un(e)},t.denyButton.onclick=()=>{Kn(e)},t.cancelButton.onclick=()=>{Zn(e,r)},t.closeButton.onclick=()=>{r(se.close)},as(o,t,r),pn(c,o,r),jn(e,o),Ds(o),Zs(c,o,r),Ys(t,o),setTimeout(()=>{t.container.scrollTop=0})}),Us=(e,t)=>{const o=Ts(e),n=Object.assign({},Q,t,o,e);return n.showClass=Object.assign({},Q.showClass,n.showClass),n.hideClass=Object.assign({},Q.hideClass,n.hideClass),n.animation===!1&&(n.showClass={backdrop:"swal2-noanimation"},n.hideClass={}),n},Ks=e=>{const t={popup:f(),container:B(),actions:we(),confirmButton:I(),denyButton:Z(),cancelButton:oe(),loader:ne(),closeButton:Ve(),validationMessage:Ee(),progressSteps:ze()};return h.domCache.set(e,t),t},Zs=(e,t,o)=>{const n=Be();C(n),t.timer&&(e.timeout=new Ps(()=>{o("timer"),delete e.timeout},t.timer),t.timerProgressBar&&(x(n),P(n,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&Ne(t.timer)})))},Ys=(e,t)=>{if(!t.toast){if(!$e(t.allowEnterKey)){pt("allowEnterKey"),Gs();return}Xs(e)||Js(e,t)||Me(-1,1)}},Xs=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const o of t)if(o instanceof HTMLElement&&$(o))return o.focus(),!0;return!1},Js=(e,t)=>t.focusDeny&&$(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&$(e.cancelButton)?(e.cancelButton.focus(),!0):t.focusConfirm&&$(e.confirmButton)?(e.confirmButton.focus(),!0):!1,Gs=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const o=document.createElement("audio");o.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",o.loop=!0,document.body.appendChild(o),setTimeout(()=>{o.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${e}`)}y.prototype.disableButtons=jt;y.prototype.enableButtons=_t;y.prototype.getInput=Mt;y.prototype.disableInput=zt;y.prototype.enableInput=Dt;y.prototype.hideLoading=xe;y.prototype.disableLoading=xe;y.prototype.showValidationMessage=Vt;y.prototype.resetValidationMessage=qt;y.prototype.close=D;y.prototype.closePopup=D;y.prototype.closeModal=D;y.prototype.closeToast=D;y.prototype.rejectPromise=Tt;y.prototype.update=Wt;y.prototype._destroy=Ut;Object.assign(y,Bs);Object.keys(rs).forEach(e=>{y[e]=function(){return S&&S[e]?S[e](...arguments):null}});y.DismissReason=se;y.version="11.14.5";const Ae=y;Ae.default=Ae;typeof document<"u"&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch{o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:hsl(0,0%,33%);font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid hsl(0,0%,85%);border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:hsl(0,0%,94%);color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:rgb(249.95234375,205.965625,167.74765625);color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:rgb(156.7033492823,224.2822966507,246.2966507177);color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:rgb(200.8064516129,217.9677419355,225.1935483871);color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}');const Qs={class:"h-full"},ei={key:0,class:"absolute left-0 w-full h-full min-h-full min-w-full"},ti={class:"bg-white border rounded-lg p-4 mt-6 w-3/4 mx-auto z-20 relative overflow-y-scroll max-h-screen"},oi={class:"mb-4 text-2xl"},ni={key:0,class:"mb-8"},si={href:"/my-team/#myTeamMembers",class:"flex justify-between w-full py-2 border-b",tabindex:"0"},ii={class:"flex space-x-4"},ri=["innerHTML"],ai=["innerHTML"],li={key:1,class:"my-8"},ci=["href"],di={class:"flex"},ui=["innerHTML"],wi={key:2,class:"my-8"},fi=["href"],pi={class:"flex"},hi=["innerHTML"],mi={class:"ml-2"},gi=["innerHTML"],bi={key:1,class:"absolute top-48 left-0 w-full h-full min-h-full min-w-full"},yi={class:"bg-white border rounded-lg p-4 mt-6 w-3/4 mx-auto z-20 relative overflow-y-scroll max-h-screen"},vi={class:"text-2xl"},xi={__name:"SearchComponent",setup(e){const t=Y(""),o=Y({users:[],vouchers:[],voucherSets:[]}),n=Y(!1),s=Y(!1);Je(t,()=>{t.value.length>=3?r():(n.value=!1,s.value=!1)}),Je(o,()=>{n.value=!1,s.value=!1,t.value.length>=3&&(o.value.users.length||o.value.vouchers.length||o.value.voucherSets.length?n.value=!0:s.value=!0)});function r(){t.value&&t.value.length>=3&&axios.get("/my-team-search?cached=false&query="+t.value).then(l=>{o.value=l.data.data}).catch(l=>{Ae.fire({icon:"error",title:"Oops!",text:l.response.data.message})})}function d(l){let u=new RegExp(t.value,"ig"),m=l.matchAll(u);if(m.length===0)return l;let z=0;return m.forEach(ie=>{const Gt=l.slice(0,ie.index+z),Qt=l.slice(ie.index+z+ie[0].length),Ye=''+ie[0]+"";l=Gt+Ye+Qt,z+=Ye.length-ie[0].length}),l}return(l,u)=>(p(),v(X,null,[a("div",null,[Ie(a("input",{id:"search-box","onUpdate:modelValue":u[0]||(u[0]=m=>t.value=m),autofocus:"",class:"border-gray-200 placeholder:text-gray-400 rounded p-3 w-full text-blue",placeholder:"Search..",type:"search"},null,512),[[so,t.value]]),u[3]||(u[3]=a("div",{class:"text-xs mt-1 text-gray italic"},"Min. 3 chars",-1))]),a("div",Qs,[n.value?(p(),v("div",ei,[a("div",{class:"bg-black fixed w-full h-screen opacity-60 z-10",onClick:u[1]||(u[1]=m=>n.value=!1)}),a("div",ti,[a("div",oi,'Search Results for "'+_(t.value)+'"',1),o.value.users.length>0?(p(),v("div",ni,[u[5]||(u[5]=a("div",{class:"font-bold text-gray-300 mb-1"}," Users ",-1)),a("div",null,[(p(!0),v(X,null,ae(o.value.users,m=>(p(),v("div",null,[a("a",si,[a("div",ii,[a("div",{innerHTML:d(m.name)},null,8,ri),a("div",{innerHTML:d(m.email)},null,8,ai)]),u[4]||(u[4]=a("i",{class:"fa fa-chevron-right flex items-center"},null,-1))])]))),256))])])):O("",!0),o.value.voucherSets.length>0?(p(),v("div",li,[u[7]||(u[7]=a("div",{class:"font-bold text-gray-300 mb-1"}," Voucher Sets ",-1)),a("div",null,[(p(!0),v(X,null,ae(o.value.voucherSets,m=>(p(),v("div",null,[a("a",{href:"/voucher-set/"+m.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[a("div",di,[a("div",{innerHTML:d(m.id)},null,8,ui)]),u[6]||(u[6]=a("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,ci)]))),256))])])):O("",!0),o.value.vouchers.length>0?(p(),v("div",wi,[u[9]||(u[9]=a("div",{class:"font-bold text-gray-300 mb-1"}," Vouchers ",-1)),a("div",null,[(p(!0),v(X,null,ae(o.value.vouchers,m=>(p(),v("div",null,[a("a",{href:"/voucher/"+m.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[a("div",pi,[a("div",{innerHTML:d(m.id)},null,8,hi),a("div",mi,[a("div",{innerHTML:d("("+m.voucher_short_code+")")},null,8,gi)])]),u[8]||(u[8]=a("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,fi)]))),256))])])):O("",!0)])])):O("",!0),s.value?(p(),v("div",bi,[a("div",{class:"bg-black fixed top-18 w-full h-screen opacity-60 z-10",onClick:u[2]||(u[2]=m=>s.value=!1)}),a("div",yi,[a("div",vi,'No Search Results for "'+_(t.value)+'"',1)])])):O("",!0)])],64))}},ki={class:"min-h-screen bg-gray-100"},Ci={class:"bg-white border-b border-gray-100"},Ai={class:"container mx-auto px-4 sm:px-6 lg:px-8"},$i={class:"flex justify-between h-16"},Ei={class:"flex items-center"},Bi={class:"shrink-0 flex items-center"},Pi={class:"hidden space-x-8 sm:-my-px sm:ms-10 sm:flex uppercase"},Ti={class:"hidden sm:flex sm:items-center sm:ms-6"},Li={key:0},Si={class:"ms-3 relative"},Ii={class:"inline-flex rounded-md"},Mi={type:"button",class:"inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 rounded-md text-gray-500 bg-white hover:text-gray-700 focus:outline-none transition ease-in-out duration-150"},Oi={class:"-me-2 flex items-center sm:hidden"},Hi={class:"h-6 w-6",stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"},_i={class:"pt-2 pb-3 space-y-1"},ji={class:"pt-4 pb-1 border-t border-gray-200"},Di={class:"px-4"},zi={class:"text-base text-gray-800"},Vi={class:"text-sm text-gray-500"},qi={class:"mt-3 space-y-1"},Fi={key:0,class:"bg-white"},Ri={class:"container mx-auto py-6 px-4 flex justify-between items-center"},Ni={class:"w-full flex-grow font-bold text-lg"},Wi={key:0,class:"md:w-1/2"},Yi={__name:"AuthenticatedLayout",setup(e){const t=Y(!1);return(o,n)=>(p(),v("div",null,[a("div",ki,[a("nav",Ci,[a("div",Ai,[a("div",$i,[a("div",Ei,[a("div",Bi,[k(F(le),{href:o.route("dashboard")},{default:g(()=>[k(eo,{class:"block h-9 w-auto fill-current text-gray-800"})]),_:1},8,["href"])]),a("div",Pi,[k(lo,{href:o.route("dashboard"),active:o.route().current("dashboard")},{default:g(()=>n[1]||(n[1]=[A(" Dashboard ")])),_:1},8,["href","active"]),n[2]||(n[2]=a("a",{href:"/api-documentation",target:"_blank",class:"inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-light leading-5 text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out"}," Api Docs ",-1))])]),a("div",Ti,[o.$page.props.isImpersonating?(p(),v("div",Li,[k(io,null,{default:g(()=>[k(F(le),{href:o.route("stop-impersonating")},{default:g(()=>n[3]||(n[3]=[A("Stop Impersonating")])),_:1},8,["href"])]),_:1})])):O("",!0),a("div",Si,[k(ao,{align:"right",width:"48"},{trigger:g(()=>[a("span",Ii,[a("button",Mi,[A(_(o.$page.props.auth.user.name)+" - "+_(o.$page.props.auth.currentTeam.name)+" ",1),n[4]||(n[4]=a("svg",{class:"ms-2 -me-0.5 h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[a("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))])])]),content:g(()=>[o.$page.props.auth.user.is_admin?(p(),J(V,{key:0,href:o.route("admin.home")},{default:g(()=>n[5]||(n[5]=[A(" Admin Section ")])),_:1},8,["href"])):O("",!0),k(V,{href:o.route("profile.edit")},{default:g(()=>n[6]||(n[6]=[A(" Profile ")])),_:1},8,["href"]),k(V,{href:o.route("my-team")},{default:g(()=>n[7]||(n[7]=[A(" My Team ")])),_:1},8,["href"]),k(V,{href:o.route("my-team-voucher-sets")},{default:g(()=>n[8]||(n[8]=[A(" Voucher Sets ")])),_:1},8,["href"]),k(V,{href:o.route("audit-trail")},{default:g(()=>n[9]||(n[9]=[A(" Audit Trail ")])),_:1},8,["href"]),n[11]||(n[11]=a("hr",null,null,-1)),n[12]||(n[12]=a("div",{class:"px-4 opacity-50 text-xs mt-4"}," Switch team ",-1)),(p(!0),v(X,null,ae(F(Ge)().props.auth.availableTeams,s=>(p(),J(V,{href:"/switch-team/"+s.team_id},{default:g(()=>[A(_(s.team.name),1)]),_:2},1032,["href"]))),256)),n[13]||(n[13]=a("hr",null,null,-1)),k(V,{href:o.route("logout"),method:"post",as:"button"},{default:g(()=>n[10]||(n[10]=[A(" Log Out ")])),_:1},8,["href"])]),_:1})])]),a("div",Oi,[a("button",{onClick:n[0]||(n[0]=s=>t.value=!t.value),class:"inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out"},[(p(),v("svg",Hi,[a("path",{class:R({hidden:t.value,"inline-flex":!t.value}),"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"},null,2),a("path",{class:R({hidden:!t.value,"inline-flex":t.value}),"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,2)]))])])])]),a("div",{class:R([{block:t.value,hidden:!t.value},"sm:hidden"])},[a("div",_i,[k(re,{href:o.route("dashboard"),active:o.route().current("dashboard")},{default:g(()=>n[14]||(n[14]=[A(" Dashboard ")])),_:1},8,["href","active"]),k(re,{href:o.route("audit-trail"),active:o.route().current("audit-trail")},{default:g(()=>n[15]||(n[15]=[A(" Audit Trail ")])),_:1},8,["href","active"])]),a("div",ji,[a("div",Di,[a("div",zi,_(o.$page.props.auth.user.name),1),a("div",Vi,_(o.$page.props.auth.user.email),1)]),a("div",qi,[k(re,{href:o.route("profile.edit")},{default:g(()=>n[16]||(n[16]=[A(" Profile ")])),_:1},8,["href"]),n[18]||(n[18]=a("hr",null,null,-1)),n[19]||(n[19]=a("div",{class:"px-4 opacity-50 text-xs mt-4"}," Switch team ",-1)),(p(!0),v(X,null,ae(F(Ge)().props.auth.availableTeams,s=>(p(),J(re,{href:"/switch-team/"+s.team_id},{default:g(()=>[A(_(s.team.name),1)]),_:2},1032,["href"]))),256)),n[20]||(n[20]=a("hr",null,null,-1)),k(re,{href:o.route("logout"),method:"post",as:"button"},{default:g(()=>n[17]||(n[17]=[A(" Log Out ")])),_:1},8,["href"])])])],2)]),o.$slots.header?(p(),v("header",Fi,[a("div",Ri,[a("div",Ni,[W(o.$slots,"header")]),o.$page.url.startsWith("/admin")?O("",!0):(p(),v("div",Wi,[k(xi)]))])])):O("",!0),a("main",null,[W(o.$slots,"default")])])]))}};export{Ae as S,Yi as _}; +`).join("
")),Mo(e)}let S;var me=new WeakMap;class y{constructor(){if(uo(this,me,void 0),typeof window>"u")return;S=this;for(var t=arguments.length,o=new Array(t),n=0;n1&&arguments[1]!==void 0?arguments[1]:{};if(ns(Object.assign({},o,t)),c.currentInstance){const r=ee.swalPromiseResolve.get(c.currentInstance),{isAwaitingPromise:d}=c.currentInstance;c.currentInstance._destroy(),d||r({isDismissed:!0}),Fe()&&Et()}c.currentInstance=S;const n=Us(t,o);Ns(n),Object.freeze(n),c.timeout&&(c.timeout.stop(),delete c.timeout),clearTimeout(c.restoreFocusTimeout);const s=Ks(S);return kt(S,n),h.innerParams.set(S,n),Ws(S,s,n)}then(t){return Qe(me,this).then(t)}finally(t){return Qe(me,this).finally(t)}}const Ws=(e,t,o)=>new Promise((n,s)=>{const r=d=>{e.close({isDismissed:!0,dismiss:d})};ee.swalPromiseResolve.set(e,n),ee.swalPromiseReject.set(e,s),t.confirmButton.onclick=()=>{Un(e)},t.denyButton.onclick=()=>{Kn(e)},t.cancelButton.onclick=()=>{Zn(e,r)},t.closeButton.onclick=()=>{r(se.close)},as(o,t,r),pn(c,o,r),jn(e,o),Ds(o),Zs(c,o,r),Ys(t,o),setTimeout(()=>{t.container.scrollTop=0})}),Us=(e,t)=>{const o=Ts(e),n=Object.assign({},Q,t,o,e);return n.showClass=Object.assign({},Q.showClass,n.showClass),n.hideClass=Object.assign({},Q.hideClass,n.hideClass),n.animation===!1&&(n.showClass={backdrop:"swal2-noanimation"},n.hideClass={}),n},Ks=e=>{const t={popup:f(),container:B(),actions:we(),confirmButton:I(),denyButton:Z(),cancelButton:oe(),loader:ne(),closeButton:Ve(),validationMessage:Ee(),progressSteps:ze()};return h.domCache.set(e,t),t},Zs=(e,t,o)=>{const n=Be();C(n),t.timer&&(e.timeout=new Ps(()=>{o("timer"),delete e.timeout},t.timer),t.timerProgressBar&&(x(n),P(n,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&Ne(t.timer)})))},Ys=(e,t)=>{if(!t.toast){if(!$e(t.allowEnterKey)){pt("allowEnterKey"),Js();return}Xs(e)||Gs(e,t)||Me(-1,1)}},Xs=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const o of t)if(o instanceof HTMLElement&&$(o))return o.focus(),!0;return!1},Gs=(e,t)=>t.focusDeny&&$(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&$(e.cancelButton)?(e.cancelButton.focus(),!0):t.focusConfirm&&$(e.confirmButton)?(e.confirmButton.focus(),!0):!1,Js=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const o=document.createElement("audio");o.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",o.loop=!0,document.body.appendChild(o),setTimeout(()=>{o.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${e}`)}y.prototype.disableButtons=jt;y.prototype.enableButtons=_t;y.prototype.getInput=Mt;y.prototype.disableInput=zt;y.prototype.enableInput=Dt;y.prototype.hideLoading=xe;y.prototype.disableLoading=xe;y.prototype.showValidationMessage=Vt;y.prototype.resetValidationMessage=qt;y.prototype.close=D;y.prototype.closePopup=D;y.prototype.closeModal=D;y.prototype.closeToast=D;y.prototype.rejectPromise=Tt;y.prototype.update=Wt;y.prototype._destroy=Ut;Object.assign(y,Bs);Object.keys(rs).forEach(e=>{y[e]=function(){return S&&S[e]?S[e](...arguments):null}});y.DismissReason=se;y.version="11.14.5";const Ae=y;Ae.default=Ae;typeof document<"u"&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch{o.innerText=t}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:hsl(0,0%,33%);font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid hsl(0,0%,85%);border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:hsl(0,0%,94%);color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:rgb(249.95234375,205.965625,167.74765625);color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:rgb(156.7033492823,224.2822966507,246.2966507177);color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:rgb(200.8064516129,217.9677419355,225.1935483871);color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}');const Qs={class:"h-full"},ei={key:0,class:"absolute left-0 w-full h-full min-h-full min-w-full"},ti={class:"bg-white border rounded-lg p-4 mt-6 w-3/4 mx-auto z-20 relative overflow-y-scroll max-h-screen"},oi={class:"mb-4 text-2xl"},ni={key:0,class:"mb-8"},si={href:"/my-team/#myTeamMembers",class:"flex justify-between w-full py-2 border-b",tabindex:"0"},ii={class:"flex space-x-4"},ri=["innerHTML"],ai=["innerHTML"],li={key:1,class:"my-8"},ci=["href"],di={class:"flex"},ui=["innerHTML"],wi={key:2,class:"my-8"},fi=["href"],pi={class:"flex"},hi=["innerHTML"],mi={class:"ml-2"},gi=["innerHTML"],bi={key:1,class:"absolute top-48 left-0 w-full h-full min-h-full min-w-full"},yi={class:"bg-white border rounded-lg p-4 mt-6 w-3/4 mx-auto z-20 relative overflow-y-scroll max-h-screen"},vi={class:"text-2xl"},xi={__name:"SearchComponent",setup(e){const t=Y(""),o=Y({users:[],vouchers:[],voucherSets:[]}),n=Y(!1),s=Y(!1);Ge(t,()=>{t.value.length>=3?r():(n.value=!1,s.value=!1)}),Ge(o,()=>{n.value=!1,s.value=!1,t.value.length>=3&&(o.value.users.length||o.value.vouchers.length||o.value.voucherSets.length?n.value=!0:s.value=!0)});function r(){t.value&&t.value.length>=3&&axios.get("/my-team-search?cached=false&query="+t.value).then(l=>{o.value=l.data.data}).catch(l=>{Ae.fire({icon:"error",title:"Oops!",text:l.response.data.message})})}function d(l){let u=new RegExp(t.value,"ig"),m=l.matchAll(u);if(m.length===0)return l;let z=0;return m.forEach(ie=>{const Jt=l.slice(0,ie.index+z),Qt=l.slice(ie.index+z+ie[0].length),Ye=''+ie[0]+"";l=Jt+Ye+Qt,z+=Ye.length-ie[0].length}),l}return(l,u)=>(p(),v(X,null,[a("div",null,[Ie(a("input",{id:"search-box","onUpdate:modelValue":u[0]||(u[0]=m=>t.value=m),autofocus:"",class:"border-gray-200 placeholder:text-gray-400 rounded p-3 w-full text-blue",placeholder:"Search..",type:"search"},null,512),[[so,t.value]]),u[3]||(u[3]=a("div",{class:"text-xs mt-1 text-gray italic"},"Min. 3 chars",-1))]),a("div",Qs,[n.value?(p(),v("div",ei,[a("div",{class:"bg-black fixed w-full h-screen opacity-60 z-10",onClick:u[1]||(u[1]=m=>n.value=!1)}),a("div",ti,[a("div",oi,'Search Results for "'+_(t.value)+'"',1),o.value.users.length>0?(p(),v("div",ni,[u[5]||(u[5]=a("div",{class:"font-bold text-gray-300 mb-1"}," Users ",-1)),a("div",null,[(p(!0),v(X,null,ae(o.value.users,m=>(p(),v("div",null,[a("a",si,[a("div",ii,[a("div",{innerHTML:d(m.name)},null,8,ri),a("div",{innerHTML:d(m.email)},null,8,ai)]),u[4]||(u[4]=a("i",{class:"fa fa-chevron-right flex items-center"},null,-1))])]))),256))])])):O("",!0),o.value.voucherSets.length>0?(p(),v("div",li,[u[7]||(u[7]=a("div",{class:"font-bold text-gray-300 mb-1"}," Voucher Sets ",-1)),a("div",null,[(p(!0),v(X,null,ae(o.value.voucherSets,m=>(p(),v("div",null,[a("a",{href:"/voucher-set/"+m.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[a("div",di,[a("div",{innerHTML:d(m.id)},null,8,ui)]),u[6]||(u[6]=a("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,ci)]))),256))])])):O("",!0),o.value.vouchers.length>0?(p(),v("div",wi,[u[9]||(u[9]=a("div",{class:"font-bold text-gray-300 mb-1"}," Vouchers ",-1)),a("div",null,[(p(!0),v(X,null,ae(o.value.vouchers,m=>(p(),v("div",null,[a("a",{href:"/voucher/"+m.id,class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[a("div",pi,[a("div",{innerHTML:d(m.id)},null,8,hi),a("div",mi,[a("div",{innerHTML:d("("+m.voucher_short_code+")")},null,8,gi)])]),u[8]||(u[8]=a("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,fi)]))),256))])])):O("",!0)])])):O("",!0),s.value?(p(),v("div",bi,[a("div",{class:"bg-black fixed top-18 w-full h-screen opacity-60 z-10",onClick:u[2]||(u[2]=m=>s.value=!1)}),a("div",yi,[a("div",vi,'No Search Results for "'+_(t.value)+'"',1)])])):O("",!0)])],64))}},ki={class:"min-h-screen bg-gray-100"},Ci={class:"bg-white border-b border-gray-100"},Ai={class:"container mx-auto px-4 sm:px-6 lg:px-8"},$i={class:"flex justify-between h-16"},Ei={class:"flex items-center"},Bi={class:"shrink-0 flex items-center"},Pi={class:"hidden space-x-8 sm:-my-px sm:ms-10 sm:flex uppercase"},Ti={class:"hidden sm:flex sm:items-center sm:ms-6"},Li={key:0},Si={class:"ms-3 relative"},Ii={class:"inline-flex rounded-md"},Mi={type:"button",class:"inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 rounded-md text-gray-500 bg-white hover:text-gray-700 focus:outline-none transition ease-in-out duration-150"},Oi={class:"-me-2 flex items-center sm:hidden"},Hi={class:"h-6 w-6",stroke:"currentColor",fill:"none",viewBox:"0 0 24 24"},_i={class:"pt-2 pb-3 space-y-1"},ji={class:"pt-4 pb-1 border-t border-gray-200"},Di={class:"px-4"},zi={class:"text-base text-gray-800"},Vi={class:"text-sm text-gray-500"},qi={class:"mt-3 space-y-1"},Fi={key:0,class:"bg-white"},Ri={class:"container mx-auto py-6 px-4 flex justify-between items-center"},Ni={class:"w-full flex-grow font-bold text-lg"},Wi={key:0,class:"md:w-1/2"},Yi={__name:"AuthenticatedLayout",setup(e){const t=Y(!1);return(o,n)=>(p(),v("div",null,[a("div",ki,[a("nav",Ci,[a("div",Ai,[a("div",$i,[a("div",Ei,[a("div",Bi,[k(F(le),{href:o.route("dashboard")},{default:g(()=>[k(eo,{class:"block h-9 w-auto fill-current text-gray-800"})]),_:1},8,["href"])]),a("div",Pi,[k(lo,{href:o.route("dashboard"),active:o.route().current("dashboard")},{default:g(()=>n[1]||(n[1]=[A(" Dashboard ")])),_:1},8,["href","active"]),n[2]||(n[2]=a("a",{href:"/api-documentation",target:"_blank",class:"inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-light leading-5 text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out"}," Api Docs ",-1))])]),a("div",Ti,[o.$page.props.isImpersonating?(p(),v("div",Li,[k(io,null,{default:g(()=>[k(F(le),{href:o.route("stop-impersonating")},{default:g(()=>n[3]||(n[3]=[A("Stop Impersonating")])),_:1},8,["href"])]),_:1})])):O("",!0),a("div",Si,[k(ao,{align:"right",width:"48"},{trigger:g(()=>[a("span",Ii,[a("button",Mi,[A(_(o.$page.props.auth.user.name)+" - "+_(o.$page.props.auth.currentTeam.name)+" ",1),n[4]||(n[4]=a("svg",{class:"ms-2 -me-0.5 h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},[a("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))])])]),content:g(()=>[o.$page.props.auth.user.is_admin?(p(),G(V,{key:0,href:o.route("admin.home")},{default:g(()=>n[5]||(n[5]=[A(" Admin Section ")])),_:1},8,["href"])):O("",!0),k(V,{href:o.route("profile.edit")},{default:g(()=>n[6]||(n[6]=[A(" Profile ")])),_:1},8,["href"]),k(V,{href:o.route("my-team")},{default:g(()=>n[7]||(n[7]=[A(" My Team ")])),_:1},8,["href"]),k(V,{href:o.route("my-team-voucher-sets")},{default:g(()=>n[8]||(n[8]=[A(" Voucher Sets ")])),_:1},8,["href"]),k(V,{href:o.route("audit-trail")},{default:g(()=>n[9]||(n[9]=[A(" Audit Trail ")])),_:1},8,["href"]),n[11]||(n[11]=a("hr",null,null,-1)),n[12]||(n[12]=a("div",{class:"px-4 opacity-50 text-xs mt-4"}," Switch team ",-1)),(p(!0),v(X,null,ae(F(Je)().props.auth.availableTeams,s=>(p(),G(V,{href:"/switch-team/"+s.team_id},{default:g(()=>[A(_(s.team.name),1)]),_:2},1032,["href"]))),256)),n[13]||(n[13]=a("hr",null,null,-1)),k(V,{href:o.route("logout"),method:"post",as:"button"},{default:g(()=>n[10]||(n[10]=[A(" Log Out ")])),_:1},8,["href"])]),_:1})])]),a("div",Oi,[a("button",{onClick:n[0]||(n[0]=s=>t.value=!t.value),class:"inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out"},[(p(),v("svg",Hi,[a("path",{class:R({hidden:t.value,"inline-flex":!t.value}),"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"},null,2),a("path",{class:R({hidden:!t.value,"inline-flex":t.value}),"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,2)]))])])])]),a("div",{class:R([{block:t.value,hidden:!t.value},"sm:hidden"])},[a("div",_i,[k(re,{href:o.route("dashboard"),active:o.route().current("dashboard")},{default:g(()=>n[14]||(n[14]=[A(" Dashboard ")])),_:1},8,["href","active"]),k(re,{href:o.route("audit-trail"),active:o.route().current("audit-trail")},{default:g(()=>n[15]||(n[15]=[A(" Audit Trail ")])),_:1},8,["href","active"])]),a("div",ji,[a("div",Di,[a("div",zi,_(o.$page.props.auth.user.name),1),a("div",Vi,_(o.$page.props.auth.user.email),1)]),a("div",qi,[k(re,{href:o.route("profile.edit")},{default:g(()=>n[16]||(n[16]=[A(" Profile ")])),_:1},8,["href"]),n[18]||(n[18]=a("hr",null,null,-1)),n[19]||(n[19]=a("div",{class:"px-4 opacity-50 text-xs mt-4"}," Switch team ",-1)),(p(!0),v(X,null,ae(F(Je)().props.auth.availableTeams,s=>(p(),G(re,{href:"/switch-team/"+s.team_id},{default:g(()=>[A(_(s.team.name),1)]),_:2},1032,["href"]))),256)),n[20]||(n[20]=a("hr",null,null,-1)),k(re,{href:o.route("logout"),method:"post",as:"button"},{default:g(()=>n[17]||(n[17]=[A(" Log Out ")])),_:1},8,["href"])])])],2)]),o.$slots.header?(p(),v("header",Fi,[a("div",Ri,[a("div",Ni,[W(o.$slots,"header")]),o.$page.url.startsWith("/admin")?O("",!0):(p(),v("div",Wi,[k(xi)]))])])):O("",!0),a("main",null,[W(o.$slots,"default")])])]))}};export{Ae as S,Yi as _}; diff --git a/public/build/assets/Checkbox-wBCZrcZW.js b/public/build/assets/Checkbox-YEQY-CTw.js similarity index 87% rename from public/build/assets/Checkbox-wBCZrcZW.js rename to public/build/assets/Checkbox-YEQY-CTw.js index 413ba86f..91d0427e 100644 --- a/public/build/assets/Checkbox-wBCZrcZW.js +++ b/public/build/assets/Checkbox-YEQY-CTw.js @@ -1 +1 @@ -import{z as n,l as d,m as l,b as i,c as p}from"./app-zpP4mvhd.js";const m=["value"],k={__name:"Checkbox",props:{checked:{type:[Array,Boolean],required:!0},value:{default:null}},emits:["update:checked"],setup(e,{emit:a}){const r=a,s=e,t=n({get(){return s.checked},set(o){r("update:checked",o)}});return(o,c)=>d((i(),p("input",{type:"checkbox",value:e.value,"onUpdate:modelValue":c[0]||(c[0]=u=>t.value=u),class:"rounded border-gray-300 text-indigo-600 shadow-sm focus:ring-indigo-500"},null,8,m)),[[l,t.value]])}};export{k as _}; +import{A as n,l as d,m as l,b as i,c as p}from"./app-DolNWhzr.js";const m=["value"],k={__name:"Checkbox",props:{checked:{type:[Array,Boolean],required:!0},value:{default:null}},emits:["update:checked"],setup(e,{emit:a}){const r=a,s=e,t=n({get(){return s.checked},set(o){r("update:checked",o)}});return(o,c)=>d((i(),p("input",{type:"checkbox",value:e.value,"onUpdate:modelValue":c[0]||(c[0]=u=>t.value=u),class:"rounded border-gray-300 text-indigo-600 shadow-sm focus:ring-indigo-500"},null,8,m)),[[l,t.value]])}};export{k as _}; diff --git a/public/build/assets/ConfirmPassword-BA4mXGUh.js b/public/build/assets/ConfirmPassword-CPdCSdFC.js similarity index 77% rename from public/build/assets/ConfirmPassword-BA4mXGUh.js rename to public/build/assets/ConfirmPassword-CPdCSdFC.js index 6354ba78..bd250bdc 100644 --- a/public/build/assets/ConfirmPassword-BA4mXGUh.js +++ b/public/build/assets/ConfirmPassword-CPdCSdFC.js @@ -1 +1 @@ -import{T as n,h as l,w as t,b as d,a,u as r,Z as p,d as e,e as f,n as u,k as c}from"./app-zpP4mvhd.js";import{_}from"./GuestLayout-BgHVKdPO.js";import{_ as w}from"./InputError-CnwioU3j.js";import{_ as b}from"./InputLabel-D6wY3cNc.js";import{P as x}from"./PrimaryButton-6L6tESKC.js";import{_ as g}from"./TextInput-BGBBA2nL.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const y={class:"flex justify-end mt-4"},j={__name:"ConfirmPassword",setup(P){const s=n({password:""}),i=()=>{s.post(route("password.confirm"),{onFinish:()=>s.reset()})};return(V,o)=>(d(),l(_,null,{default:t(()=>[a(r(p),{title:"Confirm Password"}),o[2]||(o[2]=e("div",{class:"mb-4 text-sm text-gray-600"}," This is a secure area of the application. Please confirm your password before continuing. ",-1)),e("form",{onSubmit:c(i,["prevent"])},[e("div",null,[a(b,{for:"password",value:"Password"}),a(g,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:r(s).password,"onUpdate:modelValue":o[0]||(o[0]=m=>r(s).password=m),required:"",autocomplete:"current-password",autofocus:""},null,8,["modelValue"]),a(w,{class:"mt-2",message:r(s).errors.password},null,8,["message"])]),e("div",y,[a(x,{class:u(["ms-4",{"opacity-25":r(s).processing}]),disabled:r(s).processing},{default:t(()=>o[1]||(o[1]=[f(" Confirm ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{j as default}; +import{T as n,h as l,w as t,b as d,a,u as r,Z as p,d as e,e as f,n as u,k as c}from"./app-DolNWhzr.js";import{_}from"./GuestLayout-BPBJX1aK.js";import{_ as w}from"./InputError-CTOWZzBt.js";import{_ as b}from"./InputLabel-P7ZTY_pn.js";import{P as x}from"./PrimaryButton-BtqGl7rR.js";import{_ as g}from"./TextInput-C41DJZHw.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const y={class:"flex justify-end mt-4"},j={__name:"ConfirmPassword",setup(P){const s=n({password:""}),i=()=>{s.post(route("password.confirm"),{onFinish:()=>s.reset()})};return(V,o)=>(d(),l(_,null,{default:t(()=>[a(r(p),{title:"Confirm Password"}),o[2]||(o[2]=e("div",{class:"mb-4 text-sm text-gray-600"}," This is a secure area of the application. Please confirm your password before continuing. ",-1)),e("form",{onSubmit:c(i,["prevent"])},[e("div",null,[a(b,{for:"password",value:"Password"}),a(g,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:r(s).password,"onUpdate:modelValue":o[0]||(o[0]=m=>r(s).password=m),required:"",autocomplete:"current-password",autofocus:""},null,8,["modelValue"]),a(w,{class:"mt-2",message:r(s).errors.password},null,8,["message"])]),e("div",y,[a(x,{class:u(["ms-4",{"opacity-25":r(s).processing}]),disabled:r(s).processing},{default:t(()=>o[1]||(o[1]=[f(" Confirm ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{j as default}; diff --git a/public/build/assets/DangerButton-cN2oNBEm.js b/public/build/assets/DangerButton-Bm5iDOLt.js similarity index 87% rename from public/build/assets/DangerButton-cN2oNBEm.js rename to public/build/assets/DangerButton-Bm5iDOLt.js index 55aaff4a..ff084b82 100644 --- a/public/build/assets/DangerButton-cN2oNBEm.js +++ b/public/build/assets/DangerButton-Bm5iDOLt.js @@ -1 +1 @@ -import{_ as t}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{b as r,c as o,H as n}from"./app-zpP4mvhd.js";const s={},c={class:"inline-flex items-center px-4 py-2 bg-red-600 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-red-500 active:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 transition ease-in-out duration-150"};function i(e,a){return r(),o("button",c,[n(e.$slots,"default")])}const u=t(s,[["render",i]]);export{u as D}; +import{_ as t}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{b as r,c as o,G as n}from"./app-DolNWhzr.js";const s={},c={class:"inline-flex items-center px-4 py-2 bg-red-600 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-red-500 active:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 transition ease-in-out duration-150"};function i(e,a){return r(),o("button",c,[n(e.$slots,"default")])}const u=t(s,[["render",i]]);export{u as D}; diff --git a/public/build/assets/Dashboard-voGaOXrv.js b/public/build/assets/Dashboard-DNnYM2Kc.js similarity index 89% rename from public/build/assets/Dashboard-voGaOXrv.js rename to public/build/assets/Dashboard-DNnYM2Kc.js index 63c42592..e36d4292 100644 --- a/public/build/assets/Dashboard-voGaOXrv.js +++ b/public/build/assets/Dashboard-DNnYM2Kc.js @@ -1 +1 @@ -import{_ as b}from"./AuthenticatedLayout-BSBk4Waj.js";import{r as k,o as w,b as a,c as o,d as e,F as y,g as S,a as n,w as l,t as i,e as c,f,u as g,i as V,Z as M}from"./app-zpP4mvhd.js";import{P as A}from"./PaginatorComponent-Dk-0OsjZ.js";import{P as B}from"./PrimaryButton-6L6tESKC.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SecondaryButton-Dml8iKd5.js";const D={key:0,class:"card"},P={class:"card-body"},T={class:"border-b py-2 flex justify-between items-center"},j={class:"capitalize"},C={class:"text-xs text-gray-500"},N={class:"flex justify-end items-center"},z={key:0,class:"pr-2"},$={key:0},F={key:1,class:"text-lg text-green-200 font-bold"},L={key:2,class:"text-lg text-red-200 font-bold"},E={key:1,class:"text-xs pr-4"},U={class:"capitalize"},Y={class:"flex justify-end items-center mt-4"},Z={class:"w-full lg:w-1/3"},G={__name:"MyTeamVoucherSetMerchantApprovalsList",setup(x){const d=k({});w(()=>{r()});function r(_=1){axios.get("/my-team-vsmtar?cached=false&relations=voucherSet.allocatedToServiceTeam,voucherSet.voucherSetMerchantTeamApprovalActionedRecord.merchantUser&orderBy=id,desc&page="+_).then(t=>{d.value=t.data.data}).catch(t=>{console.log(t)})}return(_,t)=>{var u;return(u=d.value.data)!=null&&u.length?(a(),o("div",D,[t[4]||(t[4]=e("div",{class:"card-header"}," My Merchant Team Voucher Set Approvals ",-1)),e("div",P,[(a(!0),o(y,null,S(d.value.data,s=>(a(),o("div",null,[n(g(V),{class:"hover:no-underline hover:bg-gray-50",href:"/my-voucher-set-merchant-team-approval-request/"+s.id},{default:l(()=>{var m,v,h,p;return[e("div",T,[e("div",null,[e("div",j,i((m=s.voucher_set)==null?void 0:m.voucher_set_type),1),e("div",C,[e("div",null," Voucher Set #"+i(s.voucher_set_id),1),c(" #"+i(s.id),1)])]),e("div",N,[(v=s.voucher_set)!=null&&v.voucher_set_merchant_team_approval_actioned_record?(a(),o("div",E,[t[1]||(t[1]=c(" Voucher set ")),e("span",U,i(s.voucher_set.voucher_set_merchant_team_approval_actioned_record.approval_status),1),t[2]||(t[2]=c(" by ")),e("span",null,i((p=(h=s.voucher_set.voucher_set_merchant_team_approval_actioned_record)==null?void 0:h.merchant_user)==null?void 0:p.name),1)])):(a(),o("div",z,[s.approval_status==="ready"?(a(),o("div",$,[n(B,null,{default:l(()=>t[0]||(t[0]=[c(" Please action! ")])),_:1})])):s.approval_status==="approved"?(a(),o("div",F," Approved ")):s.approval_status==="approved"?(a(),o("div",L," Rejected ")):f("",!0)])),t[3]||(t[3]=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1))])])]}),_:2},1032,["href"])]))),256)),e("div",Y,[e("div",Z,[n(A,{onSetDataPage:r,"pagination-data":d.value},null,8,["pagination-data"])])])])])):f("",!0)}}},H={class:"my-8"},R={__name:"Dashboard",setup(x){return(d,r)=>(a(),o(y,null,[n(g(M),{title:"Dashboard"}),n(b,null,{header:l(()=>r[0]||(r[0]=[c(" Dashboard ")])),default:l(()=>[r[1]||(r[1]=e("div",{class:"card"}," You're logged in! ",-1)),e("div",H,[n(G)])]),_:1})],64))}};export{R as default}; +import{_ as b}from"./AuthenticatedLayout-DuLcXyKk.js";import{r as k,o as w,b as a,c as o,d as e,F as y,g as S,a as n,w as l,t as i,e as c,f,u as g,i as V,Z as M}from"./app-DolNWhzr.js";import{P as A}from"./PaginatorComponent-DpqX95xS.js";import{P as B}from"./PrimaryButton-BtqGl7rR.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SecondaryButton-DL_I_H3U.js";const D={key:0,class:"card"},P={class:"card-body"},T={class:"border-b py-2 flex justify-between items-center"},j={class:"capitalize"},C={class:"text-xs text-gray-500"},N={class:"flex justify-end items-center"},z={key:0,class:"pr-2"},$={key:0},F={key:1,class:"text-lg text-green-200 font-bold"},L={key:2,class:"text-lg text-red-200 font-bold"},E={key:1,class:"text-xs pr-4"},U={class:"capitalize"},Y={class:"flex justify-end items-center mt-4"},Z={class:"w-full lg:w-1/3"},G={__name:"MyTeamVoucherSetMerchantApprovalsList",setup(x){const d=k({});w(()=>{r()});function r(_=1){axios.get("/my-team-vsmtar?cached=false&relations=voucherSet.allocatedToServiceTeam,voucherSet.voucherSetMerchantTeamApprovalActionedRecord.merchantUser&orderBy=id,desc&page="+_).then(t=>{d.value=t.data.data}).catch(t=>{console.log(t)})}return(_,t)=>{var u;return(u=d.value.data)!=null&&u.length?(a(),o("div",D,[t[4]||(t[4]=e("div",{class:"card-header"}," My Merchant Team Voucher Set Approvals ",-1)),e("div",P,[(a(!0),o(y,null,S(d.value.data,s=>(a(),o("div",null,[n(g(V),{class:"hover:no-underline hover:bg-gray-50",href:"/my-voucher-set-merchant-team-approval-request/"+s.id},{default:l(()=>{var m,v,h,p;return[e("div",T,[e("div",null,[e("div",j,i((m=s.voucher_set)==null?void 0:m.voucher_set_type),1),e("div",C,[e("div",null," Voucher Set #"+i(s.voucher_set_id),1),c(" #"+i(s.id),1)])]),e("div",N,[(v=s.voucher_set)!=null&&v.voucher_set_merchant_team_approval_actioned_record?(a(),o("div",E,[t[1]||(t[1]=c(" Voucher set ")),e("span",U,i(s.voucher_set.voucher_set_merchant_team_approval_actioned_record.approval_status),1),t[2]||(t[2]=c(" by ")),e("span",null,i((p=(h=s.voucher_set.voucher_set_merchant_team_approval_actioned_record)==null?void 0:h.merchant_user)==null?void 0:p.name),1)])):(a(),o("div",z,[s.approval_status==="ready"?(a(),o("div",$,[n(B,null,{default:l(()=>t[0]||(t[0]=[c(" Please action! ")])),_:1})])):s.approval_status==="approved"?(a(),o("div",F," Approved ")):s.approval_status==="approved"?(a(),o("div",L," Rejected ")):f("",!0)])),t[3]||(t[3]=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1))])])]}),_:2},1032,["href"])]))),256)),e("div",Y,[e("div",Z,[n(A,{onSetDataPage:r,"pagination-data":d.value},null,8,["pagination-data"])])])])])):f("",!0)}}},H={class:"my-8"},R={__name:"Dashboard",setup(x){return(d,r)=>(a(),o(y,null,[n(g(M),{title:"Dashboard"}),n(b,null,{header:l(()=>r[0]||(r[0]=[c(" Dashboard ")])),default:l(()=>[r[1]||(r[1]=e("div",{class:"card"}," You're logged in! ",-1)),e("div",H,[n(G)])]),_:1})],64))}};export{R as default}; diff --git a/public/build/assets/DeleteUserForm-D6z3ubnh.js b/public/build/assets/DeleteUserForm-CdHmJiuD.js similarity index 64% rename from public/build/assets/DeleteUserForm-D6z3ubnh.js rename to public/build/assets/DeleteUserForm-CdHmJiuD.js index 452fc237..0379f8f1 100644 --- a/public/build/assets/DeleteUserForm-D6z3ubnh.js +++ b/public/build/assets/DeleteUserForm-CdHmJiuD.js @@ -1 +1 @@ -import{p as b,o as k,y as C,z as D,b as g,h as B,a as o,w as l,l as f,I as y,d as s,J as p,n as h,H as V,f as $,M as E,r as v,T as U,c as S,D as T,e as w,u as c,j as A}from"./app-zpP4mvhd.js";import{D as x}from"./DangerButton-cN2oNBEm.js";import{_ as M}from"./InputError-CnwioU3j.js";import{_ as N}from"./InputLabel-D6wY3cNc.js";import{_ as z}from"./SecondaryButton-Dml8iKd5.js";import{_ as I}from"./TextInput-BGBBA2nL.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const O={class:"fixed inset-0 overflow-y-auto px-4 py-6 sm:px-0 z-50","scroll-region":""},P={__name:"Modal",props:{show:{type:Boolean,default:!1},maxWidth:{type:String,default:"2xl"},closeable:{type:Boolean,default:!0}},emits:["close"],setup(n,{emit:r}){const a=n,t=r;b(()=>a.show,()=>{a.show?document.body.style.overflow="hidden":document.body.style.overflow=null});const m=()=>{a.closeable&&t("close")},d=u=>{u.key==="Escape"&&a.show&&m()};k(()=>document.addEventListener("keydown",d)),C(()=>{document.removeEventListener("keydown",d),document.body.style.overflow=null});const i=D(()=>({sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-xl","2xl":"sm:max-w-2xl"})[a.maxWidth]);return(u,e)=>(g(),B(E,{to:"body"},[o(p,{"leave-active-class":"duration-200"},{default:l(()=>[f(s("div",O,[o(p,{"enter-active-class":"ease-out duration-300","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"ease-in duration-200","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:l(()=>[f(s("div",{class:"fixed inset-0 transform transition-all",onClick:m},e[0]||(e[0]=[s("div",{class:"absolute inset-0 bg-gray-500 opacity-75"},null,-1)]),512),[[y,n.show]])]),_:1}),o(p,{"enter-active-class":"ease-out duration-300","enter-from-class":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to-class":"opacity-100 translate-y-0 sm:scale-100","leave-active-class":"ease-in duration-200","leave-from-class":"opacity-100 translate-y-0 sm:scale-100","leave-to-class":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:l(()=>[f(s("div",{class:h(["mb-6 bg-white rounded-lg overflow-hidden shadow-xl transform transition-all sm:w-full sm:mx-auto",i.value])},[n.show?V(u.$slots,"default",{key:0}):$("",!0)],2),[[y,n.show]])]),_:3})],512),[[y,n.show]])]),_:3})]))}},W={class:"space-y-6"},j={class:"p-6"},F={class:"mt-6"},K={class:"mt-6 flex justify-end"},X={__name:"DeleteUserForm",setup(n){const r=v(!1),a=v(null),t=U({password:""}),m=()=>{r.value=!0,T(()=>a.value.focus())},d=()=>{t.delete(route("profile.destroy"),{preserveScroll:!0,onSuccess:()=>i(),onError:()=>a.value.focus(),onFinish:()=>t.reset()})},i=()=>{r.value=!1,t.reset()};return(u,e)=>(g(),S("section",W,[e[6]||(e[6]=s("header",null,[s("h2",{class:"text-lg font-medium text-gray-900"},"Delete Account"),s("p",{class:"mt-1 text-sm text-gray-600"}," Once your account is deleted, all of its resources and data will be permanently deleted. Before deleting your account, please download any data or information that you wish to retain. ")],-1)),o(x,{onClick:m},{default:l(()=>e[1]||(e[1]=[w("Delete Account")])),_:1}),o(P,{show:r.value,onClose:i},{default:l(()=>[s("div",j,[e[4]||(e[4]=s("h2",{class:"text-lg font-medium text-gray-900"}," Are you sure you want to delete your account? ",-1)),e[5]||(e[5]=s("p",{class:"mt-1 text-sm text-gray-600"}," Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account. ",-1)),s("div",F,[o(N,{for:"password",value:"Password",class:"sr-only"}),o(I,{id:"password",ref_key:"passwordInput",ref:a,modelValue:c(t).password,"onUpdate:modelValue":e[0]||(e[0]=_=>c(t).password=_),type:"password",class:"mt-1 block w-3/4",placeholder:"Password",onKeyup:A(d,["enter"])},null,8,["modelValue"]),o(M,{message:c(t).errors.password,class:"mt-2"},null,8,["message"])]),s("div",K,[o(z,{onClick:i},{default:l(()=>e[2]||(e[2]=[w(" Cancel ")])),_:1}),o(x,{class:h(["ms-3",{"opacity-25":c(t).processing}]),disabled:c(t).processing,onClick:d},{default:l(()=>e[3]||(e[3]=[w(" Delete Account ")])),_:1},8,["class","disabled"])])])]),_:1},8,["show"])]))}};export{X as default}; +import{p as b,o as k,z as C,A as D,b as g,h as B,a as o,w as l,l as f,H as y,d as s,I as p,n as h,G as E,f as V,L as $,r as v,T as U,c as A,E as S,e as w,u as c,j as T}from"./app-DolNWhzr.js";import{D as x}from"./DangerButton-Bm5iDOLt.js";import{_ as N}from"./InputError-CTOWZzBt.js";import{_ as z}from"./InputLabel-P7ZTY_pn.js";import{_ as I}from"./SecondaryButton-DL_I_H3U.js";import{_ as L}from"./TextInput-C41DJZHw.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const M={class:"fixed inset-0 overflow-y-auto px-4 py-6 sm:px-0 z-50","scroll-region":""},O={__name:"Modal",props:{show:{type:Boolean,default:!1},maxWidth:{type:String,default:"2xl"},closeable:{type:Boolean,default:!0}},emits:["close"],setup(n,{emit:r}){const a=n,t=r;b(()=>a.show,()=>{a.show?document.body.style.overflow="hidden":document.body.style.overflow=null});const m=()=>{a.closeable&&t("close")},d=u=>{u.key==="Escape"&&a.show&&m()};k(()=>document.addEventListener("keydown",d)),C(()=>{document.removeEventListener("keydown",d),document.body.style.overflow=null});const i=D(()=>({sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-xl","2xl":"sm:max-w-2xl"})[a.maxWidth]);return(u,e)=>(g(),B($,{to:"body"},[o(p,{"leave-active-class":"duration-200"},{default:l(()=>[f(s("div",M,[o(p,{"enter-active-class":"ease-out duration-300","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"ease-in duration-200","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:l(()=>[f(s("div",{class:"fixed inset-0 transform transition-all",onClick:m},e[0]||(e[0]=[s("div",{class:"absolute inset-0 bg-gray-500 opacity-75"},null,-1)]),512),[[y,n.show]])]),_:1}),o(p,{"enter-active-class":"ease-out duration-300","enter-from-class":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to-class":"opacity-100 translate-y-0 sm:scale-100","leave-active-class":"ease-in duration-200","leave-from-class":"opacity-100 translate-y-0 sm:scale-100","leave-to-class":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:l(()=>[f(s("div",{class:h(["mb-6 bg-white rounded-lg overflow-hidden shadow-xl transform transition-all sm:w-full sm:mx-auto",i.value])},[n.show?E(u.$slots,"default",{key:0}):V("",!0)],2),[[y,n.show]])]),_:3})],512),[[y,n.show]])]),_:3})]))}},P={class:"space-y-6"},W={class:"p-6"},j={class:"mt-6"},F={class:"mt-6 flex justify-end"},X={__name:"DeleteUserForm",setup(n){const r=v(!1),a=v(null),t=U({password:""}),m=()=>{r.value=!0,S(()=>a.value.focus())},d=()=>{t.delete(route("profile.destroy"),{preserveScroll:!0,onSuccess:()=>i(),onError:()=>a.value.focus(),onFinish:()=>t.reset()})},i=()=>{r.value=!1,t.reset()};return(u,e)=>(g(),A("section",P,[e[6]||(e[6]=s("header",null,[s("h2",{class:"text-lg font-medium text-gray-900"},"Delete Account"),s("p",{class:"mt-1 text-sm text-gray-600"}," Once your account is deleted, all of its resources and data will be permanently deleted. Before deleting your account, please download any data or information that you wish to retain. ")],-1)),o(x,{onClick:m},{default:l(()=>e[1]||(e[1]=[w("Delete Account")])),_:1}),o(O,{show:r.value,onClose:i},{default:l(()=>[s("div",W,[e[4]||(e[4]=s("h2",{class:"text-lg font-medium text-gray-900"}," Are you sure you want to delete your account? ",-1)),e[5]||(e[5]=s("p",{class:"mt-1 text-sm text-gray-600"}," Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account. ",-1)),s("div",j,[o(z,{for:"password",value:"Password",class:"sr-only"}),o(L,{id:"password",ref_key:"passwordInput",ref:a,modelValue:c(t).password,"onUpdate:modelValue":e[0]||(e[0]=_=>c(t).password=_),type:"password",class:"mt-1 block w-3/4",placeholder:"Password",onKeyup:T(d,["enter"])},null,8,["modelValue"]),o(N,{message:c(t).errors.password,class:"mt-2"},null,8,["message"])]),s("div",F,[o(I,{onClick:i},{default:l(()=>e[2]||(e[2]=[w(" Cancel ")])),_:1}),o(x,{class:h(["ms-3",{"opacity-25":c(t).processing}]),disabled:c(t).processing,onClick:d},{default:l(()=>e[3]||(e[3]=[w(" Delete Account ")])),_:1},8,["class","disabled"])])])]),_:1},8,["show"])]))}};export{X as default}; diff --git a/public/build/assets/Edit-B3eZwoPy.js b/public/build/assets/Edit-BofEmzVj.js similarity index 57% rename from public/build/assets/Edit-B3eZwoPy.js rename to public/build/assets/Edit-BofEmzVj.js index 4b89b36d..4fb4d650 100644 --- a/public/build/assets/Edit-B3eZwoPy.js +++ b/public/build/assets/Edit-BofEmzVj.js @@ -1 +1 @@ -import{_ as o}from"./AuthenticatedLayout-BSBk4Waj.js";import{c as r,a as s,u as m,w as i,F as l,b as n,Z as c,d as t}from"./app-zpP4mvhd.js";import d from"./UpdatePasswordForm-DIoNO8Y2.js";import u from"./UpdateProfileInformationForm-CuiKvqK9.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-6L6tESKC.js";import"./InputError-CnwioU3j.js";import"./InputLabel-D6wY3cNc.js";import"./TextInput-BGBBA2nL.js";const f={class:"container mx-auto"},_={class:"pb-32"},p={class:"card"},x={class:"card"},F={__name:"Edit",props:{mustVerifyEmail:{type:Boolean},status:{type:String}},setup(a){return(h,e)=>(n(),r(l,null,[s(m(c),{title:"Profile"}),s(o,null,{header:i(()=>e[0]||(e[0]=[t("h2",{class:"font-semibold text-xl text-gray-800 leading-tight"},"Profile",-1)])),default:i(()=>[t("div",f,[t("div",_,[t("div",p,[s(u,{"must-verify-email":a.mustVerifyEmail,status:a.status,class:"max-w-xl"},null,8,["must-verify-email","status"])]),t("div",x,[s(d,{class:"max-w-xl"})])])])]),_:1})],64))}};export{F as default}; +import{_ as o}from"./AuthenticatedLayout-DuLcXyKk.js";import{c as r,a as s,u as m,w as i,F as l,b as n,Z as c,d as t}from"./app-DolNWhzr.js";import d from"./UpdatePasswordForm-C370omcu.js";import u from"./UpdateProfileInformationForm-CxNRXhbu.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./InputError-CTOWZzBt.js";import"./InputLabel-P7ZTY_pn.js";import"./TextInput-C41DJZHw.js";const f={class:"container mx-auto"},_={class:"pb-32"},p={class:"card"},x={class:"card"},F={__name:"Edit",props:{mustVerifyEmail:{type:Boolean},status:{type:String}},setup(a){return(h,e)=>(n(),r(l,null,[s(m(c),{title:"Profile"}),s(o,null,{header:i(()=>e[0]||(e[0]=[t("h2",{class:"font-semibold text-xl text-gray-800 leading-tight"},"Profile",-1)])),default:i(()=>[t("div",f,[t("div",_,[t("div",p,[s(u,{"must-verify-email":a.mustVerifyEmail,status:a.status,class:"max-w-xl"},null,8,["must-verify-email","status"])]),t("div",x,[s(d,{class:"max-w-xl"})])])])]),_:1})],64))}};export{F as default}; diff --git a/public/build/assets/ErrorMessagePage-B7ThOZn2.js b/public/build/assets/ErrorMessagePage-DtsaBtAA.js similarity index 79% rename from public/build/assets/ErrorMessagePage-B7ThOZn2.js rename to public/build/assets/ErrorMessagePage-DtsaBtAA.js index 9cd73522..e032a394 100644 --- a/public/build/assets/ErrorMessagePage-B7ThOZn2.js +++ b/public/build/assets/ErrorMessagePage-DtsaBtAA.js @@ -1 +1 @@ -import{_ as d}from"./AuthenticatedLayout-BSBk4Waj.js";import{c as u,a as e,u as o,w as t,F as c,b as f,Z as m,d as a,t as i,i as p,e as _}from"./app-zpP4mvhd.js";import{P as h}from"./PrimaryButton-6L6tESKC.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const g={class:"font-normal text-xl text-gray-800 leading-tight"},x={class:"card"},y={class:"mb-8"},k={__name:"ErrorMessagePage",props:{voucherSetId:{type:String,required:!1},voucherId:{type:String,required:!1},title:{type:String,required:!0,default:""},text:{type:String,required:!0,default:""}},setup(l){const r=l;return(n,s)=>(f(),u(c,null,[e(o(m),{title:r.title},null,8,["title"]),e(d,null,{header:t(()=>[a("h2",g,i(r.title),1)]),default:t(()=>[a("div",x,[a("div",y,i(r.text),1),e(o(p),{href:n.route("dashboard")},{default:t(()=>[e(h,null,{default:t(()=>s[0]||(s[0]=[_("Back to home")])),_:1})]),_:1},8,["href"])])]),_:1})],64))}};export{k as default}; +import{_ as d}from"./AuthenticatedLayout-DuLcXyKk.js";import{c as u,a as e,u as o,w as t,F as c,b as f,Z as m,d as a,t as i,i as p,e as _}from"./app-DolNWhzr.js";import{P as h}from"./PrimaryButton-BtqGl7rR.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const g={class:"font-normal text-xl text-gray-800 leading-tight"},x={class:"card"},y={class:"mb-8"},k={__name:"ErrorMessagePage",props:{voucherSetId:{type:String,required:!1},voucherId:{type:String,required:!1},title:{type:String,required:!0,default:""},text:{type:String,required:!0,default:""}},setup(l){const r=l;return(n,s)=>(f(),u(c,null,[e(o(m),{title:r.title},null,8,["title"]),e(d,null,{header:t(()=>[a("h2",g,i(r.title),1)]),default:t(()=>[a("div",x,[a("div",y,i(r.text),1),e(o(p),{href:n.route("dashboard")},{default:t(()=>[e(h,null,{default:t(()=>s[0]||(s[0]=[_("Back to home")])),_:1})]),_:1},8,["href"])])]),_:1})],64))}};export{k as default}; diff --git a/public/build/assets/ForgotPassword-C6UcyEey.js b/public/build/assets/ForgotPassword-CtrOA6NT.js similarity index 75% rename from public/build/assets/ForgotPassword-C6UcyEey.js rename to public/build/assets/ForgotPassword-CtrOA6NT.js index 3d40e9f1..31f7d111 100644 --- a/public/build/assets/ForgotPassword-C6UcyEey.js +++ b/public/build/assets/ForgotPassword-CtrOA6NT.js @@ -1 +1 @@ -import{T as u,h as d,w as l,b as m,a,u as t,Z as c,d as o,c as f,t as p,f as w,e as _,n as y,k as g}from"./app-zpP4mvhd.js";import{_ as b}from"./GuestLayout-BgHVKdPO.js";import{_ as k}from"./InputError-CnwioU3j.js";import{_ as x}from"./InputLabel-D6wY3cNc.js";import{P as V}from"./PrimaryButton-6L6tESKC.js";import{_ as v}from"./TextInput-BGBBA2nL.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const B={key:0,class:"mb-4 font-medium text-sm text-green-600"},N={class:"flex items-center justify-end mt-4"},q={__name:"ForgotPassword",props:{status:{type:String}},setup(r){const e=u({email:""}),i=()=>{e.post(route("password.email"))};return(P,s)=>(m(),d(b,null,{default:l(()=>[a(t(c),{title:"Forgot Password"}),s[2]||(s[2]=o("div",{class:"mb-4 text-sm text-gray-600"}," Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one. ",-1)),r.status?(m(),f("div",B,p(r.status),1)):w("",!0),o("form",{onSubmit:g(i,["prevent"])},[o("div",null,[a(x,{for:"email",value:"Email"}),a(v,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:t(e).email,"onUpdate:modelValue":s[0]||(s[0]=n=>t(e).email=n),required:"",autofocus:"",autocomplete:"username"},null,8,["modelValue"]),a(k,{class:"mt-2",message:t(e).errors.email},null,8,["message"])]),o("div",N,[a(V,{class:y({"opacity-25":t(e).processing}),disabled:t(e).processing},{default:l(()=>s[1]||(s[1]=[_(" Email Password Reset Link ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{q as default}; +import{T as u,h as d,w as l,b as m,a,u as t,Z as c,d as o,c as f,t as p,f as w,e as _,n as y,k as g}from"./app-DolNWhzr.js";import{_ as b}from"./GuestLayout-BPBJX1aK.js";import{_ as k}from"./InputError-CTOWZzBt.js";import{_ as x}from"./InputLabel-P7ZTY_pn.js";import{P as V}from"./PrimaryButton-BtqGl7rR.js";import{_ as v}from"./TextInput-C41DJZHw.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const B={key:0,class:"mb-4 font-medium text-sm text-green-600"},N={class:"flex items-center justify-end mt-4"},q={__name:"ForgotPassword",props:{status:{type:String}},setup(r){const e=u({email:""}),i=()=>{e.post(route("password.email"))};return(P,s)=>(m(),d(b,null,{default:l(()=>[a(t(c),{title:"Forgot Password"}),s[2]||(s[2]=o("div",{class:"mb-4 text-sm text-gray-600"}," Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one. ",-1)),r.status?(m(),f("div",B,p(r.status),1)):w("",!0),o("form",{onSubmit:g(i,["prevent"])},[o("div",null,[a(x,{for:"email",value:"Email"}),a(v,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:t(e).email,"onUpdate:modelValue":s[0]||(s[0]=n=>t(e).email=n),required:"",autofocus:"",autocomplete:"username"},null,8,["modelValue"]),a(k,{class:"mt-2",message:t(e).errors.email},null,8,["message"])]),o("div",N,[a(V,{class:y({"opacity-25":t(e).processing}),disabled:t(e).processing},{default:l(()=>s[1]||(s[1]=[_(" Email Password Reset Link ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{q as default}; diff --git a/public/build/assets/GuestLayout-BgHVKdPO.js b/public/build/assets/GuestLayout-BPBJX1aK.js similarity index 65% rename from public/build/assets/GuestLayout-BgHVKdPO.js rename to public/build/assets/GuestLayout-BPBJX1aK.js index 1ee7c07a..c617807f 100644 --- a/public/build/assets/GuestLayout-BgHVKdPO.js +++ b/public/build/assets/GuestLayout-BPBJX1aK.js @@ -1 +1 @@ -import{A as a}from"./ApplicationLogo-xXEUN_wz.js";import{b as o,c as r,d as e,a as s,w as l,u as c,i as n,H as i}from"./app-zpP4mvhd.js";const d={class:"min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100"},m={class:"w-full sm:max-w-md mt-6 px-6 py-4 bg-white shadow-md overflow-hidden sm:rounded-lg"},h={__name:"GuestLayout",setup(u){return(t,f)=>(o(),r("div",d,[e("div",null,[s(c(n),{href:"/"},{default:l(()=>[s(a,{class:"h-16 fill-current text-gray-500"})]),_:1})]),e("div",m,[i(t.$slots,"default")])]))}};export{h as _}; +import{A as a}from"./ApplicationLogo-B917rUN3.js";import{b as o,c as r,d as e,a as s,w as l,u as c,i as n,G as i}from"./app-DolNWhzr.js";const d={class:"min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100"},m={class:"w-full sm:max-w-md mt-6 px-6 py-4 bg-white shadow-md overflow-hidden sm:rounded-lg"},h={__name:"GuestLayout",setup(u){return(t,f)=>(o(),r("div",d,[e("div",null,[s(c(n),{href:"/"},{default:l(()=>[s(a,{class:"h-16 fill-current text-gray-500"})]),_:1})]),e("div",m,[i(t.$slots,"default")])]))}};export{h as _}; diff --git a/public/build/assets/InputError-CnwioU3j.js b/public/build/assets/InputError-CTOWZzBt.js similarity index 53% rename from public/build/assets/InputError-CnwioU3j.js rename to public/build/assets/InputError-CTOWZzBt.js index d0f77e17..44f479ea 100644 --- a/public/build/assets/InputError-CnwioU3j.js +++ b/public/build/assets/InputError-CTOWZzBt.js @@ -1 +1 @@ -import{l as s,I as t,b as a,c as r,d as c,t as o}from"./app-zpP4mvhd.js";const n={class:"text-sm text-red-600"},p={__name:"InputError",props:{message:{type:String}},setup(e){return(i,m)=>s((a(),r("div",null,[c("p",n,o(e.message),1)],512)),[[t,e.message]])}};export{p as _}; +import{l as s,H as t,b as a,c as r,d as c,t as o}from"./app-DolNWhzr.js";const n={class:"text-sm text-red-600"},p={__name:"InputError",props:{message:{type:String}},setup(e){return(i,m)=>s((a(),r("div",null,[c("p",n,o(e.message),1)],512)),[[t,e.message]])}};export{p as _}; diff --git a/public/build/assets/InputLabel-D6wY3cNc.js b/public/build/assets/InputLabel-P7ZTY_pn.js similarity index 80% rename from public/build/assets/InputLabel-D6wY3cNc.js rename to public/build/assets/InputLabel-P7ZTY_pn.js index 9b63a6bf..fe73edd2 100644 --- a/public/build/assets/InputLabel-D6wY3cNc.js +++ b/public/build/assets/InputLabel-P7ZTY_pn.js @@ -1 +1 @@ -import{b as e,c as t,t as o,H as n}from"./app-zpP4mvhd.js";const l={class:"block font-medium text-sm text-gray-700"},c={key:0},r={key:1},p={__name:"InputLabel",props:{value:{type:String}},setup(s){return(a,_)=>(e(),t("label",l,[s.value?(e(),t("span",c,o(s.value),1)):(e(),t("span",r,[n(a.$slots,"default")]))]))}};export{p as _}; +import{b as e,c as t,t as o,G as n}from"./app-DolNWhzr.js";const l={class:"block font-medium text-sm text-gray-700"},c={key:0},r={key:1},p={__name:"InputLabel",props:{value:{type:String}},setup(s){return(a,_)=>(e(),t("label",l,[s.value?(e(),t("span",c,o(s.value),1)):(e(),t("span",r,[n(a.$slots,"default")]))]))}};export{p as _}; diff --git a/public/build/assets/Login-BzDW5pEZ.js b/public/build/assets/Login-CSSIF9_W.js similarity index 84% rename from public/build/assets/Login-BzDW5pEZ.js rename to public/build/assets/Login-CSSIF9_W.js index 3b4fc0a8..516ef7e0 100644 --- a/public/build/assets/Login-BzDW5pEZ.js +++ b/public/build/assets/Login-CSSIF9_W.js @@ -1 +1 @@ -import{T as _,h as n,w as l,b as i,a as o,u as t,Z as b,c as y,t as k,f as d,d as a,i as x,e as u,n as V,k as v}from"./app-zpP4mvhd.js";import{_ as B}from"./Checkbox-wBCZrcZW.js";import{_ as P}from"./GuestLayout-BgHVKdPO.js";import{_ as f}from"./InputError-CnwioU3j.js";import{_ as c}from"./InputLabel-D6wY3cNc.js";import{P as $}from"./PrimaryButton-6L6tESKC.js";import{_ as p}from"./TextInput-BGBBA2nL.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const h={key:0,class:"mb-4 font-medium text-sm text-green-600"},N={class:"mt-4"},q={class:"block mt-4"},C={class:"flex items-center"},L={class:"flex items-center justify-end mt-4"},M={__name:"Login",props:{canResetPassword:{type:Boolean},status:{type:String}},setup(m){const e=_({email:"",password:"",remember:!1}),g=()=>{e.post(route("login"),{onFinish:()=>e.reset("password")})};return(w,s)=>(i(),n(P,null,{default:l(()=>[o(t(b),{title:"Log in"}),m.status?(i(),y("div",h,k(m.status),1)):d("",!0),a("form",{onSubmit:v(g,["prevent"])},[a("div",null,[o(c,{for:"email",value:"Email"}),o(p,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:t(e).email,"onUpdate:modelValue":s[0]||(s[0]=r=>t(e).email=r),required:"",autofocus:"",autocomplete:"username"},null,8,["modelValue"]),o(f,{class:"mt-2",message:t(e).errors.email},null,8,["message"])]),a("div",N,[o(c,{for:"password",value:"Password"}),o(p,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:t(e).password,"onUpdate:modelValue":s[1]||(s[1]=r=>t(e).password=r),required:"",autocomplete:"current-password"},null,8,["modelValue"]),o(f,{class:"mt-2",message:t(e).errors.password},null,8,["message"])]),a("div",q,[a("label",C,[o(B,{name:"remember",checked:t(e).remember,"onUpdate:checked":s[2]||(s[2]=r=>t(e).remember=r)},null,8,["checked"]),s[3]||(s[3]=a("span",{class:"ms-2 text-sm text-gray-600"},"Remember me",-1))])]),a("div",L,[m.canResetPassword?(i(),n(t(x),{key:0,href:w.route("password.request"),class:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:l(()=>s[4]||(s[4]=[u(" Forgot your password? ")])),_:1},8,["href"])):d("",!0),o($,{class:V(["ms-4",{"opacity-25":t(e).processing}]),disabled:t(e).processing},{default:l(()=>s[5]||(s[5]=[u(" Log in ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{M as default}; +import{T as _,h as n,w as l,b as i,a as o,u as t,Z as b,c as y,t as k,f as d,d as a,i as x,e as u,n as V,k as v}from"./app-DolNWhzr.js";import{_ as B}from"./Checkbox-YEQY-CTw.js";import{_ as P}from"./GuestLayout-BPBJX1aK.js";import{_ as f}from"./InputError-CTOWZzBt.js";import{_ as c}from"./InputLabel-P7ZTY_pn.js";import{P as $}from"./PrimaryButton-BtqGl7rR.js";import{_ as p}from"./TextInput-C41DJZHw.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const h={key:0,class:"mb-4 font-medium text-sm text-green-600"},N={class:"mt-4"},q={class:"block mt-4"},C={class:"flex items-center"},L={class:"flex items-center justify-end mt-4"},M={__name:"Login",props:{canResetPassword:{type:Boolean},status:{type:String}},setup(m){const e=_({email:"",password:"",remember:!1}),g=()=>{e.post(route("login"),{onFinish:()=>e.reset("password")})};return(w,s)=>(i(),n(P,null,{default:l(()=>[o(t(b),{title:"Log in"}),m.status?(i(),y("div",h,k(m.status),1)):d("",!0),a("form",{onSubmit:v(g,["prevent"])},[a("div",null,[o(c,{for:"email",value:"Email"}),o(p,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:t(e).email,"onUpdate:modelValue":s[0]||(s[0]=r=>t(e).email=r),required:"",autofocus:"",autocomplete:"username"},null,8,["modelValue"]),o(f,{class:"mt-2",message:t(e).errors.email},null,8,["message"])]),a("div",N,[o(c,{for:"password",value:"Password"}),o(p,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:t(e).password,"onUpdate:modelValue":s[1]||(s[1]=r=>t(e).password=r),required:"",autocomplete:"current-password"},null,8,["modelValue"]),o(f,{class:"mt-2",message:t(e).errors.password},null,8,["message"])]),a("div",q,[a("label",C,[o(B,{name:"remember",checked:t(e).remember,"onUpdate:checked":s[2]||(s[2]=r=>t(e).remember=r)},null,8,["checked"]),s[3]||(s[3]=a("span",{class:"ms-2 text-sm text-gray-600"},"Remember me",-1))])]),a("div",L,[m.canResetPassword?(i(),n(t(x),{key:0,href:w.route("password.request"),class:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:l(()=>s[4]||(s[4]=[u(" Forgot your password? ")])),_:1},8,["href"])):d("",!0),o($,{class:V(["ms-4",{"opacity-25":t(e).processing}]),disabled:t(e).processing},{default:l(()=>s[5]||(s[5]=[u(" Log in ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{M as default}; diff --git a/public/build/assets/MyTeam-B-XbZQ3p.js b/public/build/assets/MyTeam-Bp8yT71s.js similarity index 92% rename from public/build/assets/MyTeam-B-XbZQ3p.js rename to public/build/assets/MyTeam-Bp8yT71s.js index d2e551a2..17bb772c 100644 --- a/public/build/assets/MyTeam-B-XbZQ3p.js +++ b/public/build/assets/MyTeam-Bp8yT71s.js @@ -1 +1 @@ -import{S as k,_ as B}from"./AuthenticatedLayout-BSBk4Waj.js";import{r as v,o as b,b as s,c as a,d as e,a as f,h as C,w as h,e as g,f as _,F as p,g as x,t as y,Q as V,u as N,Z as j,n as D}from"./app-zpP4mvhd.js";import"./dayjs.min-C0_0pMrK.js";import"./relativeTime-__Y28WrV.js";import"./utc-D2jiDVXM.js";import{_ as E}from"./TextInput-BGBBA2nL.js";import{P as $}from"./PrimaryButton-6L6tESKC.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const F={key:0,class:"card"},P={key:0},U={class:"flex justify-between items-center"},q={class:"flex-grow mr-2"},z={class:"ml-2"},K={key:0,class:"p-2 text-sm"},L=["onClick"],O={key:1,class:"flex justify-between items-center"},Q={class:"ml-2"},Y={__name:"MyTeamEditorComponent",setup(w){const n=v({}),c=v({}),i=v({}),u=v(""),o=v(!1);b(()=>{d()});function r(){o.value=!1,u.value="",n.value={}}function d(){axios.get("/my-team?cached=false&relations=country").then(l=>{c.value=l.data.data,i.value=c.value.country}).catch(l=>{console.log(l)})}function T(l){i.value=l,n.value={},o.value=!1}function M(){let l={country_id:i.value.id};axios.put("/my-team/"+V().props.auth.user.current_team_id,l).then(t=>{k.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{d()})}).catch(t=>{k.fire({icon:"error",title:"Oops!",text:t.response.data.message})})}function S(){u.value.length>2&&axios.get("/countries?cached=false&where[]=name,like,*"+u.value+"*&").then(l=>{n.value=l.data.data}).catch(l=>{console.log(l)})}return(l,t)=>c.value.country?(s(),a("div",F,[t[7]||(t[7]=e("div",{class:"card-header"}," Country / Currency ",-1)),o.value?(s(),a("div",P,[e("div",U,[e("div",q,[f(E,{id:"country",type:"text",class:"mt-1 block w-full",modelValue:u.value,"onUpdate:modelValue":t[0]||(t[0]=m=>u.value=m),required:"",onKeyup:t[1]||(t[1]=m=>S())},null,8,["modelValue"])]),e("div",z,[u.value.length===0||i.value.id===c.value.country_id?(s(),C($,{key:0,onClick:t[2]||(t[2]=m=>r())},{default:h(()=>t[5]||(t[5]=[g("Cancel")])),_:1})):_("",!0)])]),n.value.data&&n.value.data.length?(s(),a("div",K,[(s(!0),a(p,null,x(n.value.data,m=>(s(),a("div",{class:"py-1 border-b cursor-pointer hover:opacity-50",onClick:oe=>T(m)},y(m.name),9,L))),256))])):_("",!0)])):(s(),a("div",O,[e("div",{onClick:t[3]||(t[3]=m=>o.value=!0),class:"cursor-pointer flex-grow mr-2"},y(i.value.name)+" ("+y(i.value.currency_code)+") ",1),e("div",Q,[u.value.length>0&&i.value.id!==c.value.country_id?(s(),C($,{key:0,onClick:t[4]||(t[4]=m=>M())},{default:h(()=>t[6]||(t[6]=[g("Save")])),_:1})):_("",!0)])]))])):_("",!0)}},Z={class:"card"},A={class:"flex items-start font-bold"},G={class:"pl-2 text-2xl"},H={class:"card",id:"myTeamMembers"},I={key:0},J={class:""},R={key:0,class:"flex items-center"},W={class:"card"},X={class:""},ee={class:"border-b py-2 flex justify-between"},te={key:0},se={key:1},ae=["href"],_e={__name:"MyTeam",setup(w){const n=v({}),c=v({});b(()=>{i(),u()});function i(){axios.get("/my-team?cached=false&relations=teamUsers.user").then(o=>{n.value=o.data.data}).catch(o=>{console.log(o)})}function u(){axios.get("/my-teams?cached=false&orderBy=name,asc").then(o=>{c.value=o.data.data}).catch(o=>{console.log(o)})}return(o,r)=>(s(),a(p,null,[f(N(j),{title:"Dashboard"}),f(B,null,{header:h(()=>r[0]||(r[0]=[g(" My Team ")])),default:h(()=>[e("div",Z,[e("div",A,[e("div",G,y(n.value.name),1)])]),e("div",H,[r[1]||(r[1]=e("div",{class:"card-header"}," Team members ",-1)),n.value.team_users&&n.value.team_users.length>0?(s(),a("div",I,[(s(!0),a(p,null,x(n.value.team_users,d=>(s(),a("div",J,[e("div",{class:D({"border-b p-2":n.value.team_users.length>1})},[d.user?(s(),a("div",R,[e("div",null,y(d.user.name),1)])):_("",!0)],2)]))),256))])):_("",!0)]),e("div",W,[r[2]||(r[2]=e("div",{class:"card-header"}," Teams You Belong To ",-1)),(s(!0),a(p,null,x(c.value.data,d=>(s(),a("div",X,[e("div",ee,[e("div",null,y(d.name),1),e("div",null,[d.id===o.$page.props.auth.user.current_team_id?(s(),a("div",te," Current ")):(s(),a("div",se,[e("a",{href:"/switch-team/"+d.id,class:"text-red-500"},"Switch to this team",8,ae)]))])])]))),256))]),f(Y),r[3]||(r[3]=e("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{_e as default}; +import{S as k,_ as B}from"./AuthenticatedLayout-DuLcXyKk.js";import{r as v,o as b,b as s,c as a,d as e,a as f,h as C,w as h,e as g,f as _,F as p,g as x,t as y,Q as V,u as N,Z as j,n as D}from"./app-DolNWhzr.js";import"./dayjs.min-ilzO22t1.js";import"./relativeTime-BTl_QCHW.js";import"./utc-CWodzHWT.js";import{_ as E}from"./TextInput-C41DJZHw.js";import{P as $}from"./PrimaryButton-BtqGl7rR.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const F={key:0,class:"card"},P={key:0},U={class:"flex justify-between items-center"},q={class:"flex-grow mr-2"},z={class:"ml-2"},K={key:0,class:"p-2 text-sm"},L=["onClick"],O={key:1,class:"flex justify-between items-center"},Q={class:"ml-2"},Y={__name:"MyTeamEditorComponent",setup(w){const n=v({}),c=v({}),i=v({}),u=v(""),o=v(!1);b(()=>{d()});function r(){o.value=!1,u.value="",n.value={}}function d(){axios.get("/my-team?cached=false&relations=country").then(l=>{c.value=l.data.data,i.value=c.value.country}).catch(l=>{console.log(l)})}function T(l){i.value=l,n.value={},o.value=!1}function M(){let l={country_id:i.value.id};axios.put("/my-team/"+V().props.auth.user.current_team_id,l).then(t=>{k.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{d()})}).catch(t=>{k.fire({icon:"error",title:"Oops!",text:t.response.data.message})})}function S(){u.value.length>2&&axios.get("/countries?cached=false&where[]=name,like,*"+u.value+"*&").then(l=>{n.value=l.data.data}).catch(l=>{console.log(l)})}return(l,t)=>c.value.country?(s(),a("div",F,[t[7]||(t[7]=e("div",{class:"card-header"}," Country / Currency ",-1)),o.value?(s(),a("div",P,[e("div",U,[e("div",q,[f(E,{id:"country",type:"text",class:"mt-1 block w-full",modelValue:u.value,"onUpdate:modelValue":t[0]||(t[0]=m=>u.value=m),required:"",onKeyup:t[1]||(t[1]=m=>S())},null,8,["modelValue"])]),e("div",z,[u.value.length===0||i.value.id===c.value.country_id?(s(),C($,{key:0,onClick:t[2]||(t[2]=m=>r())},{default:h(()=>t[5]||(t[5]=[g("Cancel")])),_:1})):_("",!0)])]),n.value.data&&n.value.data.length?(s(),a("div",K,[(s(!0),a(p,null,x(n.value.data,m=>(s(),a("div",{class:"py-1 border-b cursor-pointer hover:opacity-50",onClick:oe=>T(m)},y(m.name),9,L))),256))])):_("",!0)])):(s(),a("div",O,[e("div",{onClick:t[3]||(t[3]=m=>o.value=!0),class:"cursor-pointer flex-grow mr-2"},y(i.value.name)+" ("+y(i.value.currency_code)+") ",1),e("div",Q,[u.value.length>0&&i.value.id!==c.value.country_id?(s(),C($,{key:0,onClick:t[4]||(t[4]=m=>M())},{default:h(()=>t[6]||(t[6]=[g("Save")])),_:1})):_("",!0)])]))])):_("",!0)}},Z={class:"card"},A={class:"flex items-start font-bold"},G={class:"pl-2 text-2xl"},H={class:"card",id:"myTeamMembers"},I={key:0},J={class:""},R={key:0,class:"flex items-center"},W={class:"card"},X={class:""},ee={class:"border-b py-2 flex justify-between"},te={key:0},se={key:1},ae=["href"],_e={__name:"MyTeam",setup(w){const n=v({}),c=v({});b(()=>{i(),u()});function i(){axios.get("/my-team?cached=false&relations=teamUsers.user").then(o=>{n.value=o.data.data}).catch(o=>{console.log(o)})}function u(){axios.get("/my-teams?cached=false&orderBy=name,asc").then(o=>{c.value=o.data.data}).catch(o=>{console.log(o)})}return(o,r)=>(s(),a(p,null,[f(N(j),{title:"Dashboard"}),f(B,null,{header:h(()=>r[0]||(r[0]=[g(" My Team ")])),default:h(()=>[e("div",Z,[e("div",A,[e("div",G,y(n.value.name),1)])]),e("div",H,[r[1]||(r[1]=e("div",{class:"card-header"}," Team members ",-1)),n.value.team_users&&n.value.team_users.length>0?(s(),a("div",I,[(s(!0),a(p,null,x(n.value.team_users,d=>(s(),a("div",J,[e("div",{class:D({"border-b p-2":n.value.team_users.length>1})},[d.user?(s(),a("div",R,[e("div",null,y(d.user.name),1)])):_("",!0)],2)]))),256))])):_("",!0)]),e("div",W,[r[2]||(r[2]=e("div",{class:"card-header"}," Teams You Belong To ",-1)),(s(!0),a(p,null,x(c.value.data,d=>(s(),a("div",X,[e("div",ee,[e("div",null,y(d.name),1),e("div",null,[d.id===o.$page.props.auth.user.current_team_id?(s(),a("div",te," Current ")):(s(),a("div",se,[e("a",{href:"/switch-team/"+d.id,class:"text-red-500"},"Switch to this team",8,ae)]))])])]))),256))]),f(Y),r[3]||(r[3]=e("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{_e as default}; diff --git a/public/build/assets/MyTeamVoucherSets-BkFDnjB4.js b/public/build/assets/MyTeamVoucherSets-BKBSr5xT.js similarity index 82% rename from public/build/assets/MyTeamVoucherSets-BkFDnjB4.js rename to public/build/assets/MyTeamVoucherSets-BKBSr5xT.js index 36e4f054..1228bbeb 100644 --- a/public/build/assets/MyTeamVoucherSets-BkFDnjB4.js +++ b/public/build/assets/MyTeamVoucherSets-BKBSr5xT.js @@ -1 +1 @@ -import{_ as b}from"./AuthenticatedLayout-BSBk4Waj.js";import{r as f,o as g,b as s,c as r,F as x,g as k,h as w,w as u,d as a,t as m,f as d,u as l,Q as h,i as T,a as i,Z as B,e as C}from"./app-zpP4mvhd.js";import{d as v}from"./dayjs.min-C0_0pMrK.js";import{r as M}from"./relativeTime-__Y28WrV.js";import{u as $}from"./utc-D2jiDVXM.js";import{P as j}from"./PaginatorComponent-Dk-0OsjZ.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-6L6tESKC.js";import"./SecondaryButton-Dml8iKd5.js";const N={key:0},D={class:"border-b flex justify-between items-center py-2 sm:p-2"},P={class:"text-xs"},S={class:"font-bold text-sm"},F={key:0,class:"text-red-500"},q={key:1},z={key:2},A={class:"flex justify-end items-center mt-4"},E={class:"w-full lg:w-1/3"},y={__name:"MyTeamVoucherSetsComponent",props:{filterVoucherSets:{required:!1,default:null}},setup(_){v.extend(M),v.extend($);const n=_,e=f({}),V=f(5);g(()=>{p()});function p(c=1){let o="/my-team-voucher-sets";n.filterVoucherSets&&(o=o+n.filterVoucherSets),axios.get(o+"?cached=false&page="+c+"&limit="+V.value+"&relations=createdByTeam,allocatedToServiceTeam&orderBy=created_at,desc").then(t=>{e.value=t.data.data}).catch(t=>{console.log(t)})}return(c,o)=>e.value.data&&e.value.data.length?(s(),r("div",N,[(s(!0),r(x,null,k(e.value.data,t=>(s(),w(l(T),{href:c.route("voucher-set",t.id),class:"hover:no-underline hover:opacity-75"},{default:u(()=>[a("div",D,[a("div",P,[a("div",S," #"+m(t.id),1),t.is_test?(s(),r("div",F," Test voucher set ")):d("",!0),t.created_by_team&&t.created_by_team_id!==l(h)().props.auth.user.current_team_id?(s(),r("div",q," Created by: "+m(t.created_by_team.name),1)):d("",!0),t.allocated_to_service_team&&t.allocated_to_service_team_id!==l(h)().props.auth.user.current_team_id?(s(),r("div",z," Allocated to: "+m(t.allocated_to_service_team.name),1)):d("",!0)]),o[0]||(o[0]=a("div",null,[a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256)),a("div",A,[a("div",E,[i(j,{onSetDataPage:p,"pagination-data":e.value},null,8,["pagination-data"])])])])):d("",!0)}},L={class:"card"},Q={class:"card"},X={__name:"MyTeamVoucherSets",setup(_){return g(()=>{}),(n,e)=>(s(),r(x,null,[i(l(B),{title:"Dashboard"}),i(b,null,{header:u(()=>e[0]||(e[0]=[C(" My Team Voucher Sets ")])),default:u(()=>[a("div",L,[e[1]||(e[1]=a("div",{class:"card-header"}," Voucher sets Created by my team ",-1)),i(y,{"filter-voucher-sets":"-created"})]),a("div",Q,[e[2]||(e[2]=a("div",{class:"card-header"}," Voucher sets allocated to my team ",-1)),i(y,{"filter-voucher-sets":"-allocated"})]),e[3]||(e[3]=a("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{X as default}; +import{_ as b}from"./AuthenticatedLayout-DuLcXyKk.js";import{r as f,o as g,b as s,c as r,F as x,g as k,h as w,w as u,d as a,t as m,f as d,u as l,Q as h,i as T,a as i,Z as B,e as C}from"./app-DolNWhzr.js";import{d as v}from"./dayjs.min-ilzO22t1.js";import{r as M}from"./relativeTime-BTl_QCHW.js";import{u as $}from"./utc-CWodzHWT.js";import{P as j}from"./PaginatorComponent-DpqX95xS.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./SecondaryButton-DL_I_H3U.js";const N={key:0},D={class:"border-b flex justify-between items-center py-2 sm:p-2"},P={class:"text-xs"},S={class:"font-bold text-sm"},F={key:0,class:"text-red-500"},q={key:1},z={key:2},A={class:"flex justify-end items-center mt-4"},E={class:"w-full lg:w-1/3"},y={__name:"MyTeamVoucherSetsComponent",props:{filterVoucherSets:{required:!1,default:null}},setup(_){v.extend(M),v.extend($);const n=_,e=f({}),V=f(5);g(()=>{p()});function p(c=1){let o="/my-team-voucher-sets";n.filterVoucherSets&&(o=o+n.filterVoucherSets),axios.get(o+"?cached=false&page="+c+"&limit="+V.value+"&relations=createdByTeam,allocatedToServiceTeam&orderBy=created_at,desc").then(t=>{e.value=t.data.data}).catch(t=>{console.log(t)})}return(c,o)=>e.value.data&&e.value.data.length?(s(),r("div",N,[(s(!0),r(x,null,k(e.value.data,t=>(s(),w(l(T),{href:c.route("voucher-set",t.id),class:"hover:no-underline hover:opacity-75"},{default:u(()=>[a("div",D,[a("div",P,[a("div",S," #"+m(t.id),1),t.is_test?(s(),r("div",F," Test voucher set ")):d("",!0),t.created_by_team&&t.created_by_team_id!==l(h)().props.auth.user.current_team_id?(s(),r("div",q," Created by: "+m(t.created_by_team.name),1)):d("",!0),t.allocated_to_service_team&&t.allocated_to_service_team_id!==l(h)().props.auth.user.current_team_id?(s(),r("div",z," Allocated to: "+m(t.allocated_to_service_team.name),1)):d("",!0)]),o[0]||(o[0]=a("div",null,[a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256)),a("div",A,[a("div",E,[i(j,{onSetDataPage:p,"pagination-data":e.value},null,8,["pagination-data"])])])])):d("",!0)}},L={class:"card"},Q={class:"card"},X={__name:"MyTeamVoucherSets",setup(_){return g(()=>{}),(n,e)=>(s(),r(x,null,[i(l(B),{title:"Dashboard"}),i(b,null,{header:u(()=>e[0]||(e[0]=[C(" My Team Voucher Sets ")])),default:u(()=>[a("div",L,[e[1]||(e[1]=a("div",{class:"card-header"}," Voucher sets Created by my team ",-1)),i(y,{"filter-voucher-sets":"-created"})]),a("div",Q,[e[2]||(e[2]=a("div",{class:"card-header"}," Voucher sets allocated to my team ",-1)),i(y,{"filter-voucher-sets":"-allocated"})]),e[3]||(e[3]=a("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{X as default}; diff --git a/public/build/assets/PaginatorComponent-Dk-0OsjZ.js b/public/build/assets/PaginatorComponent-DpqX95xS.js similarity index 90% rename from public/build/assets/PaginatorComponent-Dk-0OsjZ.js rename to public/build/assets/PaginatorComponent-DpqX95xS.js index 0182417f..bfdec00b 100644 --- a/public/build/assets/PaginatorComponent-Dk-0OsjZ.js +++ b/public/build/assets/PaginatorComponent-DpqX95xS.js @@ -1 +1 @@ -import{_ as m}from"./SecondaryButton-Dml8iKd5.js";import{_ as u}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{K as d,b as s,c as r,d as e,a as l,w as p,t as n,f as g}from"./app-zpP4mvhd.js";const f={components:{SecondaryButton:m},props:{paginationData:{type:Object,required:!0},showSummary:{type:Boolean,required:!1,default:!0}},mounted(){},created(){},methods:{paginatePrevious(){this.paginationData.current_page>1&&(this.component?this.$emit("setDataPageForComponent",{page:this.paginationData.current_page-1,component:this.component}):this.$emit("setDataPage",this.paginationData.current_page-1))},paginateNext(){this.paginationData.total>this.paginationData.to&&(this.component?this.$emit("setDataPageForComponent",{page:this.paginationData.current_page+1,component:this.component}):this.$emit("setDataPage",this.paginationData.current_page+1))}}},h={key:0},w={class:"grid grid-cols-2 gap-2 text-center"},_={key:0,class:"w-full text-center text-sm"};function D(x,t,a,v,k,o){const i=d("SecondaryButton");return a.paginationData.total>a.paginationData.per_page?(s(),r("div",h,[e("div",w,[e("div",null,[l(i,{class:"px-8 w-full flex justify-center",onClick:t[0]||(t[0]=c=>o.paginatePrevious())},{default:p(()=>t[2]||(t[2]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})],-1)])),_:1})]),e("div",null,[l(i,{class:"px-8 w-full flex justify-center",onClick:t[1]||(t[1]=c=>o.paginateNext())},{default:p(()=>t[3]||(t[3]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1)])),_:1})])]),a.showSummary?(s(),r("div",_," Showing "+n(a.paginationData.from)+" - "+n(a.paginationData.to)+" of "+n(a.paginationData.total),1)):g("",!0)])):g("",!0)}const P=u(f,[["render",D]]);export{P}; +import{_ as m}from"./SecondaryButton-DL_I_H3U.js";import{_ as u}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{J as d,b as s,c as r,d as e,a as l,w as p,t as n,f as g}from"./app-DolNWhzr.js";const f={components:{SecondaryButton:m},props:{paginationData:{type:Object,required:!0},showSummary:{type:Boolean,required:!1,default:!0}},mounted(){},created(){},methods:{paginatePrevious(){this.paginationData.current_page>1&&(this.component?this.$emit("setDataPageForComponent",{page:this.paginationData.current_page-1,component:this.component}):this.$emit("setDataPage",this.paginationData.current_page-1))},paginateNext(){this.paginationData.total>this.paginationData.to&&(this.component?this.$emit("setDataPageForComponent",{page:this.paginationData.current_page+1,component:this.component}):this.$emit("setDataPage",this.paginationData.current_page+1))}}},h={key:0},w={class:"grid grid-cols-2 gap-2 text-center"},_={key:0,class:"w-full text-center text-sm"};function D(x,t,a,v,k,o){const i=d("SecondaryButton");return a.paginationData.total>a.paginationData.per_page?(s(),r("div",h,[e("div",w,[e("div",null,[l(i,{class:"px-8 w-full flex justify-center",onClick:t[0]||(t[0]=c=>o.paginatePrevious())},{default:p(()=>t[2]||(t[2]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})],-1)])),_:1})]),e("div",null,[l(i,{class:"px-8 w-full flex justify-center",onClick:t[1]||(t[1]=c=>o.paginateNext())},{default:p(()=>t[3]||(t[3]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1)])),_:1})])]),a.showSummary?(s(),r("div",_," Showing "+n(a.paginationData.from)+" - "+n(a.paginationData.to)+" of "+n(a.paginationData.total),1)):g("",!0)])):g("",!0)}const P=u(f,[["render",D]]);export{P}; diff --git a/public/build/assets/PrimaryButton-6L6tESKC.js b/public/build/assets/PrimaryButton-BtqGl7rR.js similarity index 88% rename from public/build/assets/PrimaryButton-6L6tESKC.js rename to public/build/assets/PrimaryButton-BtqGl7rR.js index d173e8a6..ce2fd37b 100644 --- a/public/build/assets/PrimaryButton-6L6tESKC.js +++ b/public/build/assets/PrimaryButton-BtqGl7rR.js @@ -1 +1 @@ -import{_ as t}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{b as r,c as o,H as n}from"./app-zpP4mvhd.js";const s={},i={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 focus:bg-gray-700 active:bg-gray-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 transition ease-in-out duration-150"};function a(e,c){return r(),o("button",i,[n(e.$slots,"default")])}const d=t(s,[["render",a]]);export{d as P}; +import{_ as t}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{b as r,c as o,G as n}from"./app-DolNWhzr.js";const s={},i={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 focus:bg-gray-700 active:bg-gray-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 transition ease-in-out duration-150"};function a(e,c){return r(),o("button",i,[n(e.$slots,"default")])}const d=t(s,[["render",a]]);export{d as P}; diff --git a/public/build/assets/Register-Ch5scNZb.js b/public/build/assets/Register-CvIlSVQL.js similarity index 87% rename from public/build/assets/Register-Ch5scNZb.js rename to public/build/assets/Register-CvIlSVQL.js index 140aca6f..b83e1fb7 100644 --- a/public/build/assets/Register-Ch5scNZb.js +++ b/public/build/assets/Register-CvIlSVQL.js @@ -1 +1 @@ -import{T as f,h as c,w as n,b as w,a as o,u as e,Z as _,d as l,e as d,i as g,n as V,k as v}from"./app-zpP4mvhd.js";import{_ as y}from"./GuestLayout-BgHVKdPO.js";import{_ as t}from"./InputError-CnwioU3j.js";import{_ as m}from"./InputLabel-D6wY3cNc.js";import{P as b}from"./PrimaryButton-6L6tESKC.js";import{_ as i}from"./TextInput-BGBBA2nL.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const x={class:"mt-4"},k={class:"mt-4"},q={class:"mt-4"},B={class:"flex items-center justify-end mt-4"},A={__name:"Register",setup(N){const s=f({name:"",email:"",password:"",password_confirmation:""}),u=()=>{s.post(route("register"),{onFinish:()=>s.reset("password","password_confirmation")})};return(p,a)=>(w(),c(y,null,{default:n(()=>[o(e(_),{title:"Register"}),l("form",{onSubmit:v(u,["prevent"])},[l("div",null,[o(m,{for:"name",value:"Name"}),o(i,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:e(s).name,"onUpdate:modelValue":a[0]||(a[0]=r=>e(s).name=r),required:"",autofocus:"",autocomplete:"name"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.name},null,8,["message"])]),l("div",x,[o(m,{for:"email",value:"Email"}),o(i,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:e(s).email,"onUpdate:modelValue":a[1]||(a[1]=r=>e(s).email=r),required:"",autocomplete:"username"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.email},null,8,["message"])]),l("div",k,[o(m,{for:"password",value:"Password"}),o(i,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:e(s).password,"onUpdate:modelValue":a[2]||(a[2]=r=>e(s).password=r),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.password},null,8,["message"])]),l("div",q,[o(m,{for:"password_confirmation",value:"Confirm Password"}),o(i,{id:"password_confirmation",type:"password",class:"mt-1 block w-full",modelValue:e(s).password_confirmation,"onUpdate:modelValue":a[3]||(a[3]=r=>e(s).password_confirmation=r),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.password_confirmation},null,8,["message"])]),l("div",B,[o(e(g),{href:p.route("login"),class:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:n(()=>a[4]||(a[4]=[d(" Already registered? ")])),_:1},8,["href"]),o(b,{class:V(["ms-4",{"opacity-25":e(s).processing}]),disabled:e(s).processing},{default:n(()=>a[5]||(a[5]=[d(" Register ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{A as default}; +import{T as f,h as c,w as n,b as w,a as o,u as e,Z as _,d as l,e as d,i as g,n as V,k as v}from"./app-DolNWhzr.js";import{_ as y}from"./GuestLayout-BPBJX1aK.js";import{_ as t}from"./InputError-CTOWZzBt.js";import{_ as m}from"./InputLabel-P7ZTY_pn.js";import{P as b}from"./PrimaryButton-BtqGl7rR.js";import{_ as i}from"./TextInput-C41DJZHw.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const x={class:"mt-4"},k={class:"mt-4"},q={class:"mt-4"},B={class:"flex items-center justify-end mt-4"},A={__name:"Register",setup(N){const s=f({name:"",email:"",password:"",password_confirmation:""}),u=()=>{s.post(route("register"),{onFinish:()=>s.reset("password","password_confirmation")})};return(p,a)=>(w(),c(y,null,{default:n(()=>[o(e(_),{title:"Register"}),l("form",{onSubmit:v(u,["prevent"])},[l("div",null,[o(m,{for:"name",value:"Name"}),o(i,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:e(s).name,"onUpdate:modelValue":a[0]||(a[0]=r=>e(s).name=r),required:"",autofocus:"",autocomplete:"name"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.name},null,8,["message"])]),l("div",x,[o(m,{for:"email",value:"Email"}),o(i,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:e(s).email,"onUpdate:modelValue":a[1]||(a[1]=r=>e(s).email=r),required:"",autocomplete:"username"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.email},null,8,["message"])]),l("div",k,[o(m,{for:"password",value:"Password"}),o(i,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:e(s).password,"onUpdate:modelValue":a[2]||(a[2]=r=>e(s).password=r),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.password},null,8,["message"])]),l("div",q,[o(m,{for:"password_confirmation",value:"Confirm Password"}),o(i,{id:"password_confirmation",type:"password",class:"mt-1 block w-full",modelValue:e(s).password_confirmation,"onUpdate:modelValue":a[3]||(a[3]=r=>e(s).password_confirmation=r),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(t,{class:"mt-2",message:e(s).errors.password_confirmation},null,8,["message"])]),l("div",B,[o(e(g),{href:p.route("login"),class:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:n(()=>a[4]||(a[4]=[d(" Already registered? ")])),_:1},8,["href"]),o(b,{class:V(["ms-4",{"opacity-25":e(s).processing}]),disabled:e(s).processing},{default:n(()=>a[5]||(a[5]=[d(" Register ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{A as default}; diff --git a/public/build/assets/ResetPassword-DmhMO4o_.js b/public/build/assets/ResetPassword-BBx7Oi9y.js similarity index 85% rename from public/build/assets/ResetPassword-DmhMO4o_.js rename to public/build/assets/ResetPassword-BBx7Oi9y.js index fa217fc5..23011c51 100644 --- a/public/build/assets/ResetPassword-DmhMO4o_.js +++ b/public/build/assets/ResetPassword-BBx7Oi9y.js @@ -1 +1 @@ -import{T as f,h as c,w as n,b as w,a as o,u as e,Z as _,d as t,e as V,n as g,k}from"./app-zpP4mvhd.js";import{_ as b}from"./GuestLayout-BgHVKdPO.js";import{_ as l}from"./InputError-CnwioU3j.js";import{_ as i}from"./InputLabel-D6wY3cNc.js";import{P as v}from"./PrimaryButton-6L6tESKC.js";import{_ as m}from"./TextInput-BGBBA2nL.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const y={class:"mt-4"},P={class:"mt-4"},q={class:"flex items-center justify-end mt-4"},j={__name:"ResetPassword",props:{email:{type:String,required:!0},token:{type:String,required:!0}},setup(p){const d=p,s=f({token:d.token,email:d.email,password:"",password_confirmation:""}),u=()=>{s.post(route("password.store"),{onFinish:()=>s.reset("password","password_confirmation")})};return(x,a)=>(w(),c(b,null,{default:n(()=>[o(e(_),{title:"Reset Password"}),t("form",{onSubmit:k(u,["prevent"])},[t("div",null,[o(i,{for:"email",value:"Email"}),o(m,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:e(s).email,"onUpdate:modelValue":a[0]||(a[0]=r=>e(s).email=r),required:"",autofocus:"",autocomplete:"username"},null,8,["modelValue"]),o(l,{class:"mt-2",message:e(s).errors.email},null,8,["message"])]),t("div",y,[o(i,{for:"password",value:"Password"}),o(m,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:e(s).password,"onUpdate:modelValue":a[1]||(a[1]=r=>e(s).password=r),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(l,{class:"mt-2",message:e(s).errors.password},null,8,["message"])]),t("div",P,[o(i,{for:"password_confirmation",value:"Confirm Password"}),o(m,{id:"password_confirmation",type:"password",class:"mt-1 block w-full",modelValue:e(s).password_confirmation,"onUpdate:modelValue":a[2]||(a[2]=r=>e(s).password_confirmation=r),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(l,{class:"mt-2",message:e(s).errors.password_confirmation},null,8,["message"])]),t("div",q,[o(v,{class:g({"opacity-25":e(s).processing}),disabled:e(s).processing},{default:n(()=>a[3]||(a[3]=[V(" Reset Password ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{j as default}; +import{T as f,h as c,w as n,b as w,a as o,u as e,Z as _,d as t,e as V,n as g,k}from"./app-DolNWhzr.js";import{_ as b}from"./GuestLayout-BPBJX1aK.js";import{_ as l}from"./InputError-CTOWZzBt.js";import{_ as i}from"./InputLabel-P7ZTY_pn.js";import{P as v}from"./PrimaryButton-BtqGl7rR.js";import{_ as m}from"./TextInput-C41DJZHw.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const y={class:"mt-4"},P={class:"mt-4"},q={class:"flex items-center justify-end mt-4"},j={__name:"ResetPassword",props:{email:{type:String,required:!0},token:{type:String,required:!0}},setup(p){const d=p,s=f({token:d.token,email:d.email,password:"",password_confirmation:""}),u=()=>{s.post(route("password.store"),{onFinish:()=>s.reset("password","password_confirmation")})};return(x,a)=>(w(),c(b,null,{default:n(()=>[o(e(_),{title:"Reset Password"}),t("form",{onSubmit:k(u,["prevent"])},[t("div",null,[o(i,{for:"email",value:"Email"}),o(m,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:e(s).email,"onUpdate:modelValue":a[0]||(a[0]=r=>e(s).email=r),required:"",autofocus:"",autocomplete:"username"},null,8,["modelValue"]),o(l,{class:"mt-2",message:e(s).errors.email},null,8,["message"])]),t("div",y,[o(i,{for:"password",value:"Password"}),o(m,{id:"password",type:"password",class:"mt-1 block w-full",modelValue:e(s).password,"onUpdate:modelValue":a[1]||(a[1]=r=>e(s).password=r),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(l,{class:"mt-2",message:e(s).errors.password},null,8,["message"])]),t("div",P,[o(i,{for:"password_confirmation",value:"Confirm Password"}),o(m,{id:"password_confirmation",type:"password",class:"mt-1 block w-full",modelValue:e(s).password_confirmation,"onUpdate:modelValue":a[2]||(a[2]=r=>e(s).password_confirmation=r),required:"",autocomplete:"new-password"},null,8,["modelValue"]),o(l,{class:"mt-2",message:e(s).errors.password_confirmation},null,8,["message"])]),t("div",q,[o(v,{class:g({"opacity-25":e(s).processing}),disabled:e(s).processing},{default:n(()=>a[3]||(a[3]=[V(" Reset Password ")])),_:1},8,["class","disabled"])])],32)]),_:1}))}};export{j as default}; diff --git a/public/build/assets/SecondaryButton-Dml8iKd5.js b/public/build/assets/SecondaryButton-DL_I_H3U.js similarity index 75% rename from public/build/assets/SecondaryButton-Dml8iKd5.js rename to public/build/assets/SecondaryButton-DL_I_H3U.js index d3c5e3fb..fcb68656 100644 --- a/public/build/assets/SecondaryButton-Dml8iKd5.js +++ b/public/build/assets/SecondaryButton-DL_I_H3U.js @@ -1 +1 @@ -import{b as o,c as n,H as s}from"./app-zpP4mvhd.js";const r=["type"],p={__name:"SecondaryButton",props:{type:{type:String,default:"button"}},setup(t){return(e,a)=>(o(),n("button",{type:t.type,class:"secondaryButton"},[s(e.$slots,"default")],8,r))}};export{p as _}; +import{b as o,c as n,G as s}from"./app-DolNWhzr.js";const r=["type"],p={__name:"SecondaryButton",props:{type:{type:String,default:"button"}},setup(t){return(e,a)=>(o(),n("button",{type:t.type,class:"secondaryButton"},[s(e.$slots,"default")],8,r))}};export{p as _}; diff --git a/public/build/assets/Team-nT4YbDKo.js b/public/build/assets/Team-BP2ZvGAI.js similarity index 96% rename from public/build/assets/Team-nT4YbDKo.js rename to public/build/assets/Team-BP2ZvGAI.js index 0d055694..91ea76eb 100644 --- a/public/build/assets/Team-nT4YbDKo.js +++ b/public/build/assets/Team-BP2ZvGAI.js @@ -1 +1 @@ -import{b as a,c as s,d as e,t as N,r as p,a as i,j as G,k as O,F as A,g as I,f as b,o as W,w as k,e as $,u as V,i as D,n as R,Z as Y,l as Z,v as H}from"./app-zpP4mvhd.js";import{S as j,_ as J}from"./AuthenticatedLayout-BSBk4Waj.js";import{_ as Q}from"./AdminTopNavigation-CKquTKkz.js";import{P as U}from"./PaginatorComponent-Dk-0OsjZ.js";import{P as B}from"./PrimaryButton-6L6tESKC.js";import{_ as M}from"./TextInput-BGBBA2nL.js";import{_ as q}from"./InputLabel-D6wY3cNc.js";import{_ as L}from"./AdminTeamCreateComponent-C5RZWvlc.js";import{_ as X}from"./AdminUserDetailsComponent-QT1KkMwg.js";import{_ as ee}from"./SecondaryButton-Dml8iKd5.js";import{_ as te}from"./AjaxLoadingIndicator-R8NM17UH.js";import{d as F}from"./dayjs.min-C0_0pMrK.js";import{r as ae}from"./relativeTime-__Y28WrV.js";import{u as se}from"./utc-D2jiDVXM.js";import{D as ne}from"./DangerButton-cN2oNBEm.js";import{_ as E}from"./VoucherSetsComponent-7qrYpVZu.js";import{_ as K}from"./VouchersComponent-DQsV5xCe.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const ie={class:"flex justify-start items-center"},oe={class:"text-xs mr-2"},le={class:""},P={__name:"AdminTeamDetailsComponent",props:{team:{required:!0,type:Object}},setup(x){const c=x;return(f,_)=>(a(),s("div",ie,[e("div",oe,"#"+N(c.team.id),1),e("div",le,N(c.team.name),1)]))}},de={key:0},re={key:1},ue={key:0,class:"mt-4"},me={class:"border-b py-1"},ce=["onClick"],ve={key:0,class:"text-red-500 text-xs italic pl-2"},fe={key:1},_e={__name:"AdminTeamMerchantTeamSelectComponent",props:{teamId:{required:!1,default:null}},emits:["teamSelected"],setup(x,{emit:c}){const f=x,_=p(!1),l=p(""),o=p({}),m=c;function g(){axios.get("/admin/teams?where[]=name,like,*"+l.value+"*&limit=100&relations=teamsThisTeamIsMerchantFor").then(u=>{o.value=u.data.data}).catch(u=>{console.log(u)})}function C(){_.value=!0,o.value={}}function T(u){w(u)}function w(u){m("teamSelected",u),l.value="",o.value={}}function S(u){return u.teams_this_team_is_merchant_for.find(r=>r.team_id===f.teamId)}return(u,r)=>_.value?(a(),s("div",de,[i(L,{searchStr:l.value,onTeamCreated:T},null,8,["searchStr"])])):(a(),s("div",re,[e("div",null,[i(q,{for:"name",value:"Team name(Type to search and press Enter)"}),i(M,{onKeyup:r[0]||(r[0]=G(O(n=>g(),["prevent"]),["enter"])),id:"name",type:"text",class:"mt-1 block w-full",modelValue:l.value,"onUpdate:modelValue":r[1]||(r[1]=n=>l.value=n),required:""},null,8,["modelValue"])]),l.value.length>0&&o.value.total>0?(a(),s("div",ue,[(a(!0),s(A,null,I(o.value.data,n=>(a(),s("div",me,[e("button",{onClick:t=>w(n),class:"flex justify-start items-end"},[i(P,{team:n},null,8,["team"]),S(n)?(a(),s("span",ve,"***Already added")):b("",!0)],8,ce)]))),256)),e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[2]||(r[2]=n=>C())}," Create a new team? ")])):b("",!0),l.value.length>0&&o.value.total===0?(a(),s("div",fe,[e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[3]||(r[3]=n=>C())}," We could not find teams. Do you want to create a new team? ")])):b("",!0)]))}},he={class:"grid grid-cols-1 md:grid-cols-2 gap-0 md:gap-4"},pe={class:"card"},ye={class:"card-header flex justify-between items-center"},xe={class:"text-xs italic"},ge={class:""},we={class:"flex justify-end"},$e={key:0},ke={key:1},be={key:0},Ce={key:1},Te={class:"py-2"},Se={class:"font-bold"},Ne={key:2},je={key:0,class:"mb-8"},Ae={class:"border-b py-1 flex justify-between items-end"},Ie=["onClick"],Ve={class:"flex justify-end items-center mt-4"},Be={class:"w-full lg:w-1/3"},De={class:"card"},Me={class:"card-header"},Ue={key:0},Pe={class:"text-xs italic"},qe={key:0,class:"mb-8"},ze={class:"border-b py-1 flex justify-between items-end"},Oe=["onClick"],Fe={class:"flex justify-end items-center mt-4"},We={class:"w-full lg:w-1/3"},Ee={__name:"AdminTeamMerchantTeamsComponent",props:{team:{required:!0,type:Object}},setup(x){const c=x,f=p(!1),_=p(!1),l=p({}),o=p({}),m=p({});W(()=>{T(),w()});function g(){f.value=!0}function C(){f.value=!1,_.value=!1,m.value={}}function T(n=1){axios.get("/admin/team-merchant-teams?cached=false&where[]=team_id,"+c.team.id+"&page="+n+"&relations=merchantTeam").then(t=>{l.value=t.data.data}).catch(t=>{console.log(t)})}function w(n=1){axios.get("/admin/team-merchant-teams?cached=false&where[]=merchant_team_id,"+c.team.id+"&page="+n+"&relations=team").then(t=>{o.value=t.data.data}).catch(t=>{console.log(t)})}function S(n){j.fire({title:"Are you sure you want to delete?",text:"This action cannot be undone. Please confirm if you wish to proceed.",icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:"Delete merchant team",showCancelButton:!0}).then(t=>{t.isConfirmed&&axios.delete("/admin/team-merchant-teams/"+n).then(v=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{T(),w()})}).catch(v=>{console.log(v)})})}function u(){if(c.team.country_id===m.value.country_id){let n={team_id:c.team.id,merchant_team_id:m.value.id};axios.post("/admin/team-merchant-teams",n).then(t=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{m.value={},_.value=!1,T(),w()})}).catch(t=>{console.log(t)})}else j.fire({title:"Country / Currency mismatch",html:"Selected merchant ("+m.value.name+") is not sharing same country as the team ("+c.team.name+"). We cannot add merchant which has different country/currency. Please update.",icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:"Got it!"}).then(n=>{m.value={},_.value=!1})}function r(n){m.value=n,f.value=!1,_.value=!0}return(n,t)=>(a(),s("div",he,[e("div",pe,[e("div",ye,[e("div",null,[t[3]||(t[3]=e("div",null," Merchant teams ",-1)),e("div",xe," These teams may redeem vouchers for "+N(x.team.name),1)]),e("div",ge,[e("div",we,[!f.value&&!_.value?(a(),s("div",$e,[i(B,{onClick:t[0]||(t[0]=v=>g()),class:"ms-4"},{default:k(()=>t[4]||(t[4]=[$(" Add Merchant Team ")])),_:1})])):(a(),s("div",ke,[i(B,{onClick:t[1]||(t[1]=v=>C()),class:"ms-4"},{default:k(()=>t[5]||(t[5]=[$(" Cancel ")])),_:1})]))])])]),f.value?(a(),s("div",be,[t[6]||(t[6]=e("div",{class:"py-2"},"Select merchant team...",-1)),i(_e,{teamId:x.team.id,onTeamSelected:r},null,8,["teamId"])])):_.value?(a(),s("div",Ce,[e("div",Te,[t[7]||(t[7]=$("Add ")),e("span",Se,N(m.value.name),1),t[8]||(t[8]=$(" as merchant team? "))]),i(B,{onClick:t[2]||(t[2]=v=>u()),class:""},{default:k(()=>t[9]||(t[9]=[$(" Add ")])),_:1})])):(a(),s("div",Ne,[l.value.data&&l.value.data.length?(a(),s("div",je,[(a(!0),s(A,null,I(l.value.data,v=>(a(),s("div",Ae,[i(V(D),{href:n.route("admin.team",v.merchant_team_id)},{default:k(()=>[i(P,{team:v.merchant_team},null,8,["team"])]),_:2},1032,["href"]),e("button",{onClick:y=>S(v.id),class:"text-xs text-red-500 flex items-center"},t[10]||(t[10]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"size-3"},[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1),$(" Delete ")]),8,Ie)]))),256)),e("div",Ve,[e("div",Be,[i(U,{onSetDataPage:T,"pagination-data":l.value},null,8,["pagination-data"])])])])):b("",!0)]))]),e("div",De,[e("div",Me,[x.team.name?(a(),s("div",Ue," Teams "+N(x.team.name)+" is merchant for ",1)):b("",!0),e("div",Pe,N(x.team.name)+" may redeem vouchers for these teams ",1)]),o.value.data&&o.value.data.length?(a(),s("div",qe,[(a(!0),s(A,null,I(o.value.data,v=>(a(),s("div",ze,[i(V(D),{href:n.route("admin.team",v.team_id)},{default:k(()=>[i(P,{team:v.team},null,8,["team"])]),_:2},1032,["href"]),e("button",{onClick:y=>S(v.id),class:"text-xs text-red-500 flex items-center"},t[11]||(t[11]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"size-3"},[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1),$(" Delete ")]),8,Oe)]))),256)),e("div",Fe,[e("div",We,[i(U,{onSetDataPage:w,"pagination-data":o.value},null,8,["pagination-data"])])])])):b("",!0)])]))}},Ke={key:0},Ge={key:1},Le={key:0,class:"mt-4"},Re={class:"border-b py-1"},Ye=["onClick"],Ze={key:0,class:"text-red-500 text-xs italic pl-2"},He={key:1},Je={__name:"AdminTeamServiceTeamSelectComponent",props:{teamId:{required:!1,default:null}},emits:["teamSelected"],setup(x,{emit:c}){const f=x,_=p(!1),l=p(""),o=p({}),m=c;function g(){axios.get("/admin/teams?where[]=name,like,*"+l.value+"*&limit=100&relations=teamsThisTeamIsServiceFor").then(u=>{o.value=u.data.data}).catch(u=>{console.log(u)})}function C(){_.value=!0,o.value={}}function T(u){w(u)}function w(u){m("teamSelected",u),l.value="",o.value={}}function S(u){return u.teams_this_team_is_service_for.find(r=>r.team_id===f.teamId)}return(u,r)=>_.value?(a(),s("div",Ke,[i(L,{searchStr:l.value,onTeamCreated:T},null,8,["searchStr"])])):(a(),s("div",Ge,[e("div",null,[i(q,{for:"name",value:"Team name(Type to search and press Enter)"}),i(M,{onKeyup:r[0]||(r[0]=G(O(n=>g(),["prevent"]),["enter"])),id:"name",type:"text",class:"mt-1 block w-full",modelValue:l.value,"onUpdate:modelValue":r[1]||(r[1]=n=>l.value=n),required:""},null,8,["modelValue"])]),l.value.length>0&&o.value.total>0?(a(),s("div",Le,[(a(!0),s(A,null,I(o.value.data,n=>(a(),s("div",Re,[e("button",{onClick:t=>w(n),class:"flex justify-start items-end"},[i(P,{team:n},null,8,["team"]),S(n)?(a(),s("span",Ze,"***Already added")):b("",!0)],8,Ye)]))),256)),e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[2]||(r[2]=n=>C())}," Create a new team? ")])):b("",!0),l.value.length>0&&o.value.total===0?(a(),s("div",He,[e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[3]||(r[3]=n=>C())}," We could not find teams. Do you want to create a new team? ")])):b("",!0)]))}},Qe={class:"grid grid-cols-1 md:grid-cols-2 gap-0 md:gap-4"},Xe={class:"card"},et={class:"card-header flex justify-between items-center"},tt={class:"text-xs italic"},at={class:""},st={class:"flex justify-end"},nt={class:"flex justify-end"},it={key:0},ot={key:1},lt={key:0},dt={key:1},rt={class:"py-2"},ut={class:"font-bold"},mt={key:2},ct={key:0,class:"mb-8"},vt={class:"border-b py-1 flex justify-between items-end"},ft=["onClick"],_t={class:"flex justify-end items-center mt-4"},ht={class:"w-full lg:w-1/3"},pt={class:"card"},yt={class:"card-header"},xt={class:"text-xs italic"},gt={key:0,class:"mb-8"},wt={class:"border-b py-1 flex justify-between items-end"},$t=["onClick"],kt={class:"flex justify-end items-center mt-4"},bt={class:"w-full lg:w-1/3"},Ct={__name:"AdminTeamServiceTeamsComponent",props:{teamId:{required:!0,type:Number},teamName:{required:!0}},setup(x){const c=x,f=p(!1),_=p(!1),l=p({}),o=p({}),m=p({});W(()=>{T(),w()});function g(){f.value=!0}function C(){f.value=!1,_.value=!1,m.value={}}function T(n=1){axios.get("/admin/team-service-teams?cached=false&where[]=team_id,"+c.teamId+"&page="+n+"&relations=serviceTeam").then(t=>{l.value=t.data.data}).catch(t=>{console.log(t)})}function w(n=1){axios.get("/admin/team-service-teams?cached=false&where[]=service_team_id,"+c.teamId+"&page="+n+"&relations=team").then(t=>{o.value=t.data.data}).catch(t=>{console.log(t)})}function S(n){j.fire({title:"Are you sure you want to delete?",text:"This action cannot be undone. Please confirm if you wish to proceed.",icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:"Delete service team",showCancelButton:!0}).then(t=>{t.isConfirmed&&axios.delete("/admin/team-service-teams/"+n).then(v=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{T(),w()})}).catch(v=>{console.log(v)})})}function u(){let n={team_id:c.teamId,service_team_id:m.value.id};axios.post("/admin/team-service-teams",n).then(t=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{m.value={},_.value=!1,T(),w()})}).catch(t=>{console.log(t)})}function r(n){m.value=n,f.value=!1,_.value=!0}return(n,t)=>(a(),s("div",Qe,[e("div",Xe,[e("div",et,[e("div",null,[t[3]||(t[3]=e("div",null," Service teams ",-1)),e("div",tt," These teams may distribute vouchers for redemption at "+N(x.teamName),1)]),e("div",at,[e("div",st,[e("div",nt,[!f.value&&!_.value?(a(),s("div",it,[i(B,{onClick:t[0]||(t[0]=v=>g()),class:"ms-4"},{default:k(()=>t[4]||(t[4]=[$(" Add Service Team ")])),_:1})])):(a(),s("div",ot,[i(B,{onClick:t[1]||(t[1]=v=>C()),class:"ms-4"},{default:k(()=>t[5]||(t[5]=[$(" Cancel ")])),_:1})]))])])])]),f.value?(a(),s("div",lt,[t[6]||(t[6]=e("div",{class:"py-2"},"Select service team...",-1)),i(Je,{teamId:x.teamId,onTeamSelected:r},null,8,["teamId"])])):_.value?(a(),s("div",dt,[e("div",rt,[t[7]||(t[7]=$("Adding ")),e("span",ut,N(m.value.name),1),t[8]||(t[8]=$(" as service team?"))]),i(B,{onClick:t[2]||(t[2]=v=>u()),class:""},{default:k(()=>t[9]||(t[9]=[$(" Add ")])),_:1})])):(a(),s("div",mt,[l.value.data&&l.value.data.length?(a(),s("div",ct,[(a(!0),s(A,null,I(l.value.data,v=>(a(),s("div",vt,[i(V(D),{href:n.route("admin.team",v.service_team_id)},{default:k(()=>[i(P,{team:v.service_team},null,8,["team"])]),_:2},1032,["href"]),e("button",{onClick:y=>S(v.id),class:"text-xs text-red-500 flex items-center"},t[10]||(t[10]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"size-3"},[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1),$(" Delete ")]),8,ft)]))),256)),e("div",_t,[e("div",ht,[i(U,{onSetDataPage:T,"pagination-data":l.value},null,8,["pagination-data"])])])])):b("",!0)]))]),e("div",pt,[e("div",yt,[e("div",null," Teams "+N(x.teamName)+" is service for ",1),e("div",xt,N(x.teamName)+" may distribute vouchers to these teams ",1)]),o.value.data&&o.value.data.length?(a(),s("div",gt,[(a(!0),s(A,null,I(o.value.data,v=>(a(),s("div",wt,[i(V(D),{href:n.route("admin.team",v.team_id)},{default:k(()=>[i(P,{team:v.team},null,8,["team"])]),_:2},1032,["href"]),e("button",{onClick:y=>S(v.id),class:"text-xs text-red-500 flex items-center"},t[11]||(t[11]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"size-3"},[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1),$(" Delete ")]),8,$t)]))),256)),e("div",kt,[e("div",bt,[i(U,{onSetDataPage:w,"pagination-data":o.value},null,8,["pagination-data"])])])])):b("",!0)])]))}},Tt={key:0},St={class:"flex items-center justify-end mt-4"},Nt={key:1},jt={key:0,class:"mt-4"},At=["onClick"],It={key:1},Vt={__name:"AdminUserSelectComponent",props:{teamId:{required:!0,type:Number}},emits:["createNewTeamUser"],setup(x,{emit:c}){const f=x,_=p(!1),l=p({name:"",email:"",current_team_id:null}),o=p(""),m=p({}),g=c;function C(){l.value.current_team_id=f.teamId,axios.post("admin/users",l.value).then(u=>{let r=u.data.data.id;S(r),l.value={name:"",email:"",current_team_id:null},_.value=!1}).catch(u=>{console.log(u)})}function T(){axios.get("/admin/users?where[]=name,like,*"+o.value+"*&limit=100").then(u=>{m.value=u.data.data}).catch(u=>{console.log(u)})}function w(){_.value=!0,m.value={},l.value.name=o.value}function S(u){g("createNewTeamUser",u),o.value="",m.value={}}return(u,r)=>_.value?(a(),s("div",Tt,[e("div",null,[i(q,{for:"name",value:"Name"}),i(M,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:l.value.name,"onUpdate:modelValue":r[0]||(r[0]=n=>l.value.name=n),required:""},null,8,["modelValue"])]),e("div",null,[i(q,{for:"email",value:"Email"}),i(M,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:l.value.email,"onUpdate:modelValue":r[1]||(r[1]=n=>l.value.email=n),required:""},null,8,["modelValue"])]),e("div",St,[i(B,{onClick:r[2]||(r[2]=O(n=>C(),["prevent"])),class:R(["ms-4",{"opacity-25":!l.value.name||!l.value.email}]),disabled:!l.value.name||!l.value.email},{default:k(()=>r[7]||(r[7]=[$(" Submit ")])),_:1},8,["class","disabled"])])])):(a(),s("div",Nt,[e("div",null,[i(q,{for:"name",value:"Find A User"}),i(M,{onKeyup:r[3]||(r[3]=n=>T()),modelValue:o.value,"onUpdate:modelValue":r[4]||(r[4]=n=>o.value=n),class:"mt-1 block w-full",placeholder:"Search by name..",type:"text"},null,8,["modelValue"])]),o.value.length>0&&m.value.total>0?(a(),s("div",jt,[(a(!0),s(A,null,I(m.value.data,n=>(a(),s("a",{href:"#",onClick:t=>S(n.id),class:"border-b py-1",tabindex:"0"},[i(X,{user:n},null,8,["user"])],8,At))),256)),e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[5]||(r[5]=n=>w())}," Create a new user? ")])):b("",!0),o.value.length>0&&m.value.total===0?(a(),s("div",It,[e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[6]||(r[6]=n=>w())}," We could not find users. Do you want to create a new user? ")])):b("",!0)]))}},Bt={class:"card"},Dt={class:"card-header flex justify-between"},Mt={class:"grid gap-4 grid-cols-6 mt-8"},Ut={key:0},Pt={key:1},qt=["src"],zt={class:"flex justify-end items-center mt-4"},Ot={class:"w-full lg:w-1/3"},Ft={__name:"AdminTeamVoucherTemplatesList",props:{team:{type:Object,required:!0}},setup(x){const c=x,f=p({});function _(l=1){var o;axios.get("/admin/team-voucher-templates?cached=false&where[]=team_id,"+((o=c.team)==null?void 0:o.id)+"&page="+l).then(m=>{f.value=m.data.data}).catch(m=>{j.fire({icon:"error",title:"Oops!",text:m.response.data.message})})}return _(),(l,o)=>(a(),s("div",Bt,[e("div",Dt,[o[1]||(o[1]=e("div",null," Voucher Templates ",-1)),e("div",null,[i(V(D),{href:"/admin/team-voucher-templates/new?teamId="+x.team.id},{default:k(()=>[i(B,{class:""},{default:k(()=>o[0]||(o[0]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})],-1),$(" New Template ")])),_:1})]),_:1},8,["href"])])]),e("div",Mt,[(a(!0),s(A,null,I(f.value.data,m=>(a(),s("div",null,[m.archived_at?(a(),s("div",Ut,o[2]||(o[2]=[e("div",{class:"border-2 text-center rounded-lg border-dashed p-2 border-red-300 text-red-300 font-bold"}," Archived ",-1)]))):(a(),s("div",Pt,o[3]||(o[3]=[e("div",{class:"border-2 text-center rounded-lg border-dashed p-2 border-green-300 text-green-300 font-bold"}," Active ",-1)]))),i(V(D),{href:"/admin/team-voucher-template/"+m.id},{default:k(()=>[e("img",{src:m.example_template_image_url,alt:"",class:"border rounded"},null,8,qt)]),_:2},1032,["href"])]))),256))]),e("div",zt,[e("div",Ot,[i(U,{onSetDataPage:_,"pagination-data":f.value},null,8,["pagination-data"])])])]))}},Wt={class:"card"},Et={class:""},Kt={class:"text-gray-300 pr-1"},Gt={class:"card"},Lt={class:"flex justify-start items-center mt-4"},Rt={for:"name",class:"w-full font-bold"},Yt={class:"flex justify-start items-center mt-4"},Zt={for:"country",class:"w-full font-bold"},Ht=["value"],Jt={key:0,class:"mt-8 flex justify-end"},Qt={class:"card"},Xt={key:0},ea={class:"flex justify-between items-center hover:opacity-75"},ta={class:"flex justify-end items-center"},aa={key:0,class:"pr-2 text-xs"},sa={class:"flex"},na={key:0},ia={key:1,class:"px-2"},oa={key:2,class:"px-2"},la={class:"flex justify-end items-center mt-4"},da={class:"w-full lg:w-1/3"},ra={class:"card"},ua={key:0,class:"container mx-auto"},ma={key:1,class:"container mx-auto"},ca={class:"card"},va={class:"card"},fa={class:"card"},_a={class:"card"},ha={key:2,class:"container mx-auto"},Ua={__name:"Team",props:{id:{required:!0,type:Number}},setup(x){F.extend(ae),F.extend(se);const c=x,f=p(!1),_=p(10),l=p(""),o=p(""),m=p({}),g=p({name:"",country_id:""}),C=p({});W(()=>{S(),u(),w()});function T(y){let d={user_id:y,team_id:c.id};axios.post("/admin/team-users",d).then(h=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{u()})}).catch(h=>{console.log(h)})}function w(){axios.get("/countries?limit=300").then(y=>{m.value=y.data.data}).catch(y=>{console.log(y)})}function S(){axios.get("/admin/teams/"+c.id+"?cached=false").then(y=>{g.value=y.data.data,o.value=g.value.country_id,l.value=g.value.name}).catch(y=>{console.log(y)})}function u(y=1){axios.get("/admin/team-users?cached=false&page="+y+"&where[]=team_id,"+c.id+"&relations=user&limit="+_.value+"&orderBy=id,desc").then(d=>{C.value=d.data.data}).catch(d=>{console.log(d)})}function r(y){f.value=!0;let d={send_invite_email:!0};axios.put("/admin/team-users/"+y.id,d).then(h=>{u(),f.value=!1}).catch(h=>{console.log(h),f.value=!1})}function n(y){j.fire({icon:"warning",title:"Are you sure?",text:"This will remove this user from this team. You can always add them back.",showConfirmButton:!0,showCancelButton:!0}).then(d=>{d.isConfirmed&&axios.delete("/admin/team-users/"+y.id).then(h=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{u()})}).catch(h=>{console.log(h)})})}function t(y){u(y)}function v(){let y={name:l.value,country_id:o.value};g.value.country_id!==o.value?j.fire({title:"Wait...",icon:"warning",text:"It looks like you're changing this teams' country. Please be aware this will NOT update the selected currency for any of their existing voucher sets.",confirmButtonText:"I get it. Proceed.",cancelButtonText:"Go back",showCancelButton:!0,showConfirmButton:!0,allowOutsideClick:!1}).then(d=>{d.isDismissed||d.isConfirmed&&axios.put("/admin/teams/"+c.id,y).then(h=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{S()})}).catch(h=>{console.log(h)})}):axios.put("/admin/teams/"+c.id,y).then(d=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{S()})}).catch(d=>{console.log(d)})}return(y,d)=>(a(),s(A,null,[i(V(Y),{title:"Team"}),i(J,null,{header:k(()=>[i(Q)]),default:k(()=>[e("div",Wt,[e("div",Et,[e("h2",null,[e("span",Kt,"#"+N(c.id),1),$(" "+N(g.value.name),1)])])]),e("div",Gt,[d[6]||(d[6]=e("div",{class:"card-header"}," Team details ",-1)),e("div",Lt,[e("label",Rt,[d[3]||(d[3]=$(" Team Name: ")),i(M,{id:"name",type:"text",class:"mt-1 block w-full font-normal",modelValue:l.value,"onUpdate:modelValue":d[0]||(d[0]=h=>l.value=h)},null,8,["modelValue"])])]),e("div",Yt,[e("label",Zt,[d[4]||(d[4]=$(" Country: ")),Z(e("select",{id:"country",class:"mt-1 block w-full font-normal","onUpdate:modelValue":d[1]||(d[1]=h=>o.value=h)},[(a(!0),s(A,null,I(m.value.data,h=>(a(),s("option",{value:h.id,key:h.id},N(h.name),9,Ht))),128))],512),[[H,o.value]])])]),l.value!==g.value.name||o.value!==g.value.country_id?(a(),s("div",Jt,[i(B,{onClick:d[2]||(d[2]=h=>v())},{default:k(()=>d[5]||(d[5]=[$("Update")])),_:1})])):b("",!0)]),e("div",Qt,[i(te,{loading:f.value},null,8,["loading"]),d[9]||(d[9]=e("div",{class:"card-header"}," Team members ",-1)),C.value.data&&C.value.data.length>0?(a(),s("div",Xt,[(a(!0),s(A,null,I(C.value.data,h=>(a(),s("div",ea,[i(V(D),{href:y.route("admin.user",h.user_id),class:"border-b p-2 mr-2 flex-grow flex justify-between items-center hover:no-underline"},{default:k(()=>{var z;return[e("div",null,N((z=h.user)==null?void 0:z.name),1),e("div",ta,[h.invitation_sent_at?(a(),s("div",aa," Invited: "+N(V(F).utc(h.invitation_sent_at).fromNow()),1)):b("",!0),d[7]||(d[7]=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1))])]}),_:2},1032,["href"]),e("div",sa,[i(ee,{onClick:z=>r(h),class:"mr-2"},{default:k(()=>[e("div",null,[h.invitation_sent_at?(a(),s("div",na,"Resend Invite")):f.value?(a(),s("div",ia,"Sending..")):(a(),s("div",oa,"Send Invite"))])]),_:2},1032,["onClick"]),i(ne,{onClick:O(z=>n(h),["prevent"])},{default:k(()=>d[8]||(d[8]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-3 font-bold"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})],-1)])),_:2},1032,["onClick"])])]))),256))])):b("",!0),e("div",la,[e("div",da,[i(U,{onSetDataPage:t,"pagination-data":C.value},null,8,["pagination-data"])])])]),e("div",ra,[d[10]||(d[10]=e("div",{class:"card-header"}," Add user to team ",-1)),i(Vt,{teamId:c.id,onCreateNewTeamUser:T},null,8,["teamId"])]),g.value.id?(a(),s("div",ua,[i(Ee,{team:g.value},null,8,["team"])])):b("",!0),g.value.id?(a(),s("div",ma,[i(Ct,{teamId:c.id,teamName:g.value.name},null,8,["teamId","teamName"])])):b("",!0),e("div",ca,[d[11]||(d[11]=e("div",{class:"card-header"}," Voucher sets created by team ",-1)),i(E,{"team-id":c.id,"filter-voucher-sets":"created_by_team_id"},null,8,["team-id"])]),e("div",va,[d[12]||(d[12]=e("div",{class:"card-header"}," Voucher sets allocated to team ",-1)),i(E,{"team-id":c.id,"filter-voucher-sets":"allocated_to_service_team_id"},null,8,["team-id"])]),e("div",fa,[d[13]||(d[13]=e("div",{class:"card-header"}," Vouchers created by team ",-1)),i(K,{"team-id":c.id,"filter-vouchers":"created_by_team_id"},null,8,["team-id"])]),e("div",_a,[d[14]||(d[14]=e("div",{class:"card-header"}," Vouchers allocated to team ",-1)),i(K,{"team-id":c.id,"filter-vouchers":"allocated_to_service_team_id"},null,8,["team-id"])]),g.value.id?(a(),s("div",ha,[i(Ft,{team:g.value},null,8,["team"])])):b("",!0),d[15]||(d[15]=e("div",{class:"p-32"},null,-1))]),_:1})],64))}};export{Ua as default}; +import{b as a,c as s,d as e,t as N,r as p,a as i,j as G,k as O,F as A,g as I,f as b,o as W,w as k,e as $,u as V,i as D,n as R,Z as Y,l as Z,v as H}from"./app-DolNWhzr.js";import{S as j,_ as J}from"./AuthenticatedLayout-DuLcXyKk.js";import{_ as Q}from"./AdminTopNavigation-Bl9ElpaD.js";import{P as U}from"./PaginatorComponent-DpqX95xS.js";import{P as B}from"./PrimaryButton-BtqGl7rR.js";import{_ as M}from"./TextInput-C41DJZHw.js";import{_ as q}from"./InputLabel-P7ZTY_pn.js";import{_ as L}from"./AdminTeamCreateComponent--ZqK8uaD.js";import{_ as X}from"./AdminUserDetailsComponent-BIuw6cp6.js";import{_ as ee}from"./SecondaryButton-DL_I_H3U.js";import{_ as te}from"./AjaxLoadingIndicator-DnIg5N8b.js";import{d as F}from"./dayjs.min-ilzO22t1.js";import{r as ae}from"./relativeTime-BTl_QCHW.js";import{u as se}from"./utc-CWodzHWT.js";import{D as ne}from"./DangerButton-Bm5iDOLt.js";import{_ as E}from"./VoucherSetsComponent-PmCvbfnV.js";import{_ as K}from"./VouchersComponent-o-O6pMZi.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const ie={class:"flex justify-start items-center"},oe={class:"text-xs mr-2"},le={class:""},P={__name:"AdminTeamDetailsComponent",props:{team:{required:!0,type:Object}},setup(x){const c=x;return(f,_)=>(a(),s("div",ie,[e("div",oe,"#"+N(c.team.id),1),e("div",le,N(c.team.name),1)]))}},de={key:0},re={key:1},ue={key:0,class:"mt-4"},me={class:"border-b py-1"},ce=["onClick"],ve={key:0,class:"text-red-500 text-xs italic pl-2"},fe={key:1},_e={__name:"AdminTeamMerchantTeamSelectComponent",props:{teamId:{required:!1,default:null}},emits:["teamSelected"],setup(x,{emit:c}){const f=x,_=p(!1),l=p(""),o=p({}),m=c;function g(){axios.get("/admin/teams?where[]=name,like,*"+l.value+"*&limit=100&relations=teamsThisTeamIsMerchantFor").then(u=>{o.value=u.data.data}).catch(u=>{console.log(u)})}function C(){_.value=!0,o.value={}}function T(u){w(u)}function w(u){m("teamSelected",u),l.value="",o.value={}}function S(u){return u.teams_this_team_is_merchant_for.find(r=>r.team_id===f.teamId)}return(u,r)=>_.value?(a(),s("div",de,[i(L,{searchStr:l.value,onTeamCreated:T},null,8,["searchStr"])])):(a(),s("div",re,[e("div",null,[i(q,{for:"name",value:"Team name(Type to search and press Enter)"}),i(M,{onKeyup:r[0]||(r[0]=G(O(n=>g(),["prevent"]),["enter"])),id:"name",type:"text",class:"mt-1 block w-full",modelValue:l.value,"onUpdate:modelValue":r[1]||(r[1]=n=>l.value=n),required:""},null,8,["modelValue"])]),l.value.length>0&&o.value.total>0?(a(),s("div",ue,[(a(!0),s(A,null,I(o.value.data,n=>(a(),s("div",me,[e("button",{onClick:t=>w(n),class:"flex justify-start items-end"},[i(P,{team:n},null,8,["team"]),S(n)?(a(),s("span",ve,"***Already added")):b("",!0)],8,ce)]))),256)),e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[2]||(r[2]=n=>C())}," Create a new team? ")])):b("",!0),l.value.length>0&&o.value.total===0?(a(),s("div",fe,[e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[3]||(r[3]=n=>C())}," We could not find teams. Do you want to create a new team? ")])):b("",!0)]))}},he={class:"grid grid-cols-1 md:grid-cols-2 gap-0 md:gap-4"},pe={class:"card"},ye={class:"card-header flex justify-between items-center"},xe={class:"text-xs italic"},ge={class:""},we={class:"flex justify-end"},$e={key:0},ke={key:1},be={key:0},Ce={key:1},Te={class:"py-2"},Se={class:"font-bold"},Ne={key:2},je={key:0,class:"mb-8"},Ae={class:"border-b py-1 flex justify-between items-end"},Ie=["onClick"],Ve={class:"flex justify-end items-center mt-4"},Be={class:"w-full lg:w-1/3"},De={class:"card"},Me={class:"card-header"},Ue={key:0},Pe={class:"text-xs italic"},qe={key:0,class:"mb-8"},ze={class:"border-b py-1 flex justify-between items-end"},Oe=["onClick"],Fe={class:"flex justify-end items-center mt-4"},We={class:"w-full lg:w-1/3"},Ee={__name:"AdminTeamMerchantTeamsComponent",props:{team:{required:!0,type:Object}},setup(x){const c=x,f=p(!1),_=p(!1),l=p({}),o=p({}),m=p({});W(()=>{T(),w()});function g(){f.value=!0}function C(){f.value=!1,_.value=!1,m.value={}}function T(n=1){axios.get("/admin/team-merchant-teams?cached=false&where[]=team_id,"+c.team.id+"&page="+n+"&relations=merchantTeam").then(t=>{l.value=t.data.data}).catch(t=>{console.log(t)})}function w(n=1){axios.get("/admin/team-merchant-teams?cached=false&where[]=merchant_team_id,"+c.team.id+"&page="+n+"&relations=team").then(t=>{o.value=t.data.data}).catch(t=>{console.log(t)})}function S(n){j.fire({title:"Are you sure you want to delete?",text:"This action cannot be undone. Please confirm if you wish to proceed.",icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:"Delete merchant team",showCancelButton:!0}).then(t=>{t.isConfirmed&&axios.delete("/admin/team-merchant-teams/"+n).then(v=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{T(),w()})}).catch(v=>{console.log(v)})})}function u(){if(c.team.country_id===m.value.country_id){let n={team_id:c.team.id,merchant_team_id:m.value.id};axios.post("/admin/team-merchant-teams",n).then(t=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{m.value={},_.value=!1,T(),w()})}).catch(t=>{console.log(t)})}else j.fire({title:"Country / Currency mismatch",html:"Selected merchant ("+m.value.name+") is not sharing same country as the team ("+c.team.name+"). We cannot add merchant which has different country/currency. Please update.",icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:"Got it!"}).then(n=>{m.value={},_.value=!1})}function r(n){m.value=n,f.value=!1,_.value=!0}return(n,t)=>(a(),s("div",he,[e("div",pe,[e("div",ye,[e("div",null,[t[3]||(t[3]=e("div",null," Merchant teams ",-1)),e("div",xe," These teams may redeem vouchers for "+N(x.team.name),1)]),e("div",ge,[e("div",we,[!f.value&&!_.value?(a(),s("div",$e,[i(B,{onClick:t[0]||(t[0]=v=>g()),class:"ms-4"},{default:k(()=>t[4]||(t[4]=[$(" Add Merchant Team ")])),_:1})])):(a(),s("div",ke,[i(B,{onClick:t[1]||(t[1]=v=>C()),class:"ms-4"},{default:k(()=>t[5]||(t[5]=[$(" Cancel ")])),_:1})]))])])]),f.value?(a(),s("div",be,[t[6]||(t[6]=e("div",{class:"py-2"},"Select merchant team...",-1)),i(_e,{teamId:x.team.id,onTeamSelected:r},null,8,["teamId"])])):_.value?(a(),s("div",Ce,[e("div",Te,[t[7]||(t[7]=$("Add ")),e("span",Se,N(m.value.name),1),t[8]||(t[8]=$(" as merchant team? "))]),i(B,{onClick:t[2]||(t[2]=v=>u()),class:""},{default:k(()=>t[9]||(t[9]=[$(" Add ")])),_:1})])):(a(),s("div",Ne,[l.value.data&&l.value.data.length?(a(),s("div",je,[(a(!0),s(A,null,I(l.value.data,v=>(a(),s("div",Ae,[i(V(D),{href:n.route("admin.team",v.merchant_team_id)},{default:k(()=>[i(P,{team:v.merchant_team},null,8,["team"])]),_:2},1032,["href"]),e("button",{onClick:y=>S(v.id),class:"text-xs text-red-500 flex items-center"},t[10]||(t[10]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"size-3"},[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1),$(" Delete ")]),8,Ie)]))),256)),e("div",Ve,[e("div",Be,[i(U,{onSetDataPage:T,"pagination-data":l.value},null,8,["pagination-data"])])])])):b("",!0)]))]),e("div",De,[e("div",Me,[x.team.name?(a(),s("div",Ue," Teams "+N(x.team.name)+" is merchant for ",1)):b("",!0),e("div",Pe,N(x.team.name)+" may redeem vouchers for these teams ",1)]),o.value.data&&o.value.data.length?(a(),s("div",qe,[(a(!0),s(A,null,I(o.value.data,v=>(a(),s("div",ze,[i(V(D),{href:n.route("admin.team",v.team_id)},{default:k(()=>[i(P,{team:v.team},null,8,["team"])]),_:2},1032,["href"]),e("button",{onClick:y=>S(v.id),class:"text-xs text-red-500 flex items-center"},t[11]||(t[11]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"size-3"},[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1),$(" Delete ")]),8,Oe)]))),256)),e("div",Fe,[e("div",We,[i(U,{onSetDataPage:w,"pagination-data":o.value},null,8,["pagination-data"])])])])):b("",!0)])]))}},Ke={key:0},Ge={key:1},Le={key:0,class:"mt-4"},Re={class:"border-b py-1"},Ye=["onClick"],Ze={key:0,class:"text-red-500 text-xs italic pl-2"},He={key:1},Je={__name:"AdminTeamServiceTeamSelectComponent",props:{teamId:{required:!1,default:null}},emits:["teamSelected"],setup(x,{emit:c}){const f=x,_=p(!1),l=p(""),o=p({}),m=c;function g(){axios.get("/admin/teams?where[]=name,like,*"+l.value+"*&limit=100&relations=teamsThisTeamIsServiceFor").then(u=>{o.value=u.data.data}).catch(u=>{console.log(u)})}function C(){_.value=!0,o.value={}}function T(u){w(u)}function w(u){m("teamSelected",u),l.value="",o.value={}}function S(u){return u.teams_this_team_is_service_for.find(r=>r.team_id===f.teamId)}return(u,r)=>_.value?(a(),s("div",Ke,[i(L,{searchStr:l.value,onTeamCreated:T},null,8,["searchStr"])])):(a(),s("div",Ge,[e("div",null,[i(q,{for:"name",value:"Team name(Type to search and press Enter)"}),i(M,{onKeyup:r[0]||(r[0]=G(O(n=>g(),["prevent"]),["enter"])),id:"name",type:"text",class:"mt-1 block w-full",modelValue:l.value,"onUpdate:modelValue":r[1]||(r[1]=n=>l.value=n),required:""},null,8,["modelValue"])]),l.value.length>0&&o.value.total>0?(a(),s("div",Le,[(a(!0),s(A,null,I(o.value.data,n=>(a(),s("div",Re,[e("button",{onClick:t=>w(n),class:"flex justify-start items-end"},[i(P,{team:n},null,8,["team"]),S(n)?(a(),s("span",Ze,"***Already added")):b("",!0)],8,Ye)]))),256)),e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[2]||(r[2]=n=>C())}," Create a new team? ")])):b("",!0),l.value.length>0&&o.value.total===0?(a(),s("div",He,[e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[3]||(r[3]=n=>C())}," We could not find teams. Do you want to create a new team? ")])):b("",!0)]))}},Qe={class:"grid grid-cols-1 md:grid-cols-2 gap-0 md:gap-4"},Xe={class:"card"},et={class:"card-header flex justify-between items-center"},tt={class:"text-xs italic"},at={class:""},st={class:"flex justify-end"},nt={class:"flex justify-end"},it={key:0},ot={key:1},lt={key:0},dt={key:1},rt={class:"py-2"},ut={class:"font-bold"},mt={key:2},ct={key:0,class:"mb-8"},vt={class:"border-b py-1 flex justify-between items-end"},ft=["onClick"],_t={class:"flex justify-end items-center mt-4"},ht={class:"w-full lg:w-1/3"},pt={class:"card"},yt={class:"card-header"},xt={class:"text-xs italic"},gt={key:0,class:"mb-8"},wt={class:"border-b py-1 flex justify-between items-end"},$t=["onClick"],kt={class:"flex justify-end items-center mt-4"},bt={class:"w-full lg:w-1/3"},Ct={__name:"AdminTeamServiceTeamsComponent",props:{teamId:{required:!0,type:Number},teamName:{required:!0}},setup(x){const c=x,f=p(!1),_=p(!1),l=p({}),o=p({}),m=p({});W(()=>{T(),w()});function g(){f.value=!0}function C(){f.value=!1,_.value=!1,m.value={}}function T(n=1){axios.get("/admin/team-service-teams?cached=false&where[]=team_id,"+c.teamId+"&page="+n+"&relations=serviceTeam").then(t=>{l.value=t.data.data}).catch(t=>{console.log(t)})}function w(n=1){axios.get("/admin/team-service-teams?cached=false&where[]=service_team_id,"+c.teamId+"&page="+n+"&relations=team").then(t=>{o.value=t.data.data}).catch(t=>{console.log(t)})}function S(n){j.fire({title:"Are you sure you want to delete?",text:"This action cannot be undone. Please confirm if you wish to proceed.",icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:"Delete service team",showCancelButton:!0}).then(t=>{t.isConfirmed&&axios.delete("/admin/team-service-teams/"+n).then(v=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{T(),w()})}).catch(v=>{console.log(v)})})}function u(){let n={team_id:c.teamId,service_team_id:m.value.id};axios.post("/admin/team-service-teams",n).then(t=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{m.value={},_.value=!1,T(),w()})}).catch(t=>{console.log(t)})}function r(n){m.value=n,f.value=!1,_.value=!0}return(n,t)=>(a(),s("div",Qe,[e("div",Xe,[e("div",et,[e("div",null,[t[3]||(t[3]=e("div",null," Service teams ",-1)),e("div",tt," These teams may distribute vouchers for redemption at "+N(x.teamName),1)]),e("div",at,[e("div",st,[e("div",nt,[!f.value&&!_.value?(a(),s("div",it,[i(B,{onClick:t[0]||(t[0]=v=>g()),class:"ms-4"},{default:k(()=>t[4]||(t[4]=[$(" Add Service Team ")])),_:1})])):(a(),s("div",ot,[i(B,{onClick:t[1]||(t[1]=v=>C()),class:"ms-4"},{default:k(()=>t[5]||(t[5]=[$(" Cancel ")])),_:1})]))])])])]),f.value?(a(),s("div",lt,[t[6]||(t[6]=e("div",{class:"py-2"},"Select service team...",-1)),i(Je,{teamId:x.teamId,onTeamSelected:r},null,8,["teamId"])])):_.value?(a(),s("div",dt,[e("div",rt,[t[7]||(t[7]=$("Adding ")),e("span",ut,N(m.value.name),1),t[8]||(t[8]=$(" as service team?"))]),i(B,{onClick:t[2]||(t[2]=v=>u()),class:""},{default:k(()=>t[9]||(t[9]=[$(" Add ")])),_:1})])):(a(),s("div",mt,[l.value.data&&l.value.data.length?(a(),s("div",ct,[(a(!0),s(A,null,I(l.value.data,v=>(a(),s("div",vt,[i(V(D),{href:n.route("admin.team",v.service_team_id)},{default:k(()=>[i(P,{team:v.service_team},null,8,["team"])]),_:2},1032,["href"]),e("button",{onClick:y=>S(v.id),class:"text-xs text-red-500 flex items-center"},t[10]||(t[10]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"size-3"},[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1),$(" Delete ")]),8,ft)]))),256)),e("div",_t,[e("div",ht,[i(U,{onSetDataPage:T,"pagination-data":l.value},null,8,["pagination-data"])])])])):b("",!0)]))]),e("div",pt,[e("div",yt,[e("div",null," Teams "+N(x.teamName)+" is service for ",1),e("div",xt,N(x.teamName)+" may distribute vouchers to these teams ",1)]),o.value.data&&o.value.data.length?(a(),s("div",gt,[(a(!0),s(A,null,I(o.value.data,v=>(a(),s("div",wt,[i(V(D),{href:n.route("admin.team",v.team_id)},{default:k(()=>[i(P,{team:v.team},null,8,["team"])]),_:2},1032,["href"]),e("button",{onClick:y=>S(v.id),class:"text-xs text-red-500 flex items-center"},t[11]||(t[11]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",class:"size-3"},[e("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1),$(" Delete ")]),8,$t)]))),256)),e("div",kt,[e("div",bt,[i(U,{onSetDataPage:w,"pagination-data":o.value},null,8,["pagination-data"])])])])):b("",!0)])]))}},Tt={key:0},St={class:"flex items-center justify-end mt-4"},Nt={key:1},jt={key:0,class:"mt-4"},At=["onClick"],It={key:1},Vt={__name:"AdminUserSelectComponent",props:{teamId:{required:!0,type:Number}},emits:["createNewTeamUser"],setup(x,{emit:c}){const f=x,_=p(!1),l=p({name:"",email:"",current_team_id:null}),o=p(""),m=p({}),g=c;function C(){l.value.current_team_id=f.teamId,axios.post("admin/users",l.value).then(u=>{let r=u.data.data.id;S(r),l.value={name:"",email:"",current_team_id:null},_.value=!1}).catch(u=>{console.log(u)})}function T(){axios.get("/admin/users?where[]=name,like,*"+o.value+"*&limit=100").then(u=>{m.value=u.data.data}).catch(u=>{console.log(u)})}function w(){_.value=!0,m.value={},l.value.name=o.value}function S(u){g("createNewTeamUser",u),o.value="",m.value={}}return(u,r)=>_.value?(a(),s("div",Tt,[e("div",null,[i(q,{for:"name",value:"Name"}),i(M,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:l.value.name,"onUpdate:modelValue":r[0]||(r[0]=n=>l.value.name=n),required:""},null,8,["modelValue"])]),e("div",null,[i(q,{for:"email",value:"Email"}),i(M,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:l.value.email,"onUpdate:modelValue":r[1]||(r[1]=n=>l.value.email=n),required:""},null,8,["modelValue"])]),e("div",St,[i(B,{onClick:r[2]||(r[2]=O(n=>C(),["prevent"])),class:R(["ms-4",{"opacity-25":!l.value.name||!l.value.email}]),disabled:!l.value.name||!l.value.email},{default:k(()=>r[7]||(r[7]=[$(" Submit ")])),_:1},8,["class","disabled"])])])):(a(),s("div",Nt,[e("div",null,[i(q,{for:"name",value:"Find A User"}),i(M,{onKeyup:r[3]||(r[3]=n=>T()),modelValue:o.value,"onUpdate:modelValue":r[4]||(r[4]=n=>o.value=n),class:"mt-1 block w-full",placeholder:"Search by name..",type:"text"},null,8,["modelValue"])]),o.value.length>0&&m.value.total>0?(a(),s("div",jt,[(a(!0),s(A,null,I(m.value.data,n=>(a(),s("a",{href:"#",onClick:t=>S(n.id),class:"border-b py-1",tabindex:"0"},[i(X,{user:n},null,8,["user"])],8,At))),256)),e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[5]||(r[5]=n=>w())}," Create a new user? ")])):b("",!0),o.value.length>0&&m.value.total===0?(a(),s("div",It,[e("div",{class:"text-red-500 text-sm mt-4 cursor-pointer hover:underline",onClick:r[6]||(r[6]=n=>w())}," We could not find users. Do you want to create a new user? ")])):b("",!0)]))}},Bt={class:"card"},Dt={class:"card-header flex justify-between"},Mt={class:"grid gap-4 grid-cols-6 mt-8"},Ut={key:0},Pt={key:1},qt=["src"],zt={class:"flex justify-end items-center mt-4"},Ot={class:"w-full lg:w-1/3"},Ft={__name:"AdminTeamVoucherTemplatesList",props:{team:{type:Object,required:!0}},setup(x){const c=x,f=p({});function _(l=1){var o;axios.get("/admin/team-voucher-templates?cached=false&where[]=team_id,"+((o=c.team)==null?void 0:o.id)+"&page="+l).then(m=>{f.value=m.data.data}).catch(m=>{j.fire({icon:"error",title:"Oops!",text:m.response.data.message})})}return _(),(l,o)=>(a(),s("div",Bt,[e("div",Dt,[o[1]||(o[1]=e("div",null," Voucher Templates ",-1)),e("div",null,[i(V(D),{href:"/admin/team-voucher-templates/new?teamId="+x.team.id},{default:k(()=>[i(B,{class:""},{default:k(()=>o[0]||(o[0]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 4.5v15m7.5-7.5h-15"})],-1),$(" New Template ")])),_:1})]),_:1},8,["href"])])]),e("div",Mt,[(a(!0),s(A,null,I(f.value.data,m=>(a(),s("div",null,[m.archived_at?(a(),s("div",Ut,o[2]||(o[2]=[e("div",{class:"border-2 text-center rounded-lg border-dashed p-2 border-red-300 text-red-300 font-bold"}," Archived ",-1)]))):(a(),s("div",Pt,o[3]||(o[3]=[e("div",{class:"border-2 text-center rounded-lg border-dashed p-2 border-green-300 text-green-300 font-bold"}," Active ",-1)]))),i(V(D),{href:"/admin/team-voucher-template/"+m.id},{default:k(()=>[e("img",{src:m.example_template_image_url,alt:"",class:"border rounded"},null,8,qt)]),_:2},1032,["href"])]))),256))]),e("div",zt,[e("div",Ot,[i(U,{onSetDataPage:_,"pagination-data":f.value},null,8,["pagination-data"])])])]))}},Wt={class:"card"},Et={class:""},Kt={class:"text-gray-300 pr-1"},Gt={class:"card"},Lt={class:"flex justify-start items-center mt-4"},Rt={for:"name",class:"w-full font-bold"},Yt={class:"flex justify-start items-center mt-4"},Zt={for:"country",class:"w-full font-bold"},Ht=["value"],Jt={key:0,class:"mt-8 flex justify-end"},Qt={class:"card"},Xt={key:0},ea={class:"flex justify-between items-center hover:opacity-75"},ta={class:"flex justify-end items-center"},aa={key:0,class:"pr-2 text-xs"},sa={class:"flex"},na={key:0},ia={key:1,class:"px-2"},oa={key:2,class:"px-2"},la={class:"flex justify-end items-center mt-4"},da={class:"w-full lg:w-1/3"},ra={class:"card"},ua={key:0,class:"container mx-auto"},ma={key:1,class:"container mx-auto"},ca={class:"card"},va={class:"card"},fa={class:"card"},_a={class:"card"},ha={key:2,class:"container mx-auto"},Ua={__name:"Team",props:{id:{required:!0,type:Number}},setup(x){F.extend(ae),F.extend(se);const c=x,f=p(!1),_=p(10),l=p(""),o=p(""),m=p({}),g=p({name:"",country_id:""}),C=p({});W(()=>{S(),u(),w()});function T(y){let d={user_id:y,team_id:c.id};axios.post("/admin/team-users",d).then(h=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{u()})}).catch(h=>{console.log(h)})}function w(){axios.get("/countries?limit=300").then(y=>{m.value=y.data.data}).catch(y=>{console.log(y)})}function S(){axios.get("/admin/teams/"+c.id+"?cached=false").then(y=>{g.value=y.data.data,o.value=g.value.country_id,l.value=g.value.name}).catch(y=>{console.log(y)})}function u(y=1){axios.get("/admin/team-users?cached=false&page="+y+"&where[]=team_id,"+c.id+"&relations=user&limit="+_.value+"&orderBy=id,desc").then(d=>{C.value=d.data.data}).catch(d=>{console.log(d)})}function r(y){f.value=!0;let d={send_invite_email:!0};axios.put("/admin/team-users/"+y.id,d).then(h=>{u(),f.value=!1}).catch(h=>{console.log(h),f.value=!1})}function n(y){j.fire({icon:"warning",title:"Are you sure?",text:"This will remove this user from this team. You can always add them back.",showConfirmButton:!0,showCancelButton:!0}).then(d=>{d.isConfirmed&&axios.delete("/admin/team-users/"+y.id).then(h=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{u()})}).catch(h=>{console.log(h)})})}function t(y){u(y)}function v(){let y={name:l.value,country_id:o.value};g.value.country_id!==o.value?j.fire({title:"Wait...",icon:"warning",text:"It looks like you're changing this teams' country. Please be aware this will NOT update the selected currency for any of their existing voucher sets.",confirmButtonText:"I get it. Proceed.",cancelButtonText:"Go back",showCancelButton:!0,showConfirmButton:!0,allowOutsideClick:!1}).then(d=>{d.isDismissed||d.isConfirmed&&axios.put("/admin/teams/"+c.id,y).then(h=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{S()})}).catch(h=>{console.log(h)})}):axios.put("/admin/teams/"+c.id,y).then(d=>{j.fire({title:"Success!",icon:"success",timer:1e3}).then(()=>{S()})}).catch(d=>{console.log(d)})}return(y,d)=>(a(),s(A,null,[i(V(Y),{title:"Team"}),i(J,null,{header:k(()=>[i(Q)]),default:k(()=>[e("div",Wt,[e("div",Et,[e("h2",null,[e("span",Kt,"#"+N(c.id),1),$(" "+N(g.value.name),1)])])]),e("div",Gt,[d[6]||(d[6]=e("div",{class:"card-header"}," Team details ",-1)),e("div",Lt,[e("label",Rt,[d[3]||(d[3]=$(" Team Name: ")),i(M,{id:"name",type:"text",class:"mt-1 block w-full font-normal",modelValue:l.value,"onUpdate:modelValue":d[0]||(d[0]=h=>l.value=h)},null,8,["modelValue"])])]),e("div",Yt,[e("label",Zt,[d[4]||(d[4]=$(" Country: ")),Z(e("select",{id:"country",class:"mt-1 block w-full font-normal","onUpdate:modelValue":d[1]||(d[1]=h=>o.value=h)},[(a(!0),s(A,null,I(m.value.data,h=>(a(),s("option",{value:h.id,key:h.id},N(h.name),9,Ht))),128))],512),[[H,o.value]])])]),l.value!==g.value.name||o.value!==g.value.country_id?(a(),s("div",Jt,[i(B,{onClick:d[2]||(d[2]=h=>v())},{default:k(()=>d[5]||(d[5]=[$("Update")])),_:1})])):b("",!0)]),e("div",Qt,[i(te,{loading:f.value},null,8,["loading"]),d[9]||(d[9]=e("div",{class:"card-header"}," Team members ",-1)),C.value.data&&C.value.data.length>0?(a(),s("div",Xt,[(a(!0),s(A,null,I(C.value.data,h=>(a(),s("div",ea,[i(V(D),{href:y.route("admin.user",h.user_id),class:"border-b p-2 mr-2 flex-grow flex justify-between items-center hover:no-underline"},{default:k(()=>{var z;return[e("div",null,N((z=h.user)==null?void 0:z.name),1),e("div",ta,[h.invitation_sent_at?(a(),s("div",aa," Invited: "+N(V(F).utc(h.invitation_sent_at).fromNow()),1)):b("",!0),d[7]||(d[7]=e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1))])]}),_:2},1032,["href"]),e("div",sa,[i(ee,{onClick:z=>r(h),class:"mr-2"},{default:k(()=>[e("div",null,[h.invitation_sent_at?(a(),s("div",na,"Resend Invite")):f.value?(a(),s("div",ia,"Sending..")):(a(),s("div",oa,"Send Invite"))])]),_:2},1032,["onClick"]),i(ne,{onClick:O(z=>n(h),["prevent"])},{default:k(()=>d[8]||(d[8]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-3 font-bold"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})],-1)])),_:2},1032,["onClick"])])]))),256))])):b("",!0),e("div",la,[e("div",da,[i(U,{onSetDataPage:t,"pagination-data":C.value},null,8,["pagination-data"])])])]),e("div",ra,[d[10]||(d[10]=e("div",{class:"card-header"}," Add user to team ",-1)),i(Vt,{teamId:c.id,onCreateNewTeamUser:T},null,8,["teamId"])]),g.value.id?(a(),s("div",ua,[i(Ee,{team:g.value},null,8,["team"])])):b("",!0),g.value.id?(a(),s("div",ma,[i(Ct,{teamId:c.id,teamName:g.value.name},null,8,["teamId","teamName"])])):b("",!0),e("div",ca,[d[11]||(d[11]=e("div",{class:"card-header"}," Voucher sets created by team ",-1)),i(E,{"team-id":c.id,"filter-voucher-sets":"created_by_team_id"},null,8,["team-id"])]),e("div",va,[d[12]||(d[12]=e("div",{class:"card-header"}," Voucher sets allocated to team ",-1)),i(E,{"team-id":c.id,"filter-voucher-sets":"allocated_to_service_team_id"},null,8,["team-id"])]),e("div",fa,[d[13]||(d[13]=e("div",{class:"card-header"}," Vouchers created by team ",-1)),i(K,{"team-id":c.id,"filter-vouchers":"created_by_team_id"},null,8,["team-id"])]),e("div",_a,[d[14]||(d[14]=e("div",{class:"card-header"}," Vouchers allocated to team ",-1)),i(K,{"team-id":c.id,"filter-vouchers":"allocated_to_service_team_id"},null,8,["team-id"])]),g.value.id?(a(),s("div",ha,[i(Ft,{team:g.value},null,8,["team"])])):b("",!0),d[15]||(d[15]=e("div",{class:"p-32"},null,-1))]),_:1})],64))}};export{Ua as default}; diff --git a/public/build/assets/TeamNew-2IygTToe.js b/public/build/assets/TeamNew-2IygTToe.js new file mode 100644 index 00000000..b14d21b6 --- /dev/null +++ b/public/build/assets/TeamNew-2IygTToe.js @@ -0,0 +1 @@ +import{_ as o}from"./AuthenticatedLayout-DuLcXyKk.js";import{c as m,a as e,u as s,w as t,F as i,b as n,Z as _,d as c}from"./app-DolNWhzr.js";import{_ as d}from"./AdminTopNavigation-Bl9ElpaD.js";import{_ as f}from"./AdminTeamCreateComponent--ZqK8uaD.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./TextInput-C41DJZHw.js";const p={class:"card"},k={__name:"TeamNew",setup(l){function r(a){window.location.href=route("admin.team",a.id)}return(a,u)=>(n(),m(i,null,[e(s(_),{title:"Create Team"}),e(o,null,{header:t(()=>[e(d)]),default:t(()=>[c("div",p,[e(f,{onTeamCreated:r})])]),_:1})],64))}};export{k as default}; diff --git a/public/build/assets/TeamNew-3N8ET57c.js b/public/build/assets/TeamNew-3N8ET57c.js deleted file mode 100644 index f0d6d8a5..00000000 --- a/public/build/assets/TeamNew-3N8ET57c.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./AuthenticatedLayout-BSBk4Waj.js";import{c as m,a as e,u as s,w as t,F as i,b as n,Z as _,d as c}from"./app-zpP4mvhd.js";import{_ as d}from"./AdminTopNavigation-CKquTKkz.js";import{_ as f}from"./AdminTeamCreateComponent-C5RZWvlc.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-6L6tESKC.js";import"./TextInput-BGBBA2nL.js";const p={class:"card"},k={__name:"TeamNew",setup(l){function r(a){window.location.href=route("admin.team",a.id)}return(a,u)=>(n(),m(i,null,[e(s(_),{title:"Create Team"}),e(o,null,{header:t(()=>[e(d)]),default:t(()=>[c("div",p,[e(f,{onTeamCreated:r})])]),_:1})],64))}};export{k as default}; diff --git a/public/build/assets/Teams-Bp92R9wt.js b/public/build/assets/Teams-BklxzQRZ.js similarity index 80% rename from public/build/assets/Teams-Bp92R9wt.js rename to public/build/assets/Teams-BklxzQRZ.js index 9d6e8aba..02e14cca 100644 --- a/public/build/assets/Teams-Bp92R9wt.js +++ b/public/build/assets/Teams-BklxzQRZ.js @@ -1 +1 @@ -import{_ as g}from"./AuthenticatedLayout-BSBk4Waj.js";import{r as m,o as w,c as l,a as s,u as d,w as n,F as u,b as i,Z as x,d as e,i as f,e as _,g as y,f as k,h as B,t as p}from"./app-zpP4mvhd.js";import{_ as P}from"./AdminTopNavigation-CKquTKkz.js";import{P as b}from"./PrimaryButton-6L6tESKC.js";import{P as C}from"./PaginatorComponent-Dk-0OsjZ.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SecondaryButton-Dml8iKd5.js";const N={class:"card"},T={class:"card"},V={key:0},j={class:"border-b flex justify-between items-center py-2 sm:p-2"},D={class:"font-bold"},F={class:"text-xs opacity-25"},S={class:"flex justify-end items-center mt-4"},$={class:"w-full lg:w-1/3"},I={__name:"Teams",setup(z){const h=m(20),o=m({});w(()=>{c()});function c(a=1){axios.get("/admin/teams?cached=false&page="+a+"&limit="+h.value+"&orderBy=id,desc").then(t=>{o.value=t.data.data}).catch(t=>{console.log(t)})}function v(a){c(a)}return(a,t)=>(i(),l(u,null,[s(d(x),{title:"Teams"}),s(g,null,{header:n(()=>[s(P)]),default:n(()=>[e("div",N,[s(b,null,{default:n(()=>[s(d(f),{href:a.route("admin.teams.new")},{default:n(()=>t[0]||(t[0]=[_(" Create New Team ")])),_:1},8,["href"])]),_:1})]),e("div",T,[o.value.data&&o.value.data.length?(i(),l("div",V,[(i(!0),l(u,null,y(o.value.data,r=>(i(),B(d(f),{href:a.route("admin.team",r.id),class:"hover:no-underline hover:opacity-75"},{default:n(()=>[e("div",j,[e("div",null,[e("div",D,[e("span",F," #"+p(r.id),1),_(" "+p(r.name),1)])]),t[1]||(t[1]=e("div",null,[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256))])):k("",!0),e("div",S,[e("div",$,[s(C,{onSetDataPage:v,"pagination-data":o.value},null,8,["pagination-data"])])])])]),_:1})],64))}};export{I as default}; +import{_ as g}from"./AuthenticatedLayout-DuLcXyKk.js";import{r as m,o as w,c as l,a as s,u as d,w as n,F as u,b as i,Z as x,d as e,i as f,e as _,g as y,f as k,h as B,t as p}from"./app-DolNWhzr.js";import{_ as P}from"./AdminTopNavigation-Bl9ElpaD.js";import{P as b}from"./PrimaryButton-BtqGl7rR.js";import{P as C}from"./PaginatorComponent-DpqX95xS.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./SecondaryButton-DL_I_H3U.js";const N={class:"card"},T={class:"card"},V={key:0},j={class:"border-b flex justify-between items-center py-2 sm:p-2"},D={class:"font-bold"},F={class:"text-xs opacity-25"},S={class:"flex justify-end items-center mt-4"},$={class:"w-full lg:w-1/3"},I={__name:"Teams",setup(z){const h=m(20),o=m({});w(()=>{c()});function c(a=1){axios.get("/admin/teams?cached=false&page="+a+"&limit="+h.value+"&orderBy=id,desc").then(t=>{o.value=t.data.data}).catch(t=>{console.log(t)})}function v(a){c(a)}return(a,t)=>(i(),l(u,null,[s(d(x),{title:"Teams"}),s(g,null,{header:n(()=>[s(P)]),default:n(()=>[e("div",N,[s(b,null,{default:n(()=>[s(d(f),{href:a.route("admin.teams.new")},{default:n(()=>t[0]||(t[0]=[_(" Create New Team ")])),_:1},8,["href"])]),_:1})]),e("div",T,[o.value.data&&o.value.data.length?(i(),l("div",V,[(i(!0),l(u,null,y(o.value.data,r=>(i(),B(d(f),{href:a.route("admin.team",r.id),class:"hover:no-underline hover:opacity-75"},{default:n(()=>[e("div",j,[e("div",null,[e("div",D,[e("span",F," #"+p(r.id),1),_(" "+p(r.name),1)])]),t[1]||(t[1]=e("div",null,[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256))])):k("",!0),e("div",S,[e("div",$,[s(C,{onSetDataPage:v,"pagination-data":o.value},null,8,["pagination-data"])])])])]),_:1})],64))}};export{I as default}; diff --git a/public/build/assets/TextInput-BGBBA2nL.js b/public/build/assets/TextInput-C41DJZHw.js similarity index 78% rename from public/build/assets/TextInput-BGBBA2nL.js rename to public/build/assets/TextInput-C41DJZHw.js index 352b3750..49b29acb 100644 --- a/public/build/assets/TextInput-BGBBA2nL.js +++ b/public/build/assets/TextInput-C41DJZHw.js @@ -1 +1 @@ -import{L as a,r as l,o as n,l as d,q as i,b as c,c as m}from"./app-zpP4mvhd.js";const v={__name:"TextInput",props:{modelValue:{type:String,required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(s,{expose:t}){const o=a(s,"modelValue"),e=l(null);return n(()=>{e.value.hasAttribute("autofocus")&&e.value.focus()}),t({focus:()=>e.value.focus()}),(p,u)=>d((c(),m("input",{class:"border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm","onUpdate:modelValue":u[0]||(u[0]=r=>o.value=r),ref_key:"input",ref:e},null,512)),[[i,o.value]])}};export{v as _}; +import{K as a,r as l,o as n,l as d,q as i,b as c,c as m}from"./app-DolNWhzr.js";const v={__name:"TextInput",props:{modelValue:{type:String,required:!0},modelModifiers:{}},emits:["update:modelValue"],setup(s,{expose:t}){const o=a(s,"modelValue"),e=l(null);return n(()=>{e.value.hasAttribute("autofocus")&&e.value.focus()}),t({focus:()=>e.value.focus()}),(p,u)=>d((c(),m("input",{class:"border-gray-300 focus:border-indigo-500 focus:ring-indigo-500 rounded-md shadow-sm","onUpdate:modelValue":u[0]||(u[0]=r=>o.value=r),ref_key:"input",ref:e},null,512)),[[i,o.value]])}};export{v as _}; diff --git a/public/build/assets/UpdatePasswordForm-DIoNO8Y2.js b/public/build/assets/UpdatePasswordForm-C370omcu.js similarity index 87% rename from public/build/assets/UpdatePasswordForm-DIoNO8Y2.js rename to public/build/assets/UpdatePasswordForm-C370omcu.js index 6ed3e2a3..fda37d1a 100644 --- a/public/build/assets/UpdatePasswordForm-DIoNO8Y2.js +++ b/public/build/assets/UpdatePasswordForm-C370omcu.js @@ -1 +1 @@ -import{r as m,T as _,c as i,d as a,a as e,u as r,w as c,J as v,k as y,b as w,e as g,f as V}from"./app-zpP4mvhd.js";import{_ as l}from"./InputError-CnwioU3j.js";import{_ as n}from"./InputLabel-D6wY3cNc.js";import{P as x}from"./PrimaryButton-6L6tESKC.js";import{_ as d}from"./TextInput-BGBBA2nL.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const P={class:"flex items-center gap-4"},k={key:0,class:"text-sm text-gray-600"},T={__name:"UpdatePasswordForm",setup(b){const u=m(null),p=m(null),s=_({current_password:"",password:"",password_confirmation:""}),f=()=>{s.put(route("password.update"),{preserveScroll:!0,onSuccess:()=>s.reset(),onError:()=>{s.errors.password&&(s.reset("password","password_confirmation"),u.value.focus()),s.errors.current_password&&(s.reset("current_password"),p.value.focus())}})};return(S,o)=>(w(),i("section",null,[o[4]||(o[4]=a("header",null,[a("h2",{class:"text-lg font-medium text-gray-900"},"Update Password"),a("p",{class:"mt-1 text-sm text-gray-600"}," Ensure your account is using a long, random password to stay secure. ")],-1)),a("form",{onSubmit:y(f,["prevent"]),class:"mt-6 space-y-6"},[a("div",null,[e(n,{for:"current_password",value:"Current Password"}),e(d,{id:"current_password",ref_key:"currentPasswordInput",ref:p,modelValue:r(s).current_password,"onUpdate:modelValue":o[0]||(o[0]=t=>r(s).current_password=t),type:"password",class:"mt-1 block w-full",autocomplete:"current-password"},null,8,["modelValue"]),e(l,{message:r(s).errors.current_password,class:"mt-2"},null,8,["message"])]),a("div",null,[e(n,{for:"password",value:"New Password"}),e(d,{id:"password",ref_key:"passwordInput",ref:u,modelValue:r(s).password,"onUpdate:modelValue":o[1]||(o[1]=t=>r(s).password=t),type:"password",class:"mt-1 block w-full",autocomplete:"new-password"},null,8,["modelValue"]),e(l,{message:r(s).errors.password,class:"mt-2"},null,8,["message"])]),a("div",null,[e(n,{for:"password_confirmation",value:"Confirm Password"}),e(d,{id:"password_confirmation",modelValue:r(s).password_confirmation,"onUpdate:modelValue":o[2]||(o[2]=t=>r(s).password_confirmation=t),type:"password",class:"mt-1 block w-full",autocomplete:"new-password"},null,8,["modelValue"]),e(l,{message:r(s).errors.password_confirmation,class:"mt-2"},null,8,["message"])]),a("div",P,[e(x,{disabled:r(s).processing},{default:c(()=>o[3]||(o[3]=[g("Save")])),_:1},8,["disabled"]),e(v,{"enter-active-class":"transition ease-in-out","enter-from-class":"opacity-0","leave-active-class":"transition ease-in-out","leave-to-class":"opacity-0"},{default:c(()=>[r(s).recentlySuccessful?(w(),i("p",k,"Saved.")):V("",!0)]),_:1})])],32)]))}};export{T as default}; +import{r as m,T as _,c as i,d as a,a as e,u as r,w as c,I as v,k as y,b as w,e as g,f as V}from"./app-DolNWhzr.js";import{_ as l}from"./InputError-CTOWZzBt.js";import{_ as n}from"./InputLabel-P7ZTY_pn.js";import{P as x}from"./PrimaryButton-BtqGl7rR.js";import{_ as d}from"./TextInput-C41DJZHw.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const P={class:"flex items-center gap-4"},k={key:0,class:"text-sm text-gray-600"},T={__name:"UpdatePasswordForm",setup(b){const u=m(null),p=m(null),s=_({current_password:"",password:"",password_confirmation:""}),f=()=>{s.put(route("password.update"),{preserveScroll:!0,onSuccess:()=>s.reset(),onError:()=>{s.errors.password&&(s.reset("password","password_confirmation"),u.value.focus()),s.errors.current_password&&(s.reset("current_password"),p.value.focus())}})};return(S,o)=>(w(),i("section",null,[o[4]||(o[4]=a("header",null,[a("h2",{class:"text-lg font-medium text-gray-900"},"Update Password"),a("p",{class:"mt-1 text-sm text-gray-600"}," Ensure your account is using a long, random password to stay secure. ")],-1)),a("form",{onSubmit:y(f,["prevent"]),class:"mt-6 space-y-6"},[a("div",null,[e(n,{for:"current_password",value:"Current Password"}),e(d,{id:"current_password",ref_key:"currentPasswordInput",ref:p,modelValue:r(s).current_password,"onUpdate:modelValue":o[0]||(o[0]=t=>r(s).current_password=t),type:"password",class:"mt-1 block w-full",autocomplete:"current-password"},null,8,["modelValue"]),e(l,{message:r(s).errors.current_password,class:"mt-2"},null,8,["message"])]),a("div",null,[e(n,{for:"password",value:"New Password"}),e(d,{id:"password",ref_key:"passwordInput",ref:u,modelValue:r(s).password,"onUpdate:modelValue":o[1]||(o[1]=t=>r(s).password=t),type:"password",class:"mt-1 block w-full",autocomplete:"new-password"},null,8,["modelValue"]),e(l,{message:r(s).errors.password,class:"mt-2"},null,8,["message"])]),a("div",null,[e(n,{for:"password_confirmation",value:"Confirm Password"}),e(d,{id:"password_confirmation",modelValue:r(s).password_confirmation,"onUpdate:modelValue":o[2]||(o[2]=t=>r(s).password_confirmation=t),type:"password",class:"mt-1 block w-full",autocomplete:"new-password"},null,8,["modelValue"]),e(l,{message:r(s).errors.password_confirmation,class:"mt-2"},null,8,["message"])]),a("div",P,[e(x,{disabled:r(s).processing},{default:c(()=>o[3]||(o[3]=[g("Save")])),_:1},8,["disabled"]),e(v,{"enter-active-class":"transition ease-in-out","enter-from-class":"opacity-0","leave-active-class":"transition ease-in-out","leave-to-class":"opacity-0"},{default:c(()=>[r(s).recentlySuccessful?(w(),i("p",k,"Saved.")):V("",!0)]),_:1})])],32)]))}};export{T as default}; diff --git a/public/build/assets/UpdateProfileInformationForm-CuiKvqK9.js b/public/build/assets/UpdateProfileInformationForm-CxNRXhbu.js similarity index 90% rename from public/build/assets/UpdateProfileInformationForm-CuiKvqK9.js rename to public/build/assets/UpdateProfileInformationForm-CxNRXhbu.js index 68a5900b..44dd99a9 100644 --- a/public/build/assets/UpdateProfileInformationForm-CuiKvqK9.js +++ b/public/build/assets/UpdateProfileInformationForm-CxNRXhbu.js @@ -1 +1 @@ -import{Q as g,T as x,c as l,d as a,a as o,u as t,e as n,w as m,l as V,I as _,f as c,J as k,k as b,b as u,i as w}from"./app-zpP4mvhd.js";import{_ as p}from"./InputError-CnwioU3j.js";import{_ as v}from"./InputLabel-D6wY3cNc.js";import{P as h}from"./PrimaryButton-6L6tESKC.js";import{_ as y}from"./TextInput-BGBBA2nL.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const S={key:0},B={class:"text-sm mt-2 text-gray-800"},N={class:"mt-2 font-medium text-sm text-green-600"},E={class:"flex items-center gap-4"},P={key:0,class:"text-sm text-gray-600"},A={__name:"UpdateProfileInformationForm",props:{mustVerifyEmail:{type:Boolean},status:{type:String}},setup(d){const r=g().props.auth.user,s=x({name:r.name,email:r.email});return(f,e)=>(u(),l("section",null,[e[6]||(e[6]=a("header",null,[a("h2",{class:"text-lg font-medium text-gray-900"},"Profile Information"),a("p",{class:"mt-1 text-sm text-gray-600"}," Update your account's profile information and email address. ")],-1)),a("form",{onSubmit:e[2]||(e[2]=b(i=>t(s).patch(f.route("profile.update")),["prevent"])),class:"mt-6 space-y-6"},[a("div",null,[o(v,{for:"name",value:"Name"}),o(y,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:t(s).name,"onUpdate:modelValue":e[0]||(e[0]=i=>t(s).name=i),required:"",autofocus:"",autocomplete:"name"},null,8,["modelValue"]),o(p,{class:"mt-2",message:t(s).errors.name},null,8,["message"])]),a("div",null,[o(v,{for:"email",value:"Email"}),o(y,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:t(s).email,"onUpdate:modelValue":e[1]||(e[1]=i=>t(s).email=i),required:"",autocomplete:"username"},null,8,["modelValue"]),o(p,{class:"mt-2",message:t(s).errors.email},null,8,["message"])]),d.mustVerifyEmail&&t(r).email_verified_at===null?(u(),l("div",S,[a("p",B,[e[4]||(e[4]=n(" Your email address is unverified. ")),o(t(w),{href:f.route("verification.send"),method:"post",as:"button",class:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:m(()=>e[3]||(e[3]=[n(" Click here to re-send the verification email. ")])),_:1},8,["href"])]),V(a("div",N," A new verification link has been sent to your email address. ",512),[[_,d.status==="verification-link-sent"]])])):c("",!0),a("div",E,[o(h,{disabled:t(s).processing},{default:m(()=>e[5]||(e[5]=[n("Save")])),_:1},8,["disabled"]),o(k,{"enter-active-class":"transition ease-in-out","enter-from-class":"opacity-0","leave-active-class":"transition ease-in-out","leave-to-class":"opacity-0"},{default:m(()=>[t(s).recentlySuccessful?(u(),l("p",P,"Saved.")):c("",!0)]),_:1})])],32)]))}};export{A as default}; +import{Q as g,T as x,c as l,d as a,a as o,u as t,e as n,w as m,l as V,H as _,f as c,I as k,k as b,b as u,i as w}from"./app-DolNWhzr.js";import{_ as p}from"./InputError-CTOWZzBt.js";import{_ as v}from"./InputLabel-P7ZTY_pn.js";import{P as h}from"./PrimaryButton-BtqGl7rR.js";import{_ as y}from"./TextInput-C41DJZHw.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const S={key:0},B={class:"text-sm mt-2 text-gray-800"},N={class:"mt-2 font-medium text-sm text-green-600"},E={class:"flex items-center gap-4"},P={key:0,class:"text-sm text-gray-600"},A={__name:"UpdateProfileInformationForm",props:{mustVerifyEmail:{type:Boolean},status:{type:String}},setup(d){const r=g().props.auth.user,s=x({name:r.name,email:r.email});return(f,e)=>(u(),l("section",null,[e[6]||(e[6]=a("header",null,[a("h2",{class:"text-lg font-medium text-gray-900"},"Profile Information"),a("p",{class:"mt-1 text-sm text-gray-600"}," Update your account's profile information and email address. ")],-1)),a("form",{onSubmit:e[2]||(e[2]=b(i=>t(s).patch(f.route("profile.update")),["prevent"])),class:"mt-6 space-y-6"},[a("div",null,[o(v,{for:"name",value:"Name"}),o(y,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:t(s).name,"onUpdate:modelValue":e[0]||(e[0]=i=>t(s).name=i),required:"",autofocus:"",autocomplete:"name"},null,8,["modelValue"]),o(p,{class:"mt-2",message:t(s).errors.name},null,8,["message"])]),a("div",null,[o(v,{for:"email",value:"Email"}),o(y,{id:"email",type:"email",class:"mt-1 block w-full",modelValue:t(s).email,"onUpdate:modelValue":e[1]||(e[1]=i=>t(s).email=i),required:"",autocomplete:"username"},null,8,["modelValue"]),o(p,{class:"mt-2",message:t(s).errors.email},null,8,["message"])]),d.mustVerifyEmail&&t(r).email_verified_at===null?(u(),l("div",S,[a("p",B,[e[4]||(e[4]=n(" Your email address is unverified. ")),o(t(w),{href:f.route("verification.send"),method:"post",as:"button",class:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:m(()=>e[3]||(e[3]=[n(" Click here to re-send the verification email. ")])),_:1},8,["href"])]),V(a("div",N," A new verification link has been sent to your email address. ",512),[[_,d.status==="verification-link-sent"]])])):c("",!0),a("div",E,[o(h,{disabled:t(s).processing},{default:m(()=>e[5]||(e[5]=[n("Save")])),_:1},8,["disabled"]),o(k,{"enter-active-class":"transition ease-in-out","enter-from-class":"opacity-0","leave-active-class":"transition ease-in-out","leave-to-class":"opacity-0"},{default:m(()=>[t(s).recentlySuccessful?(u(),l("p",P,"Saved.")):c("",!0)]),_:1})])],32)]))}};export{A as default}; diff --git a/public/build/assets/User-CbxmEhwT.js b/public/build/assets/User-C_zeNGnt.js similarity index 92% rename from public/build/assets/User-CbxmEhwT.js rename to public/build/assets/User-C_zeNGnt.js index 9b02364f..030899c8 100644 --- a/public/build/assets/User-CbxmEhwT.js +++ b/public/build/assets/User-C_zeNGnt.js @@ -1 +1 @@ -import{r as b,Q as T,o as O,c as l,a as o,u as v,w as r,F as p,b as a,Z as Q,d as t,t as u,i as y,e as f,f as _,g as h,l as S,m as U,k as z,n as $,h as E}from"./app-zpP4mvhd.js";import{_ as W,S as x}from"./AuthenticatedLayout-BSBk4Waj.js";import{_ as Y}from"./AdminTopNavigation-CKquTKkz.js";import{P as Z}from"./PaginatorComponent-Dk-0OsjZ.js";import{_ as G}from"./AdminUserDetailsComponent-QT1KkMwg.js";import{P as A}from"./PrimaryButton-6L6tESKC.js";import{_ as H}from"./TextInput-BGBBA2nL.js";import{_ as J}from"./SecondaryButton-Dml8iKd5.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const K={class:"card"},R={class:"flex justify-between items-center"},X={key:0},ee={class:"card"},te={class:"card"},se={key:0},ie={key:0},ae={key:0,class:"text-xs text-red-500"},le={class:""},ne={class:"flex justify-end items-center mt-4"},oe={class:"w-full lg:w-1/3"},de={class:"card"},re={for:"admin",class:"cursor-pointer flex justify-start items-center"},ue={class:"card"},me={key:0},ce={class:"border-b py-2"},ve={class:"list-item ml-8"},pe={key:0},fe={class:"ml-8 text-xs"},_e={key:1},he={class:"card"},ke={key:0},be={class:"flex justify-start items-center space-x-4 pb-4"},ge={class:"grid grid-cols-1 md:grid-cols-2 md:gap-2"},ye={class:"border rounded-xl p-4"},xe={class:"text-xs"},Ae={class:"mt-8"},Pe=["for"],we=["id","value"],Ce={class:"pb-4"},Te={class:"flex items-center justify-end mt-4"},Me={__name:"User",props:{id:{required:!0,type:Number}},setup(B){const k=B,V=b(5),n=b({name:"",token_abilities:[]}),P=T().props.personalAccessTokenAbilities,j=T().props.platformAppTokenAbilities,m=b({}),d=b({});O(()=>{g(),w()});function N(){n.value.user_id=d.value.id,axios.post("/admin/user-personal-access-tokens",n.value).then(i=>{let e=i.data.data.token,s=i.data.data.secret;x.fire({title:"Personal access token issued!",html:'
Please note that the token will be displayed only once. Make sure to save it securely.
Token: '+e+'
Secret: '+s+'
You will need the secret in order to sign your API requests.
',icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:"Got it!"}).then(c=>{n.value={name:"",token_abilities:[]},g()})}).catch(i=>{x.fire({icon:"error",title:"Oops..",text:i.response.data.meta.message})})}function g(){axios.get("/admin/users/"+k.id+"?cached=false&relations=currentTeam").then(i=>{d.value=i.data.data}).catch(i=>{console.log(i)})}function w(i=1){axios.get("/admin/team-users?cached=false&page="+i+"&where[]=user_id,"+k.id+"&relations=team&limit="+V.value+"&orderBy=id,desc").then(e=>{m.value=e.data.data}).catch(e=>{})}function I(i){w(i)}function C(i){return i.replaceAll("-"," ")}function q(){n.value.token_abilities=Object.keys(j),x.fire({icon:"info",title:"Platform Apps",html:'
We have selected the minimum required abilities for an API token for a "Platform" type app.
Be careful with these abilities, as they can perform additive and destructive actions, like creating teams, users and more API tokens.
'})}function D(){n.value.token_abilities=[]}function M(){let i={is_admin:d.value.is_admin};axios.put("/admin/users/"+k.id,i).then(e=>{g()}).catch(e=>{console.log(e)})}return(i,e)=>(a(),l(p,null,[o(v(Q),{title:"Users"}),o(W,null,{header:r(()=>[o(Y)]),default:r(()=>[t("div",K,[t("div",R,[t("h2",null,u(d.value.name),1),t("div",null,[i.$page.props.isImpersonating===null?(a(),l("div",X,[o(A,null,{default:r(()=>[o(v(y),{href:i.route("admin.impersonate",k.id)},{default:r(()=>e[6]||(e[6]=[f("Impersonate")])),_:1},8,["href"])]),_:1})])):_("",!0)])])]),t("div",ee,[e[7]||(e[7]=t("div",{class:"card-header"}," User details ",-1)),o(G,{user:d.value},null,8,["user"])]),t("div",te,[e[8]||(e[8]=t("div",{class:"card-header"}," User teams ",-1)),m.value.data&&m.value.data.length>0?(a(),l("div",se,[(a(!0),l(p,null,h(m.value.data,s=>(a(),E(v(y),{href:i.route("admin.team",s.team_id),class:"hover:no-underline hover:opacity-75"},{default:r(()=>[t("div",{class:$({"border-b p-2":m.value.data.length>1})},[s.team?(a(),l("div",ie,[s.team_id===d.value.current_team_id?(a(),l("div",ae,"*Current team ")):_("",!0),t("div",le,u(s.team.name),1)])):_("",!0)],2)]),_:2},1032,["href"]))),256))])):_("",!0),t("div",ne,[t("div",oe,[o(Z,{onSetDataPage:I,"pagination-data":m.value},null,8,["pagination-data"])])])]),t("div",de,[e[10]||(e[10]=t("div",{class:"card-header"}," Admin status ",-1)),t("label",re,[S(t("input",{onChange:e[0]||(e[0]=s=>M()),type:"checkbox",id:"admin",class:"mr-4","true-value":1,"false-value":0,"onUpdate:modelValue":e[1]||(e[1]=s=>d.value.is_admin=s)},null,544),[[U,d.value.is_admin]]),e[9]||(e[9]=f(" User is System Admin "))])]),t("div",ue,[e[11]||(e[11]=t("div",{class:"card-header"}," User Personal Access Tokens (PATs) ",-1)),d.value.tokens&&d.value.tokens.length?(a(),l("div",me,[(a(!0),l(p,null,h(d.value.tokens,s=>(a(),l("div",ce,[o(v(y),{href:i.route("admin.api-access-token",{id:s.id})},{default:r(()=>[t("div",ve,u(s.name),1),s.abilities&&s.abilities.length?(a(),l("div",pe,[(a(!0),l(p,null,h(s.abilities,c=>(a(),l("div",fe," - "+u(C(c)),1))),256))])):_("",!0)]),_:2},1032,["href"])]))),256))])):(a(),l("div",_e,"User does not have PATs."))]),t("div",he,[e[18]||(e[18]=t("div",{class:"card-header"}," Create Personal Access Token ",-1)),v(P).length?(a(),l("div",ke,[e[16]||(e[16]=t("div",{class:"mt-8 mb-4"},[t("h2",null,"Step 1: Select Token Abilities")],-1)),t("div",be,[o(J,{onClick:D},{default:r(()=>e[12]||(e[12]=[f(" Clear Selected ")])),_:1}),e[14]||(e[14]=t("div",{class:"pl-16"}," Quick select: ",-1)),o(A,{onClick:e[2]||(e[2]=s=>q())},{default:r(()=>e[13]||(e[13]=[f(" Platform App ")])),_:1})]),t("div",ge,[(a(!0),l(p,null,h(v(P),s=>(a(),l("div",ye,[t("div",null,[t("h2",null,u(s.name),1),t("div",xe,u(s.description),1),t("div",Ae,[(a(!0),l(p,null,h(s.abilities,(c,F)=>(a(),l("div",null,[t("label",{for:c,class:"cursor-pointer"},[S(t("input",{type:"checkbox",id:c,class:"mr-4",value:F,"onUpdate:modelValue":e[3]||(e[3]=L=>n.value.token_abilities=L)},null,8,we),[[U,n.value.token_abilities]]),f(" "+u(C(c)),1)],8,Pe)]))),256))])])]))),256))]),e[17]||(e[17]=t("div",{class:"mt-8"},[t("h2",null,"Step 2: Give the Token a name")],-1)),t("div",Ce,[o(H,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:n.value.name,"onUpdate:modelValue":e[4]||(e[4]=s=>n.value.name=s),required:""},null,8,["modelValue"])]),t("div",null," Selected Abilities: "+u(n.value.token_abilities.join(", ")),1),t("div",Te,[o(A,{onClick:e[5]||(e[5]=z(s=>N(),["prevent"])),class:$(["",{"opacity-25":!n.value.name}]),desabled:!n.value.name},{default:r(()=>e[15]||(e[15]=[f(" Create New Token ")])),_:1},8,["class","desabled"])])])):_("",!0)])]),_:1})],64))}};export{Me as default}; +import{r as b,Q as T,o as O,c as l,a as o,u as v,w as r,F as p,b as a,Z as Q,d as t,t as u,i as y,e as f,f as _,g as h,l as S,m as U,k as z,n as $,h as E}from"./app-DolNWhzr.js";import{_ as W,S as x}from"./AuthenticatedLayout-DuLcXyKk.js";import{_ as Y}from"./AdminTopNavigation-Bl9ElpaD.js";import{P as Z}from"./PaginatorComponent-DpqX95xS.js";import{_ as G}from"./AdminUserDetailsComponent-BIuw6cp6.js";import{P as A}from"./PrimaryButton-BtqGl7rR.js";import{_ as H}from"./TextInput-C41DJZHw.js";import{_ as J}from"./SecondaryButton-DL_I_H3U.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const K={class:"card"},R={class:"flex justify-between items-center"},X={key:0},ee={class:"card"},te={class:"card"},se={key:0},ie={key:0},ae={key:0,class:"text-xs text-red-500"},le={class:""},ne={class:"flex justify-end items-center mt-4"},oe={class:"w-full lg:w-1/3"},de={class:"card"},re={for:"admin",class:"cursor-pointer flex justify-start items-center"},ue={class:"card"},me={key:0},ce={class:"border-b py-2"},ve={class:"list-item ml-8"},pe={key:0},fe={class:"ml-8 text-xs"},_e={key:1},he={class:"card"},ke={key:0},be={class:"flex justify-start items-center space-x-4 pb-4"},ge={class:"grid grid-cols-1 md:grid-cols-2 md:gap-2"},ye={class:"border rounded-xl p-4"},xe={class:"text-xs"},Ae={class:"mt-8"},Pe=["for"],we=["id","value"],Ce={class:"pb-4"},Te={class:"flex items-center justify-end mt-4"},Me={__name:"User",props:{id:{required:!0,type:Number}},setup(B){const k=B,V=b(5),n=b({name:"",token_abilities:[]}),P=T().props.personalAccessTokenAbilities,j=T().props.platformAppTokenAbilities,m=b({}),d=b({});O(()=>{g(),w()});function N(){n.value.user_id=d.value.id,axios.post("/admin/user-personal-access-tokens",n.value).then(i=>{let e=i.data.data.token,s=i.data.data.secret;x.fire({title:"Personal access token issued!",html:'
Please note that the token will be displayed only once. Make sure to save it securely.
Token: '+e+'
Secret: '+s+'
You will need the secret in order to sign your API requests.
',icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:"Got it!"}).then(c=>{n.value={name:"",token_abilities:[]},g()})}).catch(i=>{x.fire({icon:"error",title:"Oops..",text:i.response.data.meta.message})})}function g(){axios.get("/admin/users/"+k.id+"?cached=false&relations=currentTeam").then(i=>{d.value=i.data.data}).catch(i=>{console.log(i)})}function w(i=1){axios.get("/admin/team-users?cached=false&page="+i+"&where[]=user_id,"+k.id+"&relations=team&limit="+V.value+"&orderBy=id,desc").then(e=>{m.value=e.data.data}).catch(e=>{})}function I(i){w(i)}function C(i){return i.replaceAll("-"," ")}function q(){n.value.token_abilities=Object.keys(j),x.fire({icon:"info",title:"Platform Apps",html:'
We have selected the minimum required abilities for an API token for a "Platform" type app.
Be careful with these abilities, as they can perform additive and destructive actions, like creating teams, users and more API tokens.
'})}function D(){n.value.token_abilities=[]}function M(){let i={is_admin:d.value.is_admin};axios.put("/admin/users/"+k.id,i).then(e=>{g()}).catch(e=>{console.log(e)})}return(i,e)=>(a(),l(p,null,[o(v(Q),{title:"Users"}),o(W,null,{header:r(()=>[o(Y)]),default:r(()=>[t("div",K,[t("div",R,[t("h2",null,u(d.value.name),1),t("div",null,[i.$page.props.isImpersonating===null?(a(),l("div",X,[o(A,null,{default:r(()=>[o(v(y),{href:i.route("admin.impersonate",k.id)},{default:r(()=>e[6]||(e[6]=[f("Impersonate")])),_:1},8,["href"])]),_:1})])):_("",!0)])])]),t("div",ee,[e[7]||(e[7]=t("div",{class:"card-header"}," User details ",-1)),o(G,{user:d.value},null,8,["user"])]),t("div",te,[e[8]||(e[8]=t("div",{class:"card-header"}," User teams ",-1)),m.value.data&&m.value.data.length>0?(a(),l("div",se,[(a(!0),l(p,null,h(m.value.data,s=>(a(),E(v(y),{href:i.route("admin.team",s.team_id),class:"hover:no-underline hover:opacity-75"},{default:r(()=>[t("div",{class:$({"border-b p-2":m.value.data.length>1})},[s.team?(a(),l("div",ie,[s.team_id===d.value.current_team_id?(a(),l("div",ae,"*Current team ")):_("",!0),t("div",le,u(s.team.name),1)])):_("",!0)],2)]),_:2},1032,["href"]))),256))])):_("",!0),t("div",ne,[t("div",oe,[o(Z,{onSetDataPage:I,"pagination-data":m.value},null,8,["pagination-data"])])])]),t("div",de,[e[10]||(e[10]=t("div",{class:"card-header"}," Admin status ",-1)),t("label",re,[S(t("input",{onChange:e[0]||(e[0]=s=>M()),type:"checkbox",id:"admin",class:"mr-4","true-value":1,"false-value":0,"onUpdate:modelValue":e[1]||(e[1]=s=>d.value.is_admin=s)},null,544),[[U,d.value.is_admin]]),e[9]||(e[9]=f(" User is System Admin "))])]),t("div",ue,[e[11]||(e[11]=t("div",{class:"card-header"}," User Personal Access Tokens (PATs) ",-1)),d.value.tokens&&d.value.tokens.length?(a(),l("div",me,[(a(!0),l(p,null,h(d.value.tokens,s=>(a(),l("div",ce,[o(v(y),{href:i.route("admin.api-access-token",{id:s.id})},{default:r(()=>[t("div",ve,u(s.name),1),s.abilities&&s.abilities.length?(a(),l("div",pe,[(a(!0),l(p,null,h(s.abilities,c=>(a(),l("div",fe," - "+u(C(c)),1))),256))])):_("",!0)]),_:2},1032,["href"])]))),256))])):(a(),l("div",_e,"User does not have PATs."))]),t("div",he,[e[18]||(e[18]=t("div",{class:"card-header"}," Create Personal Access Token ",-1)),v(P).length?(a(),l("div",ke,[e[16]||(e[16]=t("div",{class:"mt-8 mb-4"},[t("h2",null,"Step 1: Select Token Abilities")],-1)),t("div",be,[o(J,{onClick:D},{default:r(()=>e[12]||(e[12]=[f(" Clear Selected ")])),_:1}),e[14]||(e[14]=t("div",{class:"pl-16"}," Quick select: ",-1)),o(A,{onClick:e[2]||(e[2]=s=>q())},{default:r(()=>e[13]||(e[13]=[f(" Platform App ")])),_:1})]),t("div",ge,[(a(!0),l(p,null,h(v(P),s=>(a(),l("div",ye,[t("div",null,[t("h2",null,u(s.name),1),t("div",xe,u(s.description),1),t("div",Ae,[(a(!0),l(p,null,h(s.abilities,(c,F)=>(a(),l("div",null,[t("label",{for:c,class:"cursor-pointer"},[S(t("input",{type:"checkbox",id:c,class:"mr-4",value:F,"onUpdate:modelValue":e[3]||(e[3]=L=>n.value.token_abilities=L)},null,8,we),[[U,n.value.token_abilities]]),f(" "+u(C(c)),1)],8,Pe)]))),256))])])]))),256))]),e[17]||(e[17]=t("div",{class:"mt-8"},[t("h2",null,"Step 2: Give the Token a name")],-1)),t("div",Ce,[o(H,{id:"name",type:"text",class:"mt-1 block w-full",modelValue:n.value.name,"onUpdate:modelValue":e[4]||(e[4]=s=>n.value.name=s),required:""},null,8,["modelValue"])]),t("div",null," Selected Abilities: "+u(n.value.token_abilities.join(", ")),1),t("div",Te,[o(A,{onClick:e[5]||(e[5]=z(s=>N(),["prevent"])),class:$(["",{"opacity-25":!n.value.name}]),desabled:!n.value.name},{default:r(()=>e[15]||(e[15]=[f(" Create New Token ")])),_:1},8,["class","desabled"])])])):_("",!0)])]),_:1})],64))}};export{Me as default}; diff --git a/public/build/assets/Users-DqdRsvhQ.js b/public/build/assets/Users-BeOew9TI.js similarity index 76% rename from public/build/assets/Users-DqdRsvhQ.js rename to public/build/assets/Users-BeOew9TI.js index 575a63cf..a76697cd 100644 --- a/public/build/assets/Users-DqdRsvhQ.js +++ b/public/build/assets/Users-BeOew9TI.js @@ -1 +1 @@ -import{_ as f}from"./AuthenticatedLayout-BSBk4Waj.js";import{r as h,o as v,c as r,a as i,u as m,w as d,F as u,b as n,Z as g,d as e,g as x,f as _,h as w,i as k,t as l,e as y}from"./app-zpP4mvhd.js";import{_ as B}from"./AdminTopNavigation-CKquTKkz.js";import{P as b}from"./PaginatorComponent-Dk-0OsjZ.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-6L6tESKC.js";import"./SecondaryButton-Dml8iKd5.js";const C={class:"card"},N={key:0},P={class:"border-b flex justify-between items-center py-2 sm:p-2"},V={class:"font-bold"},j={class:"text-xs opacity-25"},D={key:0,class:""},U={class:"text-sm"},F={class:"flex justify-end items-center mt-4"},S={class:"w-full lg:w-1/3"},G={__name:"Users",setup(T){const s=h({});v(()=>{c()});function c(o=1){axios.get("/admin/users?cached=false&page="+o+"&relations=currentTeam&orderBy=id,desc").then(t=>{s.value=t.data.data}).catch(t=>{console.log(t)})}function p(o){c(o)}return(o,t)=>(n(),r(u,null,[i(m(g),{title:"Users"}),i(f,null,{header:d(()=>[i(B)]),default:d(()=>[e("div",C,[s.value.data&&s.value.data.length?(n(),r("div",N,[(n(!0),r(u,null,x(s.value.data,a=>(n(),w(m(k),{href:o.route("admin.user",a.id),class:"hover:no-underline hover:opacity-75"},{default:d(()=>[e("div",P,[e("div",null,[e("div",V,[e("span",j," #"+l(a.id),1),y(" "+l(a.name),1)]),a.current_team?(n(),r("div",D,l(a.current_team.name),1)):_("",!0),e("div",U,l(a.email),1)]),t[0]||(t[0]=e("div",{class:"text-2xl"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256))])):_("",!0),e("div",F,[e("div",S,[i(b,{onSetDataPage:p,"pagination-data":s.value},null,8,["pagination-data"])])])])]),_:1})],64))}};export{G as default}; +import{_ as f}from"./AuthenticatedLayout-DuLcXyKk.js";import{r as h,o as v,c as r,a as i,u as m,w as d,F as u,b as n,Z as g,d as e,g as x,f as _,h as w,i as k,t as l,e as y}from"./app-DolNWhzr.js";import{_ as B}from"./AdminTopNavigation-Bl9ElpaD.js";import{P as b}from"./PaginatorComponent-DpqX95xS.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./SecondaryButton-DL_I_H3U.js";const C={class:"card"},N={key:0},P={class:"border-b flex justify-between items-center py-2 sm:p-2"},V={class:"font-bold"},j={class:"text-xs opacity-25"},D={key:0,class:""},U={class:"text-sm"},F={class:"flex justify-end items-center mt-4"},S={class:"w-full lg:w-1/3"},G={__name:"Users",setup(T){const s=h({});v(()=>{c()});function c(o=1){axios.get("/admin/users?cached=false&page="+o+"&relations=currentTeam&orderBy=id,desc").then(t=>{s.value=t.data.data}).catch(t=>{console.log(t)})}function p(o){c(o)}return(o,t)=>(n(),r(u,null,[i(m(g),{title:"Users"}),i(f,null,{header:d(()=>[i(B)]),default:d(()=>[e("div",C,[s.value.data&&s.value.data.length?(n(),r("div",N,[(n(!0),r(u,null,x(s.value.data,a=>(n(),w(m(k),{href:o.route("admin.user",a.id),class:"hover:no-underline hover:opacity-75"},{default:d(()=>[e("div",P,[e("div",null,[e("div",V,[e("span",j," #"+l(a.id),1),y(" "+l(a.name),1)]),a.current_team?(n(),r("div",D,l(a.current_team.name),1)):_("",!0),e("div",U,l(a.email),1)]),t[0]||(t[0]=e("div",{class:"text-2xl"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256))])):_("",!0),e("div",F,[e("div",S,[i(b,{onSetDataPage:p,"pagination-data":s.value},null,8,["pagination-data"])])])])]),_:1})],64))}};export{G as default}; diff --git a/public/build/assets/VerifyEmail-CVpG63al.js b/public/build/assets/VerifyEmail-XmSRG_in.js similarity index 79% rename from public/build/assets/VerifyEmail-CVpG63al.js rename to public/build/assets/VerifyEmail-XmSRG_in.js index 5dd8e55f..1952682b 100644 --- a/public/build/assets/VerifyEmail-CVpG63al.js +++ b/public/build/assets/VerifyEmail-XmSRG_in.js @@ -1 +1 @@ -import{T as c,z as p,h as g,w as i,b as r,a as o,u as t,Z as y,d as n,c as v,f as b,e as a,n as k,i as x,k as h}from"./app-zpP4mvhd.js";import{_}from"./GuestLayout-BgHVKdPO.js";import{P as w}from"./PrimaryButton-6L6tESKC.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const V={key:0,class:"mb-4 font-medium text-sm text-green-600"},B={class:"mt-4 flex items-center justify-between"},j={__name:"VerifyEmail",props:{status:{type:String}},setup(d){const l=d,s=c({}),u=()=>{s.post(route("verification.send"))},m=p(()=>l.status==="verification-link-sent");return(f,e)=>(r(),g(_,null,{default:i(()=>[o(t(y),{title:"Email Verification"}),e[2]||(e[2]=n("div",{class:"mb-4 text-sm text-gray-600"}," Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn't receive the email, we will gladly send you another. ",-1)),m.value?(r(),v("div",V," A new verification link has been sent to the email address you provided during registration. ")):b("",!0),n("form",{onSubmit:h(u,["prevent"])},[n("div",B,[o(w,{class:k({"opacity-25":t(s).processing}),disabled:t(s).processing},{default:i(()=>e[0]||(e[0]=[a(" Resend Verification Email ")])),_:1},8,["class","disabled"]),o(t(x),{href:f.route("logout"),method:"post",as:"button",class:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:i(()=>e[1]||(e[1]=[a("Log Out")])),_:1},8,["href"])])],32)]),_:1}))}};export{j as default}; +import{T as c,A as p,h as g,w as i,b as r,a as o,u as t,Z as y,d as n,c as v,f as b,e as a,n as k,i as x,k as h}from"./app-DolNWhzr.js";import{_}from"./GuestLayout-BPBJX1aK.js";import{P as w}from"./PrimaryButton-BtqGl7rR.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const V={key:0,class:"mb-4 font-medium text-sm text-green-600"},B={class:"mt-4 flex items-center justify-between"},j={__name:"VerifyEmail",props:{status:{type:String}},setup(d){const l=d,s=c({}),u=()=>{s.post(route("verification.send"))},m=p(()=>l.status==="verification-link-sent");return(f,e)=>(r(),g(_,null,{default:i(()=>[o(t(y),{title:"Email Verification"}),e[2]||(e[2]=n("div",{class:"mb-4 text-sm text-gray-600"}," Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn't receive the email, we will gladly send you another. ",-1)),m.value?(r(),v("div",V," A new verification link has been sent to the email address you provided during registration. ")):b("",!0),n("form",{onSubmit:h(u,["prevent"])},[n("div",B,[o(w,{class:k({"opacity-25":t(s).processing}),disabled:t(s).processing},{default:i(()=>e[0]||(e[0]=[a(" Resend Verification Email ")])),_:1},8,["class","disabled"]),o(t(x),{href:f.route("logout"),method:"post",as:"button",class:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"},{default:i(()=>e[1]||(e[1]=[a("Log Out")])),_:1},8,["href"])])],32)]),_:1}))}};export{j as default}; diff --git a/public/build/assets/Voucher-BviKMyQX.js b/public/build/assets/Voucher-DH40YzDI.js similarity index 92% rename from public/build/assets/Voucher-BviKMyQX.js rename to public/build/assets/Voucher-DH40YzDI.js index aab35cad..89d1d0ad 100644 --- a/public/build/assets/Voucher-BviKMyQX.js +++ b/public/build/assets/Voucher-DH40YzDI.js @@ -1 +1 @@ -import{_ as B}from"./AuthenticatedLayout-BSBk4Waj.js";import{r as N,o as R,c as r,a as v,u as i,w as c,F as h,b as a,Z as T,d as e,t as o,f as l,i as m,e as n,g as k,h as C}from"./app-zpP4mvhd.js";import{_ as S}from"./AdminTopNavigation-CKquTKkz.js";import{d as u}from"./dayjs.min-C0_0pMrK.js";import{r as $}from"./relativeTime-__Y28WrV.js";import{u as M}from"./utc-D2jiDVXM.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-6L6tESKC.js";const j={class:"grid grid-cols-2 gap-8 container mx-auto mt-8"},D={class:"card"},E={class:"opacity-25"},F={key:0,class:"mt-4"},L={key:1,class:"font-bold text-red-500 text-sm"},q={class:"card"},z={key:0},A={class:"card"},I={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},O={class:"font-bold text-3xl"},U={class:"font-bold text-3xl"},W={class:"font-bold text-3xl"},Z={key:0},G={class:"font-bold text-3xl"},H={class:"text-xs"},J={key:1},K={class:"font-bold text-3xl"},P={class:"text-xs"},Q={class:"grid grid-cols-2 gap-8 container mx-auto"},X={class:"card"},Y={key:0},ee={key:1,class:"text-xs mt-2"},te={class:"card"},se={key:0},oe={class:"card"},de={key:0},ae={class:"card"},re={key:0,class:"text-sm"},ie={class:"border-b flex justify-between items-center py-2 sm:p-2"},le={class:"text-xs opacity-25"},ne={class:"font-bold"},ue={key:0},_e={class:"font-bold"},ve={key:1},ce={class:"font-bold"},we={__name:"Voucher",props:{id:{required:!0}},setup(w){u.extend($),u.extend(M);const f=w,s=N({});R(()=>{V()});function V(){axios.get("/admin/vouchers/"+f.id+"?cached=false&relations=voucherSet.voucherSetMerchantTeams.merchantTeam,createdByTeam,allocatedToServiceTeam,voucherRedemptions.redeemedByUser,voucherRedemptions.redeemedByTeam").then(_=>{s.value=_.data.data}).catch(_=>{console.log(_)})}return(_,t)=>(a(),r(h,null,[v(i(T),{title:"Voucher set"}),v(B,null,{header:c(()=>[v(S)]),default:c(()=>{var p,x,y,g;return[e("div",j,[e("div",D,[t[1]||(t[1]=e("div",{class:"card-header"}," Voucher Details ",-1)),e("h2",E," ID: "+o(f.id),1),s.value.voucher_short_code?(a(),r("div",F,[e("h2",null," Short Code: "+o(s.value.voucher_short_code),1),t[0]||(t[0]=e("div",{class:"text-xs text-gray-500"}," Short codes are used in unattended (online) redemptions ",-1))])):l("",!0),s.value.is_test?(a(),r("div",L," Test voucher ")):l("",!0)]),e("div",q,[t[2]||(t[2]=e("div",{class:"card-header"}," Voucher set ",-1)),s.value.voucher_set_id?(a(),r("div",z,[v(i(m),{href:_.route("admin.voucher-set",{id:s.value.voucher_set_id})},{default:c(()=>[n(o(s.value.voucher_set_id),1)]),_:1},8,["href"])])):l("",!0)])]),e("div",A,[t[8]||(t[8]=e("div",{class:"card-header"}," Voucher details ",-1)),e("div",I,[e("div",null,[e("div",O," $"+o(s.value.voucher_value_original/100),1),t[3]||(t[3]=n(" Original value "))]),e("div",null,[e("div",U," $"+o(s.value.voucher_value_remaining/100),1),t[4]||(t[4]=n(" Remaining value "))]),e("div",null,[e("div",W,o(s.value.num_voucher_redemptions??"0"),1),t[5]||(t[5]=n(" # Redemptions "))]),s.value.last_redemption_at?(a(),r("div",Z,[t[6]||(t[6]=e("div",null," Last redeemed ",-1)),e("div",G,o(i(u).utc(s.value.last_redemption_at).fromNow()),1),e("div",H," ("+o(i(u)(s.value.last_redemption_at))+") ",1)])):l("",!0),(p=s.value.voucher_set)!=null&&p.expires_at?(a(),r("div",J,[t[7]||(t[7]=e("div",null," Expires ",-1)),e("div",K,o(i(u).utc(s.value.voucher_set.expires_at).fromNow()),1),e("div",P," ("+o(i(u)(s.value.voucher_set.expires_at))+") ",1)])):l("",!0)])]),e("div",Q,[e("div",X,[t[9]||(t[9]=e("div",{class:"card-header"}," Created by team ",-1)),s.value.created_by_team?(a(),r("div",Y,[v(i(m),{href:_.route("admin.team",{id:s.value.created_by_team_id})},{default:c(()=>{var d;return[n(o((d=s.value.created_by_team)==null?void 0:d.name),1)]}),_:1},8,["href"])])):l("",!0),s.value.created_at?(a(),r("div",ee," Created at: "+o(i(u).utc(s.value.created_at).fromNow())+" ("+o(i(u)(s.value.created_at))+") ",1)):l("",!0)]),e("div",te,[t[10]||(t[10]=e("div",{class:"card-header"}," Allocated to team ",-1)),s.value.allocated_to_service_team?(a(),r("div",se,[v(i(m),{href:_.route("admin.team",{id:s.value.allocated_to_service_team_id})},{default:c(()=>{var d;return[n(o((d=s.value.allocated_to_service_team)==null?void 0:d.name),1)]}),_:1},8,["href"])])):l("",!0)])]),e("div",oe,[t[11]||(t[11]=e("div",{class:"card-header"}," Merchants Who May Redeem Vouchers ",-1)),(x=s.value.voucher_set)!=null&&x.voucher_set_merchant_teams&&((y=s.value.voucher_set)!=null&&y.voucher_set_merchant_teams.length)?(a(),r("div",de,[(a(!0),r(h,null,k((g=s.value.voucher_set)==null?void 0:g.voucher_set_merchant_teams,d=>(a(),r("div",null,[v(i(m),{href:_.route("admin.team",d.merchant_team_id),class:""},{default:c(()=>{var b;return[n(o((b=d.merchant_team)==null?void 0:b.name),1)]}),_:2},1032,["href"])]))),256))])):l("",!0)]),e("div",ae,[t[16]||(t[16]=e("div",{class:"card-header"}," Voucher redemptions ",-1)),s.value.voucher_redemptions&&s.value.voucher_redemptions.length?(a(),r("div",re,[(a(!0),r(h,null,k(s.value.voucher_redemptions,d=>(a(),C(i(m),{href:_.route("admin.voucher-redemption",d.id),class:"hover:no-underline hover:opacity-75"},{default:c(()=>[e("div",ie,[e("div",null,[e("div",le," #"+o(d.id),1),e("div",null,[t[12]||(t[12]=n(" Redeemed amount: ")),e("span",ne,"$"+o(d.redeemed_amount/100),1)]),d.redeemed_by_user&&d.redeemed_by_team?(a(),r("div",ue,[t[13]||(t[13]=n(" Redeemed by: ")),e("span",_e,o(d.redeemed_by_user.name)+" ("+o(d.redeemed_by_team.name)+")",1)])):l("",!0),d.created_at?(a(),r("div",ve,[t[14]||(t[14]=n(" Redeemed at: ")),e("span",ce,o(i(u).utc(d.created_at).fromNow())+" ("+o(i(u)(d.created_at))+")",1)])):l("",!0)]),t[15]||(t[15]=e("div",null,[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256))])):l("",!0)]),t[17]||(t[17]=e("div",{class:"pb-32"},null,-1))]}),_:1})],64))}};export{we as default}; +import{_ as B}from"./AuthenticatedLayout-DuLcXyKk.js";import{r as N,o as R,c as r,a as v,u as i,w as c,F as h,b as a,Z as T,d as e,t as o,f as l,i as m,e as n,g as k,h as C}from"./app-DolNWhzr.js";import{_ as S}from"./AdminTopNavigation-Bl9ElpaD.js";import{d as u}from"./dayjs.min-ilzO22t1.js";import{r as $}from"./relativeTime-BTl_QCHW.js";import{u as M}from"./utc-CWodzHWT.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";const j={class:"grid grid-cols-2 gap-8 container mx-auto mt-8"},D={class:"card"},E={class:"opacity-25"},F={key:0,class:"mt-4"},L={key:1,class:"font-bold text-red-500 text-sm"},q={class:"card"},z={key:0},A={class:"card"},I={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},O={class:"font-bold text-3xl"},U={class:"font-bold text-3xl"},W={class:"font-bold text-3xl"},Z={key:0},G={class:"font-bold text-3xl"},H={class:"text-xs"},J={key:1},K={class:"font-bold text-3xl"},P={class:"text-xs"},Q={class:"grid grid-cols-2 gap-8 container mx-auto"},X={class:"card"},Y={key:0},ee={key:1,class:"text-xs mt-2"},te={class:"card"},se={key:0},oe={class:"card"},de={key:0},ae={class:"card"},re={key:0,class:"text-sm"},ie={class:"border-b flex justify-between items-center py-2 sm:p-2"},le={class:"text-xs opacity-25"},ne={class:"font-bold"},ue={key:0},_e={class:"font-bold"},ve={key:1},ce={class:"font-bold"},we={__name:"Voucher",props:{id:{required:!0}},setup(w){u.extend($),u.extend(M);const f=w,s=N({});R(()=>{V()});function V(){axios.get("/admin/vouchers/"+f.id+"?cached=false&relations=voucherSet.voucherSetMerchantTeams.merchantTeam,createdByTeam,allocatedToServiceTeam,voucherRedemptions.redeemedByUser,voucherRedemptions.redeemedByTeam").then(_=>{s.value=_.data.data}).catch(_=>{console.log(_)})}return(_,t)=>(a(),r(h,null,[v(i(T),{title:"Voucher set"}),v(B,null,{header:c(()=>[v(S)]),default:c(()=>{var p,x,y,g;return[e("div",j,[e("div",D,[t[1]||(t[1]=e("div",{class:"card-header"}," Voucher Details ",-1)),e("h2",E," ID: "+o(f.id),1),s.value.voucher_short_code?(a(),r("div",F,[e("h2",null," Short Code: "+o(s.value.voucher_short_code),1),t[0]||(t[0]=e("div",{class:"text-xs text-gray-500"}," Short codes are used in unattended (online) redemptions ",-1))])):l("",!0),s.value.is_test?(a(),r("div",L," Test voucher ")):l("",!0)]),e("div",q,[t[2]||(t[2]=e("div",{class:"card-header"}," Voucher set ",-1)),s.value.voucher_set_id?(a(),r("div",z,[v(i(m),{href:_.route("admin.voucher-set",{id:s.value.voucher_set_id})},{default:c(()=>[n(o(s.value.voucher_set_id),1)]),_:1},8,["href"])])):l("",!0)])]),e("div",A,[t[8]||(t[8]=e("div",{class:"card-header"}," Voucher details ",-1)),e("div",I,[e("div",null,[e("div",O," $"+o(s.value.voucher_value_original/100),1),t[3]||(t[3]=n(" Original value "))]),e("div",null,[e("div",U," $"+o(s.value.voucher_value_remaining/100),1),t[4]||(t[4]=n(" Remaining value "))]),e("div",null,[e("div",W,o(s.value.num_voucher_redemptions??"0"),1),t[5]||(t[5]=n(" # Redemptions "))]),s.value.last_redemption_at?(a(),r("div",Z,[t[6]||(t[6]=e("div",null," Last redeemed ",-1)),e("div",G,o(i(u).utc(s.value.last_redemption_at).fromNow()),1),e("div",H," ("+o(i(u)(s.value.last_redemption_at))+") ",1)])):l("",!0),(p=s.value.voucher_set)!=null&&p.expires_at?(a(),r("div",J,[t[7]||(t[7]=e("div",null," Expires ",-1)),e("div",K,o(i(u).utc(s.value.voucher_set.expires_at).fromNow()),1),e("div",P," ("+o(i(u)(s.value.voucher_set.expires_at))+") ",1)])):l("",!0)])]),e("div",Q,[e("div",X,[t[9]||(t[9]=e("div",{class:"card-header"}," Created by team ",-1)),s.value.created_by_team?(a(),r("div",Y,[v(i(m),{href:_.route("admin.team",{id:s.value.created_by_team_id})},{default:c(()=>{var d;return[n(o((d=s.value.created_by_team)==null?void 0:d.name),1)]}),_:1},8,["href"])])):l("",!0),s.value.created_at?(a(),r("div",ee," Created at: "+o(i(u).utc(s.value.created_at).fromNow())+" ("+o(i(u)(s.value.created_at))+") ",1)):l("",!0)]),e("div",te,[t[10]||(t[10]=e("div",{class:"card-header"}," Allocated to team ",-1)),s.value.allocated_to_service_team?(a(),r("div",se,[v(i(m),{href:_.route("admin.team",{id:s.value.allocated_to_service_team_id})},{default:c(()=>{var d;return[n(o((d=s.value.allocated_to_service_team)==null?void 0:d.name),1)]}),_:1},8,["href"])])):l("",!0)])]),e("div",oe,[t[11]||(t[11]=e("div",{class:"card-header"}," Merchants Who May Redeem Vouchers ",-1)),(x=s.value.voucher_set)!=null&&x.voucher_set_merchant_teams&&((y=s.value.voucher_set)!=null&&y.voucher_set_merchant_teams.length)?(a(),r("div",de,[(a(!0),r(h,null,k((g=s.value.voucher_set)==null?void 0:g.voucher_set_merchant_teams,d=>(a(),r("div",null,[v(i(m),{href:_.route("admin.team",d.merchant_team_id),class:""},{default:c(()=>{var b;return[n(o((b=d.merchant_team)==null?void 0:b.name),1)]}),_:2},1032,["href"])]))),256))])):l("",!0)]),e("div",ae,[t[16]||(t[16]=e("div",{class:"card-header"}," Voucher redemptions ",-1)),s.value.voucher_redemptions&&s.value.voucher_redemptions.length?(a(),r("div",re,[(a(!0),r(h,null,k(s.value.voucher_redemptions,d=>(a(),C(i(m),{href:_.route("admin.voucher-redemption",d.id),class:"hover:no-underline hover:opacity-75"},{default:c(()=>[e("div",ie,[e("div",null,[e("div",le," #"+o(d.id),1),e("div",null,[t[12]||(t[12]=n(" Redeemed amount: ")),e("span",ne,"$"+o(d.redeemed_amount/100),1)]),d.redeemed_by_user&&d.redeemed_by_team?(a(),r("div",ue,[t[13]||(t[13]=n(" Redeemed by: ")),e("span",_e,o(d.redeemed_by_user.name)+" ("+o(d.redeemed_by_team.name)+")",1)])):l("",!0),d.created_at?(a(),r("div",ve,[t[14]||(t[14]=n(" Redeemed at: ")),e("span",ce,o(i(u).utc(d.created_at).fromNow())+" ("+o(i(u)(d.created_at))+")",1)])):l("",!0)]),t[15]||(t[15]=e("div",null,[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256))])):l("",!0)]),t[17]||(t[17]=e("div",{class:"pb-32"},null,-1))]}),_:1})],64))}};export{we as default}; diff --git a/public/build/assets/Voucher-3e_NpFce.js b/public/build/assets/Voucher-brxKvDUT.js similarity index 87% rename from public/build/assets/Voucher-3e_NpFce.js rename to public/build/assets/Voucher-brxKvDUT.js index 4cb9f24b..3397ca60 100644 --- a/public/build/assets/Voucher-3e_NpFce.js +++ b/public/build/assets/Voucher-brxKvDUT.js @@ -1 +1 @@ -import{r as h,o as I,c as a,a as f,u as n,w as _,F as p,b as i,Z as P,e as r,d as t,t as o,f as u,i as A,g as D,h as S,l as E,q as F,D as U}from"./app-zpP4mvhd.js";import{_ as Y,S as x}from"./AuthenticatedLayout-BSBk4Waj.js";import{d as l}from"./dayjs.min-C0_0pMrK.js";import{r as q}from"./relativeTime-__Y28WrV.js";import{l as L}from"./localizedFormat-DCfJHBMc.js";import{u as M}from"./utc-D2jiDVXM.js";import{P as g}from"./PrimaryButton-6L6tESKC.js";import{_ as O}from"./SecondaryButton-Dml8iKd5.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const z={class:"grid grid-cols-2 gap-8 container mx-auto mt-8"},G={class:"card"},Z={class:"opacity-25"},H={key:0,class:"mt-4"},J={key:1,class:"font-bold text-red-500 text-sm"},K={class:"card"},Q={key:0},W={class:"card"},X={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},ee={class:"font-bold text-3xl"},te={class:"font-bold text-3xl"},se={class:"font-bold text-3xl"},oe={key:0},ie={class:"font-bold text-3xl"},ae={class:"text-xs"},de={key:1},re={class:"font-bold text-3xl"},le={class:"text-xs"},ne={class:"grid grid-cols-2 gap-8 container mx-auto"},ue={class:"card"},ce={key:0},ve={key:1,class:"text-xs mt-2"},_e={class:"card"},me={key:0},fe={class:"card"},he={key:0,class:"text-sm"},be={class:"border-b py-2 sm:p-2"},ye={class:"font-bold"},pe={key:0},xe={class:"font-bold"},ge={key:1},ke={class:"font-bold"},we={class:"card"},Be={class:"card-header flex justify-between"},Ve={class:"mt-4"},Ce={key:0},De={class:"py-1 border-b border-gray-200 flex justify-between"},Se={class:"font-medium"},Te={class:"italic text-gray-500"},Re={key:1},Ne={class:"mt-8"},$e={class:"mt-2 flex justify-between"},je={class:"w-full"},Ie={class:"flex space-x-4"},ze={__name:"Voucher",props:{voucherId:{type:String,required:!1}},setup(T){l.extend(q),l.extend(L),l.extend(M);const R=T,m=h(""),b=h(null),y=h(!1),s=h({});I(()=>{B()});function k(){y.value=!1,m.value=""}function N(){x.fire({title:"Are you sure?",icon:"warning",text:"You cannot resend this voucher to a different email address after this. You can resend it to the same person, but not a different person. Please double-check you have the details correct.",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:"All good, send it!",cancelButtonText:"Go back"}).then(c=>{c.isConfirmed&&w()})}function w(){var e;let c={voucher_id:s.value.id,beneficiary_email:m.value};((e=s.value.voucher_beneficiary_distributions)==null?void 0:e.length)>=1&&(c={resend_beneficiary_distribution_id:s.value.voucher_beneficiary_distributions[0].id}),axios.post("/voucher-beneficiary-distributions",c).then(v=>{x.fire({title:"Nice!",icon:"success",text:v.data.data.message,showConfirmButton:!1,timer:600}),k(),B()}).catch(v=>{x.fire({title:"Oops!",icon:"error",text:v.response.data.meta.message}),console.log(v)})}function B(){axios.get("/my-team-vouchers/"+R.voucherId+"?cached=false&relations=createdByTeam,allocatedToServiceTeam,voucherBeneficiaryDistributions,voucherRedemptions.redeemedByUser,voucherRedemptions.redeemedByTeam,voucherSet").then(c=>{s.value=c.data.data}).catch(c=>{console.log(c)})}function $(){y.value=!0,U(()=>{b.value&&b.value.scrollIntoView({behavior:"smooth"})})}return(c,e)=>(i(),a(p,null,[f(n(P),{title:"Voucher"}),f(Y,null,{header:_(()=>e[1]||(e[1]=[r(" Voucher ")])),default:_(()=>{var v,V,C;return[t("div",z,[t("div",G,[e[2]||(e[2]=t("div",{class:"card-header"}," Voucher Details ",-1)),t("h2",Z," ID: "+o(s.value.id),1),s.value.voucher_short_code?(i(),a("div",H,[t("h2",null," Short Code: "+o(s.value.voucher_short_code),1)])):u("",!0),s.value.is_test?(i(),a("div",J," Test voucher ")):u("",!0)]),t("div",K,[e[3]||(e[3]=t("div",{class:"card-header"}," Voucher set ",-1)),s.value.voucher_set_id?(i(),a("div",Q,[f(n(A),{href:c.route("voucher-set",{id:s.value.voucher_set_id})},{default:_(()=>[r(o(s.value.voucher_set_id),1)]),_:1},8,["href"])])):u("",!0)])]),t("div",W,[e[9]||(e[9]=t("div",{class:"card-header"}," Usage overview ",-1)),t("div",X,[t("div",null,[t("div",ee," $"+o(s.value.voucher_value_original/100),1),e[4]||(e[4]=r(" Original value "))]),t("div",null,[t("div",te," $"+o(s.value.voucher_value_remaining/100),1),e[5]||(e[5]=r(" Remaining value "))]),t("div",null,[t("div",se,o(s.value.num_voucher_redemptions??"0"),1),e[6]||(e[6]=r(" # Redemptions "))]),s.value.last_redemption_at?(i(),a("div",oe,[e[7]||(e[7]=t("div",null," Last redeemed ",-1)),t("div",ie,o(n(l).utc(s.value.last_redemption_at).fromNow()),1),t("div",ae," ("+o(n(l)(s.value.last_redemption_at))+") ",1)])):u("",!0),(v=s.value.voucher_set)!=null&&v.expires_at?(i(),a("div",de,[e[8]||(e[8]=t("div",null," Expires ",-1)),t("div",re,o(n(l).utc(s.value.voucher_set.expires_at).fromNow()),1),t("div",le," ("+o(n(l)(s.value.voucher_set.expires_at))+") ",1)])):u("",!0)])]),t("div",ne,[t("div",ue,[e[10]||(e[10]=t("div",{class:"card-header"}," Created by team ",-1)),s.value.created_by_team?(i(),a("div",ce,o(s.value.created_by_team.name),1)):u("",!0),s.value.created_at?(i(),a("div",ve," Created at: "+o(n(l).utc(s.value.created_at).fromNow())+" ("+o(n(l)(s.value.created_at))+") ",1)):u("",!0)]),t("div",_e,[e[11]||(e[11]=t("div",{class:"card-header"}," Allocated to team ",-1)),s.value.allocated_to_service_team?(i(),a("div",me,o(s.value.allocated_to_service_team.name),1)):u("",!0)])]),t("div",fe,[e[15]||(e[15]=t("div",{class:"card-header"}," Voucher redemptions ",-1)),s.value.voucher_redemptions&&s.value.voucher_redemptions.length?(i(),a("div",he,[(i(!0),a(p,null,D(s.value.voucher_redemptions,d=>(i(),a("div",be,[t("div",null,[e[12]||(e[12]=r(" Redeemed amount: ")),t("span",ye,"$"+o(d.redeemed_amount/100),1)]),d.redeemed_by_user&&d.redeemed_by_team?(i(),a("div",pe,[e[13]||(e[13]=r(" Redeemed by: ")),t("span",xe,o(d.redeemed_by_user.name)+" ("+o(d.redeemed_by_team.name)+")",1)])):u("",!0),d.created_at?(i(),a("div",ge,[e[14]||(e[14]=r(" Redeemed at: ")),t("span",ke,o(n(l).utc(d.created_at).fromNow())+" ("+o(n(l)(d.created_at))+")",1)])):u("",!0)]))),256))])):u("",!0)]),t("div",we,[t("div",Be,[e[18]||(e[18]=t("div",null,[t("div",null," Beneficiary Distributions ")],-1)),t("div",null,[(V=s.value.voucher_beneficiary_distributions)!=null&&V.length?(i(),S(g,{key:0,onClick:w},{default:_(()=>e[16]||(e[16]=[r(" Resend ")])),_:1})):(i(),S(g,{key:1,onClick:$},{default:_(()=>e[17]||(e[17]=[r(" Send to beneficiary ")])),_:1}))])]),t("div",Ve,[(C=s.value.voucher_beneficiary_distributions)!=null&&C.length?(i(),a("div",Ce,[(i(!0),a(p,null,D(s.value.voucher_beneficiary_distributions,(d,j)=>(i(),a("div",De,[t("div",Se,o(j===0?"Distributed":"Re-distributed")+" "+o(n(l).utc(d.created_at).fromNow()),1),t("div",Te,o(n(l)(d.created_at).format("llll")),1)]))),256))])):(i(),a("div",Re," This voucher has not been distributed yet. "))])]),y.value?(i(),a("div",{key:0,ref_key:"distributionSectionRef",ref:b,class:"card"},[e[22]||(e[22]=t("div",{class:"card-header"},[r(" Distribute to beneficiary "),t("div",{class:"text-xs"}," You can email this voucher to a beneficiary here. ")],-1)),t("div",Ne,[e[21]||(e[21]=t("label",{for:"beneficiary-email"}," Please enter the beneficiary's email ",-1)),t("div",$e,[t("div",je,[E(t("input",{id:"beneficiary-email","onUpdate:modelValue":e[0]||(e[0]=d=>m.value=d),class:"md:w-1/3",placeholder:"beneficiary@example.com",type:"email"},null,512),[[F,m.value]])]),t("div",Ie,[f(O,{onClick:k},{default:_(()=>e[19]||(e[19]=[r(" Cancel ")])),_:1}),f(g,{disabled:!m.value,class:"disabled:cursor-not-allowed disabled:opacity-25",onClick:N},{default:_(()=>e[20]||(e[20]=[r(" Send ")])),_:1},8,["disabled"])])])])],512)):u("",!0),e[23]||(e[23]=t("div",{class:"pb-32"},null,-1))]}),_:1})],64))}};export{ze as default}; +import{r as h,o as E,c as a,a as f,u as n,w as _,F as p,b as i,Z as I,e as r,d as t,t as o,f as u,i as P,g as D,h as S,l as A,q as F,E as U}from"./app-DolNWhzr.js";import{_ as Y,S as x}from"./AuthenticatedLayout-DuLcXyKk.js";import{d as l}from"./dayjs.min-ilzO22t1.js";import{r as q}from"./relativeTime-BTl_QCHW.js";import{l as L}from"./localizedFormat-r4JmUt9E.js";import{u as M}from"./utc-CWodzHWT.js";import{P as g}from"./PrimaryButton-BtqGl7rR.js";import{_ as O}from"./SecondaryButton-DL_I_H3U.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const z={class:"grid grid-cols-2 gap-8 container mx-auto mt-8"},G={class:"card"},Z={class:"opacity-25"},H={key:0,class:"mt-4"},J={key:1,class:"font-bold text-red-500 text-sm"},K={class:"card"},Q={key:0},W={class:"card"},X={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},ee={class:"font-bold text-3xl"},te={class:"font-bold text-3xl"},se={class:"font-bold text-3xl"},oe={key:0},ie={class:"font-bold text-3xl"},ae={class:"text-xs"},de={key:1},re={class:"font-bold text-3xl"},le={class:"text-xs"},ne={class:"grid grid-cols-2 gap-8 container mx-auto"},ue={class:"card"},ce={key:0},ve={key:1,class:"text-xs mt-2"},_e={class:"card"},me={key:0},fe={class:"card"},he={key:0,class:"text-sm"},be={class:"border-b py-2 sm:p-2"},ye={class:"font-bold"},pe={key:0},xe={class:"font-bold"},ge={key:1},ke={class:"font-bold"},we={class:"card"},Be={class:"card-header flex justify-between"},Ve={class:"mt-4"},Ce={key:0},De={class:"py-1 border-b border-gray-200 flex justify-between"},Se={class:"font-medium"},Te={class:"italic text-gray-500"},Re={key:1},Ne={class:"mt-8"},$e={class:"mt-2 flex justify-between"},je={class:"w-full"},Ee={class:"flex space-x-4"},ze={__name:"Voucher",props:{voucherId:{type:String,required:!1}},setup(T){l.extend(q),l.extend(L),l.extend(M);const R=T,m=h(""),b=h(null),y=h(!1),s=h({});E(()=>{B()});function k(){y.value=!1,m.value=""}function N(){x.fire({title:"Are you sure?",icon:"warning",text:"You cannot resend this voucher to a different email address after this. You can resend it to the same person, but not a different person. Please double-check you have the details correct.",showConfirmButton:!0,showCancelButton:!0,confirmButtonText:"All good, send it!",cancelButtonText:"Go back"}).then(c=>{c.isConfirmed&&w()})}function w(){var e;let c={voucher_id:s.value.id,beneficiary_email:m.value};((e=s.value.voucher_beneficiary_distributions)==null?void 0:e.length)>=1&&(c={resend_beneficiary_distribution_id:s.value.voucher_beneficiary_distributions[0].id}),axios.post("/voucher-beneficiary-distributions",c).then(v=>{x.fire({title:"Nice!",icon:"success",text:v.data.data.message,showConfirmButton:!1,timer:600}),k(),B()}).catch(v=>{x.fire({title:"Oops!",icon:"error",text:v.response.data.meta.message}),console.log(v)})}function B(){axios.get("/my-team-vouchers/"+R.voucherId+"?cached=false&relations=createdByTeam,allocatedToServiceTeam,voucherBeneficiaryDistributions,voucherRedemptions.redeemedByUser,voucherRedemptions.redeemedByTeam,voucherSet").then(c=>{s.value=c.data.data}).catch(c=>{console.log(c)})}function $(){y.value=!0,U(()=>{b.value&&b.value.scrollIntoView({behavior:"smooth"})})}return(c,e)=>(i(),a(p,null,[f(n(I),{title:"Voucher"}),f(Y,null,{header:_(()=>e[1]||(e[1]=[r(" Voucher ")])),default:_(()=>{var v,V,C;return[t("div",z,[t("div",G,[e[2]||(e[2]=t("div",{class:"card-header"}," Voucher Details ",-1)),t("h2",Z," ID: "+o(s.value.id),1),s.value.voucher_short_code?(i(),a("div",H,[t("h2",null," Short Code: "+o(s.value.voucher_short_code),1)])):u("",!0),s.value.is_test?(i(),a("div",J," Test voucher ")):u("",!0)]),t("div",K,[e[3]||(e[3]=t("div",{class:"card-header"}," Voucher set ",-1)),s.value.voucher_set_id?(i(),a("div",Q,[f(n(P),{href:c.route("voucher-set",{id:s.value.voucher_set_id})},{default:_(()=>[r(o(s.value.voucher_set_id),1)]),_:1},8,["href"])])):u("",!0)])]),t("div",W,[e[9]||(e[9]=t("div",{class:"card-header"}," Usage overview ",-1)),t("div",X,[t("div",null,[t("div",ee," $"+o(s.value.voucher_value_original/100),1),e[4]||(e[4]=r(" Original value "))]),t("div",null,[t("div",te," $"+o(s.value.voucher_value_remaining/100),1),e[5]||(e[5]=r(" Remaining value "))]),t("div",null,[t("div",se,o(s.value.num_voucher_redemptions??"0"),1),e[6]||(e[6]=r(" # Redemptions "))]),s.value.last_redemption_at?(i(),a("div",oe,[e[7]||(e[7]=t("div",null," Last redeemed ",-1)),t("div",ie,o(n(l).utc(s.value.last_redemption_at).fromNow()),1),t("div",ae," ("+o(n(l)(s.value.last_redemption_at))+") ",1)])):u("",!0),(v=s.value.voucher_set)!=null&&v.expires_at?(i(),a("div",de,[e[8]||(e[8]=t("div",null," Expires ",-1)),t("div",re,o(n(l).utc(s.value.voucher_set.expires_at).fromNow()),1),t("div",le," ("+o(n(l)(s.value.voucher_set.expires_at))+") ",1)])):u("",!0)])]),t("div",ne,[t("div",ue,[e[10]||(e[10]=t("div",{class:"card-header"}," Created by team ",-1)),s.value.created_by_team?(i(),a("div",ce,o(s.value.created_by_team.name),1)):u("",!0),s.value.created_at?(i(),a("div",ve," Created at: "+o(n(l).utc(s.value.created_at).fromNow())+" ("+o(n(l)(s.value.created_at))+") ",1)):u("",!0)]),t("div",_e,[e[11]||(e[11]=t("div",{class:"card-header"}," Allocated to team ",-1)),s.value.allocated_to_service_team?(i(),a("div",me,o(s.value.allocated_to_service_team.name),1)):u("",!0)])]),t("div",fe,[e[15]||(e[15]=t("div",{class:"card-header"}," Voucher redemptions ",-1)),s.value.voucher_redemptions&&s.value.voucher_redemptions.length?(i(),a("div",he,[(i(!0),a(p,null,D(s.value.voucher_redemptions,d=>(i(),a("div",be,[t("div",null,[e[12]||(e[12]=r(" Redeemed amount: ")),t("span",ye,"$"+o(d.redeemed_amount/100),1)]),d.redeemed_by_user&&d.redeemed_by_team?(i(),a("div",pe,[e[13]||(e[13]=r(" Redeemed by: ")),t("span",xe,o(d.redeemed_by_user.name)+" ("+o(d.redeemed_by_team.name)+")",1)])):u("",!0),d.created_at?(i(),a("div",ge,[e[14]||(e[14]=r(" Redeemed at: ")),t("span",ke,o(n(l).utc(d.created_at).fromNow())+" ("+o(n(l)(d.created_at))+")",1)])):u("",!0)]))),256))])):u("",!0)]),t("div",we,[t("div",Be,[e[18]||(e[18]=t("div",null,[t("div",null," Beneficiary Distributions ")],-1)),t("div",null,[(V=s.value.voucher_beneficiary_distributions)!=null&&V.length?(i(),S(g,{key:0,onClick:w},{default:_(()=>e[16]||(e[16]=[r(" Resend ")])),_:1})):(i(),S(g,{key:1,onClick:$},{default:_(()=>e[17]||(e[17]=[r(" Send to beneficiary ")])),_:1}))])]),t("div",Ve,[(C=s.value.voucher_beneficiary_distributions)!=null&&C.length?(i(),a("div",Ce,[(i(!0),a(p,null,D(s.value.voucher_beneficiary_distributions,(d,j)=>(i(),a("div",De,[t("div",Se,o(j===0?"Distributed":"Re-distributed")+" "+o(n(l).utc(d.created_at).fromNow()),1),t("div",Te,o(n(l)(d.created_at).format("llll")),1)]))),256))])):(i(),a("div",Re," This voucher has not been distributed yet. "))])]),y.value?(i(),a("div",{key:0,ref_key:"distributionSectionRef",ref:b,class:"card"},[e[22]||(e[22]=t("div",{class:"card-header"},[r(" Distribute to beneficiary "),t("div",{class:"text-xs"}," You can email this voucher to a beneficiary here. ")],-1)),t("div",Ne,[e[21]||(e[21]=t("label",{for:"beneficiary-email"}," Please enter the beneficiary's email ",-1)),t("div",$e,[t("div",je,[A(t("input",{id:"beneficiary-email","onUpdate:modelValue":e[0]||(e[0]=d=>m.value=d),class:"md:w-1/3",placeholder:"beneficiary@example.com",type:"email"},null,512),[[F,m.value]])]),t("div",Ee,[f(O,{onClick:k},{default:_(()=>e[19]||(e[19]=[r(" Cancel ")])),_:1}),f(g,{disabled:!m.value,class:"disabled:cursor-not-allowed disabled:opacity-25",onClick:N},{default:_(()=>e[20]||(e[20]=[r(" Send ")])),_:1},8,["disabled"])])])])],512)):u("",!0),e[23]||(e[23]=t("div",{class:"pb-32"},null,-1))]}),_:1})],64))}};export{ze as default}; diff --git a/public/build/assets/VoucherRedeem-CVnRNsPo.js b/public/build/assets/VoucherRedeem-u7uJu8Rx.js similarity index 93% rename from public/build/assets/VoucherRedeem-CVnRNsPo.js rename to public/build/assets/VoucherRedeem-u7uJu8Rx.js index a942e13b..67939741 100644 --- a/public/build/assets/VoucherRedeem-CVnRNsPo.js +++ b/public/build/assets/VoucherRedeem-u7uJu8Rx.js @@ -1 +1 @@ -import{r as _,o as V,p as F,c as s,a as p,u as x,w as $,F as b,b as i,Z as C,d as e,e as f,t as n,f as u,l as T,q as B,n as P,g as A}from"./app-zpP4mvhd.js";import{_ as I,S as m}from"./AuthenticatedLayout-BSBk4Waj.js";import{d as h}from"./dayjs.min-C0_0pMrK.js";import{r as N}from"./relativeTime-__Y28WrV.js";import{u as j}from"./utc-D2jiDVXM.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-6L6tESKC.js";const D={class:"card"},S={class:"title text-2xl"},L={class:"uppercase"},q={class:"my-4"},M={key:0,class:"title text-green text-xl text-green-500"},O={key:1,class:"title"},z={key:2,class:"title text-red text-lg text-red-500"},E={class:"text-2xl font-bold mt-12"},H={key:3,class:"mt-12"},U={key:0},Z={class:"my-4"},G={key:0,class:"my-2 text-red-500"},J={key:0,class:"flex justify-between items-center"},K={class:"w-1/2 pr-2"},Q={class:"w-1/2 pl-2"},W={key:1,class:"grid grid-cols-1 md:grid-cols-2 gap-2"},X={class:""},Y={class:""},ee={key:4,class:"mt-8"},te={key:5,class:"mt-12 text-left"},oe={class:"title"},se={class:"flex justify-between items-center py-2 border-b"},ie={class:"text-lg"},re={class:"text-center"},le={class:"text-xs"},xe={__name:"VoucherRedeem",props:{voucher:{type:Object,required:!0}},setup(r){h.extend(N),h.extend(j);const d=r,c=_(!1),a=_(0),v=_(!1);V(()=>{});function y(){a.value=(parseInt(d.voucher.voucher_value_remaining)/100).toFixed(2),c.value=!0}function w(){c.value=!1}function k(){c.value=!1,m.fire({title:"Redeem all $"+(d.voucher.voucher_value_remaining/100).toFixed(2)+"?",html:"

This will fully redeem this voucher.

",icon:"warning",showCancelButton:!0,confirmButtonText:"Redeem!"}).then(l=>{l.value&&g(d.voucher.voucher_value_remaining.toFixed(0))})}function R(){m.fire({title:"Redeem $"+a.value+"?",html:"

This will partially redeem this voucher.

",icon:"warning",showCancelButton:!0,confirmButtonText:"Redeem!"}).then(l=>{l.value&&g((a.value*100).toFixed(0))})}function g(l){let t={voucher_id:d.voucher.id,voucher_set_id:d.voucher.voucher_set_id,amount:l};axios.post("/voucher-redemptions",t).then(o=>{m.fire({icon:"success",title:"Redeemed.",text:o.data.meta.message}),c.value=!1,setTimeout(ne=>{window.location.reload()},1e3)}).catch(o=>{m.fire({icon:"error",title:"Oops!",text:o.response.data.meta.message})})}return F(a,l=>{v.value=l>0&&parseInt((l*100).toFixed(0))<=parseInt(d.voucher.voucher_value_remaining.toFixed(0))}),(l,t)=>(i(),s(b,null,[p(x(C),{title:"Voucher redeem"}),p(I,null,{default:$(()=>[e("div",D,[e("div",S,[t[5]||(t[5]=f(" Redeem Voucher ")),e("span",L,n(r.voucher.voucher_short_code),1)]),e("div",q,[r.voucher.voucher_value_remaining>0?(i(),s("div",M,"Voucher is Valid")):(i(),s("div",O,"Voucher is Fully Redeemed!")),r.voucher.is_test?(i(),s("div",z," This is a test voucher. ")):u("",!0),e("div",null,[e("div",E," $"+n((r.voucher.voucher_value_remaining/100).toFixed(2))+" remaining ",1),e("div",null," of $"+n((r.voucher.voucher_value_original/100).toFixed(2))+" original value ",1)]),r.voucher.voucher_value_remaining>0?(i(),s("div",H,[c.value?(i(),s("div",U,[e("div",Z,[t[6]||(t[6]=f(" How much should be redeemed? ")),T(e("input",{inputmode:"decimal",pattern:"[0-9]*",type:"text",step:"0.01","onUpdate:modelValue":t[0]||(t[0]=o=>a.value=o),class:P(["w-full text-center text-xl rounded p-8 border-2 focus:outline-none",{"border-green-500":v.value,"border-red-500":!v.value}]),min:"0.01"},null,2),[[B,a.value,void 0,{number:!0}]]),v.value?u("",!0):(i(),s("div",G," Invalid redemption amount. "))]),v.value?(i(),s("div",J,[e("div",K,[e("button",{class:"w-full p-8 font-bold text-2xl rounded border bg-gray-300",onClick:t[1]||(t[1]=o=>w())}," Cancel ")]),e("div",Q,[e("button",{class:"w-full p-8 font-bold text-2xl rounded border bg-gray-300",onClick:t[2]||(t[2]=o=>R())}," Redeem ")])])):u("",!0)])):(i(),s("div",W,[e("div",X,[e("button",{class:"w-full p-8 font-bold text-2xl rounded border bg-gray-300",onClick:t[3]||(t[3]=o=>y())}," Redeem PART ")]),e("div",Y,[e("button",{class:"w-full p-8 font-bold text-2xl rounded border bg-gray-300",onClick:t[4]||(t[4]=o=>k())}," Redeem ALL ")])]))])):u("",!0),r.voucher.voucher_redemptions?u("",!0):(i(),s("div",ee,t[7]||(t[7]=[e("button",{class:"w-full p-2 rounded border"}," See Redemptions ",-1)]))),r.voucher.voucher_redemptions?(i(),s("div",te,[e("div",oe," Redemptions ("+n(r.voucher.voucher_redemptions.length)+") ",1),e("div",null,[(i(!0),s(b,null,A(r.voucher.voucher_redemptions,o=>(i(),s("div",se,[e("div",null,[e("div",ie," $"+n((o.redeemed_amount/100).toFixed(2)),1)]),e("div",re,[f(n(x(h).utc(o.created_at).fromNow())+" ",1),e("div",le," ("+n(x(h)(o.created_at))+") ",1)])]))),256))])])):u("",!0)])])]),_:1})],64))}};export{xe as default}; +import{r as _,o as V,p as F,c as s,a as p,u as x,w as $,F as b,b as i,Z as C,d as e,e as f,t as n,f as u,l as T,q as B,n as P,g as A}from"./app-DolNWhzr.js";import{_ as I,S as m}from"./AuthenticatedLayout-DuLcXyKk.js";import{d as h}from"./dayjs.min-ilzO22t1.js";import{r as N}from"./relativeTime-BTl_QCHW.js";import{u as j}from"./utc-CWodzHWT.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";const D={class:"card"},S={class:"title text-2xl"},L={class:"uppercase"},q={class:"my-4"},M={key:0,class:"title text-green text-xl text-green-500"},O={key:1,class:"title"},z={key:2,class:"title text-red text-lg text-red-500"},E={class:"text-2xl font-bold mt-12"},H={key:3,class:"mt-12"},U={key:0},Z={class:"my-4"},G={key:0,class:"my-2 text-red-500"},J={key:0,class:"flex justify-between items-center"},K={class:"w-1/2 pr-2"},Q={class:"w-1/2 pl-2"},W={key:1,class:"grid grid-cols-1 md:grid-cols-2 gap-2"},X={class:""},Y={class:""},ee={key:4,class:"mt-8"},te={key:5,class:"mt-12 text-left"},oe={class:"title"},se={class:"flex justify-between items-center py-2 border-b"},ie={class:"text-lg"},re={class:"text-center"},le={class:"text-xs"},xe={__name:"VoucherRedeem",props:{voucher:{type:Object,required:!0}},setup(r){h.extend(N),h.extend(j);const d=r,c=_(!1),a=_(0),v=_(!1);V(()=>{});function y(){a.value=(parseInt(d.voucher.voucher_value_remaining)/100).toFixed(2),c.value=!0}function w(){c.value=!1}function k(){c.value=!1,m.fire({title:"Redeem all $"+(d.voucher.voucher_value_remaining/100).toFixed(2)+"?",html:"

This will fully redeem this voucher.

",icon:"warning",showCancelButton:!0,confirmButtonText:"Redeem!"}).then(l=>{l.value&&g(d.voucher.voucher_value_remaining.toFixed(0))})}function R(){m.fire({title:"Redeem $"+a.value+"?",html:"

This will partially redeem this voucher.

",icon:"warning",showCancelButton:!0,confirmButtonText:"Redeem!"}).then(l=>{l.value&&g((a.value*100).toFixed(0))})}function g(l){let t={voucher_id:d.voucher.id,voucher_set_id:d.voucher.voucher_set_id,amount:l};axios.post("/voucher-redemptions",t).then(o=>{m.fire({icon:"success",title:"Redeemed.",text:o.data.meta.message}),c.value=!1,setTimeout(ne=>{window.location.reload()},1e3)}).catch(o=>{m.fire({icon:"error",title:"Oops!",text:o.response.data.meta.message})})}return F(a,l=>{v.value=l>0&&parseInt((l*100).toFixed(0))<=parseInt(d.voucher.voucher_value_remaining.toFixed(0))}),(l,t)=>(i(),s(b,null,[p(x(C),{title:"Voucher redeem"}),p(I,null,{default:$(()=>[e("div",D,[e("div",S,[t[5]||(t[5]=f(" Redeem Voucher ")),e("span",L,n(r.voucher.voucher_short_code),1)]),e("div",q,[r.voucher.voucher_value_remaining>0?(i(),s("div",M,"Voucher is Valid")):(i(),s("div",O,"Voucher is Fully Redeemed!")),r.voucher.is_test?(i(),s("div",z," This is a test voucher. ")):u("",!0),e("div",null,[e("div",E," $"+n((r.voucher.voucher_value_remaining/100).toFixed(2))+" remaining ",1),e("div",null," of $"+n((r.voucher.voucher_value_original/100).toFixed(2))+" original value ",1)]),r.voucher.voucher_value_remaining>0?(i(),s("div",H,[c.value?(i(),s("div",U,[e("div",Z,[t[6]||(t[6]=f(" How much should be redeemed? ")),T(e("input",{inputmode:"decimal",pattern:"[0-9]*",type:"text",step:"0.01","onUpdate:modelValue":t[0]||(t[0]=o=>a.value=o),class:P(["w-full text-center text-xl rounded p-8 border-2 focus:outline-none",{"border-green-500":v.value,"border-red-500":!v.value}]),min:"0.01"},null,2),[[B,a.value,void 0,{number:!0}]]),v.value?u("",!0):(i(),s("div",G," Invalid redemption amount. "))]),v.value?(i(),s("div",J,[e("div",K,[e("button",{class:"w-full p-8 font-bold text-2xl rounded border bg-gray-300",onClick:t[1]||(t[1]=o=>w())}," Cancel ")]),e("div",Q,[e("button",{class:"w-full p-8 font-bold text-2xl rounded border bg-gray-300",onClick:t[2]||(t[2]=o=>R())}," Redeem ")])])):u("",!0)])):(i(),s("div",W,[e("div",X,[e("button",{class:"w-full p-8 font-bold text-2xl rounded border bg-gray-300",onClick:t[3]||(t[3]=o=>y())}," Redeem PART ")]),e("div",Y,[e("button",{class:"w-full p-8 font-bold text-2xl rounded border bg-gray-300",onClick:t[4]||(t[4]=o=>k())}," Redeem ALL ")])]))])):u("",!0),r.voucher.voucher_redemptions?u("",!0):(i(),s("div",ee,t[7]||(t[7]=[e("button",{class:"w-full p-2 rounded border"}," See Redemptions ",-1)]))),r.voucher.voucher_redemptions?(i(),s("div",te,[e("div",oe," Redemptions ("+n(r.voucher.voucher_redemptions.length)+") ",1),e("div",null,[(i(!0),s(b,null,A(r.voucher.voucher_redemptions,o=>(i(),s("div",se,[e("div",null,[e("div",ie," $"+n((o.redeemed_amount/100).toFixed(2)),1)]),e("div",re,[f(n(x(h).utc(o.created_at).fromNow())+" ",1),e("div",le," ("+n(x(h)(o.created_at))+") ",1)])]))),256))])])):u("",!0)])])]),_:1})],64))}};export{xe as default}; diff --git a/public/build/assets/VoucherRedemption-lvGKYbvZ.js b/public/build/assets/VoucherRedemption-D8qaxnfs.js similarity index 85% rename from public/build/assets/VoucherRedemption-lvGKYbvZ.js rename to public/build/assets/VoucherRedemption-D8qaxnfs.js index a8be2457..a7971c6f 100644 --- a/public/build/assets/VoucherRedemption-lvGKYbvZ.js +++ b/public/build/assets/VoucherRedemption-D8qaxnfs.js @@ -1 +1 @@ -import{_ as p}from"./AuthenticatedLayout-BSBk4Waj.js";import{r as y,o as x,c as a,a as i,u,w as n,F as b,b as l,Z as g,d,t as o,f as m,e as s,i as v}from"./app-zpP4mvhd.js";import{_ as V}from"./AdminTopNavigation-CKquTKkz.js";import{d as _}from"./dayjs.min-C0_0pMrK.js";import{r as k}from"./relativeTime-__Y28WrV.js";import{u as R}from"./utc-D2jiDVXM.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-6L6tESKC.js";const B={class:"grid grid-cols-2 gap-8 container mx-auto mt-8"},N={class:"card"},$={class:"opacity-25"},T={key:0,class:"font-bold text-red-500 text-sm"},w={class:"card"},D={key:0},C={key:1},F={class:"card"},j={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},q={class:"font-bold text-3xl"},E={key:0},I={class:"font-bold text-3xl"},M={class:"font-bold text-3xl"},S={class:"text-xs"},U={class:"card"},Z={key:0},z={key:1},W={__name:"VoucherRedemption",props:{id:{required:!0}},setup(h){_.extend(k),_.extend(R);const c=h,t=y({});x(()=>{f()});function f(){axios.get("/admin/voucher-redemptions/"+c.id+"?cached=false&relations=redeemedByUser,redeemedByTeam,voucher").then(r=>{t.value=r.data.data}).catch(r=>{console.log(r)})}return(r,e)=>(l(),a(b,null,[i(u(g),{title:"Voucher redemption"}),i(p,null,{header:n(()=>[i(V)]),default:n(()=>[d("div",B,[d("div",N,[e[0]||(e[0]=d("div",{class:"card-header"}," Voucher Redemption Details ",-1)),d("h2",$," ID: "+o(c.id),1),t.value.is_test?(l(),a("div",T," Test voucher redemption ")):m("",!0)]),d("div",w,[e[3]||(e[3]=d("div",{class:"card-header"}," Voucher and voucher set ",-1)),t.value.voucher_id?(l(),a("div",D,[e[1]||(e[1]=s(" Voucher ")),i(u(v),{href:r.route("admin.voucher",t.value.voucher_id)},{default:n(()=>[s("#"+o(t.value.voucher_id),1)]),_:1},8,["href"])])):m("",!0),t.value.voucher_set_id?(l(),a("div",C,[e[2]||(e[2]=s(" Voucher set ")),i(u(v),{href:r.route("admin.voucher-set",t.value.voucher_set_id)},{default:n(()=>[s("#"+o(t.value.voucher_set_id),1)]),_:1},8,["href"])])):m("",!0)])]),d("div",F,[e[7]||(e[7]=d("div",{class:"card-header"}," Voucher redemption details ",-1)),d("div",j,[d("div",null,[d("div",q," $"+o(t.value.redeemed_amount/100),1),e[4]||(e[4]=s(" Redeemed value "))]),t.value.voucher?(l(),a("div",E,[d("div",I," $"+o(t.value.voucher.voucher_value_remaining/100),1),e[5]||(e[5]=s(" Voucher remaining value "))])):m("",!0),d("div",null,[e[6]||(e[6]=d("div",null," Redeemed at ",-1)),d("div",M,o(u(_).utc(t.value.created_at).fromNow()),1),d("div",S," ("+o(u(_)(t.value.created_at))+") ",1)])])]),d("div",U,[e[8]||(e[8]=d("div",{class:"card-header"}," Redeemed by ",-1)),t.value.redeemed_by_user?(l(),a("div",Z,[i(u(v),{href:r.route("admin.user",t.value.redeemed_by_user_id)},{default:n(()=>[s(o(t.value.redeemed_by_user.name),1)]),_:1},8,["href"])])):m("",!0),t.value.redeemed_by_team?(l(),a("div",z,[i(u(v),{href:r.route("admin.team",t.value.redeemed_by_team_id)},{default:n(()=>[s(o(t.value.redeemed_by_team.name),1)]),_:1},8,["href"])])):m("",!0)]),e[9]||(e[9]=d("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{W as default}; +import{_ as p}from"./AuthenticatedLayout-DuLcXyKk.js";import{r as y,o as x,c as a,a as i,u,w as n,F as b,b as l,Z as g,d,t as o,f as m,e as s,i as v}from"./app-DolNWhzr.js";import{_ as V}from"./AdminTopNavigation-Bl9ElpaD.js";import{d as _}from"./dayjs.min-ilzO22t1.js";import{r as k}from"./relativeTime-BTl_QCHW.js";import{u as R}from"./utc-CWodzHWT.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";const B={class:"grid grid-cols-2 gap-8 container mx-auto mt-8"},N={class:"card"},$={class:"opacity-25"},T={key:0,class:"font-bold text-red-500 text-sm"},w={class:"card"},D={key:0},C={key:1},F={class:"card"},j={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},q={class:"font-bold text-3xl"},E={key:0},I={class:"font-bold text-3xl"},M={class:"font-bold text-3xl"},S={class:"text-xs"},U={class:"card"},Z={key:0},z={key:1},W={__name:"VoucherRedemption",props:{id:{required:!0}},setup(h){_.extend(k),_.extend(R);const c=h,t=y({});x(()=>{f()});function f(){axios.get("/admin/voucher-redemptions/"+c.id+"?cached=false&relations=redeemedByUser,redeemedByTeam,voucher").then(r=>{t.value=r.data.data}).catch(r=>{console.log(r)})}return(r,e)=>(l(),a(b,null,[i(u(g),{title:"Voucher redemption"}),i(p,null,{header:n(()=>[i(V)]),default:n(()=>[d("div",B,[d("div",N,[e[0]||(e[0]=d("div",{class:"card-header"}," Voucher Redemption Details ",-1)),d("h2",$," ID: "+o(c.id),1),t.value.is_test?(l(),a("div",T," Test voucher redemption ")):m("",!0)]),d("div",w,[e[3]||(e[3]=d("div",{class:"card-header"}," Voucher and voucher set ",-1)),t.value.voucher_id?(l(),a("div",D,[e[1]||(e[1]=s(" Voucher ")),i(u(v),{href:r.route("admin.voucher",t.value.voucher_id)},{default:n(()=>[s("#"+o(t.value.voucher_id),1)]),_:1},8,["href"])])):m("",!0),t.value.voucher_set_id?(l(),a("div",C,[e[2]||(e[2]=s(" Voucher set ")),i(u(v),{href:r.route("admin.voucher-set",t.value.voucher_set_id)},{default:n(()=>[s("#"+o(t.value.voucher_set_id),1)]),_:1},8,["href"])])):m("",!0)])]),d("div",F,[e[7]||(e[7]=d("div",{class:"card-header"}," Voucher redemption details ",-1)),d("div",j,[d("div",null,[d("div",q," $"+o(t.value.redeemed_amount/100),1),e[4]||(e[4]=s(" Redeemed value "))]),t.value.voucher?(l(),a("div",E,[d("div",I," $"+o(t.value.voucher.voucher_value_remaining/100),1),e[5]||(e[5]=s(" Voucher remaining value "))])):m("",!0),d("div",null,[e[6]||(e[6]=d("div",null," Redeemed at ",-1)),d("div",M,o(u(_).utc(t.value.created_at).fromNow()),1),d("div",S," ("+o(u(_)(t.value.created_at))+") ",1)])])]),d("div",U,[e[8]||(e[8]=d("div",{class:"card-header"}," Redeemed by ",-1)),t.value.redeemed_by_user?(l(),a("div",Z,[i(u(v),{href:r.route("admin.user",t.value.redeemed_by_user_id)},{default:n(()=>[s(o(t.value.redeemed_by_user.name),1)]),_:1},8,["href"])])):m("",!0),t.value.redeemed_by_team?(l(),a("div",z,[i(u(v),{href:r.route("admin.team",t.value.redeemed_by_team_id)},{default:n(()=>[s(o(t.value.redeemed_by_team.name),1)]),_:1},8,["href"])])):m("",!0)]),e[9]||(e[9]=d("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{W as default}; diff --git a/public/build/assets/VoucherRedemptions-DElMPIaF.js b/public/build/assets/VoucherRedemptions-I5DskLP3.js similarity index 78% rename from public/build/assets/VoucherRedemptions-DElMPIaF.js rename to public/build/assets/VoucherRedemptions-I5DskLP3.js index ee5981dd..91d629fd 100644 --- a/public/build/assets/VoucherRedemptions-DElMPIaF.js +++ b/public/build/assets/VoucherRedemptions-I5DskLP3.js @@ -1 +1 @@ -import{_ as y}from"./AuthenticatedLayout-BSBk4Waj.js";import{r as p,o as g,b as r,c as d,F as h,g as x,h as b,w as c,d as t,t as a,f as i,u as m,i as w,a as n,Z as k}from"./app-zpP4mvhd.js";import{_ as V}from"./AdminTopNavigation-CKquTKkz.js";import{P as B}from"./PaginatorComponent-Dk-0OsjZ.js";import{d as l}from"./dayjs.min-C0_0pMrK.js";import{r as C}from"./relativeTime-__Y28WrV.js";import{u as $}from"./utc-D2jiDVXM.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-6L6tESKC.js";import"./SecondaryButton-Dml8iKd5.js";const j={key:0},N={class:"border-b flex justify-between items-center py-2 sm:p-2"},P={class:"text-xs"},T={class:"font-bold text-sm"},D={key:0,class:"text-red-500 font-bold"},F={key:1},S={key:2},z={class:"flex justify-end items-center mt-4"},E={class:"w-full lg:w-1/3"},L={__name:"VoucherRedemptionsComponent",setup(v){l.extend(C),l.extend($);const u=p(50),s=p({});g(()=>{f()});function f(_=1){axios.get("/admin/voucher-redemptions?cached=false&page="+_+"&limit="+u.value+"&orderBy=created_at,desc&relations=redeemedByUser,redeemedByTeam").then(o=>{s.value=o.data.data}).catch(o=>{console.log(o)})}return(_,o)=>s.value.data&&s.value.data.length?(r(),d("div",j,[(r(!0),d(h,null,x(s.value.data,e=>(r(),b(m(w),{href:_.route("admin.voucher-redemption",e.id),class:"hover:no-underline hover:opacity-75"},{default:c(()=>[t("div",N,[t("div",P,[t("div",T," #"+a(e.id),1),e.is_test?(r(),d("div",D," Test voucher redemption ")):i("",!0),t("div",null," Voucher: #"+a(e.voucher_id),1),t("div",null," Voucher set: #"+a(e.voucher_set_id),1),e.redeemed_by_user&&e.redeemed_by_team?(r(),d("div",F," Redeemed by: "+a(e.redeemed_by_user.name)+" ("+a(e.redeemed_by_team.name)+") ",1)):i("",!0),t("div",null," Redeemed amount: $"+a(e.redeemed_amount/100),1),e.created_by_team?(r(),d("div",S," Created at: "+a(m(l).utc(e.created_at).fromNow())+" ("+a(m(l)(e.created_at))+") ",1)):i("",!0)]),o[0]||(o[0]=t("div",null,[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256)),t("div",z,[t("div",E,[n(B,{onSetDataPage:f,"pagination-data":s.value},null,8,["pagination-data"])])])])):i("",!0)}},M={class:"card"},W={__name:"VoucherRedemptions",setup(v){return(u,s)=>(r(),d(h,null,[n(m(k),{title:"Voucher redemptions"}),n(y,null,{header:c(()=>[n(V)]),default:c(()=>[t("div",M,[s[0]||(s[0]=t("div",{class:"card-header"}," Voucher Redemptions ",-1)),n(L)])]),_:1})],64))}};export{W as default}; +import{_ as y}from"./AuthenticatedLayout-DuLcXyKk.js";import{r as p,o as g,b as r,c as d,F as h,g as x,h as b,w as c,d as t,t as a,f as i,u as m,i as w,a as n,Z as k}from"./app-DolNWhzr.js";import{_ as V}from"./AdminTopNavigation-Bl9ElpaD.js";import{P as B}from"./PaginatorComponent-DpqX95xS.js";import{d as l}from"./dayjs.min-ilzO22t1.js";import{r as C}from"./relativeTime-BTl_QCHW.js";import{u as $}from"./utc-CWodzHWT.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./SecondaryButton-DL_I_H3U.js";const j={key:0},N={class:"border-b flex justify-between items-center py-2 sm:p-2"},P={class:"text-xs"},T={class:"font-bold text-sm"},D={key:0,class:"text-red-500 font-bold"},F={key:1},S={key:2},z={class:"flex justify-end items-center mt-4"},E={class:"w-full lg:w-1/3"},L={__name:"VoucherRedemptionsComponent",setup(v){l.extend(C),l.extend($);const u=p(50),s=p({});g(()=>{f()});function f(_=1){axios.get("/admin/voucher-redemptions?cached=false&page="+_+"&limit="+u.value+"&orderBy=created_at,desc&relations=redeemedByUser,redeemedByTeam").then(o=>{s.value=o.data.data}).catch(o=>{console.log(o)})}return(_,o)=>s.value.data&&s.value.data.length?(r(),d("div",j,[(r(!0),d(h,null,x(s.value.data,e=>(r(),b(m(w),{href:_.route("admin.voucher-redemption",e.id),class:"hover:no-underline hover:opacity-75"},{default:c(()=>[t("div",N,[t("div",P,[t("div",T," #"+a(e.id),1),e.is_test?(r(),d("div",D," Test voucher redemption ")):i("",!0),t("div",null," Voucher: #"+a(e.voucher_id),1),t("div",null," Voucher set: #"+a(e.voucher_set_id),1),e.redeemed_by_user&&e.redeemed_by_team?(r(),d("div",F," Redeemed by: "+a(e.redeemed_by_user.name)+" ("+a(e.redeemed_by_team.name)+") ",1)):i("",!0),t("div",null," Redeemed amount: $"+a(e.redeemed_amount/100),1),e.created_by_team?(r(),d("div",S," Created at: "+a(m(l).utc(e.created_at).fromNow())+" ("+a(m(l)(e.created_at))+") ",1)):i("",!0)]),o[0]||(o[0]=t("div",null,[t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256)),t("div",z,[t("div",E,[n(B,{onSetDataPage:f,"pagination-data":s.value},null,8,["pagination-data"])])])])):i("",!0)}},M={class:"card"},W={__name:"VoucherRedemptions",setup(v){return(u,s)=>(r(),d(h,null,[n(m(k),{title:"Voucher redemptions"}),n(y,null,{header:c(()=>[n(V)]),default:c(()=>[t("div",M,[s[0]||(s[0]=t("div",{class:"card-header"}," Voucher Redemptions ",-1)),n(L)])]),_:1})],64))}};export{W as default}; diff --git a/public/build/assets/VoucherSet-C_M-yuj1.js b/public/build/assets/VoucherSet-DZ--1ZAq.js similarity index 94% rename from public/build/assets/VoucherSet-C_M-yuj1.js rename to public/build/assets/VoucherSet-DZ--1ZAq.js index d6017338..8cab8864 100644 --- a/public/build/assets/VoucherSet-C_M-yuj1.js +++ b/public/build/assets/VoucherSet-DZ--1ZAq.js @@ -1 +1 @@ -import{S as L,_ as W}from"./AuthenticatedLayout-BSBk4Waj.js";import{r as k,p as D,b as l,c as o,d as e,l as q,q as U,F as g,g as $,k as C,f as i,t as d,o as z,a as h,u as m,w as _,Z as I,e as c,i as M,h as A}from"./app-zpP4mvhd.js";import{_ as O}from"./AdminTopNavigation-CKquTKkz.js";import{P as B}from"./PrimaryButton-6L6tESKC.js";import{_ as P}from"./SecondaryButton-Dml8iKd5.js";import{d as p}from"./dayjs.min-C0_0pMrK.js";import{r as Z}from"./relativeTime-__Y28WrV.js";import{u as G}from"./utc-D2jiDVXM.js";import{_ as J}from"./VouchersComponent-DQsV5xCe.js";import{D as E}from"./DangerButton-cN2oNBEm.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PaginatorComponent-Dk-0OsjZ.js";const K={class:"h-full"},Q={key:0,class:""},X={key:0,class:"mb-8"},Y={class:"flex space-x-4"},ee=["innerHTML"],te=["innerHTML"],se={key:1,class:"mb-8"},le=["onClick"],ae={class:"flex space-x-4"},oe=["innerHTML"],re={key:2,class:"my-8"},ne=["onClick"],ie={class:"flex"},de=["innerHTML"],ue={key:3,class:"my-8"},ve=["onClick"],ce={class:"flex"},me=["innerHTML"],he={class:"ml-2"},_e=["innerHTML"],fe={key:0,class:"absolute top-48 left-0 w-full h-full min-h-full min-w-full"},pe={class:"bg-white border rounded-lg p-4 mt-6 w-3/4 mx-auto z-20 relative overflow-y-scroll max-h-screen"},xe={class:"text-2xl"},ye={__name:"AdminSearchComponent",props:{filterToDataSets:{required:!1,type:String,default:"users,teams,vouchers,voucherSets"}},emits:["itemWasSelected"],setup(N,{emit:T}){const x=N,s=k(""),v=k({users:[],teams:[],vouchers:[],voucherSets:[]}),V=T,w=k(!1),y=k(!1);D(s,()=>{s.value.length>=3?j():(w.value=!1,y.value=!1)}),D(v,()=>{w.value=!1,y.value=!1,s.value.length>=3&&(v.value.users.length||v.value.teams.length||v.value.vouchers.length||v.value.voucherSets.length?w.value=!0:y.value=!0)});function j(){s.value&&s.value.length>=1&&axios.get("/admin/search?cached=false&query="+s.value).then(a=>{v.value=a.data.data}).catch(a=>{L.fire({icon:"error",title:"Oops!",text:a.response.data.message})})}function u(a){let r=new RegExp(s.value,"ig"),n=a.matchAll(r);if(n.length===0)return a;let b=0;return n.forEach(S=>{const F=a.slice(0,S.index+b),R=a.slice(S.index+b+S[0].length),H=''+S[0]+"";a=F+H+R,b+=H.length-S[0].length}),a}function t(){v.value={users:[],teams:[],vouchers:[],voucherSets:[]}}function f(a){V("itemWasSelected",a),s.value="",t()}return(a,r)=>(l(),o(g,null,[e("div",null,[q(e("input",{id:"search-box","onUpdate:modelValue":r[0]||(r[0]=n=>s.value=n),autofocus:"",class:"border-gray-200 placeholder:text-gray-400 rounded p-3 w-full text-blue",placeholder:"Search..",type:"search"},null,512),[[U,s.value]]),r[3]||(r[3]=e("div",{class:"text-xs mt-1 text-gray italic"},"Min. 3 chars",-1))]),e("div",K,[w.value?(l(),o("div",Q,[e("div",null,[v.value.users.length>0&&x.filterToDataSets.includes("users")?(l(),o("div",X,[r[5]||(r[5]=e("div",{class:"font-bold text-gray-300 mb-1"}," Users ",-1)),e("div",null,[(l(!0),o(g,null,$(v.value.users,n=>(l(),o("div",null,[e("a",{href:"#",onClick:r[1]||(r[1]=C(b=>f(a.voucher),["prevent"])),class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[e("div",Y,[e("div",{innerHTML:u(n.name)},null,8,ee),e("div",{innerHTML:u(n.email)},null,8,te)]),r[4]||(r[4]=e("i",{class:"fa fa-chevron-right flex items-center"},null,-1))])]))),256))])])):i("",!0),v.value.teams.length>0&&x.filterToDataSets.includes("teams")?(l(),o("div",se,[r[7]||(r[7]=e("div",{class:"font-bold text-gray-300 mb-1"}," Teams ",-1)),e("div",null,[(l(!0),o(g,null,$(v.value.teams,n=>(l(),o("div",null,[e("a",{href:"#",onClick:C(b=>f(n),["prevent"]),class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[e("div",ae,[e("div",{innerHTML:u(n.name)},null,8,oe)]),r[6]||(r[6]=e("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,le)]))),256))])])):i("",!0),v.value.voucherSets.length>0&&x.filterToDataSets.includes("voucherSets")?(l(),o("div",re,[r[9]||(r[9]=e("div",{class:"font-bold text-gray-300 mb-1"}," Voucher Sets ",-1)),e("div",null,[(l(!0),o(g,null,$(v.value.voucherSets,n=>(l(),o("div",null,[e("a",{href:"#",onClick:C(b=>f(n),["prevent"]),class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[e("div",ie,[e("div",{innerHTML:u(n.id)},null,8,de)]),r[8]||(r[8]=e("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,ne)]))),256))])])):i("",!0),v.value.vouchers.length>0&&x.filterToDataSets.includes("vouchers")?(l(),o("div",ue,[r[11]||(r[11]=e("div",{class:"font-bold text-gray-300 mb-1"}," Vouchers ",-1)),e("div",null,[(l(!0),o(g,null,$(v.value.vouchers,n=>(l(),o("div",null,[e("a",{href:"#",onClick:C(b=>f(n),["prevent"]),class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[e("div",ce,[e("div",{innerHTML:u(n.id)},null,8,me),e("div",he,[e("div",{innerHTML:u("("+n.voucher_short_code+")")},null,8,_e)])]),r[10]||(r[10]=e("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,ve)]))),256))])])):i("",!0)]),y.value?(l(),o("div",fe,[e("div",{class:"bg-black fixed top-18 w-full h-screen opacity-60 z-10",onClick:r[2]||(r[2]=n=>y.value=!1)}),e("div",pe,[e("div",xe,'No Search Results for "'+d(s.value)+'"',1)])])):i("",!0)])):i("",!0)])],64))}},ge={class:"card"},be={key:0,class:"font-bold text-red-500 text-sm"},we={class:"card"},ke={class:"card-header"},$e={key:0,class:"text-red-500 text-xs font-bold"},Te={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},Se={class:"font-bold text-3xl"},Me={class:"font-bold text-3xl"},Ce={class:"font-bold text-3xl"},Le={class:"font-bold text-3xl"},Ne={key:0},Ve={class:"font-bold text-3xl"},je={class:"text-xs"},Ae={key:1},Be={class:"font-bold text-3xl"},He={class:"text-xs"},De={class:"card"},Ee={key:0},Fe={key:1,class:"text-xs mt-2"},Re={class:"card"},We={key:0},qe={class:"card"},Ue={class:"card-header flex justify-between items-center"},ze={class:"flex justify-end"},Ie={key:0},Oe={key:1},Pe={key:0},Ze={key:1},Ge={class:"border-b py-2 flex justify-between items-center"},Je={class:"flex justify-end gap-4 items-center"},Ke={key:0},Qe={class:"card"},Xe={key:0},Ye={class:"flex justify-between items-center py-4"},et={class:"text-xs"},tt={class:"flex items-center gap-x-2"},st={class:"text-xs text-right"},lt={key:0},at={class:"flex justify-end"},ot={class:"card"},yt={__name:"VoucherSet",props:{id:{required:!0}},setup(N){p.extend(Z),p.extend(G);const T=N,x=k(!1),s=k({});z(()=>{y()});function v(){x.value=!0}function V(){x.value=!1}function w(u){L.fire({icon:"warning",title:"Add "+u.name+" as merchant for this voucher set?",html:"
Note that the selected team must be a merchant of the voucher set's service team.
",showCancelButton:!0,confirmButtonText:"Add please!"}).then(t=>{if(t.isConfirmed){let f={voucher_set_id:s.value.id,merchant_team_id:u.id};axios.post("/admin/voucher-set-merchant-teams",f).then(a=>{y()}).catch(a=>{L.fire({icon:"error",title:"Oops..",text:a.response.data.meta.message})})}})}function y(){axios.get("/admin/voucher-sets/"+T.id+"?cached=false&relations=createdByTeam,allocatedToServiceTeam,voucherSetMerchantTeams.merchantTeam,voucherSetMerchantTeamApprovalRequests.merchantUser,voucherSetMerchantTeamApprovalRequests.merchantTeam").then(u=>{s.value=u.data.data}).catch(u=>{console.log(u)})}function j(u){L.fire({icon:"warning",title:"Force-remove Merchant?",html:'
Be careful here. This removes this merchant from involvement in this voucher set, and deletes all previous merchant approval requests, regardless of previous state.
Any emails sent to this merchant previously requesting involvement will not work, as the approval request will have been revoked. This merchant team will not be able to redeem vouchers for this set; they may continue to redeem vouchers for other sets they are involved in.
',showCancelButton:!0,confirmButtonText:"Remove please!"}).then(t=>{t.isConfirmed&&axios.delete("/admin/voucher-set-merchant-teams/"+u.id).then(f=>{y()}).catch(f=>{console.log(f)})})}return(u,t)=>(l(),o(g,null,[h(m(I),{title:"Voucher set"}),h(W,null,{header:_(()=>[h(O)]),default:_(()=>{var f;return[e("div",ge,[e("h2",null,d(T.id),1),s.value.is_test?(l(),o("div",be," Test voucher set ")):i("",!0)]),e("div",we,[e("div",ke,[t[2]||(t[2]=c(" Voucher set details ")),s.value.voucher_generation_finished_at?i("",!0):(l(),o("span",$e,"Vouchers not generated yet."))]),e("div",Te,[e("div",null,[e("div",Se," $"+d(s.value.total_set_value/100),1),t[3]||(t[3]=c(" Total set value "))]),e("div",null,[e("div",Me," $"+d(s.value.total_set_value_remaining/100),1),t[4]||(t[4]=c(" Total remaining value "))]),e("div",null,[e("div",Ce,d(s.value.num_vouchers),1),t[5]||(t[5]=c(" # Vouchers "))]),e("div",null,[e("div",Le,d(s.value.num_voucher_redemptions),1),t[6]||(t[6]=c(" # Redemptions "))]),s.value.last_redemption_at?(l(),o("div",Ne,[t[7]||(t[7]=e("div",null," Last redeemed ",-1)),e("div",Ve,d(m(p).utc(s.value.last_redemption_at).fromNow()),1),e("div",je," ("+d(m(p)(s.value.last_redemption_at))+") ",1)])):i("",!0),s.value.expires_at?(l(),o("div",Ae,[t[8]||(t[8]=e("div",null," Expires ",-1)),e("div",Be,d(m(p).utc(s.value.expires_at).fromNow()),1),e("div",He," ("+d(m(p)(s.value.expires_at))+") ",1)])):i("",!0)])]),e("div",De,[t[9]||(t[9]=e("div",{class:"card-header"}," Created by team ",-1)),s.value.created_by_team?(l(),o("div",Ee,[h(m(M),{href:u.route("admin.team",{id:s.value.created_by_team_id})},{default:_(()=>[c(d(s.value.created_by_team.name),1)]),_:1},8,["href"])])):i("",!0),s.value.created_at?(l(),o("div",Fe," Created at: "+d(m(p).utc(s.value.created_at).fromNow())+" ("+d(m(p)(s.value.created_at))+") ",1)):i("",!0)]),e("div",Re,[t[10]||(t[10]=e("div",{class:"card-header"}," Allocated to team ",-1)),s.value.allocated_to_service_team?(l(),o("div",We,[h(m(M),{href:u.route("admin.team",{id:s.value.allocated_to_service_team_id})},{default:_(()=>[c(d(s.value.allocated_to_service_team.name),1)]),_:1},8,["href"])])):i("",!0)]),e("div",qe,[e("div",Ue,[t[13]||(t[13]=e("div",null," Merchant teams ",-1)),e("div",ze,[x.value?(l(),o("div",Oe,[h(B,{onClick:t[1]||(t[1]=a=>V()),class:"ms-4"},{default:_(()=>t[12]||(t[12]=[c(" Cancel ")])),_:1})])):(l(),o("div",Ie,[h(B,{onClick:t[0]||(t[0]=a=>v()),class:"ms-4"},{default:_(()=>t[11]||(t[11]=[c(" Add Merchant Team ")])),_:1})]))])]),x.value?(l(),o("div",Pe,[t[14]||(t[14]=e("div",{class:"py-2 text-xs"},"Select merchant team...",-1)),h(ye,{"filter-to-data-sets":"teams",onItemWasSelected:w})])):i("",!0),s.value.voucher_set_merchant_teams?(l(),o("div",Ze,[(l(!0),o(g,null,$(s.value.voucher_set_merchant_teams,a=>(l(),o("div",null,[e("div",Ge,[h(m(M),{href:u.route("admin.team",{id:a.merchant_team_id})},{default:_(()=>{var r;return[c(d(((r=a.merchant_team)==null?void 0:r.name)??"Merchant team"),1)]}),_:2},1032,["href"]),e("div",Je,[a.voucher_set_merchant_team_approval_request_id?(l(),o("div",Ke,t[15]||(t[15]=[e("div",{class:"text-xs"}," Approved. ",-1)]))):i("",!0),h(E,{onClick:r=>j(a)},{default:_(()=>t[16]||(t[16]=[c(" Force Remove? ")])),_:2},1032,["onClick"])])])]))),256))])):i("",!0)]),e("div",Qe,[t[21]||(t[21]=e("div",{class:"card-header"},[e("div",null," Merchant team approval requests ")],-1)),t[22]||(t[22]=e("div",{class:"text-xs"}," We only need one user from any merchant team member (per team) to approve that team's participation as merchants. ",-1)),(f=s.value.voucher_set_merchant_team_approval_requests)!=null&&f.length?(l(),o("div",Xe,[(l(!0),o(g,null,$(s.value.voucher_set_merchant_team_approval_requests,a=>{var r;return l(),o("div",null,[e("div",Ye,[e("div",null,[e("div",null,[h(m(M),{class:"font-bold",href:"/admin/team/"+a.merchant_team_id},{default:_(()=>{var n;return[c(d((n=a.merchant_team)==null?void 0:n.name),1)]}),_:2},1032,["href"]),t[17]||(t[17]=c(" | ")),h(m(M),{href:"/admin/user/"+a.merchant_user_id},{default:_(()=>{var n;return[c(d((n=a.merchant_user)==null?void 0:n.name),1)]}),_:2},1032,["href"])]),e("div",et,d((r=a.merchant_user)==null?void 0:r.email),1)]),e("div",null,[e("div",tt,[e("div",st,[e("div",null," Created: "+d(m(p).utc(a.created_at).fromNow()),1),a.approval_status_last_updated_at?(l(),o("div",lt," Last actioned: "+d(m(p).utc(a.approval_status_last_updated_at).fromNow()),1)):i("",!0)]),e("div",at,[a.approval_status==="ready"?(l(),A(P,{key:0,class:"opacity-40"},{default:_(()=>t[18]||(t[18]=[c(" Ready ")])),_:1})):i("",!0),a.approval_status==="approved"?(l(),A(B,{key:1},{default:_(()=>t[19]||(t[19]=[c(" Approved ")])),_:1})):i("",!0),a.approval_status==="rejected"?(l(),A(E,{key:2},{default:_(()=>t[20]||(t[20]=[c(" Rejected ")])),_:1})):i("",!0)])])])])])}),256))])):i("",!0)]),e("div",ot,[t[23]||(t[23]=e("div",{class:"card-header"}," Vouchers ",-1)),h(J,{"voucher-set-id":T.id},null,8,["voucher-set-id"])]),t[24]||(t[24]=e("div",{class:"pb-32"},null,-1))]}),_:1})],64))}};export{yt as default}; +import{S as L,_ as W}from"./AuthenticatedLayout-DuLcXyKk.js";import{r as k,p as D,b as l,c as o,d as e,l as q,q as U,F as g,g as $,k as C,f as i,t as d,o as z,a as h,u as m,w as _,Z as I,e as c,i as M,h as A}from"./app-DolNWhzr.js";import{_ as O}from"./AdminTopNavigation-Bl9ElpaD.js";import{P as B}from"./PrimaryButton-BtqGl7rR.js";import{_ as P}from"./SecondaryButton-DL_I_H3U.js";import{d as p}from"./dayjs.min-ilzO22t1.js";import{r as Z}from"./relativeTime-BTl_QCHW.js";import{u as G}from"./utc-CWodzHWT.js";import{_ as J}from"./VouchersComponent-o-O6pMZi.js";import{D as E}from"./DangerButton-Bm5iDOLt.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PaginatorComponent-DpqX95xS.js";const K={class:"h-full"},Q={key:0,class:""},X={key:0,class:"mb-8"},Y={class:"flex space-x-4"},ee=["innerHTML"],te=["innerHTML"],se={key:1,class:"mb-8"},le=["onClick"],ae={class:"flex space-x-4"},oe=["innerHTML"],re={key:2,class:"my-8"},ne=["onClick"],ie={class:"flex"},de=["innerHTML"],ue={key:3,class:"my-8"},ve=["onClick"],ce={class:"flex"},me=["innerHTML"],he={class:"ml-2"},_e=["innerHTML"],fe={key:0,class:"absolute top-48 left-0 w-full h-full min-h-full min-w-full"},pe={class:"bg-white border rounded-lg p-4 mt-6 w-3/4 mx-auto z-20 relative overflow-y-scroll max-h-screen"},xe={class:"text-2xl"},ye={__name:"AdminSearchComponent",props:{filterToDataSets:{required:!1,type:String,default:"users,teams,vouchers,voucherSets"}},emits:["itemWasSelected"],setup(N,{emit:T}){const x=N,s=k(""),v=k({users:[],teams:[],vouchers:[],voucherSets:[]}),V=T,w=k(!1),y=k(!1);D(s,()=>{s.value.length>=3?j():(w.value=!1,y.value=!1)}),D(v,()=>{w.value=!1,y.value=!1,s.value.length>=3&&(v.value.users.length||v.value.teams.length||v.value.vouchers.length||v.value.voucherSets.length?w.value=!0:y.value=!0)});function j(){s.value&&s.value.length>=1&&axios.get("/admin/search?cached=false&query="+s.value).then(a=>{v.value=a.data.data}).catch(a=>{L.fire({icon:"error",title:"Oops!",text:a.response.data.message})})}function u(a){let r=new RegExp(s.value,"ig"),n=a.matchAll(r);if(n.length===0)return a;let b=0;return n.forEach(S=>{const F=a.slice(0,S.index+b),R=a.slice(S.index+b+S[0].length),H=''+S[0]+"";a=F+H+R,b+=H.length-S[0].length}),a}function t(){v.value={users:[],teams:[],vouchers:[],voucherSets:[]}}function f(a){V("itemWasSelected",a),s.value="",t()}return(a,r)=>(l(),o(g,null,[e("div",null,[q(e("input",{id:"search-box","onUpdate:modelValue":r[0]||(r[0]=n=>s.value=n),autofocus:"",class:"border-gray-200 placeholder:text-gray-400 rounded p-3 w-full text-blue",placeholder:"Search..",type:"search"},null,512),[[U,s.value]]),r[3]||(r[3]=e("div",{class:"text-xs mt-1 text-gray italic"},"Min. 3 chars",-1))]),e("div",K,[w.value?(l(),o("div",Q,[e("div",null,[v.value.users.length>0&&x.filterToDataSets.includes("users")?(l(),o("div",X,[r[5]||(r[5]=e("div",{class:"font-bold text-gray-300 mb-1"}," Users ",-1)),e("div",null,[(l(!0),o(g,null,$(v.value.users,n=>(l(),o("div",null,[e("a",{href:"#",onClick:r[1]||(r[1]=C(b=>f(a.voucher),["prevent"])),class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[e("div",Y,[e("div",{innerHTML:u(n.name)},null,8,ee),e("div",{innerHTML:u(n.email)},null,8,te)]),r[4]||(r[4]=e("i",{class:"fa fa-chevron-right flex items-center"},null,-1))])]))),256))])])):i("",!0),v.value.teams.length>0&&x.filterToDataSets.includes("teams")?(l(),o("div",se,[r[7]||(r[7]=e("div",{class:"font-bold text-gray-300 mb-1"}," Teams ",-1)),e("div",null,[(l(!0),o(g,null,$(v.value.teams,n=>(l(),o("div",null,[e("a",{href:"#",onClick:C(b=>f(n),["prevent"]),class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[e("div",ae,[e("div",{innerHTML:u(n.name)},null,8,oe)]),r[6]||(r[6]=e("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,le)]))),256))])])):i("",!0),v.value.voucherSets.length>0&&x.filterToDataSets.includes("voucherSets")?(l(),o("div",re,[r[9]||(r[9]=e("div",{class:"font-bold text-gray-300 mb-1"}," Voucher Sets ",-1)),e("div",null,[(l(!0),o(g,null,$(v.value.voucherSets,n=>(l(),o("div",null,[e("a",{href:"#",onClick:C(b=>f(n),["prevent"]),class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[e("div",ie,[e("div",{innerHTML:u(n.id)},null,8,de)]),r[8]||(r[8]=e("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,ne)]))),256))])])):i("",!0),v.value.vouchers.length>0&&x.filterToDataSets.includes("vouchers")?(l(),o("div",ue,[r[11]||(r[11]=e("div",{class:"font-bold text-gray-300 mb-1"}," Vouchers ",-1)),e("div",null,[(l(!0),o(g,null,$(v.value.vouchers,n=>(l(),o("div",null,[e("a",{href:"#",onClick:C(b=>f(n),["prevent"]),class:"flex justify-between w-full py-2 border-b",tabindex:"0"},[e("div",ce,[e("div",{innerHTML:u(n.id)},null,8,me),e("div",he,[e("div",{innerHTML:u("("+n.voucher_short_code+")")},null,8,_e)])]),r[10]||(r[10]=e("i",{class:"fa fa-chevron-right flex items-center"},null,-1))],8,ve)]))),256))])])):i("",!0)]),y.value?(l(),o("div",fe,[e("div",{class:"bg-black fixed top-18 w-full h-screen opacity-60 z-10",onClick:r[2]||(r[2]=n=>y.value=!1)}),e("div",pe,[e("div",xe,'No Search Results for "'+d(s.value)+'"',1)])])):i("",!0)])):i("",!0)])],64))}},ge={class:"card"},be={key:0,class:"font-bold text-red-500 text-sm"},we={class:"card"},ke={class:"card-header"},$e={key:0,class:"text-red-500 text-xs font-bold"},Te={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},Se={class:"font-bold text-3xl"},Me={class:"font-bold text-3xl"},Ce={class:"font-bold text-3xl"},Le={class:"font-bold text-3xl"},Ne={key:0},Ve={class:"font-bold text-3xl"},je={class:"text-xs"},Ae={key:1},Be={class:"font-bold text-3xl"},He={class:"text-xs"},De={class:"card"},Ee={key:0},Fe={key:1,class:"text-xs mt-2"},Re={class:"card"},We={key:0},qe={class:"card"},Ue={class:"card-header flex justify-between items-center"},ze={class:"flex justify-end"},Ie={key:0},Oe={key:1},Pe={key:0},Ze={key:1},Ge={class:"border-b py-2 flex justify-between items-center"},Je={class:"flex justify-end gap-4 items-center"},Ke={key:0},Qe={class:"card"},Xe={key:0},Ye={class:"flex justify-between items-center py-4"},et={class:"text-xs"},tt={class:"flex items-center gap-x-2"},st={class:"text-xs text-right"},lt={key:0},at={class:"flex justify-end"},ot={class:"card"},yt={__name:"VoucherSet",props:{id:{required:!0}},setup(N){p.extend(Z),p.extend(G);const T=N,x=k(!1),s=k({});z(()=>{y()});function v(){x.value=!0}function V(){x.value=!1}function w(u){L.fire({icon:"warning",title:"Add "+u.name+" as merchant for this voucher set?",html:"
Note that the selected team must be a merchant of the voucher set's service team.
",showCancelButton:!0,confirmButtonText:"Add please!"}).then(t=>{if(t.isConfirmed){let f={voucher_set_id:s.value.id,merchant_team_id:u.id};axios.post("/admin/voucher-set-merchant-teams",f).then(a=>{y()}).catch(a=>{L.fire({icon:"error",title:"Oops..",text:a.response.data.meta.message})})}})}function y(){axios.get("/admin/voucher-sets/"+T.id+"?cached=false&relations=createdByTeam,allocatedToServiceTeam,voucherSetMerchantTeams.merchantTeam,voucherSetMerchantTeamApprovalRequests.merchantUser,voucherSetMerchantTeamApprovalRequests.merchantTeam").then(u=>{s.value=u.data.data}).catch(u=>{console.log(u)})}function j(u){L.fire({icon:"warning",title:"Force-remove Merchant?",html:'
Be careful here. This removes this merchant from involvement in this voucher set, and deletes all previous merchant approval requests, regardless of previous state.
Any emails sent to this merchant previously requesting involvement will not work, as the approval request will have been revoked. This merchant team will not be able to redeem vouchers for this set; they may continue to redeem vouchers for other sets they are involved in.
',showCancelButton:!0,confirmButtonText:"Remove please!"}).then(t=>{t.isConfirmed&&axios.delete("/admin/voucher-set-merchant-teams/"+u.id).then(f=>{y()}).catch(f=>{console.log(f)})})}return(u,t)=>(l(),o(g,null,[h(m(I),{title:"Voucher set"}),h(W,null,{header:_(()=>[h(O)]),default:_(()=>{var f;return[e("div",ge,[e("h2",null,d(T.id),1),s.value.is_test?(l(),o("div",be," Test voucher set ")):i("",!0)]),e("div",we,[e("div",ke,[t[2]||(t[2]=c(" Voucher set details ")),s.value.voucher_generation_finished_at?i("",!0):(l(),o("span",$e,"Vouchers not generated yet."))]),e("div",Te,[e("div",null,[e("div",Se," $"+d(s.value.total_set_value/100),1),t[3]||(t[3]=c(" Total set value "))]),e("div",null,[e("div",Me," $"+d(s.value.total_set_value_remaining/100),1),t[4]||(t[4]=c(" Total remaining value "))]),e("div",null,[e("div",Ce,d(s.value.num_vouchers),1),t[5]||(t[5]=c(" # Vouchers "))]),e("div",null,[e("div",Le,d(s.value.num_voucher_redemptions),1),t[6]||(t[6]=c(" # Redemptions "))]),s.value.last_redemption_at?(l(),o("div",Ne,[t[7]||(t[7]=e("div",null," Last redeemed ",-1)),e("div",Ve,d(m(p).utc(s.value.last_redemption_at).fromNow()),1),e("div",je," ("+d(m(p)(s.value.last_redemption_at))+") ",1)])):i("",!0),s.value.expires_at?(l(),o("div",Ae,[t[8]||(t[8]=e("div",null," Expires ",-1)),e("div",Be,d(m(p).utc(s.value.expires_at).fromNow()),1),e("div",He," ("+d(m(p)(s.value.expires_at))+") ",1)])):i("",!0)])]),e("div",De,[t[9]||(t[9]=e("div",{class:"card-header"}," Created by team ",-1)),s.value.created_by_team?(l(),o("div",Ee,[h(m(M),{href:u.route("admin.team",{id:s.value.created_by_team_id})},{default:_(()=>[c(d(s.value.created_by_team.name),1)]),_:1},8,["href"])])):i("",!0),s.value.created_at?(l(),o("div",Fe," Created at: "+d(m(p).utc(s.value.created_at).fromNow())+" ("+d(m(p)(s.value.created_at))+") ",1)):i("",!0)]),e("div",Re,[t[10]||(t[10]=e("div",{class:"card-header"}," Allocated to team ",-1)),s.value.allocated_to_service_team?(l(),o("div",We,[h(m(M),{href:u.route("admin.team",{id:s.value.allocated_to_service_team_id})},{default:_(()=>[c(d(s.value.allocated_to_service_team.name),1)]),_:1},8,["href"])])):i("",!0)]),e("div",qe,[e("div",Ue,[t[13]||(t[13]=e("div",null," Merchant teams ",-1)),e("div",ze,[x.value?(l(),o("div",Oe,[h(B,{onClick:t[1]||(t[1]=a=>V()),class:"ms-4"},{default:_(()=>t[12]||(t[12]=[c(" Cancel ")])),_:1})])):(l(),o("div",Ie,[h(B,{onClick:t[0]||(t[0]=a=>v()),class:"ms-4"},{default:_(()=>t[11]||(t[11]=[c(" Add Merchant Team ")])),_:1})]))])]),x.value?(l(),o("div",Pe,[t[14]||(t[14]=e("div",{class:"py-2 text-xs"},"Select merchant team...",-1)),h(ye,{"filter-to-data-sets":"teams",onItemWasSelected:w})])):i("",!0),s.value.voucher_set_merchant_teams?(l(),o("div",Ze,[(l(!0),o(g,null,$(s.value.voucher_set_merchant_teams,a=>(l(),o("div",null,[e("div",Ge,[h(m(M),{href:u.route("admin.team",{id:a.merchant_team_id})},{default:_(()=>{var r;return[c(d(((r=a.merchant_team)==null?void 0:r.name)??"Merchant team"),1)]}),_:2},1032,["href"]),e("div",Je,[a.voucher_set_merchant_team_approval_request_id?(l(),o("div",Ke,t[15]||(t[15]=[e("div",{class:"text-xs"}," Approved. ",-1)]))):i("",!0),h(E,{onClick:r=>j(a)},{default:_(()=>t[16]||(t[16]=[c(" Force Remove? ")])),_:2},1032,["onClick"])])])]))),256))])):i("",!0)]),e("div",Qe,[t[21]||(t[21]=e("div",{class:"card-header"},[e("div",null," Merchant team approval requests ")],-1)),t[22]||(t[22]=e("div",{class:"text-xs"}," We only need one user from any merchant team member (per team) to approve that team's participation as merchants. ",-1)),(f=s.value.voucher_set_merchant_team_approval_requests)!=null&&f.length?(l(),o("div",Xe,[(l(!0),o(g,null,$(s.value.voucher_set_merchant_team_approval_requests,a=>{var r;return l(),o("div",null,[e("div",Ye,[e("div",null,[e("div",null,[h(m(M),{class:"font-bold",href:"/admin/team/"+a.merchant_team_id},{default:_(()=>{var n;return[c(d((n=a.merchant_team)==null?void 0:n.name),1)]}),_:2},1032,["href"]),t[17]||(t[17]=c(" | ")),h(m(M),{href:"/admin/user/"+a.merchant_user_id},{default:_(()=>{var n;return[c(d((n=a.merchant_user)==null?void 0:n.name),1)]}),_:2},1032,["href"])]),e("div",et,d((r=a.merchant_user)==null?void 0:r.email),1)]),e("div",null,[e("div",tt,[e("div",st,[e("div",null," Created: "+d(m(p).utc(a.created_at).fromNow()),1),a.approval_status_last_updated_at?(l(),o("div",lt," Last actioned: "+d(m(p).utc(a.approval_status_last_updated_at).fromNow()),1)):i("",!0)]),e("div",at,[a.approval_status==="ready"?(l(),A(P,{key:0,class:"opacity-40"},{default:_(()=>t[18]||(t[18]=[c(" Ready ")])),_:1})):i("",!0),a.approval_status==="approved"?(l(),A(B,{key:1},{default:_(()=>t[19]||(t[19]=[c(" Approved ")])),_:1})):i("",!0),a.approval_status==="rejected"?(l(),A(E,{key:2},{default:_(()=>t[20]||(t[20]=[c(" Rejected ")])),_:1})):i("",!0)])])])])])}),256))])):i("",!0)]),e("div",ot,[t[23]||(t[23]=e("div",{class:"card-header"}," Vouchers ",-1)),h(J,{"voucher-set-id":T.id},null,8,["voucher-set-id"])]),t[24]||(t[24]=e("div",{class:"pb-32"},null,-1))]}),_:1})],64))}};export{yt as default}; diff --git a/public/build/assets/VoucherSet-BGMqhdxQ.js b/public/build/assets/VoucherSet-DeRvCbT6.js similarity index 91% rename from public/build/assets/VoucherSet-BGMqhdxQ.js rename to public/build/assets/VoucherSet-DeRvCbT6.js index c7022417..50825091 100644 --- a/public/build/assets/VoucherSet-BGMqhdxQ.js +++ b/public/build/assets/VoucherSet-DeRvCbT6.js @@ -1 +1 @@ -import{_ as $}from"./AuthenticatedLayout-BSBk4Waj.js";import{r as x,o as b,b as o,c as d,F as f,g as k,h as w,w as y,d as e,t as a,f as r,u as n,Q as g,i as V,a as m,Z as C,e as _}from"./app-zpP4mvhd.js";import{d as i}from"./dayjs.min-C0_0pMrK.js";import{r as T}from"./relativeTime-__Y28WrV.js";import{u as S}from"./utc-D2jiDVXM.js";import{P as B}from"./PaginatorComponent-Dk-0OsjZ.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-6L6tESKC.js";import"./SecondaryButton-Dml8iKd5.js";const N={key:0},M={class:"border-b flex justify-between items-center py-2 sm:p-2"},I={class:"text-xs"},j={key:0,class:"font-bold text-sm"},P={key:1,class:"font-bold text-sm"},q={key:2,class:"text-red-500"},A={key:3},D={key:4},E={class:"flex justify-end items-center mt-4"},F={class:"w-full lg:w-1/3"},L={__name:"MyTeamVouchersComponent",props:{voucherSetId:{required:!1,default:null}},setup(h){i.extend(T),i.extend(S);const v=h,s=x({}),p=x(5);b(()=>{c()});function c(t=1){axios.get("/my-team-vouchers?cached=false&where[]=voucher_set_id,"+v.voucherSetId+"&page="+t+"&limit="+p.value+"&relations=createdByTeam,allocatedToServiceTeam").then(u=>{s.value=u.data.data}).catch(u=>{console.log(u)})}return(t,u)=>s.value.data&&s.value.data.length?(o(),d("div",N,[(o(!0),d(f,null,k(s.value.data,l=>(o(),w(n(V),{href:t.route("voucher",l.id),class:"hover:no-underline hover:opacity-75"},{default:y(()=>[e("div",M,[e("div",I,[l.voucher_short_code?(o(),d("div",j," #"+a(l.voucher_short_code),1)):(o(),d("div",P," #"+a(l.id),1)),l.is_test?(o(),d("div",q," Test voucher ")):r("",!0),l.created_by_team&&l.created_by_team_id!==n(g)().props.auth.user.current_team_id?(o(),d("div",A," Created by: "+a(l.created_by_team.name),1)):r("",!0),l.allocated_to_service_team&&l.allocated_to_service_team_id!==n(g)().props.auth.user.current_team_id?(o(),d("div",D," Allocated to: "+a(l.allocated_to_service_team.name),1)):r("",!0)]),u[0]||(u[0]=e("div",null,[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256)),e("div",E,[e("div",F,[m(B,{onSetDataPage:c,"pagination-data":s.value},null,8,["pagination-data"])])])])):r("",!0)}},R={class:"card"},z={key:0,class:"font-bold text-red-500 text-sm"},Q={class:"card"},Z={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},G={class:"font-bold text-3xl"},H={class:"font-bold text-3xl"},J={class:"font-bold text-3xl"},K={class:"font-bold text-3xl"},O={class:"font-bold text-3xl"},U={key:0},W={class:"font-bold text-3xl"},X={class:"text-xs"},Y={key:1},ee={class:"font-bold text-3xl"},te={class:"text-xs"},se={class:"card"},ae={key:0},oe={key:1,class:"text-xs mt-2"},de={class:"card"},le={key:0},re={class:"card"},ie={key:0},ne={class:"list-disc ml-4"},ue={class:"card"},be={__name:"VoucherSet",props:{voucherSetId:{type:String,required:!1}},setup(h){i.extend(T),i.extend(S);const v=h,s=x({});b(()=>{p()});function p(){axios.get("/my-team-voucher-sets/"+v.voucherSetId+"?cached=false&relations=createdByTeam,allocatedToServiceTeam,voucherSetMerchantTeams.merchantTeam").then(c=>{s.value=c.data.data}).catch(c=>{console.log(c)})}return(c,t)=>(o(),d(f,null,[m(n(C),{title:"Voucher Set"}),m($,null,{header:y(()=>t[0]||(t[0]=[e("h2",{class:"font-normal text-xl text-gray-800 leading-tight"},"Voucher Set",-1)])),default:y(()=>[e("div",R,[e("h2",null,a(s.value.id),1),s.value.is_test?(o(),d("div",z," Test voucher set ")):r("",!0)]),e("div",Q,[t[8]||(t[8]=e("div",{class:"card-header"}," Voucher set details ",-1)),e("div",Z,[e("div",null,[e("div",G," $"+a(s.value.total_set_value/100),1),t[1]||(t[1]=_(" Total set value "))]),e("div",null,[e("div",H," $"+a(s.value.total_set_value_remaining/100),1),t[2]||(t[2]=_(" Total remaining value "))]),e("div",null,[e("div",J,a(Math.round((s.value.total_set_value-s.value.total_set_value_remaining)/s.value.total_set_value*1e4)/100)+"% ",1),t[3]||(t[3]=_(" Redeemed percentage "))]),e("div",null,[e("div",K,a(s.value.num_vouchers),1),t[4]||(t[4]=_(" # Vouchers "))]),e("div",null,[e("div",O,a(s.value.num_voucher_redemptions),1),t[5]||(t[5]=_(" # Redemptions "))]),s.value.last_redemption_at?(o(),d("div",U,[t[6]||(t[6]=e("div",null," Last redeemed ",-1)),e("div",W,a(n(i).utc(s.value.last_redemption_at).fromNow()),1),e("div",X," ("+a(n(i)(s.value.last_redemption_at))+") ",1)])):r("",!0),s.value.expires_at?(o(),d("div",Y,[t[7]||(t[7]=e("div",null," Expires ",-1)),e("div",ee,a(n(i).utc(s.value.expires_at).fromNow()),1),e("div",te," ("+a(n(i)(s.value.expires_at))+") ",1)])):r("",!0)])]),e("div",se,[t[9]||(t[9]=e("div",{class:"card-header"}," Created by team ",-1)),s.value.created_by_team?(o(),d("div",ae,a(s.value.created_by_team.name),1)):r("",!0),s.value.created_at?(o(),d("div",oe," Created at: "+a(n(i).utc(s.value.created_at).fromNow())+" ("+a(n(i)(s.value.created_at))+") ",1)):r("",!0)]),e("div",de,[t[10]||(t[10]=e("div",{class:"card-header"}," Allocated To Service Team ",-1)),s.value.allocated_to_service_team?(o(),d("div",le,a(s.value.allocated_to_service_team.name),1)):r("",!0)]),e("div",re,[t[11]||(t[11]=e("div",{class:"card-header"}," Merchants ",-1)),s.value.voucher_set_merchant_teams?(o(),d("div",ie,[(o(!0),d(f,null,k(s.value.voucher_set_merchant_teams,u=>(o(),d("ul",ne,[e("li",null,a(u.merchant_team.name),1)]))),256))])):r("",!0)]),e("div",ue,[t[12]||(t[12]=e("div",{class:"card-header"}," Vouchers ",-1)),m(L,{"voucher-set-id":v.voucherSetId},null,8,["voucher-set-id"])]),t[13]||(t[13]=e("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{be as default}; +import{_ as $}from"./AuthenticatedLayout-DuLcXyKk.js";import{r as x,o as b,b as o,c as d,F as f,g as k,h as w,w as y,d as e,t as a,f as r,u as n,Q as g,i as V,a as m,Z as C,e as _}from"./app-DolNWhzr.js";import{d as i}from"./dayjs.min-ilzO22t1.js";import{r as T}from"./relativeTime-BTl_QCHW.js";import{u as S}from"./utc-CWodzHWT.js";import{P as B}from"./PaginatorComponent-DpqX95xS.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./SecondaryButton-DL_I_H3U.js";const N={key:0},M={class:"border-b flex justify-between items-center py-2 sm:p-2"},I={class:"text-xs"},j={key:0,class:"font-bold text-sm"},P={key:1,class:"font-bold text-sm"},q={key:2,class:"text-red-500"},A={key:3},D={key:4},E={class:"flex justify-end items-center mt-4"},F={class:"w-full lg:w-1/3"},L={__name:"MyTeamVouchersComponent",props:{voucherSetId:{required:!1,default:null}},setup(h){i.extend(T),i.extend(S);const v=h,s=x({}),p=x(5);b(()=>{c()});function c(t=1){axios.get("/my-team-vouchers?cached=false&where[]=voucher_set_id,"+v.voucherSetId+"&page="+t+"&limit="+p.value+"&relations=createdByTeam,allocatedToServiceTeam").then(u=>{s.value=u.data.data}).catch(u=>{console.log(u)})}return(t,u)=>s.value.data&&s.value.data.length?(o(),d("div",N,[(o(!0),d(f,null,k(s.value.data,l=>(o(),w(n(V),{href:t.route("voucher",l.id),class:"hover:no-underline hover:opacity-75"},{default:y(()=>[e("div",M,[e("div",I,[l.voucher_short_code?(o(),d("div",j," #"+a(l.voucher_short_code),1)):(o(),d("div",P," #"+a(l.id),1)),l.is_test?(o(),d("div",q," Test voucher ")):r("",!0),l.created_by_team&&l.created_by_team_id!==n(g)().props.auth.user.current_team_id?(o(),d("div",A," Created by: "+a(l.created_by_team.name),1)):r("",!0),l.allocated_to_service_team&&l.allocated_to_service_team_id!==n(g)().props.auth.user.current_team_id?(o(),d("div",D," Allocated to: "+a(l.allocated_to_service_team.name),1)):r("",!0)]),u[0]||(u[0]=e("div",null,[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])],-1))])]),_:2},1032,["href"]))),256)),e("div",E,[e("div",F,[m(B,{onSetDataPage:c,"pagination-data":s.value},null,8,["pagination-data"])])])])):r("",!0)}},R={class:"card"},z={key:0,class:"font-bold text-red-500 text-sm"},Q={class:"card"},Z={class:"grid grid-cols-4 gap-y-12 text-center mt-8"},G={class:"font-bold text-3xl"},H={class:"font-bold text-3xl"},J={class:"font-bold text-3xl"},K={class:"font-bold text-3xl"},O={class:"font-bold text-3xl"},U={key:0},W={class:"font-bold text-3xl"},X={class:"text-xs"},Y={key:1},ee={class:"font-bold text-3xl"},te={class:"text-xs"},se={class:"card"},ae={key:0},oe={key:1,class:"text-xs mt-2"},de={class:"card"},le={key:0},re={class:"card"},ie={key:0},ne={class:"list-disc ml-4"},ue={class:"card"},be={__name:"VoucherSet",props:{voucherSetId:{type:String,required:!1}},setup(h){i.extend(T),i.extend(S);const v=h,s=x({});b(()=>{p()});function p(){axios.get("/my-team-voucher-sets/"+v.voucherSetId+"?cached=false&relations=createdByTeam,allocatedToServiceTeam,voucherSetMerchantTeams.merchantTeam").then(c=>{s.value=c.data.data}).catch(c=>{console.log(c)})}return(c,t)=>(o(),d(f,null,[m(n(C),{title:"Voucher Set"}),m($,null,{header:y(()=>t[0]||(t[0]=[e("h2",{class:"font-normal text-xl text-gray-800 leading-tight"},"Voucher Set",-1)])),default:y(()=>[e("div",R,[e("h2",null,a(s.value.id),1),s.value.is_test?(o(),d("div",z," Test voucher set ")):r("",!0)]),e("div",Q,[t[8]||(t[8]=e("div",{class:"card-header"}," Voucher set details ",-1)),e("div",Z,[e("div",null,[e("div",G," $"+a(s.value.total_set_value/100),1),t[1]||(t[1]=_(" Total set value "))]),e("div",null,[e("div",H," $"+a(s.value.total_set_value_remaining/100),1),t[2]||(t[2]=_(" Total remaining value "))]),e("div",null,[e("div",J,a(Math.round((s.value.total_set_value-s.value.total_set_value_remaining)/s.value.total_set_value*1e4)/100)+"% ",1),t[3]||(t[3]=_(" Redeemed percentage "))]),e("div",null,[e("div",K,a(s.value.num_vouchers),1),t[4]||(t[4]=_(" # Vouchers "))]),e("div",null,[e("div",O,a(s.value.num_voucher_redemptions),1),t[5]||(t[5]=_(" # Redemptions "))]),s.value.last_redemption_at?(o(),d("div",U,[t[6]||(t[6]=e("div",null," Last redeemed ",-1)),e("div",W,a(n(i).utc(s.value.last_redemption_at).fromNow()),1),e("div",X," ("+a(n(i)(s.value.last_redemption_at))+") ",1)])):r("",!0),s.value.expires_at?(o(),d("div",Y,[t[7]||(t[7]=e("div",null," Expires ",-1)),e("div",ee,a(n(i).utc(s.value.expires_at).fromNow()),1),e("div",te," ("+a(n(i)(s.value.expires_at))+") ",1)])):r("",!0)])]),e("div",se,[t[9]||(t[9]=e("div",{class:"card-header"}," Created by team ",-1)),s.value.created_by_team?(o(),d("div",ae,a(s.value.created_by_team.name),1)):r("",!0),s.value.created_at?(o(),d("div",oe," Created at: "+a(n(i).utc(s.value.created_at).fromNow())+" ("+a(n(i)(s.value.created_at))+") ",1)):r("",!0)]),e("div",de,[t[10]||(t[10]=e("div",{class:"card-header"}," Allocated To Service Team ",-1)),s.value.allocated_to_service_team?(o(),d("div",le,a(s.value.allocated_to_service_team.name),1)):r("",!0)]),e("div",re,[t[11]||(t[11]=e("div",{class:"card-header"}," Merchants ",-1)),s.value.voucher_set_merchant_teams?(o(),d("div",ie,[(o(!0),d(f,null,k(s.value.voucher_set_merchant_teams,u=>(o(),d("ul",ne,[e("li",null,a(u.merchant_team.name),1)]))),256))])):r("",!0)]),e("div",ue,[t[12]||(t[12]=e("div",{class:"card-header"}," Vouchers ",-1)),m(L,{"voucher-set-id":v.voucherSetId},null,8,["voucher-set-id"])]),t[13]||(t[13]=e("div",{class:"pb-32"},null,-1))]),_:1})],64))}};export{be as default}; diff --git a/public/build/assets/VoucherSetMerchantTeamApproval-tEh6E6dN.js b/public/build/assets/VoucherSetMerchantTeamApproval-CmPfS_Dx.js similarity index 91% rename from public/build/assets/VoucherSetMerchantTeamApproval-tEh6E6dN.js rename to public/build/assets/VoucherSetMerchantTeamApproval-CmPfS_Dx.js index efc5607f..57d36453 100644 --- a/public/build/assets/VoucherSetMerchantTeamApproval-tEh6E6dN.js +++ b/public/build/assets/VoucherSetMerchantTeamApproval-CmPfS_Dx.js @@ -1 +1 @@ -import{r as h,o as V,c as s,a as i,u as _,w as u,F as A,Q as B,b as r,Z as R,e as v,t as l,d as a,f as c,n as g}from"./app-zpP4mvhd.js";import{_ as j,S as w}from"./AuthenticatedLayout-BSBk4Waj.js";import{P as q}from"./PrimaryButton-6L6tESKC.js";import{_ as k}from"./SecondaryButton-Dml8iKd5.js";import{d as p}from"./dayjs.min-C0_0pMrK.js";import{r as I}from"./relativeTime-__Y28WrV.js";import{u as M}from"./utc-D2jiDVXM.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const $={key:0,class:"card"},P={key:1,class:"card"},D={class:"pt-4"},E={class:"pt-4"},N={key:0},F={key:1},L={key:2,class:"pb-4"},O={key:0,class:"py-8"},Y={key:1,class:"py-4"},z={class:"text-xs capitalize"},Z={key:2},G={key:0,class:"px-2 text-green-500"},H={key:1,class:"px-2 text-red-500"},oe={__name:"VoucherSetMerchantTeamApproval",props:{approvalRequestId:{type:String,required:!0},approve:{type:Boolean,default:!0}},setup(x){p.extend(I),p.extend(M);const m=x,t=h({}),o=h(!0),f=h(!1);V(()=>{T(),o.value=!!m.approve});function C(){B().props.auth.user.current_team_id===t.value.merchant_team_id&&(f.value=!0)}function T(){axios.get("/my-team-vsmtar/"+m.approvalRequestId+"?cached=false&relations=voucherSet.createdByTeam,voucherSet.allocatedToServiceTeam,merchantTeam").then(n=>{t.value=n.data.data,C()}).catch(n=>{console.log(n)})}function b(){let n="Approve";o.value||(n="Reject"),w.fire({title:o.value?"Are you sure approving?":"Are you sure rejecting?",text:'You are selecting "'+n+'" - any previous approvals or rejections will be overwritten. Sure?',icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:o.value?"Approve involvement":"Reject involvement",allowOutsideClick:!1,showCancelButton:!0}).then(e=>{if(e.isConfirmed){let d={approval_status:o.value?"approved":"rejected"};axios.put("/my-team-vsmtar/"+m.approvalRequestId,d).then(y=>{w.fire({title:o.value?"Approved!":"Rejected!",text:"Thank you for processing.",icon:"success",confirmButtonColor:"#3085d6",allowOutsideClick:!1,confirmButtonText:"Go to dashboard"}).then(S=>{S.isConfirmed&&(window.location.href=route("dashboard"))})}).catch(y=>{console.log(y)})}})}return(n,e)=>(r(),s(A,null,[i(_(R),{title:"Dashboard"}),i(j,null,{header:u(()=>e[3]||(e[3]=[v(" Voucher set approval ")])),default:u(()=>[!f.value&&t.value.merchant_team?(r(),s("div",$,' This request is related to a different merchant team. Please log into team "'+l(t.value.merchant_team.name)+'". ',1)):(r(),s("div",P,[e[9]||(e[9]=a("div",{class:"card-header"}," Voucher Set ",-1)),a("div",D,[a("div",null,[e[4]||(e[4]=a("div",{class:"font-bold"}," Voucher set details ",-1)),a("div",E," ID: "+l(t.value.voucher_set_id),1),t.value.voucher_set&&t.value.voucher_set.created_by_team?(r(),s("div",N," Created by team: "+l(t.value.voucher_set.created_by_team.name),1)):c("",!0),t.value.voucher_set&&t.value.voucher_set.allocated_to_service_team?(r(),s("div",F," Service team name: "+l(t.value.voucher_set.allocated_to_service_team.name),1)):c("",!0),t.value.voucher_set?(r(),s("div",L," Voucher set total value: $"+l((t.value.voucher_set.total_set_value/100).toFixed(2)),1)):c("",!0)]),t.value.merchant_team?(r(),s("div",O," You have been requested to approve your team's ("+l(t.value.merchant_team.name)+") involvement with this voucher set, which will be redeeming vouchers within the Vine platform. Approving this request means that your organisation will apply discounts as per voucher redemptions made at your shop or premises using the Vine system. Vouchers up to the value of the voucher set above may be redeemed at your premises or store. Please select your choice below. ",1)):c("",!0),t.value.approval_status!=="ready"?(r(),s("div",Y,[a("div",null," You have already "+l(t.value.approval_status)+" "+l(_(p).utc(t.value.approval_status_last_updated_at).fromNow())+" so no further action is needed. ",1),a("div",z,l(t.value.approval_status)+" at ("+l(_(p)(t.value.approval_status_last_updated_at))+") ",1)])):(r(),s("div",Z,[i(k,{onClick:e[0]||(e[0]=d=>o.value=!1),class:g(["mr-2",{"opacity-50":o.value}])},{default:u(()=>e[5]||(e[5]=[a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4 mr-2 text-red-500"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18.364 18.364A9 9 0 0 0 5.636 5.636m12.728 12.728A9 9 0 0 1 5.636 5.636m12.728 12.728L5.636 5.636"})],-1),v(" Reject ")])),_:1},8,["class"]),i(k,{onClick:e[1]||(e[1]=d=>o.value=!0),class:g(["ml-2",{"opacity-50":!o.value}])},{default:u(()=>e[6]||(e[6]=[a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4 mr-2 text-green-500"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})],-1),v(" Approve ")])),_:1},8,["class"]),a("div",null,[i(q,{onClick:e[2]||(e[2]=d=>b()),class:"mt-4"},{default:u(()=>[e[7]||(e[7]=v(" Selected: ")),o.value?(r(),s("span",G,"APPROVED")):(r(),s("span",H,"REJECTED")),e[8]||(e[8]=v(" > Click Here To Save "))]),_:1})])]))])]))]),_:1})],64))}};export{oe as default}; +import{r as h,o as V,c as s,a as i,u as _,w as u,F as A,Q as B,b as r,Z as R,e as v,t as l,d as a,f as c,n as g}from"./app-DolNWhzr.js";import{_ as j,S as w}from"./AuthenticatedLayout-DuLcXyKk.js";import{P as q}from"./PrimaryButton-BtqGl7rR.js";import{_ as k}from"./SecondaryButton-DL_I_H3U.js";import{d as p}from"./dayjs.min-ilzO22t1.js";import{r as I}from"./relativeTime-BTl_QCHW.js";import{u as M}from"./utc-CWodzHWT.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const $={key:0,class:"card"},P={key:1,class:"card"},D={class:"pt-4"},E={class:"pt-4"},N={key:0},F={key:1},L={key:2,class:"pb-4"},O={key:0,class:"py-8"},Y={key:1,class:"py-4"},z={class:"text-xs capitalize"},Z={key:2},G={key:0,class:"px-2 text-green-500"},H={key:1,class:"px-2 text-red-500"},oe={__name:"VoucherSetMerchantTeamApproval",props:{approvalRequestId:{type:String,required:!0},approve:{type:Boolean,default:!0}},setup(x){p.extend(I),p.extend(M);const m=x,t=h({}),o=h(!0),f=h(!1);V(()=>{T(),o.value=!!m.approve});function C(){B().props.auth.user.current_team_id===t.value.merchant_team_id&&(f.value=!0)}function T(){axios.get("/my-team-vsmtar/"+m.approvalRequestId+"?cached=false&relations=voucherSet.createdByTeam,voucherSet.allocatedToServiceTeam,merchantTeam").then(n=>{t.value=n.data.data,C()}).catch(n=>{console.log(n)})}function b(){let n="Approve";o.value||(n="Reject"),w.fire({title:o.value?"Are you sure approving?":"Are you sure rejecting?",text:'You are selecting "'+n+'" - any previous approvals or rejections will be overwritten. Sure?',icon:"warning",confirmButtonColor:"#3085d6",confirmButtonText:o.value?"Approve involvement":"Reject involvement",allowOutsideClick:!1,showCancelButton:!0}).then(e=>{if(e.isConfirmed){let d={approval_status:o.value?"approved":"rejected"};axios.put("/my-team-vsmtar/"+m.approvalRequestId,d).then(y=>{w.fire({title:o.value?"Approved!":"Rejected!",text:"Thank you for processing.",icon:"success",confirmButtonColor:"#3085d6",allowOutsideClick:!1,confirmButtonText:"Go to dashboard"}).then(S=>{S.isConfirmed&&(window.location.href=route("dashboard"))})}).catch(y=>{console.log(y)})}})}return(n,e)=>(r(),s(A,null,[i(_(R),{title:"Dashboard"}),i(j,null,{header:u(()=>e[3]||(e[3]=[v(" Voucher set approval ")])),default:u(()=>[!f.value&&t.value.merchant_team?(r(),s("div",$,' This request is related to a different merchant team. Please log into team "'+l(t.value.merchant_team.name)+'". ',1)):(r(),s("div",P,[e[9]||(e[9]=a("div",{class:"card-header"}," Voucher Set ",-1)),a("div",D,[a("div",null,[e[4]||(e[4]=a("div",{class:"font-bold"}," Voucher set details ",-1)),a("div",E," ID: "+l(t.value.voucher_set_id),1),t.value.voucher_set&&t.value.voucher_set.created_by_team?(r(),s("div",N," Created by team: "+l(t.value.voucher_set.created_by_team.name),1)):c("",!0),t.value.voucher_set&&t.value.voucher_set.allocated_to_service_team?(r(),s("div",F," Service team name: "+l(t.value.voucher_set.allocated_to_service_team.name),1)):c("",!0),t.value.voucher_set?(r(),s("div",L," Voucher set total value: $"+l((t.value.voucher_set.total_set_value/100).toFixed(2)),1)):c("",!0)]),t.value.merchant_team?(r(),s("div",O," You have been requested to approve your team's ("+l(t.value.merchant_team.name)+") involvement with this voucher set, which will be redeeming vouchers within the Vine platform. Approving this request means that your organisation will apply discounts as per voucher redemptions made at your shop or premises using the Vine system. Vouchers up to the value of the voucher set above may be redeemed at your premises or store. Please select your choice below. ",1)):c("",!0),t.value.approval_status!=="ready"?(r(),s("div",Y,[a("div",null," You have already "+l(t.value.approval_status)+" "+l(_(p).utc(t.value.approval_status_last_updated_at).fromNow())+" so no further action is needed. ",1),a("div",z,l(t.value.approval_status)+" at ("+l(_(p)(t.value.approval_status_last_updated_at))+") ",1)])):(r(),s("div",Z,[i(k,{onClick:e[0]||(e[0]=d=>o.value=!1),class:g(["mr-2",{"opacity-50":o.value}])},{default:u(()=>e[5]||(e[5]=[a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4 mr-2 text-red-500"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18.364 18.364A9 9 0 0 0 5.636 5.636m12.728 12.728A9 9 0 0 1 5.636 5.636m12.728 12.728L5.636 5.636"})],-1),v(" Reject ")])),_:1},8,["class"]),i(k,{onClick:e[1]||(e[1]=d=>o.value=!0),class:g(["ml-2",{"opacity-50":!o.value}])},{default:u(()=>e[6]||(e[6]=[a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4 mr-2 text-green-500"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})],-1),v(" Approve ")])),_:1},8,["class"]),a("div",null,[i(q,{onClick:e[2]||(e[2]=d=>b()),class:"mt-4"},{default:u(()=>[e[7]||(e[7]=v(" Selected: ")),o.value?(r(),s("span",G,"APPROVED")):(r(),s("span",H,"REJECTED")),e[8]||(e[8]=v(" > Click Here To Save "))]),_:1})])]))])]))]),_:1})],64))}};export{oe as default}; diff --git a/public/build/assets/VoucherSetNew-BoGlXiEp.js b/public/build/assets/VoucherSetNew-FiyNeAgB.js similarity index 98% rename from public/build/assets/VoucherSetNew-BoGlXiEp.js rename to public/build/assets/VoucherSetNew-FiyNeAgB.js index 13f915c2..effc4643 100644 --- a/public/build/assets/VoucherSetNew-BoGlXiEp.js +++ b/public/build/assets/VoucherSetNew-FiyNeAgB.js @@ -1 +1 @@ -import{S as b,_ as xe}from"./AuthenticatedLayout-BSBk4Waj.js";import{Q as fe,r as d,o as _e,p as j,b as s,c as l,d as t,f as u,s as we,h as F,w as k,e as r,l as _,m as ge,q as C,F as h,g as w,t as a,u as Z,n as W,a as U,v as ke,Z as ye}from"./app-zpP4mvhd.js";import{_ as be}from"./AdminTopNavigation-CKquTKkz.js";import{_ as J}from"./SecondaryButton-Dml8iKd5.js";import{P as N}from"./PrimaryButton-6L6tESKC.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const Ce={class:"py-8 space-y-8"},Me={class:"card"},Se={class:""},Te={key:0},je={class:"flex justify-start mt-8"},Ze={key:0,class:"space-y-8"},Ve={id:"testSection",class:"card"},Be={class:"card-header flex justify-between"},$e={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},ze={key:1,class:"size-6 text-orange-500 fill-orange-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Fe={class:"my-8"},Ue={class:"mb-2",for:"voucherSet.is_test"},Ee={id:"serviceTeamSection",class:"card"},He={class:"card-header flex justify-between"},Le={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ie={key:1,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},qe={key:0},Ne={for:"service-team-search"},Ae={class:"my-4 flex flex-wrap gap-2"},De={key:1},Oe={id:"merchantTeamSection",class:"card"},Re={class:"card-header flex justify-between"},We={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ye={key:1,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ge={for:"service-team-search"},Pe={class:"my-4 flex flex-wrap gap-2"},Qe={key:0,class:"mt-8"},Ke={class:"mt-2"},Je=["onClick"],Xe={id:"fundingTeamSection",class:"card"},et={class:"card-header flex justify-between"},tt={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},st={key:1,class:"size-6 text-orange-500 fill-orange-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},ot={key:0},lt={for:"service-team-search"},nt={class:"my-4 flex flex-wrap gap-2"},it={key:1},rt={id:"totalValueSection",class:"card"},at={class:"card-header flex justify-between"},dt={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},ut={key:1,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},vt={class:"my-8"},ct={for:"voucherSet.total_set_value"},mt={class:"font-bold"},pt={id:"denominationsSection",class:"card"},ht={class:"card-header flex justify-between"},xt={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},ft={key:1,class:"size-6 text-orange-500 fill-orange-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},_t={key:2,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wt={class:"flex justify-between items-center"},gt={class:"mt-4"},kt={class:"mb-2 flex justify-start items-center border-b py-4"},yt=["onUpdate:modelValue"],bt={class:"pl-4"},Ct={class:"text-xs"},Mt=["onUpdate:modelValue","onKeyup"],St={class:"pt-6"},Tt=["onClick"],jt={class:"pt-8"},Zt={class:"text-center mx-24 p-8 rounded-lg border-4 border-gray-200"},Vt={class:"text-xs"},Bt={key:0,class:"text-xs text-red-500 mt-4"},$t={key:1,class:"text-xs text-green-500 mt-4"},zt={key:2,class:"text-xs text-gray-500 mt-4"},Ft={id:"expirationSection",class:"card"},Ut={class:"card-header flex justify-between"},Et={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ht={key:1,class:"size-6 text-orange-500 fill-orange-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Lt={class:"my-8"},It={class:"mt-4"},qt={class:"italic"},Nt={class:"mt-4"},At={key:0,class:"mt-8"},Dt={key:1,class:"text-xs italic"},Ot={id:"voucherTypeSection",class:"card"},Rt={class:"card-header flex justify-between"},Wt={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Yt={key:1,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Gt={class:"mt-4"},Pt={class:""},Qt=["value"],Kt={id:"voucherTemplateSection",class:"card"},Jt={class:"card-header flex justify-between"},Xt={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},es={key:1,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},ts={class:"grid gap-4 grid-cols-6 mt-8"},ss=["onClick"],os=["src"],ls={key:0,class:"text-xs italic text-center mt-1 text-green-500"},ns={key:1,class:"card"},is={class:"card-header flex justify-between"},rs={class:""},as={key:0,class:"flex text-green-500 items-center"},ds={key:1,class:"flex text-red-500 items-center"},us={class:"my-8"},vs={class:"list-disc space-y-6 pl-4"},cs={class:"font-bold"},ms={key:0,class:"font-bold"},ps={class:"font-bold"},hs={key:0,class:"font-bold"},xs={class:"font-bold"},fs={class:"font-bold"},_s={class:"font-bold"},ws={class:""},gs={key:0},ks={class:"font-bold"},ys={key:1},bs={class:""},Cs={key:0},Ms={class:"mt-2"},Ss=["src"],Ts={key:1},js={class:"flex justify-end"},Zs={key:0},Vs={key:1},Bs={__name:"VoucherSetNewComponent",setup(X){const g=fe().props,E=d(!1),V=d(!1),B=d(!1),A=d([]),H=d([]),M=d(""),x=d(""),L=d([]),I=d([]),$=d(""),m=d([]),q=d([]),S=d([]),f=d(""),T=d(""),Y=d([]),D=d({}),O=d(0),i=d({is_test:0,allocated_to_service_team_id:"",merchant_team_ids:[],funded_by_team_id:"",voucher_template_id:"",total_set_value:0,denominations:[],expires_at:"",voucher_set_type:""});function p(){return i.value.total_set_value-Q()}function ee(){b.fire({title:"Are you sure?",icon:"info",text:"This will not only create a voucher set, but also email all the merchants you selected, asking for their approval to partake in the voucher set. Are you sure you want to do this?",showConfirmButton:!0,showCancelButton:!0}).then(n=>{n.isConfirmed&&(B.value=!0,Object.assign({},i.value),axios.post("/admin/voucher-sets",i.value).then(e=>{b.fire({title:"Nice!",icon:"success",text:e.data.data.message,showConfirmButton:!1,timer:600}).then(()=>{window.location.href="/admin/voucher-set/"+e.data.data.id}),B.value=!1}).catch(e=>{b.fire({title:"Oops!",icon:"error",text:e.response.data.meta.message}),console.log(e),B.value=!1}))})}function G(){i.value.denominations.push({value:500,colloquialCurrencyUnitValue:5,number:1})}function te(n){n>-1&&i.value.denominations.splice(n,1)}function se(){M.value.length?H.value=A.value.filter(n=>n.name.toLowerCase().includes(M.value)):H.value=A.value}function P(){if($.value.length){const n=L.value.filter(e=>{var y;return(y=e.merchant_team)==null?void 0:y.name.toLowerCase().includes($.value)});I.value=n.filter(e=>!m.value.some(y=>e.merchant_team.id===y.id))}else I.value=L.value}function oe(){T.value.length?S.value=q.value.filter(n=>{var e;return(e=n.service_team)==null?void 0:e.name.toLowerCase().includes(T.value)}):S.value=q.value}function le(){axios.get("/admin/teams").then(n=>{A.value=n.data.data.data}).catch(n=>{b.fire({icon:"error",title:"Oops!",text:n.response.data.meta.message})})}function ne(n){axios.get("/admin/team-merchant-teams?relations=merchantTeam&where[]=team_id,"+n.id).then(e=>{L.value=e.data.data.data,I.value=e.data.data.data}).catch(e=>{b.fire({icon:"error",title:"Oops!",text:e.response.data.meta.message})})}function ie(){axios.get("/admin/team-service-teams?relations=serviceTeam&where[]=team_id,"+g.auth.user.current_team_id).then(n=>{q.value=n.data.data.data,S.value=n.data.data.data}).catch(n=>{b.fire({icon:"error",title:"Oops!",text:n.response.data.meta.message})})}function re(){axios.get("/admin/team-voucher-templates?cached=false&where[]=team_id,"+g.auth.user.current_team_id+"&where[]=archived_at,null").then(n=>{Y.value=n.data.data.data}).catch(n=>{b.fire({icon:"error",title:"Oops!",text:n.response.data.meta.message})})}function v(n){const e=document.getElementById(n);e&&e.scrollIntoView({behavior:"smooth"})}function ae(n){x.value=n,i.value.funded_by_team_id=n.id,H.value=[],M.value=""}function de(n){i.value.merchant_team_ids.includes(n.id)||(i.value.merchant_team_ids.push(n.id),m.value.push(n))}function ue(n){f.value=n,i.value.allocated_to_service_team_id=n.id,S.value=[],T.value="",ne(n)}function ve(n){i.value.voucher_template_id===n.id?(i.value.voucher_template_id="",D.value={}):(i.value.voucher_template_id=n.id,D.value=n)}function ce(){f.value="",i.value.allocated_to_service_team_id="",S.value=Object.assign({},q.value),m.value=[],L.value=[],i.value.merchant_team_ids=[]}function me(){V.value=!0}function Q(){let n=0;return i.value.denominations.forEach(e=>{n+=e.number*e.value}),n}function pe(n){n>-1&&m.value.splice(n,1)}function he(n){n.value=n.colloquialCurrencyUnitValue*100}return _e(()=>{le(),ie(),re(),G()}),j(m,()=>{P()},{deep:!0}),j(i,()=>{E.value=i.value.total_set_value>0&&i.value.merchant_team_ids.length>0&&i.value.voucher_template_id&&i.value.allocated_to_service_team_id&&i.value.voucher_set_type&&p()>=0},{deep:!0}),j(M,()=>{se()}),j($,()=>{P()}),j(T,()=>{oe()}),j(O,n=>{i.value.total_set_value=n*100}),(n,e)=>{var y,K;return s(),l("div",null,[t("div",Ce,[t("div",Me,[e[27]||(e[27]=t("div",{class:"card-header"}," Create A Voucher Set ",-1)),t("div",Se,[V.value?u("",!0):(s(),l("div",Te,e[24]||(e[24]=[t("div",{class:"my-8"}," This process will bring you through creating a voucher set. There are 8 steps to complete. ",-1),t("div",{class:"mt-8"}," The following icons are used: ",-1)]))),e[26]||(e[26]=we('
  • Complete ‐ You have met the requirements for this section
  • Warning ‐ This section is not required, so please double check the default answer
  • Incomplete ‐ You have not met the requirements for this section
',1)),t("div",je,[V.value?u("",!0):(s(),F(J,{key:0,onClick:e[0]||(e[0]=o=>me())},{default:k(()=>e[25]||(e[25]=[r(" Get started ")])),_:1}))])])]),V.value?(s(),l("div",Ze,[t("div",Ve,[t("div",Be,[e[30]||(e[30]=r(" Is this a test voucher set? ")),i.value.is_test?(s(),l("svg",$e,e[28]||(e[28]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",ze,e[29]||(e[29]=[t("path",{d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),e[32]||(e[32]=t("div",{class:"my-8"}," A test voucher set is for when you want to test the process, but the vouchers are not real. ",-1)),t("div",Fe,[t("label",Ue,[_(t("input",{id:"voucherSet.is_test","onUpdate:modelValue":e[1]||(e[1]=o=>i.value.is_test=o),class:"mr-2",type:"checkbox"},null,512),[[ge,i.value.is_test]]),e[31]||(e[31]=r(" YES - this is a test voucher set. "))])])]),t("div",Ee,[t("div",He,[e[35]||(e[35]=r(" The service team ")),f.value?(s(),l("svg",Le,e[33]||(e[33]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",Ie,e[34]||(e[34]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),e[36]||(e[36]=t("div",{class:"my-8"}," Which service team are you allocating this voucher set to? ",-1)),f.value?(s(),l("div",De,[r(" Selected service team: "+a(f.value.name)+" ",1),f.value?(s(),l("span",{key:0,class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:e[3]||(e[3]=o=>ce())}," Remove ")):u("",!0)])):(s(),l("div",qe,[t("label",Ne,[_(t("input",{id:"service-team-search","onUpdate:modelValue":e[2]||(e[2]=o=>T.value=o),class:"block w-1/2 md:w-1/3 mt-1",placeholder:"Filter your service teams..",type:"search"},null,512),[[C,T.value]])]),t("div",Ae,[(s(!0),l(h,null,w(S.value,o=>(s(),F(N,{onClick:c=>ue(o.service_team)},{default:k(()=>[r(a(o.service_team.name),1)]),_:2},1032,["onClick"]))),256))])]))]),t("div",Oe,[t("div",Re,[e[39]||(e[39]=r(" The merchant team ")),m.value.length?(s(),l("svg",We,e[37]||(e[37]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",Ye,e[38]||(e[38]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),e[41]||(e[41]=t("div",{class:"my-8"}," Which merchant team(s) are you assigning this voucher set to? ",-1)),t("div",null,[t("label",Ge,[_(t("input",{id:"merchant-team-search","onUpdate:modelValue":e[4]||(e[4]=o=>$.value=o),class:"block w-1/2 md:w-1/3 mt-1",placeholder:"Filter merchant teams..",type:"search"},null,512),[[C,$.value]])]),t("div",Pe,[(s(!0),l(h,null,w(I.value,o=>(s(),F(N,{onClick:c=>de(o.merchant_team)},{default:k(()=>[r(a(o.merchant_team.name),1)]),_:2},1032,["onClick"]))),256))])]),m.value.length?(s(),l("div",Qe,[e[40]||(e[40]=r(" Selected merchant team(s): ")),t("div",null,[(s(!0),l(h,null,w(m.value,(o,c)=>(s(),l("div",Ke,[r(a(o.name)+" ",1),t("span",{class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:R=>pe(c)}," Remove ",8,Je)]))),256))])])):u("",!0)]),t("div",Xe,[t("div",et,[e[44]||(e[44]=r(" The funding team ")),x.value?(s(),l("svg",tt,e[42]||(e[42]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",st,e[43]||(e[43]=[t("path",{d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),e[46]||(e[46]=t("div",{class:"my-8"}," Is this voucher set funded by anyone? If so, please nominate the team here. ",-1)),x.value?(s(),l("div",it,[r(" Selected funding team: "+a(x.value.name)+" ",1),x.value?(s(),l("span",{key:0,class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:e[6]||(e[6]=o=>x.value="")}," Remove ")):u("",!0)])):(s(),l("div",ot,[t("label",lt,[e[45]||(e[45]=r(" Search for a funding team ")),_(t("input",{id:"merchant-team-search","onUpdate:modelValue":e[5]||(e[5]=o=>M.value=o),class:"block w-1/2 md:w-1/3",type:"search"},null,512),[[C,M.value]])]),t("div",nt,[(s(!0),l(h,null,w(H.value,o=>(s(),F(N,{onClick:c=>ae(o)},{default:k(()=>[r(a(o.name),1)]),_:2},1032,["onClick"]))),256))])]))]),t("div",rt,[t("div",at,[e[49]||(e[49]=r(" Total value ")),i.value.total_set_value>0?(s(),l("svg",dt,e[47]||(e[47]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",ut,e[48]||(e[48]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),t("div",vt,[t("label",ct,[e[50]||(e[50]=r(" What will the total value of the voucher set be, in ")),t("span",mt,a((y=Z(g).auth.teamCountry)==null?void 0:y.currency_code),1),e[51]||(e[51]=r("? ")),_(t("input",{id:"voucherSet.total_set_value","onUpdate:modelValue":e[7]||(e[7]=o=>O.value=o),class:"block mt-2",type:"number"},null,512),[[C,O.value]])])])]),t("div",pt,[t("div",ht,[e[55]||(e[55]=r(" Denominations ")),p()===0?(s(),l("svg",xt,e[52]||(e[52]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):p()>0?(s(),l("svg",ft,e[53]||(e[53]=[t("path",{d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",_t,e[54]||(e[54]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),t("div",wt,[t("div",gt,[t("div",null," Available to assign: "+a((i.value.total_set_value/100).toFixed(2))+" "+a((K=Z(g).auth.teamCountry)==null?void 0:K.currency_code),1),t("div",{class:W({"text-red":p()<0})}," Remaining: "+a((p()/100).toFixed(2)),3),t("div",null,[(s(!0),l(h,null,w(i.value.denominations,(o,c)=>{var R;return s(),l("div",kt,[t("div",null,[e[56]||(e[56]=t("div",{class:"text-xs"}," Create ",-1)),t("div",null,[_(t("input",{"onUpdate:modelValue":z=>o.number=z,class:"border rounded p-1",type:"number"},null,8,yt),[[C,o.number]])])]),t("div",bt,[t("div",Ct," of "+a((R=Z(g).auth.teamCountry)==null?void 0:R.currency_code),1),t("div",null,[_(t("input",{"onUpdate:modelValue":z=>o.colloquialCurrencyUnitValue=z,class:"border rounded p-1",onKeyup:z=>he(o),step:"1",type:"number"},null,40,Mt),[[C,o.colloquialCurrencyUnitValue]])])]),t("div",St,[c!==0?(s(),l("button",{key:0,class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:z=>te(c)},e[57]||(e[57]=[t("i",{class:"fa fa-times"},null,-1),r(" Remove ")]),8,Tt)):u("",!0)])])}),256)),t("div",jt,[U(J,{onClick:e[8]||(e[8]=o=>G())},{default:k(()=>e[58]||(e[58]=[r(" Add row "),t("i",{class:"fa fa-plus"},null,-1)])),_:1})])])]),t("div",Zt,[e[59]||(e[59]=t("div",{class:"text-2xl"}," Total assigned: ",-1)),t("div",{class:W([{"text-green-500":p()>=0,"text-red-500":p()<0},"text-3xl mt-4"])},[r(a((Q()/100).toFixed(2))+" ",1),t("div",Vt," out of "+a((i.value.total_set_value/100).toFixed(2)),1)],2),p()<0?(s(),l("div",Bt," - over budget - ")):p()>0?(s(),l("div",$t,a((p()/100).toFixed(2))+" remaining ",1)):(s(),l("div",zt," Voucher fully allocated "))])])]),t("div",Ft,[t("div",Ut,[e[62]||(e[62]=r(" Expiration ")),i.value.expires_at?(s(),l("svg",Et,e[60]||(e[60]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",Ht,e[61]||(e[61]=[t("path",{d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),t("div",Lt,[e[64]||(e[64]=r(" When will these vouchers expire? ")),t("div",It,[t("label",qt,[e[63]||(e[63]=r(" Select expiry date ")),_(t("input",{"onUpdate:modelValue":e[9]||(e[9]=o=>i.value.expires_at=o),class:"rounded",type:"date"},null,512),[[C,i.value.expires_at]])])]),t("div",Nt,[i.value.expires_at?(s(),l("div",At,[r(" Selected expiry date: "+a(i.value.expires_at)+" ",1),t("span",{class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:e[10]||(e[10]=o=>i.value.expires_at="")}," Remove ")])):(s(),l("div",Dt," Not selecting an expiry date will mean vouchers stay valid forever. "))])])]),t("div",Ot,[t("div",Rt,[e[67]||(e[67]=r(" Type ")),i.value.voucher_set_type?(s(),l("svg",Wt,e[65]||(e[65]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",Yt,e[66]||(e[66]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),t("div",Gt,[t("label",Pt,[e[69]||(e[69]=r(" Choose the type of the voucher set ")),_(t("select",{"onUpdate:modelValue":e[11]||(e[11]=o=>i.value.voucher_set_type=o),class:"ml-2"},[e[68]||(e[68]=t("option",{value:""},"Select a type",-1)),(s(!0),l(h,null,w(Z(g).voucherSetTypes,o=>(s(),l("option",{value:o},a(o),9,Qt))),256))],512),[[ke,i.value.voucher_set_type]])])])]),t("div",Kt,[t("div",Jt,[e[72]||(e[72]=r(" Template ")),i.value.voucher_template_id?(s(),l("svg",Xt,e[70]||(e[70]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",es,e[71]||(e[71]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),t("div",ts,[(s(!0),l(h,null,w(Y.value,o=>(s(),l("div",null,[t("div",{class:W([{"border-green-500":o.id===i.value.voucher_template_id,"opacity-40":i.value.voucher_template_id&&o.id!==i.value.voucher_template_id},"hover:cursor-pointer border-2 rounded"]),onClick:c=>ve(o)},[t("img",{src:o.example_template_image_url,alt:"",class:"border rounded"},null,8,os)],10,ss),o.id===i.value.voucher_template_id?(s(),l("div",ls," Selected! ")):u("",!0)]))),256))])])])):u("",!0),V.value?(s(),l("div",ns,[t("div",is,[e[75]||(e[75]=r(" Review ")),t("div",rs,[E.value?(s(),l("div",as,e[73]||(e[73]=[r(" You have completed all the required sections "),t("svg",{class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))):(s(),l("div",ds,e[74]||(e[74]=[r(" You have required sections that still need completing "),t("svg",{class:"size-6 fill-red-100 ml-2",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])))])]),e[88]||(e[88]=t("div",{class:"my-8"},[t("div",null," Please review the following details for your voucher set. ")],-1)),t("div",us,[t("ul",vs,[t("li",null,[e[76]||(e[76]=r(" The voucher set is ")),t("span",cs,a(i.value.is_test?"a test":"not a test"),1),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[12]||(e[12]=o=>v("testSection"))}," Edit ")]),t("li",null,[r(" It has "+a(f.value?"":" not yet ")+" been allocated to service team ",1),f.value?(s(),l("span",ms,a(f.value.name),1)):u("",!0),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[13]||(e[13]=o=>v("serviceTeamSection"))}," Edit ")]),t("li",null,[r(" It has "+a(m.value.length?"":" not yet ")+" been assigned to a merchant team(s) ",1),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[14]||(e[14]=o=>v("merchantTeamSection"))}," Edit "),(s(!0),l(h,null,w(m.value,o=>(s(),l("div",{key:o.id,class:"my-1 font-bold"},a(o.name),1))),128))]),t("li",null,[e[77]||(e[77]=r(" It has ")),t("span",ps,a(x.value?"":" not "),1),e[78]||(e[78]=r(" been associated to funding team ")),x.value?(s(),l("span",hs,a(x.value.name),1)):u("",!0),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[15]||(e[15]=o=>v("fundingTeamSection"))}," Edit ")]),t("li",null,[e[79]||(e[79]=r(" It has a total value of: ")),t("span",xs,a((i.value.total_set_value/100).toFixed(2)),1),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[16]||(e[16]=o=>v("totalValueSection"))}," Edit ")]),t("li",null,[e[80]||(e[80]=r(" Divided into denominations of: ")),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[17]||(e[17]=o=>v("denominationsSection"))}," Edit "),t("ul",null,[(s(!0),l(h,null,w(i.value.denominations,o=>{var c;return s(),l("li",fs,a(o.number)+" "+a(o.number===1?"unit":"units")+" of "+a(o.colloquialCurrencyUnitValue)+" "+a((c=Z(g).auth.teamCountry)==null?void 0:c.currency_code),1)}),256))])]),t("li",null,[e[81]||(e[81]=r(" The voucher ")),t("span",_s,a(i.value.expires_at?"expires at "+i.value.expires_at:"does not expire"),1),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[18]||(e[18]=o=>v("expirationSection"))}," Edit ")]),t("li",ws,[i.value.voucher_set_type?(s(),l("div",gs,[e[82]||(e[82]=r(" Has a type of ")),t("span",ks,a(i.value.voucher_set_type),1),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[19]||(e[19]=o=>v("expirationSection"))}," Edit ")])):(s(),l("div",ys,[e[83]||(e[83]=r(" Does ")),e[84]||(e[84]=t("span",{class:"font-bold"},"not yet have a type",-1)),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[20]||(e[20]=o=>v("expirationSection"))}," Edit ")]))]),t("li",bs,[i.value.voucher_template_id?(s(),l("div",Cs,[e[85]||(e[85]=r(" Is using this voucher template ")),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[21]||(e[21]=o=>v("voucherTemplateSection"))}," Edit "),t("div",Ms,[t("img",{src:D.value.example_template_image_url,alt:"",class:"border rounded max-h-48"},null,8,Ss)])])):(s(),l("div",Ts,[e[86]||(e[86]=r(" Does ")),e[87]||(e[87]=t("span",{class:"font-bold"},"not yet have a template",-1)),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[22]||(e[22]=o=>v("voucherTemplateSection"))}," Edit ")]))])])]),t("div",js,[E.value?(s(),F(N,{key:0,disabled:B.value,onClick:e[23]||(e[23]=o=>ee())},{default:k(()=>[B.value?(s(),l("div",Zs," Generating.. ")):(s(),l("div",Vs," Generate! "))]),_:1},8,["disabled"])):u("",!0)])])):u("",!0)])])}}},Is={__name:"VoucherSetNew",setup(X){return(g,E)=>(s(),l(h,null,[U(Z(ye),{title:"Vouchers"}),U(xe,null,{header:k(()=>[U(be)]),default:k(()=>[U(Bs)]),_:1})],64))}};export{Is as default}; +import{S as b,_ as xe}from"./AuthenticatedLayout-DuLcXyKk.js";import{Q as fe,r as d,o as _e,p as j,b as s,c as l,d as t,f as u,s as we,h as F,w as k,e as r,l as _,m as ge,q as C,F as h,g as w,t as a,u as Z,n as W,a as U,v as ke,Z as ye}from"./app-DolNWhzr.js";import{_ as be}from"./AdminTopNavigation-Bl9ElpaD.js";import{_ as J}from"./SecondaryButton-DL_I_H3U.js";import{P as N}from"./PrimaryButton-BtqGl7rR.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const Ce={class:"py-8 space-y-8"},Me={class:"card"},Se={class:""},Te={key:0},je={class:"flex justify-start mt-8"},Ze={key:0,class:"space-y-8"},Ve={id:"testSection",class:"card"},Be={class:"card-header flex justify-between"},$e={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},ze={key:1,class:"size-6 text-orange-500 fill-orange-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Fe={class:"my-8"},Ue={class:"mb-2",for:"voucherSet.is_test"},Ee={id:"serviceTeamSection",class:"card"},He={class:"card-header flex justify-between"},Le={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ie={key:1,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},qe={key:0},Ne={for:"service-team-search"},Ae={class:"my-4 flex flex-wrap gap-2"},De={key:1},Oe={id:"merchantTeamSection",class:"card"},Re={class:"card-header flex justify-between"},We={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ye={key:1,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ge={for:"service-team-search"},Pe={class:"my-4 flex flex-wrap gap-2"},Qe={key:0,class:"mt-8"},Ke={class:"mt-2"},Je=["onClick"],Xe={id:"fundingTeamSection",class:"card"},et={class:"card-header flex justify-between"},tt={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},st={key:1,class:"size-6 text-orange-500 fill-orange-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},ot={key:0},lt={for:"service-team-search"},nt={class:"my-4 flex flex-wrap gap-2"},it={key:1},rt={id:"totalValueSection",class:"card"},at={class:"card-header flex justify-between"},dt={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},ut={key:1,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},vt={class:"my-8"},ct={for:"voucherSet.total_set_value"},mt={class:"font-bold"},pt={id:"denominationsSection",class:"card"},ht={class:"card-header flex justify-between"},xt={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},ft={key:1,class:"size-6 text-orange-500 fill-orange-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},_t={key:2,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},wt={class:"flex justify-between items-center"},gt={class:"mt-4"},kt={class:"mb-2 flex justify-start items-center border-b py-4"},yt=["onUpdate:modelValue"],bt={class:"pl-4"},Ct={class:"text-xs"},Mt=["onUpdate:modelValue","onKeyup"],St={class:"pt-6"},Tt=["onClick"],jt={class:"pt-8"},Zt={class:"text-center mx-24 p-8 rounded-lg border-4 border-gray-200"},Vt={class:"text-xs"},Bt={key:0,class:"text-xs text-red-500 mt-4"},$t={key:1,class:"text-xs text-green-500 mt-4"},zt={key:2,class:"text-xs text-gray-500 mt-4"},Ft={id:"expirationSection",class:"card"},Ut={class:"card-header flex justify-between"},Et={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Ht={key:1,class:"size-6 text-orange-500 fill-orange-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Lt={class:"my-8"},It={class:"mt-4"},qt={class:"italic"},Nt={class:"mt-4"},At={key:0,class:"mt-8"},Dt={key:1,class:"text-xs italic"},Ot={id:"voucherTypeSection",class:"card"},Rt={class:"card-header flex justify-between"},Wt={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Yt={key:1,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Gt={class:"mt-4"},Pt={class:""},Qt=["value"],Kt={id:"voucherTemplateSection",class:"card"},Jt={class:"card-header flex justify-between"},Xt={key:0,class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},es={key:1,class:"size-6 text-red-500 fill-red-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},ts={class:"grid gap-4 grid-cols-6 mt-8"},ss=["onClick"],os=["src"],ls={key:0,class:"text-xs italic text-center mt-1 text-green-500"},ns={key:1,class:"card"},is={class:"card-header flex justify-between"},rs={class:""},as={key:0,class:"flex text-green-500 items-center"},ds={key:1,class:"flex text-red-500 items-center"},us={class:"my-8"},vs={class:"list-disc space-y-6 pl-4"},cs={class:"font-bold"},ms={key:0,class:"font-bold"},ps={class:"font-bold"},hs={key:0,class:"font-bold"},xs={class:"font-bold"},fs={class:"font-bold"},_s={class:"font-bold"},ws={class:""},gs={key:0},ks={class:"font-bold"},ys={key:1},bs={class:""},Cs={key:0},Ms={class:"mt-2"},Ss=["src"],Ts={key:1},js={class:"flex justify-end"},Zs={key:0},Vs={key:1},Bs={__name:"VoucherSetNewComponent",setup(X){const g=fe().props,E=d(!1),V=d(!1),B=d(!1),A=d([]),H=d([]),M=d(""),x=d(""),L=d([]),I=d([]),$=d(""),m=d([]),q=d([]),S=d([]),f=d(""),T=d(""),Y=d([]),D=d({}),O=d(0),i=d({is_test:0,allocated_to_service_team_id:"",merchant_team_ids:[],funded_by_team_id:"",voucher_template_id:"",total_set_value:0,denominations:[],expires_at:"",voucher_set_type:""});function p(){return i.value.total_set_value-Q()}function ee(){b.fire({title:"Are you sure?",icon:"info",text:"This will not only create a voucher set, but also email all the merchants you selected, asking for their approval to partake in the voucher set. Are you sure you want to do this?",showConfirmButton:!0,showCancelButton:!0}).then(n=>{n.isConfirmed&&(B.value=!0,Object.assign({},i.value),axios.post("/admin/voucher-sets",i.value).then(e=>{b.fire({title:"Nice!",icon:"success",text:e.data.data.message,showConfirmButton:!1,timer:600}).then(()=>{window.location.href="/admin/voucher-set/"+e.data.data.id}),B.value=!1}).catch(e=>{b.fire({title:"Oops!",icon:"error",text:e.response.data.meta.message}),console.log(e),B.value=!1}))})}function G(){i.value.denominations.push({value:500,colloquialCurrencyUnitValue:5,number:1})}function te(n){n>-1&&i.value.denominations.splice(n,1)}function se(){M.value.length?H.value=A.value.filter(n=>n.name.toLowerCase().includes(M.value)):H.value=A.value}function P(){if($.value.length){const n=L.value.filter(e=>{var y;return(y=e.merchant_team)==null?void 0:y.name.toLowerCase().includes($.value)});I.value=n.filter(e=>!m.value.some(y=>e.merchant_team.id===y.id))}else I.value=L.value}function oe(){T.value.length?S.value=q.value.filter(n=>{var e;return(e=n.service_team)==null?void 0:e.name.toLowerCase().includes(T.value)}):S.value=q.value}function le(){axios.get("/admin/teams").then(n=>{A.value=n.data.data.data}).catch(n=>{b.fire({icon:"error",title:"Oops!",text:n.response.data.meta.message})})}function ne(n){axios.get("/admin/team-merchant-teams?relations=merchantTeam&where[]=team_id,"+n.id).then(e=>{L.value=e.data.data.data,I.value=e.data.data.data}).catch(e=>{b.fire({icon:"error",title:"Oops!",text:e.response.data.meta.message})})}function ie(){axios.get("/admin/team-service-teams?relations=serviceTeam&where[]=team_id,"+g.auth.user.current_team_id).then(n=>{q.value=n.data.data.data,S.value=n.data.data.data}).catch(n=>{b.fire({icon:"error",title:"Oops!",text:n.response.data.meta.message})})}function re(){axios.get("/admin/team-voucher-templates?cached=false&where[]=team_id,"+g.auth.user.current_team_id+"&where[]=archived_at,null").then(n=>{Y.value=n.data.data.data}).catch(n=>{b.fire({icon:"error",title:"Oops!",text:n.response.data.meta.message})})}function v(n){const e=document.getElementById(n);e&&e.scrollIntoView({behavior:"smooth"})}function ae(n){x.value=n,i.value.funded_by_team_id=n.id,H.value=[],M.value=""}function de(n){i.value.merchant_team_ids.includes(n.id)||(i.value.merchant_team_ids.push(n.id),m.value.push(n))}function ue(n){f.value=n,i.value.allocated_to_service_team_id=n.id,S.value=[],T.value="",ne(n)}function ve(n){i.value.voucher_template_id===n.id?(i.value.voucher_template_id="",D.value={}):(i.value.voucher_template_id=n.id,D.value=n)}function ce(){f.value="",i.value.allocated_to_service_team_id="",S.value=Object.assign({},q.value),m.value=[],L.value=[],i.value.merchant_team_ids=[]}function me(){V.value=!0}function Q(){let n=0;return i.value.denominations.forEach(e=>{n+=e.number*e.value}),n}function pe(n){n>-1&&m.value.splice(n,1)}function he(n){n.value=n.colloquialCurrencyUnitValue*100}return _e(()=>{le(),ie(),re(),G()}),j(m,()=>{P()},{deep:!0}),j(i,()=>{E.value=i.value.total_set_value>0&&i.value.merchant_team_ids.length>0&&i.value.voucher_template_id&&i.value.allocated_to_service_team_id&&i.value.voucher_set_type&&p()>=0},{deep:!0}),j(M,()=>{se()}),j($,()=>{P()}),j(T,()=>{oe()}),j(O,n=>{i.value.total_set_value=n*100}),(n,e)=>{var y,K;return s(),l("div",null,[t("div",Ce,[t("div",Me,[e[27]||(e[27]=t("div",{class:"card-header"}," Create A Voucher Set ",-1)),t("div",Se,[V.value?u("",!0):(s(),l("div",Te,e[24]||(e[24]=[t("div",{class:"my-8"}," This process will bring you through creating a voucher set. There are 8 steps to complete. ",-1),t("div",{class:"mt-8"}," The following icons are used: ",-1)]))),e[26]||(e[26]=we('
  • Complete ‐ You have met the requirements for this section
  • Warning ‐ This section is not required, so please double check the default answer
  • Incomplete ‐ You have not met the requirements for this section
',1)),t("div",je,[V.value?u("",!0):(s(),F(J,{key:0,onClick:e[0]||(e[0]=o=>me())},{default:k(()=>e[25]||(e[25]=[r(" Get started ")])),_:1}))])])]),V.value?(s(),l("div",Ze,[t("div",Ve,[t("div",Be,[e[30]||(e[30]=r(" Is this a test voucher set? ")),i.value.is_test?(s(),l("svg",$e,e[28]||(e[28]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",ze,e[29]||(e[29]=[t("path",{d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),e[32]||(e[32]=t("div",{class:"my-8"}," A test voucher set is for when you want to test the process, but the vouchers are not real. ",-1)),t("div",Fe,[t("label",Ue,[_(t("input",{id:"voucherSet.is_test","onUpdate:modelValue":e[1]||(e[1]=o=>i.value.is_test=o),class:"mr-2",type:"checkbox"},null,512),[[ge,i.value.is_test]]),e[31]||(e[31]=r(" YES - this is a test voucher set. "))])])]),t("div",Ee,[t("div",He,[e[35]||(e[35]=r(" The service team ")),f.value?(s(),l("svg",Le,e[33]||(e[33]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",Ie,e[34]||(e[34]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),e[36]||(e[36]=t("div",{class:"my-8"}," Which service team are you allocating this voucher set to? ",-1)),f.value?(s(),l("div",De,[r(" Selected service team: "+a(f.value.name)+" ",1),f.value?(s(),l("span",{key:0,class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:e[3]||(e[3]=o=>ce())}," Remove ")):u("",!0)])):(s(),l("div",qe,[t("label",Ne,[_(t("input",{id:"service-team-search","onUpdate:modelValue":e[2]||(e[2]=o=>T.value=o),class:"block w-1/2 md:w-1/3 mt-1",placeholder:"Filter your service teams..",type:"search"},null,512),[[C,T.value]])]),t("div",Ae,[(s(!0),l(h,null,w(S.value,o=>(s(),F(N,{onClick:c=>ue(o.service_team)},{default:k(()=>[r(a(o.service_team.name),1)]),_:2},1032,["onClick"]))),256))])]))]),t("div",Oe,[t("div",Re,[e[39]||(e[39]=r(" The merchant team ")),m.value.length?(s(),l("svg",We,e[37]||(e[37]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",Ye,e[38]||(e[38]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),e[41]||(e[41]=t("div",{class:"my-8"}," Which merchant team(s) are you assigning this voucher set to? ",-1)),t("div",null,[t("label",Ge,[_(t("input",{id:"merchant-team-search","onUpdate:modelValue":e[4]||(e[4]=o=>$.value=o),class:"block w-1/2 md:w-1/3 mt-1",placeholder:"Filter merchant teams..",type:"search"},null,512),[[C,$.value]])]),t("div",Pe,[(s(!0),l(h,null,w(I.value,o=>(s(),F(N,{onClick:c=>de(o.merchant_team)},{default:k(()=>[r(a(o.merchant_team.name),1)]),_:2},1032,["onClick"]))),256))])]),m.value.length?(s(),l("div",Qe,[e[40]||(e[40]=r(" Selected merchant team(s): ")),t("div",null,[(s(!0),l(h,null,w(m.value,(o,c)=>(s(),l("div",Ke,[r(a(o.name)+" ",1),t("span",{class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:R=>pe(c)}," Remove ",8,Je)]))),256))])])):u("",!0)]),t("div",Xe,[t("div",et,[e[44]||(e[44]=r(" The funding team ")),x.value?(s(),l("svg",tt,e[42]||(e[42]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",st,e[43]||(e[43]=[t("path",{d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),e[46]||(e[46]=t("div",{class:"my-8"}," Is this voucher set funded by anyone? If so, please nominate the team here. ",-1)),x.value?(s(),l("div",it,[r(" Selected funding team: "+a(x.value.name)+" ",1),x.value?(s(),l("span",{key:0,class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:e[6]||(e[6]=o=>x.value="")}," Remove ")):u("",!0)])):(s(),l("div",ot,[t("label",lt,[e[45]||(e[45]=r(" Search for a funding team ")),_(t("input",{id:"merchant-team-search","onUpdate:modelValue":e[5]||(e[5]=o=>M.value=o),class:"block w-1/2 md:w-1/3",type:"search"},null,512),[[C,M.value]])]),t("div",nt,[(s(!0),l(h,null,w(H.value,o=>(s(),F(N,{onClick:c=>ae(o)},{default:k(()=>[r(a(o.name),1)]),_:2},1032,["onClick"]))),256))])]))]),t("div",rt,[t("div",at,[e[49]||(e[49]=r(" Total value ")),i.value.total_set_value>0?(s(),l("svg",dt,e[47]||(e[47]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",ut,e[48]||(e[48]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),t("div",vt,[t("label",ct,[e[50]||(e[50]=r(" What will the total value of the voucher set be, in ")),t("span",mt,a((y=Z(g).auth.teamCountry)==null?void 0:y.currency_code),1),e[51]||(e[51]=r("? ")),_(t("input",{id:"voucherSet.total_set_value","onUpdate:modelValue":e[7]||(e[7]=o=>O.value=o),class:"block mt-2",type:"number"},null,512),[[C,O.value]])])])]),t("div",pt,[t("div",ht,[e[55]||(e[55]=r(" Denominations ")),p()===0?(s(),l("svg",xt,e[52]||(e[52]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):p()>0?(s(),l("svg",ft,e[53]||(e[53]=[t("path",{d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",_t,e[54]||(e[54]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),t("div",wt,[t("div",gt,[t("div",null," Available to assign: "+a((i.value.total_set_value/100).toFixed(2))+" "+a((K=Z(g).auth.teamCountry)==null?void 0:K.currency_code),1),t("div",{class:W({"text-red":p()<0})}," Remaining: "+a((p()/100).toFixed(2)),3),t("div",null,[(s(!0),l(h,null,w(i.value.denominations,(o,c)=>{var R;return s(),l("div",kt,[t("div",null,[e[56]||(e[56]=t("div",{class:"text-xs"}," Create ",-1)),t("div",null,[_(t("input",{"onUpdate:modelValue":z=>o.number=z,class:"border rounded p-1",type:"number"},null,8,yt),[[C,o.number]])])]),t("div",bt,[t("div",Ct," of "+a((R=Z(g).auth.teamCountry)==null?void 0:R.currency_code),1),t("div",null,[_(t("input",{"onUpdate:modelValue":z=>o.colloquialCurrencyUnitValue=z,class:"border rounded p-1",onKeyup:z=>he(o),step:"1",type:"number"},null,40,Mt),[[C,o.colloquialCurrencyUnitValue]])])]),t("div",St,[c!==0?(s(),l("button",{key:0,class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:z=>te(c)},e[57]||(e[57]=[t("i",{class:"fa fa-times"},null,-1),r(" Remove ")]),8,Tt)):u("",!0)])])}),256)),t("div",jt,[U(J,{onClick:e[8]||(e[8]=o=>G())},{default:k(()=>e[58]||(e[58]=[r(" Add row "),t("i",{class:"fa fa-plus"},null,-1)])),_:1})])])]),t("div",Zt,[e[59]||(e[59]=t("div",{class:"text-2xl"}," Total assigned: ",-1)),t("div",{class:W([{"text-green-500":p()>=0,"text-red-500":p()<0},"text-3xl mt-4"])},[r(a((Q()/100).toFixed(2))+" ",1),t("div",Vt," out of "+a((i.value.total_set_value/100).toFixed(2)),1)],2),p()<0?(s(),l("div",Bt," - over budget - ")):p()>0?(s(),l("div",$t,a((p()/100).toFixed(2))+" remaining ",1)):(s(),l("div",zt," Voucher fully allocated "))])])]),t("div",Ft,[t("div",Ut,[e[62]||(e[62]=r(" Expiration ")),i.value.expires_at?(s(),l("svg",Et,e[60]||(e[60]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",Ht,e[61]||(e[61]=[t("path",{d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),t("div",Lt,[e[64]||(e[64]=r(" When will these vouchers expire? ")),t("div",It,[t("label",qt,[e[63]||(e[63]=r(" Select expiry date ")),_(t("input",{"onUpdate:modelValue":e[9]||(e[9]=o=>i.value.expires_at=o),class:"rounded",type:"date"},null,512),[[C,i.value.expires_at]])])]),t("div",Nt,[i.value.expires_at?(s(),l("div",At,[r(" Selected expiry date: "+a(i.value.expires_at)+" ",1),t("span",{class:"text-red-500 text-xs underline hover:cursor-pointer ml-2",onClick:e[10]||(e[10]=o=>i.value.expires_at="")}," Remove ")])):(s(),l("div",Dt," Not selecting an expiry date will mean vouchers stay valid forever. "))])])]),t("div",Ot,[t("div",Rt,[e[67]||(e[67]=r(" Type ")),i.value.voucher_set_type?(s(),l("svg",Wt,e[65]||(e[65]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",Yt,e[66]||(e[66]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),t("div",Gt,[t("label",Pt,[e[69]||(e[69]=r(" Choose the type of the voucher set ")),_(t("select",{"onUpdate:modelValue":e[11]||(e[11]=o=>i.value.voucher_set_type=o),class:"ml-2"},[e[68]||(e[68]=t("option",{value:""},"Select a type",-1)),(s(!0),l(h,null,w(Z(g).voucherSetTypes,o=>(s(),l("option",{value:o},a(o),9,Qt))),256))],512),[[ke,i.value.voucher_set_type]])])])]),t("div",Kt,[t("div",Jt,[e[72]||(e[72]=r(" Template ")),i.value.voucher_template_id?(s(),l("svg",Xt,e[70]||(e[70]=[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(s(),l("svg",es,e[71]||(e[71]=[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),t("div",ts,[(s(!0),l(h,null,w(Y.value,o=>(s(),l("div",null,[t("div",{class:W([{"border-green-500":o.id===i.value.voucher_template_id,"opacity-40":i.value.voucher_template_id&&o.id!==i.value.voucher_template_id},"hover:cursor-pointer border-2 rounded"]),onClick:c=>ve(o)},[t("img",{src:o.example_template_image_url,alt:"",class:"border rounded"},null,8,os)],10,ss),o.id===i.value.voucher_template_id?(s(),l("div",ls," Selected! ")):u("",!0)]))),256))])])])):u("",!0),V.value?(s(),l("div",ns,[t("div",is,[e[75]||(e[75]=r(" Review ")),t("div",rs,[E.value?(s(),l("div",as,e[73]||(e[73]=[r(" You have completed all the required sections "),t("svg",{class:"size-6 text-green-500 fill-green-100",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z","stroke-linecap":"round","stroke-linejoin":"round"})],-1)]))):(s(),l("div",ds,e[74]||(e[74]=[r(" You have required sections that still need completing "),t("svg",{class:"size-6 fill-red-100 ml-2",fill:"none",stroke:"currentColor","stroke-width":"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])))])]),e[88]||(e[88]=t("div",{class:"my-8"},[t("div",null," Please review the following details for your voucher set. ")],-1)),t("div",us,[t("ul",vs,[t("li",null,[e[76]||(e[76]=r(" The voucher set is ")),t("span",cs,a(i.value.is_test?"a test":"not a test"),1),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[12]||(e[12]=o=>v("testSection"))}," Edit ")]),t("li",null,[r(" It has "+a(f.value?"":" not yet ")+" been allocated to service team ",1),f.value?(s(),l("span",ms,a(f.value.name),1)):u("",!0),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[13]||(e[13]=o=>v("serviceTeamSection"))}," Edit ")]),t("li",null,[r(" It has "+a(m.value.length?"":" not yet ")+" been assigned to a merchant team(s) ",1),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[14]||(e[14]=o=>v("merchantTeamSection"))}," Edit "),(s(!0),l(h,null,w(m.value,o=>(s(),l("div",{key:o.id,class:"my-1 font-bold"},a(o.name),1))),128))]),t("li",null,[e[77]||(e[77]=r(" It has ")),t("span",ps,a(x.value?"":" not "),1),e[78]||(e[78]=r(" been associated to funding team ")),x.value?(s(),l("span",hs,a(x.value.name),1)):u("",!0),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[15]||(e[15]=o=>v("fundingTeamSection"))}," Edit ")]),t("li",null,[e[79]||(e[79]=r(" It has a total value of: ")),t("span",xs,a((i.value.total_set_value/100).toFixed(2)),1),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[16]||(e[16]=o=>v("totalValueSection"))}," Edit ")]),t("li",null,[e[80]||(e[80]=r(" Divided into denominations of: ")),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[17]||(e[17]=o=>v("denominationsSection"))}," Edit "),t("ul",null,[(s(!0),l(h,null,w(i.value.denominations,o=>{var c;return s(),l("li",fs,a(o.number)+" "+a(o.number===1?"unit":"units")+" of "+a(o.colloquialCurrencyUnitValue)+" "+a((c=Z(g).auth.teamCountry)==null?void 0:c.currency_code),1)}),256))])]),t("li",null,[e[81]||(e[81]=r(" The voucher ")),t("span",_s,a(i.value.expires_at?"expires at "+i.value.expires_at:"does not expire"),1),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[18]||(e[18]=o=>v("expirationSection"))}," Edit ")]),t("li",ws,[i.value.voucher_set_type?(s(),l("div",gs,[e[82]||(e[82]=r(" Has a type of ")),t("span",ks,a(i.value.voucher_set_type),1),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[19]||(e[19]=o=>v("expirationSection"))}," Edit ")])):(s(),l("div",ys,[e[83]||(e[83]=r(" Does ")),e[84]||(e[84]=t("span",{class:"font-bold"},"not yet have a type",-1)),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[20]||(e[20]=o=>v("expirationSection"))}," Edit ")]))]),t("li",bs,[i.value.voucher_template_id?(s(),l("div",Cs,[e[85]||(e[85]=r(" Is using this voucher template ")),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[21]||(e[21]=o=>v("voucherTemplateSection"))}," Edit "),t("div",Ms,[t("img",{src:D.value.example_template_image_url,alt:"",class:"border rounded max-h-48"},null,8,Ss)])])):(s(),l("div",Ts,[e[86]||(e[86]=r(" Does ")),e[87]||(e[87]=t("span",{class:"font-bold"},"not yet have a template",-1)),t("button",{class:"text-xs text-blue-500 ml-2 underline",onClick:e[22]||(e[22]=o=>v("voucherTemplateSection"))}," Edit ")]))])])]),t("div",js,[E.value?(s(),F(N,{key:0,disabled:B.value,onClick:e[23]||(e[23]=o=>ee())},{default:k(()=>[B.value?(s(),l("div",Zs," Generating.. ")):(s(),l("div",Vs," Generate! "))]),_:1},8,["disabled"])):u("",!0)])])):u("",!0)])])}}},Is={__name:"VoucherSetNew",setup(X){return(g,E)=>(s(),l(h,null,[U(Z(ye),{title:"Vouchers"}),U(xe,null,{header:k(()=>[U(be)]),default:k(()=>[U(Bs)]),_:1})],64))}};export{Is as default}; diff --git a/public/build/assets/VoucherSets-Ym74sKgi.js b/public/build/assets/VoucherSets-w_SenqBe.js similarity index 51% rename from public/build/assets/VoucherSets-Ym74sKgi.js rename to public/build/assets/VoucherSets-w_SenqBe.js index b62edacc..acb5d2e4 100644 --- a/public/build/assets/VoucherSets-Ym74sKgi.js +++ b/public/build/assets/VoucherSets-w_SenqBe.js @@ -1 +1 @@ -import{_ as a}from"./AuthenticatedLayout-BSBk4Waj.js";import{c as i,a as e,u as m,w as s,F as n,b as u,Z as l,d as t,e as _}from"./app-zpP4mvhd.js";import{_ as c}from"./AdminTopNavigation-CKquTKkz.js";import{_ as d}from"./VoucherSetsComponent-7qrYpVZu.js";import{P as f}from"./PrimaryButton-6L6tESKC.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PaginatorComponent-Dk-0OsjZ.js";import"./SecondaryButton-Dml8iKd5.js";import"./dayjs.min-C0_0pMrK.js";import"./relativeTime-__Y28WrV.js";import"./utc-D2jiDVXM.js";const p={class:"card"},h={class:"card-header flex justify-between items-center"},v=["href"],g={__name:"VoucherSets",setup(V){return(o,r)=>(u(),i(n,null,[e(m(l),{title:"Voucher sets"}),e(a,null,{header:s(()=>[e(c)]),default:s(()=>[t("div",p,[t("div",h,[r[1]||(r[1]=t("div",null," Voucher Sets ",-1)),t("div",null,[t("a",{href:o.route("admin.voucher-sets.new")},[e(f,null,{default:s(()=>r[0]||(r[0]=[_(" Create voucher set ")])),_:1})],8,v)])]),e(d)])]),_:1})],64))}};export{g as default}; +import{_ as a}from"./AuthenticatedLayout-DuLcXyKk.js";import{c as i,a as e,u as m,w as s,F as n,b as u,Z as l,d as t,e as _}from"./app-DolNWhzr.js";import{_ as c}from"./AdminTopNavigation-Bl9ElpaD.js";import{_ as d}from"./VoucherSetsComponent-PmCvbfnV.js";import{P as f}from"./PrimaryButton-BtqGl7rR.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PaginatorComponent-DpqX95xS.js";import"./SecondaryButton-DL_I_H3U.js";import"./dayjs.min-ilzO22t1.js";import"./relativeTime-BTl_QCHW.js";import"./utc-CWodzHWT.js";const p={class:"card"},h={class:"card-header flex justify-between items-center"},v=["href"],g={__name:"VoucherSets",setup(V){return(o,r)=>(u(),i(n,null,[e(m(l),{title:"Voucher sets"}),e(a,null,{header:s(()=>[e(c)]),default:s(()=>[t("div",p,[t("div",h,[r[1]||(r[1]=t("div",null," Voucher Sets ",-1)),t("div",null,[t("a",{href:o.route("admin.voucher-sets.new")},[e(f,null,{default:s(()=>r[0]||(r[0]=[_(" Create voucher set ")])),_:1})],8,v)])]),e(d)])]),_:1})],64))}};export{g as default}; diff --git a/public/build/assets/VoucherSetsComponent-7qrYpVZu.js b/public/build/assets/VoucherSetsComponent-PmCvbfnV.js similarity index 91% rename from public/build/assets/VoucherSetsComponent-7qrYpVZu.js rename to public/build/assets/VoucherSetsComponent-PmCvbfnV.js index 9d10c033..a9e79a88 100644 --- a/public/build/assets/VoucherSetsComponent-7qrYpVZu.js +++ b/public/build/assets/VoucherSetsComponent-PmCvbfnV.js @@ -1 +1 @@ -import{r as v,o as w,b as l,c as d,d as e,F as k,g as V,a as i,w as c,e as m,t as a,u as _,i as u,f as B}from"./app-zpP4mvhd.js";import{P as T}from"./PaginatorComponent-Dk-0OsjZ.js";import{d as x}from"./dayjs.min-C0_0pMrK.js";import{r as C}from"./relativeTime-__Y28WrV.js";import{u as N}from"./utc-D2jiDVXM.js";const q={key:0},I={class:"w-full text-xs"},j={class:"hover:bg-gray-100 border-b"},F={class:"py-1"},D={class:"text-right"},P={key:0},A={key:1},Y={class:"text-right"},E={key:0},L={key:1},M={class:"flex justify-end"},R={class:"flex justify-end items-center mt-4"},$={class:"w-full lg:w-1/3"},O={__name:"VoucherSetsComponent",props:{teamId:{required:!1,default:null},filterVoucherSets:{required:!1,default:null}},setup(b){x.extend(C),x.extend(N);const r=b,f=v(50),o=v({});w(()=>{r.teamId&&(f.value=10),h()});function h(p=1){let s="";r.teamId&&r.filterVoucherSets&&(s="&where[]="+r.filterVoucherSets+","+r.teamId),axios.get("/admin/voucher-sets?cached=false&page="+p+"&limit="+f.value+s+"&orderBy=created_at,desc&relations=createdByTeam,allocatedToServiceTeam,currencyCountry").then(t=>{o.value=t.data.data}).catch(t=>{console.log(t)})}return(p,s)=>o.value.data&&o.value.data.length?(l(),d("div",q,[e("table",I,[s[1]||(s[1]=e("thead",{class:"bg-gray-200 font-bold border-b"},[e("tr",null,[e("td",{class:"p-2"},"ID"),e("td",null,"Test?"),e("td",null,"Created By"),e("td",null,"Allocated To"),e("td",null,"Approved"),e("td",{class:"text-right"},"Total Value"),e("td",{class:"text-right"},"Value Remainaing"),e("td")])],-1)),e("tbody",null,[(l(!0),d(k,null,V(o.value.data,t=>{var g,y;return l(),d("tr",j,[e("td",F,[i(_(u),{href:"/admin/voucher-set/"+t.id},{default:c(()=>[m(" #"+a(t.id),1)]),_:2},1032,["href"])]),e("td",null,a(t.is_test?"Yes":""),1),e("td",null,[i(_(u),{href:"/admin/team/"+t.created_by_team_id},{default:c(()=>{var n;return[m(a((n=t.created_by_team)==null?void 0:n.name),1)]}),_:2},1032,["href"])]),e("td",null,[i(_(u),{href:"/admin/team/"+t.allocated_to_service_team_id},{default:c(()=>{var n;return[m(a((n=t.allocated_to_service_team)==null?void 0:n.name),1)]}),_:2},1032,["href"])]),e("td",null,a(t.merchant_approval_request_id?"Yes":"--"),1),e("td",D,[t.merchant_approval_request_id?(l(),d("div",P,a(Number(t.total_set_value/100).toFixed(2))+" "+a((g=t.currency_country)==null?void 0:g.currency_code),1)):(l(),d("div",A," -- "))]),e("td",Y,[t.merchant_approval_request_id?(l(),d("div",E,a(Number(t.total_set_value_remaining/100).toFixed(2))+" "+a((y=t.total_set_value_remaining)==null?void 0:y.currency_code),1)):(l(),d("div",L," -- "))]),e("td",M,[i(_(u),{class:"secondaryButton",href:"/admin/voucher-set/"+t.id},{default:c(()=>s[0]||(s[0]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1)])),_:2},1032,["href"])])])}),256))])]),e("div",R,[e("div",$,[i(T,{onSetDataPage:h,"pagination-data":o.value},null,8,["pagination-data"])])])])):B("",!0)}};export{O as _}; +import{r as v,o as w,b as l,c as d,d as e,F as k,g as V,a as i,w as c,e as m,t as a,u as _,i as u,f as B}from"./app-DolNWhzr.js";import{P as T}from"./PaginatorComponent-DpqX95xS.js";import{d as x}from"./dayjs.min-ilzO22t1.js";import{r as C}from"./relativeTime-BTl_QCHW.js";import{u as N}from"./utc-CWodzHWT.js";const q={key:0},I={class:"w-full text-xs"},j={class:"hover:bg-gray-100 border-b"},F={class:"py-1"},D={class:"text-right"},P={key:0},A={key:1},Y={class:"text-right"},E={key:0},L={key:1},M={class:"flex justify-end"},R={class:"flex justify-end items-center mt-4"},$={class:"w-full lg:w-1/3"},O={__name:"VoucherSetsComponent",props:{teamId:{required:!1,default:null},filterVoucherSets:{required:!1,default:null}},setup(b){x.extend(C),x.extend(N);const r=b,f=v(50),o=v({});w(()=>{r.teamId&&(f.value=10),h()});function h(p=1){let s="";r.teamId&&r.filterVoucherSets&&(s="&where[]="+r.filterVoucherSets+","+r.teamId),axios.get("/admin/voucher-sets?cached=false&page="+p+"&limit="+f.value+s+"&orderBy=created_at,desc&relations=createdByTeam,allocatedToServiceTeam,currencyCountry").then(t=>{o.value=t.data.data}).catch(t=>{console.log(t)})}return(p,s)=>o.value.data&&o.value.data.length?(l(),d("div",q,[e("table",I,[s[1]||(s[1]=e("thead",{class:"bg-gray-200 font-bold border-b"},[e("tr",null,[e("td",{class:"p-2"},"ID"),e("td",null,"Test?"),e("td",null,"Created By"),e("td",null,"Allocated To"),e("td",null,"Approved"),e("td",{class:"text-right"},"Total Value"),e("td",{class:"text-right"},"Value Remainaing"),e("td")])],-1)),e("tbody",null,[(l(!0),d(k,null,V(o.value.data,t=>{var g,y;return l(),d("tr",j,[e("td",F,[i(_(u),{href:"/admin/voucher-set/"+t.id},{default:c(()=>[m(" #"+a(t.id),1)]),_:2},1032,["href"])]),e("td",null,a(t.is_test?"Yes":""),1),e("td",null,[i(_(u),{href:"/admin/team/"+t.created_by_team_id},{default:c(()=>{var n;return[m(a((n=t.created_by_team)==null?void 0:n.name),1)]}),_:2},1032,["href"])]),e("td",null,[i(_(u),{href:"/admin/team/"+t.allocated_to_service_team_id},{default:c(()=>{var n;return[m(a((n=t.allocated_to_service_team)==null?void 0:n.name),1)]}),_:2},1032,["href"])]),e("td",null,a(t.merchant_approval_request_id?"Yes":"--"),1),e("td",D,[t.merchant_approval_request_id?(l(),d("div",P,a(Number(t.total_set_value/100).toFixed(2))+" "+a((g=t.currency_country)==null?void 0:g.currency_code),1)):(l(),d("div",A," -- "))]),e("td",Y,[t.merchant_approval_request_id?(l(),d("div",E,a(Number(t.total_set_value_remaining/100).toFixed(2))+" "+a((y=t.total_set_value_remaining)==null?void 0:y.currency_code),1)):(l(),d("div",L," -- "))]),e("td",M,[i(_(u),{class:"secondaryButton",href:"/admin/voucher-set/"+t.id},{default:c(()=>s[0]||(s[0]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1)])),_:2},1032,["href"])])])}),256))])]),e("div",R,[e("div",$,[i(T,{onSetDataPage:h,"pagination-data":o.value},null,8,["pagination-data"])])])])):B("",!0)}};export{O as _}; diff --git a/public/build/assets/VoucherTemplateEdit-CAqmVyFX.js b/public/build/assets/VoucherTemplateEdit-CAqmVyFX.js deleted file mode 100644 index 2d53e4bb..00000000 --- a/public/build/assets/VoucherTemplateEdit-CAqmVyFX.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as m}from"./AuthenticatedLayout-BSBk4Waj.js";import{c as a,a as t,u as i,w as r,F as p,b as s,Z as c}from"./app-zpP4mvhd.js";import{_ as n}from"./AdminTopNavigation-CKquTKkz.js";import{_}from"./AdminTeamVoucherTemplateEditComponent-D8-25Xe9.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-6L6tESKC.js";import"./TextInput-BGBBA2nL.js";import"./InputLabel-D6wY3cNc.js";import"./SecondaryButton-Dml8iKd5.js";import"./DangerButton-cN2oNBEm.js";import"./Checkbox-wBCZrcZW.js";const N={__name:"VoucherTemplateEdit",props:{id:{type:Number,required:!0}},setup(e){const o=e;return(u,l)=>(s(),a(p,null,[t(i(c),{title:"Edit Voucher Template"}),t(m,null,{header:r(()=>[t(n)]),default:r(()=>[t(_,{id:o.id},null,8,["id"])]),_:1})],64))}};export{N as default}; diff --git a/public/build/assets/VoucherTemplateEdit-tUbvCUOh.js b/public/build/assets/VoucherTemplateEdit-tUbvCUOh.js new file mode 100644 index 00000000..207c5327 --- /dev/null +++ b/public/build/assets/VoucherTemplateEdit-tUbvCUOh.js @@ -0,0 +1 @@ +import{_ as m}from"./AuthenticatedLayout-DuLcXyKk.js";import{c as a,a as t,u as i,w as r,F as p,b as s,Z as c}from"./app-DolNWhzr.js";import{_ as n}from"./AdminTopNavigation-Bl9ElpaD.js";import{_}from"./AdminTeamVoucherTemplateEditComponent-kp4t6m7l.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./TextInput-C41DJZHw.js";import"./InputLabel-P7ZTY_pn.js";import"./SecondaryButton-DL_I_H3U.js";import"./DangerButton-Bm5iDOLt.js";import"./Checkbox-YEQY-CTw.js";const N={__name:"VoucherTemplateEdit",props:{id:{type:Number,required:!0}},setup(e){const o=e;return(u,l)=>(s(),a(p,null,[t(i(c),{title:"Edit Voucher Template"}),t(m,null,{header:r(()=>[t(n)]),default:r(()=>[t(_,{id:o.id},null,8,["id"])]),_:1})],64))}};export{N as default}; diff --git a/public/build/assets/VoucherTemplateNew-CO4wq0pO.js b/public/build/assets/VoucherTemplateNew-CO4wq0pO.js new file mode 100644 index 00000000..a614cd9a --- /dev/null +++ b/public/build/assets/VoucherTemplateNew-CO4wq0pO.js @@ -0,0 +1 @@ +import{_ as e}from"./AuthenticatedLayout-DuLcXyKk.js";import{c as a,a as t,u as m,w as r,F as o,b as i,Z as p}from"./app-DolNWhzr.js";import{_}from"./AdminTopNavigation-Bl9ElpaD.js";import{_ as s}from"./AdminTeamVoucherTemplateEditComponent-kp4t6m7l.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./TextInput-C41DJZHw.js";import"./InputLabel-P7ZTY_pn.js";import"./SecondaryButton-DL_I_H3U.js";import"./DangerButton-Bm5iDOLt.js";import"./Checkbox-YEQY-CTw.js";const T={__name:"VoucherTemplateNew",setup(c){return(n,f)=>(i(),a(o,null,[t(m(p),{title:"Create Team"}),t(e,null,{header:r(()=>[t(_)]),default:r(()=>[t(s)]),_:1})],64))}};export{T as default}; diff --git a/public/build/assets/VoucherTemplateNew-Du4J7iBR.js b/public/build/assets/VoucherTemplateNew-Du4J7iBR.js deleted file mode 100644 index 041e0881..00000000 --- a/public/build/assets/VoucherTemplateNew-Du4J7iBR.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./AuthenticatedLayout-BSBk4Waj.js";import{c as a,a as t,u as m,w as r,F as o,b as i,Z as p}from"./app-zpP4mvhd.js";import{_}from"./AdminTopNavigation-CKquTKkz.js";import{_ as s}from"./AdminTeamVoucherTemplateEditComponent-D8-25Xe9.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-6L6tESKC.js";import"./TextInput-BGBBA2nL.js";import"./InputLabel-D6wY3cNc.js";import"./SecondaryButton-Dml8iKd5.js";import"./DangerButton-cN2oNBEm.js";import"./Checkbox-wBCZrcZW.js";const T={__name:"VoucherTemplateNew",setup(c){return(n,f)=>(i(),a(o,null,[t(m(p),{title:"Create Team"}),t(e,null,{header:r(()=>[t(_)]),default:r(()=>[t(s)]),_:1})],64))}};export{T as default}; diff --git a/public/build/assets/Vouchers-B0FApYnN.js b/public/build/assets/Vouchers-B0FApYnN.js deleted file mode 100644 index aef85493..00000000 --- a/public/build/assets/Vouchers-B0FApYnN.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./AuthenticatedLayout-BSBk4Waj.js";import{c as s,a as r,u as m,w as a,F as i,b as c,Z as _,d as e}from"./app-zpP4mvhd.js";import{_ as p}from"./AdminTopNavigation-CKquTKkz.js";import{_ as n}from"./VouchersComponent-DQsV5xCe.js";import"./ApplicationLogo-xXEUN_wz.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-6L6tESKC.js";import"./PaginatorComponent-Dk-0OsjZ.js";import"./SecondaryButton-Dml8iKd5.js";import"./dayjs.min-C0_0pMrK.js";import"./relativeTime-__Y28WrV.js";import"./utc-D2jiDVXM.js";const d={class:"card"},g={__name:"Vouchers",setup(l){return(u,t)=>(c(),s(i,null,[r(m(_),{title:"Vouchers"}),r(o,null,{header:a(()=>[r(p)]),default:a(()=>[e("div",d,[t[0]||(t[0]=e("div",{class:"card-header"}," Vouchers ",-1)),r(n)])]),_:1})],64))}};export{g as default}; diff --git a/public/build/assets/Vouchers-CDzwjVXy.js b/public/build/assets/Vouchers-CDzwjVXy.js new file mode 100644 index 00000000..382af7e8 --- /dev/null +++ b/public/build/assets/Vouchers-CDzwjVXy.js @@ -0,0 +1 @@ +import{_ as o}from"./AuthenticatedLayout-DuLcXyKk.js";import{c as s,a as r,u as m,w as a,F as i,b as c,Z as _,d as e}from"./app-DolNWhzr.js";import{_ as p}from"./AdminTopNavigation-Bl9ElpaD.js";import{_ as n}from"./VouchersComponent-o-O6pMZi.js";import"./ApplicationLogo-B917rUN3.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./PrimaryButton-BtqGl7rR.js";import"./PaginatorComponent-DpqX95xS.js";import"./SecondaryButton-DL_I_H3U.js";import"./dayjs.min-ilzO22t1.js";import"./relativeTime-BTl_QCHW.js";import"./utc-CWodzHWT.js";const d={class:"card"},g={__name:"Vouchers",setup(l){return(u,t)=>(c(),s(i,null,[r(m(_),{title:"Vouchers"}),r(o,null,{header:a(()=>[r(p)]),default:a(()=>[e("div",d,[t[0]||(t[0]=e("div",{class:"card-header"}," Vouchers ",-1)),r(n)])]),_:1})],64))}};export{g as default}; diff --git a/public/build/assets/VouchersComponent-DQsV5xCe.js b/public/build/assets/VouchersComponent-o-O6pMZi.js similarity index 91% rename from public/build/assets/VouchersComponent-DQsV5xCe.js rename to public/build/assets/VouchersComponent-o-O6pMZi.js index d6dd5fe3..de999688 100644 --- a/public/build/assets/VouchersComponent-DQsV5xCe.js +++ b/public/build/assets/VouchersComponent-o-O6pMZi.js @@ -1 +1 @@ -import{r as y,o as w,b as u,c as _,d as e,F as V,g as B,a as d,w as n,e as m,t as s,u as i,i as c,f as I}from"./app-zpP4mvhd.js";import{P as S}from"./PaginatorComponent-Dk-0OsjZ.js";import{d as x}from"./dayjs.min-C0_0pMrK.js";import{r as T}from"./relativeTime-__Y28WrV.js";import{u as k}from"./utc-D2jiDVXM.js";const C={key:0},N={class:"w-full text-xs"},j={class:"hover:bg-gray-100 border-b"},F={class:"py-1"},q={class:"text-right"},D={class:"text-right"},P={class:"flex justify-end"},A={class:"flex justify-end items-center mt-4"},E={class:"w-full lg:w-1/3"},z={__name:"VouchersComponent",props:{teamId:{required:!1,default:null},filterVouchers:{required:!1,default:null},voucherSetId:{required:!1,default:null}},setup(b){x.extend(T),x.extend(k);const a=b,f=y(50),l=y({});w(()=>{(a.teamId||a.voucherSetId)&&(f.value=10),h()});function h(g=1){let r="";a.teamId&&a.filterVouchers?r="&where[]="+a.filterVouchers+","+a.teamId:a.voucherSetId&&(r="&where[]=voucher_set_id,"+a.voucherSetId),axios.get("/admin/vouchers?cached=false&page="+g+"&limit="+f.value+r+"&orderBy=created_at,desc&relations=voucherSet.currencyCountry,createdByTeam,allocatedToServiceTeam").then(t=>{l.value=t.data.data}).catch(t=>{console.log(t)})}return(g,r)=>l.value.data&&l.value.data.length?(u(),_("div",C,[e("table",N,[r[1]||(r[1]=e("thead",{class:"bg-gray-200 font-bold border-b"},[e("tr",null,[e("td",{class:"p-2"},"ID"),e("td",null,"Test?"),e("td",null,"Created By"),e("td",null,"Allocated To"),e("td",{class:"text-right"},"Total Value"),e("td",{class:"text-right"},"Value Remaining"),e("td")])],-1)),e("tbody",null,[(u(!0),_(V,null,B(l.value.data,t=>{var v,p;return u(),_("tr",j,[e("td",F,[d(i(c),{href:"/admin/voucher/"+t.id},{default:n(()=>[m(" #"+s(t.id),1)]),_:2},1032,["href"])]),e("td",null,s(t.is_test?"Yes":""),1),e("td",null,[d(i(c),{href:"/admin/team/"+t.created_by_team_id},{default:n(()=>{var o;return[m(s((o=t.created_by_team)==null?void 0:o.name),1)]}),_:2},1032,["href"])]),e("td",null,[d(i(c),{href:"/admin/team/"+t.allocated_to_service_team_id},{default:n(()=>{var o;return[m(s((o=t.allocated_to_service_team)==null?void 0:o.name),1)]}),_:2},1032,["href"])]),e("td",q,[e("div",null,s(Number(t.voucher_value_original/100).toFixed(2))+" "+s((v=t.voucher_set.currency_country)==null?void 0:v.currency_code),1)]),e("td",D,[e("div",null,s(Number(t.voucher_value_remaining/100).toFixed(2))+" "+s((p=t.voucher_set.currency_country)==null?void 0:p.currency_code),1)]),e("td",P,[d(i(c),{class:"secondaryButton",href:"/admin/voucher/"+t.id},{default:n(()=>r[0]||(r[0]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1)])),_:2},1032,["href"])])])}),256))])]),e("div",A,[e("div",E,[d(S,{onSetDataPage:h,"pagination-data":l.value},null,8,["pagination-data"])])])])):I("",!0)}};export{z as _}; +import{r as y,o as w,b as u,c as _,d as e,F as V,g as B,a as d,w as n,e as m,t as s,u as i,i as c,f as I}from"./app-DolNWhzr.js";import{P as S}from"./PaginatorComponent-DpqX95xS.js";import{d as x}from"./dayjs.min-ilzO22t1.js";import{r as T}from"./relativeTime-BTl_QCHW.js";import{u as k}from"./utc-CWodzHWT.js";const C={key:0},N={class:"w-full text-xs"},j={class:"hover:bg-gray-100 border-b"},F={class:"py-1"},q={class:"text-right"},D={class:"text-right"},P={class:"flex justify-end"},A={class:"flex justify-end items-center mt-4"},E={class:"w-full lg:w-1/3"},z={__name:"VouchersComponent",props:{teamId:{required:!1,default:null},filterVouchers:{required:!1,default:null},voucherSetId:{required:!1,default:null}},setup(b){x.extend(T),x.extend(k);const a=b,f=y(50),l=y({});w(()=>{(a.teamId||a.voucherSetId)&&(f.value=10),h()});function h(g=1){let r="";a.teamId&&a.filterVouchers?r="&where[]="+a.filterVouchers+","+a.teamId:a.voucherSetId&&(r="&where[]=voucher_set_id,"+a.voucherSetId),axios.get("/admin/vouchers?cached=false&page="+g+"&limit="+f.value+r+"&orderBy=created_at,desc&relations=voucherSet.currencyCountry,createdByTeam,allocatedToServiceTeam").then(t=>{l.value=t.data.data}).catch(t=>{console.log(t)})}return(g,r)=>l.value.data&&l.value.data.length?(u(),_("div",C,[e("table",N,[r[1]||(r[1]=e("thead",{class:"bg-gray-200 font-bold border-b"},[e("tr",null,[e("td",{class:"p-2"},"ID"),e("td",null,"Test?"),e("td",null,"Created By"),e("td",null,"Allocated To"),e("td",{class:"text-right"},"Total Value"),e("td",{class:"text-right"},"Value Remaining"),e("td")])],-1)),e("tbody",null,[(u(!0),_(V,null,B(l.value.data,t=>{var v,p;return u(),_("tr",j,[e("td",F,[d(i(c),{href:"/admin/voucher/"+t.id},{default:n(()=>[m(" #"+s(t.id),1)]),_:2},1032,["href"])]),e("td",null,s(t.is_test?"Yes":""),1),e("td",null,[d(i(c),{href:"/admin/team/"+t.created_by_team_id},{default:n(()=>{var o;return[m(s((o=t.created_by_team)==null?void 0:o.name),1)]}),_:2},1032,["href"])]),e("td",null,[d(i(c),{href:"/admin/team/"+t.allocated_to_service_team_id},{default:n(()=>{var o;return[m(s((o=t.allocated_to_service_team)==null?void 0:o.name),1)]}),_:2},1032,["href"])]),e("td",q,[e("div",null,s(Number(t.voucher_value_original/100).toFixed(2))+" "+s((v=t.voucher_set.currency_country)==null?void 0:v.currency_code),1)]),e("td",D,[e("div",null,s(Number(t.voucher_value_remaining/100).toFixed(2))+" "+s((p=t.voucher_set.currency_country)==null?void 0:p.currency_code),1)]),e("td",P,[d(i(c),{class:"secondaryButton",href:"/admin/voucher/"+t.id},{default:n(()=>r[0]||(r[0]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"h-4"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})],-1)])),_:2},1032,["href"])])])}),256))])]),e("div",A,[e("div",E,[d(S,{onSetDataPage:h,"pagination-data":l.value},null,8,["pagination-data"])])])])):I("",!0)}};export{z as _}; diff --git a/public/build/assets/app-DolNWhzr.js b/public/build/assets/app-DolNWhzr.js new file mode 100644 index 00000000..f20115ec --- /dev/null +++ b/public/build/assets/app-DolNWhzr.js @@ -0,0 +1,103 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/APIAccessToken-BxKNWUdy.js","assets/AuthenticatedLayout-DuLcXyKk.js","assets/ApplicationLogo-B917rUN3.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/PrimaryButton-BtqGl7rR.js","assets/AdminTopNavigation-Bl9ElpaD.js","assets/dayjs.min-ilzO22t1.js","assets/relativeTime-BTl_QCHW.js","assets/localizedFormat-r4JmUt9E.js","assets/APIAccessTokens-C66OPdJ3.js","assets/PaginatorComponent-DpqX95xS.js","assets/SecondaryButton-DL_I_H3U.js","assets/AdminHome-DAyF3eY4.js","assets/AjaxLoadingIndicator-DnIg5N8b.js","assets/AuditItemsComponent-C0ljhUTP.js","assets/Team-BP2ZvGAI.js","assets/TextInput-C41DJZHw.js","assets/InputLabel-P7ZTY_pn.js","assets/AdminTeamCreateComponent--ZqK8uaD.js","assets/AdminUserDetailsComponent-BIuw6cp6.js","assets/utc-CWodzHWT.js","assets/DangerButton-Bm5iDOLt.js","assets/VoucherSetsComponent-PmCvbfnV.js","assets/VouchersComponent-o-O6pMZi.js","assets/TeamNew-2IygTToe.js","assets/Teams-BklxzQRZ.js","assets/User-C_zeNGnt.js","assets/Users-BeOew9TI.js","assets/VoucherRedemption-D8qaxnfs.js","assets/VoucherRedemptions-I5DskLP3.js","assets/VoucherSet-DZ--1ZAq.js","assets/VoucherSetNew-FiyNeAgB.js","assets/VoucherSets-w_SenqBe.js","assets/VoucherTemplateEdit-tUbvCUOh.js","assets/AdminTeamVoucherTemplateEditComponent-kp4t6m7l.js","assets/Checkbox-YEQY-CTw.js","assets/VoucherTemplateNew-CO4wq0pO.js","assets/Voucher-DH40YzDI.js","assets/Vouchers-CDzwjVXy.js","assets/ErrorMessagePage-DtsaBtAA.js","assets/MyTeam-Bp8yT71s.js","assets/MyTeamVoucherSets-BKBSr5xT.js","assets/VoucherSetMerchantTeamApproval-CmPfS_Dx.js","assets/Voucher-brxKvDUT.js","assets/VoucherRedeem-u7uJu8Rx.js","assets/VoucherSet-DeRvCbT6.js","assets/AuditItems-CVvx5G_R.js","assets/ConfirmPassword-CPdCSdFC.js","assets/GuestLayout-BPBJX1aK.js","assets/InputError-CTOWZzBt.js","assets/ForgotPassword-CtrOA6NT.js","assets/Login-CSSIF9_W.js","assets/Register-CvIlSVQL.js","assets/ResetPassword-BBx7Oi9y.js","assets/VerifyEmail-XmSRG_in.js","assets/Dashboard-DNnYM2Kc.js","assets/Edit-BofEmzVj.js","assets/UpdatePasswordForm-C370omcu.js","assets/UpdateProfileInformationForm-CxNRXhbu.js","assets/DeleteUserForm-CdHmJiuD.js"])))=>i.map(i=>d[i]); +const Cf="modulepreload",If=function(e){return"/build/"+e},La={},me=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),l=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(r.map(u=>{if(u=If(u),u in La)return;La[u]=!0;const f=u.endsWith(".css"),c=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${c}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":Cf,f||(p.as="script"),p.crossOrigin="",p.href=u,l&&p.setAttribute("nonce",l),document.head.appendChild(p),f)return new Promise((_,y)=>{p.addEventListener("load",_),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return i.then(s=>{for(const l of s||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})};function Ac(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ff}=Object.prototype,{getPrototypeOf:la}=Object,eo=(e=>t=>{const r=Ff.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ut=e=>(e=e.toLowerCase(),t=>eo(t)===e),to=e=>t=>typeof t===e,{isArray:bn}=Array,Kn=to("undefined");function Nf(e){return e!==null&&!Kn(e)&&e.constructor!==null&&!Kn(e.constructor)&&Ot(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Oc=Ut("ArrayBuffer");function Df(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Oc(e.buffer),t}const Lf=to("string"),Ot=to("function"),Tc=to("number"),ro=e=>e!==null&&typeof e=="object",Mf=e=>e===!0||e===!1,Ni=e=>{if(eo(e)!=="object")return!1;const t=la(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$f=Ut("Date"),jf=Ut("File"),Bf=Ut("Blob"),Uf=Ut("FileList"),Vf=e=>ro(e)&&Ot(e.pipe),Hf=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ot(e.append)&&((t=eo(e))==="formdata"||t==="object"&&Ot(e.toString)&&e.toString()==="[object FormData]"))},qf=Ut("URLSearchParams"),[kf,Wf,Kf,Gf]=["ReadableStream","Request","Response","Headers"].map(Ut),zf=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ni(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),bn(e))for(n=0,i=e.length;n0;)if(i=r[n],t===i.toLowerCase())return i;return null}const Hr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pc=e=>!Kn(e)&&e!==Hr;function js(){const{caseless:e}=Pc(this)&&this||{},t={},r=(n,i)=>{const o=e&&xc(t,i)||i;Ni(t[o])&&Ni(n)?t[o]=js(t[o],n):Ni(n)?t[o]=js({},n):bn(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n(ni(t,(i,o)=>{r&&Ot(i)?e[o]=Ac(i,r):e[o]=i},{allOwnKeys:n}),e),Qf=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Xf=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Zf=(e,t,r,n)=>{let i,o,s;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=r!==!1&&la(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Yf=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},ep=e=>{if(!e)return null;if(bn(e))return e;let t=e.length;if(!Tc(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},tp=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&la(Uint8Array)),rp=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},np=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},ip=Ut("HTMLFormElement"),op=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),Ma=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),sp=Ut("RegExp"),Rc=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ni(r,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(n[o]=s||i)}),Object.defineProperties(e,n)},ap=e=>{Rc(e,(t,r)=>{if(Ot(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ot(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},lp=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return bn(e)?n(e):n(String(e).split(t)),r},cp=()=>{},up=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ko="abcdefghijklmnopqrstuvwxyz",$a="0123456789",Cc={DIGIT:$a,ALPHA:ko,ALPHA_DIGIT:ko+ko.toUpperCase()+$a},fp=(e=16,t=Cc.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function pp(e){return!!(e&&Ot(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const dp=e=>{const t=new Array(10),r=(n,i)=>{if(ro(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const o=bn(n)?[]:{};return ni(n,(s,l)=>{const u=r(s,i+1);!Kn(u)&&(o[l]=u)}),t[i]=void 0,o}}return n};return r(e,0)},hp=Ut("AsyncFunction"),yp=e=>e&&(ro(e)||Ot(e))&&Ot(e.then)&&Ot(e.catch),Ic=((e,t)=>e?setImmediate:t?((r,n)=>(Hr.addEventListener("message",({source:i,data:o})=>{i===Hr&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Hr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ot(Hr.postMessage)),gp=typeof queueMicrotask<"u"?queueMicrotask.bind(Hr):typeof process<"u"&&process.nextTick||Ic,N={isArray:bn,isArrayBuffer:Oc,isBuffer:Nf,isFormData:Hf,isArrayBufferView:Df,isString:Lf,isNumber:Tc,isBoolean:Mf,isObject:ro,isPlainObject:Ni,isReadableStream:kf,isRequest:Wf,isResponse:Kf,isHeaders:Gf,isUndefined:Kn,isDate:$f,isFile:jf,isBlob:Bf,isRegExp:sp,isFunction:Ot,isStream:Vf,isURLSearchParams:qf,isTypedArray:tp,isFileList:Uf,forEach:ni,merge:js,extend:Jf,trim:zf,stripBOM:Qf,inherits:Xf,toFlatObject:Zf,kindOf:eo,kindOfTest:Ut,endsWith:Yf,toArray:ep,forEachEntry:rp,matchAll:np,isHTMLForm:ip,hasOwnProperty:Ma,hasOwnProp:Ma,reduceDescriptors:Rc,freezeMethods:ap,toObjectSet:lp,toCamelCase:op,noop:cp,toFiniteNumber:up,findKey:xc,global:Hr,isContextDefined:Pc,ALPHABET:Cc,generateString:fp,isSpecCompliantForm:pp,toJSONObject:dp,isAsyncFn:hp,isThenable:yp,setImmediate:Ic,asap:gp};function pe(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}N.inherits(pe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:N.toJSONObject(this.config),code:this.code,status:this.status}}});const Fc=pe.prototype,Nc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Nc[e]={value:e}});Object.defineProperties(pe,Nc);Object.defineProperty(Fc,"isAxiosError",{value:!0});pe.from=(e,t,r,n,i,o)=>{const s=Object.create(Fc);return N.toFlatObject(e,s,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),pe.call(s,e.message,t,r,n,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const mp=null;function Bs(e){return N.isPlainObject(e)||N.isArray(e)}function Dc(e){return N.endsWith(e,"[]")?e.slice(0,-2):e}function ja(e,t,r){return e?e.concat(t).map(function(i,o){return i=Dc(i),!r&&o?"["+i+"]":i}).join(r?".":""):t}function vp(e){return N.isArray(e)&&!e.some(Bs)}const bp=N.toFlatObject(N,{},null,function(t){return/^is[A-Z]/.test(t)});function no(e,t,r){if(!N.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=N.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,h){return!N.isUndefined(h[v])});const n=r.metaTokens,i=r.visitor||c,o=r.dots,s=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&N.isSpecCompliantForm(t);if(!N.isFunction(i))throw new TypeError("visitor must be a function");function f(g){if(g===null)return"";if(N.isDate(g))return g.toISOString();if(!u&&N.isBlob(g))throw new pe("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(g)||N.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,v,h){let b=g;if(g&&!h&&typeof g=="object"){if(N.endsWith(v,"{}"))v=n?v:v.slice(0,-2),g=JSON.stringify(g);else if(N.isArray(g)&&vp(g)||(N.isFileList(g)||N.endsWith(v,"[]"))&&(b=N.toArray(g)))return v=Dc(v),b.forEach(function(m,S){!(N.isUndefined(m)||m===null)&&t.append(s===!0?ja([v],S,o):s===null?v:v+"[]",f(m))}),!1}return Bs(g)?!0:(t.append(ja(h,v,o),f(g)),!1)}const p=[],_=Object.assign(bp,{defaultVisitor:c,convertValue:f,isVisitable:Bs});function y(g,v){if(!N.isUndefined(g)){if(p.indexOf(g)!==-1)throw Error("Circular reference detected in "+v.join("."));p.push(g),N.forEach(g,function(b,w){(!(N.isUndefined(b)||b===null)&&i.call(t,b,N.isString(w)?w.trim():w,v,_))===!0&&y(b,v?v.concat(w):[w])}),p.pop()}}if(!N.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Ba(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ca(e,t){this._pairs=[],e&&no(e,this,t)}const Lc=ca.prototype;Lc.append=function(t,r){this._pairs.push([t,r])};Lc.toString=function(t){const r=t?function(n){return t.call(this,n,Ba)}:Ba;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function _p(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Mc(e,t,r){if(!t)return e;const n=r&&r.encode||_p;N.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let o;if(i?o=i(t,r):o=N.isURLSearchParams(t)?t.toString():new ca(t,r).toString(n),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Ua{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){N.forEach(this.handlers,function(n){n!==null&&t(n)})}}const $c={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wp=typeof URLSearchParams<"u"?URLSearchParams:ca,Sp=typeof FormData<"u"?FormData:null,Ep=typeof Blob<"u"?Blob:null,Ap={isBrowser:!0,classes:{URLSearchParams:wp,FormData:Sp,Blob:Ep},protocols:["http","https","file","blob","url","data"]},ua=typeof window<"u"&&typeof document<"u",Us=typeof navigator=="object"&&navigator||void 0,Op=ua&&(!Us||["ReactNative","NativeScript","NS"].indexOf(Us.product)<0),Tp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xp=ua&&window.location.href||"http://localhost",Pp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ua,hasStandardBrowserEnv:Op,hasStandardBrowserWebWorkerEnv:Tp,navigator:Us,origin:xp},Symbol.toStringTag,{value:"Module"})),lt={...Pp,...Ap};function Rp(e,t){return no(e,new lt.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,o){return lt.isNode&&N.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Cp(e){return N.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ip(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n=r.length;return s=!s&&N.isArray(i)?i.length:s,u?(N.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!l):((!i[s]||!N.isObject(i[s]))&&(i[s]=[]),t(r,n,i[s],o)&&N.isArray(i[s])&&(i[s]=Ip(i[s])),!l)}if(N.isFormData(e)&&N.isFunction(e.entries)){const r={};return N.forEachEntry(e,(n,i)=>{t(Cp(n),i,r,0)}),r}return null}function Fp(e,t,r){if(N.isString(e))try{return(t||JSON.parse)(e),N.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const ii={transitional:$c,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,o=N.isObject(t);if(o&&N.isHTMLForm(t)&&(t=new FormData(t)),N.isFormData(t))return i?JSON.stringify(jc(t)):t;if(N.isArrayBuffer(t)||N.isBuffer(t)||N.isStream(t)||N.isFile(t)||N.isBlob(t)||N.isReadableStream(t))return t;if(N.isArrayBufferView(t))return t.buffer;if(N.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Rp(t,this.formSerializer).toString();if((l=N.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return no(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||i?(r.setContentType("application/json",!1),Fp(t)):t}],transformResponse:[function(t){const r=this.transitional||ii.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(N.isResponse(t)||N.isReadableStream(t))return t;if(t&&N.isString(t)&&(n&&!this.responseType||i)){const s=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?pe.from(l,pe.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lt.classes.FormData,Blob:lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N.forEach(["delete","get","head","post","put","patch"],e=>{ii.headers[e]={}});const Np=N.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Dp=e=>{const t={};let r,n,i;return e&&e.split(` +`).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||t[r]&&Np[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Va=Symbol("internals");function Cn(e){return e&&String(e).trim().toLowerCase()}function Di(e){return e===!1||e==null?e:N.isArray(e)?e.map(Di):String(e)}function Lp(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Mp=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Wo(e,t,r,n,i){if(N.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!N.isString(t)){if(N.isString(n))return t.indexOf(n)!==-1;if(N.isRegExp(n))return n.test(t)}}function $p(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function jp(e,t){const r=N.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,s){return this[n].call(this,t,i,o,s)},configurable:!0})})}class _t{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(l,u,f){const c=Cn(u);if(!c)throw new Error("header name must be a non-empty string");const p=N.findKey(i,c);(!p||i[p]===void 0||f===!0||f===void 0&&i[p]!==!1)&&(i[p||u]=Di(l))}const s=(l,u)=>N.forEach(l,(f,c)=>o(f,c,u));if(N.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(N.isString(t)&&(t=t.trim())&&!Mp(t))s(Dp(t),r);else if(N.isHeaders(t))for(const[l,u]of t.entries())o(u,l,n);else t!=null&&o(r,t,n);return this}get(t,r){if(t=Cn(t),t){const n=N.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return Lp(i);if(N.isFunction(r))return r.call(this,i,n);if(N.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Cn(t),t){const n=N.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Wo(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(s){if(s=Cn(s),s){const l=N.findKey(n,s);l&&(!r||Wo(n,n[l],l,r))&&(delete n[l],i=!0)}}return N.isArray(t)?t.forEach(o):o(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!t||Wo(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return N.forEach(this,(i,o)=>{const s=N.findKey(n,o);if(s){r[s]=Di(i),delete r[o];return}const l=t?$p(o):String(o).trim();l!==o&&delete r[o],r[l]=Di(i),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return N.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&N.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[Va]=this[Va]={accessors:{}}).accessors,i=this.prototype;function o(s){const l=Cn(s);n[l]||(jp(i,s),n[l]=!0)}return N.isArray(t)?t.forEach(o):o(t),this}}_t.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N.reduceDescriptors(_t.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});N.freezeMethods(_t);function Ko(e,t){const r=this||ii,n=t||r,i=_t.from(n.headers);let o=n.data;return N.forEach(e,function(l){o=l.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Bc(e){return!!(e&&e.__CANCEL__)}function _n(e,t,r){pe.call(this,e??"canceled",pe.ERR_CANCELED,t,r),this.name="CanceledError"}N.inherits(_n,pe,{__CANCEL__:!0});function Uc(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new pe("Request failed with status code "+r.status,[pe.ERR_BAD_REQUEST,pe.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Bp(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Up(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(u){const f=Date.now(),c=n[o];s||(s=f),r[i]=u,n[i]=f;let p=o,_=0;for(;p!==i;)_+=r[p++],p=p%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),f-s{r=c,i=null,o&&(clearTimeout(o),o=null),e.apply(null,f)};return[(...f)=>{const c=Date.now(),p=c-r;p>=n?s(f,c):(i=f,o||(o=setTimeout(()=>{o=null,s(i)},n-p)))},()=>i&&s(i)]}const qi=(e,t,r=3)=>{let n=0;const i=Up(50,250);return Vp(o=>{const s=o.loaded,l=o.lengthComputable?o.total:void 0,u=s-n,f=i(u),c=s<=l;n=s;const p={loaded:s,total:l,progress:l?s/l:void 0,bytes:u,rate:f||void 0,estimated:f&&l&&c?(l-s)/f:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(p)},r)},Ha=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},qa=e=>(...t)=>N.asap(()=>e(...t)),Hp=lt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,lt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(lt.origin),lt.navigator&&/(msie|trident)/i.test(lt.navigator.userAgent)):()=>!0,qp=lt.hasStandardBrowserEnv?{write(e,t,r,n,i,o){const s=[e+"="+encodeURIComponent(t)];N.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),N.isString(n)&&s.push("path="+n),N.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function kp(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Wp(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Vc(e,t){return e&&!kp(t)?Wp(e,t):t}const ka=e=>e instanceof _t?{...e}:e;function Qr(e,t){t=t||{};const r={};function n(f,c,p,_){return N.isPlainObject(f)&&N.isPlainObject(c)?N.merge.call({caseless:_},f,c):N.isPlainObject(c)?N.merge({},c):N.isArray(c)?c.slice():c}function i(f,c,p,_){if(N.isUndefined(c)){if(!N.isUndefined(f))return n(void 0,f,p,_)}else return n(f,c,p,_)}function o(f,c){if(!N.isUndefined(c))return n(void 0,c)}function s(f,c){if(N.isUndefined(c)){if(!N.isUndefined(f))return n(void 0,f)}else return n(void 0,c)}function l(f,c,p){if(p in t)return n(f,c);if(p in e)return n(void 0,f)}const u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(f,c,p)=>i(ka(f),ka(c),p,!0)};return N.forEach(Object.keys(Object.assign({},e,t)),function(c){const p=u[c]||i,_=p(e[c],t[c],c);N.isUndefined(_)&&p!==l||(r[c]=_)}),r}const Hc=e=>{const t=Qr({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:l}=t;t.headers=s=_t.from(s),t.url=Mc(Vc(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(N.isFormData(r)){if(lt.hasStandardBrowserEnv||lt.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((u=s.getContentType())!==!1){const[f,...c]=u?u.split(";").map(p=>p.trim()).filter(Boolean):[];s.setContentType([f||"multipart/form-data",...c].join("; "))}}if(lt.hasStandardBrowserEnv&&(n&&N.isFunction(n)&&(n=n(t)),n||n!==!1&&Hp(t.url))){const f=i&&o&&qp.read(o);f&&s.set(i,f)}return t},Kp=typeof XMLHttpRequest<"u",Gp=Kp&&function(e){return new Promise(function(r,n){const i=Hc(e);let o=i.data;const s=_t.from(i.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:f}=i,c,p,_,y,g;function v(){y&&y(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let h=new XMLHttpRequest;h.open(i.method.toUpperCase(),i.url,!0),h.timeout=i.timeout;function b(){if(!h)return;const m=_t.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),O={data:!l||l==="text"||l==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:m,config:e,request:h};Uc(function(U){r(U),v()},function(U){n(U),v()},O),h=null}"onloadend"in h?h.onloadend=b:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(b)},h.onabort=function(){h&&(n(new pe("Request aborted",pe.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new pe("Network Error",pe.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const O=i.transitional||$c;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),n(new pe(S,O.clarifyTimeoutError?pe.ETIMEDOUT:pe.ECONNABORTED,e,h)),h=null},o===void 0&&s.setContentType(null),"setRequestHeader"in h&&N.forEach(s.toJSON(),function(S,O){h.setRequestHeader(O,S)}),N.isUndefined(i.withCredentials)||(h.withCredentials=!!i.withCredentials),l&&l!=="json"&&(h.responseType=i.responseType),f&&([_,g]=qi(f,!0),h.addEventListener("progress",_)),u&&h.upload&&([p,y]=qi(u),h.upload.addEventListener("progress",p),h.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(c=m=>{h&&(n(!m||m.type?new _n(null,e,h):m),h.abort(),h=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const w=Bp(i.url);if(w&<.protocols.indexOf(w)===-1){n(new pe("Unsupported protocol "+w+":",pe.ERR_BAD_REQUEST,e));return}h.send(o||null)})},zp=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const o=function(f){if(!i){i=!0,l();const c=f instanceof Error?f:this.reason;n.abort(c instanceof pe?c:new _n(c instanceof Error?c.message:c))}};let s=t&&setTimeout(()=>{s=null,o(new pe(`timeout ${t} of ms exceeded`,pe.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),e=null)};e.forEach(f=>f.addEventListener("abort",o));const{signal:u}=n;return u.unsubscribe=()=>N.asap(l),u}},Jp=function*(e,t){let r=e.byteLength;if(r{const i=Qp(e,t);let o=0,s,l=u=>{s||(s=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:f,value:c}=await i.next();if(f){l(),u.close();return}let p=c.byteLength;if(r){let _=o+=p;r(_)}u.enqueue(new Uint8Array(c))}catch(f){throw l(f),f}},cancel(u){return l(u),i.return()}},{highWaterMark:2})},io=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",qc=io&&typeof ReadableStream=="function",Zp=io&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),kc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Yp=qc&&kc(()=>{let e=!1;const t=new Request(lt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ka=64*1024,Vs=qc&&kc(()=>N.isReadableStream(new Response("").body)),ki={stream:Vs&&(e=>e.body)};io&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ki[t]&&(ki[t]=N.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new pe(`Response type '${t}' is not supported`,pe.ERR_NOT_SUPPORT,n)})})})(new Response);const ed=async e=>{if(e==null)return 0;if(N.isBlob(e))return e.size;if(N.isSpecCompliantForm(e))return(await new Request(lt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(N.isArrayBufferView(e)||N.isArrayBuffer(e))return e.byteLength;if(N.isURLSearchParams(e)&&(e=e+""),N.isString(e))return(await Zp(e)).byteLength},td=async(e,t)=>{const r=N.toFiniteNumber(e.getContentLength());return r??ed(t)},rd=io&&(async e=>{let{url:t,method:r,data:n,signal:i,cancelToken:o,timeout:s,onDownloadProgress:l,onUploadProgress:u,responseType:f,headers:c,withCredentials:p="same-origin",fetchOptions:_}=Hc(e);f=f?(f+"").toLowerCase():"text";let y=zp([i,o&&o.toAbortSignal()],s),g;const v=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let h;try{if(u&&Yp&&r!=="get"&&r!=="head"&&(h=await td(c,n))!==0){let O=new Request(t,{method:"POST",body:n,duplex:"half"}),R;if(N.isFormData(n)&&(R=O.headers.get("content-type"))&&c.setContentType(R),O.body){const[U,D]=Ha(h,qi(qa(u)));n=Wa(O.body,Ka,U,D)}}N.isString(p)||(p=p?"include":"omit");const b="credentials"in Request.prototype;g=new Request(t,{..._,signal:y,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:b?p:void 0});let w=await fetch(g);const m=Vs&&(f==="stream"||f==="response");if(Vs&&(l||m&&v)){const O={};["status","statusText","headers"].forEach(C=>{O[C]=w[C]});const R=N.toFiniteNumber(w.headers.get("content-length")),[U,D]=l&&Ha(R,qi(qa(l),!0))||[];w=new Response(Wa(w.body,Ka,U,()=>{D&&D(),v&&v()}),O)}f=f||"text";let S=await ki[N.findKey(ki,f)||"text"](w,e);return!m&&v&&v(),await new Promise((O,R)=>{Uc(O,R,{data:S,headers:_t.from(w.headers),status:w.status,statusText:w.statusText,config:e,request:g})})}catch(b){throw v&&v(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new pe("Network Error",pe.ERR_NETWORK,e,g),{cause:b.cause||b}):pe.from(b,b&&b.code,e,g)}}),Hs={http:mp,xhr:Gp,fetch:rd};N.forEach(Hs,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ga=e=>`- ${e}`,nd=e=>N.isFunction(e)||e===null||e===!1,Wc={getAdapter:e=>{e=N.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since : +`+o.map(Ga).join(` +`):" "+Ga(o[0]):"as no adapter specified";throw new pe("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Hs};function Go(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _n(null,e)}function za(e){return Go(e),e.headers=_t.from(e.headers),e.data=Ko.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Wc.getAdapter(e.adapter||ii.adapter)(e).then(function(n){return Go(e),n.data=Ko.call(e,e.transformResponse,n),n.headers=_t.from(n.headers),n},function(n){return Bc(n)||(Go(e),n&&n.response&&(n.response.data=Ko.call(e,e.transformResponse,n.response),n.response.headers=_t.from(n.response.headers))),Promise.reject(n)})}const Kc="1.7.8",oo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{oo[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Ja={};oo.transitional=function(t,r,n){function i(o,s){return"[Axios v"+Kc+"] Transitional option '"+o+"'"+s+(n?". "+n:"")}return(o,s,l)=>{if(t===!1)throw new pe(i(s," has been removed"+(r?" in "+r:"")),pe.ERR_DEPRECATED);return r&&!Ja[s]&&(Ja[s]=!0,console.warn(i(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,s,l):!0}};oo.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function id(e,t,r){if(typeof e!="object")throw new pe("options must be an object",pe.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],s=t[o];if(s){const l=e[o],u=l===void 0||s(l,o,e);if(u!==!0)throw new pe("option "+o+" must be "+u,pe.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new pe("Unknown option "+o,pe.ERR_BAD_OPTION)}}const Li={assertOptions:id,validators:oo},Wt=Li.validators;class kr{constructor(t){this.defaults=t,this.interceptors={request:new Ua,response:new Ua}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=` +`+o):n.stack=o}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Qr(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&Li.assertOptions(n,{silentJSONParsing:Wt.transitional(Wt.boolean),forcedJSONParsing:Wt.transitional(Wt.boolean),clarifyTimeoutError:Wt.transitional(Wt.boolean)},!1),i!=null&&(N.isFunction(i)?r.paramsSerializer={serialize:i}:Li.assertOptions(i,{encode:Wt.function,serialize:Wt.function},!0)),Li.assertOptions(r,{baseUrl:Wt.spelling("baseURL"),withXsrfToken:Wt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&N.merge(o.common,o[r.method]);o&&N.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),r.headers=_t.concat(s,o);const l=[];let u=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(u=u&&v.synchronous,l.unshift(v.fulfilled,v.rejected))});const f=[];this.interceptors.response.forEach(function(v){f.push(v.fulfilled,v.rejected)});let c,p=0,_;if(!u){const g=[za.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,f),_=g.length,c=Promise.resolve(r);p<_;)c=c.then(g[p++],g[p++]);return c}_=l.length;let y=r;for(p=0;p<_;){const g=l[p++],v=l[p++];try{y=g(y)}catch(h){v.call(this,h);break}}try{c=za.call(this,y)}catch(g){return Promise.reject(g)}for(p=0,_=f.length;p<_;)c=c.then(f[p++],f[p++]);return c}getUri(t){t=Qr(this.defaults,t);const r=Vc(t.baseURL,t.url);return Mc(r,t.params,t.paramsSerializer)}}N.forEach(["delete","get","head","options"],function(t){kr.prototype[t]=function(r,n){return this.request(Qr(n||{},{method:t,url:r,data:(n||{}).data}))}});N.forEach(["post","put","patch"],function(t){function r(n){return function(o,s,l){return this.request(Qr(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}kr.prototype[t]=r(),kr.prototype[t+"Form"]=r(!0)});class fa{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(i=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(l=>{n.subscribe(l),o=l}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},t(function(o,s,l){n.reason||(n.reason=new _n(o,s,l),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new fa(function(i){t=i}),cancel:t}}}function od(e){return function(r){return e.apply(null,r)}}function sd(e){return N.isObject(e)&&e.isAxiosError===!0}const qs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(qs).forEach(([e,t])=>{qs[t]=e});function Gc(e){const t=new kr(e),r=Ac(kr.prototype.request,t);return N.extend(r,kr.prototype,t,{allOwnKeys:!0}),N.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return Gc(Qr(e,i))},r}const Me=Gc(ii);Me.Axios=kr;Me.CanceledError=_n;Me.CancelToken=fa;Me.isCancel=Bc;Me.VERSION=Kc;Me.toFormData=no;Me.AxiosError=pe;Me.Cancel=Me.CanceledError;Me.all=function(t){return Promise.all(t)};Me.spread=od;Me.isAxiosError=sd;Me.mergeConfig=Qr;Me.AxiosHeaders=_t;Me.formToJSON=e=>jc(N.isHTMLForm(e)?new FormData(e):e);Me.getAdapter=Wc.getAdapter;Me.HttpStatusCode=qs;Me.default=Me;window.axios=Me;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";window.axios.defaults.baseURL="/api/v1";/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function pa(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const Ee={},pn=[],Zt=()=>{},ad=()=>!1,oi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),da=e=>e.startsWith("onUpdate:"),He=Object.assign,ha=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},ld=Object.prototype.hasOwnProperty,Oe=(e,t)=>ld.call(e,t),te=Array.isArray,dn=e=>si(e)==="[object Map]",wn=e=>si(e)==="[object Set]",Qa=e=>si(e)==="[object Date]",ce=e=>typeof e=="function",Le=e=>typeof e=="string",jt=e=>typeof e=="symbol",Re=e=>e!==null&&typeof e=="object",zc=e=>(Re(e)||ce(e))&&ce(e.then)&&ce(e.catch),Jc=Object.prototype.toString,si=e=>Jc.call(e),cd=e=>si(e).slice(8,-1),Qc=e=>si(e)==="[object Object]",ya=e=>Le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,hn=pa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),so=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},ud=/-(\w)/g,Tt=so(e=>e.replace(ud,(t,r)=>r?r.toUpperCase():"")),fd=/\B([A-Z])/g,fr=so(e=>e.replace(fd,"-$1").toLowerCase()),ao=so(e=>e.charAt(0).toUpperCase()+e.slice(1)),zo=so(e=>e?`on${ao(e)}`:""),bt=(e,t)=>!Object.is(e,t),Mi=(e,...t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},Wi=e=>{const t=parseFloat(e);return isNaN(t)?e:t},pd=e=>{const t=Le(e)?Number(e):NaN;return isNaN(t)?e:t};let Xa;const lo=()=>Xa||(Xa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function co(e){if(te(e)){const t={};for(let r=0;r{if(r){const n=r.split(hd);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function uo(e){let t="";if(Le(e))t=e;else if(te(e))for(let r=0;rai(r,t))}const Yc=e=>!!(e&&e.__v_isRef===!0),_d=e=>Le(e)?e:e==null?"":te(e)||Re(e)&&(e.toString===Jc||!ce(e.toString))?Yc(e)?_d(e.value):JSON.stringify(e,eu,2):String(e),eu=(e,t)=>Yc(t)?eu(e,t.value):dn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i],o)=>(r[Jo(n,o)+" =>"]=i,r),{})}:wn(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Jo(r))}:jt(t)?Jo(t):Re(t)&&!te(t)&&!Qc(t)?String(t):t,Jo=(e,t="")=>{var r;return jt(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/** +* @vue/reactivity v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Et;class wd{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Et,!t&&Et&&(this.index=(Et.scopes||(Et.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t0)return;if(Un){let t=Un;for(Un=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;Bn;){let t=Bn;for(Bn=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function iu(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ou(e){let t,r=e.depsTail,n=r;for(;n;){const i=n.prevDep;n.version===-1?(n===r&&(r=i),ba(n),Ed(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=r}function ks(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(su(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function su(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Gn))return;e.globalVersion=Gn;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!ks(e)){e.flags&=-3;return}const r=Ie,n=$t;Ie=e,$t=!0;try{iu(e);const i=e.fn(e._value);(t.version===0||bt(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Ie=r,$t=n,ou(e),e.flags&=-3}}function ba(e,t=!1){const{dep:r,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let o=r.computed.deps;o;o=o.nextDep)ba(o,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function Ed(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}let $t=!0;const au=[];function Or(){au.push($t),$t=!1}function Tr(){const e=au.pop();$t=e===void 0?!0:e}function Za(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=Ie;Ie=void 0;try{t()}finally{Ie=r}}}let Gn=0;class Ad{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class fo{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!Ie||!$t||Ie===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==Ie)r=this.activeLink=new Ad(Ie,this),Ie.deps?(r.prevDep=Ie.depsTail,Ie.depsTail.nextDep=r,Ie.depsTail=r):Ie.deps=Ie.depsTail=r,lu(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=Ie.depsTail,r.nextDep=void 0,Ie.depsTail.nextDep=r,Ie.depsTail=r,Ie.deps===r&&(Ie.deps=n)}return r}trigger(t){this.version++,Gn++,this.notify(t)}notify(t){ma();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{va()}}}function lu(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)lu(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const Ki=new WeakMap,Wr=Symbol(""),Ws=Symbol(""),zn=Symbol("");function st(e,t,r){if($t&&Ie){let n=Ki.get(e);n||Ki.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new fo),i.map=n,i.key=r),i.track()}}function lr(e,t,r,n,i,o){const s=Ki.get(e);if(!s){Gn++;return}const l=u=>{u&&u.trigger()};if(ma(),t==="clear")s.forEach(l);else{const u=te(e),f=u&&ya(r);if(u&&r==="length"){const c=Number(n);s.forEach((p,_)=>{(_==="length"||_===zn||!jt(_)&&_>=c)&&l(p)})}else switch((r!==void 0||s.has(void 0))&&l(s.get(r)),f&&l(s.get(zn)),t){case"add":u?f&&l(s.get("length")):(l(s.get(Wr)),dn(e)&&l(s.get(Ws)));break;case"delete":u||(l(s.get(Wr)),dn(e)&&l(s.get(Ws)));break;case"set":dn(e)&&l(s.get(Wr));break}}va()}function Od(e,t){const r=Ki.get(e);return r&&r.get(t)}function ln(e){const t=we(e);return t===e?t:(st(t,"iterate",zn),Ft(e)?t:t.map(at))}function po(e){return st(e=we(e),"iterate",zn),e}const Td={__proto__:null,[Symbol.iterator](){return Xo(this,Symbol.iterator,at)},concat(...e){return ln(this).concat(...e.map(t=>te(t)?ln(t):t))},entries(){return Xo(this,"entries",e=>(e[1]=at(e[1]),e))},every(e,t){return or(this,"every",e,t,void 0,arguments)},filter(e,t){return or(this,"filter",e,t,r=>r.map(at),arguments)},find(e,t){return or(this,"find",e,t,at,arguments)},findIndex(e,t){return or(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return or(this,"findLast",e,t,at,arguments)},findLastIndex(e,t){return or(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return or(this,"forEach",e,t,void 0,arguments)},includes(...e){return Zo(this,"includes",e)},indexOf(...e){return Zo(this,"indexOf",e)},join(e){return ln(this).join(e)},lastIndexOf(...e){return Zo(this,"lastIndexOf",e)},map(e,t){return or(this,"map",e,t,void 0,arguments)},pop(){return In(this,"pop")},push(...e){return In(this,"push",e)},reduce(e,...t){return Ya(this,"reduce",e,t)},reduceRight(e,...t){return Ya(this,"reduceRight",e,t)},shift(){return In(this,"shift")},some(e,t){return or(this,"some",e,t,void 0,arguments)},splice(...e){return In(this,"splice",e)},toReversed(){return ln(this).toReversed()},toSorted(e){return ln(this).toSorted(e)},toSpliced(...e){return ln(this).toSpliced(...e)},unshift(...e){return In(this,"unshift",e)},values(){return Xo(this,"values",at)}};function Xo(e,t,r){const n=po(e),i=n[t]();return n!==e&&!Ft(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.value&&(o.value=r(o.value)),o}),i}const xd=Array.prototype;function or(e,t,r,n,i,o){const s=po(e),l=s!==e&&!Ft(e),u=s[t];if(u!==xd[t]){const p=u.apply(e,o);return l?at(p):p}let f=r;s!==e&&(l?f=function(p,_){return r.call(this,at(p),_,e)}:r.length>2&&(f=function(p,_){return r.call(this,p,_,e)}));const c=u.call(s,f,n);return l&&i?i(c):c}function Ya(e,t,r,n){const i=po(e);let o=r;return i!==e&&(Ft(e)?r.length>3&&(o=function(s,l,u){return r.call(this,s,l,u,e)}):o=function(s,l,u){return r.call(this,s,at(l),u,e)}),i[t](o,...n)}function Zo(e,t,r){const n=we(e);st(n,"iterate",zn);const i=n[t](...r);return(i===-1||i===!1)&&Sa(r[0])?(r[0]=we(r[0]),n[t](...r)):i}function In(e,t,r=[]){Or(),ma();const n=we(e)[t].apply(e,r);return va(),Tr(),n}const Pd=pa("__proto__,__v_isRef,__isVue"),cu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(jt));function Rd(e){jt(e)||(e=String(e));const t=we(this);return st(t,"has",e),t.hasOwnProperty(e)}class uu{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return o;if(r==="__v_raw")return n===(i?o?Bd:hu:o?du:pu).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const s=te(t);if(!i){let u;if(s&&(u=Td[r]))return u;if(r==="hasOwnProperty")return Rd}const l=Reflect.get(t,r,tt(t)?t:n);return(jt(r)?cu.has(r):Pd(r))||(i||st(t,"get",r),o)?l:tt(l)?s&&ya(r)?l:l.value:Re(l)?i?yu(l):li(l):l}}class fu extends uu{constructor(t=!1){super(!1,t)}set(t,r,n,i){let o=t[r];if(!this._isShallow){const u=Xr(o);if(!Ft(n)&&!Xr(n)&&(o=we(o),n=we(n)),!te(t)&&tt(o)&&!tt(n))return u?!1:(o.value=n,!0)}const s=te(t)&&ya(r)?Number(r)e,Ei=e=>Reflect.getPrototypeOf(e);function Dd(e,t,r){return function(...n){const i=this.__v_raw,o=we(i),s=dn(o),l=e==="entries"||e===Symbol.iterator&&s,u=e==="keys"&&s,f=i[e](...n),c=r?Ks:t?zs:at;return!t&&st(o,"iterate",u?Ws:Wr),{next(){const{value:p,done:_}=f.next();return _?{value:p,done:_}:{value:l?[c(p[0]),c(p[1])]:c(p),done:_}},[Symbol.iterator](){return this}}}}function Ai(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ld(e,t){const r={get(i){const o=this.__v_raw,s=we(o),l=we(i);e||(bt(i,l)&&st(s,"get",i),st(s,"get",l));const{has:u}=Ei(s),f=t?Ks:e?zs:at;if(u.call(s,i))return f(o.get(i));if(u.call(s,l))return f(o.get(l));o!==s&&o.get(i)},get size(){const i=this.__v_raw;return!e&&st(we(i),"iterate",Wr),Reflect.get(i,"size",i)},has(i){const o=this.__v_raw,s=we(o),l=we(i);return e||(bt(i,l)&&st(s,"has",i),st(s,"has",l)),i===l?o.has(i):o.has(i)||o.has(l)},forEach(i,o){const s=this,l=s.__v_raw,u=we(l),f=t?Ks:e?zs:at;return!e&&st(u,"iterate",Wr),l.forEach((c,p)=>i.call(o,f(c),f(p),s))}};return He(r,e?{add:Ai("add"),set:Ai("set"),delete:Ai("delete"),clear:Ai("clear")}:{add(i){!t&&!Ft(i)&&!Xr(i)&&(i=we(i));const o=we(this);return Ei(o).has.call(o,i)||(o.add(i),lr(o,"add",i,i)),this},set(i,o){!t&&!Ft(o)&&!Xr(o)&&(o=we(o));const s=we(this),{has:l,get:u}=Ei(s);let f=l.call(s,i);f||(i=we(i),f=l.call(s,i));const c=u.call(s,i);return s.set(i,o),f?bt(o,c)&&lr(s,"set",i,o):lr(s,"add",i,o),this},delete(i){const o=we(this),{has:s,get:l}=Ei(o);let u=s.call(o,i);u||(i=we(i),u=s.call(o,i)),l&&l.call(o,i);const f=o.delete(i);return u&&lr(o,"delete",i,void 0),f},clear(){const i=we(this),o=i.size!==0,s=i.clear();return o&&lr(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=Dd(i,e,t)}),r}function _a(e,t){const r=Ld(e,t);return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(Oe(r,i)&&i in n?r:n,i,o)}const Md={get:_a(!1,!1)},$d={get:_a(!1,!0)},jd={get:_a(!0,!1)};const pu=new WeakMap,du=new WeakMap,hu=new WeakMap,Bd=new WeakMap;function Ud(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Vd(e){return e.__v_skip||!Object.isExtensible(e)?0:Ud(cd(e))}function li(e){return Xr(e)?e:wa(e,!1,Id,Md,pu)}function Hd(e){return wa(e,!1,Nd,$d,du)}function yu(e){return wa(e,!0,Fd,jd,hu)}function wa(e,t,r,n,i){if(!Re(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const s=Vd(e);if(s===0)return e;const l=new Proxy(e,s===2?n:r);return i.set(e,l),l}function Kr(e){return Xr(e)?Kr(e.__v_raw):!!(e&&e.__v_isReactive)}function Xr(e){return!!(e&&e.__v_isReadonly)}function Ft(e){return!!(e&&e.__v_isShallow)}function Sa(e){return e?!!e.__v_raw:!1}function we(e){const t=e&&e.__v_raw;return t?we(t):e}function Gs(e){return!Oe(e,"__v_skip")&&Object.isExtensible(e)&&Xc(e,"__v_skip",!0),e}const at=e=>Re(e)?li(e):e,zs=e=>Re(e)?yu(e):e;function tt(e){return e?e.__v_isRef===!0:!1}function Ea(e){return gu(e,!1)}function qd(e){return gu(e,!0)}function gu(e,t){return tt(e)?e:new kd(e,t)}class kd{constructor(t,r){this.dep=new fo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:we(t),this._value=r?t:at(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||Ft(t)||Xr(t);t=n?t:we(t),bt(t,r)&&(this._rawValue=t,this._value=n?t:at(t),this.dep.trigger())}}function Wd(e){return tt(e)?e.value:e}const Kd={get:(e,t,r)=>t==="__v_raw"?e:Wd(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return tt(i)&&!tt(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function mu(e){return Kr(e)?e:new Proxy(e,Kd)}class Gd{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new fo,{get:n,set:i}=t(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function zd(e){return new Gd(e)}function hm(e){const t=te(e)?new Array(e.length):{};for(const r in e)t[r]=Qd(e,r);return t}class Jd{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Od(we(this._object),this._key)}}function Qd(e,t,r){const n=e[t];return tt(n)?n:new Jd(e,t,r)}class Xd{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new fo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Gn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Ie!==this)return nu(this,!0),!0}get value(){const t=this.dep.track();return su(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Zd(e,t,r=!1){let n,i;return ce(e)?n=e:(n=e.get,i=e.set),new Xd(n,i,r)}const Oi={},Gi=new WeakMap;let Br;function Yd(e,t=!1,r=Br){if(r){let n=Gi.get(r);n||Gi.set(r,n=[]),n.push(e)}}function eh(e,t,r=Ee){const{immediate:n,deep:i,once:o,scheduler:s,augmentJob:l,call:u}=r,f=S=>i?S:Ft(S)||i===!1||i===0?cr(S,1):cr(S);let c,p,_,y,g=!1,v=!1;if(tt(e)?(p=()=>e.value,g=Ft(e)):Kr(e)?(p=()=>f(e),g=!0):te(e)?(v=!0,g=e.some(S=>Kr(S)||Ft(S)),p=()=>e.map(S=>{if(tt(S))return S.value;if(Kr(S))return f(S);if(ce(S))return u?u(S,2):S()})):ce(e)?t?p=u?()=>u(e,2):e:p=()=>{if(_){Or();try{_()}finally{Tr()}}const S=Br;Br=c;try{return u?u(e,3,[y]):e(y)}finally{Br=S}}:p=Zt,t&&i){const S=p,O=i===!0?1/0:i;p=()=>cr(S(),O)}const h=Sd(),b=()=>{c.stop(),h&&h.active&&ha(h.effects,c)};if(o&&t){const S=t;t=(...O)=>{S(...O),b()}}let w=v?new Array(e.length).fill(Oi):Oi;const m=S=>{if(!(!(c.flags&1)||!c.dirty&&!S))if(t){const O=c.run();if(i||g||(v?O.some((R,U)=>bt(R,w[U])):bt(O,w))){_&&_();const R=Br;Br=c;try{const U=[O,w===Oi?void 0:v&&w[0]===Oi?[]:w,y];u?u(t,3,U):t(...U),w=O}finally{Br=R}}}else c.run()};return l&&l(m),c=new tu(p),c.scheduler=s?()=>s(m,!1):m,y=S=>Yd(S,!1,c),_=c.onStop=()=>{const S=Gi.get(c);if(S){if(u)u(S,4);else for(const O of S)O();Gi.delete(c)}},t?n?m(!0):w=c.run():s?s(m.bind(null,!0),!0):c.run(),b.pause=c.pause.bind(c),b.resume=c.resume.bind(c),b.stop=b,b}function cr(e,t=1/0,r){if(t<=0||!Re(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,tt(e))cr(e.value,t,r);else if(te(e))for(let n=0;n{cr(n,t,r)});else if(Qc(e)){for(const n in e)cr(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&cr(e[n],t,r)}return e}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function ci(e,t,r,n){try{return n?e(...n):e()}catch(i){ho(i,t,r)}}function Bt(e,t,r,n){if(ce(e)){const i=ci(e,t,r,n);return i&&zc(i)&&i.catch(o=>{ho(o,t,r)}),i}if(te(e)){const i=[];for(let o=0;o>>1,i=ht[n],o=Jn(i);o=Jn(r)?ht.push(e):ht.splice(rh(t),0,e),e.flags|=1,_u()}}function _u(){zi||(zi=vu.then(wu))}function nh(e){te(e)?yn.push(...e):br&&e.id===-1?br.splice(fn+1,0,e):e.flags&1||(yn.push(e),e.flags|=1),_u()}function el(e,t,r=zt+1){for(;rJn(r)-Jn(n));if(yn.length=0,br){br.push(...t);return}for(br=t,fn=0;fne.id==null?e.flags&2?-1:1/0:e.id;function wu(e){try{for(zt=0;zt{n._d&&yl(-1);const o=Qi(t);let s;try{s=e(...i)}finally{Qi(o),n._d&&yl(1)}return s};return n._n=!0,n._c=!0,n._d=!0,n}function ym(e,t){if(Je===null)return e;const r=vo(Je),n=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport,Vn=e=>e&&(e.disabled||e.disabled===""),tl=e=>e&&(e.defer||e.defer===""),rl=e=>typeof SVGElement<"u"&&e instanceof SVGElement,nl=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Js=(e,t)=>{const r=e&&e.to;return Le(r)?t?t(r):null:r},Ou={name:"Teleport",__isTeleport:!0,process(e,t,r,n,i,o,s,l,u,f){const{mc:c,pc:p,pbc:_,o:{insert:y,querySelector:g,createText:v,createComment:h}}=f,b=Vn(t.props);let{shapeFlag:w,children:m,dynamicChildren:S}=t;if(e==null){const O=t.el=v(""),R=t.anchor=v("");y(O,r,n),y(R,r,n);const U=(C,L)=>{w&16&&(i&&i.isCE&&(i.ce._teleportTarget=C),c(m,C,L,i,o,s,l,u))},D=()=>{const C=t.target=Js(t.props,g),L=Tu(C,t,v,y);C&&(s!=="svg"&&rl(C)?s="svg":s!=="mathml"&&nl(C)&&(s="mathml"),b||(U(C,L),$i(t,!1)))};b&&(U(r,R),$i(t,!0)),tl(t.props)?dt(()=>{D(),t.el.__isMounted=!0},o):D()}else{if(tl(t.props)&&!e.el.__isMounted){dt(()=>{Ou.process(e,t,r,n,i,o,s,l,u,f),delete e.el.__isMounted},o);return}t.el=e.el,t.targetStart=e.targetStart;const O=t.anchor=e.anchor,R=t.target=e.target,U=t.targetAnchor=e.targetAnchor,D=Vn(e.props),C=D?r:R,L=D?O:U;if(s==="svg"||rl(R)?s="svg":(s==="mathml"||nl(R))&&(s="mathml"),S?(_(e.dynamicChildren,S,C,i,o,s,l),Pa(e,t,!0)):u||p(e,t,C,L,i,o,s,l,!1),b)D?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ti(t,r,O,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const W=t.target=Js(t.props,g);W&&Ti(t,W,null,f,0)}else D&&Ti(t,R,U,f,1);$i(t,b)}},remove(e,t,r,{um:n,o:{remove:i}},o){const{shapeFlag:s,children:l,anchor:u,targetStart:f,targetAnchor:c,target:p,props:_}=e;if(p&&(i(f),i(c)),o&&i(u),s&16){const y=o||!Vn(_);for(let g=0;g{e.isMounted=!0}),Lu(()=>{e.isUnmounting=!0}),e}const Rt=[Function,Array],xu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Rt,onEnter:Rt,onAfterEnter:Rt,onEnterCancelled:Rt,onBeforeLeave:Rt,onLeave:Rt,onAfterLeave:Rt,onLeaveCancelled:Rt,onBeforeAppear:Rt,onAppear:Rt,onAfterAppear:Rt,onAppearCancelled:Rt},Pu=e=>{const t=e.subTree;return t.component?Pu(t.component):t},ah={name:"BaseTransition",props:xu,setup(e,{slots:t}){const r=cf(),n=sh();return()=>{const i=t.default&&Iu(t.default(),!0);if(!i||!i.length)return;const o=Ru(i),s=we(e),{mode:l}=s;if(n.isLeaving)return Yo(o);const u=il(o);if(!u)return Yo(o);let f=Qs(u,s,n,r,p=>f=p);u.type!==ct&&Qn(u,f);let c=r.subTree&&il(r.subTree);if(c&&c.type!==ct&&!Vr(u,c)&&Pu(r).type!==ct){let p=Qs(c,s,n,r);if(Qn(c,p),l==="out-in"&&u.type!==ct)return n.isLeaving=!0,p.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete p.afterLeave,c=void 0},Yo(o);l==="in-out"&&u.type!==ct?p.delayLeave=(_,y,g)=>{const v=Cu(n,c);v[String(c.key)]=c,_[_r]=()=>{y(),_[_r]=void 0,delete f.delayedLeave,c=void 0},f.delayedLeave=()=>{g(),delete f.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return o}}};function Ru(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==ct){t=r;break}}return t}const lh=ah;function Cu(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function Qs(e,t,r,n,i){const{appear:o,mode:s,persisted:l=!1,onBeforeEnter:u,onEnter:f,onAfterEnter:c,onEnterCancelled:p,onBeforeLeave:_,onLeave:y,onAfterLeave:g,onLeaveCancelled:v,onBeforeAppear:h,onAppear:b,onAfterAppear:w,onAppearCancelled:m}=t,S=String(e.key),O=Cu(r,e),R=(C,L)=>{C&&Bt(C,n,9,L)},U=(C,L)=>{const W=L[1];R(C,L),te(C)?C.every(I=>I.length<=1)&&W():C.length<=1&&W()},D={mode:s,persisted:l,beforeEnter(C){let L=u;if(!r.isMounted)if(o)L=h||u;else return;C[_r]&&C[_r](!0);const W=O[S];W&&Vr(e,W)&&W.el[_r]&&W.el[_r](),R(L,[C])},enter(C){let L=f,W=c,I=p;if(!r.isMounted)if(o)L=b||f,W=w||c,I=m||p;else return;let J=!1;const ae=C[xi]=ne=>{J||(J=!0,ne?R(I,[C]):R(W,[C]),D.delayedLeave&&D.delayedLeave(),C[xi]=void 0)};L?U(L,[C,ae]):ae()},leave(C,L){const W=String(e.key);if(C[xi]&&C[xi](!0),r.isUnmounting)return L();R(_,[C]);let I=!1;const J=C[_r]=ae=>{I||(I=!0,L(),ae?R(v,[C]):R(g,[C]),C[_r]=void 0,O[W]===e&&delete O[W])};O[W]=e,y?U(y,[C,J]):J()},clone(C){const L=Qs(C,t,r,n,i);return i&&i(L),L}};return D}function Yo(e){if(yo(e))return e=Ar(e),e.children=null,e}function il(e){if(!yo(e))return Au(e.type)&&e.children?Ru(e.children):e;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&ce(r.default))return r.default()}}function Qn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Qn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Iu(e,t=!1,r){let n=[],i=0;for(let o=0;o1)for(let o=0;oXn(g,t&&(te(t)?t[v]:t),r,n,i));return}if(Gr(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Xn(e,t,r,n.component.subTree);return}const o=n.shapeFlag&4?vo(n.component):n.el,s=i?null:o,{i:l,r:u}=e,f=t&&t.r,c=l.refs===Ee?l.refs={}:l.refs,p=l.setupState,_=we(p),y=p===Ee?()=>!1:g=>Oe(_,g);if(f!=null&&f!==u&&(Le(f)?(c[f]=null,y(f)&&(p[f]=null)):tt(f)&&(f.value=null)),ce(u))ci(u,l,12,[s,c]);else{const g=Le(u),v=tt(u);if(g||v){const h=()=>{if(e.f){const b=g?y(u)?p[u]:c[u]:u.value;i?te(b)&&ha(b,o):te(b)?b.includes(o)||b.push(o):g?(c[u]=[o],y(u)&&(p[u]=c[u])):(u.value=[o],e.k&&(c[e.k]=u.value))}else g?(c[u]=s,y(u)&&(p[u]=s)):v&&(u.value=s,e.k&&(c[e.k]=s))};s?(h.id=-1,dt(h,r)):h()}}}let ol=!1;const cn=()=>{ol||(console.error("Hydration completed but contains mismatches."),ol=!0)},ch=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",uh=e=>e.namespaceURI.includes("MathML"),Pi=e=>{if(e.nodeType===1){if(ch(e))return"svg";if(uh(e))return"mathml"}},Ri=e=>e.nodeType===8;function fh(e){const{mt:t,p:r,o:{patchProp:n,createText:i,nextSibling:o,parentNode:s,remove:l,insert:u,createComment:f}}=e,c=(m,S)=>{if(!S.hasChildNodes()){r(null,m,S),Ji(),S._vnode=m;return}p(S.firstChild,m,null,null,null),Ji(),S._vnode=m},p=(m,S,O,R,U,D=!1)=>{D=D||!!S.dynamicChildren;const C=Ri(m)&&m.data==="[",L=()=>v(m,S,O,R,U,C),{type:W,ref:I,shapeFlag:J,patchFlag:ae}=S;let ne=m.nodeType;S.el=m,ae===-2&&(D=!1,S.dynamicChildren=null);let z=null;switch(W){case zr:ne!==3?S.children===""?(u(S.el=i(""),s(m),m),z=m):z=L():(m.data!==S.children&&(cn(),m.data=S.children),z=o(m));break;case ct:w(m)?(z=o(m),b(S.el=m.content.firstChild,m,O)):ne!==8||C?z=L():z=o(m);break;case qn:if(C&&(m=o(m),ne=m.nodeType),ne===1||ne===3){z=m;const Z=!S.children.length;for(let j=0;j{D=D||!!S.dynamicChildren;const{type:C,props:L,patchFlag:W,shapeFlag:I,dirs:J,transition:ae}=S,ne=C==="input"||C==="option";if(ne||W!==-1){J&&Jt(S,null,O,"created");let z=!1;if(w(m)){z=Qu(null,ae)&&O&&O.vnode.props&&O.vnode.props.appear;const j=m.content.firstChild;z&&ae.beforeEnter(j),b(j,m,O),S.el=m=j}if(I&16&&!(L&&(L.innerHTML||L.textContent))){let j=y(m.firstChild,S,m,O,R,U,D);for(;j;){Ci(m,1)||cn();const oe=j;j=j.nextSibling,l(oe)}}else if(I&8){let j=S.children;j[0]===` +`&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(j=j.slice(1)),m.textContent!==j&&(Ci(m,0)||cn(),m.textContent=S.children)}if(L){if(ne||!D||W&48){const j=m.tagName.includes("-");for(const oe in L)(ne&&(oe.endsWith("value")||oe==="indeterminate")||oi(oe)&&!hn(oe)||oe[0]==="."||j)&&n(m,oe,null,L[oe],void 0,O)}else if(L.onClick)n(m,"onClick",null,L.onClick,void 0,O);else if(W&4&&Kr(L.style))for(const j in L.style)L.style[j]}let Z;(Z=L&&L.onVnodeBeforeMount)&&Ct(Z,O,S),J&&Jt(S,null,O,"beforeMount"),((Z=L&&L.onVnodeMounted)||J||z)&&nf(()=>{Z&&Ct(Z,O,S),z&&ae.enter(m),J&&Jt(S,null,O,"mounted")},R)}return m.nextSibling},y=(m,S,O,R,U,D,C)=>{C=C||!!S.dynamicChildren;const L=S.children,W=L.length;for(let I=0;I{const{slotScopeIds:C}=S;C&&(U=U?U.concat(C):C);const L=s(m),W=y(o(m),S,L,O,R,U,D);return W&&Ri(W)&&W.data==="]"?o(S.anchor=W):(cn(),u(S.anchor=f("]"),L,W),W)},v=(m,S,O,R,U,D)=>{if(Ci(m.parentElement,1)||cn(),S.el=null,D){const W=h(m);for(;;){const I=o(m);if(I&&I!==W)l(I);else break}}const C=o(m),L=s(m);return l(m),r(null,S,L,C,O,R,Pi(L),U),O&&(O.vnode.el=S.el,tf(O,S.el)),C},h=(m,S="[",O="]")=>{let R=0;for(;m;)if(m=o(m),m&&Ri(m)&&(m.data===S&&R++,m.data===O)){if(R===0)return o(m);R--}return m},b=(m,S,O)=>{const R=S.parentNode;R&&R.replaceChild(m,S);let U=O;for(;U;)U.vnode.el===S&&(U.vnode.el=U.subTree.el=m),U=U.parent},w=m=>m.nodeType===1&&m.tagName==="TEMPLATE";return[c,p]}const sl="data-allow-mismatch",ph={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Ci(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(sl);)e=e.parentElement;const r=e&&e.getAttribute(sl);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return t===0&&n.includes("children")?!0:r.split(",").includes(ph[t])}}lo().requestIdleCallback;lo().cancelIdleCallback;const Gr=e=>!!e.type.__asyncLoader,yo=e=>e.type.__isKeepAlive;function dh(e,t){Nu(e,"a",t)}function hh(e,t){Nu(e,"da",t)}function Nu(e,t,r=Ye){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(go(t,n,r),r){let i=r.parent;for(;i&&i.parent;)yo(i.parent.vnode)&&yh(n,t,r,i),i=i.parent}}function yh(e,t,r,n){const i=go(t,e,n,!0);Mu(()=>{ha(n[t],i)},r)}function go(e,t,r=Ye,n=!1){if(r){const i=r[e]||(r[e]=[]),o=t.__weh||(t.__weh=(...s)=>{Or();const l=ui(r),u=Bt(t,r,e,s);return l(),Tr(),u});return n?i.unshift(o):i.push(o),o}}const pr=e=>(t,r=Ye)=>{(!ei||e==="sp")&&go(e,(...n)=>t(...n),r)},gh=pr("bm"),Du=pr("m"),mh=pr("bu"),vh=pr("u"),Lu=pr("bum"),Mu=pr("um"),bh=pr("sp"),_h=pr("rtg"),wh=pr("rtc");function Sh(e,t=Ye){go("ec",e,t)}const Eh="components";function mm(e,t){return Oh(Eh,e,!0,t)||e}const Ah=Symbol.for("v-ndc");function Oh(e,t,r=!0,n=!1){const i=Je||Ye;if(i){const o=i.type;{const l=cy(o,!1);if(l&&(l===t||l===Tt(t)||l===ao(Tt(t))))return o}const s=al(i[e]||o[e],t)||al(i.appContext[e],t);return!s&&n?o:s}}function al(e,t){return e&&(e[t]||e[Tt(t)]||e[ao(Tt(t))])}function vm(e,t,r,n){let i;const o=r,s=te(e);if(s||Le(e)){const l=s&&Kr(e);let u=!1;l&&(u=!Ft(e),e=po(e)),i=new Array(e.length);for(let f=0,c=e.length;ft(l,u,void 0,o));else{const l=Object.keys(e);i=new Array(l.length);for(let u=0,f=l.length;uYn(t)?!(t.type===ct||t.type===yt&&!$u(t.children)):!0)?e:null}const Xs=e=>e?uf(e)?vo(e):Xs(e.parent):null,Hn=He(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Xs(e.parent),$root:e=>Xs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ta(e),$forceUpdate:e=>e.f||(e.f=()=>{Aa(e.update)}),$nextTick:e=>e.n||(e.n=bu.bind(e.proxy)),$watch:e=>Gh.bind(e)}),es=(e,t)=>e!==Ee&&!e.__isScriptSetup&&Oe(e,t),Th={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:o,accessCache:s,type:l,appContext:u}=e;let f;if(t[0]!=="$"){const y=s[t];if(y!==void 0)switch(y){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return o[t]}else{if(es(n,t))return s[t]=1,n[t];if(i!==Ee&&Oe(i,t))return s[t]=2,i[t];if((f=e.propsOptions[0])&&Oe(f,t))return s[t]=3,o[t];if(r!==Ee&&Oe(r,t))return s[t]=4,r[t];Zs&&(s[t]=0)}}const c=Hn[t];let p,_;if(c)return t==="$attrs"&&st(e.attrs,"get",""),c(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(r!==Ee&&Oe(r,t))return s[t]=4,r[t];if(_=u.config.globalProperties,Oe(_,t))return _[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:o}=e;return es(i,t)?(i[t]=r,!0):n!==Ee&&Oe(n,t)?(n[t]=r,!0):Oe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,propsOptions:o}},s){let l;return!!r[s]||e!==Ee&&Oe(e,s)||es(t,s)||(l=o[0])&&Oe(l,s)||Oe(n,s)||Oe(Hn,s)||Oe(i.config.globalProperties,s)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Oe(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function ll(e){return te(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let Zs=!0;function xh(e){const t=Ta(e),r=e.proxy,n=e.ctx;Zs=!1,t.beforeCreate&&cl(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:s,watch:l,provide:u,inject:f,created:c,beforeMount:p,mounted:_,beforeUpdate:y,updated:g,activated:v,deactivated:h,beforeDestroy:b,beforeUnmount:w,destroyed:m,unmounted:S,render:O,renderTracked:R,renderTriggered:U,errorCaptured:D,serverPrefetch:C,expose:L,inheritAttrs:W,components:I,directives:J,filters:ae}=t;if(f&&Ph(f,n,null),s)for(const Z in s){const j=s[Z];ce(j)&&(n[Z]=j.bind(r))}if(i){const Z=i.call(r,r);Re(Z)&&(e.data=li(Z))}if(Zs=!0,o)for(const Z in o){const j=o[Z],oe=ce(j)?j.bind(r,r):ce(j.get)?j.get.bind(r,r):Zt,X=!ce(j)&&ce(j.set)?j.set.bind(r):Zt,ve=Ur({get:oe,set:X});Object.defineProperty(n,Z,{enumerable:!0,configurable:!0,get:()=>ve.value,set:Se=>ve.value=Se})}if(l)for(const Z in l)ju(l[Z],n,r,Z);if(u){const Z=ce(u)?u.call(r):u;Reflect.ownKeys(Z).forEach(j=>{Dh(j,Z[j])})}c&&cl(c,e,"c");function z(Z,j){te(j)?j.forEach(oe=>Z(oe.bind(r))):j&&Z(j.bind(r))}if(z(gh,p),z(Du,_),z(mh,y),z(vh,g),z(dh,v),z(hh,h),z(Sh,D),z(wh,R),z(_h,U),z(Lu,w),z(Mu,S),z(bh,C),te(L))if(L.length){const Z=e.exposed||(e.exposed={});L.forEach(j=>{Object.defineProperty(Z,j,{get:()=>r[j],set:oe=>r[j]=oe})})}else e.exposed||(e.exposed={});O&&e.render===Zt&&(e.render=O),W!=null&&(e.inheritAttrs=W),I&&(e.components=I),J&&(e.directives=J),C&&Fu(e)}function Ph(e,t,r=Zt){te(e)&&(e=Ys(e));for(const n in e){const i=e[n];let o;Re(i)?"default"in i?o=ji(i.from||n,i.default,!0):o=ji(i.from||n):o=ji(i),tt(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[n]=o}}function cl(e,t,r){Bt(te(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function ju(e,t,r,n){let i=n.includes(".")?Zu(r,n):()=>r[n];if(Le(e)){const o=t[e];ce(o)&&Bi(i,o)}else if(ce(e))Bi(i,e.bind(r));else if(Re(e))if(te(e))e.forEach(o=>ju(o,t,r,n));else{const o=ce(e.handler)?e.handler.bind(r):t[e.handler];ce(o)&&Bi(i,o,e)}}function Ta(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,l=o.get(t);let u;return l?u=l:!i.length&&!r&&!n?u=t:(u={},i.length&&i.forEach(f=>Xi(u,f,s,!0)),Xi(u,t,s)),Re(t)&&o.set(t,u),u}function Xi(e,t,r,n=!1){const{mixins:i,extends:o}=t;o&&Xi(e,o,r,!0),i&&i.forEach(s=>Xi(e,s,r,!0));for(const s in t)if(!(n&&s==="expose")){const l=Rh[s]||r&&r[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Rh={data:ul,props:fl,emits:fl,methods:Mn,computed:Mn,beforeCreate:pt,created:pt,beforeMount:pt,mounted:pt,beforeUpdate:pt,updated:pt,beforeDestroy:pt,beforeUnmount:pt,destroyed:pt,unmounted:pt,activated:pt,deactivated:pt,errorCaptured:pt,serverPrefetch:pt,components:Mn,directives:Mn,watch:Ih,provide:ul,inject:Ch};function ul(e,t){return t?e?function(){return He(ce(e)?e.call(this,this):e,ce(t)?t.call(this,this):t)}:t:e}function Ch(e,t){return Mn(Ys(e),Ys(t))}function Ys(e){if(te(e)){const t={};for(let r=0;r1)return r&&ce(t)?t.call(n&&n.proxy):t}}const Uu={},Vu=()=>Object.create(Uu),Hu=e=>Object.getPrototypeOf(e)===Uu;function Lh(e,t,r,n=!1){const i={},o=Vu();e.propsDefaults=Object.create(null),qu(e,t,i,o);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);r?e.props=n?i:Hd(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function Mh(e,t,r,n){const{props:i,attrs:o,vnode:{patchFlag:s}}=e,l=we(i),[u]=e.propsOptions;let f=!1;if((n||s>0)&&!(s&16)){if(s&8){const c=e.vnode.dynamicProps;for(let p=0;p{u=!0;const[_,y]=ku(p,t,!0);He(s,_),y&&l.push(...y)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!u)return Re(e)&&n.set(e,pn),pn;if(te(o))for(let c=0;ce[0]==="_"||e==="$stable",xa=e=>te(e)?e.map(It):[It(e)],jh=(e,t,r)=>{if(t._n)return t;const n=ih((...i)=>xa(t(...i)),r);return n._c=!1,n},Ku=(e,t,r)=>{const n=e._ctx;for(const i in e){if(Wu(i))continue;const o=e[i];if(ce(o))t[i]=jh(i,o,n);else if(o!=null){const s=xa(o);t[i]=()=>s}}},Gu=(e,t)=>{const r=xa(t);e.slots.default=()=>r},zu=(e,t,r)=>{for(const n in t)(r||n!=="_")&&(e[n]=t[n])},Bh=(e,t,r)=>{const n=e.slots=Vu();if(e.vnode.shapeFlag&32){const i=t._;i?(zu(n,t,r),r&&Xc(n,"_",i,!0)):Ku(t,n)}else t&&Gu(e,t)},Uh=(e,t,r)=>{const{vnode:n,slots:i}=e;let o=!0,s=Ee;if(n.shapeFlag&32){const l=t._;l?r&&l===1?o=!1:zu(i,t,r):(o=!t.$stable,Ku(t,i)),s=t}else t&&(Gu(e,t),s={default:1});if(o)for(const l in i)!Wu(l)&&s[l]==null&&delete i[l]},dt=nf;function Vh(e){return Ju(e)}function Hh(e){return Ju(e,fh)}function Ju(e,t){const r=lo();r.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:s,createText:l,createComment:u,setText:f,setElementText:c,parentNode:p,nextSibling:_,setScopeId:y=Zt,insertStaticContent:g}=e,v=(E,T,F,B=null,$=null,V=null,G=void 0,k=null,q=!!T.dynamicChildren)=>{if(E===T)return;E&&!Vr(E,T)&&(B=Ke(E),Se(E,$,V,!0),E=null),T.patchFlag===-2&&(q=!1,T.dynamicChildren=null);const{type:H,ref:Y,shapeFlag:K}=T;switch(H){case zr:h(E,T,F,B);break;case ct:b(E,T,F,B);break;case qn:E==null&&w(T,F,B,G);break;case yt:I(E,T,F,B,$,V,G,k,q);break;default:K&1?O(E,T,F,B,$,V,G,k,q):K&6?J(E,T,F,B,$,V,G,k,q):(K&64||K&128)&&H.process(E,T,F,B,$,V,G,k,q,Ce)}Y!=null&&$&&Xn(Y,E&&E.ref,V,T||E,!T)},h=(E,T,F,B)=>{if(E==null)n(T.el=l(T.children),F,B);else{const $=T.el=E.el;T.children!==E.children&&f($,T.children)}},b=(E,T,F,B)=>{E==null?n(T.el=u(T.children||""),F,B):T.el=E.el},w=(E,T,F,B)=>{[E.el,E.anchor]=g(E.children,T,F,B,E.el,E.anchor)},m=({el:E,anchor:T},F,B)=>{let $;for(;E&&E!==T;)$=_(E),n(E,F,B),E=$;n(T,F,B)},S=({el:E,anchor:T})=>{let F;for(;E&&E!==T;)F=_(E),i(E),E=F;i(T)},O=(E,T,F,B,$,V,G,k,q)=>{T.type==="svg"?G="svg":T.type==="math"&&(G="mathml"),E==null?R(T,F,B,$,V,G,k,q):C(E,T,$,V,G,k,q)},R=(E,T,F,B,$,V,G,k)=>{let q,H;const{props:Y,shapeFlag:K,transition:Q,dirs:re}=E;if(q=E.el=s(E.type,V,Y&&Y.is,Y),K&8?c(q,E.children):K&16&&D(E.children,q,null,B,$,ts(E,V),G,k),re&&Jt(E,null,B,"created"),U(q,E,E.scopeId,G,B),Y){for(const de in Y)de!=="value"&&!hn(de)&&o(q,de,null,Y[de],V,B);"value"in Y&&o(q,"value",null,Y.value,V),(H=Y.onVnodeBeforeMount)&&Ct(H,B,E)}re&&Jt(E,null,B,"beforeMount");const le=Qu($,Q);le&&Q.beforeEnter(q),n(q,T,F),((H=Y&&Y.onVnodeMounted)||le||re)&&dt(()=>{H&&Ct(H,B,E),le&&Q.enter(q),re&&Jt(E,null,B,"mounted")},$)},U=(E,T,F,B,$)=>{if(F&&y(E,F),B)for(let V=0;V{for(let H=q;H{const k=T.el=E.el;let{patchFlag:q,dynamicChildren:H,dirs:Y}=T;q|=E.patchFlag&16;const K=E.props||Ee,Q=T.props||Ee;let re;if(F&&Lr(F,!1),(re=Q.onVnodeBeforeUpdate)&&Ct(re,F,T,E),Y&&Jt(T,E,F,"beforeUpdate"),F&&Lr(F,!0),(K.innerHTML&&Q.innerHTML==null||K.textContent&&Q.textContent==null)&&c(k,""),H?L(E.dynamicChildren,H,k,F,B,ts(T,$),V):G||j(E,T,k,null,F,B,ts(T,$),V,!1),q>0){if(q&16)W(k,K,Q,F,$);else if(q&2&&K.class!==Q.class&&o(k,"class",null,Q.class,$),q&4&&o(k,"style",K.style,Q.style,$),q&8){const le=T.dynamicProps;for(let de=0;de{re&&Ct(re,F,T,E),Y&&Jt(T,E,F,"updated")},B)},L=(E,T,F,B,$,V,G)=>{for(let k=0;k{if(T!==F){if(T!==Ee)for(const V in T)!hn(V)&&!(V in F)&&o(E,V,T[V],null,$,B);for(const V in F){if(hn(V))continue;const G=F[V],k=T[V];G!==k&&V!=="value"&&o(E,V,k,G,$,B)}"value"in F&&o(E,"value",T.value,F.value,$)}},I=(E,T,F,B,$,V,G,k,q)=>{const H=T.el=E?E.el:l(""),Y=T.anchor=E?E.anchor:l("");let{patchFlag:K,dynamicChildren:Q,slotScopeIds:re}=T;re&&(k=k?k.concat(re):re),E==null?(n(H,F,B),n(Y,F,B),D(T.children||[],F,Y,$,V,G,k,q)):K>0&&K&64&&Q&&E.dynamicChildren?(L(E.dynamicChildren,Q,F,$,V,G,k),(T.key!=null||$&&T===$.subTree)&&Pa(E,T,!0)):j(E,T,F,Y,$,V,G,k,q)},J=(E,T,F,B,$,V,G,k,q)=>{T.slotScopeIds=k,E==null?T.shapeFlag&512?$.ctx.activate(T,F,B,G,q):ae(T,F,B,$,V,G,q):ne(E,T,q)},ae=(E,T,F,B,$,V,G)=>{const k=E.component=iy(E,B,$);if(yo(E)&&(k.ctx.renderer=Ce),oy(k,!1,G),k.asyncDep){if($&&$.registerDep(k,z,G),!E.el){const q=k.subTree=et(ct);b(null,q,T,F)}}else z(k,E,T,F,$,V,G)},ne=(E,T,F)=>{const B=T.component=E.component;if(Xh(E,T,F))if(B.asyncDep&&!B.asyncResolved){Z(B,T,F);return}else B.next=T,B.update();else T.el=E.el,B.vnode=T},z=(E,T,F,B,$,V,G)=>{const k=()=>{if(E.isMounted){let{next:K,bu:Q,u:re,parent:le,vnode:de}=E;{const je=Xu(E);if(je){K&&(K.el=de.el,Z(E,K,G)),je.asyncDep.then(()=>{E.isUnmounted||k()});return}}let he=K,xe;Lr(E,!1),K?(K.el=de.el,Z(E,K,G)):K=de,Q&&Mi(Q),(xe=K.props&&K.props.onVnodeBeforeUpdate)&&Ct(xe,le,K,de),Lr(E,!0);const De=rs(E),Ge=E.subTree;E.subTree=De,v(Ge,De,p(Ge.el),Ke(Ge),E,$,V),K.el=De.el,he===null&&tf(E,De.el),re&&dt(re,$),(xe=K.props&&K.props.onVnodeUpdated)&&dt(()=>Ct(xe,le,K,de),$)}else{let K;const{el:Q,props:re}=T,{bm:le,m:de,parent:he,root:xe,type:De}=E,Ge=Gr(T);if(Lr(E,!1),le&&Mi(le),!Ge&&(K=re&&re.onVnodeBeforeMount)&&Ct(K,he,T),Lr(E,!0),Q&&Be){const je=()=>{E.subTree=rs(E),Be(Q,E.subTree,E,$,null)};Ge&&De.__asyncHydrate?De.__asyncHydrate(Q,E,je):je()}else{xe.ce&&xe.ce._injectChildStyle(De);const je=E.subTree=rs(E);v(null,je,F,B,E,$,V),T.el=je.el}if(de&&dt(de,$),!Ge&&(K=re&&re.onVnodeMounted)){const je=T;dt(()=>Ct(K,he,je),$)}(T.shapeFlag&256||he&&Gr(he.vnode)&&he.vnode.shapeFlag&256)&&E.a&&dt(E.a,$),E.isMounted=!0,T=F=B=null}};E.scope.on();const q=E.effect=new tu(k);E.scope.off();const H=E.update=q.run.bind(q),Y=E.job=q.runIfDirty.bind(q);Y.i=E,Y.id=E.uid,q.scheduler=()=>Aa(Y),Lr(E,!0),H()},Z=(E,T,F)=>{T.component=E;const B=E.vnode.props;E.vnode=T,E.next=null,Mh(E,T.props,B,F),Uh(E,T.children,F),Or(),el(E),Tr()},j=(E,T,F,B,$,V,G,k,q=!1)=>{const H=E&&E.children,Y=E?E.shapeFlag:0,K=T.children,{patchFlag:Q,shapeFlag:re}=T;if(Q>0){if(Q&128){X(H,K,F,B,$,V,G,k,q);return}else if(Q&256){oe(H,K,F,B,$,V,G,k,q);return}}re&8?(Y&16&&$e(H,$,V),K!==H&&c(F,K)):Y&16?re&16?X(H,K,F,B,$,V,G,k,q):$e(H,$,V,!0):(Y&8&&c(F,""),re&16&&D(K,F,B,$,V,G,k,q))},oe=(E,T,F,B,$,V,G,k,q)=>{E=E||pn,T=T||pn;const H=E.length,Y=T.length,K=Math.min(H,Y);let Q;for(Q=0;QY?$e(E,$,V,!0,!1,K):D(T,F,B,$,V,G,k,q,K)},X=(E,T,F,B,$,V,G,k,q)=>{let H=0;const Y=T.length;let K=E.length-1,Q=Y-1;for(;H<=K&&H<=Q;){const re=E[H],le=T[H]=q?wr(T[H]):It(T[H]);if(Vr(re,le))v(re,le,F,null,$,V,G,k,q);else break;H++}for(;H<=K&&H<=Q;){const re=E[K],le=T[Q]=q?wr(T[Q]):It(T[Q]);if(Vr(re,le))v(re,le,F,null,$,V,G,k,q);else break;K--,Q--}if(H>K){if(H<=Q){const re=Q+1,le=reQ)for(;H<=K;)Se(E[H],$,V,!0),H++;else{const re=H,le=H,de=new Map;for(H=le;H<=Q;H++){const P=T[H]=q?wr(T[H]):It(T[H]);P.key!=null&&de.set(P.key,H)}let he,xe=0;const De=Q-le+1;let Ge=!1,je=0;const rt=new Array(De);for(H=0;H=De){Se(P,$,V,!0);continue}let ie;if(P.key!=null)ie=de.get(P.key);else for(he=le;he<=Q;he++)if(rt[he-le]===0&&Vr(P,T[he])){ie=he;break}ie===void 0?Se(P,$,V,!0):(rt[ie-le]=H+1,ie>=je?je=ie:Ge=!0,v(P,T[ie],F,null,$,V,G,k,q),xe++)}const x=Ge?qh(rt):pn;for(he=x.length-1,H=De-1;H>=0;H--){const P=le+H,ie=T[P],ye=P+1{const{el:V,type:G,transition:k,children:q,shapeFlag:H}=E;if(H&6){ve(E.component.subTree,T,F,B);return}if(H&128){E.suspense.move(T,F,B);return}if(H&64){G.move(E,T,F,Ce);return}if(G===yt){n(V,T,F);for(let K=0;Kk.enter(V),$);else{const{leave:K,delayLeave:Q,afterLeave:re}=k,le=()=>n(V,T,F),de=()=>{K(V,()=>{le(),re&&re()})};Q?Q(V,le,de):de()}else n(V,T,F)},Se=(E,T,F,B=!1,$=!1)=>{const{type:V,props:G,ref:k,children:q,dynamicChildren:H,shapeFlag:Y,patchFlag:K,dirs:Q,cacheIndex:re}=E;if(K===-2&&($=!1),k!=null&&Xn(k,null,F,E,!0),re!=null&&(T.renderCache[re]=void 0),Y&256){T.ctx.deactivate(E);return}const le=Y&1&&Q,de=!Gr(E);let he;if(de&&(he=G&&G.onVnodeBeforeUnmount)&&Ct(he,T,E),Y&6)ue(E.component,F,B);else{if(Y&128){E.suspense.unmount(F,B);return}le&&Jt(E,null,T,"beforeUnmount"),Y&64?E.type.remove(E,T,F,Ce,B):H&&!H.hasOnce&&(V!==yt||K>0&&K&64)?$e(H,T,F,!1,!0):(V===yt&&K&384||!$&&Y&16)&&$e(q,T,F),B&&Fe(E)}(de&&(he=G&&G.onVnodeUnmounted)||le)&&dt(()=>{he&&Ct(he,T,E),le&&Jt(E,null,T,"unmounted")},F)},Fe=E=>{const{type:T,el:F,anchor:B,transition:$}=E;if(T===yt){Pe(F,B);return}if(T===qn){S(E);return}const V=()=>{i(F),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(E.shapeFlag&1&&$&&!$.persisted){const{leave:G,delayLeave:k}=$,q=()=>G(F,V);k?k(E.el,V,q):q()}else V()},Pe=(E,T)=>{let F;for(;E!==T;)F=_(E),i(E),E=F;i(T)},ue=(E,T,F)=>{const{bum:B,scope:$,job:V,subTree:G,um:k,m:q,a:H}=E;dl(q),dl(H),B&&Mi(B),$.stop(),V&&(V.flags|=8,Se(G,E,T,F)),k&&dt(k,T),dt(()=>{E.isUnmounted=!0},T),T&&T.pendingBranch&&!T.isUnmounted&&E.asyncDep&&!E.asyncResolved&&E.suspenseId===T.pendingId&&(T.deps--,T.deps===0&&T.resolve())},$e=(E,T,F,B=!1,$=!1,V=0)=>{for(let G=V;G{if(E.shapeFlag&6)return Ke(E.component.subTree);if(E.shapeFlag&128)return E.suspense.next();const T=_(E.anchor||E.el),F=T&&T[Eu];return F?_(F):T};let Te=!1;const Ne=(E,T,F)=>{E==null?T._vnode&&Se(T._vnode,null,null,!0):v(T._vnode||null,E,T,null,null,null,F),T._vnode=E,Te||(Te=!0,el(),Ji(),Te=!1)},Ce={p:v,um:Se,m:ve,r:Fe,mt:ae,mc:D,pc:j,pbc:L,n:Ke,o:e};let qe,Be;return t&&([qe,Be]=t(Ce)),{render:Ne,hydrate:qe,createApp:Nh(Ne,qe)}}function ts({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function Lr({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Qu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Pa(e,t,r=!1){const n=e.children,i=t.children;if(te(n)&&te(i))for(let o=0;o>1,e[r[l]]0&&(t[n]=r[o-1]),r[o]=n)}}for(o=r.length,s=r[o-1];o-- >0;)r[o]=s,s=t[s];return r}function Xu(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Xu(t)}function dl(e){if(e)for(let t=0;tji(kh);function Kh(e,t){return Ra(e,null,{flush:"sync"})}function Bi(e,t,r){return Ra(e,t,r)}function Ra(e,t,r=Ee){const{immediate:n,deep:i,flush:o,once:s}=r,l=He({},r),u=t&&n||!t&&o!=="post";let f;if(ei){if(o==="sync"){const y=Wh();f=y.__watcherHandles||(y.__watcherHandles=[])}else if(!u){const y=()=>{};return y.stop=Zt,y.resume=Zt,y.pause=Zt,y}}const c=Ye;l.call=(y,g,v)=>Bt(y,c,g,v);let p=!1;o==="post"?l.scheduler=y=>{dt(y,c&&c.suspense)}:o!=="sync"&&(p=!0,l.scheduler=(y,g)=>{g?y():Aa(y)}),l.augmentJob=y=>{t&&(y.flags|=4),p&&(y.flags|=2,c&&(y.id=c.uid,y.i=c))};const _=eh(e,t,l);return ei&&(f?f.push(_):u&&_()),_}function Gh(e,t,r){const n=this.proxy,i=Le(e)?e.includes(".")?Zu(n,e):()=>n[e]:e.bind(n,n);let o;ce(t)?o=t:(o=t.handler,r=t);const s=ui(this),l=Ra(i,o.bind(n),r);return s(),l}function Zu(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i{let c,p=Ee,_;return Kh(()=>{const y=e[i];bt(c,y)&&(c=y,f())}),{get(){return u(),r.get?r.get(c):c},set(y){const g=r.set?r.set(y):y;if(!bt(g,c)&&!(p!==Ee&&bt(y,p)))return;const v=n.vnode.props;v&&(t in v||i in v||o in v)&&(`onUpdate:${t}`in v||`onUpdate:${i}`in v||`onUpdate:${o}`in v)||(c=y,f()),n.emit(`update:${t}`,g),bt(y,g)&&bt(y,p)&&!bt(g,_)&&f(),p=y,_=g}}});return l[Symbol.iterator]=()=>{let u=0;return{next(){return u<2?{value:u++?s||Ee:l,done:!1}:{done:!0}}}},l}const Yu=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Tt(t)}Modifiers`]||e[`${fr(t)}Modifiers`];function zh(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||Ee;let i=r;const o=t.startsWith("update:"),s=o&&Yu(n,t.slice(7));s&&(s.trim&&(i=r.map(c=>Le(c)?c.trim():c)),s.number&&(i=r.map(Wi)));let l,u=n[l=zo(t)]||n[l=zo(Tt(t))];!u&&o&&(u=n[l=zo(fr(t))]),u&&Bt(u,e,6,i);const f=n[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Bt(f,e,6,i)}}function ef(e,t,r=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const o=e.emits;let s={},l=!1;if(!ce(e)){const u=f=>{const c=ef(f,t,!0);c&&(l=!0,He(s,c))};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!o&&!l?(Re(e)&&n.set(e,null),null):(te(o)?o.forEach(u=>s[u]=null):He(s,o),Re(e)&&n.set(e,s),s)}function mo(e,t){return!e||!oi(t)?!1:(t=t.slice(2).replace(/Once$/,""),Oe(e,t[0].toLowerCase()+t.slice(1))||Oe(e,fr(t))||Oe(e,t))}function rs(e){const{type:t,vnode:r,proxy:n,withProxy:i,propsOptions:[o],slots:s,attrs:l,emit:u,render:f,renderCache:c,props:p,data:_,setupState:y,ctx:g,inheritAttrs:v}=e,h=Qi(e);let b,w;try{if(r.shapeFlag&4){const S=i||n,O=S;b=It(f.call(O,S,c,p,y,_,g)),w=l}else{const S=t;b=It(S.length>1?S(p,{attrs:l,slots:s,emit:u}):S(p,null)),w=t.props?l:Jh(l)}}catch(S){kn.length=0,ho(S,e,1),b=et(ct)}let m=b;if(w&&v!==!1){const S=Object.keys(w),{shapeFlag:O}=m;S.length&&O&7&&(o&&S.some(da)&&(w=Qh(w,o)),m=Ar(m,w,!1,!0))}return r.dirs&&(m=Ar(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(r.dirs):r.dirs),r.transition&&Qn(m,r.transition),b=m,Qi(h),b}const Jh=e=>{let t;for(const r in e)(r==="class"||r==="style"||oi(r))&&((t||(t={}))[r]=e[r]);return t},Qh=(e,t)=>{const r={};for(const n in e)(!da(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function Xh(e,t,r){const{props:n,children:i,component:o}=e,{props:s,children:l,patchFlag:u}=t,f=o.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&u>=0){if(u&1024)return!0;if(u&16)return n?hl(n,s,f):!!s;if(u&8){const c=t.dynamicProps;for(let p=0;pe.__isSuspense;function nf(e,t){t&&t.pendingBranch?te(e)?t.effects.push(...e):t.effects.push(e):nh(e)}const yt=Symbol.for("v-fgt"),zr=Symbol.for("v-txt"),ct=Symbol.for("v-cmt"),qn=Symbol.for("v-stc"),kn=[];let At=null;function ta(e=!1){kn.push(At=e?null:[])}function Zh(){kn.pop(),At=kn[kn.length-1]||null}let Zn=1;function yl(e,t=!1){Zn+=e,e<0&&At&&t&&(At.hasOnce=!0)}function of(e){return e.dynamicChildren=Zn>0?At||pn:null,Zh(),Zn>0&&At&&At.push(e),e}function wm(e,t,r,n,i,o){return of(af(e,t,r,n,i,o,!0))}function ra(e,t,r,n,i){return of(et(e,t,r,n,i,!0))}function Yn(e){return e?e.__v_isVNode===!0:!1}function Vr(e,t){return e.type===t.type&&e.key===t.key}const sf=({key:e})=>e??null,Ui=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Le(e)||tt(e)||ce(e)?{i:Je,r:e,k:t,f:!!r}:e:null);function af(e,t=null,r=null,n=0,i=null,o=e===yt?0:1,s=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&sf(t),ref:t&&Ui(t),scopeId:Su,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Je};return l?(Ca(u,r),o&128&&e.normalize(u)):r&&(u.shapeFlag|=Le(r)?8:16),Zn>0&&!s&&At&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&At.push(u),u}const et=Yh;function Yh(e,t=null,r=null,n=0,i=null,o=!1){if((!e||e===Ah)&&(e=ct),Yn(e)){const l=Ar(e,t,!0);return r&&Ca(l,r),Zn>0&&!o&&At&&(l.shapeFlag&6?At[At.indexOf(e)]=l:At.push(l)),l.patchFlag=-2,l}if(uy(e)&&(e=e.__vccOpts),t){t=ey(t);let{class:l,style:u}=t;l&&!Le(l)&&(t.class=uo(l)),Re(u)&&(Sa(u)&&!te(u)&&(u=He({},u)),t.style=co(u))}const s=Le(e)?1:rf(e)?128:Au(e)?64:Re(e)?4:ce(e)?2:0;return af(e,t,r,n,i,s,o,!0)}function ey(e){return e?Sa(e)||Hu(e)?He({},e):e:null}function Ar(e,t,r=!1,n=!1){const{props:i,ref:o,patchFlag:s,children:l,transition:u}=e,f=t?ty(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&sf(f),ref:t&&t.ref?r&&o?te(o)?o.concat(Ui(t)):[o,Ui(t)]:Ui(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==yt?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ar(e.ssContent),ssFallback:e.ssFallback&&Ar(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&n&&Qn(c,u.clone(c)),c}function lf(e=" ",t=0){return et(zr,null,e,t)}function Sm(e,t){const r=et(qn,null,e);return r.staticCount=t,r}function Em(e="",t=!1){return t?(ta(),ra(ct,null,e)):et(ct,null,e)}function It(e){return e==null||typeof e=="boolean"?et(ct):te(e)?et(yt,null,e.slice()):Yn(e)?wr(e):et(zr,null,String(e))}function wr(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ar(e)}function Ca(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(te(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Ca(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!Hu(t)?t._ctx=Je:i===3&&Je&&(Je.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ce(t)?(t={default:t,_ctx:Je},r=32):(t=String(t),n&64?(r=16,t=[lf(t)]):r=8);e.children=t,e.shapeFlag|=r}function ty(...e){const t={};for(let r=0;rYe||Je;let Zi,na;{const e=lo(),t=(r,n)=>{let i;return(i=e[r])||(i=e[r]=[]),i.push(n),o=>{i.length>1?i.forEach(s=>s(o)):i[0](o)}};Zi=t("__VUE_INSTANCE_SETTERS__",r=>Ye=r),na=t("__VUE_SSR_SETTERS__",r=>ei=r)}const ui=e=>{const t=Ye;return Zi(e),e.scope.on(),()=>{e.scope.off(),Zi(t)}},gl=()=>{Ye&&Ye.scope.off(),Zi(null)};function uf(e){return e.vnode.shapeFlag&4}let ei=!1;function oy(e,t=!1,r=!1){t&&na(t);const{props:n,children:i}=e.vnode,o=uf(e);Lh(e,n,o,t),Bh(e,i,r);const s=o?sy(e,t):void 0;return t&&na(!1),s}function sy(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Th);const{setup:n}=r;if(n){Or();const i=e.setupContext=n.length>1?ly(e):null,o=ui(e),s=ci(n,e,0,[e.props,i]),l=zc(s);if(Tr(),o(),(l||e.sp)&&!Gr(e)&&Fu(e),l){if(s.then(gl,gl),t)return s.then(u=>{ml(e,u,t)}).catch(u=>{ho(u,e,0)});e.asyncDep=s}else ml(e,s,t)}else ff(e,t)}function ml(e,t,r){ce(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Re(t)&&(e.setupState=mu(t)),ff(e,r)}let vl;function ff(e,t,r){const n=e.type;if(!e.render){if(!t&&vl&&!n.render){const i=n.template||Ta(e).template;if(i){const{isCustomElement:o,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:u}=n,f=He(He({isCustomElement:o,delimiters:l},s),u);n.render=vl(i,f)}}e.render=n.render||Zt}{const i=ui(e);Or();try{xh(e)}finally{Tr(),i()}}}const ay={get(e,t){return st(e,"get",""),e[t]}};function ly(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,ay),slots:e.slots,emit:e.emit,expose:t}}function vo(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(mu(Gs(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Hn)return Hn[r](e)},has(t,r){return r in t||r in Hn}})):e.proxy}function cy(e,t=!0){return ce(e)?e.displayName||e.name:e.name||t&&e.__name}function uy(e){return ce(e)&&"__vccOpts"in e}const Ur=(e,t)=>Zd(e,t,ei);function Jr(e,t,r){const n=arguments.length;return n===2?Re(t)&&!te(t)?Yn(t)?et(e,null,[t]):et(e,t):et(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Yn(r)&&(r=[r]),et(e,t,r))}const fy="3.5.13";/** +* @vue/runtime-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let ia;const bl=typeof window<"u"&&window.trustedTypes;if(bl)try{ia=bl.createPolicy("vue",{createHTML:e=>e})}catch{}const pf=ia?e=>ia.createHTML(e):e=>e,py="http://www.w3.org/2000/svg",dy="http://www.w3.org/1998/Math/MathML",ar=typeof document<"u"?document:null,_l=ar&&ar.createElement("template"),hy={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t==="svg"?ar.createElementNS(py,e):t==="mathml"?ar.createElementNS(dy,e):r?ar.createElement(e,{is:r}):ar.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>ar.createTextNode(e),createComment:e=>ar.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ar.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,o){const s=r?r.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===o||!(i=i.nextSibling)););else{_l.innerHTML=pf(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const l=_l.content;if(n==="svg"||n==="mathml"){const u=l.firstChild;for(;u.firstChild;)l.appendChild(u.firstChild);l.removeChild(u)}t.insertBefore(l,r)}return[s?s.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},vr="transition",Fn="animation",ti=Symbol("_vtc"),df={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},yy=He({},xu,df),gy=e=>(e.displayName="Transition",e.props=yy,e),Am=gy((e,{slots:t})=>Jr(lh,my(e),t)),Mr=(e,t=[])=>{te(e)?e.forEach(r=>r(...t)):e&&e(...t)},wl=e=>e?te(e)?e.some(t=>t.length>1):e.length>1:!1;function my(e){const t={};for(const I in e)I in df||(t[I]=e[I]);if(e.css===!1)return t;const{name:r="v",type:n,duration:i,enterFromClass:o=`${r}-enter-from`,enterActiveClass:s=`${r}-enter-active`,enterToClass:l=`${r}-enter-to`,appearFromClass:u=o,appearActiveClass:f=s,appearToClass:c=l,leaveFromClass:p=`${r}-leave-from`,leaveActiveClass:_=`${r}-leave-active`,leaveToClass:y=`${r}-leave-to`}=e,g=vy(i),v=g&&g[0],h=g&&g[1],{onBeforeEnter:b,onEnter:w,onEnterCancelled:m,onLeave:S,onLeaveCancelled:O,onBeforeAppear:R=b,onAppear:U=w,onAppearCancelled:D=m}=t,C=(I,J,ae,ne)=>{I._enterCancelled=ne,$r(I,J?c:l),$r(I,J?f:s),ae&&ae()},L=(I,J)=>{I._isLeaving=!1,$r(I,p),$r(I,y),$r(I,_),J&&J()},W=I=>(J,ae)=>{const ne=I?U:w,z=()=>C(J,I,ae);Mr(ne,[J,z]),Sl(()=>{$r(J,I?u:o),sr(J,I?c:l),wl(ne)||El(J,n,v,z)})};return He(t,{onBeforeEnter(I){Mr(b,[I]),sr(I,o),sr(I,s)},onBeforeAppear(I){Mr(R,[I]),sr(I,u),sr(I,f)},onEnter:W(!1),onAppear:W(!0),onLeave(I,J){I._isLeaving=!0;const ae=()=>L(I,J);sr(I,p),I._enterCancelled?(sr(I,_),Tl()):(Tl(),sr(I,_)),Sl(()=>{I._isLeaving&&($r(I,p),sr(I,y),wl(S)||El(I,n,h,ae))}),Mr(S,[I,ae])},onEnterCancelled(I){C(I,!1,void 0,!0),Mr(m,[I])},onAppearCancelled(I){C(I,!0,void 0,!0),Mr(D,[I])},onLeaveCancelled(I){L(I),Mr(O,[I])}})}function vy(e){if(e==null)return null;if(Re(e))return[ns(e.enter),ns(e.leave)];{const t=ns(e);return[t,t]}}function ns(e){return pd(e)}function sr(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[ti]||(e[ti]=new Set)).add(t)}function $r(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[ti];r&&(r.delete(t),r.size||(e[ti]=void 0))}function Sl(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let by=0;function El(e,t,r,n){const i=e._endId=++by,o=()=>{i===e._endId&&n()};if(r!=null)return setTimeout(o,r);const{type:s,timeout:l,propCount:u}=_y(e,t);if(!s)return n();const f=s+"end";let c=0;const p=()=>{e.removeEventListener(f,_),o()},_=y=>{y.target===e&&++c>=u&&p()};setTimeout(()=>{c(r[g]||"").split(", "),i=n(`${vr}Delay`),o=n(`${vr}Duration`),s=Al(i,o),l=n(`${Fn}Delay`),u=n(`${Fn}Duration`),f=Al(l,u);let c=null,p=0,_=0;t===vr?s>0&&(c=vr,p=s,_=o.length):t===Fn?f>0&&(c=Fn,p=f,_=u.length):(p=Math.max(s,f),c=p>0?s>f?vr:Fn:null,_=c?c===vr?o.length:u.length:0);const y=c===vr&&/\b(transform|all)(,|$)/.test(n(`${vr}Property`).toString());return{type:c,timeout:p,propCount:_,hasTransform:y}}function Al(e,t){for(;e.lengthOl(r)+Ol(e[n])))}function Ol(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Tl(){return document.body.offsetHeight}function wy(e,t,r){const n=e[ti];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Yi=Symbol("_vod"),hf=Symbol("_vsh"),Om={beforeMount(e,{value:t},{transition:r}){e[Yi]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Nn(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Nn(e,!0),n.enter(e)):n.leave(e,()=>{Nn(e,!1)}):Nn(e,t))},beforeUnmount(e,{value:t}){Nn(e,t)}};function Nn(e,t){e.style.display=t?e[Yi]:"none",e[hf]=!t}const Sy=Symbol(""),Ey=/(^|;)\s*display\s*:/;function Ay(e,t,r){const n=e.style,i=Le(r);let o=!1;if(r&&!i){if(t)if(Le(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();r[l]==null&&Vi(n,l,"")}else for(const s in t)r[s]==null&&Vi(n,s,"");for(const s in r)s==="display"&&(o=!0),Vi(n,s,r[s])}else if(i){if(t!==r){const s=n[Sy];s&&(r+=";"+s),n.cssText=r,o=Ey.test(r)}}else t&&e.removeAttribute("style");Yi in e&&(e[Yi]=o?n.display:"",e[hf]&&(n.display="none"))}const xl=/\s*!important$/;function Vi(e,t,r){if(te(r))r.forEach(n=>Vi(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=Oy(e,t);xl.test(r)?e.setProperty(fr(n),r.replace(xl,""),"important"):e[n]=r}}const Pl=["Webkit","Moz","ms"],is={};function Oy(e,t){const r=is[t];if(r)return r;let n=Tt(t);if(n!=="filter"&&n in e)return is[t]=n;n=ao(n);for(let i=0;ios||(Ry.then(()=>os=0),os=Date.now());function Iy(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Bt(Fy(n,r.value),t,5,[n])};return r.value=e,r.attached=Cy(),r}function Fy(e,t){if(te(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Dl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ny=(e,t,r,n,i,o)=>{const s=i==="svg";t==="class"?wy(e,n,s):t==="style"?Ay(e,r,n):oi(t)?da(t)||xy(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Dy(e,t,n,s))?(Il(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Cl(e,t,n,s,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Le(n))?Il(e,Tt(t),n,o,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Cl(e,t,n,s))};function Dy(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Dl(t)&&ce(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Dl(t)&&Le(r)?!1:t in e}const vn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return te(t)?r=>Mi(t,r):t};function Ly(e){e.target.composing=!0}function Ll(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ur=Symbol("_assign"),Tm={created(e,{modifiers:{lazy:t,trim:r,number:n}},i){e[ur]=vn(i);const o=n||i.props&&i.props.type==="number";Sr(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;r&&(l=l.trim()),o&&(l=Wi(l)),e[ur](l)}),r&&Sr(e,"change",()=>{e.value=e.value.trim()}),t||(Sr(e,"compositionstart",Ly),Sr(e,"compositionend",Ll),Sr(e,"change",Ll))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:i,number:o}},s){if(e[ur]=vn(s),e.composing)return;const l=(o||e.type==="number")&&!/^0\d/.test(e.value)?Wi(e.value):e.value,u=t??"";l!==u&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||i&&e.value.trim()===u)||(e.value=u))}},xm={deep:!0,created(e,t,r){e[ur]=vn(r),Sr(e,"change",()=>{const n=e._modelValue,i=ri(e),o=e.checked,s=e[ur];if(te(n)){const l=ga(n,i),u=l!==-1;if(o&&!u)s(n.concat(i));else if(!o&&u){const f=[...n];f.splice(l,1),s(f)}}else if(wn(n)){const l=new Set(n);o?l.add(i):l.delete(i),s(l)}else s(yf(e,o))})},mounted:Ml,beforeUpdate(e,t,r){e[ur]=vn(r),Ml(e,t,r)}};function Ml(e,{value:t,oldValue:r},n){e._modelValue=t;let i;if(te(t))i=ga(t,n.props.value)>-1;else if(wn(t))i=t.has(n.props.value);else{if(t===r)return;i=ai(t,yf(e,!0))}e.checked!==i&&(e.checked=i)}const Pm={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const i=wn(t);Sr(e,"change",()=>{const o=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>r?Wi(ri(s)):ri(s));e[ur](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,bu(()=>{e._assigning=!1})}),e[ur]=vn(n)},mounted(e,{value:t}){$l(e,t)},beforeUpdate(e,t,r){e[ur]=vn(r)},updated(e,{value:t}){e._assigning||$l(e,t)}};function $l(e,t){const r=e.multiple,n=te(t);if(!(r&&!n&&!wn(t))){for(let i=0,o=e.options.length;iString(f)===String(l)):s.selected=ga(t,l)>-1}else s.selected=t.has(l);else if(ai(ri(s),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ri(e){return"_value"in e?e._value:e.value}function yf(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const My=["ctrl","shift","alt","meta"],$y={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>My.some(r=>e[`${r}Key`]&&!t.includes(r))},Rm=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(i,...o)=>{for(let s=0;s{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=i=>{if(!("key"in i))return;const o=fr(i.key);if(t.some(s=>s===o||jy[s]===o))return e(i)})},gf=He({patchProp:Ny},hy);let Wn,jl=!1;function By(){return Wn||(Wn=Vh(gf))}function Uy(){return Wn=jl?Wn:Hh(gf),jl=!0,Wn}const Vy=(...e)=>{const t=By().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=vf(n);if(!i)return;const o=t._component;!ce(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=r(i,!1,mf(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t},Hy=(...e)=>{const t=Uy().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=vf(n);if(i)return r(i,!0,mf(i))},t};function mf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function vf(e){return Le(e)?document.querySelector(e):e}var Xt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function qy(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var ss,Bl;function ky(){if(Bl)return ss;Bl=1;var e=function(w){return t(w)&&!r(w)};function t(b){return!!b&&typeof b=="object"}function r(b){var w=Object.prototype.toString.call(b);return w==="[object RegExp]"||w==="[object Date]"||o(b)}var n=typeof Symbol=="function"&&Symbol.for,i=n?Symbol.for("react.element"):60103;function o(b){return b.$$typeof===i}function s(b){return Array.isArray(b)?[]:{}}function l(b,w){return w.clone!==!1&&w.isMergeableObject(b)?v(s(b),b,w):b}function u(b,w,m){return b.concat(w).map(function(S){return l(S,m)})}function f(b,w){if(!w.customMerge)return v;var m=w.customMerge(b);return typeof m=="function"?m:v}function c(b){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(b).filter(function(w){return Object.propertyIsEnumerable.call(b,w)}):[]}function p(b){return Object.keys(b).concat(c(b))}function _(b,w){try{return w in b}catch{return!1}}function y(b,w){return _(b,w)&&!(Object.hasOwnProperty.call(b,w)&&Object.propertyIsEnumerable.call(b,w))}function g(b,w,m){var S={};return m.isMergeableObject(b)&&p(b).forEach(function(O){S[O]=l(b[O],m)}),p(w).forEach(function(O){y(b,O)||(_(b,O)&&m.isMergeableObject(w[O])?S[O]=f(O,m)(b[O],w[O],m):S[O]=l(w[O],m))}),S}function v(b,w,m){m=m||{},m.arrayMerge=m.arrayMerge||u,m.isMergeableObject=m.isMergeableObject||e,m.cloneUnlessOtherwiseSpecified=l;var S=Array.isArray(w),O=Array.isArray(b),R=S===O;return R?S?m.arrayMerge(b,w,m):g(b,w,m):l(w,m)}v.all=function(w,m){if(!Array.isArray(w))throw new Error("first argument should be an array");return w.reduce(function(S,O){return v(S,O,m)},{})};var h=v;return ss=h,ss}var Wy=ky();const Ky=bo(Wy);var as,Ul;function Gy(){return Ul||(Ul=1,as=Error),as}var ls,Vl;function zy(){return Vl||(Vl=1,ls=EvalError),ls}var cs,Hl;function Jy(){return Hl||(Hl=1,cs=RangeError),cs}var us,ql;function Qy(){return ql||(ql=1,us=ReferenceError),us}var fs,kl;function bf(){return kl||(kl=1,fs=SyntaxError),fs}var ps,Wl;function fi(){return Wl||(Wl=1,ps=TypeError),ps}var ds,Kl;function Xy(){return Kl||(Kl=1,ds=URIError),ds}var hs,Gl;function Zy(){return Gl||(Gl=1,hs=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var o in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,r);if(l.value!==i||l.enumerable!==!0)return!1}return!0}),hs}var ys,zl;function Yy(){if(zl)return ys;zl=1;var e=typeof Symbol<"u"&&Symbol,t=Zy();return ys=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},ys}var gs,Jl;function eg(){if(Jl)return gs;Jl=1;var e={__proto__:null,foo:{}},t={__proto__:e}.foo===e.foo&&!(e instanceof Object);return gs=function(){return t},gs}var ms,Ql;function tg(){if(Ql)return ms;Ql=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(u,f){for(var c=[],p=0;p"u"||!v?e:v(Uint8Array),w={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":y&&v?v([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":r,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":u,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y&&v?v(v([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!y||!v?e:v(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":n,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!y||!v?e:v(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y&&v?v(""[Symbol.iterator]()):e,"%Symbol%":y?Symbol:e,"%SyntaxError%":o,"%ThrowTypeError%":_,"%TypedArray%":b,"%TypeError%":s,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet};if(v)try{null.error}catch(Z){var m=v(v(Z));w["%Error.prototype%"]=m}var S=function Z(j){var oe;if(j==="%AsyncFunction%")oe=f("async function () {}");else if(j==="%GeneratorFunction%")oe=f("function* () {}");else if(j==="%AsyncGeneratorFunction%")oe=f("async function* () {}");else if(j==="%AsyncGenerator%"){var X=Z("%AsyncGeneratorFunction%");X&&(oe=X.prototype)}else if(j==="%AsyncIteratorPrototype%"){var ve=Z("%AsyncGenerator%");ve&&v&&(oe=v(ve.prototype))}return w[j]=oe,oe},O={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=Ia(),U=rg(),D=R.call(Function.call,Array.prototype.concat),C=R.call(Function.apply,Array.prototype.splice),L=R.call(Function.call,String.prototype.replace),W=R.call(Function.call,String.prototype.slice),I=R.call(Function.call,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ae=/\\(\\)?/g,ne=function(j){var oe=W(j,0,1),X=W(j,-1);if(oe==="%"&&X!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(X==="%"&&oe!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var ve=[];return L(j,J,function(Se,Fe,Pe,ue){ve[ve.length]=Pe?L(ue,ae,"$1"):Fe||Se}),ve},z=function(j,oe){var X=j,ve;if(U(O,X)&&(ve=O[X],X="%"+ve[0]+"%"),U(w,X)){var Se=w[X];if(Se===h&&(Se=S(X)),typeof Se>"u"&&!oe)throw new s("intrinsic "+j+" exists, but is not available. Please file an issue!");return{alias:ve,name:X,value:Se}}throw new o("intrinsic "+j+" does not exist!")};return _s=function(j,oe){if(typeof j!="string"||j.length===0)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof oe!="boolean")throw new s('"allowMissing" argument must be a boolean');if(I(/^%?[^%]*%?$/,j)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var X=ne(j),ve=X.length>0?X[0]:"",Se=z("%"+ve+"%",oe),Fe=Se.name,Pe=Se.value,ue=!1,$e=Se.alias;$e&&(ve=$e[0],C(X,D([0,1],$e)));for(var Ke=1,Te=!0;Ke=X.length){var Be=c(Pe,Ne);Te=!!Be,Te&&"get"in Be&&!("originalValue"in Be.get)?Pe=Be.get:Pe=Pe[Ne]}else Te=U(Pe,Ne),Pe=Pe[Ne];Te&&!ue&&(w[Fe]=Pe)}}return Pe},_s}var ws={exports:{}},Ss,ec;function Fa(){if(ec)return Ss;ec=1;var e=Sn(),t=e("%Object.defineProperty%",!0)||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return Ss=t,Ss}var Es,tc;function _f(){if(tc)return Es;tc=1;var e=Sn(),t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return Es=t,Es}var As,rc;function ng(){if(rc)return As;rc=1;var e=Fa(),t=bf(),r=fi(),n=_f();return As=function(o,s,l){if(!o||typeof o!="object"&&typeof o!="function")throw new r("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,f=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,_=!!n&&n(o,s);if(e)e(o,s,{configurable:c===null&&_?_.configurable:!c,enumerable:u===null&&_?_.enumerable:!u,value:l,writable:f===null&&_?_.writable:!f});else if(p||!u&&!f&&!c)o[s]=l;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},As}var Os,nc;function ig(){if(nc)return Os;nc=1;var e=Fa(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},Os=t,Os}var Ts,ic;function og(){if(ic)return Ts;ic=1;var e=Sn(),t=ng(),r=ig()(),n=_f(),i=fi(),o=e("%Math.floor%");return Ts=function(l,u){if(typeof l!="function")throw new i("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||o(u)!==u)throw new i("`length` must be a positive 32-bit integer");var f=arguments.length>2&&!!arguments[2],c=!0,p=!0;if("length"in l&&n){var _=n(l,"length");_&&!_.configurable&&(c=!1),_&&!_.writable&&(p=!1)}return(c||p||!f)&&(r?t(l,"length",u,!0,!0):t(l,"length",u)),l},Ts}var oc;function sg(){return oc||(oc=1,function(e){var t=Ia(),r=Sn(),n=og(),i=fi(),o=r("%Function.prototype.apply%"),s=r("%Function.prototype.call%"),l=r("%Reflect.apply%",!0)||t.call(s,o),u=Fa(),f=r("%Math.max%");e.exports=function(_){if(typeof _!="function")throw new i("a function is required");var y=l(t,s,arguments);return n(y,1+f(0,_.length-(arguments.length-1)),!0)};var c=function(){return l(t,o,arguments)};u?u(e.exports,"apply",{value:c}):e.exports.apply=c}(ws)),ws.exports}var xs,sc;function ag(){if(sc)return xs;sc=1;var e=Sn(),t=sg(),r=t(e("String.prototype.indexOf"));return xs=function(i,o){var s=e(i,!!o);return typeof s=="function"&&r(i,".prototype.")>-1?t(s):s},xs}const lg={},cg=Object.freeze(Object.defineProperty({__proto__:null,default:lg},Symbol.toStringTag,{value:"Module"})),ug=qy(cg);var Ps,ac;function fg(){if(ac)return Ps;ac=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,o=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=i&&o&&typeof o.get=="function"?o.get:null,l=i&&Set.prototype.forEach,u=typeof WeakMap=="function"&&WeakMap.prototype,f=u?WeakMap.prototype.has:null,c=typeof WeakSet=="function"&&WeakSet.prototype,p=c?WeakSet.prototype.has:null,_=typeof WeakRef=="function"&&WeakRef.prototype,y=_?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,v=Object.prototype.toString,h=Function.prototype.toString,b=String.prototype.match,w=String.prototype.slice,m=String.prototype.replace,S=String.prototype.toUpperCase,O=String.prototype.toLowerCase,R=RegExp.prototype.test,U=Array.prototype.concat,D=Array.prototype.join,C=Array.prototype.slice,L=Math.floor,W=typeof BigInt=="function"?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ae=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ne=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ae||!0)?Symbol.toStringTag:null,z=Object.prototype.propertyIsEnumerable,Z=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(x){return x.__proto__}:null);function j(x,P){if(x===1/0||x===-1/0||x!==x||x&&x>-1e3&&x<1e3||R.call(/e/,P))return P;var ie=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof x=="number"){var ye=x<0?-L(-x):L(x);if(ye!==x){var ge=String(ye),se=w.call(P,ge.length+1);return m.call(ge,ie,"$&_")+"."+m.call(m.call(se,/([0-9]{3})/g,"$&_"),/_$/,"")}}return m.call(P,ie,"$&_")}var oe=ug,X=oe.custom,ve=E(X)?X:null,Se={__proto__:null,double:'"',single:"'"},Fe={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ps=function x(P,ie,ye,ge){var se=ie||{};if(B(se,"quoteStyle")&&!B(Se,se.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(B(se,"maxStringLength")&&(typeof se.maxStringLength=="number"?se.maxStringLength<0&&se.maxStringLength!==1/0:se.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var gt=B(se,"customInspect")?se.customInspect:!0;if(typeof gt!="boolean"&>!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(B(se,"indent")&&se.indent!==null&&se.indent!==" "&&!(parseInt(se.indent,10)===se.indent&&se.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(B(se,"numericSeparator")&&typeof se.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var ut=se.numericSeparator;if(typeof P>"u")return"undefined";if(P===null)return"null";if(typeof P=="boolean")return P?"true":"false";if(typeof P=="string")return re(P,se);if(typeof P=="number"){if(P===0)return 1/0/P>0?"0":"-0";var ke=String(P);return ut?j(P,ke):ke}if(typeof P=="bigint"){var nt=String(P)+"n";return ut?j(P,nt):nt}var Yt=typeof se.depth>"u"?5:se.depth;if(typeof ye>"u"&&(ye=0),ye>=Yt&&Yt>0&&typeof P=="object")return $e(P)?"[Array]":"[Object]";var xt=Ge(se,ye);if(typeof ge>"u")ge=[];else if(G(ge,P)>=0)return"[Circular]";function Qe(Vt,gr,En){if(gr&&(ge=C.call(ge),ge.push(gr)),En){var tn={depth:se.depth};return B(se,"quoteStyle")&&(tn.quoteStyle=se.quoteStyle),x(Vt,tn,ye+1,ge)}return x(Vt,se,ye+1,ge)}if(typeof P=="function"&&!Te(P)){var Nt=V(P),xr=rt(P,Qe);return"[Function"+(Nt?": "+Nt:" (anonymous)")+"]"+(xr.length>0?" { "+D.call(xr,", ")+" }":"")}if(E(P)){var Pt=ae?m.call(String(P),/^(Symbol\(.*\))_[^)]*$/,"$1"):J.call(P);return typeof P=="object"&&!ae?de(Pt):Pt}if(Q(P)){for(var er="<"+O.call(String(P.nodeName)),Pr=P.attributes||[],hr=0;hr",er}if($e(P)){if(P.length===0)return"[]";var yr=rt(P,Qe);return xt&&!De(yr)?"["+je(yr,xt)+"]":"[ "+D.call(yr,", ")+" ]"}if(Ne(P)){var tr=rt(P,Qe);return!("cause"in Error.prototype)&&"cause"in P&&!z.call(P,"cause")?"{ ["+String(P)+"] "+D.call(U.call("[cause]: "+Qe(P.cause),tr),", ")+" }":tr.length===0?"["+String(P)+"]":"{ ["+String(P)+"] "+D.call(tr,", ")+" }"}if(typeof P=="object"&>){if(ve&&typeof P[ve]=="function"&&oe)return oe(P,{depth:Yt-ye});if(gt!=="symbol"&&typeof P.inspect=="function")return P.inspect()}if(k(P)){var Ue=[];return n&&n.call(P,function(Vt,gr){Ue.push(Qe(gr,P,!0)+" => "+Qe(Vt,P))}),xe("Map",r.call(P),Ue,xt)}if(Y(P)){var Zr=[];return l&&l.call(P,function(Vt){Zr.push(Qe(Vt,P))}),xe("Set",s.call(P),Zr,xt)}if(q(P))return he("WeakMap");if(K(P))return he("WeakSet");if(H(P))return he("WeakRef");if(qe(P))return de(Qe(Number(P)));if(T(P))return de(Qe(W.call(P)));if(Be(P))return de(g.call(P));if(Ce(P))return de(Qe(String(P)));if(typeof window<"u"&&P===window)return"{ [object Window] }";if(typeof globalThis<"u"&&P===globalThis||typeof Xt<"u"&&P===Xt)return"{ [object globalThis] }";if(!Ke(P)&&!Te(P)){var Rr=rt(P,Qe),Yr=Z?Z(P)===Object.prototype:P instanceof Object||P.constructor===Object,Cr=P instanceof Object?"":"null prototype",en=!Yr&&ne&&Object(P)===P&&ne in P?w.call($(P),8,-1):Cr?"Object":"",ze=Yr||typeof P.constructor!="function"?"":P.constructor.name?P.constructor.name+" ":"",Ir=ze+(en||Cr?"["+D.call(U.call([],en||[],Cr||[]),": ")+"] ":"");return Rr.length===0?Ir+"{}":xt?Ir+"{"+je(Rr,xt)+"}":Ir+"{ "+D.call(Rr,", ")+" }"}return String(P)};function Pe(x,P,ie){var ye=ie.quoteStyle||P,ge=Se[ye];return ge+x+ge}function ue(x){return m.call(String(x),/"/g,""")}function $e(x){return $(x)==="[object Array]"&&(!ne||!(typeof x=="object"&&ne in x))}function Ke(x){return $(x)==="[object Date]"&&(!ne||!(typeof x=="object"&&ne in x))}function Te(x){return $(x)==="[object RegExp]"&&(!ne||!(typeof x=="object"&&ne in x))}function Ne(x){return $(x)==="[object Error]"&&(!ne||!(typeof x=="object"&&ne in x))}function Ce(x){return $(x)==="[object String]"&&(!ne||!(typeof x=="object"&&ne in x))}function qe(x){return $(x)==="[object Number]"&&(!ne||!(typeof x=="object"&&ne in x))}function Be(x){return $(x)==="[object Boolean]"&&(!ne||!(typeof x=="object"&&ne in x))}function E(x){if(ae)return x&&typeof x=="object"&&x instanceof Symbol;if(typeof x=="symbol")return!0;if(!x||typeof x!="object"||!J)return!1;try{return J.call(x),!0}catch{}return!1}function T(x){if(!x||typeof x!="object"||!W)return!1;try{return W.call(x),!0}catch{}return!1}var F=Object.prototype.hasOwnProperty||function(x){return x in this};function B(x,P){return F.call(x,P)}function $(x){return v.call(x)}function V(x){if(x.name)return x.name;var P=b.call(h.call(x),/^function\s*([\w$]+)/);return P?P[1]:null}function G(x,P){if(x.indexOf)return x.indexOf(P);for(var ie=0,ye=x.length;ieP.maxStringLength){var ie=x.length-P.maxStringLength,ye="... "+ie+" more character"+(ie>1?"s":"");return re(w.call(x,0,P.maxStringLength),P)+ye}var ge=Fe[P.quoteStyle||"single"];ge.lastIndex=0;var se=m.call(m.call(x,ge,"\\$1"),/[\x00-\x1f]/g,le);return Pe(se,"single",P)}function le(x){var P=x.charCodeAt(0),ie={8:"b",9:"t",10:"n",12:"f",13:"r"}[P];return ie?"\\"+ie:"\\x"+(P<16?"0":"")+S.call(P.toString(16))}function de(x){return"Object("+x+")"}function he(x){return x+" { ? }"}function xe(x,P,ie,ye){var ge=ye?je(ie,ye):D.call(ie,", ");return x+" ("+P+") {"+ge+"}"}function De(x){for(var P=0;P=0)return!1;return!0}function Ge(x,P){var ie;if(x.indent===" ")ie=" ";else if(typeof x.indent=="number"&&x.indent>0)ie=D.call(Array(x.indent+1)," ");else return null;return{base:ie,prev:D.call(Array(P+1),ie)}}function je(x,P){if(x.length===0)return"";var ie=` +`+P.prev+P.base;return ie+D.call(x,","+ie)+` +`+P.prev}function rt(x,P){var ie=$e(x),ye=[];if(ie){ye.length=x.length;for(var ge=0;ge1;){var w=b.pop(),m=w.obj[w.prop];if(r(m)){for(var S=[],O=0;O=f?R.slice(D,D+f):R,L=[],W=0;W=48&&I<=57||I>=65&&I<=90||I>=97&&I<=122||O===e.RFC1738&&(I===40||I===41)){L[L.length]=C.charAt(W);continue}if(I<128){L[L.length]=n[I];continue}if(I<2048){L[L.length]=n[192|I>>6]+n[128|I&63];continue}if(I<55296||I>=57344){L[L.length]=n[224|I>>12]+n[128|I>>6&63]+n[128|I&63];continue}W+=1,I=65536+((I&1023)<<10|C.charCodeAt(W)&1023),L[L.length]=n[240|I>>18]+n[128|I>>12&63]+n[128|I>>6&63]+n[128|I&63]}U+=L.join("")}return U},p=function(b){for(var w=[{obj:{o:b},prop:"o"}],m=[],S=0;S"u"&&(X=0)}if(typeof C=="function"?j=C(b,j):j instanceof Date?j=I(j):w==="comma"&&o(j)&&(j=t.maybeMap(j,function(F){return F instanceof Date?I(F):F})),j===null){if(O)return D&&!ne?D(b,c.encoder,z,"key",J):b;j=""}if(p(j)||t.isBuffer(j)){if(D){var Fe=ne?b:D(b,c.encoder,z,"key",J);return[ae(Fe)+"="+ae(D(j,c.encoder,z,"value",J))]}return[ae(b)+"="+ae(String(j))]}var Pe=[];if(typeof j>"u")return Pe;var ue;if(w==="comma"&&o(j))ne&&D&&(j=t.maybeMap(j,D)),ue=[{value:j.length>0?j.join(",")||null:void 0}];else if(o(C))ue=C;else{var $e=Object.keys(j);ue=L?$e.sort(L):$e}var Ke=U?String(b).replace(/\./g,"%2E"):String(b),Te=m&&o(j)&&j.length===1?Ke+"[]":Ke;if(S&&o(j)&&j.length===0)return Te+"[]";for(var Ne=0;Ne"u"?h.encodeDotInKeys===!0?!0:c.allowDots:!!h.allowDots;return{addQueryPrefix:typeof h.addQueryPrefix=="boolean"?h.addQueryPrefix:c.addQueryPrefix,allowDots:R,allowEmptyArrays:typeof h.allowEmptyArrays=="boolean"?!!h.allowEmptyArrays:c.allowEmptyArrays,arrayFormat:O,charset:b,charsetSentinel:typeof h.charsetSentinel=="boolean"?h.charsetSentinel:c.charsetSentinel,commaRoundTrip:!!h.commaRoundTrip,delimiter:typeof h.delimiter>"u"?c.delimiter:h.delimiter,encode:typeof h.encode=="boolean"?h.encode:c.encode,encodeDotInKeys:typeof h.encodeDotInKeys=="boolean"?h.encodeDotInKeys:c.encodeDotInKeys,encoder:typeof h.encoder=="function"?h.encoder:c.encoder,encodeValuesOnly:typeof h.encodeValuesOnly=="boolean"?h.encodeValuesOnly:c.encodeValuesOnly,filter:S,format:w,formatter:m,serializeDate:typeof h.serializeDate=="function"?h.serializeDate:c.serializeDate,skipNulls:typeof h.skipNulls=="boolean"?h.skipNulls:c.skipNulls,sort:typeof h.sort=="function"?h.sort:null,strictNullHandling:typeof h.strictNullHandling=="boolean"?h.strictNullHandling:c.strictNullHandling}};return Fs=function(v,h){var b=v,w=g(h),m,S;typeof w.filter=="function"?(S=w.filter,b=S("",b)):o(w.filter)&&(S=w.filter,m=S);var O=[];if(typeof b!="object"||b===null)return"";var R=i[w.arrayFormat],U=R==="comma"&&w.commaRoundTrip;m||(m=Object.keys(b)),w.sort&&m.sort(w.sort);for(var D=e(),C=0;C0?J+I:""},Fs}var Ns,pc;function hg(){if(pc)return Ns;pc=1;var e=wf(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},i=function(_){return _.replace(/&#(\d+);/g,function(y,g){return String.fromCharCode(parseInt(g,10))})},o=function(_,y){return _&&typeof _=="string"&&y.comma&&_.indexOf(",")>-1?_.split(","):_},s="utf8=%26%2310003%3B",l="utf8=%E2%9C%93",u=function(y,g){var v={__proto__:null},h=g.ignoreQueryPrefix?y.replace(/^\?/,""):y;h=h.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var b=g.parameterLimit===1/0?void 0:g.parameterLimit,w=h.split(g.delimiter,b),m=-1,S,O=g.charset;if(g.charsetSentinel)for(S=0;S-1&&(L=r(L)?[L]:L);var W=t.call(v,C);W&&g.duplicates==="combine"?v[C]=e.combine(v[C],L):(!W||g.duplicates==="last")&&(v[C]=L)}return v},f=function(_,y,g,v){for(var h=v?y:o(y,g),b=_.length-1;b>=0;--b){var w,m=_[b];if(m==="[]"&&g.parseArrays)w=g.allowEmptyArrays&&(h===""||g.strictNullHandling&&h===null)?[]:[].concat(h);else{w=g.plainObjects?{__proto__:null}:{};var S=m.charAt(0)==="["&&m.charAt(m.length-1)==="]"?m.slice(1,-1):m,O=g.decodeDotInKeys?S.replace(/%2E/g,"."):S,R=parseInt(O,10);!g.parseArrays&&O===""?w={0:h}:!isNaN(R)&&m!==O&&String(R)===O&&R>=0&&g.parseArrays&&R<=g.arrayLimit?(w=[],w[R]=h):O!=="__proto__"&&(w[O]=h)}h=w}return h},c=function(y,g,v,h){if(y){var b=v.allowDots?y.replace(/\.([^.[]+)/g,"[$1]"):y,w=/(\[[^[\]]*])/,m=/(\[[^[\]]*])/g,S=v.depth>0&&w.exec(b),O=S?b.slice(0,S.index):b,R=[];if(O){if(!v.plainObjects&&t.call(Object.prototype,O)&&!v.allowPrototypes)return;R.push(O)}for(var U=0;v.depth>0&&(S=m.exec(b))!==null&&U"u"?n.charset:y.charset,v=typeof y.duplicates>"u"?n.duplicates:y.duplicates;if(v!=="combine"&&v!=="first"&&v!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var h=typeof y.allowDots>"u"?y.decodeDotInKeys===!0?!0:n.allowDots:!!y.allowDots;return{allowDots:h,allowEmptyArrays:typeof y.allowEmptyArrays=="boolean"?!!y.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof y.allowPrototypes=="boolean"?y.allowPrototypes:n.allowPrototypes,allowSparse:typeof y.allowSparse=="boolean"?y.allowSparse:n.allowSparse,arrayLimit:typeof y.arrayLimit=="number"?y.arrayLimit:n.arrayLimit,charset:g,charsetSentinel:typeof y.charsetSentinel=="boolean"?y.charsetSentinel:n.charsetSentinel,comma:typeof y.comma=="boolean"?y.comma:n.comma,decodeDotInKeys:typeof y.decodeDotInKeys=="boolean"?y.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof y.decoder=="function"?y.decoder:n.decoder,delimiter:typeof y.delimiter=="string"||e.isRegExp(y.delimiter)?y.delimiter:n.delimiter,depth:typeof y.depth=="number"||y.depth===!1?+y.depth:n.depth,duplicates:v,ignoreQueryPrefix:y.ignoreQueryPrefix===!0,interpretNumericEntities:typeof y.interpretNumericEntities=="boolean"?y.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof y.parameterLimit=="number"?y.parameterLimit:n.parameterLimit,parseArrays:y.parseArrays!==!1,plainObjects:typeof y.plainObjects=="boolean"?y.plainObjects:n.plainObjects,strictDepth:typeof y.strictDepth=="boolean"?!!y.strictDepth:n.strictDepth,strictNullHandling:typeof y.strictNullHandling=="boolean"?y.strictNullHandling:n.strictNullHandling}};return Ns=function(_,y){var g=p(y);if(_===""||_===null||typeof _>"u")return g.plainObjects?{__proto__:null}:{};for(var v=typeof _=="string"?u(_,g):_,h=g.plainObjects?{__proto__:null}:{},b=Object.keys(v),w=0;w
'};r.configure=function(g){var v,h;for(v in g)h=g[v],h!==void 0&&g.hasOwnProperty(v)&&(n[v]=h);return this},r.status=null,r.set=function(g){var v=r.isStarted();g=i(g,n.minimum,1),r.status=g===1?null:g;var h=r.render(!v),b=h.querySelector(n.barSelector),w=n.speed,m=n.easing;return h.offsetWidth,l(function(S){n.positionUsing===""&&(n.positionUsing=r.getPositioningCSS()),u(b,s(g,w,m)),g===1?(u(h,{transition:"none",opacity:1}),h.offsetWidth,setTimeout(function(){u(h,{transition:"all "+w+"ms linear",opacity:0}),setTimeout(function(){r.remove(),S()},w)},w)):setTimeout(S,w)}),this},r.isStarted=function(){return typeof r.status=="number"},r.start=function(){r.status||r.set(0);var g=function(){setTimeout(function(){r.status&&(r.trickle(),g())},n.trickleSpeed)};return n.trickle&&g(),this},r.done=function(g){return!g&&!r.status?this:r.inc(.3+.5*Math.random()).set(1)},r.inc=function(g){var v=r.status;return v?(typeof g!="number"&&(g=(1-v)*i(Math.random()*v,.1,.95)),v=i(v+g,0,.994),r.set(v)):r.start()},r.trickle=function(){return r.inc(Math.random()*n.trickleRate)},function(){var g=0,v=0;r.promise=function(h){return!h||h.state()==="resolved"?this:(v===0&&r.start(),g++,v++,h.always(function(){v--,v===0?(g=0,r.done()):r.set((g-v)/g)}),this)}}(),r.render=function(g){if(r.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var v=document.createElement("div");v.id="nprogress",v.innerHTML=n.template;var h=v.querySelector(n.barSelector),b=g?"-100":o(r.status||0),w=document.querySelector(n.parent),m;return u(h,{transition:"all 0 linear",transform:"translate3d("+b+"%,0,0)"}),n.showSpinner||(m=v.querySelector(n.spinnerSelector),m&&y(m)),w!=document.body&&c(w,"nprogress-custom-parent"),w.appendChild(v),v},r.remove=function(){p(document.documentElement,"nprogress-busy"),p(document.querySelector(n.parent),"nprogress-custom-parent");var g=document.getElementById("nprogress");g&&y(g)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var g=document.body.style,v="WebkitTransform"in g?"Webkit":"MozTransform"in g?"Moz":"msTransform"in g?"ms":"OTransform"in g?"O":"";return v+"Perspective"in g?"translate3d":v+"Transform"in g?"translate":"margin"};function i(g,v,h){return gh?h:g}function o(g){return(-1+g)*100}function s(g,v,h){var b;return n.positionUsing==="translate3d"?b={transform:"translate3d("+o(g)+"%,0,0)"}:n.positionUsing==="translate"?b={transform:"translate("+o(g)+"%,0)"}:b={"margin-left":o(g)+"%"},b.transition="all "+v+"ms "+h,b}var l=function(){var g=[];function v(){var h=g.shift();h&&h(v)}return function(h){g.push(h),g.length==1&&v()}}(),u=function(){var g=["Webkit","O","Moz","ms"],v={};function h(S){return S.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(O,R){return R.toUpperCase()})}function b(S){var O=document.body.style;if(S in O)return S;for(var R=g.length,U=S.charAt(0).toUpperCase()+S.slice(1),D;R--;)if(D=g[R]+U,D in O)return D;return S}function w(S){return S=h(S),v[S]||(v[S]=b(S))}function m(S,O,R){O=w(O),S.style[O]=R}return function(S,O){var R=arguments,U,D;if(R.length==2)for(U in O)D=O[U],D!==void 0&&O.hasOwnProperty(U)&&m(S,U,D);else m(S,R[1],R[2])}}();function f(g,v){var h=typeof g=="string"?g:_(g);return h.indexOf(" "+v+" ")>=0}function c(g,v){var h=_(g),b=h+v;f(h,v)||(g.className=b.substring(1))}function p(g,v){var h=_(g),b;f(g,v)&&(b=h.replace(" "+v+" "," "),g.className=b.substring(1,b.length-1))}function _(g){return(" "+(g.className||"")+" ").replace(/\s+/gi," ")}function y(g){g&&g.parentNode&&g.parentNode.removeChild(g)}return r})}(Hi)),Hi.exports}var vg=mg();const Qt=bo(vg);function Sf(e,t){let r;return function(...n){clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function dr(e,t){return document.dispatchEvent(new CustomEvent(`inertia:${e}`,t))}var bg=e=>dr("before",{cancelable:!0,detail:{visit:e}}),_g=e=>dr("error",{detail:{errors:e}}),wg=e=>dr("exception",{cancelable:!0,detail:{exception:e}}),gc=e=>dr("finish",{detail:{visit:e}}),Sg=e=>dr("invalid",{cancelable:!0,detail:{response:e}}),Dn=e=>dr("navigate",{detail:{page:e}}),Eg=e=>dr("progress",{detail:{progress:e}}),Ag=e=>dr("start",{detail:{visit:e}}),Og=e=>dr("success",{detail:{page:e}});function oa(e){return e instanceof File||e instanceof Blob||e instanceof FileList&&e.length>0||e instanceof FormData&&Array.from(e.values()).some(t=>oa(t))||typeof e=="object"&&e!==null&&Object.values(e).some(t=>oa(t))}function Ef(e,t=new FormData,r=null){e=e||{};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&Of(t,Af(r,n),e[n]);return t}function Af(e,t){return e?e+"["+t+"]":t}function Of(e,t,r){if(Array.isArray(r))return Array.from(r.keys()).forEach(n=>Of(e,Af(t,n.toString()),r[n]));if(r instanceof Date)return e.append(t,r.toISOString());if(r instanceof File)return e.append(t,r,r.name);if(r instanceof Blob)return e.append(t,r);if(typeof r=="boolean")return e.append(t,r?"1":"0");if(typeof r=="string")return e.append(t,r);if(typeof r=="number")return e.append(t,`${r}`);if(r==null)return e.append(t,"");Ef(r,e,t)}var Tg={modal:null,listener:null,show(e){typeof e=="object"&&(e=`All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.
${JSON.stringify(e)}`);let t=document.createElement("html");t.innerHTML=e,t.querySelectorAll("a").forEach(n=>n.setAttribute("target","_top")),this.modal=document.createElement("div"),this.modal.style.position="fixed",this.modal.style.width="100vw",this.modal.style.height="100vh",this.modal.style.padding="50px",this.modal.style.boxSizing="border-box",this.modal.style.backgroundColor="rgba(0, 0, 0, .6)",this.modal.style.zIndex=2e5,this.modal.addEventListener("click",()=>this.hide());let r=document.createElement("iframe");if(r.style.backgroundColor="white",r.style.borderRadius="5px",r.style.width="100%",r.style.height="100%",this.modal.appendChild(r),document.body.prepend(this.modal),document.body.style.overflow="hidden",!r.contentWindow)throw new Error("iframe not yet ready.");r.contentWindow.document.open(),r.contentWindow.document.write(t.outerHTML),r.contentWindow.document.close(),this.listener=this.hideOnEscape.bind(this),document.addEventListener("keydown",this.listener)},hide(){this.modal.outerHTML="",this.modal=null,document.body.style.overflow="visible",document.removeEventListener("keydown",this.listener)},hideOnEscape(e){e.keyCode===27&&this.hide()}};function un(e){return new URL(e.toString(),window.location.toString())}function Tf(e,t,r,n="brackets"){let i=/^https?:\/\//.test(t.toString()),o=i||t.toString().startsWith("/"),s=!o&&!t.toString().startsWith("#")&&!t.toString().startsWith("?"),l=t.toString().includes("?")||e==="get"&&Object.keys(r).length,u=t.toString().includes("#"),f=new URL(t.toString(),"http://localhost");return e==="get"&&Object.keys(r).length&&(f.search=hc.stringify(Ky(hc.parse(f.search,{ignoreQueryPrefix:!0}),r),{encodeValuesOnly:!0,arrayFormat:n}),r={}),[[i?`${f.protocol}//${f.host}`:"",o?f.pathname:"",s?f.pathname.substring(1):"",l?f.search:"",u?f.hash:""].join(""),r]}function Ln(e){return e=new URL(e.href),e.hash="",e}var mc=typeof window>"u",xg=class{constructor(){this.visitId=null}init({initialPage:e,resolveComponent:t,swapComponent:r}){this.page=e,this.resolveComponent=t,this.swapComponent=r,this.setNavigationType(),this.clearRememberedStateOnReload(),this.isBackForwardVisit()?this.handleBackForwardVisit(this.page):this.isLocationVisit()?this.handleLocationVisit(this.page):this.handleInitialPageVisit(this.page),this.setupEventListeners()}setNavigationType(){this.navigationType=window.performance&&window.performance.getEntriesByType("navigation").length>0?window.performance.getEntriesByType("navigation")[0].type:"navigate"}clearRememberedStateOnReload(){var e;this.navigationType==="reload"&&((e=window.history.state)!=null&&e.rememberedState)&&delete window.history.state.rememberedState}handleInitialPageVisit(e){this.page.url+=window.location.hash,this.setPage(e,{preserveState:!0}).then(()=>Dn(e))}setupEventListeners(){window.addEventListener("popstate",this.handlePopstateEvent.bind(this)),document.addEventListener("scroll",Sf(this.handleScrollEvent.bind(this),100),!0)}scrollRegions(){return document.querySelectorAll("[scroll-region]")}handleScrollEvent(e){typeof e.target.hasAttribute=="function"&&e.target.hasAttribute("scroll-region")&&this.saveScrollPositions()}saveScrollPositions(){this.replaceState({...this.page,scrollRegions:Array.from(this.scrollRegions()).map(e=>({top:e.scrollTop,left:e.scrollLeft}))})}resetScrollPositions(){window.scrollTo(0,0),this.scrollRegions().forEach(e=>{typeof e.scrollTo=="function"?e.scrollTo(0,0):(e.scrollTop=0,e.scrollLeft=0)}),this.saveScrollPositions(),window.location.hash&&setTimeout(()=>{var e;return(e=document.getElementById(window.location.hash.slice(1)))==null?void 0:e.scrollIntoView()})}restoreScrollPositions(){this.page.scrollRegions&&this.scrollRegions().forEach((e,t)=>{let r=this.page.scrollRegions[t];if(r)typeof e.scrollTo=="function"?e.scrollTo(r.left,r.top):(e.scrollTop=r.top,e.scrollLeft=r.left);else return})}isBackForwardVisit(){return window.history.state&&this.navigationType==="back_forward"}handleBackForwardVisit(e){window.history.state.version=e.version,this.setPage(window.history.state,{preserveScroll:!0,preserveState:!0}).then(()=>{this.restoreScrollPositions(),Dn(e)})}locationVisit(e,t){try{let r={preserveScroll:t};window.sessionStorage.setItem("inertiaLocationVisit",JSON.stringify(r)),window.location.href=e.href,Ln(window.location).href===Ln(e).href&&window.location.reload()}catch{return!1}}isLocationVisit(){try{return window.sessionStorage.getItem("inertiaLocationVisit")!==null}catch{return!1}}handleLocationVisit(e){var r,n;let t=JSON.parse(window.sessionStorage.getItem("inertiaLocationVisit")||"");window.sessionStorage.removeItem("inertiaLocationVisit"),e.url+=window.location.hash,e.rememberedState=((r=window.history.state)==null?void 0:r.rememberedState)??{},e.scrollRegions=((n=window.history.state)==null?void 0:n.scrollRegions)??[],this.setPage(e,{preserveScroll:t.preserveScroll,preserveState:!0}).then(()=>{t.preserveScroll&&this.restoreScrollPositions(),Dn(e)})}isLocationVisitResponse(e){return!!(e&&e.status===409&&e.headers["x-inertia-location"])}isInertiaResponse(e){return!!(e!=null&&e.headers["x-inertia"])}createVisitId(){return this.visitId={},this.visitId}cancelVisit(e,{cancelled:t=!1,interrupted:r=!1}){e&&!e.completed&&!e.cancelled&&!e.interrupted&&(e.cancelToken.abort(),e.onCancel(),e.completed=!1,e.cancelled=t,e.interrupted=r,gc(e),e.onFinish(e))}finishVisit(e){!e.cancelled&&!e.interrupted&&(e.completed=!0,e.cancelled=!1,e.interrupted=!1,gc(e),e.onFinish(e))}resolvePreserveOption(e,t){return typeof e=="function"?e(t):e==="errors"?Object.keys(t.props.errors||{}).length>0:e}cancel(){this.activeVisit&&this.cancelVisit(this.activeVisit,{cancelled:!0})}visit(e,{method:t="get",data:r={},replace:n=!1,preserveScroll:i=!1,preserveState:o=!1,only:s=[],except:l=[],headers:u={},errorBag:f="",forceFormData:c=!1,onCancelToken:p=()=>{},onBefore:_=()=>{},onStart:y=()=>{},onProgress:g=()=>{},onFinish:v=()=>{},onCancel:h=()=>{},onSuccess:b=()=>{},onError:w=()=>{},queryStringArrayFormat:m="brackets"}={}){let S=typeof e=="string"?un(e):e;if((oa(r)||c)&&!(r instanceof FormData)&&(r=Ef(r)),!(r instanceof FormData)){let[D,C]=Tf(t,S,r,m);S=un(D),r=C}let O={url:S,method:t,data:r,replace:n,preserveScroll:i,preserveState:o,only:s,except:l,headers:u,errorBag:f,forceFormData:c,queryStringArrayFormat:m,cancelled:!1,completed:!1,interrupted:!1};if(_(O)===!1||!bg(O))return;this.activeVisit&&this.cancelVisit(this.activeVisit,{interrupted:!0}),this.saveScrollPositions();let R=this.createVisitId();this.activeVisit={...O,onCancelToken:p,onBefore:_,onStart:y,onProgress:g,onFinish:v,onCancel:h,onSuccess:b,onError:w,queryStringArrayFormat:m,cancelToken:new AbortController},p({cancel:()=>{this.activeVisit&&this.cancelVisit(this.activeVisit,{cancelled:!0})}}),Ag(O),y(O);let U=!!(s.length||l.length);Me({method:t,url:Ln(S).href,data:t==="get"?{}:r,params:t==="get"?r:{},signal:this.activeVisit.cancelToken.signal,headers:{...u,Accept:"text/html, application/xhtml+xml","X-Requested-With":"XMLHttpRequest","X-Inertia":!0,...U?{"X-Inertia-Partial-Component":this.page.component}:{},...s.length?{"X-Inertia-Partial-Data":s.join(",")}:{},...l.length?{"X-Inertia-Partial-Except":l.join(",")}:{},...f&&f.length?{"X-Inertia-Error-Bag":f}:{},...this.page.version?{"X-Inertia-Version":this.page.version}:{}},onUploadProgress:D=>{r instanceof FormData&&(D.percentage=D.progress?Math.round(D.progress*100):0,Eg(D),g(D))}}).then(D=>{var I;if(!this.isInertiaResponse(D))return Promise.reject({response:D});let C=D.data;U&&C.component===this.page.component&&(C.props={...this.page.props,...C.props}),i=this.resolvePreserveOption(i,C),o=this.resolvePreserveOption(o,C),o&&((I=window.history.state)!=null&&I.rememberedState)&&C.component===this.page.component&&(C.rememberedState=window.history.state.rememberedState);let L=S,W=un(C.url);return L.hash&&!W.hash&&Ln(L).href===W.href&&(W.hash=L.hash,C.url=W.href),this.setPage(C,{visitId:R,replace:n,preserveScroll:i,preserveState:o})}).then(()=>{let D=this.page.props.errors||{};if(Object.keys(D).length>0){let C=f?D[f]?D[f]:{}:D;return _g(C),w(C)}return Og(this.page),b(this.page)}).catch(D=>{if(this.isInertiaResponse(D.response))return this.setPage(D.response.data,{visitId:R});if(this.isLocationVisitResponse(D.response)){let C=un(D.response.headers["x-inertia-location"]),L=S;L.hash&&!C.hash&&Ln(L).href===C.href&&(C.hash=L.hash),this.locationVisit(C,i===!0)}else if(D.response)Sg(D.response)&&Tg.show(D.response.data);else return Promise.reject(D)}).then(()=>{this.activeVisit&&this.finishVisit(this.activeVisit)}).catch(D=>{if(!Me.isCancel(D)){let C=wg(D);if(this.activeVisit&&this.finishVisit(this.activeVisit),C)return Promise.reject(D)}})}setPage(e,{visitId:t=this.createVisitId(),replace:r=!1,preserveScroll:n=!1,preserveState:i=!1}={}){return Promise.resolve(this.resolveComponent(e.component)).then(o=>{t===this.visitId&&(e.scrollRegions=e.scrollRegions||[],e.rememberedState=e.rememberedState||{},r=r||un(e.url).href===window.location.href,r?this.replaceState(e):this.pushState(e),this.swapComponent({component:o,page:e,preserveState:i}).then(()=>{n||this.resetScrollPositions(),r||Dn(e)}))})}pushState(e){this.page=e,window.history.pushState(e,"",e.url)}replaceState(e){this.page=e,window.history.replaceState(e,"",e.url)}handlePopstateEvent(e){if(e.state!==null){let t=e.state,r=this.createVisitId();Promise.resolve(this.resolveComponent(t.component)).then(n=>{r===this.visitId&&(this.page=t,this.swapComponent({component:n,page:t,preserveState:!1}).then(()=>{this.restoreScrollPositions(),Dn(t)}))})}else{let t=un(this.page.url);t.hash=window.location.hash,this.replaceState({...this.page,url:t.href}),this.resetScrollPositions()}}get(e,t={},r={}){return this.visit(e,{...r,method:"get",data:t})}reload(e={}){return this.visit(window.location.href,{...e,preserveScroll:!0,preserveState:!0})}replace(e,t={}){return console.warn(`Inertia.replace() has been deprecated and will be removed in a future release. Please use Inertia.${t.method??"get"}() instead.`),this.visit(e,{preserveState:!0,...t,replace:!0})}post(e,t={},r={}){return this.visit(e,{preserveState:!0,...r,method:"post",data:t})}put(e,t={},r={}){return this.visit(e,{preserveState:!0,...r,method:"put",data:t})}patch(e,t={},r={}){return this.visit(e,{preserveState:!0,...r,method:"patch",data:t})}delete(e,t={}){return this.visit(e,{preserveState:!0,...t,method:"delete"})}remember(e,t="default"){var r;mc||this.replaceState({...this.page,rememberedState:{...(r=this.page)==null?void 0:r.rememberedState,[t]:e}})}restore(e="default"){var t,r;if(!mc)return(r=(t=window.history.state)==null?void 0:t.rememberedState)==null?void 0:r[e]}on(e,t){let r=n=>{let i=t(n);n.cancelable&&!n.defaultPrevented&&i===!1&&n.preventDefault()};return document.addEventListener(`inertia:${e}`,r),()=>document.removeEventListener(`inertia:${e}`,r)}},Pg={buildDOMElement(e){let t=document.createElement("template");t.innerHTML=e;let r=t.content.firstChild;if(!e.startsWith("